diff --git a/docs/catalog.json b/docs/catalog.json index 9f9e36a..93b2835 100644 --- a/docs/catalog.json +++ b/docs/catalog.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.3.1", "generated_at": "2023-01-04T16:46:47.613951Z", "invocation_id": "340f59cf-2c7e-4941-b6a5-64a6c4f72df7", "env": {}}, "nodes": {"test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_core__dim_labels_ADDRESS__0_xX_0_9a_fA_F_.52c2534d6a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_CORE", "name": "DIM_LABELS_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_core__dim_labels_ADDRESS__0_xX_0_9a_fA_F_.52c2534d6a"}, "test.polygon_models.not_null_sushi__ez_lending_LENDER_IS_A_CONTRACT.39fe049559": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_LENDING_LENDER_IS_A_CONTRACT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ASSET": {"type": "TEXT", "index": 8, "name": "ASSET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 9, "name": "DEPOSITOR", "comment": null}, "LENDER_IS_A_CONTRACT": {"type": "TEXT", "index": 10, "name": "LENDER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 11, "name": "LENDING_POOL_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 12, "name": "EVENT_INDEX", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 13, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_USD", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 15, "name": "LENDING_POOL", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 16, "name": "SYMBOL", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_lending_LENDER_IS_A_CONTRACT.39fe049559"}, "test.polygon_models.not_null_silver__blocks_TX_COUNT.34525b51e6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_TX_COUNT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__blocks_TX_COUNT.34525b51e6"}, "test.polygon_models.not_null_silver__blocks_EXTRA_DATA.7b7824f6ea": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_EXTRA_DATA", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__blocks_EXTRA_DATA.7b7824f6ea"}, "test.polygon_models.not_null_silver__logs_EVENT_REMOVED.4f302d08e0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "LOGS_EVENT_REMOVED", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 4, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INGESTED_AT", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 9, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 11, "name": "CONTRACT_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 12, "name": "EVENT_NAME", "comment": null}, "EVENT_INPUTS": {"type": "OBJECT", "index": 13, "name": "EVENT_INPUTS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 14, "name": "TOPICS", "comment": null}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "TEXT", "index": 16, "name": "EVENT_REMOVED", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__logs_EVENT_REMOVED.4f302d08e0"}, "test.polygon_models.not_null_core__ez_matic_transfers_TX_HASH.6e9eb6a197": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_CORE", "name": "EZ_MATIC_TRANSFERS_TX_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "IDENTIFIER": {"type": "TEXT", "index": 4, "name": "IDENTIFIER", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "MATIC_FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "MATIC_FROM_ADDRESS", "comment": null}, "MATIC_TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "MATIC_TO_ADDRESS", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 11, "name": "AMOUNT_USD", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 12, "name": "_CALL_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 16:43UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_core__ez_matic_transfers_TX_HASH.6e9eb6a197"}, "test.polygon_models.not_null_silver__transactions_FROM_ADDRESS.002109da43": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_FROM_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_FROM_ADDRESS.002109da43"}, "test.polygon_models.not_null_sushi__ez_swaps_TOKEN_OUT.68f3f9aac2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_SWAPS_TOKEN_OUT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 8, "name": "PLATFORM", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 9, "name": "POOL_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 13, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 15, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 16, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 17, "name": "EVENT_INDEX", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 18, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 19, "name": "TOKEN_OUT", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 20, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 21, "name": "SYMBOL_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_TOKEN_OUT.68f3f9aac2"}, "test.polygon_models.sequence_gaps_silver__transactions_POSITION__BLOCK_NUMBER.bb18e3a49e": {"metadata": {"type": "BASE TABLE", "schema": "SEQUENCE_GAPS_SILVER", "name": "TRANSACTIONS_POSITION", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PREV_POSITION": {"type": "NUMBER", "index": 2, "name": "PREV_POSITION", "comment": null}, "POSITION": {"type": "NUMBER", "index": 3, "name": "POSITION", "comment": null}, "GAP": {"type": "NUMBER", "index": 4, "name": "GAP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 66048.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1934.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.sequence_gaps_silver__transactions_POSITION__BLOCK_NUMBER.bb18e3a49e"}, "test.polygon_models.not_null_silver__traces_TX_HASH.ccbdeb5e91": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRACES_TX_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "FLOAT", "index": 6, "name": "MATIC_VALUE", "comment": null}, "GAS": {"type": "TEXT", "index": 7, "name": "GAS", "comment": null}, "GAS_USED": {"type": "TEXT", "index": 8, "name": "GAS_USED", "comment": null}, "INPUT": {"type": "TEXT", "index": 9, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 10, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 11, "name": "TYPE", "comment": null}, "IDENTIFIER": {"type": "TEXT", "index": 12, "name": "IDENTIFIER", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 13, "name": "_CALL_ID", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DATA": {"type": "OBJECT", "index": 16, "name": "DATA", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 18, "name": "SUB_TRACES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__traces_TX_HASH.ccbdeb5e91"}, "model.polygon_models.core__ez_matic_transfers": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "EZ_MATIC_TRANSFERS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "IDENTIFIER": {"type": "TEXT", "index": 4, "name": "IDENTIFIER", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "MATIC_FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "MATIC_FROM_ADDRESS", "comment": null}, "MATIC_TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "MATIC_TO_ADDRESS", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 11, "name": "AMOUNT_USD", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 12, "name": "_CALL_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 34279344128.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 306662906.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 16:42UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.core__ez_matic_transfers"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.35e38583ac": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_BORROWING_ORIGIN_TO_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.35e38583ac"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__relevant_abi_contracts_CONTRACT_ADDRESS.13614bb275": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "RELEVANT_ABI_CONTRACTS_CONTRACT_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__relevant_abi_contracts_CONTRACT_ADDRESS.13614bb275"}, "model.polygon_models.silver__blocks": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "BLOCKS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 15318995456.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 19654407.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_INGESTED_AT__TIMESTAMP_NTZ.c716636b55": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSACTIONS_INGESTED_AT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_INGESTED_AT__TIMESTAMP_NTZ.c716636b55"}, "test.polygon_models.not_null_silver__transactions_TX_HASH.8a2cc32062": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_TX_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_TX_HASH.8a2cc32062"}, "test.polygon_models.not_null_sushi__ez_swaps_CONTRACT_ADDRESS.f4cd976e06": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_SWAPS_CONTRACT_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 8, "name": "PLATFORM", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 9, "name": "POOL_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 13, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 15, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 16, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 17, "name": "EVENT_INDEX", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 18, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 19, "name": "TOKEN_OUT", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 20, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 21, "name": "SYMBOL_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_CONTRACT_ADDRESS.f4cd976e06"}, "model.polygon_models.bronze__blocks": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "BLOCKS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RECORD_ID": {"type": "TEXT", "index": 1, "name": "RECORD_ID", "comment": null}, "OFFSET_ID": {"type": "NUMBER", "index": 2, "name": "OFFSET_ID", "comment": null}, "BLOCK_ID": {"type": "NUMBER", "index": 3, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 5, "name": "NETWORK", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 6, "name": "CHAIN_ID", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 7, "name": "TX_COUNT", "comment": null}, "HEADER": {"type": "VARIANT", "index": 8, "name": "HEADER", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.bronze__blocks"}, "test.polygon_models.not_null_bronze_api__token_reads__INSERTED_TIMESTAMP.801b5bd3f6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE_API", "name": "TOKEN_READS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "BLOCK_NUMBER": {"type": "TEXT", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "FUNCTION_SIG": {"type": "TEXT", "index": 3, "name": "FUNCTION_SIG", "comment": null}, "FUNCTION_INPUT": {"type": "TEXT", "index": 4, "name": "FUNCTION_INPUT", "comment": null}, "READ_RESULT": {"type": "TEXT", "index": 5, "name": "READ_RESULT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_bronze_api__token_reads__INSERTED_TIMESTAMP.801b5bd3f6"}, "test.polygon_models.not_null_sushi__ez_borrowing_AMOUNT.490bdfdbcb": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_BORROWING_AMOUNT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "BORROWER": {"type": "TEXT", "index": 8, "name": "BORROWER", "comment": null}, "BORROWER_IS_A_CONTRACT": {"type": "TEXT", "index": 9, "name": "BORROWER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "LENDING_POOL_ADDRESS", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 11, "name": "LENDING_POOL", "comment": null}, "ASSET": {"type": "TEXT", "index": 12, "name": "ASSET", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 13, "name": "SYMBOL", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 14, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 15, "name": "AMOUNT_USD", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_AMOUNT.490bdfdbcb"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.3b31561bc6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_LENDING_ORIGIN_FROM_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.3b31561bc6"}, "test.polygon_models.not_null_silver__blocks_DIFFICULTY.dfd6bb7310": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_DIFFICULTY", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__blocks_DIFFICULTY.dfd6bb7310"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TX_TO__0_xX_0_9a_fA_F_.81a6e2ad45": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_SWAPS_TX_TO", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TX_TO__0_xX_0_9a_fA_F_.81a6e2ad45"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ASSET__0_xX_0_9a_fA_F_.73483a63df": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_BORROWING_ASSET", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ASSET__0_xX_0_9a_fA_F_.73483a63df"}, "test.polygon_models.not_null_silver__traces_GAS_USED.eb9bf97ca1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRACES_GAS_USED", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "FLOAT", "index": 6, "name": "MATIC_VALUE", "comment": null}, "GAS": {"type": "TEXT", "index": 7, "name": "GAS", "comment": null}, "GAS_USED": {"type": "TEXT", "index": 8, "name": "GAS_USED", "comment": null}, "INPUT": {"type": "TEXT", "index": 9, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 10, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 11, "name": "TYPE", "comment": null}, "IDENTIFIER": {"type": "TEXT", "index": 12, "name": "IDENTIFIER", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 13, "name": "_CALL_ID", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DATA": {"type": "OBJECT", "index": 16, "name": "DATA", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 18, "name": "SUB_TRACES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__traces_GAS_USED.eb9bf97ca1"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_NUMBER__NUMBER__FLOAT.45ecdb8c94": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSFERS_BLOCK_NUMBER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_NUMBER__NUMBER__FLOAT.45ecdb8c94"}, "test.polygon_models.not_null_sushi__ez_swaps_SENDER.b76baa207c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_SWAPS_SENDER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 8, "name": "PLATFORM", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 9, "name": "POOL_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 13, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 15, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 16, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 17, "name": "EVENT_INDEX", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 18, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 19, "name": "TOKEN_OUT", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 20, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 21, "name": "SYMBOL_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_SENDER.b76baa207c"}, "test.polygon_models.not_null_silver__blocks_NONCE.10c0698884": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_NONCE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__blocks_NONCE.10c0698884"}, "model.polygon_models.silver__traces": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "TRACES", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "FLOAT", "index": 6, "name": "MATIC_VALUE", "comment": null}, "GAS": {"type": "TEXT", "index": 7, "name": "GAS", "comment": null}, "GAS_USED": {"type": "TEXT", "index": 8, "name": "GAS_USED", "comment": null}, "INPUT": {"type": "TEXT", "index": 9, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 10, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 11, "name": "TYPE", "comment": null}, "IDENTIFIER": {"type": "TEXT", "index": 12, "name": "IDENTIFIER", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 13, "name": "_CALL_ID", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DATA": {"type": "OBJECT", "index": 16, "name": "DATA", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 18, "name": "SUB_TRACES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 3551840436736.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 17819630760.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__traces"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_sushi__ez_swaps__LOG_ID.cebe0de5a1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SUSHI", "name": "EZ_SWAPS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_sushi__ez_swaps__LOG_ID.cebe0de5a1"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_AMOUNT_USD__NUMBER__FLOAT.5a6575a29d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_BORROWING_AMOUNT_USD", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_AMOUNT_USD__NUMBER__FLOAT.5a6575a29d"}, "test.polygon_models.not_null_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS.f47465af36": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_BORROWING_ORIGIN_FROM_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "BORROWER": {"type": "TEXT", "index": 8, "name": "BORROWER", "comment": null}, "BORROWER_IS_A_CONTRACT": {"type": "TEXT", "index": 9, "name": "BORROWER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "LENDING_POOL_ADDRESS", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 11, "name": "LENDING_POOL", "comment": null}, "ASSET": {"type": "TEXT", "index": 12, "name": "ASSET", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 13, "name": "SYMBOL", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 14, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 15, "name": "AMOUNT_USD", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS.f47465af36"}, "model.polygon_models.sushi__ez_lending": {"metadata": {"type": "BASE TABLE", "schema": "SUSHI", "name": "EZ_LENDING", "database": "POLYGON_DEV", "comment": "This is a table that shows all the events on polygon that are related to providing capital for depositing/withdrawing capital to/from sushi lending pools", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block was produced."}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": "Also known as block height. The block number, which indicates the length of the blockchain, increases after the addition of each new block."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Transaction hash is a unique 66-character identifier that is generated when a transaction is executed. This field will not be unique in this table, as a given transaction can include multiple events."}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": "The action that the user is taking.\n Deposit: user is depositing funds to be used for lending\n Withdraw: user has changed their mind and are no longer willing to lend, so they withdraw their asset"}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": "The address of the user who initiates the transaction."}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": "The person who initiates the depositing transaction has to interact with this address. This address belongs to the lending platform or directs the transactio there."}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "ASSET": {"type": "TEXT", "index": 8, "name": "ASSET", "comment": "The address of the asset (token) that is being deposited/withdrawn, depending on the action"}, "DEPOSITOR": {"type": "TEXT", "index": 9, "name": "DEPOSITOR", "comment": "Its the address of the user who is depositing for lending or withdrawing, depending on the action."}, "LENDER_IS_A_CONTRACT": {"type": "TEXT", "index": 10, "name": "LENDER_IS_A_CONTRACT", "comment": "If the depositor is a contract then its a Yes, if the depositor is a normal address it is a No."}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 11, "name": "LENDING_POOL_ADDRESS", "comment": "The address of the lending pool. For sushi this will be the address of the kashi pair."}, "EVENT_INDEX": {"type": "NUMBER", "index": 12, "name": "EVENT_INDEX", "comment": "Event number within a transaction."}, "AMOUNT": {"type": "FLOAT", "index": 13, "name": "AMOUNT", "comment": "The amount of the asset that the user is depositing or withdrawing, depending on the action."}, "AMOUNT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_USD", "comment": "The amount of the asset that the user is depositing or withdrawing, depending on the action."}, "LENDING_POOL": {"type": "TEXT", "index": 15, "name": "LENDING_POOL", "comment": "The name of the lending pool."}, "SYMBOL": {"type": "TEXT", "index": 16, "name": "SYMBOL", "comment": "The symbol of the asset that is lent or withdrawn, depending on the action"}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": "This is the primary key for this table. This is a concatenation of the transaction hash and the event index at which the event occurred."}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 3901440.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 18030.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.sushi__ez_lending"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSFERS_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd"}, "test.polygon_models.not_null_sushi__ez_lending__LOG_ID.aeb399324a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_LENDING", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ASSET": {"type": "TEXT", "index": 8, "name": "ASSET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 9, "name": "DEPOSITOR", "comment": null}, "LENDER_IS_A_CONTRACT": {"type": "TEXT", "index": 10, "name": "LENDER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 11, "name": "LENDING_POOL_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 12, "name": "EVENT_INDEX", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 13, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_USD", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 15, "name": "LENDING_POOL", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 16, "name": "SYMBOL", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_lending__LOG_ID.aeb399324a"}, "seed.polygon_models.bronze__sushi_dim_dex_pools": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "SUSHI_DIM_DEX_POOLS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"PAIR_ADDRESS": {"type": "TEXT", "index": 1, "name": "PAIR_ADDRESS", "comment": null}, "PAIR_NAME": {"type": "TEXT", "index": 2, "name": "PAIR_NAME", "comment": null}, "LIQUIDITY": {"type": "FLOAT", "index": 3, "name": "LIQUIDITY", "comment": null}, "TOKENS_0_NAME": {"type": "TEXT", "index": 4, "name": "TOKENS_0_NAME", "comment": null}, "TOKENS_0_ADDRESS": {"type": "TEXT", "index": 5, "name": "TOKENS_0_ADDRESS", "comment": null}, "TOKENS_1_NAME": {"type": "TEXT", "index": 6, "name": "TOKENS_1_NAME", "comment": null}, "TOKENS_1_ADDRESS": {"type": "TEXT", "index": 7, "name": "TOKENS_1_ADDRESS", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 96256.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 991.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:00UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.polygon_models.bronze__sushi_dim_dex_pools"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_NUMBER__NUMBER__FLOAT.5e6997665c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "BLOCKS_BLOCK_NUMBER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_NUMBER__NUMBER__FLOAT.5e6997665c"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_TX_HASH__0_xX_0_9a_fA_F_.e3f190eb04": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_BORROWING_TX_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_TX_HASH__0_xX_0_9a_fA_F_.e3f190eb04"}, "test.polygon_models.not_null_silver__transactions_BLOCK_HASH.2c918b73f5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_BLOCK_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_BLOCK_HASH.2c918b73f5"}, "test.polygon_models.not_null_silver__transfers_ORIGIN_FROM_ADDRESS.30ffa7f127": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS_ORIGIN_FROM_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "BLOCK_TIMESTAMP", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 11, "name": "RAW_AMOUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 13, "name": "EVENT_INDEX", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transfers_ORIGIN_FROM_ADDRESS.30ffa7f127"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.6964f6dc30": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "BLOCKS_RECEIPTS_ROOT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.6964f6dc30"}, "test.polygon_models.not_null_sushi__ez_lending_LENDING_POOL_ADDRESS.343619b86f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_LENDING_LENDING_POOL_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ASSET": {"type": "TEXT", "index": 8, "name": "ASSET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 9, "name": "DEPOSITOR", "comment": null}, "LENDER_IS_A_CONTRACT": {"type": "TEXT", "index": 10, "name": "LENDER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 11, "name": "LENDING_POOL_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 12, "name": "EVENT_INDEX", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 13, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_USD", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 15, "name": "LENDING_POOL", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 16, "name": "SYMBOL", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_lending_LENDING_POOL_ADDRESS.343619b86f"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_MINER__0_xX_0_9a_fA_F_.7e8cc9ca0b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "BLOCKS_MINER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_MINER__0_xX_0_9a_fA_F_.7e8cc9ca0b"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ASSET__0_xX_0_9a_fA_F_.8a7dd8b676": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_LENDING_ASSET", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ASSET__0_xX_0_9a_fA_F_.8a7dd8b676"}, "seed.polygon_models.bronze__sushi_dim_kashi_pairs": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "SUSHI_DIM_KASHI_PAIRS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"PAIR_NAME": {"type": "TEXT", "index": 1, "name": "PAIR_NAME", "comment": null}, "PAIR_SYMBOL": {"type": "TEXT", "index": 2, "name": "PAIR_SYMBOL", "comment": null}, "PAIR_ADDRESS": {"type": "TEXT", "index": 3, "name": "PAIR_ADDRESS", "comment": null}, "PAIR_DECIMAL": {"type": "NUMBER", "index": 4, "name": "PAIR_DECIMAL", "comment": null}, "ASSET_SYMBOL": {"type": "TEXT", "index": 5, "name": "ASSET_SYMBOL", "comment": null}, "ASSET_ADDRESS": {"type": "TEXT", "index": 6, "name": "ASSET_ADDRESS", "comment": null}, "ASSET_DECIMAL": {"type": "NUMBER", "index": 7, "name": "ASSET_DECIMAL", "comment": null}, "COLLATERAL_SYMBOL": {"type": "TEXT", "index": 8, "name": "COLLATERAL_SYMBOL", "comment": null}, "COLLATERAL_ADDRESS": {"type": "TEXT", "index": 9, "name": "COLLATERAL_ADDRESS", "comment": null}, "COLLATERAL_DECIMAL": {"type": "NUMBER", "index": 10, "name": "COLLATERAL_DECIMAL", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 13824.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 128.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:00UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.polygon_models.bronze__sushi_dim_kashi_pairs"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "BLOCKS_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751"}, "test.polygon_models.not_null_sushi__ez_borrowing_Borrower.1f484a738a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_BORROWING_BORROWER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "BORROWER": {"type": "TEXT", "index": 8, "name": "BORROWER", "comment": null}, "BORROWER_IS_A_CONTRACT": {"type": "TEXT", "index": 9, "name": "BORROWER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "LENDING_POOL_ADDRESS", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 11, "name": "LENDING_POOL", "comment": null}, "ASSET": {"type": "TEXT", "index": 12, "name": "ASSET", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 13, "name": "SYMBOL", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 14, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 15, "name": "AMOUNT_USD", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_Borrower.1f484a738a"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_BLOCK_HASH__0_xX_0_9a_fA_F_.6a7999ad31": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TRANSACTIONS_BLOCK_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_BLOCK_HASH__0_xX_0_9a_fA_F_.6a7999ad31"}, "model.polygon_models.streamline__blocks_history": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "BLOCKS_HISTORY", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.streamline__blocks_history"}, "test.polygon_models.not_null_sushi__ez_lending_AMOUNT.d0ca35e1b9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_LENDING_AMOUNT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ASSET": {"type": "TEXT", "index": 8, "name": "ASSET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 9, "name": "DEPOSITOR", "comment": null}, "LENDER_IS_A_CONTRACT": {"type": "TEXT", "index": 10, "name": "LENDER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 11, "name": "LENDING_POOL_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 12, "name": "EVENT_INDEX", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 13, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_USD", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 15, "name": "LENDING_POOL", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 16, "name": "SYMBOL", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_lending_AMOUNT.d0ca35e1b9"}, "model.polygon_models.core__dim_contracts": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "DIM_CONTRACTS", "database": "POLYGON_DEV", "comment": "This table contains the contract addresses and their associated metadata. Includes ERC20 and ERC721 tokens. Metadata is read directly from contracts on the blockchain.", "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "The address of the contract."}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": "The symbol of the contract."}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": "The name of the contract."}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": "The number of decimals used to adjust amount for this contract."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.core__dim_contracts"}, "test.polygon_models.not_null_silver__logs_ORIGIN_FUNCTION_SIGNATURE.ed647f3e17": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "LOGS_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 4, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INGESTED_AT", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 9, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 11, "name": "CONTRACT_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 12, "name": "EVENT_NAME", "comment": null}, "EVENT_INPUTS": {"type": "OBJECT", "index": 13, "name": "EVENT_INPUTS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 14, "name": "TOPICS", "comment": null}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "TEXT", "index": 16, "name": "EVENT_REMOVED", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__logs_ORIGIN_FUNCTION_SIGNATURE.ed647f3e17"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TOKEN_OUT__0_xX_0_9a_fA_F_.a99f33851e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_SWAPS_TOKEN_OUT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TOKEN_OUT__0_xX_0_9a_fA_F_.a99f33851e"}, "model.polygon_models.streamline__transactions_history": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "TRANSACTIONS_HISTORY", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.streamline__transactions_history"}, "test.polygon_models.not_null_sushi__ez_borrowing__LOG_ID.2c8a148cfa": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_BORROWING", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "BORROWER": {"type": "TEXT", "index": 8, "name": "BORROWER", "comment": null}, "BORROWER_IS_A_CONTRACT": {"type": "TEXT", "index": 9, "name": "BORROWER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "LENDING_POOL_ADDRESS", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 11, "name": "LENDING_POOL", "comment": null}, "ASSET": {"type": "TEXT", "index": 12, "name": "ASSET", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 13, "name": "SYMBOL", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 14, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 15, "name": "AMOUNT_USD", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing__LOG_ID.2c8a148cfa"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_SIZE__NUMBER.7f2a8fc982": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "BLOCKS_SIZE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_SIZE__NUMBER.7f2a8fc982"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_POSITION__NUMBER.5d920e939f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSACTIONS_POSITION", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_POSITION__NUMBER.5d920e939f"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_TO_ADDRESS__0_xX_0_9a_fA_F_.3af876962e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TRACES_TO_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_TO_ADDRESS__0_xX_0_9a_fA_F_.3af876962e"}, "model.polygon_models.bronze_api__contract_abis": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE_API", "name": "CONTRACT_ABIS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "ABI_DATA": {"type": "VARIANT", "index": 2, "name": "ABI_DATA", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 181560832.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 349620.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.bronze_api__contract_abis"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_HEADER_JSON__OBJECT.1be6a88f28": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "BLOCKS_BLOCK_HEADER_JSON", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_HEADER_JSON__OBJECT.1be6a88f28"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_LENDING_POOL_ADDRESS__0_xX_0_9a_fA_F_.11e77397a2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_BORROWING_LENDING_POOL_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_LENDING_POOL_ADDRESS__0_xX_0_9a_fA_F_.11e77397a2"}, "test.polygon_models.not_null_core__dim_labels_ADDRESS.ddf35f62af": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_CORE", "name": "DIM_LABELS_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 2, "name": "CREATOR", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "ADDRESS_NAME": {"type": "TEXT", "index": 4, "name": "ADDRESS_NAME", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 5, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 6, "name": "LABEL_SUBTYPE", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_core__dim_labels_ADDRESS.ddf35f62af"}, "test.polygon_models.not_null_silver__logs_TX_HASH.18b09ee14d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "LOGS_TX_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 4, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INGESTED_AT", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 9, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 11, "name": "CONTRACT_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 12, "name": "EVENT_NAME", "comment": null}, "EVENT_INPUTS": {"type": "OBJECT", "index": 13, "name": "EVENT_INPUTS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 14, "name": "TOPICS", "comment": null}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "TEXT", "index": 16, "name": "EVENT_REMOVED", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__logs_TX_HASH.18b09ee14d"}, "test.polygon_models.not_null_sushi__ez_lending_TX_HASH.3c471bed51": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_LENDING_TX_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ASSET": {"type": "TEXT", "index": 8, "name": "ASSET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 9, "name": "DEPOSITOR", "comment": null}, "LENDER_IS_A_CONTRACT": {"type": "TEXT", "index": 10, "name": "LENDER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 11, "name": "LENDING_POOL_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 12, "name": "EVENT_INDEX", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 13, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_USD", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 15, "name": "LENDING_POOL", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 16, "name": "SYMBOL", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_lending_TX_HASH.3c471bed51"}, "test.polygon_models.not_null_bronze_api__contract_abis__INSERTED_TIMESTAMP.cd35aef90f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE_API", "name": "CONTRACT_ABIS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "ABI_DATA": {"type": "VARIANT", "index": 2, "name": "ABI_DATA", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_bronze_api__contract_abis__INSERTED_TIMESTAMP.cd35aef90f"}, "test.polygon_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d"}, "test.polygon_models.not_null_sushi__ez_borrowing_ASSET.963aa5a1aa": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_BORROWING_ASSET", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "BORROWER": {"type": "TEXT", "index": 8, "name": "BORROWER", "comment": null}, "BORROWER_IS_A_CONTRACT": {"type": "TEXT", "index": 9, "name": "BORROWER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "LENDING_POOL_ADDRESS", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 11, "name": "LENDING_POOL", "comment": null}, "ASSET": {"type": "TEXT", "index": 12, "name": "ASSET", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 13, "name": "SYMBOL", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 14, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 15, "name": "AMOUNT_USD", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_ASSET.963aa5a1aa"}, "model.polygon_models.sushi__dim_dex_pools": {"metadata": {"type": "BASE TABLE", "schema": "SUSHI", "name": "DIM_DEX_POOLS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"POOL_ADDRESS": {"type": "TEXT", "index": 1, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 2, "name": "POOL_NAME", "comment": null}, "TOKEN0_ADDRESS": {"type": "TEXT", "index": 3, "name": "TOKEN0_ADDRESS", "comment": null}, "TOKEN0_SYMBOL": {"type": "TEXT", "index": 4, "name": "TOKEN0_SYMBOL", "comment": null}, "TOKEN1_ADDRESS": {"type": "TEXT", "index": 5, "name": "TOKEN1_ADDRESS", "comment": null}, "TOKEN1_SYMBOL": {"type": "TEXT", "index": 6, "name": "TOKEN1_SYMBOL", "comment": null}, "TOKEN0_DECIMALS": {"type": "NUMBER", "index": 7, "name": "TOKEN0_DECIMALS", "comment": null}, "TOKEN1_DECIMALS": {"type": "NUMBER", "index": 8, "name": "TOKEN1_DECIMALS", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 227328.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 991.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.sushi__dim_dex_pools"}, "test.polygon_models.not_null_sushi__ez_lending_DEPOSITOR.9f9196dce7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_LENDING_DEPOSITOR", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ASSET": {"type": "TEXT", "index": 8, "name": "ASSET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 9, "name": "DEPOSITOR", "comment": null}, "LENDER_IS_A_CONTRACT": {"type": "TEXT", "index": 10, "name": "LENDER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 11, "name": "LENDING_POOL_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 12, "name": "EVENT_INDEX", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 13, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_USD", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 15, "name": "LENDING_POOL", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 16, "name": "SYMBOL", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_lending_DEPOSITOR.9f9196dce7"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "BLOCKS_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_FEE__NUMBER__FLOAT.c56121a801": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSACTIONS_TX_FEE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_FEE__NUMBER__FLOAT.c56121a801"}, "test.polygon_models.not_null_silver__logs_ORIGIN_FROM_ADDRESS.1759538d91": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "LOGS_ORIGIN_FROM_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 4, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INGESTED_AT", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 9, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 11, "name": "CONTRACT_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 12, "name": "EVENT_NAME", "comment": null}, "EVENT_INPUTS": {"type": "OBJECT", "index": 13, "name": "EVENT_INPUTS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 14, "name": "TOPICS", "comment": null}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "TEXT", "index": 16, "name": "EVENT_REMOVED", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__logs_ORIGIN_FROM_ADDRESS.1759538d91"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_JSON__OBJECT.f6596e98ec": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSACTIONS_TX_JSON", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_JSON__OBJECT.f6596e98ec"}, "model.polygon_models.streamline__complete_transactions": {"metadata": {"type": "BASE TABLE", "schema": "STREAMLINE", "name": "COMPLETE_TRANSACTIONS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 579855872.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 31590974.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(ROUND(block_number, -3))", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.streamline__complete_transactions"}, "model.polygon_models.bronze_api__token_reads": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE_API", "name": "TOKEN_READS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "BLOCK_NUMBER": {"type": "TEXT", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "FUNCTION_SIG": {"type": "TEXT", "index": 3, "name": "FUNCTION_SIG", "comment": null}, "FUNCTION_INPUT": {"type": "TEXT", "index": 4, "name": "FUNCTION_INPUT", "comment": null}, "READ_RESULT": {"type": "TEXT", "index": 5, "name": "READ_RESULT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 17794560.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 512100.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.bronze_api__token_reads"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__logs_BLOCK_TIMESTAMP__day__1.79d0ca0413": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "LOGS_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__logs_BLOCK_TIMESTAMP__day__1.79d0ca0413"}, "test.polygon_models.not_null_silver__transactions_STATUS.42a484ef7a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_STATUS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_STATUS.42a484ef7a"}, "model.polygon_models.silver__contract_proxies": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "CONTRACT_PROXIES", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 3, "name": "CONTRACT_ADDRESS", "comment": null}, "PROXY_ADDRESS": {"type": "TEXT", "index": 4, "name": "PROXY_ADDRESS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 6, "name": "ID", "comment": null}, "NEXT_BLOCK_NUMBER": {"type": "NUMBER", "index": 7, "name": "NEXT_BLOCK_NUMBER", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 13788672.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 148859.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(ROUND(block_number, -3))", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__contract_proxies"}, "test.polygon_models.not_null_silver__blocks_PARENT_HASH.a17a399346": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_PARENT_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__blocks_PARENT_HASH.a17a399346"}, "model.polygon_models.streamline__blocks_realtime": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "BLOCKS_REALTIME", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.streamline__blocks_realtime"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.dd5a907c68": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_SWAPS_ORIGIN_TO_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.dd5a907c68"}, "test.polygon_models.not_null_silver__logs_BLOCK_NUMBER.f98b235d4c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "LOGS_BLOCK_NUMBER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 4, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INGESTED_AT", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 9, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 11, "name": "CONTRACT_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 12, "name": "EVENT_NAME", "comment": null}, "EVENT_INPUTS": {"type": "OBJECT", "index": 13, "name": "EVENT_INPUTS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 14, "name": "TOPICS", "comment": null}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "TEXT", "index": 16, "name": "EVENT_REMOVED", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__logs_BLOCK_NUMBER.f98b235d4c"}, "test.polygon_models.not_null_silver__traces_FROM_ADDRESS.285ef0c05b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRACES_FROM_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "FLOAT", "index": 6, "name": "MATIC_VALUE", "comment": null}, "GAS": {"type": "TEXT", "index": 7, "name": "GAS", "comment": null}, "GAS_USED": {"type": "TEXT", "index": 8, "name": "GAS_USED", "comment": null}, "INPUT": {"type": "TEXT", "index": 9, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 10, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 11, "name": "TYPE", "comment": null}, "IDENTIFIER": {"type": "TEXT", "index": 12, "name": "IDENTIFIER", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 13, "name": "_CALL_ID", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DATA": {"type": "OBJECT", "index": 16, "name": "DATA", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 18, "name": "SUB_TRACES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__traces_FROM_ADDRESS.285ef0c05b"}, "test.polygon_models.not_null_sushi__ez_lending_ASSET.92156a57ed": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_LENDING_ASSET", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ASSET": {"type": "TEXT", "index": 8, "name": "ASSET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 9, "name": "DEPOSITOR", "comment": null}, "LENDER_IS_A_CONTRACT": {"type": "TEXT", "index": 10, "name": "LENDER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 11, "name": "LENDING_POOL_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 12, "name": "EVENT_INDEX", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 13, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_USD", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 15, "name": "LENDING_POOL", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 16, "name": "SYMBOL", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_lending_ASSET.92156a57ed"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__traces_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.3ffecd9044": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRACES_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__traces_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.3ffecd9044"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_NONCE__0_xX_0_9a_fA_F_.0f55c64955": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "BLOCKS_NONCE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_NONCE__0_xX_0_9a_fA_F_.0f55c64955"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_SENDER__0_xX_0_9a_fA_F_.b8de01d1db": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_SWAPS_SENDER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_SENDER__0_xX_0_9a_fA_F_.b8de01d1db"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSACTIONS_GAS_USED", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3"}, "test.polygon_models.not_null_silver__transfers__LOG_ID.29bb073a40": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "BLOCK_TIMESTAMP", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 11, "name": "RAW_AMOUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 13, "name": "EVENT_INDEX", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transfers__LOG_ID.29bb073a40"}, "test.polygon_models.not_null_silver__transactions_NONCE.3eac435cf9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_NONCE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_NONCE.3eac435cf9"}, "test.polygon_models.not_null_silver__logs_DATA.c5fac5c4a4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "LOGS_DATA", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 4, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INGESTED_AT", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 9, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 11, "name": "CONTRACT_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 12, "name": "EVENT_NAME", "comment": null}, "EVENT_INPUTS": {"type": "OBJECT", "index": 13, "name": "EVENT_INPUTS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 14, "name": "TOPICS", "comment": null}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "TEXT", "index": 16, "name": "EVENT_REMOVED", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__logs_DATA.c5fac5c4a4"}, "test.polygon_models.not_null_silver__transfers_ORIGIN_FUNCTION_SIGNATURE.c1c149f732": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "BLOCK_TIMESTAMP", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 11, "name": "RAW_AMOUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 13, "name": "EVENT_INDEX", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transfers_ORIGIN_FUNCTION_SIGNATURE.c1c149f732"}, "test.polygon_models.not_null_sushi__ez_swaps__LOG_ID.3bc8eb295f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_SWAPS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 8, "name": "PLATFORM", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 9, "name": "POOL_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 13, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 15, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 16, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 17, "name": "EVENT_INDEX", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 18, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 19, "name": "TOKEN_OUT", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 20, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 21, "name": "SYMBOL_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_swaps__LOG_ID.3bc8eb295f"}, "model.polygon_models.core__fact_blocks": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_BLOCKS", "database": "POLYGON_DEV", "comment": "This table contains block level data for the Polygon Blockchain. This table can be used to analyze trends at a block level, for example gas fees vs. total transactions over time. For more information on EVM transactions, please see [Etherscan Resources](https://etherscan.io/directory/Learning_Resources/Ethereum) or [The Ethereum Organization](https://ethereum.org/en/developers/docs/blocks/)", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Also known as block height. The block number, which indicates the length of the blockchain, increases after the addition of each new block."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block was produced."}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": "The network on the blockchain used by a transaction."}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": "The blockchain on which transactions are being confirmed."}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": "Total number of transactions within a block."}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": "The effort required to mine the block."}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": "Total difficulty of the chain at a given block."}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": "Any data included by the validator for a given block."}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": "Total gas limit provided by all transactions in the block."}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": "Total gas used in the block."}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": "The hash of the block header for a given block."}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": "The hash of the block from which a given block is generated. Also known as the parent block."}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 13, "name": "RECEIPTS_ROOT", "comment": "The root of the state trie."}, "SHA3_UNCLES": {"type": "TEXT", "index": 14, "name": "SHA3_UNCLES", "comment": "The mechanism which Ethereum Javascript RLP encodes an empty string."}, "SIZE": {"type": "NUMBER", "index": 15, "name": "SIZE", "comment": "Block size, which is determined by a given block's gas limit."}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 16, "name": "UNCLE_BLOCKS", "comment": "Uncle blocks occur when two blocks are mined and broadcasted at the same time, with the same block number. The block validated across the most nodes will be added to the primary chain, and the other one becomes an uncle block. Miners do receive rewards for uncle blocks."}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 17, "name": "BLOCK_HEADER_JSON", "comment": "This JSON column contains the block header details."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.core__fact_blocks"}, "test.polygon_models.not_null_core__ez_matic_transfers_MATIC_FROM_ADDRESS.431d281508": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_CORE", "name": "EZ_MATIC_TRANSFERS_MATIC_FROM_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "IDENTIFIER": {"type": "TEXT", "index": 4, "name": "IDENTIFIER", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "MATIC_FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "MATIC_FROM_ADDRESS", "comment": null}, "MATIC_TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "MATIC_TO_ADDRESS", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 11, "name": "AMOUNT_USD", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 12, "name": "_CALL_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 16:43UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_core__ez_matic_transfers_MATIC_FROM_ADDRESS.431d281508"}, "test.polygon_models.not_null_silver__traces_BLOCK_NUMBER.9dcd1525b2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRACES_BLOCK_NUMBER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "FLOAT", "index": 6, "name": "MATIC_VALUE", "comment": null}, "GAS": {"type": "TEXT", "index": 7, "name": "GAS", "comment": null}, "GAS_USED": {"type": "TEXT", "index": 8, "name": "GAS_USED", "comment": null}, "INPUT": {"type": "TEXT", "index": 9, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 10, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 11, "name": "TYPE", "comment": null}, "IDENTIFIER": {"type": "TEXT", "index": 12, "name": "IDENTIFIER", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 13, "name": "_CALL_ID", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DATA": {"type": "OBJECT", "index": 16, "name": "DATA", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 18, "name": "SUB_TRACES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__traces_BLOCK_NUMBER.9dcd1525b2"}, "model.polygon_models.silver__relevant_token_contracts": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "RELEVANT_TOKEN_CONTRACTS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "TRANSFERS": {"type": "NUMBER", "index": 3, "name": "TRANSFERS", "comment": null}, "CREATED_BLOCK": {"type": "NUMBER", "index": 4, "name": "CREATED_BLOCK", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 7701504.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 171503.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__relevant_token_contracts"}, "test.polygon_models.not_null_core__dim_labels_CREATOR.0c77d5749c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_CORE", "name": "DIM_LABELS_CREATOR", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 2, "name": "CREATOR", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "ADDRESS_NAME": {"type": "TEXT", "index": 4, "name": "ADDRESS_NAME", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 5, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 6, "name": "LABEL_SUBTYPE", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_core__dim_labels_CREATOR.0c77d5749c"}, "test.polygon_models.not_null_silver__blocks_MINER.c17f6cbb87": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_MINER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__blocks_MINER.c17f6cbb87"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contract_abis_CONTRACT_ADDRESS.d4ac45a2a1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "CONTRACT_ABIS_CONTRACT_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contract_abis_CONTRACT_ADDRESS.d4ac45a2a1"}, "test.polygon_models.not_null_sushi__ez_lending_ORIGIN_FROM_ADDRESS.0a279cef72": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_LENDING_ORIGIN_FROM_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ASSET": {"type": "TEXT", "index": 8, "name": "ASSET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 9, "name": "DEPOSITOR", "comment": null}, "LENDER_IS_A_CONTRACT": {"type": "TEXT", "index": 10, "name": "LENDER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 11, "name": "LENDING_POOL_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 12, "name": "EVENT_INDEX", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 13, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_USD", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 15, "name": "LENDING_POOL", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 16, "name": "SYMBOL", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_lending_ORIGIN_FROM_ADDRESS.0a279cef72"}, "test.polygon_models.not_null_sushi__ez_borrowing_BLOCK_NUMBER.76a0fc6bc9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_BORROWING_BLOCK_NUMBER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "BORROWER": {"type": "TEXT", "index": 8, "name": "BORROWER", "comment": null}, "BORROWER_IS_A_CONTRACT": {"type": "TEXT", "index": 9, "name": "BORROWER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "LENDING_POOL_ADDRESS", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 11, "name": "LENDING_POOL", "comment": null}, "ASSET": {"type": "TEXT", "index": 12, "name": "ASSET", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 13, "name": "SYMBOL", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 14, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 15, "name": "AMOUNT_USD", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_BLOCK_NUMBER.76a0fc6bc9"}, "model.polygon_models.silver__logs": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "LOGS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 4, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INGESTED_AT", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 9, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 11, "name": "CONTRACT_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 12, "name": "EVENT_NAME", "comment": null}, "EVENT_INPUTS": {"type": "OBJECT", "index": 13, "name": "EVENT_INPUTS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 14, "name": "TOPICS", "comment": null}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "TEXT", "index": 16, "name": "EVENT_REMOVED", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 1172505943552.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 7190477642.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__logs"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__contracts_CONTRACT_ADDRESS__STRING__VARCHAR.a501d61489": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "CONTRACTS_CONTRACT_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__contracts_CONTRACT_ADDRESS__STRING__VARCHAR.a501d61489"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "TRANSFERS_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111"}, "test.polygon_models.not_null_silver__logs_TOPICS.f042e94d85": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "LOGS_TOPICS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 4, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INGESTED_AT", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 9, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 11, "name": "CONTRACT_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 12, "name": "EVENT_NAME", "comment": null}, "EVENT_INPUTS": {"type": "OBJECT", "index": 13, "name": "EVENT_INPUTS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 14, "name": "TOPICS", "comment": null}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "TEXT", "index": 16, "name": "EVENT_REMOVED", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__logs_TOPICS.f042e94d85"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TX_HASH__0_xX_0_9a_fA_F_.15d478c09c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_SWAPS_TX_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TX_HASH__0_xX_0_9a_fA_F_.15d478c09c"}, "test.polygon_models.not_null_silver__transfers_CONTRACT_ADDRESS.df8cd401ef": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS_CONTRACT_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "BLOCK_TIMESTAMP", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 11, "name": "RAW_AMOUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 13, "name": "EVENT_INDEX", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transfers_CONTRACT_ADDRESS.df8cd401ef"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_TX_HASH__0_xX_0_9a_fA_F_.f25b6d0ca1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TRANSFERS_TX_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_TX_HASH__0_xX_0_9a_fA_F_.f25b6d0ca1"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_OUT_USD__NUMBER__FLOAT.a061b70981": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_SWAPS_AMOUNT_OUT_USD", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_OUT_USD__NUMBER__FLOAT.a061b70981"}, "test.polygon_models.not_null_silver__transactions_ORIGIN_FUNCTION_SIGNATURE.6ba6212d68": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_ORIGIN_FUNCTION_SIGNATURE.6ba6212d68"}, "test.polygon_models.not_null_silver__logs_BLOCK_TIMESTAMP.ca6209335c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "LOGS_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 4, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INGESTED_AT", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 9, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 11, "name": "CONTRACT_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 12, "name": "EVENT_NAME", "comment": null}, "EVENT_INPUTS": {"type": "OBJECT", "index": 13, "name": "EVENT_INPUTS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 14, "name": "TOPICS", "comment": null}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "TEXT", "index": 16, "name": "EVENT_REMOVED", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__logs_BLOCK_TIMESTAMP.ca6209335c"}, "test.polygon_models.not_null_silver__transactions_TX_FEE.f2f0cdc085": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_TX_FEE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_TX_FEE.f2f0cdc085"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__contracts__INSERTED_TIMESTAMP__day__2.c0b3d27a1b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "CONTRACTS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__contracts__INSERTED_TIMESTAMP__day__2.c0b3d27a1b"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_core__dim_labels_LABEL_TYPE__flotsam__nft__defi__dex__cex__dapp__token__operator__layer2__chadmin__project.145ec1d947": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_SET_CORE", "name": "DIM_LABELS_LABEL_TYPE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"VALUE_FIELD": {"type": "TEXT", "index": 1, "name": "VALUE_FIELD", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_core__dim_labels_LABEL_TYPE__flotsam__nft__defi__dex__cex__dapp__token__operator__layer2__chadmin__project.145ec1d947"}, "test.polygon_models.not_null_silver__transactions_INPUT_DATA.3cc998f5b1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_INPUT_DATA", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_INPUT_DATA.3cc998f5b1"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.28bc84b2ae": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "LOGS_CONTRACT_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.28bc84b2ae"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_INPUTS__OBJECT.a903a96237": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "LOGS_EVENT_INPUTS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_INPUTS__OBJECT.a903a96237"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.c43ca75daa": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_BORROWING_ORIGIN_FROM_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.c43ca75daa"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__blocks_BLOCK_NUMBER.58d43342ca": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "BLOCKS_BLOCK_NUMBER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__blocks_BLOCK_NUMBER.58d43342ca"}, "test.polygon_models.not_null_silver__logs__LOG_ID.8c3f196b2a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "LOGS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 4, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INGESTED_AT", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 9, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 11, "name": "CONTRACT_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 12, "name": "EVENT_NAME", "comment": null}, "EVENT_INPUTS": {"type": "OBJECT", "index": 13, "name": "EVENT_INPUTS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 14, "name": "TOPICS", "comment": null}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "TEXT", "index": 16, "name": "EVENT_REMOVED", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__logs__LOG_ID.8c3f196b2a"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_CUMULATIVE_GAS_USED__NUMBER__FLOAT.68061c4689": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSACTIONS_CUMULATIVE_GAS_USED", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_CUMULATIVE_GAS_USED__NUMBER__FLOAT.68061c4689"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_LABEL_SUBTYPE__STRING__VARCHAR.80b827b7f5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_CORE", "name": "DIM_LABELS_LABEL_SUBTYPE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_LABEL_SUBTYPE__STRING__VARCHAR.80b827b7f5"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_GAS_LIMIT__NUMBER__FLOAT.c009cca74d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "BLOCKS_GAS_LIMIT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_GAS_LIMIT__NUMBER__FLOAT.c009cca74d"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.fb311c6cec": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TRANSFERS_ORIGIN_FROM_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.fb311c6cec"}, "test.polygon_models.not_null_silver__blocks_BLOCK_NUMBER.3ed5bd5a97": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_BLOCK_NUMBER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__blocks_BLOCK_NUMBER.3ed5bd5a97"}, "test.polygon_models.not_null_silver__transactions_TX_JSON.c989b71e6a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_TX_JSON", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_TX_JSON.c989b71e6a"}, "model.polygon_models.silver__transactions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "TRANSACTIONS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 2338763764224.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1718526136.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__transactions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_PLATFORM__STRING__VARCHAR.55fbd4c7c1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_SWAPS_PLATFORM", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_PLATFORM__STRING__VARCHAR.55fbd4c7c1"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.869407dadd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "LOGS_ORIGIN_TO_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.869407dadd"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__contract_abis_CONTRACT_ADDRESS__VARCHAR.425fbc821b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE_API", "name": "CONTRACT_ABIS_CONTRACT_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__contract_abis_CONTRACT_ADDRESS__VARCHAR.425fbc821b"}, "test.polygon_models.not_null_silver__transactions_GAS_PRICE.9ee195e584": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_GAS_PRICE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_GAS_PRICE.9ee195e584"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_PRICE__NUMBER__FLOAT.7ff329f632": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSACTIONS_GAS_PRICE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_PRICE__NUMBER__FLOAT.7ff329f632"}, "test.polygon_models.sequence_gaps_silver__logs_EVENT_INDEX__BLOCK_NUMBER__TX_HASH.8b3582ee4a": {"metadata": {"type": "BASE TABLE", "schema": "SEQUENCE_GAPS_SILVER", "name": "LOGS_EVENT_INDEX", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 2, "name": "TX_HASH", "comment": null}, "PREV_EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "PREV_EVENT_INDEX", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "GAP": {"type": "NUMBER", "index": 5, "name": "GAP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 148480.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1294.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.sequence_gaps_silver__logs_EVENT_INDEX__BLOCK_NUMBER__TX_HASH.8b3582ee4a"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze_api__contract_abis__INSERTED_TIMESTAMP__day__1.cce492bb5d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_BRONZE_API", "name": "CONTRACT_ABIS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze_api__contract_abis__INSERTED_TIMESTAMP__day__1.cce492bb5d"}, "test.polygon_models.not_null_sushi__ez_swaps_TX_HASH.5c71b07498": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_SWAPS_TX_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 8, "name": "PLATFORM", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 9, "name": "POOL_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 13, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 15, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 16, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 17, "name": "EVENT_INDEX", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 18, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 19, "name": "TOKEN_OUT", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 20, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 21, "name": "SYMBOL_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_TX_HASH.5c71b07498"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_bronze_api__token_reads_CONTRACT_ADDRESS__FUNCTION_SIG.15f6dbcf0c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BRONZE_API", "name": "TOKEN_READS_CONTRACT_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "FUNCTION_SIG": {"type": "TEXT", "index": 2, "name": "FUNCTION_SIG", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_bronze_api__token_reads_CONTRACT_ADDRESS__FUNCTION_SIG.15f6dbcf0c"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_TX_HASH__0_xX_0_9a_fA_F_.14f576932b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TRACES_TX_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_TX_HASH__0_xX_0_9a_fA_F_.14f576932b"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_Borrower__0_xX_0_9a_fA_F_.cf22d8c187": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_BORROWING_BORROWER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_Borrower__0_xX_0_9a_fA_F_.cf22d8c187"}, "test.polygon_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_ADDRESS_NAME__STRING__VARCHAR.7747aa45d1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_CORE", "name": "DIM_LABELS_ADDRESS_NAME", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_ADDRESS_NAME__STRING__VARCHAR.7747aa45d1"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__relevant_token_contracts_CONTRACT_ADDRESS.24bd782cb8": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "RELEVANT_TOKEN_CONTRACTS_CONTRACT_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__relevant_token_contracts_CONTRACT_ADDRESS.24bd782cb8"}, "test.polygon_models.not_null_sushi__ez_lending_LENDING_POOL.1cc2cec6c9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_LENDING_LENDING_POOL", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ASSET": {"type": "TEXT", "index": 8, "name": "ASSET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 9, "name": "DEPOSITOR", "comment": null}, "LENDER_IS_A_CONTRACT": {"type": "TEXT", "index": 10, "name": "LENDER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 11, "name": "LENDING_POOL_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 12, "name": "EVENT_INDEX", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 13, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_USD", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 15, "name": "LENDING_POOL", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 16, "name": "SYMBOL", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_lending_LENDING_POOL.1cc2cec6c9"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_AMOUNT__NUMBER__FLOAT.f5513895b6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_LENDING_AMOUNT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_AMOUNT__NUMBER__FLOAT.f5513895b6"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_EVENT_NAME__STRING__VARCHAR.9c08c6c888": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_SWAPS_EVENT_NAME", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_EVENT_NAME__STRING__VARCHAR.9c08c6c888"}, "test.polygon_models.not_null_sushi__ez_borrowing_TX_HASH.eeaf313cd8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_BORROWING_TX_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "BORROWER": {"type": "TEXT", "index": 8, "name": "BORROWER", "comment": null}, "BORROWER_IS_A_CONTRACT": {"type": "TEXT", "index": 9, "name": "BORROWER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "LENDING_POOL_ADDRESS", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 11, "name": "LENDING_POOL", "comment": null}, "ASSET": {"type": "TEXT", "index": 12, "name": "ASSET", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 13, "name": "SYMBOL", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 14, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 15, "name": "AMOUNT_USD", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_TX_HASH.eeaf313cd8"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__ez_matic_transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.7cbaba0e0f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_CORE", "name": "EZ_MATIC_TRANSFERS_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 16:42UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__ez_matic_transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.7cbaba0e0f"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TOKEN_IN__0_xX_0_9a_fA_F_.ae96a38071": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_SWAPS_TOKEN_IN", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TOKEN_IN__0_xX_0_9a_fA_F_.ae96a38071"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__logs__LOG_ID.780efa90bd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "LOGS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__logs__LOG_ID.780efa90bd"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_TX_HASH__0_xX_0_9a_fA_F_.0eee0960b6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "LOGS_TX_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_TX_HASH__0_xX_0_9a_fA_F_.0eee0960b6"}, "test.polygon_models.not_null_silver__transactions_EFFECTIVE_GAS_PRICE.fac733dec7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_EFFECTIVE_GAS_PRICE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_EFFECTIVE_GAS_PRICE.fac733dec7"}, "model.polygon_models.silver__contract_abis": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "CONTRACT_ABIS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "FULL_DATA": {"type": "VARIANT", "index": 2, "name": "FULL_DATA", "comment": null}, "ABI": {"type": "VARIANT", "index": 3, "name": "ABI", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 102760448.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 155923.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(_inserted_timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__contract_abis"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_LENDING_POOL_ADDRESS__0_xX_0_9a_fA_F_.3ccd0511f9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_LENDING_LENDING_POOL_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_LENDING_POOL_ADDRESS__0_xX_0_9a_fA_F_.3ccd0511f9"}, "test.polygon_models.not_null_silver__transactions_GAS_LIMIT.b5ac619228": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_GAS_LIMIT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_GAS_LIMIT.b5ac619228"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__transfers__LOG_ID.3ebab76726": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "TRANSFERS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__transfers__LOG_ID.3ebab76726"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_SHA3_UNCLES__0_xX_0_9a_fA_F_.c74b2fa922": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "BLOCKS_SHA3_UNCLES", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_SHA3_UNCLES__0_xX_0_9a_fA_F_.c74b2fa922"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__transactions_STATUS__SUCCESS__FAIL.f4150c7e34": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_SET_SILVER", "name": "TRANSACTIONS_STATUS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"VALUE_FIELD": {"type": "TEXT", "index": 1, "name": "VALUE_FIELD", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__transactions_STATUS__SUCCESS__FAIL.f4150c7e34"}, "test.polygon_models.not_null_core__ez_matic_transfers_AMOUNT.fe6f52cdc6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_CORE", "name": "EZ_MATIC_TRANSFERS_AMOUNT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "IDENTIFIER": {"type": "TEXT", "index": 4, "name": "IDENTIFIER", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "MATIC_FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "MATIC_FROM_ADDRESS", "comment": null}, "MATIC_TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "MATIC_TO_ADDRESS", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 11, "name": "AMOUNT_USD", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 12, "name": "_CALL_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 16:42UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_core__ez_matic_transfers_AMOUNT.fe6f52cdc6"}, "model.polygon_models.silver__transfers": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "TRANSFERS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "BLOCK_TIMESTAMP", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 11, "name": "RAW_AMOUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 13, "name": "EVENT_INDEX", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 159045216768.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1359787424.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(_inserted_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__transfers"}, "test.polygon_models.not_null_sushi__ez_borrowing_BLOCK_TIMESTAMP.3829c4c2c4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_BORROWING_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "BORROWER": {"type": "TEXT", "index": 8, "name": "BORROWER", "comment": null}, "BORROWER_IS_A_CONTRACT": {"type": "TEXT", "index": 9, "name": "BORROWER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "LENDING_POOL_ADDRESS", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 11, "name": "LENDING_POOL", "comment": null}, "ASSET": {"type": "TEXT", "index": 12, "name": "ASSET", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 13, "name": "SYMBOL", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 14, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 15, "name": "AMOUNT_USD", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_BLOCK_TIMESTAMP.3829c4c2c4"}, "model.polygon_models.core__fact_transactions": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_TRANSACTIONS", "database": "POLYGON_DEV", "comment": "This table contains transaction level data for the Polygon Blockchain. Each transaction will have a unique transaction hash, along with transactions fees and a MATIC value transferred when applicable. Transactions may be native MATIC transfers or interactions with contract addresses. For more information, please see [The Ethereum Organization - Transactions](https://ethereum.org/en/developers/docs/transactions/)", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Also known as block height. The block number, which indicates the length of the blockchain, increases after the addition of each new block."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block was produced."}, "BLOCK_HASH": {"type": "TEXT", "index": 3, "name": "BLOCK_HASH", "comment": "Block hash is a unique 66-character identifier that is generate when a block is produced."}, "TX_HASH": {"type": "TEXT", "index": 4, "name": "TX_HASH", "comment": "Transaction hash is a unique 66-character identifier that is generated when a transaction is executed."}, "NONCE": {"type": "NUMBER", "index": 5, "name": "NONCE", "comment": "The number of transactions sent from a given address."}, "POSITION": {"type": "NUMBER", "index": 6, "name": "POSITION", "comment": "The position of the transaction within the block."}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "The function signature of the contract call."}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": "The sending address of this transaction."}, "TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "TO_ADDRESS", "comment": "The receiving address of this transaction. This can be a contract address."}, "MATIC_VALUE": {"type": "NUMBER", "index": 10, "name": "MATIC_VALUE", "comment": "The value transacted in Matic."}, "TX_FEE": {"type": "FLOAT", "index": 11, "name": "TX_FEE", "comment": "Amount paid to validate the transaction in MATIC."}, "GAS_PRICE": {"type": "FLOAT", "index": 12, "name": "GAS_PRICE", "comment": "Cost per unit of gas in Gwei."}, "GAS_LIMIT": {"type": "NUMBER", "index": 13, "name": "GAS_LIMIT", "comment": "Maximum amount of gas allocated for the transaction."}, "GAS_USED": {"type": "NUMBER", "index": 14, "name": "GAS_USED", "comment": "Gas used by transaction."}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 15, "name": "CUMULATIVE_GAS_USED", "comment": "The total amount of gas used when this transaction was executed in the block."}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": "This column contains additional data for this transaction, and is commonly used as part of a contract interaction or as a message to the recipient."}, "STATUS": {"type": "TEXT", "index": 17, "name": "STATUS", "comment": "Status of the transaction."}, "TX_JSON": {"type": "OBJECT", "index": 18, "name": "TX_JSON", "comment": "This JSON column contains the transaction details, including event logs."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.core__fact_transactions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "BLOCKS_BLOCKCHAIN", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TOTAL_DIFFICULTY__NUMBER__FLOAT.4a0213cf40": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "BLOCKS_TOTAL_DIFFICULTY", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TOTAL_DIFFICULTY__NUMBER__FLOAT.4a0213cf40"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "BLOCKS_TX_COUNT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_INDEX__NUMBER__FLOAT.d0df352178": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "LOGS_EVENT_INDEX", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_INDEX__NUMBER__FLOAT.d0df352178"}, "test.polygon_models.not_null_core__dim_labels_LABEL_SUBTYPE.556a65235c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_CORE", "name": "DIM_LABELS_LABEL_SUBTYPE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 2, "name": "CREATOR", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "ADDRESS_NAME": {"type": "TEXT", "index": 4, "name": "ADDRESS_NAME", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 5, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 6, "name": "LABEL_SUBTYPE", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_core__dim_labels_LABEL_SUBTYPE.556a65235c"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RAW_AMOUNT__NUMBER__FLOAT.eb70e6172e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSFERS_RAW_AMOUNT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RAW_AMOUNT__NUMBER__FLOAT.eb70e6172e"}, "test.polygon_models.not_null_silver__contracts_CONTRACT_ADDRESS.18b93ee6d5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "CONTRACTS_CONTRACT_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_NAME": {"type": "TEXT", "index": 2, "name": "TOKEN_NAME", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 3, "name": "TOKEN_DECIMALS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 4, "name": "TOKEN_SYMBOL", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__contracts_CONTRACT_ADDRESS.18b93ee6d5"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contract_proxies_ID.3ac7fb13cd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "CONTRACT_PROXIES_ID", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contract_proxies_ID.3ac7fb13cd"}, "model.polygon_models.silver__relevant_abi_contracts": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "RELEVANT_ABI_CONTRACTS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 14153728.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 359615.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__relevant_abi_contracts"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_FROM_ADDRESS__0_xX_0_9a_fA_F_.48157e7169": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TRANSACTIONS_FROM_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_FROM_ADDRESS__0_xX_0_9a_fA_F_.48157e7169"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__contracts__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3d97d7eb14": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "CONTRACTS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__contracts__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3d97d7eb14"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2b4d3c83c9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_BORROWING_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2b4d3c83c9"}, "test.polygon_models.not_null_silver__traces_IDENTIFIER.ee73127ec0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRACES_IDENTIFIER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "FLOAT", "index": 6, "name": "MATIC_VALUE", "comment": null}, "GAS": {"type": "TEXT", "index": 7, "name": "GAS", "comment": null}, "GAS_USED": {"type": "TEXT", "index": 8, "name": "GAS_USED", "comment": null}, "INPUT": {"type": "TEXT", "index": 9, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 10, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 11, "name": "TYPE", "comment": null}, "IDENTIFIER": {"type": "TEXT", "index": 12, "name": "IDENTIFIER", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 13, "name": "_CALL_ID", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DATA": {"type": "OBJECT", "index": 16, "name": "DATA", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 18, "name": "SUB_TRACES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__traces_IDENTIFIER.ee73127ec0"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_core__ez_matic_transfers_BLOCK_TIMESTAMP__day__1.940673cb6e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_CORE", "name": "EZ_MATIC_TRANSFERS_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 16:42UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_core__ez_matic_transfers_BLOCK_TIMESTAMP__day__1.940673cb6e"}, "test.polygon_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "BLOCK_TIMESTAMP", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 11, "name": "RAW_AMOUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 13, "name": "EVENT_INDEX", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_SYMBOL__STRING__VARCHAR.dcace84af9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_LENDING_SYMBOL", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_SYMBOL__STRING__VARCHAR.dcace84af9"}, "test.polygon_models.not_null_core__dim_labels_BLOCKCHAIN.a4e09054d7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_CORE", "name": "DIM_LABELS_BLOCKCHAIN", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 2, "name": "CREATOR", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "ADDRESS_NAME": {"type": "TEXT", "index": 4, "name": "ADDRESS_NAME", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 5, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 6, "name": "LABEL_SUBTYPE", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_core__dim_labels_BLOCKCHAIN.a4e09054d7"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_OUT__NUMBER__FLOAT.6028b5385f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_SWAPS_AMOUNT_OUT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_OUT__NUMBER__FLOAT.6028b5385f"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.81fe3d170a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TRANSFERS_ORIGIN_TO_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.81fe3d170a"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.d35c7fe495": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_SWAPS_ORIGIN_FROM_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.d35c7fe495"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_TO_ADDRESS__0_xX_0_9a_fA_F_.6729f77190": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TRANSACTIONS_TO_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_TO_ADDRESS__0_xX_0_9a_fA_F_.6729f77190"}, "test.polygon_models.not_null_core__ez_matic_transfers_BLOCK_TIMESTAMP.dc9b204fcc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_CORE", "name": "EZ_MATIC_TRANSFERS_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "IDENTIFIER": {"type": "TEXT", "index": 4, "name": "IDENTIFIER", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "MATIC_FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "MATIC_FROM_ADDRESS", "comment": null}, "MATIC_TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "MATIC_TO_ADDRESS", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 11, "name": "AMOUNT_USD", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 12, "name": "_CALL_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 16:43UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_core__ez_matic_transfers_BLOCK_TIMESTAMP.dc9b204fcc"}, "test.polygon_models.not_null_silver__traces_GAS.53d7bbcf6a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRACES_GAS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "FLOAT", "index": 6, "name": "MATIC_VALUE", "comment": null}, "GAS": {"type": "TEXT", "index": 7, "name": "GAS", "comment": null}, "GAS_USED": {"type": "TEXT", "index": 8, "name": "GAS_USED", "comment": null}, "INPUT": {"type": "TEXT", "index": 9, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 10, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 11, "name": "TYPE", "comment": null}, "IDENTIFIER": {"type": "TEXT", "index": 12, "name": "IDENTIFIER", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 13, "name": "_CALL_ID", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DATA": {"type": "OBJECT", "index": 16, "name": "DATA", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 18, "name": "SUB_TRACES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__traces_GAS.53d7bbcf6a"}, "test.polygon_models.not_null_sushi__ez_swaps_BLOCK_NUMBER.4da3b3d654": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_SWAPS_BLOCK_NUMBER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 8, "name": "PLATFORM", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 9, "name": "POOL_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 13, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 15, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 16, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 17, "name": "EVENT_INDEX", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 18, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 19, "name": "TOKEN_OUT", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 20, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 21, "name": "SYMBOL_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_BLOCK_NUMBER.4da3b3d654"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_NETWORK__STRING__VARCHAR.31e2a1e5bd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "BLOCKS_NETWORK", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_NETWORK__STRING__VARCHAR.31e2a1e5bd"}, "test.polygon_models.not_null_bronze_api__contract_abis_CONTRACT_ADDRESS.656bc51ae4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE_API", "name": "CONTRACT_ABIS_CONTRACT_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "ABI_DATA": {"type": "VARIANT", "index": 2, "name": "ABI_DATA", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_bronze_api__contract_abis_CONTRACT_ADDRESS.656bc51ae4"}, "test.polygon_models.not_null_silver__traces_BLOCK_TIMESTAMP.4053e07c73": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRACES_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "FLOAT", "index": 6, "name": "MATIC_VALUE", "comment": null}, "GAS": {"type": "TEXT", "index": 7, "name": "GAS", "comment": null}, "GAS_USED": {"type": "TEXT", "index": 8, "name": "GAS_USED", "comment": null}, "INPUT": {"type": "TEXT", "index": 9, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 10, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 11, "name": "TYPE", "comment": null}, "IDENTIFIER": {"type": "TEXT", "index": 12, "name": "IDENTIFIER", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 13, "name": "_CALL_ID", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DATA": {"type": "OBJECT", "index": 16, "name": "DATA", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 18, "name": "SUB_TRACES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__traces_BLOCK_TIMESTAMP.4053e07c73"}, "test.polygon_models.not_null_sushi__ez_swaps_TX_TO.1c512c542a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_SWAPS_TX_TO", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 8, "name": "PLATFORM", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 9, "name": "POOL_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 13, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 15, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 16, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 17, "name": "EVENT_INDEX", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 18, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 19, "name": "TOKEN_OUT", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 20, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 21, "name": "SYMBOL_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_TX_TO.1c512c542a"}, "model.polygon_models.sushi__dim_kashi_pairs": {"metadata": {"type": "BASE TABLE", "schema": "SUSHI", "name": "DIM_KASHI_PAIRS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"PAIR_ADDRESS": {"type": "TEXT", "index": 1, "name": "PAIR_ADDRESS", "comment": null}, "PAIR_NAME": {"type": "TEXT", "index": 2, "name": "PAIR_NAME", "comment": null}, "PAIR_DECIMALS": {"type": "NUMBER", "index": 3, "name": "PAIR_DECIMALS", "comment": null}, "ASSET_SYMBOL": {"type": "TEXT", "index": 4, "name": "ASSET_SYMBOL", "comment": null}, "ASSET_ADDRESS": {"type": "TEXT", "index": 5, "name": "ASSET_ADDRESS", "comment": null}, "COLLATERAL_SYMBOL": {"type": "TEXT", "index": 6, "name": "COLLATERAL_SYMBOL", "comment": null}, "COLLATERAL_ADDRESS": {"type": "TEXT", "index": 7, "name": "COLLATERAL_ADDRESS", "comment": null}, "ASSET_DECIMALS": {"type": "NUMBER", "index": 8, "name": "ASSET_DECIMALS", "comment": null}, "COLLATERAL_DECIMALS": {"type": "NUMBER", "index": 9, "name": "COLLATERAL_DECIMALS", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 12800.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 128.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.sushi__dim_kashi_pairs"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_bronze_api__contract_abis_CONTRACT_ADDRESS___0x_0_9a_fA_F_40_.62635507b2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_BRONZE_API", "name": "CONTRACT_ABIS_CONTRACT_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_bronze_api__contract_abis_CONTRACT_ADDRESS___0x_0_9a_fA_F_40_.62635507b2"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_core__dim_labels_BLOCKCHAIN__CREATOR__ADDRESS.de325ffec9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_CORE", "name": "DIM_LABELS_BLOCKCHAIN", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 2, "name": "CREATOR", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_core__dim_labels_BLOCKCHAIN__CREATOR__ADDRESS.de325ffec9"}, "model.polygon_models.core__dim_labels": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "DIM_LABELS", "database": "POLYGON_DEV", "comment": "This table contains labels for addresses on the Polygon Blockchain.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The name of the blockchain."}, "CREATOR": {"type": "TEXT", "index": 2, "name": "CREATOR", "comment": "The name of the creator of the label."}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": "Address that the label is for. This is the field that should be used to join other tables with labels."}, "ADDRESS_NAME": {"type": "TEXT", "index": 4, "name": "ADDRESS_NAME", "comment": "The most granular label for this address."}, "LABEL_TYPE": {"type": "TEXT", "index": 5, "name": "LABEL_TYPE", "comment": "A high-level category describing the addresses main function or ownership."}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 6, "name": "LABEL_SUBTYPE", "comment": "A sub-category nested within label type providing further detail."}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": "The name of the project for this address."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.core__dim_labels"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_TX_HASH__0_xX_0_9a_fA_F_.fb7184c78a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_LENDING_TX_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_TX_HASH__0_xX_0_9a_fA_F_.fb7184c78a"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_sushi__ez_lending__LOG_ID.9fb554f90f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SUSHI", "name": "EZ_LENDING", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_sushi__ez_lending__LOG_ID.9fb554f90f"}, "test.polygon_models.not_null_sushi__ez_swaps_ORIGIN_FUNCTION_SIGNATURE.681d6adb74": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_SWAPS_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 8, "name": "PLATFORM", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 9, "name": "POOL_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 13, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 15, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 16, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 17, "name": "EVENT_INDEX", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 18, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 19, "name": "TOKEN_OUT", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 20, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 21, "name": "SYMBOL_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_ORIGIN_FUNCTION_SIGNATURE.681d6adb74"}, "test.polygon_models.not_null_sushi__ez_lending_BLOCK_TIMESTAMP.47c8a01531": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_LENDING_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ASSET": {"type": "TEXT", "index": 8, "name": "ASSET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 9, "name": "DEPOSITOR", "comment": null}, "LENDER_IS_A_CONTRACT": {"type": "TEXT", "index": 10, "name": "LENDER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 11, "name": "LENDING_POOL_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 12, "name": "EVENT_INDEX", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 13, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_USD", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 15, "name": "LENDING_POOL", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 16, "name": "SYMBOL", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_lending_BLOCK_TIMESTAMP.47c8a01531"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_NAME__STRING__VARCHAR.7af2bc20cd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "LOGS_EVENT_NAME", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_NAME__STRING__VARCHAR.7af2bc20cd"}, "test.polygon_models.not_null_silver__blocks_GAS_LIMIT.a66366ccf7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_GAS_LIMIT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__blocks_GAS_LIMIT.a66366ccf7"}, "test.polygon_models.not_null_silver__blocks_SHA3_UNCLES.e7c903103e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_SHA3_UNCLES", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__blocks_SHA3_UNCLES.e7c903103e"}, "model.polygon_models.sushi__ez_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SUSHI", "name": "EZ_SWAPS", "database": "POLYGON_DEV", "comment": "This table currently contains swap events from the ```fact_event_logs``` table for SushiSwap, along with other helpful columns including an amount USD where possible. \nNote: A rule has been put in place to null out the amount_USD if that number is too divergent between amount_in_USD and amount_out_usd. This can happen for swaps of less liquid tokens during very high fluctuation of price.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Also known as block height. The block number, which indicates the length of the blockchain, increases after the addition of each new block."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block was produced."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Transaction hash is a unique 66-character identifier that is generated when a transaction is executed. This field will not be unique in this table, as a given transaction can include multiple events."}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "The function signature of the contract call."}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": "The from address of this transaction."}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": "The to address of this transaction."}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": "The address interacted with for a given event."}, "PLATFORM": {"type": "TEXT", "index": 8, "name": "PLATFORM", "comment": "This field denotes which application the liquidity pool belongs to."}, "POOL_NAME": {"type": "TEXT", "index": 9, "name": "POOL_NAME", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": "The decoded event name for a given event."}, "AMOUNT_IN": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN", "comment": "The amount of tokens put into the swap."}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN_USD", "comment": "The amount of tokens put into the swap converted to USD using the price of the token."}, "AMOUNT_OUT": {"type": "FLOAT", "index": 13, "name": "AMOUNT_OUT", "comment": "The amount of tokens taken out of or received from the swap."}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_USD", "comment": "The amount of tokens taken out of or received from the swap converted to USD using the price of the token."}, "SENDER": {"type": "TEXT", "index": 15, "name": "SENDER", "comment": "The Router is the Sender in the swap function."}, "TX_TO": {"type": "TEXT", "index": 16, "name": "TX_TO", "comment": "The tx_to is the address who receives the swapped token. This corresponds to the \"to\" field in the swap function."}, "EVENT_INDEX": {"type": "NUMBER", "index": 17, "name": "EVENT_INDEX", "comment": "Event number within a transaction."}, "TOKEN_IN": {"type": "TEXT", "index": 18, "name": "TOKEN_IN", "comment": "The address of the token sent for swap."}, "TOKEN_OUT": {"type": "TEXT", "index": 19, "name": "TOKEN_OUT", "comment": "The address of the token being swapped to."}, "SYMBOL_IN": {"type": "TEXT", "index": 20, "name": "SYMBOL_IN", "comment": "The symbol of the token sent for swap."}, "SYMBOL_OUT": {"type": "TEXT", "index": 21, "name": "SYMBOL_OUT", "comment": "The symbol of the token being swapped to."}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": "This is the primary key for this table. This is a concatenation of the transaction hash and the event index at which the event occurred."}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 830322688.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 6270531.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_HASH__0_xX_0_9a_fA_F_.923a822bca": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "BLOCKS_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_HASH__0_xX_0_9a_fA_F_.923a822bca"}, "model.polygon_models.core__fact_traces": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_TRACES", "database": "POLYGON_DEV", "comment": "This table contains flattened trace data for internal contract calls on the Polygon Blockchain. Hex encoded fields can be decoded to integers by using `polygon.public.udf_hex_to_int()`.", "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": "The transaction hash for the trace. Please note, this is not necessarily unique in this table as transactions frequently have multiple traces."}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": "The block number of this transaction."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": "The block timestamp of this transaction."}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": "The sending address of this trace. This is not necessarily the from address of the transaction."}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": "The receiving address of this trace. This is not necessarily the to address of the transaction."}, "MATIC_VALUE": {"type": "FLOAT", "index": 6, "name": "MATIC_VALUE", "comment": "The amount of MATIC transferred in this trace."}, "GAS": {"type": "TEXT", "index": 7, "name": "GAS", "comment": "The gas supplied for this trace."}, "GAS_USED": {"type": "TEXT", "index": 8, "name": "GAS_USED", "comment": "The gas used for this trace."}, "INPUT": {"type": "TEXT", "index": 9, "name": "INPUT", "comment": "The input data for this trace."}, "OUTPUT": {"type": "TEXT", "index": 10, "name": "OUTPUT", "comment": "The output data for this trace."}, "TYPE": {"type": "TEXT", "index": 11, "name": "TYPE", "comment": "The type of internal transaction. Common trace types are `CALL`, `DELEGATECALL`, and `STATICCALL`."}, "IDENTIFIER": {"type": "TEXT", "index": 12, "name": "IDENTIFIER", "comment": "This field represents the position and type of the trace within the transaction."}, "DATA": {"type": "OBJECT", "index": 13, "name": "DATA", "comment": "The raw JSON data for this trace."}, "TX_STATUS": {"type": "TEXT", "index": 14, "name": "TX_STATUS", "comment": "Status of the transaction."}, "SUB_TRACES": {"type": "NUMBER", "index": 15, "name": "SUB_TRACES", "comment": "The amount of nested sub traces for this trace."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.core__fact_traces"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_IN_USD__NUMBER__FLOAT.9a8b1e0480": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_SWAPS_AMOUNT_IN_USD", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_IN_USD__NUMBER__FLOAT.9a8b1e0480"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_BLOCK_NUMBER__NUMBER__FLOAT.7b69aae0de": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_SWAPS_BLOCK_NUMBER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_BLOCK_NUMBER__NUMBER__FLOAT.7b69aae0de"}, "test.polygon_models.not_null_core__ez_matic_transfers_MATIC_TO_ADDRESS.8231921086": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_CORE", "name": "EZ_MATIC_TRANSFERS_MATIC_TO_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "IDENTIFIER": {"type": "TEXT", "index": 4, "name": "IDENTIFIER", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "MATIC_FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "MATIC_FROM_ADDRESS", "comment": null}, "MATIC_TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "MATIC_TO_ADDRESS", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 11, "name": "AMOUNT_USD", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 12, "name": "_CALL_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 16:43UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_core__ez_matic_transfers_MATIC_TO_ADDRESS.8231921086"}, "test.polygon_models.not_null_silver__transactions_BLOCK_NUMBER.574ebe21b0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_BLOCK_NUMBER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_BLOCK_NUMBER.574ebe21b0"}, "test.polygon_models.not_null_silver__traces_MATIC_VALUE.16932a2346": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRACES_MATIC_VALUE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "FLOAT", "index": 6, "name": "MATIC_VALUE", "comment": null}, "GAS": {"type": "TEXT", "index": 7, "name": "GAS", "comment": null}, "GAS_USED": {"type": "TEXT", "index": 8, "name": "GAS_USED", "comment": null}, "INPUT": {"type": "TEXT", "index": 9, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 10, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 11, "name": "TYPE", "comment": null}, "IDENTIFIER": {"type": "TEXT", "index": 12, "name": "IDENTIFIER", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 13, "name": "_CALL_ID", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DATA": {"type": "OBJECT", "index": 16, "name": "DATA", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 18, "name": "SUB_TRACES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__traces_MATIC_VALUE.16932a2346"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__traces_BLOCK_TIMESTAMP__day__1.0589c5d87f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "TRACES_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__traces_BLOCK_TIMESTAMP__day__1.0589c5d87f"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_IN__NUMBER__FLOAT.ce483aa368": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_SWAPS_AMOUNT_IN", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_IN__NUMBER__FLOAT.ce483aa368"}, "test.polygon_models.not_null_silver__logs_CONTRACT_ADDRESS.b78d8c86eb": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "LOGS_CONTRACT_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 4, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INGESTED_AT", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 9, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 11, "name": "CONTRACT_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 12, "name": "EVENT_NAME", "comment": null}, "EVENT_INPUTS": {"type": "OBJECT", "index": 13, "name": "EVENT_INPUTS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 14, "name": "TOPICS", "comment": null}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "TEXT", "index": 16, "name": "EVENT_REMOVED", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__logs_CONTRACT_ADDRESS.b78d8c86eb"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_swaps_BLOCK_TIMESTAMP__day__1.ccd4b95299": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SUSHI", "name": "EZ_SWAPS_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_swaps_BLOCK_TIMESTAMP__day__1.ccd4b95299"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__traces__CALL_ID.2854a11c5a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "TRACES", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_CALL_ID": {"type": "TEXT", "index": 1, "name": "_CALL_ID", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__traces__CALL_ID.2854a11c5a"}, "test.polygon_models.not_null_silver__blocks_GAS_USED.637b37099a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_GAS_USED", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__blocks_GAS_USED.637b37099a"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_core__dim_labels_BLOCKCHAIN__polygon.5e6c2c1b9f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_SET_CORE", "name": "DIM_LABELS_BLOCKCHAIN", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"VALUE_FIELD": {"type": "TEXT", "index": 1, "name": "VALUE_FIELD", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_core__dim_labels_BLOCKCHAIN__polygon.5e6c2c1b9f"}, "test.polygon_models.not_null_silver__transactions_MATIC_VALUE.e723701716": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_MATIC_VALUE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_MATIC_VALUE.e723701716"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_EVENT_INDEX__NUMBER__FLOAT.64324e3895": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_LENDING_EVENT_INDEX", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_EVENT_INDEX__NUMBER__FLOAT.64324e3895"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_PARENT_HASH__0_xX_0_9a_fA_F_.164fb6eb16": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "BLOCKS_PARENT_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_PARENT_HASH__0_xX_0_9a_fA_F_.164fb6eb16"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.3e3828617a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_LENDING_ORIGIN_TO_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.3e3828617a"}, "test.polygon_models.not_null_silver__blocks_TOTAL_DIFFICULTY.64edc4b2a9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_TOTAL_DIFFICULTY", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__blocks_TOTAL_DIFFICULTY.64edc4b2a9"}, "test.polygon_models.not_null_silver__transfers_TX_HASH.9444c39bdc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS_TX_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "BLOCK_TIMESTAMP", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 11, "name": "RAW_AMOUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 13, "name": "EVENT_INDEX", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transfers_TX_HASH.9444c39bdc"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_SYMBOL__STRING__VARCHAR.9b060d1d35": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_BORROWING_SYMBOL", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_SYMBOL__STRING__VARCHAR.9b060d1d35"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_core__ez_matic_transfers__CALL_ID.e29d5382c2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_CORE", "name": "EZ_MATIC_TRANSFERS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_CALL_ID": {"type": "TEXT", "index": 1, "name": "_CALL_ID", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 16:43UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_core__ez_matic_transfers__CALL_ID.e29d5382c2"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_NONCE__NUMBER__FLOAT.e9f3267e00": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSACTIONS_NONCE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_NONCE__NUMBER__FLOAT.e9f3267e00"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_DEPOSITOR__0_xX_0_9a_fA_F_.560921e0f1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_LENDING_DEPOSITOR", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_DEPOSITOR__0_xX_0_9a_fA_F_.560921e0f1"}, "test.polygon_models.not_null_silver__blocks_RECEIPTS_ROOT.cd3163505f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_RECEIPTS_ROOT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__blocks_RECEIPTS_ROOT.cd3163505f"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__transactions_TX_HASH.c217683bc6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "TRANSACTIONS_TX_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__transactions_TX_HASH.c217683bc6"}, "model.polygon_models.silver__contracts": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "CONTRACTS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_NAME": {"type": "TEXT", "index": 2, "name": "TOKEN_NAME", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 3, "name": "TOKEN_DECIMALS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 4, "name": "TOKEN_SYMBOL", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 10596352.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 168788.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__contracts"}, "test.polygon_models.not_null_sushi__ez_borrowing_LENDING_POOL.7144d8c199": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_BORROWING_LENDING_POOL", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "BORROWER": {"type": "TEXT", "index": 8, "name": "BORROWER", "comment": null}, "BORROWER_IS_A_CONTRACT": {"type": "TEXT", "index": 9, "name": "BORROWER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "LENDING_POOL_ADDRESS", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 11, "name": "LENDING_POOL", "comment": null}, "ASSET": {"type": "TEXT", "index": 12, "name": "ASSET", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 13, "name": "SYMBOL", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 14, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 15, "name": "AMOUNT_USD", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_LENDING_POOL.7144d8c199"}, "test.polygon_models.not_null_silver__blocks_SIZE.f1fa8f466b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_SIZE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__blocks_SIZE.f1fa8f466b"}, "test.polygon_models.not_null_silver__transfers_FROM_ADDRESS.cc15ca835c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS_FROM_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "BLOCK_TIMESTAMP", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 11, "name": "RAW_AMOUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 13, "name": "EVENT_INDEX", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transfers_FROM_ADDRESS.cc15ca835c"}, "test.polygon_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_BLOCKCHAIN", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96"}, "test.polygon_models.not_null_sushi__ez_lending_BLOCK_NUMBER.7191bdf706": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_LENDING_BLOCK_NUMBER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ASSET": {"type": "TEXT", "index": 8, "name": "ASSET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 9, "name": "DEPOSITOR", "comment": null}, "LENDER_IS_A_CONTRACT": {"type": "TEXT", "index": 10, "name": "LENDER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 11, "name": "LENDING_POOL_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 12, "name": "EVENT_INDEX", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 13, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_USD", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 15, "name": "LENDING_POOL", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 16, "name": "SYMBOL", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_lending_BLOCK_NUMBER.7191bdf706"}, "test.polygon_models.not_null_silver__transfers_RAW_AMOUNT.c53823d6c7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS_RAW_AMOUNT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "BLOCK_TIMESTAMP", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 11, "name": "RAW_AMOUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 13, "name": "EVENT_INDEX", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transfers_RAW_AMOUNT.c53823d6c7"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_SYMBOL_OUT__STRING__VARCHAR.9fa7d6e04c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_SWAPS_SYMBOL_OUT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_SYMBOL_OUT__STRING__VARCHAR.9fa7d6e04c"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_AMOUNT_USD__NUMBER__FLOAT.010574c5b1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_LENDING_AMOUNT_USD", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_AMOUNT_USD__NUMBER__FLOAT.010574c5b1"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.8e89d13bed": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TRANSFERS_CONTRACT_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.8e89d13bed"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.d6ed59e98b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SUSHI", "name": "EZ_SWAPS_CONTRACT_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.d6ed59e98b"}, "model.polygon_models.streamline__transactions_realtime": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "TRANSACTIONS_REALTIME", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.streamline__transactions_realtime"}, "test.polygon_models.not_null_sushi__ez_swaps_TOKEN_IN.8093c41dbe": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_SWAPS_TOKEN_IN", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 8, "name": "PLATFORM", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 9, "name": "POOL_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 13, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 15, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 16, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 17, "name": "EVENT_INDEX", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 18, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 19, "name": "TOKEN_OUT", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 20, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 21, "name": "SYMBOL_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_TOKEN_IN.8093c41dbe"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__contract_abis__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.aabf36df67": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE_API", "name": "CONTRACT_ABIS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__contract_abis__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.aabf36df67"}, "model.polygon_models.core__fact_token_transfers": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_TOKEN_TRANSFERS", "database": "POLYGON_DEV", "comment": "This table contains events on the Polygon 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. Decimal adjustments for a token address can be found in ```dim_contracts```. This table will not contain transfers of native ETH.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Also known as block height. The block number, which indicates the length of the blockchain, increases after the addition of each new block."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block was produced."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Transaction hash is a unique 66-character identifier that is generated when a transaction is executed. This will not be unique in this table as a transaction could include multiple transfer events."}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "The function signature of this transaction."}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": "The from address of this transaction."}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": "The to address of this transaction."}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": "Contract address of the token being transferred."}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": "The sending address of this transfer."}, "TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "TO_ADDRESS", "comment": "The receiving address of this transfer. This can be a contract address."}, "RAW_AMOUNT": {"type": "FLOAT", "index": 10, "name": "RAW_AMOUNT", "comment": "The amount of tokens transferred. This value is not decimal adjusted."}, "_LOG_ID": {"type": "TEXT", "index": 11, "name": "_LOG_ID", "comment": "This is the primary key for this table. This is a concatenation of the transaction hash and the event index at which the transfer event occurred. This field can be used to find more details on the event within the ```fact_event_logs``` table."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.core__fact_token_transfers"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_BLOCK_NUMBER__NUMBER__FLOAT.35c6b5d227": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_LENDING_BLOCK_NUMBER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_BLOCK_NUMBER__NUMBER__FLOAT.35c6b5d227"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.a59d6ffc6a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "LOGS_ORIGIN_FROM_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.a59d6ffc6a"}, "test.polygon_models.not_null_core__dim_labels_LABEL_TYPE.65b0f6f1ed": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_CORE", "name": "DIM_LABELS_LABEL_TYPE", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 2, "name": "CREATOR", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "ADDRESS_NAME": {"type": "TEXT", "index": 4, "name": "ADDRESS_NAME", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 5, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 6, "name": "LABEL_SUBTYPE", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_core__dim_labels_LABEL_TYPE.65b0f6f1ed"}, "test.polygon_models.not_null_silver__logs_EVENT_INDEX.b97eeb39d7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "LOGS_EVENT_INDEX", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 4, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INGESTED_AT", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 9, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 11, "name": "CONTRACT_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 12, "name": "EVENT_NAME", "comment": null}, "EVENT_INPUTS": {"type": "OBJECT", "index": 13, "name": "EVENT_INPUTS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 14, "name": "TOPICS", "comment": null}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "TEXT", "index": 16, "name": "EVENT_REMOVED", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 17, "name": "TX_STATUS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__logs_EVENT_INDEX.b97eeb39d7"}, "model.polygon_models.bronze__transactions": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "TRANSACTIONS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RECORD_ID": {"type": "TEXT", "index": 1, "name": "RECORD_ID", "comment": null}, "TX_ID": {"type": "TEXT", "index": 2, "name": "TX_ID", "comment": null}, "TX_BLOCK_INDEX": {"type": "NUMBER", "index": 3, "name": "TX_BLOCK_INDEX", "comment": null}, "OFFSET_ID": {"type": "NUMBER", "index": 4, "name": "OFFSET_ID", "comment": null}, "BLOCK_ID": {"type": "NUMBER", "index": 5, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 7, "name": "NETWORK", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 8, "name": "CHAIN_ID", "comment": null}, "TX": {"type": "VARIANT", "index": 9, "name": "TX", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.bronze__transactions"}, "test.polygon_models.not_null_silver__transfers_TO_ADDRESS.2ea6a02b7c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS_TO_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "BLOCK_TIMESTAMP", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 11, "name": "RAW_AMOUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 13, "name": "EVENT_INDEX", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transfers_TO_ADDRESS.2ea6a02b7c"}, "test.polygon_models.not_null_silver__transactions_INGESTED_AT.98e6b66449": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_INGESTED_AT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_INGESTED_AT.98e6b66449"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze_api__token_reads__INSERTED_TIMESTAMP__day__1.c8280743d7": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_BRONZE_API", "name": "TOKEN_READS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze_api__token_reads__INSERTED_TIMESTAMP__day__1.c8280743d7"}, "test.polygon_models.not_null_silver__transactions_GAS_USED.1c943486c0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_GAS_USED", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_GAS_USED.1c943486c0"}, "model.polygon_models.streamline__complete_blocks": {"metadata": {"type": "BASE TABLE", "schema": "STREAMLINE", "name": "COMPLETE_BLOCKS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 700661248.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 37641688.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(ROUND(block_number, -3))", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.streamline__complete_blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_TO_ADDRESS__0_xX_0_9a_fA_F_.f65ff6bdb6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TRANSFERS_TO_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_TO_ADDRESS__0_xX_0_9a_fA_F_.f65ff6bdb6"}, "test.polygon_models.not_null_silver__transfers_BLOCK_NUMBER.d11bbde531": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS_BLOCK_NUMBER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "BLOCK_TIMESTAMP", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 11, "name": "RAW_AMOUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 13, "name": "EVENT_INDEX", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transfers_BLOCK_NUMBER.d11bbde531"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_FROM_ADDRESS__0_xX_0_9a_fA_F_.b404693575": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TRACES_FROM_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_FROM_ADDRESS__0_xX_0_9a_fA_F_.b404693575"}, "test.polygon_models.not_null_silver__transactions_CUMULATIVE_GAS_USED.2ff9788f8f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_CUMULATIVE_GAS_USED", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_CUMULATIVE_GAS_USED.2ff9788f8f"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_BLOCK_NUMBER__NUMBER.73461cc432": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "LOGS_BLOCK_NUMBER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_BLOCK_NUMBER__NUMBER.73461cc432"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.c09d40c178": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_SWAPS_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.c09d40c178"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "TRANSACTIONS_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contracts_CONTRACT_ADDRESS.f84f93870c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "CONTRACTS_CONTRACT_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contracts_CONTRACT_ADDRESS.f84f93870c"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_NUMBER__NUMBER__FLOAT.c48e941615": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSACTIONS_BLOCK_NUMBER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_NUMBER__NUMBER__FLOAT.c48e941615"}, "test.polygon_models.not_null_sushi__ez_swaps_ORIGIN_FROM_ADDRESS.128c7fd237": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_SWAPS_ORIGIN_FROM_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 8, "name": "PLATFORM", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 9, "name": "POOL_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 13, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 15, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 16, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 17, "name": "EVENT_INDEX", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 18, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 19, "name": "TOKEN_OUT", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 20, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 21, "name": "SYMBOL_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_ORIGIN_FROM_ADDRESS.128c7fd237"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_GAS_USED__NUMBER__FLOAT.bde7aa758f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "BLOCKS_GAS_USED", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_GAS_USED__NUMBER__FLOAT.bde7aa758f"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.c39585c6f3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "LOGS_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.c39585c6f3"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_SYMBOL_IN__STRING__VARCHAR.b1aea9c82f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_SWAPS_SYMBOL_IN", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_SYMBOL_IN__STRING__VARCHAR.b1aea9c82f"}, "test.polygon_models.not_null_core__ez_matic_transfers_AMOUNT_USD.8cd2531d9f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_CORE", "name": "EZ_MATIC_TRANSFERS_AMOUNT_USD", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "IDENTIFIER": {"type": "TEXT", "index": 4, "name": "IDENTIFIER", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "MATIC_FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "MATIC_FROM_ADDRESS", "comment": null}, "MATIC_TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "MATIC_TO_ADDRESS", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 11, "name": "AMOUNT_USD", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 12, "name": "_CALL_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 16:43UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_core__ez_matic_transfers_AMOUNT_USD.8cd2531d9f"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_FROM_ADDRESS__0_xX_0_9a_fA_F_.0479073084": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TRANSFERS_FROM_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_FROM_ADDRESS__0_xX_0_9a_fA_F_.0479073084"}, "test.polygon_models.not_null_sushi__ez_swaps_BLOCK_TIMESTAMP.64d0de4b09": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_SWAPS_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 8, "name": "PLATFORM", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 9, "name": "POOL_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 13, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 15, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 16, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 17, "name": "EVENT_INDEX", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 18, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 19, "name": "TOKEN_OUT", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 20, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 21, "name": "SYMBOL_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_BLOCK_TIMESTAMP.64d0de4b09"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_TX_HASH__0_xX_0_9a_fA_F_.558497d3b6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TRANSACTIONS_TX_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_TX_HASH__0_xX_0_9a_fA_F_.558497d3b6"}, "model.polygon_models.sushi__ez_borrowing": {"metadata": {"type": "BASE TABLE", "schema": "SUSHI", "name": "EZ_BORROWING", "database": "POLYGON_DEV", "comment": "This is a table that shows all the events on polygon that are related to Borrowing or repaying the loan for sushi", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block was produced."}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": "Also known as block height. The block number, which indicates the length of the blockchain, increases after the addition of each new block."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Transaction hash is a unique 66-character identifier that is generated when a transaction is executed. This field will not be unique in this table, as a given transaction can include multiple events."}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": "The action that the user is taking.\n Borrow: user is borrowing an asset\n Repay: user is repaying the asset that they have borrowed in a previous loan\n Add collateral: user is depositing collateral for their loan. This happens some times in the same transaction as the borrowing transaction and some times in a separate transaction. \n Remove collateral: user is withdrawing collateral. This happens some times in the same transaction as the borrowing transaction and some times in a separate transaction."}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": "The address of the user who initiates the transaction."}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": "The person who initiates the depositing transaction has to interact with this address. This address belongs to the lending platform or directs the transactio there."}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "BORROWER": {"type": "TEXT", "index": 8, "name": "BORROWER", "comment": ""}, "BORROWER_IS_A_CONTRACT": {"type": "TEXT", "index": 9, "name": "BORROWER_IS_A_CONTRACT", "comment": "If the depositor of collateral is a contract then its a Yes, if the depositor of collateral is a normal address it is a No."}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "LENDING_POOL_ADDRESS", "comment": "The address of the lending pool. For sushi this will be the address of the kashi pair."}, "LENDING_POOL": {"type": "TEXT", "index": 11, "name": "LENDING_POOL", "comment": "The name of the lending pool."}, "ASSET": {"type": "TEXT", "index": 12, "name": "ASSET", "comment": "The address of the asset/collateral token that is being borrowed/repayed/deposited etc. depending on the action"}, "SYMBOL": {"type": "TEXT", "index": 13, "name": "SYMBOL", "comment": "The symbol of the asset/collateral that is payed or received, depending on the action"}, "AMOUNT": {"type": "FLOAT", "index": 14, "name": "AMOUNT", "comment": "The meaning depends on the action:\nBorrow: The amount of the asset that the user is borrowing or\nRepay: The amount of the asset that the user is repaying\nAdd collateral: The amount of collateral that the user is depositing\nRemove collateral: The amount of collateral that the user is withdrawing"}, "AMOUNT_USD": {"type": "FLOAT", "index": 15, "name": "AMOUNT_USD", "comment": "The meaning depends on the action:\nBorrow: The amount of the asset in USD that the user is borrowing or\nRepay: The amount of the asset in USD that the user is repaying\nAdd collateral: The amount of collateral in USD that the user is depositing\nRemove collateral: The amount of collateral in USD that the user is withdrawing"}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": "This is the primary key for this table. This is a concatenation of the transaction hash and the event index at which the event occurred."}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 3669504.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 20546.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.sushi__ez_borrowing"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_DIFFICULTY__NUMBER__FLOAT.4b5343dd2c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "BLOCKS_DIFFICULTY", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_DIFFICULTY__NUMBER__FLOAT.4b5343dd2c"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_EVENT_INDEX__NUMBER__FLOAT.311b76dea2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_SWAPS_EVENT_INDEX", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_EVENT_INDEX__NUMBER__FLOAT.311b76dea2"}, "model.polygon_models.core__fact_event_logs": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_EVENT_LOGS", "database": "POLYGON_DEV", "comment": "This table contains flattened event logs from transactions on the Polygon Blockchain. Transactions may have multiple events, which are denoted by the event index for a transaction hash. Therefore, this table is unique on the combination of transaction hash and event index. Event names are decoded in this table where possible. The event inputs column will contain the log details in JSON format. Specific fields can be pulled from this column using the following sample format: ```event_inputs::: as ```.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Also known as block height. The block number, which indicates the length of the blockchain, increases after the addition of each new block."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block was produced."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Transaction hash is a unique 66-character identifier that is generated when a transaction is executed. This field will not be unique in this table, as a given transaction can include multiple events."}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "The function signature of this transaction."}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": "The from address of this transaction."}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": "The to address of this transaction."}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": "Event number within a transaction."}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": "The address interacted with for a given event."}, "CONTRACT_NAME": {"type": "TEXT", "index": 9, "name": "CONTRACT_NAME", "comment": "The name of the contract or token, where possible."}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": "The decoded event name for a given event."}, "EVENT_INPUTS": {"type": "OBJECT", "index": 11, "name": "EVENT_INPUTS", "comment": "The decoded event inputs for a given event."}, "TOPICS": {"type": "VARIANT", "index": 12, "name": "TOPICS", "comment": "The un-decoded event input topics."}, "DATA": {"type": "TEXT", "index": 13, "name": "DATA", "comment": "The un-decoded event data."}, "EVENT_REMOVED": {"type": "TEXT", "index": 14, "name": "EVENT_REMOVED", "comment": "Whether the event has been removed from the transaction."}, "TX_STATUS": {"type": "TEXT", "index": 15, "name": "TX_STATUS", "comment": "Status of the transaction."}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": "This is the primary key for this table. This is a concatenation of the transaction hash and the event index at which the event occurred."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.core__fact_event_logs"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_AMOUNT__NUMBER__FLOAT.28b1f9641c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_BORROWING_AMOUNT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_AMOUNT__NUMBER__FLOAT.28b1f9641c"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_lending_BLOCK_TIMESTAMP__day__7.71e49e375e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SUSHI", "name": "EZ_LENDING_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_lending_BLOCK_TIMESTAMP__day__7.71e49e375e"}, "model.polygon_models.streamline__blocks": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "BLOCKS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.streamline__blocks"}, "test.polygon_models.not_null_sushi__ez_borrowing_LENDING_POOL_ADDRESS.6ea7d50567": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_BORROWING_LENDING_POOL_ADDRESS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "BORROWER": {"type": "TEXT", "index": 8, "name": "BORROWER", "comment": null}, "BORROWER_IS_A_CONTRACT": {"type": "TEXT", "index": 9, "name": "BORROWER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "LENDING_POOL_ADDRESS", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 11, "name": "LENDING_POOL", "comment": null}, "ASSET": {"type": "TEXT", "index": 12, "name": "ASSET", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 13, "name": "SYMBOL", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 14, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 15, "name": "AMOUNT_USD", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_LENDING_POOL_ADDRESS.6ea7d50567"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__token_reads__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.10472fa4e9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE_API", "name": "TOKEN_READS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__token_reads__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.10472fa4e9"}, "test.polygon_models.not_null_silver__contracts__INSERTED_TIMESTAMP.5ad8bc1f2a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "CONTRACTS", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_NAME": {"type": "TEXT", "index": 2, "name": "TOKEN_NAME", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 3, "name": "TOKEN_DECIMALS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 4, "name": "TOKEN_SYMBOL", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__contracts__INSERTED_TIMESTAMP.5ad8bc1f2a"}, "test.polygon_models.not_null_silver__blocks_BLOCK_HEADER_JSON.98268f8f2b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_BLOCK_HEADER_JSON", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__blocks_BLOCK_HEADER_JSON.98268f8f2b"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_borrowing_BLOCK_TIMESTAMP__day__7.9e13292154": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SUSHI", "name": "EZ_BORROWING_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_borrowing_BLOCK_TIMESTAMP__day__7.9e13292154"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_PROJECT_NAME__STRING__VARCHAR.c5aaaed300": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_CORE", "name": "DIM_LABELS_PROJECT_NAME", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_PROJECT_NAME__STRING__VARCHAR.c5aaaed300"}, "test.polygon_models.not_null_core__dim_labels_PROJECT_NAME.484353cecc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_CORE", "name": "DIM_LABELS_PROJECT_NAME", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 2, "name": "CREATOR", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "ADDRESS_NAME": {"type": "TEXT", "index": 4, "name": "ADDRESS_NAME", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 5, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 6, "name": "LABEL_SUBTYPE", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_core__dim_labels_PROJECT_NAME.484353cecc"}, "test.polygon_models.not_null_silver__blocks_HASH.bc44a39f94": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_HASH", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__blocks_HASH.bc44a39f94"}, "test.polygon_models.not_null_sushi__ez_borrowing_BORROWER_IS_A_CONTRACT.386fbbb5c7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SUSHI", "name": "EZ_BORROWING_BORROWER_IS_A_CONTRACT", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ACTION": {"type": "TEXT", "index": 4, "name": "ACTION", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "BORROWER": {"type": "TEXT", "index": 8, "name": "BORROWER", "comment": null}, "BORROWER_IS_A_CONTRACT": {"type": "TEXT", "index": 9, "name": "BORROWER_IS_A_CONTRACT", "comment": null}, "LENDING_POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "LENDING_POOL_ADDRESS", "comment": null}, "LENDING_POOL": {"type": "TEXT", "index": 11, "name": "LENDING_POOL", "comment": null}, "ASSET": {"type": "TEXT", "index": 12, "name": "ASSET", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 13, "name": "SYMBOL", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 14, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 15, "name": "AMOUNT_USD", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_BORROWER_IS_A_CONTRACT.386fbbb5c7"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.93cce89aaf": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_LENDING_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.93cce89aaf"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSACTIONS_BLOCK_TIMESTAMP", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e"}, "test.polygon_models.not_null_silver__blocks_NETWORK.65d2a5d7b1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_NETWORK", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 3, "name": "NETWORK", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 6, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 7, "name": "TOTAL_DIFFICULTY", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 8, "name": "EXTRA_DATA", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 9, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 10, "name": "GAS_USED", "comment": null}, "HASH": {"type": "TEXT", "index": 11, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 12, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 13, "name": "MINER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 15, "name": "RECEIPTS_ROOT", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "SIZE": {"type": "NUMBER", "index": 17, "name": "SIZE", "comment": null}, "UNCLE_BLOCKS": {"type": "TEXT", "index": 18, "name": "UNCLE_BLOCKS", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "BLOCK_HEADER_JSON": {"type": "OBJECT", "index": 20, "name": "BLOCK_HEADER_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__blocks_NETWORK.65d2a5d7b1"}, "test.polygon_models.not_null_silver__transactions_POSITION.6be7c293c7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_POSITION", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "NONCE": {"type": "NUMBER", "index": 4, "name": "NONCE", "comment": null}, "POSITION": {"type": "NUMBER", "index": 5, "name": "POSITION", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "TO_ADDRESS", "comment": null}, "MATIC_VALUE": {"type": "NUMBER", "index": 9, "name": "MATIC_VALUE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 10, "name": "BLOCK_HASH", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 11, "name": "GAS_PRICE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 13, "name": "INPUT_DATA", "comment": null}, "STATUS": {"type": "TEXT", "index": 14, "name": "STATUS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 16, "name": "CUMULATIVE_GAS_USED", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "NUMBER", "index": 17, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 18, "name": "TX_FEE", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_JSON": {"type": "OBJECT", "index": 21, "name": "TX_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__transactions_POSITION.6be7c293c7"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__traces_BLOCK_NUMBER__NUMBER__FLOAT.ccd2c156a6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRACES_BLOCK_NUMBER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__traces_BLOCK_NUMBER__NUMBER__FLOAT.ccd2c156a6"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_BLOCK_NUMBER__NUMBER__FLOAT.e546629920": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SUSHI", "name": "EZ_BORROWING_BLOCK_NUMBER", "database": "POLYGON_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_BLOCK_NUMBER__NUMBER__FLOAT.e546629920"}}, "sources": {"source.polygon_models.crosschain.address_labels": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "ADDRESS_LABELS", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"SYSTEM_CREATED_AT": {"type": "TIMESTAMP_LTZ", "index": 1, "name": "SYSTEM_CREATED_AT", "comment": ""}, "INSERT_DATE": {"type": "TIMESTAMP_LTZ", "index": 2, "name": "INSERT_DATE", "comment": "The date the label was inserted in the table"}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": "The name of the blockchain"}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": "Address that the label is for. This is the field that should be used to join other tables with labels."}, "CREATOR": {"type": "TEXT", "index": 5, "name": "CREATOR", "comment": "The name of the creator of the label"}, "LABEL_TYPE": {"type": "TEXT", "index": 6, "name": "LABEL_TYPE", "comment": "A high-level category describing the addresses main function or ownership"}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 7, "name": "LABEL_SUBTYPE", "comment": "A sub-category nested within label type providing further detail"}, "ADDRESS_NAME": {"type": "TEXT", "index": 8, "name": "ADDRESS_NAME", "comment": "Name of the address"}, "PROJECT_NAME": {"type": "TEXT", "index": 9, "name": "PROJECT_NAME", "comment": "Name of the controlling entity of the address"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.crosschain.address_labels"}, "source.polygon_models.crosschain_silver.apis_keys": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "APIS_KEYS", "database": "CROSSCHAIN", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"API_KEY": {"type": "TEXT", "index": 1, "name": "API_KEY", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "ADDING_USER": {"type": "TEXT", "index": 3, "name": "ADDING_USER", "comment": null}, "API_NAME": {"type": "TEXT", "index": 4, "name": "API_NAME", "comment": null}, "API_TYPE": {"type": "TEXT", "index": 5, "name": "API_TYPE", "comment": null}, "API_PLAN_TIER": {"type": "TEXT", "index": 6, "name": "API_PLAN_TIER", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 2560.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 6.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2022-12-09 16:33UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.crosschain_silver.apis_keys"}, "source.polygon_models.prod.polygon_blocks": {"metadata": {"type": "BASE TABLE", "schema": "PROD", "name": "POLYGON_BLOCKS", "database": "CHAINWALKERS", "comment": null, "owner": "SYSADMIN"}, "columns": {"RECORD_ID": {"type": "TEXT", "index": 1, "name": "RECORD_ID", "comment": null}, "OFFSET_ID": {"type": "NUMBER", "index": 2, "name": "OFFSET_ID", "comment": null}, "BLOCK_ID": {"type": "NUMBER", "index": 3, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 5, "name": "NETWORK", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 6, "name": "CHAIN_ID", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 7, "name": "TX_COUNT", "comment": null}, "HEADER": {"type": "VARIANT", "index": 8, "name": "HEADER", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 21442215936.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 28469063.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 16:44UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(_INSERTED_TIMESTAMP::DATE)", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.prod.polygon_blocks"}, "source.polygon_models.prod.polygon_txs": {"metadata": {"type": "BASE TABLE", "schema": "PROD", "name": "POLYGON_TXS", "database": "CHAINWALKERS", "comment": null, "owner": "SYSADMIN"}, "columns": {"RECORD_ID": {"type": "TEXT", "index": 1, "name": "RECORD_ID", "comment": null}, "TX_ID": {"type": "TEXT", "index": 2, "name": "TX_ID", "comment": null}, "TX_BLOCK_INDEX": {"type": "NUMBER", "index": 3, "name": "TX_BLOCK_INDEX", "comment": null}, "OFFSET_ID": {"type": "NUMBER", "index": 4, "name": "OFFSET_ID", "comment": null}, "BLOCK_ID": {"type": "NUMBER", "index": 5, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 7, "name": "NETWORK", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 8, "name": "CHAIN_ID", "comment": null}, "TX": {"type": "VARIANT", "index": 9, "name": "TX", "comment": null}, "INGESTED_AT": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INGESTED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 3418651066880.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2325772019.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 16:44UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(_INSERTED_TIMESTAMP::DATE)", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.prod.polygon_txs"}, "source.polygon_models.symbols_cross_tab.MARKET_ASSET_METADATA": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "MARKET_ASSET_METADATA", "database": "FLIPSIDE_PROD_DB", "comment": null, "owner": "DOOR_PROD"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": null}, "NAME": {"type": "TEXT", "index": 2, "name": "NAME", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 3, "name": "PLATFORM", "comment": null}, "PLATFORM_ID": {"type": "TEXT", "index": 4, "name": "PLATFORM_ID", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 5, "name": "PROVIDER", "comment": null}, "SLUG": {"type": "TEXT", "index": 6, "name": "SLUG", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 7, "name": "SYMBOL", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 8, "name": "TOKEN_ADDRESS", "comment": null}, "RAW_JSON": {"type": "VARIANT", "index": 9, "name": "RAW_JSON", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 4568064.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 76652.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-04 01:31UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.symbols_cross_tab.MARKET_ASSET_METADATA"}, "source.polygon_models.polygon_dex_pools.SUSHI_DIM_KASHI_PAIRS": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "SUSHI_DIM_KASHI_PAIRS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PAIR_NAME": {"type": "TEXT", "index": 1, "name": "PAIR_NAME", "comment": null}, "PAIR_SYMBOL": {"type": "TEXT", "index": 2, "name": "PAIR_SYMBOL", "comment": null}, "PAIR_ADDRESS": {"type": "TEXT", "index": 3, "name": "PAIR_ADDRESS", "comment": null}, "PAIR_DECIMAL": {"type": "NUMBER", "index": 4, "name": "PAIR_DECIMAL", "comment": null}, "ASSET_SYMBOL": {"type": "TEXT", "index": 5, "name": "ASSET_SYMBOL", "comment": null}, "ASSET_ADDRESS": {"type": "TEXT", "index": 6, "name": "ASSET_ADDRESS", "comment": null}, "ASSET_DECIMAL": {"type": "NUMBER", "index": 7, "name": "ASSET_DECIMAL", "comment": null}, "COLLATERAL_SYMBOL": {"type": "TEXT", "index": 8, "name": "COLLATERAL_SYMBOL", "comment": null}, "COLLATERAL_ADDRESS": {"type": "TEXT", "index": 9, "name": "COLLATERAL_ADDRESS", "comment": null}, "COLLATERAL_DECIMAL": {"type": "NUMBER", "index": 10, "name": "COLLATERAL_DECIMAL", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 13824.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 128.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2022-09-01 16:51UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.polygon_dex_pools.SUSHI_DIM_KASHI_PAIRS"}, "source.polygon_models.polygon_dex_pools.SUSHI_DIM_DEX_POOLS": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "SUSHI_DIM_DEX_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PAIR_ADDRESS": {"type": "TEXT", "index": 1, "name": "PAIR_ADDRESS", "comment": null}, "PAIR_NAME": {"type": "TEXT", "index": 2, "name": "PAIR_NAME", "comment": null}, "LIQUIDITY": {"type": "FLOAT", "index": 3, "name": "LIQUIDITY", "comment": null}, "TOKENS_0_NAME": {"type": "TEXT", "index": 4, "name": "TOKENS_0_NAME", "comment": null}, "TOKENS_0_ADDRESS": {"type": "TEXT", "index": 5, "name": "TOKENS_0_ADDRESS", "comment": null}, "TOKENS_1_NAME": {"type": "TEXT", "index": 6, "name": "TOKENS_1_NAME", "comment": null}, "TOKENS_1_ADDRESS": {"type": "TEXT", "index": 7, "name": "TOKENS_1_ADDRESS", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 96256.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 991.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2022-09-01 16:51UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.polygon_dex_pools.SUSHI_DIM_DEX_POOLS"}, "source.polygon_models.bronze_streamline.blocks": {"metadata": {"type": "EXTERNAL TABLE", "schema": "POLYGON", "name": "BLOCKS", "database": "STREAMLINE", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "_PARTITION_BY_BLOCK_ID": {"type": "NUMBER", "index": 2, "name": "_PARTITION_BY_BLOCK_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": null}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 132988894104.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.bronze_streamline.blocks"}, "source.polygon_models.streamline_crosschain.node_mapping": {"metadata": {"type": "BASE TABLE", "schema": "CROSSCHAIN", "name": "NODE_MAPPING", "database": "STREAMLINE", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "ID": {"type": "TEXT", "index": 2, "name": "ID", "comment": null}, "NODE_URL": {"type": "TEXT", "index": 3, "name": "NODE_URL", "comment": null}, "HEADERS": {"type": "OBJECT", "index": 4, "name": "HEADERS", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 3584.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 9.0, "include": true, "description": "An approximate count of rows in this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2022-11-22 16:34UTC", "include": true, "description": "The timestamp for last update/change"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.streamline_crosschain.node_mapping"}, "source.polygon_models.bronze_streamline.transactions": {"metadata": {"type": "EXTERNAL TABLE", "schema": "POLYGON", "name": "TRANSACTIONS", "database": "STREAMLINE", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "_PARTITION_BY_BLOCK_ID": {"type": "NUMBER", "index": 2, "name": "_PARTITION_BY_BLOCK_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": null}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 1625797243123.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.bronze_streamline.transactions"}, "source.polygon_models.ethereum.DIM_CONTRACTS": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "DIM_CONTRACTS", "database": "ETHEREUM", "comment": "This table contains contract details for contracts deployed on the Ethereum blockchain.", "owner": "DBT_CLOUD_ETHEREUM"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "The unique Ethereum address of the deployed contract."}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": "The symbol used to represent this contract. Please note this is not necessarily unique."}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": "The name of the deployed contract. Please note this is not necessarily unique."}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": "The number of decimal places this contract needs adjusted where token values exist. For example, use the decimal field to correctly transform raw amounts in ```fact_token_transfers```."}, "CONTRACT_METADATA": {"type": "OBJECT", "index": 5, "name": "CONTRACT_METADATA", "comment": "This JSON column contains other relevant details for each contract."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.ethereum.DIM_CONTRACTS"}, "source.polygon_models.ethereum.fact_hourly_token_prices": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_HOURLY_TOKEN_PRICES", "database": "ETHEREUM", "comment": null, "owner": "DBT_CLOUD_ETHEREUM"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": null}, "PRICE": {"type": "FLOAT", "index": 5, "name": "PRICE", "comment": null}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 6, "name": "IS_IMPUTED", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.ethereum.fact_hourly_token_prices"}, "source.polygon_models.ethereum.DIM_DEX_LIQUIDITY_POOLS": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "DIM_DEX_LIQUIDITY_POOLS", "database": "ETHEREUM", "comment": null, "owner": "DBT_CLOUD_ETHEREUM"}, "columns": {"CREATION_BLOCK": {"type": "NUMBER", "index": 1, "name": "CREATION_BLOCK", "comment": null}, "CREATION_TIME": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "CREATION_TIME", "comment": null}, "CREATION_TX": {"type": "TEXT", "index": 3, "name": "CREATION_TX", "comment": null}, "FACTORY_ADDRESS": {"type": "TEXT", "index": 4, "name": "FACTORY_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 5, "name": "POOL_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 6, "name": "POOL_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 7, "name": "PLATFORM", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 8, "name": "TOKEN0", "comment": null}, "TOKEN0_SYMBOL": {"type": "TEXT", "index": 9, "name": "TOKEN0_SYMBOL", "comment": null}, "TOKEN0_DECIMALS": {"type": "NUMBER", "index": 10, "name": "TOKEN0_DECIMALS", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 11, "name": "TOKEN1", "comment": null}, "TOKEN1_SYMBOL": {"type": "TEXT", "index": 12, "name": "TOKEN1_SYMBOL", "comment": null}, "TOKEN1_DECIMALS": {"type": "NUMBER", "index": 13, "name": "TOKEN1_DECIMALS", "comment": null}, "TOKENS": {"type": "ARRAY", "index": 14, "name": "TOKENS", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.ethereum.DIM_DEX_LIQUIDITY_POOLS"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.7.19", "generated_at": "2025-11-24T21:12:14.810651Z", "invocation_id": "ac90a3b1-79f8-42b7-9f7d-761d1c38b2db", "env": {}}, "nodes": {"model.fsc_evm.silver_bridge__across_v3fundsdeposited": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "ACROSS_V3FUNDSDEPOSITED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 10, "name": "EVENT_REMOVED", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 11, "name": "BRIDGE_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 12, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 13, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 14, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "NUMBER", "index": 15, "name": "DESTINATION_CHAIN_ID", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 16, "name": "AMOUNT", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 17, "name": "TOKEN_ADDRESS", "comment": null}, "DEPOSIT_ID": {"type": "NUMBER", "index": 18, "name": "DEPOSIT_ID", "comment": null}, "MESSAGE": {"type": "TEXT", "index": 19, "name": "MESSAGE", "comment": null}, "QUOTE_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "QUOTE_TIMESTAMP", "comment": null}, "RELAYER_FEE_PCT": {"type": "NUMBER", "index": 21, "name": "RELAYER_FEE_PCT", "comment": null}, "EXCLUSIVE_RELAYER": {"type": "TEXT", "index": 22, "name": "EXCLUSIVE_RELAYER", "comment": null}, "EXCLUSIVITY_DEADLINE": {"type": "NUMBER", "index": 23, "name": "EXCLUSIVITY_DEADLINE", "comment": null}, "FILL_DEADLINE": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "FILL_DEADLINE", "comment": null}, "OUTPUT_AMOUNT": {"type": "NUMBER", "index": 25, "name": "OUTPUT_AMOUNT", "comment": null}, "OUTPUT_TOKEN": {"type": "TEXT", "index": 26, "name": "OUTPUT_TOKEN", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 27, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 28, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 29, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 30, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 31, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 32, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:28UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 169331712, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 818724, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__across_v3fundsdeposited"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_INSERTED_TIMESTAMP.fe2de85a12": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_INSERTED_TIMESTAMP.fe2de85a12"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_TX_HASH__0_xX_0_9a_fA_F_.f88bea7ab6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_TRACES_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_TX_HASH__0_xX_0_9a_fA_F_.f88bea7ab6"}, "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_AMOUNT_UNADJ.9e24d6b1ba": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_DEFI", "name": "EZ_DEX_LIQUIDITY_POOL_ACTIONS_AMOUNT_UNADJ", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 17, "name": "TOKEN_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "PROTOCOL_VERSION": {"type": "TEXT", "index": 20, "name": "PROTOCOL_VERSION", "comment": null}, "EZ_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 21, "name": "EZ_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_AMOUNT_UNADJ.9e24d6b1ba"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_AMOUNT_UNADJ.c408d0ba21": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_AMOUNT_UNADJ", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_AMOUNT_UNADJ.c408d0ba21"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT.866f191153": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_STATS", "name": "CORE_METRICS_HOURLY_TRANSACTION_COUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_TIMESTAMP_HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP_HOUR", "comment": null}, "BLOCK_NUMBER_MIN": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER_MIN", "comment": null}, "BLOCK_NUMBER_MAX": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER_MAX", "comment": null}, "BLOCK_COUNT": {"type": "NUMBER", "index": 4, "name": "BLOCK_COUNT", "comment": null}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "TRANSACTION_COUNT", "comment": null}, "TRANSACTION_COUNT_SUCCESS": {"type": "NUMBER", "index": 6, "name": "TRANSACTION_COUNT_SUCCESS", "comment": null}, "TRANSACTION_COUNT_FAILED": {"type": "NUMBER", "index": 7, "name": "TRANSACTION_COUNT_FAILED", "comment": null}, "UNIQUE_FROM_COUNT": {"type": "NUMBER", "index": 8, "name": "UNIQUE_FROM_COUNT", "comment": null}, "UNIQUE_TO_COUNT": {"type": "NUMBER", "index": 9, "name": "UNIQUE_TO_COUNT", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 10, "name": "TOTAL_FEES", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CORE_METRICS_HOURLY_ID": {"type": "TEXT", "index": 12, "name": "CORE_METRICS_HOURLY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT.866f191153"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__user_verified_abis_recent_ID.053fe12111": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "USER_VERIFIED_ABIS_RECENT_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__user_verified_abis_recent_ID.053fe12111"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_INPUT_DATA.388b4be0ae": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_INPUT_DATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_INPUT_DATA.388b4be0ae"}, "model.fsc_evm.silver_dex__pharaoh_v1_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "PHARAOH_V1_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 6, "name": "EVENT_NAME", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 7, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 8, "name": "TOKEN1", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_ID": {"type": "NUMBER", "index": 10, "name": "POOL_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 11, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 12, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 13, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 14, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 15, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:06UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__pharaoh_v1_pools"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_event_logs_full_EVENT_INDEX__BLOCK_NUMBER.13a5a78e6f": {"metadata": {"type": "BASE TABLE", "schema": "FSC_EVM_SEQUENCE_GAPS_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PREV_EVENT_INDEX": {"type": "NUMBER", "index": 2, "name": "PREV_EVENT_INDEX", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "EVENT_INDEX", "comment": null}, "GAP": {"type": "NUMBER", "index": 4, "name": "GAP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 11:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 136192, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 523, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_event_logs_full_EVENT_INDEX__BLOCK_NUMBER.13a5a78e6f"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.fa8c038b49": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "MOOAR_SALES_NFT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.fa8c038b49"}, "model.fsc_evm.stats__ez_core_metrics_hourly": {"metadata": {"type": "VIEW", "schema": "STATS", "name": "EZ_CORE_METRICS_HOURLY", "database": "POLYGON", "comment": "## What\n\nThis aggregated table provides hourly blockchain metrics for high-level analysis and monitoring. It pre-calculates key statistics from fact_transactions to enable fast querying of network activity, gas usage patterns, and user behavior trends without scanning large transaction tables.\n\n## Key Use Cases\n\n- Network health dashboards and monitoring\n- Gas fee trend analysis and volatility tracking\n- User adoption metrics and activity patterns\n- Blockchain comparison studies across chains\n- Activity anomaly detection and congestion analysis\n- Performance optimization and capacity planning\n- Weekly/monthly growth analysis\n\n## Important Relationships\n\n- **Derived from fact_transactions**: All metrics aggregated from base transaction data\n- **Join with ez_prices_hourly**: For native token price correlation\n- **Compare across chains**: Standardized metrics enable cross-chain analysis\n\n## Commonly-used Fields\n\n- `block_timestamp_hour`: Hour boundary for aggregated metrics\n- `transaction_count`: Total transactions in the hour\n- `transaction_count_success` / `transaction_count_failed`: Success/failure counts\n- `unique_from_count`: Distinct active addresses\n- `total_fees_native` / `total_fees_usd`: Fee totals in native and USD\n- `block_count`: Number of blocks produced\n\n## Sample Queries\n\n**Network Health Dashboard Metrics**\n```sql\n-- 24-hour network health summary\nWITH hourly_stats AS (\n SELECT \n block_timestamp_hour,\n transaction_count,\n transaction_count_success,\n transaction_count_failed,\n ROUND(100.0 * transaction_count_success / NULLIF(transaction_count, 0), 2) AS success_rate,\n total_fees_native,\n total_fees_usd,\n unique_from_count AS active_users,\n block_count,\n ROUND(transaction_count::FLOAT / NULLIF(block_count, 0), 2) AS avg_tx_per_block\n FROM .stats.ez_core_metrics_hourly\n WHERE block_timestamp_hour >= CURRENT_TIMESTAMP - INTERVAL '24 hours'\n)\nSELECT \n COUNT(*) AS hours_of_data,\n SUM(transaction_count) AS total_transactions,\n AVG(success_rate) AS avg_success_rate,\n SUM(total_fees_usd) AS total_fees_usd_24h,\n SUM(active_users) AS unique_active_addresses,\n AVG(avg_tx_per_block) AS avg_tx_per_block_24h,\n MAX(transaction_count) AS peak_hourly_transactions,\n MIN(block_count) AS min_blocks_per_hour,\n MAX(block_count) AS max_blocks_per_hour\nFROM hourly_stats;\n```\n\n**Gas Fee Trends Analysis**\n```sql\n-- Daily average gas fees with volatility\nSELECT \n DATE(block_timestamp_hour) AS date,\n AVG(total_fees_native / NULLIF(transaction_count, 0)) AS avg_fee_per_tx_native,\n AVG(total_fees_usd / NULLIF(transaction_count, 0)) AS avg_fee_per_tx_usd,\n STDDEV(total_fees_usd / NULLIF(transaction_count, 0)) AS fee_volatility_usd,\n MIN(total_fees_usd / NULLIF(transaction_count, 0)) AS min_fee_per_tx_usd,\n MAX(total_fees_usd / NULLIF(transaction_count, 0)) AS max_fee_per_tx_usd,\n SUM(transaction_count) AS daily_transactions,\n SUM(total_fees_usd) AS daily_fees_usd\nFROM .stats.ez_core_metrics_hourly\nWHERE block_timestamp_hour >= CURRENT_DATE - 30\n AND transaction_count > 0\nGROUP BY 1\nORDER BY 1 DESC;\n```\n\n**User Activity Patterns**\n```sql\n-- Hourly activity patterns (UTC)\nSELECT \n EXTRACT(HOUR FROM block_timestamp_hour) AS hour_utc,\n AVG(transaction_count) AS avg_transactions,\n AVG(unique_from_count) AS avg_active_users,\n AVG(unique_to_count) AS avg_unique_recipients,\n AVG(transaction_count::FLOAT / NULLIF(unique_from_count, 0)) AS avg_tx_per_user,\n STDDEV(transaction_count) AS transaction_volatility\nFROM .stats.ez_core_metrics_hourly\nWHERE block_timestamp_hour >= CURRENT_DATE - 7\nGROUP BY 1\nORDER BY 1;\n```\n\n**Network Congestion Detection**\n```sql\n-- Identify high congestion periods\nWITH congestion_metrics AS (\n SELECT \n block_timestamp_hour,\n transaction_count,\n block_count,\n transaction_count::FLOAT / NULLIF(block_count, 0) AS tx_per_block,\n total_fees_usd / NULLIF(transaction_count, 0) AS avg_fee_usd,\n transaction_count_failed::FLOAT / NULLIF(transaction_count, 0) * 100 AS failure_rate\n FROM .stats.ez_core_metrics_hourly\n WHERE block_timestamp_hour >= CURRENT_DATE - 7\n),\npercentiles AS (\n SELECT \n PERCENTILE_CONT(0.9) WITHIN GROUP (ORDER BY tx_per_block) AS p90_tx_per_block,\n PERCENTILE_CONT(0.9) WITHIN GROUP (ORDER BY avg_fee_usd) AS p90_fee,\n PERCENTILE_CONT(0.9) WITHIN GROUP (ORDER BY failure_rate) AS p90_failure_rate\n FROM congestion_metrics\n)\nSELECT \n c.block_timestamp_hour,\n c.tx_per_block,\n c.avg_fee_usd,\n c.failure_rate,\n CASE \n WHEN c.tx_per_block > p.p90_tx_per_block \n AND c.avg_fee_usd > p.p90_fee THEN 'High Congestion'\n WHEN c.failure_rate > p.p90_failure_rate THEN 'Network Issues'\n ELSE 'Normal'\n END AS network_status\nFROM congestion_metrics c\nCROSS JOIN percentiles p\nWHERE c.tx_per_block > p.p90_tx_per_block \n OR c.avg_fee_usd > p.p90_fee\n OR c.failure_rate > p.p90_failure_rate\nORDER BY c.block_timestamp_hour DESC;\n```\n\n**Weekly Growth Metrics**\n```sql\n-- Week-over-week growth analysis\nWITH weekly_stats AS (\n SELECT \n DATE_TRUNC('week', block_timestamp_hour) AS week,\n SUM(transaction_count) AS weekly_transactions,\n COUNT(DISTINCT unique_from_count) AS unique_weekly_users,\n SUM(total_fees_usd) AS weekly_fees_usd,\n AVG(transaction_count_success::FLOAT / NULLIF(transaction_count, 0)) AS avg_success_rate\n FROM .stats.ez_core_metrics_hourly\n WHERE block_timestamp_hour >= CURRENT_DATE - 60\n GROUP BY 1\n)\nSELECT \n week,\n weekly_transactions,\n LAG(weekly_transactions) OVER (ORDER BY week) AS prev_week_transactions,\n ROUND(100.0 * (weekly_transactions - LAG(weekly_transactions) OVER (ORDER BY week)) / \n NULLIF(LAG(weekly_transactions) OVER (ORDER BY week), 0), 2) AS tx_growth_pct,\n unique_weekly_users,\n ROUND(100.0 * (unique_weekly_users - LAG(unique_weekly_users) OVER (ORDER BY week)) / \n NULLIF(LAG(unique_weekly_users) OVER (ORDER BY week), 0), 2) AS user_growth_pct,\n weekly_fees_usd,\n avg_success_rate\nFROM weekly_stats\nORDER BY week DESC;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_TIMESTAMP_HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP_HOUR", "comment": "The hour boundary (UTC) for which metrics are aggregated. Timestamp truncated to hour boundary.\n\nExample: '2024-01-15 14:00:00.000'"}, "BLOCK_NUMBER_MIN": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER_MIN", "comment": "The lowest block number produced within this hour. Used to identify first block and calculate block ranges.\n\nExample: 18750000"}, "BLOCK_NUMBER_MAX": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER_MAX", "comment": "The highest block number produced within this hour. Used to identify last block and monitor chain tip progression.\n\nExample: 18750299"}, "BLOCK_COUNT": {"type": "NUMBER", "index": 4, "name": "BLOCK_COUNT", "comment": "Total number of blocks produced in the hour. Calculated as block_number_max - block_number_min + 1.\n\nExample: 300"}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "TRANSACTION_COUNT", "comment": "Total number of transactions included in blocks during this hour. Includes both successful and failed transactions.\n\nExample: 125000"}, "TRANSACTION_COUNT_SUCCESS": {"type": "NUMBER", "index": 6, "name": "TRANSACTION_COUNT_SUCCESS", "comment": "Number of transactions that executed successfully in the hour. Used to calculate network reliability.\n\nExample: 118750"}, "TRANSACTION_COUNT_FAILED": {"type": "NUMBER", "index": 7, "name": "TRANSACTION_COUNT_FAILED", "comment": "Number of transactions that failed or reverted in the hour. Common causes include insufficient gas or contract reverts.\n\nExample: 6250"}, "UNIQUE_FROM_COUNT": {"type": "NUMBER", "index": 8, "name": "UNIQUE_FROM_COUNT", "comment": "Count of distinct addresses that initiated transactions in the hour. Represents active users, not cumulative.\n\nExample: 45000"}, "UNIQUE_TO_COUNT": {"type": "NUMBER", "index": 9, "name": "UNIQUE_TO_COUNT", "comment": "Count of distinct addresses that received transactions in the hour. Includes EOA recipients and contract addresses.\n\nExample: 52000"}, "TOTAL_FEES_NATIVE": {"type": "FLOAT", "index": 10, "name": "TOTAL_FEES_NATIVE", "comment": "Sum of all transaction fees paid in the blockchain's native token. May have limited precision due to aggregation.\n\nExample: 125.75"}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 11, "name": "TOTAL_FEES_USD", "comment": "Sum of all transaction fees paid, converted to USD using hourly native token price. Rounded to 2 decimal places.\n\nExample: 425000.50"}, "EZ_CORE_METRICS_HOURLY_ID": {"type": "TEXT", "index": 12, "name": "EZ_CORE_METRICS_HOURLY_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.stats__ez_core_metrics_hourly"}, "model.fsc_evm.bronze__contract_abis_fr_v2": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "CONTRACT_ABIS_FR_V2", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__contract_abis_fr_v2"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__ez_variables_EZ_VARIABLES_ID.3ed824ce43": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_ADMIN", "name": "EZ_VARIABLES_EZ_VARIABLES_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EZ_VARIABLES_ID": {"type": "TEXT", "index": 1, "name": "EZ_VARIABLES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__ez_variables_EZ_VARIABLES_ID.3ed824ce43"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.99fc2c7c14": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_5_SALES_NFT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.99fc2c7c14"}, "model.fsc_evm.silver_lending__comp_v3_liquidations": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "COMP_V3_LIQUIDATIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 12, "name": "COLLATERAL_TOKEN", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "NUMBER", "index": 13, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 15, "name": "DEBT_TOKEN", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 16, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 17, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 19, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 21, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 133120, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 612, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__comp_v3_liquidations"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7806b0df5f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7806b0df5f"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_traces_full_TRACE_INDEX__TX_HASH.4c79dbc511": {"metadata": {"type": "BASE TABLE", "schema": "FSC_EVM_SEQUENCE_GAPS_TEST_GOLD", "name": "FACT_TRACES_FULL_TRACE_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "PREV_TRACE_INDEX": {"type": "NUMBER", "index": 2, "name": "PREV_TRACE_INDEX", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 3, "name": "TRACE_INDEX", "comment": null}, "GAP": {"type": "NUMBER", "index": 4, "name": "GAP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:41UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_traces_full_TRACE_INDEX__TX_HASH.4c79dbc511"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_native_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.15293d5591": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:21UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_native_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.15293d5591"}, "test.fsc_evm.not_null_test_silver__transactions_full__INSERTED_TIMESTAMP.e767bd3e15": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRANSACTIONS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}, "TRANSACTION_JSON": {"type": "VARIANT", "index": 4, "name": "TRANSACTION_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRANSACTIONS_ID": {"type": "TEXT", "index": 6, "name": "TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__transactions_full__INSERTED_TIMESTAMP.e767bd3e15"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.a5a0db81dc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.a5a0db81dc"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.cffc3ef224": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.cffc3ef224"}, "test.fsc_evm.not_null_test_silver__blocks_full_BLOCK_NUMBER.3b7e4315a5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "BLOCKS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BLOCKS_ID": {"type": "TEXT", "index": 5, "name": "BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 8, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__blocks_full_BLOCK_NUMBER.3b7e4315a5"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.85e49c2533": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.85e49c2533"}, "model.fsc_evm.observability__logs": {"metadata": {"type": "BASE TABLE", "schema": "OBSERVABILITY", "name": "LOGS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TEST_NAME": {"type": "TEXT", "index": 1, "name": "TEST_NAME", "comment": ""}, "MIN_BLOCK": {"type": "NUMBER", "index": 2, "name": "MIN_BLOCK", "comment": ""}, "MAX_BLOCK": {"type": "NUMBER", "index": 3, "name": "MAX_BLOCK", "comment": ""}, "MIN_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "MIN_BLOCK_TIMESTAMP", "comment": ""}, "MAX_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "MAX_BLOCK_TIMESTAMP", "comment": ""}, "BLOCKS_TESTED": {"type": "NUMBER", "index": 6, "name": "BLOCKS_TESTED", "comment": ""}, "BLOCKS_IMPACTED_COUNT": {"type": "NUMBER", "index": 7, "name": "BLOCKS_IMPACTED_COUNT", "comment": ""}, "MISSING_LIST": {"type": "ARRAY", "index": 8, "name": "MISSING_LIST", "comment": ""}, "TEST_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "TEST_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 308736, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5215, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.observability__logs"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TYPE.40d8e6018e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TYPE.40d8e6018e"}, "test.fsc_evm.txs_have_traces_test_gold__fact_traces_full_ref_test_gold__fact_transactions_full_.1c3ecccef2": {"metadata": {"type": "BASE TABLE", "schema": "TXS_HAVE_TRACES_TEST_GOLD", "name": "FACT_TRACES_FULL_REF_TEST_GOLD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 2, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 14:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.txs_have_traces_test_gold__fact_traces_full_ref_test_gold__fact_transactions_full_.1c3ecccef2"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TOTAL_FEES.558b8cb0c7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_STATS", "name": "CORE_METRICS_HOURLY_TOTAL_FEES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_TIMESTAMP_HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP_HOUR", "comment": null}, "BLOCK_NUMBER_MIN": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER_MIN", "comment": null}, "BLOCK_NUMBER_MAX": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER_MAX", "comment": null}, "BLOCK_COUNT": {"type": "NUMBER", "index": 4, "name": "BLOCK_COUNT", "comment": null}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "TRANSACTION_COUNT", "comment": null}, "TRANSACTION_COUNT_SUCCESS": {"type": "NUMBER", "index": 6, "name": "TRANSACTION_COUNT_SUCCESS", "comment": null}, "TRANSACTION_COUNT_FAILED": {"type": "NUMBER", "index": 7, "name": "TRANSACTION_COUNT_FAILED", "comment": null}, "UNIQUE_FROM_COUNT": {"type": "NUMBER", "index": 8, "name": "UNIQUE_FROM_COUNT", "comment": null}, "UNIQUE_TO_COUNT": {"type": "NUMBER", "index": 9, "name": "UNIQUE_TO_COUNT", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 10, "name": "TOTAL_FEES", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CORE_METRICS_HOURLY_ID": {"type": "TEXT", "index": 12, "name": "CORE_METRICS_HOURLY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TOTAL_FEES.558b8cb0c7"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_R.1699801aae": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_R", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_R.1699801aae"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_PROTOCOL.3df038aacb": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_PROTOCOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 8, "name": "POOL_NAME", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 9, "name": "POOL_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 15, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 17, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 18, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 19, "name": "EVENT_INDEX", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 24, "name": "TOKEN_IN", "comment": null}, "TOKEN_IN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IN_IS_VERIFIED", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 26, "name": "TOKEN_OUT", "comment": null}, "TOKEN_OUT_IS_VERIFIED": {"type": "BOOLEAN", "index": 27, "name": "TOKEN_OUT_IS_VERIFIED", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 28, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 29, "name": "SYMBOL_OUT", "comment": null}, "DECIMALS_IN": {"type": "NUMBER", "index": 30, "name": "DECIMALS_IN", "comment": null}, "DECIMALS_OUT": {"type": "NUMBER", "index": 31, "name": "DECIMALS_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 32, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_SWAPS_ID": {"type": "TEXT", "index": 34, "name": "COMPLETE_DEX_SWAPS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 35, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 37, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_PROTOCOL.3df038aacb"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TX_TO.2085271b93": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_TX_TO", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 8, "name": "POOL_NAME", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 9, "name": "POOL_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 15, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 17, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 18, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 19, "name": "EVENT_INDEX", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 24, "name": "TOKEN_IN", "comment": null}, "TOKEN_IN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IN_IS_VERIFIED", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 26, "name": "TOKEN_OUT", "comment": null}, "TOKEN_OUT_IS_VERIFIED": {"type": "BOOLEAN", "index": 27, "name": "TOKEN_OUT_IS_VERIFIED", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 28, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 29, "name": "SYMBOL_OUT", "comment": null}, "DECIMALS_IN": {"type": "NUMBER", "index": 30, "name": "DECIMALS_IN", "comment": null}, "DECIMALS_OUT": {"type": "NUMBER", "index": 31, "name": "DECIMALS_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 32, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_SWAPS_ID": {"type": "TEXT", "index": 34, "name": "COMPLETE_DEX_SWAPS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 35, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 37, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TX_TO.2085271b93"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_DIFFICULTY__NUMBER__FLOAT.3dbebb71ca": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_DIFFICULTY", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_DIFFICULTY__NUMBER__FLOAT.3dbebb71ca"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_EVENT_INDEX.08ca9dd7ff": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "POLYMARKET_FILLED_ORDERS_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "QUESTION": {"type": "TEXT", "index": 10, "name": "QUESTION", "comment": null}, "MARKET_SLUG": {"type": "TEXT", "index": 11, "name": "MARKET_SLUG", "comment": null}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "END_DATE_ISO", "comment": null}, "OUTCOME": {"type": "TEXT", "index": 13, "name": "OUTCOME", "comment": null}, "ORDER_HASH": {"type": "TEXT", "index": 14, "name": "ORDER_HASH", "comment": null}, "MAKER": {"type": "TEXT", "index": 15, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 16, "name": "TAKER", "comment": null}, "CONDITION_ID": {"type": "TEXT", "index": 17, "name": "CONDITION_ID", "comment": null}, "QUESTION_ID": {"type": "TEXT", "index": 18, "name": "QUESTION_ID", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 19, "name": "ASSET_ID", "comment": null}, "MAKER_ASSET_ID": {"type": "TEXT", "index": 20, "name": "MAKER_ASSET_ID", "comment": null}, "TAKER_ASSET_ID": {"type": "TEXT", "index": 21, "name": "TAKER_ASSET_ID", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "AMOUNT_USD", "comment": null}, "SHARES": {"type": "FLOAT", "index": 23, "name": "SHARES", "comment": null}, "PRICE_PER_SHARE": {"type": "FLOAT", "index": 24, "name": "PRICE_PER_SHARE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "POLYMARKET_FILLED_ORDERS_ID": {"type": "TEXT", "index": 27, "name": "POLYMARKET_FILLED_ORDERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_EVENT_INDEX.08ca9dd7ff"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_INPUT_DATA.02b25fd3bc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_INPUT_DATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_INPUT_DATA.02b25fd3bc"}, "model.fsc_evm.defi__ez_lending_withdraws": {"metadata": {"type": "VIEW", "schema": "DEFI", "name": "EZ_LENDING_WITHDRAWS", "database": "POLYGON", "comment": "## What\n\nThis table tracks withdrawal transactions where users remove their supplied liquidity from lending protocols. Withdrawals include the original deposit plus earned interest, subject to available liquidity in the protocol.\n\n## Key Use Cases\n\n- Monitoring liquidity flows and protocol health\n- Detecting potential bank run scenarios\n- Calculating realized yields for depositors\n- Analyzing withdrawal patterns and timing\n- Tracking large withdrawals that may impact rates\n\n## Important Relationships\n\n- Links to `ez_lending_deposits` for position lifecycle\n- Affected by `ez_lending_borrows` (reduces available liquidity)\n- Increased by `ez_lending_repayments` (adds liquidity)\n- References `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `depositor`: Address withdrawing funds\n- `platform`: Lending protocol\n- `token_address`/`token_symbol`: Withdrawn asset\n- `amount`/`amount_usd`: Withdrawal quantity including interest\n- `block_timestamp`: When withdrawal occurred\n\n## Sample queries\n\n```sql\n-- Daily withdrawal patterns\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(*) AS withdrawal_count,\n COUNT(DISTINCT depositor) AS unique_withdrawers,\n SUM(amount_usd) AS total_withdrawn_usd,\n AVG(amount_usd) AS avg_withdrawal_size_usd\nFROM .defi.ez_lending_withdraws\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 5 DESC;\n\n-- Platform liquidity analysis (deposits vs withdrawals)\nWITH platform_deposits AS (\n SELECT \n platform,\n token_address,\n token_symbol,\n COUNT(DISTINCT depositor) AS unique_depositors,\n SUM(amount) AS total_deposited_tokens,\n SUM(amount_usd) AS total_deposited_usd,\n COUNT(*) AS deposit_transactions,\n AVG(amount_usd) AS avg_deposit_size_usd\n FROM .defi.ez_lending_deposits\n WHERE block_timestamp >= CURRENT_DATE - 90\n AND amount IS NOT NULL\n GROUP BY 1, 2, 3\n),\nplatform_withdrawals AS (\n SELECT \n platform,\n token_address,\n token_symbol,\n COUNT(DISTINCT depositor) AS unique_withdrawers,\n SUM(amount) AS total_withdrawn_tokens,\n SUM(amount_usd) AS total_withdrawn_usd,\n COUNT(*) AS withdrawal_transactions,\n AVG(amount_usd) AS avg_withdrawal_size_usd\n FROM .defi.ez_lending_withdraws\n WHERE block_timestamp >= CURRENT_DATE - 90\n AND amount IS NOT NULL\n GROUP BY 1, 2, 3\n)\nSELECT \n COALESCE(d.platform, w.platform) AS platform,\n COALESCE(d.token_address, w.token_address) AS token_address,\n COALESCE(d.token_symbol, w.token_symbol) AS token_symbol,\n d.unique_depositors,\n w.unique_withdrawers,\n d.total_deposited_usd,\n w.total_withdrawn_usd,\n (d.total_deposited_usd - COALESCE(w.total_withdrawn_usd, 0)) AS net_deposits_usd,\n d.deposit_transactions,\n w.withdrawal_transactions,\n d.avg_deposit_size_usd,\n w.avg_withdrawal_size_usd\nFROM platform_deposits d\nFULL OUTER JOIN platform_withdrawals w\n ON d.platform = w.platform\n AND d.token_address = w.token_address\nWHERE COALESCE(d.total_deposited_usd, 0) > 100000\n OR COALESCE(w.total_withdrawn_usd, 0) > 100000\nORDER BY net_deposits_usd DESC;\n\n-- Liquidity stress analysis\nWITH hourly_flows AS (\n SELECT \n DATE_TRUNC('hour', block_timestamp) AS hour,\n platform,\n token_symbol,\n 0 AS deposits_usd,\n SUM(amount_usd) AS withdrawals_usd\n FROM .defi.ez_lending_withdraws\n WHERE block_timestamp >= CURRENT_DATE - 7\n AND amount_usd IS NOT NULL\n GROUP BY 1, 2, 3\n \n UNION ALL\n \n SELECT \n DATE_TRUNC('hour', block_timestamp) AS hour,\n platform,\n token_symbol,\n SUM(amount_usd) AS deposits_usd,\n 0 AS withdrawals_usd\n FROM .defi.ez_lending_deposits\n WHERE block_timestamp >= CURRENT_DATE - 7\n AND amount_usd IS NOT NULL\n GROUP BY 1, 2, 3\n)\nSELECT \n hour,\n platform,\n token_symbol,\n SUM(deposits_usd) AS hourly_deposits,\n SUM(withdrawals_usd) AS hourly_withdrawals,\n SUM(deposits_usd - withdrawals_usd) AS net_flow,\n SUM(SUM(deposits_usd - withdrawals_usd)) OVER (\n PARTITION BY platform, token_symbol \n ORDER BY hour\n ) AS cumulative_flow\nFROM hourly_flows\nGROUP BY 1, 2, 3\nHAVING SUM(withdrawals_usd) > 10000\nORDER BY 1 DESC, 6;\n\n-- Large withdrawals monitoring (potential bank run indicators)\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n depositor,\n token_symbol,\n amount AS withdrawn_tokens,\n amount_usd AS withdrawn_usd,\n LAG(amount_usd) OVER (PARTITION BY platform, token_symbol ORDER BY block_timestamp) AS prev_withdrawal_usd,\n amount_usd / NULLIF(LAG(amount_usd) OVER (PARTITION BY platform, token_symbol ORDER BY block_timestamp), 0) AS size_multiplier\nFROM .defi.ez_lending_withdraws\nWHERE amount_usd > 1000000\n AND block_timestamp >= CURRENT_DATE - 3\nORDER BY withdrawn_usd DESC;\n\n-- Withdrawal timing patterns\nSELECT \n EXTRACT(HOUR FROM block_timestamp) AS hour_of_day,\n COUNT(*) AS withdrawal_count,\n SUM(amount_usd) AS total_withdrawn_usd,\n AVG(amount_usd) AS avg_withdrawal_size\nFROM .defi.ez_lending_withdraws\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\nGROUP BY 1\nORDER BY 1;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events"}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```"}, "EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "EVENT_INDEX", "comment": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": "The lending protocol where the transaction occurred.\n\nExample: 'aave'"}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": "The address that supplied liquidity to the lending protocol.\n\nExample: '0x9876543210987654321098765432109876543210'"}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": "The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": "The contract address of the underlying asset being lent or borrowed.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": "The ticker symbol of the asset involved in the lending transaction.\n\nExample: 'USDC'"}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": "The raw amount of tokens borrowed or repaid without decimal adjustment.\n\nExample: 1000000000"}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": "The decimal-adjusted quantity of tokens in the transaction.\n\nExample: 1000.5"}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": "The USD value of tokens at transaction time.\n\nExample: 1500.75"}, "EZ_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 18, "name": "EZ_LENDING_WITHDRAWS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.defi__ez_lending_withdraws"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_SIZE.7f5752ed31": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_SIZE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:28UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_SIZE.7f5752ed31"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_recent_TX_HASH__0_xX_0_9a_fA_F_.994fffe1a9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_SILVER", "name": "DECODED_LOGS_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_recent_TX_HASH__0_xX_0_9a_fA_F_.994fffe1a9"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_BLOCK_NUMBER.c281a15c7c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_BLOCK_NUMBER.c281a15c7c"}, "test.polygon_models.not_null_silver__mooar_sales_TOKENID.4fbe1082e6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_TOKENID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_TOKENID.4fbe1082e6"}, "model.fsc_evm.silver_lending__comp_v3_borrows": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "COMP_V3_BORROWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 10, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT_UNADJ", "comment": null}, "ITOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "ITOKEN_SYMBOL", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 14, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 15, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 16, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 19, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 27571712, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 289535, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__comp_v3_borrows"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS.3bc67218ac": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS.3bc67218ac"}, "test.polygon_models.not_null_silver__element_sales_ORIGIN_TO_ADDRESS.0c5df398d0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_ORIGIN_TO_ADDRESS.0c5df398d0"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_MODIFIED_TIMESTAMP.c7ad718c6f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_MODIFIED_TIMESTAMP.c7ad718c6f"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP__hour__2.23d29858c5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "DECODED_LOGS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP__hour__2.23d29858c5"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP__hour__2.253aae44aa": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP__hour__2.253aae44aa"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_daily_recent_ADDRESS__0_xX_0_9a_fA_F_.f9166aacd7": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_BALANCES_NATIVE_DAILY_RECENT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_daily_recent_ADDRESS__0_xX_0_9a_fA_F_.f9166aacd7"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_NUMBER.f3098a994a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_NUMBER.f3098a994a"}, "model.fsc_evm.defi__ez_bridge_activity": {"metadata": {"type": "VIEW", "schema": "DEFI", "name": "EZ_BRIDGE_ACTIVITY", "database": "POLYGON", "comment": "## What\n\nThis table provides a comprehensive view of cross-chain bridge activity across EVM-compatible blockchains. It consolidates bridge-related events from multiple sources (event_logs, traces, and transfers) to create a unified dataset for analyzing cross-chain asset movements.\n\n## Key Use Cases\n\n- Tracking cross-chain asset flows and bridge volumes\n- Analyzing user bridging behavior and patterns\n- Comparing bridge protocol market share and performance\n- Monitoring token distribution across multiple chains\n- Identifying popular bridge routes and corridors\n\n## Important Relationships\n\n- **Join with core.fact_event_logs**: Use `tx_hash` for raw event details\n- **Join with core.dim_contracts**: Use `bridge_address` or `token_address` for contract metadata\n- **Join with price.ez_prices_hourly**: For additional price validation\n- **Join with core.dim_labels**: Use sender addresses for entity identification\n\n## Commonly-used Fields\n\n- `platform`: Bridge protocol name\n- `sender`: Address sending tokens to bridge\n- `destination_chain`: Target blockchain for assets\n- `token_address`: Token being bridged\n- `amount`: Decimal-adjusted token amount\n- `amount_usd`: USD value at transaction time\n- `block_timestamp`: When bridge transaction occurred\n\n## Sample queries\n\n```sql\n-- Daily bridge volume by protocol\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(DISTINCT tx_hash) AS bridge_txns,\n SUM(amount_usd) AS volume_usd\nFROM .defi.ez_bridge_activity\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 3 DESC;\n\n-- Top bridge routes (source to destination chains)\nSELECT \n blockchain AS source_chain,\n destination_chain,\n platform,\n COUNT(*) AS transfer_count,\n SUM(amount_usd) AS total_volume_usd\nFROM .defi.ez_bridge_activity\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND destination_chain IS NOT NULL\nGROUP BY 1, 2, 3\nORDER BY 5 DESC\nLIMIT 20;\n\n-- User bridge activity analysis\nSELECT \n sender,\n COUNT(DISTINCT DATE_TRUNC('day', block_timestamp)) AS active_days,\n COUNT(DISTINCT platform) AS protocols_used,\n COUNT(DISTINCT destination_chain) AS chains_bridged_to,\n SUM(amount_usd) AS total_bridged_usd\nFROM .defi.ez_bridge_activity\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd > 100 -- Filter small transfers\nGROUP BY 1\nHAVING COUNT(*) > 5 -- Active bridgers\nORDER BY 5 DESC\nLIMIT 100;\n\n-- Token flow analysis\nSELECT \n token_symbol,\n token_address,\n blockchain AS source_chain,\n destination_chain,\n COUNT(*) AS bridge_count,\n SUM(amount) AS total_amount,\n AVG(amount_usd) AS avg_transfer_usd\nFROM .defi.ez_bridge_activity\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND token_symbol IS NOT NULL\nGROUP BY 1, 2, 3, 4\nHAVING COUNT(*) > 10\nORDER BY 5 DESC;\n\n-- Bridge protocol comparison\nWITH protocol_stats AS (\n SELECT \n platform,\n COUNT(DISTINCT sender) AS unique_users,\n COUNT(*) AS total_transfers,\n AVG(amount_usd) AS avg_transfer_size,\n PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY amount_usd) AS median_transfer_size,\n SUM(amount_usd) AS total_volume\n FROM .defi.ez_bridge_activity\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT *\nFROM protocol_stats\nORDER BY total_volume DESC;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": "The smart contract address handling the bridge operation.\n\nExample: '0x296f55f8fb28e498b858d0bcda06d955b2cb3f97'"}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```"}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": "The protocol or application facilitating the cross-chain bridge transfer.\n\nExample: 'stargate'"}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": ""}, "PROTOCOL_VERSION": {"type": "TEXT", "index": 12, "name": "PROTOCOL_VERSION", "comment": ""}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": "The address that directly sent tokens to the bridge contract.\n\nExample: '0xabcdefabcdefabcdefabcdefabcdefabcdefabcd'"}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": "The address designated to receive tokens on the destination chain (or on the source chain, for intermediate steps).\n\nExample: '0x9876543210987654321098765432109876543210'"}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 15, "name": "DESTINATION_CHAIN_RECEIVER", "comment": "The final recipient address on the destination blockchain.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'"}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN", "comment": "The target blockchain network for the bridged assets.\n\nExample: 'arbitrum'"}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": "The numeric identifier for the destination blockchain.\n\nExample: 42161"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 18, "name": "TOKEN_ADDRESS", "comment": "The contract address of the token being bridged.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "TOKEN_SYMBOL", "comment": "The symbol identifier for the bridged token.\n\nExample: 'USDC'"}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 20, "name": "AMOUNT_UNADJ", "comment": "The raw token amount without decimal adjustment.\n\nExample: 1000000"}, "AMOUNT": {"type": "FLOAT", "index": 21, "name": "AMOUNT", "comment": "The decimal-adjusted amount of tokens bridged.\n\nExample: 1.0"}, "AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "AMOUNT_USD", "comment": "The hourly close USD value of bridged tokens at the time of the transaction.\n\nExample: 1000.50"}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 23, "name": "TOKEN_IS_VERIFIED", "comment": "Whether the token is verified by the Flipside team.\n\nExample: true"}, "EZ_BRIDGE_ACTIVITY_ID": {"type": "TEXT", "index": 24, "name": "EZ_BRIDGE_ACTIVITY_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.defi__ez_bridge_activity"}, "model.fsc_evm.silver_dex__poolcreated_evt_v3_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "POOLCREATED_EVT_V3_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "FEE": {"type": "NUMBER", "index": 10, "name": "FEE", "comment": null}, "FEE_PERCENT": {"type": "FLOAT", "index": 11, "name": "FEE_PERCENT", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 12, "name": "TICK_SPACING", "comment": null}, "INIT_TICK": {"type": "FLOAT", "index": 13, "name": "INIT_TICK", "comment": null}, "TICK_LOWER": {"type": "FLOAT", "index": 14, "name": "TICK_LOWER", "comment": null}, "TICK_UPPER": {"type": "FLOAT", "index": 15, "name": "TICK_UPPER", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 16, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 17, "name": "TOKEN1", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 18, "name": "LIQUIDITY_PROVIDER", "comment": null}, "OWNER_ADDRESS": {"type": "TEXT", "index": 19, "name": "OWNER_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 20, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 21, "name": "RECEIVER", "comment": null}, "LIQUIDITY_AMOUNT_UNADJ": {"type": "FLOAT", "index": 22, "name": "LIQUIDITY_AMOUNT_UNADJ", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 23, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 24, "name": "AMOUNT1_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 25, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 26, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 27, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 28, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 29, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:37UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1330045952, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 11846000, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__poolcreated_evt_v3_pool_actions"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__everclear_reads_INTENT_ID.0dee46a33d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_BRIDGE", "name": "EVERCLEAR_READS_INTENT_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"INTENT_ID": {"type": "TEXT", "index": 1, "name": "INTENT_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__everclear_reads_INTENT_ID.0dee46a33d"}, "model.fsc_evm.silver__created_contracts": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "CREATED_CONTRACTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CREATED_CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CREATED_CONTRACT_ADDRESS", "comment": null}, "CREATOR_ADDRESS": {"type": "TEXT", "index": 5, "name": "CREATOR_ADDRESS", "comment": null}, "CREATED_CONTRACT_INPUT": {"type": "TEXT", "index": 6, "name": "CREATED_CONTRACT_INPUT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CREATED_CONTRACTS_ID": {"type": "TEXT", "index": 8, "name": "CREATED_CONTRACTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 11, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 51557103104, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 394636090, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__created_contracts"}, "test.fsc_evm.not_null_silver__complete_token_prices_HOUR.d5f4cd597b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_TOKEN_PRICES_HOUR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 3, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 5, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 6, "name": "DECIMALS", "comment": null}, "PRICE": {"type": "FLOAT", "index": 7, "name": "PRICE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN", "comment": null}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 9, "name": "BLOCKCHAIN_NAME", "comment": null}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 10, "name": "BLOCKCHAIN_ID", "comment": null}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 11, "name": "IS_IMPUTED", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 12, "name": "IS_DEPRECATED", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 13, "name": "IS_VERIFIED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 14, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 15, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_TOKEN_PRICES_ID": {"type": "TEXT", "index": 19, "name": "COMPLETE_TOKEN_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 20, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_token_prices_HOUR.d5f4cd597b"}, "test.polygon_models.not_null_silver__element_sales_CURRENCY_ADDRESS.6209f77238": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_CURRENCY_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_CURRENCY_ADDRESS.6209f77238"}, "model.fsc_evm.admin__dim_variables": {"metadata": {"type": "VIEW", "schema": "ADMIN", "name": "DIM_VARIABLES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PACKAGE": {"type": "TEXT", "index": 1, "name": "PACKAGE", "comment": ""}, "CATEGORY": {"type": "TEXT", "index": 2, "name": "CATEGORY", "comment": ""}, "KEY": {"type": "TEXT", "index": 3, "name": "KEY", "comment": ""}, "DEFAULT_VALUE": {"type": "TEXT", "index": 4, "name": "DEFAULT_VALUE", "comment": ""}, "DEFAULT_TYPE": {"type": "TEXT", "index": 5, "name": "DEFAULT_TYPE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "DIM_VARIABLES_ID": {"type": "TEXT", "index": 7, "name": "DIM_VARIABLES_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.admin__dim_variables"}, "test.fsc_evm.not_null_test_silver__blocks_recent__INSERTED_TIMESTAMP.071a17cc08": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "BLOCKS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BLOCKS_ID": {"type": "TEXT", "index": 5, "name": "BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 8, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__blocks_recent__INSERTED_TIMESTAMP.071a17cc08"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_FEE_PRECISE.161ef1c3a1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_TX_FEE_PRECISE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_FEE_PRECISE.161ef1c3a1"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_NAME.b876563dc0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_EVENT_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_NAME.b876563dc0"}, "model.fsc_evm.silver_bridge__stargate_swap": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "STARGATE_SWAP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 10, "name": "EVENT_REMOVED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 11, "name": "TX_SUCCEEDED", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 12, "name": "BRIDGE_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 15, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 16, "name": "AMOUNT_UNADJ", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "NUMBER", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN", "comment": null}, "DESTINATION_POOL_ID": {"type": "NUMBER", "index": 19, "name": "DESTINATION_POOL_ID", "comment": null}, "FEE": {"type": "NUMBER", "index": 20, "name": "FEE", "comment": null}, "REWARD": {"type": "NUMBER", "index": 21, "name": "REWARD", "comment": null}, "LP_FEE": {"type": "NUMBER", "index": 22, "name": "LP_FEE", "comment": null}, "PROTOCOL_FEE": {"type": "NUMBER", "index": 23, "name": "PROTOCOL_FEE", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 24, "name": "TOKEN_ADDRESS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 25, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 26, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 27, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 28, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 29, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:35UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1973957632, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 6259911, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__stargate_swap"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TOKEN_SYMBOL.d074b06159": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_TOKEN_SYMBOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TOKEN_SYMBOL.d074b06159"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__abis_full_CONTRACT_ADDRESS.6bc2b660ff": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "ABIS_FULL_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 09:46UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__abis_full_CONTRACT_ADDRESS.6bc2b660ff"}, "model.polygon_models.nft__ez_nft_sales": {"metadata": {"type": "VIEW", "schema": "NFT", "name": "EZ_NFT_SALES", "database": "POLYGON", "comment": "## What\n\nThis table provides a comprehensive view of NFT (Non-Fungible Token) sales across all major marketplaces and platforms on EVM blockchains. It captures both direct marketplace sales and aggregator-routed transactions, enabling analysis of NFT market dynamics, collection performance, and trading patterns.\n\n## Key Use Cases\n\n- Analyze daily/weekly NFT market volume and trends by platform\n- Track top-performing NFT collections by sales count and volume\n- Monitor marketplace competition and market share analysis\n- Identify whale activity and buyer behavior patterns\n- Evaluate creator royalty enforcement across platforms\n- Assess fee structures and revenue models by marketplace\n- Track cross-platform trader behavior and platform preferences\n\n## Important Relationships\n\n- Links to `core.fact_event_logs` via `tx_hash` and `event_index`\n- Joins with `core.dim_contracts` for collection name\n- References `price.ez_prices_hourly` for currency conversions\n- Connects to token transfer tables for ownership tracking\n\n## Commonly-used Fields\n\n- `platform_name`: Marketplace where sale occurred (opensea, blur, etc.)\n- `contract_address`: NFT collection contract address\n- `token_id`: Unique identifier of the specific NFT\n- `buyer_address` / `seller_address`: Transaction participants\n- `price_usd`: Sale price converted to USD (includes fees)\n- `total_fees_usd`: Combined platform and creator fees in USD\n- `event_type`: Type of sale transaction (sale, bid_won, etc.)\n\n## Sample Queries\n\n**Daily NFT market volume by platform**\n```sql\n-- Daily NFT market volume by platform\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform_name,\n COUNT(*) as sales_count,\n COUNT(DISTINCT tx_hash) AS unique_sales_transaction_count,\n COUNT(DISTINCT buyer_address) AS unique_buyers,\n COUNT(DISTINCT contract_address) AS collections_traded,\n SUM(price_usd) AS total_volume_usd,\n AVG(price_usd) AS avg_sale_price_usd\nFROM .nft.ez_nft_sales\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND price_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 7 DESC;\n```\n\n**Top selling NFT collections**\n```sql\n-- Top selling NFT collections\nSELECT \n contract_address,\n name AS collection_name,\n COUNT(*) AS sales_count,\n COUNT(DISTINCT token_id) AS unique_tokens_sold,\n COUNT(DISTINCT buyer_address) AS unique_buyers,\n SUM(price_usd) AS total_volume_usd,\n AVG(price_usd) AS avg_price_usd,\n MAX(price_usd) AS highest_sale_usd\nFROM .nft.ez_nft_sales\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND price_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 6 DESC\nLIMIT 50;\n```\n\n**Marketplace competition analysis**\n```sql\n-- Marketplace competition analysis\nWITH platform_metrics AS (\n SELECT \n platform_name,\n COUNT(*) AS total_sales,\n SUM(price_usd) AS total_volume_usd,\n COUNT(DISTINCT buyer_address) AS unique_buyers,\n COUNT(DISTINCT seller_address) AS unique_sellers,\n AVG(platform_fee / NULLIF(price, 0) * 100) AS avg_platform_fee_pct,\n SUM(platform_fee_usd) AS total_platform_revenue_usd\n FROM .nft.ez_nft_sales\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND price_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n platform_name,\n total_sales,\n total_volume_usd,\n total_volume_usd * 100.0 / SUM(total_volume_usd) OVER () AS market_share_pct,\n unique_buyers,\n unique_sellers,\n avg_platform_fee_pct,\n total_platform_revenue_usd\nFROM platform_metrics\nORDER BY total_volume_usd DESC;\n```\n\n**Whale activity tracking**\n```sql\n-- Whale activity tracking\nWITH buyer_stats AS (\n SELECT \n buyer_address,\n COUNT(*) AS purchases,\n COUNT(DISTINCT contract_address) AS unique_collections,\n SUM(price_usd) AS total_spent_usd,\n AVG(price_usd) AS avg_purchase_price,\n MAX(price_usd) AS highest_purchase\n FROM .nft.ez_nft_sales\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND price_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n CASE \n WHEN total_spent_usd < 1000 THEN '< [$]1K'\n WHEN total_spent_usd < 10000 THEN '[$]1K - [$]10K'\n WHEN total_spent_usd < 100000 THEN '[$]10K - [$]100K'\n WHEN total_spent_usd < 1000000 THEN '[$]100K - [$]1M'\n ELSE '> [$]1M'\n END AS buyer_tier,\n COUNT(*) AS buyer_count,\n SUM(purchases) AS total_purchases,\n AVG(unique_collections) AS avg_collections_per_buyer,\n SUM(total_spent_usd) AS tier_total_spent\nFROM buyer_stats\nGROUP BY 1\nORDER BY MIN(total_spent_usd);\n```\n \n**Creator royalty analysis**\n```sql\n-- Creator royalty analysis\nSELECT \n name AS collection_name,\n contract_address,\n COUNT(*) AS sales_with_royalties,\n SUM(creator_fee) AS total_creator_fees,\n SUM(creator_fee_usd) AS total_creator_fees_usd,\n AVG(creator_fee / NULLIF(price, 0) * 100) AS avg_royalty_pct,\n SUM(creator_fee_usd) / NULLIF(SUM(price_usd), 0) * 100 AS effective_royalty_rate\nFROM .nft.ez_nft_sales\nWHERE creator_fee > 0\n AND price > 0\n AND block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1, 2\nHAVING COUNT(*) > 10\nORDER BY total_creator_fees_usd DESC\nLIMIT 100;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": "The specific type of NFT transaction that occurred. Common values include 'sale', 'bid_won', 'redeem', and 'mint'.\n\nExample: 'sale'"}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": "The smart contract address of the marketplace facilitating the sale. Platforms may have multiple contracts for different versions.\n\nExample: '0x00000000006c3852cbef3e08e8df289169ede581'"}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": "The marketplace or platform where the NFT sale occurred. Standardized to lowercase with no spaces.\n\nExample: 'opensea'"}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": "The version identifier of the marketplace contract. Tracks protocol versions and upgrades.\n\nExample: 'seaport_1_5'"}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 9, "name": "AGGREGATOR_NAME", "comment": "The NFT aggregator platform that routed the transaction. NULL indicates direct platform interaction.\n\nExample: 'gem'"}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": "The blockchain address that sold the NFT.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "BUYER_ADDRESS": {"type": "TEXT", "index": 11, "name": "BUYER_ADDRESS", "comment": "The blockchain address that purchased the NFT.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 12, "name": "CONTRACT_ADDRESS", "comment": "The smart contract address of the NFT collection. Supports ERC-721, ERC-1155, and custom implementations.\n\nExample: '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'"}, "NAME": {"type": "TEXT", "index": 13, "name": "NAME", "comment": "The name of the NFT collection or project. May be NULL for unverified collections.\n\nExample: 'Bored Ape Yacht Club'"}, "TOKEN_ID": {"type": "TEXT", "index": 14, "name": "TOKEN_ID", "comment": "The unique identifier of the specific NFT within its collection. Format is numeric string.\n\nExample: '1234'"}, "QUANTITY": {"type": "TEXT", "index": 15, "name": "QUANTITY", "comment": "The number of tokens sold in the transaction. Primarily relevant for ERC-1155 tokens.\n\nExample: '1'"}, "TOKEN_STANDARD": {"type": "TEXT", "index": 16, "name": "TOKEN_STANDARD", "comment": "The technical standard implemented by the NFT contract. Common values include 'erc721', 'erc1155', 'cryptopunks', and 'legacy'.\n\nExample: 'erc721'"}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 17, "name": "CURRENCY_SYMBOL", "comment": "The symbol of the token used for payment.\n\nExample: 'ETH'"}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 18, "name": "CURRENCY_ADDRESS", "comment": "The contract address of the payment token. Shows 'ETH' for native ETH payments.\n\nExample: '0xa0b86a33e6776a1e7f9f0b8b8b8b8b8b8b8b8b8b'"}, "PRICE": {"type": "FLOAT", "index": 19, "name": "PRICE", "comment": "The sale price in the payment currency, including platform and creator fees. Raw price before USD conversion.\n\nExample: 2.5"}, "PRICE_USD": {"type": "FLOAT", "index": 20, "name": "PRICE_USD", "comment": "The sale price converted to USD at transaction time, including platform and creator fees. May be NULL for missing price data.\n\nExample: 4250.75"}, "TOTAL_FEES": {"type": "FLOAT", "index": 21, "name": "TOTAL_FEES", "comment": "The combined platform and creator fees in the payment currency.\n\nExample: 0.125"}, "PLATFORM_FEE": {"type": "FLOAT", "index": 22, "name": "PLATFORM_FEE", "comment": "The fee charged by the marketplace in the payment currency. Typically 2-2.5% of sale price.\n\nExample: 0.05"}, "CREATOR_FEE": {"type": "FLOAT", "index": 23, "name": "CREATOR_FEE", "comment": "The royalty fee paid to the collection creator in the payment currency. Typically 0-10% of sale price.\n\nExample: 0.075"}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_USD", "comment": "The combined platform and creator fees converted to USD.\n\nExample: 212.54"}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_USD", "comment": "The marketplace fee converted to USD.\n\nExample: 85.02"}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_USD", "comment": "The royalty fee converted to USD.\n\nExample: 127.52"}, "TX_FEE": {"type": "FLOAT", "index": 27, "name": "TX_FEE", "comment": "Total fee paid for transaction execution in native token units.\n\nExample: 0.002"}, "TX_FEE_USD": {"type": "FLOAT", "index": 28, "name": "TX_FEE_USD", "comment": "The transaction fee denominated in USD. Use only one instance per transaction to avoid overcounting.\n\nExample: 45.32"}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "EZ_NFT_SALES_ID": {"type": "TEXT", "index": 32, "name": "EZ_NFT_SALES_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 34, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.nft__ez_nft_sales"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full__INSERTED_TIMESTAMP__hour__2.461c571e72": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "TRANSACTIONS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full__INSERTED_TIMESTAMP__hour__2.461c571e72"}, "model.fsc_evm.silver_dex__trader_joe_v2_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "TRADER_JOE_V2_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 10, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 11, "name": "TOKEN1", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 12, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 15, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 16, "name": "AMOUNT1_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 19, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-21 18:45UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__trader_joe_v2_pool_actions"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP.1571060655": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP.1571060655"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_MODIFIED_TIMESTAMP.3f799b0371": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_MODIFIED_TIMESTAMP.3f799b0371"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_BLOCK_NUMBER.277bef24ac": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 6, "name": "TRACE_ADDRESS", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "TO_ADDRESS", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": null}, "AMOUNT_PRECISE_RAW": {"type": "TEXT", "index": 11, "name": "AMOUNT_PRECISE_RAW", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 12, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "EZ_NATIVE_TRANSFERS_ID": {"type": "TEXT", "index": 17, "name": "EZ_NATIVE_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_BLOCK_NUMBER.277bef24ac"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__user_verified_abis_full_ID.8832906bf1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "USER_VERIFIED_ABIS_FULL_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 11:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__user_verified_abis_full_ID.8832906bf1"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_deposits__LOG_ID.81d0e3df59": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_deposits__LOG_ID.81d0e3df59"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_blocks_recent_BLOCK_NUMBER.a1a1f456ae": {"metadata": {"type": "BASE TABLE", "schema": "FSC_EVM_SEQUENCE_GAPS_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PREV_BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "PREV_BLOCK_NUMBER", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "GAP": {"type": "NUMBER", "index": 3, "name": "GAP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_blocks_recent_BLOCK_NUMBER.a1a1f456ae"}, "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "KYBERSWAP_V1_DYNAMIC_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "AMOUNT0IN": {"type": "NUMBER", "index": 12, "name": "AMOUNT0IN", "comment": null}, "AMOUNT1IN": {"type": "NUMBER", "index": 13, "name": "AMOUNT1IN", "comment": null}, "AMOUNT0OUT": {"type": "NUMBER", "index": 14, "name": "AMOUNT0OUT", "comment": null}, "AMOUNT1OUT": {"type": "NUMBER", "index": 15, "name": "AMOUNT1OUT", "comment": null}, "FEE_IN_PRECISION": {"type": "NUMBER", "index": 16, "name": "FEE_IN_PRECISION", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 17, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 18, "name": "TOKEN1", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 19, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 20, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 21, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 22, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 26, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 27, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:36UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 790377472, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5211376, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_swaps"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__created_contracts_recent_created_contract_address.5c757b7d79": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "CREATED_CONTRACTS_RECENT_CREATED_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CREATED_CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CREATED_CONTRACT_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__created_contracts_recent_created_contract_address.5c757b7d79"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__labels_ADDRESS__0_xX_0_9a_fA_F_.4d2099651b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "LABELS_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__labels_ADDRESS__0_xX_0_9a_fA_F_.4d2099651b"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__create_service_multisigs_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.81228daf15": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_OLAS", "name": "CREATE_SERVICE_MULTISIGS_MULTISIG_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__create_service_multisigs_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.81228daf15"}, "seed.polygon_models.observability__exclusion_list": {"metadata": {"type": "BASE TABLE", "schema": "OBSERVABILITY", "name": "EXCLUSION_LIST", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1024, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 6, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.polygon_models.observability__exclusion_list"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.c61b6f0c34": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.c61b6f0c34"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_POOL_ADDRESS.8eeb6ff26e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_POOL_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_POOL_ADDRESS.8eeb6ff26e"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_EVENT_INDEX.83e4f1880e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_EVENT_INDEX.83e4f1880e"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_MODIFIED_TIMESTAMP.4e7d059a7d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_MODIFIED_TIMESTAMP.4e7d059a7d"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_DECIMALS.cf741a0564": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_RECENT_DECIMALS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 7, "name": "BALANCE_HEX", "comment": null}, "BALANCE_RAW": {"type": "NUMBER", "index": 8, "name": "BALANCE_RAW", "comment": null}, "BALANCE_PRECISE": {"type": "TEXT", "index": 9, "name": "BALANCE_PRECISE", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 10, "name": "BALANCE", "comment": null}, "BALANCE_USD": {"type": "FLOAT", "index": 11, "name": "BALANCE_USD", "comment": null}, "EZ_BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 12, "name": "EZ_BALANCES_ERC20_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_DECIMALS.cf741a0564"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_BLOCK_NUMBER.24829e36fa": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_BLOCK_NUMBER.24829e36fa"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP.c8bd425490": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP.c8bd425490"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_TYPE.41453fccf7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOLS_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 4, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 6, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 10, "name": "POOL_ID", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 11, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 12, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 13, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 14, "name": "DECIMALS", "comment": null}, "FEE": {"type": "NUMBER", "index": 15, "name": "FEE", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 16, "name": "TICK_SPACING", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 17, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 18, "name": "TOKEN1", "comment": null}, "TOKEN2": {"type": "TEXT", "index": 19, "name": "TOKEN2", "comment": null}, "TOKEN3": {"type": "TEXT", "index": 20, "name": "TOKEN3", "comment": null}, "TOKEN4": {"type": "TEXT", "index": 21, "name": "TOKEN4", "comment": null}, "TOKEN5": {"type": "TEXT", "index": 22, "name": "TOKEN5", "comment": null}, "TOKEN6": {"type": "TEXT", "index": 23, "name": "TOKEN6", "comment": null}, "TOKEN7": {"type": "TEXT", "index": 24, "name": "TOKEN7", "comment": null}, "_ID": {"type": "TEXT", "index": 25, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOLS_ID": {"type": "TEXT", "index": 27, "name": "COMPLETE_DEX_LIQUIDITY_POOLS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_TYPE.41453fccf7"}, "model.fsc_evm.silver_dex__aerodrome_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "AERODROME_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 6, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 7, "name": "TOKEN1", "comment": null}, "STABLE": {"type": "BOOLEAN", "index": 8, "name": "STABLE", "comment": null}, "POOL_NUMBER": {"type": "NUMBER", "index": 9, "name": "POOL_NUMBER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "POOL_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 11, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 12, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 13, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 14, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 15, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__aerodrome_pools"}, "model.fsc_evm.bronze__complete_provider_asset_metadata": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "COMPLETE_PROVIDER_ASSET_METADATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": ""}, "PLATFORM": {"type": "TEXT", "index": 5, "name": "PLATFORM", "comment": ""}, "PLATFORM_ID": {"type": "TEXT", "index": 6, "name": "PLATFORM_ID", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_PROVIDER_ASSET_METADATA_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_PROVIDER_ASSET_METADATA_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__complete_provider_asset_metadata"}, "model.fsc_evm.silver_dex__camelot_v2_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "CAMELOT_V2_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "TICK_LOWER": {"type": "FLOAT", "index": 10, "name": "TICK_LOWER", "comment": null}, "TICK_UPPER": {"type": "FLOAT", "index": 11, "name": "TICK_UPPER", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 12, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 13, "name": "TOKEN1", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 14, "name": "LIQUIDITY_PROVIDER", "comment": null}, "OWNER_ADDRESS": {"type": "TEXT", "index": 15, "name": "OWNER_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 16, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 17, "name": "RECEIVER", "comment": null}, "LIQUIDITY_AMOUNT_UNADJ": {"type": "FLOAT", "index": 18, "name": "LIQUIDITY_AMOUNT_UNADJ", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 19, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 20, "name": "AMOUNT1_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 24, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 25, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-21 18:36UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__camelot_v2_pool_actions"}, "model.fsc_evm.defi__ez_lending_repayments": {"metadata": {"type": "VIEW", "schema": "DEFI", "name": "EZ_LENDING_REPAYMENTS", "database": "POLYGON", "comment": "## What\n\nThis table contains loan repayment transactions across lending protocols. Repayments reduce or eliminate outstanding debt positions, with amounts including both principal and accrued interest. Understanding repayment patterns helps analyze user behavior and protocol health.\n\n## Key Use Cases\n\n- Tracking loan lifecycle and duration analysis\n- Calculating interest paid on borrowed positions\n- Understanding repayment patterns by user segment\n- Monitoring protocol revenue from interest\n- Analyzing third-party repayment activity\n\n## Important Relationships\n\n- Links to `ez_lending_borrows` for original loan details\n- Connects to `ez_lending_liquidations` (forced repayments)\n- May reference `ez_lending_deposits` for collateral release\n- Uses `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `borrower`: Address with the loan\n- `payer`: Address making the payment (may differ)\n- `platform`: Lending protocol\n- `token_address`/`token_symbol`: Repaid asset\n- `amount`/`amount_usd`: Repayment quantity\n\n## Sample queries\n\n```sql\n-- Daily repayment volume and metrics\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(*) AS repayment_count,\n COUNT(DISTINCT borrower) AS unique_borrowers,\n SUM(amount_usd) AS total_repaid_usd,\n AVG(amount_usd) AS avg_repayment_size_usd\nFROM .defi.ez_lending_repayments\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 5 DESC;\n\n-- Loan duration analysis\nWITH loan_lifecycles AS (\n SELECT \n b.borrower,\n b.platform,\n b.token_symbol,\n b.block_timestamp AS borrow_time,\n MIN(r.block_timestamp) AS first_repayment_time,\n SUM(b.amount_usd) AS borrowed_usd,\n SUM(r.amount_usd) AS total_repaid_usd\n FROM .defi.ez_lending_borrows b\n INNER JOIN .defi.ez_lending_repayments r\n ON b.borrower = r.borrower\n AND b.platform = r.platform\n AND b.token_address = r.token_address\n AND r.block_timestamp > b.block_timestamp\n WHERE b.block_timestamp >= CURRENT_DATE - 90\n AND b.amount_usd IS NOT NULL\n AND r.amount_usd IS NOT NULL\n GROUP BY 1, 2, 3, 4\n)\nSELECT \n platform,\n token_symbol,\n AVG(DATEDIFF('day', borrow_time, first_repayment_time)) AS avg_days_to_first_repayment,\n PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY DATEDIFF('day', borrow_time, first_repayment_time)) AS median_days,\n COUNT(*) AS loan_count,\n AVG(total_repaid_usd / NULLIF(borrowed_usd, 0) - 1) * 100 AS avg_interest_paid_pct\nFROM loan_lifecycles\nGROUP BY 1, 2\nHAVING COUNT(*) > 10\nORDER BY 3;\n\n-- Repayment patterns by user segment\nWITH user_repayment_stats AS (\n SELECT \n borrower,\n COUNT(*) AS repayment_count,\n SUM(amount_usd) AS total_repaid_usd,\n AVG(amount_usd) AS avg_repayment_size,\n COUNT(DISTINCT DATE_TRUNC('month', block_timestamp)) AS active_months,\n COUNT(DISTINCT token_address) AS unique_assets_repaid\n FROM .defi.ez_lending_repayments\n WHERE block_timestamp >= CURRENT_DATE - 180\n AND amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n CASE \n WHEN total_repaid_usd < 1000 THEN 'Micro (<[$]1K)'\n WHEN total_repaid_usd < 10000 THEN 'Small ([$]1K-[$]10K)'\n WHEN total_repaid_usd < 100000 THEN 'Medium ([$]10K-[$]100K)'\n WHEN total_repaid_usd < 1000000 THEN 'Large ([$]100K-[$]1M)'\n ELSE 'Whale (>[$]1M)'\n END AS borrower_segment,\n COUNT(*) AS borrower_count,\n AVG(repayment_count) AS avg_repayments_per_user,\n AVG(avg_repayment_size) AS avg_repayment_size,\n AVG(active_months) AS avg_active_months\nFROM user_repayment_stats\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Asset-specific repayment velocity\nSELECT \n token_symbol,\n platform,\n COUNT(*) AS repayment_transactions,\n COUNT(DISTINCT borrower) AS unique_repayers,\n SUM(amount_usd) AS total_usd_repaid,\n AVG(amount_usd) AS avg_repayment_usd,\n SUM(amount_usd) / COUNT(DISTINCT DATE_TRUNC('day', block_timestamp)) AS daily_velocity_usd\nFROM .defi.ez_lending_repayments\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND token_symbol IS NOT NULL\n AND amount_usd IS NOT NULL\nGROUP BY 1, 2\nHAVING COUNT(*) > 50\nORDER BY 8 DESC;\n\n-- Large repayments monitoring\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n borrower,\n payer,\n token_symbol,\n amount_usd,\n CASE WHEN borrower = payer THEN 'Self' ELSE 'Third-party' END AS repayment_type\nFROM .defi.ez_lending_repayments\nWHERE amount_usd > 500000\n AND block_timestamp >= CURRENT_DATE - 7\nORDER BY amount_usd DESC;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events"}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```"}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": "The lending protocol where the transaction occurred.\n\nExample: 'aave'"}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": "The address that paid the loan or deposit.\n\nExample: '0x5555555555555555555555555555555555555555'"}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": "The address that initiated a borrow or repayment transaction.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 13, "name": "PROTOCOL_MARKET", "comment": "The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 14, "name": "TOKEN_ADDRESS", "comment": "The contract address of the underlying asset being lent or borrowed.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 15, "name": "TOKEN_SYMBOL", "comment": "The ticker symbol of the asset involved in the lending transaction.\n\nExample: 'USDC'"}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 16, "name": "AMOUNT_UNADJ", "comment": "The raw amount of tokens borrowed or repaid without decimal adjustment.\n\nExample: 1000000000"}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": "The decimal-adjusted quantity of tokens in the transaction.\n\nExample: 1000.5"}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": "The USD value of tokens at transaction time.\n\nExample: 1500.75"}, "EZ_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 19, "name": "EZ_LENDING_REPAYMENTS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.defi__ez_lending_repayments"}, "model.fsc_evm.test_gold__ez_balances_erc20_daily_full": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": ""}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": ""}, "BALANCE_HEX": {"type": "TEXT", "index": 7, "name": "BALANCE_HEX", "comment": ""}, "BALANCE_RAW": {"type": "NUMBER", "index": 8, "name": "BALANCE_RAW", "comment": ""}, "BALANCE_PRECISE": {"type": "TEXT", "index": 9, "name": "BALANCE_PRECISE", "comment": ""}, "BALANCE": {"type": "FLOAT", "index": 10, "name": "BALANCE", "comment": ""}, "BALANCE_USD": {"type": "FLOAT", "index": 11, "name": "BALANCE_USD", "comment": ""}, "EZ_BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 12, "name": "EZ_BALANCES_ERC20_DAILY_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__ez_balances_erc20_daily_full"}, "model.fsc_evm.defi__ez_lending_borrows": {"metadata": {"type": "VIEW", "schema": "DEFI", "name": "EZ_LENDING_BORROWS", "database": "POLYGON", "comment": "## What\n\nThis table provides a comprehensive view of borrowing transactions across all major lending protocols on EVM blockchains. It captures when users borrow assets against their deposited collateral, enabling analysis of lending market dynamics, user behavior, and protocol performance.\n\n## Key Use Cases\n\n- Tracking borrowing volumes and user activity across protocols\n- Analyzing most borrowed assets and their trends\n- Understanding user borrowing patterns and behavior\n- Monitoring protocol market share and growth\n- Calculating outstanding loan positions\n\n## Important Relationships\n\n- Links to `ez_lending_deposits` for collateral analysis\n- Joins with `ez_lending_repayments` to track loan lifecycle\n- References `ez_lending_liquidations` for risk analysis\n- Connects to `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `borrower`: Address that borrowed assets\n- `platform`: Lending protocol name\n- `token_address`/`token_symbol`: Borrowed asset details\n- `amount`/`amount_usd`: Borrowed quantity and USD value\n- `block_timestamp`: When borrow occurred\n\n## Sample queries\n\n```sql\n-- Daily borrowing volume by protocol\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(DISTINCT tx_hash) AS borrow_txns,\n COUNT(DISTINCT borrower) AS unique_borrowers,\n SUM(amount_usd) AS volume_usd\nFROM .defi.ez_lending_borrows\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 5 DESC;\n\n-- Top borrowed assets analysis\nSELECT \n token_symbol,\n token_address,\n COUNT(*) AS borrow_count,\n SUM(amount) AS total_borrowed,\n SUM(amount_usd) AS total_borrowed_usd,\n AVG(amount_usd) AS avg_borrow_size_usd\nFROM .defi.ez_lending_borrows\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND token_symbol IS NOT NULL\nGROUP BY 1, 2\nORDER BY 5 DESC\nLIMIT 20;\n\n-- Wallet Specific Borrow Analysis\nSELECT \n b.borrower,\n b.token_address AS borrowed_token_address,\n b.token_symbol AS borrowed_token_symbol,\n DATE_TRUNC('week', b.block_timestamp) AS weekly_block_timestamp,\n SUM(b.amount) AS total_borrow_amount,\n SUM(b.amount_usd) AS total_borrow_usd,\n SUM(r.amount) AS total_repayment_amount,\n SUM(r.amount_usd) AS total_repayment_usd,\n SUM(b.amount) - SUM(r.amount) AS net_borrowed_amount,\n SUM(b.amount_usd) - SUM(r.amount_usd) AS net_borrowed_usd\nFROM \n .defi.ez_lending_borrows b\nLEFT JOIN .defi.ez_lending_repayments r\n ON b.borrower = r.borrower\n AND b.token_address = r.token_address\nWHERE \n b.borrower = LOWER('')\nGROUP BY 1, 2, 3, 4\n\n-- User borrowing patterns\nWITH user_stats AS (\n SELECT \n borrower,\n COUNT(DISTINCT DATE_TRUNC('day', block_timestamp)) AS active_days,\n COUNT(DISTINCT platform) AS platforms_used,\n COUNT(DISTINCT token_address) AS assets_borrowed,\n SUM(amount_usd) AS total_borrowed_usd,\n AVG(amount_usd) AS avg_borrow_size\n FROM .defi.ez_lending_borrows\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n CASE \n WHEN total_borrowed_usd < 1000 THEN '< [$]1K'\n WHEN total_borrowed_usd < 10000 THEN '[$]1K - [$]10K'\n WHEN total_borrowed_usd < 100000 THEN '[$]10K - [$]100K'\n ELSE '> [$]100K'\n END AS borrower_tier,\n COUNT(*) AS user_count,\n AVG(active_days) AS avg_active_days,\n AVG(platforms_used) AS avg_platforms,\n AVG(total_borrowed_usd) AS avg_total_borrowed\nFROM user_stats\nGROUP BY 1\nORDER BY 5 DESC;\n\n-- Protocol market share\nWITH protocol_volume AS (\n SELECT \n platform,\n SUM(amount_usd) AS total_volume,\n COUNT(DISTINCT borrower) AS unique_users,\n COUNT(*) AS transaction_count\n FROM .defi.ez_lending_borrows\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n platform,\n total_volume,\n total_volume * 100.0 / SUM(total_volume) OVER () AS market_share_pct,\n unique_users,\n transaction_count,\n total_volume / transaction_count AS avg_borrow_size\nFROM protocol_volume\nORDER BY total_volume DESC;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events"}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```"}, "EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "EVENT_INDEX", "comment": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": "The lending protocol where the transaction occurred.\n\nExample: 'aave'"}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 11, "name": "PROTOCOL_MARKET", "comment": "The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'"}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": "The address that initiated a borrow or repayment transaction.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": "The contract address of the underlying asset being lent or borrowed.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": "The ticker symbol of the asset involved in the lending transaction.\n\nExample: 'USDC'"}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": "The raw amount of tokens borrowed or repaid without decimal adjustment.\n\nExample: 1000000000"}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": "The decimal-adjusted quantity of tokens in the transaction.\n\nExample: 1000.5"}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": "The USD value of tokens at transaction time.\n\nExample: 1500.75"}, "EZ_LENDING_BORROWS_ID": {"type": "TEXT", "index": 18, "name": "EZ_LENDING_BORROWS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.defi__ez_lending_borrows"}, "model.fsc_evm.silver_bridge__multichain_v7_loganyswapout": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "MULTICHAIN_V7_LOGANYSWAPOUT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 10, "name": "EVENT_REMOVED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 11, "name": "TX_SUCCEEDED", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 12, "name": "BRIDGE_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 15, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 16, "name": "AMOUNT", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "NUMBER", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 18, "name": "TOKEN_ADDRESS", "comment": null}, "SWAPOUT_ID": {"type": "TEXT", "index": 19, "name": "SWAPOUT_ID", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 20, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 21, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 22, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:01UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 54784, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 123, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__multichain_v7_loganyswapout"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__dim_contract_abis_recent_CONTRACT_ADDRESS.4dc01d4661": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "DIM_CONTRACT_ABIS_RECENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__dim_contract_abis_recent_CONTRACT_ADDRESS.4dc01d4661"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_BLOCK_DATE.d5648e9d19": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_BALANCES_NATIVE_DAILY_RECENT_BLOCK_DATE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 5, "name": "BALANCE_HEX", "comment": null}, "BALANCE_RAW": {"type": "NUMBER", "index": 6, "name": "BALANCE_RAW", "comment": null}, "BALANCE_PRECISE": {"type": "TEXT", "index": 7, "name": "BALANCE_PRECISE", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 8, "name": "BALANCE", "comment": null}, "BALANCE_USD": {"type": "FLOAT", "index": 9, "name": "BALANCE_USD", "comment": null}, "EZ_BALANCES_NATIVE_DAILY_ID": {"type": "TEXT", "index": 10, "name": "EZ_BALANCES_NATIVE_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_BLOCK_DATE.d5648e9d19"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_transactions_full_TX_POSITION__BLOCK_NUMBER.edeb24d95d": {"metadata": {"type": "BASE TABLE", "schema": "FSC_EVM_SEQUENCE_GAPS_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PREV_TX_POSITION": {"type": "NUMBER", "index": 2, "name": "PREV_TX_POSITION", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}, "GAP": {"type": "NUMBER", "index": 4, "name": "GAP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_transactions_full_TX_POSITION__BLOCK_NUMBER.edeb24d95d"}, "model.fsc_evm.test_silver__receipts_full": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "RECEIPTS_FULL", "database": "POLYGON", "comment": "This is a view used to test all of the silver receipts model.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": ""}, "RECEIPTS_JSON": {"type": "VARIANT", "index": 4, "name": "RECEIPTS_JSON", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "RECEIPTS_ID": {"type": "TEXT", "index": 6, "name": "RECEIPTS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__receipts_full"}, "seed.fsc_evm.silver_bridge__standard_chain_seed": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "STANDARD_CHAIN_SEED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VARIATION": {"type": "TEXT", "index": 1, "name": "VARIATION", "comment": null}, "STANDARDIZED_NAME": {"type": "TEXT", "index": 2, "name": "STANDARDIZED_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 5632, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 342, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver_bridge__standard_chain_seed"}, "model.fsc_evm.silver__labels": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "LABELS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"SYSTEM_CREATED_AT": {"type": "TIMESTAMP_LTZ", "index": 1, "name": "SYSTEM_CREATED_AT", "comment": ""}, "INSERT_DATE": {"type": "TIMESTAMP_LTZ", "index": 2, "name": "INSERT_DATE", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": ""}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": ""}, "CREATOR": {"type": "TEXT", "index": 5, "name": "CREATOR", "comment": ""}, "LABEL_TYPE": {"type": "TEXT", "index": 6, "name": "LABEL_TYPE", "comment": ""}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 7, "name": "LABEL_SUBTYPE", "comment": ""}, "ADDRESS_NAME": {"type": "TEXT", "index": 8, "name": "ADDRESS_NAME", "comment": ""}, "PROJECT_NAME": {"type": "TEXT", "index": 9, "name": "PROJECT_NAME", "comment": ""}, "_IS_DELETED": {"type": "BOOLEAN", "index": 10, "name": "_IS_DELETED", "comment": ""}, "LABELS_ID": {"type": "TEXT", "index": 11, "name": "LABELS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 14, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:14UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 6652959744, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(modified_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 161840802, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__labels"}, "test.fsc_evm.not_null_test_silver__receipts_full__INSERTED_TIMESTAMP.daab58d3d3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "RECEIPTS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": null}, "RECEIPTS_JSON": {"type": "VARIANT", "index": 4, "name": "RECEIPTS_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "RECEIPTS_ID": {"type": "TEXT", "index": 6, "name": "RECEIPTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__receipts_full__INSERTED_TIMESTAMP.daab58d3d3"}, "model.fsc_evm.bronze__decoded_logs": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "DECODED_LOGS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "ID": {"type": "TEXT", "index": 2, "name": "ID", "comment": ""}, "DATA": {"type": "VARIANT", "index": 3, "name": "DATA", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "_PARTITION_BY_BLOCK_NUMBER": {"type": "NUMBER", "index": 7, "name": "_PARTITION_BY_BLOCK_NUMBER", "comment": ""}, "_PARTITION_BY_CREATED_DATE": {"type": "DATE", "index": 8, "name": "_PARTITION_BY_CREATED_DATE", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__decoded_logs"}, "model.fsc_evm.bronze__balances_erc20_fr": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "BALANCES_ERC20_FR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 7, "name": "BLOCK_NUMBER", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__balances_erc20_fr"}, "seed.fsc_evm.silver_dex__dodo_v1_pool_metadata": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "DODO_V1_POOL_METADATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 2, "name": "POOL_ADDRESS", "comment": null}, "BASE_TOKEN_SYMBOL": {"type": "TEXT", "index": 3, "name": "BASE_TOKEN_SYMBOL", "comment": null}, "QUOTE_TOKEN_SYMBOL": {"type": "TEXT", "index": 4, "name": "QUOTE_TOKEN_SYMBOL", "comment": null}, "BASE_TOKEN": {"type": "TEXT", "index": 5, "name": "BASE_TOKEN", "comment": null}, "QUOTE_TOKEN": {"type": "TEXT", "index": 6, "name": "QUOTE_TOKEN", "comment": null}, "CREATED_AT": {"type": "DATE", "index": 7, "name": "CREATED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 3072, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver_dex__dodo_v1_pool_metadata"}, "model.fsc_evm.silver_dex__zyberswap_v2_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "ZYBERSWAP_V2_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "TICK_LOWER": {"type": "FLOAT", "index": 10, "name": "TICK_LOWER", "comment": null}, "TICK_UPPER": {"type": "FLOAT", "index": 11, "name": "TICK_UPPER", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 12, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 13, "name": "TOKEN1", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 14, "name": "LIQUIDITY_PROVIDER", "comment": null}, "OWNER_ADDRESS": {"type": "TEXT", "index": 15, "name": "OWNER_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 16, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 17, "name": "RECEIVER", "comment": null}, "LIQUIDITY_AMOUNT_UNADJ": {"type": "FLOAT", "index": 18, "name": "LIQUIDITY_AMOUNT_UNADJ", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 19, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 20, "name": "AMOUNT1_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 24, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 25, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-21 18:47UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__zyberswap_v2_pool_actions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TX_FEE__NUMBER__FLOAT.5fc845aa08": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_1_SALES_TX_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TX_FEE__NUMBER__FLOAT.5fc845aa08"}, "model.fsc_evm.silver_lending__morpho_deposits": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "MORPHO_DEPOSITS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 8, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 9, "name": "AMOUNT_UNADJ", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 10, "name": "DEPOSITOR", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 11, "name": "PROTOCOL_MARKET", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 12, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 13, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 14, "name": "VERSION", "comment": null}, "_ID": {"type": "TEXT", "index": 15, "name": "_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 17, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:32UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 5028352, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 36379, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__morpho_deposits"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.338ac91ecd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TOFUNFT_SALES_CREATOR_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.338ac91ecd"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.dadf3a2ece": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "TRANSACTIONS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.dadf3a2ece"}, "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_TX_HASH.7f8b64f808": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "CONFIRM_BLOCKS_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 5, "name": "TX_HASH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CONFIRM_BLOCKS_ID": {"type": "TEXT", "index": 7, "name": "CONFIRM_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_TX_HASH.7f8b64f808"}, "model.fsc_evm.silver_lending__euler_liquidations": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "EULER_LIQUIDATIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 9, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 10, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 11, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 12, "name": "COLLATERAL_TOKEN", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "NUMBER", "index": 13, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 14, "name": "DEBT_TOKEN", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 16, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 19, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 21, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:50UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__euler_liquidations"}, "test.fsc_evm.fsc_utils_tx_block_count_test_gold__fact_event_logs_full_TX_HASH.b31311d808": {"metadata": {"type": "BASE TABLE", "schema": "FSC_UTILS_TX_BLOCK_COUNT_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "NUM_BLOCKS": {"type": "NUMBER", "index": 2, "name": "NUM_BLOCKS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.fsc_utils_tx_block_count_test_gold__fact_event_logs_full_TX_HASH.b31311d808"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_TYPE.9c605a5a95": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_TX_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_TYPE.9c605a5a95"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2789060087": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_RECENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2789060087"}, "model.fsc_evm.test_silver__bytecode_abis_recent": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "BYTECODE_ABIS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": ""}, "ABI": {"type": "VARIANT", "index": 2, "name": "ABI", "comment": ""}, "ABI_HASH": {"type": "TEXT", "index": 3, "name": "ABI_HASH", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__bytecode_abis_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_daily_recent_BALANCE__NUMBER__FLOAT.ad56fe9d44": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_RECENT_BALANCE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:50UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_daily_recent_BALANCE__NUMBER__FLOAT.ad56fe9d44"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.dde3475101": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:29UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.dde3475101"}, "model.fsc_evm.silver_dex__sushiswap_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "SUSHISWAP_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 13, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 14, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 15, "name": "TOKEN_OUT", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 16, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 17, "name": "TOKEN1", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__sushiswap_swaps"}, "test.fsc_evm.not_null_test_silver__transactions_recent_TRANSACTION_JSON.fd6c02a4c1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRANSACTIONS_RECENT_TRANSACTION_JSON", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}, "TRANSACTION_JSON": {"type": "VARIANT", "index": 4, "name": "TRANSACTION_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRANSACTIONS_ID": {"type": "TEXT", "index": 6, "name": "TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__transactions_recent_TRANSACTION_JSON.fd6c02a4c1"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.cd3a28165e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.cd3a28165e"}, "model.fsc_evm.silver_lending__morpho_borrows": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "MORPHO_BORROWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 8, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 9, "name": "AMOUNT_UNADJ", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 12, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 13, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 14, "name": "VERSION", "comment": null}, "_ID": {"type": "TEXT", "index": 15, "name": "_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 17, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:32UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 958464, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 7509, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__morpho_borrows"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.f626a67c39": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "RECEIPTS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.f626a67c39"}, "test.fsc_evm.not_null_test_silver__decoded_logs_recent_BLOCK_NUMBER.c8ab501b30": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "DECODED_LOGS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": null}, "DECODED_DATA": {"type": "VARIANT", "index": 6, "name": "DECODED_DATA", "comment": null}, "TRANSFORMED": {"type": "VARIANT", "index": 7, "name": "TRANSFORMED", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 8, "name": "DECODED_FLAT", "comment": null}, "DECODED_LOGS_ID": {"type": "TEXT", "index": 9, "name": "DECODED_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_recent_BLOCK_NUMBER.c8ab501b30"}, "model.fsc_evm.silver_dex__kyberswap_v1_static_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "KYBERSWAP_V1_STATIC_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 6, "name": "EVENT_NAME", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 7, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 8, "name": "TOKEN1", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "AMP_BPS": {"type": "NUMBER", "index": 10, "name": "AMP_BPS", "comment": null}, "FEE_UNITS": {"type": "NUMBER", "index": 11, "name": "FEE_UNITS", "comment": null}, "TOTAL_POOL": {"type": "NUMBER", "index": 12, "name": "TOTAL_POOL", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 14, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 15, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 16, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1382912, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 229, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__kyberswap_v1_static_pools"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_TX_HASH__0_xX_0_9a_fA_F_.0ee978e0d4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "COMPLETE_NFT_SALES_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_TX_HASH__0_xX_0_9a_fA_F_.0ee978e0d4"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_BLOCK_NUMBER__NUMBER__FLOAT.2efc5278e8": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TOFUNFT_SALES_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_BLOCK_NUMBER__NUMBER__FLOAT.2efc5278e8"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID.04c28bc46d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_BALANCES_NATIVE_DAILY_RECENT_EZ_BALANCES_NATIVE_DAILY_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 5, "name": "BALANCE_HEX", "comment": null}, "BALANCE_RAW": {"type": "NUMBER", "index": 6, "name": "BALANCE_RAW", "comment": null}, "BALANCE_PRECISE": {"type": "TEXT", "index": 7, "name": "BALANCE_PRECISE", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 8, "name": "BALANCE", "comment": null}, "BALANCE_USD": {"type": "FLOAT", "index": 9, "name": "BALANCE_USD", "comment": null}, "EZ_BALANCES_NATIVE_DAILY_ID": {"type": "TEXT", "index": 10, "name": "EZ_BALANCES_NATIVE_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID.04c28bc46d"}, "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_BLOCK_TIMESTAMP.aa08bbc5bb": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_DEFI", "name": "EZ_DEX_LIQUIDITY_POOL_ACTIONS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 17, "name": "TOKEN_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "PROTOCOL_VERSION": {"type": "TEXT", "index": 20, "name": "PROTOCOL_VERSION", "comment": null}, "EZ_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 21, "name": "EZ_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_BLOCK_TIMESTAMP.aa08bbc5bb"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_ORIGIN_FROM_ADDRESS.66479f9f70": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_ORIGIN_FROM_ADDRESS.66479f9f70"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_5_sales_nft_log_id.abea905342": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "SEAPORT_1_5_SALES_NFT_LOG_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"NFT_LOG_ID": {"type": "TEXT", "index": 1, "name": "NFT_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_5_sales_nft_log_id.abea905342"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_NONCE__NUMBER__FLOAT.1083444a52": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_NONCE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_NONCE__NUMBER__FLOAT.1083444a52"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_TX_COUNT.2ab3789a46": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_TX_COUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_TX_COUNT.2ab3789a46"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.2a0915d40b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_BLOCKS_FULL_RECEIPTS_ROOT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.2a0915d40b"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__curve_pools_POOL_ID.16e66dab1a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_DEX", "name": "CURVE_POOLS_POOL_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"POOL_ID": {"type": "TEXT", "index": 1, "name": "POOL_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__curve_pools_POOL_ID.16e66dab1a"}, "test.polygon_models.not_null_silver_olas__service_registrations_BLOCK_TIMESTAMP.5cfbea80f9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "SERVICE_REGISTRATIONS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OWNER_ADDRESS": {"type": "TEXT", "index": 10, "name": "OWNER_ADDRESS", "comment": null}, "MULTISIG_ADDRESS": {"type": "TEXT", "index": 11, "name": "MULTISIG_ADDRESS", "comment": null}, "SERVICE_ID": {"type": "NUMBER", "index": 12, "name": "SERVICE_ID", "comment": null}, "CONFIG_HASH": {"type": "TEXT", "index": 13, "name": "CONFIG_HASH", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 14, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}, "SERVICE_REGISTRATION_ID": {"type": "TEXT", "index": 16, "name": "SERVICE_REGISTRATION_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 19, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__service_registrations_BLOCK_TIMESTAMP.5cfbea80f9"}, "test.polygon_models.not_null_silver__mooar_sales_EVENT_TYPE.482185083d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_EVENT_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_EVENT_TYPE.482185083d"}, "model.fsc_evm.bronze__receipts": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "RECEIPTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 6, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 8, "name": "BLOCK_NUMBER", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__receipts"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_EVENT_INDEX__NUMBER__FLOAT.ba4706e35d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_EVENT_INDEX__NUMBER__FLOAT.ba4706e35d"}, "test.fsc_evm.not_null_test_silver__transactions_full_TRANSACTION_JSON.5c28fd61a2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRANSACTIONS_FULL_TRANSACTION_JSON", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}, "TRANSACTION_JSON": {"type": "VARIANT", "index": 4, "name": "TRANSACTION_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRANSACTIONS_ID": {"type": "TEXT", "index": 6, "name": "TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__transactions_full_TRANSACTION_JSON.5c28fd61a2"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_NFT_ADDRESS.4c2d3ab960": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_NFT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_NFT_ADDRESS.4c2d3ab960"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__polymarket_filled_orders__LOG_ID.7b6aeb1e9c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "POLYMARKET_FILLED_ORDERS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__polymarket_filled_orders__LOG_ID.7b6aeb1e9c"}, "test.fsc_evm.not_null_test_silver__decoded_logs_full_CONTRACT_ADDRESS.38ce06a72b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "DECODED_LOGS_FULL_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": null}, "DECODED_DATA": {"type": "VARIANT", "index": 6, "name": "DECODED_DATA", "comment": null}, "TRANSFORMED": {"type": "VARIANT", "index": 7, "name": "TRANSFORMED", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 8, "name": "DECODED_FLAT", "comment": null}, "DECODED_LOGS_ID": {"type": "TEXT", "index": 9, "name": "DECODED_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_full_CONTRACT_ADDRESS.38ce06a72b"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_withdraws__LOG_ID.7cfc5aa030": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_withdraws__LOG_ID.7cfc5aa030"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_swaps__LOG_ID.ba65a2d85c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_swaps__LOG_ID.ba65a2d85c"}, "test.fsc_evm.not_null_test_silver__blocks_recent_MODIFIED_TIMESTAMP.d5c1fe9610": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "BLOCKS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BLOCKS_ID": {"type": "TEXT", "index": 5, "name": "BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 8, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__blocks_recent_MODIFIED_TIMESTAMP.d5c1fe9610"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.232d4d13e5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "COMPLETE_NFT_SALES_NFT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.232d4d13e5"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.c3c9bf6f98": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "MOOAR_SALES_PLATFORM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.c3c9bf6f98"}, "model.fsc_evm.test_silver__verified_abis_recent": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "VERIFIED_ABIS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": ""}, "DATA": {"type": "VARIANT", "index": 2, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "ABI_SOURCE": {"type": "TEXT", "index": 4, "name": "ABI_SOURCE", "comment": ""}, "DISCORD_USERNAME": {"type": "TEXT", "index": 5, "name": "DISCORD_USERNAME", "comment": ""}, "ABI_HASH": {"type": "TEXT", "index": 6, "name": "ABI_HASH", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__verified_abis_recent"}, "model.fsc_evm.silver_lending__fraxlend_withdraws": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "FRAXLEND_WITHDRAWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "CALLER": {"type": "TEXT", "index": 9, "name": "CALLER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 10, "name": "RECEIVER", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT_UNADJ", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 13, "name": "PROTOCOL_MARKET", "comment": null}, "PROTOCOL_MARKET_SYMBOL": {"type": "TEXT", "index": 14, "name": "PROTOCOL_MARKET_SYMBOL", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 15, "name": "TOKEN_ADDRESS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 16, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 17, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 19, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 21, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__fraxlend_withdraws"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_reads_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.5dc95cdcbc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_OLAS", "name": "REGISTRY_READS_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_reads_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.5dc95cdcbc"}, "test.fsc_evm.not_null_test_silver__blocks_full_BLOCK_JSON.0bc7eee26e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "BLOCKS_FULL_BLOCK_JSON", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BLOCKS_ID": {"type": "TEXT", "index": 5, "name": "BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 8, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:46UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__blocks_full_BLOCK_JSON.0bc7eee26e"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_SENDER__0_xX_0_9a_fA_F_.45e7cc2df2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_SENDER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_SENDER__0_xX_0_9a_fA_F_.45e7cc2df2"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_FEE_RAW.a0f300ff1c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_PLATFORM_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_FEE_RAW.a0f300ff1c"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TOTAL_FEES__NUMBER__FLOAT.c717cf1013": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "COMPLETE_NFT_SALES_TOTAL_FEES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TOTAL_FEES__NUMBER__FLOAT.c717cf1013"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.4d67ac0920": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.4d67ac0920"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TOKEN_SYMBOL.d60b5cda5a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_TOKEN_SYMBOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TOKEN_SYMBOL.d60b5cda5a"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_TX_HASH__0_xX_0_9a_fA_F_.a50cc790b3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_TRACES_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_TX_HASH__0_xX_0_9a_fA_F_.a50cc790b3"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.9d61391097": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "TRANSACTIONS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.9d61391097"}, "model.fsc_evm.silver_bridge__ethereum_native_bridges_transfers_out": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "ETHEREUM_NATIVE_BRIDGES_TRANSFERS_OUT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 9, "name": "BRIDGE_ADDRESS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 10, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 11, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 12, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 15, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 17, "name": "AMOUNT_UNADJ", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 19, "name": "TOKEN_ADDRESS", "comment": null}, "_ID": {"type": "TEXT", "index": 20, "name": "_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:01UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__ethereum_native_bridges_transfers_out"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_borrows_BLOCK_TIMESTAMP__day__3.91c4dcedc7": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_borrows_BLOCK_TIMESTAMP__day__3.91c4dcedc7"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_BLOCK_TIMESTAMP.64626723f1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_BLOCK_TIMESTAMP.64626723f1"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_BLOCK_NUMBER.a56487d0d2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_BLOCK_NUMBER.a56487d0d2"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_AMOUNT.ef1dc64c3e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_AMOUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_AMOUNT.ef1dc64c3e"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_BLOCK_TIMESTAMP.1a905291e9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_BLOCK_TIMESTAMP.1a905291e9"}, "model.fsc_evm.silver_bridge__cctp_v2_depositforburn": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "CCTP_V2_DEPOSITFORBURN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 10, "name": "BRIDGE_ADDRESS", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT_UNADJ", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 15, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "NUMBER", "index": 16, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 20, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:29UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 23431680, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 113539, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__cctp_v2_depositforburn"}, "test.fsc_evm.not_null_observability__receipts_TEST_TIMESTAMP.c023aec11f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_OBSERVABILITY", "name": "RECEIPTS_TEST_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TEST_NAME": {"type": "TEXT", "index": 1, "name": "TEST_NAME", "comment": null}, "MIN_BLOCK": {"type": "NUMBER", "index": 2, "name": "MIN_BLOCK", "comment": null}, "MAX_BLOCK": {"type": "NUMBER", "index": 3, "name": "MAX_BLOCK", "comment": null}, "MIN_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "MIN_BLOCK_TIMESTAMP", "comment": null}, "MAX_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "MAX_BLOCK_TIMESTAMP", "comment": null}, "BLOCKS_TESTED": {"type": "NUMBER", "index": 6, "name": "BLOCKS_TESTED", "comment": null}, "BLOCKS_IMPACTED_COUNT": {"type": "NUMBER", "index": 7, "name": "BLOCKS_IMPACTED_COUNT", "comment": null}, "MISSING_LIST": {"type": "ARRAY", "index": 8, "name": "MISSING_LIST", "comment": null}, "TEST_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "TEST_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_observability__receipts_TEST_TIMESTAMP.c023aec11f"}, "test.fsc_evm.not_null_test_silver__decoded_logs_recent_TX_HASH.6dfd6d6fcb": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "DECODED_LOGS_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": null}, "DECODED_DATA": {"type": "VARIANT", "index": 6, "name": "DECODED_DATA", "comment": null}, "TRANSFORMED": {"type": "VARIANT", "index": 7, "name": "TRANSFORMED", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 8, "name": "DECODED_FLAT", "comment": null}, "DECODED_LOGS_ID": {"type": "TEXT", "index": 9, "name": "DECODED_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_recent_TX_HASH.6dfd6d6fcb"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_SYMBOL.8859925617": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_FULL_SYMBOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 7, "name": "BALANCE_HEX", "comment": null}, "BALANCE_RAW": {"type": "NUMBER", "index": 8, "name": "BALANCE_RAW", "comment": null}, "BALANCE_PRECISE": {"type": "TEXT", "index": 9, "name": "BALANCE_PRECISE", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 10, "name": "BALANCE", "comment": null}, "BALANCE_USD": {"type": "FLOAT", "index": 11, "name": "BALANCE_USD", "comment": null}, "EZ_BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 12, "name": "EZ_BALANCES_ERC20_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_SYMBOL.8859925617"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pools_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.dc69988db3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOLS_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pools_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.dc69988db3"}, "model.fsc_evm.silver_lending__euler_borrows": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "EULER_BORROWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 10, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 11, "name": "AMOUNT_UNADJ", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 14, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 15, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:47UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__euler_borrows"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c4b8b65b03": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_6_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c4b8b65b03"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b67cb105f5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b67cb105f5"}, "test.fsc_evm.unique_silver__complete_provider_asset_metadata_COMPLETE_PROVIDER_ASSET_METADATA_ID.945e90b882": {"metadata": {"type": "BASE TABLE", "schema": "UNIQUE_SILVER", "name": "COMPLETE_PROVIDER_ASSET_METADATA_COMPLETE_PROVIDER_ASSET_METADATA_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"UNIQUE_FIELD": {"type": "TEXT", "index": 1, "name": "UNIQUE_FIELD", "comment": null}, "N_RECORDS": {"type": "NUMBER", "index": 2, "name": "N_RECORDS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.unique_silver__complete_provider_asset_metadata_COMPLETE_PROVIDER_ASSET_METADATA_ID.945e90b882"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_EVENT_NAME.17e71ddee7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_EVENT_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_EVENT_NAME.17e71ddee7"}, "test.fsc_evm.not_null_test_silver__confirm_blocks_full_TX_HASH.670ec66eec": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "CONFIRM_BLOCKS_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 5, "name": "TX_HASH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CONFIRM_BLOCKS_ID": {"type": "TEXT", "index": 7, "name": "CONFIRM_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__confirm_blocks_full_TX_HASH.670ec66eec"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent__INSERTED_TIMESTAMP__hour__2.bd68103a61": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "TRACES_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent__INSERTED_TIMESTAMP__hour__2.bd68103a61"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_INITIATOR.bb1dc79f33": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_INITIATOR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_INITIATOR.bb1dc79f33"}, "model.fsc_evm.silver_dex__levelfi_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "LEVELFI_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 12, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 13, "name": "TOKEN_OUT", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "FEE": {"type": "NUMBER", "index": 16, "name": "FEE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 20, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__levelfi_swaps"}, "model.fsc_evm.test_silver__created_contracts_recent": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "CREATED_CONTRACTS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "CREATED_CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CREATED_CONTRACT_ADDRESS", "comment": ""}, "CREATOR_ADDRESS": {"type": "TEXT", "index": 5, "name": "CREATOR_ADDRESS", "comment": ""}, "CREATED_CONTRACT_INPUT": {"type": "TEXT", "index": 6, "name": "CREATED_CONTRACT_INPUT", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "CREATED_CONTRACTS_ID": {"type": "TEXT", "index": 8, "name": "CREATED_CONTRACTS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 11, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__created_contracts_recent"}, "model.fsc_evm.silver__complete_provider_prices": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_PROVIDER_PRICES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": ""}, "RECORDED_HOUR": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "RECORDED_HOUR", "comment": ""}, "OPEN": {"type": "FLOAT", "index": 3, "name": "OPEN", "comment": ""}, "HIGH": {"type": "FLOAT", "index": 4, "name": "HIGH", "comment": ""}, "LOW": {"type": "FLOAT", "index": 5, "name": "LOW", "comment": ""}, "CLOSE": {"type": "FLOAT", "index": 6, "name": "CLOSE", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_PROVIDER_PRICES_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_PROVIDER_PRICES_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:14UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 565257728, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(recorded_hour::DATE, provider)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 10531198, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__complete_provider_prices"}, "model.fsc_evm.bronze__token_reads": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "TOKEN_READS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__token_reads"}, "test.fsc_evm.not_null_admin__ez_variables_DEFAULT_TYPE.341521dabe": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ADMIN", "name": "EZ_VARIABLES_DEFAULT_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PROJECT": {"type": "TEXT", "index": 1, "name": "PROJECT", "comment": null}, "PACKAGE": {"type": "TEXT", "index": 2, "name": "PACKAGE", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "KEY": {"type": "TEXT", "index": 4, "name": "KEY", "comment": null}, "VALUE": {"type": "TEXT", "index": 5, "name": "VALUE", "comment": null}, "PARENT_KEY": {"type": "TEXT", "index": 6, "name": "PARENT_KEY", "comment": null}, "DEFAULT_VALUE": {"type": "TEXT", "index": 7, "name": "DEFAULT_VALUE", "comment": null}, "DEFAULT_TYPE": {"type": "TEXT", "index": 8, "name": "DEFAULT_TYPE", "comment": null}, "EZ_VARIABLES_ID": {"type": "TEXT", "index": 9, "name": "EZ_VARIABLES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_admin__ez_variables_DEFAULT_TYPE.341521dabe"}, "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_TOKEN_ADDRESS.f9d0db5e6d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_DEFI", "name": "EZ_DEX_LIQUIDITY_POOL_ACTIONS_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 17, "name": "TOKEN_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "PROTOCOL_VERSION": {"type": "TEXT", "index": 20, "name": "PROTOCOL_VERSION", "comment": null}, "EZ_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 21, "name": "EZ_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_TOKEN_ADDRESS.f9d0db5e6d"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BORROWER.067b19b1ce": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_BORROWER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BORROWER.067b19b1ce"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__tofunft_sales_nft_log_id.628c88944c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "TOFUNFT_SALES_NFT_LOG_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"NFT_LOG_ID": {"type": "TEXT", "index": 1, "name": "NFT_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__tofunft_sales_nft_log_id.628c88944c"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_CREATOR_FEE_RAW.98d862e5d3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_CREATOR_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_CREATOR_FEE_RAW.98d862e5d3"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_TX_COUNT__NUMBER__FLOAT.be245b701f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_TX_COUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_TX_COUNT__NUMBER__FLOAT.be245b701f"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS.be5f62774c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS.be5f62774c"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP.12f51bf377": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP.12f51bf377"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP.85e778caed": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP.85e778caed"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS.0b88cca2bc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS.0b88cca2bc"}, "model.fsc_evm.test_silver__bytecode_abis_full": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "BYTECODE_ABIS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": ""}, "ABI": {"type": "VARIANT", "index": 2, "name": "ABI", "comment": ""}, "ABI_HASH": {"type": "TEXT", "index": 3, "name": "ABI_HASH", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__bytecode_abis_full"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.0e7240aef8": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "ELEMENT_SALES_SELLER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.0e7240aef8"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_NFT_LOG_ID.aa0757e4d2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_NFT_LOG_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_NFT_LOG_ID.aa0757e4d2"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_AMOUNT_IN.3df36cb722": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_AMOUNT_IN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 8, "name": "POOL_NAME", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 9, "name": "POOL_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 15, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 17, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 18, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 19, "name": "EVENT_INDEX", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 24, "name": "TOKEN_IN", "comment": null}, "TOKEN_IN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IN_IS_VERIFIED", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 26, "name": "TOKEN_OUT", "comment": null}, "TOKEN_OUT_IS_VERIFIED": {"type": "BOOLEAN", "index": 27, "name": "TOKEN_OUT_IS_VERIFIED", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 28, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 29, "name": "SYMBOL_OUT", "comment": null}, "DECIMALS_IN": {"type": "NUMBER", "index": 30, "name": "DECIMALS_IN", "comment": null}, "DECIMALS_OUT": {"type": "NUMBER", "index": 31, "name": "DECIMALS_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 32, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_SWAPS_ID": {"type": "TEXT", "index": 34, "name": "COMPLETE_DEX_SWAPS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 35, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 37, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_AMOUNT_IN.3df36cb722"}, "model.fsc_evm.silver_bridge__dln_debridge_createdorder": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "DLN_DEBRIDGE_CREATEDORDER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 10, "name": "EVENT_REMOVED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 11, "name": "TX_SUCCEEDED", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 12, "name": "BRIDGE_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 15, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 16, "name": "AMOUNT", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "NUMBER", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 19, "name": "TOKEN_ADDRESS", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "ORDER_OBJ": {"type": "VARIANT", "index": 21, "name": "ORDER_OBJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 24, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 25, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:47UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 136333824, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 325254, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__dln_debridge_createdorder"}, "test.polygon_models.not_null_silver_olas__service_event_logs_BLOCK_TIMESTAMP.f0e808ba68": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "SERVICE_EVENT_LOGS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "MULTISIG_ADDRESS": {"type": "TEXT", "index": 9, "name": "MULTISIG_ADDRESS", "comment": null}, "SERVICE_ID": {"type": "NUMBER", "index": 10, "name": "SERVICE_ID", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 11, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 12, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 13, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 14, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": null}, "SEGMENTED_DATA": {"type": "ARRAY", "index": 16, "name": "SEGMENTED_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}, "SERVICE_EVENT_LOGS_ID": {"type": "TEXT", "index": 19, "name": "SERVICE_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 22, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__service_event_logs_BLOCK_TIMESTAMP.f0e808ba68"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.fd0843fa8a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "ELEMENT_SALES_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.fd0843fa8a"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_PARENT_HASH.339dcfcc3c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_PARENT_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_PARENT_HASH.339dcfcc3c"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.b0c431b629": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TOFUNFT_SALES_TOTAL_FEES_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.b0c431b629"}, "test.fsc_evm.not_null_admin__ez_variables_PROJECT.59fd01d4c5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ADMIN", "name": "EZ_VARIABLES_PROJECT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PROJECT": {"type": "TEXT", "index": 1, "name": "PROJECT", "comment": null}, "PACKAGE": {"type": "TEXT", "index": 2, "name": "PACKAGE", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "KEY": {"type": "TEXT", "index": 4, "name": "KEY", "comment": null}, "VALUE": {"type": "TEXT", "index": 5, "name": "VALUE", "comment": null}, "PARENT_KEY": {"type": "TEXT", "index": 6, "name": "PARENT_KEY", "comment": null}, "DEFAULT_VALUE": {"type": "TEXT", "index": 7, "name": "DEFAULT_VALUE", "comment": null}, "DEFAULT_TYPE": {"type": "TEXT", "index": 8, "name": "DEFAULT_TYPE", "comment": null}, "EZ_VARIABLES_ID": {"type": "TEXT", "index": 9, "name": "EZ_VARIABLES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_admin__ez_variables_PROJECT.59fd01d4c5"}, "test.polygon_models.not_null_silver_olas__service_event_logs_MULTISIG_ADDRESS.bcc9d7a3ca": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "SERVICE_EVENT_LOGS_MULTISIG_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "MULTISIG_ADDRESS": {"type": "TEXT", "index": 9, "name": "MULTISIG_ADDRESS", "comment": null}, "SERVICE_ID": {"type": "NUMBER", "index": 10, "name": "SERVICE_ID", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 11, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 12, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 13, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 14, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": null}, "SEGMENTED_DATA": {"type": "ARRAY", "index": 16, "name": "SEGMENTED_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}, "SERVICE_EVENT_LOGS_ID": {"type": "TEXT", "index": 19, "name": "SERVICE_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 22, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__service_event_logs_MULTISIG_ADDRESS.bcc9d7a3ca"}, "test.polygon_models.not_null_silver__tofunft_sales_BLOCK_TIMESTAMP.7f084f3df1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_BLOCK_TIMESTAMP.7f084f3df1"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_TX_HASH__0_xX_0_9a_fA_F_.13ee5cd65b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:36UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_TX_HASH__0_xX_0_9a_fA_F_.13ee5cd65b"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_PROTOCOL.c9300839eb": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_PROTOCOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_PROTOCOL.c9300839eb"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR.0797e73b88": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_STATS", "name": "CORE_METRICS_HOURLY_BLOCK_TIMESTAMP_HOUR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_TIMESTAMP_HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP_HOUR", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR.0797e73b88"}, "test.fsc_evm.not_null_silver__complete_native_asset_metadata_BLOCKCHAIN.fea8f73c16": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NATIVE_ASSET_METADATA_BLOCKCHAIN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 5, "name": "BLOCKCHAIN", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 6, "name": "IS_DEPRECATED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_NATIVE_ASSET_METADATA_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_NATIVE_ASSET_METADATA_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_native_asset_metadata_BLOCKCHAIN.fea8f73c16"}, "model.fsc_evm.silver_lending__silo_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "SILO_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"SILO_CREATE_BLOCK": {"type": "NUMBER", "index": 1, "name": "SILO_CREATE_BLOCK", "comment": null}, "CREATION_HASH": {"type": "TEXT", "index": 2, "name": "CREATION_HASH", "comment": null}, "FACTORY_ADDRESS": {"type": "TEXT", "index": 3, "name": "FACTORY_ADDRESS", "comment": null}, "SILO_ADDRESS": {"type": "TEXT", "index": 4, "name": "SILO_ADDRESS", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 5, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_NAME": {"type": "TEXT", "index": 6, "name": "TOKEN_NAME", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 7, "name": "TOKEN_SYMBOL", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 8, "name": "TOKEN_DECIMALS", "comment": null}, "PROTOCOL_COLLATERAL_TOKEN_ADDRESS": {"type": "TEXT", "index": 9, "name": "PROTOCOL_COLLATERAL_TOKEN_ADDRESS", "comment": null}, "PROTOCOL_COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 10, "name": "PROTOCOL_COLLATERAL_TOKEN_SYMBOL", "comment": null}, "PROTOCOL_COLLATERAL_TOKEN_DECIMALS": {"type": "NUMBER", "index": 11, "name": "PROTOCOL_COLLATERAL_TOKEN_DECIMALS", "comment": null}, "PROTOCOL_DEBT_TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "PROTOCOL_DEBT_TOKEN_ADDRESS", "comment": null}, "PROTOCOL_DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "PROTOCOL_DEBT_TOKEN_SYMBOL", "comment": null}, "PROTOCOL_DEBT_TOKEN_DECIMALS": {"type": "NUMBER", "index": 14, "name": "PROTOCOL_DEBT_TOKEN_DECIMALS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 15, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 16, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 18, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__silo_pools"}, "test.fsc_evm.not_null_silver__complete_native_prices_BLOCKCHAIN.3557f90197": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NATIVE_PRICES_BLOCKCHAIN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "PRICE": {"type": "FLOAT", "index": 6, "name": "PRICE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN", "comment": null}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 8, "name": "IS_IMPUTED", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 10, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 11, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_NATIVE_PRICES_ID": {"type": "TEXT", "index": 15, "name": "COMPLETE_NATIVE_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_native_prices_BLOCKCHAIN.3557f90197"}, "test.polygon_models.not_null_silver__mooar_sales__INSERTED_TIMESTAMP.93f5a5c8cb": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales__INSERTED_TIMESTAMP.93f5a5c8cb"}, "test.fsc_evm.not_null_test_silver__decoded_logs_full_EVENT_INDEX.d402882c82": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "DECODED_LOGS_FULL_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": null}, "DECODED_DATA": {"type": "VARIANT", "index": 6, "name": "DECODED_DATA", "comment": null}, "TRANSFORMED": {"type": "VARIANT", "index": 7, "name": "TRANSFORMED", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 8, "name": "DECODED_FLAT", "comment": null}, "DECODED_LOGS_ID": {"type": "TEXT", "index": 9, "name": "DECODED_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_full_EVENT_INDEX.d402882c82"}, "model.fsc_evm.test_silver__contracts_full": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "CONTRACTS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": ""}, "TOKEN_NAME": {"type": "TEXT", "index": 2, "name": "TOKEN_NAME", "comment": ""}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 3, "name": "TOKEN_DECIMALS", "comment": ""}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 4, "name": "TOKEN_SYMBOL", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "CONTRACTS_ID": {"type": "TEXT", "index": 6, "name": "CONTRACTS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__contracts_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP__hour__2.88cff525bb": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP__hour__2.88cff525bb"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.dbd110b4d3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.dbd110b4d3"}, "model.fsc_evm.silver_bridge__superchain_l2_standard_bridge": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "SUPERCHAIN_L2_STANDARD_BRIDGE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 11, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 12, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 13, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 14, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 15, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 16, "name": "AMOUNT_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 19, "name": "PLATFORM", "comment": null}, "TYPE": {"type": "TEXT", "index": 20, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 21, "name": "_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-08-05 16:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__superchain_l2_standard_bridge"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_BLOCK_NUMBER.76acdf0f28": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_BLOCK_NUMBER.76acdf0f28"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TX_TO__0_xX_0_9a_fA_F_.03c82421e1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_TX_TO", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TX_TO__0_xX_0_9a_fA_F_.03c82421e1"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_NAME.cd7a9560be": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_PLATFORM_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_NAME.cd7a9560be"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent_INSERTED_TIMESTAMP__hour__2.17e59f939c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "TRANSACTIONS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent_INSERTED_TIMESTAMP__hour__2.17e59f939c"}, "test.fsc_evm.not_null_silver__complete_provider_prices_ASSET_ID.a10e7dad30": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_PROVIDER_PRICES_ASSET_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": null}, "RECORDED_HOUR": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "RECORDED_HOUR", "comment": null}, "OPEN": {"type": "FLOAT", "index": 3, "name": "OPEN", "comment": null}, "HIGH": {"type": "FLOAT", "index": 4, "name": "HIGH", "comment": null}, "LOW": {"type": "FLOAT", "index": 5, "name": "LOW", "comment": null}, "CLOSE": {"type": "FLOAT", "index": 6, "name": "CLOSE", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_PROVIDER_PRICES_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_PROVIDER_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_provider_prices_ASSET_ID.a10e7dad30"}, "model.fsc_evm.silver_lending__silo_borrows": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "SILO_BORROWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 10, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 11, "name": "AMOUNT_UNADJ", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 13, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 14, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 15, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__silo_borrows"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_AMOUNT_UNADJ.f05776f272": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_AMOUNT_UNADJ", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 15, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 19, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 20, "name": "TOKEN_SYMBOL", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 21, "name": "TOKEN_DECIMALS", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 23, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 24, "name": "AMOUNT_USD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IS_VERIFIED", "comment": null}, "_ID": {"type": "TEXT", "index": 26, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_BRIDGE_ACTIVITY_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_BRIDGE_ACTIVITY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_AMOUNT_UNADJ.f05776f272"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_INSERTED_TIMESTAMP.645083145d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_INSERTED_TIMESTAMP.645083145d"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__create_service_multisigs__LOG_ID.57c866e6e9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_OLAS", "name": "CREATE_SERVICE_MULTISIGS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__create_service_multisigs__LOG_ID.57c866e6e9"}, "test.fsc_evm.not_null_test_silver__created_contracts_recent_BLOCK_TIMESTAMP.734876c6a9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "CREATED_CONTRACTS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CREATED_CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CREATED_CONTRACT_ADDRESS", "comment": null}, "CREATOR_ADDRESS": {"type": "TEXT", "index": 5, "name": "CREATOR_ADDRESS", "comment": null}, "CREATED_CONTRACT_INPUT": {"type": "TEXT", "index": 6, "name": "CREATED_CONTRACT_INPUT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CREATED_CONTRACTS_ID": {"type": "TEXT", "index": 8, "name": "CREATED_CONTRACTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 11, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__created_contracts_recent_BLOCK_TIMESTAMP.734876c6a9"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_blocks_full_BLOCK_NUMBER.b470c9b0e0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "FACT_BLOCKS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_blocks_full_BLOCK_NUMBER.b470c9b0e0"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP__hour__8.64521c931b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "CONFIRM_BLOCKS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP__hour__8.64521c931b"}, "model.fsc_evm.silver_lending__euler_deposits": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "EULER_DEPOSITS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 10, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 11, "name": "AMOUNT_UNADJ", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 12, "name": "DEPOSITOR", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 14, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 15, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:47UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__euler_deposits"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.01bb3ad3bd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.01bb3ad3bd"}, "test.fsc_evm.not_null_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP.80dc3c0d89": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "DECODED_LOGS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": null}, "DECODED_DATA": {"type": "VARIANT", "index": 6, "name": "DECODED_DATA", "comment": null}, "TRANSFORMED": {"type": "VARIANT", "index": 7, "name": "TRANSFORMED", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 8, "name": "DECODED_FLAT", "comment": null}, "DECODED_LOGS_ID": {"type": "TEXT", "index": 9, "name": "DECODED_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP.80dc3c0d89"}, "test.polygon_models.not_null_silver_olas__registry_reads_CONTRACT_ADDRESS.8aeb785480": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "REGISTRY_READS_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"READ_OUTPUT": {"type": "VARIANT", "index": 1, "name": "READ_OUTPUT", "comment": null}, "READ_ID": {"type": "TEXT", "index": 2, "name": "READ_ID", "comment": null}, "READ_RESULT": {"type": "TEXT", "index": 3, "name": "READ_RESULT", "comment": null}, "READ_ID_OBJECT": {"type": "ARRAY", "index": 4, "name": "READ_ID_OBJECT", "comment": null}, "FUNCTION_SIG": {"type": "TEXT", "index": 5, "name": "FUNCTION_SIG", "comment": null}, "FUNCTION_NAME": {"type": "TEXT", "index": 6, "name": "FUNCTION_NAME", "comment": null}, "FUNCTION_INPUT": {"type": "NUMBER", "index": 7, "name": "FUNCTION_INPUT", "comment": null}, "DATA": {"type": "TEXT", "index": 8, "name": "DATA", "comment": null}, "TOKEN_URI_LINK": {"type": "TEXT", "index": 9, "name": "TOKEN_URI_LINK", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 11, "name": "BLOCK_NUMBER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "REGISTRY_READS_ID": {"type": "TEXT", "index": 13, "name": "REGISTRY_READS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__registry_reads_CONTRACT_ADDRESS.8aeb785480"}, "model.fsc_evm.silver_dex__velodrome_v1_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "VELODROME_V1_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 7, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 8, "name": "TOKEN1", "comment": null}, "STABLE": {"type": "BOOLEAN", "index": 9, "name": "STABLE", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 11, "name": "POOL_NAME", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 12, "name": "POOL_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 14, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 15, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 16, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:06UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__velodrome_v1_pools"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_5_sales_EVENT_TYPE__bid_won__sale.3afc0ac436": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_SET_SILVER", "name": "SEAPORT_1_5_SALES_EVENT_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE_FIELD": {"type": "TEXT", "index": 1, "name": "VALUE_FIELD", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_5_sales_EVENT_TYPE__bid_won__sale.3afc0ac436"}, "test.fsc_evm.not_null_silver__complete_native_asset_metadata_PROVIDER.2f310e1236": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NATIVE_ASSET_METADATA_PROVIDER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 5, "name": "BLOCKCHAIN", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 6, "name": "IS_DEPRECATED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_NATIVE_ASSET_METADATA_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_NATIVE_ASSET_METADATA_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_native_asset_metadata_PROVIDER.2f310e1236"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_daily_full_BLOCK_DATE__day__2.be6f628721": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "EZ_BALANCES_NATIVE_DAILY_FULL_BLOCK_DATE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:48UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_daily_full_BLOCK_DATE__day__2.be6f628721"}, "test.polygon_models.not_null_silver__element_sales_ORIGIN_FROM_ADDRESS.488cc78674": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_ORIGIN_FROM_ADDRESS.488cc78674"}, "test.livequery_models.test___utils_udf_introspect.79bd27a18b": {"metadata": {"type": "BASE TABLE", "schema": "TEST", "name": "_UTILS_UDF_INTROSPECT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TEST_NAME": {"type": "TEXT", "index": 1, "name": "TEST_NAME", "comment": null}, "PARAMETERS": {"type": "ARRAY", "index": 2, "name": "PARAMETERS", "comment": null}, "RESULT": {"type": "TEXT", "index": 3, "name": "RESULT", "comment": null}, "ASSERTION": {"type": "TEXT", "index": 4, "name": "ASSERTION", "comment": null}, "SQL": {"type": "TEXT", "index": 5, "name": "SQL", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-13 20:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.livequery_models.test___utils_udf_introspect.79bd27a18b"}, "model.fsc_evm.silver__complete_native_prices": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_NATIVE_PRICES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": ""}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": ""}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": ""}, "PRICE": {"type": "FLOAT", "index": 6, "name": "PRICE", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN", "comment": ""}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 8, "name": "IS_IMPUTED", "comment": ""}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 10, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 11, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_NATIVE_PRICES_ID": {"type": "TEXT", "index": 15, "name": "COMPLETE_NATIVE_PRICES_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:14UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 4335616, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(hour::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 75022, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__complete_native_prices"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3b4c0128b9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3b4c0128b9"}, "model.fsc_evm.silver_lending__aave_repayments": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "AAVE_REPAYMENTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 10, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 11, "name": "AMOUNT_UNADJ", "comment": null}, "PAYER": {"type": "TEXT", "index": 12, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 13, "name": "BORROWER", "comment": null}, "LENDING_POOL_CONTRACT": {"type": "TEXT", "index": 14, "name": "LENDING_POOL_CONTRACT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 15, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 16, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 17, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 18, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 20, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 594700288, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2776321, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__aave_repayments"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_FACT_TRACES_ID.abf9596ec6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_FACT_TRACES_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_FACT_TRACES_ID.abf9596ec6"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_EVENT_NAME.36bdd6ecae": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_EVENT_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_EVENT_NAME.36bdd6ecae"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_NONCE.151663a822": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_NONCE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_NONCE.151663a822"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BORROWER.38440419c2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_BORROWER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BORROWER.38440419c2"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_withdraws_BLOCK_TIMESTAMP__day__3.1d64634b58": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_withdraws_BLOCK_TIMESTAMP__day__3.1d64634b58"}, "model.fsc_evm.core__dim_contract_abis": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "DIM_CONTRACT_ABIS", "database": "POLYGON", "comment": "## What\n\nThis table contains Application Binary Interfaces (ABIs) for smart contracts deployed on EVM blockchains. ABIs define the contract's functions, events, and data structures, enabling the decoding of raw blockchain data into human-readable format.\n\n## Key Use Cases\n\n- Decoding raw event logs into human-readable format\n- Identifying contract functions and their parameters\n- Enabling interaction with smart contracts programmatically\n- Analyzing contract patterns and implementations across chains\n- Supporting automated contract verification and bytecode matching\n\n## Important Relationships\n\n- **Powers ez_decoded_event_logs**: ABIs enable event decoding\n- **Join with dim_contracts**: Use `contract_address` for contract metadata\n- **Enables fact_decoded_event_logs**: Raw to decoded transformation\n\n## Commonly-used Fields\n\n- `contract_address`: The contract's blockchain address\n- `abi`: The contract's Application Binary Interface in JSON format\n- `abi_source`: The origin of the ABI data (explorer verified, user submitted, bytecode matched)\n- `bytecode`: The compiled contract code deployed on-chain\n- `created_timestamp`: When the ABI was added to the database\n\n## Sample queries\n\n**Find Contracts Without ABIs**\n```sql\n-- Identify popular contracts needing ABIs\nWITH contract_activity AS (\n SELECT \n contract_address,\n COUNT(*) AS event_count\n FROM .core.fact_event_logs\n WHERE block_timestamp >= CURRENT_DATE - 7\n GROUP BY 1\n)\nSELECT \n ca.contract_address,\n c.name AS contract_name,\n ca.event_count,\n c.created_block_timestamp\nFROM contract_activity ca\nLEFT JOIN .core.dim_contract_abis abi ON ca.contract_address = abi.contract_address\nLEFT JOIN .core.dim_contracts c ON ca.contract_address = c.address\nWHERE abi.abi IS NULL\n OR abi.abi = '[]'\nORDER BY ca.event_count DESC\nLIMIT 100;\n```\n\n**Analyze ABI Functions and Events**\n```sql\n-- Extract event signatures from ABIs\nWITH abi_events AS (\n SELECT \n contract_address,\n abi_source,\n f.value:name::string AS event_name,\n f.value:type::string AS entry_type\n FROM .core.dim_contract_abis,\n LATERAL FLATTEN(input => PARSE_JSON(abi)) f\n WHERE f.value:type::string = 'event'\n AND abi IS NOT NULL\n)\nSELECT \n event_name,\n COUNT(DISTINCT contract_address) AS contracts_with_event,\n ARRAY_AGG(DISTINCT abi_source) AS sources\nFROM abi_events\nGROUP BY 1\nORDER BY 2 DESC\nLIMIT 50;\n```\n\n**Bytecode Matching Effectiveness**\n```sql\n-- Analyze bytecode matching success\nSELECT \n DATE_TRUNC('week', created_timestamp) AS week,\n COUNT(CASE WHEN abi_source = 'bytecode_matched' THEN 1 END) AS bytecode_matched,\n COUNT(CASE WHEN abi_source = 'user_submitted' THEN 1 END) AS user_submitted,\n COUNT(CASE WHEN abi_source LIKE '%explorer%' THEN 1 END) AS explorer_verified,\n COUNT(*) AS total_new_abis\nFROM .core.dim_contract_abis\nWHERE created_timestamp >= CURRENT_DATE - 90\nGROUP BY 1\nORDER BY 1 DESC;\n```\n\n**Common Contract Patterns**\n```sql\n-- Find contracts sharing bytecode (proxy patterns, clones)\nWITH bytecode_groups AS (\n SELECT \n bytecode,\n COUNT(DISTINCT contract_address) AS contract_count,\n ARRAY_AGG(DISTINCT contract_address) AS contracts,\n MAX(abi) AS sample_abi\n FROM .core.dim_contract_abis\n WHERE bytecode IS NOT NULL\n AND LENGTH(bytecode) > 100 -- Exclude minimal contracts\n GROUP BY 1\n HAVING COUNT(DISTINCT contract_address) > 5\n)\nSELECT \n contract_count,\n ARRAY_SIZE(contracts) AS unique_addresses,\n LEFT(bytecode, 20) || '...' AS bytecode_prefix,\n CASE \n WHEN sample_abi LIKE '%proxy%' THEN 'Likely Proxy'\n WHEN sample_abi LIKE '%clone%' THEN 'Likely Clone'\n ELSE 'Standard Pattern'\n END AS pattern_type\nFROM bytecode_groups\nORDER BY contract_count DESC\nLIMIT 20;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": "Unique identifier - the deployed contract's blockchain address.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "ABI": {"type": "VARIANT", "index": 2, "name": "ABI", "comment": "The contract's Application Binary Interface in JSON format, containing function and event definitions that enable interaction with the smart contract.\n\nExample: '[{\"name\":\"transfer\",\"type\":\"function\",\"inputs\":[{\"name\":\"to\",\"type\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}]}]'"}, "ABI_SOURCE": {"type": "TEXT", "index": 3, "name": "ABI_SOURCE", "comment": "The origin of the ABI data, indicating trust level and collection method.\n\nExample: 'etherscan'"}, "BYTECODE": {"type": "TEXT", "index": 4, "name": "BYTECODE", "comment": "The compiled contract code deployed on-chain, used for bytecode matching and identifying identical contracts.\n\nExample: '0x608060405234801561001057600080fd5b50...'"}, "DIM_CONTRACT_ABIS_ID": {"type": "TEXT", "index": 5, "name": "DIM_CONTRACT_ABIS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 08:22UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 10782428160, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 104380304, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.core__dim_contract_abis"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.c14c9abbbc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "MOOAR_SALES_SELLER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.c14c9abbbc"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_CREATOR_FEE_USD__NUMBER__FLOAT.32f4b653be": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "COMPLETE_NFT_SALES_CREATOR_FEE_USD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_CREATOR_FEE_USD__NUMBER__FLOAT.32f4b653be"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.7b65729d3c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_TRACES_FULL_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:48UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.7b65729d3c"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.3d185db5b6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MOOAR_SALES_CREATOR_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.3d185db5b6"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_POSITION.6b3cf4b320": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_POSITION.6b3cf4b320"}, "model.fsc_evm.silver_dex__quickswap_v2_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "QUICKSWAP_V2_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "TICK_LOWER": {"type": "FLOAT", "index": 10, "name": "TICK_LOWER", "comment": null}, "TICK_UPPER": {"type": "FLOAT", "index": 11, "name": "TICK_UPPER", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 12, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 13, "name": "TOKEN1", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 14, "name": "LIQUIDITY_PROVIDER", "comment": null}, "OWNER_ADDRESS": {"type": "TEXT", "index": 15, "name": "OWNER_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 16, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 17, "name": "RECEIVER", "comment": null}, "LIQUIDITY_AMOUNT_UNADJ": {"type": "FLOAT", "index": 18, "name": "LIQUIDITY_AMOUNT_UNADJ", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 19, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 20, "name": "AMOUNT1_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 24, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 25, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:46UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 200756736, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2314552, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__quickswap_v2_pool_actions"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_transactions_full_TX_HASH.ac75b8c705": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 09:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_transactions_full_TX_HASH.ac75b8c705"}, "test.fsc_evm.not_null_silver__complete_provider_prices_RECORDED_HOUR.73c3cfdf0d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_PROVIDER_PRICES_RECORDED_HOUR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": null}, "RECORDED_HOUR": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "RECORDED_HOUR", "comment": null}, "OPEN": {"type": "FLOAT", "index": 3, "name": "OPEN", "comment": null}, "HIGH": {"type": "FLOAT", "index": 4, "name": "HIGH", "comment": null}, "LOW": {"type": "FLOAT", "index": 5, "name": "LOW", "comment": null}, "CLOSE": {"type": "FLOAT", "index": 6, "name": "CLOSE", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_PROVIDER_PRICES_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_PROVIDER_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_provider_prices_RECORDED_HOUR.73c3cfdf0d"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TO_ADDRESS.a5fba0294c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TO_ADDRESS.a5fba0294c"}, "model.fsc_evm.silver_stablecoins__supply_contracts": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_STABLECOINS", "name": "SUPPLY_CONTRACTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_DATE": {"type": "DATE", "index": 1, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 2, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 3, "name": "CONTRACT_ADDRESS", "comment": null}, "BRIDGE_BALANCE": {"type": "FLOAT", "index": 4, "name": "BRIDGE_BALANCE", "comment": null}, "DEX_BALANCE": {"type": "FLOAT", "index": 5, "name": "DEX_BALANCE", "comment": null}, "LENDING_POOL_BALANCE": {"type": "FLOAT", "index": 6, "name": "LENDING_POOL_BALANCE", "comment": null}, "CONTRACTS_BALANCE": {"type": "FLOAT", "index": 7, "name": "CONTRACTS_BALANCE", "comment": null}, "CEX_BALANCE": {"type": "FLOAT", "index": 8, "name": "CEX_BALANCE", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": null}, "STABLECOINS_SUPPLY_CONTRACTS_ID": {"type": "TEXT", "index": 11, "name": "STABLECOINS_SUPPLY_CONTRACTS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:34UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 105059505152, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_date)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2409538168, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_stablecoins__supply_contracts"}, "test.fsc_evm.find_missing_decoded_logs_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_.995b3759d0": {"metadata": {"type": "BASE TABLE", "schema": "FIND_MISSING_DECODED_LOGS_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_REF_TEST_GOLD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 2, "name": "FACT_EVENT_LOGS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.find_missing_decoded_logs_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_.995b3759d0"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_FLASHLOAN_AMOUNT.feaeeedf41": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_FLASHLOAN_AMOUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_FLASHLOAN_AMOUNT.feaeeedf41"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.585a24330b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_SILVER", "name": "DECODED_LOGS_RECENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.585a24330b"}, "test.fsc_evm.not_null_test_silver__blocks_full_INSERTED_TIMESTAMP.37557f958c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "BLOCKS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BLOCKS_ID": {"type": "TEXT", "index": 5, "name": "BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 8, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__blocks_full_INSERTED_TIMESTAMP.37557f958c"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_FLASHLOAN_AMOUNT_UNADJ.50ea108e62": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_FLASHLOAN_AMOUNT_UNADJ", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_FLASHLOAN_AMOUNT_UNADJ.50ea108e62"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_ORIGIN_FROM_ADDRESS.8987e52474": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_ORIGIN_FROM_ADDRESS.8987e52474"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP__hour__2.4e95ef6f32": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "DECODED_LOGS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP__hour__2.4e95ef6f32"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COLLATERAL_TOKEN_SYMBOL.d8f85827c6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_COLLATERAL_TOKEN_SYMBOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COLLATERAL_TOKEN_SYMBOL.d8f85827c6"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID.7a1d987054": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "CONFIRM_BLOCKS_FULL_CONFIRM_BLOCKS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONFIRM_BLOCKS_ID": {"type": "TEXT", "index": 1, "name": "CONFIRM_BLOCKS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 10:15UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID.7a1d987054"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_recent_BLOCK_TIMESTAMP__day__1.0c68c9f927": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "CREATED_CONTRACTS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_recent_BLOCK_TIMESTAMP__day__1.0c68c9f927"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a0776dfdc1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MOOAR_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a0776dfdc1"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_MODIFIED_TIMESTAMP.3b537129ff": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_MODIFIED_TIMESTAMP.3b537129ff"}, "model.fsc_evm.silver_dex__gmx_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "GMX_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 12, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 13, "name": "TOKEN_OUT", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 16, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 19, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__gmx_swaps"}, "test.polygon_models.not_null_silver__complete_nft_sales_NFT_ADDRESS.5537952adb": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_NFT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_NFT_ADDRESS.5537952adb"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_CREATOR_FEE_RAW.abf009e067": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_CREATOR_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_CREATOR_FEE_RAW.abf009e067"}, "model.fsc_evm.test_gold__ez_native_transfers_recent": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_RECENT", "database": "POLYGON", "comment": "This is a view used to test the last three days of `ez_native_transfers` data.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": ""}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": ""}, "TRACE_ADDRESS": {"type": "TEXT", "index": 6, "name": "TRACE_ADDRESS", "comment": ""}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": ""}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": ""}, "TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "TO_ADDRESS", "comment": ""}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": ""}, "AMOUNT_PRECISE_RAW": {"type": "TEXT", "index": 11, "name": "AMOUNT_PRECISE_RAW", "comment": ""}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 12, "name": "AMOUNT_PRECISE", "comment": ""}, "AMOUNT_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_USD", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "EZ_NATIVE_TRANSFERS_ID": {"type": "TEXT", "index": 17, "name": "EZ_NATIVE_TRANSFERS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__ez_native_transfers_recent"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_ADDRESS.aacd1db03b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_PLATFORM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_ADDRESS.aacd1db03b"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.044c1f3328": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_1_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.044c1f3328"}, "test.polygon_models.not_null_silver_olas__service_registrations_SERVICE_ID.943c28d401": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "SERVICE_REGISTRATIONS_SERVICE_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OWNER_ADDRESS": {"type": "TEXT", "index": 10, "name": "OWNER_ADDRESS", "comment": null}, "MULTISIG_ADDRESS": {"type": "TEXT", "index": 11, "name": "MULTISIG_ADDRESS", "comment": null}, "SERVICE_ID": {"type": "NUMBER", "index": 12, "name": "SERVICE_ID", "comment": null}, "CONFIG_HASH": {"type": "TEXT", "index": 13, "name": "CONFIG_HASH", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 14, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}, "SERVICE_REGISTRATION_ID": {"type": "TEXT", "index": 16, "name": "SERVICE_REGISTRATION_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 19, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__service_registrations_SERVICE_ID.943c28d401"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP__hour__2.9ae1d3b725": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP__hour__2.9ae1d3b725"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_FULL_DECODED_LOG.8ee9749eea": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_FULL_DECODED_LOG", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_FULL_DECODED_LOG.8ee9749eea"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_ADDRESS.df7ff69350": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_FULL_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 7, "name": "BALANCE_HEX", "comment": null}, "BALANCE_RAW": {"type": "NUMBER", "index": 8, "name": "BALANCE_RAW", "comment": null}, "BALANCE_PRECISE": {"type": "TEXT", "index": 9, "name": "BALANCE_PRECISE", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 10, "name": "BALANCE", "comment": null}, "BALANCE_USD": {"type": "FLOAT", "index": 11, "name": "BALANCE_USD", "comment": null}, "EZ_BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 12, "name": "EZ_BALANCES_ERC20_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_ADDRESS.df7ff69350"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.a01e856376": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "ELEMENT_SALES_TOTAL_PRICE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.a01e856376"}, "model.fsc_evm.silver_lending__euler_tokens": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "EULER_TOKENS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_NAME": {"type": "TEXT", "index": 9, "name": "TOKEN_NAME", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 10, "name": "TOKEN_SYMBOL", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 11, "name": "TOKEN_DECIMALS", "comment": null}, "SEGMENTED_DATA": {"type": "ARRAY", "index": 12, "name": "SEGMENTED_DATA", "comment": null}, "CREATOR": {"type": "TEXT", "index": 13, "name": "CREATOR", "comment": null}, "UNDERLYING_ADDRESS": {"type": "TEXT", "index": 14, "name": "UNDERLYING_ADDRESS", "comment": null}, "UNDERLYING_NAME": {"type": "TEXT", "index": 15, "name": "UNDERLYING_NAME", "comment": null}, "UNDERLYING_SYMBOL": {"type": "TEXT", "index": 16, "name": "UNDERLYING_SYMBOL", "comment": null}, "UNDERLYING_DECIMALS": {"type": "NUMBER", "index": 17, "name": "UNDERLYING_DECIMALS", "comment": null}, "DTOKEN": {"type": "TEXT", "index": 18, "name": "DTOKEN", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__euler_tokens"}, "test.fsc_evm.not_null_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS.b245762efd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "HOP_AMMWRAPPER_AMM_WRAPPER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"READ_OUTPUT": {"type": "VARIANT", "index": 1, "name": "READ_OUTPUT", "comment": null}, "READ_ID": {"type": "TEXT", "index": 2, "name": "READ_ID", "comment": null}, "READ_RESULT": {"type": "TEXT", "index": 3, "name": "READ_RESULT", "comment": null}, "READ_ID_OBJECT": {"type": "ARRAY", "index": 4, "name": "READ_ID_OBJECT", "comment": null}, "FUNCTION_SIG": {"type": "TEXT", "index": 5, "name": "FUNCTION_SIG", "comment": null}, "FUNCTION_NAME": {"type": "TEXT", "index": 6, "name": "FUNCTION_NAME", "comment": null}, "FUNCTION_INPUT": {"type": "NUMBER", "index": 7, "name": "FUNCTION_INPUT", "comment": null}, "DATA": {"type": "TEXT", "index": 8, "name": "DATA", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 9, "name": "BLOCK_NUMBER", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "AMM_WRAPPER_ADDRESS": {"type": "TEXT", "index": 11, "name": "AMM_WRAPPER_ADDRESS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS.b245762efd"}, "model.fsc_evm.test_silver__confirm_blocks_recent": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "CONFIRM_BLOCKS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": ""}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 5, "name": "TX_HASH", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "CONFIRM_BLOCKS_ID": {"type": "TEXT", "index": 7, "name": "CONFIRM_BLOCKS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__confirm_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP__hour__3.06e5f301c9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP__hour__3.06e5f301c9"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e339fe42ef": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e339fe42ef"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_FROM_ADDRESS.983881c27c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_FROM_ADDRESS.983881c27c"}, "model.fsc_evm.silver_lending__comp_v3_withdraws": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "COMP_V3_WITHDRAWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 10, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT_UNADJ", "comment": null}, "ITOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "ITOKEN_SYMBOL", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 14, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 15, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 16, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 19, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 4843520, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 40870, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__comp_v3_withdraws"}, "model.fsc_evm.silver_bridge__stargate_v2": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "STARGATE_V2", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 9, "name": "BRIDGE_ADDRESS", "comment": null}, "GUID": {"type": "TEXT", "index": 10, "name": "GUID", "comment": null}, "TICKET_ID": {"type": "NUMBER", "index": 11, "name": "TICKET_ID", "comment": null}, "SENDER": {"type": "TEXT", "index": 12, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 13, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 14, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DST_CHAIN_ID": {"type": "TEXT", "index": 15, "name": "DST_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 18, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "AMOUNT_UNADJ", "comment": null}, "SRC_CHAIN_ID": {"type": "TEXT", "index": 21, "name": "SRC_CHAIN_ID", "comment": null}, "SRC_CHAIN": {"type": "TEXT", "index": 22, "name": "SRC_CHAIN", "comment": null}, "ASSET_ID": {"type": "NUMBER", "index": 23, "name": "ASSET_ID", "comment": null}, "ASSET_NAME": {"type": "TEXT", "index": 24, "name": "ASSET_NAME", "comment": null}, "PAYLOAD": {"type": "TEXT", "index": 25, "name": "PAYLOAD", "comment": null}, "TX_TYPE": {"type": "TEXT", "index": 26, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "TEXT", "index": 27, "name": "NONCE", "comment": null}, "SENDER_CONTRACT_ADDRESS": {"type": "TEXT", "index": 28, "name": "SENDER_CONTRACT_ADDRESS", "comment": null}, "RECEIVER_CONTRACT_ADDRESS": {"type": "TEXT", "index": 29, "name": "RECEIVER_CONTRACT_ADDRESS", "comment": null}, "MESSAGE_TYPE": {"type": "TEXT", "index": 30, "name": "MESSAGE_TYPE", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 31, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 32, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 33, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 34, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 135133696, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 246576, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__stargate_v2"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_EVENT_INDEX.84fd3e9ae9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_EVENT_INDEX.84fd3e9ae9"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.461cb228ca": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.461cb228ca"}, "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_TO_ADDRESS.eadc499ce1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_TO_ADDRESS.eadc499ce1"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_MODIFIED_TIMESTAMP.8c86e0f317": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_MODIFIED_TIMESTAMP.8c86e0f317"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_BLOCK_NUMBER.3da7a0c428": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 6, "name": "TRACE_ADDRESS", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "TO_ADDRESS", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": null}, "AMOUNT_PRECISE_RAW": {"type": "TEXT", "index": 11, "name": "AMOUNT_PRECISE_RAW", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 12, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "EZ_NATIVE_TRANSFERS_ID": {"type": "TEXT", "index": 17, "name": "EZ_NATIVE_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_BLOCK_NUMBER.3da7a0c428"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID.6d38a75605": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "EZ_BALANCES_NATIVE_DAILY_RECENT_EZ_BALANCES_NATIVE_DAILY_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EZ_BALANCES_NATIVE_DAILY_ID": {"type": "TEXT", "index": 1, "name": "EZ_BALANCES_NATIVE_DAILY_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID.6d38a75605"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_ORIGIN_FUNCTION_SIGNATURE.140b44b00f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_ORIGIN_FUNCTION_SIGNATURE.140b44b00f"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_ORIGIN_FROM_ADDRESS.a45605a93c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_ORIGIN_FROM_ADDRESS.a45605a93c"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TX_HASH.44650e24c5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TX_HASH.44650e24c5"}, "test.fsc_evm.not_null_test_silver__traces_full_TRACE_JSON.2c7accaa84": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRACES_FULL_TRACE_JSON", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 2, "name": "TX_POSITION", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 3, "name": "TRACE_ADDRESS", "comment": null}, "PARENT_TRACE_ADDRESS": {"type": "TEXT", "index": 4, "name": "PARENT_TRACE_ADDRESS", "comment": null}, "TRACE_ADDRESS_ARRAY": {"type": "ARRAY", "index": 5, "name": "TRACE_ADDRESS_ARRAY", "comment": null}, "TRACE_JSON": {"type": "OBJECT", "index": 6, "name": "TRACE_JSON", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 7, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRACES_ID": {"type": "TEXT", "index": 9, "name": "TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 13:04UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__traces_full_TRACE_JSON.2c7accaa84"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.a1e69a24d9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "DECODED_LOGS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.a1e69a24d9"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.5721ea6b45": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_5_SALES_TOTAL_FEES_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.5721ea6b45"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT__NUMBER__FLOAT.225f59bd1e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER_STATS", "name": "CORE_METRICS_HOURLY_UNIQUE_FROM_COUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT__NUMBER__FLOAT.225f59bd1e"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BORROWER.887a479a91": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_BORROWER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BORROWER.887a479a91"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_RAW_AMOUNT.ca974f9bde": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_RAW_AMOUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_RAW_AMOUNT.ca974f9bde"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_BUYER_ADDRESS.5a3e4fa745": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_BUYER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_BUYER_ADDRESS.5a3e4fa745"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.804453d554": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_BRIDGE", "name": "HOP_L2CANONICALTOKEN_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.804453d554"}, "test.fsc_evm.unique_silver__complete_provider_prices_COMPLETE_PROVIDER_PRICES_ID.52bf8dd406": {"metadata": {"type": "BASE TABLE", "schema": "UNIQUE_SILVER", "name": "COMPLETE_PROVIDER_PRICES_COMPLETE_PROVIDER_PRICES_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"UNIQUE_FIELD": {"type": "TEXT", "index": 1, "name": "UNIQUE_FIELD", "comment": null}, "N_RECORDS": {"type": "NUMBER", "index": 2, "name": "N_RECORDS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.unique_silver__complete_provider_prices_COMPLETE_PROVIDER_PRICES_ID.52bf8dd406"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_TX_HASH.e332a4e2f2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_TX_HASH.e332a4e2f2"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE_PRECISE.3b69d58f94": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_VALUE_PRECISE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE_PRECISE.3b69d58f94"}, "model.fsc_evm.test_silver__traces_recent": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "TRACES_RECENT", "database": "POLYGON", "comment": "This is a view used to test the last three days of traces.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "TX_POSITION": {"type": "NUMBER", "index": 2, "name": "TX_POSITION", "comment": ""}, "TRACE_ADDRESS": {"type": "TEXT", "index": 3, "name": "TRACE_ADDRESS", "comment": ""}, "PARENT_TRACE_ADDRESS": {"type": "TEXT", "index": 4, "name": "PARENT_TRACE_ADDRESS", "comment": ""}, "TRACE_ADDRESS_ARRAY": {"type": "ARRAY", "index": 5, "name": "TRACE_ADDRESS_ARRAY", "comment": ""}, "TRACE_JSON": {"type": "OBJECT", "index": 6, "name": "TRACE_JSON", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 7, "name": "PARTITION_KEY", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "TRACES_ID": {"type": "TEXT", "index": 9, "name": "TRACES_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__traces_recent"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.030006fed4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TOFUNFT_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.030006fed4"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_BLOCK_NUMBER__NUMBER__FLOAT.a0aef7af7c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_BLOCK_NUMBER__NUMBER__FLOAT.a0aef7af7c"}, "test.fsc_evm.not_null_admin__fact_variables_KEY.d5252aea36": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ADMIN", "name": "FACT_VARIABLES_KEY", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PROJECT": {"type": "TEXT", "index": 1, "name": "PROJECT", "comment": null}, "KEY": {"type": "TEXT", "index": 2, "name": "KEY", "comment": null}, "VALUE": {"type": "TEXT", "index": 3, "name": "VALUE", "comment": null}, "PARENT_KEY": {"type": "TEXT", "index": 4, "name": "PARENT_KEY", "comment": null}, "FACT_VARIABLES_ID": {"type": "TEXT", "index": 5, "name": "FACT_VARIABLES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_admin__fact_variables_KEY.d5252aea36"}, "test.fsc_evm.not_null_silver__balances_erc20_daily_BALANCE_HEX.4b0eb04af8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BALANCES_ERC20_DAILY_BALANCE_HEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 5, "name": "BALANCE_HEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 7, "name": "BALANCES_ERC20_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__balances_erc20_daily_BALANCE_HEX.4b0eb04af8"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__contracts_recent_CONTRACT_ADDRESS.86e2c4e62c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "CONTRACTS_RECENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__contracts_recent_CONTRACT_ADDRESS.86e2c4e62c"}, "model.fsc_evm.test_silver__traces_full": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "TRACES_FULL", "database": "POLYGON", "comment": "This is a view used to test all of the silver traces model.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "TX_POSITION": {"type": "NUMBER", "index": 2, "name": "TX_POSITION", "comment": ""}, "TRACE_ADDRESS": {"type": "TEXT", "index": 3, "name": "TRACE_ADDRESS", "comment": ""}, "PARENT_TRACE_ADDRESS": {"type": "TEXT", "index": 4, "name": "PARENT_TRACE_ADDRESS", "comment": ""}, "TRACE_ADDRESS_ARRAY": {"type": "ARRAY", "index": 5, "name": "TRACE_ADDRESS_ARRAY", "comment": ""}, "TRACE_JSON": {"type": "OBJECT", "index": 6, "name": "TRACE_JSON", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 7, "name": "PARTITION_KEY", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "TRACES_ID": {"type": "TEXT", "index": 9, "name": "TRACES_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__traces_full"}, "model.fsc_evm.test_nft__ez_nft_transfers_full": {"metadata": {"type": "VIEW", "schema": "TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL", "database": "POLYGON", "comment": "This is a view used to test all of the `ez_nft_transfers` data.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": ""}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": ""}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": ""}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": ""}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": ""}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": ""}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": ""}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": ""}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": ""}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "model.fsc_evm.silver_dex__dodo_v1_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "DODO_V1_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 7, "name": "POOL_ADDRESS", "comment": null}, "BASE_TOKEN": {"type": "TEXT", "index": 8, "name": "BASE_TOKEN", "comment": null}, "QUOTE_TOKEN": {"type": "TEXT", "index": 9, "name": "QUOTE_TOKEN", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 14, "name": "_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:03UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 25600, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__dodo_v1_pools"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP__day__3.7ae7a49b3e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP__day__3.7ae7a49b3e"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_CONTRACT_ADDRESS.447bc5cf3b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_CONTRACT_ADDRESS.447bc5cf3b"}, "seed.fsc_evm.silver_bridge__allbridge_chain_id_seed": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "ALLBRIDGE_CHAIN_ID_SEED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "CHAIN_ID": {"type": "NUMBER", "index": 2, "name": "CHAIN_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1536, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 11, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver_bridge__allbridge_chain_id_seed"}, "test.fsc_evm.not_null_silver_bridge__everclear_reads_OUTPUT_ASSET.506d895537": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "EVERCLEAR_READS_OUTPUT_ASSET", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MIN_EPOCH": {"type": "NUMBER", "index": 1, "name": "MIN_EPOCH", "comment": null}, "OUTPUT_ASSET": {"type": "TEXT", "index": 2, "name": "OUTPUT_ASSET", "comment": null}, "STATUS": {"type": "TEXT", "index": 3, "name": "STATUS", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 4, "name": "DESTINATION_CHAIN_ID", "comment": null}, "INTENT_CREATED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "INTENT_CREATED_TIMESTAMP", "comment": null}, "CURSOR_ID": {"type": "NUMBER", "index": 6, "name": "CURSOR_ID", "comment": null}, "INTENT_ID": {"type": "TEXT", "index": 7, "name": "INTENT_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__everclear_reads_OUTPUT_ASSET.506d895537"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP__hour__2.4589bd9103": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP__hour__2.4589bd9103"}, "model.fsc_evm.price__ez_prices_hourly": {"metadata": {"type": "BASE TABLE", "schema": "PRICE", "name": "EZ_PRICES_HOURLY", "database": "POLYGON", "comment": "## What\n\nThis curated table provides reliable hourly price data for tokens and native assets across EVM blockchains. It combines multiple data sources with quality checks to ensure accurate, consistent pricing for DeFi analytics, portfolio valuations, and historical analysis.\n\n## Key Use Cases\n\n- Calculate USD values for token transfers and transaction amounts\n- Track price volatility and market movements over time\n- Monitor stablecoin depegging events and price stability\n- Analyze native asset price trends across different blockchains\n- Perform portfolio valuations and historical price lookups\n- Create price charts and technical analysis dashboards\n- Assess price data quality and imputation rates\n\n## Important Relationships\n\n- **Join with ez_token_transfers**: Calculate transfer USD values using hourly price snapshots\n- **Join with ez_asset_metadata**: Get token details and verification status\n- **Join with dim_contracts**: Match addresses with contract metadata\n\n## Commonly-used Fields\n\n- `hour`: UTC timestamp truncated to hour for price recording\n- `token_address`: Contract address of the token (NULL for native assets)\n- `symbol`: Token ticker symbol (ETH, USDC, etc.)\n- `price`: USD price of one whole token unit\n- `is_imputed`: Flag indicating forward-filled prices due to missing data\n- `is_native`: Boolean for blockchain native currencies\n- `blockchain`: Network where the asset exists\n\n## Sample Queries\n\n**Token Price Lookup with USD Calculations**\n```sql\n-- Calculate USD value for token transfers\nSELECT \n t.block_timestamp,\n t.tx_hash,\n t.symbol,\n t.from_address,\n t.to_address,\n t.amount,\n p.price,\n t.amount * p.price AS usd_value,\n p.is_imputed\nFROM .core.ez_token_transfers t\nJOIN .price.ez_prices_hourly p\n ON t.contract_address = p.token_address\n AND DATE_TRUNC('hour', t.block_timestamp) = p.hour\nWHERE t.block_timestamp >= CURRENT_DATE - 7\n AND t.amount > 0\n AND p.price IS NOT NULL\nORDER BY usd_value DESC\nLIMIT 100;\n```\n\n**Price Volatility Analysis**\n```sql\n-- 24-hour price volatility for major tokens\nWITH price_stats AS (\n SELECT \n symbol,\n token_address,\n DATE(hour) AS date,\n MIN(price) AS daily_low,\n MAX(price) AS daily_high,\n AVG(price) AS daily_avg,\n STDDEV(price) AS daily_stddev,\n (MAX(price) - MIN(price)) / MIN(price) * 100 AS daily_range_pct\n FROM .price.ez_prices_hourly\n WHERE hour >= CURRENT_DATE - 30\n AND symbol IN ('WETH', 'USDC', 'USDT', 'WBTC', 'DAI')\n AND NOT is_imputed\n GROUP BY 1, 2, 3\n)\nSELECT \n symbol,\n AVG(daily_range_pct) AS avg_daily_volatility,\n MAX(daily_range_pct) AS max_daily_volatility,\n AVG(daily_stddev / daily_avg) * 100 AS avg_cv_pct\nFROM price_stats\nGROUP BY 1\nORDER BY 2 DESC;\n```\n\n**Native Asset Price Tracking**\n```sql\n-- Track native asset prices across chains\nSELECT \n blockchain,\n symbol,\n hour,\n price,\n price / LAG(price, 24) OVER (PARTITION BY blockchain ORDER BY hour) - 1 AS change_24h,\n price / LAG(price, 168) OVER (PARTITION BY blockchain ORDER BY hour) - 1 AS change_7d\nFROM .price.ez_prices_hourly\nWHERE is_native = TRUE\n AND hour >= CURRENT_DATE - 8\n AND hour = DATE_TRUNC('hour', CURRENT_TIMESTAMP) - INTERVAL '1 hour'\nORDER BY blockchain;\n```\n\n**Stablecoin Peg Monitoring**\n```sql\n-- Monitor stablecoin deviations from [$]1\nSELECT \n symbol,\n hour,\n price,\n ABS(price - 1.0) AS deviation,\n CASE \n WHEN ABS(price - 1.0) > 0.05 THEN 'Severe Depeg'\n WHEN ABS(price - 1.0) > 0.01 THEN 'Mild Depeg'\n ELSE 'Stable'\n END AS peg_status\nFROM .price.ez_prices_hourly\nWHERE symbol IN ('USDC', 'USDT', 'DAI', 'BUSD', 'FRAX', 'LUSD')\n AND hour >= CURRENT_DATE - 7\n AND ABS(price - 1.0) > 0.005\nORDER BY hour DESC, deviation DESC;\n```\n\n**Price Data Quality Check**\n```sql\n-- Analyze price data completeness and imputation rates\nSELECT \n symbol,\n COUNT(*) AS total_hours,\n SUM(CASE WHEN is_imputed THEN 1 ELSE 0 END) AS imputed_hours,\n ROUND(100.0 * SUM(CASE WHEN is_imputed THEN 1 ELSE 0 END) / COUNT(*), 2) AS imputation_rate,\n MIN(hour) AS first_price,\n MAX(hour) AS last_price,\n COUNT(DISTINCT DATE(hour)) AS days_with_data\nFROM .price.ez_prices_hourly\nWHERE hour >= CURRENT_DATE - 30\nGROUP BY 1\nHAVING COUNT(*) > 100\nORDER BY imputation_rate DESC;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": "UTC timestamp truncated to the hour for price recording. Used for joining with hourly transaction data.\n\nExample: '2024-01-15 14:00:00.000'"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": "Contract address of the token on the blockchain. NULL for native assets (ETH, AVAX, etc.).\n\nExample: '0xa0b86a33e6776a1e7f9f0b8b8b8b8b8b8b8b8b8b'"}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": "Token ticker symbol as commonly recognized. Usually 3-5 uppercase characters.\n\nExample: 'WETH'"}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": "Number of decimal places for the token. Most ERC-20 tokens use 18 decimals, USDC/USDT use 6, WBTC uses 8.\n\nExample: 18"}, "PRICE": {"type": "FLOAT", "index": 6, "name": "PRICE", "comment": "USD price of one whole token unit at the recorded hour.\n\nExample: 3000.50"}, "BLOCKCHAIN": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN", "comment": "The blockchain network where the asset exists. Lowercase by convention.\n\nExample: 'ethereum'"}, "IS_NATIVE": {"type": "BOOLEAN", "index": 8, "name": "IS_NATIVE", "comment": "Boolean indicating if the asset is the blockchain's native currency. TRUE for ETH on Ethereum, AVAX on Avalanche, etc.\n\nExample: true"}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 9, "name": "IS_IMPUTED", "comment": "Boolean flag indicating if the price was forward-filled due to missing data. TRUE means price carried forward from last known value.\n\nExample: false"}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 10, "name": "IS_DEPRECATED", "comment": "Flag indicating if the asset is no longer actively supported. TRUE for deprecated assets that may have stale prices.\n\nExample: false"}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 11, "name": "IS_VERIFIED", "comment": "Boolean indicating Flipside team verification of the asset. TRUE for manually verified assets with validated metadata.\n\nExample: true"}, "EZ_PRICES_HOURLY_ID": {"type": "TEXT", "index": 12, "name": "EZ_PRICES_HOURLY_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1673254912, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(hour::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 52900132, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.price__ez_prices_hourly"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_NUMBER.9061fb0407": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_NUMBER.9061fb0407"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__complete_nft_sales_nft_log_id.1db89d3193": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "COMPLETE_NFT_SALES_NFT_LOG_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"NFT_LOG_ID": {"type": "TEXT", "index": 1, "name": "NFT_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__complete_nft_sales_nft_log_id.1db89d3193"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP.82fda9d680": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP.82fda9d680"}, "test.polygon_models.not_null_silver_olas__registry_metadata_REGISTRY_ID.cee5b3e691": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "REGISTRY_METADATA_REGISTRY_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RESP": {"type": "VARIANT", "index": 1, "name": "RESP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 3, "name": "CONTRACT_ADDRESS", "comment": null}, "REGISTRY_ID": {"type": "NUMBER", "index": 4, "name": "REGISTRY_ID", "comment": null}, "TOKEN_URI_LINK": {"type": "TEXT", "index": 5, "name": "TOKEN_URI_LINK", "comment": null}, "TRAIT_TYPE": {"type": "TEXT", "index": 6, "name": "TRAIT_TYPE", "comment": null}, "TRAIT_VALUE": {"type": "TEXT", "index": 7, "name": "TRAIT_VALUE", "comment": null}, "CODE_URI_LINK": {"type": "TEXT", "index": 8, "name": "CODE_URI_LINK", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 9, "name": "DESCRIPTION", "comment": null}, "IMAGE_LINK": {"type": "TEXT", "index": 10, "name": "IMAGE_LINK", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "REGISTRY_METADATA_ID": {"type": "TEXT", "index": 13, "name": "REGISTRY_METADATA_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__registry_metadata_REGISTRY_ID.cee5b3e691"}, "test.fsc_evm.not_null_admin__dim_variables_KEY.ad438e63ea": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ADMIN", "name": "DIM_VARIABLES_KEY", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PACKAGE": {"type": "TEXT", "index": 1, "name": "PACKAGE", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 2, "name": "CATEGORY", "comment": null}, "KEY": {"type": "TEXT", "index": 3, "name": "KEY", "comment": null}, "DEFAULT_VALUE": {"type": "TEXT", "index": 4, "name": "DEFAULT_VALUE", "comment": null}, "DEFAULT_TYPE": {"type": "TEXT", "index": 5, "name": "DEFAULT_TYPE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DIM_VARIABLES_ID": {"type": "TEXT", "index": 7, "name": "DIM_VARIABLES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_admin__dim_variables_KEY.ad438e63ea"}, "test.fsc_evm.not_null_observability__logs_TEST_TIMESTAMP.a8140bb427": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_OBSERVABILITY", "name": "LOGS_TEST_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TEST_NAME": {"type": "TEXT", "index": 1, "name": "TEST_NAME", "comment": null}, "MIN_BLOCK": {"type": "NUMBER", "index": 2, "name": "MIN_BLOCK", "comment": null}, "MAX_BLOCK": {"type": "NUMBER", "index": 3, "name": "MAX_BLOCK", "comment": null}, "MIN_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "MIN_BLOCK_TIMESTAMP", "comment": null}, "MAX_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "MAX_BLOCK_TIMESTAMP", "comment": null}, "BLOCKS_TESTED": {"type": "NUMBER", "index": 6, "name": "BLOCKS_TESTED", "comment": null}, "BLOCKS_IMPACTED_COUNT": {"type": "NUMBER", "index": 7, "name": "BLOCKS_IMPACTED_COUNT", "comment": null}, "MISSING_LIST": {"type": "ARRAY", "index": 8, "name": "MISSING_LIST", "comment": null}, "TEST_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "TEST_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_observability__logs_TEST_TIMESTAMP.a8140bb427"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.6f365bb04d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "CONFIRM_BLOCKS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.6f365bb04d"}, "model.fsc_evm.silver_dex__platypus_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "PLATYPUS_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 12, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 13, "name": "TOKEN_OUT", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 16, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 19, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__platypus_swaps"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PLATFORM.80ec31452a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_PLATFORM", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PLATFORM.80ec31452a"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE.9ca019a30f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE.9ca019a30f"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_EVENT_INDEX.ea83d8365e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_EVENT_INDEX.ea83d8365e"}, "model.fsc_evm.silver_lending__comp_v2_withdraws": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "COMP_V2_WITHDRAWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 10, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 14, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 15, "name": "VERSION", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 19, "name": "_LOG_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 20, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__comp_v2_withdraws"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TOTAL_FEES_USD__NUMBER__FLOAT.8179f9db61": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "COMPLETE_NFT_SALES_TOTAL_FEES_USD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TOTAL_FEES_USD__NUMBER__FLOAT.8179f9db61"}, "test.polygon_models.not_null_silver__element_sales_NFT_ADDRESS.a64e864cf2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_NFT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_NFT_ADDRESS.a64e864cf2"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BLOCK_TIMESTAMP.d5aef20d26": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BLOCK_TIMESTAMP.d5aef20d26"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.b0cc0cbca1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_4_SALES_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.b0cc0cbca1"}, "model.fsc_evm.chain_stats__ez_allowlist": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_ALLOWLIST", "database": "POLYGON", "comment": "## What\n\nVerified tokens for the indicated EVM blockchain. Appended with a tracks asset column that indicates ETH, BTC, USD, or is an alt coin", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The name of the blockchain\n\nExample: 'Arbitrum'"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": "The symbol of the token\n\nExample: 'ETH', 'BTC', 'USDC'"}, "TRACKS_ASSET": {"type": "TEXT", "index": 4, "name": "TRACKS_ASSET", "comment": "The asset that the token tracks, which can be ETH, BTC, USD, or an alt token. This is used to indicate the primary asset that the token is associated with\n\nExample: 'ETH', 'BTC', 'USD'"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.chain_stats__ez_allowlist"}, "seed.fsc_evm.silver_dex__synthetix_synths_20230404": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "SYNTHETIX_SYNTHS_20230404", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "SYNTH_SYMBOL": {"type": "TEXT", "index": 2, "name": "SYNTH_SYMBOL", "comment": null}, "SYNTH_PROXY_ADDRESS": {"type": "TEXT", "index": 3, "name": "SYNTH_PROXY_ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 5632, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 81, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver_dex__synthetix_synths_20230404"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_CREATOR_FEE__NUMBER__FLOAT.cff32bf09f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "COMPLETE_NFT_SALES_CREATOR_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_CREATOR_FEE__NUMBER__FLOAT.cff32bf09f"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_PROJECT_NAME__STRING__VARCHAR.81fdcfbdf9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "LABELS_PROJECT_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_PROJECT_NAME__STRING__VARCHAR.81fdcfbdf9"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_EVENT_TYPE.8b8c5fa13c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_EVENT_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_EVENT_TYPE.8b8c5fa13c"}, "test.fsc_evm.not_null_observability__traces_TEST_TIMESTAMP.4b6fefc2cc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_OBSERVABILITY", "name": "TRACES_TEST_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TEST_NAME": {"type": "TEXT", "index": 1, "name": "TEST_NAME", "comment": null}, "MIN_BLOCK": {"type": "NUMBER", "index": 2, "name": "MIN_BLOCK", "comment": null}, "MAX_BLOCK": {"type": "NUMBER", "index": 3, "name": "MAX_BLOCK", "comment": null}, "MIN_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "MIN_BLOCK_TIMESTAMP", "comment": null}, "MAX_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "MAX_BLOCK_TIMESTAMP", "comment": null}, "BLOCKS_TESTED": {"type": "NUMBER", "index": 6, "name": "BLOCKS_TESTED", "comment": null}, "BLOCKS_IMPACTED_COUNT": {"type": "NUMBER", "index": 7, "name": "BLOCKS_IMPACTED_COUNT", "comment": null}, "MISSING_LIST": {"type": "ARRAY", "index": 8, "name": "MISSING_LIST", "comment": null}, "TEST_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "TEST_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_observability__traces_TEST_TIMESTAMP.4b6fefc2cc"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_native_prices_HOUR__SYMBOL.9742f3d916": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "COMPLETE_NATIVE_PRICES_HOUR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_native_prices_HOUR__SYMBOL.9742f3d916"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_TX_HASH.bce1515589": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_TX_HASH.bce1515589"}, "model.fsc_evm.silver_dex__balancer_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "BALANCER_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 5, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 7, "name": "POOL_ID", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 8, "name": "POOL_ADDRESS", "comment": null}, "POOL_SYMBOL": {"type": "TEXT", "index": 9, "name": "POOL_SYMBOL", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "POOL_DECIMALS": {"type": "NUMBER", "index": 11, "name": "POOL_DECIMALS", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 12, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 13, "name": "TOKEN1", "comment": null}, "TOKEN2": {"type": "TEXT", "index": 14, "name": "TOKEN2", "comment": null}, "TOKEN3": {"type": "TEXT", "index": 15, "name": "TOKEN3", "comment": null}, "TOKEN4": {"type": "TEXT", "index": 16, "name": "TOKEN4", "comment": null}, "TOKEN5": {"type": "TEXT", "index": 17, "name": "TOKEN5", "comment": null}, "TOKEN6": {"type": "TEXT", "index": 18, "name": "TOKEN6", "comment": null}, "TOKEN7": {"type": "TEXT", "index": 19, "name": "TOKEN7", "comment": null}, "ASSET_MANAGERS": {"type": "VARIANT", "index": 20, "name": "ASSET_MANAGERS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 24, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 25, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 11468800, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 3860, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__balancer_pools"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_SELLER_ADDRESS.48bbb8263d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_SELLER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_SELLER_ADDRESS.48bbb8263d"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID.203984c885": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_RECENT_EZ_BALANCES_ERC20_DAILY_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EZ_BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 1, "name": "EZ_BALANCES_ERC20_DAILY_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 28852224, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 958294, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID.203984c885"}, "test.polygon_models.not_null_silver__tofunft_sales_CURRENCY_ADDRESS.415669b9b3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_CURRENCY_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_CURRENCY_ADDRESS.415669b9b3"}, "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_repayments_7_5__60__lending.dc63c75a4a": {"metadata": {"type": "BASE TABLE", "schema": "CURATED_RECENCY_DEFI_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_7_5", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PLATFORM": {"type": "TEXT", "index": 1, "name": "PLATFORM", "comment": null}, "LATEST_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "LATEST_TIMESTAMP", "comment": null}, "SYS_TS": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "SYS_TS", "comment": null}, "THRESHOLD_TS": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "THRESHOLD_TS", "comment": null}, "CURRENT_PERIOD_EVT": {"type": "NUMBER", "index": 5, "name": "CURRENT_PERIOD_EVT", "comment": null}, "ROLLING_AVG_EVT": {"type": "NUMBER", "index": 6, "name": "ROLLING_AVG_EVT", "comment": null}, "PERCENT_DELTA": {"type": "NUMBER", "index": 7, "name": "PERCENT_DELTA", "comment": null}, "TYPE": {"type": "TEXT", "index": 8, "name": "TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_repayments_7_5__60__lending.dc63c75a4a"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_DIFFICULTY__NUMBER__FLOAT.4197d7bd8c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_FULL_DIFFICULTY", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_DIFFICULTY__NUMBER__FLOAT.4197d7bd8c"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP__hour__2.24ba46645f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "DECODED_LOGS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP__hour__2.24ba46645f"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.44c7ddb31b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_1_SALES_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.44c7ddb31b"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.6468c94ec8": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "DECODED_LOGS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.6468c94ec8"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_TO_ADDRESS.50fe049e34": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_TO_ADDRESS.50fe049e34"}, "test.livequery_models.test_github_utils__octocat_status_200.7a9c72f57f": {"metadata": {"type": "BASE TABLE", "schema": "TEST_GITHUB_UTILS", "name": "OCTOCAT_STATUS_200", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TEST_NAME": {"type": "TEXT", "index": 1, "name": "TEST_NAME", "comment": null}, "PARAMETERS": {"type": "ARRAY", "index": 2, "name": "PARAMETERS", "comment": null}, "RESULT": {"type": "VARIANT", "index": 3, "name": "RESULT", "comment": null}, "ASSERTION": {"type": "TEXT", "index": 4, "name": "ASSERTION", "comment": null}, "SQL": {"type": "TEXT", "index": 5, "name": "SQL", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-13 20:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.livequery_models.test_github_utils__octocat_status_200.7a9c72f57f"}, "test.fsc_evm.not_null_test_silver__traces_full_BLOCK_NUMBER.ab8fe90ce8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRACES_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 2, "name": "TX_POSITION", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 3, "name": "TRACE_ADDRESS", "comment": null}, "PARENT_TRACE_ADDRESS": {"type": "TEXT", "index": 4, "name": "PARENT_TRACE_ADDRESS", "comment": null}, "TRACE_ADDRESS_ARRAY": {"type": "ARRAY", "index": 5, "name": "TRACE_ADDRESS_ARRAY", "comment": null}, "TRACE_JSON": {"type": "OBJECT", "index": 6, "name": "TRACE_JSON", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 7, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRACES_ID": {"type": "TEXT", "index": 9, "name": "TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__traces_full_BLOCK_NUMBER.ab8fe90ce8"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP__hour__2.92c0a04348": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP__hour__2.92c0a04348"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_recent_ADDRESS__0_xX_0_9a_fA_F_.2358d27b0b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_RECENT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_recent_ADDRESS__0_xX_0_9a_fA_F_.2358d27b0b"}, "model.fsc_evm.defi__ez_dex_swaps": {"metadata": {"type": "VIEW", "schema": "DEFI", "name": "EZ_DEX_SWAPS", "database": "POLYGON", "comment": "## What\n\nThis table provides a comprehensive view of token swap events across major decentralized exchanges (DEXs) on EVM blockchains. It standardizes swap data from different DEX protocols into a unified format, enabling cross-DEX analysis and DeFi trading insights.\n\n## Key Use Cases\n\n- Analyzing DEX trading volumes and market share\n- Tracking token pair liquidity and trading activity\n- Detecting arbitrage opportunities across protocols\n- Monitoring whale trades and unusual swap patterns\n- Calculating slippage and price impact of trades\n\n## Important Relationships\n\n- **Join with dim_dex_liquidity_pools**: Get pool metadata and token details\n- **Join with fact_event_logs**: Access raw swap events\n- **Join with ez_prices_hourly**: Verify token prices\n\n## Commonly-used Fields\n\n- `platform`: DEX protocol (uniswap_v2, curve, etc.)\n- `sender`: Address initiating the swap\n- `token_in`/`token_out`: Token addresses being swapped\n- `amount_in`/`amount_out`: Decimal-adjusted swap amounts\n- `amount_in_usd`/`amount_out_usd`: USD values at swap time\n- `pool_address`: Liquidity pool where swap occurred\n\n## Sample queries\n\n```sql\n-- Daily swap volume by DEX platform\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(*) AS swap_count,\n COUNT(DISTINCT sender) AS unique_traders,\n COUNT(DISTINCT pool_address) AS active_pools,\n SUM(amount_in_usd) AS total_volume_usd,\n AVG(amount_in_usd) AS avg_swap_size_usd,\n PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY amount_in_usd) AS median_swap_usd\nFROM .defi.ez_dex_swaps\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_in_usd IS NOT NULL\n AND amount_in_usd > 0\nGROUP BY 1, 2\nORDER BY 1 DESC, 6 DESC;\n\n-- Most active trading pairs\nWITH pair_volume AS (\n SELECT \n LEAST(token_in, token_out) AS token_a,\n GREATEST(token_in, token_out) AS token_b,\n LEAST(symbol_in, symbol_out) AS symbol_a,\n GREATEST(symbol_in, symbol_out) AS symbol_b,\n COUNT(*) AS swap_count,\n SUM(amount_in_usd) AS volume_usd,\n COUNT(DISTINCT sender) AS unique_traders,\n COUNT(DISTINCT DATE(block_timestamp)) AS active_days\n FROM .defi.ez_dex_swaps\n WHERE block_timestamp >= CURRENT_DATE - 7\n AND amount_in_usd IS NOT NULL\n GROUP BY 1, 2, 3, 4\n)\nSELECT \n symbol_a || '/' || symbol_b AS pair,\n swap_count,\n volume_usd,\n unique_traders,\n active_days,\n volume_usd / swap_count AS avg_swap_size\nFROM pair_volume\nWHERE volume_usd > 100000\nORDER BY volume_usd DESC\nLIMIT 50;\n\n-- Price discrepancies across DEXs for same token pairs\nWITH recent_swaps AS (\n SELECT \n block_timestamp,\n platform,\n token_in,\n token_out,\n symbol_in,\n symbol_out,\n amount_in,\n amount_out,\n amount_in_usd / NULLIF(amount_in, 0) AS price_in_usd,\n amount_out_usd / NULLIF(amount_out, 0) AS price_out_usd,\n -- Calculate implied exchange rate\n amount_out / NULLIF(amount_in, 0) AS exchange_rate\n FROM .defi.ez_dex_swaps\n WHERE block_timestamp >= CURRENT_TIMESTAMP - INTERVAL '1 hour'\n AND amount_in > 0 \n AND amount_out > 0\n AND amount_in_usd IS NOT NULL\n),\nprice_comparison AS (\n SELECT \n DATE_TRUNC('minute', block_timestamp) AS minute,\n token_in,\n token_out,\n symbol_in || '->' || symbol_out AS pair,\n platform,\n AVG(exchange_rate) AS avg_rate,\n COUNT(*) AS swap_count\n FROM recent_swaps\n GROUP BY 1, 2, 3, 4, 5\n)\nSELECT \n p1.minute,\n p1.pair,\n p1.platform AS platform_1,\n p2.platform AS platform_2,\n p1.avg_rate AS rate_1,\n p2.avg_rate AS rate_2,\n ABS(p1.avg_rate - p2.avg_rate) / LEAST(p1.avg_rate, p2.avg_rate) * 100 AS price_diff_pct\nFROM price_comparison p1\nJOIN price_comparison p2\n ON p1.minute = p2.minute\n AND p1.token_in = p2.token_in\n AND p1.token_out = p2.token_out\n AND p1.platform < p2.platform\nWHERE price_diff_pct > 1 -- More than 1% difference\nORDER BY p1.minute DESC, price_diff_pct DESC;\n\n-- Large swaps by size and impact\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n sender,\n symbol_in || ' -> ' || symbol_out AS swap_pair,\n amount_in,\n amount_in_usd,\n amount_out,\n amount_out_usd,\n ABS(amount_in_usd - amount_out_usd) / NULLIF(amount_in_usd, 0) * 100 AS slippage_pct\nFROM .defi.ez_dex_swaps\nWHERE block_timestamp >= CURRENT_DATE - 1\n AND amount_in_usd > 100000 -- Swaps over [$]100k\nORDER BY amount_in_usd DESC\nLIMIT 100;\n\n-- Platform market share by volume\nWITH platform_stats AS (\n SELECT \n platform,\n SUM(amount_in_usd) AS total_volume,\n COUNT(*) AS total_swaps,\n COUNT(DISTINCT sender) AS unique_users,\n COUNT(DISTINCT pool_address) AS unique_pools\n FROM .defi.ez_dex_swaps\n WHERE block_timestamp >= CURRENT_DATE - 7\n AND amount_in_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n platform,\n total_volume,\n ROUND(100.0 * total_volume / SUM(total_volume) OVER (), 2) AS market_share_pct,\n total_swaps,\n unique_users,\n unique_pools,\n total_volume / NULLIF(total_swaps, 0) AS avg_swap_size\nFROM platform_stats\nORDER BY total_volume DESC;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": "The contract address of the swap. This is the address of the contract that executed the swap, often a pool contract.\n\nExample: '0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8'"}, "POOL_NAME": {"type": "TEXT", "index": 8, "name": "POOL_NAME", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```"}, "AMOUNT_IN_UNADJ": {"type": "FLOAT", "index": 10, "name": "AMOUNT_IN_UNADJ", "comment": "The raw, non-decimal adjusted amount of tokens provided in the swap.\n\nExample: 1000500000"}, "AMOUNT_IN": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN", "comment": "The decimal-adjusted quantity of tokens provided by the trader in the swap.\n\nExample: 1000.5"}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN_USD", "comment": "USD value of tokens provided in the swap at time of transaction.\n\nExample: 1500.75"}, "AMOUNT_OUT_UNADJ": {"type": "FLOAT", "index": 13, "name": "AMOUNT_OUT_UNADJ", "comment": "The raw, non-decimal adjusted amount of tokens received from the swap.\n\nExample: 650000000000000000"}, "AMOUNT_OUT": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT", "comment": "The decimal-adjusted quantity of tokens received by the trader from the swap.\n\nExample: 0.65"}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 15, "name": "AMOUNT_OUT_USD", "comment": "USD value of tokens received from the swap at time of transaction.\n\nExample: 1498.25"}, "SENDER": {"type": "TEXT", "index": 16, "name": "SENDER", "comment": "The address that initiated the swap transaction.\n\nExample: '0x7a250d5630b4cf539739df2c5dacb4c659f2488d'"}, "TX_TO": {"type": "TEXT", "index": 17, "name": "TX_TO", "comment": "The recipient address of the swapped tokens.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "EVENT_INDEX": {"type": "NUMBER", "index": 18, "name": "EVENT_INDEX", "comment": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "PLATFORM": {"type": "TEXT", "index": 19, "name": "PLATFORM", "comment": "The DEX protocol where the swap occurred.\n\nExample: 'uniswap_v3'"}, "PROTOCOL": {"type": "TEXT", "index": 20, "name": "PROTOCOL", "comment": "The protocol used for the swap. This is the clean name of the protocol, not the platform, without the version.\n\nExample: 'uniswap'"}, "PROTOCOL_VERSION": {"type": "TEXT", "index": 21, "name": "PROTOCOL_VERSION", "comment": "The version of the protocol used for the swap.\n\nExample: 'v3'"}, "TOKEN_IN": {"type": "TEXT", "index": 22, "name": "TOKEN_IN", "comment": "The contract address of the token being sold in the swap.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "TOKEN_IN_IS_VERIFIED": {"type": "BOOLEAN", "index": 23, "name": "TOKEN_IN_IS_VERIFIED", "comment": "Whether the token in the swap is verified.\n\nExample: true"}, "TOKEN_OUT": {"type": "TEXT", "index": 24, "name": "TOKEN_OUT", "comment": "The contract address of the token being received from the swap.\n\nExample: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'"}, "TOKEN_OUT_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_OUT_IS_VERIFIED", "comment": "Whether the token out of the swap is verified.\n\nExample: true"}, "SYMBOL_IN": {"type": "TEXT", "index": 26, "name": "SYMBOL_IN", "comment": "The ticker symbol of the token being sold/swapped from.\n\nExample: 'USDC'"}, "SYMBOL_OUT": {"type": "TEXT", "index": 27, "name": "SYMBOL_OUT", "comment": "The ticker symbol of the token being bought/received.\n\nExample: 'WETH'"}, "_LOG_ID": {"type": "TEXT", "index": 28, "name": "_LOG_ID", "comment": ""}, "EZ_DEX_SWAPS_ID": {"type": "TEXT", "index": 29, "name": "EZ_DEX_SWAPS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.defi__ez_dex_swaps"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_ADDRESS.df87d38f26": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_PLATFORM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_ADDRESS.df87d38f26"}, "test.fsc_evm.not_null_silver__complete_token_prices_TOKEN_ADDRESS.7e03ade9df": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_TOKEN_PRICES_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 3, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 5, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 6, "name": "DECIMALS", "comment": null}, "PRICE": {"type": "FLOAT", "index": 7, "name": "PRICE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN", "comment": null}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 9, "name": "BLOCKCHAIN_NAME", "comment": null}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 10, "name": "BLOCKCHAIN_ID", "comment": null}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 11, "name": "IS_IMPUTED", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 12, "name": "IS_DEPRECATED", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 13, "name": "IS_VERIFIED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 14, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 15, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_TOKEN_PRICES_ID": {"type": "TEXT", "index": 19, "name": "COMPLETE_TOKEN_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 20, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_token_prices_TOKEN_ADDRESS.7e03ade9df"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_TRACE_INDEX__NUMBER__FLOAT.fbac1ab3f2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_TRACES_FULL_TRACE_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_TRACE_INDEX__NUMBER__FLOAT.fbac1ab3f2"}, "test.fsc_evm.not_null_test_silver__contracts_full_CONTRACT_ADDRESS.1e6edb77c6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "CONTRACTS_FULL_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_NAME": {"type": "TEXT", "index": 2, "name": "TOKEN_NAME", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 3, "name": "TOKEN_DECIMALS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 4, "name": "TOKEN_SYMBOL", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CONTRACTS_ID": {"type": "TEXT", "index": 6, "name": "CONTRACTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__contracts_full_CONTRACT_ADDRESS.1e6edb77c6"}, "model.fsc_evm.silver_stablecoins__mint_burn": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_STABLECOINS", "name": "MINT_BURN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 10, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 12, "name": "DECIMALS", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 13, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 14, "name": "TO_ADDRESS", "comment": null}, "AMOUNT_RAW_PRECISE": {"type": "TEXT", "index": 15, "name": "AMOUNT_RAW_PRECISE", "comment": null}, "AMOUNT_RAW": {"type": "FLOAT", "index": 16, "name": "AMOUNT_RAW", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 17, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 18, "name": "AMOUNT", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 19, "name": "TX_SUCCEEDED", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}, "STABLECOINS_MINT_BURN_ID": {"type": "TEXT", "index": 23, "name": "STABLECOINS_MINT_BURN_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:22UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 50519552, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 386746, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_stablecoins__mint_burn"}, "model.fsc_evm.silver_dex__quickswap_v4_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "QUICKSWAP_V4_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "TICK_LOWER": {"type": "FLOAT", "index": 10, "name": "TICK_LOWER", "comment": null}, "TICK_UPPER": {"type": "FLOAT", "index": 11, "name": "TICK_UPPER", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 12, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 13, "name": "TOKEN1", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 14, "name": "LIQUIDITY_PROVIDER", "comment": null}, "OWNER_ADDRESS": {"type": "TEXT", "index": 15, "name": "OWNER_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 16, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 17, "name": "RECEIVER", "comment": null}, "LIQUIDITY_AMOUNT_UNADJ": {"type": "FLOAT", "index": 18, "name": "LIQUIDITY_AMOUNT_UNADJ", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 19, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 20, "name": "AMOUNT1_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 24, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 25, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-18 20:37UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__quickswap_v4_pool_actions"}, "seed.fsc_evm.silver_dex__univ3_ovm1_legacy_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "UNIV3_OVM1_LEGACY_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"POOL_ADDRESS": {"type": "TEXT", "index": 1, "name": "POOL_ADDRESS", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 2, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 3, "name": "TOKEN1", "comment": null}, "FEE": {"type": "NUMBER", "index": 4, "name": "FEE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 8192, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 104, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver_dex__univ3_ovm1_legacy_pools"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS.03eefde7c0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOLS_POOL_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 4, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 6, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 10, "name": "POOL_ID", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 11, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 12, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 13, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 14, "name": "DECIMALS", "comment": null}, "FEE": {"type": "NUMBER", "index": 15, "name": "FEE", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 16, "name": "TICK_SPACING", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 17, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 18, "name": "TOKEN1", "comment": null}, "TOKEN2": {"type": "TEXT", "index": 19, "name": "TOKEN2", "comment": null}, "TOKEN3": {"type": "TEXT", "index": 20, "name": "TOKEN3", "comment": null}, "TOKEN4": {"type": "TEXT", "index": 21, "name": "TOKEN4", "comment": null}, "TOKEN5": {"type": "TEXT", "index": 22, "name": "TOKEN5", "comment": null}, "TOKEN6": {"type": "TEXT", "index": 23, "name": "TOKEN6", "comment": null}, "TOKEN7": {"type": "TEXT", "index": 24, "name": "TOKEN7", "comment": null}, "_ID": {"type": "TEXT", "index": 25, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOLS_ID": {"type": "TEXT", "index": 27, "name": "COMPLETE_DEX_LIQUIDITY_POOLS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS.03eefde7c0"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX.60803e14ca": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_STATS", "name": "CORE_METRICS_HOURLY_BLOCK_NUMBER_MAX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_TIMESTAMP_HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP_HOUR", "comment": null}, "BLOCK_NUMBER_MIN": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER_MIN", "comment": null}, "BLOCK_NUMBER_MAX": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER_MAX", "comment": null}, "BLOCK_COUNT": {"type": "NUMBER", "index": 4, "name": "BLOCK_COUNT", "comment": null}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "TRANSACTION_COUNT", "comment": null}, "TRANSACTION_COUNT_SUCCESS": {"type": "NUMBER", "index": 6, "name": "TRANSACTION_COUNT_SUCCESS", "comment": null}, "TRANSACTION_COUNT_FAILED": {"type": "NUMBER", "index": 7, "name": "TRANSACTION_COUNT_FAILED", "comment": null}, "UNIQUE_FROM_COUNT": {"type": "NUMBER", "index": 8, "name": "UNIQUE_FROM_COUNT", "comment": null}, "UNIQUE_TO_COUNT": {"type": "NUMBER", "index": 9, "name": "UNIQUE_TO_COUNT", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 10, "name": "TOTAL_FEES", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CORE_METRICS_HOURLY_ID": {"type": "TEXT", "index": 12, "name": "CORE_METRICS_HOURLY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX.60803e14ca"}, "test.fsc_evm.not_null_admin__dim_variables_DEFAULT_VALUE.5be079ad3d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ADMIN", "name": "DIM_VARIABLES_DEFAULT_VALUE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PACKAGE": {"type": "TEXT", "index": 1, "name": "PACKAGE", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 2, "name": "CATEGORY", "comment": null}, "KEY": {"type": "TEXT", "index": 3, "name": "KEY", "comment": null}, "DEFAULT_VALUE": {"type": "TEXT", "index": 4, "name": "DEFAULT_VALUE", "comment": null}, "DEFAULT_TYPE": {"type": "TEXT", "index": 5, "name": "DEFAULT_TYPE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DIM_VARIABLES_ID": {"type": "TEXT", "index": 7, "name": "DIM_VARIABLES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_admin__dim_variables_DEFAULT_VALUE.5be079ad3d"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent__INSERTED_TIMESTAMP__hour__2.e62a731dc8": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "TRANSACTIONS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent__INSERTED_TIMESTAMP__hour__2.e62a731dc8"}, "model.fsc_evm.silver_lending__aave_deposits": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "AAVE_DEPOSITS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 10, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 11, "name": "AMOUNT_UNADJ", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 12, "name": "DEPOSITOR", "comment": null}, "LENDING_POOL_CONTRACT": {"type": "TEXT", "index": 13, "name": "LENDING_POOL_CONTRACT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 14, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 15, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 16, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 19, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2200862720, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 20600346, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__aave_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_INSERTED_TIMESTAMP.561d35461f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_INSERTED_TIMESTAMP.561d35461f"}, "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_ASSET_ID.b4b221e9f2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_PROVIDER_ASSET_METADATA_ASSET_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": null}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 5, "name": "PLATFORM", "comment": null}, "PLATFORM_ID": {"type": "TEXT", "index": 6, "name": "PLATFORM_ID", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_PROVIDER_ASSET_METADATA_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_PROVIDER_ASSET_METADATA_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_ASSET_ID.b4b221e9f2"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_TX_HASH.9e5afe0aff": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 6, "name": "TRACE_ADDRESS", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "TO_ADDRESS", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": null}, "AMOUNT_PRECISE_RAW": {"type": "TEXT", "index": 11, "name": "AMOUNT_PRECISE_RAW", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 12, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "EZ_NATIVE_TRANSFERS_ID": {"type": "TEXT", "index": 17, "name": "EZ_NATIVE_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_TX_HASH.9e5afe0aff"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.165fc34eac": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "COMPLETE_NFT_SALES_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.165fc34eac"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TX_HASH.338d50a54c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 8, "name": "POOL_NAME", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 9, "name": "POOL_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 15, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 17, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 18, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 19, "name": "EVENT_INDEX", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 24, "name": "TOKEN_IN", "comment": null}, "TOKEN_IN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IN_IS_VERIFIED", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 26, "name": "TOKEN_OUT", "comment": null}, "TOKEN_OUT_IS_VERIFIED": {"type": "BOOLEAN", "index": 27, "name": "TOKEN_OUT_IS_VERIFIED", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 28, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 29, "name": "SYMBOL_OUT", "comment": null}, "DECIMALS_IN": {"type": "NUMBER", "index": 30, "name": "DECIMALS_IN", "comment": null}, "DECIMALS_OUT": {"type": "NUMBER", "index": 31, "name": "DECIMALS_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 32, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_SWAPS_ID": {"type": "TEXT", "index": 34, "name": "COMPLETE_DEX_SWAPS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 35, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 37, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TX_HASH.338d50a54c"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.8a6b8eb72c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_6_SALES_PLATFORM_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.8a6b8eb72c"}, "test.polygon_models.not_null_silver_olas__registry_metadata_complete_CONTRACT_ADDRESS.2a0b0f82cb": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "REGISTRY_METADATA_COMPLETE_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"NAME": {"type": "TEXT", "index": 1, "name": "NAME", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 2, "name": "DESCRIPTION", "comment": null}, "REGISTRY_ID": {"type": "NUMBER", "index": 3, "name": "REGISTRY_ID", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "REGISTRY_TYPE": {"type": "TEXT", "index": 5, "name": "REGISTRY_TYPE", "comment": null}, "TRAIT_TYPE": {"type": "TEXT", "index": 6, "name": "TRAIT_TYPE", "comment": null}, "TRAIT_VALUE": {"type": "TEXT", "index": 7, "name": "TRAIT_VALUE", "comment": null}, "CODE_URI_LINK": {"type": "TEXT", "index": 8, "name": "CODE_URI_LINK", "comment": null}, "IMAGE_LINK": {"type": "TEXT", "index": 9, "name": "IMAGE_LINK", "comment": null}, "AGENT_IDS": {"type": "ARRAY", "index": 10, "name": "AGENT_IDS", "comment": null}, "REGISTRY_METADATA_ID": {"type": "TEXT", "index": 11, "name": "REGISTRY_METADATA_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__registry_metadata_complete_CONTRACT_ADDRESS.2a0b0f82cb"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_BLOCK_NUMBER__NUMBER__FLOAT.a26946ebdc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_BLOCK_NUMBER__NUMBER__FLOAT.a26946ebdc"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.8d40d2780e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_4_SALES_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.8d40d2780e"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX__NUMBER__FLOAT.5f8ab0b092": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER_STATS", "name": "CORE_METRICS_HOURLY_BLOCK_NUMBER_MAX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX__NUMBER__FLOAT.5f8ab0b092"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_BLOCK_NUMBER.a12c696749": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_BLOCK_NUMBER.a12c696749"}, "model.fsc_evm.silver_dex__quickswap_v4_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "QUICKSWAP_V4_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 6, "name": "EVENT_NAME", "comment": null}, "TOKEN0_ADDRESS": {"type": "TEXT", "index": 7, "name": "TOKEN0_ADDRESS", "comment": null}, "TOKEN1_ADDRESS": {"type": "TEXT", "index": 8, "name": "TOKEN1_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 14, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-18 20:32UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__quickswap_v4_pools"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_CONTRACT_ADDRESS.572c2ff2c0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_RECENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 7, "name": "BALANCE_HEX", "comment": null}, "BALANCE_RAW": {"type": "NUMBER", "index": 8, "name": "BALANCE_RAW", "comment": null}, "BALANCE_PRECISE": {"type": "TEXT", "index": 9, "name": "BALANCE_PRECISE", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 10, "name": "BALANCE", "comment": null}, "BALANCE_USD": {"type": "FLOAT", "index": 11, "name": "BALANCE_USD", "comment": null}, "EZ_BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 12, "name": "EZ_BALANCES_ERC20_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_CONTRACT_ADDRESS.572c2ff2c0"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_INSERTED_TIMESTAMP.3f4ae6523c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_INSERTED_TIMESTAMP.3f4ae6523c"}, "model.fsc_evm.silver__confirm_blocks": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "CONFIRM_BLOCKS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 5, "name": "TX_HASH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CONFIRM_BLOCKS_ID": {"type": "TEXT", "index": 7, "name": "CONFIRM_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:15UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 390806920704, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(modified_timestamp::DATE, partition_key)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5935499250, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__confirm_blocks"}, "model.fsc_evm.bronze__transactions_fr": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "TRANSACTIONS_FR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 7, "name": "BLOCK_NUMBER", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__transactions_fr"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_GAS_USED__NUMBER__FLOAT.6540d38a1f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_GAS_USED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_GAS_USED__NUMBER__FLOAT.6540d38a1f"}, "model.fsc_evm.silver_dex__hashflow_v3_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "HASHFLOW_V3_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DEPLOYER_ADDRESS": {"type": "TEXT", "index": 6, "name": "DEPLOYER_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 7, "name": "POOL_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 8, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 9, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 10, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 11, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 12, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-23 12:30UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 7680, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 14, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__hashflow_v3_pools"}, "test.polygon_models.not_null_silver__element_sales_TOTAL_FEES_RAW.e744dc994a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_TOTAL_FEES_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_TOTAL_FEES_RAW.e744dc994a"}, "test.polygon_models.not_null_silver__tofunft_sales_PLATFORM_FEE_RAW.07e68bea2e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_PLATFORM_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_PLATFORM_FEE_RAW.07e68bea2e"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_BLOCK_TIMESTAMP.16acbec13e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 8, "name": "POOL_NAME", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 9, "name": "POOL_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 15, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 17, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 18, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 19, "name": "EVENT_INDEX", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 24, "name": "TOKEN_IN", "comment": null}, "TOKEN_IN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IN_IS_VERIFIED", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 26, "name": "TOKEN_OUT", "comment": null}, "TOKEN_OUT_IS_VERIFIED": {"type": "BOOLEAN", "index": 27, "name": "TOKEN_OUT_IS_VERIFIED", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 28, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 29, "name": "SYMBOL_OUT", "comment": null}, "DECIMALS_IN": {"type": "NUMBER", "index": 30, "name": "DECIMALS_IN", "comment": null}, "DECIMALS_OUT": {"type": "NUMBER", "index": 31, "name": "DECIMALS_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 32, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_SWAPS_ID": {"type": "TEXT", "index": 34, "name": "COMPLETE_DEX_SWAPS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 35, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 37, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_BLOCK_TIMESTAMP.16acbec13e"}, "model.fsc_evm.silver_dex__dackie_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "DACKIE_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 7, "name": "POOL_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "SENDER_ADDRESS": {"type": "TEXT", "index": 9, "name": "SENDER_ADDRESS", "comment": null}, "RECIPIENT_ADDRESS": {"type": "TEXT", "index": 10, "name": "RECIPIENT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 11, "name": "EVENT_INDEX", "comment": null}, "AMOUNT0_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "NUMBER", "index": 13, "name": "AMOUNT1_UNADJ", "comment": null}, "SQRTPRICEX96": {"type": "NUMBER", "index": 14, "name": "SQRTPRICEX96", "comment": null}, "LIQUIDITY": {"type": "NUMBER", "index": 15, "name": "LIQUIDITY", "comment": null}, "TICK": {"type": "NUMBER", "index": 16, "name": "TICK", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 17, "name": "TICK_SPACING", "comment": null}, "FEE": {"type": "NUMBER", "index": 18, "name": "FEE", "comment": null}, "PROTOCOLFEESTOKEN0": {"type": "NUMBER", "index": 19, "name": "PROTOCOLFEESTOKEN0", "comment": null}, "PROTOCOLFEESTOKEN1": {"type": "NUMBER", "index": 20, "name": "PROTOCOLFEESTOKEN1", "comment": null}, "TOKEN0_ADDRESS": {"type": "TEXT", "index": 21, "name": "TOKEN0_ADDRESS", "comment": null}, "TOKEN1_ADDRESS": {"type": "TEXT", "index": 22, "name": "TOKEN1_ADDRESS", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 23, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 24, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 25, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 26, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 27, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 28, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 29, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 30, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 31, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 32, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__dackie_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PRICE__NUMBER__FLOAT.b67f7f036b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "COMPLETE_NFT_SALES_PRICE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PRICE__NUMBER__FLOAT.b67f7f036b"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__blocks_recent_BLOCK_NUMBER.0239d065a4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "BLOCKS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__blocks_recent_BLOCK_NUMBER.0239d065a4"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_VERSION.bb6550ca9c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_VERSION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_VERSION.bb6550ca9c"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_TYPE.dd106bd70a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_TYPE.dd106bd70a"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.266e7a9bab": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TOFUNFT_SALES_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.266e7a9bab"}, "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_FEE.d2ec7dbdd0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_PLATFORM_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_FEE.d2ec7dbdd0"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_traces_recent_TX_HASH__TRACE_INDEX.4487675007": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "FACT_TRACES_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 2, "name": "TRACE_INDEX", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_traces_recent_TX_HASH__TRACE_INDEX.4487675007"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_MINER__0_xX_0_9a_fA_F_.81a710571a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_MINER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_MINER__0_xX_0_9a_fA_F_.81a710571a"}, "model.fsc_evm.github_actions__workflow_status": {"metadata": {"type": "VIEW", "schema": "GITHUB_ACTIONS", "name": "WORKFLOW_STATUS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"NAME": {"type": "TEXT", "index": 1, "name": "NAME", "comment": ""}, "STATUS": {"type": "TEXT", "index": 2, "name": "STATUS", "comment": ""}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "CREATED_AT", "comment": ""}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "UPDATED_AT", "comment": ""}, "RUN_STARTED_AT": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "RUN_STARTED_AT", "comment": ""}, "RUN_ATTEMPT": {"type": "TEXT", "index": 6, "name": "RUN_ATTEMPT", "comment": ""}, "RUN_NUMBER": {"type": "NUMBER", "index": 7, "name": "RUN_NUMBER", "comment": ""}, "RUN_MINUTES": {"type": "NUMBER", "index": 8, "name": "RUN_MINUTES", "comment": ""}, "ID": {"type": "NUMBER", "index": 9, "name": "ID", "comment": ""}, "WORKFLOW_ID": {"type": "NUMBER", "index": 10, "name": "WORKFLOW_ID", "comment": ""}, "HTML_URL": {"type": "TEXT", "index": 11, "name": "HTML_URL", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.github_actions__workflow_status"}, "model.fsc_evm.github_actions__workflow_schedule": {"metadata": {"type": "BASE TABLE", "schema": "GITHUB_ACTIONS", "name": "WORKFLOW_SCHEDULE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TASK_NAME": {"type": "TEXT", "index": 1, "name": "TASK_NAME", "comment": null}, "WORKFLOW_NAME": {"type": "TEXT", "index": 2, "name": "WORKFLOW_NAME", "comment": null}, "CADENCE": {"type": "TEXT", "index": 3, "name": "CADENCE", "comment": null}, "CRON_SCHEDULE": {"type": "TEXT", "index": 4, "name": "CRON_SCHEDULE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2560, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 16, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.github_actions__workflow_schedule"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_NETWORK.f4601bdcec": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_NETWORK", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_NETWORK.f4601bdcec"}, "model.polygon_models.silver__seaport_1_4_sales": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "SEAPORT_1_4_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": ""}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": ""}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": ""}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": ""}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": ""}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": ""}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": ""}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": ""}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": ""}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": ""}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": ""}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": ""}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": ""}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": ""}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": ""}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": ""}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": ""}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": ""}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": ""}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": ""}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": ""}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": ""}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": ""}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": ""}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": ""}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": ""}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": ""}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": ""}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:34UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1242415104, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1172394, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__seaport_1_4_sales"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.59a9a57567": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.59a9a57567"}, "test.polygon_models.not_null_silver__complete_nft_sales_CREATOR_FEE.2bcba1a012": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_CREATOR_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_CREATOR_FEE.2bcba1a012"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.1a632cfd6e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "ELEMENT_SALES_BUYER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.1a632cfd6e"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_TX_HASH.d65cfc264e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_TX_HASH.d65cfc264e"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP.3996175adf": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP.3996175adf"}, "test.fsc_evm.not_null_admin__dim_variables_DEFAULT_TYPE.ec8ae8bee2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ADMIN", "name": "DIM_VARIABLES_DEFAULT_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PACKAGE": {"type": "TEXT", "index": 1, "name": "PACKAGE", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 2, "name": "CATEGORY", "comment": null}, "KEY": {"type": "TEXT", "index": 3, "name": "KEY", "comment": null}, "DEFAULT_VALUE": {"type": "TEXT", "index": 4, "name": "DEFAULT_VALUE", "comment": null}, "DEFAULT_TYPE": {"type": "TEXT", "index": 5, "name": "DEFAULT_TYPE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DIM_VARIABLES_ID": {"type": "TEXT", "index": 7, "name": "DIM_VARIABLES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_admin__dim_variables_DEFAULT_TYPE.ec8ae8bee2"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP__hour__2.677cfb4387": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP__hour__2.677cfb4387"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_ORIGIN_FROM_ADDRESS.bc94384fb7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_ORIGIN_FROM_ADDRESS.bc94384fb7"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP.94fcac91b2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP.94fcac91b2"}, "test.fsc_evm.not_null_silver__balances_native_daily_ADDRESS.525dc24b09": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BALANCES_NATIVE_DAILY_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 4, "name": "BALANCE_HEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BALANCES_NATIVE_DAILY_ID": {"type": "TEXT", "index": 6, "name": "BALANCES_NATIVE_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__balances_native_daily_ADDRESS.525dc24b09"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PROTOCOL_MARKET.5ba1c58d76": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_PROTOCOL_MARKET", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PROTOCOL_MARKET.5ba1c58d76"}, "model.fsc_evm.silver_lending__aave_ethereum_flashloans": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "AAVE_ETHEREUM_FLASHLOANS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 10, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 11, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "MARKET": {"type": "TEXT", "index": 13, "name": "MARKET", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 16, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 19, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 21, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__aave_ethereum_flashloans"}, "test.fsc_evm.not_null_silver__balances_erc20_daily_CONTRACT_ADDRESS.43c650bfd7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BALANCES_ERC20_DAILY_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 5, "name": "BALANCE_HEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 7, "name": "BALANCES_ERC20_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__balances_erc20_daily_CONTRACT_ADDRESS.43c650bfd7"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_NFT_ADDRESS.9e5ab44cbd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_NFT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_NFT_ADDRESS.9e5ab44cbd"}, "test.fsc_evm.not_null_silver__balances_native_daily_BALANCE_HEX.ddd4dba7b9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BALANCES_NATIVE_DAILY_BALANCE_HEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 4, "name": "BALANCE_HEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BALANCES_NATIVE_DAILY_ID": {"type": "TEXT", "index": 6, "name": "BALANCES_NATIVE_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__balances_native_daily_BALANCE_HEX.ddd4dba7b9"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TX_FEE__NUMBER__FLOAT.a50c15b6b4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "COMPLETE_NFT_SALES_TX_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TX_FEE__NUMBER__FLOAT.a50c15b6b4"}, "test.fsc_evm.not_null_admin__fact_variables_VALUE.80c7190528": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ADMIN", "name": "FACT_VARIABLES_VALUE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PROJECT": {"type": "TEXT", "index": 1, "name": "PROJECT", "comment": null}, "KEY": {"type": "TEXT", "index": 2, "name": "KEY", "comment": null}, "VALUE": {"type": "TEXT", "index": 3, "name": "VALUE", "comment": null}, "PARENT_KEY": {"type": "TEXT", "index": 4, "name": "PARENT_KEY", "comment": null}, "FACT_VARIABLES_ID": {"type": "TEXT", "index": 5, "name": "FACT_VARIABLES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_admin__fact_variables_VALUE.80c7190528"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TOKEN_ADDRESS.cfb727a837": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TOKEN_ADDRESS.cfb727a837"}, "test.fsc_evm.not_null_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID.aebeb06687": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BALANCES_ERC20_DAILY_BALANCES_ERC20_DAILY_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 5, "name": "BALANCE_HEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 7, "name": "BALANCES_ERC20_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID.aebeb06687"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_BLOCK_NUMBER__NUMBER__FLOAT.fdf0d994a1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "COMPLETE_NFT_SALES_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_BLOCK_NUMBER__NUMBER__FLOAT.fdf0d994a1"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b467671a96": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "DECODED_LOGS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b467671a96"}, "model.fsc_evm.silver_dex__balancer_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "BALANCER_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "POOL_ADDRESS", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 11, "name": "POOL_ID", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 12, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 13, "name": "TOKEN1", "comment": null}, "TOKEN2": {"type": "TEXT", "index": 14, "name": "TOKEN2", "comment": null}, "TOKEN3": {"type": "TEXT", "index": 15, "name": "TOKEN3", "comment": null}, "TOKEN4": {"type": "TEXT", "index": 16, "name": "TOKEN4", "comment": null}, "TOKEN5": {"type": "TEXT", "index": 17, "name": "TOKEN5", "comment": null}, "TOKEN6": {"type": "TEXT", "index": 18, "name": "TOKEN6", "comment": null}, "TOKEN7": {"type": "TEXT", "index": 19, "name": "TOKEN7", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 20, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 21, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 22, "name": "RECEIVER", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 23, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 24, "name": "AMOUNT1_UNADJ", "comment": null}, "AMOUNT2_UNADJ": {"type": "FLOAT", "index": 25, "name": "AMOUNT2_UNADJ", "comment": null}, "AMOUNT3_UNADJ": {"type": "FLOAT", "index": 26, "name": "AMOUNT3_UNADJ", "comment": null}, "AMOUNT4_UNADJ": {"type": "FLOAT", "index": 27, "name": "AMOUNT4_UNADJ", "comment": null}, "AMOUNT5_UNADJ": {"type": "FLOAT", "index": 28, "name": "AMOUNT5_UNADJ", "comment": null}, "AMOUNT6_UNADJ": {"type": "FLOAT", "index": 29, "name": "AMOUNT6_UNADJ", "comment": null}, "AMOUNT7_UNADJ": {"type": "FLOAT", "index": 30, "name": "AMOUNT7_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 31, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 32, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 33, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 34, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:36UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 96116736, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 702018, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__balancer_pool_actions"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID.aa63995b75": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_EZ_NFT_TRANSFERS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 1, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 09:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID.aa63995b75"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_FAILED.4fe1d21e07": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_STATS", "name": "CORE_METRICS_HOURLY_TRANSACTION_COUNT_FAILED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_TIMESTAMP_HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP_HOUR", "comment": null}, "BLOCK_NUMBER_MIN": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER_MIN", "comment": null}, "BLOCK_NUMBER_MAX": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER_MAX", "comment": null}, "BLOCK_COUNT": {"type": "NUMBER", "index": 4, "name": "BLOCK_COUNT", "comment": null}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "TRANSACTION_COUNT", "comment": null}, "TRANSACTION_COUNT_SUCCESS": {"type": "NUMBER", "index": 6, "name": "TRANSACTION_COUNT_SUCCESS", "comment": null}, "TRANSACTION_COUNT_FAILED": {"type": "NUMBER", "index": 7, "name": "TRANSACTION_COUNT_FAILED", "comment": null}, "UNIQUE_FROM_COUNT": {"type": "NUMBER", "index": 8, "name": "UNIQUE_FROM_COUNT", "comment": null}, "UNIQUE_TO_COUNT": {"type": "NUMBER", "index": 9, "name": "UNIQUE_TO_COUNT", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 10, "name": "TOTAL_FEES", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CORE_METRICS_HOURLY_ID": {"type": "TEXT", "index": 12, "name": "CORE_METRICS_HOURLY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_FAILED.4fe1d21e07"}, "model.fsc_evm.silver__decoded_logs": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DECODED_LOGS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": null}, "DECODED_DATA": {"type": "VARIANT", "index": 6, "name": "DECODED_DATA", "comment": null}, "TRANSFORMED": {"type": "VARIANT", "index": 7, "name": "TRANSFORMED", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 8, "name": "DECODED_FLAT", "comment": null}, "DECODED_LOGS_ID": {"type": "TEXT", "index": 9, "name": "DECODED_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:41UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 6008642365952, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(modified_timestamp::date, round(block_number, -3))", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 24487354039, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__decoded_logs"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_CURRENCY_ADDRESS.dbcea46a1f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_CURRENCY_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_CURRENCY_ADDRESS.dbcea46a1f"}, "model.fsc_evm.silver_lending__complete_lending_repayments": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": ""}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": ""}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": ""}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": ""}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": ""}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": ""}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": ""}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": ""}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": ""}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 764624384, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE, platform)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 3094447, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS.7f5d57c7b9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS.7f5d57c7b9"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__traces_recent_TRACES_ID.f53f7f25ae": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "TRACES_RECENT_TRACES_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TRACES_ID": {"type": "TEXT", "index": 1, "name": "TRACES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__traces_recent_TRACES_ID.f53f7f25ae"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_TX_POSITION__NUMBER__FLOAT.6c3cd6ac49": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_TRACES_FULL_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_TX_POSITION__NUMBER__FLOAT.6c3cd6ac49"}, "model.fsc_evm.silver_dex__camelot_v2_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "CAMELOT_V2_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 6, "name": "EVENT_NAME", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 7, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 8, "name": "TOKEN1", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 14, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:03UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__camelot_v2_pools"}, "test.fsc_evm.unique_silver__complete_native_asset_metadata_COMPLETE_NATIVE_ASSET_METADATA_ID.d98ec00bc9": {"metadata": {"type": "BASE TABLE", "schema": "UNIQUE_SILVER", "name": "COMPLETE_NATIVE_ASSET_METADATA_COMPLETE_NATIVE_ASSET_METADATA_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"UNIQUE_FIELD": {"type": "TEXT", "index": 1, "name": "UNIQUE_FIELD", "comment": null}, "N_RECORDS": {"type": "NUMBER", "index": 2, "name": "N_RECORDS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.unique_silver__complete_native_asset_metadata_COMPLETE_NATIVE_ASSET_METADATA_ID.d98ec00bc9"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_BLOCK_NUMBER.306b0da6a0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:06UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_BLOCK_NUMBER.306b0da6a0"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PLATFORM_FEE__NUMBER__FLOAT.4db7a35a78": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "COMPLETE_NFT_SALES_PLATFORM_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PLATFORM_FEE__NUMBER__FLOAT.4db7a35a78"}, "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_BLOCK_NUMBER.4357645cb7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "CONFIRM_BLOCKS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 5, "name": "TX_HASH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CONFIRM_BLOCKS_ID": {"type": "TEXT", "index": 7, "name": "CONFIRM_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_BLOCK_NUMBER.4357645cb7"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_INPUT_DATA.eecd421993": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_INPUT_DATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_INPUT_DATA.eecd421993"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_CREATOR_FEE_RAW.60fe2808f3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_CREATOR_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_CREATOR_FEE_RAW.60fe2808f3"}, "model.fsc_evm.silver_dex__uniswap_v4_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "UNISWAP_V4_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 7, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 8, "name": "POOL_NAME", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 9, "name": "POOL_ID", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 10, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 11, "name": "TOKEN1", "comment": null}, "FEE": {"type": "NUMBER", "index": 12, "name": "FEE", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 13, "name": "TICK_SPACING", "comment": null}, "HOOK_ADDRESS": {"type": "TEXT", "index": 14, "name": "HOOK_ADDRESS", "comment": null}, "SQRTPRICEX96": {"type": "TEXT", "index": 15, "name": "SQRTPRICEX96", "comment": null}, "TICK": {"type": "FLOAT", "index": 16, "name": "TICK", "comment": null}, "DYNAMIC_FEES": {"type": "BOOLEAN", "index": 17, "name": "DYNAMIC_FEES", "comment": null}, "BEFOREINITIALIZE": {"type": "BOOLEAN", "index": 18, "name": "BEFOREINITIALIZE", "comment": null}, "AFTERINITIALIZE": {"type": "BOOLEAN", "index": 19, "name": "AFTERINITIALIZE", "comment": null}, "BEFOREADDLIQUIDITY": {"type": "BOOLEAN", "index": 20, "name": "BEFOREADDLIQUIDITY", "comment": null}, "AFTERADDLIQUIDITY": {"type": "BOOLEAN", "index": 21, "name": "AFTERADDLIQUIDITY", "comment": null}, "BEFOREREMOVELIQUIDITY": {"type": "BOOLEAN", "index": 22, "name": "BEFOREREMOVELIQUIDITY", "comment": null}, "AFTERREMOVELIQUIDITY": {"type": "BOOLEAN", "index": 23, "name": "AFTERREMOVELIQUIDITY", "comment": null}, "BEFORESWAP": {"type": "BOOLEAN", "index": 24, "name": "BEFORESWAP", "comment": null}, "AFTERSWAP": {"type": "BOOLEAN", "index": 25, "name": "AFTERSWAP", "comment": null}, "BEFOREDONATE": {"type": "BOOLEAN", "index": 26, "name": "BEFOREDONATE", "comment": null}, "AFTERDONATE": {"type": "BOOLEAN", "index": 27, "name": "AFTERDONATE", "comment": null}, "BEFORESWAPRETURNDELTA": {"type": "BOOLEAN", "index": 28, "name": "BEFORESWAPRETURNDELTA", "comment": null}, "AFTERSWAPRETURNDELTA": {"type": "BOOLEAN", "index": 29, "name": "AFTERSWAPRETURNDELTA", "comment": null}, "AFTERADDLIQUIDITYRETURNDELTA": {"type": "BOOLEAN", "index": 30, "name": "AFTERADDLIQUIDITYRETURNDELTA", "comment": null}, "AFTERREMOVELIQUIDITYRETURNDELTA": {"type": "BOOLEAN", "index": 31, "name": "AFTERREMOVELIQUIDITYRETURNDELTA", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 32, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 33, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 34, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 35, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 36, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 37, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:06UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__uniswap_v4_pools"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_V.a647e39488": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_V", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_V.a647e39488"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_V.c6c8b50102": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_V", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_V.c6c8b50102"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_traces_full_TX_HASH__TRACE_INDEX.7f6d6a8ebe": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "FACT_TRACES_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 2, "name": "TRACE_INDEX", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 11:37UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_traces_full_TX_HASH__TRACE_INDEX.7f6d6a8ebe"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_SIZE__NUMBER__FLOAT.a537b42b6c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_FULL_SIZE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_SIZE__NUMBER__FLOAT.a537b42b6c"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_event_logs_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.c6b135bb12": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_OLAS", "name": "SERVICE_EVENT_LOGS_MULTISIG_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_event_logs_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.c6b135bb12"}, "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID.ec8360ef95": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "CONFIRM_BLOCKS_RECENT_CONFIRM_BLOCKS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 5, "name": "TX_HASH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CONFIRM_BLOCKS_ID": {"type": "TEXT", "index": 7, "name": "CONFIRM_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID.ec8360ef95"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP__hour__2.7139c09429": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:50UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP__hour__2.7139c09429"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_POSITION.cd5aab01f0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_POSITION.cd5aab01f0"}, "model.fsc_evm.silver__verified_abis": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "VERIFIED_ABIS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "DATA": {"type": "VARIANT", "index": 2, "name": "DATA", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ABI_SOURCE": {"type": "TEXT", "index": 4, "name": "ABI_SOURCE", "comment": null}, "DISCORD_USERNAME": {"type": "TEXT", "index": 5, "name": "DISCORD_USERNAME", "comment": null}, "ABI_HASH": {"type": "TEXT", "index": 6, "name": "ABI_HASH", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 08:18UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 841152000, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 669843, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__verified_abis"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_SYMBOL.664ff4bcfa": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_RECENT_SYMBOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 7, "name": "BALANCE_HEX", "comment": null}, "BALANCE_RAW": {"type": "NUMBER", "index": 8, "name": "BALANCE_RAW", "comment": null}, "BALANCE_PRECISE": {"type": "TEXT", "index": 9, "name": "BALANCE_PRECISE", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 10, "name": "BALANCE", "comment": null}, "BALANCE_USD": {"type": "FLOAT", "index": 11, "name": "BALANCE_USD", "comment": null}, "EZ_BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 12, "name": "EZ_BALANCES_ERC20_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_SYMBOL.664ff4bcfa"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.b6d1df5615": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_5_SALES_PLATFORM_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.b6d1df5615"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_SENDER.64ca378992": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_SENDER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 15, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 19, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 20, "name": "TOKEN_SYMBOL", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 21, "name": "TOKEN_DECIMALS", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 23, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 24, "name": "AMOUNT_USD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IS_VERIFIED", "comment": null}, "_ID": {"type": "TEXT", "index": 26, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_BRIDGE_ACTIVITY_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_BRIDGE_ACTIVITY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_SENDER.64ca378992"}, "model.fsc_evm.admin__fact_variables": {"metadata": {"type": "VIEW", "schema": "ADMIN", "name": "FACT_VARIABLES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PROJECT": {"type": "TEXT", "index": 1, "name": "PROJECT", "comment": ""}, "KEY": {"type": "TEXT", "index": 2, "name": "KEY", "comment": ""}, "VALUE": {"type": "TEXT", "index": 3, "name": "VALUE", "comment": ""}, "PARENT_KEY": {"type": "TEXT", "index": 4, "name": "PARENT_KEY", "comment": ""}, "FACT_VARIABLES_ID": {"type": "TEXT", "index": 5, "name": "FACT_VARIABLES_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.admin__fact_variables"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_SENDER.2834260b51": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_SENDER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_SENDER.2834260b51"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.e48a268383": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.e48a268383"}, "test.polygon_models.not_null_silver__complete_nft_sales_EVENT_TYPE.b71abf8ef9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_EVENT_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_EVENT_TYPE.b71abf8ef9"}, "test.fsc_evm.not_null_test_silver__created_contracts_recent__INSERTED_TIMESTAMP.f3206a6f1a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "CREATED_CONTRACTS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CREATED_CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CREATED_CONTRACT_ADDRESS", "comment": null}, "CREATOR_ADDRESS": {"type": "TEXT", "index": 5, "name": "CREATOR_ADDRESS", "comment": null}, "CREATED_CONTRACT_INPUT": {"type": "TEXT", "index": 6, "name": "CREATED_CONTRACT_INPUT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CREATED_CONTRACTS_ID": {"type": "TEXT", "index": 8, "name": "CREATED_CONTRACTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 11, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__created_contracts_recent__INSERTED_TIMESTAMP.f3206a6f1a"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.bc16a42d4e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "TRACES_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.bc16a42d4e"}, "seed.fsc_evm.silver_bridge__wormhole_chain_id_seed": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "WORMHOLE_CHAIN_ID_SEED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CHAIN_NAME": {"type": "TEXT", "index": 1, "name": "CHAIN_NAME", "comment": null}, "WORMHOLE_CHAIN_ID": {"type": "NUMBER", "index": 2, "name": "WORMHOLE_CHAIN_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2048, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 66, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver_bridge__wormhole_chain_id_seed"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.691866e8c0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "TRACES_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.691866e8c0"}, "test.fsc_evm.not_null_silver__complete_token_prices_MODIFIED_TIMESTAMP.74882978f6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_TOKEN_PRICES_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 3, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 5, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 6, "name": "DECIMALS", "comment": null}, "PRICE": {"type": "FLOAT", "index": 7, "name": "PRICE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN", "comment": null}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 9, "name": "BLOCKCHAIN_NAME", "comment": null}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 10, "name": "BLOCKCHAIN_ID", "comment": null}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 11, "name": "IS_IMPUTED", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 12, "name": "IS_DEPRECATED", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 13, "name": "IS_VERIFIED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 14, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 15, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_TOKEN_PRICES_ID": {"type": "TEXT", "index": 19, "name": "COMPLETE_TOKEN_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 20, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_token_prices_MODIFIED_TIMESTAMP.74882978f6"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_FROM_ADDRESS.6bea14a19a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_RECENT_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 6, "name": "TRACE_ADDRESS", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "TO_ADDRESS", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": null}, "AMOUNT_PRECISE_RAW": {"type": "TEXT", "index": 11, "name": "AMOUNT_PRECISE_RAW", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 12, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "EZ_NATIVE_TRANSFERS_ID": {"type": "TEXT", "index": 17, "name": "EZ_NATIVE_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_FROM_ADDRESS.6bea14a19a"}, "model.fsc_evm.silver_bridge__synapse_token_bridge": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "SYNAPSE_TOKEN_BRIDGE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 10, "name": "EVENT_REMOVED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 11, "name": "TX_SUCCEEDED", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 12, "name": "BRIDGE_ADDRESS", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 13, "name": "AMOUNT", "comment": null}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 15, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "NUMBER", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 18, "name": "TOKEN_ADDRESS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 22, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 23, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:30UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 30470144, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 177856, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__synapse_token_bridge"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TX_FEE__NUMBER__FLOAT.5854e80011": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_6_SALES_TX_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TX_FEE__NUMBER__FLOAT.5854e80011"}, "model.fsc_evm.silver_dex__pancakeswap_v2_ss_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "PANCAKESWAP_V2_SS_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 7, "name": "POOL_ADDRESS", "comment": null}, "TOKENA": {"type": "TEXT", "index": 8, "name": "TOKENA", "comment": null}, "TOKENB": {"type": "TEXT", "index": 9, "name": "TOKENB", "comment": null}, "TOKENC": {"type": "TEXT", "index": 10, "name": "TOKENC", "comment": null}, "LP": {"type": "TEXT", "index": 11, "name": "LP", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 12, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 13, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 14, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 15, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:06UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__pancakeswap_v2_ss_pools"}, "model.fsc_evm.silver_bridge__hop_ammwrapper": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "HOP_AMMWRAPPER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"READ_OUTPUT": {"type": "VARIANT", "index": 1, "name": "READ_OUTPUT", "comment": ""}, "READ_ID": {"type": "TEXT", "index": 2, "name": "READ_ID", "comment": ""}, "READ_RESULT": {"type": "TEXT", "index": 3, "name": "READ_RESULT", "comment": ""}, "READ_ID_OBJECT": {"type": "ARRAY", "index": 4, "name": "READ_ID_OBJECT", "comment": ""}, "FUNCTION_SIG": {"type": "TEXT", "index": 5, "name": "FUNCTION_SIG", "comment": ""}, "FUNCTION_NAME": {"type": "TEXT", "index": 6, "name": "FUNCTION_NAME", "comment": ""}, "FUNCTION_INPUT": {"type": "NUMBER", "index": 7, "name": "FUNCTION_INPUT", "comment": ""}, "DATA": {"type": "TEXT", "index": 8, "name": "DATA", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 9, "name": "BLOCK_NUMBER", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": ""}, "AMM_WRAPPER_ADDRESS": {"type": "TEXT", "index": 11, "name": "AMM_WRAPPER_ADDRESS", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:29UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 86016, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 10, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__hop_ammwrapper"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.72cac3a65f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MOOAR_SALES_TOTAL_PRICE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.72cac3a65f"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_TOTAL_FEES_RAW.90afed2683": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_TOTAL_FEES_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_TOTAL_FEES_RAW.90afed2683"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_TO_ADDRESS__0_xX_0_9a_fA_F_.bd70190cf6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_TO_ADDRESS__0_xX_0_9a_fA_F_.bd70190cf6"}, "model.fsc_evm.silver_dex__quickswap_v2_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "QUICKSWAP_V2_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "POOL_ADDRESS", "comment": null}, "RECIPIENT": {"type": "TEXT", "index": 11, "name": "RECIPIENT", "comment": null}, "SENDER": {"type": "TEXT", "index": 12, "name": "SENDER", "comment": null}, "TICK": {"type": "FLOAT", "index": 13, "name": "TICK", "comment": null}, "LIQUIDITY": {"type": "FLOAT", "index": 14, "name": "LIQUIDITY", "comment": null}, "TOKEN0_ADDRESS": {"type": "TEXT", "index": 15, "name": "TOKEN0_ADDRESS", "comment": null}, "TOKEN1_ADDRESS": {"type": "TEXT", "index": 16, "name": "TOKEN1_ADDRESS", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 17, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 18, "name": "AMOUNT1_UNADJ", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "FLOAT", "index": 19, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "FLOAT", "index": 20, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 21, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 22, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 26, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 27, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:37UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 7605209088, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 60589150, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__quickswap_v2_swaps"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_PLATFORM.129bb6aeb5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_PLATFORM", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_PLATFORM.129bb6aeb5"}, "test.polygon_models.not_null_silver_olas__create_service_multisigs_BLOCK_NUMBER.69d215b1bf": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "CREATE_SERVICE_MULTISIGS_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 9, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 10, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 11, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 12, "name": "TOPIC_3", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 13, "name": "EVENT_NAME", "comment": null}, "DATA": {"type": "TEXT", "index": 14, "name": "DATA", "comment": null}, "SEGMENTED_DATA": {"type": "ARRAY", "index": 15, "name": "SEGMENTED_DATA", "comment": null}, "ID": {"type": "NUMBER", "index": 16, "name": "ID", "comment": null}, "MULTISIG_ADDRESS": {"type": "TEXT", "index": 17, "name": "MULTISIG_ADDRESS", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 18, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 19, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CREATE_SERVICE_MULTISIGS_ID": {"type": "TEXT", "index": 20, "name": "CREATE_SERVICE_MULTISIGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 23, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__create_service_multisigs_BLOCK_NUMBER.69d215b1bf"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_TX_POSITION__NUMBER__FLOAT.4b5af30d3b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_TX_POSITION__NUMBER__FLOAT.4b5af30d3b"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TOKEN_SYMBOL.893469d047": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_TOKEN_SYMBOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TOKEN_SYMBOL.893469d047"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_TYPE.d15c335bcb": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_TYPE.d15c335bcb"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.be6db6029d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.be6db6029d"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.5e09839047": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_5_SALES_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.5e09839047"}, "test.polygon_models.not_null_silver_olas__create_service_multisigs_TX_HASH.cfb739aeec": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "CREATE_SERVICE_MULTISIGS_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 9, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 10, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 11, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 12, "name": "TOPIC_3", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 13, "name": "EVENT_NAME", "comment": null}, "DATA": {"type": "TEXT", "index": 14, "name": "DATA", "comment": null}, "SEGMENTED_DATA": {"type": "ARRAY", "index": 15, "name": "SEGMENTED_DATA", "comment": null}, "ID": {"type": "NUMBER", "index": 16, "name": "ID", "comment": null}, "MULTISIG_ADDRESS": {"type": "TEXT", "index": 17, "name": "MULTISIG_ADDRESS", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 18, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 19, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CREATE_SERVICE_MULTISIGS_ID": {"type": "TEXT", "index": 20, "name": "CREATE_SERVICE_MULTISIGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 23, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__create_service_multisigs_TX_HASH.cfb739aeec"}, "model.fsc_evm.silver_dex__pharaoh_v1_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "PHARAOH_V1_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 10, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 11, "name": "TOKEN1", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 12, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 15, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 16, "name": "AMOUNT1_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 19, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-21 18:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__pharaoh_v1_pool_actions"}, "model.polygon_models.silver_olas__service_registrations": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_OLAS", "name": "SERVICE_REGISTRATIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": ""}, "OWNER_ADDRESS": {"type": "TEXT", "index": 10, "name": "OWNER_ADDRESS", "comment": ""}, "MULTISIG_ADDRESS": {"type": "TEXT", "index": 11, "name": "MULTISIG_ADDRESS", "comment": ""}, "SERVICE_ID": {"type": "NUMBER", "index": 12, "name": "SERVICE_ID", "comment": ""}, "CONFIG_HASH": {"type": "TEXT", "index": 13, "name": "CONFIG_HASH", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 14, "name": "_LOG_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "SERVICE_REGISTRATION_ID": {"type": "TEXT", "index": 16, "name": "SERVICE_REGISTRATION_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 19, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 8192, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver_olas__service_registrations"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.e6a47f2796": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_5_SALES_CREATOR_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.e6a47f2796"}, "model.fsc_evm.bronze__decoded_logs_fr": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "DECODED_LOGS_FR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "ID": {"type": "TEXT", "index": 2, "name": "ID", "comment": ""}, "DATA": {"type": "VARIANT", "index": 3, "name": "DATA", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "_PARTITION_BY_BLOCK_NUMBER": {"type": "NUMBER", "index": 7, "name": "_PARTITION_BY_BLOCK_NUMBER", "comment": ""}, "_PARTITION_BY_CREATED_DATE": {"type": "DATE", "index": 8, "name": "_PARTITION_BY_CREATED_DATE", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__decoded_logs_fr"}, "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "KYBERSWAP_V2_ELASTIC_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "FEE": {"type": "NUMBER", "index": 10, "name": "FEE", "comment": null}, "FEE_PERCENT": {"type": "FLOAT", "index": 11, "name": "FEE_PERCENT", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 12, "name": "TICK_SPACING", "comment": null}, "INIT_TICK": {"type": "TEXT", "index": 13, "name": "INIT_TICK", "comment": null}, "TICK_LOWER": {"type": "FLOAT", "index": 14, "name": "TICK_LOWER", "comment": null}, "TICK_UPPER": {"type": "FLOAT", "index": 15, "name": "TICK_UPPER", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 16, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 17, "name": "TOKEN1", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 18, "name": "LIQUIDITY_PROVIDER", "comment": null}, "OWNER_ADDRESS": {"type": "TEXT", "index": 19, "name": "OWNER_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 20, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 21, "name": "RECEIVER", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 23, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 24, "name": "AMOUNT1_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 25, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 26, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 27, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 28, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 29, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-21 18:41UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 10063360, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 83751, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pool_actions"}, "model.fsc_evm.silver_dex__aerodrome_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "AERODROME_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "AMOUNT0IN": {"type": "NUMBER", "index": 12, "name": "AMOUNT0IN", "comment": null}, "AMOUNT1IN": {"type": "NUMBER", "index": 13, "name": "AMOUNT1IN", "comment": null}, "AMOUNT0OUT": {"type": "NUMBER", "index": 14, "name": "AMOUNT0OUT", "comment": null}, "AMOUNT1OUT": {"type": "NUMBER", "index": 15, "name": "AMOUNT1OUT", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 16, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 17, "name": "TOKEN1", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 18, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 19, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 20, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 21, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 22, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 23, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 24, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 25, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__aerodrome_swaps"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID.1832bc6fd4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "BALANCES_NATIVE_DAILY_BALANCES_NATIVE_DAILY_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BALANCES_NATIVE_DAILY_ID": {"type": "TEXT", "index": 1, "name": "BALANCES_NATIVE_DAILY_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID.1832bc6fd4"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.8b75c81a0d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "ELEMENT_SALES_TOTAL_FEES_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.8b75c81a0d"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE.e5b387a31d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_VALUE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE.e5b387a31d"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TX_FEE__NUMBER__FLOAT.ee212825cc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_5_SALES_TX_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TX_FEE__NUMBER__FLOAT.ee212825cc"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_BLOCK_NUMBER__NUMBER.8148040748": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_BLOCK_NUMBER__NUMBER.8148040748"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_NETWORK.34f87743f3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_NETWORK", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_NETWORK.34f87743f3"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_SENDER__0_xX_0_9a_fA_F_.58a39f68d2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_SENDER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_SENDER__0_xX_0_9a_fA_F_.58a39f68d2"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_TX_HASH.4ef964ba26": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_TX_HASH.4ef964ba26"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS.bc086d9e05": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS.bc086d9e05"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full_MODIFIED_TIMESTAMP__hour__2.ba9359c374": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "BLOCKS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full_MODIFIED_TIMESTAMP__hour__2.ba9359c374"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_INSERTED_TIMESTAMP__hour__2.9f370ce025": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_INSERTED_TIMESTAMP__hour__2.9f370ce025"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_liquidations_BLOCK_TIMESTAMP__day__30.161c04de84": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_liquidations_BLOCK_TIMESTAMP__day__30.161c04de84"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_TOKENID.8353c1c5b8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_TOKENID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_TOKENID.8353c1c5b8"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP__hour__3.cb9fd0826a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP__hour__3.cb9fd0826a"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_GAS_LIMIT.0570943628": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_GAS_LIMIT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_GAS_LIMIT.0570943628"}, "test.fsc_evm.not_null_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID.96649214c0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BALANCES_NATIVE_DAILY_BALANCES_NATIVE_DAILY_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 4, "name": "BALANCE_HEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BALANCES_NATIVE_DAILY_ID": {"type": "TEXT", "index": 6, "name": "BALANCES_NATIVE_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID.96649214c0"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__service_registrations__LOG_ID.2abbc6e68b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_OLAS", "name": "SERVICE_REGISTRATIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__service_registrations__LOG_ID.2abbc6e68b"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_TX_POSITION__NUMBER__FLOAT.473e47a660": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_TX_POSITION__NUMBER__FLOAT.473e47a660"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TOKEN_ADDRESS.d31d215fbe": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TOKEN_ADDRESS.d31d215fbe"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS.492297495d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS.492297495d"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_bridge__complete_bridge_activity_MODIFIED_TIMESTAMP__day__3.1fb2addfd1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_bridge__complete_bridge_activity_MODIFIED_TIMESTAMP__day__3.1fb2addfd1"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE.a5c2d5cb74": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_VALUE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE.a5c2d5cb74"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_MINER.8de6a9c8f5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_MINER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_MINER.8de6a9c8f5"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_BLOCK_TIMESTAMP__hour__2.6b827e0d56": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_TRACES_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_BLOCK_TIMESTAMP__hour__2.6b827e0d56"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP__hour__2.ffec548ee5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP__hour__2.ffec548ee5"}, "model.polygon_models.silver_olas__registry_metadata": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_OLAS", "name": "REGISTRY_METADATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RESP": {"type": "VARIANT", "index": 1, "name": "RESP", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 3, "name": "CONTRACT_ADDRESS", "comment": ""}, "REGISTRY_ID": {"type": "NUMBER", "index": 4, "name": "REGISTRY_ID", "comment": ""}, "TOKEN_URI_LINK": {"type": "TEXT", "index": 5, "name": "TOKEN_URI_LINK", "comment": ""}, "TRAIT_TYPE": {"type": "TEXT", "index": 6, "name": "TRAIT_TYPE", "comment": ""}, "TRAIT_VALUE": {"type": "TEXT", "index": 7, "name": "TRAIT_VALUE", "comment": ""}, "CODE_URI_LINK": {"type": "TEXT", "index": 8, "name": "CODE_URI_LINK", "comment": ""}, "DESCRIPTION": {"type": "TEXT", "index": 9, "name": "DESCRIPTION", "comment": ""}, "IMAGE_LINK": {"type": "TEXT", "index": 10, "name": "IMAGE_LINK", "comment": ""}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "REGISTRY_METADATA_ID": {"type": "TEXT", "index": 13, "name": "REGISTRY_METADATA_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 52736, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver_olas__registry_metadata"}, "model.fsc_evm.silver_bridge__polygon_pos_contracts": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "POLYGON_POS_CONTRACTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "NAME": {"type": "TEXT", "index": 2, "name": "NAME", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:29UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 104448, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2030, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__polygon_pos_contracts"}, "model.fsc_evm.silver_lending__fraxlend_deposits": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "FRAXLEND_DEPOSITS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "CALLER": {"type": "TEXT", "index": 9, "name": "CALLER", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 10, "name": "DEPOSITOR", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 11, "name": "AMOUNT_UNADJ", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "PROTOCOL_MARKET_SYMBOL": {"type": "TEXT", "index": 13, "name": "PROTOCOL_MARKET_SYMBOL", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 14, "name": "TOKEN_ADDRESS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 15, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 16, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 18, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 20, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__fraxlend_deposits"}, "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_MODIFIED_TIMESTAMP.47fee02027": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_PROVIDER_ASSET_METADATA_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": null}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 5, "name": "PLATFORM", "comment": null}, "PLATFORM_ID": {"type": "TEXT", "index": 6, "name": "PLATFORM_ID", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_PROVIDER_ASSET_METADATA_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_PROVIDER_ASSET_METADATA_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_MODIFIED_TIMESTAMP.47fee02027"}, "model.fsc_evm.silver_bridge__ccip_send_requested": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "CCIP_SEND_REQUESTED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 7, "name": "TRACE_INDEX", "comment": null}, "GROUPING": {"type": "NUMBER", "index": 8, "name": "GROUPING", "comment": null}, "EVENT_INDEX": {"type": "TEXT", "index": 9, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 10, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 11, "name": "EVENT_NAME", "comment": null}, "SENDER": {"type": "TEXT", "index": 12, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 13, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 14, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 15, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 17, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "AMOUNT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 19, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 20, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 21, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 22, "name": "TYPE", "comment": null}, "CIRCLE_TRACE_INDEX": {"type": "NUMBER", "index": 23, "name": "CIRCLE_TRACE_INDEX", "comment": null}, "PARENT_TRACE_INDEX": {"type": "NUMBER", "index": 24, "name": "PARENT_TRACE_INDEX", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 25, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:35UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1577472, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 7333, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__ccip_send_requested"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS__0_xX_0_9a_fA_F_.84556e1744": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_BRIDGE", "name": "HOP_AMMWRAPPER_AMM_WRAPPER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS__0_xX_0_9a_fA_F_.84556e1744"}, "test.polygon_models.not_null_silver__element_sales_EVENT_TYPE.1374ddbae0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_EVENT_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_EVENT_TYPE.1374ddbae0"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.e901b29df2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.e901b29df2"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_liquidity_pool_actions__ID.ddef6289c9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_ID": {"type": "TEXT", "index": 1, "name": "_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_liquidity_pool_actions__ID.ddef6289c9"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_BLOCK_NUMBER.2c9a0f6061": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_BLOCK_NUMBER.2c9a0f6061"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_ORIGIN_FUNCTION_SIGNATURE.1dc2890452": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_ORIGIN_FUNCTION_SIGNATURE.1dc2890452"}, "model.fsc_evm.price__fact_prices_ohlc_hourly": {"metadata": {"type": "BASE TABLE", "schema": "PRICE", "name": "FACT_PRICES_OHLC_HOURLY", "database": "POLYGON", "comment": "## What\n\nThis table provides hourly OHLC (Open, High, Low, Close) price data for all assets tracked in the price schema. It is designed for time series analysis, volatility studies, and historical price lookups.\n\n## Key Use Cases\n\n- Technical analysis and candlestick chart creation\n- Volatility studies and risk assessment\n- Historical price lookups and trend analysis\n- Market timing and trading analysis\n\n## Important Relationships\n\n- **Join with dim_asset_metadata**: For asset metadata\n- **Join with ez_token_transfers**: For USD value calculations\n\n## Commonly-used Fields\n\n- `hour`: UTC timestamp for the price period\n- `asset_id`: Unique identifier for the asset\n- `open`: Opening price at start of hour\n- `high`: Highest price during hour\n- `low`: Lowest price during hour\n- `close`: Closing price at end of hour\n\n## Sample Queries\n\n**OHLC Data Retrieval**\n```sql\nSELECT hour, asset_id, open, high, low, close\nFROM .price.fact_prices_ohlc_hourly\nWHERE asset_id = ''\n AND hour >= CURRENT_DATE - 30\nORDER BY hour DESC;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": "Unique identifier for the asset from the price provider. Provider-specific ID format.\n\nExample: 'ethereum'"}, "HOUR": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "HOUR", "comment": "UTC timestamp truncated to the hour for price recording. Used for joining with hourly transaction data.\n\nExample: '2024-01-15 14:00:00.000'"}, "OPEN": {"type": "FLOAT", "index": 3, "name": "OPEN", "comment": "Opening price at the start of the hour in USD. First recorded price in the hour for OHLC analysis.\n\nExample: 2995.25"}, "HIGH": {"type": "FLOAT", "index": 4, "name": "HIGH", "comment": "Highest price reached during the hour in USD. Maximum price in the hour for volatility analysis.\n\nExample: 3005.75"}, "LOW": {"type": "FLOAT", "index": 5, "name": "LOW", "comment": "Lowest price reached during the hour in USD. Minimum price in the hour for support level analysis.\n\nExample: 2985.50"}, "CLOSE": {"type": "FLOAT", "index": 6, "name": "CLOSE", "comment": "Closing price at the end of the hour in USD. Last recorded price in the hour, commonly used for valuations.\n\nExample: 3000.50"}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": ""}, "FACT_PRICES_OHLC_HOURLY_ID": {"type": "TEXT", "index": 8, "name": "FACT_PRICES_OHLC_HOURLY_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:16UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 533877248, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(hour::DATE, provider)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 10531198, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.price__fact_prices_ohlc_hourly"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_EVENT_NAME.074448c2ba": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_EVENT_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_EVENT_NAME.074448c2ba"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP.5dc86f315d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP.5dc86f315d"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.277515e609": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_6_SALES_NFT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.277515e609"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_daily_recent_BLOCK_DATE__day__2.77859fb708": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "EZ_BALANCES_NATIVE_DAILY_RECENT_BLOCK_DATE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_daily_recent_BLOCK_DATE__day__2.77859fb708"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_TX_FEE.7a79488ebd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_TX_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_TX_FEE.7a79488ebd"}, "model.fsc_evm.silver_dex__platypus_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "PLATYPUS_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "DEPLOYER_ADDRESS": {"type": "TEXT", "index": 4, "name": "DEPLOYER_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 5, "name": "POOL_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 6, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 7, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 8, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 9, "name": "TYPE", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 10, "name": "_CALL_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:06UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__platypus_pools"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_BLOCK_NUMBER__NUMBER__FLOAT.76675adfdf": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "DECODED_LOGS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_BLOCK_NUMBER__NUMBER__FLOAT.76675adfdf"}, "test.fsc_evm.not_null_test_silver__traces_recent_TX_POSITION.92be43f8d5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRACES_RECENT_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 2, "name": "TX_POSITION", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 3, "name": "TRACE_ADDRESS", "comment": null}, "PARENT_TRACE_ADDRESS": {"type": "TEXT", "index": 4, "name": "PARENT_TRACE_ADDRESS", "comment": null}, "TRACE_ADDRESS_ARRAY": {"type": "ARRAY", "index": 5, "name": "TRACE_ADDRESS_ARRAY", "comment": null}, "TRACE_JSON": {"type": "OBJECT", "index": 6, "name": "TRACE_JSON", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 7, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRACES_ID": {"type": "TEXT", "index": 9, "name": "TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__traces_recent_TX_POSITION.92be43f8d5"}, "model.fsc_evm.silver_bridge__hop_l1canonicaltoken": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "HOP_L1CANONICALTOKEN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"READ_OUTPUT": {"type": "VARIANT", "index": 1, "name": "READ_OUTPUT", "comment": ""}, "READ_ID": {"type": "TEXT", "index": 2, "name": "READ_ID", "comment": ""}, "READ_RESULT": {"type": "TEXT", "index": 3, "name": "READ_RESULT", "comment": ""}, "READ_ID_OBJECT": {"type": "ARRAY", "index": 4, "name": "READ_ID_OBJECT", "comment": ""}, "FUNCTION_SIG": {"type": "TEXT", "index": 5, "name": "FUNCTION_SIG", "comment": ""}, "FUNCTION_NAME": {"type": "TEXT", "index": 6, "name": "FUNCTION_NAME", "comment": ""}, "FUNCTION_INPUT": {"type": "NUMBER", "index": 7, "name": "FUNCTION_INPUT", "comment": ""}, "DATA": {"type": "TEXT", "index": 8, "name": "DATA", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 9, "name": "BLOCK_NUMBER", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:29UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__hop_l1canonicaltoken"}, "model.fsc_evm.silver_bridge__gaszip_lz_sentdeposits": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "GASZIP_LZ_SENTDEPOSITS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 9, "name": "BRIDGE_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 11, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 12, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 13, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "NONCE": {"type": "TEXT", "index": 14, "name": "NONCE", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 15, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 17, "name": "AMOUNT_UNADJ", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 18, "name": "TOKEN_ADDRESS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 22, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 23, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:01UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__gaszip_lz_sentdeposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_VERSION.fcaf60d697": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_VERSION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_VERSION.fcaf60d697"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7652c2220b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "RECEIPTS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7652c2220b"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_CURRENCY_ADDRESS.36494514a1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_CURRENCY_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_CURRENCY_ADDRESS.36494514a1"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_FROM_ADDRESS.527a050b74": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_FROM_ADDRESS.527a050b74"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP.0dfa5d9bbc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP.0dfa5d9bbc"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_EXTRA_DATA.c1204d1482": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_EXTRA_DATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_EXTRA_DATA.c1204d1482"}, "model.fsc_evm.defi__ez_lending_flashloans": {"metadata": {"type": "VIEW", "schema": "DEFI", "name": "EZ_LENDING_FLASHLOANS", "database": "POLYGON", "comment": "## What\n\nThis table captures flash loan transactions across lending protocols. Flash loans enable borrowing without collateral within a single transaction, provided the loan plus fees are repaid before transaction completion. This advanced DeFi primitive is primarily used for arbitrage, collateral swapping, and liquidations.\n\n## Key Use Cases\n\n- Analyzing arbitrage and MEV activity patterns\n- Tracking flash loan volume and fee revenue\n- Identifying power users and bot activity\n- Monitoring large-scale DeFi operations\n- Understanding cross-protocol composability\n\n## Important Relationships\n\n- Often precedes transactions in DEX tables for arbitrage analysis\n- Links to `ez_lending_liquidations` for liquidation strategies\n- May connect to multiple protocols within single transaction\n- References `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `initiator`: Address that triggered the flash loan\n- `platform`: Lending protocol providing the loan\n- `flashloan_token`/`flashloan_token_symbol`: Borrowed asset\n- `flashloan_amount`/`flashloan_amount_usd`: Loan size\n- `premium_amount`/`premium_amount_usd`: Fee paid\n\n## Sample queries\n\n```sql\n-- Daily flash loan volume and fees\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(*) AS flashloan_count,\n SUM(flashloan_amount_usd) AS total_volume_usd,\n SUM(premium_amount_usd) AS total_fees_usd,\n AVG(premium_amount_usd / NULLIF(flashloan_amount_usd, 0) * 100) AS avg_fee_rate_pct\nFROM .defi.ez_lending_flashloans\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND flashloan_amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 4 DESC;\n\n-- Most flash loaned assets\nSELECT \n flashloan_token_symbol,\n flashloan_token,\n COUNT(*) AS loan_count,\n SUM(flashloan_amount) AS total_amount,\n SUM(flashloan_amount_usd) AS total_volume_usd,\n AVG(flashloan_amount_usd) AS avg_loan_size_usd,\n SUM(premium_amount_usd) AS total_fees_collected\nFROM .defi.ez_lending_flashloans\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND flashloan_token_symbol IS NOT NULL\nGROUP BY 1, 2\nORDER BY 5 DESC\nLIMIT 20;\n\n-- Flash loan user analysis\nWITH flashloan_users AS (\n SELECT \n initiator,\n COUNT(*) AS flashloan_count,\n COUNT(DISTINCT DATE_TRUNC('day', block_timestamp)) AS active_days,\n COUNT(DISTINCT platform) AS protocols_used,\n SUM(flashloan_amount_usd) AS total_borrowed_usd,\n SUM(premium_amount_usd) AS total_fees_paid_usd\n FROM .defi.ez_lending_flashloans\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND flashloan_amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n CASE \n WHEN flashloan_count = 1 THEN 'One-time User'\n WHEN flashloan_count <= 10 THEN 'Occasional User'\n WHEN flashloan_count <= 100 THEN 'Regular User'\n ELSE 'Power User'\n END AS user_category,\n COUNT(*) AS user_count,\n SUM(total_borrowed_usd) AS category_volume_usd,\n AVG(total_fees_paid_usd) AS avg_fees_per_user\nFROM flashloan_users\nGROUP BY 1\nORDER BY 3 DESC;\n\n-- Large flash loans (potential arbitrage/liquidations)\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n initiator,\n target,\n flashloan_token_symbol,\n flashloan_amount_usd,\n premium_amount_usd,\n premium_amount_usd / NULLIF(flashloan_amount_usd, 0) * 100 AS fee_rate_pct\nFROM .defi.ez_lending_flashloans\nWHERE flashloan_amount_usd > 1000000\n AND block_timestamp >= CURRENT_DATE - 1\nORDER BY flashloan_amount_usd DESC;\n\n-- Wallet-specific flash loan analysis\nSELECT \n initiator,\n platform,\n flashloan_token_symbol,\n COUNT(*) AS flashloan_count,\n SUM(flashloan_amount_usd) AS total_borrowed_usd,\n SUM(premium_amount_usd) AS total_fees_paid_usd,\n AVG(premium_amount_usd / NULLIF(flashloan_amount_usd, 0) * 100) AS avg_fee_rate_pct,\n MIN(block_timestamp) AS first_flashloan,\n MAX(block_timestamp) AS last_flashloan,\n COUNT(DISTINCT DATE_TRUNC('day', block_timestamp)) AS active_days\nFROM .defi.ez_lending_flashloans\nWHERE initiator = LOWER('')\n AND block_timestamp >= CURRENT_DATE - 30\n AND flashloan_amount_usd IS NOT NULL\nGROUP BY 1, 2, 3\nORDER BY total_borrowed_usd DESC;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events"}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```"}, "EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "EVENT_INDEX", "comment": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": "The lending protocol where the transaction occurred.\n\nExample: 'aave'"}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": "The address that triggered the flash loan execution.\n\nExample: '0x7a250d5630b4cf539739df2c5dacb4c659f2488d'"}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": "The contract address that receives and executes the flash loan logic.\n\nExample: '0x1111111254fb6c44bac0bed2854e76f90643097d'"}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 13, "name": "PROTOCOL_MARKET", "comment": "The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 14, "name": "TOKEN_ADDRESS", "comment": ""}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 15, "name": "TOKEN_SYMBOL", "comment": ""}, "FLASHLOAN_TOKEN": {"type": "TEXT", "index": 16, "name": "FLASHLOAN_TOKEN", "comment": "The contract address of the token borrowed in the flash loan.\n\nExample: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n\nThis column will be deprecated October 13th, please update to token_address."}, "FLASHLOAN_TOKEN_SYMBOL": {"type": "TEXT", "index": 17, "name": "FLASHLOAN_TOKEN_SYMBOL", "comment": "The symbol of the token borrowed in the flash loan.\n\nExample: 'WETH'\n\nThis column will be deprecated October 13th, please update to token_symbol."}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": "The raw amount of tokens borrowed without decimal adjustment.\n\nExample: 1000000000000000000"}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 19, "name": "FLASHLOAN_AMOUNT", "comment": "The decimal-adjusted amount of tokens borrowed in the flash loan.\n\nExample: 1.0"}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "FLASHLOAN_AMOUNT_USD", "comment": "The USD value of assets borrowed in a flash loan.\n\nExample: 1000000.50"}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 21, "name": "PREMIUM_AMOUNT_UNADJ", "comment": "The raw fee amount charged for the flash loan.\n\nExample: 900000000000000"}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 22, "name": "PREMIUM_AMOUNT", "comment": "The decimal-adjusted fee paid for the flash loan.\n\nExample: 0.0009"}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 23, "name": "PREMIUM_AMOUNT_USD", "comment": "The USD value of the flash loan fee.\n\nExample: 0.90"}, "EZ_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 24, "name": "EZ_LENDING_FLASHLOANS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.defi__ez_lending_flashloans"}, "model.fsc_evm.defi__ez_lending_deposits": {"metadata": {"type": "VIEW", "schema": "DEFI", "name": "EZ_LENDING_DEPOSITS", "database": "POLYGON", "comment": "## What\n\nThis table tracks all deposit transactions across lending protocols on EVM blockchains. Deposits represent users supplying liquidity to lending pools, earning yield while enabling their assets to serve as collateral for borrowing.\n\n## Key Use Cases\n\n- Calculating total value locked (TVL) by protocol\n- Analyzing deposit and withdrawal patterns\n- Tracking user liquidity provision behavior\n- Monitoring asset distribution across protocols\n- Identifying whale depositor activity\n\n## Important Relationships\n\n- Links to `ez_lending_borrows` for collateralization analysis\n- Joins with `ez_lending_withdraws` to track position lifecycle\n- References protocol-specific token contracts (aTokens, cTokens, etc.)\n- Connects to `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `depositor`: Address supplying liquidity\n- `platform`: Lending protocol name\n- `token_address`/`token_symbol`: Deposited asset details\n- `amount`/`amount_usd`: Deposit quantity and USD value\n- `block_timestamp`: When deposit occurred\n\n## Sample queries\n\n```sql\n-- Daily deposit volume and TVL calculation\nWITH daily_metrics AS (\n SELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n SUM(amount_usd) AS daily_deposits_usd,\n COUNT(DISTINCT depositor) AS unique_depositors\n FROM .defi.ez_lending_deposits\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n GROUP BY 1, 2\n),\ndaily_withdrawals AS (\n SELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n SUM(amount_usd) AS daily_withdrawals_usd\n FROM .defi.ez_lending_withdraws\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n GROUP BY 1, 2\n)\nSELECT \n m.date,\n m.platform,\n m.daily_deposits_usd,\n COALESCE(w.daily_withdrawals_usd, 0) AS daily_withdrawals_usd,\n m.daily_deposits_usd - COALESCE(w.daily_withdrawals_usd, 0) AS net_flow_usd,\n SUM(m.daily_deposits_usd - COALESCE(w.daily_withdrawals_usd, 0)) \n OVER (PARTITION BY m.platform ORDER BY m.date) AS cumulative_tvl_estimate\nFROM daily_metrics m\nLEFT JOIN daily_withdrawals w ON m.date = w.date AND m.platform = w.platform\nORDER BY m.date DESC, m.platform;\n\n-- Wallet level deposit and withdraw analysis\nSELECT \n d.depositor,\n d.token_address AS collateral_token_address,\n d.token_symbol AS collateral_token_symbol,\n DATE_TRUNC('week', d.block_timestamp) AS weekly_block_timestamp,\n SUM(d.amount) AS total_deposit_amount,\n SUM(d.amount_usd) AS total_deposit_usd,\n SUM(w.amount) AS total_withdraw_amount,\n SUM(w.amount_usd) AS total_withdraw_usd,\n SUM(d.amount) - SUM(w.amount) AS net_collateral_amount,\n SUM(d.amount_usd) - SUM(w.amount_usd) AS net_collateral_usd\nFROM \n .defi.ez_lending_deposits d\nLEFT JOIN .defi.ez_lending_withdraws w\n ON d.depositor = w.depositor\n AND d.token_address = w.token_address\nWHERE \n d.depositor = LOWER('')\nGROUP BY 1, 2, 3, 4;\n\n-- Depositor behavior analysis\nWITH depositor_activity AS (\n SELECT \n depositor,\n COUNT(DISTINCT platform) AS platforms_used,\n COUNT(DISTINCT token_address) AS unique_assets,\n SUM(amount_usd) AS total_deposited_usd,\n MAX(block_timestamp) AS last_deposit,\n MIN(block_timestamp) AS first_deposit\n FROM .defi.ez_lending_deposits\n WHERE amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n CASE \n WHEN platforms_used = 1 THEN 'Single Protocol'\n WHEN platforms_used = 2 THEN 'Two Protocols'\n ELSE 'Multi-Protocol'\n END AS user_type,\n COUNT(*) AS user_count,\n AVG(total_deposited_usd) AS avg_deposit_size,\n AVG(unique_assets) AS avg_assets_deposited,\n AVG(DATEDIFF('day', first_deposit, last_deposit)) AS avg_active_days\nFROM depositor_activity\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Asset distribution by protocol\nSELECT \n platform,\n token_symbol,\n COUNT(*) AS deposit_transactions,\n SUM(amount) AS total_amount,\n SUM(amount_usd) AS total_usd,\n SUM(amount_usd) * 100.0 / SUM(SUM(amount_usd)) OVER (PARTITION BY platform) AS pct_of_protocol\nFROM .defi.ez_lending_deposits\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n AND token_symbol IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1, 6 DESC;\n\n-- Large deposits monitoring (whale activity)\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n depositor,\n token_symbol,\n amount,\n amount_usd\nFROM .defi.ez_lending_deposits\nWHERE amount_usd > 1000000\n AND block_timestamp >= CURRENT_DATE - 7\nORDER BY amount_usd DESC;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events"}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```"}, "EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "EVENT_INDEX", "comment": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": "The lending protocol where the transaction occurred.\n\nExample: 'aave'"}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 11, "name": "PROTOCOL_MARKET", "comment": "The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'"}, "DEPOSITOR": {"type": "TEXT", "index": 12, "name": "DEPOSITOR", "comment": "The address that supplied liquidity to the lending protocol.\n\nExample: '0x9876543210987654321098765432109876543210'"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": "The contract address of the underlying asset being lent or borrowed.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": "The ticker symbol of the asset involved in the lending transaction.\n\nExample: 'USDC'"}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": "The raw amount of tokens borrowed or repaid without decimal adjustment.\n\nExample: 1000000000"}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": "The decimal-adjusted quantity of tokens in the transaction.\n\nExample: 1000.5"}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": "The USD value of tokens at transaction time.\n\nExample: 1500.75"}, "EZ_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 18, "name": "EZ_LENDING_DEPOSITS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.defi__ez_lending_deposits"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_AMOUNT_OUT.d33197318a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_AMOUNT_OUT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 8, "name": "POOL_NAME", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 9, "name": "POOL_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 15, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 17, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 18, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 19, "name": "EVENT_INDEX", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 24, "name": "TOKEN_IN", "comment": null}, "TOKEN_IN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IN_IS_VERIFIED", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 26, "name": "TOKEN_OUT", "comment": null}, "TOKEN_OUT_IS_VERIFIED": {"type": "BOOLEAN", "index": 27, "name": "TOKEN_OUT_IS_VERIFIED", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 28, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 29, "name": "SYMBOL_OUT", "comment": null}, "DECIMALS_IN": {"type": "NUMBER", "index": 30, "name": "DECIMALS_IN", "comment": null}, "DECIMALS_OUT": {"type": "NUMBER", "index": 31, "name": "DECIMALS_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 32, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_SWAPS_ID": {"type": "TEXT", "index": 34, "name": "COMPLETE_DEX_SWAPS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 35, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 37, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_AMOUNT_OUT.d33197318a"}, "test.fsc_evm.not_null_silver__complete_token_prices_BLOCKCHAIN_ID.6aac0fa10e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_TOKEN_PRICES_BLOCKCHAIN_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 3, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 5, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 6, "name": "DECIMALS", "comment": null}, "PRICE": {"type": "FLOAT", "index": 7, "name": "PRICE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN", "comment": null}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 9, "name": "BLOCKCHAIN_NAME", "comment": null}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 10, "name": "BLOCKCHAIN_ID", "comment": null}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 11, "name": "IS_IMPUTED", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 12, "name": "IS_DEPRECATED", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 13, "name": "IS_VERIFIED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 14, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 15, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_TOKEN_PRICES_ID": {"type": "TEXT", "index": 19, "name": "COMPLETE_TOKEN_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 20, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_token_prices_BLOCKCHAIN_ID.6aac0fa10e"}, "model.fsc_evm.silver__receipts": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "RECEIPTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": null}, "RECEIPTS_JSON": {"type": "VARIANT", "index": 4, "name": "RECEIPTS_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "RECEIPTS_ID": {"type": "TEXT", "index": 6, "name": "RECEIPTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:16UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 3335503049216, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(modified_timestamp::DATE, partition_key)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5945675220, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__receipts"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e3a06da0df": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "BLOCKS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e3a06da0df"}, "model.fsc_evm.silver__stablecoin_reads": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "STABLECOIN_READS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 3, "name": "CONTRACT_ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": null}, "AMOUNT_HEX": {"type": "TEXT", "index": 5, "name": "AMOUNT_HEX", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 6, "name": "AMOUNT_RAW", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 7, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 8, "name": "AMOUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "STABLECOIN_READS_ID": {"type": "TEXT", "index": 10, "name": "STABLECOIN_READS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:18UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 374784, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_date)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5678, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__stablecoin_reads"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__layerzero_v2_token_reads_CONTRACT_ADDRESS.cbdeb639b6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_BRIDGE", "name": "LAYERZERO_V2_TOKEN_READS_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__layerzero_v2_token_reads_CONTRACT_ADDRESS.cbdeb639b6"}, "model.fsc_evm.silver_dex__quickswap_v4_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "QUICKSWAP_V4_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "POOL_ADDRESS", "comment": null}, "RECIPIENT": {"type": "TEXT", "index": 11, "name": "RECIPIENT", "comment": null}, "SENDER": {"type": "TEXT", "index": 12, "name": "SENDER", "comment": null}, "TICK": {"type": "FLOAT", "index": 13, "name": "TICK", "comment": null}, "LIQUIDITY": {"type": "FLOAT", "index": 14, "name": "LIQUIDITY", "comment": null}, "TOKEN0_ADDRESS": {"type": "TEXT", "index": 15, "name": "TOKEN0_ADDRESS", "comment": null}, "TOKEN1_ADDRESS": {"type": "TEXT", "index": 16, "name": "TOKEN1_ADDRESS", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 17, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 18, "name": "AMOUNT1_UNADJ", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "FLOAT", "index": 19, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "FLOAT", "index": 20, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 21, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 22, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 26, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 27, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-18 20:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__quickswap_v4_swaps"}, "model.fsc_evm.silver__transactions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "TRANSACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}, "TRANSACTION_JSON": {"type": "VARIANT", "index": 4, "name": "TRANSACTION_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRANSACTIONS_ID": {"type": "TEXT", "index": 6, "name": "TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:16UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2201476557312, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(modified_timestamp::DATE, partition_key)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5936912708, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__transactions"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_ORIGIN_FUNCTION_SIGNATURE.ee7a08f37f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_ORIGIN_FUNCTION_SIGNATURE.ee7a08f37f"}, "model.fsc_evm.silver_bridge__layerzero_v2_packet": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "LAYERZERO_V2_PACKET", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PAYLOAD": {"type": "TEXT", "index": 5, "name": "PAYLOAD", "comment": null}, "TX_TYPE": {"type": "TEXT", "index": 6, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "TEXT", "index": 7, "name": "NONCE", "comment": null}, "SRC_CHAIN_ID": {"type": "TEXT", "index": 8, "name": "SRC_CHAIN_ID", "comment": null}, "SRC_CHAIN": {"type": "TEXT", "index": 9, "name": "SRC_CHAIN", "comment": null}, "SENDER_CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "SENDER_CONTRACT_ADDRESS", "comment": null}, "DST_CHAIN_ID": {"type": "TEXT", "index": 11, "name": "DST_CHAIN_ID", "comment": null}, "DST_CHAIN": {"type": "TEXT", "index": 12, "name": "DST_CHAIN", "comment": null}, "RECEIVER_CONTRACT_ADDRESS": {"type": "TEXT", "index": 13, "name": "RECEIVER_CONTRACT_ADDRESS", "comment": null}, "GUID": {"type": "TEXT", "index": 14, "name": "GUID", "comment": null}, "MESSAGE_TYPE": {"type": "TEXT", "index": 15, "name": "MESSAGE_TYPE", "comment": null}, "EXECUTOR_ADDRESS": {"type": "TEXT", "index": 16, "name": "EXECUTOR_ADDRESS", "comment": null}, "EXECUTOR_FEE": {"type": "NUMBER", "index": 17, "name": "EXECUTOR_FEE", "comment": null}, "DVN_CONTRACT_ADDRESS": {"type": "TEXT", "index": 18, "name": "DVN_CONTRACT_ADDRESS", "comment": null}, "DVN_FEES": {"type": "VARIANT", "index": 19, "name": "DVN_FEES", "comment": null}, "OPTIONAL_DVNS": {"type": "VARIANT", "index": 20, "name": "OPTIONAL_DVNS", "comment": null}, "REQUIRED_DVNS": {"type": "VARIANT", "index": 21, "name": "REQUIRED_DVNS", "comment": null}, "TOTAL_DVN_FEES": {"type": "NUMBER", "index": 22, "name": "TOTAL_DVN_FEES", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 23, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 24, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 25, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 26, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 27, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:29UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 225441792, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1185766, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__layerzero_v2_packet"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_blocks_recent_BLOCK_NUMBER.e708e85fee": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_blocks_recent_BLOCK_NUMBER.e708e85fee"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_VERSION.302623d7a3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_VERSION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 8, "name": "POOL_NAME", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 9, "name": "POOL_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 15, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 17, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 18, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 19, "name": "EVENT_INDEX", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 24, "name": "TOKEN_IN", "comment": null}, "TOKEN_IN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IN_IS_VERIFIED", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 26, "name": "TOKEN_OUT", "comment": null}, "TOKEN_OUT_IS_VERIFIED": {"type": "BOOLEAN", "index": 27, "name": "TOKEN_OUT_IS_VERIFIED", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 28, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 29, "name": "SYMBOL_OUT", "comment": null}, "DECIMALS_IN": {"type": "NUMBER", "index": 30, "name": "DECIMALS_IN", "comment": null}, "DECIMALS_OUT": {"type": "NUMBER", "index": 31, "name": "DECIMALS_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 32, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_SWAPS_ID": {"type": "TEXT", "index": 34, "name": "COMPLETE_DEX_SWAPS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 35, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 37, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_VERSION.302623d7a3"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP.f39a6a04de": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP.f39a6a04de"}, "model.fsc_evm.silver__balances_native_daily": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "BALANCES_NATIVE_DAILY", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": ""}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": ""}, "BALANCE_HEX": {"type": "TEXT", "index": 4, "name": "BALANCE_HEX", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BALANCES_NATIVE_DAILY_ID": {"type": "TEXT", "index": 6, "name": "BALANCES_NATIVE_DAILY_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:14UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 13281854976, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_date)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 243123731, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__balances_native_daily"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_deposits_BLOCK_TIMESTAMP__day__3.b5e1187f23": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_deposits_BLOCK_TIMESTAMP__day__3.b5e1187f23"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_BLOCK_NUMBER__NUMBER__FLOAT.db1568242f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_4_SALES_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_BLOCK_NUMBER__NUMBER__FLOAT.db1568242f"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_SUB_TRACES.4cb72b9d8c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_SUB_TRACES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_SUB_TRACES.4cb72b9d8c"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full_INSERTED_TIMESTAMP__hour__2.cf055b5ea3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "BLOCKS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full_INSERTED_TIMESTAMP__hour__2.cf055b5ea3"}, "model.fsc_evm.silver_bridge__layerzero_v2": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "LAYERZERO_V2", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 9, "name": "BRIDGE_ADDRESS", "comment": null}, "GUID": {"type": "TEXT", "index": 10, "name": "GUID", "comment": null}, "SENDER": {"type": "TEXT", "index": 11, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 12, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 13, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DST_CHAIN_ID": {"type": "TEXT", "index": 14, "name": "DST_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 15, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 17, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT_SENT": {"type": "NUMBER", "index": 19, "name": "AMOUNT_SENT", "comment": null}, "AMOUNT_RECEIVED": {"type": "NUMBER", "index": 20, "name": "AMOUNT_RECEIVED", "comment": null}, "SRC_CHAIN_ID": {"type": "TEXT", "index": 21, "name": "SRC_CHAIN_ID", "comment": null}, "SRC_CHAIN": {"type": "TEXT", "index": 22, "name": "SRC_CHAIN", "comment": null}, "PAYLOAD": {"type": "TEXT", "index": 23, "name": "PAYLOAD", "comment": null}, "TX_TYPE": {"type": "TEXT", "index": 24, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "TEXT", "index": 25, "name": "NONCE", "comment": null}, "SENDER_CONTRACT_ADDRESS": {"type": "TEXT", "index": 26, "name": "SENDER_CONTRACT_ADDRESS", "comment": null}, "RECEIVER_CONTRACT_ADDRESS": {"type": "TEXT", "index": 27, "name": "RECEIVER_CONTRACT_ADDRESS", "comment": null}, "MESSAGE_TYPE": {"type": "TEXT", "index": 28, "name": "MESSAGE_TYPE", "comment": null}, "EXECUTOR_ADDRESS": {"type": "TEXT", "index": 29, "name": "EXECUTOR_ADDRESS", "comment": null}, "EXECUTOR_FEE": {"type": "NUMBER", "index": 30, "name": "EXECUTOR_FEE", "comment": null}, "DVN_CONTRACT_ADDRESS": {"type": "TEXT", "index": 31, "name": "DVN_CONTRACT_ADDRESS", "comment": null}, "DVN_FEES": {"type": "VARIANT", "index": 32, "name": "DVN_FEES", "comment": null}, "OPTIONAL_DVNS": {"type": "VARIANT", "index": 33, "name": "OPTIONAL_DVNS", "comment": null}, "REQUIRED_DVNS": {"type": "VARIANT", "index": 34, "name": "REQUIRED_DVNS", "comment": null}, "TOTAL_DVN_FEES": {"type": "NUMBER", "index": 35, "name": "TOTAL_DVN_FEES", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 36, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 37, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 38, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 39, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 40, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 41, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:35UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 36832256, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 60267, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__layerzero_v2"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_4_sales_nft_log_id.a174df5b72": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "SEAPORT_1_4_SALES_NFT_LOG_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"NFT_LOG_ID": {"type": "TEXT", "index": 1, "name": "NFT_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_4_sales_nft_log_id.a174df5b72"}, "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_TO_ADDRESS.fb55dbfb6f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_TO_ADDRESS.fb55dbfb6f"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_SUCCESS.5b82a449dd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_STATS", "name": "CORE_METRICS_HOURLY_TRANSACTION_COUNT_SUCCESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_TIMESTAMP_HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP_HOUR", "comment": null}, "BLOCK_NUMBER_MIN": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER_MIN", "comment": null}, "BLOCK_NUMBER_MAX": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER_MAX", "comment": null}, "BLOCK_COUNT": {"type": "NUMBER", "index": 4, "name": "BLOCK_COUNT", "comment": null}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "TRANSACTION_COUNT", "comment": null}, "TRANSACTION_COUNT_SUCCESS": {"type": "NUMBER", "index": 6, "name": "TRANSACTION_COUNT_SUCCESS", "comment": null}, "TRANSACTION_COUNT_FAILED": {"type": "NUMBER", "index": 7, "name": "TRANSACTION_COUNT_FAILED", "comment": null}, "UNIQUE_FROM_COUNT": {"type": "NUMBER", "index": 8, "name": "UNIQUE_FROM_COUNT", "comment": null}, "UNIQUE_TO_COUNT": {"type": "NUMBER", "index": 9, "name": "UNIQUE_TO_COUNT", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 10, "name": "TOTAL_FEES", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CORE_METRICS_HOURLY_ID": {"type": "TEXT", "index": 12, "name": "CORE_METRICS_HOURLY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_SUCCESS.5b82a449dd"}, "test.fsc_evm.events_match_txs_test_gold__fact_event_logs_recent_ref_test_gold__fact_transactions_recent_.3f449de1cd": {"metadata": {"type": "BASE TABLE", "schema": "EVENTS_MATCH_TXS_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_REF_TEST_GOLD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 2, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.events_match_txs_test_gold__fact_event_logs_recent_ref_test_gold__fact_transactions_recent_.3f449de1cd"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_EVENT_INDEX.b08f854af1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_EVENT_INDEX.b08f854af1"}, "test.fsc_evm.not_null_test_silver__transactions_full_INSERTED_TIMESTAMP.ca671e00f0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRANSACTIONS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}, "TRANSACTION_JSON": {"type": "VARIANT", "index": 4, "name": "TRANSACTION_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRANSACTIONS_ID": {"type": "TEXT", "index": 6, "name": "TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:46UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__transactions_full_INSERTED_TIMESTAMP.ca671e00f0"}, "test.fsc_evm.not_null_test_silver__transactions_recent_MODIFIED_TIMESTAMP.6a9e4ad896": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRANSACTIONS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}, "TRANSACTION_JSON": {"type": "VARIANT", "index": 4, "name": "TRANSACTION_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRANSACTIONS_ID": {"type": "TEXT", "index": 6, "name": "TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__transactions_recent_MODIFIED_TIMESTAMP.6a9e4ad896"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_BLOCK_NUMBER.ab8d5d8e4c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_BLOCK_NUMBER.ab8d5d8e4c"}, "test.fsc_evm.not_null_test_silver__decoded_logs_full_BLOCK_NUMBER.56f1e895c0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "DECODED_LOGS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": null}, "DECODED_DATA": {"type": "VARIANT", "index": 6, "name": "DECODED_DATA", "comment": null}, "TRANSFORMED": {"type": "VARIANT", "index": 7, "name": "TRANSFORMED", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 8, "name": "DECODED_FLAT", "comment": null}, "DECODED_LOGS_ID": {"type": "TEXT", "index": 9, "name": "DECODED_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_full_BLOCK_NUMBER.56f1e895c0"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_MODIFIED_TIMESTAMP__hour__2.d9cadbf789": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_TRACES_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_MODIFIED_TIMESTAMP__hour__2.d9cadbf789"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_TOTAL_FEES_RAW.49141684e9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_TOTAL_FEES_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_TOTAL_FEES_RAW.49141684e9"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TOPICS.599ba528df": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_TOPICS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TOPICS.599ba528df"}, "test.fsc_evm.not_null_test_silver__traces_full_TX_POSITION.663fe545e9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRACES_FULL_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 2, "name": "TX_POSITION", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 3, "name": "TRACE_ADDRESS", "comment": null}, "PARENT_TRACE_ADDRESS": {"type": "TEXT", "index": 4, "name": "PARENT_TRACE_ADDRESS", "comment": null}, "TRACE_ADDRESS_ARRAY": {"type": "ARRAY", "index": 5, "name": "TRACE_ADDRESS_ARRAY", "comment": null}, "TRACE_JSON": {"type": "OBJECT", "index": 6, "name": "TRACE_JSON", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 7, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRACES_ID": {"type": "TEXT", "index": 9, "name": "TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:46UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__traces_full_TX_POSITION.663fe545e9"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATED_AMOUNT.295ac3ed83": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_LIQUIDATED_AMOUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATED_AMOUNT.295ac3ed83"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_full_ADDRESS__0_xX_0_9a_fA_F_.8b0fdb4db0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_FULL_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:20UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_full_ADDRESS__0_xX_0_9a_fA_F_.8b0fdb4db0"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_transactions_recent_TX_HASH.07b6bc79fa": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_transactions_recent_TX_HASH.07b6bc79fa"}, "test.fsc_evm.not_null_admin__fact_variables_FACT_VARIABLES_ID.c6bac6e9b3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ADMIN", "name": "FACT_VARIABLES_FACT_VARIABLES_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PROJECT": {"type": "TEXT", "index": 1, "name": "PROJECT", "comment": null}, "KEY": {"type": "TEXT", "index": 2, "name": "KEY", "comment": null}, "VALUE": {"type": "TEXT", "index": 3, "name": "VALUE", "comment": null}, "PARENT_KEY": {"type": "TEXT", "index": 4, "name": "PARENT_KEY", "comment": null}, "FACT_VARIABLES_ID": {"type": "TEXT", "index": 5, "name": "FACT_VARIABLES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_admin__fact_variables_FACT_VARIABLES_ID.c6bac6e9b3"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__number_sequence__ID.e4808fe515": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_ADMIN", "name": "NUMBER_SEQUENCE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_ID": {"type": "NUMBER", "index": 1, "name": "_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__number_sequence__ID.e4808fe515"}, "test.polygon_models.not_null_silver_olas__registry_reads_TOKEN_URI_LINK.e05085b1e1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "REGISTRY_READS_TOKEN_URI_LINK", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"READ_OUTPUT": {"type": "VARIANT", "index": 1, "name": "READ_OUTPUT", "comment": null}, "READ_ID": {"type": "TEXT", "index": 2, "name": "READ_ID", "comment": null}, "READ_RESULT": {"type": "TEXT", "index": 3, "name": "READ_RESULT", "comment": null}, "READ_ID_OBJECT": {"type": "ARRAY", "index": 4, "name": "READ_ID_OBJECT", "comment": null}, "FUNCTION_SIG": {"type": "TEXT", "index": 5, "name": "FUNCTION_SIG", "comment": null}, "FUNCTION_NAME": {"type": "TEXT", "index": 6, "name": "FUNCTION_NAME", "comment": null}, "FUNCTION_INPUT": {"type": "NUMBER", "index": 7, "name": "FUNCTION_INPUT", "comment": null}, "DATA": {"type": "TEXT", "index": 8, "name": "DATA", "comment": null}, "TOKEN_URI_LINK": {"type": "TEXT", "index": 9, "name": "TOKEN_URI_LINK", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 11, "name": "BLOCK_NUMBER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "REGISTRY_READS_ID": {"type": "TEXT", "index": 13, "name": "REGISTRY_READS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__registry_reads_TOKEN_URI_LINK.e05085b1e1"}, "model.fsc_evm.silver_lending__aave_ohlc_interest_rates": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "AAVE_OHLC_INTEREST_RATES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"DAY": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "DAY", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 2, "name": "PROTOCOL", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 3, "name": "PLATFORM", "comment": null}, "VERSION": {"type": "TEXT", "index": 4, "name": "VERSION", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 5, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 6, "name": "TOKEN_SYMBOL", "comment": null}, "SUPPLY_RATE_OPEN": {"type": "FLOAT", "index": 7, "name": "SUPPLY_RATE_OPEN", "comment": null}, "SUPPLY_RATE_HIGH": {"type": "FLOAT", "index": 8, "name": "SUPPLY_RATE_HIGH", "comment": null}, "SUPPLY_RATE_LOW": {"type": "FLOAT", "index": 9, "name": "SUPPLY_RATE_LOW", "comment": null}, "SUPPLY_RATE_CLOSE": {"type": "FLOAT", "index": 10, "name": "SUPPLY_RATE_CLOSE", "comment": null}, "STABLE_BORROW_RATE_OPEN": {"type": "FLOAT", "index": 11, "name": "STABLE_BORROW_RATE_OPEN", "comment": null}, "STABLE_BORROW_RATE_HIGH": {"type": "FLOAT", "index": 12, "name": "STABLE_BORROW_RATE_HIGH", "comment": null}, "STABLE_BORROW_RATE_LOW": {"type": "FLOAT", "index": 13, "name": "STABLE_BORROW_RATE_LOW", "comment": null}, "STABLE_BORROW_RATE_CLOSE": {"type": "FLOAT", "index": 14, "name": "STABLE_BORROW_RATE_CLOSE", "comment": null}, "VARIABLE_BORROW_RATE_OPEN": {"type": "FLOAT", "index": 15, "name": "VARIABLE_BORROW_RATE_OPEN", "comment": null}, "VARIABLE_BORROW_RATE_HIGH": {"type": "FLOAT", "index": 16, "name": "VARIABLE_BORROW_RATE_HIGH", "comment": null}, "VARIABLE_BORROW_RATE_LOW": {"type": "FLOAT", "index": 17, "name": "VARIABLE_BORROW_RATE_LOW", "comment": null}, "VARIABLE_BORROW_RATE_CLOSE": {"type": "FLOAT", "index": 18, "name": "VARIABLE_BORROW_RATE_CLOSE", "comment": null}, "RATE_UPDATES_COUNT": {"type": "NUMBER", "index": 19, "name": "RATE_UPDATES_COUNT", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 20, "name": "BLOCKCHAIN", "comment": null}, "AAVE_INTEREST_RATES_OHLC_ID": {"type": "TEXT", "index": 21, "name": "AAVE_INTEREST_RATES_OHLC_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 24, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 5082112, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(day::DATE, protocol, platform)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 37995, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__aave_ohlc_interest_rates"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.224af0bd4c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_5_SALES_SELLER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.224af0bd4c"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_RECEIVER__0_xX_0_9a_fA_F_.2465acf0d7": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_RECEIVER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_RECEIVER__0_xX_0_9a_fA_F_.2465acf0d7"}, "model.fsc_evm.test_silver__complete_event_abis_full": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "COMPLETE_EVENT_ABIS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PARENT_CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "PARENT_CONTRACT_ADDRESS", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 2, "name": "EVENT_NAME", "comment": ""}, "ABI": {"type": "VARIANT", "index": 3, "name": "ABI", "comment": ""}, "START_BLOCK": {"type": "NUMBER", "index": 4, "name": "START_BLOCK", "comment": ""}, "PROXY_CREATED_BLOCK": {"type": "NUMBER", "index": 5, "name": "PROXY_CREATED_BLOCK", "comment": ""}, "SIMPLE_EVENT_NAME": {"type": "TEXT", "index": 6, "name": "SIMPLE_EVENT_NAME", "comment": ""}, "EVENT_SIGNATURE": {"type": "TEXT", "index": 7, "name": "EVENT_SIGNATURE", "comment": ""}, "END_BLOCK": {"type": "NUMBER", "index": 8, "name": "END_BLOCK", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "PROXY_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 10, "name": "PROXY_INSERTED_TIMESTAMP", "comment": ""}, "_UPDATED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_UPDATED_TIMESTAMP", "comment": ""}, "COMPLETE_EVENT_ABIS_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_EVENT_ABIS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": ""}, "IMPLEMENTATION_CONTRACT": {"type": "TEXT", "index": 16, "name": "IMPLEMENTATION_CONTRACT", "comment": ""}, "IMPLEMENTATION_CREATED_BLOCK": {"type": "NUMBER", "index": 17, "name": "IMPLEMENTATION_CREATED_BLOCK", "comment": ""}, "IMPLEMENTATION_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "IMPLEMENTATION_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__complete_event_abis_full"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_AMOUNT_UNADJ.7747f27c90": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_AMOUNT_UNADJ", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_AMOUNT_UNADJ.7747f27c90"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_TO_ADDRESS__0_xX_0_9a_fA_F_.f8d47ec7e6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_TRACES_FULL_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:48UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_TO_ADDRESS__0_xX_0_9a_fA_F_.f8d47ec7e6"}, "model.fsc_evm.silver_bridge__symbiosis_synthesizerequest": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "SYMBIOSIS_SYNTHESIZEREQUEST", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 10, "name": "EVENT_REMOVED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 11, "name": "TX_SUCCEEDED", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 12, "name": "BRIDGE_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 15, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 16, "name": "AMOUNT", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "NUMBER", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "ID": {"type": "TEXT", "index": 18, "name": "ID", "comment": null}, "REVERTABLE_ADDRESS": {"type": "TEXT", "index": 19, "name": "REVERTABLE_ADDRESS", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 20, "name": "TOKEN_ADDRESS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 24, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 25, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:30UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 26081280, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 116193, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__symbiosis_synthesizerequest"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.23850b9de7": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_BRIDGE", "name": "HOP_L1CANONICALTOKEN_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.23850b9de7"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_BLOCK_TIMESTAMP__hour__2.b2b7b2723b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_BLOCK_TIMESTAMP__hour__2.b2b7b2723b"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent_INSERTED_TIMESTAMP__hour__2.c1b0f8737b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "RECEIPTS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent_INSERTED_TIMESTAMP__hour__2.c1b0f8737b"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.eafbf3d59d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TOFUNFT_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.eafbf3d59d"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.11ad7f4a46": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_SILVER", "name": "DECODED_LOGS_FULL_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.11ad7f4a46"}, "test.fsc_evm.not_null_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP.2bbb0bb170": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "DECODED_LOGS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": null}, "DECODED_DATA": {"type": "VARIANT", "index": 6, "name": "DECODED_DATA", "comment": null}, "TRANSFORMED": {"type": "VARIANT", "index": 7, "name": "TRANSFORMED", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 8, "name": "DECODED_FLAT", "comment": null}, "DECODED_LOGS_ID": {"type": "TEXT", "index": 9, "name": "DECODED_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP.2bbb0bb170"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_EVENT_NAME.c17f59a2a8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_EVENT_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_EVENT_NAME.c17f59a2a8"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_BLOCK_NUMBER.37fef61b1d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "POLYMARKET_FILLED_ORDERS_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "QUESTION": {"type": "TEXT", "index": 10, "name": "QUESTION", "comment": null}, "MARKET_SLUG": {"type": "TEXT", "index": 11, "name": "MARKET_SLUG", "comment": null}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "END_DATE_ISO", "comment": null}, "OUTCOME": {"type": "TEXT", "index": 13, "name": "OUTCOME", "comment": null}, "ORDER_HASH": {"type": "TEXT", "index": 14, "name": "ORDER_HASH", "comment": null}, "MAKER": {"type": "TEXT", "index": 15, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 16, "name": "TAKER", "comment": null}, "CONDITION_ID": {"type": "TEXT", "index": 17, "name": "CONDITION_ID", "comment": null}, "QUESTION_ID": {"type": "TEXT", "index": 18, "name": "QUESTION_ID", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 19, "name": "ASSET_ID", "comment": null}, "MAKER_ASSET_ID": {"type": "TEXT", "index": 20, "name": "MAKER_ASSET_ID", "comment": null}, "TAKER_ASSET_ID": {"type": "TEXT", "index": 21, "name": "TAKER_ASSET_ID", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "AMOUNT_USD", "comment": null}, "SHARES": {"type": "FLOAT", "index": 23, "name": "SHARES", "comment": null}, "PRICE_PER_SHARE": {"type": "FLOAT", "index": 24, "name": "PRICE_PER_SHARE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "POLYMARKET_FILLED_ORDERS_ID": {"type": "TEXT", "index": 27, "name": "POLYMARKET_FILLED_ORDERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_BLOCK_NUMBER.37fef61b1d"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_ORIGIN_FUNCTION_SIGNATURE.f967f0e608": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_ORIGIN_FUNCTION_SIGNATURE.f967f0e608"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3a97986c59": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_TRACES_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3a97986c59"}, "test.fsc_evm.not_null_test_silver__blocks_full__INSERTED_TIMESTAMP.1d36f7af40": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "BLOCKS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BLOCKS_ID": {"type": "TEXT", "index": 5, "name": "BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 8, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__blocks_full__INSERTED_TIMESTAMP.1d36f7af40"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_EVENT_REMOVED.c575d9ca64": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_EVENT_REMOVED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_EVENT_REMOVED.c575d9ca64"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PROTOCOL_MARKET.2cdfbbc5f5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_PROTOCOL_MARKET", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PROTOCOL_MARKET.2cdfbbc5f5"}, "model.polygon_models.silver_olas__getservice_reads": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_OLAS", "name": "GETSERVICE_READS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"READ_OUTPUT": {"type": "VARIANT", "index": 1, "name": "READ_OUTPUT", "comment": ""}, "READ_ID": {"type": "TEXT", "index": 2, "name": "READ_ID", "comment": ""}, "READ_RESULT": {"type": "TEXT", "index": 3, "name": "READ_RESULT", "comment": ""}, "READ_ID_OBJECT": {"type": "ARRAY", "index": 4, "name": "READ_ID_OBJECT", "comment": ""}, "SEGMENTED_READ": {"type": "ARRAY", "index": 5, "name": "SEGMENTED_READ", "comment": ""}, "FUNCTION_SIG": {"type": "TEXT", "index": 6, "name": "FUNCTION_SIG", "comment": ""}, "FUNCTION_NAME": {"type": "TEXT", "index": 7, "name": "FUNCTION_NAME", "comment": ""}, "FUNCTION_INPUT": {"type": "NUMBER", "index": 8, "name": "FUNCTION_INPUT", "comment": ""}, "DATA": {"type": "TEXT", "index": 9, "name": "DATA", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 11, "name": "BLOCK_NUMBER", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "READS_ARRAY": {"type": "ARRAY", "index": 13, "name": "READS_ARRAY", "comment": ""}, "AGENT_IDS": {"type": "ARRAY", "index": 14, "name": "AGENT_IDS", "comment": ""}, "GETSERVICE_READS_ID": {"type": "TEXT", "index": 15, "name": "GETSERVICE_READS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 18, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 71680, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver_olas__getservice_reads"}, "model.fsc_evm.silver_dex__zyberswap_v2_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "ZYBERSWAP_V2_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 6, "name": "EVENT_NAME", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 7, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 8, "name": "TOKEN1", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 14, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__zyberswap_v2_pools"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_SUCCEEDED.217432b07d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_TX_SUCCEEDED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_SUCCEEDED.217432b07d"}, "test.fsc_evm.txs_match_blocks_test_gold__fact_transactions_recent_ref_test_gold__fact_blocks_recent_.788e86d48f": {"metadata": {"type": "BASE TABLE", "schema": "TXS_MATCH_BLOCKS_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_REF_TEST_GOLD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "ACTUAL_COUNT": {"type": "NUMBER", "index": 2, "name": "ACTUAL_COUNT", "comment": null}, "EXPECTED_COUNT": {"type": "NUMBER", "index": 3, "name": "EXPECTED_COUNT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.txs_match_blocks_test_gold__fact_transactions_recent_ref_test_gold__fact_blocks_recent_.788e86d48f"}, "model.fsc_evm.silver_dex__hashflow_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "HASHFLOW_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 12, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 13, "name": "TOKEN_OUT", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 16, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 19, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 106749440, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 968992, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__hashflow_swaps"}, "model.fsc_evm.bronze__token_reads_fr": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "TOKEN_READS_FR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PARTITION_KEY": {"type": "NUMBER", "index": 1, "name": "PARTITION_KEY", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 2, "name": "CONTRACT_ADDRESS", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 3, "name": "VALUE", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 6, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__token_reads_fr"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_FACT_BLOCKS_ID.0ff5f55ac4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_FACT_BLOCKS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_FACT_BLOCKS_ID.0ff5f55ac4"}, "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": ""}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": ""}, "BALANCE_HEX": {"type": "TEXT", "index": 7, "name": "BALANCE_HEX", "comment": ""}, "BALANCE_RAW": {"type": "NUMBER", "index": 8, "name": "BALANCE_RAW", "comment": ""}, "BALANCE_PRECISE": {"type": "TEXT", "index": 9, "name": "BALANCE_PRECISE", "comment": ""}, "BALANCE": {"type": "FLOAT", "index": 10, "name": "BALANCE", "comment": ""}, "BALANCE_USD": {"type": "FLOAT", "index": 11, "name": "BALANCE_USD", "comment": ""}, "EZ_BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 12, "name": "EZ_BALANCES_ERC20_DAILY_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_SELLER_ADDRESS.efdfee2c74": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_SELLER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_SELLER_ADDRESS.efdfee2c74"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__abis_recent_CONTRACT_ADDRESS.136d8d9ae5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "ABIS_RECENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__abis_recent_CONTRACT_ADDRESS.136d8d9ae5"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d286ab4bf8": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d286ab4bf8"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_INPUT_DATA.32f10c63e5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_INPUT_DATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_INPUT_DATA.32f10c63e5"}, "model.fsc_evm.core__fact_event_logs": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "FACT_EVENT_LOGS", "database": "POLYGON", "comment": "## What\n\nThis table contains raw event logs emitted by smart contracts during transaction execution. Each row represents a single event with its topics and data. Events are the primary mechanism for smart contracts to communicate state changes and must be explicitly emitted in contract code.\n\n## Key Use Cases\n\n- Tracking raw blockchain events before decoding\n- Filtering events by signature (topic_0) for specific event types\n- Analyzing contract activity patterns and event frequencies\n- Building custom event decoders for unsupported contracts\n- Monitoring specific addresses via indexed parameters\n\n## Important Relationships\n\n- **Join with ez_decoded_event_logs**: Use `tx_hash` and `event_index` for simplified decoded data\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Join with dim_contracts**: Use `contract_address` for contract metadata\n\n## Commonly-used Fields\n\n- `topic_0`: Event signature hash for filtering event types\n- `contract_address`: Smart contract that emitted the event\n- `topics`: Array of indexed parameters (max 4)\n- `data`: Hex-encoded non-indexed parameters\n- `event_index`: Sequential position within transaction\n- `tx_hash`: Transaction containing this event\n\n## Sample queries\n\n```sql\n-- Find all ERC-20 Transfer events in last 24 hours\nSELECT \n block_timestamp,\n tx_hash,\n contract_address,\n topics[1] AS from_address_padded,\n topics[2] AS to_address_padded,\n data AS amount_hex,\n event_index\nFROM .core.fact_event_logs\nWHERE topic_0 = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND ARRAY_SIZE(topics) = 3 -- ERC-20 has 3 topics\n AND block_timestamp >= CURRENT_DATE - 1\nLIMIT 100;\n\n-- Most active contracts by event count\nSELECT \n contract_address,\n COUNT(*) AS event_count,\n COUNT(DISTINCT tx_hash) AS unique_txs,\n COUNT(DISTINCT topic_0) AS unique_event_types,\n MIN(block_timestamp) AS first_seen,\n MAX(block_timestamp) AS last_seen\nFROM .core.fact_event_logs\nWHERE block_timestamp >= CURRENT_DATE - 7\nGROUP BY 1\nORDER BY 2 DESC\nLIMIT 50;\n\n-- Event patterns within transactions\nSELECT \n tx_hash,\n COUNT(*) AS events_in_tx,\n COUNT(DISTINCT contract_address) AS contracts_touched,\n ARRAY_AGG(DISTINCT topic_0) AS event_signatures\nFROM .core.fact_event_logs\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1\nHAVING COUNT(*) > 10\nORDER BY 2 DESC\nLIMIT 20;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering"}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events"}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": "Array containing all indexed parameters of the event.\n\nExample: ['0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', '0x0000000000000000000000001234567890123456789012345678901234567890']"}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": "Event signature hash - keccak256 of the event declaration.\n\nExample: '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'"}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": "First indexed parameter of the event (if exists).\n\nExample: '0x0000000000000000000000001234567890123456789012345678901234567890'"}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": "Second indexed parameter of the event (if exists).\n\nExample: '0x000000000000000000000000abcdefabcdefabcdefabcdefabcdefabcdefabcd'"}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": "Third indexed parameter of the event (if exists).\n\nExample: '0x0000000000000000000000000000000000000000000000000000000000000001'"}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": "Hex-encoded non-indexed event parameters.\n\nExample: '0x0000000000000000000000000000000000000000000000000de0b6b3a7640000'"}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": "Boolean flag indicating if the event was removed due to chain reorganization.\n\nExample: false"}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": "Boolean indicator of transaction success.\n\n**Values**:\n- TRUE: Transaction executed successfully\n- FALSE: Transaction failed/reverted"}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 3986253031936, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 31811634720, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.core__fact_event_logs"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_CONTRACT_ADDRESS.d7ef6c7fb1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:41UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_CONTRACT_ADDRESS.d7ef6c7fb1"}, "test.fsc_evm.not_null_test_silver__traces_full_TRACE_ADDRESS.91648874f9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRACES_FULL_TRACE_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 2, "name": "TX_POSITION", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 3, "name": "TRACE_ADDRESS", "comment": null}, "PARENT_TRACE_ADDRESS": {"type": "TEXT", "index": 4, "name": "PARENT_TRACE_ADDRESS", "comment": null}, "TRACE_ADDRESS_ARRAY": {"type": "ARRAY", "index": 5, "name": "TRACE_ADDRESS_ARRAY", "comment": null}, "TRACE_JSON": {"type": "OBJECT", "index": 6, "name": "TRACE_JSON", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 7, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRACES_ID": {"type": "TEXT", "index": 9, "name": "TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__traces_full_TRACE_ADDRESS.91648874f9"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_SYMBOLS.34cfc0a3e6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_SYMBOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_SYMBOLS.34cfc0a3e6"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TOKEN_ID.8827c1fad9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_TOKEN_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TOKEN_ID.8827c1fad9"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_SHA3_UNCLES.0d2fae6c58": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_SHA3_UNCLES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_SHA3_UNCLES.0d2fae6c58"}, "model.fsc_evm.silver_dex__camelot_v2_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "CAMELOT_V2_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "AMOUNT0_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "NUMBER", "index": 13, "name": "AMOUNT1_UNADJ", "comment": null}, "TOKEN0_ADDRESS": {"type": "TEXT", "index": 14, "name": "TOKEN0_ADDRESS", "comment": null}, "TOKEN1_ADDRESS": {"type": "TEXT", "index": 15, "name": "TOKEN1_ADDRESS", "comment": null}, "PRICE": {"type": "NUMBER", "index": 16, "name": "PRICE", "comment": null}, "LIQUIDITY": {"type": "NUMBER", "index": 17, "name": "LIQUIDITY", "comment": null}, "TICK": {"type": "NUMBER", "index": 18, "name": "TICK", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 19, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 20, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 21, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 22, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 26, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 27, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__camelot_v2_swaps"}, "model.fsc_evm.silver_lending__complete_lending_flashloans": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": ""}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": ""}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": ""}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": ""}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": ""}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": ""}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": ""}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": ""}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": ""}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": ""}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": ""}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": ""}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1099922944, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE, platform)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4491728, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__traces_full_TRACES_ID.9083101264": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "TRACES_FULL_TRACES_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TRACES_ID": {"type": "TEXT", "index": 1, "name": "TRACES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 11:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__traces_full_TRACES_ID.9083101264"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_GAS_LIMIT__NUMBER__FLOAT.bdee5c4523": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_FULL_GAS_LIMIT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_GAS_LIMIT__NUMBER__FLOAT.bdee5c4523"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_SHARES.4e8255f345": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "POLYMARKET_FILLED_ORDERS_SHARES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "QUESTION": {"type": "TEXT", "index": 10, "name": "QUESTION", "comment": null}, "MARKET_SLUG": {"type": "TEXT", "index": 11, "name": "MARKET_SLUG", "comment": null}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "END_DATE_ISO", "comment": null}, "OUTCOME": {"type": "TEXT", "index": 13, "name": "OUTCOME", "comment": null}, "ORDER_HASH": {"type": "TEXT", "index": 14, "name": "ORDER_HASH", "comment": null}, "MAKER": {"type": "TEXT", "index": 15, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 16, "name": "TAKER", "comment": null}, "CONDITION_ID": {"type": "TEXT", "index": 17, "name": "CONDITION_ID", "comment": null}, "QUESTION_ID": {"type": "TEXT", "index": 18, "name": "QUESTION_ID", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 19, "name": "ASSET_ID", "comment": null}, "MAKER_ASSET_ID": {"type": "TEXT", "index": 20, "name": "MAKER_ASSET_ID", "comment": null}, "TAKER_ASSET_ID": {"type": "TEXT", "index": 21, "name": "TAKER_ASSET_ID", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "AMOUNT_USD", "comment": null}, "SHARES": {"type": "FLOAT", "index": 23, "name": "SHARES", "comment": null}, "PRICE_PER_SHARE": {"type": "FLOAT", "index": 24, "name": "PRICE_PER_SHARE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "POLYMARKET_FILLED_ORDERS_ID": {"type": "TEXT", "index": 27, "name": "POLYMARKET_FILLED_ORDERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_SHARES.4e8255f345"}, "test.fsc_evm.not_null_silver__complete_token_prices_PRICE.9b78fa1dae": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_TOKEN_PRICES_PRICE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 3, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 5, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 6, "name": "DECIMALS", "comment": null}, "PRICE": {"type": "FLOAT", "index": 7, "name": "PRICE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN", "comment": null}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 9, "name": "BLOCKCHAIN_NAME", "comment": null}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 10, "name": "BLOCKCHAIN_ID", "comment": null}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 11, "name": "IS_IMPUTED", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 12, "name": "IS_DEPRECATED", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 13, "name": "IS_VERIFIED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 14, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 15, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_TOKEN_PRICES_ID": {"type": "TEXT", "index": 19, "name": "COMPLETE_TOKEN_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 20, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_token_prices_PRICE.9b78fa1dae"}, "model.fsc_evm.silver__complete_native_asset_metadata": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_NATIVE_ASSET_METADATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": ""}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 5, "name": "BLOCKCHAIN", "comment": ""}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 6, "name": "IS_DEPRECATED", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_NATIVE_ASSET_METADATA_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_NATIVE_ASSET_METADATA_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:13UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 4608, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__complete_native_asset_metadata"}, "test.fsc_evm.not_null_silver__complete_native_prices_PROVIDER.391be2433a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NATIVE_PRICES_PROVIDER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "PRICE": {"type": "FLOAT", "index": 6, "name": "PRICE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN", "comment": null}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 8, "name": "IS_IMPUTED", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 10, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 11, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_NATIVE_PRICES_ID": {"type": "TEXT", "index": 15, "name": "COMPLETE_NATIVE_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_native_prices_PROVIDER.391be2433a"}, "model.polygon_models.silver_olas__create_service_multisigs": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_OLAS", "name": "CREATE_SERVICE_MULTISIGS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": ""}, "TOPIC_0": {"type": "TEXT", "index": 9, "name": "TOPIC_0", "comment": ""}, "TOPIC_1": {"type": "TEXT", "index": 10, "name": "TOPIC_1", "comment": ""}, "TOPIC_2": {"type": "TEXT", "index": 11, "name": "TOPIC_2", "comment": ""}, "TOPIC_3": {"type": "TEXT", "index": 12, "name": "TOPIC_3", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 13, "name": "EVENT_NAME", "comment": ""}, "DATA": {"type": "TEXT", "index": 14, "name": "DATA", "comment": ""}, "SEGMENTED_DATA": {"type": "ARRAY", "index": 15, "name": "SEGMENTED_DATA", "comment": ""}, "ID": {"type": "NUMBER", "index": 16, "name": "ID", "comment": ""}, "MULTISIG_ADDRESS": {"type": "TEXT", "index": 17, "name": "MULTISIG_ADDRESS", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 18, "name": "_LOG_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 19, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "CREATE_SERVICE_MULTISIGS_ID": {"type": "TEXT", "index": 20, "name": "CREATE_SERVICE_MULTISIGS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 23, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:35UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 9216, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver_olas__create_service_multisigs"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_TRANSACTIONS_ROOT.53175038a7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_TRANSACTIONS_ROOT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:28UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_TRANSACTIONS_ROOT.53175038a7"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_TX_HASH__0_xX_0_9a_fA_F_.db140398eb": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_6_SALES_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_TX_HASH__0_xX_0_9a_fA_F_.db140398eb"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_erc20_daily_ADDRESS__0_xX_0_9a_fA_F_.a753ef793c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "BALANCES_ERC20_DAILY_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:50UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_erc20_daily_ADDRESS__0_xX_0_9a_fA_F_.a753ef793c"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.76a34d263a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.76a34d263a"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PLATFORM.e82777c8c0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_PLATFORM", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PLATFORM.e82777c8c0"}, "test.polygon_models.not_null_silver__mooar_sales_TOTAL_PRICE_RAW.528a859034": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_TOTAL_PRICE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_TOTAL_PRICE_RAW.528a859034"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_FACT_EVENT_LOGS_ID.f7cadc54a4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_FACT_EVENT_LOGS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_FACT_EVENT_LOGS_ID.f7cadc54a4"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_CONTRACT_ADDRESS.7df8e73c73": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_CONTRACT_ADDRESS.7df8e73c73"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_4_sales_PLATFORM_NAME__opensea.cab2dd30f7": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_SET_SILVER", "name": "SEAPORT_1_4_SALES_PLATFORM_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE_FIELD": {"type": "TEXT", "index": 1, "name": "VALUE_FIELD", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_4_sales_PLATFORM_NAME__opensea.cab2dd30f7"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PRICE_USD__NUMBER__FLOAT.3865ef9872": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "COMPLETE_NFT_SALES_PRICE_USD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PRICE_USD__NUMBER__FLOAT.3865ef9872"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_INDEX.cd56f89c46": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_INDEX.cd56f89c46"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_HASH.7d31037652": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_HASH.7d31037652"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS__0_xX_0_9a_fA_F_.25648fcf6b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_BRIDGE_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS__0_xX_0_9a_fA_F_.25648fcf6b"}, "test.polygon_models.not_null_silver__mooar_sales_BUYER_ADDRESS.888d3bd2c2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_BUYER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_BUYER_ADDRESS.888d3bd2c2"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_ADDRESS.d54ed6a481": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_RECENT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 7, "name": "BALANCE_HEX", "comment": null}, "BALANCE_RAW": {"type": "NUMBER", "index": 8, "name": "BALANCE_RAW", "comment": null}, "BALANCE_PRECISE": {"type": "TEXT", "index": 9, "name": "BALANCE_PRECISE", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 10, "name": "BALANCE", "comment": null}, "BALANCE_USD": {"type": "FLOAT", "index": 11, "name": "BALANCE_USD", "comment": null}, "EZ_BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 12, "name": "EZ_BALANCES_ERC20_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_ADDRESS.d54ed6a481"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TYPE.37341141f3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 15, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 19, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 20, "name": "TOKEN_SYMBOL", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 21, "name": "TOKEN_DECIMALS", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 23, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 24, "name": "AMOUNT_USD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IS_VERIFIED", "comment": null}, "_ID": {"type": "TEXT", "index": 26, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_BRIDGE_ACTIVITY_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_BRIDGE_ACTIVITY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TYPE.37341141f3"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.1ff046cc57": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_6_SALES_TOTAL_PRICE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.1ff046cc57"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__mooar_sales_BLOCK_TIMESTAMP__day__1.799f3f451c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "MOOAR_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__mooar_sales_BLOCK_TIMESTAMP__day__1.799f3f451c"}, "model.fsc_evm.bronze__transactions": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "TRANSACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 7, "name": "BLOCK_NUMBER", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__transactions"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full_INSERTED_TIMESTAMP__hour__2.316bf2d6b0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "TRACES_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full_INSERTED_TIMESTAMP__hour__2.316bf2d6b0"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_l1canonicaltoken_CONTRACT_ADDRESS.1a0299fdf6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_BRIDGE", "name": "HOP_L1CANONICALTOKEN_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_l1canonicaltoken_CONTRACT_ADDRESS.1a0299fdf6"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_EVENT_NAME.8723d6958b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "POLYMARKET_FILLED_ORDERS_EVENT_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "QUESTION": {"type": "TEXT", "index": 10, "name": "QUESTION", "comment": null}, "MARKET_SLUG": {"type": "TEXT", "index": 11, "name": "MARKET_SLUG", "comment": null}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "END_DATE_ISO", "comment": null}, "OUTCOME": {"type": "TEXT", "index": 13, "name": "OUTCOME", "comment": null}, "ORDER_HASH": {"type": "TEXT", "index": 14, "name": "ORDER_HASH", "comment": null}, "MAKER": {"type": "TEXT", "index": 15, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 16, "name": "TAKER", "comment": null}, "CONDITION_ID": {"type": "TEXT", "index": 17, "name": "CONDITION_ID", "comment": null}, "QUESTION_ID": {"type": "TEXT", "index": 18, "name": "QUESTION_ID", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 19, "name": "ASSET_ID", "comment": null}, "MAKER_ASSET_ID": {"type": "TEXT", "index": 20, "name": "MAKER_ASSET_ID", "comment": null}, "TAKER_ASSET_ID": {"type": "TEXT", "index": 21, "name": "TAKER_ASSET_ID", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "AMOUNT_USD", "comment": null}, "SHARES": {"type": "FLOAT", "index": 23, "name": "SHARES", "comment": null}, "PRICE_PER_SHARE": {"type": "FLOAT", "index": 24, "name": "PRICE_PER_SHARE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "POLYMARKET_FILLED_ORDERS_ID": {"type": "TEXT", "index": 27, "name": "POLYMARKET_FILLED_ORDERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_EVENT_NAME.8723d6958b"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_registrations_OWNER_ADDRESS__0_xX_0_9a_fA_F_.bdfdf5df47": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_OLAS", "name": "SERVICE_REGISTRATIONS_OWNER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_registrations_OWNER_ADDRESS__0_xX_0_9a_fA_F_.bdfdf5df47"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PLATFORM.56c21f121c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_PLATFORM", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PLATFORM.56c21f121c"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.cbfe040895": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.cbfe040895"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TX_HASH.d3201d95e2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TX_HASH.d3201d95e2"}, "model.fsc_evm.test_silver__blocks_recent": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "BLOCKS_RECENT", "database": "POLYGON", "comment": "This is a view used to test the last three days of blocks.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BLOCKS_ID": {"type": "TEXT", "index": 5, "name": "BLOCKS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 8, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__blocks_recent"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_CONTRACT_ADDRESS.808d802f1a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_CONTRACT_ADDRESS.808d802f1a"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.6f01aa59cb": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_TRACES_RECENT_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.6f01aa59cb"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_BLOCK_TIMESTAMP.1cad889870": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_BLOCK_TIMESTAMP.1cad889870"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS.d459ebe228": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS.d459ebe228"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.fe4a91e952": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_5_SALES_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.fe4a91e952"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_HASH.fc40219b9b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_BLOCK_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_HASH.fc40219b9b"}, "model.fsc_evm.silver_stablecoins__supply_by_address_imputed": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_STABLECOINS", "name": "SUPPLY_BY_ADDRESS_IMPUTED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_DATE": {"type": "DATE", "index": 1, "name": "BLOCK_DATE", "comment": ""}, "ADDRESS": {"type": "TEXT", "index": 2, "name": "ADDRESS", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 3, "name": "CONTRACT_ADDRESS", "comment": ""}, "BALANCE": {"type": "FLOAT", "index": 4, "name": "BALANCE", "comment": ""}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 5, "name": "IS_IMPUTED", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": ""}, "STABLECOINS_SUPPLY_BY_ADDRESS_IMPUTED_ID": {"type": "TEXT", "index": 8, "name": "STABLECOINS_SUPPLY_BY_ADDRESS_IMPUTED_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:31UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 576289561600, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_date)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 14133895524, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_stablecoins__supply_by_address_imputed"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_flashloans__LOG_ID.b5e2ccc546": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_flashloans__LOG_ID.b5e2ccc546"}, "test.polygon_models.not_null_silver__seaport_1_4_sales__INSERTED_TIMESTAMP.7cc0485f0d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales__INSERTED_TIMESTAMP.7cc0485f0d"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.53bf4df35e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "BLOCKS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.53bf4df35e"}, "seed.fsc_evm.silver_bridge__ccip_chain_seed": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "CCIP_CHAIN_SEED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CHAIN_NAME": {"type": "TEXT", "index": 1, "name": "CHAIN_NAME", "comment": null}, "CHAIN_SELECTOR": {"type": "NUMBER", "index": 2, "name": "CHAIN_SELECTOR", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2560, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 87, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver_bridge__ccip_chain_seed"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4b40cff5db": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TOFUNFT_SALES_BUYER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4b40cff5db"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_HASH.3a5ade2127": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_HASH.3a5ade2127"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_POSITION.84f236ac88": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_POSITION.84f236ac88"}, "test.fsc_evm.not_null_test_silver__traces_recent_MODIFIED_TIMESTAMP.c50eaa6905": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRACES_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 2, "name": "TX_POSITION", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 3, "name": "TRACE_ADDRESS", "comment": null}, "PARENT_TRACE_ADDRESS": {"type": "TEXT", "index": 4, "name": "PARENT_TRACE_ADDRESS", "comment": null}, "TRACE_ADDRESS_ARRAY": {"type": "ARRAY", "index": 5, "name": "TRACE_ADDRESS_ARRAY", "comment": null}, "TRACE_JSON": {"type": "OBJECT", "index": 6, "name": "TRACE_JSON", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 7, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRACES_ID": {"type": "TEXT", "index": 9, "name": "TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__traces_recent_MODIFIED_TIMESTAMP.c50eaa6905"}, "test.polygon_models.not_null_silver_olas__getservice_reads_BLOCK_NUMBER.4525478d4f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "GETSERVICE_READS_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"READ_OUTPUT": {"type": "VARIANT", "index": 1, "name": "READ_OUTPUT", "comment": null}, "READ_ID": {"type": "TEXT", "index": 2, "name": "READ_ID", "comment": null}, "READ_RESULT": {"type": "TEXT", "index": 3, "name": "READ_RESULT", "comment": null}, "READ_ID_OBJECT": {"type": "ARRAY", "index": 4, "name": "READ_ID_OBJECT", "comment": null}, "SEGMENTED_READ": {"type": "ARRAY", "index": 5, "name": "SEGMENTED_READ", "comment": null}, "FUNCTION_SIG": {"type": "TEXT", "index": 6, "name": "FUNCTION_SIG", "comment": null}, "FUNCTION_NAME": {"type": "TEXT", "index": 7, "name": "FUNCTION_NAME", "comment": null}, "FUNCTION_INPUT": {"type": "NUMBER", "index": 8, "name": "FUNCTION_INPUT", "comment": null}, "DATA": {"type": "TEXT", "index": 9, "name": "DATA", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 11, "name": "BLOCK_NUMBER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "READS_ARRAY": {"type": "ARRAY", "index": 13, "name": "READS_ARRAY", "comment": null}, "AGENT_IDS": {"type": "ARRAY", "index": 14, "name": "AGENT_IDS", "comment": null}, "GETSERVICE_READS_ID": {"type": "TEXT", "index": 15, "name": "GETSERVICE_READS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 18, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__getservice_reads_BLOCK_NUMBER.4525478d4f"}, "model.fsc_evm.test_gold__fact_event_logs_recent": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT", "database": "POLYGON", "comment": "This is a view used to test the last three days of fact event logs.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": ""}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": ""}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": ""}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": ""}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": ""}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": ""}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": ""}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": ""}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_R.25ff796006": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_R", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_R.25ff796006"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_daily_recent_BALANCE__NUMBER__FLOAT.ceee5e0cc7": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_BALANCES_NATIVE_DAILY_RECENT_BALANCE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:50UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_daily_recent_BALANCE__NUMBER__FLOAT.ceee5e0cc7"}, "test.fsc_evm.not_null_test_silver__blocks_full_MODIFIED_TIMESTAMP.463b450a84": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "BLOCKS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BLOCKS_ID": {"type": "TEXT", "index": 5, "name": "BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 8, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__blocks_full_MODIFIED_TIMESTAMP.463b450a84"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.8c6610e7ff": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.8c6610e7ff"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_TX_HASH__0_xX_0_9a_fA_F_.f22d26a2aa": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "MOOAR_SALES_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_TX_HASH__0_xX_0_9a_fA_F_.f22d26a2aa"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_TOTAL_PRICE_RAW.470d158317": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_TOTAL_PRICE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_TOTAL_PRICE_RAW.470d158317"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_1_sales_nft_log_id.b926efc93c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "SEAPORT_1_1_SALES_NFT_LOG_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"NFT_LOG_ID": {"type": "TEXT", "index": 1, "name": "NFT_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_1_sales_nft_log_id.b926efc93c"}, "test.fsc_evm.not_null_silver__complete_native_prices_IS_IMPUTED.9b41704925": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NATIVE_PRICES_IS_IMPUTED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "PRICE": {"type": "FLOAT", "index": 6, "name": "PRICE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN", "comment": null}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 8, "name": "IS_IMPUTED", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 10, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 11, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_NATIVE_PRICES_ID": {"type": "TEXT", "index": 15, "name": "COMPLETE_NATIVE_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_native_prices_IS_IMPUTED.9b41704925"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b52e7b4dcf": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b52e7b4dcf"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_SELLER_ADDRESS.d1219d17a2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_SELLER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_SELLER_ADDRESS.d1219d17a2"}, "test.polygon_models.not_null_silver_olas__service_registrations_BLOCK_NUMBER.07ad8d6819": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "SERVICE_REGISTRATIONS_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OWNER_ADDRESS": {"type": "TEXT", "index": 10, "name": "OWNER_ADDRESS", "comment": null}, "MULTISIG_ADDRESS": {"type": "TEXT", "index": 11, "name": "MULTISIG_ADDRESS", "comment": null}, "SERVICE_ID": {"type": "NUMBER", "index": 12, "name": "SERVICE_ID", "comment": null}, "CONFIG_HASH": {"type": "TEXT", "index": 13, "name": "CONFIG_HASH", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 14, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}, "SERVICE_REGISTRATION_ID": {"type": "TEXT", "index": 16, "name": "SERVICE_REGISTRATION_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 19, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__service_registrations_BLOCK_NUMBER.07ad8d6819"}, "model.fsc_evm.silver_dex__superchain_slipstream_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "SUPERCHAIN_SLIPSTREAM_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 10, "name": "TICK_SPACING", "comment": null}, "INIT_TICK": {"type": "FLOAT", "index": 11, "name": "INIT_TICK", "comment": null}, "TICK_LOWER": {"type": "FLOAT", "index": 12, "name": "TICK_LOWER", "comment": null}, "TICK_UPPER": {"type": "FLOAT", "index": 13, "name": "TICK_UPPER", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 14, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 15, "name": "TOKEN1", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 16, "name": "LIQUIDITY_PROVIDER", "comment": null}, "OWNER_ADDRESS": {"type": "TEXT", "index": 17, "name": "OWNER_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 18, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 19, "name": "RECEIVER", "comment": null}, "LIQUIDITY_AMOUNT_UNADJ": {"type": "FLOAT", "index": 20, "name": "LIQUIDITY_AMOUNT_UNADJ", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 21, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT1_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 23, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 24, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 25, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 26, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 27, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-21 18:45UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__superchain_slipstream_pool_actions"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_ORIGIN_FUNCTION_SIGNATURE.d3332ad3dd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_ORIGIN_FUNCTION_SIGNATURE.d3332ad3dd"}, "model.fsc_utils._datashare___create_gold": {"metadata": {"type": "BASE TABLE", "schema": "_DATASHARE", "name": "_CREATE_GOLD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"DDL": {"type": "TEXT", "index": 1, "name": "DDL", "comment": null}, "DDL_HASH": {"type": "TEXT", "index": 2, "name": "DDL_HASH", "comment": null}, "DDL_CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "DDL_CREATED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-11 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1153024, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 80, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_utils._datashare___create_gold"}, "test.fsc_evm.not_null_test_silver__created_contracts_full_BLOCK_TIMESTAMP.656e8a5526": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "CREATED_CONTRACTS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CREATED_CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CREATED_CONTRACT_ADDRESS", "comment": null}, "CREATOR_ADDRESS": {"type": "TEXT", "index": 5, "name": "CREATOR_ADDRESS", "comment": null}, "CREATED_CONTRACT_INPUT": {"type": "TEXT", "index": 6, "name": "CREATED_CONTRACT_INPUT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CREATED_CONTRACTS_ID": {"type": "TEXT", "index": 8, "name": "CREATED_CONTRACTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 11, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__created_contracts_full_BLOCK_TIMESTAMP.656e8a5526"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_FROM_ADDRESS.fe828e0f8e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_FROM_ADDRESS.fe828e0f8e"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__complete_nft_sales_BLOCK_TIMESTAMP__day__1.40e4447972": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "COMPLETE_NFT_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__complete_nft_sales_BLOCK_TIMESTAMP__day__1.40e4447972"}, "test.polygon_models.not_null_silver__mooar_sales_TX_FEE.5eed484409": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_TX_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_TX_FEE.5eed484409"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_CONTRACT_ADDRESS.a29ab93899": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_FULL_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 7, "name": "BALANCE_HEX", "comment": null}, "BALANCE_RAW": {"type": "NUMBER", "index": 8, "name": "BALANCE_RAW", "comment": null}, "BALANCE_PRECISE": {"type": "TEXT", "index": 9, "name": "BALANCE_PRECISE", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 10, "name": "BALANCE", "comment": null}, "BALANCE_USD": {"type": "FLOAT", "index": 11, "name": "BALANCE_USD", "comment": null}, "EZ_BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 12, "name": "EZ_BALANCES_ERC20_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_CONTRACT_ADDRESS.a29ab93899"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.a1eee69661": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_5_SALES_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.a1eee69661"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP__hour__2.509d7d2de4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP__hour__2.509d7d2de4"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.0056122d14": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.0056122d14"}, "model.fsc_evm.silver_dex__aerodrome_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "AERODROME_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 10, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 11, "name": "TOKEN1", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 12, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 15, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 16, "name": "AMOUNT1_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 19, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-21 18:36UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__aerodrome_pool_actions"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_token_asset_metadata_TOKEN_ADDRESS__BLOCKCHAIN.d3d6b2a62b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "COMPLETE_TOKEN_ASSET_METADATA_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TOKEN_ADDRESS": {"type": "TEXT", "index": 1, "name": "TOKEN_ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_token_asset_metadata_TOKEN_ADDRESS__BLOCKCHAIN.d3d6b2a62b"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_EVENT_TYPE.a53bf70c11": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_EVENT_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_EVENT_TYPE.a53bf70c11"}, "model.fsc_evm.price__ez_asset_metadata": {"metadata": {"type": "BASE TABLE", "schema": "PRICE", "name": "EZ_ASSET_METADATA", "database": "POLYGON", "comment": "## What\n\nThis curated dimensional table provides comprehensive metadata for tokens and native assets across EVM blockchains. It serves as the authoritative source for asset information, with quality checks and verification status to ensure reliability.\n\n## Key Use Cases\n\n- Asset discovery and verification checking\n- Cross-chain asset mapping and analysis\n- Token metadata lookup for display purposes\n- Filtering for verified or native assets only\n\n## Important Relationships\n\n- **Join with ez_prices_hourly**: For price data enrichment\n- **Join with ez_token_transfers**: For transfer metadata\n\n## Commonly-used Fields\n\n- `token_address`: Contract address (NULL for native assets)\n- `symbol`: Token ticker symbol\n- `name`: Full asset name\n- `decimals`: Token decimal places\n- `is_verified`: Flipside verification status\n- `is_native`: Native asset flag\n- `blockchain`: Network identifier\n\n## Sample Queries\n\n**Verified Asset Discovery**\n```sql\n-- Find all verified USD stablecoins\nSELECT \n blockchain,\n token_address,\n name,\n symbol,\n decimals,\n is_verified\nFROM .price.ez_asset_metadata\nWHERE is_verified = TRUE\n AND (\n symbol IN ('USDC', 'USDT', 'DAI', 'BUSD')\n OR name ILIKE '%USD%'\n OR name ILIKE '%stablecoin%'\n )\n AND is_native = FALSE\nORDER BY blockchain, symbol;\n```\n\n**Cross-Chain Asset Mapping**\n```sql\n-- Find same assets across multiple chains\nWITH asset_presence AS (\n SELECT \n symbol,\n name,\n COUNT(DISTINCT blockchain) AS chain_count,\n ARRAY_AGG(DISTINCT blockchain) AS chains,\n ARRAY_AGG(token_address) AS addresses\n FROM .price.ez_asset_metadata\n WHERE is_native = FALSE\n AND is_verified = TRUE\n GROUP BY 1, 2\n)\nSELECT * FROM asset_presence\nWHERE chain_count > 3\nORDER BY chain_count DESC, symbol;\n```\n\n**Native Asset Reference**\n```sql\n-- Get all native assets with metadata\nSELECT \n blockchain,\n symbol,\n name,\n decimals,\n CASE blockchain\n WHEN 'ethereum' THEN 'Proof of Stake'\n WHEN 'binance' THEN 'Proof of Staked Authority'\n WHEN 'polygon' THEN 'Proof of Stake'\n WHEN 'avalanche' THEN 'Avalanche Consensus'\n ELSE 'Various'\n END AS consensus_mechanism\nFROM .price.ez_asset_metadata\nWHERE is_native = TRUE\nORDER BY blockchain;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TOKEN_ADDRESS": {"type": "TEXT", "index": 1, "name": "TOKEN_ADDRESS", "comment": "Contract address of the token on the blockchain. NULL for native assets (ETH, AVAX, etc.).\n\nExample: '0xa0b86a33e6776a1e7f9f0b8b8b8b8b8b8b8b8b8b'"}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": "Unique identifier for the asset from the price provider. Provider-specific ID format.\n\nExample: 'ethereum'"}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": "Token ticker symbol as commonly recognized. Usually 3-5 uppercase characters.\n\nExample: 'WETH'"}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": "Full name of the asset or token. More descriptive than symbol.\n\nExample: 'Wrapped Ether'"}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": "Number of decimal places for the token. Most ERC-20 tokens use 18 decimals, USDC/USDT use 6, WBTC uses 8.\n\nExample: 18"}, "BLOCKCHAIN": {"type": "TEXT", "index": 6, "name": "BLOCKCHAIN", "comment": "The blockchain network where the asset exists. Lowercase by convention.\n\nExample: 'ethereum'"}, "IS_NATIVE": {"type": "BOOLEAN", "index": 7, "name": "IS_NATIVE", "comment": "Boolean indicating if the asset is the blockchain's native currency. TRUE for ETH on Ethereum, AVAX on Avalanche, etc.\n\nExample: true"}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 8, "name": "IS_DEPRECATED", "comment": "Flag indicating if the asset is no longer actively supported. TRUE for deprecated assets that may have stale prices.\n\nExample: false"}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 9, "name": "IS_VERIFIED", "comment": "Boolean indicating Flipside team verification of the asset. TRUE for manually verified assets with validated metadata.\n\nExample: true"}, "IS_VERIFIED_MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "IS_VERIFIED_MODIFIED_TIMESTAMP", "comment": ""}, "EZ_ASSET_METADATA_ID": {"type": "TEXT", "index": 11, "name": "EZ_ASSET_METADATA_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:16UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 20652032, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 252198, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.price__ez_asset_metadata"}, "model.fsc_evm.test_silver__abis_full": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "ABIS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": ""}, "DATA": {"type": "VARIANT", "index": 2, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "ABI_SOURCE": {"type": "TEXT", "index": 4, "name": "ABI_SOURCE", "comment": ""}, "DISCORD_USERNAME": {"type": "TEXT", "index": 5, "name": "DISCORD_USERNAME", "comment": ""}, "ABI_HASH": {"type": "TEXT", "index": 6, "name": "ABI_HASH", "comment": ""}, "BYTECODE": {"type": "TEXT", "index": 7, "name": "BYTECODE", "comment": ""}, "ABIS_ID": {"type": "TEXT", "index": 8, "name": "ABIS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 11, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__abis_full"}, "test.fsc_evm.not_null_test_silver__transactions_recent_INSERTED_TIMESTAMP.ca4e4a608d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRANSACTIONS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}, "TRANSACTION_JSON": {"type": "VARIANT", "index": 4, "name": "TRANSACTION_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRANSACTIONS_ID": {"type": "TEXT", "index": 6, "name": "TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__transactions_recent_INSERTED_TIMESTAMP.ca4e4a608d"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID.8dc83ace95": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "EZ_BALANCES_NATIVE_DAILY_FULL_EZ_BALANCES_NATIVE_DAILY_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EZ_BALANCES_NATIVE_DAILY_ID": {"type": "TEXT", "index": 1, "name": "EZ_BALANCES_NATIVE_DAILY_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID.8dc83ace95"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full_MODIFIED_TIMESTAMP__hour__2.fd041d9a4a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "TRANSACTIONS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full_MODIFIED_TIMESTAMP__hour__2.fd041d9a4a"}, "model.fsc_evm.bronze__complete_token_prices": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "COMPLETE_TOKEN_PRICES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "ASSET_ID": {"type": "TEXT", "index": 3, "name": "ASSET_ID", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": ""}, "NAME": {"type": "TEXT", "index": 5, "name": "NAME", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 6, "name": "DECIMALS", "comment": ""}, "PRICE": {"type": "FLOAT", "index": 7, "name": "PRICE", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN", "comment": ""}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 9, "name": "BLOCKCHAIN_NAME", "comment": ""}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 10, "name": "BLOCKCHAIN_ID", "comment": ""}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 11, "name": "IS_IMPUTED", "comment": ""}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 12, "name": "IS_DEPRECATED", "comment": ""}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 13, "name": "IS_VERIFIED", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 14, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 15, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_TOKEN_PRICES_ID": {"type": "TEXT", "index": 19, "name": "COMPLETE_TOKEN_PRICES_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 20, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__complete_token_prices"}, "model.fsc_evm.bronze__balances_erc20": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "BALANCES_ERC20", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 7, "name": "BLOCK_NUMBER", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__balances_erc20"}, "test.fsc_evm.not_null_silver__complete_token_asset_metadata_MODIFIED_TIMESTAMP.58ef7db480": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_TOKEN_ASSET_METADATA_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TOKEN_ADDRESS": {"type": "TEXT", "index": 1, "name": "TOKEN_ADDRESS", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 6, "name": "BLOCKCHAIN", "comment": null}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN_NAME", "comment": null}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN_ID", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "IS_VERIFIED", "comment": null}, "IS_VERIFIED_MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "IS_VERIFIED_MODIFIED_TIMESTAMP", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 12, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 13, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_TOKEN_ASSET_METADATA_ID": {"type": "TEXT", "index": 17, "name": "COMPLETE_TOKEN_ASSET_METADATA_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 18, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_token_asset_metadata_MODIFIED_TIMESTAMP.58ef7db480"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_MODIFIED_TIMESTAMP.d34d6a1858": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOLS_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 4, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 6, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 10, "name": "POOL_ID", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 11, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 12, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 13, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 14, "name": "DECIMALS", "comment": null}, "FEE": {"type": "NUMBER", "index": 15, "name": "FEE", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 16, "name": "TICK_SPACING", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 17, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 18, "name": "TOKEN1", "comment": null}, "TOKEN2": {"type": "TEXT", "index": 19, "name": "TOKEN2", "comment": null}, "TOKEN3": {"type": "TEXT", "index": 20, "name": "TOKEN3", "comment": null}, "TOKEN4": {"type": "TEXT", "index": 21, "name": "TOKEN4", "comment": null}, "TOKEN5": {"type": "TEXT", "index": 22, "name": "TOKEN5", "comment": null}, "TOKEN6": {"type": "TEXT", "index": 23, "name": "TOKEN6", "comment": null}, "TOKEN7": {"type": "TEXT", "index": 24, "name": "TOKEN7", "comment": null}, "_ID": {"type": "TEXT", "index": 25, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOLS_ID": {"type": "TEXT", "index": 27, "name": "COMPLETE_DEX_LIQUIDITY_POOLS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_MODIFIED_TIMESTAMP.d34d6a1858"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_repayments__LOG_ID.dade94b28d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_repayments__LOG_ID.dade94b28d"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP__hour__2.1af0e5a39c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP__hour__2.1af0e5a39c"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PROTOCOL_MARKET.6f332e4392": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_PROTOCOL_MARKET", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PROTOCOL_MARKET.6f332e4392"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID.36d8d8661a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_EZ_TOKEN_TRANSFERS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 1, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID.36d8d8661a"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_UNCLE_BLOCKS.3393af752e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_UNCLE_BLOCKS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_UNCLE_BLOCKS.3393af752e"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_daily_full_ADDRESS__0_xX_0_9a_fA_F_.a9916d6faa": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_BALANCES_NATIVE_DAILY_FULL_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:20UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_daily_full_ADDRESS__0_xX_0_9a_fA_F_.a9916d6faa"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_NFT_LOG_ID.f7cd721252": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_NFT_LOG_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_NFT_LOG_ID.f7cd721252"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_ORIGIN_FUNCTION_SIGNATURE.7cdb59008b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_ORIGIN_FUNCTION_SIGNATURE.7cdb59008b"}, "model.fsc_evm.silver_lending__silo_deposits": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "SILO_DEPOSITS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 10, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 11, "name": "AMOUNT_UNADJ", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 12, "name": "DEPOSITOR", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 13, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 14, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 15, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__silo_deposits"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_daily_full_BALANCE__NUMBER__FLOAT.ea1e0b7809": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_FULL_BALANCE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_daily_full_BALANCE__NUMBER__FLOAT.ea1e0b7809"}, "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS.5f21f6c546": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS.5f21f6c546"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_transactions_recent_TX_POSITION__BLOCK_NUMBER.dadcf142a0": {"metadata": {"type": "BASE TABLE", "schema": "FSC_EVM_SEQUENCE_GAPS_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PREV_TX_POSITION": {"type": "NUMBER", "index": 2, "name": "PREV_TX_POSITION", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}, "GAP": {"type": "NUMBER", "index": 4, "name": "GAP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_transactions_recent_TX_POSITION__BLOCK_NUMBER.dadcf142a0"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PLATFORM_FEE_USD__NUMBER__FLOAT.bf1cc86946": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "COMPLETE_NFT_SALES_PLATFORM_FEE_USD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PLATFORM_FEE_USD__NUMBER__FLOAT.bf1cc86946"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_COMPLETE_LENDING_BORROWS_ID.c10561dd4e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_COMPLETE_LENDING_BORROWS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_COMPLETE_LENDING_BORROWS_ID.c10561dd4e"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_INSERTED_TIMESTAMP.a267ad91be": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_INSERTED_TIMESTAMP.a267ad91be"}, "model.fsc_evm.silver_dex__paircreated_evt_v2_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "PAIRCREATED_EVT_V2_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 10, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 11, "name": "TOKEN1", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 12, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 15, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 16, "name": "AMOUNT1_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 19, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:37UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2669170176, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 22180990, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__paircreated_evt_v2_pool_actions"}, "model.fsc_evm.silver_lending__fraxlend_borrows": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "FRAXLEND_BORROWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "BORROWER": {"type": "TEXT", "index": 9, "name": "BORROWER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 10, "name": "RECEIVER", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 11, "name": "AMOUNT_UNADJ", "comment": null}, "SHARES_ADDED_UNADJ": {"type": "NUMBER", "index": 12, "name": "SHARES_ADDED_UNADJ", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 13, "name": "PROTOCOL_MARKET", "comment": null}, "PROTOCOL_MARKET_SYMBOL": {"type": "TEXT", "index": 14, "name": "PROTOCOL_MARKET_SYMBOL", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 15, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 16, "name": "TOKEN_SYMBOL", "comment": null}, "COLLATERAL_ASSET": {"type": "TEXT", "index": 17, "name": "COLLATERAL_ASSET", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 23, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__fraxlend_borrows"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_metadata_complete_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.a79fec85ad": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_OLAS", "name": "REGISTRY_METADATA_COMPLETE_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_metadata_complete_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.a79fec85ad"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.6f648aaeb4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "POLYMARKET_FILLED_ORDERS_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.6f648aaeb4"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_SUCCEEDED.0932db54b6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_TX_SUCCEEDED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_SUCCEEDED.0932db54b6"}, "model.polygon_models.silver__complete_nft_sales": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_NFT_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": ""}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": ""}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": ""}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": ""}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": ""}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": ""}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": ""}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": ""}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": ""}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": ""}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": ""}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": ""}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": ""}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": ""}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": ""}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": ""}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": ""}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": ""}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": ""}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": ""}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": ""}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": ""}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": ""}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": ""}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": ""}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": ""}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": ""}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": ""}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": ""}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": ""}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 19608784384, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 26612447, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__complete_nft_sales"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_liquidity_pools_MODIFIED_TIMESTAMP__day__30.3fd9adc88e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOLS_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_liquidity_pools_MODIFIED_TIMESTAMP__day__30.3fd9adc88e"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_TX_FEE.289ce03033": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_TX_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_TX_FEE.289ce03033"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_unique_test_gold__fact_blocks_recent_FACT_BLOCKS_ID.d5e1fb66c7": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_UNIQUE_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_FACT_BLOCKS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"FACT_BLOCKS_ID": {"type": "TEXT", "index": 1, "name": "FACT_BLOCKS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_unique_test_gold__fact_blocks_recent_FACT_BLOCKS_ID.d5e1fb66c7"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATED_AMOUNT_UNADJ.23b2f7c305": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_LIQUIDATED_AMOUNT_UNADJ", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATED_AMOUNT_UNADJ.23b2f7c305"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f85e0e9c18": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MOOAR_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f85e0e9c18"}, "test.fsc_evm.not_null_silver__complete_token_prices_IS_IMPUTED.8a84f91c9e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_TOKEN_PRICES_IS_IMPUTED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 3, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 5, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 6, "name": "DECIMALS", "comment": null}, "PRICE": {"type": "FLOAT", "index": 7, "name": "PRICE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN", "comment": null}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 9, "name": "BLOCKCHAIN_NAME", "comment": null}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 10, "name": "BLOCKCHAIN_ID", "comment": null}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 11, "name": "IS_IMPUTED", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 12, "name": "IS_DEPRECATED", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 13, "name": "IS_VERIFIED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 14, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 15, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_TOKEN_PRICES_ID": {"type": "TEXT", "index": 19, "name": "COMPLETE_TOKEN_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 20, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_token_prices_IS_IMPUTED.8a84f91c9e"}, "model.fsc_evm.silver__complete_token_asset_metadata": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_TOKEN_ASSET_METADATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TOKEN_ADDRESS": {"type": "TEXT", "index": 1, "name": "TOKEN_ADDRESS", "comment": ""}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": ""}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 6, "name": "BLOCKCHAIN", "comment": ""}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN_NAME", "comment": ""}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN_ID", "comment": ""}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": ""}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "IS_VERIFIED", "comment": ""}, "IS_VERIFIED_MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "IS_VERIFIED_MODIFIED_TIMESTAMP", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 12, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 13, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_TOKEN_ASSET_METADATA_ID": {"type": "TEXT", "index": 17, "name": "COMPLETE_TOKEN_ASSET_METADATA_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 18, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:14UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 22194688, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 252196, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__complete_token_asset_metadata"}, "model.fsc_evm.silver_stablecoins__address_blacklist": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_STABLECOINS", "name": "ADDRESS_BLACKLIST", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 10, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 12, "name": "DECIMALS", "comment": null}, "BLACKLIST_ADDRESS": {"type": "TEXT", "index": 13, "name": "BLACKLIST_ADDRESS", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 14, "name": "TX_SUCCEEDED", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 15, "name": "_LOG_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "STABLECOINS_ADDRESS_BLACKLIST_ID": {"type": "TEXT", "index": 18, "name": "STABLECOINS_ADDRESS_BLACKLIST_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:18UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 100352, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 458, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_stablecoins__address_blacklist"}, "model.fsc_evm.silver_stablecoins__supply_by_address": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_STABLECOINS", "name": "SUPPLY_BY_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_DATE": {"type": "DATE", "index": 1, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 2, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 3, "name": "CONTRACT_ADDRESS", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 4, "name": "BALANCE", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "MODIFIED_TIMESTAMP", "comment": null}, "STABLECOINS_SUPPLY_BY_ADDRESS_ID": {"type": "TEXT", "index": 7, "name": "STABLECOINS_SUPPLY_BY_ADDRESS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:18UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 7996593664, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_date)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 198147446, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_stablecoins__supply_by_address"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_CONTRACT_ADDRESS.8ee97e9829": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_CONTRACT_ADDRESS.8ee97e9829"}, "test.fsc_evm.not_null_silver__labels_PROJECT_NAME.c87a158893": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "LABELS_PROJECT_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"SYSTEM_CREATED_AT": {"type": "TIMESTAMP_LTZ", "index": 1, "name": "SYSTEM_CREATED_AT", "comment": null}, "INSERT_DATE": {"type": "TIMESTAMP_LTZ", "index": 2, "name": "INSERT_DATE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": null}, "CREATOR": {"type": "TEXT", "index": 5, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 6, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 7, "name": "LABEL_SUBTYPE", "comment": null}, "ADDRESS_NAME": {"type": "TEXT", "index": 8, "name": "ADDRESS_NAME", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 9, "name": "PROJECT_NAME", "comment": null}, "_IS_DELETED": {"type": "BOOLEAN", "index": 10, "name": "_IS_DELETED", "comment": null}, "LABELS_ID": {"type": "TEXT", "index": 11, "name": "LABELS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 14, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__labels_PROJECT_NAME.c87a158893"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.ee9c014f0f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TOFUNFT_SALES_PLATFORM_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.ee9c014f0f"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_CUMULATIVE_GAS_USED.88f6b855e0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_CUMULATIVE_GAS_USED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_CUMULATIVE_GAS_USED.88f6b855e0"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TX_HASH__0_xX_0_9a_fA_F_.f7c909191d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TX_HASH__0_xX_0_9a_fA_F_.f7c909191d"}, "seed.fsc_evm.silver_bridge__ethereum_native_bridges_seed": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "ETHEREUM_NATIVE_BRIDGES_SEED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 2, "name": "CONTRACT_NAME", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 4, "name": "BLOCKCHAIN", "comment": null}, "VERSION": {"type": "TEXT", "index": 5, "name": "VERSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 4096, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 20, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver_bridge__ethereum_native_bridges_seed"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_recent_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.3661419d77": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "CREATED_CONTRACTS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_recent_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.3661419d77"}, "model.fsc_evm.test_silver__proxies_recent": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "PROXIES_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": ""}, "IMPLEMENTATION_CONTRACT": {"type": "TEXT", "index": 2, "name": "IMPLEMENTATION_CONTRACT", "comment": ""}, "START_BLOCK": {"type": "NUMBER", "index": 3, "name": "START_BLOCK", "comment": ""}, "START_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "START_TIMESTAMP", "comment": ""}, "_ID": {"type": "TEXT", "index": 5, "name": "_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "CREATED_BLOCK": {"type": "NUMBER", "index": 7, "name": "CREATED_BLOCK", "comment": ""}, "IMPLEMENTATION_CREATED_BLOCK": {"type": "NUMBER", "index": 8, "name": "IMPLEMENTATION_CREATED_BLOCK", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__proxies_recent"}, "seed.fsc_evm.silver_bridge__everclear_chain_seed": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "EVERCLEAR_CHAIN_SEED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "CHAINID": {"type": "NUMBER", "index": 2, "name": "CHAINID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1536, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 23, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver_bridge__everclear_chain_seed"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_SUCCEEDED.453d880cda": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_TX_SUCCEEDED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_SUCCEEDED.453d880cda"}, "model.fsc_evm.test_silver__receipts_recent": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "RECEIPTS_RECENT", "database": "POLYGON", "comment": "This is a view used to test the last three days of receipts.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": ""}, "RECEIPTS_JSON": {"type": "VARIANT", "index": 4, "name": "RECEIPTS_JSON", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "RECEIPTS_ID": {"type": "TEXT", "index": 6, "name": "RECEIPTS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__receipts_recent"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.bd13725310": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_4_SALES_CREATOR_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.bd13725310"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID.1ac9a12106": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_FULL_EZ_BALANCES_ERC20_DAILY_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EZ_BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 1, "name": "EZ_BALANCES_ERC20_DAILY_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 3451483648, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 114818638, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID.1ac9a12106"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TOPIC_0.852a0e07f6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_TOPIC_0", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 51712, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 3, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TOPIC_0.852a0e07f6"}, "test.polygon_models.not_null_silver__element_sales_BUYER_ADDRESS.13709bfa32": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_BUYER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_BUYER_ADDRESS.13709bfa32"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_AMOUNT_USD.07501acd40": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "POLYMARKET_FILLED_ORDERS_AMOUNT_USD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "QUESTION": {"type": "TEXT", "index": 10, "name": "QUESTION", "comment": null}, "MARKET_SLUG": {"type": "TEXT", "index": 11, "name": "MARKET_SLUG", "comment": null}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "END_DATE_ISO", "comment": null}, "OUTCOME": {"type": "TEXT", "index": 13, "name": "OUTCOME", "comment": null}, "ORDER_HASH": {"type": "TEXT", "index": 14, "name": "ORDER_HASH", "comment": null}, "MAKER": {"type": "TEXT", "index": 15, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 16, "name": "TAKER", "comment": null}, "CONDITION_ID": {"type": "TEXT", "index": 17, "name": "CONDITION_ID", "comment": null}, "QUESTION_ID": {"type": "TEXT", "index": 18, "name": "QUESTION_ID", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 19, "name": "ASSET_ID", "comment": null}, "MAKER_ASSET_ID": {"type": "TEXT", "index": 20, "name": "MAKER_ASSET_ID", "comment": null}, "TAKER_ASSET_ID": {"type": "TEXT", "index": 21, "name": "TAKER_ASSET_ID", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "AMOUNT_USD", "comment": null}, "SHARES": {"type": "FLOAT", "index": 23, "name": "SHARES", "comment": null}, "PRICE_PER_SHARE": {"type": "FLOAT", "index": 24, "name": "PRICE_PER_SHARE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "POLYMARKET_FILLED_ORDERS_ID": {"type": "TEXT", "index": 27, "name": "POLYMARKET_FILLED_ORDERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_AMOUNT_USD.07501acd40"}, "model.fsc_evm.silver_bridge__core_bridge_unwraptoken": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "CORE_BRIDGE_UNWRAPTOKEN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 14, "name": "PLATFORM", "comment": null}, "SENDER": {"type": "TEXT", "index": 15, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 16, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 19, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 20, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 21, "name": "AMOUNT_UNADJ", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:00UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__core_bridge_unwraptoken"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.03d32571d2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_6_SALES_SELLER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.03d32571d2"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_PLATFORM.dfa0956636": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOLS_PLATFORM", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 4, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 6, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 10, "name": "POOL_ID", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 11, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 12, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 13, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 14, "name": "DECIMALS", "comment": null}, "FEE": {"type": "NUMBER", "index": 15, "name": "FEE", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 16, "name": "TICK_SPACING", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 17, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 18, "name": "TOKEN1", "comment": null}, "TOKEN2": {"type": "TEXT", "index": 19, "name": "TOKEN2", "comment": null}, "TOKEN3": {"type": "TEXT", "index": 20, "name": "TOKEN3", "comment": null}, "TOKEN4": {"type": "TEXT", "index": 21, "name": "TOKEN4", "comment": null}, "TOKEN5": {"type": "TEXT", "index": 22, "name": "TOKEN5", "comment": null}, "TOKEN6": {"type": "TEXT", "index": 23, "name": "TOKEN6", "comment": null}, "TOKEN7": {"type": "TEXT", "index": 24, "name": "TOKEN7", "comment": null}, "_ID": {"type": "TEXT", "index": 25, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOLS_ID": {"type": "TEXT", "index": 27, "name": "COMPLETE_DEX_LIQUIDITY_POOLS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_PLATFORM.dfa0956636"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_metadata_complete_REGISTRY_METADATA_ID.bde925d9ef": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_OLAS", "name": "REGISTRY_METADATA_COMPLETE_REGISTRY_METADATA_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"REGISTRY_METADATA_ID": {"type": "TEXT", "index": 1, "name": "REGISTRY_METADATA_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_metadata_complete_REGISTRY_METADATA_ID.bde925d9ef"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_ORIGIN_FROM_ADDRESS.192f3d0364": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_ORIGIN_FROM_ADDRESS.192f3d0364"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_COMPLETE_LENDING_FLASHLOANS_ID.f37672ef97": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_COMPLETE_LENDING_FLASHLOANS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_COMPLETE_LENDING_FLASHLOANS_ID.f37672ef97"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.a84c388c6a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.a84c388c6a"}, "model.fsc_evm.silver_lending__aave_ethereum_tokens": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "AAVE_ETHEREUM_TOKENS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ATOKEN_CREATED_BLOCK": {"type": "NUMBER", "index": 1, "name": "ATOKEN_CREATED_BLOCK", "comment": null}, "VERSION_POOL": {"type": "TEXT", "index": 2, "name": "VERSION_POOL", "comment": null}, "ATOKEN_ADDRESS": {"type": "TEXT", "index": 3, "name": "ATOKEN_ADDRESS", "comment": null}, "ATOKEN_VERSION": {"type": "TEXT", "index": 4, "name": "ATOKEN_VERSION", "comment": null}, "UNDERLYING_ADDRESS": {"type": "TEXT", "index": 5, "name": "UNDERLYING_ADDRESS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 6, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 7, "name": "VERSION", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 9, "name": "_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:36UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__aave_ethereum_tokens"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9516659c33": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_5_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9516659c33"}, "model.fsc_evm.silver_bridge__complete_bridge_activity": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": ""}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": ""}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": ""}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": ""}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": ""}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": ""}, "RECEIVER": {"type": "TEXT", "index": 15, "name": "RECEIVER", "comment": ""}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": ""}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": ""}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 19, "name": "TOKEN_ADDRESS", "comment": ""}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 20, "name": "TOKEN_SYMBOL", "comment": ""}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 21, "name": "TOKEN_DECIMALS", "comment": ""}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT_UNADJ", "comment": ""}, "AMOUNT": {"type": "FLOAT", "index": 23, "name": "AMOUNT", "comment": ""}, "AMOUNT_USD": {"type": "FLOAT", "index": 24, "name": "AMOUNT_USD", "comment": ""}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IS_VERIFIED", "comment": ""}, "_ID": {"type": "TEXT", "index": 26, "name": "_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "COMPLETE_BRIDGE_ACTIVITY_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_BRIDGE_ACTIVITY_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2778123776, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE, platform)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 12274415, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.not_null_silver__balances_native_daily_BLOCK_DATE.5a051df8c7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BALANCES_NATIVE_DAILY_BLOCK_DATE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 4, "name": "BALANCE_HEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BALANCES_NATIVE_DAILY_ID": {"type": "TEXT", "index": 6, "name": "BALANCES_NATIVE_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__balances_native_daily_BLOCK_DATE.5a051df8c7"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TOTAL_FEES__DECIMAL__FLOAT__NUMBER.ada34dd6db": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER_STATS", "name": "CORE_METRICS_HOURLY_TOTAL_FEES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TOTAL_FEES__DECIMAL__FLOAT__NUMBER.ada34dd6db"}, "test.polygon_models.not_null_silver__mooar_sales_SELLER_ADDRESS.44cd7daff0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_SELLER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_SELLER_ADDRESS.44cd7daff0"}, "model.fsc_evm.bronze__confirm_blocks": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "CONFIRM_BLOCKS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 7, "name": "BLOCK_NUMBER", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__confirm_blocks"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP__hour__2.68cd5b81d5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP__hour__2.68cd5b81d5"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_FEE_PRECISE.1ca90b56ab": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_TX_FEE_PRECISE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_FEE_PRECISE.1ca90b56ab"}, "model.fsc_evm.silver_dex__curve_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "CURVE_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "POOL_ADDRESS", "comment": null}, "TOKEN_AMOUNTS": {"type": "VARIANT", "index": 11, "name": "TOKEN_AMOUNTS", "comment": null}, "NUM_TOKENS": {"type": "NUMBER", "index": 12, "name": "NUM_TOKENS", "comment": null}, "FEES": {"type": "VARIANT", "index": 13, "name": "FEES", "comment": null}, "INVARIANT": {"type": "TEXT", "index": 14, "name": "INVARIANT", "comment": null}, "TOKEN_SUPPLY": {"type": "TEXT", "index": 15, "name": "TOKEN_SUPPLY", "comment": null}, "PACKED_PRICE_SCALE": {"type": "TEXT", "index": 16, "name": "PACKED_PRICE_SCALE", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 17, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 18, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 19, "name": "RECEIVER", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 20, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 21, "name": "TOKEN1", "comment": null}, "TOKEN2": {"type": "TEXT", "index": 22, "name": "TOKEN2", "comment": null}, "TOKEN3": {"type": "TEXT", "index": 23, "name": "TOKEN3", "comment": null}, "TOKEN4": {"type": "TEXT", "index": 24, "name": "TOKEN4", "comment": null}, "TOKEN5": {"type": "TEXT", "index": 25, "name": "TOKEN5", "comment": null}, "TOKEN6": {"type": "TEXT", "index": 26, "name": "TOKEN6", "comment": null}, "TOKEN7": {"type": "TEXT", "index": 27, "name": "TOKEN7", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 28, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 29, "name": "AMOUNT1_UNADJ", "comment": null}, "AMOUNT2_UNADJ": {"type": "FLOAT", "index": 30, "name": "AMOUNT2_UNADJ", "comment": null}, "AMOUNT3_UNADJ": {"type": "FLOAT", "index": 31, "name": "AMOUNT3_UNADJ", "comment": null}, "AMOUNT4_UNADJ": {"type": "FLOAT", "index": 32, "name": "AMOUNT4_UNADJ", "comment": null}, "AMOUNT5_UNADJ": {"type": "FLOAT", "index": 33, "name": "AMOUNT5_UNADJ", "comment": null}, "AMOUNT6_UNADJ": {"type": "FLOAT", "index": 34, "name": "AMOUNT6_UNADJ", "comment": null}, "AMOUNT7_UNADJ": {"type": "FLOAT", "index": 35, "name": "AMOUNT7_UNADJ", "comment": null}, "FEE0": {"type": "TEXT", "index": 36, "name": "FEE0", "comment": null}, "FEE1": {"type": "TEXT", "index": 37, "name": "FEE1", "comment": null}, "FEE2": {"type": "TEXT", "index": 38, "name": "FEE2", "comment": null}, "FEE3": {"type": "TEXT", "index": 39, "name": "FEE3", "comment": null}, "FEE4": {"type": "TEXT", "index": 40, "name": "FEE4", "comment": null}, "FEE5": {"type": "TEXT", "index": 41, "name": "FEE5", "comment": null}, "FEE6": {"type": "TEXT", "index": 42, "name": "FEE6", "comment": null}, "FEE7": {"type": "TEXT", "index": 43, "name": "FEE7", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 44, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 45, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 46, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 47, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 48, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 49, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:36UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1007240192, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 3616167, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__curve_pool_actions"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_EVENT_INDEX__NUMBER__FLOAT.722a3594c3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "DECODED_LOGS_RECENT_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_EVENT_INDEX__NUMBER__FLOAT.722a3594c3"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_INPUT_DATA.bbebff71e0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_INPUT_DATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_INPUT_DATA.bbebff71e0"}, "seed.fsc_evm.silver_bridge__meson_chain_id_seed": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "MESON_CHAIN_ID_SEED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "SHORT_COIN_TYPE": {"type": "TEXT", "index": 2, "name": "SHORT_COIN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2048, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 44, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver_bridge__meson_chain_id_seed"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP.01f36159ef": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP.01f36159ef"}, "model.fsc_evm.test_gold__dim_contract_abis_recent": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "DIM_CONTRACT_ABIS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": ""}, "ABI": {"type": "VARIANT", "index": 2, "name": "ABI", "comment": ""}, "ABI_SOURCE": {"type": "TEXT", "index": 3, "name": "ABI_SOURCE", "comment": ""}, "BYTECODE": {"type": "TEXT", "index": 4, "name": "BYTECODE", "comment": ""}, "DIM_CONTRACT_ABIS_ID": {"type": "TEXT", "index": 5, "name": "DIM_CONTRACT_ABIS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__dim_contract_abis_recent"}, "model.fsc_evm.silver__flat_event_abis": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "FLAT_EVENT_ABIS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 2, "name": "EVENT_NAME", "comment": null}, "ABI": {"type": "VARIANT", "index": 3, "name": "ABI", "comment": null}, "SIMPLE_EVENT_NAME": {"type": "TEXT", "index": 4, "name": "SIMPLE_EVENT_NAME", "comment": null}, "EVENT_SIGNATURE": {"type": "TEXT", "index": 5, "name": "EVENT_SIGNATURE", "comment": null}, "NAME": {"type": "TEXT", "index": 6, "name": "NAME", "comment": null}, "INPUTS": {"type": "VARIANT", "index": 7, "name": "INPUTS", "comment": null}, "EVENT_TYPE": {"type": "ARRAY", "index": 8, "name": "EVENT_TYPE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 08:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1640667136, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(_inserted_timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 35700630, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__flat_event_abis"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.945acce1de": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.945acce1de"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BLOCK_NUMBER.09147e3ec0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BLOCK_NUMBER.09147e3ec0"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_4_sales_EVENT_TYPE__bid_won__sale.6b6cedf5d9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_SET_SILVER", "name": "SEAPORT_1_4_SALES_EVENT_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE_FIELD": {"type": "TEXT", "index": 1, "name": "VALUE_FIELD", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_4_sales_EVENT_TYPE__bid_won__sale.6b6cedf5d9"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID.e204f7c6ee": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_EZ_TOKEN_TRANSFERS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID.e204f7c6ee"}, "model.fsc_evm.silver__proxies": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "PROXIES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "IMPLEMENTATION_CONTRACT": {"type": "TEXT", "index": 2, "name": "IMPLEMENTATION_CONTRACT", "comment": null}, "START_BLOCK": {"type": "NUMBER", "index": 3, "name": "START_BLOCK", "comment": null}, "START_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "START_TIMESTAMP", "comment": null}, "_ID": {"type": "TEXT", "index": 5, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CREATED_BLOCK": {"type": "NUMBER", "index": 7, "name": "CREATED_BLOCK", "comment": null}, "IMPLEMENTATION_CREATED_BLOCK": {"type": "NUMBER", "index": 8, "name": "IMPLEMENTATION_CREATED_BLOCK", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 17098429952, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(start_timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 314990365, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__proxies"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PLATFORM.e9a5a0f900": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_PLATFORM", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PLATFORM.e9a5a0f900"}, "model.fsc_evm.silver_bridge__meson_transfers": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "MESON_TRANSFERS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 9, "name": "BRIDGE_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 11, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 12, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 13, "name": "AMOUNT_UNADJ", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 14, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 15, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 16, "name": "TOKEN_ADDRESS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 19, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "_ID": {"type": "TEXT", "index": 21, "name": "_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:29UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 31582208, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 307392, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__meson_transfers"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__mooar_sales_EVENT_TYPE__bid_won__sale.72a263fcbe": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_SET_SILVER", "name": "MOOAR_SALES_EVENT_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE_FIELD": {"type": "TEXT", "index": 1, "name": "VALUE_FIELD", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__mooar_sales_EVENT_TYPE__bid_won__sale.72a263fcbe"}, "model.fsc_evm.silver_lending__morpho_liquidations": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "MORPHO_LIQUIDATIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 12, "name": "DEBT_TOKEN", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 13, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 16, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "_ID": {"type": "TEXT", "index": 19, "name": "_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 21, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:33UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 69632, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 269, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__morpho_liquidations"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_RAW_AMOUNT__NUMBER__FLOAT.0ce022106e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_RAW_AMOUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_RAW_AMOUNT__NUMBER__FLOAT.0ce022106e"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.22abd38316": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "BLOCKS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.22abd38316"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full_INSERTED_TIMESTAMP__hour__2.e9cf80dd1c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "TRANSACTIONS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full_INSERTED_TIMESTAMP__hour__2.e9cf80dd1c"}, "model.fsc_evm.silver_dex__trader_joe_v2_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "TRADER_JOE_V2_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 6, "name": "EVENT_NAME", "comment": null}, "TOKENX": {"type": "TEXT", "index": 7, "name": "TOKENX", "comment": null}, "TOKENY": {"type": "TEXT", "index": 8, "name": "TOKENY", "comment": null}, "BIN_STEP": {"type": "NUMBER", "index": 9, "name": "BIN_STEP", "comment": null}, "LB_PAIR": {"type": "TEXT", "index": 10, "name": "LB_PAIR", "comment": null}, "POOL_ID": {"type": "NUMBER", "index": 11, "name": "POOL_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 12, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 13, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 14, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 15, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:06UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__trader_joe_v2_pools"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.394b29750a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TOFUNFT_SALES_TOTAL_PRICE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.394b29750a"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_EVENT_INDEX__NUMBER__FLOAT.f03fc2121b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "DECODED_LOGS_FULL_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_EVENT_INDEX__NUMBER__FLOAT.f03fc2121b"}, "model.fsc_evm.defi__dim_stablecoins": {"metadata": {"type": "BASE TABLE", "schema": "DEFI", "name": "DIM_STABLECOINS", "database": "POLYGON", "comment": "## What\n\nThis table provides a dimensional view of verified stablecoins across EVM-compatible blockchains. It consolidates stablecoin metadata from various sources to create a unified reference table for identifying and analyzing stablecoin tokens.\n\n## Key Use Cases\n\n- Identifying stablecoin tokens in transaction and event data\n- Filtering DeFi activities to stablecoin-only transactions\n- Analyzing stablecoin adoption and distribution\n- Tracking verified stablecoin contracts across chains\n- Building stablecoin-specific metrics and dashboards\n\n## Important Relationships\n\n- **Join with defi.ez_stablecoins_supply**: Use `contract_address` for supply metrics\n\n## Commonly-used Fields\n\n- `contract_address`: Unique stablecoin token contract address\n- `symbol`: Token symbol (e.g., USDC, USDT, DAI)\n- `name`: Full token name\n- `label`: Combined symbol and name, as a stablecoin unique identifier\n- `decimals`: Number of decimal places for the token\n- `is_verified`: Verification status\n\n## Sample queries\n\n```sql\n-- Get unique stablecoins\nSELECT \n label AS stablecoin,\n COUNT(*) AS token_count\nFROM .defi.dim_stablecoins\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Get all USDC variants\nSELECT \n contract_address,\n symbol,\n name,\n decimals\nFROM .defi.dim_stablecoins\nWHERE symbol LIKE '%USDC%'\nORDER BY symbol;\n\n-- Check if specific address is a stablecoin\nSELECT \n contract_address,\n label,\n decimals\nFROM .defi.dim_stablecoins\nWHERE contract_address = LOWER('0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48');\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": "The unique smart contract address of the stablecoin token.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": "The symbol identifier for the stablecoin token.\n\nExample: 'USDC'"}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": "The full name of the stablecoin token.\n\nExample: 'USD Coin'"}, "LABEL": {"type": "TEXT", "index": 4, "name": "LABEL", "comment": "A combined display label containing both symbol and name.\n\nExample: 'USDC: USD Coin'"}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": "The number of decimal places used by the token contract.\n\nExample: 6"}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 6, "name": "IS_VERIFIED", "comment": "Indicates whether the stablecoin is verified by the Flipside team.\n\nExample: true"}, "IS_VERIFIED_MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "IS_VERIFIED_MODIFIED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}, "DIM_STABLECOINS_ID": {"type": "TEXT", "index": 10, "name": "DIM_STABLECOINS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:18UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 11264, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 34, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.defi__dim_stablecoins"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_BLOCK_TIMESTAMP.8996639023": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_BLOCK_TIMESTAMP.8996639023"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_BLOCK_HASH__0_xX_0_9a_fA_F_.f2f5d9dc2f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_BLOCKS_FULL_BLOCK_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_BLOCK_HASH__0_xX_0_9a_fA_F_.f2f5d9dc2f"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_EVENT_NAME.5db024623b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_EVENT_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_EVENT_NAME.5db024623b"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP__hour__2.bca2ba239f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP__hour__2.bca2ba239f"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE.fcb488bf96": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_VALUE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE.fcb488bf96"}, "model.fsc_evm.bronze__stablecoin_reads": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "STABLECOIN_READS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__stablecoin_reads"}, "test.fsc_evm.not_null_silver__balances_erc20_daily_BLOCK_DATE.b0c7b4b5bc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BALANCES_ERC20_DAILY_BLOCK_DATE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 5, "name": "BALANCE_HEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 7, "name": "BALANCES_ERC20_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__balances_erc20_daily_BLOCK_DATE.b0c7b4b5bc"}, "test.polygon_models.not_null_silver__tofunft_sales_TX_FEE.911a502933": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_TX_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_TX_FEE.911a502933"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT__NUMBER__FLOAT.5a8e6e8880": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER_STATS", "name": "CORE_METRICS_HOURLY_TRANSACTION_COUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT__NUMBER__FLOAT.5a8e6e8880"}, "test.polygon_models.not_null_silver__mooar_sales_TX_HASH.da6a3d4a3e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_TX_HASH.da6a3d4a3e"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_BLOCK_TIMESTAMP__hour__2.4d38c1199d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_BLOCKS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_BLOCK_TIMESTAMP__hour__2.4d38c1199d"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_recent_INSERTED_TIMESTAMP__hour__3.285e6fec43": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_recent_INSERTED_TIMESTAMP__hour__3.285e6fec43"}, "test.polygon_models.not_null_silver__mooar_sales_NFT_ADDRESS.d7517df1bb": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_NFT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_NFT_ADDRESS.d7517df1bb"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_SUCCEEDED.9a3cc510bc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_TRACE_SUCCEEDED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_SUCCEEDED.9a3cc510bc"}, "model.fsc_evm.silver_lending__comp_v2_liquidations": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "COMP_V2_LIQUIDATIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "BORROWER": {"type": "TEXT", "index": 9, "name": "BORROWER", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 11, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 12, "name": "COLLATERAL_TOKEN", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 13, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 14, "name": "DEBT_TOKEN", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 16, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 17, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 19, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "_INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "INSERTED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 23, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__comp_v2_liquidations"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_BLOCK_NUMBER.87ef6d1a21": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_BLOCK_NUMBER.87ef6d1a21"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE__day__2.8b5344e6a7": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_RECENT_BLOCK_DATE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE__day__2.8b5344e6a7"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_COMPLETE_LENDING_WITHDRAWS_ID.681b4aa48b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_COMPLETE_LENDING_WITHDRAWS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_COMPLETE_LENDING_WITHDRAWS_ID.681b4aa48b"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__contracts_full_CONTRACT_ADDRESS.0763359ca5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "CONTRACTS_FULL_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 10:15UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__contracts_full_CONTRACT_ADDRESS.0763359ca5"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.e30720c0a3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_6_SALES_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.e30720c0a3"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent__INSERTED_TIMESTAMP__hour__2.fb61245227": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "BLOCKS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent__INSERTED_TIMESTAMP__hour__2.fb61245227"}, "test.polygon_models.not_null_silver__tofunft_sales_INPUT_DATA.358e16915b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_INPUT_DATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_INPUT_DATA.358e16915b"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full__INSERTED_TIMESTAMP__hour__2.8beb22e4b2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "TRACES_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full__INSERTED_TIMESTAMP__hour__2.8beb22e4b2"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__proxies_recent__ID.0c4929fb5b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "PROXIES_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_ID": {"type": "TEXT", "index": 1, "name": "_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__proxies_recent__ID.0c4929fb5b"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_NETWORK___a_zA_Z0_9__.9b67337d7a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_NETWORK", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_NETWORK___a_zA_Z0_9__.9b67337d7a"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TX_HASH.1770f89dd4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TX_HASH.1770f89dd4"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_6_sales_EVENT_TYPE__bid_won__sale.47081ac1d1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_SET_SILVER", "name": "SEAPORT_1_6_SALES_EVENT_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE_FIELD": {"type": "TEXT", "index": 1, "name": "VALUE_FIELD", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_6_sales_EVENT_TYPE__bid_won__sale.47081ac1d1"}, "test.polygon_models.not_null_silver_olas__getservice_reads_FUNCTION_INPUT.abe26173ba": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "GETSERVICE_READS_FUNCTION_INPUT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"READ_OUTPUT": {"type": "VARIANT", "index": 1, "name": "READ_OUTPUT", "comment": null}, "READ_ID": {"type": "TEXT", "index": 2, "name": "READ_ID", "comment": null}, "READ_RESULT": {"type": "TEXT", "index": 3, "name": "READ_RESULT", "comment": null}, "READ_ID_OBJECT": {"type": "ARRAY", "index": 4, "name": "READ_ID_OBJECT", "comment": null}, "SEGMENTED_READ": {"type": "ARRAY", "index": 5, "name": "SEGMENTED_READ", "comment": null}, "FUNCTION_SIG": {"type": "TEXT", "index": 6, "name": "FUNCTION_SIG", "comment": null}, "FUNCTION_NAME": {"type": "TEXT", "index": 7, "name": "FUNCTION_NAME", "comment": null}, "FUNCTION_INPUT": {"type": "NUMBER", "index": 8, "name": "FUNCTION_INPUT", "comment": null}, "DATA": {"type": "TEXT", "index": 9, "name": "DATA", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 11, "name": "BLOCK_NUMBER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "READS_ARRAY": {"type": "ARRAY", "index": 13, "name": "READS_ARRAY", "comment": null}, "AGENT_IDS": {"type": "ARRAY", "index": 14, "name": "AGENT_IDS", "comment": null}, "GETSERVICE_READS_ID": {"type": "TEXT", "index": 15, "name": "GETSERVICE_READS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 18, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__getservice_reads_FUNCTION_INPUT.abe26173ba"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_TX_HASH.61638ba866": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "POLYMARKET_FILLED_ORDERS_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "QUESTION": {"type": "TEXT", "index": 10, "name": "QUESTION", "comment": null}, "MARKET_SLUG": {"type": "TEXT", "index": 11, "name": "MARKET_SLUG", "comment": null}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "END_DATE_ISO", "comment": null}, "OUTCOME": {"type": "TEXT", "index": 13, "name": "OUTCOME", "comment": null}, "ORDER_HASH": {"type": "TEXT", "index": 14, "name": "ORDER_HASH", "comment": null}, "MAKER": {"type": "TEXT", "index": 15, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 16, "name": "TAKER", "comment": null}, "CONDITION_ID": {"type": "TEXT", "index": 17, "name": "CONDITION_ID", "comment": null}, "QUESTION_ID": {"type": "TEXT", "index": 18, "name": "QUESTION_ID", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 19, "name": "ASSET_ID", "comment": null}, "MAKER_ASSET_ID": {"type": "TEXT", "index": 20, "name": "MAKER_ASSET_ID", "comment": null}, "TAKER_ASSET_ID": {"type": "TEXT", "index": 21, "name": "TAKER_ASSET_ID", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "AMOUNT_USD", "comment": null}, "SHARES": {"type": "FLOAT", "index": 23, "name": "SHARES", "comment": null}, "PRICE_PER_SHARE": {"type": "FLOAT", "index": 24, "name": "PRICE_PER_SHARE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "POLYMARKET_FILLED_ORDERS_ID": {"type": "TEXT", "index": 27, "name": "POLYMARKET_FILLED_ORDERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_TX_HASH.61638ba866"}, "test.polygon_models.not_null_silver__tofunft_sales_PLATFORM_ADDRESS.d680990b3f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_PLATFORM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_PLATFORM_ADDRESS.d680990b3f"}, "model.fsc_evm.defi__ez_lending_ohlc_rates": {"metadata": {"type": "VIEW", "schema": "DEFI", "name": "EZ_LENDING_OHLC_RATES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"DAY": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "DAY", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 2, "name": "PROTOCOL", "comment": ""}, "PLATFORM": {"type": "TEXT", "index": 3, "name": "PLATFORM", "comment": ""}, "VERSION": {"type": "TEXT", "index": 4, "name": "VERSION", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 5, "name": "TOKEN_ADDRESS", "comment": ""}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 6, "name": "TOKEN_SYMBOL", "comment": ""}, "SUPPLY_RATE_OPEN": {"type": "FLOAT", "index": 7, "name": "SUPPLY_RATE_OPEN", "comment": ""}, "SUPPLY_RATE_HIGH": {"type": "FLOAT", "index": 8, "name": "SUPPLY_RATE_HIGH", "comment": ""}, "SUPPLY_RATE_LOW": {"type": "FLOAT", "index": 9, "name": "SUPPLY_RATE_LOW", "comment": ""}, "SUPPLY_RATE_CLOSE": {"type": "FLOAT", "index": 10, "name": "SUPPLY_RATE_CLOSE", "comment": ""}, "STABLE_BORROW_RATE_OPEN": {"type": "FLOAT", "index": 11, "name": "STABLE_BORROW_RATE_OPEN", "comment": ""}, "STABLE_BORROW_RATE_HIGH": {"type": "FLOAT", "index": 12, "name": "STABLE_BORROW_RATE_HIGH", "comment": ""}, "STABLE_BORROW_RATE_LOW": {"type": "FLOAT", "index": 13, "name": "STABLE_BORROW_RATE_LOW", "comment": ""}, "STABLE_BORROW_RATE_CLOSE": {"type": "FLOAT", "index": 14, "name": "STABLE_BORROW_RATE_CLOSE", "comment": ""}, "VARIABLE_BORROW_RATE_OPEN": {"type": "FLOAT", "index": 15, "name": "VARIABLE_BORROW_RATE_OPEN", "comment": ""}, "VARIABLE_BORROW_RATE_HIGH": {"type": "FLOAT", "index": 16, "name": "VARIABLE_BORROW_RATE_HIGH", "comment": ""}, "VARIABLE_BORROW_RATE_LOW": {"type": "FLOAT", "index": 17, "name": "VARIABLE_BORROW_RATE_LOW", "comment": ""}, "VARIABLE_BORROW_RATE_CLOSE": {"type": "FLOAT", "index": 18, "name": "VARIABLE_BORROW_RATE_CLOSE", "comment": ""}, "RATE_UPDATES_COUNT": {"type": "NUMBER", "index": 19, "name": "RATE_UPDATES_COUNT", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 20, "name": "BLOCKCHAIN", "comment": ""}, "EZ_OHLC_RATES_ID": {"type": "TEXT", "index": 21, "name": "EZ_OHLC_RATES_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.defi__ez_lending_ohlc_rates"}, "model.fsc_evm.silver_dex__hashflow_v3_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "HASHFLOW_V3_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "TXID": {"type": "TEXT", "index": 12, "name": "TXID", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 13, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 14, "name": "TOKEN_OUT", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 16, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 20, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:36UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 15595008, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 120849, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__hashflow_v3_swaps"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_CONTRACT_ADDRESS.c32c5ad863": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_CONTRACT_ADDRESS.c32c5ad863"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4682c97f81": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_TRACES_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4682c97f81"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_SELLER_ADDRESS.266af61935": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_SELLER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_SELLER_ADDRESS.266af61935"}, "model.fsc_evm.bronze__blocks_fr": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "BLOCKS_FR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 7, "name": "BLOCK_NUMBER", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__blocks_fr"}, "model.fsc_evm.silver_lending__aave_ethereum_deposits": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "AAVE_ETHEREUM_DEPOSITS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 10, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 11, "name": "AMOUNT_UNADJ", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 12, "name": "DEPOSITOR", "comment": null}, "LENDING_POOL_CONTRACT": {"type": "TEXT", "index": 13, "name": "LENDING_POOL_CONTRACT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 14, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 15, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 16, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 19, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__aave_ethereum_deposits"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_native_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.b4ae42a72b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_native_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.b4ae42a72b"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.216c3d4f53": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_1_SALES_TOTAL_FEES_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.216c3d4f53"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_reads_REGISTRY_READS_ID.92579c5880": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_OLAS", "name": "REGISTRY_READS_REGISTRY_READS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"REGISTRY_READS_ID": {"type": "TEXT", "index": 1, "name": "REGISTRY_READS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_reads_REGISTRY_READS_ID.92579c5880"}, "model.fsc_evm.github_actions__task_history": {"metadata": {"type": "VIEW", "schema": "GITHUB_ACTIONS", "name": "TASK_HISTORY", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ROOT_TASK_NAME": {"type": "TEXT", "index": 1, "name": "ROOT_TASK_NAME", "comment": ""}, "DATABASE_NAME": {"type": "TEXT", "index": 2, "name": "DATABASE_NAME", "comment": ""}, "GRAPH_DATABASE_ID": {"type": "NUMBER", "index": 3, "name": "GRAPH_DATABASE_ID", "comment": ""}, "SCHEMA_NAME": {"type": "TEXT", "index": 4, "name": "SCHEMA_NAME", "comment": ""}, "GRAPH_SCHEMA_ID": {"type": "NUMBER", "index": 5, "name": "GRAPH_SCHEMA_ID", "comment": ""}, "STATE": {"type": "TEXT", "index": 6, "name": "STATE", "comment": ""}, "FIRST_ERROR_TASK_NAME": {"type": "TEXT", "index": 7, "name": "FIRST_ERROR_TASK_NAME", "comment": ""}, "FIRST_ERROR_CODE": {"type": "TEXT", "index": 8, "name": "FIRST_ERROR_CODE", "comment": ""}, "FIRST_ERROR_MESSAGE": {"type": "TEXT", "index": 9, "name": "FIRST_ERROR_MESSAGE", "comment": ""}, "SCHEDULED_TIME": {"type": "TIMESTAMP_LTZ", "index": 10, "name": "SCHEDULED_TIME", "comment": ""}, "QUERY_START_TIME": {"type": "TIMESTAMP_LTZ", "index": 11, "name": "QUERY_START_TIME", "comment": ""}, "NEXT_SCHEDULED_TIME": {"type": "TIMESTAMP_LTZ", "index": 12, "name": "NEXT_SCHEDULED_TIME", "comment": ""}, "COMPLETED_TIME": {"type": "TIMESTAMP_LTZ", "index": 13, "name": "COMPLETED_TIME", "comment": ""}, "ROOT_TASK_ID": {"type": "TEXT", "index": 14, "name": "ROOT_TASK_ID", "comment": ""}, "GRAPH_VERSION": {"type": "NUMBER", "index": 15, "name": "GRAPH_VERSION", "comment": ""}, "RUN_ID": {"type": "NUMBER", "index": 16, "name": "RUN_ID", "comment": ""}, "ATTEMPT_NUMBER": {"type": "NUMBER", "index": 17, "name": "ATTEMPT_NUMBER", "comment": ""}, "SCHEDULED_FROM": {"type": "TEXT", "index": 18, "name": "SCHEDULED_FROM", "comment": ""}, "CONFIG": {"type": "TEXT", "index": 19, "name": "CONFIG", "comment": ""}, "GRAPH_RUN_GROUP_ID": {"type": "TEXT", "index": 20, "name": "GRAPH_RUN_GROUP_ID", "comment": ""}, "BACKFILL_INFO": {"type": "OBJECT", "index": 21, "name": "BACKFILL_INFO", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.github_actions__task_history"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP.32a4782af7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP.32a4782af7"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_FEE.fa909d23b7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_TX_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_FEE.fa909d23b7"}, "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_FROM_ADDRESS.0e7cafbf22": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_FROM_ADDRESS.0e7cafbf22"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full_INSERTED_TIMESTAMP__hour__2.efed27386e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "RECEIPTS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full_INSERTED_TIMESTAMP__hour__2.efed27386e"}, "model.fsc_evm.balances__ez_balances_native_daily": {"metadata": {"type": "BASE TABLE", "schema": "BALANCES", "name": "EZ_BALANCES_NATIVE_DAILY", "database": "POLYGON", "comment": "## What\n\nThis table provides daily native asset balance snapshots (ETH, AVAX, BNB, etc.) by making direct `eth_getBalance` RPC calls at the end of each day. It captures the current native asset balance for each address that has had native asset activity, providing a comprehensive view of native holdings with decimal adjustments and USD valuations where available. Historical native balances data available, starting from `2025-06-10`.\n\n## Key Use Cases\n\n- Daily portfolio tracking and native asset balance monitoring\n- Historical native asset balance analysis and trend identification\n- Whale tracking and large holder distribution analysis\n- Daily balance snapshots for reporting and analytics\n- Native asset concentration analysis across addresses\n- Daily balance-based yield and return calculations for native assets\n- End-of-day balance reconciliation and accounting\n\n## Important Relationships\n\n- **Join with fact_blocks**: Use `block_number` for block metadata and timestamps\n- **Join with dim_labels**: Use `address` for entity identification and categorization\n- **Join with ez_prices_hourly**: USD valuations already included but can be refreshed\n- **Join with ez_balances_erc20_daily**: Compare with ERC20 token daily balances\n- **Join with ez_native_transfers**: Compare daily balances with transfer activity\n- **Join with core__fact_traces**: Analyze native asset movement patterns\n\n## Commonly-used Fields\n\n- `address`: The account address holding the native asset balance\n- `balance`: Native asset balance at end of day, decimal adjusted to standard units\n- `balance_usd`: USD value of the native asset balance at end of day\n- `balance_raw`: Raw balance in smallest unit (Wei) without decimal adjustment\n- `balance_precise`: Precise decimal-adjusted balance as string\n- `balance_hex`: Hexadecimal balance as returned by eth_getBalance\n- `decimals`: Number of decimal places (always 18 for native assets)\n- `block_date`: The date for which this balance snapshot was taken\n\n## Sample queries\n\n**Daily Native Asset Holdings by Address**\n```sql\nSELECT \n block_date,\n address,\n balance,\n balance_usd,\n LAG(balance) OVER (\n PARTITION BY address \n ORDER BY block_date\n ) AS prev_balance,\n balance - LAG(balance) OVER (\n PARTITION BY address \n ORDER BY block_date\n ) AS daily_change\nFROM .balances.ez_balances_native_daily\nWHERE address = LOWER('0x1234567890123456789012345678901234567890')\n AND block_date >= CURRENT_DATE - 30\n AND balance > 0\nORDER BY block_date DESC;\n```\n\n**Native Asset Holder Distribution Trends**\n```sql\nSELECT \n block_date,\n COUNT(DISTINCT address) AS total_holders,\n COUNT(DISTINCT CASE WHEN balance >= 1 THEN address END) AS holders_1_plus,\n COUNT(DISTINCT CASE WHEN balance >= 10 THEN address END) AS holders_10_plus,\n COUNT(DISTINCT CASE WHEN balance >= 100 THEN address END) AS holders_100_plus,\n COUNT(DISTINCT CASE WHEN balance >= 1000 THEN address END) AS holders_1000_plus,\n SUM(balance) AS total_native_tracked,\n AVG(balance) AS avg_balance,\n MEDIAN(balance) AS median_balance,\n MAX(balance) AS max_balance\nFROM .balances.ez_balances_native_daily\nWHERE block_date >= CURRENT_DATE - 90\n AND balance > 0\nGROUP BY 1\nORDER BY 1 DESC;\n```\n\n**Whale Activity Monitoring**\n```sql\n-- Track large native asset holders and their balance changes\nWITH whale_balances AS (\n SELECT \n address,\n block_date,\n balance,\n balance_usd,\n LAG(balance) OVER (\n PARTITION BY address \n ORDER BY block_date\n ) AS prev_balance,\n LAG(balance_usd) OVER (\n PARTITION BY address \n ORDER BY block_date\n ) AS prev_balance_usd\n FROM .balances.ez_balances_native_daily\n WHERE balance >= 1000 -- Focus on large holders\n AND block_date >= CURRENT_DATE - 7\n),\nwhale_changes AS (\n SELECT \n *,\n balance - prev_balance AS balance_change,\n balance_usd - prev_balance_usd AS balance_change_usd,\n CASE \n WHEN prev_balance > 0 \n THEN ((balance - prev_balance) / prev_balance) * 100 \n ELSE NULL \n END AS pct_change\n FROM whale_balances\n WHERE prev_balance IS NOT NULL\n)\nSELECT \n block_date,\n address,\n balance,\n balance_change,\n balance_change_usd,\n pct_change,\n CASE \n WHEN balance_change > 100 THEN 'Large Increase'\n WHEN balance_change > 10 THEN 'Moderate Increase'\n WHEN balance_change < -100 THEN 'Large Decrease'\n WHEN balance_change < -10 THEN 'Moderate Decrease'\n ELSE 'Stable'\n END AS change_category\nFROM whale_changes\nWHERE ABS(balance_change) > 5 -- Only show meaningful changes\nORDER BY ABS(balance_change_usd) DESC\nLIMIT 100;\n```\n\n**Daily Balance Distribution Analysis**\n```sql\n-- Analyze the distribution of native asset balances\nSELECT \n block_date,\n CASE \n WHEN balance < 0.001 THEN 'Dust (<0.001)'\n WHEN balance < 0.01 THEN 'Very Small (0.001-0.01)'\n WHEN balance < 0.1 THEN 'Small (0.01-0.1)'\n WHEN balance < 1 THEN 'Medium (0.1-1)'\n WHEN balance < 10 THEN 'Large (1-10)'\n WHEN balance < 100 THEN 'Very Large (10-100)'\n WHEN balance < 1000 THEN 'Whale (100-1000)'\n ELSE 'Super Whale (1000+)'\n END AS balance_category,\n COUNT(DISTINCT address) AS address_count,\n SUM(balance) AS total_balance,\n SUM(balance_usd) AS total_balance_usd,\n AVG(balance) AS avg_balance,\n PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY balance) AS median_balance\nFROM .balances.ez_balances_native_daily\nWHERE block_date = CURRENT_DATE - 1\n AND balance > 0\nGROUP BY 1, 2\nORDER BY 1 DESC, \n CASE balance_category\n WHEN 'Dust (<0.001)' THEN 1\n WHEN 'Very Small (0.001-0.01)' THEN 2\n WHEN 'Small (0.01-0.1)' THEN 3\n WHEN 'Medium (0.1-1)' THEN 4\n WHEN 'Large (1-10)' THEN 5\n WHEN 'Very Large (10-100)' THEN 6\n WHEN 'Whale (100-1000)' THEN 7\n WHEN 'Super Whale (1000+)' THEN 8\n END;\n```\n\n**Portfolio Value Evolution**\n```sql\n-- Track total portfolio value changes for top holders\nSELECT \n block_date,\n COUNT(DISTINCT address) AS tracked_addresses,\n SUM(balance_usd) AS total_portfolio_value,\n AVG(balance_usd) AS avg_portfolio_value,\n SUM(balance) AS total_native_balance,\n LAG(SUM(balance_usd)) OVER (ORDER BY block_date) AS prev_total_value,\n (SUM(balance_usd) - LAG(SUM(balance_usd)) OVER (ORDER BY block_date)) AS daily_value_change,\n CASE \n WHEN LAG(SUM(balance_usd)) OVER (ORDER BY block_date) > 0\n THEN ((SUM(balance_usd) - LAG(SUM(balance_usd)) OVER (ORDER BY block_date)) / LAG(SUM(balance_usd)) OVER (ORDER BY block_date)) * 100\n ELSE NULL\n END AS daily_pct_change\nFROM .balances.ez_balances_native_daily\nWHERE block_date >= CURRENT_DATE - 30\n AND balance_usd >= 10000 -- Focus on significant holders\nGROUP BY 1\nORDER BY 1 DESC;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": "The date for which this balance snapshot represents the end-of-day native asset balance.\n\nExample: '2023-12-15'"}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": "The account address whose native asset balance is recorded in this daily snapshot.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": ""}, "BALANCE_HEX": {"type": "TEXT", "index": 5, "name": "BALANCE_HEX", "comment": "Hexadecimal representation of the native asset balance as returned by the eth_getBalance RPC call.\n\nExample: '0x3b9aca00'"}, "BALANCE_RAW": {"type": "NUMBER", "index": 6, "name": "BALANCE_RAW", "comment": "Native asset balance in the smallest unit (Wei) without decimal adjustment, as returned by eth_getBalance.\n\nExample: 1000000000000000000"}, "BALANCE_PRECISE": {"type": "TEXT", "index": 7, "name": "BALANCE_PRECISE", "comment": "Native asset balance with proper decimal adjustment, returned as a string to preserve precision.\n\nExample: '1.000000000000000000'"}, "BALANCE": {"type": "FLOAT", "index": 8, "name": "BALANCE", "comment": "Native asset balance with decimal adjustment converted to a float for easier mathematical operations.\n\nExample: 1.0"}, "BALANCE_USD": {"type": "FLOAT", "index": 9, "name": "BALANCE_USD", "comment": "USD value of the native asset balance at the end of the day, calculated using hourly price data.\n\nExample: 2500.75"}, "EZ_BALANCES_NATIVE_DAILY_ID": {"type": "TEXT", "index": 10, "name": "EZ_BALANCES_NATIVE_DAILY_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:17UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 19598357504, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_date)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 243123731, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.balances__ez_balances_native_daily"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_UNCLE_BLOCKS.9b8edf4bfd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_UNCLE_BLOCKS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:33UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_UNCLE_BLOCKS.9b8edf4bfd"}, "test.fsc_evm.not_null_test_silver__decoded_logs_recent_EVENT_INDEX.a1b3a9a86b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "DECODED_LOGS_RECENT_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": null}, "DECODED_DATA": {"type": "VARIANT", "index": 6, "name": "DECODED_DATA", "comment": null}, "TRANSFORMED": {"type": "VARIANT", "index": 7, "name": "TRANSFORMED", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 8, "name": "DECODED_FLAT", "comment": null}, "DECODED_LOGS_ID": {"type": "TEXT", "index": 9, "name": "DECODED_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_recent_EVENT_INDEX.a1b3a9a86b"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_full_BLOCK_TIMESTAMP__day__1.47c627b66b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "CREATED_CONTRACTS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_full_BLOCK_TIMESTAMP__day__1.47c627b66b"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_repayments_AMOUNT_USD__decimal__float.3538351555": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_AMOUNT_USD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_repayments_AMOUNT_USD__decimal__float.3538351555"}, "test.polygon_models.not_null_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE.be176a72e9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE.be176a72e9"}, "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": ""}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": ""}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": ""}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": ""}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": ""}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": ""}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": ""}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": ""}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": ""}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": ""}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": ""}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": ""}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": ""}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": ""}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": ""}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": ""}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 5906930176, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE, platform)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 40912249, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER.1b554aa4ee": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_DEFI", "name": "EZ_DEX_LIQUIDITY_POOL_ACTIONS_LIQUIDITY_PROVIDER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 17, "name": "TOKEN_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "PROTOCOL_VERSION": {"type": "TEXT", "index": 20, "name": "PROTOCOL_VERSION", "comment": null}, "EZ_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 21, "name": "EZ_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER.1b554aa4ee"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_EXTRA_DATA.f2257373c4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_EXTRA_DATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_EXTRA_DATA.f2257373c4"}, "test.polygon_models.not_null_silver__complete_nft_sales_CURRENCY_ADDRESS.9b1d0cc7a8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_CURRENCY_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_CURRENCY_ADDRESS.9b1d0cc7a8"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_blocks_full_BLOCK_NUMBER.6f6c66623c": {"metadata": {"type": "BASE TABLE", "schema": "FSC_EVM_SEQUENCE_GAPS_TEST_GOLD", "name": "FACT_BLOCKS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PREV_BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "PREV_BLOCK_NUMBER", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "GAP": {"type": "NUMBER", "index": 3, "name": "GAP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 11:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_blocks_full_BLOCK_NUMBER.6f6c66623c"}, "test.fsc_evm.accepted_values_recent_row_observability__transactions_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.eb2fcab8d1": {"metadata": {"type": "BASE TABLE", "schema": "ACCEPTED_VALUES_RECENT_ROW_OBSERVABILITY", "name": "TRANSACTIONS_BLOCKS_IMPACTED_COUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCKS_IMPACTED_COUNT": {"type": "NUMBER", "index": 1, "name": "BLOCKS_IMPACTED_COUNT", "comment": null}, "MISSING_LIST": {"type": "ARRAY", "index": 2, "name": "MISSING_LIST", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.accepted_values_recent_row_observability__transactions_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.eb2fcab8d1"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__decoded_logs_full_DECODED_LOGS_ID.537938d81c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "DECODED_LOGS_FULL_DECODED_LOGS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"DECODED_LOGS_ID": {"type": "TEXT", "index": 1, "name": "DECODED_LOGS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 11:16UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__decoded_logs_full_DECODED_LOGS_ID.537938d81c"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP__hour__2.d75178fa1c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_BLOCKS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP__hour__2.d75178fa1c"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__blocks_full_BLOCK_NUMBER.be5f891d6b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "BLOCKS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 09:47UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__blocks_full_BLOCK_NUMBER.be5f891d6b"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_SIZE.e3303070ef": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_SIZE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_SIZE.e3303070ef"}, "model.fsc_evm.silver__complete_provider_asset_metadata": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_PROVIDER_ASSET_METADATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": ""}, "PLATFORM": {"type": "TEXT", "index": 5, "name": "PLATFORM", "comment": ""}, "PLATFORM_ID": {"type": "TEXT", "index": 6, "name": "PLATFORM_ID", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_PROVIDER_ASSET_METADATA_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_PROVIDER_ASSET_METADATA_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:14UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 142848, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1918, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__complete_provider_asset_metadata"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__blocks_full_BLOCK_NUMBER.67e6cd85ce": {"metadata": {"type": "BASE TABLE", "schema": "FSC_EVM_SEQUENCE_GAPS_TEST_SILVER", "name": "BLOCKS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PREV_BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "PREV_BLOCK_NUMBER", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "GAP": {"type": "NUMBER", "index": 3, "name": "GAP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:04UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__blocks_full_BLOCK_NUMBER.67e6cd85ce"}, "test.fsc_evm.not_null_silver__complete_native_prices_HOUR.84672fd317": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NATIVE_PRICES_HOUR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "PRICE": {"type": "FLOAT", "index": 6, "name": "PRICE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN", "comment": null}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 8, "name": "IS_IMPUTED", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 10, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 11, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_NATIVE_PRICES_ID": {"type": "TEXT", "index": 15, "name": "COMPLETE_NATIVE_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_native_prices_HOUR.84672fd317"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_PLATFORM.be3e105587": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_PLATFORM", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 8, "name": "POOL_NAME", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 9, "name": "POOL_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 15, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 17, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 18, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 19, "name": "EVENT_INDEX", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 24, "name": "TOKEN_IN", "comment": null}, "TOKEN_IN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IN_IS_VERIFIED", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 26, "name": "TOKEN_OUT", "comment": null}, "TOKEN_OUT_IS_VERIFIED": {"type": "BOOLEAN", "index": 27, "name": "TOKEN_OUT_IS_VERIFIED", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 28, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 29, "name": "SYMBOL_OUT", "comment": null}, "DECIMALS_IN": {"type": "NUMBER", "index": 30, "name": "DECIMALS_IN", "comment": null}, "DECIMALS_OUT": {"type": "NUMBER", "index": 31, "name": "DECIMALS_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 32, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_SWAPS_ID": {"type": "TEXT", "index": 34, "name": "COMPLETE_DEX_SWAPS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 35, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 37, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_PLATFORM.be3e105587"}, "model.fsc_evm.defi__ez_lending_liquidations": {"metadata": {"type": "VIEW", "schema": "DEFI", "name": "EZ_LENDING_LIQUIDATIONS", "database": "POLYGON", "comment": "## What\n\nThis table tracks liquidation events across lending protocols, where under-collateralized positions are forcibly closed to protect protocol solvency. Liquidations occur when a borrower's health factor drops below 1, typically due to collateral value decline or debt value increase.\n\n## Key Use Cases\n\n- Monitoring protocol health and risk levels\n- Analyzing liquidation patterns during market volatility\n- Tracking liquidator profitability and competition\n- Understanding collateral risk profiles\n- Identifying frequently liquidated borrowers\n\n## Important Relationships\n\n- Links to `ez_lending_borrows` for original loan details\n- Connects to `ez_lending_deposits` for collateral information\n- Often preceded by entries in `ez_lending_flashloans`\n- References `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `borrower`: Address that was liquidated\n- `liquidator`: Address performing the liquidation\n- `platform`: Lending protocol\n- `collateral_token`/`debt_token`: Asset pair involved\n- `amount`/`amount_usd`: Collateral seized\n\n## Sample queries\n\n```sql\n-- Daily liquidation volume and metrics\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(*) AS liquidation_count,\n COUNT(DISTINCT borrower) AS unique_borrowers_liquidated,\n SUM(amount_usd) AS total_debt_covered_usd,\n SUM(amount_usd) AS total_collateral_liquidated_usd,\n AVG(amount_usd / NULLIF(amount_usd, 0) - 1) * 100 AS avg_liquidation_bonus_pct\nFROM .defi.ez_lending_liquidations\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 5 DESC;\n\n-- Most liquidated asset pairs\nSELECT \n collateral_token,\n collateral_token_symbol,\n debt_token,\n debt_token_symbol,\n COUNT(*) AS liquidation_count,\n SUM(amount_usd) AS total_collateral_liquidated_usd,\n AVG(amount_usd) AS avg_liquidation_size_usd\nFROM .defi.ez_lending_liquidations\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND collateral_token_symbol IS NOT NULL\n AND debt_token_symbol IS NOT NULL\nGROUP BY 1, 2, 3, 4\nORDER BY 6 DESC\nLIMIT 20;\n\n-- Liquidator analysis\nWITH liquidator_stats AS (\n SELECT \n liquidator,\n COUNT(*) AS liquidations_performed,\n SUM(amount_usd) AS total_collateral_received_usd,\n FROM .defi.ez_lending_liquidations\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n CASE \n WHEN liquidations_performed = 1 THEN 'Opportunistic'\n WHEN liquidations_performed <= 10 THEN 'Active'\n WHEN liquidations_performed <= 100 THEN 'Professional'\n ELSE 'Bot/High Frequency'\n END AS liquidator_type,\n COUNT(*) AS liquidator_count,\n SUM(total_collateral_received_usd) as total_collateral_received_usd\n SUM(liquidations_performed) AS total_liquidations\nFROM liquidator_stats\nGROUP BY 1\nORDER BY 3 DESC;\n\n-- Large liquidations monitoring\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n borrower,\n liquidator,\n collateral_token_symbol,\n debt_token_symbol,\n amount_usd,\nFROM .defi.ez_lending_liquidations\nWHERE amount_usd > 10000\n AND block_timestamp >= CURRENT_DATE - 14\nORDER BY amount_usd DESC;\n\n-- Borrower liquidation history\nWITH borrower_liquidations AS (\n SELECT \n borrower,\n COUNT(*) AS times_liquidated,\n COUNT(DISTINCT DATE_TRUNC('day', block_timestamp)) AS liquidation_days,\n SUM(amount_usd) AS total_collateral_lost_usd,\n ARRAY_AGG(DISTINCT platform) AS platforms_liquidated_on\n FROM .defi.ez_lending_liquidations\n WHERE block_timestamp >= CURRENT_DATE - 90\n AND amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n times_liquidated,\n platforms_liquidated_on,\n COUNT(*) AS borrower_count,\n AVG(total_collateral_lost_usd) AS avg_loss_from_liquidation\nFROM borrower_liquidations\nGROUP BY 1, 2\nORDER BY 1, 2;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events"}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```"}, "EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "EVENT_INDEX", "comment": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": "The lending protocol where the transaction occurred.\n\nExample: 'aave'"}, "LIQUIDATOR": {"type": "TEXT", "index": 11, "name": "LIQUIDATOR", "comment": "The address that performed the liquidation.\n\nExample: '0xabcdefabcdefabcdefabcdefabcdefabcdefabcd'"}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": "The address that initiated a borrow or repayment transaction.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 13, "name": "PROTOCOL_MARKET", "comment": "The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'"}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN", "comment": "The token contract address used as collateral in a liquidation.\n\nExample: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'"}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 15, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": "The symbol of the asset used as collateral in liquidations.\n\nExample: 'WETH'"}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": ""}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT", "comment": ""}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "LIQUIDATED_AMOUNT_USD", "comment": ""}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 19, "name": "AMOUNT_UNADJ", "comment": "The raw amount of tokens liquidated without decimal adjustment. This column will be deprecated October 13th, please update to liquidated_amount_unadj."}, "AMOUNT": {"type": "FLOAT", "index": 20, "name": "AMOUNT", "comment": "The decimal-adjusted amount of tokens liquidated. This column will be deprecated October 13th, please update to liquidated_amount."}, "AMOUNT_USD": {"type": "FLOAT", "index": 21, "name": "AMOUNT_USD", "comment": "The USD value of the tokens liquidated. This column will be deprecated October 13th, please update to liquidated_amount_usd."}, "DEBT_TOKEN": {"type": "TEXT", "index": 22, "name": "DEBT_TOKEN", "comment": "The token contract address that was borrowed and is being repaid in liquidation.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 23, "name": "DEBT_TOKEN_SYMBOL", "comment": "The symbol of the borrowed asset being repaid in liquidation.\n\nExample: 'USDC'"}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 24, "name": "REPAID_AMOUNT_UNADJ", "comment": ""}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 25, "name": "REPAID_AMOUNT", "comment": ""}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 26, "name": "REPAID_AMOUNT_USD", "comment": ""}, "EZ_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 27, "name": "EZ_LENDING_LIQUIDATIONS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.defi__ez_lending_liquidations"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__transactions_full_TX_POSITION__BLOCK_NUMBER.a64778c1c0": {"metadata": {"type": "BASE TABLE", "schema": "FSC_EVM_SEQUENCE_GAPS_TEST_SILVER", "name": "TRANSACTIONS_FULL_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PREV_TX_POSITION": {"type": "NUMBER", "index": 2, "name": "PREV_TX_POSITION", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}, "GAP": {"type": "NUMBER", "index": 4, "name": "GAP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__transactions_full_TX_POSITION__BLOCK_NUMBER.a64778c1c0"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_INSERTED_TIMESTAMP.9b2342b392": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_INSERTED_TIMESTAMP.9b2342b392"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_BLOCK_NUMBER__NUMBER__FLOAT.5fd14b6024": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_5_SALES_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_BLOCK_NUMBER__NUMBER__FLOAT.5fd14b6024"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__receipts_full_RECEIPTS_ID.443fd400ca": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "RECEIPTS_FULL_RECEIPTS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RECEIPTS_ID": {"type": "TEXT", "index": 1, "name": "RECEIPTS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__receipts_full_RECEIPTS_ID.443fd400ca"}, "model.fsc_evm.silver_dex__complete_dex_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "COMPLETE_DEX_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": ""}, "POOL_NAME": {"type": "TEXT", "index": 8, "name": "POOL_NAME", "comment": ""}, "POOL_ID": {"type": "TEXT", "index": 9, "name": "POOL_ID", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": ""}, "AMOUNT_IN_UNADJ": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN_UNADJ", "comment": ""}, "AMOUNT_IN": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN", "comment": ""}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_IN_USD", "comment": ""}, "AMOUNT_OUT_UNADJ": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_UNADJ", "comment": ""}, "AMOUNT_OUT": {"type": "FLOAT", "index": 15, "name": "AMOUNT_OUT", "comment": ""}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_OUT_USD", "comment": ""}, "SENDER": {"type": "TEXT", "index": 17, "name": "SENDER", "comment": ""}, "TX_TO": {"type": "TEXT", "index": 18, "name": "TX_TO", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 19, "name": "EVENT_INDEX", "comment": ""}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": ""}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": ""}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": ""}, "TOKEN_IN": {"type": "TEXT", "index": 24, "name": "TOKEN_IN", "comment": ""}, "TOKEN_IN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IN_IS_VERIFIED", "comment": ""}, "TOKEN_OUT": {"type": "TEXT", "index": 26, "name": "TOKEN_OUT", "comment": ""}, "TOKEN_OUT_IS_VERIFIED": {"type": "BOOLEAN", "index": 27, "name": "TOKEN_OUT_IS_VERIFIED", "comment": ""}, "SYMBOL_IN": {"type": "TEXT", "index": 28, "name": "SYMBOL_IN", "comment": ""}, "SYMBOL_OUT": {"type": "TEXT", "index": 29, "name": "SYMBOL_OUT", "comment": ""}, "DECIMALS_IN": {"type": "NUMBER", "index": 30, "name": "DECIMALS_IN", "comment": ""}, "DECIMALS_OUT": {"type": "NUMBER", "index": 31, "name": "DECIMALS_OUT", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 32, "name": "_LOG_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "COMPLETE_DEX_SWAPS_ID": {"type": "TEXT", "index": 34, "name": "COMPLETE_DEX_SWAPS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 35, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 37, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:41UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 108647304192, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE, platform)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 641502729, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.f92b286eda": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "MOOAR_SALES_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.f92b286eda"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_metadata_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2d2a8813c5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_OLAS", "name": "REGISTRY_METADATA_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_metadata_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2d2a8813c5"}, "model.fsc_evm.silver_stablecoins__transfers": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_STABLECOINS", "name": "TRANSFERS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 4, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 9, "name": "AMOUNT", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "STABLECOINS_TRANSFERS_ID": {"type": "TEXT", "index": 12, "name": "STABLECOINS_TRANSFERS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:22UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 52980210688, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_date)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 697661521, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_stablecoins__transfers"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.e3fe1c4346": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TOFUNFT_SALES_PLATFORM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.e3fe1c4346"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_DECODED_LOG.13e8c88a61": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_DECODED_LOG", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_DECODED_LOG.13e8c88a61"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stats__core_metrics_hourly__INSERTED_TIMESTAMP__day__1.874a5937d5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER_STATS", "name": "CORE_METRICS_HOURLY", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stats__core_metrics_hourly__INSERTED_TIMESTAMP__day__1.874a5937d5"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_SUCCEEDED.66bec17605": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_TX_SUCCEEDED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_SUCCEEDED.66bec17605"}, "test.fsc_evm.not_null_test_silver__traces_recent_BLOCK_NUMBER.77a4699f36": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRACES_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 2, "name": "TX_POSITION", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 3, "name": "TRACE_ADDRESS", "comment": null}, "PARENT_TRACE_ADDRESS": {"type": "TEXT", "index": 4, "name": "PARENT_TRACE_ADDRESS", "comment": null}, "TRACE_ADDRESS_ARRAY": {"type": "ARRAY", "index": 5, "name": "TRACE_ADDRESS_ARRAY", "comment": null}, "TRACE_JSON": {"type": "OBJECT", "index": 6, "name": "TRACE_JSON", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 7, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRACES_ID": {"type": "TEXT", "index": 9, "name": "TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__traces_recent_BLOCK_NUMBER.77a4699f36"}, "test.fsc_evm.not_null_silver_bridge__everclear_reads_DESTINATION_CHAIN_ID.708d1c3ec8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "EVERCLEAR_READS_DESTINATION_CHAIN_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MIN_EPOCH": {"type": "NUMBER", "index": 1, "name": "MIN_EPOCH", "comment": null}, "OUTPUT_ASSET": {"type": "TEXT", "index": 2, "name": "OUTPUT_ASSET", "comment": null}, "STATUS": {"type": "TEXT", "index": 3, "name": "STATUS", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 4, "name": "DESTINATION_CHAIN_ID", "comment": null}, "INTENT_CREATED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "INTENT_CREATED_TIMESTAMP", "comment": null}, "CURSOR_ID": {"type": "NUMBER", "index": 6, "name": "CURSOR_ID", "comment": null}, "INTENT_ID": {"type": "TEXT", "index": 7, "name": "INTENT_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__everclear_reads_DESTINATION_CHAIN_ID.708d1c3ec8"}, "seed.fsc_evm.silver_bridge__cctp_chain_id_seed": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "CCTP_CHAIN_ID_SEED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "DOMAIN": {"type": "NUMBER", "index": 2, "name": "DOMAIN", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1536, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 17, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver_bridge__cctp_chain_id_seed"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_provider_prices_ASSET_ID__RECORDED_HOUR__PROVIDER.6e3c3ab2b1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "COMPLETE_PROVIDER_PRICES_ASSET_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": null}, "RECORDED_HOUR": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "RECORDED_HOUR", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 3, "name": "PROVIDER", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_provider_prices_ASSET_ID__RECORDED_HOUR__PROVIDER.6e3c3ab2b1"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_HASH.8dee9b8914": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_BLOCK_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_HASH.8dee9b8914"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP__hour__8.7a2d73b21b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "CONFIRM_BLOCKS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP__hour__8.7a2d73b21b"}, "model.polygon_models.silver_olas__registry_metadata_complete": {"metadata": {"type": "VIEW", "schema": "SILVER_OLAS", "name": "REGISTRY_METADATA_COMPLETE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"NAME": {"type": "TEXT", "index": 1, "name": "NAME", "comment": ""}, "DESCRIPTION": {"type": "TEXT", "index": 2, "name": "DESCRIPTION", "comment": ""}, "REGISTRY_ID": {"type": "NUMBER", "index": 3, "name": "REGISTRY_ID", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": ""}, "REGISTRY_TYPE": {"type": "TEXT", "index": 5, "name": "REGISTRY_TYPE", "comment": ""}, "TRAIT_TYPE": {"type": "TEXT", "index": 6, "name": "TRAIT_TYPE", "comment": ""}, "TRAIT_VALUE": {"type": "TEXT", "index": 7, "name": "TRAIT_VALUE", "comment": ""}, "CODE_URI_LINK": {"type": "TEXT", "index": 8, "name": "CODE_URI_LINK", "comment": ""}, "IMAGE_LINK": {"type": "TEXT", "index": 9, "name": "IMAGE_LINK", "comment": ""}, "AGENT_IDS": {"type": "ARRAY", "index": 10, "name": "AGENT_IDS", "comment": ""}, "REGISTRY_METADATA_ID": {"type": "TEXT", "index": 11, "name": "REGISTRY_METADATA_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver_olas__registry_metadata_complete"}, "test.fsc_evm.not_null_test_silver__traces_full_INSERTED_TIMESTAMP.ab90de5f2b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRACES_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 2, "name": "TX_POSITION", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 3, "name": "TRACE_ADDRESS", "comment": null}, "PARENT_TRACE_ADDRESS": {"type": "TEXT", "index": 4, "name": "PARENT_TRACE_ADDRESS", "comment": null}, "TRACE_ADDRESS_ARRAY": {"type": "ARRAY", "index": 5, "name": "TRACE_ADDRESS_ARRAY", "comment": null}, "TRACE_JSON": {"type": "OBJECT", "index": 6, "name": "TRACE_JSON", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 7, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRACES_ID": {"type": "TEXT", "index": 9, "name": "TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__traces_full_INSERTED_TIMESTAMP.ab90de5f2b"}, "model.fsc_evm.test_gold__dim_contract_abis_full": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "DIM_CONTRACT_ABIS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": ""}, "ABI": {"type": "VARIANT", "index": 2, "name": "ABI", "comment": ""}, "ABI_SOURCE": {"type": "TEXT", "index": 3, "name": "ABI_SOURCE", "comment": ""}, "BYTECODE": {"type": "TEXT", "index": 4, "name": "BYTECODE", "comment": ""}, "DIM_CONTRACT_ABIS_ID": {"type": "TEXT", "index": 5, "name": "DIM_CONTRACT_ABIS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__dim_contract_abis_full"}, "test.polygon_models.not_null_silver__mooar_sales_BLOCK_NUMBER.543489371f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_BLOCK_NUMBER.543489371f"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_AMOUNT.e580c2d507": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_AMOUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_AMOUNT.e580c2d507"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_BLOCK_NUMBER.764f80cddc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_BLOCK_NUMBER.764f80cddc"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE.11f4cb34d8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE.11f4cb34d8"}, "model.fsc_evm.silver_lending__comp_v3_asset_details": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "COMP_V3_ASSET_DETAILS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"COMPOUND_MARKET_ADDRESS": {"type": "TEXT", "index": 1, "name": "COMPOUND_MARKET_ADDRESS", "comment": null}, "COMPOUND_MARKET_SYMBOL": {"type": "TEXT", "index": 2, "name": "COMPOUND_MARKET_SYMBOL", "comment": null}, "COMPOUND_MARKET_NAME": {"type": "TEXT", "index": 3, "name": "COMPOUND_MARKET_NAME", "comment": null}, "COMPOUND_MARKET_DECIMALS": {"type": "NUMBER", "index": 4, "name": "COMPOUND_MARKET_DECIMALS", "comment": null}, "UNDERLYING_ASSET_ADDRESS": {"type": "TEXT", "index": 5, "name": "UNDERLYING_ASSET_ADDRESS", "comment": null}, "UNDERLYING_ASSET_NAME": {"type": "TEXT", "index": 6, "name": "UNDERLYING_ASSET_NAME", "comment": null}, "CREATED_BLOCK_NUMBER": {"type": "NUMBER", "index": 7, "name": "CREATED_BLOCK_NUMBER", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 9, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 10, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 11, "name": "PLATFORM", "comment": null}, "COMPOUND_VERSION": {"type": "TEXT", "index": 12, "name": "COMPOUND_VERSION", "comment": null}, "COMP_ASSET_DETAILS_ID": {"type": "TEXT", "index": 13, "name": "COMP_ASSET_DETAILS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:32UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 5632, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__comp_v3_asset_details"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_AMOUNT__NUMBER__FLOAT.b3aafcb7e6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_RECENT_AMOUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_AMOUNT__NUMBER__FLOAT.b3aafcb7e6"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP__day__3.ecc8ffb7ad": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP__day__3.ecc8ffb7ad"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent_MODIFIED_TIMESTAMP__hour__2.0fc697aad1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "TRANSACTIONS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent_MODIFIED_TIMESTAMP__hour__2.0fc697aad1"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_INSERTED_TIMESTAMP.481e29ad06": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_INSERTED_TIMESTAMP.481e29ad06"}, "model.fsc_evm.silver_bridge__axie_infinity_depositrequested": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "AXIE_INFINITY_DEPOSITREQUESTED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 10, "name": "BRIDGE_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 11, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 12, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 13, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 14, "name": "AMOUNT", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "NUMBER", "index": 15, "name": "DESTINATION_CHAIN_ID", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 16, "name": "TOKEN_ADDRESS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 19, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:00UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__axie_infinity_depositrequested"}, "test.fsc_evm.not_null_test_silver__blocks_recent_BLOCK_NUMBER.cec2c84102": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "BLOCKS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BLOCKS_ID": {"type": "TEXT", "index": 5, "name": "BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 8, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__blocks_recent_BLOCK_NUMBER.cec2c84102"}, "model.fsc_evm.silver_dex__velodrome_v2_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "VELODROME_V2_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 10, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 11, "name": "TOKEN1", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 12, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 15, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 16, "name": "AMOUNT1_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 19, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-21 18:47UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__velodrome_v2_pool_actions"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_TO_ADDRESS__0_xX_0_9a_fA_F_.4e9427647b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:28UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_TO_ADDRESS__0_xX_0_9a_fA_F_.4e9427647b"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_LOGS_BLOOM.490b2e508d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_LOGS_BLOOM", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_LOGS_BLOOM.490b2e508d"}, "test.polygon_models.not_null_silver__complete_nft_sales_BUYER_ADDRESS.69569a63c7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_BUYER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_BUYER_ADDRESS.69569a63c7"}, "model.fsc_evm.core__fact_transactions": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "FACT_TRANSACTIONS", "database": "POLYGON", "comment": "## What\n\nThis table contains comprehensive transaction-level data for EVM blockchains. Each row represents a single transaction with its execution details, gas consumption, and value transfers. This is a high-level table for analyzing on-chain activity, user behavior, and protocol interactions.\n\n## Key Use Cases\n\n- Tracking wallet activity and transaction patterns\n- Analyzing gas fee trends and optimization opportunities\n- Monitoring smart contract interactions and usage\n- Calculating transaction volumes and network revenue\n- Detecting MEV, arbitrage, and trading patterns\n\n## Important Relationships\n\n- **Join with fact_blocks**: Use `block_number` for block-level context\n- **Join with fact_traces**: Use `tx_hash` for internal transactions\n- **Join with fact_event_logs**: Use `tx_hash` for emitted events\n- **Join with ez_decoded_event_logs**: Use `tx_hash` for human-readable events\n- **Join with dim_contracts**: Use `to_address` for contract metadata\n\n## Commonly-used Fields\n\n- `tx_hash`: Unique transaction identifier\n- `from_address`: Transaction sender\n- `to_address`: Transaction recipient\n- `value`: Native token amount transferred\n- `gas_used`: Actual gas consumed\n- `gas_price`: Price per gas unit\n- `tx_fee`: Total transaction fee in native tokens\n- `block_timestamp`: When transaction was included\n\n## Sample queries\n\n```sql\n-- Daily transaction statistics by type\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n tx_type,\n COUNT(*) AS tx_count,\n COUNT(DISTINCT from_address) AS unique_senders,\n SUM(tx_fee) AS total_fees_native,\n AVG(gas_used) AS avg_gas_used,\n PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY gas_price) AS median_gas_price\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1, 2\nORDER BY 1 DESC, 3 DESC;\n\n-- High-value native token transfers\nSELECT \n tx_hash,\n block_timestamp,\n from_address,\n to_address,\n value,\n tx_fee,\n gas_used * gas_price / 1e9 AS gas_cost_gwei\nFROM .core.fact_transactions\nWHERE value > 0\n AND tx_succeeded\n AND block_timestamp >= CURRENT_DATE - 7\nORDER BY value DESC\nLIMIT 100;\n\n-- Smart contract interaction patterns\nSELECT \n to_address,\n origin_function_signature,\n COUNT(*) AS interaction_count,\n COUNT(DISTINCT from_address) AS unique_users,\n SUM(tx_fee) AS total_fees_paid\nFROM .core.fact_transactions\nWHERE to_address IN (SELECT address FROM dim_contracts)\n AND block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2\nORDER BY 3 DESC\nLIMIT 50;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": "Amount of native tokens transferred, in token units (not Wei).\n\n**Key Points**:\n- 0 for most contract interactions\n- >0 for native token transfers or payable functions\n- Already converted from Wei (divided by 1e18)\n- Use value_precise for exact amounts\n\n**Example Query**:\n```sql\n-- Daily native token transfer volume\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n SUM(value) AS total_transferred,\n COUNT(*) AS transfer_count\nFROM .core.fact_transactions\nWHERE value > 0 AND tx_succeeded\nGROUP BY 1;\n```"}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": "String representation of numeric values preserving exact precision without any adjustments.\n\n**Format**: VARCHAR containing numeric string\n**Purpose**: Prevents floating-point precision loss due to snowflake limitations\n**Contains**: Raw blockchain values (usually in smallest unit)\n\n**Example Values**:\n- \"1000000000000000000\" = 1 ETH in Wei\n- \"50000000\" = 50 USDC (6 decimals)\n\n**Usage**:\n```sql\n-- Exact value comparisons\nWHERE value_precise_raw = '1000000000000000000'\n\n-- Conversion with precision\nCAST(value_precise_raw AS NUMERIC(38,0)) / POW(10, 18) AS value_decimal\n```"}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": "String representation of numeric values adjusted for human readability while maintaining precision.\n\n**Format**: VARCHAR containing decimal string\n**Adjustments**: Converted from smallest unit to standard unit\n**Purpose**: Human-readable values without precision loss\n\n**Example Values**:\n- \"1.0\" = 1 ETH (converted from Wei)\n- \"50.0\" = 50 USDC (converted from 6 decimal places)\n\n**Best Practices**:\n```sql\n-- Safe numeric operations\nCAST(value_precise AS NUMERIC(38,18))\n\n-- Filtering large values\nWHERE CAST(value_precise AS NUMERIC(38,18)) > 1000\n\n-- Aggregations\nSUM(CAST(value_precise AS NUMERIC(38,18))) AS total_value\n```"}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": "Total fee paid for transaction execution in native token units.\n\nExample: 0.002"}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": "Exact transaction fee as string to prevent floating-point precision loss.\n\nExample: '0.002345678901234567'"}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": "Boolean indicator of transaction success.\n\n**Values**:\n- TRUE: Transaction executed successfully\n- FALSE: Transaction failed/reverted"}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": "Transaction envelope type (EIP-2718).\n\nExample: 2"}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": "Sequential counter of transactions sent by the from_address.\n\nExample: 42"}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering"}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": "Encoded data sent with the transaction, containing function calls and parameters.\n\nExample: '0xa9059cbb0000000000000000000000001234567890123456789012345678901234567890'"}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": "Price per gas unit in Gwei (1 Gwei = 1e-9 native token).\n\nExample: 25"}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": "Actual price paid per gas unit for EIP-1559 transactions, in Gwei.\n\nExample: 23.5"}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": "Actual gas units consumed by transaction execution.\n\nExample: 89234"}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": "Maximum gas units the sender is willing to consume for this transaction.\n\nExample: 150000"}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": "Running total of gas consumed by all transactions up to and including this transaction within the block.\n\nExample: 1234567"}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": "Maximum total fee per gas unit sender is willing to pay (EIP-1559), in Gwei.\n\nExample: 50"}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": "Maximum tip per gas unit for validator (EIP-1559), in Gwei.\n\nExample: 2"}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": "Y coordinate parity for signature recovery (EIP-2098).\n\nExample: 1"}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": "Array of addresses and storage keys for optimized gas costs (EIP-2930).\n\nExample: [{\"address\": \"0x123...\", \"storageKeys\": [\"0x456...\"]}]"}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": "R component of ECDSA signature (32 bytes).\n\nExample: '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'"}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": "S component of ECDSA signature (32 bytes).\n\nExample: '0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890'"}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": "Recovery identifier for ECDSA signature.\n\nExample: 27"}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:17UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2342514595840, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5936912543, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.core__fact_transactions"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_event_logs_full_TX_HASH__EVENT_INDEX.164d9b638c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 2, "name": "EVENT_INDEX", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 10:31UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_event_logs_full_TX_HASH__EVENT_INDEX.164d9b638c"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS.8384cb648a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS.8384cb648a"}, "model.fsc_evm.silver_lending__silo_withdraws": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "SILO_WITHDRAWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 10, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 11, "name": "AMOUNT_UNADJ", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 12, "name": "DEPOSITOR", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 13, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 14, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 15, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:50UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__silo_withdraws"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_BLOCK_TIMESTAMP.f598b4bc90": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_BLOCK_TIMESTAMP.f598b4bc90"}, "test.fsc_evm.not_null_test_silver__receipts_recent_INSERTED_TIMESTAMP.30ae8bca8d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "RECEIPTS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": null}, "RECEIPTS_JSON": {"type": "VARIANT", "index": 4, "name": "RECEIPTS_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "RECEIPTS_ID": {"type": "TEXT", "index": 6, "name": "RECEIPTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__receipts_recent_INSERTED_TIMESTAMP.30ae8bca8d"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TX_FEE__NUMBER__FLOAT.2e849c3a94": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TOFUNFT_SALES_TX_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TX_FEE__NUMBER__FLOAT.2e849c3a94"}, "test.polygon_models.not_null_silver__element_sales_INPUT_DATA.033bf73b52": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_INPUT_DATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_INPUT_DATA.033bf73b52"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_EVENT_NAME.52809d123e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_EVENT_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_EVENT_NAME.52809d123e"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_TX_FEE.9da040f28a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_TX_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_TX_FEE.9da040f28a"}, "model.fsc_evm.silver_lending__aave_flashloans": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "AAVE_FLASHLOANS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 10, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 11, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 13, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 15, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 16, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 17, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 18, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 20, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 807169536, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4176086, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__aave_flashloans"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_SUB_TRACES.0335817c13": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_SUB_TRACES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_SUB_TRACES.0335817c13"}, "model.fsc_evm.balances__ez_balances_erc20_daily": {"metadata": {"type": "BASE TABLE", "schema": "BALANCES", "name": "EZ_BALANCES_ERC20_DAILY", "database": "POLYGON", "comment": "## What\n\nThis table provides daily ERC20 token balance snapshots for verified token contracts by making direct `balanceOf` contract calls at the end of each day. It captures the current token balance for each address-token pair that has had transfer activity, providing a comprehensive view of token holdings across all verified ERC20 tokens with decimal adjustments and USD valuations where available. Historical ERC20 balances data available, starting from `2025-06-10`.\n\n## Key Use Cases\n\n- Daily portfolio tracking and balance monitoring for ERC20 tokens\n- Historical balance analysis and trend identification\n- Token holder distribution analysis at daily granularity\n- Wallet balance snapshots for reporting and analytics\n- Cross-token balance comparisons and concentration analysis\n- Token supply distribution monitoring over time\n- Daily balance-based yield and return calculations\n\n## Important Relationships\n\n- **Join with fact_blocks**: Use `block_number` for block metadata and timestamps\n- **Join with dim_labels**: Use `address` for entity identification and categorization\n- **Join with dim_contracts**: Use `contract_address` for token contract details\n- **Join with ez_prices_hourly**: USD valuations already included but can be refreshed\n- **Join with ez_balances_native_daily**: Compare with native token daily balances\n- **Join with ez_token_transfers**: Compare daily balances with transfer activity\n\n## Commonly-used Fields\n\n- `address`: The account address holding the token balance\n- `contract_address`: The ERC20 token contract address\n- `symbol`: Token symbol (USDC, WETH, etc.)\n- `balance`: Token balance at end of day, decimal adjusted to standard units\n- `balance_usd`: USD value of the token balance at end of day\n- `balance_raw`: Raw balance in smallest token unit (wei equivalent)\n- `balance_precise`: Precise decimal-adjusted balance as string\n- `decimals`: Number of decimal places for the token\n- `block_date`: The date for which this balance snapshot was taken\n\n## Sample queries\n\n**Daily Token Holdings by Address**\n```sql\nSELECT \n block_date,\n address,\n symbol,\n balance,\n balance_usd,\n contract_address\nFROM .balances.ez_balances_erc20_daily\nWHERE address = LOWER('0x1234567890123456789012345678901234567890')\n AND block_date >= CURRENT_DATE - 30\n AND balance > 0\nORDER BY block_date DESC, balance_usd DESC;\n```\n\n**Token Holder Count Trends**\n```sql\nSELECT \n block_date,\n symbol,\n contract_address,\n COUNT(DISTINCT address) AS holder_count,\n SUM(balance) AS total_supply_tracked,\n AVG(balance) AS avg_balance,\n MEDIAN(balance) AS median_balance\nFROM .balances.ez_balances_erc20_daily\nWHERE block_date >= CURRENT_DATE - 90\n AND balance > 0\n AND symbol IS NOT NULL\nGROUP BY 1, 2, 3\nORDER BY 1 DESC, holder_count DESC;\n```\n\n**Portfolio Value Evolution**\n```sql\n-- Track portfolio value changes over time for specific addresses\nSELECT \n block_date,\n address,\n COUNT(DISTINCT contract_address) AS token_count,\n SUM(balance_usd) AS total_portfolio_usd,\n STRING_AGG(\n CASE WHEN balance_usd > 100 \n THEN symbol || ': [$]' || ROUND(balance_usd, 2) \n END, ', '\n ) AS major_holdings\nFROM .balances.ez_balances_erc20_daily\nWHERE address IN (\n SELECT DISTINCT address \n FROM .balances.ez_balances_erc20_daily \n WHERE balance_usd > 10000\n LIMIT 100\n)\n AND block_date >= CURRENT_DATE - 30\n AND balance > 0\nGROUP BY 1, 2\nHAVING total_portfolio_usd > 1000\nORDER BY 1 DESC, total_portfolio_usd DESC;\n```\n\n**Token Distribution Analysis**\n```sql\n-- Analyze token concentration and distribution patterns\nSELECT \n symbol,\n contract_address,\n block_date,\n COUNT(DISTINCT address) AS total_holders,\n COUNT(DISTINCT CASE WHEN balance >= 1000 THEN address END) AS holders_1k_plus,\n COUNT(DISTINCT CASE WHEN balance >= 10000 THEN address END) AS holders_10k_plus,\n MAX(balance) AS max_balance,\n PERCENTILE_CONT(0.95) WITHIN GROUP (ORDER BY balance) AS p95_balance,\n PERCENTILE_CONT(0.50) WITHIN GROUP (ORDER BY balance) AS median_balance\nFROM .balances.ez_balances_erc20_daily\nWHERE block_date = CURRENT_DATE - 1\n AND balance > 0\n AND symbol IS NOT NULL\nGROUP BY 1, 2, 3\nHAVING total_holders >= 100\nORDER BY total_holders DESC\nLIMIT 50;\n```\n\n**Daily Balance Changes**\n```sql\n-- Compare daily balances to identify significant changes\nWITH daily_changes AS (\n SELECT \n address,\n contract_address,\n symbol,\n block_date,\n balance,\n balance_usd,\n LAG(balance) OVER (\n PARTITION BY address, contract_address \n ORDER BY block_date\n ) AS prev_balance,\n LAG(balance_usd) OVER (\n PARTITION BY address, contract_address \n ORDER BY block_date\n ) AS prev_balance_usd\n FROM .balances.ez_balances_erc20_daily\n WHERE block_date >= CURRENT_DATE - 7\n AND balance > 0\n)\nSELECT \n block_date,\n address,\n symbol,\n balance,\n prev_balance,\n balance - prev_balance AS balance_change,\n balance_usd - prev_balance_usd AS balance_change_usd,\n CASE \n WHEN prev_balance > 0 \n THEN ((balance - prev_balance) / prev_balance) * 100 \n ELSE NULL \n END AS pct_change\nFROM daily_changes\nWHERE ABS(balance_change_usd) > 1000\n AND prev_balance IS NOT NULL\nORDER BY ABS(balance_change_usd) DESC\nLIMIT 100;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": "The date for which this balance snapshot represents the end-of-day token balance.\n\nExample: '2025-07-04'"}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": "The account address whose token balance is recorded in this daily snapshot.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": "The ERC20 token contract address for which the balance is recorded.\n\nExample: '0xa0b86a33e6eb88b4d81b15e4e60c8a5b776e3b7a'"}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": "Number of decimal places for the token, used for proper decimal adjustment in balance calculations.\n\nExample: 6"}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": "The token symbol for the ERC20 token.\n\nExample: 'USDC'"}, "BALANCE_HEX": {"type": "TEXT", "index": 7, "name": "BALANCE_HEX", "comment": "Hexadecimal representation of the token balance as returned by the balanceOf contract call.\n\nExample: '0x3b9aca00'"}, "BALANCE_RAW": {"type": "NUMBER", "index": 8, "name": "BALANCE_RAW", "comment": "Token balance in the smallest unit (wei equivalent) without decimal adjustment, as returned by the contract.\n\nExample: 1000000000"}, "BALANCE_PRECISE": {"type": "TEXT", "index": 9, "name": "BALANCE_PRECISE", "comment": "Token balance with proper decimal adjustment, returned as a string to preserve precision.\n\nExample: '1000.000000'"}, "BALANCE": {"type": "FLOAT", "index": 10, "name": "BALANCE", "comment": "Token balance with decimal adjustment converted to a float for easier mathematical operations.\n\nExample: 1000.0"}, "BALANCE_USD": {"type": "FLOAT", "index": 11, "name": "BALANCE_USD", "comment": "USD value of the token balance at the end of the day, calculated using hourly price data.\n\nExample: 1000.50"}, "EZ_BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 12, "name": "EZ_BALANCES_ERC20_DAILY_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:23UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 24034857472, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_date)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 471673140, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.balances__ez_balances_erc20_daily"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_S.415d28f531": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_S", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_S.415d28f531"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2a1903b370": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "POLYMARKET_FILLED_ORDERS_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2a1903b370"}, "model.fsc_evm.silver_dex__velodrome_v1_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "VELODROME_V1_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "SENDER": {"type": "TEXT", "index": 11, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 12, "name": "TX_TO", "comment": null}, "AMOUNT0IN": {"type": "NUMBER", "index": 13, "name": "AMOUNT0IN", "comment": null}, "AMOUNT1IN": {"type": "NUMBER", "index": 14, "name": "AMOUNT1IN", "comment": null}, "AMOUNT0OUT": {"type": "NUMBER", "index": 15, "name": "AMOUNT0OUT", "comment": null}, "AMOUNT1OUT": {"type": "NUMBER", "index": 16, "name": "AMOUNT1OUT", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 17, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 18, "name": "TOKEN1", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 19, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 20, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 21, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 22, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 26, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 27, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__velodrome_v1_swaps"}, "model.fsc_evm.silver__relevant_contracts": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "RELEVANT_CONTRACTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "TOTAL_EVENT_COUNT": {"type": "NUMBER", "index": 2, "name": "TOTAL_EVENT_COUNT", "comment": null}, "TOTAL_CALL_COUNT": {"type": "NUMBER", "index": 3, "name": "TOTAL_CALL_COUNT", "comment": null}, "TOTAL_INTERACTION_COUNT": {"type": "NUMBER", "index": 4, "name": "TOTAL_INTERACTION_COUNT", "comment": null}, "MAX_INSERTED_TIMESTAMP_LOGS": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "MAX_INSERTED_TIMESTAMP_LOGS", "comment": null}, "MAX_INSERTED_TIMESTAMP_TRACES": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "MAX_INSERTED_TIMESTAMP_TRACES", "comment": null}, "LATEST_EVENT_BLOCK": {"type": "NUMBER", "index": 7, "name": "LATEST_EVENT_BLOCK", "comment": null}, "LATEST_CALL_BLOCK": {"type": "NUMBER", "index": 8, "name": "LATEST_CALL_BLOCK", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:21UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 12153355776, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 397811928, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__relevant_contracts"}, "test.fsc_evm.not_null_silver__complete_native_prices_MODIFIED_TIMESTAMP.595acedfe2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NATIVE_PRICES_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "PRICE": {"type": "FLOAT", "index": 6, "name": "PRICE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN", "comment": null}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 8, "name": "IS_IMPUTED", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 10, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 11, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_NATIVE_PRICES_ID": {"type": "TEXT", "index": 15, "name": "COMPLETE_NATIVE_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_native_prices_MODIFIED_TIMESTAMP.595acedfe2"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_EVENT_INDEX.4e0de8f75f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_EVENT_INDEX.4e0de8f75f"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.78e48edafd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "MOOAR_SALES_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.78e48edafd"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_FEE_RAW.aaa792c161": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_PLATFORM_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_FEE_RAW.aaa792c161"}, "test.polygon_models.not_null_silver_olas__create_service_multisigs_BLOCK_TIMESTAMP.c337c03bc4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "CREATE_SERVICE_MULTISIGS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 9, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 10, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 11, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 12, "name": "TOPIC_3", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 13, "name": "EVENT_NAME", "comment": null}, "DATA": {"type": "TEXT", "index": 14, "name": "DATA", "comment": null}, "SEGMENTED_DATA": {"type": "ARRAY", "index": 15, "name": "SEGMENTED_DATA", "comment": null}, "ID": {"type": "NUMBER", "index": 16, "name": "ID", "comment": null}, "MULTISIG_ADDRESS": {"type": "TEXT", "index": 17, "name": "MULTISIG_ADDRESS", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 18, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 19, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CREATE_SERVICE_MULTISIGS_ID": {"type": "TEXT", "index": 20, "name": "CREATE_SERVICE_MULTISIGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 23, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__create_service_multisigs_BLOCK_TIMESTAMP.c337c03bc4"}, "test.fsc_evm.not_null_test_silver__receipts_full_RECEIPTS_JSON.60e73b67be": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "RECEIPTS_FULL_RECEIPTS_JSON", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": null}, "RECEIPTS_JSON": {"type": "VARIANT", "index": 4, "name": "RECEIPTS_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "RECEIPTS_ID": {"type": "TEXT", "index": 6, "name": "RECEIPTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__receipts_full_RECEIPTS_JSON.60e73b67be"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_PARENT_HASH.7c8b3fff47": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_PARENT_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_PARENT_HASH.7c8b3fff47"}, "model.fsc_evm.github_actions__relevant_workflows": {"metadata": {"type": "BASE TABLE", "schema": "GITHUB_ACTIONS", "name": "RELEVANT_WORKFLOWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"WORKFLOW_NAME": {"type": "TEXT", "index": 1, "name": "WORKFLOW_NAME", "comment": null}, "INSERTED_AT": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "INSERTED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1536, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 23, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.github_actions__relevant_workflows"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_EVENT_INDEX.bebac92256": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_EVENT_INDEX.bebac92256"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.77148f96bc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "ELEMENT_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.77148f96bc"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE.1ffe9dc96f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE.1ffe9dc96f"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_full_TX_HASH__0_xX_0_9a_fA_F_.abdf44d14a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_SILVER", "name": "DECODED_LOGS_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_full_TX_HASH__0_xX_0_9a_fA_F_.abdf44d14a"}, "test.fsc_evm.not_null_silver__labels_ADDRESS.88df57a9e0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "LABELS_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"SYSTEM_CREATED_AT": {"type": "TIMESTAMP_LTZ", "index": 1, "name": "SYSTEM_CREATED_AT", "comment": null}, "INSERT_DATE": {"type": "TIMESTAMP_LTZ", "index": 2, "name": "INSERT_DATE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": null}, "CREATOR": {"type": "TEXT", "index": 5, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 6, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 7, "name": "LABEL_SUBTYPE", "comment": null}, "ADDRESS_NAME": {"type": "TEXT", "index": 8, "name": "ADDRESS_NAME", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 9, "name": "PROJECT_NAME", "comment": null}, "_IS_DELETED": {"type": "BOOLEAN", "index": 10, "name": "_IS_DELETED", "comment": null}, "LABELS_ID": {"type": "TEXT", "index": 11, "name": "LABELS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 14, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__labels_ADDRESS.88df57a9e0"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_TRANSACTIONS_ROOT__0_xX_0_9a_fA_F_.8d1b61bce1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_BLOCKS_FULL_TRANSACTIONS_ROOT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_TRANSACTIONS_ROOT__0_xX_0_9a_fA_F_.8d1b61bce1"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_FACT_BLOCKS_ID.a71e6bc73d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_FACT_BLOCKS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_FACT_BLOCKS_ID.a71e6bc73d"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.eb95035ba4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:34UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.eb95035ba4"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TX_HASH.159d87490e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TX_HASH.159d87490e"}, "model.fsc_evm.admin__number_sequence": {"metadata": {"type": "BASE TABLE", "schema": "ADMIN", "name": "NUMBER_SEQUENCE", "database": "POLYGON", "comment": "This model generates a sequence of numbers for a given range.\n", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_ID": {"type": "NUMBER", "index": 1, "name": "_ID", "comment": "Primary key for the table"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-05-15 15:31UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1109886976, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(round(_id,-3))", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1000000000, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.admin__number_sequence"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_FEE.f5351603f2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_TX_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_FEE.f5351603f2"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_REMOVED.c806d11add": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_EVENT_REMOVED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_REMOVED.c806d11add"}, "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "KYBERSWAP_V1_DYNAMIC_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 6, "name": "EVENT_NAME", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 7, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 8, "name": "TOKEN1", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "AMP_BPS": {"type": "NUMBER", "index": 10, "name": "AMP_BPS", "comment": null}, "TOTAL_POOL": {"type": "NUMBER", "index": 11, "name": "TOTAL_POOL", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 12, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 13, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 14, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 15, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 3651072, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 751, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pools"}, "test.fsc_evm.accepted_values_recent_row_observability__logs_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.33a0e6880c": {"metadata": {"type": "BASE TABLE", "schema": "ACCEPTED_VALUES_RECENT_ROW_OBSERVABILITY", "name": "LOGS_BLOCKS_IMPACTED_COUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCKS_IMPACTED_COUNT": {"type": "NUMBER", "index": 1, "name": "BLOCKS_IMPACTED_COUNT", "comment": null}, "MISSING_LIST": {"type": "ARRAY", "index": 2, "name": "MISSING_LIST", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.accepted_values_recent_row_observability__logs_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.33a0e6880c"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_CURRENCY_ADDRESS.1be87eaf04": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_CURRENCY_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_CURRENCY_ADDRESS.1be87eaf04"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_CONTRACT_ADDRESS.d2763e9c60": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_CONTRACT_ADDRESS.d2763e9c60"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS.d211fba691": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "POLYMARKET_FILLED_ORDERS_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "QUESTION": {"type": "TEXT", "index": 10, "name": "QUESTION", "comment": null}, "MARKET_SLUG": {"type": "TEXT", "index": 11, "name": "MARKET_SLUG", "comment": null}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "END_DATE_ISO", "comment": null}, "OUTCOME": {"type": "TEXT", "index": 13, "name": "OUTCOME", "comment": null}, "ORDER_HASH": {"type": "TEXT", "index": 14, "name": "ORDER_HASH", "comment": null}, "MAKER": {"type": "TEXT", "index": 15, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 16, "name": "TAKER", "comment": null}, "CONDITION_ID": {"type": "TEXT", "index": 17, "name": "CONDITION_ID", "comment": null}, "QUESTION_ID": {"type": "TEXT", "index": 18, "name": "QUESTION_ID", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 19, "name": "ASSET_ID", "comment": null}, "MAKER_ASSET_ID": {"type": "TEXT", "index": 20, "name": "MAKER_ASSET_ID", "comment": null}, "TAKER_ASSET_ID": {"type": "TEXT", "index": 21, "name": "TAKER_ASSET_ID", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "AMOUNT_USD", "comment": null}, "SHARES": {"type": "FLOAT", "index": 23, "name": "SHARES", "comment": null}, "PRICE_PER_SHARE": {"type": "FLOAT", "index": 24, "name": "PRICE_PER_SHARE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "POLYMARKET_FILLED_ORDERS_ID": {"type": "TEXT", "index": 27, "name": "POLYMARKET_FILLED_ORDERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS.d211fba691"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent_MODIFIED_TIMESTAMP__hour__2.f7eb4af9c0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "TRACES_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent_MODIFIED_TIMESTAMP__hour__2.f7eb4af9c0"}, "test.fsc_evm.not_null_silver__complete_native_prices_SYMBOL.640aa16109": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NATIVE_PRICES_SYMBOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "PRICE": {"type": "FLOAT", "index": 6, "name": "PRICE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN", "comment": null}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 8, "name": "IS_IMPUTED", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 10, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 11, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_NATIVE_PRICES_ID": {"type": "TEXT", "index": 15, "name": "COMPLETE_NATIVE_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_native_prices_SYMBOL.640aa16109"}, "model.fsc_evm.silver_lending__comp_v2_borrows": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "COMP_V2_BORROWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "BORROWER": {"type": "TEXT", "index": 9, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 14, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 15, "name": "VERSION", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 19, "name": "_LOG_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 20, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__comp_v2_borrows"}, "test.fsc_evm.not_null_test_silver__blocks_recent_INSERTED_TIMESTAMP.0004e5d07b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "BLOCKS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BLOCKS_ID": {"type": "TEXT", "index": 5, "name": "BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 8, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__blocks_recent_INSERTED_TIMESTAMP.0004e5d07b"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_DEPOSITOR.aa4643edf2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_DEPOSITOR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_DEPOSITOR.aa4643edf2"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_CURRENCY_ADDRESS.cfb0b5d08a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_CURRENCY_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_CURRENCY_ADDRESS.cfb0b5d08a"}, "test.polygon_models.not_null_silver__tofunft_sales_TOTAL_PRICE_RAW.ebe1a4900d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_TOTAL_PRICE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_TOTAL_PRICE_RAW.ebe1a4900d"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_FAILED__NUMBER__FLOAT.5f9df371b1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER_STATS", "name": "CORE_METRICS_HOURLY_TRANSACTION_COUNT_FAILED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_FAILED__NUMBER__FLOAT.5f9df371b1"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT.566be08af9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_TRANSACTIONS_ROOT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT.566be08af9"}, "test.fsc_evm.not_null_silver__balances_erc20_daily__INSERTED_TIMESTAMP.30b89c0c1d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BALANCES_ERC20_DAILY", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 5, "name": "BALANCE_HEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 7, "name": "BALANCES_ERC20_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__balances_erc20_daily__INSERTED_TIMESTAMP.30b89c0c1d"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PREMIUM_AMOUNT_UNADJ.9afaa927d7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_PREMIUM_AMOUNT_UNADJ", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PREMIUM_AMOUNT_UNADJ.9afaa927d7"}, "model.fsc_evm.silver_dex__pharaoh_v1_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "PHARAOH_V1_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "AMOUNT0IN": {"type": "NUMBER", "index": 12, "name": "AMOUNT0IN", "comment": null}, "AMOUNT1IN": {"type": "NUMBER", "index": 13, "name": "AMOUNT1IN", "comment": null}, "AMOUNT0OUT": {"type": "NUMBER", "index": 14, "name": "AMOUNT0OUT", "comment": null}, "AMOUNT1OUT": {"type": "NUMBER", "index": 15, "name": "AMOUNT1OUT", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 16, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 17, "name": "TOKEN1", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 18, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 19, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 20, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 21, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 22, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 23, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 24, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 25, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__pharaoh_v1_swaps"}, "model.fsc_evm.admin__ez_variables": {"metadata": {"type": "VIEW", "schema": "ADMIN", "name": "EZ_VARIABLES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PROJECT": {"type": "TEXT", "index": 1, "name": "PROJECT", "comment": ""}, "PACKAGE": {"type": "TEXT", "index": 2, "name": "PACKAGE", "comment": ""}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": ""}, "KEY": {"type": "TEXT", "index": 4, "name": "KEY", "comment": ""}, "VALUE": {"type": "TEXT", "index": 5, "name": "VALUE", "comment": ""}, "PARENT_KEY": {"type": "TEXT", "index": 6, "name": "PARENT_KEY", "comment": ""}, "DEFAULT_VALUE": {"type": "TEXT", "index": 7, "name": "DEFAULT_VALUE", "comment": ""}, "DEFAULT_TYPE": {"type": "TEXT", "index": 8, "name": "DEFAULT_TYPE", "comment": ""}, "EZ_VARIABLES_ID": {"type": "TEXT", "index": 9, "name": "EZ_VARIABLES_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.admin__ez_variables"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_TYPE.9ffebdfc52": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_TX_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_TYPE.9ffebdfc52"}, "model.fsc_evm.test_gold__fact_transactions_recent": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT", "database": "POLYGON", "comment": "This is a view used to test the last three days of fact transactions.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": ""}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": ""}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": ""}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": ""}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": ""}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": ""}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": ""}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": ""}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": ""}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": ""}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": ""}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": ""}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": ""}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": ""}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": ""}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": ""}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": ""}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": ""}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": ""}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": ""}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": ""}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": ""}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": ""}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP.33bd9eb14a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "DECODED_LOGS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": null}, "DECODED_DATA": {"type": "VARIANT", "index": 6, "name": "DECODED_DATA", "comment": null}, "TRANSFORMED": {"type": "VARIANT", "index": 7, "name": "TRANSFORMED", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 8, "name": "DECODED_FLAT", "comment": null}, "DECODED_LOGS_ID": {"type": "TEXT", "index": 9, "name": "DECODED_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP.33bd9eb14a"}, "test.polygon_models.not_null_silver__element_sales_TX_FEE.cbc67dca64": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_TX_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_TX_FEE.cbc67dca64"}, "model.fsc_evm.admin__fact_rpc_details": {"metadata": {"type": "BASE TABLE", "schema": "ADMIN", "name": "FACT_RPC_DETAILS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "RECEIPTS_BY_BLOCK": {"type": "BOOLEAN", "index": 2, "name": "RECEIPTS_BY_BLOCK", "comment": null}, "BLOCKS_PER_HOUR": {"type": "NUMBER", "index": 3, "name": "BLOCKS_PER_HOUR", "comment": null}, "BLOCKS_FIELDS": {"type": "ARRAY", "index": 4, "name": "BLOCKS_FIELDS", "comment": null}, "TRANSACTIONS_FIELDS": {"type": "ARRAY", "index": 5, "name": "TRANSACTIONS_FIELDS", "comment": null}, "RECEIPTS_FIELDS": {"type": "ARRAY", "index": 6, "name": "RECEIPTS_FIELDS", "comment": null}, "TRACES_FIELDS": {"type": "ARRAY", "index": 7, "name": "TRACES_FIELDS", "comment": null}, "RPC_SAMPLED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "RPC_SAMPLED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-05-15 15:21UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 16384, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.admin__fact_rpc_details"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__transactions_recent_TX_POSITION__BLOCK_NUMBER.3be96c2d1d": {"metadata": {"type": "BASE TABLE", "schema": "FSC_EVM_SEQUENCE_GAPS_TEST_SILVER", "name": "TRANSACTIONS_RECENT_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PREV_TX_POSITION": {"type": "NUMBER", "index": 2, "name": "PREV_TX_POSITION", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}, "GAP": {"type": "NUMBER", "index": 4, "name": "GAP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__transactions_recent_TX_POSITION__BLOCK_NUMBER.3be96c2d1d"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__fact_variables_FACT_VARIABLES_ID.28a6685d8c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_ADMIN", "name": "FACT_VARIABLES_FACT_VARIABLES_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"FACT_VARIABLES_ID": {"type": "TEXT", "index": 1, "name": "FACT_VARIABLES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__fact_variables_FACT_VARIABLES_ID.28a6685d8c"}, "test.polygon_models.not_null_silver__mooar_sales_TOTAL_FEES_RAW.676780db0c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_TOTAL_FEES_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_TOTAL_FEES_RAW.676780db0c"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_RECEIVER.465bf44ee5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_RECEIVER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_RECEIVER.465bf44ee5"}, "model.fsc_evm.test_silver__user_verified_abis_recent": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "USER_VERIFIED_ABIS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": ""}, "ABI": {"type": "TEXT", "index": 2, "name": "ABI", "comment": ""}, "DISCORD_USERNAME": {"type": "TEXT", "index": 3, "name": "DISCORD_USERNAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "ABI_HASH": {"type": "TEXT", "index": 5, "name": "ABI_HASH", "comment": ""}, "ID": {"type": "TEXT", "index": 6, "name": "ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__user_verified_abis_recent"}, "test.polygon_models.not_null_silver_olas__registry_reads_BLOCK_NUMBER.b13e2f8805": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "REGISTRY_READS_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"READ_OUTPUT": {"type": "VARIANT", "index": 1, "name": "READ_OUTPUT", "comment": null}, "READ_ID": {"type": "TEXT", "index": 2, "name": "READ_ID", "comment": null}, "READ_RESULT": {"type": "TEXT", "index": 3, "name": "READ_RESULT", "comment": null}, "READ_ID_OBJECT": {"type": "ARRAY", "index": 4, "name": "READ_ID_OBJECT", "comment": null}, "FUNCTION_SIG": {"type": "TEXT", "index": 5, "name": "FUNCTION_SIG", "comment": null}, "FUNCTION_NAME": {"type": "TEXT", "index": 6, "name": "FUNCTION_NAME", "comment": null}, "FUNCTION_INPUT": {"type": "NUMBER", "index": 7, "name": "FUNCTION_INPUT", "comment": null}, "DATA": {"type": "TEXT", "index": 8, "name": "DATA", "comment": null}, "TOKEN_URI_LINK": {"type": "TEXT", "index": 9, "name": "TOKEN_URI_LINK", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 11, "name": "BLOCK_NUMBER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "REGISTRY_READS_ID": {"type": "TEXT", "index": 13, "name": "REGISTRY_READS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__registry_reads_BLOCK_NUMBER.b13e2f8805"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_RECEIPTS_ROOT.dc843e4165": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_RECEIPTS_ROOT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_RECEIPTS_ROOT.dc843e4165"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE.8b0bc69a85": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_VALUE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE.8b0bc69a85"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_EVENT_NAME__STRING__VARCHAR.d6989542d6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "DECODED_LOGS_FULL_EVENT_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_EVENT_NAME__STRING__VARCHAR.d6989542d6"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_1_sales_EVENT_TYPE__bid_won__sale.2524b82d17": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_SET_SILVER", "name": "SEAPORT_1_1_SALES_EVENT_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE_FIELD": {"type": "TEXT", "index": 1, "name": "VALUE_FIELD", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_1_sales_EVENT_TYPE__bid_won__sale.2524b82d17"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_SUCCEEDED.ac8e3e83cb": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_TX_SUCCEEDED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_SUCCEEDED.ac8e3e83cb"}, "test.fsc_evm.not_null_test_silver__transactions_full_BLOCK_NUMBER.10f008705d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRANSACTIONS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}, "TRANSACTION_JSON": {"type": "VARIANT", "index": 4, "name": "TRANSACTION_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRANSACTIONS_ID": {"type": "TEXT", "index": 6, "name": "TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:46UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__transactions_full_BLOCK_NUMBER.10f008705d"}, "model.fsc_evm.bronze__complete_token_asset_metadata": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "COMPLETE_TOKEN_ASSET_METADATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TOKEN_ADDRESS": {"type": "TEXT", "index": 1, "name": "TOKEN_ADDRESS", "comment": ""}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": ""}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 6, "name": "BLOCKCHAIN", "comment": ""}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN_NAME", "comment": ""}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN_ID", "comment": ""}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": ""}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "IS_VERIFIED", "comment": ""}, "IS_VERIFIED_MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "IS_VERIFIED_MODIFIED_TIMESTAMP", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 12, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 13, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_TOKEN_ASSET_METADATA_ID": {"type": "TEXT", "index": 17, "name": "COMPLETE_TOKEN_ASSET_METADATA_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 18, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__complete_token_asset_metadata"}, "model.fsc_evm.silver_bridge__stargate_v2_busrode": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "STARGATE_V2_BUSRODE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "OFT_SENT_INDEX": {"type": "NUMBER", "index": 4, "name": "OFT_SENT_INDEX", "comment": null}, "BUS_RODE_INDEX": {"type": "NUMBER", "index": 5, "name": "BUS_RODE_INDEX", "comment": null}, "STARGATE_ADAPTER_ADDRESS": {"type": "TEXT", "index": 6, "name": "STARGATE_ADAPTER_ADDRESS", "comment": null}, "GUID": {"type": "TEXT", "index": 7, "name": "GUID", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": null}, "DST_ID": {"type": "NUMBER", "index": 9, "name": "DST_ID", "comment": null}, "AMOUNT_SENT": {"type": "NUMBER", "index": 10, "name": "AMOUNT_SENT", "comment": null}, "BUS_DST_ID": {"type": "NUMBER", "index": 11, "name": "BUS_DST_ID", "comment": null}, "TICKET_ID": {"type": "NUMBER", "index": 12, "name": "TICKET_ID", "comment": null}, "FARE": {"type": "NUMBER", "index": 13, "name": "FARE", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 14, "name": "ASSET_ID", "comment": null}, "ASSET_NAME": {"type": "TEXT", "index": 15, "name": "ASSET_NAME", "comment": null}, "ASSET_ADDRESS": {"type": "TEXT", "index": 16, "name": "ASSET_ADDRESS", "comment": null}, "DST_RECEIVER_ADDRESS": {"type": "TEXT", "index": 17, "name": "DST_RECEIVER_ADDRESS", "comment": null}, "IS_NATIVE_DROP": {"type": "TEXT", "index": 18, "name": "IS_NATIVE_DROP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:37UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 23435776, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 87947, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__stargate_v2_busrode"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.5025592820": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.5025592820"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.f73a5fc522": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_4_SALES_BUYER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.f73a5fc522"}, "model.fsc_evm.silver_dex__maverick_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "MAVERICK_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "TOKEN_A_IN": {"type": "BOOLEAN", "index": 12, "name": "TOKEN_A_IN", "comment": null}, "EXACT_OUTPUT": {"type": "BOOLEAN", "index": 13, "name": "EXACT_OUTPUT", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "ACTIVE_TICK": {"type": "NUMBER", "index": 16, "name": "ACTIVE_TICK", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 17, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 18, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 19, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 20, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 21, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 22, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 23, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__maverick_swaps"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_BLOCK_NUMBER.c4c18714b1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_BLOCK_NUMBER.c4c18714b1"}, "model.fsc_evm.test_gold__ez_balances_native_daily_recent": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "EZ_BALANCES_NATIVE_DAILY_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": ""}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": ""}, "BALANCE_HEX": {"type": "TEXT", "index": 5, "name": "BALANCE_HEX", "comment": ""}, "BALANCE_RAW": {"type": "NUMBER", "index": 6, "name": "BALANCE_RAW", "comment": ""}, "BALANCE_PRECISE": {"type": "TEXT", "index": 7, "name": "BALANCE_PRECISE", "comment": ""}, "BALANCE": {"type": "FLOAT", "index": 8, "name": "BALANCE", "comment": ""}, "BALANCE_USD": {"type": "FLOAT", "index": 9, "name": "BALANCE_USD", "comment": ""}, "EZ_BALANCES_NATIVE_DAILY_ID": {"type": "TEXT", "index": 10, "name": "EZ_BALANCES_NATIVE_DAILY_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__ez_balances_native_daily_recent"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP.4c29ced501": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 8, "name": "POOL_NAME", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 9, "name": "POOL_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 15, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 17, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 18, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 19, "name": "EVENT_INDEX", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 24, "name": "TOKEN_IN", "comment": null}, "TOKEN_IN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IN_IS_VERIFIED", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 26, "name": "TOKEN_OUT", "comment": null}, "TOKEN_OUT_IS_VERIFIED": {"type": "BOOLEAN", "index": 27, "name": "TOKEN_OUT_IS_VERIFIED", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 28, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 29, "name": "SYMBOL_OUT", "comment": null}, "DECIMALS_IN": {"type": "NUMBER", "index": 30, "name": "DECIMALS_IN", "comment": null}, "DECIMALS_OUT": {"type": "NUMBER", "index": 31, "name": "DECIMALS_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 32, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_SWAPS_ID": {"type": "TEXT", "index": 34, "name": "COMPLETE_DEX_SWAPS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 35, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 37, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP.4c29ced501"}, "model.fsc_evm.silver_lending__aave_ethereum_liquidations": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "AAVE_ETHEREUM_LIQUIDATIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 9, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 10, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 11, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 12, "name": "COLLATERAL_TOKEN", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "NUMBER", "index": 13, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 14, "name": "DEBT_TOKEN", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 16, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 19, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 21, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__aave_ethereum_liquidations"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_ADDRESS.daabd36c03": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_TRACE_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_ADDRESS.daabd36c03"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_INPUT.72da83c733": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_INPUT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_INPUT.72da83c733"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_FACT_TRANSACTIONS_ID.e7b3d89825": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_FACT_TRANSACTIONS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_FACT_TRANSACTIONS_ID.e7b3d89825"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TYPE.c008585f12": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 8, "name": "POOL_NAME", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 9, "name": "POOL_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 15, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 17, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 18, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 19, "name": "EVENT_INDEX", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 24, "name": "TOKEN_IN", "comment": null}, "TOKEN_IN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IN_IS_VERIFIED", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 26, "name": "TOKEN_OUT", "comment": null}, "TOKEN_OUT_IS_VERIFIED": {"type": "BOOLEAN", "index": 27, "name": "TOKEN_OUT_IS_VERIFIED", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 28, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 29, "name": "SYMBOL_OUT", "comment": null}, "DECIMALS_IN": {"type": "NUMBER", "index": 30, "name": "DECIMALS_IN", "comment": null}, "DECIMALS_OUT": {"type": "NUMBER", "index": 31, "name": "DECIMALS_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 32, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_SWAPS_ID": {"type": "TEXT", "index": 34, "name": "COMPLETE_DEX_SWAPS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 35, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 37, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TYPE.c008585f12"}, "test.fsc_evm.not_null_admin__number_sequence__ID.1f1a84eef0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ADMIN", "name": "NUMBER_SEQUENCE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_ID": {"type": "NUMBER", "index": 1, "name": "_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_admin__number_sequence__ID.1f1a84eef0"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_ORIGIN_FUNCTION_SIGNATURE.81cc4e99fd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_ORIGIN_FUNCTION_SIGNATURE.81cc4e99fd"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_native_daily_ADDRESS__0_xX_0_9a_fA_F_.8a750d62a3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "BALANCES_NATIVE_DAILY_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:50UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_native_daily_ADDRESS__0_xX_0_9a_fA_F_.8a750d62a3"}, "model.polygon_models.silver__mooar_sales": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "MOOAR_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": ""}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": ""}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": ""}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": ""}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": ""}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": ""}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": ""}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": ""}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": ""}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": ""}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": ""}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": ""}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": ""}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": ""}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": ""}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": ""}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": ""}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": ""}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": ""}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": ""}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": ""}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": ""}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": ""}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": ""}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": ""}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": ""}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": ""}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": ""}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:34UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1301535744, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1468608, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__mooar_sales"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.6539ed403f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_FULL_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:20UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.6539ed403f"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID.5275f2f741": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_RECENT_EZ_BALANCES_ERC20_DAILY_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 7, "name": "BALANCE_HEX", "comment": null}, "BALANCE_RAW": {"type": "NUMBER", "index": 8, "name": "BALANCE_RAW", "comment": null}, "BALANCE_PRECISE": {"type": "TEXT", "index": 9, "name": "BALANCE_PRECISE", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 10, "name": "BALANCE", "comment": null}, "BALANCE_USD": {"type": "FLOAT", "index": 11, "name": "BALANCE_USD", "comment": null}, "EZ_BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 12, "name": "EZ_BALANCES_ERC20_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID.5275f2f741"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_SUCCEEDED.a552892b92": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_TX_SUCCEEDED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_SUCCEEDED.a552892b92"}, "model.fsc_evm.silver_lending__aave_ethereum_repayments": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "AAVE_ETHEREUM_REPAYMENTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 10, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 11, "name": "AMOUNT_UNADJ", "comment": null}, "PAYER": {"type": "TEXT", "index": 12, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 13, "name": "BORROWER", "comment": null}, "LENDING_POOL_CONTRACT": {"type": "TEXT", "index": 14, "name": "LENDING_POOL_CONTRACT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 15, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 16, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 17, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 18, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 20, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__aave_ethereum_repayments"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_DESTINATION_CHAIN_RECEIVER.73ef2ee307": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_DESTINATION_CHAIN_RECEIVER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 15, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 19, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 20, "name": "TOKEN_SYMBOL", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 21, "name": "TOKEN_DECIMALS", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 23, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 24, "name": "AMOUNT_USD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IS_VERIFIED", "comment": null}, "_ID": {"type": "TEXT", "index": 26, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_BRIDGE_ACTIVITY_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_BRIDGE_ACTIVITY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_DESTINATION_CHAIN_RECEIVER.73ef2ee307"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_native_transfers_recent_EZ_NATIVE_TRANSFERS_ID.c7c417aa6a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_RECENT_EZ_NATIVE_TRANSFERS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EZ_NATIVE_TRANSFERS_ID": {"type": "TEXT", "index": 1, "name": "EZ_NATIVE_TRANSFERS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_native_transfers_recent_EZ_NATIVE_TRANSFERS_ID.c7c417aa6a"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c6d76da598": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "RECEIPTS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c6d76da598"}, "model.fsc_evm.silver_lending__aave_tokens": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "AAVE_TOKENS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "ATOKEN_CREATED_BLOCK": {"type": "NUMBER", "index": 2, "name": "ATOKEN_CREATED_BLOCK", "comment": null}, "VERSION_POOL": {"type": "TEXT", "index": 3, "name": "VERSION_POOL", "comment": null}, "TREASURY_ADDRESS": {"type": "TEXT", "index": 4, "name": "TREASURY_ADDRESS", "comment": null}, "ATOKEN_ADDRESS": {"type": "TEXT", "index": 5, "name": "ATOKEN_ADDRESS", "comment": null}, "TOKEN_STABLE_DEBT_ADDRESS": {"type": "TEXT", "index": 6, "name": "TOKEN_STABLE_DEBT_ADDRESS", "comment": null}, "TOKEN_VARIABLE_DEBT_ADDRESS": {"type": "TEXT", "index": 7, "name": "TOKEN_VARIABLE_DEBT_ADDRESS", "comment": null}, "ATOKEN_VERSION": {"type": "TEXT", "index": 8, "name": "ATOKEN_VERSION", "comment": null}, "UNDERLYING_ADDRESS": {"type": "TEXT", "index": 9, "name": "UNDERLYING_ADDRESS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 10, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 11, "name": "VERSION", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 13, "name": "_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:32UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 11264, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 34, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__aave_tokens"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_AMOUNT__NUMBER__FLOAT.7c64e2a5d0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_FULL_AMOUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_AMOUNT__NUMBER__FLOAT.7c64e2a5d0"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_ADDRESS.a22493476f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_BALANCES_NATIVE_DAILY_RECENT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 5, "name": "BALANCE_HEX", "comment": null}, "BALANCE_RAW": {"type": "NUMBER", "index": 6, "name": "BALANCE_RAW", "comment": null}, "BALANCE_PRECISE": {"type": "TEXT", "index": 7, "name": "BALANCE_PRECISE", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 8, "name": "BALANCE", "comment": null}, "BALANCE_USD": {"type": "FLOAT", "index": 9, "name": "BALANCE_USD", "comment": null}, "EZ_BALANCES_NATIVE_DAILY_ID": {"type": "TEXT", "index": 10, "name": "EZ_BALANCES_NATIVE_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_ADDRESS.a22493476f"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID.c654ef3a67": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_EZ_DECODED_EVENT_LOGS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 1, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 09:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID.c654ef3a67"}, "model.fsc_evm.bronze__traces_fr": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "TRACES_FR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 6, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 8, "name": "BLOCK_NUMBER", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__traces_fr"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.77793690bd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_RECEIPTS_ROOT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.77793690bd"}, "model.fsc_evm.silver_bridge__celer_cbridge_send": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "CELER_CBRIDGE_SEND", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 10, "name": "EVENT_REMOVED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 11, "name": "TX_SUCCEEDED", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 12, "name": "BRIDGE_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 15, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 16, "name": "AMOUNT", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "NUMBER", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "MAX_SLIPPAGE": {"type": "NUMBER", "index": 18, "name": "MAX_SLIPPAGE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 19, "name": "NONCE", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 20, "name": "TOKEN_ADDRESS", "comment": null}, "TRANSFER_ID": {"type": "TEXT", "index": 21, "name": "TRANSFER_ID", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 24, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 25, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:29UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 79299584, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 406853, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__celer_cbridge_send"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATOR.32624d91f1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_LIQUIDATOR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATOR.32624d91f1"}, "model.fsc_evm.silver_bridge__everclear": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "EVERCLEAR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 9, "name": "BRIDGE_ADDRESS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 10, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 11, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 12, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "INTENT_ID": {"type": "TEXT", "index": 14, "name": "INTENT_ID", "comment": null}, "SENDER": {"type": "TEXT", "index": 15, "name": "SENDER", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 16, "name": "INITIATOR", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 17, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "INPUT_ASSET": {"type": "TEXT", "index": 19, "name": "INPUT_ASSET", "comment": null}, "OUTPUT_ASSET": {"type": "TEXT", "index": 20, "name": "OUTPUT_ASSET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 21, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "TEXT", "index": 22, "name": "AMOUNT_UNADJ", "comment": null}, "DESTINATION_COUNT": {"type": "NUMBER", "index": 23, "name": "DESTINATION_COUNT", "comment": null}, "SOURCE_CHAIN_ID": {"type": "TEXT", "index": 24, "name": "SOURCE_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 25, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 26, "name": "DESTINATION_CHAIN", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 27, "name": "_LOG_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 519680, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1410, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__everclear"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_liquidations__LOG_ID.7cbbbc2f23": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_liquidations__LOG_ID.7cbbbc2f23"}, "model.fsc_evm.test_silver__created_contracts_full": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "CREATED_CONTRACTS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "CREATED_CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CREATED_CONTRACT_ADDRESS", "comment": ""}, "CREATOR_ADDRESS": {"type": "TEXT", "index": 5, "name": "CREATOR_ADDRESS", "comment": ""}, "CREATED_CONTRACT_INPUT": {"type": "TEXT", "index": 6, "name": "CREATED_CONTRACT_INPUT", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "CREATED_CONTRACTS_ID": {"type": "TEXT", "index": 8, "name": "CREATED_CONTRACTS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 11, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__created_contracts_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__dim_contract_abis_full_CONTRACT_ADDRESS.fca68d5e2f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "DIM_CONTRACT_ABIS_FULL_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 09:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__dim_contract_abis_full_CONTRACT_ADDRESS.fca68d5e2f"}, "test.fsc_evm.not_null_silver__complete_token_asset_metadata_BLOCKCHAIN_ID.fe8350a322": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_TOKEN_ASSET_METADATA_BLOCKCHAIN_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TOKEN_ADDRESS": {"type": "TEXT", "index": 1, "name": "TOKEN_ADDRESS", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 6, "name": "BLOCKCHAIN", "comment": null}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN_NAME", "comment": null}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN_ID", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "IS_VERIFIED", "comment": null}, "IS_VERIFIED_MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "IS_VERIFIED_MODIFIED_TIMESTAMP", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 12, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 13, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_TOKEN_ASSET_METADATA_ID": {"type": "TEXT", "index": 17, "name": "COMPLETE_TOKEN_ASSET_METADATA_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 18, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_token_asset_metadata_BLOCKCHAIN_ID.fe8350a322"}, "model.polygon_models.silver__aggregator_list": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "AGGREGATOR_LIST", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"AGGREGATOR_IDENTIFIER": {"type": "TEXT", "index": 1, "name": "AGGREGATOR_IDENTIFIER", "comment": null}, "AGGREGATOR": {"type": "TEXT", "index": 2, "name": "AGGREGATOR", "comment": null}, "AGGREGATOR_TYPE": {"type": "TEXT", "index": 3, "name": "AGGREGATOR_TYPE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TEXT", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:33UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2048, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__aggregator_list"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_provider_asset_metadata_ASSET_ID__TOKEN_ADDRESS__NAME__SYMBOL__PLATFORM__PLATFORM_ID__PROVIDER.e355e7b6b2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "COMPLETE_PROVIDER_ASSET_METADATA_ASSET_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": null}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 5, "name": "PLATFORM", "comment": null}, "PLATFORM_ID": {"type": "TEXT", "index": 6, "name": "PLATFORM_ID", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_provider_asset_metadata_ASSET_ID__TOKEN_ADDRESS__NAME__SYMBOL__PLATFORM__PLATFORM_ID__PROVIDER.e355e7b6b2"}, "model.fsc_evm.silver_bridge__stargate_v2_oft": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "STARGATE_V2_OFT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "GUID": {"type": "TEXT", "index": 4, "name": "GUID", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 6, "name": "EVENT_NAME", "comment": null}, "STARGATE_OFT_ADDRESS": {"type": "TEXT", "index": 7, "name": "STARGATE_OFT_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 9, "name": "TOKEN_ADDRESS", "comment": null}, "ASSET_ID": {"type": "NUMBER", "index": 10, "name": "ASSET_ID", "comment": null}, "ASSET_NAME": {"type": "TEXT", "index": 11, "name": "ASSET_NAME", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 12, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 13, "name": "TO_ADDRESS", "comment": null}, "SRC_CHAIN_ID": {"type": "TEXT", "index": 14, "name": "SRC_CHAIN_ID", "comment": null}, "SRC_CHAIN": {"type": "TEXT", "index": 15, "name": "SRC_CHAIN", "comment": null}, "DST_CHAIN_ID": {"type": "TEXT", "index": 16, "name": "DST_CHAIN_ID", "comment": null}, "DST_CHAIN": {"type": "TEXT", "index": 17, "name": "DST_CHAIN", "comment": null}, "DST_CHAIN_ID_OFT": {"type": "NUMBER", "index": 18, "name": "DST_CHAIN_ID_OFT", "comment": null}, "AMOUNT_SENT": {"type": "NUMBER", "index": 19, "name": "AMOUNT_SENT", "comment": null}, "AMOUNT_RECEIVED": {"type": "NUMBER", "index": 20, "name": "AMOUNT_RECEIVED", "comment": null}, "PAYLOAD": {"type": "TEXT", "index": 21, "name": "PAYLOAD", "comment": null}, "TX_TYPE": {"type": "TEXT", "index": 22, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "TEXT", "index": 23, "name": "NONCE", "comment": null}, "SENDER_CONTRACT_ADDRESS": {"type": "TEXT", "index": 24, "name": "SENDER_CONTRACT_ADDRESS", "comment": null}, "RECEIVER_CONTRACT_ADDRESS": {"type": "TEXT", "index": 25, "name": "RECEIVER_CONTRACT_ADDRESS", "comment": null}, "MESSAGE_TYPE": {"type": "TEXT", "index": 26, "name": "MESSAGE_TYPE", "comment": null}, "MESSAGE_TYPE_2": {"type": "TEXT", "index": 27, "name": "MESSAGE_TYPE_2", "comment": null}, "EXECUTOR_ADDRESS": {"type": "TEXT", "index": 28, "name": "EXECUTOR_ADDRESS", "comment": null}, "EXECUTOR_FEE": {"type": "NUMBER", "index": 29, "name": "EXECUTOR_FEE", "comment": null}, "DVN_CONTRACT_ADDRESS": {"type": "TEXT", "index": 30, "name": "DVN_CONTRACT_ADDRESS", "comment": null}, "DVN_FEES": {"type": "VARIANT", "index": 31, "name": "DVN_FEES", "comment": null}, "OPTIONAL_DVNS": {"type": "VARIANT", "index": 32, "name": "OPTIONAL_DVNS", "comment": null}, "REQUIRED_DVNS": {"type": "VARIANT", "index": 33, "name": "REQUIRED_DVNS", "comment": null}, "TOTAL_DVN_FEES": {"type": "NUMBER", "index": 34, "name": "TOTAL_DVN_FEES", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 36, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 37, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 38, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 39, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 40, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 41, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 42, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:35UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 69448192, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 158787, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__stargate_v2_oft"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.5c1c155df0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.5c1c155df0"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_CREATOR_FEE_RAW.4571cd3937": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_CREATOR_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_CREATOR_FEE_RAW.4571cd3937"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_INSERTED_TIMESTAMP.b2ca0ceed2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_INSERTED_TIMESTAMP.b2ca0ceed2"}, "test.polygon_models.not_null_silver__complete_nft_sales_TOKENID.434c1bbb73": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_TOKENID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_TOKENID.434c1bbb73"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_CONTRACT_ADDRESS.e8659c0cd4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_CONTRACT_ADDRESS.e8659c0cd4"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT.d64e239e23": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_STATS", "name": "CORE_METRICS_HOURLY_UNIQUE_TO_COUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_TIMESTAMP_HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP_HOUR", "comment": null}, "BLOCK_NUMBER_MIN": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER_MIN", "comment": null}, "BLOCK_NUMBER_MAX": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER_MAX", "comment": null}, "BLOCK_COUNT": {"type": "NUMBER", "index": 4, "name": "BLOCK_COUNT", "comment": null}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "TRANSACTION_COUNT", "comment": null}, "TRANSACTION_COUNT_SUCCESS": {"type": "NUMBER", "index": 6, "name": "TRANSACTION_COUNT_SUCCESS", "comment": null}, "TRANSACTION_COUNT_FAILED": {"type": "NUMBER", "index": 7, "name": "TRANSACTION_COUNT_FAILED", "comment": null}, "UNIQUE_FROM_COUNT": {"type": "NUMBER", "index": 8, "name": "UNIQUE_FROM_COUNT", "comment": null}, "UNIQUE_TO_COUNT": {"type": "NUMBER", "index": 9, "name": "UNIQUE_TO_COUNT", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 10, "name": "TOTAL_FEES", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CORE_METRICS_HOURLY_ID": {"type": "TEXT", "index": 12, "name": "CORE_METRICS_HOURLY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT.d64e239e23"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_EVENT_REMOVED.3234e54d57": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_EVENT_REMOVED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_EVENT_REMOVED.3234e54d57"}, "test.polygon_models.not_null_silver__complete_nft_sales_NFT_LOG_ID.6a32d9392a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_NFT_LOG_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_NFT_LOG_ID.6a32d9392a"}, "model.fsc_evm.bronze__balances_native_fr": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "BALANCES_NATIVE_FR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 7, "name": "BLOCK_NUMBER", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__balances_native_fr"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_EVENT_INDEX.c6e1f7c07f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_EVENT_INDEX.c6e1f7c07f"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_ORIGIN_FUNCTION_SIGNATURE.c97ff6fa70": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_ORIGIN_FUNCTION_SIGNATURE.c97ff6fa70"}, "model.fsc_evm.silver_lending__silo_liquidations": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "SILO_LIQUIDATIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "PROTOCOL_COLLATERAL_TOKEN": {"type": "TEXT", "index": 10, "name": "PROTOCOL_COLLATERAL_TOKEN", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 12, "name": "LIQUIDATOR", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 15, "name": "DEBT_TOKEN", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "TEXT", "index": 16, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 19, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 22, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__silo_liquidations"}, "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE.ebd6d32cdd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE.ebd6d32cdd"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_TX_FEE.9b8567b583": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_TX_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_TX_FEE.9b8567b583"}, "model.fsc_evm.test_silver__verified_abis_full": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "VERIFIED_ABIS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": ""}, "DATA": {"type": "VARIANT", "index": 2, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "ABI_SOURCE": {"type": "TEXT", "index": 4, "name": "ABI_SOURCE", "comment": ""}, "DISCORD_USERNAME": {"type": "TEXT", "index": 5, "name": "DISCORD_USERNAME", "comment": ""}, "ABI_HASH": {"type": "TEXT", "index": 6, "name": "ABI_HASH", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__verified_abis_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_HASH.fdd1a78f2f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_HASH.fdd1a78f2f"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_GAS_LIMIT.f2dbecd61f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_GAS_LIMIT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_GAS_LIMIT.f2dbecd61f"}, "test.fsc_evm.not_null_admin__fact_variables_PROJECT.b2ca5d3a9e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ADMIN", "name": "FACT_VARIABLES_PROJECT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PROJECT": {"type": "TEXT", "index": 1, "name": "PROJECT", "comment": null}, "KEY": {"type": "TEXT", "index": 2, "name": "KEY", "comment": null}, "VALUE": {"type": "TEXT", "index": 3, "name": "VALUE", "comment": null}, "PARENT_KEY": {"type": "TEXT", "index": 4, "name": "PARENT_KEY", "comment": null}, "FACT_VARIABLES_ID": {"type": "TEXT", "index": 5, "name": "FACT_VARIABLES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_admin__fact_variables_PROJECT.b2ca5d3a9e"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.fceecfdb11": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_4_SALES_TOTAL_PRICE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.fceecfdb11"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TX_HASH.66e383a70b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TX_HASH.66e383a70b"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_TOTAL_PRICE_RAW.46ad0b4d7a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_TOTAL_PRICE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_TOTAL_PRICE_RAW.46ad0b4d7a"}, "model.polygon_models.silver__seaport_1_1_sales": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "SEAPORT_1_1_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": ""}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": ""}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": ""}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": ""}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": ""}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": ""}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": ""}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": ""}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": ""}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": ""}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": ""}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": ""}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": ""}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": ""}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": ""}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": ""}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": ""}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": ""}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": ""}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": ""}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": ""}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": ""}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": ""}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": ""}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": ""}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": ""}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": ""}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": ""}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:34UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2940210688, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5423584, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__seaport_1_1_sales"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_BLOCK_TIMESTAMP.4ee6d5cde6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_BLOCK_TIMESTAMP.4ee6d5cde6"}, "seed.fsc_evm.admin__repos": {"metadata": {"type": "BASE TABLE", "schema": "ADMIN", "name": "REPOS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"REPO_KEY": {"type": "TEXT", "index": 1, "name": "REPO_KEY", "comment": null}, "GITHUB_REPO": {"type": "TEXT", "index": 2, "name": "GITHUB_REPO", "comment": null}, "CHAIN_NAME": {"type": "TEXT", "index": 3, "name": "CHAIN_NAME", "comment": null}, "IS_ACTIVE": {"type": "BOOLEAN", "index": 4, "name": "IS_ACTIVE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2560, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 18, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.admin__repos"}, "model.fsc_evm.test_silver__abis_recent": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "ABIS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": ""}, "DATA": {"type": "VARIANT", "index": 2, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "ABI_SOURCE": {"type": "TEXT", "index": 4, "name": "ABI_SOURCE", "comment": ""}, "DISCORD_USERNAME": {"type": "TEXT", "index": 5, "name": "DISCORD_USERNAME", "comment": ""}, "ABI_HASH": {"type": "TEXT", "index": 6, "name": "ABI_HASH", "comment": ""}, "BYTECODE": {"type": "TEXT", "index": 7, "name": "BYTECODE", "comment": ""}, "ABIS_ID": {"type": "TEXT", "index": 8, "name": "ABIS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 11, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__abis_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TOKEN_IN__0_xX_0_9a_fA_F_.790e194383": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_TOKEN_IN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TOKEN_IN__0_xX_0_9a_fA_F_.790e194383"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.41d5da7600": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_1_SALES_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.41d5da7600"}, "test.fsc_evm.not_null_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID.6dbbf2334b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "CONFIRM_BLOCKS_FULL_CONFIRM_BLOCKS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 5, "name": "TX_HASH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CONFIRM_BLOCKS_ID": {"type": "TEXT", "index": 7, "name": "CONFIRM_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID.6dbbf2334b"}, "model.polygon_models.silver_olas__registry_reads": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_OLAS", "name": "REGISTRY_READS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"READ_OUTPUT": {"type": "VARIANT", "index": 1, "name": "READ_OUTPUT", "comment": ""}, "READ_ID": {"type": "TEXT", "index": 2, "name": "READ_ID", "comment": ""}, "READ_RESULT": {"type": "TEXT", "index": 3, "name": "READ_RESULT", "comment": ""}, "READ_ID_OBJECT": {"type": "ARRAY", "index": 4, "name": "READ_ID_OBJECT", "comment": ""}, "FUNCTION_SIG": {"type": "TEXT", "index": 5, "name": "FUNCTION_SIG", "comment": ""}, "FUNCTION_NAME": {"type": "TEXT", "index": 6, "name": "FUNCTION_NAME", "comment": ""}, "FUNCTION_INPUT": {"type": "NUMBER", "index": 7, "name": "FUNCTION_INPUT", "comment": ""}, "DATA": {"type": "TEXT", "index": 8, "name": "DATA", "comment": ""}, "TOKEN_URI_LINK": {"type": "TEXT", "index": 9, "name": "TOKEN_URI_LINK", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 11, "name": "BLOCK_NUMBER", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "REGISTRY_READS_ID": {"type": "TEXT", "index": 13, "name": "REGISTRY_READS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 45056, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver_olas__registry_reads"}, "test.polygon_models.not_null_silver_olas__service_event_logs_BLOCK_NUMBER.e49da10e6f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "SERVICE_EVENT_LOGS_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "MULTISIG_ADDRESS": {"type": "TEXT", "index": 9, "name": "MULTISIG_ADDRESS", "comment": null}, "SERVICE_ID": {"type": "NUMBER", "index": 10, "name": "SERVICE_ID", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 11, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 12, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 13, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 14, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": null}, "SEGMENTED_DATA": {"type": "ARRAY", "index": 16, "name": "SEGMENTED_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}, "SERVICE_EVENT_LOGS_ID": {"type": "TEXT", "index": 19, "name": "SERVICE_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 22, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__service_event_logs_BLOCK_NUMBER.e49da10e6f"}, "test.polygon_models.not_null_silver__complete_nft_sales_BLOCK_TIMESTAMP.79a5861cbe": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_BLOCK_TIMESTAMP.79a5861cbe"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP__hour__3.21a3a75c8f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP__hour__3.21a3a75c8f"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_6_sales_PLATFORM_NAME__opensea.7575a475ff": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_SET_SILVER", "name": "SEAPORT_1_6_SALES_PLATFORM_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE_FIELD": {"type": "TEXT", "index": 1, "name": "VALUE_FIELD", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_6_sales_PLATFORM_NAME__opensea.7575a475ff"}, "model.fsc_evm.silver_dex__maverick_v2_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "MAVERICK_V2_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "POOL_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 11, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 12, "name": "TX_TO", "comment": null}, "TOKEN_A_IN": {"type": "BOOLEAN", "index": 13, "name": "TOKEN_A_IN", "comment": null}, "EXACT_OUTPUT": {"type": "BOOLEAN", "index": 14, "name": "EXACT_OUTPUT", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 16, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "ACTIVETICK": {"type": "NUMBER", "index": 17, "name": "ACTIVETICK", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 18, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 19, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__maverick_v2_swaps"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.c7f3997422": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.c7f3997422"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.53adf4570d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.53adf4570d"}, "model.fsc_evm.core__dim_contracts": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "DIM_CONTRACTS", "database": "POLYGON", "comment": "## What\n\nThis table provides comprehensive metadata for all smart contracts deployed on EVM blockchains. It includes contract names, symbols, decimals, and deployment details read directly from the blockchain.\n\n## Key Use Cases\n\n- Identifying contracts by name, symbol, or address\n- Understanding token properties (decimals, symbols)\n- Tracking contract deployment patterns and trends\n- Finding contracts deployed by specific factories or deployers\n- Filtering protocol-specific data across other tables\n\n## Important Relationships\n\n- **Join with fact_transactions**: Use `address = to_address` for contract interactions\n- **Join with fact_event_logs**: Use `address = contract_address` for contract events\n- **Join with ez_token_transfers**: Use `address = contract_address` for token movements\n\n## Commonly-used Fields\n\n- `address`: The deployed contract's blockchain address (lowercase)\n- `name`: Human-readable contract name from the name() function\n- `symbol`: Token/contract symbol from the symbol() function\n- `decimals`: Number of decimal places for token amounts\n- `creator_address`: Address that deployed this contract\n- `created_block_timestamp`: When the contract was created\n\n## Sample queries\n\n**Find All Uniswap V3 Pool Contracts**\n\n```sql\nSELECT \n address,\n name,\n created_block_number,\n created_block_timestamp,\n creator_address\nFROM .core.dim_contracts\nWHERE creator_address = LOWER('0x1F98431c8aD98523631AE4a59f267346ea31F984') -- Uniswap V3 Factory\nORDER BY created_block_number DESC\nLIMIT 100;\n```\n\n**Analyze Contract Deployment Trends**\n\n```sql\nSELECT \n DATE_TRUNC('week', created_block_timestamp) AS week,\n COUNT(*) AS contracts_deployed,\n COUNT(DISTINCT creator_address) AS unique_deployers\nFROM .core.dim_contracts\nWHERE created_block_timestamp >= CURRENT_DATE - 90\nGROUP BY 1, 2\nORDER BY 1 DESC, 3 DESC;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "Unique identifier - the deployed contract's blockchain address.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": "Token/contract symbol from the symbol() function.\n\nExample: 'USDC'"}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": "Human-readable contract name from the name() function.\n\nExample: 'USD Coin'"}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": "Number of decimal places for token amounts, read directly from the contract code.\n\nExample: 6"}, "CREATED_BLOCK_NUMBER": {"type": "NUMBER", "index": 5, "name": "CREATED_BLOCK_NUMBER", "comment": "Block number when contract was created.\n\nExample: 17500000"}, "CREATED_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_BLOCK_TIMESTAMP", "comment": "Timestamp when contract was created.\n\nExample: 2023-06-15 14:30:00.000"}, "CREATED_TX_HASH": {"type": "TEXT", "index": 7, "name": "CREATED_TX_HASH", "comment": "Transaction hash of the contract deployment.\n\nExample: '0x4f01db1f857e711af502ad6fa8b5b3ccd9e36b5f8c8a7b2c1d3e4f5a6b7c8d9e'"}, "CREATOR_ADDRESS": {"type": "TEXT", "index": 8, "name": "CREATOR_ADDRESS", "comment": "Address that deployed this contract (transaction from_address).\n\nExample: '0x95ba4cf87d6723ad9c0db21737d862be80e93911'"}, "DIM_CONTRACTS_ID": {"type": "TEXT", "index": 9, "name": "DIM_CONTRACTS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:22UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 33580393472, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 394715575, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.core__dim_contracts"}, "test.fsc_evm.not_null_silver__labels_LABEL_TYPE.3b980ae2db": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "LABELS_LABEL_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"SYSTEM_CREATED_AT": {"type": "TIMESTAMP_LTZ", "index": 1, "name": "SYSTEM_CREATED_AT", "comment": null}, "INSERT_DATE": {"type": "TIMESTAMP_LTZ", "index": 2, "name": "INSERT_DATE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": null}, "CREATOR": {"type": "TEXT", "index": 5, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 6, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 7, "name": "LABEL_SUBTYPE", "comment": null}, "ADDRESS_NAME": {"type": "TEXT", "index": 8, "name": "ADDRESS_NAME", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 9, "name": "PROJECT_NAME", "comment": null}, "_IS_DELETED": {"type": "BOOLEAN", "index": 10, "name": "_IS_DELETED", "comment": null}, "LABELS_ID": {"type": "TEXT", "index": 11, "name": "LABELS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 14, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__labels_LABEL_TYPE.3b980ae2db"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.4ade570dee": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TOFUNFT_SALES_SELLER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.4ade570dee"}, "model.fsc_evm.silver_dex__swap_evt_v2_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "SWAP_EVT_V2_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "AMOUNT0IN": {"type": "NUMBER", "index": 12, "name": "AMOUNT0IN", "comment": null}, "AMOUNT1IN": {"type": "NUMBER", "index": 13, "name": "AMOUNT1IN", "comment": null}, "AMOUNT0OUT": {"type": "NUMBER", "index": 14, "name": "AMOUNT0OUT", "comment": null}, "AMOUNT1OUT": {"type": "NUMBER", "index": 15, "name": "AMOUNT1OUT", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 16, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 17, "name": "TOKEN1", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 18, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 19, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 20, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 21, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 22, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 23, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 24, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 25, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:37UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 46095063552, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 321507647, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__swap_evt_v2_swaps"}, "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_FROM_ADDRESS.a779765ca9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_FROM_ADDRESS.a779765ca9"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_TOTAL_PRICE_RAW.0ccd4356fe": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_TOTAL_PRICE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_TOTAL_PRICE_RAW.0ccd4356fe"}, "test.fsc_evm.not_null_test_silver__receipts_recent__INSERTED_TIMESTAMP.3caff14157": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "RECEIPTS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": null}, "RECEIPTS_JSON": {"type": "VARIANT", "index": 4, "name": "RECEIPTS_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "RECEIPTS_ID": {"type": "TEXT", "index": 6, "name": "RECEIPTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__receipts_recent__INSERTED_TIMESTAMP.3caff14157"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_5_sales_PLATFORM_NAME__opensea.16c4e7cfc1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_SET_SILVER", "name": "SEAPORT_1_5_SALES_PLATFORM_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE_FIELD": {"type": "TEXT", "index": 1, "name": "VALUE_FIELD", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_5_sales_PLATFORM_NAME__opensea.16c4e7cfc1"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_CONTRACT_ADDRESS.2a2bdaa803": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_CONTRACT_ADDRESS.2a2bdaa803"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP__hour__2.e7899727e4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP__hour__2.e7899727e4"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4d5ee11ce4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "BLOCKS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4d5ee11ce4"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_DEBT_TOKEN_SYMBOL.31aa114cf8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_DEBT_TOKEN_SYMBOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_DEBT_TOKEN_SYMBOL.31aa114cf8"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_CONTRACT_ADDRESS.c1a839cddb": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "POLYMARKET_FILLED_ORDERS_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "QUESTION": {"type": "TEXT", "index": 10, "name": "QUESTION", "comment": null}, "MARKET_SLUG": {"type": "TEXT", "index": 11, "name": "MARKET_SLUG", "comment": null}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "END_DATE_ISO", "comment": null}, "OUTCOME": {"type": "TEXT", "index": 13, "name": "OUTCOME", "comment": null}, "ORDER_HASH": {"type": "TEXT", "index": 14, "name": "ORDER_HASH", "comment": null}, "MAKER": {"type": "TEXT", "index": 15, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 16, "name": "TAKER", "comment": null}, "CONDITION_ID": {"type": "TEXT", "index": 17, "name": "CONDITION_ID", "comment": null}, "QUESTION_ID": {"type": "TEXT", "index": 18, "name": "QUESTION_ID", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 19, "name": "ASSET_ID", "comment": null}, "MAKER_ASSET_ID": {"type": "TEXT", "index": 20, "name": "MAKER_ASSET_ID", "comment": null}, "TAKER_ASSET_ID": {"type": "TEXT", "index": 21, "name": "TAKER_ASSET_ID", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "AMOUNT_USD", "comment": null}, "SHARES": {"type": "FLOAT", "index": 23, "name": "SHARES", "comment": null}, "PRICE_PER_SHARE": {"type": "FLOAT", "index": 24, "name": "PRICE_PER_SHARE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "POLYMARKET_FILLED_ORDERS_ID": {"type": "TEXT", "index": 27, "name": "POLYMARKET_FILLED_ORDERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_CONTRACT_ADDRESS.c1a839cddb"}, "model.fsc_evm.silver_bridge__allbridge_tokens_sent": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "ALLBRIDGE_TOKENS_SENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 7, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 10, "name": "AMOUNT", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 12, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 13, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 14, "name": "DESTINATION_CHAIN", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "NUMBER", "index": 15, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_TOKEN": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_TOKEN", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 18, "name": "TX_SUCCEEDED", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 22, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 23, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:28UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 32790016, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 201654, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__allbridge_tokens_sent"}, "test.fsc_evm.not_null_silver__complete_token_asset_metadata_TOKEN_ADDRESS.06a52e0e67": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_TOKEN_ASSET_METADATA_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TOKEN_ADDRESS": {"type": "TEXT", "index": 1, "name": "TOKEN_ADDRESS", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 6, "name": "BLOCKCHAIN", "comment": null}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN_NAME", "comment": null}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN_ID", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "IS_VERIFIED", "comment": null}, "IS_VERIFIED_MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "IS_VERIFIED_MODIFIED_TIMESTAMP", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 12, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 13, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_TOKEN_ASSET_METADATA_ID": {"type": "TEXT", "index": 17, "name": "COMPLETE_TOKEN_ASSET_METADATA_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 18, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_token_asset_metadata_TOKEN_ADDRESS.06a52e0e67"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID.815336f0e0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_EZ_NFT_TRANSFERS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 1, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID.815336f0e0"}, "test.fsc_evm.not_null_test_silver__transactions_recent_TX_POSITION.bf77824ca2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRANSACTIONS_RECENT_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}, "TRANSACTION_JSON": {"type": "VARIANT", "index": 4, "name": "TRANSACTION_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRANSACTIONS_ID": {"type": "TEXT", "index": 6, "name": "TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__transactions_recent_TX_POSITION.bf77824ca2"}, "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_ADDRESS.795fa17957": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_PLATFORM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_ADDRESS.795fa17957"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TOPICS.9f5c99369f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_TOPICS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TOPICS.9f5c99369f"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.a91c15b84d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MOOAR_SALES_TOTAL_FEES_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.a91c15b84d"}, "test.fsc_evm.not_null_observability__blocks_TEST_TIMESTAMP.6047fc0ddc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_OBSERVABILITY", "name": "BLOCKS_TEST_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TEST_NAME": {"type": "TEXT", "index": 1, "name": "TEST_NAME", "comment": null}, "MIN_BLOCK": {"type": "NUMBER", "index": 2, "name": "MIN_BLOCK", "comment": null}, "MAX_BLOCK": {"type": "NUMBER", "index": 3, "name": "MAX_BLOCK", "comment": null}, "MIN_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "MIN_BLOCK_TIMESTAMP", "comment": null}, "MAX_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "MAX_BLOCK_TIMESTAMP", "comment": null}, "BLOCKS_TESTED": {"type": "NUMBER", "index": 6, "name": "BLOCKS_TESTED", "comment": null}, "BLOCKS_IMPACTED_COUNT": {"type": "NUMBER", "index": 7, "name": "BLOCKS_IMPACTED_COUNT", "comment": null}, "MISSING_LIST": {"type": "ARRAY", "index": 8, "name": "MISSING_LIST", "comment": null}, "TEST_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "TEST_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_observability__blocks_TEST_TIMESTAMP.6047fc0ddc"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.5e6bffa046": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "COMPLETE_NFT_SALES_PLATFORM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.5e6bffa046"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_unique_test_gold__fact_blocks_full_FACT_BLOCKS_ID.484aaf9b82": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_UNIQUE_TEST_GOLD", "name": "FACT_BLOCKS_FULL_FACT_BLOCKS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"FACT_BLOCKS_ID": {"type": "TEXT", "index": 1, "name": "FACT_BLOCKS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:20UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_unique_test_gold__fact_blocks_full_FACT_BLOCKS_ID.484aaf9b82"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.77a1924e3a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_1_SALES_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.77a1924e3a"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.e0b5729239": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_1_SALES_BUYER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.e0b5729239"}, "model.fsc_evm.silver_dex__complete_dex_liquidity_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "PLATFORM": {"type": "TEXT", "index": 4, "name": "PLATFORM", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": ""}, "VERSION": {"type": "TEXT", "index": 6, "name": "VERSION", "comment": ""}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": ""}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": ""}, "POOL_ID": {"type": "TEXT", "index": 10, "name": "POOL_ID", "comment": ""}, "POOL_NAME": {"type": "TEXT", "index": 11, "name": "POOL_NAME", "comment": ""}, "TOKENS": {"type": "OBJECT", "index": 12, "name": "TOKENS", "comment": ""}, "SYMBOLS": {"type": "OBJECT", "index": 13, "name": "SYMBOLS", "comment": ""}, "DECIMALS": {"type": "OBJECT", "index": 14, "name": "DECIMALS", "comment": ""}, "FEE": {"type": "NUMBER", "index": 15, "name": "FEE", "comment": ""}, "TICK_SPACING": {"type": "NUMBER", "index": 16, "name": "TICK_SPACING", "comment": ""}, "TOKEN0": {"type": "TEXT", "index": 17, "name": "TOKEN0", "comment": ""}, "TOKEN1": {"type": "TEXT", "index": 18, "name": "TOKEN1", "comment": ""}, "TOKEN2": {"type": "TEXT", "index": 19, "name": "TOKEN2", "comment": ""}, "TOKEN3": {"type": "TEXT", "index": 20, "name": "TOKEN3", "comment": ""}, "TOKEN4": {"type": "TEXT", "index": 21, "name": "TOKEN4", "comment": ""}, "TOKEN5": {"type": "TEXT", "index": 22, "name": "TOKEN5", "comment": ""}, "TOKEN6": {"type": "TEXT", "index": 23, "name": "TOKEN6", "comment": ""}, "TOKEN7": {"type": "TEXT", "index": 24, "name": "TOKEN7", "comment": ""}, "_ID": {"type": "TEXT", "index": 25, "name": "_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "COMPLETE_DEX_LIQUIDITY_POOLS_ID": {"type": "TEXT", "index": 27, "name": "COMPLETE_DEX_LIQUIDITY_POOLS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 41242624, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE, platform)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 220494, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TX_HASH.befc121de7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 15, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 19, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 20, "name": "TOKEN_SYMBOL", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 21, "name": "TOKEN_DECIMALS", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 23, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 24, "name": "AMOUNT_USD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IS_VERIFIED", "comment": null}, "_ID": {"type": "TEXT", "index": 26, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_BRIDGE_ACTIVITY_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_BRIDGE_ACTIVITY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TX_HASH.befc121de7"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP__hour__2.67b262c997": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP__hour__2.67b262c997"}, "model.fsc_evm.silver_bridge__stargate_v2_busdriven": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "STARGATE_V2_BUSDRIVEN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "GUID": {"type": "TEXT", "index": 4, "name": "GUID", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 6, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "STARGATE_ADAPTER_ADDRESS": {"type": "TEXT", "index": 8, "name": "STARGATE_ADAPTER_ADDRESS", "comment": null}, "DST_ID": {"type": "NUMBER", "index": 9, "name": "DST_ID", "comment": null}, "START_TICKET_ID": {"type": "NUMBER", "index": 10, "name": "START_TICKET_ID", "comment": null}, "NUM_PASSENGERS": {"type": "NUMBER", "index": 11, "name": "NUM_PASSENGERS", "comment": null}, "TICKET_ID": {"type": "NUMBER", "index": 12, "name": "TICKET_ID", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 13, "name": "ASSET_ID", "comment": null}, "ASSET_NAME": {"type": "TEXT", "index": 14, "name": "ASSET_NAME", "comment": null}, "ASSET_ADDRESS": {"type": "TEXT", "index": 15, "name": "ASSET_ADDRESS", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 16, "name": "FROM_ADDRESS", "comment": null}, "DST_RECEIVER_ADDRESS": {"type": "TEXT", "index": 17, "name": "DST_RECEIVER_ADDRESS", "comment": null}, "AMOUNT_SENT": {"type": "NUMBER", "index": 18, "name": "AMOUNT_SENT", "comment": null}, "FARE": {"type": "NUMBER", "index": 19, "name": "FARE", "comment": null}, "PAYLOAD": {"type": "TEXT", "index": 20, "name": "PAYLOAD", "comment": null}, "TX_TYPE": {"type": "TEXT", "index": 21, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "TEXT", "index": 22, "name": "NONCE", "comment": null}, "SRC_CHAIN_ID": {"type": "TEXT", "index": 23, "name": "SRC_CHAIN_ID", "comment": null}, "SRC_CHAIN": {"type": "TEXT", "index": 24, "name": "SRC_CHAIN", "comment": null}, "SENDER_CONTRACT_ADDRESS": {"type": "TEXT", "index": 25, "name": "SENDER_CONTRACT_ADDRESS", "comment": null}, "DST_CHAIN_ID": {"type": "TEXT", "index": 26, "name": "DST_CHAIN_ID", "comment": null}, "DST_CHAIN": {"type": "TEXT", "index": 27, "name": "DST_CHAIN", "comment": null}, "RECEIVER_CONTRACT_ADDRESS": {"type": "TEXT", "index": 28, "name": "RECEIVER_CONTRACT_ADDRESS", "comment": null}, "MESSAGE_TYPE": {"type": "TEXT", "index": 29, "name": "MESSAGE_TYPE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 33, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 34, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 35, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 36, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 37, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 38, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 41519104, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 89520, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__stargate_v2_busdriven"}, "test.fsc_evm.not_null_silver__complete_provider_prices_MODIFIED_TIMESTAMP.b205ba003b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_PROVIDER_PRICES_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": null}, "RECORDED_HOUR": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "RECORDED_HOUR", "comment": null}, "OPEN": {"type": "FLOAT", "index": 3, "name": "OPEN", "comment": null}, "HIGH": {"type": "FLOAT", "index": 4, "name": "HIGH", "comment": null}, "LOW": {"type": "FLOAT", "index": 5, "name": "LOW", "comment": null}, "CLOSE": {"type": "FLOAT", "index": 6, "name": "CLOSE", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_PROVIDER_PRICES_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_PROVIDER_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_provider_prices_MODIFIED_TIMESTAMP.b205ba003b"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_S.cff5ed8cca": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_S", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_S.cff5ed8cca"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COMPLETE_LENDING_LIQUIDATIONS_ID.69cd6455c6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_COMPLETE_LENDING_LIQUIDATIONS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COMPLETE_LENDING_LIQUIDATIONS_ID.69cd6455c6"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_PRECISE_RAW.d1e83172a7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_VALUE_PRECISE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_PRECISE_RAW.d1e83172a7"}, "model.fsc_evm.bronze__balances_native": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "BALANCES_NATIVE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 7, "name": "BLOCK_NUMBER", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__balances_native"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP__hour__2.94ca90acca": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP__hour__2.94ca90acca"}, "model.fsc_evm.silver_lending__fraxlend_repayments": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "FRAXLEND_REPAYMENTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PAYER": {"type": "TEXT", "index": 9, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 10, "name": "BORROWER", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 11, "name": "AMOUNT_UNADJ", "comment": null}, "SHARES_REPAID_UNADJ": {"type": "NUMBER", "index": 12, "name": "SHARES_REPAID_UNADJ", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 13, "name": "PROTOCOL_MARKET", "comment": null}, "PROTOCOL_MARKET_SYMBOL": {"type": "TEXT", "index": 14, "name": "PROTOCOL_MARKET_SYMBOL", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 15, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 16, "name": "TOKEN_SYMBOL", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 17, "name": "COLLATERAL_TOKEN", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 23, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__fraxlend_repayments"}, "test.polygon_models.not_null_silver__complete_nft_sales_INPUT_DATA.37d4f77f83": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_INPUT_DATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_INPUT_DATA.37d4f77f83"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_CUMULATIVE_GAS_USED.53f3097347": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_CUMULATIVE_GAS_USED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_CUMULATIVE_GAS_USED.53f3097347"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_withdraws_AMOUNT_USD__decimal__float.c62808382c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_AMOUNT_USD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_withdraws_AMOUNT_USD__decimal__float.c62808382c"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_HEX.7a2a3e4634": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_VALUE_HEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_HEX.7a2a3e4634"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS_UNADJ.bdfa9321f4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_AMOUNTS_UNADJ", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS_UNADJ.bdfa9321f4"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__seaport_1_6_sales__INSERTED_TIMESTAMP__day__1.fef81231f9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "SEAPORT_1_6_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__seaport_1_6_sales__INSERTED_TIMESTAMP__day__1.fef81231f9"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP__hour__2.742de25dd6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP__hour__2.742de25dd6"}, "model.fsc_evm.silver_dex__pancakeswap_v3_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "PANCAKESWAP_V3_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "FEE": {"type": "NUMBER", "index": 10, "name": "FEE", "comment": null}, "FEE_PERCENT": {"type": "FLOAT", "index": 11, "name": "FEE_PERCENT", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 12, "name": "TICK_SPACING", "comment": null}, "TICK_LOWER": {"type": "FLOAT", "index": 13, "name": "TICK_LOWER", "comment": null}, "TICK_UPPER": {"type": "FLOAT", "index": 14, "name": "TICK_UPPER", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 15, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 16, "name": "TOKEN1", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 17, "name": "LIQUIDITY_PROVIDER", "comment": null}, "OWNER_ADDRESS": {"type": "TEXT", "index": 18, "name": "OWNER_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 19, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 20, "name": "RECEIVER", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 21, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 23, "name": "AMOUNT1_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 26, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 27, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 28, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-21 18:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__pancakeswap_v3_pool_actions"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_BLOCK_NUMBER.175fc10a23": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_BLOCK_NUMBER.175fc10a23"}, "model.fsc_evm.price__dim_asset_metadata": {"metadata": {"type": "BASE TABLE", "schema": "PRICE", "name": "DIM_ASSET_METADATA", "database": "POLYGON", "comment": "## What\n\nThis table provides comprehensive metadata for all assets (tokens and native assets) tracked in the price schema across EVM blockchains. It includes provider, asset identifiers, names, symbols, contract addresses, blockchain, and verification status.\n\n## Key Use Cases\n\n- Join price data to asset metadata for enriched analysis\n- Cross-chain asset analysis and mapping\n- Asset discovery and verification status checking\n- Provider-specific data source analysis\n\n## Important Relationships\n\n- **Join with ez_prices_hourly**: For price time series data\n- **Join with core.dim_contracts**: For contract metadata\n\n## Commonly-used Fields\n\n- `provider`: Data source (coingecko, coinmarketcap, etc.)\n- `asset_id`: Provider-specific unique identifier\n- `blockchain`: Network identifier\n- `token_address`: Contract address (NULL for native assets)\n- `symbol`: Token ticker symbol\n- `name`: Full asset name\n\n## Sample Queries\n\n**Basic Asset Lookup**\n```sql\nSELECT *\nFROM .price.dim_asset_metadata\nWHERE blockchain = 'ethereum'\nORDER BY symbol;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TOKEN_ADDRESS": {"type": "TEXT", "index": 1, "name": "TOKEN_ADDRESS", "comment": "Contract address of the token on the blockchain. NULL for native assets (ETH, AVAX, etc.).\n\nExample: '0xa0b86a33e6776a1e7f9f0b8b8b8b8b8b8b8b8b8b'"}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": "Unique identifier for the asset from the price provider. Provider-specific ID format.\n\nExample: 'ethereum'"}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": "Token ticker symbol as commonly recognized. Usually 3-5 uppercase characters.\n\nExample: 'WETH'"}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": "Full name of the asset or token. More descriptive than symbol.\n\nExample: 'Wrapped Ether'"}, "BLOCKCHAIN": {"type": "TEXT", "index": 5, "name": "BLOCKCHAIN", "comment": "The blockchain network where the asset exists. Lowercase by convention.\n\nExample: 'ethereum'"}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 6, "name": "BLOCKCHAIN_ID", "comment": "The numeric or string identifier for the blockchain on which the asset exists. Used for cross-chain mapping.\n\nExample: '1'"}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": "Data source that provided the price information. Values include 'coingecko', 'coinmarketcap', 'dex_aggregated'.\n\nExample: 'coingecko'"}, "DIM_ASSET_METADATA_ID": {"type": "TEXT", "index": 8, "name": "DIM_ASSET_METADATA_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:16UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 131584, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1918, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.price__dim_asset_metadata"}, "model.fsc_evm.test_gold__fact_transactions_full": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL", "database": "POLYGON", "comment": "This is a view used to test all of the gold fact transactions model.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": ""}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": ""}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": ""}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": ""}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": ""}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": ""}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": ""}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": ""}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": ""}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": ""}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": ""}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": ""}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": ""}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": ""}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": ""}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": ""}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": ""}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": ""}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": ""}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": ""}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": ""}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": ""}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": ""}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_BLOCK_TIMESTAMP.15d8c8cba4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_BLOCK_TIMESTAMP.15d8c8cba4"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_SUCCEEDED.3fd972f5b7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_TRACE_SUCCEEDED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_SUCCEEDED.3fd972f5b7"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_GAS_LIMIT.f49dbdd7e1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_GAS_LIMIT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_GAS_LIMIT.f49dbdd7e1"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PREMIUM_AMOUNT.e9f3cbad34": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_PREMIUM_AMOUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PREMIUM_AMOUNT.e9f3cbad34"}, "model.fsc_evm.silver_dex__superchain_slipstream_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "SUPERCHAIN_SLIPSTREAM_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "TOKEN0_ADDRESS": {"type": "TEXT", "index": 6, "name": "TOKEN0_ADDRESS", "comment": null}, "TOKEN1_ADDRESS": {"type": "TEXT", "index": 7, "name": "TOKEN1_ADDRESS", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 8, "name": "TICK_SPACING", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "INIT_TICK": {"type": "FLOAT", "index": 10, "name": "INIT_TICK", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 11, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 12, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 13, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 14, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 15, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-08-08 04:31UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__superchain_slipstream_pools"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_HASH.2562021784": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_HASH.2562021784"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TARGET.f29f9844aa": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_TARGET", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TARGET.f29f9844aa"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PROTOCOL_MARKET.fba78b0f77": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_PROTOCOL_MARKET", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PROTOCOL_MARKET.fba78b0f77"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_NFT_LOG_ID.c4b2be44be": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_NFT_LOG_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_NFT_LOG_ID.c4b2be44be"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_POSITION.d76ba851b9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_POSITION.d76ba851b9"}, "test.fsc_evm.not_null_silver__complete_native_prices__INSERTED_TIMESTAMP.030d747f3c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NATIVE_PRICES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "PRICE": {"type": "FLOAT", "index": 6, "name": "PRICE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN", "comment": null}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 8, "name": "IS_IMPUTED", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 10, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 11, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_NATIVE_PRICES_ID": {"type": "TEXT", "index": 15, "name": "COMPLETE_NATIVE_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_native_prices__INSERTED_TIMESTAMP.030d747f3c"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__proxies_full__ID.bab8372ca0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "PROXIES_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_ID": {"type": "TEXT", "index": 1, "name": "_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 10:32UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__proxies_full__ID.bab8372ca0"}, "model.fsc_evm.core__ez_token_transfers": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "EZ_TOKEN_TRANSFERS", "database": "POLYGON", "comment": "## What\n\nThis convenience table provides a comprehensive view of all ERC-20 token transfers with enriched metadata including decimal adjustments, USD values, and token information. It simplifies token flow analysis by joining transfer events with contract details and price data.\n\n## Key Use Cases\n\n- Tracking token movements and holder activity\n- Analyzing stablecoin flows and volumes\n- Monitoring DEX token inflows and outflows\n- Detecting new token launches and adoption\n- Calculating wallet token balances from transfer history\n\n## Important Relationships\n\n- **Join with fact_event_logs**: Use `tx_hash` and `event_index` for raw event details\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Join with dim_contracts**: Use `contract_address` for token metadata\n- **Complement to ez_native_transfers**: Complete picture of value flows\n\n## Commonly-used Fields\n\n- `contract_address`: The token contract address (NOT the recipient)\n- `from_address`: Token sender address\n- `to_address`: Token recipient address\n- `amount`: Decimal-adjusted transfer amount\n- `amount_usd`: USD value at time of transfer\n- `symbol`: Token symbol (e.g., USDC, DAI)\n- `raw_amount`: Original amount without decimal adjustment\n\n## Sample queries\n\n**Top Token Transfers by USD Value**\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n symbol,\n from_address,\n to_address,\n amount,\n amount_usd,\n token_price,\n contract_address\nFROM .core.ez_token_transfers\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND amount_usd > 100000 -- Over [$]100k\n AND has_decimal = TRUE\n AND has_price = TRUE\nORDER BY amount_usd DESC\nLIMIT 100;\n```\n\n**Daily Stablecoin Volume Analysis**\n```sql\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n symbol,\n COUNT(*) AS transfer_count,\n COUNT(DISTINCT from_address) AS unique_senders,\n SUM(amount) AS total_amount,\n SUM(amount_usd) AS total_usd,\n AVG(amount_usd) AS avg_transfer_usd\nFROM .core.ez_token_transfers\nWHERE symbol IN ('USDC', 'USDT', 'DAI', 'BUSD')\n AND block_timestamp >= CURRENT_DATE - 30\n AND has_decimal = TRUE\nGROUP BY 1, 2\nORDER BY 1 DESC, 6 DESC;\n```\n\n**DEX Token Flow Analysis**\n```sql\nWITH dex_addresses AS (\n SELECT address \n FROM .core.dim_labels \n WHERE label_type = 'dex' \n AND label_subtype IN ('pool', 'router')\n)\nSELECT \n DATE_TRUNC('hour', block_timestamp) AS hour,\n symbol,\n CASE \n WHEN from_address IN (SELECT address FROM dex_addresses) THEN 'DEX Outflow'\n WHEN to_address IN (SELECT address FROM dex_addresses) THEN 'DEX Inflow'\n END AS flow_type,\n COUNT(*) AS transfers,\n SUM(amount) AS total_amount,\n SUM(amount_usd) AS total_usd\nFROM .core.ez_token_transfers\nWHERE block_timestamp >= CURRENT_DATE - 1\n AND (from_address IN (SELECT address FROM dex_addresses)\n OR to_address IN (SELECT address FROM dex_addresses))\n AND symbol IS NOT NULL\nGROUP BY 1, 2, 3\nORDER BY 1 DESC, 6 DESC;\n```\n\n**Token Holder Activity**\n```sql\n-- Most active token senders\nSELECT \n from_address,\n COUNT(DISTINCT contract_address) AS tokens_sent,\n COUNT(DISTINCT DATE(block_timestamp)) AS active_days,\n COUNT(*) AS total_transfers,\n SUM(amount_usd) AS total_usd_sent\nFROM .core.ez_token_transfers\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND has_price = TRUE\n AND amount_usd > 10 -- Filter dust\nGROUP BY 1\nHAVING COUNT(*) > 10\nORDER BY total_usd_sent DESC\nLIMIT 100;\n```\n\n**New Token Detection**\n```sql\nWITH first_transfers AS (\n SELECT \n contract_address,\n symbol,\n MIN(block_timestamp) AS first_transfer,\n COUNT(*) AS transfer_count,\n COUNT(DISTINCT from_address) AS unique_senders,\n COUNT(DISTINCT to_address) AS unique_receivers\n FROM .core.ez_token_transfers\n WHERE block_timestamp >= CURRENT_DATE - 7\n GROUP BY 1, 2\n HAVING MIN(block_timestamp) >= CURRENT_DATE - 1\n)\nSELECT \n ft.*,\n dc.name AS token_name,\n dc.decimals\nFROM first_transfers ft\nLEFT JOIN .core.dim_contracts dc ON ft.contract_address = dc.address\nORDER BY transfer_count DESC;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering"}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": "The from address for the token transfer. This may or may not be the same as the origin_from_address.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": "The to address for the token transfer. This may or may not be the same as the origin_to_address.\n\nExample: '0xabcdefabcdefabcdefabcdefabcdefabcdefabcd'"}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": "The contract address for the token transfer.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": "The token standard for the transfer, in this case always erc20.\n\nExample: 'erc20'"}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": "Boolean flag indicating if the token is verified by the Flipside team.\n\nExample: true"}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": "Human-readable contract name from the name() function.\n\nExample: 'USD Coin'"}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": "Token/contract symbol from the symbol() function.\n\nExample: 'USDC'"}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": "Number of decimal places for token amounts, read directly from the contract code.\n\nExample: 6"}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": "String representation of raw amount for precision preservation.\n\nExample: '1000500000'"}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": "Original token amount without decimal adjustment.\n\nExample: 1000500000"}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": "String representation of decimal-adjusted amount preserving full precision.\n\nExample: '1000.500000'"}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": "Decimal-adjusted token amount for human-readable values.\n\nExample: 1000.50"}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": "USD value of the token transfer at transaction time.\n\nExample: 1000.50"}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:25UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 860819956224, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 7313807118, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.core__ez_token_transfers"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.63454383b5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "RECEIPTS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.63454383b5"}, "model.fsc_evm.bronze__blocks": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "BLOCKS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 7, "name": "BLOCK_NUMBER", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__blocks"}, "model.fsc_evm.silver_dex__curve_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "CURVE_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "DEPLOYER_ADDRESS": {"type": "TEXT", "index": 4, "name": "DEPLOYER_ADDRESS", "comment": ""}, "POOL_ADDRESS": {"type": "TEXT", "index": 5, "name": "POOL_ADDRESS", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 6, "name": "TOKEN_ADDRESS", "comment": ""}, "TOKEN_ID": {"type": "NUMBER", "index": 7, "name": "TOKEN_ID", "comment": ""}, "TOKEN_TYPE": {"type": "TEXT", "index": 8, "name": "TOKEN_TYPE", "comment": ""}, "POOL_SYMBOL": {"type": "TEXT", "index": 9, "name": "POOL_SYMBOL", "comment": ""}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": ""}, "POOL_DECIMALS": {"type": "NUMBER", "index": 11, "name": "POOL_DECIMALS", "comment": ""}, "POOL_ID": {"type": "TEXT", "index": 12, "name": "POOL_ID", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 13, "name": "PROTOCOL", "comment": ""}, "VERSION": {"type": "TEXT", "index": 14, "name": "VERSION", "comment": ""}, "PLATFORM": {"type": "TEXT", "index": 15, "name": "PLATFORM", "comment": ""}, "TYPE": {"type": "TEXT", "index": 16, "name": "TYPE", "comment": ""}, "_CALL_ID": {"type": "TEXT", "index": 17, "name": "_CALL_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "TOKEN_NUM": {"type": "NUMBER", "index": 19, "name": "TOKEN_NUM", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:30UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 6787584, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2067, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__curve_pools"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver__balances_native_daily__INSERTED_TIMESTAMP__day__2.0117687deb": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "BALANCES_NATIVE_DAILY", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver__balances_native_daily__INSERTED_TIMESTAMP__day__2.0117687deb"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_DATA.4c46b98652": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_DATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_DATA.4c46b98652"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_INSERTED_TIMESTAMP__hour__2.eae85b300c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_TRACES_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_INSERTED_TIMESTAMP__hour__2.eae85b300c"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82ad920c6e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_4_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82ad920c6e"}, "model.fsc_evm.bronze__complete_native_asset_metadata": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "COMPLETE_NATIVE_ASSET_METADATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": ""}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 5, "name": "BLOCKCHAIN", "comment": ""}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 6, "name": "IS_DEPRECATED", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_NATIVE_ASSET_METADATA_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_NATIVE_ASSET_METADATA_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__complete_native_asset_metadata"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PROTOCOL.a8b7ac43d6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_PROTOCOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PROTOCOL.a8b7ac43d6"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PROTOCOL.3c56422288": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_PROTOCOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PROTOCOL.3c56422288"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_TX_HASH__0_xX_0_9a_fA_F_.6ec2b48a1e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_4_SALES_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_TX_HASH__0_xX_0_9a_fA_F_.6ec2b48a1e"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS.c774024072": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_AMOUNTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS.c774024072"}, "model.fsc_evm.silver_dex__bitflux_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "BITFLUX_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 5, "name": "POOL_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "RECIPIENT": {"type": "TEXT", "index": 9, "name": "RECIPIENT", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 12, "name": "EVENT_NAME", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 13, "name": "EVENT_INDEX", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 14, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 15, "name": "TOKEN1", "comment": null}, "TOKEN2": {"type": "TEXT", "index": 16, "name": "TOKEN2", "comment": null}, "TOKEN3": {"type": "TEXT", "index": 17, "name": "TOKEN3", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 18, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 19, "name": "TOKEN_OUT", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 20, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 21, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 22, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 23, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 24, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 25, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__bitflux_swaps"}, "test.fsc_evm.accepted_values_recent_row_observability__receipts_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.3c8361f4b6": {"metadata": {"type": "BASE TABLE", "schema": "ACCEPTED_VALUES_RECENT_ROW_OBSERVABILITY", "name": "RECEIPTS_BLOCKS_IMPACTED_COUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCKS_IMPACTED_COUNT": {"type": "NUMBER", "index": 1, "name": "BLOCKS_IMPACTED_COUNT", "comment": null}, "MISSING_LIST": {"type": "ARRAY", "index": 2, "name": "MISSING_LIST", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.accepted_values_recent_row_observability__receipts_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.3c8361f4b6"}, "test.polygon_models.not_null_silver__tofunft_sales_TOTAL_FEES_RAW.ea6fd23ad5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_TOTAL_FEES_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_TOTAL_FEES_RAW.ea6fd23ad5"}, "model.fsc_evm.core__dim_labels": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "DIM_LABELS", "database": "POLYGON", "comment": "## What\n\nThe labels table is a critical dimension for blockchain analysis, providing one-to-one address identifiers that transform opaque addresses into recognizable entities. Labels are categorized into types (cex, dex, defi, etc.) and subtypes (hot_wallet, treasury, etc.) to enable sophisticated filtering and analysis.\n\n## Key Use Cases\n\n- Track centralized exchange flows (deposits, withdrawals, hot/cold wallet movements)\n- Analyze DeFi protocol usage and cross-protocol interactions\n- Monitor whale and institutional wallet activities\n- Identify token contracts and their movements\n- Assess labeling coverage for active addresses\n- Create entity-based transaction flow analysis\n\n## Important Relationships\n\n- **Join with fact_transactions**: Identify exchange flows, protocol usage\n- **Join with ez_token_transfers**: Track token movements by entity type\n- **Join with dim_contracts**: Combine with contract metadata\n\n## Commonly-used Fields\n\n- `address`: Primary key for joining with transaction tables\n- `label_type`: High-level category (cex, dex, defi, token, etc.)\n- `label_subtype`: Specific categorization within type (hot_wallet, pool, etc.)\n- `project_name`: Protocol or entity name\n- `address_name`: Most specific, granular label\n- `blockchain`: Network identifier for multi-chain queries\n\n## Sample Queries\n\n**Exchange Flow Analysis**\n```sql\n-- Track CEX inflows and outflows\nWITH cex_addresses AS (\n SELECT DISTINCT address\n FROM .core.dim_labels\n WHERE label_type = 'cex'\n AND label_subtype IN ('hot_wallet', 'deposit')\n)\nSELECT \n DATE_TRUNC('day', t.block_timestamp) AS day,\n CASE \n WHEN t.to_address IN (SELECT address FROM cex_addresses) THEN 'CEX Inflow'\n WHEN t.from_address IN (SELECT address FROM cex_addresses) THEN 'CEX Outflow'\n END AS flow_direction,\n COUNT(*) AS transaction_count,\n SUM(t.value) AS total_native_value,\n COUNT(DISTINCT t.from_address) AS unique_users\nFROM .fact.fact_transactions t\nWHERE (t.to_address IN (SELECT address FROM cex_addresses)\n OR t.from_address IN (SELECT address FROM cex_addresses))\n AND t.block_timestamp >= CURRENT_DATE - 30\n AND t.value > 0\nGROUP BY 1, 2\nORDER BY 1 DESC, 2;\n```\n\n**Protocol Usage Ranking**\n```sql\n-- Top DeFi protocols by unique users\nSELECT \n l.project_name,\n l.label_type,\n COUNT(DISTINCT t.from_address) AS unique_users,\n COUNT(*) AS total_interactions,\n SUM(t.tx_fee) AS total_fees_paid\nFROM .fact.fact_transactions t\nJOIN .core.dim_labels l ON t.to_address = l.address\nWHERE l.label_type IN ('defi', 'dex')\n AND t.block_timestamp >= CURRENT_DATE - 7\n AND t.tx_status = 'SUCCESS'\nGROUP BY 1, 2\nORDER BY 3 DESC\nLIMIT 20;\n```\n\n**Whale Wallet Tracking**\n```sql\n-- Monitor large holder activities\nWITH whale_activity AS (\n SELECT \n l.address,\n l.address_name,\n l.label_type,\n COUNT(*) AS tx_count,\n SUM(CASE WHEN t.from_address = l.address THEN 1 ELSE 0 END) AS outgoing_tx,\n SUM(CASE WHEN t.to_address = l.address THEN 1 ELSE 0 END) AS incoming_tx,\n SUM(CASE WHEN t.from_address = l.address THEN t.value ELSE 0 END) AS value_sent,\n SUM(CASE WHEN t.to_address = l.address THEN t.value ELSE 0 END) AS value_received\n FROM .core.dim_labels l\n JOIN .fact.fact_transactions t \n ON l.address IN (t.from_address, t.to_address)\n WHERE l.label_type IN ('whale', 'institution', 'fund')\n AND t.block_timestamp >= CURRENT_DATE - 1\n GROUP BY 1, 2, 3\n)\nSELECT \n *,\n value_received - value_sent AS net_flow\nFROM whale_activity\nWHERE tx_count > 10\nORDER BY ABS(net_flow) DESC;\n```\n\n**Cross-Protocol Interactions**\n```sql\n-- Find addresses interacting with multiple protocols\nWITH user_protocols AS (\n SELECT \n t.from_address AS user_address,\n l.project_name,\n l.label_type,\n COUNT(*) AS interactions\n FROM .fact.fact_transactions t\n JOIN .core.dim_labels l ON t.to_address = l.address\n WHERE l.label_type IN ('defi', 'dex', 'nft')\n AND t.block_timestamp >= CURRENT_DATE - 30\n GROUP BY 1, 2, 3\n)\nSELECT \n user_address,\n COUNT(DISTINCT project_name) AS protocols_used,\n SUM(interactions) AS total_interactions,\n ARRAY_AGG(DISTINCT project_name) AS protocol_list\nFROM user_protocols\nGROUP BY 1\nHAVING COUNT(DISTINCT project_name) >= 5\nORDER BY 2 DESC\nLIMIT 100;\n```\n \n**Label Coverage Analysis**\n```sql\n-- Assess labeling coverage for active addresses\nWITH active_addresses AS (\n SELECT DISTINCT address, address_count\n FROM (\n SELECT to_address AS address, COUNT(*) AS address_count\n FROM .fact.fact_transactions\n WHERE block_timestamp >= CURRENT_DATE - 7\n GROUP BY 1\n HAVING COUNT(*) > 100\n )\n)\nSELECT \n CASE WHEN l.address IS NOT NULL THEN 'Labeled' ELSE 'Unlabeled' END AS status,\n COUNT(*) AS address_count,\n SUM(a.address_count) AS total_transactions\nFROM active_addresses a\nLEFT JOIN .core.dim_labels l ON a.address = l.address\nGROUP BY 1;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The blockchain network for this label. Required for multi-chain label queries.\n\nExample: 'ethereum'"}, "CREATOR": {"type": "TEXT", "index": 2, "name": "CREATOR", "comment": "The source or creator of this label entry. Labels from verified sources may be more reliable.\n\nExample: 'flipside'"}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": "The blockchain address (0x format) that this label describes. Lowercase hex string used as primary key for joining.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "ADDRESS_NAME": {"type": "TEXT", "index": 4, "name": "ADDRESS_NAME", "comment": "The most specific, granular label for this address. Provides maximum detail for precise identification.\n\nExample: 'Binance 14'"}, "LABEL_TYPE": {"type": "TEXT", "index": 5, "name": "LABEL_TYPE", "comment": "High-level category describing the address's primary function. Core types include cex, dex, defi, token, nft, bridge, games, whale, institution, and l2.\n\nExample: 'cex'"}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 6, "name": "LABEL_SUBTYPE", "comment": "Specific categorization within the label type. Used for detailed filtering within broader categories.\n\nExample: 'hot_wallet'"}, "LABEL": {"type": "TEXT", "index": 7, "name": "LABEL", "comment": "High-level label identifying the general entity or wallet type. Often combines project_name with label_subtype.\n\nExample: 'Binance Hot Wallet'"}, "DIM_LABELS_ID": {"type": "TEXT", "index": 8, "name": "DIM_LABELS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 6465819648, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(modified_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 161712637, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.core__dim_labels"}, "model.fsc_evm.silver_dex__pancakeswap_v3_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "PANCAKESWAP_V3_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 7, "name": "POOL_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "SENDER_ADDRESS": {"type": "TEXT", "index": 9, "name": "SENDER_ADDRESS", "comment": null}, "RECIPIENT_ADDRESS": {"type": "TEXT", "index": 10, "name": "RECIPIENT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 11, "name": "EVENT_INDEX", "comment": null}, "AMOUNT0_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "NUMBER", "index": 13, "name": "AMOUNT1_UNADJ", "comment": null}, "SQRTPRICEX96": {"type": "NUMBER", "index": 14, "name": "SQRTPRICEX96", "comment": null}, "LIQUIDITY": {"type": "NUMBER", "index": 15, "name": "LIQUIDITY", "comment": null}, "TICK": {"type": "NUMBER", "index": 16, "name": "TICK", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 17, "name": "TICK_SPACING", "comment": null}, "FEE": {"type": "NUMBER", "index": 18, "name": "FEE", "comment": null}, "PROTOCOLFEESTOKEN0": {"type": "NUMBER", "index": 19, "name": "PROTOCOLFEESTOKEN0", "comment": null}, "PROTOCOLFEESTOKEN1": {"type": "NUMBER", "index": 20, "name": "PROTOCOLFEESTOKEN1", "comment": null}, "TOKEN0_ADDRESS": {"type": "TEXT", "index": 21, "name": "TOKEN0_ADDRESS", "comment": null}, "TOKEN1_ADDRESS": {"type": "TEXT", "index": 22, "name": "TOKEN1_ADDRESS", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 23, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 24, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 25, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 26, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 27, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 28, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 29, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 30, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 31, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 32, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__pancakeswap_v3_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.f3b5a3d941": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TOFUNFT_SALES_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.f3b5a3d941"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_TX_HASH__0_xX_0_9a_fA_F_.60bef77cff": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:41UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_TX_HASH__0_xX_0_9a_fA_F_.60bef77cff"}, "model.fsc_evm.silver_bridge__everclear_reads": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "EVERCLEAR_READS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MIN_EPOCH": {"type": "NUMBER", "index": 1, "name": "MIN_EPOCH", "comment": ""}, "OUTPUT_ASSET": {"type": "TEXT", "index": 2, "name": "OUTPUT_ASSET", "comment": ""}, "STATUS": {"type": "TEXT", "index": 3, "name": "STATUS", "comment": ""}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 4, "name": "DESTINATION_CHAIN_ID", "comment": ""}, "INTENT_CREATED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "INTENT_CREATED_TIMESTAMP", "comment": ""}, "CURSOR_ID": {"type": "NUMBER", "index": 6, "name": "CURSOR_ID", "comment": ""}, "INTENT_ID": {"type": "TEXT", "index": 7, "name": "INTENT_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:35UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 93184, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1130, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__everclear_reads"}, "test.fsc_evm.not_null_admin__ez_variables_DEFAULT_VALUE.262d6c41bd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ADMIN", "name": "EZ_VARIABLES_DEFAULT_VALUE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PROJECT": {"type": "TEXT", "index": 1, "name": "PROJECT", "comment": null}, "PACKAGE": {"type": "TEXT", "index": 2, "name": "PACKAGE", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "KEY": {"type": "TEXT", "index": 4, "name": "KEY", "comment": null}, "VALUE": {"type": "TEXT", "index": 5, "name": "VALUE", "comment": null}, "PARENT_KEY": {"type": "TEXT", "index": 6, "name": "PARENT_KEY", "comment": null}, "DEFAULT_VALUE": {"type": "TEXT", "index": 7, "name": "DEFAULT_VALUE", "comment": null}, "DEFAULT_TYPE": {"type": "TEXT", "index": 8, "name": "DEFAULT_TYPE", "comment": null}, "EZ_VARIABLES_ID": {"type": "TEXT", "index": 9, "name": "EZ_VARIABLES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_admin__ez_variables_DEFAULT_VALUE.262d6c41bd"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP.3873d5cdc6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 6, "name": "TRACE_ADDRESS", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "TO_ADDRESS", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": null}, "AMOUNT_PRECISE_RAW": {"type": "TEXT", "index": 11, "name": "AMOUNT_PRECISE_RAW", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 12, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "EZ_NATIVE_TRANSFERS_ID": {"type": "TEXT", "index": 17, "name": "EZ_NATIVE_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP.3873d5cdc6"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.aa4bb5848c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_6_SALES_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.aa4bb5848c"}, "model.fsc_evm.bronze_api__contract_abis": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE_API", "name": "CONTRACT_ABIS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": ""}, "ABI_DATA": {"type": "VARIANT", "index": 2, "name": "ABI_DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-05-15 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 150665728, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1424553, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze_api__contract_abis"}, "model.fsc_evm.silver__contracts": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "CONTRACTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_NAME": {"type": "TEXT", "index": 2, "name": "TOKEN_NAME", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 3, "name": "TOKEN_DECIMALS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 4, "name": "TOKEN_SYMBOL", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CONTRACTS_ID": {"type": "TEXT", "index": 6, "name": "CONTRACTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:21UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 59998208, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1024769, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__contracts"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP__hour__3.186f75bd44": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP__hour__3.186f75bd44"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__labels_BLOCKCHAIN__CREATOR__ADDRESS.8355a7dbdd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "LABELS_BLOCKCHAIN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 2, "name": "CREATOR", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__labels_BLOCKCHAIN__CREATOR__ADDRESS.8355a7dbdd"}, "test.fsc_evm.unique_silver__complete_token_asset_metadata_COMPLETE_TOKEN_ASSET_METADATA_ID.99f9227588": {"metadata": {"type": "BASE TABLE", "schema": "UNIQUE_SILVER", "name": "COMPLETE_TOKEN_ASSET_METADATA_COMPLETE_TOKEN_ASSET_METADATA_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"UNIQUE_FIELD": {"type": "TEXT", "index": 1, "name": "UNIQUE_FIELD", "comment": null}, "N_RECORDS": {"type": "NUMBER", "index": 2, "name": "N_RECORDS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.unique_silver__complete_token_asset_metadata_COMPLETE_TOKEN_ASSET_METADATA_ID.99f9227588"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID.fa62d2d951": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_BALANCES_NATIVE_DAILY_FULL_EZ_BALANCES_NATIVE_DAILY_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 5, "name": "BALANCE_HEX", "comment": null}, "BALANCE_RAW": {"type": "NUMBER", "index": 6, "name": "BALANCE_RAW", "comment": null}, "BALANCE_PRECISE": {"type": "TEXT", "index": 7, "name": "BALANCE_PRECISE", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 8, "name": "BALANCE", "comment": null}, "BALANCE_USD": {"type": "FLOAT", "index": 9, "name": "BALANCE_USD", "comment": null}, "EZ_BALANCES_NATIVE_DAILY_ID": {"type": "TEXT", "index": 10, "name": "EZ_BALANCES_NATIVE_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:06UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID.fa62d2d951"}, "model.fsc_evm.test_gold__ez_token_transfers_full": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL", "database": "POLYGON", "comment": "This is a view used to test all of the `ez_token_transfers` data.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": ""}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": ""}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": ""}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": ""}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": ""}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": ""}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": ""}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": ""}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": ""}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": ""}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.not_null_test_silver__traces_recent__INSERTED_TIMESTAMP.29dedb5f0f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRACES_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 2, "name": "TX_POSITION", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 3, "name": "TRACE_ADDRESS", "comment": null}, "PARENT_TRACE_ADDRESS": {"type": "TEXT", "index": 4, "name": "PARENT_TRACE_ADDRESS", "comment": null}, "TRACE_ADDRESS_ARRAY": {"type": "ARRAY", "index": 5, "name": "TRACE_ADDRESS_ARRAY", "comment": null}, "TRACE_JSON": {"type": "OBJECT", "index": 6, "name": "TRACE_JSON", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 7, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRACES_ID": {"type": "TEXT", "index": 9, "name": "TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__traces_recent__INSERTED_TIMESTAMP.29dedb5f0f"}, "model.fsc_evm.silver_bridge__ccip_on_ramp_address": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "CCIP_ON_RAMP_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 5, "name": "BRIDGE_ADDRESS", "comment": null}, "DEST_CHAIN_SELECTOR": {"type": "TEXT", "index": 6, "name": "DEST_CHAIN_SELECTOR", "comment": null}, "CHAIN_NAME": {"type": "TEXT", "index": 7, "name": "CHAIN_NAME", "comment": null}, "ON_RAMP_ADDRESS": {"type": "TEXT", "index": 8, "name": "ON_RAMP_ADDRESS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 9, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 10, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 11, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 12, "name": "PLATFORM", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-08-12 13:28UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 7168, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 28, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__ccip_on_ramp_address"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b66a5f5fde": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "CONFIRM_BLOCKS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b66a5f5fde"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.3e8e3c0838": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.3e8e3c0838"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_INDEX.00c0917eec": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_TRACE_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_INDEX.00c0917eec"}, "model.fsc_evm.silver_bridge__hyperliquid": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "HYPERLIQUID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 9, "name": "BRIDGE_ADDRESS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 10, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 11, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 12, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 15, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 17, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 18, "name": "AMOUNT_UNADJ", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 19, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 20, "name": "DESTINATION_CHAIN", "comment": null}, "_ID": {"type": "TEXT", "index": 21, "name": "_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-08-05 16:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__hyperliquid"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__complete_event_abis_recent_PARENT_CONTRACT_ADDRESS__EVENT_SIGNATURE__START_BLOCK.f72f3b769f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "COMPLETE_EVENT_ABIS_RECENT_PARENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PARENT_CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "PARENT_CONTRACT_ADDRESS", "comment": null}, "EVENT_SIGNATURE": {"type": "TEXT", "index": 2, "name": "EVENT_SIGNATURE", "comment": null}, "START_BLOCK": {"type": "NUMBER", "index": 3, "name": "START_BLOCK", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__complete_event_abis_recent_PARENT_CONTRACT_ADDRESS__EVENT_SIGNATURE__START_BLOCK.f72f3b769f"}, "test.polygon_models.not_null_silver__seaport_1_5_sales__INSERTED_TIMESTAMP.ca71885856": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales__INSERTED_TIMESTAMP.ca71885856"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent_MODIFIED_TIMESTAMP__hour__2.30705ba06a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "RECEIPTS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent_MODIFIED_TIMESTAMP__hour__2.30705ba06a"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_FROM_ADDRESS.f2cd4b35a9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_FROM_ADDRESS.f2cd4b35a9"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP.de99ef8ef5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP.de99ef8ef5"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_AMOUNT.dd3698ee3b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_AMOUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_AMOUNT.dd3698ee3b"}, "model.fsc_evm.silver_dex__velodrome_v2_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "VELODROME_V2_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "AMOUNT0IN": {"type": "NUMBER", "index": 12, "name": "AMOUNT0IN", "comment": null}, "AMOUNT1IN": {"type": "NUMBER", "index": 13, "name": "AMOUNT1IN", "comment": null}, "AMOUNT0OUT": {"type": "NUMBER", "index": 14, "name": "AMOUNT0OUT", "comment": null}, "AMOUNT1OUT": {"type": "NUMBER", "index": 15, "name": "AMOUNT1OUT", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 16, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 17, "name": "TOKEN1", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 18, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 19, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 20, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 21, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 22, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 23, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 24, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 25, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__velodrome_v2_swaps"}, "test.fsc_evm.curated_recency_defi_silver_bridge__complete_bridge_activity_bridge.a2b41e22b2": {"metadata": {"type": "BASE TABLE", "schema": "CURATED_RECENCY_DEFI_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_BRIDGE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PLATFORM": {"type": "TEXT", "index": 1, "name": "PLATFORM", "comment": null}, "LATEST_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "LATEST_TIMESTAMP", "comment": null}, "SYS_TS": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "SYS_TS", "comment": null}, "THRESHOLD_TS": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "THRESHOLD_TS", "comment": null}, "CURRENT_PERIOD_EVT": {"type": "NUMBER", "index": 5, "name": "CURRENT_PERIOD_EVT", "comment": null}, "ROLLING_AVG_EVT": {"type": "NUMBER", "index": 6, "name": "ROLLING_AVG_EVT", "comment": null}, "PERCENT_DELTA": {"type": "NUMBER", "index": 7, "name": "PERCENT_DELTA", "comment": null}, "TYPE": {"type": "TEXT", "index": 8, "name": "TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2560, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.curated_recency_defi_silver_bridge__complete_bridge_activity_bridge.a2b41e22b2"}, "test.polygon_models.not_null_silver__tofunft_sales_TOKENID.dbc3abbfb8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_TOKENID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_TOKENID.dbc3abbfb8"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_BUYER_ADDRESS.cffb31ba59": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_BUYER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_BUYER_ADDRESS.cffb31ba59"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_POSITION.2791b096bd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_POSITION.2791b096bd"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID.1c01304059": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_EZ_NFT_TRANSFERS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID.1c01304059"}, "test.fsc_evm.not_null_test_silver__traces_recent_INSERTED_TIMESTAMP.4f0efcf34b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRACES_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 2, "name": "TX_POSITION", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 3, "name": "TRACE_ADDRESS", "comment": null}, "PARENT_TRACE_ADDRESS": {"type": "TEXT", "index": 4, "name": "PARENT_TRACE_ADDRESS", "comment": null}, "TRACE_ADDRESS_ARRAY": {"type": "ARRAY", "index": 5, "name": "TRACE_ADDRESS_ARRAY", "comment": null}, "TRACE_JSON": {"type": "OBJECT", "index": 6, "name": "TRACE_JSON", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 7, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRACES_ID": {"type": "TEXT", "index": 9, "name": "TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__traces_recent_INSERTED_TIMESTAMP.4f0efcf34b"}, "model.fsc_evm.silver_dex__pancakeswap_v2_ss_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "PANCAKESWAP_V2_SS_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "SOLD_ID": {"type": "NUMBER", "index": 12, "name": "SOLD_ID", "comment": null}, "TOKENS_SOLD": {"type": "NUMBER", "index": 13, "name": "TOKENS_SOLD", "comment": null}, "BOUGHT_ID": {"type": "NUMBER", "index": 14, "name": "BOUGHT_ID", "comment": null}, "TOKENS_BOUGHT": {"type": "NUMBER", "index": 15, "name": "TOKENS_BOUGHT", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 16, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 17, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 18, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 19, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__pancakeswap_v2_ss_swaps"}, "test.fsc_evm.not_null_silver__labels_BLOCKCHAIN.4d07b6112c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "LABELS_BLOCKCHAIN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"SYSTEM_CREATED_AT": {"type": "TIMESTAMP_LTZ", "index": 1, "name": "SYSTEM_CREATED_AT", "comment": null}, "INSERT_DATE": {"type": "TIMESTAMP_LTZ", "index": 2, "name": "INSERT_DATE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": null}, "CREATOR": {"type": "TEXT", "index": 5, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 6, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 7, "name": "LABEL_SUBTYPE", "comment": null}, "ADDRESS_NAME": {"type": "TEXT", "index": 8, "name": "ADDRESS_NAME", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 9, "name": "PROJECT_NAME", "comment": null}, "_IS_DELETED": {"type": "BOOLEAN", "index": 10, "name": "_IS_DELETED", "comment": null}, "LABELS_ID": {"type": "TEXT", "index": 11, "name": "LABELS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 14, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__labels_BLOCKCHAIN.4d07b6112c"}, "model.fsc_evm.chain_stats__ez_metrics_daily": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_METRICS_DAILY", "database": "POLYGON", "comment": "## What\n\nDaily aggregated metrics for the indicated EVM blockchain including transaction activity, fees, DEX volumes, bridge flows, CEX flows, and TVL data. All metrics are calculated at the daily level (YYYY-MM-DD format) and include both total activity and quality user activity (Flipside score >= 4).", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "ACTIVE_USERS_COUNT": {"type": "NUMBER", "index": 2, "name": "ACTIVE_USERS_COUNT", "comment": "Number of origin_from_address (Externally Owned Accounts EOAs) that submitted a transaction"}, "ACTIVE_QUALITY_USERS_COUNT": {"type": "NUMBER", "index": 3, "name": "ACTIVE_QUALITY_USERS_COUNT", "comment": "Number of EOAs with a Flipside score of 4 or higher that submitted a transaction"}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 4, "name": "TRANSACTION_COUNT", "comment": "Number of transactions submitted by any origin_from_address (EOA)"}, "QUALITY_TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "QUALITY_TRANSACTION_COUNT", "comment": "Number of transactions submitted by EOAs with a Flipside score of 4 or higher"}, "TOTAL_FEES": {"type": "FLOAT", "index": 6, "name": "TOTAL_FEES", "comment": "Total transaction fees paid, denominated in Ether (ETH)"}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 7, "name": "TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid (converting ETH to USD via ETH price)"}, "QUALITY_TOTAL_FEES": {"type": "FLOAT", "index": 8, "name": "QUALITY_TOTAL_FEES", "comment": "Total transaction fees paid by EOAs with a Flipside score of 4 or higher, denominated in Ether (ETH)"}, "QUALITY_TOTAL_FEES_USD": {"type": "FLOAT", "index": 9, "name": "QUALITY_TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid by EOAs with a Flipside score of 4 or higher (converting ETH to USD via ETH price)"}, "STABLECOIN_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 10, "name": "STABLECOIN_TRANSFER_VOLUME_USD", "comment": "Value of all stablecoin transfers for any reason (USD)"}, "IN_UNIT_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 11, "name": "IN_UNIT_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers of any token for any reason, denominated in ETH to reduce price effects (token price changes can be different than fundamental activity changes)"}, "TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 12, "name": "TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers for any reason (direct, swap, liquidity deposit, staking, etc.), denominated in USD accepting price effects"}, "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 13, "name": "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in ETH"}, "QUALITY_TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in USD"}, "CEX_WITHDRAWAL_VOLUME_USD": {"type": "FLOAT", "index": 15, "name": "CEX_WITHDRAWAL_VOLUME_USD", "comment": "Value of central exchange token withdrawals (USD)"}, "CEX_WITHDRAWAL_TX_COUNT": {"type": "NUMBER", "index": 16, "name": "CEX_WITHDRAWAL_TX_COUNT", "comment": "Number of central exchange token withdrawal transactions"}, "CEX_UNIQUE_WITHDRAWING_ADDRESSES": {"type": "NUMBER", "index": 17, "name": "CEX_UNIQUE_WITHDRAWING_ADDRESSES", "comment": "Number of unique addresses that withdrew from a central exchange"}, "CEX_DEPOSIT_VOLUME_USD": {"type": "FLOAT", "index": 18, "name": "CEX_DEPOSIT_VOLUME_USD", "comment": "Value of central exchange token deposits (USD)"}, "CEX_DEPOSIT_TX_COUNT": {"type": "NUMBER", "index": 19, "name": "CEX_DEPOSIT_TX_COUNT", "comment": "Number of central exchange token deposit transactions"}, "CEX_UNIQUE_DEPOSITING_ADDRESSES": {"type": "NUMBER", "index": 20, "name": "CEX_UNIQUE_DEPOSITING_ADDRESSES", "comment": "Number of unique addresses that deposited to a central exchange"}, "CEX_NET_FLOW_USD": {"type": "FLOAT", "index": 21, "name": "CEX_NET_FLOW_USD", "comment": "Net CEX flow (withdrawal_volume_usd - deposit_volume_usd). Note that if activity and price are correlated, this value can be negative even if more tokens are withdrawn than deposited"}, "CHAIN_GROSS_DEX_VOLUME_USD": {"type": "FLOAT", "index": 22, "name": "CHAIN_GROSS_DEX_VOLUME_USD", "comment": "USD value of token sell volume on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAP_COUNT": {"type": "NUMBER", "index": 23, "name": "CHAIN_SWAP_COUNT", "comment": "Number of swap transactions on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAPPER_COUNT": {"type": "NUMBER", "index": 24, "name": "CHAIN_SWAPPER_COUNT", "comment": "Number of unique EOAs that have submitted a swap transaction on Decentralized Exchanges (DEXs) protocols"}, "TVL_USD": {"type": "FLOAT", "index": 25, "name": "TVL_USD", "comment": "Total Value Locked - USD value of tokens locked in smart contracts. INCLUDES borrowed tokens, liquid staking, and staking"}, "IN_UNIT_TVL": {"type": "FLOAT", "index": 26, "name": "IN_UNIT_TVL", "comment": "Total Value Locked in ETH denominated terms to reduce price effects"}, "BRIDGE_INBOUND_VOLUME_USD": {"type": "FLOAT", "index": 27, "name": "BRIDGE_INBOUND_VOLUME_USD", "comment": "Value of bridge inflows, denominated in USD"}, "BRIDGE_INBOUND_ADDRESSES": {"type": "NUMBER", "index": 28, "name": "BRIDGE_INBOUND_ADDRESSES", "comment": "Number of unique addresses receiving a bridge inflow"}, "BRIDGE_INBOUND_TX_COUNT": {"type": "NUMBER", "index": 29, "name": "BRIDGE_INBOUND_TX_COUNT", "comment": "Number of bridge inflow transactions"}, "BRIDGE_OUTBOUND_VOLUME_USD": {"type": "FLOAT", "index": 30, "name": "BRIDGE_OUTBOUND_VOLUME_USD", "comment": "Value of bridge outflows, denominated in USD"}, "BRIDGE_OUTBOUND_ADDRESSES": {"type": "NUMBER", "index": 31, "name": "BRIDGE_OUTBOUND_ADDRESSES", "comment": "Number of unique addresses sending a bridge outflow"}, "BRIDGE_OUTBOUND_TX_COUNT": {"type": "NUMBER", "index": 32, "name": "BRIDGE_OUTBOUND_TX_COUNT", "comment": "Number of bridge outflow transactions"}, "BRIDGE_GROSS_VOLUME_USD": {"type": "FLOAT", "index": 33, "name": "BRIDGE_GROSS_VOLUME_USD", "comment": "Value of bridge outflows, denominated in USD"}, "BRIDGE_NET_INBOUND_USD": {"type": "FLOAT", "index": 34, "name": "BRIDGE_NET_INBOUND_USD", "comment": "Value of bridge inflows minus outflows, denominated in USD. Note that if activity and price are correlated, this value can be negative even if more tokens are brought onto chain than off"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.chain_stats__ez_metrics_daily"}, "model.fsc_evm.bronze__labels": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "LABELS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"SYSTEM_CREATED_AT": {"type": "TIMESTAMP_LTZ", "index": 1, "name": "SYSTEM_CREATED_AT", "comment": ""}, "INSERT_DATE": {"type": "TIMESTAMP_LTZ", "index": 2, "name": "INSERT_DATE", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": ""}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": ""}, "CREATOR": {"type": "TEXT", "index": 5, "name": "CREATOR", "comment": ""}, "LABEL_TYPE": {"type": "TEXT", "index": 6, "name": "LABEL_TYPE", "comment": ""}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 7, "name": "LABEL_SUBTYPE", "comment": ""}, "ADDRESS_NAME": {"type": "TEXT", "index": 8, "name": "ADDRESS_NAME", "comment": ""}, "PROJECT_NAME": {"type": "TEXT", "index": 9, "name": "PROJECT_NAME", "comment": ""}, "_IS_DELETED": {"type": "BOOLEAN", "index": 10, "name": "_IS_DELETED", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "LABELS_COMBINED_ID": {"type": "TEXT", "index": 12, "name": "LABELS_COMBINED_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__labels"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_recent__INSERTED_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.f0ec5f4645": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "CREATED_CONTRACTS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_recent__INSERTED_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.f0ec5f4645"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_HASH.7af5bb693e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_HASH.7af5bb693e"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.a542b4ea96": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TOFUNFT_SALES_NFT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.a542b4ea96"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_FROM_ADDRESS.ad4c8e2694": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_FROM_ADDRESS.ad4c8e2694"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS_IS_VERIFIED.d38e3bdb59": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_TOKENS_IS_VERIFIED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS_IS_VERIFIED.d38e3bdb59"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TOPIC_0.ddb723fd73": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_TOPIC_0", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TOPIC_0.ddb723fd73"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_native_asset_metadata_SYMBOL.6c5f561373": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "COMPLETE_NATIVE_ASSET_METADATA_SYMBOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"SYMBOL": {"type": "TEXT", "index": 1, "name": "SYMBOL", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_native_asset_metadata_SYMBOL.6c5f561373"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.820c1a0eaa": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "MOOAR_SALES_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.820c1a0eaa"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_FACT_EVENT_LOGS_ID.91901e9d78": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_FACT_EVENT_LOGS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_FACT_EVENT_LOGS_ID.91901e9d78"}, "model.fsc_evm.silver_dex__zyberswap_v2_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "ZYBERSWAP_V2_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "AMOUNT0_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "NUMBER", "index": 13, "name": "AMOUNT1_UNADJ", "comment": null}, "TOKEN0_ADDRESS": {"type": "TEXT", "index": 14, "name": "TOKEN0_ADDRESS", "comment": null}, "TOKEN1_ADDRESS": {"type": "TEXT", "index": 15, "name": "TOKEN1_ADDRESS", "comment": null}, "PRICE": {"type": "NUMBER", "index": 16, "name": "PRICE", "comment": null}, "LIQUIDITY": {"type": "NUMBER", "index": 17, "name": "LIQUIDITY", "comment": null}, "TICK": {"type": "NUMBER", "index": 18, "name": "TICK", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 19, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 20, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 21, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 22, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 26, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 27, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__zyberswap_v2_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.20c0e6f088": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_1_SALES_TOTAL_PRICE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.20c0e6f088"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__created_contracts_full_created_contract_address.e21b0009b3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "CREATED_CONTRACTS_FULL_CREATED_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CREATED_CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CREATED_CONTRACT_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 10:37UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__created_contracts_full_created_contract_address.e21b0009b3"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.7b409eed52": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "POLYMARKET_FILLED_ORDERS_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.7b409eed52"}, "model.fsc_evm.silver_lending__fraxlend_liquidations": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "FRAXLEND_LIQUIDATIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 12, "name": "COLLATERAL_TOKEN", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "NUMBER", "index": 13, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "SHARES_LIQUIDATED_UNADJ": {"type": "NUMBER", "index": 14, "name": "SHARES_LIQUIDATED_UNADJ", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 15, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 16, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 17, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "SHARES_TO_ADJUST_UNADJ": {"type": "NUMBER", "index": 18, "name": "SHARES_TO_ADJUST_UNADJ", "comment": null}, "AMOUNT_TO_ADJUST_UNADJ": {"type": "NUMBER", "index": 19, "name": "AMOUNT_TO_ADJUST_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 20, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 21, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 22, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 23, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 25, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:50UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__fraxlend_liquidations"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__curve_pools_POOL_ADDRESS__0_xX_0_9a_fA_F_.185fa9348a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_DEX", "name": "CURVE_POOLS_POOL_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__curve_pools_POOL_ADDRESS__0_xX_0_9a_fA_F_.185fa9348a"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_TIMESTAMP.3a590c964b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_TIMESTAMP.3a590c964b"}, "model.fsc_evm.test_gold__fact_blocks_recent": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "FACT_BLOCKS_RECENT", "database": "POLYGON", "comment": "This is a view used to test the last three days of fact blocks.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": ""}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": ""}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": ""}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": ""}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": ""}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": ""}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": ""}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": ""}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": ""}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": ""}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": ""}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": ""}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": ""}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": ""}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": ""}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": ""}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": ""}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": ""}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": ""}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": ""}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE_PRECISE_RAW.5cee0b299e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_VALUE_PRECISE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE_PRECISE_RAW.5cee0b299e"}, "test.fsc_evm.not_null_silver__balances_native_daily__INSERTED_TIMESTAMP.ce964e9219": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BALANCES_NATIVE_DAILY", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 4, "name": "BALANCE_HEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BALANCES_NATIVE_DAILY_ID": {"type": "TEXT", "index": 6, "name": "BALANCES_NATIVE_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__balances_native_daily__INSERTED_TIMESTAMP.ce964e9219"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full_MODIFIED_TIMESTAMP__hour__2.d8baad76f3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "TRACES_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 09:01UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full_MODIFIED_TIMESTAMP__hour__2.d8baad76f3"}, "test.fsc_evm.not_null_silver__balances_erc20_daily_ADDRESS.d149b58851": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BALANCES_ERC20_DAILY_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 5, "name": "BALANCE_HEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 7, "name": "BALANCES_ERC20_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__balances_erc20_daily_ADDRESS.d149b58851"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS.fd4087fc87": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_TOKENS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS.fd4087fc87"}, "model.fsc_evm.test_gold__ez_decoded_event_logs_recent": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": ""}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": ""}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": ""}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": ""}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": ""}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": ""}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": ""}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": ""}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": ""}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": ""}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": ""}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.polygon_models.not_null_silver__tofunft_sales_CREATOR_FEE_RAW.2acaf124dc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_CREATOR_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_CREATOR_FEE_RAW.2acaf124dc"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_AMOUNT_UNADJ.5b85a0643a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_AMOUNT_UNADJ", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_AMOUNT_UNADJ.5b85a0643a"}, "test.fsc_evm.not_null_test_silver__created_contracts_full__INSERTED_TIMESTAMP.c6b7aec473": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "CREATED_CONTRACTS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CREATED_CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CREATED_CONTRACT_ADDRESS", "comment": null}, "CREATOR_ADDRESS": {"type": "TEXT", "index": 5, "name": "CREATOR_ADDRESS", "comment": null}, "CREATED_CONTRACT_INPUT": {"type": "TEXT", "index": 6, "name": "CREATED_CONTRACT_INPUT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CREATED_CONTRACTS_ID": {"type": "TEXT", "index": 8, "name": "CREATED_CONTRACTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 11, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__created_contracts_full__INSERTED_TIMESTAMP.c6b7aec473"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE.23211ae498": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_RECENT_BLOCK_DATE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 7, "name": "BALANCE_HEX", "comment": null}, "BALANCE_RAW": {"type": "NUMBER", "index": 8, "name": "BALANCE_RAW", "comment": null}, "BALANCE_PRECISE": {"type": "TEXT", "index": 9, "name": "BALANCE_PRECISE", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 10, "name": "BALANCE", "comment": null}, "BALANCE_USD": {"type": "FLOAT", "index": 11, "name": "BALANCE_USD", "comment": null}, "EZ_BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 12, "name": "EZ_BALANCES_ERC20_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE.23211ae498"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent_MODIFIED_TIMESTAMP__hour__2.f4efbc4d10": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "BLOCKS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent_MODIFIED_TIMESTAMP__hour__2.f4efbc4d10"}, "test.fsc_evm.not_null_silver__complete_provider_prices_PROVIDER.982c1dc287": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_PROVIDER_PRICES_PROVIDER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": null}, "RECORDED_HOUR": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "RECORDED_HOUR", "comment": null}, "OPEN": {"type": "FLOAT", "index": 3, "name": "OPEN", "comment": null}, "HIGH": {"type": "FLOAT", "index": 4, "name": "HIGH", "comment": null}, "LOW": {"type": "FLOAT", "index": 5, "name": "LOW", "comment": null}, "CLOSE": {"type": "FLOAT", "index": 6, "name": "CLOSE", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_PROVIDER_PRICES_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_PROVIDER_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_provider_prices_PROVIDER.982c1dc287"}, "model.fsc_evm.silver_dex__superchain_slipstream_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "SUPERCHAIN_SLIPSTREAM_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "AMOUNT0_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "NUMBER", "index": 13, "name": "AMOUNT1_UNADJ", "comment": null}, "TOKEN0_ADDRESS": {"type": "TEXT", "index": 14, "name": "TOKEN0_ADDRESS", "comment": null}, "TOKEN1_ADDRESS": {"type": "TEXT", "index": 15, "name": "TOKEN1_ADDRESS", "comment": null}, "PRICE": {"type": "NUMBER", "index": 16, "name": "PRICE", "comment": null}, "LIQUIDITY": {"type": "NUMBER", "index": 17, "name": "LIQUIDITY", "comment": null}, "TICK": {"type": "NUMBER", "index": 18, "name": "TICK", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 19, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 20, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 21, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 22, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 26, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 27, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-08-08 04:35UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__superchain_slipstream_swaps"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_ORIGIN_FUNCTION_SIGNATURE.8ad33ea363": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_ORIGIN_FUNCTION_SIGNATURE.8ad33ea363"}, "test.polygon_models.not_null_silver__complete_nft_sales_SELLER_ADDRESS.eda1b7ad24": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_SELLER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_SELLER_ADDRESS.eda1b7ad24"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.28cf427125": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_5_SALES_PLATFORM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.28cf427125"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_EVENT_INDEX.85b975cd1b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_EVENT_INDEX.85b975cd1b"}, "model.fsc_evm.silver_bridge__eywa_requestsent": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "EYWA_REQUESTSENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 10, "name": "EVENT_REMOVED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 11, "name": "TX_SUCCEEDED", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 12, "name": "BRIDGE_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 15, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 16, "name": "AMOUNT", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 18, "name": "TOKEN_ADDRESS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 22, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 23, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:29UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 33361920, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 299248, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__eywa_requestsent"}, "test.fsc_evm.not_null_silver__complete_token_asset_metadata_PROVIDER.0d1d2c6852": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_TOKEN_ASSET_METADATA_PROVIDER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TOKEN_ADDRESS": {"type": "TEXT", "index": 1, "name": "TOKEN_ADDRESS", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 6, "name": "BLOCKCHAIN", "comment": null}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN_NAME", "comment": null}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN_ID", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "IS_VERIFIED", "comment": null}, "IS_VERIFIED_MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "IS_VERIFIED_MODIFIED_TIMESTAMP", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 12, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 13, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_TOKEN_ASSET_METADATA_ID": {"type": "TEXT", "index": 17, "name": "COMPLETE_TOKEN_ASSET_METADATA_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 18, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_token_asset_metadata_PROVIDER.0d1d2c6852"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__decoded_logs_recent_DECODED_LOGS_ID.2bf95e427e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "DECODED_LOGS_RECENT_DECODED_LOGS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"DECODED_LOGS_ID": {"type": "TEXT", "index": 1, "name": "DECODED_LOGS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__decoded_logs_recent_DECODED_LOGS_ID.2bf95e427e"}, "model.fsc_evm.bronze__stablecoin_reads_fr": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "STABLECOIN_READS_FR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__stablecoin_reads_fr"}, "test.fsc_evm.not_null_silver__complete_native_asset_metadata_SYMBOL.ff109ff1ee": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NATIVE_ASSET_METADATA_SYMBOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 5, "name": "BLOCKCHAIN", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 6, "name": "IS_DEPRECATED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_NATIVE_ASSET_METADATA_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_NATIVE_ASSET_METADATA_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_native_asset_metadata_SYMBOL.ff109ff1ee"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_BLOCK_TIMESTAMP.cda64f37d1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_BLOCK_TIMESTAMP.cda64f37d1"}, "test.polygon_models.not_null_silver__tofunft_sales_TX_HASH.d00c52e95b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_TX_HASH.d00c52e95b"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_BLOCK_NUMBER.3cc45619ac": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_BLOCK_NUMBER.3cc45619ac"}, "test.fsc_evm.accepted_values_recent_row_observability__blocks_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.d058a90f3b": {"metadata": {"type": "BASE TABLE", "schema": "ACCEPTED_VALUES_RECENT_ROW_OBSERVABILITY", "name": "BLOCKS_BLOCKS_IMPACTED_COUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCKS_IMPACTED_COUNT": {"type": "NUMBER", "index": 1, "name": "BLOCKS_IMPACTED_COUNT", "comment": null}, "MISSING_LIST": {"type": "ARRAY", "index": 2, "name": "MISSING_LIST", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.accepted_values_recent_row_observability__blocks_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.d058a90f3b"}, "model.fsc_evm.silver_bridge__axelar_contractcallwithtoken": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "AXELAR_CONTRACTCALLWITHTOKEN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 10, "name": "EVENT_REMOVED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 11, "name": "TX_SUCCEEDED", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 12, "name": "BRIDGE_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 15, "name": "DESTINATION_CHAIN", "comment": null}, "DESTINATION_CONTRACT_ADDRESS": {"type": "TEXT", "index": 16, "name": "DESTINATION_CONTRACT_ADDRESS", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 18, "name": "AMOUNT", "comment": null}, "PAYLOAD": {"type": "TEXT", "index": 19, "name": "PAYLOAD", "comment": null}, "PAYLOAD_HASH": {"type": "TEXT", "index": 20, "name": "PAYLOAD_HASH", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 21, "name": "TOKEN_SYMBOL", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 22, "name": "TOKEN_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 26, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 27, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:29UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 100618240, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 302468, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__axelar_contractcallwithtoken"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TX_HASH.336555c4d6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TX_HASH.336555c4d6"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full_MODIFIED_TIMESTAMP__hour__2.89a13f7252": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "RECEIPTS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full_MODIFIED_TIMESTAMP__hour__2.89a13f7252"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.e291a891ae": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "COMPLETE_NFT_SALES_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.e291a891ae"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS.95a4909c44": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS.95a4909c44"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_token_prices_HOUR__TOKEN_ADDRESS__BLOCKCHAIN.dde8fc55cf": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "COMPLETE_TOKEN_PRICES_HOUR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_token_prices_HOUR__TOKEN_ADDRESS__BLOCKCHAIN.dde8fc55cf"}, "test.fsc_evm.not_null_silver__complete_token_prices__INSERTED_TIMESTAMP.90a2d67d90": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_TOKEN_PRICES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 3, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 5, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 6, "name": "DECIMALS", "comment": null}, "PRICE": {"type": "FLOAT", "index": 7, "name": "PRICE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN", "comment": null}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 9, "name": "BLOCKCHAIN_NAME", "comment": null}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 10, "name": "BLOCKCHAIN_ID", "comment": null}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 11, "name": "IS_IMPUTED", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 12, "name": "IS_DEPRECATED", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 13, "name": "IS_VERIFIED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 14, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 15, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_TOKEN_PRICES_ID": {"type": "TEXT", "index": 19, "name": "COMPLETE_TOKEN_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 20, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_token_prices__INSERTED_TIMESTAMP.90a2d67d90"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_BLOCK_HASH__0_xX_0_9a_fA_F_.44301d7b7c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_BLOCK_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_BLOCK_HASH__0_xX_0_9a_fA_F_.44301d7b7c"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_STATE_ROOT.da47dabf27": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_STATE_ROOT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_STATE_ROOT.da47dabf27"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.a33e76bb25": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_1_SALES_PLATFORM_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.a33e76bb25"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_VERSION.5eef91934c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOLS_VERSION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 4, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 6, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 10, "name": "POOL_ID", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 11, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 12, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 13, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 14, "name": "DECIMALS", "comment": null}, "FEE": {"type": "NUMBER", "index": 15, "name": "FEE", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 16, "name": "TICK_SPACING", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 17, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 18, "name": "TOKEN1", "comment": null}, "TOKEN2": {"type": "TEXT", "index": 19, "name": "TOKEN2", "comment": null}, "TOKEN3": {"type": "TEXT", "index": 20, "name": "TOKEN3", "comment": null}, "TOKEN4": {"type": "TEXT", "index": 21, "name": "TOKEN4", "comment": null}, "TOKEN5": {"type": "TEXT", "index": 22, "name": "TOKEN5", "comment": null}, "TOKEN6": {"type": "TEXT", "index": 23, "name": "TOKEN6", "comment": null}, "TOKEN7": {"type": "TEXT", "index": 24, "name": "TOKEN7", "comment": null}, "_ID": {"type": "TEXT", "index": 25, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOLS_ID": {"type": "TEXT", "index": 27, "name": "COMPLETE_DEX_LIQUIDITY_POOLS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_VERSION.5eef91934c"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.65dfa2ec4d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.65dfa2ec4d"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE.87397d3b88": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_FULL_BLOCK_DATE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 7, "name": "BALANCE_HEX", "comment": null}, "BALANCE_RAW": {"type": "NUMBER", "index": 8, "name": "BALANCE_RAW", "comment": null}, "BALANCE_PRECISE": {"type": "TEXT", "index": 9, "name": "BALANCE_PRECISE", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 10, "name": "BALANCE", "comment": null}, "BALANCE_USD": {"type": "FLOAT", "index": 11, "name": "BALANCE_USD", "comment": null}, "EZ_BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 12, "name": "EZ_BALANCES_ERC20_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE.87397d3b88"}, "model.fsc_evm.silver_dex__dackie_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "DACKIE_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "FEE": {"type": "NUMBER", "index": 10, "name": "FEE", "comment": null}, "FEE_PERCENT": {"type": "FLOAT", "index": 11, "name": "FEE_PERCENT", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 12, "name": "TICK_SPACING", "comment": null}, "INIT_TICK": {"type": "FLOAT", "index": 13, "name": "INIT_TICK", "comment": null}, "TICK_LOWER": {"type": "FLOAT", "index": 14, "name": "TICK_LOWER", "comment": null}, "TICK_UPPER": {"type": "FLOAT", "index": 15, "name": "TICK_UPPER", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 16, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 17, "name": "TOKEN1", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 18, "name": "LIQUIDITY_PROVIDER", "comment": null}, "OWNER_ADDRESS": {"type": "TEXT", "index": 19, "name": "OWNER_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 20, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 21, "name": "RECEIVER", "comment": null}, "LIQUIDITY_AMOUNT_UNADJ": {"type": "FLOAT", "index": 22, "name": "LIQUIDITY_AMOUNT_UNADJ", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 23, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 24, "name": "AMOUNT1_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 25, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 26, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 27, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 28, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 29, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-21 18:37UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__dackie_pool_actions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TX_FEE__NUMBER__FLOAT.d59a0ea6ef": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_4_SALES_TX_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TX_FEE__NUMBER__FLOAT.d59a0ea6ef"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__dim_variables_DIM_VARIABLES_ID.9de48d7fec": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_ADMIN", "name": "DIM_VARIABLES_DIM_VARIABLES_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"DIM_VARIABLES_ID": {"type": "TEXT", "index": 1, "name": "DIM_VARIABLES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__dim_variables_DIM_VARIABLES_ID.9de48d7fec"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_repayments_BLOCK_TIMESTAMP__day__3.1330d20e3b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_repayments_BLOCK_TIMESTAMP__day__3.1330d20e3b"}, "model.fsc_evm.observability__transactions": {"metadata": {"type": "BASE TABLE", "schema": "OBSERVABILITY", "name": "TRANSACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TEST_NAME": {"type": "TEXT", "index": 1, "name": "TEST_NAME", "comment": ""}, "MIN_BLOCK": {"type": "NUMBER", "index": 2, "name": "MIN_BLOCK", "comment": ""}, "MAX_BLOCK": {"type": "NUMBER", "index": 3, "name": "MAX_BLOCK", "comment": ""}, "MIN_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "MIN_BLOCK_TIMESTAMP", "comment": ""}, "MAX_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "MAX_BLOCK_TIMESTAMP", "comment": ""}, "BLOCKS_TESTED": {"type": "NUMBER", "index": 6, "name": "BLOCKS_TESTED", "comment": ""}, "BLOCKS_IMPACTED_COUNT": {"type": "NUMBER", "index": 7, "name": "BLOCKS_IMPACTED_COUNT", "comment": ""}, "MISSING_LIST": {"type": "ARRAY", "index": 8, "name": "MISSING_LIST", "comment": ""}, "TEST_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "TEST_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 189952, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5215, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.observability__transactions"}, "model.fsc_evm.silver_lending__morpho_repayments": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "MORPHO_REPAYMENTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 8, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 9, "name": "AMOUNT_UNADJ", "comment": null}, "PAYER": {"type": "TEXT", "index": 10, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 14, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 15, "name": "VERSION", "comment": null}, "_ID": {"type": "TEXT", "index": 16, "name": "_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:33UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 945152, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 6872, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__morpho_repayments"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__verified_abis_full_CONTRACT_ADDRESS.15e49a38cc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "VERIFIED_ABIS_FULL_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 11:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__verified_abis_full_CONTRACT_ADDRESS.15e49a38cc"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_BLOCK_NUMBER__NUMBER__FLOAT.065c833ed1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_TRACES_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_BLOCK_NUMBER__NUMBER__FLOAT.065c833ed1"}, "model.fsc_evm.core__ez_native_transfers": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "EZ_NATIVE_TRANSFERS", "database": "POLYGON", "comment": "## What\n\nThis convenience table tracks all native asset transfers (ETH, AVAX, MATIC, etc.) extracted from transaction traces. It provides a simplified view of value movements with decimal adjustments and USD conversions, making it easy to analyze fund flows without parsing complex trace data.\n\n## Key Use Cases\n\n- Tracking native asset movements between wallets and contracts\n- Analyzing exchange deposits and withdrawals\n- Monitoring whale movements and large transfers\n- Calculating wallet balances from transfer history\n- Identifying internal transfers within smart contract executions\n\n## Important Relationships\n\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Join with fact_traces**: Use `tx_hash` and `trace_index` for trace details\n- **Join with dim_labels**: Use addresses for entity identification\n- **Complement to ez_token_transfers**: This table for native, that for tokens\n\n## Commonly-used Fields\n\n- `from_address`: The sender of the native asset transfer\n- `to_address`: The recipient of the native asset transfer\n- `amount`: Decimal-adjusted transfer amount\n- `amount_usd`: USD value at time of transfer\n- `origin_from_address`: Original transaction sender\n- `origin_to_address`: Original transaction recipient\n- `identifier`: Trace identifier (0 for external transfers)\n\n## Sample queries\n\n**Daily Native Asset Transfer Volume**\n```sql\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n COUNT(*) AS transfer_count,\n COUNT(DISTINCT from_address) AS unique_senders,\n COUNT(DISTINCT to_address) AS unique_receivers,\n SUM(amount) AS total_amount,\n AVG(amount) AS avg_amount,\n SUM(amount_usd) AS total_usd,\n MAX(amount_usd) AS largest_transfer_usd\nFROM .core.ez_native_transfers\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount > 0\nGROUP BY 1\nORDER BY 1 DESC;\n```\n\n**Whale Movements (Large Transfers)**\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n from_address,\n to_address,\n amount,\n amount_usd,\n origin_from_address,\n origin_to_address,\n identifier\nFROM .core.ez_native_transfers\nWHERE amount_usd > 1000000 -- Over [$]1M USD\n AND block_timestamp >= CURRENT_DATE - 7\nORDER BY amount_usd DESC\nLIMIT 100;\n```\n\n**Exchange Deposit/Withdrawal Patterns**\n```sql\nWITH exchange_addresses AS (\n SELECT DISTINCT address \n FROM dim_labels \n WHERE label_type = 'exchange'\n)\nSELECT \n DATE_TRUNC('hour', block_timestamp) AS hour,\n CASE \n WHEN to_address IN (SELECT address FROM exchange_addresses) THEN 'Deposit'\n WHEN from_address IN (SELECT address FROM exchange_addresses) THEN 'Withdrawal'\n END AS transfer_type,\n COUNT(*) AS transfer_count,\n SUM(amount) AS total_amount,\n SUM(amount_usd) AS total_usd\nFROM .core.ez_native_transfers\nWHERE block_timestamp >= CURRENT_DATE - 1\n AND (to_address IN (SELECT address FROM exchange_addresses)\n OR from_address IN (SELECT address FROM exchange_addresses))\nGROUP BY 1, 2\nORDER BY 1 DESC;\n```\n\n**Internal Transfer Analysis**\n```sql\n-- Compare external vs internal transfers\nSELECT \n CASE \n WHEN identifier = '0' THEN 'External Transfer'\n ELSE 'Internal Transfer'\n END AS transfer_type,\n COUNT(*) AS count,\n SUM(amount) AS total_amount,\n AVG(amount) AS avg_amount,\n SUM(amount_usd) AS total_volume_usd\nFROM .core.ez_native_transfers\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1;\n```\n\n**Smart Contract Native Asset Holdings**\n```sql\nWITH contract_balances AS (\n SELECT \n to_address AS address,\n SUM(amount) AS inflows\n FROM .core.ez_native_transfers\n WHERE to_address IN (SELECT address FROM dim_contracts)\n GROUP BY 1\n),\noutflows AS (\n SELECT \n from_address AS address,\n SUM(amount) AS outflows\n FROM .core.ez_native_transfers\n WHERE from_address IN (SELECT address FROM dim_contracts)\n GROUP BY 1\n)\nSELECT \n c.address,\n dc.name AS contract_name,\n COALESCE(c.inflows, 0) - COALESCE(o.outflows, 0) AS net_balance,\n c.inflows,\n o.outflows\nFROM contract_balances c\nLEFT JOIN outflows o ON c.address = o.address\nLEFT JOIN .core.dim_contracts dc ON c.address = dc.address\nWHERE COALESCE(c.inflows, 0) - COALESCE(o.outflows, 0) > 100 -- Over 100 native tokens\nORDER BY net_balance DESC\nLIMIT 50;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering"}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": "Sequential index of trace within the transaction's execution.\n\nExample: 3"}, "TRACE_ADDRESS": {"type": "TEXT", "index": 6, "name": "TRACE_ADDRESS", "comment": "Array describing the trace's position in the execution tree.\n\nExample: [0, 1, 2]"}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": "The type of EVM operation performed.\n\nExample: 'CALL'"}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": "The from address for the native asset transfer. This may or may not be the same as the origin_from_address.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "TO_ADDRESS", "comment": "The to address for the native asset transfer. This may or may not be the same as the origin_to_address.\n\nExample: '0xabcdefabcdefabcdefabcdefabcdefabcdefabcd'"}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": "Native asset amount transferred, adjusted to standard decimal units.\n\nExample: 1.5"}, "AMOUNT_PRECISE_RAW": {"type": "TEXT", "index": 11, "name": "AMOUNT_PRECISE_RAW", "comment": "Native asset amount transferred, no decimal adjustment, returned as a string to preserve precision.\n\nExample: '1500000000000000000'"}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 12, "name": "AMOUNT_PRECISE", "comment": "Native asset amount transferred, decimal adjusted, returned as a string to preserve precision.\n\nExample: '1.500000000000000000'"}, "AMOUNT_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_USD", "comment": "USD value of the native asset transfer at the time of the transaction.\n\nExample: 2500.50"}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "EZ_NATIVE_TRANSFERS_ID": {"type": "TEXT", "index": 17, "name": "EZ_NATIVE_TRANSFERS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 152164926464, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1452419993, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.core__ez_native_transfers"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.6a5fede4fd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_4_SALES_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.6a5fede4fd"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP.51f3049a5d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP.51f3049a5d"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.6246cb2672": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_5_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.6246cb2672"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TOKEN_ADDRESS.261f8cbdbe": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TOKEN_ADDRESS.261f8cbdbe"}, "model.fsc_evm.silver_stablecoins__supply_complete": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_STABLECOINS", "name": "SUPPLY_COMPLETE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_DATE": {"type": "DATE", "index": 1, "name": "BLOCK_DATE", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 2, "name": "CONTRACT_ADDRESS", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": ""}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": ""}, "LABEL": {"type": "TEXT", "index": 5, "name": "LABEL", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 6, "name": "DECIMALS", "comment": ""}, "TOTAL_SUPPLY": {"type": "FLOAT", "index": 7, "name": "TOTAL_SUPPLY", "comment": ""}, "AMOUNT_BLACKLISTED": {"type": "FLOAT", "index": 8, "name": "AMOUNT_BLACKLISTED", "comment": ""}, "AMOUNT_IN_CEX": {"type": "FLOAT", "index": 9, "name": "AMOUNT_IN_CEX", "comment": ""}, "AMOUNT_IN_BRIDGES": {"type": "FLOAT", "index": 10, "name": "AMOUNT_IN_BRIDGES", "comment": ""}, "AMOUNT_IN_DEX_LIQUIDITY_POOLS": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN_DEX_LIQUIDITY_POOLS", "comment": ""}, "AMOUNT_IN_LENDING_POOLS": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN_LENDING_POOLS", "comment": ""}, "AMOUNT_IN_CONTRACTS": {"type": "FLOAT", "index": 13, "name": "AMOUNT_IN_CONTRACTS", "comment": ""}, "AMOUNT_MINTED": {"type": "FLOAT", "index": 14, "name": "AMOUNT_MINTED", "comment": ""}, "AMOUNT_BURNED": {"type": "FLOAT", "index": 15, "name": "AMOUNT_BURNED", "comment": ""}, "AMOUNT_TRANSFERRED": {"type": "FLOAT", "index": 16, "name": "AMOUNT_TRANSFERRED", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "STABLECOINS_SUPPLY_COMPLETE_ID": {"type": "TEXT", "index": 19, "name": "STABLECOINS_SUPPLY_COMPLETE_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:34UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 510464, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_date)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5678, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_SHA3_UNCLES.eec76f65cc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_SHA3_UNCLES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_SHA3_UNCLES.eec76f65cc"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_BLOCK_DATE.43b712db10": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_BALANCES_NATIVE_DAILY_FULL_BLOCK_DATE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 5, "name": "BALANCE_HEX", "comment": null}, "BALANCE_RAW": {"type": "NUMBER", "index": 6, "name": "BALANCE_RAW", "comment": null}, "BALANCE_PRECISE": {"type": "TEXT", "index": 7, "name": "BALANCE_PRECISE", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 8, "name": "BALANCE", "comment": null}, "BALANCE_USD": {"type": "FLOAT", "index": 9, "name": "BALANCE_USD", "comment": null}, "EZ_BALANCES_NATIVE_DAILY_ID": {"type": "TEXT", "index": 10, "name": "EZ_BALANCES_NATIVE_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_BLOCK_DATE.43b712db10"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_FULL_DECODED_LOG.7265873d57": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_FULL_DECODED_LOG", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:25UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_FULL_DECODED_LOG.7265873d57"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_NAME.2cdf43e2a0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_PLATFORM_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_NAME.2cdf43e2a0"}, "test.fsc_evm.events_match_txs_test_gold__fact_event_logs_full_ref_test_gold__fact_transactions_full_.5a7952a816": {"metadata": {"type": "BASE TABLE", "schema": "EVENTS_MATCH_TXS_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_REF_TEST_GOLD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 2, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 11:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.events_match_txs_test_gold__fact_event_logs_full_ref_test_gold__fact_transactions_full_.5a7952a816"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_BUYER_ADDRESS.fe949194db": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_BUYER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_BUYER_ADDRESS.fe949194db"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e8c1190abb": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e8c1190abb"}, "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_deposits_7_5__60__lending.f47558e889": {"metadata": {"type": "BASE TABLE", "schema": "CURATED_RECENCY_DEFI_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_7_5", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PLATFORM": {"type": "TEXT", "index": 1, "name": "PLATFORM", "comment": null}, "LATEST_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "LATEST_TIMESTAMP", "comment": null}, "SYS_TS": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "SYS_TS", "comment": null}, "THRESHOLD_TS": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "THRESHOLD_TS", "comment": null}, "CURRENT_PERIOD_EVT": {"type": "NUMBER", "index": 5, "name": "CURRENT_PERIOD_EVT", "comment": null}, "ROLLING_AVG_EVT": {"type": "NUMBER", "index": 6, "name": "ROLLING_AVG_EVT", "comment": null}, "PERCENT_DELTA": {"type": "NUMBER", "index": 7, "name": "PERCENT_DELTA", "comment": null}, "TYPE": {"type": "TEXT", "index": 8, "name": "TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_deposits_7_5__60__lending.f47558e889"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c85b3e577e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c85b3e577e"}, "model.fsc_evm.silver_lending__complete_lending_liquidations": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": ""}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": ""}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": ""}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": ""}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": ""}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": ""}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": ""}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": ""}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": ""}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": ""}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": ""}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": ""}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": ""}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": ""}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": ""}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 24741376, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE, platform)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 152640, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "model.fsc_evm.silver_dex__gmx_v2_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "GMX_V2_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "MARKET": {"type": "TEXT", "index": 10, "name": "MARKET", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 11, "name": "RECEIVER", "comment": null}, "SENDER": {"type": "TEXT", "index": 12, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 13, "name": "TX_TO", "comment": null}, "ORDER_EXECUTION": {"type": "TEXT", "index": 14, "name": "ORDER_EXECUTION", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 15, "name": "TOKEN_IN", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 16, "name": "AMOUNT_IN_UNADJ", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 17, "name": "TOKEN_OUT", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 18, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 19, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 20, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 21, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 22, "name": "TYPE", "comment": null}, "KEY": {"type": "TEXT", "index": 23, "name": "KEY", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__gmx_v2_swaps"}, "test.polygon_models.not_null_silver__element_sales_TX_HASH.c94a3fb7ed": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_TX_HASH.c94a3fb7ed"}, "test.polygon_models.not_null_silver_olas__create_service_multisigs_ID.daadfeec98": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "CREATE_SERVICE_MULTISIGS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 9, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 10, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 11, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 12, "name": "TOPIC_3", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 13, "name": "EVENT_NAME", "comment": null}, "DATA": {"type": "TEXT", "index": 14, "name": "DATA", "comment": null}, "SEGMENTED_DATA": {"type": "ARRAY", "index": 15, "name": "SEGMENTED_DATA", "comment": null}, "ID": {"type": "NUMBER", "index": 16, "name": "ID", "comment": null}, "MULTISIG_ADDRESS": {"type": "TEXT", "index": 17, "name": "MULTISIG_ADDRESS", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 18, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 19, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CREATE_SERVICE_MULTISIGS_ID": {"type": "TEXT", "index": 20, "name": "CREATE_SERVICE_MULTISIGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 23, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__create_service_multisigs_ID.daadfeec98"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP.9672b7c6fa": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP.9672b7c6fa"}, "model.fsc_evm.silver_dex__hashflow_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "HASHFLOW_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "DEPLOYER_ADDRESS": {"type": "TEXT", "index": 4, "name": "DEPLOYER_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 5, "name": "POOL_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 6, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 7, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 8, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 9, "name": "TYPE", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 10, "name": "_CALL_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 258048, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 65, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__hashflow_pools"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__tofunft_sales_EVENT_TYPE__bid_won__sale.2c30cdcd41": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_SET_SILVER", "name": "TOFUNFT_SALES_EVENT_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE_FIELD": {"type": "TEXT", "index": 1, "name": "VALUE_FIELD", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__tofunft_sales_EVENT_TYPE__bid_won__sale.2c30cdcd41"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.75db53c973": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "ELEMENT_SALES_PLATFORM_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.75db53c973"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_TO_ADDRESS__0_xX_0_9a_fA_F_.5c28de3d46": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:45UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_TO_ADDRESS__0_xX_0_9a_fA_F_.5c28de3d46"}, "test.polygon_models.not_null_silver__complete_nft_sales_PRICE.664e2772c7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_PRICE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_PRICE.664e2772c7"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_TX_HASH.bf35dc7aec": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_TX_HASH.bf35dc7aec"}, "seed.fsc_evm.silver_bridge__stargate_chain_id_seed": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "STARGATE_CHAIN_ID_SEED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CHAIN_NAME": {"type": "TEXT", "index": 1, "name": "CHAIN_NAME", "comment": null}, "CHAIN_ID": {"type": "NUMBER", "index": 2, "name": "CHAIN_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1536, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 12, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver_bridge__stargate_chain_id_seed"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__getservice_reads_GETSERVICE_READS_ID.93211253f0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_OLAS", "name": "GETSERVICE_READS_GETSERVICE_READS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"GETSERVICE_READS_ID": {"type": "TEXT", "index": 1, "name": "GETSERVICE_READS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__getservice_reads_GETSERVICE_READS_ID.93211253f0"}, "seed.fsc_evm.silver_lending__token_metadata": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "TOKEN_METADATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "UNDERLYING_TOKEN_NAME": {"type": "TEXT", "index": 2, "name": "UNDERLYING_TOKEN_NAME", "comment": null}, "UNDERLYING_TOKEN_SYMBOL": {"type": "TEXT", "index": 3, "name": "UNDERLYING_TOKEN_SYMBOL", "comment": null}, "UNDERLYING_TOKEN_ADDRESS": {"type": "TEXT", "index": 4, "name": "UNDERLYING_TOKEN_ADDRESS", "comment": null}, "UNDERLYING_TOKEN_DECIMALS": {"type": "NUMBER", "index": 5, "name": "UNDERLYING_TOKEN_DECIMALS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 4096, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 27, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver_lending__token_metadata"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_INSERTED_TIMESTAMP.48b29759a8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_INSERTED_TIMESTAMP.48b29759a8"}, "model.fsc_evm.core__fact_blocks": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "FACT_BLOCKS", "database": "POLYGON", "comment": "## What\n\nThis table contains block-level data for EVM blockchains, providing a complete record of all blocks produced on the chain. Each row represents one block with its associated metadata, transactions, and gas metrics.\n\n## Key Use Cases\n\n- Analyzing gas price trends and network congestion over time\n- Tracking block production rates and miner/validator performance\n- Monitoring network upgrades and their impact (e.g., EIP-1559, EIP-4844)\n- Calculating transaction throughput and network utilization\n- Identifying uncle blocks and chain reorganizations\n\n## Important Relationships\n\n- **Join with fact_transactions**: Use `block_number` to analyze all transactions within a block\n- **Join with fact_traces**: Use `block_number` to examine internal transactions\n- **Join with fact_event_logs**: Use `block_number` to find all events emitted in a block\n\n## Commonly-used Fields\n\n- `block_number`: Sequential identifier for blocks\n- `block_timestamp`: UTC timestamp of block production\n- `gas_used`: Total gas consumed by all transactions\n- `gas_limit`: Maximum gas allowed in the block\n- `base_fee_per_gas`: Base fee for EIP-1559 chains\n- `tx_count`: Number of transactions in the block\n- `miner`: Address that received block rewards\n\n## Sample queries\n\n```sql\n-- Average gas price and utilization by hour\nSELECT \n DATE_TRUNC('hour', block_timestamp) AS hour,\n AVG(gas_used / gas_limit) AS avg_gas_utilization,\n AVG(base_fee_per_gas) AS avg_base_fee,\n COUNT(*) AS blocks_count,\n SUM(tx_count) AS total_transactions\nFROM .core.fact_blocks\nWHERE block_timestamp >= CURRENT_DATE - 7\nGROUP BY 1\nORDER BY 1 DESC;\n\n-- Identify high-value blocks by total gas used\nSELECT \n block_number,\n block_timestamp,\n tx_count,\n gas_used,\n gas_limit,\n (gas_used::FLOAT / gas_limit) AS utilization_rate,\n miner\nFROM .core.fact_blocks\nWHERE block_timestamp >= CURRENT_DATE - 1\nORDER BY gas_used DESC\nLIMIT 100;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": "The unique 32-byte Keccak-256 hash of the block header, prefixed with '0x'.\n\nExample: '0x4e3a3754410177e6937ef1f84bba68ea139e8d1a2258c5f85db9f1cd715a1bdd'"}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": "Network identifier within the blockchain (e.g., 'mainnet', 'testnet').\n\nExample: 'mainnet'"}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": "Number of transactions included in the block.\n\nExample: 142"}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": "Block size in bytes.\n\nExample: 125432"}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": "Address that received block rewards.\n\nExample: '0xea674fdde714fd979de3edf0f56aa9716b898ec8'"}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": "256-bit hash used in PoW mining process. Post-merge, contains prevRandao for randomness.\n\nExample: '0x0000000000000000000000000000000000000000000000000000000000000000'"}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": "Arbitrary data included by block producer (max 32 bytes).\n\nExample: 'Geth/v1.10.23-stable/linux-amd64/go1.18.5'"}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": "Hash of the previous block (block_number - 1).\n\nExample: '0x3d7a3754410177e6937ef1f84bba68ea139e8d1a2258c5f85db9f1cd715a1bee'"}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": "Total gas consumed by all transactions in the block.\n\nExample: 15234567"}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": "Maximum gas allowed for all transactions in this block.\n\nExample: 30000000"}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": "Base fee per gas unit in wei (EIP-1559 chains only).\n\nExample: 25000000000"}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": "Mining difficulty at block production time.\n\nExample: 0"}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": "Cumulative difficulty from genesis to this block.\n\nExample: 58750000000000000000000"}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": "Keccak-256 hash of uncle blocks list.\n\nExample: '0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347'"}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": "Array of uncle block headers (PoW only).\n\nExample: []"}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": "Proof-of-Work nonce value. For PoW chains, this demonstrates computational work. Post-merge Ethereum and PoS chains typically show 0x0000000000000000.\n\nExample: '0x0000000000000000'"}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": "Merkle root of all transaction receipts in the block.\n\nExample: '0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421'"}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": "Merkle root of the entire blockchain state after executing this block.\n\nExample: '0xd7f897bbebe1f8d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934'"}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": "Merkle root of all transactions in the block.\n\nExample: '0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421'"}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": "2048-bit bloom filter containing all log addresses and topics from the block's transactions.\n\nExample: '0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'"}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:25UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 42480336896, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 79454366, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.core__fact_blocks"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_TX_COUNT__NUMBER__FLOAT.ba256986bd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_FULL_TX_COUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_TX_COUNT__NUMBER__FLOAT.ba256986bd"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP__hour__2.81da35ef44": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP__hour__2.81da35ef44"}, "model.fsc_evm.silver_lending__comp_v2_asset_details": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "COMP_V2_ASSET_DETAILS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 5, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_NAME": {"type": "TEXT", "index": 6, "name": "TOKEN_NAME", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 7, "name": "TOKEN_SYMBOL", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 8, "name": "TOKEN_DECIMALS", "comment": null}, "UNDERLYING_ASSET_ADDRESS": {"type": "TEXT", "index": 9, "name": "UNDERLYING_ASSET_ADDRESS", "comment": null}, "UNDERLYING_NAME": {"type": "TEXT", "index": 10, "name": "UNDERLYING_NAME", "comment": null}, "UNDERLYING_SYMBOL": {"type": "TEXT", "index": 11, "name": "UNDERLYING_SYMBOL", "comment": null}, "UNDERLYING_DECIMALS": {"type": "NUMBER", "index": 12, "name": "UNDERLYING_DECIMALS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 13, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 14, "name": "VERSION", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 18, "name": "_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:36UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__comp_v2_asset_details"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_ADDRESS.52d628c90f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_BALANCES_NATIVE_DAILY_FULL_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 5, "name": "BALANCE_HEX", "comment": null}, "BALANCE_RAW": {"type": "NUMBER", "index": 6, "name": "BALANCE_RAW", "comment": null}, "BALANCE_PRECISE": {"type": "TEXT", "index": 7, "name": "BALANCE_PRECISE", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 8, "name": "BALANCE", "comment": null}, "BALANCE_USD": {"type": "FLOAT", "index": 9, "name": "BALANCE_USD", "comment": null}, "EZ_BALANCES_NATIVE_DAILY_ID": {"type": "TEXT", "index": 10, "name": "EZ_BALANCES_NATIVE_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_ADDRESS.52d628c90f"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_LABEL_SUBTYPE__STRING__VARCHAR.c6eb320168": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "LABELS_LABEL_SUBTYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_LABEL_SUBTYPE__STRING__VARCHAR.c6eb320168"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_FROM_ADDRESS.f6687a1d92": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_FROM_ADDRESS.f6687a1d92"}, "test.fsc_evm.curated_recency_defi_silver_dex__complete_dex_swaps_dex_swaps.5916f6c88e": {"metadata": {"type": "BASE TABLE", "schema": "CURATED_RECENCY_DEFI_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_DEX_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PLATFORM": {"type": "TEXT", "index": 1, "name": "PLATFORM", "comment": null}, "LATEST_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "LATEST_TIMESTAMP", "comment": null}, "SYS_TS": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "SYS_TS", "comment": null}, "THRESHOLD_TS": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "THRESHOLD_TS", "comment": null}, "CURRENT_PERIOD_EVT": {"type": "NUMBER", "index": 5, "name": "CURRENT_PERIOD_EVT", "comment": null}, "ROLLING_AVG_EVT": {"type": "NUMBER", "index": 6, "name": "ROLLING_AVG_EVT", "comment": null}, "PERCENT_DELTA": {"type": "NUMBER", "index": 7, "name": "PERCENT_DELTA", "comment": null}, "TYPE": {"type": "TEXT", "index": 8, "name": "TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.curated_recency_defi_silver_dex__complete_dex_swaps_dex_swaps.5916f6c88e"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID.b52f0fec49": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_EZ_TOKEN_TRANSFERS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 1, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 09:33UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID.b52f0fec49"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_VERSION.46458e3611": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_VERSION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_VERSION.46458e3611"}, "test.polygon_models.not_null_silver_olas__service_event_logs_SERVICE_ID.1ad8540ad5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "SERVICE_EVENT_LOGS_SERVICE_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "MULTISIG_ADDRESS": {"type": "TEXT", "index": 9, "name": "MULTISIG_ADDRESS", "comment": null}, "SERVICE_ID": {"type": "NUMBER", "index": 10, "name": "SERVICE_ID", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 11, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 12, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 13, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 14, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": null}, "SEGMENTED_DATA": {"type": "ARRAY", "index": 16, "name": "SEGMENTED_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}, "SERVICE_EVENT_LOGS_ID": {"type": "TEXT", "index": 19, "name": "SERVICE_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 22, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__service_event_logs_SERVICE_ID.1ad8540ad5"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.cf7a275c18": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.cf7a275c18"}, "model.fsc_evm.core__ez_decoded_event_logs": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "EZ_DECODED_EVENT_LOGS", "database": "POLYGON", "comment": "## What\n\nThis table provides human-readable decoded event data for smart contracts where ABIs are available. It transforms raw hex-encoded logs into structured JSON with named parameters and values, making blockchain data immediately queryable without manual decoding.\n\n## Key Use Cases\n\n- Analyzing token transfers and approvals without manual decoding\n- Tracking DEX swaps and liquidity events with named parameters\n- Monitoring NFT transfers and marketplace activity\n- Querying DeFi protocol interactions (lending, staking, governance)\n- Building analytics on any smart contract with available ABIs\n\n## Important Relationships\n\n- **Join with fact_event_logs**: Use `tx_hash` and `event_index` for raw event data\n- **Join with dim_contracts**: Use `contract_address` for contract metadata\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Cross-reference ez_token_transfers**: For simplified token movement data\n\n## Commonly-used Fields\n\n- `contract_address`: The smart contract that emitted the event\n- `event_name`: The event name from the contract ABI (e.g., Transfer, Swap)\n- `decoded_log`: JSON object with decoded parameter names and values\n- `contract_name`: Human-readable name of the contract\n- `block_timestamp`: When the event occurred\n- `tx_hash`: Transaction hash containing this event\n\n## Sample queries\n\n**ERC-20 Transfer Events with Proper Types**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n contract_address,\n contract_name,\n event_name,\n decoded_log:from::string AS from_address,\n decoded_log:to::string AS to_address,\n decoded_log:value::numeric AS amount,\n -- Convert to decimal (assuming 18 decimals)\n decoded_log:value::numeric / POW(10, 18) AS amount_decimal\nFROM .core.ez_decoded_event_logs\nWHERE contract_address = LOWER('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48') -- USDC\n AND event_name = 'Transfer'\n AND block_timestamp >= CURRENT_DATE - 7\n AND decoded_log:value::numeric > 1000000000 -- Over 1000 USDC\nORDER BY block_timestamp DESC;\n```\n\n**Uniswap V3 Swap Events**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n contract_address AS pool_address,\n event_name,\n decoded_log:sender::string AS sender,\n decoded_log:recipient::string AS recipient,\n decoded_log:amount0::numeric AS amount0,\n decoded_log:amount1::numeric AS amount1,\n decoded_log:sqrtPriceX96::numeric AS sqrt_price,\n decoded_log:liquidity::numeric AS liquidity,\n decoded_log:tick::integer AS tick\nFROM .core.ez_decoded_event_logs\nWHERE event_name = 'Swap'\n AND contract_address IN (\n SELECT address FROM dim_contracts \n WHERE contract_name ILIKE '%Uniswap V3%'\n )\n AND block_timestamp >= CURRENT_DATE - 1\nLIMIT 100;\n```\n\n**NFT Transfer Events (ERC-721)**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n contract_address,\n contract_name AS collection_name,\n decoded_log:from::string AS from_address,\n decoded_log:to::string AS to_address,\n decoded_log:tokenId::string AS token_id\nFROM .core.ez_decoded_event_logs\nWHERE event_name = 'Transfer'\n AND decoded_log:tokenId IS NOT NULL -- Indicates ERC-721\n AND block_timestamp >= CURRENT_DATE - 1\nORDER BY block_timestamp DESC;\n```\n\n**DeFi Protocol Events - Compound Finance**\n\n```sql\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n event_name,\n COUNT(*) AS event_count,\n COUNT(DISTINCT decoded_log:minter::string) AS unique_users\nFROM .core.ez_decoded_event_logs\nWHERE contract_name ILIKE '%compound%'\n AND event_name IN ('Mint', 'Redeem', 'Borrow', 'RepayBorrow')\n AND block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1, 2\nORDER BY 1 DESC, 3 DESC;\n```\n\n**Complex Event Analysis - DEX Aggregator Routes**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n event_name,\n decoded_log,\n ARRAY_SIZE(decoded_log:path) AS swap_hops,\n decoded_log:amountIn::numeric AS amount_in,\n decoded_log:amountOutMin::numeric AS min_amount_out\nFROM .core.ez_decoded_event_logs\nWHERE contract_address = LOWER('0x1111111254fb6c44bAC0beD2854e76F90643097d') -- 1inch\n AND event_name ILIKE '%swap%'\n AND block_timestamp >= CURRENT_DATE - 1;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering"}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events"}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": "Array containing all indexed parameters of the event.\n\nExample: ['0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', '0x0000000000000000000000001234567890123456789012345678901234567890']"}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": "Event signature hash - keccak256 of the event declaration.\n\nExample: '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'"}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": "First indexed parameter of the event (if exists).\n\nExample: '0x0000000000000000000000001234567890123456789012345678901234567890'"}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": "Second indexed parameter of the event (if exists).\n\nExample: '0x000000000000000000000000abcdefabcdefabcdefabcdefabcdefabcdefabcd'"}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": "Third indexed parameter of the event (if exists).\n\nExample: '0x0000000000000000000000000000000000000000000000000000000000000001'"}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": "Hex-encoded non-indexed event parameters.\n\nExample: '0x0000000000000000000000000000000000000000000000000de0b6b3a7640000'"}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": "Boolean flag indicating if the event was removed due to chain reorganization.\n\nExample: false"}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": "Boolean indicator of transaction success.\n\n**Values**:\n- TRUE: Transaction executed successfully\n- FALSE: Transaction failed/reverted"}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```"}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": "Complete decoded event data including parameter names, values, types, and metadata.\n\nExample: '{\"event_name\": \"Transfer\", \"parameters\": [{\"name\": \"from\", \"type\": \"address\", \"value\": \"0x123...\", \"indexed\": true}]}'"}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": "Flattened JSON object containing decoded event parameters with their values.\n\nExample: '{\"from\": \"0x123...\", \"to\": \"0x456...\", \"value\": \"1000000000000000000\"}'"}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": "Human-readable name of the smart contract emitting the event, joined from dim_contracts.\n\nExample: 'USD Coin'"}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 6950825375744, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 24487354073, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.core__ez_decoded_event_logs"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BLOCK_TIMESTAMP.c70c659e0d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BLOCK_TIMESTAMP.c70c659e0d"}, "test.polygon_models.not_null_silver__element_sales_TOTAL_PRICE_RAW.6277f419e1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_TOTAL_PRICE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_TOTAL_PRICE_RAW.6277f419e1"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_defi__ez_dex_liquidity_pool_actions_ez_dex_liquidity_pool_actions_id.83a111c26f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_DEFI", "name": "EZ_DEX_LIQUIDITY_POOL_ACTIONS_EZ_DEX_LIQUIDITY_POOL_ACTIONS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EZ_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 1, "name": "EZ_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_defi__ez_dex_liquidity_pool_actions_ez_dex_liquidity_pool_actions_id.83a111c26f"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS.8c4b42fef8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 8, "name": "POOL_NAME", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 9, "name": "POOL_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 15, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 17, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 18, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 19, "name": "EVENT_INDEX", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 24, "name": "TOKEN_IN", "comment": null}, "TOKEN_IN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IN_IS_VERIFIED", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 26, "name": "TOKEN_OUT", "comment": null}, "TOKEN_OUT_IS_VERIFIED": {"type": "BOOLEAN", "index": 27, "name": "TOKEN_OUT_IS_VERIFIED", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 28, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 29, "name": "SYMBOL_OUT", "comment": null}, "DECIMALS_IN": {"type": "NUMBER", "index": 30, "name": "DECIMALS_IN", "comment": null}, "DECIMALS_OUT": {"type": "NUMBER", "index": 31, "name": "DECIMALS_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 32, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_SWAPS_ID": {"type": "TEXT", "index": 34, "name": "COMPLETE_DEX_SWAPS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 35, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 37, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS.8c4b42fef8"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_ORIGIN_FUNCTION_SIGNATURE.de76042d6e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_ORIGIN_FUNCTION_SIGNATURE.de76042d6e"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_PROTOCOL.a6cfc199ee": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_PROTOCOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 15, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 19, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 20, "name": "TOKEN_SYMBOL", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 21, "name": "TOKEN_DECIMALS", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 23, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 24, "name": "AMOUNT_USD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IS_VERIFIED", "comment": null}, "_ID": {"type": "TEXT", "index": 26, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_BRIDGE_ACTIVITY_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_BRIDGE_ACTIVITY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_PROTOCOL.a6cfc199ee"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_FACT_TRACES_ID.5ec564f014": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_FACT_TRACES_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_FACT_TRACES_ID.5ec564f014"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.78e1fb01e0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "TRACES_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.78e1fb01e0"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_INPUT_DATA.0c71a3add2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_INPUT_DATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_INPUT_DATA.0c71a3add2"}, "model.fsc_evm.silver_dex__glyph_v4_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "GLYPH_V4_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 6, "name": "EVENT_NAME", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 7, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 8, "name": "TOKEN1", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "FEE": {"type": "NUMBER", "index": 10, "name": "FEE", "comment": null}, "TICK": {"type": "TEXT", "index": 11, "name": "TICK", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 12, "name": "TICK_SPACING", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 14, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 15, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 16, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:04UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__glyph_v4_pools"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TX_HASH.63627cc126": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TX_HASH.63627cc126"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE_PRECISE_RAW.14c29d688d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_VALUE_PRECISE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE_PRECISE_RAW.14c29d688d"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_DATA.297d8e5e96": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_DATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_DATA.297d8e5e96"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_full__INSERTED_TIMESTAMP__day__1.f18b9fe607": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "CREATED_CONTRACTS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_full__INSERTED_TIMESTAMP__day__1.f18b9fe607"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID.6d0c115405": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_EZ_DECODED_EVENT_LOGS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID.6d0c115405"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_EVENT_NAME__STRING__VARCHAR.4459c81b7f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "DECODED_LOGS_RECENT_EVENT_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_EVENT_NAME__STRING__VARCHAR.4459c81b7f"}, "model.fsc_evm.chain_stats__ez_protocol_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_PROTOCOL_METRICS", "database": "POLYGON", "comment": "## What\n\nDaily aggregated protocol-level metrics for the indicated EVM blockchain including user activity, transaction counts, and token flow data. Combines protocol interaction data with Flipside scoring to distinguish between total activity and quality user activity (Flipside score >= 4). Metrics track inflows, outflows, and user engagement at the protocol level.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "PROTOCOL": {"type": "TEXT", "index": 2, "name": "PROTOCOL", "comment": "Protocol names including versioning information (e.g. Uniswap v2, v3, etc.). Note: protocol names may not always match protocol names in other tables like dex_volume"}, "N_USERS": {"type": "NUMBER", "index": 3, "name": "N_USERS", "comment": "Number of unique addresses submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_USERS": {"type": "NUMBER", "index": 4, "name": "N_QUALITY_USERS", "comment": "Number of unique quality addresses with Flipside score >= 4 submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_TRANSACTIONS": {"type": "NUMBER", "index": 5, "name": "N_TRANSACTIONS", "comment": "Number of unique transactions that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_TRANSACTIONS": {"type": "NUMBER", "index": 6, "name": "N_QUALITY_TRANSACTIONS", "comment": "Number of unique transactions by addresses with Flipside score >= 4 that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "USD_INFLOWS": {"type": "FLOAT", "index": 7, "name": "USD_INFLOWS", "comment": "USD value of tokens sent INTO this protocol from all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "USD_OUTFLOWS": {"type": "FLOAT", "index": 8, "name": "USD_OUTFLOWS", "comment": "USD value of tokens sent FROM this protocol to all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "NET_USD_INFLOW": {"type": "FLOAT", "index": 9, "name": "NET_USD_INFLOW", "comment": "USD inflows minus outflows. Note: Price effects may cause net USD and token-level net changes to differ in direction (rare but possible with large, fast price changes)"}, "GROSS_USD_VOLUME": {"type": "FLOAT", "index": 10, "name": "GROSS_USD_VOLUME", "comment": "Total USD volume calculated as inflows plus outflows"}, "QUALITY_USD_INFLOWS": {"type": "FLOAT", "index": 11, "name": "QUALITY_USD_INFLOWS", "comment": "USD value of token inflows from quality addresses with Flipside score >= 4"}, "QUALITY_USD_OUTFLOWS": {"type": "FLOAT", "index": 12, "name": "QUALITY_USD_OUTFLOWS", "comment": "USD value of token outflows to quality addresses with Flipside score >= 4"}, "QUALITY_NET_USD": {"type": "FLOAT", "index": 13, "name": "QUALITY_NET_USD", "comment": "Quality USD inflows minus quality USD outflows. Price effects may apply similar to net_usd_inflow"}, "QUALITY_GROSS_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_GROSS_USD", "comment": "Total quality USD volume calculated as quality inflows plus quality outflows"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.chain_stats__ez_protocol_metrics"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PROTOCOL.16dcb68655": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_PROTOCOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PROTOCOL.16dcb68655"}, "model.fsc_evm.test_gold__fact_traces_recent": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "FACT_TRACES_RECENT", "database": "POLYGON", "comment": "This is a view used to test the last three days of fact traces.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": ""}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": ""}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": ""}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": ""}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": ""}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": ""}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": ""}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": ""}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": ""}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": ""}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": ""}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": ""}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": ""}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": ""}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": ""}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": ""}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": ""}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": ""}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.ffc328a26e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_TRACES_RECENT_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.ffc328a26e"}, "model.fsc_evm.bronze__complete_provider_prices": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "COMPLETE_PROVIDER_PRICES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": ""}, "RECORDED_HOUR": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "RECORDED_HOUR", "comment": ""}, "OPEN": {"type": "FLOAT", "index": 3, "name": "OPEN", "comment": ""}, "HIGH": {"type": "FLOAT", "index": 4, "name": "HIGH", "comment": ""}, "LOW": {"type": "FLOAT", "index": 5, "name": "LOW", "comment": ""}, "CLOSE": {"type": "FLOAT", "index": 6, "name": "CLOSE", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_PROVIDER_PRICES_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_PROVIDER_PRICES_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__complete_provider_prices"}, "model.fsc_evm.silver_dex__maverick_v2_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "MAVERICK_V2_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 6, "name": "POOL_ADDRESS", "comment": null}, "PROTOCOL_FEE_RATIO": {"type": "NUMBER", "index": 7, "name": "PROTOCOL_FEE_RATIO", "comment": null}, "FEEAIN": {"type": "NUMBER", "index": 8, "name": "FEEAIN", "comment": null}, "FEEBIN": {"type": "NUMBER", "index": 9, "name": "FEEBIN", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 10, "name": "TICK_SPACING", "comment": null}, "LOOKBACK": {"type": "NUMBER", "index": 11, "name": "LOOKBACK", "comment": null}, "ACTIVETICK": {"type": "NUMBER", "index": 12, "name": "ACTIVETICK", "comment": null}, "TOKENA": {"type": "TEXT", "index": 13, "name": "TOKENA", "comment": null}, "TOKENB": {"type": "TEXT", "index": 14, "name": "TOKENB", "comment": null}, "KINDS": {"type": "NUMBER", "index": 15, "name": "KINDS", "comment": null}, "ACCESSOR": {"type": "TEXT", "index": 16, "name": "ACCESSOR", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 20, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__maverick_v2_pools"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE__day__2.3411cdaa78": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_FULL_BLOCK_DATE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:48UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE__day__2.3411cdaa78"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_TOTAL_FEES_RAW.919411d757": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_TOTAL_FEES_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_TOTAL_FEES_RAW.919411d757"}, "test.fsc_evm.not_null_silver__complete_token_prices_BLOCKCHAIN.ada1620192": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_TOKEN_PRICES_BLOCKCHAIN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 3, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 5, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 6, "name": "DECIMALS", "comment": null}, "PRICE": {"type": "FLOAT", "index": 7, "name": "PRICE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN", "comment": null}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 9, "name": "BLOCKCHAIN_NAME", "comment": null}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 10, "name": "BLOCKCHAIN_ID", "comment": null}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 11, "name": "IS_IMPUTED", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 12, "name": "IS_DEPRECATED", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 13, "name": "IS_VERIFIED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 14, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 15, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_TOKEN_PRICES_ID": {"type": "TEXT", "index": 19, "name": "COMPLETE_TOKEN_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 20, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_token_prices_BLOCKCHAIN.ada1620192"}, "test.fsc_evm.not_null_test_silver__decoded_logs_full_TX_HASH.9bc0884cbc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "DECODED_LOGS_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": null}, "DECODED_DATA": {"type": "VARIANT", "index": 6, "name": "DECODED_DATA", "comment": null}, "TRANSFORMED": {"type": "VARIANT", "index": 7, "name": "TRANSFORMED", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 8, "name": "DECODED_FLAT", "comment": null}, "DECODED_LOGS_ID": {"type": "TEXT", "index": 9, "name": "DECODED_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_full_TX_HASH.9bc0884cbc"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_DATA.d22b95cbe2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_DATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:41UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_DATA.d22b95cbe2"}, "model.fsc_evm.silver_lending__complete_lending_withdraws": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": ""}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": ""}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": ""}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": ""}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": ""}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": ""}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": ""}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": ""}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1658396160, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE, platform)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 12542569, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.polygon_models.not_null_silver_olas__service_event_logs_TX_HASH.04a3422711": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "SERVICE_EVENT_LOGS_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "MULTISIG_ADDRESS": {"type": "TEXT", "index": 9, "name": "MULTISIG_ADDRESS", "comment": null}, "SERVICE_ID": {"type": "NUMBER", "index": 10, "name": "SERVICE_ID", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 11, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 12, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 13, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 14, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": null}, "SEGMENTED_DATA": {"type": "ARRAY", "index": 16, "name": "SEGMENTED_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}, "SERVICE_EVENT_LOGS_ID": {"type": "TEXT", "index": 19, "name": "SERVICE_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 22, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__service_event_logs_TX_HASH.04a3422711"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_ORIGIN_FUNCTION_SIGNATURE.b43268ea6c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_ORIGIN_FUNCTION_SIGNATURE.b43268ea6c"}, "model.fsc_evm.silver_dex__dodo_v1_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "DODO_V1_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 12, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 13, "name": "TOKEN_OUT", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 16, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 19, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:36UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 252269568, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2288114, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__dodo_v1_swaps"}, "test.polygon_models.not_null_silver__element_sales_BLOCK_NUMBER.6f285666e9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_BLOCK_NUMBER.6f285666e9"}, "test.fsc_evm.txs_match_blocks_test_gold__fact_transactions_full_ref_test_gold__fact_blocks_full_.d3390d5b0e": {"metadata": {"type": "BASE TABLE", "schema": "TXS_MATCH_BLOCKS_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_REF_TEST_GOLD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "ACTUAL_COUNT": {"type": "NUMBER", "index": 2, "name": "ACTUAL_COUNT", "comment": null}, "EXPECTED_COUNT": {"type": "NUMBER", "index": 3, "name": "EXPECTED_COUNT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 13:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.txs_match_blocks_test_gold__fact_transactions_full_ref_test_gold__fact_blocks_full_.d3390d5b0e"}, "test.polygon_models.not_null_silver__tofunft_sales__INSERTED_TIMESTAMP.99cb218d68": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales__INSERTED_TIMESTAMP.99cb218d68"}, "model.fsc_evm.silver_lending__comp_v3_repayments": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "COMP_V3_REPAYMENTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 10, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 12, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 15, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 16, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 18, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 20, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:46UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 33611264, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 311254, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__comp_v3_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PROTOCOL_MARKET.6642e840fc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_PROTOCOL_MARKET", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PROTOCOL_MARKET.6642e840fc"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_ADDRESS.a76e4edeac": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_PLATFORM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_ADDRESS.a76e4edeac"}, "model.fsc_evm.test_silver__decoded_logs_recent": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "DECODED_LOGS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "EVENT_INDEX", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": ""}, "DECODED_DATA": {"type": "VARIANT", "index": 6, "name": "DECODED_DATA", "comment": ""}, "TRANSFORMED": {"type": "VARIANT", "index": 7, "name": "TRANSFORMED", "comment": ""}, "DECODED_FLAT": {"type": "OBJECT", "index": 8, "name": "DECODED_FLAT", "comment": ""}, "DECODED_LOGS_ID": {"type": "TEXT", "index": 9, "name": "DECODED_LOGS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__decoded_logs_recent"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_NFT_ADDRESS.6411288ae0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_NFT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_NFT_ADDRESS.6411288ae0"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_HEX.1a5a1ee8a5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_VALUE_HEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_HEX.1a5a1ee8a5"}, "test.polygon_models.not_null_silver_olas__registry_metadata_complete_REGISTRY_ID.d41d9793d9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "REGISTRY_METADATA_COMPLETE_REGISTRY_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"NAME": {"type": "TEXT", "index": 1, "name": "NAME", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 2, "name": "DESCRIPTION", "comment": null}, "REGISTRY_ID": {"type": "NUMBER", "index": 3, "name": "REGISTRY_ID", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "REGISTRY_TYPE": {"type": "TEXT", "index": 5, "name": "REGISTRY_TYPE", "comment": null}, "TRAIT_TYPE": {"type": "TEXT", "index": 6, "name": "TRAIT_TYPE", "comment": null}, "TRAIT_VALUE": {"type": "TEXT", "index": 7, "name": "TRAIT_VALUE", "comment": null}, "CODE_URI_LINK": {"type": "TEXT", "index": 8, "name": "CODE_URI_LINK", "comment": null}, "IMAGE_LINK": {"type": "TEXT", "index": 9, "name": "IMAGE_LINK", "comment": null}, "AGENT_IDS": {"type": "ARRAY", "index": 10, "name": "AGENT_IDS", "comment": null}, "REGISTRY_METADATA_ID": {"type": "TEXT", "index": 11, "name": "REGISTRY_METADATA_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__registry_metadata_complete_REGISTRY_ID.d41d9793d9"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_BLOCK_TIMESTAMP.aa8c9811f0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_BLOCK_TIMESTAMP.aa8c9811f0"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_FUNCTION_SIGNATURE.cb15dd5380": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "POLYMARKET_FILLED_ORDERS_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "QUESTION": {"type": "TEXT", "index": 10, "name": "QUESTION", "comment": null}, "MARKET_SLUG": {"type": "TEXT", "index": 11, "name": "MARKET_SLUG", "comment": null}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "END_DATE_ISO", "comment": null}, "OUTCOME": {"type": "TEXT", "index": 13, "name": "OUTCOME", "comment": null}, "ORDER_HASH": {"type": "TEXT", "index": 14, "name": "ORDER_HASH", "comment": null}, "MAKER": {"type": "TEXT", "index": 15, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 16, "name": "TAKER", "comment": null}, "CONDITION_ID": {"type": "TEXT", "index": 17, "name": "CONDITION_ID", "comment": null}, "QUESTION_ID": {"type": "TEXT", "index": 18, "name": "QUESTION_ID", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 19, "name": "ASSET_ID", "comment": null}, "MAKER_ASSET_ID": {"type": "TEXT", "index": 20, "name": "MAKER_ASSET_ID", "comment": null}, "TAKER_ASSET_ID": {"type": "TEXT", "index": 21, "name": "TAKER_ASSET_ID", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "AMOUNT_USD", "comment": null}, "SHARES": {"type": "FLOAT", "index": 23, "name": "SHARES", "comment": null}, "PRICE_PER_SHARE": {"type": "FLOAT", "index": 24, "name": "PRICE_PER_SHARE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "POLYMARKET_FILLED_ORDERS_ID": {"type": "TEXT", "index": 27, "name": "POLYMARKET_FILLED_ORDERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_FUNCTION_SIGNATURE.cb15dd5380"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP.a6ef34b987": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP.a6ef34b987"}, "test.polygon_models.not_null_silver__complete_nft_sales__LOG_ID.423b310544": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales__LOG_ID.423b310544"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4cd6e3b69f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_5_SALES_BUYER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4cd6e3b69f"}, "test.polygon_models.not_null_silver__mooar_sales_INPUT_DATA.d587446188": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_INPUT_DATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_INPUT_DATA.d587446188"}, "test.fsc_evm.not_null_test_silver__traces_recent_TRACE_ADDRESS.7c6de48691": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRACES_RECENT_TRACE_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 2, "name": "TX_POSITION", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 3, "name": "TRACE_ADDRESS", "comment": null}, "PARENT_TRACE_ADDRESS": {"type": "TEXT", "index": 4, "name": "PARENT_TRACE_ADDRESS", "comment": null}, "TRACE_ADDRESS_ARRAY": {"type": "ARRAY", "index": 5, "name": "TRACE_ADDRESS_ARRAY", "comment": null}, "TRACE_JSON": {"type": "OBJECT", "index": 6, "name": "TRACE_JSON", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 7, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRACES_ID": {"type": "TEXT", "index": 9, "name": "TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__traces_recent_TRACE_ADDRESS.7c6de48691"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_traces_recent_TRACE_INDEX__TX_HASH.6c15fc0c52": {"metadata": {"type": "BASE TABLE", "schema": "FSC_EVM_SEQUENCE_GAPS_TEST_GOLD", "name": "FACT_TRACES_RECENT_TRACE_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "PREV_TRACE_INDEX": {"type": "NUMBER", "index": 2, "name": "PREV_TRACE_INDEX", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 3, "name": "TRACE_INDEX", "comment": null}, "GAP": {"type": "NUMBER", "index": 4, "name": "GAP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_traces_recent_TRACE_INDEX__TX_HASH.6c15fc0c52"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.2bde19d676": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_4_SALES_TOTAL_FEES_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.2bde19d676"}, "test.fsc_evm.decoded_logs_exist_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_.2508ca290d": {"metadata": {"type": "BASE TABLE", "schema": "DECODED_LOGS_EXIST_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_REF_TEST_GOLD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 2, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 288768, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 347, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.decoded_logs_exist_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_.2508ca290d"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_BLOCK_NUMBER__NUMBER__FLOAT.31727446c1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_TRACES_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_BLOCK_NUMBER__NUMBER__FLOAT.31727446c1"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_BLOCK_NUMBER.ef072a7cea": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_BLOCK_NUMBER.ef072a7cea"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP.38071aedba": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP.38071aedba"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_TX_HASH__0_xX_0_9a_fA_F_.07ff7d8529": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TOFUNFT_SALES_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_TX_HASH__0_xX_0_9a_fA_F_.07ff7d8529"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.b46c604770": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "COMPLETE_NFT_SALES_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.b46c604770"}, "model.fsc_evm.silver__complete_token_prices": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_TOKEN_PRICES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "ASSET_ID": {"type": "TEXT", "index": 3, "name": "ASSET_ID", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": ""}, "NAME": {"type": "TEXT", "index": 5, "name": "NAME", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 6, "name": "DECIMALS", "comment": ""}, "PRICE": {"type": "FLOAT", "index": 7, "name": "PRICE", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN", "comment": ""}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 9, "name": "BLOCKCHAIN_NAME", "comment": ""}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 10, "name": "BLOCKCHAIN_ID", "comment": ""}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 11, "name": "IS_IMPUTED", "comment": ""}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 12, "name": "IS_DEPRECATED", "comment": ""}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 13, "name": "IS_VERIFIED", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 14, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 15, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_TOKEN_PRICES_ID": {"type": "TEXT", "index": 19, "name": "COMPLETE_TOKEN_PRICES_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 20, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:23UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1880628224, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(hour::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 52825110, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__complete_token_prices"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_TX_HASH.76c3272674": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_TX_HASH.76c3272674"}, "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP.673cf1e88f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "CONFIRM_BLOCKS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 5, "name": "TX_HASH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CONFIRM_BLOCKS_ID": {"type": "TEXT", "index": 7, "name": "CONFIRM_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP.673cf1e88f"}, "model.fsc_evm.test_silver__complete_event_abis_recent": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "COMPLETE_EVENT_ABIS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PARENT_CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "PARENT_CONTRACT_ADDRESS", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 2, "name": "EVENT_NAME", "comment": ""}, "ABI": {"type": "VARIANT", "index": 3, "name": "ABI", "comment": ""}, "START_BLOCK": {"type": "NUMBER", "index": 4, "name": "START_BLOCK", "comment": ""}, "PROXY_CREATED_BLOCK": {"type": "NUMBER", "index": 5, "name": "PROXY_CREATED_BLOCK", "comment": ""}, "SIMPLE_EVENT_NAME": {"type": "TEXT", "index": 6, "name": "SIMPLE_EVENT_NAME", "comment": ""}, "EVENT_SIGNATURE": {"type": "TEXT", "index": 7, "name": "EVENT_SIGNATURE", "comment": ""}, "END_BLOCK": {"type": "NUMBER", "index": 8, "name": "END_BLOCK", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "PROXY_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 10, "name": "PROXY_INSERTED_TIMESTAMP", "comment": ""}, "_UPDATED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_UPDATED_TIMESTAMP", "comment": ""}, "COMPLETE_EVENT_ABIS_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_EVENT_ABIS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": ""}, "IMPLEMENTATION_CONTRACT": {"type": "TEXT", "index": 16, "name": "IMPLEMENTATION_CONTRACT", "comment": ""}, "IMPLEMENTATION_CREATED_BLOCK": {"type": "NUMBER", "index": 17, "name": "IMPLEMENTATION_CREATED_BLOCK", "comment": ""}, "IMPLEMENTATION_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "IMPLEMENTATION_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__complete_event_abis_recent"}, "model.fsc_evm.silver__traces": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "TRACES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 2, "name": "TX_POSITION", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 3, "name": "TRACE_ADDRESS", "comment": null}, "PARENT_TRACE_ADDRESS": {"type": "TEXT", "index": 4, "name": "PARENT_TRACE_ADDRESS", "comment": null}, "TRACE_ADDRESS_ARRAY": {"type": "ARRAY", "index": 5, "name": "TRACE_ADDRESS_ARRAY", "comment": null}, "TRACE_JSON": {"type": "OBJECT", "index": 6, "name": "TRACE_JSON", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 7, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRACES_ID": {"type": "TEXT", "index": 9, "name": "TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:17UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 6224913525248, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(modified_timestamp::DATE, partition_key)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 65694892421, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__traces"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR.efdb4b7e98": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_STATS", "name": "CORE_METRICS_HOURLY_BLOCK_TIMESTAMP_HOUR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_TIMESTAMP_HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP_HOUR", "comment": null}, "BLOCK_NUMBER_MIN": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER_MIN", "comment": null}, "BLOCK_NUMBER_MAX": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER_MAX", "comment": null}, "BLOCK_COUNT": {"type": "NUMBER", "index": 4, "name": "BLOCK_COUNT", "comment": null}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "TRANSACTION_COUNT", "comment": null}, "TRANSACTION_COUNT_SUCCESS": {"type": "NUMBER", "index": 6, "name": "TRANSACTION_COUNT_SUCCESS", "comment": null}, "TRANSACTION_COUNT_FAILED": {"type": "NUMBER", "index": 7, "name": "TRANSACTION_COUNT_FAILED", "comment": null}, "UNIQUE_FROM_COUNT": {"type": "NUMBER", "index": 8, "name": "UNIQUE_FROM_COUNT", "comment": null}, "UNIQUE_TO_COUNT": {"type": "NUMBER", "index": 9, "name": "UNIQUE_TO_COUNT", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 10, "name": "TOTAL_FEES", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CORE_METRICS_HOURLY_ID": {"type": "TEXT", "index": 12, "name": "CORE_METRICS_HOURLY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR.efdb4b7e98"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS.35c96ffef7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS.35c96ffef7"}, "model.fsc_evm.silver_bridge__avalanche_native_v2": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "AVALANCHE_NATIVE_V2", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 11, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 12, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 13, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 14, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 15, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 16, "name": "AMOUNT_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 19, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 15:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__avalanche_native_v2"}, "model.fsc_evm.bronze_api__token_reads": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE_API", "name": "TOKEN_READS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": ""}, "BLOCK_NUMBER": {"type": "TEXT", "index": 2, "name": "BLOCK_NUMBER", "comment": ""}, "FUNCTION_SIG": {"type": "TEXT", "index": 3, "name": "FUNCTION_SIG", "comment": ""}, "FUNCTION_INPUT": {"type": "TEXT", "index": 4, "name": "FUNCTION_INPUT", "comment": ""}, "READ_RESULT": {"type": "TEXT", "index": 5, "name": "READ_RESULT", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-06-12 13:15UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 162741248, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4158057, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze_api__token_reads"}, "model.fsc_evm.silver__complete_event_abis": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_EVENT_ABIS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PARENT_CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "PARENT_CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 2, "name": "EVENT_NAME", "comment": null}, "ABI": {"type": "VARIANT", "index": 3, "name": "ABI", "comment": null}, "START_BLOCK": {"type": "NUMBER", "index": 4, "name": "START_BLOCK", "comment": null}, "PROXY_CREATED_BLOCK": {"type": "NUMBER", "index": 5, "name": "PROXY_CREATED_BLOCK", "comment": null}, "SIMPLE_EVENT_NAME": {"type": "TEXT", "index": 6, "name": "SIMPLE_EVENT_NAME", "comment": null}, "EVENT_SIGNATURE": {"type": "TEXT", "index": 7, "name": "EVENT_SIGNATURE", "comment": null}, "END_BLOCK": {"type": "NUMBER", "index": 8, "name": "END_BLOCK", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "PROXY_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 10, "name": "PROXY_INSERTED_TIMESTAMP", "comment": null}, "_UPDATED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_UPDATED_TIMESTAMP", "comment": null}, "COMPLETE_EVENT_ABIS_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_EVENT_ABIS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}, "IMPLEMENTATION_CONTRACT": {"type": "TEXT", "index": 16, "name": "IMPLEMENTATION_CONTRACT", "comment": null}, "IMPLEMENTATION_CREATED_BLOCK": {"type": "NUMBER", "index": 17, "name": "IMPLEMENTATION_CREATED_BLOCK", "comment": null}, "IMPLEMENTATION_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "IMPLEMENTATION_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 08:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 30710998016, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 479322007, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__complete_event_abis"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN.dcaaf4d14f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_STATS", "name": "CORE_METRICS_HOURLY_BLOCK_NUMBER_MIN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_TIMESTAMP_HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP_HOUR", "comment": null}, "BLOCK_NUMBER_MIN": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER_MIN", "comment": null}, "BLOCK_NUMBER_MAX": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER_MAX", "comment": null}, "BLOCK_COUNT": {"type": "NUMBER", "index": 4, "name": "BLOCK_COUNT", "comment": null}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "TRANSACTION_COUNT", "comment": null}, "TRANSACTION_COUNT_SUCCESS": {"type": "NUMBER", "index": 6, "name": "TRANSACTION_COUNT_SUCCESS", "comment": null}, "TRANSACTION_COUNT_FAILED": {"type": "NUMBER", "index": 7, "name": "TRANSACTION_COUNT_FAILED", "comment": null}, "UNIQUE_FROM_COUNT": {"type": "NUMBER", "index": 8, "name": "UNIQUE_FROM_COUNT", "comment": null}, "UNIQUE_TO_COUNT": {"type": "NUMBER", "index": 9, "name": "UNIQUE_TO_COUNT", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 10, "name": "TOTAL_FEES", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CORE_METRICS_HOURLY_ID": {"type": "TEXT", "index": 12, "name": "CORE_METRICS_HOURLY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN.dcaaf4d14f"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER.c391cc6a96": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER.c391cc6a96"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS.e67fafc448": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS.e67fafc448"}, "model.fsc_evm.silver_lending__aave_liquidations": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "AAVE_LIQUIDATIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 9, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 10, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 11, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 12, "name": "COLLATERAL_TOKEN", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "NUMBER", "index": 13, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 14, "name": "DEBT_TOKEN", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 16, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 19, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 21, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 17461248, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 151759, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__aave_liquidations"}, "test.polygon_models.not_null_silver__element_sales__LOG_ID.45798a356f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales__LOG_ID.45798a356f"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP__hour__2.bd49713839": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP__hour__2.bd49713839"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_AMOUNT_UNADJ.08e5e86a62": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_AMOUNT_UNADJ", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_AMOUNT_UNADJ.08e5e86a62"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_ORIGIN_FROM_ADDRESS.9104eb297b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_ORIGIN_FROM_ADDRESS.9104eb297b"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__balancer_pools_POOL_ADDRESS.2719d33e20": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_DEX", "name": "BALANCER_POOLS_POOL_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"POOL_ADDRESS": {"type": "TEXT", "index": 1, "name": "POOL_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__balancer_pools_POOL_ADDRESS.2719d33e20"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d1737769ad": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "TRANSACTIONS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d1737769ad"}, "model.fsc_evm.silver_dex__dodo_v2_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "DODO_V2_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 10, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 11, "name": "TOKEN_OUT", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 13, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 15, "name": "TX_TO", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 16, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 19, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:36UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1759747584, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 9589945, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__dodo_v2_swaps"}, "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_TO_ADDRESS.6fe92c8681": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_TO_ADDRESS.6fe92c8681"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.be409440dd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.be409440dd"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID.078268d9c9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "CONFIRM_BLOCKS_RECENT_CONFIRM_BLOCKS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONFIRM_BLOCKS_ID": {"type": "TEXT", "index": 1, "name": "CONFIRM_BLOCKS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID.078268d9c9"}, "test.fsc_evm.not_null_silver__complete_token_asset_metadata_BLOCKCHAIN.3791975c91": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_TOKEN_ASSET_METADATA_BLOCKCHAIN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TOKEN_ADDRESS": {"type": "TEXT", "index": 1, "name": "TOKEN_ADDRESS", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 6, "name": "BLOCKCHAIN", "comment": null}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN_NAME", "comment": null}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN_ID", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "IS_VERIFIED", "comment": null}, "IS_VERIFIED_MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "IS_VERIFIED_MODIFIED_TIMESTAMP", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 12, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 13, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_TOKEN_ASSET_METADATA_ID": {"type": "TEXT", "index": 17, "name": "COMPLETE_TOKEN_ASSET_METADATA_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 18, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_token_asset_metadata_BLOCKCHAIN.3791975c91"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_RECEIPTS_ROOT.6eb806e5a4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_RECEIPTS_ROOT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_RECEIPTS_ROOT.6eb806e5a4"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_EVENT_INDEX.d256b8467f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_EVENT_INDEX.d256b8467f"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_AMOUNT.1c26a3f24d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_AMOUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_AMOUNT.1c26a3f24d"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.84edb45427": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "COMPLETE_NFT_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.84edb45427"}, "model.fsc_evm.silver_dex__trader_joe_v2_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "TRADER_JOE_V2_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "ID": {"type": "NUMBER", "index": 12, "name": "ID", "comment": null}, "SWAP_FOR_Y": {"type": "BOOLEAN", "index": 13, "name": "SWAP_FOR_Y", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "VOLATILITY_ACCUMULATED": {"type": "NUMBER", "index": 16, "name": "VOLATILITY_ACCUMULATED", "comment": null}, "FEES": {"type": "NUMBER", "index": 17, "name": "FEES", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 18, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 19, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__trader_joe_v2_swaps"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.f542f4cc0f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.f542f4cc0f"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.f7b39ffb41": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_4_SALES_SELLER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.f7b39ffb41"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_erc20_daily_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.c31e06bdbd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "BALANCES_ERC20_DAILY_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:50UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_erc20_daily_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.c31e06bdbd"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_NUMBER.5b1552ab5e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOLS_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 4, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 6, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 10, "name": "POOL_ID", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 11, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 12, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 13, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 14, "name": "DECIMALS", "comment": null}, "FEE": {"type": "NUMBER", "index": 15, "name": "FEE", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 16, "name": "TICK_SPACING", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 17, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 18, "name": "TOKEN1", "comment": null}, "TOKEN2": {"type": "TEXT", "index": 19, "name": "TOKEN2", "comment": null}, "TOKEN3": {"type": "TEXT", "index": 20, "name": "TOKEN3", "comment": null}, "TOKEN4": {"type": "TEXT", "index": 21, "name": "TOKEN4", "comment": null}, "TOKEN5": {"type": "TEXT", "index": 22, "name": "TOKEN5", "comment": null}, "TOKEN6": {"type": "TEXT", "index": 23, "name": "TOKEN6", "comment": null}, "TOKEN7": {"type": "TEXT", "index": 24, "name": "TOKEN7", "comment": null}, "_ID": {"type": "TEXT", "index": 25, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOLS_ID": {"type": "TEXT", "index": 27, "name": "COMPLETE_DEX_LIQUIDITY_POOLS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_NUMBER.5b1552ab5e"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_MINER.a44712730d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_MINER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_MINER.a44712730d"}, "model.fsc_evm.observability__traces": {"metadata": {"type": "BASE TABLE", "schema": "OBSERVABILITY", "name": "TRACES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TEST_NAME": {"type": "TEXT", "index": 1, "name": "TEST_NAME", "comment": ""}, "MIN_BLOCK": {"type": "NUMBER", "index": 2, "name": "MIN_BLOCK", "comment": ""}, "MAX_BLOCK": {"type": "NUMBER", "index": 3, "name": "MAX_BLOCK", "comment": ""}, "MIN_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "MIN_BLOCK_TIMESTAMP", "comment": ""}, "MAX_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "MAX_BLOCK_TIMESTAMP", "comment": ""}, "BLOCKS_TESTED": {"type": "NUMBER", "index": 6, "name": "BLOCKS_TESTED", "comment": ""}, "BLOCKS_IMPACTED_COUNT": {"type": "NUMBER", "index": 7, "name": "BLOCKS_IMPACTED_COUNT", "comment": ""}, "MISSING_LIST": {"type": "ARRAY", "index": 8, "name": "MISSING_LIST", "comment": ""}, "TEST_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "TEST_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 197120, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5214, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.observability__traces"}, "model.fsc_evm.silver_bridge__allbridge_sent": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "ALLBRIDGE_SENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 10, "name": "EVENT_REMOVED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 11, "name": "TX_SUCCEEDED", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 12, "name": "BRIDGE_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 15, "name": "AMOUNT", "comment": null}, "LOCK_ID": {"type": "TEXT", "index": 16, "name": "LOCK_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN", "comment": null}, "SOURCE_CHAIN": {"type": "TEXT", "index": 18, "name": "SOURCE_CHAIN", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 19, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 20, "name": "TOKEN_ADDRESS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 24, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 25, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:28UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 5355520, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 17367, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__allbridge_sent"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.9f55628b74": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "ELEMENT_SALES_CREATOR_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.9f55628b74"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.8cde9117f4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_6_SALES_CREATOR_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.8cde9117f4"}, "model.fsc_evm.test_gold__ez_token_transfers_recent": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT", "database": "POLYGON", "comment": "This is a view used to test the last three days of `ez_token_transfers` data.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": ""}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": ""}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": ""}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": ""}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": ""}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": ""}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": ""}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": ""}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": ""}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": ""}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "model.fsc_evm.test_gold__fact_event_logs_full": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL", "database": "POLYGON", "comment": "This is a view used to test all of the gold fact event logs model.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": ""}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": ""}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": ""}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": ""}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": ""}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": ""}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": ""}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": ""}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_POSITION.fa8e858e99": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_POSITION.fa8e858e99"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.403a0d410c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.403a0d410c"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.76e468aa1e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "DECODED_LOGS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.76e468aa1e"}, "test.fsc_evm.not_null_silver_dex__curve_pools_POOL_ADDRESS.d71b87d177": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "CURVE_POOLS_POOL_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "DEPLOYER_ADDRESS": {"type": "TEXT", "index": 4, "name": "DEPLOYER_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 5, "name": "POOL_ADDRESS", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 6, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "NUMBER", "index": 7, "name": "TOKEN_ID", "comment": null}, "TOKEN_TYPE": {"type": "TEXT", "index": 8, "name": "TOKEN_TYPE", "comment": null}, "POOL_SYMBOL": {"type": "TEXT", "index": 9, "name": "POOL_SYMBOL", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "POOL_DECIMALS": {"type": "NUMBER", "index": 11, "name": "POOL_DECIMALS", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 12, "name": "POOL_ID", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 13, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 14, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 15, "name": "PLATFORM", "comment": null}, "TYPE": {"type": "TEXT", "index": 16, "name": "TYPE", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 17, "name": "_CALL_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TOKEN_NUM": {"type": "NUMBER", "index": 19, "name": "TOKEN_NUM", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__curve_pools_POOL_ADDRESS.d71b87d177"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__bytecode_abis_recent_CONTRACT_ADDRESS__ABI_HASH.eab02f6812": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "BYTECODE_ABIS_RECENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "ABI_HASH": {"type": "TEXT", "index": 2, "name": "ABI_HASH", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__bytecode_abis_recent_CONTRACT_ADDRESS__ABI_HASH.eab02f6812"}, "test.fsc_evm.txs_have_traces_test_gold__fact_traces_recent_ref_test_gold__fact_transactions_recent_.5b2a8b5ca4": {"metadata": {"type": "BASE TABLE", "schema": "TXS_HAVE_TRACES_TEST_GOLD", "name": "FACT_TRACES_RECENT_REF_TEST_GOLD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 2, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.txs_have_traces_test_gold__fact_traces_recent_ref_test_gold__fact_transactions_recent_.5b2a8b5ca4"}, "test.polygon_models.not_null_silver__mooar_sales_PLATFORM_FEE_RAW.6ab323f694": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_PLATFORM_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_PLATFORM_FEE_RAW.6ab323f694"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_NETWORK___a_zA_Z0_9__.c5c8f0a0cc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_BLOCKS_FULL_NETWORK", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_NETWORK___a_zA_Z0_9__.c5c8f0a0cc"}, "test.polygon_models.not_null_silver__complete_nft_sales_TOTAL_FEES.5f94d9565b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_TOTAL_FEES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_TOTAL_FEES.5f94d9565b"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.8794e23ba3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.8794e23ba3"}, "model.fsc_evm.silver_lending__fraxlend_asset_details": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "FRAXLEND_ASSET_DETAILS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "FRAX_MARKET_ADDRESS": {"type": "TEXT", "index": 8, "name": "FRAX_MARKET_ADDRESS", "comment": null}, "FRAX_MARKET_NAME": {"type": "TEXT", "index": 9, "name": "FRAX_MARKET_NAME", "comment": null}, "FRAX_MARKET_SYMBOL": {"type": "TEXT", "index": 10, "name": "FRAX_MARKET_SYMBOL", "comment": null}, "FRAX_MARKET_DECIMALS": {"type": "NUMBER", "index": 11, "name": "FRAX_MARKET_DECIMALS", "comment": null}, "UNDERLYING_NAME": {"type": "TEXT", "index": 12, "name": "UNDERLYING_NAME", "comment": null}, "UNDERLYING_ASSET": {"type": "TEXT", "index": 13, "name": "UNDERLYING_ASSET", "comment": null}, "UNDERLYING_SYMBOL": {"type": "TEXT", "index": 14, "name": "UNDERLYING_SYMBOL", "comment": null}, "UNDERLYING_DECIMALS": {"type": "NUMBER", "index": 15, "name": "UNDERLYING_DECIMALS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 16, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 19, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__fraxlend_asset_details"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_BLOCK_NUMBER__NUMBER__FLOAT.f75d3f5f2b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_BLOCK_NUMBER__NUMBER__FLOAT.f75d3f5f2b"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS.b4d519e230": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS.b4d519e230"}, "model.fsc_evm.silver_dex__maverick_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "MAVERICK_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 7, "name": "POOL_ADDRESS", "comment": null}, "FEE": {"type": "NUMBER", "index": 8, "name": "FEE", "comment": null}, "TICKSPACING": {"type": "NUMBER", "index": 9, "name": "TICKSPACING", "comment": null}, "ACTIVETICK": {"type": "NUMBER", "index": 10, "name": "ACTIVETICK", "comment": null}, "LOOKBACK": {"type": "NUMBER", "index": 11, "name": "LOOKBACK", "comment": null}, "PROTOCOLFEERATIO": {"type": "NUMBER", "index": 12, "name": "PROTOCOLFEERATIO", "comment": null}, "TOKENA": {"type": "TEXT", "index": 13, "name": "TOKENA", "comment": null}, "TOKENB": {"type": "TEXT", "index": 14, "name": "TOKENB", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 15, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 16, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 17, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 18, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 19, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__maverick_pools"}, "model.fsc_evm.observability__receipts": {"metadata": {"type": "BASE TABLE", "schema": "OBSERVABILITY", "name": "RECEIPTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TEST_NAME": {"type": "TEXT", "index": 1, "name": "TEST_NAME", "comment": ""}, "MIN_BLOCK": {"type": "NUMBER", "index": 2, "name": "MIN_BLOCK", "comment": ""}, "MAX_BLOCK": {"type": "NUMBER", "index": 3, "name": "MAX_BLOCK", "comment": ""}, "MIN_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "MIN_BLOCK_TIMESTAMP", "comment": ""}, "MAX_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "MAX_BLOCK_TIMESTAMP", "comment": ""}, "BLOCKS_TESTED": {"type": "NUMBER", "index": 6, "name": "BLOCKS_TESTED", "comment": ""}, "BLOCKS_IMPACTED_COUNT": {"type": "NUMBER", "index": 7, "name": "BLOCKS_IMPACTED_COUNT", "comment": ""}, "MISSING_LIST": {"type": "ARRAY", "index": 8, "name": "MISSING_LIST", "comment": ""}, "TEST_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "TEST_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:50UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 193024, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5215, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.observability__receipts"}, "test.fsc_evm.not_null_silver__complete_native_asset_metadata_MODIFIED_TIMESTAMP.c6bcef6cb9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NATIVE_ASSET_METADATA_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 5, "name": "BLOCKCHAIN", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 6, "name": "IS_DEPRECATED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_NATIVE_ASSET_METADATA_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_NATIVE_ASSET_METADATA_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_native_asset_metadata_MODIFIED_TIMESTAMP.c6bcef6cb9"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_GAS_LIMIT__NUMBER__FLOAT.a04528bc5d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_GAS_LIMIT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_GAS_LIMIT__NUMBER__FLOAT.a04528bc5d"}, "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_borrows_7_5__60__lending.bd75ba3a44": {"metadata": {"type": "BASE TABLE", "schema": "CURATED_RECENCY_DEFI_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_7_5", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PLATFORM": {"type": "TEXT", "index": 1, "name": "PLATFORM", "comment": null}, "LATEST_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "LATEST_TIMESTAMP", "comment": null}, "SYS_TS": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "SYS_TS", "comment": null}, "THRESHOLD_TS": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "THRESHOLD_TS", "comment": null}, "CURRENT_PERIOD_EVT": {"type": "NUMBER", "index": 5, "name": "CURRENT_PERIOD_EVT", "comment": null}, "ROLLING_AVG_EVT": {"type": "NUMBER", "index": 6, "name": "ROLLING_AVG_EVT", "comment": null}, "PERCENT_DELTA": {"type": "NUMBER", "index": 7, "name": "PERCENT_DELTA", "comment": null}, "TYPE": {"type": "TEXT", "index": 8, "name": "TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_borrows_7_5__60__lending.bd75ba3a44"}, "model.fsc_evm.silver_dex__kyberswap_v1_static_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "KYBERSWAP_V1_STATIC_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "AMOUNT0IN": {"type": "NUMBER", "index": 12, "name": "AMOUNT0IN", "comment": null}, "AMOUNT1IN": {"type": "NUMBER", "index": 13, "name": "AMOUNT1IN", "comment": null}, "AMOUNT0OUT": {"type": "NUMBER", "index": 14, "name": "AMOUNT0OUT", "comment": null}, "AMOUNT1OUT": {"type": "NUMBER", "index": 15, "name": "AMOUNT1OUT", "comment": null}, "FEE_IN_PRECISION": {"type": "NUMBER", "index": 16, "name": "FEE_IN_PRECISION", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 17, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 18, "name": "TOKEN1", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 19, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 20, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 21, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 22, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 26, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 27, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:36UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 24786944, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 154297, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__kyberswap_v1_static_swaps"}, "model.fsc_evm.silver_lending__comp_v2_repayments": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "COMP_V2_REPAYMENTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "BORROWER": {"type": "TEXT", "index": 9, "name": "BORROWER", "comment": null}, "PAYER": {"type": "TEXT", "index": 10, "name": "PAYER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 11, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 13, "name": "AMOUNT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 14, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 15, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 16, "name": "VERSION", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 21, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__comp_v2_repayments"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_PRECISE_RAW.0c0dcc217b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_VALUE_PRECISE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_PRECISE_RAW.0c0dcc217b"}, "model.fsc_evm.test_silver__transactions_full": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "TRANSACTIONS_FULL", "database": "POLYGON", "comment": "This is a view used to test all of the silver transactions model.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": ""}, "TRANSACTION_JSON": {"type": "VARIANT", "index": 4, "name": "TRANSACTION_JSON", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "TRANSACTIONS_ID": {"type": "TEXT", "index": 6, "name": "TRANSACTIONS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__transactions_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__receipts_recent_RECEIPTS_ID.72c2ba1bb5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "RECEIPTS_RECENT_RECEIPTS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RECEIPTS_ID": {"type": "TEXT", "index": 1, "name": "RECEIPTS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__receipts_recent_RECEIPTS_ID.72c2ba1bb5"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_FEE_RAW.98f46b971f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_PLATFORM_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_FEE_RAW.98f46b971f"}, "test.fsc_evm.not_null_test_silver__receipts_full_INSERTED_TIMESTAMP.eba05ceee3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "RECEIPTS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": null}, "RECEIPTS_JSON": {"type": "VARIANT", "index": 4, "name": "RECEIPTS_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "RECEIPTS_ID": {"type": "TEXT", "index": 6, "name": "RECEIPTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__receipts_full_INSERTED_TIMESTAMP.eba05ceee3"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_native_transfers_full_EZ_NATIVE_TRANSFERS_ID.8e978e6b17": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_FULL_EZ_NATIVE_TRANSFERS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EZ_NATIVE_TRANSFERS_ID": {"type": "TEXT", "index": 1, "name": "EZ_NATIVE_TRANSFERS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 09:22UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_native_transfers_full_EZ_NATIVE_TRANSFERS_ID.8e978e6b17"}, "test.polygon_models.not_null_silver_olas__service_registrations_OWNER_ADDRESS.60900e09bd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "SERVICE_REGISTRATIONS_OWNER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OWNER_ADDRESS": {"type": "TEXT", "index": 10, "name": "OWNER_ADDRESS", "comment": null}, "MULTISIG_ADDRESS": {"type": "TEXT", "index": 11, "name": "MULTISIG_ADDRESS", "comment": null}, "SERVICE_ID": {"type": "NUMBER", "index": 12, "name": "SERVICE_ID", "comment": null}, "CONFIG_HASH": {"type": "TEXT", "index": 13, "name": "CONFIG_HASH", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 14, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}, "SERVICE_REGISTRATION_ID": {"type": "TEXT", "index": 16, "name": "SERVICE_REGISTRATION_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 19, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__service_registrations_OWNER_ADDRESS.60900e09bd"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS.a4658e804e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS.a4658e804e"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BLOCK_NUMBER.d8e5a4d173": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 15, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 19, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 20, "name": "TOKEN_SYMBOL", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 21, "name": "TOKEN_DECIMALS", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 23, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 24, "name": "AMOUNT_USD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IS_VERIFIED", "comment": null}, "_ID": {"type": "TEXT", "index": 26, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_BRIDGE_ACTIVITY_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_BRIDGE_ACTIVITY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BLOCK_NUMBER.d8e5a4d173"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__mooar_sales__INSERTED_TIMESTAMP__day__14.743279bc26": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "MOOAR_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__mooar_sales__INSERTED_TIMESTAMP__day__14.743279bc26"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_BLOCK_NUMBER__NUMBER__FLOAT.e369cc923d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "ELEMENT_SALES_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_BLOCK_NUMBER__NUMBER__FLOAT.e369cc923d"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.cc531991fa": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.cc531991fa"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.b4f6fa2d3d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_5_SALES_TOTAL_PRICE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.b4f6fa2d3d"}, "test.fsc_evm.not_null_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS.ec64401112": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "HOP_L2CANONICALTOKEN_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"READ_OUTPUT": {"type": "VARIANT", "index": 1, "name": "READ_OUTPUT", "comment": null}, "READ_ID": {"type": "TEXT", "index": 2, "name": "READ_ID", "comment": null}, "READ_RESULT": {"type": "TEXT", "index": 3, "name": "READ_RESULT", "comment": null}, "READ_ID_OBJECT": {"type": "ARRAY", "index": 4, "name": "READ_ID_OBJECT", "comment": null}, "FUNCTION_SIG": {"type": "TEXT", "index": 5, "name": "FUNCTION_SIG", "comment": null}, "FUNCTION_NAME": {"type": "TEXT", "index": 6, "name": "FUNCTION_NAME", "comment": null}, "FUNCTION_INPUT": {"type": "NUMBER", "index": 7, "name": "FUNCTION_INPUT", "comment": null}, "DATA": {"type": "TEXT", "index": 8, "name": "DATA", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 9, "name": "BLOCK_NUMBER", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "AMM_WRAPPER_ADDRESS": {"type": "TEXT", "index": 11, "name": "AMM_WRAPPER_ADDRESS", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS.ec64401112"}, "test.polygon_models.not_null_silver__tofunft_sales_NFT_ADDRESS.56fa9c4a2e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_NFT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_NFT_ADDRESS.56fa9c4a2e"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.dce86b4eb0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "TRANSACTIONS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.dce86b4eb0"}, "test.fsc_evm.not_null_silver__complete_token_prices_PROVIDER.d7e55cb9a3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_TOKEN_PRICES_PROVIDER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 3, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 5, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 6, "name": "DECIMALS", "comment": null}, "PRICE": {"type": "FLOAT", "index": 7, "name": "PRICE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN", "comment": null}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 9, "name": "BLOCKCHAIN_NAME", "comment": null}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 10, "name": "BLOCKCHAIN_ID", "comment": null}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 11, "name": "IS_IMPUTED", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 12, "name": "IS_DEPRECATED", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 13, "name": "IS_VERIFIED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 14, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 15, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_TOKEN_PRICES_ID": {"type": "TEXT", "index": 19, "name": "COMPLETE_TOKEN_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 20, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_token_prices_PROVIDER.d7e55cb9a3"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.10c3de9ee1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "TRACES_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.10c3de9ee1"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent__INSERTED_TIMESTAMP__hour__2.33483a04fc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "RECEIPTS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent__INSERTED_TIMESTAMP__hour__2.33483a04fc"}, "model.fsc_evm.silver_bridge__synapse_tokenbridgeandswap": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "SYNAPSE_TOKENBRIDGEANDSWAP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 10, "name": "EVENT_REMOVED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 11, "name": "TX_SUCCEEDED", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 12, "name": "BRIDGE_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 15, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 16, "name": "AMOUNT", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "NUMBER", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 18, "name": "TOKEN_ADDRESS", "comment": null}, "DEADLINE": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "DEADLINE", "comment": null}, "MIN_DY": {"type": "NUMBER", "index": 20, "name": "MIN_DY", "comment": null}, "TOKEN_INDEX_FROM": {"type": "NUMBER", "index": 21, "name": "TOKEN_INDEX_FROM", "comment": null}, "TOKEN_INDEX_TO": {"type": "NUMBER", "index": 22, "name": "TOKEN_INDEX_TO", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 23, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 24, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 25, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 26, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 27, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:30UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 25404416, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 178734, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__synapse_tokenbridgeandswap"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3f16df36a6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3f16df36a6"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_PLATFORM.2c7a290a2a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_PLATFORM", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 15, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 19, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 20, "name": "TOKEN_SYMBOL", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 21, "name": "TOKEN_DECIMALS", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 23, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 24, "name": "AMOUNT_USD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IS_VERIFIED", "comment": null}, "_ID": {"type": "TEXT", "index": 26, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_BRIDGE_ACTIVITY_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_BRIDGE_ACTIVITY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_PLATFORM.2c7a290a2a"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP.97bc7f13ae": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP.97bc7f13ae"}, "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_liquidations_7_5__90__lending.9c7fe9d27d": {"metadata": {"type": "BASE TABLE", "schema": "CURATED_RECENCY_DEFI_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_7_5", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PLATFORM": {"type": "TEXT", "index": 1, "name": "PLATFORM", "comment": null}, "LATEST_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "LATEST_TIMESTAMP", "comment": null}, "SYS_TS": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "SYS_TS", "comment": null}, "THRESHOLD_TS": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "THRESHOLD_TS", "comment": null}, "CURRENT_PERIOD_EVT": {"type": "NUMBER", "index": 5, "name": "CURRENT_PERIOD_EVT", "comment": null}, "ROLLING_AVG_EVT": {"type": "NUMBER", "index": 6, "name": "ROLLING_AVG_EVT", "comment": null}, "PERCENT_DELTA": {"type": "NUMBER", "index": 7, "name": "PERCENT_DELTA", "comment": null}, "TYPE": {"type": "TEXT", "index": 8, "name": "TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_liquidations_7_5__90__lending.9c7fe9d27d"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.f1237eed20": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_6_SALES_TOTAL_FEES_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.f1237eed20"}, "model.fsc_evm.defi__ez_dex_liquidity_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "DEFI", "name": "EZ_DEX_LIQUIDITY_POOL_ACTIONS", "database": "POLYGON", "comment": "## What\n\nThis table provides a comprehensive view of liquidity pool actions across major decentralized exchanges (DEXs) on EVM blockchains. Each row represents **one token** in a liquidity pool action. For example, if a user adds WETH and USDC to a pool, there will be 2 rows: one for WETH and one for USDC.\n\n## Key Use Cases\n\n- Analyzing liquidity provision patterns and LP behavior\n- Tracking token-specific liquidity flows\n- Monitoring large liquidity additions/removals by token\n- Calculating LP rewards and impermanent loss\n- Identifying popular tokens in liquidity pools\n\n## Important Relationships\n\n- **Join with ez_dex_swaps**: Correlate LP actions with trading activity\n- **Join with ez_prices_hourly**: Get historical token prices\n- **Self-join on ez_dex_liquidity_pool_actions_id**: Group tokens from the same action\n\n## Commonly-used Fields\n\n- `platform`: DEX protocol (uniswap-v3, uniswap-v2 etc.)\n- `event_name`: Type of action (Mint, Burn, AddLiquidity, RemoveLiquidity, Deposit, Withdraw etc.)\n- `liquidity_provider`: Address providing/removing liquidity\n- `pool_address`: Liquidity pool where action occurred\n- `token_address`: Individual token in the action\n- `amount`: Decimal-adjusted token amount\n- `amount_usd`: USD value of the token amount\n\n## Sample queries\n\n```sql\n-- Top tokens by liquidity additions (last 7 days)\nSELECT \n token_address,\n symbol,\n COUNT(DISTINCT tx_hash) AS add_count,\n SUM(amount_usd) AS total_usd_added\nFROM .defi.ez_dex_liquidity_pool_actions\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND event_name IN ('Mint', 'AddLiquidity', 'Deposit')\nGROUP BY 1, 2\nORDER BY total_usd_added DESC\nLIMIT 50;\n\n-- Largest single token liquidity actions\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n pool_name,\n liquidity_provider,\n symbol,\n amount,\n amount_usd\nFROM .defi.ez_dex_liquidity_pool_actions\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND amount_usd > 0\nORDER BY amount_usd DESC\nLIMIT 100;\n\n-- Daily LP activity by platform\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(DISTINCT liquidity_provider) AS unique_lps,\n COUNT(DISTINCT pool_address) AS active_pools,\n SUM(amount_usd) AS total_volume_usd\nFROM .defi.ez_dex_liquidity_pool_actions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1, 2\nORDER BY 1 DESC, 5 DESC;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```"}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": "The address that is providing or removing liquidity from the pool.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": "The address that initiated the liquidity pool action function.\n\nExample: '0x7a250d5630b4cf539739df2c5dacb4c659f2488d'"}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": "The recipient address of the LP tokens or withdrawn assets.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": "The liquidity pool contract address where the action occurred.\n\nExample: '0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8'"}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": "Human-readable name for the liquidity pool.\n\nExample: 'WETH/USDC'"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": "The contract address of the individual token in this liquidity pool action.\n\nExample: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'"}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": "The symbol of the individual token.\n\nExample: 'WETH'"}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": "The number of decimal places for the individual token.\n\nExample: 18"}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 14, "name": "AMOUNT_UNADJ", "comment": "Raw, non-decimal adjusted amount of the individual token in this action.\n\nExample: 1000500000000000000000"}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": "Decimal-adjusted amount of the individual token in this action.\n\nExample: 1000.5"}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": "USD value of the individual token amount at the time of the transaction.\n\nExample: 1500.75"}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 17, "name": "TOKEN_IS_VERIFIED", "comment": "Whether the individual token is verified in the Flipside token metadata.\n\nExample: true"}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": "The DEX protocol and version where the liquidity action occurred.\n\nExample: 'uniswap-v3'"}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": "The protocol used for the liquidity action. This is the clean name of the protocol without the version.\n\nExample: 'uniswap'"}, "PROTOCOL_VERSION": {"type": "TEXT", "index": 20, "name": "PROTOCOL_VERSION", "comment": "The version of the protocol used for the liquidity action.\n\nExample: 'v3'"}, "EZ_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 21, "name": "EZ_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:44UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 6228244480, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE, platform)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 86302477, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.defi__ez_dex_liquidity_pool_actions"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_PARENT_HASH__0_xX_0_9a_fA_F_.6b67f778c4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_PARENT_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_PARENT_HASH__0_xX_0_9a_fA_F_.6b67f778c4"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.6b889510cb": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "MOOAR_SALES_BUYER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.6b889510cb"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_PRICE_PER_SHARE__DECIMAL__FLOAT__NUMBER.d613cb9c05": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "POLYMARKET_FILLED_ORDERS_PRICE_PER_SHARE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_PRICE_PER_SHARE__DECIMAL__FLOAT__NUMBER.d613cb9c05"}, "model.fsc_evm.silver_dex__synthetix_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "SYNTHETIX_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 11, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 13, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 14, "name": "TOKEN_OUT", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 15, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 16, "name": "SYMBOL_OUT", "comment": null}, "TX_TO": {"type": "TEXT", "index": 17, "name": "TX_TO", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:06UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__synthetix_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_registrations_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.9e4a4fa9f9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_OLAS", "name": "SERVICE_REGISTRATIONS_MULTISIG_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_registrations_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.9e4a4fa9f9"}, "test.fsc_evm.not_null_silver_bridge__everclear_reads_INTENT_ID.86864cebca": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "EVERCLEAR_READS_INTENT_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MIN_EPOCH": {"type": "NUMBER", "index": 1, "name": "MIN_EPOCH", "comment": null}, "OUTPUT_ASSET": {"type": "TEXT", "index": 2, "name": "OUTPUT_ASSET", "comment": null}, "STATUS": {"type": "TEXT", "index": 3, "name": "STATUS", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 4, "name": "DESTINATION_CHAIN_ID", "comment": null}, "INTENT_CREATED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "INTENT_CREATED_TIMESTAMP", "comment": null}, "CURSOR_ID": {"type": "NUMBER", "index": 6, "name": "CURSOR_ID", "comment": null}, "INTENT_ID": {"type": "TEXT", "index": 7, "name": "INTENT_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__everclear_reads_INTENT_ID.86864cebca"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_TIMESTAMP.b982bd6907": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOLS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 4, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 6, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 10, "name": "POOL_ID", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 11, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 12, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 13, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 14, "name": "DECIMALS", "comment": null}, "FEE": {"type": "NUMBER", "index": 15, "name": "FEE", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 16, "name": "TICK_SPACING", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 17, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 18, "name": "TOKEN1", "comment": null}, "TOKEN2": {"type": "TEXT", "index": 19, "name": "TOKEN2", "comment": null}, "TOKEN3": {"type": "TEXT", "index": 20, "name": "TOKEN3", "comment": null}, "TOKEN4": {"type": "TEXT", "index": 21, "name": "TOKEN4", "comment": null}, "TOKEN5": {"type": "TEXT", "index": 22, "name": "TOKEN5", "comment": null}, "TOKEN6": {"type": "TEXT", "index": 23, "name": "TOKEN6", "comment": null}, "TOKEN7": {"type": "TEXT", "index": 24, "name": "TOKEN7", "comment": null}, "_ID": {"type": "TEXT", "index": 25, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOLS_ID": {"type": "TEXT", "index": 27, "name": "COMPLETE_DEX_LIQUIDITY_POOLS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_TIMESTAMP.b982bd6907"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_TX_HASH__0_xX_0_9a_fA_F_.eea93a120e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_TX_HASH__0_xX_0_9a_fA_F_.eea93a120e"}, "model.fsc_evm.test_gold__fact_traces_full": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "FACT_TRACES_FULL", "database": "POLYGON", "comment": "This is a view used to test all of the gold fact traces model.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": ""}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": ""}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": ""}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": ""}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": ""}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": ""}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": ""}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": ""}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": ""}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": ""}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": ""}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": ""}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": ""}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": ""}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": ""}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": ""}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": ""}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": ""}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID.071c327c9c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_EZ_NFT_TRANSFERS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID.071c327c9c"}, "test.fsc_evm.not_null_test_silver__receipts_recent_MODIFIED_TIMESTAMP.4d91715550": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "RECEIPTS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": null}, "RECEIPTS_JSON": {"type": "VARIANT", "index": 4, "name": "RECEIPTS_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "RECEIPTS_ID": {"type": "TEXT", "index": 6, "name": "RECEIPTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__receipts_recent_MODIFIED_TIMESTAMP.4d91715550"}, "test.polygon_models.not_null_silver__tofunft_sales_EVENT_TYPE.0b1cc9cc57": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_EVENT_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_EVENT_TYPE.0b1cc9cc57"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TX_FEE__NUMBER__FLOAT.ba599921e2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "ELEMENT_SALES_TX_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TX_FEE__NUMBER__FLOAT.ba599921e2"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_BLOCK_NUMBER__NUMBER__FLOAT.7feb70f478": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "DECODED_LOGS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_BLOCK_NUMBER__NUMBER__FLOAT.7feb70f478"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_l2canonicaltoken_CONTRACT_ADDRESS.b7a0e00f9b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_BRIDGE", "name": "HOP_L2CANONICALTOKEN_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_l2canonicaltoken_CONTRACT_ADDRESS.b7a0e00f9b"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS_USD.a60fa0a531": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_AMOUNTS_USD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS_USD.a60fa0a531"}, "model.fsc_evm.silver_dex__trader_joe_v2_1_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "TRADER_JOE_V2_1_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "ID": {"type": "NUMBER", "index": 12, "name": "ID", "comment": null}, "AMOUNT0IN": {"type": "NUMBER", "index": 13, "name": "AMOUNT0IN", "comment": null}, "AMOUNT1IN": {"type": "NUMBER", "index": 14, "name": "AMOUNT1IN", "comment": null}, "AMOUNT0OUT": {"type": "NUMBER", "index": 15, "name": "AMOUNT0OUT", "comment": null}, "AMOUNT1OUT": {"type": "NUMBER", "index": 16, "name": "AMOUNT1OUT", "comment": null}, "VOLATILITY_ACCUMULATED": {"type": "NUMBER", "index": 17, "name": "VOLATILITY_ACCUMULATED", "comment": null}, "FEE0": {"type": "NUMBER", "index": 18, "name": "FEE0", "comment": null}, "FEE1": {"type": "NUMBER", "index": 19, "name": "FEE1", "comment": null}, "PROTOCOL_FEE0": {"type": "NUMBER", "index": 20, "name": "PROTOCOL_FEE0", "comment": null}, "PROTOCOL_FEE1": {"type": "NUMBER", "index": 21, "name": "PROTOCOL_FEE1", "comment": null}, "TOKENX": {"type": "TEXT", "index": 22, "name": "TOKENX", "comment": null}, "TOKENY": {"type": "TEXT", "index": 23, "name": "TOKENY", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 24, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 25, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 26, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 27, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 28, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 29, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 30, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 31, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 32, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__trader_joe_v2_1_swaps"}, "model.polygon_models.silver__polymarket_filled_orders": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "POLYMARKET_FILLED_ORDERS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": ""}, "QUESTION": {"type": "TEXT", "index": 10, "name": "QUESTION", "comment": ""}, "MARKET_SLUG": {"type": "TEXT", "index": 11, "name": "MARKET_SLUG", "comment": ""}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "END_DATE_ISO", "comment": ""}, "OUTCOME": {"type": "TEXT", "index": 13, "name": "OUTCOME", "comment": ""}, "ORDER_HASH": {"type": "TEXT", "index": 14, "name": "ORDER_HASH", "comment": ""}, "MAKER": {"type": "TEXT", "index": 15, "name": "MAKER", "comment": ""}, "TAKER": {"type": "TEXT", "index": 16, "name": "TAKER", "comment": ""}, "CONDITION_ID": {"type": "TEXT", "index": 17, "name": "CONDITION_ID", "comment": ""}, "QUESTION_ID": {"type": "TEXT", "index": 18, "name": "QUESTION_ID", "comment": ""}, "ASSET_ID": {"type": "TEXT", "index": 19, "name": "ASSET_ID", "comment": ""}, "MAKER_ASSET_ID": {"type": "TEXT", "index": 20, "name": "MAKER_ASSET_ID", "comment": ""}, "TAKER_ASSET_ID": {"type": "TEXT", "index": 21, "name": "TAKER_ASSET_ID", "comment": ""}, "AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "AMOUNT_USD", "comment": ""}, "SHARES": {"type": "FLOAT", "index": 23, "name": "SHARES", "comment": ""}, "PRICE_PER_SHARE": {"type": "FLOAT", "index": 24, "name": "PRICE_PER_SHARE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": ""}, "POLYMARKET_FILLED_ORDERS_ID": {"type": "TEXT", "index": 27, "name": "POLYMARKET_FILLED_ORDERS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:33UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 25941752832, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 140669772, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.bbb38fefa1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_1_SALES_PLATFORM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.bbb38fefa1"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TOKEN_OUT__0_xX_0_9a_fA_F_.ae14302936": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_TOKEN_OUT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TOKEN_OUT__0_xX_0_9a_fA_F_.ae14302936"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_BLOCK_NUMBER__NUMBER__FLOAT.9ab378f68e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_6_SALES_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_BLOCK_NUMBER__NUMBER__FLOAT.9ab378f68e"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS.db8de48e63": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "POLYMARKET_FILLED_ORDERS_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "QUESTION": {"type": "TEXT", "index": 10, "name": "QUESTION", "comment": null}, "MARKET_SLUG": {"type": "TEXT", "index": 11, "name": "MARKET_SLUG", "comment": null}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "END_DATE_ISO", "comment": null}, "OUTCOME": {"type": "TEXT", "index": 13, "name": "OUTCOME", "comment": null}, "ORDER_HASH": {"type": "TEXT", "index": 14, "name": "ORDER_HASH", "comment": null}, "MAKER": {"type": "TEXT", "index": 15, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 16, "name": "TAKER", "comment": null}, "CONDITION_ID": {"type": "TEXT", "index": 17, "name": "CONDITION_ID", "comment": null}, "QUESTION_ID": {"type": "TEXT", "index": 18, "name": "QUESTION_ID", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 19, "name": "ASSET_ID", "comment": null}, "MAKER_ASSET_ID": {"type": "TEXT", "index": 20, "name": "MAKER_ASSET_ID", "comment": null}, "TAKER_ASSET_ID": {"type": "TEXT", "index": 21, "name": "TAKER_ASSET_ID", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "AMOUNT_USD", "comment": null}, "SHARES": {"type": "FLOAT", "index": 23, "name": "SHARES", "comment": null}, "PRICE_PER_SHARE": {"type": "FLOAT", "index": 24, "name": "PRICE_PER_SHARE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "POLYMARKET_FILLED_ORDERS_ID": {"type": "TEXT", "index": 27, "name": "POLYMARKET_FILLED_ORDERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS.db8de48e63"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP.9bff42bf90": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 6, "name": "TRACE_ADDRESS", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "TO_ADDRESS", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": null}, "AMOUNT_PRECISE_RAW": {"type": "TEXT", "index": 11, "name": "AMOUNT_PRECISE_RAW", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 12, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "EZ_NATIVE_TRANSFERS_ID": {"type": "TEXT", "index": 17, "name": "EZ_NATIVE_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP.9bff42bf90"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_TX_POSITION__NUMBER__FLOAT.400e138c88": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_TX_POSITION__NUMBER__FLOAT.400e138c88"}, "model.fsc_evm.observability__blocks": {"metadata": {"type": "BASE TABLE", "schema": "OBSERVABILITY", "name": "BLOCKS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TEST_NAME": {"type": "TEXT", "index": 1, "name": "TEST_NAME", "comment": ""}, "MIN_BLOCK": {"type": "NUMBER", "index": 2, "name": "MIN_BLOCK", "comment": ""}, "MAX_BLOCK": {"type": "NUMBER", "index": 3, "name": "MAX_BLOCK", "comment": ""}, "MIN_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "MIN_BLOCK_TIMESTAMP", "comment": ""}, "MAX_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "MAX_BLOCK_TIMESTAMP", "comment": ""}, "BLOCKS_TESTED": {"type": "NUMBER", "index": 6, "name": "BLOCKS_TESTED", "comment": ""}, "BLOCKS_IMPACTED_COUNT": {"type": "NUMBER", "index": 7, "name": "BLOCKS_IMPACTED_COUNT", "comment": ""}, "MISSING_LIST": {"type": "ARRAY", "index": 8, "name": "MISSING_LIST", "comment": ""}, "TEST_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "TEST_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 187904, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5215, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.observability__blocks"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_INSERTED_TIMESTAMP__hour__2.3cb43deaa6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_BLOCKS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_INSERTED_TIMESTAMP__hour__2.3cb43deaa6"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_INSERTED_TIMESTAMP.8c1b12d962": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_INSERTED_TIMESTAMP.8c1b12d962"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_full_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.3cf23748a5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "CREATED_CONTRACTS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_full_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.3cf23748a5"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_FEE_RAW.87b23c30ad": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_PLATFORM_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_FEE_RAW.87b23c30ad"}, "test.polygon_models.not_null_silver__complete_nft_sales_TX_FEE.3b60a50418": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_TX_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_TX_FEE.3b60a50418"}, "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_PROVIDER.b0c689d31b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_PROVIDER_ASSET_METADATA_PROVIDER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": null}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 5, "name": "PLATFORM", "comment": null}, "PLATFORM_ID": {"type": "TEXT", "index": 6, "name": "PLATFORM_ID", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_PROVIDER_ASSET_METADATA_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_PROVIDER_ASSET_METADATA_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_PROVIDER.b0c689d31b"}, "seed.fsc_evm.silver_stablecoins__stablecoins_mapping_seed": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_STABLECOINS", "name": "STABLECOINS_MAPPING_SEED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 2, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1536, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver_stablecoins__stablecoins_mapping_seed"}, "model.fsc_evm.silver_lending__euler_repayments": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "EULER_REPAYMENTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 10, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 11, "name": "AMOUNT_UNADJ", "comment": null}, "PAYER": {"type": "TEXT", "index": 12, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 13, "name": "BORROWER", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 14, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 15, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 16, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 19, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:48UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__euler_repayments"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_GAS_LIMIT.5c5592b6ac": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_GAS_LIMIT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_GAS_LIMIT.5c5592b6ac"}, "model.fsc_evm.silver_stats__core_metrics_hourly": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_STATS", "name": "CORE_METRICS_HOURLY", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_TIMESTAMP_HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP_HOUR", "comment": ""}, "BLOCK_NUMBER_MIN": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER_MIN", "comment": ""}, "BLOCK_NUMBER_MAX": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER_MAX", "comment": ""}, "BLOCK_COUNT": {"type": "NUMBER", "index": 4, "name": "BLOCK_COUNT", "comment": ""}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "TRANSACTION_COUNT", "comment": ""}, "TRANSACTION_COUNT_SUCCESS": {"type": "NUMBER", "index": 6, "name": "TRANSACTION_COUNT_SUCCESS", "comment": ""}, "TRANSACTION_COUNT_FAILED": {"type": "NUMBER", "index": 7, "name": "TRANSACTION_COUNT_FAILED", "comment": ""}, "UNIQUE_FROM_COUNT": {"type": "NUMBER", "index": 8, "name": "UNIQUE_FROM_COUNT", "comment": ""}, "UNIQUE_TO_COUNT": {"type": "NUMBER", "index": 9, "name": "UNIQUE_TO_COUNT", "comment": ""}, "TOTAL_FEES": {"type": "FLOAT", "index": 10, "name": "TOTAL_FEES", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "CORE_METRICS_HOURLY_ID": {"type": "TEXT", "index": 12, "name": "CORE_METRICS_HOURLY_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:36UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 3315712, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp_hour::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 47022, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.3d58ac3aa0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.3d58ac3aa0"}, "model.fsc_evm.silver_dex__curve_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "CURVE_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "TX_TO": {"type": "TEXT", "index": 6, "name": "TX_TO", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "POOL_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 12, "name": "POOL_NAME", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "SOLD_ID": {"type": "NUMBER", "index": 14, "name": "SOLD_ID", "comment": null}, "TOKENS_SOLD": {"type": "NUMBER", "index": 15, "name": "TOKENS_SOLD", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 16, "name": "TOKEN_IN", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 17, "name": "SYMBOL_IN", "comment": null}, "BOUGHT_ID": {"type": "NUMBER", "index": 18, "name": "BOUGHT_ID", "comment": null}, "TOKENS_BOUGHT": {"type": "NUMBER", "index": 19, "name": "TOKENS_BOUGHT", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 20, "name": "TOKEN_OUT", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 21, "name": "SYMBOL_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 24, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 25, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 26, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 27, "name": "TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:36UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 653263360, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5473978, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__curve_swaps"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TOKEN_ADDRESS.87dd541bc0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TOKEN_ADDRESS.87dd541bc0"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_MODIFIED_TIMESTAMP.c3e30f98e5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_MODIFIED_TIMESTAMP.c3e30f98e5"}, "model.fsc_evm.test_silver__user_verified_abis_full": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "USER_VERIFIED_ABIS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": ""}, "ABI": {"type": "TEXT", "index": 2, "name": "ABI", "comment": ""}, "DISCORD_USERNAME": {"type": "TEXT", "index": 3, "name": "DISCORD_USERNAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "ABI_HASH": {"type": "TEXT", "index": 5, "name": "ABI_HASH", "comment": ""}, "ID": {"type": "TEXT", "index": 6, "name": "ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__user_verified_abis_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP.7dd9cf25d3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP.7dd9cf25d3"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TO_ADDRESS.ce1e8d5dfe": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TO_ADDRESS.ce1e8d5dfe"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_BLOCK_NUMBER__NUMBER__FLOAT.16b1475a6c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_1_SALES_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_BLOCK_NUMBER__NUMBER__FLOAT.16b1475a6c"}, "test.fsc_evm.not_null_test_silver__receipts_full_BLOCK_NUMBER.b8318adb18": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "RECEIPTS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": null}, "RECEIPTS_JSON": {"type": "VARIANT", "index": 4, "name": "RECEIPTS_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "RECEIPTS_ID": {"type": "TEXT", "index": 6, "name": "RECEIPTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__receipts_full_BLOCK_NUMBER.b8318adb18"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3aed81ccad": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3aed81ccad"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__stargate_createpool_POOL_ADDRESS.9e0053c2c5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_BRIDGE", "name": "STARGATE_CREATEPOOL_POOL_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"POOL_ADDRESS": {"type": "TEXT", "index": 1, "name": "POOL_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__stargate_createpool_POOL_ADDRESS.9e0053c2c5"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e5a6626a52": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_4_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e5a6626a52"}, "model.fsc_evm.silver_dex__velodrome_v1_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "VELODROME_V1_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 10, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 11, "name": "TOKEN1", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 12, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 15, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 16, "name": "AMOUNT1_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 19, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-21 18:46UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__velodrome_v1_pool_actions"}, "model.fsc_evm.test_nft__ez_nft_transfers_recent": {"metadata": {"type": "VIEW", "schema": "TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT", "database": "POLYGON", "comment": "This is a view used to test the recent `ez_nft_transfers` data.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": ""}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": ""}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": ""}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": ""}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": ""}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": ""}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": ""}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": ""}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": ""}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "model.fsc_evm.test_silver__blocks_full": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "BLOCKS_FULL", "database": "POLYGON", "comment": "This is a view used to test all of the silver blocks model.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BLOCKS_ID": {"type": "TEXT", "index": 5, "name": "BLOCKS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 8, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__blocks_full"}, "test.polygon_models.not_null_silver_olas__getservice_reads_AGENT_IDS.16c637c223": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "GETSERVICE_READS_AGENT_IDS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"READ_OUTPUT": {"type": "VARIANT", "index": 1, "name": "READ_OUTPUT", "comment": null}, "READ_ID": {"type": "TEXT", "index": 2, "name": "READ_ID", "comment": null}, "READ_RESULT": {"type": "TEXT", "index": 3, "name": "READ_RESULT", "comment": null}, "READ_ID_OBJECT": {"type": "ARRAY", "index": 4, "name": "READ_ID_OBJECT", "comment": null}, "SEGMENTED_READ": {"type": "ARRAY", "index": 5, "name": "SEGMENTED_READ", "comment": null}, "FUNCTION_SIG": {"type": "TEXT", "index": 6, "name": "FUNCTION_SIG", "comment": null}, "FUNCTION_NAME": {"type": "TEXT", "index": 7, "name": "FUNCTION_NAME", "comment": null}, "FUNCTION_INPUT": {"type": "NUMBER", "index": 8, "name": "FUNCTION_INPUT", "comment": null}, "DATA": {"type": "TEXT", "index": 9, "name": "DATA", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 11, "name": "BLOCK_NUMBER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "READS_ARRAY": {"type": "ARRAY", "index": 13, "name": "READS_ARRAY", "comment": null}, "AGENT_IDS": {"type": "ARRAY", "index": 14, "name": "AGENT_IDS", "comment": null}, "GETSERVICE_READS_ID": {"type": "TEXT", "index": 15, "name": "GETSERVICE_READS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 18, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__getservice_reads_AGENT_IDS.16c637c223"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__bytecode_abis_full_CONTRACT_ADDRESS__ABI_HASH.111a1fed7f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "BYTECODE_ABIS_FULL_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "ABI_HASH": {"type": "TEXT", "index": 2, "name": "ABI_HASH", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 09:47UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__bytecode_abis_full_CONTRACT_ADDRESS__ABI_HASH.111a1fed7f"}, "test.fsc_evm.not_null_test_silver__traces_full__INSERTED_TIMESTAMP.c33692687a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRACES_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 2, "name": "TX_POSITION", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 3, "name": "TRACE_ADDRESS", "comment": null}, "PARENT_TRACE_ADDRESS": {"type": "TEXT", "index": 4, "name": "PARENT_TRACE_ADDRESS", "comment": null}, "TRACE_ADDRESS_ARRAY": {"type": "ARRAY", "index": 5, "name": "TRACE_ADDRESS_ARRAY", "comment": null}, "TRACE_JSON": {"type": "OBJECT", "index": 6, "name": "TRACE_JSON", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 7, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRACES_ID": {"type": "TEXT", "index": 9, "name": "TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:46UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__traces_full__INSERTED_TIMESTAMP.c33692687a"}, "model.fsc_evm.silver_dex__dodo_v2_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "DODO_V2_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "BASE_TOKEN": {"type": "TEXT", "index": 7, "name": "BASE_TOKEN", "comment": null}, "QUOTE_TOKEN": {"type": "TEXT", "index": 8, "name": "QUOTE_TOKEN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 9, "name": "CREATOR", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "POOL_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 11, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 12, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 13, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 14, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 15, "name": "_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:31UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2275840, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 9547, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__dodo_v2_pools"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_ADDRESS_NAME__STRING__VARCHAR.b440cff40f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "LABELS_ADDRESS_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_ADDRESS_NAME__STRING__VARCHAR.b440cff40f"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pool_actions_POOL_ADDRESS__0_xX_0_9a_fA_F_.77b6c92f58": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_POOL_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pool_actions_POOL_ADDRESS__0_xX_0_9a_fA_F_.77b6c92f58"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID.e0d083a055": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_FULL_EZ_BALANCES_ERC20_DAILY_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 7, "name": "BALANCE_HEX", "comment": null}, "BALANCE_RAW": {"type": "NUMBER", "index": 8, "name": "BALANCE_RAW", "comment": null}, "BALANCE_PRECISE": {"type": "TEXT", "index": 9, "name": "BALANCE_PRECISE", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 10, "name": "BALANCE", "comment": null}, "BALANCE_USD": {"type": "FLOAT", "index": 11, "name": "BALANCE_USD", "comment": null}, "EZ_BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 12, "name": "EZ_BALANCES_ERC20_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID.e0d083a055"}, "model.fsc_evm.bronze__token_reads_fr_v2": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "TOKEN_READS_FR_V2", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__token_reads_fr_v2"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.b3d57d8632": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_4_SALES_PLATFORM_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.b3d57d8632"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_EVENT_TYPE.754547c445": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_EVENT_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_EVENT_TYPE.754547c445"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP.3015447008": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP.3015447008"}, "model.fsc_evm.silver_lending__aave_withdraws": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "AAVE_WITHDRAWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 9, "name": "DEPOSITOR", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT_UNADJ", "comment": null}, "LENDING_POOL_CONTRACT": {"type": "TEXT", "index": 13, "name": "LENDING_POOL_CONTRACT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 14, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 15, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 16, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 19, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1243578880, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 12474529, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__aave_withdraws"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_BLOCK_NUMBER.d91075d3e5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_BLOCK_NUMBER.d91075d3e5"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.640b8be095": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "TRACES_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.640b8be095"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID.f7783664d9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "BALANCES_ERC20_DAILY_BALANCES_ERC20_DAILY_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 1, "name": "BALANCES_ERC20_DAILY_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID.f7783664d9"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver__balances_erc20_daily__INSERTED_TIMESTAMP__day__2.2e99af10ca": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "BALANCES_ERC20_DAILY", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-12 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver__balances_erc20_daily__INSERTED_TIMESTAMP__day__2.2e99af10ca"}, "model.fsc_evm.silver_dex__pancakeswap_v3_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "PANCAKESWAP_V3_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "TOKEN0_ADDRESS": {"type": "TEXT", "index": 6, "name": "TOKEN0_ADDRESS", "comment": null}, "TOKEN1_ADDRESS": {"type": "TEXT", "index": 7, "name": "TOKEN1_ADDRESS", "comment": null}, "FEE": {"type": "NUMBER", "index": 8, "name": "FEE", "comment": null}, "FEE_PERCENT": {"type": "FLOAT", "index": 9, "name": "FEE_PERCENT", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 10, "name": "TICK_SPACING", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 11, "name": "POOL_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 12, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 13, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 14, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 15, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:06UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__pancakeswap_v3_pools"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_TOKENID.de88cac8c5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_TOKENID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_TOKENID.de88cac8c5"}, "model.fsc_evm.silver_dex__dodo_v1_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "DODO_V1_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 10, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 11, "name": "TOKEN1", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 12, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 15, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 16, "name": "AMOUNT1_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 19, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-08 14:36UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2850304, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 14350, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__dodo_v1_pool_actions"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_TX_HASH.e069256b19": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 6, "name": "TRACE_ADDRESS", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "TO_ADDRESS", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": null}, "AMOUNT_PRECISE_RAW": {"type": "TEXT", "index": 11, "name": "AMOUNT_PRECISE_RAW", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 12, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "EZ_NATIVE_TRANSFERS_ID": {"type": "TEXT", "index": 17, "name": "EZ_NATIVE_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_TX_HASH.e069256b19"}, "test.polygon_models.not_null_silver__element_sales_NFT_LOG_ID.a2214c6c73": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_NFT_LOG_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_NFT_LOG_ID.a2214c6c73"}, "model.fsc_evm.silver_dex__woofi_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "WOOFI_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 10, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 11, "name": "TOKEN_OUT", "comment": null}, "TX_TO": {"type": "TEXT", "index": 12, "name": "TX_TO", "comment": null}, "SWAP_TYPE": {"type": "NUMBER", "index": 13, "name": "SWAP_TYPE", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "SENDER": {"type": "TEXT", "index": 16, "name": "SENDER", "comment": null}, "REBATE_TO": {"type": "TEXT", "index": 17, "name": "REBATE_TO", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:32UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 478654464, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 3589888, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__woofi_swaps"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_EVENT_INDEX__NUMBER__FLOAT.4b5e283568": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_EVENT_INDEX__NUMBER__FLOAT.4b5e283568"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__mooar_sales_nft_log_id.368a737a67": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "MOOAR_SALES_NFT_LOG_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"NFT_LOG_ID": {"type": "TEXT", "index": 1, "name": "NFT_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__mooar_sales_nft_log_id.368a737a67"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.7ba4b12cc3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_1_SALES_NFT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.7ba4b12cc3"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TOKEN_SYMBOL.442e650dd5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_TOKEN_SYMBOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TOKEN_SYMBOL.442e650dd5"}, "model.fsc_evm.silver_bridge__layerzero_v2_token_reads": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "LAYERZERO_V2_TOKEN_READS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RESPONSE": {"type": "VARIANT", "index": 1, "name": "RESPONSE", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 2, "name": "CONTRACT_ADDRESS", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 3, "name": "TOKEN_ADDRESS", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:29UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 33280, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 171, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__layerzero_v2_token_reads"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_VERSION.eade855a3f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_VERSION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_VERSION.eade855a3f"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP.73cd55cf8f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP.73cd55cf8f"}, "test.fsc_evm.curated_recency_defi_silver_dex__complete_dex_liquidity_pool_actions_dex_lp_actions.362cf81572": {"metadata": {"type": "BASE TABLE", "schema": "CURATED_RECENCY_DEFI_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_DEX_LP_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PLATFORM": {"type": "TEXT", "index": 1, "name": "PLATFORM", "comment": null}, "LATEST_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "LATEST_TIMESTAMP", "comment": null}, "SYS_TS": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "SYS_TS", "comment": null}, "THRESHOLD_TS": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "THRESHOLD_TS", "comment": null}, "CURRENT_PERIOD_EVT": {"type": "NUMBER", "index": 5, "name": "CURRENT_PERIOD_EVT", "comment": null}, "ROLLING_AVG_EVT": {"type": "NUMBER", "index": 6, "name": "ROLLING_AVG_EVT", "comment": null}, "PERCENT_DELTA": {"type": "NUMBER", "index": 7, "name": "PERCENT_DELTA", "comment": null}, "TYPE": {"type": "TEXT", "index": 8, "name": "TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.curated_recency_defi_silver_dex__complete_dex_liquidity_pool_actions_dex_lp_actions.362cf81572"}, "test.fsc_evm.not_null_admin__dim_variables_DIM_VARIABLES_ID.f1639e77e6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ADMIN", "name": "DIM_VARIABLES_DIM_VARIABLES_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PACKAGE": {"type": "TEXT", "index": 1, "name": "PACKAGE", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 2, "name": "CATEGORY", "comment": null}, "KEY": {"type": "TEXT", "index": 3, "name": "KEY", "comment": null}, "DEFAULT_VALUE": {"type": "TEXT", "index": 4, "name": "DEFAULT_VALUE", "comment": null}, "DEFAULT_TYPE": {"type": "TEXT", "index": 5, "name": "DEFAULT_TYPE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DIM_VARIABLES_ID": {"type": "TEXT", "index": 7, "name": "DIM_VARIABLES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_admin__dim_variables_DIM_VARIABLES_ID.f1639e77e6"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID.dbb70e1221": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_EZ_TOKEN_TRANSFERS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID.dbb70e1221"}, "test.fsc_evm.fsc_utils_tx_block_count_test_gold__fact_event_logs_recent_TX_HASH.4d9f53b085": {"metadata": {"type": "BASE TABLE", "schema": "FSC_UTILS_TX_BLOCK_COUNT_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "NUM_BLOCKS": {"type": "NUMBER", "index": 2, "name": "NUM_BLOCKS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.fsc_utils_tx_block_count_test_gold__fact_event_logs_recent_TX_HASH.4d9f53b085"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_ORIGIN_FROM_ADDRESS.3db9f8fabd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_ORIGIN_FROM_ADDRESS.3db9f8fabd"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE_PRECISE.59f993bcda": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_VALUE_PRECISE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE_PRECISE.59f993bcda"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COLLATERAL_TOKEN.3c78777798": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_COLLATERAL_TOKEN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COLLATERAL_TOKEN.3c78777798"}, "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_flashloans_7_5__60__lending.1d85b045e9": {"metadata": {"type": "BASE TABLE", "schema": "CURATED_RECENCY_DEFI_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_7_5", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PLATFORM": {"type": "TEXT", "index": 1, "name": "PLATFORM", "comment": null}, "LATEST_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "LATEST_TIMESTAMP", "comment": null}, "SYS_TS": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "SYS_TS", "comment": null}, "THRESHOLD_TS": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "THRESHOLD_TS", "comment": null}, "CURRENT_PERIOD_EVT": {"type": "NUMBER", "index": 5, "name": "CURRENT_PERIOD_EVT", "comment": null}, "ROLLING_AVG_EVT": {"type": "NUMBER", "index": 6, "name": "ROLLING_AVG_EVT", "comment": null}, "PERCENT_DELTA": {"type": "NUMBER", "index": 7, "name": "PERCENT_DELTA", "comment": null}, "TYPE": {"type": "TEXT", "index": 8, "name": "TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_flashloans_7_5__60__lending.1d85b045e9"}, "test.polygon_models.not_null_silver__tofunft_sales_BLOCK_NUMBER.afa8a4e8f3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_BLOCK_NUMBER.afa8a4e8f3"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BLOCK_NUMBER.15a69776e9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BLOCK_NUMBER.15a69776e9"}, "model.fsc_evm.bronze__contract_abis_fr": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "CONTRACT_ABIS_FR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PARTITION_KEY": {"type": "NUMBER", "index": 1, "name": "PARTITION_KEY", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 2, "name": "CONTRACT_ADDRESS", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 3, "name": "VALUE", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 6, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__contract_abis_fr"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_EVENT_NAME.5630b24be5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_EVENT_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_EVENT_NAME.5630b24be5"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP__hour__3.2ad48fb9bf": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP__hour__3.2ad48fb9bf"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS__0_xX_0_9a_fA_F_.531aeb2798": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOLS_POOL_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS__0_xX_0_9a_fA_F_.531aeb2798"}, "model.fsc_evm.silver__user_verified_abis": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "USER_VERIFIED_ABIS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "ABI": {"type": "TEXT", "index": 2, "name": "ABI", "comment": null}, "DISCORD_USERNAME": {"type": "TEXT", "index": 3, "name": "DISCORD_USERNAME", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ABI_HASH": {"type": "TEXT", "index": 5, "name": "ABI_HASH", "comment": null}, "ID": {"type": "TEXT", "index": 6, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 08:18UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 88576, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 25, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__user_verified_abis"}, "test.polygon_models.not_null_silver__complete_nft_sales_EVENT_INDEX.f2adcca32f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_EVENT_INDEX.f2adcca32f"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TOKEN_ID.74258e963a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_TOKEN_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TOKEN_ID.74258e963a"}, "model.fsc_evm.silver_dex__bitflux_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "BITFLUX_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "DEPLOYER_ADDRESS": {"type": "TEXT", "index": 4, "name": "DEPLOYER_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 6, "name": "POOL_ADDRESS", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 7, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 8, "name": "TOKEN1", "comment": null}, "TOKEN2": {"type": "TEXT", "index": 9, "name": "TOKEN2", "comment": null}, "TOKEN3": {"type": "TEXT", "index": 10, "name": "TOKEN3", "comment": null}, "DECIMAL0": {"type": "NUMBER", "index": 11, "name": "DECIMAL0", "comment": null}, "DECIMAL1": {"type": "NUMBER", "index": 12, "name": "DECIMAL1", "comment": null}, "DECIMAL2": {"type": "NUMBER", "index": 13, "name": "DECIMAL2", "comment": null}, "DECIMAL3": {"type": "NUMBER", "index": 14, "name": "DECIMAL3", "comment": null}, "LP_NAME": {"type": "TEXT", "index": 15, "name": "LP_NAME", "comment": null}, "LP_SYMBOL": {"type": "TEXT", "index": 16, "name": "LP_SYMBOL", "comment": null}, "SWAP_FEE": {"type": "FLOAT", "index": 17, "name": "SWAP_FEE", "comment": null}, "ADMIN_FEE": {"type": "FLOAT", "index": 18, "name": "ADMIN_FEE", "comment": null}, "LP_TOKEN": {"type": "TEXT", "index": 19, "name": "LP_TOKEN", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 24, "name": "_CALL_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:03UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__bitflux_pools"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_TO_ADDRESS.a5feb6a9bf": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_TO_ADDRESS.a5feb6a9bf"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_ammwrapper_CONTRACT_ADDRESS.aea7fc3d3b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_BRIDGE", "name": "HOP_AMMWRAPPER_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_ammwrapper_CONTRACT_ADDRESS.aea7fc3d3b"}, "test.polygon_models.not_null_silver__element_sales_BLOCK_TIMESTAMP.feb749030b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_BLOCK_TIMESTAMP.feb749030b"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_FROM_ADDRESS.2c69eb9d6a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_FROM_ADDRESS.2c69eb9d6a"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TX_FEE__NUMBER__FLOAT.dfe58ed919": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MOOAR_SALES_TX_FEE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TX_FEE__NUMBER__FLOAT.dfe58ed919"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PAYER.5181266d52": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_PAYER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PAYER.5181266d52"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_NAME.9134b92f06": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_PLATFORM_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_NAME.9134b92f06"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP.bd570cee7b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP.bd570cee7b"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT__NUMBER__FLOAT.4cd5081b32": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER_STATS", "name": "CORE_METRICS_HOURLY_UNIQUE_TO_COUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT__NUMBER__FLOAT.4cd5081b32"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PROTOCOL.a5f672795f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_PROTOCOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 11, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 12, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "FLASHLOAN_AMOUNT": {"type": "FLOAT", "index": 16, "name": "FLASHLOAN_AMOUNT", "comment": null}, "FLASHLOAN_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "FLASHLOAN_AMOUNT_USD", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "NUMBER", "index": 18, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT": {"type": "FLOAT", "index": 19, "name": "PREMIUM_AMOUNT", "comment": null}, "PREMIUM_AMOUNT_USD": {"type": "FLOAT", "index": 20, "name": "PREMIUM_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 22, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 23, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 24, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_FLASHLOANS_ID": {"type": "TEXT", "index": 26, "name": "COMPLETE_LENDING_FLASHLOANS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 29, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PROTOCOL.a5f672795f"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_PROTOCOL.a63c90c2a0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOLS_PROTOCOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 4, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 6, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 10, "name": "POOL_ID", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 11, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 12, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 13, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 14, "name": "DECIMALS", "comment": null}, "FEE": {"type": "NUMBER", "index": 15, "name": "FEE", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 16, "name": "TICK_SPACING", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 17, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 18, "name": "TOKEN1", "comment": null}, "TOKEN2": {"type": "TEXT", "index": 19, "name": "TOKEN2", "comment": null}, "TOKEN3": {"type": "TEXT", "index": 20, "name": "TOKEN3", "comment": null}, "TOKEN4": {"type": "TEXT", "index": 21, "name": "TOKEN4", "comment": null}, "TOKEN5": {"type": "TEXT", "index": 22, "name": "TOKEN5", "comment": null}, "TOKEN6": {"type": "TEXT", "index": 23, "name": "TOKEN6", "comment": null}, "TOKEN7": {"type": "TEXT", "index": 24, "name": "TOKEN7", "comment": null}, "_ID": {"type": "TEXT", "index": 25, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOLS_ID": {"type": "TEXT", "index": 27, "name": "COMPLETE_DEX_LIQUIDITY_POOLS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_PROTOCOL.a63c90c2a0"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_SUCCEEDED.8ed2d84f45": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_TX_SUCCEEDED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_SUCCEEDED.8ed2d84f45"}, "model.fsc_evm.silver_lending__complete_lending_borrows": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": ""}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": ""}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": ""}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": ""}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": ""}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": ""}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": ""}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": ""}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1048027136, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE, platform)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4646163, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.polygon_models.not_null_silver__mooar_sales_PLATFORM_ADDRESS.d745fc012b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_PLATFORM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_PLATFORM_ADDRESS.d745fc012b"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE.e81f20de7e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE.e81f20de7e"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.7dfd5b1d49": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.7dfd5b1d49"}, "test.fsc_evm.accepted_values_recent_row_observability__traces_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.a009465ad0": {"metadata": {"type": "BASE TABLE", "schema": "ACCEPTED_VALUES_RECENT_ROW_OBSERVABILITY", "name": "TRACES_BLOCKS_IMPACTED_COUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCKS_IMPACTED_COUNT": {"type": "NUMBER", "index": 1, "name": "BLOCKS_IMPACTED_COUNT", "comment": null}, "MISSING_LIST": {"type": "ARRAY", "index": 2, "name": "MISSING_LIST", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.accepted_values_recent_row_observability__traces_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.a009465ad0"}, "test.polygon_models.not_null_silver__seaport_1_1_sales__INSERTED_TIMESTAMP.39029cba5f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales__INSERTED_TIMESTAMP.39029cba5f"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.e11ba68261": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:33UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.e11ba68261"}, "model.fsc_evm.test_silver__contracts_recent": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "CONTRACTS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": ""}, "TOKEN_NAME": {"type": "TEXT", "index": 2, "name": "TOKEN_NAME", "comment": ""}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 3, "name": "TOKEN_DECIMALS", "comment": ""}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 4, "name": "TOKEN_SYMBOL", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "CONTRACTS_ID": {"type": "TEXT", "index": 6, "name": "CONTRACTS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__contracts_recent"}, "test.fsc_evm.not_null_test_silver__receipts_full_MODIFIED_TIMESTAMP.23b69b4875": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "RECEIPTS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": null}, "RECEIPTS_JSON": {"type": "VARIANT", "index": 4, "name": "RECEIPTS_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "RECEIPTS_ID": {"type": "TEXT", "index": 6, "name": "RECEIPTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__receipts_full_MODIFIED_TIMESTAMP.23b69b4875"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.ceafcdaa5b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:44UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.ceafcdaa5b"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_BLOCK_NUMBER__NUMBER.f023a7fa38": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_BLOCK_NUMBER__NUMBER.f023a7fa38"}, "model.fsc_evm.bronze__contract_abis": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "CONTRACT_ABIS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__contract_abis"}, "test.polygon_models.not_null_silver__complete_nft_sales_TX_HASH.c6a7c23911": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_TX_HASH.c6a7c23911"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_INDEX.db8d2710d0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_INDEX.db8d2710d0"}, "test.polygon_models.not_null_silver_olas__service_event_logs_DATA.e35df90e62": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "SERVICE_EVENT_LOGS_DATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "MULTISIG_ADDRESS": {"type": "TEXT", "index": 9, "name": "MULTISIG_ADDRESS", "comment": null}, "SERVICE_ID": {"type": "NUMBER", "index": 10, "name": "SERVICE_ID", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 11, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 12, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 13, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 14, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": null}, "SEGMENTED_DATA": {"type": "ARRAY", "index": 16, "name": "SEGMENTED_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}, "SERVICE_EVENT_LOGS_ID": {"type": "TEXT", "index": 19, "name": "SERVICE_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 22, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__service_event_logs_DATA.e35df90e62"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_STATE_ROOT.1c61a48d97": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_STATE_ROOT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:28UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_STATE_ROOT.1c61a48d97"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_ORIGIN_FROM_ADDRESS.2d42cefc88": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_ORIGIN_FROM_ADDRESS.2d42cefc88"}, "model.fsc_evm.github_actions__task_current": {"metadata": {"type": "VIEW", "schema": "GITHUB_ACTIONS", "name": "TASK_CURRENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ROOT_TASK_NAME": {"type": "TEXT", "index": 1, "name": "ROOT_TASK_NAME", "comment": ""}, "DATABASE_NAME": {"type": "TEXT", "index": 2, "name": "DATABASE_NAME", "comment": ""}, "SCHEMA_NAME": {"type": "TEXT", "index": 3, "name": "SCHEMA_NAME", "comment": ""}, "STATE": {"type": "TEXT", "index": 4, "name": "STATE", "comment": ""}, "FIRST_ERROR_TASK_NAME": {"type": "TEXT", "index": 5, "name": "FIRST_ERROR_TASK_NAME", "comment": ""}, "FIRST_ERROR_CODE": {"type": "TEXT", "index": 6, "name": "FIRST_ERROR_CODE", "comment": ""}, "FIRST_ERROR_MESSAGE": {"type": "TEXT", "index": 7, "name": "FIRST_ERROR_MESSAGE", "comment": ""}, "SCHEDULED_TIME": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "SCHEDULED_TIME", "comment": ""}, "QUERY_START_TIME": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "QUERY_START_TIME", "comment": ""}, "NEXT_SCHEDULED_TIME": {"type": "TIMESTAMP_LTZ", "index": 10, "name": "NEXT_SCHEDULED_TIME", "comment": ""}, "ROOT_TASK_ID": {"type": "TEXT", "index": 11, "name": "ROOT_TASK_ID", "comment": ""}, "GRAPH_VERSION": {"type": "NUMBER", "index": 12, "name": "GRAPH_VERSION", "comment": ""}, "RUN_ID": {"type": "NUMBER", "index": 13, "name": "RUN_ID", "comment": ""}, "ATTEMPT_NUMBER": {"type": "NUMBER", "index": 14, "name": "ATTEMPT_NUMBER", "comment": ""}, "SCHEDULED_FROM": {"type": "TEXT", "index": 15, "name": "SCHEDULED_FROM", "comment": ""}, "CONFIG": {"type": "TEXT", "index": 16, "name": "CONFIG", "comment": ""}, "GRAPH_RUN_GROUP_ID": {"type": "TEXT", "index": 17, "name": "GRAPH_RUN_GROUP_ID", "comment": ""}, "BACKFILL_INFO": {"type": "OBJECT", "index": 18, "name": "BACKFILL_INFO", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.github_actions__task_current"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_BLOCK_NUMBER__NUMBER__FLOAT.07310f104e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MOOAR_SALES_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_BLOCK_NUMBER__NUMBER__FLOAT.07310f104e"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.8bf1eb8fd4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "ELEMENT_SALES_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.8bf1eb8fd4"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.82ff004d89": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_1_SALES_SELLER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.82ff004d89"}, "test.fsc_evm.not_null_test_silver__transactions_recent__INSERTED_TIMESTAMP.88fde180fc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRANSACTIONS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}, "TRANSACTION_JSON": {"type": "VARIANT", "index": 4, "name": "TRANSACTION_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRANSACTIONS_ID": {"type": "TEXT", "index": 6, "name": "TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__transactions_recent__INSERTED_TIMESTAMP.88fde180fc"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_NFT_LOG_ID.5be99512a7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_NFT_LOG_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_NFT_LOG_ID.5be99512a7"}, "test.fsc_evm.not_null_test_silver__transactions_full_TX_POSITION.0f91433ce2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRANSACTIONS_FULL_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}, "TRANSACTION_JSON": {"type": "VARIANT", "index": 4, "name": "TRANSACTION_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRANSACTIONS_ID": {"type": "TEXT", "index": 6, "name": "TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__transactions_full_TX_POSITION.0f91433ce2"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.dc8d5cedfd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_6_SALES_BUYER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.dc8d5cedfd"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TOPICS.03f5444318": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_TOPICS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:31UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TOPICS.03f5444318"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__seaport_1_6_sales_BLOCK_TIMESTAMP__day__1.55704a4959": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "SEAPORT_1_6_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__seaport_1_6_sales_BLOCK_TIMESTAMP__day__1.55704a4959"}, "test.polygon_models.not_null_silver__mooar_sales_CREATOR_FEE_RAW.23190ef573": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_CREATOR_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_CREATOR_FEE_RAW.23190ef573"}, "model.fsc_evm.silver_lending__silo_repayments": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "SILO_REPAYMENTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 10, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 11, "name": "AMOUNT_UNADJ", "comment": null}, "PAYER": {"type": "TEXT", "index": 12, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 13, "name": "BORROWER", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 14, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 15, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 16, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 19, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__silo_repayments"}, "model.fsc_evm.bronze__confirm_blocks_fr": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "CONFIRM_BLOCKS_FR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 7, "name": "BLOCK_NUMBER", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__confirm_blocks_fr"}, "model.fsc_evm.silver_dex__voodoo_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "VOODOO_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 12, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 13, "name": "TOKEN_OUT", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "AMOUNT_OUT_AFTER_FEES": {"type": "NUMBER", "index": 16, "name": "AMOUNT_OUT_AFTER_FEES", "comment": null}, "FEE_BASIS_POINTS": {"type": "NUMBER", "index": 17, "name": "FEE_BASIS_POINTS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:06UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__voodoo_swaps"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.04ccc1e679": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.04ccc1e679"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_SHARES__DECIMAL__FLOAT__NUMBER.0ed57ee530": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "POLYMARKET_FILLED_ORDERS_SHARES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_SHARES__DECIMAL__FLOAT__NUMBER.0ed57ee530"}, "model.fsc_evm.silver_dex__paircreated_evt_v2_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "PAIRCREATED_EVT_V2_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 6, "name": "EVENT_NAME", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 7, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 8, "name": "TOKEN1", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_ID": {"type": "NUMBER", "index": 10, "name": "POOL_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 11, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 12, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 13, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 14, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 15, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:31UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 37616640, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 162492, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__paircreated_evt_v2_pools"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PLATFORM.f7ad06b21d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_PLATFORM", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PLATFORM.f7ad06b21d"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_COUNT__NUMBER__FLOAT.39578be186": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER_STATS", "name": "CORE_METRICS_HOURLY_BLOCK_COUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_COUNT__NUMBER__FLOAT.39578be186"}, "test.fsc_evm.not_null_test_silver__contracts_recent_CONTRACT_ADDRESS.037aff5161": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "CONTRACTS_RECENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_NAME": {"type": "TEXT", "index": 2, "name": "TOKEN_NAME", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 3, "name": "TOKEN_DECIMALS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 4, "name": "TOKEN_SYMBOL", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CONTRACTS_ID": {"type": "TEXT", "index": 6, "name": "CONTRACTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__contracts_recent_CONTRACT_ADDRESS.037aff5161"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_LOGS_BLOOM.633277005e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_LOGS_BLOOM", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_LOGS_BLOOM.633277005e"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_borrows_AMOUNT_USD__decimal__float.647d646b83": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_AMOUNT_USD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_borrows_AMOUNT_USD__decimal__float.647d646b83"}, "test.fsc_evm.not_null_test_silver__traces_full_MODIFIED_TIMESTAMP.73532cff85": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRACES_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 2, "name": "TX_POSITION", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 3, "name": "TRACE_ADDRESS", "comment": null}, "PARENT_TRACE_ADDRESS": {"type": "TEXT", "index": 4, "name": "PARENT_TRACE_ADDRESS", "comment": null}, "TRACE_ADDRESS_ARRAY": {"type": "ARRAY", "index": 5, "name": "TRACE_ADDRESS_ARRAY", "comment": null}, "TRACE_JSON": {"type": "OBJECT", "index": 6, "name": "TRACE_JSON", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 7, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRACES_ID": {"type": "TEXT", "index": 9, "name": "TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__traces_full_MODIFIED_TIMESTAMP.73532cff85"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_PRECISE.f5a509ff49": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_VALUE_PRECISE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_PRECISE.f5a509ff49"}, "test.polygon_models.not_null_silver__tofunft_sales_SELLER_ADDRESS.2623b7e06f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_SELLER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_SELLER_ADDRESS.2623b7e06f"}, "model.fsc_evm.defi__ez_stablecoins_supply": {"metadata": {"type": "VIEW", "schema": "DEFI", "name": "EZ_STABLECOINS_SUPPLY", "database": "POLYGON", "comment": "## What\n\nThis table provides daily supply metrics for verified stablecoins across EVM-compatible blockchains. It tracks total supply, mint/burn activity, and distribution across various DeFi protocols and platforms. Historical data available, starting from `2025-06-10`.\n\n## Key Use Cases\n\n- Tracking stablecoin supply growth and contraction over time\n- Analyzing stablecoin distribution and TVL across DeFi protocols\n- Monitoring mint and burn events for supply changes\n- Identifying stablecoin liquidity concentration in specific venues\n- Building supply-based metrics and charts\n\n## Important Relationships\n\n- **Join with defi.dim_stablecoins**: Use `contract_address` for stablecoin metadata\n- **Join with price.ez_prices_hourly**: Use `contract_address` for price data\n\n## Commonly-used Fields\n\n- `block_date`: Date of the supply snapshot\n- `contract_address`: Stablecoin token contract address\n- `symbol`: Token symbol (e.g., USDC, USDT, DAI)\n- `total_supply`: Total supply of the stablecoin, based on direct `totalSupply` contract functions calls\n- `amount_minted`: Cumulative amount minted\n- `amount_burned`: Cumulative amount burned\n- `amount_in_bridges`: Amount held in Bridge vaults\n- `amount_in_dex_liquidity_pools`: Amount held in DEX liquidity pools\n- `amount_in_lending_pools`: Amount deposited in lending protocols\n- `amount_in_cex`: Amount held in centralized exchange addresses\n\n## Sample queries\n\n```sql\n-- Latest supply metrics by stablecoin\nSELECT \n label AS stablecoin,\n total_supply,\n amount_in_dex_liquidity_pools,\n amount_in_lending_pools\nFROM .defi.ez_stablecoins_supply\nWHERE block_date = CURRENT_DATE - 1\nORDER BY total_supply DESC;\n\n-- Daily supply changes for a specific stablecoin\nSELECT \n block_date,\n symbol,\n total_supply,\n amount_minted - LAG(amount_minted) OVER (PARTITION BY contract_address ORDER BY block_date) AS daily_minted,\n amount_burned - LAG(amount_burned) OVER (PARTITION BY contract_address ORDER BY block_date) AS daily_burned\nFROM .defi.ez_stablecoins_supply\nWHERE symbol = 'USDC'\n AND block_date >= CURRENT_DATE - 30\nORDER BY block_date DESC;\n\n-- Stablecoin distribution analysis\nSELECT \n block_date,\n label AS stablecoin,\n amount_in_bridges / NULLIF(total_supply, 0) AS pct_in_bridge,\n amount_in_dex_liquidity_pools / NULLIF(total_supply, 0) AS pct_in_dex,\n amount_in_lending_pools / NULLIF(total_supply, 0) AS pct_in_lending,\n amount_in_cex / NULLIF(total_supply, 0) AS pct_in_cex\nFROM .defi.ez_stablecoins_supply\nWHERE block_date = CURRENT_DATE - 1\n AND total_supply > 0\nORDER BY total_supply DESC;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_DATE": {"type": "DATE", "index": 1, "name": "BLOCK_DATE", "comment": "The date of the daily supply snapshot. This corresponds with the MAX block_number from the previous day.\n\nExample: '2025-06-10'"}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 2, "name": "CONTRACT_ADDRESS", "comment": "The smart contract address of the stablecoin token.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": "The symbol identifier for the stablecoin token.\n\nExample: 'USDC'"}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": "The full name of the stablecoin token.\n\nExample: 'USD Coin'"}, "LABEL": {"type": "TEXT", "index": 5, "name": "LABEL", "comment": "A combined display label containing both symbol and name, as a stablecoin unique identifier.\n\nExample: 'USDC: USD Coin'"}, "DECIMALS": {"type": "NUMBER", "index": 6, "name": "DECIMALS", "comment": "The number of decimal places used by the token contract.\n\nExample: 6"}, "TOTAL_SUPPLY": {"type": "FLOAT", "index": 7, "name": "TOTAL_SUPPLY", "comment": "The total supply of the stablecoin on this blockchain as of the block_date, directly derived from `totalSupply` contract function calls.\n\nExample: 1500000000"}, "AMOUNT_MINTED": {"type": "FLOAT", "index": 8, "name": "AMOUNT_MINTED", "comment": "The amount of tokens minted daily.\n\nExample: 2000000000"}, "AMOUNT_BURNED": {"type": "FLOAT", "index": 9, "name": "AMOUNT_BURNED", "comment": "The amount of tokens burned daily.\n\nExample: 500000000"}, "AMOUNT_TRANSFERRED": {"type": "FLOAT", "index": 10, "name": "AMOUNT_TRANSFERRED", "comment": "The amount of tokens transferred daily.\n\nExample: 10000000000"}, "AMOUNT_BLACKLISTED": {"type": "FLOAT", "index": 11, "name": "AMOUNT_BLACKLISTED", "comment": "The total amount of tokens held in blacklisted addresses.\n\nExample: 1000000"}, "AMOUNT_IN_CEX": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN_CEX", "comment": "The amount of tokens held in centralized exchange addresses.\n\nExample: 300000000"}, "AMOUNT_IN_BRIDGES": {"type": "FLOAT", "index": 13, "name": "AMOUNT_IN_BRIDGES", "comment": "The amount of tokens held in bridge vaults and contracts.\n\nExample: 50000000"}, "AMOUNT_IN_DEX_LIQUIDITY_POOLS": {"type": "FLOAT", "index": 14, "name": "AMOUNT_IN_DEX_LIQUIDITY_POOLS", "comment": "The amount of tokens deposited in decentralized exchange liquidity pools.\n\nExample: 200000000"}, "AMOUNT_IN_LENDING_POOLS": {"type": "FLOAT", "index": 15, "name": "AMOUNT_IN_LENDING_POOLS", "comment": "The amount of tokens deposited in lending protocol pools.\n\nExample: 150000000"}, "AMOUNT_IN_CONTRACTS": {"type": "FLOAT", "index": 16, "name": "AMOUNT_IN_CONTRACTS", "comment": "The amount of tokens held in all contracts (including other categorized contracts).\n\nExample: 100000000"}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}, "EZ_STABLECOINS_SUPPLY_ID": {"type": "TEXT", "index": 19, "name": "EZ_STABLECOINS_SUPPLY_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.defi__ez_stablecoins_supply"}, "model.fsc_evm.test_gold__ez_native_transfers_full": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_FULL", "database": "POLYGON", "comment": "This is a view used to test all of the `ez_native_transfers` data.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": ""}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": ""}, "TRACE_ADDRESS": {"type": "TEXT", "index": 6, "name": "TRACE_ADDRESS", "comment": ""}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": ""}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": ""}, "TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "TO_ADDRESS", "comment": ""}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": ""}, "AMOUNT_PRECISE_RAW": {"type": "TEXT", "index": 11, "name": "AMOUNT_PRECISE_RAW", "comment": ""}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 12, "name": "AMOUNT_PRECISE", "comment": ""}, "AMOUNT_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_USD", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "EZ_NATIVE_TRANSFERS_ID": {"type": "TEXT", "index": 17, "name": "EZ_NATIVE_TRANSFERS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__ez_native_transfers_full"}, "test.fsc_evm.not_null_test_silver__confirm_blocks_full_BLOCK_NUMBER.acad1c43e7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "CONFIRM_BLOCKS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 5, "name": "TX_HASH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CONFIRM_BLOCKS_ID": {"type": "TEXT", "index": 7, "name": "CONFIRM_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__confirm_blocks_full_BLOCK_NUMBER.acad1c43e7"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS.07dbc4f7e2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS.07dbc4f7e2"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_LOGS_BLOOM__0_xX_0_9a_fA_F_.73ad80f09c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_BLOCKS_FULL_LOGS_BLOOM", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_LOGS_BLOOM__0_xX_0_9a_fA_F_.73ad80f09c"}, "model.fsc_evm.silver__blocks": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "BLOCKS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BLOCKS_ID": {"type": "TEXT", "index": 5, "name": "BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 8, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:15UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 595747558400, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(modified_timestamp::DATE, partition_key)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 79454366, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.ad1193ebee": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "TOFUNFT_SALES_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.ad1193ebee"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_TX_HASH__0_xX_0_9a_fA_F_.197ddfc264": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "ELEMENT_SALES_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_TX_HASH__0_xX_0_9a_fA_F_.197ddfc264"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.fc73bfce91": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.fc73bfce91"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.633ddbc1cc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_1_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.633ddbc1cc"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_BLOCK_NUMBER__NUMBER__FLOAT.5d89afa477": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_BLOCK_NUMBER__NUMBER__FLOAT.5d89afa477"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_INTRA_EVENT_INDEX.025edfde6b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_INTRA_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_INTRA_EVENT_INDEX.025edfde6b"}, "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "KYBERSWAP_V1_DYNAMIC_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 10, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 11, "name": "TOKEN1", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 12, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 15, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 16, "name": "AMOUNT1_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 19, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-22 18:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 18654720, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 154421, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pool_actions"}, "test.fsc_evm.unique_silver__complete_token_prices_COMPLETE_TOKEN_PRICES_ID.c4ea6e2a79": {"metadata": {"type": "BASE TABLE", "schema": "UNIQUE_SILVER", "name": "COMPLETE_TOKEN_PRICES_COMPLETE_TOKEN_PRICES_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"UNIQUE_FIELD": {"type": "TEXT", "index": 1, "name": "UNIQUE_FIELD", "comment": null}, "N_RECORDS": {"type": "NUMBER", "index": 2, "name": "N_RECORDS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.unique_silver__complete_token_prices_COMPLETE_TOKEN_PRICES_ID.c4ea6e2a79"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_EVENT_INDEX.af4200573a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_EVENT_INDEX.af4200573a"}, "test.fsc_evm.not_null_observability__transactions_TEST_TIMESTAMP.fcbece1b9f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_OBSERVABILITY", "name": "TRANSACTIONS_TEST_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TEST_NAME": {"type": "TEXT", "index": 1, "name": "TEST_NAME", "comment": null}, "MIN_BLOCK": {"type": "NUMBER", "index": 2, "name": "MIN_BLOCK", "comment": null}, "MAX_BLOCK": {"type": "NUMBER", "index": 3, "name": "MAX_BLOCK", "comment": null}, "MIN_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "MIN_BLOCK_TIMESTAMP", "comment": null}, "MAX_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "MAX_BLOCK_TIMESTAMP", "comment": null}, "BLOCKS_TESTED": {"type": "NUMBER", "index": 6, "name": "BLOCKS_TESTED", "comment": null}, "BLOCKS_IMPACTED_COUNT": {"type": "NUMBER", "index": 7, "name": "BLOCKS_IMPACTED_COUNT", "comment": null}, "MISSING_LIST": {"type": "ARRAY", "index": 8, "name": "MISSING_LIST", "comment": null}, "TEST_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "TEST_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_observability__transactions_TEST_TIMESTAMP.fcbece1b9f"}, "model.fsc_evm.test_silver__confirm_blocks_full": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "CONFIRM_BLOCKS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": ""}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 5, "name": "TX_HASH", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "CONFIRM_BLOCKS_ID": {"type": "TEXT", "index": 7, "name": "CONFIRM_BLOCKS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__confirm_blocks_full"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT.1e73e0a934": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_STATS", "name": "CORE_METRICS_HOURLY_UNIQUE_FROM_COUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_TIMESTAMP_HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP_HOUR", "comment": null}, "BLOCK_NUMBER_MIN": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER_MIN", "comment": null}, "BLOCK_NUMBER_MAX": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER_MAX", "comment": null}, "BLOCK_COUNT": {"type": "NUMBER", "index": 4, "name": "BLOCK_COUNT", "comment": null}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "TRANSACTION_COUNT", "comment": null}, "TRANSACTION_COUNT_SUCCESS": {"type": "NUMBER", "index": 6, "name": "TRANSACTION_COUNT_SUCCESS", "comment": null}, "TRANSACTION_COUNT_FAILED": {"type": "NUMBER", "index": 7, "name": "TRANSACTION_COUNT_FAILED", "comment": null}, "UNIQUE_FROM_COUNT": {"type": "NUMBER", "index": 8, "name": "UNIQUE_FROM_COUNT", "comment": null}, "UNIQUE_TO_COUNT": {"type": "NUMBER", "index": 9, "name": "UNIQUE_TO_COUNT", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 10, "name": "TOTAL_FEES", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CORE_METRICS_HOURLY_ID": {"type": "TEXT", "index": 12, "name": "CORE_METRICS_HOURLY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT.1e73e0a934"}, "test.polygon_models.not_null_silver__complete_nft_sales_BLOCK_NUMBER.57944b643f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_BLOCK_NUMBER.57944b643f"}, "model.fsc_evm.silver_dex__pancakeswap_v2_mm_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "PANCAKESWAP_V2_MM_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "MM_ADDRESS": {"type": "TEXT", "index": 12, "name": "MM_ADDRESS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 13, "name": "NONCE", "comment": null}, "MMTREASURY": {"type": "TEXT", "index": 14, "name": "MMTREASURY", "comment": null}, "BASETOKEN": {"type": "TEXT", "index": 15, "name": "BASETOKEN", "comment": null}, "QUOTETOKEN": {"type": "TEXT", "index": 16, "name": "QUOTETOKEN", "comment": null}, "BASETOKENAMOUNT": {"type": "NUMBER", "index": 17, "name": "BASETOKENAMOUNT", "comment": null}, "QUOTETOKENAMOUNT": {"type": "NUMBER", "index": 18, "name": "QUOTETOKENAMOUNT", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 19, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 20, "name": "TOKEN_OUT", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 21, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 22, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 26, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 27, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:06UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__pancakeswap_v2_mm_swaps"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_event_logs_recent_EVENT_INDEX__BLOCK_NUMBER.3d7998b618": {"metadata": {"type": "BASE TABLE", "schema": "FSC_EVM_SEQUENCE_GAPS_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PREV_EVENT_INDEX": {"type": "NUMBER", "index": 2, "name": "PREV_EVENT_INDEX", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "EVENT_INDEX", "comment": null}, "GAP": {"type": "NUMBER", "index": 4, "name": "GAP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_event_logs_recent_EVENT_INDEX__BLOCK_NUMBER.3d7998b618"}, "model.polygon_models.silver__tofunft_sales": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "TOFUNFT_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": ""}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": ""}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": ""}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": ""}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": ""}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": ""}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": ""}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": ""}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": ""}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": ""}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": ""}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": ""}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": ""}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": ""}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": ""}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": ""}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": ""}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": ""}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": ""}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": ""}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": ""}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": ""}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": ""}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": ""}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": ""}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": ""}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": ""}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": ""}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": ""}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": ""}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": ""}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:35UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 455672832, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2545805, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__tofunft_sales"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_INPUT.b4e1faa8be": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_INPUT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_INPUT.b4e1faa8be"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_GAS_USED__NUMBER__FLOAT.c2e16f1869": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_FULL_GAS_USED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_GAS_USED__NUMBER__FLOAT.c2e16f1869"}, "test.fsc_evm.not_null_test_silver__decoded_logs_recent_CONTRACT_ADDRESS.4a09b257d3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "DECODED_LOGS_RECENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": null}, "DECODED_DATA": {"type": "VARIANT", "index": 6, "name": "DECODED_DATA", "comment": null}, "TRANSFORMED": {"type": "VARIANT", "index": 7, "name": "TRANSFORMED", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 8, "name": "DECODED_FLAT", "comment": null}, "DECODED_LOGS_ID": {"type": "TEXT", "index": 9, "name": "DECODED_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_recent_CONTRACT_ADDRESS.4a09b257d3"}, "test.polygon_models.not_null_silver_olas__registry_metadata_CONTRACT_ADDRESS.d47b0a47dc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "REGISTRY_METADATA_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RESP": {"type": "VARIANT", "index": 1, "name": "RESP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 3, "name": "CONTRACT_ADDRESS", "comment": null}, "REGISTRY_ID": {"type": "NUMBER", "index": 4, "name": "REGISTRY_ID", "comment": null}, "TOKEN_URI_LINK": {"type": "TEXT", "index": 5, "name": "TOKEN_URI_LINK", "comment": null}, "TRAIT_TYPE": {"type": "TEXT", "index": 6, "name": "TRAIT_TYPE", "comment": null}, "TRAIT_VALUE": {"type": "TEXT", "index": 7, "name": "TRAIT_VALUE", "comment": null}, "CODE_URI_LINK": {"type": "TEXT", "index": 8, "name": "CODE_URI_LINK", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 9, "name": "DESCRIPTION", "comment": null}, "IMAGE_LINK": {"type": "TEXT", "index": 10, "name": "IMAGE_LINK", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "REGISTRY_METADATA_ID": {"type": "TEXT", "index": 13, "name": "REGISTRY_METADATA_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__registry_metadata_CONTRACT_ADDRESS.d47b0a47dc"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.62aeda5fe7": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_6_SALES_PLATFORM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.62aeda5fe7"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__verified_abis_recent_CONTRACT_ADDRESS.788bba3ee1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "VERIFIED_ABIS_RECENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__verified_abis_recent_CONTRACT_ADDRESS.788bba3ee1"}, "test.fsc_evm.not_null_test_silver__receipts_recent_RECEIPTS_JSON.edca36b9ab": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "RECEIPTS_RECENT_RECEIPTS_JSON", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": null}, "RECEIPTS_JSON": {"type": "VARIANT", "index": 4, "name": "RECEIPTS_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "RECEIPTS_ID": {"type": "TEXT", "index": 6, "name": "RECEIPTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__receipts_recent_RECEIPTS_JSON.edca36b9ab"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_SUCCEEDED.e488b18268": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_TX_SUCCEEDED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_SUCCEEDED.e488b18268"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_DATA.4dbf00dd37": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_DATA", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_DATA.4dbf00dd37"}, "model.fsc_evm.silver_lending__aave_borrows": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "AAVE_BORROWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "BORROWER": {"type": "TEXT", "index": 9, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT_UNADJ", "comment": null}, "BORROW_RATE_MODE": {"type": "TEXT", "index": 13, "name": "BORROW_RATE_MODE", "comment": null}, "LENDING_POOL_CONTRACT": {"type": "TEXT", "index": 14, "name": "LENDING_POOL_CONTRACT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 15, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 16, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 17, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 18, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 20, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 723090432, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4324609, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__aave_borrows"}, "model.fsc_evm.silver_bridge__across_fundsdeposited": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "ACROSS_FUNDSDEPOSITED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 10, "name": "EVENT_REMOVED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 11, "name": "TX_SUCCEEDED", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 12, "name": "BRIDGE_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 15, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "NUMBER", "index": 16, "name": "DESTINATION_CHAIN_ID", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 17, "name": "AMOUNT", "comment": null}, "DEPOSIT_ID": {"type": "NUMBER", "index": 18, "name": "DEPOSIT_ID", "comment": null}, "MESSAGE": {"type": "TEXT", "index": 19, "name": "MESSAGE", "comment": null}, "ORIGIN_CHAIN_ID": {"type": "NUMBER", "index": 20, "name": "ORIGIN_CHAIN_ID", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 21, "name": "TOKEN_ADDRESS", "comment": null}, "QUOTE_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "QUOTE_TIMESTAMP", "comment": null}, "RELAYER_FEE_PCT": {"type": "NUMBER", "index": 23, "name": "RELAYER_FEE_PCT", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 26, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 27, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 28, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:00UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 28420096, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 179172, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__across_fundsdeposited"}, "model.fsc_evm.silver__balances_erc20_daily": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "BALANCES_ERC20_DAILY", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": ""}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": ""}, "BALANCE_HEX": {"type": "TEXT", "index": 5, "name": "BALANCE_HEX", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 7, "name": "BALANCES_ERC20_DAILY_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:17UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 15846878208, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_date)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 356854502, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__balances_erc20_daily"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_CONTRACT_ADDRESS.52ef84763a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOLS_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 4, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 6, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 10, "name": "POOL_ID", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 11, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 12, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 13, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 14, "name": "DECIMALS", "comment": null}, "FEE": {"type": "NUMBER", "index": 15, "name": "FEE", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 16, "name": "TICK_SPACING", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 17, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 18, "name": "TOKEN1", "comment": null}, "TOKEN2": {"type": "TEXT", "index": 19, "name": "TOKEN2", "comment": null}, "TOKEN3": {"type": "TEXT", "index": 20, "name": "TOKEN3", "comment": null}, "TOKEN4": {"type": "TEXT", "index": 21, "name": "TOKEN4", "comment": null}, "TOKEN5": {"type": "TEXT", "index": 22, "name": "TOKEN5", "comment": null}, "TOKEN6": {"type": "TEXT", "index": 23, "name": "TOKEN6", "comment": null}, "TOKEN7": {"type": "TEXT", "index": 24, "name": "TOKEN7", "comment": null}, "_ID": {"type": "TEXT", "index": 25, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOLS_ID": {"type": "TEXT", "index": 27, "name": "COMPLETE_DEX_LIQUIDITY_POOLS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_CONTRACT_ADDRESS.52ef84763a"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_daily_full_BALANCE__NUMBER__FLOAT.49679eb8e0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_BALANCES_NATIVE_DAILY_FULL_BALANCE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_daily_full_BALANCE__NUMBER__FLOAT.49679eb8e0"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_VERSION.927431b428": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_VERSION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_VERSION.927431b428"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_RAW_AMOUNT__NUMBER__FLOAT.e29960d304": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_RAW_AMOUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_RAW_AMOUNT__NUMBER__FLOAT.e29960d304"}, "model.fsc_evm.silver_bridge__stargate_createpool": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "STARGATE_CREATEPOOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"READ_OUTPUT": {"type": "VARIANT", "index": 1, "name": "READ_OUTPUT", "comment": ""}, "READ_ID": {"type": "TEXT", "index": 2, "name": "READ_ID", "comment": ""}, "READ_RESULT": {"type": "TEXT", "index": 3, "name": "READ_RESULT", "comment": ""}, "READ_ID_OBJECT": {"type": "ARRAY", "index": 4, "name": "READ_ID_OBJECT", "comment": ""}, "FUNCTION_SIG": {"type": "TEXT", "index": 5, "name": "FUNCTION_SIG", "comment": ""}, "FUNCTION_NAME": {"type": "TEXT", "index": 6, "name": "FUNCTION_NAME", "comment": ""}, "FUNCTION_INPUT": {"type": "NUMBER", "index": 7, "name": "FUNCTION_INPUT", "comment": ""}, "DATA": {"type": "TEXT", "index": 8, "name": "DATA", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 9, "name": "BLOCK_NUMBER", "comment": ""}, "POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "POOL_ADDRESS", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:30UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 47616, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__stargate_createpool"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_COMPLETE_LENDING_DEPOSITS_ID.f63e8f436e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_COMPLETE_LENDING_DEPOSITS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_COMPLETE_LENDING_DEPOSITS_ID.f63e8f436e"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_NAME.a9a7c84d87": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_EVENT_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_NAME.a9a7c84d87"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__transactions_recent_TRANSACTIONS_ID.7c9f74baa9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "TRANSACTIONS_RECENT_TRANSACTIONS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TRANSACTIONS_ID": {"type": "TEXT", "index": 1, "name": "TRANSACTIONS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__transactions_recent_TRANSACTIONS_ID.7c9f74baa9"}, "test.polygon_models.not_null_silver__element_sales_SELLER_ADDRESS.cbd314ffba": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_SELLER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_SELLER_ADDRESS.cbd314ffba"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_NONCE__NUMBER__FLOAT.74da207967": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_FULL_NONCE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_NONCE__NUMBER__FLOAT.74da207967"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_BLOCK_NUMBER.d457327d7c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_BLOCK_NUMBER.d457327d7c"}, "test.polygon_models.not_null_silver_olas__registry_metadata_BLOCK_NUMBER.df505ae61e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "REGISTRY_METADATA_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RESP": {"type": "VARIANT", "index": 1, "name": "RESP", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 3, "name": "CONTRACT_ADDRESS", "comment": null}, "REGISTRY_ID": {"type": "NUMBER", "index": 4, "name": "REGISTRY_ID", "comment": null}, "TOKEN_URI_LINK": {"type": "TEXT", "index": 5, "name": "TOKEN_URI_LINK", "comment": null}, "TRAIT_TYPE": {"type": "TEXT", "index": 6, "name": "TRAIT_TYPE", "comment": null}, "TRAIT_VALUE": {"type": "TEXT", "index": 7, "name": "TRAIT_VALUE", "comment": null}, "CODE_URI_LINK": {"type": "TEXT", "index": 8, "name": "CODE_URI_LINK", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 9, "name": "DESCRIPTION", "comment": null}, "IMAGE_LINK": {"type": "TEXT", "index": 10, "name": "IMAGE_LINK", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "REGISTRY_METADATA_ID": {"type": "TEXT", "index": 13, "name": "REGISTRY_METADATA_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__registry_metadata_BLOCK_NUMBER.df505ae61e"}, "model.fsc_evm.test_gold__ez_decoded_event_logs_full": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": ""}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": ""}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": ""}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": ""}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": ""}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": ""}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": ""}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": ""}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": ""}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": ""}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": ""}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS.fb3df4392d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_BRIDGE_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 15, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 19, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 20, "name": "TOKEN_SYMBOL", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 21, "name": "TOKEN_DECIMALS", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 23, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 24, "name": "AMOUNT_USD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IS_VERIFIED", "comment": null}, "_ID": {"type": "TEXT", "index": 26, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_BRIDGE_ACTIVITY_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_BRIDGE_ACTIVITY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS.fb3df4392d"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_SIZE__NUMBER__FLOAT.b9716a702f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_SIZE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_SIZE__NUMBER__FLOAT.b9716a702f"}, "test.fsc_evm.not_null_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS.e94f2ba3f9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "HOP_L1CANONICALTOKEN_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"READ_OUTPUT": {"type": "VARIANT", "index": 1, "name": "READ_OUTPUT", "comment": null}, "READ_ID": {"type": "TEXT", "index": 2, "name": "READ_ID", "comment": null}, "READ_RESULT": {"type": "TEXT", "index": 3, "name": "READ_RESULT", "comment": null}, "READ_ID_OBJECT": {"type": "ARRAY", "index": 4, "name": "READ_ID_OBJECT", "comment": null}, "FUNCTION_SIG": {"type": "TEXT", "index": 5, "name": "FUNCTION_SIG", "comment": null}, "FUNCTION_NAME": {"type": "TEXT", "index": 6, "name": "FUNCTION_NAME", "comment": null}, "FUNCTION_INPUT": {"type": "NUMBER", "index": 7, "name": "FUNCTION_INPUT", "comment": null}, "DATA": {"type": "TEXT", "index": 8, "name": "DATA", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 9, "name": "BLOCK_NUMBER", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS.e94f2ba3f9"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN__NUMBER__FLOAT.6733ed950e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER_STATS", "name": "CORE_METRICS_HOURLY_BLOCK_NUMBER_MIN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN__NUMBER__FLOAT.6733ed950e"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_FROM_ADDRESS.e42c02340f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_FROM_ADDRESS.e42c02340f"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_AMOUNT_USD__DECIMAL__FLOAT__NUMBER.12cd4b012b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "POLYMARKET_FILLED_ORDERS_AMOUNT_USD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_AMOUNT_USD__DECIMAL__FLOAT__NUMBER.12cd4b012b"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_TX_POSITION__NUMBER__FLOAT.1244edc76e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_TX_POSITION__NUMBER__FLOAT.1244edc76e"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_TX_HASH.92b7a24d0d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOLS_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 4, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 6, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 10, "name": "POOL_ID", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 11, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 12, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 13, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 14, "name": "DECIMALS", "comment": null}, "FEE": {"type": "NUMBER", "index": 15, "name": "FEE", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 16, "name": "TICK_SPACING", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 17, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 18, "name": "TOKEN1", "comment": null}, "TOKEN2": {"type": "TEXT", "index": 19, "name": "TOKEN2", "comment": null}, "TOKEN3": {"type": "TEXT", "index": 20, "name": "TOKEN3", "comment": null}, "TOKEN4": {"type": "TEXT", "index": 21, "name": "TOKEN4", "comment": null}, "TOKEN5": {"type": "TEXT", "index": 22, "name": "TOKEN5", "comment": null}, "TOKEN6": {"type": "TEXT", "index": 23, "name": "TOKEN6", "comment": null}, "TOKEN7": {"type": "TEXT", "index": 24, "name": "TOKEN7", "comment": null}, "_ID": {"type": "TEXT", "index": 25, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOLS_ID": {"type": "TEXT", "index": 27, "name": "COMPLETE_DEX_LIQUIDITY_POOLS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_TX_HASH.92b7a24d0d"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_STATE_ROOT__0_xX_0_9a_fA_F_.467353aa70": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_STATE_ROOT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_STATE_ROOT__0_xX_0_9a_fA_F_.467353aa70"}, "test.polygon_models.not_null_silver__mooar_sales_NFT_LOG_ID.af807c77e9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_NFT_LOG_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_NFT_LOG_ID.af807c77e9"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_SUCCESS__NUMBER__FLOAT.c5d0b2cc33": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER_STATS", "name": "CORE_METRICS_HOURLY_TRANSACTION_COUNT_SUCCESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_SUCCESS__NUMBER__FLOAT.c5d0b2cc33"}, "test.polygon_models.not_null_silver__element_sales_PLATFORM_FEE_RAW.4ff5271e75": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_PLATFORM_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_PLATFORM_FEE_RAW.4ff5271e75"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER.db4674616c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_LIQUIDITY_PROVIDER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER.db4674616c"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_MODIFIED_TIMESTAMP.316ea9612f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_MODIFIED_TIMESTAMP.316ea9612f"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PROTOCOL.258dc320a7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_PROTOCOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PROTOCOL.258dc320a7"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_INSERTED_TIMESTAMP__hour__2.6a5297f507": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_TRACES_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_INSERTED_TIMESTAMP__hour__2.6a5297f507"}, "model.fsc_evm.silver_lending__aave_ethereum_borrows": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "AAVE_ETHEREUM_BORROWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "BORROWER": {"type": "TEXT", "index": 9, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT_UNADJ", "comment": null}, "BORROW_RATE_MODE": {"type": "TEXT", "index": 13, "name": "BORROW_RATE_MODE", "comment": null}, "LENDING_POOL_CONTRACT": {"type": "TEXT", "index": 14, "name": "LENDING_POOL_CONTRACT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 15, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 16, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 17, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 18, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 20, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__aave_ethereum_borrows"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_RECEIVER.a37b06afd8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_RECEIVER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 15, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 19, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 20, "name": "TOKEN_SYMBOL", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 21, "name": "TOKEN_DECIMALS", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 23, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 24, "name": "AMOUNT_USD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IS_VERIFIED", "comment": null}, "_ID": {"type": "TEXT", "index": 26, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_BRIDGE_ACTIVITY_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_BRIDGE_ACTIVITY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_RECEIVER.a37b06afd8"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.46c3120d2d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "TRANSACTIONS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.46c3120d2d"}, "seed.livequery_models.live__verified_api_endpoints": {"metadata": {"type": "BASE TABLE", "schema": "LIVE", "name": "VERIFIED_API_ENDPOINTS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PROJECT": {"type": "TEXT", "index": 1, "name": "PROJECT", "comment": null}, "ENDPOINT": {"type": "TEXT", "index": 2, "name": "ENDPOINT", "comment": null}, "TYPE": {"type": "TEXT", "index": 3, "name": "TYPE", "comment": null}, "DOCUMENTATION": {"type": "TEXT", "index": 4, "name": "DOCUMENTATION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2560, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 11, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.livequery_models.live__verified_api_endpoints"}, "model.fsc_evm.silver_lending__complete_lending_deposits": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": ""}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": ""}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": ""}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": ""}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": ""}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": ""}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": ""}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": ""}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2894050304, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE, platform)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 20980919, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_deposits_AMOUNT_USD__decimal__float.1e0c6d9d32": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_AMOUNT_USD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_deposits_AMOUNT_USD__decimal__float.1e0c6d9d32"}, "test.fsc_evm.not_null_silver_bridge__everclear_reads_STATUS.25271faad7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "EVERCLEAR_READS_STATUS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MIN_EPOCH": {"type": "NUMBER", "index": 1, "name": "MIN_EPOCH", "comment": null}, "OUTPUT_ASSET": {"type": "TEXT", "index": 2, "name": "OUTPUT_ASSET", "comment": null}, "STATUS": {"type": "TEXT", "index": 3, "name": "STATUS", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 4, "name": "DESTINATION_CHAIN_ID", "comment": null}, "INTENT_CREATED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "INTENT_CREATED_TIMESTAMP", "comment": null}, "CURSOR_ID": {"type": "NUMBER", "index": 6, "name": "CURSOR_ID", "comment": null}, "INTENT_ID": {"type": "TEXT", "index": 7, "name": "INTENT_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__everclear_reads_STATUS.25271faad7"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.5ec4aef06a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.5ec4aef06a"}, "test.fsc_evm.not_null_test_silver__transactions_full_MODIFIED_TIMESTAMP.8ce00858b9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRANSACTIONS_FULL_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}, "TRANSACTION_JSON": {"type": "VARIANT", "index": 4, "name": "TRANSACTION_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRANSACTIONS_ID": {"type": "TEXT", "index": 6, "name": "TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:46UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__transactions_full_MODIFIED_TIMESTAMP.8ce00858b9"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_ORIGIN_FROM_ADDRESS.c65a204117": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_ORIGIN_FROM_ADDRESS.c65a204117"}, "seed.fsc_evm.silver_stablecoins__bridge_vault_seed": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_STABLECOINS", "name": "BRIDGE_VAULT_SEED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 2, "name": "PLATFORM", "comment": null}, "VAULT_ADDRESS": {"type": "TEXT", "index": 3, "name": "VAULT_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 4096, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 64, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver_stablecoins__bridge_vault_seed"}, "test.fsc_evm.not_null_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP.6a2a4b0667": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "CONFIRM_BLOCKS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 5, "name": "TX_HASH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CONFIRM_BLOCKS_ID": {"type": "TEXT", "index": 7, "name": "CONFIRM_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP.6a2a4b0667"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_FACT_TRANSACTIONS_ID.a9bd9374e2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_FACT_TRANSACTIONS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_FACT_TRANSACTIONS_ID.a9bd9374e2"}, "model.fsc_evm.silver_lending__comp_v2_deposits": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "COMP_V2_DEPOSITS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 9, "name": "DEPOSITOR", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 14, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 15, "name": "VERSION", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 19, "name": "_LOG_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 20, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__comp_v2_deposits"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_REMOVED.83b01d4a77": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_EVENT_REMOVED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_REMOVED.83b01d4a77"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_ADDRESS.148994188c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_PLATFORM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_ADDRESS.148994188c"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.f3bcb7907f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "ELEMENT_SALES_NFT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.f3bcb7907f"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_liquidity_pools__ID.b4429d9fea": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_ID": {"type": "TEXT", "index": 1, "name": "_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_liquidity_pools__ID.b4429d9fea"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.cd2cbbcc06": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_4_SALES_PLATFORM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.cd2cbbcc06"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__stargate_createpool_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.9b63c4ca5e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_BRIDGE", "name": "STARGATE_CREATEPOOL_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__stargate_createpool_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.9b63c4ca5e"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_BLOCK_TIMESTAMP.20e3f64edd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_BLOCK_TIMESTAMP.20e3f64edd"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TOKEN_SYMBOL.63347a63f2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_TOKEN_SYMBOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TOKEN_SYMBOL.63347a63f2"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_TX_HASH.c56c02a893": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_TX_HASH.c56c02a893"}, "model.fsc_evm.bronze__complete_native_prices": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "COMPLETE_NATIVE_PRICES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": ""}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": ""}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": ""}, "PRICE": {"type": "FLOAT", "index": 6, "name": "PRICE", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN", "comment": ""}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 8, "name": "IS_IMPUTED", "comment": ""}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 10, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 11, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_NATIVE_PRICES_ID": {"type": "TEXT", "index": 15, "name": "COMPLETE_NATIVE_PRICES_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__complete_native_prices"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR__TIMESTAMP_LTZ__TIMESTAMP_NTZ.5239671c2c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER_STATS", "name": "CORE_METRICS_HOURLY_BLOCK_TIMESTAMP_HOUR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR__TIMESTAMP_LTZ__TIMESTAMP_NTZ.5239671c2c"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_flashloans_BLOCK_TIMESTAMP__day__14.c97c4e6a21": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER_LENDING", "name": "COMPLETE_LENDING_FLASHLOANS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_flashloans_BLOCK_TIMESTAMP__day__14.c97c4e6a21"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_VERSION.3fd0d1f3d6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_VERSION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_VERSION.3fd0d1f3d6"}, "model.fsc_evm.silver_bridge__hop_transfersent": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "HOP_TRANSFERSENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 10, "name": "EVENT_REMOVED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 11, "name": "TX_SUCCEEDED", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 12, "name": "BRIDGE_ADDRESS", "comment": null}, "AMM_WRAPPER_ADDRESS": {"type": "TEXT", "index": 13, "name": "AMM_WRAPPER_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 15, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "NUMBER", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 18, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 19, "name": "AMOUNT", "comment": null}, "AMOUNT_OUT_MIN": {"type": "NUMBER", "index": 20, "name": "AMOUNT_OUT_MIN", "comment": null}, "BONDER_FEE": {"type": "NUMBER", "index": 21, "name": "BONDER_FEE", "comment": null}, "DEADLINE": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "DEADLINE", "comment": null}, "INDEX": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INDEX", "comment": null}, "TRANSFER_ID": {"type": "TEXT", "index": 24, "name": "TRANSFER_ID", "comment": null}, "TRANSFER_NONCE": {"type": "TEXT", "index": 25, "name": "TRANSFER_NONCE", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 26, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 27, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 28, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 29, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 30, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 271545344, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1069462, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__hop_transfersent"}, "model.fsc_evm.silver_dex__quickswap_v2_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "QUICKSWAP_V2_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 6, "name": "EVENT_NAME", "comment": null}, "TOKEN0_ADDRESS": {"type": "TEXT", "index": 7, "name": "TOKEN0_ADDRESS", "comment": null}, "TOKEN1_ADDRESS": {"type": "TEXT", "index": 8, "name": "TOKEN1_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 14, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:31UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1601536, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 7078, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__quickswap_v2_pools"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_ORIGIN_FUNCTION_SIGNATURE.4f15a4f4b6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_ORIGIN_FUNCTION_SIGNATURE.4f15a4f4b6"}, "test.fsc_evm.not_null_silver_bridge__stargate_createpool_TOKEN_ADDRESS.02394ab2ae": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "STARGATE_CREATEPOOL_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"READ_OUTPUT": {"type": "VARIANT", "index": 1, "name": "READ_OUTPUT", "comment": null}, "READ_ID": {"type": "TEXT", "index": 2, "name": "READ_ID", "comment": null}, "READ_RESULT": {"type": "TEXT", "index": 3, "name": "READ_RESULT", "comment": null}, "READ_ID_OBJECT": {"type": "ARRAY", "index": 4, "name": "READ_ID_OBJECT", "comment": null}, "FUNCTION_SIG": {"type": "TEXT", "index": 5, "name": "FUNCTION_SIG", "comment": null}, "FUNCTION_NAME": {"type": "TEXT", "index": 6, "name": "FUNCTION_NAME", "comment": null}, "FUNCTION_INPUT": {"type": "NUMBER", "index": 7, "name": "FUNCTION_INPUT", "comment": null}, "DATA": {"type": "TEXT", "index": 8, "name": "DATA", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 9, "name": "BLOCK_NUMBER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "POOL_ADDRESS", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__stargate_createpool_TOKEN_ADDRESS.02394ab2ae"}, "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_withdraws_7_5__60__lending.23f1446d50": {"metadata": {"type": "BASE TABLE", "schema": "CURATED_RECENCY_DEFI_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_7_5", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PLATFORM": {"type": "TEXT", "index": 1, "name": "PLATFORM", "comment": null}, "LATEST_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "LATEST_TIMESTAMP", "comment": null}, "SYS_TS": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "SYS_TS", "comment": null}, "THRESHOLD_TS": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "THRESHOLD_TS", "comment": null}, "CURRENT_PERIOD_EVT": {"type": "NUMBER", "index": 5, "name": "CURRENT_PERIOD_EVT", "comment": null}, "ROLLING_AVG_EVT": {"type": "NUMBER", "index": 6, "name": "ROLLING_AVG_EVT", "comment": null}, "PERCENT_DELTA": {"type": "NUMBER", "index": 7, "name": "PERCENT_DELTA", "comment": null}, "TYPE": {"type": "TEXT", "index": 8, "name": "TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_withdraws_7_5__60__lending.23f1446d50"}, "model.fsc_evm.silver_dex__dexalot_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "DEXALOT_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 9, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 10, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 11, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 12, "name": "TOKEN_OUT", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECIPIENT": {"type": "TEXT", "index": 14, "name": "RECIPIENT", "comment": null}, "TX_TO": {"type": "TEXT", "index": 15, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 16, "name": "EVENT_INDEX", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 20, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:03UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__dexalot_swaps"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full__INSERTED_TIMESTAMP__hour__2.4c5fd60675": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "RECEIPTS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full__INSERTED_TIMESTAMP__hour__2.4c5fd60675"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS.07fa5639c8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 15, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 19, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 20, "name": "TOKEN_SYMBOL", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 21, "name": "TOKEN_DECIMALS", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 23, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 24, "name": "AMOUNT_USD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IS_VERIFIED", "comment": null}, "_ID": {"type": "TEXT", "index": 26, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_BRIDGE_ACTIVITY_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_BRIDGE_ACTIVITY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS.07fa5639c8"}, "model.fsc_evm.silver__bytecode_abis": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "BYTECODE_ABIS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "ABI": {"type": "VARIANT", "index": 2, "name": "ABI", "comment": null}, "ABI_HASH": {"type": "TEXT", "index": 3, "name": "ABI_HASH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 08:20UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 5079986176, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 103897791, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__bytecode_abis"}, "test.polygon_models.not_null_silver__tofunft_sales_BUYER_ADDRESS.e1bb974f14": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_BUYER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_BUYER_ADDRESS.e1bb974f14"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_TX_HASH__0_xX_0_9a_fA_F_.99f06dfd94": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "POLYMARKET_FILLED_ORDERS_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_TX_HASH__0_xX_0_9a_fA_F_.99f06dfd94"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_TX_COUNT.ea1dabd60a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_BLOCKS_FULL_TX_COUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": null}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": null}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": null}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": null}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": null}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": null}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": null}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": null}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": null}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": null}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": null}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:28UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_TX_COUNT.ea1dabd60a"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_MINER__0_xX_0_9a_fA_F_.dc25f4c8de": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_BLOCKS_FULL_MINER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_MINER__0_xX_0_9a_fA_F_.dc25f4c8de"}, "model.fsc_evm.bronze__receipts_fr": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "RECEIPTS_FR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 6, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 8, "name": "BLOCK_NUMBER", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__receipts_fr"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_HASH.7aaa319baa": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_HASH.7aaa319baa"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_HASH.e76669565b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_HASH.e76669565b"}, "model.fsc_evm.test_silver__decoded_logs_full": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "DECODED_LOGS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "EVENT_INDEX", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": ""}, "DECODED_DATA": {"type": "VARIANT", "index": 6, "name": "DECODED_DATA", "comment": ""}, "TRANSFORMED": {"type": "VARIANT", "index": 7, "name": "TRANSFORMED", "comment": ""}, "DECODED_FLAT": {"type": "OBJECT", "index": 8, "name": "DECODED_FLAT", "comment": ""}, "DECODED_LOGS_ID": {"type": "TEXT", "index": 9, "name": "DECODED_LOGS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__decoded_logs_full"}, "model.fsc_evm.silver_bridge__polygon_pos_bridge": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "POLYGON_POS_BRIDGE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "TEXT", "index": 7, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 11, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 12, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 13, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 14, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 15, "name": "TOKEN_ADDRESS", "comment": null}, "NAME": {"type": "TEXT", "index": 16, "name": "NAME", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 17, "name": "AMOUNT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:36UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 54022144, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 436900, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__polygon_pos_bridge"}, "test.fsc_evm.not_null_test_silver__decoded_logs_full_INSERTED_TIMESTAMP.947b1ded8c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "DECODED_LOGS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 3, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": null}, "DECODED_DATA": {"type": "VARIANT", "index": 6, "name": "DECODED_DATA", "comment": null}, "TRANSFORMED": {"type": "VARIANT", "index": 7, "name": "TRANSFORMED", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 8, "name": "DECODED_FLAT", "comment": null}, "DECODED_LOGS_ID": {"type": "TEXT", "index": 9, "name": "DECODED_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_full_INSERTED_TIMESTAMP.947b1ded8c"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_DECODED_LOG.2f64537edd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_DECODED_LOG", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_DECODED_LOG.2f64537edd"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.81a99604c2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.81a99604c2"}, "model.fsc_evm.silver_lending__aave_ethereum_withdraws": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "AAVE_ETHEREUM_WITHDRAWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 9, "name": "DEPOSITOR", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT_UNADJ", "comment": null}, "LENDING_POOL_CONTRACT": {"type": "TEXT", "index": 13, "name": "LENDING_POOL_CONTRACT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 14, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 15, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 16, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 19, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__aave_ethereum_withdraws"}, "test.fsc_evm.not_null_admin__ez_variables_KEY.4fc63e44ee": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ADMIN", "name": "EZ_VARIABLES_KEY", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PROJECT": {"type": "TEXT", "index": 1, "name": "PROJECT", "comment": null}, "PACKAGE": {"type": "TEXT", "index": 2, "name": "PACKAGE", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "KEY": {"type": "TEXT", "index": 4, "name": "KEY", "comment": null}, "VALUE": {"type": "TEXT", "index": 5, "name": "VALUE", "comment": null}, "PARENT_KEY": {"type": "TEXT", "index": 6, "name": "PARENT_KEY", "comment": null}, "DEFAULT_VALUE": {"type": "TEXT", "index": 7, "name": "DEFAULT_VALUE", "comment": null}, "DEFAULT_TYPE": {"type": "TEXT", "index": 8, "name": "DEFAULT_TYPE", "comment": null}, "EZ_VARIABLES_ID": {"type": "TEXT", "index": 9, "name": "EZ_VARIABLES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_admin__ez_variables_KEY.4fc63e44ee"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_LOGS_BLOOM__0_xX_0_9a_fA_F_.f5af8d2584": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_LOGS_BLOOM", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_LOGS_BLOOM__0_xX_0_9a_fA_F_.f5af8d2584"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_BLOCK_NUMBER.5a3535bb1a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_BLOCK_NUMBER.5a3535bb1a"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP__hour__3.2d99fe0ba2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP__hour__3.2d99fe0ba2"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.9235dce9b7": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.9235dce9b7"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_VERSION.b6b10368ee": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_VERSION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_VERSION.b6b10368ee"}, "model.fsc_evm.silver_lending__comp_v3_deposits": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "COMP_V3_DEPOSITS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 10, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 11, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 12, "name": "AMOUNT_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 13, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 14, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 15, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:46UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 35088384, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 344211, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__comp_v3_deposits"}, "test.fsc_evm.not_null_test_silver__receipts_recent_BLOCK_NUMBER.a025315ae3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "RECEIPTS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": null}, "RECEIPTS_JSON": {"type": "VARIANT", "index": 4, "name": "RECEIPTS_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "RECEIPTS_ID": {"type": "TEXT", "index": 6, "name": "RECEIPTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__receipts_recent_BLOCK_NUMBER.a025315ae3"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_INDEX.0ec0ee0f92": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_FULL_TRACE_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_INDEX.0ec0ee0f92"}, "test.fsc_evm.not_null_admin__ez_variables_EZ_VARIABLES_ID.1d9b2c9591": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ADMIN", "name": "EZ_VARIABLES_EZ_VARIABLES_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PROJECT": {"type": "TEXT", "index": 1, "name": "PROJECT", "comment": null}, "PACKAGE": {"type": "TEXT", "index": 2, "name": "PACKAGE", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "KEY": {"type": "TEXT", "index": 4, "name": "KEY", "comment": null}, "VALUE": {"type": "TEXT", "index": 5, "name": "VALUE", "comment": null}, "PARENT_KEY": {"type": "TEXT", "index": 6, "name": "PARENT_KEY", "comment": null}, "DEFAULT_VALUE": {"type": "TEXT", "index": 7, "name": "DEFAULT_VALUE", "comment": null}, "DEFAULT_TYPE": {"type": "TEXT", "index": 8, "name": "DEFAULT_TYPE", "comment": null}, "EZ_VARIABLES_ID": {"type": "TEXT", "index": 9, "name": "EZ_VARIABLES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_admin__ez_variables_EZ_VARIABLES_ID.1d9b2c9591"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_POSITION.1f5c16c4dd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_POSITION.1f5c16c4dd"}, "model.fsc_evm.silver_dex__velodrome_v2_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "VELODROME_V2_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FACTORY_ADDRESS": {"type": "TEXT", "index": 4, "name": "FACTORY_ADDRESS", "comment": null}, "SEGMENTED_DATA": {"type": "ARRAY", "index": 5, "name": "SEGMENTED_DATA", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 6, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 7, "name": "TOKEN1", "comment": null}, "STABLE": {"type": "BOOLEAN", "index": 8, "name": "STABLE", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 10, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 11, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 12, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 14, "name": "EVENT_NAME", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 15, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:06UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__velodrome_v2_pools"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d0a43ce369": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_6_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d0a43ce369"}, "test.polygon_models.not_null_silver__element_sales_TOKENID.0c4c737af0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_TOKENID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_TOKENID.0c4c737af0"}, "model.fsc_evm.silver_dex__sushiswap_pool_actions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "SUSHISWAP_POOL_ACTIONS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 10, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 11, "name": "TOKEN1", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 12, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 15, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 16, "name": "AMOUNT1_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 19, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-21 18:45UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__sushiswap_pool_actions"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__polymarket_filled_orders_BLOCK_TIMESTAMP__day__3.566647b61b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "POLYMARKET_FILLED_ORDERS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__polymarket_filled_orders_BLOCK_TIMESTAMP__day__3.566647b61b"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_HASH.7a79eff2d8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_HASH.7a79eff2d8"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_BLOCK_TIMESTAMP__hour__2.d62edf20de": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_TRACES_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_BLOCK_TIMESTAMP__hour__2.d62edf20de"}, "seed.fsc_evm.silver__balances_erc20_override": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "BALANCES_ERC20_OVERRIDE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 2, "name": "CONTRACT_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1536, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver__balances_erc20_override"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.baec638420": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "RECEIPTS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.baec638420"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_BUYER_ADDRESS.39557d23ca": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_BUYER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_BUYER_ADDRESS.39557d23ca"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_NONCE.ea08f1a1ba": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_FULL_NONCE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_NONCE.ea08f1a1ba"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID.45c5e0316f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_EZ_DECODED_EVENT_LOGS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID.45c5e0316f"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_FROM_ADDRESS.f1de7fc788": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_FULL_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 6, "name": "TRACE_ADDRESS", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "TO_ADDRESS", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": null}, "AMOUNT_PRECISE_RAW": {"type": "TEXT", "index": 11, "name": "AMOUNT_PRECISE_RAW", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 12, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "EZ_NATIVE_TRANSFERS_ID": {"type": "TEXT", "index": 17, "name": "EZ_NATIVE_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_FROM_ADDRESS.f1de7fc788"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_BLOCK_TIMESTAMP.0e3cfc73a7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_BLOCK_TIMESTAMP.0e3cfc73a7"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_NUMBER.884d6d2b35": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_NUMBER.884d6d2b35"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID.17989a1b4f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_EZ_DECODED_EVENT_LOGS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 1, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID.17989a1b4f"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_COMPLETE_LENDING_REPAYMENTS_ID.fa12632511": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_COMPLETE_LENDING_REPAYMENTS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_COMPLETE_LENDING_REPAYMENTS_ID.fa12632511"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.499658c9bc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.499658c9bc"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.f04c6eba97": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_FULL_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.f04c6eba97"}, "test.fsc_evm.decoded_logs_exist_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_.e2d790a075": {"metadata": {"type": "BASE TABLE", "schema": "DECODED_LOGS_EXIST_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_REF_TEST_GOLD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 2, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.decoded_logs_exist_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_.e2d790a075"}, "model.fsc_evm.core__fact_traces": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "FACT_TRACES", "database": "POLYGON", "comment": "## What\n\nThis table contains detailed execution traces of all internal transactions within the EVM. While fact_transactions shows external calls, this table reveals the complete execution flow including contract-to-contract calls, value transfers, and computation paths.\n\n## Key Use Cases\n\n- Analyzing internal contract-to-contract calls and value transfers\n- Debugging failed transactions and understanding revert reasons\n- Tracking contract deployments (CREATE/CREATE2 operations)\n- Understanding DeFi protocol interactions and MEV analysis\n- Monitoring delegatecall patterns and proxy contract usage\n\n## Important Relationships\n\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Self-join for trace tree**: Use `tx_hash` and `trace_address` array relationships\n- **Join with fact_event_logs**: Match execution flow with events\n- **Join with dim_contracts**: Get metadata for interacting contracts\n\n## Commonly-used Fields\n\n- `trace_index`: Sequential execution order within transaction\n- `trace_address`: Array showing position in execution tree\n- `type`: Operation type (CALL, DELEGATECALL, CREATE, etc.)\n- `from_address`: Address initiating this internal call\n- `to_address`: Destination address (NULL for contract creation)\n- `value`: Native token amount transferred\n- `trace_succeeded`: Whether execution completed successfully\n\n## Sample queries\n\n```sql\n-- Analyze internal ETH transfers\nSELECT \n block_timestamp,\n tx_hash,\n trace_index,\n type,\n from_address,\n to_address,\n value,\n gas_used,\n trace_succeeded\nFROM .core.fact_traces\nWHERE value > 0\n AND type = 'CALL'\n AND trace_succeeded\n AND block_timestamp >= CURRENT_DATE - 1\nORDER BY value DESC\nLIMIT 100;\n\n-- Find failed internal transactions with reasons\nSELECT \n tx_hash,\n trace_index,\n from_address,\n to_address,\n type,\n error_reason,\n revert_reason,\n gas,\n gas_used\nFROM .core.fact_traces\nWHERE NOT trace_succeeded\n AND block_timestamp >= CURRENT_DATE - 1\n AND error_reason IS NOT NULL\nLIMIT 50;\n\n-- Trace execution depth analysis\nSELECT \n tx_hash,\n MAX(ARRAY_SIZE(trace_address)) AS max_depth,\n COUNT(*) AS total_traces,\n SUM(CASE WHEN trace_succeeded THEN 0 ELSE 1 END) AS failed_traces,\n SUM(value) AS total_value_transferred\nFROM .core.fact_traces\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1\nHAVING MAX(ARRAY_SIZE(trace_address)) > 3\nORDER BY 2 DESC;\n\n-- Contract interaction patterns\nWITH contract_calls AS (\n SELECT \n from_address AS caller,\n to_address AS callee,\n COUNT(*) AS call_count,\n SUM(value) AS total_value\n FROM .core.fact_traces\n WHERE type IN ('CALL', 'DELEGATECALL')\n AND block_timestamp >= CURRENT_DATE - 7\n GROUP BY 1, 2\n)\nSELECT * FROM contract_calls\nWHERE call_count > 100\nORDER BY call_count DESC;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering"}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": "Sequential index of trace within the transaction's execution.\n\nExample: 3"}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": "Address that initiated this specific internal call.\n\nExample: '0x7a250d5630b4cf539739df2c5dacb4c659f2488d'"}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": "Destination address for this internal call.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": "Hex-encoded input data for this trace (function call data).\n\nExample: '0xa9059cbb0000000000000000000000001234567890123456789012345678901234567890'"}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": "Hex-encoded output data from trace execution.\n\nExample: '0x0000000000000000000000000000000000000000000000000000000000000001'"}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": "The type of EVM operation performed.\n\nExample: 'CALL'"}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": "Array describing the trace's position in the execution tree.\n\nExample: [0, 1, 2]"}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": "Count of immediate child traces spawned by this trace.\n\nExample: 2"}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": "Amount of native tokens transferred, in token units (not Wei).\n\n**Key Points**:\n- 0 for most contract interactions\n- >0 for native token transfers or payable functions\n- Already converted from Wei (divided by 1e18)\n- Use value_precise for exact amounts\n\n**Example Query**:\n```sql\n-- Daily native token transfer volume\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n SUM(value) AS total_transferred,\n COUNT(*) AS transfer_count\nFROM .core.fact_transactions\nWHERE value > 0 AND tx_succeeded\nGROUP BY 1;\n```"}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": "String representation of numeric values preserving exact precision without any adjustments.\n\n**Format**: VARCHAR containing numeric string\n**Purpose**: Prevents floating-point precision loss due to snowflake limitations\n**Contains**: Raw blockchain values (usually in smallest unit)\n\n**Example Values**:\n- \"1000000000000000000\" = 1 ETH in Wei\n- \"50000000\" = 50 USDC (6 decimals)\n\n**Usage**:\n```sql\n-- Exact value comparisons\nWHERE value_precise_raw = '1000000000000000000'\n\n-- Conversion with precision\nCAST(value_precise_raw AS NUMERIC(38,0)) / POW(10, 18) AS value_decimal\n```"}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": "String representation of numeric values adjusted for human readability while maintaining precision.\n\n**Format**: VARCHAR containing decimal string\n**Adjustments**: Converted from smallest unit to standard unit\n**Purpose**: Human-readable values without precision loss\n\n**Example Values**:\n- \"1.0\" = 1 ETH (converted from Wei)\n- \"50.0\" = 50 USDC (converted from 6 decimal places)\n\n**Best Practices**:\n```sql\n-- Safe numeric operations\nCAST(value_precise AS NUMERIC(38,18))\n\n-- Filtering large values\nWHERE CAST(value_precise AS NUMERIC(38,18)) > 1000\n\n-- Aggregations\nSUM(CAST(value_precise AS NUMERIC(38,18))) AS total_value\n```"}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": "Hexadecimal representation of transaction values as provided by the blockchain RPC.\n\n**Format**: 0x-prefixed hex string\n**Example**: \"0xde0b6b3a7640000\" = 1 ETH in Wei\n\n**Use Cases**:\n- Debugging RPC responses\n- Verifying data transformations\n- Handling special encoding cases\n\n**Conversion Example**:\n- Hex to decimal (conceptual - use built-in conversions)\n- 0xde0b6b3a7640000 = 1000000000000000000 Wei = 1 ETH\n\n**Note**: Most queries should use value or value_precise fields instead."}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": "Gas allocated to this specific trace execution.\n\nExample: 250000"}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": "Actual gas consumed by this trace execution.\n\nExample: 125673"}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": "Boolean indicating if the trace executed successfully.\n\nExample: true"}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": "Technical reason for trace failure.\n\nExample: 'Out of gas'"}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": "Human-readable revert message from contract require/revert statements.\n\nExample: 'Insufficient balance'"}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": "Boolean indicator of transaction success.\n\n**Values**:\n- TRUE: Transaction executed successfully\n- FALSE: Transaction failed/reverted"}, "FACT_TRACES_ID": {"type": "TEXT", "index": 30, "name": "FACT_TRACES_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 32, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 13809776212480, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 65696337674, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.core__fact_traces"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.0db12ac511": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.0db12ac511"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_ORIGIN_FROM_ADDRESS.a3d18bde4b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_ORIGIN_FROM_ADDRESS.a3d18bde4b"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent_INSERTED_TIMESTAMP__hour__2.a4ba5cf674": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "TRACES_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent_INSERTED_TIMESTAMP__hour__2.a4ba5cf674"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.bbf4b8149f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "COMPLETE_NFT_SALES_SELLER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.bbf4b8149f"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PROTOCOL_MARKET.f548930cd7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_PROTOCOL_MARKET", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PROTOCOL_MARKET.f548930cd7"}, "test.polygon_models.not_null_silver__mooar_sales_BLOCK_TIMESTAMP.30e0588b15": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_BLOCK_TIMESTAMP.30e0588b15"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PROTOCOL.6cf1f64077": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_PROTOCOL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PROTOCOL.6cf1f64077"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP.0653b623df": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP.0653b623df"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BLOCK_TIMESTAMP.dadda51bf9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BLOCK_TIMESTAMP.dadda51bf9"}, "model.fsc_evm.bronze__traces": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "TRACES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": ""}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 6, "name": "FILE_NAME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 8, "name": "BLOCK_NUMBER", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.bronze__traces"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP__hour__2.d8b7ffcaca": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_TRACES_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP__hour__2.d8b7ffcaca"}, "model.fsc_evm.silver_dex__sushiswap_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "SUSHISWAP_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 6, "name": "EVENT_NAME", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 7, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 8, "name": "TOKEN1", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 14, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:06UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__sushiswap_pools"}, "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_NAME.ffe92d79fd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_PLATFORM_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_NAME.ffe92d79fd"}, "test.polygon_models.not_null_silver__mooar_sales_CURRENCY_ADDRESS.bd2ef41ae9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_CURRENCY_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_CURRENCY_ADDRESS.bd2ef41ae9"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_BLOCK_NUMBER.d8a7a7833f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_BLOCK_NUMBER.d8a7a7833f"}, "model.fsc_evm.silver_dex__uniswap_v4_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "UNISWAP_V4_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 8, "name": "POOL_ADDRESS", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 9, "name": "POOL_ID", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 10, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 11, "name": "EVENT_NAME", "comment": null}, "SENDER": {"type": "TEXT", "index": 12, "name": "SENDER", "comment": null}, "RECIPIENT": {"type": "TEXT", "index": 13, "name": "RECIPIENT", "comment": null}, "AMOUNT0_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT1_UNADJ", "comment": null}, "SQRTPRICEX96": {"type": "TEXT", "index": 16, "name": "SQRTPRICEX96", "comment": null}, "LIQUIDITY": {"type": "NUMBER", "index": 17, "name": "LIQUIDITY", "comment": null}, "TICK": {"type": "NUMBER", "index": 18, "name": "TICK", "comment": null}, "FEE": {"type": "NUMBER", "index": 19, "name": "FEE", "comment": null}, "TOKEN0_ADDRESS": {"type": "TEXT", "index": 20, "name": "TOKEN0_ADDRESS", "comment": null}, "TOKEN1_ADDRESS": {"type": "TEXT", "index": 21, "name": "TOKEN1_ADDRESS", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 22, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 23, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 24, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 25, "name": "TOKEN_OUT", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 26, "name": "TICK_SPACING", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 27, "name": "_LOG_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 28, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 29, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 30, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 31, "name": "TYPE", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 32, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__uniswap_v4_swaps"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_TOTAL_FEES_RAW.b8f34e40c8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_TOTAL_FEES_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_TOTAL_FEES_RAW.b8f34e40c8"}, "model.fsc_evm.test_silver__transactions_recent": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "TRANSACTIONS_RECENT", "database": "POLYGON", "comment": "This is a view used to test the last three days of transactions.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": ""}, "TRANSACTION_JSON": {"type": "VARIANT", "index": 4, "name": "TRANSACTION_JSON", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "TRANSACTIONS_ID": {"type": "TEXT", "index": 6, "name": "TRANSACTIONS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__transactions_recent"}, "model.fsc_evm.silver_stablecoins__supply_contracts_list": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_STABLECOINS", "name": "SUPPLY_CONTRACTS_LIST", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": ""}, "CONTRACT_TYPE": {"type": "TEXT", "index": 2, "name": "CONTRACT_TYPE", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "STABLECOINS_SUPPLY_CONTRACTS_LIST_ID": {"type": "TEXT", "index": 5, "name": "STABLECOINS_SUPPLY_CONTRACTS_LIST_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:18UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 15256999424, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 406669662, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_stablecoins__supply_contracts_list"}, "model.fsc_evm.test_silver__proxies_full": {"metadata": {"type": "VIEW", "schema": "TEST_SILVER", "name": "PROXIES_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": ""}, "IMPLEMENTATION_CONTRACT": {"type": "TEXT", "index": 2, "name": "IMPLEMENTATION_CONTRACT", "comment": ""}, "START_BLOCK": {"type": "NUMBER", "index": 3, "name": "START_BLOCK", "comment": ""}, "START_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "START_TIMESTAMP", "comment": ""}, "_ID": {"type": "TEXT", "index": 5, "name": "_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "CREATED_BLOCK": {"type": "NUMBER", "index": 7, "name": "CREATED_BLOCK", "comment": ""}, "IMPLEMENTATION_CREATED_BLOCK": {"type": "NUMBER", "index": 8, "name": "IMPLEMENTATION_CREATED_BLOCK", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_silver__proxies_full"}, "test.polygon_models.not_null_silver__element_sales_CREATOR_FEE_RAW.05b31270ac": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ELEMENT_SALES_CREATOR_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": null}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": null}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": null}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": null}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 37, "name": "DECODED_LOG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__element_sales_CREATOR_FEE_RAW.05b31270ac"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_INTRA_EVENT_INDEX.d4991df060": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_INTRA_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_INTRA_EVENT_INDEX.d4991df060"}, "model.fsc_evm.silver_dex__kyberswap_v2_elastic_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "KYBERSWAP_V2_ELASTIC_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 11, "name": "TX_TO", "comment": null}, "DELTA_QTY0": {"type": "NUMBER", "index": 12, "name": "DELTA_QTY0", "comment": null}, "DELTA_QTY1": {"type": "NUMBER", "index": 13, "name": "DELTA_QTY1", "comment": null}, "SQRT_P": {"type": "NUMBER", "index": 14, "name": "SQRT_P", "comment": null}, "LIQUIDITY": {"type": "NUMBER", "index": 15, "name": "LIQUIDITY", "comment": null}, "CURRENT_TICK": {"type": "NUMBER", "index": 16, "name": "CURRENT_TICK", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 17, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 18, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 19, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 20, "name": "TOKEN1", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 21, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 22, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 26, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 27, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:46UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 470115328, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 3253237, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__kyberswap_v2_elastic_swaps"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_DECIMALS.fde79b4576": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_DECIMALS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_DECIMALS.fde79b4576"}, "model.fsc_evm.nft__ez_nft_transfers": {"metadata": {"type": "BASE TABLE", "schema": "NFT", "name": "EZ_NFT_TRANSFERS", "database": "POLYGON", "comment": "## What\n\nThis table contains all NFT transfer events for ERC-721 and ERC-1155 tokens on EVM blockchains. It provides a comprehensive view of NFT movements including transfers, mints, and burns, with enriched metadata for easier analysis.\n\n## Key Use Cases\n\n- Track daily NFT activity and transfer volume across collections\n- Analyze NFT minting patterns and mint timing\n- Identify popular collections by transfer activity\n- Monitor wallet NFT accumulation and trading behavior\n- Analyze ERC-1155 batch transfer patterns\n- Track current NFT holders and ownership changes\n- Detect burns and unusual transfer patterns\n\n## Important Relationships\n\n- **Join with ez_nft_sales**: Use `tx_hash` to match with sales but note that a single transaction can contain multiple sales. Do not use `event_index` to match as the `event_index` in ez_nft_transfers represent the `event_index` of the transfer and not the sale\n- **Join with dim_nft_collection_metadata**: This is only for the Ethereum blockchain. Use `contract_address` and `token_id` for metadata like traits, token id name and token id description\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n\n## Commonly-used Fields\n\n- `contract_address`: NFT collection contract address\n- `token_id`: Unique identifier of the specific NFT\n- `from_address` / `to_address`: Transfer participants (0x0 for mint/burn)\n- `is_mint`: Boolean flag for minting events\n- `token_standard`: NFT standard (erc721, erc1155, cryptopunks, legacy)\n- `nft_quantity`: Number of tokens transferred (always 1 for ERC-721)\n- `token_transfer_type`: Specific event type emitted\n\n## Sample Queries\n\n**Daily NFT Activity Overview**\n```sql\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n COUNT(*) AS total_transfers,\n COUNT(DISTINCT contract_address) AS unique_collections,\n COUNT(DISTINCT CASE WHEN is_mint THEN tx_hash END) AS mint_count,\n COUNT(DISTINCT from_address) AS unique_senders,\n COUNT(DISTINCT to_address) AS unique_receivers,\n SUM(IFF(token_standard = 'erc721', 1 , 0)) as erc721_transfer_count,\n SUM(IFF(token_standard = 'erc1155', 1 , 0)) as erc1155_transfer_count\nFROM .nft.ez_nft_transfers\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 1 DESC;\n```\n\n**Popular NFT Collections by Transfer Volume**\n```sql\nSELECT \n contract_address,\n name,\n COUNT(*) AS transfer_count,\n COUNT(DISTINCT token_id) AS unique_tokens,\n COUNT(DISTINCT from_address) AS unique_senders,\n COUNT(DISTINCT to_address) AS unique_receivers,\n SUM(CASE WHEN is_mint THEN 1 ELSE 0 END) AS mints,\n SUM(CASE WHEN to_address = '0x0000000000000000000000000000000000000000' THEN 1 ELSE 0 END) AS burns\nFROM .nft.ez_nft_transfers\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND name IS NOT NULL \nGROUP BY 1, 2\nORDER BY 3 DESC\nLIMIT 50;\n```\n\n**NFT Minting Analysis**\n```sql\nSELECT \n contract_address,\n name,\n DATE_TRUNC('hour', block_timestamp) AS mint_hour,\n COUNT(*) AS mint_count,\n COUNT(DISTINCT to_address) AS unique_minters,\n COUNT(DISTINCT token_id) as unique_token_id_count \nFROM .nft.ez_nft_transfers\nWHERE is_mint = TRUE\n AND block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2, 3\nORDER BY 4 DESC;\n```\n\n**Wallet NFT Activity**\n```sql\nWITH wallet_activity AS (\n SELECT \n address,\n SUM(received) AS nfts_received,\n SUM(sent) AS nfts_sent,\n SUM(received) - SUM(sent) AS net_change,\n COUNT(DISTINCT contract_address) AS collections_interacted\n FROM (\n SELECT to_address AS address, COUNT(*) AS received, 0 AS sent, contract_address\n FROM .nft.ez_nft_transfers\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND to_address != '0x0000000000000000000000000000000000000000'\n GROUP BY 1, 4\n \n UNION ALL\n \n SELECT from_address AS address, 0 AS received, COUNT(*) AS sent, contract_address\n FROM .nft.ez_nft_transfers\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND from_address != '0x0000000000000000000000000000000000000000'\n GROUP BY 1, 4\n )\n GROUP BY 1\n)\nSELECT * FROM wallet_activity\nWHERE collections_interacted > 5\nORDER BY net_change DESC\nLIMIT 100;\n```\n\n**ERC-1155 Single and Batch Transfer Analysis**\n```sql\nSELECT \n contract_address,\n name,\n token_transfer_type, \n COUNT(*) AS transfer_count \nFROM .nft.ez_nft_transfers\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND token_transfer_type in (\n 'erc1155_TransferSingle',\n 'erc1155_TransferBatch'\n )\nGROUP BY 1, 2, 3\nORDER BY 4 DESC;\n```\n\n**Latest holders for a given ERC-721 collection**\n```sql\nSELECT \n to_address,\n contract_address,\n token_id \nFROM .nft.ez_nft_transfers\nWHERE contract_address = '0xbd3531da5cf5857e7cfaa92426877b022e612cf8'\nQUALIFY ROW_NUMBER() OVER (PARTITION BY contract_address, token_id ORDER BY block_number DESC, event_index DESC) =1;\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering"}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": "Position within a batch transfer event, primarily for ERC-1155. Always starts with 1 for single transfers.\n\nExample: 1"}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": "The specific event type emitted by the contract. Values include 'erc721_Transfer', 'erc1155_TransferSingle', 'erc1155_TransferBatch', etc.\n\nExample: 'erc721_Transfer'"}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": "Boolean flag indicating if this transfer is a minting event (from address is 0x0).\n\nExample: true"}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": "The address sending/transferring the NFT. Special value of '0x0000000000000000000000000000000000000000' indicates minting event.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": "The address receiving the NFT. Special value of '0x0000000000000000000000000000000000000000' indicates burning event.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": "The address of the contract that emitted the NFT transfer event.\n\nExample: '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'"}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": "The unique identifier for a specific NFT within a collection. String format to handle various token_id formats.\n\nExample: '1234'"}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": "The number of NFTs transferred for this specific token_id. Always 1 for ERC-721, can be more for ERC-1155.\n\nExample: 1"}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": "The standard of the NFT. Values include 'erc721', 'erc1155', 'cryptopunks', and 'legacy'.\n\nExample: 'erc721'"}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": "The name of the NFT collection. For Ethereum only, join with nft.dim_nft_collection_metadata for token-level details.\n\nExample: 'Bored Ape Yacht Club'"}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:24UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 409384565248, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5407869021, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.nft__ez_nft_transfers"}, "model.polygon_models.silver__element_sales": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "ELEMENT_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": ""}, "DECODED_FLAT": {"type": "OBJECT", "index": 6, "name": "DECODED_FLAT", "comment": ""}, "EVENT_TYPE": {"type": "TEXT", "index": 7, "name": "EVENT_TYPE", "comment": ""}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 8, "name": "PLATFORM_ADDRESS", "comment": ""}, "PLATFORM_NAME": {"type": "TEXT", "index": 9, "name": "PLATFORM_NAME", "comment": ""}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 10, "name": "PLATFORM_EXCHANGE_VERSION", "comment": ""}, "INTRA_GROUPING_SELLER_FILL": {"type": "NUMBER", "index": 11, "name": "INTRA_GROUPING_SELLER_FILL", "comment": ""}, "CURRENCY_ADDRESS_RAW": {"type": "TEXT", "index": 12, "name": "CURRENCY_ADDRESS_RAW", "comment": ""}, "AMOUNT_RAW": {"type": "NUMBER", "index": 13, "name": "AMOUNT_RAW", "comment": ""}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": ""}, "TOKENID": {"type": "TEXT", "index": 15, "name": "TOKENID", "comment": ""}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": ""}, "NFT_TYPE": {"type": "TEXT", "index": 17, "name": "NFT_TYPE", "comment": ""}, "MAKER": {"type": "TEXT", "index": 18, "name": "MAKER", "comment": ""}, "TAKER": {"type": "TEXT", "index": 19, "name": "TAKER", "comment": ""}, "SELLER_ADDRESS": {"type": "TEXT", "index": 20, "name": "SELLER_ADDRESS", "comment": ""}, "BUYER_ADDRESS": {"type": "TEXT", "index": 21, "name": "BUYER_ADDRESS", "comment": ""}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 22, "name": "CURRENCY_ADDRESS", "comment": ""}, "TOTAL_PRICE_RAW": {"type": "FLOAT", "index": 23, "name": "TOTAL_PRICE_RAW", "comment": ""}, "TOTAL_FEES_RAW": {"type": "FLOAT", "index": 24, "name": "TOTAL_FEES_RAW", "comment": ""}, "PLATFORM_FEE_RAW": {"type": "FLOAT", "index": 25, "name": "PLATFORM_FEE_RAW", "comment": ""}, "CREATOR_FEE_RAW": {"type": "FLOAT", "index": 26, "name": "CREATOR_FEE_RAW", "comment": ""}, "FEES_ARRAY": {"type": "VARIANT", "index": 27, "name": "FEES_ARRAY", "comment": ""}, "ORDERHASH": {"type": "TEXT", "index": 28, "name": "ORDERHASH", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 29, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 31, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": ""}, "INPUT_DATA": {"type": "TEXT", "index": 33, "name": "INPUT_DATA", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 34, "name": "_LOG_ID", "comment": ""}, "NFT_LOG_ID": {"type": "TEXT", "index": 35, "name": "NFT_LOG_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "DECODED_LOG": {"type": "OBJECT", "index": 38, "name": "DECODED_LOG", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:33UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 418081792, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 797164, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_NFT_ADDRESS.f813b4d9e7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_NFT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_NFT_ADDRESS.f813b4d9e7"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_full__INSERTED_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.8c87acbb48": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "CREATED_CONTRACTS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_full__INSERTED_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.8c87acbb48"}, "model.fsc_evm.silver_bridge__everclear_intent_added": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "EVERCLEAR_INTENT_ADDED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "INTENT_ID": {"type": "TEXT", "index": 9, "name": "INTENT_ID", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 10, "name": "INITIATOR", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 11, "name": "RECEIVER", "comment": null}, "INPUT_ASSET": {"type": "TEXT", "index": 12, "name": "INPUT_ASSET", "comment": null}, "OUTPUT_ASSET_RAW": {"type": "TEXT", "index": 13, "name": "OUTPUT_ASSET_RAW", "comment": null}, "SOURCE_CHAIN_ID": {"type": "TEXT", "index": 14, "name": "SOURCE_CHAIN_ID", "comment": null}, "AMOUNT_RAW": {"type": "TEXT", "index": 15, "name": "AMOUNT_RAW", "comment": null}, "DESTINATION_COUNT": {"type": "NUMBER", "index": 16, "name": "DESTINATION_COUNT", "comment": null}, "DESTINATION_0": {"type": "TEXT", "index": 17, "name": "DESTINATION_0", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 20, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:29UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 422912, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1410, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__everclear_intent_added"}, "model.polygon_models.silver__seaport_1_5_sales": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "SEAPORT_1_5_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": ""}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": ""}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": ""}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": ""}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": ""}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": ""}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": ""}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": ""}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": ""}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": ""}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": ""}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": ""}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": ""}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": ""}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": ""}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": ""}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": ""}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": ""}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": ""}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": ""}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": ""}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": ""}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": ""}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": ""}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": ""}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": ""}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": ""}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": ""}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:35UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 9582431232, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8960256, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__seaport_1_5_sales"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full__INSERTED_TIMESTAMP__hour__2.00b41ab86e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "BLOCKS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full__INSERTED_TIMESTAMP__hour__2.00b41ab86e"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__blocks_recent_BLOCK_NUMBER.a11e2bbd58": {"metadata": {"type": "BASE TABLE", "schema": "FSC_EVM_SEQUENCE_GAPS_TEST_SILVER", "name": "BLOCKS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PREV_BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "PREV_BLOCK_NUMBER", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "GAP": {"type": "NUMBER", "index": 3, "name": "GAP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__blocks_recent_BLOCK_NUMBER.a11e2bbd58"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.254ed0fd41": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "TRACES_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.254ed0fd41"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT__0_xX_0_9a_fA_F_.47d739e923": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_BLOCKS_RECENT_TRANSACTIONS_ROOT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT__0_xX_0_9a_fA_F_.47d739e923"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__transactions_full_TRANSACTIONS_ID.b3643be5d1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "TRANSACTIONS_FULL_TRANSACTIONS_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TRANSACTIONS_ID": {"type": "TEXT", "index": 1, "name": "TRANSACTIONS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 11:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__transactions_full_TRANSACTIONS_ID.b3643be5d1"}, "model.fsc_evm.silver_dex__poolcreated_evt_v3_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "POOLCREATED_EVT_V3_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN0_ADDRESS": {"type": "TEXT", "index": 7, "name": "TOKEN0_ADDRESS", "comment": null}, "TOKEN1_ADDRESS": {"type": "TEXT", "index": 8, "name": "TOKEN1_ADDRESS", "comment": null}, "FEE": {"type": "NUMBER", "index": 9, "name": "FEE", "comment": null}, "FEE_PERCENT": {"type": "FLOAT", "index": 10, "name": "FEE_PERCENT", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 11, "name": "TICK_SPACING", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 12, "name": "POOL_ADDRESS", "comment": null}, "INIT_TICK": {"type": "FLOAT", "index": 13, "name": "INIT_TICK", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 14, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 15, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 16, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 17, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 18, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:31UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 7946752, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 35212, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__poolcreated_evt_v3_pools"}, "test.fsc_evm.not_null_silver__complete_native_prices_PRICE.5d22b3dfe0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NATIVE_PRICES_PRICE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "PRICE": {"type": "FLOAT", "index": 6, "name": "PRICE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN", "comment": null}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 8, "name": "IS_IMPUTED", "comment": null}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 10, "name": "PROVIDER", "comment": null}, "SOURCE": {"type": "TEXT", "index": 11, "name": "SOURCE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "COMPLETE_NATIVE_PRICES_ID": {"type": "TEXT", "index": 15, "name": "COMPLETE_NATIVE_PRICES_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__complete_native_prices_PRICE.5d22b3dfe0"}, "test.fsc_evm.not_null_test_silver__blocks_recent_BLOCK_JSON.aabd0a98d5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "BLOCKS_RECENT_BLOCK_JSON", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "BLOCK_JSON": {"type": "VARIANT", "index": 3, "name": "BLOCK_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": null}, "BLOCKS_ID": {"type": "TEXT", "index": 5, "name": "BLOCKS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 8, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__blocks_recent_BLOCK_JSON.aabd0a98d5"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS.c02c8c62a8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS.c02c8c62a8"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__element_sales_EVENT_TYPE__bid_won__sale.13f1c327ac": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_SET_SILVER", "name": "ELEMENT_SALES_EVENT_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE_FIELD": {"type": "TEXT", "index": 1, "name": "VALUE_FIELD", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__element_sales_EVENT_TYPE__bid_won__sale.13f1c327ac"}, "model.fsc_evm.silver_dex__dackie_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "DACKIE_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN0_ADDRESS": {"type": "TEXT", "index": 6, "name": "TOKEN0_ADDRESS", "comment": null}, "TOKEN1_ADDRESS": {"type": "TEXT", "index": 7, "name": "TOKEN1_ADDRESS", "comment": null}, "FEE": {"type": "NUMBER", "index": 8, "name": "FEE", "comment": null}, "FEE_PERCENT": {"type": "FLOAT", "index": 9, "name": "FEE_PERCENT", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 10, "name": "TICK_SPACING", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 11, "name": "POOL_ADDRESS", "comment": null}, "INIT_TICK": {"type": "FLOAT", "index": 12, "name": "INIT_TICK", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 14, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 15, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 16, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:03UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__dackie_pools"}, "model.polygon_models.silver__seaport_1_6_sales": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "SEAPORT_1_6_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": ""}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": ""}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": ""}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": ""}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": ""}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": ""}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": ""}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": ""}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": ""}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": ""}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": ""}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": ""}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": ""}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": ""}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": ""}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": ""}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": ""}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": ""}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": ""}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": ""}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": ""}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": ""}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": ""}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": ""}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": ""}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": ""}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": ""}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": ""}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 6029385216, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 6245087, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver__seaport_1_6_sales"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_DEPOSITOR.1491427a24": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_DEPOSITS_DEPOSITOR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_DEPOSITS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_DEPOSITS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_DEPOSITOR.1491427a24"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_AMOUNT.962946cb51": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_RECENT_AMOUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 6, "name": "TRACE_ADDRESS", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "TO_ADDRESS", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": null}, "AMOUNT_PRECISE_RAW": {"type": "TEXT", "index": 11, "name": "AMOUNT_PRECISE_RAW", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 12, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "EZ_NATIVE_TRANSFERS_ID": {"type": "TEXT", "index": 17, "name": "EZ_NATIVE_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_AMOUNT.962946cb51"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_event_logs_recent_TX_HASH__EVENT_INDEX.63ec130f07": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 2, "name": "EVENT_INDEX", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_event_logs_recent_TX_HASH__EVENT_INDEX.63ec130f07"}, "model.fsc_evm.silver_lending__aave_interest_rates": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "AAVE_INTEREST_RATES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 9, "name": "TOKEN_ADDRESS", "comment": null}, "SUPPLY_RATE_UNADJ": {"type": "NUMBER", "index": 10, "name": "SUPPLY_RATE_UNADJ", "comment": null}, "STABLE_BORROW_RATE_UNADJ": {"type": "NUMBER", "index": 11, "name": "STABLE_BORROW_RATE_UNADJ", "comment": null}, "VARIABLE_BORROW_RATE_UNADJ": {"type": "NUMBER", "index": 12, "name": "VARIABLE_BORROW_RATE_UNADJ", "comment": null}, "LIQUIDITY_INDEX": {"type": "NUMBER", "index": 13, "name": "LIQUIDITY_INDEX", "comment": null}, "VARIABLE_BORROW_INDEX": {"type": "NUMBER", "index": 14, "name": "VARIABLE_BORROW_INDEX", "comment": null}, "LENDING_POOL_CONTRACT": {"type": "TEXT", "index": 15, "name": "LENDING_POOL_CONTRACT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 16, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 17, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 18, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 19, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 21, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 5587345408, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 44537983, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__aave_interest_rates"}, "model.fsc_evm.test_gold__fact_blocks_full": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "FACT_BLOCKS_FULL", "database": "POLYGON", "comment": "This is a view used to test all of the gold fact blocks model.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_HASH": {"type": "TEXT", "index": 2, "name": "BLOCK_HASH", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": ""}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": ""}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": ""}, "SIZE": {"type": "NUMBER", "index": 6, "name": "SIZE", "comment": ""}, "MINER": {"type": "TEXT", "index": 7, "name": "MINER", "comment": ""}, "MIX_HASH": {"type": "TEXT", "index": 8, "name": "MIX_HASH", "comment": ""}, "EXTRA_DATA": {"type": "TEXT", "index": 9, "name": "EXTRA_DATA", "comment": ""}, "PARENT_HASH": {"type": "TEXT", "index": 10, "name": "PARENT_HASH", "comment": ""}, "GAS_USED": {"type": "NUMBER", "index": 11, "name": "GAS_USED", "comment": ""}, "GAS_LIMIT": {"type": "NUMBER", "index": 12, "name": "GAS_LIMIT", "comment": ""}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 13, "name": "BASE_FEE_PER_GAS", "comment": ""}, "DIFFICULTY": {"type": "NUMBER", "index": 14, "name": "DIFFICULTY", "comment": ""}, "TOTAL_DIFFICULTY": {"type": "NUMBER", "index": 15, "name": "TOTAL_DIFFICULTY", "comment": ""}, "SHA3_UNCLES": {"type": "TEXT", "index": 16, "name": "SHA3_UNCLES", "comment": ""}, "UNCLE_BLOCKS": {"type": "VARIANT", "index": 17, "name": "UNCLE_BLOCKS", "comment": ""}, "NONCE": {"type": "NUMBER", "index": 18, "name": "NONCE", "comment": ""}, "RECEIPTS_ROOT": {"type": "TEXT", "index": 19, "name": "RECEIPTS_ROOT", "comment": ""}, "STATE_ROOT": {"type": "TEXT", "index": 20, "name": "STATE_ROOT", "comment": ""}, "TRANSACTIONS_ROOT": {"type": "TEXT", "index": 21, "name": "TRANSACTIONS_ROOT", "comment": ""}, "LOGS_BLOOM": {"type": "TEXT", "index": 22, "name": "LOGS_BLOOM", "comment": ""}, "FACT_BLOCKS_ID": {"type": "TEXT", "index": 23, "name": "FACT_BLOCKS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_TRACE_INDEX__NUMBER__FLOAT.0fb959327e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_TRACES_RECENT_TRACE_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_TRACE_INDEX__NUMBER__FLOAT.0fb959327e"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP.580b67cb8c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP.580b67cb8c"}, "model.fsc_evm.test_gold__ez_balances_native_daily_full": {"metadata": {"type": "VIEW", "schema": "TEST_GOLD", "name": "EZ_BALANCES_NATIVE_DAILY_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": ""}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": ""}, "BALANCE_HEX": {"type": "TEXT", "index": 5, "name": "BALANCE_HEX", "comment": ""}, "BALANCE_RAW": {"type": "NUMBER", "index": 6, "name": "BALANCE_RAW", "comment": ""}, "BALANCE_PRECISE": {"type": "TEXT", "index": 7, "name": "BALANCE_PRECISE", "comment": ""}, "BALANCE": {"type": "FLOAT", "index": 8, "name": "BALANCE", "comment": ""}, "BALANCE_USD": {"type": "FLOAT", "index": 9, "name": "BALANCE_USD", "comment": ""}, "EZ_BALANCES_NATIVE_DAILY_ID": {"type": "TEXT", "index": 10, "name": "EZ_BALANCES_NATIVE_DAILY_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.test_gold__ez_balances_native_daily_full"}, "test.fsc_evm.not_null_test_silver__transactions_recent_BLOCK_NUMBER.de7069ea97": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRANSACTIONS_RECENT_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 3, "name": "TX_POSITION", "comment": null}, "TRANSACTION_JSON": {"type": "VARIANT", "index": 4, "name": "TRANSACTION_JSON", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRANSACTIONS_ID": {"type": "TEXT", "index": 6, "name": "TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__transactions_recent_BLOCK_NUMBER.de7069ea97"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__service_event_logs__LOG_ID.283185ebcc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_OLAS", "name": "SERVICE_EVENT_LOGS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__service_event_logs__LOG_ID.283185ebcc"}, "model.fsc_evm.silver_bridge__cctp_depositforburn": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "CCTP_DEPOSITFORBURN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 10, "name": "DEPOSITOR", "comment": null}, "SENDER": {"type": "TEXT", "index": 11, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 12, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 13, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 14, "name": "DESTINATION_CHAIN", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "NUMBER", "index": 15, "name": "DESTINATION_CHAIN_ID", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 16, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 17, "name": "AMOUNT_UNADJ", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 20, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:29UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 54857216, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 396833, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__cctp_depositforburn"}, "model.fsc_evm.silver_lending__morpho_flashloans": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "MORPHO_FLASHLOANS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "INITIATOR": {"type": "TEXT", "index": 10, "name": "INITIATOR", "comment": null}, "TARGET": {"type": "TEXT", "index": 11, "name": "TARGET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "FLASHLOAN_AMOUNT_UNADJ": {"type": "NUMBER", "index": 13, "name": "FLASHLOAN_AMOUNT_UNADJ", "comment": null}, "PREMIUM_AMOUNT_UNADJ": {"type": "TEXT", "index": 14, "name": "PREMIUM_AMOUNT_UNADJ", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 15, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 16, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 17, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 18, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 20, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:32UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 45686272, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 340914, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__morpho_flashloans"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_TX_POSITION__NUMBER__FLOAT.81ee6df17c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "FACT_TRACES_RECENT_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_TX_POSITION__NUMBER__FLOAT.81ee6df17c"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_6_sales_nft_log_id.ac3a041a56": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "SEAPORT_1_6_SALES_NFT_LOG_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"NFT_LOG_ID": {"type": "TEXT", "index": 1, "name": "NFT_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_6_sales_nft_log_id.ac3a041a56"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.9fe6abc15c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "TRANSACTIONS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.9fe6abc15c"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_VERSION.7818ca0d4e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_VERSION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 15, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 19, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 20, "name": "TOKEN_SYMBOL", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 21, "name": "TOKEN_DECIMALS", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 23, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 24, "name": "AMOUNT_USD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IS_VERIFIED", "comment": null}, "_ID": {"type": "TEXT", "index": 26, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_BRIDGE_ACTIVITY_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_BRIDGE_ACTIVITY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_VERSION.7818ca0d4e"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_BLOCK_TIMESTAMP.6917d6df42": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "POLYMARKET_FILLED_ORDERS_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "QUESTION": {"type": "TEXT", "index": 10, "name": "QUESTION", "comment": null}, "MARKET_SLUG": {"type": "TEXT", "index": 11, "name": "MARKET_SLUG", "comment": null}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "END_DATE_ISO", "comment": null}, "OUTCOME": {"type": "TEXT", "index": 13, "name": "OUTCOME", "comment": null}, "ORDER_HASH": {"type": "TEXT", "index": 14, "name": "ORDER_HASH", "comment": null}, "MAKER": {"type": "TEXT", "index": 15, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 16, "name": "TAKER", "comment": null}, "CONDITION_ID": {"type": "TEXT", "index": 17, "name": "CONDITION_ID", "comment": null}, "QUESTION_ID": {"type": "TEXT", "index": 18, "name": "QUESTION_ID", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 19, "name": "ASSET_ID", "comment": null}, "MAKER_ASSET_ID": {"type": "TEXT", "index": 20, "name": "MAKER_ASSET_ID", "comment": null}, "TAKER_ASSET_ID": {"type": "TEXT", "index": 21, "name": "TAKER_ASSET_ID", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "AMOUNT_USD", "comment": null}, "SHARES": {"type": "FLOAT", "index": 23, "name": "SHARES", "comment": null}, "PRICE_PER_SHARE": {"type": "FLOAT", "index": 24, "name": "PRICE_PER_SHARE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "POLYMARKET_FILLED_ORDERS_ID": {"type": "TEXT", "index": 27, "name": "POLYMARKET_FILLED_ORDERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_BLOCK_TIMESTAMP.6917d6df42"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_ORIGIN_FUNCTION_SIGNATURE.d94e4328a7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_ORIGIN_FUNCTION_SIGNATURE.d94e4328a7"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.18683075ab": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MOOAR_SALES_PLATFORM_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.18683075ab"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_TX_HASH__0_xX_0_9a_fA_F_.4980f309d1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_1_SALES_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_TX_HASH__0_xX_0_9a_fA_F_.4980f309d1"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.c4c3f0c765": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SEAPORT_1_1_SALES_CREATOR_FEE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.c4c3f0c765"}, "model.fsc_evm.silver_bridge__wormhole_transfers": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "WORMHOLE_TRANSFERS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 9, "name": "BRIDGE_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 10, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 11, "name": "RECEIVER", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 12, "name": "AMOUNT_UNADJ", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "NUMBER", "index": 13, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 14, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 15, "name": "TOKEN_ADDRESS", "comment": null}, "DESTINATION_RECIPIENT_ADDRESS": {"type": "TEXT", "index": 16, "name": "DESTINATION_RECIPIENT_ADDRESS", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 20, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:30UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 48020992, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 375795, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__wormhole_transfers"}, "seed.fsc_evm.silver_bridge__stargate_v2_asset_seed": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "STARGATE_V2_ASSET_SEED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "ASSET": {"type": "TEXT", "index": 2, "name": "ASSET", "comment": null}, "ID": {"type": "NUMBER", "index": 3, "name": "ID", "comment": null}, "LPTOKENSYMBOL": {"type": "TEXT", "index": 4, "name": "LPTOKENSYMBOL", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 5, "name": "ADDRESS", "comment": null}, "OFTADDRESS": {"type": "TEXT", "index": 6, "name": "OFTADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 5632, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 37, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver_bridge__stargate_v2_asset_seed"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.ea367e02b2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_4_SALES_NFT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.ea367e02b2"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BLOCK_TIMESTAMP.27eecb602c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 8, "name": "BRIDGE_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 10, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 11, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 12, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 13, "name": "TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 14, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 15, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 16, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "TEXT", "index": 17, "name": "DESTINATION_CHAIN_ID", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 18, "name": "DESTINATION_CHAIN", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 19, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 20, "name": "TOKEN_SYMBOL", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 21, "name": "TOKEN_DECIMALS", "comment": null}, "AMOUNT_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 23, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 24, "name": "AMOUNT_USD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IS_VERIFIED", "comment": null}, "_ID": {"type": "TEXT", "index": 26, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_BRIDGE_ACTIVITY_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_BRIDGE_ACTIVITY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BLOCK_TIMESTAMP.27eecb602c"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_BLOCK_NUMBER.17ae3af028": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_SWAPS_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 8, "name": "POOL_NAME", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 9, "name": "POOL_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 10, "name": "EVENT_NAME", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "FLOAT", "index": 11, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_IN": {"type": "FLOAT", "index": 12, "name": "AMOUNT_IN", "comment": null}, "AMOUNT_IN_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_IN_USD", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "FLOAT", "index": 14, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "AMOUNT_OUT": {"type": "FLOAT", "index": 15, "name": "AMOUNT_OUT", "comment": null}, "AMOUNT_OUT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_OUT_USD", "comment": null}, "SENDER": {"type": "TEXT", "index": 17, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 18, "name": "TX_TO", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 19, "name": "EVENT_INDEX", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 20, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 21, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 22, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 23, "name": "TYPE", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 24, "name": "TOKEN_IN", "comment": null}, "TOKEN_IN_IS_VERIFIED": {"type": "BOOLEAN", "index": 25, "name": "TOKEN_IN_IS_VERIFIED", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 26, "name": "TOKEN_OUT", "comment": null}, "TOKEN_OUT_IS_VERIFIED": {"type": "BOOLEAN", "index": 27, "name": "TOKEN_OUT_IS_VERIFIED", "comment": null}, "SYMBOL_IN": {"type": "TEXT", "index": 28, "name": "SYMBOL_IN", "comment": null}, "SYMBOL_OUT": {"type": "TEXT", "index": 29, "name": "SYMBOL_OUT", "comment": null}, "DECIMALS_IN": {"type": "NUMBER", "index": 30, "name": "DECIMALS_IN", "comment": null}, "DECIMALS_OUT": {"type": "NUMBER", "index": 31, "name": "DECIMALS_OUT", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 32, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_SWAPS_ID": {"type": "TEXT", "index": 34, "name": "COMPLETE_DEX_SWAPS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 35, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 37, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_BLOCK_NUMBER.17ae3af028"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_ORIGIN_FROM_ADDRESS.3c02ef2628": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_ORIGIN_FROM_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_ORIGIN_FROM_ADDRESS.3c02ef2628"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_COUNT.f303fa842b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_STATS", "name": "CORE_METRICS_HOURLY_BLOCK_COUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_TIMESTAMP_HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "BLOCK_TIMESTAMP_HOUR", "comment": null}, "BLOCK_NUMBER_MIN": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER_MIN", "comment": null}, "BLOCK_NUMBER_MAX": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER_MAX", "comment": null}, "BLOCK_COUNT": {"type": "NUMBER", "index": 4, "name": "BLOCK_COUNT", "comment": null}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "TRANSACTION_COUNT", "comment": null}, "TRANSACTION_COUNT_SUCCESS": {"type": "NUMBER", "index": 6, "name": "TRANSACTION_COUNT_SUCCESS", "comment": null}, "TRANSACTION_COUNT_FAILED": {"type": "NUMBER", "index": 7, "name": "TRANSACTION_COUNT_FAILED", "comment": null}, "UNIQUE_FROM_COUNT": {"type": "NUMBER", "index": 8, "name": "UNIQUE_FROM_COUNT", "comment": null}, "UNIQUE_TO_COUNT": {"type": "NUMBER", "index": 9, "name": "UNIQUE_TO_COUNT", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 10, "name": "TOTAL_FEES", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "CORE_METRICS_HOURLY_ID": {"type": "TEXT", "index": 12, "name": "CORE_METRICS_HOURLY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_COUNT.f303fa842b"}, "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE.764964b444": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MOOAR_SALES_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE.764964b444"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BLOCK_NUMBER.3b1396e922": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BLOCK_NUMBER.3b1396e922"}, "model.fsc_evm.silver_bridge__hop_transfersenttol2": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "HOP_TRANSFERSENTTOL2", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 3, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 10, "name": "EVENT_REMOVED", "comment": null}, "TX_STATUS": {"type": "TEXT", "index": 11, "name": "TX_STATUS", "comment": null}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 12, "name": "BRIDGE_ADDRESS", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 14, "name": "RECEIVER", "comment": null}, "DESTINATION_CHAIN_RECEIVER": {"type": "TEXT", "index": 15, "name": "DESTINATION_CHAIN_RECEIVER", "comment": null}, "DESTINATION_CHAIN_ID": {"type": "NUMBER", "index": 16, "name": "DESTINATION_CHAIN_ID", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 17, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 18, "name": "AMOUNT", "comment": null}, "AMOUNT_OUT_MIN": {"type": "NUMBER", "index": 19, "name": "AMOUNT_OUT_MIN", "comment": null}, "DEADLINE": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "DEADLINE", "comment": null}, "RELAYER": {"type": "TEXT", "index": 21, "name": "RELAYER", "comment": null}, "RELAYER_FEE": {"type": "NUMBER", "index": 22, "name": "RELAYER_FEE", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 23, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 24, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 25, "name": "TYPE", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 26, "name": "PLATFORM", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 27, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__hop_transfersenttol2"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_PRECISE.d873ec7feb": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_VALUE_PRECISE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_PRECISE.d873ec7feb"}, "model.fsc_evm.silver_lending__euler_withdraws": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "EULER_WITHDRAWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 9, "name": "PROTOCOL_MARKET", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 10, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 11, "name": "AMOUNT_UNADJ", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 12, "name": "DEPOSITOR", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 14, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 15, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__euler_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TX_HASH.ce8de9e71f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_WITHDRAWS_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 11, "name": "DEPOSITOR", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_WITHDRAWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_WITHDRAWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TX_HASH.ce8de9e71f"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_TX_HASH__0_xX_0_9a_fA_F_.d7f102a501": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_TX_HASH__0_xX_0_9a_fA_F_.d7f102a501"}, "model.fsc_evm.silver_dex__swap_evt_v3_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "SWAP_EVT_V3_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "POOL_ADDRESS", "comment": null}, "RECIPIENT": {"type": "TEXT", "index": 11, "name": "RECIPIENT", "comment": null}, "SENDER": {"type": "TEXT", "index": 12, "name": "SENDER", "comment": null}, "FEE": {"type": "NUMBER", "index": 13, "name": "FEE", "comment": null}, "TICK": {"type": "FLOAT", "index": 14, "name": "TICK", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 15, "name": "TICK_SPACING", "comment": null}, "LIQUIDITY": {"type": "FLOAT", "index": 16, "name": "LIQUIDITY", "comment": null}, "TOKEN0_ADDRESS": {"type": "TEXT", "index": 17, "name": "TOKEN0_ADDRESS", "comment": null}, "TOKEN1_ADDRESS": {"type": "TEXT", "index": 18, "name": "TOKEN1_ADDRESS", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 19, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 20, "name": "AMOUNT1_UNADJ", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "FLOAT", "index": 21, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 23, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 24, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 25, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 26, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 27, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 28, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 29, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:37UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 26495610368, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 207352778, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__swap_evt_v3_swaps"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_DECIMALS.f902f9987b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_BALANCES_ERC20_DAILY_FULL_DECIMALS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 2, "name": "BLOCK_DATE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": null}, "BALANCE_HEX": {"type": "TEXT", "index": 7, "name": "BALANCE_HEX", "comment": null}, "BALANCE_RAW": {"type": "NUMBER", "index": 8, "name": "BALANCE_RAW", "comment": null}, "BALANCE_PRECISE": {"type": "TEXT", "index": 9, "name": "BALANCE_PRECISE", "comment": null}, "BALANCE": {"type": "FLOAT", "index": 10, "name": "BALANCE", "comment": null}, "BALANCE_USD": {"type": "FLOAT", "index": 11, "name": "BALANCE_USD", "comment": null}, "EZ_BALANCES_ERC20_DAILY_ID": {"type": "TEXT", "index": 12, "name": "EZ_BALANCES_ERC20_DAILY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_DECIMALS.f902f9987b"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.d8be899441": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_6_SALES_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.d8be899441"}, "model.fsc_evm.silver_lending__morpho_withdraws": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_LENDING", "name": "MORPHO_WITHDRAWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 8, "name": "TOKEN_ADDRESS", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 9, "name": "AMOUNT_UNADJ", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 10, "name": "DEPOSITOR", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 11, "name": "PROTOCOL_MARKET", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 12, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 13, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 14, "name": "VERSION", "comment": null}, "_ID": {"type": "TEXT", "index": 15, "name": "_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 17, "name": "EVENT_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:33UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 3410944, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 27174, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_lending__morpho_withdraws"}, "test.polygon_models.not_null_silver__seaport_1_6_sales__INSERTED_TIMESTAMP.7aa84213a2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales__INSERTED_TIMESTAMP.7aa84213a2"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_TOKENID.2f9a22db6b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_TOKENID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_TOKENID.2f9a22db6b"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_NAME.1fb199e6b9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_4_SALES_PLATFORM_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_NAME.1fb199e6b9"}, "test.fsc_evm.not_null_test_silver__traces_recent_TRACE_JSON.904b3c8953": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_SILVER", "name": "TRACES_RECENT_TRACE_JSON", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 2, "name": "TX_POSITION", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 3, "name": "TRACE_ADDRESS", "comment": null}, "PARENT_TRACE_ADDRESS": {"type": "TEXT", "index": 4, "name": "PARENT_TRACE_ADDRESS", "comment": null}, "TRACE_ADDRESS_ARRAY": {"type": "ARRAY", "index": 5, "name": "TRACE_ADDRESS_ARRAY", "comment": null}, "TRACE_JSON": {"type": "OBJECT", "index": 6, "name": "TRACE_JSON", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 7, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TRACES_ID": {"type": "TEXT", "index": 9, "name": "TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_silver__traces_recent_TRACE_JSON.904b3c8953"}, "test.polygon_models.not_null_silver__tofunft_sales_NFT_LOG_ID.5be70a9545": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOFUNFT_SALES_NFT_LOG_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "INTRA_TX_GROUPING": {"type": "NUMBER", "index": 8, "name": "INTRA_TX_GROUPING", "comment": null}, "TRUNC_GROUPING": {"type": "NUMBER", "index": 9, "name": "TRUNC_GROUPING", "comment": null}, "USER_ADDRESS": {"type": "TEXT", "index": 10, "name": "USER_ADDRESS", "comment": null}, "SIGNER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SIGNER_ADDRESS", "comment": null}, "CALLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "CALLER_ADDRESS", "comment": null}, "FEE_RATE": {"type": "NUMBER", "index": 13, "name": "FEE_RATE", "comment": null}, "ROYALTY_RATE": {"type": "NUMBER", "index": 14, "name": "ROYALTY_RATE", "comment": null}, "FEE_RECEIVER_ADDRESS": {"type": "TEXT", "index": 15, "name": "FEE_RECEIVER_ADDRESS", "comment": null}, "ROYALTY_RECEIVER_ADDRESS": {"type": "TEXT", "index": 16, "name": "ROYALTY_RECEIVER_ADDRESS", "comment": null}, "BUNDLE_ARRAY_SIZE": {"type": "NUMBER", "index": 17, "name": "BUNDLE_ARRAY_SIZE", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 18, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 19, "name": "TOKENID", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 20, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 21, "name": "ERC1155_VALUE", "comment": null}, "KIND": {"type": "NUMBER", "index": 22, "name": "KIND", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 23, "name": "EVENT_TYPE", "comment": null}, "STATUS": {"type": "NUMBER", "index": 24, "name": "STATUS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 25, "name": "BUYER_ADDRESS", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 26, "name": "SELLER_ADDRESS", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 27, "name": "CURRENCY_ADDRESS", "comment": null}, "PRICE_RAW_TRACES": {"type": "NUMBER", "index": 28, "name": "PRICE_RAW_TRACES", "comment": null}, "NET_PRICE_RAW": {"type": "NUMBER", "index": 29, "name": "NET_PRICE_RAW", "comment": null}, "PRICE_RAW_LOGS": {"type": "NUMBER", "index": 30, "name": "PRICE_RAW_LOGS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 31, "name": "TOTAL_PRICE_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 32, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 33, "name": "CREATOR_FEE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 34, "name": "TOTAL_FEES_RAW", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 35, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "_INSERTED_TIMESTAMP", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 38, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 39, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 40, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 41, "name": "TX_FEE", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 42, "name": "INPUT_DATA", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_NFT_LOG_ID.5be70a9545"}, "seed.fsc_evm.silver_dex__eth_curve_pools_legacy": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "ETH_CURVE_POOLS_LEGACY", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"POOL_ADDRESS": {"type": "TEXT", "index": 1, "name": "POOL_ADDRESS", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_INDEX": {"type": "NUMBER", "index": 3, "name": "TOKEN_INDEX", "comment": null}, "TOKEN_TYPE": {"type": "TEXT", "index": 4, "name": "TOKEN_TYPE", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 5, "name": "TOKEN_SYMBOL", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 6, "name": "TOKEN_DECIMALS", "comment": null}, "TOKEN_NAME": {"type": "TEXT", "index": 7, "name": "TOKEN_NAME", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 8, "name": "POOL_NAME", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 9, "name": "POOL_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DEPLOYER_ADDRESS": {"type": "TEXT", "index": 11, "name": "DEPLOYER_ADDRESS", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 12, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 13, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "BLOCK_TIMESTAMP", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 15, "name": "_CALL_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 7680, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 14, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver_dex__eth_curve_pools_legacy"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_ADDRESS.86ed5a1d98": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRACES_RECENT_TRACE_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "INPUT": {"type": "TEXT", "index": 8, "name": "INPUT", "comment": null}, "OUTPUT": {"type": "TEXT", "index": 9, "name": "OUTPUT", "comment": null}, "TYPE": {"type": "TEXT", "index": 10, "name": "TYPE", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 11, "name": "TRACE_ADDRESS", "comment": null}, "SUB_TRACES": {"type": "NUMBER", "index": 12, "name": "SUB_TRACES", "comment": null}, "VALUE": {"type": "FLOAT", "index": 13, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 14, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 15, "name": "VALUE_PRECISE", "comment": null}, "VALUE_HEX": {"type": "TEXT", "index": 16, "name": "VALUE_HEX", "comment": null}, "GAS": {"type": "NUMBER", "index": 17, "name": "GAS", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 18, "name": "GAS_USED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 19, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 21, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TRACE_SUCCEEDED": {"type": "BOOLEAN", "index": 22, "name": "TRACE_SUCCEEDED", "comment": null}, "ERROR_REASON": {"type": "TEXT", "index": 23, "name": "ERROR_REASON", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 24, "name": "REVERT_REASON", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 25, "name": "TX_SUCCEEDED", "comment": null}, "FACT_TRACES_ID": {"type": "TEXT", "index": 26, "name": "FACT_TRACES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_ADDRESS.86ed5a1d98"}, "seed.fsc_evm.silver_bridge__layerzero_v2_bridge_seed": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "LAYERZERO_V2_BRIDGE_SEED", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "EID": {"type": "NUMBER", "index": 2, "name": "EID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2560, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 167, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.fsc_evm.silver_bridge__layerzero_v2_bridge_seed"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_borrows__log_id.2a9a480e32": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_LOG_ID": {"type": "TEXT", "index": 1, "name": "_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_borrows__log_id.2a9a480e32"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TOPICS.c0ac9e4c8a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_TOPICS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:47UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TOPICS.c0ac9e4c8a"}, "test.fsc_evm.unique_silver__complete_native_prices_COMPLETE_NATIVE_PRICES_ID.6e5981548b": {"metadata": {"type": "BASE TABLE", "schema": "UNIQUE_SILVER", "name": "COMPLETE_NATIVE_PRICES_COMPLETE_NATIVE_PRICES_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"UNIQUE_FIELD": {"type": "TEXT", "index": 1, "name": "UNIQUE_FIELD", "comment": null}, "N_RECORDS": {"type": "NUMBER", "index": 2, "name": "N_RECORDS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.unique_silver__complete_native_prices_COMPLETE_NATIVE_PRICES_ID.6e5981548b"}, "test.polygon_models.not_null_silver_olas__service_registrations_TX_HASH.39ebb01275": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_OLAS", "name": "SERVICE_REGISTRATIONS_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OWNER_ADDRESS": {"type": "TEXT", "index": 10, "name": "OWNER_ADDRESS", "comment": null}, "MULTISIG_ADDRESS": {"type": "TEXT", "index": 11, "name": "MULTISIG_ADDRESS", "comment": null}, "SERVICE_ID": {"type": "NUMBER", "index": 12, "name": "SERVICE_ID", "comment": null}, "CONFIG_HASH": {"type": "TEXT", "index": 13, "name": "CONFIG_HASH", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 14, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}, "SERVICE_REGISTRATION_ID": {"type": "TEXT", "index": 16, "name": "SERVICE_REGISTRATION_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 19, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver_olas__service_registrations_TX_HASH.39ebb01275"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_recent__INSERTED_TIMESTAMP__day__1.ca46deddf6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "CREATED_CONTRACTS_RECENT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_recent__INSERTED_TIMESTAMP__day__1.ca46deddf6"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE.861f210c46": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_RECENT_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": null}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": null}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": null}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": null}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE.861f210c46"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_1_sales_PLATFORM_NAME__opensea.559a845700": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_SET_SILVER", "name": "SEAPORT_1_1_SALES_PLATFORM_NAME", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"VALUE_FIELD": {"type": "TEXT", "index": 1, "name": "VALUE_FIELD", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_1_sales_PLATFORM_NAME__opensea.559a845700"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_full_INSERTED_TIMESTAMP__hour__2.6d11a12f63": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "DECODED_LOGS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:59UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_full_INSERTED_TIMESTAMP__hour__2.6d11a12f63"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_PRICE_PER_SHARE.bfce816c2f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "POLYMARKET_FILLED_ORDERS_PRICE_PER_SHARE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 5, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "QUESTION": {"type": "TEXT", "index": 10, "name": "QUESTION", "comment": null}, "MARKET_SLUG": {"type": "TEXT", "index": 11, "name": "MARKET_SLUG", "comment": null}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "END_DATE_ISO", "comment": null}, "OUTCOME": {"type": "TEXT", "index": 13, "name": "OUTCOME", "comment": null}, "ORDER_HASH": {"type": "TEXT", "index": 14, "name": "ORDER_HASH", "comment": null}, "MAKER": {"type": "TEXT", "index": 15, "name": "MAKER", "comment": null}, "TAKER": {"type": "TEXT", "index": 16, "name": "TAKER", "comment": null}, "CONDITION_ID": {"type": "TEXT", "index": 17, "name": "CONDITION_ID", "comment": null}, "QUESTION_ID": {"type": "TEXT", "index": 18, "name": "QUESTION_ID", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 19, "name": "ASSET_ID", "comment": null}, "MAKER_ASSET_ID": {"type": "TEXT", "index": 20, "name": "MAKER_ASSET_ID", "comment": null}, "TAKER_ASSET_ID": {"type": "TEXT", "index": 21, "name": "TAKER_ASSET_ID", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "AMOUNT_USD", "comment": null}, "SHARES": {"type": "FLOAT", "index": 23, "name": "SHARES", "comment": null}, "PRICE_PER_SHARE": {"type": "FLOAT", "index": 24, "name": "PRICE_PER_SHARE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "POLYMARKET_FILLED_ORDERS_ID": {"type": "TEXT", "index": 27, "name": "POLYMARKET_FILLED_ORDERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 30, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_PRICE_PER_SHARE.bfce816c2f"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP__hour__2.66cacb203e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP__hour__2.66cacb203e"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE.c81a26b80c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_EVENT_LOGS_RECENT_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": null}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": null}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": null}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": null}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": null}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": null}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": null}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE.c81a26b80c"}, "test.fsc_evm.not_null_silver__labels_LABEL_SUBTYPE.01346344a7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "LABELS_LABEL_SUBTYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"SYSTEM_CREATED_AT": {"type": "TIMESTAMP_LTZ", "index": 1, "name": "SYSTEM_CREATED_AT", "comment": null}, "INSERT_DATE": {"type": "TIMESTAMP_LTZ", "index": 2, "name": "INSERT_DATE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": null}, "CREATOR": {"type": "TEXT", "index": 5, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 6, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 7, "name": "LABEL_SUBTYPE", "comment": null}, "ADDRESS_NAME": {"type": "TEXT", "index": 8, "name": "ADDRESS_NAME", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 9, "name": "PROJECT_NAME", "comment": null}, "_IS_DELETED": {"type": "BOOLEAN", "index": 10, "name": "_IS_DELETED", "comment": null}, "LABELS_ID": {"type": "TEXT", "index": 11, "name": "LABELS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 14, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__labels_LABEL_SUBTYPE.01346344a7"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7988c079e5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7988c079e5"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__complete_bridge_activity__ID.3d98f8a8be": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_BRIDGE", "name": "COMPLETE_BRIDGE_ACTIVITY", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_ID": {"type": "TEXT", "index": 1, "name": "_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__complete_bridge_activity__ID.3d98f8a8be"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.bce0936e10": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_FULL_BLOCK_NUMBER", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.bce0936e10"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_RAW_AMOUNT.62229d27e9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_TOKEN_TRANSFERS_RECENT_RAW_AMOUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 6, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 7, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 9, "name": "TOKEN_STANDARD", "comment": null}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 10, "name": "TOKEN_IS_VERIFIED", "comment": null}, "NAME": {"type": "TEXT", "index": 11, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 12, "name": "SYMBOL", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 13, "name": "DECIMALS", "comment": null}, "RAW_AMOUNT_PRECISE": {"type": "TEXT", "index": 14, "name": "RAW_AMOUNT_PRECISE", "comment": null}, "RAW_AMOUNT": {"type": "FLOAT", "index": 15, "name": "RAW_AMOUNT", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 16, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 19, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 20, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 21, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_TOKEN_TRANSFERS_ID": {"type": "TEXT", "index": 22, "name": "EZ_TOKEN_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_RAW_AMOUNT.62229d27e9"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_TOKENID.f690e73e38": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_5_SALES_TOKENID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_TOKENID.f690e73e38"}, "test.fsc_evm.find_missing_decoded_logs_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_.8f9f593cec": {"metadata": {"type": "BASE TABLE", "schema": "FIND_MISSING_DECODED_LOGS_TEST_GOLD", "name": "EZ_DECODED_EVENT_LOGS_FULL_REF_TEST_GOLD", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 2, "name": "FACT_EVENT_LOGS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:03UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 16896, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 11, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.find_missing_decoded_logs_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_.8f9f593cec"}, "model.fsc_evm.defi__dim_dex_liquidity_pools": {"metadata": {"type": "VIEW", "schema": "DEFI", "name": "DIM_DEX_LIQUIDITY_POOLS", "database": "POLYGON", "comment": "## What\n\nThis dimensional table contains comprehensive metadata for all DEX liquidity pools across supported protocols. It provides essential information about pool composition, token pairs, and configuration needed for analyzing liquidity provision and pool performance.\n\n## Key Use Cases\n\n- Finding all pools containing specific tokens\n- Tracking new pool deployments\n- Analyzing pool configurations and fee structures\n- Identifying trading pairs across different protocols\n- Monitoring factory contract deployments\n\n## Important Relationships\n\n- **Join with ez_dex_swaps**: Use `pool_address` to get swap activity\n- **Join with dim_contracts**: Use token addresses for additional metadata\n- **Self-join**: Find all pools with common tokens\n\n## Commonly-used Fields\n\n- `pool_address`: Unique identifier for the liquidity pool\n- `platform`: DEX protocol (uniswap_v3, curve, etc.)\n- `pool_name`: Human-readable pool identifier\n- `tokens`: JSON with token0 and token1 addresses\n- `symbols`: JSON with token0 and token1 symbols\n- `creation_time`: When pool was deployed\n\n## Sample queries\n\n```sql\n-- Find all pools containing USDC\nSELECT \n pool_address,\n pool_name,\n platform,\n creation_time,\n CASE \n WHEN tokens:token0::string = LOWER('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48') THEN \n symbols:token1::string\n ELSE \n symbols:token0::string\n END AS paired_token\nFROM .defi.dim_dex_liquidity_pools\nWHERE LOWER('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48') IN (\n tokens:token0::string,\n tokens:token1::string\n)\nORDER BY creation_time DESC;\n\n-- Recently created liquidity pools\nSELECT \n platform,\n pool_address,\n pool_name,\n creation_time,\n creation_tx,\n symbols:token0::string || '/' || symbols:token1::string AS pair,\n factory_address\nFROM .defi.dim_dex_liquidity_pools\nWHERE creation_time >= CURRENT_DATE - 7\nORDER BY creation_time DESC\nLIMIT 100;\n\n-- Extract token information from JSON fields\nSELECT \n pool_address,\n tokens:token0::string AS token0_address,\n tokens:token1::string AS token1_address,\n symbols:token0::string AS token0_symbol,\n symbols:token1::string AS token1_symbol,\n decimals:token0::integer AS token0_decimals,\n decimals:token1::integer AS token1_decimals\nFROM .defi.dim_dex_liquidity_pools\nWHERE platform = 'uniswap_v3';\n```", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CREATION_BLOCK": {"type": "NUMBER", "index": 1, "name": "CREATION_BLOCK", "comment": "The block number when the liquidity pool was first created.\n\nExample: 12369739"}, "CREATION_TIME": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "CREATION_TIME", "comment": "The timestamp when the liquidity pool was deployed.\n\nExample: '2021-05-05 12:34:56.000'"}, "CREATION_TX": {"type": "TEXT", "index": 3, "name": "CREATION_TX", "comment": "The transaction hash that deployed this liquidity pool.\n\nExample: '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'"}, "PLATFORM": {"type": "TEXT", "index": 4, "name": "PLATFORM", "comment": "The DEX protocol where the swap occurred.\n\nExample: 'uniswap_v3'"}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": ""}, "PROTOCOL_VERSION": {"type": "TEXT", "index": 6, "name": "PROTOCOL_VERSION", "comment": ""}, "FACTORY_ADDRESS": {"type": "TEXT", "index": 7, "name": "FACTORY_ADDRESS", "comment": "The factory contract that deployed this liquidity pool.\n\nExample: '0x1f98431c8ad98523631ae4a59f267346ea31f984'"}, "POOL_ADDRESS": {"type": "TEXT", "index": 8, "name": "POOL_ADDRESS", "comment": "The liquidity pool contract address where the swap executed.\n\nExample: '0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8'"}, "POOL_NAME": {"type": "TEXT", "index": 9, "name": "POOL_NAME", "comment": "Human-readable name for the liquidity pool.\n\nExample: 'WETH/USDC 0.05%'"}, "TOKENS": {"type": "OBJECT", "index": 10, "name": "TOKENS", "comment": "JSON object containing token contract addresses in the pool.\n\nExample: {\"token0\": \"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2\", \"token1\": \"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\"}"}, "SYMBOLS": {"type": "OBJECT", "index": 11, "name": "SYMBOLS", "comment": "JSON object containing token symbols for the pool pair.\n\nExample: {\"token0\": \"WETH\", \"token1\": \"USDC\"}"}, "DECIMALS": {"type": "OBJECT", "index": 12, "name": "DECIMALS", "comment": "JSON object containing decimal places for each token in the pool.\n\nExample: {\"token0\": 18, \"token1\": 6}"}, "DIM_DEX_LIQUIDITY_POOLS_ID": {"type": "TEXT", "index": 13, "name": "DIM_DEX_LIQUIDITY_POOLS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.defi__dim_dex_liquidity_pools"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_TOTAL_PRICE_RAW.8151aa3865": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_6_SALES_TOTAL_PRICE_RAW", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 10, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 11, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 12, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 14, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 15, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 16, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 17, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 18, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 19, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 20, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 22, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 23, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 24, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 25, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 27, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 29, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 30, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 32, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 33, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 34, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 35, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 36, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 37, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 38, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_TOTAL_PRICE_RAW.8151aa3865"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__complete_event_abis_full_PARENT_CONTRACT_ADDRESS__EVENT_SIGNATURE__START_BLOCK.81837f99b9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_TEST_SILVER", "name": "COMPLETE_EVENT_ABIS_FULL_PARENT_CONTRACT_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PARENT_CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "PARENT_CONTRACT_ADDRESS", "comment": null}, "EVENT_SIGNATURE": {"type": "TEXT", "index": 2, "name": "EVENT_SIGNATURE", "comment": null}, "START_BLOCK": {"type": "NUMBER", "index": 3, "name": "START_BLOCK", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 10:16UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__complete_event_abis_full_PARENT_CONTRACT_ADDRESS__EVENT_SIGNATURE__START_BLOCK.81837f99b9"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_AMOUNT.b8f4300dc9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "EZ_NATIVE_TRANSFERS_FULL_AMOUNT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "TRACE_INDEX": {"type": "NUMBER", "index": 5, "name": "TRACE_INDEX", "comment": null}, "TRACE_ADDRESS": {"type": "TEXT", "index": 6, "name": "TRACE_ADDRESS", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "TO_ADDRESS", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 10, "name": "AMOUNT", "comment": null}, "AMOUNT_PRECISE_RAW": {"type": "TEXT", "index": 11, "name": "AMOUNT_PRECISE_RAW", "comment": null}, "AMOUNT_PRECISE": {"type": "TEXT", "index": 12, "name": "AMOUNT_PRECISE", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 13, "name": "AMOUNT_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "EZ_NATIVE_TRANSFERS_ID": {"type": "TEXT", "index": 17, "name": "EZ_NATIVE_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 12:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_AMOUNT.b8f4300dc9"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_DEBT_TOKEN.378987156e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_LIQUIDATIONS_DEBT_TOKEN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "LIQUIDATOR": {"type": "TEXT", "index": 10, "name": "LIQUIDATOR", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 12, "name": "PROTOCOL_MARKET", "comment": null}, "COLLATERAL_TOKEN": {"type": "TEXT", "index": 13, "name": "COLLATERAL_TOKEN", "comment": null}, "COLLATERAL_TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "COLLATERAL_TOKEN_SYMBOL", "comment": null}, "LIQUIDATED_AMOUNT_UNADJ": {"type": "FLOAT", "index": 15, "name": "LIQUIDATED_AMOUNT_UNADJ", "comment": null}, "LIQUIDATED_AMOUNT": {"type": "FLOAT", "index": 16, "name": "LIQUIDATED_AMOUNT", "comment": null}, "LIQUIDATED_AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "LIQUIDATED_AMOUNT_USD", "comment": null}, "DEBT_TOKEN": {"type": "TEXT", "index": 18, "name": "DEBT_TOKEN", "comment": null}, "DEBT_TOKEN_SYMBOL": {"type": "TEXT", "index": 19, "name": "DEBT_TOKEN_SYMBOL", "comment": null}, "REPAID_AMOUNT_UNADJ": {"type": "NUMBER", "index": 20, "name": "REPAID_AMOUNT_UNADJ", "comment": null}, "REPAID_AMOUNT": {"type": "FLOAT", "index": 21, "name": "REPAID_AMOUNT", "comment": null}, "REPAID_AMOUNT_USD": {"type": "FLOAT", "index": 22, "name": "REPAID_AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 23, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 24, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 25, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 26, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"type": "TEXT", "index": 28, "name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 31, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_DEBT_TOKEN.378987156e"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_STATE_ROOT__0_xX_0_9a_fA_F_.62e12dc84f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_BLOCKS_FULL_STATE_ROOT", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_STATE_ROOT__0_xX_0_9a_fA_F_.62e12dc84f"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP.cb878cc127": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_NFT", "name": "EZ_NFT_TRANSFERS_RECENT_BLOCK_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "INTRA_EVENT_INDEX": {"type": "NUMBER", "index": 6, "name": "INTRA_EVENT_INDEX", "comment": null}, "TOKEN_TRANSFER_TYPE": {"type": "TEXT", "index": 7, "name": "TOKEN_TRANSFER_TYPE", "comment": null}, "IS_MINT": {"type": "BOOLEAN", "index": 8, "name": "IS_MINT", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 9, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 10, "name": "TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 11, "name": "CONTRACT_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "TEXT", "index": 12, "name": "TOKEN_ID", "comment": null}, "QUANTITY": {"type": "TEXT", "index": 13, "name": "QUANTITY", "comment": null}, "TOKEN_STANDARD": {"type": "TEXT", "index": 14, "name": "TOKEN_STANDARD", "comment": null}, "NAME": {"type": "TEXT", "index": 15, "name": "NAME", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 17, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 18, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EZ_NFT_TRANSFERS_ID": {"type": "TEXT", "index": 19, "name": "EZ_NFT_TRANSFERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP.cb878cc127"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PLATFORM.c28ef22806": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_PLATFORM", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PLATFORM.c28ef22806"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.3b01529200": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "ELEMENT_SALES_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.3b01529200"}, "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE.e14fe88673": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "COMPLETE_NFT_SALES_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 5, "name": "EVENT_TYPE", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 6, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 7, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 8, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "CALLDATA_HASH": {"type": "TEXT", "index": 9, "name": "CALLDATA_HASH", "comment": null}, "MARKETPLACE_DECODED": {"type": "TEXT", "index": 10, "name": "MARKETPLACE_DECODED", "comment": null}, "AGGREGATOR_NAME": {"type": "TEXT", "index": 11, "name": "AGGREGATOR_NAME", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 12, "name": "SELLER_ADDRESS", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 13, "name": "BUYER_ADDRESS", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 14, "name": "NFT_ADDRESS", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 15, "name": "PROJECT_NAME", "comment": null}, "ERC1155_VALUE": {"type": "TEXT", "index": 16, "name": "ERC1155_VALUE", "comment": null}, "TOKENID": {"type": "TEXT", "index": 17, "name": "TOKENID", "comment": null}, "CURRENCY_SYMBOL": {"type": "TEXT", "index": 18, "name": "CURRENCY_SYMBOL", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 19, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 20, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 21, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 22, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 23, "name": "CREATOR_FEE_RAW", "comment": null}, "PRICE": {"type": "FLOAT", "index": 24, "name": "PRICE", "comment": null}, "PRICE_USD": {"type": "FLOAT", "index": 25, "name": "PRICE_USD", "comment": null}, "TOTAL_FEES": {"type": "FLOAT", "index": 26, "name": "TOTAL_FEES", "comment": null}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 27, "name": "TOTAL_FEES_USD", "comment": null}, "PLATFORM_FEE": {"type": "FLOAT", "index": 28, "name": "PLATFORM_FEE", "comment": null}, "PLATFORM_FEE_USD": {"type": "FLOAT", "index": 29, "name": "PLATFORM_FEE_USD", "comment": null}, "CREATOR_FEE": {"type": "FLOAT", "index": 30, "name": "CREATOR_FEE", "comment": null}, "CREATOR_FEE_USD": {"type": "FLOAT", "index": 31, "name": "CREATOR_FEE_USD", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 32, "name": "TX_FEE", "comment": null}, "TX_FEE_USD": {"type": "FLOAT", "index": 33, "name": "TX_FEE_USD", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 34, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 35, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 36, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 38, "name": "INPUT_DATA", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 39, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 40, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_NFT_SALES_ID": {"type": "TEXT", "index": 41, "name": "COMPLETE_NFT_SALES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 42, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 43, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 44, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE.e14fe88673"}, "test.fsc_evm.not_null_silver__labels_CREATOR.5f7302f7be": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "LABELS_CREATOR", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"SYSTEM_CREATED_AT": {"type": "TIMESTAMP_LTZ", "index": 1, "name": "SYSTEM_CREATED_AT", "comment": null}, "INSERT_DATE": {"type": "TIMESTAMP_LTZ", "index": 2, "name": "INSERT_DATE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": null}, "CREATOR": {"type": "TEXT", "index": 5, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 6, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 7, "name": "LABEL_SUBTYPE", "comment": null}, "ADDRESS_NAME": {"type": "TEXT", "index": 8, "name": "ADDRESS_NAME", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 9, "name": "PROJECT_NAME", "comment": null}, "_IS_DELETED": {"type": "BOOLEAN", "index": 10, "name": "_IS_DELETED", "comment": null}, "LABELS_ID": {"type": "TEXT", "index": 11, "name": "LABELS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 14, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver__labels_CREATOR.5f7302f7be"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.1cbb56fb12": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "RECEIPTS_RECENT_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.1cbb56fb12"}, "model.fsc_evm.silver_dex__glyph_v4_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "GLYPH_V4_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 4, "name": "EVENT_NAME", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 7, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 8, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 9, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 10, "name": "POOL_ADDRESS", "comment": null}, "RECIPIENT": {"type": "TEXT", "index": 11, "name": "RECIPIENT", "comment": null}, "TX_TO": {"type": "TEXT", "index": 12, "name": "TX_TO", "comment": null}, "SENDER": {"type": "TEXT", "index": 13, "name": "SENDER", "comment": null}, "FEE": {"type": "NUMBER", "index": 14, "name": "FEE", "comment": null}, "TICK": {"type": "FLOAT", "index": 15, "name": "TICK", "comment": null}, "TICK_SPACING": {"type": "NUMBER", "index": 16, "name": "TICK_SPACING", "comment": null}, "LIQUIDITY": {"type": "FLOAT", "index": 17, "name": "LIQUIDITY", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 18, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 19, "name": "TOKEN1", "comment": null}, "AMOUNT0_UNADJ": {"type": "FLOAT", "index": 20, "name": "AMOUNT0_UNADJ", "comment": null}, "AMOUNT1_UNADJ": {"type": "FLOAT", "index": 21, "name": "AMOUNT1_UNADJ", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "FLOAT", "index": 22, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "FLOAT", "index": 23, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 24, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 25, "name": "TOKEN_OUT", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 26, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 27, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 28, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 29, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 30, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__glyph_v4_swaps"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TOKEN_ADDRESS.1000bb4b6f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_REPAYMENTS_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "PAYER": {"type": "TEXT", "index": 11, "name": "PAYER", "comment": null}, "BORROWER": {"type": "TEXT", "index": 12, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 13, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 14, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 15, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 16, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 17, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 21, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_REPAYMENTS_ID": {"type": "TEXT", "index": 23, "name": "COMPLETE_LENDING_REPAYMENTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TOKEN_ADDRESS.1000bb4b6f"}, "test.fsc_evm.not_null_silver_dex__curve_pools_TOKEN_ADDRESS.27eb2fea68": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "CURVE_POOLS_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "DEPLOYER_ADDRESS": {"type": "TEXT", "index": 4, "name": "DEPLOYER_ADDRESS", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 5, "name": "POOL_ADDRESS", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 6, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_ID": {"type": "NUMBER", "index": 7, "name": "TOKEN_ID", "comment": null}, "TOKEN_TYPE": {"type": "TEXT", "index": 8, "name": "TOKEN_TYPE", "comment": null}, "POOL_SYMBOL": {"type": "TEXT", "index": 9, "name": "POOL_SYMBOL", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "POOL_DECIMALS": {"type": "NUMBER", "index": 11, "name": "POOL_DECIMALS", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 12, "name": "POOL_ID", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 13, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 14, "name": "VERSION", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 15, "name": "PLATFORM", "comment": null}, "TYPE": {"type": "TEXT", "index": 16, "name": "TYPE", "comment": null}, "_CALL_ID": {"type": "TEXT", "index": 17, "name": "_CALL_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TOKEN_NUM": {"type": "NUMBER", "index": 19, "name": "TOKEN_NUM", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__curve_pools_TOKEN_ADDRESS.27eb2fea68"}, "model.polygon_models.silver_olas__service_event_logs": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_OLAS", "name": "SERVICE_EVENT_LOGS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": ""}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": ""}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": ""}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 7, "name": "CONTRACT_ADDRESS", "comment": ""}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": ""}, "MULTISIG_ADDRESS": {"type": "TEXT", "index": 9, "name": "MULTISIG_ADDRESS", "comment": ""}, "SERVICE_ID": {"type": "NUMBER", "index": 10, "name": "SERVICE_ID", "comment": ""}, "TOPIC_0": {"type": "TEXT", "index": 11, "name": "TOPIC_0", "comment": ""}, "TOPIC_1": {"type": "TEXT", "index": 12, "name": "TOPIC_1", "comment": ""}, "TOPIC_2": {"type": "TEXT", "index": 13, "name": "TOPIC_2", "comment": ""}, "TOPIC_3": {"type": "TEXT", "index": 14, "name": "TOPIC_3", "comment": ""}, "DATA": {"type": "TEXT", "index": 15, "name": "DATA", "comment": ""}, "SEGMENTED_DATA": {"type": "ARRAY", "index": 16, "name": "SEGMENTED_DATA", "comment": ""}, "_LOG_ID": {"type": "TEXT", "index": 17, "name": "_LOG_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "SERVICE_EVENT_LOGS_ID": {"type": "TEXT", "index": 19, "name": "SERVICE_EVENT_LOGS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 22, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 24456192, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 214578, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.polygon_models.silver_olas__service_event_logs"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.523ec38237": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:46UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.523ec38237"}, "model.fsc_evm.silver_bridge__hop_l2canonicaltoken": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_BRIDGE", "name": "HOP_L2CANONICALTOKEN", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"READ_OUTPUT": {"type": "VARIANT", "index": 1, "name": "READ_OUTPUT", "comment": ""}, "READ_ID": {"type": "TEXT", "index": 2, "name": "READ_ID", "comment": ""}, "READ_RESULT": {"type": "TEXT", "index": 3, "name": "READ_RESULT", "comment": ""}, "READ_ID_OBJECT": {"type": "ARRAY", "index": 4, "name": "READ_ID_OBJECT", "comment": ""}, "FUNCTION_SIG": {"type": "TEXT", "index": 5, "name": "FUNCTION_SIG", "comment": ""}, "FUNCTION_NAME": {"type": "TEXT", "index": 6, "name": "FUNCTION_NAME", "comment": ""}, "FUNCTION_INPUT": {"type": "NUMBER", "index": 7, "name": "FUNCTION_INPUT", "comment": ""}, "DATA": {"type": "TEXT", "index": 8, "name": "DATA", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 9, "name": "BLOCK_NUMBER", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 10, "name": "CONTRACT_ADDRESS", "comment": ""}, "AMM_WRAPPER_ADDRESS": {"type": "TEXT", "index": 11, "name": "AMM_WRAPPER_ADDRESS", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:35UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 88576, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 10, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_bridge__hop_l2canonicaltoken"}, "model.fsc_evm.silver__abis": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "ABIS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "DATA": {"type": "VARIANT", "index": 2, "name": "DATA", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ABI_SOURCE": {"type": "TEXT", "index": 4, "name": "ABI_SOURCE", "comment": null}, "DISCORD_USERNAME": {"type": "TEXT", "index": 5, "name": "DISCORD_USERNAME", "comment": null}, "ABI_HASH": {"type": "TEXT", "index": 6, "name": "ABI_HASH", "comment": null}, "BYTECODE": {"type": "TEXT", "index": 7, "name": "BYTECODE", "comment": null}, "ABIS_ID": {"type": "TEXT", "index": 8, "name": "ABIS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 11, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 08:21UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 10873002496, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 104380304, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver__abis"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.f23f93c193": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "BLOCKS_FULL", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.f23f93c193"}, "test.fsc_evm.not_null_admin__ez_variables_VALUE.72a144dfd6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ADMIN", "name": "EZ_VARIABLES_VALUE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PROJECT": {"type": "TEXT", "index": 1, "name": "PROJECT", "comment": null}, "PACKAGE": {"type": "TEXT", "index": 2, "name": "PACKAGE", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "KEY": {"type": "TEXT", "index": 4, "name": "KEY", "comment": null}, "VALUE": {"type": "TEXT", "index": 5, "name": "VALUE", "comment": null}, "PARENT_KEY": {"type": "TEXT", "index": 6, "name": "PARENT_KEY", "comment": null}, "DEFAULT_VALUE": {"type": "TEXT", "index": 7, "name": "DEFAULT_VALUE", "comment": null}, "DEFAULT_TYPE": {"type": "TEXT", "index": 8, "name": "DEFAULT_TYPE", "comment": null}, "EZ_VARIABLES_ID": {"type": "TEXT", "index": 9, "name": "EZ_VARIABLES_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_admin__ez_variables_VALUE.72a144dfd6"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_full_INSERTED_TIMESTAMP__hour__3.af9feb5290": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_NFT", "name": "EZ_NFT_TRANSFERS_FULL_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_full_INSERTED_TIMESTAMP__hour__3.af9feb5290"}, "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pools": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "KYBERSWAP_V2_ELASTIC_POOLS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 4, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 6, "name": "EVENT_NAME", "comment": null}, "TOKEN0": {"type": "TEXT", "index": 7, "name": "TOKEN0", "comment": null}, "TOKEN1": {"type": "TEXT", "index": 8, "name": "TOKEN1", "comment": null}, "SWAP_FEE_UNITS": {"type": "NUMBER", "index": 9, "name": "SWAP_FEE_UNITS", "comment": null}, "TICK_DISTANCE": {"type": "NUMBER", "index": 10, "name": "TICK_DISTANCE", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 11, "name": "POOL_ADDRESS", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 12, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 13, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 14, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 15, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 16, "name": "_LOG_ID", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-07-22 16:05UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2270208, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 424, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pools"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_POSITION.459ccef5c1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_TX_POSITION", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_POSITION.459ccef5c1"}, "model.fsc_evm.chain_stats__ez_address_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_ADDRESS_METRICS", "database": "POLYGON", "comment": "## What\n\nUser-level aggregated metrics for the indicated EVM blockchain including transaction activity, DeFi interactions, staking behavior, NFT activity, and governance participation. Captures comprehensive on-chain behavior patterns for individual addresses across various protocol categories and activity types.", "owner": "DBT_CLOUD_POLYGON"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "Unique address (wallet address) - primary identifier for all aggregated metrics\n\nExample: '0x1234567890abcdef1234567890abcdef12345678'"}, "N_COMPLEX_TXN": {"type": "NUMBER", "index": 2, "name": "N_COMPLEX_TXN", "comment": "Number of non-native-transfer transactions initiated by the user + number of bridge transactions"}, "N_CONTRACTS": {"type": "NUMBER", "index": 3, "name": "N_CONTRACTS", "comment": "The number of different contracts that the user transacts with"}, "N_TXN": {"type": "NUMBER", "index": 4, "name": "N_TXN", "comment": "Number of transactions + CEX withdrawals + inbound bridge transfers"}, "N_DAYS_ACTIVE": {"type": "NUMBER", "index": 5, "name": "N_DAYS_ACTIVE", "comment": "Number of days with initiated transactions + CEX withdrawals + inbound bridge transfers"}, "N_BRIDGE_IN": {"type": "NUMBER", "index": 6, "name": "N_BRIDGE_IN", "comment": "Number of inbound bridge transfers"}, "N_BRIDGES": {"type": "NUMBER", "index": 7, "name": "N_BRIDGES", "comment": "Total number of bridge transactions (both inbound and outbound) executed by this address"}, "N_CEX_WITHDRAWALS": {"type": "NUMBER", "index": 8, "name": "N_CEX_WITHDRAWALS", "comment": "Number of withdrawals from a centralized exchange"}, "NET_TOKEN_ACCUMULATE": {"type": "NUMBER", "index": 9, "name": "NET_TOKEN_ACCUMULATE", "comment": "Number of token transfers received / (number of token transfers received + number of token transfers sent)"}, "N_OTHER_DEFI": {"type": "NUMBER", "index": 10, "name": "N_OTHER_DEFI", "comment": "Any non-swap, non-LP transactions with events like borrow, lend, etc."}, "N_LP_ADDS": {"type": "NUMBER", "index": 11, "name": "N_LP_ADDS", "comment": "Number of non-swap transfers to a liquidity pool"}, "N_LP_POOLS": {"type": "NUMBER", "index": 12, "name": "N_LP_POOLS", "comment": "Number of unique liquidity pools this address has provided liquidity to"}, "N_SWAP_TX": {"type": "NUMBER", "index": 13, "name": "N_SWAP_TX", "comment": "Number of swaps"}, "N_SWAPS": {"type": "NUMBER", "index": 14, "name": "N_SWAPS", "comment": "Total number of individual swap operations (may differ from n_swap_tx if transactions contain multiple swaps)"}, "N_STAKE_TX": {"type": "NUMBER", "index": 15, "name": "N_STAKE_TX", "comment": "Number of staking transactions (liquid stake or delegation)"}, "N_VALIDATORS": {"type": "NUMBER", "index": 16, "name": "N_VALIDATORS", "comment": "Number of validators staked to OR liquid stake providers"}, "NET_STAKE_ACCUMULATE": {"type": "NUMBER", "index": 17, "name": "NET_STAKE_ACCUMULATE", "comment": "Number of stakes / (number of stakes + number of unstakes)"}, "N_GOV_VOTES": {"type": "NUMBER", "index": 18, "name": "N_GOV_VOTES", "comment": ""}, "NET_DELEGATED": {"type": "NUMBER", "index": 19, "name": "NET_DELEGATED", "comment": ""}, "N_RESTAKES": {"type": "NUMBER", "index": 20, "name": "N_RESTAKES", "comment": "Number of restakes"}, "N_NFT_MINTS": {"type": "NUMBER", "index": 21, "name": "N_NFT_MINTS", "comment": "Number of NFTs minted"}, "N_NFT_COLLECTIONS": {"type": "NUMBER", "index": 22, "name": "N_NFT_COLLECTIONS", "comment": "Number of NFT contracts traded"}, "N_NFT_TRADES": {"type": "NUMBER", "index": 23, "name": "N_NFT_TRADES", "comment": ""}, "N_NFT_IDS": {"type": "NUMBER", "index": 24, "name": "N_NFT_IDS", "comment": "Number of distinct NFTs bought or sold"}, "N_NFT_LISTS": {"type": "NUMBER", "index": 25, "name": "N_NFT_LISTS", "comment": "Number of NFTs listed"}, "N_NFT_BUYS": {"type": "TEXT", "index": 26, "name": "N_NFT_BUYS", "comment": "Number of buys of any NFTs"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.chain_stats__ez_address_metrics"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4226247a32": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "COMPLETE_NFT_SALES_BUYER_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4226247a32"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_metadata_REGISTRY_METADATA_ID.818d85b569": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER_OLAS", "name": "REGISTRY_METADATA_REGISTRY_METADATA_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"REGISTRY_METADATA_ID": {"type": "TEXT", "index": 1, "name": "REGISTRY_METADATA_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_metadata_REGISTRY_METADATA_ID.818d85b569"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.8f37f2afc2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_TEST_SILVER", "name": "BLOCKS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.8f37f2afc2"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_PARENT_HASH__0_xX_0_9a_fA_F_.68e75bb757": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_BLOCKS_FULL_PARENT_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_PARENT_HASH__0_xX_0_9a_fA_F_.68e75bb757"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_EVENT_TYPE.50311bf0fc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SEAPORT_1_1_SALES_EVENT_TYPE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "PLATFORM_ADDRESS": {"type": "TEXT", "index": 5, "name": "PLATFORM_ADDRESS", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 6, "name": "PLATFORM_NAME", "comment": null}, "PLATFORM_EXCHANGE_VERSION": {"type": "TEXT", "index": 7, "name": "PLATFORM_EXCHANGE_VERSION", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 8, "name": "EVENT_NAME", "comment": null}, "OFFER_LENGTH": {"type": "NUMBER", "index": 9, "name": "OFFER_LENGTH", "comment": null}, "SELLER_ADDRESS": {"type": "TEXT", "index": 10, "name": "SELLER_ADDRESS", "comment": null}, "ORDERHASH": {"type": "TEXT", "index": 11, "name": "ORDERHASH", "comment": null}, "BUYER_ADDRESS": {"type": "TEXT", "index": 12, "name": "BUYER_ADDRESS", "comment": null}, "SALE_CATEGORY": {"type": "TEXT", "index": 13, "name": "SALE_CATEGORY", "comment": null}, "TRADE_TYPE": {"type": "TEXT", "index": 14, "name": "TRADE_TYPE", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 15, "name": "EVENT_TYPE", "comment": null}, "IS_PRICE_ESTIMATED": {"type": "TEXT", "index": 16, "name": "IS_PRICE_ESTIMATED", "comment": null}, "ZONE": {"type": "TEXT", "index": 17, "name": "ZONE", "comment": null}, "TX_TYPE": {"type": "VARIANT", "index": 18, "name": "TX_TYPE", "comment": null}, "TOKEN_TYPE": {"type": "VARIANT", "index": 19, "name": "TOKEN_TYPE", "comment": null}, "NFT_ADDRESS_TEMP": {"type": "TEXT", "index": 20, "name": "NFT_ADDRESS_TEMP", "comment": null}, "NFT_ADDRESS": {"type": "TEXT", "index": 21, "name": "NFT_ADDRESS", "comment": null}, "TOKENID": {"type": "TEXT", "index": 22, "name": "TOKENID", "comment": null}, "ERC1155_VALUE": {"type": "VARIANT", "index": 23, "name": "ERC1155_VALUE", "comment": null}, "CURRENCY_ADDRESS": {"type": "TEXT", "index": 24, "name": "CURRENCY_ADDRESS", "comment": null}, "TOTAL_PRICE_RAW": {"type": "NUMBER", "index": 25, "name": "TOTAL_PRICE_RAW", "comment": null}, "TOTAL_FEES_RAW": {"type": "NUMBER", "index": 26, "name": "TOTAL_FEES_RAW", "comment": null}, "PLATFORM_FEE_RAW": {"type": "NUMBER", "index": 27, "name": "PLATFORM_FEE_RAW", "comment": null}, "CREATOR_FEE_RAW": {"type": "NUMBER", "index": 28, "name": "CREATOR_FEE_RAW", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 29, "name": "TX_FEE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 30, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 31, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 32, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "DECODED_OUTPUT": {"type": "OBJECT", "index": 33, "name": "DECODED_OUTPUT", "comment": null}, "CONSIDERATION": {"type": "VARIANT", "index": 34, "name": "CONSIDERATION", "comment": null}, "OFFER": {"type": "VARIANT", "index": 35, "name": "OFFER", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 36, "name": "INPUT_DATA", "comment": null}, "NFT_LOG_ID": {"type": "TEXT", "index": 37, "name": "NFT_LOG_ID", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 38, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 39, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_EVENT_TYPE.50311bf0fc"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_EVENT_INDEX.702306f3d9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_LENDING", "name": "COMPLETE_LENDING_BORROWS_EVENT_INDEX", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIMESTAMP", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 7, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 8, "name": "CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "PROTOCOL_MARKET": {"type": "TEXT", "index": 10, "name": "PROTOCOL_MARKET", "comment": null}, "BORROWER": {"type": "TEXT", "index": 11, "name": "BORROWER", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 12, "name": "TOKEN_ADDRESS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 13, "name": "TOKEN_SYMBOL", "comment": null}, "AMOUNT_UNADJ": {"type": "NUMBER", "index": 14, "name": "AMOUNT_UNADJ", "comment": null}, "AMOUNT": {"type": "FLOAT", "index": 15, "name": "AMOUNT", "comment": null}, "AMOUNT_USD": {"type": "FLOAT", "index": 16, "name": "AMOUNT_USD", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 17, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 18, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 19, "name": "VERSION", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 20, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_LENDING_BORROWS_ID": {"type": "TEXT", "index": 22, "name": "COMPLETE_LENDING_BORROWS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 25, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_EVENT_INDEX.702306f3d9"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_ORIGIN_FUNCTION_SIGNATURE.55dc566734": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_ORIGIN_FUNCTION_SIGNATURE", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 6, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "VALUE": {"type": "FLOAT", "index": 7, "name": "VALUE", "comment": null}, "VALUE_PRECISE_RAW": {"type": "TEXT", "index": 8, "name": "VALUE_PRECISE_RAW", "comment": null}, "VALUE_PRECISE": {"type": "TEXT", "index": 9, "name": "VALUE_PRECISE", "comment": null}, "TX_FEE": {"type": "FLOAT", "index": 10, "name": "TX_FEE", "comment": null}, "TX_FEE_PRECISE": {"type": "TEXT", "index": 11, "name": "TX_FEE_PRECISE", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 12, "name": "TX_SUCCEEDED", "comment": null}, "TX_TYPE": {"type": "NUMBER", "index": 13, "name": "TX_TYPE", "comment": null}, "NONCE": {"type": "NUMBER", "index": 14, "name": "NONCE", "comment": null}, "TX_POSITION": {"type": "NUMBER", "index": 15, "name": "TX_POSITION", "comment": null}, "INPUT_DATA": {"type": "TEXT", "index": 16, "name": "INPUT_DATA", "comment": null}, "GAS_PRICE": {"type": "FLOAT", "index": 17, "name": "GAS_PRICE", "comment": null}, "EFFECTIVE_GAS_PRICE": {"type": "FLOAT", "index": 18, "name": "EFFECTIVE_GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 19, "name": "GAS_USED", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 20, "name": "GAS_LIMIT", "comment": null}, "CUMULATIVE_GAS_USED": {"type": "NUMBER", "index": 21, "name": "CUMULATIVE_GAS_USED", "comment": null}, "MAX_FEE_PER_GAS": {"type": "FLOAT", "index": 22, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "FLOAT", "index": 23, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "Y_PARITY": {"type": "NUMBER", "index": 24, "name": "Y_PARITY", "comment": null}, "ACCESS_LIST": {"type": "VARIANT", "index": 25, "name": "ACCESS_LIST", "comment": null}, "R": {"type": "TEXT", "index": 26, "name": "R", "comment": null}, "S": {"type": "TEXT", "index": 27, "name": "S", "comment": null}, "V": {"type": "NUMBER", "index": 28, "name": "V", "comment": null}, "FACT_TRANSACTIONS_ID": {"type": "TEXT", "index": 29, "name": "FACT_TRANSACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 30, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_ORIGIN_FUNCTION_SIGNATURE.55dc566734"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent_INSERTED_TIMESTAMP__hour__2.5a605c6511": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_TEST_SILVER", "name": "BLOCKS_RECENT_INSERTED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent_INSERTED_TIMESTAMP__hour__2.5a605c6511"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP.f31fa88748": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_DEX", "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_MODIFIED_TIMESTAMP", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 4, "name": "EVENT_INDEX", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 5, "name": "EVENT_NAME", "comment": null}, "LIQUIDITY_PROVIDER": {"type": "TEXT", "index": 6, "name": "LIQUIDITY_PROVIDER", "comment": null}, "SENDER": {"type": "TEXT", "index": 7, "name": "SENDER", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 8, "name": "RECEIVER", "comment": null}, "POOL_ADDRESS": {"type": "TEXT", "index": 9, "name": "POOL_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 10, "name": "POOL_NAME", "comment": null}, "TOKENS": {"type": "OBJECT", "index": 11, "name": "TOKENS", "comment": null}, "SYMBOLS": {"type": "OBJECT", "index": 12, "name": "SYMBOLS", "comment": null}, "DECIMALS": {"type": "OBJECT", "index": 13, "name": "DECIMALS", "comment": null}, "AMOUNTS_UNADJ": {"type": "OBJECT", "index": 14, "name": "AMOUNTS_UNADJ", "comment": null}, "AMOUNTS": {"type": "OBJECT", "index": 15, "name": "AMOUNTS", "comment": null}, "AMOUNTS_USD": {"type": "OBJECT", "index": 16, "name": "AMOUNTS_USD", "comment": null}, "TOKENS_IS_VERIFIED": {"type": "OBJECT", "index": 17, "name": "TOKENS_IS_VERIFIED", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_ID": {"type": "TEXT", "index": 22, "name": "_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"type": "TEXT", "index": 24, "name": "COMPLETE_DEX_LIQUIDITY_POOL_ACTIONS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 27, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP.f31fa88748"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_TX_HASH__0_xX_0_9a_fA_F_.6c5a3d3af9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_TRANSACTIONS_RECENT_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:53UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_TX_HASH__0_xX_0_9a_fA_F_.6c5a3d3af9"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.356e5b7689": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_TEST_GOLD", "name": "FACT_EVENT_LOGS_FULL_ORIGIN_TO_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-28 08:34UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.356e5b7689"}, "model.fsc_evm.silver_dex__balancer_swaps": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_DEX", "name": "BALANCER_SWAPS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 4, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": null}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 5, "name": "ORIGIN_FROM_ADDRESS", "comment": null}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 6, "name": "ORIGIN_TO_ADDRESS", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 7, "name": "EVENT_INDEX", "comment": null}, "AMOUNT_IN_UNADJ": {"type": "NUMBER", "index": 8, "name": "AMOUNT_IN_UNADJ", "comment": null}, "AMOUNT_OUT_UNADJ": {"type": "NUMBER", "index": 9, "name": "AMOUNT_OUT_UNADJ", "comment": null}, "TOKEN_IN": {"type": "TEXT", "index": 10, "name": "TOKEN_IN", "comment": null}, "TOKEN_OUT": {"type": "TEXT", "index": 11, "name": "TOKEN_OUT", "comment": null}, "SENDER": {"type": "TEXT", "index": 12, "name": "SENDER", "comment": null}, "TX_TO": {"type": "TEXT", "index": 13, "name": "TX_TO", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 14, "name": "POOL_ID", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 15, "name": "CONTRACT_ADDRESS", "comment": null}, "POOL_NAME": {"type": "TEXT", "index": 16, "name": "POOL_NAME", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 17, "name": "EVENT_NAME", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 19, "name": "PROTOCOL", "comment": null}, "VERSION": {"type": "TEXT", "index": 20, "name": "VERSION", "comment": null}, "TYPE": {"type": "TEXT", "index": 21, "name": "TYPE", "comment": null}, "_LOG_ID": {"type": "TEXT", "index": 22, "name": "_LOG_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:36UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 4881267712, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 21402504, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_evm.silver_dex__balancer_swaps"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__curve_pools_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.7ffaec64f4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER_DEX", "name": "CURVE_POOLS_TOKEN_ADDRESS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__curve_pools_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.7ffaec64f4"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_TX_HASH__0_xX_0_9a_fA_F_.3c3779d6bb": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SEAPORT_1_5_SALES_TX_HASH", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:56UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_TX_HASH__0_xX_0_9a_fA_F_.3c3779d6bb"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__element_sales_nft_log_id.3f2a276dbb": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "ELEMENT_SALES_NFT_LOG_ID", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"NFT_LOG_ID": {"type": "TEXT", "index": 1, "name": "NFT_LOG_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-06 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__element_sales_nft_log_id.3f2a276dbb"}}, "sources": {"source.fsc_evm.crosschain_chain_stats.ez_bob_allowlist": {"metadata": {"type": "BASE TABLE", "schema": "CHAIN_STATS", "name": "EZ_BOB_ALLOWLIST", "database": "CROSSCHAIN", "comment": "Verified tokens for BOB blockchain. Appended with a tracks asset column that indicates ETH, BTC, USD, or is an alt coin", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The name of the blockchain (e.g., Arbitrum, Ethereum, etc.)"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": "The symbol of the token (e.g., ETH, BTC, USDC, etc.)"}, "TRACKS_ASSET": {"type": "TEXT", "index": 4, "name": "TRACKS_ASSET", "comment": "the asset that the token tracks, which can be ETH, BTC, USD, or an alt token. This is used to indicate the primary asset that the token is associated with"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 06:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 10240, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 49, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_bob_allowlist"}, "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_address_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_ARBITRUM_ADDRESS_METRICS", "database": "CROSSCHAIN", "comment": "User-level aggregated metrics for Arbitrum blockchain including transaction activity, DeFi interactions, staking behavior, NFT activity, and governance participation. Captures comprehensive on-chain behavior patterns for individual addresses across various protocol categories and activity types.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "Unique address (wallet address) - primary identifier for all aggregated metrics"}, "N_COMPLEX_TXN": {"type": "NUMBER", "index": 2, "name": "N_COMPLEX_TXN", "comment": "number of non-native-transfer transactions initiated by the user + number of bridge transactions"}, "N_CONTRACTS": {"type": "NUMBER", "index": 3, "name": "N_CONTRACTS", "comment": "the number of different contracts that the user transacts with"}, "N_TXN": {"type": "NUMBER", "index": 4, "name": "N_TXN", "comment": "number of transactions + CEX withdrawals + inbound bridge transfers"}, "N_DAYS_ACTIVE": {"type": "NUMBER", "index": 5, "name": "N_DAYS_ACTIVE", "comment": "number of days with initiated transactions + CEX withdrawals + inbound bridge transfers"}, "N_BRIDGE_IN": {"type": "NUMBER", "index": 6, "name": "N_BRIDGE_IN", "comment": "number of inbound bridge transfers"}, "N_BRIDGES": {"type": "NUMBER", "index": 7, "name": "N_BRIDGES", "comment": "Total number of bridge transactions (both inbound and outbound) executed by this address"}, "N_CEX_WITHDRAWALS": {"type": "NUMBER", "index": 8, "name": "N_CEX_WITHDRAWALS", "comment": "number of withdrawals from a centralized exchange"}, "NET_TOKEN_ACCUMULATE": {"type": "NUMBER", "index": 9, "name": "NET_TOKEN_ACCUMULATE", "comment": "number of token transfers received / (number of token transfers received + number of token transfers sent)"}, "N_OTHER_DEFI": {"type": "NUMBER", "index": 10, "name": "N_OTHER_DEFI", "comment": "any non-swap, non-LP transactions with events like borrow, lend, etc."}, "N_LP_ADDS": {"type": "NUMBER", "index": 11, "name": "N_LP_ADDS", "comment": "number of non-swap transfers to a liquidity pool"}, "N_LP_POOLS": {"type": "NUMBER", "index": 12, "name": "N_LP_POOLS", "comment": "Number of unique liquidity pools this address has provided liquidity to"}, "N_SWAP_TX": {"type": "NUMBER", "index": 13, "name": "N_SWAP_TX", "comment": "number of swaps"}, "N_SWAPS": {"type": "NUMBER", "index": 14, "name": "N_SWAPS", "comment": "Total number of individual swap operations (may differ from n_swap_tx if transactions contain multiple swaps)"}, "N_STAKE_TX": {"type": "NUMBER", "index": 15, "name": "N_STAKE_TX", "comment": "number of staking transactions (liquid stake or delegation)"}, "N_VALIDATORS": {"type": "NUMBER", "index": 16, "name": "N_VALIDATORS", "comment": "number of validators staked to OR liquid stake providers"}, "NET_STAKE_ACCUMULATE": {"type": "NUMBER", "index": 17, "name": "NET_STAKE_ACCUMULATE", "comment": "number of stakes / (number of stakes + number of unstakes)"}, "N_GOV_VOTES": {"type": "NUMBER", "index": 18, "name": "N_GOV_VOTES", "comment": ""}, "NET_DELEGATED": {"type": "NUMBER", "index": 19, "name": "NET_DELEGATED", "comment": ""}, "N_RESTAKES": {"type": "NUMBER", "index": 20, "name": "N_RESTAKES", "comment": "number of restakes"}, "N_NFT_MINTS": {"type": "NUMBER", "index": 21, "name": "N_NFT_MINTS", "comment": "number of NFTs minted"}, "N_NFT_COLLECTIONS": {"type": "NUMBER", "index": 22, "name": "N_NFT_COLLECTIONS", "comment": "number of NFT contracts traded"}, "N_NFT_TRADES": {"type": "NUMBER", "index": 23, "name": "N_NFT_TRADES", "comment": ""}, "N_NFT_IDS": {"type": "NUMBER", "index": 24, "name": "N_NFT_IDS", "comment": "number of distinct NFTs bought or sold"}, "N_NFT_LISTS": {"type": "NUMBER", "index": 25, "name": "N_NFT_LISTS", "comment": "number of NFTs listed"}, "N_NFT_BUYS": {"type": "TEXT", "index": 26, "name": "N_NFT_BUYS", "comment": "number of buys of any NFTs"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_address_metrics"}, "source.fsc_evm.crosschain_chain_stats.ez_bob_metrics_daily": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_BOB_METRICS_DAILY", "database": "CROSSCHAIN", "comment": "Daily aggregated metrics for BOB blockchain including transaction activity, fees, DEX volumes, bridge flows, CEX flows, and TVL data. All metrics are calculated at the daily level (YYYY-MM-DD format) and include both total activity and quality user activity (Flipside score >= 4).", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "ACTIVE_USERS_COUNT": {"type": "NUMBER", "index": 2, "name": "ACTIVE_USERS_COUNT", "comment": "Number of origin_from_address (Externally Owned Accounts EOAs) that submitted a transaction"}, "ACTIVE_QUALITY_USERS_COUNT": {"type": "NUMBER", "index": 3, "name": "ACTIVE_QUALITY_USERS_COUNT", "comment": "Number of EOAs with a Flipside score of 4 or higher that submitted a transaction"}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 4, "name": "TRANSACTION_COUNT", "comment": "Number of transactions submitted by any origin_from_address (EOA)"}, "QUALITY_TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "QUALITY_TRANSACTION_COUNT", "comment": "Number of transactions submitted by EOAs with a Flipside score of 4 or higher"}, "TOTAL_FEES": {"type": "FLOAT", "index": 6, "name": "TOTAL_FEES", "comment": "Total transaction fees paid, denominated in Ether (ETH)"}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 7, "name": "TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid (converting ETH to USD via ETH price)"}, "QUALITY_TOTAL_FEES": {"type": "FLOAT", "index": 8, "name": "QUALITY_TOTAL_FEES", "comment": "Total transaction fees paid by EOAs with a Flipside score of 4 or higher, denominated in Ether (ETH)"}, "QUALITY_TOTAL_FEES_USD": {"type": "FLOAT", "index": 9, "name": "QUALITY_TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid by EOAs with a Flipside score of 4 or higher (converting ETH to USD via ETH price)"}, "STABLECOIN_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 10, "name": "STABLECOIN_TRANSFER_VOLUME_USD", "comment": "Value of all stablecoin transfers for any reason (USD)"}, "IN_UNIT_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 11, "name": "IN_UNIT_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers of any token for any reason, denominated in ETH to reduce price effects (token price changes can be different than fundamental activity changes)"}, "TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 12, "name": "TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers for any reason (direct, swap, liquidity deposit, staking, etc.), denominated in USD accepting price effects"}, "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 13, "name": "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in ETH"}, "QUALITY_TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in USD"}, "CEX_WITHDRAWAL_VOLUME_USD": {"type": "FLOAT", "index": 15, "name": "CEX_WITHDRAWAL_VOLUME_USD", "comment": "Value of central exchange token withdrawals (USD)"}, "CEX_WITHDRAWAL_TX_COUNT": {"type": "NUMBER", "index": 16, "name": "CEX_WITHDRAWAL_TX_COUNT", "comment": "Number of central exchange token withdrawal transactions"}, "CEX_UNIQUE_WITHDRAWING_ADDRESSES": {"type": "NUMBER", "index": 17, "name": "CEX_UNIQUE_WITHDRAWING_ADDRESSES", "comment": "Number of unique addresses that withdrew from a central exchange"}, "CEX_DEPOSIT_VOLUME_USD": {"type": "FLOAT", "index": 18, "name": "CEX_DEPOSIT_VOLUME_USD", "comment": "Value of central exchange token deposits (USD)"}, "CEX_DEPOSIT_TX_COUNT": {"type": "NUMBER", "index": 19, "name": "CEX_DEPOSIT_TX_COUNT", "comment": "Number of central exchange token deposit transactions"}, "CEX_UNIQUE_DEPOSITING_ADDRESSES": {"type": "NUMBER", "index": 20, "name": "CEX_UNIQUE_DEPOSITING_ADDRESSES", "comment": "Number of unique addresses that deposited to a central exchange"}, "CEX_NET_FLOW_USD": {"type": "FLOAT", "index": 21, "name": "CEX_NET_FLOW_USD", "comment": "Net CEX flow (withdrawal_volume_usd - deposit_volume_usd). Note that if activity and price are correlated, this value can be negative even if more tokens are withdrawn than deposited"}, "CHAIN_GROSS_DEX_VOLUME_USD": {"type": "FLOAT", "index": 22, "name": "CHAIN_GROSS_DEX_VOLUME_USD", "comment": "USD value of token sell volume on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAP_COUNT": {"type": "NUMBER", "index": 23, "name": "CHAIN_SWAP_COUNT", "comment": "Number of swap transactions on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAPPER_COUNT": {"type": "NUMBER", "index": 24, "name": "CHAIN_SWAPPER_COUNT", "comment": "Number of unique EOAs that have submitted a swap transaction on Decentralized Exchanges (DEXs) protocols"}, "TVL_USD": {"type": "FLOAT", "index": 25, "name": "TVL_USD", "comment": "Total Value Locked - USD value of tokens locked in smart contracts. INCLUDES borrowed tokens, liquid staking, and staking"}, "IN_UNIT_TVL": {"type": "FLOAT", "index": 26, "name": "IN_UNIT_TVL", "comment": "Total Value Locked in ETH denominated terms to reduce price effects"}, "BRIDGE_INBOUND_VOLUME_USD": {"type": "FLOAT", "index": 27, "name": "BRIDGE_INBOUND_VOLUME_USD", "comment": "Value of bridge inflows onto Arbitrum, denominated in USD"}, "BRIDGE_INBOUND_ADDRESSES": {"type": "NUMBER", "index": 28, "name": "BRIDGE_INBOUND_ADDRESSES", "comment": "Number of unique addresses receiving a bridge inflow"}, "BRIDGE_INBOUND_TX_COUNT": {"type": "NUMBER", "index": 29, "name": "BRIDGE_INBOUND_TX_COUNT", "comment": "Number of bridge inflow transactions"}, "BRIDGE_OUTBOUND_VOLUME_USD": {"type": "FLOAT", "index": 30, "name": "BRIDGE_OUTBOUND_VOLUME_USD", "comment": "Value of bridge outflows from Arbitrum, denominated in USD"}, "BRIDGE_OUTBOUND_ADDRESSES": {"type": "NUMBER", "index": 31, "name": "BRIDGE_OUTBOUND_ADDRESSES", "comment": "Number of unique addresses sending a bridge outflow"}, "BRIDGE_OUTBOUND_TX_COUNT": {"type": "NUMBER", "index": 32, "name": "BRIDGE_OUTBOUND_TX_COUNT", "comment": "Number of bridge outflow transactions"}, "BRIDGE_GROSS_VOLUME_USD": {"type": "FLOAT", "index": 33, "name": "BRIDGE_GROSS_VOLUME_USD", "comment": "Value of bridge outflows from Arbitrum, denominated in USD"}, "BRIDGE_NET_INBOUND_USD": {"type": "FLOAT", "index": 34, "name": "BRIDGE_NET_INBOUND_USD", "comment": "Value of bridge inflows minus outflows, denominated in USD. Note that if activity and price are correlated, this value can be negative even if more tokens are brought onto chain than off"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_bob_metrics_daily"}, "source.fsc_evm.crosschain_chain_stats.ez_bsc_allowlist": {"metadata": {"type": "BASE TABLE", "schema": "CHAIN_STATS", "name": "EZ_BSC_ALLOWLIST", "database": "CROSSCHAIN", "comment": "Verified tokens for Bsc blockchain. Appended with a tracks asset column that indicates ETH, BTC, USD, or is an alt coin", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The name of the blockchain (e.g., Bsc, Ethereum, etc.)"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": "The symbol of the token (e.g., ETH, BTC, USDC, etc.)"}, "TRACKS_ASSET": {"type": "TEXT", "index": 4, "name": "TRACKS_ASSET", "comment": "the asset that the token tracks, which can be ETH, BTC, USD, or an alt token. This is used to indicate the primary asset that the token is associated with"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 06:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 100352, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 824, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_bsc_allowlist"}, "source.fsc_evm.crosschain_chain_stats.ez_base_allowlist": {"metadata": {"type": "BASE TABLE", "schema": "CHAIN_STATS", "name": "EZ_BASE_ALLOWLIST", "database": "CROSSCHAIN", "comment": "Verified tokens for Base blockchain. Appended with a tracks asset column that indicates ETH, BTC, USD, or is an alt coin", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The name of the blockchain (e.g., Base, Ethereum, etc.)"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": "The symbol of the token (e.g., ETH, BTC, USDC, etc.)"}, "TRACKS_ASSET": {"type": "TEXT", "index": 4, "name": "TRACKS_ASSET", "comment": "the asset that the token tracks, which can be ETH, BTC, USD, or an alt token. This is used to indicate the primary asset that the token is associated with"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 06:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 86528, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 531, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_base_allowlist"}, "source.fsc_evm.crosschain_chain_stats.ez_bsc_address_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_BSC_ADDRESS_METRICS", "database": "CROSSCHAIN", "comment": "User-level aggregated metrics for Bsc blockchain including transaction activity, DeFi interactions, staking behavior, NFT activity, and governance participation. Captures comprehensive on-chain behavior patterns for individual addresses across various protocol categories and activity types.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "Unique address (wallet address) - primary identifier for all aggregated metrics"}, "N_COMPLEX_TXN": {"type": "NUMBER", "index": 2, "name": "N_COMPLEX_TXN", "comment": "number of non-native-transfer transactions initiated by the user + number of bridge transactions"}, "N_CONTRACTS": {"type": "NUMBER", "index": 3, "name": "N_CONTRACTS", "comment": "the number of different contracts that the user transacts with"}, "N_TXN": {"type": "NUMBER", "index": 4, "name": "N_TXN", "comment": "number of transactions + CEX withdrawals + inbound bridge transfers"}, "N_DAYS_ACTIVE": {"type": "NUMBER", "index": 5, "name": "N_DAYS_ACTIVE", "comment": "number of days with initiated transactions + CEX withdrawals + inbound bridge transfers"}, "N_BRIDGE_IN": {"type": "NUMBER", "index": 6, "name": "N_BRIDGE_IN", "comment": "number of inbound bridge transfers"}, "N_BRIDGES": {"type": "NUMBER", "index": 7, "name": "N_BRIDGES", "comment": "Total number of bridge transactions (both inbound and outbound) executed by this address"}, "N_CEX_WITHDRAWALS": {"type": "NUMBER", "index": 8, "name": "N_CEX_WITHDRAWALS", "comment": "number of withdrawals from a centralized exchange"}, "NET_TOKEN_ACCUMULATE": {"type": "NUMBER", "index": 9, "name": "NET_TOKEN_ACCUMULATE", "comment": "number of token transfers received / (number of token transfers received + number of token transfers sent)"}, "N_OTHER_DEFI": {"type": "NUMBER", "index": 10, "name": "N_OTHER_DEFI", "comment": "any non-swap, non-LP transactions with events like borrow, lend, etc."}, "N_LP_ADDS": {"type": "NUMBER", "index": 11, "name": "N_LP_ADDS", "comment": "number of non-swap transfers to a liquidity pool"}, "N_LP_POOLS": {"type": "NUMBER", "index": 12, "name": "N_LP_POOLS", "comment": "Number of unique liquidity pools this address has provided liquidity to"}, "N_SWAP_TX": {"type": "NUMBER", "index": 13, "name": "N_SWAP_TX", "comment": "number of swaps"}, "N_SWAPS": {"type": "NUMBER", "index": 14, "name": "N_SWAPS", "comment": "Total number of individual swap operations (may differ from n_swap_tx if transactions contain multiple swaps)"}, "N_STAKE_TX": {"type": "NUMBER", "index": 15, "name": "N_STAKE_TX", "comment": "number of staking transactions (liquid stake or delegation)"}, "N_VALIDATORS": {"type": "NUMBER", "index": 16, "name": "N_VALIDATORS", "comment": "number of validators staked to OR liquid stake providers"}, "NET_STAKE_ACCUMULATE": {"type": "NUMBER", "index": 17, "name": "NET_STAKE_ACCUMULATE", "comment": "number of stakes / (number of stakes + number of unstakes)"}, "N_GOV_VOTES": {"type": "NUMBER", "index": 18, "name": "N_GOV_VOTES", "comment": ""}, "NET_DELEGATED": {"type": "NUMBER", "index": 19, "name": "NET_DELEGATED", "comment": ""}, "N_RESTAKES": {"type": "NUMBER", "index": 20, "name": "N_RESTAKES", "comment": "number of restakes"}, "N_NFT_MINTS": {"type": "NUMBER", "index": 21, "name": "N_NFT_MINTS", "comment": "number of NFTs minted"}, "N_NFT_COLLECTIONS": {"type": "NUMBER", "index": 22, "name": "N_NFT_COLLECTIONS", "comment": "number of NFT contracts traded"}, "N_NFT_TRADES": {"type": "NUMBER", "index": 23, "name": "N_NFT_TRADES", "comment": ""}, "N_NFT_IDS": {"type": "NUMBER", "index": 24, "name": "N_NFT_IDS", "comment": "number of distinct NFTs bought or sold"}, "N_NFT_LISTS": {"type": "NUMBER", "index": 25, "name": "N_NFT_LISTS", "comment": "number of NFTs listed"}, "N_NFT_BUYS": {"type": "TEXT", "index": 26, "name": "N_NFT_BUYS", "comment": "number of buys of any NFTs"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_bsc_address_metrics"}, "source.fsc_evm.crosschain_chain_stats.ez_avalanche_address_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_AVALANCHE_ADDRESS_METRICS", "database": "CROSSCHAIN", "comment": "User-level aggregated metrics for Avalanche blockchain including transaction activity, DeFi interactions, staking behavior, NFT activity, and governance participation. Captures comprehensive on-chain behavior patterns for individual addresses across various protocol categories and activity types.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "Unique address (wallet address) - primary identifier for all aggregated metrics"}, "N_COMPLEX_TXN": {"type": "NUMBER", "index": 2, "name": "N_COMPLEX_TXN", "comment": "number of non-native-transfer transactions initiated by the user + number of bridge transactions"}, "N_CONTRACTS": {"type": "NUMBER", "index": 3, "name": "N_CONTRACTS", "comment": "the number of different contracts that the user transacts with"}, "N_TXN": {"type": "NUMBER", "index": 4, "name": "N_TXN", "comment": "number of transactions + CEX withdrawals + inbound bridge transfers"}, "N_DAYS_ACTIVE": {"type": "NUMBER", "index": 5, "name": "N_DAYS_ACTIVE", "comment": "number of days with initiated transactions + CEX withdrawals + inbound bridge transfers"}, "N_BRIDGE_IN": {"type": "NUMBER", "index": 6, "name": "N_BRIDGE_IN", "comment": "number of inbound bridge transfers"}, "N_BRIDGES": {"type": "NUMBER", "index": 7, "name": "N_BRIDGES", "comment": "Total number of bridge transactions (both inbound and outbound) executed by this address"}, "N_CEX_WITHDRAWALS": {"type": "NUMBER", "index": 8, "name": "N_CEX_WITHDRAWALS", "comment": "number of withdrawals from a centralized exchange"}, "NET_TOKEN_ACCUMULATE": {"type": "NUMBER", "index": 9, "name": "NET_TOKEN_ACCUMULATE", "comment": "number of token transfers received / (number of token transfers received + number of token transfers sent)"}, "N_OTHER_DEFI": {"type": "NUMBER", "index": 10, "name": "N_OTHER_DEFI", "comment": "any non-swap, non-LP transactions with events like borrow, lend, etc."}, "N_LP_ADDS": {"type": "NUMBER", "index": 11, "name": "N_LP_ADDS", "comment": "number of non-swap transfers to a liquidity pool"}, "N_LP_POOLS": {"type": "NUMBER", "index": 12, "name": "N_LP_POOLS", "comment": "Number of unique liquidity pools this address has provided liquidity to"}, "N_SWAP_TX": {"type": "NUMBER", "index": 13, "name": "N_SWAP_TX", "comment": "number of swaps"}, "N_SWAPS": {"type": "NUMBER", "index": 14, "name": "N_SWAPS", "comment": "Total number of individual swap operations (may differ from n_swap_tx if transactions contain multiple swaps)"}, "N_STAKE_TX": {"type": "NUMBER", "index": 15, "name": "N_STAKE_TX", "comment": "number of staking transactions (liquid stake or delegation)"}, "N_VALIDATORS": {"type": "NUMBER", "index": 16, "name": "N_VALIDATORS", "comment": "number of validators staked to OR liquid stake providers"}, "NET_STAKE_ACCUMULATE": {"type": "NUMBER", "index": 17, "name": "NET_STAKE_ACCUMULATE", "comment": "number of stakes / (number of stakes + number of unstakes)"}, "N_GOV_VOTES": {"type": "NUMBER", "index": 18, "name": "N_GOV_VOTES", "comment": ""}, "NET_DELEGATED": {"type": "NUMBER", "index": 19, "name": "NET_DELEGATED", "comment": ""}, "N_RESTAKES": {"type": "NUMBER", "index": 20, "name": "N_RESTAKES", "comment": "number of restakes"}, "N_NFT_MINTS": {"type": "NUMBER", "index": 21, "name": "N_NFT_MINTS", "comment": "number of NFTs minted"}, "N_NFT_COLLECTIONS": {"type": "NUMBER", "index": 22, "name": "N_NFT_COLLECTIONS", "comment": "number of NFT contracts traded"}, "N_NFT_TRADES": {"type": "NUMBER", "index": 23, "name": "N_NFT_TRADES", "comment": ""}, "N_NFT_IDS": {"type": "NUMBER", "index": 24, "name": "N_NFT_IDS", "comment": "number of distinct NFTs bought or sold"}, "N_NFT_LISTS": {"type": "NUMBER", "index": 25, "name": "N_NFT_LISTS", "comment": "number of NFTs listed"}, "N_NFT_BUYS": {"type": "TEXT", "index": 26, "name": "N_NFT_BUYS", "comment": "number of buys of any NFTs"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_avalanche_address_metrics"}, "source.fsc_evm.crosschain_chain_stats.ez_ethereum_allowlist": {"metadata": {"type": "BASE TABLE", "schema": "CHAIN_STATS", "name": "EZ_ETHEREUM_ALLOWLIST", "database": "CROSSCHAIN", "comment": "Verified tokens for Ethereum blockchain. Appended with a tracks asset column that indicates ETH, BTC, USD, or is an alt coin", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The name of the blockchain (e.g., Ethereum, Ethereum, etc.)"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": "The symbol of the token (e.g., ETH, BTC, USDC, etc.)"}, "TRACKS_ASSET": {"type": "TEXT", "index": 4, "name": "TRACKS_ASSET", "comment": "the asset that the token tracks, which can be ETH, BTC, USD, or an alt token. This is used to indicate the primary asset that the token is associated with"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 06:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 142336, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1709, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_ethereum_allowlist"}, "source.fsc_evm.crosschain_chain_stats.ez_boba_address_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_BOBA_ADDRESS_METRICS", "database": "CROSSCHAIN", "comment": "User-level aggregated metrics for Boba blockchain including transaction activity, DeFi interactions, staking behavior, NFT activity, and governance participation. Captures comprehensive on-chain behavior patterns for individual addresses across various protocol categories and activity types.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "Unique address (wallet address) - primary identifier for all aggregated metrics"}, "N_COMPLEX_TXN": {"type": "NUMBER", "index": 2, "name": "N_COMPLEX_TXN", "comment": "number of non-native-transfer transactions initiated by the user + number of bridge transactions"}, "N_CONTRACTS": {"type": "NUMBER", "index": 3, "name": "N_CONTRACTS", "comment": "the number of different contracts that the user transacts with"}, "N_TXN": {"type": "NUMBER", "index": 4, "name": "N_TXN", "comment": "number of transactions + CEX withdrawals + inbound bridge transfers"}, "N_DAYS_ACTIVE": {"type": "NUMBER", "index": 5, "name": "N_DAYS_ACTIVE", "comment": "number of days with initiated transactions + CEX withdrawals + inbound bridge transfers"}, "N_BRIDGE_IN": {"type": "NUMBER", "index": 6, "name": "N_BRIDGE_IN", "comment": "number of inbound bridge transfers"}, "N_BRIDGES": {"type": "NUMBER", "index": 7, "name": "N_BRIDGES", "comment": "Total number of bridge transactions (both inbound and outbound) executed by this address"}, "N_CEX_WITHDRAWALS": {"type": "NUMBER", "index": 8, "name": "N_CEX_WITHDRAWALS", "comment": "number of withdrawals from a centralized exchange"}, "NET_TOKEN_ACCUMULATE": {"type": "NUMBER", "index": 9, "name": "NET_TOKEN_ACCUMULATE", "comment": "number of token transfers received / (number of token transfers received + number of token transfers sent)"}, "N_OTHER_DEFI": {"type": "NUMBER", "index": 10, "name": "N_OTHER_DEFI", "comment": "any non-swap, non-LP transactions with events like borrow, lend, etc."}, "N_LP_ADDS": {"type": "NUMBER", "index": 11, "name": "N_LP_ADDS", "comment": "number of non-swap transfers to a liquidity pool"}, "N_LP_POOLS": {"type": "NUMBER", "index": 12, "name": "N_LP_POOLS", "comment": "Number of unique liquidity pools this address has provided liquidity to"}, "N_SWAP_TX": {"type": "NUMBER", "index": 13, "name": "N_SWAP_TX", "comment": "number of swaps"}, "N_SWAPS": {"type": "NUMBER", "index": 14, "name": "N_SWAPS", "comment": "Total number of individual swap operations (may differ from n_swap_tx if transactions contain multiple swaps)"}, "N_STAKE_TX": {"type": "NUMBER", "index": 15, "name": "N_STAKE_TX", "comment": "number of staking transactions (liquid stake or delegation)"}, "N_VALIDATORS": {"type": "NUMBER", "index": 16, "name": "N_VALIDATORS", "comment": "number of validators staked to OR liquid stake providers"}, "NET_STAKE_ACCUMULATE": {"type": "NUMBER", "index": 17, "name": "NET_STAKE_ACCUMULATE", "comment": "number of stakes / (number of stakes + number of unstakes)"}, "N_GOV_VOTES": {"type": "NUMBER", "index": 18, "name": "N_GOV_VOTES", "comment": ""}, "NET_DELEGATED": {"type": "NUMBER", "index": 19, "name": "NET_DELEGATED", "comment": ""}, "N_RESTAKES": {"type": "NUMBER", "index": 20, "name": "N_RESTAKES", "comment": "number of restakes"}, "N_NFT_MINTS": {"type": "NUMBER", "index": 21, "name": "N_NFT_MINTS", "comment": "number of NFTs minted"}, "N_NFT_COLLECTIONS": {"type": "NUMBER", "index": 22, "name": "N_NFT_COLLECTIONS", "comment": "number of NFT contracts traded"}, "N_NFT_TRADES": {"type": "NUMBER", "index": 23, "name": "N_NFT_TRADES", "comment": ""}, "N_NFT_IDS": {"type": "NUMBER", "index": 24, "name": "N_NFT_IDS", "comment": "number of distinct NFTs bought or sold"}, "N_NFT_LISTS": {"type": "NUMBER", "index": 25, "name": "N_NFT_LISTS", "comment": "number of NFTs listed"}, "N_NFT_BUYS": {"type": "TEXT", "index": 26, "name": "N_NFT_BUYS", "comment": "number of buys of any NFTs"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_boba_address_metrics"}, "source.fsc_evm.crosschain_chain_stats.ez_optimism_allowlist": {"metadata": {"type": "BASE TABLE", "schema": "CHAIN_STATS", "name": "EZ_OPTIMISM_ALLOWLIST", "database": "CROSSCHAIN", "comment": "Verified tokens for Optimism blockchain. Appended with a tracks asset column that indicates ETH, BTC, USD, or is an alt coin", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The name of the blockchain (e.g., Optimism, Ethereum, etc.)"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": "The symbol of the token (e.g., ETH, BTC, USDC, etc.)"}, "TRACKS_ASSET": {"type": "TEXT", "index": 4, "name": "TRACKS_ASSET", "comment": "the asset that the token tracks, which can be ETH, BTC, USD, or an alt token. This is used to indicate the primary asset that the token is associated with"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 06:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 66560, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 169, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_optimism_allowlist"}, "source.fsc_evm.crosschain_chain_stats.ez_boba_allowlist": {"metadata": {"type": "BASE TABLE", "schema": "CHAIN_STATS", "name": "EZ_BOBA_ALLOWLIST", "database": "CROSSCHAIN", "comment": "Verified tokens for BOBA blockchain. Appended with a tracks asset column that indicates ETH, BTC, USD, or is an alt coin", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The name of the blockchain (e.g., Arbitrum, Ethereum, etc.)"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": "The symbol of the token (e.g., ETH, BTC, USDC, etc.)"}, "TRACKS_ASSET": {"type": "TEXT", "index": 4, "name": "TRACKS_ASSET", "comment": "the asset that the token tracks, which can be ETH, BTC, USD, or an alt token. This is used to indicate the primary asset that the token is associated with"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 06:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2560, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 9, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_boba_allowlist"}, "source.fsc_evm.crosschain_chain_stats.ez_ethereum_metrics_daily": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_ETHEREUM_METRICS_DAILY", "database": "CROSSCHAIN", "comment": "Daily aggregated metrics for Ethereum blockchain including transaction activity, fees, DEX volumes, bridge flows, CEX flows, and TVL data. All metrics are calculated at the daily level (YYYY-MM-DD format) and include both total activity and quality user activity (Flipside score >= 4).", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "ACTIVE_USERS_COUNT": {"type": "NUMBER", "index": 2, "name": "ACTIVE_USERS_COUNT", "comment": "Number of origin_from_address (Externally Owned Accounts EOAs) that submitted a transaction"}, "ACTIVE_QUALITY_USERS_COUNT": {"type": "NUMBER", "index": 3, "name": "ACTIVE_QUALITY_USERS_COUNT", "comment": "Number of EOAs with a Flipside score of 4 or higher that submitted a transaction"}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 4, "name": "TRANSACTION_COUNT", "comment": "Number of transactions submitted by any origin_from_address (EOA)"}, "QUALITY_TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "QUALITY_TRANSACTION_COUNT", "comment": "Number of transactions submitted by EOAs with a Flipside score of 4 or higher"}, "TOTAL_FEES": {"type": "FLOAT", "index": 6, "name": "TOTAL_FEES", "comment": "Total transaction fees paid, denominated in Ether (ETH)"}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 7, "name": "TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid (converting ETH to USD via ETH price)"}, "QUALITY_TOTAL_FEES": {"type": "FLOAT", "index": 8, "name": "QUALITY_TOTAL_FEES", "comment": "Total transaction fees paid by EOAs with a Flipside score of 4 or higher, denominated in Ether (ETH)"}, "QUALITY_TOTAL_FEES_USD": {"type": "FLOAT", "index": 9, "name": "QUALITY_TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid by EOAs with a Flipside score of 4 or higher (converting ETH to USD via ETH price)"}, "STABLECOIN_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 10, "name": "STABLECOIN_TRANSFER_VOLUME_USD", "comment": "Value of all stablecoin transfers for any reason (USD)"}, "IN_UNIT_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 11, "name": "IN_UNIT_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers of any token for any reason, denominated in ETH to reduce price effects (token price changes can be different than fundamental activity changes)"}, "TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 12, "name": "TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers for any reason (direct, swap, liquidity deposit, staking, etc.), denominated in USD accepting price effects"}, "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 13, "name": "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in ETH"}, "QUALITY_TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in USD"}, "CEX_WITHDRAWAL_VOLUME_USD": {"type": "FLOAT", "index": 15, "name": "CEX_WITHDRAWAL_VOLUME_USD", "comment": "Value of central exchange token withdrawals (USD)"}, "CEX_WITHDRAWAL_TX_COUNT": {"type": "NUMBER", "index": 16, "name": "CEX_WITHDRAWAL_TX_COUNT", "comment": "Number of central exchange token withdrawal transactions"}, "CEX_UNIQUE_WITHDRAWING_ADDRESSES": {"type": "NUMBER", "index": 17, "name": "CEX_UNIQUE_WITHDRAWING_ADDRESSES", "comment": "Number of unique addresses that withdrew from a central exchange"}, "CEX_DEPOSIT_VOLUME_USD": {"type": "FLOAT", "index": 18, "name": "CEX_DEPOSIT_VOLUME_USD", "comment": "Value of central exchange token deposits (USD)"}, "CEX_DEPOSIT_TX_COUNT": {"type": "NUMBER", "index": 19, "name": "CEX_DEPOSIT_TX_COUNT", "comment": "Number of central exchange token deposit transactions"}, "CEX_UNIQUE_DEPOSITING_ADDRESSES": {"type": "NUMBER", "index": 20, "name": "CEX_UNIQUE_DEPOSITING_ADDRESSES", "comment": "Number of unique addresses that deposited to a central exchange"}, "CEX_NET_FLOW_USD": {"type": "FLOAT", "index": 21, "name": "CEX_NET_FLOW_USD", "comment": "Net CEX flow (withdrawal_volume_usd - deposit_volume_usd). Note that if activity and price are correlated, this value can be negative even if more tokens are withdrawn than deposited"}, "CHAIN_GROSS_DEX_VOLUME_USD": {"type": "FLOAT", "index": 22, "name": "CHAIN_GROSS_DEX_VOLUME_USD", "comment": "USD value of token sell volume on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAP_COUNT": {"type": "NUMBER", "index": 23, "name": "CHAIN_SWAP_COUNT", "comment": "Number of swap transactions on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAPPER_COUNT": {"type": "NUMBER", "index": 24, "name": "CHAIN_SWAPPER_COUNT", "comment": "Number of unique EOAs that have submitted a swap transaction on Decentralized Exchanges (DEXs) protocols"}, "TVL_USD": {"type": "FLOAT", "index": 25, "name": "TVL_USD", "comment": "Total Value Locked - USD value of tokens locked in smart contracts. INCLUDES borrowed tokens, liquid staking, and staking"}, "IN_UNIT_TVL": {"type": "FLOAT", "index": 26, "name": "IN_UNIT_TVL", "comment": "Total Value Locked in ETH denominated terms to reduce price effects"}, "BRIDGE_INBOUND_VOLUME_USD": {"type": "FLOAT", "index": 27, "name": "BRIDGE_INBOUND_VOLUME_USD", "comment": "Value of bridge inflows onto Ethereum, denominated in USD"}, "BRIDGE_INBOUND_ADDRESSES": {"type": "NUMBER", "index": 28, "name": "BRIDGE_INBOUND_ADDRESSES", "comment": "Number of unique addresses receiving a bridge inflow"}, "BRIDGE_INBOUND_TX_COUNT": {"type": "NUMBER", "index": 29, "name": "BRIDGE_INBOUND_TX_COUNT", "comment": "Number of bridge inflow transactions"}, "BRIDGE_OUTBOUND_VOLUME_USD": {"type": "FLOAT", "index": 30, "name": "BRIDGE_OUTBOUND_VOLUME_USD", "comment": "Value of bridge outflows from Ethereum, denominated in USD"}, "BRIDGE_OUTBOUND_ADDRESSES": {"type": "NUMBER", "index": 31, "name": "BRIDGE_OUTBOUND_ADDRESSES", "comment": "Number of unique addresses sending a bridge outflow"}, "BRIDGE_OUTBOUND_TX_COUNT": {"type": "NUMBER", "index": 32, "name": "BRIDGE_OUTBOUND_TX_COUNT", "comment": "Number of bridge outflow transactions"}, "BRIDGE_GROSS_VOLUME_USD": {"type": "FLOAT", "index": 33, "name": "BRIDGE_GROSS_VOLUME_USD", "comment": "Value of bridge outflows from Ethereum, denominated in USD"}, "BRIDGE_NET_INBOUND_USD": {"type": "FLOAT", "index": 34, "name": "BRIDGE_NET_INBOUND_USD", "comment": "Value of bridge inflows minus outflows, denominated in USD. Note that if activity and price are correlated, this value can be negative even if more tokens are brought onto chain than off"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_ethereum_metrics_daily"}, "source.fsc_evm.crosschain_chain_stats.ez_ethereum_protocol_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_ETHEREUM_PROTOCOL_METRICS", "database": "CROSSCHAIN", "comment": "Daily aggregated protocol-level metrics for Ethereum blockchain including user activity, transaction counts, and token flow data. Combines protocol interaction data with Flipside scoring to distinguish between total activity and quality user activity (Flipside score >= 4). Metrics track inflows, outflows, and user engagement at the protocol level.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "PROTOCOL": {"type": "TEXT", "index": 2, "name": "PROTOCOL", "comment": "Protocol names including versioning information (e.g. Uniswap v2, v3, etc.). Note: protocol names may not always match protocol names in other tables like dex_volume"}, "N_USERS": {"type": "NUMBER", "index": 3, "name": "N_USERS", "comment": "Number of unique addresses submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_USERS": {"type": "NUMBER", "index": 4, "name": "N_QUALITY_USERS", "comment": "Number of unique quality addresses with Flipside score >= 4 submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_TRANSACTIONS": {"type": "NUMBER", "index": 5, "name": "N_TRANSACTIONS", "comment": "Number of unique transactions that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_TRANSACTIONS": {"type": "NUMBER", "index": 6, "name": "N_QUALITY_TRANSACTIONS", "comment": "Number of unique transactions by addresses with Flipside score >= 4 that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "USD_INFLOWS": {"type": "FLOAT", "index": 7, "name": "USD_INFLOWS", "comment": "USD value of tokens sent INTO this protocol from all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "USD_OUTFLOWS": {"type": "FLOAT", "index": 8, "name": "USD_OUTFLOWS", "comment": "USD value of tokens sent FROM this protocol to all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "NET_USD_INFLOW": {"type": "FLOAT", "index": 9, "name": "NET_USD_INFLOW", "comment": "USD inflows minus outflows. Note: Price effects may cause net USD and token-level net changes to differ in direction (rare but possible with large, fast price changes)"}, "GROSS_USD_VOLUME": {"type": "FLOAT", "index": 10, "name": "GROSS_USD_VOLUME", "comment": "Total USD volume calculated as inflows plus outflows"}, "QUALITY_USD_INFLOWS": {"type": "FLOAT", "index": 11, "name": "QUALITY_USD_INFLOWS", "comment": "USD value of token inflows from quality addresses with Flipside score >= 4"}, "QUALITY_USD_OUTFLOWS": {"type": "FLOAT", "index": 12, "name": "QUALITY_USD_OUTFLOWS", "comment": "USD value of token outflows to quality addresses with Flipside score >= 4"}, "QUALITY_NET_USD": {"type": "FLOAT", "index": 13, "name": "QUALITY_NET_USD", "comment": "Quality USD inflows minus quality USD outflows. Price effects may apply similar to net_usd_inflow"}, "QUALITY_GROSS_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_GROSS_USD", "comment": "Total quality USD volume calculated as quality inflows plus quality outflows"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_ethereum_protocol_metrics"}, "source.fsc_evm.crosschain_chain_stats.ez_polygon_metrics_daily": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_POLYGON_METRICS_DAILY", "database": "CROSSCHAIN", "comment": "Daily aggregated metrics for Polygon blockchain including transaction activity, fees, DEX volumes, bridge flows, CEX flows, and TVL data. All metrics are calculated at the daily level (YYYY-MM-DD format) and include both total activity and quality user activity (Flipside score >= 4).", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "ACTIVE_USERS_COUNT": {"type": "NUMBER", "index": 2, "name": "ACTIVE_USERS_COUNT", "comment": "Number of origin_from_address (Externally Owned Accounts EOAs) that submitted a transaction"}, "ACTIVE_QUALITY_USERS_COUNT": {"type": "NUMBER", "index": 3, "name": "ACTIVE_QUALITY_USERS_COUNT", "comment": "Number of EOAs with a Flipside score of 4 or higher that submitted a transaction"}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 4, "name": "TRANSACTION_COUNT", "comment": "Number of transactions submitted by any origin_from_address (EOA)"}, "QUALITY_TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "QUALITY_TRANSACTION_COUNT", "comment": "Number of transactions submitted by EOAs with a Flipside score of 4 or higher"}, "TOTAL_FEES": {"type": "FLOAT", "index": 6, "name": "TOTAL_FEES", "comment": "Total transaction fees paid, denominated in Ether (ETH)"}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 7, "name": "TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid (converting ETH to USD via ETH price)"}, "QUALITY_TOTAL_FEES": {"type": "FLOAT", "index": 8, "name": "QUALITY_TOTAL_FEES", "comment": "Total transaction fees paid by EOAs with a Flipside score of 4 or higher, denominated in Ether (ETH)"}, "QUALITY_TOTAL_FEES_USD": {"type": "FLOAT", "index": 9, "name": "QUALITY_TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid by EOAs with a Flipside score of 4 or higher (converting ETH to USD via ETH price)"}, "STABLECOIN_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 10, "name": "STABLECOIN_TRANSFER_VOLUME_USD", "comment": "Value of all stablecoin transfers for any reason (USD)"}, "IN_UNIT_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 11, "name": "IN_UNIT_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers of any token for any reason, denominated in ETH to reduce price effects (token price changes can be different than fundamental activity changes)"}, "TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 12, "name": "TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers for any reason (direct, swap, liquidity deposit, staking, etc.), denominated in USD accepting price effects"}, "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 13, "name": "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in ETH"}, "QUALITY_TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in USD"}, "CEX_WITHDRAWAL_VOLUME_USD": {"type": "FLOAT", "index": 15, "name": "CEX_WITHDRAWAL_VOLUME_USD", "comment": "Value of central exchange token withdrawals (USD)"}, "CEX_WITHDRAWAL_TX_COUNT": {"type": "NUMBER", "index": 16, "name": "CEX_WITHDRAWAL_TX_COUNT", "comment": "Number of central exchange token withdrawal transactions"}, "CEX_UNIQUE_WITHDRAWING_ADDRESSES": {"type": "NUMBER", "index": 17, "name": "CEX_UNIQUE_WITHDRAWING_ADDRESSES", "comment": "Number of unique addresses that withdrew from a central exchange"}, "CEX_DEPOSIT_VOLUME_USD": {"type": "FLOAT", "index": 18, "name": "CEX_DEPOSIT_VOLUME_USD", "comment": "Value of central exchange token deposits (USD)"}, "CEX_DEPOSIT_TX_COUNT": {"type": "NUMBER", "index": 19, "name": "CEX_DEPOSIT_TX_COUNT", "comment": "Number of central exchange token deposit transactions"}, "CEX_UNIQUE_DEPOSITING_ADDRESSES": {"type": "NUMBER", "index": 20, "name": "CEX_UNIQUE_DEPOSITING_ADDRESSES", "comment": "Number of unique addresses that deposited to a central exchange"}, "CEX_NET_FLOW_USD": {"type": "FLOAT", "index": 21, "name": "CEX_NET_FLOW_USD", "comment": "Net CEX flow (withdrawal_volume_usd - deposit_volume_usd). Note that if activity and price are correlated, this value can be negative even if more tokens are withdrawn than deposited"}, "CHAIN_GROSS_DEX_VOLUME_USD": {"type": "FLOAT", "index": 22, "name": "CHAIN_GROSS_DEX_VOLUME_USD", "comment": "USD value of token sell volume on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAP_COUNT": {"type": "NUMBER", "index": 23, "name": "CHAIN_SWAP_COUNT", "comment": "Number of swap transactions on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAPPER_COUNT": {"type": "NUMBER", "index": 24, "name": "CHAIN_SWAPPER_COUNT", "comment": "Number of unique EOAs that have submitted a swap transaction on Decentralized Exchanges (DEXs) protocols"}, "TVL_USD": {"type": "FLOAT", "index": 25, "name": "TVL_USD", "comment": "Total Value Locked - USD value of tokens locked in smart contracts. INCLUDES borrowed tokens, liquid staking, and staking"}, "IN_UNIT_TVL": {"type": "FLOAT", "index": 26, "name": "IN_UNIT_TVL", "comment": "Total Value Locked in ETH denominated terms to reduce price effects"}, "BRIDGE_INBOUND_VOLUME_USD": {"type": "FLOAT", "index": 27, "name": "BRIDGE_INBOUND_VOLUME_USD", "comment": "Value of bridge inflows onto Polygon, denominated in USD"}, "BRIDGE_INBOUND_ADDRESSES": {"type": "NUMBER", "index": 28, "name": "BRIDGE_INBOUND_ADDRESSES", "comment": "Number of unique addresses receiving a bridge inflow"}, "BRIDGE_INBOUND_TX_COUNT": {"type": "NUMBER", "index": 29, "name": "BRIDGE_INBOUND_TX_COUNT", "comment": "Number of bridge inflow transactions"}, "BRIDGE_OUTBOUND_VOLUME_USD": {"type": "FLOAT", "index": 30, "name": "BRIDGE_OUTBOUND_VOLUME_USD", "comment": "Value of bridge outflows from Polygon, denominated in USD"}, "BRIDGE_OUTBOUND_ADDRESSES": {"type": "NUMBER", "index": 31, "name": "BRIDGE_OUTBOUND_ADDRESSES", "comment": "Number of unique addresses sending a bridge outflow"}, "BRIDGE_OUTBOUND_TX_COUNT": {"type": "NUMBER", "index": 32, "name": "BRIDGE_OUTBOUND_TX_COUNT", "comment": "Number of bridge outflow transactions"}, "BRIDGE_GROSS_VOLUME_USD": {"type": "FLOAT", "index": 33, "name": "BRIDGE_GROSS_VOLUME_USD", "comment": "Value of bridge outflows from Polygon, denominated in USD"}, "BRIDGE_NET_INBOUND_USD": {"type": "FLOAT", "index": 34, "name": "BRIDGE_NET_INBOUND_USD", "comment": "Value of bridge inflows minus outflows, denominated in USD. Note that if activity and price are correlated, this value can be negative even if more tokens are brought onto chain than off"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_polygon_metrics_daily"}, "source.fsc_evm.crosschain_chain_stats.ez_ink_address_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_INK_ADDRESS_METRICS", "database": "CROSSCHAIN", "comment": "User-level aggregated metrics for Ink blockchain including transaction activity, DeFi interactions, staking behavior, NFT activity, and governance participation. Captures comprehensive on-chain behavior patterns for individual addresses across various protocol categories and activity types.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "Unique address (wallet address) - primary identifier for all aggregated metrics"}, "N_COMPLEX_TXN": {"type": "NUMBER", "index": 2, "name": "N_COMPLEX_TXN", "comment": "number of non-native-transfer transactions initiated by the user + number of bridge transactions"}, "N_CONTRACTS": {"type": "NUMBER", "index": 3, "name": "N_CONTRACTS", "comment": "the number of different contracts that the user transacts with"}, "N_TXN": {"type": "NUMBER", "index": 4, "name": "N_TXN", "comment": "number of transactions + CEX withdrawals + inbound bridge transfers"}, "N_DAYS_ACTIVE": {"type": "NUMBER", "index": 5, "name": "N_DAYS_ACTIVE", "comment": "number of days with initiated transactions + CEX withdrawals + inbound bridge transfers"}, "N_BRIDGE_IN": {"type": "NUMBER", "index": 6, "name": "N_BRIDGE_IN", "comment": "number of inbound bridge transfers"}, "N_BRIDGES": {"type": "NUMBER", "index": 7, "name": "N_BRIDGES", "comment": "Total number of bridge transactions (both inbound and outbound) executed by this address"}, "N_CEX_WITHDRAWALS": {"type": "NUMBER", "index": 8, "name": "N_CEX_WITHDRAWALS", "comment": "number of withdrawals from a centralized exchange"}, "NET_TOKEN_ACCUMULATE": {"type": "NUMBER", "index": 9, "name": "NET_TOKEN_ACCUMULATE", "comment": "number of token transfers received / (number of token transfers received + number of token transfers sent)"}, "N_OTHER_DEFI": {"type": "NUMBER", "index": 10, "name": "N_OTHER_DEFI", "comment": "any non-swap, non-LP transactions with events like borrow, lend, etc."}, "N_LP_ADDS": {"type": "NUMBER", "index": 11, "name": "N_LP_ADDS", "comment": "number of non-swap transfers to a liquidity pool"}, "N_LP_POOLS": {"type": "NUMBER", "index": 12, "name": "N_LP_POOLS", "comment": "Number of unique liquidity pools this address has provided liquidity to"}, "N_SWAP_TX": {"type": "NUMBER", "index": 13, "name": "N_SWAP_TX", "comment": "number of swaps"}, "N_SWAPS": {"type": "NUMBER", "index": 14, "name": "N_SWAPS", "comment": "Total number of individual swap operations (may differ from n_swap_tx if transactions contain multiple swaps)"}, "N_STAKE_TX": {"type": "NUMBER", "index": 15, "name": "N_STAKE_TX", "comment": "number of staking transactions (liquid stake or delegation)"}, "N_VALIDATORS": {"type": "NUMBER", "index": 16, "name": "N_VALIDATORS", "comment": "number of validators staked to OR liquid stake providers"}, "NET_STAKE_ACCUMULATE": {"type": "NUMBER", "index": 17, "name": "NET_STAKE_ACCUMULATE", "comment": "number of stakes / (number of stakes + number of unstakes)"}, "N_GOV_VOTES": {"type": "NUMBER", "index": 18, "name": "N_GOV_VOTES", "comment": ""}, "NET_DELEGATED": {"type": "NUMBER", "index": 19, "name": "NET_DELEGATED", "comment": ""}, "N_RESTAKES": {"type": "NUMBER", "index": 20, "name": "N_RESTAKES", "comment": "number of restakes"}, "N_NFT_MINTS": {"type": "NUMBER", "index": 21, "name": "N_NFT_MINTS", "comment": "number of NFTs minted"}, "N_NFT_COLLECTIONS": {"type": "NUMBER", "index": 22, "name": "N_NFT_COLLECTIONS", "comment": "number of NFT contracts traded"}, "N_NFT_TRADES": {"type": "NUMBER", "index": 23, "name": "N_NFT_TRADES", "comment": ""}, "N_NFT_IDS": {"type": "NUMBER", "index": 24, "name": "N_NFT_IDS", "comment": "number of distinct NFTs bought or sold"}, "N_NFT_LISTS": {"type": "NUMBER", "index": 25, "name": "N_NFT_LISTS", "comment": "number of NFTs listed"}, "N_NFT_BUYS": {"type": "TEXT", "index": 26, "name": "N_NFT_BUYS", "comment": "number of buys of any NFTs"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_ink_address_metrics"}, "source.fsc_evm.crosschain_chain_stats.ez_optimism_address_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_OPTIMISM_ADDRESS_METRICS", "database": "CROSSCHAIN", "comment": "User-level aggregated metrics for Optimism blockchain including transaction activity, DeFi interactions, staking behavior, NFT activity, and governance participation. Captures comprehensive on-chain behavior patterns for individual addresses across various protocol categories and activity types.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "Unique address (wallet address) - primary identifier for all aggregated metrics"}, "N_COMPLEX_TXN": {"type": "NUMBER", "index": 2, "name": "N_COMPLEX_TXN", "comment": "number of non-native-transfer transactions initiated by the user + number of bridge transactions"}, "N_CONTRACTS": {"type": "NUMBER", "index": 3, "name": "N_CONTRACTS", "comment": "the number of different contracts that the user transacts with"}, "N_TXN": {"type": "NUMBER", "index": 4, "name": "N_TXN", "comment": "number of transactions + CEX withdrawals + inbound bridge transfers"}, "N_DAYS_ACTIVE": {"type": "NUMBER", "index": 5, "name": "N_DAYS_ACTIVE", "comment": "number of days with initiated transactions + CEX withdrawals + inbound bridge transfers"}, "N_BRIDGE_IN": {"type": "NUMBER", "index": 6, "name": "N_BRIDGE_IN", "comment": "number of inbound bridge transfers"}, "N_BRIDGES": {"type": "NUMBER", "index": 7, "name": "N_BRIDGES", "comment": "Total number of bridge transactions (both inbound and outbound) executed by this address"}, "N_CEX_WITHDRAWALS": {"type": "NUMBER", "index": 8, "name": "N_CEX_WITHDRAWALS", "comment": "number of withdrawals from a centralized exchange"}, "NET_TOKEN_ACCUMULATE": {"type": "NUMBER", "index": 9, "name": "NET_TOKEN_ACCUMULATE", "comment": "number of token transfers received / (number of token transfers received + number of token transfers sent)"}, "N_OTHER_DEFI": {"type": "NUMBER", "index": 10, "name": "N_OTHER_DEFI", "comment": "any non-swap, non-LP transactions with events like borrow, lend, etc."}, "N_LP_ADDS": {"type": "NUMBER", "index": 11, "name": "N_LP_ADDS", "comment": "number of non-swap transfers to a liquidity pool"}, "N_LP_POOLS": {"type": "NUMBER", "index": 12, "name": "N_LP_POOLS", "comment": "Number of unique liquidity pools this address has provided liquidity to"}, "N_SWAP_TX": {"type": "NUMBER", "index": 13, "name": "N_SWAP_TX", "comment": "number of swaps"}, "N_SWAPS": {"type": "NUMBER", "index": 14, "name": "N_SWAPS", "comment": "Total number of individual swap operations (may differ from n_swap_tx if transactions contain multiple swaps)"}, "N_STAKE_TX": {"type": "NUMBER", "index": 15, "name": "N_STAKE_TX", "comment": "number of staking transactions (liquid stake or delegation)"}, "N_VALIDATORS": {"type": "NUMBER", "index": 16, "name": "N_VALIDATORS", "comment": "number of validators staked to OR liquid stake providers"}, "NET_STAKE_ACCUMULATE": {"type": "NUMBER", "index": 17, "name": "NET_STAKE_ACCUMULATE", "comment": "number of stakes / (number of stakes + number of unstakes)"}, "N_GOV_VOTES": {"type": "NUMBER", "index": 18, "name": "N_GOV_VOTES", "comment": ""}, "NET_DELEGATED": {"type": "NUMBER", "index": 19, "name": "NET_DELEGATED", "comment": ""}, "N_RESTAKES": {"type": "NUMBER", "index": 20, "name": "N_RESTAKES", "comment": "number of restakes"}, "N_NFT_MINTS": {"type": "NUMBER", "index": 21, "name": "N_NFT_MINTS", "comment": "number of NFTs minted"}, "N_NFT_COLLECTIONS": {"type": "NUMBER", "index": 22, "name": "N_NFT_COLLECTIONS", "comment": "number of NFT contracts traded"}, "N_NFT_TRADES": {"type": "NUMBER", "index": 23, "name": "N_NFT_TRADES", "comment": ""}, "N_NFT_IDS": {"type": "NUMBER", "index": 24, "name": "N_NFT_IDS", "comment": "number of distinct NFTs bought or sold"}, "N_NFT_LISTS": {"type": "NUMBER", "index": 25, "name": "N_NFT_LISTS", "comment": "number of NFTs listed"}, "N_NFT_BUYS": {"type": "TEXT", "index": 26, "name": "N_NFT_BUYS", "comment": "number of buys of any NFTs"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_optimism_address_metrics"}, "source.fsc_evm.crosschain_chain_stats.ez_bob_protocol_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_BOB_PROTOCOL_METRICS", "database": "CROSSCHAIN", "comment": "Daily aggregated protocol-level metrics for BOB blockchain including user activity, transaction counts, and token flow data. Combines protocol interaction data with Flipside scoring to distinguish between total activity and quality user activity (Flipside score >= 4). Metrics track inflows, outflows, and user engagement at the protocol level.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "PROTOCOL": {"type": "TEXT", "index": 2, "name": "PROTOCOL", "comment": "Protocol names including versioning information (e.g. Uniswap v2, v3, etc.). Note: protocol names may not always match protocol names in other tables like dex_volume"}, "N_USERS": {"type": "NUMBER", "index": 3, "name": "N_USERS", "comment": "Number of unique addresses submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_USERS": {"type": "NUMBER", "index": 4, "name": "N_QUALITY_USERS", "comment": "Number of unique quality addresses with Flipside score >= 4 submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_TRANSACTIONS": {"type": "NUMBER", "index": 5, "name": "N_TRANSACTIONS", "comment": "Number of unique transactions that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_TRANSACTIONS": {"type": "NUMBER", "index": 6, "name": "N_QUALITY_TRANSACTIONS", "comment": "Number of unique transactions by addresses with Flipside score >= 4 that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "USD_INFLOWS": {"type": "FLOAT", "index": 7, "name": "USD_INFLOWS", "comment": "USD value of tokens sent INTO this protocol from all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "USD_OUTFLOWS": {"type": "FLOAT", "index": 8, "name": "USD_OUTFLOWS", "comment": "USD value of tokens sent FROM this protocol to all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "NET_USD_INFLOW": {"type": "FLOAT", "index": 9, "name": "NET_USD_INFLOW", "comment": "USD inflows minus outflows. Note: Price effects may cause net USD and token-level net changes to differ in direction (rare but possible with large, fast price changes)"}, "GROSS_USD_VOLUME": {"type": "FLOAT", "index": 10, "name": "GROSS_USD_VOLUME", "comment": "Total USD volume calculated as inflows plus outflows"}, "QUALITY_USD_INFLOWS": {"type": "FLOAT", "index": 11, "name": "QUALITY_USD_INFLOWS", "comment": "USD value of token inflows from quality addresses with Flipside score >= 4"}, "QUALITY_USD_OUTFLOWS": {"type": "FLOAT", "index": 12, "name": "QUALITY_USD_OUTFLOWS", "comment": "USD value of token outflows to quality addresses with Flipside score >= 4"}, "QUALITY_NET_USD": {"type": "FLOAT", "index": 13, "name": "QUALITY_NET_USD", "comment": "Quality USD inflows minus quality USD outflows. Price effects may apply similar to net_usd_inflow"}, "QUALITY_GROSS_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_GROSS_USD", "comment": "Total quality USD volume calculated as quality inflows plus quality outflows"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_bob_protocol_metrics"}, "source.fsc_evm.crosschain_chain_stats.ez_base_address_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_BASE_ADDRESS_METRICS", "database": "CROSSCHAIN", "comment": "User-level aggregated metrics for Base blockchain including transaction activity, DeFi interactions, staking behavior, NFT activity, and governance participation. Captures comprehensive on-chain behavior patterns for individual addresses across various protocol categories and activity types.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "Unique address (wallet address) - primary identifier for all aggregated metrics"}, "N_COMPLEX_TXN": {"type": "NUMBER", "index": 2, "name": "N_COMPLEX_TXN", "comment": "number of non-native-transfer transactions initiated by the user + number of bridge transactions"}, "N_CONTRACTS": {"type": "NUMBER", "index": 3, "name": "N_CONTRACTS", "comment": "the number of different contracts that the user transacts with"}, "N_TXN": {"type": "NUMBER", "index": 4, "name": "N_TXN", "comment": "number of transactions + CEX withdrawals + inbound bridge transfers"}, "N_DAYS_ACTIVE": {"type": "NUMBER", "index": 5, "name": "N_DAYS_ACTIVE", "comment": "number of days with initiated transactions + CEX withdrawals + inbound bridge transfers"}, "N_BRIDGE_IN": {"type": "NUMBER", "index": 6, "name": "N_BRIDGE_IN", "comment": "number of inbound bridge transfers"}, "N_BRIDGES": {"type": "NUMBER", "index": 7, "name": "N_BRIDGES", "comment": "Total number of bridge transactions (both inbound and outbound) executed by this address"}, "N_CEX_WITHDRAWALS": {"type": "NUMBER", "index": 8, "name": "N_CEX_WITHDRAWALS", "comment": "number of withdrawals from a centralized exchange"}, "NET_TOKEN_ACCUMULATE": {"type": "NUMBER", "index": 9, "name": "NET_TOKEN_ACCUMULATE", "comment": "number of token transfers received / (number of token transfers received + number of token transfers sent)"}, "N_OTHER_DEFI": {"type": "NUMBER", "index": 10, "name": "N_OTHER_DEFI", "comment": "any non-swap, non-LP transactions with events like borrow, lend, etc."}, "N_LP_ADDS": {"type": "NUMBER", "index": 11, "name": "N_LP_ADDS", "comment": "number of non-swap transfers to a liquidity pool"}, "N_LP_POOLS": {"type": "NUMBER", "index": 12, "name": "N_LP_POOLS", "comment": "Number of unique liquidity pools this address has provided liquidity to"}, "N_SWAP_TX": {"type": "NUMBER", "index": 13, "name": "N_SWAP_TX", "comment": "number of swaps"}, "N_SWAPS": {"type": "NUMBER", "index": 14, "name": "N_SWAPS", "comment": "Total number of individual swap operations (may differ from n_swap_tx if transactions contain multiple swaps)"}, "N_STAKE_TX": {"type": "NUMBER", "index": 15, "name": "N_STAKE_TX", "comment": "number of staking transactions (liquid stake or delegation)"}, "N_VALIDATORS": {"type": "NUMBER", "index": 16, "name": "N_VALIDATORS", "comment": "number of validators staked to OR liquid stake providers"}, "NET_STAKE_ACCUMULATE": {"type": "NUMBER", "index": 17, "name": "NET_STAKE_ACCUMULATE", "comment": "number of stakes / (number of stakes + number of unstakes)"}, "N_GOV_VOTES": {"type": "NUMBER", "index": 18, "name": "N_GOV_VOTES", "comment": ""}, "NET_DELEGATED": {"type": "NUMBER", "index": 19, "name": "NET_DELEGATED", "comment": ""}, "N_RESTAKES": {"type": "NUMBER", "index": 20, "name": "N_RESTAKES", "comment": "number of restakes"}, "N_NFT_MINTS": {"type": "NUMBER", "index": 21, "name": "N_NFT_MINTS", "comment": "number of NFTs minted"}, "N_NFT_COLLECTIONS": {"type": "NUMBER", "index": 22, "name": "N_NFT_COLLECTIONS", "comment": "number of NFT contracts traded"}, "N_NFT_TRADES": {"type": "NUMBER", "index": 23, "name": "N_NFT_TRADES", "comment": ""}, "N_NFT_IDS": {"type": "NUMBER", "index": 24, "name": "N_NFT_IDS", "comment": "number of distinct NFTs bought or sold"}, "N_NFT_LISTS": {"type": "NUMBER", "index": 25, "name": "N_NFT_LISTS", "comment": "number of NFTs listed"}, "N_NFT_BUYS": {"type": "TEXT", "index": 26, "name": "N_NFT_BUYS", "comment": "number of buys of any NFTs"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_base_address_metrics"}, "source.polygon_models.crosschain_public.user_abis": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE_PUBLIC", "name": "USER_ABIS", "database": "CROSSCHAIN", "comment": null, "owner": "DS_APP_USER_ABI"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "ABI": {"type": "TEXT", "index": 3, "name": "ABI", "comment": null}, "DISCORD_USERNAME": {"type": "TEXT", "index": 4, "name": "DISCORD_USERNAME", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DUPLICATE_ABI": {"type": "BOOLEAN", "index": 6, "name": "DUPLICATE_ABI", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-20 16:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1780736, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 605, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.crosschain_public.user_abis"}, "source.fsc_evm.crosschain_public.user_abis": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE_PUBLIC", "name": "USER_ABIS", "database": "CROSSCHAIN", "comment": null, "owner": "DS_APP_USER_ABI"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "ABI": {"type": "TEXT", "index": 3, "name": "ABI", "comment": null}, "DISCORD_USERNAME": {"type": "TEXT", "index": 4, "name": "DISCORD_USERNAME", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DUPLICATE_ABI": {"type": "BOOLEAN", "index": 6, "name": "DUPLICATE_ABI", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-20 16:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1780736, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 605, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_public.user_abis"}, "source.fsc_evm.crosschain_chain_stats.ez_polygon_address_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_POLYGON_ADDRESS_METRICS", "database": "CROSSCHAIN", "comment": "User-level aggregated metrics for Polygon blockchain including transaction activity, DeFi interactions, staking behavior, NFT activity, and governance participation. Captures comprehensive on-chain behavior patterns for individual addresses across various protocol categories and activity types.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "Unique address (wallet address) - primary identifier for all aggregated metrics"}, "N_COMPLEX_TXN": {"type": "NUMBER", "index": 2, "name": "N_COMPLEX_TXN", "comment": "number of non-native-transfer transactions initiated by the user + number of bridge transactions"}, "N_CONTRACTS": {"type": "NUMBER", "index": 3, "name": "N_CONTRACTS", "comment": "the number of different contracts that the user transacts with"}, "N_TXN": {"type": "NUMBER", "index": 4, "name": "N_TXN", "comment": "number of transactions + CEX withdrawals + inbound bridge transfers"}, "N_DAYS_ACTIVE": {"type": "NUMBER", "index": 5, "name": "N_DAYS_ACTIVE", "comment": "number of days with initiated transactions + CEX withdrawals + inbound bridge transfers"}, "N_BRIDGE_IN": {"type": "NUMBER", "index": 6, "name": "N_BRIDGE_IN", "comment": "number of inbound bridge transfers"}, "N_BRIDGES": {"type": "NUMBER", "index": 7, "name": "N_BRIDGES", "comment": "Total number of bridge transactions (both inbound and outbound) executed by this address"}, "N_CEX_WITHDRAWALS": {"type": "NUMBER", "index": 8, "name": "N_CEX_WITHDRAWALS", "comment": "number of withdrawals from a centralized exchange"}, "NET_TOKEN_ACCUMULATE": {"type": "NUMBER", "index": 9, "name": "NET_TOKEN_ACCUMULATE", "comment": "number of token transfers received / (number of token transfers received + number of token transfers sent)"}, "N_OTHER_DEFI": {"type": "NUMBER", "index": 10, "name": "N_OTHER_DEFI", "comment": "any non-swap, non-LP transactions with events like borrow, lend, etc."}, "N_LP_ADDS": {"type": "NUMBER", "index": 11, "name": "N_LP_ADDS", "comment": "number of non-swap transfers to a liquidity pool"}, "N_LP_POOLS": {"type": "NUMBER", "index": 12, "name": "N_LP_POOLS", "comment": "Number of unique liquidity pools this address has provided liquidity to"}, "N_SWAP_TX": {"type": "NUMBER", "index": 13, "name": "N_SWAP_TX", "comment": "number of swaps"}, "N_SWAPS": {"type": "NUMBER", "index": 14, "name": "N_SWAPS", "comment": "Total number of individual swap operations (may differ from n_swap_tx if transactions contain multiple swaps)"}, "N_STAKE_TX": {"type": "NUMBER", "index": 15, "name": "N_STAKE_TX", "comment": "number of staking transactions (liquid stake or delegation)"}, "N_VALIDATORS": {"type": "NUMBER", "index": 16, "name": "N_VALIDATORS", "comment": "number of validators staked to OR liquid stake providers"}, "NET_STAKE_ACCUMULATE": {"type": "NUMBER", "index": 17, "name": "NET_STAKE_ACCUMULATE", "comment": "number of stakes / (number of stakes + number of unstakes)"}, "N_GOV_VOTES": {"type": "NUMBER", "index": 18, "name": "N_GOV_VOTES", "comment": ""}, "NET_DELEGATED": {"type": "NUMBER", "index": 19, "name": "NET_DELEGATED", "comment": ""}, "N_RESTAKES": {"type": "NUMBER", "index": 20, "name": "N_RESTAKES", "comment": "number of restakes"}, "N_NFT_MINTS": {"type": "NUMBER", "index": 21, "name": "N_NFT_MINTS", "comment": "number of NFTs minted"}, "N_NFT_COLLECTIONS": {"type": "NUMBER", "index": 22, "name": "N_NFT_COLLECTIONS", "comment": "number of NFT contracts traded"}, "N_NFT_TRADES": {"type": "NUMBER", "index": 23, "name": "N_NFT_TRADES", "comment": ""}, "N_NFT_IDS": {"type": "NUMBER", "index": 24, "name": "N_NFT_IDS", "comment": "number of distinct NFTs bought or sold"}, "N_NFT_LISTS": {"type": "NUMBER", "index": 25, "name": "N_NFT_LISTS", "comment": "number of NFTs listed"}, "N_NFT_BUYS": {"type": "TEXT", "index": 26, "name": "N_NFT_BUYS", "comment": "number of buys of any NFTs"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_polygon_address_metrics"}, "source.fsc_evm.crosschain_chain_stats.ez_polygon_allowlist": {"metadata": {"type": "BASE TABLE", "schema": "CHAIN_STATS", "name": "EZ_POLYGON_ALLOWLIST", "database": "CROSSCHAIN", "comment": "Verified tokens for Polygon blockchain. Appended with a tracks asset column that indicates ETH, BTC, USD, or is an alt coin", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The name of the blockchain (e.g., Polygon, Ethereum, etc.)"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": "The symbol of the token (e.g., ETH, BTC, USDC, etc.)"}, "TRACKS_ASSET": {"type": "TEXT", "index": 4, "name": "TRACKS_ASSET", "comment": "the asset that the token tracks, which can be ETH, BTC, USD, or an alt token. This is used to indicate the primary asset that the token is associated with"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 06:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 79360, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 376, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_polygon_allowlist"}, "source.fsc_evm.crosschain_chain_stats.ez_bsc_protocol_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_BSC_PROTOCOL_METRICS", "database": "CROSSCHAIN", "comment": "Daily aggregated protocol-level metrics for Bsc blockchain including user activity, transaction counts, and token flow data. Combines protocol interaction data with Flipside scoring to distinguish between total activity and quality user activity (Flipside score >= 4). Metrics track inflows, outflows, and user engagement at the protocol level.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "PROTOCOL": {"type": "TEXT", "index": 2, "name": "PROTOCOL", "comment": "Protocol names including versioning information (e.g. Uniswap v2, v3, etc.). Note: protocol names may not always match protocol names in other tables like dex_volume"}, "N_USERS": {"type": "NUMBER", "index": 3, "name": "N_USERS", "comment": "Number of unique addresses submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_USERS": {"type": "NUMBER", "index": 4, "name": "N_QUALITY_USERS", "comment": "Number of unique quality addresses with Flipside score >= 4 submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_TRANSACTIONS": {"type": "NUMBER", "index": 5, "name": "N_TRANSACTIONS", "comment": "Number of unique transactions that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_TRANSACTIONS": {"type": "NUMBER", "index": 6, "name": "N_QUALITY_TRANSACTIONS", "comment": "Number of unique transactions by addresses with Flipside score >= 4 that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "USD_INFLOWS": {"type": "FLOAT", "index": 7, "name": "USD_INFLOWS", "comment": "USD value of tokens sent INTO this protocol from all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "USD_OUTFLOWS": {"type": "FLOAT", "index": 8, "name": "USD_OUTFLOWS", "comment": "USD value of tokens sent FROM this protocol to all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "NET_USD_INFLOW": {"type": "FLOAT", "index": 9, "name": "NET_USD_INFLOW", "comment": "USD inflows minus outflows. Note: Price effects may cause net USD and token-level net changes to differ in direction (rare but possible with large, fast price changes)"}, "GROSS_USD_VOLUME": {"type": "FLOAT", "index": 10, "name": "GROSS_USD_VOLUME", "comment": "Total USD volume calculated as inflows plus outflows"}, "QUALITY_USD_INFLOWS": {"type": "FLOAT", "index": 11, "name": "QUALITY_USD_INFLOWS", "comment": "USD value of token inflows from quality addresses with Flipside score >= 4"}, "QUALITY_USD_OUTFLOWS": {"type": "FLOAT", "index": 12, "name": "QUALITY_USD_OUTFLOWS", "comment": "USD value of token outflows to quality addresses with Flipside score >= 4"}, "QUALITY_NET_USD": {"type": "FLOAT", "index": 13, "name": "QUALITY_NET_USD", "comment": "Quality USD inflows minus quality USD outflows. Price effects may apply similar to net_usd_inflow"}, "QUALITY_GROSS_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_GROSS_USD", "comment": "Total quality USD volume calculated as quality inflows plus quality outflows"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_bsc_protocol_metrics"}, "source.fsc_evm.crosschain_chain_stats.ez_bob_address_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_BOB_ADDRESS_METRICS", "database": "CROSSCHAIN", "comment": "User-level aggregated metrics for Bob blockchain including transaction activity, DeFi interactions, staking behavior, NFT activity, and governance participation. Captures comprehensive on-chain behavior patterns for individual addresses across various protocol categories and activity types.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "Unique address (wallet address) - primary identifier for all aggregated metrics"}, "N_COMPLEX_TXN": {"type": "NUMBER", "index": 2, "name": "N_COMPLEX_TXN", "comment": "number of non-native-transfer transactions initiated by the user + number of bridge transactions"}, "N_CONTRACTS": {"type": "NUMBER", "index": 3, "name": "N_CONTRACTS", "comment": "the number of different contracts that the user transacts with"}, "N_TXN": {"type": "NUMBER", "index": 4, "name": "N_TXN", "comment": "number of transactions + CEX withdrawals + inbound bridge transfers"}, "N_DAYS_ACTIVE": {"type": "NUMBER", "index": 5, "name": "N_DAYS_ACTIVE", "comment": "number of days with initiated transactions + CEX withdrawals + inbound bridge transfers"}, "N_BRIDGE_IN": {"type": "NUMBER", "index": 6, "name": "N_BRIDGE_IN", "comment": "number of inbound bridge transfers"}, "N_BRIDGES": {"type": "NUMBER", "index": 7, "name": "N_BRIDGES", "comment": "Total number of bridge transactions (both inbound and outbound) executed by this address"}, "N_CEX_WITHDRAWALS": {"type": "NUMBER", "index": 8, "name": "N_CEX_WITHDRAWALS", "comment": "number of withdrawals from a centralized exchange"}, "NET_TOKEN_ACCUMULATE": {"type": "NUMBER", "index": 9, "name": "NET_TOKEN_ACCUMULATE", "comment": "number of token transfers received / (number of token transfers received + number of token transfers sent)"}, "N_OTHER_DEFI": {"type": "NUMBER", "index": 10, "name": "N_OTHER_DEFI", "comment": "any non-swap, non-LP transactions with events like borrow, lend, etc."}, "N_LP_ADDS": {"type": "NUMBER", "index": 11, "name": "N_LP_ADDS", "comment": "number of non-swap transfers to a liquidity pool"}, "N_LP_POOLS": {"type": "NUMBER", "index": 12, "name": "N_LP_POOLS", "comment": "Number of unique liquidity pools this address has provided liquidity to"}, "N_SWAP_TX": {"type": "NUMBER", "index": 13, "name": "N_SWAP_TX", "comment": "number of swaps"}, "N_SWAPS": {"type": "NUMBER", "index": 14, "name": "N_SWAPS", "comment": "Total number of individual swap operations (may differ from n_swap_tx if transactions contain multiple swaps)"}, "N_STAKE_TX": {"type": "NUMBER", "index": 15, "name": "N_STAKE_TX", "comment": "number of staking transactions (liquid stake or delegation)"}, "N_VALIDATORS": {"type": "NUMBER", "index": 16, "name": "N_VALIDATORS", "comment": "number of validators staked to OR liquid stake providers"}, "NET_STAKE_ACCUMULATE": {"type": "NUMBER", "index": 17, "name": "NET_STAKE_ACCUMULATE", "comment": "number of stakes / (number of stakes + number of unstakes)"}, "N_GOV_VOTES": {"type": "NUMBER", "index": 18, "name": "N_GOV_VOTES", "comment": ""}, "NET_DELEGATED": {"type": "NUMBER", "index": 19, "name": "NET_DELEGATED", "comment": ""}, "N_RESTAKES": {"type": "NUMBER", "index": 20, "name": "N_RESTAKES", "comment": "number of restakes"}, "N_NFT_MINTS": {"type": "NUMBER", "index": 21, "name": "N_NFT_MINTS", "comment": "number of NFTs minted"}, "N_NFT_COLLECTIONS": {"type": "NUMBER", "index": 22, "name": "N_NFT_COLLECTIONS", "comment": "number of NFT contracts traded"}, "N_NFT_TRADES": {"type": "NUMBER", "index": 23, "name": "N_NFT_TRADES", "comment": ""}, "N_NFT_IDS": {"type": "NUMBER", "index": 24, "name": "N_NFT_IDS", "comment": "number of distinct NFTs bought or sold"}, "N_NFT_LISTS": {"type": "NUMBER", "index": 25, "name": "N_NFT_LISTS", "comment": "number of NFTs listed"}, "N_NFT_BUYS": {"type": "TEXT", "index": 26, "name": "N_NFT_BUYS", "comment": "number of buys of any NFTs"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_bob_address_metrics"}, "source.fsc_evm.crosschain_chain_stats.ez_avalanche_protocol_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_AVALANCHE_PROTOCOL_METRICS", "database": "CROSSCHAIN", "comment": "Daily aggregated protocol-level metrics for Avlanache blockchain including user activity, transaction counts, and token flow data. Combines protocol interaction data with Flipside scoring to distinguish between total activity and quality user activity (Flipside score >= 4). Metrics track inflows, outflows, and user engagement at the protocol level.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "PROTOCOL": {"type": "TEXT", "index": 2, "name": "PROTOCOL", "comment": "Protocol names including versioning information (e.g. Uniswap v2, v3, etc.). Note: protocol names may not always match protocol names in other tables like dex_volume"}, "N_USERS": {"type": "NUMBER", "index": 3, "name": "N_USERS", "comment": "Number of unique addresses submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_USERS": {"type": "NUMBER", "index": 4, "name": "N_QUALITY_USERS", "comment": "Number of unique quality addresses with Flipside score >= 4 submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_TRANSACTIONS": {"type": "NUMBER", "index": 5, "name": "N_TRANSACTIONS", "comment": "Number of unique transactions that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_TRANSACTIONS": {"type": "NUMBER", "index": 6, "name": "N_QUALITY_TRANSACTIONS", "comment": "Number of unique transactions by addresses with Flipside score >= 4 that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "USD_INFLOWS": {"type": "FLOAT", "index": 7, "name": "USD_INFLOWS", "comment": "USD value of tokens sent INTO this protocol from all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "USD_OUTFLOWS": {"type": "FLOAT", "index": 8, "name": "USD_OUTFLOWS", "comment": "USD value of tokens sent FROM this protocol to all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "NET_USD_INFLOW": {"type": "FLOAT", "index": 9, "name": "NET_USD_INFLOW", "comment": "USD inflows minus outflows. Note: Price effects may cause net USD and token-level net changes to differ in direction (rare but possible with large, fast price changes)"}, "GROSS_USD_VOLUME": {"type": "FLOAT", "index": 10, "name": "GROSS_USD_VOLUME", "comment": "Total USD volume calculated as inflows plus outflows"}, "QUALITY_USD_INFLOWS": {"type": "FLOAT", "index": 11, "name": "QUALITY_USD_INFLOWS", "comment": "USD value of token inflows from quality addresses with Flipside score >= 4"}, "QUALITY_USD_OUTFLOWS": {"type": "FLOAT", "index": 12, "name": "QUALITY_USD_OUTFLOWS", "comment": "USD value of token outflows to quality addresses with Flipside score >= 4"}, "QUALITY_NET_USD": {"type": "FLOAT", "index": 13, "name": "QUALITY_NET_USD", "comment": "Quality USD inflows minus quality USD outflows. Price effects may apply similar to net_usd_inflow"}, "QUALITY_GROSS_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_GROSS_USD", "comment": "Total quality USD volume calculated as quality inflows plus quality outflows"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_avalanche_protocol_metrics"}, "source.fsc_evm.crosschain_chain_stats.ez_avalanche_allowlist": {"metadata": {"type": "BASE TABLE", "schema": "CHAIN_STATS", "name": "EZ_AVALANCHE_ALLOWLIST", "database": "CROSSCHAIN", "comment": "Verified tokens for Avalanche blockchain. Appended with a tracks asset column that indicates ETH, BTC, USD, or is an alt coin", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The name of the blockchain (e.g., Avalanche, Ethereum, etc.)"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": "The symbol of the token (e.g., ETH, BTC, USDC, etc.)"}, "TRACKS_ASSET": {"type": "TEXT", "index": 4, "name": "TRACKS_ASSET", "comment": "the asset that the token tracks, which can be ETH, BTC, USD, or an alt token. This is used to indicate the primary asset that the token is associated with"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 06:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 72192, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 227, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_avalanche_allowlist"}, "source.fsc_evm.crosschain_chain_stats.ez_ink_metrics_daily": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_INK_METRICS_DAILY", "database": "CROSSCHAIN", "comment": "Daily aggregated metrics for Ink blockchain including transaction activity, fees, DEX volumes, bridge flows, CEX flows, and TVL data. All metrics are calculated at the daily level (YYYY-MM-DD format) and include both total activity and quality user activity (Flipside score >= 4).", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "ACTIVE_USERS_COUNT": {"type": "NUMBER", "index": 2, "name": "ACTIVE_USERS_COUNT", "comment": "Number of origin_from_address (Externally Owned Accounts EOAs) that submitted a transaction"}, "ACTIVE_QUALITY_USERS_COUNT": {"type": "NUMBER", "index": 3, "name": "ACTIVE_QUALITY_USERS_COUNT", "comment": "Number of EOAs with a Flipside score of 4 or higher that submitted a transaction"}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 4, "name": "TRANSACTION_COUNT", "comment": "Number of transactions submitted by any origin_from_address (EOA)"}, "QUALITY_TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "QUALITY_TRANSACTION_COUNT", "comment": "Number of transactions submitted by EOAs with a Flipside score of 4 or higher"}, "TOTAL_FEES": {"type": "FLOAT", "index": 6, "name": "TOTAL_FEES", "comment": "Total transaction fees paid, denominated in Ether (ETH)"}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 7, "name": "TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid (converting ETH to USD via ETH price)"}, "QUALITY_TOTAL_FEES": {"type": "FLOAT", "index": 8, "name": "QUALITY_TOTAL_FEES", "comment": "Total transaction fees paid by EOAs with a Flipside score of 4 or higher, denominated in Ether (ETH)"}, "QUALITY_TOTAL_FEES_USD": {"type": "FLOAT", "index": 9, "name": "QUALITY_TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid by EOAs with a Flipside score of 4 or higher (converting ETH to USD via ETH price)"}, "STABLECOIN_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 10, "name": "STABLECOIN_TRANSFER_VOLUME_USD", "comment": "Value of all stablecoin transfers for any reason (USD)"}, "IN_UNIT_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 11, "name": "IN_UNIT_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers of any token for any reason, denominated in ETH to reduce price effects (token price changes can be different than fundamental activity changes)"}, "TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 12, "name": "TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers for any reason (direct, swap, liquidity deposit, staking, etc.), denominated in USD accepting price effects"}, "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 13, "name": "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in ETH"}, "QUALITY_TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in USD"}, "CEX_WITHDRAWAL_VOLUME_USD": {"type": "FLOAT", "index": 15, "name": "CEX_WITHDRAWAL_VOLUME_USD", "comment": "Value of central exchange token withdrawals (USD)"}, "CEX_WITHDRAWAL_TX_COUNT": {"type": "NUMBER", "index": 16, "name": "CEX_WITHDRAWAL_TX_COUNT", "comment": "Number of central exchange token withdrawal transactions"}, "CEX_UNIQUE_WITHDRAWING_ADDRESSES": {"type": "NUMBER", "index": 17, "name": "CEX_UNIQUE_WITHDRAWING_ADDRESSES", "comment": "Number of unique addresses that withdrew from a central exchange"}, "CEX_DEPOSIT_VOLUME_USD": {"type": "FLOAT", "index": 18, "name": "CEX_DEPOSIT_VOLUME_USD", "comment": "Value of central exchange token deposits (USD)"}, "CEX_DEPOSIT_TX_COUNT": {"type": "NUMBER", "index": 19, "name": "CEX_DEPOSIT_TX_COUNT", "comment": "Number of central exchange token deposit transactions"}, "CEX_UNIQUE_DEPOSITING_ADDRESSES": {"type": "NUMBER", "index": 20, "name": "CEX_UNIQUE_DEPOSITING_ADDRESSES", "comment": "Number of unique addresses that deposited to a central exchange"}, "CEX_NET_FLOW_USD": {"type": "FLOAT", "index": 21, "name": "CEX_NET_FLOW_USD", "comment": "Net CEX flow (withdrawal_volume_usd - deposit_volume_usd). Note that if activity and price are correlated, this value can be negative even if more tokens are withdrawn than deposited"}, "CHAIN_GROSS_DEX_VOLUME_USD": {"type": "FLOAT", "index": 22, "name": "CHAIN_GROSS_DEX_VOLUME_USD", "comment": "USD value of token sell volume on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAP_COUNT": {"type": "NUMBER", "index": 23, "name": "CHAIN_SWAP_COUNT", "comment": "Number of swap transactions on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAPPER_COUNT": {"type": "NUMBER", "index": 24, "name": "CHAIN_SWAPPER_COUNT", "comment": "Number of unique EOAs that have submitted a swap transaction on Decentralized Exchanges (DEXs) protocols"}, "TVL_USD": {"type": "FLOAT", "index": 25, "name": "TVL_USD", "comment": "Total Value Locked - USD value of tokens locked in smart contracts. INCLUDES borrowed tokens, liquid staking, and staking"}, "IN_UNIT_TVL": {"type": "FLOAT", "index": 26, "name": "IN_UNIT_TVL", "comment": "Total Value Locked in ETH denominated terms to reduce price effects"}, "BRIDGE_INBOUND_VOLUME_USD": {"type": "FLOAT", "index": 27, "name": "BRIDGE_INBOUND_VOLUME_USD", "comment": "Value of bridge inflows onto Ethereum, denominated in USD"}, "BRIDGE_INBOUND_ADDRESSES": {"type": "NUMBER", "index": 28, "name": "BRIDGE_INBOUND_ADDRESSES", "comment": "Number of unique addresses receiving a bridge inflow"}, "BRIDGE_INBOUND_TX_COUNT": {"type": "NUMBER", "index": 29, "name": "BRIDGE_INBOUND_TX_COUNT", "comment": "Number of bridge inflow transactions"}, "BRIDGE_OUTBOUND_VOLUME_USD": {"type": "FLOAT", "index": 30, "name": "BRIDGE_OUTBOUND_VOLUME_USD", "comment": "Value of bridge outflows from Ethereum, denominated in USD"}, "BRIDGE_OUTBOUND_ADDRESSES": {"type": "NUMBER", "index": 31, "name": "BRIDGE_OUTBOUND_ADDRESSES", "comment": "Number of unique addresses sending a bridge outflow"}, "BRIDGE_OUTBOUND_TX_COUNT": {"type": "NUMBER", "index": 32, "name": "BRIDGE_OUTBOUND_TX_COUNT", "comment": "Number of bridge outflow transactions"}, "BRIDGE_GROSS_VOLUME_USD": {"type": "FLOAT", "index": 33, "name": "BRIDGE_GROSS_VOLUME_USD", "comment": "Value of bridge outflows from Ethereum, denominated in USD"}, "BRIDGE_NET_INBOUND_USD": {"type": "FLOAT", "index": 34, "name": "BRIDGE_NET_INBOUND_USD", "comment": "Value of bridge inflows minus outflows, denominated in USD. Note that if activity and price are correlated, this value can be negative even if more tokens are brought onto chain than off"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_ink_metrics_daily"}, "source.fsc_evm.crosschain_chain_stats.ez_boba_protocol_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_BOBA_PROTOCOL_METRICS", "database": "CROSSCHAIN", "comment": "Daily aggregated protocol-level metrics for Boba blockchain including user activity, transaction counts, and token flow data. Combines protocol interaction data with Flipside scoring to distinguish between total activity and quality user activity (Flipside score >= 4). Metrics track inflows, outflows, and user engagement at the protocol level.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "PROTOCOL": {"type": "TEXT", "index": 2, "name": "PROTOCOL", "comment": "Protocol names including versioning information (e.g. Uniswap v2, v3, etc.). Note: protocol names may not always match protocol names in other tables like dex_volume"}, "N_USERS": {"type": "NUMBER", "index": 3, "name": "N_USERS", "comment": "Number of unique addresses submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_USERS": {"type": "NUMBER", "index": 4, "name": "N_QUALITY_USERS", "comment": "Number of unique quality addresses with Flipside score >= 4 submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_TRANSACTIONS": {"type": "NUMBER", "index": 5, "name": "N_TRANSACTIONS", "comment": "Number of unique transactions that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_TRANSACTIONS": {"type": "NUMBER", "index": 6, "name": "N_QUALITY_TRANSACTIONS", "comment": "Number of unique transactions by addresses with Flipside score >= 4 that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "USD_INFLOWS": {"type": "FLOAT", "index": 7, "name": "USD_INFLOWS", "comment": "USD value of tokens sent INTO this protocol from all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "USD_OUTFLOWS": {"type": "FLOAT", "index": 8, "name": "USD_OUTFLOWS", "comment": "USD value of tokens sent FROM this protocol to all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "NET_USD_INFLOW": {"type": "FLOAT", "index": 9, "name": "NET_USD_INFLOW", "comment": "USD inflows minus outflows. Note: Price effects may cause net USD and token-level net changes to differ in direction (rare but possible with large, fast price changes)"}, "GROSS_USD_VOLUME": {"type": "FLOAT", "index": 10, "name": "GROSS_USD_VOLUME", "comment": "Total USD volume calculated as inflows plus outflows"}, "QUALITY_USD_INFLOWS": {"type": "FLOAT", "index": 11, "name": "QUALITY_USD_INFLOWS", "comment": "USD value of token inflows from quality addresses with Flipside score >= 4"}, "QUALITY_USD_OUTFLOWS": {"type": "FLOAT", "index": 12, "name": "QUALITY_USD_OUTFLOWS", "comment": "USD value of token outflows to quality addresses with Flipside score >= 4"}, "QUALITY_NET_USD": {"type": "FLOAT", "index": 13, "name": "QUALITY_NET_USD", "comment": "Quality USD inflows minus quality USD outflows. Price effects may apply similar to net_usd_inflow"}, "QUALITY_GROSS_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_GROSS_USD", "comment": "Total quality USD volume calculated as quality inflows plus quality outflows"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_boba_protocol_metrics"}, "source.fsc_evm.crosschain_chain_stats.ez_base_metrics_daily": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_BASE_METRICS_DAILY", "database": "CROSSCHAIN", "comment": "Daily aggregated metrics for Base blockchain including transaction activity, fees, DEX volumes, bridge flows, CEX flows, and TVL data. All metrics are calculated at the daily level (YYYY-MM-DD format) and include both total activity and quality user activity (Flipside score >= 4).", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "ACTIVE_USERS_COUNT": {"type": "NUMBER", "index": 2, "name": "ACTIVE_USERS_COUNT", "comment": "Number of origin_from_address (Externally Owned Accounts EOAs) that submitted a transaction"}, "ACTIVE_QUALITY_USERS_COUNT": {"type": "NUMBER", "index": 3, "name": "ACTIVE_QUALITY_USERS_COUNT", "comment": "Number of EOAs with a Flipside score of 4 or higher that submitted a transaction"}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 4, "name": "TRANSACTION_COUNT", "comment": "Number of transactions submitted by any origin_from_address (EOA)"}, "QUALITY_TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "QUALITY_TRANSACTION_COUNT", "comment": "Number of transactions submitted by EOAs with a Flipside score of 4 or higher"}, "TOTAL_FEES": {"type": "FLOAT", "index": 6, "name": "TOTAL_FEES", "comment": "Total transaction fees paid, denominated in Ether (ETH)"}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 7, "name": "TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid (converting ETH to USD via ETH price)"}, "QUALITY_TOTAL_FEES": {"type": "FLOAT", "index": 8, "name": "QUALITY_TOTAL_FEES", "comment": "Total transaction fees paid by EOAs with a Flipside score of 4 or higher, denominated in Ether (ETH)"}, "QUALITY_TOTAL_FEES_USD": {"type": "FLOAT", "index": 9, "name": "QUALITY_TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid by EOAs with a Flipside score of 4 or higher (converting ETH to USD via ETH price)"}, "STABLECOIN_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 10, "name": "STABLECOIN_TRANSFER_VOLUME_USD", "comment": "Value of all stablecoin transfers for any reason (USD)"}, "IN_UNIT_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 11, "name": "IN_UNIT_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers of any token for any reason, denominated in ETH to reduce price effects (token price changes can be different than fundamental activity changes)"}, "TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 12, "name": "TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers for any reason (direct, swap, liquidity deposit, staking, etc.), denominated in USD accepting price effects"}, "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 13, "name": "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in ETH"}, "QUALITY_TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in USD"}, "CEX_WITHDRAWAL_VOLUME_USD": {"type": "FLOAT", "index": 15, "name": "CEX_WITHDRAWAL_VOLUME_USD", "comment": "Value of central exchange token withdrawals (USD)"}, "CEX_WITHDRAWAL_TX_COUNT": {"type": "NUMBER", "index": 16, "name": "CEX_WITHDRAWAL_TX_COUNT", "comment": "Number of central exchange token withdrawal transactions"}, "CEX_UNIQUE_WITHDRAWING_ADDRESSES": {"type": "NUMBER", "index": 17, "name": "CEX_UNIQUE_WITHDRAWING_ADDRESSES", "comment": "Number of unique addresses that withdrew from a central exchange"}, "CEX_DEPOSIT_VOLUME_USD": {"type": "FLOAT", "index": 18, "name": "CEX_DEPOSIT_VOLUME_USD", "comment": "Value of central exchange token deposits (USD)"}, "CEX_DEPOSIT_TX_COUNT": {"type": "NUMBER", "index": 19, "name": "CEX_DEPOSIT_TX_COUNT", "comment": "Number of central exchange token deposit transactions"}, "CEX_UNIQUE_DEPOSITING_ADDRESSES": {"type": "NUMBER", "index": 20, "name": "CEX_UNIQUE_DEPOSITING_ADDRESSES", "comment": "Number of unique addresses that deposited to a central exchange"}, "CEX_NET_FLOW_USD": {"type": "FLOAT", "index": 21, "name": "CEX_NET_FLOW_USD", "comment": "Net CEX flow (withdrawal_volume_usd - deposit_volume_usd). Note that if activity and price are correlated, this value can be negative even if more tokens are withdrawn than deposited"}, "CHAIN_GROSS_DEX_VOLUME_USD": {"type": "FLOAT", "index": 22, "name": "CHAIN_GROSS_DEX_VOLUME_USD", "comment": "USD value of token sell volume on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAP_COUNT": {"type": "NUMBER", "index": 23, "name": "CHAIN_SWAP_COUNT", "comment": "Number of swap transactions on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAPPER_COUNT": {"type": "NUMBER", "index": 24, "name": "CHAIN_SWAPPER_COUNT", "comment": "Number of unique EOAs that have submitted a swap transaction on Decentralized Exchanges (DEXs) protocols"}, "TVL_USD": {"type": "FLOAT", "index": 25, "name": "TVL_USD", "comment": "Total Value Locked - USD value of tokens locked in smart contracts. INCLUDES borrowed tokens, liquid staking, and staking"}, "IN_UNIT_TVL": {"type": "FLOAT", "index": 26, "name": "IN_UNIT_TVL", "comment": "Total Value Locked in ETH denominated terms to reduce price effects"}, "BRIDGE_INBOUND_VOLUME_USD": {"type": "FLOAT", "index": 27, "name": "BRIDGE_INBOUND_VOLUME_USD", "comment": "Value of bridge inflows onto Base, denominated in USD"}, "BRIDGE_INBOUND_ADDRESSES": {"type": "NUMBER", "index": 28, "name": "BRIDGE_INBOUND_ADDRESSES", "comment": "Number of unique addresses receiving a bridge inflow"}, "BRIDGE_INBOUND_TX_COUNT": {"type": "NUMBER", "index": 29, "name": "BRIDGE_INBOUND_TX_COUNT", "comment": "Number of bridge inflow transactions"}, "BRIDGE_OUTBOUND_VOLUME_USD": {"type": "FLOAT", "index": 30, "name": "BRIDGE_OUTBOUND_VOLUME_USD", "comment": "Value of bridge outflows from Base, denominated in USD"}, "BRIDGE_OUTBOUND_ADDRESSES": {"type": "NUMBER", "index": 31, "name": "BRIDGE_OUTBOUND_ADDRESSES", "comment": "Number of unique addresses sending a bridge outflow"}, "BRIDGE_OUTBOUND_TX_COUNT": {"type": "NUMBER", "index": 32, "name": "BRIDGE_OUTBOUND_TX_COUNT", "comment": "Number of bridge outflow transactions"}, "BRIDGE_GROSS_VOLUME_USD": {"type": "FLOAT", "index": 33, "name": "BRIDGE_GROSS_VOLUME_USD", "comment": "Value of bridge outflows from Base, denominated in USD"}, "BRIDGE_NET_INBOUND_USD": {"type": "FLOAT", "index": 34, "name": "BRIDGE_NET_INBOUND_USD", "comment": "Value of bridge inflows minus outflows, denominated in USD. Note that if activity and price are correlated, this value can be negative even if more tokens are brought onto chain than off"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_base_metrics_daily"}, "source.fsc_evm.crosschain_chain_stats.ez_base_protocol_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_BASE_PROTOCOL_METRICS", "database": "CROSSCHAIN", "comment": "Daily aggregated protocol-level metrics for Base blockchain including user activity, transaction counts, and token flow data. Combines protocol interaction data with Flipside scoring to distinguish between total activity and quality user activity (Flipside score >= 4). Metrics track inflows, outflows, and user engagement at the protocol level.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "PROTOCOL": {"type": "TEXT", "index": 2, "name": "PROTOCOL", "comment": "Protocol names including versioning information (e.g. Uniswap v2, v3, etc.). Note: protocol names may not always match protocol names in other tables like dex_volume"}, "N_USERS": {"type": "NUMBER", "index": 3, "name": "N_USERS", "comment": "Number of unique addresses submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_USERS": {"type": "NUMBER", "index": 4, "name": "N_QUALITY_USERS", "comment": "Number of unique quality addresses with Flipside score >= 4 submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_TRANSACTIONS": {"type": "NUMBER", "index": 5, "name": "N_TRANSACTIONS", "comment": "Number of unique transactions that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_TRANSACTIONS": {"type": "NUMBER", "index": 6, "name": "N_QUALITY_TRANSACTIONS", "comment": "Number of unique transactions by addresses with Flipside score >= 4 that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "USD_INFLOWS": {"type": "FLOAT", "index": 7, "name": "USD_INFLOWS", "comment": "USD value of tokens sent INTO this protocol from all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "USD_OUTFLOWS": {"type": "FLOAT", "index": 8, "name": "USD_OUTFLOWS", "comment": "USD value of tokens sent FROM this protocol to all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "NET_USD_INFLOW": {"type": "FLOAT", "index": 9, "name": "NET_USD_INFLOW", "comment": "USD inflows minus outflows. Note: Price effects may cause net USD and token-level net changes to differ in direction (rare but possible with large, fast price changes)"}, "GROSS_USD_VOLUME": {"type": "FLOAT", "index": 10, "name": "GROSS_USD_VOLUME", "comment": "Total USD volume calculated as inflows plus outflows"}, "QUALITY_USD_INFLOWS": {"type": "FLOAT", "index": 11, "name": "QUALITY_USD_INFLOWS", "comment": "USD value of token inflows from quality addresses with Flipside score >= 4"}, "QUALITY_USD_OUTFLOWS": {"type": "FLOAT", "index": 12, "name": "QUALITY_USD_OUTFLOWS", "comment": "USD value of token outflows to quality addresses with Flipside score >= 4"}, "QUALITY_NET_USD": {"type": "FLOAT", "index": 13, "name": "QUALITY_NET_USD", "comment": "Quality USD inflows minus quality USD outflows. Price effects may apply similar to net_usd_inflow"}, "QUALITY_GROSS_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_GROSS_USD", "comment": "Total quality USD volume calculated as quality inflows plus quality outflows"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_base_protocol_metrics"}, "source.fsc_evm.crosschain_chain_stats.ez_optimism_metrics_daily": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_OPTIMISM_METRICS_DAILY", "database": "CROSSCHAIN", "comment": "Daily aggregated metrics for Optimism blockchain including transaction activity, fees, DEX volumes, bridge flows, CEX flows, and TVL data. All metrics are calculated at the daily level (YYYY-MM-DD format) and include both total activity and quality user activity (Flipside score >= 4).", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "ACTIVE_USERS_COUNT": {"type": "NUMBER", "index": 2, "name": "ACTIVE_USERS_COUNT", "comment": "Number of origin_from_address (Externally Owned Accounts EOAs) that submitted a transaction"}, "ACTIVE_QUALITY_USERS_COUNT": {"type": "NUMBER", "index": 3, "name": "ACTIVE_QUALITY_USERS_COUNT", "comment": "Number of EOAs with a Flipside score of 4 or higher that submitted a transaction"}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 4, "name": "TRANSACTION_COUNT", "comment": "Number of transactions submitted by any origin_from_address (EOA)"}, "QUALITY_TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "QUALITY_TRANSACTION_COUNT", "comment": "Number of transactions submitted by EOAs with a Flipside score of 4 or higher"}, "TOTAL_FEES": {"type": "FLOAT", "index": 6, "name": "TOTAL_FEES", "comment": "Total transaction fees paid, denominated in Ether (ETH)"}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 7, "name": "TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid (converting ETH to USD via ETH price)"}, "QUALITY_TOTAL_FEES": {"type": "FLOAT", "index": 8, "name": "QUALITY_TOTAL_FEES", "comment": "Total transaction fees paid by EOAs with a Flipside score of 4 or higher, denominated in Ether (ETH)"}, "QUALITY_TOTAL_FEES_USD": {"type": "FLOAT", "index": 9, "name": "QUALITY_TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid by EOAs with a Flipside score of 4 or higher (converting ETH to USD via ETH price)"}, "STABLECOIN_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 10, "name": "STABLECOIN_TRANSFER_VOLUME_USD", "comment": "Value of all stablecoin transfers for any reason (USD)"}, "IN_UNIT_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 11, "name": "IN_UNIT_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers of any token for any reason, denominated in ETH to reduce price effects (token price changes can be different than fundamental activity changes)"}, "TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 12, "name": "TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers for any reason (direct, swap, liquidity deposit, staking, etc.), denominated in USD accepting price effects"}, "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 13, "name": "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in ETH"}, "QUALITY_TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in USD"}, "CEX_WITHDRAWAL_VOLUME_USD": {"type": "FLOAT", "index": 15, "name": "CEX_WITHDRAWAL_VOLUME_USD", "comment": "Value of central exchange token withdrawals (USD)"}, "CEX_WITHDRAWAL_TX_COUNT": {"type": "NUMBER", "index": 16, "name": "CEX_WITHDRAWAL_TX_COUNT", "comment": "Number of central exchange token withdrawal transactions"}, "CEX_UNIQUE_WITHDRAWING_ADDRESSES": {"type": "NUMBER", "index": 17, "name": "CEX_UNIQUE_WITHDRAWING_ADDRESSES", "comment": "Number of unique addresses that withdrew from a central exchange"}, "CEX_DEPOSIT_VOLUME_USD": {"type": "FLOAT", "index": 18, "name": "CEX_DEPOSIT_VOLUME_USD", "comment": "Value of central exchange token deposits (USD)"}, "CEX_DEPOSIT_TX_COUNT": {"type": "NUMBER", "index": 19, "name": "CEX_DEPOSIT_TX_COUNT", "comment": "Number of central exchange token deposit transactions"}, "CEX_UNIQUE_DEPOSITING_ADDRESSES": {"type": "NUMBER", "index": 20, "name": "CEX_UNIQUE_DEPOSITING_ADDRESSES", "comment": "Number of unique addresses that deposited to a central exchange"}, "CEX_NET_FLOW_USD": {"type": "FLOAT", "index": 21, "name": "CEX_NET_FLOW_USD", "comment": "Net CEX flow (withdrawal_volume_usd - deposit_volume_usd). Note that if activity and price are correlated, this value can be negative even if more tokens are withdrawn than deposited"}, "CHAIN_GROSS_DEX_VOLUME_USD": {"type": "FLOAT", "index": 22, "name": "CHAIN_GROSS_DEX_VOLUME_USD", "comment": "USD value of token sell volume on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAP_COUNT": {"type": "NUMBER", "index": 23, "name": "CHAIN_SWAP_COUNT", "comment": "Number of swap transactions on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAPPER_COUNT": {"type": "NUMBER", "index": 24, "name": "CHAIN_SWAPPER_COUNT", "comment": "Number of unique EOAs that have submitted a swap transaction on Decentralized Exchanges (DEXs) protocols"}, "TVL_USD": {"type": "FLOAT", "index": 25, "name": "TVL_USD", "comment": "Total Value Locked - USD value of tokens locked in smart contracts. INCLUDES borrowed tokens, liquid staking, and staking"}, "IN_UNIT_TVL": {"type": "FLOAT", "index": 26, "name": "IN_UNIT_TVL", "comment": "Total Value Locked in ETH denominated terms to reduce price effects"}, "BRIDGE_INBOUND_VOLUME_USD": {"type": "FLOAT", "index": 27, "name": "BRIDGE_INBOUND_VOLUME_USD", "comment": "Value of bridge inflows onto Optimism, denominated in USD"}, "BRIDGE_INBOUND_ADDRESSES": {"type": "NUMBER", "index": 28, "name": "BRIDGE_INBOUND_ADDRESSES", "comment": "Number of unique addresses receiving a bridge inflow"}, "BRIDGE_INBOUND_TX_COUNT": {"type": "NUMBER", "index": 29, "name": "BRIDGE_INBOUND_TX_COUNT", "comment": "Number of bridge inflow transactions"}, "BRIDGE_OUTBOUND_VOLUME_USD": {"type": "FLOAT", "index": 30, "name": "BRIDGE_OUTBOUND_VOLUME_USD", "comment": "Value of bridge outflows from Optimism, denominated in USD"}, "BRIDGE_OUTBOUND_ADDRESSES": {"type": "NUMBER", "index": 31, "name": "BRIDGE_OUTBOUND_ADDRESSES", "comment": "Number of unique addresses sending a bridge outflow"}, "BRIDGE_OUTBOUND_TX_COUNT": {"type": "NUMBER", "index": 32, "name": "BRIDGE_OUTBOUND_TX_COUNT", "comment": "Number of bridge outflow transactions"}, "BRIDGE_GROSS_VOLUME_USD": {"type": "FLOAT", "index": 33, "name": "BRIDGE_GROSS_VOLUME_USD", "comment": "Value of bridge outflows from Optimism, denominated in USD"}, "BRIDGE_NET_INBOUND_USD": {"type": "FLOAT", "index": 34, "name": "BRIDGE_NET_INBOUND_USD", "comment": "Value of bridge inflows minus outflows, denominated in USD. Note that if activity and price are correlated, this value can be negative even if more tokens are brought onto chain than off"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_optimism_metrics_daily"}, "source.polygon_models.crosschain_gold.dim_dates": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "DIM_DATES", "database": "CROSSCHAIN", "comment": "Hold rows for each date from 2017 - 2030", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DATE_DAY": {"type": "DATE", "index": 1, "name": "DATE_DAY", "comment": "date for the row"}, "PRIOR_DATE_DAY": {"type": "DATE", "index": 2, "name": "PRIOR_DATE_DAY", "comment": "date before DATE_DAY"}, "NEXT_DATE_DAY": {"type": "DATE", "index": 3, "name": "NEXT_DATE_DAY", "comment": "date after DATE_DAY"}, "PRIOR_YEAR_DATE_DAY": {"type": "DATE", "index": 4, "name": "PRIOR_YEAR_DATE_DAY", "comment": "date exactly 1 year before DATE_DAY"}, "PRIOR_YEAR_OVER_YEAR_DATE_DAY": {"type": "DATE", "index": 5, "name": "PRIOR_YEAR_OVER_YEAR_DATE_DAY", "comment": "date exactly 1 year after DATE_DAY"}, "DAY_OF_WEEK": {"type": "NUMBER", "index": 6, "name": "DAY_OF_WEEK", "comment": "number representing day of week for DATE_DAY where 1=Sunday"}, "DAY_OF_WEEK_ISO": {"type": "NUMBER", "index": 7, "name": "DAY_OF_WEEK_ISO", "comment": "number representing day of week for DATE_DAY where 1=Monday"}, "DAY_OF_WEEK_NAME": {"type": "TEXT", "index": 8, "name": "DAY_OF_WEEK_NAME", "comment": "day of week name for DATE_DAY"}, "DAY_OF_WEEK_NAME_SHORT": {"type": "TEXT", "index": 9, "name": "DAY_OF_WEEK_NAME_SHORT", "comment": "day of week abbreviation for DATE_DAY"}, "DAY_OF_MONTH": {"type": "NUMBER", "index": 10, "name": "DAY_OF_MONTH", "comment": "day of month for DATE_DAY"}, "DAY_OF_YEAR": {"type": "NUMBER", "index": 11, "name": "DAY_OF_YEAR", "comment": "day of year for DATE_DAY"}, "WEEK_START_DATE": {"type": "DATE", "index": 12, "name": "WEEK_START_DATE", "comment": "date representing the start of the week for DATE_DAY"}, "WEEK_END_DATE": {"type": "DATE", "index": 13, "name": "WEEK_END_DATE", "comment": "date representing the end of the week for DATE_DAY"}, "PRIOR_YEAR_WEEK_START_DATE": {"type": "DATE", "index": 14, "name": "PRIOR_YEAR_WEEK_START_DATE", "comment": "date representing the start of the week for PRIOR_YEAR_DATE_DAY"}, "PRIOR_YEAR_WEEK_END_DATE": {"type": "DATE", "index": 15, "name": "PRIOR_YEAR_WEEK_END_DATE", "comment": "date representing the end of the week for PRIOR_YEAR_DATE_DAY"}, "WEEK_OF_YEAR": {"type": "NUMBER", "index": 16, "name": "WEEK_OF_YEAR", "comment": "number representing the week of the year for DATE_DAY"}, "ISO_WEEK_START_DATE": {"type": "DATE", "index": 17, "name": "ISO_WEEK_START_DATE", "comment": "ISO date representing the start of the week for DATE_DAY"}, "ISO_WEEK_END_DATE": {"type": "DATE", "index": 18, "name": "ISO_WEEK_END_DATE", "comment": "ISO date representing the end of the week for DATE_DAY"}, "PRIOR_YEAR_ISO_WEEK_START_DATE": {"type": "DATE", "index": 19, "name": "PRIOR_YEAR_ISO_WEEK_START_DATE", "comment": "ISO date representing the start of the week for PRIOR_YEAR_DATE_DAY"}, "PRIOR_YEAR_ISO_WEEK_END_DATE": {"type": "DATE", "index": 20, "name": "PRIOR_YEAR_ISO_WEEK_END_DATE", "comment": "ISO date representing the end of the week for PRIOR_YEAR_DATE_DAY"}, "ISO_WEEK_OF_YEAR": {"type": "NUMBER", "index": 21, "name": "ISO_WEEK_OF_YEAR", "comment": "number representing the ISO week of the year for DATE_DAY"}, "PRIOR_YEAR_WEEK_OF_YEAR": {"type": "NUMBER", "index": 22, "name": "PRIOR_YEAR_WEEK_OF_YEAR", "comment": "number representing the week of the year for PRIOR_YEAR_DATE_DAY"}, "PRIOR_YEAR_ISO_WEEK_OF_YEAR": {"type": "NUMBER", "index": 23, "name": "PRIOR_YEAR_ISO_WEEK_OF_YEAR", "comment": "number representing the ISO week of the year for PRIOR_YEAR_DATE_DAY"}, "MONTH_OF_YEAR": {"type": "NUMBER", "index": 24, "name": "MONTH_OF_YEAR", "comment": "number representing the month of the year for DATE_DAY"}, "MONTH_NAME": {"type": "TEXT", "index": 25, "name": "MONTH_NAME", "comment": "month of year name for DATE_DAY"}, "MONTH_NAME_SHORT": {"type": "TEXT", "index": 26, "name": "MONTH_NAME_SHORT", "comment": "month of year abbreviation for DATE_DAY"}, "MONTH_START_DATE": {"type": "DATE", "index": 27, "name": "MONTH_START_DATE", "comment": "first date of month for DATE_DAY"}, "MONTH_END_DATE": {"type": "DATE", "index": 28, "name": "MONTH_END_DATE", "comment": "last date of month for DATE_DAY"}, "PRIOR_YEAR_MONTH_START_DATE": {"type": "DATE", "index": 29, "name": "PRIOR_YEAR_MONTH_START_DATE", "comment": "first date of month for PRIOR_YEAR_DATE_DAY"}, "PRIOR_YEAR_MONTH_END_DATE": {"type": "DATE", "index": 30, "name": "PRIOR_YEAR_MONTH_END_DATE", "comment": "last date of month for PRIOR_YEAR_DATE_DAY"}, "QUARTER_OF_YEAR": {"type": "NUMBER", "index": 31, "name": "QUARTER_OF_YEAR", "comment": "number representing quarter for DATE_DAY"}, "QUARTER_START_DATE": {"type": "DATE", "index": 32, "name": "QUARTER_START_DATE", "comment": "first date of quarter for DATE_DAY"}, "QUARTER_END_DATE": {"type": "DATE", "index": 33, "name": "QUARTER_END_DATE", "comment": "last date of quarter for DATE_DAY"}, "YEAR_NUMBER": {"type": "NUMBER", "index": 34, "name": "YEAR_NUMBER", "comment": "number presenting the year for DATE_DAY"}, "YEAR_START_DATE": {"type": "DATE", "index": 35, "name": "YEAR_START_DATE", "comment": "first date of year for DATE_DAY"}, "YEAR_END_DATE": {"type": "DATE", "index": 36, "name": "YEAR_END_DATE", "comment": "last date of year for DATE_DAY"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-12 01:06UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 313856, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8034, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.crosschain_gold.dim_dates"}, "source.fsc_evm.crosschain_gold.dim_dates": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "DIM_DATES", "database": "CROSSCHAIN", "comment": "Hold rows for each date from 2017 - 2030", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DATE_DAY": {"type": "DATE", "index": 1, "name": "DATE_DAY", "comment": "date for the row"}, "PRIOR_DATE_DAY": {"type": "DATE", "index": 2, "name": "PRIOR_DATE_DAY", "comment": "date before DATE_DAY"}, "NEXT_DATE_DAY": {"type": "DATE", "index": 3, "name": "NEXT_DATE_DAY", "comment": "date after DATE_DAY"}, "PRIOR_YEAR_DATE_DAY": {"type": "DATE", "index": 4, "name": "PRIOR_YEAR_DATE_DAY", "comment": "date exactly 1 year before DATE_DAY"}, "PRIOR_YEAR_OVER_YEAR_DATE_DAY": {"type": "DATE", "index": 5, "name": "PRIOR_YEAR_OVER_YEAR_DATE_DAY", "comment": "date exactly 1 year after DATE_DAY"}, "DAY_OF_WEEK": {"type": "NUMBER", "index": 6, "name": "DAY_OF_WEEK", "comment": "number representing day of week for DATE_DAY where 1=Sunday"}, "DAY_OF_WEEK_ISO": {"type": "NUMBER", "index": 7, "name": "DAY_OF_WEEK_ISO", "comment": "number representing day of week for DATE_DAY where 1=Monday"}, "DAY_OF_WEEK_NAME": {"type": "TEXT", "index": 8, "name": "DAY_OF_WEEK_NAME", "comment": "day of week name for DATE_DAY"}, "DAY_OF_WEEK_NAME_SHORT": {"type": "TEXT", "index": 9, "name": "DAY_OF_WEEK_NAME_SHORT", "comment": "day of week abbreviation for DATE_DAY"}, "DAY_OF_MONTH": {"type": "NUMBER", "index": 10, "name": "DAY_OF_MONTH", "comment": "day of month for DATE_DAY"}, "DAY_OF_YEAR": {"type": "NUMBER", "index": 11, "name": "DAY_OF_YEAR", "comment": "day of year for DATE_DAY"}, "WEEK_START_DATE": {"type": "DATE", "index": 12, "name": "WEEK_START_DATE", "comment": "date representing the start of the week for DATE_DAY"}, "WEEK_END_DATE": {"type": "DATE", "index": 13, "name": "WEEK_END_DATE", "comment": "date representing the end of the week for DATE_DAY"}, "PRIOR_YEAR_WEEK_START_DATE": {"type": "DATE", "index": 14, "name": "PRIOR_YEAR_WEEK_START_DATE", "comment": "date representing the start of the week for PRIOR_YEAR_DATE_DAY"}, "PRIOR_YEAR_WEEK_END_DATE": {"type": "DATE", "index": 15, "name": "PRIOR_YEAR_WEEK_END_DATE", "comment": "date representing the end of the week for PRIOR_YEAR_DATE_DAY"}, "WEEK_OF_YEAR": {"type": "NUMBER", "index": 16, "name": "WEEK_OF_YEAR", "comment": "number representing the week of the year for DATE_DAY"}, "ISO_WEEK_START_DATE": {"type": "DATE", "index": 17, "name": "ISO_WEEK_START_DATE", "comment": "ISO date representing the start of the week for DATE_DAY"}, "ISO_WEEK_END_DATE": {"type": "DATE", "index": 18, "name": "ISO_WEEK_END_DATE", "comment": "ISO date representing the end of the week for DATE_DAY"}, "PRIOR_YEAR_ISO_WEEK_START_DATE": {"type": "DATE", "index": 19, "name": "PRIOR_YEAR_ISO_WEEK_START_DATE", "comment": "ISO date representing the start of the week for PRIOR_YEAR_DATE_DAY"}, "PRIOR_YEAR_ISO_WEEK_END_DATE": {"type": "DATE", "index": 20, "name": "PRIOR_YEAR_ISO_WEEK_END_DATE", "comment": "ISO date representing the end of the week for PRIOR_YEAR_DATE_DAY"}, "ISO_WEEK_OF_YEAR": {"type": "NUMBER", "index": 21, "name": "ISO_WEEK_OF_YEAR", "comment": "number representing the ISO week of the year for DATE_DAY"}, "PRIOR_YEAR_WEEK_OF_YEAR": {"type": "NUMBER", "index": 22, "name": "PRIOR_YEAR_WEEK_OF_YEAR", "comment": "number representing the week of the year for PRIOR_YEAR_DATE_DAY"}, "PRIOR_YEAR_ISO_WEEK_OF_YEAR": {"type": "NUMBER", "index": 23, "name": "PRIOR_YEAR_ISO_WEEK_OF_YEAR", "comment": "number representing the ISO week of the year for PRIOR_YEAR_DATE_DAY"}, "MONTH_OF_YEAR": {"type": "NUMBER", "index": 24, "name": "MONTH_OF_YEAR", "comment": "number representing the month of the year for DATE_DAY"}, "MONTH_NAME": {"type": "TEXT", "index": 25, "name": "MONTH_NAME", "comment": "month of year name for DATE_DAY"}, "MONTH_NAME_SHORT": {"type": "TEXT", "index": 26, "name": "MONTH_NAME_SHORT", "comment": "month of year abbreviation for DATE_DAY"}, "MONTH_START_DATE": {"type": "DATE", "index": 27, "name": "MONTH_START_DATE", "comment": "first date of month for DATE_DAY"}, "MONTH_END_DATE": {"type": "DATE", "index": 28, "name": "MONTH_END_DATE", "comment": "last date of month for DATE_DAY"}, "PRIOR_YEAR_MONTH_START_DATE": {"type": "DATE", "index": 29, "name": "PRIOR_YEAR_MONTH_START_DATE", "comment": "first date of month for PRIOR_YEAR_DATE_DAY"}, "PRIOR_YEAR_MONTH_END_DATE": {"type": "DATE", "index": 30, "name": "PRIOR_YEAR_MONTH_END_DATE", "comment": "last date of month for PRIOR_YEAR_DATE_DAY"}, "QUARTER_OF_YEAR": {"type": "NUMBER", "index": 31, "name": "QUARTER_OF_YEAR", "comment": "number representing quarter for DATE_DAY"}, "QUARTER_START_DATE": {"type": "DATE", "index": 32, "name": "QUARTER_START_DATE", "comment": "first date of quarter for DATE_DAY"}, "QUARTER_END_DATE": {"type": "DATE", "index": 33, "name": "QUARTER_END_DATE", "comment": "last date of quarter for DATE_DAY"}, "YEAR_NUMBER": {"type": "NUMBER", "index": 34, "name": "YEAR_NUMBER", "comment": "number presenting the year for DATE_DAY"}, "YEAR_START_DATE": {"type": "DATE", "index": 35, "name": "YEAR_START_DATE", "comment": "first date of year for DATE_DAY"}, "YEAR_END_DATE": {"type": "DATE", "index": 36, "name": "YEAR_END_DATE", "comment": "last date of year for DATE_DAY"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-12 01:06UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 313856, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8034, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_gold.dim_dates"}, "source.fsc_evm.crosschain_chain_stats.ez_boba_metrics_daily": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_BOBA_METRICS_DAILY", "database": "CROSSCHAIN", "comment": "Daily aggregated metrics for Boba blockchain including transaction activity, fees, DEX volumes, bridge flows, CEX flows, and TVL data. All metrics are calculated at the daily level (YYYY-MM-DD format) and include both total activity and quality user activity (Flipside score >= 4).", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "ACTIVE_USERS_COUNT": {"type": "NUMBER", "index": 2, "name": "ACTIVE_USERS_COUNT", "comment": "Number of origin_from_address (Externally Owned Accounts EOAs) that submitted a transaction"}, "ACTIVE_QUALITY_USERS_COUNT": {"type": "NUMBER", "index": 3, "name": "ACTIVE_QUALITY_USERS_COUNT", "comment": "Number of EOAs with a Flipside score of 4 or higher that submitted a transaction"}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 4, "name": "TRANSACTION_COUNT", "comment": "Number of transactions submitted by any origin_from_address (EOA)"}, "QUALITY_TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "QUALITY_TRANSACTION_COUNT", "comment": "Number of transactions submitted by EOAs with a Flipside score of 4 or higher"}, "TOTAL_FEES": {"type": "FLOAT", "index": 6, "name": "TOTAL_FEES", "comment": "Total transaction fees paid, denominated in Ether (ETH)"}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 7, "name": "TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid (converting ETH to USD via ETH price)"}, "QUALITY_TOTAL_FEES": {"type": "FLOAT", "index": 8, "name": "QUALITY_TOTAL_FEES", "comment": "Total transaction fees paid by EOAs with a Flipside score of 4 or higher, denominated in Ether (ETH)"}, "QUALITY_TOTAL_FEES_USD": {"type": "FLOAT", "index": 9, "name": "QUALITY_TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid by EOAs with a Flipside score of 4 or higher (converting ETH to USD via ETH price)"}, "STABLECOIN_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 10, "name": "STABLECOIN_TRANSFER_VOLUME_USD", "comment": "Value of all stablecoin transfers for any reason (USD)"}, "IN_UNIT_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 11, "name": "IN_UNIT_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers of any token for any reason, denominated in ETH to reduce price effects (token price changes can be different than fundamental activity changes)"}, "TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 12, "name": "TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers for any reason (direct, swap, liquidity deposit, staking, etc.), denominated in USD accepting price effects"}, "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 13, "name": "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in ETH"}, "QUALITY_TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in USD"}, "CEX_WITHDRAWAL_VOLUME_USD": {"type": "FLOAT", "index": 15, "name": "CEX_WITHDRAWAL_VOLUME_USD", "comment": "Value of central exchange token withdrawals (USD)"}, "CEX_WITHDRAWAL_TX_COUNT": {"type": "NUMBER", "index": 16, "name": "CEX_WITHDRAWAL_TX_COUNT", "comment": "Number of central exchange token withdrawal transactions"}, "CEX_UNIQUE_WITHDRAWING_ADDRESSES": {"type": "NUMBER", "index": 17, "name": "CEX_UNIQUE_WITHDRAWING_ADDRESSES", "comment": "Number of unique addresses that withdrew from a central exchange"}, "CEX_DEPOSIT_VOLUME_USD": {"type": "FLOAT", "index": 18, "name": "CEX_DEPOSIT_VOLUME_USD", "comment": "Value of central exchange token deposits (USD)"}, "CEX_DEPOSIT_TX_COUNT": {"type": "NUMBER", "index": 19, "name": "CEX_DEPOSIT_TX_COUNT", "comment": "Number of central exchange token deposit transactions"}, "CEX_UNIQUE_DEPOSITING_ADDRESSES": {"type": "NUMBER", "index": 20, "name": "CEX_UNIQUE_DEPOSITING_ADDRESSES", "comment": "Number of unique addresses that deposited to a central exchange"}, "CEX_NET_FLOW_USD": {"type": "FLOAT", "index": 21, "name": "CEX_NET_FLOW_USD", "comment": "Net CEX flow (withdrawal_volume_usd - deposit_volume_usd). Note that if activity and price are correlated, this value can be negative even if more tokens are withdrawn than deposited"}, "CHAIN_GROSS_DEX_VOLUME_USD": {"type": "FLOAT", "index": 22, "name": "CHAIN_GROSS_DEX_VOLUME_USD", "comment": "USD value of token sell volume on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAP_COUNT": {"type": "NUMBER", "index": 23, "name": "CHAIN_SWAP_COUNT", "comment": "Number of swap transactions on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAPPER_COUNT": {"type": "NUMBER", "index": 24, "name": "CHAIN_SWAPPER_COUNT", "comment": "Number of unique EOAs that have submitted a swap transaction on Decentralized Exchanges (DEXs) protocols"}, "TVL_USD": {"type": "FLOAT", "index": 25, "name": "TVL_USD", "comment": "Total Value Locked - USD value of tokens locked in smart contracts. INCLUDES borrowed tokens, liquid staking, and staking"}, "IN_UNIT_TVL": {"type": "FLOAT", "index": 26, "name": "IN_UNIT_TVL", "comment": "Total Value Locked in ETH denominated terms to reduce price effects"}, "BRIDGE_INBOUND_VOLUME_USD": {"type": "FLOAT", "index": 27, "name": "BRIDGE_INBOUND_VOLUME_USD", "comment": "Value of bridge inflows onto Arbitrum, denominated in USD"}, "BRIDGE_INBOUND_ADDRESSES": {"type": "NUMBER", "index": 28, "name": "BRIDGE_INBOUND_ADDRESSES", "comment": "Number of unique addresses receiving a bridge inflow"}, "BRIDGE_INBOUND_TX_COUNT": {"type": "NUMBER", "index": 29, "name": "BRIDGE_INBOUND_TX_COUNT", "comment": "Number of bridge inflow transactions"}, "BRIDGE_OUTBOUND_VOLUME_USD": {"type": "FLOAT", "index": 30, "name": "BRIDGE_OUTBOUND_VOLUME_USD", "comment": "Value of bridge outflows from Arbitrum, denominated in USD"}, "BRIDGE_OUTBOUND_ADDRESSES": {"type": "NUMBER", "index": 31, "name": "BRIDGE_OUTBOUND_ADDRESSES", "comment": "Number of unique addresses sending a bridge outflow"}, "BRIDGE_OUTBOUND_TX_COUNT": {"type": "NUMBER", "index": 32, "name": "BRIDGE_OUTBOUND_TX_COUNT", "comment": "Number of bridge outflow transactions"}, "BRIDGE_GROSS_VOLUME_USD": {"type": "FLOAT", "index": 33, "name": "BRIDGE_GROSS_VOLUME_USD", "comment": "Value of bridge outflows from Arbitrum, denominated in USD"}, "BRIDGE_NET_INBOUND_USD": {"type": "FLOAT", "index": 34, "name": "BRIDGE_NET_INBOUND_USD", "comment": "Value of bridge inflows minus outflows, denominated in USD. Note that if activity and price are correlated, this value can be negative even if more tokens are brought onto chain than off"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_boba_metrics_daily"}, "source.fsc_evm.crosschain_chain_stats.ez_bsc_metrics_daily": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_BSC_METRICS_DAILY", "database": "CROSSCHAIN", "comment": "Daily aggregated metrics for Bsc blockchain including transaction activity, fees, DEX volumes, bridge flows, CEX flows, and TVL data. All metrics are calculated at the daily level (YYYY-MM-DD format) and include both total activity and quality user activity (Flipside score >= 4).", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "ACTIVE_USERS_COUNT": {"type": "NUMBER", "index": 2, "name": "ACTIVE_USERS_COUNT", "comment": "Number of origin_from_address (Externally Owned Accounts EOAs) that submitted a transaction"}, "ACTIVE_QUALITY_USERS_COUNT": {"type": "NUMBER", "index": 3, "name": "ACTIVE_QUALITY_USERS_COUNT", "comment": "Number of EOAs with a Flipside score of 4 or higher that submitted a transaction"}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 4, "name": "TRANSACTION_COUNT", "comment": "Number of transactions submitted by any origin_from_address (EOA)"}, "QUALITY_TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "QUALITY_TRANSACTION_COUNT", "comment": "Number of transactions submitted by EOAs with a Flipside score of 4 or higher"}, "TOTAL_FEES": {"type": "FLOAT", "index": 6, "name": "TOTAL_FEES", "comment": "Total transaction fees paid, denominated in Ether (ETH)"}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 7, "name": "TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid (converting ETH to USD via ETH price)"}, "QUALITY_TOTAL_FEES": {"type": "FLOAT", "index": 8, "name": "QUALITY_TOTAL_FEES", "comment": "Total transaction fees paid by EOAs with a Flipside score of 4 or higher, denominated in Ether (ETH)"}, "QUALITY_TOTAL_FEES_USD": {"type": "FLOAT", "index": 9, "name": "QUALITY_TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid by EOAs with a Flipside score of 4 or higher (converting ETH to USD via ETH price)"}, "STABLECOIN_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 10, "name": "STABLECOIN_TRANSFER_VOLUME_USD", "comment": "Value of all stablecoin transfers for any reason (USD)"}, "IN_UNIT_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 11, "name": "IN_UNIT_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers of any token for any reason, denominated in ETH to reduce price effects (token price changes can be different than fundamental activity changes)"}, "TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 12, "name": "TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers for any reason (direct, swap, liquidity deposit, staking, etc.), denominated in USD accepting price effects"}, "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 13, "name": "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in ETH"}, "QUALITY_TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in USD"}, "CEX_WITHDRAWAL_VOLUME_USD": {"type": "FLOAT", "index": 15, "name": "CEX_WITHDRAWAL_VOLUME_USD", "comment": "Value of central exchange token withdrawals (USD)"}, "CEX_WITHDRAWAL_TX_COUNT": {"type": "NUMBER", "index": 16, "name": "CEX_WITHDRAWAL_TX_COUNT", "comment": "Number of central exchange token withdrawal transactions"}, "CEX_UNIQUE_WITHDRAWING_ADDRESSES": {"type": "NUMBER", "index": 17, "name": "CEX_UNIQUE_WITHDRAWING_ADDRESSES", "comment": "Number of unique addresses that withdrew from a central exchange"}, "CEX_DEPOSIT_VOLUME_USD": {"type": "FLOAT", "index": 18, "name": "CEX_DEPOSIT_VOLUME_USD", "comment": "Value of central exchange token deposits (USD)"}, "CEX_DEPOSIT_TX_COUNT": {"type": "NUMBER", "index": 19, "name": "CEX_DEPOSIT_TX_COUNT", "comment": "Number of central exchange token deposit transactions"}, "CEX_UNIQUE_DEPOSITING_ADDRESSES": {"type": "NUMBER", "index": 20, "name": "CEX_UNIQUE_DEPOSITING_ADDRESSES", "comment": "Number of unique addresses that deposited to a central exchange"}, "CEX_NET_FLOW_USD": {"type": "FLOAT", "index": 21, "name": "CEX_NET_FLOW_USD", "comment": "Net CEX flow (withdrawal_volume_usd - deposit_volume_usd). Note that if activity and price are correlated, this value can be negative even if more tokens are withdrawn than deposited"}, "CHAIN_GROSS_DEX_VOLUME_USD": {"type": "FLOAT", "index": 22, "name": "CHAIN_GROSS_DEX_VOLUME_USD", "comment": "USD value of token sell volume on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAP_COUNT": {"type": "NUMBER", "index": 23, "name": "CHAIN_SWAP_COUNT", "comment": "Number of swap transactions on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAPPER_COUNT": {"type": "NUMBER", "index": 24, "name": "CHAIN_SWAPPER_COUNT", "comment": "Number of unique EOAs that have submitted a swap transaction on Decentralized Exchanges (DEXs) protocols"}, "TVL_USD": {"type": "FLOAT", "index": 25, "name": "TVL_USD", "comment": "Total Value Locked - USD value of tokens locked in smart contracts. INCLUDES borrowed tokens, liquid staking, and staking"}, "IN_UNIT_TVL": {"type": "FLOAT", "index": 26, "name": "IN_UNIT_TVL", "comment": "Total Value Locked in ETH denominated terms to reduce price effects"}, "BRIDGE_INBOUND_VOLUME_USD": {"type": "FLOAT", "index": 27, "name": "BRIDGE_INBOUND_VOLUME_USD", "comment": "Value of bridge inflows onto Bsc, denominated in USD"}, "BRIDGE_INBOUND_ADDRESSES": {"type": "NUMBER", "index": 28, "name": "BRIDGE_INBOUND_ADDRESSES", "comment": "Number of unique addresses receiving a bridge inflow"}, "BRIDGE_INBOUND_TX_COUNT": {"type": "NUMBER", "index": 29, "name": "BRIDGE_INBOUND_TX_COUNT", "comment": "Number of bridge inflow transactions"}, "BRIDGE_OUTBOUND_VOLUME_USD": {"type": "FLOAT", "index": 30, "name": "BRIDGE_OUTBOUND_VOLUME_USD", "comment": "Value of bridge outflows from Bsc, denominated in USD"}, "BRIDGE_OUTBOUND_ADDRESSES": {"type": "NUMBER", "index": 31, "name": "BRIDGE_OUTBOUND_ADDRESSES", "comment": "Number of unique addresses sending a bridge outflow"}, "BRIDGE_OUTBOUND_TX_COUNT": {"type": "NUMBER", "index": 32, "name": "BRIDGE_OUTBOUND_TX_COUNT", "comment": "Number of bridge outflow transactions"}, "BRIDGE_GROSS_VOLUME_USD": {"type": "FLOAT", "index": 33, "name": "BRIDGE_GROSS_VOLUME_USD", "comment": "Value of bridge outflows from Bsc, denominated in USD"}, "BRIDGE_NET_INBOUND_USD": {"type": "FLOAT", "index": 34, "name": "BRIDGE_NET_INBOUND_USD", "comment": "Value of bridge inflows minus outflows, denominated in USD. Note that if activity and price are correlated, this value can be negative even if more tokens are brought onto chain than off"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_bsc_metrics_daily"}, "source.fsc_evm.crosschain_chain_stats.ez_polygon_protocol_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_POLYGON_PROTOCOL_METRICS", "database": "CROSSCHAIN", "comment": "Daily aggregated protocol-level metrics for Polygon blockchain including user activity, transaction counts, and token flow data. Combines protocol interaction data with Flipside scoring to distinguish between total activity and quality user activity (Flipside score >= 4). Metrics track inflows, outflows, and user engagement at the protocol level.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "PROTOCOL": {"type": "TEXT", "index": 2, "name": "PROTOCOL", "comment": "Protocol names including versioning information (e.g. Uniswap v2, v3, etc.). Note: protocol names may not always match protocol names in other tables like dex_volume"}, "N_USERS": {"type": "NUMBER", "index": 3, "name": "N_USERS", "comment": "Number of unique addresses submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_USERS": {"type": "NUMBER", "index": 4, "name": "N_QUALITY_USERS", "comment": "Number of unique quality addresses with Flipside score >= 4 submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_TRANSACTIONS": {"type": "NUMBER", "index": 5, "name": "N_TRANSACTIONS", "comment": "Number of unique transactions that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_TRANSACTIONS": {"type": "NUMBER", "index": 6, "name": "N_QUALITY_TRANSACTIONS", "comment": "Number of unique transactions by addresses with Flipside score >= 4 that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "USD_INFLOWS": {"type": "FLOAT", "index": 7, "name": "USD_INFLOWS", "comment": "USD value of tokens sent INTO this protocol from all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "USD_OUTFLOWS": {"type": "FLOAT", "index": 8, "name": "USD_OUTFLOWS", "comment": "USD value of tokens sent FROM this protocol to all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "NET_USD_INFLOW": {"type": "FLOAT", "index": 9, "name": "NET_USD_INFLOW", "comment": "USD inflows minus outflows. Note: Price effects may cause net USD and token-level net changes to differ in direction (rare but possible with large, fast price changes)"}, "GROSS_USD_VOLUME": {"type": "FLOAT", "index": 10, "name": "GROSS_USD_VOLUME", "comment": "Total USD volume calculated as inflows plus outflows"}, "QUALITY_USD_INFLOWS": {"type": "FLOAT", "index": 11, "name": "QUALITY_USD_INFLOWS", "comment": "USD value of token inflows from quality addresses with Flipside score >= 4"}, "QUALITY_USD_OUTFLOWS": {"type": "FLOAT", "index": 12, "name": "QUALITY_USD_OUTFLOWS", "comment": "USD value of token outflows to quality addresses with Flipside score >= 4"}, "QUALITY_NET_USD": {"type": "FLOAT", "index": 13, "name": "QUALITY_NET_USD", "comment": "Quality USD inflows minus quality USD outflows. Price effects may apply similar to net_usd_inflow"}, "QUALITY_GROSS_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_GROSS_USD", "comment": "Total quality USD volume calculated as quality inflows plus quality outflows"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_polygon_protocol_metrics"}, "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_metrics_daily": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_ARBITRUM_METRICS_DAILY", "database": "CROSSCHAIN", "comment": "Daily aggregated metrics for Arbitrum blockchain including transaction activity, fees, DEX volumes, bridge flows, CEX flows, and TVL data. All metrics are calculated at the daily level (YYYY-MM-DD format) and include both total activity and quality user activity (Flipside score >= 4).", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "ACTIVE_USERS_COUNT": {"type": "NUMBER", "index": 2, "name": "ACTIVE_USERS_COUNT", "comment": "Number of origin_from_address (Externally Owned Accounts EOAs) that submitted a transaction"}, "ACTIVE_QUALITY_USERS_COUNT": {"type": "NUMBER", "index": 3, "name": "ACTIVE_QUALITY_USERS_COUNT", "comment": "Number of EOAs with a Flipside score of 4 or higher that submitted a transaction"}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 4, "name": "TRANSACTION_COUNT", "comment": "Number of transactions submitted by any origin_from_address (EOA)"}, "QUALITY_TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "QUALITY_TRANSACTION_COUNT", "comment": "Number of transactions submitted by EOAs with a Flipside score of 4 or higher"}, "TOTAL_FEES": {"type": "FLOAT", "index": 6, "name": "TOTAL_FEES", "comment": "Total transaction fees paid, denominated in Ether (ETH)"}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 7, "name": "TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid (converting ETH to USD via ETH price)"}, "QUALITY_TOTAL_FEES": {"type": "FLOAT", "index": 8, "name": "QUALITY_TOTAL_FEES", "comment": "Total transaction fees paid by EOAs with a Flipside score of 4 or higher, denominated in Ether (ETH)"}, "QUALITY_TOTAL_FEES_USD": {"type": "FLOAT", "index": 9, "name": "QUALITY_TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid by EOAs with a Flipside score of 4 or higher (converting ETH to USD via ETH price)"}, "STABLECOIN_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 10, "name": "STABLECOIN_TRANSFER_VOLUME_USD", "comment": "Value of all stablecoin transfers for any reason (USD)"}, "IN_UNIT_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 11, "name": "IN_UNIT_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers of any token for any reason, denominated in ETH to reduce price effects (token price changes can be different than fundamental activity changes)"}, "TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 12, "name": "TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers for any reason (direct, swap, liquidity deposit, staking, etc.), denominated in USD accepting price effects"}, "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 13, "name": "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in ETH"}, "QUALITY_TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in USD"}, "CEX_WITHDRAWAL_VOLUME_USD": {"type": "FLOAT", "index": 15, "name": "CEX_WITHDRAWAL_VOLUME_USD", "comment": "Value of central exchange token withdrawals (USD)"}, "CEX_WITHDRAWAL_TX_COUNT": {"type": "NUMBER", "index": 16, "name": "CEX_WITHDRAWAL_TX_COUNT", "comment": "Number of central exchange token withdrawal transactions"}, "CEX_UNIQUE_WITHDRAWING_ADDRESSES": {"type": "NUMBER", "index": 17, "name": "CEX_UNIQUE_WITHDRAWING_ADDRESSES", "comment": "Number of unique addresses that withdrew from a central exchange"}, "CEX_DEPOSIT_VOLUME_USD": {"type": "FLOAT", "index": 18, "name": "CEX_DEPOSIT_VOLUME_USD", "comment": "Value of central exchange token deposits (USD)"}, "CEX_DEPOSIT_TX_COUNT": {"type": "NUMBER", "index": 19, "name": "CEX_DEPOSIT_TX_COUNT", "comment": "Number of central exchange token deposit transactions"}, "CEX_UNIQUE_DEPOSITING_ADDRESSES": {"type": "NUMBER", "index": 20, "name": "CEX_UNIQUE_DEPOSITING_ADDRESSES", "comment": "Number of unique addresses that deposited to a central exchange"}, "CEX_NET_FLOW_USD": {"type": "FLOAT", "index": 21, "name": "CEX_NET_FLOW_USD", "comment": "Net CEX flow (withdrawal_volume_usd - deposit_volume_usd). Note that if activity and price are correlated, this value can be negative even if more tokens are withdrawn than deposited"}, "CHAIN_GROSS_DEX_VOLUME_USD": {"type": "FLOAT", "index": 22, "name": "CHAIN_GROSS_DEX_VOLUME_USD", "comment": "USD value of token sell volume on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAP_COUNT": {"type": "NUMBER", "index": 23, "name": "CHAIN_SWAP_COUNT", "comment": "Number of swap transactions on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAPPER_COUNT": {"type": "NUMBER", "index": 24, "name": "CHAIN_SWAPPER_COUNT", "comment": "Number of unique EOAs that have submitted a swap transaction on Decentralized Exchanges (DEXs) protocols"}, "TVL_USD": {"type": "FLOAT", "index": 25, "name": "TVL_USD", "comment": "Total Value Locked - USD value of tokens locked in smart contracts. INCLUDES borrowed tokens, liquid staking, and staking"}, "IN_UNIT_TVL": {"type": "FLOAT", "index": 26, "name": "IN_UNIT_TVL", "comment": "Total Value Locked in ETH denominated terms to reduce price effects"}, "BRIDGE_INBOUND_VOLUME_USD": {"type": "FLOAT", "index": 27, "name": "BRIDGE_INBOUND_VOLUME_USD", "comment": "Value of bridge inflows onto Arbitrum, denominated in USD"}, "BRIDGE_INBOUND_ADDRESSES": {"type": "NUMBER", "index": 28, "name": "BRIDGE_INBOUND_ADDRESSES", "comment": "Number of unique addresses receiving a bridge inflow"}, "BRIDGE_INBOUND_TX_COUNT": {"type": "NUMBER", "index": 29, "name": "BRIDGE_INBOUND_TX_COUNT", "comment": "Number of bridge inflow transactions"}, "BRIDGE_OUTBOUND_VOLUME_USD": {"type": "FLOAT", "index": 30, "name": "BRIDGE_OUTBOUND_VOLUME_USD", "comment": "Value of bridge outflows from Arbitrum, denominated in USD"}, "BRIDGE_OUTBOUND_ADDRESSES": {"type": "NUMBER", "index": 31, "name": "BRIDGE_OUTBOUND_ADDRESSES", "comment": "Number of unique addresses sending a bridge outflow"}, "BRIDGE_OUTBOUND_TX_COUNT": {"type": "NUMBER", "index": 32, "name": "BRIDGE_OUTBOUND_TX_COUNT", "comment": "Number of bridge outflow transactions"}, "BRIDGE_GROSS_VOLUME_USD": {"type": "FLOAT", "index": 33, "name": "BRIDGE_GROSS_VOLUME_USD", "comment": "Value of bridge outflows from Arbitrum, denominated in USD"}, "BRIDGE_NET_INBOUND_USD": {"type": "FLOAT", "index": 34, "name": "BRIDGE_NET_INBOUND_USD", "comment": "Value of bridge inflows minus outflows, denominated in USD. Note that if activity and price are correlated, this value can be negative even if more tokens are brought onto chain than off"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_metrics_daily"}, "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_allowlist": {"metadata": {"type": "BASE TABLE", "schema": "CHAIN_STATS", "name": "EZ_ARBITRUM_ALLOWLIST", "database": "CROSSCHAIN", "comment": "Verified tokens for Arbitrum blockchain. Appended with a tracks asset column that indicates ETH, BTC, USD, or is an alt coin", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The name of the blockchain (e.g., Arbitrum, Ethereum, etc.)"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": "The symbol of the token (e.g., ETH, BTC, USDC, etc.)"}, "TRACKS_ASSET": {"type": "TEXT", "index": 4, "name": "TRACKS_ASSET", "comment": "the asset that the token tracks, which can be ETH, BTC, USD, or an alt token. This is used to indicate the primary asset that the token is associated with"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 06:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 69120, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 271, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_allowlist"}, "source.fsc_evm.crosschain_chain_stats.ez_avalanche_metrics_daily": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_AVALANCHE_METRICS_DAILY", "database": "CROSSCHAIN", "comment": "Daily aggregated metrics for Avalanche blockchain including transaction activity, fees, DEX volumes, bridge flows, CEX flows, and TVL data. All metrics are calculated at the daily level (YYYY-MM-DD format) and include both total activity and quality user activity (Flipside score >= 4).", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "ACTIVE_USERS_COUNT": {"type": "NUMBER", "index": 2, "name": "ACTIVE_USERS_COUNT", "comment": "Number of origin_from_address (Externally Owned Accounts EOAs) that submitted a transaction"}, "ACTIVE_QUALITY_USERS_COUNT": {"type": "NUMBER", "index": 3, "name": "ACTIVE_QUALITY_USERS_COUNT", "comment": "Number of EOAs with a Flipside score of 4 or higher that submitted a transaction"}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 4, "name": "TRANSACTION_COUNT", "comment": "Number of transactions submitted by any origin_from_address (EOA)"}, "QUALITY_TRANSACTION_COUNT": {"type": "NUMBER", "index": 5, "name": "QUALITY_TRANSACTION_COUNT", "comment": "Number of transactions submitted by EOAs with a Flipside score of 4 or higher"}, "TOTAL_FEES": {"type": "FLOAT", "index": 6, "name": "TOTAL_FEES", "comment": "Total transaction fees paid, denominated in Ether (ETH)"}, "TOTAL_FEES_USD": {"type": "FLOAT", "index": 7, "name": "TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid (converting ETH to USD via ETH price)"}, "QUALITY_TOTAL_FEES": {"type": "FLOAT", "index": 8, "name": "QUALITY_TOTAL_FEES", "comment": "Total transaction fees paid by EOAs with a Flipside score of 4 or higher, denominated in Ether (ETH)"}, "QUALITY_TOTAL_FEES_USD": {"type": "FLOAT", "index": 9, "name": "QUALITY_TOTAL_FEES_USD", "comment": "USD denominated total transaction fees paid by EOAs with a Flipside score of 4 or higher (converting ETH to USD via ETH price)"}, "STABLECOIN_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 10, "name": "STABLECOIN_TRANSFER_VOLUME_USD", "comment": "Value of all stablecoin transfers for any reason (USD)"}, "IN_UNIT_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 11, "name": "IN_UNIT_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers of any token for any reason, denominated in ETH to reduce price effects (token price changes can be different than fundamental activity changes)"}, "TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 12, "name": "TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers for any reason (direct, swap, liquidity deposit, staking, etc.), denominated in USD accepting price effects"}, "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME": {"type": "FLOAT", "index": 13, "name": "IN_UNIT_QUALITY_TOTAL_TRANSFER_VOLUME", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in ETH"}, "QUALITY_TOTAL_TRANSFER_VOLUME_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_TOTAL_TRANSFER_VOLUME_USD", "comment": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in USD"}, "CEX_WITHDRAWAL_VOLUME_USD": {"type": "FLOAT", "index": 15, "name": "CEX_WITHDRAWAL_VOLUME_USD", "comment": "Value of central exchange token withdrawals (USD)"}, "CEX_WITHDRAWAL_TX_COUNT": {"type": "NUMBER", "index": 16, "name": "CEX_WITHDRAWAL_TX_COUNT", "comment": "Number of central exchange token withdrawal transactions"}, "CEX_UNIQUE_WITHDRAWING_ADDRESSES": {"type": "NUMBER", "index": 17, "name": "CEX_UNIQUE_WITHDRAWING_ADDRESSES", "comment": "Number of unique addresses that withdrew from a central exchange"}, "CEX_DEPOSIT_VOLUME_USD": {"type": "FLOAT", "index": 18, "name": "CEX_DEPOSIT_VOLUME_USD", "comment": "Value of central exchange token deposits (USD)"}, "CEX_DEPOSIT_TX_COUNT": {"type": "NUMBER", "index": 19, "name": "CEX_DEPOSIT_TX_COUNT", "comment": "Number of central exchange token deposit transactions"}, "CEX_UNIQUE_DEPOSITING_ADDRESSES": {"type": "NUMBER", "index": 20, "name": "CEX_UNIQUE_DEPOSITING_ADDRESSES", "comment": "Number of unique addresses that deposited to a central exchange"}, "CEX_NET_FLOW_USD": {"type": "FLOAT", "index": 21, "name": "CEX_NET_FLOW_USD", "comment": "Net CEX flow (withdrawal_volume_usd - deposit_volume_usd). Note that if activity and price are correlated, this value can be negative even if more tokens are withdrawn than deposited"}, "CHAIN_GROSS_DEX_VOLUME_USD": {"type": "FLOAT", "index": 22, "name": "CHAIN_GROSS_DEX_VOLUME_USD", "comment": "USD value of token sell volume on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAP_COUNT": {"type": "NUMBER", "index": 23, "name": "CHAIN_SWAP_COUNT", "comment": "Number of swap transactions on Decentralized Exchanges (DEXs) protocols"}, "CHAIN_SWAPPER_COUNT": {"type": "NUMBER", "index": 24, "name": "CHAIN_SWAPPER_COUNT", "comment": "Number of unique EOAs that have submitted a swap transaction on Decentralized Exchanges (DEXs) protocols"}, "TVL_USD": {"type": "FLOAT", "index": 25, "name": "TVL_USD", "comment": "Total Value Locked - USD value of tokens locked in smart contracts. INCLUDES borrowed tokens, liquid staking, and staking"}, "IN_UNIT_TVL": {"type": "FLOAT", "index": 26, "name": "IN_UNIT_TVL", "comment": "Total Value Locked in ETH denominated terms to reduce price effects"}, "BRIDGE_INBOUND_VOLUME_USD": {"type": "FLOAT", "index": 27, "name": "BRIDGE_INBOUND_VOLUME_USD", "comment": "Value of bridge inflows onto Avalanche, denominated in USD"}, "BRIDGE_INBOUND_ADDRESSES": {"type": "NUMBER", "index": 28, "name": "BRIDGE_INBOUND_ADDRESSES", "comment": "Number of unique addresses receiving a bridge inflow"}, "BRIDGE_INBOUND_TX_COUNT": {"type": "NUMBER", "index": 29, "name": "BRIDGE_INBOUND_TX_COUNT", "comment": "Number of bridge inflow transactions"}, "BRIDGE_OUTBOUND_VOLUME_USD": {"type": "FLOAT", "index": 30, "name": "BRIDGE_OUTBOUND_VOLUME_USD", "comment": "Value of bridge outflows from Avalanche, denominated in USD"}, "BRIDGE_OUTBOUND_ADDRESSES": {"type": "NUMBER", "index": 31, "name": "BRIDGE_OUTBOUND_ADDRESSES", "comment": "Number of unique addresses sending a bridge outflow"}, "BRIDGE_OUTBOUND_TX_COUNT": {"type": "NUMBER", "index": 32, "name": "BRIDGE_OUTBOUND_TX_COUNT", "comment": "Number of bridge outflow transactions"}, "BRIDGE_GROSS_VOLUME_USD": {"type": "FLOAT", "index": 33, "name": "BRIDGE_GROSS_VOLUME_USD", "comment": "Value of bridge outflows from Avalanche, denominated in USD"}, "BRIDGE_NET_INBOUND_USD": {"type": "FLOAT", "index": 34, "name": "BRIDGE_NET_INBOUND_USD", "comment": "Value of bridge inflows minus outflows, denominated in USD. Note that if activity and price are correlated, this value can be negative even if more tokens are brought onto chain than off"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_avalanche_metrics_daily"}, "source.fsc_evm.crosschain_chain_stats.ez_ink_protocol_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_INK_PROTOCOL_METRICS", "database": "CROSSCHAIN", "comment": "Daily aggregated protocol-level metrics for Ink blockchain including user activity, transaction counts, and token flow data. Combines protocol interaction data with Flipside scoring to distinguish between total activity and quality user activity (Flipside score >= 4). Metrics track inflows, outflows, and user engagement at the protocol level.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "PROTOCOL": {"type": "TEXT", "index": 2, "name": "PROTOCOL", "comment": "Protocol names including versioning information (e.g. Uniswap v2, v3, etc.). Note: protocol names may not always match protocol names in other tables like dex_volume"}, "N_USERS": {"type": "NUMBER", "index": 3, "name": "N_USERS", "comment": "Number of unique addresses submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_USERS": {"type": "NUMBER", "index": 4, "name": "N_QUALITY_USERS", "comment": "Number of unique quality addresses with Flipside score >= 4 submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_TRANSACTIONS": {"type": "NUMBER", "index": 5, "name": "N_TRANSACTIONS", "comment": "Number of unique transactions that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_TRANSACTIONS": {"type": "NUMBER", "index": 6, "name": "N_QUALITY_TRANSACTIONS", "comment": "Number of unique transactions by addresses with Flipside score >= 4 that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "USD_INFLOWS": {"type": "FLOAT", "index": 7, "name": "USD_INFLOWS", "comment": "USD value of tokens sent INTO this protocol from all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "USD_OUTFLOWS": {"type": "FLOAT", "index": 8, "name": "USD_OUTFLOWS", "comment": "USD value of tokens sent FROM this protocol to all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "NET_USD_INFLOW": {"type": "FLOAT", "index": 9, "name": "NET_USD_INFLOW", "comment": "USD inflows minus outflows. Note: Price effects may cause net USD and token-level net changes to differ in direction (rare but possible with large, fast price changes)"}, "GROSS_USD_VOLUME": {"type": "FLOAT", "index": 10, "name": "GROSS_USD_VOLUME", "comment": "Total USD volume calculated as inflows plus outflows"}, "QUALITY_USD_INFLOWS": {"type": "FLOAT", "index": 11, "name": "QUALITY_USD_INFLOWS", "comment": "USD value of token inflows from quality addresses with Flipside score >= 4"}, "QUALITY_USD_OUTFLOWS": {"type": "FLOAT", "index": 12, "name": "QUALITY_USD_OUTFLOWS", "comment": "USD value of token outflows to quality addresses with Flipside score >= 4"}, "QUALITY_NET_USD": {"type": "FLOAT", "index": 13, "name": "QUALITY_NET_USD", "comment": "Quality USD inflows minus quality USD outflows. Price effects may apply similar to net_usd_inflow"}, "QUALITY_GROSS_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_GROSS_USD", "comment": "Total quality USD volume calculated as quality inflows plus quality outflows"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_ink_protocol_metrics"}, "source.fsc_evm.crosschain_chain_stats.ez_ink_allowlist": {"metadata": {"type": "BASE TABLE", "schema": "CHAIN_STATS", "name": "EZ_INK_ALLOWLIST", "database": "CROSSCHAIN", "comment": "Verified tokens for Ink blockchain. Appended with a tracks asset column that indicates ETH, BTC, USD, or is an alt coin", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The name of the blockchain (e.g., Ink, Ethereum, etc.)"}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": "The symbol of the token (e.g., ETH, BTC, USDC, etc.)"}, "TRACKS_ASSET": {"type": "TEXT", "index": 4, "name": "TRACKS_ASSET", "comment": "the asset that the token tracks, which can be ETH, BTC, USD, or an alt token. This is used to indicate the primary asset that the token is associated with"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 06:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 17408, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 33, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_ink_allowlist"}, "source.fsc_evm.crosschain_chain_stats.ez_optimism_protocol_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_OPTIMISM_PROTOCOL_METRICS", "database": "CROSSCHAIN", "comment": "Daily aggregated protocol-level metrics for Optimism blockchain including user activity, transaction counts, and token flow data. Combines protocol interaction data with Flipside scoring to distinguish between total activity and quality user activity (Flipside score >= 4). Metrics track inflows, outflows, and user engagement at the protocol level.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "PROTOCOL": {"type": "TEXT", "index": 2, "name": "PROTOCOL", "comment": "Protocol names including versioning information (e.g. Uniswap v2, v3, etc.). Note: protocol names may not always match protocol names in other tables like dex_volume"}, "N_USERS": {"type": "NUMBER", "index": 3, "name": "N_USERS", "comment": "Number of unique addresses submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_USERS": {"type": "NUMBER", "index": 4, "name": "N_QUALITY_USERS", "comment": "Number of unique quality addresses with Flipside score >= 4 submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_TRANSACTIONS": {"type": "NUMBER", "index": 5, "name": "N_TRANSACTIONS", "comment": "Number of unique transactions that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_TRANSACTIONS": {"type": "NUMBER", "index": 6, "name": "N_QUALITY_TRANSACTIONS", "comment": "Number of unique transactions by addresses with Flipside score >= 4 that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "USD_INFLOWS": {"type": "FLOAT", "index": 7, "name": "USD_INFLOWS", "comment": "USD value of tokens sent INTO this protocol from all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "USD_OUTFLOWS": {"type": "FLOAT", "index": 8, "name": "USD_OUTFLOWS", "comment": "USD value of tokens sent FROM this protocol to all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "NET_USD_INFLOW": {"type": "FLOAT", "index": 9, "name": "NET_USD_INFLOW", "comment": "USD inflows minus outflows. Note: Price effects may cause net USD and token-level net changes to differ in direction (rare but possible with large, fast price changes)"}, "GROSS_USD_VOLUME": {"type": "FLOAT", "index": 10, "name": "GROSS_USD_VOLUME", "comment": "Total USD volume calculated as inflows plus outflows"}, "QUALITY_USD_INFLOWS": {"type": "FLOAT", "index": 11, "name": "QUALITY_USD_INFLOWS", "comment": "USD value of token inflows from quality addresses with Flipside score >= 4"}, "QUALITY_USD_OUTFLOWS": {"type": "FLOAT", "index": 12, "name": "QUALITY_USD_OUTFLOWS", "comment": "USD value of token outflows to quality addresses with Flipside score >= 4"}, "QUALITY_NET_USD": {"type": "FLOAT", "index": 13, "name": "QUALITY_NET_USD", "comment": "Quality USD inflows minus quality USD outflows. Price effects may apply similar to net_usd_inflow"}, "QUALITY_GROSS_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_GROSS_USD", "comment": "Total quality USD volume calculated as quality inflows plus quality outflows"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_optimism_protocol_metrics"}, "source.fsc_evm.crosschain_chain_stats.ez_ethereum_address_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_ETHEREUM_ADDRESS_METRICS", "database": "CROSSCHAIN", "comment": "User-level aggregated metrics for Ethereum blockchain including transaction activity, DeFi interactions, staking behavior, NFT activity, and governance participation. Captures comprehensive on-chain behavior patterns for individual addresses across various protocol categories and activity types.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "Unique address (wallet address) - primary identifier for all aggregated metrics"}, "N_COMPLEX_TXN": {"type": "NUMBER", "index": 2, "name": "N_COMPLEX_TXN", "comment": "number of non-native-transfer transactions initiated by the user + number of bridge transactions"}, "N_CONTRACTS": {"type": "NUMBER", "index": 3, "name": "N_CONTRACTS", "comment": "the number of different contracts that the user transacts with"}, "N_TXN": {"type": "NUMBER", "index": 4, "name": "N_TXN", "comment": "number of transactions + CEX withdrawals + inbound bridge transfers"}, "N_DAYS_ACTIVE": {"type": "NUMBER", "index": 5, "name": "N_DAYS_ACTIVE", "comment": "number of days with initiated transactions + CEX withdrawals + inbound bridge transfers"}, "N_BRIDGE_IN": {"type": "NUMBER", "index": 6, "name": "N_BRIDGE_IN", "comment": "number of inbound bridge transfers"}, "N_BRIDGES": {"type": "NUMBER", "index": 7, "name": "N_BRIDGES", "comment": "Total number of bridge transactions (both inbound and outbound) executed by this address"}, "N_CEX_WITHDRAWALS": {"type": "NUMBER", "index": 8, "name": "N_CEX_WITHDRAWALS", "comment": "number of withdrawals from a centralized exchange"}, "NET_TOKEN_ACCUMULATE": {"type": "NUMBER", "index": 9, "name": "NET_TOKEN_ACCUMULATE", "comment": "number of token transfers received / (number of token transfers received + number of token transfers sent)"}, "N_OTHER_DEFI": {"type": "NUMBER", "index": 10, "name": "N_OTHER_DEFI", "comment": "any non-swap, non-LP transactions with events like borrow, lend, etc."}, "N_LP_ADDS": {"type": "NUMBER", "index": 11, "name": "N_LP_ADDS", "comment": "number of non-swap transfers to a liquidity pool"}, "N_LP_POOLS": {"type": "NUMBER", "index": 12, "name": "N_LP_POOLS", "comment": "Number of unique liquidity pools this address has provided liquidity to"}, "N_SWAP_TX": {"type": "NUMBER", "index": 13, "name": "N_SWAP_TX", "comment": "number of swaps"}, "N_SWAPS": {"type": "NUMBER", "index": 14, "name": "N_SWAPS", "comment": "Total number of individual swap operations (may differ from n_swap_tx if transactions contain multiple swaps)"}, "N_STAKE_TX": {"type": "NUMBER", "index": 15, "name": "N_STAKE_TX", "comment": "number of staking transactions (liquid stake or delegation)"}, "N_VALIDATORS": {"type": "NUMBER", "index": 16, "name": "N_VALIDATORS", "comment": "number of validators staked to OR liquid stake providers"}, "NET_STAKE_ACCUMULATE": {"type": "NUMBER", "index": 17, "name": "NET_STAKE_ACCUMULATE", "comment": "number of stakes / (number of stakes + number of unstakes)"}, "N_GOV_VOTES": {"type": "NUMBER", "index": 18, "name": "N_GOV_VOTES", "comment": ""}, "NET_DELEGATED": {"type": "NUMBER", "index": 19, "name": "NET_DELEGATED", "comment": ""}, "N_RESTAKES": {"type": "NUMBER", "index": 20, "name": "N_RESTAKES", "comment": "number of restakes"}, "N_NFT_MINTS": {"type": "NUMBER", "index": 21, "name": "N_NFT_MINTS", "comment": "number of NFTs minted"}, "N_NFT_COLLECTIONS": {"type": "NUMBER", "index": 22, "name": "N_NFT_COLLECTIONS", "comment": "number of NFT contracts traded"}, "N_NFT_TRADES": {"type": "NUMBER", "index": 23, "name": "N_NFT_TRADES", "comment": ""}, "N_NFT_IDS": {"type": "NUMBER", "index": 24, "name": "N_NFT_IDS", "comment": "number of distinct NFTs bought or sold"}, "N_NFT_LISTS": {"type": "NUMBER", "index": 25, "name": "N_NFT_LISTS", "comment": "number of NFTs listed"}, "N_NFT_BUYS": {"type": "TEXT", "index": 26, "name": "N_NFT_BUYS", "comment": "number of buys of any NFTs"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_ethereum_address_metrics"}, "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_protocol_metrics": {"metadata": {"type": "VIEW", "schema": "CHAIN_STATS", "name": "EZ_ARBITRUM_PROTOCOL_METRICS", "database": "CROSSCHAIN", "comment": "Daily aggregated protocol-level metrics for Arbitrum blockchain including user activity, transaction counts, and token flow data. Combines protocol interaction data with Flipside scoring to distinguish between total activity and quality user activity (Flipside score >= 4). Metrics track inflows, outflows, and user engagement at the protocol level.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DAY_": {"type": "DATE", "index": 1, "name": "DAY_", "comment": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "PROTOCOL": {"type": "TEXT", "index": 2, "name": "PROTOCOL", "comment": "Protocol names including versioning information (e.g. Uniswap v2, v3, etc.). Note: protocol names may not always match protocol names in other tables like dex_volume"}, "N_USERS": {"type": "NUMBER", "index": 3, "name": "N_USERS", "comment": "Number of unique addresses submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_USERS": {"type": "NUMBER", "index": 4, "name": "N_QUALITY_USERS", "comment": "Number of unique quality addresses with Flipside score >= 4 submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "N_TRANSACTIONS": {"type": "NUMBER", "index": 5, "name": "N_TRANSACTIONS", "comment": "Number of unique transactions that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "N_QUALITY_TRANSACTIONS": {"type": "NUMBER", "index": 6, "name": "N_QUALITY_TRANSACTIONS", "comment": "Number of unique transactions by addresses with Flipside score >= 4 that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "USD_INFLOWS": {"type": "FLOAT", "index": 7, "name": "USD_INFLOWS", "comment": "USD value of tokens sent INTO this protocol from all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "USD_OUTFLOWS": {"type": "FLOAT", "index": 8, "name": "USD_OUTFLOWS", "comment": "USD value of tokens sent FROM this protocol to all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "NET_USD_INFLOW": {"type": "FLOAT", "index": 9, "name": "NET_USD_INFLOW", "comment": "USD inflows minus outflows. Note: Price effects may cause net USD and token-level net changes to differ in direction (rare but possible with large, fast price changes)"}, "GROSS_USD_VOLUME": {"type": "FLOAT", "index": 10, "name": "GROSS_USD_VOLUME", "comment": "Total USD volume calculated as inflows plus outflows"}, "QUALITY_USD_INFLOWS": {"type": "FLOAT", "index": 11, "name": "QUALITY_USD_INFLOWS", "comment": "USD value of token inflows from quality addresses with Flipside score >= 4"}, "QUALITY_USD_OUTFLOWS": {"type": "FLOAT", "index": 12, "name": "QUALITY_USD_OUTFLOWS", "comment": "USD value of token outflows to quality addresses with Flipside score >= 4"}, "QUALITY_NET_USD": {"type": "FLOAT", "index": 13, "name": "QUALITY_NET_USD", "comment": "Quality USD inflows minus quality USD outflows. Price effects may apply similar to net_usd_inflow"}, "QUALITY_GROSS_USD": {"type": "FLOAT", "index": 14, "name": "QUALITY_GROSS_USD", "comment": "Total quality USD volume calculated as quality inflows plus quality outflows"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_protocol_metrics"}, "source.fsc_evm.data_science_silver.scoring_activity_categories": {"metadata": {"type": "VIEW", "schema": "SILVER", "name": "SCORING_ACTIVITY_CATEGORIES", "database": "DATASCIENCE", "comment": "Initial version of the model", "owner": "DBT_CLOUD_DATASCIENCE"}, "columns": {"CATEGORY": {"type": "TEXT", "index": 1, "name": "CATEGORY", "comment": ""}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": ""}, "PRIMARY_ALTERNATE": {"type": "TEXT", "index": 3, "name": "PRIMARY_ALTERNATE", "comment": ""}, "TXN_RANK": {"type": "NUMBER", "index": 4, "name": "TXN_RANK", "comment": ""}, "DESCRIPTION": {"type": "TEXT", "index": 5, "name": "DESCRIPTION", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 6, "name": "BLOCKCHAIN", "comment": ""}, "METRIC_RANK": {"type": "NUMBER", "index": 7, "name": "METRIC_RANK", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.data_science_silver.scoring_activity_categories"}, "source.fsc_evm.data_science_silver.evm_wrapped_assets": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "EVM_WRAPPED_ASSETS", "database": "DATASCIENCE", "comment": "Initial version of the model", "owner": "DBT_CLOUD_DATASCIENCE"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "ASSET_SYMBOL": {"type": "TEXT", "index": 2, "name": "ASSET_SYMBOL", "comment": null}, "WRAPPED_ASSET_SYMBOL": {"type": "TEXT", "index": 3, "name": "WRAPPED_ASSET_SYMBOL", "comment": null}, "WRAPPED_ASSET_ADDRESS": {"type": "TEXT", "index": 4, "name": "WRAPPED_ASSET_ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-03-05 16:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2560, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 19, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.data_science_silver.evm_wrapped_assets"}, "source.fsc_evm.data_science_silver.evm_known_event_sigs": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "EVM_KNOWN_EVENT_SIGS", "database": "DATASCIENCE", "comment": "Initial version of the model", "owner": "DBT_CLOUD_DATASCIENCE"}, "columns": {"METRIC": {"type": "TEXT", "index": 1, "name": "METRIC", "comment": null}, "PROJECT": {"type": "TEXT", "index": 2, "name": "PROJECT", "comment": null}, "EVENT_SIG": {"type": "TEXT", "index": 3, "name": "EVENT_SIG", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-08-07 15:31UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 13312, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 163, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.data_science_silver.evm_known_event_sigs"}, "source.fsc_evm.data_science_silver.evm_event_sigs": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "EVM_EVENT_SIGS", "database": "DATASCIENCE", "comment": "Initial version of the model", "owner": "DBT_CLOUD_DATASCIENCE"}, "columns": {"EVENT_SIG": {"type": "TEXT", "index": 1, "name": "EVENT_SIG", "comment": ""}, "EVENT_NAME": {"type": "TEXT", "index": 2, "name": "EVENT_NAME", "comment": ""}, "SOURCE_BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "SOURCE_BLOCKCHAIN", "comment": ""}, "EVENT_SIG_ID": {"type": "TEXT", "index": 4, "name": "EVENT_SIG_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 7, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-03-05 16:55UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 28620800, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 261217, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.data_science_silver.evm_event_sigs"}, "source.fsc_evm.data_science_silver.dates": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DATES", "database": "DATASCIENCE", "comment": "Initial version of the model", "owner": "DBT_CLOUD_DATASCIENCE"}, "columns": {"DATE_DAY": {"type": "DATE", "index": 1, "name": "DATE_DAY", "comment": null}, "PRIOR_DATE_DAY": {"type": "DATE", "index": 2, "name": "PRIOR_DATE_DAY", "comment": null}, "NEXT_DATE_DAY": {"type": "DATE", "index": 3, "name": "NEXT_DATE_DAY", "comment": null}, "PRIOR_YEAR_DATE_DAY": {"type": "DATE", "index": 4, "name": "PRIOR_YEAR_DATE_DAY", "comment": null}, "PRIOR_YEAR_OVER_YEAR_DATE_DAY": {"type": "DATE", "index": 5, "name": "PRIOR_YEAR_OVER_YEAR_DATE_DAY", "comment": null}, "DAY_OF_WEEK": {"type": "NUMBER", "index": 6, "name": "DAY_OF_WEEK", "comment": null}, "DAY_OF_WEEK_ISO": {"type": "NUMBER", "index": 7, "name": "DAY_OF_WEEK_ISO", "comment": null}, "DAY_OF_WEEK_NAME": {"type": "TEXT", "index": 8, "name": "DAY_OF_WEEK_NAME", "comment": null}, "DAY_OF_WEEK_NAME_SHORT": {"type": "TEXT", "index": 9, "name": "DAY_OF_WEEK_NAME_SHORT", "comment": null}, "DAY_OF_MONTH": {"type": "NUMBER", "index": 10, "name": "DAY_OF_MONTH", "comment": null}, "DAY_OF_YEAR": {"type": "NUMBER", "index": 11, "name": "DAY_OF_YEAR", "comment": null}, "WEEK_START_DATE": {"type": "DATE", "index": 12, "name": "WEEK_START_DATE", "comment": null}, "WEEK_END_DATE": {"type": "DATE", "index": 13, "name": "WEEK_END_DATE", "comment": null}, "PRIOR_YEAR_WEEK_START_DATE": {"type": "DATE", "index": 14, "name": "PRIOR_YEAR_WEEK_START_DATE", "comment": null}, "PRIOR_YEAR_WEEK_END_DATE": {"type": "DATE", "index": 15, "name": "PRIOR_YEAR_WEEK_END_DATE", "comment": null}, "WEEK_OF_YEAR": {"type": "NUMBER", "index": 16, "name": "WEEK_OF_YEAR", "comment": null}, "ISO_WEEK_START_DATE": {"type": "DATE", "index": 17, "name": "ISO_WEEK_START_DATE", "comment": null}, "ISO_WEEK_END_DATE": {"type": "DATE", "index": 18, "name": "ISO_WEEK_END_DATE", "comment": null}, "PRIOR_YEAR_ISO_WEEK_START_DATE": {"type": "DATE", "index": 19, "name": "PRIOR_YEAR_ISO_WEEK_START_DATE", "comment": null}, "PRIOR_YEAR_ISO_WEEK_END_DATE": {"type": "DATE", "index": 20, "name": "PRIOR_YEAR_ISO_WEEK_END_DATE", "comment": null}, "ISO_WEEK_OF_YEAR": {"type": "NUMBER", "index": 21, "name": "ISO_WEEK_OF_YEAR", "comment": null}, "PRIOR_YEAR_WEEK_OF_YEAR": {"type": "NUMBER", "index": 22, "name": "PRIOR_YEAR_WEEK_OF_YEAR", "comment": null}, "PRIOR_YEAR_ISO_WEEK_OF_YEAR": {"type": "NUMBER", "index": 23, "name": "PRIOR_YEAR_ISO_WEEK_OF_YEAR", "comment": null}, "MONTH_OF_YEAR": {"type": "NUMBER", "index": 24, "name": "MONTH_OF_YEAR", "comment": null}, "MONTH_NAME": {"type": "TEXT", "index": 25, "name": "MONTH_NAME", "comment": null}, "MONTH_NAME_SHORT": {"type": "TEXT", "index": 26, "name": "MONTH_NAME_SHORT", "comment": null}, "MONTH_START_DATE": {"type": "DATE", "index": 27, "name": "MONTH_START_DATE", "comment": null}, "MONTH_END_DATE": {"type": "DATE", "index": 28, "name": "MONTH_END_DATE", "comment": null}, "PRIOR_YEAR_MONTH_START_DATE": {"type": "DATE", "index": 29, "name": "PRIOR_YEAR_MONTH_START_DATE", "comment": null}, "PRIOR_YEAR_MONTH_END_DATE": {"type": "DATE", "index": 30, "name": "PRIOR_YEAR_MONTH_END_DATE", "comment": null}, "QUARTER_OF_YEAR": {"type": "NUMBER", "index": 31, "name": "QUARTER_OF_YEAR", "comment": null}, "QUARTER_START_DATE": {"type": "DATE", "index": 32, "name": "QUARTER_START_DATE", "comment": null}, "QUARTER_END_DATE": {"type": "DATE", "index": 33, "name": "QUARTER_END_DATE", "comment": null}, "YEAR_NUMBER": {"type": "NUMBER", "index": 34, "name": "YEAR_NUMBER", "comment": null}, "YEAR_START_DATE": {"type": "DATE", "index": 35, "name": "YEAR_START_DATE", "comment": null}, "YEAR_END_DATE": {"type": "DATE", "index": 36, "name": "YEAR_END_DATE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-11 22:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 313856, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8034, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.data_science_silver.dates"}, "source.fsc_evm.data_science_silver.evm_known_event_names": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "EVM_KNOWN_EVENT_NAMES", "database": "DATASCIENCE", "comment": "Initial version of the model", "owner": "DBT_CLOUD_DATASCIENCE"}, "columns": {"METRIC": {"type": "TEXT", "index": 1, "name": "METRIC", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 2, "name": "EVENT_NAME", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-03-04 22:28UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2048, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 23, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.data_science_silver.evm_known_event_names"}, "source.livequery_models.crosschain.dim_evm_event_abis": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "DIM_EVM_EVENT_ABIS", "database": "CROSSCHAIN_DEV", "comment": "This table contains the individual event abis for each all contracts that we have ABIs for. Proxies are rolled up to their implementation.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The blockchain that the event abi is for."}, "PARENT_CONTRACT_ADDRESS": {"type": "TEXT", "index": 2, "name": "PARENT_CONTRACT_ADDRESS", "comment": "The address of the contract that the event abi is for."}, "EVENT_NAME": {"type": "TEXT", "index": 3, "name": "EVENT_NAME", "comment": "The name of the event."}, "ABI": {"type": "VARIANT", "index": 4, "name": "ABI", "comment": "The abi of the event."}, "SIMPLE_EVENT_NAME": {"type": "TEXT", "index": 5, "name": "SIMPLE_EVENT_NAME", "comment": "The name of the event along with its parameters."}, "EVENT_SIGNATURE": {"type": "TEXT", "index": 6, "name": "EVENT_SIGNATURE", "comment": "The keccak256 signature of the simple event name. This can be used to filter for events in the logs table on topics[0]."}, "START_BLOCK": {"type": "NUMBER", "index": 7, "name": "START_BLOCK", "comment": "The block number of the creation of the contract containing the event. This could be from a proxy or an implementation."}, "END_BLOCK": {"type": "NUMBER", "index": 8, "name": "END_BLOCK", "comment": "The block number before a similar event was created in the contract. This could be from a proxy or an implementation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": "The utc timestamp at which the row was inserted into the table."}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": "The utc timestamp at which the row was last modified."}, "DIM_EVM_EVENT_ABIS_ID": {"type": "TEXT", "index": 11, "name": "DIM_EVM_EVENT_ABIS_ID", "comment": "The unique identifier for each row in the table."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.livequery_models.crosschain.dim_evm_event_abis"}, "source.livequery_models.crosschain.dim_contracts": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "DIM_CONTRACTS", "database": "CROSSCHAIN_DEV", "comment": "This table contains contract details for contracts deployed on the Ethereum, Optimism, Polygon, BSC, Arbitrum, Avalanche, Osmosis and Solana blockchains.", "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "The unique address of the deployed contract."}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": "The symbol used to represent this contract. Please note this is not necessarily unique."}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": "The name of the deployed contract. Please note this is not necessarily unique."}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": "The number of decimal places this contract needs adjusted where token values exist."}, "CREATED_BLOCK_NUMBER": {"type": "NUMBER", "index": 5, "name": "CREATED_BLOCK_NUMBER", "comment": ""}, "CREATED_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_BLOCK_TIMESTAMP", "comment": ""}, "CREATED_TX_HASH": {"type": "TEXT", "index": 7, "name": "CREATED_TX_HASH", "comment": ""}, "CREATOR_ADDRESS": {"type": "TEXT", "index": 8, "name": "CREATOR_ADDRESS", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 9, "name": "BLOCKCHAIN", "comment": "The corresponding blockchain for contract details."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": "The utc timestamp at which the row was inserted into the table."}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": "The utc timestamp at which the row was last modified."}, "DIM_CONTRACTS_ID": {"type": "TEXT", "index": 12, "name": "DIM_CONTRACTS_ID", "comment": "The unique identifier for each row in the table."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.livequery_models.crosschain.dim_contracts"}, "source.livequery_models.crosschain.dim_date_hours": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "DIM_DATE_HOURS", "database": "CROSSCHAIN_DEV", "comment": "Hold rows for each hour from 2017 to current timestamp (UTC)", "owner": "INTERNAL_DEV"}, "columns": {"DATE_HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "DATE_HOUR", "comment": "Specific hour of a given date"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.livequery_models.crosschain.dim_date_hours"}, "source.polygon_models.fsc_evm_admin._master_keys": {"metadata": {"type": "BASE TABLE", "schema": "ADMIN", "name": "_MASTER_KEYS", "database": "FSC_EVM", "comment": null, "owner": "DBT_CLOUD_FSC_EVM"}, "columns": {"PACKAGE": {"type": "TEXT", "index": 1, "name": "PACKAGE", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 2, "name": "CATEGORY", "comment": null}, "VARIABLE_KEY": {"type": "TEXT", "index": 3, "name": "VARIABLE_KEY", "comment": null}, "DEFAULT_VALUE": {"type": "TEXT", "index": 4, "name": "DEFAULT_VALUE", "comment": null}, "DEFAULT_TYPE": {"type": "TEXT", "index": 5, "name": "DEFAULT_TYPE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-19 20:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 67072, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4579, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.fsc_evm_admin._master_keys"}, "source.fsc_evm.fsc_evm_admin._master_keys": {"metadata": {"type": "BASE TABLE", "schema": "ADMIN", "name": "_MASTER_KEYS", "database": "FSC_EVM", "comment": null, "owner": "DBT_CLOUD_FSC_EVM"}, "columns": {"PACKAGE": {"type": "TEXT", "index": 1, "name": "PACKAGE", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 2, "name": "CATEGORY", "comment": null}, "VARIABLE_KEY": {"type": "TEXT", "index": 3, "name": "VARIABLE_KEY", "comment": null}, "DEFAULT_VALUE": {"type": "TEXT", "index": 4, "name": "DEFAULT_VALUE", "comment": null}, "DEFAULT_TYPE": {"type": "TEXT", "index": 5, "name": "DEFAULT_TYPE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-19 20:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 67072, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4579, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.fsc_evm_admin._master_keys"}, "source.polygon_models.fsc_evm_admin.rpc_node_logs": {"metadata": {"type": "BASE TABLE", "schema": "ADMIN", "name": "RPC_NODE_LOGS", "database": "FSC_EVM", "comment": null, "owner": "DBT_CLOUD_FSC_EVM"}, "columns": {"LOG_ID": {"type": "NUMBER", "index": 1, "name": "LOG_ID", "comment": null}, "INSERTED_AT": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "INSERTED_AT", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "RECEIPTS_BY_BLOCK": {"type": "BOOLEAN", "index": 5, "name": "RECEIPTS_BY_BLOCK", "comment": null}, "BLOCKS_PER_HOUR": {"type": "NUMBER", "index": 6, "name": "BLOCKS_PER_HOUR", "comment": null}, "RESULT": {"type": "VARIANT", "index": 7, "name": "RESULT", "comment": null}, "BLOCKS_FIELDS": {"type": "ARRAY", "index": 8, "name": "BLOCKS_FIELDS", "comment": null}, "TRANSACTIONS_FIELDS": {"type": "ARRAY", "index": 9, "name": "TRANSACTIONS_FIELDS", "comment": null}, "RECEIPTS_FIELDS": {"type": "ARRAY", "index": 10, "name": "RECEIPTS_FIELDS", "comment": null}, "TRACES_FIELDS": {"type": "ARRAY", "index": 11, "name": "TRACES_FIELDS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-05 18:25UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 78848, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 31, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.fsc_evm_admin.rpc_node_logs"}, "source.fsc_evm.fsc_evm_admin.rpc_node_logs": {"metadata": {"type": "BASE TABLE", "schema": "ADMIN", "name": "RPC_NODE_LOGS", "database": "FSC_EVM", "comment": null, "owner": "DBT_CLOUD_FSC_EVM"}, "columns": {"LOG_ID": {"type": "NUMBER", "index": 1, "name": "LOG_ID", "comment": null}, "INSERTED_AT": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "INSERTED_AT", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "NETWORK": {"type": "TEXT", "index": 4, "name": "NETWORK", "comment": null}, "RECEIPTS_BY_BLOCK": {"type": "BOOLEAN", "index": 5, "name": "RECEIPTS_BY_BLOCK", "comment": null}, "BLOCKS_PER_HOUR": {"type": "NUMBER", "index": 6, "name": "BLOCKS_PER_HOUR", "comment": null}, "RESULT": {"type": "VARIANT", "index": 7, "name": "RESULT", "comment": null}, "BLOCKS_FIELDS": {"type": "ARRAY", "index": 8, "name": "BLOCKS_FIELDS", "comment": null}, "TRANSACTIONS_FIELDS": {"type": "ARRAY", "index": 9, "name": "TRANSACTIONS_FIELDS", "comment": null}, "RECEIPTS_FIELDS": {"type": "ARRAY", "index": 10, "name": "RECEIPTS_FIELDS", "comment": null}, "TRACES_FIELDS": {"type": "ARRAY", "index": 11, "name": "TRACES_FIELDS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-05 18:25UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 78848, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 31, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.fsc_evm_admin.rpc_node_logs"}, "source.fsc_evm.snowflake_account_usage.complete_task_graphs": {"metadata": {"type": "VIEW", "schema": "ACCOUNT_USAGE", "name": "COMPLETE_TASK_GRAPHS", "database": "SNOWFLAKE", "comment": null, "owner": null}, "columns": {"ROOT_TASK_NAME": {"type": "TEXT", "index": 1, "name": "ROOT_TASK_NAME", "comment": null}, "DATABASE_NAME": {"type": "TEXT", "index": 2, "name": "DATABASE_NAME", "comment": null}, "GRAPH_DATABASE_ID": {"type": "NUMBER", "index": 3, "name": "GRAPH_DATABASE_ID", "comment": null}, "SCHEMA_NAME": {"type": "TEXT", "index": 4, "name": "SCHEMA_NAME", "comment": null}, "GRAPH_SCHEMA_ID": {"type": "NUMBER", "index": 5, "name": "GRAPH_SCHEMA_ID", "comment": null}, "STATE": {"type": "TEXT", "index": 6, "name": "STATE", "comment": null}, "FIRST_ERROR_TASK_NAME": {"type": "TEXT", "index": 7, "name": "FIRST_ERROR_TASK_NAME", "comment": null}, "FIRST_ERROR_CODE": {"type": "TEXT", "index": 8, "name": "FIRST_ERROR_CODE", "comment": null}, "FIRST_ERROR_MESSAGE": {"type": "TEXT", "index": 9, "name": "FIRST_ERROR_MESSAGE", "comment": null}, "SCHEDULED_TIME": {"type": "TIMESTAMP_LTZ", "index": 10, "name": "SCHEDULED_TIME", "comment": null}, "QUERY_START_TIME": {"type": "TIMESTAMP_LTZ", "index": 11, "name": "QUERY_START_TIME", "comment": null}, "NEXT_SCHEDULED_TIME": {"type": "TIMESTAMP_LTZ", "index": 12, "name": "NEXT_SCHEDULED_TIME", "comment": null}, "COMPLETED_TIME": {"type": "TIMESTAMP_LTZ", "index": 13, "name": "COMPLETED_TIME", "comment": null}, "ROOT_TASK_ID": {"type": "TEXT", "index": 14, "name": "ROOT_TASK_ID", "comment": null}, "GRAPH_VERSION": {"type": "NUMBER", "index": 15, "name": "GRAPH_VERSION", "comment": null}, "RUN_ID": {"type": "NUMBER", "index": 16, "name": "RUN_ID", "comment": null}, "ATTEMPT_NUMBER": {"type": "NUMBER", "index": 17, "name": "ATTEMPT_NUMBER", "comment": null}, "SCHEDULED_FROM": {"type": "TEXT", "index": 18, "name": "SCHEDULED_FROM", "comment": null}, "CONFIG": {"type": "TEXT", "index": 19, "name": "CONFIG", "comment": null}, "GRAPH_RUN_GROUP_ID": {"type": "TEXT", "index": 20, "name": "GRAPH_RUN_GROUP_ID", "comment": null}, "BACKFILL_INFO": {"type": "OBJECT", "index": 21, "name": "BACKFILL_INFO", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.snowflake_account_usage.complete_task_graphs"}, "source.livequery_models.ethereum_core.ez_decoded_event_logs": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "EZ_DECODED_EVENT_LOGS", "database": "ETHEREUM_DEV", "comment": "## What\n\nThis table provides human-readable decoded event data for smart contracts where ABIs are available. It transforms raw hex-encoded logs into structured JSON with named parameters and values, making blockchain data immediately queryable without manual decoding.\n\n## Key Use Cases\n\n- Analyzing token transfers and approvals without manual decoding\n- Tracking DEX swaps and liquidity events with named parameters\n- Monitoring NFT transfers and marketplace activity\n- Querying DeFi protocol interactions (lending, staking, governance)\n- Building analytics on any smart contract with available ABIs\n\n## Important Relationships\n\n- **Join with fact_event_logs**: Use `tx_hash` and `event_index` for raw event data\n- **Join with dim_contracts**: Use `contract_address` for contract metadata\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Cross-reference ez_token_transfers**: For simplified token movement data\n\n## Commonly-used Fields\n\n- `contract_address`: The smart contract that emitted the event\n- `event_name`: The event name from the contract ABI (e.g., Transfer, Swap)\n- `decoded_log`: JSON object with decoded parameter names and values\n- `contract_name`: Human-readable name of the contract\n- `block_timestamp`: When the event occurred\n- `tx_hash`: Transaction hash containing this event\n\n## Sample queries\n\n**ERC-20 Transfer Events with Proper Types**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n contract_address,\n contract_name,\n event_name,\n decoded_log:from::string AS from_address,\n decoded_log:to::string AS to_address,\n decoded_log:value::numeric AS amount,\n -- Convert to decimal (assuming 18 decimals)\n decoded_log:value::numeric / POW(10, 18) AS amount_decimal\nFROM .core.ez_decoded_event_logs\nWHERE contract_address = LOWER('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48') -- USDC\n AND event_name = 'Transfer'\n AND block_timestamp >= CURRENT_DATE - 7\n AND decoded_log:value::numeric > 1000000000 -- Over 1000 USDC\nORDER BY block_timestamp DESC;\n```\n\n**Uniswap V3 Swap Events**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n contract_address AS pool_address,\n event_name,\n decoded_log:sender::string AS sender,\n decoded_log:recipient::string AS recipient,\n decoded_log:amount0::numeric AS amount0,\n decoded_log:amount1::numeric AS amount1,\n decoded_log:sqrtPriceX96::numeric AS sqrt_price,\n decoded_log:liquidity::numeric AS liquidity,\n decoded_log:tick::integer AS tick\nFROM .core.ez_decoded_event_logs\nWHERE event_name = 'Swap'\n AND contract_address IN (\n SELECT address FROM dim_contracts \n WHERE contract_name ILIKE '%Uniswap V3%'\n )\n AND block_timestamp >= CURRENT_DATE - 1\nLIMIT 100;\n```\n\n**NFT Transfer Events (ERC-721)**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n contract_address,\n contract_name AS collection_name,\n decoded_log:from::string AS from_address,\n decoded_log:to::string AS to_address,\n decoded_log:tokenId::string AS token_id\nFROM .core.ez_decoded_event_logs\nWHERE event_name = 'Transfer'\n AND decoded_log:tokenId IS NOT NULL -- Indicates ERC-721\n AND block_timestamp >= CURRENT_DATE - 1\nORDER BY block_timestamp DESC;\n```\n\n**DeFi Protocol Events - Compound Finance**\n\n```sql\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n event_name,\n COUNT(*) AS event_count,\n COUNT(DISTINCT decoded_log:minter::string) AS unique_users\nFROM .core.ez_decoded_event_logs\nWHERE contract_name ILIKE '%compound%'\n AND event_name IN ('Mint', 'Redeem', 'Borrow', 'RepayBorrow')\n AND block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1, 2\nORDER BY 1 DESC, 3 DESC;\n```\n\n**Complex Event Analysis - DEX Aggregator Routes**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n event_name,\n decoded_log,\n ARRAY_SIZE(decoded_log:path) AS swap_hops,\n decoded_log:amountIn::numeric AS amount_in,\n decoded_log:amountOutMin::numeric AS min_amount_out\nFROM .core.ez_decoded_event_logs\nWHERE contract_address = LOWER('0x1111111254fb6c44bAC0beD2854e76F90643097d') -- 1inch\n AND event_name ILIKE '%swap%'\n AND block_timestamp >= CURRENT_DATE - 1;\n```", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering"}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events"}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": "Array containing all indexed parameters of the event.\n\nExample: ['0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', '0x0000000000000000000000001234567890123456789012345678901234567890']"}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": "Event signature hash - keccak256 of the event declaration.\n\nExample: '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'"}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": "First indexed parameter of the event (if exists).\n\nExample: '0x0000000000000000000000001234567890123456789012345678901234567890'"}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": "Second indexed parameter of the event (if exists).\n\nExample: '0x000000000000000000000000abcdefabcdefabcdefabcdefabcdefabcdefabcd'"}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": "Third indexed parameter of the event (if exists).\n\nExample: '0x0000000000000000000000000000000000000000000000000000000000000001'"}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": "Hex-encoded non-indexed event parameters.\n\nExample: '0x0000000000000000000000000000000000000000000000000de0b6b3a7640000'"}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": "Boolean flag indicating if the event was removed due to chain reorganization.\n\nExample: false"}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": "Boolean indicator of transaction success.\n\n**Values**:\n- TRUE: Transaction executed successfully\n- FALSE: Transaction failed/reverted"}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```"}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": "Complete decoded event data including parameter names, values, types, and metadata.\n\nExample: '{\"event_name\": \"Transfer\", \"parameters\": [{\"name\": \"from\", \"type\": \"address\", \"value\": \"0x123...\", \"indexed\": true}]}'"}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": "Flattened JSON object containing decoded event parameters with their values.\n\nExample: '{\"from\": \"0x123...\", \"to\": \"0x456...\", \"value\": \"1000000000000000000\"}'"}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": "Human-readable name of the smart contract emitting the event, joined from dim_contracts.\n\nExample: 'USD Coin'"}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 15:24UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1343738811392, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5025573471, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.livequery_models.ethereum_core.ez_decoded_event_logs"}, "source.livequery_models.ethereum_core.fact_event_logs": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "FACT_EVENT_LOGS", "database": "ETHEREUM_DEV", "comment": "## What\n\nThis table contains raw event logs emitted by smart contracts during transaction execution. Each row represents a single event with its topics and data. Events are the primary mechanism for smart contracts to communicate state changes and must be explicitly emitted in contract code.\n\n## Key Use Cases\n\n- Tracking raw blockchain events before decoding\n- Filtering events by signature (topic_0) for specific event types\n- Analyzing contract activity patterns and event frequencies\n- Building custom event decoders for unsupported contracts\n- Monitoring specific addresses via indexed parameters\n\n## Important Relationships\n\n- **Join with ez_decoded_event_logs**: Use `tx_hash` and `event_index` for simplified decoded data\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Join with dim_contracts**: Use `contract_address` for contract metadata\n\n## Commonly-used Fields\n\n- `topic_0`: Event signature hash for filtering event types\n- `contract_address`: Smart contract that emitted the event\n- `topics`: Array of indexed parameters (max 4)\n- `data`: Hex-encoded non-indexed parameters\n- `event_index`: Sequential position within transaction\n- `tx_hash`: Transaction containing this event\n\n## Sample queries\n\n```sql\n-- Find all ERC-20 Transfer events in last 24 hours\nSELECT \n block_timestamp,\n tx_hash,\n contract_address,\n topics[1] AS from_address_padded,\n topics[2] AS to_address_padded,\n data AS amount_hex,\n event_index\nFROM .core.fact_event_logs\nWHERE topic_0 = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND ARRAY_SIZE(topics) = 3 -- ERC-20 has 3 topics\n AND block_timestamp >= CURRENT_DATE - 1\nLIMIT 100;\n\n-- Most active contracts by event count\nSELECT \n contract_address,\n COUNT(*) AS event_count,\n COUNT(DISTINCT tx_hash) AS unique_txs,\n COUNT(DISTINCT topic_0) AS unique_event_types,\n MIN(block_timestamp) AS first_seen,\n MAX(block_timestamp) AS last_seen\nFROM .core.fact_event_logs\nWHERE block_timestamp >= CURRENT_DATE - 7\nGROUP BY 1\nORDER BY 2 DESC\nLIMIT 50;\n\n-- Event patterns within transactions\nSELECT \n tx_hash,\n COUNT(*) AS events_in_tx,\n COUNT(DISTINCT contract_address) AS contracts_touched,\n ARRAY_AGG(DISTINCT topic_0) AS event_signatures\nFROM .core.fact_event_logs\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1\nHAVING COUNT(*) > 10\nORDER BY 2 DESC\nLIMIT 20;\n```", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering"}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events"}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": "Array containing all indexed parameters of the event.\n\nExample: ['0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', '0x0000000000000000000000001234567890123456789012345678901234567890']"}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": "Event signature hash - keccak256 of the event declaration.\n\nExample: '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'"}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": "First indexed parameter of the event (if exists).\n\nExample: '0x0000000000000000000000001234567890123456789012345678901234567890'"}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": "Second indexed parameter of the event (if exists).\n\nExample: '0x000000000000000000000000abcdefabcdefabcdefabcdefabcdefabcdefabcd'"}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": "Third indexed parameter of the event (if exists).\n\nExample: '0x0000000000000000000000000000000000000000000000000000000000000001'"}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": "Hex-encoded non-indexed event parameters.\n\nExample: '0x0000000000000000000000000000000000000000000000000de0b6b3a7640000'"}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": "Boolean flag indicating if the event was removed due to chain reorganization.\n\nExample: false"}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": "Boolean indicator of transaction success.\n\n**Values**:\n- TRUE: Transaction executed successfully\n- FALSE: Transaction failed/reverted"}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 15:24UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 831928433664, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5708216381, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.livequery_models.ethereum_core.fact_event_logs"}, "source.fsc_evm.crosschain_silver.tokens_stablecoins": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "TOKENS_STABLECOINS", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": ""}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": ""}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 5, "name": "TOKEN_ADDRESS", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 6, "name": "BLOCKCHAIN", "comment": ""}, "PEG_TYPE": {"type": "TEXT", "index": 7, "name": "PEG_TYPE", "comment": ""}, "PEG_MECHANISM": {"type": "TEXT", "index": 8, "name": "PEG_MECHANISM", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": ""}, "TOKENS_STABLECOINS_ID": {"type": "TEXT", "index": 12, "name": "TOKENS_STABLECOINS_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 05:03UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 159232, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(blockchain)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1093, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_silver.tokens_stablecoins"}, "source.polygon_models.crosschain_silver.tokens_stablecoins": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "TOKENS_STABLECOINS", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": ""}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": ""}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 5, "name": "TOKEN_ADDRESS", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 6, "name": "BLOCKCHAIN", "comment": ""}, "PEG_TYPE": {"type": "TEXT", "index": 7, "name": "PEG_TYPE", "comment": ""}, "PEG_MECHANISM": {"type": "TEXT", "index": 8, "name": "PEG_MECHANISM", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": ""}, "TOKENS_STABLECOINS_ID": {"type": "TEXT", "index": 12, "name": "TOKENS_STABLECOINS_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 05:03UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 159232, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(blockchain)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1093, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.crosschain_silver.tokens_stablecoins"}, "source.fsc_evm.crosschain_silver.labels_combined": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "LABELS_COMBINED", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"SYSTEM_CREATED_AT": {"type": "TIMESTAMP_LTZ", "index": 1, "name": "SYSTEM_CREATED_AT", "comment": ""}, "INSERT_DATE": {"type": "TIMESTAMP_LTZ", "index": 2, "name": "INSERT_DATE", "comment": "The date the label was inserted in the table"}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": "The name of the blockchain"}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": "Address that the label is for. This is the field that should be used to join other tables with labels."}, "CREATOR": {"type": "TEXT", "index": 5, "name": "CREATOR", "comment": "The name of the creator of the label"}, "LABEL_TYPE": {"type": "TEXT", "index": 6, "name": "LABEL_TYPE", "comment": "A high-level category describing the addresses main function or ownership"}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 7, "name": "LABEL_SUBTYPE", "comment": "A sub-category nested within label type providing further detail"}, "ADDRESS_NAME": {"type": "TEXT", "index": 8, "name": "ADDRESS_NAME", "comment": "Name of the address"}, "PROJECT_NAME": {"type": "TEXT", "index": 9, "name": "PROJECT_NAME", "comment": "Name of the controlling entity of the address"}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": "The utc timestamp at which the row was inserted into the table."}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": "The utc timestamp at which the row was last modified."}, "LABELS_COMBINED_ID": {"type": "TEXT", "index": 12, "name": "LABELS_COMBINED_ID", "comment": "The unique identifier for each row in the table."}, "SOURCE": {"type": "TEXT", "index": 13, "name": "SOURCE", "comment": ""}, "_IS_DELETED": {"type": "BOOLEAN", "index": 14, "name": "_IS_DELETED", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 17:44UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 33067912704, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(blockchain, _is_deleted, modified_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 787898509, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_silver.labels_combined"}, "source.polygon_models.crosschain_silver.labels_combined": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "LABELS_COMBINED", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"SYSTEM_CREATED_AT": {"type": "TIMESTAMP_LTZ", "index": 1, "name": "SYSTEM_CREATED_AT", "comment": ""}, "INSERT_DATE": {"type": "TIMESTAMP_LTZ", "index": 2, "name": "INSERT_DATE", "comment": "The date the label was inserted in the table"}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": "The name of the blockchain"}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": "Address that the label is for. This is the field that should be used to join other tables with labels."}, "CREATOR": {"type": "TEXT", "index": 5, "name": "CREATOR", "comment": "The name of the creator of the label"}, "LABEL_TYPE": {"type": "TEXT", "index": 6, "name": "LABEL_TYPE", "comment": "A high-level category describing the addresses main function or ownership"}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 7, "name": "LABEL_SUBTYPE", "comment": "A sub-category nested within label type providing further detail"}, "ADDRESS_NAME": {"type": "TEXT", "index": 8, "name": "ADDRESS_NAME", "comment": "Name of the address"}, "PROJECT_NAME": {"type": "TEXT", "index": 9, "name": "PROJECT_NAME", "comment": "Name of the controlling entity of the address"}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": "The utc timestamp at which the row was inserted into the table."}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": "The utc timestamp at which the row was last modified."}, "LABELS_COMBINED_ID": {"type": "TEXT", "index": 12, "name": "LABELS_COMBINED_ID", "comment": "The unique identifier for each row in the table."}, "SOURCE": {"type": "TEXT", "index": 13, "name": "SOURCE", "comment": ""}, "_IS_DELETED": {"type": "BOOLEAN", "index": 14, "name": "_IS_DELETED", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 17:44UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 33067912704, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(blockchain, _is_deleted, modified_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 787898509, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.crosschain_silver.labels_combined"}, "source.polygon_models.crosschain_silver.complete_provider_prices": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_PROVIDER_PRICES", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": ""}, "RECORDED_HOUR": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "RECORDED_HOUR", "comment": ""}, "OPEN": {"type": "FLOAT", "index": 3, "name": "OPEN", "comment": ""}, "HIGH": {"type": "FLOAT", "index": 4, "name": "HIGH", "comment": ""}, "LOW": {"type": "FLOAT", "index": 5, "name": "LOW", "comment": ""}, "CLOSE": {"type": "FLOAT", "index": 6, "name": "CLOSE", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_PROVIDER_PRICES_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_PROVIDER_PRICES_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 40316818432, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(_inserted_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 796809314, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.crosschain_silver.complete_provider_prices"}, "source.fsc_evm.crosschain_silver.complete_provider_prices": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_PROVIDER_PRICES", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": ""}, "RECORDED_HOUR": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "RECORDED_HOUR", "comment": ""}, "OPEN": {"type": "FLOAT", "index": 3, "name": "OPEN", "comment": ""}, "HIGH": {"type": "FLOAT", "index": 4, "name": "HIGH", "comment": ""}, "LOW": {"type": "FLOAT", "index": 5, "name": "LOW", "comment": ""}, "CLOSE": {"type": "FLOAT", "index": 6, "name": "CLOSE", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_PROVIDER_PRICES_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_PROVIDER_PRICES_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 40316818432, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(_inserted_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 796809314, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_silver.complete_provider_prices"}, "source.polygon_models.crosschain_silver.near_address_encoded": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "NEAR_ADDRESS_ENCODED", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"NEAR_ADDRESS": {"type": "TEXT", "index": 1, "name": "NEAR_ADDRESS", "comment": ""}, "ADDR_ENCODED": {"type": "TEXT", "index": 2, "name": "ADDR_ENCODED", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 11892131840, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 175363069, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.crosschain_silver.near_address_encoded"}, "source.fsc_evm.crosschain_silver.near_address_encoded": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "NEAR_ADDRESS_ENCODED", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"NEAR_ADDRESS": {"type": "TEXT", "index": 1, "name": "NEAR_ADDRESS", "comment": ""}, "ADDR_ENCODED": {"type": "TEXT", "index": 2, "name": "ADDR_ENCODED", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 11892131840, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 175363069, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_silver.near_address_encoded"}, "source.polygon_models.crosschain_silver.complete_provider_asset_metadata": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_PROVIDER_ASSET_METADATA", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": ""}, "PLATFORM": {"type": "TEXT", "index": 5, "name": "PLATFORM", "comment": ""}, "PLATFORM_ID": {"type": "TEXT", "index": 6, "name": "PLATFORM_ID", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_PROVIDER_ASSET_METADATA_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_PROVIDER_ASSET_METADATA_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:41UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 9523712, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(_inserted_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 145285, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.crosschain_silver.complete_provider_asset_metadata"}, "source.fsc_evm.crosschain_silver.complete_provider_asset_metadata": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_PROVIDER_ASSET_METADATA", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": ""}, "PLATFORM": {"type": "TEXT", "index": 5, "name": "PLATFORM", "comment": ""}, "PLATFORM_ID": {"type": "TEXT", "index": 6, "name": "PLATFORM_ID", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_PROVIDER_ASSET_METADATA_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_PROVIDER_ASSET_METADATA_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:41UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 9523712, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(_inserted_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 145285, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_silver.complete_provider_asset_metadata"}, "source.polygon_models.crosschain_silver.complete_token_prices": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_TOKEN_PRICES", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "ASSET_ID": {"type": "TEXT", "index": 3, "name": "ASSET_ID", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": ""}, "NAME": {"type": "TEXT", "index": 5, "name": "NAME", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 6, "name": "DECIMALS", "comment": ""}, "PRICE": {"type": "FLOAT", "index": 7, "name": "PRICE", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN", "comment": ""}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 9, "name": "BLOCKCHAIN_NAME", "comment": ""}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 10, "name": "BLOCKCHAIN_ID", "comment": ""}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 11, "name": "IS_IMPUTED", "comment": ""}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 12, "name": "IS_DEPRECATED", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 13, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 14, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_TOKEN_PRICES_ID": {"type": "TEXT", "index": 18, "name": "COMPLETE_TOKEN_PRICES_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 19, "name": "_INVOCATION_ID", "comment": ""}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 21, "name": "IS_VERIFIED", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 51098369024, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(hour::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1045227605, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.crosschain_silver.complete_token_prices"}, "source.fsc_evm.crosschain_silver.complete_token_prices": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_TOKEN_PRICES", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": ""}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 2, "name": "TOKEN_ADDRESS", "comment": ""}, "ASSET_ID": {"type": "TEXT", "index": 3, "name": "ASSET_ID", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": ""}, "NAME": {"type": "TEXT", "index": 5, "name": "NAME", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 6, "name": "DECIMALS", "comment": ""}, "PRICE": {"type": "FLOAT", "index": 7, "name": "PRICE", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN", "comment": ""}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 9, "name": "BLOCKCHAIN_NAME", "comment": ""}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 10, "name": "BLOCKCHAIN_ID", "comment": ""}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 11, "name": "IS_IMPUTED", "comment": ""}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 12, "name": "IS_DEPRECATED", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 13, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 14, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_TOKEN_PRICES_ID": {"type": "TEXT", "index": 18, "name": "COMPLETE_TOKEN_PRICES_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 19, "name": "_INVOCATION_ID", "comment": ""}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 21, "name": "IS_VERIFIED", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 51098369024, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(hour::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1045227605, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_silver.complete_token_prices"}, "source.polygon_models.crosschain_silver.complete_native_prices": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_NATIVE_PRICES", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": ""}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": ""}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": ""}, "PRICE": {"type": "FLOAT", "index": 6, "name": "PRICE", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN", "comment": ""}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 8, "name": "IS_IMPUTED", "comment": ""}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 10, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 11, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_NATIVE_PRICES_ID": {"type": "TEXT", "index": 15, "name": "COMPLETE_NATIVE_PRICES_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 206786560, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(hour::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5880601, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.crosschain_silver.complete_native_prices"}, "source.fsc_evm.crosschain_silver.complete_native_prices": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_NATIVE_PRICES", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "HOUR", "comment": ""}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": ""}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": ""}, "PRICE": {"type": "FLOAT", "index": 6, "name": "PRICE", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN", "comment": ""}, "IS_IMPUTED": {"type": "BOOLEAN", "index": 8, "name": "IS_IMPUTED", "comment": ""}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 10, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 11, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_NATIVE_PRICES_ID": {"type": "TEXT", "index": 15, "name": "COMPLETE_NATIVE_PRICES_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:51UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 206786560, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(hour::DATE)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5880601, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_silver.complete_native_prices"}, "source.fsc_evm.crosschain_silver.complete_native_asset_metadata": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_NATIVE_ASSET_METADATA", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": ""}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 5, "name": "BLOCKCHAIN", "comment": ""}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 6, "name": "IS_DEPRECATED", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_NATIVE_ASSET_METADATA_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_NATIVE_ASSET_METADATA_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 15360, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 143, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_silver.complete_native_asset_metadata"}, "source.polygon_models.crosschain_silver.complete_native_asset_metadata": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_NATIVE_ASSET_METADATA", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"ASSET_ID": {"type": "TEXT", "index": 1, "name": "ASSET_ID", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": ""}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 5, "name": "BLOCKCHAIN", "comment": ""}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 6, "name": "IS_DEPRECATED", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 7, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 8, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_NATIVE_ASSET_METADATA_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_NATIVE_ASSET_METADATA_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 15360, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 143, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.crosschain_silver.complete_native_asset_metadata"}, "source.polygon_models.crosschain_silver.complete_token_asset_metadata": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_TOKEN_ASSET_METADATA", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"TOKEN_ADDRESS": {"type": "TEXT", "index": 1, "name": "TOKEN_ADDRESS", "comment": ""}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": ""}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 6, "name": "BLOCKCHAIN", "comment": ""}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN_NAME", "comment": ""}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN_ID", "comment": ""}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 10, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 11, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 13, "name": "IS_VERIFIED", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_TOKEN_ASSET_METADATA_ID": {"type": "TEXT", "index": 16, "name": "COMPLETE_TOKEN_ASSET_METADATA_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 17, "name": "_INVOCATION_ID", "comment": ""}, "IS_VERIFIED_MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "IS_VERIFIED_MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2176841728, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(blockchain)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 24664093, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.crosschain_silver.complete_token_asset_metadata"}, "source.fsc_evm.crosschain_silver.complete_token_asset_metadata": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_TOKEN_ASSET_METADATA", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"TOKEN_ADDRESS": {"type": "TEXT", "index": 1, "name": "TOKEN_ADDRESS", "comment": ""}, "ASSET_ID": {"type": "TEXT", "index": 2, "name": "ASSET_ID", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": ""}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": ""}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 6, "name": "BLOCKCHAIN", "comment": ""}, "BLOCKCHAIN_NAME": {"type": "TEXT", "index": 7, "name": "BLOCKCHAIN_NAME", "comment": ""}, "BLOCKCHAIN_ID": {"type": "TEXT", "index": 8, "name": "BLOCKCHAIN_ID", "comment": ""}, "IS_DEPRECATED": {"type": "BOOLEAN", "index": 9, "name": "IS_DEPRECATED", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 10, "name": "PROVIDER", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 11, "name": "SOURCE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 13, "name": "IS_VERIFIED", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "COMPLETE_TOKEN_ASSET_METADATA_ID": {"type": "TEXT", "index": 16, "name": "COMPLETE_TOKEN_ASSET_METADATA_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 17, "name": "_INVOCATION_ID", "comment": ""}, "IS_VERIFIED_MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "IS_VERIFIED_MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:42UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2176841728, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(blockchain)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 24664093, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.crosschain_silver.complete_token_asset_metadata"}, "source.polygon_models.bronze_streamline.balances_erc20": {"metadata": {"type": "EXTERNAL TABLE", "schema": "POLYGON", "name": "BALANCES_ERC20", "database": "STREAMLINE", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 178987879541, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.bronze_streamline.balances_erc20"}, "source.polygon_models.bronze_streamline.contract_abis": {"metadata": {"type": "EXTERNAL TABLE", "schema": "POLYGON", "name": "CONTRACT_ABIS", "database": "STREAMLINE", "comment": null, "owner": "AWS_LAMBDA_POLYGON_API"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 240913974, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.bronze_streamline.contract_abis"}, "source.polygon_models.bronze_streamline.blocks": {"metadata": {"type": "EXTERNAL TABLE", "schema": "POLYGON", "name": "BLOCKS", "database": "STREAMLINE", "comment": null, "owner": "AWS_LAMBDA_POLYGON_API"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 439615679096, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.bronze_streamline.blocks"}, "source.polygon_models.bronze_streamline.transactions": {"metadata": {"type": "EXTERNAL TABLE", "schema": "POLYGON", "name": "TRANSACTIONS", "database": "STREAMLINE", "comment": null, "owner": "AWS_LAMBDA_POLYGON_API"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 1097088283889, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.bronze_streamline.transactions"}, "source.polygon_models.bronze_streamline.token_reads": {"metadata": {"type": "EXTERNAL TABLE", "schema": "POLYGON", "name": "TOKEN_READS", "database": "STREAMLINE", "comment": null, "owner": "AWS_LAMBDA_POLYGON_API"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 2586849814, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.bronze_streamline.token_reads"}, "source.polygon_models.bronze_streamline.decoded_logs": {"metadata": {"type": "EXTERNAL TABLE", "schema": "POLYGON", "name": "DECODED_LOGS", "database": "STREAMLINE", "comment": null, "owner": "AWS_LAMBDA_POLYGON_API"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "_PARTITION_BY_CREATED_DATE": {"type": "DATE", "index": 2, "name": "_PARTITION_BY_CREATED_DATE", "comment": null}, "_PARTITION_BY_BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "_PARTITION_BY_BLOCK_NUMBER", "comment": null}, "ID": {"type": "TEXT", "index": 4, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 5, "name": "BLOCK_NUMBER", "comment": null}, "METADATA": {"type": "VARIANT", "index": 6, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 8, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 2893572164567, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.bronze_streamline.decoded_logs"}, "source.polygon_models.bronze_streamline.balances_native": {"metadata": {"type": "EXTERNAL TABLE", "schema": "POLYGON", "name": "BALANCES_NATIVE", "database": "STREAMLINE", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 109249061423, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.bronze_streamline.balances_native"}, "source.polygon_models.bronze_streamline.stablecoin_reads": {"metadata": {"type": "EXTERNAL TABLE", "schema": "POLYGON", "name": "STABLECOIN_READS", "database": "STREAMLINE", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 2848067, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.bronze_streamline.stablecoin_reads"}, "source.polygon_models.bronze_streamline.traces": {"metadata": {"type": "EXTERNAL TABLE", "schema": "POLYGON", "name": "TRACES", "database": "STREAMLINE", "comment": null, "owner": "AWS_LAMBDA_POLYGON_API"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": null}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 6, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 1465167664110, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.bronze_streamline.traces"}, "source.polygon_models.bronze_streamline.confirm_blocks": {"metadata": {"type": "EXTERNAL TABLE", "schema": "POLYGON", "name": "CONFIRM_BLOCKS", "database": "STREAMLINE", "comment": null, "owner": "AWS_LAMBDA_POLYGON_API"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 69339388240, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.bronze_streamline.confirm_blocks"}, "source.polygon_models.bronze_streamline.state_tracer": {"metadata": {"type": "EXTERNAL TABLE", "schema": "POLYGON", "name": "STATE_TRACER", "database": "STREAMLINE", "comment": null, "owner": "AWS_LAMBDA_POLYGON_API"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": null}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 1955941068654, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.bronze_streamline.state_tracer"}, "source.polygon_models.bronze_streamline.receipts": {"metadata": {"type": "EXTERNAL TABLE", "schema": "POLYGON", "name": "RECEIPTS", "database": "STREAMLINE", "comment": null, "owner": "AWS_LAMBDA_POLYGON_API"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": null}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 6, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 1436491742248, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.bronze_streamline.receipts"}, "source.polygon_models.external_gold_defillama.dim_chains": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "DIM_CHAINS", "database": "EXTERNAL", "comment": "This table contains dimensional information about the blockchains and networks listed on Defillama.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": "Name of the blockchain."}, "CHAIN_SYMBOL": {"type": "TEXT", "index": 2, "name": "CHAIN_SYMBOL", "comment": "The official abbreviation or symbol representing the blockchain."}, "TOKEN_NAME": {"type": "TEXT", "index": 3, "name": "TOKEN_NAME", "comment": "The full name of the native token used on the blockchain."}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 4, "name": "TOKEN_DECIMALS", "comment": "The number of decimals used by the native token, dictating its smallest divisible unit."}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 5, "name": "TOKEN_SYMBOL", "comment": "Symbol for the native token of the chain."}, "CHAIN_ID": {"type": "TEXT", "index": 6, "name": "CHAIN_ID", "comment": "Unique identifier of the chain."}, "NETWORK_ID": {"type": "TEXT", "index": 7, "name": "NETWORK_ID", "comment": "Identifier that distinguishes between multiple networks within a single blockchain (e.g., Mainnet vs Testnet)."}, "RPC": {"type": "VARIANT", "index": 8, "name": "RPC", "comment": "URL of the primary RPC endpoint used to interact with the blockchain."}, "FAUCETS": {"type": "VARIANT", "index": 9, "name": "FAUCETS", "comment": "List or URLs of faucets available for obtaining test tokens on the chain's testnets."}, "INFO_URL": {"type": "TEXT", "index": 10, "name": "INFO_URL", "comment": "URL to an official or authoritative information source about the blockchain."}, "SHORT_NAME": {"type": "TEXT", "index": 11, "name": "SHORT_NAME", "comment": "A shorter or abbreviated version of the blockchain's name, used in contexts with limited space."}, "EXPLORERS": {"type": "VARIANT", "index": 12, "name": "EXPLORERS", "comment": "List of URLs or platforms where transactions, blocks, and other chain activities can be explored and verified."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.external_gold_defillama.dim_chains"}, "source.polygon_models.external_polymarket.dim_markets": {"metadata": {"type": "VIEW", "schema": "POLYMARKET", "name": "DIM_MARKETS", "database": "EXTERNAL", "comment": "This table contains all markets and tokens available via the Polymarket CLOB API.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CONDITION_ID": {"type": "TEXT", "index": 1, "name": "CONDITION_ID", "comment": "ID of the specific market."}, "QUESTION": {"type": "TEXT", "index": 2, "name": "QUESTION", "comment": "The actual question the market is based on."}, "DESCRIPTION": {"type": "TEXT", "index": 3, "name": "DESCRIPTION", "comment": "A detailed description of the market."}, "TOKEN_1_TOKEN_ID": {"type": "TEXT", "index": 4, "name": "TOKEN_1_TOKEN_ID", "comment": "Token ID for the first token, available on-chain to make the on-chain data human-readable."}, "TOKEN_1_OUTCOME": {"type": "TEXT", "index": 5, "name": "TOKEN_1_OUTCOME", "comment": "Outcome for the first token, typically \"yes\" or \"no.\""}, "TOKEN_1_WINNER": {"type": "TEXT", "index": 6, "name": "TOKEN_1_WINNER", "comment": "Winner status for the first token."}, "TOKEN_2_TOKEN_ID": {"type": "TEXT", "index": 7, "name": "TOKEN_2_TOKEN_ID", "comment": "Token ID for the second token, available on-chain to make the on-chain data human-readable."}, "TOKEN_2_OUTCOME": {"type": "TEXT", "index": 8, "name": "TOKEN_2_OUTCOME", "comment": "Outcome for the second token, typically \"yes\" or \"no.\""}, "TOKEN_2_WINNER": {"type": "TEXT", "index": 9, "name": "TOKEN_2_WINNER", "comment": "Winner status for the second token."}, "ENABLE_ORDER_BOOK": {"type": "TEXT", "index": 10, "name": "ENABLE_ORDER_BOOK", "comment": "Indicates if the order book is enabled."}, "ACTIVE": {"type": "BOOLEAN", "index": 11, "name": "ACTIVE", "comment": "Indicates if the market is currently live."}, "CLOSED": {"type": "BOOLEAN", "index": 12, "name": "CLOSED", "comment": "Indicates if the market is not currently live."}, "ARCHIVED": {"type": "BOOLEAN", "index": 13, "name": "ARCHIVED", "comment": "Indicates if the market is archived."}, "ACCEPTING_ORDERS": {"type": "BOOLEAN", "index": 14, "name": "ACCEPTING_ORDERS", "comment": "Indicates if the market is accepting orders."}, "ACCEPTING_ORDER_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "ACCEPTING_ORDER_TIMESTAMP", "comment": "Timestamp when the market started accepting orders."}, "MINIMUM_ORDER_SIZE": {"type": "NUMBER", "index": 16, "name": "MINIMUM_ORDER_SIZE", "comment": "Minimum size of an order in the market."}, "MINIMUM_TICK_SIZE": {"type": "NUMBER", "index": 17, "name": "MINIMUM_TICK_SIZE", "comment": "Minimum tick size for the market."}, "QUESTION_ID": {"type": "TEXT", "index": 18, "name": "QUESTION_ID", "comment": "ID of the question associated with the market."}, "MARKET_SLUG": {"type": "TEXT", "index": 19, "name": "MARKET_SLUG", "comment": ""}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "END_DATE_ISO", "comment": "End date of the market in ISO format."}, "GAME_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "GAME_START_TIME", "comment": "Start time of the game/event associated with the market, used to trigger delay."}, "SECONDS_DELAY": {"type": "NUMBER", "index": 22, "name": "SECONDS_DELAY", "comment": "Seconds of match delay for in-game trading."}, "FPMM": {"type": "TEXT", "index": 23, "name": "FPMM", "comment": "Fixed Product Market Maker (FPMM) Polygon address."}, "MAKER_BASE_FEE": {"type": "NUMBER", "index": 24, "name": "MAKER_BASE_FEE", "comment": "Base fee for makers in the market."}, "TAKER_BASE_FEE": {"type": "NUMBER", "index": 25, "name": "TAKER_BASE_FEE", "comment": "Base fee for takers in the market."}, "NEG_RISK": {"type": "BOOLEAN", "index": 26, "name": "NEG_RISK", "comment": "Indicates if negative risk is present in the market."}, "NEG_RISK_MARKET_ID": {"type": "TEXT", "index": 27, "name": "NEG_RISK_MARKET_ID", "comment": "Market ID for negative risk."}, "NEG_RISK_REQUEST_ID": {"type": "TEXT", "index": 28, "name": "NEG_RISK_REQUEST_ID", "comment": "Request ID for negative risk."}, "REWARDS": {"type": "VARIANT", "index": 29, "name": "REWARDS", "comment": "Rewards associated with the market."}, "TAGS": {"type": "VARIANT", "index": 30, "name": "TAGS", "comment": "All the associated tags in the market, contained in an object."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.external_polymarket.dim_markets"}, "source.fsc_evm.bronze_streamline.blocks": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "BLOCKS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"_ID": {"type": "NUMBER", "index": 1, "name": "_ID", "comment": ""}, "BLOCK_NUMBER_DELAY": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER_DELAY", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_NUMBER_HEX": {"type": "TEXT", "index": 4, "name": "BLOCK_NUMBER_HEX", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.bronze_streamline.blocks"}, "source.fsc_evm.abis_silver.verified_abis": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "VERIFIED_ABIS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "DATA": {"type": "VARIANT", "index": 2, "name": "DATA", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ABI_SOURCE": {"type": "TEXT", "index": 4, "name": "ABI_SOURCE", "comment": null}, "DISCORD_USERNAME": {"type": "TEXT", "index": 5, "name": "DISCORD_USERNAME", "comment": null}, "ABI_HASH": {"type": "TEXT", "index": 6, "name": "ABI_HASH", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 08:18UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 841152000, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 669843, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.abis_silver.verified_abis"}, "source.polygon_models.abis_silver.verified_abis": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "VERIFIED_ABIS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "CONTRACT_ADDRESS", "comment": null}, "DATA": {"type": "VARIANT", "index": 2, "name": "DATA", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ABI_SOURCE": {"type": "TEXT", "index": 4, "name": "ABI_SOURCE", "comment": null}, "DISCORD_USERNAME": {"type": "TEXT", "index": 5, "name": "DISCORD_USERNAME", "comment": null}, "ABI_HASH": {"type": "TEXT", "index": 6, "name": "ABI_HASH", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 08:18UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 841152000, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 669843, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.abis_silver.verified_abis"}, "source.polygon_models.github_actions.workflows": {"metadata": {"type": "BASE TABLE", "schema": "GITHUB_ACTIONS", "name": "WORKFLOWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"WORKFLOW_NAME": {"type": "TEXT", "index": 1, "name": "WORKFLOW_NAME", "comment": null}, "INSERTED_AT": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "INSERTED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1536, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 23, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.github_actions.workflows"}, "source.fsc_evm.github_actions.workflows": {"metadata": {"type": "BASE TABLE", "schema": "GITHUB_ACTIONS", "name": "WORKFLOWS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"WORKFLOW_NAME": {"type": "TEXT", "index": 1, "name": "WORKFLOW_NAME", "comment": null}, "INSERTED_AT": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "INSERTED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 21:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1536, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 23, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.github_actions.workflows"}, "source.fsc_evm.complete_streamline.complete_contract_abis": {"metadata": {"type": "BASE TABLE", "schema": "STREAMLINE", "name": "COMPLETE_CONTRACT_ABIS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PARTITION_KEY": {"type": "NUMBER", "index": 1, "name": "PARTITION_KEY", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 2, "name": "CONTRACT_ADDRESS", "comment": null}, "FILE_NAME": {"type": "TEXT", "index": 3, "name": "FILE_NAME", "comment": null}, "COMPLETE_CONTRACT_ABIS_ID": {"type": "TEXT", "index": 4, "name": "COMPLETE_CONTRACT_ABIS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 8, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:22UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 119828992, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(partition_key)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1883722, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.complete_streamline.complete_contract_abis"}, "source.polygon_models.complete_streamline.complete_contract_abis": {"metadata": {"type": "BASE TABLE", "schema": "STREAMLINE", "name": "COMPLETE_CONTRACT_ABIS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PARTITION_KEY": {"type": "NUMBER", "index": 1, "name": "PARTITION_KEY", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 2, "name": "CONTRACT_ADDRESS", "comment": null}, "FILE_NAME": {"type": "TEXT", "index": 3, "name": "FILE_NAME", "comment": null}, "COMPLETE_CONTRACT_ABIS_ID": {"type": "TEXT", "index": 4, "name": "COMPLETE_CONTRACT_ABIS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 8, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 20:22UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 119828992, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(partition_key)", "include": true, "description": "The key used to cluster this table"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1883722, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.complete_streamline.complete_contract_abis"}, "source.polygon_models.abis_silver.complete_event_abis": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_EVENT_ABIS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PARENT_CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "PARENT_CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 2, "name": "EVENT_NAME", "comment": null}, "ABI": {"type": "VARIANT", "index": 3, "name": "ABI", "comment": null}, "START_BLOCK": {"type": "NUMBER", "index": 4, "name": "START_BLOCK", "comment": null}, "PROXY_CREATED_BLOCK": {"type": "NUMBER", "index": 5, "name": "PROXY_CREATED_BLOCK", "comment": null}, "SIMPLE_EVENT_NAME": {"type": "TEXT", "index": 6, "name": "SIMPLE_EVENT_NAME", "comment": null}, "EVENT_SIGNATURE": {"type": "TEXT", "index": 7, "name": "EVENT_SIGNATURE", "comment": null}, "END_BLOCK": {"type": "NUMBER", "index": 8, "name": "END_BLOCK", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "PROXY_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 10, "name": "PROXY_INSERTED_TIMESTAMP", "comment": null}, "_UPDATED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_UPDATED_TIMESTAMP", "comment": null}, "COMPLETE_EVENT_ABIS_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_EVENT_ABIS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}, "IMPLEMENTATION_CONTRACT": {"type": "TEXT", "index": 16, "name": "IMPLEMENTATION_CONTRACT", "comment": null}, "IMPLEMENTATION_CREATED_BLOCK": {"type": "NUMBER", "index": 17, "name": "IMPLEMENTATION_CREATED_BLOCK", "comment": null}, "IMPLEMENTATION_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "IMPLEMENTATION_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 08:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 30710998016, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 479322007, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.polygon_models.abis_silver.complete_event_abis"}, "source.fsc_evm.abis_silver.complete_event_abis": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "COMPLETE_EVENT_ABIS", "database": "POLYGON", "comment": null, "owner": "DBT_CLOUD_POLYGON"}, "columns": {"PARENT_CONTRACT_ADDRESS": {"type": "TEXT", "index": 1, "name": "PARENT_CONTRACT_ADDRESS", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 2, "name": "EVENT_NAME", "comment": null}, "ABI": {"type": "VARIANT", "index": 3, "name": "ABI", "comment": null}, "START_BLOCK": {"type": "NUMBER", "index": 4, "name": "START_BLOCK", "comment": null}, "PROXY_CREATED_BLOCK": {"type": "NUMBER", "index": 5, "name": "PROXY_CREATED_BLOCK", "comment": null}, "SIMPLE_EVENT_NAME": {"type": "TEXT", "index": 6, "name": "SIMPLE_EVENT_NAME", "comment": null}, "EVENT_SIGNATURE": {"type": "TEXT", "index": 7, "name": "EVENT_SIGNATURE", "comment": null}, "END_BLOCK": {"type": "NUMBER", "index": 8, "name": "END_BLOCK", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "PROXY_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 10, "name": "PROXY_INSERTED_TIMESTAMP", "comment": null}, "_UPDATED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_UPDATED_TIMESTAMP", "comment": null}, "COMPLETE_EVENT_ABIS_ID": {"type": "TEXT", "index": 12, "name": "COMPLETE_EVENT_ABIS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}, "IMPLEMENTATION_CONTRACT": {"type": "TEXT", "index": 16, "name": "IMPLEMENTATION_CONTRACT", "comment": null}, "IMPLEMENTATION_CREATED_BLOCK": {"type": "NUMBER", "index": 17, "name": "IMPLEMENTATION_CREATED_BLOCK", "comment": null}, "IMPLEMENTATION_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "IMPLEMENTATION_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-11-24 08:43UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 30710998016, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 479322007, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.fsc_evm.abis_silver.complete_event_abis"}}, "errors": null} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 0c4d0ec..fe9141e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,30 +1,4 @@ - - - - - - - dbt Docs - - - - - - - - - - - - - - - - - -
icons
-
- - +e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,n){n(9).module("dbt").factory("locationService",["$state",function(e){var t={};return t.parseState=function(e){return function(e){return{selected:{include:e.g_i||"",exclude:e.g_e||""},show_graph:!!e.g_v}}(e)},t.setState=function(t){var n=function(e){var t={g_v:1};return t.g_i=e.include,t.g_e=e.exclude,t}(t),r=e.current.name;e.go(r,n)},t.clearState=function(){var t=e.current.name;e.go(t,{g_i:null,g_e:null,g_v:null})},t}])},function(e,t,n){"use strict";const r=n(9),i=n(202);r.module("dbt").controller("OverviewCtrl",["$scope","$state","project",function(e,t,n){e.overview_md="(loading)",n.ready((function(n){let r=t.params.project_name?t.params.project_name:null;var o=n.docs["doc.dbt.__overview__"],a=i.filter(n.docs,{name:"__overview__"});if(i.each(a,(function(e){"dbt"!=e.package_name&&(o=e)})),null!==r){o=n.docs[`doc.${r}.__${r}__`]||o;let e=i.filter(n.docs,{name:`__${r}__`});i.each(e,e=>{e.package_name!==r&&(o=e)})}e.overview_md=o.block_contents}))}])},function(e,t,n){"use strict";n(9).module("dbt").controller("SourceListCtrl",["$scope","$state","project",function(e,t,n){e.source=t.params.source,e.model={},e.extra_table_fields=[],e.has_more_info=function(e){return(e.description||"").length},e.toggle_source_expanded=function(t){e.has_more_info(t)&&(t.expanded=!t.expanded)},n.ready((function(t){var n=_.filter(t.nodes,(function(t){return t.source_name==e.source}));if(0!=n.length){n.sort((e,t)=>e.name.localeCompare(t.name));var r=n[0];e.model={name:e.source,source_description:r.source_description,sources:n};var i=_.uniq(_.map(n,"metadata.owner")),o=_.uniq(_.map(n,"database")),a=_.uniq(_.map(n,"schema"));e.extra_table_fields=[{name:"Loader",value:r.loader},{name:1==i.length?"Owner":"Owners",value:i.join(", ")},{name:1==o.length?"Database":"Databases",value:o.join(", ")},{name:1==a.length?"Schema":"Schemas",value:a.join(", ")},{name:"Tables",value:n.length}]}}))}])},function(e,t,n){const r=n(9),i={main:n(482),overview:n(483),graph:n(484),source:n(205),source_list:n(485),model:n(486),source:n(205),snapshot:n(487),seed:n(488),test:n(489),analysis:n(490),macro:n(491),exposure:n(492),metric:n(493),semantic_model:n(494),operation:n(495)};r.module("dbt").config(["$stateProvider","$urlRouterProvider",function(e,t){var n="g_v&g_i&g_e&g_p&g_n";t.otherwise("/overview"),e.state("dbt",{url:"/",abstract:!0,controller:"MainController",templateUrl:i.main}).state("dbt.overview",{url:"overview?"+n,controller:"OverviewCtrl",templateUrl:i.overview}).state("dbt.project_overview",{url:"overview/:project_name?"+n,controller:"OverviewCtrl",templateUrl:i.overview,params:{project_name:{type:"string"}}}).state("dbt.graph",{url:"graph",controller:"GraphCtrl",templateUrl:i.graph}).state("dbt.model",{url:"model/:unique_id?section&"+n,controller:"ModelCtrl",templateUrl:i.model,params:{unique_id:{type:"string"}}}).state("dbt.seed",{url:"seed/:unique_id?section&"+n,controller:"SeedCtrl",templateUrl:i.seed,params:{unique_id:{type:"string"}}}).state("dbt.snapshot",{url:"snapshot/:unique_id?section&"+n,controller:"SnapshotCtrl",templateUrl:i.snapshot,params:{unique_id:{type:"string"}}}).state("dbt.test",{url:"test/:unique_id?section&"+n,controller:"TestCtrl",templateUrl:i.test,params:{unique_id:{type:"string"}}}).state("dbt.analysis",{url:"analysis/:unique_id?section&"+n,controller:"AnalysisCtrl",templateUrl:i.analysis,params:{unique_id:{type:"string"}}}).state("dbt.source",{url:"source/:unique_id?section&"+n,controller:"SourceCtrl",templateUrl:i.source,params:{unique_id:{type:"string"}}}).state("dbt.source_list",{url:"source_list/:source?section&"+n,controller:"SourceListCtrl",templateUrl:i.source_list,params:{source:{type:"string"}}}).state("dbt.macro",{url:"macro/:unique_id?section",controller:"MacroCtrl",templateUrl:i.macro,params:{unique_id:{type:"string"}}}).state("dbt.exposure",{url:"exposure/:unique_id?section&"+n,controller:"ExposureCtrl",templateUrl:i.exposure,params:{unique_id:{type:"string"}}}).state("dbt.metric",{url:"metric/:unique_id?section&"+n,controller:"MetricCtrl",templateUrl:i.metric,params:{unique_id:{type:"string"}}}).state("dbt.semantic_model",{url:"semantic_model/:unique_id?section&"+n,controller:"SemanticModelCtrl",templateUrl:i.semantic_model,params:{unique_id:{type:"string"}}}).state("dbt.operation",{url:"operation/:unique_id?section&"+n,controller:"OperationCtrl",templateUrl:i.operation,params:{unique_id:{type:"string"}}})}])},function(e,t){var n="/main/main.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n\n
\n
\n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/overview/overview.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'
\n \n
\n
\n

\n
\n
\n
\n\n')}]),e.exports=n},function(e,t){var n="/graph/graph.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'
\n
\n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/sources/source_list.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n\n
\n
\n
\n
Source Tables
\n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
SourceTableDescriptionLinkMore?
\n
\n {{ source.source_name }}\n
\n
\n {{ source.name }}

\n
\n {{ source.description }}\n \n View docs\n \n \n \n \n \n \n \n \n \n
\n
\n
\n
Description
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/model.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Columns
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/snapshot.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Columns
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/seed.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n
\n
\n
\n
Columns
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/test.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/analysis.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/macro.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ macro.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Arguments
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/exposure.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ exposure.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/metric.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ metric.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/semantic_model.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ semantic_model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Entities
\n\n
\n
\n
\n
\n
Name
\n
{{ entity.name }}
\n
None
\n
Type
\n
{{ entity.type }}
\n
None
\n
Expression
\n
{{ entity.expr }}
\n
None
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/operation.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n}]); +//# sourceMappingURL=main.js.map diff --git a/docs/manifest.json b/docs/manifest.json index 04fc383..02865f7 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v7.json", "dbt_version": "1.3.1", "generated_at": "2023-01-04T16:46:18.864549Z", "invocation_id": "340f59cf-2c7e-4941-b6a5-64a6c4f72df7", "env": {}, "project_id": "fea94e465a9f3d6e8764c732c9d8b7e4", "user_id": "04ef9102-2501-40a3-b13a-1bda6014787a", "send_anonymous_usage_stats": true, "adapter_type": "snowflake"}, "nodes": {"model.polygon_models.bronze__blocks": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.polygon_models.prod.polygon_blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "bronze", "fqn": ["polygon_models", "bronze", "bronze__blocks"], "unique_id": "model.polygon_models.bronze__blocks", "raw_code": "{{ config (\n materialized = 'view'\n) }}\n\nSELECT\n record_id,\n offset_id,\n block_id,\n block_timestamp,\n network,\n chain_id,\n tx_count,\n header,\n ingested_at,\n _inserted_timestamp\nFROM\n {{ source(\n 'prod',\n 'polygon_blocks'\n ) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "bronze/bronze__blocks.sql", "original_file_path": "models/bronze/bronze__blocks.sql", "name": "bronze__blocks", "alias": "blocks", "checksum": {"name": "sha256", "checksum": "4e704da4e34acd908cae9faa8b9662c845d03f5b0de8fb4754aec86bb2551265"}, "tags": [], "refs": [], "sources": [["prod", "polygon_blocks"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/bronze/bronze__blocks.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view"}, "created_at": 1672849093.3456588, "compiled_code": "\n\nSELECT\n record_id,\n offset_id,\n block_id,\n block_timestamp,\n network,\n chain_id,\n tx_count,\n header,\n ingested_at,\n _inserted_timestamp\nFROM\n chainwalkers.prod.polygon_blocks", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.bronze.blocks"}, "model.polygon_models.bronze__transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.polygon_models.prod.polygon_txs"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "bronze", "fqn": ["polygon_models", "bronze", "bronze__transactions"], "unique_id": "model.polygon_models.bronze__transactions", "raw_code": "{{ config (\n materialized = 'view'\n) }}\n\nSELECT\n record_id,\n tx_id,\n tx_block_index,\n offset_id,\n block_id,\n block_timestamp,\n network,\n chain_id,\n tx,\n ingested_at,\n _inserted_timestamp\nFROM\n {{ source(\n 'prod',\n 'polygon_txs'\n ) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "bronze/bronze__transactions.sql", "original_file_path": "models/bronze/bronze__transactions.sql", "name": "bronze__transactions", "alias": "transactions", "checksum": {"name": "sha256", "checksum": "1697d27d55ed14668951a3839085da327857ec11a14265e9f18b6264b367d5ea"}, "tags": [], "refs": [], "sources": [["prod", "polygon_txs"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/bronze/bronze__transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view"}, "created_at": 1672849093.350595, "compiled_code": "\n\nSELECT\n record_id,\n tx_id,\n tx_block_index,\n offset_id,\n block_id,\n block_timestamp,\n network,\n chain_id,\n tx,\n ingested_at,\n _inserted_timestamp\nFROM\n chainwalkers.prod.polygon_txs", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.bronze.transactions"}, "model.polygon_models.bronze_api__contract_abis": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["source.polygon_models.crosschain_silver.apis_keys", "model.polygon_models.silver__relevant_abi_contracts"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "contract_address", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "bronze_api", "fqn": ["polygon_models", "bronze", "api_udf", "bronze_api__contract_abis"], "unique_id": "model.polygon_models.bronze_api__contract_abis", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = \"contract_address\",\n full_refresh = false\n) }}\n\nWITH api_keys AS (\n\n SELECT\n api_key\n FROM\n {{ source(\n 'crosschain_silver',\n 'apis_keys'\n ) }}\n WHERE\n api_name = 'polyscan'\n),\nbase AS (\n SELECT\n contract_address\n FROM\n {{ ref('silver__relevant_abi_contracts') }}\n\n{% if is_incremental() %}\nEXCEPT\nSELECT\n contract_address\nFROM\n {{ this }}\nWHERE\n abi_data :data :result :: STRING <> 'Max rate limit reached'\n{% endif %}\nLIMIT\n 100\n)\nSELECT\n contract_address,\n ethereum.streamline.udf_api(\n 'GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n contract_address,\n '&apikey=',\n api_key\n ),{},{}\n ) AS abi_data,\n SYSDATE() AS _inserted_timestamp\nFROM\n base\n LEFT JOIN api_keys\n ON 1 = 1\nWHERE\n EXISTS (\n SELECT\n 1\n FROM\n base\n LIMIT\n 1\n )", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "bronze/api_udf/bronze_api__contract_abis.sql", "original_file_path": "models/bronze/api_udf/bronze_api__contract_abis.sql", "name": "bronze_api__contract_abis", "alias": "contract_abis", "checksum": {"name": "sha256", "checksum": "0ae3dd65cce3598cc6623be6c571034a9716cd8d61c2c5c97ce077f17fd979e4"}, "tags": [], "refs": [["silver__relevant_abi_contracts"]], "sources": [["crosschain_silver", "apis_keys"]], "metrics": [], "description": "", "columns": {"_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/bronze/api_udf/bronze_api__contract_abis.yml", "compiled_path": "target/compiled/polygon_models/models/bronze/api_udf/bronze_api__contract_abis.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "unique_key": "contract_address", "full_refresh": false}, "created_at": 1672849093.643311, "compiled_code": "\n\nWITH api_keys AS (\n\n SELECT\n api_key\n FROM\n crosschain.silver.apis_keys\n WHERE\n api_name = 'polyscan'\n),\nbase AS (\n SELECT\n contract_address\n FROM\n POLYGON_DEV.silver.relevant_abi_contracts\n\n\nEXCEPT\nSELECT\n contract_address\nFROM\n POLYGON_DEV.bronze_api.contract_abis\nWHERE\n abi_data :data :result :: STRING <> 'Max rate limit reached'\n\nLIMIT\n 100\n)\nSELECT\n contract_address,\n ethereum.streamline.udf_api(\n 'GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n contract_address,\n '&apikey=',\n api_key\n ),{},{}\n ) AS abi_data,\n SYSDATE() AS _inserted_timestamp\nFROM\n base\n LEFT JOIN api_keys\n ON 1 = 1\nWHERE\n EXISTS (\n SELECT\n 1\n FROM\n base\n LIMIT\n 1\n )", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.bronze_api.contract_abis"}, "model.polygon_models.bronze_api__token_reads": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["source.polygon_models.streamline_crosschain.node_mapping", "model.polygon_models.silver__relevant_token_contracts"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "contract_address", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "bronze_api", "fqn": ["polygon_models", "bronze", "api_udf", "bronze_api__token_reads"], "unique_id": "model.polygon_models.bronze_api__token_reads", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = \"contract_address\",\n full_refresh = false\n) }}\n\nWITH base AS (\n\n SELECT\n contract_address,\n created_block\n FROM\n {{ ref('silver__relevant_token_contracts') }}\n\n{% if is_incremental() %}\nWHERE\n contract_address NOT IN (\n SELECT\n contract_address\n FROM\n {{ this }}\n )\n{% endif %}\nLIMIT\n 500\n), function_sigs AS (\n SELECT\n '0x313ce567' AS function_sig,\n 'decimals' AS function_name\n UNION\n SELECT\n '0x06fdde03',\n 'name'\n UNION\n SELECT\n '0x95d89b41',\n 'symbol'\n),\nall_reads AS (\n SELECT\n *\n FROM\n base\n JOIN function_sigs\n ON 1 = 1\n),\nready_reads AS (\n SELECT\n contract_address,\n created_block,\n function_sig,\n CONCAT(\n '[\\'',\n contract_address,\n '\\',',\n created_block,\n ',\\'',\n function_sig,\n '\\',\\'\\']'\n ) AS read_input\n FROM\n all_reads\n),\nbatch_reads AS (\n SELECT\n CONCAT('[', LISTAGG(read_input, ','), ']') AS batch_read\n FROM\n ready_reads\n),\nresults AS (\n SELECT\n ethereum.streamline.udf_json_rpc_read_calls(\n node_url,\n headers,\n PARSE_JSON(batch_read)\n ) AS read_output\n FROM\n batch_reads\n JOIN {{ source(\n 'streamline_crosschain',\n 'node_mapping'\n ) }}\n ON 1 = 1\n AND chain = 'polygon'\n WHERE\n EXISTS (\n SELECT\n 1\n FROM\n ready_reads\n LIMIT\n 1\n )\n), FINAL AS (\n SELECT\n VALUE :id :: STRING AS read_id,\n VALUE :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n read_id_object [0] :: STRING AS contract_address,\n read_id_object [1] :: STRING AS block_number,\n read_id_object [2] :: STRING AS function_sig,\n read_id_object [3] :: STRING AS function_input\n FROM\n results,\n LATERAL FLATTEN(\n input => read_output [0] :data\n )\n)\nSELECT\n contract_address,\n block_number,\n function_sig,\n function_input,\n read_result,\n SYSDATE() :: TIMESTAMP AS _inserted_timestamp\nFROM\n FINAL", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "bronze/api_udf/bronze_api__token_reads.sql", "original_file_path": "models/bronze/api_udf/bronze_api__token_reads.sql", "name": "bronze_api__token_reads", "alias": "token_reads", "checksum": {"name": "sha256", "checksum": "1eec990471be231bbcca0f5e91b3287d14ad9f7b52e67f575ee43d423c91089a"}, "tags": [], "refs": [["silver__relevant_token_contracts"]], "sources": [["streamline_crosschain", "node_mapping"]], "metrics": [], "description": "", "columns": {"_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/bronze/api_udf/bronze_api__token_reads.yml", "compiled_path": "target/compiled/polygon_models/models/bronze/api_udf/bronze_api__token_reads.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "unique_key": "contract_address", "full_refresh": false}, "created_at": 1672849093.6169658, "compiled_code": "\n\nWITH base AS (\n\n SELECT\n contract_address,\n created_block\n FROM\n POLYGON_DEV.silver.relevant_token_contracts\n\n\nWHERE\n contract_address NOT IN (\n SELECT\n contract_address\n FROM\n POLYGON_DEV.bronze_api.token_reads\n )\n\nLIMIT\n 500\n), function_sigs AS (\n SELECT\n '0x313ce567' AS function_sig,\n 'decimals' AS function_name\n UNION\n SELECT\n '0x06fdde03',\n 'name'\n UNION\n SELECT\n '0x95d89b41',\n 'symbol'\n),\nall_reads AS (\n SELECT\n *\n FROM\n base\n JOIN function_sigs\n ON 1 = 1\n),\nready_reads AS (\n SELECT\n contract_address,\n created_block,\n function_sig,\n CONCAT(\n '[\\'',\n contract_address,\n '\\',',\n created_block,\n ',\\'',\n function_sig,\n '\\',\\'\\']'\n ) AS read_input\n FROM\n all_reads\n),\nbatch_reads AS (\n SELECT\n CONCAT('[', LISTAGG(read_input, ','), ']') AS batch_read\n FROM\n ready_reads\n),\nresults AS (\n SELECT\n ethereum.streamline.udf_json_rpc_read_calls(\n node_url,\n headers,\n PARSE_JSON(batch_read)\n ) AS read_output\n FROM\n batch_reads\n JOIN streamline.crosschain.node_mapping\n ON 1 = 1\n AND chain = 'polygon'\n WHERE\n EXISTS (\n SELECT\n 1\n FROM\n ready_reads\n LIMIT\n 1\n )\n), FINAL AS (\n SELECT\n VALUE :id :: STRING AS read_id,\n VALUE :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n read_id_object [0] :: STRING AS contract_address,\n read_id_object [1] :: STRING AS block_number,\n read_id_object [2] :: STRING AS function_sig,\n read_id_object [3] :: STRING AS function_input\n FROM\n results,\n LATERAL FLATTEN(\n input => read_output [0] :data\n )\n)\nSELECT\n contract_address,\n block_number,\n function_sig,\n function_input,\n read_result,\n SYSDATE() :: TIMESTAMP AS _inserted_timestamp\nFROM\n FINAL", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.bronze_api.token_reads"}, "model.polygon_models.silver__contract_abis": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.polygon_models.bronze_api__contract_abis"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "contract_address", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "cluster_by": "_inserted_timestamp::date", "merge_update_columns": ["contract_address"], "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "silver", "fqn": ["polygon_models", "silver", "silver__contract_abis"], "unique_id": "model.polygon_models.silver__contract_abis", "raw_code": "{{ config (\n materialized = \"incremental\",\n unique_key = \"contract_address\",\n cluster_by = \"_inserted_timestamp::date\",\n merge_update_columns = [\"contract_address\"]\n) }}\n\nWITH base AS (\n\n SELECT\n contract_address,\n abi_data AS full_data,\n abi_data :data :result AS abi,\n _inserted_timestamp\n FROM\n {{ ref('bronze_api__contract_abis') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n)\nSELECT\n contract_address,\n full_data,\n abi,\n _inserted_timestamp\nFROM\n base\nWHERE\n abi :: STRING <> 'Contract source code not verified' qualify(ROW_NUMBER() over(PARTITION BY contract_address\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "silver/silver__contract_abis.sql", "original_file_path": "models/silver/silver__contract_abis.sql", "name": "silver__contract_abis", "alias": "contract_abis", "checksum": {"name": "sha256", "checksum": "9484c6f07e09490d6ccf471894818559a139a448d4c72e75c7a4eec03d259951"}, "tags": [], "refs": [["bronze_api__contract_abis"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/silver__contract_abis.yml", "compiled_path": "target/compiled/polygon_models/models/silver/silver__contract_abis.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "unique_key": "contract_address", "cluster_by": "_inserted_timestamp::date", "merge_update_columns": ["contract_address"]}, "created_at": 1672849093.780334, "compiled_code": "\n\nWITH base AS (\n\n SELECT\n contract_address,\n abi_data AS full_data,\n abi_data :data :result AS abi,\n _inserted_timestamp\n FROM\n POLYGON_DEV.bronze_api.contract_abis\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n POLYGON_DEV.silver.contract_abis\n )\n\n)\nSELECT\n contract_address,\n full_data,\n abi,\n _inserted_timestamp\nFROM\n base\nWHERE\n abi :: STRING <> 'Contract source code not verified' qualify(ROW_NUMBER() over(PARTITION BY contract_address\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.silver.contract_abis"}, "model.polygon_models.silver__transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.polygon_models.bronze__transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "tx_hash", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "cluster_by": ["block_timestamp::DATE"], "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(tx_hash)", "transaction": true, "index": null}], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "silver", "fqn": ["polygon_models", "silver", "silver__transactions"], "unique_id": "model.polygon_models.silver__transactions", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = \"tx_hash\",\n cluster_by = ['block_timestamp::DATE'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(tx_hash)\"\n) }}\n\nWITH base_table AS (\n\n SELECT\n block_timestamp,\n block_id :: INTEGER AS block_number,\n tx_id :: STRING AS tx_hash,\n udf_hex_to_int(\n tx :nonce :: STRING\n ) :: INTEGER AS nonce,\n tx_block_index :: INTEGER AS POSITION,\n tx :from :: STRING AS from_address,\n tx :to :: STRING AS to_address,\n (\n udf_hex_to_int(\n tx :value :: STRING\n ) / pow(\n 10,\n 18\n )\n ) :: INTEGER AS matic_value,\n tx :blockHash :: STRING AS block_hash,\n (\n udf_hex_to_int(\n tx :gasPrice :: STRING\n ) / pow(\n 10,\n 9\n )\n ) :: FLOAT AS gas_price,\n udf_hex_to_int(\n tx :gas :: STRING\n ) :: INTEGER AS gas_limit,\n tx :input :: STRING AS DATA,\n CASE\n WHEN tx :receipt :status :: STRING = '0x1' THEN 'SUCCESS'\n ELSE 'FAIL'\n END AS status,\n udf_hex_to_int(\n tx :receipt :gasUsed :: STRING\n ) :: INTEGER AS gas_used,\n udf_hex_to_int(\n tx :receipt :cumulativeGasUsed :: STRING\n ) :: INTEGER AS cumulative_Gas_Used,\n udf_hex_to_int(\n tx :receipt :effectiveGasPrice :: STRING\n ) :: INTEGER AS effective_Gas_Price,\n (\n gas_price * gas_used\n ) / pow(\n 10,\n 9\n ) AS tx_fee,\n ingested_at :: TIMESTAMP AS ingested_at,\n OBJECT_DELETE(\n tx,\n 'traces'\n ) AS tx_json,\n _inserted_timestamp :: TIMESTAMP AS _inserted_timestamp\n FROM\n {{ ref('bronze__transactions') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n)\nSELECT\n block_timestamp,\n block_number,\n tx_hash,\n nonce,\n POSITION,\n SUBSTR(\n DATA,\n 1,\n 10\n ) AS origin_function_signature,\n from_address,\n to_address,\n matic_value,\n block_hash,\n gas_price,\n gas_limit,\n DATA AS input_data,\n status,\n gas_used,\n cumulative_Gas_Used,\n effective_Gas_Price,\n tx_fee,\n ingested_at,\n _inserted_timestamp,\n tx_json\nFROM\n base_table qualify(ROW_NUMBER() over(PARTITION BY tx_hash\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "silver/silver__transactions.sql", "original_file_path": "models/silver/silver__transactions.sql", "name": "silver__transactions", "alias": "transactions", "checksum": {"name": "sha256", "checksum": "4cc9c370e9ed1ecb985b3c49581a5d029b0be87f24d0cf8bbd8dbcda421bb001"}, "tags": [], "refs": [["bronze__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "NONCE": {"name": "NONCE", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "POSITION": {"name": "POSITION", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MATIC_VALUE": {"name": "MATIC_VALUE", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_HASH": {"name": "BLOCK_HASH", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_PRICE": {"name": "GAS_PRICE", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_LIMIT": {"name": "GAS_LIMIT", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "INPUT_DATA": {"name": "INPUT_DATA", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "STATUS": {"name": "STATUS", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CUMULATIVE_GAS_USED": {"name": "CUMULATIVE_GAS_USED", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_FEE": {"name": "TX_FEE", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "EFFECTIVE_GAS_PRICE": {"name": "EFFECTIVE_GAS_PRICE", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_JSON": {"name": "TX_JSON", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "INGESTED_AT": {"name": "INGESTED_AT", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/silver__transactions.yml", "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "unique_key": "tx_hash", "cluster_by": ["block_timestamp::DATE"], "post-hook": ["ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(tx_hash)"]}, "created_at": 1672849093.786036, "compiled_code": "\n\nWITH base_table AS (\n\n SELECT\n block_timestamp,\n block_id :: INTEGER AS block_number,\n tx_id :: STRING AS tx_hash,\n udf_hex_to_int(\n tx :nonce :: STRING\n ) :: INTEGER AS nonce,\n tx_block_index :: INTEGER AS POSITION,\n tx :from :: STRING AS from_address,\n tx :to :: STRING AS to_address,\n (\n udf_hex_to_int(\n tx :value :: STRING\n ) / pow(\n 10,\n 18\n )\n ) :: INTEGER AS matic_value,\n tx :blockHash :: STRING AS block_hash,\n (\n udf_hex_to_int(\n tx :gasPrice :: STRING\n ) / pow(\n 10,\n 9\n )\n ) :: FLOAT AS gas_price,\n udf_hex_to_int(\n tx :gas :: STRING\n ) :: INTEGER AS gas_limit,\n tx :input :: STRING AS DATA,\n CASE\n WHEN tx :receipt :status :: STRING = '0x1' THEN 'SUCCESS'\n ELSE 'FAIL'\n END AS status,\n udf_hex_to_int(\n tx :receipt :gasUsed :: STRING\n ) :: INTEGER AS gas_used,\n udf_hex_to_int(\n tx :receipt :cumulativeGasUsed :: STRING\n ) :: INTEGER AS cumulative_Gas_Used,\n udf_hex_to_int(\n tx :receipt :effectiveGasPrice :: STRING\n ) :: INTEGER AS effective_Gas_Price,\n (\n gas_price * gas_used\n ) / pow(\n 10,\n 9\n ) AS tx_fee,\n ingested_at :: TIMESTAMP AS ingested_at,\n OBJECT_DELETE(\n tx,\n 'traces'\n ) AS tx_json,\n _inserted_timestamp :: TIMESTAMP AS _inserted_timestamp\n FROM\n POLYGON_DEV.bronze.transactions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n POLYGON_DEV.silver.transactions\n )\n\n)\nSELECT\n block_timestamp,\n block_number,\n tx_hash,\n nonce,\n POSITION,\n SUBSTR(\n DATA,\n 1,\n 10\n ) AS origin_function_signature,\n from_address,\n to_address,\n matic_value,\n block_hash,\n gas_price,\n gas_limit,\n DATA AS input_data,\n status,\n gas_used,\n cumulative_Gas_Used,\n effective_Gas_Price,\n tx_fee,\n ingested_at,\n _inserted_timestamp,\n tx_json\nFROM\n base_table qualify(ROW_NUMBER() over(PARTITION BY tx_hash\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.silver.transactions"}, "model.polygon_models.silver__transfers": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "_log_id", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "cluster_by": ["_inserted_timestamp::DATE"], "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "silver", "fqn": ["polygon_models", "silver", "silver__transfers"], "unique_id": "model.polygon_models.silver__transfers", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = '_log_id',\n cluster_by = ['_inserted_timestamp::DATE']\n) }}\n\nWITH logs AS (\n\n SELECT\n _log_id,\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_name,\n event_index,\n event_inputs,\n topics,\n DATA,\n _inserted_timestamp :: TIMESTAMP AS _inserted_timestamp\n FROM\n {{ ref('silver__logs') }}\n WHERE\n tx_status = 'SUCCESS'\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n {{ this }}\n)\n{% endif %}\n),\ntransfers AS (\n SELECT\n _log_id,\n block_number,\n tx_hash,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address :: STRING AS contract_address,\n event_inputs :from :: STRING AS from_address,\n event_inputs :to :: STRING AS to_address,\n event_inputs :value :: FLOAT AS raw_amount,\n event_index,\n _inserted_timestamp\n FROM\n logs\n WHERE\n event_name = 'Transfer'\n AND raw_amount IS NOT NULL\n),\nfind_missing_events AS (\n SELECT\n _log_id,\n block_number,\n tx_hash,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address :: STRING AS contract_address,\n CONCAT('0x', SUBSTR(topics [1], 27, 40)) :: STRING AS from_address,\n CONCAT('0x', SUBSTR(topics [2], 27, 40)) :: STRING AS to_address,\n COALESCE(udf_hex_to_int(topics [3] :: STRING), udf_hex_to_int(SUBSTR(DATA, 3, 64))) :: FLOAT AS raw_amount,\n event_index,\n _inserted_timestamp\n FROM\n logs\n WHERE\n event_name IS NULL\n AND contract_address IN (\n SELECT\n DISTINCT contract_address\n FROM\n transfers\n )\n AND topics [0] :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n),\nall_transfers AS (\n SELECT\n _log_id,\n tx_hash,\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n raw_amount,\n event_index,\n _inserted_timestamp\n FROM\n transfers\n UNION ALL\n SELECT\n _log_id,\n tx_hash,\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n raw_amount,\n event_index,\n _inserted_timestamp\n FROM\n find_missing_events\n)\nSELECT\n _log_id,\n block_number,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n block_timestamp,\n contract_address,\n from_address,\n to_address,\n raw_amount,\n _inserted_timestamp,\n event_index\nFROM\n all_transfers qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "silver/silver__transfers.sql", "original_file_path": "models/silver/silver__transfers.sql", "name": "silver__transfers", "alias": "transfers", "checksum": {"name": "sha256", "checksum": "ebb19e0e4d16302c860a1b86a7ebca6e2cb9288a403461dbbd476b95c52f736c"}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RAW_AMOUNT": {"name": "RAW_AMOUNT", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_LOG_ID": {"name": "_LOG_ID", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/silver__transfers.yml", "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "unique_key": "_log_id", "cluster_by": ["_inserted_timestamp::DATE"]}, "created_at": 1672849093.843779, "compiled_code": "\n\nWITH logs AS (\n\n SELECT\n _log_id,\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_name,\n event_index,\n event_inputs,\n topics,\n DATA,\n _inserted_timestamp :: TIMESTAMP AS _inserted_timestamp\n FROM\n POLYGON_DEV.silver.logs\n WHERE\n tx_status = 'SUCCESS'\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n POLYGON_DEV.silver.transfers\n)\n\n),\ntransfers AS (\n SELECT\n _log_id,\n block_number,\n tx_hash,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address :: STRING AS contract_address,\n event_inputs :from :: STRING AS from_address,\n event_inputs :to :: STRING AS to_address,\n event_inputs :value :: FLOAT AS raw_amount,\n event_index,\n _inserted_timestamp\n FROM\n logs\n WHERE\n event_name = 'Transfer'\n AND raw_amount IS NOT NULL\n),\nfind_missing_events AS (\n SELECT\n _log_id,\n block_number,\n tx_hash,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address :: STRING AS contract_address,\n CONCAT('0x', SUBSTR(topics [1], 27, 40)) :: STRING AS from_address,\n CONCAT('0x', SUBSTR(topics [2], 27, 40)) :: STRING AS to_address,\n COALESCE(udf_hex_to_int(topics [3] :: STRING), udf_hex_to_int(SUBSTR(DATA, 3, 64))) :: FLOAT AS raw_amount,\n event_index,\n _inserted_timestamp\n FROM\n logs\n WHERE\n event_name IS NULL\n AND contract_address IN (\n SELECT\n DISTINCT contract_address\n FROM\n transfers\n )\n AND topics [0] :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n),\nall_transfers AS (\n SELECT\n _log_id,\n tx_hash,\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n raw_amount,\n event_index,\n _inserted_timestamp\n FROM\n transfers\n UNION ALL\n SELECT\n _log_id,\n tx_hash,\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n raw_amount,\n event_index,\n _inserted_timestamp\n FROM\n find_missing_events\n)\nSELECT\n _log_id,\n block_number,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n block_timestamp,\n contract_address,\n from_address,\n to_address,\n raw_amount,\n _inserted_timestamp,\n event_index\nFROM\n all_transfers qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.silver.transfers"}, "model.polygon_models.silver__logs": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.polygon_models.bronze__transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "_log_id", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "cluster_by": ["block_timestamp::DATE"], "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(tx_hash, contract_address)", "transaction": true, "index": null}], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "silver", "fqn": ["polygon_models", "silver", "silver__logs"], "unique_id": "model.polygon_models.silver__logs", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = \"_log_id\",\n cluster_by = ['block_timestamp::DATE'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(tx_hash, contract_address)\"\n) }}\n\nWITH base_txs AS (\n\n SELECT\n record_id,\n tx_id,\n tx_block_index,\n offset_id,\n block_id,\n block_timestamp,\n network,\n chain_id,\n tx,\n ingested_at,\n _inserted_timestamp\n FROM\n {{ ref('bronze__transactions') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n),\nlogs_raw AS (\n SELECT\n block_id,\n block_timestamp,\n tx_id AS tx_hash,\n tx :receipt :logs AS full_logs,\n ingested_at :: TIMESTAMP AS ingested_at,\n _inserted_timestamp :: TIMESTAMP AS _inserted_timestamp,\n CASE\n WHEN tx :receipt :status :: STRING = '0x1' THEN 'SUCCESS'\n ELSE 'FAIL'\n END AS tx_status,\n SUBSTR(\n tx :input :: STRING,\n 1,\n 10\n ) AS origin_function_signature,\n tx :from :: STRING AS origin_from_address,\n tx :to :: STRING AS origin_to_address\n FROM\n base_txs\n),\nlogs AS (\n SELECT\n block_id,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_status,\n ingested_at,\n _inserted_timestamp,\n udf_hex_to_int(\n VALUE :logIndex :: STRING\n ) :: INTEGER AS event_index,\n VALUE :address :: STRING AS contract_address,\n VALUE :decoded :contractName :: STRING AS contract_name,\n VALUE :decoded :eventName :: STRING AS event_name,\n VALUE :decoded :inputs :: OBJECT AS event_inputs,\n VALUE :topics AS topics,\n VALUE :data :: STRING AS DATA,\n VALUE :removed :: STRING AS event_removed\n FROM\n logs_raw,\n LATERAL FLATTEN (\n input => full_logs\n )\n)\nSELECT\n concat_ws(\n '-',\n tx_hash,\n event_index\n ) AS _log_id,\n block_id AS block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n ingested_at,\n event_index,\n contract_address,\n contract_name,\n event_name,\n event_inputs,\n topics,\n DATA,\n event_removed,\n tx_status,\n _inserted_timestamp\nFROM\n logs qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "silver/silver__logs.sql", "original_file_path": "models/silver/silver__logs.sql", "name": "silver__logs", "alias": "logs", "checksum": {"name": "sha256", "checksum": "8be5ccdf30389e185397fdc44e5a8ae0fa3229116b16251953f29ea556dd1720"}, "tags": [], "refs": [["bronze__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "EVENT_INPUTS": {"name": "EVENT_INPUTS", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TOPICS": {"name": "TOPICS", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DATA": {"name": "DATA", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "EVENT_REMOVED": {"name": "EVENT_REMOVED", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_LOG_ID": {"name": "_LOG_ID", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/silver__logs.yml", "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "unique_key": "_log_id", "cluster_by": ["block_timestamp::DATE"], "post-hook": ["ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(tx_hash, contract_address)"]}, "created_at": 1672849093.662091, "compiled_code": "\n\nWITH base_txs AS (\n\n SELECT\n record_id,\n tx_id,\n tx_block_index,\n offset_id,\n block_id,\n block_timestamp,\n network,\n chain_id,\n tx,\n ingested_at,\n _inserted_timestamp\n FROM\n POLYGON_DEV.bronze.transactions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n POLYGON_DEV.silver.logs\n )\n\n),\nlogs_raw AS (\n SELECT\n block_id,\n block_timestamp,\n tx_id AS tx_hash,\n tx :receipt :logs AS full_logs,\n ingested_at :: TIMESTAMP AS ingested_at,\n _inserted_timestamp :: TIMESTAMP AS _inserted_timestamp,\n CASE\n WHEN tx :receipt :status :: STRING = '0x1' THEN 'SUCCESS'\n ELSE 'FAIL'\n END AS tx_status,\n SUBSTR(\n tx :input :: STRING,\n 1,\n 10\n ) AS origin_function_signature,\n tx :from :: STRING AS origin_from_address,\n tx :to :: STRING AS origin_to_address\n FROM\n base_txs\n),\nlogs AS (\n SELECT\n block_id,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_status,\n ingested_at,\n _inserted_timestamp,\n udf_hex_to_int(\n VALUE :logIndex :: STRING\n ) :: INTEGER AS event_index,\n VALUE :address :: STRING AS contract_address,\n VALUE :decoded :contractName :: STRING AS contract_name,\n VALUE :decoded :eventName :: STRING AS event_name,\n VALUE :decoded :inputs :: OBJECT AS event_inputs,\n VALUE :topics AS topics,\n VALUE :data :: STRING AS DATA,\n VALUE :removed :: STRING AS event_removed\n FROM\n logs_raw,\n LATERAL FLATTEN (\n input => full_logs\n )\n)\nSELECT\n concat_ws(\n '-',\n tx_hash,\n event_index\n ) AS _log_id,\n block_id AS block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n ingested_at,\n event_index,\n contract_address,\n contract_name,\n event_name,\n event_inputs,\n topics,\n DATA,\n event_removed,\n tx_status,\n _inserted_timestamp\nFROM\n logs qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.silver.logs"}, "model.polygon_models.silver__blocks": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.polygon_models.bronze__blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "cluster_by": ["block_timestamp::DATE"], "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "silver", "fqn": ["polygon_models", "silver", "silver__blocks"], "unique_id": "model.polygon_models.silver__blocks", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE']\n) }}\n\nWITH base_tables AS (\n\n SELECT\n record_id,\n offset_id,\n block_id,\n block_timestamp,\n network,\n chain_id,\n tx_count,\n header,\n ingested_at,\n _inserted_timestamp\n FROM\n {{ ref('bronze__blocks') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n)\nSELECT\n block_id :: INTEGER AS block_number,\n block_timestamp :: TIMESTAMP AS block_timestamp,\n network :: STRING AS network,\n chain_id :: STRING AS blockchain,\n tx_count :: INTEGER AS tx_count,\n udf_hex_to_int(\n header :difficulty :: STRING\n ) :: INTEGER AS difficulty,\n udf_hex_to_int(\n header :totalDifficulty :: STRING\n ) :: INTEGER AS total_difficulty,\n header: extraData :: STRING AS extra_data,\n udf_hex_to_int(\n header :gasLimit :: STRING\n ) :: INTEGER AS gas_limit,\n udf_hex_to_int(\n header :gasUsed :: STRING\n ) :: INTEGER AS gas_used,\n header: \"hash\" :: STRING AS HASH,\n header: parentHash :: STRING AS parent_hash,\n header: miner :: STRING AS miner,\n header: nonce :: STRING AS nonce,\n header: receiptsRoot :: STRING AS receipts_root,\n header: sha3Uncles :: STRING AS sha3_uncles,\n udf_hex_to_int(\n header: \"size\" :: STRING\n ) :: INTEGER AS SIZE,\n CASE\n WHEN header: uncles [1] :: STRING IS NOT NULL THEN CONCAT(\n header: uncles [0] :: STRING,\n ', ',\n header: uncles [1] :: STRING\n )\n ELSE header: uncles [0] :: STRING\n END AS uncle_blocks,\n ingested_at :: TIMESTAMP AS ingested_at,\n header :: OBJECT AS block_header_json,\n _inserted_timestamp :: TIMESTAMP AS _inserted_timestamp\nFROM\n base_tables qualify(ROW_NUMBER() over(PARTITION BY block_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "silver/silver__blocks.sql", "original_file_path": "models/silver/silver__blocks.sql", "name": "silver__blocks", "alias": "blocks", "checksum": {"name": "sha256", "checksum": "66d9683fd095cca48fc3c6fc35fd8abdc0545a8f92e9885f0b2ab6845396cda0"}, "tags": [], "refs": [["bronze__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "NETWORK": {"name": "NETWORK", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_COUNT": {"name": "TX_COUNT", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DIFFICULTY": {"name": "DIFFICULTY", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TOTAL_DIFFICULTY": {"name": "TOTAL_DIFFICULTY", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "EXTRA_DATA": {"name": "EXTRA_DATA", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_LIMIT": {"name": "GAS_LIMIT", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "HASH": {"name": "HASH", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PARENT_HASH": {"name": "PARENT_HASH", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MINER": {"name": "MINER", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "NONCE": {"name": "NONCE", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RECEIPTS_ROOT": {"name": "RECEIPTS_ROOT", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SHA3_UNCLES": {"name": "SHA3_UNCLES", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SIZE": {"name": "SIZE", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_HEADER_JSON": {"name": "BLOCK_HEADER_JSON", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/silver__blocks.yml", "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"]}, "created_at": 1672849093.72528, "compiled_code": "\n\nWITH base_tables AS (\n\n SELECT\n record_id,\n offset_id,\n block_id,\n block_timestamp,\n network,\n chain_id,\n tx_count,\n header,\n ingested_at,\n _inserted_timestamp\n FROM\n POLYGON_DEV.bronze.blocks\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n POLYGON_DEV.silver.blocks\n )\n\n)\nSELECT\n block_id :: INTEGER AS block_number,\n block_timestamp :: TIMESTAMP AS block_timestamp,\n network :: STRING AS network,\n chain_id :: STRING AS blockchain,\n tx_count :: INTEGER AS tx_count,\n udf_hex_to_int(\n header :difficulty :: STRING\n ) :: INTEGER AS difficulty,\n udf_hex_to_int(\n header :totalDifficulty :: STRING\n ) :: INTEGER AS total_difficulty,\n header: extraData :: STRING AS extra_data,\n udf_hex_to_int(\n header :gasLimit :: STRING\n ) :: INTEGER AS gas_limit,\n udf_hex_to_int(\n header :gasUsed :: STRING\n ) :: INTEGER AS gas_used,\n header: \"hash\" :: STRING AS HASH,\n header: parentHash :: STRING AS parent_hash,\n header: miner :: STRING AS miner,\n header: nonce :: STRING AS nonce,\n header: receiptsRoot :: STRING AS receipts_root,\n header: sha3Uncles :: STRING AS sha3_uncles,\n udf_hex_to_int(\n header: \"size\" :: STRING\n ) :: INTEGER AS SIZE,\n CASE\n WHEN header: uncles [1] :: STRING IS NOT NULL THEN CONCAT(\n header: uncles [0] :: STRING,\n ', ',\n header: uncles [1] :: STRING\n )\n ELSE header: uncles [0] :: STRING\n END AS uncle_blocks,\n ingested_at :: TIMESTAMP AS ingested_at,\n header :: OBJECT AS block_header_json,\n _inserted_timestamp :: TIMESTAMP AS _inserted_timestamp\nFROM\n base_tables qualify(ROW_NUMBER() over(PARTITION BY block_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.silver.blocks"}, "model.polygon_models.silver__traces": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.polygon_models.bronze__blocks", "model.polygon_models.bronze__transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "_call_id", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "cluster_by": ["block_timestamp::DATE"], "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(tx_hash)", "transaction": true, "index": null}], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "silver", "fqn": ["polygon_models", "silver", "silver__traces"], "unique_id": "model.polygon_models.silver__traces", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = '_call_id',\n cluster_by = ['block_timestamp::DATE'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(tx_hash)\"\n) }}\n\nWITH new_blocks AS (\n\n SELECT\n block_id\n FROM\n {{ ref('bronze__blocks') }}\n WHERE\n tx_count > 0\n\n{% if is_incremental() %}\nAND block_id NOT IN (\n SELECT\n DISTINCT block_number\n FROM\n {{ this }}\n)\n{% endif %}\nORDER BY\n _inserted_timestamp DESC\nLIMIT\n 500000\n), traces_txs AS (\n SELECT\n *\n FROM\n {{ ref('bronze__transactions') }}\n WHERE\n block_id IN (\n SELECT\n block_id\n FROM\n new_blocks\n ) qualify(ROW_NUMBER() over(PARTITION BY tx_id\n ORDER BY\n _inserted_timestamp DESC)) = 1\n),\nbase_table AS (\n SELECT\n CASE\n WHEN POSITION(\n '.',\n path :: STRING\n ) > 0 THEN REPLACE(\n REPLACE(\n path :: STRING,\n SUBSTR(path :: STRING, len(path :: STRING) - POSITION('.', REVERSE(path :: STRING)) + 1, POSITION('.', REVERSE(path :: STRING))),\n ''\n ),\n '.',\n '__'\n )\n ELSE '__'\n END AS id,\n OBJECT_AGG(\n DISTINCT key,\n VALUE\n ) AS DATA,\n txs.tx_id AS tx_hash,\n txs.block_id AS block_number,\n txs.block_timestamp AS block_timestamp,\n CASE\n WHEN txs.tx :receipt :status :: STRING = '0x1' THEN 'SUCCESS'\n ELSE 'FAIL'\n END AS tx_status,\n txs.ingested_at AS ingested_at,\n txs._inserted_timestamp AS _inserted_timestamp\n FROM\n traces_txs txs,\n TABLE(\n FLATTEN(\n input => PARSE_JSON(\n txs.tx :traces\n ),\n recursive => TRUE\n )\n ) f\n WHERE\n f.index IS NULL\n AND f.key != 'calls'\n GROUP BY\n tx_hash,\n id,\n block_number,\n block_timestamp,\n ingested_at,\n _inserted_timestamp,\n tx_status\n),\nflattened_traces AS (\n SELECT\n DATA :from :: STRING AS from_address,\n udf_hex_to_int(\n DATA :gas :: STRING\n ) AS gas,\n udf_hex_to_int(\n DATA :gasUsed :: STRING\n ) AS gas_used,\n DATA :input :: STRING AS input,\n DATA :output :: STRING AS output,\n DATA :time :: STRING AS TIME,\n DATA :to :: STRING AS to_address,\n DATA :type :: STRING AS TYPE,\n CASE\n WHEN DATA :type :: STRING = 'CALL' THEN udf_hex_to_int(\n DATA :value :: STRING\n ) / pow(\n 10,\n 18\n )\n ELSE 0\n END AS matic_value,\n CASE\n WHEN id = '__' THEN CONCAT(\n DATA :type :: STRING,\n '_ORIGIN'\n )\n ELSE CONCAT(\n DATA :type :: STRING,\n '_',\n REPLACE(\n REPLACE(REPLACE(REPLACE(id, 'calls', ''), '[', ''), ']', ''),\n '__',\n '_'\n )\n )\n END AS identifier,\n concat_ws(\n '-',\n tx_hash,\n identifier\n ) AS _call_id,\n SPLIT(\n identifier,\n '_'\n ) AS id_split,\n ARRAY_SLICE(id_split, 1, ARRAY_SIZE(id_split)) AS levels,\n ARRAY_TO_STRING(\n levels,\n '_'\n ) AS LEVEL,\n CASE\n WHEN ARRAY_SIZE(levels) = 1\n AND levels [0] :: STRING = 'ORIGIN' THEN NULL\n WHEN ARRAY_SIZE(levels) = 1 THEN 'ORIGIN'\n ELSE ARRAY_TO_STRING(ARRAY_SLICE(levels, 0, ARRAY_SIZE(levels) -1), '_')END AS parent_level,\n COUNT(parent_level) over (\n PARTITION BY tx_hash,\n parent_level\n ) AS sub_traces,*\n FROM\n base_table\n ),\n group_sub_traces AS (\n SELECT\n tx_hash,\n parent_level,\n sub_traces\n FROM\n flattened_traces\n GROUP BY\n tx_hash,\n parent_level,\n sub_traces\n ),\n FINAL AS (\n SELECT\n flattened_traces.tx_hash AS tx_hash,\n flattened_traces.block_number AS block_number,\n flattened_traces.block_timestamp AS block_timestamp,\n flattened_traces.from_address AS from_address,\n flattened_traces.to_address AS to_address,\n flattened_traces.matic_value AS matic_value,\n flattened_traces.gas AS gas,\n flattened_traces.gas_used AS gas_used,\n flattened_traces.input AS input,\n flattened_traces.output AS output,\n flattened_traces.type AS TYPE,\n flattened_traces.identifier AS identifier,\n flattened_traces._call_id AS _call_id,\n flattened_traces.ingested_at AS ingested_at,\n flattened_traces.data AS DATA,\n flattened_traces.tx_status AS tx_status,\n group_sub_traces.sub_traces AS sub_traces,\n flattened_traces._inserted_timestamp AS _inserted_timestamp\n FROM\n flattened_traces\n LEFT OUTER JOIN group_sub_traces\n ON flattened_traces.tx_hash = group_sub_traces.tx_hash\n AND flattened_traces.level = group_sub_traces.parent_level\n )\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n from_address,\n to_address,\n matic_value,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n identifier,\n _call_id,\n ingested_at,\n _inserted_timestamp,\n DATA,\n tx_status,\n sub_traces\n FROM\n FINAL\n WHERE\n identifier IS NOT NULL qualify(ROW_NUMBER() over(PARTITION BY _call_id\n ORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "silver/silver__traces.sql", "original_file_path": "models/silver/silver__traces.sql", "name": "silver__traces", "alias": "traces", "checksum": {"name": "sha256", "checksum": "677ad93849a9e6f4ce0b5c2704c82ab1b39f918e923439f2cf3cd5981434d4fc"}, "tags": [], "refs": [["bronze__blocks"], ["bronze__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "IDENTIFIER": {"name": "IDENTIFIER", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MATIC_VALUE": {"name": "MATIC_VALUE", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS": {"name": "GAS", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/silver__traces.yml", "compiled_path": "target/compiled/polygon_models/models/silver/silver__traces.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "unique_key": "_call_id", "cluster_by": ["block_timestamp::DATE"], "post-hook": ["ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(tx_hash)"]}, "created_at": 1672849093.700117, "compiled_code": "\n\nWITH new_blocks AS (\n\n SELECT\n block_id\n FROM\n POLYGON_DEV.bronze.blocks\n WHERE\n tx_count > 0\n\n\nAND block_id NOT IN (\n SELECT\n DISTINCT block_number\n FROM\n POLYGON_DEV.silver.traces\n)\n\nORDER BY\n _inserted_timestamp DESC\nLIMIT\n 500000\n), traces_txs AS (\n SELECT\n *\n FROM\n POLYGON_DEV.bronze.transactions\n WHERE\n block_id IN (\n SELECT\n block_id\n FROM\n new_blocks\n ) qualify(ROW_NUMBER() over(PARTITION BY tx_id\n ORDER BY\n _inserted_timestamp DESC)) = 1\n),\nbase_table AS (\n SELECT\n CASE\n WHEN POSITION(\n '.',\n path :: STRING\n ) > 0 THEN REPLACE(\n REPLACE(\n path :: STRING,\n SUBSTR(path :: STRING, len(path :: STRING) - POSITION('.', REVERSE(path :: STRING)) + 1, POSITION('.', REVERSE(path :: STRING))),\n ''\n ),\n '.',\n '__'\n )\n ELSE '__'\n END AS id,\n OBJECT_AGG(\n DISTINCT key,\n VALUE\n ) AS DATA,\n txs.tx_id AS tx_hash,\n txs.block_id AS block_number,\n txs.block_timestamp AS block_timestamp,\n CASE\n WHEN txs.tx :receipt :status :: STRING = '0x1' THEN 'SUCCESS'\n ELSE 'FAIL'\n END AS tx_status,\n txs.ingested_at AS ingested_at,\n txs._inserted_timestamp AS _inserted_timestamp\n FROM\n traces_txs txs,\n TABLE(\n FLATTEN(\n input => PARSE_JSON(\n txs.tx :traces\n ),\n recursive => TRUE\n )\n ) f\n WHERE\n f.index IS NULL\n AND f.key != 'calls'\n GROUP BY\n tx_hash,\n id,\n block_number,\n block_timestamp,\n ingested_at,\n _inserted_timestamp,\n tx_status\n),\nflattened_traces AS (\n SELECT\n DATA :from :: STRING AS from_address,\n udf_hex_to_int(\n DATA :gas :: STRING\n ) AS gas,\n udf_hex_to_int(\n DATA :gasUsed :: STRING\n ) AS gas_used,\n DATA :input :: STRING AS input,\n DATA :output :: STRING AS output,\n DATA :time :: STRING AS TIME,\n DATA :to :: STRING AS to_address,\n DATA :type :: STRING AS TYPE,\n CASE\n WHEN DATA :type :: STRING = 'CALL' THEN udf_hex_to_int(\n DATA :value :: STRING\n ) / pow(\n 10,\n 18\n )\n ELSE 0\n END AS matic_value,\n CASE\n WHEN id = '__' THEN CONCAT(\n DATA :type :: STRING,\n '_ORIGIN'\n )\n ELSE CONCAT(\n DATA :type :: STRING,\n '_',\n REPLACE(\n REPLACE(REPLACE(REPLACE(id, 'calls', ''), '[', ''), ']', ''),\n '__',\n '_'\n )\n )\n END AS identifier,\n concat_ws(\n '-',\n tx_hash,\n identifier\n ) AS _call_id,\n SPLIT(\n identifier,\n '_'\n ) AS id_split,\n ARRAY_SLICE(id_split, 1, ARRAY_SIZE(id_split)) AS levels,\n ARRAY_TO_STRING(\n levels,\n '_'\n ) AS LEVEL,\n CASE\n WHEN ARRAY_SIZE(levels) = 1\n AND levels [0] :: STRING = 'ORIGIN' THEN NULL\n WHEN ARRAY_SIZE(levels) = 1 THEN 'ORIGIN'\n ELSE ARRAY_TO_STRING(ARRAY_SLICE(levels, 0, ARRAY_SIZE(levels) -1), '_')END AS parent_level,\n COUNT(parent_level) over (\n PARTITION BY tx_hash,\n parent_level\n ) AS sub_traces,*\n FROM\n base_table\n ),\n group_sub_traces AS (\n SELECT\n tx_hash,\n parent_level,\n sub_traces\n FROM\n flattened_traces\n GROUP BY\n tx_hash,\n parent_level,\n sub_traces\n ),\n FINAL AS (\n SELECT\n flattened_traces.tx_hash AS tx_hash,\n flattened_traces.block_number AS block_number,\n flattened_traces.block_timestamp AS block_timestamp,\n flattened_traces.from_address AS from_address,\n flattened_traces.to_address AS to_address,\n flattened_traces.matic_value AS matic_value,\n flattened_traces.gas AS gas,\n flattened_traces.gas_used AS gas_used,\n flattened_traces.input AS input,\n flattened_traces.output AS output,\n flattened_traces.type AS TYPE,\n flattened_traces.identifier AS identifier,\n flattened_traces._call_id AS _call_id,\n flattened_traces.ingested_at AS ingested_at,\n flattened_traces.data AS DATA,\n flattened_traces.tx_status AS tx_status,\n group_sub_traces.sub_traces AS sub_traces,\n flattened_traces._inserted_timestamp AS _inserted_timestamp\n FROM\n flattened_traces\n LEFT OUTER JOIN group_sub_traces\n ON flattened_traces.tx_hash = group_sub_traces.tx_hash\n AND flattened_traces.level = group_sub_traces.parent_level\n )\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n from_address,\n to_address,\n matic_value,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n identifier,\n _call_id,\n ingested_at,\n _inserted_timestamp,\n DATA,\n tx_status,\n sub_traces\n FROM\n FINAL\n WHERE\n identifier IS NOT NULL qualify(ROW_NUMBER() over(PARTITION BY _call_id\n ORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.silver.traces"}, "model.polygon_models.silver__contracts": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.polygon_models.bronze_api__token_reads"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "contract_address", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "silver", "fqn": ["polygon_models", "silver", "silver__contracts"], "unique_id": "model.polygon_models.silver__contracts", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'contract_address'\n) }}\n\nWITH base_metadata AS (\n\n SELECT\n contract_address,\n block_number,\n function_sig AS function_signature,\n read_result AS read_output,\n _inserted_timestamp\n FROM\n {{ ref('bronze_api__token_reads') }}\n WHERE\n read_result IS NOT NULL\n AND read_result <> '0x'\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n {{ this }}\n)\n{% endif %}\n),\ntoken_names AS (\n SELECT\n contract_address,\n block_number,\n function_signature,\n read_output,\n regexp_substr_all(SUBSTR(read_output, 3, len(read_output)), '.{64}') AS segmented_output,\n PUBLIC.udf_hex_to_int(\n segmented_output [1] :: STRING\n ) AS sub_len,\n TRY_HEX_DECODE_STRING(\n SUBSTR(\n segmented_output [2] :: STRING,\n 0,\n sub_len * 2\n )\n ) AS name1,\n TRY_HEX_DECODE_STRING(RTRIM(segmented_output [2] :: STRING, 0)) AS name2,\n TRY_HEX_DECODE_STRING(RTRIM(segmented_output [0] :: STRING, 0)) AS name3,\n TRY_HEX_DECODE_STRING(\n CONCAT(RTRIM(segmented_output [0] :: STRING, 0), '0')\n ) AS name4,\n COALESCE(\n name1,\n name2,\n name3,\n name4\n ) AS token_name\n FROM\n base_metadata\n WHERE\n function_signature = '0x06fdde03'\n AND segmented_output [1] :: STRING IS NOT NULL\n),\ntoken_symbols AS (\n SELECT\n contract_address,\n block_number,\n function_signature,\n read_output,\n regexp_substr_all(SUBSTR(read_output, 3, len(read_output)), '.{64}') AS segmented_output,\n PUBLIC.udf_hex_to_int(\n segmented_output [1] :: STRING\n ) AS sub_len,\n TRY_HEX_DECODE_STRING(\n SUBSTR(\n segmented_output [2] :: STRING,\n 0,\n sub_len * 2\n )\n ) AS symbol1,\n TRY_HEX_DECODE_STRING(RTRIM(segmented_output [2] :: STRING, 0)) AS symbol2,\n TRY_HEX_DECODE_STRING(RTRIM(segmented_output [0] :: STRING, 0)) AS symbol3,\n TRY_HEX_DECODE_STRING(\n CONCAT(RTRIM(segmented_output [0] :: STRING, 0), '0')\n ) AS symbol4,\n COALESCE(\n symbol1,\n symbol2,\n symbol3,\n symbol4\n ) AS token_symbol\n FROM\n base_metadata\n WHERE\n function_signature = '0x95d89b41'\n AND segmented_output [1] :: STRING IS NOT NULL\n),\ntoken_decimals AS (\n SELECT\n contract_address,\n PUBLIC.udf_hex_to_int(\n read_output :: STRING\n ) AS token_decimals,\n LENGTH(token_decimals) AS dec_length\n FROM\n base_metadata\n WHERE\n function_signature = '0x313ce567'\n AND read_output IS NOT NULL\n AND read_output <> '0x'\n),\ncontracts AS (\n SELECT\n contract_address,\n MAX(_inserted_timestamp) AS _inserted_timestamp\n FROM\n base_metadata\n GROUP BY\n 1\n)\nSELECT\n c1.contract_address :: STRING AS contract_address,\n token_name,\n token_decimals :: INTEGER AS token_decimals,\n token_symbol,\n _inserted_timestamp\nFROM\n contracts c1\n LEFT JOIN token_names\n ON c1.contract_address = token_names.contract_address\n LEFT JOIN token_symbols\n ON c1.contract_address = token_symbols.contract_address\n LEFT JOIN token_decimals\n ON c1.contract_address = token_decimals.contract_address\n AND dec_length < 3 qualify(ROW_NUMBER() over(PARTITION BY c1.contract_address\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "silver/silver__contracts.sql", "original_file_path": "models/silver/silver__contracts.sql", "name": "silver__contracts", "alias": "contracts", "checksum": {"name": "sha256", "checksum": "601c4a2a47b3dc4fa2b5f857396e4eabb2a19e0c0fc3401e831d130ddfb45ac5"}, "tags": [], "refs": [["bronze_api__token_reads"]], "sources": [], "metrics": [], "description": "", "columns": {"CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/silver__contracts.yml", "compiled_path": "target/compiled/polygon_models/models/silver/silver__contracts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "unique_key": "contract_address"}, "created_at": 1672849093.8800151, "compiled_code": "\n\nWITH base_metadata AS (\n\n SELECT\n contract_address,\n block_number,\n function_sig AS function_signature,\n read_result AS read_output,\n _inserted_timestamp\n FROM\n POLYGON_DEV.bronze_api.token_reads\n WHERE\n read_result IS NOT NULL\n AND read_result <> '0x'\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n POLYGON_DEV.silver.contracts\n)\n\n),\ntoken_names AS (\n SELECT\n contract_address,\n block_number,\n function_signature,\n read_output,\n regexp_substr_all(SUBSTR(read_output, 3, len(read_output)), '.{64}') AS segmented_output,\n PUBLIC.udf_hex_to_int(\n segmented_output [1] :: STRING\n ) AS sub_len,\n TRY_HEX_DECODE_STRING(\n SUBSTR(\n segmented_output [2] :: STRING,\n 0,\n sub_len * 2\n )\n ) AS name1,\n TRY_HEX_DECODE_STRING(RTRIM(segmented_output [2] :: STRING, 0)) AS name2,\n TRY_HEX_DECODE_STRING(RTRIM(segmented_output [0] :: STRING, 0)) AS name3,\n TRY_HEX_DECODE_STRING(\n CONCAT(RTRIM(segmented_output [0] :: STRING, 0), '0')\n ) AS name4,\n COALESCE(\n name1,\n name2,\n name3,\n name4\n ) AS token_name\n FROM\n base_metadata\n WHERE\n function_signature = '0x06fdde03'\n AND segmented_output [1] :: STRING IS NOT NULL\n),\ntoken_symbols AS (\n SELECT\n contract_address,\n block_number,\n function_signature,\n read_output,\n regexp_substr_all(SUBSTR(read_output, 3, len(read_output)), '.{64}') AS segmented_output,\n PUBLIC.udf_hex_to_int(\n segmented_output [1] :: STRING\n ) AS sub_len,\n TRY_HEX_DECODE_STRING(\n SUBSTR(\n segmented_output [2] :: STRING,\n 0,\n sub_len * 2\n )\n ) AS symbol1,\n TRY_HEX_DECODE_STRING(RTRIM(segmented_output [2] :: STRING, 0)) AS symbol2,\n TRY_HEX_DECODE_STRING(RTRIM(segmented_output [0] :: STRING, 0)) AS symbol3,\n TRY_HEX_DECODE_STRING(\n CONCAT(RTRIM(segmented_output [0] :: STRING, 0), '0')\n ) AS symbol4,\n COALESCE(\n symbol1,\n symbol2,\n symbol3,\n symbol4\n ) AS token_symbol\n FROM\n base_metadata\n WHERE\n function_signature = '0x95d89b41'\n AND segmented_output [1] :: STRING IS NOT NULL\n),\ntoken_decimals AS (\n SELECT\n contract_address,\n PUBLIC.udf_hex_to_int(\n read_output :: STRING\n ) AS token_decimals,\n LENGTH(token_decimals) AS dec_length\n FROM\n base_metadata\n WHERE\n function_signature = '0x313ce567'\n AND read_output IS NOT NULL\n AND read_output <> '0x'\n),\ncontracts AS (\n SELECT\n contract_address,\n MAX(_inserted_timestamp) AS _inserted_timestamp\n FROM\n base_metadata\n GROUP BY\n 1\n)\nSELECT\n c1.contract_address :: STRING AS contract_address,\n token_name,\n token_decimals :: INTEGER AS token_decimals,\n token_symbol,\n _inserted_timestamp\nFROM\n contracts c1\n LEFT JOIN token_names\n ON c1.contract_address = token_names.contract_address\n LEFT JOIN token_symbols\n ON c1.contract_address = token_symbols.contract_address\n LEFT JOIN token_decimals\n ON c1.contract_address = token_decimals.contract_address\n AND dec_length < 3 qualify(ROW_NUMBER() over(PARTITION BY c1.contract_address\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.silver.contracts"}, "model.polygon_models.silver__contract_proxies": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.surrogate_key"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "id", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["id"], "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "silver", "fqn": ["polygon_models", "silver", "silver__contract_proxies"], "unique_id": "model.polygon_models.silver__contract_proxies", "raw_code": "{{ config (\n materialized = \"incremental\",\n unique_key = \"id\",\n cluster_by = \"ROUND(block_number, -3)\",\n merge_update_columns = [\"id\"]\n) }}\n\nWITH base AS (\n\n SELECT\n tx_hash,\n block_number,\n contract_address,\n CONCAT('0x', SUBSTR(DATA, 27, 40)) AS proxy_address1,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS proxy_address2,\n CASE\n WHEN proxy_address1 = '0x' THEN proxy_address2\n ELSE proxy_address1\n END AS proxy_address,\n topics,\n DATA,\n _inserted_timestamp\n FROM\n {{ ref('silver__logs') }}\n WHERE\n topics [0] :: STRING = '0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b'\n AND tx_status = 'SUCCESS'\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n {{ this }}\n)\n{% endif %}\n)\n\n{% if is_incremental() %},\nupdate_records AS (\n SELECT\n tx_hash,\n block_number,\n contract_address,\n proxy_address,\n _inserted_timestamp\n FROM\n {{ this }}\n WHERE\n contract_address IN (\n SELECT\n DISTINCT contract_address\n FROM\n base\n )\n),\nall_records AS (\n SELECT\n tx_hash,\n block_number,\n contract_address,\n proxy_address,\n _inserted_timestamp\n FROM\n update_records\n UNION ALL\n SELECT\n tx_hash,\n block_number,\n contract_address,\n proxy_address,\n _inserted_timestamp\n FROM\n base\n)\n{% endif %}\nSELECT\n tx_hash,\n block_number,\n contract_address,\n proxy_address,\n _inserted_timestamp,\n {{ dbt_utils.surrogate_key(\n ['block_number', 'contract_address']\n ) }} AS id,\n COALESCE(LAG(block_number) over(PARTITION BY contract_address\nORDER BY\n block_number DESC), 10000000000) AS next_block_number\nFROM\n\n{% if is_incremental() %}\nall_records\n{% else %}\n base\n{% endif %}\n\nqualify(ROW_NUMBER() over(PARTITION BY id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "silver/silver__contract_proxies.sql", "original_file_path": "models/silver/silver__contract_proxies.sql", "name": "silver__contract_proxies", "alias": "contract_proxies", "checksum": {"name": "sha256", "checksum": "803bcfb5ac519d765c951f23fb244e96bd8bb1030560c7cb4fc2fab448eb2976"}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/silver__contract_proxies.yml", "compiled_path": "target/compiled/polygon_models/models/silver/silver__contract_proxies.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "unique_key": "id", "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["id"]}, "created_at": 1672849093.877176, "compiled_code": "\n\nWITH base AS (\n\n SELECT\n tx_hash,\n block_number,\n contract_address,\n CONCAT('0x', SUBSTR(DATA, 27, 40)) AS proxy_address1,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS proxy_address2,\n CASE\n WHEN proxy_address1 = '0x' THEN proxy_address2\n ELSE proxy_address1\n END AS proxy_address,\n topics,\n DATA,\n _inserted_timestamp\n FROM\n POLYGON_DEV.silver.logs\n WHERE\n topics [0] :: STRING = '0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b'\n AND tx_status = 'SUCCESS'\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n POLYGON_DEV.silver.contract_proxies\n)\n\n)\n\n,\nupdate_records AS (\n SELECT\n tx_hash,\n block_number,\n contract_address,\n proxy_address,\n _inserted_timestamp\n FROM\n POLYGON_DEV.silver.contract_proxies\n WHERE\n contract_address IN (\n SELECT\n DISTINCT contract_address\n FROM\n base\n )\n),\nall_records AS (\n SELECT\n tx_hash,\n block_number,\n contract_address,\n proxy_address,\n _inserted_timestamp\n FROM\n update_records\n UNION ALL\n SELECT\n tx_hash,\n block_number,\n contract_address,\n proxy_address,\n _inserted_timestamp\n FROM\n base\n)\n\nSELECT\n tx_hash,\n block_number,\n contract_address,\n proxy_address,\n _inserted_timestamp,\n md5(cast(coalesce(cast(block_number as TEXT), '') || '-' || coalesce(cast(contract_address as TEXT), '') as TEXT)) AS id,\n COALESCE(LAG(block_number) over(PARTITION BY contract_address\nORDER BY\n block_number DESC), 10000000000) AS next_block_number\nFROM\n\n\nall_records\n\n\nqualify(ROW_NUMBER() over(PARTITION BY id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.silver.contract_proxies"}, "model.polygon_models.streamline__complete_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.surrogate_key"], "nodes": ["source.polygon_models.bronze_streamline.transactions", "source.polygon_models.bronze_streamline.transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "id", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["id"], "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "streamline", "fqn": ["polygon_models", "silver", "streamline", "streamline__complete_transactions"], "unique_id": "model.polygon_models.streamline__complete_transactions", "raw_code": "{{ config (\n materialized = \"incremental\",\n unique_key = \"id\",\n cluster_by = \"ROUND(block_number, -3)\",\n merge_update_columns = [\"id\"]\n) }}\n\nWITH meta AS (\n\n SELECT\n last_modified,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => '{{ source( \"bronze_streamline\", \"transactions\") }}'\n )\n ) A\n)\n\n{% if is_incremental() %},\nmax_date AS (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n {{ this }})\n {% endif %}\n SELECT\n {{ dbt_utils.surrogate_key(\n ['block_number']\n ) }} AS id,\n block_number,\n last_modified AS _inserted_timestamp\n FROM\n {{ source(\n \"bronze_streamline\",\n \"transactions\"\n ) }}\n JOIN meta b\n ON b.file_name = metadata$filename\n\n{% if is_incremental() %}\nWHERE\n b.last_modified > (\n SELECT\n max_INSERTED_TIMESTAMP\n FROM\n max_date\n )\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "silver/streamline/streamline__complete_transactions.sql", "original_file_path": "models/silver/streamline/streamline__complete_transactions.sql", "name": "streamline__complete_transactions", "alias": "complete_transactions", "checksum": {"name": "sha256", "checksum": "90d6c4c2754b1ee981156c4a61bed888784a277818190d55a491c13f387a0d3f"}, "tags": [], "refs": [], "sources": [["bronze_streamline", "transactions"], ["bronze_streamline", "transactions"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/streamline/streamline__complete_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "unique_key": "id", "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["id"]}, "created_at": 1672849093.420981, "compiled_code": "\n\nWITH meta AS (\n\n SELECT\n last_modified,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.POLYGON.transactions'\n )\n ) A\n)\n\n,\nmax_date AS (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n POLYGON_DEV.streamline.complete_transactions)\n \n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number,\n last_modified AS _inserted_timestamp\n FROM\n streamline.POLYGON.transactions\n JOIN meta b\n ON b.file_name = metadata$filename\n\n\nWHERE\n b.last_modified > (\n SELECT\n max_INSERTED_TIMESTAMP\n FROM\n max_date\n )\n\n\nqualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.streamline.complete_transactions"}, "model.polygon_models.streamline__transactions_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.polygon_models.if_data_call_function", "macro.dbt_utils.surrogate_key"], "nodes": ["model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [{"sql": "\n \n \n SELECT\n {{this.schema}}.udf_get_transactions(object_construct('sql_source', '{{this.identifier}}'))\n WHERE\n EXISTS(\n SELECT\n 1\n FROM\n {{this.schema}}.{{this.identifier}}\n LIMIT\n 1\n )\n \n", "transaction": true, "index": null}], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "streamline", "fqn": ["polygon_models", "silver", "streamline", "streamline__transactions_history"], "unique_id": "model.polygon_models.streamline__transactions_history", "raw_code": "{{ config (\n materialized = \"view\",\n post_hook = if_data_call_function(\n func = \"{{this.schema}}.udf_get_transactions(object_construct('sql_source', '{{this.identifier}}'))\",\n target = \"{{this.schema}}.{{this.identifier}}\"\n )\n) }}\n\n{% for item in range(35) %}\n (\n\n SELECT\n {{ dbt_utils.surrogate_key(\n ['block_number']\n ) }} AS id,\n block_number\n FROM\n {{ ref(\"streamline__blocks\") }}\n WHERE\n block_number BETWEEN {{ item * 1000000 + 1 }}\n AND {{(\n item + 1\n ) * 1000000 }}\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n {{ ref(\"streamline__complete_transactions\") }}\n WHERE\n block_number BETWEEN {{ item * 1000000 + 1 }}\n AND {{(\n item + 1\n ) * 1000000 }}\n ORDER BY\n block_number\n ) {% if not loop.last %}\n UNION ALL\n {% endif %}\n{% endfor %}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "silver/streamline/streamline__transactions_history.sql", "original_file_path": "models/silver/streamline/streamline__transactions_history.sql", "name": "streamline__transactions_history", "alias": "transactions_history", "checksum": {"name": "sha256", "checksum": "4b29b8a99cc4cca2b7f4003c5af94442c667ec74cac7f7de7a018e6741f66b4a"}, "tags": [], "refs": [["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/streamline/streamline__transactions_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "post-hook": ["\n \n \n SELECT\n {{this.schema}}.udf_get_transactions(object_construct('sql_source', '{{this.identifier}}'))\n WHERE\n EXISTS(\n SELECT\n 1\n FROM\n {{this.schema}}.{{this.identifier}}\n LIMIT\n 1\n )\n \n"]}, "created_at": 1672849093.425479, "compiled_code": "\n\n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 1\n AND 1000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 1\n AND 1000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 1000001\n AND 2000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 1000001\n AND 2000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 2000001\n AND 3000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 2000001\n AND 3000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 3000001\n AND 4000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 3000001\n AND 4000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 4000001\n AND 5000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 4000001\n AND 5000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 5000001\n AND 6000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 5000001\n AND 6000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 6000001\n AND 7000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 6000001\n AND 7000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 7000001\n AND 8000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 7000001\n AND 8000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 8000001\n AND 9000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 8000001\n AND 9000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 9000001\n AND 10000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 9000001\n AND 10000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 10000001\n AND 11000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 10000001\n AND 11000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 11000001\n AND 12000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 11000001\n AND 12000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 12000001\n AND 13000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 12000001\n AND 13000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 13000001\n AND 14000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 13000001\n AND 14000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 14000001\n AND 15000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 14000001\n AND 15000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 15000001\n AND 16000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 15000001\n AND 16000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 16000001\n AND 17000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 16000001\n AND 17000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 17000001\n AND 18000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 17000001\n AND 18000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 18000001\n AND 19000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 18000001\n AND 19000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 19000001\n AND 20000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 19000001\n AND 20000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 20000001\n AND 21000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 20000001\n AND 21000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 21000001\n AND 22000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 21000001\n AND 22000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 22000001\n AND 23000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 22000001\n AND 23000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 23000001\n AND 24000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 23000001\n AND 24000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 24000001\n AND 25000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 24000001\n AND 25000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 25000001\n AND 26000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 25000001\n AND 26000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 26000001\n AND 27000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 26000001\n AND 27000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 27000001\n AND 28000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 27000001\n AND 28000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 28000001\n AND 29000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 28000001\n AND 29000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 29000001\n AND 30000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 29000001\n AND 30000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 30000001\n AND 31000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 30000001\n AND 31000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 31000001\n AND 32000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 31000001\n AND 32000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 32000001\n AND 33000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 32000001\n AND 33000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 33000001\n AND 34000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 33000001\n AND 34000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 34000001\n AND 35000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 34000001\n AND 35000000\n ORDER BY\n block_number\n ) \n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.streamline.transactions_history"}, "model.polygon_models.streamline__transactions_realtime": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.polygon_models.if_data_call_function", "macro.dbt_utils.surrogate_key"], "nodes": ["model.polygon_models._max_block_by_date", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [{"sql": "\n \n \n SELECT\n {{this.schema}}.udf_get_transactions(object_construct('sql_source', '{{this.identifier}}'))\n WHERE\n EXISTS(\n SELECT\n 1\n FROM\n {{this.schema}}.{{this.identifier}}\n LIMIT\n 1\n )\n \n", "transaction": true, "index": null}], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "streamline", "fqn": ["polygon_models", "silver", "streamline", "streamline__transactions_realtime"], "unique_id": "model.polygon_models.streamline__transactions_realtime", "raw_code": "{{ config (\n materialized = \"view\",\n post_hook = if_data_call_function(\n func = \"{{this.schema}}.udf_get_transactions(object_construct('sql_source', '{{this.identifier}}'))\",\n target = \"{{this.schema}}.{{this.identifier}}\"\n )\n) }}\n\nWITH last_3_days AS (\n\n SELECT\n block_number\n FROM\n {{ ref(\"_max_block_by_date\") }}\n qualify ROW_NUMBER() over (\n ORDER BY\n block_number DESC\n ) = 3\n)\nSELECT\n {{ dbt_utils.surrogate_key(\n ['block_number']\n ) }} AS id,\n block_number\nFROM\n {{ ref(\"streamline__blocks\") }}\nWHERE\n (\n block_number >= (\n SELECT\n block_number\n FROM\n last_3_days\n ) {# TODO: OR can be removed once historical load is complete #}\n OR block_number > 35000000\n )\n AND block_number IS NOT NULL\nEXCEPT\nSELECT\n id,\n block_number\nFROM\n {{ ref(\"streamline__complete_transactions\") }}\nWHERE\n block_number >= (\n SELECT\n block_number\n FROM\n last_3_days\n ) {# TODO: OR can be removed once historical load is complete #}\n OR block_number > 35000000", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "silver/streamline/streamline__transactions_realtime.sql", "original_file_path": "models/silver/streamline/streamline__transactions_realtime.sql", "name": "streamline__transactions_realtime", "alias": "transactions_realtime", "checksum": {"name": "sha256", "checksum": "9a0a0d96d4a2f1e09856c73dc7b1a17052ab3b8ee9ab11ba363c5d57f1544bb2"}, "tags": [], "refs": [["_max_block_by_date"], ["streamline__blocks"], ["streamline__complete_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/streamline/streamline__transactions_realtime.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "post-hook": ["\n \n \n SELECT\n {{this.schema}}.udf_get_transactions(object_construct('sql_source', '{{this.identifier}}'))\n WHERE\n EXISTS(\n SELECT\n 1\n FROM\n {{this.schema}}.{{this.identifier}}\n LIMIT\n 1\n )\n \n"]}, "created_at": 1672849093.4461079, "compiled_code": "\n\nWITH __dbt__cte___max_block_by_date as (\n\n\nWITH base AS (\n\n SELECT\n block_timestamp :: DATE AS block_date,\n MAX(block_number) block_number\n FROM\n POLYGON_DEV.silver.blocks\n GROUP BY\n block_timestamp :: DATE\n)\nSELECT\n block_date,\n block_number\nFROM\n base\nWHERE\n block_date <> (\n SELECT\n MAX(block_date)\n FROM\n base\n )\n),last_3_days AS (\n\n SELECT\n block_number\n FROM\n __dbt__cte___max_block_by_date\n qualify ROW_NUMBER() over (\n ORDER BY\n block_number DESC\n ) = 3\n)\nSELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\nFROM\n POLYGON_DEV.streamline.blocks\nWHERE\n (\n block_number >= (\n SELECT\n block_number\n FROM\n last_3_days\n ) \n OR block_number > 35000000\n )\n AND block_number IS NOT NULL\nEXCEPT\nSELECT\n id,\n block_number\nFROM\n POLYGON_DEV.streamline.complete_transactions\nWHERE\n block_number >= (\n SELECT\n block_number\n FROM\n last_3_days\n ) \n OR block_number > 35000000", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.polygon_models._max_block_by_date", "sql": " __dbt__cte___max_block_by_date as (\n\n\nWITH base AS (\n\n SELECT\n block_timestamp :: DATE AS block_date,\n MAX(block_number) block_number\n FROM\n POLYGON_DEV.silver.blocks\n GROUP BY\n block_timestamp :: DATE\n)\nSELECT\n block_date,\n block_number\nFROM\n base\nWHERE\n block_date <> (\n SELECT\n MAX(block_date)\n FROM\n base\n )\n)"}], "relation_name": "POLYGON_DEV.streamline.transactions_realtime"}, "model.polygon_models.streamline__complete_blocks": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.surrogate_key"], "nodes": ["source.polygon_models.bronze_streamline.blocks", "source.polygon_models.bronze_streamline.blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "id", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["id"], "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "streamline", "fqn": ["polygon_models", "silver", "streamline", "streamline__complete_blocks"], "unique_id": "model.polygon_models.streamline__complete_blocks", "raw_code": "{{ config (\n materialized = \"incremental\",\n unique_key = \"id\",\n cluster_by = \"ROUND(block_number, -3)\",\n merge_update_columns = [\"id\"]\n) }}\n\nWITH meta AS (\n\n SELECT\n last_modified,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => '{{ source( \"bronze_streamline\", \"blocks\") }}'\n )\n ) A\n)\n\n{% if is_incremental() %},\nmax_date AS (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n {{ this }})\n {% endif %}\n SELECT\n {{ dbt_utils.surrogate_key(\n ['block_number']\n ) }} AS id,\n block_number,\n last_modified AS _inserted_timestamp\n FROM\n {{ source(\n \"bronze_streamline\",\n \"blocks\"\n ) }}\n JOIN meta b\n ON b.file_name = metadata$filename\n\n{% if is_incremental() %}\nWHERE\n b.last_modified > (\n SELECT\n max_INSERTED_TIMESTAMP\n FROM\n max_date\n )\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "silver/streamline/streamline__complete_blocks.sql", "original_file_path": "models/silver/streamline/streamline__complete_blocks.sql", "name": "streamline__complete_blocks", "alias": "complete_blocks", "checksum": {"name": "sha256", "checksum": "34268d1acf63c40a4cd4416ae1e97cd605afd048e3462685ce82636c0ae9f731"}, "tags": [], "refs": [], "sources": [["bronze_streamline", "blocks"], ["bronze_streamline", "blocks"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/streamline/streamline__complete_blocks.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "unique_key": "id", "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["id"]}, "created_at": 1672849093.4514182, "compiled_code": "\n\nWITH meta AS (\n\n SELECT\n last_modified,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.POLYGON.blocks'\n )\n ) A\n)\n\n,\nmax_date AS (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n POLYGON_DEV.streamline.complete_blocks)\n \n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number,\n last_modified AS _inserted_timestamp\n FROM\n streamline.POLYGON.blocks\n JOIN meta b\n ON b.file_name = metadata$filename\n\n\nWHERE\n b.last_modified > (\n SELECT\n max_INSERTED_TIMESTAMP\n FROM\n max_date\n )\n\n\nqualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.streamline.complete_blocks"}, "model.polygon_models._max_block_by_date": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "_max_block_by_date", "fqn": ["polygon_models", "silver", "streamline", "_max_block_by_date"], "unique_id": "model.polygon_models._max_block_by_date", "raw_code": "{{ config (\n materialized = \"ephemeral\",\n unique_key = \"block_number\",\n) }}\n\nWITH base AS (\n\n SELECT\n block_timestamp :: DATE AS block_date,\n MAX(block_number) block_number\n FROM\n {{ ref(\"silver__blocks\") }}\n GROUP BY\n block_timestamp :: DATE\n)\nSELECT\n block_date,\n block_number\nFROM\n base\nWHERE\n block_date <> (\n SELECT\n MAX(block_date)\n FROM\n base\n )", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "silver/streamline/_max_block_by_date.sql", "original_file_path": "models/silver/streamline/_max_block_by_date.sql", "name": "_max_block_by_date", "alias": "", "checksum": {"name": "sha256", "checksum": "f9a8634e0cb137fa9013d3468172119413992e34cfb58022fcd30908bf81dd58"}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/streamline/_max_block_by_date.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "unique_key": "block_number"}, "created_at": 1672849093.4556081, "compiled_code": "\n\nWITH base AS (\n\n SELECT\n block_timestamp :: DATE AS block_date,\n MAX(block_number) block_number\n FROM\n POLYGON_DEV.silver.blocks\n GROUP BY\n block_timestamp :: DATE\n)\nSELECT\n block_date,\n block_number\nFROM\n base\nWHERE\n block_date <> (\n SELECT\n MAX(block_date)\n FROM\n base\n )", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.polygon_models.streamline__blocks_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.polygon_models.if_data_call_function", "macro.dbt_utils.surrogate_key"], "nodes": ["model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [{"sql": "\n \n \n SELECT\n {{this.schema}}.udf_get_blocks(object_construct('sql_source', '{{this.identifier}}'))\n WHERE\n EXISTS(\n SELECT\n 1\n FROM\n {{this.schema}}.{{this.identifier}}\n LIMIT\n 1\n )\n \n", "transaction": true, "index": null}], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "streamline", "fqn": ["polygon_models", "silver", "streamline", "streamline__blocks_history"], "unique_id": "model.polygon_models.streamline__blocks_history", "raw_code": "{{ config (\n materialized = \"view\",\n post_hook = if_data_call_function(\n func = \"{{this.schema}}.udf_get_blocks(object_construct('sql_source', '{{this.identifier}}'))\",\n target = \"{{this.schema}}.{{this.identifier}}\"\n )\n) }}\n\n{% for item in range(35) %}\n (\n\n SELECT\n {{ dbt_utils.surrogate_key(\n ['block_number']\n ) }} AS id,\n block_number\n FROM\n {{ ref(\"streamline__blocks\") }}\n WHERE\n block_number BETWEEN {{ item * 1000000 + 1 }}\n AND {{(\n item + 1\n ) * 1000000 }}\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n {{ ref(\"streamline__complete_blocks\") }}\n WHERE\n block_number BETWEEN {{ item * 1000000 + 1 }}\n AND {{(\n item + 1\n ) * 1000000 }}\n ORDER BY\n block_number\n ) {% if not loop.last %}\n UNION ALL\n {% endif %}\n{% endfor %}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "silver/streamline/streamline__blocks_history.sql", "original_file_path": "models/silver/streamline/streamline__blocks_history.sql", "name": "streamline__blocks_history", "alias": "blocks_history", "checksum": {"name": "sha256", "checksum": "131e9e3b8edc55cd1fb351268ac3c6555166018a7f6075f3cb9c987a45fd2339"}, "tags": [], "refs": [["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/streamline/streamline__blocks_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "post-hook": ["\n \n \n SELECT\n {{this.schema}}.udf_get_blocks(object_construct('sql_source', '{{this.identifier}}'))\n WHERE\n EXISTS(\n SELECT\n 1\n FROM\n {{this.schema}}.{{this.identifier}}\n LIMIT\n 1\n )\n \n"]}, "created_at": 1672849093.4567811, "compiled_code": "\n\n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 1\n AND 1000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 1\n AND 1000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 1000001\n AND 2000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 1000001\n AND 2000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 2000001\n AND 3000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 2000001\n AND 3000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 3000001\n AND 4000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 3000001\n AND 4000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 4000001\n AND 5000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 4000001\n AND 5000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 5000001\n AND 6000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 5000001\n AND 6000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 6000001\n AND 7000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 6000001\n AND 7000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 7000001\n AND 8000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 7000001\n AND 8000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 8000001\n AND 9000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 8000001\n AND 9000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 9000001\n AND 10000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 9000001\n AND 10000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 10000001\n AND 11000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 10000001\n AND 11000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 11000001\n AND 12000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 11000001\n AND 12000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 12000001\n AND 13000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 12000001\n AND 13000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 13000001\n AND 14000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 13000001\n AND 14000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 14000001\n AND 15000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 14000001\n AND 15000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 15000001\n AND 16000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 15000001\n AND 16000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 16000001\n AND 17000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 16000001\n AND 17000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 17000001\n AND 18000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 17000001\n AND 18000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 18000001\n AND 19000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 18000001\n AND 19000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 19000001\n AND 20000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 19000001\n AND 20000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 20000001\n AND 21000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 20000001\n AND 21000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 21000001\n AND 22000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 21000001\n AND 22000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 22000001\n AND 23000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 22000001\n AND 23000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 23000001\n AND 24000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 23000001\n AND 24000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 24000001\n AND 25000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 24000001\n AND 25000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 25000001\n AND 26000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 25000001\n AND 26000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 26000001\n AND 27000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 26000001\n AND 27000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 27000001\n AND 28000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 27000001\n AND 28000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 28000001\n AND 29000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 28000001\n AND 29000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 29000001\n AND 30000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 29000001\n AND 30000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 30000001\n AND 31000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 30000001\n AND 31000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 31000001\n AND 32000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 31000001\n AND 32000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 32000001\n AND 33000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 32000001\n AND 33000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 33000001\n AND 34000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 33000001\n AND 34000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n POLYGON_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 34000001\n AND 35000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n POLYGON_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 34000001\n AND 35000000\n ORDER BY\n block_number\n ) \n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.streamline.blocks_history"}, "model.polygon_models.streamline__blocks_realtime": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.polygon_models.if_data_call_function", "macro.dbt_utils.surrogate_key"], "nodes": ["model.polygon_models._max_block_by_date", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [{"sql": "\n \n \n SELECT\n {{this.schema}}.udf_get_blocks(object_construct('sql_source', '{{this.identifier}}'))\n WHERE\n EXISTS(\n SELECT\n 1\n FROM\n {{this.schema}}.{{this.identifier}}\n LIMIT\n 1\n )\n \n", "transaction": true, "index": null}], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "streamline", "fqn": ["polygon_models", "silver", "streamline", "streamline__blocks_realtime"], "unique_id": "model.polygon_models.streamline__blocks_realtime", "raw_code": "{{ config (\n materialized = \"view\",\n post_hook = if_data_call_function(\n func = \"{{this.schema}}.udf_get_blocks(object_construct('sql_source', '{{this.identifier}}'))\",\n target = \"{{this.schema}}.{{this.identifier}}\"\n )\n) }}\n\nWITH last_3_days AS (\n\n SELECT\n block_number\n FROM\n {{ ref(\"_max_block_by_date\") }}\n qualify ROW_NUMBER() over (\n ORDER BY\n block_number DESC\n ) = 3\n)\nSELECT\n {{ dbt_utils.surrogate_key(\n ['block_number']\n ) }} AS id,\n block_number\nFROM\n {{ ref(\"streamline__blocks\") }}\nWHERE\n (\n block_number >= (\n SELECT\n block_number\n FROM\n last_3_days\n ) {# TODO: OR can be removed once historical load is complete #}\n OR block_number > 35000000\n )\n AND block_number IS NOT NULL\nEXCEPT\nSELECT\n id,\n block_number\nFROM\n {{ ref(\"streamline__complete_blocks\") }}\nWHERE\n block_number >= (\n SELECT\n block_number\n FROM\n last_3_days\n ) {# TODO: OR can be removed once historical load is complete #}\n OR block_number > 35000000", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "silver/streamline/streamline__blocks_realtime.sql", "original_file_path": "models/silver/streamline/streamline__blocks_realtime.sql", "name": "streamline__blocks_realtime", "alias": "blocks_realtime", "checksum": {"name": "sha256", "checksum": "b1b6d60712de35a9848dda714ffe9317358485d7dead5ce74353ff84830ce6f5"}, "tags": [], "refs": [["_max_block_by_date"], ["streamline__blocks"], ["streamline__complete_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/streamline/streamline__blocks_realtime.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "post-hook": ["\n \n \n SELECT\n {{this.schema}}.udf_get_blocks(object_construct('sql_source', '{{this.identifier}}'))\n WHERE\n EXISTS(\n SELECT\n 1\n FROM\n {{this.schema}}.{{this.identifier}}\n LIMIT\n 1\n )\n \n"]}, "created_at": 1672849093.475502, "compiled_code": "\n\nWITH __dbt__cte___max_block_by_date as (\n\n\nWITH base AS (\n\n SELECT\n block_timestamp :: DATE AS block_date,\n MAX(block_number) block_number\n FROM\n POLYGON_DEV.silver.blocks\n GROUP BY\n block_timestamp :: DATE\n)\nSELECT\n block_date,\n block_number\nFROM\n base\nWHERE\n block_date <> (\n SELECT\n MAX(block_date)\n FROM\n base\n )\n),last_3_days AS (\n\n SELECT\n block_number\n FROM\n __dbt__cte___max_block_by_date\n qualify ROW_NUMBER() over (\n ORDER BY\n block_number DESC\n ) = 3\n)\nSELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\nFROM\n POLYGON_DEV.streamline.blocks\nWHERE\n (\n block_number >= (\n SELECT\n block_number\n FROM\n last_3_days\n ) \n OR block_number > 35000000\n )\n AND block_number IS NOT NULL\nEXCEPT\nSELECT\n id,\n block_number\nFROM\n POLYGON_DEV.streamline.complete_blocks\nWHERE\n block_number >= (\n SELECT\n block_number\n FROM\n last_3_days\n ) \n OR block_number > 35000000", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.polygon_models._max_block_by_date", "sql": " __dbt__cte___max_block_by_date as (\n\n\nWITH base AS (\n\n SELECT\n block_timestamp :: DATE AS block_date,\n MAX(block_number) block_number\n FROM\n POLYGON_DEV.silver.blocks\n GROUP BY\n block_timestamp :: DATE\n)\nSELECT\n block_date,\n block_number\nFROM\n base\nWHERE\n block_date <> (\n SELECT\n MAX(block_date)\n FROM\n base\n )\n)"}], "relation_name": "POLYGON_DEV.streamline.blocks_realtime"}, "model.polygon_models.streamline__blocks": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.run_query"], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline_view"], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "streamline", "fqn": ["polygon_models", "silver", "streamline", "streamline__blocks"], "unique_id": "model.polygon_models.streamline__blocks", "raw_code": "{{ config (\n materialized = \"view\",\n tags = ['streamline_view']\n) }}\n\n\n{% if execute %}\n{% set height = run_query('SELECT streamline.udf_get_chainhead()') %}\n{% set block_height = height.columns[0].values()[0] %}\n{% else %}\n{% set block_height = 0 %}\n{% endif %}\n\nSELECT\n height as block_number\nFROM\n TABLE(streamline.udtf_get_base_table({{block_height}}))", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "silver/streamline/streamline__blocks.sql", "original_file_path": "models/silver/streamline/streamline__blocks.sql", "name": "streamline__blocks", "alias": "blocks", "checksum": {"name": "sha256", "checksum": "8f8e10bd08b190eeb6956e2ea6587de01b2237cdf6209b09b1b977e6408f62ea"}, "tags": ["streamline_view"], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/streamline/streamline__blocks.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "tags": ["streamline_view"]}, "created_at": 1672849093.479817, "compiled_code": "\n\n\n\n\n\n\n\nSELECT\n height as block_number\nFROM\n TABLE(streamline.udtf_get_base_table(37669285))", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.streamline.blocks"}, "model.polygon_models.silver__relevant_abi_contracts": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.polygon_models.silver__logs", "model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "contract_address", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "silver", "fqn": ["polygon_models", "silver", "API_udf", "silver__relevant_abi_contracts"], "unique_id": "model.polygon_models.silver__relevant_abi_contracts", "raw_code": "{{ config(\n materialized = 'table',\n unique_key = \"contract_address\"\n) }}\n\nWITH base AS (\n\n SELECT\n contract_address,\n COUNT(*) AS total_events\n FROM\n {{ ref('silver__logs') }}\n WHERE\n tx_status = 'SUCCESS'\n GROUP BY\n contract_address\n HAVING\n total_events >= 25\n),\nproxies AS (\n SELECT\n tx_hash, \n block_number,\n contract_address,\n CONCAT('0x', SUBSTR(DATA, 27, 40)) AS proxy_address1,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS proxy_address2,\n CASE\n WHEN proxy_address1 = '0x' THEN proxy_address2\n ELSE proxy_address1\n END AS proxy_address,\n topics,\n DATA\n FROM\n {{ ref('silver__logs') }}\n WHERE\n contract_address IN (\n SELECT\n contract_address\n FROM\n base\n )\n AND topics [0] :: STRING = '0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b'\n AND tx_status = 'SUCCESS' qualify(ROW_NUMBER() over(PARTITION BY proxy_address\n ORDER BY\n block_number DESC)) = 1\n)\nSELECT\n contract_address\nFROM\n base\nUNION\nSELECT\n proxy_address AS contract_address\nFROM\n proxies", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "silver/API_udf/silver__relevant_abi_contracts.sql", "original_file_path": "models/silver/API_udf/silver__relevant_abi_contracts.sql", "name": "silver__relevant_abi_contracts", "alias": "relevant_abi_contracts", "checksum": {"name": "sha256", "checksum": "7b51156b2c77da9b3d31f765da84ed057cb27b281286b772193ae019780f3c56"}, "tags": [], "refs": [["silver__logs"], ["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/API_udf/silver__relevant_abi_contracts.yml", "compiled_path": "target/compiled/polygon_models/models/silver/API_udf/silver__relevant_abi_contracts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "unique_key": "contract_address"}, "created_at": 1672849093.891329, "compiled_code": "\n\nWITH base AS (\n\n SELECT\n contract_address,\n COUNT(*) AS total_events\n FROM\n POLYGON_DEV.silver.logs\n WHERE\n tx_status = 'SUCCESS'\n GROUP BY\n contract_address\n HAVING\n total_events >= 25\n),\nproxies AS (\n SELECT\n tx_hash, \n block_number,\n contract_address,\n CONCAT('0x', SUBSTR(DATA, 27, 40)) AS proxy_address1,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS proxy_address2,\n CASE\n WHEN proxy_address1 = '0x' THEN proxy_address2\n ELSE proxy_address1\n END AS proxy_address,\n topics,\n DATA\n FROM\n POLYGON_DEV.silver.logs\n WHERE\n contract_address IN (\n SELECT\n contract_address\n FROM\n base\n )\n AND topics [0] :: STRING = '0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b'\n AND tx_status = 'SUCCESS' qualify(ROW_NUMBER() over(PARTITION BY proxy_address\n ORDER BY\n block_number DESC)) = 1\n)\nSELECT\n contract_address\nFROM\n base\nUNION\nSELECT\n proxy_address AS contract_address\nFROM\n proxies", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.silver.relevant_abi_contracts"}, "model.polygon_models.silver__relevant_token_contracts": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "contract_address", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "silver", "fqn": ["polygon_models", "silver", "API_udf", "silver__relevant_token_contracts"], "unique_id": "model.polygon_models.silver__relevant_token_contracts", "raw_code": "{{ config(\n materialized = 'table',\n unique_key = \"contract_address\"\n) }}\n\nSELECT\n contract_address,\n 'polygon' AS blockchain,\n COUNT(*) AS transfers,\n MIN(block_number) + 1 AS created_block\nFROM\n {{ ref('silver__logs') }}\nWHERE\n topics [0] :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\nGROUP BY\n 1,\n 2\nHAVING\n COUNT(*) > 25", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "silver/API_udf/silver__relevant_token_contracts.sql", "original_file_path": "models/silver/API_udf/silver__relevant_token_contracts.sql", "name": "silver__relevant_token_contracts", "alias": "relevant_token_contracts", "checksum": {"name": "sha256", "checksum": "969926b57e1f9ee8d01509198fb2a81cb745b42cf5ac529d37773b26dda1b056"}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/API_udf/silver__relevant_token_contracts.yml", "compiled_path": "target/compiled/polygon_models/models/silver/API_udf/silver__relevant_token_contracts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "unique_key": "contract_address"}, "created_at": 1672849093.893915, "compiled_code": "\n\nSELECT\n contract_address,\n 'polygon' AS blockchain,\n COUNT(*) AS transfers,\n MIN(block_number) + 1 AS created_block\nFROM\n POLYGON_DEV.silver.logs\nWHERE\n topics [0] :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\nGROUP BY\n 1,\n 2\nHAVING\n COUNT(*) > 25", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.silver.relevant_token_contracts"}, "model.polygon_models.core__fact_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "core", "fqn": ["polygon_models", "gold", "core__fact_transactions"], "unique_id": "model.polygon_models.core__fact_transactions", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true }\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n block_hash,\n tx_hash,\n nonce,\n POSITION,\n origin_function_signature,\n from_address,\n to_address,\n matic_value,\n tx_fee,\n gas_price,\n gas_limit,\n gas_used,\n cumulative_Gas_Used,\n input_data,\n status,\n tx_json\nFROM\n {{ ref('silver__transactions') }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "gold/core__fact_transactions.sql", "original_file_path": "models/gold/core__fact_transactions.sql", "name": "core__fact_transactions", "alias": "fact_transactions", "checksum": {"name": "sha256", "checksum": "f4e2f485acda5e408938b009f8e8dcc6f3b3e50198103103430c0c47aa71f7f2"}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "This table contains transaction level data for the Polygon Blockchain. Each transaction will have a unique transaction hash, along with transactions fees and a MATIC value transferred when applicable. Transactions may be native MATIC transfers or interactions with contract addresses. For more information, please see [The Ethereum Organization - Transactions](https://ethereum.org/en/developers/docs/transactions/)", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Also known as block height. The block number, which indicates the length of the blockchain, increases after the addition of each new block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block was produced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_HASH": {"name": "BLOCK_HASH", "description": "Block hash is a unique 66-character identifier that is generate when a block is produced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Transaction hash is a unique 66-character identifier that is generated when a transaction is executed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "NONCE": {"name": "NONCE", "description": "The number of transactions sent from a given address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "POSITION": {"name": "POSITION", "description": "The position of the transaction within the block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "The sending address of this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "The receiving address of this transaction. This can be a contract address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MATIC_VALUE": {"name": "MATIC_VALUE", "description": "The value transacted in Matic.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_FEE": {"name": "TX_FEE", "description": "Amount paid to validate the transaction in MATIC.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_PRICE": {"name": "GAS_PRICE", "description": "Cost per unit of gas in Gwei.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_LIMIT": {"name": "GAS_LIMIT", "description": "Maximum amount of gas allocated for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "Gas used by transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CUMULATIVE_GAS_USED": {"name": "CUMULATIVE_GAS_USED", "description": "The total amount of gas used when this transaction was executed in the block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "STATUS": {"name": "STATUS", "description": "Status of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_JSON": {"name": "TX_JSON", "description": "This JSON column contains the transaction details, including event logs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "INPUT_DATA": {"name": "INPUT_DATA", "description": "This column contains additional data for this transaction, and is commonly used as part of a contract interaction or as a message to the recipient.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "The function signature of the contract call.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/gold/core__fact_transactions.yml", "compiled_path": "target/compiled/polygon_models/models/gold/core__fact_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "persist_docs": {"relation": true, "columns": true}}, "created_at": 1672849093.9057322, "compiled_code": "\n\nSELECT\n block_number,\n block_timestamp,\n block_hash,\n tx_hash,\n nonce,\n POSITION,\n origin_function_signature,\n from_address,\n to_address,\n matic_value,\n tx_fee,\n gas_price,\n gas_limit,\n gas_used,\n cumulative_Gas_Used,\n input_data,\n status,\n tx_json\nFROM\n POLYGON_DEV.silver.transactions", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.core.fact_transactions"}, "model.polygon_models.core__fact_token_transfers": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "core", "fqn": ["polygon_models", "gold", "core__fact_token_transfers"], "unique_id": "model.polygon_models.core__fact_token_transfers", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true }\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n raw_amount,\n _log_id\nFROM\n {{ ref('silver__transfers') }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "gold/core__fact_token_transfers.sql", "original_file_path": "models/gold/core__fact_token_transfers.sql", "name": "core__fact_token_transfers", "alias": "fact_token_transfers", "checksum": {"name": "sha256", "checksum": "d1b9ebe7f7db8936e39b0e05ebe220ae27c577a5749141169afb250f0f25c8c2"}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "This table contains events on the Polygon 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. Decimal adjustments for a token address can be found in ```dim_contracts```. This table will not contain transfers of native ETH.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Also known as block height. The block number, which indicates the length of the blockchain, increases after the addition of each new block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block was produced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Transaction hash is a unique 66-character identifier that is generated when a transaction is executed. This will not be unique in this table as a transaction could include multiple transfer events.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "Contract address of the token being transferred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "The sending address of this transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "The receiving address of this transfer. This can be a contract address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RAW_AMOUNT": {"name": "RAW_AMOUNT", "description": "The amount of tokens transferred. This value is not decimal adjusted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_LOG_ID": {"name": "_LOG_ID", "description": "This is the primary key for this table. This is a concatenation of the transaction hash and the event index at which the transfer event occurred. This field can be used to find more details on the event within the ```fact_event_logs``` table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "The function signature of this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The from address of this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The to address of this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/gold/core__fact_token_transfers.yml", "compiled_path": "target/compiled/polygon_models/models/gold/core__fact_token_transfers.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "persist_docs": {"relation": true, "columns": true}}, "created_at": 1672849093.8980658, "compiled_code": "\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n raw_amount,\n _log_id\nFROM\n POLYGON_DEV.silver.transfers", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.core.fact_token_transfers"}, "model.polygon_models.core__fact_traces": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.polygon_models.silver__traces"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "core", "fqn": ["polygon_models", "gold", "core__fact_traces"], "unique_id": "model.polygon_models.core__fact_traces", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true }\n) }}\n\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n from_address,\n to_address,\n matic_value,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n identifier,\n DATA,\n tx_status,\n sub_traces\nFROM\n {{ ref('silver__traces') }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "gold/core__fact_traces.sql", "original_file_path": "models/gold/core__fact_traces.sql", "name": "core__fact_traces", "alias": "fact_traces", "checksum": {"name": "sha256", "checksum": "ed599b32ac5010b16047ba2e6478aaa368da7e4e63471db85e73c0e59eef57c5"}, "tags": [], "refs": [["silver__traces"]], "sources": [], "metrics": [], "description": "This table contains flattened trace data for internal contract calls on the Polygon Blockchain. Hex encoded fields can be decoded to integers by using `polygon.public.udf_hex_to_int()`.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "The block number of this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The block timestamp of this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "The transaction hash for the trace. Please note, this is not necessarily unique in this table as transactions frequently have multiple traces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "The sending address of this trace. This is not necessarily the from address of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "The receiving address of this trace. This is not necessarily the to address of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MATIC_VALUE": {"name": "MATIC_VALUE", "description": "The amount of MATIC transferred in this trace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS": {"name": "GAS", "description": "The gas supplied for this trace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "The gas used for this trace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "INPUT": {"name": "INPUT", "description": "The input data for this trace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "OUTPUT": {"name": "OUTPUT", "description": "The output data for this trace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TYPE": {"name": "TYPE", "description": "The type of internal transaction. Common trace types are `CALL`, `DELEGATECALL`, and `STATICCALL`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "IDENTIFIER": {"name": "IDENTIFIER", "description": "This field represents the position and type of the trace within the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DATA": {"name": "DATA", "description": "The raw JSON data for this trace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_STATUS": {"name": "TX_STATUS", "description": "Status of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SUB_TRACES": {"name": "SUB_TRACES", "description": "The amount of nested sub traces for this trace.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/gold/core__fact_traces.yml", "compiled_path": "target/compiled/polygon_models/models/gold/core__fact_traces.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "persist_docs": {"relation": true, "columns": true}}, "created_at": 1672849093.9030259, "compiled_code": "\n\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n from_address,\n to_address,\n matic_value,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n identifier,\n DATA,\n tx_status,\n sub_traces\nFROM\n POLYGON_DEV.silver.traces", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.core.fact_traces"}, "model.polygon_models.core__fact_blocks": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "core", "fqn": ["polygon_models", "gold", "core__fact_blocks"], "unique_id": "model.polygon_models.core__fact_blocks", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true }\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n network,\n blockchain,\n tx_count,\n difficulty,\n total_difficulty,\n extra_data,\n gas_limit,\n gas_used,\n HASH,\n parent_hash,\n receipts_root,\n sha3_uncles,\n SIZE,\n uncle_blocks,\n block_header_json\nFROM\n {{ ref('silver__blocks') }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "gold/core__fact_blocks.sql", "original_file_path": "models/gold/core__fact_blocks.sql", "name": "core__fact_blocks", "alias": "fact_blocks", "checksum": {"name": "sha256", "checksum": "bdf35257c3e21a9ebb5e8a4efb260b2d8ffa821ba1d573ec7482347739449f33"}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "This table contains block level data for the Polygon Blockchain. This table can be used to analyze trends at a block level, for example gas fees vs. total transactions over time. For more information on EVM transactions, please see [Etherscan Resources](https://etherscan.io/directory/Learning_Resources/Ethereum) or [The Ethereum Organization](https://ethereum.org/en/developers/docs/blocks/)", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Also known as block height. The block number, which indicates the length of the blockchain, increases after the addition of each new block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block was produced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "NETWORK": {"name": "NETWORK", "description": "The network on the blockchain used by a transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "The blockchain on which transactions are being confirmed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_COUNT": {"name": "TX_COUNT", "description": "Total number of transactions within a block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DIFFICULTY": {"name": "DIFFICULTY", "description": "The effort required to mine the block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TOTAL_DIFFICULTY": {"name": "TOTAL_DIFFICULTY", "description": "Total difficulty of the chain at a given block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "EXTRA_DATA": {"name": "EXTRA_DATA", "description": "Any data included by the validator for a given block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_LIMIT": {"name": "GAS_LIMIT", "description": "Total gas limit provided by all transactions in the block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "Total gas used in the block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "HASH": {"name": "HASH", "description": "The hash of the block header for a given block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PARENT_HASH": {"name": "PARENT_HASH", "description": "The hash of the block from which a given block is generated. Also known as the parent block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RECEIPTS_ROOT": {"name": "RECEIPTS_ROOT", "description": "The root of the state trie.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SHA3_UNCLES": {"name": "SHA3_UNCLES", "description": "The mechanism which Ethereum Javascript RLP encodes an empty string.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SIZE": {"name": "SIZE", "description": "Block size, which is determined by a given block's gas limit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "UNCLE_BLOCKS": {"name": "UNCLE_BLOCKS", "description": "Uncle blocks occur when two blocks are mined and broadcasted at the same time, with the same block number. The block validated across the most nodes will be added to the primary chain, and the other one becomes an uncle block. Miners do receive rewards for uncle blocks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_HEADER_JSON": {"name": "BLOCK_HEADER_JSON", "description": "This JSON column contains the block header details.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/gold/core__fact_blocks.yml", "compiled_path": "target/compiled/polygon_models/models/gold/core__fact_blocks.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "persist_docs": {"relation": true, "columns": true}}, "created_at": 1672849093.900696, "compiled_code": "\n\nSELECT\n block_number,\n block_timestamp,\n network,\n blockchain,\n tx_count,\n difficulty,\n total_difficulty,\n extra_data,\n gas_limit,\n gas_used,\n HASH,\n parent_hash,\n receipts_root,\n sha3_uncles,\n SIZE,\n uncle_blocks,\n block_header_json\nFROM\n POLYGON_DEV.silver.blocks", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.core.fact_blocks"}, "model.polygon_models.core__fact_event_logs": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "core", "fqn": ["polygon_models", "gold", "core__fact_event_logs"], "unique_id": "model.polygon_models.core__fact_event_logs", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true }\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n contract_name,\n event_name,\n event_inputs,\n topics,\n DATA,\n event_removed,\n tx_status,\n _log_id\nFROM\n {{ ref('silver__logs') }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "gold/core__fact_event_logs.sql", "original_file_path": "models/gold/core__fact_event_logs.sql", "name": "core__fact_event_logs", "alias": "fact_event_logs", "checksum": {"name": "sha256", "checksum": "29f93e13a4b2e570184152057cd213f07e0553d98206a9675ae4adf94850513d"}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "This table contains flattened event logs from transactions on the Polygon Blockchain. Transactions may have multiple events, which are denoted by the event index for a transaction hash. Therefore, this table is unique on the combination of transaction hash and event index. Event names are decoded in this table where possible. The event inputs column will contain the log details in JSON format. Specific fields can be pulled from this column using the following sample format: ```event_inputs::: as ```.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Also known as block height. The block number, which indicates the length of the blockchain, increases after the addition of each new block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block was produced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Transaction hash is a unique 66-character identifier that is generated when a transaction is executed. This field will not be unique in this table, as a given transaction can include multiple events.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "Event number within a transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "The address interacted with for a given event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CONTRACT_NAME": {"name": "CONTRACT_NAME", "description": "The name of the contract or token, where possible.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "The decoded event name for a given event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "EVENT_INPUTS": {"name": "EVENT_INPUTS", "description": "The decoded event inputs for a given event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TOPICS": {"name": "TOPICS", "description": "The un-decoded event input topics.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DATA": {"name": "DATA", "description": "The un-decoded event data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "EVENT_REMOVED": {"name": "EVENT_REMOVED", "description": "Whether the event has been removed from the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_LOG_ID": {"name": "_LOG_ID", "description": "This is the primary key for this table. This is a concatenation of the transaction hash and the event index at which the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_STATUS": {"name": "TX_STATUS", "description": "Status of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "The function signature of this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The from address of this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The to address of this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/gold/core__fact_event_logs.yml", "compiled_path": "target/compiled/polygon_models/models/gold/core__fact_event_logs.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "persist_docs": {"relation": true, "columns": true}}, "created_at": 1672849093.9374988, "compiled_code": "\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n contract_name,\n event_name,\n event_inputs,\n topics,\n DATA,\n event_removed,\n tx_status,\n _log_id\nFROM\n POLYGON_DEV.silver.logs", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.core.fact_event_logs"}, "model.polygon_models.core__dim_contracts": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.polygon_models.silver__contracts"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "core", "fqn": ["polygon_models", "gold", "core__dim_contracts"], "unique_id": "model.polygon_models.core__dim_contracts", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true }\n) }}\n\nSELECT\n contract_address as address,\n token_symbol AS symbol,\n token_name AS NAME,\n token_decimals AS decimals\nFROM\n {{ ref('silver__contracts') }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "gold/core__dim_contracts.sql", "original_file_path": "models/gold/core__dim_contracts.sql", "name": "core__dim_contracts", "alias": "dim_contracts", "checksum": {"name": "sha256", "checksum": "cc238999aa81fd1fdfd7b33ab106adfe86c1bbd0660d8bad04293e3ae3b98be5"}, "tags": [], "refs": [["silver__contracts"]], "sources": [], "metrics": [], "description": "This table contains the contract addresses and their associated metadata. Includes ERC20 and ERC721 tokens. Metadata is read directly from contracts on the blockchain.", "columns": {"ADDRESS": {"name": "ADDRESS", "description": "The address of the contract.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "The symbol of the contract.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "NAME": {"name": "NAME", "description": "The name of the contract.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DECIMALS": {"name": "DECIMALS", "description": "The number of decimals used to adjust amount for this contract.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/gold/core__dim_contracts.yml", "compiled_path": "target/compiled/polygon_models/models/gold/core__dim_contracts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "persist_docs": {"relation": true, "columns": true}}, "created_at": 1672849093.909051, "compiled_code": "\n\nSELECT\n contract_address as address,\n token_symbol AS symbol,\n token_name AS NAME,\n token_decimals AS decimals\nFROM\n POLYGON_DEV.silver.contracts", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.core.dim_contracts"}, "model.polygon_models.core__dim_labels": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.polygon_models.crosschain.address_labels"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "core", "fqn": ["polygon_models", "gold", "core__dim_labels"], "unique_id": "model.polygon_models.core__dim_labels", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true }\n) }}\n\nSELECT\n blockchain,\n creator,\n address,\n address_name,\n label_type,\n label_subtype,\n project_name\nFROM\n {{ source(\n 'crosschain',\n 'address_labels'\n ) }}\nWHERE\n blockchain = 'polygon'\n AND address LIKE '0x%'", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "gold/core__dim_labels.sql", "original_file_path": "models/gold/core__dim_labels.sql", "name": "core__dim_labels", "alias": "dim_labels", "checksum": {"name": "sha256", "checksum": "9044d91d12f3cd97580f41859132c3ba76fb55adb5a3918218768b09c2af6007"}, "tags": [], "refs": [], "sources": [["crosschain", "address_labels"]], "metrics": [], "description": "This table contains labels for addresses on the Polygon Blockchain.", "columns": {"BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "The name of the blockchain.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CREATOR": {"name": "CREATOR", "description": "The name of the creator of the label.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "Address that the label is for. This is the field that should be used to join other tables with labels.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ADDRESS_NAME": {"name": "ADDRESS_NAME", "description": "The most granular label for this address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL_TYPE": {"name": "LABEL_TYPE", "description": "A high-level category describing the addresses main function or ownership.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL_SUBTYPE": {"name": "LABEL_SUBTYPE", "description": "A sub-category nested within label type providing further detail.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROJECT_NAME": {"name": "PROJECT_NAME", "description": "The name of the project for this address.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/gold/core__dim_labels.yml", "compiled_path": "target/compiled/polygon_models/models/gold/core__dim_labels.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "persist_docs": {"relation": true, "columns": true}}, "created_at": 1672849093.910978, "compiled_code": "\n\nSELECT\n blockchain,\n creator,\n address,\n address_name,\n label_type,\n label_subtype,\n project_name\nFROM\n crosschain.core.address_labels\nWHERE\n blockchain = 'polygon'\n AND address LIKE '0x%'", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.core.dim_labels"}, "model.polygon_models.sushi__ez_lending": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["source.polygon_models.ethereum.fact_hourly_token_prices", "source.polygon_models.symbols_cross_tab.MARKET_ASSET_METADATA", "model.polygon_models.silver__logs", "model.polygon_models.silver__logs", "model.polygon_models.silver__logs", "model.polygon_models.sushi__dim_kashi_pairs", "model.polygon_models.silver__logs", "model.polygon_models.sushi__dim_kashi_pairs", "model.polygon_models.sushi__dim_kashi_pairs"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "_log_id", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "cluster_by": ["block_timestamp::DATE"], "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "sushi", "fqn": ["polygon_models", "sushi", "sushi__ez_lending"], "unique_id": "model.polygon_models.sushi__ez_lending", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n unique_key = '_log_id',\n cluster_by = ['block_timestamp::DATE']\n) }}\n\nwith lending_txns as (\nselect distinct tx_hash,contract_address\nfrom {{ ref('silver__logs') }}\nwhere topics [0]::string = '0x30a8c4f9ab5af7e1309ca87c32377d1a83366c5990472dbf9d262450eae14e38'\n{% if is_incremental() %}\nAND _inserted_timestamp::DATE >= (\n SELECT\n MAX(_inserted_timestamp) ::DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\n\nunlending_txns as (\nselect distinct tx_hash,contract_address\nfrom {{ ref('silver__logs') }}\nwhere topics [0]::string = '0x6e853a5fd6b51d773691f542ebac8513c9992a51380d4c342031056a64114228'\n{% if is_incremental() %}\nAND _inserted_timestamp::DATE >= (\n SELECT\n MAX(_inserted_timestamp) ::DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\n\nLending as (\nselect block_timestamp,\n block_number,\n tx_hash, \n 'Deposit' as action, \n origin_from_address,\n origin_to_address,\n origin_function_signature,\n event_index,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) as asset, \n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) as Lending_pool_address, \n origin_from_address as Lender, \n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) as Lender2, \n TRY_TO_NUMBER(\n public.udf_hex_to_int(SUBSTR(DATA, 3, len(DATA)))::integer\n ) as amount,\n case when Lender = Lender2 then 'no' \n else 'yes' end as Lender_is_a_contract,\n _log_id,\n _inserted_timestamp\nfrom {{ ref('silver__logs') }}\nwhere topics [0] :: STRING = '0x6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a' and tx_hash in (select tx_hash from lending_txns)\nand CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) in (select pair_address from {{ ref('sushi__dim_kashi_pairs') }} )\n{% if is_incremental() %}\nAND _inserted_timestamp::DATE >= (\n SELECT\n MAX(_inserted_timestamp) ::DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n\n),\n\nWithdraw as (\nselect block_timestamp, \n block_number,\n tx_hash, \n 'Withdraw' as action,\n origin_from_address,\n origin_to_address,\n origin_function_signature, \n event_index,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) as asset, \n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) as Lending_pool_address, \n origin_from_address as Lender, \n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) as Lender2, \n TRY_TO_NUMBER(\n public.udf_hex_to_int(SUBSTR(DATA, 3, len(DATA)))::integer\n ) as amount,\n case when Lender = Lender2 then 'no' \n else 'yes' end as Lender_is_a_contract,\n _log_id,\n _inserted_timestamp\nfrom {{ ref('silver__logs') }}\nwhere topics [0] :: STRING = '0x6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a' and tx_hash in (select tx_hash from unlending_txns)\nand CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) in (select pair_address from {{ ref('sushi__dim_kashi_pairs') }} ) \n{% if is_incremental() %}\nAND _inserted_timestamp::DATE >= (\n SELECT\n MAX(_inserted_timestamp) ::DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\n\nFinal as (\nselect * from Lending\nunion all\nselect * from Withdraw\n),\n\n\n\neth_prices AS (\n SELECT\n token_address,\n HOUR,\n symbol,\n AVG(price) AS price\n FROM\n {{ source(\n 'ethereum',\n 'fact_hourly_token_prices'\n ) }}\n WHERE\n 1 = 1\n\n{% if is_incremental() %}\nAND HOUR :: DATE IN (\n SELECT\n DISTINCT block_timestamp :: DATE\n FROM\n Final\n)\n{% else %}\n AND HOUR :: DATE >= '2020-05-05'\n{% endif %}\nGROUP BY\n token_address,\n HOUR,\n symbol\n),\npolygon_eth_crosstab AS (\n SELECT\n NAME,\n symbol,\n MAX (\n CASE\n WHEN platform_id = 'polygon-pos' THEN token_address\n ELSE ''\n END\n ) AS polygon_address,\n MAX (\n CASE\n WHEN platform = 'ethereum' THEN token_address\n ELSE ''\n END\n ) AS eth_address\n FROM\n {{ source(\n 'symbols_cross_tab',\n 'MARKET_ASSET_METADATA'\n ) }}\n GROUP BY\n 1,\n 2\n HAVING\n polygon_address <> ''\n AND eth_address <> ''\n ORDER BY\n 1,\n 2\n),\npolygon_prices AS (\n SELECT\n DISTINCT ep.token_address,\n ep.hour,\n ep.symbol,\n ep.price,\n case when pec.polygon_address = '0x0000000000000000000000000000000000001010' then '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270' \nelse pec.polygon_address end AS polygon_address\n FROM\n eth_prices ep\n LEFT JOIN polygon_eth_crosstab pec\n ON ep.token_address = pec.eth_Address\n),\n\n\n\n\nlabels as (\nselect *\nfrom {{ ref('sushi__dim_kashi_pairs') }}\n)\n\nselect \na.block_timestamp,\na.block_number,\na.tx_hash,\na.action,\na.origin_from_address,\na.origin_to_address,\na.origin_function_signature,\na.asset,\na.Lender2 as depositor,\na.lender_is_a_contract,\na.lending_pool_address,\na.event_index,\ncase when b.asset_decimals is null then a.amount else (a.amount/pow(10,b.asset_decimals)) end as amount,\n(a.amount* c.price)/pow(10,b.asset_decimals) as amount_USD,\nb.pair_name as lending_pool,\nb.asset_symbol as symbol,\na._log_id,\n_inserted_timestamp\nfrom FINAL a\nLEFT JOIN polygon_prices c\nON LOWER(a.asset) = LOWER(\n c.polygon_address\n)\nAND DATE_TRUNC(\n 'hour',\n a.block_timestamp\n) = c.hour\nleft join labels b \non a.Lending_pool_address = b.pair_address", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "sushi/sushi__ez_lending.sql", "original_file_path": "models/sushi/sushi__ez_lending.sql", "name": "sushi__ez_lending", "alias": "ez_lending", "checksum": {"name": "sha256", "checksum": "a03880acd5bcb9e283895432050b27635cceb75095767e9ca8e7bc235ee05fb2"}, "tags": [], "refs": [["silver__logs"], ["silver__logs"], ["silver__logs"], ["sushi__dim_kashi_pairs"], ["silver__logs"], ["sushi__dim_kashi_pairs"], ["sushi__dim_kashi_pairs"]], "sources": [["ethereum", "fact_hourly_token_prices"], ["symbols_cross_tab", "MARKET_ASSET_METADATA"]], "metrics": [], "description": "This is a table that shows all the events on polygon that are related to providing capital for depositing/withdrawing capital to/from sushi lending pools", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Also known as block height. The block number, which indicates the length of the blockchain, increases after the addition of each new block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block was produced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Transaction hash is a unique 66-character identifier that is generated when a transaction is executed. This field will not be unique in this table, as a given transaction can include multiple events.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LENDING_POOL_ADDRESS": {"name": "LENDING_POOL_ADDRESS", "description": "The address of the lending pool. For sushi this will be the address of the kashi pair.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ACTION": {"name": "ACTION", "description": "The action that the user is taking.\n Deposit: user is depositing funds to be used for lending\n Withdraw: user has changed their mind and are no longer willing to lend, so they withdraw their asset", "meta": {}, "data_type": null, "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "The amount of the asset that the user is depositing or withdrawing, depending on the action.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "AMOUNT_USD": {"name": "AMOUNT_USD", "description": "The amount of the asset that the user is depositing or withdrawing, depending on the action.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ASSET": {"name": "ASSET", "description": "The address of the asset (token) that is being deposited/withdrawn, depending on the action", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "The symbol of the asset that is lent or withdrawn, depending on the action", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DEPOSITOR": {"name": "DEPOSITOR", "description": "Its the address of the user who is depositing for lending or withdrawing, depending on the action.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "Event number within a transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_LOG_ID": {"name": "_LOG_ID", "description": "This is the primary key for this table. This is a concatenation of the transaction hash and the event index at which the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The address of the user who initiates the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The person who initiates the depositing transaction has to interact with this address. This address belongs to the lending platform or directs the transactio there.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LENDING_POOL": {"name": "LENDING_POOL", "description": "The name of the lending pool.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LENDER_IS_A_CONTRACT": {"name": "LENDER_IS_A_CONTRACT", "description": "If the depositor is a contract then its a Yes, if the depositor is a normal address it is a No.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/sushi/sushi__ez_lending.yml", "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "unique_key": "_log_id", "cluster_by": ["block_timestamp::DATE"]}, "created_at": 1672849093.9404202, "compiled_code": "\n\nwith lending_txns as (\nselect distinct tx_hash,contract_address\nfrom POLYGON_DEV.silver.logs\nwhere topics [0]::string = '0x30a8c4f9ab5af7e1309ca87c32377d1a83366c5990472dbf9d262450eae14e38'\n\nAND _inserted_timestamp::DATE >= (\n SELECT\n MAX(_inserted_timestamp) ::DATE - 2\n FROM\n POLYGON_DEV.sushi.ez_lending\n)\n\n),\n\nunlending_txns as (\nselect distinct tx_hash,contract_address\nfrom POLYGON_DEV.silver.logs\nwhere topics [0]::string = '0x6e853a5fd6b51d773691f542ebac8513c9992a51380d4c342031056a64114228'\n\nAND _inserted_timestamp::DATE >= (\n SELECT\n MAX(_inserted_timestamp) ::DATE - 2\n FROM\n POLYGON_DEV.sushi.ez_lending\n)\n\n),\n\nLending as (\nselect block_timestamp,\n block_number,\n tx_hash, \n 'Deposit' as action, \n origin_from_address,\n origin_to_address,\n origin_function_signature,\n event_index,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) as asset, \n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) as Lending_pool_address, \n origin_from_address as Lender, \n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) as Lender2, \n TRY_TO_NUMBER(\n public.udf_hex_to_int(SUBSTR(DATA, 3, len(DATA)))::integer\n ) as amount,\n case when Lender = Lender2 then 'no' \n else 'yes' end as Lender_is_a_contract,\n _log_id,\n _inserted_timestamp\nfrom POLYGON_DEV.silver.logs\nwhere topics [0] :: STRING = '0x6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a' and tx_hash in (select tx_hash from lending_txns)\nand CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) in (select pair_address from POLYGON_DEV.sushi.dim_kashi_pairs )\n\nAND _inserted_timestamp::DATE >= (\n SELECT\n MAX(_inserted_timestamp) ::DATE - 2\n FROM\n POLYGON_DEV.sushi.ez_lending\n)\n\n\n),\n\nWithdraw as (\nselect block_timestamp, \n block_number,\n tx_hash, \n 'Withdraw' as action,\n origin_from_address,\n origin_to_address,\n origin_function_signature, \n event_index,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) as asset, \n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) as Lending_pool_address, \n origin_from_address as Lender, \n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) as Lender2, \n TRY_TO_NUMBER(\n public.udf_hex_to_int(SUBSTR(DATA, 3, len(DATA)))::integer\n ) as amount,\n case when Lender = Lender2 then 'no' \n else 'yes' end as Lender_is_a_contract,\n _log_id,\n _inserted_timestamp\nfrom POLYGON_DEV.silver.logs\nwhere topics [0] :: STRING = '0x6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a' and tx_hash in (select tx_hash from unlending_txns)\nand CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) in (select pair_address from POLYGON_DEV.sushi.dim_kashi_pairs ) \n\nAND _inserted_timestamp::DATE >= (\n SELECT\n MAX(_inserted_timestamp) ::DATE - 2\n FROM\n POLYGON_DEV.sushi.ez_lending\n)\n\n),\n\nFinal as (\nselect * from Lending\nunion all\nselect * from Withdraw\n),\n\n\n\neth_prices AS (\n SELECT\n token_address,\n HOUR,\n symbol,\n AVG(price) AS price\n FROM\n ethereum.core.fact_hourly_token_prices\n WHERE\n 1 = 1\n\n\nAND HOUR :: DATE IN (\n SELECT\n DISTINCT block_timestamp :: DATE\n FROM\n Final\n)\n\nGROUP BY\n token_address,\n HOUR,\n symbol\n),\npolygon_eth_crosstab AS (\n SELECT\n NAME,\n symbol,\n MAX (\n CASE\n WHEN platform_id = 'polygon-pos' THEN token_address\n ELSE ''\n END\n ) AS polygon_address,\n MAX (\n CASE\n WHEN platform = 'ethereum' THEN token_address\n ELSE ''\n END\n ) AS eth_address\n FROM\n FLIPSIDE_PROD_DB.SILVER.MARKET_ASSET_METADATA\n GROUP BY\n 1,\n 2\n HAVING\n polygon_address <> ''\n AND eth_address <> ''\n ORDER BY\n 1,\n 2\n),\npolygon_prices AS (\n SELECT\n DISTINCT ep.token_address,\n ep.hour,\n ep.symbol,\n ep.price,\n case when pec.polygon_address = '0x0000000000000000000000000000000000001010' then '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270' \nelse pec.polygon_address end AS polygon_address\n FROM\n eth_prices ep\n LEFT JOIN polygon_eth_crosstab pec\n ON ep.token_address = pec.eth_Address\n),\n\n\n\n\nlabels as (\nselect *\nfrom POLYGON_DEV.sushi.dim_kashi_pairs\n)\n\nselect \na.block_timestamp,\na.block_number,\na.tx_hash,\na.action,\na.origin_from_address,\na.origin_to_address,\na.origin_function_signature,\na.asset,\na.Lender2 as depositor,\na.lender_is_a_contract,\na.lending_pool_address,\na.event_index,\ncase when b.asset_decimals is null then a.amount else (a.amount/pow(10,b.asset_decimals)) end as amount,\n(a.amount* c.price)/pow(10,b.asset_decimals) as amount_USD,\nb.pair_name as lending_pool,\nb.asset_symbol as symbol,\na._log_id,\n_inserted_timestamp\nfrom FINAL a\nLEFT JOIN polygon_prices c\nON LOWER(a.asset) = LOWER(\n c.polygon_address\n)\nAND DATE_TRUNC(\n 'hour',\n a.block_timestamp\n) = c.hour\nleft join labels b \non a.Lending_pool_address = b.pair_address", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.sushi.ez_lending"}, "model.polygon_models.sushi__ez_swaps": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["source.polygon_models.ethereum.fact_hourly_token_prices", "source.polygon_models.symbols_cross_tab.MARKET_ASSET_METADATA", "model.polygon_models.silver__logs", "model.polygon_models.sushi__dim_dex_pools", "model.polygon_models.sushi__dim_dex_pools"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "_log_id", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "cluster_by": ["block_timestamp::DATE"], "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "sushi", "fqn": ["polygon_models", "sushi", "sushi__ez_swaps"], "unique_id": "model.polygon_models.sushi__ez_swaps", "raw_code": "{{ config(\n materialized = 'incremental',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n unique_key = '_log_id',\n cluster_by = ['block_timestamp::DATE']\n) }}\n\nWITH swap_events AS (\n\n SELECT\n block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n public.udf_hex_to_int(segmented_data[0]::string)::integer\n ) AS amount0In,\n TRY_TO_NUMBER(\n public.udf_hex_to_int(segmented_data[1]::string)::integer\n ) AS amount1In,\n TRY_TO_NUMBER(\n public.udf_hex_to_int(segmented_data[2]::string)::integer\n ) AS amount0Out,\n TRY_TO_NUMBER(\n public.udf_hex_to_int(segmented_data[3]::string)::integer \n ) AS amount1Out,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS tx_to,\n event_index,\n _log_id,\n _inserted_timestamp\n FROM\n {{ ref('silver__logs') }}\n WHERE\n topics[0]::string = '0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822'\n AND tx_status = 'SUCCESS'\n AND contract_address IN (\n SELECT\n DISTINCT pool_address\n FROM\n {{ ref('sushi__dim_dex_pools') }}\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n contract_address,\n event_name,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND token1_decimals IS NOT NULL THEN amount1In / power(\n 10,\n token1_decimals\n ) :: FLOAT\n WHEN amount0In <> 0\n AND token0_decimals IS NOT NULL THEN amount0In / power(\n 10,\n token0_decimals\n ) :: FLOAT\n WHEN amount1In <> 0\n AND token1_decimals IS NOT NULL THEN amount1In / power(\n 10,\n token1_decimals\n ) :: FLOAT\n WHEN amount0In <> 0\n AND token0_decimals IS NULL THEN amount0In\n WHEN amount1In <> 0\n AND token1_decimals IS NULL THEN amount1In\n END AS amount_in,\n CASE\n WHEN amount0Out <> 0\n AND token0_decimals IS NOT NULL THEN amount0Out / power(\n 10,\n token0_decimals\n ) :: FLOAT\n WHEN amount1Out <> 0\n AND token1_decimals IS NOT NULL THEN amount1Out / power(\n 10,\n token1_decimals\n ) :: FLOAT\n WHEN amount0Out <> 0\n AND token0_decimals IS NULL THEN amount0Out\n WHEN amount1Out <> 0\n AND token1_decimals IS NULL THEN amount1Out\n END AS amount_out,\n sender,\n tx_to,\n event_index,\n _log_id,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0 THEN token1_address\n WHEN amount0In <> 0 THEN token0_address\n WHEN amount1In <> 0 THEN token1_address\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0_address\n WHEN amount1Out <> 0 THEN token1_address\n END AS token_out,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0 THEN token1_symbol\n WHEN amount0In <> 0 THEN token0_symbol\n WHEN amount1In <> 0 THEN token1_symbol\n END AS symbol_in,\n CASE\n WHEN amount0Out <> 0 THEN token0_symbol\n WHEN amount1Out <> 0 THEN token1_symbol\n END AS symbol_out,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0 THEN token1_decimals\n WHEN amount0In <> 0 THEN token0_decimals\n WHEN amount1In <> 0 THEN token1_decimals\n END AS decimals_in,\n CASE\n WHEN amount0Out <> 0 THEN token0_decimals\n WHEN amount1Out <> 0 THEN token1_decimals\n END AS decimals_out,\n token0_decimals,\n token1_decimals,\n token0_symbol,\n token1_symbol,\n pool_name,\n _inserted_timestamp\n FROM\n swap_events\n LEFT JOIN {{ ref('sushi__dim_dex_pools') }}\n bb\n ON swap_events.contract_address = bb.pool_address\n),\neth_prices AS (\n SELECT\n token_address,\n HOUR,\n symbol,\n AVG(price) AS price\n FROM\n {{ source(\n 'ethereum',\n 'fact_hourly_token_prices'\n ) }}\n WHERE\n 1 = 1\n\n{% if is_incremental() %}\nAND HOUR :: DATE IN (\n SELECT\n DISTINCT block_timestamp :: DATE\n FROM\n swap_events\n)\n{% else %}\n AND HOUR :: DATE >= '2020-05-05'\n{% endif %}\nGROUP BY\n token_address,\n HOUR,\n symbol\n),\npolygon_eth_crosstab AS (\n SELECT\n NAME,\n symbol,\n MAX (\n CASE\n WHEN platform_id = 'polygon-pos' THEN token_address\n ELSE ''\n END\n ) AS polygon_address,\n MAX (\n CASE\n WHEN platform = 'ethereum' THEN token_address\n ELSE ''\n END\n ) AS eth_address\n FROM\n {{ source(\n 'symbols_cross_tab',\n 'MARKET_ASSET_METADATA'\n ) }}\n GROUP BY\n 1,\n 2\n HAVING\n polygon_address <> ''\n AND eth_address <> ''\n ORDER BY\n 1,\n 2\n),\npolygon_prices AS (\n SELECT\n DISTINCT ep.token_address,\n ep.hour,\n ep.symbol,\n ep.price,\n pec.polygon_address AS polygon_address\n FROM\n eth_prices ep\n LEFT JOIN polygon_eth_crosstab pec\n ON ep.token_address = pec.eth_Address\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n 'sushiswap' AS platform,\n pool_name,\n event_name,\n amount_in,\n CASE\n WHEN decimals_in IS NOT NULL\n AND amount_in * pIn.price <= 5 * amount_out * pOut.price\n AND amount_out * pOut.price <= 5 * amount_in * pIn.price THEN amount_in * pIn.price\n WHEN decimals_in IS NOT NULL and decimals_out is null then amount_in * pIn.price\n ELSE NULL\n END AS amount_in_usd,\n amount_out,\n CASE\n WHEN decimals_out IS NOT NULL\n AND amount_in * pIn.price <= 5 * amount_out * pOut.price\n AND amount_out * pOut.price <= 5 * amount_in * pIn.price THEN amount_out * pOut.price\n WHEN decimals_out IS NOT NULL and decimals_in is null then amount_out * pOut.price\n ELSE NULL\n END AS amount_out_usd,\n sender,\n tx_to,\n event_index,\n token_in,\n token_out,\n symbol_in,\n symbol_out,\n _log_id,\n _inserted_timestamp\nFROM\n FINAL wp\n LEFT JOIN polygon_prices pIn\n ON LOWER(token_in) = LOWER(\n pIn.polygon_address\n )\n AND DATE_TRUNC(\n 'hour',\n wp.block_timestamp\n ) = pIn.hour\n LEFT JOIN polygon_prices pOut\n ON LOWER(token_out) = LOWER(\n pOut.polygon_address\n )\n AND DATE_TRUNC(\n 'hour',\n wp.block_timestamp\n ) = pOut.hour", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "sushi/sushi__ez_swaps.sql", "original_file_path": "models/sushi/sushi__ez_swaps.sql", "name": "sushi__ez_swaps", "alias": "ez_swaps", "checksum": {"name": "sha256", "checksum": "80138be1a7d61d6673aebaf3ed0c7fa417c2ca83b5b48cee72c43128465fa79a"}, "tags": [], "refs": [["silver__logs"], ["sushi__dim_dex_pools"], ["sushi__dim_dex_pools"]], "sources": [["ethereum", "fact_hourly_token_prices"], ["symbols_cross_tab", "MARKET_ASSET_METADATA"]], "metrics": [], "description": "This table currently contains swap events from the ```fact_event_logs``` table for SushiSwap, along with other helpful columns including an amount USD where possible. \nNote: A rule has been put in place to null out the amount_USD if that number is too divergent between amount_in_USD and amount_out_usd. This can happen for swaps of less liquid tokens during very high fluctuation of price.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Also known as block height. The block number, which indicates the length of the blockchain, increases after the addition of each new block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block was produced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Transaction hash is a unique 66-character identifier that is generated when a transaction is executed. This field will not be unique in this table, as a given transaction can include multiple events.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "The address interacted with for a given event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "The decoded event name for a given event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "AMOUNT_IN": {"name": "AMOUNT_IN", "description": "The amount of tokens put into the swap.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "AMOUNT_OUT": {"name": "AMOUNT_OUT", "description": "The amount of tokens taken out of or received from the swap.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "AMOUNT_IN_USD": {"name": "AMOUNT_IN_USD", "description": "The amount of tokens put into the swap converted to USD using the price of the token.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "AMOUNT_OUT_USD": {"name": "AMOUNT_OUT_USD", "description": "The amount of tokens taken out of or received from the swap converted to USD using the price of the token.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TOKEN_IN": {"name": "TOKEN_IN", "description": "The address of the token sent for swap.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TOKEN_OUT": {"name": "TOKEN_OUT", "description": "The address of the token being swapped to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SYMBOL_IN": {"name": "SYMBOL_IN", "description": "The symbol of the token sent for swap.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SYMBOL_OUT": {"name": "SYMBOL_OUT", "description": "The symbol of the token being swapped to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SENDER": {"name": "SENDER", "description": "The Router is the Sender in the swap function.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_TO": {"name": "TX_TO", "description": "The tx_to is the address who receives the swapped token. This corresponds to the \"to\" field in the swap function.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "This field denotes which application the liquidity pool belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "Event number within a transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_LOG_ID": {"name": "_LOG_ID", "description": "This is the primary key for this table. This is a concatenation of the transaction hash and the event index at which the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "The function signature of the contract call.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The from address of this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The to address of this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/sushi/sushi__ez_swaps.yml", "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "persist_docs": {"relation": true, "columns": true}, "unique_key": "_log_id", "cluster_by": ["block_timestamp::DATE"]}, "created_at": 1672849093.988415, "compiled_code": "\n\nWITH swap_events AS (\n\n SELECT\n block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n public.udf_hex_to_int(segmented_data[0]::string)::integer\n ) AS amount0In,\n TRY_TO_NUMBER(\n public.udf_hex_to_int(segmented_data[1]::string)::integer\n ) AS amount1In,\n TRY_TO_NUMBER(\n public.udf_hex_to_int(segmented_data[2]::string)::integer\n ) AS amount0Out,\n TRY_TO_NUMBER(\n public.udf_hex_to_int(segmented_data[3]::string)::integer \n ) AS amount1Out,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS tx_to,\n event_index,\n _log_id,\n _inserted_timestamp\n FROM\n POLYGON_DEV.silver.logs\n WHERE\n topics[0]::string = '0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822'\n AND tx_status = 'SUCCESS'\n AND contract_address IN (\n SELECT\n DISTINCT pool_address\n FROM\n POLYGON_DEV.sushi.dim_dex_pools\n )\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n POLYGON_DEV.sushi.ez_swaps\n)\n\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n contract_address,\n event_name,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND token1_decimals IS NOT NULL THEN amount1In / power(\n 10,\n token1_decimals\n ) :: FLOAT\n WHEN amount0In <> 0\n AND token0_decimals IS NOT NULL THEN amount0In / power(\n 10,\n token0_decimals\n ) :: FLOAT\n WHEN amount1In <> 0\n AND token1_decimals IS NOT NULL THEN amount1In / power(\n 10,\n token1_decimals\n ) :: FLOAT\n WHEN amount0In <> 0\n AND token0_decimals IS NULL THEN amount0In\n WHEN amount1In <> 0\n AND token1_decimals IS NULL THEN amount1In\n END AS amount_in,\n CASE\n WHEN amount0Out <> 0\n AND token0_decimals IS NOT NULL THEN amount0Out / power(\n 10,\n token0_decimals\n ) :: FLOAT\n WHEN amount1Out <> 0\n AND token1_decimals IS NOT NULL THEN amount1Out / power(\n 10,\n token1_decimals\n ) :: FLOAT\n WHEN amount0Out <> 0\n AND token0_decimals IS NULL THEN amount0Out\n WHEN amount1Out <> 0\n AND token1_decimals IS NULL THEN amount1Out\n END AS amount_out,\n sender,\n tx_to,\n event_index,\n _log_id,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0 THEN token1_address\n WHEN amount0In <> 0 THEN token0_address\n WHEN amount1In <> 0 THEN token1_address\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0_address\n WHEN amount1Out <> 0 THEN token1_address\n END AS token_out,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0 THEN token1_symbol\n WHEN amount0In <> 0 THEN token0_symbol\n WHEN amount1In <> 0 THEN token1_symbol\n END AS symbol_in,\n CASE\n WHEN amount0Out <> 0 THEN token0_symbol\n WHEN amount1Out <> 0 THEN token1_symbol\n END AS symbol_out,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0 THEN token1_decimals\n WHEN amount0In <> 0 THEN token0_decimals\n WHEN amount1In <> 0 THEN token1_decimals\n END AS decimals_in,\n CASE\n WHEN amount0Out <> 0 THEN token0_decimals\n WHEN amount1Out <> 0 THEN token1_decimals\n END AS decimals_out,\n token0_decimals,\n token1_decimals,\n token0_symbol,\n token1_symbol,\n pool_name,\n _inserted_timestamp\n FROM\n swap_events\n LEFT JOIN POLYGON_DEV.sushi.dim_dex_pools\n bb\n ON swap_events.contract_address = bb.pool_address\n),\neth_prices AS (\n SELECT\n token_address,\n HOUR,\n symbol,\n AVG(price) AS price\n FROM\n ethereum.core.fact_hourly_token_prices\n WHERE\n 1 = 1\n\n\nAND HOUR :: DATE IN (\n SELECT\n DISTINCT block_timestamp :: DATE\n FROM\n swap_events\n)\n\nGROUP BY\n token_address,\n HOUR,\n symbol\n),\npolygon_eth_crosstab AS (\n SELECT\n NAME,\n symbol,\n MAX (\n CASE\n WHEN platform_id = 'polygon-pos' THEN token_address\n ELSE ''\n END\n ) AS polygon_address,\n MAX (\n CASE\n WHEN platform = 'ethereum' THEN token_address\n ELSE ''\n END\n ) AS eth_address\n FROM\n FLIPSIDE_PROD_DB.SILVER.MARKET_ASSET_METADATA\n GROUP BY\n 1,\n 2\n HAVING\n polygon_address <> ''\n AND eth_address <> ''\n ORDER BY\n 1,\n 2\n),\npolygon_prices AS (\n SELECT\n DISTINCT ep.token_address,\n ep.hour,\n ep.symbol,\n ep.price,\n pec.polygon_address AS polygon_address\n FROM\n eth_prices ep\n LEFT JOIN polygon_eth_crosstab pec\n ON ep.token_address = pec.eth_Address\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n 'sushiswap' AS platform,\n pool_name,\n event_name,\n amount_in,\n CASE\n WHEN decimals_in IS NOT NULL\n AND amount_in * pIn.price <= 5 * amount_out * pOut.price\n AND amount_out * pOut.price <= 5 * amount_in * pIn.price THEN amount_in * pIn.price\n WHEN decimals_in IS NOT NULL and decimals_out is null then amount_in * pIn.price\n ELSE NULL\n END AS amount_in_usd,\n amount_out,\n CASE\n WHEN decimals_out IS NOT NULL\n AND amount_in * pIn.price <= 5 * amount_out * pOut.price\n AND amount_out * pOut.price <= 5 * amount_in * pIn.price THEN amount_out * pOut.price\n WHEN decimals_out IS NOT NULL and decimals_in is null then amount_out * pOut.price\n ELSE NULL\n END AS amount_out_usd,\n sender,\n tx_to,\n event_index,\n token_in,\n token_out,\n symbol_in,\n symbol_out,\n _log_id,\n _inserted_timestamp\nFROM\n FINAL wp\n LEFT JOIN polygon_prices pIn\n ON LOWER(token_in) = LOWER(\n pIn.polygon_address\n )\n AND DATE_TRUNC(\n 'hour',\n wp.block_timestamp\n ) = pIn.hour\n LEFT JOIN polygon_prices pOut\n ON LOWER(token_out) = LOWER(\n pOut.polygon_address\n )\n AND DATE_TRUNC(\n 'hour',\n wp.block_timestamp\n ) = pOut.hour", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.sushi.ez_swaps"}, "model.polygon_models.sushi__dim_dex_pools": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.polygon_models.polygon_dex_pools.SUSHI_DIM_DEX_POOLS"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "sushi", "fqn": ["polygon_models", "sushi", "sushi__dim_dex_pools"], "unique_id": "model.polygon_models.sushi__dim_dex_pools", "raw_code": "{{ config(\n materialized = 'table'\n) }}\n\n SELECT\n pair_address as pool_address,\n pair_name as pool_name,\n tokens_0_address as token0_address,\n tokens_0_name as token0_symbol,\n tokens_1_address as token1_address,\n tokens_1_name as token1_symbol,\n Case when tokens_0_name in (select distinct b.symbol\n from ETHEREUM.CORE.DIM_DEX_LIQUIDITY_POOLS a\n left join ETHEREUM.CORE.DIM_CONTRACTS b\n on a.token0 = b.address\n where platform = 'sushiswap'\n and b.decimals is not null and b.decimals = 18) then 18\n when tokens_0_name = 'WMATIC' then 18\n when tokens_0_name = 'WBTC' then 8\n when tokens_0_name in ('USDC','USDC','USDR','USDT') then 6\n End as token0_decimals,\n Case when tokens_1_name in (select distinct b.symbol\n from ETHEREUM.CORE.DIM_DEX_LIQUIDITY_POOLS a\n left join ETHEREUM.CORE.DIM_CONTRACTS b\n on a.token0 = b.address\n where platform = 'sushiswap'\n and b.decimals is not null and b.decimals = 18) then 18\n when tokens_0_name = 'WMATIC' then 18\n when tokens_1_name = 'WBTC' then 8\n when tokens_1_name in ('USDC','USDC','USDR','USDT') then 6\n End as token1_decimals \n FROM\n {{ source(\n 'polygon_dex_pools',\n 'SUSHI_DIM_DEX_POOLS'\n ) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "sushi/sushi__dim_dex_pools.sql", "original_file_path": "models/sushi/sushi__dim_dex_pools.sql", "name": "sushi__dim_dex_pools", "alias": "dim_dex_pools", "checksum": {"name": "sha256", "checksum": "6ffa84637a2f15043f868c2f1bbefe5c1dcdc818334047d1714c557104c1a3ad"}, "tags": [], "refs": [], "sources": [["polygon_dex_pools", "SUSHI_DIM_DEX_POOLS"]], "metrics": [], "description": "This table contains details on different Liquidity Pools belonging to sushiswap on the Polygon blockchain", "columns": {"POOL_ADDRESS": {"name": "POOL_ADDRESS", "description": "The contract address for the liquidity pool.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "POOL_NAME": {"name": "POOL_NAME", "description": "The name of the liquidity pool, where possible.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TOKEN0_ADDRESS": {"name": "TOKEN0_ADDRESS", "description": "Token 0 is the first token in the pair, and will show up first within the event logs for relevant transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TOKEN1_ADDRESS": {"name": "TOKEN1_ADDRESS", "description": "Token 1 is the second token in the pair, and will show up second within the event logs for relevant transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TOKEN0_SYMBOL": {"name": "TOKEN0_SYMBOL", "description": "The symbol belonging to the address of the token", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TOKEN1_SYMBOL": {"name": "TOKEN1_SYMBOL", "description": "The symbol belonging to the address of the token", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TOKEN0_DECIMALS": {"name": "TOKEN0_DECIMALS", "description": "The number of decimal places this contract needs adjusted where token values exist. For example, use the decimal field to correctly transform raw amounts in ```fact_transactions```.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TOKEN1_DECIMALS": {"name": "TOKEN1_DECIMALS", "description": "The number of decimal places this contract needs adjusted where token values exist. For example, use the decimal field to correctly transform raw amounts in ```fact_transactions```.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/sushi/sushi__dim_dex_pools.yml", "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__dim_dex_pools.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table"}, "created_at": 1672849094.095506, "compiled_code": "\n\n SELECT\n pair_address as pool_address,\n pair_name as pool_name,\n tokens_0_address as token0_address,\n tokens_0_name as token0_symbol,\n tokens_1_address as token1_address,\n tokens_1_name as token1_symbol,\n Case when tokens_0_name in (select distinct b.symbol\n from ETHEREUM.CORE.DIM_DEX_LIQUIDITY_POOLS a\n left join ETHEREUM.CORE.DIM_CONTRACTS b\n on a.token0 = b.address\n where platform = 'sushiswap'\n and b.decimals is not null and b.decimals = 18) then 18\n when tokens_0_name = 'WMATIC' then 18\n when tokens_0_name = 'WBTC' then 8\n when tokens_0_name in ('USDC','USDC','USDR','USDT') then 6\n End as token0_decimals,\n Case when tokens_1_name in (select distinct b.symbol\n from ETHEREUM.CORE.DIM_DEX_LIQUIDITY_POOLS a\n left join ETHEREUM.CORE.DIM_CONTRACTS b\n on a.token0 = b.address\n where platform = 'sushiswap'\n and b.decimals is not null and b.decimals = 18) then 18\n when tokens_0_name = 'WMATIC' then 18\n when tokens_1_name = 'WBTC' then 8\n when tokens_1_name in ('USDC','USDC','USDR','USDT') then 6\n End as token1_decimals \n FROM\n polygon.bronze.SUSHI_DIM_DEX_POOLS", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.sushi.dim_dex_pools"}, "model.polygon_models.sushi__ez_borrowing": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["source.polygon_models.ethereum.fact_hourly_token_prices", "source.polygon_models.symbols_cross_tab.MARKET_ASSET_METADATA", "model.polygon_models.silver__logs", "model.polygon_models.silver__logs", "model.polygon_models.silver__logs", "model.polygon_models.silver__logs", "model.polygon_models.silver__logs", "model.polygon_models.sushi__dim_kashi_pairs", "model.polygon_models.silver__logs", "model.polygon_models.sushi__dim_kashi_pairs", "model.polygon_models.silver__logs", "model.polygon_models.sushi__dim_kashi_pairs", "model.polygon_models.silver__logs", "model.polygon_models.sushi__dim_kashi_pairs", "model.polygon_models.silver__logs", "model.polygon_models.sushi__dim_kashi_pairs", "model.polygon_models.silver__logs", "model.polygon_models.sushi__dim_kashi_pairs", "model.polygon_models.sushi__dim_kashi_pairs"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "_log_id", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "cluster_by": ["block_timestamp::DATE"], "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "sushi", "fqn": ["polygon_models", "sushi", "sushi__ez_borrowing"], "unique_id": "model.polygon_models.sushi__ez_borrowing", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n unique_key = '_log_id',\n cluster_by = ['block_timestamp::DATE']\n) }}\n\nWITH borrow_txns AS (\n\n SELECT\n DISTINCT tx_hash,\n contract_address\n FROM\n {{ ref('silver__logs') }}\n WHERE\n topics [0] :: STRING = '0x3a5151e57d3bc9798e7853034ac52293d1a0e12a2b44725e75b03b21f86477a6'\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\nrepay_txns AS (\n SELECT\n DISTINCT tx_hash,\n contract_address\n FROM\n {{ ref('silver__logs') }}\n WHERE\n topics [0] :: STRING = '0xc8e512d8f188ca059984b5853d2bf653da902696b8512785b182b2c813789a6e'\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\nadd_asset AS (\n SELECT\n DISTINCT tx_hash,\n contract_address\n FROM\n {{ ref('silver__logs') }}\n WHERE\n topics [0] :: STRING = '0x30a8c4f9ab5af7e1309ca87c32377d1a83366c5990472dbf9d262450eae14e38'\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\nremove_asset AS (\n SELECT\n DISTINCT tx_hash,\n contract_address\n FROM\n {{ ref('silver__logs') }}\n WHERE\n topics [0] :: STRING = '0x6e853a5fd6b51d773691f542ebac8513c9992a51380d4c342031056a64114228'\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\nborrow AS (\n SELECT\n block_timestamp,\n block_number,\n tx_hash,\n 'Borrow' AS action,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n CONCAT ('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset,\n CONCAT ('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS lending_pool_address,\n origin_from_address AS borrower,\n CONCAT ('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS borrower2,\n TRY_TO_NUMBER(\n PUBLIC.udf_hex_to_int(SUBSTR(DATA, 3, len(DATA))) :: INTEGER) AS amount,\n CASE\n WHEN borrower = borrower2 THEN 'no'\n ELSE 'yes'\n END AS borrower_is_a_contract,\n _log_id,\n _inserted_timestamp\n FROM\n {{ ref('silver__logs') }}\n WHERE\n topics [0] :: STRING = '0x6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n borrow_txns\n )\n AND CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) IN (\n SELECT\n pair_address\n FROM\n {{ ref('sushi__dim_kashi_pairs') }}\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\nadd_coll_same_txn AS (\n SELECT\n block_timestamp,\n block_number,\n tx_hash,\n 'add collateral' AS action,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n CONCAT ('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS lending_pool_address,\n origin_from_address AS borrower,\n CONCAT ('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower2,\n TRY_TO_NUMBER(\n PUBLIC.udf_hex_to_int(SUBSTR(DATA, 3, len(DATA))) :: INTEGER) AS amount,\n CASE\n WHEN borrower = borrower2 THEN 'no'\n ELSE 'yes'\n END AS borrower_is_a_contract,\n _log_id,\n _inserted_timestamp\n FROM\n {{ ref('silver__logs') }}\n WHERE\n topics [0] :: STRING = '0x6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n borrow_txns\n )\n AND CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) IN (\n SELECT\n pair_address\n FROM\n {{ ref('sushi__dim_kashi_pairs') }}\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\nrepay AS (\n SELECT\n block_timestamp,\n block_number,\n tx_hash,\n 'Repay' AS action,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n CONCAT ('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset,\n CONCAT ('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS lending_pool_address,\n origin_from_address AS borrower,\n CONCAT ('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower2,\n TRY_TO_NUMBER(\n PUBLIC.udf_hex_to_int(SUBSTR(DATA, 3, len(DATA))) :: INTEGER) AS amount,\n CASE\n WHEN borrower = borrower2 THEN 'no'\n ELSE 'yes'\n END AS lender_is_a_contract,\n _log_id,\n _inserted_timestamp\n FROM\n {{ ref('silver__logs') }}\n WHERE\n topics [0] :: STRING = '0x6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n repay_txns\n )\n AND CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) IN (\n SELECT\n pair_address\n FROM\n {{ ref('sushi__dim_kashi_pairs') }}\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\nremove_coll_same_txn AS (\n SELECT\n block_timestamp,\n block_number,\n tx_hash,\n 'Remove collateral' AS action,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS lending_pool_address,\n origin_from_address AS borrower,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS borrower2,\n TRY_TO_NUMBER(\n PUBLIC.udf_hex_to_int(SUBSTR(DATA, 3, len(DATA))) :: INTEGER) AS amount,\n CASE\n WHEN borrower = borrower2 THEN 'no'\n ELSE 'yes'\n END AS borrower_is_a_contract,\n _log_id,\n _inserted_timestamp\n FROM\n {{ ref('silver__logs') }}\n WHERE\n topics [0] :: STRING = '0x6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n repay_txns\n )\n AND CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) IN (\n SELECT\n pair_address\n FROM\n {{ ref('sushi__dim_kashi_pairs') }}\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\nadd_coll_in_separate_txn AS (\n SELECT\n block_timestamp,\n block_number,\n tx_hash,\n 'add collateral' AS action,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS lending_pool_address,\n origin_from_address AS borrower,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower2,\n TRY_TO_NUMBER(\n PUBLIC.udf_hex_to_int(SUBSTR(DATA, 3, len(DATA))) :: INTEGER) AS amount,\n CASE\n WHEN borrower = borrower2 THEN 'no'\n ELSE 'yes'\n END AS borrower_is_a_contract,\n _log_id,\n _inserted_timestamp\n FROM\n {{ ref('silver__logs') }}\n WHERE\n topics [0] :: STRING = '0x6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n borrow_txns\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n repay_txns\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n add_asset\n )\n AND CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) IN (\n SELECT\n pair_address\n FROM\n {{ ref('sushi__dim_kashi_pairs') }}\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\nremove_coll_in_separate_txn AS (\n SELECT\n block_timestamp,\n block_number,\n tx_hash,\n 'Remove collateral' AS action,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS lending_pool_address,\n origin_from_address AS borrower,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS borrower2,\n TRY_TO_NUMBER(\n PUBLIC.udf_hex_to_int(SUBSTR(DATA, 3, len(DATA))) :: INTEGER) AS amount,\n CASE\n WHEN borrower = borrower2 THEN 'no'\n ELSE 'yes'\n END AS borrower_is_a_contract,\n _log_id,\n _inserted_timestamp\n FROM\n {{ ref('silver__logs') }}\n WHERE\n topics [0] :: STRING = '0x6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n borrow_txns\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n repay_txns\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n remove_asset\n )\n AND CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) IN (\n SELECT\n pair_address\n FROM\n {{ ref('sushi__dim_kashi_pairs') }}\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\ntotal AS (\n SELECT\n *\n FROM\n borrow\n UNION ALL\n SELECT\n *\n FROM\n add_coll_same_txn\n UNION ALL\n SELECT\n *\n FROM\n remove_coll_same_txn\n UNION ALL\n SELECT\n *\n FROM\n repay\n UNION ALL\n SELECT\n *\n FROM\n add_coll_in_separate_txn\n UNION ALL\n SELECT\n *\n FROM\n remove_coll_in_separate_txn\n),\neth_prices AS (\n SELECT\n token_address,\n HOUR,\n symbol,\n AVG(price) AS price\n FROM\n {{ source(\n 'ethereum',\n 'fact_hourly_token_prices'\n ) }}\n WHERE\n 1 = 1\n\n{% if is_incremental() %}\nAND HOUR :: DATE IN (\n SELECT\n DISTINCT block_timestamp :: DATE\n FROM\n total\n)\n{% else %}\n AND HOUR :: DATE >= '2020-05-05'\n{% endif %}\nGROUP BY\n token_address,\n HOUR,\n symbol\n),\npolygon_eth_crosstab AS (\n SELECT\n NAME,\n symbol,\n MAX (\n CASE\n WHEN platform_id = 'polygon-pos' THEN token_address\n ELSE ''\n END\n ) AS polygon_address,\n MAX (\n CASE\n WHEN platform = 'ethereum' THEN token_address\n ELSE ''\n END\n ) AS eth_address\n FROM\n {{ source(\n 'symbols_cross_tab',\n 'MARKET_ASSET_METADATA'\n ) }}\n GROUP BY\n 1,\n 2\n HAVING\n polygon_address <> ''\n AND eth_address <> ''\n ORDER BY\n 1,\n 2\n),\npolygon_prices AS (\n SELECT\n DISTINCT ep.token_address,\n ep.hour,\n ep.symbol,\n ep.price,\n CASE\n WHEN pec.polygon_address = '0x0000000000000000000000000000000000001010' THEN '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270'\n ELSE pec.polygon_address\n END AS polygon_address\n FROM\n eth_prices ep\n LEFT JOIN polygon_eth_crosstab pec\n ON ep.token_address = pec.eth_Address\n),\nlabels AS (\n SELECT\n *\n FROM\n {{ ref('sushi__dim_kashi_pairs') }}\n)\nSELECT\n A.block_timestamp,\n A.block_number,\n A.tx_hash,\n A.action,\n A.origin_from_address,\n A.origin_to_address,\n A.origin_function_signature,\n A.borrower2 AS borrower,\n A.borrower_is_a_contract,\n A.lending_pool_address,\n b.pair_name AS lending_pool,\n A.asset,\n CASE\n when action in ('add collateral','Remove collateral') then b.collateral_symbol\n else b.asset_symbol \n end AS symbol,\n CASE\n when b.collateral_decimals is null THEN a.amount\n when b.asset_decimals is null then a.amount\n WHEN b.collateral_decimals is not null and action = 'add collateral' THEN (A.amount/ pow(10, b.collateral_decimals))\n WHEN b.collateral_decimals is not null and action = 'Remove collateral' THEN (A.amount/ pow(10, b.collateral_decimals))\n WHEN b.asset_decimals is not null and action = 'Borrow' then (A.amount/ pow(10, b.asset_decimals))\n WHEN b.asset_decimals is not null and action = 'Repay' then (A.amount/ pow(10, b.asset_decimals))\n END AS amount,\n CASE\n WHEN action = 'add collateral' THEN (\n A.amount * C.price / pow(\n 10,\n b.collateral_decimals\n )\n )\n WHEN action = 'Remove collateral' THEN (\n A.amount * C.price / pow(\n 10,\n b.collateral_decimals\n )\n )\n ELSE (A.amount * C.price / pow(10, b.asset_decimals))\n END AS amount_USD,\n A._log_id,\n _inserted_timestamp\nFROM\n total A\n LEFT JOIN polygon_prices C\n ON LOWER(\n A.asset\n ) = LOWER(\n C.polygon_address\n )\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = C.hour\n LEFT JOIN labels b\n ON A.lending_pool_address = b.pair_address", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "sushi/sushi__ez_borrowing.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.sql", "name": "sushi__ez_borrowing", "alias": "ez_borrowing", "checksum": {"name": "sha256", "checksum": "d7e7c300ea22df31e8e17057b54b5e18958d87dc54e219997459d9c239663e21"}, "tags": [], "refs": [["silver__logs"], ["silver__logs"], ["silver__logs"], ["silver__logs"], ["silver__logs"], ["sushi__dim_kashi_pairs"], ["silver__logs"], ["sushi__dim_kashi_pairs"], ["silver__logs"], ["sushi__dim_kashi_pairs"], ["silver__logs"], ["sushi__dim_kashi_pairs"], ["silver__logs"], ["sushi__dim_kashi_pairs"], ["silver__logs"], ["sushi__dim_kashi_pairs"], ["sushi__dim_kashi_pairs"]], "sources": [["ethereum", "fact_hourly_token_prices"], ["symbols_cross_tab", "MARKET_ASSET_METADATA"]], "metrics": [], "description": "This is a table that shows all the events on polygon that are related to Borrowing or repaying the loan for sushi", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Also known as block height. The block number, which indicates the length of the blockchain, increases after the addition of each new block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block was produced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Transaction hash is a unique 66-character identifier that is generated when a transaction is executed. This field will not be unique in this table, as a given transaction can include multiple events.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LENDING_POOL_ADDRESS": {"name": "LENDING_POOL_ADDRESS", "description": "The address of the lending pool. For sushi this will be the address of the kashi pair.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ACTION": {"name": "ACTION", "description": "The action that the user is taking.\n Borrow: user is borrowing an asset\n Repay: user is repaying the asset that they have borrowed in a previous loan\n Add collateral: user is depositing collateral for their loan. This happens some times in the same transaction as the borrowing transaction and some times in a separate transaction. \n Remove collateral: user is withdrawing collateral. This happens some times in the same transaction as the borrowing transaction and some times in a separate transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "The meaning depends on the action:\nBorrow: The amount of the asset that the user is borrowing or\nRepay: The amount of the asset that the user is repaying\nAdd collateral: The amount of collateral that the user is depositing\nRemove collateral: The amount of collateral that the user is withdrawing", "meta": {}, "data_type": null, "quote": null, "tags": []}, "AMOUNT_USD": {"name": "AMOUNT_USD", "description": "The meaning depends on the action:\nBorrow: The amount of the asset in USD that the user is borrowing or\nRepay: The amount of the asset in USD that the user is repaying\nAdd collateral: The amount of collateral in USD that the user is depositing\nRemove collateral: The amount of collateral in USD that the user is withdrawing", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ASSET": {"name": "ASSET", "description": "The address of the asset/collateral token that is being borrowed/repayed/deposited etc. depending on the action", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "The symbol of the asset/collateral that is payed or received, depending on the action", "meta": {}, "data_type": null, "quote": null, "tags": []}, "Borrower": {"name": "Borrower", "description": "Its the address of the user who is Borrowing or repaying the loan, depending on the action.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_LOG_ID": {"name": "_LOG_ID", "description": "This is the primary key for this table. This is a concatenation of the transaction hash and the event index at which the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The address of the user who initiates the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The person who initiates the depositing transaction has to interact with this address. This address belongs to the lending platform or directs the transactio there.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LENDING_POOL": {"name": "LENDING_POOL", "description": "The name of the lending pool.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BORROWER_IS_A_CONTRACT": {"name": "BORROWER_IS_A_CONTRACT", "description": "If the depositor of collateral is a contract then its a Yes, if the depositor of collateral is a normal address it is a No.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/sushi/sushi__ez_borrowing.yml", "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "unique_key": "_log_id", "cluster_by": ["block_timestamp::DATE"]}, "created_at": 1672849094.0551748, "compiled_code": "\n\nWITH borrow_txns AS (\n\n SELECT\n DISTINCT tx_hash,\n contract_address\n FROM\n POLYGON_DEV.silver.logs\n WHERE\n topics [0] :: STRING = '0x3a5151e57d3bc9798e7853034ac52293d1a0e12a2b44725e75b03b21f86477a6'\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n POLYGON_DEV.sushi.ez_borrowing\n)\n\n),\nrepay_txns AS (\n SELECT\n DISTINCT tx_hash,\n contract_address\n FROM\n POLYGON_DEV.silver.logs\n WHERE\n topics [0] :: STRING = '0xc8e512d8f188ca059984b5853d2bf653da902696b8512785b182b2c813789a6e'\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n POLYGON_DEV.sushi.ez_borrowing\n)\n\n),\nadd_asset AS (\n SELECT\n DISTINCT tx_hash,\n contract_address\n FROM\n POLYGON_DEV.silver.logs\n WHERE\n topics [0] :: STRING = '0x30a8c4f9ab5af7e1309ca87c32377d1a83366c5990472dbf9d262450eae14e38'\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n POLYGON_DEV.sushi.ez_borrowing\n)\n\n),\nremove_asset AS (\n SELECT\n DISTINCT tx_hash,\n contract_address\n FROM\n POLYGON_DEV.silver.logs\n WHERE\n topics [0] :: STRING = '0x6e853a5fd6b51d773691f542ebac8513c9992a51380d4c342031056a64114228'\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n POLYGON_DEV.sushi.ez_borrowing\n)\n\n),\nborrow AS (\n SELECT\n block_timestamp,\n block_number,\n tx_hash,\n 'Borrow' AS action,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n CONCAT ('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset,\n CONCAT ('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS lending_pool_address,\n origin_from_address AS borrower,\n CONCAT ('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS borrower2,\n TRY_TO_NUMBER(\n PUBLIC.udf_hex_to_int(SUBSTR(DATA, 3, len(DATA))) :: INTEGER) AS amount,\n CASE\n WHEN borrower = borrower2 THEN 'no'\n ELSE 'yes'\n END AS borrower_is_a_contract,\n _log_id,\n _inserted_timestamp\n FROM\n POLYGON_DEV.silver.logs\n WHERE\n topics [0] :: STRING = '0x6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n borrow_txns\n )\n AND CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) IN (\n SELECT\n pair_address\n FROM\n POLYGON_DEV.sushi.dim_kashi_pairs\n )\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n POLYGON_DEV.sushi.ez_borrowing\n)\n\n),\nadd_coll_same_txn AS (\n SELECT\n block_timestamp,\n block_number,\n tx_hash,\n 'add collateral' AS action,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n CONCAT ('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS lending_pool_address,\n origin_from_address AS borrower,\n CONCAT ('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower2,\n TRY_TO_NUMBER(\n PUBLIC.udf_hex_to_int(SUBSTR(DATA, 3, len(DATA))) :: INTEGER) AS amount,\n CASE\n WHEN borrower = borrower2 THEN 'no'\n ELSE 'yes'\n END AS borrower_is_a_contract,\n _log_id,\n _inserted_timestamp\n FROM\n POLYGON_DEV.silver.logs\n WHERE\n topics [0] :: STRING = '0x6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n borrow_txns\n )\n AND CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) IN (\n SELECT\n pair_address\n FROM\n POLYGON_DEV.sushi.dim_kashi_pairs\n )\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n POLYGON_DEV.sushi.ez_borrowing\n)\n\n),\nrepay AS (\n SELECT\n block_timestamp,\n block_number,\n tx_hash,\n 'Repay' AS action,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n CONCAT ('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset,\n CONCAT ('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS lending_pool_address,\n origin_from_address AS borrower,\n CONCAT ('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower2,\n TRY_TO_NUMBER(\n PUBLIC.udf_hex_to_int(SUBSTR(DATA, 3, len(DATA))) :: INTEGER) AS amount,\n CASE\n WHEN borrower = borrower2 THEN 'no'\n ELSE 'yes'\n END AS lender_is_a_contract,\n _log_id,\n _inserted_timestamp\n FROM\n POLYGON_DEV.silver.logs\n WHERE\n topics [0] :: STRING = '0x6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n repay_txns\n )\n AND CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) IN (\n SELECT\n pair_address\n FROM\n POLYGON_DEV.sushi.dim_kashi_pairs\n )\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n POLYGON_DEV.sushi.ez_borrowing\n)\n\n),\nremove_coll_same_txn AS (\n SELECT\n block_timestamp,\n block_number,\n tx_hash,\n 'Remove collateral' AS action,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS lending_pool_address,\n origin_from_address AS borrower,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS borrower2,\n TRY_TO_NUMBER(\n PUBLIC.udf_hex_to_int(SUBSTR(DATA, 3, len(DATA))) :: INTEGER) AS amount,\n CASE\n WHEN borrower = borrower2 THEN 'no'\n ELSE 'yes'\n END AS borrower_is_a_contract,\n _log_id,\n _inserted_timestamp\n FROM\n POLYGON_DEV.silver.logs\n WHERE\n topics [0] :: STRING = '0x6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n repay_txns\n )\n AND CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) IN (\n SELECT\n pair_address\n FROM\n POLYGON_DEV.sushi.dim_kashi_pairs\n )\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n POLYGON_DEV.sushi.ez_borrowing\n)\n\n),\nadd_coll_in_separate_txn AS (\n SELECT\n block_timestamp,\n block_number,\n tx_hash,\n 'add collateral' AS action,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS lending_pool_address,\n origin_from_address AS borrower,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower2,\n TRY_TO_NUMBER(\n PUBLIC.udf_hex_to_int(SUBSTR(DATA, 3, len(DATA))) :: INTEGER) AS amount,\n CASE\n WHEN borrower = borrower2 THEN 'no'\n ELSE 'yes'\n END AS borrower_is_a_contract,\n _log_id,\n _inserted_timestamp\n FROM\n POLYGON_DEV.silver.logs\n WHERE\n topics [0] :: STRING = '0x6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n borrow_txns\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n repay_txns\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n add_asset\n )\n AND CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) IN (\n SELECT\n pair_address\n FROM\n POLYGON_DEV.sushi.dim_kashi_pairs\n )\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n POLYGON_DEV.sushi.ez_borrowing\n)\n\n),\nremove_coll_in_separate_txn AS (\n SELECT\n block_timestamp,\n block_number,\n tx_hash,\n 'Remove collateral' AS action,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS lending_pool_address,\n origin_from_address AS borrower,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS borrower2,\n TRY_TO_NUMBER(\n PUBLIC.udf_hex_to_int(SUBSTR(DATA, 3, len(DATA))) :: INTEGER) AS amount,\n CASE\n WHEN borrower = borrower2 THEN 'no'\n ELSE 'yes'\n END AS borrower_is_a_contract,\n _log_id,\n _inserted_timestamp\n FROM\n POLYGON_DEV.silver.logs\n WHERE\n topics [0] :: STRING = '0x6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n borrow_txns\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n repay_txns\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n remove_asset\n )\n AND CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) IN (\n SELECT\n pair_address\n FROM\n POLYGON_DEV.sushi.dim_kashi_pairs\n )\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n POLYGON_DEV.sushi.ez_borrowing\n)\n\n),\ntotal AS (\n SELECT\n *\n FROM\n borrow\n UNION ALL\n SELECT\n *\n FROM\n add_coll_same_txn\n UNION ALL\n SELECT\n *\n FROM\n remove_coll_same_txn\n UNION ALL\n SELECT\n *\n FROM\n repay\n UNION ALL\n SELECT\n *\n FROM\n add_coll_in_separate_txn\n UNION ALL\n SELECT\n *\n FROM\n remove_coll_in_separate_txn\n),\neth_prices AS (\n SELECT\n token_address,\n HOUR,\n symbol,\n AVG(price) AS price\n FROM\n ethereum.core.fact_hourly_token_prices\n WHERE\n 1 = 1\n\n\nAND HOUR :: DATE IN (\n SELECT\n DISTINCT block_timestamp :: DATE\n FROM\n total\n)\n\nGROUP BY\n token_address,\n HOUR,\n symbol\n),\npolygon_eth_crosstab AS (\n SELECT\n NAME,\n symbol,\n MAX (\n CASE\n WHEN platform_id = 'polygon-pos' THEN token_address\n ELSE ''\n END\n ) AS polygon_address,\n MAX (\n CASE\n WHEN platform = 'ethereum' THEN token_address\n ELSE ''\n END\n ) AS eth_address\n FROM\n FLIPSIDE_PROD_DB.SILVER.MARKET_ASSET_METADATA\n GROUP BY\n 1,\n 2\n HAVING\n polygon_address <> ''\n AND eth_address <> ''\n ORDER BY\n 1,\n 2\n),\npolygon_prices AS (\n SELECT\n DISTINCT ep.token_address,\n ep.hour,\n ep.symbol,\n ep.price,\n CASE\n WHEN pec.polygon_address = '0x0000000000000000000000000000000000001010' THEN '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270'\n ELSE pec.polygon_address\n END AS polygon_address\n FROM\n eth_prices ep\n LEFT JOIN polygon_eth_crosstab pec\n ON ep.token_address = pec.eth_Address\n),\nlabels AS (\n SELECT\n *\n FROM\n POLYGON_DEV.sushi.dim_kashi_pairs\n)\nSELECT\n A.block_timestamp,\n A.block_number,\n A.tx_hash,\n A.action,\n A.origin_from_address,\n A.origin_to_address,\n A.origin_function_signature,\n A.borrower2 AS borrower,\n A.borrower_is_a_contract,\n A.lending_pool_address,\n b.pair_name AS lending_pool,\n A.asset,\n CASE\n when action in ('add collateral','Remove collateral') then b.collateral_symbol\n else b.asset_symbol \n end AS symbol,\n CASE\n when b.collateral_decimals is null THEN a.amount\n when b.asset_decimals is null then a.amount\n WHEN b.collateral_decimals is not null and action = 'add collateral' THEN (A.amount/ pow(10, b.collateral_decimals))\n WHEN b.collateral_decimals is not null and action = 'Remove collateral' THEN (A.amount/ pow(10, b.collateral_decimals))\n WHEN b.asset_decimals is not null and action = 'Borrow' then (A.amount/ pow(10, b.asset_decimals))\n WHEN b.asset_decimals is not null and action = 'Repay' then (A.amount/ pow(10, b.asset_decimals))\n END AS amount,\n CASE\n WHEN action = 'add collateral' THEN (\n A.amount * C.price / pow(\n 10,\n b.collateral_decimals\n )\n )\n WHEN action = 'Remove collateral' THEN (\n A.amount * C.price / pow(\n 10,\n b.collateral_decimals\n )\n )\n ELSE (A.amount * C.price / pow(10, b.asset_decimals))\n END AS amount_USD,\n A._log_id,\n _inserted_timestamp\nFROM\n total A\n LEFT JOIN polygon_prices C\n ON LOWER(\n A.asset\n ) = LOWER(\n C.polygon_address\n )\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = C.hour\n LEFT JOIN labels b\n ON A.lending_pool_address = b.pair_address", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.sushi.ez_borrowing"}, "model.polygon_models.sushi__dim_kashi_pairs": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.polygon_models.polygon_dex_pools.SUSHI_DIM_KASHI_PAIRS"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "sushi", "fqn": ["polygon_models", "sushi", "sushi__dim_kashi_pairs"], "unique_id": "model.polygon_models.sushi__dim_kashi_pairs", "raw_code": "{{ config(\n materialized = 'table'\n) }}\n\n SELECT\n pair_address, \n pair_symbol as pair_name,\n pair_decimal as pair_decimals,\n asset_symbol,\n asset_address,\n collateral_symbol,\n collateral_address,\n asset_decimal as asset_decimals,\n collateral_decimal as collateral_decimals \n FROM\n {{ source(\n 'polygon_dex_pools',\n 'SUSHI_DIM_KASHI_PAIRS'\n ) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "sushi/sushi__dim_kashi_pairs.sql", "original_file_path": "models/sushi/sushi__dim_kashi_pairs.sql", "name": "sushi__dim_kashi_pairs", "alias": "dim_kashi_pairs", "checksum": {"name": "sha256", "checksum": "2d23759184da53ffbc9f8355db13c02efbd4c3d7382cd470ed782b615693c75e"}, "tags": [], "refs": [], "sources": [["polygon_dex_pools", "SUSHI_DIM_KASHI_PAIRS"]], "metrics": [], "description": "This table contains details on different Kashi pairs belonging to sushiswap on the polygon blockchain", "columns": {"PAIR_ADDRESS": {"name": "PAIR_ADDRESS", "description": "The address of the lending pool. For sushi this will be the address of the kashi pair.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PAIR_NAME": {"name": "PAIR_NAME", "description": "The name of the lending pool.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ASSET_SYMBOL": {"name": "ASSET_SYMBOL", "description": "The symbol of the asset that is lent or withdrawn, depending on the action", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ASSET_ADDRESS": {"name": "ASSET_ADDRESS", "description": "The address of the asset in the token pair. This asset is either deposited ot withdrawn for lending purposes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "COLLATERAL_SYMBOL": {"name": "COLLATERAL_SYMBOL", "description": "The symbol of the asset that is used for collateral when borrowing funds.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "COLLATERAL_ADDRESS": {"name": "COLLATERAL_ADDRESS", "description": "The address of the asset that is used for collateral when borrowing funds.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ASSET_DECIMALS": {"name": "ASSET_DECIMALS", "description": "The number of decimal places this contract needs adjusted where token values exist. For example, use the decimal field to correctly transform raw amounts in ```fact_transactions```.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "COLLATERAL_DECIMALS": {"name": "COLLATERAL_DECIMALS", "description": "The number of decimal places this contract needs adjusted where token values exist. For example, use the decimal field to correctly transform raw amounts in ```fact_transactions```.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/sushi/sushi__dim_kashi_pairs.yml", "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__dim_kashi_pairs.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table"}, "created_at": 1672849094.094121, "compiled_code": "\n\n SELECT\n pair_address, \n pair_symbol as pair_name,\n pair_decimal as pair_decimals,\n asset_symbol,\n asset_address,\n collateral_symbol,\n collateral_address,\n asset_decimal as asset_decimals,\n collateral_decimal as collateral_decimals \n FROM\n polygon.bronze.SUSHI_DIM_KASHI_PAIRS", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.sushi.dim_kashi_pairs"}, "seed.polygon_models.bronze__sushi_dim_dex_pools": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": null, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "bronze", "fqn": ["polygon_models", "bronze__sushi_dim_dex_pools"], "unique_id": "seed.polygon_models.bronze__sushi_dim_dex_pools", "raw_code": "", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "bronze__sushi_dim_dex_pools.csv", "original_file_path": "data/bronze__sushi_dim_dex_pools.csv", "name": "bronze__sushi_dim_dex_pools", "alias": "sushi_dim_dex_pools", "checksum": {"name": "sha256", "checksum": "2e9f62bdb2c4cb3093156b13a1d2b265b61e0209d229e275cdbac64c53d68fa0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672849093.53353, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.bronze.sushi_dim_dex_pools"}, "seed.polygon_models.bronze__sushi_dim_kashi_pairs": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": null, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "bronze", "fqn": ["polygon_models", "bronze__sushi_dim_kashi_pairs"], "unique_id": "seed.polygon_models.bronze__sushi_dim_kashi_pairs", "raw_code": "", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "bronze__sushi_dim_kashi_pairs.csv", "original_file_path": "data/bronze__sushi_dim_kashi_pairs.csv", "name": "bronze__sushi_dim_kashi_pairs", "alias": "sushi_dim_kashi_pairs", "checksum": {"name": "sha256", "checksum": "901b209a74f0c5ef7e8a432e2ff0a63b0206fd17b6c951161e3fa2ec1c7f0fd0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672849093.534843, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.bronze.sushi_dim_kashi_pairs"}, "operation.polygon_models.polygon_models-on-run-start-0": {"compiled": true, "resource_type": "operation", "depends_on": {"macros": ["macro.polygon_models.create_sps"], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "polygon_models-on-run-start-0", "fqn": ["polygon_models", "hooks", "polygon_models-on-run-start-0"], "unique_id": "operation.polygon_models.polygon_models-on-run-start-0", "raw_code": "{{ create_sps() }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "hooks/polygon_models-on-run-start-0.sql", "original_file_path": "./dbt_project.yml", "name": "polygon_models-on-run-start-0", "alias": "", "checksum": {"name": "sha256", "checksum": "706062e9c49fee5fafd7e7260ccc5bad95beb8c979224a26dd7bb1fc866c7794"}, "tags": ["on-run-start"], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/./dbt_project.yml/hooks/polygon_models-on-run-start-0.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672849093.544436, "compiled_code": "\n \n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "index": 0}, "operation.polygon_models.polygon_models-on-run-start-1": {"compiled": true, "resource_type": "operation", "depends_on": {"macros": ["macro.polygon_models.create_udfs"], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "polygon_models-on-run-start-1", "fqn": ["polygon_models", "hooks", "polygon_models-on-run-start-1"], "unique_id": "operation.polygon_models.polygon_models-on-run-start-1", "raw_code": "{{ create_udfs() }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "hooks/polygon_models-on-run-start-1.sql", "original_file_path": "./dbt_project.yml", "name": "polygon_models-on-run-start-1", "alias": "", "checksum": {"name": "sha256", "checksum": "706062e9c49fee5fafd7e7260ccc5bad95beb8c979224a26dd7bb1fc866c7794"}, "tags": ["on-run-start"], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/./dbt_project.yml/hooks/polygon_models-on-run-start-1.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672849093.547606, "compiled_code": "\n \n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "index": 1}, "operation.polygon_models.polygon_models-on-run-start-2": {"compiled": true, "resource_type": "operation", "depends_on": {"macros": ["macro.polygon_models.create_tasks"], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "polygon_models-on-run-start-2", "fqn": ["polygon_models", "hooks", "polygon_models-on-run-start-2"], "unique_id": "operation.polygon_models.polygon_models-on-run-start-2", "raw_code": "{{ create_tasks() }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "hooks/polygon_models-on-run-start-2.sql", "original_file_path": "./dbt_project.yml", "name": "polygon_models-on-run-start-2", "alias": "", "checksum": {"name": "sha256", "checksum": "706062e9c49fee5fafd7e7260ccc5bad95beb8c979224a26dd7bb1fc866c7794"}, "tags": ["on-run-start"], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/./dbt_project.yml/hooks/polygon_models-on-run-start-2.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672849093.552059, "compiled_code": "\n \n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "index": 2}, "test.polygon_models.not_null_bronze_api__token_reads__INSERTED_TIMESTAMP.801b5bd3f6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze_api__token_reads')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.bronze_api__token_reads"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_bronze_api", "fqn": ["polygon_models", "bronze", "api_udf", "not_null_bronze_api__token_reads__INSERTED_TIMESTAMP"], "unique_id": "test.polygon_models.not_null_bronze_api__token_reads__INSERTED_TIMESTAMP.801b5bd3f6", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_bronze_api__token_reads__INSERTED_TIMESTAMP.sql", "original_file_path": "models/bronze/api_udf/bronze_api__token_reads.yml", "name": "not_null_bronze_api__token_reads__INSERTED_TIMESTAMP", "alias": "token_reads", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["bronze_api__token_reads"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/bronze/api_udf/bronze_api__token_reads.yml/not_null_bronze_api__token_reads__INSERTED_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.621218, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.bronze_api.token_reads\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_bronze_api.token_reads", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze_api__token_reads"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze_api__token_reads__INSERTED_TIMESTAMP__day__1.c8280743d7": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze_api__token_reads')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.bronze_api__token_reads"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_306695dd6ee0de1203a64464369dbcfe", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_bronze_api", "fqn": ["polygon_models", "bronze", "api_udf", "dbt_expectations_expect_row_values_to_have_recent_data_bronze_api__token_reads__INSERTED_TIMESTAMP__day__1"], "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze_api__token_reads__INSERTED_TIMESTAMP__day__1.c8280743d7", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_306695dd6ee0de1203a64464369dbcfe\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_row_va_306695dd6ee0de1203a64464369dbcfe.sql", "original_file_path": "models/bronze/api_udf/bronze_api__token_reads.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_bronze_api__token_reads__INSERTED_TIMESTAMP__day__1", "alias": "token_reads", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["bronze_api__token_reads"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/bronze/api_udf/bronze_api__token_reads.yml/dbt_expectations_expect_row_va_306695dd6ee0de1203a64464369dbcfe.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_306695dd6ee0de1203a64464369dbcfe"}, "created_at": 1672849093.622015, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n POLYGON_DEV.bronze_api.token_reads\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_row_values_to_have_recent_data_bronze_api.token_reads", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze_api__token_reads"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__token_reads__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.10472fa4e9": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze_api__token_reads')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.bronze_api__token_reads"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b7a0908df87555f3aea003de378369d1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api", "fqn": ["polygon_models", "bronze", "api_udf", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__token_reads__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__token_reads__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.10472fa4e9", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b7a0908df87555f3aea003de378369d1\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_b7a0908df87555f3aea003de378369d1.sql", "original_file_path": "models/bronze/api_udf/bronze_api__token_reads.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__token_reads__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "token_reads", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["bronze_api__token_reads"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/bronze/api_udf/bronze_api__token_reads.yml/dbt_expectations_expect_column_b7a0908df87555f3aea003de378369d1.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b7a0908df87555f3aea003de378369d1"}, "created_at": 1672849093.634381, "compiled_code": "with relation_columns as (\n\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FUNCTION_SIG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FUNCTION_INPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('READ_RESULT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api.token_reads", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze_api__token_reads"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_bronze_api__token_reads_CONTRACT_ADDRESS__FUNCTION_SIG.15f6dbcf0c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS", "FUNCTION_SIG"], "model": "{{ get_where_subquery(ref('bronze_api__token_reads')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.bronze_api__token_reads"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_10226562d8d6c64e08db0447433977e7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_utils_unique_combination_of_columns_bronze_api", "fqn": ["polygon_models", "bronze", "api_udf", "dbt_utils_unique_combination_of_columns_bronze_api__token_reads_CONTRACT_ADDRESS__FUNCTION_SIG"], "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_bronze_api__token_reads_CONTRACT_ADDRESS__FUNCTION_SIG.15f6dbcf0c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_10226562d8d6c64e08db0447433977e7\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_utils_unique_combination_o_10226562d8d6c64e08db0447433977e7.sql", "original_file_path": "models/bronze/api_udf/bronze_api__token_reads.yml", "name": "dbt_utils_unique_combination_of_columns_bronze_api__token_reads_CONTRACT_ADDRESS__FUNCTION_SIG", "alias": "token_reads_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["bronze_api__token_reads"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/bronze/api_udf/bronze_api__token_reads.yml/dbt_utils_unique_combination_o_10226562d8d6c64e08db0447433977e7.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_10226562d8d6c64e08db0447433977e7"}, "created_at": 1672849093.638361, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS, FUNCTION_SIG\n from POLYGON_DEV.bronze_api.token_reads\n group by CONTRACT_ADDRESS, FUNCTION_SIG\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_utils_unique_combination_of_columns_bronze_api.token_reads_CONTRACT_ADDRESS", "column_name": null, "file_key_name": "models.bronze_api__token_reads"}, "test.polygon_models.not_null_bronze_api__contract_abis__INSERTED_TIMESTAMP.cd35aef90f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze_api__contract_abis')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.bronze_api__contract_abis"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_bronze_api", "fqn": ["polygon_models", "bronze", "api_udf", "not_null_bronze_api__contract_abis__INSERTED_TIMESTAMP"], "unique_id": "test.polygon_models.not_null_bronze_api__contract_abis__INSERTED_TIMESTAMP.cd35aef90f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_bronze_api__contract_abis__INSERTED_TIMESTAMP.sql", "original_file_path": "models/bronze/api_udf/bronze_api__contract_abis.yml", "name": "not_null_bronze_api__contract_abis__INSERTED_TIMESTAMP", "alias": "contract_abis", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["bronze_api__contract_abis"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/bronze/api_udf/bronze_api__contract_abis.yml/not_null_bronze_api__contract_abis__INSERTED_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.6437252, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.bronze_api.contract_abis\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_bronze_api.contract_abis", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze_api__contract_abis"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze_api__contract_abis__INSERTED_TIMESTAMP__day__1.cce492bb5d": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze_api__contract_abis')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.bronze_api__contract_abis"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_45453ab21b42fe276a504c35113803e6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_bronze_api", "fqn": ["polygon_models", "bronze", "api_udf", "dbt_expectations_expect_row_values_to_have_recent_data_bronze_api__contract_abis__INSERTED_TIMESTAMP__day__1"], "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze_api__contract_abis__INSERTED_TIMESTAMP__day__1.cce492bb5d", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_45453ab21b42fe276a504c35113803e6\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_row_va_45453ab21b42fe276a504c35113803e6.sql", "original_file_path": "models/bronze/api_udf/bronze_api__contract_abis.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_bronze_api__contract_abis__INSERTED_TIMESTAMP__day__1", "alias": "contract_abis", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["bronze_api__contract_abis"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/bronze/api_udf/bronze_api__contract_abis.yml/dbt_expectations_expect_row_va_45453ab21b42fe276a504c35113803e6.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_45453ab21b42fe276a504c35113803e6"}, "created_at": 1672849093.6444569, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n POLYGON_DEV.bronze_api.contract_abis\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_row_values_to_have_recent_data_bronze_api.contract_abis", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze_api__contract_abis"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__contract_abis__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.aabf36df67": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze_api__contract_abis')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.bronze_api__contract_abis"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8e9ea4596ceedff7994811525354e51b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api", "fqn": ["polygon_models", "bronze", "api_udf", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__contract_abis__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__contract_abis__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.aabf36df67", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8e9ea4596ceedff7994811525354e51b\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_8e9ea4596ceedff7994811525354e51b.sql", "original_file_path": "models/bronze/api_udf/bronze_api__contract_abis.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__contract_abis__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "contract_abis", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["bronze_api__contract_abis"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/bronze/api_udf/bronze_api__contract_abis.yml/dbt_expectations_expect_column_8e9ea4596ceedff7994811525354e51b.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_8e9ea4596ceedff7994811525354e51b"}, "created_at": 1672849093.6472268, "compiled_code": "with relation_columns as (\n\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ABI_DATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api.contract_abis", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze_api__contract_abis"}, "test.polygon_models.not_null_bronze_api__contract_abis_CONTRACT_ADDRESS.656bc51ae4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('bronze_api__contract_abis')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.bronze_api__contract_abis"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_bronze_api", "fqn": ["polygon_models", "bronze", "api_udf", "not_null_bronze_api__contract_abis_CONTRACT_ADDRESS"], "unique_id": "test.polygon_models.not_null_bronze_api__contract_abis_CONTRACT_ADDRESS.656bc51ae4", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_bronze_api__contract_abis_CONTRACT_ADDRESS.sql", "original_file_path": "models/bronze/api_udf/bronze_api__contract_abis.yml", "name": "not_null_bronze_api__contract_abis_CONTRACT_ADDRESS", "alias": "contract_abis_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["bronze_api__contract_abis"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/bronze/api_udf/bronze_api__contract_abis.yml/not_null_bronze_api__contract_abis_CONTRACT_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.6491451, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.bronze_api.contract_abis\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_bronze_api.contract_abis_CONTRACT_ADDRESS", "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.bronze_api__contract_abis"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__contract_abis_CONTRACT_ADDRESS__VARCHAR.425fbc821b": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["VARCHAR"], "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('bronze_api__contract_abis')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.bronze_api__contract_abis"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b90909fd07f9038b208006ad1bc090d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api", "fqn": ["polygon_models", "bronze", "api_udf", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__contract_abis_CONTRACT_ADDRESS__VARCHAR"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__contract_abis_CONTRACT_ADDRESS__VARCHAR.425fbc821b", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b90909fd07f9038b208006ad1bc090d6\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_b90909fd07f9038b208006ad1bc090d6.sql", "original_file_path": "models/bronze/api_udf/bronze_api__contract_abis.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__contract_abis_CONTRACT_ADDRESS__VARCHAR", "alias": "contract_abis_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["bronze_api__contract_abis"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/bronze/api_udf/bronze_api__contract_abis.yml/dbt_expectations_expect_column_b90909fd07f9038b208006ad1bc090d6.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b90909fd07f9038b208006ad1bc090d6"}, "created_at": 1672849093.6499891, "compiled_code": "with relation_columns as (\n\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ABI_DATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'CONTRACT_ADDRESS'\n and\n relation_column_type not in ('VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api.contract_abis_CONTRACT_ADDRESS", "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.bronze_api__contract_abis"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_bronze_api__contract_abis_CONTRACT_ADDRESS___0x_0_9a_fA_F_40_.62635507b2": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "^(0x)[0-9a-fA-F]{40}$", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('bronze_api__contract_abis')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.bronze_api__contract_abis"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7d0510e0300cc97143d7973555a8103a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_bronze_api", "fqn": ["polygon_models", "bronze", "api_udf", "dbt_expectations_expect_column_values_to_match_regex_bronze_api__contract_abis_CONTRACT_ADDRESS___0x_0_9a_fA_F_40_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_bronze_api__contract_abis_CONTRACT_ADDRESS___0x_0_9a_fA_F_40_.62635507b2", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7d0510e0300cc97143d7973555a8103a\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_7d0510e0300cc97143d7973555a8103a.sql", "original_file_path": "models/bronze/api_udf/bronze_api__contract_abis.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_bronze_api__contract_abis_CONTRACT_ADDRESS___0x_0_9a_fA_F_40_", "alias": "contract_abis_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["bronze_api__contract_abis"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/bronze/api_udf/bronze_api__contract_abis.yml/dbt_expectations_expect_column_7d0510e0300cc97143d7973555a8103a.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_7d0510e0300cc97143d7973555a8103a"}, "created_at": 1672849093.651913, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '^(0x)[0-9a-fA-F]{40}$', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.bronze_api.contract_abis\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_bronze_api.contract_abis_CONTRACT_ADDRESS", "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.bronze_api__contract_abis"}, "test.polygon_models.not_null_silver__logs_BLOCK_NUMBER.f98b235d4c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__logs_BLOCK_NUMBER"], "unique_id": "test.polygon_models.not_null_silver__logs_BLOCK_NUMBER.f98b235d4c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__logs_BLOCK_NUMBER.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "not_null_silver__logs_BLOCK_NUMBER", "alias": "logs_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/not_null_silver__logs_BLOCK_NUMBER.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.662483, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.logs\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.logs_BLOCK_NUMBER", "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__logs"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_BLOCK_NUMBER__NUMBER.73461cc432": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_6bced39dcb284fa8dad23c0b49df1248", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_BLOCK_NUMBER__NUMBER"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_BLOCK_NUMBER__NUMBER.73461cc432", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_6bced39dcb284fa8dad23c0b49df1248\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_6bced39dcb284fa8dad23c0b49df1248.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_BLOCK_NUMBER__NUMBER", "alias": "logs_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/dbt_expectations_expect_column_6bced39dcb284fa8dad23c0b49df1248.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_6bced39dcb284fa8dad23c0b49df1248"}, "created_at": 1672849093.663213, "compiled_code": "with relation_columns as (\n\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INPUTS' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_STATUS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.logs_BLOCK_NUMBER", "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__logs"}, "test.polygon_models.not_null_silver__logs_BLOCK_TIMESTAMP.ca6209335c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__logs_BLOCK_TIMESTAMP"], "unique_id": "test.polygon_models.not_null_silver__logs_BLOCK_TIMESTAMP.ca6209335c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__logs_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "not_null_silver__logs_BLOCK_TIMESTAMP", "alias": "logs_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/not_null_silver__logs_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.665231, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.logs\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.logs_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__logs"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__logs_BLOCK_TIMESTAMP__day__1.79d0ca0413": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_246437673a44a698488babf02633f091", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__logs_BLOCK_TIMESTAMP__day__1"], "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__logs_BLOCK_TIMESTAMP__day__1.79d0ca0413", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_246437673a44a698488babf02633f091\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_row_va_246437673a44a698488babf02633f091.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__logs_BLOCK_TIMESTAMP__day__1", "alias": "logs_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/dbt_expectations_expect_row_va_246437673a44a698488babf02633f091.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_246437673a44a698488babf02633f091"}, "created_at": 1672849093.665938, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n POLYGON_DEV.silver.logs\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_row_values_to_have_recent_data_silver.logs_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__logs"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.c39585c6f3": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3a3eb74bc46de42ee273692cd9b3a7df", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.c39585c6f3", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3a3eb74bc46de42ee273692cd9b3a7df\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_3a3eb74bc46de42ee273692cd9b3a7df.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "logs_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/dbt_expectations_expect_column_3a3eb74bc46de42ee273692cd9b3a7df.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3a3eb74bc46de42ee273692cd9b3a7df"}, "created_at": 1672849093.668973, "compiled_code": "with relation_columns as (\n\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INPUTS' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_STATUS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.logs_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__logs"}, "test.polygon_models.not_null_silver__logs_TX_HASH.18b09ee14d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__logs_TX_HASH"], "unique_id": "test.polygon_models.not_null_silver__logs_TX_HASH.18b09ee14d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__logs_TX_HASH.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "not_null_silver__logs_TX_HASH", "alias": "logs_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/not_null_silver__logs_TX_HASH.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.671, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.logs\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.logs_TX_HASH", "column_name": "TX_HASH", "file_key_name": "models.silver__logs"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_TX_HASH__0_xX_0_9a_fA_F_.0eee0960b6": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_6030dcae62096d3ca68fc728e3d15a65", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__logs_TX_HASH__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_TX_HASH__0_xX_0_9a_fA_F_.0eee0960b6", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_6030dcae62096d3ca68fc728e3d15a65\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_6030dcae62096d3ca68fc728e3d15a65.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__logs_TX_HASH__0_xX_0_9a_fA_F_", "alias": "logs_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/dbt_expectations_expect_column_6030dcae62096d3ca68fc728e3d15a65.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_6030dcae62096d3ca68fc728e3d15a65"}, "created_at": 1672849093.671711, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.logs\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.logs_TX_HASH", "column_name": "TX_HASH", "file_key_name": "models.silver__logs"}, "test.polygon_models.not_null_silver__logs_EVENT_INDEX.b97eeb39d7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__logs_EVENT_INDEX"], "unique_id": "test.polygon_models.not_null_silver__logs_EVENT_INDEX.b97eeb39d7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__logs_EVENT_INDEX.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "not_null_silver__logs_EVENT_INDEX", "alias": "logs_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/not_null_silver__logs_EVENT_INDEX.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.673907, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.logs\nwhere EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.logs_EVENT_INDEX", "column_name": "EVENT_INDEX", "file_key_name": "models.silver__logs"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_INDEX__NUMBER__FLOAT.d0df352178": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c696cc611f4a35c037364ebeebfefb43", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_INDEX__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_INDEX__NUMBER__FLOAT.d0df352178", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c696cc611f4a35c037364ebeebfefb43\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_c696cc611f4a35c037364ebeebfefb43.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_INDEX__NUMBER__FLOAT", "alias": "logs_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/dbt_expectations_expect_column_c696cc611f4a35c037364ebeebfefb43.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c696cc611f4a35c037364ebeebfefb43"}, "created_at": 1672849093.674627, "compiled_code": "with relation_columns as (\n\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INPUTS' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_STATUS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'EVENT_INDEX'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.logs_EVENT_INDEX", "column_name": "EVENT_INDEX", "file_key_name": "models.silver__logs"}, "test.polygon_models.not_null_silver__logs_CONTRACT_ADDRESS.b78d8c86eb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__logs_CONTRACT_ADDRESS"], "unique_id": "test.polygon_models.not_null_silver__logs_CONTRACT_ADDRESS.b78d8c86eb", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__logs_CONTRACT_ADDRESS.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "not_null_silver__logs_CONTRACT_ADDRESS", "alias": "logs_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/not_null_silver__logs_CONTRACT_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.676832, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.logs\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.logs_CONTRACT_ADDRESS", "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver__logs"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.28bc84b2ae": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8bbb281f525daefe2f856f6c8b08e8e9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__logs_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.28bc84b2ae", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8bbb281f525daefe2f856f6c8b08e8e9\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_8bbb281f525daefe2f856f6c8b08e8e9.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__logs_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "alias": "logs_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/dbt_expectations_expect_column_8bbb281f525daefe2f856f6c8b08e8e9.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_8bbb281f525daefe2f856f6c8b08e8e9"}, "created_at": 1672849093.6775382, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.logs\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.logs_CONTRACT_ADDRESS", "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver__logs"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_NAME__STRING__VARCHAR.7af2bc20cd": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "EVENT_NAME", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3cd4d6e1b11a2401af32000858f05ab5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_NAME__STRING__VARCHAR"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_NAME__STRING__VARCHAR.7af2bc20cd", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3cd4d6e1b11a2401af32000858f05ab5\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_3cd4d6e1b11a2401af32000858f05ab5.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_NAME__STRING__VARCHAR", "alias": "logs_EVENT_NAME", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/dbt_expectations_expect_column_3cd4d6e1b11a2401af32000858f05ab5.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3cd4d6e1b11a2401af32000858f05ab5"}, "created_at": 1672849093.679749, "compiled_code": "with relation_columns as (\n\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INPUTS' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_STATUS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'EVENT_NAME'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.logs_EVENT_NAME", "column_name": "EVENT_NAME", "file_key_name": "models.silver__logs"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_INPUTS__OBJECT.a903a96237": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["OBJECT"], "column_name": "EVENT_INPUTS", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ca48036c47d26b7d96bf136183f6f6a5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_INPUTS__OBJECT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_INPUTS__OBJECT.a903a96237", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ca48036c47d26b7d96bf136183f6f6a5\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_ca48036c47d26b7d96bf136183f6f6a5.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_INPUTS__OBJECT", "alias": "logs_EVENT_INPUTS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/dbt_expectations_expect_column_ca48036c47d26b7d96bf136183f6f6a5.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_ca48036c47d26b7d96bf136183f6f6a5"}, "created_at": 1672849093.6819441, "compiled_code": "with relation_columns as (\n\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INPUTS' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_STATUS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'EVENT_INPUTS'\n and\n relation_column_type not in ('OBJECT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.logs_EVENT_INPUTS", "column_name": "EVENT_INPUTS", "file_key_name": "models.silver__logs"}, "test.polygon_models.not_null_silver__logs_TOPICS.f042e94d85": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOPICS", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__logs_TOPICS"], "unique_id": "test.polygon_models.not_null_silver__logs_TOPICS.f042e94d85", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__logs_TOPICS.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "not_null_silver__logs_TOPICS", "alias": "logs_TOPICS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/not_null_silver__logs_TOPICS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.6839712, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.logs\nwhere TOPICS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.logs_TOPICS", "column_name": "TOPICS", "file_key_name": "models.silver__logs"}, "test.polygon_models.not_null_silver__logs_DATA.c5fac5c4a4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DATA", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__logs_DATA"], "unique_id": "test.polygon_models.not_null_silver__logs_DATA.c5fac5c4a4", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__logs_DATA.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "not_null_silver__logs_DATA", "alias": "logs_DATA", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/not_null_silver__logs_DATA.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.684671, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.logs\nwhere DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.logs_DATA", "column_name": "DATA", "file_key_name": "models.silver__logs"}, "test.polygon_models.not_null_silver__logs_EVENT_REMOVED.4f302d08e0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_REMOVED", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__logs_EVENT_REMOVED"], "unique_id": "test.polygon_models.not_null_silver__logs_EVENT_REMOVED.4f302d08e0", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__logs_EVENT_REMOVED.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "not_null_silver__logs_EVENT_REMOVED", "alias": "logs_EVENT_REMOVED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/not_null_silver__logs_EVENT_REMOVED.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.685371, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.logs\nwhere EVENT_REMOVED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.logs_EVENT_REMOVED", "column_name": "EVENT_REMOVED", "file_key_name": "models.silver__logs"}, "test.polygon_models.not_null_silver__logs__LOG_ID.8c3f196b2a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_LOG_ID", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__logs__LOG_ID"], "unique_id": "test.polygon_models.not_null_silver__logs__LOG_ID.8c3f196b2a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__logs__LOG_ID.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "not_null_silver__logs__LOG_ID", "alias": "logs", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/not_null_silver__logs__LOG_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.6860611, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.logs\nwhere _LOG_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.logs", "column_name": "_LOG_ID", "file_key_name": "models.silver__logs"}, "test.polygon_models.not_null_silver__logs_ORIGIN_FUNCTION_SIGNATURE.ed647f3e17": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__logs_ORIGIN_FUNCTION_SIGNATURE"], "unique_id": "test.polygon_models.not_null_silver__logs_ORIGIN_FUNCTION_SIGNATURE.ed647f3e17", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__logs_ORIGIN_FUNCTION_SIGNATURE.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "not_null_silver__logs_ORIGIN_FUNCTION_SIGNATURE", "alias": "logs_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/not_null_silver__logs_ORIGIN_FUNCTION_SIGNATURE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.686872, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.logs\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.logs_ORIGIN_FUNCTION_SIGNATURE", "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__logs"}, "test.polygon_models.not_null_silver__logs_ORIGIN_FROM_ADDRESS.1759538d91": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__logs_ORIGIN_FROM_ADDRESS"], "unique_id": "test.polygon_models.not_null_silver__logs_ORIGIN_FROM_ADDRESS.1759538d91", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__logs_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "not_null_silver__logs_ORIGIN_FROM_ADDRESS", "alias": "logs_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/not_null_silver__logs_ORIGIN_FROM_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.687551, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.logs\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.logs_ORIGIN_FROM_ADDRESS", "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__logs"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.a59d6ffc6a": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e1301d0c4df2c6cf4bb726a830884900", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__logs_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.a59d6ffc6a", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e1301d0c4df2c6cf4bb726a830884900\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_e1301d0c4df2c6cf4bb726a830884900.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__logs_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_", "alias": "logs_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/dbt_expectations_expect_column_e1301d0c4df2c6cf4bb726a830884900.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e1301d0c4df2c6cf4bb726a830884900"}, "created_at": 1672849093.688236, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.logs\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.logs_ORIGIN_FROM_ADDRESS", "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__logs"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.869407dadd": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_505e723dd043eda11bc88c8bb8ae33f6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__logs_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.869407dadd", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_505e723dd043eda11bc88c8bb8ae33f6\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_505e723dd043eda11bc88c8bb8ae33f6.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__logs_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_", "alias": "logs_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/dbt_expectations_expect_column_505e723dd043eda11bc88c8bb8ae33f6.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_505e723dd043eda11bc88c8bb8ae33f6"}, "created_at": 1672849093.69046, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.logs\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.logs_ORIGIN_TO_ADDRESS", "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__logs"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__logs__LOG_ID.780efa90bd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_LOG_ID"], "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["polygon_models", "silver", "dbt_utils_unique_combination_of_columns_silver__logs__LOG_ID"], "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__logs__LOG_ID.780efa90bd", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_utils_unique_combination_of_columns_silver__logs__LOG_ID.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "dbt_utils_unique_combination_of_columns_silver__logs__LOG_ID", "alias": "logs", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/dbt_utils_unique_combination_of_columns_silver__logs__LOG_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.692638, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _LOG_ID\n from POLYGON_DEV.silver.logs\n group by _LOG_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_utils_unique_combination_of_columns_silver.logs", "column_name": null, "file_key_name": "models.silver__logs"}, "test.polygon_models.sequence_gaps_silver__logs_EVENT_INDEX__BLOCK_NUMBER__TX_HASH.8b3582ee4a": {"test_metadata": {"name": "sequence_gaps", "kwargs": {"partition_by": ["BLOCK_NUMBER", "TX_HASH"], "column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('silver__logs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.polygon_models.test_sequence_gaps", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__logs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "error", "store_failures": true, "where": "BLOCK_TIMESTAMP < CURRENT_DATE", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": ">10000"}, "database": "POLYGON_DEV", "schema": "sequence_gaps_silver", "fqn": ["polygon_models", "silver", "sequence_gaps_silver__logs_EVENT_INDEX__BLOCK_NUMBER__TX_HASH"], "unique_id": "test.polygon_models.sequence_gaps_silver__logs_EVENT_INDEX__BLOCK_NUMBER__TX_HASH.8b3582ee4a", "raw_code": "{{ test_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(severity=\"error\",where=\"BLOCK_TIMESTAMP < CURRENT_DATE\",error_if=\">10000\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "sequence_gaps_silver__logs_EVENT_INDEX__BLOCK_NUMBER__TX_HASH.sql", "original_file_path": "models/silver/silver__logs.yml", "name": "sequence_gaps_silver__logs_EVENT_INDEX__BLOCK_NUMBER__TX_HASH", "alias": "logs_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__logs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__logs.yml/sequence_gaps_silver__logs_EVENT_INDEX__BLOCK_NUMBER__TX_HASH.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "severity": "error", "where": "BLOCK_TIMESTAMP < CURRENT_DATE", "error_if": ">10000"}, "created_at": 1672849093.6950212, "compiled_code": "WITH source AS (\n SELECT\n BLOCK_NUMBER, TX_HASH,\n EVENT_INDEX,\n LAG(\n EVENT_INDEX,\n 1\n ) over (\n PARTITION BY BLOCK_NUMBER, TX_HASH\n ORDER BY\n EVENT_INDEX ASC\n ) AS prev_EVENT_INDEX\n FROM\n (select * from POLYGON_DEV.silver.logs where BLOCK_TIMESTAMP < CURRENT_DATE) dbt_subquery\n)\nSELECT\n BLOCK_NUMBER, TX_HASH,\n prev_EVENT_INDEX,\n EVENT_INDEX,\n EVENT_INDEX - prev_EVENT_INDEX\n - 1 AS gap\nFROM\n source\nWHERE\n EVENT_INDEX - prev_EVENT_INDEX <> 1\nORDER BY\n gap DESC ", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.sequence_gaps_silver.logs_EVENT_INDEX", "column_name": null, "file_key_name": "models.silver__logs"}, "test.polygon_models.not_null_silver__traces_BLOCK_NUMBER.9dcd1525b2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__traces')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__traces"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__traces_BLOCK_NUMBER"], "unique_id": "test.polygon_models.not_null_silver__traces_BLOCK_NUMBER.9dcd1525b2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__traces_BLOCK_NUMBER.sql", "original_file_path": "models/silver/silver__traces.yml", "name": "not_null_silver__traces_BLOCK_NUMBER", "alias": "traces_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__traces"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__traces.yml/not_null_silver__traces_BLOCK_NUMBER.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.700512, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.traces\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.traces_BLOCK_NUMBER", "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__traces"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__traces_BLOCK_NUMBER__NUMBER__FLOAT.ccd2c156a6": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__traces')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__traces"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_43321ed6b77eca5b45f709f9d684bdc9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__traces_BLOCK_NUMBER__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__traces_BLOCK_NUMBER__NUMBER__FLOAT.ccd2c156a6", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_43321ed6b77eca5b45f709f9d684bdc9\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_43321ed6b77eca5b45f709f9d684bdc9.sql", "original_file_path": "models/silver/silver__traces.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__traces_BLOCK_NUMBER__NUMBER__FLOAT", "alias": "traces_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__traces"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__traces.yml/dbt_expectations_expect_column_43321ed6b77eca5b45f709f9d684bdc9.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_43321ed6b77eca5b45f709f9d684bdc9"}, "created_at": 1672849093.701239, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MATIC_VALUE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OUTPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IDENTIFIER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_CALL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_STATUS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SUB_TRACES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.traces_BLOCK_NUMBER", "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__traces"}, "test.polygon_models.not_null_silver__traces_BLOCK_TIMESTAMP.4053e07c73": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__traces')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__traces"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__traces_BLOCK_TIMESTAMP"], "unique_id": "test.polygon_models.not_null_silver__traces_BLOCK_TIMESTAMP.4053e07c73", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__traces_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/silver__traces.yml", "name": "not_null_silver__traces_BLOCK_TIMESTAMP", "alias": "traces_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__traces"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__traces.yml/not_null_silver__traces_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.703704, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.traces\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.traces_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__traces"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__traces_BLOCK_TIMESTAMP__day__1.0589c5d87f": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__traces')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__traces"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_d59c36b69ea35df3a2a1dec4ddbc34f0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__traces_BLOCK_TIMESTAMP__day__1"], "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__traces_BLOCK_TIMESTAMP__day__1.0589c5d87f", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_d59c36b69ea35df3a2a1dec4ddbc34f0\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_row_va_d59c36b69ea35df3a2a1dec4ddbc34f0.sql", "original_file_path": "models/silver/silver__traces.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__traces_BLOCK_TIMESTAMP__day__1", "alias": "traces_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__traces"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__traces.yml/dbt_expectations_expect_row_va_d59c36b69ea35df3a2a1dec4ddbc34f0.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_d59c36b69ea35df3a2a1dec4ddbc34f0"}, "created_at": 1672849093.704407, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n POLYGON_DEV.silver.traces\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_row_values_to_have_recent_data_silver.traces_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__traces"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__traces_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.3ffecd9044": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__traces')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__traces"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_628e3bea29d28ae73049f876d7c18590", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__traces_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__traces_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.3ffecd9044", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_628e3bea29d28ae73049f876d7c18590\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_628e3bea29d28ae73049f876d7c18590.sql", "original_file_path": "models/silver/silver__traces.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__traces_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "traces_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__traces"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__traces.yml/dbt_expectations_expect_column_628e3bea29d28ae73049f876d7c18590.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_628e3bea29d28ae73049f876d7c18590"}, "created_at": 1672849093.707089, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MATIC_VALUE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OUTPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IDENTIFIER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_CALL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_STATUS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SUB_TRACES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.traces_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__traces"}, "test.polygon_models.not_null_silver__traces_TX_HASH.ccbdeb5e91": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__traces')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__traces"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__traces_TX_HASH"], "unique_id": "test.polygon_models.not_null_silver__traces_TX_HASH.ccbdeb5e91", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__traces_TX_HASH.sql", "original_file_path": "models/silver/silver__traces.yml", "name": "not_null_silver__traces_TX_HASH", "alias": "traces_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__traces"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__traces.yml/not_null_silver__traces_TX_HASH.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.7091079, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.traces\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.traces_TX_HASH", "column_name": "TX_HASH", "file_key_name": "models.silver__traces"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_TX_HASH__0_xX_0_9a_fA_F_.14f576932b": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__traces')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__traces"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_579eb36993ea514537ff9fdd9ab01060", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__traces_TX_HASH__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_TX_HASH__0_xX_0_9a_fA_F_.14f576932b", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_579eb36993ea514537ff9fdd9ab01060\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_579eb36993ea514537ff9fdd9ab01060.sql", "original_file_path": "models/silver/silver__traces.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__traces_TX_HASH__0_xX_0_9a_fA_F_", "alias": "traces_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__traces"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__traces.yml/dbt_expectations_expect_column_579eb36993ea514537ff9fdd9ab01060.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_579eb36993ea514537ff9fdd9ab01060"}, "created_at": 1672849093.7098188, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.traces\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.traces_TX_HASH", "column_name": "TX_HASH", "file_key_name": "models.silver__traces"}, "test.polygon_models.not_null_silver__traces_FROM_ADDRESS.285ef0c05b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__traces')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__traces"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": "TYPE <> 'SELFDESTRUCT'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__traces_FROM_ADDRESS"], "unique_id": "test.polygon_models.not_null_silver__traces_FROM_ADDRESS.285ef0c05b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"TYPE <> 'SELFDESTRUCT'\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__traces_FROM_ADDRESS.sql", "original_file_path": "models/silver/silver__traces.yml", "name": "not_null_silver__traces_FROM_ADDRESS", "alias": "traces_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__traces"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__traces.yml/not_null_silver__traces_FROM_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "where": "TYPE <> 'SELFDESTRUCT'"}, "created_at": 1672849093.712183, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from POLYGON_DEV.silver.traces where TYPE <> 'SELFDESTRUCT') dbt_subquery\nwhere FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.traces_FROM_ADDRESS", "column_name": "FROM_ADDRESS", "file_key_name": "models.silver__traces"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_FROM_ADDRESS__0_xX_0_9a_fA_F_.b404693575": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__traces')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__traces"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9a525672490a2311a5e69fded19fee5f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__traces_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_FROM_ADDRESS__0_xX_0_9a_fA_F_.b404693575", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9a525672490a2311a5e69fded19fee5f\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_9a525672490a2311a5e69fded19fee5f.sql", "original_file_path": "models/silver/silver__traces.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__traces_FROM_ADDRESS__0_xX_0_9a_fA_F_", "alias": "traces_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__traces"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__traces.yml/dbt_expectations_expect_column_9a525672490a2311a5e69fded19fee5f.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9a525672490a2311a5e69fded19fee5f"}, "created_at": 1672849093.7129018, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.traces\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.traces_FROM_ADDRESS", "column_name": "FROM_ADDRESS", "file_key_name": "models.silver__traces"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_TO_ADDRESS__0_xX_0_9a_fA_F_.3af876962e": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__traces')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__traces"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5136f4a73886b056486a516d60d01feb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": "TO_ADDRESS IS NOT NULL", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__traces_TO_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_TO_ADDRESS__0_xX_0_9a_fA_F_.3af876962e", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(where=\"TO_ADDRESS IS NOT NULL\",alias=\"dbt_expectations_expect_column_5136f4a73886b056486a516d60d01feb\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_5136f4a73886b056486a516d60d01feb.sql", "original_file_path": "models/silver/silver__traces.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__traces_TO_ADDRESS__0_xX_0_9a_fA_F_", "alias": "traces_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__traces"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__traces.yml/dbt_expectations_expect_column_5136f4a73886b056486a516d60d01feb.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "where": "TO_ADDRESS IS NOT NULL", "alias": "dbt_expectations_expect_column_5136f4a73886b056486a516d60d01feb"}, "created_at": 1672849093.715264, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from (select * from POLYGON_DEV.silver.traces where TO_ADDRESS IS NOT NULL) dbt_subquery\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.traces_TO_ADDRESS", "column_name": "TO_ADDRESS", "file_key_name": "models.silver__traces"}, "test.polygon_models.not_null_silver__traces_IDENTIFIER.ee73127ec0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "IDENTIFIER", "model": "{{ get_where_subquery(ref('silver__traces')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__traces"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__traces_IDENTIFIER"], "unique_id": "test.polygon_models.not_null_silver__traces_IDENTIFIER.ee73127ec0", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__traces_IDENTIFIER.sql", "original_file_path": "models/silver/silver__traces.yml", "name": "not_null_silver__traces_IDENTIFIER", "alias": "traces_IDENTIFIER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__traces"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__traces.yml/not_null_silver__traces_IDENTIFIER.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.717477, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.traces\nwhere IDENTIFIER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.traces_IDENTIFIER", "column_name": "IDENTIFIER", "file_key_name": "models.silver__traces"}, "test.polygon_models.not_null_silver__traces_MATIC_VALUE.16932a2346": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MATIC_VALUE", "model": "{{ get_where_subquery(ref('silver__traces')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__traces"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__traces_MATIC_VALUE"], "unique_id": "test.polygon_models.not_null_silver__traces_MATIC_VALUE.16932a2346", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__traces_MATIC_VALUE.sql", "original_file_path": "models/silver/silver__traces.yml", "name": "not_null_silver__traces_MATIC_VALUE", "alias": "traces_MATIC_VALUE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__traces"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__traces.yml/not_null_silver__traces_MATIC_VALUE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.7181828, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.traces\nwhere MATIC_VALUE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.traces_MATIC_VALUE", "column_name": "MATIC_VALUE", "file_key_name": "models.silver__traces"}, "test.polygon_models.not_null_silver__traces_GAS.53d7bbcf6a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "GAS", "model": "{{ get_where_subquery(ref('silver__traces')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__traces"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__traces_GAS"], "unique_id": "test.polygon_models.not_null_silver__traces_GAS.53d7bbcf6a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__traces_GAS.sql", "original_file_path": "models/silver/silver__traces.yml", "name": "not_null_silver__traces_GAS", "alias": "traces_GAS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__traces"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__traces.yml/not_null_silver__traces_GAS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.718871, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.traces\nwhere GAS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.traces_GAS", "column_name": "GAS", "file_key_name": "models.silver__traces"}, "test.polygon_models.not_null_silver__traces_GAS_USED.eb9bf97ca1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "GAS_USED", "model": "{{ get_where_subquery(ref('silver__traces')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__traces"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__traces_GAS_USED"], "unique_id": "test.polygon_models.not_null_silver__traces_GAS_USED.eb9bf97ca1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__traces_GAS_USED.sql", "original_file_path": "models/silver/silver__traces.yml", "name": "not_null_silver__traces_GAS_USED", "alias": "traces_GAS_USED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__traces"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__traces.yml/not_null_silver__traces_GAS_USED.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.7196832, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.traces\nwhere GAS_USED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.traces_GAS_USED", "column_name": "GAS_USED", "file_key_name": "models.silver__traces"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__traces__CALL_ID.2854a11c5a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_CALL_ID"], "model": "{{ get_where_subquery(ref('silver__traces')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__traces"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["polygon_models", "silver", "dbt_utils_unique_combination_of_columns_silver__traces__CALL_ID"], "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__traces__CALL_ID.2854a11c5a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_utils_unique_combination_of_columns_silver__traces__CALL_ID.sql", "original_file_path": "models/silver/silver__traces.yml", "name": "dbt_utils_unique_combination_of_columns_silver__traces__CALL_ID", "alias": "traces", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__traces"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__traces.yml/dbt_utils_unique_combination_of_columns_silver__traces__CALL_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.720366, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _CALL_ID\n from POLYGON_DEV.silver.traces\n group by _CALL_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_utils_unique_combination_of_columns_silver.traces", "column_name": null, "file_key_name": "models.silver__traces"}, "test.polygon_models.not_null_silver__blocks_BLOCK_NUMBER.3ed5bd5a97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__blocks_BLOCK_NUMBER"], "unique_id": "test.polygon_models.not_null_silver__blocks_BLOCK_NUMBER.3ed5bd5a97", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__blocks_BLOCK_NUMBER.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_BLOCK_NUMBER", "alias": "blocks_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/not_null_silver__blocks_BLOCK_NUMBER.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.725698, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.blocks\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.blocks_BLOCK_NUMBER", "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_NUMBER__NUMBER__FLOAT.5e6997665c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7e05ea22080deb3c6bc0a6264fd73f41", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_NUMBER__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_NUMBER__NUMBER__FLOAT.5e6997665c", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7e05ea22080deb3c6bc0a6264fd73f41\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_7e05ea22080deb3c6bc0a6264fd73f41.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_NUMBER__NUMBER__FLOAT", "alias": "blocks_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_7e05ea22080deb3c6bc0a6264fd73f41.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_7e05ea22080deb3c6bc0a6264fd73f41"}, "created_at": 1672849093.726432, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HEADER_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.blocks_BLOCK_NUMBER", "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__blocks"}, "test.polygon_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__blocks_BLOCK_TIMESTAMP"], "unique_id": "test.polygon_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__blocks_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_BLOCK_TIMESTAMP", "alias": "blocks_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/not_null_silver__blocks_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.728621, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.blocks\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.blocks_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_59f17192e0f2a3ba8e68b2c9a7ff0692", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1"], "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_59f17192e0f2a3ba8e68b2c9a7ff0692\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_row_va_59f17192e0f2a3ba8e68b2c9a7ff0692.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1", "alias": "blocks_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_expectations_expect_row_va_59f17192e0f2a3ba8e68b2c9a7ff0692.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_59f17192e0f2a3ba8e68b2c9a7ff0692"}, "created_at": 1672849093.729335, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n POLYGON_DEV.silver.blocks\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_row_values_to_have_recent_data_silver.blocks_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2ee4d8ce0368be721e1f5e161b194f27", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2ee4d8ce0368be721e1f5e161b194f27\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_2ee4d8ce0368be721e1f5e161b194f27.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "blocks_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_2ee4d8ce0368be721e1f5e161b194f27.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_2ee4d8ce0368be721e1f5e161b194f27"}, "created_at": 1672849093.732007, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HEADER_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.blocks_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__blocks"}, "test.polygon_models.not_null_silver__blocks_NETWORK.65d2a5d7b1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NETWORK", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__blocks_NETWORK"], "unique_id": "test.polygon_models.not_null_silver__blocks_NETWORK.65d2a5d7b1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__blocks_NETWORK.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_NETWORK", "alias": "blocks_NETWORK", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/not_null_silver__blocks_NETWORK.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.734035, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.blocks\nwhere NETWORK is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.blocks_NETWORK", "column_name": "NETWORK", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_NETWORK__STRING__VARCHAR.31e2a1e5bd": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "NETWORK", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1cef2f83b795118726572883c9991bd1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_NETWORK__STRING__VARCHAR"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_NETWORK__STRING__VARCHAR.31e2a1e5bd", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1cef2f83b795118726572883c9991bd1\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_1cef2f83b795118726572883c9991bd1.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_NETWORK__STRING__VARCHAR", "alias": "blocks_NETWORK", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_1cef2f83b795118726572883c9991bd1.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_1cef2f83b795118726572883c9991bd1"}, "created_at": 1672849093.7347462, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HEADER_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'NETWORK'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.blocks_NETWORK", "column_name": "NETWORK", "file_key_name": "models.silver__blocks"}, "test.polygon_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__blocks_BLOCKCHAIN"], "unique_id": "test.polygon_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__blocks_BLOCKCHAIN.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_BLOCKCHAIN", "alias": "blocks_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/not_null_silver__blocks_BLOCKCHAIN.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.737212, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.blocks\nwhere BLOCKCHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.blocks_BLOCKCHAIN", "column_name": "BLOCKCHAIN", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c04728f705e33131533b5963a999d26d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c04728f705e33131533b5963a999d26d\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_c04728f705e33131533b5963a999d26d.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR", "alias": "blocks_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_c04728f705e33131533b5963a999d26d.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c04728f705e33131533b5963a999d26d"}, "created_at": 1672849093.737916, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HEADER_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCKCHAIN'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.blocks_BLOCKCHAIN", "column_name": "BLOCKCHAIN", "file_key_name": "models.silver__blocks"}, "test.polygon_models.not_null_silver__blocks_TX_COUNT.34525b51e6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_COUNT", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__blocks_TX_COUNT"], "unique_id": "test.polygon_models.not_null_silver__blocks_TX_COUNT.34525b51e6", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__blocks_TX_COUNT.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_TX_COUNT", "alias": "blocks_TX_COUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/not_null_silver__blocks_TX_COUNT.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.740098, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.blocks\nwhere TX_COUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.blocks_TX_COUNT", "column_name": "TX_COUNT", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_COUNT", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_57647135d3191ca6bcc33dccc86d30b7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_57647135d3191ca6bcc33dccc86d30b7\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_57647135d3191ca6bcc33dccc86d30b7.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT", "alias": "blocks_TX_COUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_57647135d3191ca6bcc33dccc86d30b7.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_57647135d3191ca6bcc33dccc86d30b7"}, "created_at": 1672849093.740809, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HEADER_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_COUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.blocks_TX_COUNT", "column_name": "TX_COUNT", "file_key_name": "models.silver__blocks"}, "test.polygon_models.not_null_silver__blocks_DIFFICULTY.dfd6bb7310": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DIFFICULTY", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__blocks_DIFFICULTY"], "unique_id": "test.polygon_models.not_null_silver__blocks_DIFFICULTY.dfd6bb7310", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__blocks_DIFFICULTY.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_DIFFICULTY", "alias": "blocks_DIFFICULTY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/not_null_silver__blocks_DIFFICULTY.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.742996, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.blocks\nwhere DIFFICULTY is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.blocks_DIFFICULTY", "column_name": "DIFFICULTY", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_DIFFICULTY__NUMBER__FLOAT.4b5343dd2c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "DIFFICULTY", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ed68d3dda75fcab39e15e42c73e545ac", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_DIFFICULTY__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_DIFFICULTY__NUMBER__FLOAT.4b5343dd2c", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ed68d3dda75fcab39e15e42c73e545ac\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_ed68d3dda75fcab39e15e42c73e545ac.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_DIFFICULTY__NUMBER__FLOAT", "alias": "blocks_DIFFICULTY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_ed68d3dda75fcab39e15e42c73e545ac.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_ed68d3dda75fcab39e15e42c73e545ac"}, "created_at": 1672849093.743707, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HEADER_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'DIFFICULTY'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.blocks_DIFFICULTY", "column_name": "DIFFICULTY", "file_key_name": "models.silver__blocks"}, "test.polygon_models.not_null_silver__blocks_TOTAL_DIFFICULTY.64edc4b2a9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_DIFFICULTY", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__blocks_TOTAL_DIFFICULTY"], "unique_id": "test.polygon_models.not_null_silver__blocks_TOTAL_DIFFICULTY.64edc4b2a9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__blocks_TOTAL_DIFFICULTY.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_TOTAL_DIFFICULTY", "alias": "blocks_TOTAL_DIFFICULTY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/not_null_silver__blocks_TOTAL_DIFFICULTY.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.745892, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.blocks\nwhere TOTAL_DIFFICULTY is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.blocks_TOTAL_DIFFICULTY", "column_name": "TOTAL_DIFFICULTY", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TOTAL_DIFFICULTY__NUMBER__FLOAT.4a0213cf40": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TOTAL_DIFFICULTY", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2ff09b420fb96365118952812fcba5b0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TOTAL_DIFFICULTY__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TOTAL_DIFFICULTY__NUMBER__FLOAT.4a0213cf40", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2ff09b420fb96365118952812fcba5b0\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_2ff09b420fb96365118952812fcba5b0.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TOTAL_DIFFICULTY__NUMBER__FLOAT", "alias": "blocks_TOTAL_DIFFICULTY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_2ff09b420fb96365118952812fcba5b0.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_2ff09b420fb96365118952812fcba5b0"}, "created_at": 1672849093.746604, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HEADER_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_DIFFICULTY'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.blocks_TOTAL_DIFFICULTY", "column_name": "TOTAL_DIFFICULTY", "file_key_name": "models.silver__blocks"}, "test.polygon_models.not_null_silver__blocks_EXTRA_DATA.7b7824f6ea": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EXTRA_DATA", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__blocks_EXTRA_DATA"], "unique_id": "test.polygon_models.not_null_silver__blocks_EXTRA_DATA.7b7824f6ea", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__blocks_EXTRA_DATA.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_EXTRA_DATA", "alias": "blocks_EXTRA_DATA", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/not_null_silver__blocks_EXTRA_DATA.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.748784, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.blocks\nwhere EXTRA_DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.blocks_EXTRA_DATA", "column_name": "EXTRA_DATA", "file_key_name": "models.silver__blocks"}, "test.polygon_models.not_null_silver__blocks_GAS_LIMIT.a66366ccf7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "GAS_LIMIT", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__blocks_GAS_LIMIT"], "unique_id": "test.polygon_models.not_null_silver__blocks_GAS_LIMIT.a66366ccf7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__blocks_GAS_LIMIT.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_GAS_LIMIT", "alias": "blocks_GAS_LIMIT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/not_null_silver__blocks_GAS_LIMIT.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.749483, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.blocks\nwhere GAS_LIMIT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.blocks_GAS_LIMIT", "column_name": "GAS_LIMIT", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_GAS_LIMIT__NUMBER__FLOAT.c009cca74d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "GAS_LIMIT", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1daa86559d61b508d00b01f9f99af80a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_GAS_LIMIT__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_GAS_LIMIT__NUMBER__FLOAT.c009cca74d", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1daa86559d61b508d00b01f9f99af80a\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_1daa86559d61b508d00b01f9f99af80a.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_GAS_LIMIT__NUMBER__FLOAT", "alias": "blocks_GAS_LIMIT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_1daa86559d61b508d00b01f9f99af80a.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_1daa86559d61b508d00b01f9f99af80a"}, "created_at": 1672849093.750177, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HEADER_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'GAS_LIMIT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.blocks_GAS_LIMIT", "column_name": "GAS_LIMIT", "file_key_name": "models.silver__blocks"}, "test.polygon_models.not_null_silver__blocks_GAS_USED.637b37099a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "GAS_USED", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__blocks_GAS_USED"], "unique_id": "test.polygon_models.not_null_silver__blocks_GAS_USED.637b37099a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__blocks_GAS_USED.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_GAS_USED", "alias": "blocks_GAS_USED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/not_null_silver__blocks_GAS_USED.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.7523708, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.blocks\nwhere GAS_USED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.blocks_GAS_USED", "column_name": "GAS_USED", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_GAS_USED__NUMBER__FLOAT.bde7aa758f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "GAS_USED", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f415928bbbf31687059ff7dbbfbd150b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_GAS_USED__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_GAS_USED__NUMBER__FLOAT.bde7aa758f", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f415928bbbf31687059ff7dbbfbd150b\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_f415928bbbf31687059ff7dbbfbd150b.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_GAS_USED__NUMBER__FLOAT", "alias": "blocks_GAS_USED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_f415928bbbf31687059ff7dbbfbd150b.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f415928bbbf31687059ff7dbbfbd150b"}, "created_at": 1672849093.753077, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HEADER_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'GAS_USED'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.blocks_GAS_USED", "column_name": "GAS_USED", "file_key_name": "models.silver__blocks"}, "test.polygon_models.not_null_silver__blocks_HASH.bc44a39f94": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "HASH", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__blocks_HASH"], "unique_id": "test.polygon_models.not_null_silver__blocks_HASH.bc44a39f94", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__blocks_HASH.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_HASH", "alias": "blocks_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/not_null_silver__blocks_HASH.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.755251, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.blocks\nwhere HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.blocks_HASH", "column_name": "HASH", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_HASH__0_xX_0_9a_fA_F_.923a822bca": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "HASH", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c1de592817bfb7ff003239c7e695b890", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__blocks_HASH__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_HASH__0_xX_0_9a_fA_F_.923a822bca", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c1de592817bfb7ff003239c7e695b890\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_c1de592817bfb7ff003239c7e695b890.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__blocks_HASH__0_xX_0_9a_fA_F_", "alias": "blocks_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_c1de592817bfb7ff003239c7e695b890.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c1de592817bfb7ff003239c7e695b890"}, "created_at": 1672849093.755955, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.blocks\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.blocks_HASH", "column_name": "HASH", "file_key_name": "models.silver__blocks"}, "test.polygon_models.not_null_silver__blocks_PARENT_HASH.a17a399346": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PARENT_HASH", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__blocks_PARENT_HASH"], "unique_id": "test.polygon_models.not_null_silver__blocks_PARENT_HASH.a17a399346", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__blocks_PARENT_HASH.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_PARENT_HASH", "alias": "blocks_PARENT_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/not_null_silver__blocks_PARENT_HASH.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.7581508, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.blocks\nwhere PARENT_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.blocks_PARENT_HASH", "column_name": "PARENT_HASH", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_PARENT_HASH__0_xX_0_9a_fA_F_.164fb6eb16": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "PARENT_HASH", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5ab97ce7ef94821c9e7507b522f5063b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__blocks_PARENT_HASH__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_PARENT_HASH__0_xX_0_9a_fA_F_.164fb6eb16", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5ab97ce7ef94821c9e7507b522f5063b\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_5ab97ce7ef94821c9e7507b522f5063b.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__blocks_PARENT_HASH__0_xX_0_9a_fA_F_", "alias": "blocks_PARENT_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_5ab97ce7ef94821c9e7507b522f5063b.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_5ab97ce7ef94821c9e7507b522f5063b"}, "created_at": 1672849093.758862, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(PARENT_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.blocks\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.blocks_PARENT_HASH", "column_name": "PARENT_HASH", "file_key_name": "models.silver__blocks"}, "test.polygon_models.not_null_silver__blocks_MINER.c17f6cbb87": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MINER", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__blocks_MINER"], "unique_id": "test.polygon_models.not_null_silver__blocks_MINER.c17f6cbb87", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__blocks_MINER.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_MINER", "alias": "blocks_MINER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/not_null_silver__blocks_MINER.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.761059, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.blocks\nwhere MINER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.blocks_MINER", "column_name": "MINER", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_MINER__0_xX_0_9a_fA_F_.7e8cc9ca0b": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "MINER", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a2ff9e6809e3f772c0d4c8ca8112dd8e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__blocks_MINER__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_MINER__0_xX_0_9a_fA_F_.7e8cc9ca0b", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a2ff9e6809e3f772c0d4c8ca8112dd8e\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_a2ff9e6809e3f772c0d4c8ca8112dd8e.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__blocks_MINER__0_xX_0_9a_fA_F_", "alias": "blocks_MINER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_a2ff9e6809e3f772c0d4c8ca8112dd8e.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_a2ff9e6809e3f772c0d4c8ca8112dd8e"}, "created_at": 1672849093.761769, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(MINER, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.blocks\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.blocks_MINER", "column_name": "MINER", "file_key_name": "models.silver__blocks"}, "test.polygon_models.not_null_silver__blocks_NONCE.10c0698884": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NONCE", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__blocks_NONCE"], "unique_id": "test.polygon_models.not_null_silver__blocks_NONCE.10c0698884", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__blocks_NONCE.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_NONCE", "alias": "blocks_NONCE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/not_null_silver__blocks_NONCE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.763957, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.blocks\nwhere NONCE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.blocks_NONCE", "column_name": "NONCE", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_NONCE__0_xX_0_9a_fA_F_.0f55c64955": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "NONCE", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9f1652571b7ac6fa920df47a87242455", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__blocks_NONCE__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_NONCE__0_xX_0_9a_fA_F_.0f55c64955", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9f1652571b7ac6fa920df47a87242455\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_9f1652571b7ac6fa920df47a87242455.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__blocks_NONCE__0_xX_0_9a_fA_F_", "alias": "blocks_NONCE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_9f1652571b7ac6fa920df47a87242455.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9f1652571b7ac6fa920df47a87242455"}, "created_at": 1672849093.764659, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(NONCE, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.blocks\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.blocks_NONCE", "column_name": "NONCE", "file_key_name": "models.silver__blocks"}, "test.polygon_models.not_null_silver__blocks_RECEIPTS_ROOT.cd3163505f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "RECEIPTS_ROOT", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__blocks_RECEIPTS_ROOT"], "unique_id": "test.polygon_models.not_null_silver__blocks_RECEIPTS_ROOT.cd3163505f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__blocks_RECEIPTS_ROOT.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_RECEIPTS_ROOT", "alias": "blocks_RECEIPTS_ROOT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/not_null_silver__blocks_RECEIPTS_ROOT.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.7668521, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.blocks\nwhere RECEIPTS_ROOT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.blocks_RECEIPTS_ROOT", "column_name": "RECEIPTS_ROOT", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.6964f6dc30": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "RECEIPTS_ROOT", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_928c7d0ac4503aa3fba357dc439448d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__blocks_RECEIPTS_ROOT__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.6964f6dc30", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_928c7d0ac4503aa3fba357dc439448d3\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_928c7d0ac4503aa3fba357dc439448d3.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__blocks_RECEIPTS_ROOT__0_xX_0_9a_fA_F_", "alias": "blocks_RECEIPTS_ROOT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_928c7d0ac4503aa3fba357dc439448d3.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_928c7d0ac4503aa3fba357dc439448d3"}, "created_at": 1672849093.767555, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(RECEIPTS_ROOT, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.blocks\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.blocks_RECEIPTS_ROOT", "column_name": "RECEIPTS_ROOT", "file_key_name": "models.silver__blocks"}, "test.polygon_models.not_null_silver__blocks_SHA3_UNCLES.e7c903103e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SHA3_UNCLES", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__blocks_SHA3_UNCLES"], "unique_id": "test.polygon_models.not_null_silver__blocks_SHA3_UNCLES.e7c903103e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__blocks_SHA3_UNCLES.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_SHA3_UNCLES", "alias": "blocks_SHA3_UNCLES", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/not_null_silver__blocks_SHA3_UNCLES.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.769737, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.blocks\nwhere SHA3_UNCLES is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.blocks_SHA3_UNCLES", "column_name": "SHA3_UNCLES", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_SHA3_UNCLES__0_xX_0_9a_fA_F_.c74b2fa922": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "SHA3_UNCLES", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_154155f901daaab522c7c97e397e6479", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__blocks_SHA3_UNCLES__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_SHA3_UNCLES__0_xX_0_9a_fA_F_.c74b2fa922", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_154155f901daaab522c7c97e397e6479\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_154155f901daaab522c7c97e397e6479.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__blocks_SHA3_UNCLES__0_xX_0_9a_fA_F_", "alias": "blocks_SHA3_UNCLES", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_154155f901daaab522c7c97e397e6479.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_154155f901daaab522c7c97e397e6479"}, "created_at": 1672849093.770449, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(SHA3_UNCLES, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.blocks\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.blocks_SHA3_UNCLES", "column_name": "SHA3_UNCLES", "file_key_name": "models.silver__blocks"}, "test.polygon_models.not_null_silver__blocks_SIZE.f1fa8f466b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SIZE", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__blocks_SIZE"], "unique_id": "test.polygon_models.not_null_silver__blocks_SIZE.f1fa8f466b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__blocks_SIZE.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_SIZE", "alias": "blocks_SIZE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/not_null_silver__blocks_SIZE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.772931, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.blocks\nwhere SIZE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.blocks_SIZE", "column_name": "SIZE", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_SIZE__NUMBER.7f2a8fc982": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER"], "column_name": "SIZE", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c12c48f401fb508673d875e88736b875", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_SIZE__NUMBER"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_SIZE__NUMBER.7f2a8fc982", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c12c48f401fb508673d875e88736b875\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_c12c48f401fb508673d875e88736b875.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_SIZE__NUMBER", "alias": "blocks_SIZE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_c12c48f401fb508673d875e88736b875.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c12c48f401fb508673d875e88736b875"}, "created_at": 1672849093.773639, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HEADER_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'SIZE'\n and\n relation_column_type not in ('NUMBER')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.blocks_SIZE", "column_name": "SIZE", "file_key_name": "models.silver__blocks"}, "test.polygon_models.not_null_silver__blocks_BLOCK_HEADER_JSON.98268f8f2b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_HEADER_JSON", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__blocks_BLOCK_HEADER_JSON"], "unique_id": "test.polygon_models.not_null_silver__blocks_BLOCK_HEADER_JSON.98268f8f2b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__blocks_BLOCK_HEADER_JSON.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_BLOCK_HEADER_JSON", "alias": "blocks_BLOCK_HEADER_JSON", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/not_null_silver__blocks_BLOCK_HEADER_JSON.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.775659, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.blocks\nwhere BLOCK_HEADER_JSON is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.blocks_BLOCK_HEADER_JSON", "column_name": "BLOCK_HEADER_JSON", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_HEADER_JSON__OBJECT.1be6a88f28": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["OBJECT"], "column_name": "BLOCK_HEADER_JSON", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3ef449a2e3d542bf9a2fb0d78d544691", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_HEADER_JSON__OBJECT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_HEADER_JSON__OBJECT.1be6a88f28", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3ef449a2e3d542bf9a2fb0d78d544691\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_3ef449a2e3d542bf9a2fb0d78d544691.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_HEADER_JSON__OBJECT", "alias": "blocks_BLOCK_HEADER_JSON", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_3ef449a2e3d542bf9a2fb0d78d544691.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3ef449a2e3d542bf9a2fb0d78d544691"}, "created_at": 1672849093.776371, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HEADER_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_HEADER_JSON'\n and\n relation_column_type not in ('OBJECT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.blocks_BLOCK_HEADER_JSON", "column_name": "BLOCK_HEADER_JSON", "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__blocks_BLOCK_NUMBER.58d43342ca": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BLOCK_NUMBER"], "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_29324c86efadd806a7aa4bc13c3aac08", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["polygon_models", "silver", "dbt_utils_unique_combination_of_columns_silver__blocks_BLOCK_NUMBER"], "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__blocks_BLOCK_NUMBER.58d43342ca", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_29324c86efadd806a7aa4bc13c3aac08\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_utils_unique_combination_o_29324c86efadd806a7aa4bc13c3aac08.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_utils_unique_combination_of_columns_silver__blocks_BLOCK_NUMBER", "alias": "blocks_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__blocks.yml/dbt_utils_unique_combination_o_29324c86efadd806a7aa4bc13c3aac08.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_29324c86efadd806a7aa4bc13c3aac08"}, "created_at": 1672849093.778383, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n BLOCK_NUMBER\n from POLYGON_DEV.silver.blocks\n group by BLOCK_NUMBER\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_utils_unique_combination_of_columns_silver.blocks_BLOCK_NUMBER", "column_name": null, "file_key_name": "models.silver__blocks"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contract_abis_CONTRACT_ADDRESS.d4ac45a2a1": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS"], "model": "{{ get_where_subquery(ref('silver__contract_abis')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__contract_abis"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e2b1b8323864893675ddfa5463249e28", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["polygon_models", "silver", "dbt_utils_unique_combination_of_columns_silver__contract_abis_CONTRACT_ADDRESS"], "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contract_abis_CONTRACT_ADDRESS.d4ac45a2a1", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e2b1b8323864893675ddfa5463249e28\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_utils_unique_combination_o_e2b1b8323864893675ddfa5463249e28.sql", "original_file_path": "models/silver/silver__contract_abis.yml", "name": "dbt_utils_unique_combination_of_columns_silver__contract_abis_CONTRACT_ADDRESS", "alias": "contract_abis_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__contract_abis"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__contract_abis.yml/dbt_utils_unique_combination_o_e2b1b8323864893675ddfa5463249e28.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_e2b1b8323864893675ddfa5463249e28"}, "created_at": 1672849093.780736, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS\n from POLYGON_DEV.silver.contract_abis\n group by CONTRACT_ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_utils_unique_combination_of_columns_silver.contract_abis_CONTRACT_ADDRESS", "column_name": null, "file_key_name": "models.silver__contract_abis"}, "test.polygon_models.not_null_silver__transactions_BLOCK_NUMBER.574ebe21b0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_BLOCK_NUMBER"], "unique_id": "test.polygon_models.not_null_silver__transactions_BLOCK_NUMBER.574ebe21b0", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_BLOCK_NUMBER.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_BLOCK_NUMBER", "alias": "transactions_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_BLOCK_NUMBER.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.786452, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_BLOCK_NUMBER", "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__transactions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_NUMBER__NUMBER__FLOAT.c48e941615": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_05e071a30a52fe01bd86c5f0b2b8b265", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_NUMBER__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_NUMBER__NUMBER__FLOAT.c48e941615", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_05e071a30a52fe01bd86c5f0b2b8b265\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_05e071a30a52fe01bd86c5f0b2b8b265.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_NUMBER__NUMBER__FLOAT", "alias": "transactions_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_05e071a30a52fe01bd86c5f0b2b8b265.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_05e071a30a52fe01bd86c5f0b2b8b265"}, "created_at": 1672849093.787182, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MATIC_VALUE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATUS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CUMULATIVE_GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EFFECTIVE_GAS_PRICE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transactions_BLOCK_NUMBER", "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_BLOCK_TIMESTAMP"], "unique_id": "test.polygon_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_BLOCK_TIMESTAMP", "alias": "transactions_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.789361, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__transactions"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_7e7ddbc9b4a7dbd76c2af79a27effcdb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1"], "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_7e7ddbc9b4a7dbd76c2af79a27effcdb\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_row_va_7e7ddbc9b4a7dbd76c2af79a27effcdb.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1", "alias": "transactions_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/dbt_expectations_expect_row_va_7e7ddbc9b4a7dbd76c2af79a27effcdb.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_7e7ddbc9b4a7dbd76c2af79a27effcdb"}, "created_at": 1672849093.790098, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n POLYGON_DEV.silver.transactions\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_row_values_to_have_recent_data_silver.transactions_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__transactions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_867039df339fcae87e7a780c6020a0eb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_867039df339fcae87e7a780c6020a0eb\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_867039df339fcae87e7a780c6020a0eb.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "transactions_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_867039df339fcae87e7a780c6020a0eb.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_867039df339fcae87e7a780c6020a0eb"}, "created_at": 1672849093.792764, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MATIC_VALUE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATUS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CUMULATIVE_GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EFFECTIVE_GAS_PRICE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transactions_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transactions_TX_HASH.8a2cc32062": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_TX_HASH"], "unique_id": "test.polygon_models.not_null_silver__transactions_TX_HASH.8a2cc32062", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_TX_HASH.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_TX_HASH", "alias": "transactions_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_TX_HASH.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.794776, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_TX_HASH", "column_name": "TX_HASH", "file_key_name": "models.silver__transactions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_TX_HASH__0_xX_0_9a_fA_F_.558497d3b6": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_084333e99c2867404db31712b1bd21ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__transactions_TX_HASH__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_TX_HASH__0_xX_0_9a_fA_F_.558497d3b6", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_084333e99c2867404db31712b1bd21ec\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_084333e99c2867404db31712b1bd21ec.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__transactions_TX_HASH__0_xX_0_9a_fA_F_", "alias": "transactions_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_084333e99c2867404db31712b1bd21ec.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_084333e99c2867404db31712b1bd21ec"}, "created_at": 1672849093.7954838, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.transactions\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.transactions_TX_HASH", "column_name": "TX_HASH", "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transactions_NONCE.3eac435cf9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NONCE", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_NONCE"], "unique_id": "test.polygon_models.not_null_silver__transactions_NONCE.3eac435cf9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_NONCE.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_NONCE", "alias": "transactions_NONCE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_NONCE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.797685, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere NONCE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_NONCE", "column_name": "NONCE", "file_key_name": "models.silver__transactions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_NONCE__NUMBER__FLOAT.e9f3267e00": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "NONCE", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_62dca8692bf0a9aa5386914ec2196f2f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_NONCE__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_NONCE__NUMBER__FLOAT.e9f3267e00", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_62dca8692bf0a9aa5386914ec2196f2f\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_62dca8692bf0a9aa5386914ec2196f2f.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_NONCE__NUMBER__FLOAT", "alias": "transactions_NONCE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_62dca8692bf0a9aa5386914ec2196f2f.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_62dca8692bf0a9aa5386914ec2196f2f"}, "created_at": 1672849093.798391, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MATIC_VALUE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATUS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CUMULATIVE_GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EFFECTIVE_GAS_PRICE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'NONCE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transactions_NONCE", "column_name": "NONCE", "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transactions_POSITION.6be7c293c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "POSITION", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_POSITION"], "unique_id": "test.polygon_models.not_null_silver__transactions_POSITION.6be7c293c7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_POSITION.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_POSITION", "alias": "transactions_POSITION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_POSITION.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.800564, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere POSITION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_POSITION", "column_name": "POSITION", "file_key_name": "models.silver__transactions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_POSITION__NUMBER.5d920e939f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER"], "column_name": "POSITION", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_555689e62c9d439cab0c03d27abf490d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_POSITION__NUMBER"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_POSITION__NUMBER.5d920e939f", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_555689e62c9d439cab0c03d27abf490d\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_555689e62c9d439cab0c03d27abf490d.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_POSITION__NUMBER", "alias": "transactions_POSITION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_555689e62c9d439cab0c03d27abf490d.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_555689e62c9d439cab0c03d27abf490d"}, "created_at": 1672849093.801276, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MATIC_VALUE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATUS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CUMULATIVE_GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EFFECTIVE_GAS_PRICE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'POSITION'\n and\n relation_column_type not in ('NUMBER')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transactions_POSITION", "column_name": "POSITION", "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transactions_FROM_ADDRESS.002109da43": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_FROM_ADDRESS"], "unique_id": "test.polygon_models.not_null_silver__transactions_FROM_ADDRESS.002109da43", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_FROM_ADDRESS.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_FROM_ADDRESS", "alias": "transactions_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_FROM_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.8032918, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_FROM_ADDRESS", "column_name": "FROM_ADDRESS", "file_key_name": "models.silver__transactions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_FROM_ADDRESS__0_xX_0_9a_fA_F_.48157e7169": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ace827f4f78564d52ce5e48d294e6787", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__transactions_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_FROM_ADDRESS__0_xX_0_9a_fA_F_.48157e7169", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ace827f4f78564d52ce5e48d294e6787\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_ace827f4f78564d52ce5e48d294e6787.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__transactions_FROM_ADDRESS__0_xX_0_9a_fA_F_", "alias": "transactions_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_ace827f4f78564d52ce5e48d294e6787.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_ace827f4f78564d52ce5e48d294e6787"}, "created_at": 1672849093.803992, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.transactions\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.transactions_FROM_ADDRESS", "column_name": "FROM_ADDRESS", "file_key_name": "models.silver__transactions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_TO_ADDRESS__0_xX_0_9a_fA_F_.6729f77190": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_dc2d30f7c379dd83ac67adf5ebd5bf14", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": "TO_ADDRESS IS NOT NULL", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__transactions_TO_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_TO_ADDRESS__0_xX_0_9a_fA_F_.6729f77190", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(where=\"TO_ADDRESS IS NOT NULL\",alias=\"dbt_expectations_expect_column_dc2d30f7c379dd83ac67adf5ebd5bf14\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_dc2d30f7c379dd83ac67adf5ebd5bf14.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__transactions_TO_ADDRESS__0_xX_0_9a_fA_F_", "alias": "transactions_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_dc2d30f7c379dd83ac67adf5ebd5bf14.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "where": "TO_ADDRESS IS NOT NULL", "alias": "dbt_expectations_expect_column_dc2d30f7c379dd83ac67adf5ebd5bf14"}, "created_at": 1672849093.806634, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from (select * from POLYGON_DEV.silver.transactions where TO_ADDRESS IS NOT NULL) dbt_subquery\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.transactions_TO_ADDRESS", "column_name": "TO_ADDRESS", "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transactions_MATIC_VALUE.e723701716": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MATIC_VALUE", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_MATIC_VALUE"], "unique_id": "test.polygon_models.not_null_silver__transactions_MATIC_VALUE.e723701716", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_MATIC_VALUE.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_MATIC_VALUE", "alias": "transactions_MATIC_VALUE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_MATIC_VALUE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.808845, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere MATIC_VALUE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_MATIC_VALUE", "column_name": "MATIC_VALUE", "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transactions_BLOCK_HASH.2c918b73f5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_HASH", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_BLOCK_HASH"], "unique_id": "test.polygon_models.not_null_silver__transactions_BLOCK_HASH.2c918b73f5", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_BLOCK_HASH.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_BLOCK_HASH", "alias": "transactions_BLOCK_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_BLOCK_HASH.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.809547, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere BLOCK_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_BLOCK_HASH", "column_name": "BLOCK_HASH", "file_key_name": "models.silver__transactions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_BLOCK_HASH__0_xX_0_9a_fA_F_.6a7999ad31": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "BLOCK_HASH", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_edb379d8ec7579800d3cdbbe1bc0c0ef", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__transactions_BLOCK_HASH__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_BLOCK_HASH__0_xX_0_9a_fA_F_.6a7999ad31", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_edb379d8ec7579800d3cdbbe1bc0c0ef\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_edb379d8ec7579800d3cdbbe1bc0c0ef.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__transactions_BLOCK_HASH__0_xX_0_9a_fA_F_", "alias": "transactions_BLOCK_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_edb379d8ec7579800d3cdbbe1bc0c0ef.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_edb379d8ec7579800d3cdbbe1bc0c0ef"}, "created_at": 1672849093.810247, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(BLOCK_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.transactions\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.transactions_BLOCK_HASH", "column_name": "BLOCK_HASH", "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transactions_GAS_PRICE.9ee195e584": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "GAS_PRICE", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_GAS_PRICE"], "unique_id": "test.polygon_models.not_null_silver__transactions_GAS_PRICE.9ee195e584", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_GAS_PRICE.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_GAS_PRICE", "alias": "transactions_GAS_PRICE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_GAS_PRICE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.812456, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere GAS_PRICE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_GAS_PRICE", "column_name": "GAS_PRICE", "file_key_name": "models.silver__transactions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_PRICE__NUMBER__FLOAT.7ff329f632": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "GAS_PRICE", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b1991aaa0f0ac7849860fbbb2c14be39", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_PRICE__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_PRICE__NUMBER__FLOAT.7ff329f632", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b1991aaa0f0ac7849860fbbb2c14be39\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_b1991aaa0f0ac7849860fbbb2c14be39.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_PRICE__NUMBER__FLOAT", "alias": "transactions_GAS_PRICE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_b1991aaa0f0ac7849860fbbb2c14be39.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b1991aaa0f0ac7849860fbbb2c14be39"}, "created_at": 1672849093.813159, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MATIC_VALUE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATUS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CUMULATIVE_GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EFFECTIVE_GAS_PRICE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'GAS_PRICE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transactions_GAS_PRICE", "column_name": "GAS_PRICE", "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transactions_GAS_LIMIT.b5ac619228": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "GAS_LIMIT", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_GAS_LIMIT"], "unique_id": "test.polygon_models.not_null_silver__transactions_GAS_LIMIT.b5ac619228", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_GAS_LIMIT.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_GAS_LIMIT", "alias": "transactions_GAS_LIMIT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_GAS_LIMIT.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.815349, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere GAS_LIMIT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_GAS_LIMIT", "column_name": "GAS_LIMIT", "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transactions_INPUT_DATA.3cc998f5b1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INPUT_DATA", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_INPUT_DATA"], "unique_id": "test.polygon_models.not_null_silver__transactions_INPUT_DATA.3cc998f5b1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_INPUT_DATA.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_INPUT_DATA", "alias": "transactions_INPUT_DATA", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_INPUT_DATA.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.816054, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere INPUT_DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_INPUT_DATA", "column_name": "INPUT_DATA", "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transactions_STATUS.42a484ef7a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "STATUS", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_STATUS"], "unique_id": "test.polygon_models.not_null_silver__transactions_STATUS.42a484ef7a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_STATUS.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_STATUS", "alias": "transactions_STATUS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_STATUS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.816876, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere STATUS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_STATUS", "column_name": "STATUS", "file_key_name": "models.silver__transactions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__transactions_STATUS__SUCCESS__FAIL.f4150c7e34": {"test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["SUCCESS", "FAIL"], "column_name": "STATUS", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_872f99065f10c7e61eabddf3c8777c3c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_set_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_set_silver__transactions_STATUS__SUCCESS__FAIL"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__transactions_STATUS__SUCCESS__FAIL.f4150c7e34", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_872f99065f10c7e61eabddf3c8777c3c\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_872f99065f10c7e61eabddf3c8777c3c.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_set_silver__transactions_STATUS__SUCCESS__FAIL", "alias": "transactions_STATUS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_872f99065f10c7e61eabddf3c8777c3c.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_872f99065f10c7e61eabddf3c8777c3c"}, "created_at": 1672849093.81757, "compiled_code": "\n\nwith all_values as (\n\n select\n STATUS as value_field\n\n from POLYGON_DEV.silver.transactions\n \n\n),\nset_values as (\n\n select\n cast('SUCCESS' as TEXT) as value_field\n union all\n select\n cast('FAIL' as TEXT) as value_field\n \n \n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_set_silver.transactions_STATUS", "column_name": "STATUS", "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transactions_GAS_USED.1c943486c0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "GAS_USED", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_GAS_USED"], "unique_id": "test.polygon_models.not_null_silver__transactions_GAS_USED.1c943486c0", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_GAS_USED.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_GAS_USED", "alias": "transactions_GAS_USED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_GAS_USED.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.821276, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere GAS_USED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_GAS_USED", "column_name": "GAS_USED", "file_key_name": "models.silver__transactions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "GAS_USED", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0e2b2dda75a879bf3be8005c2ae5de07", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0e2b2dda75a879bf3be8005c2ae5de07\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_0e2b2dda75a879bf3be8005c2ae5de07.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT", "alias": "transactions_GAS_USED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_0e2b2dda75a879bf3be8005c2ae5de07.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_0e2b2dda75a879bf3be8005c2ae5de07"}, "created_at": 1672849093.821986, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MATIC_VALUE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATUS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CUMULATIVE_GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EFFECTIVE_GAS_PRICE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'GAS_USED'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transactions_GAS_USED", "column_name": "GAS_USED", "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transactions_CUMULATIVE_GAS_USED.2ff9788f8f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CUMULATIVE_GAS_USED", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_CUMULATIVE_GAS_USED"], "unique_id": "test.polygon_models.not_null_silver__transactions_CUMULATIVE_GAS_USED.2ff9788f8f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_CUMULATIVE_GAS_USED.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_CUMULATIVE_GAS_USED", "alias": "transactions_CUMULATIVE_GAS_USED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_CUMULATIVE_GAS_USED.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.824206, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere CUMULATIVE_GAS_USED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_CUMULATIVE_GAS_USED", "column_name": "CUMULATIVE_GAS_USED", "file_key_name": "models.silver__transactions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_CUMULATIVE_GAS_USED__NUMBER__FLOAT.68061c4689": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "CUMULATIVE_GAS_USED", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_45b95261835eb2c24f1f98898c20a8ed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_CUMULATIVE_GAS_USED__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_CUMULATIVE_GAS_USED__NUMBER__FLOAT.68061c4689", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_45b95261835eb2c24f1f98898c20a8ed\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_45b95261835eb2c24f1f98898c20a8ed.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_CUMULATIVE_GAS_USED__NUMBER__FLOAT", "alias": "transactions_CUMULATIVE_GAS_USED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_45b95261835eb2c24f1f98898c20a8ed.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_45b95261835eb2c24f1f98898c20a8ed"}, "created_at": 1672849093.8249202, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MATIC_VALUE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATUS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CUMULATIVE_GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EFFECTIVE_GAS_PRICE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'CUMULATIVE_GAS_USED'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transactions_CUMULATIVE_GAS_USED", "column_name": "CUMULATIVE_GAS_USED", "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transactions_TX_FEE.f2f0cdc085": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_TX_FEE"], "unique_id": "test.polygon_models.not_null_silver__transactions_TX_FEE.f2f0cdc085", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_TX_FEE.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_TX_FEE", "alias": "transactions_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_TX_FEE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.827127, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere TX_FEE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_TX_FEE", "column_name": "TX_FEE", "file_key_name": "models.silver__transactions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_FEE__NUMBER__FLOAT.c56121a801": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0b4d3bcae2ca4f1c43b283711aef3c35", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_FEE__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_FEE__NUMBER__FLOAT.c56121a801", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0b4d3bcae2ca4f1c43b283711aef3c35\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_0b4d3bcae2ca4f1c43b283711aef3c35.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_FEE__NUMBER__FLOAT", "alias": "transactions_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_0b4d3bcae2ca4f1c43b283711aef3c35.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_0b4d3bcae2ca4f1c43b283711aef3c35"}, "created_at": 1672849093.8278358, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MATIC_VALUE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATUS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CUMULATIVE_GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EFFECTIVE_GAS_PRICE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_FEE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transactions_TX_FEE", "column_name": "TX_FEE", "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transactions_EFFECTIVE_GAS_PRICE.fac733dec7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EFFECTIVE_GAS_PRICE", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_EFFECTIVE_GAS_PRICE"], "unique_id": "test.polygon_models.not_null_silver__transactions_EFFECTIVE_GAS_PRICE.fac733dec7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_EFFECTIVE_GAS_PRICE.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_EFFECTIVE_GAS_PRICE", "alias": "transactions_EFFECTIVE_GAS_PRICE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_EFFECTIVE_GAS_PRICE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.830047, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere EFFECTIVE_GAS_PRICE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_EFFECTIVE_GAS_PRICE", "column_name": "EFFECTIVE_GAS_PRICE", "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transactions_TX_JSON.c989b71e6a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_JSON", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_TX_JSON"], "unique_id": "test.polygon_models.not_null_silver__transactions_TX_JSON.c989b71e6a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_TX_JSON.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_TX_JSON", "alias": "transactions_TX_JSON", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_TX_JSON.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.830754, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere TX_JSON is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_TX_JSON", "column_name": "TX_JSON", "file_key_name": "models.silver__transactions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_JSON__OBJECT.f6596e98ec": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["OBJECT"], "column_name": "TX_JSON", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_06b0aca54d96e39c17a644c62937f0ed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_JSON__OBJECT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_JSON__OBJECT.f6596e98ec", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_06b0aca54d96e39c17a644c62937f0ed\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_06b0aca54d96e39c17a644c62937f0ed.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_JSON__OBJECT", "alias": "transactions_TX_JSON", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_06b0aca54d96e39c17a644c62937f0ed.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_06b0aca54d96e39c17a644c62937f0ed"}, "created_at": 1672849093.831449, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MATIC_VALUE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATUS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CUMULATIVE_GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EFFECTIVE_GAS_PRICE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_JSON'\n and\n relation_column_type not in ('OBJECT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transactions_TX_JSON", "column_name": "TX_JSON", "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transactions_INGESTED_AT.98e6b66449": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INGESTED_AT", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_INGESTED_AT"], "unique_id": "test.polygon_models.not_null_silver__transactions_INGESTED_AT.98e6b66449", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_INGESTED_AT.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_INGESTED_AT", "alias": "transactions_INGESTED_AT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_INGESTED_AT.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.8335261, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere INGESTED_AT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_INGESTED_AT", "column_name": "INGESTED_AT", "file_key_name": "models.silver__transactions"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_INGESTED_AT__TIMESTAMP_NTZ.c716636b55": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "INGESTED_AT", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_52f894208921d17a5239f274366ad6f3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_INGESTED_AT__TIMESTAMP_NTZ"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_INGESTED_AT__TIMESTAMP_NTZ.c716636b55", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_52f894208921d17a5239f274366ad6f3\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_52f894208921d17a5239f274366ad6f3.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_INGESTED_AT__TIMESTAMP_NTZ", "alias": "transactions_INGESTED_AT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_52f894208921d17a5239f274366ad6f3.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_52f894208921d17a5239f274366ad6f3"}, "created_at": 1672849093.834234, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MATIC_VALUE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATUS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CUMULATIVE_GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EFFECTIVE_GAS_PRICE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INGESTED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INGESTED_AT'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transactions_INGESTED_AT", "column_name": "INGESTED_AT", "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transactions_ORIGIN_FUNCTION_SIGNATURE.6ba6212d68": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transactions_ORIGIN_FUNCTION_SIGNATURE"], "unique_id": "test.polygon_models.not_null_silver__transactions_ORIGIN_FUNCTION_SIGNATURE.6ba6212d68", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transactions_ORIGIN_FUNCTION_SIGNATURE.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_ORIGIN_FUNCTION_SIGNATURE", "alias": "transactions_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/not_null_silver__transactions_ORIGIN_FUNCTION_SIGNATURE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.836297, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transactions\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transactions_ORIGIN_FUNCTION_SIGNATURE", "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__transactions"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__transactions_TX_HASH.c217683bc6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["TX_HASH"], "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7a84e25f1ca3d82eb9547aa168eb4b32", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["polygon_models", "silver", "dbt_utils_unique_combination_of_columns_silver__transactions_TX_HASH"], "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__transactions_TX_HASH.c217683bc6", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7a84e25f1ca3d82eb9547aa168eb4b32\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_utils_unique_combination_o_7a84e25f1ca3d82eb9547aa168eb4b32.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_utils_unique_combination_of_columns_silver__transactions_TX_HASH", "alias": "transactions_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/dbt_utils_unique_combination_o_7a84e25f1ca3d82eb9547aa168eb4b32.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_7a84e25f1ca3d82eb9547aa168eb4b32"}, "created_at": 1672849093.837013, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n TX_HASH\n from POLYGON_DEV.silver.transactions\n group by TX_HASH\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_utils_unique_combination_of_columns_silver.transactions_TX_HASH", "column_name": null, "file_key_name": "models.silver__transactions"}, "test.polygon_models.sequence_gaps_silver__transactions_POSITION__BLOCK_NUMBER.bb18e3a49e": {"test_metadata": {"name": "sequence_gaps", "kwargs": {"partition_by": ["BLOCK_NUMBER"], "column_name": "POSITION", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.polygon_models.test_sequence_gaps", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "error", "store_failures": true, "where": "BLOCK_TIMESTAMP < CURRENT_DATE", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": ">10000"}, "database": "POLYGON_DEV", "schema": "sequence_gaps_silver", "fqn": ["polygon_models", "silver", "sequence_gaps_silver__transactions_POSITION__BLOCK_NUMBER"], "unique_id": "test.polygon_models.sequence_gaps_silver__transactions_POSITION__BLOCK_NUMBER.bb18e3a49e", "raw_code": "{{ test_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(severity=\"error\",where=\"BLOCK_TIMESTAMP < CURRENT_DATE\",error_if=\">10000\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "sequence_gaps_silver__transactions_POSITION__BLOCK_NUMBER.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "sequence_gaps_silver__transactions_POSITION__BLOCK_NUMBER", "alias": "transactions_POSITION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transactions.yml/sequence_gaps_silver__transactions_POSITION__BLOCK_NUMBER.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "severity": "error", "where": "BLOCK_TIMESTAMP < CURRENT_DATE", "error_if": ">10000"}, "created_at": 1672849093.8396008, "compiled_code": "WITH source AS (\n SELECT\n BLOCK_NUMBER,\n POSITION,\n LAG(\n POSITION,\n 1\n ) over (\n PARTITION BY BLOCK_NUMBER\n ORDER BY\n POSITION ASC\n ) AS prev_POSITION\n FROM\n (select * from POLYGON_DEV.silver.transactions where BLOCK_TIMESTAMP < CURRENT_DATE) dbt_subquery\n)\nSELECT\n BLOCK_NUMBER,\n prev_POSITION,\n POSITION,\n POSITION - prev_POSITION\n - 1 AS gap\nFROM\n source\nWHERE\n POSITION - prev_POSITION <> 1\nORDER BY\n gap DESC ", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.sequence_gaps_silver.transactions_POSITION", "column_name": null, "file_key_name": "models.silver__transactions"}, "test.polygon_models.not_null_silver__transfers_BLOCK_NUMBER.d11bbde531": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transfers_BLOCK_NUMBER"], "unique_id": "test.polygon_models.not_null_silver__transfers_BLOCK_NUMBER.d11bbde531", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transfers_BLOCK_NUMBER.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers_BLOCK_NUMBER", "alias": "transfers_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/not_null_silver__transfers_BLOCK_NUMBER.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.844178, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transfers\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transfers_BLOCK_NUMBER", "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__transfers"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_NUMBER__NUMBER__FLOAT.45ecdb8c94": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_bd45beacfc40801946216542c2049d02", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_NUMBER__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_NUMBER__NUMBER__FLOAT.45ecdb8c94", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_bd45beacfc40801946216542c2049d02\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_bd45beacfc40801946216542c2049d02.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_NUMBER__NUMBER__FLOAT", "alias": "transfers_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_bd45beacfc40801946216542c2049d02.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_bd45beacfc40801946216542c2049d02"}, "created_at": 1672849093.8450189, "compiled_code": "with relation_columns as (\n\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transfers_BLOCK_NUMBER", "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__transfers"}, "test.polygon_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transfers_BLOCK_TIMESTAMP"], "unique_id": "test.polygon_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transfers_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers_BLOCK_TIMESTAMP", "alias": "transfers_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/not_null_silver__transfers_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.8471081, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transfers\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transfers_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__transfers"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_0391e7977e8cebd188a1d5fa8d5e5c1d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1"], "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_0391e7977e8cebd188a1d5fa8d5e5c1d\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_row_va_0391e7977e8cebd188a1d5fa8d5e5c1d.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1", "alias": "transfers_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/dbt_expectations_expect_row_va_0391e7977e8cebd188a1d5fa8d5e5c1d.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_0391e7977e8cebd188a1d5fa8d5e5c1d"}, "created_at": 1672849093.84795, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n POLYGON_DEV.silver.transfers\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_row_values_to_have_recent_data_silver.transfers_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__transfers"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_aaa4d09592b0234773f61be8de1236a1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_aaa4d09592b0234773f61be8de1236a1\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_aaa4d09592b0234773f61be8de1236a1.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "transfers_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_aaa4d09592b0234773f61be8de1236a1.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_aaa4d09592b0234773f61be8de1236a1"}, "created_at": 1672849093.8506298, "compiled_code": "with relation_columns as (\n\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transfers_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__transfers"}, "test.polygon_models.not_null_silver__transfers_TX_HASH.9444c39bdc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transfers_TX_HASH"], "unique_id": "test.polygon_models.not_null_silver__transfers_TX_HASH.9444c39bdc", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transfers_TX_HASH.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers_TX_HASH", "alias": "transfers_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/not_null_silver__transfers_TX_HASH.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.8527749, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transfers\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transfers_TX_HASH", "column_name": "TX_HASH", "file_key_name": "models.silver__transfers"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_TX_HASH__0_xX_0_9a_fA_F_.f25b6d0ca1": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d624337f4f78032513c390b15f119aab", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__transfers_TX_HASH__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_TX_HASH__0_xX_0_9a_fA_F_.f25b6d0ca1", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d624337f4f78032513c390b15f119aab\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_d624337f4f78032513c390b15f119aab.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__transfers_TX_HASH__0_xX_0_9a_fA_F_", "alias": "transfers_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_d624337f4f78032513c390b15f119aab.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d624337f4f78032513c390b15f119aab"}, "created_at": 1672849093.853497, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.transfers\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.transfers_TX_HASH", "column_name": "TX_HASH", "file_key_name": "models.silver__transfers"}, "test.polygon_models.not_null_silver__transfers_CONTRACT_ADDRESS.df8cd401ef": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transfers_CONTRACT_ADDRESS"], "unique_id": "test.polygon_models.not_null_silver__transfers_CONTRACT_ADDRESS.df8cd401ef", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transfers_CONTRACT_ADDRESS.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers_CONTRACT_ADDRESS", "alias": "transfers_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/not_null_silver__transfers_CONTRACT_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.8557582, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transfers\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transfers_CONTRACT_ADDRESS", "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver__transfers"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.8e89d13bed": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_fba7c1e9a17511d04443ec0e84015cde", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__transfers_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.8e89d13bed", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_fba7c1e9a17511d04443ec0e84015cde\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_fba7c1e9a17511d04443ec0e84015cde.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__transfers_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "alias": "transfers_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_fba7c1e9a17511d04443ec0e84015cde.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_fba7c1e9a17511d04443ec0e84015cde"}, "created_at": 1672849093.856477, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.transfers\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.transfers_CONTRACT_ADDRESS", "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver__transfers"}, "test.polygon_models.not_null_silver__transfers_FROM_ADDRESS.cc15ca835c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": "BLOCK_TIMESTAMP > '2021-08-01'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transfers_FROM_ADDRESS"], "unique_id": "test.polygon_models.not_null_silver__transfers_FROM_ADDRESS.cc15ca835c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"BLOCK_TIMESTAMP > '2021-08-01'\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transfers_FROM_ADDRESS.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers_FROM_ADDRESS", "alias": "transfers_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/not_null_silver__transfers_FROM_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "where": "BLOCK_TIMESTAMP > '2021-08-01'"}, "created_at": 1672849093.858846, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from POLYGON_DEV.silver.transfers where BLOCK_TIMESTAMP > '2021-08-01') dbt_subquery\nwhere FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transfers_FROM_ADDRESS", "column_name": "FROM_ADDRESS", "file_key_name": "models.silver__transfers"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_FROM_ADDRESS__0_xX_0_9a_fA_F_.0479073084": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_11c955c962648507f9afe949f72ead16", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__transfers_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_FROM_ADDRESS__0_xX_0_9a_fA_F_.0479073084", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_11c955c962648507f9afe949f72ead16\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_11c955c962648507f9afe949f72ead16.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__transfers_FROM_ADDRESS__0_xX_0_9a_fA_F_", "alias": "transfers_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_11c955c962648507f9afe949f72ead16.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_11c955c962648507f9afe949f72ead16"}, "created_at": 1672849093.859564, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.transfers\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.transfers_FROM_ADDRESS", "column_name": "FROM_ADDRESS", "file_key_name": "models.silver__transfers"}, "test.polygon_models.not_null_silver__transfers_TO_ADDRESS.2ea6a02b7c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transfers_TO_ADDRESS"], "unique_id": "test.polygon_models.not_null_silver__transfers_TO_ADDRESS.2ea6a02b7c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transfers_TO_ADDRESS.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers_TO_ADDRESS", "alias": "transfers_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/not_null_silver__transfers_TO_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.86177, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transfers\nwhere TO_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transfers_TO_ADDRESS", "column_name": "TO_ADDRESS", "file_key_name": "models.silver__transfers"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_TO_ADDRESS__0_xX_0_9a_fA_F_.f65ff6bdb6": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_61bceb32252bba56af400b6e097a7cfc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__transfers_TO_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_TO_ADDRESS__0_xX_0_9a_fA_F_.f65ff6bdb6", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_61bceb32252bba56af400b6e097a7cfc\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_61bceb32252bba56af400b6e097a7cfc.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__transfers_TO_ADDRESS__0_xX_0_9a_fA_F_", "alias": "transfers_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_61bceb32252bba56af400b6e097a7cfc.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_61bceb32252bba56af400b6e097a7cfc"}, "created_at": 1672849093.86248, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.transfers\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.transfers_TO_ADDRESS", "column_name": "TO_ADDRESS", "file_key_name": "models.silver__transfers"}, "test.polygon_models.not_null_silver__transfers_RAW_AMOUNT.c53823d6c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "RAW_AMOUNT", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transfers_RAW_AMOUNT"], "unique_id": "test.polygon_models.not_null_silver__transfers_RAW_AMOUNT.c53823d6c7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transfers_RAW_AMOUNT.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers_RAW_AMOUNT", "alias": "transfers_RAW_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/not_null_silver__transfers_RAW_AMOUNT.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.86489, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transfers\nwhere RAW_AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transfers_RAW_AMOUNT", "column_name": "RAW_AMOUNT", "file_key_name": "models.silver__transfers"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RAW_AMOUNT__NUMBER__FLOAT.eb70e6172e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "RAW_AMOUNT", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_940dd8a16015feb4a7bd93d193e67f0d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RAW_AMOUNT__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RAW_AMOUNT__NUMBER__FLOAT.eb70e6172e", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_940dd8a16015feb4a7bd93d193e67f0d\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_940dd8a16015feb4a7bd93d193e67f0d.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RAW_AMOUNT__NUMBER__FLOAT", "alias": "transfers_RAW_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_940dd8a16015feb4a7bd93d193e67f0d.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_940dd8a16015feb4a7bd93d193e67f0d"}, "created_at": 1672849093.865665, "compiled_code": "with relation_columns as (\n\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'RAW_AMOUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transfers_RAW_AMOUNT", "column_name": "RAW_AMOUNT", "file_key_name": "models.silver__transfers"}, "test.polygon_models.not_null_silver__transfers__LOG_ID.29bb073a40": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_LOG_ID", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transfers__LOG_ID"], "unique_id": "test.polygon_models.not_null_silver__transfers__LOG_ID.29bb073a40", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transfers__LOG_ID.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers__LOG_ID", "alias": "transfers", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/not_null_silver__transfers__LOG_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.8679922, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transfers\nwhere _LOG_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transfers", "column_name": "_LOG_ID", "file_key_name": "models.silver__transfers"}, "test.polygon_models.not_null_silver__transfers_ORIGIN_FUNCTION_SIGNATURE.c1c149f732": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transfers_ORIGIN_FUNCTION_SIGNATURE"], "unique_id": "test.polygon_models.not_null_silver__transfers_ORIGIN_FUNCTION_SIGNATURE.c1c149f732", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transfers_ORIGIN_FUNCTION_SIGNATURE.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers_ORIGIN_FUNCTION_SIGNATURE", "alias": "transfers_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/not_null_silver__transfers_ORIGIN_FUNCTION_SIGNATURE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.86869, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transfers\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transfers_ORIGIN_FUNCTION_SIGNATURE", "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__transfers"}, "test.polygon_models.not_null_silver__transfers_ORIGIN_FROM_ADDRESS.30ffa7f127": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__transfers_ORIGIN_FROM_ADDRESS"], "unique_id": "test.polygon_models.not_null_silver__transfers_ORIGIN_FROM_ADDRESS.30ffa7f127", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__transfers_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers_ORIGIN_FROM_ADDRESS", "alias": "transfers_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/not_null_silver__transfers_ORIGIN_FROM_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.869371, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.transfers\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.transfers_ORIGIN_FROM_ADDRESS", "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__transfers"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.fb311c6cec": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_57a875c8c76ea04448b1a0fd7cdd4c83", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__transfers_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.fb311c6cec", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_57a875c8c76ea04448b1a0fd7cdd4c83\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_57a875c8c76ea04448b1a0fd7cdd4c83.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__transfers_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_", "alias": "transfers_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_57a875c8c76ea04448b1a0fd7cdd4c83.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_57a875c8c76ea04448b1a0fd7cdd4c83"}, "created_at": 1672849093.870199, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.transfers\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.transfers_ORIGIN_FROM_ADDRESS", "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__transfers"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.81fe3d170a": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_485ceed5592c0a003510c7db121e3c6c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__transfers_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.81fe3d170a", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_485ceed5592c0a003510c7db121e3c6c\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_485ceed5592c0a003510c7db121e3c6c.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__transfers_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_", "alias": "transfers_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_485ceed5592c0a003510c7db121e3c6c.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_485ceed5592c0a003510c7db121e3c6c"}, "created_at": 1672849093.872442, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.silver.transfers\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.transfers_ORIGIN_TO_ADDRESS", "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__transfers"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__transfers__LOG_ID.3ebab76726": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_LOG_ID"], "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_92e87c768ab455e8d4a45a09a6fd346d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["polygon_models", "silver", "dbt_utils_unique_combination_of_columns_silver__transfers__LOG_ID"], "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__transfers__LOG_ID.3ebab76726", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_92e87c768ab455e8d4a45a09a6fd346d\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_utils_unique_combination_o_92e87c768ab455e8d4a45a09a6fd346d.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_utils_unique_combination_of_columns_silver__transfers__LOG_ID", "alias": "transfers", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__transfers.yml/dbt_utils_unique_combination_o_92e87c768ab455e8d4a45a09a6fd346d.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_92e87c768ab455e8d4a45a09a6fd346d"}, "created_at": 1672849093.874638, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _LOG_ID\n from POLYGON_DEV.silver.transfers\n group by _LOG_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_utils_unique_combination_of_columns_silver.transfers", "column_name": null, "file_key_name": "models.silver__transfers"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contract_proxies_ID.3ac7fb13cd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ID"], "model": "{{ get_where_subquery(ref('silver__contract_proxies')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__contract_proxies"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ef9e0c1f3895914224c4304fa5baacda", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["polygon_models", "silver", "dbt_utils_unique_combination_of_columns_silver__contract_proxies_ID"], "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contract_proxies_ID.3ac7fb13cd", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ef9e0c1f3895914224c4304fa5baacda\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_utils_unique_combination_o_ef9e0c1f3895914224c4304fa5baacda.sql", "original_file_path": "models/silver/silver__contract_proxies.yml", "name": "dbt_utils_unique_combination_of_columns_silver__contract_proxies_ID", "alias": "contract_proxies_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__contract_proxies"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__contract_proxies.yml/dbt_utils_unique_combination_o_ef9e0c1f3895914224c4304fa5baacda.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_ef9e0c1f3895914224c4304fa5baacda"}, "created_at": 1672849093.877599, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ID\n from POLYGON_DEV.silver.contract_proxies\n group by ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_utils_unique_combination_of_columns_silver.contract_proxies_ID", "column_name": null, "file_key_name": "models.silver__contract_proxies"}, "test.polygon_models.not_null_silver__contracts_CONTRACT_ADDRESS.18b93ee6d5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__contracts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__contracts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__contracts_CONTRACT_ADDRESS"], "unique_id": "test.polygon_models.not_null_silver__contracts_CONTRACT_ADDRESS.18b93ee6d5", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__contracts_CONTRACT_ADDRESS.sql", "original_file_path": "models/silver/silver__contracts.yml", "name": "not_null_silver__contracts_CONTRACT_ADDRESS", "alias": "contracts_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__contracts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__contracts.yml/not_null_silver__contracts_CONTRACT_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.8804412, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.contracts\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.contracts_CONTRACT_ADDRESS", "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver__contracts"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__contracts_CONTRACT_ADDRESS__STRING__VARCHAR.a501d61489": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__contracts')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__contracts"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_79e266ec2fd856778031dafd154a4ff8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__contracts_CONTRACT_ADDRESS__STRING__VARCHAR"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__contracts_CONTRACT_ADDRESS__STRING__VARCHAR.a501d61489", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_79e266ec2fd856778031dafd154a4ff8\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_79e266ec2fd856778031dafd154a4ff8.sql", "original_file_path": "models/silver/silver__contracts.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__contracts_CONTRACT_ADDRESS__STRING__VARCHAR", "alias": "contracts_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__contracts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__contracts.yml/dbt_expectations_expect_column_79e266ec2fd856778031dafd154a4ff8.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_79e266ec2fd856778031dafd154a4ff8"}, "created_at": 1672849093.881189, "compiled_code": "with relation_columns as (\n\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_DECIMALS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'CONTRACT_ADDRESS'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.contracts_CONTRACT_ADDRESS", "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver__contracts"}, "test.polygon_models.not_null_silver__contracts__INSERTED_TIMESTAMP.5ad8bc1f2a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__contracts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__contracts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_silver", "fqn": ["polygon_models", "silver", "not_null_silver__contracts__INSERTED_TIMESTAMP"], "unique_id": "test.polygon_models.not_null_silver__contracts__INSERTED_TIMESTAMP.5ad8bc1f2a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_silver__contracts__INSERTED_TIMESTAMP.sql", "original_file_path": "models/silver/silver__contracts.yml", "name": "not_null_silver__contracts__INSERTED_TIMESTAMP", "alias": "contracts", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__contracts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__contracts.yml/not_null_silver__contracts__INSERTED_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.883421, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.silver.contracts\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_silver.contracts", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__contracts"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__contracts__INSERTED_TIMESTAMP__day__2.c0b3d27a1b": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__contracts')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__contracts"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_73552841747b4301e60900c0091e1b95", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__contracts__INSERTED_TIMESTAMP__day__2"], "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__contracts__INSERTED_TIMESTAMP__day__2.c0b3d27a1b", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_73552841747b4301e60900c0091e1b95\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_row_va_73552841747b4301e60900c0091e1b95.sql", "original_file_path": "models/silver/silver__contracts.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__contracts__INSERTED_TIMESTAMP__day__2", "alias": "contracts", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__contracts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__contracts.yml/dbt_expectations_expect_row_va_73552841747b4301e60900c0091e1b95.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_73552841747b4301e60900c0091e1b95"}, "created_at": 1672849093.884137, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n POLYGON_DEV.silver.contracts\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_row_values_to_have_recent_data_silver.contracts", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__contracts"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__contracts__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3d97d7eb14": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__contracts')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__contracts"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_80e37b5b393f4eef95602bb7dade2305", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["polygon_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__contracts__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__contracts__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3d97d7eb14", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_80e37b5b393f4eef95602bb7dade2305\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_80e37b5b393f4eef95602bb7dade2305.sql", "original_file_path": "models/silver/silver__contracts.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__contracts__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "contracts", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__contracts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__contracts.yml/dbt_expectations_expect_column_80e37b5b393f4eef95602bb7dade2305.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_80e37b5b393f4eef95602bb7dade2305"}, "created_at": 1672849093.887101, "compiled_code": "with relation_columns as (\n\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_DECIMALS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.contracts", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__contracts"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contracts_CONTRACT_ADDRESS.f84f93870c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS"], "model": "{{ get_where_subquery(ref('silver__contracts')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__contracts"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d45f83a6d0088763e3a9980994c193b4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["polygon_models", "silver", "dbt_utils_unique_combination_of_columns_silver__contracts_CONTRACT_ADDRESS"], "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contracts_CONTRACT_ADDRESS.f84f93870c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d45f83a6d0088763e3a9980994c193b4\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_utils_unique_combination_o_d45f83a6d0088763e3a9980994c193b4.sql", "original_file_path": "models/silver/silver__contracts.yml", "name": "dbt_utils_unique_combination_of_columns_silver__contracts_CONTRACT_ADDRESS", "alias": "contracts_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__contracts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/silver__contracts.yml/dbt_utils_unique_combination_o_d45f83a6d0088763e3a9980994c193b4.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_d45f83a6d0088763e3a9980994c193b4"}, "created_at": 1672849093.889172, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS\n from POLYGON_DEV.silver.contracts\n group by CONTRACT_ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_utils_unique_combination_of_columns_silver.contracts_CONTRACT_ADDRESS", "column_name": null, "file_key_name": "models.silver__contracts"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__relevant_abi_contracts_CONTRACT_ADDRESS.13614bb275": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS"], "model": "{{ get_where_subquery(ref('silver__relevant_abi_contracts')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__relevant_abi_contracts"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3bbac247fd06efd278803cefb0ec1d84", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["polygon_models", "silver", "API_udf", "dbt_utils_unique_combination_of_columns_silver__relevant_abi_contracts_CONTRACT_ADDRESS"], "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__relevant_abi_contracts_CONTRACT_ADDRESS.13614bb275", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3bbac247fd06efd278803cefb0ec1d84\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_utils_unique_combination_o_3bbac247fd06efd278803cefb0ec1d84.sql", "original_file_path": "models/silver/API_udf/silver__relevant_abi_contracts.yml", "name": "dbt_utils_unique_combination_of_columns_silver__relevant_abi_contracts_CONTRACT_ADDRESS", "alias": "relevant_abi_contracts_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__relevant_abi_contracts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/API_udf/silver__relevant_abi_contracts.yml/dbt_utils_unique_combination_o_3bbac247fd06efd278803cefb0ec1d84.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_3bbac247fd06efd278803cefb0ec1d84"}, "created_at": 1672849093.891758, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS\n from POLYGON_DEV.silver.relevant_abi_contracts\n group by CONTRACT_ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_utils_unique_combination_of_columns_silver.relevant_abi_contracts_CONTRACT_ADDRESS", "column_name": null, "file_key_name": "models.silver__relevant_abi_contracts"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__relevant_token_contracts_CONTRACT_ADDRESS.24bd782cb8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS"], "model": "{{ get_where_subquery(ref('silver__relevant_token_contracts')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__relevant_token_contracts"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8ca5aca2f92ab269b666231771370150", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["polygon_models", "silver", "API_udf", "dbt_utils_unique_combination_of_columns_silver__relevant_token_contracts_CONTRACT_ADDRESS"], "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__relevant_token_contracts_CONTRACT_ADDRESS.24bd782cb8", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8ca5aca2f92ab269b666231771370150\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_utils_unique_combination_o_8ca5aca2f92ab269b666231771370150.sql", "original_file_path": "models/silver/API_udf/silver__relevant_token_contracts.yml", "name": "dbt_utils_unique_combination_of_columns_silver__relevant_token_contracts_CONTRACT_ADDRESS", "alias": "relevant_token_contracts_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__relevant_token_contracts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/silver/API_udf/silver__relevant_token_contracts.yml/dbt_utils_unique_combination_o_8ca5aca2f92ab269b666231771370150.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_8ca5aca2f92ab269b666231771370150"}, "created_at": 1672849093.894345, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS\n from POLYGON_DEV.silver.relevant_token_contracts\n group by CONTRACT_ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_utils_unique_combination_of_columns_silver.relevant_token_contracts_CONTRACT_ADDRESS", "column_name": null, "file_key_name": "models.silver__relevant_token_contracts"}, "test.polygon_models.not_null_core__dim_labels_BLOCKCHAIN.a4e09054d7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__dim_labels"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_core", "fqn": ["polygon_models", "gold", "not_null_core__dim_labels_BLOCKCHAIN"], "unique_id": "test.polygon_models.not_null_core__dim_labels_BLOCKCHAIN.a4e09054d7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_core__dim_labels_BLOCKCHAIN.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "not_null_core__dim_labels_BLOCKCHAIN", "alias": "dim_labels_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__dim_labels.yml/not_null_core__dim_labels_BLOCKCHAIN.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.911435, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.core.dim_labels\nwhere BLOCKCHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_core.dim_labels_BLOCKCHAIN", "column_name": "BLOCKCHAIN", "file_key_name": "models.core__dim_labels"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_core__dim_labels_BLOCKCHAIN__polygon.5e6c2c1b9f": {"test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["polygon"], "column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f29db00392e37034b06e39950e6ad13a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_set_core", "fqn": ["polygon_models", "gold", "dbt_expectations_expect_column_values_to_be_in_set_core__dim_labels_BLOCKCHAIN__polygon"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_core__dim_labels_BLOCKCHAIN__polygon.5e6c2c1b9f", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f29db00392e37034b06e39950e6ad13a\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_f29db00392e37034b06e39950e6ad13a.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "dbt_expectations_expect_column_values_to_be_in_set_core__dim_labels_BLOCKCHAIN__polygon", "alias": "dim_labels_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__dim_labels.yml/dbt_expectations_expect_column_f29db00392e37034b06e39950e6ad13a.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f29db00392e37034b06e39950e6ad13a"}, "created_at": 1672849093.912224, "compiled_code": "\n\nwith all_values as (\n\n select\n BLOCKCHAIN as value_field\n\n from POLYGON_DEV.core.dim_labels\n \n\n),\nset_values as (\n\n select\n cast('polygon' as TEXT) as value_field\n \n \n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_set_core.dim_labels_BLOCKCHAIN", "column_name": "BLOCKCHAIN", "file_key_name": "models.core__dim_labels"}, "test.polygon_models.not_null_core__dim_labels_CREATOR.0c77d5749c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CREATOR", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__dim_labels"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_core", "fqn": ["polygon_models", "gold", "not_null_core__dim_labels_CREATOR"], "unique_id": "test.polygon_models.not_null_core__dim_labels_CREATOR.0c77d5749c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_core__dim_labels_CREATOR.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "not_null_core__dim_labels_CREATOR", "alias": "dim_labels_CREATOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__dim_labels.yml/not_null_core__dim_labels_CREATOR.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.914488, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.core.dim_labels\nwhere CREATOR is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_core.dim_labels_CREATOR", "column_name": "CREATOR", "file_key_name": "models.core__dim_labels"}, "test.polygon_models.not_null_core__dim_labels_ADDRESS.ddf35f62af": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__dim_labels"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_core", "fqn": ["polygon_models", "gold", "not_null_core__dim_labels_ADDRESS"], "unique_id": "test.polygon_models.not_null_core__dim_labels_ADDRESS.ddf35f62af", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_core__dim_labels_ADDRESS.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "not_null_core__dim_labels_ADDRESS", "alias": "dim_labels_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__dim_labels.yml/not_null_core__dim_labels_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.915216, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.core.dim_labels\nwhere ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_core.dim_labels_ADDRESS", "column_name": "ADDRESS", "file_key_name": "models.core__dim_labels"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_core__dim_labels_ADDRESS__0_xX_0_9a_fA_F_.52c2534d6a": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e990285a86f4dce4c3da26f6932752bc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_core", "fqn": ["polygon_models", "gold", "dbt_expectations_expect_column_values_to_match_regex_core__dim_labels_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_core__dim_labels_ADDRESS__0_xX_0_9a_fA_F_.52c2534d6a", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e990285a86f4dce4c3da26f6932752bc\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_e990285a86f4dce4c3da26f6932752bc.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_core__dim_labels_ADDRESS__0_xX_0_9a_fA_F_", "alias": "dim_labels_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__dim_labels.yml/dbt_expectations_expect_column_e990285a86f4dce4c3da26f6932752bc.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e990285a86f4dce4c3da26f6932752bc"}, "created_at": 1672849093.915922, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.core.dim_labels\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_core.dim_labels_ADDRESS", "column_name": "ADDRESS", "file_key_name": "models.core__dim_labels"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_ADDRESS_NAME__STRING__VARCHAR.7747aa45d1": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "ADDRESS_NAME", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0157bb28d9599f33d4efbe0a75260f3b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_core", "fqn": ["polygon_models", "gold", "dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_ADDRESS_NAME__STRING__VARCHAR"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_ADDRESS_NAME__STRING__VARCHAR.7747aa45d1", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0157bb28d9599f33d4efbe0a75260f3b\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_0157bb28d9599f33d4efbe0a75260f3b.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_ADDRESS_NAME__STRING__VARCHAR", "alias": "dim_labels_ADDRESS_NAME", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__dim_labels.yml/dbt_expectations_expect_column_0157bb28d9599f33d4efbe0a75260f3b.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_0157bb28d9599f33d4efbe0a75260f3b"}, "created_at": 1672849093.9184709, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'ADDRESS_NAME'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_core.dim_labels_ADDRESS_NAME", "column_name": "ADDRESS_NAME", "file_key_name": "models.core__dim_labels"}, "test.polygon_models.not_null_core__dim_labels_LABEL_TYPE.65b0f6f1ed": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LABEL_TYPE", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__dim_labels"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_core", "fqn": ["polygon_models", "gold", "not_null_core__dim_labels_LABEL_TYPE"], "unique_id": "test.polygon_models.not_null_core__dim_labels_LABEL_TYPE.65b0f6f1ed", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_core__dim_labels_LABEL_TYPE.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "not_null_core__dim_labels_LABEL_TYPE", "alias": "dim_labels_LABEL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__dim_labels.yml/not_null_core__dim_labels_LABEL_TYPE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.92112, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.core.dim_labels\nwhere LABEL_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_core.dim_labels_LABEL_TYPE", "column_name": "LABEL_TYPE", "file_key_name": "models.core__dim_labels"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_core__dim_labels_LABEL_TYPE__flotsam__nft__defi__dex__cex__dapp__token__operator__layer2__chadmin__project.145ec1d947": {"test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["flotsam", "nft", "defi", "dex", "cex", "dapp", "token", "operator", "layer2", "chadmin", "project"], "column_name": "LABEL_TYPE", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9218b3ba70968c098bf5a126b21109bf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_set_core", "fqn": ["polygon_models", "gold", "dbt_expectations_expect_column_values_to_be_in_set_core__dim_labels_LABEL_TYPE__flotsam__nft__defi__dex__cex__dapp__token__operator__layer2__chadmin__project"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_core__dim_labels_LABEL_TYPE__flotsam__nft__defi__dex__cex__dapp__token__operator__layer2__chadmin__project.145ec1d947", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9218b3ba70968c098bf5a126b21109bf\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_9218b3ba70968c098bf5a126b21109bf.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "dbt_expectations_expect_column_values_to_be_in_set_core__dim_labels_LABEL_TYPE__flotsam__nft__defi__dex__cex__dapp__token__operator__layer2__chadmin__project", "alias": "dim_labels_LABEL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__dim_labels.yml/dbt_expectations_expect_column_9218b3ba70968c098bf5a126b21109bf.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9218b3ba70968c098bf5a126b21109bf"}, "created_at": 1672849093.9218838, "compiled_code": "\n\nwith all_values as (\n\n select\n LABEL_TYPE as value_field\n\n from POLYGON_DEV.core.dim_labels\n \n\n),\nset_values as (\n\n select\n cast('flotsam' as TEXT) as value_field\n union all\n select\n cast('nft' as TEXT) as value_field\n union all\n select\n cast('defi' as TEXT) as value_field\n union all\n select\n cast('dex' as TEXT) as value_field\n union all\n select\n cast('cex' as TEXT) as value_field\n union all\n select\n cast('dapp' as TEXT) as value_field\n union all\n select\n cast('token' as TEXT) as value_field\n union all\n select\n cast('operator' as TEXT) as value_field\n union all\n select\n cast('layer2' as TEXT) as value_field\n union all\n select\n cast('chadmin' as TEXT) as value_field\n union all\n select\n cast('project' as TEXT) as value_field\n \n \n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_set_core.dim_labels_LABEL_TYPE", "column_name": "LABEL_TYPE", "file_key_name": "models.core__dim_labels"}, "test.polygon_models.not_null_core__dim_labels_LABEL_SUBTYPE.556a65235c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LABEL_SUBTYPE", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__dim_labels"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_core", "fqn": ["polygon_models", "gold", "not_null_core__dim_labels_LABEL_SUBTYPE"], "unique_id": "test.polygon_models.not_null_core__dim_labels_LABEL_SUBTYPE.556a65235c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_core__dim_labels_LABEL_SUBTYPE.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "not_null_core__dim_labels_LABEL_SUBTYPE", "alias": "dim_labels_LABEL_SUBTYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__dim_labels.yml/not_null_core__dim_labels_LABEL_SUBTYPE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.926374, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.core.dim_labels\nwhere LABEL_SUBTYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_core.dim_labels_LABEL_SUBTYPE", "column_name": "LABEL_SUBTYPE", "file_key_name": "models.core__dim_labels"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_LABEL_SUBTYPE__STRING__VARCHAR.80b827b7f5": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "LABEL_SUBTYPE", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d519d707a433e06c1d79b58bc3bb7d6f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_core", "fqn": ["polygon_models", "gold", "dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_LABEL_SUBTYPE__STRING__VARCHAR"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_LABEL_SUBTYPE__STRING__VARCHAR.80b827b7f5", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d519d707a433e06c1d79b58bc3bb7d6f\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_d519d707a433e06c1d79b58bc3bb7d6f.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_LABEL_SUBTYPE__STRING__VARCHAR", "alias": "dim_labels_LABEL_SUBTYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__dim_labels.yml/dbt_expectations_expect_column_d519d707a433e06c1d79b58bc3bb7d6f.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d519d707a433e06c1d79b58bc3bb7d6f"}, "created_at": 1672849093.927211, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'LABEL_SUBTYPE'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_core.dim_labels_LABEL_SUBTYPE", "column_name": "LABEL_SUBTYPE", "file_key_name": "models.core__dim_labels"}, "test.polygon_models.not_null_core__dim_labels_PROJECT_NAME.484353cecc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROJECT_NAME", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__dim_labels"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_core", "fqn": ["polygon_models", "gold", "not_null_core__dim_labels_PROJECT_NAME"], "unique_id": "test.polygon_models.not_null_core__dim_labels_PROJECT_NAME.484353cecc", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_core__dim_labels_PROJECT_NAME.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "not_null_core__dim_labels_PROJECT_NAME", "alias": "dim_labels_PROJECT_NAME", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__dim_labels.yml/not_null_core__dim_labels_PROJECT_NAME.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.9297001, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.core.dim_labels\nwhere PROJECT_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_core.dim_labels_PROJECT_NAME", "column_name": "PROJECT_NAME", "file_key_name": "models.core__dim_labels"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_PROJECT_NAME__STRING__VARCHAR.c5aaaed300": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "PROJECT_NAME", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f002684cbd1eb6d7200f4cd5e66d7292", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_core", "fqn": ["polygon_models", "gold", "dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_PROJECT_NAME__STRING__VARCHAR"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_PROJECT_NAME__STRING__VARCHAR.c5aaaed300", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f002684cbd1eb6d7200f4cd5e66d7292\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_f002684cbd1eb6d7200f4cd5e66d7292.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_PROJECT_NAME__STRING__VARCHAR", "alias": "dim_labels_PROJECT_NAME", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__dim_labels.yml/dbt_expectations_expect_column_f002684cbd1eb6d7200f4cd5e66d7292.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f002684cbd1eb6d7200f4cd5e66d7292"}, "created_at": 1672849093.930461, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'PROJECT_NAME'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_core.dim_labels_PROJECT_NAME", "column_name": "PROJECT_NAME", "file_key_name": "models.core__dim_labels"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_core__dim_labels_BLOCKCHAIN__CREATOR__ADDRESS.de325ffec9": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BLOCKCHAIN", "CREATOR", "ADDRESS"], "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8a7e229c14095011e4d56d1d71aa4845", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_utils_unique_combination_of_columns_core", "fqn": ["polygon_models", "gold", "dbt_utils_unique_combination_of_columns_core__dim_labels_BLOCKCHAIN__CREATOR__ADDRESS"], "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_core__dim_labels_BLOCKCHAIN__CREATOR__ADDRESS.de325ffec9", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8a7e229c14095011e4d56d1d71aa4845\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_utils_unique_combination_o_8a7e229c14095011e4d56d1d71aa4845.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "dbt_utils_unique_combination_of_columns_core__dim_labels_BLOCKCHAIN__CREATOR__ADDRESS", "alias": "dim_labels_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__dim_labels.yml/dbt_utils_unique_combination_o_8a7e229c14095011e4d56d1d71aa4845.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_8a7e229c14095011e4d56d1d71aa4845"}, "created_at": 1672849093.9328609, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n BLOCKCHAIN, CREATOR, ADDRESS\n from POLYGON_DEV.core.dim_labels\n group by BLOCKCHAIN, CREATOR, ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_utils_unique_combination_of_columns_core.dim_labels_BLOCKCHAIN", "column_name": null, "file_key_name": "models.core__dim_labels"}, "test.polygon_models.not_null_sushi__ez_lending_BLOCK_NUMBER.7191bdf706": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_lending_BLOCK_NUMBER"], "unique_id": "test.polygon_models.not_null_sushi__ez_lending_BLOCK_NUMBER.7191bdf706", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_lending_BLOCK_NUMBER.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "not_null_sushi__ez_lending_BLOCK_NUMBER", "alias": "ez_lending_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/not_null_sushi__ez_lending_BLOCK_NUMBER.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.940855, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_lending\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_lending_BLOCK_NUMBER", "column_name": "BLOCK_NUMBER", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_BLOCK_NUMBER__NUMBER__FLOAT.35c6b5d227": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d6f4184f28825255cc28dc98bf0b73ff", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_BLOCK_NUMBER__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_BLOCK_NUMBER__NUMBER__FLOAT.35c6b5d227", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d6f4184f28825255cc28dc98bf0b73ff\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_d6f4184f28825255cc28dc98bf0b73ff.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_BLOCK_NUMBER__NUMBER__FLOAT", "alias": "ez_lending_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/dbt_expectations_expect_column_d6f4184f28825255cc28dc98bf0b73ff.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d6f4184f28825255cc28dc98bf0b73ff"}, "created_at": 1672849093.9417229, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ASSET' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDER_IS_A_CONTRACT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_lending_BLOCK_NUMBER", "column_name": "BLOCK_NUMBER", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.not_null_sushi__ez_lending_BLOCK_TIMESTAMP.47c8a01531": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_lending_BLOCK_TIMESTAMP"], "unique_id": "test.polygon_models.not_null_sushi__ez_lending_BLOCK_TIMESTAMP.47c8a01531", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_lending_BLOCK_TIMESTAMP.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "not_null_sushi__ez_lending_BLOCK_TIMESTAMP", "alias": "ez_lending_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/not_null_sushi__ez_lending_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.944302, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_lending\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_lending_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_lending_BLOCK_TIMESTAMP__day__7.71e49e375e": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 7, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_2945c3492dfefb043e03072508a65191", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_lending_BLOCK_TIMESTAMP__day__7"], "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_lending_BLOCK_TIMESTAMP__day__7.71e49e375e", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_2945c3492dfefb043e03072508a65191\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_row_va_2945c3492dfefb043e03072508a65191.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_lending_BLOCK_TIMESTAMP__day__7", "alias": "ez_lending_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/dbt_expectations_expect_row_va_2945c3492dfefb043e03072508a65191.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_2945c3492dfefb043e03072508a65191"}, "created_at": 1672849093.945067, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n POLYGON_DEV.sushi.ez_lending\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -7,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_row_values_to_have_recent_data_sushi.ez_lending_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.93cce89aaf": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4c1fc03c21165229cf95cb4b75605892", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.93cce89aaf", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4c1fc03c21165229cf95cb4b75605892\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_4c1fc03c21165229cf95cb4b75605892.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "ez_lending_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/dbt_expectations_expect_column_4c1fc03c21165229cf95cb4b75605892.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_4c1fc03c21165229cf95cb4b75605892"}, "created_at": 1672849093.948477, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ASSET' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDER_IS_A_CONTRACT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_lending_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.not_null_sushi__ez_lending_TX_HASH.3c471bed51": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_lending_TX_HASH"], "unique_id": "test.polygon_models.not_null_sushi__ez_lending_TX_HASH.3c471bed51", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_lending_TX_HASH.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "not_null_sushi__ez_lending_TX_HASH", "alias": "ez_lending_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/not_null_sushi__ez_lending_TX_HASH.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.950643, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_lending\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_lending_TX_HASH", "column_name": "TX_HASH", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_TX_HASH__0_xX_0_9a_fA_F_.fb7184c78a": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e11c5b2eb4b75f751635d90b015301e7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_TX_HASH__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_TX_HASH__0_xX_0_9a_fA_F_.fb7184c78a", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e11c5b2eb4b75f751635d90b015301e7\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_e11c5b2eb4b75f751635d90b015301e7.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_TX_HASH__0_xX_0_9a_fA_F_", "alias": "ez_lending_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/dbt_expectations_expect_column_e11c5b2eb4b75f751635d90b015301e7.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e11c5b2eb4b75f751635d90b015301e7"}, "created_at": 1672849093.951375, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_lending\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_lending_TX_HASH", "column_name": "TX_HASH", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.not_null_sushi__ez_lending_LENDING_POOL_ADDRESS.343619b86f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LENDING_POOL_ADDRESS", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_lending_LENDING_POOL_ADDRESS"], "unique_id": "test.polygon_models.not_null_sushi__ez_lending_LENDING_POOL_ADDRESS.343619b86f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_lending_LENDING_POOL_ADDRESS.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "not_null_sushi__ez_lending_LENDING_POOL_ADDRESS", "alias": "ez_lending_LENDING_POOL_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/not_null_sushi__ez_lending_LENDING_POOL_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.953727, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_lending\nwhere LENDING_POOL_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_lending_LENDING_POOL_ADDRESS", "column_name": "LENDING_POOL_ADDRESS", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_LENDING_POOL_ADDRESS__0_xX_0_9a_fA_F_.3ccd0511f9": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "LENDING_POOL_ADDRESS", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b65b61826bdacc47f2ff75e01a1ff036", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_LENDING_POOL_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_LENDING_POOL_ADDRESS__0_xX_0_9a_fA_F_.3ccd0511f9", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b65b61826bdacc47f2ff75e01a1ff036\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_b65b61826bdacc47f2ff75e01a1ff036.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_LENDING_POOL_ADDRESS__0_xX_0_9a_fA_F_", "alias": "ez_lending_LENDING_POOL_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/dbt_expectations_expect_column_b65b61826bdacc47f2ff75e01a1ff036.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b65b61826bdacc47f2ff75e01a1ff036"}, "created_at": 1672849093.954467, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(LENDING_POOL_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_lending\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_lending_LENDING_POOL_ADDRESS", "column_name": "LENDING_POOL_ADDRESS", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.not_null_sushi__ez_lending_AMOUNT.d0ca35e1b9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_lending_AMOUNT"], "unique_id": "test.polygon_models.not_null_sushi__ez_lending_AMOUNT.d0ca35e1b9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_lending_AMOUNT.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "not_null_sushi__ez_lending_AMOUNT", "alias": "ez_lending_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/not_null_sushi__ez_lending_AMOUNT.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.956796, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_lending\nwhere AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_lending_AMOUNT", "column_name": "AMOUNT", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_AMOUNT__NUMBER__FLOAT.f5513895b6": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_03aac7de4eb4f899a5f8f11d6242497c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_AMOUNT__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_AMOUNT__NUMBER__FLOAT.f5513895b6", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_03aac7de4eb4f899a5f8f11d6242497c\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_03aac7de4eb4f899a5f8f11d6242497c.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_AMOUNT__NUMBER__FLOAT", "alias": "ez_lending_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/dbt_expectations_expect_column_03aac7de4eb4f899a5f8f11d6242497c.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_03aac7de4eb4f899a5f8f11d6242497c"}, "created_at": 1672849093.9575639, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ASSET' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDER_IS_A_CONTRACT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'AMOUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_lending_AMOUNT", "column_name": "AMOUNT", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_AMOUNT_USD__NUMBER__FLOAT.010574c5b1": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "AMOUNT_USD", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_510a008af79ffad06d5095f293762884", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_AMOUNT_USD__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_AMOUNT_USD__NUMBER__FLOAT.010574c5b1", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_510a008af79ffad06d5095f293762884\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_510a008af79ffad06d5095f293762884.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_AMOUNT_USD__NUMBER__FLOAT", "alias": "ez_lending_AMOUNT_USD", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/dbt_expectations_expect_column_510a008af79ffad06d5095f293762884.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_510a008af79ffad06d5095f293762884"}, "created_at": 1672849093.960227, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ASSET' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDER_IS_A_CONTRACT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'AMOUNT_USD'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_lending_AMOUNT_USD", "column_name": "AMOUNT_USD", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.not_null_sushi__ez_lending_ASSET.92156a57ed": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ASSET", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_lending_ASSET"], "unique_id": "test.polygon_models.not_null_sushi__ez_lending_ASSET.92156a57ed", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_lending_ASSET.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "not_null_sushi__ez_lending_ASSET", "alias": "ez_lending_ASSET", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/not_null_sushi__ez_lending_ASSET.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.962829, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_lending\nwhere ASSET is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_lending_ASSET", "column_name": "ASSET", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ASSET__0_xX_0_9a_fA_F_.8a7dd8b676": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ASSET", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c43f48abd58109b6ba8b578cd1600472", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ASSET__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ASSET__0_xX_0_9a_fA_F_.8a7dd8b676", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c43f48abd58109b6ba8b578cd1600472\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_c43f48abd58109b6ba8b578cd1600472.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ASSET__0_xX_0_9a_fA_F_", "alias": "ez_lending_ASSET", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/dbt_expectations_expect_column_c43f48abd58109b6ba8b578cd1600472.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c43f48abd58109b6ba8b578cd1600472"}, "created_at": 1672849093.963584, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ASSET, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_lending\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_lending_ASSET", "column_name": "ASSET", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_SYMBOL__STRING__VARCHAR.dcace84af9": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "SYMBOL", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_aeae568c6a1f6883e0f69f8de9231af6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_SYMBOL__STRING__VARCHAR"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_SYMBOL__STRING__VARCHAR.dcace84af9", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_aeae568c6a1f6883e0f69f8de9231af6\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_aeae568c6a1f6883e0f69f8de9231af6.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_SYMBOL__STRING__VARCHAR", "alias": "ez_lending_SYMBOL", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/dbt_expectations_expect_column_aeae568c6a1f6883e0f69f8de9231af6.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_aeae568c6a1f6883e0f69f8de9231af6"}, "created_at": 1672849093.9661388, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ASSET' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDER_IS_A_CONTRACT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'SYMBOL'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_lending_SYMBOL", "column_name": "SYMBOL", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.not_null_sushi__ez_lending_DEPOSITOR.9f9196dce7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DEPOSITOR", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_lending_DEPOSITOR"], "unique_id": "test.polygon_models.not_null_sushi__ez_lending_DEPOSITOR.9f9196dce7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_lending_DEPOSITOR.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "not_null_sushi__ez_lending_DEPOSITOR", "alias": "ez_lending_DEPOSITOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/not_null_sushi__ez_lending_DEPOSITOR.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.968481, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_lending\nwhere DEPOSITOR is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_lending_DEPOSITOR", "column_name": "DEPOSITOR", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_DEPOSITOR__0_xX_0_9a_fA_F_.560921e0f1": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "DEPOSITOR", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_135e2224a7c7bc0ac043933bdd82a873", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_DEPOSITOR__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_DEPOSITOR__0_xX_0_9a_fA_F_.560921e0f1", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_135e2224a7c7bc0ac043933bdd82a873\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_135e2224a7c7bc0ac043933bdd82a873.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_DEPOSITOR__0_xX_0_9a_fA_F_", "alias": "ez_lending_DEPOSITOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/dbt_expectations_expect_column_135e2224a7c7bc0ac043933bdd82a873.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_135e2224a7c7bc0ac043933bdd82a873"}, "created_at": 1672849093.969207, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(DEPOSITOR, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_lending\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_lending_DEPOSITOR", "column_name": "DEPOSITOR", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_EVENT_INDEX__NUMBER__FLOAT.64324e3895": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_11216d76832c5e38b85eae3b56bd12dd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_EVENT_INDEX__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_EVENT_INDEX__NUMBER__FLOAT.64324e3895", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_11216d76832c5e38b85eae3b56bd12dd\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_11216d76832c5e38b85eae3b56bd12dd.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_EVENT_INDEX__NUMBER__FLOAT", "alias": "ez_lending_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/dbt_expectations_expect_column_11216d76832c5e38b85eae3b56bd12dd.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_11216d76832c5e38b85eae3b56bd12dd"}, "created_at": 1672849093.9714618, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ASSET' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDER_IS_A_CONTRACT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'EVENT_INDEX'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_lending_EVENT_INDEX", "column_name": "EVENT_INDEX", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.not_null_sushi__ez_lending__LOG_ID.aeb399324a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_LOG_ID", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_lending__LOG_ID"], "unique_id": "test.polygon_models.not_null_sushi__ez_lending__LOG_ID.aeb399324a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_lending__LOG_ID.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "not_null_sushi__ez_lending__LOG_ID", "alias": "ez_lending", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/not_null_sushi__ez_lending__LOG_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.973652, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_lending\nwhere _LOG_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_lending", "column_name": "_LOG_ID", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.not_null_sushi__ez_lending_ORIGIN_FROM_ADDRESS.0a279cef72": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_lending_ORIGIN_FROM_ADDRESS"], "unique_id": "test.polygon_models.not_null_sushi__ez_lending_ORIGIN_FROM_ADDRESS.0a279cef72", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_lending_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "not_null_sushi__ez_lending_ORIGIN_FROM_ADDRESS", "alias": "ez_lending_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/not_null_sushi__ez_lending_ORIGIN_FROM_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.974388, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_lending\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_lending_ORIGIN_FROM_ADDRESS", "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.3b31561bc6": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_452a2c94f7e49521b48904680797fff0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.3b31561bc6", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_452a2c94f7e49521b48904680797fff0\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_452a2c94f7e49521b48904680797fff0.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_", "alias": "ez_lending_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/dbt_expectations_expect_column_452a2c94f7e49521b48904680797fff0.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_452a2c94f7e49521b48904680797fff0"}, "created_at": 1672849093.975167, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_lending\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_lending_ORIGIN_FROM_ADDRESS", "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.3e3828617a": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0fa3aaa27b1055a8e98fb8863fbc1d85", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.3e3828617a", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0fa3aaa27b1055a8e98fb8863fbc1d85\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_0fa3aaa27b1055a8e98fb8863fbc1d85.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_", "alias": "ez_lending_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/dbt_expectations_expect_column_0fa3aaa27b1055a8e98fb8863fbc1d85.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_0fa3aaa27b1055a8e98fb8863fbc1d85"}, "created_at": 1672849093.9779148, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_lending\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_lending_ORIGIN_TO_ADDRESS", "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.not_null_sushi__ez_lending_LENDING_POOL.1cc2cec6c9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LENDING_POOL", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_lending_LENDING_POOL"], "unique_id": "test.polygon_models.not_null_sushi__ez_lending_LENDING_POOL.1cc2cec6c9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_lending_LENDING_POOL.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "not_null_sushi__ez_lending_LENDING_POOL", "alias": "ez_lending_LENDING_POOL", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/not_null_sushi__ez_lending_LENDING_POOL.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.980437, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_lending\nwhere LENDING_POOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_lending_LENDING_POOL", "column_name": "LENDING_POOL", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.not_null_sushi__ez_lending_LENDER_IS_A_CONTRACT.39fe049559": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LENDER_IS_A_CONTRACT", "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_lending_LENDER_IS_A_CONTRACT"], "unique_id": "test.polygon_models.not_null_sushi__ez_lending_LENDER_IS_A_CONTRACT.39fe049559", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_lending_LENDER_IS_A_CONTRACT.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "not_null_sushi__ez_lending_LENDER_IS_A_CONTRACT", "alias": "ez_lending_LENDER_IS_A_CONTRACT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/not_null_sushi__ez_lending_LENDER_IS_A_CONTRACT.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.981199, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_lending\nwhere LENDER_IS_A_CONTRACT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_lending_LENDER_IS_A_CONTRACT", "column_name": "LENDER_IS_A_CONTRACT", "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_sushi__ez_lending__LOG_ID.9fb554f90f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_LOG_ID"], "model": "{{ get_where_subquery(ref('sushi__ez_lending')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_lending"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_940a1adecf5276745b83253808bd1e0f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_utils_unique_combination_of_columns_sushi", "fqn": ["polygon_models", "sushi", "dbt_utils_unique_combination_of_columns_sushi__ez_lending__LOG_ID"], "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_sushi__ez_lending__LOG_ID.9fb554f90f", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_940a1adecf5276745b83253808bd1e0f\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_utils_unique_combination_o_940a1adecf5276745b83253808bd1e0f.sql", "original_file_path": "models/sushi/sushi__ez_lending.yml", "name": "dbt_utils_unique_combination_of_columns_sushi__ez_lending__LOG_ID", "alias": "ez_lending", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_lending"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_lending.yml/dbt_utils_unique_combination_o_940a1adecf5276745b83253808bd1e0f.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_940a1adecf5276745b83253808bd1e0f"}, "created_at": 1672849093.981976, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _LOG_ID\n from POLYGON_DEV.sushi.ez_lending\n group by _LOG_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_utils_unique_combination_of_columns_sushi.ez_lending", "column_name": null, "file_key_name": "models.sushi__ez_lending"}, "test.polygon_models.not_null_sushi__ez_swaps_BLOCK_NUMBER.4da3b3d654": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_swaps_BLOCK_NUMBER"], "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_BLOCK_NUMBER.4da3b3d654", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_swaps_BLOCK_NUMBER.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "not_null_sushi__ez_swaps_BLOCK_NUMBER", "alias": "ez_swaps_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/not_null_sushi__ez_swaps_BLOCK_NUMBER.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.988846, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_swaps\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_swaps_BLOCK_NUMBER", "column_name": "BLOCK_NUMBER", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_BLOCK_NUMBER__NUMBER__FLOAT.7b69aae0de": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0d1bebae3419b1f597277d114f4999ad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_BLOCK_NUMBER__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_BLOCK_NUMBER__NUMBER__FLOAT.7b69aae0de", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0d1bebae3419b1f597277d114f4999ad\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_0d1bebae3419b1f597277d114f4999ad.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_BLOCK_NUMBER__NUMBER__FLOAT", "alias": "ez_swaps_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_0d1bebae3419b1f597277d114f4999ad.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_0d1bebae3419b1f597277d114f4999ad"}, "created_at": 1672849093.9895868, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('POOL_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_swaps_BLOCK_NUMBER", "column_name": "BLOCK_NUMBER", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.not_null_sushi__ez_swaps_BLOCK_TIMESTAMP.64d0de4b09": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_swaps_BLOCK_TIMESTAMP"], "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_BLOCK_TIMESTAMP.64d0de4b09", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_swaps_BLOCK_TIMESTAMP.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "not_null_sushi__ez_swaps_BLOCK_TIMESTAMP", "alias": "ez_swaps_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/not_null_sushi__ez_swaps_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.991909, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_swaps\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_swaps_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_swaps_BLOCK_TIMESTAMP__day__1.ccd4b95299": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_fba99a4d962c16acbcae70cfb735399d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_swaps_BLOCK_TIMESTAMP__day__1"], "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_swaps_BLOCK_TIMESTAMP__day__1.ccd4b95299", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_fba99a4d962c16acbcae70cfb735399d\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_row_va_fba99a4d962c16acbcae70cfb735399d.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_swaps_BLOCK_TIMESTAMP__day__1", "alias": "ez_swaps_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_row_va_fba99a4d962c16acbcae70cfb735399d.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_fba99a4d962c16acbcae70cfb735399d"}, "created_at": 1672849093.992673, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n POLYGON_DEV.sushi.ez_swaps\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_row_values_to_have_recent_data_sushi.ez_swaps_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.c09d40c178": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a13829dd693c406675a79859aaaf8ea1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.c09d40c178", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a13829dd693c406675a79859aaaf8ea1\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_a13829dd693c406675a79859aaaf8ea1.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "ez_swaps_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_a13829dd693c406675a79859aaaf8ea1.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_a13829dd693c406675a79859aaaf8ea1"}, "created_at": 1672849093.9963021, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('POOL_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_swaps_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.not_null_sushi__ez_swaps_TX_HASH.5c71b07498": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_swaps_TX_HASH"], "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_TX_HASH.5c71b07498", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_swaps_TX_HASH.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "not_null_sushi__ez_swaps_TX_HASH", "alias": "ez_swaps_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/not_null_sushi__ez_swaps_TX_HASH.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849093.998971, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_swaps\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_swaps_TX_HASH", "column_name": "TX_HASH", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TX_HASH__0_xX_0_9a_fA_F_.15d478c09c": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_20637e8aec991d2e7a6da871dabc7bbb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TX_HASH__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TX_HASH__0_xX_0_9a_fA_F_.15d478c09c", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_20637e8aec991d2e7a6da871dabc7bbb\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_20637e8aec991d2e7a6da871dabc7bbb.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TX_HASH__0_xX_0_9a_fA_F_", "alias": "ez_swaps_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_20637e8aec991d2e7a6da871dabc7bbb.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_20637e8aec991d2e7a6da871dabc7bbb"}, "created_at": 1672849093.999975, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_swaps\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_swaps_TX_HASH", "column_name": "TX_HASH", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.not_null_sushi__ez_swaps_CONTRACT_ADDRESS.f4cd976e06": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_swaps_CONTRACT_ADDRESS"], "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_CONTRACT_ADDRESS.f4cd976e06", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_swaps_CONTRACT_ADDRESS.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "not_null_sushi__ez_swaps_CONTRACT_ADDRESS", "alias": "ez_swaps_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/not_null_sushi__ez_swaps_CONTRACT_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.002358, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_swaps\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_swaps_CONTRACT_ADDRESS", "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.d6ed59e98b": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3124928ea29d4d2d4ca74f173edf79f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.d6ed59e98b", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3124928ea29d4d2d4ca74f173edf79f4\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_3124928ea29d4d2d4ca74f173edf79f4.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "alias": "ez_swaps_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_3124928ea29d4d2d4ca74f173edf79f4.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3124928ea29d4d2d4ca74f173edf79f4"}, "created_at": 1672849094.0030751, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_swaps\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_swaps_CONTRACT_ADDRESS", "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_EVENT_NAME__STRING__VARCHAR.9c08c6c888": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "EVENT_NAME", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_57dde4bb0e94f4fa928f8d4d48f12c01", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_EVENT_NAME__STRING__VARCHAR"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_EVENT_NAME__STRING__VARCHAR.9c08c6c888", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_57dde4bb0e94f4fa928f8d4d48f12c01\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_57dde4bb0e94f4fa928f8d4d48f12c01.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_EVENT_NAME__STRING__VARCHAR", "alias": "ez_swaps_EVENT_NAME", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_57dde4bb0e94f4fa928f8d4d48f12c01.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_57dde4bb0e94f4fa928f8d4d48f12c01"}, "created_at": 1672849094.005353, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('POOL_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'EVENT_NAME'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_swaps_EVENT_NAME", "column_name": "EVENT_NAME", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_IN__NUMBER__FLOAT.ce483aa368": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "AMOUNT_IN", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_07850b04dfdbeda7b8a1c2fcbf422efe", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_IN__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_IN__NUMBER__FLOAT.ce483aa368", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_07850b04dfdbeda7b8a1c2fcbf422efe\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_07850b04dfdbeda7b8a1c2fcbf422efe.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_IN__NUMBER__FLOAT", "alias": "ez_swaps_AMOUNT_IN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_07850b04dfdbeda7b8a1c2fcbf422efe.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_07850b04dfdbeda7b8a1c2fcbf422efe"}, "created_at": 1672849094.0076602, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('POOL_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'AMOUNT_IN'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_swaps_AMOUNT_IN", "column_name": "AMOUNT_IN", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_OUT__NUMBER__FLOAT.6028b5385f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "AMOUNT_OUT", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1ea95f689a0a0d76b9936262483dcf06", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_OUT__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_OUT__NUMBER__FLOAT.6028b5385f", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1ea95f689a0a0d76b9936262483dcf06\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_1ea95f689a0a0d76b9936262483dcf06.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_OUT__NUMBER__FLOAT", "alias": "ez_swaps_AMOUNT_OUT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_1ea95f689a0a0d76b9936262483dcf06.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_1ea95f689a0a0d76b9936262483dcf06"}, "created_at": 1672849094.0101671, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('POOL_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'AMOUNT_OUT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_swaps_AMOUNT_OUT", "column_name": "AMOUNT_OUT", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_IN_USD__NUMBER__FLOAT.9a8b1e0480": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "AMOUNT_IN_USD", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_590932661a0605b27523ee9de68a5fab", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_IN_USD__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_IN_USD__NUMBER__FLOAT.9a8b1e0480", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_590932661a0605b27523ee9de68a5fab\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_590932661a0605b27523ee9de68a5fab.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_IN_USD__NUMBER__FLOAT", "alias": "ez_swaps_AMOUNT_IN_USD", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_590932661a0605b27523ee9de68a5fab.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_590932661a0605b27523ee9de68a5fab"}, "created_at": 1672849094.013098, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('POOL_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'AMOUNT_IN_USD'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_swaps_AMOUNT_IN_USD", "column_name": "AMOUNT_IN_USD", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_OUT_USD__NUMBER__FLOAT.a061b70981": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "AMOUNT_OUT_USD", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f8b8baa2ef40f88b54230265ed701d42", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_OUT_USD__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_OUT_USD__NUMBER__FLOAT.a061b70981", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f8b8baa2ef40f88b54230265ed701d42\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_f8b8baa2ef40f88b54230265ed701d42.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_OUT_USD__NUMBER__FLOAT", "alias": "ez_swaps_AMOUNT_OUT_USD", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_f8b8baa2ef40f88b54230265ed701d42.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f8b8baa2ef40f88b54230265ed701d42"}, "created_at": 1672849094.0159738, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('POOL_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'AMOUNT_OUT_USD'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_swaps_AMOUNT_OUT_USD", "column_name": "AMOUNT_OUT_USD", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.not_null_sushi__ez_swaps_TOKEN_IN.8093c41dbe": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_IN", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_swaps_TOKEN_IN"], "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_TOKEN_IN.8093c41dbe", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_swaps_TOKEN_IN.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "not_null_sushi__ez_swaps_TOKEN_IN", "alias": "ez_swaps_TOKEN_IN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/not_null_sushi__ez_swaps_TOKEN_IN.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.018702, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_swaps\nwhere TOKEN_IN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_swaps_TOKEN_IN", "column_name": "TOKEN_IN", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TOKEN_IN__0_xX_0_9a_fA_F_.ae96a38071": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TOKEN_IN", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a83e8ef42a5c728c43663e412d1b8a6a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TOKEN_IN__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TOKEN_IN__0_xX_0_9a_fA_F_.ae96a38071", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a83e8ef42a5c728c43663e412d1b8a6a\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_a83e8ef42a5c728c43663e412d1b8a6a.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TOKEN_IN__0_xX_0_9a_fA_F_", "alias": "ez_swaps_TOKEN_IN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_a83e8ef42a5c728c43663e412d1b8a6a.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_a83e8ef42a5c728c43663e412d1b8a6a"}, "created_at": 1672849094.019478, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TOKEN_IN, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_swaps\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_swaps_TOKEN_IN", "column_name": "TOKEN_IN", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.not_null_sushi__ez_swaps_TOKEN_OUT.68f3f9aac2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_OUT", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_swaps_TOKEN_OUT"], "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_TOKEN_OUT.68f3f9aac2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_swaps_TOKEN_OUT.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "not_null_sushi__ez_swaps_TOKEN_OUT", "alias": "ez_swaps_TOKEN_OUT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/not_null_sushi__ez_swaps_TOKEN_OUT.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.022488, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_swaps\nwhere TOKEN_OUT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_swaps_TOKEN_OUT", "column_name": "TOKEN_OUT", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TOKEN_OUT__0_xX_0_9a_fA_F_.a99f33851e": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TOKEN_OUT", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_be638137de4adae51304e1be121986ed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TOKEN_OUT__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TOKEN_OUT__0_xX_0_9a_fA_F_.a99f33851e", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_be638137de4adae51304e1be121986ed\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_be638137de4adae51304e1be121986ed.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TOKEN_OUT__0_xX_0_9a_fA_F_", "alias": "ez_swaps_TOKEN_OUT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_be638137de4adae51304e1be121986ed.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_be638137de4adae51304e1be121986ed"}, "created_at": 1672849094.023199, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TOKEN_OUT, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_swaps\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_swaps_TOKEN_OUT", "column_name": "TOKEN_OUT", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_SYMBOL_IN__STRING__VARCHAR.b1aea9c82f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "SYMBOL_IN", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_abaf45ee3ec758f86a85905c8f0b1930", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_SYMBOL_IN__STRING__VARCHAR"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_SYMBOL_IN__STRING__VARCHAR.b1aea9c82f", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_abaf45ee3ec758f86a85905c8f0b1930\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_abaf45ee3ec758f86a85905c8f0b1930.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_SYMBOL_IN__STRING__VARCHAR", "alias": "ez_swaps_SYMBOL_IN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_abaf45ee3ec758f86a85905c8f0b1930.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_abaf45ee3ec758f86a85905c8f0b1930"}, "created_at": 1672849094.0259771, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('POOL_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'SYMBOL_IN'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_swaps_SYMBOL_IN", "column_name": "SYMBOL_IN", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_SYMBOL_OUT__STRING__VARCHAR.9fa7d6e04c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "SYMBOL_OUT", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f5fdb44514baccadc81da07bd9bec58f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_SYMBOL_OUT__STRING__VARCHAR"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_SYMBOL_OUT__STRING__VARCHAR.9fa7d6e04c", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f5fdb44514baccadc81da07bd9bec58f\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_f5fdb44514baccadc81da07bd9bec58f.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_SYMBOL_OUT__STRING__VARCHAR", "alias": "ez_swaps_SYMBOL_OUT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_f5fdb44514baccadc81da07bd9bec58f.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f5fdb44514baccadc81da07bd9bec58f"}, "created_at": 1672849094.028979, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('POOL_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'SYMBOL_OUT'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_swaps_SYMBOL_OUT", "column_name": "SYMBOL_OUT", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.not_null_sushi__ez_swaps_SENDER.b76baa207c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SENDER", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": "BLOCK_TIMESTAMP > '2021-08-01'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_swaps_SENDER"], "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_SENDER.b76baa207c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"BLOCK_TIMESTAMP > '2021-08-01'\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_swaps_SENDER.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "not_null_sushi__ez_swaps_SENDER", "alias": "ez_swaps_SENDER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/not_null_sushi__ez_swaps_SENDER.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "where": "BLOCK_TIMESTAMP > '2021-08-01'"}, "created_at": 1672849094.031893, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from POLYGON_DEV.sushi.ez_swaps where BLOCK_TIMESTAMP > '2021-08-01') dbt_subquery\nwhere SENDER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_swaps_SENDER", "column_name": "SENDER", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_SENDER__0_xX_0_9a_fA_F_.b8de01d1db": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "SENDER", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d8af66b62e6c6112b1c0510eac50f6d8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_SENDER__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_SENDER__0_xX_0_9a_fA_F_.b8de01d1db", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d8af66b62e6c6112b1c0510eac50f6d8\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_d8af66b62e6c6112b1c0510eac50f6d8.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_SENDER__0_xX_0_9a_fA_F_", "alias": "ez_swaps_SENDER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_d8af66b62e6c6112b1c0510eac50f6d8.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d8af66b62e6c6112b1c0510eac50f6d8"}, "created_at": 1672849094.032691, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(SENDER, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_swaps\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_swaps_SENDER", "column_name": "SENDER", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.not_null_sushi__ez_swaps_TX_TO.1c512c542a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_TO", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_swaps_TX_TO"], "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_TX_TO.1c512c542a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_swaps_TX_TO.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "not_null_sushi__ez_swaps_TX_TO", "alias": "ez_swaps_TX_TO", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/not_null_sushi__ez_swaps_TX_TO.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.035038, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_swaps\nwhere TX_TO is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_swaps_TX_TO", "column_name": "TX_TO", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TX_TO__0_xX_0_9a_fA_F_.81a6e2ad45": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_TO", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9a85c3009a01a0f64bc589287812f943", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TX_TO__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TX_TO__0_xX_0_9a_fA_F_.81a6e2ad45", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9a85c3009a01a0f64bc589287812f943\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_9a85c3009a01a0f64bc589287812f943.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TX_TO__0_xX_0_9a_fA_F_", "alias": "ez_swaps_TX_TO", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_9a85c3009a01a0f64bc589287812f943.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9a85c3009a01a0f64bc589287812f943"}, "created_at": 1672849094.035758, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_TO, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_swaps\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_swaps_TX_TO", "column_name": "TX_TO", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_PLATFORM__STRING__VARCHAR.55fbd4c7c1": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "PLATFORM", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_42dcd4cff101a1305320df8731943ff4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_PLATFORM__STRING__VARCHAR"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_PLATFORM__STRING__VARCHAR.55fbd4c7c1", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_42dcd4cff101a1305320df8731943ff4\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_42dcd4cff101a1305320df8731943ff4.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_PLATFORM__STRING__VARCHAR", "alias": "ez_swaps_PLATFORM", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_42dcd4cff101a1305320df8731943ff4.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_42dcd4cff101a1305320df8731943ff4"}, "created_at": 1672849094.038025, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('POOL_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'PLATFORM'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_swaps_PLATFORM", "column_name": "PLATFORM", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_EVENT_INDEX__NUMBER__FLOAT.311b76dea2": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5f25f73b18e8b3db560f292103412648", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_EVENT_INDEX__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_EVENT_INDEX__NUMBER__FLOAT.311b76dea2", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5f25f73b18e8b3db560f292103412648\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_5f25f73b18e8b3db560f292103412648.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_EVENT_INDEX__NUMBER__FLOAT", "alias": "ez_swaps_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_5f25f73b18e8b3db560f292103412648.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_5f25f73b18e8b3db560f292103412648"}, "created_at": 1672849094.040258, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('POOL_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_IN_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_OUT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_IN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL_OUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'EVENT_INDEX'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_swaps_EVENT_INDEX", "column_name": "EVENT_INDEX", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.not_null_sushi__ez_swaps__LOG_ID.3bc8eb295f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_LOG_ID", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_swaps__LOG_ID"], "unique_id": "test.polygon_models.not_null_sushi__ez_swaps__LOG_ID.3bc8eb295f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_swaps__LOG_ID.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "not_null_sushi__ez_swaps__LOG_ID", "alias": "ez_swaps", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/not_null_sushi__ez_swaps__LOG_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.042992, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_swaps\nwhere _LOG_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_swaps", "column_name": "_LOG_ID", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.not_null_sushi__ez_swaps_ORIGIN_FUNCTION_SIGNATURE.681d6adb74": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_swaps_ORIGIN_FUNCTION_SIGNATURE"], "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_ORIGIN_FUNCTION_SIGNATURE.681d6adb74", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_swaps_ORIGIN_FUNCTION_SIGNATURE.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "not_null_sushi__ez_swaps_ORIGIN_FUNCTION_SIGNATURE", "alias": "ez_swaps_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/not_null_sushi__ez_swaps_ORIGIN_FUNCTION_SIGNATURE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.043906, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_swaps\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_swaps_ORIGIN_FUNCTION_SIGNATURE", "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.not_null_sushi__ez_swaps_ORIGIN_FROM_ADDRESS.128c7fd237": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_swaps_ORIGIN_FROM_ADDRESS"], "unique_id": "test.polygon_models.not_null_sushi__ez_swaps_ORIGIN_FROM_ADDRESS.128c7fd237", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_swaps_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "not_null_sushi__ez_swaps_ORIGIN_FROM_ADDRESS", "alias": "ez_swaps_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/not_null_sushi__ez_swaps_ORIGIN_FROM_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.044637, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_swaps\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_swaps_ORIGIN_FROM_ADDRESS", "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.d35c7fe495": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5b91569cc99fc548dbde14b89e4bdc4c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.d35c7fe495", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5b91569cc99fc548dbde14b89e4bdc4c\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_5b91569cc99fc548dbde14b89e4bdc4c.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_", "alias": "ez_swaps_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_5b91569cc99fc548dbde14b89e4bdc4c.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_5b91569cc99fc548dbde14b89e4bdc4c"}, "created_at": 1672849094.045351, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_swaps\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_swaps_ORIGIN_FROM_ADDRESS", "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.dd5a907c68": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d095642d0be5e3782b153a015c161725", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.dd5a907c68", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d095642d0be5e3782b153a015c161725\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_d095642d0be5e3782b153a015c161725.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_", "alias": "ez_swaps_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_expectations_expect_column_d095642d0be5e3782b153a015c161725.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d095642d0be5e3782b153a015c161725"}, "created_at": 1672849094.047785, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_swaps\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_swaps_ORIGIN_TO_ADDRESS", "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_sushi__ez_swaps__LOG_ID.cebe0de5a1": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_LOG_ID"], "model": "{{ get_where_subquery(ref('sushi__ez_swaps')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_swaps"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_utils_unique_combination_of_columns_sushi", "fqn": ["polygon_models", "sushi", "dbt_utils_unique_combination_of_columns_sushi__ez_swaps__LOG_ID"], "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_sushi__ez_swaps__LOG_ID.cebe0de5a1", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_utils_unique_combination_of_columns_sushi__ez_swaps__LOG_ID.sql", "original_file_path": "models/sushi/sushi__ez_swaps.yml", "name": "dbt_utils_unique_combination_of_columns_sushi__ez_swaps__LOG_ID", "alias": "ez_swaps", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_swaps"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_swaps.yml/dbt_utils_unique_combination_of_columns_sushi__ez_swaps__LOG_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.050026, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _LOG_ID\n from POLYGON_DEV.sushi.ez_swaps\n group by _LOG_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_utils_unique_combination_of_columns_sushi.ez_swaps", "column_name": null, "file_key_name": "models.sushi__ez_swaps"}, "test.polygon_models.not_null_sushi__ez_borrowing_BLOCK_NUMBER.76a0fc6bc9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_borrowing_BLOCK_NUMBER"], "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_BLOCK_NUMBER.76a0fc6bc9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_borrowing_BLOCK_NUMBER.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "not_null_sushi__ez_borrowing_BLOCK_NUMBER", "alias": "ez_borrowing_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/not_null_sushi__ez_borrowing_BLOCK_NUMBER.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.055659, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_borrowing\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_borrowing_BLOCK_NUMBER", "column_name": "BLOCK_NUMBER", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_BLOCK_NUMBER__NUMBER__FLOAT.e546629920": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4be06188cd9c5ab164549cacf7312452", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_BLOCK_NUMBER__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_BLOCK_NUMBER__NUMBER__FLOAT.e546629920", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4be06188cd9c5ab164549cacf7312452\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_4be06188cd9c5ab164549cacf7312452.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_BLOCK_NUMBER__NUMBER__FLOAT", "alias": "ez_borrowing_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/dbt_expectations_expect_column_4be06188cd9c5ab164549cacf7312452.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_4be06188cd9c5ab164549cacf7312452"}, "created_at": 1672849094.0565372, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BORROWER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BORROWER_IS_A_CONTRACT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ASSET' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_borrowing_BLOCK_NUMBER", "column_name": "BLOCK_NUMBER", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.not_null_sushi__ez_borrowing_BLOCK_TIMESTAMP.3829c4c2c4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_borrowing_BLOCK_TIMESTAMP"], "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_BLOCK_TIMESTAMP.3829c4c2c4", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_borrowing_BLOCK_TIMESTAMP.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "not_null_sushi__ez_borrowing_BLOCK_TIMESTAMP", "alias": "ez_borrowing_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/not_null_sushi__ez_borrowing_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.058877, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_borrowing\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_borrowing_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_borrowing_BLOCK_TIMESTAMP__day__7.9e13292154": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 7, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_a3f76f71fd467290969bb2ffa102d152", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_borrowing_BLOCK_TIMESTAMP__day__7"], "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_borrowing_BLOCK_TIMESTAMP__day__7.9e13292154", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_a3f76f71fd467290969bb2ffa102d152\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_row_va_a3f76f71fd467290969bb2ffa102d152.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_borrowing_BLOCK_TIMESTAMP__day__7", "alias": "ez_borrowing_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/dbt_expectations_expect_row_va_a3f76f71fd467290969bb2ffa102d152.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_a3f76f71fd467290969bb2ffa102d152"}, "created_at": 1672849094.060155, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n POLYGON_DEV.sushi.ez_borrowing\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -7,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_row_values_to_have_recent_data_sushi.ez_borrowing_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2b4d3c83c9": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d709858965e8ec505fd1636323d12494", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2b4d3c83c9", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d709858965e8ec505fd1636323d12494\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_d709858965e8ec505fd1636323d12494.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "ez_borrowing_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/dbt_expectations_expect_column_d709858965e8ec505fd1636323d12494.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d709858965e8ec505fd1636323d12494"}, "created_at": 1672849094.062994, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BORROWER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BORROWER_IS_A_CONTRACT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ASSET' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_borrowing_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.not_null_sushi__ez_borrowing_TX_HASH.eeaf313cd8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_borrowing_TX_HASH"], "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_TX_HASH.eeaf313cd8", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_borrowing_TX_HASH.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "not_null_sushi__ez_borrowing_TX_HASH", "alias": "ez_borrowing_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/not_null_sushi__ez_borrowing_TX_HASH.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.065241, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_borrowing\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_borrowing_TX_HASH", "column_name": "TX_HASH", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_TX_HASH__0_xX_0_9a_fA_F_.e3f190eb04": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_034b7e4f2c1fe2b981df9e42574d41bd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_TX_HASH__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_TX_HASH__0_xX_0_9a_fA_F_.e3f190eb04", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_034b7e4f2c1fe2b981df9e42574d41bd\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_034b7e4f2c1fe2b981df9e42574d41bd.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_TX_HASH__0_xX_0_9a_fA_F_", "alias": "ez_borrowing_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/dbt_expectations_expect_column_034b7e4f2c1fe2b981df9e42574d41bd.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_034b7e4f2c1fe2b981df9e42574d41bd"}, "created_at": 1672849094.065998, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_borrowing\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_borrowing_TX_HASH", "column_name": "TX_HASH", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.not_null_sushi__ez_borrowing_LENDING_POOL_ADDRESS.6ea7d50567": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LENDING_POOL_ADDRESS", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_borrowing_LENDING_POOL_ADDRESS"], "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_LENDING_POOL_ADDRESS.6ea7d50567", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_borrowing_LENDING_POOL_ADDRESS.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "not_null_sushi__ez_borrowing_LENDING_POOL_ADDRESS", "alias": "ez_borrowing_LENDING_POOL_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/not_null_sushi__ez_borrowing_LENDING_POOL_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.068331, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_borrowing\nwhere LENDING_POOL_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_borrowing_LENDING_POOL_ADDRESS", "column_name": "LENDING_POOL_ADDRESS", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_LENDING_POOL_ADDRESS__0_xX_0_9a_fA_F_.11e77397a2": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "LENDING_POOL_ADDRESS", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_52893bd6bb7663e336f23dbd06181b19", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_LENDING_POOL_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_LENDING_POOL_ADDRESS__0_xX_0_9a_fA_F_.11e77397a2", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_52893bd6bb7663e336f23dbd06181b19\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_52893bd6bb7663e336f23dbd06181b19.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_LENDING_POOL_ADDRESS__0_xX_0_9a_fA_F_", "alias": "ez_borrowing_LENDING_POOL_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/dbt_expectations_expect_column_52893bd6bb7663e336f23dbd06181b19.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_52893bd6bb7663e336f23dbd06181b19"}, "created_at": 1672849094.069046, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(LENDING_POOL_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_borrowing\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_borrowing_LENDING_POOL_ADDRESS", "column_name": "LENDING_POOL_ADDRESS", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.not_null_sushi__ez_borrowing_AMOUNT.490bdfdbcb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_borrowing_AMOUNT"], "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_AMOUNT.490bdfdbcb", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_borrowing_AMOUNT.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "not_null_sushi__ez_borrowing_AMOUNT", "alias": "ez_borrowing_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/not_null_sushi__ez_borrowing_AMOUNT.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.071328, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_borrowing\nwhere AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_borrowing_AMOUNT", "column_name": "AMOUNT", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_AMOUNT__NUMBER__FLOAT.28b1f9641c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d76f24e3072b9382adb68e66c6b2a8c7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_AMOUNT__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_AMOUNT__NUMBER__FLOAT.28b1f9641c", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d76f24e3072b9382adb68e66c6b2a8c7\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_d76f24e3072b9382adb68e66c6b2a8c7.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_AMOUNT__NUMBER__FLOAT", "alias": "ez_borrowing_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/dbt_expectations_expect_column_d76f24e3072b9382adb68e66c6b2a8c7.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d76f24e3072b9382adb68e66c6b2a8c7"}, "created_at": 1672849094.072047, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BORROWER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BORROWER_IS_A_CONTRACT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ASSET' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'AMOUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_borrowing_AMOUNT", "column_name": "AMOUNT", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_AMOUNT_USD__NUMBER__FLOAT.5a6575a29d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "AMOUNT_USD", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a02d566bafc14ba37d432b003ff680e4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_AMOUNT_USD__NUMBER__FLOAT"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_AMOUNT_USD__NUMBER__FLOAT.5a6575a29d", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a02d566bafc14ba37d432b003ff680e4\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_a02d566bafc14ba37d432b003ff680e4.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_AMOUNT_USD__NUMBER__FLOAT", "alias": "ez_borrowing_AMOUNT_USD", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/dbt_expectations_expect_column_a02d566bafc14ba37d432b003ff680e4.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_a02d566bafc14ba37d432b003ff680e4"}, "created_at": 1672849094.0742831, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BORROWER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BORROWER_IS_A_CONTRACT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ASSET' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'AMOUNT_USD'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_borrowing_AMOUNT_USD", "column_name": "AMOUNT_USD", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.not_null_sushi__ez_borrowing_ASSET.963aa5a1aa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ASSET", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_borrowing_ASSET"], "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_ASSET.963aa5a1aa", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_borrowing_ASSET.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "not_null_sushi__ez_borrowing_ASSET", "alias": "ez_borrowing_ASSET", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/not_null_sushi__ez_borrowing_ASSET.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.0766048, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_borrowing\nwhere ASSET is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_borrowing_ASSET", "column_name": "ASSET", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ASSET__0_xX_0_9a_fA_F_.73483a63df": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ASSET", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7fb997e73fc3d96463e8e8c74159fef6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ASSET__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ASSET__0_xX_0_9a_fA_F_.73483a63df", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7fb997e73fc3d96463e8e8c74159fef6\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_7fb997e73fc3d96463e8e8c74159fef6.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ASSET__0_xX_0_9a_fA_F_", "alias": "ez_borrowing_ASSET", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/dbt_expectations_expect_column_7fb997e73fc3d96463e8e8c74159fef6.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_7fb997e73fc3d96463e8e8c74159fef6"}, "created_at": 1672849094.077326, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ASSET, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_borrowing\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_borrowing_ASSET", "column_name": "ASSET", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_SYMBOL__STRING__VARCHAR.9b060d1d35": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "SYMBOL", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_103a7bc9754ec10a2265bc64e5910c44", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_SYMBOL__STRING__VARCHAR"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_SYMBOL__STRING__VARCHAR.9b060d1d35", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_103a7bc9754ec10a2265bc64e5910c44\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_103a7bc9754ec10a2265bc64e5910c44.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_SYMBOL__STRING__VARCHAR", "alias": "ez_borrowing_SYMBOL", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/dbt_expectations_expect_column_103a7bc9754ec10a2265bc64e5910c44.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_103a7bc9754ec10a2265bc64e5910c44"}, "created_at": 1672849094.079558, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BORROWER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BORROWER_IS_A_CONTRACT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LENDING_POOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ASSET' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'SYMBOL'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_sushi.ez_borrowing_SYMBOL", "column_name": "SYMBOL", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.not_null_sushi__ez_borrowing_Borrower.1f484a738a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "Borrower", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_borrowing_Borrower"], "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_Borrower.1f484a738a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_borrowing_Borrower.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "not_null_sushi__ez_borrowing_Borrower", "alias": "ez_borrowing_Borrower", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/not_null_sushi__ez_borrowing_Borrower.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.081751, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_borrowing\nwhere Borrower is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_borrowing_Borrower", "column_name": "Borrower", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_Borrower__0_xX_0_9a_fA_F_.cf22d8c187": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "Borrower", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e60cbfc0a404482372bfe130771f28f8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_Borrower__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_Borrower__0_xX_0_9a_fA_F_.cf22d8c187", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e60cbfc0a404482372bfe130771f28f8\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_e60cbfc0a404482372bfe130771f28f8.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_Borrower__0_xX_0_9a_fA_F_", "alias": "ez_borrowing_Borrower", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/dbt_expectations_expect_column_e60cbfc0a404482372bfe130771f28f8.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e60cbfc0a404482372bfe130771f28f8"}, "created_at": 1672849094.082457, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(Borrower, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_borrowing\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_borrowing_Borrower", "column_name": "Borrower", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.not_null_sushi__ez_borrowing__LOG_ID.2c8a148cfa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_LOG_ID", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_borrowing__LOG_ID"], "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing__LOG_ID.2c8a148cfa", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_borrowing__LOG_ID.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "not_null_sushi__ez_borrowing__LOG_ID", "alias": "ez_borrowing", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/not_null_sushi__ez_borrowing__LOG_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.084639, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_borrowing\nwhere _LOG_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_borrowing", "column_name": "_LOG_ID", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.not_null_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS.f47465af36": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS"], "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS.f47465af36", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "not_null_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS", "alias": "ez_borrowing_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/not_null_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.085336, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_borrowing\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_borrowing_ORIGIN_FROM_ADDRESS", "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.c43ca75daa": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_66e19b39c3859acb2bdcbf77a0b15260", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.c43ca75daa", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_66e19b39c3859acb2bdcbf77a0b15260\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_66e19b39c3859acb2bdcbf77a0b15260.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_", "alias": "ez_borrowing_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/dbt_expectations_expect_column_66e19b39c3859acb2bdcbf77a0b15260.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_66e19b39c3859acb2bdcbf77a0b15260"}, "created_at": 1672849094.086027, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_borrowing\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_borrowing_ORIGIN_FROM_ADDRESS", "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.35e38583ac": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_247daa97e7db9edcd76e716391927e42", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_sushi", "fqn": ["polygon_models", "sushi", "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.35e38583ac", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_247daa97e7db9edcd76e716391927e42\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_247daa97e7db9edcd76e716391927e42.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_", "alias": "ez_borrowing_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/dbt_expectations_expect_column_247daa97e7db9edcd76e716391927e42.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_247daa97e7db9edcd76e716391927e42"}, "created_at": 1672849094.088353, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from POLYGON_DEV.sushi.ez_borrowing\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_match_regex_sushi.ez_borrowing_ORIGIN_TO_ADDRESS", "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.not_null_sushi__ez_borrowing_LENDING_POOL.7144d8c199": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LENDING_POOL", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_borrowing_LENDING_POOL"], "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_LENDING_POOL.7144d8c199", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_borrowing_LENDING_POOL.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "not_null_sushi__ez_borrowing_LENDING_POOL", "alias": "ez_borrowing_LENDING_POOL", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/not_null_sushi__ez_borrowing_LENDING_POOL.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.0908391, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_borrowing\nwhere LENDING_POOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_borrowing_LENDING_POOL", "column_name": "LENDING_POOL", "file_key_name": "models.sushi__ez_borrowing"}, "test.polygon_models.not_null_sushi__ez_borrowing_BORROWER_IS_A_CONTRACT.386fbbb5c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BORROWER_IS_A_CONTRACT", "model": "{{ get_where_subquery(ref('sushi__ez_borrowing')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.sushi__ez_borrowing"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_sushi", "fqn": ["polygon_models", "sushi", "not_null_sushi__ez_borrowing_BORROWER_IS_A_CONTRACT"], "unique_id": "test.polygon_models.not_null_sushi__ez_borrowing_BORROWER_IS_A_CONTRACT.386fbbb5c7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_sushi__ez_borrowing_BORROWER_IS_A_CONTRACT.sql", "original_file_path": "models/sushi/sushi__ez_borrowing.yml", "name": "not_null_sushi__ez_borrowing_BORROWER_IS_A_CONTRACT", "alias": "ez_borrowing_BORROWER_IS_A_CONTRACT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["sushi__ez_borrowing"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/sushi/sushi__ez_borrowing.yml/not_null_sushi__ez_borrowing_BORROWER_IS_A_CONTRACT.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672849094.091629, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.sushi.ez_borrowing\nwhere BORROWER_IS_A_CONTRACT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_sushi.ez_borrowing_BORROWER_IS_A_CONTRACT", "column_name": "BORROWER_IS_A_CONTRACT", "file_key_name": "models.sushi__ez_borrowing"}, "model.polygon_models.core__ez_matic_transfers": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["source.polygon_models.ethereum.fact_hourly_token_prices", "model.polygon_models.silver__traces", "model.polygon_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "tx_hash", "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "cluster_by": ["block_timestamp::DATE"], "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(tx_hash)", "transaction": true, "index": null}], "pre-hook": []}, "database": "POLYGON_DEV", "schema": "core", "fqn": ["polygon_models", "gold", "core__ez_matic_transfers"], "unique_id": "model.polygon_models.core__ez_matic_transfers", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'tx_hash',\n cluster_by = ['block_timestamp::DATE'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(tx_hash)\"\n) }}\n\nWITH matic_base AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n identifier,\n from_address,\n to_address,\n matic_value,\n _call_id,\n _inserted_timestamp\n FROM\n {{ ref('silver__traces') }}\n WHERE\n matic_value > 0\n AND tx_status = 'SUCCESS'\n AND gas_used IS NOT NULL\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\nmatic_price AS (\n SELECT\n HOUR,\n AVG(price) AS matic_price\n FROM\n {{ source(\n 'ethereum',\n 'fact_hourly_token_prices'\n ) }}\n WHERE\n token_address = LOWER('0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0')\n GROUP BY\n HOUR\n),\ntx_table AS (\n SELECT\n tx_hash,\n from_address AS origin_from_address,\n to_address AS origin_to_address,\n origin_function_signature\n FROM\n {{ ref('silver__transactions') }}\n WHERE\n tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n matic_base\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n)\nSELECT\n A.tx_hash AS tx_hash,\n A.block_number AS block_number,\n A.block_timestamp AS block_timestamp,\n A.identifier AS identifier,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n A.from_address AS matic_from_address,\n A.to_address AS matic_to_address,\n A.matic_value AS amount,\n ROUND(\n A.matic_value * matic_price,\n 2\n ) AS amount_usd,\n _call_id,\n _inserted_timestamp\nFROM\n matic_base A\n LEFT JOIN matic_price\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = HOUR\n LEFT JOIN tx_table\n ON A.tx_hash = tx_table.tx_hash", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "gold/core__ez_matic_transfers.sql", "original_file_path": "models/gold/core__ez_matic_transfers.sql", "name": "core__ez_matic_transfers", "alias": "ez_matic_transfers", "checksum": {"name": "sha256", "checksum": "ceaf0d6b85aa90bbb7d61b300362beae3192338d8e10d58582b585d996890ad2"}, "tags": [], "refs": [["silver__traces"], ["silver__transactions"]], "sources": [["ethereum", "fact_hourly_token_prices"]], "metrics": [], "description": "This table contains all native Matic transfers, including equivalent USD amounts. The origin addresses correspond to the to and from addresses from the `fact_transactions` table. The `identifier` and `tx_hash` columns relate this table back to `fact_traces`, which contains more details on the transfers.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Also known as block height. The block number, which indicates the length of the blockchain, increases after the addition of each new block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block was produced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Transaction hash is a unique 66-character identifier that is generated when a transaction is executed. This will not be unique in this table as a transaction could include multiple transfer events.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MATIC_FROM_ADDRESS": {"name": "MATIC_FROM_ADDRESS", "description": "The sending address of this transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MATIC_TO_ADDRESS": {"name": "MATIC_TO_ADDRESS", "description": "The receiving address of this transfer. This can be a contract address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "ETH value transferred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "AMOUNT_USD": {"name": "AMOUNT_USD", "description": "ETH value transferred, in USD.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "The function signature of this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The from address of this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The to address of this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "IDENTIFIER": {"name": "IDENTIFIER", "description": "This field represents the position and type of the trace within the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/gold/core__ez_matic_transfers.yml", "compiled_path": "target/compiled/polygon_models/models/gold/core__ez_matic_transfers.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "tx_hash", "cluster_by": ["block_timestamp::DATE"], "post-hook": ["ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(tx_hash)"]}, "created_at": 1672850519.092375, "compiled_code": "\n\nWITH matic_base AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n identifier,\n from_address,\n to_address,\n matic_value,\n _call_id,\n _inserted_timestamp\n FROM\n POLYGON_DEV.silver.traces\n WHERE\n matic_value > 0\n AND tx_status = 'SUCCESS'\n AND gas_used IS NOT NULL\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) :: DATE - 2\n FROM\n POLYGON_DEV.core.ez_matic_transfers\n)\n\n),\nmatic_price AS (\n SELECT\n HOUR,\n AVG(price) AS matic_price\n FROM\n ethereum.core.fact_hourly_token_prices\n WHERE\n token_address = LOWER('0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0')\n GROUP BY\n HOUR\n),\ntx_table AS (\n SELECT\n tx_hash,\n from_address AS origin_from_address,\n to_address AS origin_to_address,\n origin_function_signature\n FROM\n POLYGON_DEV.silver.transactions\n WHERE\n tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n matic_base\n )\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) :: DATE - 2\n FROM\n POLYGON_DEV.core.ez_matic_transfers\n)\n\n)\nSELECT\n A.tx_hash AS tx_hash,\n A.block_number AS block_number,\n A.block_timestamp AS block_timestamp,\n A.identifier AS identifier,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n A.from_address AS matic_from_address,\n A.to_address AS matic_to_address,\n A.matic_value AS amount,\n ROUND(\n A.matic_value * matic_price,\n 2\n ) AS amount_usd,\n _call_id,\n _inserted_timestamp\nFROM\n matic_base A\n LEFT JOIN matic_price\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = HOUR\n LEFT JOIN tx_table\n ON A.tx_hash = tx_table.tx_hash", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.core.ez_matic_transfers"}, "test.polygon_models.not_null_core__ez_matic_transfers_BLOCK_TIMESTAMP.dc9b204fcc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__ez_matic_transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__ez_matic_transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_core", "fqn": ["polygon_models", "gold", "not_null_core__ez_matic_transfers_BLOCK_TIMESTAMP"], "unique_id": "test.polygon_models.not_null_core__ez_matic_transfers_BLOCK_TIMESTAMP.dc9b204fcc", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_core__ez_matic_transfers_BLOCK_TIMESTAMP.sql", "original_file_path": "models/gold/core__ez_matic_transfers.yml", "name": "not_null_core__ez_matic_transfers_BLOCK_TIMESTAMP", "alias": "ez_matic_transfers_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__ez_matic_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__ez_matic_transfers.yml/not_null_core__ez_matic_transfers_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672850519.096318, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.core.ez_matic_transfers\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_core.ez_matic_transfers_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__ez_matic_transfers"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_core__ez_matic_transfers_BLOCK_TIMESTAMP__day__1.940673cb6e": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__ez_matic_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__ez_matic_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_1984932fc8929f603ace7fcafa8aba27", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_core", "fqn": ["polygon_models", "gold", "dbt_expectations_expect_row_values_to_have_recent_data_core__ez_matic_transfers_BLOCK_TIMESTAMP__day__1"], "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_core__ez_matic_transfers_BLOCK_TIMESTAMP__day__1.940673cb6e", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_1984932fc8929f603ace7fcafa8aba27\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_row_va_1984932fc8929f603ace7fcafa8aba27.sql", "original_file_path": "models/gold/core__ez_matic_transfers.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_core__ez_matic_transfers_BLOCK_TIMESTAMP__day__1", "alias": "ez_matic_transfers_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__ez_matic_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__ez_matic_transfers.yml/dbt_expectations_expect_row_va_1984932fc8929f603ace7fcafa8aba27.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_1984932fc8929f603ace7fcafa8aba27"}, "created_at": 1672850519.097194, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n POLYGON_DEV.core.ez_matic_transfers\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as TIMESTAMP)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_row_values_to_have_recent_data_core.ez_matic_transfers_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__ez_matic_transfers"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__ez_matic_transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.7cbaba0e0f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__ez_matic_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__ez_matic_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e604a4864b26e195aa76119ab510777c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_core", "fqn": ["polygon_models", "gold", "dbt_expectations_expect_column_values_to_be_in_type_list_core__ez_matic_transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__ez_matic_transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.7cbaba0e0f", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e604a4864b26e195aa76119ab510777c\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_expectations_expect_column_e604a4864b26e195aa76119ab510777c.sql", "original_file_path": "models/gold/core__ez_matic_transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_core__ez_matic_transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "ez_matic_transfers_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__ez_matic_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__ez_matic_transfers.yml/dbt_expectations_expect_column_e604a4864b26e195aa76119ab510777c.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e604a4864b26e195aa76119ab510777c"}, "created_at": 1672850519.110516, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('IDENTIFIER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MATIC_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MATIC_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_CALL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_core.ez_matic_transfers_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__ez_matic_transfers"}, "test.polygon_models.not_null_core__ez_matic_transfers_TX_HASH.6e9eb6a197": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('core__ez_matic_transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__ez_matic_transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_core", "fqn": ["polygon_models", "gold", "not_null_core__ez_matic_transfers_TX_HASH"], "unique_id": "test.polygon_models.not_null_core__ez_matic_transfers_TX_HASH.6e9eb6a197", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_core__ez_matic_transfers_TX_HASH.sql", "original_file_path": "models/gold/core__ez_matic_transfers.yml", "name": "not_null_core__ez_matic_transfers_TX_HASH", "alias": "ez_matic_transfers_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__ez_matic_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__ez_matic_transfers.yml/not_null_core__ez_matic_transfers_TX_HASH.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672850519.114816, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.core.ez_matic_transfers\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_core.ez_matic_transfers_TX_HASH", "column_name": "TX_HASH", "file_key_name": "models.core__ez_matic_transfers"}, "test.polygon_models.not_null_core__ez_matic_transfers_MATIC_FROM_ADDRESS.431d281508": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MATIC_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('core__ez_matic_transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__ez_matic_transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_core", "fqn": ["polygon_models", "gold", "not_null_core__ez_matic_transfers_MATIC_FROM_ADDRESS"], "unique_id": "test.polygon_models.not_null_core__ez_matic_transfers_MATIC_FROM_ADDRESS.431d281508", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_core__ez_matic_transfers_MATIC_FROM_ADDRESS.sql", "original_file_path": "models/gold/core__ez_matic_transfers.yml", "name": "not_null_core__ez_matic_transfers_MATIC_FROM_ADDRESS", "alias": "ez_matic_transfers_MATIC_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__ez_matic_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__ez_matic_transfers.yml/not_null_core__ez_matic_transfers_MATIC_FROM_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672850519.115533, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.core.ez_matic_transfers\nwhere MATIC_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_core.ez_matic_transfers_MATIC_FROM_ADDRESS", "column_name": "MATIC_FROM_ADDRESS", "file_key_name": "models.core__ez_matic_transfers"}, "test.polygon_models.not_null_core__ez_matic_transfers_MATIC_TO_ADDRESS.8231921086": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MATIC_TO_ADDRESS", "model": "{{ get_where_subquery(ref('core__ez_matic_transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__ez_matic_transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_core", "fqn": ["polygon_models", "gold", "not_null_core__ez_matic_transfers_MATIC_TO_ADDRESS"], "unique_id": "test.polygon_models.not_null_core__ez_matic_transfers_MATIC_TO_ADDRESS.8231921086", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_core__ez_matic_transfers_MATIC_TO_ADDRESS.sql", "original_file_path": "models/gold/core__ez_matic_transfers.yml", "name": "not_null_core__ez_matic_transfers_MATIC_TO_ADDRESS", "alias": "ez_matic_transfers_MATIC_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__ez_matic_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__ez_matic_transfers.yml/not_null_core__ez_matic_transfers_MATIC_TO_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672850519.1162329, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.core.ez_matic_transfers\nwhere MATIC_TO_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_core.ez_matic_transfers_MATIC_TO_ADDRESS", "column_name": "MATIC_TO_ADDRESS", "file_key_name": "models.core__ez_matic_transfers"}, "test.polygon_models.not_null_core__ez_matic_transfers_AMOUNT.fe6f52cdc6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('core__ez_matic_transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__ez_matic_transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_core", "fqn": ["polygon_models", "gold", "not_null_core__ez_matic_transfers_AMOUNT"], "unique_id": "test.polygon_models.not_null_core__ez_matic_transfers_AMOUNT.fe6f52cdc6", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_core__ez_matic_transfers_AMOUNT.sql", "original_file_path": "models/gold/core__ez_matic_transfers.yml", "name": "not_null_core__ez_matic_transfers_AMOUNT", "alias": "ez_matic_transfers_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__ez_matic_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__ez_matic_transfers.yml/not_null_core__ez_matic_transfers_AMOUNT.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1672850519.1170409, "compiled_code": "\n \n \n\n\n\nselect *\nfrom POLYGON_DEV.core.ez_matic_transfers\nwhere AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_core.ez_matic_transfers_AMOUNT", "column_name": "AMOUNT", "file_key_name": "models.core__ez_matic_transfers"}, "test.polygon_models.not_null_core__ez_matic_transfers_AMOUNT_USD.8cd2531d9f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_USD", "model": "{{ get_where_subquery(ref('core__ez_matic_transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__ez_matic_transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": "BLOCK_TIMESTAMP::date > '2021-01-01' AND BLOCK_TIMESTAMP < CURRENT_DATE - 1", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "not_null_core", "fqn": ["polygon_models", "gold", "not_null_core__ez_matic_transfers_AMOUNT_USD"], "unique_id": "test.polygon_models.not_null_core__ez_matic_transfers_AMOUNT_USD.8cd2531d9f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"BLOCK_TIMESTAMP::date > '2021-01-01' AND BLOCK_TIMESTAMP < CURRENT_DATE - 1\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "not_null_core__ez_matic_transfers_AMOUNT_USD.sql", "original_file_path": "models/gold/core__ez_matic_transfers.yml", "name": "not_null_core__ez_matic_transfers_AMOUNT_USD", "alias": "ez_matic_transfers_AMOUNT_USD", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__ez_matic_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__ez_matic_transfers.yml/not_null_core__ez_matic_transfers_AMOUNT_USD.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "where": "BLOCK_TIMESTAMP::date > '2021-01-01' AND BLOCK_TIMESTAMP < CURRENT_DATE - 1"}, "created_at": 1672850519.117952, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from POLYGON_DEV.core.ez_matic_transfers where BLOCK_TIMESTAMP::date > '2021-01-01' AND BLOCK_TIMESTAMP < CURRENT_DATE - 1) dbt_subquery\nwhere AMOUNT_USD is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.not_null_core.ez_matic_transfers_AMOUNT_USD", "column_name": "AMOUNT_USD", "file_key_name": "models.core__ez_matic_transfers"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_core__ez_matic_transfers__CALL_ID.e29d5382c2": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_CALL_ID"], "model": "{{ get_where_subquery(ref('core__ez_matic_transfers')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.core__ez_matic_transfers"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3f215a416f8d50e407b91e2150c3fe13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "POLYGON_DEV", "schema": "dbt_utils_unique_combination_of_columns_core", "fqn": ["polygon_models", "gold", "dbt_utils_unique_combination_of_columns_core__ez_matic_transfers__CALL_ID"], "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_core__ez_matic_transfers__CALL_ID.e29d5382c2", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3f215a416f8d50e407b91e2150c3fe13\") }}", "language": "sql", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "dbt_utils_unique_combination_o_3f215a416f8d50e407b91e2150c3fe13.sql", "original_file_path": "models/gold/core__ez_matic_transfers.yml", "name": "dbt_utils_unique_combination_of_columns_core__ez_matic_transfers__CALL_ID", "alias": "ez_matic_transfers", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__ez_matic_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/polygon_models/models/gold/core__ez_matic_transfers.yml/dbt_utils_unique_combination_o_3f215a416f8d50e407b91e2150c3fe13.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_3f215a416f8d50e407b91e2150c3fe13"}, "created_at": 1672850519.118664, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _CALL_ID\n from POLYGON_DEV.core.ez_matic_transfers\n group by _CALL_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "POLYGON_DEV.dbt_utils_unique_combination_of_columns_core.ez_matic_transfers", "column_name": null, "file_key_name": "models.core__ez_matic_transfers"}}, "sources": {"source.polygon_models.prod.polygon_blocks": {"fqn": ["polygon_models", "prod", "polygon_blocks"], "database": "chainwalkers", "schema": "prod", "unique_id": "source.polygon_models.prod.polygon_blocks", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "name": "polygon_blocks", "source_name": "prod", "source_description": "", "loader": "", "identifier": "polygon_blocks", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "chainwalkers.prod.polygon_blocks", "created_at": 1672849094.0958238}, "source.polygon_models.prod.polygon_txs": {"fqn": ["polygon_models", "prod", "polygon_txs"], "database": "chainwalkers", "schema": "prod", "unique_id": "source.polygon_models.prod.polygon_txs", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "name": "polygon_txs", "source_name": "prod", "source_description": "", "loader": "", "identifier": "polygon_txs", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "chainwalkers.prod.polygon_txs", "created_at": 1672849094.0959098}, "source.polygon_models.crosschain.address_labels": {"fqn": ["polygon_models", "crosschain", "address_labels"], "database": "crosschain", "schema": "core", "unique_id": "source.polygon_models.crosschain.address_labels", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "name": "address_labels", "source_name": "crosschain", "source_description": "", "loader": "", "identifier": "address_labels", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.core.address_labels", "created_at": 1672849094.095968}, "source.polygon_models.symbols_cross_tab.MARKET_ASSET_METADATA": {"fqn": ["polygon_models", "symbols_cross_tab", "MARKET_ASSET_METADATA"], "database": "FLIPSIDE_PROD_DB", "schema": "SILVER", "unique_id": "source.polygon_models.symbols_cross_tab.MARKET_ASSET_METADATA", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "name": "MARKET_ASSET_METADATA", "source_name": "symbols_cross_tab", "source_description": "", "loader": "", "identifier": "MARKET_ASSET_METADATA", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "FLIPSIDE_PROD_DB.SILVER.MARKET_ASSET_METADATA", "created_at": 1672849094.096019}, "source.polygon_models.polygon_dex_pools.SUSHI_DIM_DEX_POOLS": {"fqn": ["polygon_models", "polygon_dex_pools", "SUSHI_DIM_DEX_POOLS"], "database": "polygon", "schema": "bronze", "unique_id": "source.polygon_models.polygon_dex_pools.SUSHI_DIM_DEX_POOLS", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "name": "SUSHI_DIM_DEX_POOLS", "source_name": "polygon_dex_pools", "source_description": "", "loader": "", "identifier": "SUSHI_DIM_DEX_POOLS", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.bronze.SUSHI_DIM_DEX_POOLS", "created_at": 1672849094.096069}, "source.polygon_models.polygon_dex_pools.SUSHI_DIM_KASHI_PAIRS": {"fqn": ["polygon_models", "polygon_dex_pools", "SUSHI_DIM_KASHI_PAIRS"], "database": "polygon", "schema": "bronze", "unique_id": "source.polygon_models.polygon_dex_pools.SUSHI_DIM_KASHI_PAIRS", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "name": "SUSHI_DIM_KASHI_PAIRS", "source_name": "polygon_dex_pools", "source_description": "", "loader": "", "identifier": "SUSHI_DIM_KASHI_PAIRS", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.bronze.SUSHI_DIM_KASHI_PAIRS", "created_at": 1672849094.096118}, "source.polygon_models.ethereum.fact_hourly_token_prices": {"fqn": ["polygon_models", "ethereum", "fact_hourly_token_prices"], "database": "ethereum", "schema": "core", "unique_id": "source.polygon_models.ethereum.fact_hourly_token_prices", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "name": "fact_hourly_token_prices", "source_name": "ethereum", "source_description": "", "loader": "", "identifier": "fact_hourly_token_prices", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ethereum.core.fact_hourly_token_prices", "created_at": 1672849094.096171}, "source.polygon_models.ethereum.DIM_CONTRACTS": {"fqn": ["polygon_models", "ethereum", "DIM_CONTRACTS"], "database": "ethereum", "schema": "core", "unique_id": "source.polygon_models.ethereum.DIM_CONTRACTS", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "name": "DIM_CONTRACTS", "source_name": "ethereum", "source_description": "", "loader": "", "identifier": "DIM_CONTRACTS", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ethereum.core.DIM_CONTRACTS", "created_at": 1672849094.0962172}, "source.polygon_models.ethereum.DIM_DEX_LIQUIDITY_POOLS": {"fqn": ["polygon_models", "ethereum", "DIM_DEX_LIQUIDITY_POOLS"], "database": "ethereum", "schema": "core", "unique_id": "source.polygon_models.ethereum.DIM_DEX_LIQUIDITY_POOLS", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "name": "DIM_DEX_LIQUIDITY_POOLS", "source_name": "ethereum", "source_description": "", "loader": "", "identifier": "DIM_DEX_LIQUIDITY_POOLS", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ethereum.core.DIM_DEX_LIQUIDITY_POOLS", "created_at": 1672849094.096264}, "source.polygon_models.bronze_streamline.blocks": {"fqn": ["polygon_models", "bronze_streamline", "blocks"], "database": "streamline", "schema": "POLYGON", "unique_id": "source.polygon_models.bronze_streamline.blocks", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "name": "blocks", "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "blocks", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.POLYGON.blocks", "created_at": 1672849094.09631}, "source.polygon_models.bronze_streamline.transactions": {"fqn": ["polygon_models", "bronze_streamline", "transactions"], "database": "streamline", "schema": "POLYGON", "unique_id": "source.polygon_models.bronze_streamline.transactions", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "name": "transactions", "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "transactions", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.POLYGON.transactions", "created_at": 1672849094.096359}, "source.polygon_models.streamline_crosschain.node_mapping": {"fqn": ["polygon_models", "streamline_crosschain", "node_mapping"], "database": "streamline", "schema": "crosschain", "unique_id": "source.polygon_models.streamline_crosschain.node_mapping", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "name": "node_mapping", "source_name": "streamline_crosschain", "source_description": "", "loader": "", "identifier": "node_mapping", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.crosschain.node_mapping", "created_at": 1672849094.096409}, "source.polygon_models.crosschain_silver.apis_keys": {"fqn": ["polygon_models", "crosschain_silver", "apis_keys"], "database": "crosschain", "schema": "silver", "unique_id": "source.polygon_models.crosschain_silver.apis_keys", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "name": "apis_keys", "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "apis_keys", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.silver.apis_keys", "created_at": 1672849094.096457}}, "macros": {"macro.polygon_models.create_tasks": {"unique_id": "macro.polygon_models.create_tasks", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/create_tasks.sql", "original_file_path": "macros/create_tasks.sql", "name": "create_tasks", "macro_sql": "{% macro create_tasks() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\n {% if target.database == 'POLYGON' %}\n {{ task_get_abis() }};\n {% endif %}\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.597553, "supported_languages": null}, "macro.polygon_models.db_comment": {"unique_id": "macro.polygon_models.db_comment", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/db_comment.sql", "original_file_path": "macros/db_comment.sql", "name": "db_comment", "macro_sql": "{% macro db_comment() %}\n {% set query %}\nSELECT\n TO_DATE(MIN(block_timestamp))\nFROM\n silver.blocks {% endset %}\n {% set results = run_query(query) %}\n {% set results_list = results.columns [0].values() [0].strftime('%Y-%m-%d') %}\n {% set sql %}\n COMMENT\n ON database polygon IS 'Lite Mode dataset with recent data only. Min block_timestamp: {{ results_list }} \ud83c\udf31 ' {% endset %}\n {% do run_query(sql) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.598263, "supported_languages": null}, "macro.polygon_models.create_sps": {"unique_id": "macro.polygon_models.create_sps", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/create_sps.sql", "original_file_path": "macros/create_sps.sql", "name": "create_sps", "macro_sql": "{% macro create_sps() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\n {% if target.database == 'POLYGON' %}\n CREATE schema IF NOT EXISTS _internal;\n {{ sp_create_prod_clone('_internal') }};\n {% endif %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.polygon_models.sp_create_prod_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.598721, "supported_languages": null}, "macro.polygon_models.if_data_call_function": {"unique_id": "macro.polygon_models.if_data_call_function", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/utils.sql", "original_file_path": "macros/utils.sql", "name": "if_data_call_function", "macro_sql": "{% macro if_data_call_function(\n func,\n target\n ) %}\n {% if var(\n \"STREAMLINE_INVOKE_STREAMS\"\n ) %}\n {% if execute %}\n {{ log(\n \"Running macro `if_data_call_function`: Calling udf \" ~ func ~ \" on \" ~ target,\n True\n ) }}\n {% endif %}\n SELECT\n {{ func }}\n WHERE\n EXISTS(\n SELECT\n 1\n FROM\n {{ target }}\n LIMIT\n 1\n )\n {% else %}\n {% if execute %}\n {{ log(\n \"Running macro `if_data_call_function`: NOOP\",\n False\n ) }}\n {% endif %}\n SELECT\n NULL\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.5995982, "supported_languages": null}, "macro.polygon_models.generate_schema_name": {"unique_id": "macro.polygon_models.generate_schema_name", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/custom_naming_macros.sql", "original_file_path": "macros/custom_naming_macros.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {% set node_name = node.name %}\n {% set split_name = node_name.split('__') %}\n {{ split_name[0] | trim }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.600062, "supported_languages": null}, "macro.polygon_models.generate_alias_name": {"unique_id": "macro.polygon_models.generate_alias_name", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/custom_naming_macros.sql", "original_file_path": "macros/custom_naming_macros.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% set node_name = node.name %}\n {% set split_name = node_name.split('__') %}\n {{ split_name[1] | trim }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6003368, "supported_languages": null}, "macro.polygon_models.create_js_hex_to_int": {"unique_id": "macro.polygon_models.create_js_hex_to_int", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/js_hextoint.sql", "original_file_path": "macros/js_hextoint.sql", "name": "create_js_hex_to_int", "macro_sql": "{% macro create_js_hex_to_int() %}\n CREATE\n OR REPLACE FUNCTION {{ target.schema }}.js_hex_to_int (\n s STRING\n ) returns DOUBLE LANGUAGE javascript AS 'if (S !== null) { yourNumber = parseInt(S, 16); } return yourNumber'\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.600565, "supported_languages": null}, "macro.polygon_models.run_sp_create_prod_clone": {"unique_id": "macro.polygon_models.run_sp_create_prod_clone", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/run_sp_create_prod_clone.sql", "original_file_path": "macros/run_sp_create_prod_clone.sql", "name": "run_sp_create_prod_clone", "macro_sql": "{% macro run_sp_create_prod_clone() %}\n {% set clone_query %}\n call polygon._internal.create_prod_clone(\n 'polygon',\n 'polygon_dev',\n 'internal_dev'\n );\n{% endset %}\n {% do run_query(clone_query) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.600857, "supported_languages": null}, "macro.polygon_models.create_udfs": {"unique_id": "macro.polygon_models.create_udfs", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/create_udfs.sql", "original_file_path": "macros/create_udfs.sql", "name": "create_udfs", "macro_sql": "{% macro create_udfs() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\n {% set sql %}\n CREATE schema if NOT EXISTS silver;\n {{ create_js_hex_to_int() }};\n {{ create_udf_hex_to_int(\n schema = \"public\"\n ) }}\n {{ create_udtf_get_base_table(\n schema = \"streamline\"\n ) }}\n\n {% endset %}\n {% do run_query(sql) %}\n {% if target.database != \"POLYGON_COMMUNITY_DEV\" %}\n {% set sql %}\n {{ create_udf_get_chainhead() }}\n {{ create_udf_get_blocks() }}\n {{ create_udf_get_transactions() }}\n\n {% endset %}\n {% do run_query(sql) %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.polygon_models.create_js_hex_to_int", "macro.polygon_models.create_udf_hex_to_int", "macro.polygon_models.create_udtf_get_base_table", "macro.dbt.run_query", "macro.polygon_models.create_udf_get_chainhead", "macro.polygon_models.create_udf_get_blocks", "macro.polygon_models.create_udf_get_transactions"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.601859, "supported_languages": null}, "macro.polygon_models.set_query_tag": {"unique_id": "macro.polygon_models.set_query_tag", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/custom_query_tag.sql", "original_file_path": "macros/custom_query_tag.sql", "name": "set_query_tag", "macro_sql": "{% macro set_query_tag() -%}\n {% set new_json = {\"repo\":project_name, \"object\":this.table, \"profile\":target.profile_name, \"env\":target.name, \"existing_tag\":get_current_query_tag() } %}\n{% set new_query_tag = tojson(new_json) | as_text %}\n {% if new_query_tag %}\n {% set original_query_tag = get_current_query_tag() %}\n {{ log(\"Setting query_tag to '\" ~ new_query_tag ~ \"'. Will reset to '\" ~ original_query_tag ~ \"' after materialization.\") }}\n {% do run_query(\"alter session set query_tag = '{}'\".format(new_query_tag)) %}\n {{ return(original_query_tag)}}\n {% endif %}\n {{ return(none)}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.get_current_query_tag", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.602751, "supported_languages": null}, "macro.polygon_models.sp_create_prod_clone": {"unique_id": "macro.polygon_models.sp_create_prod_clone", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/sp_create_prod_clone.sql", "original_file_path": "macros/sp_create_prod_clone.sql", "name": "sp_create_prod_clone", "macro_sql": "{% macro sp_create_prod_clone(target_schema) -%}\n\ncreate or replace procedure {{ target_schema }}.create_prod_clone(source_db_name string, destination_db_name string, role_name string)\nreturns boolean \nlanguage javascript\nexecute as caller\nas\n$$\n snowflake.execute({sqlText: `BEGIN TRANSACTION;`});\n try {\n snowflake.execute({sqlText: `DROP DATABASE IF EXISTS ${DESTINATION_DB_NAME}`});\n snowflake.execute({sqlText: `CREATE DATABASE ${DESTINATION_DB_NAME} CLONE ${SOURCE_DB_NAME}`});\n snowflake.execute({sqlText: `DROP SCHEMA ${DESTINATION_DB_NAME}._INTERNAL`}); /* this only needs to be in prod */\n\n var existing_schemas = snowflake.execute({sqlText: `SELECT table_schema\n FROM ${DESTINATION_DB_NAME}.INFORMATION_SCHEMA.TABLE_PRIVILEGES\n WHERE grantor IS NOT NULL\n GROUP BY 1\n UNION\n SELECT 'PUBLIC';`});\n\n while (existing_schemas.next()) {\n var schema = existing_schemas.getColumnValue(1);\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON SCHEMA ${DESTINATION_DB_NAME}.${schema} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`});\n snowflake.execute({sqlText: `REVOKE OWNERSHIP ON FUTURE FUNCTIONS IN SCHEMA ${DESTINATION_DB_NAME}.${schema} FROM ROLE DBT_CLOUD_POLYGON`});\n snowflake.execute({sqlText: `REVOKE OWNERSHIP ON FUTURE PROCEDURES IN SCHEMA ${DESTINATION_DB_NAME}.${schema} FROM ROLE DBT_CLOUD_POLYGON`});\n snowflake.execute({sqlText: `REVOKE OWNERSHIP ON FUTURE TABLES IN SCHEMA ${DESTINATION_DB_NAME}.${schema} FROM ROLE DBT_CLOUD_POLYGON`});\n snowflake.execute({sqlText: `REVOKE OWNERSHIP ON FUTURE VIEWS IN SCHEMA ${DESTINATION_DB_NAME}.${schema} FROM ROLE DBT_CLOUD_POLYGON`});\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE FUNCTIONS IN SCHEMA ${DESTINATION_DB_NAME}.${schema} TO ROLE ${ROLE_NAME};`});\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE PROCEDURES IN SCHEMA ${DESTINATION_DB_NAME}.${schema} TO ROLE ${ROLE_NAME};`});\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE TABLES IN SCHEMA ${DESTINATION_DB_NAME}.${schema} TO ROLE ${ROLE_NAME};`});\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE VIEWS IN SCHEMA ${DESTINATION_DB_NAME}.${schema} TO ROLE ${ROLE_NAME};`});\n }\n\n var existing_tables = snowflake.execute({sqlText: `SELECT table_schema, table_name\n FROM ${DESTINATION_DB_NAME}.INFORMATION_SCHEMA.TABLE_PRIVILEGES\n WHERE grantor IS NOT NULL\n GROUP BY 1,2;`});\n\n while (existing_tables.next()) {\n var schema = existing_tables.getColumnValue(1);\n var table_name = existing_tables.getColumnValue(2);\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON TABLE ${DESTINATION_DB_NAME}.${schema}.${table_name} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`});\n }\n\n var existing_functions = snowflake.execute({sqlText: `SELECT function_schema, function_name, concat('(',array_to_string(regexp_substr_all(argument_signature, 'VARCHAR|NUMBER|FLOAT|ARRAY|VARIANT|OBJECT|DOUBLE'),','),')') as argument_signature\n FROM ${DESTINATION_DB_NAME}.INFORMATION_SCHEMA.FUNCTIONS;`});\n\n while (existing_functions.next()) {\n var schema = existing_functions.getColumnValue(1);\n var function_name = existing_functions.getColumnValue(2);\n var argument_signature = existing_functions.getColumnValue(3);\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUNCTION ${DESTINATION_DB_NAME}.${schema}.${function_name}${argument_signature} to role ${ROLE_NAME} REVOKE CURRENT GRANTS;`});\n }\n\n var existing_procedures = snowflake.execute({sqlText: `SELECT procedure_schema, procedure_name, concat('(',array_to_string(regexp_substr_all(argument_signature, 'VARCHAR|NUMBER|FLOAT|ARRAY|VARIANT|OBJECT|DOUBLE'),','),')') as argument_signature\n FROM ${DESTINATION_DB_NAME}.INFORMATION_SCHEMA.PROCEDURES;`});\n\n while (existing_procedures.next()) {\n var schema = existing_procedures.getColumnValue(1);\n var procedure_name = existing_procedures.getColumnValue(2);\n var argument_signature = existing_procedures.getColumnValue(3);\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON PROCEDURE ${DESTINATION_DB_NAME}.${schema}.${procedure_name}${argument_signature} to role ${ROLE_NAME} REVOKE CURRENT GRANTS;`});\n }\n\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`})\n snowflake.execute({sqlText: `COMMIT;`});\n } catch (err) {\n snowflake.execute({sqlText: `ROLLBACK;`});\n throw(err);\n }\n \n return true\n$$\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.603735, "supported_languages": null}, "macro.polygon_models.create_udf_hex_to_int": {"unique_id": "macro.polygon_models.create_udf_hex_to_int", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/python/udfs.sql", "original_file_path": "macros/python/udfs.sql", "name": "create_udf_hex_to_int", "macro_sql": "{% macro create_udf_hex_to_int(schema) %}\ncreate or replace function {{ schema }}.udf_hex_to_int(hex string)\nreturns string\nlanguage python\nruntime_version = '3.8'\nhandler = 'hex_to_int'\nas\n$$\ndef hex_to_int(hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n select hex_to_int('200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n select hex_to_int('0x200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n select hex_to_int(NULL);\n >> NULL\n \"\"\"\n return str(int(hex, 16)) if hex else None\n$$;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6040199, "supported_languages": null}, "macro.polygon_models.tx_gaps": {"unique_id": "macro.polygon_models.tx_gaps", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/tests/tx_gaps.sql", "original_file_path": "macros/tests/tx_gaps.sql", "name": "tx_gaps", "macro_sql": "{% macro tx_gaps(\n model\n ) %}\n WITH block_base AS (\n SELECT\n block_number,\n tx_count\n FROM\n {{ ref('silver__blocks') }}\n ),\n model_name AS (\n SELECT\n block_number,\n COUNT(\n DISTINCT tx_hash\n ) AS model_tx_count\n FROM\n {{ model }}\n GROUP BY\n block_number\n )\nSELECT\n block_base.block_number,\n tx_count,\n model_name.block_number AS model_block_number,\n model_tx_count\nFROM\n block_base\n LEFT JOIN model_name\n ON block_base.block_number = model_name.block_number\nWHERE\n tx_count <> model_tx_count\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.60439, "supported_languages": null}, "macro.polygon_models.test_sequence_gaps": {"unique_id": "macro.polygon_models.test_sequence_gaps", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/tests/sequence_gaps.sql", "original_file_path": "macros/tests/sequence_gaps.sql", "name": "test_sequence_gaps", "macro_sql": "{% test sequence_gaps(\n model,\n partition_by,\n column_name\n) %}\n{%- set partition_sql = partition_by | join(\", \") -%}\n{%- set previous_column = \"prev_\" ~ column_name -%}\nWITH source AS (\n SELECT\n {{ partition_sql + \",\" if partition_sql }}\n {{ column_name }},\n LAG(\n {{ column_name }},\n 1\n ) over (\n {{ \"PARTITION BY \" ~ partition_sql if partition_sql }}\n ORDER BY\n {{ column_name }} ASC\n ) AS {{ previous_column }}\n FROM\n {{ model }}\n)\nSELECT\n {{ partition_sql + \",\" if partition_sql }}\n {{ previous_column }},\n {{ column_name }},\n {{ column_name }} - {{ previous_column }}\n - 1 AS gap\nFROM\n source\nWHERE\n {{ column_name }} - {{ previous_column }} <> 1\nORDER BY\n gap DESC {% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.605418, "supported_languages": null}, "macro.polygon_models.create_blocks_realtime": {"unique_id": "macro.polygon_models.create_blocks_realtime", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/streamline/blocks_realtime.sql", "original_file_path": "macros/streamline/blocks_realtime.sql", "name": "create_blocks_realtime", "macro_sql": "{% macro create_blocks_realtime() %}\n {% set sql %}\n CREATE\n OR REPLACE PROCEDURE streamline.blocks_realtime() returns variant LANGUAGE SQL AS $$\nDECLARE\n RESULT variant;\nrow_cnt INTEGER;\nBEGIN\n row_cnt:= (\n SELECT\n COUNT(1)\n FROM\n {{ ref('streamline__blocks_realtime') }}\n );\nif (\n row_cnt > 0\n ) THEN RESULT:= (\n SELECT\n streamline.udf_get_blocks()\n );\n ELSE RESULT:= NULL;\nEND if;\nRETURN RESULT;\nEND;$$ {% endset %}\n{% do run_query(sql) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.605812, "supported_languages": null}, "macro.polygon_models.create_udtf_get_base_table": {"unique_id": "macro.polygon_models.create_udtf_get_base_table", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/streamline/get_base_table_udft.sql", "original_file_path": "macros/streamline/get_base_table_udft.sql", "name": "create_udtf_get_base_table", "macro_sql": "{% macro create_udtf_get_base_table(schema) %}\ncreate or replace function {{ schema }}.udtf_get_base_table(max_height integer)\nreturns table (height number)\nas\n$$\n with base as (\n select\n row_number() over (\n order by\n seq4()\n ) as id\n from\n table(generator(rowcount => 100000000))\n )\nselect\n id as height\nfrom\n base\nwhere\n id <= max_height\n$$\n;\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.606078, "supported_languages": null}, "macro.polygon_models.create_blocks_history": {"unique_id": "macro.polygon_models.create_blocks_history", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/streamline/blocks_history.sql", "original_file_path": "macros/streamline/blocks_history.sql", "name": "create_blocks_history", "macro_sql": "{% macro create_blocks_history() %}\n {% set sql %}\n CREATE\n OR REPLACE PROCEDURE streamline.blocks_history() returns variant LANGUAGE SQL AS $$\nDECLARE\n RESULT variant;\nrow_cnt INTEGER;\nBEGIN\n row_cnt:= (\n SELECT\n COUNT(1)\n FROM\n {{ ref('streamline__blocks_history') }}\n );\nif (\n row_cnt > 0\n ) THEN RESULT:= (\n SELECT\n streamline.udf_get_blocks()\n );\n ELSE RESULT:= NULL;\nEND if;\nRETURN RESULT;\nEND;$$ {% endset %}\n{% do run_query(sql) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6064692, "supported_languages": null}, "macro.polygon_models.create_transactions_realtime": {"unique_id": "macro.polygon_models.create_transactions_realtime", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/streamline/transactions_realtime.sql", "original_file_path": "macros/streamline/transactions_realtime.sql", "name": "create_transactions_realtime", "macro_sql": "{% macro create_transactions_realtime() %}\n {% set sql %}\n CREATE\n OR REPLACE PROCEDURE streamline.transactions_realtime() returns variant LANGUAGE SQL AS $$\nDECLARE\n RESULT variant;\nrow_cnt INTEGER;\nBEGIN\n row_cnt:= (\n SELECT\n COUNT(1)\n FROM\n {{ ref('streamline__transactions_realtime') }}\n );\nif (\n row_cnt > 0\n ) THEN RESULT:= (\n SELECT\n streamline.udf_get_transactions()\n );\n ELSE RESULT:= NULL;\nEND if;\nRETURN RESULT;\nEND;$$ {% endset %}\n{% do run_query(sql) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.606869, "supported_languages": null}, "macro.polygon_models.create_transactions_history": {"unique_id": "macro.polygon_models.create_transactions_history", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/streamline/transactions_history.sql", "original_file_path": "macros/streamline/transactions_history.sql", "name": "create_transactions_history", "macro_sql": "{% macro create_transactions_history() %}\n {% set sql %}\n CREATE\n OR REPLACE PROCEDURE streamline.transactions_history() returns variant LANGUAGE SQL AS $$\nDECLARE\n RESULT variant;\nrow_cnt INTEGER;\nBEGIN\n row_cnt:= (\n SELECT\n COUNT(1)\n FROM\n {{ ref('streamline__transactions_history') }}\n );\nif (\n row_cnt > 0\n ) THEN RESULT:= (\n SELECT\n streamline.udf_get_transactions()\n );\n ELSE RESULT:= NULL;\nEND if;\nRETURN RESULT;\nEND;$$ {% endset %}\n{% do run_query(sql) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.607265, "supported_languages": null}, "macro.polygon_models.create_udf_get_chainhead": {"unique_id": "macro.polygon_models.create_udf_get_chainhead", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/streamline/streamline_udfs.sql", "original_file_path": "macros/streamline/streamline_udfs.sql", "name": "create_udf_get_chainhead", "macro_sql": "{% macro create_udf_get_chainhead() %}\n CREATE OR REPLACE EXTERNAL FUNCTION streamline.udf_get_chainhead(\n ) returns variant api_integration = aws_polygon_api AS {% if target.name == \"prod\" %}\n 'https://088pv40k78.execute-api.us-east-1.amazonaws.com/prod/get_chainhead'\n {% else %}\n 'https://ug2z7nx4bi.execute-api.us-east-1.amazonaws.com/dev/get_chainhead'\n {%- endif %};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6078022, "supported_languages": null}, "macro.polygon_models.create_udf_get_blocks": {"unique_id": "macro.polygon_models.create_udf_get_blocks", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/streamline/streamline_udfs.sql", "original_file_path": "macros/streamline/streamline_udfs.sql", "name": "create_udf_get_blocks", "macro_sql": "{% macro create_udf_get_blocks() %}\n CREATE OR REPLACE EXTERNAL FUNCTION streamline.udf_get_blocks(\n json variant\n ) returns text api_integration = aws_polygon_api AS {% if target.name == \"prod\" %}\n 'https://088pv40k78.execute-api.us-east-1.amazonaws.com/prod/bulk_get_blocks'\n {% else %}\n 'https://ug2z7nx4bi.execute-api.us-east-1.amazonaws.com/dev/bulk_get_blocks'\n {%- endif %};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.607977, "supported_languages": null}, "macro.polygon_models.create_udf_get_transactions": {"unique_id": "macro.polygon_models.create_udf_get_transactions", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/streamline/streamline_udfs.sql", "original_file_path": "macros/streamline/streamline_udfs.sql", "name": "create_udf_get_transactions", "macro_sql": "{% macro create_udf_get_transactions() %}\n CREATE OR REPLACE EXTERNAL FUNCTION streamline.udf_get_transactions(\n json variant\n ) returns text api_integration = aws_polygon_api AS {% if target.name == \"prod\" %}\n 'https://088pv40k78.execute-api.us-east-1.amazonaws.com/prod/bulk_get_transactions'\n {% else %}\n 'https://ug2z7nx4bi.execute-api.us-east-1.amazonaws.com/dev/bulk_get_transactions'\n {%- endif %};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.608209, "supported_languages": null}, "macro.polygon_models.create_aws_polygon_api": {"unique_id": "macro.polygon_models.create_aws_polygon_api", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "macros/streamline/api_integrations.sql", "original_file_path": "macros/streamline/api_integrations.sql", "name": "create_aws_polygon_api", "macro_sql": "{% macro create_aws_polygon_api() %}\n {% if target.name == \"prod\" %}\n {% set sql %}\n CREATE api integration IF NOT EXISTS aws_polygon_api api_provider = aws_api_gateway api_aws_role_arn = 'arn:aws:iam::490041342817:role/snowflake-api-polygon' api_allowed_prefixes = (\n 'https://088pv40k78.execute-api.us-east-1.amazonaws.com/prod/',\n 'https://ug2z7nx4bi.execute-api.us-east-1.amazonaws.com/dev/'\n ) enabled = TRUE;\n{% endset %}\n {% do run_query(sql) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.608623, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_catalog": {"unique_id": "macro.dbt_snowflake.snowflake__get_catalog", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "snowflake__get_catalog", "macro_sql": "{% macro snowflake__get_catalog(information_schema, schemas) -%}\n {% set query %}\n with tables as (\n\n select\n table_catalog as \"table_database\",\n table_schema as \"table_schema\",\n table_name as \"table_name\",\n table_type as \"table_type\",\n comment as \"table_comment\",\n\n -- note: this is the _role_ that owns the table\n table_owner as \"table_owner\",\n\n 'Clustering Key' as \"stats:clustering_key:label\",\n clustering_key as \"stats:clustering_key:value\",\n 'The key used to cluster this table' as \"stats:clustering_key:description\",\n (clustering_key is not null) as \"stats:clustering_key:include\",\n\n 'Row Count' as \"stats:row_count:label\",\n row_count as \"stats:row_count:value\",\n 'An approximate count of rows in this table' as \"stats:row_count:description\",\n (row_count is not null) as \"stats:row_count:include\",\n\n 'Approximate Size' as \"stats:bytes:label\",\n bytes as \"stats:bytes:value\",\n 'Approximate size of the table as reported by Snowflake' as \"stats:bytes:description\",\n (bytes is not null) as \"stats:bytes:include\",\n\n 'Last Modified' as \"stats:last_modified:label\",\n to_varchar(convert_timezone('UTC', last_altered), 'yyyy-mm-dd HH24:MI'||'UTC') as \"stats:last_modified:value\",\n 'The timestamp for last update/change' as \"stats:last_modified:description\",\n (last_altered is not null and table_type='BASE TABLE') as \"stats:last_modified:include\"\n\n from {{ information_schema }}.tables\n\n ),\n\n columns as (\n\n select\n table_catalog as \"table_database\",\n table_schema as \"table_schema\",\n table_name as \"table_name\",\n\n column_name as \"column_name\",\n ordinal_position as \"column_index\",\n data_type as \"column_type\",\n comment as \"column_comment\"\n\n from {{ information_schema }}.columns\n )\n\n select *\n from tables\n join columns using (\"table_database\", \"table_schema\", \"table_name\")\n where (\n {%- for schema in schemas -%}\n upper(\"table_schema\") = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n order by \"column_index\"\n {%- endset -%}\n\n {{ return(run_query(query)) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.609549, "supported_languages": null}, "macro.dbt_snowflake.snowflake__create_table_as": {"unique_id": "macro.dbt_snowflake.snowflake__create_table_as", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__create_table_as", "macro_sql": "{% macro snowflake__create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {%- if language == 'sql' -%}\n {%- set transient = config.get('transient', default=true) -%}\n {%- set cluster_by_keys = config.get('cluster_by', default=none) -%}\n {%- set enable_automatic_clustering = config.get('automatic_clustering', default=false) -%}\n {%- set copy_grants = config.get('copy_grants', default=false) -%}\n\n {%- if cluster_by_keys is not none and cluster_by_keys is string -%}\n {%- set cluster_by_keys = [cluster_by_keys] -%}\n {%- endif -%}\n {%- if cluster_by_keys is not none -%}\n {%- set cluster_by_string = cluster_by_keys|join(\", \")-%}\n {% else %}\n {%- set cluster_by_string = none -%}\n {%- endif -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace {% if temporary -%}\n temporary\n {%- elif transient -%}\n transient\n {%- endif %} table {{ relation }} {% if copy_grants and not temporary -%} copy grants {%- endif %} as\n (\n {%- if cluster_by_string is not none -%}\n select * from(\n {{ compiled_code }}\n ) order by ({{ cluster_by_string }})\n {%- else -%}\n {{ compiled_code }}\n {%- endif %}\n );\n {% if cluster_by_string is not none and not temporary -%}\n alter table {{relation}} cluster by ({{cluster_by_string}});\n {%- endif -%}\n {% if enable_automatic_clustering and cluster_by_string is not none and not temporary -%}\n alter table {{relation}} resume recluster;\n {%- endif -%}\n\n {%- elif language == 'python' -%}\n {{ py_write_table(compiled_code=compiled_code, target_relation=relation, temporary=temporary) }}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"snowflake__create_table_as macro didn't get supported language, it got %s\" % language) %}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.py_write_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6218061, "supported_languages": null}, "macro.dbt_snowflake.get_column_comment_sql": {"unique_id": "macro.dbt_snowflake.get_column_comment_sql", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "get_column_comment_sql", "macro_sql": "{% macro get_column_comment_sql(column_name, column_dict) -%}\n {% if (column_name|upper in column_dict) -%}\n {% set matched_column = column_name|upper -%}\n {% elif (column_name|lower in column_dict) -%}\n {% set matched_column = column_name|lower -%}\n {% elif (column_name in column_dict) -%}\n {% set matched_column = column_name -%}\n {% else -%}\n {% set matched_column = None -%}\n {% endif -%}\n {% if matched_column -%}\n {{ adapter.quote(column_name) }} COMMENT $${{ column_dict[matched_column]['description'] | replace('$', '[$]') }}$$\n {%- else -%}\n {{ adapter.quote(column_name) }} COMMENT $$$$\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.622475, "supported_languages": null}, "macro.dbt_snowflake.get_persist_docs_column_list": {"unique_id": "macro.dbt_snowflake.get_persist_docs_column_list", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "get_persist_docs_column_list", "macro_sql": "{% macro get_persist_docs_column_list(model_columns, query_columns) %}\n(\n {% for column_name in query_columns %}\n {{ get_column_comment_sql(column_name, model_columns) }}\n {{- \", \" if not loop.last else \"\" }}\n {% endfor %}\n)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.get_column_comment_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.622747, "supported_languages": null}, "macro.dbt_snowflake.snowflake__create_view_as": {"unique_id": "macro.dbt_snowflake.snowflake__create_view_as", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__create_view_as", "macro_sql": "{% macro snowflake__create_view_as(relation, sql) -%}\n {%- set secure = config.get('secure', default=false) -%}\n {%- set copy_grants = config.get('copy_grants', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create or replace {% if secure -%}\n secure\n {%- endif %} view {{ relation }}\n {% if config.persist_column_docs() -%}\n {% set model_columns = model.columns %}\n {% set query_columns = get_columns_in_query(sql) %}\n {{ get_persist_docs_column_list(model_columns, query_columns) }}\n\n {%- endif %}\n {% if copy_grants -%} copy grants {%- endif %} as (\n {{ sql }}\n );\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query", "macro.dbt_snowflake.get_persist_docs_column_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.623459, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_columns_in_relation": {"unique_id": "macro.dbt_snowflake.snowflake__get_columns_in_relation", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__get_columns_in_relation", "macro_sql": "{% macro snowflake__get_columns_in_relation(relation) -%}\n {%- set sql -%}\n describe table {{ relation }}\n {%- endset -%}\n {%- set result = run_query(sql) -%}\n\n {% set maximum = 10000 %}\n {% if (result | length) >= maximum %}\n {% set msg %}\n Too many columns in relation {{ relation }}! dbt can only get\n information about relations with fewer than {{ maximum }} columns.\n {% endset %}\n {% do exceptions.raise_compiler_error(msg) %}\n {% endif %}\n\n {% set columns = [] %}\n {% for row in result %}\n {% do columns.append(api.Column.from_description(row['name'], row['type'])) %}\n {% endfor %}\n {% do return(columns) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6241899, "supported_languages": null}, "macro.dbt_snowflake.snowflake__list_schemas": {"unique_id": "macro.dbt_snowflake.snowflake__list_schemas", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__list_schemas", "macro_sql": "{% macro snowflake__list_schemas(database) -%}\n {# 10k limit from here: https://docs.snowflake.net/manuals/sql-reference/sql/show-schemas.html#usage-notes #}\n {% set maximum = 10000 %}\n {% set sql -%}\n show terse schemas in database {{ database }}\n limit {{ maximum }}\n {%- endset %}\n {% set result = run_query(sql) %}\n {% if (result | length) >= maximum %}\n {% set msg %}\n Too many schemas in database {{ database }}! dbt can only get\n information about databases with fewer than {{ maximum }} schemas.\n {% endset %}\n {% do exceptions.raise_compiler_error(msg) %}\n {% endif %}\n {{ return(result) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.624703, "supported_languages": null}, "macro.dbt_snowflake.snowflake__list_relations_without_caching": {"unique_id": "macro.dbt_snowflake.snowflake__list_relations_without_caching", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__list_relations_without_caching", "macro_sql": "{% macro snowflake__list_relations_without_caching(schema_relation) %}\n {%- set sql -%}\n show terse objects in {{ schema_relation }}\n {%- endset -%}\n\n {%- set result = run_query(sql) -%}\n {% set maximum = 10000 %}\n {% if (result | length) >= maximum %}\n {% set msg %}\n Too many schemas in schema {{ schema_relation }}! dbt can only get\n information about schemas with fewer than {{ maximum }} objects.\n {% endset %}\n {% do exceptions.raise_compiler_error(msg) %}\n {% endif %}\n {%- do return(result) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6251898, "supported_languages": null}, "macro.dbt_snowflake.snowflake__check_schema_exists": {"unique_id": "macro.dbt_snowflake.snowflake__check_schema_exists", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__check_schema_exists", "macro_sql": "{% macro snowflake__check_schema_exists(information_schema, schema) -%}\n {% call statement('check_schema_exists', fetch_result=True) -%}\n select count(*)\n from {{ information_schema }}.schemata\n where upper(schema_name) = upper('{{ schema }}')\n and upper(catalog_name) = upper('{{ information_schema.database }}')\n {%- endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.625504, "supported_languages": null}, "macro.dbt_snowflake.snowflake__rename_relation": {"unique_id": "macro.dbt_snowflake.snowflake__rename_relation", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__rename_relation", "macro_sql": "{% macro snowflake__rename_relation(from_relation, to_relation) -%}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ to_relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6256871, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_column_type": {"unique_id": "macro.dbt_snowflake.snowflake__alter_column_type", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__alter_column_type", "macro_sql": "{% macro snowflake__alter_column_type(relation, column_name, new_column_type) -%}\n {% call statement('alter_column_type') %}\n alter table {{ relation }} alter {{ adapter.quote(column_name) }} set data type {{ new_column_type }};\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.625921, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_relation_comment": {"unique_id": "macro.dbt_snowflake.snowflake__alter_relation_comment", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__alter_relation_comment", "macro_sql": "{% macro snowflake__alter_relation_comment(relation, relation_comment) -%}\n comment on {{ relation.type }} {{ relation }} IS $${{ relation_comment | replace('$', '[$]') }}$$;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.626113, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_column_comment": {"unique_id": "macro.dbt_snowflake.snowflake__alter_column_comment", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__alter_column_comment", "macro_sql": "{% macro snowflake__alter_column_comment(relation, column_dict) -%}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n alter {{ relation.type }} {{ relation }} alter\n {% for column_name in existing_columns if (column_name in existing_columns) or (column_name|lower in existing_columns) %}\n {{ get_column_comment_sql(column_name, column_dict) }} {{- ',' if not loop.last else ';' }}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.get_column_comment_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.626601, "supported_languages": null}, "macro.dbt_snowflake.get_current_query_tag": {"unique_id": "macro.dbt_snowflake.get_current_query_tag", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "get_current_query_tag", "macro_sql": "{% macro get_current_query_tag() -%}\n {{ return(run_query(\"show parameters like 'query_tag' in session\").rows[0]['value']) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.626776, "supported_languages": null}, "macro.dbt_snowflake.set_query_tag": {"unique_id": "macro.dbt_snowflake.set_query_tag", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "set_query_tag", "macro_sql": "{% macro set_query_tag() -%}\n {{ return(adapter.dispatch('set_query_tag', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__set_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.626932, "supported_languages": null}, "macro.dbt_snowflake.snowflake__set_query_tag": {"unique_id": "macro.dbt_snowflake.snowflake__set_query_tag", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__set_query_tag", "macro_sql": "{% macro snowflake__set_query_tag() -%}\n {% set new_query_tag = config.get('query_tag') %}\n {% if new_query_tag %}\n {% set original_query_tag = get_current_query_tag() %}\n {{ log(\"Setting query_tag to '\" ~ new_query_tag ~ \"'. Will reset to '\" ~ original_query_tag ~ \"' after materialization.\") }}\n {% do run_query(\"alter session set query_tag = '{}'\".format(new_query_tag)) %}\n {{ return(original_query_tag)}}\n {% endif %}\n {{ return(none)}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.get_current_query_tag", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.627553, "supported_languages": null}, "macro.dbt_snowflake.unset_query_tag": {"unique_id": "macro.dbt_snowflake.unset_query_tag", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "unset_query_tag", "macro_sql": "{% macro unset_query_tag(original_query_tag) -%}\n {{ return(adapter.dispatch('unset_query_tag', 'dbt')(original_query_tag)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.62773, "supported_languages": null}, "macro.dbt_snowflake.snowflake__unset_query_tag": {"unique_id": "macro.dbt_snowflake.snowflake__unset_query_tag", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__unset_query_tag", "macro_sql": "{% macro snowflake__unset_query_tag(original_query_tag) -%}\n {% set new_query_tag = config.get('query_tag') %}\n {% if new_query_tag %}\n {% if original_query_tag %}\n {{ log(\"Resetting query_tag to '\" ~ original_query_tag ~ \"'.\") }}\n {% do run_query(\"alter session set query_tag = '{}'\".format(original_query_tag)) %}\n {% else %}\n {{ log(\"No original query_tag, unsetting parameter.\") }}\n {% do run_query(\"alter session unset query_tag\") %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.628188, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_relation_add_remove_columns": {"unique_id": "macro.dbt_snowflake.snowflake__alter_relation_add_remove_columns", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__alter_relation_add_remove_columns", "macro_sql": "{% macro snowflake__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns %}\n\n {% set sql -%}\n alter {{ relation.type }} {{ relation }} add column\n {% for column in add_columns %}\n {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n {% endif %}\n\n {% if remove_columns %}\n\n {% set sql -%}\n alter {{ relation.type }} {{ relation }} drop column\n {% for column in remove_columns %}\n {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.628896, "supported_languages": null}, "macro.dbt_snowflake.snowflake_dml_explicit_transaction": {"unique_id": "macro.dbt_snowflake.snowflake_dml_explicit_transaction", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake_dml_explicit_transaction", "macro_sql": "{% macro snowflake_dml_explicit_transaction(dml) %}\n {#\n Use this macro to wrap all INSERT, MERGE, UPDATE, DELETE, and TRUNCATE\n statements before passing them into run_query(), or calling in the 'main' statement\n of a materialization\n #}\n {% set dml_transaction -%}\n begin;\n {{ dml }};\n commit;\n {%- endset %}\n\n {% do return(dml_transaction) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.629101, "supported_languages": null}, "macro.dbt_snowflake.snowflake__truncate_relation": {"unique_id": "macro.dbt_snowflake.snowflake__truncate_relation", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__truncate_relation", "macro_sql": "{% macro snowflake__truncate_relation(relation) -%}\n {% set truncate_dml %}\n truncate table {{ relation }}\n {% endset %}\n {% call statement('truncate_relation') -%}\n {{ snowflake_dml_explicit_transaction(truncate_dml) }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.629339, "supported_languages": null}, "macro.dbt_snowflake.snowflake__copy_grants": {"unique_id": "macro.dbt_snowflake.snowflake__copy_grants", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/apply_grants.sql", "original_file_path": "macros/apply_grants.sql", "name": "snowflake__copy_grants", "macro_sql": "{% macro snowflake__copy_grants() %}\n {% set copy_grants = config.get('copy_grants', False) %}\n {{ return(copy_grants) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6296792, "supported_languages": null}, "macro.dbt_snowflake.snowflake__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt_snowflake.snowflake__support_multiple_grantees_per_dcl_statement", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/apply_grants.sql", "original_file_path": "macros/apply_grants.sql", "name": "snowflake__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro snowflake__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(False) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.629786, "supported_languages": null}, "macro.dbt_snowflake.materialization_test_snowflake": {"unique_id": "macro.dbt_snowflake.materialization_test_snowflake", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/materializations/test.sql", "original_file_path": "macros/materializations/test.sql", "name": "materialization_test_snowflake", "macro_sql": "{%- materialization test, adapter='snowflake' -%}\n\n {% set original_query_tag = set_query_tag() %}\n {% set relations = materialization_test_default() %}\n {% do unset_query_tag(original_query_tag) %}\n {{ return(relations) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.materialization_test_default", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6301792, "supported_languages": ["sql"]}, "macro.dbt_snowflake.snowflake__get_merge_sql": {"unique_id": "macro.dbt_snowflake.snowflake__get_merge_sql", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/materializations/merge.sql", "original_file_path": "macros/materializations/merge.sql", "name": "snowflake__get_merge_sql", "macro_sql": "{% macro snowflake__get_merge_sql(target, source_sql, unique_key, dest_columns, predicates) -%}\n\n {#\n Workaround for Snowflake not being happy with a merge on a constant-false predicate.\n When no unique_key is provided, this macro will do a regular insert. If a unique_key\n is provided, then this macro will do a proper merge instead.\n #}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute='name')) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {%- set dml -%}\n {%- if unique_key is none -%}\n\n {{ sql_header if sql_header is not none }}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source_sql }}\n )\n\n {%- else -%}\n\n {{ default__get_merge_sql(target, source_sql, unique_key, dest_columns, predicates) }}\n\n {%- endif -%}\n {%- endset -%}\n\n {% do return(snowflake_dml_explicit_transaction(dml)) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.default__get_merge_sql", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.631368, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_delete_insert_merge_sql": {"unique_id": "macro.dbt_snowflake.snowflake__get_delete_insert_merge_sql", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/materializations/merge.sql", "original_file_path": "macros/materializations/merge.sql", "name": "snowflake__get_delete_insert_merge_sql", "macro_sql": "{% macro snowflake__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) %}\n {% set dml = default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) %}\n {% do return(snowflake_dml_explicit_transaction(dml)) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.63164, "supported_languages": null}, "macro.dbt_snowflake.snowflake__snapshot_merge_sql": {"unique_id": "macro.dbt_snowflake.snowflake__snapshot_merge_sql", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/materializations/merge.sql", "original_file_path": "macros/materializations/merge.sql", "name": "snowflake__snapshot_merge_sql", "macro_sql": "{% macro snowflake__snapshot_merge_sql(target, source, insert_cols) %}\n {% set dml = default__snapshot_merge_sql(target, source, insert_cols) %}\n {% do return(snowflake_dml_explicit_transaction(dml)) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_merge_sql", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.631884, "supported_languages": null}, "macro.dbt_snowflake.snowflake__load_csv_rows": {"unique_id": "macro.dbt_snowflake.snowflake__load_csv_rows", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "snowflake__load_csv_rows", "macro_sql": "{% macro snowflake__load_csv_rows(model, agate_table) %}\n {% set batch_size = get_batch_size() %}\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n %s\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query('BEGIN', auto_begin=False) %}\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n {% do adapter.add_query('COMMIT', auto_begin=False) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.633944, "supported_languages": null}, "macro.dbt_snowflake.materialization_seed_snowflake": {"unique_id": "macro.dbt_snowflake.materialization_seed_snowflake", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "materialization_seed_snowflake", "macro_sql": "{% materialization seed, adapter='snowflake' %}\n {% set original_query_tag = set_query_tag() %}\n\n {% set relations = materialization_seed_default() %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {{ return(relations) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.materialization_seed_default", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.634228, "supported_languages": ["sql"]}, "macro.dbt_snowflake.materialization_view_snowflake": {"unique_id": "macro.dbt_snowflake.materialization_view_snowflake", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "name": "materialization_view_snowflake", "macro_sql": "{% materialization view, adapter='snowflake' -%}\n\n {% set original_query_tag = set_query_tag() %}\n {% set to_return = create_or_replace_view() %}\n\n {% set target_relation = this.incorporate(type='view') %}\n\n {% do persist_docs(target_relation, model, for_columns=false) %}\n\n {% do return(to_return) %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.create_or_replace_view", "macro.dbt.persist_docs", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.634804, "supported_languages": ["sql"]}, "macro.dbt_snowflake.materialization_table_snowflake": {"unique_id": "macro.dbt_snowflake.materialization_table_snowflake", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "materialization_table_snowflake", "macro_sql": "{% materialization table, adapter='snowflake', supported_languages=['sql', 'python']%}\n\n {% set original_query_tag = set_query_tag() %}\n\n {%- set identifier = model['alias'] -%}\n {%- set language = model['language'] -%}\n\n {% set grant_config = config.get('grants') %}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier,\n schema=schema,\n database=database, type='table') -%}\n\n {{ run_hooks(pre_hooks) }}\n\n {#-- Drop the relation if it was a view to \"convert\" it in a table. This may lead to\n -- downtime, but it should be a relatively infrequent occurrence #}\n {% if old_relation is not none and not old_relation.is_table %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ drop_relation_if_exists(old_relation) }}\n {% endif %}\n\n {% call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.637106, "supported_languages": ["sql", "python"]}, "macro.dbt_snowflake.py_write_table": {"unique_id": "macro.dbt_snowflake.py_write_table", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "py_write_table", "macro_sql": "{% macro py_write_table(compiled_code, target_relation, temporary=False) %}\n{{ compiled_code }}\ndef materialize(session, df, target_relation):\n # make sure pandas exists\n import importlib.util\n package_name = 'pandas'\n if importlib.util.find_spec(package_name):\n import pandas\n if isinstance(df, pandas.core.frame.DataFrame):\n # session.write_pandas does not have overwrite function\n df = session.createDataFrame(df)\n df.write.mode(\"overwrite\").save_as_table(\"{{ target_relation }}\", create_temp_table={{temporary}})\n\ndef main(session):\n dbt = dbtObj(session.table)\n df = model(dbt, session)\n materialize(session, df, dbt.this)\n return \"OK\"\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.637385, "supported_languages": null}, "macro.dbt_snowflake.py_script_comment": {"unique_id": "macro.dbt_snowflake.py_script_comment", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n# To run this in snowsight, you need to select entry point to be main\n# And you may have to modify the return type to text to get the result back\n# def main(session):\n# dbt = dbtObj(session.table)\n# df = model(dbt, session)\n# return df.collect()\n\n# to run this in local notebook, you need to create a session following examples https://github.com/Snowflake-Labs/sfguide-getting-started-snowpark-python\n# then you can do the following to run model\n# dbt = dbtObj(session.table)\n# df = model(dbt, session)\n{%endmacro%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6374788, "supported_languages": null}, "macro.dbt_snowflake.dbt_snowflake_get_tmp_relation_type": {"unique_id": "macro.dbt_snowflake.dbt_snowflake_get_tmp_relation_type", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "dbt_snowflake_get_tmp_relation_type", "macro_sql": "{% macro dbt_snowflake_get_tmp_relation_type(strategy, unique_key, language) %}\n\n /* {#\n If we are running multiple statements (DELETE + INSERT),\n we must first save the model query results as a temporary table\n in order to guarantee consistent inputs to both statements.\n\n If we are running a single statement (MERGE or INSERT alone),\n we can save the model query definition as a view instead,\n for faster overall incremental processing.\n #} */\n\n {% if language == 'sql' and (strategy in ('default', 'append', 'merge') or (unique_key is none)) %}\n {{ return('view') }}\n {% else %} {#-- play it safe -- #}\n {{ return('table') }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6388228, "supported_languages": null}, "macro.dbt_snowflake.materialization_incremental_snowflake": {"unique_id": "macro.dbt_snowflake.materialization_incremental_snowflake", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "materialization_incremental_snowflake", "macro_sql": "{% materialization incremental, adapter='snowflake', supported_languages=['sql', 'python'] -%}\n\n {% set original_query_tag = set_query_tag() %}\n\n {#-- Set vars --#}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n {%- set language = model['language'] -%}\n {% set target_relation = this %}\n {% set existing_relation = load_relation(this) %}\n\n {#-- The temp relation will be a view (faster) or temp table, depending on upsert/merge strategy --#}\n {%- set unique_key = config.get('unique_key') -%}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set tmp_relation_type = dbt_snowflake_get_tmp_relation_type(incremental_strategy, unique_key, language) %}\n {% set tmp_relation = make_temp_relation(this).incorporate(type=tmp_relation_type) %}\n\n {% set grant_config = config.get('grants') %}\n\n {% set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') %}\n\n {{ run_hooks(pre_hooks) }}\n\n {% if existing_relation is none %}\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% elif existing_relation.is_view %}\n {#-- Can't overwrite a view with a table - we must drop --#}\n {{ log(\"Dropping relation \" ~ target_relation ~ \" because it is a view and this model is a table.\") }}\n {% do adapter.drop_relation(existing_relation) %}\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n {% elif full_refresh_mode %}\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% else %}\n {#-- Create the temp relation, either as a view or as a temp table --#}\n {% if tmp_relation_type == 'view' %}\n {%- call statement('create_tmp_relation') -%}\n {{ create_view_as(tmp_relation, compiled_code) }}\n {%- endcall -%}\n {% else %}\n {%- call statement('create_tmp_relation', language=language) -%}\n {{ create_table_as(True, tmp_relation, compiled_code, language) }}\n {%- endcall -%}\n {% endif %}\n\n {% do adapter.expand_target_column_types(\n from_relation=tmp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, tmp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_predicates = config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': tmp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'predicates': incremental_predicates }) %}\n\n {%- call statement('main') -%}\n {{ strategy_sql_macro_func(strategy_arg_dict) }}\n {%- endcall -%}\n {% endif %}\n\n {% do drop_relation_if_exists(tmp_relation) %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set target_relation = target_relation.incorporate(type='table') %}\n\n {% set should_revoke =\n should_revoke(existing_relation.is_table, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.should_full_refresh", "macro.dbt.load_relation", "macro.dbt_snowflake.dbt_snowflake_get_tmp_relation_type", "macro.dbt.make_temp_relation", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.create_view_as", "macro.dbt.process_schema_changes", "macro.dbt.drop_relation_if_exists", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6419342, "supported_languages": ["sql", "python"]}, "macro.dbt_snowflake.snowflake__get_incremental_default_sql": {"unique_id": "macro.dbt_snowflake.snowflake__get_incremental_default_sql", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "snowflake__get_incremental_default_sql", "macro_sql": "{% macro snowflake__get_incremental_default_sql(arg_dict) %}\n {{ return(get_incremental_merge_sql(arg_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.642096, "supported_languages": null}, "macro.dbt_snowflake.materialization_snapshot_snowflake": {"unique_id": "macro.dbt_snowflake.materialization_snapshot_snowflake", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "materialization_snapshot_snowflake", "macro_sql": "{% materialization snapshot, adapter='snowflake' %}\n {% set original_query_tag = set_query_tag() %}\n {% set relations = materialization_snapshot_default() %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {{ return(relations) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.materialization_snapshot_default", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.642508, "supported_languages": ["sql"]}, "macro.dbt_snowflake.snowflake__current_timestamp": {"unique_id": "macro.dbt_snowflake.snowflake__current_timestamp", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "name": "snowflake__current_timestamp", "macro_sql": "{% macro snowflake__current_timestamp() -%}\n convert_timezone('UTC', current_timestamp())\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6428318, "supported_languages": null}, "macro.dbt_snowflake.snowflake__snapshot_string_as_time": {"unique_id": "macro.dbt_snowflake.snowflake__snapshot_string_as_time", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "name": "snowflake__snapshot_string_as_time", "macro_sql": "{% macro snowflake__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"to_timestamp_ntz('\" ~ timestamp ~ \"')\" -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.643004, "supported_languages": null}, "macro.dbt_snowflake.snowflake__snapshot_get_time": {"unique_id": "macro.dbt_snowflake.snowflake__snapshot_get_time", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "name": "snowflake__snapshot_get_time", "macro_sql": "{% macro snowflake__snapshot_get_time() -%}\n to_timestamp_ntz({{ current_timestamp() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.643105, "supported_languages": null}, "macro.dbt_snowflake.snowflake__current_timestamp_backcompat": {"unique_id": "macro.dbt_snowflake.snowflake__current_timestamp_backcompat", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "name": "snowflake__current_timestamp_backcompat", "macro_sql": "{% macro snowflake__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6432068, "supported_languages": null}, "macro.dbt_snowflake.snowflake__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt_snowflake.snowflake__current_timestamp_in_utc_backcompat", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "name": "snowflake__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro snowflake__current_timestamp_in_utc_backcompat() %}\n convert_timezone('UTC', {{ snowflake__current_timestamp_backcompat() }})::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp_backcompat", "macro.dbt_expectations.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.643337, "supported_languages": null}, "macro.dbt_snowflake.snowflake__escape_single_quotes": {"unique_id": "macro.dbt_snowflake.snowflake__escape_single_quotes", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "snowflake__escape_single_quotes", "macro_sql": "{% macro snowflake__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.64358, "supported_languages": null}, "macro.dbt_snowflake.snowflake__right": {"unique_id": "macro.dbt_snowflake.snowflake__right", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "snowflake__right", "macro_sql": "{% macro snowflake__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0\n then ''\n else\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n end\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.643859, "supported_languages": null}, "macro.dbt_snowflake.snowflake__safe_cast": {"unique_id": "macro.dbt_snowflake.snowflake__safe_cast", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "snowflake__safe_cast", "macro_sql": "{% macro snowflake__safe_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.644075, "supported_languages": null}, "macro.dbt_snowflake.snowflake__bool_or": {"unique_id": "macro.dbt_snowflake.snowflake__bool_or", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "snowflake__bool_or", "macro_sql": "{% macro snowflake__bool_or(expression) -%}\n\n boolor_agg({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6442611, "supported_languages": null}, "macro.dbt_snowflake.snowflake__array_construct": {"unique_id": "macro.dbt_snowflake.snowflake__array_construct", "package_name": "dbt_snowflake", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/snowflake", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "snowflake__array_construct", "macro_sql": "{% macro snowflake__array_construct(inputs, data_type) -%}\n array_construct( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.644487, "supported_languages": null}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6455522, "supported_languages": null}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.645738, "supported_languages": null}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6458728, "supported_languages": null}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.646006, "supported_languages": null}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.646143, "supported_languages": null}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.646552, "supported_languages": null}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.646838, "supported_languages": null}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.647191, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.647657, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.647917, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6511161, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.651278, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.651489, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6521752, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.652333, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6524959, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n select {{ check_cols_config | join(', ') }} from ({{ node['compiled_code'] }}) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.653813, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.655113, "supported_languages": null}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.658796, "supported_languages": null}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.659071, "supported_languages": null}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.659234, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.659317, "supported_languages": null}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.659455, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.659565, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6597602, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.660597, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.660779, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.661023, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.661432, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "name": "materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.667117, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "name": "materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.669097, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.66959, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.669881, "supported_languages": null}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6702862, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.670649, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.672134, "supported_languages": null}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.672662, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6733031, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"unique_id": "macro.dbt.get_merge_update_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6735291, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"unique_id": "macro.dbt.default__get_merge_update_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.674212, "supported_languages": null}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.678303, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{ predicates | join(' and ') }}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.67985, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6800792, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last }}\n {% endfor %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.680789, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.681045, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.681663, "supported_languages": null}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "name": "is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.682335, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"unique_id": "macro.dbt.get_incremental_append_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6831958, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"unique_id": "macro.dbt.default__get_incremental_append_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.68343, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.683609, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.68386, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"unique_id": "macro.dbt.get_incremental_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.684033, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"unique_id": "macro.dbt.default__get_incremental_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.684289, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.684469, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"predicates\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.684725, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"unique_id": "macro.dbt.get_incremental_default_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6849, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"unique_id": "macro.dbt.default__get_incremental_default_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.685045, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"unique_id": "macro.dbt.get_insert_into_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.685336, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6900082, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.694965, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.696123, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.6972659, "supported_languages": null}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.698071, "supported_languages": null}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7005188, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.70105, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.701231, "supported_languages": null}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.701639, "supported_languages": null}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7020302, "supported_languages": null}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.704483, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7048278, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.705038, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=True) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7064981, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.706892, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.707045, "supported_languages": null}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.707217, "supported_languages": null}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7074602, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "name": "materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparision later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7105658, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.714987, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.715837, "supported_languages": null}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.716059, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.716515, "supported_languages": null}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.716699, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.716822, "supported_languages": null}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.716953, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.71706, "supported_languages": null}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7172081, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.71732, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.717768, "supported_languages": null}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7179441, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.719151, "supported_languages": null}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.719577, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.719796, "supported_languages": null}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.720342, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.720591, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.720865, "supported_languages": null}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.721291, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.721529, "supported_languages": null}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7219179, "supported_languages": null}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.722257, "supported_languages": null}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.722547, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.723135, "supported_languages": null}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.724573, "supported_languages": null}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.72518, "supported_languages": null}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.725457, "supported_languages": null}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7271528, "supported_languages": null}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7282891, "supported_languages": null}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7290082, "supported_languages": null}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.729231, "supported_languages": null}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.729509, "supported_languages": null}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.72958, "supported_languages": null}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.72995, "supported_languages": null}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7301068, "supported_languages": null}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7303958, "supported_languages": null}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.730516, "supported_languages": null}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7308202, "supported_languages": null}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.730922, "supported_languages": null}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.731297, "supported_languages": null}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7314491, "supported_languages": null}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.731721, "supported_languages": null}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7317939, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.732102, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.732239, "supported_languages": null}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.732575, "supported_languages": null}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.73277, "supported_languages": null}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.733411, "supported_languages": null}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.733793, "supported_languages": null}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.734163, "supported_languages": null}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7343202, "supported_languages": null}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.734646, "supported_languages": null}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.734779, "supported_languages": null}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.73508, "supported_languages": null}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.735232, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.735519, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.735678, "supported_languages": null}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7359738, "supported_languages": null}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.736073, "supported_languages": null}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.736404, "supported_languages": null}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.736539, "supported_languages": null}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.736824, "supported_languages": null}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.73692, "supported_languages": null}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.737835, "supported_languages": null}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7379782, "supported_languages": null}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.738305, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.738452, "supported_languages": null}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7386088, "supported_languages": null}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.738752, "supported_languages": null}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.738902, "supported_languages": null}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.739071, "supported_languages": null}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.739223, "supported_languages": null}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7393658, "supported_languages": null}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.739519, "supported_languages": null}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.739659, "supported_languages": null}, "macro.dbt.type_boolean": {"unique_id": "macro.dbt.type_boolean", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7398121, "supported_languages": null}, "macro.dbt.default__type_boolean": {"unique_id": "macro.dbt.default__type_boolean", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.739947, "supported_languages": null}, "macro.dbt.array_concat": {"unique_id": "macro.dbt.array_concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7402759, "supported_languages": null}, "macro.dbt.default__array_concat": {"unique_id": "macro.dbt.default__array_concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.740405, "supported_languages": null}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7406988, "supported_languages": null}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.740797, "supported_languages": null}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.741177, "supported_languages": null}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.741434, "supported_languages": null}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.741578, "supported_languages": null}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.742118, "supported_languages": null}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.742274, "supported_languages": null}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "_split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7425559, "supported_languages": null}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.742878, "supported_languages": null}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.743, "supported_languages": null}, "macro.dbt.array_construct": {"unique_id": "macro.dbt.array_construct", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.743428, "supported_languages": null}, "macro.dbt.default__array_construct": {"unique_id": "macro.dbt.default__array_construct", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.743664, "supported_languages": null}, "macro.dbt.array_append": {"unique_id": "macro.dbt.array_append", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7439868, "supported_languages": null}, "macro.dbt.default__array_append": {"unique_id": "macro.dbt.default__array_append", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.744112, "supported_languages": null}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7445161, "supported_languages": null}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.74469, "supported_languages": null}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.744844, "supported_languages": null}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.745019, "supported_languages": null}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7455292, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7456708, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.745805, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7459068, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"unique_id": "macro.dbt.current_timestamp_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.746064, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7461371, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.746294, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_snowflake.snowflake__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7464561, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7469382, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7471302, "supported_languages": null}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.747282, "supported_languages": null}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.747665, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7506611, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.750824, "supported_languages": null}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.751034, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.751313, "supported_languages": null}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7515469, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.75186, "supported_languages": null}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.752037, "supported_languages": null}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.752238, "supported_languages": null}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.752413, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.752564, "supported_languages": null}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.752757, "supported_languages": null}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.753025, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.753263, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.753794, "supported_languages": null}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.754068, "supported_languages": null}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.754205, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.754391, "supported_languages": null}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.754847, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7552419, "supported_languages": null}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.756841, "supported_languages": null}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.756951, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7571058, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.757215, "supported_languages": null}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.757542, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7577229, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7578182, "supported_languages": null}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7580328, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.758212, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7584288, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7586079, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.758823, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7594602, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7596989, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.759936, "supported_languages": null}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.760155, "supported_languages": null}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7612329, "supported_languages": null}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.761924, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7620878, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.762285, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.762444, "supported_languages": null}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.762696, "supported_languages": null}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.76315, "supported_languages": null}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.764538, "supported_languages": null}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7647831, "supported_languages": null}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.764961, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.765106, "supported_languages": null}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7652779, "supported_languages": null}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7655182, "supported_languages": null}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.765714, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7659981, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.766172, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.766325, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.767918, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7681322, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.768424, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7686, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.768922, "supported_languages": null}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7691462, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.769713, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.769957, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7707, "supported_languages": null}, "macro.dbt.build_ref_function": {"unique_id": "macro.dbt.build_ref_function", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {%- set resolved = ref(*_ref) -%}\n {%- do ref_dict.update({_ref | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef ref(*args,dbt_load_df_function):\n refs = {{ ref_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.772117, "supported_languages": null}, "macro.dbt.build_source_function": {"unique_id": "macro.dbt.build_source_function", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7725801, "supported_languages": null}, "macro.dbt.build_config_dict": {"unique_id": "macro.dbt.build_config_dict", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {%- for key in model.config.config_keys_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == 'language' -%}\n {%- set value = 'python' -%}\n {%- endif -%}\n {%- set value = model.config[key] -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.773012, "supported_languages": null}, "macro.dbt.py_script_postfix": {"unique_id": "macro.dbt.py_script_postfix", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = '{{ this.database }}'\n schema = '{{ this.schema }}'\n identifier = '{{ this.identifier }}'\n def __repr__(self):\n return '{{ this }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args: ref(*args, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.773404, "supported_languages": null}, "macro.dbt.py_script_comment": {"unique_id": "macro.dbt.py_script_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.773474, "supported_languages": null}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.774007, "supported_languages": null}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.77423, "supported_languages": null}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.774504, "supported_languages": null}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.774764, "supported_languages": null}, "macro.dbt_utils.cast_array_to_string": {"unique_id": "macro.dbt_utils.cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "cast_array_to_string", "macro_sql": "{% macro cast_array_to_string(array) %}\n {% do dbt_utils.xdb_deprecation_warning_without_replacement('cast_array_to_string', model.package_name, model.name) %}\n {{ adapter.dispatch('cast_array_to_string', 'dbt_utils') (array) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning_without_replacement", "macro.dbt_utils.default__cast_array_to_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.775305, "supported_languages": null}, "macro.dbt_utils.default__cast_array_to_string": {"unique_id": "macro.dbt_utils.default__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "default__cast_array_to_string", "macro_sql": "{% macro default__cast_array_to_string(array) %}\n cast({{ array }} as {{ type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.775437, "supported_languages": null}, "macro.dbt_utils.postgres__cast_array_to_string": {"unique_id": "macro.dbt_utils.postgres__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "postgres__cast_array_to_string", "macro_sql": "{% macro postgres__cast_array_to_string(array) %}\n {%- set array_as_string -%}cast({{ array }} as {{ type_string() }}){%- endset -%}\n {{ replace(replace(array_as_string,\"'}'\",\"']'\"),\"'{'\",\"'['\") }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.775701, "supported_languages": null}, "macro.dbt_utils.redshift__cast_array_to_string": {"unique_id": "macro.dbt_utils.redshift__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "redshift__cast_array_to_string", "macro_sql": "{% macro redshift__cast_array_to_string(array) %}\n cast({{ array }} as {{ type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7758238, "supported_languages": null}, "macro.dbt_utils.bigquery__cast_array_to_string": {"unique_id": "macro.dbt_utils.bigquery__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "bigquery__cast_array_to_string", "macro_sql": "{% macro bigquery__cast_array_to_string(array) %}\n '['||(select string_agg(cast(element as string), ',') from unnest({{ array }}) element)||']'\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.775983, "supported_languages": null}, "macro.dbt_utils.current_timestamp": {"unique_id": "macro.dbt_utils.current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {% do dbt_utils.xdb_deprecation_warning_without_replacement('current_timestamp', model.package_name, model.name) %}\n {{ return(adapter.dispatch('current_timestamp', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning_without_replacement", "macro.dbt_utils.default__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.776706, "supported_languages": null}, "macro.dbt_utils.default__current_timestamp": {"unique_id": "macro.dbt_utils.default__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.77681, "supported_languages": null}, "macro.dbt_utils.redshift__current_timestamp": {"unique_id": "macro.dbt_utils.redshift__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp", "macro_sql": "{% macro redshift__current_timestamp() %}\n getdate()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7768772, "supported_languages": null}, "macro.dbt_utils.bigquery__current_timestamp": {"unique_id": "macro.dbt_utils.bigquery__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() %}\n current_timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7769458, "supported_languages": null}, "macro.dbt_utils.current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp_in_utc", "macro_sql": "{% macro current_timestamp_in_utc() -%}\n {% do dbt_utils.xdb_deprecation_warning_without_replacement('current_timestamp_in_utc', model.package_name, model.name) %}\n {{ return(adapter.dispatch('current_timestamp_in_utc', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning_without_replacement", "macro.dbt_utils.snowflake__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.777191, "supported_languages": null}, "macro.dbt_utils.default__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.default__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp_in_utc", "macro_sql": "{% macro default__current_timestamp_in_utc() %}\n {{ dbt_utils.current_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.777301, "supported_languages": null}, "macro.dbt_utils.snowflake__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.snowflake__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "snowflake__current_timestamp_in_utc", "macro_sql": "{% macro snowflake__current_timestamp_in_utc() %}\n convert_timezone('UTC', {{ dbt_utils.current_timestamp() }})::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.777434, "supported_languages": null}, "macro.dbt_utils.postgres__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.postgres__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "postgres__current_timestamp_in_utc", "macro_sql": "{% macro postgres__current_timestamp_in_utc() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7775319, "supported_languages": null}, "macro.dbt_utils.redshift__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.redshift__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp_in_utc", "macro_sql": "{% macro redshift__current_timestamp_in_utc() %}\n {{ return(dbt_utils.default__current_timestamp_in_utc()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7776551, "supported_languages": null}, "macro.dbt_utils.array_concat": {"unique_id": "macro.dbt_utils.array_concat", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {% do dbt_utils.xdb_deprecation_warning_without_replacement('array_concat', model.package_name, model.name) %}\n {{ return(adapter.dispatch('array_concat', 'dbt_utils')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning_without_replacement", "macro.dbt_utils.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.778173, "supported_languages": null}, "macro.dbt_utils.default__array_concat": {"unique_id": "macro.dbt_utils.default__array_concat", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7782972, "supported_languages": null}, "macro.dbt_utils.bigquery__array_concat": {"unique_id": "macro.dbt_utils.bigquery__array_concat", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "bigquery__array_concat", "macro_sql": "{% macro bigquery__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.77842, "supported_languages": null}, "macro.dbt_utils.redshift__array_concat": {"unique_id": "macro.dbt_utils.redshift__array_concat", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "redshift__array_concat", "macro_sql": "{% macro redshift__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.778539, "supported_languages": null}, "macro.dbt_utils.array_construct": {"unique_id": "macro.dbt_utils.array_construct", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs = [], data_type = api.Column.translate_type('integer')) -%}\n {% do dbt_utils.xdb_deprecation_warning_without_replacement('array_construct', model.package_name, model.name) %}\n {{ return(adapter.dispatch('array_construct', 'dbt_utils')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning_without_replacement", "macro.dbt_utils.snowflake__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.77918, "supported_languages": null}, "macro.dbt_utils.default__array_construct": {"unique_id": "macro.dbt_utils.default__array_construct", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7794182, "supported_languages": null}, "macro.dbt_utils.snowflake__array_construct": {"unique_id": "macro.dbt_utils.snowflake__array_construct", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "snowflake__array_construct", "macro_sql": "{% macro snowflake__array_construct(inputs, data_type) -%}\n array_construct( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7795541, "supported_languages": null}, "macro.dbt_utils.redshift__array_construct": {"unique_id": "macro.dbt_utils.redshift__array_construct", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "redshift__array_construct", "macro_sql": "{% macro redshift__array_construct(inputs, data_type) -%}\n array( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.779684, "supported_languages": null}, "macro.dbt_utils.bigquery__array_construct": {"unique_id": "macro.dbt_utils.bigquery__array_construct", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "bigquery__array_construct", "macro_sql": "{% macro bigquery__array_construct(inputs, data_type) -%}\n [ {{ inputs|join(' , ') }} ]\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.779813, "supported_languages": null}, "macro.dbt_utils.array_append": {"unique_id": "macro.dbt_utils.array_append", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {% do dbt_utils.xdb_deprecation_warning_without_replacement('array_append', model.package_name, model.name) %}\n {{ return(adapter.dispatch('array_append', 'dbt_utils')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning_without_replacement", "macro.dbt_utils.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.780318, "supported_languages": null}, "macro.dbt_utils.default__array_append": {"unique_id": "macro.dbt_utils.default__array_append", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.780503, "supported_languages": null}, "macro.dbt_utils.bigquery__array_append": {"unique_id": "macro.dbt_utils.bigquery__array_append", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "bigquery__array_append", "macro_sql": "{% macro bigquery__array_append(array, new_element) -%}\n {{ dbt_utils.array_concat(array, dbt_utils.array_construct([new_element])) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.array_concat", "macro.dbt_utils.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.780682, "supported_languages": null}, "macro.dbt_utils.redshift__array_append": {"unique_id": "macro.dbt_utils.redshift__array_append", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "redshift__array_append", "macro_sql": "{% macro redshift__array_append(array, new_element) -%}\n {{ dbt_utils.array_concat(array, dbt_utils.array_construct([new_element])) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.array_concat", "macro.dbt_utils.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7808561, "supported_languages": null}, "macro.dbt_utils.except": {"unique_id": "macro.dbt_utils.except", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/except.sql", "original_file_path": "macros/cross_db_utils/deprecated/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.781157, "supported_languages": null}, "macro.dbt_utils.default__except": {"unique_id": "macro.dbt_utils.default__except", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/except.sql", "original_file_path": "macros/cross_db_utils/deprecated/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n {% do dbt_utils.xdb_deprecation_warning('except', model.package_name, model.name) %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.except", "macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7814112, "supported_languages": null}, "macro.dbt_utils.replace": {"unique_id": "macro.dbt_utils.replace", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/replace.sql", "original_file_path": "macros/cross_db_utils/deprecated/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt_utils') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.781779, "supported_languages": null}, "macro.dbt_utils.default__replace": {"unique_id": "macro.dbt_utils.default__replace", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/replace.sql", "original_file_path": "macros/cross_db_utils/deprecated/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) -%}\n {% do dbt_utils.xdb_deprecation_warning('replace', model.package_name, model.name) %}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.replace", "macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.782086, "supported_languages": null}, "macro.dbt_utils.concat": {"unique_id": "macro.dbt_utils.concat", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/concat.sql", "original_file_path": "macros/cross_db_utils/deprecated/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt_utils')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.782401, "supported_languages": null}, "macro.dbt_utils.default__concat": {"unique_id": "macro.dbt_utils.default__concat", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/concat.sql", "original_file_path": "macros/cross_db_utils/deprecated/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {% do dbt_utils.xdb_deprecation_warning('concat', model.package_name, model.name) %}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.concat", "macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7826612, "supported_languages": null}, "macro.dbt_utils.type_string": {"unique_id": "macro.dbt_utils.type_string", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.783349, "supported_languages": null}, "macro.dbt_utils.default__type_string": {"unique_id": "macro.dbt_utils.default__type_string", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {% do dbt_utils.xdb_deprecation_warning('type_string', model.package_name, model.name) %}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.type_string", "macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7835982, "supported_languages": null}, "macro.dbt_utils.type_timestamp": {"unique_id": "macro.dbt_utils.type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.783755, "supported_languages": null}, "macro.dbt_utils.default__type_timestamp": {"unique_id": "macro.dbt_utils.default__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {% do dbt_utils.xdb_deprecation_warning('type_timestamp', model.package_name, model.name) %}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.type_timestamp", "macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.78401, "supported_languages": null}, "macro.dbt_utils.type_float": {"unique_id": "macro.dbt_utils.type_float", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7841651, "supported_languages": null}, "macro.dbt_utils.default__type_float": {"unique_id": "macro.dbt_utils.default__type_float", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {% do dbt_utils.xdb_deprecation_warning('type_float', model.package_name, model.name) %}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.type_float", "macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7844129, "supported_languages": null}, "macro.dbt_utils.type_numeric": {"unique_id": "macro.dbt_utils.type_numeric", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.784568, "supported_languages": null}, "macro.dbt_utils.default__type_numeric": {"unique_id": "macro.dbt_utils.default__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {% do dbt_utils.xdb_deprecation_warning('type_numeric', model.package_name, model.name) %}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.type_numeric", "macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.784815, "supported_languages": null}, "macro.dbt_utils.type_bigint": {"unique_id": "macro.dbt_utils.type_bigint", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7849758, "supported_languages": null}, "macro.dbt_utils.default__type_bigint": {"unique_id": "macro.dbt_utils.default__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {% do dbt_utils.xdb_deprecation_warning('type_bigint', model.package_name, model.name) %}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.type_bigint", "macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.785223, "supported_languages": null}, "macro.dbt_utils.type_int": {"unique_id": "macro.dbt_utils.type_int", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7854369, "supported_languages": null}, "macro.dbt_utils.default__type_int": {"unique_id": "macro.dbt_utils.default__type_int", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "default__type_int", "macro_sql": "{% macro default__type_int() %}\n {% do dbt_utils.xdb_deprecation_warning('type_int', model.package_name, model.name) %}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.type_int", "macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.785685, "supported_languages": null}, "macro.dbt_utils.length": {"unique_id": "macro.dbt_utils.length", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/length.sql", "original_file_path": "macros/cross_db_utils/deprecated/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.786006, "supported_languages": null}, "macro.dbt_utils.default__length": {"unique_id": "macro.dbt_utils.default__length", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/length.sql", "original_file_path": "macros/cross_db_utils/deprecated/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) -%}\n {% do dbt_utils.xdb_deprecation_warning('length', model.package_name, model.name) %}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.length", "macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.78627, "supported_languages": null}, "macro.dbt_utils.dateadd": {"unique_id": "macro.dbt_utils.dateadd", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/dateadd.sql", "original_file_path": "macros/cross_db_utils/deprecated/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt_utils')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7866418, "supported_languages": null}, "macro.dbt_utils.default__dateadd": {"unique_id": "macro.dbt_utils.default__dateadd", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/dateadd.sql", "original_file_path": "macros/cross_db_utils/deprecated/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n {% do dbt_utils.xdb_deprecation_warning('dateadd', model.package_name, model.name) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.dateadd", "macro.dbt.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.786958, "supported_languages": null}, "macro.dbt_utils.intersect": {"unique_id": "macro.dbt_utils.intersect", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/intersect.sql", "original_file_path": "macros/cross_db_utils/deprecated/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.787256, "supported_languages": null}, "macro.dbt_utils.default__intersect": {"unique_id": "macro.dbt_utils.default__intersect", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/intersect.sql", "original_file_path": "macros/cross_db_utils/deprecated/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n {% do dbt_utils.xdb_deprecation_warning('intersect', model.package_name, model.name) %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.intersect", "macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.787513, "supported_languages": null}, "macro.dbt_utils.escape_single_quotes": {"unique_id": "macro.dbt_utils.escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/deprecated/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.787842, "supported_languages": null}, "macro.dbt_utils.default__escape_single_quotes": {"unique_id": "macro.dbt_utils.default__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/deprecated/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) %}\n {% do dbt_utils.xdb_deprecation_warning('escape_single_quotes', model.package_name, model.name) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.escape_single_quotes", "macro.dbt_snowflake.snowflake__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.788116, "supported_languages": null}, "macro.dbt_utils.right": {"unique_id": "macro.dbt_utils.right", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/right.sql", "original_file_path": "macros/cross_db_utils/deprecated/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt_utils') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7884648, "supported_languages": null}, "macro.dbt_utils.default__right": {"unique_id": "macro.dbt_utils.default__right", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/right.sql", "original_file_path": "macros/cross_db_utils/deprecated/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) -%}\n {% do dbt_utils.xdb_deprecation_warning('right', model.package_name, model.name) %}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.right", "macro.dbt_snowflake.snowflake__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.788749, "supported_languages": null}, "macro.dbt_utils.listagg": {"unique_id": "macro.dbt_utils.listagg", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/listagg.sql", "original_file_path": "macros/cross_db_utils/deprecated/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt_utils') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7891898, "supported_languages": null}, "macro.dbt_utils.default__listagg": {"unique_id": "macro.dbt_utils.default__listagg", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/listagg.sql", "original_file_path": "macros/cross_db_utils/deprecated/listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {% do dbt_utils.xdb_deprecation_warning('listagg', model.package_name, model.name) %}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.listagg", "macro.dbt.default__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.78955, "supported_languages": null}, "macro.dbt_utils.datediff": {"unique_id": "macro.dbt_utils.datediff", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datediff.sql", "original_file_path": "macros/cross_db_utils/deprecated/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt_utils')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.789921, "supported_languages": null}, "macro.dbt_utils.default__datediff": {"unique_id": "macro.dbt_utils.default__datediff", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datediff.sql", "original_file_path": "macros/cross_db_utils/deprecated/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) %}\n {% do dbt_utils.xdb_deprecation_warning('datediff', model.package_name, model.name) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.datediff", "macro.dbt.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.790227, "supported_languages": null}, "macro.dbt_utils.safe_cast": {"unique_id": "macro.dbt_utils.safe_cast", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/safe_cast.sql", "original_file_path": "macros/cross_db_utils/deprecated/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt_utils') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.790571, "supported_languages": null}, "macro.dbt_utils.default__safe_cast": {"unique_id": "macro.dbt_utils.default__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/safe_cast.sql", "original_file_path": "macros/cross_db_utils/deprecated/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {% do dbt_utils.xdb_deprecation_warning('safe_cast', model.package_name, model.name) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.safe_cast", "macro.dbt_snowflake.snowflake__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.790862, "supported_languages": null}, "macro.dbt_utils.hash": {"unique_id": "macro.dbt_utils.hash", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/hash.sql", "original_file_path": "macros/cross_db_utils/deprecated/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt_utils') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.791169, "supported_languages": null}, "macro.dbt_utils.default__hash": {"unique_id": "macro.dbt_utils.default__hash", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/hash.sql", "original_file_path": "macros/cross_db_utils/deprecated/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n {% do dbt_utils.xdb_deprecation_warning('hash', model.package_name, model.name) %}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.hash", "macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.791429, "supported_languages": null}, "macro.dbt_utils.cast_bool_to_text": {"unique_id": "macro.dbt_utils.cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/deprecated/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt_utils') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.791727, "supported_languages": null}, "macro.dbt_utils.default__cast_bool_to_text": {"unique_id": "macro.dbt_utils.default__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/deprecated/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n {% do dbt_utils.xdb_deprecation_warning('cast_bool_to_text', model.package_name, model.name) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.cast_bool_to_text", "macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.792036, "supported_languages": null}, "macro.dbt_utils.identifier": {"unique_id": "macro.dbt_utils.identifier", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/identifier.sql", "original_file_path": "macros/cross_db_utils/deprecated/identifier.sql", "name": "identifier", "macro_sql": "{% macro identifier(value) %}\t\n {%- set error_message = '\n Warning: the `identifier` macro is no longer supported and will be deprecated in a future release of dbt-utils. \\\n Use `adapter.quote` instead. The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {{ return(adapter.dispatch('identifier', 'dbt_utils') (value)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__identifier"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.792526, "supported_languages": null}, "macro.dbt_utils.default__identifier": {"unique_id": "macro.dbt_utils.default__identifier", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/identifier.sql", "original_file_path": "macros/cross_db_utils/deprecated/identifier.sql", "name": "default__identifier", "macro_sql": "{% macro default__identifier(value) -%}\t\n \"{{ value }}\"\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7926269, "supported_languages": null}, "macro.dbt_utils.bigquery__identifier": {"unique_id": "macro.dbt_utils.bigquery__identifier", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/identifier.sql", "original_file_path": "macros/cross_db_utils/deprecated/identifier.sql", "name": "bigquery__identifier", "macro_sql": "{% macro bigquery__identifier(value) -%}\t\n `{{ value }}`\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7927208, "supported_languages": null}, "macro.dbt_utils.any_value": {"unique_id": "macro.dbt_utils.any_value", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/any_value.sql", "original_file_path": "macros/cross_db_utils/deprecated/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7930398, "supported_languages": null}, "macro.dbt_utils.default__any_value": {"unique_id": "macro.dbt_utils.default__any_value", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/any_value.sql", "original_file_path": "macros/cross_db_utils/deprecated/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n {% do dbt_utils.xdb_deprecation_warning('any_value', model.package_name, model.name) %}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.any_value", "macro.dbt.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.793324, "supported_languages": null}, "macro.dbt_utils.position": {"unique_id": "macro.dbt_utils.position", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/position.sql", "original_file_path": "macros/cross_db_utils/deprecated/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt_utils') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7936761, "supported_languages": null}, "macro.dbt_utils.default__position": {"unique_id": "macro.dbt_utils.default__position", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/position.sql", "original_file_path": "macros/cross_db_utils/deprecated/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) -%}\n {% do dbt_utils.xdb_deprecation_warning('position', model.package_name, model.name) %}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.position", "macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.793963, "supported_languages": null}, "macro.dbt_utils.string_literal": {"unique_id": "macro.dbt_utils.string_literal", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/literal.sql", "original_file_path": "macros/cross_db_utils/deprecated/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt_utils') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.794282, "supported_languages": null}, "macro.dbt_utils.default__string_literal": {"unique_id": "macro.dbt_utils.default__string_literal", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/literal.sql", "original_file_path": "macros/cross_db_utils/deprecated/literal.sql", "name": "default__string_literal", "macro_sql": "{%- macro default__string_literal(value) -%}\n {% do dbt_utils.xdb_deprecation_warning('string_literal', model.package_name, model.name) %}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.string_literal", "macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7945468, "supported_languages": null}, "macro.dbt_utils.bool_or": {"unique_id": "macro.dbt_utils.bool_or", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/bool_or.sql", "original_file_path": "macros/cross_db_utils/deprecated/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.794868, "supported_languages": null}, "macro.dbt_utils.default__bool_or": {"unique_id": "macro.dbt_utils.default__bool_or", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/bool_or.sql", "original_file_path": "macros/cross_db_utils/deprecated/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n {% do dbt_utils.xdb_deprecation_warning('bool_or', model.package_name, model.name) %}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.bool_or", "macro.dbt_snowflake.snowflake__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.795137, "supported_languages": null}, "macro.dbt_utils.xdb_deprecation_warning": {"unique_id": "macro.dbt_utils.xdb_deprecation_warning", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/xdb_deprecation_warning.sql", "original_file_path": "macros/cross_db_utils/deprecated/xdb_deprecation_warning.sql", "name": "xdb_deprecation_warning", "macro_sql": "{% macro xdb_deprecation_warning(macro, package, model) %}\n {%- set error_message = \"Warning: the `\" ~ macro ~\"` macro is now provided in dbt Core. It is no longer available in dbt_utils and backwards compatibility will be removed in a future version of the package. Use `\" ~ macro ~ \"` (no prefix) instead. The \" ~ package ~ \".\" ~ model ~ \" model triggered this warning.\" -%}\n {%- do exceptions.warn(error_message) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.795585, "supported_languages": null}, "macro.dbt_utils.xdb_deprecation_warning_without_replacement": {"unique_id": "macro.dbt_utils.xdb_deprecation_warning_without_replacement", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/xdb_deprecation_warning.sql", "original_file_path": "macros/cross_db_utils/deprecated/xdb_deprecation_warning.sql", "name": "xdb_deprecation_warning_without_replacement", "macro_sql": "{% macro xdb_deprecation_warning_without_replacement(macro, package, model) %}\n {%- set error_message = \"Warning: the `\" ~ macro ~\"` macro is deprecated and will be removed in a future version of the package, once equivalent functionality is implemented in dbt Core. The \" ~ package ~ \".\" ~ model ~ \" model triggered this warning.\" -%}\n {%- do exceptions.warn(error_message) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7958221, "supported_languages": null}, "macro.dbt_utils.last_day": {"unique_id": "macro.dbt_utils.last_day", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/last_day.sql", "original_file_path": "macros/cross_db_utils/deprecated/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt_utils') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7961721, "supported_languages": null}, "macro.dbt_utils.default__last_day": {"unique_id": "macro.dbt_utils.default__last_day", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/last_day.sql", "original_file_path": "macros/cross_db_utils/deprecated/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) %}\n {% do dbt_utils.xdb_deprecation_warning('last_day', model.package_name, model.name) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.last_day", "macro.dbt.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.796472, "supported_languages": null}, "macro.dbt_utils.split_part": {"unique_id": "macro.dbt_utils.split_part", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/split_part.sql", "original_file_path": "macros/cross_db_utils/deprecated/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt_utils') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7968462, "supported_languages": null}, "macro.dbt_utils.default__split_part": {"unique_id": "macro.dbt_utils.default__split_part", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/split_part.sql", "original_file_path": "macros/cross_db_utils/deprecated/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n {% do dbt_utils.xdb_deprecation_warning('split_part', model.package_name, model.name) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.split_part", "macro.dbt.default__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.797156, "supported_languages": null}, "macro.dbt_utils.date_trunc": {"unique_id": "macro.dbt_utils.date_trunc", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/date_trunc.sql", "original_file_path": "macros/cross_db_utils/deprecated/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt_utils') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.7974908, "supported_languages": null}, "macro.dbt_utils.default__date_trunc": {"unique_id": "macro.dbt_utils.default__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/date_trunc.sql", "original_file_path": "macros/cross_db_utils/deprecated/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n {% do dbt_utils.xdb_deprecation_warning('date_trunc', model.package_name, model.name) %}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.date_trunc", "macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.797836, "supported_languages": null}, "macro.dbt_utils.get_period_boundaries": {"unique_id": "macro.dbt_utils.get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_boundaries", "macro_sql": "{% macro get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n {{ return(adapter.dispatch('get_period_boundaries', 'dbt_utils')(target_schema, target_table, timestamp_field, start_date, stop_date, period)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_boundaries"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8037188, "supported_languages": null}, "macro.dbt_utils.default__get_period_boundaries": {"unique_id": "macro.dbt_utils.default__get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_boundaries", "macro_sql": "{% macro default__get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n\n {% call statement('period_boundaries', fetch_result=True) -%}\n with data as (\n select\n coalesce(max(\"{{timestamp_field}}\"), '{{start_date}}')::timestamp as start_timestamp,\n coalesce(\n {{ dateadd('millisecond',\n -1,\n \"nullif('\" ~ stop_date ~ \"','')::timestamp\") }},\n {{ dbt_utils.current_timestamp() }}\n ) as stop_timestamp\n from \"{{target_schema}}\".\"{{target_table}}\"\n )\n\n select\n start_timestamp,\n stop_timestamp,\n {{ datediff('start_timestamp',\n 'stop_timestamp',\n period) }} + 1 as num_periods\n from data\n {%- endcall %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.804197, "supported_languages": null}, "macro.dbt_utils.get_period_sql": {"unique_id": "macro.dbt_utils.get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_sql", "macro_sql": "{% macro get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n {{ return(adapter.dispatch('get_period_sql', 'dbt_utils')(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8045068, "supported_languages": null}, "macro.dbt_utils.default__get_period_sql": {"unique_id": "macro.dbt_utils.default__get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_sql", "macro_sql": "{% macro default__get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n\n {%- set period_filter -%}\n (\"{{timestamp_field}}\" > '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' and\n \"{{timestamp_field}}\" <= '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' + interval '1 {{period}}' and\n \"{{timestamp_field}}\" < '{{stop_timestamp}}'::timestamp)\n {%- endset -%}\n\n {%- set filtered_sql = sql | replace(\"__PERIOD_FILTER__\", period_filter) -%}\n\n select\n {{target_cols_csv}}\n from (\n {{filtered_sql}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8049831, "supported_languages": null}, "macro.dbt_utils.materialization_insert_by_period_default": {"unique_id": "macro.dbt_utils.materialization_insert_by_period_default", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "materialization_insert_by_period_default", "macro_sql": "{% materialization insert_by_period, default -%}\n {%- set timestamp_field = config.require('timestamp_field') -%}\n {%- set start_date = config.require('start_date') -%}\n {%- set stop_date = config.get('stop_date') or '' -%}\n {%- set period = config.get('period') or 'week' -%}\n\n {%- set deprecation_warning = \"Warning: the `insert_by_period` materialization will be removed from dbt_utils in version 1.0.0. Install from dbt-labs/dbt-labs-experimental-features instead (see https://github.com/dbt-labs/dbt-utils/discussions/487). The \" ~ package ~ \".\" ~ model ~ \" model triggered this warning.\" -%}\n {%- do exceptions.warn(deprecation_warning) -%}\n\n {%- if sql.find('__PERIOD_FILTER__') == -1 -%}\n {%- set error_message -%}\n Model '{{ model.unique_id }}' does not include the required string '__PERIOD_FILTER__' in its sql\n {%- endset -%}\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n\n {%- set identifier = model['name'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, type='table') -%}\n\n {%- set non_destructive_mode = (flags.NON_DESTRUCTIVE == True) -%}\n {%- set full_refresh_mode = (flags.FULL_REFRESH == True) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n\n {%- set should_truncate = (non_destructive_mode and full_refresh_mode and exists_as_table) -%}\n {%- set should_drop = (not should_truncate and (full_refresh_mode or exists_not_as_table)) -%}\n {%- set force_create = (flags.FULL_REFRESH and not flags.NON_DESTRUCTIVE) -%}\n\n -- setup\n {% if old_relation is none -%}\n -- noop\n {%- elif should_truncate -%}\n {{adapter.truncate_relation(old_relation)}}\n {%- elif should_drop -%}\n {{adapter.drop_relation(old_relation)}}\n {%- set old_relation = none -%}\n {%- endif %}\n\n {{run_hooks(pre_hooks, inside_transaction=False)}}\n\n -- `begin` happens here, so `commit` after it to finish the transaction\n {{run_hooks(pre_hooks, inside_transaction=True)}}\n {% call statement() -%}\n begin; -- make extra sure we've closed out the transaction\n commit;\n {%- endcall %}\n\n -- build model\n {% if force_create or old_relation is none -%}\n {# Create an empty target table -#}\n {% call statement('main') -%}\n {%- set empty_sql = sql | replace(\"__PERIOD_FILTER__\", 'false') -%}\n {{create_table_as(False, target_relation, empty_sql)}}\n {%- endcall %}\n {%- endif %}\n\n {% set _ = dbt_utils.get_period_boundaries(schema,\n identifier,\n timestamp_field,\n start_date,\n stop_date,\n period) %}\n {%- set start_timestamp = load_result('period_boundaries')['data'][0][0] | string -%}\n {%- set stop_timestamp = load_result('period_boundaries')['data'][0][1] | string -%}\n {%- set num_periods = load_result('period_boundaries')['data'][0][2] | int -%}\n\n {% set target_columns = adapter.get_columns_in_relation(target_relation) %}\n {%- set target_cols_csv = target_columns | map(attribute='quoted') | join(', ') -%}\n {%- set loop_vars = {'sum_rows_inserted': 0} -%}\n\n -- commit each period as a separate transaction\n {% for i in range(num_periods) -%}\n {%- set msg = \"Running for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- set tmp_identifier = model['name'] ~ '__dbt_incremental_period' ~ i ~ '_tmp' -%}\n {%- set tmp_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, type='table') -%}\n {% call statement() -%}\n {% set tmp_table_sql = dbt_utils.get_period_sql(target_cols_csv,\n sql,\n timestamp_field,\n period,\n start_timestamp,\n stop_timestamp,\n i) %}\n {{dbt.create_table_as(True, tmp_relation, tmp_table_sql)}}\n {%- endcall %}\n\n {{adapter.expand_target_column_types(from_relation=tmp_relation,\n to_relation=target_relation)}}\n {%- set name = 'main-' ~ i -%}\n {% call statement(name, fetch_result=True) -%}\n insert into {{target_relation}} ({{target_cols_csv}})\n (\n select\n {{target_cols_csv}}\n from {{tmp_relation.include(schema=False)}}\n );\n {%- endcall %}\n {% set result = load_result('main-' ~ i) %}\n {% if 'response' in result.keys() %} {# added in v0.19.0 #}\n {% set rows_inserted = result['response']['rows_affected'] %}\n {% else %} {# older versions #}\n {% set rows_inserted = result['status'].split(\" \")[2] | int %}\n {% endif %}\n\n {%- set sum_rows_inserted = loop_vars['sum_rows_inserted'] + rows_inserted -%}\n {%- if loop_vars.update({'sum_rows_inserted': sum_rows_inserted}) %} {% endif -%}\n\n {%- set msg = \"Ran for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) ~ \"; \" ~ rows_inserted ~ \" records inserted\" -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- endfor %}\n\n {% call statement() -%}\n begin;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=True)}}\n\n {% call statement() -%}\n commit;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=False)}}\n\n {%- set status_string = \"INSERT \" ~ loop_vars['sum_rows_inserted'] -%}\n\n {% call noop_statement('main', status_string) -%}\n -- no-op\n {%- endcall %}\n\n -- Return the relations created in this materialization\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt_utils.get_period_boundaries", "macro.dbt_utils.log_info", "macro.dbt_utils.get_period_sql", "macro.dbt.noop_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.810118, "supported_languages": ["sql"]}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.810546, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n split_part(\n split_part(\n replace(\n replace(\n replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part", "macro.dbt_utils.replace", "macro.dbt.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.810954, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.811452, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n replace(\n replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ position(\"'/'\", stripped_url) }}, 0),\n {{ position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n split_part(\n right(\n stripped_url,\n length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ safe_cast(\n parsed_path,\n type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt_utils.position", "macro.dbt_utils.split_part", "macro.dbt_utils.right", "macro.dbt_utils.length", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.812008, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.812361, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = split_part(split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.812659, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.813229, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model) %}\n\n{{ config(fail_calc = 'coalesce(row_count_delta, 0)') }}\n\nwith a as (\n\n select count(*) as count_our_model from {{ model }}\n\n),\nb as (\n\n select count(*) as count_comparison_model from {{ compare_model }}\n\n),\ncounts as (\n\n select\n count_our_model,\n count_comparison_model\n from a\n cross join b\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.813451, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.813877, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'coalesce(diff_count, 0)') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\nwith a as (\n\n select count(*) as count_a from {{ model }}\n\n),\nb as (\n\n select count(*) as count_b from {{ compare_model }}\n\n),\nfinal as (\n\n select\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n from a\n cross join b\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.814167, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8148422, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8151622, "supported_languages": null}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "test_recency", "macro_sql": "{% test recency(model, field, datepart, interval) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.815609, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval) %}\n\n{% set threshold = dateadd(datepart, interval * -1, current_timestamp()) %}\n\nwith recency as (\n\n select max({{field}}) as most_recent\n from {{ model }}\n\n)\n\nselect\n\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8159108, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% test not_constant(model, column_name) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.816274, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name) %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.816438, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8170571, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.817564, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.81813, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.818496, "supported_languages": null}, "macro.dbt_utils.test_unique_where": {"unique_id": "macro.dbt_utils.test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_unique_where.sql", "original_file_path": "macros/generic_tests/test_unique_where.sql", "name": "test_unique_where", "macro_sql": "{% test unique_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.unique_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `unique` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_unique_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.818936, "supported_languages": null}, "macro.dbt_utils.default__test_unique_where": {"unique_id": "macro.dbt_utils.default__test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_unique_where.sql", "original_file_path": "macros/generic_tests/test_unique_where.sql", "name": "default__test_unique_where", "macro_sql": "{% macro default__test_unique_where(model, column_name) %}\r\n {{ return(test_unique(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.819099, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.819464, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name) %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.819632, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.820256, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8208718, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.821454, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8217652, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None, condition='1=1') %}\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name, condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8222551, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name, condition) %}\n\nwith meet_condition as (\n select * from {{ model }} where {{ condition }}\n)\n\nselect\n *\nfrom meet_condition\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.822541, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.822999, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\nwith validation as (\n select\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n),\nvalidation_errors as (\n select\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.823494, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.824161, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\nwith windowed as (\n\n select\n {{ column_name }},\n lag({{ column_name }}) over (\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ type_timestamp() }})= cast({{ dateadd(datepart, interval, previous_column_name) }} as {{ type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.824781, "supported_languages": null}, "macro.dbt_utils.test_not_null_where": {"unique_id": "macro.dbt_utils.test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_not_null_where.sql", "original_file_path": "macros/generic_tests/test_not_null_where.sql", "name": "test_not_null_where", "macro_sql": "{% test not_null_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.not_null_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `not_null` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_not_null_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.825228, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_where": {"unique_id": "macro.dbt_utils.default__test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_not_null_where.sql", "original_file_path": "macros/generic_tests/test_not_null_where.sql", "name": "default__test_not_null_where", "macro_sql": "{% macro default__test_not_null_where(model, column_name) %}\r\n {{ return(test_not_null(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8253922, "supported_languages": null}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.826127, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8269708, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.830213, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions nore cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.831653, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.83198, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.83214, "supported_languages": null}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "name": "_is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8326201, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.832939, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.833129, "supported_languages": null}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8334332, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8336031, "supported_languages": null}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "name": "slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8340979, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "name": "_is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.834935, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8356411, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.836268, "supported_languages": null}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8364868, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.83683, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.837185, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.837515, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8381991, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.839007, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.839833, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.840239, "supported_languages": null}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8404212, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.840922, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.841608, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.842412, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.842858, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.843127, "supported_languages": null}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8438249, "supported_languages": null}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {%- do dbt_utils._is_relation(from, 'star') -%}\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('*') }}\n {%- endif -%}\n\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\n\n {%- if cols|length <= 0 -%}\n {{- return('*') -}}\n {%- else -%}\n {%- for col in cols %}\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\n {%- if not loop.last %},{{ '\\n ' }}{% endif %}\n {%- endfor -%}\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.844824, "supported_languages": null}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.846494, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n\n {% if table %}\n {%- set error_message = '\n Warning: the `unpivot` macro no longer accepts a `table` parameter. \\\n This parameter will be deprecated in a future release of dbt-utils. Use the `relation` parameter instead. \\\n The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {% endif %}\n\n {% if relation and table %}\n {{ exceptions.raise_compiler_error(\"Error: both the `relation` and `table` parameters were provided to `unpivot` macro. Choose one only (we recommend `relation`).\") }}\n {% elif not relation and table %}\n {% set relation=table %}\n {% elif not relation and not table %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.type_string", "macro.dbt_utils.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.848405, "supported_languages": null}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8510451, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ string_literal(relation) }} as {{ type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.853973, "supported_languages": null}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.854322, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.854562, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by=none, relation_alias=none) -%}\n\n {%- set error_message_group_by -%}\nWarning: the `group_by` parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nUse `partition_by` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if kwargs.get('group_by') %}\n {%- do exceptions.warn(error_message_group_by) -%}\n {%- endif -%}\n\n {%- set error_message_order_by -%}\nWarning: `order_by` as an optional parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nSupply a non-null value for `order_by` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if not order_by %}\n {%- do exceptions.warn(error_message_order_by) -%}\n {%- endif -%}\n\n {%- set error_message_alias -%}\nWarning: the `relation_alias` parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nIf you were using `relation_alias` to point to a CTE previously then you can now pass the alias directly to `relation` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if relation_alias %}\n {%- do exceptions.warn(error_message_alias) -%}\n {%- endif -%}\n\n {% set partition_by = partition_by or kwargs.get('group_by') %}\n {% set relation = relation_alias or relation %}\n {% set order_by = order_by or \"'1'\" %}\n\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.snowflake__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.856907, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.85712, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.857318, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8574982, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.857654, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.857816, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.858411, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- if varargs|length >= 1 or field_list is string %}\n\n{%- set error_message = '\nWarning: the `surrogate_key` macro now takes a single list argument instead of \\\nmultiple string arguments. Support for multiple string arguments will be \\\ndeprecated in a future release of dbt-utils. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{# first argument is not included in varargs, so add first element to field_list_xf #}\n{%- set field_list_xf = [field_list] -%}\n\n{%- for field in varargs %}\n{%- set _ = field_list_xf.append(field) -%}\n{%- endfor -%}\n\n{%- else -%}\n\n{# if using list, just set field_list_xf as field_list #}\n{%- set field_list_xf = field_list -%}\n\n{%- endif -%}\n\n\n{%- set fields = [] -%}\n\n{%- for field in field_list_xf -%}\n\n {%- set _ = fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ type_string() ~ \"), '')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- set _ = fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ hash(concat(fields)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.hash", "macro.dbt_utils.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.859284, "supported_languages": null}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add() -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(*varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.859703, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add() -%}\n\n{% set fields = [] %}\n\n{%- for field in varargs -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.859977, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.860349, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.860667, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.862253, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.862601, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.863351, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.863838, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.864927, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.866364, "supported_languages": null}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.867413, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt_utils.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.868219, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.868714, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8694232, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.snowflake__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.870804, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.871228, "supported_languages": null}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is exactly at the bucket edge\n case\n when\n {{ dbt.safe_cast(expr, type_numeric() ) }} %\n {{ dbt.safe_cast(bin_size, type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.871655, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.871836, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8722508, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8728168, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8732429, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.873376, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.873505, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8745348, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8748028, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8754141, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.876191, "supported_languages": null}, "macro.dbt_date.get_date_dimension": {"unique_id": "macro.dbt_date.get_date_dimension", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "name": "get_date_dimension", "macro_sql": "{% macro get_date_dimension(start_date, end_date) %}\n {{ adapter.dispatch('get_date_dimension', 'dbt_date') (start_date, end_date) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__get_date_dimension"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.884445, "supported_languages": null}, "macro.dbt_date.default__get_date_dimension": {"unique_id": "macro.dbt_date.default__get_date_dimension", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "name": "default__get_date_dimension", "macro_sql": "{% macro default__get_date_dimension(start_date, end_date) %}\nwith base_dates as (\n {{ dbt_date.get_base_dates(start_date, end_date) }}\n),\ndates_with_prior_year_dates as (\n\n select\n cast(d.date_day as date) as date_day,\n cast({{ dbt.dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ dbt.dateadd('day', -364 , 'd.date_day') }} as date) as prior_year_over_year_date_day\n from\n \tbase_dates d\n\n)\nselect\n d.date_day,\n {{ dbt_date.yesterday('d.date_day') }} as prior_date_day,\n {{ dbt_date.tomorrow('d.date_day') }} as next_date_day,\n d.prior_year_date_day as prior_year_date_day,\n d.prior_year_over_year_date_day,\n {{ dbt_date.day_of_week('d.date_day', isoweek=false) }} as day_of_week,\n {{ dbt_date.day_of_week('d.date_day', isoweek=true) }} as day_of_week_iso,\n {{ dbt_date.day_name('d.date_day', short=false) }} as day_of_week_name,\n {{ dbt_date.day_name('d.date_day', short=true) }} as day_of_week_name_short,\n {{ dbt_date.day_of_month('d.date_day') }} as day_of_month,\n {{ dbt_date.day_of_year('d.date_day') }} as day_of_year,\n\n {{ dbt_date.week_start('d.date_day') }} as week_start_date,\n {{ dbt_date.week_end('d.date_day') }} as week_end_date,\n {{ dbt_date.week_start('d.prior_year_over_year_date_day') }} as prior_year_week_start_date,\n {{ dbt_date.week_end('d.prior_year_over_year_date_day') }} as prior_year_week_end_date,\n {{ dbt_date.week_of_year('d.date_day') }} as week_of_year,\n\n {{ dbt_date.iso_week_start('d.date_day') }} as iso_week_start_date,\n {{ dbt_date.iso_week_end('d.date_day') }} as iso_week_end_date,\n {{ dbt_date.iso_week_start('d.prior_year_over_year_date_day') }} as prior_year_iso_week_start_date,\n {{ dbt_date.iso_week_end('d.prior_year_over_year_date_day') }} as prior_year_iso_week_end_date,\n {{ dbt_date.iso_week_of_year('d.date_day') }} as iso_week_of_year,\n\n {{ dbt_date.week_of_year('d.prior_year_over_year_date_day') }} as prior_year_week_of_year,\n {{ dbt_date.iso_week_of_year('d.prior_year_over_year_date_day') }} as prior_year_iso_week_of_year,\n\n cast({{ dbt_date.date_part('month', 'd.date_day') }} as {{ dbt.type_int() }}) as month_of_year,\n {{ dbt_date.month_name('d.date_day', short=false) }} as month_name,\n {{ dbt_date.month_name('d.date_day', short=true) }} as month_name_short,\n\n cast({{ dbt.date_trunc('month', 'd.date_day') }} as date) as month_start_date,\n cast({{ last_day('d.date_day', 'month') }} as date) as month_end_date,\n\n cast({{ dbt.date_trunc('month', 'd.prior_year_date_day') }} as date) as prior_year_month_start_date,\n cast({{ last_day('d.prior_year_date_day', 'month') }} as date) as prior_year_month_end_date,\n\n cast({{ dbt_date.date_part('quarter', 'd.date_day') }} as {{ dbt.type_int() }}) as quarter_of_year,\n cast({{ dbt.date_trunc('quarter', 'd.date_day') }} as date) as quarter_start_date,\n cast({{ last_day('d.date_day', 'quarter') }} as date) as quarter_end_date,\n\n cast({{ dbt_date.date_part('year', 'd.date_day') }} as {{ dbt.type_int() }}) as year_number,\n cast({{ dbt.date_trunc('year', 'd.date_day') }} as date) as year_start_date,\n cast({{ last_day('d.date_day', 'year') }} as date) as year_end_date\nfrom\n dates_with_prior_year_dates d\norder by 1\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt.dateadd", "macro.dbt_date.yesterday", "macro.dbt_date.tomorrow", "macro.dbt_date.day_of_week", "macro.dbt_date.day_name", "macro.dbt_date.day_of_month", "macro.dbt_date.day_of_year", "macro.dbt_date.week_start", "macro.dbt_date.week_end", "macro.dbt_date.week_of_year", "macro.dbt_date.iso_week_start", "macro.dbt_date.iso_week_end", "macro.dbt_date.iso_week_of_year", "macro.dbt_date.date_part", "macro.dbt.type_int", "macro.dbt_date.month_name", "macro.dbt.date_trunc", "macro.dbt_utils.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.886563, "supported_languages": null}, "macro.dbt_date.postgres__get_date_dimension": {"unique_id": "macro.dbt_date.postgres__get_date_dimension", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "name": "postgres__get_date_dimension", "macro_sql": "{% macro postgres__get_date_dimension(start_date, end_date) %}\nwith base_dates as (\n {{ dbt_date.get_base_dates(start_date, end_date) }}\n),\ndates_with_prior_year_dates as (\n\n select\n cast(d.date_day as date) as date_day,\n cast({{ dbt.dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ dbt.dateadd('day', -364 , 'd.date_day') }} as date) as prior_year_over_year_date_day\n from\n \tbase_dates d\n\n)\nselect\n d.date_day,\n {{ dbt_date.yesterday('d.date_day') }} as prior_date_day,\n {{ dbt_date.tomorrow('d.date_day') }} as next_date_day,\n d.prior_year_date_day as prior_year_date_day,\n d.prior_year_over_year_date_day,\n {{ dbt_date.day_of_week('d.date_day', isoweek=true) }} as day_of_week,\n\n {{ dbt_date.day_name('d.date_day', short=false) }} as day_of_week_name,\n {{ dbt_date.day_name('d.date_day', short=true) }} as day_of_week_name_short,\n {{ dbt_date.day_of_month('d.date_day') }} as day_of_month,\n {{ dbt_date.day_of_year('d.date_day') }} as day_of_year,\n\n {{ dbt_date.week_start('d.date_day') }} as week_start_date,\n {{ dbt_date.week_end('d.date_day') }} as week_end_date,\n {{ dbt_date.week_start('d.prior_year_over_year_date_day') }} as prior_year_week_start_date,\n {{ dbt_date.week_end('d.prior_year_over_year_date_day') }} as prior_year_week_end_date,\n {{ dbt_date.week_of_year('d.date_day') }} as week_of_year,\n\n {{ dbt_date.iso_week_start('d.date_day') }} as iso_week_start_date,\n {{ dbt_date.iso_week_end('d.date_day') }} as iso_week_end_date,\n {{ dbt_date.iso_week_start('d.prior_year_over_year_date_day') }} as prior_year_iso_week_start_date,\n {{ dbt_date.iso_week_end('d.prior_year_over_year_date_day') }} as prior_year_iso_week_end_date,\n {{ dbt_date.iso_week_of_year('d.date_day') }} as iso_week_of_year,\n\n {{ dbt_date.week_of_year('d.prior_year_over_year_date_day') }} as prior_year_week_of_year,\n {{ dbt_date.iso_week_of_year('d.prior_year_over_year_date_day') }} as prior_year_iso_week_of_year,\n\n cast({{ dbt_date.date_part('month', 'd.date_day') }} as {{ dbt.type_int() }}) as month_of_year,\n {{ dbt_date.month_name('d.date_day', short=false) }} as month_name,\n {{ dbt_date.month_name('d.date_day', short=true) }} as month_name_short,\n\n cast({{ dbt.date_trunc('month', 'd.date_day') }} as date) as month_start_date,\n cast({{ last_day('d.date_day', 'month') }} as date) as month_end_date,\n\n cast({{ dbt.date_trunc('month', 'd.prior_year_date_day') }} as date) as prior_year_month_start_date,\n cast({{ last_day('d.prior_year_date_day', 'month') }} as date) as prior_year_month_end_date,\n\n cast({{ dbt_date.date_part('quarter', 'd.date_day') }} as {{ dbt.type_int() }}) as quarter_of_year,\n cast({{ dbt.date_trunc('quarter', 'd.date_day') }} as date) as quarter_start_date,\n {# last_day does not support quarter because postgresql does not support quarter interval. #}\n cast({{dbt.dateadd('day', '-1', dbt.dateadd('month', '3', dbt.date_trunc('quarter', 'd.date_day')))}} as date) as quarter_end_date,\n\n cast({{ dbt_date.date_part('year', 'd.date_day') }} as {{ dbt.type_int() }}) as year_number,\n cast({{ dbt.date_trunc('year', 'd.date_day') }} as date) as year_start_date,\n cast({{ last_day('d.date_day', 'year') }} as date) as year_end_date\nfrom\n dates_with_prior_year_dates d\norder by 1\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt.dateadd", "macro.dbt_date.yesterday", "macro.dbt_date.tomorrow", "macro.dbt_date.day_of_week", "macro.dbt_date.day_name", "macro.dbt_date.day_of_month", "macro.dbt_date.day_of_year", "macro.dbt_date.week_start", "macro.dbt_date.week_end", "macro.dbt_date.week_of_year", "macro.dbt_date.iso_week_start", "macro.dbt_date.iso_week_end", "macro.dbt_date.iso_week_of_year", "macro.dbt_date.date_part", "macro.dbt.type_int", "macro.dbt_date.month_name", "macro.dbt.date_trunc", "macro.dbt_utils.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8887832, "supported_languages": null}, "macro.dbt_date.get_base_dates": {"unique_id": "macro.dbt_date.get_base_dates", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "name": "get_base_dates", "macro_sql": "{% macro get_base_dates(start_date=None, end_date=None, n_dateparts=None, datepart=\"day\") %}\n {{ adapter.dispatch('get_base_dates', 'dbt_date') (start_date, end_date, n_dateparts, datepart) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__get_base_dates"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.889771, "supported_languages": null}, "macro.dbt_date.default__get_base_dates": {"unique_id": "macro.dbt_date.default__get_base_dates", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "name": "default__get_base_dates", "macro_sql": "{% macro default__get_base_dates(start_date, end_date, n_dateparts, datepart) %}\n\n{%- if start_date and end_date -%}\n{%- set start_date=\"cast('\" ~ start_date ~ \"' as \" ~ dbt.type_timestamp() ~ \")\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as \" ~ dbt.type_timestamp() ~ \")\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt.dateadd(datepart, -1 * n_dateparts, dbt_date.today()) -%}\n{%- set end_date = dbt_date.tomorrow() -%}\n{%- endif -%}\n\nwith date_spine as\n(\n\n {{ dbt_date.date_spine(\n datepart=datepart,\n start_date=start_date,\n end_date=end_date,\n )\n }}\n\n)\nselect\n cast(d.date_{{ datepart }} as {{ dbt.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_date.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.890492, "supported_languages": null}, "macro.dbt_date.bigquery__get_base_dates": {"unique_id": "macro.dbt_date.bigquery__get_base_dates", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "name": "bigquery__get_base_dates", "macro_sql": "{% macro bigquery__get_base_dates(start_date, end_date, n_dateparts, datepart) %}\n\n{%- if start_date and end_date -%}\n{%- set start_date=\"cast('\" ~ start_date ~ \"' as date )\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as date )\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt.dateadd(datepart, -1 * n_dateparts, dbt_date.today()) -%}\n{%- set end_date = dbt_date.tomorrow() -%}\n{%- endif -%}\n\nwith date_spine as\n(\n\n {{ dbt_date.date_spine(\n datepart=datepart,\n start_date=start_date,\n end_date=end_date,\n )\n }}\n\n)\nselect\n cast(d.date_{{ datepart }} as {{ dbt.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_date.date_spine", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8911428, "supported_languages": null}, "macro.dbt_date.get_intervals_between": {"unique_id": "macro.dbt_date.get_intervals_between", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "name": "get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_date')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.891936, "supported_languages": null}, "macro.dbt_date.default__get_intervals_between": {"unique_id": "macro.dbt_date.default__get_intervals_between", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "name": "default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.892524, "supported_languages": null}, "macro.dbt_date.date_spine": {"unique_id": "macro.dbt_date.date_spine", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_date')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.892749, "supported_languages": null}, "macro.dbt_date.default__date_spine": {"unique_id": "macro.dbt_date.default__date_spine", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{\n dbt_date.generate_series(\n dbt_date.get_intervals_between(start_date, end_date, datepart)\n )\n }}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.generate_series", "macro.dbt_date.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.893104, "supported_languages": null}, "macro.dbt_date.get_powers_of_two": {"unique_id": "macro.dbt_date.get_powers_of_two", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "name": "get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_date')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.893978, "supported_languages": null}, "macro.dbt_date.default__get_powers_of_two": {"unique_id": "macro.dbt_date.default__get_powers_of_two", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "name": "default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.89438, "supported_languages": null}, "macro.dbt_date.generate_series": {"unique_id": "macro.dbt_date.generate_series", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_date')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.8945642, "supported_languages": null}, "macro.dbt_date.default__generate_series": {"unique_id": "macro.dbt_date.default__generate_series", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "name": "default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_date.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.895058, "supported_languages": null}, "macro.dbt_date.get_fiscal_year_dates": {"unique_id": "macro.dbt_date.get_fiscal_year_dates", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/fiscal_date/get_fiscal_year_dates.sql", "original_file_path": "macros/fiscal_date/get_fiscal_year_dates.sql", "name": "get_fiscal_year_dates", "macro_sql": "{% macro get_fiscal_year_dates(dates, year_end_month=12, week_start_day=1, shift_year=1) %}\n{{ adapter.dispatch('get_fiscal_year_dates', 'dbt_date') (dates, year_end_month, week_start_day, shift_year) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__get_fiscal_year_dates"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.89678, "supported_languages": null}, "macro.dbt_date.default__get_fiscal_year_dates": {"unique_id": "macro.dbt_date.default__get_fiscal_year_dates", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/fiscal_date/get_fiscal_year_dates.sql", "original_file_path": "macros/fiscal_date/get_fiscal_year_dates.sql", "name": "default__get_fiscal_year_dates", "macro_sql": "{% macro default__get_fiscal_year_dates(dates, year_end_month, week_start_day, shift_year) %}\n-- this gets all the dates within a fiscal year\n-- determined by the given year-end-month\n-- ending on the saturday closest to that month's end date\nwith date_dimension as (\n select * from {{ dates }}\n),\nyear_month_end as (\n\n select\n d.year_number - {{ shift_year }} as fiscal_year_number,\n d.month_end_date\n from\n date_dimension d\n where\n d.month_of_year = {{ year_end_month }}\n group by 1,2\n\n),\nweeks as (\n\n select\n d.year_number,\n d.month_of_year,\n d.date_day as week_start_date,\n cast({{ dbt.dateadd('day', 6, 'd.date_day') }} as date) as week_end_date\n from\n date_dimension d\n where\n d.day_of_week = {{ week_start_day }}\n\n),\n-- get all the weeks that start in the month the year ends\nyear_week_ends as (\n\n select\n d.year_number - {{ shift_year }} as fiscal_year_number,\n d.week_end_date\n from\n weeks d\n where\n d.month_of_year = {{ year_end_month }}\n group by\n 1,2\n\n),\n-- then calculate which Saturday is closest to month end\nweeks_at_month_end as (\n\n select\n d.fiscal_year_number,\n d.week_end_date,\n m.month_end_date,\n rank() over\n (partition by d.fiscal_year_number\n order by\n abs({{ dbt.datediff('d.week_end_date', 'm.month_end_date', 'day') }})\n\n ) as closest_to_month_end\n from\n year_week_ends d\n join\n year_month_end m on d.fiscal_year_number = m.fiscal_year_number\n),\nfiscal_year_range as (\n\n select\n w.fiscal_year_number,\n cast(\n {{ dbt.dateadd('day', 1,\n 'lag(w.week_end_date) over(order by w.week_end_date)') }}\n as date) as fiscal_year_start_date,\n w.week_end_date as fiscal_year_end_date\n from\n weeks_at_month_end w\n where\n w.closest_to_month_end = 1\n\n),\nfiscal_year_dates as (\n\n select\n d.date_day,\n m.fiscal_year_number,\n m.fiscal_year_start_date,\n m.fiscal_year_end_date,\n w.week_start_date,\n w.week_end_date,\n -- we reset the weeks of the year starting with the merch year start date\n dense_rank()\n over(\n partition by m.fiscal_year_number\n order by w.week_start_date\n ) as fiscal_week_of_year\n from\n date_dimension d\n join\n fiscal_year_range m on d.date_day between m.fiscal_year_start_date and m.fiscal_year_end_date\n join\n weeks w on d.date_day between w.week_start_date and w.week_end_date\n\n)\nselect * from fiscal_year_dates order by 1\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.897343, "supported_languages": null}, "macro.dbt_date.get_fiscal_periods": {"unique_id": "macro.dbt_date.get_fiscal_periods", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/fiscal_date/get_fiscal_periods.sql", "original_file_path": "macros/fiscal_date/get_fiscal_periods.sql", "name": "get_fiscal_periods", "macro_sql": "{% macro get_fiscal_periods(dates, year_end_month, week_start_day, shift_year=1) %}\n{#\nThis macro requires you to pass in a ref to a date dimension, created via\ndbt_date.get_date_dimension()s\n#}\nwith fscl_year_dates_for_periods as (\n {{ dbt_date.get_fiscal_year_dates(dates, year_end_month, week_start_day, shift_year) }}\n),\nfscl_year_w13 as (\n\n select\n f.*,\n -- We count the weeks in a 13 week period\n -- and separate the 4-5-4 week sequences\n mod(cast(\n (f.fiscal_week_of_year-1) as {{ dbt.type_int() }}\n ), 13) as w13_number,\n -- Chop weeks into 13 week merch quarters\n cast(\n least(\n floor((f.fiscal_week_of_year-1)/13.0)\n , 3)\n as {{ dbt.type_int() }}) as quarter_number\n from\n fscl_year_dates_for_periods f\n\n),\nfscl_periods as (\n\n select\n f.date_day,\n f.fiscal_year_number,\n f.week_start_date,\n f.week_end_date,\n f.fiscal_week_of_year,\n case\n -- we move week 53 into the 3rd period of the quarter\n when f.fiscal_week_of_year = 53 then 3\n when f.w13_number between 0 and 3 then 1\n when f.w13_number between 4 and 8 then 2\n when f.w13_number between 9 and 12 then 3\n end as period_of_quarter,\n f.quarter_number\n from\n fscl_year_w13 f\n\n),\nfscl_periods_quarters as (\n\n select\n f.*,\n cast((\n (f.quarter_number * 3) + f.period_of_quarter\n ) as {{ dbt.type_int() }}) as fiscal_period_number\n from\n fscl_periods f\n\n)\nselect\n date_day,\n fiscal_year_number,\n week_start_date,\n week_end_date,\n fiscal_week_of_year,\n dense_rank() over(partition by fiscal_period_number order by fiscal_week_of_year) as fiscal_week_of_period,\n fiscal_period_number,\n quarter_number+1 as fiscal_quarter_number,\n period_of_quarter as fiscal_period_of_quarter\nfrom\n fscl_periods_quarters\norder by 1,2\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_fiscal_year_dates", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.898304, "supported_languages": null}, "macro.dbt_date.tomorrow": {"unique_id": "macro.dbt_date.tomorrow", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/tomorrow.sql", "original_file_path": "macros/calendar_date/tomorrow.sql", "name": "tomorrow", "macro_sql": "{%- macro tomorrow(date=None, tz=None) -%}\n{{ dbt_date.n_days_away(1, date, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.898581, "supported_languages": null}, "macro.dbt_date.next_week": {"unique_id": "macro.dbt_date.next_week", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/next_week.sql", "original_file_path": "macros/calendar_date/next_week.sql", "name": "next_week", "macro_sql": "{%- macro next_week(tz=None) -%}\n{{ dbt_date.n_weeks_away(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_weeks_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.898828, "supported_languages": null}, "macro.dbt_date.next_month_name": {"unique_id": "macro.dbt_date.next_month_name", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/next_month_name.sql", "original_file_path": "macros/calendar_date/next_month_name.sql", "name": "next_month_name", "macro_sql": "{%- macro next_month_name(short=True, tz=None) -%}\n{{ dbt_date.month_name(dbt_date.next_month(tz), short=short) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.month_name", "macro.dbt_date.next_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.899128, "supported_languages": null}, "macro.dbt_date.next_month": {"unique_id": "macro.dbt_date.next_month", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/next_month.sql", "original_file_path": "macros/calendar_date/next_month.sql", "name": "next_month", "macro_sql": "{%- macro next_month(tz=None) -%}\n{{ dbt_date.n_months_away(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_months_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.899371, "supported_languages": null}, "macro.dbt_date.day_name": {"unique_id": "macro.dbt_date.day_name", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "day_name", "macro_sql": "{%- macro day_name(date, short=True) -%}\n {{ adapter.dispatch('day_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.snowflake__day_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.900002, "supported_languages": null}, "macro.dbt_date.default__day_name": {"unique_id": "macro.dbt_date.default__day_name", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "default__day_name", "macro_sql": "\n\n{%- macro default__day_name(date, short) -%}\n{%- set f = 'Dy' if short else 'Day' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9002619, "supported_languages": null}, "macro.dbt_date.snowflake__day_name": {"unique_id": "macro.dbt_date.snowflake__day_name", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "snowflake__day_name", "macro_sql": "\n\n{%- macro snowflake__day_name(date, short) -%}\n {%- if short -%}\n dayname({{ date }})\n {%- else -%}\n -- long version not implemented on Snowflake so we're doing it manually :/\n case dayname({{ date }})\n when 'Mon' then 'Monday'\n when 'Tue' then 'Tuesday'\n when 'Wed' then 'Wednesday'\n when 'Thu' then 'Thursday'\n when 'Fri' then 'Friday'\n when 'Sat' then 'Saturday'\n when 'Sun' then 'Sunday'\n end\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.900465, "supported_languages": null}, "macro.dbt_date.bigquery__day_name": {"unique_id": "macro.dbt_date.bigquery__day_name", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "bigquery__day_name", "macro_sql": "\n\n{%- macro bigquery__day_name(date, short) -%}\n{%- set f = '%a' if short else '%A' -%}\n format_date('{{ f }}', cast({{ date }} as date))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.900657, "supported_languages": null}, "macro.dbt_date.postgres__day_name": {"unique_id": "macro.dbt_date.postgres__day_name", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "postgres__day_name", "macro_sql": "\n\n{%- macro postgres__day_name(date, short) -%}\n{# FM = Fill mode, which suppresses padding blanks #}\n{%- set f = 'FMDy' if short else 'FMDay' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9008498, "supported_languages": null}, "macro.dbt_date.to_unixtimestamp": {"unique_id": "macro.dbt_date.to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "name": "to_unixtimestamp", "macro_sql": "{%- macro to_unixtimestamp(timestamp) -%}\n {{ adapter.dispatch('to_unixtimestamp', 'dbt_date') (timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.snowflake__to_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.901202, "supported_languages": null}, "macro.dbt_date.default__to_unixtimestamp": {"unique_id": "macro.dbt_date.default__to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "name": "default__to_unixtimestamp", "macro_sql": "\n\n{%- macro default__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch', timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.901336, "supported_languages": null}, "macro.dbt_date.snowflake__to_unixtimestamp": {"unique_id": "macro.dbt_date.snowflake__to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "name": "snowflake__to_unixtimestamp", "macro_sql": "\n\n{%- macro snowflake__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch_seconds', timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.90147, "supported_languages": null}, "macro.dbt_date.bigquery__to_unixtimestamp": {"unique_id": "macro.dbt_date.bigquery__to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "name": "bigquery__to_unixtimestamp", "macro_sql": "\n\n{%- macro bigquery__to_unixtimestamp(timestamp) -%}\n unix_seconds({{ timestamp }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.90157, "supported_languages": null}, "macro.dbt_date.n_days_away": {"unique_id": "macro.dbt_date.n_days_away", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/n_days_away.sql", "original_file_path": "macros/calendar_date/n_days_away.sql", "name": "n_days_away", "macro_sql": "{%- macro n_days_away(n, date=None, tz=None) -%}\n{{ dbt_date.n_days_ago(-1 * n, date, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.901866, "supported_languages": null}, "macro.dbt_date.week_start": {"unique_id": "macro.dbt_date.week_start", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "name": "week_start", "macro_sql": "{%- macro week_start(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('week_start', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.902364, "supported_languages": null}, "macro.dbt_date.default__week_start": {"unique_id": "macro.dbt_date.default__week_start", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "name": "default__week_start", "macro_sql": "{%- macro default__week_start(date) -%}\ncast({{ dbt.date_trunc('week', date) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.902504, "supported_languages": null}, "macro.dbt_date.snowflake__week_start": {"unique_id": "macro.dbt_date.snowflake__week_start", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "name": "snowflake__week_start", "macro_sql": "\n\n{%- macro snowflake__week_start(date) -%}\n {#\n Get the day of week offset: e.g. if the date is a Sunday,\n dbt_date.day_of_week returns 1, so we subtract 1 to get a 0 offset\n #}\n {% set off_set = dbt_date.day_of_week(date, isoweek=False) ~ \" - 1\" %}\n cast({{ dbt.dateadd(\"day\", \"-1 * (\" ~ off_set ~ \")\", date) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.day_of_week", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.902784, "supported_languages": null}, "macro.dbt_date.postgres__week_start": {"unique_id": "macro.dbt_date.postgres__week_start", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "name": "postgres__week_start", "macro_sql": "\n\n{%- macro postgres__week_start(date) -%}\n-- Sunday as week start date\ncast({{ dbt.dateadd('day', -1, dbt.date_trunc('week', dbt.dateadd('day', 1, date))) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.903035, "supported_languages": null}, "macro.dbt_date.iso_week_start": {"unique_id": "macro.dbt_date.iso_week_start", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "iso_week_start", "macro_sql": "{%- macro iso_week_start(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('iso_week_start', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9035509, "supported_languages": null}, "macro.dbt_date._iso_week_start": {"unique_id": "macro.dbt_date._iso_week_start", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "_iso_week_start", "macro_sql": "{%- macro _iso_week_start(date, week_type) -%}\ncast({{ dbt.date_trunc(week_type, date) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.903698, "supported_languages": null}, "macro.dbt_date.default__iso_week_start": {"unique_id": "macro.dbt_date.default__iso_week_start", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "default__iso_week_start", "macro_sql": "\n\n{%- macro default__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'isoweek') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9038332, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_start": {"unique_id": "macro.dbt_date.snowflake__iso_week_start", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "snowflake__iso_week_start", "macro_sql": "\n\n{%- macro snowflake__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9039621, "supported_languages": null}, "macro.dbt_date.postgres__iso_week_start": {"unique_id": "macro.dbt_date.postgres__iso_week_start", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "postgres__iso_week_start", "macro_sql": "\n\n{%- macro postgres__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9040902, "supported_languages": null}, "macro.dbt_date.n_days_ago": {"unique_id": "macro.dbt_date.n_days_ago", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/n_days_ago.sql", "original_file_path": "macros/calendar_date/n_days_ago.sql", "name": "n_days_ago", "macro_sql": "{%- macro n_days_ago(n, date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{%- set n = n|int -%}\ncast({{ dbt.dateadd('day', -1 * n, dt) }} as date)\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.904545, "supported_languages": null}, "macro.dbt_date.last_week": {"unique_id": "macro.dbt_date.last_week", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/last_week.sql", "original_file_path": "macros/calendar_date/last_week.sql", "name": "last_week", "macro_sql": "{%- macro last_week(tz=None) -%}\n{{ dbt_date.n_weeks_ago(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_weeks_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.904788, "supported_languages": null}, "macro.dbt_date.now": {"unique_id": "macro.dbt_date.now", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/now.sql", "original_file_path": "macros/calendar_date/now.sql", "name": "now", "macro_sql": "{%- macro now(tz=None) -%}\n{{ dbt_date.convert_timezone(dbt.current_timestamp(), tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.convert_timezone", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.905038, "supported_languages": null}, "macro.dbt_date.periods_since": {"unique_id": "macro.dbt_date.periods_since", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/periods_since.sql", "original_file_path": "macros/calendar_date/periods_since.sql", "name": "periods_since", "macro_sql": "{%- macro periods_since(date_col, period_name='day', tz=None) -%}\n{{ dbt.datediff(date_col, dbt_date.now(tz), period_name) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.90541, "supported_languages": null}, "macro.dbt_date.today": {"unique_id": "macro.dbt_date.today", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/today.sql", "original_file_path": "macros/calendar_date/today.sql", "name": "today", "macro_sql": "{%- macro today(tz=None) -%}\ncast({{ dbt_date.now(tz) }} as date)\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.905636, "supported_languages": null}, "macro.dbt_date.last_month": {"unique_id": "macro.dbt_date.last_month", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/last_month.sql", "original_file_path": "macros/calendar_date/last_month.sql", "name": "last_month", "macro_sql": "{%- macro last_month(tz=None) -%}\n{{ dbt_date.n_months_ago(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_months_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.905865, "supported_languages": null}, "macro.dbt_date.day_of_year": {"unique_id": "macro.dbt_date.day_of_year", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "name": "day_of_year", "macro_sql": "{%- macro day_of_year(date) -%}\n{{ adapter.dispatch('day_of_year', 'dbt_date') (date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__day_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.906214, "supported_languages": null}, "macro.dbt_date.default__day_of_year": {"unique_id": "macro.dbt_date.default__day_of_year", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "name": "default__day_of_year", "macro_sql": "\n\n{%- macro default__day_of_year(date) -%}\n {{ dbt_date.date_part('dayofyear', date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.906348, "supported_languages": null}, "macro.dbt_date.postgres__day_of_year": {"unique_id": "macro.dbt_date.postgres__day_of_year", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "name": "postgres__day_of_year", "macro_sql": "\n\n{%- macro postgres__day_of_year(date) -%}\n {{ dbt_date.date_part('doy', date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.906484, "supported_languages": null}, "macro.dbt_date.redshift__day_of_year": {"unique_id": "macro.dbt_date.redshift__day_of_year", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "name": "redshift__day_of_year", "macro_sql": "\n\n{%- macro redshift__day_of_year(date) -%}\n cast({{ dbt_date.date_part('dayofyear', date) }} as {{ dbt.type_bigint() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.906658, "supported_languages": null}, "macro.dbt_date.round_timestamp": {"unique_id": "macro.dbt_date.round_timestamp", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/round_timestamp.sql", "original_file_path": "macros/calendar_date/round_timestamp.sql", "name": "round_timestamp", "macro_sql": "{% macro round_timestamp(timestamp) %}\n {{ dbt.date_trunc(\"day\", dbt.dateadd(\"hour\", 12, timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9069529, "supported_languages": null}, "macro.dbt_date.from_unixtimestamp": {"unique_id": "macro.dbt_date.from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "from_unixtimestamp", "macro_sql": "{%- macro from_unixtimestamp(epochs, format=\"seconds\") -%}\n {{ adapter.dispatch('from_unixtimestamp', 'dbt_date') (epochs, format) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.snowflake__from_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9081779, "supported_languages": null}, "macro.dbt_date.default__from_unixtimestamp": {"unique_id": "macro.dbt_date.default__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "default__from_unixtimestamp", "macro_sql": "\n\n{%- macro default__from_unixtimestamp(epochs, format=\"seconds\") -%}\n {%- if format != \"seconds\" -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n to_timestamp({{ epochs }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.908448, "supported_languages": null}, "macro.dbt_date.postgres__from_unixtimestamp": {"unique_id": "macro.dbt_date.postgres__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "postgres__from_unixtimestamp", "macro_sql": "\n\n{%- macro postgres__from_unixtimestamp(epochs, format=\"seconds\") -%}\n {%- if format != \"seconds\" -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n cast(to_timestamp({{ epochs }}) at time zone 'UTC' as timestamp)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9087071, "supported_languages": null}, "macro.dbt_date.snowflake__from_unixtimestamp": {"unique_id": "macro.dbt_date.snowflake__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "snowflake__from_unixtimestamp", "macro_sql": "\n\n{%- macro snowflake__from_unixtimestamp(epochs, format) -%}\n {%- if format == \"seconds\" -%}\n {%- set scale = 0 -%}\n {%- elif format == \"milliseconds\" -%}\n {%- set scale = 3 -%}\n {%- elif format == \"microseconds\" -%}\n {%- set scale = 6 -%}\n {%- else -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n to_timestamp_ntz({{ epochs }}, {{ scale }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.909162, "supported_languages": null}, "macro.dbt_date.bigquery__from_unixtimestamp": {"unique_id": "macro.dbt_date.bigquery__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "bigquery__from_unixtimestamp", "macro_sql": "\n\n{%- macro bigquery__from_unixtimestamp(epochs, format) -%}\n {%- if format == \"seconds\" -%}\n timestamp_seconds({{ epochs }})\n {%- elif format == \"milliseconds\" -%}\n timestamp_millis({{ epochs }})\n {%- elif format == \"microseconds\" -%}\n timestamp_micros({{ epochs }})\n {%- else -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.909535, "supported_languages": null}, "macro.dbt_date.n_months_ago": {"unique_id": "macro.dbt_date.n_months_ago", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/n_months_ago.sql", "original_file_path": "macros/calendar_date/n_months_ago.sql", "name": "n_months_ago", "macro_sql": "{%- macro n_months_ago(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('month',\n dbt.dateadd('month', -1 * n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.909986, "supported_languages": null}, "macro.dbt_date.date_part": {"unique_id": "macro.dbt_date.date_part", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "name": "date_part", "macro_sql": "{% macro date_part(datepart, date) -%}\n {{ adapter.dispatch('date_part', 'dbt_date') (datepart, date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.910341, "supported_languages": null}, "macro.dbt_date.default__date_part": {"unique_id": "macro.dbt_date.default__date_part", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "name": "default__date_part", "macro_sql": "{% macro default__date_part(datepart, date) -%}\n date_part('{{ datepart }}', {{ date }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.910471, "supported_languages": null}, "macro.dbt_date.bigquery__date_part": {"unique_id": "macro.dbt_date.bigquery__date_part", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "name": "bigquery__date_part", "macro_sql": "{% macro bigquery__date_part(datepart, date) -%}\n extract({{ datepart }} from {{ date }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9105961, "supported_languages": null}, "macro.dbt_date.n_weeks_away": {"unique_id": "macro.dbt_date.n_weeks_away", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/n_weeks_away.sql", "original_file_path": "macros/calendar_date/n_weeks_away.sql", "name": "n_weeks_away", "macro_sql": "{%- macro n_weeks_away(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('week',\n dbt.dateadd('week', n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9109938, "supported_languages": null}, "macro.dbt_date.day_of_month": {"unique_id": "macro.dbt_date.day_of_month", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_month.sql", "original_file_path": "macros/calendar_date/day_of_month.sql", "name": "day_of_month", "macro_sql": "{%- macro day_of_month(date) -%}\n{{ dbt_date.date_part('day', date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.911273, "supported_languages": null}, "macro.dbt_date.redshift__day_of_month": {"unique_id": "macro.dbt_date.redshift__day_of_month", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_month.sql", "original_file_path": "macros/calendar_date/day_of_month.sql", "name": "redshift__day_of_month", "macro_sql": "\n\n{%- macro redshift__day_of_month(date) -%}\ncast({{ dbt_date.date_part('day', date) }} as {{ dbt.type_bigint() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9114509, "supported_languages": null}, "macro.dbt_date.yesterday": {"unique_id": "macro.dbt_date.yesterday", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/yesterday.sql", "original_file_path": "macros/calendar_date/yesterday.sql", "name": "yesterday", "macro_sql": "{%- macro yesterday(date=None, tz=None) -%}\n{{ dbt_date.n_days_ago(1, date, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.911798, "supported_languages": null}, "macro.dbt_date.day_of_week": {"unique_id": "macro.dbt_date.day_of_week", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "day_of_week", "macro_sql": "{%- macro day_of_week(date, isoweek=true) -%}\n{{ adapter.dispatch('day_of_week', 'dbt_date') (date, isoweek) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.snowflake__day_of_week"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.913446, "supported_languages": null}, "macro.dbt_date.default__day_of_week": {"unique_id": "macro.dbt_date.default__day_of_week", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "default__day_of_week", "macro_sql": "\n\n{%- macro default__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('dayofweek', date) -%}\n\n {%- if isoweek -%}\n case\n -- Shift start of week from Sunday (0) to Monday (1)\n when {{ dow }} = 0 then 7\n else {{ dow }}\n end\n {%- else -%}\n {{ dow }} + 1\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.913735, "supported_languages": null}, "macro.dbt_date.snowflake__day_of_week": {"unique_id": "macro.dbt_date.snowflake__day_of_week", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "snowflake__day_of_week", "macro_sql": "\n\n{%- macro snowflake__day_of_week(date, isoweek) -%}\n\n {%- if isoweek -%}\n {%- set dow_part = 'dayofweekiso' -%}\n {{ dbt_date.date_part(dow_part, date) }}\n {%- else -%}\n {%- set dow_part = 'dayofweek' -%}\n case\n when {{ dbt_date.date_part(dow_part, date) }} = 7 then 1\n else {{ dbt_date.date_part(dow_part, date) }} + 1\n end\n {%- endif -%}\n\n\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9141219, "supported_languages": null}, "macro.dbt_date.bigquery__day_of_week": {"unique_id": "macro.dbt_date.bigquery__day_of_week", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "bigquery__day_of_week", "macro_sql": "\n\n{%- macro bigquery__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('dayofweek', date) -%}\n\n {%- if isoweek -%}\n case\n -- Shift start of week from Sunday (1) to Monday (2)\n when {{ dow }} = 1 then 7\n else {{ dow }} - 1\n end\n {%- else -%}\n {{ dow }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.914399, "supported_languages": null}, "macro.dbt_date.postgres__day_of_week": {"unique_id": "macro.dbt_date.postgres__day_of_week", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "postgres__day_of_week", "macro_sql": "\n\n\n{%- macro postgres__day_of_week(date, isoweek) -%}\n\n {%- if isoweek -%}\n {%- set dow_part = 'isodow' -%}\n -- Monday(1) to Sunday (7)\n cast({{ dbt_date.date_part(dow_part, date) }} as {{ dbt.type_int() }})\n {%- else -%}\n {%- set dow_part = 'dow' -%}\n -- Sunday(1) to Saturday (7)\n cast({{ dbt_date.date_part(dow_part, date) }} + 1 as {{ dbt.type_int() }})\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9148061, "supported_languages": null}, "macro.dbt_date.redshift__day_of_week": {"unique_id": "macro.dbt_date.redshift__day_of_week", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "redshift__day_of_week", "macro_sql": "\n\n\n{%- macro redshift__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('dayofweek', date) -%}\n\n {%- if isoweek -%}\n case\n -- Shift start of week from Sunday (0) to Monday (1)\n when {{ dow }} = 0 then 7\n else cast({{ dow }} as {{ dbt.type_bigint() }})\n end\n {%- else -%}\n cast({{ dow }} + 1 as {{ dbt.type_bigint() }})\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9151628, "supported_languages": null}, "macro.dbt_date.iso_week_end": {"unique_id": "macro.dbt_date.iso_week_end", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "name": "iso_week_end", "macro_sql": "{%- macro iso_week_end(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('iso_week_end', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9156601, "supported_languages": null}, "macro.dbt_date._iso_week_end": {"unique_id": "macro.dbt_date._iso_week_end", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "name": "_iso_week_end", "macro_sql": "{%- macro _iso_week_end(date, week_type) -%}\n{%- set dt = dbt_date.iso_week_start(date) -%}\n{{ dbt_date.n_days_away(6, dt) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.iso_week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.91586, "supported_languages": null}, "macro.dbt_date.default__iso_week_end": {"unique_id": "macro.dbt_date.default__iso_week_end", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "name": "default__iso_week_end", "macro_sql": "\n\n{%- macro default__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'isoweek') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.915995, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_end": {"unique_id": "macro.dbt_date.snowflake__iso_week_end", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "name": "snowflake__iso_week_end", "macro_sql": "\n\n{%- macro snowflake__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'weekiso') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.916129, "supported_languages": null}, "macro.dbt_date.n_weeks_ago": {"unique_id": "macro.dbt_date.n_weeks_ago", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/n_weeks_ago.sql", "original_file_path": "macros/calendar_date/n_weeks_ago.sql", "name": "n_weeks_ago", "macro_sql": "{%- macro n_weeks_ago(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('week',\n dbt.dateadd('week', -1 * n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.916542, "supported_languages": null}, "macro.dbt_date.month_name": {"unique_id": "macro.dbt_date.month_name", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "month_name", "macro_sql": "{%- macro month_name(date, short=True) -%}\n {{ adapter.dispatch('month_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.snowflake__month_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.917044, "supported_languages": null}, "macro.dbt_date.default__month_name": {"unique_id": "macro.dbt_date.default__month_name", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "default__month_name", "macro_sql": "\n\n{%- macro default__month_name(date, short) -%}\n{%- set f = 'MON' if short else 'MONTH' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9172459, "supported_languages": null}, "macro.dbt_date.bigquery__month_name": {"unique_id": "macro.dbt_date.bigquery__month_name", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "bigquery__month_name", "macro_sql": "\n\n{%- macro bigquery__month_name(date, short) -%}\n{%- set f = '%b' if short else '%B' -%}\n format_date('{{ f }}', cast({{ date }} as date))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.917436, "supported_languages": null}, "macro.dbt_date.snowflake__month_name": {"unique_id": "macro.dbt_date.snowflake__month_name", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "snowflake__month_name", "macro_sql": "\n\n{%- macro snowflake__month_name(date, short) -%}\n{%- set f = 'MON' if short else 'MMMM' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9176252, "supported_languages": null}, "macro.dbt_date.postgres__month_name": {"unique_id": "macro.dbt_date.postgres__month_name", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "postgres__month_name", "macro_sql": "\n\n{%- macro postgres__month_name(date, short) -%}\n{# FM = Fill mode, which suppresses padding blanks #}\n{%- set f = 'FMMon' if short else 'FMMonth' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.91782, "supported_languages": null}, "macro.dbt_date.last_month_name": {"unique_id": "macro.dbt_date.last_month_name", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/last_month_name.sql", "original_file_path": "macros/calendar_date/last_month_name.sql", "name": "last_month_name", "macro_sql": "{%- macro last_month_name(short=True, tz=None) -%}\n{{ dbt_date.month_name(dbt_date.last_month(tz), short=short) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.month_name", "macro.dbt_date.last_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9181151, "supported_languages": null}, "macro.dbt_date.week_of_year": {"unique_id": "macro.dbt_date.week_of_year", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "name": "week_of_year", "macro_sql": "{%- macro week_of_year(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('week_of_year', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.918565, "supported_languages": null}, "macro.dbt_date.default__week_of_year": {"unique_id": "macro.dbt_date.default__week_of_year", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "name": "default__week_of_year", "macro_sql": "{%- macro default__week_of_year(date) -%}\ncast({{ dbt_date.date_part('week', date) }} as {{ dbt.type_int() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9189272, "supported_languages": null}, "macro.dbt_date.postgres__week_of_year": {"unique_id": "macro.dbt_date.postgres__week_of_year", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "name": "postgres__week_of_year", "macro_sql": "\n\n{%- macro postgres__week_of_year(date) -%}\n{# postgresql 'week' returns isoweek. Use to_char instead.\n WW = the first week starts on the first day of the year #}\ncast(to_char({{ date }}, 'WW') as {{ dbt.type_int() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9190772, "supported_languages": null}, "macro.dbt_date.convert_timezone": {"unique_id": "macro.dbt_date.convert_timezone", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "convert_timezone", "macro_sql": "{%- macro convert_timezone(column, target_tz=None, source_tz=None) -%}\n{%- set source_tz = \"UTC\" if not source_tz else source_tz -%}\n{%- set target_tz = var(\"dbt_date:time_zone\") if not target_tz else target_tz -%}\n{{ adapter.dispatch('convert_timezone', 'dbt_date') (column, target_tz, source_tz) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.919996, "supported_languages": null}, "macro.dbt_date.default__convert_timezone": {"unique_id": "macro.dbt_date.default__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "default__convert_timezone", "macro_sql": "{% macro default__convert_timezone(column, target_tz, source_tz) -%}\nconvert_timezone('{{ source_tz }}', '{{ target_tz }}',\n cast({{ column }} as {{ dbt.type_timestamp() }})\n)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.920191, "supported_languages": null}, "macro.dbt_date.bigquery__convert_timezone": {"unique_id": "macro.dbt_date.bigquery__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "bigquery__convert_timezone", "macro_sql": "{%- macro bigquery__convert_timezone(column, target_tz, source_tz=None) -%}\ntimestamp(datetime({{ column }}, '{{ target_tz}}'))\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.920334, "supported_languages": null}, "macro.dbt_date.spark__convert_timezone": {"unique_id": "macro.dbt_date.spark__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "spark__convert_timezone", "macro_sql": "{%- macro spark__convert_timezone(column, target_tz, source_tz) -%}\nfrom_utc_timestamp(\n to_utc_timestamp({{ column }}, '{{ source_tz }}'),\n '{{ target_tz }}'\n )\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.92049, "supported_languages": null}, "macro.dbt_date.postgres__convert_timezone": {"unique_id": "macro.dbt_date.postgres__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "postgres__convert_timezone", "macro_sql": "{% macro postgres__convert_timezone(column, target_tz, source_tz) -%}\ncast(\n cast({{ column }} as {{ dbt.type_timestamp() }})\n at time zone '{{ source_tz }}' at time zone '{{ target_tz }}' as {{ dbt.type_timestamp() }}\n)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9207098, "supported_languages": null}, "macro.dbt_date.redshift__convert_timezone": {"unique_id": "macro.dbt_date.redshift__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "redshift__convert_timezone", "macro_sql": "{%- macro redshift__convert_timezone(column, target_tz, source_tz) -%}\n{{ return(dbt_date.default__convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9208908, "supported_languages": null}, "macro.dbt_date.n_months_away": {"unique_id": "macro.dbt_date.n_months_away", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/n_months_away.sql", "original_file_path": "macros/calendar_date/n_months_away.sql", "name": "n_months_away", "macro_sql": "{%- macro n_months_away(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('month',\n dbt.dateadd('month', n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.921289, "supported_languages": null}, "macro.dbt_date.iso_week_of_year": {"unique_id": "macro.dbt_date.iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "iso_week_of_year", "macro_sql": "{%- macro iso_week_of_year(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('iso_week_of_year', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.921847, "supported_languages": null}, "macro.dbt_date._iso_week_of_year": {"unique_id": "macro.dbt_date._iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "_iso_week_of_year", "macro_sql": "{%- macro _iso_week_of_year(date, week_type) -%}\ncast({{ dbt_date.date_part(week_type, date) }} as {{ dbt.type_int() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.92203, "supported_languages": null}, "macro.dbt_date.default__iso_week_of_year": {"unique_id": "macro.dbt_date.default__iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "default__iso_week_of_year", "macro_sql": "\n\n{%- macro default__iso_week_of_year(date) -%}\n{{ dbt_date._iso_week_of_year(date, 'isoweek') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.922164, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_of_year": {"unique_id": "macro.dbt_date.snowflake__iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "snowflake__iso_week_of_year", "macro_sql": "\n\n{%- macro snowflake__iso_week_of_year(date) -%}\n{{ dbt_date._iso_week_of_year(date, 'weekiso') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.922293, "supported_languages": null}, "macro.dbt_date.postgres__iso_week_of_year": {"unique_id": "macro.dbt_date.postgres__iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "postgres__iso_week_of_year", "macro_sql": "\n\n{%- macro postgres__iso_week_of_year(date) -%}\n-- postgresql week is isoweek, the first week of a year containing January 4 of that year.\n{{ dbt_date._iso_week_of_year(date, 'week') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.922431, "supported_languages": null}, "macro.dbt_date.week_end": {"unique_id": "macro.dbt_date.week_end", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "name": "week_end", "macro_sql": "{%- macro week_end(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('week_end', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.922923, "supported_languages": null}, "macro.dbt_date.default__week_end": {"unique_id": "macro.dbt_date.default__week_end", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "name": "default__week_end", "macro_sql": "{%- macro default__week_end(date) -%}\n{{ last_day(date, 'week') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9230552, "supported_languages": null}, "macro.dbt_date.snowflake__week_end": {"unique_id": "macro.dbt_date.snowflake__week_end", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "name": "snowflake__week_end", "macro_sql": "\n\n{%- macro snowflake__week_end(date) -%}\n{%- set dt = dbt_date.week_start(date) -%}\n{{ dbt_date.n_days_away(6, dt) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9232461, "supported_languages": null}, "macro.dbt_date.postgres__week_end": {"unique_id": "macro.dbt_date.postgres__week_end", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "name": "postgres__week_end", "macro_sql": "\n\n{%- macro postgres__week_end(date) -%}\n{%- set dt = dbt_date.week_start(date) -%}\n{{ dbt_date.n_days_away(6, dt) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.923438, "supported_languages": null}, "macro.dbt_date.next_month_number": {"unique_id": "macro.dbt_date.next_month_number", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/next_month_number.sql", "original_file_path": "macros/calendar_date/next_month_number.sql", "name": "next_month_number", "macro_sql": "{%- macro next_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.next_month(tz)) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_date.next_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.923706, "supported_languages": null}, "macro.dbt_date.last_month_number": {"unique_id": "macro.dbt_date.last_month_number", "package_name": "dbt_date", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_date", "path": "macros/calendar_date/last_month_number.sql", "original_file_path": "macros/calendar_date/last_month_number.sql", "name": "last_month_number", "macro_sql": "{%- macro last_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.last_month(tz)) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_date.last_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.92397, "supported_languages": null}, "macro.dbt_external_tables.bigquery__create_external_table": {"unique_id": "macro.dbt_external_tables.bigquery__create_external_table", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/bigquery/create_external_table.sql", "original_file_path": "macros/plugins/bigquery/create_external_table.sql", "name": "bigquery__create_external_table", "macro_sql": "{% macro bigquery__create_external_table(source_node) %}\n\n {%- set columns = source_node.columns.values() -%}\n {%- set external = source_node.external -%}\n {%- set partitions = external.partitions -%}\n {%- set options = external.options -%}\n \n {%- set uris = [] -%}\n {%- if options is mapping and options.get('uris', none) -%}\n {%- set uris = external.options.get('uris') -%}\n {%- else -%}\n {%- set uris = [external.location] -%}\n {%- endif -%}\n\n create or replace external table {{source(source_node.source_name, source_node.name)}}\n {%- if columns -%}(\n {% for column in columns %}\n {{column.name}} {{column.data_type}} {{- ',' if not loop.last -}}\n {%- endfor -%}\n )\n {% endif %}\n {% if options and options.get('hive_partition_uri_prefix', none) %}\n with partition columns {%- if partitions %} (\n {%- for partition in partitions %}\n {{partition.name}} {{partition.data_type}}{{',' if not loop.last}}\n {%- endfor -%}\n ) {% endif -%}\n {% endif %}\n options (\n uris = [{%- for uri in uris -%} '{{uri}}' {{- \",\" if not loop.last}} {%- endfor -%}]\n {%- if options is mapping -%}\n {%- for key, value in options.items() if key != 'uris' %}\n {%- if value is string -%}\n , {{key}} = '{{value}}'\n {%- else -%}\n , {{key}} = {{value}}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.926713, "supported_languages": null}, "macro.dbt_external_tables.bigquery__get_external_build_plan": {"unique_id": "macro.dbt_external_tables.bigquery__get_external_build_plan", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/bigquery/get_external_build_plan.sql", "original_file_path": "macros/plugins/bigquery/get_external_build_plan.sql", "name": "bigquery__get_external_build_plan", "macro_sql": "{% macro bigquery__get_external_build_plan(source_node) %}\n\n {% set build_plan = [] %}\n \n {% set old_relation = adapter.get_relation(\n database = source_node.database,\n schema = source_node.schema,\n identifier = source_node.identifier\n ) %}\n \n {% set create_or_replace = (old_relation is none or var('ext_full_refresh', false)) %}\n\n {% if create_or_replace %}\n {% set build_plan = build_plan + [dbt_external_tables.create_external_table(source_node)] %}\n {% else %}\n {% set build_plan = build_plan + dbt_external_tables.refresh_external_table(source_node) %}\n {% endif %}\n\n {% do return(build_plan) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_external_tables.create_external_table", "macro.dbt_external_tables.refresh_external_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.927596, "supported_languages": null}, "macro.dbt_external_tables.snowflake__create_external_table": {"unique_id": "macro.dbt_external_tables.snowflake__create_external_table", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/snowflake/create_external_table.sql", "original_file_path": "macros/plugins/snowflake/create_external_table.sql", "name": "snowflake__create_external_table", "macro_sql": "{% macro snowflake__create_external_table(source_node) %}\n\n {%- set columns = source_node.columns.values() -%}\n {%- set external = source_node.external -%}\n {%- set partitions = external.partitions -%}\n\n {%- set is_csv = dbt_external_tables.is_csv(external.file_format) -%}\n\n{# https://docs.snowflake.net/manuals/sql-reference/sql/create-external-table.html #}\n{# This assumes you have already created an external stage #}\n create or replace external table {{source(source_node.source_name, source_node.name)}}\n {%- if columns or partitions -%}\n (\n {%- if partitions -%}{%- for partition in partitions %}\n {{partition.name}} {{partition.data_type}} as {{partition.expression}}{{- ',' if not loop.last or columns|length > 0 -}}\n {%- endfor -%}{%- endif -%}\n {%- for column in columns %}\n {%- set column_quoted = adapter.quote(column.name) if column.quote else column.name %}\n {%- set col_expression -%}\n {%- set col_id = 'value:c' ~ loop.index if is_csv else 'value:' ~ column.name -%}\n (case when is_null_value({{col_id}}) or lower({{col_id}}) = 'null' then null else {{col_id}} end)\n {%- endset %}\n {{column_quoted}} {{column.data_type}} as ({{col_expression}}::{{column.data_type}})\n {{- ',' if not loop.last -}}\n {% endfor %}\n )\n {%- endif -%}\n {% if partitions %} partition by ({{partitions|map(attribute='name')|join(', ')}}) {% endif %}\n location = {{external.location}} {# stage #}\n {% if external.auto_refresh in (true, false) -%}\n auto_refresh = {{external.auto_refresh}}\n {%- endif %}\n {% if external.pattern -%} pattern = '{{external.pattern}}' {%- endif %}\n {% if external.integration -%} integration = '{{external.integration}}' {%- endif %}\n file_format = {{external.file_format}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_external_tables.is_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.929954, "supported_languages": null}, "macro.dbt_external_tables.snowflake__refresh_external_table": {"unique_id": "macro.dbt_external_tables.snowflake__refresh_external_table", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/snowflake/refresh_external_table.sql", "original_file_path": "macros/plugins/snowflake/refresh_external_table.sql", "name": "snowflake__refresh_external_table", "macro_sql": "{% macro snowflake__refresh_external_table(source_node) %}\n\n {% set external = source_node.external %}\n {% set snowpipe = source_node.external.get('snowpipe', none) %}\n \n {% set auto_refresh = external.get('auto_refresh', false) %}\n {% set partitions = external.get('partitions', none) %}\n \n {% set manual_refresh = (partitions and not auto_refresh) %}\n \n {% if manual_refresh %}\n\n {% set ddl %}\n begin;\n alter external table {{source(source_node.source_name, source_node.name)}} refresh;\n commit;\n {% endset %}\n \n {% do return([ddl]) %}\n \n {% else %}\n \n {% do return([]) %}\n \n {% endif %}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9309812, "supported_languages": null}, "macro.dbt_external_tables.snowflake__get_external_build_plan": {"unique_id": "macro.dbt_external_tables.snowflake__get_external_build_plan", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/snowflake/get_external_build_plan.sql", "original_file_path": "macros/plugins/snowflake/get_external_build_plan.sql", "name": "snowflake__get_external_build_plan", "macro_sql": "{% macro snowflake__get_external_build_plan(source_node) %}\n\n {% set build_plan = [] %}\n \n {% set old_relation = adapter.get_relation(\n database = source_node.database,\n schema = source_node.schema,\n identifier = source_node.identifier\n ) %}\n \n {% set create_or_replace = (old_relation is none or var('ext_full_refresh', false)) %}\n\n {% if source_node.external.get('snowpipe', none) is not none %}\n \n {% if create_or_replace %}\n {% set build_plan = build_plan + [\n dbt_external_tables.snowflake_create_empty_table(source_node),\n dbt_external_tables.snowflake_get_copy_sql(source_node, explicit_transaction=true),\n dbt_external_tables.snowflake_create_snowpipe(source_node)\n ] %}\n {% else %}\n {% set build_plan = build_plan + dbt_external_tables.snowflake_refresh_snowpipe(source_node) %}\n {% endif %}\n \n {% else %}\n \n {% if create_or_replace %}\n {% set build_plan = build_plan + [dbt_external_tables.create_external_table(source_node)] %}\n {% else %}\n {% set build_plan = build_plan + dbt_external_tables.refresh_external_table(source_node) %}\n {% endif %}\n \n {% endif %}\n\n {% do return(build_plan) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_external_tables.snowflake_create_empty_table", "macro.dbt_external_tables.snowflake_get_copy_sql", "macro.dbt_external_tables.snowflake_create_snowpipe", "macro.dbt_external_tables.snowflake_refresh_snowpipe", "macro.dbt_external_tables.create_external_table", "macro.dbt_external_tables.refresh_external_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.932534, "supported_languages": null}, "macro.dbt_external_tables.snowflake_create_snowpipe": {"unique_id": "macro.dbt_external_tables.snowflake_create_snowpipe", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/snowflake/snowpipe/create_snowpipe.sql", "original_file_path": "macros/plugins/snowflake/snowpipe/create_snowpipe.sql", "name": "snowflake_create_snowpipe", "macro_sql": "{% macro snowflake_create_snowpipe(source_node) %}\n\n {%- set external = source_node.external -%}\n {%- set snowpipe = external.snowpipe -%}\n\n{# https://docs.snowflake.com/en/sql-reference/sql/create-pipe.html #}\n create or replace pipe {{source(source_node.source_name, source_node.name)}}\n {% if snowpipe.auto_ingest -%} auto_ingest = {{snowpipe.auto_ingest}} {%- endif %}\n {% if snowpipe.aws_sns_topic -%} aws_sns_topic = '{{snowpipe.aws_sns_topic}}' {%- endif %}\n {% if snowpipe.integration -%} integration = '{{snowpipe.integration}}' {%- endif %}\n as {{ dbt_external_tables.snowflake_get_copy_sql(source_node) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_external_tables.snowflake_get_copy_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.933277, "supported_languages": null}, "macro.dbt_external_tables.snowflake_create_empty_table": {"unique_id": "macro.dbt_external_tables.snowflake_create_empty_table", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/snowflake/snowpipe/create_empty_table.sql", "original_file_path": "macros/plugins/snowflake/snowpipe/create_empty_table.sql", "name": "snowflake_create_empty_table", "macro_sql": "{% macro snowflake_create_empty_table(source_node) %}\n\n {%- set columns = source_node.columns.values() %}\n\n create or replace table {{source(source_node.source_name, source_node.name)}} (\n {% if columns|length == 0 %}\n value variant,\n {% else -%}\n {%- for column in columns -%}\n {{column.name}} {{column.data_type}},\n {% endfor -%}\n {% endif %}\n metadata_filename varchar,\n metadata_file_row_number bigint,\n _dbt_copied_at timestamp\n );\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.933904, "supported_languages": null}, "macro.dbt_external_tables.snowflake_refresh_snowpipe": {"unique_id": "macro.dbt_external_tables.snowflake_refresh_snowpipe", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/snowflake/snowpipe/refresh_snowpipe.sql", "original_file_path": "macros/plugins/snowflake/snowpipe/refresh_snowpipe.sql", "name": "snowflake_refresh_snowpipe", "macro_sql": "{% macro snowflake_refresh_snowpipe(source_node) %}\n\n {% set snowpipe = source_node.external.snowpipe %}\n {% set auto_ingest = snowpipe.get('auto_ingest', false) if snowpipe is mapping %}\n \n {% if auto_ingest is true %}\n \n {% do return([]) %}\n \n {% else %}\n \n {% set ddl %}\n alter pipe {{source(source_node.source_name, source_node.name)}} refresh\n {% endset %}\n \n {{ return([ddl]) }}\n \n {% endif %}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.934638, "supported_languages": null}, "macro.dbt_external_tables.snowflake_get_copy_sql": {"unique_id": "macro.dbt_external_tables.snowflake_get_copy_sql", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/snowflake/snowpipe/get_copy_sql.sql", "original_file_path": "macros/plugins/snowflake/snowpipe/get_copy_sql.sql", "name": "snowflake_get_copy_sql", "macro_sql": "{% macro snowflake_get_copy_sql(source_node, explicit_transaction=false) %}\n{# This assumes you have already created an external stage #}\n\n {%- set columns = source_node.columns.values() -%}\n {%- set external = source_node.external -%}\n {%- set is_csv = dbt_external_tables.is_csv(external.file_format) %}\n {%- set copy_options = external.snowpipe.get('copy_options', none) -%}\n \n {%- if explicit_transaction -%} begin; {%- endif %}\n \n copy into {{source(source_node.source_name, source_node.name)}}\n from ( \n select\n {% if columns|length == 0 %}\n $1::variant as value,\n {% else -%}\n {%- for column in columns -%}\n {%- set col_expression -%}\n {%- if is_csv -%}nullif(${{loop.index}},''){# special case: get columns by ordinal position #}\n {%- else -%}nullif($1:{{column.name}},''){# standard behavior: get columns by name #}\n {%- endif -%}\n {%- endset -%}\n {{col_expression}}::{{column.data_type}} as {{column.name}},\n {% endfor -%}\n {% endif %}\n metadata$filename::varchar as metadata_filename,\n metadata$file_row_number::bigint as metadata_file_row_number,\n current_timestamp::timestamp as _dbt_copied_at\n from {{external.location}} {# stage #}\n )\n file_format = {{external.file_format}}\n {% if external.pattern -%} pattern = '{{external.pattern}}' {%- endif %}\n {% if copy_options %} {{copy_options}} {% endif %};\n \n {% if explicit_transaction -%} commit; {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_external_tables.is_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9361658, "supported_languages": null}, "macro.dbt_external_tables.is_csv": {"unique_id": "macro.dbt_external_tables.is_csv", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/snowflake/helpers/is_csv.sql", "original_file_path": "macros/plugins/snowflake/helpers/is_csv.sql", "name": "is_csv", "macro_sql": "{% macro is_csv(file_format) %}\n\n{# From https://docs.snowflake.net/manuals/sql-reference/sql/create-external-table.html:\n\nImportant: The external table does not inherit the file format, if any, in the \nstage definition. You must explicitly specify any file format options for the \nexternal table using the FILE_FORMAT parameter.\n\nNote: FORMAT_NAME and TYPE are mutually exclusive; to avoid unintended behavior, \nyou should only specify one or the other when creating an external table.\n\n#}\n\n {% set ff_ltrimmed = file_format|lower|replace(' ','') %}\n\n {% if 'type=' in ff_ltrimmed %}\n \n {% if 'type=csv' in ff_ltrimmed %}\n\n {{return(true)}}\n\n {% else %}\n\n {{return(false)}}\n \n {% endif %}\n \n {% else %}\n \n {% set ff_standardized = ff_ltrimmed\n | replace('(','') | replace(')','')\n | replace('format_name=','') %}\n {% set fqn = ff_standardized.split('.') %}\n \n {% if fqn | length == 3 %}\n {% set ff_database, ff_schema, ff_identifier = fqn[0], fqn[1], fqn[2] %}\n {% elif fqn | length == 2 %}\n {% set ff_database, ff_schema, ff_identifier = target.database, fqn[0], fqn[1] %}\n {% else %}\n {% set ff_database, ff_schema, ff_identifier = target.database, target.schema, fqn[0] %}\n {% endif %}\n \n {% call statement('get_file_format', fetch_result = True) %}\n show file formats in {{ff_database}}.{{ff_schema}}\n {% endcall %}\n \n {% set ffs = load_result('get_file_format').table %}\n \n {% for ff in ffs %}\n \n {% if ff['name']|lower == ff_identifier and ff['type']|lower == 'csv' %}\n \n {{return(true)}}\n \n {% endif %}\n \n {% endfor %}\n \n {{return(false)}} \n \n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9388769, "supported_languages": null}, "macro.dbt_external_tables.redshift__create_external_table": {"unique_id": "macro.dbt_external_tables.redshift__create_external_table", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/redshift/create_external_table.sql", "original_file_path": "macros/plugins/redshift/create_external_table.sql", "name": "redshift__create_external_table", "macro_sql": "{% macro redshift__create_external_table(source_node) %}\n\n {%- set columns = source_node.columns.values() -%}\n {%- set external = source_node.external -%}\n {%- set partitions = external.partitions -%}\n\n{# https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_TABLE.html #}\n{# This assumes you have already created an external schema #}\n\n create external table {{source(source_node.source_name, source_node.name)}} (\n {% for column in columns %}\n {{adapter.quote(column.name)}} {{column.data_type}}\n {{- ',' if not loop.last -}}\n {% endfor %}\n )\n {% if partitions -%} partitioned by (\n {%- for partition in partitions -%}\n {{adapter.quote(partition.name)}} {{partition.data_type}}{{', ' if not loop.last}}\n {%- endfor -%}\n ) {%- endif %}\n {% if external.row_format -%} row format {{external.row_format}} {%- endif %}\n {% if external.file_format -%} stored as {{external.file_format}} {%- endif %}\n {% if external.location -%} location '{{external.location}}' {%- endif %}\n {% if external.table_properties -%} table properties {{external.table_properties}} {%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9403331, "supported_languages": null}, "macro.dbt_external_tables.redshift__refresh_external_table": {"unique_id": "macro.dbt_external_tables.redshift__refresh_external_table", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/redshift/refresh_external_table.sql", "original_file_path": "macros/plugins/redshift/refresh_external_table.sql", "name": "redshift__refresh_external_table", "macro_sql": "{% macro redshift__refresh_external_table(source_node) %}\n\n {%- set partitions = source_node.external.get('partitions',[]) -%}\n\n {%- if partitions -%}\n \n {%- set part_len = partitions|length -%}\n \n {%- set get_partitions_sql -%}\n \n select * from\n \n {%- for partition in partitions %} (\n \n {%- set part_num = loop.index -%}\n \n {%- if partition.vals.macro -%}\n {%- set vals = dbt_external_tables.render_from_context(partition.vals.macro, **partition.vals.args) -%}\n {%- elif partition.vals is string -%}\n {%- set vals = [partition.vals] -%}\n {%- else -%}\n {%- set vals = partition.vals -%}\n {%- endif -%}\n \n {%- for val in vals %}\n \n select\n '\"{{ partition.name }}\"' as name_{{ part_num }},\n '\"{{ val }}\"' as val_{{ part_num }},\n '\"{{ dbt_external_tables.render_from_context(partition.path_macro, partition.name, val) }}\"' as path_{{ part_num }}\n \n {{ 'union all' if not loop.last else ') ' }}\n \n {%- endfor -%}\n \n {{ 'cross join' if not loop.last }}\n \n {%- endfor -%}\n \n {%- endset -%}\n \n {%- set finals = [] -%}\n \n {%- if execute -%}\n {%- set results = run_query(get_partitions_sql) -%}\n {%- for row in results -%}\n \n {%- set partition_parts = [] -%}\n {%- set path_parts = [] -%}\n \n {%- for i in range(0, part_len) -%}\n {%- do partition_parts.append({\n 'name': row[i * 3][1:-1],\n 'value': row[i * 3 + 1][1:-1]\n }) -%}\n {%- do path_parts.append(row[i * 3 + 2][1:-1]) -%}\n {%- endfor -%}\n \n {%- set construct = {\n 'partition_by': partition_parts,\n 'path': path_parts | join('/')\n } -%}\n \n {% do finals.append(construct) %}\n {%- endfor -%}\n {%- endif -%}\n \n {%- set ddl = dbt_external_tables.redshift_alter_table_add_partitions(source_node, finals) -%}\n {{ return(ddl) }}\n \n {% else %}\n \n {% do return([]) %}\n \n {% endif %}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_external_tables.render_from_context", "macro.dbt.run_query", "macro.dbt_external_tables.redshift_alter_table_add_partitions"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.945038, "supported_languages": null}, "macro.dbt_external_tables.redshift__get_external_build_plan": {"unique_id": "macro.dbt_external_tables.redshift__get_external_build_plan", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/redshift/get_external_build_plan.sql", "original_file_path": "macros/plugins/redshift/get_external_build_plan.sql", "name": "redshift__get_external_build_plan", "macro_sql": "{% macro redshift__get_external_build_plan(source_node) %}\n\n {% set build_plan = [] %}\n \n {% set create_or_replace = (var('ext_full_refresh', false) or not redshift_is_ext_tbl(source_node)) %}\n \n {% if create_or_replace %}\n\n {% set build_plan = [\n dbt_external_tables.dropif(source_node),\n dbt_external_tables.create_external_table(source_node)\n ] + dbt_external_tables.refresh_external_table(source_node) \n %}\n \n {% else %}\n \n {% set build_plan = dbt_external_tables.refresh_external_table(source_node) %}\n \n {% endif %}\n \n {% do return(build_plan) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_external_tables.redshift_is_ext_tbl", "macro.dbt_external_tables.dropif", "macro.dbt_external_tables.create_external_table", "macro.dbt_external_tables.refresh_external_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.945864, "supported_languages": null}, "macro.dbt_external_tables.render_from_context": {"unique_id": "macro.dbt_external_tables.render_from_context", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/redshift/helpers/render_macro.sql", "original_file_path": "macros/plugins/redshift/helpers/render_macro.sql", "name": "render_from_context", "macro_sql": "{% macro render_from_context(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called by macro '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n \n {{ return(package_context[name](*varargs, **kwargs)) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.946947, "supported_languages": null}, "macro.dbt_external_tables.redshift__dropif": {"unique_id": "macro.dbt_external_tables.redshift__dropif", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/redshift/helpers/dropif.sql", "original_file_path": "macros/plugins/redshift/helpers/dropif.sql", "name": "redshift__dropif", "macro_sql": "{% macro redshift__dropif(node) %}\n \n {% set ddl %}\n drop table if exists {{source(node.source_name, node.name)}} cascade\n {% endset %}\n \n {{return(ddl)}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9473011, "supported_languages": null}, "macro.dbt_external_tables.redshift_alter_table_add_partitions": {"unique_id": "macro.dbt_external_tables.redshift_alter_table_add_partitions", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/redshift/helpers/add_partitions.sql", "original_file_path": "macros/plugins/redshift/helpers/add_partitions.sql", "name": "redshift_alter_table_add_partitions", "macro_sql": "{% macro redshift_alter_table_add_partitions(source_node, partitions) %}\n\n {{ log(\"Generating ADD PARTITION statement for partition set between \" \n ~ partitions[0]['path'] ~ \" and \" ~ (partitions|last)['path']) }}\n\n {% set ddl = [] %}\n \n {% if partitions|length > 0 %}\n \n {% set alter_table_add %}\n alter table {{source(source_node.source_name, source_node.name)}} add if not exists \n {% endset %}\n \n {%- set alters -%}\n\n {{ alter_table_add }}\n\n {%- for partition in partitions -%}\n\n {%- if loop.index0 != 0 and loop.index0 % 100 == 0 -%}\n\n ; {{ alter_table_add }}\n\n {%- endif -%}\n\n partition ({%- for part in partition.partition_by -%}{{ part.name }}='{{ part.value }}'{{', ' if not loop.last}}{%- endfor -%})\n location '{{ source_node.external.location }}/{{ partition.path }}/'\n\n {% endfor -%}\n \n {%- endset -%}\n \n {% set ddl = ddl + alters.split(';') %}\n\n {% else %}\n\n {{ log(\"No partitions to be added\") }}\n\n {% endif %}\n \n {% do return(ddl) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.948949, "supported_languages": null}, "macro.dbt_external_tables.redshift__exit_transaction": {"unique_id": "macro.dbt_external_tables.redshift__exit_transaction", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/redshift/helpers/transaction.sql", "original_file_path": "macros/plugins/redshift/helpers/transaction.sql", "name": "redshift__exit_transaction", "macro_sql": "{% macro redshift__exit_transaction() %}\n {{ return('begin; commit;') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9491708, "supported_languages": null}, "macro.dbt_external_tables.year_month_day": {"unique_id": "macro.dbt_external_tables.year_month_day", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/redshift/helpers/paths.sql", "original_file_path": "macros/plugins/redshift/helpers/paths.sql", "name": "year_month_day", "macro_sql": "{% macro year_month_day(name, value) %}\n {% set path = value.replace('-','/') %}\n {{return(path)}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.949552, "supported_languages": null}, "macro.dbt_external_tables.key_value": {"unique_id": "macro.dbt_external_tables.key_value", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/redshift/helpers/paths.sql", "original_file_path": "macros/plugins/redshift/helpers/paths.sql", "name": "key_value", "macro_sql": "{% macro key_value(name, value) %}\n {% set path = name ~ '=' ~ value %}\n {{return(path)}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9497442, "supported_languages": null}, "macro.dbt_external_tables.value_only": {"unique_id": "macro.dbt_external_tables.value_only", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/redshift/helpers/paths.sql", "original_file_path": "macros/plugins/redshift/helpers/paths.sql", "name": "value_only", "macro_sql": "{% macro value_only(name, value) %}\n {% set path = value %}\n {{return(path)}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.949909, "supported_languages": null}, "macro.dbt_external_tables.redshift_is_ext_tbl": {"unique_id": "macro.dbt_external_tables.redshift_is_ext_tbl", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/redshift/helpers/is_ext_tbl.sql", "original_file_path": "macros/plugins/redshift/helpers/is_ext_tbl.sql", "name": "redshift_is_ext_tbl", "macro_sql": "{% macro redshift_is_ext_tbl(node) %}\n\n {% set existing_relation = load_relation(node) %}\n \n {# external tables don't appear in information_schema.tables,\n so dbt doesn't cache them #}\n {% if existing_relation is none %}\n\n {% set find_ext_tbl %}\n \n select count(*) from svv_external_tables\n where schemaname = '{{node.schema}}'\n and tablename = '{{node.identifier}}'\n \n {% endset %}\n \n {% if execute %}\n {% set result = run_query(find_ext_tbl)[0][0] %}\n {% else %}\n {% set result = 0 %}\n {% endif %}\n\n {% set is_ext_tbl = (result > 0) %}\n {% do return(is_ext_tbl) %}\n \n {% else %}\n \n {% do return(false) %}\n \n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_relation", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.950915, "supported_languages": null}, "macro.dbt_external_tables.sqlserver__create_external_table": {"unique_id": "macro.dbt_external_tables.sqlserver__create_external_table", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/sqlserver/create_external_table.sql", "original_file_path": "macros/plugins/sqlserver/create_external_table.sql", "name": "sqlserver__create_external_table", "macro_sql": "{% macro sqlserver__create_external_table(source_node) %}\n\n {%- set columns = source_node.columns.values() -%}\n {%- set external = source_node.external -%}\n\n {% if external.ansi_nulls is true -%} SET ANSI_NULLS ON; {%- endif %}\n {% if external.quoted_identifier is true -%} SET QUOTED_IDENTIFIER ON; {%- endif %}\n\n create external table {{source(source_node.source_name, source_node.name)}} (\n {% for column in columns %}\n {# TODO set nullity based on schema tests?? #}\n {%- set nullity = 'NOT NULL' if 'not_null' in columns.tests else 'NULL'-%}\n {{adapter.quote(column.name)}} {{column.data_type}} {{nullity}}\n {{- ',' if not loop.last -}}\n {% endfor %}\n )\n WITH (\n {# remove keys that are None (i.e. not defined for a given source) #}\n {%- for key, value in external.items() if value is not none and key not in ['ansi_nulls', 'quoted_identifier'] -%}\n {{key}} = \n {%- if key in [\"location\", \"schema_name\", \"object_name\"] -%}\n '{{value}}'\n {% elif key in [\"data_source\",\"file_format\"] -%}\n [{{value}}]\n {% else -%}\n {{value}}\n {%- endif -%}\n {{- ',' if not loop.last -}}\n {%- endfor -%}\n )\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.95246, "supported_languages": null}, "macro.dbt_external_tables.sqlserver__get_external_build_plan": {"unique_id": "macro.dbt_external_tables.sqlserver__get_external_build_plan", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/sqlserver/get_external_build_plan.sql", "original_file_path": "macros/plugins/sqlserver/get_external_build_plan.sql", "name": "sqlserver__get_external_build_plan", "macro_sql": "{% macro sqlserver__get_external_build_plan(source_node) %}\n\n {% set build_plan = [] %}\n\n {% set old_relation = adapter.get_relation(\n database = source_node.database,\n schema = source_node.schema,\n identifier = source_node.identifier\n ) %}\n\n {% set create_or_replace = (old_relation is none or var('ext_full_refresh', false)) %}\n\n {% if create_or_replace %}\n {% set build_plan = build_plan + [ \n dbt_external_tables.dropif(source_node), \n dbt_external_tables.create_external_table(source_node)\n ] %}\n {% else %}\n {% set build_plan = build_plan + dbt_external_tables.refresh_external_table(source_node) %}\n {% endif %}\n {% do return(build_plan) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_external_tables.dropif", "macro.dbt_external_tables.create_external_table", "macro.dbt_external_tables.refresh_external_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.953377, "supported_languages": null}, "macro.dbt_external_tables.sqlserver__dropif": {"unique_id": "macro.dbt_external_tables.sqlserver__dropif", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/sqlserver/helpers/dropif.sql", "original_file_path": "macros/plugins/sqlserver/helpers/dropif.sql", "name": "sqlserver__dropif", "macro_sql": "{% macro sqlserver__dropif(node) %}\n \n {% set ddl %}\n if object_id ('{{source(node.source_name, node.name)}}') is not null\n begin\n drop external table {{source(node.source_name, node.name)}}\n end\n {% endset %}\n \n {{return(ddl)}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.953815, "supported_languages": null}, "macro.dbt_external_tables.spark__create_external_table": {"unique_id": "macro.dbt_external_tables.spark__create_external_table", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/spark/create_external_table.sql", "original_file_path": "macros/plugins/spark/create_external_table.sql", "name": "spark__create_external_table", "macro_sql": "{% macro spark__create_external_table(source_node) %}\n\n {%- set columns = source_node.columns.values() -%}\n {%- set external = source_node.external -%}\n {%- set partitions = external.partitions -%}\n {%- set options = external.options -%}\n\n{# https://spark.apache.org/docs/latest/sql-data-sources-hive-tables.html #}\n create table {{source(source_node.source_name, source_node.name)}} \n {%- if columns|length > 0 %} (\n {% for column in columns %}\n {{column.name}} {{column.data_type}}\n {{- ',' if not loop.last -}}\n {% endfor %}\n ) {% endif -%}\n {% if external.using %} using {{external.using}} {%- endif %}\n {% if options -%} options (\n {%- for key, value in options.items() -%}\n '{{ key }}' = '{{value}}' {{- ', \\n' if not loop.last -}}\n {%- endfor -%}\n ) {%- endif %}\n {% if partitions -%} partitioned by (\n {%- for partition in partitions -%}\n {{partition.name}} {{partition.data_type}}{{', ' if not loop.last}}\n {%- endfor -%}\n ) {%- endif %}\n {% if external.row_format -%} row format {{external.row_format}} {%- endif %}\n {% if external.file_format -%} stored as {{external.file_format}} {%- endif %}\n {% if external.location -%} location '{{external.location}}' {%- endif %}\n {% if external.table_properties -%} tblproperties {{ external.table_properties }} {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.955883, "supported_languages": null}, "macro.dbt_external_tables.spark__refresh_external_table": {"unique_id": "macro.dbt_external_tables.spark__refresh_external_table", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/spark/refresh_external_table.sql", "original_file_path": "macros/plugins/spark/refresh_external_table.sql", "name": "spark__refresh_external_table", "macro_sql": "{% macro spark__refresh_external_table(source_node) %}\n \n {% set refresh %}\n refresh table {{source(source_node.source_name, source_node.name)}}\n {% endset %}\n \n {% do return([refresh]) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.956268, "supported_languages": null}, "macro.dbt_external_tables.spark__get_external_build_plan": {"unique_id": "macro.dbt_external_tables.spark__get_external_build_plan", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/spark/get_external_build_plan.sql", "original_file_path": "macros/plugins/spark/get_external_build_plan.sql", "name": "spark__get_external_build_plan", "macro_sql": "{% macro spark__get_external_build_plan(source_node) %}\n\n {% set build_plan = [] %}\n\n {% set old_relation = adapter.get_relation(\n database = none,\n schema = source_node.schema,\n identifier = source_node.identifier\n ) %}\n\n {% set create_or_replace = (old_relation is none or var('ext_full_refresh', false)) %}\n\n {% if create_or_replace %}\n {% set build_plan = build_plan + [\n dbt_external_tables.dropif(source_node), \n dbt_external_tables.create_external_table(source_node)\n ] %}\n {% else %}\n {% set build_plan = build_plan + dbt_external_tables.refresh_external_table(source_node) %}\n {% endif %}\n\n {% set recover_partitions = spark__recover_partitions(source_node) %}\n {% if recover_partitions|length > 0 %}\n {% set build_plan = build_plan + [\n recover_partitions\n ] %}\n {% endif %}\n\n {% do return(build_plan) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_external_tables.dropif", "macro.dbt_external_tables.create_external_table", "macro.dbt_external_tables.refresh_external_table", "macro.dbt_external_tables.spark__recover_partitions"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.957431, "supported_languages": null}, "macro.dbt_external_tables.spark__recover_partitions": {"unique_id": "macro.dbt_external_tables.spark__recover_partitions", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/spark/helpers/recover_partitions.sql", "original_file_path": "macros/plugins/spark/helpers/recover_partitions.sql", "name": "spark__recover_partitions", "macro_sql": "{% macro spark__recover_partitions(source_node) %}\n {# https://docs.databricks.com/sql/language-manual/sql-ref-syntax-ddl-alter-table.html #}\n\n {% set ddl %}\n {%- if source_node.external.partitions and source_node.external.using and source_node.external.using|lower != 'delta' -%}\n ALTER TABLE {{ source(source_node.source_name, source_node.name) }} RECOVER PARTITIONS\n {%- endif -%}\n {% endset %}\n\n {{return(ddl)}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.957957, "supported_languages": null}, "macro.dbt_external_tables.spark__dropif": {"unique_id": "macro.dbt_external_tables.spark__dropif", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/plugins/spark/helpers/dropif.sql", "original_file_path": "macros/plugins/spark/helpers/dropif.sql", "name": "spark__dropif", "macro_sql": "{% macro spark__dropif(node) %}\n \n {% set ddl %}\n drop table if exists {{source(node.source_name, node.name)}}\n {% endset %}\n \n {{return(ddl)}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9583008, "supported_languages": null}, "macro.dbt_external_tables.create_external_table": {"unique_id": "macro.dbt_external_tables.create_external_table", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/common/create_external_table.sql", "original_file_path": "macros/common/create_external_table.sql", "name": "create_external_table", "macro_sql": "{% macro create_external_table(source_node) %}\n {{ adapter.dispatch('create_external_table', 'dbt_external_tables')(source_node) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_external_tables.snowflake__create_external_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9586089, "supported_languages": null}, "macro.dbt_external_tables.default__create_external_table": {"unique_id": "macro.dbt_external_tables.default__create_external_table", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/common/create_external_table.sql", "original_file_path": "macros/common/create_external_table.sql", "name": "default__create_external_table", "macro_sql": "{% macro default__create_external_table(source_node) %}\n {{ exceptions.raise_compiler_error(\"External table creation is not implemented for the default adapter\") }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.958739, "supported_languages": null}, "macro.dbt_external_tables.refresh_external_table": {"unique_id": "macro.dbt_external_tables.refresh_external_table", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/common/refresh_external_table.sql", "original_file_path": "macros/common/refresh_external_table.sql", "name": "refresh_external_table", "macro_sql": "{% macro refresh_external_table(source_node) %}\n {{ return(adapter.dispatch('refresh_external_table', 'dbt_external_tables')(source_node)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_external_tables.snowflake__refresh_external_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9590452, "supported_languages": null}, "macro.dbt_external_tables.default__refresh_external_table": {"unique_id": "macro.dbt_external_tables.default__refresh_external_table", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/common/refresh_external_table.sql", "original_file_path": "macros/common/refresh_external_table.sql", "name": "default__refresh_external_table", "macro_sql": "{% macro default__refresh_external_table(source_node) %}\n {% do return([]) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9591758, "supported_languages": null}, "macro.dbt_external_tables.get_external_build_plan": {"unique_id": "macro.dbt_external_tables.get_external_build_plan", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/common/get_external_build_plan.sql", "original_file_path": "macros/common/get_external_build_plan.sql", "name": "get_external_build_plan", "macro_sql": "{% macro get_external_build_plan(source_node) %}\n {{ return(adapter.dispatch('get_external_build_plan', 'dbt_external_tables')(source_node)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_external_tables.snowflake__get_external_build_plan"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9594932, "supported_languages": null}, "macro.dbt_external_tables.default__get_external_build_plan": {"unique_id": "macro.dbt_external_tables.default__get_external_build_plan", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/common/get_external_build_plan.sql", "original_file_path": "macros/common/get_external_build_plan.sql", "name": "default__get_external_build_plan", "macro_sql": "{% macro default__get_external_build_plan(source_node) %}\n {{ exceptions.raise_compiler_error(\"Staging external sources is not implemented for the default adapter\") }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9596229, "supported_languages": null}, "macro.dbt_external_tables.stage_external_sources": {"unique_id": "macro.dbt_external_tables.stage_external_sources", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/common/stage_external_sources.sql", "original_file_path": "macros/common/stage_external_sources.sql", "name": "stage_external_sources", "macro_sql": "{% macro stage_external_sources(select=none) %}\n\n {% set sources_to_stage = [] %}\n \n {% set source_nodes = graph.sources.values() if graph.sources else [] %}\n \n {% for node in source_nodes %}\n {% if node.external %}\n \n {% if select %}\n \n {% for src in select.split(' ') %}\n \n {% if '.' in src %}\n {% set src_s = src.split('.') %}\n {% if src_s[0] == node.source_name and src_s[1] == node.name %}\n {% do sources_to_stage.append(node) %}\n {% endif %}\n {% else %}\n {% if src == node.source_name %}\n {% do sources_to_stage.append(node) %}\n {% endif %}\n {% endif %}\n \n {% endfor %}\n \n {% else %}\n \n {% do sources_to_stage.append(node) %}\n \n {% endif %}\n {% endif %}\n \n {% endfor %}\n \n {% if sources_to_stage|length == 0 %}\n {% do log('No external sources selected', info = true) %}\n {% endif %}\n \n {% for node in sources_to_stage %}\n\n {% set loop_label = loop.index ~ ' of ' ~ loop.length %}\n\n {% do log(loop_label ~ ' START external source ' ~ node.schema ~ '.' ~ node.identifier, info = true) -%}\n \n {% set run_queue = dbt_external_tables.get_external_build_plan(node) %}\n \n {% do log(loop_label ~ ' SKIP', info = true) if run_queue == [] %}\n {% set width = flags.PRINTER_WIDTH %}\n \n {% for q in run_queue %}\n \n {% set q_msg = q|replace('\\n','')|replace('begin;','')|trim %}\n {% set q_log = q_msg[:width] ~ '... ' if q_msg|length > width else q_msg %}\n \n {% do log(loop_label ~ ' (' ~ loop.index ~ ') ' ~ q_log, info = true) %}\n {% set exit_txn = dbt_external_tables.exit_transaction() %}\n \n {% call statement('runner', fetch_result = True, auto_begin = False) %}\n {{ exit_txn }} {{ q }}\n {% endcall %}\n \n {% set runner = load_result('runner') %}\n {% set log_msg = runner['response'] if 'response' in runner.keys() else runner['status'] %}\n {% do log(loop_label ~ ' (' ~ loop.index ~ ') ' ~ log_msg, info = true) %}\n \n {% endfor %}\n \n {% endfor %}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_external_tables.get_external_build_plan", "macro.dbt_external_tables.exit_transaction", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.964767, "supported_languages": null}, "macro.dbt_external_tables.dropif": {"unique_id": "macro.dbt_external_tables.dropif", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/common/helpers/dropif.sql", "original_file_path": "macros/common/helpers/dropif.sql", "name": "dropif", "macro_sql": "{% macro dropif(node) %}\n {{ adapter.dispatch('dropif', 'dbt_external_tables')(node) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_external_tables.default__dropif"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9650939, "supported_languages": null}, "macro.dbt_external_tables.default__dropif": {"unique_id": "macro.dbt_external_tables.default__dropif", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/common/helpers/dropif.sql", "original_file_path": "macros/common/helpers/dropif.sql", "name": "default__dropif", "macro_sql": "{% macro default__dropif() %}\n {{ exceptions.raise_compiler_error(\n \"Dropping external tables is not implemented for the default adapter\"\n ) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.965217, "supported_languages": null}, "macro.dbt_external_tables.exit_transaction": {"unique_id": "macro.dbt_external_tables.exit_transaction", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/common/helpers/transaction.sql", "original_file_path": "macros/common/helpers/transaction.sql", "name": "exit_transaction", "macro_sql": "{% macro exit_transaction() %}\n {{ return(adapter.dispatch('exit_transaction', 'dbt_external_tables')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_external_tables.default__exit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.965506, "supported_languages": null}, "macro.dbt_external_tables.default__exit_transaction": {"unique_id": "macro.dbt_external_tables.default__exit_transaction", "package_name": "dbt_external_tables", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_external_tables", "path": "macros/common/helpers/transaction.sql", "original_file_path": "macros/common/helpers/transaction.sql", "name": "default__exit_transaction", "macro_sql": "{% macro default__exit_transaction() %}\n {{ return('') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.965618, "supported_languages": null}, "macro.dbt_expectations.type_timestamp": {"unique_id": "macro.dbt_expectations.type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "type_timestamp", "macro_sql": "\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_expectations')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.snowflake__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9660301, "supported_languages": null}, "macro.dbt_expectations.default__type_timestamp": {"unique_id": "macro.dbt_expectations.default__type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() -%}\n timestamp\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9661021, "supported_languages": null}, "macro.dbt_expectations.snowflake__type_timestamp": {"unique_id": "macro.dbt_expectations.snowflake__type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() -%}\n timestamp_ntz\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.966173, "supported_languages": null}, "macro.dbt_expectations.postgres__type_timestamp": {"unique_id": "macro.dbt_expectations.postgres__type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "postgres__type_timestamp", "macro_sql": "{% macro postgres__type_timestamp() -%}\n timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.96624, "supported_languages": null}, "macro.dbt_expectations.type_datetime": {"unique_id": "macro.dbt_expectations.type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "type_datetime", "macro_sql": "{% macro type_datetime() -%}\n {{ return(adapter.dispatch('type_datetime', 'dbt_expectations')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.snowflake__type_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.966391, "supported_languages": null}, "macro.dbt_expectations.default__type_datetime": {"unique_id": "macro.dbt_expectations.default__type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "default__type_datetime", "macro_sql": "{% macro default__type_datetime() -%}\n datetime\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.966465, "supported_languages": null}, "macro.dbt_expectations.snowflake__type_datetime": {"unique_id": "macro.dbt_expectations.snowflake__type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "snowflake__type_datetime", "macro_sql": "{% macro snowflake__type_datetime() -%}\n timestamp_ntz\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.966531, "supported_languages": null}, "macro.dbt_expectations.postgres__type_datetime": {"unique_id": "macro.dbt_expectations.postgres__type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "postgres__type_datetime", "macro_sql": "{% macro postgres__type_datetime() -%}\n timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9665961, "supported_languages": null}, "macro.dbt_expectations.group_by": {"unique_id": "macro.dbt_expectations.group_by", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/utils/groupby.sql", "original_file_path": "macros/utils/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_expectations')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.966916, "supported_languages": null}, "macro.dbt_expectations.default__group_by": {"unique_id": "macro.dbt_expectations.default__group_by", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/utils/groupby.sql", "original_file_path": "macros/utils/groupby.sql", "name": "default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }}\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.967155, "supported_languages": null}, "macro.dbt_expectations.regexp_instr": {"unique_id": "macro.dbt_expectations.regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "regexp_instr", "macro_sql": "{% macro regexp_instr(source_value, regexp, position=1, occurrence=1, is_raw=False) %}\n\n {{ adapter.dispatch('regexp_instr', 'dbt_expectations')(\n source_value, regexp, position, occurrence, is_raw\n ) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.snowflake__regexp_instr"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.967791, "supported_languages": null}, "macro.dbt_expectations.default__regexp_instr": {"unique_id": "macro.dbt_expectations.default__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "default__regexp_instr", "macro_sql": "{% macro default__regexp_instr(source_value, regexp, position, occurrence, is_raw) %}\nregexp_instr({{ source_value }}, '{{ regexp }}', {{ position }}, {{ occurrence }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.967978, "supported_languages": null}, "macro.dbt_expectations.snowflake__regexp_instr": {"unique_id": "macro.dbt_expectations.snowflake__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "snowflake__regexp_instr", "macro_sql": "{% macro snowflake__regexp_instr(source_value, regexp, position, occurrence, is_raw) %}\n{%- set regexp = \"$$\" ~ regexp ~ \"$$\" if is_raw else \"'\" ~ regexp ~ \"'\" -%}\nregexp_instr({{ source_value }}, {{ regexp }}, {{ position }}, {{ occurrence }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.96827, "supported_languages": null}, "macro.dbt_expectations.bigquery__regexp_instr": {"unique_id": "macro.dbt_expectations.bigquery__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "bigquery__regexp_instr", "macro_sql": "{% macro bigquery__regexp_instr(source_value, regexp, position, occurrence, is_raw) %}\n{%- set regexp = \"r'\" ~ regexp ~ \"'\" if is_raw else \"'\" ~ regexp ~ \"'\" -%}\nregexp_instr({{ source_value }}, {{ regexp }}, {{ position }}, {{ occurrence }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9686248, "supported_languages": null}, "macro.dbt_expectations.postgres__regexp_instr": {"unique_id": "macro.dbt_expectations.postgres__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "postgres__regexp_instr", "macro_sql": "{% macro postgres__regexp_instr(source_value, regexp, position, occurrence, is_raw) %}\narray_length((select regexp_matches({{ source_value }}, '{{ regexp }}')), 1)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.968776, "supported_languages": null}, "macro.dbt_expectations.redshift__regexp_instr": {"unique_id": "macro.dbt_expectations.redshift__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "redshift__regexp_instr", "macro_sql": "{% macro redshift__regexp_instr(source_value, regexp, position, occurrence, is_raw) %}\nregexp_instr({{ source_value }}, '{{ regexp }}', {{ position }}, {{ occurrence }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9689631, "supported_languages": null}, "macro.dbt_expectations.log_natural": {"unique_id": "macro.dbt_expectations.log_natural", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "name": "log_natural", "macro_sql": "{% macro log_natural(x) -%}\n {{ adapter.dispatch('log_natural', 'dbt_expectations') (x) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.snowflake__log_natural"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.969289, "supported_languages": null}, "macro.dbt_expectations.default__log_natural": {"unique_id": "macro.dbt_expectations.default__log_natural", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "name": "default__log_natural", "macro_sql": "{% macro default__log_natural(x) -%}\n\n ln({{ x }})\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.969386, "supported_languages": null}, "macro.dbt_expectations.bigquery__log_natural": {"unique_id": "macro.dbt_expectations.bigquery__log_natural", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "name": "bigquery__log_natural", "macro_sql": "{% macro bigquery__log_natural(x) -%}\n\n ln({{ x }})\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.969493, "supported_languages": null}, "macro.dbt_expectations.snowflake__log_natural": {"unique_id": "macro.dbt_expectations.snowflake__log_natural", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "name": "snowflake__log_natural", "macro_sql": "{% macro snowflake__log_natural(x) -%}\n\n ln({{ x }})\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.969589, "supported_languages": null}, "macro.dbt_expectations.rand": {"unique_id": "macro.dbt_expectations.rand", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "rand", "macro_sql": "{% macro rand() -%}\n {{ adapter.dispatch('rand', 'dbt_expectations') () }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.snowflake__rand"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9699252, "supported_languages": null}, "macro.dbt_expectations.default__rand": {"unique_id": "macro.dbt_expectations.default__rand", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "default__rand", "macro_sql": "{% macro default__rand() -%}\n\n rand()\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.969996, "supported_languages": null}, "macro.dbt_expectations.bigquery__rand": {"unique_id": "macro.dbt_expectations.bigquery__rand", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "bigquery__rand", "macro_sql": "{% macro bigquery__rand() -%}\n\n rand()\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9700658, "supported_languages": null}, "macro.dbt_expectations.snowflake__rand": {"unique_id": "macro.dbt_expectations.snowflake__rand", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "snowflake__rand", "macro_sql": "{% macro snowflake__rand(seed) -%}\n\n uniform(0::float, 1::float, random())\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.970143, "supported_languages": null}, "macro.dbt_expectations.postgres__rand": {"unique_id": "macro.dbt_expectations.postgres__rand", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "postgres__rand", "macro_sql": "{% macro postgres__rand() -%}\n\n random()\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.970211, "supported_languages": null}, "macro.dbt_expectations.redshift__rand": {"unique_id": "macro.dbt_expectations.redshift__rand", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "redshift__rand", "macro_sql": "{% macro redshift__rand() -%}\n\n random()\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.970277, "supported_languages": null}, "macro.dbt_expectations.median": {"unique_id": "macro.dbt_expectations.median", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/math/median.sql", "original_file_path": "macros/math/median.sql", "name": "median", "macro_sql": "{% macro median(field) %}\n{{ dbt_expectations.percentile_cont(field, 0.5) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.percentile_cont"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.970528, "supported_languages": null}, "macro.dbt_expectations.percentile_cont": {"unique_id": "macro.dbt_expectations.percentile_cont", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "name": "percentile_cont", "macro_sql": "{% macro percentile_cont(field, quantile, partition=None) %}\n {{ adapter.dispatch('quantile', 'dbt_expectations') (field, quantile, partition) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__quantile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9709811, "supported_languages": null}, "macro.dbt_expectations.default__quantile": {"unique_id": "macro.dbt_expectations.default__quantile", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "name": "default__quantile", "macro_sql": "{% macro default__quantile(field, quantile, partition) -%}\n percentile_cont({{ quantile }}) within group (order by {{ field }})\n {%- if partition %}over(partition by {{ partition }}){% endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.97118, "supported_languages": null}, "macro.dbt_expectations.bigquery__quantile": {"unique_id": "macro.dbt_expectations.bigquery__quantile", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "name": "bigquery__quantile", "macro_sql": "{% macro bigquery__quantile(field, quantile, partition) -%}\n percentile_cont({{ field }}, {{ quantile }})\n over({%- if partition %}partition by {{ partition }}{% endif -%})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.97138, "supported_languages": null}, "macro.dbt_expectations.ignore_row_if_expression": {"unique_id": "macro.dbt_expectations.ignore_row_if_expression", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "name": "ignore_row_if_expression", "macro_sql": "{% macro ignore_row_if_expression(ignore_row_if, columns) %}\n {{ adapter.dispatch('ignore_row_if_expression', 'dbt_expectations') (ignore_row_if, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.971871, "supported_languages": null}, "macro.dbt_expectations.default__ignore_row_if_expression": {"unique_id": "macro.dbt_expectations.default__ignore_row_if_expression", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "name": "default__ignore_row_if_expression", "macro_sql": "{% macro default__ignore_row_if_expression(ignore_row_if, columns) %}\n {%- set ignore_row_if_values = [\"all_values_are_missing\", \"any_value_is_missing\"] -%}\n {% if ignore_row_if not in ignore_row_if_values %}\n {{ exceptions.raise_compiler_error(\n \"`ignore_row_if` must be one of \" ~ (ignore_row_if_values | join(\", \")) ~ \". Got: '\" ~ ignore_row_if ~\"'.'\"\n ) }}\n {% endif %}\n\n {%- set op = \"and\" if ignore_row_if == \"all_values_are_missing\" else \"or\" -%}\n not (\n {% for column in columns -%}\n {{ column }} is null{% if not loop.last %} {{ op }} {% endif %}\n {% endfor %}\n )\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.97245, "supported_languages": null}, "macro.dbt_expectations.test_expression_between": {"unique_id": "macro.dbt_expectations.test_expression_between", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_between.sql", "original_file_path": "macros/schema_tests/_generalized/expression_between.sql", "name": "test_expression_between", "macro_sql": "{% test expression_between(model,\n expression,\n min_value=None,\n max_value=None,\n group_by_columns=None,\n row_condition=None,\n strictly=False\n ) %}\n\n {{ dbt_expectations.expression_between(model, expression, min_value, max_value, group_by_columns, row_condition, strictly) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.973613, "supported_languages": null}, "macro.dbt_expectations.expression_between": {"unique_id": "macro.dbt_expectations.expression_between", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_between.sql", "original_file_path": "macros/schema_tests/_generalized/expression_between.sql", "name": "expression_between", "macro_sql": "{% macro expression_between(model,\n expression,\n min_value,\n max_value,\n group_by_columns,\n row_condition,\n strictly\n ) %}\n\n{%- if min_value is none and max_value is none -%}\n{{ exceptions.raise_compiler_error(\n \"You have to provide either a min_value, max_value or both.\"\n) }}\n{%- endif -%}\n\n{%- set strict_operator = \"\" if strictly else \"=\" -%}\n\n{% set expression_min_max %}\n( 1=1\n{%- if min_value is not none %} and {{ expression | trim }} >{{ strict_operator }} {{ min_value }}{% endif %}\n{%- if max_value is not none %} and {{ expression | trim }} <{{ strict_operator }} {{ max_value }}{% endif %}\n)\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression_min_max,\n group_by_columns=group_by_columns,\n row_condition=row_condition)\n }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.974394, "supported_languages": null}, "macro.dbt_expectations.test_expression_is_true": {"unique_id": "macro.dbt_expectations.test_expression_is_true", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model,\n expression,\n test_condition=\"= true\",\n group_by_columns=None,\n row_condition=None\n ) %}\n\n {{ dbt_expectations.expression_is_true(model, expression, test_condition, group_by_columns, row_condition) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.975332, "supported_languages": null}, "macro.dbt_expectations.expression_is_true": {"unique_id": "macro.dbt_expectations.expression_is_true", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "name": "expression_is_true", "macro_sql": "{% macro expression_is_true(model,\n expression,\n test_condition=\"= true\",\n group_by_columns=None,\n row_condition=None\n ) %}\n {{ adapter.dispatch('expression_is_true', 'dbt_expectations') (model, expression, test_condition, group_by_columns, row_condition) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9756129, "supported_languages": null}, "macro.dbt_expectations.default__expression_is_true": {"unique_id": "macro.dbt_expectations.default__expression_is_true", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "name": "default__expression_is_true", "macro_sql": "{% macro default__expression_is_true(model, expression, test_condition, group_by_columns, row_condition) -%}\nwith grouped_expression as (\n select\n {% if group_by_columns %}\n {% for group_by_column in group_by_columns -%}\n {{ group_by_column }} as col_{{ loop.index }},\n {% endfor -%}\n {% endif %}\n {{ dbt_expectations.truth_expression(expression) }}\n from {{ model }}\n {%- if row_condition %}\n where\n {{ row_condition }}\n {% endif %}\n {% if group_by_columns %}\n group by\n {% for group_by_column in group_by_columns -%}\n {{ group_by_column }}{% if not loop.last %},{% endif %}\n {% endfor %}\n {% endif %}\n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression {{ test_condition }})\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.truth_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.976214, "supported_languages": null}, "macro.dbt_expectations.get_select": {"unique_id": "macro.dbt_expectations.get_select", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "name": "get_select", "macro_sql": "{% macro get_select(model, expression, row_condition, group_by) -%}\n {{ adapter.dispatch('get_select', 'dbt_expectations') (model, expression, row_condition, group_by) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__get_select"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.981216, "supported_languages": null}, "macro.dbt_expectations.default__get_select": {"unique_id": "macro.dbt_expectations.default__get_select", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "name": "default__get_select", "macro_sql": "\n\n{%- macro default__get_select(model, expression, row_condition, group_by) %}\n select\n {% if group_by %}\n {% for g in group_by -%}\n {{ g }} as col_{{ loop.index }},\n {% endfor -%}\n {% endif %}\n {{ expression }} as expression\n from\n {{ model }}\n {%- if row_condition %}\n where\n {{ row_condition }}\n {% endif %}\n {% if group_by %}\n group by\n {% for g in group_by -%}\n {{ loop.index }}{% if not loop.last %},{% endif %}\n {% endfor %}\n {% endif %}\n{% endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.981741, "supported_languages": null}, "macro.dbt_expectations.test_equal_expression": {"unique_id": "macro.dbt_expectations.test_equal_expression", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "name": "test_equal_expression", "macro_sql": "{% test equal_expression(model, expression,\n compare_model=None,\n compare_expression=None,\n group_by=None,\n compare_group_by=None,\n row_condition=None,\n compare_row_condition=None,\n tolerance=0.0,\n tolerance_percent=None\n ) -%}\n\n {{ adapter.dispatch('test_equal_expression', 'dbt_expectations') (\n model,\n expression,\n compare_model,\n compare_expression,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition,\n tolerance,\n tolerance_percent) }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.982201, "supported_languages": null}, "macro.dbt_expectations.default__test_equal_expression": {"unique_id": "macro.dbt_expectations.default__test_equal_expression", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "name": "default__test_equal_expression", "macro_sql": "\n\n{%- macro default__test_equal_expression(\n model,\n expression,\n compare_model,\n compare_expression,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition,\n tolerance,\n tolerance_percent) -%}\n\n {%- set compare_model = model if not compare_model else compare_model -%}\n {%- set compare_expression = expression if not compare_expression else compare_expression -%}\n {%- set compare_row_condition = row_condition if not compare_row_condition else compare_row_condition -%}\n {%- set compare_group_by = group_by if not compare_group_by else compare_group_by -%}\n\n {%- set n_cols = (group_by|length) if group_by else 0 %}\n with a as (\n {{ dbt_expectations.get_select(model, expression, row_condition, group_by) }}\n ),\n b as (\n {{ dbt_expectations.get_select(compare_model, compare_expression, compare_row_condition, compare_group_by) }}\n ),\n final as (\n\n select\n {% for i in range(1, n_cols + 1) -%}\n coalesce(a.col_{{ i }}, b.col_{{ i }}) as col_{{ i }},\n {% endfor %}\n a.expression,\n b.expression as compare_expression,\n abs(coalesce(a.expression, 0) - coalesce(b.expression, 0)) as expression_difference,\n abs(coalesce(a.expression, 0) - coalesce(b.expression, 0))/\n nullif(a.expression * 1.0, 0) as expression_difference_percent\n from\n {% if n_cols > 0 %}\n a\n full outer join\n b on\n {% for i in range(1, n_cols + 1) -%}\n a.col_{{ i }} = b.col_{{ i }} {% if not loop.last %}and{% endif %}\n {% endfor -%}\n {% else %}\n a cross join b\n {% endif %}\n )\n -- DEBUG:\n -- select * from final\n select\n *\n from final\n where\n {% if tolerance_percent %}\n expression_difference_percent > {{ tolerance_percent }}\n {% else %}\n expression_difference > {{ tolerance }}\n {% endif %}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.get_select"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9834251, "supported_languages": null}, "macro.dbt_expectations.truth_expression": {"unique_id": "macro.dbt_expectations.truth_expression", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/_truth_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_truth_expression.sql", "name": "truth_expression", "macro_sql": "{% macro truth_expression(expression) %}\n {{ adapter.dispatch('truth_expression', 'dbt_expectations') (expression) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__truth_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.983724, "supported_languages": null}, "macro.dbt_expectations.default__truth_expression": {"unique_id": "macro.dbt_expectations.default__truth_expression", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/_truth_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_truth_expression.sql", "name": "default__truth_expression", "macro_sql": "{% macro default__truth_expression(expression) %}\n {{ expression }} as expression\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.983825, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern.sql", "name": "test_expect_column_values_to_match_like_pattern", "macro_sql": "{% test expect_column_values_to_match_like_pattern(model, column_name,\n like_pattern,\n row_condition=None\n ) %}\n\n{% set expression = dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=True) %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9843972, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern_list", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern_list.sql", "name": "test_expect_column_values_to_match_like_pattern_list", "macro_sql": "{% test expect_column_values_to_match_like_pattern_list(model, column_name,\n like_pattern_list,\n match_on=\"any\",\n row_condition=None\n ) %}\n\n{% set expression %}\n {% for like_pattern in like_pattern_list %}\n {{ dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=True) }}\n {%- if not loop.last %}\n {{ \" and \" if match_on == \"all\" else \" or \"}}\n {% endif -%}\n {% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9854321, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_regex": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_regex", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex.sql", "name": "test_expect_column_values_to_match_regex", "macro_sql": "{% test expect_column_values_to_match_regex(model, column_name,\n regex,\n row_condition=None,\n is_raw=False\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw) }} > 0\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.98612, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_value_lengths_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_column_value_lengths_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_equal.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_equal.sql", "name": "test_expect_column_value_lengths_to_equal", "macro_sql": "{% test expect_column_value_lengths_to_equal(model, column_name,\n value,\n row_condition=None\n ) %}\n\n{% set expression = length(column_name) ~ \" = \" ~ value %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.length", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9866712, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_value_lengths_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_value_lengths_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_be_between.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_be_between.sql", "name": "test_expect_column_value_lengths_to_be_between", "macro_sql": "{% test expect_column_value_lengths_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\n{{ length(column_name) }}\n{% endset %}\n\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=None,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.length", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.987489, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_regex": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_regex", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex.sql", "name": "test_expect_column_values_to_not_match_regex", "macro_sql": "{% test expect_column_values_to_not_match_regex(model, column_name,\n regex,\n row_condition=None,\n is_raw=False\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw) }} = 0\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.988178, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_regex_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_regex_list", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex_list.sql", "name": "test_expect_column_values_to_not_match_regex_list", "macro_sql": "{% test expect_column_values_to_not_match_regex_list(model, column_name,\n regex_list,\n match_on=\"any\",\n row_condition=None,\n is_raw=False\n ) %}\n\n{% set expression %}\n{% for regex in regex_list %}\n{{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw) }} = 0\n{%- if not loop.last %}\n{{ \" and \" if match_on == \"all\" else \" or \"}}\n{% endif -%}\n{% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.989223, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_regex_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_regex_list", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex_list.sql", "name": "test_expect_column_values_to_match_regex_list", "macro_sql": "{% test expect_column_values_to_match_regex_list(model, column_name,\n regex_list,\n match_on=\"any\",\n row_condition=None,\n is_raw=False\n ) %}\n\n{% set expression %}\n {% for regex in regex_list %}\n {{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw) }} > 0\n {%- if not loop.last %}\n {{ \" and \" if match_on == \"all\" else \" or \"}}\n {% endif -%}\n {% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9903371, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern_list", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern_list.sql", "name": "test_expect_column_values_to_not_match_like_pattern_list", "macro_sql": "{% test expect_column_values_to_not_match_like_pattern_list(model, column_name,\n like_pattern_list,\n match_on=\"any\",\n row_condition=None\n ) %}\n\n{% set expression %}\n {% for like_pattern in like_pattern_list %}\n {{ dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=False) }}\n {%- if not loop.last %}\n {{ \" and \" if match_on == \"all\" else \" or \"}}\n {% endif -%}\n {% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9913652, "supported_languages": null}, "macro.dbt_expectations._get_like_pattern_expression": {"unique_id": "macro.dbt_expectations._get_like_pattern_expression", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/_get_like_pattern_expression.sql", "original_file_path": "macros/schema_tests/string_matching/_get_like_pattern_expression.sql", "name": "_get_like_pattern_expression", "macro_sql": "{% macro _get_like_pattern_expression(column_name, like_pattern, positive) %}\n{{ column_name }} {{ \"not\" if not positive else \"\" }} like '{{ like_pattern }}'\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.991667, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern.sql", "name": "test_expect_column_values_to_not_match_like_pattern", "macro_sql": "{% test expect_column_values_to_not_match_like_pattern(model, column_name,\n like_pattern,\n row_condition=None\n ) %}\n\n{% set expression = dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=False) %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.992235, "supported_languages": null}, "macro.dbt_expectations.test_expect_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "name": "test_expect_row_values_to_have_recent_data", "macro_sql": "{% test expect_row_values_to_have_recent_data(model,\n column_name,\n datepart,\n interval,\n row_condition=None) %}\n\n {{ adapter.dispatch('test_expect_row_values_to_have_recent_data', 'dbt_expectations') (model,\n column_name,\n datepart,\n interval,\n row_condition) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.99338, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "name": "default__test_expect_row_values_to_have_recent_data", "macro_sql": "{% macro default__test_expect_row_values_to_have_recent_data(model, column_name, datepart, interval, row_condition) %}\n{%- set default_start_date = '1970-01-01' -%}\nwith max_recency as (\n\n select max(cast({{ column_name }} as {{ dbt_expectations.type_timestamp() }})) as max_timestamp\n from\n {{ model }}\n where\n -- to exclude erroneous future dates\n cast({{ column_name }} as {{ dbt_expectations.type_timestamp() }}) <= {{ dbt_date.now() }}\n {% if row_condition %}\n and {{ row_condition }}\n {% endif %}\n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('{{ default_start_date }}' as {{ dbt_expectations.type_timestamp() }}))\n <\n cast({{ dbt.dateadd(datepart, interval * -1, dbt_date.now()) }} as {{ dbt_expectations.type_timestamp() }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp", "macro.dbt_date.now", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9939709, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_contain_set": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_contain_set", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_contain_set.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_contain_set.sql", "name": "test_expect_table_columns_to_contain_set", "macro_sql": "{%- test expect_table_columns_to_contain_set(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select cast('{{ col_name }}' as {{ dbt.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select cast('{{ col_name }}' as {{ dbt.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n select *\n from\n input_columns i\n left join\n relation_columns r on r.relation_column = i.input_column\n where\n -- catch any column in input list that is not in the list of table columns\n r.relation_column is null\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.99512, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table.sql", "name": "test_expect_table_row_count_to_equal_other_table", "macro_sql": "{%- test expect_table_row_count_to_equal_other_table(model,\n compare_model,\n group_by=None,\n compare_group_by=None,\n factor=1,\n row_condition=None,\n compare_row_condition=None\n ) -%}\n\n {{ adapter.dispatch('test_expect_table_row_count_to_equal_other_table',\n 'dbt_expectations') (model,\n compare_model,\n group_by,\n compare_group_by,\n factor,\n row_condition,\n compare_row_condition\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.996147, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table": {"unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table.sql", "name": "default__test_expect_table_row_count_to_equal_other_table", "macro_sql": "\n\n{%- macro default__test_expect_table_row_count_to_equal_other_table(model,\n compare_model,\n group_by,\n compare_group_by,\n factor,\n row_condition,\n compare_row_condition\n ) -%}\n{{ dbt_expectations.test_equal_expression(model, \"count(*)\",\n compare_model=compare_model,\n compare_expression=\"count(*) * \" + factor|string,\n group_by=group_by,\n compare_group_by=compare_group_by,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9964879, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_not_contain_set": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_not_contain_set", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_not_contain_set.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_not_contain_set.sql", "name": "test_expect_table_columns_to_not_contain_set", "macro_sql": "{%- test expect_table_columns_to_not_contain_set(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select cast('{{ col_name }}' as {{ dbt.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select cast('{{ col_name }}' as {{ dbt.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n -- catch any column in input list that is in the list of table columns\n select *\n from\n input_columns i\n inner join\n relation_columns r on r.relation_column = i.input_column\n\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.997622, "supported_languages": null}, "macro.dbt_expectations.test_expect_grouped_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.test_expect_grouped_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "name": "test_expect_grouped_row_values_to_have_recent_data", "macro_sql": "{% test expect_grouped_row_values_to_have_recent_data(model,\n group_by,\n timestamp_column,\n datepart,\n interval,\n row_condition=None) %}\n\n {{ adapter.dispatch('test_expect_grouped_row_values_to_have_recent_data', 'dbt_expectations') (model,\n group_by,\n timestamp_column,\n datepart,\n interval,\n row_condition) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849092.9999738, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "name": "default__test_expect_grouped_row_values_to_have_recent_data", "macro_sql": "{% macro default__test_expect_grouped_row_values_to_have_recent_data(model,\n group_by,\n timestamp_column,\n datepart,\n interval,\n row_condition) %}\nwith latest_grouped_timestamps as (\n\n select\n {{ group_by | join(\",\") ~ \",\" if group_by }}\n max(1) as join_key,\n max(cast({{ timestamp_column }} as {{ dbt_expectations.type_timestamp() }})) as latest_timestamp_column\n from\n {{ model }}\n where\n -- to exclude erroneous future dates\n cast({{ timestamp_column }} as {{ dbt_expectations.type_timestamp() }}) <= {{ dbt_date.now() }}\n {% if row_condition %}\n and {{ row_condition }}\n {% endif %}\n\n {% if group_by -%}\n {{ dbt_expectations.group_by(group_by | length) }}\n {%- endif %}\n),\ntotal_row_counts as (\n\n select\n {{ group_by | join(\",\") ~ \",\" if group_by }}\n max(1) as join_key,\n count(*) as row_count\n from\n latest_grouped_timestamps\n {% if group_by -%}\n {{ dbt_expectations.group_by(group_by | length) }}\n {%- endif %}\n\n\n),\noutdated_grouped_timestamps as (\n\n select *\n from\n latest_grouped_timestamps\n where\n -- are the max timestamps per group older than the specified cutoff?\n latest_timestamp_column <\n cast(\n {{ dbt.dateadd(datepart, interval * -1, dbt_date.now()) }}\n as {{ dbt_expectations.type_timestamp() }}\n )\n\n),\nvalidation_errors as (\n\n select\n r.row_count,\n t.*\n from\n total_row_counts r\n left join\n outdated_grouped_timestamps t\n on\n {% for g in group_by %}\n r.{{ g }} = t.{{ g }} and\n {% endfor %}\n r.join_key = t.join_key\n where\n -- fail if either no rows were returned due to row_condition,\n -- or the recency test returned failed rows\n r.row_count = 0\n or\n t.join_key is not null\n\n)\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp", "macro.dbt_date.now", "macro.dbt_expectations.group_by", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0009549, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_to_exist": {"unique_id": "macro.dbt_expectations.test_expect_column_to_exist", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_column_to_exist.sql", "original_file_path": "macros/schema_tests/table_shape/expect_column_to_exist.sql", "name": "test_expect_column_to_exist", "macro_sql": "{%- test expect_column_to_exist(model, column_name, column_index=None, transform=\"upper\") -%}\n{%- if execute -%}\n\n {%- set column_name = column_name | map(transform) | join -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n\n {%- set matching_column_index = relation_column_names.index(column_name) if column_name in relation_column_names else -1 %}\n\n {%- if column_index -%}\n\n {%- set column_index_0 = column_index - 1 if column_index > 0 else 0 -%}\n\n {%- set column_index_matches = true if matching_column_index == column_index_0 else false %}\n\n {%- else -%}\n\n {%- set column_index_matches = true -%}\n\n {%- endif %}\n\n with test_data as (\n\n select\n cast('{{ column_name }}' as {{ dbt.type_string() }}) as column_name,\n {{ matching_column_index }} as matching_column_index,\n {{ column_index_matches }} as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)\n\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.002131, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "name": "test_expect_table_row_count_to_equal", "macro_sql": "{%- test expect_table_row_count_to_equal(model,\n value,\n group_by=None,\n row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_table_row_count_to_equal',\n 'dbt_expectations') (model,\n value,\n group_by,\n row_condition\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_equal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.002832, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_equal": {"unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "name": "default__test_expect_table_row_count_to_equal", "macro_sql": "\n\n\n\n{%- macro default__test_expect_table_row_count_to_equal(model,\n value,\n group_by,\n row_condition\n ) -%}\n{% set expression %}\ncount(*) = {{ value }}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition)\n }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.003107, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_be_between.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_be_between.sql", "name": "test_expect_table_row_count_to_be_between", "macro_sql": "{%- test expect_table_row_count_to_be_between(model,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) -%}\n {{ adapter.dispatch('test_expect_table_row_count_to_be_between',\n 'dbt_expectations') (model,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_be_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.004034, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_be_between": {"unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_be_between.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_be_between.sql", "name": "default__test_expect_table_row_count_to_be_between", "macro_sql": "\n\n{%- macro default__test_expect_table_row_count_to_be_between(model,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\n ) -%}\n{% set expression %}\ncount(*)\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.004363, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table_times_factor": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table_times_factor", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table_times_factor.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table_times_factor.sql", "name": "test_expect_table_row_count_to_equal_other_table_times_factor", "macro_sql": "{%- test expect_table_row_count_to_equal_other_table_times_factor(model,\n compare_model,\n factor,\n group_by=None,\n compare_group_by=None,\n row_condition=None,\n compare_row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_table_row_count_to_equal_other_table_times_factor',\n 'dbt_expectations') (model,\n compare_model,\n factor,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table_times_factor"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.005516, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table_times_factor": {"unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table_times_factor", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table_times_factor.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table_times_factor.sql", "name": "default__test_expect_table_row_count_to_equal_other_table_times_factor", "macro_sql": "\n\n{%- macro default__test_expect_table_row_count_to_equal_other_table_times_factor(model,\n compare_model,\n factor,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition\n ) -%}\n\n{{ dbt_expectations.test_expect_table_row_count_to_equal_other_table(model,\n compare_model,\n group_by=group_by,\n compare_group_by=compare_group_by,\n factor=factor,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.005877, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_match_set": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_match_set", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_match_set.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_match_set.sql", "name": "test_expect_table_columns_to_match_set", "macro_sql": "{%- test expect_table_columns_to_match_set(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select cast('{{ col_name }}' as {{ dbt.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select cast('{{ col_name }}' as {{ dbt.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n select *\n from\n relation_columns r\n full outer join\n input_columns i on r.relation_column = i.input_column\n where\n -- catch any column in input list that is not in the list of table columns\n -- or any table column that is not in the input list\n r.relation_column is null or\n i.input_column is null\n\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0070772, "supported_languages": null}, "macro.dbt_expectations._get_column_list": {"unique_id": "macro.dbt_expectations._get_column_list", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/_get_column_list.sql", "original_file_path": "macros/schema_tests/table_shape/_get_column_list.sql", "name": "_get_column_list", "macro_sql": "{%- macro _get_column_list(model, transform=\"upper\") -%}\n{%- set relation_columns = adapter.get_columns_in_relation(model) -%}\n{%- set relation_column_names = relation_columns | map(attribute=\"name\") | map(transform) | list -%}\n{%- do return(relation_column_names) -%}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.007497, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_match_ordered_list": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_match_ordered_list", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_match_ordered_list.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_match_ordered_list.sql", "name": "test_expect_table_columns_to_match_ordered_list", "macro_sql": "{%- test expect_table_columns_to_match_ordered_list(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select\n {{ loop.index }} as relation_column_idx,\n cast('{{ col_name }}' as {{ dbt.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select\n {{ loop.index }} as input_column_idx,\n cast('{{ col_name }}' as {{ dbt.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n select *\n from\n relation_columns r\n full outer join\n input_columns i on r.relation_column = i.input_column and r.relation_column_idx = i.input_column_idx\n where\n -- catch any column in input list that is not in the sequence of table columns\n -- or any table column that is not in the input sequence\n r.relation_column is null or\n i.input_column is null\n\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.008886, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_aggregation_to_equal_other_table": {"unique_id": "macro.dbt_expectations.test_expect_table_aggregation_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_aggregation_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_aggregation_to_equal_other_table.sql", "name": "test_expect_table_aggregation_to_equal_other_table", "macro_sql": "{%- test expect_table_aggregation_to_equal_other_table(model,\n expression,\n compare_model,\n compare_expression=None,\n group_by=None,\n compare_group_by=None,\n row_condition=None,\n compare_row_condition=None,\n tolerance=0.0,\n tolerance_percent=None\n ) -%}\n\n\n{{ dbt_expectations.test_equal_expression(\n model,\n expression=expression,\n compare_model=compare_model,\n compare_expression=compare_expression,\n group_by=group_by,\n compare_group_by=compare_group_by,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition,\n tolerance=tolerance,\n tolerance_percent=tolerance_percent\n) }}\n\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.009543, "supported_languages": null}, "macro.dbt_expectations._list_intersect": {"unique_id": "macro.dbt_expectations._list_intersect", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/_list_intersect.sql", "original_file_path": "macros/schema_tests/table_shape/_list_intersect.sql", "name": "_list_intersect", "macro_sql": "{%- macro _list_intersect(list1, list2) -%}\n{%- set matching_items = [] -%}\n{%- for itm in list1 -%}\n {%- if itm in list2 -%}\n {%- do matching_items.append(itm) -%}\n {%- endif -%}\n{%- endfor -%}\n{%- do return(matching_items) -%}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.010018, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_column_count_to_equal_other_table": {"unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal_other_table.sql", "name": "test_expect_table_column_count_to_equal_other_table", "macro_sql": "{%- test expect_table_column_count_to_equal_other_table(model, compare_model) -%}\n{%- if execute -%}\n{%- set number_columns = (adapter.get_columns_in_relation(model) | length) -%}\n{%- set compare_number_columns = (adapter.get_columns_in_relation(compare_model) | length) -%}\nwith test_data as (\n\n select\n {{ number_columns }} as number_columns,\n {{ compare_number_columns }} as compare_number_columns\n\n)\nselect *\nfrom test_data\nwhere\n number_columns != compare_number_columns\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0105448, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_column_count_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal.sql", "name": "test_expect_table_column_count_to_equal", "macro_sql": "{%- test expect_table_column_count_to_equal(model, value) -%}\n{%- if execute -%}\n{%- set number_actual_columns = (adapter.get_columns_in_relation(model) | length) -%}\nwith test_data as (\n\n select\n {{ number_actual_columns }} as number_actual_columns,\n {{ value }} as value\n\n)\nselect *\nfrom test_data\nwhere\n number_actual_columns != value\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0109482, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_column_count_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_column_count_to_be_between.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_column_count_to_be_between.sql", "name": "test_expect_table_column_count_to_be_between", "macro_sql": "{%- test expect_table_column_count_to_be_between(model,\n min_value=None,\n max_value=None\n ) -%}\n{%- if min_value is none and max_value is none -%}\n{{ exceptions.raise_compiler_error(\n \"You have to provide either a min_value, max_value or both.\"\n) }}\n{%- endif -%}\n{%- if execute -%}\n{%- set number_actual_columns = (adapter.get_columns_in_relation(model) | length) -%}\n\n{%- set expression %}\n( 1=1\n{%- if min_value %} and number_actual_columns >= min_value{% endif %}\n{%- if max_value %} and number_actual_columns <= max_value{% endif %}\n)\n{% endset -%}\n\nwith test_data as (\n\n select\n {{ number_actual_columns }} as number_actual_columns,\n {{ min_value if min_value else 0 }} as min_value,\n {{ max_value if max_value else 0 }} as max_value\n\n)\nselect *\nfrom test_data\nwhere\n not {{ expression }}\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0119302, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_in_set.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_in_set.sql", "name": "test_expect_column_values_to_not_be_in_set", "macro_sql": "{% test expect_column_values_to_not_be_in_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n cast('{{ value }}' as {{ dbt.type_string() }})\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n),\nvalidation_errors as (\n -- values from the model that match the set\n select\n v.value_field\n from\n all_values v\n join\n set_values s on v.value_field = s.value_field\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0128078, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_set.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_set.sql", "name": "test_expect_column_values_to_be_in_set", "macro_sql": "{% test expect_column_values_to_be_in_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n cast('{{ value }}' as {{ dbt.type_string() }})\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0137112, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_increasing": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_increasing", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_increasing.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_increasing.sql", "name": "test_expect_column_values_to_be_increasing", "macro_sql": "{% test expect_column_values_to_be_increasing(model, column_name,\n sort_column=None,\n strictly=True,\n row_condition=None,\n group_by=None) %}\n\n{%- set sort_column = column_name if not sort_column else sort_column -%}\n{%- set operator = \">\" if strictly else \">=\" -%}\nwith all_values as (\n\n select\n {{ sort_column }} as sort_column,\n {%- if group_by -%}\n {{ group_by | join(\", \") }},\n {%- endif %}\n {{ column_name }} as value_field\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nadd_lag_values as (\n\n select\n sort_column,\n {%- if group_by -%}\n {{ group_by | join(\", \") }},\n {%- endif %}\n value_field,\n lag(value_field) over\n {%- if not group_by -%}\n (order by sort_column)\n {%- else -%}\n (partition by {{ group_by | join(\", \") }} order by sort_column)\n {%- endif %} as value_field_lag\n from\n all_values\n\n),\nvalidation_errors as (\n select\n *\n from\n add_lag_values\n where\n value_field_lag is not null\n and\n not (value_field {{ operator }} value_field_lag)\n\n)\nselect *\nfrom validation_errors\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0150511, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_null": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_null", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_null.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_null.sql", "name": "test_expect_column_values_to_be_null", "macro_sql": "{% test expect_column_values_to_be_null(model, column_name, row_condition=None) %}\n\n{% set expression = column_name ~ \" is null\" %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.01554, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_unique": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_unique", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_unique.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_unique.sql", "name": "test_expect_column_values_to_be_unique", "macro_sql": "{% test expect_column_values_to_be_unique(model, column_name, row_condition=None) %}\n{{ dbt_expectations.test_expect_compound_columns_to_be_unique(model, [column_name], row_condition=row_condition) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_compound_columns_to_be_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.015842, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_between.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_between.sql", "name": "test_expect_column_values_to_be_between", "macro_sql": "{% test expect_column_values_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n row_condition=None,\n strictly=False\n ) %}\n\n{% set expression %}\n{{ column_name }}\n{% endset %}\n\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=None,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.016618, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_decreasing": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_decreasing", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_decreasing.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_decreasing.sql", "name": "test_expect_column_values_to_be_decreasing", "macro_sql": "{% test expect_column_values_to_be_decreasing(model, column_name,\n sort_column=None,\n strictly=True,\n row_condition=None,\n group_by=None) %}\n\n{%- set sort_column = column_name if not sort_column else sort_column -%}\n{%- set operator = \"<\" if strictly else \"<=\" %}\nwith all_values as (\n\n select\n {{ sort_column }} as sort_column,\n {%- if group_by -%}\n {{ group_by | join(\", \") }},\n {%- endif %}\n {{ column_name }} as value_field\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nadd_lag_values as (\n\n select\n sort_column,\n value_field,\n lag(value_field) over\n {%- if not group_by -%}\n (order by sort_column)\n {%- else -%}\n (partition by {{ group_by | join(\", \") }} order by sort_column)\n {%- endif %} as value_field_lag\n from\n all_values\n\n),\nvalidation_errors as (\n\n select\n *\n from\n add_lag_values\n where\n value_field_lag is not null\n and\n not (value_field {{ operator }} value_field_lag)\n\n)\nselect *\nfrom validation_errors\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.017785, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_in_type_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_type_list.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_type_list.sql", "name": "test_expect_column_values_to_be_in_type_list", "macro_sql": "{%- test expect_column_values_to_be_in_type_list(model, column_name, column_type_list) -%}\n{%- if execute -%}\n\n {%- set column_name = column_name | upper -%}\n {%- set columns_in_relation = adapter.get_columns_in_relation(model) -%}\n {%- set column_type_list = column_type_list| map(\"upper\") | list -%}\n with relation_columns as (\n\n {% for column in columns_in_relation %}\n select\n cast('{{ column.name | upper }}' as {{ dbt.type_string() }}) as relation_column,\n cast('{{ column.dtype | upper }}' as {{ dbt.type_string() }}) as relation_column_type\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '{{ column_name }}'\n and\n relation_column_type not in ('{{ column_type_list | join(\"', '\") }}')\n\n )\n select *\n from test_data\n\n{%- endif -%}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0188339, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_of_type": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_of_type", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_of_type.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_of_type.sql", "name": "test_expect_column_values_to_be_of_type", "macro_sql": "{%- test expect_column_values_to_be_of_type(model, column_name, column_type) -%}\n{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(model, column_name, [column_type]) }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.019116, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_have_consistent_casing": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_have_consistent_casing", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_have_consistent_casing.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_have_consistent_casing.sql", "name": "test_expect_column_values_to_have_consistent_casing", "macro_sql": "{% test expect_column_values_to_have_consistent_casing(model, column_name, display_inconsistent_columns=False) %}\n\nwith test_data as (\n\n select\n distinct {{ column_name }} as distinct_values\n from\n {{ model }}\n\n ),\n {% if display_inconsistent_columns %}\n validation_errors as (\n\n select\n lower(distinct_values) as inconsistent_columns,\n count(distinct_values) as set_count_case_insensitive\n from\n test_data\n group by 1\n having\n count(distinct_values) > 1\n\n )\n select * from validation_errors\n {% else %}\n validation_errors as (\n\n select\n count(1) as set_count,\n count(distinct lower(distinct_values)) as set_count_case_insensitive\n from\n test_data\n\n )\n select *\n from\n validation_errors\n where\n set_count != set_count_case_insensitive\n {% endif %}\n {%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.019564, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_be_null": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_be_null", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_null.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_null.sql", "name": "test_expect_column_values_to_not_be_null", "macro_sql": "{% test expect_column_values_to_not_be_null(model, column_name, row_condition=None) %}\n\n{% set expression = column_name ~ \" is not null\" %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0201159, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_min_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_min_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_min_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_min_to_be_between.sql", "name": "test_expect_column_min_to_be_between", "macro_sql": "{% test expect_column_min_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\nmin({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.020931, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_unique_value_count_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_unique_value_count_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_unique_value_count_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_unique_value_count_to_be_between.sql", "name": "test_expect_column_unique_value_count_to_be_between", "macro_sql": "{% test expect_column_unique_value_count_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.02176, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_quantile_values_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_quantile_values_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_quantile_values_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_quantile_values_to_be_between.sql", "name": "test_expect_column_quantile_values_to_be_between", "macro_sql": "{% test expect_column_quantile_values_to_be_between(model, column_name,\n quantile,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.percentile_cont(column_name, quantile) }}\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.percentile_cont", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0226402, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_median_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_median_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_median_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_median_to_be_between.sql", "name": "test_expect_column_median_to_be_between", "macro_sql": "{% test expect_column_median_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.median(column_name) }}\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.median", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0234728, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_proportion_of_unique_values_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_proportion_of_unique_values_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_proportion_of_unique_values_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_proportion_of_unique_values_to_be_between.sql", "name": "test_expect_column_proportion_of_unique_values_to_be_between", "macro_sql": "{% test expect_column_proportion_of_unique_values_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }})/count({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.024363, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_values_to_equal_set": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_equal_set", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_equal_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_equal_set.sql", "name": "test_expect_column_distinct_values_to_equal_set", "macro_sql": "{% test expect_column_distinct_values_to_equal_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select distinct\n {{ column_name }} as column_value\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n\n select\n *\n from\n all_values v\n full outer join\n unique_set_values s on v.column_value = s.value_field\n where\n v.column_value is null or\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0252538, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_most_common_value_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_most_common_value_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "name": "test_expect_column_most_common_value_to_be_in_set", "macro_sql": "{% test expect_column_most_common_value_to_be_in_set(model,\n column_name,\n value_set,\n top_n,\n quote_values=True,\n data_type=\"decimal\",\n row_condition=None\n ) -%}\n\n {{ adapter.dispatch('test_expect_column_most_common_value_to_be_in_set', 'dbt_expectations') (\n model, column_name, value_set, top_n, quote_values, data_type, row_condition\n ) }}\n\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.026968, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set": {"unique_id": "macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "name": "default__test_expect_column_most_common_value_to_be_in_set", "macro_sql": "{% macro default__test_expect_column_most_common_value_to_be_in_set(model,\n column_name,\n value_set,\n top_n,\n quote_values,\n data_type,\n row_condition\n ) %}\n\nwith value_counts as (\n\n select\n {% if quote_values -%}\n {{ column_name }}\n {%- else -%}\n cast({{ column_name }} as {{ data_type }})\n {%- endif %} as value_field,\n count(*) as value_count\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n group by {% if quote_values -%}\n {{ column_name }}\n {%- else -%}\n cast({{ column_name }} as {{ data_type }})\n {%- endif %}\n\n),\nvalue_counts_ranked as (\n\n select\n *,\n row_number() over(order by value_count desc) as value_count_rank\n from\n value_counts\n\n),\nvalue_count_top_n as (\n\n select\n value_field\n from\n value_counts_ranked\n where\n value_count_rank = {{ top_n }}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n cast({{ value }} as {{ data_type }})\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n value_field\n from\n value_count_top_n\n where\n value_field not in (select value_field from unique_set_values)\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.027714, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_values_to_contain_set": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_contain_set", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_contain_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_contain_set.sql", "name": "test_expect_column_distinct_values_to_contain_set", "macro_sql": "{% test expect_column_distinct_values_to_contain_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n -- values in set that are not in the list of values from the model\n select\n s.value_field\n from\n unique_set_values s\n left join\n all_values v on s.value_field = v.value_field\n where\n v.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.028617, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal.sql", "name": "test_expect_column_distinct_count_to_equal", "macro_sql": "{% test expect_column_distinct_count_to_equal(model,\n column_name,\n value,\n group_by=None,\n row_condition=None\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }}) = {{ value }}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition)\n }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.029251, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_be_less_than": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_be_less_than", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_less_than.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_less_than.sql", "name": "test_expect_column_distinct_count_to_be_less_than", "macro_sql": "{% test expect_column_distinct_count_to_be_less_than(model,\n column_name,\n value,\n group_by=None,\n row_condition=None\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }}) < {{ value }}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition)\n }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0298948, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_sum_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_sum_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_sum_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_sum_to_be_between.sql", "name": "test_expect_column_sum_to_be_between", "macro_sql": "{% test expect_column_sum_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\nsum({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.030698, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_stdev_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_stdev_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "name": "test_expect_column_stdev_to_be_between", "macro_sql": "{% test expect_column_stdev_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) -%}\n {{ adapter.dispatch('test_expect_column_stdev_to_be_between', 'dbt_expectations') (\n model, column_name,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\n ) }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_stdev_to_be_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.032058, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_stdev_to_be_between": {"unique_id": "macro.dbt_expectations.default__test_expect_column_stdev_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "name": "default__test_expect_column_stdev_to_be_between", "macro_sql": "{% macro default__test_expect_column_stdev_to_be_between(\n model, column_name,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\n ) %}\n\n{% set expression %}\nstddev({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0324218, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_mean_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_mean_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_mean_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_mean_to_be_between.sql", "name": "test_expect_column_mean_to_be_between", "macro_sql": "{% test expect_column_mean_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\navg({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.033225, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_max_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_max_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_max_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_max_to_be_between.sql", "name": "test_expect_column_max_to_be_between", "macro_sql": "{% test expect_column_max_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\nmax({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.03404, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_be_greater_than": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_be_greater_than", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_greater_than.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_greater_than.sql", "name": "test_expect_column_distinct_count_to_be_greater_than", "macro_sql": "{% test expect_column_distinct_count_to_be_greater_than(model,\n column_name,\n value,\n group_by=None,\n row_condition=None\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }}) > {{ value }}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition)\n }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.034692, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_values_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_be_in_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_be_in_set.sql", "name": "test_expect_column_distinct_values_to_be_in_set", "macro_sql": "{% test expect_column_distinct_values_to_be_in_set(model,\n column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n unique_set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.035667, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_equal_other_table": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal_other_table.sql", "name": "test_expect_column_distinct_count_to_equal_other_table", "macro_sql": "{% test expect_column_distinct_count_to_equal_other_table(model,\n compare_model,\n column_name,\n compare_column_name,\n row_condition=None,\n compare_row_condition=None\n ) %}\n{%- set expression -%}\ncount(distinct {{ column_name }})\n{%- endset -%}\n{%- set compare_expression -%}\n{%- if compare_column_name -%}\ncount(distinct {{ compare_column_name }})\n{%- else -%}\n{{ expression }}\n{%- endif -%}\n{%- endset -%}\n{{ dbt_expectations.test_equal_expression(\n model,\n expression=expression,\n compare_model=compare_model,\n compare_expression=compare_expression,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0364249, "supported_languages": null}, "macro.dbt_expectations.test_expect_row_values_to_have_data_for_every_n_datepart": {"unique_id": "macro.dbt_expectations.test_expect_row_values_to_have_data_for_every_n_datepart", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/distributional/expect_row_values_to_have_data_for_every_n_datepart.sql", "original_file_path": "macros/schema_tests/distributional/expect_row_values_to_have_data_for_every_n_datepart.sql", "name": "test_expect_row_values_to_have_data_for_every_n_datepart", "macro_sql": "{%- test expect_row_values_to_have_data_for_every_n_datepart(model,\n date_col,\n date_part=\"day\",\n interval=None,\n row_condition=None,\n exclusion_condition=None,\n test_start_date=None,\n test_end_date=None) -%}\n{% if not execute %}\n {{ return('') }}\n{% endif %}\n\n{% if not test_start_date or not test_end_date %}\n {% set sql %}\n\n select\n min({{ date_col }}) as start_{{ date_part }},\n max({{ date_col }}) as end_{{ date_part }}\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n {% endset %}\n\n {%- set dr = run_query(sql) -%}\n {%- set db_start_date = dr.columns[0].values()[0].strftime('%Y-%m-%d') -%}\n {%- set db_end_date = dr.columns[1].values()[0].strftime('%Y-%m-%d') -%}\n\n{% endif %}\n\n{% if not test_start_date %}\n{% set start_date = db_start_date %}\n{% else %}\n{% set start_date = test_start_date %}\n{% endif %}\n\n\n{% if not test_end_date %}\n{% set end_date = db_end_date %}\n{% else %}\n{% set end_date = test_end_date %}\n{% endif %}\nwith base_dates as (\n\n {{ dbt_date.get_base_dates(start_date=start_date, end_date=end_date, datepart=date_part) }}\n {% if interval %}\n {#\n Filter the date spine created above down to the interval granularity using a modulo operation.\n The number of date_parts after the start_date divided by the integer interval will produce no remainder for the desired intervals,\n e.g. for 2-day interval from a starting Jan 1, 2020:\n params: start_date = '2020-01-01', date_part = 'day', interval = 2\n date spine created above: [2020-01-01, 2020-01-02, 2020-01-03, 2020-01-04, 2020-01-05, ...]\n The first parameter to the `mod` function would be the number of days between the start_date and the spine date, i.e. [0, 1, 2, 3, 4 ...]\n The second parameter to the `mod` function would be the integer interval, i.e. 2\n This modulo operation produces the following remainders: [0, 1, 0, 1, 0, ...]\n Filtering the spine only where this remainder == 0 will return a spine with every other day as desired, i.e. [2020-01-01, 2020-01-03, 2020-01-05, ...]\n #}\n where mod(\n cast({{ dbt.datediff(\"'\" ~ start_date ~ \"'\", 'date_' ~ date_part, date_part) }} as {{ dbt.type_int() }}),\n cast({{interval}} as {{ dbt.type_int() }})\n ) = 0\n {% endif %}\n\n),\nmodel_data as (\n\n select\n {% if not interval %}\n\n cast({{ dbt.date_trunc(date_part, date_col) }} as {{ dbt_expectations.type_datetime() }}) as date_{{ date_part }},\n\n {% else %}\n {#\n Use a modulo operator to determine the number of intervals that a date_col is away from the interval-date spine\n and subtracts that amount to effectively slice each date_col record into its corresponding spine bucket,\n e.g. given a date_col of with records [2020-01-01, 2020-01-02, 2020-01-03, 2020-01-11, 2020-01-12]\n if we want to slice these dates into their 2-day buckets starting Jan 1, 2020 (start_date = '2020-01-01', date_part='day', interval=2),\n the modulo operation described above will produce these remainders: [0, 1, 0, 0, 1]\n subtracting that number of days from the observations will produce records [2020-01-01, 2020-01-01, 2020-01-03, 2020-01-11, 2020-01-11],\n all of which align with records from the interval-date spine\n #}\n {{ dbt.dateadd(\n date_part,\n \"mod(\n cast(\" ~ dbt.datediff(\"'\" ~ start_date ~ \"'\", date_col, date_part) ~ \" as \" ~ dbt.type_int() ~ \" ),\n cast(\" ~ interval ~ \" as \" ~ dbt.type_int() ~ \" )\n ) * (-1)\",\n \"cast( \" ~ dbt.date_trunc(date_part, date_col) ~ \" as \" ~ dbt_expectations.type_datetime() ~ \")\"\n )}} as date_{{ date_part }},\n\n {% endif %}\n\n count(*) as row_cnt\n from\n {{ model }} f\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n group by\n date_{{date_part}}\n\n),\n\nfinal as (\n\n select\n cast(d.date_{{ date_part }} as {{ dbt_expectations.type_datetime() }}) as date_{{ date_part }},\n case when f.date_{{ date_part }} is null then true else false end as is_missing,\n coalesce(f.row_cnt, 0) as row_cnt\n from\n base_dates d\n left join\n model_data f on cast(d.date_{{ date_part }} as {{ dbt_expectations.type_datetime() }}) = f.date_{{ date_part }}\n)\nselect\n *\nfrom final\nwhere row_cnt = 0\n{% if exclusion_condition %}\n and {{ exclusion_condition }}\n{% endif %}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt_date.get_base_dates", "macro.dbt.datediff", "macro.dbt.type_int", "macro.dbt.date_trunc", "macro.dbt_expectations.type_datetime", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.040191, "supported_languages": null}, "macro.dbt_expectations._get_metric_expression": {"unique_id": "macro.dbt_expectations._get_metric_expression", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "name": "_get_metric_expression", "macro_sql": "{%- macro _get_metric_expression(metric_column, take_logs) -%}\n\n{%- if take_logs %}\n{%- set expr = \"nullif(\" ~ metric_column ~ \", 0)\" -%}\ncoalesce({{ dbt_expectations.log_natural(expr) }}, 0)\n{%- else -%}\ncoalesce({{ metric_column }}, 0)\n{%- endif %}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.log_natural"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.044362, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_within_n_moving_stdevs": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_within_n_moving_stdevs", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "name": "test_expect_column_values_to_be_within_n_moving_stdevs", "macro_sql": "{% test expect_column_values_to_be_within_n_moving_stdevs(model,\n column_name,\n date_column_name,\n group_by=None,\n period='day',\n lookback_periods=1,\n trend_periods=7,\n test_periods=14,\n sigma_threshold=3,\n sigma_threshold_upper=None,\n sigma_threshold_lower=None,\n take_diffs=true,\n take_logs=true\n ) -%}\n {{ adapter.dispatch('test_expect_column_values_to_be_within_n_moving_stdevs', 'dbt_expectations') (model,\n column_name,\n date_column_name,\n group_by,\n period,\n lookback_periods,\n trend_periods,\n test_periods,\n sigma_threshold,\n sigma_threshold_upper,\n sigma_threshold_lower,\n take_diffs,\n take_logs\n ) }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0448918, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs": {"unique_id": "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "name": "default__test_expect_column_values_to_be_within_n_moving_stdevs", "macro_sql": "{% macro default__test_expect_column_values_to_be_within_n_moving_stdevs(model,\n column_name,\n date_column_name,\n group_by,\n period,\n lookback_periods,\n trend_periods,\n test_periods,\n sigma_threshold,\n sigma_threshold_upper,\n sigma_threshold_lower,\n take_diffs,\n take_logs\n ) %}\n\n{%- set sigma_threshold_upper = sigma_threshold_upper if sigma_threshold_upper else sigma_threshold -%}\n{%- set sigma_threshold_lower = sigma_threshold_lower if sigma_threshold_lower else -1 * sigma_threshold -%}\n{%- set partition_by = \"partition by \" ~ (group_by | join(\",\")) if group_by -%}\n{%- set group_by_length = (group_by | length ) if group_by else 0 -%}\n\nwith metric_values as (\n\n with grouped_metric_values as (\n\n select\n {{ dbt.date_trunc(period, date_column_name) }} as metric_period,\n {{ group_by | join(\",\") ~ \",\" if group_by }}\n sum({{ column_name }}) as agg_metric_value\n from\n {{ model }}\n {{ dbt_expectations.group_by(1 + group_by_length) }}\n\n )\n {%- if take_diffs %}\n , grouped_metric_values_with_priors as (\n\n select\n *,\n lag(agg_metric_value, {{ lookback_periods }}) over(\n {{ partition_by }}\n order by metric_period) as prior_agg_metric_value\n from\n grouped_metric_values d\n\n )\n select\n *,\n {{ dbt_expectations._get_metric_expression(\"agg_metric_value\", take_logs) }}\n -\n {{ dbt_expectations._get_metric_expression(\"prior_agg_metric_value\", take_logs) }}\n as metric_test_value\n from\n grouped_metric_values_with_priors d\n\n {%- else %}\n\n select\n *,\n {{ dbt_expectations._get_metric_expression(\"agg_metric_value\", take_logs) }}\n as metric_test_value\n from\n grouped_metric_values\n\n {%- endif %}\n\n),\nmetric_moving_calcs as (\n\n select\n *,\n avg(metric_test_value)\n over({{ partition_by }}\n order by metric_period rows\n between {{ trend_periods }} preceding and 1 preceding) as metric_test_rolling_average,\n stddev(metric_test_value)\n over({{ partition_by }}\n order by metric_period rows\n between {{ trend_periods }} preceding and 1 preceding) as metric_test_rolling_stddev\n from\n metric_values\n\n),\nmetric_sigma as (\n\n select\n *,\n (metric_test_value - metric_test_rolling_average) as metric_test_delta,\n (metric_test_value - metric_test_rolling_average)/\n nullif(metric_test_rolling_stddev, 0) as metric_test_sigma\n from\n metric_moving_calcs\n\n)\nselect\n *\nfrom\n metric_sigma\nwhere\n\n metric_period >= cast(\n {{ dbt.dateadd(period, -test_periods, dbt.date_trunc(period, dbt_date.now())) }}\n as {{ dbt_expectations.type_timestamp() }})\n and\n metric_period < {{ dbt.date_trunc(period, dbt_date.now()) }}\n and\n\n not (\n metric_test_sigma >= {{ sigma_threshold_lower }} and\n metric_test_sigma <= {{ sigma_threshold_upper }}\n )\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt_expectations.group_by", "macro.dbt_expectations._get_metric_expression", "macro.dbt.dateadd", "macro.dbt_date.now", "macro.dbt_expectations.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.046328, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_within_n_stdevs": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_within_n_stdevs", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "name": "test_expect_column_values_to_be_within_n_stdevs", "macro_sql": "{% test expect_column_values_to_be_within_n_stdevs(model,\n column_name,\n group_by=None,\n sigma_threshold=3\n ) -%}\n {{\n adapter.dispatch('test_expect_column_values_to_be_within_n_stdevs', 'dbt_expectations') (\n model, column_name, group_by, sigma_threshold\n )\n }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.047225, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs": {"unique_id": "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "name": "default__test_expect_column_values_to_be_within_n_stdevs", "macro_sql": "{% macro default__test_expect_column_values_to_be_within_n_stdevs(model,\n column_name,\n group_by,\n sigma_threshold\n ) %}\n\nwith metric_values as (\n\n select\n {{ group_by | join(\",\") ~ \",\" if group_by }}\n sum({{ column_name }}) as {{ column_name }}\n from\n {{ model }}\n {% if group_by -%}\n {{ dbt_expectations.group_by(group_by | length) }}\n {%- endif %}\n\n),\nmetric_values_with_statistics as (\n\n select\n *,\n avg({{ column_name }}) over() as {{ column_name }}_average,\n stddev({{ column_name }}) over() as {{ column_name }}_stddev\n from\n metric_values\n\n),\nmetric_values_z_scores as (\n\n select\n *,\n ({{ column_name }} - {{ column_name }}_average)/\n nullif({{ column_name }}_stddev, 0) as {{ column_name }}_sigma\n from\n metric_values_with_statistics\n\n)\nselect\n *\nfrom\n metric_values_z_scores\nwhere\n abs({{ column_name }}_sigma) > {{ sigma_threshold }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.047772, "supported_languages": null}, "macro.dbt_expectations.test_expect_select_column_values_to_be_unique_within_record": {"unique_id": "macro.dbt_expectations.test_expect_select_column_values_to_be_unique_within_record", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "original_file_path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "name": "test_expect_select_column_values_to_be_unique_within_record", "macro_sql": "{% test expect_select_column_values_to_be_unique_within_record(model,\n column_list,\n quote_columns=False,\n ignore_row_if=\"all_values_are_missing\",\n row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_select_column_values_to_be_unique_within_record', 'dbt_expectations') (model, column_list, quote_columns, ignore_row_if, row_condition) }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.049196, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record": {"unique_id": "macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "original_file_path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "name": "default__test_expect_select_column_values_to_be_unique_within_record", "macro_sql": "{% macro default__test_expect_select_column_values_to_be_unique_within_record(model,\n column_list,\n quote_columns,\n ignore_row_if,\n row_condition\n ) %}\n\n{% if not quote_columns %}\n {%- set columns=column_list %}\n{% elif quote_columns %}\n {%- set columns=[] %}\n {% for column in column_list -%}\n {% set columns = columns.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote_columns ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set row_condition_ext -%}\n\n {%- if row_condition %}\n {{ row_condition }} and\n {% endif -%}\n\n {{ dbt_expectations.ignore_row_if_expression(ignore_row_if, columns) }}\n\n{%- endset -%}\n\nwith column_values as (\n\n select\n row_number() over(order by 1) as row_index,\n {% for column in columns -%}\n {{ column }}{% if not loop.last %},{% endif %}\n {%- endfor %}\n from {{ model }}\n where\n 1=1\n {%- if row_condition_ext %}\n and {{ row_condition_ext }}\n {% endif %}\n\n),\nunpivot_columns as (\n\n {% for column in columns %}\n select row_index, '{{ column }}' as column_name, {{ column }} as column_value from column_values\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n),\nvalidation_errors as (\n\n select\n row_index,\n count(distinct column_value) as column_values\n from unpivot_columns\n group by 1\n having count(distinct column_value) < {{ columns | length }}\n\n)\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.050247, "supported_languages": null}, "macro.dbt_expectations.test_expect_compound_columns_to_be_unique": {"unique_id": "macro.dbt_expectations.test_expect_compound_columns_to_be_unique", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_compound_columns_to_be_unique.sql", "original_file_path": "macros/schema_tests/multi-column/expect_compound_columns_to_be_unique.sql", "name": "test_expect_compound_columns_to_be_unique", "macro_sql": "{% test expect_compound_columns_to_be_unique(model,\n column_list,\n quote_columns=False,\n ignore_row_if=\"all_values_are_missing\",\n row_condition=None\n ) %}\n{% if not column_list %}\n {{ exceptions.raise_compiler_error(\n \"`column_list` must be specified as a list of columns. Got: '\" ~ column_list ~\"'.'\"\n ) }}\n{% endif %}\n\n{% if not quote_columns %}\n {%- set columns=column_list %}\n{% elif quote_columns %}\n {%- set columns=[] %}\n {% for column in column_list -%}\n {% set columns = columns.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for expect_compound_columns_to_be_unique test must be one of [True, False] Got: '\" ~ quote_columns ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set row_condition_ext -%}\n\n {%- if row_condition %}\n {{ row_condition }} and\n {% endif -%}\n\n {{ dbt_expectations.ignore_row_if_expression(ignore_row_if, columns) }}\n\n{%- endset -%}\n\nwith validation_errors as (\n\n select\n {% for column in columns -%}\n {{ column }}{% if not loop.last %},{% endif %}\n {%- endfor %}\n from {{ model }}\n where\n 1=1\n {%- if row_condition_ext %}\n and {{ row_condition_ext }}\n {% endif %}\n group by\n {% for column in columns -%}\n {{ column }}{% if not loop.last %},{% endif %}\n {%- endfor %}\n having count(*) > 1\n\n)\nselect * from validation_errors\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.05216, "supported_languages": null}, "macro.dbt_expectations.test_expect_multicolumn_sum_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_multicolumn_sum_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_multicolumn_sum_to_equal.sql", "original_file_path": "macros/schema_tests/multi-column/expect_multicolumn_sum_to_equal.sql", "name": "test_expect_multicolumn_sum_to_equal", "macro_sql": "{% test expect_multicolumn_sum_to_equal(model,\n column_list,\n sum_total,\n group_by=None,\n row_condition=None\n ) %}\n\n{% set expression %}\n{% for column in column_list %}\nsum({{ column }}){% if not loop.last %} + {% endif %}\n{% endfor %} = {{ sum_total }}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.053067, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_pair_values_to_be_equal": {"unique_id": "macro.dbt_expectations.test_expect_column_pair_values_to_be_equal", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_equal.sql", "original_file_path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_equal.sql", "name": "test_expect_column_pair_values_to_be_equal", "macro_sql": "{% test expect_column_pair_values_to_be_equal(model,\n column_A,\n column_B,\n row_condition=None\n ) %}\n\n{% set operator = \"=\" %}\n{% set expression = column_A ~ \" \" ~ operator ~ \" \" ~ column_B %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0537071, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_pair_values_A_to_be_greater_than_B": {"unique_id": "macro.dbt_expectations.test_expect_column_pair_values_A_to_be_greater_than_B", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_column_pair_values_A_to_be_greater_than_B.sql", "original_file_path": "macros/schema_tests/multi-column/expect_column_pair_values_A_to_be_greater_than_B.sql", "name": "test_expect_column_pair_values_A_to_be_greater_than_B", "macro_sql": "{% test expect_column_pair_values_A_to_be_greater_than_B(model,\n column_A,\n column_B,\n or_equal=False,\n row_condition=None\n ) %}\n\n{% set operator = \">=\" if or_equal else \">\" %}\n{% set expression = column_A ~ \" \" ~ operator ~ \" \" ~ column_B %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.0544052, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_pair_values_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_pair_values_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/austinblackerby/git_flipside/polygon-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_in_set.sql", "original_file_path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_in_set.sql", "name": "test_expect_column_pair_values_to_be_in_set", "macro_sql": "{% test expect_column_pair_values_to_be_in_set(model,\n column_A,\n column_B,\n value_pairs_set,\n row_condition=None\n ) %}\n\n{% set expression %}\n{% for pair in value_pairs_set %}\n{%- if (pair | length) == 2 %}\n({{ column_A }} = {{ pair[0] }} and {{ column_B }} = {{ pair[1] }}){% if not loop.last %} or {% endif %}\n{% else %}\n{{ exceptions.raise_compiler_error(\n \"`value_pairs_set` argument for expect_column_pair_values_to_be_in_set test cannot have more than 2 item per element.\n Got: '\" ~ pair ~ \"'.'\"\n ) }}\n{% endif %}\n{% endfor %}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1672849093.055779, "supported_languages": null}}, "docs": {"polygon_models.poly_sha3_uncles": {"unique_id": "polygon_models.poly_sha3_uncles", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/blocks/poly_sha3_uncles.md", "original_file_path": "models/doc_descriptions/blocks/poly_sha3_uncles.md", "name": "poly_sha3_uncles", "block_contents": "The mechanism which Ethereum Javascript RLP encodes an empty string."}, "polygon_models.poly_blocks_nonce": {"unique_id": "polygon_models.poly_blocks_nonce", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/blocks/poly_blocks_nonce.md", "original_file_path": "models/doc_descriptions/blocks/poly_blocks_nonce.md", "name": "poly_blocks_nonce", "block_contents": "Block nonce is a value used during mining to demonstrate proof of work for a given block."}, "polygon_models.poly_difficulty": {"unique_id": "polygon_models.poly_difficulty", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/blocks/poly_difficulty.md", "original_file_path": "models/doc_descriptions/blocks/poly_difficulty.md", "name": "poly_difficulty", "block_contents": "The effort required to mine the block."}, "polygon_models.poly_block_header_json": {"unique_id": "polygon_models.poly_block_header_json", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/blocks/poly_block_header_json.md", "original_file_path": "models/doc_descriptions/blocks/poly_block_header_json.md", "name": "poly_block_header_json", "block_contents": "This JSON column contains the block header details."}, "polygon_models.poly_extra_data": {"unique_id": "polygon_models.poly_extra_data", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/blocks/poly_extra_data.md", "original_file_path": "models/doc_descriptions/blocks/poly_extra_data.md", "name": "poly_extra_data", "block_contents": "Any data included by the validator for a given block."}, "polygon_models.poly_network": {"unique_id": "polygon_models.poly_network", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/blocks/poly_network.md", "original_file_path": "models/doc_descriptions/blocks/poly_network.md", "name": "poly_network", "block_contents": "The network on the blockchain used by a transaction."}, "polygon_models.poly_receipts_root": {"unique_id": "polygon_models.poly_receipts_root", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/blocks/poly_receipts_root.md", "original_file_path": "models/doc_descriptions/blocks/poly_receipts_root.md", "name": "poly_receipts_root", "block_contents": "The root of the state trie."}, "polygon_models.poly_gas_limit": {"unique_id": "polygon_models.poly_gas_limit", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/blocks/poly_gas_limit.md", "original_file_path": "models/doc_descriptions/blocks/poly_gas_limit.md", "name": "poly_gas_limit", "block_contents": "Total gas limit provided by all transactions in the block."}, "polygon_models.poly_blocks_hash": {"unique_id": "polygon_models.poly_blocks_hash", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/blocks/poly_blocks_hash.md", "original_file_path": "models/doc_descriptions/blocks/poly_blocks_hash.md", "name": "poly_blocks_hash", "block_contents": "The hash of the block header for a given block."}, "polygon_models.poly_total_difficulty": {"unique_id": "polygon_models.poly_total_difficulty", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/blocks/poly_total_difficulty.md", "original_file_path": "models/doc_descriptions/blocks/poly_total_difficulty.md", "name": "poly_total_difficulty", "block_contents": "Total difficulty of the chain at a given block."}, "polygon_models.poly_gas_used": {"unique_id": "polygon_models.poly_gas_used", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/blocks/poly_gas_used.md", "original_file_path": "models/doc_descriptions/blocks/poly_gas_used.md", "name": "poly_gas_used", "block_contents": "Total gas used in the block."}, "polygon_models.poly_blocks_table_doc": {"unique_id": "polygon_models.poly_blocks_table_doc", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/blocks/poly_blocks_table_doc.md", "original_file_path": "models/doc_descriptions/blocks/poly_blocks_table_doc.md", "name": "poly_blocks_table_doc", "block_contents": "This table contains block level data for the Polygon Blockchain. This table can be used to analyze trends at a block level, for example gas fees vs. total transactions over time. For more information on EVM transactions, please see [Etherscan Resources](https://etherscan.io/directory/Learning_Resources/Ethereum) or [The Ethereum Organization](https://ethereum.org/en/developers/docs/blocks/)"}, "polygon_models.poly_miner": {"unique_id": "polygon_models.poly_miner", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/blocks/poly_miner.md", "original_file_path": "models/doc_descriptions/blocks/poly_miner.md", "name": "poly_miner", "block_contents": "Miner who successfully added a given block to the blockchain."}, "polygon_models.poly_blockchain": {"unique_id": "polygon_models.poly_blockchain", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/blocks/poly_blockchain.md", "original_file_path": "models/doc_descriptions/blocks/poly_blockchain.md", "name": "poly_blockchain", "block_contents": "The blockchain on which transactions are being confirmed."}, "polygon_models.poly_size": {"unique_id": "polygon_models.poly_size", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/blocks/poly_size.md", "original_file_path": "models/doc_descriptions/blocks/poly_size.md", "name": "poly_size", "block_contents": "Block size, which is determined by a given block's gas limit."}, "polygon_models.poly_parent_hash": {"unique_id": "polygon_models.poly_parent_hash", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/blocks/poly_parent_hash.md", "original_file_path": "models/doc_descriptions/blocks/poly_parent_hash.md", "name": "poly_parent_hash", "block_contents": "The hash of the block from which a given block is generated. Also known as the parent block."}, "polygon_models.poly_tx_count": {"unique_id": "polygon_models.poly_tx_count", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/blocks/poly_tx_count.md", "original_file_path": "models/doc_descriptions/blocks/poly_tx_count.md", "name": "poly_tx_count", "block_contents": "Total number of transactions within a block."}, "polygon_models.poly_uncle_blocks": {"unique_id": "polygon_models.poly_uncle_blocks", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/blocks/poly_uncle_blocks.md", "original_file_path": "models/doc_descriptions/blocks/poly_uncle_blocks.md", "name": "poly_uncle_blocks", "block_contents": "Uncle blocks occur when two blocks are mined and broadcasted at the same time, with the same block number. The block validated across the most nodes will be added to the primary chain, and the other one becomes an uncle block. Miners do receive rewards for uncle blocks."}, "polygon_models.poly_logs_contract_address": {"unique_id": "polygon_models.poly_logs_contract_address", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/event_logs/poly_logs_contract_address.md", "original_file_path": "models/doc_descriptions/event_logs/poly_logs_contract_address.md", "name": "poly_logs_contract_address", "block_contents": "The address interacted with for a given event."}, "polygon_models.poly_event_removed": {"unique_id": "polygon_models.poly_event_removed", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/event_logs/poly_event_removed.md", "original_file_path": "models/doc_descriptions/event_logs/poly_event_removed.md", "name": "poly_event_removed", "block_contents": "Whether the event has been removed from the transaction."}, "polygon_models.poly_logs_data": {"unique_id": "polygon_models.poly_logs_data", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/event_logs/poly_logs_data.md", "original_file_path": "models/doc_descriptions/event_logs/poly_logs_data.md", "name": "poly_logs_data", "block_contents": "The un-decoded event data."}, "polygon_models.poly_logs_contract_name": {"unique_id": "polygon_models.poly_logs_contract_name", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/event_logs/poly_logs_contract_name.md", "original_file_path": "models/doc_descriptions/event_logs/poly_logs_contract_name.md", "name": "poly_logs_contract_name", "block_contents": "The name of the contract or token, where possible."}, "polygon_models.poly_origin_to": {"unique_id": "polygon_models.poly_origin_to", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/event_logs/poly_origin_to.md", "original_file_path": "models/doc_descriptions/event_logs/poly_origin_to.md", "name": "poly_origin_to", "block_contents": "The to address of this transaction."}, "polygon_models.poly_logs_table_doc": {"unique_id": "polygon_models.poly_logs_table_doc", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/event_logs/poly_logs_table_doc.md", "original_file_path": "models/doc_descriptions/event_logs/poly_logs_table_doc.md", "name": "poly_logs_table_doc", "block_contents": "This table contains flattened event logs from transactions on the Polygon Blockchain. Transactions may have multiple events, which are denoted by the event index for a transaction hash. Therefore, this table is unique on the combination of transaction hash and event index. Event names are decoded in this table where possible. The event inputs column will contain the log details in JSON format. Specific fields can be pulled from this column using the following sample format: ```event_inputs::: as ```."}, "polygon_models.poly_origin_sig": {"unique_id": "polygon_models.poly_origin_sig", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/event_logs/poly_event_sig.md", "original_file_path": "models/doc_descriptions/event_logs/poly_event_sig.md", "name": "poly_origin_sig", "block_contents": "The function signature of this transaction."}, "polygon_models.poly_topics": {"unique_id": "polygon_models.poly_topics", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/event_logs/poly_topics.md", "original_file_path": "models/doc_descriptions/event_logs/poly_topics.md", "name": "poly_topics", "block_contents": "The un-decoded event input topics."}, "polygon_models.poly_event_index": {"unique_id": "polygon_models.poly_event_index", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/event_logs/poly_event_index.md", "original_file_path": "models/doc_descriptions/event_logs/poly_event_index.md", "name": "poly_event_index", "block_contents": "Event number within a transaction."}, "polygon_models.poly_event_name": {"unique_id": "polygon_models.poly_event_name", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/event_logs/poly_event_name.md", "original_file_path": "models/doc_descriptions/event_logs/poly_event_name.md", "name": "poly_event_name", "block_contents": "The decoded event name for a given event."}, "polygon_models.poly_log_id_events": {"unique_id": "polygon_models.poly_log_id_events", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/event_logs/poly_log_id_events.md", "original_file_path": "models/doc_descriptions/event_logs/poly_log_id_events.md", "name": "poly_log_id_events", "block_contents": "This is the primary key for this table. This is a concatenation of the transaction hash and the event index at which the event occurred."}, "polygon_models.poly_origin_from": {"unique_id": "polygon_models.poly_origin_from", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/event_logs/poly_origin_from.md", "original_file_path": "models/doc_descriptions/event_logs/poly_origin_from.md", "name": "poly_origin_from", "block_contents": "The from address of this transaction."}, "polygon_models.poly_logs_tx_hash": {"unique_id": "polygon_models.poly_logs_tx_hash", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/event_logs/poly_logs_tx_hash.md", "original_file_path": "models/doc_descriptions/event_logs/poly_logs_tx_hash.md", "name": "poly_logs_tx_hash", "block_contents": "Transaction hash is a unique 66-character identifier that is generated when a transaction is executed. This field will not be unique in this table, as a given transaction can include multiple events."}, "polygon_models.poly_event_inputs": {"unique_id": "polygon_models.poly_event_inputs", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/event_logs/poly_event_inputs.md", "original_file_path": "models/doc_descriptions/event_logs/poly_event_inputs.md", "name": "poly_event_inputs", "block_contents": "The decoded event inputs for a given event."}, "polygon_models.eth_dex_pool_address": {"unique_id": "polygon_models.eth_dex_pool_address", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_pool_address.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_pool_address.md", "name": "eth_dex_pool_address", "block_contents": "The contract address for the liquidity pool."}, "polygon_models.eth_dex_swaps_symbol_out": {"unique_id": "polygon_models.eth_dex_swaps_symbol_out", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_symbol_out.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_symbol_out.md", "name": "eth_dex_swaps_symbol_out", "block_contents": "The symbol of the token being swapped to."}, "polygon_models.eth_dex_creation_tx": {"unique_id": "polygon_models.eth_dex_creation_tx", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_creation_tx.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_creation_tx.md", "name": "eth_dex_creation_tx", "block_contents": "The transaction where this contract was created, where possible."}, "polygon_models.eth_dex_swaps_amount_in": {"unique_id": "polygon_models.eth_dex_swaps_amount_in", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_amount_in.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_amount_in.md", "name": "eth_dex_swaps_amount_in", "block_contents": "The amount of tokens put into the swap."}, "polygon_models.eth_dex_swaps_amount_in_usd": {"unique_id": "polygon_models.eth_dex_swaps_amount_in_usd", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_amount_in_usd.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_amount_in_usd.md", "name": "eth_dex_swaps_amount_in_usd", "block_contents": "The amount of tokens put into the swap converted to USD using the price of the token."}, "polygon_models.eth_dex_swaps_tx_to": {"unique_id": "polygon_models.eth_dex_swaps_tx_to", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_tx_to.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_tx_to.md", "name": "eth_dex_swaps_tx_to", "block_contents": "The tx_to is the address who receives the swapped token. This corresponds to the \"to\" field in the swap function."}, "polygon_models.eth_dex_swaps_token_in": {"unique_id": "polygon_models.eth_dex_swaps_token_in", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_token_In.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_token_In.md", "name": "eth_dex_swaps_token_in", "block_contents": "The address of the token sent for swap."}, "polygon_models.poly_sushi__ez_swaps": {"unique_id": "polygon_models.poly_sushi__ez_swaps", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/poly_sushi__ez_swaps.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/poly_sushi__ez_swaps.md", "name": "poly_sushi__ez_swaps", "block_contents": "This table currently contains swap events from the ```fact_event_logs``` table for SushiSwap, along with other helpful columns including an amount USD where possible. \nNote: A rule has been put in place to null out the amount_USD if that number is too divergent between amount_in_USD and amount_out_usd. This can happen for swaps of less liquid tokens during very high fluctuation of price."}, "polygon_models.eth_dex_platform": {"unique_id": "polygon_models.eth_dex_platform", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_platform.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_platform.md", "name": "eth_dex_platform", "block_contents": "This field denotes which application the liquidity pool belongs to."}, "polygon_models.eth_dex_pool_name": {"unique_id": "polygon_models.eth_dex_pool_name", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_pool_name.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_pool_name.md", "name": "eth_dex_pool_name", "block_contents": "The name of the liquidity pool, where possible."}, "polygon_models.eth_dex_tokens": {"unique_id": "polygon_models.eth_dex_tokens", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_tokens.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_tokens.md", "name": "eth_dex_tokens", "block_contents": "This field contains the tokens within the liquidity pool as a JSON objects."}, "polygon_models.eth_dex_factory_address": {"unique_id": "polygon_models.eth_dex_factory_address", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_factory_address.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_factory_address.md", "name": "eth_dex_factory_address", "block_contents": "The address that created or deployed this pool, where possible."}, "polygon_models.eth_dex_swaps_token_out": {"unique_id": "polygon_models.eth_dex_swaps_token_out", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_token_out.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_token_out.md", "name": "eth_dex_swaps_token_out", "block_contents": "The address of the token being swapped to."}, "polygon_models.eth_dex_creation_time": {"unique_id": "polygon_models.eth_dex_creation_time", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_creation_time.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_creation_time.md", "name": "eth_dex_creation_time", "block_contents": "When this pool was created, where possible."}, "polygon_models.eth_dex_lp_table_doc": {"unique_id": "polygon_models.eth_dex_lp_table_doc", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/Poly_dex_lp_table_doc.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/Poly_dex_lp_table_doc.md", "name": "eth_dex_lp_table_doc", "block_contents": "This table contains details on different Liquidity Pools belonging to sushiswap on the Polygon blockchain"}, "polygon_models.eth_dex_swaps_amount_out_usd": {"unique_id": "polygon_models.eth_dex_swaps_amount_out_usd", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_amount_out_usd.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_amount_out_usd.md", "name": "eth_dex_swaps_amount_out_usd", "block_contents": "The amount of tokens taken out of or received from the swap converted to USD using the price of the token."}, "polygon_models.eth_dex_token1": {"unique_id": "polygon_models.eth_dex_token1", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_token1.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_token1.md", "name": "eth_dex_token1", "block_contents": "Token 1 is the second token in the pair, and will show up second within the event logs for relevant transactions."}, "polygon_models.eth_dex_swaps_amount_out": {"unique_id": "polygon_models.eth_dex_swaps_amount_out", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_amount_out.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_amount_out.md", "name": "eth_dex_swaps_amount_out", "block_contents": "The amount of tokens taken out of or received from the swap."}, "polygon_models.eth_dex_swaps_symbol_in": {"unique_id": "polygon_models.eth_dex_swaps_symbol_in", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_symbol_in.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_symbol_in.md", "name": "eth_dex_swaps_symbol_in", "block_contents": "The symbol of the token sent for swap."}, "polygon_models.eth_dex_swaps_sender": {"unique_id": "polygon_models.eth_dex_swaps_sender", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_sender.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_swaps_sender.md", "name": "eth_dex_swaps_sender", "block_contents": "The Router is the Sender in the swap function."}, "polygon_models.eth_dex_token0": {"unique_id": "polygon_models.eth_dex_token0", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/dex - (imported from layer 1)/eth_dex_token0.md", "original_file_path": "models/doc_descriptions/dex - (imported from layer 1)/eth_dex_token0.md", "name": "eth_dex_token0", "block_contents": "Token 0 is the first token in the pair, and will show up first within the event logs for relevant transactions."}, "polygon_models.poly_traces_value": {"unique_id": "polygon_models.poly_traces_value", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/traces/poly_traces_value.md", "original_file_path": "models/doc_descriptions/traces/poly_traces_value.md", "name": "poly_traces_value", "block_contents": "The amount of MATIC transferred in this trace."}, "polygon_models.poly_traces_gas_used": {"unique_id": "polygon_models.poly_traces_gas_used", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/traces/poly_traces_gas_used.md", "original_file_path": "models/doc_descriptions/traces/poly_traces_gas_used.md", "name": "poly_traces_gas_used", "block_contents": "The gas used for this trace."}, "polygon_models.poly_traces_sub": {"unique_id": "polygon_models.poly_traces_sub", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/traces/poly_traces_sub.md", "original_file_path": "models/doc_descriptions/traces/poly_traces_sub.md", "name": "poly_traces_sub", "block_contents": "The amount of nested sub traces for this trace."}, "polygon_models.poly_traces_table_doc": {"unique_id": "polygon_models.poly_traces_table_doc", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/traces/poly_traces_table_doc.md", "original_file_path": "models/doc_descriptions/traces/poly_traces_table_doc.md", "name": "poly_traces_table_doc", "block_contents": "This table contains flattened trace data for internal contract calls on the Polygon Blockchain. Hex encoded fields can be decoded to integers by using `polygon.public.udf_hex_to_int()`."}, "polygon_models.poly_traces_type": {"unique_id": "polygon_models.poly_traces_type", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/traces/poly_traces_type.md", "original_file_path": "models/doc_descriptions/traces/poly_traces_type.md", "name": "poly_traces_type", "block_contents": "The type of internal transaction. Common trace types are `CALL`, `DELEGATECALL`, and `STATICCALL`."}, "polygon_models.poly_traces_input": {"unique_id": "polygon_models.poly_traces_input", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/traces/poly_traces_input.md", "original_file_path": "models/doc_descriptions/traces/poly_traces_input.md", "name": "poly_traces_input", "block_contents": "The input data for this trace."}, "polygon_models.poly_traces_gas": {"unique_id": "polygon_models.poly_traces_gas", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/traces/poly_traces_gas.md", "original_file_path": "models/doc_descriptions/traces/poly_traces_gas.md", "name": "poly_traces_gas", "block_contents": "The gas supplied for this trace."}, "polygon_models.poly_traces_output": {"unique_id": "polygon_models.poly_traces_output", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/traces/poly_traces_output.md", "original_file_path": "models/doc_descriptions/traces/poly_traces_output.md", "name": "poly_traces_output", "block_contents": "The output data for this trace."}, "polygon_models.poly_traces_block_no": {"unique_id": "polygon_models.poly_traces_block_no", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/traces/poly_traces_block_no.md", "original_file_path": "models/doc_descriptions/traces/poly_traces_block_no.md", "name": "poly_traces_block_no", "block_contents": "The block number of this transaction."}, "polygon_models.poly_traces_call_data": {"unique_id": "polygon_models.poly_traces_call_data", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/traces/poly_traces_call_data.md", "original_file_path": "models/doc_descriptions/traces/poly_traces_call_data.md", "name": "poly_traces_call_data", "block_contents": "The raw JSON data for this trace."}, "polygon_models.poly_traces_tx_hash": {"unique_id": "polygon_models.poly_traces_tx_hash", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/traces/poly_traces_tx_hash.md", "original_file_path": "models/doc_descriptions/traces/poly_traces_tx_hash.md", "name": "poly_traces_tx_hash", "block_contents": "The transaction hash for the trace. Please note, this is not necessarily unique in this table as transactions frequently have multiple traces."}, "polygon_models.poly_traces_identifier": {"unique_id": "polygon_models.poly_traces_identifier", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/traces/poly_traces_identifier.md", "original_file_path": "models/doc_descriptions/traces/poly_traces_identifier.md", "name": "poly_traces_identifier", "block_contents": "This field represents the position and type of the trace within the transaction."}, "polygon_models.poly_traces_from": {"unique_id": "polygon_models.poly_traces_from", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/traces/poly_traces_from.md", "original_file_path": "models/doc_descriptions/traces/poly_traces_from.md", "name": "poly_traces_from", "block_contents": "The sending address of this trace. This is not necessarily the from address of the transaction."}, "polygon_models.poly_traces_blocktime": {"unique_id": "polygon_models.poly_traces_blocktime", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/traces/poly_traces_blocktime.md", "original_file_path": "models/doc_descriptions/traces/poly_traces_blocktime.md", "name": "poly_traces_blocktime", "block_contents": "The block timestamp of this transaction."}, "polygon_models.poly_traces_to": {"unique_id": "polygon_models.poly_traces_to", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/traces/poly_traces_to.md", "original_file_path": "models/doc_descriptions/traces/poly_traces_to.md", "name": "poly_traces_to", "block_contents": "The receiving address of this trace. This is not necessarily the to address of the transaction."}, "polygon_models.borrower": {"unique_id": "polygon_models.borrower", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Borrowing/Borrower.md", "original_file_path": "models/doc_descriptions/Borrowing/Borrower.md", "name": "borrower", "block_contents": "Its the address of the user who is Borrowing or repaying the loan, depending on the action."}, "polygon_models.borrow_amount_usd": {"unique_id": "polygon_models.borrow_amount_usd", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Borrowing/amount_usd.md", "original_file_path": "models/doc_descriptions/Borrowing/amount_usd.md", "name": "borrow_amount_usd", "block_contents": "The meaning depends on the action:\nBorrow: The amount of the asset in USD that the user is borrowing or\nRepay: The amount of the asset in USD that the user is repaying\nAdd collateral: The amount of collateral in USD that the user is depositing\nRemove collateral: The amount of collateral in USD that the user is withdrawing"}, "polygon_models.borrow_symbol": {"unique_id": "polygon_models.borrow_symbol", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Borrowing/Borrow_symbol.md", "original_file_path": "models/doc_descriptions/Borrowing/Borrow_symbol.md", "name": "borrow_symbol", "block_contents": "The symbol of the asset/collateral that is payed or received, depending on the action"}, "polygon_models.collateral_address": {"unique_id": "polygon_models.collateral_address", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Borrowing/collateral_address.md", "original_file_path": "models/doc_descriptions/Borrowing/collateral_address.md", "name": "collateral_address", "block_contents": "The address of the asset that is used for collateral when borrowing funds."}, "polygon_models.borrow_amount": {"unique_id": "polygon_models.borrow_amount", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Borrowing/amount.md", "original_file_path": "models/doc_descriptions/Borrowing/amount.md", "name": "borrow_amount", "block_contents": "The meaning depends on the action:\nBorrow: The amount of the asset that the user is borrowing or\nRepay: The amount of the asset that the user is repaying\nAdd collateral: The amount of collateral that the user is depositing\nRemove collateral: The amount of collateral that the user is withdrawing"}, "polygon_models.borrow_asset": {"unique_id": "polygon_models.borrow_asset", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Borrowing/asset.md", "original_file_path": "models/doc_descriptions/Borrowing/asset.md", "name": "borrow_asset", "block_contents": "The address of the asset/collateral token that is being borrowed/repayed/deposited etc. depending on the action"}, "polygon_models.collateral_symbol": {"unique_id": "polygon_models.collateral_symbol", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Borrowing/collateral_symbol.md", "original_file_path": "models/doc_descriptions/Borrowing/collateral_symbol.md", "name": "collateral_symbol", "block_contents": "The symbol of the asset that is used for collateral when borrowing funds."}, "polygon_models.borrow_action": {"unique_id": "polygon_models.borrow_action", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Borrowing/action.md", "original_file_path": "models/doc_descriptions/Borrowing/action.md", "name": "borrow_action", "block_contents": "The action that the user is taking.\n Borrow: user is borrowing an asset\n Repay: user is repaying the asset that they have borrowed in a previous loan\n Add collateral: user is depositing collateral for their loan. This happens some times in the same transaction as the borrowing transaction and some times in a separate transaction. \n Remove collateral: user is withdrawing collateral. This happens some times in the same transaction as the borrowing transaction and some times in a separate transaction."}, "polygon_models.__overview__": {"unique_id": "polygon_models.__overview__", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/general/__overview__.md", "original_file_path": "models/doc_descriptions/general/__overview__.md", "name": "__overview__", "block_contents": "# Welcome to the Flipside Crypto Polygon Models Documentation!\n\n# NOTE: Data is in 'lite mode' - meaning, historical data have not yet been backfilled. Please see min(block_timestamp)\n\n## **What is Flipside?**\n\n[Flipside Crypto](https://flipsidecrypto.xyz/earn) provides Community Enabled Crypto Analytics, allowing our users to create and share data insights on the crypto projects they care most about.\n\n**Flipside Crypto puts pre-modeled and labeled blockchain data in the hands of communities.**\n\nThrough dashboard and visualization tools, as well as auto-generated API endpoints, data analysts can easily create queries that answer any question via a tool called [Velocity](https://app.flipsidecrypto.com/velocity?nav=Discover).\n\n**Community members earn bounties for answering questions with data.**\n\nBounties provide incentive and direction, so crypto projects can quickly source the data insights they need in order to grow.\n\n**Flipside works directly with leading crypto projects to reward on-demand analytics through structured bounty programs.**\n\nQuestions sourced directly from the community provide insight into what communities care about as well as analytics needed to drive ecosystem engagement and growth.\n\n## **What does this documentation cover?**\nThe documentation included here details the design of the Polygon tables and views available via [Flipside Crypto.](https://flipsidecrypto.xyz/earn) For more information on how these models are built, please see [the github repository.](https://github.com/FlipsideCrypto/polygon-models)\n\n### **Quick Links to Table Documentation**\n\n- [fact_blocks](https://flipsidecrypto.github.io/polygon-models/#!/model/model.polygon_models.core__fact_blocks)\n- [fact_event_logs](https://flipsidecrypto.github.io/polygon-models/#!/model/model.polygon_models.core__fact_event_logs)\n- [fact_traces](https://flipsidecrypto.github.io/polygon-models/#!/model/model.polygon_models.core__fact_traces)\n- [fact_transactions](https://flipsidecrypto.github.io/polygon-models/#!/model/model.polygon_models.core__fact_transactions)\n- [dim_lables](https://flipsidecrypto.github.io/polygon-models/#!/model/model.polygon_models.core__dim_labels)\n- [ez_matic_transfers](https://flipsidecrypto.github.io/polygon-models/#!/model/model.polygon_models.core__ez_matic_transfers)\n- [fact_token_transfers](https://flipsidecrypto.github.io/polygon-models/#!/model/model.polygon_models.core__fact_token_transfers)\n\n## **Data Model Overview**\n\nThe Polygon models are built a few different ways, but the core fact table are built using three layers of sql models: **bronze, silver, and gold (or core).**\n\n- Bronze: Data is loaded in from the source as a view\n- Silver: All necessary parsing, filtering, de-duping, and other transformations are done here\n- Gold (or core): Final views and tables that are available in Velocity\n\nThe dimension tables are sourced from a variety of on-chain and off-chain sources.\n\nConvenience views (denoted ez_) are a combination of different fact and dimension tables. \n\nA user-defined-function (UDF) is available to decode hex encoded values to integers in this database. You can call this UDF by using `polygon.public.udf_hex_to_int(FIELD)`.\n\n\n## **Using dbt docs**\n### Navigation\n\nYou can use the ```Project``` and ```Database``` navigation tabs on the left side of the window to explore the models in the project.\n\n### Database Tab\n\nThis view shows relations (tables and views) grouped into database schemas. Note that ephemeral models are *not* shown in this interface, as they do not exist in the database.\n\n### Graph Exploration\n\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the Expand button at the top-right of this lineage pane, you'll be able to see all of the models that are used to build, or are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the ```--models``` and ```--exclude``` model selection syntax to filter the models in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n\n### **More information**\n- [Flipside](https://flipsidecrypto.xyz/earn)\n- [Velocity](https://app.flipsidecrypto.com/velocity?nav=Discover)\n- [Tutorials](https://docs.flipsidecrypto.com/our-data/tutorials)\n- [Github](https://github.com/FlipsideCrypto/polygon-models)\n- [Query Editor Shortcuts](https://docs.flipsidecrypto.com/velocity/query-editor-shortcuts)\n- [What is dbt?](https://docs.getdbt.com/docs/introduction)"}, "polygon_models.poly_from_address": {"unique_id": "polygon_models.poly_from_address", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/general/poly_from_address.md", "original_file_path": "models/doc_descriptions/general/poly_from_address.md", "name": "poly_from_address", "block_contents": "The sending address of this transaction."}, "polygon_models.poly_symbol": {"unique_id": "polygon_models.poly_symbol", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/general/poly_symbol.md", "original_file_path": "models/doc_descriptions/general/poly_symbol.md", "name": "poly_symbol", "block_contents": "The symbol belonging to the address of the token"}, "polygon_models.poly_block_timestamp": {"unique_id": "polygon_models.poly_block_timestamp", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/general/poly_block_timestamp.md", "original_file_path": "models/doc_descriptions/general/poly_block_timestamp.md", "name": "poly_block_timestamp", "block_contents": "The date and time at which the block was produced."}, "polygon_models.poly_ingested_at": {"unique_id": "polygon_models.poly_ingested_at", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/general/poly_ingested_at.md", "original_file_path": "models/doc_descriptions/general/poly_ingested_at.md", "name": "poly_ingested_at", "block_contents": "Internal column."}, "polygon_models.poly_decimals": {"unique_id": "polygon_models.poly_decimals", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/general/poly_decimals.md", "original_file_path": "models/doc_descriptions/general/poly_decimals.md", "name": "poly_decimals", "block_contents": "The number of decimal places this contract needs adjusted where token values exist. For example, use the decimal field to correctly transform raw amounts in ```fact_transactions```."}, "polygon_models.poly_block_number": {"unique_id": "polygon_models.poly_block_number", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/general/poly_block_number.md", "original_file_path": "models/doc_descriptions/general/poly_block_number.md", "name": "poly_block_number", "block_contents": "Also known as block height. The block number, which indicates the length of the blockchain, increases after the addition of each new block."}, "polygon_models.poly_to_address": {"unique_id": "polygon_models.poly_to_address", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/general/poly_to_address.md", "original_file_path": "models/doc_descriptions/general/poly_to_address.md", "name": "poly_to_address", "block_contents": "The receiving address of this transaction. This can be a contract address."}, "polygon_models.matic_label_address": {"unique_id": "polygon_models.matic_label_address", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/labels/matic_label_address.md", "original_file_path": "models/doc_descriptions/labels/matic_label_address.md", "name": "matic_label_address", "block_contents": "Address that the label is for. This is the field that should be used to join other tables with labels."}, "polygon_models.matic_label_blockchain": {"unique_id": "polygon_models.matic_label_blockchain", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/labels/matic_label_blockchain.md", "original_file_path": "models/doc_descriptions/labels/matic_label_blockchain.md", "name": "matic_label_blockchain", "block_contents": "The name of the blockchain."}, "polygon_models.matic_label_subtype": {"unique_id": "polygon_models.matic_label_subtype", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/labels/matic_label_subtype.md", "original_file_path": "models/doc_descriptions/labels/matic_label_subtype.md", "name": "matic_label_subtype", "block_contents": "A sub-category nested within label type providing further detail."}, "polygon_models.matic_project_name": {"unique_id": "polygon_models.matic_project_name", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/labels/matic_label.md", "original_file_path": "models/doc_descriptions/labels/matic_label.md", "name": "matic_project_name", "block_contents": "The name of the project for this address."}, "polygon_models.matic_label_address_name": {"unique_id": "polygon_models.matic_label_address_name", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/labels/matic_label_address_name.md", "original_file_path": "models/doc_descriptions/labels/matic_label_address_name.md", "name": "matic_label_address_name", "block_contents": "The most granular label for this address."}, "polygon_models.matic_labels_table": {"unique_id": "polygon_models.matic_labels_table", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/labels/matic_labels_table_doc.md", "original_file_path": "models/doc_descriptions/labels/matic_labels_table_doc.md", "name": "matic_labels_table", "block_contents": "This table contains labels for addresses on the Polygon Blockchain."}, "polygon_models.matic_label_creator": {"unique_id": "polygon_models.matic_label_creator", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/labels/matic_label_creator.md", "original_file_path": "models/doc_descriptions/labels/matic_label_creator.md", "name": "matic_label_creator", "block_contents": "The name of the creator of the label."}, "polygon_models.matic_label_type": {"unique_id": "polygon_models.matic_label_type", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/labels/matic_label_type.md", "original_file_path": "models/doc_descriptions/labels/matic_label_type.md", "name": "matic_label_type", "block_contents": "A high-level category describing the addresses main function or ownership."}, "polygon_models.poly_transfer_has_price": {"unique_id": "polygon_models.poly_transfer_has_price", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transfers/poly_transfer_has_price.md", "original_file_path": "models/doc_descriptions/transfers/poly_transfer_has_price.md", "name": "poly_transfer_has_price", "block_contents": "Whether or not our prices model contains this hourly token price."}, "polygon_models.poly_transfer_token_price": {"unique_id": "polygon_models.poly_transfer_token_price", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transfers/poly_transfer_token_price.md", "original_file_path": "models/doc_descriptions/transfers/poly_transfer_token_price.md", "name": "poly_transfer_token_price", "block_contents": "The price, if available, for this token at the transfer time."}, "polygon_models.poly_transfer_has_decimal": {"unique_id": "polygon_models.poly_transfer_has_decimal", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transfers/poly_transfer_has_decimal.md", "original_file_path": "models/doc_descriptions/transfers/poly_transfer_has_decimal.md", "name": "poly_transfer_has_decimal", "block_contents": "Whether or not our contracts model contains the necessary decimal adjustment for this token."}, "polygon_models.poly_eth_amount_usd": {"unique_id": "polygon_models.poly_eth_amount_usd", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transfers/poly_eth_amount_usd.md", "original_file_path": "models/doc_descriptions/transfers/poly_eth_amount_usd.md", "name": "poly_eth_amount_usd", "block_contents": "ETH value transferred, in USD."}, "polygon_models.poly_ez_transfer_table_doc": {"unique_id": "polygon_models.poly_ez_transfer_table_doc", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transfers/poly_ez_transfer_table_doc.md", "original_file_path": "models/doc_descriptions/transfers/poly_ez_transfer_table_doc.md", "name": "poly_ez_transfer_table_doc", "block_contents": "This table will contain all events in the ```fact_token_transfers table```, along with joined columns such as token price, symbol, and decimals where possible that allow for easier analysis of token transfer events. Please note Native ETH transfers are not included here."}, "polygon_models.poly_eth_origin_to": {"unique_id": "polygon_models.poly_eth_origin_to", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transfers/poly_origin_to.md", "original_file_path": "models/doc_descriptions/transfers/poly_origin_to.md", "name": "poly_eth_origin_to", "block_contents": "The to address at the transaction level."}, "polygon_models.poly_transfer_raw_amount": {"unique_id": "polygon_models.poly_transfer_raw_amount", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transfers/poly_transfer_raw_amount.md", "original_file_path": "models/doc_descriptions/transfers/poly_transfer_raw_amount.md", "name": "poly_transfer_raw_amount", "block_contents": "The amount of tokens transferred. This value is not decimal adjusted."}, "polygon_models.poly_transfer_from_address": {"unique_id": "polygon_models.poly_transfer_from_address", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transfers/poly_transfer_from_address.md", "original_file_path": "models/doc_descriptions/transfers/poly_transfer_from_address.md", "name": "poly_transfer_from_address", "block_contents": "The sending address of this transfer."}, "polygon_models.poly_eth_amount": {"unique_id": "polygon_models.poly_eth_amount", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transfers/poly_eth_amount.md", "original_file_path": "models/doc_descriptions/transfers/poly_eth_amount.md", "name": "poly_eth_amount", "block_contents": "ETH value transferred."}, "polygon_models.poly_transfer_amount_usd": {"unique_id": "polygon_models.poly_transfer_amount_usd", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transfers/poly_transfer_amount_usd.md", "original_file_path": "models/doc_descriptions/transfers/poly_transfer_amount_usd.md", "name": "poly_transfer_amount_usd", "block_contents": "The amount in US dollars for this transfer at the time of the transfer. Tokens without a decimal adjustment or price will be nulled out here."}, "polygon_models.poly_transfer_contract_address": {"unique_id": "polygon_models.poly_transfer_contract_address", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transfers/poly_transfer_contract_address.md", "original_file_path": "models/doc_descriptions/transfers/poly_transfer_contract_address.md", "name": "poly_transfer_contract_address", "block_contents": "Contract address of the token being transferred."}, "polygon_models.poly_log_id_transfers": {"unique_id": "polygon_models.poly_log_id_transfers", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transfers/poly_log_id_transfers.md", "original_file_path": "models/doc_descriptions/transfers/poly_log_id_transfers.md", "name": "poly_log_id_transfers", "block_contents": "This is the primary key for this table. This is a concatenation of the transaction hash and the event index at which the transfer event occurred. This field can be used to find more details on the event within the ```fact_event_logs``` table."}, "polygon_models.poly_ez_eth_transfers_table_doc": {"unique_id": "polygon_models.poly_ez_eth_transfers_table_doc", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transfers/poly_ez_eth_transfers_table_doc.md", "original_file_path": "models/doc_descriptions/transfers/poly_ez_eth_transfers_table_doc.md", "name": "poly_ez_eth_transfers_table_doc", "block_contents": "This table contains all native Matic transfers, including equivalent USD amounts. The origin addresses correspond to the to and from addresses from the `fact_transactions` table. The `identifier` and `tx_hash` columns relate this table back to `fact_traces`, which contains more details on the transfers."}, "polygon_models.poly_transfer_to_address": {"unique_id": "polygon_models.poly_transfer_to_address", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transfers/poly_transfer_to_address.md", "original_file_path": "models/doc_descriptions/transfers/poly_transfer_to_address.md", "name": "poly_transfer_to_address", "block_contents": "The receiving address of this transfer. This can be a contract address."}, "polygon_models.poly_transfer_table_doc": {"unique_id": "polygon_models.poly_transfer_table_doc", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transfers/poly_transfer_table_doc.md", "original_file_path": "models/doc_descriptions/transfers/poly_transfer_table_doc.md", "name": "poly_transfer_table_doc", "block_contents": "This table contains events on the Polygon 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. Decimal adjustments for a token address can be found in ```dim_contracts```. This table will not contain transfers of native ETH."}, "polygon_models.poly_transfer_tx_hash": {"unique_id": "polygon_models.poly_transfer_tx_hash", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transfers/poly_transfer_tx_hash.md", "original_file_path": "models/doc_descriptions/transfers/poly_transfer_tx_hash.md", "name": "poly_transfer_tx_hash", "block_contents": "Transaction hash is a unique 66-character identifier that is generated when a transaction is executed. This will not be unique in this table as a transaction could include multiple transfer events."}, "polygon_models.poly_transfer_amount": {"unique_id": "polygon_models.poly_transfer_amount", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transfers/poly_transfer_amount.md", "original_file_path": "models/doc_descriptions/transfers/poly_transfer_amount.md", "name": "poly_transfer_amount", "block_contents": "The decimal transformed amount for this token. Tokens without a decimal adjustment will be nulled out here."}, "polygon_models.poly_eth_origin_from": {"unique_id": "polygon_models.poly_eth_origin_from", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transfers/poly_origin_from.md", "original_file_path": "models/doc_descriptions/transfers/poly_origin_from.md", "name": "poly_eth_origin_from", "block_contents": "The from address at the transaction level."}, "polygon_models.lending_symbol": {"unique_id": "polygon_models.lending_symbol", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Lending/Lending_symbol.md", "original_file_path": "models/doc_descriptions/Lending/Lending_symbol.md", "name": "lending_symbol", "block_contents": "The symbol of the asset that is lent or withdrawn, depending on the action"}, "polygon_models.lending_amount_usd": {"unique_id": "polygon_models.lending_amount_usd", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Lending/amount_usd.md", "original_file_path": "models/doc_descriptions/Lending/amount_usd.md", "name": "lending_amount_usd", "block_contents": "The amount of the asset that the user is depositing or withdrawing, depending on the action."}, "polygon_models.lending_asset_address": {"unique_id": "polygon_models.lending_asset_address", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Lending/Lending_asset_address.md", "original_file_path": "models/doc_descriptions/Lending/Lending_asset_address.md", "name": "lending_asset_address", "block_contents": "The address of the asset in the token pair. This asset is either deposited ot withdrawn for lending purposes."}, "polygon_models.lending_amount": {"unique_id": "polygon_models.lending_amount", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Lending/amount.md", "original_file_path": "models/doc_descriptions/Lending/amount.md", "name": "lending_amount", "block_contents": "The amount of the asset that the user is depositing or withdrawing, depending on the action."}, "polygon_models.lending_borrower_is_a_contract": {"unique_id": "polygon_models.lending_borrower_is_a_contract", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Lending/borrower_is_a_contract.md", "original_file_path": "models/doc_descriptions/Lending/borrower_is_a_contract.md", "name": "lending_borrower_is_a_contract", "block_contents": "If the depositor of collateral is a contract then its a Yes, if the depositor of collateral is a normal address it is a No."}, "polygon_models.lending_asset": {"unique_id": "polygon_models.lending_asset", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Lending/asset.md", "original_file_path": "models/doc_descriptions/Lending/asset.md", "name": "lending_asset", "block_contents": "The address of the asset (token) that is being deposited/withdrawn, depending on the action"}, "polygon_models.lending_origin_to_address": {"unique_id": "polygon_models.lending_origin_to_address", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Lending/origin_to_address.md", "original_file_path": "models/doc_descriptions/Lending/origin_to_address.md", "name": "lending_origin_to_address", "block_contents": "The person who initiates the depositing transaction has to interact with this address. This address belongs to the lending platform or directs the transactio there."}, "polygon_models.lending_pool_address": {"unique_id": "polygon_models.lending_pool_address", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Lending/Lending_pool_address.md", "original_file_path": "models/doc_descriptions/Lending/Lending_pool_address.md", "name": "lending_pool_address", "block_contents": "The address of the lending pool. For sushi this will be the address of the kashi pair."}, "polygon_models.lending_origin_from_address": {"unique_id": "polygon_models.lending_origin_from_address", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Lending/origin_from_address.md", "original_file_path": "models/doc_descriptions/Lending/origin_from_address.md", "name": "lending_origin_from_address", "block_contents": "The address of the user who initiates the transaction."}, "polygon_models.lending_lending_pool": {"unique_id": "polygon_models.lending_lending_pool", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Lending/lending_pool.md", "original_file_path": "models/doc_descriptions/Lending/lending_pool.md", "name": "lending_lending_pool", "block_contents": "The name of the lending pool."}, "polygon_models.lending_action": {"unique_id": "polygon_models.lending_action", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Lending/action.md", "original_file_path": "models/doc_descriptions/Lending/action.md", "name": "lending_action", "block_contents": "The action that the user is taking.\n Deposit: user is depositing funds to be used for lending\n Withdraw: user has changed their mind and are no longer willing to lend, so they withdraw their asset"}, "polygon_models.lending_lender_is_a_contract": {"unique_id": "polygon_models.lending_lender_is_a_contract", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Lending/lender_is_a_contract.md", "original_file_path": "models/doc_descriptions/Lending/lender_is_a_contract.md", "name": "lending_lender_is_a_contract", "block_contents": "If the depositor is a contract then its a Yes, if the depositor is a normal address it is a No."}, "polygon_models.lending_depositor": {"unique_id": "polygon_models.lending_depositor", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/Lending/Depositor.md", "original_file_path": "models/doc_descriptions/Lending/Depositor.md", "name": "lending_depositor", "block_contents": "Its the address of the user who is depositing for lending or withdrawing, depending on the action."}, "polygon_models.poly_tx_position": {"unique_id": "polygon_models.poly_tx_position", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transactions/poly_tx_position.md", "original_file_path": "models/doc_descriptions/transactions/poly_tx_position.md", "name": "poly_tx_position", "block_contents": "The position of the transaction within the block."}, "polygon_models.poly_value": {"unique_id": "polygon_models.poly_value", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transactions/poly_value.md", "original_file_path": "models/doc_descriptions/transactions/poly_value.md", "name": "poly_value", "block_contents": "The value transacted in Matic."}, "polygon_models.poly_tx_hash": {"unique_id": "polygon_models.poly_tx_hash", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transactions/poly_tx_hash.md", "original_file_path": "models/doc_descriptions/transactions/poly_tx_hash.md", "name": "poly_tx_hash", "block_contents": "Transaction hash is a unique 66-character identifier that is generated when a transaction is executed."}, "polygon_models.poly_tx_gas_used": {"unique_id": "polygon_models.poly_tx_gas_used", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transactions/poly_tx_gas_used.md", "original_file_path": "models/doc_descriptions/transactions/poly_tx_gas_used.md", "name": "poly_tx_gas_used", "block_contents": "Gas used by transaction."}, "polygon_models.poly_tx_block_hash": {"unique_id": "polygon_models.poly_tx_block_hash", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transactions/poly_tx_block_hash.md", "original_file_path": "models/doc_descriptions/transactions/poly_tx_block_hash.md", "name": "poly_tx_block_hash", "block_contents": "Block hash is a unique 66-character identifier that is generate when a block is produced."}, "polygon_models.poly_tx_fee": {"unique_id": "polygon_models.poly_tx_fee", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transactions/poly_tx_fee.md", "original_file_path": "models/doc_descriptions/transactions/poly_tx_fee.md", "name": "poly_tx_fee", "block_contents": "Amount paid to validate the transaction in MATIC."}, "polygon_models.poly_tx_json": {"unique_id": "polygon_models.poly_tx_json", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transactions/poly_tx_json.md", "original_file_path": "models/doc_descriptions/transactions/poly_tx_json.md", "name": "poly_tx_json", "block_contents": "This JSON column contains the transaction details, including event logs."}, "polygon_models.poly_tx_input_data": {"unique_id": "polygon_models.poly_tx_input_data", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transactions/poly_tx_input_data.md", "original_file_path": "models/doc_descriptions/transactions/poly_tx_input_data.md", "name": "poly_tx_input_data", "block_contents": "This column contains additional data for this transaction, and is commonly used as part of a contract interaction or as a message to the recipient."}, "polygon_models.poly_tx_gas_price": {"unique_id": "polygon_models.poly_tx_gas_price", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transactions/poly_tx_gas_price.md", "original_file_path": "models/doc_descriptions/transactions/poly_tx_gas_price.md", "name": "poly_tx_gas_price", "block_contents": "Cost per unit of gas in Gwei."}, "polygon_models.poly_tx_origin_sig": {"unique_id": "polygon_models.poly_tx_origin_sig", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transactions/poly_tx_origin_sig.md", "original_file_path": "models/doc_descriptions/transactions/poly_tx_origin_sig.md", "name": "poly_tx_origin_sig", "block_contents": "The function signature of the contract call."}, "polygon_models.poly_cumulative_gas_used": {"unique_id": "polygon_models.poly_cumulative_gas_used", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transactions/poly_cumulative_gas_used.md", "original_file_path": "models/doc_descriptions/transactions/poly_cumulative_gas_used.md", "name": "poly_cumulative_gas_used", "block_contents": "The total amount of gas used when this transaction was executed in the block."}, "polygon_models.poly_tx_nonce": {"unique_id": "polygon_models.poly_tx_nonce", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transactions/poly_tx_nonce.md", "original_file_path": "models/doc_descriptions/transactions/poly_tx_nonce.md", "name": "poly_tx_nonce", "block_contents": "The number of transactions sent from a given address."}, "polygon_models.poly_tx_status": {"unique_id": "polygon_models.poly_tx_status", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transactions/poly_tx_status.md", "original_file_path": "models/doc_descriptions/transactions/poly_tx_status.md", "name": "poly_tx_status", "block_contents": "Status of the transaction."}, "polygon_models.poly_tx_table_doc": {"unique_id": "polygon_models.poly_tx_table_doc", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transactions/poly_tx_table_doc.md", "original_file_path": "models/doc_descriptions/transactions/poly_tx_table_doc.md", "name": "poly_tx_table_doc", "block_contents": "This table contains transaction level data for the Polygon Blockchain. Each transaction will have a unique transaction hash, along with transactions fees and a MATIC value transferred when applicable. Transactions may be native MATIC transfers or interactions with contract addresses. For more information, please see [The Ethereum Organization - Transactions](https://ethereum.org/en/developers/docs/transactions/)"}, "polygon_models.poly_tx_gas_limit": {"unique_id": "polygon_models.poly_tx_gas_limit", "package_name": "polygon_models", "root_path": "/Users/austinblackerby/git_flipside/polygon-models", "path": "doc_descriptions/transactions/poly_tx_gas_limit.md", "original_file_path": "models/doc_descriptions/transactions/poly_tx_gas_limit.md", "name": "poly_tx_gas_limit", "block_contents": "Maximum amount of gas allocated for the transaction."}, "dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-snowflake@1.3.0/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}}, "exposures": {}, "metrics": {}, "selectors": {}, "disabled": {}, "parent_map": {"model.polygon_models.bronze__blocks": ["source.polygon_models.prod.polygon_blocks"], "model.polygon_models.bronze__transactions": ["source.polygon_models.prod.polygon_txs"], "model.polygon_models.bronze_api__contract_abis": ["model.polygon_models.silver__relevant_abi_contracts", "source.polygon_models.crosschain_silver.apis_keys"], "model.polygon_models.bronze_api__token_reads": ["model.polygon_models.silver__relevant_token_contracts", "source.polygon_models.streamline_crosschain.node_mapping"], "model.polygon_models.silver__contract_abis": ["model.polygon_models.bronze_api__contract_abis"], "model.polygon_models.silver__transactions": ["model.polygon_models.bronze__transactions"], "model.polygon_models.silver__transfers": ["model.polygon_models.silver__logs"], "model.polygon_models.silver__logs": ["model.polygon_models.bronze__transactions"], "model.polygon_models.silver__blocks": ["model.polygon_models.bronze__blocks"], "model.polygon_models.silver__traces": ["model.polygon_models.bronze__blocks", "model.polygon_models.bronze__transactions"], "model.polygon_models.silver__contracts": ["model.polygon_models.bronze_api__token_reads"], "model.polygon_models.silver__contract_proxies": ["model.polygon_models.silver__logs"], "model.polygon_models.streamline__complete_transactions": ["source.polygon_models.bronze_streamline.transactions", "source.polygon_models.bronze_streamline.transactions"], "model.polygon_models.streamline__transactions_history": ["model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions"], "model.polygon_models.streamline__transactions_realtime": ["model.polygon_models._max_block_by_date", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_transactions"], "model.polygon_models.streamline__complete_blocks": ["source.polygon_models.bronze_streamline.blocks", "source.polygon_models.bronze_streamline.blocks"], "model.polygon_models._max_block_by_date": ["model.polygon_models.silver__blocks"], "model.polygon_models.streamline__blocks_history": ["model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks"], "model.polygon_models.streamline__blocks_realtime": ["model.polygon_models._max_block_by_date", "model.polygon_models.streamline__blocks", "model.polygon_models.streamline__complete_blocks"], "model.polygon_models.streamline__blocks": [], "model.polygon_models.silver__relevant_abi_contracts": ["model.polygon_models.silver__logs", "model.polygon_models.silver__logs"], "model.polygon_models.silver__relevant_token_contracts": ["model.polygon_models.silver__logs"], "model.polygon_models.core__fact_transactions": ["model.polygon_models.silver__transactions"], "model.polygon_models.core__fact_token_transfers": ["model.polygon_models.silver__transfers"], "model.polygon_models.core__fact_traces": ["model.polygon_models.silver__traces"], "model.polygon_models.core__fact_blocks": ["model.polygon_models.silver__blocks"], "model.polygon_models.core__fact_event_logs": ["model.polygon_models.silver__logs"], "model.polygon_models.core__dim_contracts": ["model.polygon_models.silver__contracts"], "model.polygon_models.core__dim_labels": ["source.polygon_models.crosschain.address_labels"], "model.polygon_models.sushi__ez_lending": ["model.polygon_models.silver__logs", "model.polygon_models.silver__logs", "model.polygon_models.silver__logs", "model.polygon_models.silver__logs", "model.polygon_models.sushi__dim_kashi_pairs", "model.polygon_models.sushi__dim_kashi_pairs", "model.polygon_models.sushi__dim_kashi_pairs", "source.polygon_models.ethereum.fact_hourly_token_prices", "source.polygon_models.symbols_cross_tab.MARKET_ASSET_METADATA"], "model.polygon_models.sushi__ez_swaps": ["model.polygon_models.silver__logs", "model.polygon_models.sushi__dim_dex_pools", "model.polygon_models.sushi__dim_dex_pools", "source.polygon_models.ethereum.fact_hourly_token_prices", "source.polygon_models.symbols_cross_tab.MARKET_ASSET_METADATA"], "model.polygon_models.sushi__dim_dex_pools": ["source.polygon_models.polygon_dex_pools.SUSHI_DIM_DEX_POOLS"], "model.polygon_models.sushi__ez_borrowing": ["model.polygon_models.silver__logs", "model.polygon_models.silver__logs", "model.polygon_models.silver__logs", "model.polygon_models.silver__logs", "model.polygon_models.silver__logs", "model.polygon_models.silver__logs", "model.polygon_models.silver__logs", "model.polygon_models.silver__logs", "model.polygon_models.silver__logs", "model.polygon_models.silver__logs", "model.polygon_models.sushi__dim_kashi_pairs", "model.polygon_models.sushi__dim_kashi_pairs", "model.polygon_models.sushi__dim_kashi_pairs", "model.polygon_models.sushi__dim_kashi_pairs", "model.polygon_models.sushi__dim_kashi_pairs", "model.polygon_models.sushi__dim_kashi_pairs", "model.polygon_models.sushi__dim_kashi_pairs", "source.polygon_models.ethereum.fact_hourly_token_prices", "source.polygon_models.symbols_cross_tab.MARKET_ASSET_METADATA"], "model.polygon_models.sushi__dim_kashi_pairs": ["source.polygon_models.polygon_dex_pools.SUSHI_DIM_KASHI_PAIRS"], "seed.polygon_models.bronze__sushi_dim_dex_pools": [], "seed.polygon_models.bronze__sushi_dim_kashi_pairs": [], "operation.polygon_models.polygon_models-on-run-start-0": [], "operation.polygon_models.polygon_models-on-run-start-1": [], "operation.polygon_models.polygon_models-on-run-start-2": [], "test.polygon_models.not_null_bronze_api__token_reads__INSERTED_TIMESTAMP.801b5bd3f6": ["model.polygon_models.bronze_api__token_reads"], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze_api__token_reads__INSERTED_TIMESTAMP__day__1.c8280743d7": ["model.polygon_models.bronze_api__token_reads"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__token_reads__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.10472fa4e9": ["model.polygon_models.bronze_api__token_reads"], "test.polygon_models.dbt_utils_unique_combination_of_columns_bronze_api__token_reads_CONTRACT_ADDRESS__FUNCTION_SIG.15f6dbcf0c": ["model.polygon_models.bronze_api__token_reads"], "test.polygon_models.not_null_bronze_api__contract_abis__INSERTED_TIMESTAMP.cd35aef90f": ["model.polygon_models.bronze_api__contract_abis"], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze_api__contract_abis__INSERTED_TIMESTAMP__day__1.cce492bb5d": ["model.polygon_models.bronze_api__contract_abis"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__contract_abis__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.aabf36df67": ["model.polygon_models.bronze_api__contract_abis"], "test.polygon_models.not_null_bronze_api__contract_abis_CONTRACT_ADDRESS.656bc51ae4": ["model.polygon_models.bronze_api__contract_abis"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__contract_abis_CONTRACT_ADDRESS__VARCHAR.425fbc821b": ["model.polygon_models.bronze_api__contract_abis"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_bronze_api__contract_abis_CONTRACT_ADDRESS___0x_0_9a_fA_F_40_.62635507b2": ["model.polygon_models.bronze_api__contract_abis"], "test.polygon_models.not_null_silver__logs_BLOCK_NUMBER.f98b235d4c": ["model.polygon_models.silver__logs"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_BLOCK_NUMBER__NUMBER.73461cc432": ["model.polygon_models.silver__logs"], "test.polygon_models.not_null_silver__logs_BLOCK_TIMESTAMP.ca6209335c": ["model.polygon_models.silver__logs"], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__logs_BLOCK_TIMESTAMP__day__1.79d0ca0413": ["model.polygon_models.silver__logs"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.c39585c6f3": ["model.polygon_models.silver__logs"], "test.polygon_models.not_null_silver__logs_TX_HASH.18b09ee14d": ["model.polygon_models.silver__logs"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_TX_HASH__0_xX_0_9a_fA_F_.0eee0960b6": ["model.polygon_models.silver__logs"], "test.polygon_models.not_null_silver__logs_EVENT_INDEX.b97eeb39d7": ["model.polygon_models.silver__logs"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_INDEX__NUMBER__FLOAT.d0df352178": ["model.polygon_models.silver__logs"], "test.polygon_models.not_null_silver__logs_CONTRACT_ADDRESS.b78d8c86eb": ["model.polygon_models.silver__logs"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.28bc84b2ae": ["model.polygon_models.silver__logs"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_NAME__STRING__VARCHAR.7af2bc20cd": ["model.polygon_models.silver__logs"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_INPUTS__OBJECT.a903a96237": ["model.polygon_models.silver__logs"], "test.polygon_models.not_null_silver__logs_TOPICS.f042e94d85": ["model.polygon_models.silver__logs"], "test.polygon_models.not_null_silver__logs_DATA.c5fac5c4a4": ["model.polygon_models.silver__logs"], "test.polygon_models.not_null_silver__logs_EVENT_REMOVED.4f302d08e0": ["model.polygon_models.silver__logs"], "test.polygon_models.not_null_silver__logs__LOG_ID.8c3f196b2a": ["model.polygon_models.silver__logs"], "test.polygon_models.not_null_silver__logs_ORIGIN_FUNCTION_SIGNATURE.ed647f3e17": ["model.polygon_models.silver__logs"], "test.polygon_models.not_null_silver__logs_ORIGIN_FROM_ADDRESS.1759538d91": ["model.polygon_models.silver__logs"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.a59d6ffc6a": ["model.polygon_models.silver__logs"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.869407dadd": ["model.polygon_models.silver__logs"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__logs__LOG_ID.780efa90bd": ["model.polygon_models.silver__logs"], "test.polygon_models.sequence_gaps_silver__logs_EVENT_INDEX__BLOCK_NUMBER__TX_HASH.8b3582ee4a": ["model.polygon_models.silver__logs"], "test.polygon_models.not_null_silver__traces_BLOCK_NUMBER.9dcd1525b2": ["model.polygon_models.silver__traces"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__traces_BLOCK_NUMBER__NUMBER__FLOAT.ccd2c156a6": ["model.polygon_models.silver__traces"], "test.polygon_models.not_null_silver__traces_BLOCK_TIMESTAMP.4053e07c73": ["model.polygon_models.silver__traces"], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__traces_BLOCK_TIMESTAMP__day__1.0589c5d87f": ["model.polygon_models.silver__traces"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__traces_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.3ffecd9044": ["model.polygon_models.silver__traces"], "test.polygon_models.not_null_silver__traces_TX_HASH.ccbdeb5e91": ["model.polygon_models.silver__traces"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_TX_HASH__0_xX_0_9a_fA_F_.14f576932b": ["model.polygon_models.silver__traces"], "test.polygon_models.not_null_silver__traces_FROM_ADDRESS.285ef0c05b": ["model.polygon_models.silver__traces"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_FROM_ADDRESS__0_xX_0_9a_fA_F_.b404693575": ["model.polygon_models.silver__traces"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_TO_ADDRESS__0_xX_0_9a_fA_F_.3af876962e": ["model.polygon_models.silver__traces"], "test.polygon_models.not_null_silver__traces_IDENTIFIER.ee73127ec0": ["model.polygon_models.silver__traces"], "test.polygon_models.not_null_silver__traces_MATIC_VALUE.16932a2346": ["model.polygon_models.silver__traces"], "test.polygon_models.not_null_silver__traces_GAS.53d7bbcf6a": ["model.polygon_models.silver__traces"], "test.polygon_models.not_null_silver__traces_GAS_USED.eb9bf97ca1": ["model.polygon_models.silver__traces"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__traces__CALL_ID.2854a11c5a": ["model.polygon_models.silver__traces"], "test.polygon_models.not_null_silver__blocks_BLOCK_NUMBER.3ed5bd5a97": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_NUMBER__NUMBER__FLOAT.5e6997665c": ["model.polygon_models.silver__blocks"], "test.polygon_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751": ["model.polygon_models.silver__blocks"], "test.polygon_models.not_null_silver__blocks_NETWORK.65d2a5d7b1": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_NETWORK__STRING__VARCHAR.31e2a1e5bd": ["model.polygon_models.silver__blocks"], "test.polygon_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd": ["model.polygon_models.silver__blocks"], "test.polygon_models.not_null_silver__blocks_TX_COUNT.34525b51e6": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5": ["model.polygon_models.silver__blocks"], "test.polygon_models.not_null_silver__blocks_DIFFICULTY.dfd6bb7310": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_DIFFICULTY__NUMBER__FLOAT.4b5343dd2c": ["model.polygon_models.silver__blocks"], "test.polygon_models.not_null_silver__blocks_TOTAL_DIFFICULTY.64edc4b2a9": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TOTAL_DIFFICULTY__NUMBER__FLOAT.4a0213cf40": ["model.polygon_models.silver__blocks"], "test.polygon_models.not_null_silver__blocks_EXTRA_DATA.7b7824f6ea": ["model.polygon_models.silver__blocks"], "test.polygon_models.not_null_silver__blocks_GAS_LIMIT.a66366ccf7": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_GAS_LIMIT__NUMBER__FLOAT.c009cca74d": ["model.polygon_models.silver__blocks"], "test.polygon_models.not_null_silver__blocks_GAS_USED.637b37099a": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_GAS_USED__NUMBER__FLOAT.bde7aa758f": ["model.polygon_models.silver__blocks"], "test.polygon_models.not_null_silver__blocks_HASH.bc44a39f94": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_HASH__0_xX_0_9a_fA_F_.923a822bca": ["model.polygon_models.silver__blocks"], "test.polygon_models.not_null_silver__blocks_PARENT_HASH.a17a399346": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_PARENT_HASH__0_xX_0_9a_fA_F_.164fb6eb16": ["model.polygon_models.silver__blocks"], "test.polygon_models.not_null_silver__blocks_MINER.c17f6cbb87": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_MINER__0_xX_0_9a_fA_F_.7e8cc9ca0b": ["model.polygon_models.silver__blocks"], "test.polygon_models.not_null_silver__blocks_NONCE.10c0698884": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_NONCE__0_xX_0_9a_fA_F_.0f55c64955": ["model.polygon_models.silver__blocks"], "test.polygon_models.not_null_silver__blocks_RECEIPTS_ROOT.cd3163505f": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.6964f6dc30": ["model.polygon_models.silver__blocks"], "test.polygon_models.not_null_silver__blocks_SHA3_UNCLES.e7c903103e": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_SHA3_UNCLES__0_xX_0_9a_fA_F_.c74b2fa922": ["model.polygon_models.silver__blocks"], "test.polygon_models.not_null_silver__blocks_SIZE.f1fa8f466b": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_SIZE__NUMBER.7f2a8fc982": ["model.polygon_models.silver__blocks"], "test.polygon_models.not_null_silver__blocks_BLOCK_HEADER_JSON.98268f8f2b": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_HEADER_JSON__OBJECT.1be6a88f28": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__blocks_BLOCK_NUMBER.58d43342ca": ["model.polygon_models.silver__blocks"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contract_abis_CONTRACT_ADDRESS.d4ac45a2a1": ["model.polygon_models.silver__contract_abis"], "test.polygon_models.not_null_silver__transactions_BLOCK_NUMBER.574ebe21b0": ["model.polygon_models.silver__transactions"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_NUMBER__NUMBER__FLOAT.c48e941615": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d": ["model.polygon_models.silver__transactions"], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc": ["model.polygon_models.silver__transactions"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transactions_TX_HASH.8a2cc32062": ["model.polygon_models.silver__transactions"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_TX_HASH__0_xX_0_9a_fA_F_.558497d3b6": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transactions_NONCE.3eac435cf9": ["model.polygon_models.silver__transactions"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_NONCE__NUMBER__FLOAT.e9f3267e00": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transactions_POSITION.6be7c293c7": ["model.polygon_models.silver__transactions"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_POSITION__NUMBER.5d920e939f": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transactions_FROM_ADDRESS.002109da43": ["model.polygon_models.silver__transactions"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_FROM_ADDRESS__0_xX_0_9a_fA_F_.48157e7169": ["model.polygon_models.silver__transactions"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_TO_ADDRESS__0_xX_0_9a_fA_F_.6729f77190": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transactions_MATIC_VALUE.e723701716": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transactions_BLOCK_HASH.2c918b73f5": ["model.polygon_models.silver__transactions"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_BLOCK_HASH__0_xX_0_9a_fA_F_.6a7999ad31": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transactions_GAS_PRICE.9ee195e584": ["model.polygon_models.silver__transactions"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_PRICE__NUMBER__FLOAT.7ff329f632": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transactions_GAS_LIMIT.b5ac619228": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transactions_INPUT_DATA.3cc998f5b1": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transactions_STATUS.42a484ef7a": ["model.polygon_models.silver__transactions"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__transactions_STATUS__SUCCESS__FAIL.f4150c7e34": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transactions_GAS_USED.1c943486c0": ["model.polygon_models.silver__transactions"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transactions_CUMULATIVE_GAS_USED.2ff9788f8f": ["model.polygon_models.silver__transactions"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_CUMULATIVE_GAS_USED__NUMBER__FLOAT.68061c4689": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transactions_TX_FEE.f2f0cdc085": ["model.polygon_models.silver__transactions"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_FEE__NUMBER__FLOAT.c56121a801": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transactions_EFFECTIVE_GAS_PRICE.fac733dec7": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transactions_TX_JSON.c989b71e6a": ["model.polygon_models.silver__transactions"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_JSON__OBJECT.f6596e98ec": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transactions_INGESTED_AT.98e6b66449": ["model.polygon_models.silver__transactions"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_INGESTED_AT__TIMESTAMP_NTZ.c716636b55": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transactions_ORIGIN_FUNCTION_SIGNATURE.6ba6212d68": ["model.polygon_models.silver__transactions"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__transactions_TX_HASH.c217683bc6": ["model.polygon_models.silver__transactions"], "test.polygon_models.sequence_gaps_silver__transactions_POSITION__BLOCK_NUMBER.bb18e3a49e": ["model.polygon_models.silver__transactions"], "test.polygon_models.not_null_silver__transfers_BLOCK_NUMBER.d11bbde531": ["model.polygon_models.silver__transfers"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_NUMBER__NUMBER__FLOAT.45ecdb8c94": ["model.polygon_models.silver__transfers"], "test.polygon_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c": ["model.polygon_models.silver__transfers"], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111": ["model.polygon_models.silver__transfers"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd": ["model.polygon_models.silver__transfers"], "test.polygon_models.not_null_silver__transfers_TX_HASH.9444c39bdc": ["model.polygon_models.silver__transfers"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_TX_HASH__0_xX_0_9a_fA_F_.f25b6d0ca1": ["model.polygon_models.silver__transfers"], "test.polygon_models.not_null_silver__transfers_CONTRACT_ADDRESS.df8cd401ef": ["model.polygon_models.silver__transfers"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.8e89d13bed": ["model.polygon_models.silver__transfers"], "test.polygon_models.not_null_silver__transfers_FROM_ADDRESS.cc15ca835c": ["model.polygon_models.silver__transfers"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_FROM_ADDRESS__0_xX_0_9a_fA_F_.0479073084": ["model.polygon_models.silver__transfers"], "test.polygon_models.not_null_silver__transfers_TO_ADDRESS.2ea6a02b7c": ["model.polygon_models.silver__transfers"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_TO_ADDRESS__0_xX_0_9a_fA_F_.f65ff6bdb6": ["model.polygon_models.silver__transfers"], "test.polygon_models.not_null_silver__transfers_RAW_AMOUNT.c53823d6c7": ["model.polygon_models.silver__transfers"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RAW_AMOUNT__NUMBER__FLOAT.eb70e6172e": ["model.polygon_models.silver__transfers"], "test.polygon_models.not_null_silver__transfers__LOG_ID.29bb073a40": ["model.polygon_models.silver__transfers"], "test.polygon_models.not_null_silver__transfers_ORIGIN_FUNCTION_SIGNATURE.c1c149f732": ["model.polygon_models.silver__transfers"], "test.polygon_models.not_null_silver__transfers_ORIGIN_FROM_ADDRESS.30ffa7f127": ["model.polygon_models.silver__transfers"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.fb311c6cec": ["model.polygon_models.silver__transfers"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.81fe3d170a": ["model.polygon_models.silver__transfers"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__transfers__LOG_ID.3ebab76726": ["model.polygon_models.silver__transfers"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contract_proxies_ID.3ac7fb13cd": ["model.polygon_models.silver__contract_proxies"], "test.polygon_models.not_null_silver__contracts_CONTRACT_ADDRESS.18b93ee6d5": ["model.polygon_models.silver__contracts"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__contracts_CONTRACT_ADDRESS__STRING__VARCHAR.a501d61489": ["model.polygon_models.silver__contracts"], "test.polygon_models.not_null_silver__contracts__INSERTED_TIMESTAMP.5ad8bc1f2a": ["model.polygon_models.silver__contracts"], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__contracts__INSERTED_TIMESTAMP__day__2.c0b3d27a1b": ["model.polygon_models.silver__contracts"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__contracts__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3d97d7eb14": ["model.polygon_models.silver__contracts"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contracts_CONTRACT_ADDRESS.f84f93870c": ["model.polygon_models.silver__contracts"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__relevant_abi_contracts_CONTRACT_ADDRESS.13614bb275": ["model.polygon_models.silver__relevant_abi_contracts"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__relevant_token_contracts_CONTRACT_ADDRESS.24bd782cb8": ["model.polygon_models.silver__relevant_token_contracts"], "test.polygon_models.not_null_core__dim_labels_BLOCKCHAIN.a4e09054d7": ["model.polygon_models.core__dim_labels"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_core__dim_labels_BLOCKCHAIN__polygon.5e6c2c1b9f": ["model.polygon_models.core__dim_labels"], "test.polygon_models.not_null_core__dim_labels_CREATOR.0c77d5749c": ["model.polygon_models.core__dim_labels"], "test.polygon_models.not_null_core__dim_labels_ADDRESS.ddf35f62af": ["model.polygon_models.core__dim_labels"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_core__dim_labels_ADDRESS__0_xX_0_9a_fA_F_.52c2534d6a": ["model.polygon_models.core__dim_labels"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_ADDRESS_NAME__STRING__VARCHAR.7747aa45d1": ["model.polygon_models.core__dim_labels"], "test.polygon_models.not_null_core__dim_labels_LABEL_TYPE.65b0f6f1ed": ["model.polygon_models.core__dim_labels"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_core__dim_labels_LABEL_TYPE__flotsam__nft__defi__dex__cex__dapp__token__operator__layer2__chadmin__project.145ec1d947": ["model.polygon_models.core__dim_labels"], "test.polygon_models.not_null_core__dim_labels_LABEL_SUBTYPE.556a65235c": ["model.polygon_models.core__dim_labels"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_LABEL_SUBTYPE__STRING__VARCHAR.80b827b7f5": ["model.polygon_models.core__dim_labels"], "test.polygon_models.not_null_core__dim_labels_PROJECT_NAME.484353cecc": ["model.polygon_models.core__dim_labels"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_PROJECT_NAME__STRING__VARCHAR.c5aaaed300": ["model.polygon_models.core__dim_labels"], "test.polygon_models.dbt_utils_unique_combination_of_columns_core__dim_labels_BLOCKCHAIN__CREATOR__ADDRESS.de325ffec9": ["model.polygon_models.core__dim_labels"], "test.polygon_models.not_null_sushi__ez_lending_BLOCK_NUMBER.7191bdf706": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_BLOCK_NUMBER__NUMBER__FLOAT.35c6b5d227": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.not_null_sushi__ez_lending_BLOCK_TIMESTAMP.47c8a01531": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_lending_BLOCK_TIMESTAMP__day__7.71e49e375e": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.93cce89aaf": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.not_null_sushi__ez_lending_TX_HASH.3c471bed51": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_TX_HASH__0_xX_0_9a_fA_F_.fb7184c78a": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.not_null_sushi__ez_lending_LENDING_POOL_ADDRESS.343619b86f": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_LENDING_POOL_ADDRESS__0_xX_0_9a_fA_F_.3ccd0511f9": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.not_null_sushi__ez_lending_AMOUNT.d0ca35e1b9": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_AMOUNT__NUMBER__FLOAT.f5513895b6": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_AMOUNT_USD__NUMBER__FLOAT.010574c5b1": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.not_null_sushi__ez_lending_ASSET.92156a57ed": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ASSET__0_xX_0_9a_fA_F_.8a7dd8b676": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_SYMBOL__STRING__VARCHAR.dcace84af9": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.not_null_sushi__ez_lending_DEPOSITOR.9f9196dce7": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_DEPOSITOR__0_xX_0_9a_fA_F_.560921e0f1": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_EVENT_INDEX__NUMBER__FLOAT.64324e3895": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.not_null_sushi__ez_lending__LOG_ID.aeb399324a": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.not_null_sushi__ez_lending_ORIGIN_FROM_ADDRESS.0a279cef72": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.3b31561bc6": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.3e3828617a": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.not_null_sushi__ez_lending_LENDING_POOL.1cc2cec6c9": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.not_null_sushi__ez_lending_LENDER_IS_A_CONTRACT.39fe049559": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.dbt_utils_unique_combination_of_columns_sushi__ez_lending__LOG_ID.9fb554f90f": ["model.polygon_models.sushi__ez_lending"], "test.polygon_models.not_null_sushi__ez_swaps_BLOCK_NUMBER.4da3b3d654": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_BLOCK_NUMBER__NUMBER__FLOAT.7b69aae0de": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.not_null_sushi__ez_swaps_BLOCK_TIMESTAMP.64d0de4b09": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_swaps_BLOCK_TIMESTAMP__day__1.ccd4b95299": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.c09d40c178": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.not_null_sushi__ez_swaps_TX_HASH.5c71b07498": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TX_HASH__0_xX_0_9a_fA_F_.15d478c09c": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.not_null_sushi__ez_swaps_CONTRACT_ADDRESS.f4cd976e06": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.d6ed59e98b": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_EVENT_NAME__STRING__VARCHAR.9c08c6c888": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_IN__NUMBER__FLOAT.ce483aa368": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_OUT__NUMBER__FLOAT.6028b5385f": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_IN_USD__NUMBER__FLOAT.9a8b1e0480": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_OUT_USD__NUMBER__FLOAT.a061b70981": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.not_null_sushi__ez_swaps_TOKEN_IN.8093c41dbe": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TOKEN_IN__0_xX_0_9a_fA_F_.ae96a38071": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.not_null_sushi__ez_swaps_TOKEN_OUT.68f3f9aac2": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TOKEN_OUT__0_xX_0_9a_fA_F_.a99f33851e": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_SYMBOL_IN__STRING__VARCHAR.b1aea9c82f": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_SYMBOL_OUT__STRING__VARCHAR.9fa7d6e04c": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.not_null_sushi__ez_swaps_SENDER.b76baa207c": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_SENDER__0_xX_0_9a_fA_F_.b8de01d1db": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.not_null_sushi__ez_swaps_TX_TO.1c512c542a": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TX_TO__0_xX_0_9a_fA_F_.81a6e2ad45": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_PLATFORM__STRING__VARCHAR.55fbd4c7c1": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_EVENT_INDEX__NUMBER__FLOAT.311b76dea2": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.not_null_sushi__ez_swaps__LOG_ID.3bc8eb295f": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.not_null_sushi__ez_swaps_ORIGIN_FUNCTION_SIGNATURE.681d6adb74": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.not_null_sushi__ez_swaps_ORIGIN_FROM_ADDRESS.128c7fd237": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.d35c7fe495": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.dd5a907c68": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.dbt_utils_unique_combination_of_columns_sushi__ez_swaps__LOG_ID.cebe0de5a1": ["model.polygon_models.sushi__ez_swaps"], "test.polygon_models.not_null_sushi__ez_borrowing_BLOCK_NUMBER.76a0fc6bc9": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_BLOCK_NUMBER__NUMBER__FLOAT.e546629920": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.not_null_sushi__ez_borrowing_BLOCK_TIMESTAMP.3829c4c2c4": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_borrowing_BLOCK_TIMESTAMP__day__7.9e13292154": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2b4d3c83c9": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.not_null_sushi__ez_borrowing_TX_HASH.eeaf313cd8": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_TX_HASH__0_xX_0_9a_fA_F_.e3f190eb04": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.not_null_sushi__ez_borrowing_LENDING_POOL_ADDRESS.6ea7d50567": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_LENDING_POOL_ADDRESS__0_xX_0_9a_fA_F_.11e77397a2": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.not_null_sushi__ez_borrowing_AMOUNT.490bdfdbcb": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_AMOUNT__NUMBER__FLOAT.28b1f9641c": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_AMOUNT_USD__NUMBER__FLOAT.5a6575a29d": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.not_null_sushi__ez_borrowing_ASSET.963aa5a1aa": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ASSET__0_xX_0_9a_fA_F_.73483a63df": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_SYMBOL__STRING__VARCHAR.9b060d1d35": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.not_null_sushi__ez_borrowing_Borrower.1f484a738a": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_Borrower__0_xX_0_9a_fA_F_.cf22d8c187": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.not_null_sushi__ez_borrowing__LOG_ID.2c8a148cfa": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.not_null_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS.f47465af36": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.c43ca75daa": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.35e38583ac": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.not_null_sushi__ez_borrowing_LENDING_POOL.7144d8c199": ["model.polygon_models.sushi__ez_borrowing"], "test.polygon_models.not_null_sushi__ez_borrowing_BORROWER_IS_A_CONTRACT.386fbbb5c7": ["model.polygon_models.sushi__ez_borrowing"], "model.polygon_models.core__ez_matic_transfers": ["model.polygon_models.silver__traces", "model.polygon_models.silver__transactions", "source.polygon_models.ethereum.fact_hourly_token_prices"], "test.polygon_models.not_null_core__ez_matic_transfers_BLOCK_TIMESTAMP.dc9b204fcc": ["model.polygon_models.core__ez_matic_transfers"], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_core__ez_matic_transfers_BLOCK_TIMESTAMP__day__1.940673cb6e": ["model.polygon_models.core__ez_matic_transfers"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__ez_matic_transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.7cbaba0e0f": ["model.polygon_models.core__ez_matic_transfers"], "test.polygon_models.not_null_core__ez_matic_transfers_TX_HASH.6e9eb6a197": ["model.polygon_models.core__ez_matic_transfers"], "test.polygon_models.not_null_core__ez_matic_transfers_MATIC_FROM_ADDRESS.431d281508": ["model.polygon_models.core__ez_matic_transfers"], "test.polygon_models.not_null_core__ez_matic_transfers_MATIC_TO_ADDRESS.8231921086": ["model.polygon_models.core__ez_matic_transfers"], "test.polygon_models.not_null_core__ez_matic_transfers_AMOUNT.fe6f52cdc6": ["model.polygon_models.core__ez_matic_transfers"], "test.polygon_models.not_null_core__ez_matic_transfers_AMOUNT_USD.8cd2531d9f": ["model.polygon_models.core__ez_matic_transfers"], "test.polygon_models.dbt_utils_unique_combination_of_columns_core__ez_matic_transfers__CALL_ID.e29d5382c2": ["model.polygon_models.core__ez_matic_transfers"], "source.polygon_models.prod.polygon_blocks": [], "source.polygon_models.prod.polygon_txs": [], "source.polygon_models.crosschain.address_labels": [], "source.polygon_models.symbols_cross_tab.MARKET_ASSET_METADATA": [], "source.polygon_models.polygon_dex_pools.SUSHI_DIM_DEX_POOLS": [], "source.polygon_models.polygon_dex_pools.SUSHI_DIM_KASHI_PAIRS": [], "source.polygon_models.ethereum.fact_hourly_token_prices": [], "source.polygon_models.ethereum.DIM_CONTRACTS": [], "source.polygon_models.ethereum.DIM_DEX_LIQUIDITY_POOLS": [], "source.polygon_models.bronze_streamline.blocks": [], "source.polygon_models.bronze_streamline.transactions": [], "source.polygon_models.streamline_crosschain.node_mapping": [], "source.polygon_models.crosschain_silver.apis_keys": []}, "child_map": {"model.polygon_models.bronze__blocks": ["model.polygon_models.silver__blocks", "model.polygon_models.silver__traces"], "model.polygon_models.bronze__transactions": ["model.polygon_models.silver__logs", "model.polygon_models.silver__traces", "model.polygon_models.silver__transactions"], "model.polygon_models.bronze_api__contract_abis": ["model.polygon_models.silver__contract_abis", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__contract_abis_CONTRACT_ADDRESS__VARCHAR.425fbc821b", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__contract_abis__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.aabf36df67", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_bronze_api__contract_abis_CONTRACT_ADDRESS___0x_0_9a_fA_F_40_.62635507b2", "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze_api__contract_abis__INSERTED_TIMESTAMP__day__1.cce492bb5d", "test.polygon_models.not_null_bronze_api__contract_abis_CONTRACT_ADDRESS.656bc51ae4", "test.polygon_models.not_null_bronze_api__contract_abis__INSERTED_TIMESTAMP.cd35aef90f"], "model.polygon_models.bronze_api__token_reads": ["model.polygon_models.silver__contracts", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__token_reads__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.10472fa4e9", "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze_api__token_reads__INSERTED_TIMESTAMP__day__1.c8280743d7", "test.polygon_models.dbt_utils_unique_combination_of_columns_bronze_api__token_reads_CONTRACT_ADDRESS__FUNCTION_SIG.15f6dbcf0c", "test.polygon_models.not_null_bronze_api__token_reads__INSERTED_TIMESTAMP.801b5bd3f6"], "model.polygon_models.silver__contract_abis": ["test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contract_abis_CONTRACT_ADDRESS.d4ac45a2a1"], "model.polygon_models.silver__transactions": ["model.polygon_models.core__ez_matic_transfers", "model.polygon_models.core__fact_transactions", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__transactions_STATUS__SUCCESS__FAIL.f4150c7e34", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_NUMBER__NUMBER__FLOAT.c48e941615", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_CUMULATIVE_GAS_USED__NUMBER__FLOAT.68061c4689", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_PRICE__NUMBER__FLOAT.7ff329f632", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_INGESTED_AT__TIMESTAMP_NTZ.c716636b55", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_NONCE__NUMBER__FLOAT.e9f3267e00", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_POSITION__NUMBER.5d920e939f", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_FEE__NUMBER__FLOAT.c56121a801", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_JSON__OBJECT.f6596e98ec", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_BLOCK_HASH__0_xX_0_9a_fA_F_.6a7999ad31", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_FROM_ADDRESS__0_xX_0_9a_fA_F_.48157e7169", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_TO_ADDRESS__0_xX_0_9a_fA_F_.6729f77190", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_TX_HASH__0_xX_0_9a_fA_F_.558497d3b6", "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__transactions_TX_HASH.c217683bc6", "test.polygon_models.not_null_silver__transactions_BLOCK_HASH.2c918b73f5", "test.polygon_models.not_null_silver__transactions_BLOCK_NUMBER.574ebe21b0", "test.polygon_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d", "test.polygon_models.not_null_silver__transactions_CUMULATIVE_GAS_USED.2ff9788f8f", "test.polygon_models.not_null_silver__transactions_EFFECTIVE_GAS_PRICE.fac733dec7", "test.polygon_models.not_null_silver__transactions_FROM_ADDRESS.002109da43", "test.polygon_models.not_null_silver__transactions_GAS_LIMIT.b5ac619228", "test.polygon_models.not_null_silver__transactions_GAS_PRICE.9ee195e584", "test.polygon_models.not_null_silver__transactions_GAS_USED.1c943486c0", "test.polygon_models.not_null_silver__transactions_INGESTED_AT.98e6b66449", "test.polygon_models.not_null_silver__transactions_INPUT_DATA.3cc998f5b1", "test.polygon_models.not_null_silver__transactions_MATIC_VALUE.e723701716", "test.polygon_models.not_null_silver__transactions_NONCE.3eac435cf9", "test.polygon_models.not_null_silver__transactions_ORIGIN_FUNCTION_SIGNATURE.6ba6212d68", "test.polygon_models.not_null_silver__transactions_POSITION.6be7c293c7", "test.polygon_models.not_null_silver__transactions_STATUS.42a484ef7a", "test.polygon_models.not_null_silver__transactions_TX_FEE.f2f0cdc085", "test.polygon_models.not_null_silver__transactions_TX_HASH.8a2cc32062", "test.polygon_models.not_null_silver__transactions_TX_JSON.c989b71e6a", "test.polygon_models.sequence_gaps_silver__transactions_POSITION__BLOCK_NUMBER.bb18e3a49e"], "model.polygon_models.silver__transfers": ["model.polygon_models.core__fact_token_transfers", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_NUMBER__NUMBER__FLOAT.45ecdb8c94", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RAW_AMOUNT__NUMBER__FLOAT.eb70e6172e", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.8e89d13bed", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_FROM_ADDRESS__0_xX_0_9a_fA_F_.0479073084", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.fb311c6cec", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.81fe3d170a", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_TO_ADDRESS__0_xX_0_9a_fA_F_.f65ff6bdb6", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_TX_HASH__0_xX_0_9a_fA_F_.f25b6d0ca1", "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__transfers__LOG_ID.3ebab76726", "test.polygon_models.not_null_silver__transfers_BLOCK_NUMBER.d11bbde531", "test.polygon_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c", "test.polygon_models.not_null_silver__transfers_CONTRACT_ADDRESS.df8cd401ef", "test.polygon_models.not_null_silver__transfers_FROM_ADDRESS.cc15ca835c", "test.polygon_models.not_null_silver__transfers_ORIGIN_FROM_ADDRESS.30ffa7f127", "test.polygon_models.not_null_silver__transfers_ORIGIN_FUNCTION_SIGNATURE.c1c149f732", "test.polygon_models.not_null_silver__transfers_RAW_AMOUNT.c53823d6c7", "test.polygon_models.not_null_silver__transfers_TO_ADDRESS.2ea6a02b7c", "test.polygon_models.not_null_silver__transfers_TX_HASH.9444c39bdc", "test.polygon_models.not_null_silver__transfers__LOG_ID.29bb073a40"], "model.polygon_models.silver__logs": ["model.polygon_models.core__fact_event_logs", "model.polygon_models.silver__contract_proxies", "model.polygon_models.silver__relevant_abi_contracts", "model.polygon_models.silver__relevant_abi_contracts", "model.polygon_models.silver__relevant_token_contracts", "model.polygon_models.silver__transfers", "model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_lending", "model.polygon_models.sushi__ez_lending", "model.polygon_models.sushi__ez_lending", "model.polygon_models.sushi__ez_lending", "model.polygon_models.sushi__ez_swaps", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_BLOCK_NUMBER__NUMBER.73461cc432", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.c39585c6f3", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_INDEX__NUMBER__FLOAT.d0df352178", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_INPUTS__OBJECT.a903a96237", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_NAME__STRING__VARCHAR.7af2bc20cd", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.28bc84b2ae", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.a59d6ffc6a", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.869407dadd", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_TX_HASH__0_xX_0_9a_fA_F_.0eee0960b6", "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__logs_BLOCK_TIMESTAMP__day__1.79d0ca0413", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__logs__LOG_ID.780efa90bd", "test.polygon_models.not_null_silver__logs_BLOCK_NUMBER.f98b235d4c", "test.polygon_models.not_null_silver__logs_BLOCK_TIMESTAMP.ca6209335c", "test.polygon_models.not_null_silver__logs_CONTRACT_ADDRESS.b78d8c86eb", "test.polygon_models.not_null_silver__logs_DATA.c5fac5c4a4", "test.polygon_models.not_null_silver__logs_EVENT_INDEX.b97eeb39d7", "test.polygon_models.not_null_silver__logs_EVENT_REMOVED.4f302d08e0", "test.polygon_models.not_null_silver__logs_ORIGIN_FROM_ADDRESS.1759538d91", "test.polygon_models.not_null_silver__logs_ORIGIN_FUNCTION_SIGNATURE.ed647f3e17", "test.polygon_models.not_null_silver__logs_TOPICS.f042e94d85", "test.polygon_models.not_null_silver__logs_TX_HASH.18b09ee14d", "test.polygon_models.not_null_silver__logs__LOG_ID.8c3f196b2a", "test.polygon_models.sequence_gaps_silver__logs_EVENT_INDEX__BLOCK_NUMBER__TX_HASH.8b3582ee4a"], "model.polygon_models.silver__blocks": ["model.polygon_models._max_block_by_date", "model.polygon_models.core__fact_blocks", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_HEADER_JSON__OBJECT.1be6a88f28", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_NUMBER__NUMBER__FLOAT.5e6997665c", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_DIFFICULTY__NUMBER__FLOAT.4b5343dd2c", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_GAS_LIMIT__NUMBER__FLOAT.c009cca74d", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_GAS_USED__NUMBER__FLOAT.bde7aa758f", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_NETWORK__STRING__VARCHAR.31e2a1e5bd", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_SIZE__NUMBER.7f2a8fc982", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TOTAL_DIFFICULTY__NUMBER__FLOAT.4a0213cf40", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_HASH__0_xX_0_9a_fA_F_.923a822bca", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_MINER__0_xX_0_9a_fA_F_.7e8cc9ca0b", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_NONCE__0_xX_0_9a_fA_F_.0f55c64955", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_PARENT_HASH__0_xX_0_9a_fA_F_.164fb6eb16", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.6964f6dc30", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_SHA3_UNCLES__0_xX_0_9a_fA_F_.c74b2fa922", "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__blocks_BLOCK_NUMBER.58d43342ca", "test.polygon_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96", "test.polygon_models.not_null_silver__blocks_BLOCK_HEADER_JSON.98268f8f2b", "test.polygon_models.not_null_silver__blocks_BLOCK_NUMBER.3ed5bd5a97", "test.polygon_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead", "test.polygon_models.not_null_silver__blocks_DIFFICULTY.dfd6bb7310", "test.polygon_models.not_null_silver__blocks_EXTRA_DATA.7b7824f6ea", "test.polygon_models.not_null_silver__blocks_GAS_LIMIT.a66366ccf7", "test.polygon_models.not_null_silver__blocks_GAS_USED.637b37099a", "test.polygon_models.not_null_silver__blocks_HASH.bc44a39f94", "test.polygon_models.not_null_silver__blocks_MINER.c17f6cbb87", "test.polygon_models.not_null_silver__blocks_NETWORK.65d2a5d7b1", "test.polygon_models.not_null_silver__blocks_NONCE.10c0698884", "test.polygon_models.not_null_silver__blocks_PARENT_HASH.a17a399346", "test.polygon_models.not_null_silver__blocks_RECEIPTS_ROOT.cd3163505f", "test.polygon_models.not_null_silver__blocks_SHA3_UNCLES.e7c903103e", "test.polygon_models.not_null_silver__blocks_SIZE.f1fa8f466b", "test.polygon_models.not_null_silver__blocks_TOTAL_DIFFICULTY.64edc4b2a9", "test.polygon_models.not_null_silver__blocks_TX_COUNT.34525b51e6"], "model.polygon_models.silver__traces": ["model.polygon_models.core__ez_matic_transfers", "model.polygon_models.core__fact_traces", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__traces_BLOCK_NUMBER__NUMBER__FLOAT.ccd2c156a6", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__traces_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.3ffecd9044", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_FROM_ADDRESS__0_xX_0_9a_fA_F_.b404693575", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_TO_ADDRESS__0_xX_0_9a_fA_F_.3af876962e", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_TX_HASH__0_xX_0_9a_fA_F_.14f576932b", "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__traces_BLOCK_TIMESTAMP__day__1.0589c5d87f", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__traces__CALL_ID.2854a11c5a", "test.polygon_models.not_null_silver__traces_BLOCK_NUMBER.9dcd1525b2", "test.polygon_models.not_null_silver__traces_BLOCK_TIMESTAMP.4053e07c73", "test.polygon_models.not_null_silver__traces_FROM_ADDRESS.285ef0c05b", "test.polygon_models.not_null_silver__traces_GAS.53d7bbcf6a", "test.polygon_models.not_null_silver__traces_GAS_USED.eb9bf97ca1", "test.polygon_models.not_null_silver__traces_IDENTIFIER.ee73127ec0", "test.polygon_models.not_null_silver__traces_MATIC_VALUE.16932a2346", "test.polygon_models.not_null_silver__traces_TX_HASH.ccbdeb5e91"], "model.polygon_models.silver__contracts": ["model.polygon_models.core__dim_contracts", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__contracts_CONTRACT_ADDRESS__STRING__VARCHAR.a501d61489", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__contracts__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3d97d7eb14", "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__contracts__INSERTED_TIMESTAMP__day__2.c0b3d27a1b", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contracts_CONTRACT_ADDRESS.f84f93870c", "test.polygon_models.not_null_silver__contracts_CONTRACT_ADDRESS.18b93ee6d5", "test.polygon_models.not_null_silver__contracts__INSERTED_TIMESTAMP.5ad8bc1f2a"], "model.polygon_models.silver__contract_proxies": ["test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contract_proxies_ID.3ac7fb13cd"], "model.polygon_models.streamline__complete_transactions": ["model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_realtime"], "model.polygon_models.streamline__transactions_history": [], "model.polygon_models.streamline__transactions_realtime": [], "model.polygon_models.streamline__complete_blocks": ["model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_realtime"], "model.polygon_models._max_block_by_date": ["model.polygon_models.streamline__blocks_realtime", "model.polygon_models.streamline__transactions_realtime"], "model.polygon_models.streamline__blocks_history": [], "model.polygon_models.streamline__blocks_realtime": [], "model.polygon_models.streamline__blocks": ["model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_history", "model.polygon_models.streamline__blocks_realtime", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_history", "model.polygon_models.streamline__transactions_realtime"], "model.polygon_models.silver__relevant_abi_contracts": ["model.polygon_models.bronze_api__contract_abis", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__relevant_abi_contracts_CONTRACT_ADDRESS.13614bb275"], "model.polygon_models.silver__relevant_token_contracts": ["model.polygon_models.bronze_api__token_reads", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__relevant_token_contracts_CONTRACT_ADDRESS.24bd782cb8"], "model.polygon_models.core__fact_transactions": [], "model.polygon_models.core__fact_token_transfers": [], "model.polygon_models.core__fact_traces": [], "model.polygon_models.core__fact_blocks": [], "model.polygon_models.core__fact_event_logs": [], "model.polygon_models.core__dim_contracts": [], "model.polygon_models.core__dim_labels": ["test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_core__dim_labels_BLOCKCHAIN__polygon.5e6c2c1b9f", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_core__dim_labels_LABEL_TYPE__flotsam__nft__defi__dex__cex__dapp__token__operator__layer2__chadmin__project.145ec1d947", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_ADDRESS_NAME__STRING__VARCHAR.7747aa45d1", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_LABEL_SUBTYPE__STRING__VARCHAR.80b827b7f5", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_PROJECT_NAME__STRING__VARCHAR.c5aaaed300", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_core__dim_labels_ADDRESS__0_xX_0_9a_fA_F_.52c2534d6a", "test.polygon_models.dbt_utils_unique_combination_of_columns_core__dim_labels_BLOCKCHAIN__CREATOR__ADDRESS.de325ffec9", "test.polygon_models.not_null_core__dim_labels_ADDRESS.ddf35f62af", "test.polygon_models.not_null_core__dim_labels_BLOCKCHAIN.a4e09054d7", "test.polygon_models.not_null_core__dim_labels_CREATOR.0c77d5749c", "test.polygon_models.not_null_core__dim_labels_LABEL_SUBTYPE.556a65235c", "test.polygon_models.not_null_core__dim_labels_LABEL_TYPE.65b0f6f1ed", "test.polygon_models.not_null_core__dim_labels_PROJECT_NAME.484353cecc"], "model.polygon_models.sushi__ez_lending": ["test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_AMOUNT_USD__NUMBER__FLOAT.010574c5b1", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_AMOUNT__NUMBER__FLOAT.f5513895b6", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_BLOCK_NUMBER__NUMBER__FLOAT.35c6b5d227", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.93cce89aaf", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_EVENT_INDEX__NUMBER__FLOAT.64324e3895", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_SYMBOL__STRING__VARCHAR.dcace84af9", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ASSET__0_xX_0_9a_fA_F_.8a7dd8b676", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_DEPOSITOR__0_xX_0_9a_fA_F_.560921e0f1", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_LENDING_POOL_ADDRESS__0_xX_0_9a_fA_F_.3ccd0511f9", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.3b31561bc6", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.3e3828617a", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_TX_HASH__0_xX_0_9a_fA_F_.fb7184c78a", "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_lending_BLOCK_TIMESTAMP__day__7.71e49e375e", "test.polygon_models.dbt_utils_unique_combination_of_columns_sushi__ez_lending__LOG_ID.9fb554f90f", "test.polygon_models.not_null_sushi__ez_lending_AMOUNT.d0ca35e1b9", "test.polygon_models.not_null_sushi__ez_lending_ASSET.92156a57ed", "test.polygon_models.not_null_sushi__ez_lending_BLOCK_NUMBER.7191bdf706", "test.polygon_models.not_null_sushi__ez_lending_BLOCK_TIMESTAMP.47c8a01531", "test.polygon_models.not_null_sushi__ez_lending_DEPOSITOR.9f9196dce7", "test.polygon_models.not_null_sushi__ez_lending_LENDER_IS_A_CONTRACT.39fe049559", "test.polygon_models.not_null_sushi__ez_lending_LENDING_POOL.1cc2cec6c9", "test.polygon_models.not_null_sushi__ez_lending_LENDING_POOL_ADDRESS.343619b86f", "test.polygon_models.not_null_sushi__ez_lending_ORIGIN_FROM_ADDRESS.0a279cef72", "test.polygon_models.not_null_sushi__ez_lending_TX_HASH.3c471bed51", "test.polygon_models.not_null_sushi__ez_lending__LOG_ID.aeb399324a"], "model.polygon_models.sushi__ez_swaps": ["test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_IN_USD__NUMBER__FLOAT.9a8b1e0480", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_IN__NUMBER__FLOAT.ce483aa368", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_OUT_USD__NUMBER__FLOAT.a061b70981", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_OUT__NUMBER__FLOAT.6028b5385f", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_BLOCK_NUMBER__NUMBER__FLOAT.7b69aae0de", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.c09d40c178", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_EVENT_INDEX__NUMBER__FLOAT.311b76dea2", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_EVENT_NAME__STRING__VARCHAR.9c08c6c888", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_PLATFORM__STRING__VARCHAR.55fbd4c7c1", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_SYMBOL_IN__STRING__VARCHAR.b1aea9c82f", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_SYMBOL_OUT__STRING__VARCHAR.9fa7d6e04c", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.d6ed59e98b", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.d35c7fe495", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.dd5a907c68", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_SENDER__0_xX_0_9a_fA_F_.b8de01d1db", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TOKEN_IN__0_xX_0_9a_fA_F_.ae96a38071", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TOKEN_OUT__0_xX_0_9a_fA_F_.a99f33851e", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TX_HASH__0_xX_0_9a_fA_F_.15d478c09c", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TX_TO__0_xX_0_9a_fA_F_.81a6e2ad45", "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_swaps_BLOCK_TIMESTAMP__day__1.ccd4b95299", "test.polygon_models.dbt_utils_unique_combination_of_columns_sushi__ez_swaps__LOG_ID.cebe0de5a1", "test.polygon_models.not_null_sushi__ez_swaps_BLOCK_NUMBER.4da3b3d654", "test.polygon_models.not_null_sushi__ez_swaps_BLOCK_TIMESTAMP.64d0de4b09", "test.polygon_models.not_null_sushi__ez_swaps_CONTRACT_ADDRESS.f4cd976e06", "test.polygon_models.not_null_sushi__ez_swaps_ORIGIN_FROM_ADDRESS.128c7fd237", "test.polygon_models.not_null_sushi__ez_swaps_ORIGIN_FUNCTION_SIGNATURE.681d6adb74", "test.polygon_models.not_null_sushi__ez_swaps_SENDER.b76baa207c", "test.polygon_models.not_null_sushi__ez_swaps_TOKEN_IN.8093c41dbe", "test.polygon_models.not_null_sushi__ez_swaps_TOKEN_OUT.68f3f9aac2", "test.polygon_models.not_null_sushi__ez_swaps_TX_HASH.5c71b07498", "test.polygon_models.not_null_sushi__ez_swaps_TX_TO.1c512c542a", "test.polygon_models.not_null_sushi__ez_swaps__LOG_ID.3bc8eb295f"], "model.polygon_models.sushi__dim_dex_pools": ["model.polygon_models.sushi__ez_swaps", "model.polygon_models.sushi__ez_swaps"], "model.polygon_models.sushi__ez_borrowing": ["test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_AMOUNT_USD__NUMBER__FLOAT.5a6575a29d", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_AMOUNT__NUMBER__FLOAT.28b1f9641c", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_BLOCK_NUMBER__NUMBER__FLOAT.e546629920", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2b4d3c83c9", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_SYMBOL__STRING__VARCHAR.9b060d1d35", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ASSET__0_xX_0_9a_fA_F_.73483a63df", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_Borrower__0_xX_0_9a_fA_F_.cf22d8c187", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_LENDING_POOL_ADDRESS__0_xX_0_9a_fA_F_.11e77397a2", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.c43ca75daa", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.35e38583ac", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_TX_HASH__0_xX_0_9a_fA_F_.e3f190eb04", "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_borrowing_BLOCK_TIMESTAMP__day__7.9e13292154", "test.polygon_models.not_null_sushi__ez_borrowing_AMOUNT.490bdfdbcb", "test.polygon_models.not_null_sushi__ez_borrowing_ASSET.963aa5a1aa", "test.polygon_models.not_null_sushi__ez_borrowing_BLOCK_NUMBER.76a0fc6bc9", "test.polygon_models.not_null_sushi__ez_borrowing_BLOCK_TIMESTAMP.3829c4c2c4", "test.polygon_models.not_null_sushi__ez_borrowing_BORROWER_IS_A_CONTRACT.386fbbb5c7", "test.polygon_models.not_null_sushi__ez_borrowing_Borrower.1f484a738a", "test.polygon_models.not_null_sushi__ez_borrowing_LENDING_POOL.7144d8c199", "test.polygon_models.not_null_sushi__ez_borrowing_LENDING_POOL_ADDRESS.6ea7d50567", "test.polygon_models.not_null_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS.f47465af36", "test.polygon_models.not_null_sushi__ez_borrowing_TX_HASH.eeaf313cd8", "test.polygon_models.not_null_sushi__ez_borrowing__LOG_ID.2c8a148cfa"], "model.polygon_models.sushi__dim_kashi_pairs": ["model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_lending", "model.polygon_models.sushi__ez_lending", "model.polygon_models.sushi__ez_lending"], "seed.polygon_models.bronze__sushi_dim_dex_pools": [], "seed.polygon_models.bronze__sushi_dim_kashi_pairs": [], "operation.polygon_models.polygon_models-on-run-start-0": [], "operation.polygon_models.polygon_models-on-run-start-1": [], "operation.polygon_models.polygon_models-on-run-start-2": [], "test.polygon_models.not_null_bronze_api__token_reads__INSERTED_TIMESTAMP.801b5bd3f6": [], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze_api__token_reads__INSERTED_TIMESTAMP__day__1.c8280743d7": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__token_reads__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.10472fa4e9": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_bronze_api__token_reads_CONTRACT_ADDRESS__FUNCTION_SIG.15f6dbcf0c": [], "test.polygon_models.not_null_bronze_api__contract_abis__INSERTED_TIMESTAMP.cd35aef90f": [], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze_api__contract_abis__INSERTED_TIMESTAMP__day__1.cce492bb5d": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__contract_abis__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.aabf36df67": [], "test.polygon_models.not_null_bronze_api__contract_abis_CONTRACT_ADDRESS.656bc51ae4": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze_api__contract_abis_CONTRACT_ADDRESS__VARCHAR.425fbc821b": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_bronze_api__contract_abis_CONTRACT_ADDRESS___0x_0_9a_fA_F_40_.62635507b2": [], "test.polygon_models.not_null_silver__logs_BLOCK_NUMBER.f98b235d4c": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_BLOCK_NUMBER__NUMBER.73461cc432": [], "test.polygon_models.not_null_silver__logs_BLOCK_TIMESTAMP.ca6209335c": [], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__logs_BLOCK_TIMESTAMP__day__1.79d0ca0413": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.c39585c6f3": [], "test.polygon_models.not_null_silver__logs_TX_HASH.18b09ee14d": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_TX_HASH__0_xX_0_9a_fA_F_.0eee0960b6": [], "test.polygon_models.not_null_silver__logs_EVENT_INDEX.b97eeb39d7": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_INDEX__NUMBER__FLOAT.d0df352178": [], "test.polygon_models.not_null_silver__logs_CONTRACT_ADDRESS.b78d8c86eb": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.28bc84b2ae": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_NAME__STRING__VARCHAR.7af2bc20cd": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__logs_EVENT_INPUTS__OBJECT.a903a96237": [], "test.polygon_models.not_null_silver__logs_TOPICS.f042e94d85": [], "test.polygon_models.not_null_silver__logs_DATA.c5fac5c4a4": [], "test.polygon_models.not_null_silver__logs_EVENT_REMOVED.4f302d08e0": [], "test.polygon_models.not_null_silver__logs__LOG_ID.8c3f196b2a": [], "test.polygon_models.not_null_silver__logs_ORIGIN_FUNCTION_SIGNATURE.ed647f3e17": [], "test.polygon_models.not_null_silver__logs_ORIGIN_FROM_ADDRESS.1759538d91": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.a59d6ffc6a": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__logs_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.869407dadd": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__logs__LOG_ID.780efa90bd": [], "test.polygon_models.sequence_gaps_silver__logs_EVENT_INDEX__BLOCK_NUMBER__TX_HASH.8b3582ee4a": [], "test.polygon_models.not_null_silver__traces_BLOCK_NUMBER.9dcd1525b2": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__traces_BLOCK_NUMBER__NUMBER__FLOAT.ccd2c156a6": [], "test.polygon_models.not_null_silver__traces_BLOCK_TIMESTAMP.4053e07c73": [], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__traces_BLOCK_TIMESTAMP__day__1.0589c5d87f": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__traces_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.3ffecd9044": [], "test.polygon_models.not_null_silver__traces_TX_HASH.ccbdeb5e91": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_TX_HASH__0_xX_0_9a_fA_F_.14f576932b": [], "test.polygon_models.not_null_silver__traces_FROM_ADDRESS.285ef0c05b": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_FROM_ADDRESS__0_xX_0_9a_fA_F_.b404693575": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__traces_TO_ADDRESS__0_xX_0_9a_fA_F_.3af876962e": [], "test.polygon_models.not_null_silver__traces_IDENTIFIER.ee73127ec0": [], "test.polygon_models.not_null_silver__traces_MATIC_VALUE.16932a2346": [], "test.polygon_models.not_null_silver__traces_GAS.53d7bbcf6a": [], "test.polygon_models.not_null_silver__traces_GAS_USED.eb9bf97ca1": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__traces__CALL_ID.2854a11c5a": [], "test.polygon_models.not_null_silver__blocks_BLOCK_NUMBER.3ed5bd5a97": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_NUMBER__NUMBER__FLOAT.5e6997665c": [], "test.polygon_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead": [], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751": [], "test.polygon_models.not_null_silver__blocks_NETWORK.65d2a5d7b1": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_NETWORK__STRING__VARCHAR.31e2a1e5bd": [], "test.polygon_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd": [], "test.polygon_models.not_null_silver__blocks_TX_COUNT.34525b51e6": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5": [], "test.polygon_models.not_null_silver__blocks_DIFFICULTY.dfd6bb7310": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_DIFFICULTY__NUMBER__FLOAT.4b5343dd2c": [], "test.polygon_models.not_null_silver__blocks_TOTAL_DIFFICULTY.64edc4b2a9": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TOTAL_DIFFICULTY__NUMBER__FLOAT.4a0213cf40": [], "test.polygon_models.not_null_silver__blocks_EXTRA_DATA.7b7824f6ea": [], "test.polygon_models.not_null_silver__blocks_GAS_LIMIT.a66366ccf7": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_GAS_LIMIT__NUMBER__FLOAT.c009cca74d": [], "test.polygon_models.not_null_silver__blocks_GAS_USED.637b37099a": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_GAS_USED__NUMBER__FLOAT.bde7aa758f": [], "test.polygon_models.not_null_silver__blocks_HASH.bc44a39f94": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_HASH__0_xX_0_9a_fA_F_.923a822bca": [], "test.polygon_models.not_null_silver__blocks_PARENT_HASH.a17a399346": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_PARENT_HASH__0_xX_0_9a_fA_F_.164fb6eb16": [], "test.polygon_models.not_null_silver__blocks_MINER.c17f6cbb87": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_MINER__0_xX_0_9a_fA_F_.7e8cc9ca0b": [], "test.polygon_models.not_null_silver__blocks_NONCE.10c0698884": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_NONCE__0_xX_0_9a_fA_F_.0f55c64955": [], "test.polygon_models.not_null_silver__blocks_RECEIPTS_ROOT.cd3163505f": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.6964f6dc30": [], "test.polygon_models.not_null_silver__blocks_SHA3_UNCLES.e7c903103e": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__blocks_SHA3_UNCLES__0_xX_0_9a_fA_F_.c74b2fa922": [], "test.polygon_models.not_null_silver__blocks_SIZE.f1fa8f466b": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_SIZE__NUMBER.7f2a8fc982": [], "test.polygon_models.not_null_silver__blocks_BLOCK_HEADER_JSON.98268f8f2b": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_HEADER_JSON__OBJECT.1be6a88f28": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__blocks_BLOCK_NUMBER.58d43342ca": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contract_abis_CONTRACT_ADDRESS.d4ac45a2a1": [], "test.polygon_models.not_null_silver__transactions_BLOCK_NUMBER.574ebe21b0": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_NUMBER__NUMBER__FLOAT.c48e941615": [], "test.polygon_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d": [], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e": [], "test.polygon_models.not_null_silver__transactions_TX_HASH.8a2cc32062": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_TX_HASH__0_xX_0_9a_fA_F_.558497d3b6": [], "test.polygon_models.not_null_silver__transactions_NONCE.3eac435cf9": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_NONCE__NUMBER__FLOAT.e9f3267e00": [], "test.polygon_models.not_null_silver__transactions_POSITION.6be7c293c7": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_POSITION__NUMBER.5d920e939f": [], "test.polygon_models.not_null_silver__transactions_FROM_ADDRESS.002109da43": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_FROM_ADDRESS__0_xX_0_9a_fA_F_.48157e7169": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_TO_ADDRESS__0_xX_0_9a_fA_F_.6729f77190": [], "test.polygon_models.not_null_silver__transactions_MATIC_VALUE.e723701716": [], "test.polygon_models.not_null_silver__transactions_BLOCK_HASH.2c918b73f5": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transactions_BLOCK_HASH__0_xX_0_9a_fA_F_.6a7999ad31": [], "test.polygon_models.not_null_silver__transactions_GAS_PRICE.9ee195e584": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_PRICE__NUMBER__FLOAT.7ff329f632": [], "test.polygon_models.not_null_silver__transactions_GAS_LIMIT.b5ac619228": [], "test.polygon_models.not_null_silver__transactions_INPUT_DATA.3cc998f5b1": [], "test.polygon_models.not_null_silver__transactions_STATUS.42a484ef7a": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__transactions_STATUS__SUCCESS__FAIL.f4150c7e34": [], "test.polygon_models.not_null_silver__transactions_GAS_USED.1c943486c0": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3": [], "test.polygon_models.not_null_silver__transactions_CUMULATIVE_GAS_USED.2ff9788f8f": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_CUMULATIVE_GAS_USED__NUMBER__FLOAT.68061c4689": [], "test.polygon_models.not_null_silver__transactions_TX_FEE.f2f0cdc085": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_FEE__NUMBER__FLOAT.c56121a801": [], "test.polygon_models.not_null_silver__transactions_EFFECTIVE_GAS_PRICE.fac733dec7": [], "test.polygon_models.not_null_silver__transactions_TX_JSON.c989b71e6a": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_JSON__OBJECT.f6596e98ec": [], "test.polygon_models.not_null_silver__transactions_INGESTED_AT.98e6b66449": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_INGESTED_AT__TIMESTAMP_NTZ.c716636b55": [], "test.polygon_models.not_null_silver__transactions_ORIGIN_FUNCTION_SIGNATURE.6ba6212d68": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__transactions_TX_HASH.c217683bc6": [], "test.polygon_models.sequence_gaps_silver__transactions_POSITION__BLOCK_NUMBER.bb18e3a49e": [], "test.polygon_models.not_null_silver__transfers_BLOCK_NUMBER.d11bbde531": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_NUMBER__NUMBER__FLOAT.45ecdb8c94": [], "test.polygon_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c": [], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd": [], "test.polygon_models.not_null_silver__transfers_TX_HASH.9444c39bdc": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_TX_HASH__0_xX_0_9a_fA_F_.f25b6d0ca1": [], "test.polygon_models.not_null_silver__transfers_CONTRACT_ADDRESS.df8cd401ef": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.8e89d13bed": [], "test.polygon_models.not_null_silver__transfers_FROM_ADDRESS.cc15ca835c": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_FROM_ADDRESS__0_xX_0_9a_fA_F_.0479073084": [], "test.polygon_models.not_null_silver__transfers_TO_ADDRESS.2ea6a02b7c": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_TO_ADDRESS__0_xX_0_9a_fA_F_.f65ff6bdb6": [], "test.polygon_models.not_null_silver__transfers_RAW_AMOUNT.c53823d6c7": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RAW_AMOUNT__NUMBER__FLOAT.eb70e6172e": [], "test.polygon_models.not_null_silver__transfers__LOG_ID.29bb073a40": [], "test.polygon_models.not_null_silver__transfers_ORIGIN_FUNCTION_SIGNATURE.c1c149f732": [], "test.polygon_models.not_null_silver__transfers_ORIGIN_FROM_ADDRESS.30ffa7f127": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.fb311c6cec": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__transfers_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.81fe3d170a": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__transfers__LOG_ID.3ebab76726": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contract_proxies_ID.3ac7fb13cd": [], "test.polygon_models.not_null_silver__contracts_CONTRACT_ADDRESS.18b93ee6d5": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__contracts_CONTRACT_ADDRESS__STRING__VARCHAR.a501d61489": [], "test.polygon_models.not_null_silver__contracts__INSERTED_TIMESTAMP.5ad8bc1f2a": [], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__contracts__INSERTED_TIMESTAMP__day__2.c0b3d27a1b": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__contracts__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3d97d7eb14": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__contracts_CONTRACT_ADDRESS.f84f93870c": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__relevant_abi_contracts_CONTRACT_ADDRESS.13614bb275": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__relevant_token_contracts_CONTRACT_ADDRESS.24bd782cb8": [], "test.polygon_models.not_null_core__dim_labels_BLOCKCHAIN.a4e09054d7": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_core__dim_labels_BLOCKCHAIN__polygon.5e6c2c1b9f": [], "test.polygon_models.not_null_core__dim_labels_CREATOR.0c77d5749c": [], "test.polygon_models.not_null_core__dim_labels_ADDRESS.ddf35f62af": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_core__dim_labels_ADDRESS__0_xX_0_9a_fA_F_.52c2534d6a": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_ADDRESS_NAME__STRING__VARCHAR.7747aa45d1": [], "test.polygon_models.not_null_core__dim_labels_LABEL_TYPE.65b0f6f1ed": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_core__dim_labels_LABEL_TYPE__flotsam__nft__defi__dex__cex__dapp__token__operator__layer2__chadmin__project.145ec1d947": [], "test.polygon_models.not_null_core__dim_labels_LABEL_SUBTYPE.556a65235c": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_LABEL_SUBTYPE__STRING__VARCHAR.80b827b7f5": [], "test.polygon_models.not_null_core__dim_labels_PROJECT_NAME.484353cecc": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__dim_labels_PROJECT_NAME__STRING__VARCHAR.c5aaaed300": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_core__dim_labels_BLOCKCHAIN__CREATOR__ADDRESS.de325ffec9": [], "test.polygon_models.not_null_sushi__ez_lending_BLOCK_NUMBER.7191bdf706": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_BLOCK_NUMBER__NUMBER__FLOAT.35c6b5d227": [], "test.polygon_models.not_null_sushi__ez_lending_BLOCK_TIMESTAMP.47c8a01531": [], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_lending_BLOCK_TIMESTAMP__day__7.71e49e375e": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.93cce89aaf": [], "test.polygon_models.not_null_sushi__ez_lending_TX_HASH.3c471bed51": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_TX_HASH__0_xX_0_9a_fA_F_.fb7184c78a": [], "test.polygon_models.not_null_sushi__ez_lending_LENDING_POOL_ADDRESS.343619b86f": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_LENDING_POOL_ADDRESS__0_xX_0_9a_fA_F_.3ccd0511f9": [], "test.polygon_models.not_null_sushi__ez_lending_AMOUNT.d0ca35e1b9": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_AMOUNT__NUMBER__FLOAT.f5513895b6": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_AMOUNT_USD__NUMBER__FLOAT.010574c5b1": [], "test.polygon_models.not_null_sushi__ez_lending_ASSET.92156a57ed": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ASSET__0_xX_0_9a_fA_F_.8a7dd8b676": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_SYMBOL__STRING__VARCHAR.dcace84af9": [], "test.polygon_models.not_null_sushi__ez_lending_DEPOSITOR.9f9196dce7": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_DEPOSITOR__0_xX_0_9a_fA_F_.560921e0f1": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_lending_EVENT_INDEX__NUMBER__FLOAT.64324e3895": [], "test.polygon_models.not_null_sushi__ez_lending__LOG_ID.aeb399324a": [], "test.polygon_models.not_null_sushi__ez_lending_ORIGIN_FROM_ADDRESS.0a279cef72": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.3b31561bc6": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_lending_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.3e3828617a": [], "test.polygon_models.not_null_sushi__ez_lending_LENDING_POOL.1cc2cec6c9": [], "test.polygon_models.not_null_sushi__ez_lending_LENDER_IS_A_CONTRACT.39fe049559": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_sushi__ez_lending__LOG_ID.9fb554f90f": [], "test.polygon_models.not_null_sushi__ez_swaps_BLOCK_NUMBER.4da3b3d654": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_BLOCK_NUMBER__NUMBER__FLOAT.7b69aae0de": [], "test.polygon_models.not_null_sushi__ez_swaps_BLOCK_TIMESTAMP.64d0de4b09": [], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_swaps_BLOCK_TIMESTAMP__day__1.ccd4b95299": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.c09d40c178": [], "test.polygon_models.not_null_sushi__ez_swaps_TX_HASH.5c71b07498": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TX_HASH__0_xX_0_9a_fA_F_.15d478c09c": [], "test.polygon_models.not_null_sushi__ez_swaps_CONTRACT_ADDRESS.f4cd976e06": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.d6ed59e98b": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_EVENT_NAME__STRING__VARCHAR.9c08c6c888": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_IN__NUMBER__FLOAT.ce483aa368": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_OUT__NUMBER__FLOAT.6028b5385f": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_IN_USD__NUMBER__FLOAT.9a8b1e0480": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_AMOUNT_OUT_USD__NUMBER__FLOAT.a061b70981": [], "test.polygon_models.not_null_sushi__ez_swaps_TOKEN_IN.8093c41dbe": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TOKEN_IN__0_xX_0_9a_fA_F_.ae96a38071": [], "test.polygon_models.not_null_sushi__ez_swaps_TOKEN_OUT.68f3f9aac2": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TOKEN_OUT__0_xX_0_9a_fA_F_.a99f33851e": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_SYMBOL_IN__STRING__VARCHAR.b1aea9c82f": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_SYMBOL_OUT__STRING__VARCHAR.9fa7d6e04c": [], "test.polygon_models.not_null_sushi__ez_swaps_SENDER.b76baa207c": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_SENDER__0_xX_0_9a_fA_F_.b8de01d1db": [], "test.polygon_models.not_null_sushi__ez_swaps_TX_TO.1c512c542a": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_TX_TO__0_xX_0_9a_fA_F_.81a6e2ad45": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_PLATFORM__STRING__VARCHAR.55fbd4c7c1": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_swaps_EVENT_INDEX__NUMBER__FLOAT.311b76dea2": [], "test.polygon_models.not_null_sushi__ez_swaps__LOG_ID.3bc8eb295f": [], "test.polygon_models.not_null_sushi__ez_swaps_ORIGIN_FUNCTION_SIGNATURE.681d6adb74": [], "test.polygon_models.not_null_sushi__ez_swaps_ORIGIN_FROM_ADDRESS.128c7fd237": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.d35c7fe495": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_swaps_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.dd5a907c68": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_sushi__ez_swaps__LOG_ID.cebe0de5a1": [], "test.polygon_models.not_null_sushi__ez_borrowing_BLOCK_NUMBER.76a0fc6bc9": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_BLOCK_NUMBER__NUMBER__FLOAT.e546629920": [], "test.polygon_models.not_null_sushi__ez_borrowing_BLOCK_TIMESTAMP.3829c4c2c4": [], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_sushi__ez_borrowing_BLOCK_TIMESTAMP__day__7.9e13292154": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2b4d3c83c9": [], "test.polygon_models.not_null_sushi__ez_borrowing_TX_HASH.eeaf313cd8": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_TX_HASH__0_xX_0_9a_fA_F_.e3f190eb04": [], "test.polygon_models.not_null_sushi__ez_borrowing_LENDING_POOL_ADDRESS.6ea7d50567": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_LENDING_POOL_ADDRESS__0_xX_0_9a_fA_F_.11e77397a2": [], "test.polygon_models.not_null_sushi__ez_borrowing_AMOUNT.490bdfdbcb": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_AMOUNT__NUMBER__FLOAT.28b1f9641c": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_AMOUNT_USD__NUMBER__FLOAT.5a6575a29d": [], "test.polygon_models.not_null_sushi__ez_borrowing_ASSET.963aa5a1aa": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ASSET__0_xX_0_9a_fA_F_.73483a63df": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_sushi__ez_borrowing_SYMBOL__STRING__VARCHAR.9b060d1d35": [], "test.polygon_models.not_null_sushi__ez_borrowing_Borrower.1f484a738a": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_Borrower__0_xX_0_9a_fA_F_.cf22d8c187": [], "test.polygon_models.not_null_sushi__ez_borrowing__LOG_ID.2c8a148cfa": [], "test.polygon_models.not_null_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS.f47465af36": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.c43ca75daa": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_sushi__ez_borrowing_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.35e38583ac": [], "test.polygon_models.not_null_sushi__ez_borrowing_LENDING_POOL.7144d8c199": [], "test.polygon_models.not_null_sushi__ez_borrowing_BORROWER_IS_A_CONTRACT.386fbbb5c7": [], "model.polygon_models.core__ez_matic_transfers": ["test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__ez_matic_transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.7cbaba0e0f", "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_core__ez_matic_transfers_BLOCK_TIMESTAMP__day__1.940673cb6e", "test.polygon_models.dbt_utils_unique_combination_of_columns_core__ez_matic_transfers__CALL_ID.e29d5382c2", "test.polygon_models.not_null_core__ez_matic_transfers_AMOUNT.fe6f52cdc6", "test.polygon_models.not_null_core__ez_matic_transfers_AMOUNT_USD.8cd2531d9f", "test.polygon_models.not_null_core__ez_matic_transfers_BLOCK_TIMESTAMP.dc9b204fcc", "test.polygon_models.not_null_core__ez_matic_transfers_MATIC_FROM_ADDRESS.431d281508", "test.polygon_models.not_null_core__ez_matic_transfers_MATIC_TO_ADDRESS.8231921086", "test.polygon_models.not_null_core__ez_matic_transfers_TX_HASH.6e9eb6a197"], "test.polygon_models.not_null_core__ez_matic_transfers_BLOCK_TIMESTAMP.dc9b204fcc": [], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_core__ez_matic_transfers_BLOCK_TIMESTAMP__day__1.940673cb6e": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_core__ez_matic_transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.7cbaba0e0f": [], "test.polygon_models.not_null_core__ez_matic_transfers_TX_HASH.6e9eb6a197": [], "test.polygon_models.not_null_core__ez_matic_transfers_MATIC_FROM_ADDRESS.431d281508": [], "test.polygon_models.not_null_core__ez_matic_transfers_MATIC_TO_ADDRESS.8231921086": [], "test.polygon_models.not_null_core__ez_matic_transfers_AMOUNT.fe6f52cdc6": [], "test.polygon_models.not_null_core__ez_matic_transfers_AMOUNT_USD.8cd2531d9f": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_core__ez_matic_transfers__CALL_ID.e29d5382c2": [], "source.polygon_models.prod.polygon_blocks": ["model.polygon_models.bronze__blocks"], "source.polygon_models.prod.polygon_txs": ["model.polygon_models.bronze__transactions"], "source.polygon_models.crosschain.address_labels": ["model.polygon_models.core__dim_labels"], "source.polygon_models.symbols_cross_tab.MARKET_ASSET_METADATA": ["model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_lending", "model.polygon_models.sushi__ez_swaps"], "source.polygon_models.polygon_dex_pools.SUSHI_DIM_DEX_POOLS": ["model.polygon_models.sushi__dim_dex_pools"], "source.polygon_models.polygon_dex_pools.SUSHI_DIM_KASHI_PAIRS": ["model.polygon_models.sushi__dim_kashi_pairs"], "source.polygon_models.ethereum.fact_hourly_token_prices": ["model.polygon_models.core__ez_matic_transfers", "model.polygon_models.sushi__ez_borrowing", "model.polygon_models.sushi__ez_lending", "model.polygon_models.sushi__ez_swaps"], "source.polygon_models.ethereum.DIM_CONTRACTS": [], "source.polygon_models.ethereum.DIM_DEX_LIQUIDITY_POOLS": [], "source.polygon_models.bronze_streamline.blocks": ["model.polygon_models.streamline__complete_blocks", "model.polygon_models.streamline__complete_blocks"], "source.polygon_models.bronze_streamline.transactions": ["model.polygon_models.streamline__complete_transactions", "model.polygon_models.streamline__complete_transactions"], "source.polygon_models.streamline_crosschain.node_mapping": ["model.polygon_models.bronze_api__token_reads"], "source.polygon_models.crosschain_silver.apis_keys": ["model.polygon_models.bronze_api__contract_abis"]}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v11.json", "dbt_version": "1.7.19", "generated_at": "2025-11-24T21:08:12.134723Z", "invocation_id": "ac90a3b1-79f8-42b7-9f7d-761d1c38b2db", "env": {}, "project_name": "polygon_models", "project_id": "fea94e465a9f3d6e8764c732c9d8b7e4", "user_id": "7ef30de4-03e3-465b-ae5e-c2d3a29459bd", "send_anonymous_usage_stats": true, "adapter_type": "snowflake"}, "nodes": {"model.polygon_models.silver__polymarket_filled_orders": {"database": "polygon", "schema": "silver", "name": "silver__polymarket_filled_orders", "resource_type": "model", "package_name": "polygon_models", "path": "silver/protocols/polymarket/silver__polymarket_filled_orders.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.sql", "unique_id": "model.polygon_models.silver__polymarket_filled_orders", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "silver__polymarket_filled_orders"], "alias": "polymarket_filled_orders", "checksum": {"name": "sha256", "checksum": "33d666a99df04a50115a44633e020b1116cac64f09d2892a33512d0967ca679f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "curated", "polymarket"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "curated", "polymarket"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_USD": {"name": "AMOUNT_USD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SHARES": {"name": "SHARES", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRICE_PER_SHARE": {"name": "PRICE_PER_SHARE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "curated", "polymarket"]}, "created_at": 1764018433.8547027, "relation_name": "polygon.silver.polymarket_filled_orders", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','curated','polymarket']\n) }}\n\nWITH polymarket_orders AS(\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n segmented_data [1] :: STRING AS order_hash,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS maker,\n LOWER(CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40))) AS taker,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) AS maker_asset_id,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) AS taker_asset_id,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) AS maker_amount_filled,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) AS taker_amount_filled,\n modified_timestamp AS _inserted_timestamp,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0xd0a08e8c493f9c94f29311604c9de1b4e8c8d4c06bd0c789af57f2d65bfec0f6'\n AND contract_address in (\n LOWER('0x4bfb41d5b3570defd03c39a9a4d8de6bd8b8982e'),\n LOWER('0xC5d563A36AE78145C45a50134d48A1215220f80a')\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\npolymarket_shape AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n order_hash,\n maker,\n taker,\n COALESCE(NULLIF(maker_asset_id, '0'), taker_asset_id) AS asset_id, \n maker_asset_id,\n taker_asset_id,\n maker_amount_filled / pow(\n 10,\n 6\n ) AS amount_usd,\n taker_amount_filled / pow(\n 10,\n 6\n ) AS shares,\n maker_amount_filled/taker_amount_filled AS price_per_share,\n _inserted_timestamp,\n _log_id\n FROM\n polymarket_orders\n),\nyes_tokens AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n 'OrderFilled' AS event_name,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n order_hash,\n maker,\n taker,\n condition_id,\n question_id,\n question,\n market_slug,\n end_date_iso,\n token_1_outcome as outcome,\n asset_id, \n maker_asset_id, \n taker_asset_id,\n amount_usd,\n shares,\n price_per_share,\n _inserted_timestamp,\n _log_id\n FROM\n polymarket_shape p\n INNER JOIN {{ source('external_polymarket','dim_markets') }} m\n ON asset_id = token_1_token_id\n),\nno_tokens AS(\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'OrderFilled' AS event_name,\n contract_address,\n order_hash,\n maker,\n taker,\n condition_id,\n question,\n market_slug,\n end_date_iso,\n token_2_outcome as outcome,\n question_id,\n asset_id, \n maker_asset_id, \n taker_asset_id,\n amount_usd,\n shares,\n price_per_share,\n _inserted_timestamp,\n _log_id\n FROM\n polymarket_shape p\n INNER JOIN {{ source('external_polymarket','dim_markets') }} m\n ON asset_id = token_2_token_id\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n question,\n market_slug,\n end_date_iso,\n outcome,\n order_hash,\n maker,\n taker,\n condition_id,\n question_id,\n asset_id, \n maker_asset_id, \n taker_asset_id,\n amount_usd,\n shares,\n price_per_share,\n _inserted_timestamp,\n _log_id,\n {{dbt_utils.generate_surrogate_key(\n ['tx_hash','event_index']\n )}} AS polymarket_filled_orders_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM no_tokens\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n question,\n market_slug,\n end_date_iso,\n outcome,\n order_hash,\n maker,\n taker,\n condition_id,\n question_id,\n asset_id, \n maker_asset_id, \n taker_asset_id,\n amount_usd,\n shares,\n price_per_share,\n _inserted_timestamp,\n _log_id,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash','event_index']\n ) }} AS polymarket_filled_orders_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n yes_tokens", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [["external_polymarket", "dim_markets"], ["external_polymarket", "dim_markets"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["source.polygon_models.external_polymarket.dim_markets", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.sql", "compiled": true, "compiled_code": "\n\nWITH polymarket_orders AS(\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n segmented_data [1] :: STRING AS order_hash,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS maker,\n LOWER(CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40))) AS taker,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) AS maker_asset_id,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) AS taker_asset_id,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) AS maker_amount_filled,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) AS taker_amount_filled,\n modified_timestamp AS _inserted_timestamp,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING = '0xd0a08e8c493f9c94f29311604c9de1b4e8c8d4c06bd0c789af57f2d65bfec0f6'\n AND contract_address in (\n LOWER('0x4bfb41d5b3570defd03c39a9a4d8de6bd8b8982e'),\n LOWER('0xC5d563A36AE78145C45a50134d48A1215220f80a')\n )\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.polymarket_filled_orders\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\npolymarket_shape AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n order_hash,\n maker,\n taker,\n COALESCE(NULLIF(maker_asset_id, '0'), taker_asset_id) AS asset_id, \n maker_asset_id,\n taker_asset_id,\n maker_amount_filled / pow(\n 10,\n 6\n ) AS amount_usd,\n taker_amount_filled / pow(\n 10,\n 6\n ) AS shares,\n maker_amount_filled/taker_amount_filled AS price_per_share,\n _inserted_timestamp,\n _log_id\n FROM\n polymarket_orders\n),\nyes_tokens AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n 'OrderFilled' AS event_name,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n order_hash,\n maker,\n taker,\n condition_id,\n question_id,\n question,\n market_slug,\n end_date_iso,\n token_1_outcome as outcome,\n asset_id, \n maker_asset_id, \n taker_asset_id,\n amount_usd,\n shares,\n price_per_share,\n _inserted_timestamp,\n _log_id\n FROM\n polymarket_shape p\n INNER JOIN external.polymarket.dim_markets m\n ON asset_id = token_1_token_id\n),\nno_tokens AS(\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'OrderFilled' AS event_name,\n contract_address,\n order_hash,\n maker,\n taker,\n condition_id,\n question,\n market_slug,\n end_date_iso,\n token_2_outcome as outcome,\n question_id,\n asset_id, \n maker_asset_id, \n taker_asset_id,\n amount_usd,\n shares,\n price_per_share,\n _inserted_timestamp,\n _log_id\n FROM\n polymarket_shape p\n INNER JOIN external.polymarket.dim_markets m\n ON asset_id = token_2_token_id\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n question,\n market_slug,\n end_date_iso,\n outcome,\n order_hash,\n maker,\n taker,\n condition_id,\n question_id,\n asset_id, \n maker_asset_id, \n taker_asset_id,\n amount_usd,\n shares,\n price_per_share,\n _inserted_timestamp,\n _log_id,\n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(event_index as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS polymarket_filled_orders_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM no_tokens\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n question,\n market_slug,\n end_date_iso,\n outcome,\n order_hash,\n maker,\n taker,\n condition_id,\n question_id,\n asset_id, \n maker_asset_id, \n taker_asset_id,\n amount_usd,\n shares,\n price_per_share,\n _inserted_timestamp,\n _log_id,\n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(event_index as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS polymarket_filled_orders_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n yes_tokens", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.polygon_models.silver_olas__service_event_logs": {"database": "polygon", "schema": "silver_olas", "name": "silver_olas__service_event_logs", "resource_type": "model", "package_name": "polygon_models", "path": "silver/protocols/olas/silver_olas__service_event_logs.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__service_event_logs.sql", "unique_id": "model.polygon_models.silver_olas__service_event_logs", "fqn": ["polygon_models", "silver", "protocols", "olas", "silver_olas__service_event_logs"], "alias": "service_event_logs", "checksum": {"name": "sha256", "checksum": "bb7ea3d0b9849fedb815c3e8176593dd25aff35d54961a7c27d68a99e239e749"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_olas", "curated", "olas"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_olas", "curated", "olas"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MULTISIG_ADDRESS": {"name": "MULTISIG_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SERVICE_ID": {"name": "SERVICE_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DATA": {"name": "DATA", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/protocols/olas/silver_olas__service_event_logs.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_olas", "curated", "olas"]}, "created_at": 1764018434.1305897, "relation_name": "polygon.silver_olas.service_event_logs", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_olas','curated','olas']\n) }}\n\nWITH service_multisigs AS (\n\n SELECT\n DISTINCT multisig_address,\n id\n FROM\n {{ ref('silver_olas__create_service_multisigs') }}\n)\nSELECT\n d.block_number,\n d.block_timestamp,\n d.tx_hash,\n d.origin_function_signature,\n d.origin_from_address,\n d.origin_to_address,\n d.contract_address,\n d.event_index,\n s.multisig_address,\n s.id AS service_id,\n d.topics [0] :: STRING AS topic_0,\n d.topics [1] :: STRING AS topic_1,\n d.topics [2] :: STRING AS topic_2,\n d.topics [3] :: STRING AS topic_3,\n d.data,\n regexp_substr_all(SUBSTR(d.data, 3, len(d.data)), '.{64}') AS segmented_data,\n CONCAT(d.tx_hash :: STRING, '-', d.event_index :: STRING) AS _log_id,\n d.modified_timestamp AS _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['d.tx_hash','d.event_index']\n ) }} AS service_event_logs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref('core__fact_event_logs') }}\n d\n INNER JOIN service_multisigs s\n ON d.origin_to_address = s.multisig_address\nWHERE\n d.tx_succeeded\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\n{% endif %}", "language": "sql", "refs": [{"name": "silver_olas__create_service_multisigs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental"], "nodes": ["model.polygon_models.silver_olas__create_service_multisigs", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__service_event_logs.sql", "compiled": true, "compiled_code": "\n\nWITH service_multisigs AS (\n\n SELECT\n DISTINCT multisig_address,\n id\n FROM\n polygon.silver_olas.create_service_multisigs\n)\nSELECT\n d.block_number,\n d.block_timestamp,\n d.tx_hash,\n d.origin_function_signature,\n d.origin_from_address,\n d.origin_to_address,\n d.contract_address,\n d.event_index,\n s.multisig_address,\n s.id AS service_id,\n d.topics [0] :: STRING AS topic_0,\n d.topics [1] :: STRING AS topic_1,\n d.topics [2] :: STRING AS topic_2,\n d.topics [3] :: STRING AS topic_3,\n d.data,\n regexp_substr_all(SUBSTR(d.data, 3, len(d.data)), '.{64}') AS segmented_data,\n CONCAT(d.tx_hash :: STRING, '-', d.event_index :: STRING) AS _log_id,\n d.modified_timestamp AS _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(d.tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(d.event_index as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS service_event_logs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n polygon.core.fact_event_logs\n d\n INNER JOIN service_multisigs s\n ON d.origin_to_address = s.multisig_address\nWHERE\n d.tx_succeeded\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_olas.service_event_logs\n)\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.polygon_models.silver_olas__service_registrations": {"database": "polygon", "schema": "silver_olas", "name": "silver_olas__service_registrations", "resource_type": "model", "package_name": "polygon_models", "path": "silver/protocols/olas/silver_olas__service_registrations.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__service_registrations.sql", "unique_id": "model.polygon_models.silver_olas__service_registrations", "fqn": ["polygon_models", "silver", "protocols", "olas", "silver_olas__service_registrations"], "alias": "service_registrations", "checksum": {"name": "sha256", "checksum": "9a48e48694cc3a9ee504e72ca03ed94059a5540455fd3a5f16b01976002118d7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_olas", "curated", "olas", "heal"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_olas", "curated", "olas", "heal"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "OWNER_ADDRESS": {"name": "OWNER_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MULTISIG_ADDRESS": {"name": "MULTISIG_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SERVICE_ID": {"name": "SERVICE_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/protocols/olas/silver_olas__service_registrations.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_olas", "curated", "olas", "heal"]}, "created_at": 1764018434.1029172, "relation_name": "polygon.silver_olas.service_registrations", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_olas','curated','olas','heal']\n) }}\n\nWITH registry_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n topics [1] :: STRING AS topic_1,\n topics [2] :: STRING AS topic_2,\n topics [3] :: STRING AS topic_3,\n CASE\n WHEN topic_0 = '0xb34c1e02384201736eb4693b9b173306cb41bff12f15894dea5773088e9a3b1c' THEN 'CreateService'\n WHEN topic_0 = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' THEN 'Transfer'\n END AS event_name,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n contract_address = '0xe3607b00e75f6405248323a9417ff6b39b244b50' --Service Registry (AUTONOLAS-SERVICE-V1)\n AND topic_0 IN (\n '0xb34c1e02384201736eb4693b9b173306cb41bff12f15894dea5773088e9a3b1c',\n --CreateService (for services)\n '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' --Transfer\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\ntransfers AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n event_name,\n DATA,\n segmented_data,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n topic_3\n )\n ) AS id,\n _log_id,\n _inserted_timestamp\n FROM\n registry_evt\n WHERE\n event_name = 'Transfer'\n),\nmultisigs AS (\n SELECT\n DISTINCT multisig_address,\n id,\n contract_address\n FROM\n {{ ref('silver_olas__create_service_multisigs') }}\n qualify(ROW_NUMBER() over (PARTITION BY multisig_address\n ORDER BY\n block_timestamp DESC)) = 1 --get latest service multisig address\n),\nservices AS (\n SELECT\n r.block_number,\n r.block_timestamp,\n r.tx_hash,\n r.origin_function_signature,\n r.origin_from_address,\n r.origin_to_address,\n r.contract_address,\n r.event_index,\n r.event_name,\n TRY_TO_NUMBER(utils.udf_hex_to_int(r.topic_1)) AS service_id,\n CONCAT(\n '0x',\n r.segmented_data [0] :: STRING\n ) AS config_hash,\n t.to_address AS owner_address,\n m.multisig_address,\n r._log_id,\n r._inserted_timestamp\n FROM\n registry_evt r\n LEFT JOIN transfers t\n ON r.tx_hash = t.tx_hash\n AND r.contract_address = t.contract_address\n AND service_id = t.id\n LEFT JOIN multisigs m\n ON r.contract_address = m.contract_address\n AND service_id = m.id\n WHERE\n r.event_name = 'CreateService'\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nheal_model AS (\n SELECT\n t0.block_number,\n t0.block_timestamp,\n t0.tx_hash,\n t0.origin_function_signature,\n t0.origin_from_address,\n t0.origin_to_address,\n t0.contract_address,\n t0.event_index,\n t0.event_name,\n t0.service_id,\n t0.config_hash,\n t0.owner_address,\n m.multisig_address, --fill late-arriving or replace with current multisig\n t0._log_id,\n t0._inserted_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN multisigs m\n ON t0.contract_address = m.contract_address\n AND t0.service_id = m.id\n WHERE\n t0.block_number IN (\n SELECT\n t1.block_number\n FROM\n {{ this }}\n t1\n WHERE\n CONCAT(\n COALESCE(\n t1.multisig_address,\n '0x'\n ),\n '-',\n t1.service_id\n ) NOT IN (\n SELECT\n CONCAT(\n multisig_address,\n '-',\n id\n )\n FROM\n multisigs\n )\n AND t1.service_id IN (\n SELECT\n DISTINCT id\n FROM\n multisigs\n )\n )\n),\n{% endif %}\n\nFINAL AS (\n SELECT\n *\n FROM\n services\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n *\nFROM\n heal_model\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n event_name,\n owner_address,\n multisig_address,\n service_id,\n config_hash,\n _log_id,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash','event_index']\n ) }} AS service_registration_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_olas__create_service_multisigs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.polygon_models.silver_olas__create_service_multisigs"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__service_registrations.sql", "compiled": true, "compiled_code": "\n\nWITH registry_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n topics [1] :: STRING AS topic_1,\n topics [2] :: STRING AS topic_2,\n topics [3] :: STRING AS topic_3,\n CASE\n WHEN topic_0 = '0xb34c1e02384201736eb4693b9b173306cb41bff12f15894dea5773088e9a3b1c' THEN 'CreateService'\n WHEN topic_0 = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' THEN 'Transfer'\n END AS event_name,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n contract_address = '0xe3607b00e75f6405248323a9417ff6b39b244b50' --Service Registry (AUTONOLAS-SERVICE-V1)\n AND topic_0 IN (\n '0xb34c1e02384201736eb4693b9b173306cb41bff12f15894dea5773088e9a3b1c',\n --CreateService (for services)\n '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' --Transfer\n )\n AND tx_succeeded\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_olas.service_registrations\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\ntransfers AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n event_name,\n DATA,\n segmented_data,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n topic_3\n )\n ) AS id,\n _log_id,\n _inserted_timestamp\n FROM\n registry_evt\n WHERE\n event_name = 'Transfer'\n),\nmultisigs AS (\n SELECT\n DISTINCT multisig_address,\n id,\n contract_address\n FROM\n polygon.silver_olas.create_service_multisigs\n qualify(ROW_NUMBER() over (PARTITION BY multisig_address\n ORDER BY\n block_timestamp DESC)) = 1 --get latest service multisig address\n),\nservices AS (\n SELECT\n r.block_number,\n r.block_timestamp,\n r.tx_hash,\n r.origin_function_signature,\n r.origin_from_address,\n r.origin_to_address,\n r.contract_address,\n r.event_index,\n r.event_name,\n TRY_TO_NUMBER(utils.udf_hex_to_int(r.topic_1)) AS service_id,\n CONCAT(\n '0x',\n r.segmented_data [0] :: STRING\n ) AS config_hash,\n t.to_address AS owner_address,\n m.multisig_address,\n r._log_id,\n r._inserted_timestamp\n FROM\n registry_evt r\n LEFT JOIN transfers t\n ON r.tx_hash = t.tx_hash\n AND r.contract_address = t.contract_address\n AND service_id = t.id\n LEFT JOIN multisigs m\n ON r.contract_address = m.contract_address\n AND service_id = m.id\n WHERE\n r.event_name = 'CreateService'\n),\n\n\n\nFINAL AS (\n SELECT\n *\n FROM\n services\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n event_name,\n owner_address,\n multisig_address,\n service_id,\n config_hash,\n _log_id,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(event_index as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS service_registration_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n FINAL qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.polygon_models.silver_olas__create_service_multisigs": {"database": "polygon", "schema": "silver_olas", "name": "silver_olas__create_service_multisigs", "resource_type": "model", "package_name": "polygon_models", "path": "silver/protocols/olas/silver_olas__create_service_multisigs.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__create_service_multisigs.sql", "unique_id": "model.polygon_models.silver_olas__create_service_multisigs", "fqn": ["polygon_models", "silver", "protocols", "olas", "silver_olas__create_service_multisigs"], "alias": "create_service_multisigs", "checksum": {"name": "sha256", "checksum": "035250849ddec73a0b6044dda0fe79eb97e1d03f2dfd9eb86ecc652102ced5a8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_olas", "curated", "olas"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_olas", "curated", "olas"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MULTISIG_ADDRESS": {"name": "MULTISIG_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ID": {"name": "ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/protocols/olas/silver_olas__create_service_multisigs.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_olas", "curated", "olas"]}, "created_at": 1764018434.0821488, "relation_name": "polygon.silver_olas.create_service_multisigs", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_olas','curated','olas']\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n topics [1] :: STRING AS topic_1,\n topics [2] :: STRING AS topic_2,\n topics [3] :: STRING AS topic_3,\n 'CreateMultisigWithAgents' AS event_name,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n topic_1\n )\n ) AS id,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS multisig_address,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash','event_index']\n ) }} AS create_service_multisigs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref('core__fact_event_logs') }}\nWHERE\n contract_address = '0xe3607b00e75f6405248323a9417ff6b39b244b50' --Service Registry (AUTONOLAS-SERVICE-V1)\n AND topic_0 = '0x2d53f895cd5faf3cddba94a25c2ced2105885b5b37450ff430ffa3cbdf332c74' --CreateMultisigWithAgents\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__create_service_multisigs.sql", "compiled": true, "compiled_code": "\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n topics [1] :: STRING AS topic_1,\n topics [2] :: STRING AS topic_2,\n topics [3] :: STRING AS topic_3,\n 'CreateMultisigWithAgents' AS event_name,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n topic_1\n )\n ) AS id,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS multisig_address,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(event_index as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS create_service_multisigs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n polygon.core.fact_event_logs\nWHERE\n contract_address = '0xe3607b00e75f6405248323a9417ff6b39b244b50' --Service Registry (AUTONOLAS-SERVICE-V1)\n AND topic_0 = '0x2d53f895cd5faf3cddba94a25c2ced2105885b5b37450ff430ffa3cbdf332c74' --CreateMultisigWithAgents\n AND tx_succeeded\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_olas.create_service_multisigs\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.polygon_models.silver_olas__registry_reads": {"database": "polygon", "schema": "silver_olas", "name": "silver_olas__registry_reads", "resource_type": "model", "package_name": "polygon_models", "path": "silver/protocols/olas/metadata/silver_olas__registry_reads.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__registry_reads.sql", "unique_id": "model.polygon_models.silver_olas__registry_reads", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "silver_olas__registry_reads"], "alias": "registry_reads", "checksum": {"name": "sha256", "checksum": "39e89032fb63a83cab5a413816f16354ab982c5671712609e2aab73ddcc47b40"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_olas", "curated", "olas"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "registry_reads_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_olas", "curated", "olas"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_URI_LINK": {"name": "TOKEN_URI_LINK", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/protocols/olas/metadata/silver_olas__registry_reads.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "registry_reads_id", "full_refresh": false, "tags": ["silver_olas", "curated", "olas"]}, "created_at": 1764018434.2027442, "relation_name": "polygon.silver_olas.registry_reads", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'registry_reads_id',\n full_refresh = false,\n tags = ['silver_olas','curated','olas']\n) }}\n\nWITH service_contracts AS (\n\n SELECT\n contract_address,\n service_id AS registry_id,\n MAX(block_number) AS block_number\n FROM\n {{ ref('silver_olas__service_registrations') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n )\n AND CONCAT(\n contract_address,\n '-',\n registry_id\n ) NOT IN (\n SELECT\n CONCAT(\n contract_address,\n '-',\n function_input\n )\n FROM\n {{ this }}\n )\n{% endif %}\nGROUP BY\n 1,\n 2\n),\nfunction_sigs AS (\n SELECT\n '0xc87b56dd' AS function_sig,\n 'tokenURI' AS function_name\n),\ninputs AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n registry_id AS function_input,\n CONCAT(\n function_sig,\n LPAD(\n SUBSTR(utils.udf_int_to_hex(function_input), 3),\n 64,\n 0)\n ) AS DATA\n FROM\n service_contracts\n JOIN function_sigs\n ON 1 = 1\n ),\n contract_reads AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n function_input,\n DATA,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{ 'to': contract_address, 'from': null, 'data': data }, utils.udf_int_to_hex(block_number) ]\n ) AS rpc_request,\n live.udf_api(\n 'POST',\n CONCAT(\n '{Service}',\n '/',\n '{Authentication}'\n ),{},\n rpc_request,\n 'Vault/prod/polygon/quicknode/mainnet'\n ) AS read_output,\n SYSDATE() AS _inserted_timestamp\n FROM\n inputs\n )\n SELECT\n read_output,\n read_output :data :id :: STRING AS read_id,\n read_output :data :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n utils.udf_hex_to_string(SUBSTR(read_result, 131)) AS token_uri_link,\n contract_address,\n block_number,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['contract_address','function_input']\n ) }} AS registry_reads_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\n FROM\n contract_reads\n WHERE\n token_uri_link IS NOT NULL\n AND LENGTH(token_uri_link) <> 0", "language": "sql", "refs": [{"name": "silver_olas__service_registrations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.polygon_models.silver_olas__service_registrations"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__registry_reads.sql", "compiled": true, "compiled_code": "\n\nWITH service_contracts AS (\n\n SELECT\n contract_address,\n service_id AS registry_id,\n MAX(block_number) AS block_number\n FROM\n polygon.silver_olas.service_registrations\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_olas.registry_reads\n )\n AND CONCAT(\n contract_address,\n '-',\n registry_id\n ) NOT IN (\n SELECT\n CONCAT(\n contract_address,\n '-',\n function_input\n )\n FROM\n polygon.silver_olas.registry_reads\n )\n\nGROUP BY\n 1,\n 2\n),\nfunction_sigs AS (\n SELECT\n '0xc87b56dd' AS function_sig,\n 'tokenURI' AS function_name\n),\ninputs AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n registry_id AS function_input,\n CONCAT(\n function_sig,\n LPAD(\n SUBSTR(utils.udf_int_to_hex(function_input), 3),\n 64,\n 0)\n ) AS DATA\n FROM\n service_contracts\n JOIN function_sigs\n ON 1 = 1\n ),\n contract_reads AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n function_input,\n DATA,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{ 'to': contract_address, 'from': null, 'data': data }, utils.udf_int_to_hex(block_number) ]\n ) AS rpc_request,\n live.udf_api(\n 'POST',\n CONCAT(\n '{Service}',\n '/',\n '{Authentication}'\n ),{},\n rpc_request,\n 'Vault/prod/polygon/quicknode/mainnet'\n ) AS read_output,\n SYSDATE() AS _inserted_timestamp\n FROM\n inputs\n )\n SELECT\n read_output,\n read_output :data :id :: STRING AS read_id,\n read_output :data :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n utils.udf_hex_to_string(SUBSTR(read_result, 131)) AS token_uri_link,\n contract_address,\n block_number,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(contract_address as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(function_input as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS registry_reads_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\n FROM\n contract_reads\n WHERE\n token_uri_link IS NOT NULL\n AND LENGTH(token_uri_link) <> 0", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.polygon_models.silver_olas__registry_metadata": {"database": "polygon", "schema": "silver_olas", "name": "silver_olas__registry_metadata", "resource_type": "model", "package_name": "polygon_models", "path": "silver/protocols/olas/metadata/silver_olas__registry_metadata.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__registry_metadata.sql", "unique_id": "model.polygon_models.silver_olas__registry_metadata", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "silver_olas__registry_metadata"], "alias": "registry_metadata", "checksum": {"name": "sha256", "checksum": "f5a7fd5a9a39c4be2512dbdd2ffa39ecaa7e01013fa0d015abfcc2967aeb1374"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_olas", "curated", "olas"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "registry_metadata_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_olas", "curated", "olas"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REGISTRY_ID": {"name": "REGISTRY_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/protocols/olas/metadata/silver_olas__registry_metadata.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "registry_metadata_id", "full_refresh": false, "tags": ["silver_olas", "curated", "olas"]}, "created_at": 1764018434.1848304, "relation_name": "polygon.silver_olas.registry_metadata", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'registry_metadata_id',\n full_refresh = false,\n tags = ['silver_olas','curated','olas']\n) }}\n\nWITH new_records AS (\n\n SELECT\n block_number,\n contract_address,\n function_input AS registry_id,\n token_uri_link,\n _inserted_timestamp,\n ROW_NUMBER() over (\n ORDER BY\n contract_address,\n registry_id\n ) AS row_num\n FROM\n {{ ref('silver_olas__registry_reads') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp > (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n {{ this }}\n )\n OR \n CONCAT(\n contract_address,\n '-',\n registry_id\n ) IN (\n SELECT\n CONCAT(\n contract_address,\n '-',\n registry_id\n )\n FROM\n {{ this }}\n WHERE\n NAME IS NULL\n )\n{% endif %}\n),\nuri_calls AS (\n SELECT\n block_number,\n contract_address,\n registry_id,\n token_uri_link,\n live.udf_api(token_uri_link) AS resp,\n _inserted_timestamp\n FROM\n new_records\n WHERE\n row_num <= 100\n UNION ALL\n SELECT\n block_number,\n contract_address,\n registry_id,\n token_uri_link,\n live.udf_api(token_uri_link) AS resp,\n _inserted_timestamp\n FROM\n new_records\n WHERE\n row_num > 100\n AND row_num <= 200\n UNION ALL\n SELECT\n block_number,\n contract_address,\n registry_id,\n token_uri_link,\n live.udf_api(token_uri_link) AS resp,\n _inserted_timestamp\n FROM\n new_records\n WHERE\n row_num > 200\n),\nresponse AS (\n SELECT\n resp,\n block_number,\n contract_address,\n registry_id,\n token_uri_link,\n resp :data :attributes [0] :trait_type :: STRING AS trait_type,\n resp :data :attributes [0] :value :: STRING AS trait_value,\n REPLACE(\n resp :data :code_uri :: STRING,\n 'ipfs://',\n 'https://gateway.autonolas.tech/ipfs/'\n ) AS code_uri_link,\n resp :data :description :: STRING AS description,\n CASE\n WHEN resp :data :image :: STRING ILIKE 'ipfs://%' THEN REPLACE(\n resp :data :image :: STRING,\n 'ipfs://',\n 'https://gateway.autonolas.tech/ipfs/'\n )\n WHEN resp :data :image :: STRING NOT ILIKE '%://%' THEN CONCAT(\n 'https://gateway.autonolas.tech/ipfs/',\n resp :data :image :: STRING\n )\n ELSE resp :data :image :: STRING\n END AS image_link,\n resp :data :name :: STRING AS NAME,\n _inserted_timestamp\n FROM\n uri_calls\n)\nSELECT\n resp,\n block_number,\n contract_address,\n registry_id,\n token_uri_link,\n trait_type,\n trait_value,\n code_uri_link,\n description,\n image_link,\n NAME,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['contract_address','registry_id']\n ) }} AS registry_metadata_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n response\nWHERE\n resp :: STRING NOT ILIKE '%merkledag: not found%'\n AND resp :: STRING NOT ILIKE '%tuple index out of range%'\n AND resp :: STRING NOT ILIKE '%\"error\":%'", "language": "sql", "refs": [{"name": "silver_olas__registry_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.polygon_models.silver_olas__registry_reads"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__registry_metadata.sql", "compiled": true, "compiled_code": "\n\nWITH new_records AS (\n\n SELECT\n block_number,\n contract_address,\n function_input AS registry_id,\n token_uri_link,\n _inserted_timestamp,\n ROW_NUMBER() over (\n ORDER BY\n contract_address,\n registry_id\n ) AS row_num\n FROM\n polygon.silver_olas.registry_reads\n\n\nWHERE\n _inserted_timestamp > (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n polygon.silver_olas.registry_metadata\n )\n OR \n CONCAT(\n contract_address,\n '-',\n registry_id\n ) IN (\n SELECT\n CONCAT(\n contract_address,\n '-',\n registry_id\n )\n FROM\n polygon.silver_olas.registry_metadata\n WHERE\n NAME IS NULL\n )\n\n),\nuri_calls AS (\n SELECT\n block_number,\n contract_address,\n registry_id,\n token_uri_link,\n live.udf_api(token_uri_link) AS resp,\n _inserted_timestamp\n FROM\n new_records\n WHERE\n row_num <= 100\n UNION ALL\n SELECT\n block_number,\n contract_address,\n registry_id,\n token_uri_link,\n live.udf_api(token_uri_link) AS resp,\n _inserted_timestamp\n FROM\n new_records\n WHERE\n row_num > 100\n AND row_num <= 200\n UNION ALL\n SELECT\n block_number,\n contract_address,\n registry_id,\n token_uri_link,\n live.udf_api(token_uri_link) AS resp,\n _inserted_timestamp\n FROM\n new_records\n WHERE\n row_num > 200\n),\nresponse AS (\n SELECT\n resp,\n block_number,\n contract_address,\n registry_id,\n token_uri_link,\n resp :data :attributes [0] :trait_type :: STRING AS trait_type,\n resp :data :attributes [0] :value :: STRING AS trait_value,\n REPLACE(\n resp :data :code_uri :: STRING,\n 'ipfs://',\n 'https://gateway.autonolas.tech/ipfs/'\n ) AS code_uri_link,\n resp :data :description :: STRING AS description,\n CASE\n WHEN resp :data :image :: STRING ILIKE 'ipfs://%' THEN REPLACE(\n resp :data :image :: STRING,\n 'ipfs://',\n 'https://gateway.autonolas.tech/ipfs/'\n )\n WHEN resp :data :image :: STRING NOT ILIKE '%://%' THEN CONCAT(\n 'https://gateway.autonolas.tech/ipfs/',\n resp :data :image :: STRING\n )\n ELSE resp :data :image :: STRING\n END AS image_link,\n resp :data :name :: STRING AS NAME,\n _inserted_timestamp\n FROM\n uri_calls\n)\nSELECT\n resp,\n block_number,\n contract_address,\n registry_id,\n token_uri_link,\n trait_type,\n trait_value,\n code_uri_link,\n description,\n image_link,\n NAME,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(contract_address as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(registry_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS registry_metadata_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n response\nWHERE\n resp :: STRING NOT ILIKE '%merkledag: not found%'\n AND resp :: STRING NOT ILIKE '%tuple index out of range%'\n AND resp :: STRING NOT ILIKE '%\"error\":%'", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.polygon_models.silver_olas__registry_metadata_complete": {"database": "polygon", "schema": "silver_olas", "name": "silver_olas__registry_metadata_complete", "resource_type": "model", "package_name": "polygon_models", "path": "silver/protocols/olas/metadata/silver_olas__registry_metadata_complete.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__registry_metadata_complete.sql", "unique_id": "model.polygon_models.silver_olas__registry_metadata_complete", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "silver_olas__registry_metadata_complete"], "alias": "registry_metadata_complete", "checksum": {"name": "sha256", "checksum": "95af38b6fba7dfcb2681cc038aff734581f3c0ed567fa49f94a42904493ed700"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_olas", "curated", "olas"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_olas", "curated", "olas"], "description": "", "columns": {"CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REGISTRY_ID": {"name": "REGISTRY_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/protocols/olas/metadata/silver_olas__registry_metadata_complete.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["silver_olas", "curated", "olas"]}, "created_at": 1764018434.1692426, "relation_name": "polygon.silver_olas.registry_metadata_complete", "raw_code": "{{ config(\n materialized = 'view',\n tags = ['silver_olas','curated','olas']\n) }}\n\nSELECT\n m.name,\n m.description,\n m.registry_id,\n m.contract_address,\n CASE\n WHEN m.contract_address = '0xe3607b00e75f6405248323a9417ff6b39b244b50' THEN 'Service'\n END AS registry_type,\n m.trait_type,\n m.trait_value,\n m.code_uri_link,\n m.image_link,\n s.agent_ids,\n m.registry_metadata_id,\n m.inserted_timestamp,\n GREATEST(\n COALESCE(\n m.modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ),\n COALESCE(\n s.modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n )\n ) AS modified_timestamp\nFROM\n {{ ref('silver_olas__registry_metadata') }}\n m\n LEFT JOIN {{ ref('silver_olas__getservice_reads') }}\n s\n ON m.registry_id = s.function_input", "language": "sql", "refs": [{"name": "silver_olas__registry_metadata", "package": null, "version": null}, {"name": "silver_olas__getservice_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.polygon_models.silver_olas__registry_metadata", "model.polygon_models.silver_olas__getservice_reads"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__registry_metadata_complete.sql", "compiled": true, "compiled_code": "\n\nSELECT\n m.name,\n m.description,\n m.registry_id,\n m.contract_address,\n CASE\n WHEN m.contract_address = '0xe3607b00e75f6405248323a9417ff6b39b244b50' THEN 'Service'\n END AS registry_type,\n m.trait_type,\n m.trait_value,\n m.code_uri_link,\n m.image_link,\n s.agent_ids,\n m.registry_metadata_id,\n m.inserted_timestamp,\n GREATEST(\n COALESCE(\n m.modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ),\n COALESCE(\n s.modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n )\n ) AS modified_timestamp\nFROM\n polygon.silver_olas.registry_metadata\n m\n LEFT JOIN polygon.silver_olas.getservice_reads\n s\n ON m.registry_id = s.function_input", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.polygon_models.silver_olas__getservice_reads": {"database": "polygon", "schema": "silver_olas", "name": "silver_olas__getservice_reads", "resource_type": "model", "package_name": "polygon_models", "path": "silver/protocols/olas/metadata/silver_olas__getservice_reads.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__getservice_reads.sql", "unique_id": "model.polygon_models.silver_olas__getservice_reads", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "silver_olas__getservice_reads"], "alias": "getservice_reads", "checksum": {"name": "sha256", "checksum": "eda420bf4fb24ec376382080d955ea18d5103569503ef070b3b16fe8a5773ef2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_olas", "curated", "olas"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "getservice_reads_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_olas", "curated", "olas"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FUNCTION_INPUT": {"name": "FUNCTION_INPUT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AGENT_IDS": {"name": "AGENT_IDS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/protocols/olas/metadata/silver_olas__getservice_reads.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "getservice_reads_id", "full_refresh": false, "tags": ["silver_olas", "curated", "olas"]}, "created_at": 1764018434.155623, "relation_name": "polygon.silver_olas.getservice_reads", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'getservice_reads_id',\n full_refresh = false,\n tags = ['silver_olas','curated','olas']\n) }}\n\nWITH service_contracts AS (\n\n SELECT\n contract_address,\n service_id AS registry_id,\n MAX(block_number) AS block_number\n FROM\n {{ ref('silver_olas__service_registrations') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n )\n AND CONCAT(\n contract_address,\n '-',\n registry_id\n ) NOT IN (\n SELECT\n CONCAT(\n contract_address,\n '-',\n function_input\n )\n FROM\n {{ this }}\n )\n{% endif %}\nGROUP BY\n 1,\n 2\n),\nfunction_sigs AS (\n SELECT\n '0xef0e239b' AS function_sig,\n 'getService' AS function_name\n),\ninputs AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n registry_id AS function_input,\n CONCAT(\n function_sig,\n LPAD(\n SUBSTR(utils.udf_int_to_hex(function_input), 3),\n 64,\n 0)\n ) AS DATA\n FROM\n service_contracts\n JOIN function_sigs\n ON 1 = 1\n ),\n contract_reads AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n function_input,\n DATA,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{ 'to': contract_address, 'from': null, 'data': data }, utils.udf_int_to_hex(block_number) ]\n ) AS rpc_request,\n live.udf_api(\n 'POST',\n CONCAT(\n '{Service}',\n '/',\n '{Authentication}'\n ),{},\n rpc_request,\n 'Vault/prod/polygon/quicknode/mainnet'\n ) AS read_output,\n SYSDATE() AS _inserted_timestamp\n FROM\n inputs\n ),\n reads_flat AS (\n SELECT\n read_output,\n read_output :data :id :: STRING AS read_id,\n read_output :data :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n regexp_substr_all(SUBSTR(read_result, 3, len(read_result)), '.{64}') AS segmented_read,\n utils.udf_hex_to_int(\n VALUE :: STRING\n ) AS decoded_read,\n function_sig,\n function_name,\n function_input,\n DATA,\n contract_address,\n block_number,\n _inserted_timestamp\n FROM\n contract_reads,\n LATERAL FLATTEN(\n input => segmented_read\n )\n ),\n reads_final AS (\n SELECT\n read_output,\n read_id,\n read_result,\n read_id_object,\n segmented_read,\n function_sig,\n function_name,\n function_input,\n DATA,\n contract_address,\n block_number,\n _inserted_timestamp,\n ARRAY_AGG(TRY_TO_NUMBER(decoded_read)) AS reads_array,\n ARRAY_SLICE(reads_array, 9, ARRAY_SIZE(reads_array)) AS agent_ids\n FROM\n reads_flat\n GROUP BY\n ALL)\n SELECT\n *,\n {{ dbt_utils.generate_surrogate_key(\n ['contract_address','function_input']\n ) }} AS getservice_reads_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\n FROM\n reads_final\n WHERE\n agent_ids IS NOT NULL\n AND agent_ids :: STRING <> '[]'", "language": "sql", "refs": [{"name": "silver_olas__service_registrations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.polygon_models.silver_olas__service_registrations"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__getservice_reads.sql", "compiled": true, "compiled_code": "\n\nWITH service_contracts AS (\n\n SELECT\n contract_address,\n service_id AS registry_id,\n MAX(block_number) AS block_number\n FROM\n polygon.silver_olas.service_registrations\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_olas.getservice_reads\n )\n AND CONCAT(\n contract_address,\n '-',\n registry_id\n ) NOT IN (\n SELECT\n CONCAT(\n contract_address,\n '-',\n function_input\n )\n FROM\n polygon.silver_olas.getservice_reads\n )\n\nGROUP BY\n 1,\n 2\n),\nfunction_sigs AS (\n SELECT\n '0xef0e239b' AS function_sig,\n 'getService' AS function_name\n),\ninputs AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n registry_id AS function_input,\n CONCAT(\n function_sig,\n LPAD(\n SUBSTR(utils.udf_int_to_hex(function_input), 3),\n 64,\n 0)\n ) AS DATA\n FROM\n service_contracts\n JOIN function_sigs\n ON 1 = 1\n ),\n contract_reads AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n function_input,\n DATA,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{ 'to': contract_address, 'from': null, 'data': data }, utils.udf_int_to_hex(block_number) ]\n ) AS rpc_request,\n live.udf_api(\n 'POST',\n CONCAT(\n '{Service}',\n '/',\n '{Authentication}'\n ),{},\n rpc_request,\n 'Vault/prod/polygon/quicknode/mainnet'\n ) AS read_output,\n SYSDATE() AS _inserted_timestamp\n FROM\n inputs\n ),\n reads_flat AS (\n SELECT\n read_output,\n read_output :data :id :: STRING AS read_id,\n read_output :data :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n regexp_substr_all(SUBSTR(read_result, 3, len(read_result)), '.{64}') AS segmented_read,\n utils.udf_hex_to_int(\n VALUE :: STRING\n ) AS decoded_read,\n function_sig,\n function_name,\n function_input,\n DATA,\n contract_address,\n block_number,\n _inserted_timestamp\n FROM\n contract_reads,\n LATERAL FLATTEN(\n input => segmented_read\n )\n ),\n reads_final AS (\n SELECT\n read_output,\n read_id,\n read_result,\n read_id_object,\n segmented_read,\n function_sig,\n function_name,\n function_input,\n DATA,\n contract_address,\n block_number,\n _inserted_timestamp,\n ARRAY_AGG(TRY_TO_NUMBER(decoded_read)) AS reads_array,\n ARRAY_SLICE(reads_array, 9, ARRAY_SIZE(reads_array)) AS agent_ids\n FROM\n reads_flat\n GROUP BY\n ALL)\n SELECT\n *,\n \n \nmd5(cast(coalesce(cast(contract_address as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(function_input as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS getservice_reads_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\n FROM\n reads_final\n WHERE\n agent_ids IS NOT NULL\n AND agent_ids :: STRING <> '[]'", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.polygon_models.silver__seaport_1_6_sales": {"database": "polygon", "schema": "silver", "name": "silver__seaport_1_6_sales", "resource_type": "model", "package_name": "polygon_models", "path": "silver/NFT/sales/silver__seaport_1_6_sales.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.sql", "unique_id": "model.polygon_models.silver__seaport_1_6_sales", "fqn": ["polygon_models", "silver", "NFT", "sales", "silver__seaport_1_6_sales"], "alias": "seaport_1_6_sales", "checksum": {"name": "sha256", "checksum": "d60da7ffa98ab03173efd1bd954950505aea4d8ed1c739b8062ba27b8cda2d7f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "nft", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "nft", "curated"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_ADDRESS": {"name": "PLATFORM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_NAME": {"name": "PLATFORM_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SELLER_ADDRESS": {"name": "SELLER_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BUYER_ADDRESS": {"name": "BUYER_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NFT_ADDRESS": {"name": "NFT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKENID": {"name": "TOKENID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CURRENCY_ADDRESS": {"name": "CURRENCY_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_PRICE_RAW": {"name": "TOTAL_PRICE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_FEES_RAW": {"name": "TOTAL_FEES_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_FEE_RAW": {"name": "PLATFORM_FEE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATOR_FEE_RAW": {"name": "CREATOR_FEE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_FEE": {"name": "TX_FEE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NFT_LOG_ID": {"name": "NFT_LOG_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_TYPE": {"name": "EVENT_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INPUT_DATA": {"name": "INPUT_DATA", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "nft", "curated"]}, "created_at": 1764018434.955118, "relation_name": "polygon.silver.seaport_1_6_sales", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','nft','curated']\n) }}\n\nWITH seaport_fees_wallet AS (\n\n SELECT\n *\n FROM\n (\n VALUES\n ('0x0000a26b00c1f0df003000390027140000faa719'),\n ('0x8de9c5a032463c561423387a9648c5c7bcc5bc90'),\n ('0x5b3256965e7c3cf26e11fcaf296dfc8807c01073')\n ) t (addresses)\n),\nraw_decoded_logs AS (\n SELECT\n *,\n decoded_log :orderHash :: STRING AS orderhash,\n tx_hash || '-' || decoded_log :orderHash AS tx_hash_orderhash,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n WHERE\n block_timestamp :: DATE >= '2024-03-15'\n AND contract_address = '0x0000000000000068f116a894984e2db1123eb395'\n AND event_name IN (\n 'OrderFulfilled',\n 'OrdersMatched'\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n{% endif %}\n),\nraw_logs AS (\n SELECT\n *,\n IFF(\n topics [0] :: STRING IN (\n '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n ),\n 1,\n NULL\n ) AS om_event_index_raw,\n IFF(\n topics [0] :: STRING NOT IN (\n '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n ),\n SUBSTRING(\n DATA,\n 1,\n 66\n ),\n NULL\n ) AS order_hash,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n block_timestamp :: DATE >= '2024-03-15'\n AND contract_address = '0x0000000000000068f116a894984e2db1123eb395'\n AND topics [0] :: STRING IN (\n '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7',\n -- ordersMatched\n '0x9d9af8e38d66c62e2c12f0225249fd9d721c54b83f48d9352c97c6cacdcb6f31' -- orderFulfilled\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nraw_logs_event_index_fill AS (\n SELECT\n *,\n IFF(\n om_event_index_raw IS NULL,\n NULL,\n SUM(om_event_index_raw) over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n )\n ) AS om_event_index\n FROM\n raw_logs\n),\nmao_orderhash AS (\n -- this helps us determine which orderhashes belong to OrderMatched as opposed to OrderFulfilled\n SELECT\n tx_hash,\n event_index,\n om_event_index,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented,\n utils.udf_hex_to_int(\n segmented [0] :: STRING\n ) / 32 AS length_index,\n utils.udf_hex_to_int(\n segmented [length_index] :: STRING\n ) AS orders_length,\n INDEX,\n '0x' || VALUE :: STRING AS orderhash,\n tx_hash || '-' || orderhash AS tx_hash_orderhash\n FROM\n raw_logs_event_index_fill,\n LATERAL FLATTEN(\n input => segmented\n )\n WHERE\n INDEX BETWEEN (\n length_index + 1\n )\n AND (\n orders_length + 1\n )\n AND topics [0] :: STRING = '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n),\n-- this big section below is for OrderFulfilled\ndecoded AS (\n SELECT\n tx_hash,\n decoded_log,\n event_index,\n full_decoded_log,\n CONCAT(\n tx_hash,\n '-',\n decoded_log :orderHash :: STRING\n ) AS tx_hash_orderhash,\n _log_id,\n _inserted_timestamp,\n LOWER(\n full_decoded_log :address :: STRING\n ) AS contract_address,\n full_decoded_log :name :: STRING AS event_name,\n CASE\n WHEN full_decoded_log :data [4] :value [0] [0] IN (\n 2,\n 3\n ) THEN 'buy'\n WHEN full_decoded_log :data [4] :value [0] [0] IN (1) THEN 'offer_accepted'\n ELSE NULL\n END AS trade_type\n FROM\n raw_decoded_logs\n WHERE\n event_name = 'OrderFulfilled'\n AND tx_hash_orderhash NOT IN (\n SELECT\n tx_hash_orderhash\n FROM\n mao_orderhash\n )\n),\noffer_length_count_buy AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [4] :value))\n WHERE\n trade_type = 'buy'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n),\noffer_length_count_offer AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [5] :value))\n WHERE\n trade_type = 'offer_accepted'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n),\nflat_raw AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_decoded_log :data AS full_data,\n _log_id,\n _inserted_timestamp,\n OBJECT_AGG(\n VALUE :name,\n VALUE :value\n ) AS decoded_output\n FROM\n decoded,\n LATERAL FLATTEN(\n input => full_decoded_log :data\n ) f\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type IS NOT NULL\n GROUP BY\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp\n),\nflat AS (\n SELECT\n r.tx_hash,\n r.event_index,\n contract_address,\n event_name,\n COALESCE (\n b.offer_length_raw,\n o.offer_length_raw,\n NULL\n ) AS offer_length,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp,\n decoded_output\n FROM\n flat_raw r\n LEFT JOIN offer_length_count_buy b\n ON r.tx_hash = b.tx_hash\n AND r.event_index = b.event_index\n LEFT JOIN offer_length_count_offer o\n ON r.tx_hash = o.tx_hash\n AND r.event_index = o.event_index\n WHERE\n offer_length IS NOT NULL\n),\nfiltered_private_offer_tx AS (\n SELECT\n tx_hash\n FROM\n flat\n WHERE\n trade_type = 'offer_accepted'\n AND full_data [3] :value :: STRING = '0x0000000000000000000000000000000000000000'\n),\nprivate_offer_tx_flat AS (\n SELECT\n tx_hash,\n ARRAY_AGG (\n CASE\n WHEN trade_type = 'buy' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_offerer,\n ARRAY_AGG(\n CASE\n WHEN trade_type = 'offer_accepted' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_recipient --(buyer) or receiver of the NFT\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n GROUP BY\n tx_hash\n),\nprivate_offer_tx_flat_null_offerer AS (\n -- mainly transfers via opensea as a result of a phishing scam)\n SELECT\n tx_hash,\n full_data [1] :value :: STRING AS private_seller -- person whose account is compromised\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat\n WHERE\n private_offerer IS NULL\n )\n AND trade_type = 'offer_accepted'\n),\nprivate_offer_tx_offerer_combined AS (\n SELECT\n t.tx_hash,\n t.private_offerer,\n t.private_recipient AS recipient_from_private_tx,\n n.private_seller,\n CASE\n WHEN t.private_offerer IS NULL THEN n.private_seller\n ELSE t.private_offerer\n END AS offerer_from_private_tx\n FROM\n private_offer_tx_flat t\n LEFT JOIN private_offer_tx_flat_null_offerer n\n ON t.tx_hash = n.tx_hash\n),\nbase_sales_buy AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n --seller\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n -- buyer\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n ) -- AND tx_type IS NOT NULL ; null tx type would mean that there aren't any considerations. The nft is transferred without asking for anything in exchange for it\n),\nbase_sales_buy_null_values AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND tx_type IS NULL\n),\nbase_sales_buy_public_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_public_nft_transfers_null_values AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_null_values\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_public_nft_transfers_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers_null_values\n),\nbase_sales_buy_private_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] :: STRING AS private_sale_recipient\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'private'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n),\nbase_sales_buy_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN first_flatten_index = 0 THEN raw_amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_buy_sale_amount_filter\n),\nbase_sales_buy_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw_,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_buy_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n),\nbase_sales_buy_sale_amount_null_values AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy_null_values\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_sale_amount_filter\n )\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_type IS NULL\n),\nbase_sales_buy_sale_amount_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_sale_amount_null_values\n),\nbase_sales_buy_combined AS (\n SELECT\n *\n FROM\n base_sales_buy\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_null_values\n),\nbase_sales_buy_final_public AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n recipient_temp AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_public_nft_transfers_combined n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n),\nbase_sales_buy_final_private AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n private_sale_recipient AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_private_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n),\nbase_sales_buy_final AS (\n SELECT\n *\n FROM\n base_sales_buy_final_public\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_final_private\n),\nbase_sales_offer_accepted AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :recipient :: STRING AS offerer_temp,\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :offerer :: STRING AS recipient_temp,\n CASE\n WHEN offerer_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output :offer [0] [3] :: INT / offer_length AS total_sale_amount_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled',\n 'OrdersMatched'\n )\n AND trade_type = 'offer_accepted'\n AND tx_type IS NOT NULL\n AND tx_hash IS NOT NULL\n),\nbase_sales_offer_accepted_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] AS private_recipient_from_consideration\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n),\nbase_sales_offer_accepted_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n),\nbase_sales_offer_accepted_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN address_list NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_sale_amount_filter\n),\nbase_sales_offer_accepted_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n currency_address,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n),\nbase_sales_offer_accepted_no_fees_tx AS (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_sale_amount_filter\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n),\nbase_sales_offer_accepted_no_fees_amount AS (\n SELECT\n tx_hash,\n event_index,\n ARRAY_AGG(\n t.value\n ) AS sale_values,\n sale_values [0] [1] :: STRING AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_no_fees_tx\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n GROUP BY\n tx_hash,\n event_index\n),\nbase_sales_offer_accepted_phishing_scam_amount AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n NULL AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_nft_transfers\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n),\nbase_sales_offer_accepted_sale_and_no_fees AS (\n SELECT\n *\n FROM\n base_sales_offer_accepted_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_no_fees_amount\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_phishing_scam_amount\n),\nbase_sales_offer_accepted_final AS (\n SELECT\n b.tx_hash,\n b.event_index,\n contract_address,\n event_name,\n offer_length,\n CASE\n WHEN sale_category = 'public' THEN offerer_temp\n ELSE COALESCE (\n private_offerer,\n offerer_from_private_tx\n )\n END AS offerer,\n orderHash,\n CASE\n WHEN sale_category = 'public' THEN recipient_temp\n WHEN sale_category = 'private'\n AND private_offerer IS NULL THEN private_recipient_from_consideration\n ELSE recipient_from_private_tx\n END AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address,\n tokenid,\n CASE\n WHEN token_type = '3' THEN number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n CASE\n WHEN private_offerer IS NULL\n AND private_seller IS NOT NULL THEN 0\n ELSE decoded_output :offer [0] [3] :: INT / offer_length\n END AS total_sale_amount_raw,\n platform_fee_raw_ :: INT / offer_length AS platform_fee_raw,\n creator_fee_raw_ :: INT / offer_length AS creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted b\n INNER JOIN base_sales_offer_accepted_sale_and_no_fees s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_offer_accepted_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n LEFT OUTER JOIN private_offer_tx_offerer_combined p\n ON b.tx_hash = p.tx_hash\n WHERE\n nft_address IS NOT NULL qualify ROW_NUMBER() over (\n PARTITION BY b.tx_hash,\n b.event_index,\n nft_address,\n tokenid,\n _log_id\n ORDER BY\n _inserted_timestamp ASC\n ) = 1\n),\n-- the new matchOrders logic starts here\norderhash_grouping_raw AS (\n SELECT\n tx_hash,\n event_index,\n order_hash,\n om_event_index,\n -- shows the order of multiple ordersmatched event in one tx\n om_event_index_raw,\n CASE\n WHEN om_event_index IS NULL THEN LEAD(om_event_index) ignore nulls over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n )\n ELSE NULL\n END AS om_event_index_fill -- shows all orderhashes and their grouping\n FROM\n raw_logs_event_index_fill\n),\norderhash_grouping_fill AS (\n SELECT\n tx_hash,\n event_index,\n order_hash,\n CONCAT(\n tx_hash,\n '-',\n order_hash\n ) AS tx_hash_orderhash,\n om_event_index,\n om_event_index_fill,\n om_event_index_raw,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n event_index ASC\n ) AS orderhash_order_within_group -- orderhash order within an orderhash group\n FROM\n orderhash_grouping_raw\n),\n-- item type references:\n-- 0 - eth\n-- 1 - erc20\n-- 2 - erc721\n-- 3 - erc1155\n-- 4 - erc721 w criteria,\n-- 5 - erc1155 w criteria\nmao_consideration_all AS (\n SELECT\n tx_hash,\n event_index,\n decoded_log,\n INDEX,\n orderhash,\n tx_hash_orderhash,\n decoded_log :offerer :: STRING AS offerer,\n decoded_log :recipient :: STRING AS recipient,\n VALUE,\n VALUE :amount :: INT AS amount,\n VALUE :identifier :: STRING AS identifier,\n VALUE :itemType :: INT AS item_type,\n VALUE :recipient :: STRING AS item_recipient,\n VALUE :token :: STRING AS item_token_address,\n decoded_log :offer [0] :amount :: INT AS offer_amount,\n decoded_log :offer [0] :identifier :: STRING AS offer_identifier,\n decoded_log :offer [0] :itemType :: INT AS offer_item_type,\n decoded_log :offer [0] :token :: STRING AS offer_item_token_address,\n IFF(item_type NOT IN (0, 1), CONCAT(item_token_address, '-', identifier, '-', amount), CONCAT(offer_item_token_address, '-', offer_identifier, '-', offer_amount)) AS nft_address_identifier,\n IFF(item_type NOT IN (0, 1), nft_address_identifier, NULL) AS nft_address_identifier_null,\n CASE\n WHEN item_type NOT IN (\n 0,\n 1\n ) THEN nft_address_identifier\n WHEN item_type IN (\n 0,\n 1\n )\n AND offer_item_type IN (\n 0,\n 1\n ) THEN LAG(nft_address_identifier_null) ignore nulls over (\n PARTITION BY tx_hash,\n event_index\n ORDER BY\n INDEX ASC\n )\n WHEN item_type IN (\n 0,\n 1\n )\n AND offer_item_type NOT IN (\n 0,\n 1\n ) THEN nft_address_identifier\n ELSE nft_address_identifier\n END AS nft_address_identifier_fill_raw,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n event_index\n ORDER BY\n INDEX ASC\n ) AS orderhash_within_event_index_rn,\n _log_id,\n _inserted_timestamp\n FROM\n raw_decoded_logs,\n LATERAL FLATTEN (\n input => decoded_log :consideration\n )\n WHERE\n event_name = 'OrderFulfilled'\n AND tx_hash_orderhash IN (\n SELECT\n tx_hash_orderhash\n FROM\n mao_orderhash\n )\n),\nmao_consideration_all_joined AS (\n SELECT\n *,\n CASE\n WHEN nft_address_identifier_null IS NULL\n AND offerer = recipient THEN LAG(nft_address_identifier_null) ignore nulls over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n event_index,\n INDEX ASC\n )\n ELSE nft_address_identifier_fill_raw\n END AS nft_address_identifier_fill,\n IFF(item_type NOT IN (0, 1)\n AND offer_item_type NOT IN (0, 1)\n AND decoded_log :consideration [0] :itemType :: INT NOT IN (0, 1), CONCAT(tx_hash_orderhash, '-', event_index), NULL) AS deals_tag,\n CONCAT(\n tx_hash_orderhash,\n '-',\n event_index\n ) AS event_index_tag -- tagging for deals tag\n FROM\n mao_consideration_all\n INNER JOIN orderhash_grouping_fill USING (\n tx_hash,\n tx_hash_orderhash,\n event_index\n )\n),\nmao_consideration_sale_amounts AS (\n SELECT\n tx_hash,\n orderhash,\n tx_hash_orderhash,\n orderhash_within_event_index_rn,\n om_event_index_fill,\n deals_tag,\n event_index_tag,\n event_index,\n INDEX,\n amount,\n identifier,\n item_type,\n item_token_address,\n item_token_address AS currency_address,\n item_recipient,\n nft_address_identifier_fill,\n CASE\n WHEN amount > 0\n AND ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill\n ORDER BY\n amount DESC\n ) = 1 THEN amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN item_recipient IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN sale_amount_raw_ = 0\n AND platform_fee_raw_ = 0 THEN amount\n ELSE 0\n END AS creator_fee_raw_,\n IFF(\n sale_amount_raw_ > 0,\n item_recipient,\n NULL\n ) AS sale_receiver_address\n FROM\n mao_consideration_all_joined\n WHERE\n item_type IN (\n 0,\n 1\n )\n AND nft_address_identifier_fill IS NOT NULL\n AND event_index_tag NOT IN (\n SELECT\n deals_tag\n FROM\n mao_consideration_all_joined\n WHERE\n deals_tag IS NOT NULL\n ) -- exclude deals\n),\nmao_nondeals_sale_amount AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill,\n currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw,\n SUM(platform_fee_raw_) AS platform_fee_raw,\n SUM(creator_fee_raw_) AS creator_fee_raw\n FROM\n mao_consideration_sale_amounts\n GROUP BY\n ALL\n),\nmao_nondeals_sale_amount_receiver AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill,\n sale_receiver_address,\n currency_address,\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw\n FROM\n mao_nondeals_sale_amount\n INNER JOIN mao_consideration_sale_amounts s USING (\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill,\n currency_address\n )\n WHERE\n s.sale_receiver_address IS NOT NULL\n),\nmao_deals_sale_amount AS (\n SELECT\n *,\n IFF(\n item_recipient = offerer,\n recipient,\n offerer\n ) AS payment_from_address,\n item_recipient AS payment_to_address,\n CASE\n WHEN ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n amount DESC\n ) = 1 THEN amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN item_recipient IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN sale_amount_raw_ = 0\n AND platform_fee_raw_ = 0 THEN amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n mao_consideration_all_joined\n WHERE\n item_type IN (\n 0,\n 1\n )\n AND event_index_tag IN (\n SELECT\n deals_tag\n FROM\n mao_consideration_all_joined\n WHERE\n deals_tag IS NOT NULL\n ) -- include deals only\n),\nmao_deals_sale_amount_agg AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n payment_from_address,\n payment_to_address,\n 1 AS deals_sale_rn,\n item_token_address AS currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw,\n SUM(platform_fee_raw_) AS platform_fee_raw,\n SUM(creator_fee_raw_) AS creator_fee_raw\n FROM\n mao_deals_sale_amount\n GROUP BY\n ALL\n),\nmao_deals_nft_transfers AS (\n SELECT\n *,\n IFF(\n item_recipient = offerer,\n recipient,\n offerer\n ) AS nft_from_address,\n item_recipient AS nft_to_address,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n INDEX ASC\n ) AS deals_nft_transfers_rn\n FROM\n mao_consideration_all_joined\n WHERE\n deals_tag IS NOT NULL\n),\nmao_deals_nft_transfers_sales AS (\n SELECT\n t.tx_hash,\n t.om_event_index_fill,\n orderhash,\n tx_hash_orderhash,\n event_index,\n INDEX,\n orderhash_within_event_index_rn,\n deals_tag,\n event_index_tag,\n nft_address_identifier_fill,\n item_token_address AS nft_address,\n identifier AS tokenid,\n item_type,\n IFF(item_type IN (2, 4), 'erc721', 'erc1155') AS nft_standard,\n IFF(\n nft_standard = 'erc1155',\n amount,\n NULL\n ) AS erc1155_value,\n nft_from_address AS seller_address,\n nft_to_address AS buyer_address,\n COALESCE(\n sale_amount_raw,\n 0\n ) AS sale_amount_raw,\n COALESCE(\n platform_fee_raw,\n 0\n ) AS platform_fee_raw,\n COALESCE(\n creator_fee_raw,\n 0\n ) AS creator_fee_raw,\n currency_address,\n decoded_log,\n offerer,\n recipient,\n _log_id,\n _inserted_timestamp\n FROM\n mao_deals_nft_transfers t\n LEFT JOIN mao_deals_sale_amount_agg s\n ON t.tx_hash = s.tx_hash\n AND t.om_event_index_fill = s.om_event_index_fill\n AND s.payment_from_address = t.nft_to_address\n AND s.payment_to_address = t.nft_from_address\n AND s.deals_sale_rn = t.deals_nft_transfers_rn\n),\nmao_nondeals_nft_transfers_sales AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n -- the event index for the ordermatched\n orderhash,\n tx_hash_orderhash,\n -- tx hash and orderhash\n event_index,\n -- event index for orderfulfilled\n INDEX,\n -- index for flattened for consideration\n orderhash_within_event_index_rn,\n -- index of orderhash within a single event index\n deals_tag,\n event_index_tag,\n -- gets the tx hash and event index to tag seaport deals\n A.nft_address_identifier_fill,\n item_token_address AS nft_address,\n identifier AS tokenid,\n item_type,\n IFF(item_type IN (2, 4), 'erc721', 'erc1155') AS nft_standard,\n IFF(\n nft_standard = 'erc1155',\n amount,\n NULL\n ) AS erc1155_value,\n item_recipient AS buyer_address,\n sale_receiver_address,\n IFF(\n item_recipient = offerer,\n recipient,\n offerer\n ) AS seller_address_temp,\n IFF(\n seller_address_temp = buyer_address,\n sale_receiver_address,\n seller_address_temp\n ) AS seller_address,\n offerer,\n recipient,\n decoded_log,\n currency_address,\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw,\n _log_id,\n _inserted_timestamp\n FROM\n mao_consideration_all_joined A\n LEFT JOIN mao_nondeals_sale_amount_receiver USING (\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill\n )\n WHERE\n deals_tag IS NULL\n AND item_type NOT IN (\n 0,\n 1\n )\n),\nmao_nondeals_nft_transfers_sales_fill AS (\n SELECT\n *,\n CASE\n WHEN sale_amount_raw IS NULL THEN COALESCE(LAG(sale_amount_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(sale_amount_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), 0)\n ELSE sale_amount_raw\n END AS sale_amount_raw_fill,\n CASE\n WHEN platform_fee_raw IS NULL THEN COALESCE(LAG(platform_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(platform_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), 0)\n ELSE platform_fee_raw\n END AS platform_fee_raw_fill,\n CASE\n WHEN creator_fee_raw IS NULL THEN COALESCE(LAG(creator_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(creator_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), 0)\n ELSE creator_fee_raw\n END AS creator_fee_raw_fill,\n CASE\n WHEN currency_address IS NULL THEN COALESCE(LAG(currency_address) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(currency_address) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), NULL)\n ELSE currency_address\n END AS currency_address_fill\n FROM\n mao_nondeals_nft_transfers_sales\n),\nmao_nondeals_offer_length_one AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n event_index,\n COUNT(1) AS offer_length_one -- counting how many nfts are in this sale batch , need to add with the following subquery\n FROM\n mao_nondeals_nft_transfers_sales\n WHERE\n sale_amount_raw IS NULL\n GROUP BY\n ALL\n),\nmao_nondeals_offer_length_two AS (\n -- measuring offer length for non batched\n SELECT\n tx_hash,\n om_event_index_fill,\n event_index,\n COUNT(1) AS offer_length_two -- counting how many nfts are in this sale batch , need to add with the following subquery\n FROM\n mao_nondeals_nft_transfers_sales\n WHERE\n sale_amount_raw IS NOT NULL\n GROUP BY\n ALL\n),\nmao_nondeals_offer_length AS (\n -- all sales are not grouped by event index, but grouped by the orderMatched index\n SELECT\n tx_hash,\n om_event_index_fill,\n event_index,\n offer_length_two + COALESCE(\n offer_length_one,\n 0\n ) AS offer_length --offer length for all\n FROM\n mao_nondeals_offer_length_two\n LEFT JOIN mao_nondeals_offer_length_one USING (\n tx_hash,\n om_event_index_fill,\n event_index\n )\n),\nmao_nondeals_nft_transfers_sales_fill_offer_length AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n -- the event index for the ordermatched\n orderhash,\n tx_hash_orderhash,\n -- tx hash and orderhash\n event_index,\n -- event index for orderfulfilled\n INDEX,\n -- index for flattened for consideration\n orderhash_within_event_index_rn,\n -- index of orderhash within a single event index\n deals_tag,\n event_index_tag,\n -- gets the tx hash and event index to tag seaport deals\n nft_address_identifier_fill,\n nft_address,\n item_type,\n tokenid,\n nft_standard,\n erc1155_value,\n buyer_address,\n seller_address,\n offerer,\n recipient,\n decoded_log,\n currency_address_fill AS currency_address,\n offer_length,\n sale_amount_raw_fill / offer_length AS sale_amount_raw,\n platform_fee_raw_fill / offer_length AS platform_fee_raw,\n creator_fee_raw_fill / offer_length AS creator_fee_raw,\n _log_id,\n _inserted_timestamp\n FROM\n mao_nondeals_nft_transfers_sales_fill\n INNER JOIN mao_nondeals_offer_length USING (\n tx_hash,\n om_event_index_fill,\n event_index\n )\n),\nmao_combined_base AS (\n -- includes both deals and nondeals\n SELECT\n tx_hash,\n om_event_index_fill,\n IFF(\n decoded_log :consideration [0] :itemType :: INT IN (\n 0,\n 1\n ),\n 'sale',\n 'bid_won'\n ) AS event_type,\n IFF(\n event_type = 'sale',\n 'mao_deals_buy',\n 'mao_deals_oa'\n ) AS category,\n orderhash,\n tx_hash_orderhash,\n event_index,\n INDEX,\n orderhash_within_event_index_rn,\n deals_tag,\n event_index_tag,\n nft_address_identifier_fill,\n nft_address,\n item_type,\n tokenid,\n nft_standard,\n erc1155_value,\n seller_address,\n buyer_address,\n currency_address,\n 1 AS offer_length,\n -- deals with always have 1 since we'll not be dividing the sale amount with number of nfts exchanged since nfts are also used as part of the offer\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n sale_amount_raw + total_fees_raw AS total_price_raw,\n offerer,\n recipient,\n decoded_log,\n _log_id,\n _inserted_timestamp\n FROM\n mao_deals_nft_transfers_sales\n UNION ALL\n SELECT\n tx_hash,\n om_event_index_fill,\n -- the event index for the ordermatched\n IFF(\n decoded_log :consideration [0] :itemType :: INT IN (\n 0,\n 1\n ),\n 'sale',\n 'bid_won'\n ) AS event_type,\n IFF(\n event_type = 'sale',\n 'mao_nondeals_buy',\n 'mao_nondeals_oa'\n ) AS category,\n orderhash,\n tx_hash_orderhash,\n event_index,\n INDEX,\n orderhash_within_event_index_rn,\n deals_tag,\n event_index_tag,\n nft_address_identifier_fill,\n nft_address,\n item_type,\n tokenid,\n nft_standard,\n erc1155_value,\n seller_address,\n buyer_address,\n currency_address,\n offer_length,\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n sale_amount_raw + total_fees_raw AS total_price_raw,\n offerer,\n recipient,\n decoded_log,\n _log_id,\n _inserted_timestamp\n FROM\n mao_nondeals_nft_transfers_sales_fill_offer_length\n),\nbase_sales_buy_and_offer AS (\n -- this part combines OrderFulfilled subqueries with OrdersMatched (mao)\n SELECT\n tx_hash,\n 'fulfil_buy' AS category,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n NULL AS seller_address_temp,\n NULL AS buyer_address_temp,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_final\n UNION ALL\n SELECT\n tx_hash,\n 'fulfil_oa' AS category,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n NULL AS seller_address_temp,\n NULL AS buyer_address_temp,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted_final\n UNION ALL\n SELECT\n tx_hash,\n category,\n event_index,\n '0x0000000000000068f116a894984e2db1123eb395' AS contract_address,\n 'OrderFulfilled' AS event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n CASE\n WHEN recipient = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n IFF(\n event_type = 'sale',\n 'buy',\n 'offer_accepted'\n ) AS trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_log :zone :: STRING AS ZONE,\n item_type AS tx_type,\n item_type AS token_type,\n nft_address AS nft_address_temp,\n tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_log,\n decoded_log :consideration AS consideration,\n decoded_log :offer AS offer,\n seller_address AS seller_address_temp,\n buyer_address AS buyer_address_temp,\n _log_id,\n _inserted_timestamp\n FROM\n mao_combined_base\n),\ntx_data AS (\n SELECT\n tx_hash,\n block_timestamp,\n block_number,\n from_address,\n to_address,\n origin_function_signature,\n tx_fee,\n input_data\n FROM\n {{ ref('core__fact_transactions') }}\n WHERE\n block_timestamp :: DATE >= '2024-03-15'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nnft_transfer_operator AS (\n SELECT\n tx_hash,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS nft_address_from_transfers,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS nft_address_temp,\n --or operator_address\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS offerer,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: STRING AS tokenid,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS erc1155_value\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n block_timestamp :: DATE >= '2024-03-15'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n AND topics [0] :: STRING IN (\n '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62',\n '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nfinal_seaport AS (\n SELECT\n t.block_number,\n t.block_timestamp,\n s.tx_hash,\n category,\n s.event_index,\n s.contract_address AS platform_address,\n 'opensea' AS platform_name,\n 'seaport_1_6' AS platform_exchange_version,\n s.event_name,\n offer_length,\n IFF(category IN ('fulfil_oa', 'fulfil_buy'), offerer, seller_address_temp) AS seller_address,\n orderHash,\n IFF(category IN ('fulfil_oa', 'fulfil_buy'), recipient, buyer_address_temp) AS buyer_address,\n sale_category,\n trade_type,\n CASE\n WHEN trade_type = 'buy' THEN 'sale'\n WHEN trade_type = 'offer_accepted' THEN 'bid_won'\n END AS event_type,\n is_price_estimated,\n ZONE,\n tx_type,\n s.token_type,\n s.nft_address_temp,\n CASE\n WHEN nft_address_from_transfers IS NOT NULL THEN nft_address_from_transfers\n ELSE s.nft_address_temp\n END AS nft_address,\n s.tokenId,\n s.erc1155_value,\n s.currency_address,\n total_sale_amount_raw AS total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n t.tx_fee,\n t.from_address AS origin_from_address,\n t.to_address AS origin_to_address,\n t.origin_function_signature,\n decoded_output,\n consideration,\n offer,\n input_data,\n CONCAT(\n nft_address,\n '-',\n s.tokenId,\n '-',\n platform_exchange_version,\n '-',\n _log_id\n ) AS nft_log_id,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_and_offer s\n INNER JOIN tx_data t USING (tx_hash)\n LEFT JOIN nft_transfer_operator o USING (\n tx_hash,\n nft_address_temp,\n tokenid,\n recipient\n ) qualify(ROW_NUMBER() over(PARTITION BY nft_log_id\n ORDER BY\n _inserted_timestamp DESC)) = 1\n)\nSELECT\n *\nFROM\n final_seaport", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_transactions"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.sql", "compiled": true, "compiled_code": "\n\nWITH seaport_fees_wallet AS (\n\n SELECT\n *\n FROM\n (\n VALUES\n ('0x0000a26b00c1f0df003000390027140000faa719'),\n ('0x8de9c5a032463c561423387a9648c5c7bcc5bc90'),\n ('0x5b3256965e7c3cf26e11fcaf296dfc8807c01073')\n ) t (addresses)\n),\nraw_decoded_logs AS (\n SELECT\n *,\n decoded_log :orderHash :: STRING AS orderhash,\n tx_hash || '-' || decoded_log :orderHash AS tx_hash_orderhash,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.ez_decoded_event_logs\n WHERE\n block_timestamp :: DATE >= '2024-03-15'\n AND contract_address = '0x0000000000000068f116a894984e2db1123eb395'\n AND event_name IN (\n 'OrderFulfilled',\n 'OrdersMatched'\n )\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.seaport_1_6_sales\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n\n),\nraw_logs AS (\n SELECT\n *,\n IFF(\n topics [0] :: STRING IN (\n '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n ),\n 1,\n NULL\n ) AS om_event_index_raw,\n IFF(\n topics [0] :: STRING NOT IN (\n '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n ),\n SUBSTRING(\n DATA,\n 1,\n 66\n ),\n NULL\n ) AS order_hash,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n block_timestamp :: DATE >= '2024-03-15'\n AND contract_address = '0x0000000000000068f116a894984e2db1123eb395'\n AND topics [0] :: STRING IN (\n '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7',\n -- ordersMatched\n '0x9d9af8e38d66c62e2c12f0225249fd9d721c54b83f48d9352c97c6cacdcb6f31' -- orderFulfilled\n )\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.seaport_1_6_sales\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\nraw_logs_event_index_fill AS (\n SELECT\n *,\n IFF(\n om_event_index_raw IS NULL,\n NULL,\n SUM(om_event_index_raw) over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n )\n ) AS om_event_index\n FROM\n raw_logs\n),\nmao_orderhash AS (\n -- this helps us determine which orderhashes belong to OrderMatched as opposed to OrderFulfilled\n SELECT\n tx_hash,\n event_index,\n om_event_index,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented,\n utils.udf_hex_to_int(\n segmented [0] :: STRING\n ) / 32 AS length_index,\n utils.udf_hex_to_int(\n segmented [length_index] :: STRING\n ) AS orders_length,\n INDEX,\n '0x' || VALUE :: STRING AS orderhash,\n tx_hash || '-' || orderhash AS tx_hash_orderhash\n FROM\n raw_logs_event_index_fill,\n LATERAL FLATTEN(\n input => segmented\n )\n WHERE\n INDEX BETWEEN (\n length_index + 1\n )\n AND (\n orders_length + 1\n )\n AND topics [0] :: STRING = '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n),\n-- this big section below is for OrderFulfilled\ndecoded AS (\n SELECT\n tx_hash,\n decoded_log,\n event_index,\n full_decoded_log,\n CONCAT(\n tx_hash,\n '-',\n decoded_log :orderHash :: STRING\n ) AS tx_hash_orderhash,\n _log_id,\n _inserted_timestamp,\n LOWER(\n full_decoded_log :address :: STRING\n ) AS contract_address,\n full_decoded_log :name :: STRING AS event_name,\n CASE\n WHEN full_decoded_log :data [4] :value [0] [0] IN (\n 2,\n 3\n ) THEN 'buy'\n WHEN full_decoded_log :data [4] :value [0] [0] IN (1) THEN 'offer_accepted'\n ELSE NULL\n END AS trade_type\n FROM\n raw_decoded_logs\n WHERE\n event_name = 'OrderFulfilled'\n AND tx_hash_orderhash NOT IN (\n SELECT\n tx_hash_orderhash\n FROM\n mao_orderhash\n )\n),\noffer_length_count_buy AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [4] :value))\n WHERE\n trade_type = 'buy'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n),\noffer_length_count_offer AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [5] :value))\n WHERE\n trade_type = 'offer_accepted'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n),\nflat_raw AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_decoded_log :data AS full_data,\n _log_id,\n _inserted_timestamp,\n OBJECT_AGG(\n VALUE :name,\n VALUE :value\n ) AS decoded_output\n FROM\n decoded,\n LATERAL FLATTEN(\n input => full_decoded_log :data\n ) f\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type IS NOT NULL\n GROUP BY\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp\n),\nflat AS (\n SELECT\n r.tx_hash,\n r.event_index,\n contract_address,\n event_name,\n COALESCE (\n b.offer_length_raw,\n o.offer_length_raw,\n NULL\n ) AS offer_length,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp,\n decoded_output\n FROM\n flat_raw r\n LEFT JOIN offer_length_count_buy b\n ON r.tx_hash = b.tx_hash\n AND r.event_index = b.event_index\n LEFT JOIN offer_length_count_offer o\n ON r.tx_hash = o.tx_hash\n AND r.event_index = o.event_index\n WHERE\n offer_length IS NOT NULL\n),\nfiltered_private_offer_tx AS (\n SELECT\n tx_hash\n FROM\n flat\n WHERE\n trade_type = 'offer_accepted'\n AND full_data [3] :value :: STRING = '0x0000000000000000000000000000000000000000'\n),\nprivate_offer_tx_flat AS (\n SELECT\n tx_hash,\n ARRAY_AGG (\n CASE\n WHEN trade_type = 'buy' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_offerer,\n ARRAY_AGG(\n CASE\n WHEN trade_type = 'offer_accepted' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_recipient --(buyer) or receiver of the NFT\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n GROUP BY\n tx_hash\n),\nprivate_offer_tx_flat_null_offerer AS (\n -- mainly transfers via opensea as a result of a phishing scam)\n SELECT\n tx_hash,\n full_data [1] :value :: STRING AS private_seller -- person whose account is compromised\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat\n WHERE\n private_offerer IS NULL\n )\n AND trade_type = 'offer_accepted'\n),\nprivate_offer_tx_offerer_combined AS (\n SELECT\n t.tx_hash,\n t.private_offerer,\n t.private_recipient AS recipient_from_private_tx,\n n.private_seller,\n CASE\n WHEN t.private_offerer IS NULL THEN n.private_seller\n ELSE t.private_offerer\n END AS offerer_from_private_tx\n FROM\n private_offer_tx_flat t\n LEFT JOIN private_offer_tx_flat_null_offerer n\n ON t.tx_hash = n.tx_hash\n),\nbase_sales_buy AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n --seller\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n -- buyer\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n ) -- AND tx_type IS NOT NULL ; null tx type would mean that there aren't any considerations. The nft is transferred without asking for anything in exchange for it\n),\nbase_sales_buy_null_values AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND tx_type IS NULL\n),\nbase_sales_buy_public_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_public_nft_transfers_null_values AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_null_values\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_public_nft_transfers_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers_null_values\n),\nbase_sales_buy_private_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] :: STRING AS private_sale_recipient\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'private'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n),\nbase_sales_buy_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN first_flatten_index = 0 THEN raw_amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_buy_sale_amount_filter\n),\nbase_sales_buy_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw_,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_buy_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n),\nbase_sales_buy_sale_amount_null_values AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy_null_values\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_sale_amount_filter\n )\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_type IS NULL\n),\nbase_sales_buy_sale_amount_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_sale_amount_null_values\n),\nbase_sales_buy_combined AS (\n SELECT\n *\n FROM\n base_sales_buy\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_null_values\n),\nbase_sales_buy_final_public AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n recipient_temp AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_public_nft_transfers_combined n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n),\nbase_sales_buy_final_private AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n private_sale_recipient AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_private_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n),\nbase_sales_buy_final AS (\n SELECT\n *\n FROM\n base_sales_buy_final_public\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_final_private\n),\nbase_sales_offer_accepted AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :recipient :: STRING AS offerer_temp,\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :offerer :: STRING AS recipient_temp,\n CASE\n WHEN offerer_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output :offer [0] [3] :: INT / offer_length AS total_sale_amount_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled',\n 'OrdersMatched'\n )\n AND trade_type = 'offer_accepted'\n AND tx_type IS NOT NULL\n AND tx_hash IS NOT NULL\n),\nbase_sales_offer_accepted_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] AS private_recipient_from_consideration\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n),\nbase_sales_offer_accepted_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n),\nbase_sales_offer_accepted_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN address_list NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_sale_amount_filter\n),\nbase_sales_offer_accepted_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n currency_address,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n),\nbase_sales_offer_accepted_no_fees_tx AS (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_sale_amount_filter\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n),\nbase_sales_offer_accepted_no_fees_amount AS (\n SELECT\n tx_hash,\n event_index,\n ARRAY_AGG(\n t.value\n ) AS sale_values,\n sale_values [0] [1] :: STRING AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_no_fees_tx\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n GROUP BY\n tx_hash,\n event_index\n),\nbase_sales_offer_accepted_phishing_scam_amount AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n NULL AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_nft_transfers\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n),\nbase_sales_offer_accepted_sale_and_no_fees AS (\n SELECT\n *\n FROM\n base_sales_offer_accepted_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_no_fees_amount\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_phishing_scam_amount\n),\nbase_sales_offer_accepted_final AS (\n SELECT\n b.tx_hash,\n b.event_index,\n contract_address,\n event_name,\n offer_length,\n CASE\n WHEN sale_category = 'public' THEN offerer_temp\n ELSE COALESCE (\n private_offerer,\n offerer_from_private_tx\n )\n END AS offerer,\n orderHash,\n CASE\n WHEN sale_category = 'public' THEN recipient_temp\n WHEN sale_category = 'private'\n AND private_offerer IS NULL THEN private_recipient_from_consideration\n ELSE recipient_from_private_tx\n END AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address,\n tokenid,\n CASE\n WHEN token_type = '3' THEN number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n CASE\n WHEN private_offerer IS NULL\n AND private_seller IS NOT NULL THEN 0\n ELSE decoded_output :offer [0] [3] :: INT / offer_length\n END AS total_sale_amount_raw,\n platform_fee_raw_ :: INT / offer_length AS platform_fee_raw,\n creator_fee_raw_ :: INT / offer_length AS creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted b\n INNER JOIN base_sales_offer_accepted_sale_and_no_fees s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_offer_accepted_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n LEFT OUTER JOIN private_offer_tx_offerer_combined p\n ON b.tx_hash = p.tx_hash\n WHERE\n nft_address IS NOT NULL qualify ROW_NUMBER() over (\n PARTITION BY b.tx_hash,\n b.event_index,\n nft_address,\n tokenid,\n _log_id\n ORDER BY\n _inserted_timestamp ASC\n ) = 1\n),\n-- the new matchOrders logic starts here\norderhash_grouping_raw AS (\n SELECT\n tx_hash,\n event_index,\n order_hash,\n om_event_index,\n -- shows the order of multiple ordersmatched event in one tx\n om_event_index_raw,\n CASE\n WHEN om_event_index IS NULL THEN LEAD(om_event_index) ignore nulls over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n )\n ELSE NULL\n END AS om_event_index_fill -- shows all orderhashes and their grouping\n FROM\n raw_logs_event_index_fill\n),\norderhash_grouping_fill AS (\n SELECT\n tx_hash,\n event_index,\n order_hash,\n CONCAT(\n tx_hash,\n '-',\n order_hash\n ) AS tx_hash_orderhash,\n om_event_index,\n om_event_index_fill,\n om_event_index_raw,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n event_index ASC\n ) AS orderhash_order_within_group -- orderhash order within an orderhash group\n FROM\n orderhash_grouping_raw\n),\n-- item type references:\n-- 0 - eth\n-- 1 - erc20\n-- 2 - erc721\n-- 3 - erc1155\n-- 4 - erc721 w criteria,\n-- 5 - erc1155 w criteria\nmao_consideration_all AS (\n SELECT\n tx_hash,\n event_index,\n decoded_log,\n INDEX,\n orderhash,\n tx_hash_orderhash,\n decoded_log :offerer :: STRING AS offerer,\n decoded_log :recipient :: STRING AS recipient,\n VALUE,\n VALUE :amount :: INT AS amount,\n VALUE :identifier :: STRING AS identifier,\n VALUE :itemType :: INT AS item_type,\n VALUE :recipient :: STRING AS item_recipient,\n VALUE :token :: STRING AS item_token_address,\n decoded_log :offer [0] :amount :: INT AS offer_amount,\n decoded_log :offer [0] :identifier :: STRING AS offer_identifier,\n decoded_log :offer [0] :itemType :: INT AS offer_item_type,\n decoded_log :offer [0] :token :: STRING AS offer_item_token_address,\n IFF(item_type NOT IN (0, 1), CONCAT(item_token_address, '-', identifier, '-', amount), CONCAT(offer_item_token_address, '-', offer_identifier, '-', offer_amount)) AS nft_address_identifier,\n IFF(item_type NOT IN (0, 1), nft_address_identifier, NULL) AS nft_address_identifier_null,\n CASE\n WHEN item_type NOT IN (\n 0,\n 1\n ) THEN nft_address_identifier\n WHEN item_type IN (\n 0,\n 1\n )\n AND offer_item_type IN (\n 0,\n 1\n ) THEN LAG(nft_address_identifier_null) ignore nulls over (\n PARTITION BY tx_hash,\n event_index\n ORDER BY\n INDEX ASC\n )\n WHEN item_type IN (\n 0,\n 1\n )\n AND offer_item_type NOT IN (\n 0,\n 1\n ) THEN nft_address_identifier\n ELSE nft_address_identifier\n END AS nft_address_identifier_fill_raw,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n event_index\n ORDER BY\n INDEX ASC\n ) AS orderhash_within_event_index_rn,\n _log_id,\n _inserted_timestamp\n FROM\n raw_decoded_logs,\n LATERAL FLATTEN (\n input => decoded_log :consideration\n )\n WHERE\n event_name = 'OrderFulfilled'\n AND tx_hash_orderhash IN (\n SELECT\n tx_hash_orderhash\n FROM\n mao_orderhash\n )\n),\nmao_consideration_all_joined AS (\n SELECT\n *,\n CASE\n WHEN nft_address_identifier_null IS NULL\n AND offerer = recipient THEN LAG(nft_address_identifier_null) ignore nulls over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n event_index,\n INDEX ASC\n )\n ELSE nft_address_identifier_fill_raw\n END AS nft_address_identifier_fill,\n IFF(item_type NOT IN (0, 1)\n AND offer_item_type NOT IN (0, 1)\n AND decoded_log :consideration [0] :itemType :: INT NOT IN (0, 1), CONCAT(tx_hash_orderhash, '-', event_index), NULL) AS deals_tag,\n CONCAT(\n tx_hash_orderhash,\n '-',\n event_index\n ) AS event_index_tag -- tagging for deals tag\n FROM\n mao_consideration_all\n INNER JOIN orderhash_grouping_fill USING (\n tx_hash,\n tx_hash_orderhash,\n event_index\n )\n),\nmao_consideration_sale_amounts AS (\n SELECT\n tx_hash,\n orderhash,\n tx_hash_orderhash,\n orderhash_within_event_index_rn,\n om_event_index_fill,\n deals_tag,\n event_index_tag,\n event_index,\n INDEX,\n amount,\n identifier,\n item_type,\n item_token_address,\n item_token_address AS currency_address,\n item_recipient,\n nft_address_identifier_fill,\n CASE\n WHEN amount > 0\n AND ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill\n ORDER BY\n amount DESC\n ) = 1 THEN amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN item_recipient IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN sale_amount_raw_ = 0\n AND platform_fee_raw_ = 0 THEN amount\n ELSE 0\n END AS creator_fee_raw_,\n IFF(\n sale_amount_raw_ > 0,\n item_recipient,\n NULL\n ) AS sale_receiver_address\n FROM\n mao_consideration_all_joined\n WHERE\n item_type IN (\n 0,\n 1\n )\n AND nft_address_identifier_fill IS NOT NULL\n AND event_index_tag NOT IN (\n SELECT\n deals_tag\n FROM\n mao_consideration_all_joined\n WHERE\n deals_tag IS NOT NULL\n ) -- exclude deals\n),\nmao_nondeals_sale_amount AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill,\n currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw,\n SUM(platform_fee_raw_) AS platform_fee_raw,\n SUM(creator_fee_raw_) AS creator_fee_raw\n FROM\n mao_consideration_sale_amounts\n GROUP BY\n ALL\n),\nmao_nondeals_sale_amount_receiver AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill,\n sale_receiver_address,\n currency_address,\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw\n FROM\n mao_nondeals_sale_amount\n INNER JOIN mao_consideration_sale_amounts s USING (\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill,\n currency_address\n )\n WHERE\n s.sale_receiver_address IS NOT NULL\n),\nmao_deals_sale_amount AS (\n SELECT\n *,\n IFF(\n item_recipient = offerer,\n recipient,\n offerer\n ) AS payment_from_address,\n item_recipient AS payment_to_address,\n CASE\n WHEN ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n amount DESC\n ) = 1 THEN amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN item_recipient IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN sale_amount_raw_ = 0\n AND platform_fee_raw_ = 0 THEN amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n mao_consideration_all_joined\n WHERE\n item_type IN (\n 0,\n 1\n )\n AND event_index_tag IN (\n SELECT\n deals_tag\n FROM\n mao_consideration_all_joined\n WHERE\n deals_tag IS NOT NULL\n ) -- include deals only\n),\nmao_deals_sale_amount_agg AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n payment_from_address,\n payment_to_address,\n 1 AS deals_sale_rn,\n item_token_address AS currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw,\n SUM(platform_fee_raw_) AS platform_fee_raw,\n SUM(creator_fee_raw_) AS creator_fee_raw\n FROM\n mao_deals_sale_amount\n GROUP BY\n ALL\n),\nmao_deals_nft_transfers AS (\n SELECT\n *,\n IFF(\n item_recipient = offerer,\n recipient,\n offerer\n ) AS nft_from_address,\n item_recipient AS nft_to_address,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n INDEX ASC\n ) AS deals_nft_transfers_rn\n FROM\n mao_consideration_all_joined\n WHERE\n deals_tag IS NOT NULL\n),\nmao_deals_nft_transfers_sales AS (\n SELECT\n t.tx_hash,\n t.om_event_index_fill,\n orderhash,\n tx_hash_orderhash,\n event_index,\n INDEX,\n orderhash_within_event_index_rn,\n deals_tag,\n event_index_tag,\n nft_address_identifier_fill,\n item_token_address AS nft_address,\n identifier AS tokenid,\n item_type,\n IFF(item_type IN (2, 4), 'erc721', 'erc1155') AS nft_standard,\n IFF(\n nft_standard = 'erc1155',\n amount,\n NULL\n ) AS erc1155_value,\n nft_from_address AS seller_address,\n nft_to_address AS buyer_address,\n COALESCE(\n sale_amount_raw,\n 0\n ) AS sale_amount_raw,\n COALESCE(\n platform_fee_raw,\n 0\n ) AS platform_fee_raw,\n COALESCE(\n creator_fee_raw,\n 0\n ) AS creator_fee_raw,\n currency_address,\n decoded_log,\n offerer,\n recipient,\n _log_id,\n _inserted_timestamp\n FROM\n mao_deals_nft_transfers t\n LEFT JOIN mao_deals_sale_amount_agg s\n ON t.tx_hash = s.tx_hash\n AND t.om_event_index_fill = s.om_event_index_fill\n AND s.payment_from_address = t.nft_to_address\n AND s.payment_to_address = t.nft_from_address\n AND s.deals_sale_rn = t.deals_nft_transfers_rn\n),\nmao_nondeals_nft_transfers_sales AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n -- the event index for the ordermatched\n orderhash,\n tx_hash_orderhash,\n -- tx hash and orderhash\n event_index,\n -- event index for orderfulfilled\n INDEX,\n -- index for flattened for consideration\n orderhash_within_event_index_rn,\n -- index of orderhash within a single event index\n deals_tag,\n event_index_tag,\n -- gets the tx hash and event index to tag seaport deals\n A.nft_address_identifier_fill,\n item_token_address AS nft_address,\n identifier AS tokenid,\n item_type,\n IFF(item_type IN (2, 4), 'erc721', 'erc1155') AS nft_standard,\n IFF(\n nft_standard = 'erc1155',\n amount,\n NULL\n ) AS erc1155_value,\n item_recipient AS buyer_address,\n sale_receiver_address,\n IFF(\n item_recipient = offerer,\n recipient,\n offerer\n ) AS seller_address_temp,\n IFF(\n seller_address_temp = buyer_address,\n sale_receiver_address,\n seller_address_temp\n ) AS seller_address,\n offerer,\n recipient,\n decoded_log,\n currency_address,\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw,\n _log_id,\n _inserted_timestamp\n FROM\n mao_consideration_all_joined A\n LEFT JOIN mao_nondeals_sale_amount_receiver USING (\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill\n )\n WHERE\n deals_tag IS NULL\n AND item_type NOT IN (\n 0,\n 1\n )\n),\nmao_nondeals_nft_transfers_sales_fill AS (\n SELECT\n *,\n CASE\n WHEN sale_amount_raw IS NULL THEN COALESCE(LAG(sale_amount_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(sale_amount_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), 0)\n ELSE sale_amount_raw\n END AS sale_amount_raw_fill,\n CASE\n WHEN platform_fee_raw IS NULL THEN COALESCE(LAG(platform_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(platform_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), 0)\n ELSE platform_fee_raw\n END AS platform_fee_raw_fill,\n CASE\n WHEN creator_fee_raw IS NULL THEN COALESCE(LAG(creator_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(creator_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), 0)\n ELSE creator_fee_raw\n END AS creator_fee_raw_fill,\n CASE\n WHEN currency_address IS NULL THEN COALESCE(LAG(currency_address) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(currency_address) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), NULL)\n ELSE currency_address\n END AS currency_address_fill\n FROM\n mao_nondeals_nft_transfers_sales\n),\nmao_nondeals_offer_length_one AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n event_index,\n COUNT(1) AS offer_length_one -- counting how many nfts are in this sale batch , need to add with the following subquery\n FROM\n mao_nondeals_nft_transfers_sales\n WHERE\n sale_amount_raw IS NULL\n GROUP BY\n ALL\n),\nmao_nondeals_offer_length_two AS (\n -- measuring offer length for non batched\n SELECT\n tx_hash,\n om_event_index_fill,\n event_index,\n COUNT(1) AS offer_length_two -- counting how many nfts are in this sale batch , need to add with the following subquery\n FROM\n mao_nondeals_nft_transfers_sales\n WHERE\n sale_amount_raw IS NOT NULL\n GROUP BY\n ALL\n),\nmao_nondeals_offer_length AS (\n -- all sales are not grouped by event index, but grouped by the orderMatched index\n SELECT\n tx_hash,\n om_event_index_fill,\n event_index,\n offer_length_two + COALESCE(\n offer_length_one,\n 0\n ) AS offer_length --offer length for all\n FROM\n mao_nondeals_offer_length_two\n LEFT JOIN mao_nondeals_offer_length_one USING (\n tx_hash,\n om_event_index_fill,\n event_index\n )\n),\nmao_nondeals_nft_transfers_sales_fill_offer_length AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n -- the event index for the ordermatched\n orderhash,\n tx_hash_orderhash,\n -- tx hash and orderhash\n event_index,\n -- event index for orderfulfilled\n INDEX,\n -- index for flattened for consideration\n orderhash_within_event_index_rn,\n -- index of orderhash within a single event index\n deals_tag,\n event_index_tag,\n -- gets the tx hash and event index to tag seaport deals\n nft_address_identifier_fill,\n nft_address,\n item_type,\n tokenid,\n nft_standard,\n erc1155_value,\n buyer_address,\n seller_address,\n offerer,\n recipient,\n decoded_log,\n currency_address_fill AS currency_address,\n offer_length,\n sale_amount_raw_fill / offer_length AS sale_amount_raw,\n platform_fee_raw_fill / offer_length AS platform_fee_raw,\n creator_fee_raw_fill / offer_length AS creator_fee_raw,\n _log_id,\n _inserted_timestamp\n FROM\n mao_nondeals_nft_transfers_sales_fill\n INNER JOIN mao_nondeals_offer_length USING (\n tx_hash,\n om_event_index_fill,\n event_index\n )\n),\nmao_combined_base AS (\n -- includes both deals and nondeals\n SELECT\n tx_hash,\n om_event_index_fill,\n IFF(\n decoded_log :consideration [0] :itemType :: INT IN (\n 0,\n 1\n ),\n 'sale',\n 'bid_won'\n ) AS event_type,\n IFF(\n event_type = 'sale',\n 'mao_deals_buy',\n 'mao_deals_oa'\n ) AS category,\n orderhash,\n tx_hash_orderhash,\n event_index,\n INDEX,\n orderhash_within_event_index_rn,\n deals_tag,\n event_index_tag,\n nft_address_identifier_fill,\n nft_address,\n item_type,\n tokenid,\n nft_standard,\n erc1155_value,\n seller_address,\n buyer_address,\n currency_address,\n 1 AS offer_length,\n -- deals with always have 1 since we'll not be dividing the sale amount with number of nfts exchanged since nfts are also used as part of the offer\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n sale_amount_raw + total_fees_raw AS total_price_raw,\n offerer,\n recipient,\n decoded_log,\n _log_id,\n _inserted_timestamp\n FROM\n mao_deals_nft_transfers_sales\n UNION ALL\n SELECT\n tx_hash,\n om_event_index_fill,\n -- the event index for the ordermatched\n IFF(\n decoded_log :consideration [0] :itemType :: INT IN (\n 0,\n 1\n ),\n 'sale',\n 'bid_won'\n ) AS event_type,\n IFF(\n event_type = 'sale',\n 'mao_nondeals_buy',\n 'mao_nondeals_oa'\n ) AS category,\n orderhash,\n tx_hash_orderhash,\n event_index,\n INDEX,\n orderhash_within_event_index_rn,\n deals_tag,\n event_index_tag,\n nft_address_identifier_fill,\n nft_address,\n item_type,\n tokenid,\n nft_standard,\n erc1155_value,\n seller_address,\n buyer_address,\n currency_address,\n offer_length,\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n sale_amount_raw + total_fees_raw AS total_price_raw,\n offerer,\n recipient,\n decoded_log,\n _log_id,\n _inserted_timestamp\n FROM\n mao_nondeals_nft_transfers_sales_fill_offer_length\n),\nbase_sales_buy_and_offer AS (\n -- this part combines OrderFulfilled subqueries with OrdersMatched (mao)\n SELECT\n tx_hash,\n 'fulfil_buy' AS category,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n NULL AS seller_address_temp,\n NULL AS buyer_address_temp,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_final\n UNION ALL\n SELECT\n tx_hash,\n 'fulfil_oa' AS category,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n NULL AS seller_address_temp,\n NULL AS buyer_address_temp,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted_final\n UNION ALL\n SELECT\n tx_hash,\n category,\n event_index,\n '0x0000000000000068f116a894984e2db1123eb395' AS contract_address,\n 'OrderFulfilled' AS event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n CASE\n WHEN recipient = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n IFF(\n event_type = 'sale',\n 'buy',\n 'offer_accepted'\n ) AS trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_log :zone :: STRING AS ZONE,\n item_type AS tx_type,\n item_type AS token_type,\n nft_address AS nft_address_temp,\n tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_log,\n decoded_log :consideration AS consideration,\n decoded_log :offer AS offer,\n seller_address AS seller_address_temp,\n buyer_address AS buyer_address_temp,\n _log_id,\n _inserted_timestamp\n FROM\n mao_combined_base\n),\ntx_data AS (\n SELECT\n tx_hash,\n block_timestamp,\n block_number,\n from_address,\n to_address,\n origin_function_signature,\n tx_fee,\n input_data\n FROM\n polygon.core.fact_transactions\n WHERE\n block_timestamp :: DATE >= '2024-03-15'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.seaport_1_6_sales\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\nnft_transfer_operator AS (\n SELECT\n tx_hash,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS nft_address_from_transfers,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS nft_address_temp,\n --or operator_address\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS offerer,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: STRING AS tokenid,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS erc1155_value\n FROM\n polygon.core.fact_event_logs\n WHERE\n block_timestamp :: DATE >= '2024-03-15'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n AND topics [0] :: STRING IN (\n '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62',\n '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb'\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.seaport_1_6_sales\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\nfinal_seaport AS (\n SELECT\n t.block_number,\n t.block_timestamp,\n s.tx_hash,\n category,\n s.event_index,\n s.contract_address AS platform_address,\n 'opensea' AS platform_name,\n 'seaport_1_6' AS platform_exchange_version,\n s.event_name,\n offer_length,\n IFF(category IN ('fulfil_oa', 'fulfil_buy'), offerer, seller_address_temp) AS seller_address,\n orderHash,\n IFF(category IN ('fulfil_oa', 'fulfil_buy'), recipient, buyer_address_temp) AS buyer_address,\n sale_category,\n trade_type,\n CASE\n WHEN trade_type = 'buy' THEN 'sale'\n WHEN trade_type = 'offer_accepted' THEN 'bid_won'\n END AS event_type,\n is_price_estimated,\n ZONE,\n tx_type,\n s.token_type,\n s.nft_address_temp,\n CASE\n WHEN nft_address_from_transfers IS NOT NULL THEN nft_address_from_transfers\n ELSE s.nft_address_temp\n END AS nft_address,\n s.tokenId,\n s.erc1155_value,\n s.currency_address,\n total_sale_amount_raw AS total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n t.tx_fee,\n t.from_address AS origin_from_address,\n t.to_address AS origin_to_address,\n t.origin_function_signature,\n decoded_output,\n consideration,\n offer,\n input_data,\n CONCAT(\n nft_address,\n '-',\n s.tokenId,\n '-',\n platform_exchange_version,\n '-',\n _log_id\n ) AS nft_log_id,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_and_offer s\n INNER JOIN tx_data t USING (tx_hash)\n LEFT JOIN nft_transfer_operator o USING (\n tx_hash,\n nft_address_temp,\n tokenid,\n recipient\n ) qualify(ROW_NUMBER() over(PARTITION BY nft_log_id\n ORDER BY\n _inserted_timestamp DESC)) = 1\n)\nSELECT\n *\nFROM\n final_seaport", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.polygon_models.silver__aggregator_list": {"database": "polygon", "schema": "silver", "name": "silver__aggregator_list", "resource_type": "model", "package_name": "polygon_models", "path": "silver/NFT/sales/silver__aggregator_list.sql", "original_file_path": "models/silver/NFT/sales/silver__aggregator_list.sql", "unique_id": "model.polygon_models.silver__aggregator_list", "fqn": ["polygon_models", "silver", "NFT", "sales", "silver__aggregator_list"], "alias": "aggregator_list", "checksum": {"name": "sha256", "checksum": "a164d28cab0af791dfee73a78bfbe7b73964215ad239f06ff7e9cfdf70042ca7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "nft", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "aggregator_identifier", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "merge_update_columns": ["aggregator_identifier", "aggregator", "aggregator_type"]}, "tags": ["silver", "nft", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "aggregator_identifier", "merge_update_columns": ["aggregator_identifier", "aggregator", "aggregator_type"], "full_refresh": false, "tags": ["silver", "nft", "curated"]}, "created_at": 1764018294.415873, "relation_name": "polygon.silver.aggregator_list", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'aggregator_identifier',\n merge_update_columns = ['aggregator_identifier', 'aggregator', 'aggregator_type'],\n full_refresh = false,\n tags = ['silver','nft','curated']\n) }}\n\n\nWITH calldata_aggregators AS (\n SELECT\n *\n FROM\n (\n VALUES\n ('72db8c0b', 'Opensea Pro', 'calldata', '2024-03-07'),\n ('64617461', 'Rarible', 'calldata', '2022-08-23'),\n ('0e1c0c38', 'Magic Eden', 'calldata', '2024-03-07')\n ) t (aggregator_identifier, aggregator, aggregator_type, _inserted_timestamp)\n),\n\nplatform_routers as (\nSELECT\n *\n FROM\n (\n VALUES\n ('0x5e06c349a4a1b8dde8da31e0f167d1cb1d99967c', 'dew', 'router', '2024-03-07'),\n ('0x25956fd0a5fe281d921b1bb3499fc8d5efea6201', 'element', 'router', '2024-03-07')\n ) t (aggregator_identifier, aggregator, aggregator_type, _inserted_timestamp)\n),\n\ncombined as (\nSELECT * \nFROM\n calldata_aggregators\n\nUNION ALL \n\nSELECT *\nFROM\n platform_routers\n)\n\nSELECT \n aggregator_identifier,\n aggregator, \n aggregator_type,\n _inserted_timestamp\nFROM combined\n\nqualify row_number() over (partition by aggregator_identifier order by _inserted_timestamp desc ) = 1", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__aggregator_list.sql", "compiled": true, "compiled_code": "\n\n\nWITH calldata_aggregators AS (\n SELECT\n *\n FROM\n (\n VALUES\n ('72db8c0b', 'Opensea Pro', 'calldata', '2024-03-07'),\n ('64617461', 'Rarible', 'calldata', '2022-08-23'),\n ('0e1c0c38', 'Magic Eden', 'calldata', '2024-03-07')\n ) t (aggregator_identifier, aggregator, aggregator_type, _inserted_timestamp)\n),\n\nplatform_routers as (\nSELECT\n *\n FROM\n (\n VALUES\n ('0x5e06c349a4a1b8dde8da31e0f167d1cb1d99967c', 'dew', 'router', '2024-03-07'),\n ('0x25956fd0a5fe281d921b1bb3499fc8d5efea6201', 'element', 'router', '2024-03-07')\n ) t (aggregator_identifier, aggregator, aggregator_type, _inserted_timestamp)\n),\n\ncombined as (\nSELECT * \nFROM\n calldata_aggregators\n\nUNION ALL \n\nSELECT *\nFROM\n platform_routers\n)\n\nSELECT \n aggregator_identifier,\n aggregator, \n aggregator_type,\n _inserted_timestamp\nFROM combined\n\nqualify row_number() over (partition by aggregator_identifier order by _inserted_timestamp desc ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.polygon_models.silver__seaport_1_1_sales": {"database": "polygon", "schema": "silver", "name": "silver__seaport_1_1_sales", "resource_type": "model", "package_name": "polygon_models", "path": "silver/NFT/sales/silver__seaport_1_1_sales.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.sql", "unique_id": "model.polygon_models.silver__seaport_1_1_sales", "fqn": ["polygon_models", "silver", "NFT", "sales", "silver__seaport_1_1_sales"], "alias": "seaport_1_1_sales", "checksum": {"name": "sha256", "checksum": "ad7c09d994b9a4f33a31a822cb2d77338d76db99040eceeac27f647c6207d4bd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "nft", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "nft", "curated"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_ADDRESS": {"name": "PLATFORM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_NAME": {"name": "PLATFORM_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SELLER_ADDRESS": {"name": "SELLER_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BUYER_ADDRESS": {"name": "BUYER_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NFT_ADDRESS": {"name": "NFT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKENID": {"name": "TOKENID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CURRENCY_ADDRESS": {"name": "CURRENCY_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_PRICE_RAW": {"name": "TOTAL_PRICE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_FEES_RAW": {"name": "TOTAL_FEES_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_FEE_RAW": {"name": "PLATFORM_FEE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATOR_FEE_RAW": {"name": "CREATOR_FEE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_FEE": {"name": "TX_FEE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NFT_LOG_ID": {"name": "NFT_LOG_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_TYPE": {"name": "EVENT_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INPUT_DATA": {"name": "INPUT_DATA", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "nft", "curated"]}, "created_at": 1764018434.5345094, "relation_name": "polygon.silver.seaport_1_1_sales", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','nft','curated']\n) }}\n\nWITH seaport_fees_wallet AS (\n\n SELECT\n *\n FROM\n (\n VALUES\n ('0x0000a26b00c1f0df003000390027140000faa719'),\n ('0x8de9c5a032463c561423387a9648c5c7bcc5bc90'),\n ('0x5b3256965e7c3cf26e11fcaf296dfc8807c01073')\n ) t (addresses)\n),\nseaport_tx_table AS (\n SELECT\n block_timestamp,\n tx_hash\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n block_timestamp >= '2022-06-01'\n AND contract_address = '0x00000000006c3852cbef3e08e8df289169ede581'\n AND topics [0] = '0x9d9af8e38d66c62e2c12f0225249fd9d721c54b83f48d9352c97c6cacdcb6f31'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\ndecoded AS (\n SELECT\n tx_hash,\n decoded_log,\n event_index,\n full_decoded_log,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp AS _inserted_timestamp,\n LOWER(\n full_decoded_log :address :: STRING\n ) AS contract_address,\n full_decoded_log :name :: STRING AS event_name,\n CASE\n WHEN full_decoded_log :data [4] :value [0] [0] IN (\n 2,\n 3\n ) THEN 'buy'\n WHEN full_decoded_log :data [4] :value [0] [0] IN (1) THEN 'offer_accepted'\n ELSE NULL\n END AS trade_type\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n WHERE\n block_number >= 30000000\n AND contract_address = '0x00000000006c3852cbef3e08e8df289169ede581'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n seaport_tx_table\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n{% endif %}\n),\noffer_length_count_buy AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [4] :value))\n WHERE\n trade_type = 'buy'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n),\noffer_length_count_offer AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [5] :value))\n WHERE\n trade_type = 'offer_accepted'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n),\nflat_raw AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_decoded_log :data AS full_data,\n _log_id,\n _inserted_timestamp,\n OBJECT_AGG(\n VALUE :name,\n VALUE :value\n ) AS decoded_output\n FROM\n decoded,\n LATERAL FLATTEN(\n input => full_decoded_log :data\n ) f\n WHERE\n event_name = 'OrderFulfilled'\n AND trade_type IS NOT NULL\n GROUP BY\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp\n),\nflat AS (\n SELECT\n r.tx_hash,\n r.event_index,\n contract_address,\n event_name,\n COALESCE (\n b.offer_length_raw,\n o.offer_length_raw,\n NULL\n ) AS offer_length,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp,\n decoded_output\n FROM\n flat_raw r\n LEFT JOIN offer_length_count_buy b\n ON r.tx_hash = b.tx_hash\n AND r.event_index = b.event_index\n LEFT JOIN offer_length_count_offer o\n ON r.tx_hash = o.tx_hash\n AND r.event_index = o.event_index\n WHERE\n offer_length IS NOT NULL\n),\nfiltered_private_offer_tx AS (\n SELECT\n tx_hash\n FROM\n flat\n WHERE\n trade_type = 'offer_accepted'\n AND full_data [3] :value :: STRING = '0x0000000000000000000000000000000000000000'\n),\nprivate_offer_tx_flat AS (\n SELECT\n tx_hash,\n ARRAY_AGG (\n CASE\n WHEN trade_type = 'buy' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_offerer,\n ARRAY_AGG(\n CASE\n WHEN trade_type = 'offer_accepted' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_recipient --(buyer) or receiver of the NFT\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n GROUP BY\n tx_hash\n),\nprivate_offer_tx_flat_null_offerer AS (\n -- mainly transfers via opensea as a result of a phishing scam)\n SELECT\n tx_hash,\n full_data [1] :value :: STRING AS private_seller -- person whose account is compromised\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat\n WHERE\n private_offerer IS NULL\n )\n AND trade_type = 'offer_accepted'\n),\nprivate_offer_tx_offerer_combined AS (\n SELECT\n t.tx_hash,\n t.private_offerer,\n t.private_recipient AS recipient_from_private_tx,\n n.private_seller,\n CASE\n WHEN t.private_offerer IS NULL THEN n.private_seller\n ELSE t.private_offerer\n END AS offerer_from_private_tx\n FROM\n private_offer_tx_flat t\n LEFT JOIN private_offer_tx_flat_null_offerer n\n ON t.tx_hash = n.tx_hash\n),\nbase_sales_buy AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n --seller\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n -- buyer\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name = 'OrderFulfilled'\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n ) -- AND tx_type IS NOT NULL ; null tx type would mean that there aren't any considerations. The nft is transferred without asking for anything in exchange for it\n),\nbase_sales_buy_null_values AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n --seller\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n -- buyer\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name = 'OrderFulfilled'\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND tx_type IS NULL\n),\nbase_sales_buy_public_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_public_nft_transfers_null_values AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_null_values\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_public_nft_transfers_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers_null_values\n),\nbase_sales_buy_private_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] :: STRING AS private_sale_recipient\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'private'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n),\nbase_sales_buy_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN first_flatten_index = 0 THEN raw_amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list NOT IN (\n (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n )\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_buy_sale_amount_filter\n),\nbase_sales_buy_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw_,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_buy_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n),\nbase_sales_buy_sale_amount_null_values AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy_null_values\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_sale_amount_filter\n )\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_type IS NULL\n),\nbase_sales_buy_sale_amount_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_sale_amount_null_values\n),\nbase_sales_buy_combined AS (\n SELECT\n *\n FROM\n base_sales_buy\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_null_values\n),\nbase_sales_buy_final_public AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n recipient_temp AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_public_nft_transfers_combined n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n),\nbase_sales_buy_final_private AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n private_sale_recipient AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_private_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n),\nbase_sales_buy_final AS (\n SELECT\n *\n FROM\n base_sales_buy_final_public\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_final_private\n),\nbase_sales_offer_accepted AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :recipient :: STRING AS offerer_temp,\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :offerer :: STRING AS recipient_temp,\n CASE\n WHEN offerer_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output :offer [0] [3] :: INT / offer_length AS total_sale_amount_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name = 'OrderFulfilled'\n AND trade_type = 'offer_accepted'\n AND tx_type IS NOT NULL\n AND tx_hash IS NOT NULL\n),\nbase_sales_offer_accepted_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] AS private_recipient_from_consideration\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n),\nbase_sales_offer_accepted_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n),\nbase_sales_offer_accepted_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN address_list NOT IN (\n (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n )\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_sale_amount_filter\n),\nbase_sales_offer_accepted_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n currency_address,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n),\nbase_sales_offer_accepted_no_fees_tx AS (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_sale_amount_filter\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n),\nbase_sales_offer_accepted_no_fees_amount AS (\n SELECT\n tx_hash,\n event_index,\n ARRAY_AGG(\n t.value\n ) AS sale_values,\n sale_values [0] [1] :: STRING AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_no_fees_tx\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n GROUP BY\n tx_hash,\n event_index\n),\nbase_sales_offer_accepted_phishing_scam_amount AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n NULL AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_nft_transfers\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n),\nbase_sales_offer_accepted_sale_and_no_fees AS (\n SELECT\n *\n FROM\n base_sales_offer_accepted_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_no_fees_amount\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_phishing_scam_amount\n),\nbase_sales_offer_accepted_final AS (\n SELECT\n b.tx_hash,\n b.event_index,\n contract_address,\n event_name,\n offer_length,\n CASE\n WHEN sale_category = 'public' THEN offerer_temp\n ELSE COALESCE (\n private_offerer,\n offerer_from_private_tx\n )\n END AS offerer,\n orderHash,\n CASE\n WHEN sale_category = 'public' THEN recipient_temp\n WHEN sale_category = 'private'\n AND private_offerer IS NULL THEN private_recipient_from_consideration\n ELSE recipient_from_private_tx\n END AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address,\n tokenid,\n CASE\n WHEN token_type = '3' THEN number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n CASE\n WHEN private_offerer IS NULL\n AND private_seller IS NOT NULL THEN 0\n ELSE decoded_output :offer [0] [3] :: INT / offer_length\n END AS total_sale_amount_raw,\n platform_fee_raw_ :: INT / offer_length AS platform_fee_raw,\n creator_fee_raw_ :: INT / offer_length AS creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted b\n INNER JOIN base_sales_offer_accepted_sale_and_no_fees s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_offer_accepted_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n LEFT OUTER JOIN private_offer_tx_offerer_combined p\n ON b.tx_hash = p.tx_hash\n WHERE\n nft_address IS NOT NULL qualify ROW_NUMBER() over (\n PARTITION BY b.tx_hash,\n b.event_index,\n nft_address,\n tokenid,\n _log_id\n ORDER BY\n _inserted_timestamp ASC\n ) = 1\n),\nbase_sales_buy_and_offer AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_final\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted_final\n),\ntx_data AS (\n SELECT\n tx_hash,\n block_timestamp,\n block_number,\n from_address,\n to_address,\n origin_function_signature,\n tx_fee,\n input_data\n FROM\n {{ ref('core__fact_transactions') }}\n WHERE\n block_timestamp :: DATE >= '2022-06-01'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nnft_transfer_operator AS (\n SELECT\n tx_hash,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS nft_address_from_transfers,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS nft_address_temp,\n --or operator_address\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS offerer,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: STRING AS tokenid,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS erc1155_value\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n block_timestamp :: DATE >= '2022-06-01'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n AND topics [0] :: STRING IN (\n '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62',\n '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n)\nSELECT\n t.block_number,\n t.block_timestamp,\n s.tx_hash,\n s.event_index,\n s.contract_address AS platform_address,\n 'opensea' AS platform_name,\n 'seaport_1_1' AS platform_exchange_version,\n s.event_name,\n offer_length,\n offerer AS seller_address,\n orderHash,\n recipient AS buyer_address,\n sale_category,\n trade_type,\n CASE\n WHEN trade_type = 'buy' THEN 'sale'\n WHEN trade_type = 'offer_accepted' THEN 'bid_won'\n END AS event_type,\n is_price_estimated,\n ZONE,\n tx_type,\n s.token_type,\n s.nft_address_temp,\n CASE\n WHEN nft_address_from_transfers IS NOT NULL THEN nft_address_from_transfers\n ELSE s.nft_address_temp\n END AS nft_address,\n s.tokenId,\n s.erc1155_value,\n s.currency_address,\n COALESCE (\n total_sale_amount_raw,\n 0\n ) AS total_price_raw,\n COALESCE (\n total_fees_raw,\n 0\n ) AS total_fees_raw,\n COALESCE (\n platform_fee_raw,\n 0\n ) AS platform_fee_raw,\n COALESCE (\n creator_fee_raw,\n 0\n ) AS creator_fee_raw,\n t.tx_fee,\n t.from_address AS origin_from_address,\n t.to_address AS origin_to_address,\n t.origin_function_signature,\n decoded_output,\n consideration,\n offer,\n input_data,\n CONCAT(\n nft_address,\n '-',\n s.tokenId,\n '-',\n platform_exchange_version,\n '-',\n _log_id\n ) AS nft_log_id,\n _log_id,\n _inserted_timestamp\nFROM\n base_sales_buy_and_offer s\n INNER JOIN tx_data t USING (tx_hash)\n LEFT JOIN nft_transfer_operator o USING (\n tx_hash,\n nft_address_temp,\n tokenid,\n recipient\n ) qualify(ROW_NUMBER() over(PARTITION BY nft_log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__fact_transactions"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.sql", "compiled": true, "compiled_code": "\n\nWITH seaport_fees_wallet AS (\n\n SELECT\n *\n FROM\n (\n VALUES\n ('0x0000a26b00c1f0df003000390027140000faa719'),\n ('0x8de9c5a032463c561423387a9648c5c7bcc5bc90'),\n ('0x5b3256965e7c3cf26e11fcaf296dfc8807c01073')\n ) t (addresses)\n),\nseaport_tx_table AS (\n SELECT\n block_timestamp,\n tx_hash\n FROM\n polygon.core.fact_event_logs\n WHERE\n block_timestamp >= '2022-06-01'\n AND contract_address = '0x00000000006c3852cbef3e08e8df289169ede581'\n AND topics [0] = '0x9d9af8e38d66c62e2c12f0225249fd9d721c54b83f48d9352c97c6cacdcb6f31'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.seaport_1_1_sales\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\ndecoded AS (\n SELECT\n tx_hash,\n decoded_log,\n event_index,\n full_decoded_log,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp AS _inserted_timestamp,\n LOWER(\n full_decoded_log :address :: STRING\n ) AS contract_address,\n full_decoded_log :name :: STRING AS event_name,\n CASE\n WHEN full_decoded_log :data [4] :value [0] [0] IN (\n 2,\n 3\n ) THEN 'buy'\n WHEN full_decoded_log :data [4] :value [0] [0] IN (1) THEN 'offer_accepted'\n ELSE NULL\n END AS trade_type\n FROM\n polygon.core.ez_decoded_event_logs\n WHERE\n block_number >= 30000000\n AND contract_address = '0x00000000006c3852cbef3e08e8df289169ede581'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n seaport_tx_table\n )\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.seaport_1_1_sales\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n\n),\noffer_length_count_buy AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [4] :value))\n WHERE\n trade_type = 'buy'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n),\noffer_length_count_offer AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [5] :value))\n WHERE\n trade_type = 'offer_accepted'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n),\nflat_raw AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_decoded_log :data AS full_data,\n _log_id,\n _inserted_timestamp,\n OBJECT_AGG(\n VALUE :name,\n VALUE :value\n ) AS decoded_output\n FROM\n decoded,\n LATERAL FLATTEN(\n input => full_decoded_log :data\n ) f\n WHERE\n event_name = 'OrderFulfilled'\n AND trade_type IS NOT NULL\n GROUP BY\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp\n),\nflat AS (\n SELECT\n r.tx_hash,\n r.event_index,\n contract_address,\n event_name,\n COALESCE (\n b.offer_length_raw,\n o.offer_length_raw,\n NULL\n ) AS offer_length,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp,\n decoded_output\n FROM\n flat_raw r\n LEFT JOIN offer_length_count_buy b\n ON r.tx_hash = b.tx_hash\n AND r.event_index = b.event_index\n LEFT JOIN offer_length_count_offer o\n ON r.tx_hash = o.tx_hash\n AND r.event_index = o.event_index\n WHERE\n offer_length IS NOT NULL\n),\nfiltered_private_offer_tx AS (\n SELECT\n tx_hash\n FROM\n flat\n WHERE\n trade_type = 'offer_accepted'\n AND full_data [3] :value :: STRING = '0x0000000000000000000000000000000000000000'\n),\nprivate_offer_tx_flat AS (\n SELECT\n tx_hash,\n ARRAY_AGG (\n CASE\n WHEN trade_type = 'buy' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_offerer,\n ARRAY_AGG(\n CASE\n WHEN trade_type = 'offer_accepted' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_recipient --(buyer) or receiver of the NFT\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n GROUP BY\n tx_hash\n),\nprivate_offer_tx_flat_null_offerer AS (\n -- mainly transfers via opensea as a result of a phishing scam)\n SELECT\n tx_hash,\n full_data [1] :value :: STRING AS private_seller -- person whose account is compromised\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat\n WHERE\n private_offerer IS NULL\n )\n AND trade_type = 'offer_accepted'\n),\nprivate_offer_tx_offerer_combined AS (\n SELECT\n t.tx_hash,\n t.private_offerer,\n t.private_recipient AS recipient_from_private_tx,\n n.private_seller,\n CASE\n WHEN t.private_offerer IS NULL THEN n.private_seller\n ELSE t.private_offerer\n END AS offerer_from_private_tx\n FROM\n private_offer_tx_flat t\n LEFT JOIN private_offer_tx_flat_null_offerer n\n ON t.tx_hash = n.tx_hash\n),\nbase_sales_buy AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n --seller\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n -- buyer\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name = 'OrderFulfilled'\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n ) -- AND tx_type IS NOT NULL ; null tx type would mean that there aren't any considerations. The nft is transferred without asking for anything in exchange for it\n),\nbase_sales_buy_null_values AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n --seller\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n -- buyer\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name = 'OrderFulfilled'\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND tx_type IS NULL\n),\nbase_sales_buy_public_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_public_nft_transfers_null_values AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_null_values\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_public_nft_transfers_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers_null_values\n),\nbase_sales_buy_private_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] :: STRING AS private_sale_recipient\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'private'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n),\nbase_sales_buy_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN first_flatten_index = 0 THEN raw_amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list NOT IN (\n (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n )\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_buy_sale_amount_filter\n),\nbase_sales_buy_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw_,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_buy_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n),\nbase_sales_buy_sale_amount_null_values AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy_null_values\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_sale_amount_filter\n )\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_type IS NULL\n),\nbase_sales_buy_sale_amount_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_sale_amount_null_values\n),\nbase_sales_buy_combined AS (\n SELECT\n *\n FROM\n base_sales_buy\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_null_values\n),\nbase_sales_buy_final_public AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n recipient_temp AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_public_nft_transfers_combined n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n),\nbase_sales_buy_final_private AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n private_sale_recipient AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_private_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n),\nbase_sales_buy_final AS (\n SELECT\n *\n FROM\n base_sales_buy_final_public\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_final_private\n),\nbase_sales_offer_accepted AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :recipient :: STRING AS offerer_temp,\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :offerer :: STRING AS recipient_temp,\n CASE\n WHEN offerer_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output :offer [0] [3] :: INT / offer_length AS total_sale_amount_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name = 'OrderFulfilled'\n AND trade_type = 'offer_accepted'\n AND tx_type IS NOT NULL\n AND tx_hash IS NOT NULL\n),\nbase_sales_offer_accepted_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] AS private_recipient_from_consideration\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n),\nbase_sales_offer_accepted_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n),\nbase_sales_offer_accepted_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN address_list NOT IN (\n (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n )\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_sale_amount_filter\n),\nbase_sales_offer_accepted_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n currency_address,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n),\nbase_sales_offer_accepted_no_fees_tx AS (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_sale_amount_filter\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n),\nbase_sales_offer_accepted_no_fees_amount AS (\n SELECT\n tx_hash,\n event_index,\n ARRAY_AGG(\n t.value\n ) AS sale_values,\n sale_values [0] [1] :: STRING AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_no_fees_tx\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n GROUP BY\n tx_hash,\n event_index\n),\nbase_sales_offer_accepted_phishing_scam_amount AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n NULL AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_nft_transfers\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n),\nbase_sales_offer_accepted_sale_and_no_fees AS (\n SELECT\n *\n FROM\n base_sales_offer_accepted_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_no_fees_amount\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_phishing_scam_amount\n),\nbase_sales_offer_accepted_final AS (\n SELECT\n b.tx_hash,\n b.event_index,\n contract_address,\n event_name,\n offer_length,\n CASE\n WHEN sale_category = 'public' THEN offerer_temp\n ELSE COALESCE (\n private_offerer,\n offerer_from_private_tx\n )\n END AS offerer,\n orderHash,\n CASE\n WHEN sale_category = 'public' THEN recipient_temp\n WHEN sale_category = 'private'\n AND private_offerer IS NULL THEN private_recipient_from_consideration\n ELSE recipient_from_private_tx\n END AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address,\n tokenid,\n CASE\n WHEN token_type = '3' THEN number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n CASE\n WHEN private_offerer IS NULL\n AND private_seller IS NOT NULL THEN 0\n ELSE decoded_output :offer [0] [3] :: INT / offer_length\n END AS total_sale_amount_raw,\n platform_fee_raw_ :: INT / offer_length AS platform_fee_raw,\n creator_fee_raw_ :: INT / offer_length AS creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted b\n INNER JOIN base_sales_offer_accepted_sale_and_no_fees s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_offer_accepted_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n LEFT OUTER JOIN private_offer_tx_offerer_combined p\n ON b.tx_hash = p.tx_hash\n WHERE\n nft_address IS NOT NULL qualify ROW_NUMBER() over (\n PARTITION BY b.tx_hash,\n b.event_index,\n nft_address,\n tokenid,\n _log_id\n ORDER BY\n _inserted_timestamp ASC\n ) = 1\n),\nbase_sales_buy_and_offer AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_final\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted_final\n),\ntx_data AS (\n SELECT\n tx_hash,\n block_timestamp,\n block_number,\n from_address,\n to_address,\n origin_function_signature,\n tx_fee,\n input_data\n FROM\n polygon.core.fact_transactions\n WHERE\n block_timestamp :: DATE >= '2022-06-01'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.seaport_1_1_sales\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\nnft_transfer_operator AS (\n SELECT\n tx_hash,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS nft_address_from_transfers,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS nft_address_temp,\n --or operator_address\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS offerer,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: STRING AS tokenid,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS erc1155_value\n FROM\n polygon.core.fact_event_logs\n WHERE\n block_timestamp :: DATE >= '2022-06-01'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n AND topics [0] :: STRING IN (\n '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62',\n '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb'\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.seaport_1_1_sales\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n)\nSELECT\n t.block_number,\n t.block_timestamp,\n s.tx_hash,\n s.event_index,\n s.contract_address AS platform_address,\n 'opensea' AS platform_name,\n 'seaport_1_1' AS platform_exchange_version,\n s.event_name,\n offer_length,\n offerer AS seller_address,\n orderHash,\n recipient AS buyer_address,\n sale_category,\n trade_type,\n CASE\n WHEN trade_type = 'buy' THEN 'sale'\n WHEN trade_type = 'offer_accepted' THEN 'bid_won'\n END AS event_type,\n is_price_estimated,\n ZONE,\n tx_type,\n s.token_type,\n s.nft_address_temp,\n CASE\n WHEN nft_address_from_transfers IS NOT NULL THEN nft_address_from_transfers\n ELSE s.nft_address_temp\n END AS nft_address,\n s.tokenId,\n s.erc1155_value,\n s.currency_address,\n COALESCE (\n total_sale_amount_raw,\n 0\n ) AS total_price_raw,\n COALESCE (\n total_fees_raw,\n 0\n ) AS total_fees_raw,\n COALESCE (\n platform_fee_raw,\n 0\n ) AS platform_fee_raw,\n COALESCE (\n creator_fee_raw,\n 0\n ) AS creator_fee_raw,\n t.tx_fee,\n t.from_address AS origin_from_address,\n t.to_address AS origin_to_address,\n t.origin_function_signature,\n decoded_output,\n consideration,\n offer,\n input_data,\n CONCAT(\n nft_address,\n '-',\n s.tokenId,\n '-',\n platform_exchange_version,\n '-',\n _log_id\n ) AS nft_log_id,\n _log_id,\n _inserted_timestamp\nFROM\n base_sales_buy_and_offer s\n INNER JOIN tx_data t USING (tx_hash)\n LEFT JOIN nft_transfer_operator o USING (\n tx_hash,\n nft_address_temp,\n tokenid,\n recipient\n ) qualify(ROW_NUMBER() over(PARTITION BY nft_log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.polygon_models.silver__seaport_1_5_sales": {"database": "polygon", "schema": "silver", "name": "silver__seaport_1_5_sales", "resource_type": "model", "package_name": "polygon_models", "path": "silver/NFT/sales/silver__seaport_1_5_sales.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.sql", "unique_id": "model.polygon_models.silver__seaport_1_5_sales", "fqn": ["polygon_models", "silver", "NFT", "sales", "silver__seaport_1_5_sales"], "alias": "seaport_1_5_sales", "checksum": {"name": "sha256", "checksum": "f8a3c98607b79d1336c91c7edd261477424766b2ac39394f4f64c0b99b04572c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "nft", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "nft", "curated"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_ADDRESS": {"name": "PLATFORM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_NAME": {"name": "PLATFORM_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SELLER_ADDRESS": {"name": "SELLER_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BUYER_ADDRESS": {"name": "BUYER_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NFT_ADDRESS": {"name": "NFT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKENID": {"name": "TOKENID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CURRENCY_ADDRESS": {"name": "CURRENCY_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_PRICE_RAW": {"name": "TOTAL_PRICE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_FEES_RAW": {"name": "TOTAL_FEES_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_FEE_RAW": {"name": "PLATFORM_FEE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATOR_FEE_RAW": {"name": "CREATOR_FEE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_FEE": {"name": "TX_FEE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NFT_LOG_ID": {"name": "NFT_LOG_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_TYPE": {"name": "EVENT_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INPUT_DATA": {"name": "INPUT_DATA", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "nft", "curated"]}, "created_at": 1764018435.2479835, "relation_name": "polygon.silver.seaport_1_5_sales", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','nft','curated']\n) }}\n\nWITH seaport_fees_wallet AS (\n\n SELECT\n *\n FROM\n (\n VALUES\n ('0x0000a26b00c1f0df003000390027140000faa719'),\n ('0x8de9c5a032463c561423387a9648c5c7bcc5bc90'),\n ('0x5b3256965e7c3cf26e11fcaf296dfc8807c01073')\n ) t (addresses)\n),\nraw_decoded_logs AS (\n SELECT\n *,\n decoded_log :orderHash :: STRING AS orderhash,\n tx_hash || '-' || decoded_log :orderHash AS tx_hash_orderhash,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n WHERE\n block_timestamp :: DATE >= '2023-04-27'\n AND block_number >= 42031942\n AND contract_address = '0x00000000000000adc04c56bf30ac9d3c0aaf14dc'\n AND event_name IN (\n 'OrderFulfilled',\n 'OrdersMatched'\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n{% endif %}\n),\nraw_logs AS (\n SELECT\n *,\n IFF(\n topics [0] :: STRING IN (\n '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n ),\n 1,\n NULL\n ) AS om_event_index_raw,\n IFF(\n topics [0] :: STRING NOT IN (\n '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n ),\n SUBSTRING(\n DATA,\n 1,\n 66\n ),\n NULL\n ) AS order_hash,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n block_timestamp :: DATE >= '2023-04-27'\n AND block_number >= 42031942\n AND contract_address = '0x00000000000000adc04c56bf30ac9d3c0aaf14dc'\n AND topics [0] :: STRING IN (\n '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7',\n -- ordersMatched\n '0x9d9af8e38d66c62e2c12f0225249fd9d721c54b83f48d9352c97c6cacdcb6f31' -- orderFulfilled\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nraw_logs_event_index_fill AS (\n SELECT\n *,\n IFF(\n om_event_index_raw IS NULL,\n NULL,\n SUM(om_event_index_raw) over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n )\n ) AS om_event_index\n FROM\n raw_logs\n),\nmao_orderhash AS (\n -- this helps us determine which orderhashes belong to OrderMatched as opposed to OrderFulfilled\n SELECT\n tx_hash,\n event_index,\n om_event_index,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented,\n utils.udf_hex_to_int(\n segmented [0] :: STRING\n ) / 32 AS length_index,\n utils.udf_hex_to_int(\n segmented [length_index] :: STRING\n ) AS orders_length,\n INDEX,\n '0x' || VALUE :: STRING AS orderhash,\n tx_hash || '-' || orderhash AS tx_hash_orderhash\n FROM\n raw_logs_event_index_fill,\n LATERAL FLATTEN(\n input => segmented\n )\n WHERE\n INDEX BETWEEN (\n length_index + 1\n )\n AND (\n orders_length + 1\n )\n AND topics [0] :: STRING = '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n),\n-- this big section below is for OrderFulfilled\ndecoded AS (\n SELECT\n tx_hash,\n decoded_log,\n event_index,\n full_decoded_log,\n CONCAT(\n tx_hash,\n '-',\n decoded_log :orderHash :: STRING\n ) AS tx_hash_orderhash,\n _log_id,\n _inserted_timestamp,\n LOWER(\n full_decoded_log :address :: STRING\n ) AS contract_address,\n full_decoded_log :name :: STRING AS event_name,\n CASE\n WHEN full_decoded_log :data [4] :value [0] [0] IN (\n 2,\n 3\n ) THEN 'buy'\n WHEN full_decoded_log :data [4] :value [0] [0] IN (1) THEN 'offer_accepted'\n ELSE NULL\n END AS trade_type\n FROM\n raw_decoded_logs\n WHERE\n event_name = 'OrderFulfilled'\n AND tx_hash_orderhash NOT IN (\n SELECT\n tx_hash_orderhash\n FROM\n mao_orderhash\n )\n),\noffer_length_count_buy AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [4] :value))\n WHERE\n trade_type = 'buy'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n),\noffer_length_count_offer AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [5] :value))\n WHERE\n trade_type = 'offer_accepted'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n),\nflat_raw AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_decoded_log :data AS full_data,\n _log_id,\n _inserted_timestamp,\n OBJECT_AGG(\n VALUE :name,\n VALUE :value\n ) AS decoded_output\n FROM\n decoded,\n LATERAL FLATTEN(\n input => full_decoded_log :data\n ) f\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type IS NOT NULL\n GROUP BY\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp\n),\nflat AS (\n SELECT\n r.tx_hash,\n r.event_index,\n contract_address,\n event_name,\n COALESCE (\n b.offer_length_raw,\n o.offer_length_raw,\n NULL\n ) AS offer_length,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp,\n decoded_output\n FROM\n flat_raw r\n LEFT JOIN offer_length_count_buy b\n ON r.tx_hash = b.tx_hash\n AND r.event_index = b.event_index\n LEFT JOIN offer_length_count_offer o\n ON r.tx_hash = o.tx_hash\n AND r.event_index = o.event_index\n WHERE\n offer_length IS NOT NULL\n),\nfiltered_private_offer_tx AS (\n SELECT\n tx_hash\n FROM\n flat\n WHERE\n trade_type = 'offer_accepted'\n AND full_data [3] :value :: STRING = '0x0000000000000000000000000000000000000000'\n),\nprivate_offer_tx_flat AS (\n SELECT\n tx_hash,\n ARRAY_AGG (\n CASE\n WHEN trade_type = 'buy' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_offerer,\n ARRAY_AGG(\n CASE\n WHEN trade_type = 'offer_accepted' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_recipient --(buyer) or receiver of the NFT\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n GROUP BY\n tx_hash\n),\nprivate_offer_tx_flat_null_offerer AS (\n -- mainly transfers via opensea as a result of a phishing scam)\n SELECT\n tx_hash,\n full_data [1] :value :: STRING AS private_seller -- person whose account is compromised\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat\n WHERE\n private_offerer IS NULL\n )\n AND trade_type = 'offer_accepted'\n),\nprivate_offer_tx_offerer_combined AS (\n SELECT\n t.tx_hash,\n t.private_offerer,\n t.private_recipient AS recipient_from_private_tx,\n n.private_seller,\n CASE\n WHEN t.private_offerer IS NULL THEN n.private_seller\n ELSE t.private_offerer\n END AS offerer_from_private_tx\n FROM\n private_offer_tx_flat t\n LEFT JOIN private_offer_tx_flat_null_offerer n\n ON t.tx_hash = n.tx_hash\n),\nbase_sales_buy AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n --seller\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n -- buyer\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n ) -- AND tx_type IS NOT NULL ; null tx type would mean that there aren't any considerations. The nft is transferred without asking for anything in exchange for it\n),\nbase_sales_buy_null_values AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND tx_type IS NULL\n),\nbase_sales_buy_public_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_public_nft_transfers_null_values AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_null_values\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_public_nft_transfers_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers_null_values\n),\nbase_sales_buy_private_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] :: STRING AS private_sale_recipient\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'private'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n),\nbase_sales_buy_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN first_flatten_index = 0 THEN raw_amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_buy_sale_amount_filter\n),\nbase_sales_buy_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw_,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_buy_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n),\nbase_sales_buy_sale_amount_null_values AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy_null_values\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_sale_amount_filter\n )\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_type IS NULL\n),\nbase_sales_buy_sale_amount_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_sale_amount_null_values\n),\nbase_sales_buy_combined AS (\n SELECT\n *\n FROM\n base_sales_buy\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_null_values\n),\nbase_sales_buy_final_public AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n recipient_temp AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_public_nft_transfers_combined n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n),\nbase_sales_buy_final_private AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n private_sale_recipient AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_private_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n),\nbase_sales_buy_final AS (\n SELECT\n *\n FROM\n base_sales_buy_final_public\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_final_private\n),\nbase_sales_offer_accepted AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :recipient :: STRING AS offerer_temp,\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :offerer :: STRING AS recipient_temp,\n CASE\n WHEN offerer_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output :offer [0] [3] :: INT / offer_length AS total_sale_amount_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled',\n 'OrdersMatched'\n )\n AND trade_type = 'offer_accepted'\n AND tx_type IS NOT NULL\n AND tx_hash IS NOT NULL\n),\nbase_sales_offer_accepted_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] AS private_recipient_from_consideration\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n),\nbase_sales_offer_accepted_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n),\nbase_sales_offer_accepted_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN address_list NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_sale_amount_filter\n),\nbase_sales_offer_accepted_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n currency_address,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n),\nbase_sales_offer_accepted_no_fees_tx AS (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_sale_amount_filter\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n),\nbase_sales_offer_accepted_no_fees_amount AS (\n SELECT\n tx_hash,\n event_index,\n ARRAY_AGG(\n t.value\n ) AS sale_values,\n sale_values [0] [1] :: STRING AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_no_fees_tx\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n GROUP BY\n tx_hash,\n event_index\n),\nbase_sales_offer_accepted_phishing_scam_amount AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n NULL AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_nft_transfers\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n),\nbase_sales_offer_accepted_sale_and_no_fees AS (\n SELECT\n *\n FROM\n base_sales_offer_accepted_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_no_fees_amount\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_phishing_scam_amount\n),\nbase_sales_offer_accepted_final AS (\n SELECT\n b.tx_hash,\n b.event_index,\n contract_address,\n event_name,\n offer_length,\n CASE\n WHEN sale_category = 'public' THEN offerer_temp\n ELSE COALESCE (\n private_offerer,\n offerer_from_private_tx\n )\n END AS offerer,\n orderHash,\n CASE\n WHEN sale_category = 'public' THEN recipient_temp\n WHEN sale_category = 'private'\n AND private_offerer IS NULL THEN private_recipient_from_consideration\n ELSE recipient_from_private_tx\n END AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address,\n tokenid,\n CASE\n WHEN token_type = '3' THEN number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n CASE\n WHEN private_offerer IS NULL\n AND private_seller IS NOT NULL THEN 0\n ELSE decoded_output :offer [0] [3] :: INT / offer_length\n END AS total_sale_amount_raw,\n platform_fee_raw_ :: INT / offer_length AS platform_fee_raw,\n creator_fee_raw_ :: INT / offer_length AS creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted b\n INNER JOIN base_sales_offer_accepted_sale_and_no_fees s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_offer_accepted_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n LEFT OUTER JOIN private_offer_tx_offerer_combined p\n ON b.tx_hash = p.tx_hash\n WHERE\n nft_address IS NOT NULL qualify ROW_NUMBER() over (\n PARTITION BY b.tx_hash,\n b.event_index,\n nft_address,\n tokenid,\n _log_id\n ORDER BY\n _inserted_timestamp ASC\n ) = 1\n),\n-- the new matchOrders logic starts here\norderhash_grouping_raw AS (\n SELECT\n tx_hash,\n event_index,\n order_hash,\n om_event_index,\n -- shows the order of multiple ordersmatched event in one tx\n om_event_index_raw,\n CASE\n WHEN om_event_index IS NULL THEN LEAD(om_event_index) ignore nulls over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n )\n ELSE NULL\n END AS om_event_index_fill -- shows all orderhashes and their grouping\n FROM\n raw_logs_event_index_fill\n),\norderhash_grouping_fill AS (\n SELECT\n tx_hash,\n event_index,\n order_hash,\n CONCAT(\n tx_hash,\n '-',\n order_hash\n ) AS tx_hash_orderhash,\n om_event_index,\n om_event_index_fill,\n om_event_index_raw,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n event_index ASC\n ) AS orderhash_order_within_group -- orderhash order within an orderhash group\n FROM\n orderhash_grouping_raw\n),\n-- item type references:\n-- 0 - eth\n-- 1 - erc20\n-- 2 - erc721\n-- 3 - erc1155\n-- 4 - erc721 w criteria,\n-- 5 - erc1155 w criteria\nmao_consideration_all AS (\n SELECT\n tx_hash,\n event_index,\n decoded_log,\n INDEX,\n orderhash,\n tx_hash_orderhash,\n decoded_log :offerer :: STRING AS offerer,\n decoded_log :recipient :: STRING AS recipient,\n VALUE,\n VALUE :amount :: INT AS amount,\n VALUE :identifier :: STRING AS identifier,\n VALUE :itemType :: INT AS item_type,\n VALUE :recipient :: STRING AS item_recipient,\n VALUE :token :: STRING AS item_token_address,\n decoded_log :offer [0] :amount :: INT AS offer_amount,\n decoded_log :offer [0] :identifier :: STRING AS offer_identifier,\n decoded_log :offer [0] :itemType :: INT AS offer_item_type,\n decoded_log :offer [0] :token :: STRING AS offer_item_token_address,\n IFF(item_type NOT IN (0, 1), CONCAT(item_token_address, '-', identifier, '-', amount), CONCAT(offer_item_token_address, '-', offer_identifier, '-', offer_amount)) AS nft_address_identifier,\n IFF(item_type NOT IN (0, 1), nft_address_identifier, NULL) AS nft_address_identifier_null,\n CASE\n WHEN item_type NOT IN (\n 0,\n 1\n ) THEN nft_address_identifier\n WHEN item_type IN (\n 0,\n 1\n )\n AND offer_item_type IN (\n 0,\n 1\n ) THEN LAG(nft_address_identifier_null) ignore nulls over (\n PARTITION BY tx_hash,\n event_index\n ORDER BY\n INDEX ASC\n )\n WHEN item_type IN (\n 0,\n 1\n )\n AND offer_item_type NOT IN (\n 0,\n 1\n ) THEN nft_address_identifier\n ELSE nft_address_identifier\n END AS nft_address_identifier_fill_raw,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n event_index\n ORDER BY\n INDEX ASC\n ) AS orderhash_within_event_index_rn,\n _log_id,\n _inserted_timestamp\n FROM\n raw_decoded_logs,\n LATERAL FLATTEN (\n input => decoded_log :consideration\n )\n WHERE\n event_name = 'OrderFulfilled'\n AND tx_hash_orderhash IN (\n SELECT\n tx_hash_orderhash\n FROM\n mao_orderhash\n )\n),\nmao_consideration_all_joined AS (\n SELECT\n *,\n CASE\n WHEN nft_address_identifier_null IS NULL\n AND offerer = recipient THEN LAG(nft_address_identifier_null) ignore nulls over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n event_index,\n INDEX ASC\n )\n ELSE nft_address_identifier_fill_raw\n END AS nft_address_identifier_fill,\n IFF(item_type NOT IN (0, 1)\n AND offer_item_type NOT IN (0, 1)\n AND decoded_log :consideration [0] :itemType :: INT NOT IN (0, 1), CONCAT(tx_hash_orderhash, '-', event_index), NULL) AS deals_tag,\n CONCAT(\n tx_hash_orderhash,\n '-',\n event_index\n ) AS event_index_tag -- tagging for deals tag\n FROM\n mao_consideration_all\n INNER JOIN orderhash_grouping_fill USING (\n tx_hash,\n tx_hash_orderhash,\n event_index\n )\n),\nmao_consideration_sale_amounts AS (\n SELECT\n tx_hash,\n orderhash,\n tx_hash_orderhash,\n orderhash_within_event_index_rn,\n om_event_index_fill,\n deals_tag,\n event_index_tag,\n event_index,\n INDEX,\n amount,\n identifier,\n item_type,\n item_token_address,\n item_token_address AS currency_address,\n item_recipient,\n nft_address_identifier_fill,\n CASE\n WHEN amount > 0\n AND ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill\n ORDER BY\n amount DESC\n ) = 1 THEN amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN item_recipient IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN sale_amount_raw_ = 0\n AND platform_fee_raw_ = 0 THEN amount\n ELSE 0\n END AS creator_fee_raw_,\n IFF(\n sale_amount_raw_ > 0,\n item_recipient,\n NULL\n ) AS sale_receiver_address\n FROM\n mao_consideration_all_joined\n WHERE\n item_type IN (\n 0,\n 1\n )\n AND nft_address_identifier_fill IS NOT NULL\n AND event_index_tag NOT IN (\n SELECT\n deals_tag\n FROM\n mao_consideration_all_joined\n WHERE\n deals_tag IS NOT NULL\n ) -- exclude deals\n),\nmao_nondeals_sale_amount AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill,\n currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw,\n SUM(platform_fee_raw_) AS platform_fee_raw,\n SUM(creator_fee_raw_) AS creator_fee_raw\n FROM\n mao_consideration_sale_amounts\n GROUP BY\n ALL\n),\nmao_nondeals_sale_amount_receiver AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill,\n sale_receiver_address,\n currency_address,\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw\n FROM\n mao_nondeals_sale_amount\n INNER JOIN mao_consideration_sale_amounts s USING (\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill,\n currency_address\n )\n WHERE\n s.sale_receiver_address IS NOT NULL\n),\nmao_deals_sale_amount AS (\n SELECT\n *,\n IFF(\n item_recipient = offerer,\n recipient,\n offerer\n ) AS payment_from_address,\n item_recipient AS payment_to_address,\n CASE\n WHEN ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n amount DESC\n ) = 1 THEN amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN item_recipient IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN sale_amount_raw_ = 0\n AND platform_fee_raw_ = 0 THEN amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n mao_consideration_all_joined\n WHERE\n item_type IN (\n 0,\n 1\n )\n AND event_index_tag IN (\n SELECT\n deals_tag\n FROM\n mao_consideration_all_joined\n WHERE\n deals_tag IS NOT NULL\n ) -- include deals only\n),\nmao_deals_sale_amount_agg AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n payment_from_address,\n payment_to_address,\n 1 AS deals_sale_rn,\n item_token_address AS currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw,\n SUM(platform_fee_raw_) AS platform_fee_raw,\n SUM(creator_fee_raw_) AS creator_fee_raw\n FROM\n mao_deals_sale_amount\n GROUP BY\n ALL\n),\nmao_deals_nft_transfers AS (\n SELECT\n *,\n IFF(\n item_recipient = offerer,\n recipient,\n offerer\n ) AS nft_from_address,\n item_recipient AS nft_to_address,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n INDEX ASC\n ) AS deals_nft_transfers_rn\n FROM\n mao_consideration_all_joined\n WHERE\n deals_tag IS NOT NULL\n),\nmao_deals_nft_transfers_sales AS (\n SELECT\n t.tx_hash,\n t.om_event_index_fill,\n orderhash,\n tx_hash_orderhash,\n event_index,\n INDEX,\n orderhash_within_event_index_rn,\n deals_tag,\n event_index_tag,\n nft_address_identifier_fill,\n item_token_address AS nft_address,\n identifier AS tokenid,\n item_type,\n IFF(item_type IN (2, 4), 'erc721', 'erc1155') AS nft_standard,\n IFF(\n nft_standard = 'erc1155',\n amount,\n NULL\n ) AS erc1155_value,\n nft_from_address AS seller_address,\n nft_to_address AS buyer_address,\n COALESCE(\n sale_amount_raw,\n 0\n ) AS sale_amount_raw,\n COALESCE(\n platform_fee_raw,\n 0\n ) AS platform_fee_raw,\n COALESCE(\n creator_fee_raw,\n 0\n ) AS creator_fee_raw,\n currency_address,\n decoded_log,\n offerer,\n recipient,\n _log_id,\n _inserted_timestamp\n FROM\n mao_deals_nft_transfers t\n LEFT JOIN mao_deals_sale_amount_agg s\n ON t.tx_hash = s.tx_hash\n AND t.om_event_index_fill = s.om_event_index_fill\n AND s.payment_from_address = t.nft_to_address\n AND s.payment_to_address = t.nft_from_address\n AND s.deals_sale_rn = t.deals_nft_transfers_rn\n),\nmao_nondeals_nft_transfers_sales AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n -- the event index for the ordermatched\n orderhash,\n tx_hash_orderhash,\n -- tx hash and orderhash\n event_index,\n -- event index for orderfulfilled\n INDEX,\n -- index for flattened for consideration\n orderhash_within_event_index_rn,\n -- index of orderhash within a single event index\n deals_tag,\n event_index_tag,\n -- gets the tx hash and event index to tag seaport deals\n A.nft_address_identifier_fill,\n item_token_address AS nft_address,\n identifier AS tokenid,\n item_type,\n IFF(item_type IN (2, 4), 'erc721', 'erc1155') AS nft_standard,\n IFF(\n nft_standard = 'erc1155',\n amount,\n NULL\n ) AS erc1155_value,\n item_recipient AS buyer_address,\n sale_receiver_address,\n IFF(\n item_recipient = offerer,\n recipient,\n offerer\n ) AS seller_address_temp,\n IFF(\n seller_address_temp = buyer_address,\n sale_receiver_address,\n seller_address_temp\n ) AS seller_address,\n offerer,\n recipient,\n decoded_log,\n currency_address,\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw,\n _log_id,\n _inserted_timestamp\n FROM\n mao_consideration_all_joined A\n LEFT JOIN mao_nondeals_sale_amount_receiver USING (\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill\n )\n WHERE\n deals_tag IS NULL\n AND item_type NOT IN (\n 0,\n 1\n )\n),\nmao_nondeals_nft_transfers_sales_fill AS (\n SELECT\n *,\n CASE\n WHEN sale_amount_raw IS NULL THEN COALESCE(LAG(sale_amount_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(sale_amount_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), 0)\n ELSE sale_amount_raw\n END AS sale_amount_raw_fill,\n CASE\n WHEN platform_fee_raw IS NULL THEN COALESCE(LAG(platform_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(platform_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), 0)\n ELSE platform_fee_raw\n END AS platform_fee_raw_fill,\n CASE\n WHEN creator_fee_raw IS NULL THEN COALESCE(LAG(creator_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(creator_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), 0)\n ELSE creator_fee_raw\n END AS creator_fee_raw_fill,\n CASE\n WHEN currency_address IS NULL THEN COALESCE(LAG(currency_address) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(currency_address) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), NULL)\n ELSE currency_address\n END AS currency_address_fill\n FROM\n mao_nondeals_nft_transfers_sales\n),\nmao_nondeals_offer_length_one AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n event_index,\n COUNT(1) AS offer_length_one -- counting how many nfts are in this sale batch , need to add with the following subquery\n FROM\n mao_nondeals_nft_transfers_sales\n WHERE\n sale_amount_raw IS NULL\n GROUP BY\n ALL\n),\nmao_nondeals_offer_length_two AS (\n -- measuring offer length for non batched\n SELECT\n tx_hash,\n om_event_index_fill,\n event_index,\n COUNT(1) AS offer_length_two -- counting how many nfts are in this sale batch , need to add with the following subquery\n FROM\n mao_nondeals_nft_transfers_sales\n WHERE\n sale_amount_raw IS NOT NULL\n GROUP BY\n ALL\n),\nmao_nondeals_offer_length AS (\n -- all sales are not grouped by event index, but grouped by the orderMatched index\n SELECT\n tx_hash,\n om_event_index_fill,\n event_index,\n offer_length_two + COALESCE(\n offer_length_one,\n 0\n ) AS offer_length --offer length for all\n FROM\n mao_nondeals_offer_length_two\n LEFT JOIN mao_nondeals_offer_length_one USING (\n tx_hash,\n om_event_index_fill,\n event_index\n )\n),\nmao_nondeals_nft_transfers_sales_fill_offer_length AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n -- the event index for the ordermatched\n orderhash,\n tx_hash_orderhash,\n -- tx hash and orderhash\n event_index,\n -- event index for orderfulfilled\n INDEX,\n -- index for flattened for consideration\n orderhash_within_event_index_rn,\n -- index of orderhash within a single event index\n deals_tag,\n event_index_tag,\n -- gets the tx hash and event index to tag seaport deals\n nft_address_identifier_fill,\n nft_address,\n item_type,\n tokenid,\n nft_standard,\n erc1155_value,\n buyer_address,\n seller_address,\n offerer,\n recipient,\n decoded_log,\n currency_address_fill AS currency_address,\n offer_length,\n sale_amount_raw_fill / offer_length AS sale_amount_raw,\n platform_fee_raw_fill / offer_length AS platform_fee_raw,\n creator_fee_raw_fill / offer_length AS creator_fee_raw,\n _log_id,\n _inserted_timestamp\n FROM\n mao_nondeals_nft_transfers_sales_fill\n INNER JOIN mao_nondeals_offer_length USING (\n tx_hash,\n om_event_index_fill,\n event_index\n )\n),\nmao_combined_base AS (\n -- includes both deals and nondeals\n SELECT\n tx_hash,\n om_event_index_fill,\n IFF(\n decoded_log :consideration [0] :itemType :: INT IN (\n 0,\n 1\n ),\n 'sale',\n 'bid_won'\n ) AS event_type,\n IFF(\n event_type = 'sale',\n 'mao_deals_buy',\n 'mao_deals_oa'\n ) AS category,\n orderhash,\n tx_hash_orderhash,\n event_index,\n INDEX,\n orderhash_within_event_index_rn,\n deals_tag,\n event_index_tag,\n nft_address_identifier_fill,\n nft_address,\n item_type,\n tokenid,\n nft_standard,\n erc1155_value,\n seller_address,\n buyer_address,\n currency_address,\n 1 AS offer_length,\n -- deals with always have 1 since we'll not be dividing the sale amount with number of nfts exchanged since nfts are also used as part of the offer\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n sale_amount_raw + total_fees_raw AS total_price_raw,\n offerer,\n recipient,\n decoded_log,\n _log_id,\n _inserted_timestamp\n FROM\n mao_deals_nft_transfers_sales\n UNION ALL\n SELECT\n tx_hash,\n om_event_index_fill,\n -- the event index for the ordermatched\n IFF(\n decoded_log :consideration [0] :itemType :: INT IN (\n 0,\n 1\n ),\n 'sale',\n 'bid_won'\n ) AS event_type,\n IFF(\n event_type = 'sale',\n 'mao_nondeals_buy',\n 'mao_nondeals_oa'\n ) AS category,\n orderhash,\n tx_hash_orderhash,\n event_index,\n INDEX,\n orderhash_within_event_index_rn,\n deals_tag,\n event_index_tag,\n nft_address_identifier_fill,\n nft_address,\n item_type,\n tokenid,\n nft_standard,\n erc1155_value,\n seller_address,\n buyer_address,\n currency_address,\n offer_length,\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n sale_amount_raw + total_fees_raw AS total_price_raw,\n offerer,\n recipient,\n decoded_log,\n _log_id,\n _inserted_timestamp\n FROM\n mao_nondeals_nft_transfers_sales_fill_offer_length\n),\nbase_sales_buy_and_offer AS (\n -- this part combines OrderFulfilled subqueries with OrdersMatched (mao)\n SELECT\n tx_hash,\n 'fulfil_buy' AS category,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n NULL AS seller_address_temp,\n NULL AS buyer_address_temp,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_final\n UNION ALL\n SELECT\n tx_hash,\n 'fulfil_oa' AS category,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n NULL AS seller_address_temp,\n NULL AS buyer_address_temp,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted_final\n UNION ALL\n SELECT\n tx_hash,\n category,\n event_index,\n '0x00000000000000adc04c56bf30ac9d3c0aaf14dc' AS contract_address,\n 'OrderFulfilled' AS event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n CASE\n WHEN recipient = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n IFF(\n event_type = 'sale',\n 'buy',\n 'offer_accepted'\n ) AS trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_log :zone :: STRING AS ZONE,\n item_type AS tx_type,\n item_type AS token_type,\n nft_address AS nft_address_temp,\n tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_log,\n decoded_log :consideration AS consideration,\n decoded_log :offer AS offer,\n seller_address AS seller_address_temp,\n buyer_address AS buyer_address_temp,\n _log_id,\n _inserted_timestamp\n FROM\n mao_combined_base\n),\ntx_data AS (\n SELECT\n tx_hash,\n block_timestamp,\n block_number,\n from_address,\n to_address,\n origin_function_signature,\n tx_fee,\n input_data\n FROM\n {{ ref('core__fact_transactions') }}\n WHERE\n block_timestamp :: DATE >= '2023-04-27'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nnft_transfer_operator AS (\n SELECT\n tx_hash,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS nft_address_from_transfers,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS nft_address_temp,\n --or operator_address\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS offerer,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: STRING AS tokenid,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS erc1155_value\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n block_timestamp :: DATE >= '2023-04-27'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n AND topics [0] :: STRING IN (\n '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62',\n '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nfinal_seaport AS (\n SELECT\n t.block_number,\n t.block_timestamp,\n s.tx_hash,\n category,\n s.event_index,\n s.contract_address AS platform_address,\n 'opensea' AS platform_name,\n 'seaport_1_5' AS platform_exchange_version,\n s.event_name,\n offer_length,\n IFF(category IN ('fulfil_oa', 'fulfil_buy'), offerer, seller_address_temp) AS seller_address,\n orderHash,\n IFF(category IN ('fulfil_oa', 'fulfil_buy'), recipient, buyer_address_temp) AS buyer_address,\n sale_category,\n trade_type,\n CASE\n WHEN trade_type = 'buy' THEN 'sale'\n WHEN trade_type = 'offer_accepted' THEN 'bid_won'\n END AS event_type,\n is_price_estimated,\n ZONE,\n tx_type,\n s.token_type,\n s.nft_address_temp,\n CASE\n WHEN nft_address_from_transfers IS NOT NULL THEN nft_address_from_transfers\n ELSE s.nft_address_temp\n END AS nft_address,\n s.tokenId,\n s.erc1155_value,\n s.currency_address,\n total_sale_amount_raw AS total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n t.tx_fee,\n t.from_address AS origin_from_address,\n t.to_address AS origin_to_address,\n t.origin_function_signature,\n decoded_output,\n consideration,\n offer,\n input_data,\n CONCAT(\n nft_address,\n '-',\n s.tokenId,\n '-',\n platform_exchange_version,\n '-',\n _log_id\n ) AS nft_log_id,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_and_offer s\n INNER JOIN tx_data t USING (tx_hash)\n LEFT JOIN nft_transfer_operator o USING (\n tx_hash,\n nft_address_temp,\n tokenid,\n recipient\n ) qualify(ROW_NUMBER() over(PARTITION BY nft_log_id\n ORDER BY\n _inserted_timestamp DESC)) = 1\n)\nSELECT\n *\nFROM\n final_seaport", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_transactions"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.sql", "compiled": true, "compiled_code": "\n\nWITH seaport_fees_wallet AS (\n\n SELECT\n *\n FROM\n (\n VALUES\n ('0x0000a26b00c1f0df003000390027140000faa719'),\n ('0x8de9c5a032463c561423387a9648c5c7bcc5bc90'),\n ('0x5b3256965e7c3cf26e11fcaf296dfc8807c01073')\n ) t (addresses)\n),\nraw_decoded_logs AS (\n SELECT\n *,\n decoded_log :orderHash :: STRING AS orderhash,\n tx_hash || '-' || decoded_log :orderHash AS tx_hash_orderhash,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.ez_decoded_event_logs\n WHERE\n block_timestamp :: DATE >= '2023-04-27'\n AND block_number >= 42031942\n AND contract_address = '0x00000000000000adc04c56bf30ac9d3c0aaf14dc'\n AND event_name IN (\n 'OrderFulfilled',\n 'OrdersMatched'\n )\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.seaport_1_5_sales\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n\n),\nraw_logs AS (\n SELECT\n *,\n IFF(\n topics [0] :: STRING IN (\n '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n ),\n 1,\n NULL\n ) AS om_event_index_raw,\n IFF(\n topics [0] :: STRING NOT IN (\n '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n ),\n SUBSTRING(\n DATA,\n 1,\n 66\n ),\n NULL\n ) AS order_hash,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n block_timestamp :: DATE >= '2023-04-27'\n AND block_number >= 42031942\n AND contract_address = '0x00000000000000adc04c56bf30ac9d3c0aaf14dc'\n AND topics [0] :: STRING IN (\n '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7',\n -- ordersMatched\n '0x9d9af8e38d66c62e2c12f0225249fd9d721c54b83f48d9352c97c6cacdcb6f31' -- orderFulfilled\n )\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.seaport_1_5_sales\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\nraw_logs_event_index_fill AS (\n SELECT\n *,\n IFF(\n om_event_index_raw IS NULL,\n NULL,\n SUM(om_event_index_raw) over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n )\n ) AS om_event_index\n FROM\n raw_logs\n),\nmao_orderhash AS (\n -- this helps us determine which orderhashes belong to OrderMatched as opposed to OrderFulfilled\n SELECT\n tx_hash,\n event_index,\n om_event_index,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented,\n utils.udf_hex_to_int(\n segmented [0] :: STRING\n ) / 32 AS length_index,\n utils.udf_hex_to_int(\n segmented [length_index] :: STRING\n ) AS orders_length,\n INDEX,\n '0x' || VALUE :: STRING AS orderhash,\n tx_hash || '-' || orderhash AS tx_hash_orderhash\n FROM\n raw_logs_event_index_fill,\n LATERAL FLATTEN(\n input => segmented\n )\n WHERE\n INDEX BETWEEN (\n length_index + 1\n )\n AND (\n orders_length + 1\n )\n AND topics [0] :: STRING = '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n),\n-- this big section below is for OrderFulfilled\ndecoded AS (\n SELECT\n tx_hash,\n decoded_log,\n event_index,\n full_decoded_log,\n CONCAT(\n tx_hash,\n '-',\n decoded_log :orderHash :: STRING\n ) AS tx_hash_orderhash,\n _log_id,\n _inserted_timestamp,\n LOWER(\n full_decoded_log :address :: STRING\n ) AS contract_address,\n full_decoded_log :name :: STRING AS event_name,\n CASE\n WHEN full_decoded_log :data [4] :value [0] [0] IN (\n 2,\n 3\n ) THEN 'buy'\n WHEN full_decoded_log :data [4] :value [0] [0] IN (1) THEN 'offer_accepted'\n ELSE NULL\n END AS trade_type\n FROM\n raw_decoded_logs\n WHERE\n event_name = 'OrderFulfilled'\n AND tx_hash_orderhash NOT IN (\n SELECT\n tx_hash_orderhash\n FROM\n mao_orderhash\n )\n),\noffer_length_count_buy AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [4] :value))\n WHERE\n trade_type = 'buy'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n),\noffer_length_count_offer AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [5] :value))\n WHERE\n trade_type = 'offer_accepted'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n),\nflat_raw AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_decoded_log :data AS full_data,\n _log_id,\n _inserted_timestamp,\n OBJECT_AGG(\n VALUE :name,\n VALUE :value\n ) AS decoded_output\n FROM\n decoded,\n LATERAL FLATTEN(\n input => full_decoded_log :data\n ) f\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type IS NOT NULL\n GROUP BY\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp\n),\nflat AS (\n SELECT\n r.tx_hash,\n r.event_index,\n contract_address,\n event_name,\n COALESCE (\n b.offer_length_raw,\n o.offer_length_raw,\n NULL\n ) AS offer_length,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp,\n decoded_output\n FROM\n flat_raw r\n LEFT JOIN offer_length_count_buy b\n ON r.tx_hash = b.tx_hash\n AND r.event_index = b.event_index\n LEFT JOIN offer_length_count_offer o\n ON r.tx_hash = o.tx_hash\n AND r.event_index = o.event_index\n WHERE\n offer_length IS NOT NULL\n),\nfiltered_private_offer_tx AS (\n SELECT\n tx_hash\n FROM\n flat\n WHERE\n trade_type = 'offer_accepted'\n AND full_data [3] :value :: STRING = '0x0000000000000000000000000000000000000000'\n),\nprivate_offer_tx_flat AS (\n SELECT\n tx_hash,\n ARRAY_AGG (\n CASE\n WHEN trade_type = 'buy' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_offerer,\n ARRAY_AGG(\n CASE\n WHEN trade_type = 'offer_accepted' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_recipient --(buyer) or receiver of the NFT\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n GROUP BY\n tx_hash\n),\nprivate_offer_tx_flat_null_offerer AS (\n -- mainly transfers via opensea as a result of a phishing scam)\n SELECT\n tx_hash,\n full_data [1] :value :: STRING AS private_seller -- person whose account is compromised\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat\n WHERE\n private_offerer IS NULL\n )\n AND trade_type = 'offer_accepted'\n),\nprivate_offer_tx_offerer_combined AS (\n SELECT\n t.tx_hash,\n t.private_offerer,\n t.private_recipient AS recipient_from_private_tx,\n n.private_seller,\n CASE\n WHEN t.private_offerer IS NULL THEN n.private_seller\n ELSE t.private_offerer\n END AS offerer_from_private_tx\n FROM\n private_offer_tx_flat t\n LEFT JOIN private_offer_tx_flat_null_offerer n\n ON t.tx_hash = n.tx_hash\n),\nbase_sales_buy AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n --seller\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n -- buyer\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n ) -- AND tx_type IS NOT NULL ; null tx type would mean that there aren't any considerations. The nft is transferred without asking for anything in exchange for it\n),\nbase_sales_buy_null_values AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND tx_type IS NULL\n),\nbase_sales_buy_public_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_public_nft_transfers_null_values AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_null_values\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_public_nft_transfers_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers_null_values\n),\nbase_sales_buy_private_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] :: STRING AS private_sale_recipient\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'private'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n),\nbase_sales_buy_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN first_flatten_index = 0 THEN raw_amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_buy_sale_amount_filter\n),\nbase_sales_buy_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw_,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_buy_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n),\nbase_sales_buy_sale_amount_null_values AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy_null_values\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_sale_amount_filter\n )\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_type IS NULL\n),\nbase_sales_buy_sale_amount_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_sale_amount_null_values\n),\nbase_sales_buy_combined AS (\n SELECT\n *\n FROM\n base_sales_buy\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_null_values\n),\nbase_sales_buy_final_public AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n recipient_temp AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_public_nft_transfers_combined n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n),\nbase_sales_buy_final_private AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n private_sale_recipient AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_private_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n),\nbase_sales_buy_final AS (\n SELECT\n *\n FROM\n base_sales_buy_final_public\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_final_private\n),\nbase_sales_offer_accepted AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :recipient :: STRING AS offerer_temp,\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :offerer :: STRING AS recipient_temp,\n CASE\n WHEN offerer_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output :offer [0] [3] :: INT / offer_length AS total_sale_amount_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled',\n 'OrdersMatched'\n )\n AND trade_type = 'offer_accepted'\n AND tx_type IS NOT NULL\n AND tx_hash IS NOT NULL\n),\nbase_sales_offer_accepted_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] AS private_recipient_from_consideration\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n),\nbase_sales_offer_accepted_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n),\nbase_sales_offer_accepted_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN address_list NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_sale_amount_filter\n),\nbase_sales_offer_accepted_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n currency_address,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n),\nbase_sales_offer_accepted_no_fees_tx AS (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_sale_amount_filter\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n),\nbase_sales_offer_accepted_no_fees_amount AS (\n SELECT\n tx_hash,\n event_index,\n ARRAY_AGG(\n t.value\n ) AS sale_values,\n sale_values [0] [1] :: STRING AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_no_fees_tx\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n GROUP BY\n tx_hash,\n event_index\n),\nbase_sales_offer_accepted_phishing_scam_amount AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n NULL AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_nft_transfers\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n),\nbase_sales_offer_accepted_sale_and_no_fees AS (\n SELECT\n *\n FROM\n base_sales_offer_accepted_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_no_fees_amount\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_phishing_scam_amount\n),\nbase_sales_offer_accepted_final AS (\n SELECT\n b.tx_hash,\n b.event_index,\n contract_address,\n event_name,\n offer_length,\n CASE\n WHEN sale_category = 'public' THEN offerer_temp\n ELSE COALESCE (\n private_offerer,\n offerer_from_private_tx\n )\n END AS offerer,\n orderHash,\n CASE\n WHEN sale_category = 'public' THEN recipient_temp\n WHEN sale_category = 'private'\n AND private_offerer IS NULL THEN private_recipient_from_consideration\n ELSE recipient_from_private_tx\n END AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address,\n tokenid,\n CASE\n WHEN token_type = '3' THEN number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n CASE\n WHEN private_offerer IS NULL\n AND private_seller IS NOT NULL THEN 0\n ELSE decoded_output :offer [0] [3] :: INT / offer_length\n END AS total_sale_amount_raw,\n platform_fee_raw_ :: INT / offer_length AS platform_fee_raw,\n creator_fee_raw_ :: INT / offer_length AS creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted b\n INNER JOIN base_sales_offer_accepted_sale_and_no_fees s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_offer_accepted_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n LEFT OUTER JOIN private_offer_tx_offerer_combined p\n ON b.tx_hash = p.tx_hash\n WHERE\n nft_address IS NOT NULL qualify ROW_NUMBER() over (\n PARTITION BY b.tx_hash,\n b.event_index,\n nft_address,\n tokenid,\n _log_id\n ORDER BY\n _inserted_timestamp ASC\n ) = 1\n),\n-- the new matchOrders logic starts here\norderhash_grouping_raw AS (\n SELECT\n tx_hash,\n event_index,\n order_hash,\n om_event_index,\n -- shows the order of multiple ordersmatched event in one tx\n om_event_index_raw,\n CASE\n WHEN om_event_index IS NULL THEN LEAD(om_event_index) ignore nulls over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n )\n ELSE NULL\n END AS om_event_index_fill -- shows all orderhashes and their grouping\n FROM\n raw_logs_event_index_fill\n),\norderhash_grouping_fill AS (\n SELECT\n tx_hash,\n event_index,\n order_hash,\n CONCAT(\n tx_hash,\n '-',\n order_hash\n ) AS tx_hash_orderhash,\n om_event_index,\n om_event_index_fill,\n om_event_index_raw,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n event_index ASC\n ) AS orderhash_order_within_group -- orderhash order within an orderhash group\n FROM\n orderhash_grouping_raw\n),\n-- item type references:\n-- 0 - eth\n-- 1 - erc20\n-- 2 - erc721\n-- 3 - erc1155\n-- 4 - erc721 w criteria,\n-- 5 - erc1155 w criteria\nmao_consideration_all AS (\n SELECT\n tx_hash,\n event_index,\n decoded_log,\n INDEX,\n orderhash,\n tx_hash_orderhash,\n decoded_log :offerer :: STRING AS offerer,\n decoded_log :recipient :: STRING AS recipient,\n VALUE,\n VALUE :amount :: INT AS amount,\n VALUE :identifier :: STRING AS identifier,\n VALUE :itemType :: INT AS item_type,\n VALUE :recipient :: STRING AS item_recipient,\n VALUE :token :: STRING AS item_token_address,\n decoded_log :offer [0] :amount :: INT AS offer_amount,\n decoded_log :offer [0] :identifier :: STRING AS offer_identifier,\n decoded_log :offer [0] :itemType :: INT AS offer_item_type,\n decoded_log :offer [0] :token :: STRING AS offer_item_token_address,\n IFF(item_type NOT IN (0, 1), CONCAT(item_token_address, '-', identifier, '-', amount), CONCAT(offer_item_token_address, '-', offer_identifier, '-', offer_amount)) AS nft_address_identifier,\n IFF(item_type NOT IN (0, 1), nft_address_identifier, NULL) AS nft_address_identifier_null,\n CASE\n WHEN item_type NOT IN (\n 0,\n 1\n ) THEN nft_address_identifier\n WHEN item_type IN (\n 0,\n 1\n )\n AND offer_item_type IN (\n 0,\n 1\n ) THEN LAG(nft_address_identifier_null) ignore nulls over (\n PARTITION BY tx_hash,\n event_index\n ORDER BY\n INDEX ASC\n )\n WHEN item_type IN (\n 0,\n 1\n )\n AND offer_item_type NOT IN (\n 0,\n 1\n ) THEN nft_address_identifier\n ELSE nft_address_identifier\n END AS nft_address_identifier_fill_raw,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n event_index\n ORDER BY\n INDEX ASC\n ) AS orderhash_within_event_index_rn,\n _log_id,\n _inserted_timestamp\n FROM\n raw_decoded_logs,\n LATERAL FLATTEN (\n input => decoded_log :consideration\n )\n WHERE\n event_name = 'OrderFulfilled'\n AND tx_hash_orderhash IN (\n SELECT\n tx_hash_orderhash\n FROM\n mao_orderhash\n )\n),\nmao_consideration_all_joined AS (\n SELECT\n *,\n CASE\n WHEN nft_address_identifier_null IS NULL\n AND offerer = recipient THEN LAG(nft_address_identifier_null) ignore nulls over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n event_index,\n INDEX ASC\n )\n ELSE nft_address_identifier_fill_raw\n END AS nft_address_identifier_fill,\n IFF(item_type NOT IN (0, 1)\n AND offer_item_type NOT IN (0, 1)\n AND decoded_log :consideration [0] :itemType :: INT NOT IN (0, 1), CONCAT(tx_hash_orderhash, '-', event_index), NULL) AS deals_tag,\n CONCAT(\n tx_hash_orderhash,\n '-',\n event_index\n ) AS event_index_tag -- tagging for deals tag\n FROM\n mao_consideration_all\n INNER JOIN orderhash_grouping_fill USING (\n tx_hash,\n tx_hash_orderhash,\n event_index\n )\n),\nmao_consideration_sale_amounts AS (\n SELECT\n tx_hash,\n orderhash,\n tx_hash_orderhash,\n orderhash_within_event_index_rn,\n om_event_index_fill,\n deals_tag,\n event_index_tag,\n event_index,\n INDEX,\n amount,\n identifier,\n item_type,\n item_token_address,\n item_token_address AS currency_address,\n item_recipient,\n nft_address_identifier_fill,\n CASE\n WHEN amount > 0\n AND ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill\n ORDER BY\n amount DESC\n ) = 1 THEN amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN item_recipient IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN sale_amount_raw_ = 0\n AND platform_fee_raw_ = 0 THEN amount\n ELSE 0\n END AS creator_fee_raw_,\n IFF(\n sale_amount_raw_ > 0,\n item_recipient,\n NULL\n ) AS sale_receiver_address\n FROM\n mao_consideration_all_joined\n WHERE\n item_type IN (\n 0,\n 1\n )\n AND nft_address_identifier_fill IS NOT NULL\n AND event_index_tag NOT IN (\n SELECT\n deals_tag\n FROM\n mao_consideration_all_joined\n WHERE\n deals_tag IS NOT NULL\n ) -- exclude deals\n),\nmao_nondeals_sale_amount AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill,\n currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw,\n SUM(platform_fee_raw_) AS platform_fee_raw,\n SUM(creator_fee_raw_) AS creator_fee_raw\n FROM\n mao_consideration_sale_amounts\n GROUP BY\n ALL\n),\nmao_nondeals_sale_amount_receiver AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill,\n sale_receiver_address,\n currency_address,\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw\n FROM\n mao_nondeals_sale_amount\n INNER JOIN mao_consideration_sale_amounts s USING (\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill,\n currency_address\n )\n WHERE\n s.sale_receiver_address IS NOT NULL\n),\nmao_deals_sale_amount AS (\n SELECT\n *,\n IFF(\n item_recipient = offerer,\n recipient,\n offerer\n ) AS payment_from_address,\n item_recipient AS payment_to_address,\n CASE\n WHEN ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n amount DESC\n ) = 1 THEN amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN item_recipient IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN sale_amount_raw_ = 0\n AND platform_fee_raw_ = 0 THEN amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n mao_consideration_all_joined\n WHERE\n item_type IN (\n 0,\n 1\n )\n AND event_index_tag IN (\n SELECT\n deals_tag\n FROM\n mao_consideration_all_joined\n WHERE\n deals_tag IS NOT NULL\n ) -- include deals only\n),\nmao_deals_sale_amount_agg AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n payment_from_address,\n payment_to_address,\n 1 AS deals_sale_rn,\n item_token_address AS currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw,\n SUM(platform_fee_raw_) AS platform_fee_raw,\n SUM(creator_fee_raw_) AS creator_fee_raw\n FROM\n mao_deals_sale_amount\n GROUP BY\n ALL\n),\nmao_deals_nft_transfers AS (\n SELECT\n *,\n IFF(\n item_recipient = offerer,\n recipient,\n offerer\n ) AS nft_from_address,\n item_recipient AS nft_to_address,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n INDEX ASC\n ) AS deals_nft_transfers_rn\n FROM\n mao_consideration_all_joined\n WHERE\n deals_tag IS NOT NULL\n),\nmao_deals_nft_transfers_sales AS (\n SELECT\n t.tx_hash,\n t.om_event_index_fill,\n orderhash,\n tx_hash_orderhash,\n event_index,\n INDEX,\n orderhash_within_event_index_rn,\n deals_tag,\n event_index_tag,\n nft_address_identifier_fill,\n item_token_address AS nft_address,\n identifier AS tokenid,\n item_type,\n IFF(item_type IN (2, 4), 'erc721', 'erc1155') AS nft_standard,\n IFF(\n nft_standard = 'erc1155',\n amount,\n NULL\n ) AS erc1155_value,\n nft_from_address AS seller_address,\n nft_to_address AS buyer_address,\n COALESCE(\n sale_amount_raw,\n 0\n ) AS sale_amount_raw,\n COALESCE(\n platform_fee_raw,\n 0\n ) AS platform_fee_raw,\n COALESCE(\n creator_fee_raw,\n 0\n ) AS creator_fee_raw,\n currency_address,\n decoded_log,\n offerer,\n recipient,\n _log_id,\n _inserted_timestamp\n FROM\n mao_deals_nft_transfers t\n LEFT JOIN mao_deals_sale_amount_agg s\n ON t.tx_hash = s.tx_hash\n AND t.om_event_index_fill = s.om_event_index_fill\n AND s.payment_from_address = t.nft_to_address\n AND s.payment_to_address = t.nft_from_address\n AND s.deals_sale_rn = t.deals_nft_transfers_rn\n),\nmao_nondeals_nft_transfers_sales AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n -- the event index for the ordermatched\n orderhash,\n tx_hash_orderhash,\n -- tx hash and orderhash\n event_index,\n -- event index for orderfulfilled\n INDEX,\n -- index for flattened for consideration\n orderhash_within_event_index_rn,\n -- index of orderhash within a single event index\n deals_tag,\n event_index_tag,\n -- gets the tx hash and event index to tag seaport deals\n A.nft_address_identifier_fill,\n item_token_address AS nft_address,\n identifier AS tokenid,\n item_type,\n IFF(item_type IN (2, 4), 'erc721', 'erc1155') AS nft_standard,\n IFF(\n nft_standard = 'erc1155',\n amount,\n NULL\n ) AS erc1155_value,\n item_recipient AS buyer_address,\n sale_receiver_address,\n IFF(\n item_recipient = offerer,\n recipient,\n offerer\n ) AS seller_address_temp,\n IFF(\n seller_address_temp = buyer_address,\n sale_receiver_address,\n seller_address_temp\n ) AS seller_address,\n offerer,\n recipient,\n decoded_log,\n currency_address,\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw,\n _log_id,\n _inserted_timestamp\n FROM\n mao_consideration_all_joined A\n LEFT JOIN mao_nondeals_sale_amount_receiver USING (\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill\n )\n WHERE\n deals_tag IS NULL\n AND item_type NOT IN (\n 0,\n 1\n )\n),\nmao_nondeals_nft_transfers_sales_fill AS (\n SELECT\n *,\n CASE\n WHEN sale_amount_raw IS NULL THEN COALESCE(LAG(sale_amount_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(sale_amount_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), 0)\n ELSE sale_amount_raw\n END AS sale_amount_raw_fill,\n CASE\n WHEN platform_fee_raw IS NULL THEN COALESCE(LAG(platform_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(platform_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), 0)\n ELSE platform_fee_raw\n END AS platform_fee_raw_fill,\n CASE\n WHEN creator_fee_raw IS NULL THEN COALESCE(LAG(creator_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(creator_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), 0)\n ELSE creator_fee_raw\n END AS creator_fee_raw_fill,\n CASE\n WHEN currency_address IS NULL THEN COALESCE(LAG(currency_address) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(currency_address) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), NULL)\n ELSE currency_address\n END AS currency_address_fill\n FROM\n mao_nondeals_nft_transfers_sales\n),\nmao_nondeals_offer_length_one AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n event_index,\n COUNT(1) AS offer_length_one -- counting how many nfts are in this sale batch , need to add with the following subquery\n FROM\n mao_nondeals_nft_transfers_sales\n WHERE\n sale_amount_raw IS NULL\n GROUP BY\n ALL\n),\nmao_nondeals_offer_length_two AS (\n -- measuring offer length for non batched\n SELECT\n tx_hash,\n om_event_index_fill,\n event_index,\n COUNT(1) AS offer_length_two -- counting how many nfts are in this sale batch , need to add with the following subquery\n FROM\n mao_nondeals_nft_transfers_sales\n WHERE\n sale_amount_raw IS NOT NULL\n GROUP BY\n ALL\n),\nmao_nondeals_offer_length AS (\n -- all sales are not grouped by event index, but grouped by the orderMatched index\n SELECT\n tx_hash,\n om_event_index_fill,\n event_index,\n offer_length_two + COALESCE(\n offer_length_one,\n 0\n ) AS offer_length --offer length for all\n FROM\n mao_nondeals_offer_length_two\n LEFT JOIN mao_nondeals_offer_length_one USING (\n tx_hash,\n om_event_index_fill,\n event_index\n )\n),\nmao_nondeals_nft_transfers_sales_fill_offer_length AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n -- the event index for the ordermatched\n orderhash,\n tx_hash_orderhash,\n -- tx hash and orderhash\n event_index,\n -- event index for orderfulfilled\n INDEX,\n -- index for flattened for consideration\n orderhash_within_event_index_rn,\n -- index of orderhash within a single event index\n deals_tag,\n event_index_tag,\n -- gets the tx hash and event index to tag seaport deals\n nft_address_identifier_fill,\n nft_address,\n item_type,\n tokenid,\n nft_standard,\n erc1155_value,\n buyer_address,\n seller_address,\n offerer,\n recipient,\n decoded_log,\n currency_address_fill AS currency_address,\n offer_length,\n sale_amount_raw_fill / offer_length AS sale_amount_raw,\n platform_fee_raw_fill / offer_length AS platform_fee_raw,\n creator_fee_raw_fill / offer_length AS creator_fee_raw,\n _log_id,\n _inserted_timestamp\n FROM\n mao_nondeals_nft_transfers_sales_fill\n INNER JOIN mao_nondeals_offer_length USING (\n tx_hash,\n om_event_index_fill,\n event_index\n )\n),\nmao_combined_base AS (\n -- includes both deals and nondeals\n SELECT\n tx_hash,\n om_event_index_fill,\n IFF(\n decoded_log :consideration [0] :itemType :: INT IN (\n 0,\n 1\n ),\n 'sale',\n 'bid_won'\n ) AS event_type,\n IFF(\n event_type = 'sale',\n 'mao_deals_buy',\n 'mao_deals_oa'\n ) AS category,\n orderhash,\n tx_hash_orderhash,\n event_index,\n INDEX,\n orderhash_within_event_index_rn,\n deals_tag,\n event_index_tag,\n nft_address_identifier_fill,\n nft_address,\n item_type,\n tokenid,\n nft_standard,\n erc1155_value,\n seller_address,\n buyer_address,\n currency_address,\n 1 AS offer_length,\n -- deals with always have 1 since we'll not be dividing the sale amount with number of nfts exchanged since nfts are also used as part of the offer\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n sale_amount_raw + total_fees_raw AS total_price_raw,\n offerer,\n recipient,\n decoded_log,\n _log_id,\n _inserted_timestamp\n FROM\n mao_deals_nft_transfers_sales\n UNION ALL\n SELECT\n tx_hash,\n om_event_index_fill,\n -- the event index for the ordermatched\n IFF(\n decoded_log :consideration [0] :itemType :: INT IN (\n 0,\n 1\n ),\n 'sale',\n 'bid_won'\n ) AS event_type,\n IFF(\n event_type = 'sale',\n 'mao_nondeals_buy',\n 'mao_nondeals_oa'\n ) AS category,\n orderhash,\n tx_hash_orderhash,\n event_index,\n INDEX,\n orderhash_within_event_index_rn,\n deals_tag,\n event_index_tag,\n nft_address_identifier_fill,\n nft_address,\n item_type,\n tokenid,\n nft_standard,\n erc1155_value,\n seller_address,\n buyer_address,\n currency_address,\n offer_length,\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n sale_amount_raw + total_fees_raw AS total_price_raw,\n offerer,\n recipient,\n decoded_log,\n _log_id,\n _inserted_timestamp\n FROM\n mao_nondeals_nft_transfers_sales_fill_offer_length\n),\nbase_sales_buy_and_offer AS (\n -- this part combines OrderFulfilled subqueries with OrdersMatched (mao)\n SELECT\n tx_hash,\n 'fulfil_buy' AS category,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n NULL AS seller_address_temp,\n NULL AS buyer_address_temp,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_final\n UNION ALL\n SELECT\n tx_hash,\n 'fulfil_oa' AS category,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n NULL AS seller_address_temp,\n NULL AS buyer_address_temp,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted_final\n UNION ALL\n SELECT\n tx_hash,\n category,\n event_index,\n '0x00000000000000adc04c56bf30ac9d3c0aaf14dc' AS contract_address,\n 'OrderFulfilled' AS event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n CASE\n WHEN recipient = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n IFF(\n event_type = 'sale',\n 'buy',\n 'offer_accepted'\n ) AS trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_log :zone :: STRING AS ZONE,\n item_type AS tx_type,\n item_type AS token_type,\n nft_address AS nft_address_temp,\n tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_log,\n decoded_log :consideration AS consideration,\n decoded_log :offer AS offer,\n seller_address AS seller_address_temp,\n buyer_address AS buyer_address_temp,\n _log_id,\n _inserted_timestamp\n FROM\n mao_combined_base\n),\ntx_data AS (\n SELECT\n tx_hash,\n block_timestamp,\n block_number,\n from_address,\n to_address,\n origin_function_signature,\n tx_fee,\n input_data\n FROM\n polygon.core.fact_transactions\n WHERE\n block_timestamp :: DATE >= '2023-04-27'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.seaport_1_5_sales\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\nnft_transfer_operator AS (\n SELECT\n tx_hash,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS nft_address_from_transfers,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS nft_address_temp,\n --or operator_address\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS offerer,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: STRING AS tokenid,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS erc1155_value\n FROM\n polygon.core.fact_event_logs\n WHERE\n block_timestamp :: DATE >= '2023-04-27'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n AND topics [0] :: STRING IN (\n '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62',\n '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb'\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.seaport_1_5_sales\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\nfinal_seaport AS (\n SELECT\n t.block_number,\n t.block_timestamp,\n s.tx_hash,\n category,\n s.event_index,\n s.contract_address AS platform_address,\n 'opensea' AS platform_name,\n 'seaport_1_5' AS platform_exchange_version,\n s.event_name,\n offer_length,\n IFF(category IN ('fulfil_oa', 'fulfil_buy'), offerer, seller_address_temp) AS seller_address,\n orderHash,\n IFF(category IN ('fulfil_oa', 'fulfil_buy'), recipient, buyer_address_temp) AS buyer_address,\n sale_category,\n trade_type,\n CASE\n WHEN trade_type = 'buy' THEN 'sale'\n WHEN trade_type = 'offer_accepted' THEN 'bid_won'\n END AS event_type,\n is_price_estimated,\n ZONE,\n tx_type,\n s.token_type,\n s.nft_address_temp,\n CASE\n WHEN nft_address_from_transfers IS NOT NULL THEN nft_address_from_transfers\n ELSE s.nft_address_temp\n END AS nft_address,\n s.tokenId,\n s.erc1155_value,\n s.currency_address,\n total_sale_amount_raw AS total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n t.tx_fee,\n t.from_address AS origin_from_address,\n t.to_address AS origin_to_address,\n t.origin_function_signature,\n decoded_output,\n consideration,\n offer,\n input_data,\n CONCAT(\n nft_address,\n '-',\n s.tokenId,\n '-',\n platform_exchange_version,\n '-',\n _log_id\n ) AS nft_log_id,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_and_offer s\n INNER JOIN tx_data t USING (tx_hash)\n LEFT JOIN nft_transfer_operator o USING (\n tx_hash,\n nft_address_temp,\n tokenid,\n recipient\n ) qualify(ROW_NUMBER() over(PARTITION BY nft_log_id\n ORDER BY\n _inserted_timestamp DESC)) = 1\n)\nSELECT\n *\nFROM\n final_seaport", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.polygon_models.silver__tofunft_sales": {"database": "polygon", "schema": "silver", "name": "silver__tofunft_sales", "resource_type": "model", "package_name": "polygon_models", "path": "silver/NFT/sales/silver__tofunft_sales.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.sql", "unique_id": "model.polygon_models.silver__tofunft_sales", "fqn": ["polygon_models", "silver", "NFT", "sales", "silver__tofunft_sales"], "alias": "tofunft_sales", "checksum": {"name": "sha256", "checksum": "a72101483de5340066f24a76dd251b9453c3b8051fe131780ef8063c49227643"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "nft", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "nft", "curated"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_ADDRESS": {"name": "PLATFORM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SELLER_ADDRESS": {"name": "SELLER_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BUYER_ADDRESS": {"name": "BUYER_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NFT_ADDRESS": {"name": "NFT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKENID": {"name": "TOKENID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CURRENCY_ADDRESS": {"name": "CURRENCY_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_PRICE_RAW": {"name": "TOTAL_PRICE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_FEES_RAW": {"name": "TOTAL_FEES_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_FEE_RAW": {"name": "PLATFORM_FEE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATOR_FEE_RAW": {"name": "CREATOR_FEE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_FEE": {"name": "TX_FEE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NFT_LOG_ID": {"name": "NFT_LOG_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_TYPE": {"name": "EVENT_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INPUT_DATA": {"name": "INPUT_DATA", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/NFT/sales/silver__tofunft_sales.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "nft", "curated"]}, "created_at": 1764018435.1130514, "relation_name": "polygon.silver.tofunft_sales", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','nft','curated']\n) }}\n\nWITH logs_raw AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n decoded_log,\n decoded_log :inventory :kind :: INT AS kind,\n decoded_log :inventory :status :: INT AS status,\n decoded_log :inventory :buyer :: STRING AS buyer_address,\n decoded_log :inventory :seller :: STRING AS seller_address,\n decoded_log :inventory :currency :: STRING AS currency_address,\n decoded_log :inventory :netPrice :: INT AS net_price_raw,\n decoded_log :inventory :price :: INT AS price_raw,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n WHERE\n contract_address = '0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f'\n AND block_timestamp :: DATE >= '2021-10-01'\n AND event_name = 'EvInventoryUpdate'\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n{% endif %}\n),\nlogs_raw_rn AS (\n SELECT\n *,\n ROW_NUMBER() over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) AS intra_tx_grouping\n FROM\n logs_raw\n WHERE\n status = 1\n),\ntraces_raw AS (\n SELECT\n tx_hash,\n trace_index,\n from_address,\n to_address,\n input,\n regexp_substr_all(SUBSTR(input, 11, len(input)), '.{64}') AS segmented_data,\n (\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) / 32\n ) :: INT AS intent_start_index,\n -- start of intent\n (\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) / 32\n ) :: INT AS detail_start_index,\n -- detail\n (\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) / 32\n ) :: INT AS sigintent_start_index,\n --sigIntent\n (\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) / 32\n ) :: INT AS sigdetail_start_index,\n --sigDetail\n '0x' || SUBSTR(\n segmented_data [intent_start_index],\n 25\n ) :: STRING AS user_address,\n '0x' || SUBSTR(\n segmented_data [detail_start_index+1],\n 25\n ) :: STRING AS signer_address,\n '0x' || SUBSTR(\n segmented_data [detail_start_index+6],\n 25\n ) :: STRING AS caller_address,\n '0x' || SUBSTR(\n segmented_data [detail_start_index+7],\n 25\n ) :: STRING AS currency_address,\n (\n utils.udf_hex_to_int(\n segmented_data [detail_start_index + 8] :: STRING\n )\n ) :: INT AS price_raw,\n (\n (\n utils.udf_hex_to_int(\n segmented_data [detail_start_index + 9] :: STRING\n )\n ) / 1e6\n ) AS incentive_rate,\n (\n utils.udf_hex_to_int(\n segmented_data [detail_start_index + 11] :: STRING\n ) / 32\n ) :: INT AS bundle_index,\n (\n (\n utils.udf_hex_to_int(\n segmented_data [detail_start_index + 14] :: STRING\n )\n ) / 1e6\n ) AS fee_rate,\n (\n (\n utils.udf_hex_to_int(\n segmented_data [detail_start_index + 15] :: STRING\n )\n ) / 1e6\n ) AS royalty_rate,\n '0x' || SUBSTR(\n segmented_data [detail_start_index+17],\n 25\n ) :: STRING AS fee_receiver_address,\n '0x' || SUBSTR(\n segmented_data [detail_start_index+18],\n 25\n ) :: STRING AS royalty_receiver_address,\n (\n utils.udf_hex_to_int(\n segmented_data [detail_start_index + bundle_index] :: STRING\n )\n ) :: INT AS bundle_array_size\n FROM\n {{ ref('core__fact_traces') }}\n WHERE\n block_timestamp :: DATE >= '2021-10-01'\n AND to_address = '0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f'\n AND LEFT(\n input,\n 10\n ) = '0xba847759'\n AND trace_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\ntraces_raw_rn AS (\n SELECT\n *,\n ROW_NUMBER() over (\n PARTITION BY tx_hash\n ORDER BY\n trace_index ASC\n ) AS intra_tx_grouping\n FROM\n traces_raw\n),\nflattened_details AS (\n SELECT\n tx_hash,\n intra_tx_grouping,\n INDEX,\n VALUE,\n TRUNC(\n (ROW_NUMBER() over (PARTITION BY tx_hash, intra_tx_grouping\n ORDER BY\n INDEX ASC) - 1) / 7\n ) AS trunc_grouping\n FROM\n traces_raw_rn,\n LATERAL FLATTEN (\n input => segmented_data\n )\n WHERE\n INDEX BETWEEN (\n detail_start_index + bundle_index + bundle_array_size + 1\n )\n AND (\n detail_start_index + bundle_index + bundle_array_size + (\n bundle_array_size * 7\n )\n )\n),\nagg_details AS (\n SELECT\n tx_hash,\n intra_tx_grouping,\n trunc_grouping,\n ARRAY_AGG(VALUE) within GROUP (\n ORDER BY\n INDEX ASC\n ) AS grouped_data\n FROM\n flattened_details\n GROUP BY\n ALL\n),\nbase AS (\n SELECT\n block_timestamp,\n block_number,\n tx_hash,\n event_index,\n contract_address,\n intra_tx_grouping,\n trunc_grouping,\n user_address,\n signer_address,\n caller_address,\n fee_rate,\n royalty_rate,\n fee_receiver_address,\n royalty_receiver_address,\n bundle_array_size,\n '0x' || SUBSTR(\n grouped_data [0],\n 25\n ) :: STRING AS nft_address,\n (\n utils.udf_hex_to_int(\n grouped_data [1] :: STRING\n )\n ) :: STRING AS tokenId,\n (\n utils.udf_hex_to_int(\n grouped_data [2] :: STRING\n )\n ) :: STRING AS erc1155_value_raw,\n kind,\n status,\n buyer_address,\n seller_address,\n IFF(\n l.currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n l.currency_address\n ) AS currency_address,\n t.price_raw AS price_raw_traces,\n net_price_raw,\n l.price_raw AS price_raw_logs,\n (\n net_price_raw / bundle_array_size\n ) :: INT AS total_price_raw,\n (\n price_raw_logs * fee_rate / bundle_array_size\n ) :: INT AS platform_fee_raw,\n (\n price_raw_logs * royalty_rate / bundle_array_size\n ) :: INT AS creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n _log_id,\n _inserted_timestamp\n FROM\n agg_details A\n INNER JOIN traces_raw_rn t USING (\n tx_hash,\n intra_tx_grouping\n )\n INNER JOIN logs_raw_rn l USING (\n tx_hash,\n intra_tx_grouping\n )\n),\nnft_details AS (\n SELECT\n contract_address AS nft_address,\n token_transfer_type\n FROM\n {{ ref('nft__ez_nft_transfers') }}\n WHERE\n block_timestamp :: DATE >= '2021-10-01'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n base\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n\nqualify ROW_NUMBER() over (\n PARTITION BY contract_address\n ORDER BY\n event_index ASC\n) = 1\n),\ntx_data AS (\n SELECT\n tx_hash,\n from_address,\n to_address,\n origin_function_signature,\n tx_fee,\n input_data\n FROM\n {{ ref('core__fact_transactions') }}\n WHERE\n block_timestamp :: DATE >= '2021-10-01'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address AS platform_address,\n 'tofunft' AS platform_name,\n 'tofunft v1' AS platform_exchange_version,\n intra_tx_grouping,\n trunc_grouping,\n user_address,\n signer_address,\n caller_address,\n fee_rate,\n royalty_rate,\n fee_receiver_address,\n royalty_receiver_address,\n bundle_array_size,\n nft_address,\n tokenId,\n token_transfer_type,\n IFF(\n token_transfer_type = 'erc721_Transfer',\n NULL,\n erc1155_value_raw\n ) AS erc1155_value,\n kind,\n CASE\n WHEN kind = 1 THEN 'sale'\n ELSE 'bid_won'\n END AS event_type,\n status,\n buyer_address,\n seller_address,\n currency_address,\n price_raw_traces,\n net_price_raw,\n price_raw_logs,\n total_price_raw,\n platform_fee_raw,\n creator_fee_raw,\n total_fees_raw,\n _log_id,\n _inserted_timestamp,\n CONCAT(\n nft_address,\n '-',\n tokenId,\n '-',\n platform_exchange_version,\n '-',\n _log_id\n ) AS nft_log_id,\n from_address AS origin_from_address,\n to_address AS origin_to_address,\n origin_function_signature,\n tx_fee,\n input_data\nFROM\n base\n INNER JOIN nft_details USING (nft_address)\n INNER JOIN tx_data USING (tx_hash)", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "core__fact_traces", "package": null, "version": null}, {"name": "nft__ez_nft_transfers", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__fact_traces", "model.fsc_evm.nft__ez_nft_transfers", "model.fsc_evm.core__fact_transactions"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.sql", "compiled": true, "compiled_code": "\n\nWITH logs_raw AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n decoded_log,\n decoded_log :inventory :kind :: INT AS kind,\n decoded_log :inventory :status :: INT AS status,\n decoded_log :inventory :buyer :: STRING AS buyer_address,\n decoded_log :inventory :seller :: STRING AS seller_address,\n decoded_log :inventory :currency :: STRING AS currency_address,\n decoded_log :inventory :netPrice :: INT AS net_price_raw,\n decoded_log :inventory :price :: INT AS price_raw,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.ez_decoded_event_logs\n WHERE\n contract_address = '0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f'\n AND block_timestamp :: DATE >= '2021-10-01'\n AND event_name = 'EvInventoryUpdate'\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.tofunft_sales\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n\n),\nlogs_raw_rn AS (\n SELECT\n *,\n ROW_NUMBER() over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) AS intra_tx_grouping\n FROM\n logs_raw\n WHERE\n status = 1\n),\ntraces_raw AS (\n SELECT\n tx_hash,\n trace_index,\n from_address,\n to_address,\n input,\n regexp_substr_all(SUBSTR(input, 11, len(input)), '.{64}') AS segmented_data,\n (\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) / 32\n ) :: INT AS intent_start_index,\n -- start of intent\n (\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) / 32\n ) :: INT AS detail_start_index,\n -- detail\n (\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) / 32\n ) :: INT AS sigintent_start_index,\n --sigIntent\n (\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) / 32\n ) :: INT AS sigdetail_start_index,\n --sigDetail\n '0x' || SUBSTR(\n segmented_data [intent_start_index],\n 25\n ) :: STRING AS user_address,\n '0x' || SUBSTR(\n segmented_data [detail_start_index+1],\n 25\n ) :: STRING AS signer_address,\n '0x' || SUBSTR(\n segmented_data [detail_start_index+6],\n 25\n ) :: STRING AS caller_address,\n '0x' || SUBSTR(\n segmented_data [detail_start_index+7],\n 25\n ) :: STRING AS currency_address,\n (\n utils.udf_hex_to_int(\n segmented_data [detail_start_index + 8] :: STRING\n )\n ) :: INT AS price_raw,\n (\n (\n utils.udf_hex_to_int(\n segmented_data [detail_start_index + 9] :: STRING\n )\n ) / 1e6\n ) AS incentive_rate,\n (\n utils.udf_hex_to_int(\n segmented_data [detail_start_index + 11] :: STRING\n ) / 32\n ) :: INT AS bundle_index,\n (\n (\n utils.udf_hex_to_int(\n segmented_data [detail_start_index + 14] :: STRING\n )\n ) / 1e6\n ) AS fee_rate,\n (\n (\n utils.udf_hex_to_int(\n segmented_data [detail_start_index + 15] :: STRING\n )\n ) / 1e6\n ) AS royalty_rate,\n '0x' || SUBSTR(\n segmented_data [detail_start_index+17],\n 25\n ) :: STRING AS fee_receiver_address,\n '0x' || SUBSTR(\n segmented_data [detail_start_index+18],\n 25\n ) :: STRING AS royalty_receiver_address,\n (\n utils.udf_hex_to_int(\n segmented_data [detail_start_index + bundle_index] :: STRING\n )\n ) :: INT AS bundle_array_size\n FROM\n polygon.core.fact_traces\n WHERE\n block_timestamp :: DATE >= '2021-10-01'\n AND to_address = '0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f'\n AND LEFT(\n input,\n 10\n ) = '0xba847759'\n AND trace_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.tofunft_sales\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\ntraces_raw_rn AS (\n SELECT\n *,\n ROW_NUMBER() over (\n PARTITION BY tx_hash\n ORDER BY\n trace_index ASC\n ) AS intra_tx_grouping\n FROM\n traces_raw\n),\nflattened_details AS (\n SELECT\n tx_hash,\n intra_tx_grouping,\n INDEX,\n VALUE,\n TRUNC(\n (ROW_NUMBER() over (PARTITION BY tx_hash, intra_tx_grouping\n ORDER BY\n INDEX ASC) - 1) / 7\n ) AS trunc_grouping\n FROM\n traces_raw_rn,\n LATERAL FLATTEN (\n input => segmented_data\n )\n WHERE\n INDEX BETWEEN (\n detail_start_index + bundle_index + bundle_array_size + 1\n )\n AND (\n detail_start_index + bundle_index + bundle_array_size + (\n bundle_array_size * 7\n )\n )\n),\nagg_details AS (\n SELECT\n tx_hash,\n intra_tx_grouping,\n trunc_grouping,\n ARRAY_AGG(VALUE) within GROUP (\n ORDER BY\n INDEX ASC\n ) AS grouped_data\n FROM\n flattened_details\n GROUP BY\n ALL\n),\nbase AS (\n SELECT\n block_timestamp,\n block_number,\n tx_hash,\n event_index,\n contract_address,\n intra_tx_grouping,\n trunc_grouping,\n user_address,\n signer_address,\n caller_address,\n fee_rate,\n royalty_rate,\n fee_receiver_address,\n royalty_receiver_address,\n bundle_array_size,\n '0x' || SUBSTR(\n grouped_data [0],\n 25\n ) :: STRING AS nft_address,\n (\n utils.udf_hex_to_int(\n grouped_data [1] :: STRING\n )\n ) :: STRING AS tokenId,\n (\n utils.udf_hex_to_int(\n grouped_data [2] :: STRING\n )\n ) :: STRING AS erc1155_value_raw,\n kind,\n status,\n buyer_address,\n seller_address,\n IFF(\n l.currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n l.currency_address\n ) AS currency_address,\n t.price_raw AS price_raw_traces,\n net_price_raw,\n l.price_raw AS price_raw_logs,\n (\n net_price_raw / bundle_array_size\n ) :: INT AS total_price_raw,\n (\n price_raw_logs * fee_rate / bundle_array_size\n ) :: INT AS platform_fee_raw,\n (\n price_raw_logs * royalty_rate / bundle_array_size\n ) :: INT AS creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n _log_id,\n _inserted_timestamp\n FROM\n agg_details A\n INNER JOIN traces_raw_rn t USING (\n tx_hash,\n intra_tx_grouping\n )\n INNER JOIN logs_raw_rn l USING (\n tx_hash,\n intra_tx_grouping\n )\n),\nnft_details AS (\n SELECT\n contract_address AS nft_address,\n token_transfer_type\n FROM\n polygon.nft.ez_nft_transfers\n WHERE\n block_timestamp :: DATE >= '2021-10-01'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n base\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.tofunft_sales\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n\nqualify ROW_NUMBER() over (\n PARTITION BY contract_address\n ORDER BY\n event_index ASC\n) = 1\n),\ntx_data AS (\n SELECT\n tx_hash,\n from_address,\n to_address,\n origin_function_signature,\n tx_fee,\n input_data\n FROM\n polygon.core.fact_transactions\n WHERE\n block_timestamp :: DATE >= '2021-10-01'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.tofunft_sales\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address AS platform_address,\n 'tofunft' AS platform_name,\n 'tofunft v1' AS platform_exchange_version,\n intra_tx_grouping,\n trunc_grouping,\n user_address,\n signer_address,\n caller_address,\n fee_rate,\n royalty_rate,\n fee_receiver_address,\n royalty_receiver_address,\n bundle_array_size,\n nft_address,\n tokenId,\n token_transfer_type,\n IFF(\n token_transfer_type = 'erc721_Transfer',\n NULL,\n erc1155_value_raw\n ) AS erc1155_value,\n kind,\n CASE\n WHEN kind = 1 THEN 'sale'\n ELSE 'bid_won'\n END AS event_type,\n status,\n buyer_address,\n seller_address,\n currency_address,\n price_raw_traces,\n net_price_raw,\n price_raw_logs,\n total_price_raw,\n platform_fee_raw,\n creator_fee_raw,\n total_fees_raw,\n _log_id,\n _inserted_timestamp,\n CONCAT(\n nft_address,\n '-',\n tokenId,\n '-',\n platform_exchange_version,\n '-',\n _log_id\n ) AS nft_log_id,\n from_address AS origin_from_address,\n to_address AS origin_to_address,\n origin_function_signature,\n tx_fee,\n input_data\nFROM\n base\n INNER JOIN nft_details USING (nft_address)\n INNER JOIN tx_data USING (tx_hash)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.polygon_models.silver__complete_nft_sales": {"database": "polygon", "schema": "silver", "name": "silver__complete_nft_sales", "resource_type": "model", "package_name": "polygon_models", "path": "silver/NFT/sales/silver__complete_nft_sales.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.sql", "unique_id": "model.polygon_models.silver__complete_nft_sales", "fqn": ["polygon_models", "silver", "NFT", "sales", "silver__complete_nft_sales"], "alias": "complete_nft_sales", "checksum": {"name": "sha256", "checksum": "cd8d246cbea773125c88065bf444d18d6626df9439ab10d2fe5e81e0639ceab4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "nft", "curated", "heal"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(origin_function_signature, event_type, platform_address, platform_exchange_version, seller_address, buyer_address, nft_address, project_name, currency_address, currency_symbol), SUBSTRING(tx_hash, origin_function_signature, origin_from_address, origin_to_address, event_type, platform_address, platform_exchange_version, seller_address, buyer_address, nft_address, project_name, currency_address, currency_symbol)", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["block_number", "platform_exchange_version"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE", "platform_name"]}, "tags": ["silver", "nft", "curated", "heal"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_ADDRESS": {"name": "PLATFORM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_NAME": {"name": "PLATFORM_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SELLER_ADDRESS": {"name": "SELLER_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BUYER_ADDRESS": {"name": "BUYER_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NFT_ADDRESS": {"name": "NFT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKENID": {"name": "TOKENID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CURRENCY_ADDRESS": {"name": "CURRENCY_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRICE": {"name": "PRICE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRICE_USD": {"name": "PRICE_USD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_FEES": {"name": "TOTAL_FEES", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_FEE": {"name": "PLATFORM_FEE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATOR_FEE": {"name": "CREATOR_FEE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_FEES_USD": {"name": "TOTAL_FEES_USD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_FEE_USD": {"name": "PLATFORM_FEE_USD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATOR_FEE_USD": {"name": "CREATOR_FEE_USD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_FEE": {"name": "TX_FEE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NFT_LOG_ID": {"name": "NFT_LOG_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_LOG_ID": {"name": "_LOG_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_TYPE": {"name": "EVENT_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INPUT_DATA": {"name": "INPUT_DATA", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/NFT/sales/silver__complete_nft_sales.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["block_number", "platform_exchange_version"], "cluster_by": ["block_timestamp::DATE", "platform_name"], "tags": ["silver", "nft", "curated", "heal"], "post-hook": ["ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(origin_function_signature, event_type, platform_address, platform_exchange_version, seller_address, buyer_address, nft_address, project_name, currency_address, currency_symbol), SUBSTRING(tx_hash, origin_function_signature, origin_from_address, origin_to_address, event_type, platform_address, platform_exchange_version, seller_address, buyer_address, nft_address, project_name, currency_address, currency_symbol)"]}, "created_at": 1764018434.379357, "relation_name": "polygon.silver.complete_nft_sales", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform_exchange_version'],\n cluster_by = ['block_timestamp::DATE','platform_name'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(origin_function_signature, event_type, platform_address, platform_exchange_version, seller_address, buyer_address, nft_address, project_name, currency_address, currency_symbol), SUBSTRING(tx_hash, origin_function_signature, origin_from_address, origin_to_address, event_type, platform_address, platform_exchange_version, seller_address, buyer_address, nft_address, project_name, currency_address, currency_symbol)\",\n tags = ['silver','nft','curated', 'heal']\n) }}\n\nWITH nft_base_models AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n seller_address,\n buyer_address,\n nft_address,\n erc1155_value :: STRING AS erc1155_value,\n tokenId,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n tx_fee,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n input_data,\n nft_log_id,\n _log_id,\n _inserted_timestamp\n FROM\n {{ ref('silver__seaport_1_1_sales') }}\n\n{% if is_incremental() and 'seaport_1_1' not in var('HEAL_MODELS') %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ var(\"LOOKBACK\", \"4 hours\") }}'\n FROM\n {{ this }}\n )\n{% endif %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n seller_address,\n buyer_address,\n nft_address,\n erc1155_value :: STRING AS erc1155_value,\n tokenId,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n tx_fee,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n input_data,\n nft_log_id,\n _log_id,\n _inserted_timestamp\nFROM\n {{ ref('silver__seaport_1_4_sales') }}\n\n{% if is_incremental() and 'seaport_1_4' not in var('HEAL_MODELS') %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ var(\"LOOKBACK\", \"4 hours\") }}'\n FROM\n {{ this }}\n )\n{% endif %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n seller_address,\n buyer_address,\n nft_address,\n erc1155_value :: STRING AS erc1155_value,\n tokenId,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n tx_fee,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n input_data,\n nft_log_id,\n _log_id,\n _inserted_timestamp\nFROM\n {{ ref('silver__seaport_1_5_sales') }}\n\n{% if is_incremental() and 'seaport_1_5' not in var('HEAL_MODELS') %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ var(\"LOOKBACK\", \"4 hours\") }}'\n FROM\n {{ this }}\n )\n{% endif %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n seller_address,\n buyer_address,\n nft_address,\n erc1155_value :: STRING AS erc1155_value,\n tokenId,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n tx_fee,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n input_data,\n nft_log_id,\n _log_id,\n _inserted_timestamp\nFROM\n {{ ref('silver__tofunft_sales') }}\n\n{% if is_incremental() and 'tofunft' not in var('HEAL_MODELS') %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ var(\"LOOKBACK\", \"4 hours\") }}'\n FROM\n {{ this }}\n )\n{% endif %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n seller_address,\n buyer_address,\n nft_address,\n erc1155_value :: STRING AS erc1155_value,\n tokenId,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n tx_fee,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n input_data,\n nft_log_id,\n _log_id,\n _inserted_timestamp\nFROM\n {{ ref('silver__mooar_sales') }}\n\n{% if is_incremental() and 'mooar' not in var('HEAL_MODELS') %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ var(\"LOOKBACK\", \"4 hours\") }}'\n FROM\n {{ this }}\n )\n{% endif %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n seller_address,\n buyer_address,\n nft_address,\n erc1155_value :: STRING AS erc1155_value,\n tokenId,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n tx_fee,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n input_data,\n nft_log_id,\n _log_id,\n _inserted_timestamp\nFROM\n {{ ref('silver__seaport_1_6_sales') }}\n\n{% if is_incremental() and 'seaport_1_6' not in var('HEAL_MODELS') %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ var(\"LOOKBACK\", \"4 hours\") }}'\n FROM\n {{ this }}\n )\n{% endif %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n seller_address,\n buyer_address,\n nft_address,\n erc1155_value :: STRING AS erc1155_value,\n tokenId,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n tx_fee,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n input_data,\n nft_log_id,\n _log_id,\n _inserted_timestamp\nFROM\n {{ ref('silver__element_sales') }}\n\n{% if is_incremental() and 'element' not in var('HEAL_MODELS') %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ var(\"LOOKBACK\", \"4 hours\") }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nprices_raw AS (\n SELECT\n HOUR,\n symbol,\n token_address,\n decimals,\n price AS hourly_prices\n FROM\n {{ ref('price__ez_prices_hourly') }}\n WHERE\n HOUR :: DATE IN (\n SELECT\n DISTINCT block_timestamp :: DATE\n FROM\n nft_base_models\n )\n AND token_address IN (\n SELECT\n DISTINCT currency_address\n FROM\n nft_base_models\n )\n),\nall_prices AS (\n SELECT\n HOUR,\n token_address,\n symbol,\n hourly_prices,\n decimals\n FROM\n prices_raw\n UNION ALL\n SELECT\n HOUR,\n 'MATIC' AS token_address,\n 'MATIC' AS symbol,\n hourly_prices,\n decimals\n FROM\n prices_raw\n WHERE\n token_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\nmatic_price AS (\n SELECT\n HOUR,\n hourly_prices AS matic_hourly_price\n FROM\n prices_raw\n WHERE\n token_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\ncontracts_decimal AS (\n SELECT\n contract_address AS address_contracts,\n token_symbol AS symbol_contracts,\n token_decimals AS decimals_contracts\n FROM\n {{ ref('silver__contracts') }}\n WHERE\n contract_address IN (\n SELECT\n currency_address\n FROM\n nft_base_models\n )\n),\nfinal_base AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n --credits to hildobby and 0xRob for reservoir calldata logic https://github.com/duneanalytics/spellbook/blob/main/models/nft/ethereum/nft_ethereum_aggregators_markers.sql\n CASE\n WHEN RIGHT(\n input_data,\n 2\n ) = '1f'\n AND LEFT(REGEXP_REPLACE(input_data, '^.*00', ''), 2) = '1f'\n AND REGEXP_REPLACE(\n input_data,\n '^.*00',\n ''\n ) != '1f'\n AND LENGTH(REGEXP_REPLACE(input_data, '^.*00', '')) % 2 = 0 THEN REGEXP_REPLACE(\n input_data,\n '^.*00',\n ''\n )\n ELSE NULL\n END AS calldata_hash,\n IFF(\n calldata_hash IS NULL,\n NULL,\n utils.udf_hex_to_string (\n SPLIT(\n calldata_hash,\n '1f'\n ) [1] :: STRING\n )\n ) AS marketplace_decoded,\n CASE\n WHEN marketplace_decoded IS NOT NULL THEN marketplace_decoded\n ELSE NULL\n END AS aggregator_name,\n seller_address,\n buyer_address,\n nft_address,\n erc1155_value,\n tokenId,\n COALESCE(\n p.symbol,\n symbol_contracts\n ) AS currency_symbol,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n CASE\n WHEN currency_address IN (\n 'MATIC',\n '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ) THEN total_price_raw / pow(\n 10,\n 18\n )\n ELSE COALESCE (\n total_price_raw / pow(10, COALESCE(p.decimals, decimals_contracts)),\n total_price_raw\n )\n END AS price,\n IFF(\n COALESCE(\n p.decimals,\n decimals_contracts\n ) IS NULL,\n 0,\n price * COALESCE(\n hourly_prices,\n 0\n )\n ) AS price_usd,\n CASE\n WHEN currency_address IN (\n 'MATIC',\n '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ) THEN total_fees_raw / pow(\n 10,\n 18\n )\n ELSE COALESCE (\n total_fees_raw / pow(10, COALESCE(p.decimals, decimals_contracts)),\n total_fees_raw\n )\n END AS total_fees,\n IFF(\n COALESCE(\n p.decimals,\n decimals_contracts\n ) IS NULL,\n 0,\n total_fees * COALESCE(\n hourly_prices,\n 0\n )\n ) AS total_fees_usd,\n CASE\n WHEN currency_address IN (\n 'MATIC',\n '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ) THEN platform_fee_raw / pow(\n 10,\n 18\n )\n ELSE COALESCE (\n platform_fee_raw / pow(10, COALESCE(p.decimals, decimals_contracts)),\n platform_fee_raw\n )\n END AS platform_fee,\n IFF(\n COALESCE(\n p.decimals,\n decimals_contracts\n ) IS NULL,\n 0,\n platform_fee * COALESCE(\n hourly_prices,\n 0\n )\n ) AS platform_fee_usd,\n CASE\n WHEN currency_address IN (\n 'MATIC',\n '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ) THEN creator_fee_raw / pow(\n 10,\n 18\n )\n ELSE COALESCE (\n creator_fee_raw / pow(10, COALESCE(p.decimals, decimals_contracts)),\n creator_fee_raw\n )\n END AS creator_fee,\n IFF(\n COALESCE(\n p.decimals,\n decimals_contracts\n ) IS NULL,\n 0,\n creator_fee * COALESCE(\n hourly_prices,\n 0\n )\n ) AS creator_fee_usd,\n tx_fee,\n tx_fee * matic_hourly_price AS tx_fee_usd,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n input_data,\n nft_log_id,\n _log_id,\n b._inserted_timestamp\n FROM\n nft_base_models b\n LEFT JOIN all_prices p\n ON DATE_TRUNC(\n 'hour',\n b.block_timestamp\n ) = p.hour\n AND b.currency_address = p.token_address\n LEFT JOIN matic_price m\n ON DATE_TRUNC(\n 'hour',\n b.block_timestamp\n ) = m.hour\n LEFT JOIN contracts_decimal C\n ON b.currency_address = C.address_contracts\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nheal_model AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n COALESCE(\n a2.aggregator,\n platform_name\n ) AS platform_name,\n platform_exchange_version,\n calldata_hash,\n marketplace_decoded,\n COALESCE(\n aggregator_name,\n A.aggregator\n ) AS aggregator_name,\n seller_address,\n buyer_address,\n nft_address,\n C.token_name AS project_name,\n erc1155_value,\n tokenId,\n currency_symbol,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n price,\n price_usd,\n total_fees,\n total_fees_usd,\n platform_fee,\n platform_fee_usd,\n creator_fee,\n creator_fee_usd,\n tx_fee,\n tx_fee_usd,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n nft_log_id,\n input_data,\n _log_id,\n t._inserted_timestamp\n FROM\n {{ this }}\n t\n LEFT JOIN {{ ref('silver__contracts') }} C\n ON t.nft_address = C.contract_address\n LEFT JOIN {{ ref('silver__aggregator_list') }} A\n ON RIGHT(\n t.input_data,\n 8\n ) = A.aggregator_identifier\n AND aggregator_type = 'calldata'\n LEFT JOIN {{ ref('silver__aggregator_list') }}\n a2\n ON t.origin_to_address = a2.aggregator_identifier\n AND a2.aggregator_type = 'router'\n WHERE\n (\n t.block_number IN (\n SELECT\n DISTINCT t1.block_number AS block_number\n FROM\n {{ this }}\n t1\n WHERE\n t1.project_name IS NULL\n AND _inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ var(\"LOOKBACK\", \"4 hours\") }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__contracts') }} C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_name IS NOT NULL\n AND C.contract_address = t1.nft_address)\n )\n )\n OR (\n t.block_number IN (\n SELECT\n DISTINCT t1.block_number AS block_number\n FROM\n {{ this }}\n t1\n WHERE\n t1.aggregator_name IS NULL\n AND _inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ var(\"LOOKBACK\", \"4 hours\") }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__aggregator_list') }} A\n WHERE\n A._inserted_timestamp > DATEADD('DAY', -2, SYSDATE())\n AND A.aggregator_type = 'calldata'\n AND RIGHT(\n t1.input_data,\n 8\n ) = A.aggregator_identifier\n )\n )\n )\n OR (\n t.block_number IN (\n SELECT\n DISTINCT t1.block_number AS block_number\n FROM\n {{ this }}\n t1\n WHERE\n t1.origin_to_address IN (\n SELECT\n aggregator_identifier\n FROM\n {{ ref('silver__aggregator_list') }}\n WHERE\n aggregator_type = 'router'\n AND _inserted_timestamp >= DATEADD('DAY', -2, SYSDATE()))\n AND _inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ var(\"LOOKBACK\", \"4 hours\") }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__aggregator_list') }}\n a2\n WHERE\n a2._inserted_timestamp > DATEADD('DAY', -2, SYSDATE())\n AND t1.origin_to_address = a2.aggregator_identifier\n AND a2.aggregator_type = 'router')\n )\n )\n ),\n {% endif %}\n\n combined AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n COALESCE(\n a2.aggregator,\n platform_name\n ) AS platform_name,\n platform_exchange_version,\n calldata_hash,\n marketplace_decoded,\n COALESCE(\n aggregator_name,\n A.aggregator\n ) AS aggregator_name,\n seller_address,\n buyer_address,\n nft_address,\n C.token_name AS project_name,\n erc1155_value,\n tokenId,\n currency_symbol,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n price,\n price_usd,\n total_fees,\n total_fees_usd,\n platform_fee,\n platform_fee_usd,\n creator_fee,\n creator_fee_usd,\n tx_fee,\n tx_fee_usd,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n nft_log_id,\n input_data,\n _log_id,\n b._inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash', 'event_index', 'nft_address','tokenId','platform_exchange_version']\n ) }} AS complete_nft_sales_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\n FROM\n final_base b\n LEFT JOIN {{ ref('silver__contracts') }} C\n ON b.nft_address = C.contract_address\n LEFT JOIN {{ ref('silver__aggregator_list') }} A\n ON RIGHT(\n b.input_data,\n 8\n ) = A.aggregator_identifier\n AND A.aggregator_type = 'calldata'\n LEFT JOIN {{ ref('silver__aggregator_list') }}\n a2\n ON b.origin_to_address = a2.aggregator_identifier\n AND a2.aggregator_type = 'router'\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n calldata_hash,\n marketplace_decoded,\n aggregator_name,\n seller_address,\n buyer_address,\n nft_address,\n project_name,\n erc1155_value,\n tokenId,\n currency_symbol,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n price,\n price_usd,\n total_fees,\n total_fees_usd,\n platform_fee,\n platform_fee_usd,\n creator_fee,\n creator_fee_usd,\n tx_fee,\n tx_fee_usd,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n nft_log_id,\n input_data,\n _log_id,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash', 'event_index', 'nft_address','tokenId','platform_exchange_version']\n ) }} AS complete_nft_sales_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n heal_model\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n calldata_hash,\n marketplace_decoded,\n aggregator_name,\n seller_address,\n buyer_address,\n nft_address,\n project_name,\n erc1155_value,\n tokenId,\n CASE\n WHEN block_timestamp :: DATE >= '2024-09-04'\n AND currency_address = 'MATIC' THEN 'POL'\n ELSE currency_symbol\n END AS currency_symbol,\n CASE\n WHEN block_timestamp :: DATE >= '2024-09-04'\n AND currency_address = 'MATIC' THEN 'POL'\n ELSE currency_address\n END AS currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n price,\n price_usd,\n total_fees,\n total_fees_usd,\n platform_fee,\n platform_fee_usd,\n creator_fee,\n creator_fee_usd,\n tx_fee,\n tx_fee_usd,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n nft_log_id,\n input_data,\n _log_id,\n _inserted_timestamp,\n complete_nft_sales_id,\n inserted_timestamp,\n modified_timestamp,\n _invocation_id\nFROM\n combined qualify (ROW_NUMBER() over(PARTITION BY nft_log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}, {"name": "silver__seaport_1_4_sales", "package": null, "version": null}, {"name": "silver__seaport_1_5_sales", "package": null, "version": null}, {"name": "silver__tofunft_sales", "package": null, "version": null}, {"name": "silver__mooar_sales", "package": null, "version": null}, {"name": "silver__seaport_1_6_sales", "package": null, "version": null}, {"name": "silver__element_sales", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "silver__contracts", "package": null, "version": null}, {"name": "silver__contracts", "package": null, "version": null}, {"name": "silver__aggregator_list", "package": null, "version": null}, {"name": "silver__aggregator_list", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales", "model.polygon_models.silver__seaport_1_4_sales", "model.polygon_models.silver__seaport_1_5_sales", "model.polygon_models.silver__tofunft_sales", "model.polygon_models.silver__mooar_sales", "model.polygon_models.silver__seaport_1_6_sales", "model.polygon_models.silver__element_sales", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver__contracts", "model.polygon_models.silver__aggregator_list"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.sql", "compiled": true, "compiled_code": "\n\nWITH nft_base_models AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n seller_address,\n buyer_address,\n nft_address,\n erc1155_value :: STRING AS erc1155_value,\n tokenId,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n tx_fee,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n input_data,\n nft_log_id,\n _log_id,\n _inserted_timestamp\n FROM\n polygon.silver.seaport_1_1_sales\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '4 hours'\n FROM\n polygon.silver.complete_nft_sales\n )\n\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n seller_address,\n buyer_address,\n nft_address,\n erc1155_value :: STRING AS erc1155_value,\n tokenId,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n tx_fee,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n input_data,\n nft_log_id,\n _log_id,\n _inserted_timestamp\nFROM\n polygon.silver.seaport_1_4_sales\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '4 hours'\n FROM\n polygon.silver.complete_nft_sales\n )\n\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n seller_address,\n buyer_address,\n nft_address,\n erc1155_value :: STRING AS erc1155_value,\n tokenId,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n tx_fee,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n input_data,\n nft_log_id,\n _log_id,\n _inserted_timestamp\nFROM\n polygon.silver.seaport_1_5_sales\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '4 hours'\n FROM\n polygon.silver.complete_nft_sales\n )\n\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n seller_address,\n buyer_address,\n nft_address,\n erc1155_value :: STRING AS erc1155_value,\n tokenId,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n tx_fee,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n input_data,\n nft_log_id,\n _log_id,\n _inserted_timestamp\nFROM\n polygon.silver.tofunft_sales\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '4 hours'\n FROM\n polygon.silver.complete_nft_sales\n )\n\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n seller_address,\n buyer_address,\n nft_address,\n erc1155_value :: STRING AS erc1155_value,\n tokenId,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n tx_fee,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n input_data,\n nft_log_id,\n _log_id,\n _inserted_timestamp\nFROM\n polygon.silver.mooar_sales\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '4 hours'\n FROM\n polygon.silver.complete_nft_sales\n )\n\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n seller_address,\n buyer_address,\n nft_address,\n erc1155_value :: STRING AS erc1155_value,\n tokenId,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n tx_fee,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n input_data,\n nft_log_id,\n _log_id,\n _inserted_timestamp\nFROM\n polygon.silver.seaport_1_6_sales\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '4 hours'\n FROM\n polygon.silver.complete_nft_sales\n )\n\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n seller_address,\n buyer_address,\n nft_address,\n erc1155_value :: STRING AS erc1155_value,\n tokenId,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n tx_fee,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n input_data,\n nft_log_id,\n _log_id,\n _inserted_timestamp\nFROM\n polygon.silver.element_sales\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '4 hours'\n FROM\n polygon.silver.complete_nft_sales\n )\n\n),\nprices_raw AS (\n SELECT\n HOUR,\n symbol,\n token_address,\n decimals,\n price AS hourly_prices\n FROM\n polygon.price.ez_prices_hourly\n WHERE\n HOUR :: DATE IN (\n SELECT\n DISTINCT block_timestamp :: DATE\n FROM\n nft_base_models\n )\n AND token_address IN (\n SELECT\n DISTINCT currency_address\n FROM\n nft_base_models\n )\n),\nall_prices AS (\n SELECT\n HOUR,\n token_address,\n symbol,\n hourly_prices,\n decimals\n FROM\n prices_raw\n UNION ALL\n SELECT\n HOUR,\n 'MATIC' AS token_address,\n 'MATIC' AS symbol,\n hourly_prices,\n decimals\n FROM\n prices_raw\n WHERE\n token_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\nmatic_price AS (\n SELECT\n HOUR,\n hourly_prices AS matic_hourly_price\n FROM\n prices_raw\n WHERE\n token_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\ncontracts_decimal AS (\n SELECT\n contract_address AS address_contracts,\n token_symbol AS symbol_contracts,\n token_decimals AS decimals_contracts\n FROM\n polygon.silver.contracts\n WHERE\n contract_address IN (\n SELECT\n currency_address\n FROM\n nft_base_models\n )\n),\nfinal_base AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n --credits to hildobby and 0xRob for reservoir calldata logic https://github.com/duneanalytics/spellbook/blob/main/models/nft/ethereum/nft_ethereum_aggregators_markers.sql\n CASE\n WHEN RIGHT(\n input_data,\n 2\n ) = '1f'\n AND LEFT(REGEXP_REPLACE(input_data, '^.*00', ''), 2) = '1f'\n AND REGEXP_REPLACE(\n input_data,\n '^.*00',\n ''\n ) != '1f'\n AND LENGTH(REGEXP_REPLACE(input_data, '^.*00', '')) % 2 = 0 THEN REGEXP_REPLACE(\n input_data,\n '^.*00',\n ''\n )\n ELSE NULL\n END AS calldata_hash,\n IFF(\n calldata_hash IS NULL,\n NULL,\n utils.udf_hex_to_string (\n SPLIT(\n calldata_hash,\n '1f'\n ) [1] :: STRING\n )\n ) AS marketplace_decoded,\n CASE\n WHEN marketplace_decoded IS NOT NULL THEN marketplace_decoded\n ELSE NULL\n END AS aggregator_name,\n seller_address,\n buyer_address,\n nft_address,\n erc1155_value,\n tokenId,\n COALESCE(\n p.symbol,\n symbol_contracts\n ) AS currency_symbol,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n CASE\n WHEN currency_address IN (\n 'MATIC',\n '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ) THEN total_price_raw / pow(\n 10,\n 18\n )\n ELSE COALESCE (\n total_price_raw / pow(10, COALESCE(p.decimals, decimals_contracts)),\n total_price_raw\n )\n END AS price,\n IFF(\n COALESCE(\n p.decimals,\n decimals_contracts\n ) IS NULL,\n 0,\n price * COALESCE(\n hourly_prices,\n 0\n )\n ) AS price_usd,\n CASE\n WHEN currency_address IN (\n 'MATIC',\n '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ) THEN total_fees_raw / pow(\n 10,\n 18\n )\n ELSE COALESCE (\n total_fees_raw / pow(10, COALESCE(p.decimals, decimals_contracts)),\n total_fees_raw\n )\n END AS total_fees,\n IFF(\n COALESCE(\n p.decimals,\n decimals_contracts\n ) IS NULL,\n 0,\n total_fees * COALESCE(\n hourly_prices,\n 0\n )\n ) AS total_fees_usd,\n CASE\n WHEN currency_address IN (\n 'MATIC',\n '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ) THEN platform_fee_raw / pow(\n 10,\n 18\n )\n ELSE COALESCE (\n platform_fee_raw / pow(10, COALESCE(p.decimals, decimals_contracts)),\n platform_fee_raw\n )\n END AS platform_fee,\n IFF(\n COALESCE(\n p.decimals,\n decimals_contracts\n ) IS NULL,\n 0,\n platform_fee * COALESCE(\n hourly_prices,\n 0\n )\n ) AS platform_fee_usd,\n CASE\n WHEN currency_address IN (\n 'MATIC',\n '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ) THEN creator_fee_raw / pow(\n 10,\n 18\n )\n ELSE COALESCE (\n creator_fee_raw / pow(10, COALESCE(p.decimals, decimals_contracts)),\n creator_fee_raw\n )\n END AS creator_fee,\n IFF(\n COALESCE(\n p.decimals,\n decimals_contracts\n ) IS NULL,\n 0,\n creator_fee * COALESCE(\n hourly_prices,\n 0\n )\n ) AS creator_fee_usd,\n tx_fee,\n tx_fee * matic_hourly_price AS tx_fee_usd,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n input_data,\n nft_log_id,\n _log_id,\n b._inserted_timestamp\n FROM\n nft_base_models b\n LEFT JOIN all_prices p\n ON DATE_TRUNC(\n 'hour',\n b.block_timestamp\n ) = p.hour\n AND b.currency_address = p.token_address\n LEFT JOIN matic_price m\n ON DATE_TRUNC(\n 'hour',\n b.block_timestamp\n ) = m.hour\n LEFT JOIN contracts_decimal C\n ON b.currency_address = C.address_contracts\n),\n\n\n\n combined AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n COALESCE(\n a2.aggregator,\n platform_name\n ) AS platform_name,\n platform_exchange_version,\n calldata_hash,\n marketplace_decoded,\n COALESCE(\n aggregator_name,\n A.aggregator\n ) AS aggregator_name,\n seller_address,\n buyer_address,\n nft_address,\n C.token_name AS project_name,\n erc1155_value,\n tokenId,\n currency_symbol,\n currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n price,\n price_usd,\n total_fees,\n total_fees_usd,\n platform_fee,\n platform_fee_usd,\n creator_fee,\n creator_fee_usd,\n tx_fee,\n tx_fee_usd,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n nft_log_id,\n input_data,\n _log_id,\n b._inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(event_index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(nft_address as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(tokenId as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(platform_exchange_version as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_nft_sales_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\n FROM\n final_base b\n LEFT JOIN polygon.silver.contracts C\n ON b.nft_address = C.contract_address\n LEFT JOIN polygon.silver.aggregator_list A\n ON RIGHT(\n b.input_data,\n 8\n ) = A.aggregator_identifier\n AND A.aggregator_type = 'calldata'\n LEFT JOIN polygon.silver.aggregator_list\n a2\n ON b.origin_to_address = a2.aggregator_identifier\n AND a2.aggregator_type = 'router'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n calldata_hash,\n marketplace_decoded,\n aggregator_name,\n seller_address,\n buyer_address,\n nft_address,\n project_name,\n erc1155_value,\n tokenId,\n CASE\n WHEN block_timestamp :: DATE >= '2024-09-04'\n AND currency_address = 'MATIC' THEN 'POL'\n ELSE currency_symbol\n END AS currency_symbol,\n CASE\n WHEN block_timestamp :: DATE >= '2024-09-04'\n AND currency_address = 'MATIC' THEN 'POL'\n ELSE currency_address\n END AS currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n price,\n price_usd,\n total_fees,\n total_fees_usd,\n platform_fee,\n platform_fee_usd,\n creator_fee,\n creator_fee_usd,\n tx_fee,\n tx_fee_usd,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n nft_log_id,\n input_data,\n _log_id,\n _inserted_timestamp,\n complete_nft_sales_id,\n inserted_timestamp,\n modified_timestamp,\n _invocation_id\nFROM\n combined qualify (ROW_NUMBER() over(PARTITION BY nft_log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.polygon_models.silver__seaport_1_4_sales": {"database": "polygon", "schema": "silver", "name": "silver__seaport_1_4_sales", "resource_type": "model", "package_name": "polygon_models", "path": "silver/NFT/sales/silver__seaport_1_4_sales.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.sql", "unique_id": "model.polygon_models.silver__seaport_1_4_sales", "fqn": ["polygon_models", "silver", "NFT", "sales", "silver__seaport_1_4_sales"], "alias": "seaport_1_4_sales", "checksum": {"name": "sha256", "checksum": "594f6204a65d5bbe497c39b552c79a2290f5e260eefe2045dd1305122d79cd95"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "nft", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "nft", "curated"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_ADDRESS": {"name": "PLATFORM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_NAME": {"name": "PLATFORM_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SELLER_ADDRESS": {"name": "SELLER_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BUYER_ADDRESS": {"name": "BUYER_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NFT_ADDRESS": {"name": "NFT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKENID": {"name": "TOKENID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CURRENCY_ADDRESS": {"name": "CURRENCY_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_PRICE_RAW": {"name": "TOTAL_PRICE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_FEES_RAW": {"name": "TOTAL_FEES_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_FEE_RAW": {"name": "PLATFORM_FEE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATOR_FEE_RAW": {"name": "CREATOR_FEE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_FEE": {"name": "TX_FEE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NFT_LOG_ID": {"name": "NFT_LOG_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_TYPE": {"name": "EVENT_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INPUT_DATA": {"name": "INPUT_DATA", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "nft", "curated"]}, "created_at": 1764018434.2275884, "relation_name": "polygon.silver.seaport_1_4_sales", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','nft','curated']\n) }}\n\nWITH seaport_fees_wallet AS (\n\n SELECT\n *\n FROM\n (\n VALUES\n ('0x0000a26b00c1f0df003000390027140000faa719'),\n ('0x8de9c5a032463c561423387a9648c5c7bcc5bc90'),\n ('0x5b3256965e7c3cf26e11fcaf296dfc8807c01073')\n ) t (addresses)\n),\nraw_decoded_logs AS (\n SELECT\n *,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n WHERE\n block_number >= 35000000\n AND contract_address = '0x00000000000001ad428e4906ae43d8f9852d0dd6'\n AND event_name = 'OrderFulfilled'\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n{% endif %}\n),\nmao_buy_tx AS (\n SELECT\n tx_hash,\n event_index,\n CASE\n WHEN full_decoded_log :data [4] :value [0] [0] IN (\n 2,\n 3\n ) THEN 'buy'\n WHEN full_decoded_log :data [4] :value [0] [0] IN (1) THEN 'offer_accepted'\n ELSE NULL\n END AS trade_type\n FROM\n raw_decoded_logs\n WHERE\n trade_type = 'buy'\n),\nmao_offer_accepted_tx AS (\n SELECT\n block_number,\n tx_hash,\n CASE\n WHEN full_decoded_log :data [4] :value [0] [0] IN (\n 2,\n 3\n ) THEN 'buy'\n WHEN full_decoded_log :data [4] :value [0] [0] IN (1) THEN 'offer_accepted'\n ELSE NULL\n END AS trade_type\n FROM\n raw_decoded_logs\n WHERE\n trade_type = 'offer_accepted'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n mao_buy_tx\n )\n),\nraw_logs AS (\n SELECT\n *,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n block_number >= 35000000\n AND contract_address = '0x00000000000001ad428e4906ae43d8f9852d0dd6'\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nmao_orderhash AS (\n SELECT\n tx_hash,\n CONCAT(\n '0x',\n VALUE :: STRING\n ) AS orderhash,\n CONCAT(\n tx_hash,\n '-',\n orderHash\n ) AS tx_hash_orderhash\n FROM\n raw_logs,\n TABLE(\n FLATTEN(\n input => regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}'))\n )\n WHERE\n topics [0] :: STRING = '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n AND INDEX IN (\n 2,\n 3\n )\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n mao_offer_accepted_tx\n )\n ),\n mao_orderhash_full AS (\n SELECT\n tx_hash,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT(\n '0x',\n segmented_data [2] :: STRING\n ) AS orderhash_1,\n CONCAT(\n '0x',\n segmented_data [3] :: STRING\n ) AS orderhash_2,\n CONCAT(\n tx_hash,\n '-',\n orderhash_1,\n '-',\n orderhash_2\n ) AS tx_hash_orderhash_full\n FROM\n raw_logs\n WHERE\n topics [0] :: STRING = '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n mao_offer_accepted_tx\n )\n ),\n mao_raw_decoded AS (\n SELECT\n CASE\n WHEN full_decoded_log :data [4] :value [0] [0] IN (\n 2,\n 3\n ) THEN 'buy'\n WHEN full_decoded_log :data [4] :value [0] [0] IN (1) THEN 'offer_accepted'\n ELSE NULL\n END AS trade_type,\n decoded_log :orderHash :: STRING AS orderhash,\n CONCAT(\n tx_hash,\n '-',\n decoded_log :orderHash :: STRING\n ) AS tx_hash_orderhash,*\n FROM\n raw_decoded_logs\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n mao_orderhash_full\n )\n AND tx_hash_orderhash IN (\n SELECT\n tx_hash_orderhash\n FROM\n mao_orderhash\n )\n ),\n seaport_tx_table AS (\n SELECT\n block_timestamp,\n tx_hash\n FROM\n raw_logs\n WHERE\n block_timestamp >= '2023-02-01'\n AND topics [0] = '0x9d9af8e38d66c62e2c12f0225249fd9d721c54b83f48d9352c97c6cacdcb6f31'\n ),\n decoded AS (\n SELECT\n tx_hash,\n decoded_log,\n event_index,\n full_decoded_log,\n CONCAT(\n tx_hash,\n '-',\n decoded_log :orderHash :: STRING\n ) AS tx_hash_orderhash,\n _log_id,\n _inserted_timestamp,\n LOWER(\n full_decoded_log :address :: STRING\n ) AS contract_address,\n full_decoded_log :name :: STRING AS event_name,\n CASE\n WHEN full_decoded_log :data [4] :value [0] [0] IN (\n 2,\n 3\n ) THEN 'buy'\n WHEN full_decoded_log :data [4] :value [0] [0] IN (1) THEN 'offer_accepted'\n ELSE NULL\n END AS trade_type\n FROM\n raw_decoded_logs\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n seaport_tx_table\n )\n AND tx_hash_orderhash NOT IN (\n SELECT\n tx_hash_orderhash\n FROM\n mao_orderhash\n )\n ),\n offer_length_match_advanced_order_oa AS (\n SELECT\n tx_hash,\n decoded_log :orderHash :: STRING AS orderhash,\n COUNT(1) AS offer_length_raw\n FROM\n mao_raw_decoded,\n TABLE(FLATTEN(input => decoded_log :consideration))\n WHERE\n trade_type = 'offer_accepted'\n AND VALUE :itemType IN (\n 2,\n 3\n )\n AND decoded_log :consideration [0] IS NOT NULL\n GROUP BY\n tx_hash,\n decoded_log :orderHash :: STRING\n HAVING\n offer_length_raw IS NOT NULL\n ),\n offer_length_match_advanced_order_buy AS (\n SELECT\n tx_hash,\n decoded_log :orderHash :: STRING AS orderhash,\n COUNT(1) AS offer_length_raw\n FROM\n mao_raw_decoded,\n TABLE(FLATTEN(input => decoded_log :consideration))\n WHERE\n trade_type = 'buy'\n AND VALUE :itemType IN (\n 2,\n 3\n )\n AND decoded_log :consideration [0] IS NOT NULL\n GROUP BY\n tx_hash,\n decoded_log :orderHash :: STRING\n ),\n offer_length_match_advanced_order_combined AS (\n SELECT\n *\n FROM\n offer_length_match_advanced_order_oa\n UNION ALL\n SELECT\n *\n FROM\n offer_length_match_advanced_order_buy\n ),\n offer_length_match_advanced_order AS (\n SELECT\n C.tx_hash,\n COALESCE(\n A.tx_hash_orderhash_full,\n b.tx_hash_orderhash_full\n ) AS tx_hash_orderhash_full,\n offer_length_raw\n FROM\n offer_length_match_advanced_order_combined C\n LEFT JOIN mao_orderhash_full A\n ON C.tx_hash = A.tx_hash\n AND C.orderhash = A.orderhash_1\n LEFT JOIN mao_orderhash_full b\n ON C.tx_hash = b.tx_hash\n AND C.orderhash = b.orderhash_2\n ),\n offer_length_count_buy AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [4] :value))\n WHERE\n trade_type = 'buy'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n ),\n offer_length_count_offer AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [5] :value))\n WHERE\n trade_type = 'offer_accepted'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n ),\n flat_raw AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_decoded_log :data AS full_data,\n _log_id,\n _inserted_timestamp,\n OBJECT_AGG(\n VALUE :name,\n VALUE :value\n ) AS decoded_output\n FROM\n decoded,\n LATERAL FLATTEN(\n input => full_decoded_log :data\n ) f\n WHERE\n event_name IN (\n 'OrderFulfilled',\n 'OrdersMatched'\n )\n AND trade_type IS NOT NULL\n GROUP BY\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp\n ),\n flat AS (\n SELECT\n r.tx_hash,\n r.event_index,\n contract_address,\n event_name,\n COALESCE (\n b.offer_length_raw,\n o.offer_length_raw,\n NULL\n ) AS offer_length,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp,\n decoded_output\n FROM\n flat_raw r\n LEFT JOIN offer_length_count_buy b\n ON r.tx_hash = b.tx_hash\n AND r.event_index = b.event_index\n LEFT JOIN offer_length_count_offer o\n ON r.tx_hash = o.tx_hash\n AND r.event_index = o.event_index\n WHERE\n offer_length IS NOT NULL\n ),\n filtered_private_offer_tx AS (\n SELECT\n tx_hash\n FROM\n flat\n WHERE\n trade_type = 'offer_accepted'\n AND full_data [3] :value :: STRING = '0x0000000000000000000000000000000000000000'\n ),\n private_offer_tx_flat AS (\n SELECT\n tx_hash,\n ARRAY_AGG (\n CASE\n WHEN trade_type = 'buy' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_offerer,\n ARRAY_AGG(\n CASE\n WHEN trade_type = 'offer_accepted' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_recipient --(buyer) or receiver of the NFT\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n GROUP BY\n tx_hash\n ),\n private_offer_tx_flat_null_offerer AS (\n -- mainly transfers via opensea as a result of a phishing scam)\n SELECT\n tx_hash,\n full_data [1] :value :: STRING AS private_seller -- person whose account is compromised\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat\n WHERE\n private_offerer IS NULL\n )\n AND trade_type = 'offer_accepted'\n ),\n private_offer_tx_offerer_combined AS (\n SELECT\n t.tx_hash,\n t.private_offerer,\n t.private_recipient AS recipient_from_private_tx,\n n.private_seller,\n CASE\n WHEN t.private_offerer IS NULL THEN n.private_seller\n ELSE t.private_offerer\n END AS offerer_from_private_tx\n FROM\n private_offer_tx_flat t\n LEFT JOIN private_offer_tx_flat_null_offerer n\n ON t.tx_hash = n.tx_hash\n ),\n base_sales_buy AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n --seller\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n -- buyer\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n ) -- AND tx_type IS NOT NULL ; null tx type would mean that there aren't any considerations. The nft is transferred without asking for anything in exchange for it\n ),\n base_sales_buy_null_values AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND tx_type IS NULL\n ),\n base_sales_buy_public_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n ),\n base_sales_buy_public_nft_transfers_null_values AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_null_values\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n ),\n base_sales_buy_public_nft_transfers_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers_null_values\n ),\n base_sales_buy_private_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] :: STRING AS private_sale_recipient\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'private'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n ),\n base_sales_buy_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n ),\n base_sales_buy_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN first_flatten_index = 0 THEN raw_amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_buy_sale_amount_filter\n ),\n base_sales_buy_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw_,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_buy_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n ),\n base_sales_buy_sale_amount_null_values AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy_null_values\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_sale_amount_filter\n )\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_type IS NULL\n ),\n base_sales_buy_sale_amount_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_sale_amount_null_values\n ),\n base_sales_buy_combined AS (\n SELECT\n *\n FROM\n base_sales_buy\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_null_values\n ),\n base_sales_buy_final_public AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n recipient_temp AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_public_nft_transfers_combined n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n ),\n base_sales_buy_final_private AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n private_sale_recipient AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_private_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n ),\n base_sales_buy_final AS (\n SELECT\n *\n FROM\n base_sales_buy_final_public\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_final_private\n ),\n base_sales_offer_accepted AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :recipient :: STRING AS offerer_temp,\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :offerer :: STRING AS recipient_temp,\n CASE\n WHEN offerer_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output :offer [0] [3] :: INT / offer_length AS total_sale_amount_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled',\n 'OrdersMatched'\n )\n AND trade_type = 'offer_accepted'\n AND tx_type IS NOT NULL\n AND tx_hash IS NOT NULL\n ),\n base_sales_offer_accepted_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] AS private_recipient_from_consideration\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n ),\n base_sales_offer_accepted_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n ),\n base_sales_offer_accepted_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN address_list NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_sale_amount_filter\n ),\n base_sales_offer_accepted_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n currency_address,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n ),\n base_sales_offer_accepted_no_fees_tx AS (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_sale_amount_filter\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n ),\n base_sales_offer_accepted_no_fees_amount AS (\n SELECT\n tx_hash,\n event_index,\n ARRAY_AGG(\n t.value\n ) AS sale_values,\n sale_values [0] [1] :: STRING AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_no_fees_tx\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n GROUP BY\n tx_hash,\n event_index\n ),\n base_sales_offer_accepted_phishing_scam_amount AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n NULL AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_nft_transfers\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n ),\n base_sales_offer_accepted_sale_and_no_fees AS (\n SELECT\n *\n FROM\n base_sales_offer_accepted_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_no_fees_amount\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_phishing_scam_amount\n ),\n base_sales_offer_accepted_final AS (\n SELECT\n b.tx_hash,\n b.event_index,\n contract_address,\n event_name,\n offer_length,\n CASE\n WHEN sale_category = 'public' THEN offerer_temp\n ELSE COALESCE (\n private_offerer,\n offerer_from_private_tx\n )\n END AS offerer,\n orderHash,\n CASE\n WHEN sale_category = 'public' THEN recipient_temp\n WHEN sale_category = 'private'\n AND private_offerer IS NULL THEN private_recipient_from_consideration\n ELSE recipient_from_private_tx\n END AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address,\n tokenid,\n CASE\n WHEN token_type = '3' THEN number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n CASE\n WHEN private_offerer IS NULL\n AND private_seller IS NOT NULL THEN 0\n ELSE decoded_output :offer [0] [3] :: INT / offer_length\n END AS total_sale_amount_raw,\n platform_fee_raw_ :: INT / offer_length AS platform_fee_raw,\n creator_fee_raw_ :: INT / offer_length AS creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted b\n INNER JOIN base_sales_offer_accepted_sale_and_no_fees s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_offer_accepted_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n LEFT OUTER JOIN private_offer_tx_offerer_combined p\n ON b.tx_hash = p.tx_hash\n WHERE\n nft_address IS NOT NULL qualify ROW_NUMBER() over (\n PARTITION BY b.tx_hash,\n b.event_index,\n nft_address,\n tokenid,\n _log_id\n ORDER BY\n _inserted_timestamp ASC\n ) = 1\n ),\n match_advanced_orders_sale_amount AS (\n SELECT\n r.tx_hash,\n block_number,\n r.event_index,\n event_name,\n contract_address,\n trade_type,\n offer_length_raw,\n full_decoded_log,\n decoded_log,\n decoded_log :offerer :: STRING AS offerer,\n -- or the one who proposed the sale so that they receive the nft\n decoded_log :zone :: STRING AS ZONE,\n decoded_log :recipient :: STRING AS recipient,\n decoded_log :orderHash :: STRING AS orderhash,\n COALESCE(\n A.tx_hash_orderhash_full,\n b.tx_hash_orderhash_full\n ) AS tx_hash_orderhash_full,\n decoded_log :offer [0] :token :: STRING AS payment_token,\n (\n decoded_log :offer [0] :amount :: INT\n ) / offer_length_raw AS total_sale_price_raw,\n _inserted_timestamp,\n _log_id\n FROM\n mao_raw_decoded r\n LEFT JOIN mao_orderhash_full A\n ON r.tx_hash = A.tx_hash\n AND r.decoded_log :orderHash :: STRING = A.orderhash_1\n LEFT JOIN mao_orderhash_full b\n ON r.tx_hash = b.tx_hash\n AND r.decoded_log :orderHash :: STRING = b.orderhash_2\n INNER JOIN offer_length_match_advanced_order o\n ON r.tx_hash = o.tx_hash\n AND COALESCE(\n A.tx_hash_orderhash_full,\n b.tx_hash_orderhash_full\n ) = o.tx_hash_orderhash_full\n WHERE\n trade_type = 'offer_accepted'\n AND decoded_log :offer [0] :itemType :: INT IN (\n 0,\n 1\n )\n ),\n match_advanced_orders_nft_received_oa AS (\n SELECT\n tx_hash,\n event_index,\n decoded_log :orderHash :: STRING AS orderhash,\n decoded_log :offerer :: STRING AS transfers_nft_receiver,\n decoded_log :recipient :: STRING AS transfers_nft_seller,\n VALUE :token :: STRING AS nft_address,\n VALUE :identifier :: STRING AS tokenId,\n VALUE :amount :: INT AS nft_tokenid_quantity,\n VALUE :recipient :: STRING AS nft_recipient,\n VALUE :itemType :: INT AS token_type\n FROM\n mao_raw_decoded,\n LATERAL FLATTEN (\n input => decoded_log :consideration\n )\n WHERE\n trade_type = 'offer_accepted'\n AND VALUE :itemType :: INT IN (\n 2,\n 3\n )\n ),\n match_advanced_orders_nft_received_oa_hash AS (\n SELECT\n r.tx_hash,\n COALESCE(\n A.tx_hash_orderhash_full,\n b.tx_hash_orderhash_full\n ) AS tx_hash_orderhash_full,\n transfers_nft_receiver,\n transfers_nft_seller,\n nft_address,\n tokenId,\n nft_tokenid_quantity,\n nft_recipient,\n token_type\n FROM\n match_advanced_orders_nft_received_oa r\n LEFT JOIN mao_orderhash_full A\n ON r.tx_hash = A.tx_hash\n AND r.orderHash = A.orderhash_1\n LEFT JOIN mao_orderhash_full b\n ON r.tx_hash = b.tx_hash\n AND r.orderHash = b.orderhash_2\n ),\n match_advanced_orders_nft_received_buy AS (\n SELECT\n tx_hash,\n event_index,\n decoded_log :orderHash :: STRING AS orderhash,\n decoded_log :offerer :: STRING AS transfers_nft_seller,\n decoded_log :recipient :: STRING AS transfers_nft_receiver,\n VALUE :token :: STRING AS nft_address,\n VALUE :identifier :: STRING AS tokenId,\n VALUE :amount :: INT AS nft_tokenid_quantity,\n VALUE :recipient :: STRING AS nft_recipient,\n VALUE :itemType :: INT AS token_type\n FROM\n mao_raw_decoded,\n LATERAL FLATTEN (\n input => decoded_log :consideration\n )\n WHERE\n trade_type = 'buy'\n AND VALUE :itemType :: INT IN (\n 2,\n 3\n )\n ),\n match_advanced_orders_nft_received_buy_hash AS (\n SELECT\n r.tx_hash,\n COALESCE(\n A.tx_hash_orderhash_full,\n b.tx_hash_orderhash_full\n ) AS tx_hash_orderhash_full,\n transfers_nft_receiver,\n transfers_nft_seller,\n nft_address,\n tokenId,\n nft_tokenid_quantity,\n nft_recipient,\n token_type\n FROM\n match_advanced_orders_nft_received_buy r\n LEFT JOIN mao_orderhash_full A\n ON r.tx_hash = A.tx_hash\n AND r.orderHash = A.orderhash_1\n LEFT JOIN mao_orderhash_full b\n ON r.tx_hash = b.tx_hash\n AND r.orderHash = b.orderhash_2\n ),\n match_advanced_orders_nft_received AS (\n SELECT\n *\n FROM\n match_advanced_orders_nft_received_oa_hash\n UNION ALL\n SELECT\n *\n FROM\n match_advanced_orders_nft_received_buy_hash\n ),\n match_advanced_orders_fees_oa_consideration AS (\n SELECT\n tx_hash,\n decoded_log,\n event_index,\n VALUE :token :: STRING AS payment_token,\n VALUE :amount :: INT AS raw_amount,\n VALUE :recipient :: STRING AS fee_recipient,\n CASE\n WHEN fee_recipient IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN fee_recipient NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n mao_raw_decoded,\n LATERAL FLATTEN (\n input => decoded_log :consideration\n ) f\n WHERE\n trade_type = 'offer_accepted'\n AND VALUE :itemType :: INT IN (\n 0,\n 1\n )\n ),\n match_advanced_orders_fees_oa_consideration_agg AS (\n SELECT\n tx_hash,\n event_index,\n SUM(platform_fee_raw_) AS platform_fee_raw,\n SUM(creator_fee_raw_) AS creator_fee_raw\n FROM\n match_advanced_orders_fees_oa_consideration\n GROUP BY\n tx_hash,\n event_index\n ),\n match_advanced_orders_fees_buy_consideration AS (\n SELECT\n tx_hash,\n decoded_log,\n decoded_log :orderHash :: STRING AS orderhash,\n VALUE :token :: STRING AS payment_token,\n VALUE :amount :: INT AS raw_amount,\n VALUE :recipient :: STRING AS royalty_recipient,\n INDEX,\n CASE\n WHEN royalty_recipient IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN royalty_recipient NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n mao_raw_decoded,\n LATERAL FLATTEN (\n input => decoded_log :consideration\n )\n WHERE\n trade_type = 'buy'\n AND VALUE :itemType :: INT IN (\n 0,\n 1\n ) qualify ROW_NUMBER() over (\n PARTITION BY tx_hash,\n orderhash\n ORDER BY\n raw_amount DESC\n ) > 1\n ),\n match_advanced_orders_fees_buy_consideration_filtered AS (\n SELECT\n C.tx_hash,\n decoded_log,\n C.orderhash,\n COALESCE(\n A.tx_hash_orderhash_full,\n b.tx_hash_orderhash_full\n ) AS tx_hash_orderhash_full,\n payment_token,\n raw_amount,\n royalty_recipient,\n INDEX,\n platform_fee_raw_,\n creator_fee_raw_\n FROM\n match_advanced_orders_fees_buy_consideration C\n LEFT JOIN mao_orderhash_full A\n ON C.tx_hash = A.tx_hash\n AND C.orderhash = A.orderhash_1\n LEFT JOIN mao_orderhash_full b\n ON C.tx_hash = b.tx_hash\n AND C.orderhash = b.orderhash_2\n ),\n match_advanced_orders_fees_buy_consideration_agg AS (\n SELECT\n tx_hash,\n tx_hash_orderhash_full,\n SUM(platform_fee_raw_) AS platform_fee_raw,\n SUM(creator_fee_raw_) AS creator_fee_raw\n FROM\n match_advanced_orders_fees_buy_consideration_filtered\n GROUP BY\n tx_hash,\n tx_hash_orderhash_full\n ),\n match_advanced_orders_base AS (\n SELECT\n s.tx_hash,\n block_number,\n s.event_index,\n event_name,\n contract_address,\n trade_type,\n offer_length_raw AS offer_length,\n CASE\n WHEN offerer = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_log,\n -- using decoded flat here instead of decoded_output so that we're able to filter for match advanced orders\n decoded_log :consideration AS consideration,\n decoded_log :offer AS offer,\n decoded_log :consideration [0] :itemType AS tx_type,\n ZONE,\n transfers_nft_receiver AS recipient,\n --buyer_address in final\n transfers_nft_seller AS offerer,\n --seller_address in final,\n orderhash,\n s.tx_hash_orderhash_full,\n nft_address,\n tokenId,\n token_type,\n CASE\n WHEN token_type = '3' THEN nft_tokenid_quantity\n ELSE NULL\n END AS erc1155_value,\n payment_token AS currency_address,\n total_sale_price_raw AS total_sale_amount_raw,\n (COALESCE (fo.platform_fee_raw, 0) + COALESCE(fb.platform_fee_raw, 0)) / offer_length AS platform_fee_raw_total,\n (COALESCE (fo.creator_fee_raw, 0) + COALESCE (fb.creator_fee_raw, 0)) / offer_length AS creator_fee_raw_total,\n platform_fee_raw_total + creator_fee_raw_total AS total_fees_raw,\n _inserted_timestamp,\n _log_id\n FROM\n match_advanced_orders_sale_amount s full\n OUTER JOIN match_advanced_orders_nft_received n\n ON s.tx_hash = n.tx_hash\n AND s.tx_hash_orderhash_full = n.tx_hash_orderhash_full\n LEFT JOIN match_advanced_orders_fees_oa_consideration_agg fo\n ON s.tx_hash = fo.tx_hash\n AND s.event_index = fo.event_index\n LEFT JOIN match_advanced_orders_fees_buy_consideration_agg fb\n ON s.tx_hash = fb.tx_hash\n AND s.tx_hash_orderhash_full = fb.tx_hash_orderhash_full\n ),\n base_sales_buy_and_offer AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_final\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted_final\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw_total AS platform_fee_raw,\n creator_fee_raw_total AS creator_fee_raw,\n decoded_log,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n match_advanced_orders_base\n ),\n tx_data AS (\n SELECT\n tx_hash,\n block_timestamp,\n block_number,\n from_address,\n to_address,\n origin_function_signature,\n tx_fee,\n input_data\n FROM\n {{ ref('core__fact_transactions') }}\n WHERE\n block_timestamp :: DATE >= '2023-02-01'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nnft_transfer_operator AS (\n SELECT\n tx_hash,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS nft_address_from_transfers,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS nft_address_temp,\n --or operator_address\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS offerer,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: STRING AS tokenid,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS erc1155_value\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n block_timestamp :: DATE >= '2022-06-01'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n AND topics [0] :: STRING IN (\n '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62',\n '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nfinal_seaport AS (\n SELECT\n t.block_number,\n t.block_timestamp,\n s.tx_hash,\n s.event_index,\n s.contract_address AS platform_address,\n 'opensea' AS platform_name,\n 'seaport_1_4' AS platform_exchange_version,\n s.event_name,\n offer_length,\n offerer AS seller_address,\n orderHash,\n recipient AS buyer_address,\n sale_category,\n trade_type,\n CASE\n WHEN trade_type = 'buy' THEN 'sale'\n WHEN trade_type = 'offer_accepted' THEN 'bid_won'\n END AS event_type,\n is_price_estimated,\n ZONE,\n tx_type,\n s.token_type,\n s.nft_address_temp,\n CASE\n WHEN nft_address_from_transfers IS NOT NULL THEN nft_address_from_transfers\n ELSE s.nft_address_temp\n END AS nft_address,\n s.tokenId,\n s.erc1155_value,\n s.currency_address,\n COALESCE (\n total_sale_amount_raw,\n 0\n ) AS total_price_raw,\n COALESCE (\n total_fees_raw,\n 0\n ) AS total_fees_raw,\n COALESCE (\n platform_fee_raw,\n 0\n ) AS platform_fee_raw,\n COALESCE (\n creator_fee_raw,\n 0\n ) AS creator_fee_raw,\n t.tx_fee,\n t.from_address AS origin_from_address,\n t.to_address AS origin_to_address,\n t.origin_function_signature,\n decoded_output,\n consideration,\n offer,\n input_data,\n CONCAT(\n nft_address,\n '-',\n s.tokenId,\n '-',\n platform_exchange_version,\n '-',\n _log_id\n ) AS nft_log_id,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_and_offer s\n INNER JOIN tx_data t USING (tx_hash)\n LEFT JOIN nft_transfer_operator o USING (\n tx_hash,\n nft_address_temp,\n tokenid,\n recipient\n ) qualify(ROW_NUMBER() over(PARTITION BY nft_log_id\n ORDER BY\n _inserted_timestamp DESC)) = 1\n)\nSELECT\n *\nFROM\n final_seaport", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_transactions"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.sql", "compiled": true, "compiled_code": "\n\nWITH seaport_fees_wallet AS (\n\n SELECT\n *\n FROM\n (\n VALUES\n ('0x0000a26b00c1f0df003000390027140000faa719'),\n ('0x8de9c5a032463c561423387a9648c5c7bcc5bc90'),\n ('0x5b3256965e7c3cf26e11fcaf296dfc8807c01073')\n ) t (addresses)\n),\nraw_decoded_logs AS (\n SELECT\n *,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.ez_decoded_event_logs\n WHERE\n block_number >= 35000000\n AND contract_address = '0x00000000000001ad428e4906ae43d8f9852d0dd6'\n AND event_name = 'OrderFulfilled'\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.seaport_1_4_sales\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n\n),\nmao_buy_tx AS (\n SELECT\n tx_hash,\n event_index,\n CASE\n WHEN full_decoded_log :data [4] :value [0] [0] IN (\n 2,\n 3\n ) THEN 'buy'\n WHEN full_decoded_log :data [4] :value [0] [0] IN (1) THEN 'offer_accepted'\n ELSE NULL\n END AS trade_type\n FROM\n raw_decoded_logs\n WHERE\n trade_type = 'buy'\n),\nmao_offer_accepted_tx AS (\n SELECT\n block_number,\n tx_hash,\n CASE\n WHEN full_decoded_log :data [4] :value [0] [0] IN (\n 2,\n 3\n ) THEN 'buy'\n WHEN full_decoded_log :data [4] :value [0] [0] IN (1) THEN 'offer_accepted'\n ELSE NULL\n END AS trade_type\n FROM\n raw_decoded_logs\n WHERE\n trade_type = 'offer_accepted'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n mao_buy_tx\n )\n),\nraw_logs AS (\n SELECT\n *,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n block_number >= 35000000\n AND contract_address = '0x00000000000001ad428e4906ae43d8f9852d0dd6'\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.seaport_1_4_sales\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\nmao_orderhash AS (\n SELECT\n tx_hash,\n CONCAT(\n '0x',\n VALUE :: STRING\n ) AS orderhash,\n CONCAT(\n tx_hash,\n '-',\n orderHash\n ) AS tx_hash_orderhash\n FROM\n raw_logs,\n TABLE(\n FLATTEN(\n input => regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}'))\n )\n WHERE\n topics [0] :: STRING = '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n AND INDEX IN (\n 2,\n 3\n )\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n mao_offer_accepted_tx\n )\n ),\n mao_orderhash_full AS (\n SELECT\n tx_hash,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT(\n '0x',\n segmented_data [2] :: STRING\n ) AS orderhash_1,\n CONCAT(\n '0x',\n segmented_data [3] :: STRING\n ) AS orderhash_2,\n CONCAT(\n tx_hash,\n '-',\n orderhash_1,\n '-',\n orderhash_2\n ) AS tx_hash_orderhash_full\n FROM\n raw_logs\n WHERE\n topics [0] :: STRING = '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n mao_offer_accepted_tx\n )\n ),\n mao_raw_decoded AS (\n SELECT\n CASE\n WHEN full_decoded_log :data [4] :value [0] [0] IN (\n 2,\n 3\n ) THEN 'buy'\n WHEN full_decoded_log :data [4] :value [0] [0] IN (1) THEN 'offer_accepted'\n ELSE NULL\n END AS trade_type,\n decoded_log :orderHash :: STRING AS orderhash,\n CONCAT(\n tx_hash,\n '-',\n decoded_log :orderHash :: STRING\n ) AS tx_hash_orderhash,*\n FROM\n raw_decoded_logs\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n mao_orderhash_full\n )\n AND tx_hash_orderhash IN (\n SELECT\n tx_hash_orderhash\n FROM\n mao_orderhash\n )\n ),\n seaport_tx_table AS (\n SELECT\n block_timestamp,\n tx_hash\n FROM\n raw_logs\n WHERE\n block_timestamp >= '2023-02-01'\n AND topics [0] = '0x9d9af8e38d66c62e2c12f0225249fd9d721c54b83f48d9352c97c6cacdcb6f31'\n ),\n decoded AS (\n SELECT\n tx_hash,\n decoded_log,\n event_index,\n full_decoded_log,\n CONCAT(\n tx_hash,\n '-',\n decoded_log :orderHash :: STRING\n ) AS tx_hash_orderhash,\n _log_id,\n _inserted_timestamp,\n LOWER(\n full_decoded_log :address :: STRING\n ) AS contract_address,\n full_decoded_log :name :: STRING AS event_name,\n CASE\n WHEN full_decoded_log :data [4] :value [0] [0] IN (\n 2,\n 3\n ) THEN 'buy'\n WHEN full_decoded_log :data [4] :value [0] [0] IN (1) THEN 'offer_accepted'\n ELSE NULL\n END AS trade_type\n FROM\n raw_decoded_logs\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n seaport_tx_table\n )\n AND tx_hash_orderhash NOT IN (\n SELECT\n tx_hash_orderhash\n FROM\n mao_orderhash\n )\n ),\n offer_length_match_advanced_order_oa AS (\n SELECT\n tx_hash,\n decoded_log :orderHash :: STRING AS orderhash,\n COUNT(1) AS offer_length_raw\n FROM\n mao_raw_decoded,\n TABLE(FLATTEN(input => decoded_log :consideration))\n WHERE\n trade_type = 'offer_accepted'\n AND VALUE :itemType IN (\n 2,\n 3\n )\n AND decoded_log :consideration [0] IS NOT NULL\n GROUP BY\n tx_hash,\n decoded_log :orderHash :: STRING\n HAVING\n offer_length_raw IS NOT NULL\n ),\n offer_length_match_advanced_order_buy AS (\n SELECT\n tx_hash,\n decoded_log :orderHash :: STRING AS orderhash,\n COUNT(1) AS offer_length_raw\n FROM\n mao_raw_decoded,\n TABLE(FLATTEN(input => decoded_log :consideration))\n WHERE\n trade_type = 'buy'\n AND VALUE :itemType IN (\n 2,\n 3\n )\n AND decoded_log :consideration [0] IS NOT NULL\n GROUP BY\n tx_hash,\n decoded_log :orderHash :: STRING\n ),\n offer_length_match_advanced_order_combined AS (\n SELECT\n *\n FROM\n offer_length_match_advanced_order_oa\n UNION ALL\n SELECT\n *\n FROM\n offer_length_match_advanced_order_buy\n ),\n offer_length_match_advanced_order AS (\n SELECT\n C.tx_hash,\n COALESCE(\n A.tx_hash_orderhash_full,\n b.tx_hash_orderhash_full\n ) AS tx_hash_orderhash_full,\n offer_length_raw\n FROM\n offer_length_match_advanced_order_combined C\n LEFT JOIN mao_orderhash_full A\n ON C.tx_hash = A.tx_hash\n AND C.orderhash = A.orderhash_1\n LEFT JOIN mao_orderhash_full b\n ON C.tx_hash = b.tx_hash\n AND C.orderhash = b.orderhash_2\n ),\n offer_length_count_buy AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [4] :value))\n WHERE\n trade_type = 'buy'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n ),\n offer_length_count_offer AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [5] :value))\n WHERE\n trade_type = 'offer_accepted'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n ),\n flat_raw AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_decoded_log :data AS full_data,\n _log_id,\n _inserted_timestamp,\n OBJECT_AGG(\n VALUE :name,\n VALUE :value\n ) AS decoded_output\n FROM\n decoded,\n LATERAL FLATTEN(\n input => full_decoded_log :data\n ) f\n WHERE\n event_name IN (\n 'OrderFulfilled',\n 'OrdersMatched'\n )\n AND trade_type IS NOT NULL\n GROUP BY\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp\n ),\n flat AS (\n SELECT\n r.tx_hash,\n r.event_index,\n contract_address,\n event_name,\n COALESCE (\n b.offer_length_raw,\n o.offer_length_raw,\n NULL\n ) AS offer_length,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp,\n decoded_output\n FROM\n flat_raw r\n LEFT JOIN offer_length_count_buy b\n ON r.tx_hash = b.tx_hash\n AND r.event_index = b.event_index\n LEFT JOIN offer_length_count_offer o\n ON r.tx_hash = o.tx_hash\n AND r.event_index = o.event_index\n WHERE\n offer_length IS NOT NULL\n ),\n filtered_private_offer_tx AS (\n SELECT\n tx_hash\n FROM\n flat\n WHERE\n trade_type = 'offer_accepted'\n AND full_data [3] :value :: STRING = '0x0000000000000000000000000000000000000000'\n ),\n private_offer_tx_flat AS (\n SELECT\n tx_hash,\n ARRAY_AGG (\n CASE\n WHEN trade_type = 'buy' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_offerer,\n ARRAY_AGG(\n CASE\n WHEN trade_type = 'offer_accepted' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_recipient --(buyer) or receiver of the NFT\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n GROUP BY\n tx_hash\n ),\n private_offer_tx_flat_null_offerer AS (\n -- mainly transfers via opensea as a result of a phishing scam)\n SELECT\n tx_hash,\n full_data [1] :value :: STRING AS private_seller -- person whose account is compromised\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat\n WHERE\n private_offerer IS NULL\n )\n AND trade_type = 'offer_accepted'\n ),\n private_offer_tx_offerer_combined AS (\n SELECT\n t.tx_hash,\n t.private_offerer,\n t.private_recipient AS recipient_from_private_tx,\n n.private_seller,\n CASE\n WHEN t.private_offerer IS NULL THEN n.private_seller\n ELSE t.private_offerer\n END AS offerer_from_private_tx\n FROM\n private_offer_tx_flat t\n LEFT JOIN private_offer_tx_flat_null_offerer n\n ON t.tx_hash = n.tx_hash\n ),\n base_sales_buy AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n --seller\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n -- buyer\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n ) -- AND tx_type IS NOT NULL ; null tx type would mean that there aren't any considerations. The nft is transferred without asking for anything in exchange for it\n ),\n base_sales_buy_null_values AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND tx_type IS NULL\n ),\n base_sales_buy_public_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n ),\n base_sales_buy_public_nft_transfers_null_values AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_null_values\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n ),\n base_sales_buy_public_nft_transfers_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers_null_values\n ),\n base_sales_buy_private_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] :: STRING AS private_sale_recipient\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'private'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n ),\n base_sales_buy_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n ),\n base_sales_buy_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN first_flatten_index = 0 THEN raw_amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_buy_sale_amount_filter\n ),\n base_sales_buy_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw_,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_buy_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n ),\n base_sales_buy_sale_amount_null_values AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy_null_values\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_sale_amount_filter\n )\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_type IS NULL\n ),\n base_sales_buy_sale_amount_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_sale_amount_null_values\n ),\n base_sales_buy_combined AS (\n SELECT\n *\n FROM\n base_sales_buy\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_null_values\n ),\n base_sales_buy_final_public AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n recipient_temp AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_public_nft_transfers_combined n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n ),\n base_sales_buy_final_private AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n private_sale_recipient AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_private_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n ),\n base_sales_buy_final AS (\n SELECT\n *\n FROM\n base_sales_buy_final_public\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_final_private\n ),\n base_sales_offer_accepted AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :recipient :: STRING AS offerer_temp,\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :offerer :: STRING AS recipient_temp,\n CASE\n WHEN offerer_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output :offer [0] [3] :: INT / offer_length AS total_sale_amount_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled',\n 'OrdersMatched'\n )\n AND trade_type = 'offer_accepted'\n AND tx_type IS NOT NULL\n AND tx_hash IS NOT NULL\n ),\n base_sales_offer_accepted_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] AS private_recipient_from_consideration\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n ),\n base_sales_offer_accepted_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n ),\n base_sales_offer_accepted_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN address_list NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_sale_amount_filter\n ),\n base_sales_offer_accepted_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n currency_address,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n ),\n base_sales_offer_accepted_no_fees_tx AS (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_sale_amount_filter\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n ),\n base_sales_offer_accepted_no_fees_amount AS (\n SELECT\n tx_hash,\n event_index,\n ARRAY_AGG(\n t.value\n ) AS sale_values,\n sale_values [0] [1] :: STRING AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_no_fees_tx\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n GROUP BY\n tx_hash,\n event_index\n ),\n base_sales_offer_accepted_phishing_scam_amount AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n NULL AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_nft_transfers\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n ),\n base_sales_offer_accepted_sale_and_no_fees AS (\n SELECT\n *\n FROM\n base_sales_offer_accepted_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_no_fees_amount\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_phishing_scam_amount\n ),\n base_sales_offer_accepted_final AS (\n SELECT\n b.tx_hash,\n b.event_index,\n contract_address,\n event_name,\n offer_length,\n CASE\n WHEN sale_category = 'public' THEN offerer_temp\n ELSE COALESCE (\n private_offerer,\n offerer_from_private_tx\n )\n END AS offerer,\n orderHash,\n CASE\n WHEN sale_category = 'public' THEN recipient_temp\n WHEN sale_category = 'private'\n AND private_offerer IS NULL THEN private_recipient_from_consideration\n ELSE recipient_from_private_tx\n END AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address,\n tokenid,\n CASE\n WHEN token_type = '3' THEN number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n CASE\n WHEN private_offerer IS NULL\n AND private_seller IS NOT NULL THEN 0\n ELSE decoded_output :offer [0] [3] :: INT / offer_length\n END AS total_sale_amount_raw,\n platform_fee_raw_ :: INT / offer_length AS platform_fee_raw,\n creator_fee_raw_ :: INT / offer_length AS creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted b\n INNER JOIN base_sales_offer_accepted_sale_and_no_fees s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_offer_accepted_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n LEFT OUTER JOIN private_offer_tx_offerer_combined p\n ON b.tx_hash = p.tx_hash\n WHERE\n nft_address IS NOT NULL qualify ROW_NUMBER() over (\n PARTITION BY b.tx_hash,\n b.event_index,\n nft_address,\n tokenid,\n _log_id\n ORDER BY\n _inserted_timestamp ASC\n ) = 1\n ),\n match_advanced_orders_sale_amount AS (\n SELECT\n r.tx_hash,\n block_number,\n r.event_index,\n event_name,\n contract_address,\n trade_type,\n offer_length_raw,\n full_decoded_log,\n decoded_log,\n decoded_log :offerer :: STRING AS offerer,\n -- or the one who proposed the sale so that they receive the nft\n decoded_log :zone :: STRING AS ZONE,\n decoded_log :recipient :: STRING AS recipient,\n decoded_log :orderHash :: STRING AS orderhash,\n COALESCE(\n A.tx_hash_orderhash_full,\n b.tx_hash_orderhash_full\n ) AS tx_hash_orderhash_full,\n decoded_log :offer [0] :token :: STRING AS payment_token,\n (\n decoded_log :offer [0] :amount :: INT\n ) / offer_length_raw AS total_sale_price_raw,\n _inserted_timestamp,\n _log_id\n FROM\n mao_raw_decoded r\n LEFT JOIN mao_orderhash_full A\n ON r.tx_hash = A.tx_hash\n AND r.decoded_log :orderHash :: STRING = A.orderhash_1\n LEFT JOIN mao_orderhash_full b\n ON r.tx_hash = b.tx_hash\n AND r.decoded_log :orderHash :: STRING = b.orderhash_2\n INNER JOIN offer_length_match_advanced_order o\n ON r.tx_hash = o.tx_hash\n AND COALESCE(\n A.tx_hash_orderhash_full,\n b.tx_hash_orderhash_full\n ) = o.tx_hash_orderhash_full\n WHERE\n trade_type = 'offer_accepted'\n AND decoded_log :offer [0] :itemType :: INT IN (\n 0,\n 1\n )\n ),\n match_advanced_orders_nft_received_oa AS (\n SELECT\n tx_hash,\n event_index,\n decoded_log :orderHash :: STRING AS orderhash,\n decoded_log :offerer :: STRING AS transfers_nft_receiver,\n decoded_log :recipient :: STRING AS transfers_nft_seller,\n VALUE :token :: STRING AS nft_address,\n VALUE :identifier :: STRING AS tokenId,\n VALUE :amount :: INT AS nft_tokenid_quantity,\n VALUE :recipient :: STRING AS nft_recipient,\n VALUE :itemType :: INT AS token_type\n FROM\n mao_raw_decoded,\n LATERAL FLATTEN (\n input => decoded_log :consideration\n )\n WHERE\n trade_type = 'offer_accepted'\n AND VALUE :itemType :: INT IN (\n 2,\n 3\n )\n ),\n match_advanced_orders_nft_received_oa_hash AS (\n SELECT\n r.tx_hash,\n COALESCE(\n A.tx_hash_orderhash_full,\n b.tx_hash_orderhash_full\n ) AS tx_hash_orderhash_full,\n transfers_nft_receiver,\n transfers_nft_seller,\n nft_address,\n tokenId,\n nft_tokenid_quantity,\n nft_recipient,\n token_type\n FROM\n match_advanced_orders_nft_received_oa r\n LEFT JOIN mao_orderhash_full A\n ON r.tx_hash = A.tx_hash\n AND r.orderHash = A.orderhash_1\n LEFT JOIN mao_orderhash_full b\n ON r.tx_hash = b.tx_hash\n AND r.orderHash = b.orderhash_2\n ),\n match_advanced_orders_nft_received_buy AS (\n SELECT\n tx_hash,\n event_index,\n decoded_log :orderHash :: STRING AS orderhash,\n decoded_log :offerer :: STRING AS transfers_nft_seller,\n decoded_log :recipient :: STRING AS transfers_nft_receiver,\n VALUE :token :: STRING AS nft_address,\n VALUE :identifier :: STRING AS tokenId,\n VALUE :amount :: INT AS nft_tokenid_quantity,\n VALUE :recipient :: STRING AS nft_recipient,\n VALUE :itemType :: INT AS token_type\n FROM\n mao_raw_decoded,\n LATERAL FLATTEN (\n input => decoded_log :consideration\n )\n WHERE\n trade_type = 'buy'\n AND VALUE :itemType :: INT IN (\n 2,\n 3\n )\n ),\n match_advanced_orders_nft_received_buy_hash AS (\n SELECT\n r.tx_hash,\n COALESCE(\n A.tx_hash_orderhash_full,\n b.tx_hash_orderhash_full\n ) AS tx_hash_orderhash_full,\n transfers_nft_receiver,\n transfers_nft_seller,\n nft_address,\n tokenId,\n nft_tokenid_quantity,\n nft_recipient,\n token_type\n FROM\n match_advanced_orders_nft_received_buy r\n LEFT JOIN mao_orderhash_full A\n ON r.tx_hash = A.tx_hash\n AND r.orderHash = A.orderhash_1\n LEFT JOIN mao_orderhash_full b\n ON r.tx_hash = b.tx_hash\n AND r.orderHash = b.orderhash_2\n ),\n match_advanced_orders_nft_received AS (\n SELECT\n *\n FROM\n match_advanced_orders_nft_received_oa_hash\n UNION ALL\n SELECT\n *\n FROM\n match_advanced_orders_nft_received_buy_hash\n ),\n match_advanced_orders_fees_oa_consideration AS (\n SELECT\n tx_hash,\n decoded_log,\n event_index,\n VALUE :token :: STRING AS payment_token,\n VALUE :amount :: INT AS raw_amount,\n VALUE :recipient :: STRING AS fee_recipient,\n CASE\n WHEN fee_recipient IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN fee_recipient NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n mao_raw_decoded,\n LATERAL FLATTEN (\n input => decoded_log :consideration\n ) f\n WHERE\n trade_type = 'offer_accepted'\n AND VALUE :itemType :: INT IN (\n 0,\n 1\n )\n ),\n match_advanced_orders_fees_oa_consideration_agg AS (\n SELECT\n tx_hash,\n event_index,\n SUM(platform_fee_raw_) AS platform_fee_raw,\n SUM(creator_fee_raw_) AS creator_fee_raw\n FROM\n match_advanced_orders_fees_oa_consideration\n GROUP BY\n tx_hash,\n event_index\n ),\n match_advanced_orders_fees_buy_consideration AS (\n SELECT\n tx_hash,\n decoded_log,\n decoded_log :orderHash :: STRING AS orderhash,\n VALUE :token :: STRING AS payment_token,\n VALUE :amount :: INT AS raw_amount,\n VALUE :recipient :: STRING AS royalty_recipient,\n INDEX,\n CASE\n WHEN royalty_recipient IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN royalty_recipient NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n mao_raw_decoded,\n LATERAL FLATTEN (\n input => decoded_log :consideration\n )\n WHERE\n trade_type = 'buy'\n AND VALUE :itemType :: INT IN (\n 0,\n 1\n ) qualify ROW_NUMBER() over (\n PARTITION BY tx_hash,\n orderhash\n ORDER BY\n raw_amount DESC\n ) > 1\n ),\n match_advanced_orders_fees_buy_consideration_filtered AS (\n SELECT\n C.tx_hash,\n decoded_log,\n C.orderhash,\n COALESCE(\n A.tx_hash_orderhash_full,\n b.tx_hash_orderhash_full\n ) AS tx_hash_orderhash_full,\n payment_token,\n raw_amount,\n royalty_recipient,\n INDEX,\n platform_fee_raw_,\n creator_fee_raw_\n FROM\n match_advanced_orders_fees_buy_consideration C\n LEFT JOIN mao_orderhash_full A\n ON C.tx_hash = A.tx_hash\n AND C.orderhash = A.orderhash_1\n LEFT JOIN mao_orderhash_full b\n ON C.tx_hash = b.tx_hash\n AND C.orderhash = b.orderhash_2\n ),\n match_advanced_orders_fees_buy_consideration_agg AS (\n SELECT\n tx_hash,\n tx_hash_orderhash_full,\n SUM(platform_fee_raw_) AS platform_fee_raw,\n SUM(creator_fee_raw_) AS creator_fee_raw\n FROM\n match_advanced_orders_fees_buy_consideration_filtered\n GROUP BY\n tx_hash,\n tx_hash_orderhash_full\n ),\n match_advanced_orders_base AS (\n SELECT\n s.tx_hash,\n block_number,\n s.event_index,\n event_name,\n contract_address,\n trade_type,\n offer_length_raw AS offer_length,\n CASE\n WHEN offerer = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_log,\n -- using decoded flat here instead of decoded_output so that we're able to filter for match advanced orders\n decoded_log :consideration AS consideration,\n decoded_log :offer AS offer,\n decoded_log :consideration [0] :itemType AS tx_type,\n ZONE,\n transfers_nft_receiver AS recipient,\n --buyer_address in final\n transfers_nft_seller AS offerer,\n --seller_address in final,\n orderhash,\n s.tx_hash_orderhash_full,\n nft_address,\n tokenId,\n token_type,\n CASE\n WHEN token_type = '3' THEN nft_tokenid_quantity\n ELSE NULL\n END AS erc1155_value,\n payment_token AS currency_address,\n total_sale_price_raw AS total_sale_amount_raw,\n (COALESCE (fo.platform_fee_raw, 0) + COALESCE(fb.platform_fee_raw, 0)) / offer_length AS platform_fee_raw_total,\n (COALESCE (fo.creator_fee_raw, 0) + COALESCE (fb.creator_fee_raw, 0)) / offer_length AS creator_fee_raw_total,\n platform_fee_raw_total + creator_fee_raw_total AS total_fees_raw,\n _inserted_timestamp,\n _log_id\n FROM\n match_advanced_orders_sale_amount s full\n OUTER JOIN match_advanced_orders_nft_received n\n ON s.tx_hash = n.tx_hash\n AND s.tx_hash_orderhash_full = n.tx_hash_orderhash_full\n LEFT JOIN match_advanced_orders_fees_oa_consideration_agg fo\n ON s.tx_hash = fo.tx_hash\n AND s.event_index = fo.event_index\n LEFT JOIN match_advanced_orders_fees_buy_consideration_agg fb\n ON s.tx_hash = fb.tx_hash\n AND s.tx_hash_orderhash_full = fb.tx_hash_orderhash_full\n ),\n base_sales_buy_and_offer AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_final\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted_final\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw_total AS platform_fee_raw,\n creator_fee_raw_total AS creator_fee_raw,\n decoded_log,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n match_advanced_orders_base\n ),\n tx_data AS (\n SELECT\n tx_hash,\n block_timestamp,\n block_number,\n from_address,\n to_address,\n origin_function_signature,\n tx_fee,\n input_data\n FROM\n polygon.core.fact_transactions\n WHERE\n block_timestamp :: DATE >= '2023-02-01'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.seaport_1_4_sales\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\nnft_transfer_operator AS (\n SELECT\n tx_hash,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS nft_address_from_transfers,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS nft_address_temp,\n --or operator_address\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS offerer,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: STRING AS tokenid,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS erc1155_value\n FROM\n polygon.core.fact_event_logs\n WHERE\n block_timestamp :: DATE >= '2022-06-01'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n AND topics [0] :: STRING IN (\n '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62',\n '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb'\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.seaport_1_4_sales\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\nfinal_seaport AS (\n SELECT\n t.block_number,\n t.block_timestamp,\n s.tx_hash,\n s.event_index,\n s.contract_address AS platform_address,\n 'opensea' AS platform_name,\n 'seaport_1_4' AS platform_exchange_version,\n s.event_name,\n offer_length,\n offerer AS seller_address,\n orderHash,\n recipient AS buyer_address,\n sale_category,\n trade_type,\n CASE\n WHEN trade_type = 'buy' THEN 'sale'\n WHEN trade_type = 'offer_accepted' THEN 'bid_won'\n END AS event_type,\n is_price_estimated,\n ZONE,\n tx_type,\n s.token_type,\n s.nft_address_temp,\n CASE\n WHEN nft_address_from_transfers IS NOT NULL THEN nft_address_from_transfers\n ELSE s.nft_address_temp\n END AS nft_address,\n s.tokenId,\n s.erc1155_value,\n s.currency_address,\n COALESCE (\n total_sale_amount_raw,\n 0\n ) AS total_price_raw,\n COALESCE (\n total_fees_raw,\n 0\n ) AS total_fees_raw,\n COALESCE (\n platform_fee_raw,\n 0\n ) AS platform_fee_raw,\n COALESCE (\n creator_fee_raw,\n 0\n ) AS creator_fee_raw,\n t.tx_fee,\n t.from_address AS origin_from_address,\n t.to_address AS origin_to_address,\n t.origin_function_signature,\n decoded_output,\n consideration,\n offer,\n input_data,\n CONCAT(\n nft_address,\n '-',\n s.tokenId,\n '-',\n platform_exchange_version,\n '-',\n _log_id\n ) AS nft_log_id,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_and_offer s\n INNER JOIN tx_data t USING (tx_hash)\n LEFT JOIN nft_transfer_operator o USING (\n tx_hash,\n nft_address_temp,\n tokenid,\n recipient\n ) qualify(ROW_NUMBER() over(PARTITION BY nft_log_id\n ORDER BY\n _inserted_timestamp DESC)) = 1\n)\nSELECT\n *\nFROM\n final_seaport", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.polygon_models.silver__element_sales": {"database": "polygon", "schema": "silver", "name": "silver__element_sales", "resource_type": "model", "package_name": "polygon_models", "path": "silver/NFT/sales/silver__element_sales.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.sql", "unique_id": "model.polygon_models.silver__element_sales", "fqn": ["polygon_models", "silver", "NFT", "sales", "silver__element_sales"], "alias": "element_sales", "checksum": {"name": "sha256", "checksum": "7727826c64e56b95082ef96a5343f39f8982c78403f59af2cf88049ee22abf49"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "nft", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "nft", "curated"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SELLER_ADDRESS": {"name": "SELLER_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BUYER_ADDRESS": {"name": "BUYER_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NFT_ADDRESS": {"name": "NFT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKENID": {"name": "TOKENID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CURRENCY_ADDRESS": {"name": "CURRENCY_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_PRICE_RAW": {"name": "TOTAL_PRICE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_FEES_RAW": {"name": "TOTAL_FEES_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_FEE_RAW": {"name": "PLATFORM_FEE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATOR_FEE_RAW": {"name": "CREATOR_FEE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_FEE": {"name": "TX_FEE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NFT_LOG_ID": {"name": "NFT_LOG_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_LOG_ID": {"name": "_LOG_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_TYPE": {"name": "EVENT_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INPUT_DATA": {"name": "INPUT_DATA", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/NFT/sales/silver__element_sales.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "nft", "curated"]}, "created_at": 1764018434.6807, "relation_name": "polygon.silver.element_sales", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','nft','curated']\n) }}\n\nWITH settings AS (\n\n SELECT\n '2022-04-15' AS start_date,\n '2022-10-21 03:04:13.000' AS end_date,\n '0xeaf5453b329eb38be159a872a6ce91c9a8fb0260' AS main_address,\n '0xd207842d66b715df6ea08cf52f025b9e2ed28788' AS fee_address,\n '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270' AS wrapped_native_address\n),\nraw AS (\n SELECT\n tx_hash,\n event_index,\n event_name,\n decoded_log,\n IFF(\n event_name LIKE '%Buy%',\n 'bid_won',\n 'sale'\n ) AS event_type,\n decoded_log :erc20Token :: STRING AS currency_address_raw,\n COALESCE(\n decoded_log :erc20TokenAmount,\n decoded_log :erc20FillAmount\n ) :: INT AS amount_raw,\n COALESCE(\n decoded_log :erc721Token,\n decoded_log :erc1155Token\n ) :: STRING AS nft_address,\n COALESCE(\n decoded_log :erc721TokenId,\n decoded_log :erc1155TokenId\n ) :: STRING AS tokenid,\n decoded_log :erc1155FillAmount :: STRING AS erc1155_value,\n IFF(\n erc1155_value IS NULL,\n 'erc721',\n 'erc1155'\n ) AS nft_type,\n decoded_log :maker :: STRING AS maker,\n decoded_log :taker :: STRING AS taker,\n IFF(\n event_name LIKE '%Buy%',\n taker,\n maker\n ) AS seller_address,\n IFF(\n event_name LIKE '%Buy%',\n maker,\n taker\n ) AS buyer_address,\n decoded_log :fees AS fees_array,\n decoded_log :orderHash :: STRING AS orderhash,\n ROW_NUMBER() over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) AS intra_grouping_seller_fill,\n block_timestamp,\n block_number,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n WHERE\n block_timestamp :: DATE >= (\n SELECT\n start_date\n FROM\n settings\n )\n AND contract_address = (\n SELECT\n main_address\n FROM\n settings\n )\n AND event_name IN (\n 'ERC721BuyOrderFilled',\n 'ERC721SellOrderFilled',\n 'ERC1155SellOrderFilled',\n 'ERC1155BuyOrderFilled'\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n{% endif %}\n),\nold_token_transfers AS (\n -- old version only has 1 sale event per tx\n SELECT\n tx_hash,\n event_index,\n from_address,\n to_address,\n contract_address AS currency_address_raw,\n raw_amount,\n CASE\n WHEN ROW_NUMBER() over (\n PARTITION BY tx_hash,\n contract_address\n ORDER BY\n raw_amount DESC\n ) = 1 THEN raw_amount\n ELSE 0\n END AS net_sale_amount_raw,\n CASE\n WHEN to_address = (\n SELECT\n fee_address\n FROM\n settings\n ) THEN raw_amount\n ELSE 0\n END AS platform_amount_raw,\n CASE\n WHEN net_sale_amount_raw = 0\n AND platform_amount_raw = 0 THEN raw_amount\n ELSE 0\n END AS creator_amount_raw,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__ez_token_transfers') }}\n WHERE\n block_timestamp :: DATE >= (\n SELECT\n start_date\n FROM\n settings\n )\n AND block_timestamp <= (\n SELECT\n end_date\n FROM\n settings\n )\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n raw\n WHERE\n currency_address_raw != '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee'\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nold_token_transfers_agg AS (\n SELECT\n tx_hash,\n currency_address_raw,\n SUM(net_sale_amount_raw) AS net_sale_raw,\n SUM(platform_amount_raw) AS platform_fee_raw,\n SUM(creator_amount_raw) AS creator_fee_raw\n FROM\n old_token_transfers\n GROUP BY\n ALL\n),\nold_native_transfers AS (\n SELECT\n tx_hash,\n trace_index,\n from_address,\n to_address,\n VALUE,\n value * pow(\n 10,\n 18\n ) AS amount_raw,\n IFF(\n to_address = (\n SELECT\n main_address\n FROM\n settings\n ),\n 1,\n 0\n ) AS intra_grouping\n FROM\n {{ ref('core__fact_traces') }}\n WHERE\n block_timestamp :: DATE >= (\n SELECT\n start_date\n FROM\n settings\n )\n AND block_timestamp <= (\n SELECT\n end_date\n FROM\n settings\n )\n AND (\n from_address = (\n SELECT\n main_address\n FROM\n settings\n )\n OR (\n to_address = (\n SELECT\n main_address\n FROM\n settings\n )\n AND from_address != (\n SELECT\n wrapped_native_address\n FROM\n settings\n )\n )\n )\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n raw\n WHERE\n currency_address_raw = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee'\n )\n AND TYPE = 'CALL'\n AND value > 0\n AND trace_succeeded\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nold_native_labels AS (\n SELECT\n *,\n SUM(intra_grouping) over (\n PARTITION BY tx_hash\n ORDER BY\n trace_index ASC\n ) AS intra_grouping_seller\n FROM\n old_native_transfers\n),\nold_native_amounts AS (\n SELECT\n *,\n CASE\n WHEN ROW_NUMBER() over (\n PARTITION BY tx_hash,\n intra_grouping_seller\n ORDER BY\n amount_raw DESC\n ) = 1 THEN amount_raw\n ELSE 0\n END AS sale_amount,\n CASE\n WHEN to_address = (\n SELECT\n fee_address\n FROM\n settings\n ) THEN amount_raw\n ELSE 0\n END AS platform_fee,\n CASE\n WHEN sale_amount = 0\n AND platform_fee = 0 THEN amount_raw\n ELSE 0\n END AS creator_fee\n FROM\n old_native_labels\n WHERE\n to_address != (\n SELECT\n main_address\n FROM\n settings\n )\n),\nold_native_agg AS (\n SELECT\n tx_hash,\n intra_grouping_seller,\n SUM(sale_amount) AS net_sale_raw,\n SUM(platform_fee) AS platform_fee_raw,\n SUM(creator_fee) AS creator_fee_raw\n FROM\n old_native_amounts\n GROUP BY\n ALL\n),\nold_native_agg_rn AS (\n SELECT\n tx_hash,\n ROW_NUMBER() over (\n PARTITION BY tx_hash\n ORDER BY\n intra_grouping_seller ASC\n ) AS intra_grouping_seller_fill,\n net_sale_raw,\n platform_fee_raw,\n creator_fee_raw\n FROM\n old_native_agg\n),\nold_native_base AS (\n SELECT\n tx_hash,\n intra_grouping_seller_fill,\n event_index,\n event_name,\n decoded_log,\n event_type,\n currency_address_raw,\n amount_raw,\n nft_address,\n tokenid,\n erc1155_value,\n nft_type,\n maker,\n taker,\n seller_address,\n buyer_address,\n net_sale_raw + platform_fee_raw + creator_fee_raw AS total_price_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n fees_array,\n orderhash,\n block_timestamp,\n block_number,\n _log_id,\n _inserted_timestamp\n FROM\n raw\n INNER JOIN old_native_agg_rn USING (\n tx_hash,\n intra_grouping_seller_fill\n )\n WHERE\n block_timestamp <= (\n SELECT\n end_date\n FROM\n settings\n )\n AND currency_address_raw = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee'\n),\nold_token_base AS (\n SELECT\n tx_hash,\n intra_grouping_seller_fill,\n event_index,\n event_name,\n decoded_log,\n event_type,\n currency_address_raw,\n amount_raw,\n nft_address,\n tokenid,\n erc1155_value,\n nft_type,\n maker,\n taker,\n seller_address,\n buyer_address,\n net_sale_raw + platform_fee_raw + creator_fee_raw AS total_price_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n fees_array,\n orderhash,\n block_timestamp,\n block_number,\n _log_id,\n _inserted_timestamp\n FROM\n raw\n INNER JOIN old_token_transfers_agg USING (\n tx_hash,\n currency_address_raw\n )\n WHERE\n block_timestamp <= (\n SELECT\n end_date\n FROM\n settings\n )\n AND currency_address_raw != '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee'\n),\nraw_fees AS (\n SELECT\n tx_hash,\n event_index,\n INDEX,\n VALUE :amount :: INT AS fee_amount_raw,\n VALUE :recipient :: STRING AS fee_recipient,\n CASE\n WHEN fee_recipient = (\n SELECT\n fee_address\n FROM\n settings\n ) THEN fee_amount_raw\n ELSE 0\n END AS platform_amount_raw,\n CASE\n WHEN fee_recipient != (\n SELECT\n fee_address\n FROM\n settings\n ) THEN fee_amount_raw\n ELSE 0\n END AS creator_amount_raw\n FROM\n raw,\n LATERAL FLATTEN (\n input => fees_array\n )\n WHERE\n block_timestamp > (\n SELECT\n end_date\n FROM\n settings\n )\n),\nraw_fees_agg AS (\n SELECT\n tx_hash,\n event_index,\n SUM(platform_amount_raw) AS platform_fee_raw_,\n SUM(creator_amount_raw) AS creator_fee_raw_\n FROM\n raw_fees\n GROUP BY\n ALL\n),\nnew_base AS (\n SELECT\n tx_hash,\n intra_grouping_seller_fill,\n event_index,\n event_name,\n decoded_log,\n event_type,\n currency_address_raw,\n amount_raw,\n nft_address,\n tokenid,\n erc1155_value,\n nft_type,\n maker,\n taker,\n seller_address,\n buyer_address,\n amount_raw AS total_price_raw,\n COALESCE(\n platform_fee_raw_,\n 0\n ) + COALESCE(\n creator_fee_raw_,\n 0\n ) AS total_fees_raw,\n COALESCE(\n platform_fee_raw_,\n 0\n ) AS platform_fee_raw,\n COALESCE(\n creator_fee_raw_,\n 0\n ) AS creator_fee_raw,\n fees_array,\n orderhash,\n block_timestamp,\n block_number,\n _log_id,\n _inserted_timestamp\n FROM\n raw\n LEFT JOIN raw_fees_agg USING (\n tx_hash,\n event_index\n )\n WHERE\n block_timestamp > (\n SELECT\n end_date\n FROM\n settings\n )\n),\nall_combined AS (\n SELECT\n *\n FROM\n old_native_base\n UNION ALL\n SELECT\n *\n FROM\n old_token_base\n UNION ALL\n SELECT\n *\n FROM\n new_base\n),\ntx_data AS (\n SELECT\n tx_hash,\n from_address AS origin_from_address,\n to_address AS origin_to_address,\n origin_function_signature,\n tx_fee,\n input_data\n FROM\n {{ ref('core__fact_transactions') }}\n WHERE\n block_timestamp :: DATE >= (\n SELECT\n start_date\n FROM\n settings\n )\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n all_combined\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n decoded_log,\n event_type,\n (\n SELECT\n main_address\n FROM\n settings\n ) AS platform_address,\n 'element' AS platform_name,\n 'element v1' AS platform_exchange_version,\n intra_grouping_seller_fill,\n currency_address_raw,\n amount_raw,\n nft_address,\n tokenid,\n erc1155_value,\n nft_type,\n maker,\n taker,\n seller_address,\n buyer_address,\n IFF(\n currency_address_raw = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',\n 'MATIC',\n currency_address_raw\n ) AS currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n fees_array,\n orderhash,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_fee,\n input_data,\n _log_id,\n CONCAT(\n nft_address,\n '-',\n tokenId,\n '-',\n platform_exchange_version,\n '-',\n _log_id\n ) AS nft_log_id,\n _inserted_timestamp\nFROM\n all_combined\n INNER JOIN tx_data USING (tx_hash) qualify ROW_NUMBER() over (\n PARTITION BY nft_log_id\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "core__ez_token_transfers", "package": null, "version": null}, {"name": "core__fact_traces", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__ez_token_transfers", "model.fsc_evm.core__fact_traces", "model.fsc_evm.core__fact_transactions"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.sql", "compiled": true, "compiled_code": "\n\nWITH settings AS (\n\n SELECT\n '2022-04-15' AS start_date,\n '2022-10-21 03:04:13.000' AS end_date,\n '0xeaf5453b329eb38be159a872a6ce91c9a8fb0260' AS main_address,\n '0xd207842d66b715df6ea08cf52f025b9e2ed28788' AS fee_address,\n '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270' AS wrapped_native_address\n),\nraw AS (\n SELECT\n tx_hash,\n event_index,\n event_name,\n decoded_log,\n IFF(\n event_name LIKE '%Buy%',\n 'bid_won',\n 'sale'\n ) AS event_type,\n decoded_log :erc20Token :: STRING AS currency_address_raw,\n COALESCE(\n decoded_log :erc20TokenAmount,\n decoded_log :erc20FillAmount\n ) :: INT AS amount_raw,\n COALESCE(\n decoded_log :erc721Token,\n decoded_log :erc1155Token\n ) :: STRING AS nft_address,\n COALESCE(\n decoded_log :erc721TokenId,\n decoded_log :erc1155TokenId\n ) :: STRING AS tokenid,\n decoded_log :erc1155FillAmount :: STRING AS erc1155_value,\n IFF(\n erc1155_value IS NULL,\n 'erc721',\n 'erc1155'\n ) AS nft_type,\n decoded_log :maker :: STRING AS maker,\n decoded_log :taker :: STRING AS taker,\n IFF(\n event_name LIKE '%Buy%',\n taker,\n maker\n ) AS seller_address,\n IFF(\n event_name LIKE '%Buy%',\n maker,\n taker\n ) AS buyer_address,\n decoded_log :fees AS fees_array,\n decoded_log :orderHash :: STRING AS orderhash,\n ROW_NUMBER() over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) AS intra_grouping_seller_fill,\n block_timestamp,\n block_number,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.ez_decoded_event_logs\n WHERE\n block_timestamp :: DATE >= (\n SELECT\n start_date\n FROM\n settings\n )\n AND contract_address = (\n SELECT\n main_address\n FROM\n settings\n )\n AND event_name IN (\n 'ERC721BuyOrderFilled',\n 'ERC721SellOrderFilled',\n 'ERC1155SellOrderFilled',\n 'ERC1155BuyOrderFilled'\n )\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.element_sales\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n\n),\nold_token_transfers AS (\n -- old version only has 1 sale event per tx\n SELECT\n tx_hash,\n event_index,\n from_address,\n to_address,\n contract_address AS currency_address_raw,\n raw_amount,\n CASE\n WHEN ROW_NUMBER() over (\n PARTITION BY tx_hash,\n contract_address\n ORDER BY\n raw_amount DESC\n ) = 1 THEN raw_amount\n ELSE 0\n END AS net_sale_amount_raw,\n CASE\n WHEN to_address = (\n SELECT\n fee_address\n FROM\n settings\n ) THEN raw_amount\n ELSE 0\n END AS platform_amount_raw,\n CASE\n WHEN net_sale_amount_raw = 0\n AND platform_amount_raw = 0 THEN raw_amount\n ELSE 0\n END AS creator_amount_raw,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.ez_token_transfers\n WHERE\n block_timestamp :: DATE >= (\n SELECT\n start_date\n FROM\n settings\n )\n AND block_timestamp <= (\n SELECT\n end_date\n FROM\n settings\n )\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n raw\n WHERE\n currency_address_raw != '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee'\n )\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.element_sales\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\nold_token_transfers_agg AS (\n SELECT\n tx_hash,\n currency_address_raw,\n SUM(net_sale_amount_raw) AS net_sale_raw,\n SUM(platform_amount_raw) AS platform_fee_raw,\n SUM(creator_amount_raw) AS creator_fee_raw\n FROM\n old_token_transfers\n GROUP BY\n ALL\n),\nold_native_transfers AS (\n SELECT\n tx_hash,\n trace_index,\n from_address,\n to_address,\n VALUE,\n value * pow(\n 10,\n 18\n ) AS amount_raw,\n IFF(\n to_address = (\n SELECT\n main_address\n FROM\n settings\n ),\n 1,\n 0\n ) AS intra_grouping\n FROM\n polygon.core.fact_traces\n WHERE\n block_timestamp :: DATE >= (\n SELECT\n start_date\n FROM\n settings\n )\n AND block_timestamp <= (\n SELECT\n end_date\n FROM\n settings\n )\n AND (\n from_address = (\n SELECT\n main_address\n FROM\n settings\n )\n OR (\n to_address = (\n SELECT\n main_address\n FROM\n settings\n )\n AND from_address != (\n SELECT\n wrapped_native_address\n FROM\n settings\n )\n )\n )\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n raw\n WHERE\n currency_address_raw = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee'\n )\n AND TYPE = 'CALL'\n AND value > 0\n AND trace_succeeded\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.element_sales\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\nold_native_labels AS (\n SELECT\n *,\n SUM(intra_grouping) over (\n PARTITION BY tx_hash\n ORDER BY\n trace_index ASC\n ) AS intra_grouping_seller\n FROM\n old_native_transfers\n),\nold_native_amounts AS (\n SELECT\n *,\n CASE\n WHEN ROW_NUMBER() over (\n PARTITION BY tx_hash,\n intra_grouping_seller\n ORDER BY\n amount_raw DESC\n ) = 1 THEN amount_raw\n ELSE 0\n END AS sale_amount,\n CASE\n WHEN to_address = (\n SELECT\n fee_address\n FROM\n settings\n ) THEN amount_raw\n ELSE 0\n END AS platform_fee,\n CASE\n WHEN sale_amount = 0\n AND platform_fee = 0 THEN amount_raw\n ELSE 0\n END AS creator_fee\n FROM\n old_native_labels\n WHERE\n to_address != (\n SELECT\n main_address\n FROM\n settings\n )\n),\nold_native_agg AS (\n SELECT\n tx_hash,\n intra_grouping_seller,\n SUM(sale_amount) AS net_sale_raw,\n SUM(platform_fee) AS platform_fee_raw,\n SUM(creator_fee) AS creator_fee_raw\n FROM\n old_native_amounts\n GROUP BY\n ALL\n),\nold_native_agg_rn AS (\n SELECT\n tx_hash,\n ROW_NUMBER() over (\n PARTITION BY tx_hash\n ORDER BY\n intra_grouping_seller ASC\n ) AS intra_grouping_seller_fill,\n net_sale_raw,\n platform_fee_raw,\n creator_fee_raw\n FROM\n old_native_agg\n),\nold_native_base AS (\n SELECT\n tx_hash,\n intra_grouping_seller_fill,\n event_index,\n event_name,\n decoded_log,\n event_type,\n currency_address_raw,\n amount_raw,\n nft_address,\n tokenid,\n erc1155_value,\n nft_type,\n maker,\n taker,\n seller_address,\n buyer_address,\n net_sale_raw + platform_fee_raw + creator_fee_raw AS total_price_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n fees_array,\n orderhash,\n block_timestamp,\n block_number,\n _log_id,\n _inserted_timestamp\n FROM\n raw\n INNER JOIN old_native_agg_rn USING (\n tx_hash,\n intra_grouping_seller_fill\n )\n WHERE\n block_timestamp <= (\n SELECT\n end_date\n FROM\n settings\n )\n AND currency_address_raw = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee'\n),\nold_token_base AS (\n SELECT\n tx_hash,\n intra_grouping_seller_fill,\n event_index,\n event_name,\n decoded_log,\n event_type,\n currency_address_raw,\n amount_raw,\n nft_address,\n tokenid,\n erc1155_value,\n nft_type,\n maker,\n taker,\n seller_address,\n buyer_address,\n net_sale_raw + platform_fee_raw + creator_fee_raw AS total_price_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n fees_array,\n orderhash,\n block_timestamp,\n block_number,\n _log_id,\n _inserted_timestamp\n FROM\n raw\n INNER JOIN old_token_transfers_agg USING (\n tx_hash,\n currency_address_raw\n )\n WHERE\n block_timestamp <= (\n SELECT\n end_date\n FROM\n settings\n )\n AND currency_address_raw != '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee'\n),\nraw_fees AS (\n SELECT\n tx_hash,\n event_index,\n INDEX,\n VALUE :amount :: INT AS fee_amount_raw,\n VALUE :recipient :: STRING AS fee_recipient,\n CASE\n WHEN fee_recipient = (\n SELECT\n fee_address\n FROM\n settings\n ) THEN fee_amount_raw\n ELSE 0\n END AS platform_amount_raw,\n CASE\n WHEN fee_recipient != (\n SELECT\n fee_address\n FROM\n settings\n ) THEN fee_amount_raw\n ELSE 0\n END AS creator_amount_raw\n FROM\n raw,\n LATERAL FLATTEN (\n input => fees_array\n )\n WHERE\n block_timestamp > (\n SELECT\n end_date\n FROM\n settings\n )\n),\nraw_fees_agg AS (\n SELECT\n tx_hash,\n event_index,\n SUM(platform_amount_raw) AS platform_fee_raw_,\n SUM(creator_amount_raw) AS creator_fee_raw_\n FROM\n raw_fees\n GROUP BY\n ALL\n),\nnew_base AS (\n SELECT\n tx_hash,\n intra_grouping_seller_fill,\n event_index,\n event_name,\n decoded_log,\n event_type,\n currency_address_raw,\n amount_raw,\n nft_address,\n tokenid,\n erc1155_value,\n nft_type,\n maker,\n taker,\n seller_address,\n buyer_address,\n amount_raw AS total_price_raw,\n COALESCE(\n platform_fee_raw_,\n 0\n ) + COALESCE(\n creator_fee_raw_,\n 0\n ) AS total_fees_raw,\n COALESCE(\n platform_fee_raw_,\n 0\n ) AS platform_fee_raw,\n COALESCE(\n creator_fee_raw_,\n 0\n ) AS creator_fee_raw,\n fees_array,\n orderhash,\n block_timestamp,\n block_number,\n _log_id,\n _inserted_timestamp\n FROM\n raw\n LEFT JOIN raw_fees_agg USING (\n tx_hash,\n event_index\n )\n WHERE\n block_timestamp > (\n SELECT\n end_date\n FROM\n settings\n )\n),\nall_combined AS (\n SELECT\n *\n FROM\n old_native_base\n UNION ALL\n SELECT\n *\n FROM\n old_token_base\n UNION ALL\n SELECT\n *\n FROM\n new_base\n),\ntx_data AS (\n SELECT\n tx_hash,\n from_address AS origin_from_address,\n to_address AS origin_to_address,\n origin_function_signature,\n tx_fee,\n input_data\n FROM\n polygon.core.fact_transactions\n WHERE\n block_timestamp :: DATE >= (\n SELECT\n start_date\n FROM\n settings\n )\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n all_combined\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.element_sales\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n decoded_log,\n event_type,\n (\n SELECT\n main_address\n FROM\n settings\n ) AS platform_address,\n 'element' AS platform_name,\n 'element v1' AS platform_exchange_version,\n intra_grouping_seller_fill,\n currency_address_raw,\n amount_raw,\n nft_address,\n tokenid,\n erc1155_value,\n nft_type,\n maker,\n taker,\n seller_address,\n buyer_address,\n IFF(\n currency_address_raw = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',\n 'MATIC',\n currency_address_raw\n ) AS currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n fees_array,\n orderhash,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_fee,\n input_data,\n _log_id,\n CONCAT(\n nft_address,\n '-',\n tokenId,\n '-',\n platform_exchange_version,\n '-',\n _log_id\n ) AS nft_log_id,\n _inserted_timestamp\nFROM\n all_combined\n INNER JOIN tx_data USING (tx_hash) qualify ROW_NUMBER() over (\n PARTITION BY nft_log_id\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.polygon_models.silver__mooar_sales": {"database": "polygon", "schema": "silver", "name": "silver__mooar_sales", "resource_type": "model", "package_name": "polygon_models", "path": "silver/NFT/sales/silver__mooar_sales.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.sql", "unique_id": "model.polygon_models.silver__mooar_sales", "fqn": ["polygon_models", "silver", "NFT", "sales", "silver__mooar_sales"], "alias": "mooar_sales", "checksum": {"name": "sha256", "checksum": "0ffc5847b7cbf66e20673012267dd3f700b501d83eee0d42223f57ea22d01fb3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "nft", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "nft", "curated"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_ADDRESS": {"name": "PLATFORM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SELLER_ADDRESS": {"name": "SELLER_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BUYER_ADDRESS": {"name": "BUYER_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NFT_ADDRESS": {"name": "NFT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKENID": {"name": "TOKENID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CURRENCY_ADDRESS": {"name": "CURRENCY_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_PRICE_RAW": {"name": "TOTAL_PRICE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_FEES_RAW": {"name": "TOTAL_FEES_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_FEE_RAW": {"name": "PLATFORM_FEE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATOR_FEE_RAW": {"name": "CREATOR_FEE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_FEE": {"name": "TX_FEE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NFT_LOG_ID": {"name": "NFT_LOG_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_TYPE": {"name": "EVENT_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INPUT_DATA": {"name": "INPUT_DATA", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "polygon_models://models/silver/NFT/sales/silver__mooar_sales.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "nft", "curated"]}, "created_at": 1764018434.8045619, "relation_name": "polygon.silver.mooar_sales", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','nft','curated']\n) }}\n\nWITH seaport_fees_wallet AS (\n\n SELECT\n *\n FROM\n (\n VALUES\n (\n ('0xdd55acb1855cfec31d0f08c80da1db9862a50660')\n )\n ) t (addresses)\n),\nraw_decoded_logs AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n topics,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n event_name,\n full_decoded_log,\n decoded_log,\n contract_name,\n ez_decoded_event_logs_id,\n inserted_timestamp,\n modified_timestamp AS _inserted_timestamp,\n CONCAT(tx_hash, '-', event_index) AS _log_id,\n decoded_log :orderHash :: STRING AS orderhash,\n tx_hash || '-' || decoded_log :orderHash AS tx_hash_orderhash\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n WHERE\n block_timestamp :: DATE >= '2023-08-17'\n AND contract_address = '0xaaaaaaaa33d3520a2266ce508bc079fcfe82c8e3'\n AND event_name IN (\n 'OrderFulfilled',\n 'OrdersMatched'\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n{% endif %}\n),\nraw_logs AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n topics,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n fact_event_logs_id,\n inserted_timestamp,\n CONCAT(tx_hash, '-', event_index) AS _log_id,\n modified_timestamp AS _inserted_timestamp,\n IFF(\n topics [0] :: STRING IN (\n '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n ),\n 1,\n NULL\n ) AS om_event_index_raw,\n IFF(\n topics [0] :: STRING NOT IN (\n '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n ),\n SUBSTRING(\n DATA,\n 1,\n 66\n ),\n NULL\n ) AS order_hash\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n block_timestamp :: DATE >= '2023-08-17'\n AND contract_address = '0xaaaaaaaa33d3520a2266ce508bc079fcfe82c8e3'\n AND topics [0] :: STRING IN (\n '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7',\n -- ordersMatched\n '0x9d9af8e38d66c62e2c12f0225249fd9d721c54b83f48d9352c97c6cacdcb6f31' -- orderFulfilled\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nraw_logs_event_index_fill AS (\n SELECT\n *,\n IFF(\n om_event_index_raw IS NULL,\n NULL,\n SUM(om_event_index_raw) over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n )\n ) AS om_event_index\n FROM\n raw_logs\n),\nmao_orderhash AS (\n -- this helps us determine which orderhashes belong to OrderMatched as opposed to OrderFulfilled\n SELECT\n tx_hash,\n event_index,\n om_event_index,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented,\n utils.udf_hex_to_int(\n segmented [0] :: STRING\n ) / 32 AS length_index,\n utils.udf_hex_to_int(\n segmented [length_index] :: STRING\n ) AS orders_length,\n INDEX,\n '0x' || VALUE :: STRING AS orderhash,\n tx_hash || '-' || orderhash AS tx_hash_orderhash\n FROM\n raw_logs_event_index_fill,\n LATERAL FLATTEN(\n input => segmented\n )\n WHERE\n INDEX BETWEEN (\n length_index + 1\n )\n AND (\n orders_length + 1\n )\n AND topics [0] :: STRING = '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n),\n-- this big section below is for OrderFulfilled\ndecoded AS (\n SELECT\n tx_hash,\n decoded_log,\n event_index,\n full_decoded_log,\n CONCAT(\n tx_hash,\n '-',\n decoded_log :orderHash :: STRING\n ) AS tx_hash_orderhash,\n _log_id,\n _inserted_timestamp,\n LOWER(\n full_decoded_log :address :: STRING\n ) AS contract_address,\n full_decoded_log :name :: STRING AS event_name,\n CASE\n WHEN full_decoded_log :data [4] :value [0] [0] IN (\n 2,\n 3\n ) THEN 'buy'\n WHEN full_decoded_log :data [4] :value [0] [0] IN (1) THEN 'offer_accepted'\n ELSE NULL\n END AS trade_type\n FROM\n raw_decoded_logs\n WHERE\n event_name = 'OrderFulfilled'\n AND tx_hash_orderhash NOT IN (\n SELECT\n tx_hash_orderhash\n FROM\n mao_orderhash\n )\n),\noffer_length_count_buy AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [4] :value))\n WHERE\n trade_type = 'buy'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n),\noffer_length_count_offer AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [5] :value))\n WHERE\n trade_type = 'offer_accepted'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n),\nflat_raw AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_decoded_log :data AS full_data,\n _log_id,\n _inserted_timestamp,\n OBJECT_AGG(\n VALUE :name,\n VALUE :value\n ) AS decoded_output\n FROM\n decoded,\n LATERAL FLATTEN(\n input => full_decoded_log :data\n ) f\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type IS NOT NULL\n GROUP BY\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp\n),\nflat AS (\n SELECT\n r.tx_hash,\n r.event_index,\n contract_address,\n event_name,\n COALESCE (\n b.offer_length_raw,\n o.offer_length_raw,\n NULL\n ) AS offer_length,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp,\n decoded_output\n FROM\n flat_raw r\n LEFT JOIN offer_length_count_buy b\n ON r.tx_hash = b.tx_hash\n AND r.event_index = b.event_index\n LEFT JOIN offer_length_count_offer o\n ON r.tx_hash = o.tx_hash\n AND r.event_index = o.event_index\n WHERE\n offer_length IS NOT NULL\n),\nfiltered_private_offer_tx AS (\n SELECT\n tx_hash\n FROM\n flat\n WHERE\n trade_type = 'offer_accepted'\n AND full_data [3] :value :: STRING = '0x0000000000000000000000000000000000000000'\n),\nprivate_offer_tx_flat AS (\n SELECT\n tx_hash,\n ARRAY_AGG (\n CASE\n WHEN trade_type = 'buy' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_offerer,\n ARRAY_AGG(\n CASE\n WHEN trade_type = 'offer_accepted' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_recipient --(buyer) or receiver of the NFT\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n GROUP BY\n tx_hash\n),\nprivate_offer_tx_flat_null_offerer AS (\n -- mainly transfers via opensea as a result of a phishing scam)\n SELECT\n tx_hash,\n full_data [1] :value :: STRING AS private_seller -- person whose account is compromised\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat\n WHERE\n private_offerer IS NULL\n )\n AND trade_type = 'offer_accepted'\n),\nprivate_offer_tx_offerer_combined AS (\n SELECT\n t.tx_hash,\n t.private_offerer,\n t.private_recipient AS recipient_from_private_tx,\n n.private_seller,\n CASE\n WHEN t.private_offerer IS NULL THEN n.private_seller\n ELSE t.private_offerer\n END AS offerer_from_private_tx\n FROM\n private_offer_tx_flat t\n LEFT JOIN private_offer_tx_flat_null_offerer n\n ON t.tx_hash = n.tx_hash\n),\nbase_sales_buy AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n --seller\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n -- buyer\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n ) -- AND tx_type IS NOT NULL ; null tx type would mean that there aren't any considerations. The nft is transferred without asking for anything in exchange for it\n),\nbase_sales_buy_null_values AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND tx_type IS NULL\n),\nbase_sales_buy_public_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_public_nft_transfers_null_values AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_null_values\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_public_nft_transfers_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers_null_values\n),\nbase_sales_buy_private_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] :: STRING AS private_sale_recipient\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'private'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n),\nbase_sales_buy_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN first_flatten_index = 0 THEN raw_amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_buy_sale_amount_filter\n),\nbase_sales_buy_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw_,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_buy_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n),\nbase_sales_buy_sale_amount_null_values AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy_null_values\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_sale_amount_filter\n )\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_type IS NULL\n),\nbase_sales_buy_sale_amount_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_sale_amount_null_values\n),\nbase_sales_buy_combined AS (\n SELECT\n *\n FROM\n base_sales_buy\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_null_values\n),\nbase_sales_buy_final_public AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n recipient_temp AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_public_nft_transfers_combined n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n),\nbase_sales_buy_final_private AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n private_sale_recipient AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_private_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n),\nbase_sales_buy_final AS (\n SELECT\n *\n FROM\n base_sales_buy_final_public\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_final_private\n),\nbase_sales_offer_accepted AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :recipient :: STRING AS offerer_temp,\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :offerer :: STRING AS recipient_temp,\n CASE\n WHEN offerer_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output :offer [0] [3] :: INT / offer_length AS total_sale_amount_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled',\n 'OrdersMatched'\n )\n AND trade_type = 'offer_accepted'\n AND tx_type IS NOT NULL\n AND tx_hash IS NOT NULL\n),\nbase_sales_offer_accepted_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] AS private_recipient_from_consideration\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n),\nbase_sales_offer_accepted_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n),\nbase_sales_offer_accepted_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN address_list NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_sale_amount_filter\n),\nbase_sales_offer_accepted_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n currency_address,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n),\nbase_sales_offer_accepted_no_fees_tx AS (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_sale_amount_filter\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n),\nbase_sales_offer_accepted_no_fees_amount AS (\n SELECT\n tx_hash,\n event_index,\n ARRAY_AGG(\n t.value\n ) AS sale_values,\n sale_values [0] [1] :: STRING AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_no_fees_tx\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n GROUP BY\n tx_hash,\n event_index\n),\nbase_sales_offer_accepted_phishing_scam_amount AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n NULL AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_nft_transfers\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n),\nbase_sales_offer_accepted_sale_and_no_fees AS (\n SELECT\n *\n FROM\n base_sales_offer_accepted_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_no_fees_amount\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_phishing_scam_amount\n),\nbase_sales_offer_accepted_final AS (\n SELECT\n b.tx_hash,\n b.event_index,\n contract_address,\n event_name,\n offer_length,\n CASE\n WHEN sale_category = 'public' THEN offerer_temp\n ELSE COALESCE (\n private_offerer,\n offerer_from_private_tx\n )\n END AS offerer,\n orderHash,\n CASE\n WHEN sale_category = 'public' THEN recipient_temp\n WHEN sale_category = 'private'\n AND private_offerer IS NULL THEN private_recipient_from_consideration\n ELSE recipient_from_private_tx\n END AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address,\n tokenid,\n CASE\n WHEN token_type = '3' THEN number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n CASE\n WHEN private_offerer IS NULL\n AND private_seller IS NOT NULL THEN 0\n ELSE decoded_output :offer [0] [3] :: INT / offer_length\n END AS total_sale_amount_raw,\n platform_fee_raw_ :: INT / offer_length AS platform_fee_raw,\n creator_fee_raw_ :: INT / offer_length AS creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted b\n INNER JOIN base_sales_offer_accepted_sale_and_no_fees s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_offer_accepted_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n LEFT OUTER JOIN private_offer_tx_offerer_combined p\n ON b.tx_hash = p.tx_hash\n WHERE\n nft_address IS NOT NULL qualify ROW_NUMBER() over (\n PARTITION BY b.tx_hash,\n b.event_index,\n nft_address,\n tokenid,\n _log_id\n ORDER BY\n _inserted_timestamp ASC\n ) = 1\n),\n-- the new matchOrders logic starts here\norderhash_grouping_raw AS (\n SELECT\n tx_hash,\n event_index,\n order_hash,\n om_event_index,\n -- shows the order of multiple ordersmatched event in one tx\n om_event_index_raw,\n CASE\n WHEN om_event_index IS NULL THEN LEAD(om_event_index) ignore nulls over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n )\n ELSE NULL\n END AS om_event_index_fill -- shows all orderhashes and their grouping\n FROM\n raw_logs_event_index_fill\n),\norderhash_grouping_fill AS (\n SELECT\n tx_hash,\n event_index,\n order_hash,\n CONCAT(\n tx_hash,\n '-',\n order_hash\n ) AS tx_hash_orderhash,\n om_event_index,\n om_event_index_fill,\n om_event_index_raw,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n event_index ASC\n ) AS orderhash_order_within_group -- orderhash order within an orderhash group\n FROM\n orderhash_grouping_raw\n),\n-- item type references:\n-- 0 - eth\n-- 1 - erc20\n-- 2 - erc721\n-- 3 - erc1155\n-- 4 - erc721 w criteria,\n-- 5 - erc1155 w criteria\nmao_consideration_all AS (\n SELECT\n tx_hash,\n event_index,\n decoded_log,\n INDEX,\n orderhash,\n tx_hash_orderhash,\n decoded_log :offerer :: STRING AS offerer,\n decoded_log :recipient :: STRING AS recipient,\n VALUE,\n VALUE :amount :: INT AS amount,\n VALUE :identifier :: STRING AS identifier,\n VALUE :itemType :: INT AS item_type,\n VALUE :recipient :: STRING AS item_recipient,\n VALUE :token :: STRING AS item_token_address,\n decoded_log :offer [0] :amount :: INT AS offer_amount,\n decoded_log :offer [0] :identifier :: STRING AS offer_identifier,\n decoded_log :offer [0] :itemType :: INT AS offer_item_type,\n decoded_log :offer [0] :token :: STRING AS offer_item_token_address,\n IFF(item_type NOT IN (0, 1), CONCAT(item_token_address, '-', identifier, '-', amount), CONCAT(offer_item_token_address, '-', offer_identifier, '-', offer_amount)) AS nft_address_identifier,\n IFF(item_type NOT IN (0, 1), nft_address_identifier, NULL) AS nft_address_identifier_null,\n CASE\n WHEN item_type NOT IN (\n 0,\n 1\n ) THEN nft_address_identifier\n WHEN item_type IN (\n 0,\n 1\n )\n AND offer_item_type IN (\n 0,\n 1\n ) THEN LAG(nft_address_identifier_null) ignore nulls over (\n PARTITION BY tx_hash,\n event_index\n ORDER BY\n INDEX ASC\n )\n WHEN item_type IN (\n 0,\n 1\n )\n AND offer_item_type NOT IN (\n 0,\n 1\n ) THEN nft_address_identifier\n ELSE nft_address_identifier\n END AS nft_address_identifier_fill_raw,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n event_index\n ORDER BY\n INDEX ASC\n ) AS orderhash_within_event_index_rn,\n _log_id,\n _inserted_timestamp\n FROM\n raw_decoded_logs,\n LATERAL FLATTEN (\n input => decoded_log :consideration\n )\n WHERE\n event_name = 'OrderFulfilled'\n AND tx_hash_orderhash IN (\n SELECT\n tx_hash_orderhash\n FROM\n mao_orderhash\n )\n),\nmao_consideration_all_joined AS (\n SELECT\n *,\n CASE\n WHEN nft_address_identifier_null IS NULL\n AND offerer = recipient THEN LAG(nft_address_identifier_null) ignore nulls over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n event_index,\n INDEX ASC\n )\n ELSE nft_address_identifier_fill_raw\n END AS nft_address_identifier_fill,\n IFF(item_type NOT IN (0, 1)\n AND offer_item_type NOT IN (0, 1)\n AND decoded_log :consideration [0] :itemType :: INT NOT IN (0, 1), CONCAT(tx_hash_orderhash, '-', event_index), NULL) AS deals_tag,\n CONCAT(\n tx_hash_orderhash,\n '-',\n event_index\n ) AS event_index_tag -- tagging for deals tag\n FROM\n mao_consideration_all\n INNER JOIN orderhash_grouping_fill USING (\n tx_hash,\n tx_hash_orderhash,\n event_index\n )\n),\nmao_consideration_sale_amounts AS (\n SELECT\n tx_hash,\n orderhash,\n tx_hash_orderhash,\n orderhash_within_event_index_rn,\n om_event_index_fill,\n deals_tag,\n event_index_tag,\n event_index,\n INDEX,\n amount,\n identifier,\n item_type,\n item_token_address,\n item_token_address AS currency_address,\n item_recipient,\n nft_address_identifier_fill,\n CASE\n WHEN amount > 0\n AND ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill\n ORDER BY\n amount DESC\n ) = 1 THEN amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN item_recipient IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN sale_amount_raw_ = 0\n AND platform_fee_raw_ = 0 THEN amount\n ELSE 0\n END AS creator_fee_raw_,\n IFF(\n sale_amount_raw_ > 0,\n item_recipient,\n NULL\n ) AS sale_receiver_address\n FROM\n mao_consideration_all_joined\n WHERE\n item_type IN (\n 0,\n 1\n )\n AND nft_address_identifier_fill IS NOT NULL\n AND event_index_tag NOT IN (\n SELECT\n deals_tag\n FROM\n mao_consideration_all_joined\n WHERE\n deals_tag IS NOT NULL\n ) -- exclude deals\n),\nmao_nondeals_sale_amount AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill,\n currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw,\n SUM(platform_fee_raw_) AS platform_fee_raw,\n SUM(creator_fee_raw_) AS creator_fee_raw\n FROM\n mao_consideration_sale_amounts\n GROUP BY\n ALL\n),\nmao_nondeals_sale_amount_receiver AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill,\n sale_receiver_address,\n currency_address,\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw\n FROM\n mao_nondeals_sale_amount\n INNER JOIN mao_consideration_sale_amounts s USING (\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill,\n currency_address\n )\n WHERE\n s.sale_receiver_address IS NOT NULL\n),\nmao_deals_sale_amount AS (\n SELECT\n *,\n IFF(\n item_recipient = offerer,\n recipient,\n offerer\n ) AS payment_from_address,\n item_recipient AS payment_to_address,\n CASE\n WHEN ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n amount DESC\n ) = 1 THEN amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN item_recipient IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN sale_amount_raw_ = 0\n AND platform_fee_raw_ = 0 THEN amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n mao_consideration_all_joined\n WHERE\n item_type IN (\n 0,\n 1\n )\n AND event_index_tag IN (\n SELECT\n deals_tag\n FROM\n mao_consideration_all_joined\n WHERE\n deals_tag IS NOT NULL\n ) -- include deals only\n),\nmao_deals_sale_amount_agg AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n payment_from_address,\n payment_to_address,\n 1 AS deals_sale_rn,\n item_token_address AS currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw,\n SUM(platform_fee_raw_) AS platform_fee_raw,\n SUM(creator_fee_raw_) AS creator_fee_raw\n FROM\n mao_deals_sale_amount\n GROUP BY\n ALL\n),\nmao_deals_nft_transfers AS (\n SELECT\n *,\n IFF(\n item_recipient = offerer,\n recipient,\n offerer\n ) AS nft_from_address,\n item_recipient AS nft_to_address,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n INDEX ASC\n ) AS deals_nft_transfers_rn\n FROM\n mao_consideration_all_joined\n WHERE\n deals_tag IS NOT NULL\n),\nmao_deals_nft_transfers_sales AS (\n SELECT\n t.tx_hash,\n t.om_event_index_fill,\n orderhash,\n tx_hash_orderhash,\n event_index,\n INDEX,\n orderhash_within_event_index_rn,\n deals_tag,\n event_index_tag,\n nft_address_identifier_fill,\n item_token_address AS nft_address,\n identifier AS tokenid,\n item_type,\n IFF(item_type IN (2, 4), 'erc721', 'erc1155') AS nft_standard,\n IFF(\n nft_standard = 'erc1155',\n amount,\n NULL\n ) AS erc1155_value,\n nft_from_address AS seller_address,\n nft_to_address AS buyer_address,\n COALESCE(\n sale_amount_raw,\n 0\n ) AS sale_amount_raw,\n COALESCE(\n platform_fee_raw,\n 0\n ) AS platform_fee_raw,\n COALESCE(\n creator_fee_raw,\n 0\n ) AS creator_fee_raw,\n currency_address,\n decoded_log,\n offerer,\n recipient,\n _log_id,\n _inserted_timestamp\n FROM\n mao_deals_nft_transfers t\n LEFT JOIN mao_deals_sale_amount_agg s\n ON t.tx_hash = s.tx_hash\n AND t.om_event_index_fill = s.om_event_index_fill\n AND s.payment_from_address = t.nft_to_address\n AND s.payment_to_address = t.nft_from_address\n AND s.deals_sale_rn = t.deals_nft_transfers_rn\n),\nmao_nondeals_nft_transfers_sales AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n -- the event index for the ordermatched\n orderhash,\n tx_hash_orderhash,\n -- tx hash and orderhash\n event_index,\n -- event index for orderfulfilled\n INDEX,\n -- index for flattened for consideration\n orderhash_within_event_index_rn,\n -- index of orderhash within a single event index\n deals_tag,\n event_index_tag,\n -- gets the tx hash and event index to tag seaport deals\n A.nft_address_identifier_fill,\n item_token_address AS nft_address,\n identifier AS tokenid,\n item_type,\n IFF(item_type IN (2, 4), 'erc721', 'erc1155') AS nft_standard,\n IFF(\n nft_standard = 'erc1155',\n amount,\n NULL\n ) AS erc1155_value,\n item_recipient AS buyer_address,\n sale_receiver_address,\n IFF(\n item_recipient = offerer,\n recipient,\n offerer\n ) AS seller_address_temp,\n IFF(\n seller_address_temp = buyer_address,\n sale_receiver_address,\n seller_address_temp\n ) AS seller_address,\n offerer,\n recipient,\n decoded_log,\n currency_address,\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw,\n _log_id,\n _inserted_timestamp\n FROM\n mao_consideration_all_joined A\n LEFT JOIN mao_nondeals_sale_amount_receiver USING (\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill\n )\n WHERE\n deals_tag IS NULL\n AND item_type NOT IN (\n 0,\n 1\n )\n),\nmao_nondeals_nft_transfers_sales_fill AS (\n SELECT\n *,\n CASE\n WHEN sale_amount_raw IS NULL THEN COALESCE(LAG(sale_amount_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(sale_amount_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), 0)\n ELSE sale_amount_raw\n END AS sale_amount_raw_fill,\n CASE\n WHEN platform_fee_raw IS NULL THEN COALESCE(LAG(platform_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(platform_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), 0)\n ELSE platform_fee_raw\n END AS platform_fee_raw_fill,\n CASE\n WHEN creator_fee_raw IS NULL THEN COALESCE(LAG(creator_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(creator_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), 0)\n ELSE creator_fee_raw\n END AS creator_fee_raw_fill,\n CASE\n WHEN currency_address IS NULL THEN COALESCE(LAG(currency_address) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(currency_address) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), NULL)\n ELSE currency_address\n END AS currency_address_fill\n FROM\n mao_nondeals_nft_transfers_sales\n),\nmao_nondeals_offer_length_one AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n event_index,\n COUNT(1) AS offer_length_one -- counting how many nfts are in this sale batch , need to add with the following subquery\n FROM\n mao_nondeals_nft_transfers_sales\n WHERE\n sale_amount_raw IS NULL\n GROUP BY\n ALL\n),\nmao_nondeals_offer_length_two AS (\n -- measuring offer length for non batched\n SELECT\n tx_hash,\n om_event_index_fill,\n event_index,\n COUNT(1) AS offer_length_two -- counting how many nfts are in this sale batch , need to add with the following subquery\n FROM\n mao_nondeals_nft_transfers_sales\n WHERE\n sale_amount_raw IS NOT NULL\n GROUP BY\n ALL\n),\nmao_nondeals_offer_length AS (\n -- all sales are not grouped by event index, but grouped by the orderMatched index\n SELECT\n tx_hash,\n om_event_index_fill,\n event_index,\n offer_length_two + COALESCE(\n offer_length_one,\n 0\n ) AS offer_length --offer length for all\n FROM\n mao_nondeals_offer_length_two\n LEFT JOIN mao_nondeals_offer_length_one USING (\n tx_hash,\n om_event_index_fill,\n event_index\n )\n),\nmao_nondeals_nft_transfers_sales_fill_offer_length AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n -- the event index for the ordermatched\n orderhash,\n tx_hash_orderhash,\n -- tx hash and orderhash\n event_index,\n -- event index for orderfulfilled\n INDEX,\n -- index for flattened for consideration\n orderhash_within_event_index_rn,\n -- index of orderhash within a single event index\n deals_tag,\n event_index_tag,\n -- gets the tx hash and event index to tag seaport deals\n nft_address_identifier_fill,\n nft_address,\n item_type,\n tokenid,\n nft_standard,\n erc1155_value,\n buyer_address,\n seller_address,\n offerer,\n recipient,\n decoded_log,\n currency_address_fill AS currency_address,\n offer_length,\n sale_amount_raw_fill / offer_length AS sale_amount_raw,\n platform_fee_raw_fill / offer_length AS platform_fee_raw,\n creator_fee_raw_fill / offer_length AS creator_fee_raw,\n _log_id,\n _inserted_timestamp\n FROM\n mao_nondeals_nft_transfers_sales_fill\n INNER JOIN mao_nondeals_offer_length USING (\n tx_hash,\n om_event_index_fill,\n event_index\n )\n),\nmao_combined_base AS (\n -- includes both deals and nondeals\n SELECT\n tx_hash,\n om_event_index_fill,\n IFF(\n decoded_log :consideration [0] :itemType :: INT IN (\n 0,\n 1\n ),\n 'sale',\n 'bid_won'\n ) AS event_type,\n IFF(\n event_type = 'sale',\n 'mao_deals_buy',\n 'mao_deals_oa'\n ) AS category,\n orderhash,\n tx_hash_orderhash,\n event_index,\n INDEX,\n orderhash_within_event_index_rn,\n deals_tag,\n event_index_tag,\n nft_address_identifier_fill,\n nft_address,\n item_type,\n tokenid,\n nft_standard,\n erc1155_value,\n seller_address,\n buyer_address,\n currency_address,\n 1 AS offer_length,\n -- deals with always have 1 since we'll not be dividing the sale amount with number of nfts exchanged since nfts are also used as part of the offer\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n sale_amount_raw + total_fees_raw AS total_price_raw,\n offerer,\n recipient,\n decoded_log,\n _log_id,\n _inserted_timestamp\n FROM\n mao_deals_nft_transfers_sales\n UNION ALL\n SELECT\n tx_hash,\n om_event_index_fill,\n -- the event index for the ordermatched\n IFF(\n decoded_log :consideration [0] :itemType :: INT IN (\n 0,\n 1\n ),\n 'sale',\n 'bid_won'\n ) AS event_type,\n IFF(\n event_type = 'sale',\n 'mao_nondeals_buy',\n 'mao_nondeals_oa'\n ) AS category,\n orderhash,\n tx_hash_orderhash,\n event_index,\n INDEX,\n orderhash_within_event_index_rn,\n deals_tag,\n event_index_tag,\n nft_address_identifier_fill,\n nft_address,\n item_type,\n tokenid,\n nft_standard,\n erc1155_value,\n seller_address,\n buyer_address,\n currency_address,\n offer_length,\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n sale_amount_raw + total_fees_raw AS total_price_raw,\n offerer,\n recipient,\n decoded_log,\n _log_id,\n _inserted_timestamp\n FROM\n mao_nondeals_nft_transfers_sales_fill_offer_length\n),\nbase_sales_buy_and_offer AS (\n -- this part combines OrderFulfilled subqueries with OrdersMatched (mao)\n SELECT\n tx_hash,\n 'fulfil_buy' AS category,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n NULL AS seller_address_temp,\n NULL AS buyer_address_temp,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_final\n UNION ALL\n SELECT\n tx_hash,\n 'fulfil_oa' AS category,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n NULL AS seller_address_temp,\n NULL AS buyer_address_temp,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted_final\n UNION ALL\n SELECT\n tx_hash,\n category,\n event_index,\n '0xaaaaaaaa33d3520a2266ce508bc079fcfe82c8e3' AS contract_address,\n 'OrderFulfilled' AS event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n CASE\n WHEN recipient = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n IFF(\n event_type = 'sale',\n 'buy',\n 'offer_accepted'\n ) AS trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_log :zone :: STRING AS ZONE,\n item_type AS tx_type,\n item_type AS token_type,\n nft_address AS nft_address_temp,\n tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_log,\n decoded_log :consideration AS consideration,\n decoded_log :offer AS offer,\n seller_address AS seller_address_temp,\n buyer_address AS buyer_address_temp,\n _log_id,\n _inserted_timestamp\n FROM\n mao_combined_base\n),\ntx_data AS (\n SELECT\n tx_hash,\n block_timestamp,\n block_number,\n from_address,\n to_address,\n origin_function_signature,\n tx_fee,\n input_data\n FROM\n {{ ref('core__fact_transactions') }}\n WHERE\n block_timestamp :: DATE >= '2023-08-17'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nnft_transfer_operator AS (\n SELECT\n tx_hash,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS nft_address_from_transfers,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS nft_address_temp,\n --or operator_address\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS offerer,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: STRING AS tokenid,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: STRING AS erc1155_value\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n block_timestamp :: DATE >= '2023-08-17'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n AND topics [0] :: STRING IN (\n '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62',\n '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nfinal_seaport AS (\n SELECT\n t.block_number,\n t.block_timestamp,\n s.tx_hash,\n category,\n s.event_index,\n s.contract_address AS platform_address,\n 'mooar' AS platform_name,\n 'mooar_seaport' AS platform_exchange_version,\n s.event_name,\n offer_length,\n IFF(category IN ('fulfil_oa', 'fulfil_buy'), offerer, seller_address_temp) AS seller_address,\n orderHash,\n IFF(category IN ('fulfil_oa', 'fulfil_buy'), recipient, buyer_address_temp) AS buyer_address,\n sale_category,\n trade_type,\n CASE\n WHEN trade_type = 'buy' THEN 'sale'\n WHEN trade_type = 'offer_accepted' THEN 'bid_won'\n END AS event_type,\n is_price_estimated,\n ZONE,\n tx_type,\n s.token_type,\n s.nft_address_temp,\n CASE\n WHEN nft_address_from_transfers IS NOT NULL THEN nft_address_from_transfers\n ELSE s.nft_address_temp\n END AS nft_address,\n s.tokenId,\n s.erc1155_value,\n s.currency_address,\n total_sale_amount_raw AS total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n t.tx_fee,\n t.from_address AS origin_from_address,\n t.to_address AS origin_to_address,\n t.origin_function_signature,\n decoded_output,\n consideration,\n offer,\n input_data,\n CONCAT(\n nft_address,\n '-',\n s.tokenId,\n '-',\n platform_exchange_version,\n '-',\n _log_id\n ) AS nft_log_id,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_and_offer s\n INNER JOIN tx_data t USING (tx_hash)\n LEFT JOIN nft_transfer_operator o USING (\n tx_hash,\n nft_address_temp,\n tokenid,\n recipient\n ) qualify(ROW_NUMBER() over(PARTITION BY nft_log_id\n ORDER BY\n _inserted_timestamp DESC)) = 1\n)\nSELECT\n *\nFROM\n final_seaport", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_transactions"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.sql", "compiled": true, "compiled_code": "\n\nWITH seaport_fees_wallet AS (\n\n SELECT\n *\n FROM\n (\n VALUES\n (\n ('0xdd55acb1855cfec31d0f08c80da1db9862a50660')\n )\n ) t (addresses)\n),\nraw_decoded_logs AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n topics,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n event_name,\n full_decoded_log,\n decoded_log,\n contract_name,\n ez_decoded_event_logs_id,\n inserted_timestamp,\n modified_timestamp AS _inserted_timestamp,\n CONCAT(tx_hash, '-', event_index) AS _log_id,\n decoded_log :orderHash :: STRING AS orderhash,\n tx_hash || '-' || decoded_log :orderHash AS tx_hash_orderhash\n FROM\n polygon.core.ez_decoded_event_logs\n WHERE\n block_timestamp :: DATE >= '2023-08-17'\n AND contract_address = '0xaaaaaaaa33d3520a2266ce508bc079fcfe82c8e3'\n AND event_name IN (\n 'OrderFulfilled',\n 'OrdersMatched'\n )\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.mooar_sales\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n\n),\nraw_logs AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n topics,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n fact_event_logs_id,\n inserted_timestamp,\n CONCAT(tx_hash, '-', event_index) AS _log_id,\n modified_timestamp AS _inserted_timestamp,\n IFF(\n topics [0] :: STRING IN (\n '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n ),\n 1,\n NULL\n ) AS om_event_index_raw,\n IFF(\n topics [0] :: STRING NOT IN (\n '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n ),\n SUBSTRING(\n DATA,\n 1,\n 66\n ),\n NULL\n ) AS order_hash\n FROM\n polygon.core.fact_event_logs\n WHERE\n block_timestamp :: DATE >= '2023-08-17'\n AND contract_address = '0xaaaaaaaa33d3520a2266ce508bc079fcfe82c8e3'\n AND topics [0] :: STRING IN (\n '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7',\n -- ordersMatched\n '0x9d9af8e38d66c62e2c12f0225249fd9d721c54b83f48d9352c97c6cacdcb6f31' -- orderFulfilled\n )\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.mooar_sales\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\nraw_logs_event_index_fill AS (\n SELECT\n *,\n IFF(\n om_event_index_raw IS NULL,\n NULL,\n SUM(om_event_index_raw) over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n )\n ) AS om_event_index\n FROM\n raw_logs\n),\nmao_orderhash AS (\n -- this helps us determine which orderhashes belong to OrderMatched as opposed to OrderFulfilled\n SELECT\n tx_hash,\n event_index,\n om_event_index,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented,\n utils.udf_hex_to_int(\n segmented [0] :: STRING\n ) / 32 AS length_index,\n utils.udf_hex_to_int(\n segmented [length_index] :: STRING\n ) AS orders_length,\n INDEX,\n '0x' || VALUE :: STRING AS orderhash,\n tx_hash || '-' || orderhash AS tx_hash_orderhash\n FROM\n raw_logs_event_index_fill,\n LATERAL FLATTEN(\n input => segmented\n )\n WHERE\n INDEX BETWEEN (\n length_index + 1\n )\n AND (\n orders_length + 1\n )\n AND topics [0] :: STRING = '0x4b9f2d36e1b4c93de62cc077b00b1a91d84b6c31b4a14e012718dcca230689e7'\n),\n-- this big section below is for OrderFulfilled\ndecoded AS (\n SELECT\n tx_hash,\n decoded_log,\n event_index,\n full_decoded_log,\n CONCAT(\n tx_hash,\n '-',\n decoded_log :orderHash :: STRING\n ) AS tx_hash_orderhash,\n _log_id,\n _inserted_timestamp,\n LOWER(\n full_decoded_log :address :: STRING\n ) AS contract_address,\n full_decoded_log :name :: STRING AS event_name,\n CASE\n WHEN full_decoded_log :data [4] :value [0] [0] IN (\n 2,\n 3\n ) THEN 'buy'\n WHEN full_decoded_log :data [4] :value [0] [0] IN (1) THEN 'offer_accepted'\n ELSE NULL\n END AS trade_type\n FROM\n raw_decoded_logs\n WHERE\n event_name = 'OrderFulfilled'\n AND tx_hash_orderhash NOT IN (\n SELECT\n tx_hash_orderhash\n FROM\n mao_orderhash\n )\n),\noffer_length_count_buy AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [4] :value))\n WHERE\n trade_type = 'buy'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n),\noffer_length_count_offer AS (\n SELECT\n tx_hash,\n event_index,\n this,\n COUNT(\n VALUE [0]\n ) AS offer_length_raw --> this is the number of nfts in a batch buy. If n = 1, then price is known. If n > 1 then price is estimated\n FROM\n decoded,\n TABLE(FLATTEN(input => full_decoded_log :data [5] :value))\n WHERE\n trade_type = 'offer_accepted'\n AND VALUE [0] IN (\n 2,\n 3\n )\n GROUP BY\n tx_hash,\n event_index,\n this\n),\nflat_raw AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_decoded_log :data AS full_data,\n _log_id,\n _inserted_timestamp,\n OBJECT_AGG(\n VALUE :name,\n VALUE :value\n ) AS decoded_output\n FROM\n decoded,\n LATERAL FLATTEN(\n input => full_decoded_log :data\n ) f\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type IS NOT NULL\n GROUP BY\n tx_hash,\n event_index,\n contract_address,\n event_name,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp\n),\nflat AS (\n SELECT\n r.tx_hash,\n r.event_index,\n contract_address,\n event_name,\n COALESCE (\n b.offer_length_raw,\n o.offer_length_raw,\n NULL\n ) AS offer_length,\n trade_type,\n full_data,\n _log_id,\n _inserted_timestamp,\n decoded_output\n FROM\n flat_raw r\n LEFT JOIN offer_length_count_buy b\n ON r.tx_hash = b.tx_hash\n AND r.event_index = b.event_index\n LEFT JOIN offer_length_count_offer o\n ON r.tx_hash = o.tx_hash\n AND r.event_index = o.event_index\n WHERE\n offer_length IS NOT NULL\n),\nfiltered_private_offer_tx AS (\n SELECT\n tx_hash\n FROM\n flat\n WHERE\n trade_type = 'offer_accepted'\n AND full_data [3] :value :: STRING = '0x0000000000000000000000000000000000000000'\n),\nprivate_offer_tx_flat AS (\n SELECT\n tx_hash,\n ARRAY_AGG (\n CASE\n WHEN trade_type = 'buy' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_offerer,\n ARRAY_AGG(\n CASE\n WHEN trade_type = 'offer_accepted' THEN full_data [1] :value :: STRING\n END\n ) [0] :: STRING AS private_recipient --(buyer) or receiver of the NFT\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n GROUP BY\n tx_hash\n),\nprivate_offer_tx_flat_null_offerer AS (\n -- mainly transfers via opensea as a result of a phishing scam)\n SELECT\n tx_hash,\n full_data [1] :value :: STRING AS private_seller -- person whose account is compromised\n FROM\n flat\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat\n WHERE\n private_offerer IS NULL\n )\n AND trade_type = 'offer_accepted'\n),\nprivate_offer_tx_offerer_combined AS (\n SELECT\n t.tx_hash,\n t.private_offerer,\n t.private_recipient AS recipient_from_private_tx,\n n.private_seller,\n CASE\n WHEN t.private_offerer IS NULL THEN n.private_seller\n ELSE t.private_offerer\n END AS offerer_from_private_tx\n FROM\n private_offer_tx_flat t\n LEFT JOIN private_offer_tx_flat_null_offerer n\n ON t.tx_hash = n.tx_hash\n),\nbase_sales_buy AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n --seller\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n -- buyer\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n ) -- AND tx_type IS NOT NULL ; null tx type would mean that there aren't any considerations. The nft is transferred without asking for anything in exchange for it\n),\nbase_sales_buy_null_values AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :offerer :: STRING AS offerer,\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :recipient :: STRING AS recipient_temp,\n CASE\n WHEN recipient_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled'\n )\n AND trade_type = 'buy'\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n filtered_private_offer_tx\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND tx_type IS NULL\n),\nbase_sales_buy_public_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_public_nft_transfers_null_values AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n -- 2 = erc721, 3 = erc1155\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155 -- if token type = 3 then erc1155_value, else null\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_null_values\n WHERE\n sale_category = 'public'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_public_nft_transfers_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_public_nft_transfers_null_values\n),\nbase_sales_buy_private_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] :: STRING AS private_sale_recipient\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n WHERE\n sale_category = 'private'\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n AND nft_address IS NOT NULL\n),\nbase_sales_buy_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n),\nbase_sales_buy_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN first_flatten_index = 0 THEN raw_amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN first_flatten_index > 0\n AND address_list NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_buy_sale_amount_filter\n),\nbase_sales_buy_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw_,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_buy_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n),\nbase_sales_buy_sale_amount_null_values AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy_null_values\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_buy_sale_amount_filter\n )\n UNION ALL\n SELECT\n tx_hash,\n event_index,\n NULL AS currency_address,\n 0 AS sale_amount_raw_,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_buy\n WHERE\n tx_type IS NULL\n),\nbase_sales_buy_sale_amount_combined AS (\n SELECT\n *\n FROM\n base_sales_buy_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_sale_amount_null_values\n),\nbase_sales_buy_combined AS (\n SELECT\n *\n FROM\n base_sales_buy\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_null_values\n),\nbase_sales_buy_final_public AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n recipient_temp AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_public_nft_transfers_combined n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n),\nbase_sales_buy_final_private AS (\n SELECT\n b.tx_hash,\n b.event_index,\n b.contract_address,\n b.event_name,\n b.offer_length,\n b.offerer,\n b.orderHash,\n private_sale_recipient AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n n.token_type,\n n.nft_address,\n n.tokenid,\n CASE\n WHEN n.token_type = '3' THEN n.number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n sale_amount_raw_ / b.offer_length AS sale_amount_raw,\n platform_fee_raw_ / b.offer_length AS platform_fee_raw,\n creator_fee_raw_ / b.offer_length AS creator_fee_raw,\n creator_fee_raw + platform_fee_raw AS total_fees_raw,\n total_fees_raw + sale_amount_raw AS total_sale_amount_raw,\n decoded_output,\n consideration,\n offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_combined b\n INNER JOIN base_sales_buy_sale_amount_combined s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_buy_private_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n WHERE\n nft_address IS NOT NULL\n),\nbase_sales_buy_final AS (\n SELECT\n *\n FROM\n base_sales_buy_final_public\n UNION ALL\n SELECT\n *\n FROM\n base_sales_buy_final_private\n),\nbase_sales_offer_accepted AS (\n SELECT\n tx_hash,\n event_index,\n contract_address,\n event_name,\n offer_length,\n decoded_output :recipient :: STRING AS offerer_temp,\n decoded_output :orderHash :: STRING AS orderHash,\n decoded_output :offerer :: STRING AS recipient_temp,\n CASE\n WHEN offerer_temp = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_output :zone :: STRING AS ZONE,\n decoded_output :consideration [0] [0] AS tx_type,\n decoded_output :offer [0] [3] :: INT / offer_length AS total_sale_amount_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n flat\n WHERE\n event_name IN (\n 'OrderFulfilled',\n 'OrdersMatched'\n )\n AND trade_type = 'offer_accepted'\n AND tx_type IS NOT NULL\n AND tx_hash IS NOT NULL\n),\nbase_sales_offer_accepted_nft_transfers AS (\n SELECT\n tx_hash,\n event_index,\n t.index AS flatten_index,\n t.value [0] AS token_type,\n t.value [1] :: STRING AS nft_address,\n t.value [2] :: STRING AS tokenid,\n t.value [3] AS number_of_item_or_erc1155,\n t.value [4] AS private_recipient_from_consideration\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND t.value [0] :: STRING IN (\n 2,\n 3\n )\n),\nbase_sales_offer_accepted_sale_amount_filter AS (\n SELECT\n tx_hash,\n event_index,\n t.value AS first_flatten_value,\n t.index AS first_flatten_index\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :consideration)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n),\nbase_sales_offer_accepted_address_list_flatten AS (\n SELECT\n tx_hash,\n event_index,\n first_flatten_index,\n first_flatten_value,\n first_flatten_value [1] :: STRING AS currency_address,\n first_flatten_value [3] :: INT AS raw_amount,\n first_flatten_value [4] :: STRING AS address_list,\n CASE\n WHEN address_list IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN address_list NOT IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN raw_amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_sale_amount_filter\n),\nbase_sales_offer_accepted_address_list_flatten_agg AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n currency_address,\n SUM(platform_fee_raw_) AS platform_fee_raw_,\n SUM(creator_fee_raw_) AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_address_list_flatten\n GROUP BY\n tx_hash,\n event_index,\n currency_address\n),\nbase_sales_offer_accepted_no_fees_tx AS (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted\n WHERE\n tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_sale_amount_filter\n )\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n),\nbase_sales_offer_accepted_no_fees_amount AS (\n SELECT\n tx_hash,\n event_index,\n ARRAY_AGG(\n t.value\n ) AS sale_values,\n sale_values [0] [1] :: STRING AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n flat,\n TABLE(FLATTEN(input => decoded_output :offer)) t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_sales_offer_accepted_no_fees_tx\n )\n AND t.value [0] :: STRING IN (\n 0,\n 1\n )\n AND trade_type = 'offer_accepted'\n GROUP BY\n tx_hash,\n event_index\n),\nbase_sales_offer_accepted_phishing_scam_amount AS (\n SELECT\n tx_hash,\n event_index,\n NULL AS sale_values,\n NULL AS currency_address,\n 0 AS platform_fee_raw_,\n 0 AS creator_fee_raw_\n FROM\n base_sales_offer_accepted_nft_transfers\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n private_offer_tx_flat_null_offerer\n )\n),\nbase_sales_offer_accepted_sale_and_no_fees AS (\n SELECT\n *\n FROM\n base_sales_offer_accepted_address_list_flatten_agg\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_no_fees_amount\n UNION ALL\n SELECT\n *\n FROM\n base_sales_offer_accepted_phishing_scam_amount\n),\nbase_sales_offer_accepted_final AS (\n SELECT\n b.tx_hash,\n b.event_index,\n contract_address,\n event_name,\n offer_length,\n CASE\n WHEN sale_category = 'public' THEN offerer_temp\n ELSE COALESCE (\n private_offerer,\n offerer_from_private_tx\n )\n END AS offerer,\n orderHash,\n CASE\n WHEN sale_category = 'public' THEN recipient_temp\n WHEN sale_category = 'private'\n AND private_offerer IS NULL THEN private_recipient_from_consideration\n ELSE recipient_from_private_tx\n END AS recipient,\n sale_category,\n b.trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address,\n tokenid,\n CASE\n WHEN token_type = '3' THEN number_of_item_or_erc1155\n ELSE NULL\n END AS erc1155_value,\n currency_address,\n CASE\n WHEN private_offerer IS NULL\n AND private_seller IS NOT NULL THEN 0\n ELSE decoded_output :offer [0] [3] :: INT / offer_length\n END AS total_sale_amount_raw,\n platform_fee_raw_ :: INT / offer_length AS platform_fee_raw,\n creator_fee_raw_ :: INT / offer_length AS creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n decoded_output,\n decoded_output :consideration AS consideration,\n decoded_output :offer AS offer,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted b\n INNER JOIN base_sales_offer_accepted_sale_and_no_fees s\n ON b.tx_hash = s.tx_hash\n AND b.event_index = s.event_index full\n OUTER JOIN base_sales_offer_accepted_nft_transfers n\n ON b.tx_hash = n.tx_hash\n AND b.event_index = n.event_index\n LEFT OUTER JOIN private_offer_tx_offerer_combined p\n ON b.tx_hash = p.tx_hash\n WHERE\n nft_address IS NOT NULL qualify ROW_NUMBER() over (\n PARTITION BY b.tx_hash,\n b.event_index,\n nft_address,\n tokenid,\n _log_id\n ORDER BY\n _inserted_timestamp ASC\n ) = 1\n),\n-- the new matchOrders logic starts here\norderhash_grouping_raw AS (\n SELECT\n tx_hash,\n event_index,\n order_hash,\n om_event_index,\n -- shows the order of multiple ordersmatched event in one tx\n om_event_index_raw,\n CASE\n WHEN om_event_index IS NULL THEN LEAD(om_event_index) ignore nulls over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n )\n ELSE NULL\n END AS om_event_index_fill -- shows all orderhashes and their grouping\n FROM\n raw_logs_event_index_fill\n),\norderhash_grouping_fill AS (\n SELECT\n tx_hash,\n event_index,\n order_hash,\n CONCAT(\n tx_hash,\n '-',\n order_hash\n ) AS tx_hash_orderhash,\n om_event_index,\n om_event_index_fill,\n om_event_index_raw,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n event_index ASC\n ) AS orderhash_order_within_group -- orderhash order within an orderhash group\n FROM\n orderhash_grouping_raw\n),\n-- item type references:\n-- 0 - eth\n-- 1 - erc20\n-- 2 - erc721\n-- 3 - erc1155\n-- 4 - erc721 w criteria,\n-- 5 - erc1155 w criteria\nmao_consideration_all AS (\n SELECT\n tx_hash,\n event_index,\n decoded_log,\n INDEX,\n orderhash,\n tx_hash_orderhash,\n decoded_log :offerer :: STRING AS offerer,\n decoded_log :recipient :: STRING AS recipient,\n VALUE,\n VALUE :amount :: INT AS amount,\n VALUE :identifier :: STRING AS identifier,\n VALUE :itemType :: INT AS item_type,\n VALUE :recipient :: STRING AS item_recipient,\n VALUE :token :: STRING AS item_token_address,\n decoded_log :offer [0] :amount :: INT AS offer_amount,\n decoded_log :offer [0] :identifier :: STRING AS offer_identifier,\n decoded_log :offer [0] :itemType :: INT AS offer_item_type,\n decoded_log :offer [0] :token :: STRING AS offer_item_token_address,\n IFF(item_type NOT IN (0, 1), CONCAT(item_token_address, '-', identifier, '-', amount), CONCAT(offer_item_token_address, '-', offer_identifier, '-', offer_amount)) AS nft_address_identifier,\n IFF(item_type NOT IN (0, 1), nft_address_identifier, NULL) AS nft_address_identifier_null,\n CASE\n WHEN item_type NOT IN (\n 0,\n 1\n ) THEN nft_address_identifier\n WHEN item_type IN (\n 0,\n 1\n )\n AND offer_item_type IN (\n 0,\n 1\n ) THEN LAG(nft_address_identifier_null) ignore nulls over (\n PARTITION BY tx_hash,\n event_index\n ORDER BY\n INDEX ASC\n )\n WHEN item_type IN (\n 0,\n 1\n )\n AND offer_item_type NOT IN (\n 0,\n 1\n ) THEN nft_address_identifier\n ELSE nft_address_identifier\n END AS nft_address_identifier_fill_raw,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n event_index\n ORDER BY\n INDEX ASC\n ) AS orderhash_within_event_index_rn,\n _log_id,\n _inserted_timestamp\n FROM\n raw_decoded_logs,\n LATERAL FLATTEN (\n input => decoded_log :consideration\n )\n WHERE\n event_name = 'OrderFulfilled'\n AND tx_hash_orderhash IN (\n SELECT\n tx_hash_orderhash\n FROM\n mao_orderhash\n )\n),\nmao_consideration_all_joined AS (\n SELECT\n *,\n CASE\n WHEN nft_address_identifier_null IS NULL\n AND offerer = recipient THEN LAG(nft_address_identifier_null) ignore nulls over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n event_index,\n INDEX ASC\n )\n ELSE nft_address_identifier_fill_raw\n END AS nft_address_identifier_fill,\n IFF(item_type NOT IN (0, 1)\n AND offer_item_type NOT IN (0, 1)\n AND decoded_log :consideration [0] :itemType :: INT NOT IN (0, 1), CONCAT(tx_hash_orderhash, '-', event_index), NULL) AS deals_tag,\n CONCAT(\n tx_hash_orderhash,\n '-',\n event_index\n ) AS event_index_tag -- tagging for deals tag\n FROM\n mao_consideration_all\n INNER JOIN orderhash_grouping_fill USING (\n tx_hash,\n tx_hash_orderhash,\n event_index\n )\n),\nmao_consideration_sale_amounts AS (\n SELECT\n tx_hash,\n orderhash,\n tx_hash_orderhash,\n orderhash_within_event_index_rn,\n om_event_index_fill,\n deals_tag,\n event_index_tag,\n event_index,\n INDEX,\n amount,\n identifier,\n item_type,\n item_token_address,\n item_token_address AS currency_address,\n item_recipient,\n nft_address_identifier_fill,\n CASE\n WHEN amount > 0\n AND ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill\n ORDER BY\n amount DESC\n ) = 1 THEN amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN item_recipient IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN sale_amount_raw_ = 0\n AND platform_fee_raw_ = 0 THEN amount\n ELSE 0\n END AS creator_fee_raw_,\n IFF(\n sale_amount_raw_ > 0,\n item_recipient,\n NULL\n ) AS sale_receiver_address\n FROM\n mao_consideration_all_joined\n WHERE\n item_type IN (\n 0,\n 1\n )\n AND nft_address_identifier_fill IS NOT NULL\n AND event_index_tag NOT IN (\n SELECT\n deals_tag\n FROM\n mao_consideration_all_joined\n WHERE\n deals_tag IS NOT NULL\n ) -- exclude deals\n),\nmao_nondeals_sale_amount AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill,\n currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw,\n SUM(platform_fee_raw_) AS platform_fee_raw,\n SUM(creator_fee_raw_) AS creator_fee_raw\n FROM\n mao_consideration_sale_amounts\n GROUP BY\n ALL\n),\nmao_nondeals_sale_amount_receiver AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill,\n sale_receiver_address,\n currency_address,\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw\n FROM\n mao_nondeals_sale_amount\n INNER JOIN mao_consideration_sale_amounts s USING (\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill,\n currency_address\n )\n WHERE\n s.sale_receiver_address IS NOT NULL\n),\nmao_deals_sale_amount AS (\n SELECT\n *,\n IFF(\n item_recipient = offerer,\n recipient,\n offerer\n ) AS payment_from_address,\n item_recipient AS payment_to_address,\n CASE\n WHEN ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n amount DESC\n ) = 1 THEN amount\n ELSE 0\n END AS sale_amount_raw_,\n CASE\n WHEN item_recipient IN (\n SELECT\n addresses\n FROM\n seaport_fees_wallet\n ) THEN amount\n ELSE 0\n END AS platform_fee_raw_,\n CASE\n WHEN sale_amount_raw_ = 0\n AND platform_fee_raw_ = 0 THEN amount\n ELSE 0\n END AS creator_fee_raw_\n FROM\n mao_consideration_all_joined\n WHERE\n item_type IN (\n 0,\n 1\n )\n AND event_index_tag IN (\n SELECT\n deals_tag\n FROM\n mao_consideration_all_joined\n WHERE\n deals_tag IS NOT NULL\n ) -- include deals only\n),\nmao_deals_sale_amount_agg AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n payment_from_address,\n payment_to_address,\n 1 AS deals_sale_rn,\n item_token_address AS currency_address,\n SUM(sale_amount_raw_) AS sale_amount_raw,\n SUM(platform_fee_raw_) AS platform_fee_raw,\n SUM(creator_fee_raw_) AS creator_fee_raw\n FROM\n mao_deals_sale_amount\n GROUP BY\n ALL\n),\nmao_deals_nft_transfers AS (\n SELECT\n *,\n IFF(\n item_recipient = offerer,\n recipient,\n offerer\n ) AS nft_from_address,\n item_recipient AS nft_to_address,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n om_event_index_fill\n ORDER BY\n INDEX ASC\n ) AS deals_nft_transfers_rn\n FROM\n mao_consideration_all_joined\n WHERE\n deals_tag IS NOT NULL\n),\nmao_deals_nft_transfers_sales AS (\n SELECT\n t.tx_hash,\n t.om_event_index_fill,\n orderhash,\n tx_hash_orderhash,\n event_index,\n INDEX,\n orderhash_within_event_index_rn,\n deals_tag,\n event_index_tag,\n nft_address_identifier_fill,\n item_token_address AS nft_address,\n identifier AS tokenid,\n item_type,\n IFF(item_type IN (2, 4), 'erc721', 'erc1155') AS nft_standard,\n IFF(\n nft_standard = 'erc1155',\n amount,\n NULL\n ) AS erc1155_value,\n nft_from_address AS seller_address,\n nft_to_address AS buyer_address,\n COALESCE(\n sale_amount_raw,\n 0\n ) AS sale_amount_raw,\n COALESCE(\n platform_fee_raw,\n 0\n ) AS platform_fee_raw,\n COALESCE(\n creator_fee_raw,\n 0\n ) AS creator_fee_raw,\n currency_address,\n decoded_log,\n offerer,\n recipient,\n _log_id,\n _inserted_timestamp\n FROM\n mao_deals_nft_transfers t\n LEFT JOIN mao_deals_sale_amount_agg s\n ON t.tx_hash = s.tx_hash\n AND t.om_event_index_fill = s.om_event_index_fill\n AND s.payment_from_address = t.nft_to_address\n AND s.payment_to_address = t.nft_from_address\n AND s.deals_sale_rn = t.deals_nft_transfers_rn\n),\nmao_nondeals_nft_transfers_sales AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n -- the event index for the ordermatched\n orderhash,\n tx_hash_orderhash,\n -- tx hash and orderhash\n event_index,\n -- event index for orderfulfilled\n INDEX,\n -- index for flattened for consideration\n orderhash_within_event_index_rn,\n -- index of orderhash within a single event index\n deals_tag,\n event_index_tag,\n -- gets the tx hash and event index to tag seaport deals\n A.nft_address_identifier_fill,\n item_token_address AS nft_address,\n identifier AS tokenid,\n item_type,\n IFF(item_type IN (2, 4), 'erc721', 'erc1155') AS nft_standard,\n IFF(\n nft_standard = 'erc1155',\n amount,\n NULL\n ) AS erc1155_value,\n item_recipient AS buyer_address,\n sale_receiver_address,\n IFF(\n item_recipient = offerer,\n recipient,\n offerer\n ) AS seller_address_temp,\n IFF(\n seller_address_temp = buyer_address,\n sale_receiver_address,\n seller_address_temp\n ) AS seller_address,\n offerer,\n recipient,\n decoded_log,\n currency_address,\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw,\n _log_id,\n _inserted_timestamp\n FROM\n mao_consideration_all_joined A\n LEFT JOIN mao_nondeals_sale_amount_receiver USING (\n tx_hash,\n om_event_index_fill,\n nft_address_identifier_fill\n )\n WHERE\n deals_tag IS NULL\n AND item_type NOT IN (\n 0,\n 1\n )\n),\nmao_nondeals_nft_transfers_sales_fill AS (\n SELECT\n *,\n CASE\n WHEN sale_amount_raw IS NULL THEN COALESCE(LAG(sale_amount_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(sale_amount_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), 0)\n ELSE sale_amount_raw\n END AS sale_amount_raw_fill,\n CASE\n WHEN platform_fee_raw IS NULL THEN COALESCE(LAG(platform_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(platform_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), 0)\n ELSE platform_fee_raw\n END AS platform_fee_raw_fill,\n CASE\n WHEN creator_fee_raw IS NULL THEN COALESCE(LAG(creator_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(creator_fee_raw) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), 0)\n ELSE creator_fee_raw\n END AS creator_fee_raw_fill,\n CASE\n WHEN currency_address IS NULL THEN COALESCE(LAG(currency_address) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), LEAD(currency_address) ignore nulls over (PARTITION BY tx_hash, om_event_index_fill\n ORDER BY\n INDEX ASC), NULL)\n ELSE currency_address\n END AS currency_address_fill\n FROM\n mao_nondeals_nft_transfers_sales\n),\nmao_nondeals_offer_length_one AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n event_index,\n COUNT(1) AS offer_length_one -- counting how many nfts are in this sale batch , need to add with the following subquery\n FROM\n mao_nondeals_nft_transfers_sales\n WHERE\n sale_amount_raw IS NULL\n GROUP BY\n ALL\n),\nmao_nondeals_offer_length_two AS (\n -- measuring offer length for non batched\n SELECT\n tx_hash,\n om_event_index_fill,\n event_index,\n COUNT(1) AS offer_length_two -- counting how many nfts are in this sale batch , need to add with the following subquery\n FROM\n mao_nondeals_nft_transfers_sales\n WHERE\n sale_amount_raw IS NOT NULL\n GROUP BY\n ALL\n),\nmao_nondeals_offer_length AS (\n -- all sales are not grouped by event index, but grouped by the orderMatched index\n SELECT\n tx_hash,\n om_event_index_fill,\n event_index,\n offer_length_two + COALESCE(\n offer_length_one,\n 0\n ) AS offer_length --offer length for all\n FROM\n mao_nondeals_offer_length_two\n LEFT JOIN mao_nondeals_offer_length_one USING (\n tx_hash,\n om_event_index_fill,\n event_index\n )\n),\nmao_nondeals_nft_transfers_sales_fill_offer_length AS (\n SELECT\n tx_hash,\n om_event_index_fill,\n -- the event index for the ordermatched\n orderhash,\n tx_hash_orderhash,\n -- tx hash and orderhash\n event_index,\n -- event index for orderfulfilled\n INDEX,\n -- index for flattened for consideration\n orderhash_within_event_index_rn,\n -- index of orderhash within a single event index\n deals_tag,\n event_index_tag,\n -- gets the tx hash and event index to tag seaport deals\n nft_address_identifier_fill,\n nft_address,\n item_type,\n tokenid,\n nft_standard,\n erc1155_value,\n buyer_address,\n seller_address,\n offerer,\n recipient,\n decoded_log,\n currency_address_fill AS currency_address,\n offer_length,\n sale_amount_raw_fill / offer_length AS sale_amount_raw,\n platform_fee_raw_fill / offer_length AS platform_fee_raw,\n creator_fee_raw_fill / offer_length AS creator_fee_raw,\n _log_id,\n _inserted_timestamp\n FROM\n mao_nondeals_nft_transfers_sales_fill\n INNER JOIN mao_nondeals_offer_length USING (\n tx_hash,\n om_event_index_fill,\n event_index\n )\n),\nmao_combined_base AS (\n -- includes both deals and nondeals\n SELECT\n tx_hash,\n om_event_index_fill,\n IFF(\n decoded_log :consideration [0] :itemType :: INT IN (\n 0,\n 1\n ),\n 'sale',\n 'bid_won'\n ) AS event_type,\n IFF(\n event_type = 'sale',\n 'mao_deals_buy',\n 'mao_deals_oa'\n ) AS category,\n orderhash,\n tx_hash_orderhash,\n event_index,\n INDEX,\n orderhash_within_event_index_rn,\n deals_tag,\n event_index_tag,\n nft_address_identifier_fill,\n nft_address,\n item_type,\n tokenid,\n nft_standard,\n erc1155_value,\n seller_address,\n buyer_address,\n currency_address,\n 1 AS offer_length,\n -- deals with always have 1 since we'll not be dividing the sale amount with number of nfts exchanged since nfts are also used as part of the offer\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n sale_amount_raw + total_fees_raw AS total_price_raw,\n offerer,\n recipient,\n decoded_log,\n _log_id,\n _inserted_timestamp\n FROM\n mao_deals_nft_transfers_sales\n UNION ALL\n SELECT\n tx_hash,\n om_event_index_fill,\n -- the event index for the ordermatched\n IFF(\n decoded_log :consideration [0] :itemType :: INT IN (\n 0,\n 1\n ),\n 'sale',\n 'bid_won'\n ) AS event_type,\n IFF(\n event_type = 'sale',\n 'mao_nondeals_buy',\n 'mao_nondeals_oa'\n ) AS category,\n orderhash,\n tx_hash_orderhash,\n event_index,\n INDEX,\n orderhash_within_event_index_rn,\n deals_tag,\n event_index_tag,\n nft_address_identifier_fill,\n nft_address,\n item_type,\n tokenid,\n nft_standard,\n erc1155_value,\n seller_address,\n buyer_address,\n currency_address,\n offer_length,\n sale_amount_raw,\n platform_fee_raw,\n creator_fee_raw,\n platform_fee_raw + creator_fee_raw AS total_fees_raw,\n sale_amount_raw + total_fees_raw AS total_price_raw,\n offerer,\n recipient,\n decoded_log,\n _log_id,\n _inserted_timestamp\n FROM\n mao_nondeals_nft_transfers_sales_fill_offer_length\n),\nbase_sales_buy_and_offer AS (\n -- this part combines OrderFulfilled subqueries with OrdersMatched (mao)\n SELECT\n tx_hash,\n 'fulfil_buy' AS category,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n NULL AS seller_address_temp,\n NULL AS buyer_address_temp,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_final\n UNION ALL\n SELECT\n tx_hash,\n 'fulfil_oa' AS category,\n event_index,\n contract_address,\n event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n sale_category,\n trade_type,\n is_price_estimated,\n ZONE,\n tx_type,\n token_type,\n nft_address AS nft_address_temp,\n tokenid AS tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_sale_amount_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_output,\n consideration,\n offer,\n NULL AS seller_address_temp,\n NULL AS buyer_address_temp,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_offer_accepted_final\n UNION ALL\n SELECT\n tx_hash,\n category,\n event_index,\n '0xaaaaaaaa33d3520a2266ce508bc079fcfe82c8e3' AS contract_address,\n 'OrderFulfilled' AS event_name,\n offer_length,\n offerer,\n orderHash,\n recipient,\n CASE\n WHEN recipient = '0x0000000000000000000000000000000000000000' THEN 'private'\n ELSE 'public'\n END AS sale_category,\n IFF(\n event_type = 'sale',\n 'buy',\n 'offer_accepted'\n ) AS trade_type,\n IFF(\n offer_length > 1,\n 'true',\n 'false'\n ) AS is_price_estimated,\n decoded_log :zone :: STRING AS ZONE,\n item_type AS tx_type,\n item_type AS token_type,\n nft_address AS nft_address_temp,\n tokenId,\n erc1155_value,\n IFF(\n currency_address = '0x0000000000000000000000000000000000000000',\n 'MATIC',\n currency_address\n ) AS currency_address,\n total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n decoded_log,\n decoded_log :consideration AS consideration,\n decoded_log :offer AS offer,\n seller_address AS seller_address_temp,\n buyer_address AS buyer_address_temp,\n _log_id,\n _inserted_timestamp\n FROM\n mao_combined_base\n),\ntx_data AS (\n SELECT\n tx_hash,\n block_timestamp,\n block_number,\n from_address,\n to_address,\n origin_function_signature,\n tx_fee,\n input_data\n FROM\n polygon.core.fact_transactions\n WHERE\n block_timestamp :: DATE >= '2023-08-17'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.mooar_sales\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\nnft_transfer_operator AS (\n SELECT\n tx_hash,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS nft_address_from_transfers,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS nft_address_temp,\n --or operator_address\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS offerer,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: STRING AS tokenid,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: STRING AS erc1155_value\n FROM\n polygon.core.fact_event_logs\n WHERE\n block_timestamp :: DATE >= '2023-08-17'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n base_sales_buy_and_offer\n )\n AND topics [0] :: STRING IN (\n '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62',\n '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb'\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver.mooar_sales\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\nfinal_seaport AS (\n SELECT\n t.block_number,\n t.block_timestamp,\n s.tx_hash,\n category,\n s.event_index,\n s.contract_address AS platform_address,\n 'mooar' AS platform_name,\n 'mooar_seaport' AS platform_exchange_version,\n s.event_name,\n offer_length,\n IFF(category IN ('fulfil_oa', 'fulfil_buy'), offerer, seller_address_temp) AS seller_address,\n orderHash,\n IFF(category IN ('fulfil_oa', 'fulfil_buy'), recipient, buyer_address_temp) AS buyer_address,\n sale_category,\n trade_type,\n CASE\n WHEN trade_type = 'buy' THEN 'sale'\n WHEN trade_type = 'offer_accepted' THEN 'bid_won'\n END AS event_type,\n is_price_estimated,\n ZONE,\n tx_type,\n s.token_type,\n s.nft_address_temp,\n CASE\n WHEN nft_address_from_transfers IS NOT NULL THEN nft_address_from_transfers\n ELSE s.nft_address_temp\n END AS nft_address,\n s.tokenId,\n s.erc1155_value,\n s.currency_address,\n total_sale_amount_raw AS total_price_raw,\n total_fees_raw,\n platform_fee_raw,\n creator_fee_raw,\n t.tx_fee,\n t.from_address AS origin_from_address,\n t.to_address AS origin_to_address,\n t.origin_function_signature,\n decoded_output,\n consideration,\n offer,\n input_data,\n CONCAT(\n nft_address,\n '-',\n s.tokenId,\n '-',\n platform_exchange_version,\n '-',\n _log_id\n ) AS nft_log_id,\n _log_id,\n _inserted_timestamp\n FROM\n base_sales_buy_and_offer s\n INNER JOIN tx_data t USING (tx_hash)\n LEFT JOIN nft_transfer_operator o USING (\n tx_hash,\n nft_address_temp,\n tokenid,\n recipient\n ) qualify(ROW_NUMBER() over(PARTITION BY nft_log_id\n ORDER BY\n _inserted_timestamp DESC)) = 1\n)\nSELECT\n *\nFROM\n final_seaport", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.polygon_models.nft__ez_nft_sales": {"database": "polygon", "schema": "nft", "name": "nft__ez_nft_sales", "resource_type": "model", "package_name": "polygon_models", "path": "gold/NFT/nft__ez_nft_sales.sql", "original_file_path": "models/gold/NFT/nft__ez_nft_sales.sql", "unique_id": "model.polygon_models.nft__ez_nft_sales", "fqn": ["polygon_models", "gold", "NFT", "nft__ez_nft_sales"], "alias": "ez_nft_sales", "checksum": {"name": "sha256", "checksum": "7c34f837e882d368c84441814bdda9ce0dce864afec673d8aae703fa85d8272f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "nft", "curated", "ez"], "meta": {"database_tags": {"table": {"PURPOSE": "NFT"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "nft", "curated", "ez"], "description": "## What\n\nThis table provides a comprehensive view of NFT (Non-Fungible Token) sales across all major marketplaces and platforms on EVM blockchains. It captures both direct marketplace sales and aggregator-routed transactions, enabling analysis of NFT market dynamics, collection performance, and trading patterns.\n\n## Key Use Cases\n\n- Analyze daily/weekly NFT market volume and trends by platform\n- Track top-performing NFT collections by sales count and volume\n- Monitor marketplace competition and market share analysis\n- Identify whale activity and buyer behavior patterns\n- Evaluate creator royalty enforcement across platforms\n- Assess fee structures and revenue models by marketplace\n- Track cross-platform trader behavior and platform preferences\n\n## Important Relationships\n\n- Links to `core.fact_event_logs` via `tx_hash` and `event_index`\n- Joins with `core.dim_contracts` for collection name\n- References `price.ez_prices_hourly` for currency conversions\n- Connects to token transfer tables for ownership tracking\n\n## Commonly-used Fields\n\n- `platform_name`: Marketplace where sale occurred (opensea, blur, etc.)\n- `contract_address`: NFT collection contract address\n- `token_id`: Unique identifier of the specific NFT\n- `buyer_address` / `seller_address`: Transaction participants\n- `price_usd`: Sale price converted to USD (includes fees)\n- `total_fees_usd`: Combined platform and creator fees in USD\n- `event_type`: Type of sale transaction (sale, bid_won, etc.)\n\n## Sample Queries\n\n**Daily NFT market volume by platform**\n```sql\n-- Daily NFT market volume by platform\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform_name,\n COUNT(*) as sales_count,\n COUNT(DISTINCT tx_hash) AS unique_sales_transaction_count,\n COUNT(DISTINCT buyer_address) AS unique_buyers,\n COUNT(DISTINCT contract_address) AS collections_traded,\n SUM(price_usd) AS total_volume_usd,\n AVG(price_usd) AS avg_sale_price_usd\nFROM .nft.ez_nft_sales\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND price_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 7 DESC;\n```\n\n**Top selling NFT collections**\n```sql\n-- Top selling NFT collections\nSELECT \n contract_address,\n name AS collection_name,\n COUNT(*) AS sales_count,\n COUNT(DISTINCT token_id) AS unique_tokens_sold,\n COUNT(DISTINCT buyer_address) AS unique_buyers,\n SUM(price_usd) AS total_volume_usd,\n AVG(price_usd) AS avg_price_usd,\n MAX(price_usd) AS highest_sale_usd\nFROM .nft.ez_nft_sales\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND price_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 6 DESC\nLIMIT 50;\n```\n\n**Marketplace competition analysis**\n```sql\n-- Marketplace competition analysis\nWITH platform_metrics AS (\n SELECT \n platform_name,\n COUNT(*) AS total_sales,\n SUM(price_usd) AS total_volume_usd,\n COUNT(DISTINCT buyer_address) AS unique_buyers,\n COUNT(DISTINCT seller_address) AS unique_sellers,\n AVG(platform_fee / NULLIF(price, 0) * 100) AS avg_platform_fee_pct,\n SUM(platform_fee_usd) AS total_platform_revenue_usd\n FROM .nft.ez_nft_sales\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND price_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n platform_name,\n total_sales,\n total_volume_usd,\n total_volume_usd * 100.0 / SUM(total_volume_usd) OVER () AS market_share_pct,\n unique_buyers,\n unique_sellers,\n avg_platform_fee_pct,\n total_platform_revenue_usd\nFROM platform_metrics\nORDER BY total_volume_usd DESC;\n```\n\n**Whale activity tracking**\n```sql\n-- Whale activity tracking\nWITH buyer_stats AS (\n SELECT \n buyer_address,\n COUNT(*) AS purchases,\n COUNT(DISTINCT contract_address) AS unique_collections,\n SUM(price_usd) AS total_spent_usd,\n AVG(price_usd) AS avg_purchase_price,\n MAX(price_usd) AS highest_purchase\n FROM .nft.ez_nft_sales\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND price_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n CASE \n WHEN total_spent_usd < 1000 THEN '< $1K'\n WHEN total_spent_usd < 10000 THEN '$1K - $10K'\n WHEN total_spent_usd < 100000 THEN '$10K - $100K'\n WHEN total_spent_usd < 1000000 THEN '$100K - $1M'\n ELSE '> $1M'\n END AS buyer_tier,\n COUNT(*) AS buyer_count,\n SUM(purchases) AS total_purchases,\n AVG(unique_collections) AS avg_collections_per_buyer,\n SUM(total_spent_usd) AS tier_total_spent\nFROM buyer_stats\nGROUP BY 1\nORDER BY MIN(total_spent_usd);\n```\n \n**Creator royalty analysis**\n```sql\n-- Creator royalty analysis\nSELECT \n name AS collection_name,\n contract_address,\n COUNT(*) AS sales_with_royalties,\n SUM(creator_fee) AS total_creator_fees,\n SUM(creator_fee_usd) AS total_creator_fees_usd,\n AVG(creator_fee / NULLIF(price, 0) * 100) AS avg_royalty_pct,\n SUM(creator_fee_usd) / NULLIF(SUM(price_usd), 0) * 100 AS effective_royalty_rate\nFROM .nft.ez_nft_sales\nWHERE creator_fee > 0\n AND price > 0\n AND block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1, 2\nHAVING COUNT(*) > 10\nORDER BY total_creator_fees_usd DESC\nLIMIT 100;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_TYPE": {"name": "EVENT_TYPE", "description": "The specific type of NFT transaction that occurred. Common values include 'sale', 'bid_won', 'redeem', and 'mint'.\n\nExample: 'sale'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_ADDRESS": {"name": "PLATFORM_ADDRESS", "description": "The smart contract address of the marketplace facilitating the sale. Platforms may have multiple contracts for different versions.\n\nExample: '0x00000000006c3852cbef3e08e8df289169ede581'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_NAME": {"name": "PLATFORM_NAME", "description": "The marketplace or platform where the NFT sale occurred. Standardized to lowercase with no spaces.\n\nExample: 'opensea'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_EXCHANGE_VERSION": {"name": "PLATFORM_EXCHANGE_VERSION", "description": "The version identifier of the marketplace contract. Tracks protocol versions and upgrades.\n\nExample: 'seaport_1_5'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AGGREGATOR_NAME": {"name": "AGGREGATOR_NAME", "description": "The NFT aggregator platform that routed the transaction. NULL indicates direct platform interaction.\n\nExample: 'gem'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SELLER_ADDRESS": {"name": "SELLER_ADDRESS", "description": "The blockchain address that sold the NFT.\n\nExample: '0x1234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BUYER_ADDRESS": {"name": "BUYER_ADDRESS", "description": "The blockchain address that purchased the NFT.\n\nExample: '0x1234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "The smart contract address of the NFT collection. Supports ERC-721, ERC-1155, and custom implementations.\n\nExample: '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NAME": {"name": "NAME", "description": "The name of the NFT collection or project. May be NULL for unverified collections.\n\nExample: 'Bored Ape Yacht Club'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ID": {"name": "TOKEN_ID", "description": "The unique identifier of the specific NFT within its collection. Format is numeric string.\n\nExample: '1234'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "QUANTITY": {"name": "QUANTITY", "description": "The number of tokens sold in the transaction. Primarily relevant for ERC-1155 tokens.\n\nExample: '1'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_STANDARD": {"name": "TOKEN_STANDARD", "description": "The technical standard implemented by the NFT contract. Common values include 'erc721', 'erc1155', 'cryptopunks', and 'legacy'.\n\nExample: 'erc721'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CURRENCY_SYMBOL": {"name": "CURRENCY_SYMBOL", "description": "The symbol of the token used for payment.\n\nExample: 'ETH'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CURRENCY_ADDRESS": {"name": "CURRENCY_ADDRESS", "description": "The contract address of the payment token. Shows 'ETH' for native ETH payments.\n\nExample: '0xa0b86a33e6776a1e7f9f0b8b8b8b8b8b8b8b8b8b'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRICE": {"name": "PRICE", "description": "The sale price in the payment currency, including platform and creator fees. Raw price before USD conversion.\n\nExample: 2.5", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRICE_USD": {"name": "PRICE_USD", "description": "The sale price converted to USD at transaction time, including platform and creator fees. May be NULL for missing price data.\n\nExample: 4250.75", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_FEES": {"name": "TOTAL_FEES", "description": "The combined platform and creator fees in the payment currency.\n\nExample: 0.125", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_FEE": {"name": "PLATFORM_FEE", "description": "The fee charged by the marketplace in the payment currency. Typically 2-2.5% of sale price.\n\nExample: 0.05", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATOR_FEE": {"name": "CREATOR_FEE", "description": "The royalty fee paid to the collection creator in the payment currency. Typically 0-10% of sale price.\n\nExample: 0.075", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_FEES_USD": {"name": "TOTAL_FEES_USD", "description": "The combined platform and creator fees converted to USD.\n\nExample: 212.54", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_FEE_USD": {"name": "PLATFORM_FEE_USD", "description": "The marketplace fee converted to USD.\n\nExample: 85.02", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_FEE": {"name": "TX_FEE", "description": "Total fee paid for transaction execution in native token units.\n\nExample: 0.002", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_FEE_USD": {"name": "TX_FEE_USD", "description": "The transaction fee denominated in USD. Use only one instance per transaction to avoid overcounting.\n\nExample: 45.32", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATOR_FEE_USD": {"name": "CREATOR_FEE_USD", "description": "The royalty fee converted to USD.\n\nExample: 127.52", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_NFT_SALES_ID": {"name": "EZ_NFT_SALES_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "NFT"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/nft/nft__ez_nft_sales.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "meta": {"database_tags": {"table": {"PURPOSE": "NFT"}}}, "tags": ["gold", "nft", "curated", "ez"]}, "created_at": 1764018442.2611623, "relation_name": "polygon.nft.ez_nft_sales", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'NFT' } } },\n tags = ['gold','nft','curated','ez']\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n aggregator_name,\n seller_address,\n buyer_address,\n nft_address as contract_address,\n project_name as name,\n tokenId as token_id,\n coalesce(erc1155_value, '1')::STRING AS quantity,\n case when erc1155_value is null then 'erc721' else 'erc1155' end as token_standard,\n currency_symbol,\n currency_address,\n price,\n price_usd,\n total_fees,\n platform_fee,\n creator_fee,\n total_fees_usd,\n platform_fee_usd,\n creator_fee_usd,\n tx_fee, \n tx_fee_usd,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n COALESCE (\n complete_nft_sales_id,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash', 'event_index', 'nft_address','tokenId','platform_exchange_version']\n ) }}\n ) AS ez_nft_sales_id,\n COALESCE(\n inserted_timestamp,\n '2000-01-01'\n ) AS inserted_timestamp,\n COALESCE(\n modified_timestamp,\n '2000-01-01'\n ) AS modified_timestamp\n\nFROM\n {{ ref('silver__complete_nft_sales') }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/gold/NFT/nft__ez_nft_sales.sql", "compiled": true, "compiled_code": "\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n aggregator_name,\n seller_address,\n buyer_address,\n nft_address as contract_address,\n project_name as name,\n tokenId as token_id,\n coalesce(erc1155_value, '1')::STRING AS quantity,\n case when erc1155_value is null then 'erc721' else 'erc1155' end as token_standard,\n currency_symbol,\n currency_address,\n price,\n price_usd,\n total_fees,\n platform_fee,\n creator_fee,\n total_fees_usd,\n platform_fee_usd,\n creator_fee_usd,\n tx_fee, \n tx_fee_usd,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n COALESCE (\n complete_nft_sales_id,\n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(event_index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(nft_address as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(tokenId as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(platform_exchange_version as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT))\n ) AS ez_nft_sales_id,\n COALESCE(\n inserted_timestamp,\n '2000-01-01'\n ) AS inserted_timestamp,\n COALESCE(\n modified_timestamp,\n '2000-01-01'\n ) AS modified_timestamp\n\nFROM\n polygon.silver.complete_nft_sales", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "seed.polygon_models.observability__exclusion_list": {"database": "polygon", "schema": "observability", "name": "observability__exclusion_list", "resource_type": "seed", "package_name": "polygon_models", "path": "observability__exclusion_list.csv", "original_file_path": "data/observability__exclusion_list.csv", "unique_id": "seed.polygon_models.observability__exclusion_list", "fqn": ["polygon_models", "observability__exclusion_list"], "alias": "exclusion_list", "checksum": {"name": "sha256", "checksum": "c8f0149d925632cafb1f9fce63723552221bc06f84ff55f77b9c49a0d9f36383"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018294.697354, "relation_name": "polygon.observability.exclusion_list", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models", "depends_on": {"macros": []}}, "operation.polygon_models.polygon_models-on-run-start-0": {"database": "polygon", "schema": "polygon_models-on-run-start-0", "name": "polygon_models-on-run-start-0", "resource_type": "operation", "package_name": "polygon_models", "path": "hooks/polygon_models-on-run-start-0.sql", "original_file_path": "./dbt_project.yml", "unique_id": "operation.polygon_models.polygon_models-on-run-start-0", "fqn": ["polygon_models", "hooks", "polygon_models-on-run-start-0"], "alias": "", "checksum": {"name": "sha256", "checksum": "4f9393fe3a6286535d4c072340c346aea6f46b0c9ac175a063e78e9f3417873b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "copy_grants": true}, "tags": ["on-run-start"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018294.808264, "relation_name": null, "raw_code": "{{ create_sps() }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.polygon_models.create_sps"], "nodes": []}, "compiled_path": "target/compiled/polygon_models/./dbt_project.yml/hooks/polygon_models-on-run-start-0.sql", "compiled": true, "compiled_code": "\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "index": 0}, "operation.polygon_models.polygon_models-on-run-start-1": {"database": "polygon", "schema": "polygon_models-on-run-start-1", "name": "polygon_models-on-run-start-1", "resource_type": "operation", "package_name": "polygon_models", "path": "hooks/polygon_models-on-run-start-1.sql", "original_file_path": "./dbt_project.yml", "unique_id": "operation.polygon_models.polygon_models-on-run-start-1", "fqn": ["polygon_models", "hooks", "polygon_models-on-run-start-1"], "alias": "", "checksum": {"name": "sha256", "checksum": "4f9393fe3a6286535d4c072340c346aea6f46b0c9ac175a063e78e9f3417873b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "copy_grants": true}, "tags": ["on-run-start"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018294.818152, "relation_name": null, "raw_code": "{{ create_udfs() }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.polygon_models.create_udfs"], "nodes": []}, "compiled_path": "target/compiled/polygon_models/./dbt_project.yml/hooks/polygon_models-on-run-start-1.sql", "compiled": true, "compiled_code": "\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "index": 1}, "operation.polygon_models.polygon_models-on-run-end-0": {"database": "polygon", "schema": "polygon_models-on-run-end-0", "name": "polygon_models-on-run-end-0", "resource_type": "operation", "package_name": "polygon_models", "path": "hooks/polygon_models-on-run-end-0.sql", "original_file_path": "./dbt_project.yml", "unique_id": "operation.polygon_models.polygon_models-on-run-end-0", "fqn": ["polygon_models", "hooks", "polygon_models-on-run-end-0"], "alias": "", "checksum": {"name": "sha256", "checksum": "4f9393fe3a6286535d4c072340c346aea6f46b0c9ac175a063e78e9f3417873b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "copy_grants": true}, "tags": ["on-run-end"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018294.8264956, "relation_name": null, "raw_code": "{{ apply_meta_as_tags(results) }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.polygon_models.apply_meta_as_tags"], "nodes": []}, "compiled_path": "target/compiled/polygon_models/./dbt_project.yml/hooks/polygon_models-on-run-end-0.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "index": 0}, "model.livequery_models.live__allow_list": {"database": "polygon", "schema": "live", "name": "live__allow_list", "resource_type": "model", "package_name": "livequery_models", "path": "live__allow_list.sql", "original_file_path": "models/live__allow_list.sql", "unique_id": "model.livequery_models.live__allow_list", "fqn": ["livequery_models", "live__allow_list"], "alias": "allow_list", "checksum": {"name": "sha256", "checksum": "0f0f0355e5f959d9d75458d90cee37209b5632f984414c3fcf65eca0e0e5de2b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {"select": ["INTERNAL_DEV"]}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "grants": {"+select": ["INTERNAL_DEV"]}}, "created_at": 1764018295.042908, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{{ config(\n materialized = 'view',\n grants = {'+select': fromyaml(var('ROLES'))}\n) }}\nSELECT '*.' || t.value AS allowed_domains\nFROM table(flatten(input => {{ this.database }}.live.udf_allow_list())) AS t\nORDER BY\n split_part(allowed_domains, '.', -1),\n split_part(allowed_domains, '.', -2),\n split_part(allowed_domains, '.', -3)", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/live__allow_list.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\n\nSELECT '*.' || t.value AS allowed_domains\nFROM table(flatten(input => polygon.live.udf_allow_list())) AS t\nORDER BY\n split_part(allowed_domains, '.', -1),\n split_part(allowed_domains, '.', -2),\n split_part(allowed_domains, '.', -3)", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models._eth__decoded_logs": {"database": "polygon", "schema": "_eth", "name": "_eth__decoded_logs", "resource_type": "model", "package_name": "livequery_models", "path": "mapping_tables/_eth__decoded_logs.sql", "original_file_path": "models/mapping_tables/_eth__decoded_logs.sql", "unique_id": "model.livequery_models._eth__decoded_logs", "fqn": ["livequery_models", "mapping_tables", "_eth__decoded_logs"], "alias": "decoded_logs", "checksum": {"name": "sha256", "checksum": "bdfd9ed4bf06c0100047dd80065882219275da54624c6a8c090d27caf38be29e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {"select": ["INTERNAL_DEV"]}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "grants": {"+select": ["INTERNAL_DEV"]}}, "created_at": 1764018295.0512302, "relation_name": null, "raw_code": "{{ config(\n materialized = 'view',\n grants = {'+select': fromyaml(var('ROLES'))}\n) }}\n\nSELECT \n BLOCK_NUMBER,\n\tBLOCK_TIMESTAMP,\n\tTX_HASH,\n\tEVENT_INDEX,\n\tCONTRACT_ADDRESS,\n\tCONTRACT_NAME,\n\tEVENT_NAME,\n\tDECODED_LOG,\n\tFULL_DECODED_LOG,\n\tORIGIN_FUNCTION_SIGNATURE,\n\tORIGIN_FROM_ADDRESS,\n\tORIGIN_TO_ADDRESS,\n\tTOPICS,\n\tDATA,\n\tEVENT_REMOVED,\n\tTX_STATUS\nFROM\n {{ source(\n 'ethereum_core',\n 'ez_decoded_event_logs'\n ) }}", "language": "sql", "refs": [], "sources": [["ethereum_core", "ez_decoded_event_logs"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.livequery_models.ethereum_core.ez_decoded_event_logs"]}, "compiled_path": "target/compiled/livequery_models/models/mapping_tables/_eth__decoded_logs.sql", "compiled": true, "compiled_code": "\n\nSELECT \n BLOCK_NUMBER,\n\tBLOCK_TIMESTAMP,\n\tTX_HASH,\n\tEVENT_INDEX,\n\tCONTRACT_ADDRESS,\n\tCONTRACT_NAME,\n\tEVENT_NAME,\n\tDECODED_LOG,\n\tFULL_DECODED_LOG,\n\tORIGIN_FUNCTION_SIGNATURE,\n\tORIGIN_FROM_ADDRESS,\n\tORIGIN_TO_ADDRESS,\n\tTOPICS,\n\tDATA,\n\tEVENT_REMOVED,\n\tTX_STATUS\nFROM\n ethereum_dev.core.ez_decoded_event_logs", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models._eth__logs": {"database": "polygon", "schema": "_eth", "name": "_eth__logs", "resource_type": "model", "package_name": "livequery_models", "path": "mapping_tables/_eth__logs.sql", "original_file_path": "models/mapping_tables/_eth__logs.sql", "unique_id": "model.livequery_models._eth__logs", "fqn": ["livequery_models", "mapping_tables", "_eth__logs"], "alias": "logs", "checksum": {"name": "sha256", "checksum": "dc768eb99a909adc99566d829040132c1ce1951fe6829a4a3b00859c4cf360ca"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {"select": ["INTERNAL_DEV"]}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "grants": {"+select": ["INTERNAL_DEV"]}}, "created_at": 1764018295.0594265, "relation_name": null, "raw_code": "{{ config(\n materialized = 'view',\n grants = {'+select': fromyaml(var('ROLES'))}\n) }}\n\nSELECT \n BLOCK_NUMBER,\n BLOCK_TIMESTAMP,\n TX_HASH,\n ORIGIN_FUNCTION_SIGNATURE,\n ORIGIN_FROM_ADDRESS,\n ORIGIN_TO_ADDRESS,\n EVENT_INDEX,\n\tCONTRACT_ADDRESS,\n\tTOPICS,\n\tDATA,\n\tEVENT_REMOVED,\n\tTX_STATUS,\n\t_LOG_ID\nFROM\n {{ source(\n 'ethereum_core',\n 'fact_event_logs'\n ) }}", "language": "sql", "refs": [], "sources": [["ethereum_core", "fact_event_logs"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.livequery_models.ethereum_core.fact_event_logs"]}, "compiled_path": "target/compiled/livequery_models/models/mapping_tables/_eth__logs.sql", "compiled": true, "compiled_code": "\n\nSELECT \n BLOCK_NUMBER,\n BLOCK_TIMESTAMP,\n TX_HASH,\n ORIGIN_FUNCTION_SIGNATURE,\n ORIGIN_FROM_ADDRESS,\n ORIGIN_TO_ADDRESS,\n EVENT_INDEX,\n\tCONTRACT_ADDRESS,\n\tTOPICS,\n\tDATA,\n\tEVENT_REMOVED,\n\tTX_STATUS,\n\t_LOG_ID\nFROM\n ethereum_dev.core.fact_event_logs", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models._evm__abi_map": {"database": "polygon", "schema": "_evm", "name": "_evm__abi_map", "resource_type": "model", "package_name": "livequery_models", "path": "mapping_tables/_evm__abi_map.sql", "original_file_path": "models/mapping_tables/_evm__abi_map.sql", "unique_id": "model.livequery_models._evm__abi_map", "fqn": ["livequery_models", "mapping_tables", "_evm__abi_map"], "alias": "abi_map", "checksum": {"name": "sha256", "checksum": "88cdfb107baea6454e6ea0bde9b36a8a135f15abba9d6588a18de46d8095fe46"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {"select": ["INTERNAL_DEV"]}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "grants": {"+select": ["INTERNAL_DEV"]}}, "created_at": 1764018295.0683088, "relation_name": null, "raw_code": "{{ config(\n materialized = 'view',\n grants = {'+select': fromyaml(var('ROLES'))}\n) }}\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n {{ source(\n 'crosschain',\n 'dim_evm_event_abis'\n ) }}", "language": "sql", "refs": [], "sources": [["crosschain", "dim_evm_event_abis"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.livequery_models.crosschain.dim_evm_event_abis"]}, "compiled_path": "target/compiled/livequery_models/models/mapping_tables/_evm__abi_map.sql", "compiled": true, "compiled_code": "\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models._evm__contracts_map": {"database": "polygon", "schema": "_evm", "name": "_evm__contracts_map", "resource_type": "model", "package_name": "livequery_models", "path": "mapping_tables/_evm__contracts_map.sql", "original_file_path": "models/mapping_tables/_evm__contracts_map.sql", "unique_id": "model.livequery_models._evm__contracts_map", "fqn": ["livequery_models", "mapping_tables", "_evm__contracts_map"], "alias": "contracts_map", "checksum": {"name": "sha256", "checksum": "735a229e83b106abf3e7fdffae2618ac6f66f8662e74c6394f232a13d43e3bd9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {"select": ["INTERNAL_DEV"]}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "grants": {"+select": ["INTERNAL_DEV"]}}, "created_at": 1764018295.0764337, "relation_name": null, "raw_code": "{{ config(\n materialized = 'view',\n grants = {'+select': fromyaml(var('ROLES'))}\n) }}\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n {{ source(\n 'crosschain',\n 'dim_contracts'\n ) }}", "language": "sql", "refs": [], "sources": [["crosschain", "dim_contracts"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.livequery_models.crosschain.dim_contracts"]}, "compiled_path": "target/compiled/livequery_models/models/mapping_tables/_evm__contracts_map.sql", "compiled": true, "compiled_code": "\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models._evm__native_symbol_map": {"database": "polygon", "schema": "_evm", "name": "_evm__native_symbol_map", "resource_type": "model", "package_name": "livequery_models", "path": "mapping_tables/_evm__native_symbol_map.sql", "original_file_path": "models/mapping_tables/_evm__native_symbol_map.sql", "unique_id": "model.livequery_models._evm__native_symbol_map", "fqn": ["livequery_models", "mapping_tables", "_evm__native_symbol_map"], "alias": "native_symbol_map", "checksum": {"name": "sha256", "checksum": "3ee1112fc9b568e4bfd16703969c64185eecb78266275f6572d30f9337f61b36"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {"select": ["INTERNAL_DEV"]}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "grants": {"+select": ["INTERNAL_DEV"]}}, "created_at": 1764018295.0844707, "relation_name": null, "raw_code": "{{ config(\n materialized = 'view',\n grants = {'+select': fromyaml(var('ROLES'))}\n) }}\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": "target/compiled/livequery_models/models/mapping_tables/_evm__native_symbol_map.sql", "compiled": true, "compiled_code": "\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.gnosis__mainnet": {"database": "polygon", "schema": "gnosis", "name": "gnosis__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/gnosis__mainnet.sql", "original_file_path": "models/deploy/evm/gnosis__mainnet.sql", "unique_id": "model.livequery_models.gnosis__mainnet", "fqn": ["livequery_models", "deploy", "evm", "gnosis__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.0924714, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/gnosis__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'gnosis' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.fantom__mainnet": {"database": "polygon", "schema": "fantom", "name": "fantom__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/fantom__mainnet.sql", "original_file_path": "models/deploy/evm/fantom__mainnet.sql", "unique_id": "model.livequery_models.fantom__mainnet", "fqn": ["livequery_models", "deploy", "evm", "fantom__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.1083887, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/fantom__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'fantom' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.ethereum__mainnet": {"database": "polygon", "schema": "ethereum", "name": "ethereum__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/ethereum__mainnet.sql", "original_file_path": "models/deploy/evm/ethereum__mainnet.sql", "unique_id": "model.livequery_models.ethereum__mainnet", "fqn": ["livequery_models", "deploy", "evm", "ethereum__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "42fcff256d5cc7381b3feee8e69fc5ac0df9c6c255bc772f793908ca1d70e640"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.117678, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('_eth__logs') }}\n-- depends_on: {{ ref('_eth__decoded_logs') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions,\n config_eth_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "_eth__logs", "package": null, "version": null}, {"name": "_eth__decoded_logs", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models._eth__logs", "model.livequery_models._eth__decoded_logs", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/ethereum__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___eth__logs as (\n\n\nSELECT \n BLOCK_NUMBER,\n BLOCK_TIMESTAMP,\n TX_HASH,\n ORIGIN_FUNCTION_SIGNATURE,\n ORIGIN_FROM_ADDRESS,\n ORIGIN_TO_ADDRESS,\n EVENT_INDEX,\n\tCONTRACT_ADDRESS,\n\tTOPICS,\n\tDATA,\n\tEVENT_REMOVED,\n\tTX_STATUS,\n\t_LOG_ID\nFROM\n ethereum_dev.core.fact_event_logs\n), __dbt__cte___eth__decoded_logs as (\n\n\nSELECT \n BLOCK_NUMBER,\n\tBLOCK_TIMESTAMP,\n\tTX_HASH,\n\tEVENT_INDEX,\n\tCONTRACT_ADDRESS,\n\tCONTRACT_NAME,\n\tEVENT_NAME,\n\tDECODED_LOG,\n\tFULL_DECODED_LOG,\n\tORIGIN_FUNCTION_SIGNATURE,\n\tORIGIN_FROM_ADDRESS,\n\tORIGIN_TO_ADDRESS,\n\tTOPICS,\n\tDATA,\n\tEVENT_REMOVED,\n\tTX_STATUS\nFROM\n ethereum_dev.core.ez_decoded_event_logs\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte___eth__logs\n-- depends_on: __dbt__cte___eth__decoded_logs\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'ethereum' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._eth__logs", "sql": " __dbt__cte___eth__logs as (\n\n\nSELECT \n BLOCK_NUMBER,\n BLOCK_TIMESTAMP,\n TX_HASH,\n ORIGIN_FUNCTION_SIGNATURE,\n ORIGIN_FROM_ADDRESS,\n ORIGIN_TO_ADDRESS,\n EVENT_INDEX,\n\tCONTRACT_ADDRESS,\n\tTOPICS,\n\tDATA,\n\tEVENT_REMOVED,\n\tTX_STATUS,\n\t_LOG_ID\nFROM\n ethereum_dev.core.fact_event_logs\n)"}, {"id": "model.livequery_models._eth__decoded_logs", "sql": " __dbt__cte___eth__decoded_logs as (\n\n\nSELECT \n BLOCK_NUMBER,\n\tBLOCK_TIMESTAMP,\n\tTX_HASH,\n\tEVENT_INDEX,\n\tCONTRACT_ADDRESS,\n\tCONTRACT_NAME,\n\tEVENT_NAME,\n\tDECODED_LOG,\n\tFULL_DECODED_LOG,\n\tORIGIN_FUNCTION_SIGNATURE,\n\tORIGIN_FROM_ADDRESS,\n\tORIGIN_TO_ADDRESS,\n\tTOPICS,\n\tDATA,\n\tEVENT_REMOVED,\n\tTX_STATUS\nFROM\n ethereum_dev.core.ez_decoded_event_logs\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.bsc__testnet": {"database": "polygon", "schema": "bsc", "name": "bsc__testnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/bsc__testnet.sql", "original_file_path": "models/deploy/evm/bsc__testnet.sql", "unique_id": "model.livequery_models.bsc__testnet", "fqn": ["livequery_models", "deploy", "evm", "bsc__testnet"], "alias": "testnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.1283479, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/bsc__testnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'bsc' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.avalanche_c__testnet": {"database": "polygon", "schema": "avalanche_c", "name": "avalanche_c__testnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/avalanche_c__testnet.sql", "original_file_path": "models/deploy/evm/avalanche_c__testnet.sql", "unique_id": "model.livequery_models.avalanche_c__testnet", "fqn": ["livequery_models", "deploy", "evm", "avalanche_c__testnet"], "alias": "testnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.2389112, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/avalanche_c__testnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'avalanche_c' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.ethereum__sepolia": {"database": "polygon", "schema": "ethereum", "name": "ethereum__sepolia", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/ethereum__sepolia.sql", "original_file_path": "models/deploy/evm/ethereum__sepolia.sql", "unique_id": "model.livequery_models.ethereum__sepolia", "fqn": ["livequery_models", "deploy", "evm", "ethereum__sepolia"], "alias": "sepolia", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.2475288, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/ethereum__sepolia.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'ethereum' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.harmony__mainnet": {"database": "polygon", "schema": "harmony", "name": "harmony__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/harmony__mainnet.sql", "original_file_path": "models/deploy/evm/harmony__mainnet.sql", "unique_id": "model.livequery_models.harmony__mainnet", "fqn": ["livequery_models", "deploy", "evm", "harmony__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.256134, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/harmony__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'harmony' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.avalanche_c__mainnet": {"database": "polygon", "schema": "avalanche_c", "name": "avalanche_c__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/avalanche_c__mainnet.sql", "original_file_path": "models/deploy/evm/avalanche_c__mainnet.sql", "unique_id": "model.livequery_models.avalanche_c__mainnet", "fqn": ["livequery_models", "deploy", "evm", "avalanche_c__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.2655048, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/avalanche_c__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'avalanche_c' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.optimism__goerli": {"database": "polygon", "schema": "optimism", "name": "optimism__goerli", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/optimism__goerli.sql", "original_file_path": "models/deploy/evm/optimism__goerli.sql", "unique_id": "model.livequery_models.optimism__goerli", "fqn": ["livequery_models", "deploy", "evm", "optimism__goerli"], "alias": "goerli", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.2739716, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/optimism__goerli.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'optimism' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.harmony__testnet": {"database": "polygon", "schema": "harmony", "name": "harmony__testnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/harmony__testnet.sql", "original_file_path": "models/deploy/evm/harmony__testnet.sql", "unique_id": "model.livequery_models.harmony__testnet", "fqn": ["livequery_models", "deploy", "evm", "harmony__testnet"], "alias": "testnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.2825294, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/harmony__testnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'harmony' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.optimism__mainnet": {"database": "polygon", "schema": "optimism", "name": "optimism__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/optimism__mainnet.sql", "original_file_path": "models/deploy/evm/optimism__mainnet.sql", "unique_id": "model.livequery_models.optimism__mainnet", "fqn": ["livequery_models", "deploy", "evm", "optimism__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.2923877, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/optimism__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'optimism' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.base__goerli": {"database": "polygon", "schema": "base", "name": "base__goerli", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/base__goerli.sql", "original_file_path": "models/deploy/evm/base__goerli.sql", "unique_id": "model.livequery_models.base__goerli", "fqn": ["livequery_models", "deploy", "evm", "base__goerli"], "alias": "goerli", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.3010612, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/base__goerli.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'base' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.polygon__mainnet": {"database": "polygon", "schema": "polygon", "name": "polygon__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/polygon__mainnet.sql", "original_file_path": "models/deploy/evm/polygon__mainnet.sql", "unique_id": "model.livequery_models.polygon__mainnet", "fqn": ["livequery_models", "deploy", "evm", "polygon__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.3098779, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/polygon__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'polygon' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.polygon__testnet": {"database": "polygon", "schema": "polygon", "name": "polygon__testnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/polygon__testnet.sql", "original_file_path": "models/deploy/evm/polygon__testnet.sql", "unique_id": "model.livequery_models.polygon__testnet", "fqn": ["livequery_models", "deploy", "evm", "polygon__testnet"], "alias": "testnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.3201678, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/polygon__testnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'polygon' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.arbitrum_nova__mainnet": {"database": "polygon", "schema": "arbitrum_nova", "name": "arbitrum_nova__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/arbitrum_nova__mainnet.sql", "original_file_path": "models/deploy/evm/arbitrum_nova__mainnet.sql", "unique_id": "model.livequery_models.arbitrum_nova__mainnet", "fqn": ["livequery_models", "deploy", "evm", "arbitrum_nova__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.3289733, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/arbitrum_nova__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'arbitrum_nova' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.base__mainnet": {"database": "polygon", "schema": "base", "name": "base__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/base__mainnet.sql", "original_file_path": "models/deploy/evm/base__mainnet.sql", "unique_id": "model.livequery_models.base__mainnet", "fqn": ["livequery_models", "deploy", "evm", "base__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.3378985, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/base__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'base' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.ethereum__goerli": {"database": "polygon", "schema": "ethereum", "name": "ethereum__goerli", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/ethereum__goerli.sql", "original_file_path": "models/deploy/evm/ethereum__goerli.sql", "unique_id": "model.livequery_models.ethereum__goerli", "fqn": ["livequery_models", "deploy", "evm", "ethereum__goerli"], "alias": "goerli", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.3480968, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/ethereum__goerli.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'ethereum' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.polygon_zkevm__mainnet": {"database": "polygon", "schema": "polygon_zkevm", "name": "polygon_zkevm__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/polygon_zkevm__mainnet.sql", "original_file_path": "models/deploy/evm/polygon_zkevm__mainnet.sql", "unique_id": "model.livequery_models.polygon_zkevm__mainnet", "fqn": ["livequery_models", "deploy", "evm", "polygon_zkevm__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.3568466, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/polygon_zkevm__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'polygon_zkevm' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.celo__mainnet": {"database": "polygon", "schema": "celo", "name": "celo__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/celo__mainnet.sql", "original_file_path": "models/deploy/evm/celo__mainnet.sql", "unique_id": "model.livequery_models.celo__mainnet", "fqn": ["livequery_models", "deploy", "evm", "celo__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.3657134, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/celo__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'celo' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.bsc__mainnet": {"database": "polygon", "schema": "bsc", "name": "bsc__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/bsc__mainnet.sql", "original_file_path": "models/deploy/evm/bsc__mainnet.sql", "unique_id": "model.livequery_models.bsc__mainnet", "fqn": ["livequery_models", "deploy", "evm", "bsc__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.3766196, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/bsc__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'bsc' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.arbitrum_one__mainnet": {"database": "polygon", "schema": "arbitrum_one", "name": "arbitrum_one__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/arbitrum_one__mainnet.sql", "original_file_path": "models/deploy/evm/arbitrum_one__mainnet.sql", "unique_id": "model.livequery_models.arbitrum_one__mainnet", "fqn": ["livequery_models", "deploy", "evm", "arbitrum_one__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.386307, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/arbitrum_one__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'arbitrum_one' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.arbitrum_one__goerli": {"database": "polygon", "schema": "arbitrum_one", "name": "arbitrum_one__goerli", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/arbitrum_one__goerli.sql", "original_file_path": "models/deploy/evm/arbitrum_one__goerli.sql", "unique_id": "model.livequery_models.arbitrum_one__goerli", "fqn": ["livequery_models", "deploy", "evm", "arbitrum_one__goerli"], "alias": "goerli", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.39559, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/arbitrum_one__goerli.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'arbitrum_one' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.polygon_zkevm__testnet": {"database": "polygon", "schema": "polygon_zkevm", "name": "polygon_zkevm__testnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/polygon_zkevm__testnet.sql", "original_file_path": "models/deploy/evm/polygon_zkevm__testnet.sql", "unique_id": "model.livequery_models.polygon_zkevm__testnet", "fqn": ["livequery_models", "deploy", "evm", "polygon_zkevm__testnet"], "alias": "testnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm"}, "created_at": 1764018295.4057407, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/polygon_zkevm__testnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n), __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___evm__contracts_map\n-- depends_on: __dbt__cte___evm__abi_map\n-- depends_on: __dbt__cte___evm__native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'polygon_zkevm' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}, {"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.transpose__": {"database": "polygon", "schema": "transpose", "name": "transpose__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/transpose/transpose__.sql", "original_file_path": "models/deploy/marketplace/transpose/transpose__.sql", "unique_id": "model.livequery_models.transpose__", "fqn": ["livequery_models", "deploy", "marketplace", "transpose", "transpose__"], "alias": "", "checksum": {"name": "sha256", "checksum": "8d2ddcca714778664a2a954d5e7fadca4ff62b56e8013fce0c48b06bb2e2298d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/transpose/transpose__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.5680845, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_transpose_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/transpose/transpose__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'transpose' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.credmark_utils__": {"database": "polygon", "schema": "credmark_utils", "name": "credmark_utils__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/credmark/credmark_utils__.sql", "original_file_path": "models/deploy/marketplace/credmark/credmark_utils__.sql", "unique_id": "model.livequery_models.credmark_utils__", "fqn": ["livequery_models", "deploy", "marketplace", "credmark", "credmark_utils__"], "alias": "", "checksum": {"name": "sha256", "checksum": "c62bd748a22e1fd79d1f6a3a0d41552de14eb226395e2af34a65562d50a76f64"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/credmark/credmark_utils__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.5833683, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_credmark_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/credmark/credmark_utils__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'credmark_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.opensea__": {"database": "polygon", "schema": "opensea", "name": "opensea__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/opensea/opensea__.sql", "original_file_path": "models/deploy/marketplace/opensea/opensea__.sql", "unique_id": "model.livequery_models.opensea__", "fqn": ["livequery_models", "deploy", "marketplace", "opensea", "opensea__"], "alias": "", "checksum": {"name": "sha256", "checksum": "0ea7806ecada9430a35a51a202c79a3632a56ba9b06b5bbca56473003fc14bba"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/opensea/opensea__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.5905783, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_opensea_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/opensea/opensea__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'opensea' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.stakingrewards__": {"database": "polygon", "schema": "stakingrewards", "name": "stakingrewards__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/stakingrewards/stakingrewards__.sql", "original_file_path": "models/deploy/marketplace/stakingrewards/stakingrewards__.sql", "unique_id": "model.livequery_models.stakingrewards__", "fqn": ["livequery_models", "deploy", "marketplace", "stakingrewards", "stakingrewards__"], "alias": "", "checksum": {"name": "sha256", "checksum": "b106fc542269f4bca677dd36a22951b8cf79a5bfc8cf6c8fc6a63645c963a929"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"query": {"name": "query", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/stakingrewards/stakingrewards__ .yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.599957, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_stakingrewards_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/stakingrewards/stakingrewards__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'stakingrewards' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.subquery__": {"database": "polygon", "schema": "subquery", "name": "subquery__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/subquery/subquery__.sql", "original_file_path": "models/deploy/marketplace/subquery/subquery__.sql", "unique_id": "model.livequery_models.subquery__", "fqn": ["livequery_models", "deploy", "marketplace", "subquery", "subquery__"], "alias": "", "checksum": {"name": "sha256", "checksum": "41725d4e8e1a831be3ff17e4ce5f2bc8f80679f436e25b362be2ee01282f5dbf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"graphql": {"name": "graphql", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/subquery/subquery__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.6071146, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_subquery_udfs\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/subquery/subquery__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'subquery' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.topshot__": {"database": "polygon", "schema": "topshot", "name": "topshot__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/topshot/topshot__.sql", "original_file_path": "models/deploy/marketplace/topshot/topshot__.sql", "unique_id": "model.livequery_models.topshot__", "fqn": ["livequery_models", "deploy", "marketplace", "topshot", "topshot__"], "alias": "", "checksum": {"name": "sha256", "checksum": "114366c4e0f69de805b68085852b826d594dfae80b2dc66a4f95d2dd1dd63cc2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"graphql": {"name": "graphql", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/topshot/topshot__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.6140926, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_topshot_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/topshot/topshot__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'topshot' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.allday__": {"database": "polygon", "schema": "allday", "name": "allday__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/allday/allday__.sql", "original_file_path": "models/deploy/marketplace/allday/allday__.sql", "unique_id": "model.livequery_models.allday__", "fqn": ["livequery_models", "deploy", "marketplace", "allday", "allday__"], "alias": "", "checksum": {"name": "sha256", "checksum": "aeba24365cef1ac3a11bd50bd89eecc3df0aee8b5f2e29a57a67ca3fb6bc9861"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"graphql": {"name": "graphql", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/allday/allday__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.620737, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_allday_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/allday/allday__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'allday' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.coingecko__": {"database": "polygon", "schema": "coingecko", "name": "coingecko__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/coingecko/coingecko__.sql", "original_file_path": "models/deploy/marketplace/coingecko/coingecko__.sql", "unique_id": "model.livequery_models.coingecko__", "fqn": ["livequery_models", "deploy", "marketplace", "coingecko", "coingecko__"], "alias": "", "checksum": {"name": "sha256", "checksum": "a0daf27e44aed8a6507b087f7b1274784d628e4edf2fae68148de64ac46f2b90"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/coingecko/coingecko__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.627874, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_coingecko_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/coingecko/coingecko__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'coingecko' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.slack_utils__slack_utils": {"database": "polygon", "schema": "slack_utils", "name": "slack_utils__slack_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/slack/slack_utils__slack_utils.sql", "original_file_path": "models/deploy/marketplace/slack/slack_utils__slack_utils.sql", "unique_id": "model.livequery_models.slack_utils__slack_utils", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "slack_utils__slack_utils"], "alias": "slack_utils", "checksum": {"name": "sha256", "checksum": "27596ed3951733ffc8b137e97865fed576db391b0c9adac47fcba6c9b937587f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"post_webhook": {"name": "post_webhook", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_message": {"name": "post_message", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_reply": {"name": "post_reply", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "validate_webhook_url": {"name": "validate_webhook_url", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "validate_channel": {"name": "validate_channel", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/slack/slack_utils__slack_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.6831527, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_slack_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack_utils__slack_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.slack__": {"database": "polygon", "schema": "slack", "name": "slack__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/slack/slack__.sql", "original_file_path": "models/deploy/marketplace/slack/slack__.sql", "unique_id": "model.livequery_models.slack__", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "slack__"], "alias": "", "checksum": {"name": "sha256", "checksum": "1582076c9efdf776378f8bb391f19a624a641d10b215697f24f5d9d56d55ae9b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"webhook_send": {"name": "webhook_send", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_message": {"name": "post_message", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_reply": {"name": "post_reply", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/slack/slack__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.636192, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('slack_utils__slack_utils') }}\n{%- set configs = [\n config_slack_messaging_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}, {"name": "slack_utils__slack_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live", "model.livequery_models.slack_utils__slack_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n) -- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__slack_utils__slack_utils\nSELECT 'slack' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.dapplooker__": {"database": "polygon", "schema": "dapplooker", "name": "dapplooker__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/dapplooker/dapplooker__.sql", "original_file_path": "models/deploy/marketplace/dapplooker/dapplooker__.sql", "unique_id": "model.livequery_models.dapplooker__", "fqn": ["livequery_models", "deploy", "marketplace", "dapplooker", "dapplooker__"], "alias": "", "checksum": {"name": "sha256", "checksum": "06c50a1b30747bf59e1de42dd9b078f327f3dc5d5b595ec3a4838e0d8de8869e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get_chart": {"name": "get_chart", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/dapplooker/dapplooker__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.7681303, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_dapplooker_udfs\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/dapplooker/dapplooker__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'dapplooker' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.claude_utils__claude_utils": {"database": "polygon", "schema": "claude_utils", "name": "claude_utils__claude_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/claude/claude_utils__claude_utils.sql", "original_file_path": "models/deploy/marketplace/claude/claude_utils__claude_utils.sql", "unique_id": "model.livequery_models.claude_utils__claude_utils", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "claude_utils__claude_utils"], "alias": "claude_utils", "checksum": {"name": "sha256", "checksum": "3e5bc617d2624d81b1a35005e8a6ae350ffb42f3d5ba03cc227622d68fa0b9bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"post_api": {"name": "post_api", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/claude/claude_utils__claude_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.853673, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_claude_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude_utils__claude_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.claude__": {"database": "polygon", "schema": "claude", "name": "claude__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/claude/claude__.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.sql", "unique_id": "model.livequery_models.claude__", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "claude__"], "alias": "", "checksum": {"name": "sha256", "checksum": "c91a67a20eba2a45986c2c0e5b74209efd9c446c21b8b1e7ebb7a7c1c155109b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"post_messages": {"name": "post_messages", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "count_message_tokens": {"name": "count_message_tokens", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "list_models": {"name": "list_models", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_model": {"name": "get_model", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_messages_batch": {"name": "post_messages_batch", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "list_message_batches": {"name": "list_message_batches", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "list_message_batches_with_before": {"name": "list_message_batches_with_before", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "list_message_batches_with_after": {"name": "list_message_batches_with_after", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_message_batch": {"name": "get_message_batch", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_message_batch_results": {"name": "get_message_batch_results", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/claude/claude__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.7789109, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('claude_utils__claude_utils') }}\n{%- set configs = [\n config_claude_messages_udfs,\n config_claude_models_udfs,\n config_claude_messages_batch_udfs\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}, {"name": "claude_utils__claude_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live", "model.livequery_models.claude_utils__claude_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n) -- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__claude_utils__claude_utils\nSELECT 'claude' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude_utils__claude_utils", "sql": " __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.strangelove__": {"database": "polygon", "schema": "strangelove", "name": "strangelove__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/strangelove/strangelove__.sql", "original_file_path": "models/deploy/marketplace/strangelove/strangelove__.sql", "unique_id": "model.livequery_models.strangelove__", "fqn": ["livequery_models", "deploy", "marketplace", "strangelove", "strangelove__"], "alias": "", "checksum": {"name": "sha256", "checksum": "bad70832540e2461bccfa1c03d382b89b0e187b55dfbcaa2aa8bf5abe76b3ec5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/strangelove/strangelove__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.860835, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_strangelove_udfs\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/strangelove/strangelove__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'strangelove' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.fred__": {"database": "polygon", "schema": "fred", "name": "fred__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/fred/fred__.sql", "original_file_path": "models/deploy/marketplace/fred/fred__.sql", "unique_id": "model.livequery_models.fred__", "fqn": ["livequery_models", "deploy", "marketplace", "fred", "fred__"], "alias": "", "checksum": {"name": "sha256", "checksum": "44274edd9fa472dbf09b042e45ed0dec8584a34b34f49150076d23588bbb461c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get_series": {"name": "get_series", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/fred/fred__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.8688343, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_fred_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/fred/fred__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'fred' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.espn__": {"database": "polygon", "schema": "espn", "name": "espn__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/espn/espn__.sql", "original_file_path": "models/deploy/marketplace/espn/espn__.sql", "unique_id": "model.livequery_models.espn__", "fqn": ["livequery_models", "deploy", "marketplace", "espn", "espn__"], "alias": "", "checksum": {"name": "sha256", "checksum": "87f5a3b7083b803d50ac3cf614a6b734aff4cd08c776829ba2c3d93706ed130c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/espn/espn__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.8758137, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_espn_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/espn/espn__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'espn' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.solscan__": {"database": "polygon", "schema": "solscan", "name": "solscan__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/solscan/solscan__.sql", "original_file_path": "models/deploy/marketplace/solscan/solscan__.sql", "unique_id": "model.livequery_models.solscan__", "fqn": ["livequery_models", "deploy", "marketplace", "solscan", "solscan__"], "alias": "", "checksum": {"name": "sha256", "checksum": "c65ffbc4dae2ec4fd19fb9863658f818db84f430a371dda7baf0a28636f4c603"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"public_api_get": {"name": "public_api_get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/solscan/solscan__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.8831599, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_solscan_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/solscan/solscan__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'solscan' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.dappradar__": {"database": "polygon", "schema": "dappradar", "name": "dappradar__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/dappradar/dappradar__.sql", "original_file_path": "models/deploy/marketplace/dappradar/dappradar__.sql", "unique_id": "model.livequery_models.dappradar__", "fqn": ["livequery_models", "deploy", "marketplace", "dappradar", "dappradar__"], "alias": "", "checksum": {"name": "sha256", "checksum": "55abd3e81a034c665926ed47361d4d248da944b9adc4a57c1a19baa11a38af57"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/dappradar/dappradar__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.8898847, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_dappradar_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/dappradar/dappradar__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'dappradar' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.covalent__": {"database": "polygon", "schema": "covalent", "name": "covalent__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/covalent/covalent__.sql", "original_file_path": "models/deploy/marketplace/covalent/covalent__.sql", "unique_id": "model.livequery_models.covalent__", "fqn": ["livequery_models", "deploy", "marketplace", "covalent", "covalent__"], "alias": "", "checksum": {"name": "sha256", "checksum": "eb21a1d1de2f5a44abdba0379a7c265092caa8ae68a040b178b1f8a66ef0dbaa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/covalent/covalent__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.8968215, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_covalent_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/covalent/covalent__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'covalent' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.deepnftvalue__": {"database": "polygon", "schema": "deepnftvalue", "name": "deepnftvalue__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/deepnftvalue/deepnftvalue__.sql", "original_file_path": "models/deploy/marketplace/deepnftvalue/deepnftvalue__.sql", "unique_id": "model.livequery_models.deepnftvalue__", "fqn": ["livequery_models", "deploy", "marketplace", "deepnftvalue", "deepnftvalue__"], "alias": "", "checksum": {"name": "sha256", "checksum": "a71c5173a5afd11110e3e118e2e6bd5ade443d94407151e03397de3f6789c5f3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/deepnftvalue/deepnftvalue__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.9038882, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_deepnftvalue_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/deepnftvalue/deepnftvalue__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'deepnftvalue' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.github_utils__github_utils": {"database": "polygon", "schema": "github_utils", "name": "github_utils__github_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/github/github_utils__github_utils.sql", "original_file_path": "models/deploy/marketplace/github/github_utils__github_utils.sql", "unique_id": "model.livequery_models.github_utils__github_utils", "fqn": ["livequery_models", "deploy", "marketplace", "github", "github_utils__github_utils"], "alias": "github_utils", "checksum": {"name": "sha256", "checksum": "73bfd31747254bf79ad2ca91c0d363c8c8f3ba518cf7828835b5a588cd69da6a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"octocat": {"name": "octocat", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headers": {"name": "headers", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_api": {"name": "post_api", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "put_api": {"name": "put_api", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/github/github_utils__github_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.9121108, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_github_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_utils__github_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.github_actions__github_utils": {"database": "polygon", "schema": "github_actions", "name": "github_actions__github_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/github/github_actions__github_utils.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.sql", "unique_id": "model.livequery_models.github_actions__github_utils", "fqn": ["livequery_models", "deploy", "marketplace", "github", "github_actions__github_utils"], "alias": "github_utils", "checksum": {"name": "sha256", "checksum": "708556920b602f295cd781689c359542552043117fa4dfe3164137e7e72d6a1c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"workflows": {"name": "workflows", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "runs": {"name": "runs", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workflow_runs": {"name": "workflow_runs", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workflow_dispatches": {"name": "workflow_dispatches", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workflow_enable": {"name": "workflow_enable", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workflow_disable": {"name": "workflow_disable", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workflow_run_logs": {"name": "workflow_run_logs", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_logs": {"name": "job_logs", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workflow_run_jobs": {"name": "workflow_run_jobs", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tf_workflows": {"name": "tf_workflows", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tf_runs": {"name": "tf_runs", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tf_workflow_runs": {"name": "tf_workflow_runs", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tf_workflow_run_jobs": {"name": "tf_workflow_run_jobs", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tf_failed_jobs_with_logs": {"name": "tf_failed_jobs_with_logs", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tf_failure_analysis_with_ai": {"name": "tf_failure_analysis_with_ai", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/github/github_actions__github_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018435.9391863, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('github_utils__github_utils') }}\n{%- set configs = [\n config_github_actions_udfs,\n config_github_actions_udtfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}, {"name": "github_utils__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live", "model.livequery_models.github_utils__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n) -- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.nftscan__": {"database": "polygon", "schema": "nftscan", "name": "nftscan__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/nftscan/nftscan__.sql", "original_file_path": "models/deploy/marketplace/nftscan/nftscan__.sql", "unique_id": "model.livequery_models.nftscan__", "fqn": ["livequery_models", "deploy", "marketplace", "nftscan", "nftscan__"], "alias": "", "checksum": {"name": "sha256", "checksum": "00b1f0a5c932642d40b70efec0522b85821fb640a2928f67258fa415902bb9fa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/nftscan/nftscan__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.0726101, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_nftscan_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/nftscan/nftscan__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'nftscan' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.chainbase_utils__": {"database": "polygon", "schema": "chainbase_utils", "name": "chainbase_utils__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/chainbase/chainbase_utils__.sql", "original_file_path": "models/deploy/marketplace/chainbase/chainbase_utils__.sql", "unique_id": "model.livequery_models.chainbase_utils__", "fqn": ["livequery_models", "deploy", "marketplace", "chainbase", "chainbase_utils__"], "alias": "", "checksum": {"name": "sha256", "checksum": "3acb77e875379304467b7de0996fdf7a1d519f6696cad8ab87754da38fe8e7fc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/chainbase/chainbase_utils__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.079505, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_chainbase_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/chainbase/chainbase_utils__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'chainbase_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.snapshot__": {"database": "polygon", "schema": "snapshot", "name": "snapshot__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/snapshot/snapshot__.sql", "original_file_path": "models/deploy/marketplace/snapshot/snapshot__.sql", "unique_id": "model.livequery_models.snapshot__", "fqn": ["livequery_models", "deploy", "marketplace", "snapshot", "snapshot__"], "alias": "", "checksum": {"name": "sha256", "checksum": "cabcd83e37dfb9424dd9a69490d63d1204dca1ef383d300ecad295ffaed3f6ac"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"query": {"name": "query", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/snapshot/snapshot__ .yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.086715, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_snapshot_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/snapshot/snapshot__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'snapshot' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.reservoir__": {"database": "polygon", "schema": "reservoir", "name": "reservoir__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/reservoir/reservoir__.sql", "original_file_path": "models/deploy/marketplace/reservoir/reservoir__.sql", "unique_id": "model.livequery_models.reservoir__", "fqn": ["livequery_models", "deploy", "marketplace", "reservoir", "reservoir__"], "alias": "", "checksum": {"name": "sha256", "checksum": "6ccab30c4dc7b31ce65d169622b5fe6014875eb662a2f1e229c204348df72aac"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/reservoir/reservoir__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.0938158, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_reservoir_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/reservoir/reservoir__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'reservoir' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.defillama__": {"database": "polygon", "schema": "defillama", "name": "defillama__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/defillama/defillama__.sql", "original_file_path": "models/deploy/marketplace/defillama/defillama__.sql", "unique_id": "model.livequery_models.defillama__", "fqn": ["livequery_models", "deploy", "marketplace", "defillama", "defillama__"], "alias": "", "checksum": {"name": "sha256", "checksum": "09036911befd5c87aa63e7467568c629ab1cc182664c632cf92b8fc60919f485"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/defillama/defillama__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.1010644, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_defillama_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/defillama/defillama__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'defillama' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.bitquery__": {"database": "polygon", "schema": "bitquery", "name": "bitquery__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/bitquery/bitquery__.sql", "original_file_path": "models/deploy/marketplace/bitquery/bitquery__.sql", "unique_id": "model.livequery_models.bitquery__", "fqn": ["livequery_models", "deploy", "marketplace", "bitquery", "bitquery__"], "alias": "", "checksum": {"name": "sha256", "checksum": "c41507cb784eab92dd6f9e91932240038ec5d054378a41b7af05b350294e3709"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"graphql": {"name": "graphql", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/bitquery/bitquery__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.1081698, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_bitquery_udfs\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/bitquery/bitquery__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'bitquery' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.helius_apis__helius_utils": {"database": "polygon", "schema": "helius_apis", "name": "helius_apis__helius_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/helius/helius_apis__helius_utils.sql", "original_file_path": "models/deploy/marketplace/helius/helius_apis__helius_utils.sql", "unique_id": "model.livequery_models.helius_apis__helius_utils", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "helius_apis__helius_utils"], "alias": "helius_utils", "checksum": {"name": "sha256", "checksum": "c2d9fec018a695c9fdb69fc0166d07df725eadaf4c6e1b1d52f8a1161cb3e09b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"token_metadata": {"name": "token_metadata", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "balances": {"name": "balances", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parse_transactions": {"name": "parse_transactions", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/helius/helius_apis__helius_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.1161876, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_helius_apis_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('helius_utils__helius_utils') }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}, {"name": "helius_utils__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live", "model.livequery_models.helius_utils__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_apis__helius_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'helius_apis' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.helius_utils__helius_utils": {"database": "polygon", "schema": "helius_utils", "name": "helius_utils__helius_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/helius/helius_utils__helius_utils.sql", "original_file_path": "models/deploy/marketplace/helius/helius_utils__helius_utils.sql", "unique_id": "model.livequery_models.helius_utils__helius_utils", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "helius_utils__helius_utils"], "alias": "helius_utils", "checksum": {"name": "sha256", "checksum": "87bb2d3485bba61ea826583fa5a5773732b5cd9ca498be8b66e7d514f31f2b76"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018295.654089, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_helius_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_utils__helius_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.helius_das__helius_utils": {"database": "polygon", "schema": "helius_das", "name": "helius_das__helius_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/helius/helius_das__helius_utils.sql", "original_file_path": "models/deploy/marketplace/helius/helius_das__helius_utils.sql", "unique_id": "model.livequery_models.helius_das__helius_utils", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "helius_das__helius_utils"], "alias": "helius_utils", "checksum": {"name": "sha256", "checksum": "28fa6015380d003e7edb1366c57119215d7fcecec9f00f660eef2b6011e94e7c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get_asset": {"name": "get_asset", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_signatures_for_asset": {"name": "get_signatures_for_asset", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_assets": {"name": "search_assets", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_asset_proof": {"name": "get_asset_proof", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_assets_by_owner": {"name": "get_assets_by_owner", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_assets_by_authority": {"name": "get_assets_by_authority", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_assets_by_creator": {"name": "get_assets_by_creator", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_assets_by_group": {"name": "get_assets_by_group", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/helius/helius_das__helius_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.1390615, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_helius_das_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('helius_utils__helius_utils') }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}, {"name": "helius_utils__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live", "model.livequery_models.helius_utils__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_das__helius_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.playgrounds__": {"database": "polygon", "schema": "playgrounds", "name": "playgrounds__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/playgrounds/playgrounds__.sql", "original_file_path": "models/deploy/marketplace/playgrounds/playgrounds__.sql", "unique_id": "model.livequery_models.playgrounds__", "fqn": ["livequery_models", "deploy", "marketplace", "playgrounds", "playgrounds__"], "alias": "", "checksum": {"name": "sha256", "checksum": "dcf2d8aba472812a413cd5630fb4e0ee4a84567370c1060b970a22c70fafda5c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"query_subgraph": {"name": "query_subgraph", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/playgrounds/playgrounds__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.1908808, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_playgrounds_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/playgrounds/playgrounds__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'playgrounds' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.zettablock__": {"database": "polygon", "schema": "zettablock", "name": "zettablock__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/zettablock/zettablock__.sql", "original_file_path": "models/deploy/marketplace/zettablock/zettablock__.sql", "unique_id": "model.livequery_models.zettablock__", "fqn": ["livequery_models", "deploy", "marketplace", "zettablock", "zettablock__"], "alias": "", "checksum": {"name": "sha256", "checksum": "1fcd113d09cfbd2ec5691bbcd8b9f392e45080f7f92e45df76bf2c3f7ce0f5c5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018295.6782813, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_zettablock_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/zettablock/zettablock__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'zettablock' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.quicknode_polygon_tokens__quicknode_utils": {"database": "polygon", "schema": "quicknode_polygon_tokens", "name": "quicknode_polygon_tokens__quicknode_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.sql", "unique_id": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "quicknode_polygon_tokens__quicknode_utils"], "alias": "quicknode_utils", "checksum": {"name": "sha256", "checksum": "6eede1c8f6dd8dea7e02d996adf1f0e1d8985f42480ab38af9708ee181d5eaac"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get_token_metadata_by_contract_address": {"name": "get_token_metadata_by_contract_address", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_token_metadata_by_symbol": {"name": "get_token_metadata_by_symbol", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_transactions_by_address": {"name": "get_transactions_by_address", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_wallet_token_balance": {"name": "get_wallet_token_balance", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_wallet_token_transactions": {"name": "get_wallet_token_transactions", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.2206879, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_quicknode_polygon_tokens_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('quicknode_utils__quicknode_utils') }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}, {"name": "quicknode_utils__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils": {"database": "polygon", "schema": "quicknode_ethereum_nfts", "name": "quicknode_ethereum_nfts__quicknode_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.sql", "unique_id": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "quicknode_ethereum_nfts__quicknode_utils"], "alias": "quicknode_utils", "checksum": {"name": "sha256", "checksum": "01a0dba1033fe3cb3334fb37d12177d3ada4e9bafa4596bd1c2382df8ddd6aa6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"fetch_nft_collection_details": {"name": "fetch_nft_collection_details", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fetch_nfts": {"name": "fetch_nfts", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fetch_nfts_by_collection": {"name": "fetch_nfts_by_collection", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_transfers_by_nft": {"name": "get_transfers_by_nft", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "verify_nfts_owner": {"name": "verify_nfts_owner", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.2544756, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_quicknode_ethereum_nfts_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('quicknode_utils__quicknode_utils') }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}, {"name": "quicknode_utils__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.quicknode_utils__quicknode_utils": {"database": "polygon", "schema": "quicknode_utils", "name": "quicknode_utils__quicknode_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/quicknode/quicknode_utils__quicknode_utils.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_utils__quicknode_utils.sql", "unique_id": "model.livequery_models.quicknode_utils__quicknode_utils", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "quicknode_utils__quicknode_utils"], "alias": "quicknode_utils", "checksum": {"name": "sha256", "checksum": "19648edc7f037d57db6423d1103148840109bb643b983410a69cc4ee15bf4185"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018295.7020173, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_quicknode_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_utils__quicknode_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.quicknode_solana_nfts__quicknode_utils": {"database": "polygon", "schema": "quicknode_solana_nfts", "name": "quicknode_solana_nfts__quicknode_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/quicknode/quicknode_solana_nfts__quicknode_utils.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_solana_nfts__quicknode_utils.sql", "unique_id": "model.livequery_models.quicknode_solana_nfts__quicknode_utils", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "quicknode_solana_nfts__quicknode_utils"], "alias": "quicknode_utils", "checksum": {"name": "sha256", "checksum": "321974e17cbe3269d6e2228a11da818de60d89f6114be913ef229dc0a5342ecc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"fetch_nfts": {"name": "fetch_nfts", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fetch_nfts_by_creator": {"name": "fetch_nfts_by_creator", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/quicknode/quicknode_solana_nfts__quicknode_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.205164, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_quicknode_solana_nfts_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('quicknode_utils__quicknode_utils') }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}, {"name": "quicknode_utils__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_solana_nfts__quicknode_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'quicknode_solana_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils": {"database": "polygon", "schema": "quicknode_ethereum_tokens", "name": "quicknode_ethereum_tokens__quicknode_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.sql", "unique_id": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "quicknode_ethereum_tokens__quicknode_utils"], "alias": "quicknode_utils", "checksum": {"name": "sha256", "checksum": "63a3801533cd007c9e82ad7e4a566d5708f196ae7c5262d341bfc0b7cba8678b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get_token_metadata_by_contract_address": {"name": "get_token_metadata_by_contract_address", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_token_metadata_by_symbol": {"name": "get_token_metadata_by_symbol", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_transactions_by_address": {"name": "get_transactions_by_address", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_wallet_token_balance": {"name": "get_wallet_token_balance", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_wallet_token_transactions": {"name": "get_wallet_token_transactions", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.3185964, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_quicknode_ethereum_tokens_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('quicknode_utils__quicknode_utils') }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}, {"name": "quicknode_utils__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.quicknode_polygon_nfts__quicknode_utils": {"database": "polygon", "schema": "quicknode_polygon_nfts", "name": "quicknode_polygon_nfts__quicknode_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.sql", "unique_id": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "quicknode_polygon_nfts__quicknode_utils"], "alias": "quicknode_utils", "checksum": {"name": "sha256", "checksum": "8fa2d0247ac0c24d068b4acad95177a66924ace12e33177403b37767e64273aa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"fetch_nft_collection_details": {"name": "fetch_nft_collection_details", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fetch_nfts": {"name": "fetch_nfts", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fetch_nfts_by_collection": {"name": "fetch_nfts_by_collection", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_transfers_by_nft": {"name": "get_transfers_by_nft", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "verify_nfts_owner": {"name": "verify_nfts_owner", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.287906, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_quicknode_polygon_nfts_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('quicknode_utils__quicknode_utils') }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}, {"name": "quicknode_utils__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.footprint_utils__footprint_utils": {"database": "polygon", "schema": "footprint_utils", "name": "footprint_utils__footprint_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/footprint/footprint_utils__footprint_utils.sql", "original_file_path": "models/deploy/marketplace/footprint/footprint_utils__footprint_utils.sql", "unique_id": "model.livequery_models.footprint_utils__footprint_utils", "fqn": ["livequery_models", "deploy", "marketplace", "footprint", "footprint_utils__footprint_utils"], "alias": "footprint_utils", "checksum": {"name": "sha256", "checksum": "7b014ae6db72a2e0f20070bf29c433cb90b4d265f7342d52e2cea483ff06787f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/footprint/footprint_utils__footprint_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.348458, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_footprint_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/footprint/footprint_utils__footprint_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'footprint_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.cmc__": {"database": "polygon", "schema": "cmc", "name": "cmc__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/cmc/cmc__.sql", "original_file_path": "models/deploy/marketplace/cmc/cmc__.sql", "unique_id": "model.livequery_models.cmc__", "fqn": ["livequery_models", "deploy", "marketplace", "cmc", "cmc__"], "alias": "", "checksum": {"name": "sha256", "checksum": "c26c75aa21e109f25bcba7e695b7cef34df142384b567fce95de8b2374b33887"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/cmc/cmc__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.355468, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_cmc_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/cmc/cmc__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'cmc' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.apilayer__": {"database": "polygon", "schema": "apilayer", "name": "apilayer__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/apilayer/apilayer__.sql", "original_file_path": "models/deploy/marketplace/apilayer/apilayer__.sql", "unique_id": "model.livequery_models.apilayer__", "fqn": ["livequery_models", "deploy", "marketplace", "apilayer", "apilayer__"], "alias": "", "checksum": {"name": "sha256", "checksum": "3bed74d4a9a1ec55eadec250ffcecb484876c79cf42be448591ceee377714c81"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/apilayer/apilayer__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.3626378, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_apilayer_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/apilayer/apilayer__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'apilayer' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.zapper__": {"database": "polygon", "schema": "zapper", "name": "zapper__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/zapper/zapper__.sql", "original_file_path": "models/deploy/marketplace/zapper/zapper__.sql", "unique_id": "model.livequery_models.zapper__", "fqn": ["livequery_models", "deploy", "marketplace", "zapper", "zapper__"], "alias": "", "checksum": {"name": "sha256", "checksum": "74bdb58da84c5f7c07f56e4c29050414c05178b2c660b73aea40525db985e7f8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018295.7574432, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_zapper_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/zapper/zapper__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'zapper' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.alchemy_tokens__alchemy_utils": {"database": "polygon", "schema": "alchemy_tokens", "name": "alchemy_tokens__alchemy_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.sql", "unique_id": "model.livequery_models.alchemy_tokens__alchemy_utils", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "alchemy_tokens__alchemy_utils"], "alias": "alchemy_utils", "checksum": {"name": "sha256", "checksum": "cab9901d2c7c28454ef9180250f6d2b1e5a70a131308dc9f914f00d9bafbc6b6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get_token_allowance": {"name": "get_token_allowance", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_token_balances": {"name": "get_token_balances", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_token_metadata": {"name": "get_token_metadata", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.3705823, "relation_name": null, "raw_code": "{%- set configs = [\n config_alchemy_tokens_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('alchemy_utils__alchemy_utils') }}\n-- depends_on: {{ ref('live') }}", "language": "sql", "refs": [{"name": "alchemy_utils__alchemy_utils", "package": null, "version": null}, {"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.alchemy_utils__alchemy_utils", "model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.sql", "compiled": true, "compiled_code": "\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n) SELECT 'alchemy_tokens' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.alchemy_transfers__alchemy_utils": {"database": "polygon", "schema": "alchemy_transfers", "name": "alchemy_transfers__alchemy_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/alchemy/alchemy_transfers__alchemy_utils.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_transfers__alchemy_utils.sql", "unique_id": "model.livequery_models.alchemy_transfers__alchemy_utils", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "alchemy_transfers__alchemy_utils"], "alias": "alchemy_utils", "checksum": {"name": "sha256", "checksum": "8cb330829c8dad88d151aa4a3834fd52f46021b69279a40be4090eed22644958"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get_asset_transfers": {"name": "get_asset_transfers", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/alchemy/alchemy_transfers__alchemy_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.530594, "relation_name": null, "raw_code": "{%- set configs = [\n config_alchemy_transfers_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('alchemy_utils__alchemy_utils') }}\n-- depends_on: {{ ref('live') }}", "language": "sql", "refs": [{"name": "alchemy_utils__alchemy_utils", "package": null, "version": null}, {"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.alchemy_utils__alchemy_utils", "model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_transfers__alchemy_utils.sql", "compiled": true, "compiled_code": "\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n) SELECT 'alchemy_transfers' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.alchemy_nfts__alchemy_utils": {"database": "polygon", "schema": "alchemy_nfts", "name": "alchemy_nfts__alchemy_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.sql", "unique_id": "model.livequery_models.alchemy_nfts__alchemy_utils", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "alchemy_nfts__alchemy_utils"], "alias": "alchemy_utils", "checksum": {"name": "sha256", "checksum": "d63ca11ed49d0af13d860d1f3189b8688027877baf40376a9583a5172882cb11"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get_nfts": {"name": "get_nfts", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_owners_for_token": {"name": "get_owners_for_token", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_owners_for_collection": {"name": "get_owners_for_collection", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_holder_of_collection": {"name": "is_holder_of_collection", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_contracts_for_owner": {"name": "get_contracts_for_owner", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_nft_metadata": {"name": "get_nft_metadata", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_nft_metadata_batch": {"name": "get_nft_metadata_batch", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_contract_metadata": {"name": "get_contract_metadata", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_contract_metadata_batch": {"name": "get_contract_metadata_batch", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "invalidate_contract": {"name": "invalidate_contract", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reingest_contract": {"name": "reingest_contract", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_contract_metadata": {"name": "search_contract_metadata", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_nfts_for_collection": {"name": "get_nfts_for_collection", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_spam_contracts": {"name": "get_spam_contracts", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_spam_contract": {"name": "is_spam_contract", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_airdrop": {"name": "is_airdrop", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "report_spam": {"name": "report_spam", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_floor_price": {"name": "get_floor_price", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_nft_sales": {"name": "get_nft_sales", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compute_rarity": {"name": "compute_rarity", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summarize_nft_attributes": {"name": "summarize_nft_attributes", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.3989704, "relation_name": null, "raw_code": "{%- set configs = [\n config_alchemy_nfts_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('alchemy_utils__alchemy_utils') }}\n-- depends_on: {{ ref('live') }}", "language": "sql", "refs": [{"name": "alchemy_utils__alchemy_utils", "package": null, "version": null}, {"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.alchemy_utils__alchemy_utils", "model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.sql", "compiled": true, "compiled_code": "\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n) SELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.alchemy_utils__alchemy_utils": {"database": "polygon", "schema": "alchemy_utils", "name": "alchemy_utils__alchemy_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/alchemy/alchemy_utils__alchemy_utils.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_utils__alchemy_utils.sql", "unique_id": "model.livequery_models.alchemy_utils__alchemy_utils", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "alchemy_utils__alchemy_utils"], "alias": "alchemy_utils", "checksum": {"name": "sha256", "checksum": "f1262dc20957c1f57345d120d5fa804f99a3bbf73fdffb6bac4d1eb830ba841c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018295.8875225, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_alchemy_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_utils__alchemy_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.blockpour_utils__": {"database": "polygon", "schema": "blockpour_utils", "name": "blockpour_utils__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/blockpour/blockpour_utils__.sql", "original_file_path": "models/deploy/marketplace/blockpour/blockpour_utils__.sql", "unique_id": "model.livequery_models.blockpour_utils__", "fqn": ["livequery_models", "deploy", "marketplace", "blockpour", "blockpour_utils__"], "alias": "", "checksum": {"name": "sha256", "checksum": "b42854ed08d11ee40b146d93bafb5961ed3474bf0bd335a0b38a6a30822f4a4b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post": {"name": "post", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/blockpour/blockpour_utils__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace"}, "created_at": 1764018436.538126, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_blockpour_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/blockpour/blockpour_utils__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'blockpour_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.live": {"database": "polygon", "schema": "live", "name": "live", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/core/live.sql", "original_file_path": "models/deploy/core/live.sql", "unique_id": "model.livequery_models.live", "fqn": ["livequery_models", "deploy", "core", "live"], "alias": "", "checksum": {"name": "sha256", "checksum": "71b371765e23aa22b9961eeaeb7657413cc7f6d5995b811f85a5c110ae1d4d00"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {"udf_api_batched": {"name": "udf_api_batched", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "udf_api": {"name": "udf_api", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "udf_api_v2": {"name": "udf_api_v2", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/core/live.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral"}, "created_at": 1764018436.5536823, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_utils') }}\n-- depends_on: {{ ref('utils') }}\n-- depends_on: {{ ref('_live') }}\n{% set config = config_core_live %}\n{{ ephemeral_deploy_core(config) }}", "language": "sql", "refs": [{"name": "_utils", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}, {"name": "_live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_core"], "nodes": ["model.livequery_models._utils", "model.livequery_models.utils", "model.livequery_models._live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n) -- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models._utils": {"database": "polygon", "schema": "_utils", "name": "_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/core/_utils.sql", "original_file_path": "models/deploy/core/_utils.sql", "unique_id": "model.livequery_models._utils", "fqn": ["livequery_models", "deploy", "core", "_utils"], "alias": "", "checksum": {"name": "sha256", "checksum": "3d202cb82095728dae3b02cdca6d2c5f9521ecf50b687a50739f44b5ee828015"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {"udf_introspect": {"name": "udf_introspect", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/core/_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral"}, "created_at": 1764018436.8035588, "relation_name": null, "raw_code": "{% set config = config_core__utils %}\n{{ ephemeral_deploy_core(config) }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_core"], "nodes": []}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/_utils.sql", "compiled": true, "compiled_code": "\n\n\n SELECT '_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.secrets": {"database": "polygon", "schema": "secrets", "name": "secrets", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/core/secrets.sql", "original_file_path": "models/deploy/core/secrets.sql", "unique_id": "model.livequery_models.secrets", "fqn": ["livequery_models", "deploy", "core", "secrets"], "alias": "", "checksum": {"name": "sha256", "checksum": "ec1f117cc419f648463c64fca28b91e20fff87fa5b6f982ab8d75e74a3d1b052"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral"}, "created_at": 1764018295.922112, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_utils') }}\n-- depends_on: {{ ref('live') }}\n{% set config = config_core_secrets %}\n{{ ephemeral_deploy_core(config) }}", "language": "sql", "refs": [{"name": "_utils", "package": null, "version": null}, {"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_core"], "nodes": ["model.livequery_models._utils", "model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/secrets.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__live\n\n\n\n SELECT 'secrets' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models._live": {"database": "polygon", "schema": "_live", "name": "_live", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/core/_live.sql", "original_file_path": "models/deploy/core/_live.sql", "unique_id": "model.livequery_models._live", "fqn": ["livequery_models", "deploy", "core", "_live"], "alias": "", "checksum": {"name": "sha256", "checksum": "c96cbb9dfef8ff10375c8e187dc394f7a38d172e8df94f343761d485338f4036"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral"}, "created_at": 1764018295.9294682, "relation_name": null, "raw_code": "{% set config = config_core__live %}\n{{ ephemeral_deploy_core(config) }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_core"], "nodes": []}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/_live.sql", "compiled": true, "compiled_code": "\n\n\n SELECT '_live' as schema_", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.utils": {"database": "polygon", "schema": "utils", "name": "utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/core/utils.sql", "original_file_path": "models/deploy/core/utils.sql", "unique_id": "model.livequery_models.utils", "fqn": ["livequery_models", "deploy", "core", "utils"], "alias": "", "checksum": {"name": "sha256", "checksum": "306321713017a3700a99c47db3a99ca2f64fdf6fe567c883a7507f13bd8095c2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {"udf_json_rpc_call": {"name": "udf_json_rpc_call", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "udf_urlencode": {"name": "udf_urlencode", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "udf_int_to_binary": {"name": "udf_int_to_binary", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "udf_binary_to_int": {"name": "udf_binary_to_int", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "udf_evm_decode_log": {"name": "udf_evm_decode_log", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/core/utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral"}, "created_at": 1764018436.813691, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_utils') }}\n{% set config = config_core_utils %}\n{{ ephemeral_deploy_core(config) }}", "language": "sql", "refs": [{"name": "_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_core"], "nodes": ["model.livequery_models._utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n) -- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "analysis.livequery_models.test_create_or_drop_function_from_config": {"database": "polygon", "schema": "test_create_or_drop_function_from_config", "name": "test_create_or_drop_function_from_config", "resource_type": "analysis", "package_name": "livequery_models", "path": "analysis/test_create_or_drop_function_from_config.sql", "original_file_path": "analysis/test_create_or_drop_function_from_config.sql", "unique_id": "analysis.livequery_models.test_create_or_drop_function_from_config", "fqn": ["livequery_models", "analysis", "test_create_or_drop_function_from_config"], "alias": "", "checksum": {"name": "sha256", "checksum": "6da8747a0512c8c0c522b3b56816f437171257a7544716d8795b1a4cc04c8664"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral"}, "created_at": 1764018296.0488648, "relation_name": null, "raw_code": "{%- set udfs = fromyaml(config_core_live()) -%}\n{% do udfs.extend(fromyaml(config_core__live())) %}\n{% do udfs.extend(fromyaml(config_core__utils())) %}\n{% do udfs.extend(fromyaml(config_core_utils())) %}\n\n{%- for udf in udfs -%}\n{{- create_or_drop_function_from_config(udf, drop_=True) -}}\n{{- create_or_drop_function_from_config(udf, drop_=False) -}}\n{% endfor %}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.config_core_live", "macro.livequery_models.config_core__live", "macro.livequery_models.config_core__utils", "macro.livequery_models.config_core_utils", "macro.livequery_models.create_or_drop_function_from_config"], "nodes": []}, "compiled_path": "target/compiled/livequery_models/analysis/test_create_or_drop_function_from_config.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS live.udf_api_batched(\n STRING,\n STRING,\n OBJECT,\n VARIANT,\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION live.udf_api_batched(\n method STRING,\n url STRING,\n headers OBJECT,\n data VARIANT,\n secret_name STRING\n )\n COPY GRANTS\n RETURNS VARIANT\n VOLATILE\n\n AS\n $$\n SELECT\n _live.UDF_API(\n method,\n url,\n headers,\n data,\n _utils.UDF_WHOAMI(),\n secret_name\n )\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS live.udf_api(\n STRING,\n STRING,\n OBJECT,\n VARIANT,\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION live.udf_api(\n method STRING,\n url STRING,\n headers OBJECT,\n data VARIANT,\n secret_name STRING\n )\n COPY GRANTS\n RETURNS VARIANT\n VOLATILE\n\n AS\n $$\n SELECT\n _live.UDF_API(\n method,\n url,\n headers,\n data,\n _utils.UDF_WHOAMI(),\n secret_name\n )\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS live.udf_api(\n STRING,\n STRING,\n OBJECT,\n VARIANT);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION live.udf_api(\n method STRING,\n url STRING,\n headers OBJECT,\n data VARIANT\n )\n COPY GRANTS\n RETURNS VARIANT\n VOLATILE\n\n AS\n $$\n SELECT\n _live.UDF_API(\n method,\n url,\n headers,\n data,\n _utils.UDF_WHOAMI(),\n ''\n )\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS live.udf_api(\n STRING,\n VARIANT);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION live.udf_api(\n url STRING,\n data VARIANT\n )\n COPY GRANTS\n RETURNS VARIANT\n VOLATILE\n\n AS\n $$\n SELECT\n _live.UDF_API(\n 'POST',\n url,\n {'Content-Type': 'application/json'},\n data,\n _utils.UDF_WHOAMI(),\n ''\n )\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS live.udf_api(\n STRING,\n VARIANT,\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION live.udf_api(\n url STRING,\n data VARIANT,\n secret_name STRING\n )\n COPY GRANTS\n RETURNS VARIANT\n VOLATILE\n\n AS\n $$\n SELECT\n _live.UDF_API(\n 'POST',\n url,\n {'Content-Type': 'application/json'},\n data,\n _utils.UDF_WHOAMI(),\n secret_name\n )\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS live.udf_api(\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION live.udf_api(\n url STRING\n )\n COPY GRANTS\n RETURNS VARIANT\n VOLATILE\n\n AS\n $$\n SELECT\n _live.UDF_API(\n 'GET',\n url,\n {},\n NULL,\n _utils.UDF_WHOAMI(),\n ''\n )\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS live.udf_api(\n STRING,\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION live.udf_api(\n url STRING,\n secret_name STRING\n )\n COPY GRANTS\n RETURNS VARIANT\n VOLATILE\n\n AS\n $$\n SELECT\n _live.UDF_API(\n 'GET',\n url,\n {},\n {},\n _utils.UDF_WHOAMI(),\n secret_name\n )\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS live.udf_rpc(\n STRING,\n STRING,\n STRING,\n VARIANT);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION live.udf_rpc(\n blockchain STRING,\n network STRING,\n method STRING,\n parameters VARIANT\n )\n COPY GRANTS\n RETURNS VARIANT\n VOLATILE\nCOMMENT = $$Executes an JSON RPC call on a blockchain.$$\n\n AS\n $$\n \n\nWITH result as (\n SELECT\n live.udf_api(\n '{endpoint}'\n ,utils.udf_json_rpc_call(method, parameters)\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'blockchain', 'network')\n )::VARIANT:data AS data\n)\nSELECT\n COALESCE(data:result, {'error':data:error})\nFROM result\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS live.udf_allow_list();\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE EXTERNAL FUNCTION live.udf_allow_list(\n )\n COPY GRANTS\n RETURNS ARRAY\n RETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns a list of allowed domains.$$\n\n api_integration = AWS_POLYGON_API_PROD_V2\n AS 'https://sjfxmdtv9j.execute-api.us-east-1.amazonaws.com/prod/allowed';\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS _live.udf_api_batched(\n STRING,\n STRING,\n OBJECT,\n VARIANT,\n STRING,\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE EXTERNAL FUNCTION _live.udf_api_batched(\n method STRING,\n url STRING,\n headers OBJECT,\n DATA VARIANT,\n user_id STRING,\n SECRET STRING\n )\n COPY GRANTS\n RETURNS VARIANT\n NOT NULL\n\n api_integration = AWS_POLYGON_API_PROD_V2\n AS 'https://sjfxmdtv9j.execute-api.us-east-1.amazonaws.com/prod/udf_api';\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS _live.udf_api(\n STRING,\n STRING,\n OBJECT,\n VARIANT,\n STRING,\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE EXTERNAL FUNCTION _live.udf_api(\n method STRING,\n url STRING,\n headers OBJECT,\n DATA VARIANT,\n user_id STRING,\n SECRET STRING\n )\n COPY GRANTS\n RETURNS VARIANT\n NOT NULL\n\n api_integration = AWS_POLYGON_API_PROD_V2\n AS 'https://sjfxmdtv9j.execute-api.us-east-1.amazonaws.com/prod/udf_api';\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS _utils.udf_introspect(\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE SECURE EXTERNAL FUNCTION _utils.udf_introspect(\n echo STRING\n )\n COPY GRANTS\n RETURNS TEXT\n api_integration = AWS_POLYGON_API_PROD_V2\n AS 'https://sjfxmdtv9j.execute-api.us-east-1.amazonaws.com/prod/introspect';\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS _utils.udf_user_tier();\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE SECURE FUNCTION _utils.udf_user_tier(\n )\n COPY GRANTS\n RETURNS TEXT\n NOT NULL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\nMEMOIZABLE\n\n AS\n $$\n SELECT\n COALESCE(PARSE_JSON(GETVARIABLE('LIVEQUERY_CONTEXT')):userTier::STRING, 'community')\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS _utils.udf_provider();\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE SECURE FUNCTION _utils.udf_provider(\n )\n COPY GRANTS\n RETURNS TEXT\n NOT NULL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\nMEMOIZABLE\n\n AS\n $$\n SELECT\n COALESCE(PARSE_JSON(GETVARIABLE('LIVEQUERY_CONTEXT')):provider::STRING, 'quicknode')\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS _utils.udf_whoami();\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE SECURE FUNCTION _utils.udf_whoami(\n )\n COPY GRANTS\n RETURNS TEXT\n NOT NULL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\nMEMOIZABLE\n\n AS\n $$\n SELECT\n COALESCE(PARSE_JSON(GETVARIABLE('LIVEQUERY_CONTEXT')):userId::STRING, CURRENT_USER())\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS _utils.udf_register_secret(\n STRING,\n STRING,\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE SECURE EXTERNAL FUNCTION _utils.udf_register_secret(\n request_id STRING,\n user_id STRING,\n key STRING\n )\n COPY GRANTS\n RETURNS OBJECT\n NOT NULL\nRETURNS NULL ON NULL INPUT\n\n api_integration = AWS_POLYGON_API_PROD_V2\n AS 'https://sjfxmdtv9j.execute-api.us-east-1.amazonaws.com/prod/secret/register';\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_register_secret(\n STRING,\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE SECURE FUNCTION utils.udf_register_secret(\n request_id STRING,\n key STRING\n )\n COPY GRANTS\n RETURNS OBJECT\n NOT NULL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n SELECT\n _utils.UDF_REGISTER_SECRET(REQUEST_ID, _utils.UDF_WHOAMI(), KEY)\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_hex_to_int(\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_hex_to_int(\n hex STRING\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE PYTHON\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\nRUNTIME_VERSION = '3.10'\nHANDLER = 'hex_to_int'\n\n AS\n $$\n \ndef hex_to_int(hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int('200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('0x200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int(NULL);\n >> NULL\n \"\"\"\n try:\n return str(int(hex, 16)) if hex and hex != \"0x\" else None\n except:\n return None\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_hex_to_int(\n STRING,\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_hex_to_int(\n encoding STRING,\n hex STRING\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE PYTHON\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\nRUNTIME_VERSION = '3.10'\nHANDLER = 'hex_to_int'\n\n AS\n $$\n \ndef hex_to_int(encoding, hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int('hex', '200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('hex', '0x200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('hex', NULL);\n >> NULL\n hex_to_int('s2c', 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffe5b83acf');\n >> -440911153\n \"\"\"\n try:\n if not hex:\n return None\n if encoding.lower() == 's2c':\n if hex[0:2].lower() != '0x':\n hex = f'0x{hex}'\n\n bits = len(hex[2:]) * 4\n value = int(hex, 0)\n if value & (1 << (bits - 1)):\n value -= 1 << bits\n return str(value)\n else:\n return str(int(hex, 16))\n except:\n return None\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_evm_text_signature(\n VARIANT);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_evm_text_signature(\n abi VARIANT\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = '3.10'\nHANDLER = 'get_simplified_signature'\n\n AS\n $$\n \n\ndef get_simplified_signature(abi):\n def generate_signature(inputs):\n signature_parts = []\n for input_data in inputs:\n if 'components' in input_data:\n component_signature_parts = []\n components = input_data['components']\n component_signature_parts.extend(generate_signature(components))\n component_signature_parts[-1] = component_signature_parts[-1].rstrip(\",\")\n if input_data['type'].endswith('[]'):\n signature_parts.append(\"(\" + \"\".join(component_signature_parts) + \")[],\")\n else:\n signature_parts.append(\"(\" + \"\".join(component_signature_parts) + \"),\")\n else:\n signature_parts.append(input_data['type'].replace('enum ', '').replace(' payable', '') + \",\")\n return signature_parts\n\n signature_parts = [abi['name'] + \"(\"]\n signature_parts.extend(generate_signature(abi['inputs']))\n signature_parts[-1] = signature_parts[-1].rstrip(\",\") + \")\"\n return \"\".join(signature_parts)\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_keccak256(\n VARCHAR(255));\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_keccak256(\n event_name VARCHAR(255)\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = '3.10'\nPACKAGES = ('pycryptodome==3.15.0')\nHANDLER = 'udf_encode'\n\n AS\n $$\n \nfrom Crypto.Hash import keccak\n\ndef udf_encode(event_name):\n keccak_hash = keccak.new(digest_bits=256)\n keccak_hash.update(event_name.encode('utf-8'))\n return '0x' + keccak_hash.hexdigest()\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_hex_to_string(\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_hex_to_string(\n hex STRING\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE SQL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n SELECT\n LTRIM(regexp_replace(\n try_hex_decode_string(hex),\n '[\\x00-\\x1F\\x7F-\\x9F\\xAD]', '', 1))\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_int_to_hex(\n INTEGER);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_int_to_hex(\n int INTEGER\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE SQL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n select CONCAT('0x', TRIM(TO_CHAR(int, 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')))\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_json_rpc_call(\n STRING,\n ARRAY);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_json_rpc_call(\n method STRING,\n params ARRAY\n )\n COPY GRANTS\n RETURNS OBJECT\n NULL\nLANGUAGE SQL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n \nSELECT IFF(method IS NULL or params IS NULL,\n NULL,\n {\n 'jsonrpc': '2.0',\n 'method': method,\n 'params': params\n \n , 'id': hash(method, params)::string\n \n }\n )\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_json_rpc_call(\n STRING,\n OBJECT);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_json_rpc_call(\n method STRING,\n params OBJECT\n )\n COPY GRANTS\n RETURNS OBJECT\n NULL\nLANGUAGE SQL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n \nSELECT IFF(method IS NULL or params IS NULL,\n NULL,\n {\n 'jsonrpc': '2.0',\n 'method': method,\n 'params': params\n \n , 'id': hash(method, params)::string\n \n }\n )\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_json_rpc_call(\n STRING,\n OBJECT,\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_json_rpc_call(\n method STRING,\n params OBJECT,\n id STRING\n )\n COPY GRANTS\n RETURNS OBJECT\n NULL\nLANGUAGE SQL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n \nSELECT IFF(method IS NULL or params IS NULL,\n NULL,\n {\n 'jsonrpc': '2.0',\n 'method': method,\n 'params': params\n \n , 'id': id\n \n }\n )\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_json_rpc_call(\n STRING,\n ARRAY,\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_json_rpc_call(\n method STRING,\n params ARRAY,\n id STRING\n )\n COPY GRANTS\n RETURNS OBJECT\n NULL\nLANGUAGE SQL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n \nSELECT IFF(method IS NULL or params IS NULL,\n NULL,\n {\n 'jsonrpc': '2.0',\n 'method': method,\n 'params': params\n \n , 'id': id\n \n }\n )\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_urlencode(\n OBJECT,\n BOOLEAN);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_urlencode(\n query OBJECT,\n doseq BOOLEAN\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE PYTHON\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\nRUNTIME_VERSION = '3.10'\nCOMMENT=$$Pthon (function)[https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlencode] to convert an object to a URL query string.$$\nHANDLER = 'object_to_url_query_string'\n\n AS\n $$\n \nfrom urllib.parse import urlencode\n\ndef object_to_url_query_string(query, doseq=False):\n \n if isinstance(query, dict):\n return urlencode(query, doseq)\n return urlencode([tuple(i) for i in query], doseq)\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_urlencode(\n ARRAY,\n BOOLEAN);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_urlencode(\n query ARRAY,\n doseq BOOLEAN\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE PYTHON\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\nRUNTIME_VERSION = '3.10'\nCOMMENT=$$Pthon (function)[https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlencode] to convert an array to a URL query string.$$\nHANDLER = 'object_to_url_query_string'\n\n AS\n $$\n \nfrom urllib.parse import urlencode\n\ndef object_to_url_query_string(query, doseq=False):\n \n if isinstance(query, dict):\n return urlencode(query, doseq)\n return urlencode([tuple(i) for i in query], doseq)\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_urlencode(\n ARRAY);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_urlencode(\n query ARRAY\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE SQL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n SELECT utils.udf_urlencode(query, FALSE)\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_urlencode(\n OBJECT);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_urlencode(\n query OBJECT\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE SQL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n SELECT utils.udf_urlencode(query, FALSE)\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_object_to_url_query_string(\n OBJECT);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_object_to_url_query_string(\n object OBJECT\n )\n COPY GRANTS\n RETURNS TEXT\n NOT NULL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n SELECT utils.udf_urlencode(object, FALSE)\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_evm_transform_log(\n VARIANT);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_evm_transform_log(\n decoded VARIANT\n )\n COPY GRANTS\n RETURNS VARIANT\n NULL\nLANGUAGE PYTHON\nIMMUTABLE\nRUNTIME_VERSION = '3.10'\nHANDLER = 'transform'\n\n AS\n $$\n \nfrom copy import deepcopy\n\ndef transform_event(event: dict):\n new_event = deepcopy(event)\n if new_event.get(\"components\"):\n components = new_event.get(\"components\")\n for iy, y in enumerate(new_event[\"value\"]):\n for i, c in enumerate(components):\n y[i] = {\"value\": y[i], **c}\n new_event[\"value\"][iy] = {z[\"name\"]: z[\"value\"] for z in y}\n return new_event\n else:\n return event\n\n\ndef transform(events: list):\n try:\n results = [\n transform_event(event) if event[\"decoded\"] else event\n for event in events[\"data\"]\n ]\n events[\"data\"] = results\n return events\n except:\n return events\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_evm_decode_log(\n ARRAY,\n OBJECT);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE EXTERNAL FUNCTION utils.udf_evm_decode_log(\n abi ARRAY,\n data OBJECT\n )\n COPY GRANTS\n RETURNS ARRAY\n NOT NULL\nRETURNS NULL ON NULL INPUT\n\n api_integration = AWS_POLYGON_API_PROD_V2\n AS 'https://sjfxmdtv9j.execute-api.us-east-1.amazonaws.com/prod/evm/decode/log';\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_evm_decode_log(\n OBJECT,\n OBJECT);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE EXTERNAL FUNCTION utils.udf_evm_decode_log(\n abi OBJECT,\n data OBJECT\n )\n COPY GRANTS\n RETURNS ARRAY\n NOT NULL\nRETURNS NULL ON NULL INPUT\n\n api_integration = AWS_POLYGON_API_PROD_V2\n AS 'https://sjfxmdtv9j.execute-api.us-east-1.amazonaws.com/prod/evm/decode/log';\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_evm_decode_trace(\n OBJECT,\n OBJECT);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE EXTERNAL FUNCTION utils.udf_evm_decode_trace(\n abi OBJECT,\n data OBJECT\n )\n COPY GRANTS\n RETURNS ARRAY\n NOT NULL\nRETURNS NULL ON NULL INPUT\n\n api_integration = AWS_POLYGON_API_PROD_V2\n AS 'https://sjfxmdtv9j.execute-api.us-east-1.amazonaws.com/prod/evm/decode/trace';\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_base58_to_hex(\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_base58_to_hex(\n base58 STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = '3.10'\nHANDLER = 'transform_base58_to_hex'\n\n AS\n $$\n \n\ndef transform_base58_to_hex(base58):\n if base58 is None:\n return 'Invalid input'\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n base_count = len(ALPHABET)\n\n num = 0\n leading_zeros = 0\n\n for char in base58:\n if char == '1':\n leading_zeros += 1\n else:\n break\n\n for char in base58:\n num *= base_count\n if char in ALPHABET:\n num += ALPHABET.index(char)\n else:\n return 'Invalid character in input'\n\n hex_string = hex(num)[2:]\n\n if len(hex_string) % 2 != 0:\n hex_string = '0' + hex_string\n\n hex_leading_zeros = '00' * leading_zeros\n\n return '0x' + hex_leading_zeros + hex_string\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_hex_to_base58(\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_hex_to_base58(\n hex STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = '3.10'\nHANDLER = 'transform_hex_to_base58'\n\n AS\n $$\n \n\ndef transform_hex_to_base58(hex):\n if hex is None or not hex.startswith('0x'):\n return 'Invalid input'\n\n hex = hex[2:]\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n byte_array = bytes.fromhex(hex)\n num = int.from_bytes(byte_array, 'big')\n\n encoded = ''\n while num > 0:\n num, remainder = divmod(num, 58)\n encoded = ALPHABET[remainder] + encoded\n\n for byte in byte_array:\n if byte == 0:\n encoded = '1' + encoded\n else:\n break\n\n return encoded\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_hex_to_bech32(\n STRING,\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_hex_to_bech32(\n hex STRING,\n hrp STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = '3.10'\nHANDLER = 'transform_hex_to_bech32'\n\n AS\n $$\n \n\ndef transform_hex_to_bech32(hex, hrp=''):\n CHARSET = \"qpzry9x8gf2tvdw0s3jn54khce6mua7l\"\n\n def bech32_polymod(values):\n generator = [0x3b6a57b2, 0x26508e6d, 0x1ea119fa, 0x3d4233dd, 0x2a1462b3]\n checksum = 1\n for value in values:\n top = checksum >> 25\n checksum = ((checksum & 0x1ffffff) << 5) ^ value\n for i in range(5):\n checksum ^= generator[i] if ((top >> i) & 1) else 0\n return checksum\n\n def bech32_hrp_expand(hrp):\n return [ord(x) >> 5 for x in hrp] + [0] + [ord(x) & 31 for x in hrp]\n\n def bech32_create_checksum(hrp, data):\n values = bech32_hrp_expand(hrp) + data\n polymod = bech32_polymod(values + [0, 0, 0, 0, 0, 0]) ^ 1\n return [(polymod >> 5 * (5 - i)) & 31 for i in range(6)]\n\n def bech32_convertbits(data, from_bits, to_bits, pad=True):\n acc = 0\n bits = 0\n ret = []\n maxv = (1 << to_bits) - 1\n max_acc = (1 << (from_bits + to_bits - 1)) - 1\n for value in data:\n acc = ((acc << from_bits) | value) & max_acc\n bits += from_bits\n while bits >= to_bits:\n bits -= to_bits\n ret.append((acc >> bits) & maxv)\n if pad and bits:\n ret.append((acc << (to_bits - bits)) & maxv)\n return ret\n\n if hex is None or not hex.startswith('0x'):\n return 'Invalid input'\n\n hex = hex[2:]\n\n data = bytes.fromhex(hex)\n data5bit = bech32_convertbits(list(data), 8, 5)\n\n if data5bit is None:\n return 'Data conversion failed'\n\n checksum = bech32_create_checksum(hrp, data5bit)\n\n return hrp + '1' + ''.join([CHARSET[d] for d in data5bit + checksum])\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_int_to_binary(\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_int_to_binary(\n num STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = '3.10'\nHANDLER = 'int_to_binary'\n\n AS\n $$\n \n\ndef int_to_binary(num):\n num = int(num)\n is_negative = num < 0\n if is_negative:\n num = -num\n\n binary_string = bin(num)[2:]\n\n if is_negative:\n inverted_string = \"\".join(\"1\" if bit == \"0\" else \"0\" for bit in binary_string)\n\n carry = 1\n result = \"\"\n for i in range(len(inverted_string) - 1, -1, -1):\n if inverted_string[i] == \"1\" and carry == 1:\n result = \"0\" + result\n elif inverted_string[i] == \"0\" and carry == 1:\n result = \"1\" + result\n carry = 0\n else:\n result = inverted_string[i] + result\n\n binary_string = result\n\n return binary_string\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_binary_to_int(\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_binary_to_int(\n binary STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = '3.10'\nHANDLER = 'binary_to_int'\n\n AS\n $$\n \n\ndef binary_to_int(binary):\n\n for char in binary:\n if char not in \"01\":\n raise ValueError(\"Input string must be a valid binary string.\")\n\n integer = 0\n\n for i, digit in enumerate(binary[::-1]):\n digit_int = int(digit)\n\n integer += digit_int * 2**i\n\n return str(integer)\n\n $$;\n\n \n \n \n \n \n \n \n \n \n DROP FUNCTION IF EXISTS utils.udf_redirect_s3_presigned_url(\n STRING);\n\n\n \n \n \n \n \n \n \n \n \n CREATE OR REPLACE FUNCTION utils.udf_redirect_s3_presigned_url(\n url STRING\n )\n COPY GRANTS\n RETURNS VARIANT\n LANGUAGE PYTHON\nRUNTIME_VERSION = '3.10'\nHANDLER = 'process_request'\nEXTERNAL_ACCESS_INTEGRATIONS = (S3_EXPRESS_EXTERNAL_ACCESS_INTEGRATION)\nPACKAGES = ('requests')\n\n AS\n $$\n \nimport requests\nimport json\nimport gzip\nimport io\n\ndef process_request(url):\n resp = requests.get(url)\n content = resp.content\n\n # Decompress if URL contains .json.gz\n if '.json.gz' in url:\n try:\n # Decompress the gzipped content\n with gzip.GzipFile(fileobj=io.BytesIO(content), mode='rb') as f:\n content = f.read()\n except Exception as e:\n return {\"error\": \"Failed to decompress gzip data\", \"message\": str(e)}\n\n # Try to parse as JSON\n try:\n text_content = content.decode('utf-8')\n return json.loads(text_content)\n except (json.JSONDecodeError, UnicodeDecodeError):\n # If not JSON or not valid UTF-8, return as string or base64\n try:\n # Try to return as string if its valid text\n return content.decode('utf-8')\n except UnicodeDecodeError:\n # For binary data, return base64\n import base64\n return base64.b64encode(content).decode('ascii')\n\n $$;\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}}, "analysis.livequery_models.test_functions": {"database": "polygon", "schema": "test_functions", "name": "test_functions", "resource_type": "analysis", "package_name": "livequery_models", "path": "analysis/test_functions.sql", "original_file_path": "analysis/test_functions.sql", "unique_id": "analysis.livequery_models.test_functions", "fqn": ["livequery_models", "analysis", "test_functions"], "alias": "", "checksum": {"name": "sha256", "checksum": "0ab84ce91d84a3416f20a65f80f6226b0dec39313dbd0f555f40cdf721121b9e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral"}, "created_at": 1764018296.1789632, "relation_name": null, "raw_code": "{{ sql_udf_json_rpc_call(True) }}\n{# {{ sql_udf_json_rpc_call(False) }} #}\n{{ config_core__live() }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.sql_udf_json_rpc_call", "macro.livequery_models.config_core__live"], "nodes": []}, "compiled_path": "target/compiled/livequery_models/analysis/test_functions.sql", "compiled": true, "compiled_code": "\n SELECT IFF(method IS NULL or params IS NULL,\n NULL,\n {\n 'jsonrpc': '2.0',\n 'method': method,\n 'params': params\n \n , 'id': hash(method, params)::string\n \n }\n )\n\n\n\n\n- name: _live.udf_api_batched\n signature:\n - [method, STRING]\n - [url, STRING]\n - [headers, OBJECT]\n - [DATA, VARIANT]\n - [user_id, STRING]\n - [SECRET, STRING]\n return_type: VARIANT\n func_type: EXTERNAL\n api_integration: 'AWS_POLYGON_API_PROD_V2'\n max_batch_rows: ''\n options: |\n NOT NULL\n sql: udf_api\n\n- name: _live.udf_api\n signature:\n - [method, STRING]\n - [url, STRING]\n - [headers, OBJECT]\n - [DATA, VARIANT]\n - [user_id, STRING]\n - [SECRET, STRING]\n return_type: VARIANT\n func_type: EXTERNAL\n api_integration: 'AWS_POLYGON_API_PROD_V2'\n options: |\n NOT NULL\n sql: udf_api\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}}, "analysis.livequery_models.generate_test_udf_skeleton": {"database": "polygon", "schema": "generate_test_udf_skeleton", "name": "generate_test_udf_skeleton", "resource_type": "analysis", "package_name": "livequery_models", "path": "analysis/generate_test_udf_skeleton.sql", "original_file_path": "analysis/generate_test_udf_skeleton.sql", "unique_id": "analysis.livequery_models.generate_test_udf_skeleton", "fqn": ["livequery_models", "analysis", "generate_test_udf_skeleton"], "alias": "", "checksum": {"name": "sha256", "checksum": "2931dee110117aaa477703fa3ad1dd92e9691d5c8ca46ce0d22145d0e43294ba"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral"}, "created_at": 1764018296.1923392, "relation_name": null, "raw_code": "{% set schema = \"strangelove\" %}\n{% set config = fromyaml(config_strangelove_udfs(schema_name = schema, utils_schema_name = \"quicknode_utils\")) %}\n{% set raw_test_queries %}\nstrangelove.get:\n - |\n 'https://api.strange.love/cosmoshub/mainnet/rpc/block_by_hash'\n - |\n {\n 'blockHash': '0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED'\n }\n\n\nstrangelove.post:\n - |\n 'https://endpoint'\n - |\n {\n 'foo': 'bar'\n }\n\n{% endset %}\n{% set test_queries = fromyaml(raw_test_queries) %}\n{{ test_queries }}\n{{ schema }}\n_____\n columns:\n{%- for item in config %}\n - name: {{ item[\"name\"] | replace(schema~\".\", \"\") }}\n tests:\n - test_marketplace_udf:\n name: test_{{ item[\"name\"].replace(\".\", \"__\") ~ \"_status_200\" }}\n args: >\n {{ test_queries[item[\"name\"]] | join(\", \") | indent(16) }}\n validations:\n - result:status_code = 200\n{%- endfor %}\n\n=====================\n\n{{ config | pprint}}\n{# {% for item in config %}\n{% if item[\"return_type\"][0] != \"VARIANT\"%}\n {{ item[\"return_type\"][0] }}\n{% endif %}\n{% endfor %} #}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.config_strangelove_udfs"], "nodes": []}, "compiled_path": "target/compiled/livequery_models/analysis/generate_test_udf_skeleton.sql", "compiled": true, "compiled_code": "\n\n\n\n{'strangelove.get': [\"'https://api.strange.love/cosmoshub/mainnet/rpc/block_by_hash'\\n\", \"{\\n 'blockHash': '0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED'\\n}\\n\"], 'strangelove.post': [\"'https://endpoint'\\n\", \"{\\n 'foo': 'bar'\\n}\\n\"]}\nstrangelove\n_____\n columns:\n - name: get\n tests:\n - test_marketplace_udf:\n name: test_strangelove__get_status_200\n args: >\n 'https://api.strange.love/cosmoshub/mainnet/rpc/block_by_hash'\n , {\n 'blockHash': '0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED'\n }\n\n validations:\n - result:status_code = 200\n - name: post\n tests:\n - test_marketplace_udf:\n name: test_strangelove__post_status_200\n args: >\n 'https://endpoint'\n , {\n 'foo': 'bar'\n }\n\n validations:\n - result:status_code = 200\n\n=====================\n\n[{'name': 'strangelove.get',\n 'options': 'COMMENT = $$Issue a GET request to a Strangelove Endpoint '\n '[Strangelove docs '\n 'here](https://voyager.strange.love/docs/cosmoshub/mainnet#/).$$\\n',\n 'return_type': ['VARIANT'],\n 'signature': [['URL', 'STRING', 'The url to issue a get request to'],\n ['QUERY_ARGS', 'OBJECT', 'The query arguments']],\n 'sql': 'SELECT\\n'\n ' live.udf_api(\\n'\n \" 'GET',\\n\"\n ' concat(\\n'\n \" URL, '?',\\n\"\n ' utils.udf_object_to_url_query_string(QUERY_ARGS)\\n'\n ' ),\\n'\n \" {'x-apikey': '{API_KEY}'},\\n\"\n ' {},\\n'\n \" '_FSC_SYS/STRANGELOVE'\\n\"\n ') as response\\n'},\n {'name': 'strangelove.post',\n 'options': 'COMMENT = $$Issue a POST request to a Strangelove Endpoint '\n '[Strangelove docs '\n 'here](https://voyager.strange.love/docs/cosmoshub/mainnet#/).$$\\n',\n 'return_type': ['VARIANT'],\n 'signature': [['URL', 'STRING', 'The url to issue a post request to'],\n ['QUERY', 'OBJECT', 'The body of the request']],\n 'sql': 'SELECT\\n'\n ' live.udf_api(\\n'\n \" 'POST',\\n\"\n ' URL,\\n'\n \" {'x-apikey': '{API_KEY}'},\\n\"\n ' QUERY,\\n'\n \" '_FSC_SYS/STRANGELOVE'\\n\"\n ') as response\\n'}]\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}}, "analysis.livequery_models.test_crud_udfs_in_schema": {"database": "polygon", "schema": "test_crud_udfs_in_schema", "name": "test_crud_udfs_in_schema", "resource_type": "analysis", "package_name": "livequery_models", "path": "analysis/test_crud_udfs_in_schema.sql", "original_file_path": "analysis/test_crud_udfs_in_schema.sql", "unique_id": "analysis.livequery_models.test_crud_udfs_in_schema", "fqn": ["livequery_models", "analysis", "test_crud_udfs_in_schema"], "alias": "", "checksum": {"name": "sha256", "checksum": "f676dabac544030f70f1652a8d6908844809f667be9bd1c8719037b3070efab0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral"}, "created_at": 1764018296.205192, "relation_name": null, "raw_code": "{{crud_udfs_by_chain(config_evm_high_level_abstractions, 'ethereum', 'mainnet', false)}}\n{{- crud_udfs_by_chain(config_evm_rpc_primitives, \"ethereum\", None, False) -}}\n{{- crud_udfs_by_chain(config_evm_rpc_primitives, \"ethereum\", None, true) -}}", "language": "sql", "refs": [{"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.crud_udfs_by_chain"], "nodes": ["model.livequery_models._evm__native_symbol_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map"]}, "compiled_path": "target/compiled/livequery_models/analysis/test_crud_udfs_in_schema.sql", "compiled": true, "compiled_code": "\n\n \n with __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n), __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n), __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n) CREATE SCHEMA IF NOT EXISTS ethereum_mainnet;", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._evm__native_symbol_map", "sql": " __dbt__cte___evm__native_symbol_map as (\n\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets\n)"}, {"id": "model.livequery_models._evm__contracts_map", "sql": " __dbt__cte___evm__contracts_map as (\n\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts\n)"}, {"id": "model.livequery_models._evm__abi_map", "sql": " __dbt__cte___evm__abi_map as (\n\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}}, "analysis.livequery_models.test_functions_py": {"database": "polygon", "schema": "test_functions_py", "name": "test_functions_py", "resource_type": "analysis", "package_name": "livequery_models", "path": "analysis/test_functions_py.sql", "original_file_path": "analysis/test_functions_py.sql", "unique_id": "analysis.livequery_models.test_functions_py", "fqn": ["livequery_models", "analysis", "test_functions_py"], "alias": "", "checksum": {"name": "sha256", "checksum": "3e379c91a7abf83ca2438fdd68efa21b5f98a91a7c1beb62091f7b4d13d33745"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral"}, "created_at": 1764018296.3726413, "relation_name": null, "raw_code": "{{ python_hex_to_int() }}\n{{ python_udf_hex_to_int_with_encoding() }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.python_hex_to_int", "macro.livequery_models.python_udf_hex_to_int_with_encoding"], "nodes": []}, "compiled_path": "target/compiled/livequery_models/analysis/test_functions_py.sql", "compiled": true, "compiled_code": "\ndef hex_to_int(hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int('200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('0x200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int(NULL);\n >> NULL\n \"\"\"\n try:\n return str(int(hex, 16)) if hex and hex != \"0x\" else None\n except:\n return None\n\n\ndef hex_to_int(encoding, hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int('hex', '200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('hex', '0x200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('hex', NULL);\n >> NULL\n hex_to_int('s2c', 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffe5b83acf');\n >> -440911153\n \"\"\"\n try:\n if not hex:\n return None\n if encoding.lower() == 's2c':\n if hex[0:2].lower() != '0x':\n hex = f'0x{hex}'\n\n bits = len(hex[2:]) * 4\n value = int(hex, 0)\n if value & (1 << (bits - 1)):\n value -= 1 << bits\n return str(value)\n else:\n return str(int(hex, 16))\n except:\n return None\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}}, "seed.livequery_models.live__verified_api_endpoints": {"database": "polygon", "schema": "live", "name": "live__verified_api_endpoints", "resource_type": "seed", "package_name": "livequery_models", "path": "live__verified_api_endpoints.csv", "original_file_path": "data/live__verified_api_endpoints.csv", "unique_id": "seed.livequery_models.live__verified_api_endpoints", "fqn": ["livequery_models", "live__verified_api_endpoints"], "alias": "verified_api_endpoints", "checksum": {"name": "sha256", "checksum": "f801025b0fb9a370678db2b5b63ead57dc1371caffa0688266d9be12605a8afa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018296.5098255, "relation_name": "polygon.live.verified_api_endpoints", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/livequery_models", "depends_on": {"macros": []}}, "operation.livequery_models.livequery_models-on-run-start-0": {"database": "polygon", "schema": "livequery_models-on-run-start-0", "name": "livequery_models-on-run-start-0", "resource_type": "operation", "package_name": "livequery_models", "path": "hooks/livequery_models-on-run-start-0.sql", "original_file_path": "./dbt_project.yml", "unique_id": "operation.livequery_models.livequery_models-on-run-start-0", "fqn": ["livequery_models", "hooks", "livequery_models-on-run-start-0"], "alias": "", "checksum": {"name": "sha256", "checksum": "e52a10f1f9c21da8a9ff7a2b0ba65069d47951fda054c802292fb2ef6dcc845d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}}, "tags": ["on-run-start"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral"}, "created_at": 1764018296.552055, "relation_name": null, "raw_code": "{{ create_sps() }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.create_sps"], "nodes": []}, "compiled_path": "target/compiled/livequery_models/./dbt_project.yml/hooks/livequery_models-on-run-start-0.sql", "compiled": true, "compiled_code": "\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "index": 0}, "operation.livequery_models.livequery_models-on-run-end-0": {"database": "polygon", "schema": "livequery_models-on-run-end-0", "name": "livequery_models-on-run-end-0", "resource_type": "operation", "package_name": "livequery_models", "path": "hooks/livequery_models-on-run-end-0.sql", "original_file_path": "./dbt_project.yml", "unique_id": "operation.livequery_models.livequery_models-on-run-end-0", "fqn": ["livequery_models", "hooks", "livequery_models-on-run-end-0"], "alias": "", "checksum": {"name": "sha256", "checksum": "e52a10f1f9c21da8a9ff7a2b0ba65069d47951fda054c802292fb2ef6dcc845d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}}, "tags": ["on-run-end"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral"}, "created_at": 1764018296.5611854, "relation_name": null, "raw_code": "{{ apply_meta_as_tags(results) }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.apply_meta_as_tags"], "nodes": []}, "compiled_path": "target/compiled/livequery_models/./dbt_project.yml/hooks/livequery_models-on-run-end-0.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "index": 0}, "model.fsc_utils._datashare___create_udfs": {"database": "polygon", "schema": "_datashare", "name": "_datashare___create_udfs", "resource_type": "model", "package_name": "fsc_utils", "path": "datashare/_datashare___create_udfs.sql", "original_file_path": "models/datashare/_datashare___create_udfs.sql", "unique_id": "model.fsc_utils._datashare___create_udfs", "fqn": ["fsc_utils", "datashare", "_datashare___create_udfs"], "alias": "_create_udfs", "checksum": {"name": "sha256", "checksum": "fc39e053d81b2ed8b8106cf5c917ea005b96942a61f37ee4850a838c6c8f7ce6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "merge", "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "ddl_hash", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "merge_update_columns": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "incremental_strategy": "merge", "unique_key": "ddl_hash", "merge_update_columns": []}, "created_at": 1764018296.5956717, "relation_name": "polygon._datashare._create_udfs", "raw_code": "{{\n config(\n materialized = 'incremental',\n incremental_strategy = 'merge',\n unique_key = 'ddl_hash',\n merge_update_columns = [],\n )\n}}\n{% if execute %}\nSELECT\nCONCAT_WS('\\n',{{- fsc_utils.generate_datashare_udf_ddl().strip() -}}) AS ddl,\nmd5(ddl) AS ddl_hash,\nsysdate() as ddl_created_at\n{% else %}\nSELECT\nnull as ddl,\nnull as ddl_hash,\nnull as ddl_created_at\nfrom dual limit 0\n{% endif %}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_utils.generate_datashare_udf_ddl"], "nodes": []}, "compiled_path": "target/compiled/fsc_utils/models/datashare/_datashare___create_udfs.sql", "compiled": true, "compiled_code": "\n\nSELECT\nCONCAT_WS('\\n','BEGIN','CREATE DATABASE IF NOT EXISTS __NEW__;','USE DATABASE __NEW__;','CREATE SCHEMA IF NOT EXISTS UTILS;','\n CREATE OR REPLACE FUNCTION UTILS.udf_hex_to_int(\n hex STRING\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE PYTHON\nSTRICT IMMUTABLE\nRUNTIME_VERSION = \\'3.9\\'\nHANDLER = \\'hex_to_int\\'\n\n AS\n $$\n \ndef hex_to_int(hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int(\\'200000000000000000000000000000211\\');\n >> 680564733841876926926749214863536423441\n hex_to_int(\\'0x200000000000000000000000000000211\\');\n >> 680564733841876926926749214863536423441\n hex_to_int(NULL);\n >> NULL\n \"\"\"\n return (str(int(hex, 16)) if hex and hex != \"0x\" else None)\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_hex_to_int(\n encoding STRING,\n hex STRING\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE PYTHON\nSTRICT IMMUTABLE\nRUNTIME_VERSION = \\'3.9\\'\nHANDLER = \\'hex_to_int\\'\n\n AS\n $$\n \ndef hex_to_int(encoding, hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int(\\'hex\\', \\'200000000000000000000000000000211\\');\n >> 680564733841876926926749214863536423441\n hex_to_int(\\'hex\\', \\'0x200000000000000000000000000000211\\');\n >> 680564733841876926926749214863536423441\n hex_to_int(\\'hex\\', NULL);\n >> NULL\n hex_to_int(\\'s2c\\', \\'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffe5b83acf\\');\n >> -440911153\n \"\"\"\n if not hex:\n return None\n if encoding.lower() == \\'s2c\\':\n if hex[0:2].lower() != \\'0x\\':\n hex = f\\'0x{hex}\\'\n\n bits = len(hex[2:])*4\n value = int(hex, 0)\n if value & (1 << (bits-1)):\n value -= 1 << bits\n return str(value)\n else:\n return str(int(hex, 16))\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_hex_to_string(\n hex STRING\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE SQL\nSTRICT IMMUTABLE\n\n AS\n $$\n SELECT\n LTRIM(regexp_replace(\n try_hex_decode_string(hex),\n \\'[\\\\x00-\\\\x1F\\\\x7F-\\\\x9F\\\\xAD]\\', \\'\\', 1))\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_evm_text_signature(\n abi VARIANT\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.9\\'\nHANDLER = \\'get_simplified_signature\\'\n\n AS\n $$\n \n\ndef get_simplified_signature(abi):\n def generate_signature(inputs):\n signature_parts = []\n for input_data in inputs:\n if \\'components\\' in input_data:\n component_signature_parts = []\n components = input_data[\\'components\\']\n component_signature_parts.extend(generate_signature(components))\n component_signature_parts[-1] = component_signature_parts[-1].rstrip(\",\")\n if input_data[\\'type\\'].endswith(\\'[]\\'):\n signature_parts.append(\"(\" + \"\".join(component_signature_parts) + \")[],\")\n else:\n signature_parts.append(\"(\" + \"\".join(component_signature_parts) + \"),\")\n else:\n signature_parts.append(input_data[\\'type\\'].replace(\\'enum \\', \\'\\').replace(\\' payable\\', \\'\\') + \",\")\n return signature_parts\n\n signature_parts = [abi[\\'name\\'] + \"(\"]\n signature_parts.extend(generate_signature(abi[\\'inputs\\']))\n signature_parts[-1] = signature_parts[-1].rstrip(\",\") + \")\"\n return \"\".join(signature_parts)\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_keccak256(\n event_name VARCHAR(255)\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.9\\'\nPACKAGES = (\\'pycryptodome==3.15.0\\')\nHANDLER = \\'udf_encode\\'\n\n AS\n $$\n \nfrom Crypto.Hash import keccak\n\ndef udf_encode(event_name):\n keccak_hash = keccak.new(digest_bits=256)\n keccak_hash.update(event_name.encode(\\'utf-8\\'))\n return \\'0x\\' + keccak_hash.hexdigest()\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_decimal_adjust(\n input string,\n adjustment int\n )\n COPY GRANTS\n RETURNS VARCHAR\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.9\\'\nHANDLER = \\'custom_divide\\'\n\n AS\n $$\n \n\nfrom decimal import Decimal, ROUND_DOWN\n\ndef custom_divide(input, adjustment):\n try:\n if adjustment is None or input is None:\n return None\n\n # Perform the division using Decimal type\n result = Decimal(input) / pow(10, Decimal(adjustment))\n\n # Determine the number of decimal places in the result\n decimal_places = max(0, -result.as_tuple().exponent)\n\n # Convert the result to a string representation without scientific notation and with dynamic decimal precision\n result_str = \"{:.{prec}f}\".format(result, prec=decimal_places)\n\n return result_str\n except Exception as e:\n return None\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_cron_to_prior_timestamps(\n workflow_name STRING,\n workflow_schedule STRING\n )\n COPY GRANTS\n RETURNS TABLE(workflow_name STRING, workflow_schedule STRING, timestamp TIMESTAMP_NTZ)\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.9\\'\nPACKAGES = (\\'croniter\\')\nHANDLER = \\'TimestampGenerator\\'\n\n AS\n $$\n \nimport croniter\nimport datetime\n\nclass TimestampGenerator:\n\n def __init__(self):\n pass\n\n def process(self, workflow_name, workflow_schedule):\n for timestamp in self.generate_timestamps(workflow_name, workflow_schedule):\n yield (workflow_name, workflow_schedule, timestamp)\n\n def generate_timestamps(self, workflow_name, workflow_schedule):\n # Create a cron iterator object\n cron = croniter.croniter(workflow_schedule)\n\n # Generate timestamps for the prev 10 runs\n timestamps = []\n for i in range(10):\n prev_run = cron.get_prev(datetime.datetime)\n timestamps.append(prev_run)\n\n return timestamps\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_transform_logs(\n decoded VARIANT\n )\n COPY GRANTS\n RETURNS VARIANT\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.9\\'\nHANDLER = \\'transform\\'\n\n AS\n $$\n \n\nfrom copy import deepcopy\n\ndef transform_tuple(components: list, values: list):\n transformed_values = []\n for i, component in enumerate(components):\n if i < len(values):\n if component[\"type\"] == \"tuple\":\n transformed_values.append({\"value\": transform_tuple(component[\"components\"], values[i]), **component})\n elif component[\"type\"] == \"tuple[]\":\n if not values[i]:\n transformed_values.append({\"value\": [], **component})\n continue\n sub_values = [transform_tuple(component[\"components\"], v) for v in values[i]]\n transformed_values.append({\"value\": sub_values, **component})\n else:\n transformed_values.append({\"value\": values[i], **component})\n return {item[\"name\"]: item[\"value\"] for item in transformed_values}\n\ndef transform_event(event: dict):\n new_event = deepcopy(event)\n if new_event.get(\"components\"):\n components = new_event.get(\"components\")\n\n if not new_event[\"value\"]:\n return new_event\n\n if isinstance(new_event[\"value\"][0], list):\n result_list = []\n for value_set in new_event[\"value\"]:\n result_list.append(transform_tuple(components, value_set))\n new_event[\"value\"] = result_list\n\n else:\n new_event[\"value\"] = transform_tuple(components, new_event[\"value\"])\n\n return new_event\n\n else:\n return event\n\ndef transform(events: dict):\n try:\n results = [\n transform_event(event) if event.get(\"decoded\") else event\n for event in events[\"data\"]\n ]\n events[\"data\"] = results\n return events\n except:\n return events\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_base58_to_hex(\n base58 STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.9\\'\nHANDLER = \\'transform_base58_to_hex\\'\n\n AS\n $$\n \n\ndef transform_base58_to_hex(base58):\n if base58 is None:\n return \\'Invalid input\\'\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n base_count = len(ALPHABET)\n\n num = 0\n leading_zeros = 0\n\n for char in base58:\n if char == \\'1\\':\n leading_zeros += 1\n else:\n break\n\n for char in base58:\n num *= base_count\n if char in ALPHABET:\n num += ALPHABET.index(char)\n else:\n return \\'Invalid character in input\\'\n\n hex_string = hex(num)[2:]\n\n if len(hex_string) % 2 != 0:\n hex_string = \\'0\\' + hex_string\n\n hex_leading_zeros = \\'00\\' * leading_zeros\n\n return \\'0x\\' + hex_leading_zeros + hex_string\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_hex_to_base58(\n input STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.9\\'\nHANDLER = \\'transform_hex_to_base58\\'\n\n AS\n $$\n \n\ndef transform_hex_to_base58(input):\n if input is None or not input.startswith(\\'0x\\'):\n return \\'Invalid input\\'\n\n input = input[2:]\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n byte_array = bytes.fromhex(input)\n num = int.from_bytes(byte_array, \\'big\\')\n\n encoded = \\'\\'\n while num > 0:\n num, remainder = divmod(num, 58)\n encoded = ALPHABET[remainder] + encoded\n\n for byte in byte_array:\n if byte == 0:\n encoded = \\'1\\' + encoded\n else:\n break\n\n return encoded\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_hex_to_bech32(\n input STRING,\n hrp STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.9\\'\nHANDLER = \\'transform_hex_to_bech32\\'\n\n AS\n $$\n \n\ndef transform_hex_to_bech32(input, hrp=\\'\\'):\n CHARSET = \"qpzry9x8gf2tvdw0s3jn54khce6mua7l\"\n\n def bech32_polymod(values):\n generator = [0x3b6a57b2, 0x26508e6d, 0x1ea119fa, 0x3d4233dd, 0x2a1462b3]\n checksum = 1\n for value in values:\n top = checksum >> 25\n checksum = ((checksum & 0x1ffffff) << 5) ^ value\n for i in range(5):\n checksum ^= generator[i] if ((top >> i) & 1) else 0\n return checksum\n\n def bech32_hrp_expand(hrp):\n return [ord(x) >> 5 for x in hrp] + [0] + [ord(x) & 31 for x in hrp]\n\n def bech32_create_checksum(hrp, data):\n values = bech32_hrp_expand(hrp) + data\n polymod = bech32_polymod(values + [0, 0, 0, 0, 0, 0]) ^ 1\n return [(polymod >> 5 * (5 - i)) & 31 for i in range(6)]\n\n def bech32_convertbits(data, from_bits, to_bits, pad=True):\n acc = 0\n bits = 0\n ret = []\n maxv = (1 << to_bits) - 1\n max_acc = (1 << (from_bits + to_bits - 1)) - 1\n for value in data:\n acc = ((acc << from_bits) | value) & max_acc\n bits += from_bits\n while bits >= to_bits:\n bits -= to_bits\n ret.append((acc >> bits) & maxv)\n if pad and bits:\n ret.append((acc << (to_bits - bits)) & maxv)\n return ret\n\n if input is None or not input.startswith(\\'0x\\'):\n return \\'Invalid input\\'\n\n input = input[2:]\n\n data = bytes.fromhex(input)\n data5bit = bech32_convertbits(list(data), 8, 5)\n\n if data5bit is None:\n return \\'Data conversion failed\\'\n\n checksum = bech32_create_checksum(hrp, data5bit)\n\n return hrp + \\'1\\' + \\'\\'.join([CHARSET[d] for d in data5bit + checksum])\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_hex_to_algorand(\n input STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.9\\'\nHANDLER = \\'transform_hex_to_algorand\\'\n\n AS\n $$\n \n\nimport hashlib\nimport base64\n\ndef transform_hex_to_algorand(input):\n if input is None or not input.startswith(\\'0x\\'):\n return \\'Invalid input\\'\n\n input = input[2:]\n public_key_bytes = bytearray.fromhex(input)\n\n sha512_256_hash = hashlib.new(\\'sha512_256\\', public_key_bytes).digest()\n\n checksum = sha512_256_hash[-4:]\n\n algorand_address = base64.b32encode(public_key_bytes + checksum).decode(\\'utf-8\\').rstrip(\\'=\\')\n\n return algorand_address\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_hex_to_tezos(\n input STRING,\n prefix STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.9\\'\nHANDLER = \\'transform_hex_to_tezos\\'\n\n AS\n $$\n \n\nimport hashlib\n\ndef transform_hex_to_tezos(input, prefix):\n if input is None or not input.startswith(\\'0x\\'):\n return \\'Invalid input\\'\n\n input = input[2:]\n\n if len(input) != 40:\n return \\'Invalid length\\'\n\n hash_bytes = bytes.fromhex(input)\n\n prefixes = {\n \\'tz1\\': \\'06a19f\\', # Ed25519\n \\'tz2\\': \\'06a1a1\\', # Secp256k1\n \\'tz3\\': \\'06a1a4\\' # P-256\n }\n\n if prefix not in prefixes:\n return \\'Invalid prefix: Must be tz1, tz2, or tz3\\'\n\n prefix_bytes = bytes.fromhex(prefixes[prefix])\n\n prefixed_hash = prefix_bytes + hash_bytes\n\n checksum = hashlib.sha256(hashlib.sha256(prefixed_hash).digest()).digest()[:4]\n\n full_hash = prefixed_hash + checksum\n\n tezos_address = transform_hex_to_base58(full_hash.hex())\n\n return tezos_address\n\ndef transform_hex_to_base58(input):\n if input is None:\n return None\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n byte_array = bytes.fromhex(input)\n num = int.from_bytes(byte_array, \\'big\\')\n\n encoded = \\'\\'\n while num > 0:\n num, remainder = divmod(num, 58)\n encoded = ALPHABET[remainder] + encoded\n\n for byte in byte_array:\n if byte == 0:\n encoded = \\'1\\' + encoded\n else:\n break\n\n return encoded\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_detect_overflowed_responses(\n file_url STRING,\n index_cols ARRAY\n )\n COPY GRANTS\n RETURNS ARRAY\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.11\\'\nCOMMENT = \\'Detect overflowed responses larger than 16MB\\'\nPACKAGES = (\\'snowflake-snowpark-python\\', \\'pandas\\')\nHANDLER = \\'main\\'\n\n AS\n $$\n \n\nimport pandas as pd\nfrom snowflake.snowpark.files import SnowflakeFile\n\nVARCHAR_MAX = 16_777_216\ndef main(file_url, index_cols):\n with SnowflakeFile.open(file_url, \\'rb\\') as f:\n df = pd.read_json(f, lines=True, compression=\\'gzip\\')\n data_length = df[\"data\"].astype(str).apply(len)\n return df[data_length > VARCHAR_MAX][index_cols].values.tolist()\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udtf_flatten_overflowed_responses(\n file_url STRING,\n index_cols ARRAY,\n index_vals ARRAY\n )\n COPY GRANTS\n RETURNS table(\n index_vals ARRAY,\n block_number NUMBER,\n metadata OBJECT,\n seq NUMBER,\n key STRING,\n path STRING,\n index NUMBER,\n value_ VARIANT\n )\n\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.11\\'\nCOMMENT = \\'Flatten rows from a JSON file with overflowed responses larger than 16MB\\'\nPACKAGES = (\\'snowflake-snowpark-python\\', \\'pandas\\', \\'simplejson\\', \\'numpy\\')\nHANDLER = \\'FlattenRows\\'\n\n AS\n $$\n \n\nimport logging\nimport simplejson as json\n\nimport numpy as np\nimport pandas as pd\nfrom snowflake.snowpark.files import SnowflakeFile\n\nVARCHAR_MAX = 16_777_216\n\nlogger = logging.getLogger(\"udtf_flatten_overflowed_responses\")\n\nclass Flatten:\n \"\"\"\n Recursive function to flatten a nested JSON file\n \"\"\"\n\n def __init__(self, mode: str, exploded_key: list) -> None:\n self.mode = mode\n self.exploded_key = exploded_key\n\n def _flatten_response(\n self,\n response_key: str,\n responses: str,\n block_number: int,\n metadata: dict,\n seq_index: int = 0,\n path: str = \"\",\n ):\n \"\"\"\n Example:\n\n input: {\"a\":1, \"b\":[77,88], \"c\": {\"d\":\"X\"}}\n\n output:\n - SEQ: A unique sequence number associated with the input record; the sequence is not guaranteed to be gap-free or ordered in any particular way.\n - KEY: For maps or objects, this column contains the key to the exploded value.\n - PATH: The path to the element within a data structure which needs to be flattened.\n - INDEX: The index of the element, if it is an array; otherwise NULL.\n - VALUE_: The value of the element of the flattened array/object.\n\n \"\"\"\n exploded_data = []\n if self.mode == \"array\":\n check_mode = isinstance(responses, list)\n elif self.mode == \"dict\":\n check_mode = isinstance(responses, dict)\n elif self.mode == \"both\":\n check_mode = isinstance(responses, list) or isinstance(responses, dict)\n\n if check_mode:\n if isinstance(responses, dict):\n looped_keys = responses.keys()\n for key in looped_keys:\n next_path = f\"{path}.{key}\" if path else key\n index = None\n exploded_data.append(\n {\n \"block_number\": block_number,\n \"metadata\": metadata,\n \"seq\": seq_index,\n \"key\": key,\n \"path\": next_path,\n \"index\": index,\n \"value_\": responses[key],\n }\n )\n exploded_data.extend(\n self._flatten_response(\n key,\n responses[key],\n block_number,\n metadata,\n seq_index,\n next_path,\n )\n )\n\n elif isinstance(responses, list):\n looped_keys = range(len(responses))\n if response_key in self.exploded_key or len(self.exploded_key) == 0:\n for item_i, item in enumerate(responses):\n if response_key == \"result\":\n seq_index += 1\n index = item_i\n exploded_data.append(\n {\n \"block_number\": block_number,\n \"metadata\": metadata,\n \"seq\": seq_index,\n \"key\": None,\n \"path\": f\"{path}[{item_i}]\",\n \"index\": index,\n \"value_\": item,\n }\n )\n exploded_data.extend(\n self._flatten_response(\n item_i,\n item,\n block_number,\n metadata,\n seq_index,\n f\"{path}[{item_i}]\",\n )\n )\n\n return exploded_data\n\nclass FlattenRows:\n \"\"\"\n Recursive function to flatten a given JSON file from Snowflake stage\n \"\"\"\n def process(self, file_url: str, index_cols: list, index_vals: list):\n with SnowflakeFile.open(file_url, \\'rb\\') as f:\n df = pd.read_json(f, lines=True, compression=\\'gzip\\')\n\n df.set_index(index_cols, inplace=True, drop=False)\n df = df.loc[index_vals]\n\n flattener = Flatten(mode=\"both\", exploded_key=[])\n\n df[\"value_\"] = df.apply(\n lambda x: flattener._flatten_response(\n block_number=x[\"block_number\"], metadata=x[\"metadata\"], responses=x[\"data\"], response_key=None\n ),\n axis=\"columns\",\n )\n df[\"value_\"] = df[\"value_\"].apply(pd.DataFrame.from_records)\n df[\"index_cols\"] = df.index\n df = df[[\"index_cols\", \"value_\"]]\n flattened = pd.concat(\n df[\"value_\"].values.tolist(), keys=df[\"index_cols\"].values.tolist()\n ).droplevel(-1)\n\n cleansed = flattened.replace({np.nan: None})\n\n overflow = cleansed[\"value_\"].astype(str).apply(len) > VARCHAR_MAX\n\n cleansed.loc[overflow, [\"value_\"]] = None\n temp_index_cols = list(range(len(index_cols)))\n cleansed = cleansed.reset_index(names=temp_index_cols, drop=False)\n cleansed[\"index_cols\"] = cleansed[temp_index_cols].apply(list, axis=1)\n cleansed.drop(columns=temp_index_cols, inplace=True, errors=\"ignore\")\n return list(cleansed[np.roll(cleansed.columns.values, 1).tolist()].itertuples(index=False, name=None))\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_stablecoin_data_parse(\n peggeddata_content STRING\n )\n COPY GRANTS\n RETURNS TABLE (\n id STRING,\n name STRING,\n address STRING,\n symbol STRING,\n onCoinGecko BOOLEAN,\n gecko_id STRING,\n cmcId STRING,\n pegType STRING,\n pegMechanism STRING,\n priceSource STRING,\n deadFrom STRING,\n delisted BOOLEAN,\n deprecated BOOLEAN,\n doublecounted BOOLEAN\n)\n\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.10\\'\nHANDLER = \\'udf_stablecoin_data_parse\\'\n\n AS\n $$\n \nimport re\n\nclass udf_stablecoin_data_parse:\n def process(self, peggeddata_content):\n \"\"\"Main parsing function\"\"\"\n \n def extract_field_value(obj_text, field_name):\n \"\"\"Extract field value from object text using regex patterns\"\"\"\n \n # Handle different field patterns\n patterns = [\n rf\\'{field_name}\\\\s*:\\\\s*\"([^\"]*)\"\\',\n rf\"{field_name}\\\\s*:\\\\s*\\'([^\\']*)\\'\",\n rf\\'{field_name}\\\\s*:\\\\s*`([^`]*)`\\',\n rf\\'{field_name}\\\\s*:\\\\s*(true|false|null|undefined)\\',\n rf\\'{field_name}\\\\s*:\\\\s*([^,}}\\\\n]+)\\'\n ]\n \n for pattern in patterns:\n match = re.search(pattern, obj_text, re.IGNORECASE | re.DOTALL)\n if match:\n value = match.group(1).strip()\n \n # Clean up the value\n value = re.sub(r\\'[,}}\\\\n]\\', \\'\\', value).strip()\n \n if value.lower() in (\\'null\\', \\'undefined\\', \\'\\'):\n return None\n \n # Handle boolean values\n if value.lower() == \\'true\\':\n return True\n if value.lower() == \\'false\\':\n return False\n \n return value\n \n return None\n\n def convert_value(value, expected_type):\n \"\"\"Convert value to appropriate type\"\"\"\n if value is None:\n return None\n \n if expected_type == \\'BOOLEAN\\':\n if isinstance(value, bool):\n return value\n if isinstance(value, str):\n lower = value.lower()\n if lower == \\'true\\':\n return True\n if lower == \\'false\\':\n return False\n return None\n \n return str(value) if value is not None else None\n\n try:\n # Find the main array content - make the regex non-greedy but capture everything\n array_match = re.search(r\\'export\\\\s+default\\\\s*\\\\[(.*)\\\\];?\\\\s*$\\', peggeddata_content, re.DOTALL)\n if not array_match:\n raise Exception(\\'Could not find exported array in peggedData content\\')\n \n array_content = array_match.group(1).strip()\n \n # Use a simpler regex-based approach to split objects\n # Remove comments and clean up the array content first\n # Instead of removing line comments entirely, just remove the // markers but keep the content\n clean_content = re.sub(r\\'^\\\\s*//\\\\s*\\', \\'\\', array_content, flags=re.MULTILINE) # Remove // at start of lines\n clean_content = re.sub(r\\'\\\\n\\\\s*//\\\\s*\\', \\'\\\\n\\', clean_content) # Remove // from middle of lines\n # Instead of removing block comments entirely, just remove the comment markers but keep the content\n clean_content = re.sub(r\\'/\\\\*\\', \\'\\', clean_content) # Remove opening block comment markers\n clean_content = re.sub(r\\'\\\\*/\\', \\'\\', clean_content) # Remove closing block comment markers\n \n # Find all objects using regex - look for {...} patterns\n # This is more reliable than manual parsing\n object_pattern = r\\'\\\\{[^{}]*(?:\\\\{[^{}]*\\\\}[^{}]*)*\\\\}\\'\n matches = re.finditer(object_pattern, clean_content, re.DOTALL)\n \n objects = []\n for match in matches:\n obj_text = match.group(0).strip()\n if obj_text and len(obj_text) > 10: # Filter out small matches\n objects.append(obj_text)\n \n # If the simple regex didn\\'t work, try a more complex nested approach\n if not objects:\n # More complex regex for nested objects\n nested_pattern = r\\'\\\\{(?:[^{}]|(?:\\\\{[^{}]*\\\\}))*\\\\}\\'\n nested_matches = re.findall(nested_pattern, clean_content, re.DOTALL)\n objects = [obj.strip() for obj in nested_matches if len(obj.strip()) > 20]\n \n # Still no objects? Try manual parsing with better logic\n if not objects:\n objects = []\n current_object = \\'\\'\n brace_count = 0\n in_string = False\n string_char = \\'\\'\n i = 0\n \n while i < len(clean_content):\n char = clean_content[i]\n \n # Handle string literals\n if not in_string and char in (\\'\"\\', \"\\'\", \\'`\\'):\n in_string = True\n string_char = char\n elif in_string and char == string_char:\n # Check if it\\'s escaped\n if i > 0 and clean_content[i-1] != \\'\\\\\\\\\\':\n in_string = False\n string_char = \\'\\'\n \n # Handle braces only when not in string\n if not in_string:\n if char == \\'{\\':\n if brace_count == 0:\n current_object = \\'{\\' # Start new object\n else:\n current_object += char\n brace_count += 1\n elif char == \\'}\\':\n current_object += char\n brace_count -= 1\n if brace_count == 0 and current_object.strip():\n # Complete object found\n objects.append(current_object.strip())\n current_object = \\'\\'\n elif brace_count > 0:\n current_object += char\n else:\n if brace_count > 0:\n current_object += char\n \n i += 1\n \n if not objects:\n # Last resort: try splitting on id: pattern\n id_splits = re.split(r\\'\\\\n\\\\s*id:\\\\s*[\"\\\\\\']\\', clean_content)\n if len(id_splits) > 1:\n objects = []\n for i, part in enumerate(id_splits[1:], 1): # Skip first empty part\n # Try to reconstruct the object\n obj_start = clean_content.find(f\\'id:\\', clean_content.find(part))\n if obj_start > 0:\n # Look backwards for opening brace\n brace_start = clean_content.rfind(\\'{\\', 0, obj_start)\n if brace_start >= 0:\n # Look forward for matching closing brace\n brace_count = 0\n for j in range(brace_start, len(clean_content)):\n if clean_content[j] == \\'{\\':\n brace_count += 1\n elif clean_content[j] == \\'}\\':\n brace_count -= 1\n if brace_count == 0:\n obj_text = clean_content[brace_start:j+1].strip()\n if len(obj_text) > 20:\n objects.append(obj_text)\n break\n \n if not objects:\n raise Exception(f\\'No objects found after all parsing attempts. Sample content: {clean_content[:500]}...\\')\n \n # Process each object and extract the required fields\n for i, obj_text in enumerate(objects):\n try:\n data = {\n \\'id\\': extract_field_value(obj_text, \\'id\\'),\n \\'name\\': extract_field_value(obj_text, \\'name\\'),\n \\'address\\': extract_field_value(obj_text, \\'address\\'),\n \\'symbol\\': extract_field_value(obj_text, \\'symbol\\'),\n \\'onCoinGecko\\': extract_field_value(obj_text, \\'onCoinGecko\\'),\n \\'gecko_id\\': extract_field_value(obj_text, \\'gecko_id\\'),\n \\'cmcId\\': extract_field_value(obj_text, \\'cmcId\\'),\n \\'pegType\\': extract_field_value(obj_text, \\'pegType\\'),\n \\'pegMechanism\\': extract_field_value(obj_text, \\'pegMechanism\\'),\n \\'priceSource\\': extract_field_value(obj_text, \\'priceSource\\'),\n \\'deadFrom\\': extract_field_value(obj_text, \\'deadFrom\\'),\n \\'delisted\\': extract_field_value(obj_text, \\'delisted\\'),\n \\'deprecated\\': extract_field_value(obj_text, \\'deprecated\\'),\n \\'doublecounted\\': extract_field_value(obj_text, \\'doublecounted\\')\n }\n \n # Only include objects that have at least id and name\n if data[\\'id\\'] and data[\\'name\\']:\n yield (\n convert_value(data[\\'id\\'], \\'STRING\\'),\n convert_value(data[\\'name\\'], \\'STRING\\'),\n convert_value(data[\\'address\\'], \\'STRING\\'),\n convert_value(data[\\'symbol\\'], \\'STRING\\'),\n convert_value(data[\\'onCoinGecko\\'], \\'BOOLEAN\\'),\n convert_value(data[\\'gecko_id\\'], \\'STRING\\'),\n convert_value(data[\\'cmcId\\'], \\'STRING\\'),\n convert_value(data[\\'pegType\\'], \\'STRING\\'),\n convert_value(data[\\'pegMechanism\\'], \\'STRING\\'),\n convert_value(data[\\'priceSource\\'], \\'STRING\\'),\n convert_value(data[\\'deadFrom\\'], \\'STRING\\'),\n convert_value(data[\\'delisted\\'], \\'BOOLEAN\\'),\n convert_value(data[\\'deprecated\\'], \\'BOOLEAN\\'),\n convert_value(data[\\'doublecounted\\'], \\'BOOLEAN\\')\n )\n \n except Exception as obj_error:\n # Skip malformed objects but continue processing\n continue\n \n except Exception as error:\n raise Exception(f\\'Error parsing peggedData content: {str(error)}\\')\n\n $$;','END') AS ddl,\nmd5(ddl) AS ddl_hash,\nsysdate() as ddl_created_at\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_utils._datashare___create_gold": {"database": "polygon", "schema": "_datashare", "name": "_datashare___create_gold", "resource_type": "model", "package_name": "fsc_utils", "path": "datashare/_datashare___create_gold.sql", "original_file_path": "models/datashare/_datashare___create_gold.sql", "unique_id": "model.fsc_utils._datashare___create_gold", "fqn": ["fsc_utils", "datashare", "_datashare___create_gold"], "alias": "_create_gold", "checksum": {"name": "sha256", "checksum": "e05db71a87f76f4cff0b9c4d1b83b975ef424d147379e2442907b1004f709887"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "merge", "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "ddl_hash", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "merge_update_columns": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "incremental_strategy": "merge", "unique_key": "ddl_hash", "merge_update_columns": []}, "created_at": 1764018296.6031218, "relation_name": "polygon._datashare._create_gold", "raw_code": "{{\n config(\n materialized = 'incremental',\n incremental_strategy = 'merge',\n unique_key = 'ddl_hash',\n merge_update_columns = [],\n )\n}}\n{% if execute %}\nSELECT\n$${{- fsc_utils.generate_datashare_ddl() -}}$$ AS ddl,\nmd5(ddl) AS ddl_hash,\nsysdate() as ddl_created_at\n{% else %}\nSELECT\nnull as ddl,\nnull as ddl_hash,\nnull as ddl_created_at\nfrom dual limit 0\n{% endif %}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_utils.generate_datashare_ddl"], "nodes": []}, "compiled_path": "target/compiled/fsc_utils/models/datashare/_datashare___create_gold.sql", "compiled": true, "compiled_code": "\n\nSELECT\n$$\nBEGIN\nCREATE DATABASE IF NOT EXISTS __NEW__;\nCREATE SCHEMA IF NOT EXISTS __NEW__.nft;\nCREATE SCHEMA IF NOT EXISTS __NEW__.silver;\nCREATE SCHEMA IF NOT EXISTS __NEW__.core;\nCREATE SCHEMA IF NOT EXISTS __NEW__.admin;\nCREATE SCHEMA IF NOT EXISTS __NEW__.price;\nCREATE SCHEMA IF NOT EXISTS __NEW__.test_gold;\nCREATE SCHEMA IF NOT EXISTS __NEW__._block_lookback;\nCREATE SCHEMA IF NOT EXISTS __NEW__.defi;\nCREATE SCHEMA IF NOT EXISTS __NEW__.silver_bridge;\nCREATE SCHEMA IF NOT EXISTS __NEW__.silver_stablecoins;\nCREATE SCHEMA IF NOT EXISTS __NEW__.balances;\nCREATE SCHEMA IF NOT EXISTS __NEW__.silver_dex;\nCREATE SCHEMA IF NOT EXISTS __NEW__.silver_lending;\nCREATE SCHEMA IF NOT EXISTS __NEW__.stats;\nCREATE SCHEMA IF NOT EXISTS __NEW__.silver_stats;\n\n\n \n \n create or replace view __NEW__.NFT.EZ_NFT_SALES\n \n \n \n(\n \n \"BLOCK_NUMBER\" COMMENT \\$\\$Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.\\$\\$, \n \n \"BLOCK_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.\\$\\$, \n \n \"TX_HASH\" COMMENT \\$\\$Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`\\$\\$, \n \n \"EVENT_INDEX\" COMMENT \\$\\$Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```\\$\\$, \n \n \"EVENT_TYPE\" COMMENT \\$\\$The specific type of NFT transaction that occurred. Common values include 'sale', 'bid_won', 'redeem', and 'mint'.\n\nExample: 'sale'\\$\\$, \n \n \"PLATFORM_ADDRESS\" COMMENT \\$\\$The smart contract address of the marketplace facilitating the sale. Platforms may have multiple contracts for different versions.\n\nExample: '0x00000000006c3852cbef3e08e8df289169ede581'\\$\\$, \n \n \"PLATFORM_NAME\" COMMENT \\$\\$The marketplace or platform where the NFT sale occurred. Standardized to lowercase with no spaces.\n\nExample: 'opensea'\\$\\$, \n \n \"PLATFORM_EXCHANGE_VERSION\" COMMENT \\$\\$The version identifier of the marketplace contract. Tracks protocol versions and upgrades.\n\nExample: 'seaport_1_5'\\$\\$, \n \n \"AGGREGATOR_NAME\" COMMENT \\$\\$The NFT aggregator platform that routed the transaction. NULL indicates direct platform interaction.\n\nExample: 'gem'\\$\\$, \n \n \"SELLER_ADDRESS\" COMMENT \\$\\$The blockchain address that sold the NFT.\n\nExample: '0x1234567890123456789012345678901234567890'\\$\\$, \n \n \"BUYER_ADDRESS\" COMMENT \\$\\$The blockchain address that purchased the NFT.\n\nExample: '0x1234567890123456789012345678901234567890'\\$\\$, \n \n \"CONTRACT_ADDRESS\" COMMENT \\$\\$The smart contract address of the NFT collection. Supports ERC-721, ERC-1155, and custom implementations.\n\nExample: '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'\\$\\$, \n \n \"NAME\" COMMENT \\$\\$The name of the NFT collection or project. May be NULL for unverified collections.\n\nExample: 'Bored Ape Yacht Club'\\$\\$, \n \n \"TOKEN_ID\" COMMENT \\$\\$The unique identifier of the specific NFT within its collection. Format is numeric string.\n\nExample: '1234'\\$\\$, \n \n \"QUANTITY\" COMMENT \\$\\$The number of tokens sold in the transaction. Primarily relevant for ERC-1155 tokens.\n\nExample: '1'\\$\\$, \n \n \"TOKEN_STANDARD\" COMMENT \\$\\$The technical standard implemented by the NFT contract. Common values include 'erc721', 'erc1155', 'cryptopunks', and 'legacy'.\n\nExample: 'erc721'\\$\\$, \n \n \"CURRENCY_SYMBOL\" COMMENT \\$\\$The symbol of the token used for payment.\n\nExample: 'ETH'\\$\\$, \n \n \"CURRENCY_ADDRESS\" COMMENT \\$\\$The contract address of the payment token. Shows 'ETH' for native ETH payments.\n\nExample: '0xa0b86a33e6776a1e7f9f0b8b8b8b8b8b8b8b8b8b'\\$\\$, \n \n \"PRICE\" COMMENT \\$\\$The sale price in the payment currency, including platform and creator fees. Raw price before USD conversion.\n\nExample: 2.5\\$\\$, \n \n \"PRICE_USD\" COMMENT \\$\\$The sale price converted to USD at transaction time, including platform and creator fees. May be NULL for missing price data.\n\nExample: 4250.75\\$\\$, \n \n \"TOTAL_FEES\" COMMENT \\$\\$The combined platform and creator fees in the payment currency.\n\nExample: 0.125\\$\\$, \n \n \"PLATFORM_FEE\" COMMENT \\$\\$The fee charged by the marketplace in the payment currency. Typically 2-2.5% of sale price.\n\nExample: 0.05\\$\\$, \n \n \"CREATOR_FEE\" COMMENT \\$\\$The royalty fee paid to the collection creator in the payment currency. Typically 0-10% of sale price.\n\nExample: 0.075\\$\\$, \n \n \"TOTAL_FEES_USD\" COMMENT \\$\\$The combined platform and creator fees converted to USD.\n\nExample: 212.54\\$\\$, \n \n \"PLATFORM_FEE_USD\" COMMENT \\$\\$The marketplace fee converted to USD.\n\nExample: 85.02\\$\\$, \n \n \"CREATOR_FEE_USD\" COMMENT \\$\\$The royalty fee converted to USD.\n\nExample: 127.52\\$\\$, \n \n \"TX_FEE\" COMMENT \\$\\$Total fee paid for transaction execution in native token units.\n\nExample: 0.002\\$\\$, \n \n \"TX_FEE_USD\" COMMENT \\$\\$The transaction fee denominated in USD. Use only one instance per transaction to avoid overcounting.\n\nExample: 45.32\\$\\$, \n \n \"ORIGIN_FROM_ADDRESS\" COMMENT \\$\\$The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```\\$\\$, \n \n \"ORIGIN_TO_ADDRESS\" COMMENT \\$\\$The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.\\$\\$, \n \n \"ORIGIN_FUNCTION_SIGNATURE\" COMMENT \\$\\$Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls\\$\\$, \n \n \"EZ_NFT_SALES_ID\" COMMENT \\$\\$Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_type,\n platform_address,\n platform_name,\n platform_exchange_version,\n aggregator_name,\n seller_address,\n buyer_address,\n nft_address as contract_address,\n project_name as name,\n tokenId as token_id,\n coalesce(erc1155_value, '1')::STRING AS quantity,\n case when erc1155_value is null then 'erc721' else 'erc1155' end as token_standard,\n currency_symbol,\n currency_address,\n price,\n price_usd,\n total_fees,\n platform_fee,\n creator_fee,\n total_fees_usd,\n platform_fee_usd,\n creator_fee_usd,\n tx_fee, \n tx_fee_usd,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n COALESCE (\n complete_nft_sales_id,\n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(event_index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(nft_address as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(tokenId as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(platform_exchange_version as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT))\n ) AS ez_nft_sales_id,\n COALESCE(\n inserted_timestamp,\n '2000-01-01'\n ) AS inserted_timestamp,\n COALESCE(\n modified_timestamp,\n '2000-01-01'\n ) AS modified_timestamp\n\nFROM\n __SOURCE__.silver.complete_nft_sales\n )\n/* {\"app\": \"dbt\", \"dbt_snowflake_query_tags_version\": \"2.5.0\", \"dbt_version\": \"1.7.19\", \"project_name\": \"polygon_models\", \"target_name\": \"prod\", \"target_database\": \"polygon\", \"target_schema\": \"SILVER\", \"invocation_id\": \"fda5bd41-2cf0-443d-a777-801d488f78d6\", \"run_started_at\": \"2025-11-24T20:25:37.030750+00:00\", \"full_refresh\": false, \"which\": \"run\", \"node_name\": \"nft__ez_nft_sales\", \"node_alias\": \"ez_nft_sales\", \"node_package_name\": \"polygon_models\", \"node_original_file_path\": \"models/gold/NFT/nft__ez_nft_sales.sql\", \"node_database\": \"polygon\", \"node_schema\": \"nft\", \"node_id\": \"model.polygon_models.nft__ez_nft_sales\", \"node_resource_type\": \"model\", \"node_meta\": {\"database_tags\": {\"table\": {\"PURPOSE\": \"NFT\"}}}, \"node_tags\": [\"gold\", \"nft\", \"curated\", \"ez\"], \"invocation_command\": \"dbt run -m polygon_models,tag:curated fsc_evm,tag:curated\", \"node_refs\": [\"silver__complete_nft_sales\"], \"materialized\": \"view\", \"raw_code_hash\": \"b69d397be40529b4a7ac84bdc8a66c2c\"} */;\n\n\n \n \n create or replace view __NEW__.DEFI.EZ_BRIDGE_ACTIVITY\n \n \n \n(\n \n \"BLOCK_NUMBER\" COMMENT \\$\\$Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.\\$\\$, \n \n \"BLOCK_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.\\$\\$, \n \n \"ORIGIN_FROM_ADDRESS\" COMMENT \\$\\$The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```\\$\\$, \n \n \"ORIGIN_TO_ADDRESS\" COMMENT \\$\\$The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.\\$\\$, \n \n \"ORIGIN_FUNCTION_SIGNATURE\" COMMENT \\$\\$Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls\\$\\$, \n \n \"TX_HASH\" COMMENT \\$\\$Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`\\$\\$, \n \n \"EVENT_INDEX\" COMMENT \\$\\$Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```\\$\\$, \n \n \"BRIDGE_ADDRESS\" COMMENT \\$\\$The smart contract address handling the bridge operation.\n\nExample: '0x296f55f8fb28e498b858d0bcda06d955b2cb3f97'\\$\\$, \n \n \"EVENT_NAME\" COMMENT \\$\\$The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```\\$\\$, \n \n \"PLATFORM\" COMMENT \\$\\$The protocol or application facilitating the cross-chain bridge transfer.\n\nExample: 'stargate'\\$\\$, \n \n \"PROTOCOL\" COMMENT \\$\\$\\$\\$, \n \n \"PROTOCOL_VERSION\" COMMENT \\$\\$\\$\\$, \n \n \"SENDER\" COMMENT \\$\\$The address that directly sent tokens to the bridge contract.\n\nExample: '0xabcdefabcdefabcdefabcdefabcdefabcdefabcd'\\$\\$, \n \n \"RECEIVER\" COMMENT \\$\\$The address designated to receive tokens on the destination chain (or on the source chain, for intermediate steps).\n\nExample: '0x9876543210987654321098765432109876543210'\\$\\$, \n \n \"DESTINATION_CHAIN_RECEIVER\" COMMENT \\$\\$The final recipient address on the destination blockchain.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'\\$\\$, \n \n \"DESTINATION_CHAIN\" COMMENT \\$\\$The target blockchain network for the bridged assets.\n\nExample: 'arbitrum'\\$\\$, \n \n \"DESTINATION_CHAIN_ID\" COMMENT \\$\\$The numeric identifier for the destination blockchain.\n\nExample: 42161\\$\\$, \n \n \"TOKEN_ADDRESS\" COMMENT \\$\\$The contract address of the token being bridged.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'\\$\\$, \n \n \"TOKEN_SYMBOL\" COMMENT \\$\\$The symbol identifier for the bridged token.\n\nExample: 'USDC'\\$\\$, \n \n \"AMOUNT_UNADJ\" COMMENT \\$\\$The raw token amount without decimal adjustment.\n\nExample: 1000000\\$\\$, \n \n \"AMOUNT\" COMMENT \\$\\$The decimal-adjusted amount of tokens bridged.\n\nExample: 1.0\\$\\$, \n \n \"AMOUNT_USD\" COMMENT \\$\\$The hourly close USD value of bridged tokens at the time of the transaction.\n\nExample: 1000.50\\$\\$, \n \n \"TOKEN_IS_VERIFIED\" COMMENT \\$\\$Whether the token is verified by the Flipside team.\n\nExample: true\\$\\$, \n \n \"EZ_BRIDGE_ACTIVITY_ID\" COMMENT \\$\\$Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```\\$\\$\n \n)\n\n copy grants as (\n \n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {\n \"database_tags\": {\n \"table\": {\n \"PURPOSE\": \"BRIDGE\"\n }\n }\n },\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"defi\",\n \"bridge\",\n \"curated\",\n \"ez\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ \n 'database_tags':{\n 'table':{\n 'PURPOSE': 'BRIDGE'\n } } },\n tags = ['gold','defi','bridge','curated','ez']\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n platform,\n protocol,\n version AS protocol_version,\n sender,\n receiver,\n destination_chain_receiver,\n COALESCE(\n c.standardized_name,\n b.destination_chain\n ) AS destination_chain,\n destination_chain_id,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n ROUND(\n CASE\n WHEN amount_usd < 1e+15 THEN amount_usd\n ELSE NULL\n END,\n 2\n ) AS amount_usd,\n token_is_verified,\n complete_bridge_activity_id AS ez_bridge_activity_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n {{ ref('silver_bridge__complete_bridge_activity') }}\n b\n LEFT JOIN {{ ref('silver_bridge__standard_chain_seed') }} C\n ON b.destination_chain = C.variation\n*/\n\n\n\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n platform,\n protocol,\n version AS protocol_version,\n sender,\n receiver,\n destination_chain_receiver,\n COALESCE(\n c.standardized_name,\n b.destination_chain\n ) AS destination_chain,\n destination_chain_id,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n ROUND(\n CASE\n WHEN amount_usd < 1e+15 THEN amount_usd\n ELSE NULL\n END,\n 2\n ) AS amount_usd,\n token_is_verified,\n complete_bridge_activity_id AS ez_bridge_activity_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n __SOURCE__.silver_bridge.complete_bridge_activity\n b\n LEFT JOIN __SOURCE__.silver_bridge.standard_chain_seed C\n ON b.destination_chain = C.variation\n )\n/* {\"app\": \"dbt\", \"dbt_snowflake_query_tags_version\": \"2.5.0\", \"dbt_version\": \"1.7.19\", \"project_name\": \"polygon_models\", \"target_name\": \"prod\", \"target_database\": \"polygon\", \"target_schema\": \"SILVER\", \"invocation_id\": \"fda5bd41-2cf0-443d-a777-801d488f78d6\", \"run_started_at\": \"2025-11-24T20:25:37.030750+00:00\", \"full_refresh\": false, \"which\": \"run\", \"node_name\": \"defi__ez_bridge_activity\", \"node_alias\": \"ez_bridge_activity\", \"node_package_name\": \"fsc_evm\", \"node_original_file_path\": \"models/curated_package/defi/bridge/gold/defi__ez_bridge_activity.sql\", \"node_database\": \"polygon\", \"node_schema\": \"defi\", \"node_id\": \"model.fsc_evm.defi__ez_bridge_activity\", \"node_resource_type\": \"model\", \"node_meta\": {\"database_tags\": {\"table\": {\"PURPOSE\": \"BRIDGE\"}}}, \"node_tags\": [\"gold\", \"defi\", \"bridge\", \"curated\", \"ez\"], \"invocation_command\": \"dbt run -m polygon_models,tag:curated fsc_evm,tag:curated\", \"node_refs\": [\"silver_bridge__complete_bridge_activity\", \"silver_bridge__standard_chain_seed\"], \"materialized\": \"view\", \"raw_code_hash\": \"7757423c1ce0aee9efe073bdc413389c\"} */;\n\n\n \n \n create or replace view __NEW__.DEFI.EZ_LENDING_DEPOSITS\n \n \n \n(\n \n \"BLOCK_NUMBER\" COMMENT \\$\\$Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.\\$\\$, \n \n \"BLOCK_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.\\$\\$, \n \n \"TX_HASH\" COMMENT \\$\\$Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`\\$\\$, \n \n \"CONTRACT_ADDRESS\" COMMENT \\$\\$Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events\\$\\$, \n \n \"EVENT_NAME\" COMMENT \\$\\$The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```\\$\\$, \n \n \"EVENT_INDEX\" COMMENT \\$\\$Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```\\$\\$, \n \n \"ORIGIN_FUNCTION_SIGNATURE\" COMMENT \\$\\$Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls\\$\\$, \n \n \"ORIGIN_FROM_ADDRESS\" COMMENT \\$\\$The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```\\$\\$, \n \n \"ORIGIN_TO_ADDRESS\" COMMENT \\$\\$The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.\\$\\$, \n \n \"PLATFORM\" COMMENT \\$\\$The lending protocol where the transaction occurred.\n\nExample: 'aave'\\$\\$, \n \n \"PROTOCOL_MARKET\" COMMENT \\$\\$The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'\\$\\$, \n \n \"DEPOSITOR\" COMMENT \\$\\$The address that supplied liquidity to the lending protocol.\n\nExample: '0x9876543210987654321098765432109876543210'\\$\\$, \n \n \"TOKEN_ADDRESS\" COMMENT \\$\\$The contract address of the underlying asset being lent or borrowed.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'\\$\\$, \n \n \"TOKEN_SYMBOL\" COMMENT \\$\\$The ticker symbol of the asset involved in the lending transaction.\n\nExample: 'USDC'\\$\\$, \n \n \"AMOUNT_UNADJ\" COMMENT \\$\\$The raw amount of tokens borrowed or repaid without decimal adjustment.\n\nExample: 1000000000\\$\\$, \n \n \"AMOUNT\" COMMENT \\$\\$The decimal-adjusted quantity of tokens in the transaction.\n\nExample: 1000.5\\$\\$, \n \n \"AMOUNT_USD\" COMMENT \\$\\$The USD value of tokens at transaction time.\n\nExample: 1500.75\\$\\$, \n \n \"EZ_LENDING_DEPOSITS_ID\" COMMENT \\$\\$Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n platform,\n protocol_market,\n depositor,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n complete_lending_deposits_id AS ez_lending_deposits_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n __SOURCE__.silver_lending.complete_lending_deposits\n )\n/* {\"app\": \"dbt\", \"dbt_snowflake_query_tags_version\": \"2.5.0\", \"dbt_version\": \"1.7.19\", \"project_name\": \"polygon_models\", \"target_name\": \"prod\", \"target_database\": \"polygon\", \"target_schema\": \"SILVER\", \"invocation_id\": \"fda5bd41-2cf0-443d-a777-801d488f78d6\", \"run_started_at\": \"2025-11-24T20:25:37.030750+00:00\", \"full_refresh\": false, \"which\": \"run\", \"node_name\": \"defi__ez_lending_deposits\", \"node_alias\": \"ez_lending_deposits\", \"node_package_name\": \"fsc_evm\", \"node_original_file_path\": \"models/curated_package/defi/lending/gold/defi__ez_lending_deposits.sql\", \"node_database\": \"polygon\", \"node_schema\": \"defi\", \"node_id\": \"model.fsc_evm.defi__ez_lending_deposits\", \"node_resource_type\": \"model\", \"node_meta\": {\"database_tags\": {\"table\": {\"PURPOSE\": \"LENDING, DEPOSITS\"}}}, \"node_tags\": [\"gold\", \"defi\", \"lending\", \"curated\", \"ez\"], \"invocation_command\": \"dbt run -m polygon_models,tag:curated fsc_evm,tag:curated\", \"node_refs\": [\"silver_lending__complete_lending_deposits\"], \"materialized\": \"view\", \"raw_code_hash\": \"0d88053767b299f9ac4e26c035e927b5\"} */;\n\n\n \n \n create or replace view __NEW__.DEFI.DIM_DEX_LIQUIDITY_POOLS\n \n \n \n(\n \n \"CREATION_BLOCK\" COMMENT \\$\\$The block number when the liquidity pool was first created.\n\nExample: 12369739\\$\\$, \n \n \"CREATION_TIME\" COMMENT \\$\\$The timestamp when the liquidity pool was deployed.\n\nExample: '2021-05-05 12:34:56.000'\\$\\$, \n \n \"CREATION_TX\" COMMENT \\$\\$The transaction hash that deployed this liquidity pool.\n\nExample: '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'\\$\\$, \n \n \"PLATFORM\" COMMENT \\$\\$The DEX protocol where the swap occurred.\n\nExample: 'uniswap_v3'\\$\\$, \n \n \"PROTOCOL\" COMMENT \\$\\$\\$\\$, \n \n \"PROTOCOL_VERSION\" COMMENT \\$\\$\\$\\$, \n \n \"FACTORY_ADDRESS\" COMMENT \\$\\$The factory contract that deployed this liquidity pool.\n\nExample: '0x1f98431c8ad98523631ae4a59f267346ea31f984'\\$\\$, \n \n \"POOL_ADDRESS\" COMMENT \\$\\$The liquidity pool contract address where the swap executed.\n\nExample: '0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8'\\$\\$, \n \n \"POOL_NAME\" COMMENT \\$\\$Human-readable name for the liquidity pool.\n\nExample: 'WETH/USDC 0.05%'\\$\\$, \n \n \"TOKENS\" COMMENT \\$\\$JSON object containing token contract addresses in the pool.\n\nExample: {\"token0\": \"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2\", \"token1\": \"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\"}\\$\\$, \n \n \"SYMBOLS\" COMMENT \\$\\$JSON object containing token symbols for the pool pair.\n\nExample: {\"token0\": \"WETH\", \"token1\": \"USDC\"}\\$\\$, \n \n \"DECIMALS\" COMMENT \\$\\$JSON object containing decimal places for each token in the pool.\n\nExample: {\"token0\": 18, \"token1\": 6}\\$\\$, \n \n \"DIM_DEX_LIQUIDITY_POOLS_ID\" COMMENT \\$\\$Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```\\$\\$\n \n)\n\n copy grants as (\n \n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {\n \"database_tags\": {\n \"table\": {\n \"PURPOSE\": \"DEX, LIQUIDITY, POOLS, LP, SWAPS\"\n }\n }\n },\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"defi\",\n \"dex\",\n \"curated\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'DEX, LIQUIDITY, POOLS, LP, SWAPS',\n } } },\n tags = ['gold','defi','dex','curated']\n) }}\n\nSELECT\n block_number AS creation_block,\n block_timestamp AS creation_time,\n tx_hash AS creation_tx,\n platform,\n protocol,\n version AS protocol_version,\n contract_address AS factory_address,\n pool_address,\n pool_name,\n tokens,\n symbols,\n decimals,\n complete_dex_liquidity_pools_id AS dim_dex_liquidity_pools_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n {{ ref('silver_dex__complete_dex_liquidity_pools') }}\n*/\n\n\n\nSELECT\n block_number AS creation_block,\n block_timestamp AS creation_time,\n tx_hash AS creation_tx,\n platform,\n protocol,\n version AS protocol_version,\n contract_address AS factory_address,\n pool_address,\n pool_name,\n tokens,\n symbols,\n decimals,\n complete_dex_liquidity_pools_id AS dim_dex_liquidity_pools_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n __SOURCE__.silver_dex.complete_dex_liquidity_pools\n )\n/* {\"app\": \"dbt\", \"dbt_snowflake_query_tags_version\": \"2.5.0\", \"dbt_version\": \"1.7.19\", \"project_name\": \"polygon_models\", \"target_name\": \"prod\", \"target_database\": \"polygon\", \"target_schema\": \"SILVER\", \"invocation_id\": \"fda5bd41-2cf0-443d-a777-801d488f78d6\", \"run_started_at\": \"2025-11-24T20:25:37.030750+00:00\", \"full_refresh\": false, \"which\": \"run\", \"node_name\": \"defi__dim_dex_liquidity_pools\", \"node_alias\": \"dim_dex_liquidity_pools\", \"node_package_name\": \"fsc_evm\", \"node_original_file_path\": \"models/curated_package/defi/dex/gold/defi__dim_dex_liquidity_pools.sql\", \"node_database\": \"polygon\", \"node_schema\": \"defi\", \"node_id\": \"model.fsc_evm.defi__dim_dex_liquidity_pools\", \"node_resource_type\": \"model\", \"node_meta\": {\"database_tags\": {\"table\": {\"PURPOSE\": \"DEX, LIQUIDITY, POOLS, LP, SWAPS\"}}}, \"node_tags\": [\"gold\", \"defi\", \"dex\", \"curated\"], \"invocation_command\": \"dbt run -m polygon_models,tag:curated fsc_evm,tag:curated\", \"node_refs\": [\"silver_dex__complete_dex_liquidity_pools\"], \"materialized\": \"view\", \"raw_code_hash\": \"17016c65f5128fefbd456580bb3d8d38\"} */;\n\n\n \n \n create or replace view __NEW__.DEFI.EZ_STABLECOINS_SUPPLY\n \n \n \n(\n \n \"BLOCK_DATE\" COMMENT \\$\\$The date of the daily supply snapshot. This corresponds with the MAX block_number from the previous day.\n\nExample: '2025-06-10'\\$\\$, \n \n \"CONTRACT_ADDRESS\" COMMENT \\$\\$The smart contract address of the stablecoin token.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'\\$\\$, \n \n \"SYMBOL\" COMMENT \\$\\$The symbol identifier for the stablecoin token.\n\nExample: 'USDC'\\$\\$, \n \n \"NAME\" COMMENT \\$\\$The full name of the stablecoin token.\n\nExample: 'USD Coin'\\$\\$, \n \n \"LABEL\" COMMENT \\$\\$A combined display label containing both symbol and name, as a stablecoin unique identifier.\n\nExample: 'USDC: USD Coin'\\$\\$, \n \n \"DECIMALS\" COMMENT \\$\\$The number of decimal places used by the token contract.\n\nExample: 6\\$\\$, \n \n \"TOTAL_SUPPLY\" COMMENT \\$\\$The total supply of the stablecoin on this blockchain as of the block_date, directly derived from `totalSupply` contract function calls.\n\nExample: 1500000000\\$\\$, \n \n \"AMOUNT_MINTED\" COMMENT \\$\\$The amount of tokens minted daily.\n\nExample: 2000000000\\$\\$, \n \n \"AMOUNT_BURNED\" COMMENT \\$\\$The amount of tokens burned daily.\n\nExample: 500000000\\$\\$, \n \n \"AMOUNT_TRANSFERRED\" COMMENT \\$\\$The amount of tokens transferred daily.\n\nExample: 10000000000\\$\\$, \n \n \"AMOUNT_BLACKLISTED\" COMMENT \\$\\$The total amount of tokens held in blacklisted addresses.\n\nExample: 1000000\\$\\$, \n \n \"AMOUNT_IN_CEX\" COMMENT \\$\\$The amount of tokens held in centralized exchange addresses.\n\nExample: 300000000\\$\\$, \n \n \"AMOUNT_IN_BRIDGES\" COMMENT \\$\\$The amount of tokens held in bridge vaults and contracts.\n\nExample: 50000000\\$\\$, \n \n \"AMOUNT_IN_DEX_LIQUIDITY_POOLS\" COMMENT \\$\\$The amount of tokens deposited in decentralized exchange liquidity pools.\n\nExample: 200000000\\$\\$, \n \n \"AMOUNT_IN_LENDING_POOLS\" COMMENT \\$\\$The amount of tokens deposited in lending protocol pools.\n\nExample: 150000000\\$\\$, \n \n \"AMOUNT_IN_CONTRACTS\" COMMENT \\$\\$The amount of tokens held in all contracts (including other categorized contracts).\n\nExample: 100000000\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```\\$\\$, \n \n \"EZ_STABLECOINS_SUPPLY_ID\" COMMENT \\$\\$Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.\\$\\$\n \n)\n\n copy grants as (\n \n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"defi\",\n \"stablecoins\",\n \"heal\",\n \"curated_daily\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['gold','defi','stablecoins','heal','curated_daily']\n) }}\n\nSELECT\n block_date,\n contract_address,\n symbol,\n NAME,\n label,\n decimals,\n total_supply,\n amount_minted,\n amount_burned,\n amount_transferred,\n amount_blacklisted,\n amount_in_cex,\n amount_in_bridges,\n amount_in_dex_liquidity_pools,\n amount_in_lending_pools,\n amount_in_contracts,\n inserted_timestamp,\n modified_timestamp,\n stablecoins_supply_complete_id AS ez_stablecoins_supply_id\nFROM\n {{ ref('silver_stablecoins__supply_complete') }}\n*/\n\n\n\nSELECT\n block_date,\n contract_address,\n symbol,\n NAME,\n label,\n decimals,\n total_supply,\n amount_minted,\n amount_burned,\n amount_transferred,\n amount_blacklisted,\n amount_in_cex,\n amount_in_bridges,\n amount_in_dex_liquidity_pools,\n amount_in_lending_pools,\n amount_in_contracts,\n inserted_timestamp,\n modified_timestamp,\n stablecoins_supply_complete_id AS ez_stablecoins_supply_id\nFROM\n __SOURCE__.silver_stablecoins.supply_complete\n )\n/* {\"app\": \"dbt\", \"dbt_snowflake_query_tags_version\": \"2.5.0\", \"dbt_version\": \"1.7.7\", \"project_name\": \"polygon_models\", \"target_name\": \"prod\", \"target_database\": \"POLYGON\", \"target_schema\": \"silver\", \"invocation_id\": \"4247abd9-5394-492f-9ca6-b9889787a7ae\", \"run_started_at\": \"2025-11-24T20:16:53.625340+00:00\", \"full_refresh\": true, \"which\": \"run\", \"node_name\": \"defi__ez_stablecoins_supply\", \"node_alias\": \"ez_stablecoins_supply\", \"node_package_name\": \"fsc_evm\", \"node_original_file_path\": \"models/curated_package/defi/stablecoins/gold/defi__ez_stablecoins_supply.sql\", \"node_database\": \"POLYGON\", \"node_schema\": \"defi\", \"node_id\": \"model.fsc_evm.defi__ez_stablecoins_supply\", \"node_resource_type\": \"model\", \"node_meta\": {}, \"node_tags\": [\"gold\", \"defi\", \"stablecoins\", \"heal\", \"curated_daily\"], \"invocation_command\": \"dbt run -m fsc_evm,tag:stablecoins --full-refresh -t prod\", \"node_refs\": [\"silver_stablecoins__supply_complete\"], \"materialized\": \"view\", \"raw_code_hash\": \"737855cf5a01cd0c5ce0465cdb95fa1c\"} */;\n\n\n \n \n create or replace view __NEW__.DEFI.EZ_DEX_SWAPS\n \n \n \n(\n \n \"BLOCK_NUMBER\" COMMENT \\$\\$Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.\\$\\$, \n \n \"BLOCK_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.\\$\\$, \n \n \"TX_HASH\" COMMENT \\$\\$Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`\\$\\$, \n \n \"ORIGIN_FUNCTION_SIGNATURE\" COMMENT \\$\\$Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls\\$\\$, \n \n \"ORIGIN_FROM_ADDRESS\" COMMENT \\$\\$The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```\\$\\$, \n \n \"ORIGIN_TO_ADDRESS\" COMMENT \\$\\$The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.\\$\\$, \n \n \"CONTRACT_ADDRESS\" COMMENT \\$\\$The contract address of the swap. This is the address of the contract that executed the swap, often a pool contract.\n\nExample: '0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8'\\$\\$, \n \n \"POOL_NAME\" COMMENT \\$\\$\\$\\$, \n \n \"EVENT_NAME\" COMMENT \\$\\$The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```\\$\\$, \n \n \"AMOUNT_IN_UNADJ\" COMMENT \\$\\$The raw, non-decimal adjusted amount of tokens provided in the swap.\n\nExample: 1000500000\\$\\$, \n \n \"AMOUNT_IN\" COMMENT \\$\\$The decimal-adjusted quantity of tokens provided by the trader in the swap.\n\nExample: 1000.5\\$\\$, \n \n \"AMOUNT_IN_USD\" COMMENT \\$\\$USD value of tokens provided in the swap at time of transaction.\n\nExample: 1500.75\\$\\$, \n \n \"AMOUNT_OUT_UNADJ\" COMMENT \\$\\$The raw, non-decimal adjusted amount of tokens received from the swap.\n\nExample: 650000000000000000\\$\\$, \n \n \"AMOUNT_OUT\" COMMENT \\$\\$The decimal-adjusted quantity of tokens received by the trader from the swap.\n\nExample: 0.65\\$\\$, \n \n \"AMOUNT_OUT_USD\" COMMENT \\$\\$USD value of tokens received from the swap at time of transaction.\n\nExample: 1498.25\\$\\$, \n \n \"SENDER\" COMMENT \\$\\$The address that initiated the swap transaction.\n\nExample: '0x7a250d5630b4cf539739df2c5dacb4c659f2488d'\\$\\$, \n \n \"TX_TO\" COMMENT \\$\\$The recipient address of the swapped tokens.\n\nExample: '0x1234567890123456789012345678901234567890'\\$\\$, \n \n \"EVENT_INDEX\" COMMENT \\$\\$Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```\\$\\$, \n \n \"PLATFORM\" COMMENT \\$\\$The DEX protocol where the swap occurred.\n\nExample: 'uniswap_v3'\\$\\$, \n \n \"PROTOCOL\" COMMENT \\$\\$The protocol used for the swap. This is the clean name of the protocol, not the platform, without the version.\n\nExample: 'uniswap'\\$\\$, \n \n \"PROTOCOL_VERSION\" COMMENT \\$\\$The version of the protocol used for the swap.\n\nExample: 'v3'\\$\\$, \n \n \"TOKEN_IN\" COMMENT \\$\\$The contract address of the token being sold in the swap.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'\\$\\$, \n \n \"TOKEN_IN_IS_VERIFIED\" COMMENT \\$\\$Whether the token in the swap is verified.\n\nExample: true\\$\\$, \n \n \"TOKEN_OUT\" COMMENT \\$\\$The contract address of the token being received from the swap.\n\nExample: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\\$\\$, \n \n \"TOKEN_OUT_IS_VERIFIED\" COMMENT \\$\\$Whether the token out of the swap is verified.\n\nExample: true\\$\\$, \n \n \"SYMBOL_IN\" COMMENT \\$\\$The ticker symbol of the token being sold/swapped from.\n\nExample: 'USDC'\\$\\$, \n \n \"SYMBOL_OUT\" COMMENT \\$\\$The ticker symbol of the token being bought/received.\n\nExample: 'WETH'\\$\\$, \n \n \"_LOG_ID\" COMMENT \\$\\$\\$\\$, \n \n \"EZ_DEX_SWAPS_ID\" COMMENT \\$\\$Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```\\$\\$\n \n)\n\n copy grants as (\n \n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {\n \"database_tags\": {\n \"table\": {\n \"PURPOSE\": \"DEX, SWAPS\"\n }\n }\n },\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"defi\",\n \"dex\",\n \"curated\",\n \"ez\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'DEX, SWAPS' } } },\n tags = ['gold','defi','dex','curated','ez']\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_name,\n event_name,\n amount_in_unadj,\n amount_in,\n ROUND(\n CASE\n WHEN (token_in <> '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n OR NOT token_in_is_verified)\n AND (\n amount_out_usd IS NULL\n OR ABS((amount_in_usd - amount_out_usd) / NULLIF(amount_out_usd, 0)) > 0.75\n OR ABS((amount_in_usd - amount_out_usd) / NULLIF(amount_in_usd, 0)) > 0.75\n ) THEN NULL\n ELSE amount_in_usd\n END,\n 2\n ) AS amount_in_usd,\n amount_out_unadj,\n amount_out,\n ROUND(\n CASE\n WHEN (token_out <> '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n OR NOT token_out_is_verified)\n AND (\n amount_in_usd IS NULL\n OR ABS((amount_out_usd - amount_in_usd) / NULLIF(amount_in_usd, 0)) > 0.75\n OR ABS((amount_out_usd - amount_in_usd) / NULLIF(amount_out_usd, 0)) > 0.75\n ) THEN NULL\n ELSE amount_out_usd\n END,\n 2\n ) AS amount_out_usd,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version AS protocol_version,\n token_in,\n token_in_is_verified,\n token_out,\n token_out_is_verified,\n symbol_in,\n symbol_out,\n _log_id,\n complete_dex_swaps_id AS ez_dex_swaps_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n {{ ref('silver_dex__complete_dex_swaps') }}\n*/\n\n\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_name,\n event_name,\n amount_in_unadj,\n amount_in,\n ROUND(\n CASE\n WHEN (token_in <> '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n OR NOT token_in_is_verified)\n AND (\n amount_out_usd IS NULL\n OR ABS((amount_in_usd - amount_out_usd) / NULLIF(amount_out_usd, 0)) > 0.75\n OR ABS((amount_in_usd - amount_out_usd) / NULLIF(amount_in_usd, 0)) > 0.75\n ) THEN NULL\n ELSE amount_in_usd\n END,\n 2\n ) AS amount_in_usd,\n amount_out_unadj,\n amount_out,\n ROUND(\n CASE\n WHEN (token_out <> '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n OR NOT token_out_is_verified)\n AND (\n amount_in_usd IS NULL\n OR ABS((amount_out_usd - amount_in_usd) / NULLIF(amount_in_usd, 0)) > 0.75\n OR ABS((amount_out_usd - amount_in_usd) / NULLIF(amount_out_usd, 0)) > 0.75\n ) THEN NULL\n ELSE amount_out_usd\n END,\n 2\n ) AS amount_out_usd,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version AS protocol_version,\n token_in,\n token_in_is_verified,\n token_out,\n token_out_is_verified,\n symbol_in,\n symbol_out,\n _log_id,\n complete_dex_swaps_id AS ez_dex_swaps_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n __SOURCE__.silver_dex.complete_dex_swaps\n )\n/* {\"app\": \"dbt\", \"dbt_snowflake_query_tags_version\": \"2.5.0\", \"dbt_version\": \"1.7.19\", \"project_name\": \"polygon_models\", \"target_name\": \"prod\", \"target_database\": \"polygon\", \"target_schema\": \"SILVER\", \"invocation_id\": \"fda5bd41-2cf0-443d-a777-801d488f78d6\", \"run_started_at\": \"2025-11-24T20:25:37.030750+00:00\", \"full_refresh\": false, \"which\": \"run\", \"node_name\": \"defi__ez_dex_swaps\", \"node_alias\": \"ez_dex_swaps\", \"node_package_name\": \"fsc_evm\", \"node_original_file_path\": \"models/curated_package/defi/dex/gold/defi__ez_dex_swaps.sql\", \"node_database\": \"polygon\", \"node_schema\": \"defi\", \"node_id\": \"model.fsc_evm.defi__ez_dex_swaps\", \"node_resource_type\": \"model\", \"node_meta\": {\"database_tags\": {\"table\": {\"PURPOSE\": \"DEX, SWAPS\"}}}, \"node_tags\": [\"gold\", \"defi\", \"dex\", \"curated\", \"ez\"], \"invocation_command\": \"dbt run -m polygon_models,tag:curated fsc_evm,tag:curated\", \"node_refs\": [\"silver_dex__complete_dex_swaps\"], \"materialized\": \"view\", \"raw_code_hash\": \"5cf15385a7db3760b78316a8786551ac\"} */;\n\n\n \n \n create or replace view __NEW__.DEFI.EZ_LENDING_BORROWS\n \n \n \n(\n \n \"BLOCK_NUMBER\" COMMENT \\$\\$Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.\\$\\$, \n \n \"BLOCK_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.\\$\\$, \n \n \"TX_HASH\" COMMENT \\$\\$Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`\\$\\$, \n \n \"CONTRACT_ADDRESS\" COMMENT \\$\\$Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events\\$\\$, \n \n \"EVENT_NAME\" COMMENT \\$\\$The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```\\$\\$, \n \n \"EVENT_INDEX\" COMMENT \\$\\$Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```\\$\\$, \n \n \"ORIGIN_FUNCTION_SIGNATURE\" COMMENT \\$\\$Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls\\$\\$, \n \n \"ORIGIN_FROM_ADDRESS\" COMMENT \\$\\$The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```\\$\\$, \n \n \"ORIGIN_TO_ADDRESS\" COMMENT \\$\\$The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.\\$\\$, \n \n \"PLATFORM\" COMMENT \\$\\$The lending protocol where the transaction occurred.\n\nExample: 'aave'\\$\\$, \n \n \"PROTOCOL_MARKET\" COMMENT \\$\\$The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'\\$\\$, \n \n \"BORROWER\" COMMENT \\$\\$The address that initiated a borrow or repayment transaction.\n\nExample: '0x1234567890123456789012345678901234567890'\\$\\$, \n \n \"TOKEN_ADDRESS\" COMMENT \\$\\$The contract address of the underlying asset being lent or borrowed.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'\\$\\$, \n \n \"TOKEN_SYMBOL\" COMMENT \\$\\$The ticker symbol of the asset involved in the lending transaction.\n\nExample: 'USDC'\\$\\$, \n \n \"AMOUNT_UNADJ\" COMMENT \\$\\$The raw amount of tokens borrowed or repaid without decimal adjustment.\n\nExample: 1000000000\\$\\$, \n \n \"AMOUNT\" COMMENT \\$\\$The decimal-adjusted quantity of tokens in the transaction.\n\nExample: 1000.5\\$\\$, \n \n \"AMOUNT_USD\" COMMENT \\$\\$The USD value of tokens at transaction time.\n\nExample: 1500.75\\$\\$, \n \n \"EZ_LENDING_BORROWS_ID\" COMMENT \\$\\$Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n platform,\n protocol_market,\n borrower,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n complete_lending_borrows_id AS ez_lending_borrows_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n __SOURCE__.silver_lending.complete_lending_borrows\n )\n/* {\"app\": \"dbt\", \"dbt_snowflake_query_tags_version\": \"2.5.0\", \"dbt_version\": \"1.7.19\", \"project_name\": \"polygon_models\", \"target_name\": \"prod\", \"target_database\": \"polygon\", \"target_schema\": \"SILVER\", \"invocation_id\": \"fda5bd41-2cf0-443d-a777-801d488f78d6\", \"run_started_at\": \"2025-11-24T20:25:37.030750+00:00\", \"full_refresh\": false, \"which\": \"run\", \"node_name\": \"defi__ez_lending_borrows\", \"node_alias\": \"ez_lending_borrows\", \"node_package_name\": \"fsc_evm\", \"node_original_file_path\": \"models/curated_package/defi/lending/gold/defi__ez_lending_borrows.sql\", \"node_database\": \"polygon\", \"node_schema\": \"defi\", \"node_id\": \"model.fsc_evm.defi__ez_lending_borrows\", \"node_resource_type\": \"model\", \"node_meta\": {\"database_tags\": {\"table\": {\"PURPOSE\": \"LENDING, BORROWS\"}}}, \"node_tags\": [\"gold\", \"defi\", \"lending\", \"curated\", \"ez\"], \"invocation_command\": \"dbt run -m polygon_models,tag:curated fsc_evm,tag:curated\", \"node_refs\": [\"silver_lending__complete_lending_borrows\"], \"materialized\": \"view\", \"raw_code_hash\": \"c9fb4a055113c6623ec2f0fcb97f99ea\"} */;\n\n\n \n \n create or replace view __NEW__.DEFI.EZ_LENDING_LIQUIDATIONS\n \n \n \n(\n \n \"BLOCK_NUMBER\" COMMENT \\$\\$Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.\\$\\$, \n \n \"BLOCK_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.\\$\\$, \n \n \"TX_HASH\" COMMENT \\$\\$Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`\\$\\$, \n \n \"CONTRACT_ADDRESS\" COMMENT \\$\\$Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events\\$\\$, \n \n \"EVENT_NAME\" COMMENT \\$\\$The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```\\$\\$, \n \n \"EVENT_INDEX\" COMMENT \\$\\$Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```\\$\\$, \n \n \"ORIGIN_FUNCTION_SIGNATURE\" COMMENT \\$\\$Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls\\$\\$, \n \n \"ORIGIN_FROM_ADDRESS\" COMMENT \\$\\$The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```\\$\\$, \n \n \"ORIGIN_TO_ADDRESS\" COMMENT \\$\\$The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.\\$\\$, \n \n \"PLATFORM\" COMMENT \\$\\$The lending protocol where the transaction occurred.\n\nExample: 'aave'\\$\\$, \n \n \"LIQUIDATOR\" COMMENT \\$\\$The address that performed the liquidation.\n\nExample: '0xabcdefabcdefabcdefabcdefabcdefabcdefabcd'\\$\\$, \n \n \"BORROWER\" COMMENT \\$\\$The address that initiated a borrow or repayment transaction.\n\nExample: '0x1234567890123456789012345678901234567890'\\$\\$, \n \n \"PROTOCOL_MARKET\" COMMENT \\$\\$The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'\\$\\$, \n \n \"COLLATERAL_TOKEN\" COMMENT \\$\\$The token contract address used as collateral in a liquidation.\n\nExample: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\\$\\$, \n \n \"COLLATERAL_TOKEN_SYMBOL\" COMMENT \\$\\$The symbol of the asset used as collateral in liquidations.\n\nExample: 'WETH'\\$\\$, \n \n \"LIQUIDATED_AMOUNT_UNADJ\" COMMENT \\$\\$\\$\\$, \n \n \"LIQUIDATED_AMOUNT\" COMMENT \\$\\$\\$\\$, \n \n \"LIQUIDATED_AMOUNT_USD\" COMMENT \\$\\$\\$\\$, \n \n \"AMOUNT_UNADJ\" COMMENT \\$\\$The raw amount of tokens liquidated without decimal adjustment. This column will be deprecated October 13th, please update to liquidated_amount_unadj.\\$\\$, \n \n \"AMOUNT\" COMMENT \\$\\$The decimal-adjusted amount of tokens liquidated. This column will be deprecated October 13th, please update to liquidated_amount.\\$\\$, \n \n \"AMOUNT_USD\" COMMENT \\$\\$The USD value of the tokens liquidated. This column will be deprecated October 13th, please update to liquidated_amount_usd.\\$\\$, \n \n \"DEBT_TOKEN\" COMMENT \\$\\$The token contract address that was borrowed and is being repaid in liquidation.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'\\$\\$, \n \n \"DEBT_TOKEN_SYMBOL\" COMMENT \\$\\$The symbol of the borrowed asset being repaid in liquidation.\n\nExample: 'USDC'\\$\\$, \n \n \"REPAID_AMOUNT_UNADJ\" COMMENT \\$\\$\\$\\$, \n \n \"REPAID_AMOUNT\" COMMENT \\$\\$\\$\\$, \n \n \"REPAID_AMOUNT_USD\" COMMENT \\$\\$\\$\\$, \n \n \"EZ_LENDING_LIQUIDATIONS_ID\" COMMENT \\$\\$\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n platform,\n liquidator,\n borrower,\n protocol_market,\n collateral_token,\n collateral_token_symbol,\n liquidated_amount_unadj,\n liquidated_amount,\n liquidated_amount_usd,\n liquidated_amount_unadj as amount_unadj,\n liquidated_amount as amount,\n liquidated_amount_usd as amount_usd,\n debt_token,\n debt_token_symbol,\n repaid_amount_unadj,\n repaid_amount,\n repaid_amount_usd,\n complete_lending_liquidations_id AS ez_lending_liquidations_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n __SOURCE__.silver_lending.complete_lending_liquidations\n )\n/* {\"app\": \"dbt\", \"dbt_snowflake_query_tags_version\": \"2.5.0\", \"dbt_version\": \"1.7.19\", \"project_name\": \"polygon_models\", \"target_name\": \"prod\", \"target_database\": \"polygon\", \"target_schema\": \"SILVER\", \"invocation_id\": \"fda5bd41-2cf0-443d-a777-801d488f78d6\", \"run_started_at\": \"2025-11-24T20:25:37.030750+00:00\", \"full_refresh\": false, \"which\": \"run\", \"node_name\": \"defi__ez_lending_liquidations\", \"node_alias\": \"ez_lending_liquidations\", \"node_package_name\": \"fsc_evm\", \"node_original_file_path\": \"models/curated_package/defi/lending/gold/defi__ez_lending_liquidations.sql\", \"node_database\": \"polygon\", \"node_schema\": \"defi\", \"node_id\": \"model.fsc_evm.defi__ez_lending_liquidations\", \"node_resource_type\": \"model\", \"node_meta\": {\"database_tags\": {\"table\": {\"PURPOSE\": \"LENDING, LIQUIDATIONS\"}}}, \"node_tags\": [\"gold\", \"defi\", \"lending\", \"curated\", \"ez\"], \"invocation_command\": \"dbt run -m polygon_models,tag:curated fsc_evm,tag:curated\", \"node_refs\": [\"silver_lending__complete_lending_liquidations\"], \"materialized\": \"view\", \"raw_code_hash\": \"185ce71d28d135d4c2ee912a470ed79e\"} */;\n\n\n \n \n create or replace view __NEW__.DEFI.EZ_LENDING_FLASHLOANS\n \n \n \n(\n \n \"BLOCK_NUMBER\" COMMENT \\$\\$Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.\\$\\$, \n \n \"BLOCK_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.\\$\\$, \n \n \"TX_HASH\" COMMENT \\$\\$Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`\\$\\$, \n \n \"CONTRACT_ADDRESS\" COMMENT \\$\\$Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events\\$\\$, \n \n \"EVENT_NAME\" COMMENT \\$\\$The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```\\$\\$, \n \n \"EVENT_INDEX\" COMMENT \\$\\$Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```\\$\\$, \n \n \"ORIGIN_FUNCTION_SIGNATURE\" COMMENT \\$\\$Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls\\$\\$, \n \n \"ORIGIN_FROM_ADDRESS\" COMMENT \\$\\$The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```\\$\\$, \n \n \"ORIGIN_TO_ADDRESS\" COMMENT \\$\\$The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.\\$\\$, \n \n \"PLATFORM\" COMMENT \\$\\$The lending protocol where the transaction occurred.\n\nExample: 'aave'\\$\\$, \n \n \"INITIATOR\" COMMENT \\$\\$The address that triggered the flash loan execution.\n\nExample: '0x7a250d5630b4cf539739df2c5dacb4c659f2488d'\\$\\$, \n \n \"TARGET\" COMMENT \\$\\$The contract address that receives and executes the flash loan logic.\n\nExample: '0x1111111254fb6c44bac0bed2854e76f90643097d'\\$\\$, \n \n \"PROTOCOL_MARKET\" COMMENT \\$\\$The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'\\$\\$, \n \n \"TOKEN_ADDRESS\" COMMENT \\$\\$\\$\\$, \n \n \"TOKEN_SYMBOL\" COMMENT \\$\\$\\$\\$, \n \n \"FLASHLOAN_TOKEN\" COMMENT \\$\\$The contract address of the token borrowed in the flash loan.\n\nExample: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n\nThis column will be deprecated October 13th, please update to token_address.\\$\\$, \n \n \"FLASHLOAN_TOKEN_SYMBOL\" COMMENT \\$\\$The symbol of the token borrowed in the flash loan.\n\nExample: 'WETH'\n\nThis column will be deprecated October 13th, please update to token_symbol.\\$\\$, \n \n \"FLASHLOAN_AMOUNT_UNADJ\" COMMENT \\$\\$The raw amount of tokens borrowed without decimal adjustment.\n\nExample: 1000000000000000000\\$\\$, \n \n \"FLASHLOAN_AMOUNT\" COMMENT \\$\\$The decimal-adjusted amount of tokens borrowed in the flash loan.\n\nExample: 1.0\\$\\$, \n \n \"FLASHLOAN_AMOUNT_USD\" COMMENT \\$\\$The USD value of assets borrowed in a flash loan.\n\nExample: 1000000.50\\$\\$, \n \n \"PREMIUM_AMOUNT_UNADJ\" COMMENT \\$\\$The raw fee amount charged for the flash loan.\n\nExample: 900000000000000\\$\\$, \n \n \"PREMIUM_AMOUNT\" COMMENT \\$\\$The decimal-adjusted fee paid for the flash loan.\n\nExample: 0.0009\\$\\$, \n \n \"PREMIUM_AMOUNT_USD\" COMMENT \\$\\$The USD value of the flash loan fee.\n\nExample: 0.90\\$\\$, \n \n \"EZ_LENDING_FLASHLOANS_ID\" COMMENT \\$\\$Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n platform,\n initiator,\n target,\n protocol_market,\n token_address,\n token_symbol,\n token_address as flashloan_token,\n token_symbol as flashloan_token_symbol,\n flashloan_amount_unadj,\n flashloan_amount,\n flashloan_amount_usd,\n premium_amount_unadj,\n premium_amount,\n premium_amount_usd,\n complete_lending_flashloans_id AS ez_lending_flashloans_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n __SOURCE__.silver_lending.complete_lending_flashloans\n )\n/* {\"app\": \"dbt\", \"dbt_snowflake_query_tags_version\": \"2.5.0\", \"dbt_version\": \"1.7.19\", \"project_name\": \"polygon_models\", \"target_name\": \"prod\", \"target_database\": \"polygon\", \"target_schema\": \"SILVER\", \"invocation_id\": \"fda5bd41-2cf0-443d-a777-801d488f78d6\", \"run_started_at\": \"2025-11-24T20:25:37.030750+00:00\", \"full_refresh\": false, \"which\": \"run\", \"node_name\": \"defi__ez_lending_flashloans\", \"node_alias\": \"ez_lending_flashloans\", \"node_package_name\": \"fsc_evm\", \"node_original_file_path\": \"models/curated_package/defi/lending/gold/defi__ez_lending_flashloans.sql\", \"node_database\": \"polygon\", \"node_schema\": \"defi\", \"node_id\": \"model.fsc_evm.defi__ez_lending_flashloans\", \"node_resource_type\": \"model\", \"node_meta\": {\"database_tags\": {\"table\": {\"PURPOSE\": \"LENDING, FLASHLOANS\"}}}, \"node_tags\": [\"gold\", \"defi\", \"lending\", \"curated\", \"ez\"], \"invocation_command\": \"dbt run -m polygon_models,tag:curated fsc_evm,tag:curated\", \"node_refs\": [\"silver_lending__complete_lending_flashloans\"], \"materialized\": \"view\", \"raw_code_hash\": \"74c1c0bf888ce80ee462e0332f290a3c\"} */;\n\n\n \n \n create or replace view __NEW__.DEFI.EZ_LENDING_OHLC_RATES\n \n \n \n(\n \n \"DAY\" COMMENT \\$\\$\\$\\$, \n \n \"PROTOCOL\" COMMENT \\$\\$\\$\\$, \n \n \"PLATFORM\" COMMENT \\$\\$\\$\\$, \n \n \"VERSION\" COMMENT \\$\\$\\$\\$, \n \n \"TOKEN_ADDRESS\" COMMENT \\$\\$\\$\\$, \n \n \"TOKEN_SYMBOL\" COMMENT \\$\\$\\$\\$, \n \n \"SUPPLY_RATE_OPEN\" COMMENT \\$\\$\\$\\$, \n \n \"SUPPLY_RATE_HIGH\" COMMENT \\$\\$\\$\\$, \n \n \"SUPPLY_RATE_LOW\" COMMENT \\$\\$\\$\\$, \n \n \"SUPPLY_RATE_CLOSE\" COMMENT \\$\\$\\$\\$, \n \n \"STABLE_BORROW_RATE_OPEN\" COMMENT \\$\\$\\$\\$, \n \n \"STABLE_BORROW_RATE_HIGH\" COMMENT \\$\\$\\$\\$, \n \n \"STABLE_BORROW_RATE_LOW\" COMMENT \\$\\$\\$\\$, \n \n \"STABLE_BORROW_RATE_CLOSE\" COMMENT \\$\\$\\$\\$, \n \n \"VARIABLE_BORROW_RATE_OPEN\" COMMENT \\$\\$\\$\\$, \n \n \"VARIABLE_BORROW_RATE_HIGH\" COMMENT \\$\\$\\$\\$, \n \n \"VARIABLE_BORROW_RATE_LOW\" COMMENT \\$\\$\\$\\$, \n \n \"VARIABLE_BORROW_RATE_CLOSE\" COMMENT \\$\\$\\$\\$, \n \n \"RATE_UPDATES_COUNT\" COMMENT \\$\\$\\$\\$, \n \n \"BLOCKCHAIN\" COMMENT \\$\\$\\$\\$, \n \n \"EZ_OHLC_RATES_ID\" COMMENT \\$\\$\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n day,\n protocol,\n platform,\n version,\n token_address,\n token_symbol,\n supply_rate_open,\n supply_rate_high,\n supply_rate_low,\n supply_rate_close,\n stable_borrow_rate_open,\n stable_borrow_rate_high,\n stable_borrow_rate_low,\n stable_borrow_rate_close,\n variable_borrow_rate_open,\n variable_borrow_rate_high,\n variable_borrow_rate_low,\n variable_borrow_rate_close,\n rate_updates_count,\n blockchain,\n aave_interest_rates_ohlc_id AS ez_ohlc_rates_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n __SOURCE__.silver_lending.aave_ohlc_interest_rates\n )\n/* {\"app\": \"dbt\", \"dbt_snowflake_query_tags_version\": \"2.5.0\", \"dbt_version\": \"1.7.19\", \"project_name\": \"polygon_models\", \"target_name\": \"prod\", \"target_database\": \"polygon\", \"target_schema\": \"SILVER\", \"invocation_id\": \"fda5bd41-2cf0-443d-a777-801d488f78d6\", \"run_started_at\": \"2025-11-24T20:25:37.030750+00:00\", \"full_refresh\": false, \"which\": \"run\", \"node_name\": \"defi__ez_lending_ohlc_rates\", \"node_alias\": \"ez_lending_ohlc_rates\", \"node_package_name\": \"fsc_evm\", \"node_original_file_path\": \"models/curated_package/defi/lending/gold/defi__ez_lending_ohlc_rates.sql\", \"node_database\": \"polygon\", \"node_schema\": \"defi\", \"node_id\": \"model.fsc_evm.defi__ez_lending_ohlc_rates\", \"node_resource_type\": \"model\", \"node_meta\": {\"database_tags\": {\"table\": {\"PURPOSE\": \"LENDING, OHLC INTEREST RATES\"}}}, \"node_tags\": [\"gold\", \"defi\", \"lending\", \"curated\", \"ez\", \"ohlc\", \"interest_rates\"], \"invocation_command\": \"dbt run -m polygon_models,tag:curated fsc_evm,tag:curated\", \"node_refs\": [\"silver_lending__aave_ohlc_interest_rates\"], \"materialized\": \"view\", \"raw_code_hash\": \"fc71bdd9b17205158bcdca3eab24c9da\"} */;\n\n\n \n \n create or replace view __NEW__.DEFI.EZ_LENDING_WITHDRAWS\n \n \n \n(\n \n \"BLOCK_NUMBER\" COMMENT \\$\\$Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.\\$\\$, \n \n \"BLOCK_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.\\$\\$, \n \n \"TX_HASH\" COMMENT \\$\\$Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`\\$\\$, \n \n \"CONTRACT_ADDRESS\" COMMENT \\$\\$Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events\\$\\$, \n \n \"EVENT_NAME\" COMMENT \\$\\$The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```\\$\\$, \n \n \"EVENT_INDEX\" COMMENT \\$\\$Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```\\$\\$, \n \n \"ORIGIN_FUNCTION_SIGNATURE\" COMMENT \\$\\$Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls\\$\\$, \n \n \"ORIGIN_FROM_ADDRESS\" COMMENT \\$\\$The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```\\$\\$, \n \n \"ORIGIN_TO_ADDRESS\" COMMENT \\$\\$The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.\\$\\$, \n \n \"PLATFORM\" COMMENT \\$\\$The lending protocol where the transaction occurred.\n\nExample: 'aave'\\$\\$, \n \n \"DEPOSITOR\" COMMENT \\$\\$The address that supplied liquidity to the lending protocol.\n\nExample: '0x9876543210987654321098765432109876543210'\\$\\$, \n \n \"PROTOCOL_MARKET\" COMMENT \\$\\$The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'\\$\\$, \n \n \"TOKEN_ADDRESS\" COMMENT \\$\\$The contract address of the underlying asset being lent or borrowed.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'\\$\\$, \n \n \"TOKEN_SYMBOL\" COMMENT \\$\\$The ticker symbol of the asset involved in the lending transaction.\n\nExample: 'USDC'\\$\\$, \n \n \"AMOUNT_UNADJ\" COMMENT \\$\\$The raw amount of tokens borrowed or repaid without decimal adjustment.\n\nExample: 1000000000\\$\\$, \n \n \"AMOUNT\" COMMENT \\$\\$The decimal-adjusted quantity of tokens in the transaction.\n\nExample: 1000.5\\$\\$, \n \n \"AMOUNT_USD\" COMMENT \\$\\$The USD value of tokens at transaction time.\n\nExample: 1500.75\\$\\$, \n \n \"EZ_LENDING_WITHDRAWS_ID\" COMMENT \\$\\$Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n platform,\n depositor,\n protocol_market,\n token_address,\n token_symbol,\n amount_unadj,\n amount, \n amount_usd,\n complete_lending_withdraws_id AS ez_lending_withdraws_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n __SOURCE__.silver_lending.complete_lending_withdraws\n )\n/* {\"app\": \"dbt\", \"dbt_snowflake_query_tags_version\": \"2.5.0\", \"dbt_version\": \"1.7.19\", \"project_name\": \"polygon_models\", \"target_name\": \"prod\", \"target_database\": \"polygon\", \"target_schema\": \"SILVER\", \"invocation_id\": \"fda5bd41-2cf0-443d-a777-801d488f78d6\", \"run_started_at\": \"2025-11-24T20:25:37.030750+00:00\", \"full_refresh\": false, \"which\": \"run\", \"node_name\": \"defi__ez_lending_withdraws\", \"node_alias\": \"ez_lending_withdraws\", \"node_package_name\": \"fsc_evm\", \"node_original_file_path\": \"models/curated_package/defi/lending/gold/defi__ez_lending_withdraws.sql\", \"node_database\": \"polygon\", \"node_schema\": \"defi\", \"node_id\": \"model.fsc_evm.defi__ez_lending_withdraws\", \"node_resource_type\": \"model\", \"node_meta\": {\"database_tags\": {\"table\": {\"PURPOSE\": \"LENDING, WITHDRAWS\"}}}, \"node_tags\": [\"gold\", \"defi\", \"lending\", \"curated\", \"ez\"], \"invocation_command\": \"dbt run -m polygon_models,tag:curated fsc_evm,tag:curated\", \"node_refs\": [\"silver_lending__complete_lending_withdraws\"], \"materialized\": \"view\", \"raw_code_hash\": \"29cd35b29e07c5b127e26ea6684499c4\"} */;\n\n\n \n \n create or replace view __NEW__.DEFI.EZ_LENDING_REPAYMENTS\n \n \n \n(\n \n \"BLOCK_NUMBER\" COMMENT \\$\\$Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.\\$\\$, \n \n \"BLOCK_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.\\$\\$, \n \n \"ORIGIN_FROM_ADDRESS\" COMMENT \\$\\$The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```\\$\\$, \n \n \"ORIGIN_TO_ADDRESS\" COMMENT \\$\\$The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.\\$\\$, \n \n \"ORIGIN_FUNCTION_SIGNATURE\" COMMENT \\$\\$Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls\\$\\$, \n \n \"TX_HASH\" COMMENT \\$\\$Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`\\$\\$, \n \n \"EVENT_INDEX\" COMMENT \\$\\$Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```\\$\\$, \n \n \"CONTRACT_ADDRESS\" COMMENT \\$\\$Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events\\$\\$, \n \n \"EVENT_NAME\" COMMENT \\$\\$The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```\\$\\$, \n \n \"PLATFORM\" COMMENT \\$\\$The lending protocol where the transaction occurred.\n\nExample: 'aave'\\$\\$, \n \n \"PAYER\" COMMENT \\$\\$The address that paid the loan or deposit.\n\nExample: '0x5555555555555555555555555555555555555555'\\$\\$, \n \n \"BORROWER\" COMMENT \\$\\$The address that initiated a borrow or repayment transaction.\n\nExample: '0x1234567890123456789012345678901234567890'\\$\\$, \n \n \"PROTOCOL_MARKET\" COMMENT \\$\\$The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'\\$\\$, \n \n \"TOKEN_ADDRESS\" COMMENT \\$\\$The contract address of the underlying asset being lent or borrowed.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'\\$\\$, \n \n \"TOKEN_SYMBOL\" COMMENT \\$\\$The ticker symbol of the asset involved in the lending transaction.\n\nExample: 'USDC'\\$\\$, \n \n \"AMOUNT_UNADJ\" COMMENT \\$\\$The raw amount of tokens borrowed or repaid without decimal adjustment.\n\nExample: 1000000000\\$\\$, \n \n \"AMOUNT\" COMMENT \\$\\$The decimal-adjusted quantity of tokens in the transaction.\n\nExample: 1000.5\\$\\$, \n \n \"AMOUNT_USD\" COMMENT \\$\\$The USD value of tokens at transaction time.\n\nExample: 1500.75\\$\\$, \n \n \"EZ_LENDING_REPAYMENTS_ID\" COMMENT \\$\\$Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n event_name,\n platform,\n payer,\n borrower,\n protocol_market,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n complete_lending_repayments_id AS ez_lending_repayments_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n __SOURCE__.silver_lending.complete_lending_repayments\n )\n/* {\"app\": \"dbt\", \"dbt_snowflake_query_tags_version\": \"2.5.0\", \"dbt_version\": \"1.7.19\", \"project_name\": \"polygon_models\", \"target_name\": \"prod\", \"target_database\": \"polygon\", \"target_schema\": \"SILVER\", \"invocation_id\": \"fda5bd41-2cf0-443d-a777-801d488f78d6\", \"run_started_at\": \"2025-11-24T20:25:37.030750+00:00\", \"full_refresh\": false, \"which\": \"run\", \"node_name\": \"defi__ez_lending_repayments\", \"node_alias\": \"ez_lending_repayments\", \"node_package_name\": \"fsc_evm\", \"node_original_file_path\": \"models/curated_package/defi/lending/gold/defi__ez_lending_repayments.sql\", \"node_database\": \"polygon\", \"node_schema\": \"defi\", \"node_id\": \"model.fsc_evm.defi__ez_lending_repayments\", \"node_resource_type\": \"model\", \"node_meta\": {\"database_tags\": {\"table\": {\"PURPOSE\": \"LENDING, REPAYMENTS\"}}}, \"node_tags\": [\"gold\", \"defi\", \"lending\", \"curated\", \"ez\"], \"invocation_command\": \"dbt run -m polygon_models,tag:curated fsc_evm,tag:curated\", \"node_refs\": [\"silver_lending__complete_lending_repayments\"], \"materialized\": \"view\", \"raw_code_hash\": \"b14077d2e3f320a95fd9743ed066d0fb\"} */;\n\n\n \n \n create or replace view __NEW__.STATS.EZ_CORE_METRICS_HOURLY\n \n \n \n(\n \n \"BLOCK_TIMESTAMP_HOUR\" COMMENT \\$\\$The hour boundary (UTC) for which metrics are aggregated. Timestamp truncated to hour boundary.\n\nExample: '2024-01-15 14:00:00.000'\\$\\$, \n \n \"BLOCK_NUMBER_MIN\" COMMENT \\$\\$The lowest block number produced within this hour. Used to identify first block and calculate block ranges.\n\nExample: 18750000\\$\\$, \n \n \"BLOCK_NUMBER_MAX\" COMMENT \\$\\$The highest block number produced within this hour. Used to identify last block and monitor chain tip progression.\n\nExample: 18750299\\$\\$, \n \n \"BLOCK_COUNT\" COMMENT \\$\\$Total number of blocks produced in the hour. Calculated as block_number_max - block_number_min + 1.\n\nExample: 300\\$\\$, \n \n \"TRANSACTION_COUNT\" COMMENT \\$\\$Total number of transactions included in blocks during this hour. Includes both successful and failed transactions.\n\nExample: 125000\\$\\$, \n \n \"TRANSACTION_COUNT_SUCCESS\" COMMENT \\$\\$Number of transactions that executed successfully in the hour. Used to calculate network reliability.\n\nExample: 118750\\$\\$, \n \n \"TRANSACTION_COUNT_FAILED\" COMMENT \\$\\$Number of transactions that failed or reverted in the hour. Common causes include insufficient gas or contract reverts.\n\nExample: 6250\\$\\$, \n \n \"UNIQUE_FROM_COUNT\" COMMENT \\$\\$Count of distinct addresses that initiated transactions in the hour. Represents active users, not cumulative.\n\nExample: 45000\\$\\$, \n \n \"UNIQUE_TO_COUNT\" COMMENT \\$\\$Count of distinct addresses that received transactions in the hour. Includes EOA recipients and contract addresses.\n\nExample: 52000\\$\\$, \n \n \"TOTAL_FEES_NATIVE\" COMMENT \\$\\$Sum of all transaction fees paid in the blockchain's native token. May have limited precision due to aggregation.\n\nExample: 125.75\\$\\$, \n \n \"TOTAL_FEES_USD\" COMMENT \\$\\$Sum of all transaction fees paid, converted to USD using hourly native token price. Rounded to 2 decimal places.\n\nExample: 425000.50\\$\\$, \n \n \"EZ_CORE_METRICS_HOURLY_ID\" COMMENT \\$\\$Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```\\$\\$\n \n)\n\n copy grants as (\n \n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {\n \"database_tags\": {\n \"table\": {\n \"PURPOSE\": \"STATS, METRICS, CORE, HOURLY\"\n }\n }\n },\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"stats\",\n \"curated\",\n \"phase_4\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'view',\n meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'STATS, METRICS, CORE, HOURLY',\n } } },\n tags = ['gold','stats','curated','phase_4']\n) }}\n\n{# Main query starts here #}\nSELECT\n block_timestamp_hour,\n block_number_min,\n block_number_max,\n block_count,\n transaction_count,\n transaction_count_success,\n transaction_count_failed,\n unique_from_count,\n unique_to_count,\n total_fees AS total_fees_native,\n ROUND(\n total_fees * LAST_VALUE(\n p.price ignore nulls\n ) over (\n ORDER BY\n block_timestamp_hour rows unbounded preceding\n ),\n 2\n ) AS total_fees_usd,\n core_metrics_hourly_id AS ez_core_metrics_hourly_id,\n s.inserted_timestamp AS inserted_timestamp,\n s.modified_timestamp AS modified_timestamp\nFROM\n {{ ref('silver_stats__core_metrics_hourly') }}\n s\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p\n ON s.block_timestamp_hour = p.hour\n AND p.token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}' --Wrapped Native Token Address for target blockchain\n*/\n\n\n\n\n\nSELECT\n block_timestamp_hour,\n block_number_min,\n block_number_max,\n block_count,\n transaction_count,\n transaction_count_success,\n transaction_count_failed,\n unique_from_count,\n unique_to_count,\n total_fees AS total_fees_native,\n ROUND(\n total_fees * LAST_VALUE(\n p.price ignore nulls\n ) over (\n ORDER BY\n block_timestamp_hour rows unbounded preceding\n ),\n 2\n ) AS total_fees_usd,\n core_metrics_hourly_id AS ez_core_metrics_hourly_id,\n s.inserted_timestamp AS inserted_timestamp,\n s.modified_timestamp AS modified_timestamp\nFROM\n __SOURCE__.silver_stats.core_metrics_hourly\n s\n LEFT JOIN __SOURCE__.price.ez_prices_hourly\n p\n ON s.block_timestamp_hour = p.hour\n AND p.token_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270' --Wrapped Native Token Address for target blockchain\n )\n/* {\"app\": \"dbt\", \"dbt_snowflake_query_tags_version\": \"2.5.0\", \"dbt_version\": \"1.7.19\", \"project_name\": \"polygon_models\", \"target_name\": \"prod\", \"target_database\": \"polygon\", \"target_schema\": \"SILVER\", \"invocation_id\": \"fda5bd41-2cf0-443d-a777-801d488f78d6\", \"run_started_at\": \"2025-11-24T20:25:37.030750+00:00\", \"full_refresh\": false, \"which\": \"run\", \"node_name\": \"stats__ez_core_metrics_hourly\", \"node_alias\": \"ez_core_metrics_hourly\", \"node_package_name\": \"fsc_evm\", \"node_original_file_path\": \"models/curated_package/stats/gold/stats__ez_core_metrics_hourly.sql\", \"node_database\": \"polygon\", \"node_schema\": \"stats\", \"node_id\": \"model.fsc_evm.stats__ez_core_metrics_hourly\", \"node_resource_type\": \"model\", \"node_meta\": {\"database_tags\": {\"table\": {\"PURPOSE\": \"STATS, METRICS, CORE, HOURLY\"}}}, \"node_tags\": [\"gold\", \"stats\", \"curated\", \"phase_4\"], \"invocation_command\": \"dbt run -m polygon_models,tag:curated fsc_evm,tag:curated\", \"node_refs\": [\"silver_stats__core_metrics_hourly\", \"price__ez_prices_hourly\"], \"materialized\": \"view\", \"raw_code_hash\": \"52e0899118dea991ac433859884b5818\"} */;\nCREATE SCHEMA IF NOT EXISTS __NEW__.core;\nCREATE SCHEMA IF NOT EXISTS __NEW__.silver;\nCREATE SCHEMA IF NOT EXISTS __NEW__.admin;\nCREATE SCHEMA IF NOT EXISTS __NEW__.price;\nCREATE SCHEMA IF NOT EXISTS __NEW__.defi;\nCREATE SCHEMA IF NOT EXISTS __NEW__.silver_dex;\nCREATE SCHEMA IF NOT EXISTS __NEW__.balances;\nCREATE OR REPLACE VIEW __NEW__.CORE.DIM_CONTRACT_ABIS copy grants AS SELECT * FROM __SOURCE__.CORE.DIM_CONTRACT_ABIS;\nCREATE OR REPLACE VIEW __NEW__.CORE.EZ_DECODED_EVENT_LOGS copy grants AS SELECT * FROM __SOURCE__.CORE.EZ_DECODED_EVENT_LOGS;\nCREATE OR REPLACE VIEW __NEW__.CORE.DIM_LABELS copy grants AS SELECT * FROM __SOURCE__.CORE.DIM_LABELS;\nCREATE OR REPLACE VIEW __NEW__.CORE.FACT_BLOCKS copy grants AS SELECT * FROM __SOURCE__.CORE.FACT_BLOCKS;\nCREATE OR REPLACE VIEW __NEW__.CORE.EZ_TOKEN_TRANSFERS copy grants AS SELECT * FROM __SOURCE__.CORE.EZ_TOKEN_TRANSFERS;\nCREATE OR REPLACE VIEW __NEW__.CORE.EZ_NATIVE_TRANSFERS copy grants AS SELECT * FROM __SOURCE__.CORE.EZ_NATIVE_TRANSFERS;\nCREATE OR REPLACE VIEW __NEW__.CORE.DIM_CONTRACTS copy grants AS SELECT * FROM __SOURCE__.CORE.DIM_CONTRACTS;\nCREATE OR REPLACE VIEW __NEW__.CORE.FACT_EVENT_LOGS copy grants AS SELECT * FROM __SOURCE__.CORE.FACT_EVENT_LOGS;\nCREATE OR REPLACE VIEW __NEW__.CORE.FACT_TRANSACTIONS copy grants AS SELECT * FROM __SOURCE__.CORE.FACT_TRANSACTIONS;\nCREATE OR REPLACE VIEW __NEW__.CORE.FACT_TRACES copy grants AS SELECT * FROM __SOURCE__.CORE.FACT_TRACES;\nCREATE OR REPLACE VIEW __NEW__.PRICE.DIM_ASSET_METADATA copy grants AS SELECT * FROM __SOURCE__.PRICE.DIM_ASSET_METADATA;\nCREATE OR REPLACE VIEW __NEW__.PRICE.FACT_PRICES_OHLC_HOURLY copy grants AS SELECT * FROM __SOURCE__.PRICE.FACT_PRICES_OHLC_HOURLY;\nCREATE OR REPLACE VIEW __NEW__.PRICE.EZ_ASSET_METADATA copy grants AS SELECT * FROM __SOURCE__.PRICE.EZ_ASSET_METADATA;\nCREATE OR REPLACE VIEW __NEW__.PRICE.EZ_PRICES_HOURLY copy grants AS SELECT * FROM __SOURCE__.PRICE.EZ_PRICES_HOURLY;\nCREATE OR REPLACE VIEW __NEW__.DEFI.EZ_DEX_LIQUIDITY_POOL_ACTIONS copy grants AS SELECT * FROM __SOURCE__.DEFI.EZ_DEX_LIQUIDITY_POOL_ACTIONS;\nCREATE OR REPLACE VIEW __NEW__.BALANCES.EZ_BALANCES_ERC20_DAILY copy grants AS SELECT * FROM __SOURCE__.BALANCES.EZ_BALANCES_ERC20_DAILY;\nCREATE OR REPLACE VIEW __NEW__.BALANCES.EZ_BALANCES_NATIVE_DAILY copy grants AS SELECT * FROM __SOURCE__.BALANCES.EZ_BALANCES_NATIVE_DAILY;\nEND$$ AS ddl,\nmd5(ddl) AS ddl_hash,\nsysdate() as ddl_created_at\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__user_verified_abis": {"database": "polygon", "schema": "silver", "name": "silver__user_verified_abis", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/silver/silver__user_verified_abis.sql", "original_file_path": "models/decoder_package/abis/silver/silver__user_verified_abis.sql", "unique_id": "model.fsc_evm.silver__user_verified_abis", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "silver__user_verified_abis"], "alias": "user_verified_abis", "checksum": {"name": "sha256", "checksum": "b98baa2cdd288fc25c34543fa385cffa41a8a5900cd0c32d418592deef9acb57"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "abis", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "abis", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "id", "tags": ["silver", "abis", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018296.8356924, "relation_name": "polygon.silver.user_verified_abis", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"id\",\n tags = ['silver','abis','phase_2']\n) }}\n\nWITH base AS (\n\n SELECT\n contract_address,\n abi,\n PARSE_JSON(abi) AS DATA,\n SHA2(PARSE_JSON(abi)) AS abi_hash,\n discord_username,\n _inserted_timestamp\n FROM\n {{ source(\n \"crosschain_public\",\n \"user_abis\"\n ) }}\n WHERE\n blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n AND NOT duplicate_abi\n\n{% if is_incremental() %}\nAND contract_address NOT IN (\n SELECT\n contract_address\n FROM\n {{ this }}\n)\nAND _inserted_timestamp > (\n SELECT\n COALESCE(\n MAX(\n _inserted_timestamp\n ),\n '1970-01-01'\n )\n FROM\n {{ this }}\n)\nAND _inserted_timestamp > DATEADD('day', -2, SYSDATE())\n{% endif %}),\nflat_event_abi AS (\n SELECT\n contract_address,\n _inserted_timestamp,\n DATA,\n VALUE :inputs AS inputs,\n VALUE :payable :: BOOLEAN AS payable,\n VALUE :stateMutability :: STRING AS stateMutability,\n VALUE :type :: STRING AS TYPE,\n VALUE :anonymous :: BOOLEAN AS anonymous,\n VALUE :name :: STRING AS NAME\n FROM\n base,\n LATERAL FLATTEN (\n input => DATA\n )\n WHERE\n TYPE = 'event' qualify ROW_NUMBER() over (\n PARTITION BY contract_address,\n NAME,\n inputs\n ORDER BY\n LENGTH(inputs)\n ) = 1\n),\nevent_types AS (\n SELECT\n contract_address,\n _inserted_timestamp,\n inputs,\n anonymous,\n NAME,\n ARRAY_AGG(\n VALUE :type :: STRING\n ) AS event_type\n FROM\n flat_event_abi,\n LATERAL FLATTEN (\n input => inputs\n )\n GROUP BY\n contract_address,\n _inserted_timestamp,\n inputs,\n anonymous,\n NAME\n),\napply_event_udfs AS (\n SELECT\n contract_address,\n NAME AS event_name,\n PARSE_JSON(\n OBJECT_CONSTRUCT(\n 'anonymous',\n anonymous,\n 'inputs',\n inputs,\n 'name',\n NAME,\n 'type',\n 'event'\n ) :: STRING\n ) AS abi,\n utils.udf_evm_text_signature(abi) AS simple_event_name,\n utils.udf_keccak256(simple_event_name) AS event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp\n FROM\n event_types\n),\nfinal_flat_event_abis AS (\n SELECT\n contract_address,\n event_name,\n abi,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp\n FROM\n apply_event_udfs\n),\nflat_function_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n VALUE :inputs AS inputs,\n VALUE :outputs AS outputs,\n VALUE :payable :: BOOLEAN AS payable,\n VALUE :stateMutability :: STRING AS stateMutability,\n VALUE :type :: STRING AS TYPE,\n VALUE :name :: STRING AS NAME\n FROM\n base,\n LATERAL FLATTEN (\n input => DATA\n )\n WHERE\n TYPE = 'function'\n),\nudf_function_abis AS (\n SELECT\n *,\n PARSE_JSON(\n object_construct_keep_null(\n 'inputs',\n IFNULL(\n inputs,\n []\n ),\n 'outputs',\n IFNULL(\n outputs,\n []\n ),\n 'name',\n NAME,\n 'type',\n 'function'\n ) :: STRING\n ) AS abi,\n utils.udf_evm_text_signature(abi) AS simple_function_name,\n utils.udf_keccak256(simple_function_name) AS function_signature\n FROM\n flat_function_abis qualify ROW_NUMBER() over (\n PARTITION BY contract_address,\n function_signature\n ORDER BY\n _inserted_timestamp DESC\n ) = 1\n),\nflat_inputs AS (\n SELECT\n contract_address,\n inputs,\n NAME,\n simple_function_name,\n function_signature,\n ARRAY_AGG(\n VALUE :type :: STRING\n ) AS inputs_type\n FROM\n udf_function_abis,\n LATERAL FLATTEN (\n input => inputs\n )\n GROUP BY\n ALL\n),\nfill_missing_input_names AS (\n SELECT\n contract_address,\n NAME,\n inputs_type,\n simple_function_name,\n function_signature,\n VALUE :internalType :: STRING AS internalType,\n VALUE :type :: STRING AS TYPE,\n CASE\n WHEN VALUE :name :: STRING = '' THEN CONCAT('input_', ROW_NUMBER() over (PARTITION BY contract_address, function_signature\n ORDER BY\n INDEX ASC) :: STRING)\n ELSE VALUE :name :: STRING\n END AS name_fixed,\n inputs,\n INDEX,\n VALUE :components AS components\n FROM\n flat_inputs,\n LATERAL FLATTEN (\n input => inputs\n )\n),\nfinal_flat_inputs AS (\n SELECT\n contract_address,\n NAME,\n inputs_type,\n simple_function_name,\n function_signature,\n ARRAY_AGG(\n OBJECT_CONSTRUCT(\n 'internalType',\n internalType,\n 'name',\n name_fixed,\n 'type',\n TYPE,\n 'components',\n components\n )\n ) within GROUP (\n ORDER BY\n INDEX\n ) AS inputs\n FROM\n fill_missing_input_names\n GROUP BY\n ALL\n),\nflat_outputs AS (\n SELECT\n contract_address,\n outputs,\n simple_function_name,\n function_signature,\n NAME,\n ARRAY_AGG(\n VALUE :type :: STRING\n ) AS outputs_type\n FROM\n udf_function_abis,\n LATERAL FLATTEN (\n input => outputs\n )\n GROUP BY\n ALL\n),\nfill_missing_output_names AS (\n SELECT\n contract_address,\n NAME,\n outputs_type,\n simple_function_name,\n function_signature,\n VALUE :internalType :: STRING AS internalType,\n VALUE :type :: STRING AS TYPE,\n CASE\n WHEN VALUE :name :: STRING = '' THEN CONCAT('output_', ROW_NUMBER() over (PARTITION BY contract_address, function_signature\n ORDER BY\n INDEX ASC) :: STRING)\n ELSE VALUE :name :: STRING\n END AS name_fixed,\n outputs,\n INDEX,\n VALUE :components AS components\n FROM\n flat_outputs,\n LATERAL FLATTEN (\n input => outputs\n )\n),\nfinal_flat_outputs AS (\n SELECT\n contract_address,\n NAME,\n outputs_type,\n simple_function_name,\n function_signature,\n ARRAY_AGG(\n OBJECT_CONSTRUCT(\n 'internalType',\n internalType,\n 'name',\n name_fixed,\n 'type',\n TYPE,\n 'components',\n components\n )\n ) within GROUP (\n ORDER BY\n INDEX\n ) AS outputs\n FROM\n fill_missing_output_names\n GROUP BY\n ALL\n),\nall_contracts AS (\n SELECT\n A.contract_address,\n A.name AS function_name,\n i.inputs,\n o.outputs,\n i.inputs_type,\n o.outputs_type,\n A._inserted_timestamp,\n A.function_signature,\n A.simple_function_name\n FROM\n udf_function_abis A\n LEFT JOIN final_flat_inputs i\n ON A.contract_address = i.contract_address\n AND A.function_signature = i.function_signature\n LEFT JOIN final_flat_outputs o\n ON A.contract_address = o.contract_address\n AND A.function_signature = o.function_signature\n),\napply_function_udfs AS (\n SELECT\n contract_address,\n function_name,\n PARSE_JSON(\n object_construct_keep_null(\n 'inputs',\n IFNULL(\n inputs,\n []\n ),\n 'outputs',\n IFNULL(\n outputs,\n []\n ),\n 'name',\n function_name,\n 'type',\n 'function'\n ) :: STRING\n ) AS abi,\n simple_function_name,\n function_signature,\n inputs,\n outputs,\n inputs_type,\n outputs_type,\n _inserted_timestamp\n FROM\n all_contracts\n),\nfinal_function_abis AS (\n SELECT\n contract_address,\n function_name,\n abi,\n simple_function_name,\n function_signature,\n inputs,\n outputs,\n inputs_type,\n outputs_type,\n _inserted_timestamp\n FROM\n apply_function_udfs\n),\nnew_abis AS (\n SELECT\n DISTINCT contract_address\n FROM\n base\n),\ncontracts AS (\n SELECT\n contract_address\n FROM\n {{ ref('silver__proxies') }}\n JOIN new_abis USING (contract_address)\n),\nproxies AS (\n SELECT\n p.implementation_contract,\n p.contract_address\n FROM\n {{ ref('silver__proxies') }}\n p\n JOIN new_abis n\n ON p.implementation_contract = n.contract_address\n),\nfinal_groupings AS (\n SELECT\n b.contract_address AS address,\n C.contract_address,\n implementation_contract,\n CASE\n WHEN C.contract_address IS NOT NULL\n AND implementation_contract IS NOT NULL THEN 'contract'\n WHEN C.contract_address IS NOT NULL THEN 'contract'\n WHEN implementation_contract IS NOT NULL THEN 'implementation'\n WHEN C.contract_address IS NULL\n AND implementation_contract IS NULL THEN 'contract'\n END AS TYPE,\n p.contract_address AS proxy_address,\n CASE\n WHEN TYPE = 'contract' THEN address\n ELSE proxy_address\n END AS final_address\n FROM\n base b\n LEFT JOIN (\n SELECT\n DISTINCT contract_address\n FROM\n contracts\n ) C\n ON b.contract_address = C.contract_address\n LEFT JOIN (\n SELECT\n DISTINCT implementation_contract,\n contract_address\n FROM\n proxies\n ) p\n ON b.contract_address = p.implementation_contract\n),\nidentified_addresses AS (\n SELECT\n DISTINCT address AS base_address,\n final_address AS contract_address\n FROM\n final_groupings\n),\nfunction_mapping AS (\n SELECT\n ia.base_address,\n ia.contract_address,\n LEFT(\n function_signature,\n 10\n ) AS function_sig\n FROM\n identified_addresses ia\n JOIN final_function_abis ffa\n ON ia.base_address = ffa.contract_address\n),\nvalid_traces AS (\n SELECT\n DISTINCT base_address\n FROM\n (\n SELECT\n base_address\n FROM\n {{ ref('core__fact_traces') }}\n JOIN function_mapping\n ON function_sig = LEFT(\n input,\n 10\n )\n AND IFF(\n TYPE = 'DELEGATECALL',\n from_address,\n to_address\n ) = contract_address\n WHERE\n block_timestamp > DATEADD('month', -12, SYSDATE())\n LIMIT\n 50000)\n ), event_mapping AS (\n SELECT\n ia.base_address,\n ia.contract_address,\n event_signature\n FROM\n identified_addresses ia\n JOIN final_flat_event_abis fea\n ON ia.base_address = fea.contract_address\n ),\n valid_logs AS (\n SELECT\n DISTINCT base_address\n FROM\n (\n SELECT\n base_address\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n JOIN event_mapping ia\n ON ia.contract_address = l.contract_address\n AND event_signature = topics [0] :: STRING\n WHERE\n block_timestamp > DATEADD('month', -12, SYSDATE())\n LIMIT\n 50000)\n ), all_valid_addresses AS (\n SELECT\n base_address\n FROM\n valid_traces\n UNION\n SELECT\n base_address\n FROM\n valid_logs\n )\n SELECT\n contract_address,\n abi,\n discord_username,\n _inserted_timestamp,\n abi_hash,\n CONCAT(\n contract_address,\n '-',\n abi_hash\n ) AS id\n FROM\n base\n WHERE\n contract_address IN (\n SELECT\n base_address\n FROM\n all_valid_addresses\n ) qualify(ROW_NUMBER() over(PARTITION BY contract_address\n ORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver__proxies", "package": null, "version": null}, {"name": "silver__proxies", "package": null, "version": null}, {"name": "core__fact_traces", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [["crosschain_public", "user_abis"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.crosschain_public.user_abis", "model.fsc_evm.silver__proxies", "model.fsc_evm.core__fact_traces", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/silver__user_verified_abis.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"abis\",\n \"phase_2\"\n ],\n \"unique_key\": \"id\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"id\",\n tags = ['silver','abis','phase_2']\n) }}\n\nWITH base AS (\n\n SELECT\n contract_address,\n abi,\n PARSE_JSON(abi) AS DATA,\n SHA2(PARSE_JSON(abi)) AS abi_hash,\n discord_username,\n _inserted_timestamp\n FROM\n {{ source(\n \"crosschain_public\",\n \"user_abis\"\n ) }}\n WHERE\n blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n AND NOT duplicate_abi\n\n{% if is_incremental() %}\nAND contract_address NOT IN (\n SELECT\n contract_address\n FROM\n {{ this }}\n)\nAND _inserted_timestamp > (\n SELECT\n COALESCE(\n MAX(\n _inserted_timestamp\n ),\n '1970-01-01'\n )\n FROM\n {{ this }}\n)\nAND _inserted_timestamp > DATEADD('day', -2, SYSDATE())\n{% endif %}),\nflat_event_abi AS (\n SELECT\n contract_address,\n _inserted_timestamp,\n DATA,\n VALUE :inputs AS inputs,\n VALUE :payable :: BOOLEAN AS payable,\n VALUE :stateMutability :: STRING AS stateMutability,\n VALUE :type :: STRING AS TYPE,\n VALUE :anonymous :: BOOLEAN AS anonymous,\n VALUE :name :: STRING AS NAME\n FROM\n base,\n LATERAL FLATTEN (\n input => DATA\n )\n WHERE\n TYPE = 'event' qualify ROW_NUMBER() over (\n PARTITION BY contract_address,\n NAME,\n inputs\n ORDER BY\n LENGTH(inputs)\n ) = 1\n),\nevent_types AS (\n SELECT\n contract_address,\n _inserted_timestamp,\n inputs,\n anonymous,\n NAME,\n ARRAY_AGG(\n VALUE :type :: STRING\n ) AS event_type\n FROM\n flat_event_abi,\n LATERAL FLATTEN (\n input => inputs\n )\n GROUP BY\n contract_address,\n _inserted_timestamp,\n inputs,\n anonymous,\n NAME\n),\napply_event_udfs AS (\n SELECT\n contract_address,\n NAME AS event_name,\n PARSE_JSON(\n OBJECT_CONSTRUCT(\n 'anonymous',\n anonymous,\n 'inputs',\n inputs,\n 'name',\n NAME,\n 'type',\n 'event'\n ) :: STRING\n ) AS abi,\n utils.udf_evm_text_signature(abi) AS simple_event_name,\n utils.udf_keccak256(simple_event_name) AS event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp\n FROM\n event_types\n),\nfinal_flat_event_abis AS (\n SELECT\n contract_address,\n event_name,\n abi,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp\n FROM\n apply_event_udfs\n),\nflat_function_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n VALUE :inputs AS inputs,\n VALUE :outputs AS outputs,\n VALUE :payable :: BOOLEAN AS payable,\n VALUE :stateMutability :: STRING AS stateMutability,\n VALUE :type :: STRING AS TYPE,\n VALUE :name :: STRING AS NAME\n FROM\n base,\n LATERAL FLATTEN (\n input => DATA\n )\n WHERE\n TYPE = 'function'\n),\nudf_function_abis AS (\n SELECT\n *,\n PARSE_JSON(\n object_construct_keep_null(\n 'inputs',\n IFNULL(\n inputs,\n []\n ),\n 'outputs',\n IFNULL(\n outputs,\n []\n ),\n 'name',\n NAME,\n 'type',\n 'function'\n ) :: STRING\n ) AS abi,\n utils.udf_evm_text_signature(abi) AS simple_function_name,\n utils.udf_keccak256(simple_function_name) AS function_signature\n FROM\n flat_function_abis qualify ROW_NUMBER() over (\n PARTITION BY contract_address,\n function_signature\n ORDER BY\n _inserted_timestamp DESC\n ) = 1\n),\nflat_inputs AS (\n SELECT\n contract_address,\n inputs,\n NAME,\n simple_function_name,\n function_signature,\n ARRAY_AGG(\n VALUE :type :: STRING\n ) AS inputs_type\n FROM\n udf_function_abis,\n LATERAL FLATTEN (\n input => inputs\n )\n GROUP BY\n ALL\n),\nfill_missing_input_names AS (\n SELECT\n contract_address,\n NAME,\n inputs_type,\n simple_function_name,\n function_signature,\n VALUE :internalType :: STRING AS internalType,\n VALUE :type :: STRING AS TYPE,\n CASE\n WHEN VALUE :name :: STRING = '' THEN CONCAT('input_', ROW_NUMBER() over (PARTITION BY contract_address, function_signature\n ORDER BY\n INDEX ASC) :: STRING)\n ELSE VALUE :name :: STRING\n END AS name_fixed,\n inputs,\n INDEX,\n VALUE :components AS components\n FROM\n flat_inputs,\n LATERAL FLATTEN (\n input => inputs\n )\n),\nfinal_flat_inputs AS (\n SELECT\n contract_address,\n NAME,\n inputs_type,\n simple_function_name,\n function_signature,\n ARRAY_AGG(\n OBJECT_CONSTRUCT(\n 'internalType',\n internalType,\n 'name',\n name_fixed,\n 'type',\n TYPE,\n 'components',\n components\n )\n ) within GROUP (\n ORDER BY\n INDEX\n ) AS inputs\n FROM\n fill_missing_input_names\n GROUP BY\n ALL\n),\nflat_outputs AS (\n SELECT\n contract_address,\n outputs,\n simple_function_name,\n function_signature,\n NAME,\n ARRAY_AGG(\n VALUE :type :: STRING\n ) AS outputs_type\n FROM\n udf_function_abis,\n LATERAL FLATTEN (\n input => outputs\n )\n GROUP BY\n ALL\n),\nfill_missing_output_names AS (\n SELECT\n contract_address,\n NAME,\n outputs_type,\n simple_function_name,\n function_signature,\n VALUE :internalType :: STRING AS internalType,\n VALUE :type :: STRING AS TYPE,\n CASE\n WHEN VALUE :name :: STRING = '' THEN CONCAT('output_', ROW_NUMBER() over (PARTITION BY contract_address, function_signature\n ORDER BY\n INDEX ASC) :: STRING)\n ELSE VALUE :name :: STRING\n END AS name_fixed,\n outputs,\n INDEX,\n VALUE :components AS components\n FROM\n flat_outputs,\n LATERAL FLATTEN (\n input => outputs\n )\n),\nfinal_flat_outputs AS (\n SELECT\n contract_address,\n NAME,\n outputs_type,\n simple_function_name,\n function_signature,\n ARRAY_AGG(\n OBJECT_CONSTRUCT(\n 'internalType',\n internalType,\n 'name',\n name_fixed,\n 'type',\n TYPE,\n 'components',\n components\n )\n ) within GROUP (\n ORDER BY\n INDEX\n ) AS outputs\n FROM\n fill_missing_output_names\n GROUP BY\n ALL\n),\nall_contracts AS (\n SELECT\n A.contract_address,\n A.name AS function_name,\n i.inputs,\n o.outputs,\n i.inputs_type,\n o.outputs_type,\n A._inserted_timestamp,\n A.function_signature,\n A.simple_function_name\n FROM\n udf_function_abis A\n LEFT JOIN final_flat_inputs i\n ON A.contract_address = i.contract_address\n AND A.function_signature = i.function_signature\n LEFT JOIN final_flat_outputs o\n ON A.contract_address = o.contract_address\n AND A.function_signature = o.function_signature\n),\napply_function_udfs AS (\n SELECT\n contract_address,\n function_name,\n PARSE_JSON(\n object_construct_keep_null(\n 'inputs',\n IFNULL(\n inputs,\n []\n ),\n 'outputs',\n IFNULL(\n outputs,\n []\n ),\n 'name',\n function_name,\n 'type',\n 'function'\n ) :: STRING\n ) AS abi,\n simple_function_name,\n function_signature,\n inputs,\n outputs,\n inputs_type,\n outputs_type,\n _inserted_timestamp\n FROM\n all_contracts\n),\nfinal_function_abis AS (\n SELECT\n contract_address,\n function_name,\n abi,\n simple_function_name,\n function_signature,\n inputs,\n outputs,\n inputs_type,\n outputs_type,\n _inserted_timestamp\n FROM\n apply_function_udfs\n),\nnew_abis AS (\n SELECT\n DISTINCT contract_address\n FROM\n base\n),\ncontracts AS (\n SELECT\n contract_address\n FROM\n {{ ref('silver__proxies') }}\n JOIN new_abis USING (contract_address)\n),\nproxies AS (\n SELECT\n p.implementation_contract,\n p.contract_address\n FROM\n {{ ref('silver__proxies') }}\n p\n JOIN new_abis n\n ON p.implementation_contract = n.contract_address\n),\nfinal_groupings AS (\n SELECT\n b.contract_address AS address,\n C.contract_address,\n implementation_contract,\n CASE\n WHEN C.contract_address IS NOT NULL\n AND implementation_contract IS NOT NULL THEN 'contract'\n WHEN C.contract_address IS NOT NULL THEN 'contract'\n WHEN implementation_contract IS NOT NULL THEN 'implementation'\n WHEN C.contract_address IS NULL\n AND implementation_contract IS NULL THEN 'contract'\n END AS TYPE,\n p.contract_address AS proxy_address,\n CASE\n WHEN TYPE = 'contract' THEN address\n ELSE proxy_address\n END AS final_address\n FROM\n base b\n LEFT JOIN (\n SELECT\n DISTINCT contract_address\n FROM\n contracts\n ) C\n ON b.contract_address = C.contract_address\n LEFT JOIN (\n SELECT\n DISTINCT implementation_contract,\n contract_address\n FROM\n proxies\n ) p\n ON b.contract_address = p.implementation_contract\n),\nidentified_addresses AS (\n SELECT\n DISTINCT address AS base_address,\n final_address AS contract_address\n FROM\n final_groupings\n),\nfunction_mapping AS (\n SELECT\n ia.base_address,\n ia.contract_address,\n LEFT(\n function_signature,\n 10\n ) AS function_sig\n FROM\n identified_addresses ia\n JOIN final_function_abis ffa\n ON ia.base_address = ffa.contract_address\n),\nvalid_traces AS (\n SELECT\n DISTINCT base_address\n FROM\n (\n SELECT\n base_address\n FROM\n {{ ref('core__fact_traces') }}\n JOIN function_mapping\n ON function_sig = LEFT(\n input,\n 10\n )\n AND IFF(\n TYPE = 'DELEGATECALL',\n from_address,\n to_address\n ) = contract_address\n WHERE\n block_timestamp > DATEADD('month', -12, SYSDATE())\n LIMIT\n 50000)\n ), event_mapping AS (\n SELECT\n ia.base_address,\n ia.contract_address,\n event_signature\n FROM\n identified_addresses ia\n JOIN final_flat_event_abis fea\n ON ia.base_address = fea.contract_address\n ),\n valid_logs AS (\n SELECT\n DISTINCT base_address\n FROM\n (\n SELECT\n base_address\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n JOIN event_mapping ia\n ON ia.contract_address = l.contract_address\n AND event_signature = topics [0] :: STRING\n WHERE\n block_timestamp > DATEADD('month', -12, SYSDATE())\n LIMIT\n 50000)\n ), all_valid_addresses AS (\n SELECT\n base_address\n FROM\n valid_traces\n UNION\n SELECT\n base_address\n FROM\n valid_logs\n )\n SELECT\n contract_address,\n abi,\n discord_username,\n _inserted_timestamp,\n abi_hash,\n CONCAT(\n contract_address,\n '-',\n abi_hash\n ) AS id\n FROM\n base\n WHERE\n contract_address IN (\n SELECT\n base_address\n FROM\n all_valid_addresses\n ) qualify(ROW_NUMBER() over(PARTITION BY contract_address\n ORDER BY\n _inserted_timestamp DESC)) = 1\n*/\n\n\n\nWITH base AS (\n\n SELECT\n contract_address,\n abi,\n PARSE_JSON(abi) AS DATA,\n SHA2(PARSE_JSON(abi)) AS abi_hash,\n discord_username,\n _inserted_timestamp\n FROM\n crosschain.bronze_public.user_abis\n WHERE\n blockchain = 'polygon'\n AND NOT duplicate_abi\n\n\nAND contract_address NOT IN (\n SELECT\n contract_address\n FROM\n polygon.silver.user_verified_abis\n)\nAND _inserted_timestamp > (\n SELECT\n COALESCE(\n MAX(\n _inserted_timestamp\n ),\n '1970-01-01'\n )\n FROM\n polygon.silver.user_verified_abis\n)\nAND _inserted_timestamp > DATEADD('day', -2, SYSDATE())\n),\nflat_event_abi AS (\n SELECT\n contract_address,\n _inserted_timestamp,\n DATA,\n VALUE :inputs AS inputs,\n VALUE :payable :: BOOLEAN AS payable,\n VALUE :stateMutability :: STRING AS stateMutability,\n VALUE :type :: STRING AS TYPE,\n VALUE :anonymous :: BOOLEAN AS anonymous,\n VALUE :name :: STRING AS NAME\n FROM\n base,\n LATERAL FLATTEN (\n input => DATA\n )\n WHERE\n TYPE = 'event' qualify ROW_NUMBER() over (\n PARTITION BY contract_address,\n NAME,\n inputs\n ORDER BY\n LENGTH(inputs)\n ) = 1\n),\nevent_types AS (\n SELECT\n contract_address,\n _inserted_timestamp,\n inputs,\n anonymous,\n NAME,\n ARRAY_AGG(\n VALUE :type :: STRING\n ) AS event_type\n FROM\n flat_event_abi,\n LATERAL FLATTEN (\n input => inputs\n )\n GROUP BY\n contract_address,\n _inserted_timestamp,\n inputs,\n anonymous,\n NAME\n),\napply_event_udfs AS (\n SELECT\n contract_address,\n NAME AS event_name,\n PARSE_JSON(\n OBJECT_CONSTRUCT(\n 'anonymous',\n anonymous,\n 'inputs',\n inputs,\n 'name',\n NAME,\n 'type',\n 'event'\n ) :: STRING\n ) AS abi,\n utils.udf_evm_text_signature(abi) AS simple_event_name,\n utils.udf_keccak256(simple_event_name) AS event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp\n FROM\n event_types\n),\nfinal_flat_event_abis AS (\n SELECT\n contract_address,\n event_name,\n abi,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp\n FROM\n apply_event_udfs\n),\nflat_function_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n VALUE :inputs AS inputs,\n VALUE :outputs AS outputs,\n VALUE :payable :: BOOLEAN AS payable,\n VALUE :stateMutability :: STRING AS stateMutability,\n VALUE :type :: STRING AS TYPE,\n VALUE :name :: STRING AS NAME\n FROM\n base,\n LATERAL FLATTEN (\n input => DATA\n )\n WHERE\n TYPE = 'function'\n),\nudf_function_abis AS (\n SELECT\n *,\n PARSE_JSON(\n object_construct_keep_null(\n 'inputs',\n IFNULL(\n inputs,\n []\n ),\n 'outputs',\n IFNULL(\n outputs,\n []\n ),\n 'name',\n NAME,\n 'type',\n 'function'\n ) :: STRING\n ) AS abi,\n utils.udf_evm_text_signature(abi) AS simple_function_name,\n utils.udf_keccak256(simple_function_name) AS function_signature\n FROM\n flat_function_abis qualify ROW_NUMBER() over (\n PARTITION BY contract_address,\n function_signature\n ORDER BY\n _inserted_timestamp DESC\n ) = 1\n),\nflat_inputs AS (\n SELECT\n contract_address,\n inputs,\n NAME,\n simple_function_name,\n function_signature,\n ARRAY_AGG(\n VALUE :type :: STRING\n ) AS inputs_type\n FROM\n udf_function_abis,\n LATERAL FLATTEN (\n input => inputs\n )\n GROUP BY\n ALL\n),\nfill_missing_input_names AS (\n SELECT\n contract_address,\n NAME,\n inputs_type,\n simple_function_name,\n function_signature,\n VALUE :internalType :: STRING AS internalType,\n VALUE :type :: STRING AS TYPE,\n CASE\n WHEN VALUE :name :: STRING = '' THEN CONCAT('input_', ROW_NUMBER() over (PARTITION BY contract_address, function_signature\n ORDER BY\n INDEX ASC) :: STRING)\n ELSE VALUE :name :: STRING\n END AS name_fixed,\n inputs,\n INDEX,\n VALUE :components AS components\n FROM\n flat_inputs,\n LATERAL FLATTEN (\n input => inputs\n )\n),\nfinal_flat_inputs AS (\n SELECT\n contract_address,\n NAME,\n inputs_type,\n simple_function_name,\n function_signature,\n ARRAY_AGG(\n OBJECT_CONSTRUCT(\n 'internalType',\n internalType,\n 'name',\n name_fixed,\n 'type',\n TYPE,\n 'components',\n components\n )\n ) within GROUP (\n ORDER BY\n INDEX\n ) AS inputs\n FROM\n fill_missing_input_names\n GROUP BY\n ALL\n),\nflat_outputs AS (\n SELECT\n contract_address,\n outputs,\n simple_function_name,\n function_signature,\n NAME,\n ARRAY_AGG(\n VALUE :type :: STRING\n ) AS outputs_type\n FROM\n udf_function_abis,\n LATERAL FLATTEN (\n input => outputs\n )\n GROUP BY\n ALL\n),\nfill_missing_output_names AS (\n SELECT\n contract_address,\n NAME,\n outputs_type,\n simple_function_name,\n function_signature,\n VALUE :internalType :: STRING AS internalType,\n VALUE :type :: STRING AS TYPE,\n CASE\n WHEN VALUE :name :: STRING = '' THEN CONCAT('output_', ROW_NUMBER() over (PARTITION BY contract_address, function_signature\n ORDER BY\n INDEX ASC) :: STRING)\n ELSE VALUE :name :: STRING\n END AS name_fixed,\n outputs,\n INDEX,\n VALUE :components AS components\n FROM\n flat_outputs,\n LATERAL FLATTEN (\n input => outputs\n )\n),\nfinal_flat_outputs AS (\n SELECT\n contract_address,\n NAME,\n outputs_type,\n simple_function_name,\n function_signature,\n ARRAY_AGG(\n OBJECT_CONSTRUCT(\n 'internalType',\n internalType,\n 'name',\n name_fixed,\n 'type',\n TYPE,\n 'components',\n components\n )\n ) within GROUP (\n ORDER BY\n INDEX\n ) AS outputs\n FROM\n fill_missing_output_names\n GROUP BY\n ALL\n),\nall_contracts AS (\n SELECT\n A.contract_address,\n A.name AS function_name,\n i.inputs,\n o.outputs,\n i.inputs_type,\n o.outputs_type,\n A._inserted_timestamp,\n A.function_signature,\n A.simple_function_name\n FROM\n udf_function_abis A\n LEFT JOIN final_flat_inputs i\n ON A.contract_address = i.contract_address\n AND A.function_signature = i.function_signature\n LEFT JOIN final_flat_outputs o\n ON A.contract_address = o.contract_address\n AND A.function_signature = o.function_signature\n),\napply_function_udfs AS (\n SELECT\n contract_address,\n function_name,\n PARSE_JSON(\n object_construct_keep_null(\n 'inputs',\n IFNULL(\n inputs,\n []\n ),\n 'outputs',\n IFNULL(\n outputs,\n []\n ),\n 'name',\n function_name,\n 'type',\n 'function'\n ) :: STRING\n ) AS abi,\n simple_function_name,\n function_signature,\n inputs,\n outputs,\n inputs_type,\n outputs_type,\n _inserted_timestamp\n FROM\n all_contracts\n),\nfinal_function_abis AS (\n SELECT\n contract_address,\n function_name,\n abi,\n simple_function_name,\n function_signature,\n inputs,\n outputs,\n inputs_type,\n outputs_type,\n _inserted_timestamp\n FROM\n apply_function_udfs\n),\nnew_abis AS (\n SELECT\n DISTINCT contract_address\n FROM\n base\n),\ncontracts AS (\n SELECT\n contract_address\n FROM\n polygon.silver.proxies\n JOIN new_abis USING (contract_address)\n),\nproxies AS (\n SELECT\n p.implementation_contract,\n p.contract_address\n FROM\n polygon.silver.proxies\n p\n JOIN new_abis n\n ON p.implementation_contract = n.contract_address\n),\nfinal_groupings AS (\n SELECT\n b.contract_address AS address,\n C.contract_address,\n implementation_contract,\n CASE\n WHEN C.contract_address IS NOT NULL\n AND implementation_contract IS NOT NULL THEN 'contract'\n WHEN C.contract_address IS NOT NULL THEN 'contract'\n WHEN implementation_contract IS NOT NULL THEN 'implementation'\n WHEN C.contract_address IS NULL\n AND implementation_contract IS NULL THEN 'contract'\n END AS TYPE,\n p.contract_address AS proxy_address,\n CASE\n WHEN TYPE = 'contract' THEN address\n ELSE proxy_address\n END AS final_address\n FROM\n base b\n LEFT JOIN (\n SELECT\n DISTINCT contract_address\n FROM\n contracts\n ) C\n ON b.contract_address = C.contract_address\n LEFT JOIN (\n SELECT\n DISTINCT implementation_contract,\n contract_address\n FROM\n proxies\n ) p\n ON b.contract_address = p.implementation_contract\n),\nidentified_addresses AS (\n SELECT\n DISTINCT address AS base_address,\n final_address AS contract_address\n FROM\n final_groupings\n),\nfunction_mapping AS (\n SELECT\n ia.base_address,\n ia.contract_address,\n LEFT(\n function_signature,\n 10\n ) AS function_sig\n FROM\n identified_addresses ia\n JOIN final_function_abis ffa\n ON ia.base_address = ffa.contract_address\n),\nvalid_traces AS (\n SELECT\n DISTINCT base_address\n FROM\n (\n SELECT\n base_address\n FROM\n polygon.core.fact_traces\n JOIN function_mapping\n ON function_sig = LEFT(\n input,\n 10\n )\n AND IFF(\n TYPE = 'DELEGATECALL',\n from_address,\n to_address\n ) = contract_address\n WHERE\n block_timestamp > DATEADD('month', -12, SYSDATE())\n LIMIT\n 50000)\n ), event_mapping AS (\n SELECT\n ia.base_address,\n ia.contract_address,\n event_signature\n FROM\n identified_addresses ia\n JOIN final_flat_event_abis fea\n ON ia.base_address = fea.contract_address\n ),\n valid_logs AS (\n SELECT\n DISTINCT base_address\n FROM\n (\n SELECT\n base_address\n FROM\n polygon.core.fact_event_logs\n l\n JOIN event_mapping ia\n ON ia.contract_address = l.contract_address\n AND event_signature = topics [0] :: STRING\n WHERE\n block_timestamp > DATEADD('month', -12, SYSDATE())\n LIMIT\n 50000)\n ), all_valid_addresses AS (\n SELECT\n base_address\n FROM\n valid_traces\n UNION\n SELECT\n base_address\n FROM\n valid_logs\n )\n SELECT\n contract_address,\n abi,\n discord_username,\n _inserted_timestamp,\n abi_hash,\n CONCAT(\n contract_address,\n '-',\n abi_hash\n ) AS id\n FROM\n base\n WHERE\n contract_address IN (\n SELECT\n base_address\n FROM\n all_valid_addresses\n ) qualify(ROW_NUMBER() over(PARTITION BY contract_address\n ORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__verified_abis": {"database": "polygon", "schema": "silver", "name": "silver__verified_abis", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/silver/silver__verified_abis.sql", "original_file_path": "models/decoder_package/abis/silver/silver__verified_abis.sql", "unique_id": "model.fsc_evm.silver__verified_abis", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "silver__verified_abis"], "alias": "verified_abis", "checksum": {"name": "sha256", "checksum": "2fbab463ff2a6217d5936237adf7ebb481590c4fe65b5ee73f9e24aad1337a77"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "abis", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(contract_address)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "contract_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "merge_update_columns": ["contract_address"]}, "tags": ["silver", "abis", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "contract_address", "merge_update_columns": ["contract_address"], "full_refresh": false, "tags": ["silver", "abis", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018297.4156654, "relation_name": "polygon.silver.verified_abis", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze__contract_abis') }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"contract_address\",\n merge_update_columns = [\"contract_address\"],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(contract_address)\",\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','abis','phase_2']\n) }}\n\nWITH base AS (\n\n SELECT\n contract_address,\n {% if vars.DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED %}\n PARSE_JSON(\n VALUE :data :result\n ) AS DATA,\n {% elif vars.DECODER_SILVER_CONTRACT_ABIS_RESULT_ENABLED %}\n PARSE_JSON(\n VALUE :data :result :output :abi\n ) AS DATA,\n {% else %}\n PARSE_JSON(\n VALUE :data :abi\n ) AS DATA,\n {% endif %}\n\n _inserted_timestamp\n FROM\n\n{% if is_incremental() %}\n{{ ref('bronze__contract_abis') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01')\n FROM\n {{ this }}\n )\n AND {% if vars.DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED %}\n VALUE :data :message :: STRING = 'OK' \n {% elif vars.DECODER_SILVER_CONTRACT_ABIS_RESULT_ENABLED %}\n VALUE :data :result IS NOT NULL\n {% else %}\n VALUE :data :abi IS NOT NULL\n {% endif %}\n {% else %}\n {{ ref('bronze__contract_abis_fr') }}\n WHERE\n {% if vars.DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED %}\n VALUE :data :message :: STRING = 'OK' \n {% elif vars.DECODER_SILVER_CONTRACT_ABIS_RESULT_ENABLED %}\n VALUE :data :result IS NOT NULL\n {% else %}\n VALUE :data :abi IS NOT NULL\n {% endif %}\n {% endif %}\n ),\n block_explorer_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n LOWER('{{ vars.DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME }}') AS abi_source\n FROM\n base\n ),\n user_abis AS (\n SELECT\n contract_address,\n abi,\n discord_username,\n _inserted_timestamp,\n 'user' AS abi_source,\n abi_hash\n FROM\n {{ ref('silver__user_verified_abis') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01')\n FROM\n {{ this }}\n WHERE\n abi_source = 'user')\n AND contract_address NOT IN (\n SELECT\n contract_address\n FROM\n {{ this }}\n )\n {% endif %}\n ),\n all_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n NULL AS discord_username,\n SHA2(DATA) AS abi_hash\n FROM\n block_explorer_abis\n UNION\n SELECT\n contract_address,\n PARSE_JSON(abi) AS DATA,\n _inserted_timestamp,\n 'user' AS abi_source,\n discord_username,\n abi_hash\n FROM\n user_abis\n )\nSELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash\nFROM\n all_abis qualify(ROW_NUMBER() over(PARTITION BY contract_address\nORDER BY\n _INSERTED_TIMESTAMP DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__contract_abis", "package": null, "version": null}, {"name": "bronze__contract_abis_fr", "package": null, "version": null}, {"name": "silver__user_verified_abis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__contract_abis", "model.fsc_evm.bronze__contract_abis_fr", "model.fsc_evm.silver__user_verified_abis"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/silver__verified_abis.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"merge_update_columns\": [\n \"contract_address\"\n ],\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(contract_address)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"abis\",\n \"phase_2\"\n ],\n \"unique_key\": \"contract_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze__contract_abis') }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"contract_address\",\n merge_update_columns = [\"contract_address\"],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(contract_address)\",\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','abis','phase_2']\n) }}\n\nWITH base AS (\n\n SELECT\n contract_address,\n {% if vars.DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED %}\n PARSE_JSON(\n VALUE :data :result\n ) AS DATA,\n {% elif vars.DECODER_SILVER_CONTRACT_ABIS_RESULT_ENABLED %}\n PARSE_JSON(\n VALUE :data :result :output :abi\n ) AS DATA,\n {% else %}\n PARSE_JSON(\n VALUE :data :abi\n ) AS DATA,\n {% endif %}\n\n _inserted_timestamp\n FROM\n\n{% if is_incremental() %}\n{{ ref('bronze__contract_abis') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01')\n FROM\n {{ this }}\n )\n AND {% if vars.DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED %}\n VALUE :data :message :: STRING = 'OK' \n {% elif vars.DECODER_SILVER_CONTRACT_ABIS_RESULT_ENABLED %}\n VALUE :data :result IS NOT NULL\n {% else %}\n VALUE :data :abi IS NOT NULL\n {% endif %}\n {% else %}\n {{ ref('bronze__contract_abis_fr') }}\n WHERE\n {% if vars.DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED %}\n VALUE :data :message :: STRING = 'OK' \n {% elif vars.DECODER_SILVER_CONTRACT_ABIS_RESULT_ENABLED %}\n VALUE :data :result IS NOT NULL\n {% else %}\n VALUE :data :abi IS NOT NULL\n {% endif %}\n {% endif %}\n ),\n block_explorer_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n LOWER('{{ vars.DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME }}') AS abi_source\n FROM\n base\n ),\n user_abis AS (\n SELECT\n contract_address,\n abi,\n discord_username,\n _inserted_timestamp,\n 'user' AS abi_source,\n abi_hash\n FROM\n {{ ref('silver__user_verified_abis') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01')\n FROM\n {{ this }}\n WHERE\n abi_source = 'user')\n AND contract_address NOT IN (\n SELECT\n contract_address\n FROM\n {{ this }}\n )\n {% endif %}\n ),\n all_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n NULL AS discord_username,\n SHA2(DATA) AS abi_hash\n FROM\n block_explorer_abis\n UNION\n SELECT\n contract_address,\n PARSE_JSON(abi) AS DATA,\n _inserted_timestamp,\n 'user' AS abi_source,\n discord_username,\n abi_hash\n FROM\n user_abis\n )\nSELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash\nFROM\n all_abis qualify(ROW_NUMBER() over(PARTITION BY contract_address\nORDER BY\n _INSERTED_TIMESTAMP DESC)) = 1\n*/\n\n-- depends_on: polygon.bronze.contract_abis\n\n\n\nWITH base AS (\n\n SELECT\n contract_address,\n \n PARSE_JSON(\n VALUE :data :result\n ) AS DATA,\n \n\n _inserted_timestamp\n FROM\n\n\npolygon.bronze.contract_abis\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01')\n FROM\n polygon.silver.verified_abis\n )\n AND \n VALUE :data :message :: STRING = 'OK' \n \n \n ),\n block_explorer_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n LOWER('polygonscan') AS abi_source\n FROM\n base\n ),\n user_abis AS (\n SELECT\n contract_address,\n abi,\n discord_username,\n _inserted_timestamp,\n 'user' AS abi_source,\n abi_hash\n FROM\n polygon.silver.user_verified_abis\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01')\n FROM\n polygon.silver.verified_abis\n WHERE\n abi_source = 'user')\n AND contract_address NOT IN (\n SELECT\n contract_address\n FROM\n polygon.silver.verified_abis\n )\n \n ),\n all_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n NULL AS discord_username,\n SHA2(DATA) AS abi_hash\n FROM\n block_explorer_abis\n UNION\n SELECT\n contract_address,\n PARSE_JSON(abi) AS DATA,\n _inserted_timestamp,\n 'user' AS abi_source,\n discord_username,\n abi_hash\n FROM\n user_abis\n )\nSELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash\nFROM\n all_abis qualify(ROW_NUMBER() over(PARTITION BY contract_address\nORDER BY\n _INSERTED_TIMESTAMP DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__complete_event_abis": {"database": "polygon", "schema": "silver", "name": "silver__complete_event_abis", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/silver/silver__complete_event_abis.sql", "original_file_path": "models/decoder_package/abis/silver/silver__complete_event_abis.sql", "unique_id": "model.fsc_evm.silver__complete_event_abis", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "silver__complete_event_abis"], "alias": "complete_event_abis", "checksum": {"name": "sha256", "checksum": "613db6f9b95efcb7c6cab5ba03b06ae0649398cb2e8461758b5b03c145996add"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "abis", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["parent_contract_address", "event_signature", "start_block"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "merge_exclude_columns": ["inserted_timestamp"]}, "tags": ["silver", "abis", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": ["parent_contract_address", "event_signature", "start_block"], "merge_exclude_columns": ["inserted_timestamp"], "tags": ["silver", "abis", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018297.7385838, "relation_name": "polygon.silver.complete_event_abis", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = 'incremental',\n unique_key = [\"parent_contract_address\",\"event_signature\",\"start_block\"],\n merge_exclude_columns = [\"inserted_timestamp\"],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION\",\n tags = ['silver','abis','phase_2']\n) }}\n\nWITH new_abis AS (\n\n SELECT\n DISTINCT contract_address\n FROM\n {{ ref('silver__flat_event_abis') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp :: DATE >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01' :: TIMESTAMP) - INTERVAL '18 hours'\n FROM\n {{ this }}\n )\nUNION\n -- catches any late arriving implementation contracts - when we get its ABI but no delegatecalls were made yet\nSELECT\n DISTINCT implementation_contract AS contract_address\nFROM\n {{ ref('silver__proxies') }}\nWHERE\n start_timestamp :: DATE >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01' :: TIMESTAMP) - INTERVAL '18 hours'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nimplementations AS (\n SELECT\n p0.created_block,\n p0.implementation_created_block,\n p0.contract_address,\n p0.implementation_contract,\n p0.start_block,\n p0._id,\n p0._inserted_timestamp\n FROM\n {{ ref('silver__proxies') }}\n p0\n JOIN new_abis na0\n ON p0.contract_address = na0.contract_address\n UNION\n SELECT\n p1.created_block,\n p1.implementation_created_block,\n p1.contract_address,\n p1.implementation_contract,\n p1.start_block,\n p1._id,\n p1._inserted_timestamp\n FROM\n {{ ref('silver__proxies') }}\n p1\n JOIN new_abis na1\n ON p1.implementation_contract = na1.contract_address\n),\nall_relevant_contracts AS (\n SELECT\n DISTINCT contract_address\n FROM\n implementations\n UNION\n SELECT\n DISTINCT implementation_contract AS contract_address\n FROM\n implementations\n UNION\n SELECT\n contract_address\n FROM\n new_abis\n),\nflat_abis AS (\n SELECT\n contract_address,\n event_name,\n abi,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp\n FROM\n {{ ref('silver__flat_event_abis') }}\n JOIN all_relevant_contracts USING (contract_address)\n),\nbase AS (\n SELECT\n ea.contract_address,\n event_name,\n abi,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n ea._inserted_timestamp,\n pb._inserted_timestamp AS implementation_inserted_timestamp,\n pb.start_block,\n pb.implementation_created_block,\n pb.contract_address AS base_contract_address,\n 1 AS priority\n FROM\n flat_abis ea\n JOIN implementations pb\n ON ea.contract_address = pb.implementation_contract\n UNION ALL\n SELECT\n eab.contract_address,\n event_name,\n abi,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n eab._inserted_timestamp,\n pbb._inserted_timestamp AS implementation_inserted_timestamp,\n pbb.created_block AS start_block,\n pbb.implementation_created_block,\n pbb.contract_address AS base_contract_address,\n 2 AS priority\n FROM\n flat_abis eab\n JOIN (\n SELECT\n DISTINCT contract_address,\n created_block,\n implementation_created_block,\n _inserted_timestamp\n FROM\n implementations\n ) pbb\n ON eab.contract_address = pbb.contract_address\n UNION ALL\n SELECT\n contract_address,\n event_name,\n abi,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp,\n NULL AS implementation_inserted_timestamp,\n 0 AS start_block,\n NULL AS implementation_created_block,\n contract_address AS base_contract_address,\n 3 AS priority\n FROM\n flat_abis eac\n WHERE\n contract_address NOT IN (\n SELECT\n DISTINCT contract_address\n FROM\n proxies\n )\n),\nnew_records AS (\n SELECT\n base_contract_address AS parent_contract_address,\n contract_address,\n event_name,\n abi,\n start_block,\n implementation_created_block,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp,\n implementation_inserted_timestamp\n FROM\n base qualify ROW_NUMBER() over (\n PARTITION BY parent_contract_address,\n NAME,\n event_type,\n event_signature,\n start_block\n ORDER BY\n priority ASC,\n _inserted_timestamp DESC,\n implementation_created_block DESC nulls last,\n implementation_inserted_timestamp DESC nulls last\n ) = 1\n),\nFINAL AS (\n SELECT\n parent_contract_address,\n contract_address AS implementation_contract,\n event_name,\n abi,\n start_block,\n implementation_created_block,\n simple_event_name,\n event_signature,\n IFNULL(LEAD(start_block) over (PARTITION BY parent_contract_address, event_signature\n ORDER BY\n start_block) -1, 1e18) AS end_block,\n _inserted_timestamp,\n implementation_inserted_timestamp,\n SYSDATE() AS _updated_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['parent_contract_address','event_signature','start_block']\n ) }} AS complete_event_abis_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\n FROM\n new_records qualify ROW_NUMBER() over (\n PARTITION BY parent_contract_address,\n event_name,\n event_signature,\n start_block\n ORDER BY\n _inserted_timestamp DESC\n ) = 1\n)\nSELECT\n parent_contract_address,\n implementation_contract,\n event_name,\n abi,\n start_block,\n implementation_created_block,\n simple_event_name,\n event_signature,\n end_block,\n _inserted_timestamp,\n implementation_inserted_timestamp,\n _updated_timestamp,\n complete_event_abis_id,\n inserted_timestamp,\n modified_timestamp,\n _invocation_id\nFROM\n FINAL f\n\n{% if is_incremental() %}\nLEFT JOIN {{ this }}\nt USING (\n parent_contract_address,\n event_name,\n event_signature,\n start_block,\n end_block\n)\nWHERE\n t.event_signature IS NULL\n{% endif %}", "language": "sql", "refs": [{"name": "silver__flat_event_abis", "package": null, "version": null}, {"name": "silver__proxies", "package": null, "version": null}, {"name": "silver__proxies", "package": null, "version": null}, {"name": "silver__flat_event_abis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__flat_event_abis", "model.fsc_evm.silver__proxies"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/silver__complete_event_abis.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"merge_exclude_columns\": [\n \"inserted_timestamp\"\n ],\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"abis\",\n \"phase_2\"\n ],\n \"unique_key\": [\n \"parent_contract_address\",\n \"event_signature\",\n \"start_block\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = 'incremental',\n unique_key = [\"parent_contract_address\",\"event_signature\",\"start_block\"],\n merge_exclude_columns = [\"inserted_timestamp\"],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION\",\n tags = ['silver','abis','phase_2']\n) }}\n\nWITH new_abis AS (\n\n SELECT\n DISTINCT contract_address\n FROM\n {{ ref('silver__flat_event_abis') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp :: DATE >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01' :: TIMESTAMP) - INTERVAL '18 hours'\n FROM\n {{ this }}\n )\nUNION\n -- catches any late arriving implementation contracts - when we get its ABI but no delegatecalls were made yet\nSELECT\n DISTINCT implementation_contract AS contract_address\nFROM\n {{ ref('silver__proxies') }}\nWHERE\n start_timestamp :: DATE >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01' :: TIMESTAMP) - INTERVAL '18 hours'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nimplementations AS (\n SELECT\n p0.created_block,\n p0.implementation_created_block,\n p0.contract_address,\n p0.implementation_contract,\n p0.start_block,\n p0._id,\n p0._inserted_timestamp\n FROM\n {{ ref('silver__proxies') }}\n p0\n JOIN new_abis na0\n ON p0.contract_address = na0.contract_address\n UNION\n SELECT\n p1.created_block,\n p1.implementation_created_block,\n p1.contract_address,\n p1.implementation_contract,\n p1.start_block,\n p1._id,\n p1._inserted_timestamp\n FROM\n {{ ref('silver__proxies') }}\n p1\n JOIN new_abis na1\n ON p1.implementation_contract = na1.contract_address\n),\nall_relevant_contracts AS (\n SELECT\n DISTINCT contract_address\n FROM\n implementations\n UNION\n SELECT\n DISTINCT implementation_contract AS contract_address\n FROM\n implementations\n UNION\n SELECT\n contract_address\n FROM\n new_abis\n),\nflat_abis AS (\n SELECT\n contract_address,\n event_name,\n abi,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp\n FROM\n {{ ref('silver__flat_event_abis') }}\n JOIN all_relevant_contracts USING (contract_address)\n),\nbase AS (\n SELECT\n ea.contract_address,\n event_name,\n abi,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n ea._inserted_timestamp,\n pb._inserted_timestamp AS implementation_inserted_timestamp,\n pb.start_block,\n pb.implementation_created_block,\n pb.contract_address AS base_contract_address,\n 1 AS priority\n FROM\n flat_abis ea\n JOIN implementations pb\n ON ea.contract_address = pb.implementation_contract\n UNION ALL\n SELECT\n eab.contract_address,\n event_name,\n abi,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n eab._inserted_timestamp,\n pbb._inserted_timestamp AS implementation_inserted_timestamp,\n pbb.created_block AS start_block,\n pbb.implementation_created_block,\n pbb.contract_address AS base_contract_address,\n 2 AS priority\n FROM\n flat_abis eab\n JOIN (\n SELECT\n DISTINCT contract_address,\n created_block,\n implementation_created_block,\n _inserted_timestamp\n FROM\n implementations\n ) pbb\n ON eab.contract_address = pbb.contract_address\n UNION ALL\n SELECT\n contract_address,\n event_name,\n abi,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp,\n NULL AS implementation_inserted_timestamp,\n 0 AS start_block,\n NULL AS implementation_created_block,\n contract_address AS base_contract_address,\n 3 AS priority\n FROM\n flat_abis eac\n WHERE\n contract_address NOT IN (\n SELECT\n DISTINCT contract_address\n FROM\n proxies\n )\n),\nnew_records AS (\n SELECT\n base_contract_address AS parent_contract_address,\n contract_address,\n event_name,\n abi,\n start_block,\n implementation_created_block,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp,\n implementation_inserted_timestamp\n FROM\n base qualify ROW_NUMBER() over (\n PARTITION BY parent_contract_address,\n NAME,\n event_type,\n event_signature,\n start_block\n ORDER BY\n priority ASC,\n _inserted_timestamp DESC,\n implementation_created_block DESC nulls last,\n implementation_inserted_timestamp DESC nulls last\n ) = 1\n),\nFINAL AS (\n SELECT\n parent_contract_address,\n contract_address AS implementation_contract,\n event_name,\n abi,\n start_block,\n implementation_created_block,\n simple_event_name,\n event_signature,\n IFNULL(LEAD(start_block) over (PARTITION BY parent_contract_address, event_signature\n ORDER BY\n start_block) -1, 1e18) AS end_block,\n _inserted_timestamp,\n implementation_inserted_timestamp,\n SYSDATE() AS _updated_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['parent_contract_address','event_signature','start_block']\n ) }} AS complete_event_abis_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\n FROM\n new_records qualify ROW_NUMBER() over (\n PARTITION BY parent_contract_address,\n event_name,\n event_signature,\n start_block\n ORDER BY\n _inserted_timestamp DESC\n ) = 1\n)\nSELECT\n parent_contract_address,\n implementation_contract,\n event_name,\n abi,\n start_block,\n implementation_created_block,\n simple_event_name,\n event_signature,\n end_block,\n _inserted_timestamp,\n implementation_inserted_timestamp,\n _updated_timestamp,\n complete_event_abis_id,\n inserted_timestamp,\n modified_timestamp,\n _invocation_id\nFROM\n FINAL f\n\n{% if is_incremental() %}\nLEFT JOIN {{ this }}\nt USING (\n parent_contract_address,\n event_name,\n event_signature,\n start_block,\n end_block\n)\nWHERE\n t.event_signature IS NULL\n{% endif %}\n*/\n\n\n\nWITH new_abis AS (\n\n SELECT\n DISTINCT contract_address\n FROM\n polygon.silver.flat_event_abis\n\n\nWHERE\n _inserted_timestamp :: DATE >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01' :: TIMESTAMP) - INTERVAL '18 hours'\n FROM\n polygon.silver.complete_event_abis\n )\nUNION\n -- catches any late arriving implementation contracts - when we get its ABI but no delegatecalls were made yet\nSELECT\n DISTINCT implementation_contract AS contract_address\nFROM\n polygon.silver.proxies\nWHERE\n start_timestamp :: DATE >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01' :: TIMESTAMP) - INTERVAL '18 hours'\n FROM\n polygon.silver.complete_event_abis\n )\n\n),\nimplementations AS (\n SELECT\n p0.created_block,\n p0.implementation_created_block,\n p0.contract_address,\n p0.implementation_contract,\n p0.start_block,\n p0._id,\n p0._inserted_timestamp\n FROM\n polygon.silver.proxies\n p0\n JOIN new_abis na0\n ON p0.contract_address = na0.contract_address\n UNION\n SELECT\n p1.created_block,\n p1.implementation_created_block,\n p1.contract_address,\n p1.implementation_contract,\n p1.start_block,\n p1._id,\n p1._inserted_timestamp\n FROM\n polygon.silver.proxies\n p1\n JOIN new_abis na1\n ON p1.implementation_contract = na1.contract_address\n),\nall_relevant_contracts AS (\n SELECT\n DISTINCT contract_address\n FROM\n implementations\n UNION\n SELECT\n DISTINCT implementation_contract AS contract_address\n FROM\n implementations\n UNION\n SELECT\n contract_address\n FROM\n new_abis\n),\nflat_abis AS (\n SELECT\n contract_address,\n event_name,\n abi,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp\n FROM\n polygon.silver.flat_event_abis\n JOIN all_relevant_contracts USING (contract_address)\n),\nbase AS (\n SELECT\n ea.contract_address,\n event_name,\n abi,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n ea._inserted_timestamp,\n pb._inserted_timestamp AS implementation_inserted_timestamp,\n pb.start_block,\n pb.implementation_created_block,\n pb.contract_address AS base_contract_address,\n 1 AS priority\n FROM\n flat_abis ea\n JOIN implementations pb\n ON ea.contract_address = pb.implementation_contract\n UNION ALL\n SELECT\n eab.contract_address,\n event_name,\n abi,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n eab._inserted_timestamp,\n pbb._inserted_timestamp AS implementation_inserted_timestamp,\n pbb.created_block AS start_block,\n pbb.implementation_created_block,\n pbb.contract_address AS base_contract_address,\n 2 AS priority\n FROM\n flat_abis eab\n JOIN (\n SELECT\n DISTINCT contract_address,\n created_block,\n implementation_created_block,\n _inserted_timestamp\n FROM\n implementations\n ) pbb\n ON eab.contract_address = pbb.contract_address\n UNION ALL\n SELECT\n contract_address,\n event_name,\n abi,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp,\n NULL AS implementation_inserted_timestamp,\n 0 AS start_block,\n NULL AS implementation_created_block,\n contract_address AS base_contract_address,\n 3 AS priority\n FROM\n flat_abis eac\n WHERE\n contract_address NOT IN (\n SELECT\n DISTINCT contract_address\n FROM\n proxies\n )\n),\nnew_records AS (\n SELECT\n base_contract_address AS parent_contract_address,\n contract_address,\n event_name,\n abi,\n start_block,\n implementation_created_block,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp,\n implementation_inserted_timestamp\n FROM\n base qualify ROW_NUMBER() over (\n PARTITION BY parent_contract_address,\n NAME,\n event_type,\n event_signature,\n start_block\n ORDER BY\n priority ASC,\n _inserted_timestamp DESC,\n implementation_created_block DESC nulls last,\n implementation_inserted_timestamp DESC nulls last\n ) = 1\n),\nFINAL AS (\n SELECT\n parent_contract_address,\n contract_address AS implementation_contract,\n event_name,\n abi,\n start_block,\n implementation_created_block,\n simple_event_name,\n event_signature,\n IFNULL(LEAD(start_block) over (PARTITION BY parent_contract_address, event_signature\n ORDER BY\n start_block) -1, 1e18) AS end_block,\n _inserted_timestamp,\n implementation_inserted_timestamp,\n SYSDATE() AS _updated_timestamp,\n \n \nmd5(cast(coalesce(cast(parent_contract_address as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(event_signature as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(start_block as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_event_abis_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\n FROM\n new_records qualify ROW_NUMBER() over (\n PARTITION BY parent_contract_address,\n event_name,\n event_signature,\n start_block\n ORDER BY\n _inserted_timestamp DESC\n ) = 1\n)\nSELECT\n parent_contract_address,\n implementation_contract,\n event_name,\n abi,\n start_block,\n implementation_created_block,\n simple_event_name,\n event_signature,\n end_block,\n _inserted_timestamp,\n implementation_inserted_timestamp,\n _updated_timestamp,\n complete_event_abis_id,\n inserted_timestamp,\n modified_timestamp,\n _invocation_id\nFROM\n FINAL f\n\n\nLEFT JOIN polygon.silver.complete_event_abis\nt USING (\n parent_contract_address,\n event_name,\n event_signature,\n start_block,\n end_block\n)\nWHERE\n t.event_signature IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__flat_event_abis": {"database": "polygon", "schema": "silver", "name": "silver__flat_event_abis", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/silver/silver__flat_event_abis.sql", "original_file_path": "models/decoder_package/abis/silver/silver__flat_event_abis.sql", "unique_id": "model.fsc_evm.silver__flat_event_abis", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "silver__flat_event_abis"], "alias": "flat_event_abis", "checksum": {"name": "sha256", "checksum": "4a121319089aa1fe92ad39e2bd61196bc2f6cff210e75d23da9f645842a3e386"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "abis", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY (contract_address)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "contract_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "_inserted_timestamp::date"}, "tags": ["silver", "abis", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "contract_address", "cluster_by": "_inserted_timestamp::date", "tags": ["silver", "abis", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018297.907175, "relation_name": "polygon.silver.flat_event_abis", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"contract_address\",\n cluster_by = \"_inserted_timestamp::date\",\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY (contract_address)\",\n tags = ['silver','abis','phase_2']\n) }}\n\nWITH abi_base AS (\n\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp\n FROM\n {{ ref('silver__abis') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(\n MAX(\n _inserted_timestamp\n ) - INTERVAL '18 hours',\n '1970-01-01'\n )\n FROM\n {{ this }}\n )\n{% endif %}\n),\nflat_abi AS (\n SELECT\n contract_address,\n _inserted_timestamp,\n DATA,\n VALUE :inputs AS inputs,\n VALUE :payable :: BOOLEAN AS payable,\n VALUE :stateMutability :: STRING AS stateMutability,\n VALUE :type :: STRING AS TYPE,\n VALUE :anonymous :: BOOLEAN AS anonymous,\n VALUE :name :: STRING AS NAME\n FROM\n abi_base,\n LATERAL FLATTEN (\n input => DATA\n )\n WHERE\n TYPE = 'event' qualify ROW_NUMBER() over (\n PARTITION BY contract_address,\n NAME,\n inputs\n ORDER BY\n LENGTH(inputs)\n ) = 1\n),\nevent_types AS (\n SELECT\n contract_address,\n _inserted_timestamp,\n inputs,\n anonymous,\n NAME,\n ARRAY_AGG(\n VALUE :type :: STRING\n ) AS event_type\n FROM\n flat_abi,\n LATERAL FLATTEN (\n input => inputs\n )\n GROUP BY\n contract_address,\n _inserted_timestamp,\n inputs,\n anonymous,\n NAME\n),\napply_udfs AS (\n SELECT\n contract_address,\n NAME AS event_name,\n PARSE_JSON(\n OBJECT_CONSTRUCT(\n 'anonymous',\n anonymous,\n 'inputs',\n inputs,\n 'name',\n NAME,\n 'type',\n 'event'\n ) :: STRING\n ) AS abi,\n utils.udf_evm_text_signature(abi) AS simple_event_name,\n utils.udf_keccak256(simple_event_name) AS event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp\n FROM\n event_types\n)\nSELECT\n contract_address,\n event_name,\n abi,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp\nFROM\n apply_udfs", "language": "sql", "refs": [{"name": "silver__abis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__abis"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/silver__flat_event_abis.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": \"_inserted_timestamp::date\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY (contract_address)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"abis\",\n \"phase_2\"\n ],\n \"unique_key\": \"contract_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"contract_address\",\n cluster_by = \"_inserted_timestamp::date\",\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY (contract_address)\",\n tags = ['silver','abis','phase_2']\n) }}\n\nWITH abi_base AS (\n\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp\n FROM\n {{ ref('silver__abis') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(\n MAX(\n _inserted_timestamp\n ) - INTERVAL '18 hours',\n '1970-01-01'\n )\n FROM\n {{ this }}\n )\n{% endif %}\n),\nflat_abi AS (\n SELECT\n contract_address,\n _inserted_timestamp,\n DATA,\n VALUE :inputs AS inputs,\n VALUE :payable :: BOOLEAN AS payable,\n VALUE :stateMutability :: STRING AS stateMutability,\n VALUE :type :: STRING AS TYPE,\n VALUE :anonymous :: BOOLEAN AS anonymous,\n VALUE :name :: STRING AS NAME\n FROM\n abi_base,\n LATERAL FLATTEN (\n input => DATA\n )\n WHERE\n TYPE = 'event' qualify ROW_NUMBER() over (\n PARTITION BY contract_address,\n NAME,\n inputs\n ORDER BY\n LENGTH(inputs)\n ) = 1\n),\nevent_types AS (\n SELECT\n contract_address,\n _inserted_timestamp,\n inputs,\n anonymous,\n NAME,\n ARRAY_AGG(\n VALUE :type :: STRING\n ) AS event_type\n FROM\n flat_abi,\n LATERAL FLATTEN (\n input => inputs\n )\n GROUP BY\n contract_address,\n _inserted_timestamp,\n inputs,\n anonymous,\n NAME\n),\napply_udfs AS (\n SELECT\n contract_address,\n NAME AS event_name,\n PARSE_JSON(\n OBJECT_CONSTRUCT(\n 'anonymous',\n anonymous,\n 'inputs',\n inputs,\n 'name',\n NAME,\n 'type',\n 'event'\n ) :: STRING\n ) AS abi,\n utils.udf_evm_text_signature(abi) AS simple_event_name,\n utils.udf_keccak256(simple_event_name) AS event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp\n FROM\n event_types\n)\nSELECT\n contract_address,\n event_name,\n abi,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp\nFROM\n apply_udfs\n*/\n\n\n\nWITH abi_base AS (\n\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp\n FROM\n polygon.silver.abis\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(\n MAX(\n _inserted_timestamp\n ) - INTERVAL '18 hours',\n '1970-01-01'\n )\n FROM\n polygon.silver.flat_event_abis\n )\n\n),\nflat_abi AS (\n SELECT\n contract_address,\n _inserted_timestamp,\n DATA,\n VALUE :inputs AS inputs,\n VALUE :payable :: BOOLEAN AS payable,\n VALUE :stateMutability :: STRING AS stateMutability,\n VALUE :type :: STRING AS TYPE,\n VALUE :anonymous :: BOOLEAN AS anonymous,\n VALUE :name :: STRING AS NAME\n FROM\n abi_base,\n LATERAL FLATTEN (\n input => DATA\n )\n WHERE\n TYPE = 'event' qualify ROW_NUMBER() over (\n PARTITION BY contract_address,\n NAME,\n inputs\n ORDER BY\n LENGTH(inputs)\n ) = 1\n),\nevent_types AS (\n SELECT\n contract_address,\n _inserted_timestamp,\n inputs,\n anonymous,\n NAME,\n ARRAY_AGG(\n VALUE :type :: STRING\n ) AS event_type\n FROM\n flat_abi,\n LATERAL FLATTEN (\n input => inputs\n )\n GROUP BY\n contract_address,\n _inserted_timestamp,\n inputs,\n anonymous,\n NAME\n),\napply_udfs AS (\n SELECT\n contract_address,\n NAME AS event_name,\n PARSE_JSON(\n OBJECT_CONSTRUCT(\n 'anonymous',\n anonymous,\n 'inputs',\n inputs,\n 'name',\n NAME,\n 'type',\n 'event'\n ) :: STRING\n ) AS abi,\n utils.udf_evm_text_signature(abi) AS simple_event_name,\n utils.udf_keccak256(simple_event_name) AS event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp\n FROM\n event_types\n)\nSELECT\n contract_address,\n event_name,\n abi,\n simple_event_name,\n event_signature,\n NAME,\n inputs,\n event_type,\n _inserted_timestamp\nFROM\n apply_udfs", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__bytecode_abis": {"database": "polygon", "schema": "silver", "name": "silver__bytecode_abis", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/silver/silver__bytecode_abis.sql", "original_file_path": "models/decoder_package/abis/silver/silver__bytecode_abis.sql", "unique_id": "model.fsc_evm.silver__bytecode_abis", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "silver__bytecode_abis"], "alias": "bytecode_abis", "checksum": {"name": "sha256", "checksum": "3067095c33d4160a1b6d5065583258da1edbd96b5d89af8bdb0172d40b3f5df0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "abis", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "contract_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "abis", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "contract_address", "full_refresh": false, "tags": ["silver", "abis", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018298.072282, "relation_name": "polygon.silver.bytecode_abis", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"contract_address\",\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','abis','phase_2']\n) }}\n\nWITH contracts_with_abis AS (\n -- Identifying contracts with verified ABIs\n\n SELECT\n created_contract_address AS contract_address\n FROM\n {{ ref('silver__created_contracts') }}\n JOIN {{ ref('silver__verified_abis') }} A\n ON A.contract_address = created_contract_address\n),\ncontracts_without_abis AS (\n -- Contracts that are missing ABIs\n SELECT\n created_contract_address AS contract_address,\n created_contract_input AS bytecode\n FROM\n {{ ref('silver__created_contracts') }}\n WHERE\n created_contract_address NOT IN (\n SELECT\n contract_address\n FROM\n contracts_with_abis\n )\n\n{% if is_incremental() %}\nAND created_contract_address NOT IN (\n SELECT\n contract_address\n FROM\n {{ this }}\n)\n{% endif %}\n),\nunique_bytecode_abis AS (\n -- Bytecodes from created_contracts with a unique ABI\n SELECT\n cc.created_contract_input AS bytecode,\n va.data AS abi,\n va.abi_hash\n FROM\n {{ ref('silver__created_contracts') }}\n cc\n JOIN {{ ref('silver__verified_abis') }}\n va\n ON cc.created_contract_address = va.contract_address\n GROUP BY\n cc.created_contract_input,\n va.data,\n va.abi_hash\n HAVING\n COUNT(\n DISTINCT va.data\n ) = 1 -- Ensuring there's only one ABI per bytecode\n) -- Final matching\nSELECT\n contract_address,\n abi,\n abi_hash,\n\n{% if is_incremental() %}\nSYSDATE()\n{% else %}\n TO_TIMESTAMP_NTZ('2000-01-01 00:00:00')\n{% endif %}\n\nAS _inserted_timestamp\nFROM\n contracts_without_abis\n JOIN unique_bytecode_abis USING (bytecode)", "language": "sql", "refs": [{"name": "silver__created_contracts", "package": null, "version": null}, {"name": "silver__verified_abis", "package": null, "version": null}, {"name": "silver__created_contracts", "package": null, "version": null}, {"name": "silver__created_contracts", "package": null, "version": null}, {"name": "silver__verified_abis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__created_contracts", "model.fsc_evm.silver__verified_abis"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/silver__bytecode_abis.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"abis\",\n \"phase_2\"\n ],\n \"unique_key\": \"contract_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"contract_address\",\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','abis','phase_2']\n) }}\n\nWITH contracts_with_abis AS (\n -- Identifying contracts with verified ABIs\n\n SELECT\n created_contract_address AS contract_address\n FROM\n {{ ref('silver__created_contracts') }}\n JOIN {{ ref('silver__verified_abis') }} A\n ON A.contract_address = created_contract_address\n),\ncontracts_without_abis AS (\n -- Contracts that are missing ABIs\n SELECT\n created_contract_address AS contract_address,\n created_contract_input AS bytecode\n FROM\n {{ ref('silver__created_contracts') }}\n WHERE\n created_contract_address NOT IN (\n SELECT\n contract_address\n FROM\n contracts_with_abis\n )\n\n{% if is_incremental() %}\nAND created_contract_address NOT IN (\n SELECT\n contract_address\n FROM\n {{ this }}\n)\n{% endif %}\n),\nunique_bytecode_abis AS (\n -- Bytecodes from created_contracts with a unique ABI\n SELECT\n cc.created_contract_input AS bytecode,\n va.data AS abi,\n va.abi_hash\n FROM\n {{ ref('silver__created_contracts') }}\n cc\n JOIN {{ ref('silver__verified_abis') }}\n va\n ON cc.created_contract_address = va.contract_address\n GROUP BY\n cc.created_contract_input,\n va.data,\n va.abi_hash\n HAVING\n COUNT(\n DISTINCT va.data\n ) = 1 -- Ensuring there's only one ABI per bytecode\n) -- Final matching\nSELECT\n contract_address,\n abi,\n abi_hash,\n\n{% if is_incremental() %}\nSYSDATE()\n{% else %}\n TO_TIMESTAMP_NTZ('2000-01-01 00:00:00')\n{% endif %}\n\nAS _inserted_timestamp\nFROM\n contracts_without_abis\n JOIN unique_bytecode_abis USING (bytecode)\n*/\n\n\n\nWITH contracts_with_abis AS (\n -- Identifying contracts with verified ABIs\n\n SELECT\n created_contract_address AS contract_address\n FROM\n polygon.silver.created_contracts\n JOIN polygon.silver.verified_abis A\n ON A.contract_address = created_contract_address\n),\ncontracts_without_abis AS (\n -- Contracts that are missing ABIs\n SELECT\n created_contract_address AS contract_address,\n created_contract_input AS bytecode\n FROM\n polygon.silver.created_contracts\n WHERE\n created_contract_address NOT IN (\n SELECT\n contract_address\n FROM\n contracts_with_abis\n )\n\n\nAND created_contract_address NOT IN (\n SELECT\n contract_address\n FROM\n polygon.silver.bytecode_abis\n)\n\n),\nunique_bytecode_abis AS (\n -- Bytecodes from created_contracts with a unique ABI\n SELECT\n cc.created_contract_input AS bytecode,\n va.data AS abi,\n va.abi_hash\n FROM\n polygon.silver.created_contracts\n cc\n JOIN polygon.silver.verified_abis\n va\n ON cc.created_contract_address = va.contract_address\n GROUP BY\n cc.created_contract_input,\n va.data,\n va.abi_hash\n HAVING\n COUNT(\n DISTINCT va.data\n ) = 1 -- Ensuring there's only one ABI per bytecode\n) -- Final matching\nSELECT\n contract_address,\n abi,\n abi_hash,\n\n\nSYSDATE()\n\n\nAS _inserted_timestamp\nFROM\n contracts_without_abis\n JOIN unique_bytecode_abis USING (bytecode)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__abis": {"database": "polygon", "schema": "silver", "name": "silver__abis", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/silver/silver__abis.sql", "original_file_path": "models/decoder_package/abis/silver/silver__abis.sql", "unique_id": "model.fsc_evm.silver__abis", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "silver__abis"], "alias": "abis", "checksum": {"name": "sha256", "checksum": "f41f4aa82e7f614d2d32efe17b00064d937e970c495e53d2c2052d5a9f2b114b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "abis", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(contract_address,abi_hash,bytecode)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "contract_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "merge_exclude_columns": ["inserted_timestamp"]}, "tags": ["silver", "abis", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "contract_address", "merge_exclude_columns": ["inserted_timestamp"], "tags": ["silver", "abis", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018298.3896785, "relation_name": "polygon.silver.abis", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"contract_address\",\n merge_exclude_columns = [\"inserted_timestamp\"],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(contract_address,abi_hash,bytecode)\",\n tags = ['silver','abis','phase_2']\n) }}\n\nWITH verified_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash,\n 2 AS priority\n FROM\n {{ ref('silver__verified_abis') }}\n WHERE\n abi_source = lower('{{ vars.DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME }}')\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n COALESCE(\n MAX(\n _inserted_timestamp\n ),\n '1970-01-01'\n )\n FROM\n {{ this }}\n WHERE\n abi_source = lower('{{ vars.DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME }}')\n)\n{% endif %}\n),\nuser_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash,\n 3 AS priority\n FROM\n {{ ref('silver__verified_abis') }}\n WHERE\n abi_source = 'user'\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n COALESCE(\n MAX(\n _inserted_timestamp\n ),\n '1970-01-01'\n )\n FROM\n {{ this }}\n WHERE\n abi_source = 'user'\n)\n{% endif %}\n),\nbytecode_abis AS (\n SELECT\n contract_address,\n abi AS DATA,\n _inserted_timestamp,\n 'bytecode_matched' AS abi_source,\n NULL AS discord_username,\n abi_hash,\n 4 AS priority\n FROM\n {{ ref('silver__bytecode_abis') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(\n MAX(\n _inserted_timestamp\n ),\n '1970-01-01'\n )\n FROM\n {{ this }}\n WHERE\n abi_source = 'bytecode_matched'\n )\n{% endif %}\n),\nall_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash,\n priority\n FROM\n verified_abis\n UNION ALL\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash,\n priority\n FROM\n user_abis\n UNION ALL\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash,\n priority\n FROM\n bytecode_abis\n),\npriority_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash,\n priority\n FROM\n all_abis qualify(ROW_NUMBER() over(PARTITION BY contract_address\n ORDER BY\n priority ASC)) = 1\n)\nSELECT\n p.contract_address,\n p.data,\n p._inserted_timestamp,\n p.abi_source,\n p.discord_username,\n p.abi_hash,\n created_contract_input AS bytecode,\n {{ dbt_utils.generate_surrogate_key(\n ['p.contract_address']\n ) }} AS abis_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n priority_abis p\n LEFT JOIN {{ ref('silver__created_contracts') }}\n ON p.contract_address = created_contract_address", "language": "sql", "refs": [{"name": "silver__verified_abis", "package": null, "version": null}, {"name": "silver__verified_abis", "package": null, "version": null}, {"name": "silver__bytecode_abis", "package": null, "version": null}, {"name": "silver__created_contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__verified_abis", "model.fsc_evm.silver__bytecode_abis", "model.fsc_evm.silver__created_contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/silver__abis.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"merge_exclude_columns\": [\n \"inserted_timestamp\"\n ],\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(contract_address,abi_hash,bytecode)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"abis\",\n \"phase_2\"\n ],\n \"unique_key\": \"contract_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"contract_address\",\n merge_exclude_columns = [\"inserted_timestamp\"],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(contract_address,abi_hash,bytecode)\",\n tags = ['silver','abis','phase_2']\n) }}\n\nWITH verified_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash,\n 2 AS priority\n FROM\n {{ ref('silver__verified_abis') }}\n WHERE\n abi_source = lower('{{ vars.DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME }}')\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n COALESCE(\n MAX(\n _inserted_timestamp\n ),\n '1970-01-01'\n )\n FROM\n {{ this }}\n WHERE\n abi_source = lower('{{ vars.DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME }}')\n)\n{% endif %}\n),\nuser_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash,\n 3 AS priority\n FROM\n {{ ref('silver__verified_abis') }}\n WHERE\n abi_source = 'user'\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n COALESCE(\n MAX(\n _inserted_timestamp\n ),\n '1970-01-01'\n )\n FROM\n {{ this }}\n WHERE\n abi_source = 'user'\n)\n{% endif %}\n),\nbytecode_abis AS (\n SELECT\n contract_address,\n abi AS DATA,\n _inserted_timestamp,\n 'bytecode_matched' AS abi_source,\n NULL AS discord_username,\n abi_hash,\n 4 AS priority\n FROM\n {{ ref('silver__bytecode_abis') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(\n MAX(\n _inserted_timestamp\n ),\n '1970-01-01'\n )\n FROM\n {{ this }}\n WHERE\n abi_source = 'bytecode_matched'\n )\n{% endif %}\n),\nall_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash,\n priority\n FROM\n verified_abis\n UNION ALL\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash,\n priority\n FROM\n user_abis\n UNION ALL\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash,\n priority\n FROM\n bytecode_abis\n),\npriority_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash,\n priority\n FROM\n all_abis qualify(ROW_NUMBER() over(PARTITION BY contract_address\n ORDER BY\n priority ASC)) = 1\n)\nSELECT\n p.contract_address,\n p.data,\n p._inserted_timestamp,\n p.abi_source,\n p.discord_username,\n p.abi_hash,\n created_contract_input AS bytecode,\n {{ dbt_utils.generate_surrogate_key(\n ['p.contract_address']\n ) }} AS abis_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n priority_abis p\n LEFT JOIN {{ ref('silver__created_contracts') }}\n ON p.contract_address = created_contract_address\n*/\n\n\n\nWITH verified_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash,\n 2 AS priority\n FROM\n polygon.silver.verified_abis\n WHERE\n abi_source = lower('polygonscan')\n\n\nAND _inserted_timestamp >= (\n SELECT\n COALESCE(\n MAX(\n _inserted_timestamp\n ),\n '1970-01-01'\n )\n FROM\n polygon.silver.abis\n WHERE\n abi_source = lower('polygonscan')\n)\n\n),\nuser_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash,\n 3 AS priority\n FROM\n polygon.silver.verified_abis\n WHERE\n abi_source = 'user'\n\n\nAND _inserted_timestamp >= (\n SELECT\n COALESCE(\n MAX(\n _inserted_timestamp\n ),\n '1970-01-01'\n )\n FROM\n polygon.silver.abis\n WHERE\n abi_source = 'user'\n)\n\n),\nbytecode_abis AS (\n SELECT\n contract_address,\n abi AS DATA,\n _inserted_timestamp,\n 'bytecode_matched' AS abi_source,\n NULL AS discord_username,\n abi_hash,\n 4 AS priority\n FROM\n polygon.silver.bytecode_abis\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(\n MAX(\n _inserted_timestamp\n ),\n '1970-01-01'\n )\n FROM\n polygon.silver.abis\n WHERE\n abi_source = 'bytecode_matched'\n )\n\n),\nall_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash,\n priority\n FROM\n verified_abis\n UNION ALL\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash,\n priority\n FROM\n user_abis\n UNION ALL\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash,\n priority\n FROM\n bytecode_abis\n),\npriority_abis AS (\n SELECT\n contract_address,\n DATA,\n _inserted_timestamp,\n abi_source,\n discord_username,\n abi_hash,\n priority\n FROM\n all_abis qualify(ROW_NUMBER() over(PARTITION BY contract_address\n ORDER BY\n priority ASC)) = 1\n)\nSELECT\n p.contract_address,\n p.data,\n p._inserted_timestamp,\n p.abi_source,\n p.discord_username,\n p.abi_hash,\n created_contract_input AS bytecode,\n \n \nmd5(cast(coalesce(cast(p.contract_address as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS abis_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n priority_abis p\n LEFT JOIN polygon.silver.created_contracts\n ON p.contract_address = created_contract_address", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__verified_abis_recent": {"database": "polygon", "schema": "test_silver", "name": "test_silver__verified_abis_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/silver/tests/verified_abis/test_silver__verified_abis_recent.sql", "original_file_path": "models/decoder_package/abis/silver/tests/verified_abis/test_silver__verified_abis_recent.sql", "unique_id": "model.fsc_evm.test_silver__verified_abis_recent", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "verified_abis", "test_silver__verified_abis_recent"], "alias": "verified_abis_recent", "checksum": {"name": "sha256", "checksum": "1f826c03d4f8ba3b311b14bed71d3bca2c97faadd6cca7df6e09dce255e477ac"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "abis", "daily_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "abis", "daily_test", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/decoder_package/abis/silver/tests/verified_abis/test_silver__verified_abis_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "abis", "daily_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.2534025, "relation_name": "polygon.test_silver.verified_abis_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','daily_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__verified_abis') }}\nWHERE\n _inserted_timestamp > DATEADD(DAY, -5, SYSDATE())\n AND LOWER(abi_source) = LOWER('{{ vars.DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME }}')", "language": "sql", "refs": [{"name": "silver__verified_abis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__verified_abis"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/verified_abis/test_silver__verified_abis_recent.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"abis\",\n \"daily_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','daily_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__verified_abis') }}\nWHERE\n _inserted_timestamp > DATEADD(DAY, -5, SYSDATE())\n AND LOWER(abi_source) = LOWER('{{ vars.DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME }}')\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.verified_abis\nWHERE\n _inserted_timestamp > DATEADD(DAY, -5, SYSDATE())\n AND LOWER(abi_source) = LOWER('polygonscan')", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__verified_abis_full": {"database": "polygon", "schema": "test_silver", "name": "test_silver__verified_abis_full", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/silver/tests/verified_abis/test_silver__verified_abis_full.sql", "original_file_path": "models/decoder_package/abis/silver/tests/verified_abis/test_silver__verified_abis_full.sql", "unique_id": "model.fsc_evm.test_silver__verified_abis_full", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "verified_abis", "test_silver__verified_abis_full"], "alias": "verified_abis_full", "checksum": {"name": "sha256", "checksum": "47704ae17ba4050420886858666a985331718b4b40009f248b6972732978dffc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "abis", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "abis", "full_test", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/decoder_package/abis/silver/tests/verified_abis/test_silver__verified_abis_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "abis", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.2591584, "relation_name": "polygon.test_silver.verified_abis_full", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__verified_abis') }}", "language": "sql", "refs": [{"name": "silver__verified_abis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__verified_abis"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/verified_abis/test_silver__verified_abis_full.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"abis\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__verified_abis') }}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.verified_abis", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__user_verified_abis_recent": {"database": "polygon", "schema": "test_silver", "name": "test_silver__user_verified_abis_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/silver/tests/user_verified_abis/test_silver__user_verified_abis_recent.sql", "original_file_path": "models/decoder_package/abis/silver/tests/user_verified_abis/test_silver__user_verified_abis_recent.sql", "unique_id": "model.fsc_evm.test_silver__user_verified_abis_recent", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "user_verified_abis", "test_silver__user_verified_abis_recent"], "alias": "user_verified_abis_recent", "checksum": {"name": "sha256", "checksum": "7260abecbcd3ba9f1afb5843c72cbbd0c6f352feb0512a573e4f66ab1121dacc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "abis", "daily_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "abis", "daily_test", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/decoder_package/abis/silver/tests/user_verified_abis/test_silver__user_verified_abis_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "abis", "daily_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.264674, "relation_name": "polygon.test_silver.user_verified_abis_recent", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','daily_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__user_verified_abis') }}\nWHERE\n _inserted_timestamp > DATEADD(DAY, -5, SYSDATE())", "language": "sql", "refs": [{"name": "silver__user_verified_abis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__user_verified_abis"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/user_verified_abis/test_silver__user_verified_abis_recent.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"abis\",\n \"daily_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','daily_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__user_verified_abis') }}\nWHERE\n _inserted_timestamp > DATEADD(DAY, -5, SYSDATE())\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.user_verified_abis\nWHERE\n _inserted_timestamp > DATEADD(DAY, -5, SYSDATE())", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__user_verified_abis_full": {"database": "polygon", "schema": "test_silver", "name": "test_silver__user_verified_abis_full", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/silver/tests/user_verified_abis/test_silver__user_verified_abis_full.sql", "original_file_path": "models/decoder_package/abis/silver/tests/user_verified_abis/test_silver__user_verified_abis_full.sql", "unique_id": "model.fsc_evm.test_silver__user_verified_abis_full", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "user_verified_abis", "test_silver__user_verified_abis_full"], "alias": "user_verified_abis_full", "checksum": {"name": "sha256", "checksum": "2961e8dda27b72dad65b6f3b3df32fccd986c7aa49b5a2c2de220dc8a4a27c10"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "abis", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "abis", "full_test", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/decoder_package/abis/silver/tests/user_verified_abis/test_silver__user_verified_abis_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "abis", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.2701097, "relation_name": "polygon.test_silver.user_verified_abis_full", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__user_verified_abis') }}", "language": "sql", "refs": [{"name": "silver__user_verified_abis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__user_verified_abis"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/user_verified_abis/test_silver__user_verified_abis_full.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"abis\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__user_verified_abis') }}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.user_verified_abis", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__bytecode_abis_recent": {"database": "polygon", "schema": "test_silver", "name": "test_silver__bytecode_abis_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/silver/tests/bytecode_abis/test_silver__bytecode_abis_recent.sql", "original_file_path": "models/decoder_package/abis/silver/tests/bytecode_abis/test_silver__bytecode_abis_recent.sql", "unique_id": "model.fsc_evm.test_silver__bytecode_abis_recent", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "bytecode_abis", "test_silver__bytecode_abis_recent"], "alias": "bytecode_abis_recent", "checksum": {"name": "sha256", "checksum": "5fd8735202ad8d3e23bd7d786653d8e0674bb953c8fe64784a437d6365d67fd9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "abis", "daily_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "abis", "daily_test", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/decoder_package/abis/silver/tests/bytecode_abis/test_silver__bytecode_abis_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "abis", "daily_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.2812068, "relation_name": "polygon.test_silver.bytecode_abis_recent", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','daily_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__bytecode_abis') }}\nWHERE\n _inserted_timestamp > DATEADD(DAY, -5, SYSDATE())", "language": "sql", "refs": [{"name": "silver__bytecode_abis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__bytecode_abis"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/bytecode_abis/test_silver__bytecode_abis_recent.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"abis\",\n \"daily_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','daily_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__bytecode_abis') }}\nWHERE\n _inserted_timestamp > DATEADD(DAY, -5, SYSDATE())\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.bytecode_abis\nWHERE\n _inserted_timestamp > DATEADD(DAY, -5, SYSDATE())", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__bytecode_abis_full": {"database": "polygon", "schema": "test_silver", "name": "test_silver__bytecode_abis_full", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/silver/tests/bytecode_abis/test_silver__bytecode_abis_full.sql", "original_file_path": "models/decoder_package/abis/silver/tests/bytecode_abis/test_silver__bytecode_abis_full.sql", "unique_id": "model.fsc_evm.test_silver__bytecode_abis_full", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "bytecode_abis", "test_silver__bytecode_abis_full"], "alias": "bytecode_abis_full", "checksum": {"name": "sha256", "checksum": "c7cc658e31f49bcc2ae6e123b14c45f751ca61415c6b0c3dc5a4fef4580e14b0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "abis", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "abis", "full_test", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/decoder_package/abis/silver/tests/bytecode_abis/test_silver__bytecode_abis_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "abis", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.2753391, "relation_name": "polygon.test_silver.bytecode_abis_full", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__bytecode_abis') }}", "language": "sql", "refs": [{"name": "silver__bytecode_abis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__bytecode_abis"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/bytecode_abis/test_silver__bytecode_abis_full.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"abis\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__bytecode_abis') }}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.bytecode_abis", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__abis_recent": {"database": "polygon", "schema": "test_silver", "name": "test_silver__abis_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/silver/tests/abis/test_silver__abis_recent.sql", "original_file_path": "models/decoder_package/abis/silver/tests/abis/test_silver__abis_recent.sql", "unique_id": "model.fsc_evm.test_silver__abis_recent", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "abis", "test_silver__abis_recent"], "alias": "abis_recent", "checksum": {"name": "sha256", "checksum": "42ea49a82fa7083143e9efc8cd619e4395fcc25c7c0e89b06b5b1729b0aed35a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "abis", "daily_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "abis", "daily_test", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/decoder_package/abis/silver/tests/abis/test_silver__abis_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "abis", "daily_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.292505, "relation_name": "polygon.test_silver.abis_recent", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','daily_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__abis') }}\nWHERE\n inserted_timestamp > DATEADD(DAY, -5, SYSDATE())", "language": "sql", "refs": [{"name": "silver__abis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__abis"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/abis/test_silver__abis_recent.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"abis\",\n \"daily_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','daily_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__abis') }}\nWHERE\n inserted_timestamp > DATEADD(DAY, -5, SYSDATE())\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.abis\nWHERE\n inserted_timestamp > DATEADD(DAY, -5, SYSDATE())", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__abis_full": {"database": "polygon", "schema": "test_silver", "name": "test_silver__abis_full", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/silver/tests/abis/test_silver__abis_full.sql", "original_file_path": "models/decoder_package/abis/silver/tests/abis/test_silver__abis_full.sql", "unique_id": "model.fsc_evm.test_silver__abis_full", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "abis", "test_silver__abis_full"], "alias": "abis_full", "checksum": {"name": "sha256", "checksum": "26250d3e9e0f834b9b400a0646c21ec2b208d5738c642f0e46b8c1984476424d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "abis", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "abis", "full_test", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/decoder_package/abis/silver/tests/abis/test_silver__abis_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "abis", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.2870855, "relation_name": "polygon.test_silver.abis_full", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__abis') }}", "language": "sql", "refs": [{"name": "silver__abis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__abis"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/abis/test_silver__abis_full.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"abis\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__abis') }}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.abis", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__complete_event_abis_full": {"database": "polygon", "schema": "test_silver", "name": "test_silver__complete_event_abis_full", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/silver/tests/event_abis/test_silver__complete_event_abis_full.sql", "original_file_path": "models/decoder_package/abis/silver/tests/event_abis/test_silver__complete_event_abis_full.sql", "unique_id": "model.fsc_evm.test_silver__complete_event_abis_full", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "event_abis", "test_silver__complete_event_abis_full"], "alias": "complete_event_abis_full", "checksum": {"name": "sha256", "checksum": "be823c0bf62cb6e93cbc5fab9592704437adf7737f71d36ed63d3aea77dd60a7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "abis", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "abis", "full_test", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/decoder_package/abis/silver/tests/event_abis/test_silver__complete_event_abis_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "abis", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.2977457, "relation_name": "polygon.test_silver.complete_event_abis_full", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__complete_event_abis') }}", "language": "sql", "refs": [{"name": "silver__complete_event_abis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__complete_event_abis"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/event_abis/test_silver__complete_event_abis_full.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"abis\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__complete_event_abis') }}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.complete_event_abis", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__complete_event_abis_recent": {"database": "polygon", "schema": "test_silver", "name": "test_silver__complete_event_abis_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/silver/tests/event_abis/test_silver__complete_event_abis_recent.sql", "original_file_path": "models/decoder_package/abis/silver/tests/event_abis/test_silver__complete_event_abis_recent.sql", "unique_id": "model.fsc_evm.test_silver__complete_event_abis_recent", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "event_abis", "test_silver__complete_event_abis_recent"], "alias": "complete_event_abis_recent", "checksum": {"name": "sha256", "checksum": "91604a69f722b2f97087251bb85ec2df5cfe9e589927edfab662cf4e33a30b71"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "abis", "daily_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "abis", "daily_test", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/decoder_package/abis/silver/tests/event_abis/test_silver__complete_event_abis_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "abis", "daily_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.3043141, "relation_name": "polygon.test_silver.complete_event_abis_recent", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','daily_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__complete_event_abis') }}\nWHERE\n inserted_timestamp > DATEADD(DAY, -5, SYSDATE())", "language": "sql", "refs": [{"name": "silver__complete_event_abis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__complete_event_abis"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/event_abis/test_silver__complete_event_abis_recent.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"abis\",\n \"daily_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','abis','daily_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__complete_event_abis') }}\nWHERE\n inserted_timestamp > DATEADD(DAY, -5, SYSDATE())\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.complete_event_abis\nWHERE\n inserted_timestamp > DATEADD(DAY, -5, SYSDATE())", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__contract_abis_realtime": {"database": "polygon", "schema": "streamline", "name": "streamline__contract_abis_realtime", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/streamline/realtime/streamline__contract_abis_realtime.sql", "original_file_path": "models/decoder_package/abis/streamline/realtime/streamline__contract_abis_realtime.sql", "unique_id": "model.fsc_evm.streamline__contract_abis_realtime", "fqn": ["fsc_evm", "decoder_package", "abis", "streamline", "realtime", "streamline__contract_abis_realtime"], "alias": "contract_abis_realtime", "checksum": {"name": "sha256", "checksum": "e14f7e26574b5bbdf550769be811081287d916d3fc18ba8c70f03f612c2344f6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "abis", "realtime", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "abis", "realtime", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "abis", "realtime", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018300.4976153, "relation_name": "polygon.streamline.contract_abis_realtime", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','abis','realtime','phase_2']\n) }}\n\nWITH recent_relevant_contracts AS (\n\n SELECT\n contract_address,\n total_interaction_count,\n GREATEST(\n max_inserted_timestamp_logs,\n max_inserted_timestamp_traces\n ) max_inserted_timestamp\n FROM\n {{ ref('silver__relevant_contracts') }} C\n LEFT JOIN {{ ref(\"streamline__complete_contract_abis\") }}\n s USING (contract_address)\n WHERE\n s.contract_address IS NULL\n AND total_interaction_count > {{ vars.DECODER_SL_CONTRACT_ABIS_INTERACTION_COUNT }}\n {% if not vars.DECODER_SL_NEW_BUILD_ENABLED %}\n AND max_inserted_timestamp >= DATEADD(DAY, -3, SYSDATE())\n {% endif %}\n ORDER BY\n total_interaction_count DESC\n LIMIT\n {{ vars.DECODER_SL_CONTRACT_ABIS_REALTIME_SQL_LIMIT }}\n), all_contracts AS (\n SELECT\n contract_address\n FROM\n recent_relevant_contracts\n\n{% if is_incremental() %}\nUNION\nSELECT\n contract_address\nFROM\n {{ ref('_retry_abis') }}\n{% endif %}\n)\nSELECT\n contract_address,\n DATE_PART('EPOCH_SECONDS', systimestamp()) :: INT AS partition_key,\n live.udf_api(\n 'GET',\n CONCAT(\n '{{ vars.DECODER_SL_CONTRACT_ABIS_EXPLORER_URL }}',\n contract_address\n {% if vars.DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH != '' %}\n ,'&apikey={key}'\n {% endif %}\n {% if vars.DECODER_SL_CONTRACT_ABIS_EXPLORER_URL_SUFFIX != '' %}\n ,'{{ vars.DECODER_SL_CONTRACT_ABIS_EXPLORER_URL_SUFFIX }}'\n {% endif %}\n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'streamline'\n ),\n {},\n '{{ vars.DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH }}'\n ) AS request\nFROM\n all_contracts\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = { \n \"external_table\" :\"contract_abis\",\n \"sql_limit\" : vars.DECODER_SL_CONTRACT_ABIS_REALTIME_SQL_LIMIT,\n \"producer_batch_size\" : vars.DECODER_SL_CONTRACT_ABIS_REALTIME_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\" : vars.DECODER_SL_CONTRACT_ABIS_REALTIME_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\" : vars.DECODER_SL_CONTRACT_ABIS_REALTIME_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\" : 'contract_abis_realtime'\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n \n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "silver__relevant_contracts", "package": null, "version": null}, {"name": "streamline__complete_contract_abis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__relevant_contracts", "model.fsc_evm.streamline__complete_contract_abis"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__complete_contract_abis": {"database": "polygon", "schema": "streamline", "name": "streamline__complete_contract_abis", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/streamline/complete/streamline__complete_contract_abis.sql", "original_file_path": "models/decoder_package/abis/streamline/complete/streamline__complete_contract_abis.sql", "unique_id": "model.fsc_evm.streamline__complete_contract_abis", "fqn": ["fsc_evm", "decoder_package", "abis", "streamline", "complete", "streamline__complete_contract_abis"], "alias": "complete_contract_abis", "checksum": {"name": "sha256", "checksum": "787f696ed0565dd72ac4ab052d9aad9a2d0d066dfdde5186ec44a5271087c0cd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "abis", "complete", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(complete_contract_abis_id, contract_address)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "complete_contract_abis_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "partition_key", "incremental_predicates": ["dynamic_range", "partition_key"]}, "tags": ["streamline", "abis", "complete", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "complete_contract_abis_id", "cluster_by": "partition_key", "incremental_predicates": ["dynamic_range", "partition_key"], "full_refresh": false, "tags": ["streamline", "abis", "complete", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018300.817577, "relation_name": "polygon.streamline.complete_contract_abis", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n-- depends on: {{ ref('bronze__contract_abis') }}\n{{ config (\n materialized = 'incremental',\n unique_key = 'complete_contract_abis_id',\n cluster_by = 'partition_key',\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(complete_contract_abis_id, contract_address)\",\n incremental_predicates = ['dynamic_range', 'partition_key'],\n full_refresh = vars.GLOBAL_STREAMLINE_FR_ENABLED,\n tags = ['streamline','abis','complete','phase_2']\n) }}\n\nSELECT\n partition_key,\n contract_address,\n file_name,\n {{ dbt_utils.generate_surrogate_key(\n ['contract_address']\n ) }} AS complete_contract_abis_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n\n{% if is_incremental() %}\n{{ ref('bronze__contract_abis') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE (MAX(_inserted_timestamp), '1970-01-01' :: TIMESTAMP)\n FROM\n {{ this }})\n {% else %}\n {{ ref('bronze__contract_abis_fr') }}\n {% endif %}\n\n qualify(ROW_NUMBER() over (PARTITION BY complete_contract_abis_id\n ORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__contract_abis", "package": null, "version": null}, {"name": "bronze__contract_abis_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__contract_abis", "model.fsc_evm.bronze__contract_abis_fr"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm._retry_abis": {"database": "polygon", "schema": "_retry_abis", "name": "_retry_abis", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/streamline/retry/_retry_abis.sql", "original_file_path": "models/decoder_package/abis/streamline/retry/_retry_abis.sql", "unique_id": "model.fsc_evm._retry_abis", "fqn": ["fsc_evm", "decoder_package", "abis", "streamline", "retry", "_retry_abis"], "alias": "", "checksum": {"name": "sha256", "checksum": "d0da6df216c83e943779febf7db793d9aab88e2b32dbe979b0f7fd83ad1c3c86"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "ephemeral", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018301.1383579, "relation_name": null, "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n{{ config (\n materialized = \"ephemeral\"\n) }}\n\nWITH retry AS (\n\n SELECT\n r.contract_address,\n GREATEST(\n latest_call_block,\n latest_event_block\n ) AS block_number,\n total_interaction_count\n FROM\n {{ ref(\"silver__relevant_contracts\") }}\n r\n LEFT JOIN {{ source(\n 'abis_silver',\n 'verified_abis'\n ) }}\n v USING (contract_address)\n LEFT JOIN {{ source(\n 'complete_streamline',\n 'complete_contract_abis'\n ) }} C\n ON r.contract_address = C.contract_address\n AND C._inserted_timestamp >= CURRENT_DATE - INTERVAL '30 days' -- avoid retrying the same contract within the last 30 days\n WHERE\n r.total_interaction_count >= 250 -- high interaction count\n AND GREATEST(\n max_inserted_timestamp_logs,\n max_inserted_timestamp_traces\n ) >= CURRENT_DATE - INTERVAL '30 days' -- recent activity\n AND v.contract_address IS NULL -- no verified abi\n AND C.contract_address IS NULL\n ORDER BY\n total_interaction_count DESC\n LIMIT\n 5\n), FINAL AS (\n SELECT\n implementation_contract AS contract_address,\n start_block AS block_number\n FROM\n {{ ref(\"silver__proxies\") }}\n p\n JOIN retry r USING (contract_address)\n LEFT JOIN {{ source(\n 'abis_silver',\n 'verified_abis'\n ) }}\n v\n ON v.contract_address = p.implementation_contract\n LEFT JOIN {{ source(\n 'complete_streamline',\n 'complete_contract_abis'\n ) }} C\n ON p.implementation_contract = C.contract_address\n AND C._inserted_timestamp >= CURRENT_DATE - INTERVAL '30 days' -- avoid retrying the same contract within the last 30 days\n WHERE\n v.contract_address IS NULL\n AND C.contract_address IS NULL\n UNION ALL\n SELECT\n contract_address,\n block_number\n FROM\n retry\n)\nSELECT\n *\nFROM\n FINAL qualify ROW_NUMBER() over (\n PARTITION BY contract_address\n ORDER BY\n block_number DESC\n ) = 1", "language": "sql", "refs": [{"name": "silver__relevant_contracts", "package": null, "version": null}, {"name": "silver__proxies", "package": null, "version": null}], "sources": [["abis_silver", "verified_abis"], ["complete_streamline", "complete_contract_abis"], ["abis_silver", "verified_abis"], ["complete_streamline", "complete_contract_abis"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.abis_silver.verified_abis", "source.polygon_models.complete_streamline.complete_contract_abis", "model.fsc_evm.silver__relevant_contracts", "model.fsc_evm.silver__proxies"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/streamline/retry/_retry_abis.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n{{ config (\n materialized = \"ephemeral\"\n) }}\n\nWITH retry AS (\n\n SELECT\n r.contract_address,\n GREATEST(\n latest_call_block,\n latest_event_block\n ) AS block_number,\n total_interaction_count\n FROM\n {{ ref(\"silver__relevant_contracts\") }}\n r\n LEFT JOIN {{ source(\n 'abis_silver',\n 'verified_abis'\n ) }}\n v USING (contract_address)\n LEFT JOIN {{ source(\n 'complete_streamline',\n 'complete_contract_abis'\n ) }} C\n ON r.contract_address = C.contract_address\n AND C._inserted_timestamp >= CURRENT_DATE - INTERVAL '30 days' -- avoid retrying the same contract within the last 30 days\n WHERE\n r.total_interaction_count >= 250 -- high interaction count\n AND GREATEST(\n max_inserted_timestamp_logs,\n max_inserted_timestamp_traces\n ) >= CURRENT_DATE - INTERVAL '30 days' -- recent activity\n AND v.contract_address IS NULL -- no verified abi\n AND C.contract_address IS NULL\n ORDER BY\n total_interaction_count DESC\n LIMIT\n 5\n), FINAL AS (\n SELECT\n implementation_contract AS contract_address,\n start_block AS block_number\n FROM\n {{ ref(\"silver__proxies\") }}\n p\n JOIN retry r USING (contract_address)\n LEFT JOIN {{ source(\n 'abis_silver',\n 'verified_abis'\n ) }}\n v\n ON v.contract_address = p.implementation_contract\n LEFT JOIN {{ source(\n 'complete_streamline',\n 'complete_contract_abis'\n ) }} C\n ON p.implementation_contract = C.contract_address\n AND C._inserted_timestamp >= CURRENT_DATE - INTERVAL '30 days' -- avoid retrying the same contract within the last 30 days\n WHERE\n v.contract_address IS NULL\n AND C.contract_address IS NULL\n UNION ALL\n SELECT\n contract_address,\n block_number\n FROM\n retry\n)\nSELECT\n *\nFROM\n FINAL qualify ROW_NUMBER() over (\n PARTITION BY contract_address\n ORDER BY\n block_number DESC\n ) = 1\n*/\n\n\nWITH retry AS (\n\n SELECT\n r.contract_address,\n GREATEST(\n latest_call_block,\n latest_event_block\n ) AS block_number,\n total_interaction_count\n FROM\n polygon.silver.relevant_contracts\n r\n LEFT JOIN polygon.silver.verified_abis\n v USING (contract_address)\n LEFT JOIN polygon.streamline.complete_contract_abis C\n ON r.contract_address = C.contract_address\n AND C._inserted_timestamp >= CURRENT_DATE - INTERVAL '30 days' -- avoid retrying the same contract within the last 30 days\n WHERE\n r.total_interaction_count >= 250 -- high interaction count\n AND GREATEST(\n max_inserted_timestamp_logs,\n max_inserted_timestamp_traces\n ) >= CURRENT_DATE - INTERVAL '30 days' -- recent activity\n AND v.contract_address IS NULL -- no verified abi\n AND C.contract_address IS NULL\n ORDER BY\n total_interaction_count DESC\n LIMIT\n 5\n), FINAL AS (\n SELECT\n implementation_contract AS contract_address,\n start_block AS block_number\n FROM\n polygon.silver.proxies\n p\n JOIN retry r USING (contract_address)\n LEFT JOIN polygon.silver.verified_abis\n v\n ON v.contract_address = p.implementation_contract\n LEFT JOIN polygon.streamline.complete_contract_abis C\n ON p.implementation_contract = C.contract_address\n AND C._inserted_timestamp >= CURRENT_DATE - INTERVAL '30 days' -- avoid retrying the same contract within the last 30 days\n WHERE\n v.contract_address IS NULL\n AND C.contract_address IS NULL\n UNION ALL\n SELECT\n contract_address,\n block_number\n FROM\n retry\n)\nSELECT\n *\nFROM\n FINAL qualify ROW_NUMBER() over (\n PARTITION BY contract_address\n ORDER BY\n block_number DESC\n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.core__dim_contract_abis": {"database": "polygon", "schema": "core", "name": "core__dim_contract_abis", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/gold/core__dim_contract_abis.sql", "original_file_path": "models/decoder_package/abis/gold/core__dim_contract_abis.sql", "unique_id": "model.fsc_evm.core__dim_contract_abis", "fqn": ["fsc_evm", "decoder_package", "abis", "gold", "core__dim_contract_abis"], "alias": "dim_contract_abis", "checksum": {"name": "sha256", "checksum": "c17628d2fba59823bf0ffa025e833c32c0e24809acbcbd974c54991f0549c285"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "abis", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(contract_address,bytecode)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "contract_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "merge_exclude_columns": ["inserted_timestamp"]}, "tags": ["gold", "abis", "phase_2"], "description": "## What\n\nThis table contains Application Binary Interfaces (ABIs) for smart contracts deployed on EVM blockchains. ABIs define the contract's functions, events, and data structures, enabling the decoding of raw blockchain data into human-readable format.\n\n## Key Use Cases\n\n- Decoding raw event logs into human-readable format\n- Identifying contract functions and their parameters\n- Enabling interaction with smart contracts programmatically\n- Analyzing contract patterns and implementations across chains\n- Supporting automated contract verification and bytecode matching\n\n## Important Relationships\n\n- **Powers ez_decoded_event_logs**: ABIs enable event decoding\n- **Join with dim_contracts**: Use `contract_address` for contract metadata\n- **Enables fact_decoded_event_logs**: Raw to decoded transformation\n\n## Commonly-used Fields\n\n- `contract_address`: The contract's blockchain address\n- `abi`: The contract's Application Binary Interface in JSON format\n- `abi_source`: The origin of the ABI data (explorer verified, user submitted, bytecode matched)\n- `bytecode`: The compiled contract code deployed on-chain\n- `created_timestamp`: When the ABI was added to the database\n\n## Sample queries\n\n**Find Contracts Without ABIs**\n```sql\n-- Identify popular contracts needing ABIs\nWITH contract_activity AS (\n SELECT \n contract_address,\n COUNT(*) AS event_count\n FROM .core.fact_event_logs\n WHERE block_timestamp >= CURRENT_DATE - 7\n GROUP BY 1\n)\nSELECT \n ca.contract_address,\n c.name AS contract_name,\n ca.event_count,\n c.created_block_timestamp\nFROM contract_activity ca\nLEFT JOIN .core.dim_contract_abis abi ON ca.contract_address = abi.contract_address\nLEFT JOIN .core.dim_contracts c ON ca.contract_address = c.address\nWHERE abi.abi IS NULL\n OR abi.abi = '[]'\nORDER BY ca.event_count DESC\nLIMIT 100;\n```\n\n**Analyze ABI Functions and Events**\n```sql\n-- Extract event signatures from ABIs\nWITH abi_events AS (\n SELECT \n contract_address,\n abi_source,\n f.value:name::string AS event_name,\n f.value:type::string AS entry_type\n FROM .core.dim_contract_abis,\n LATERAL FLATTEN(input => PARSE_JSON(abi)) f\n WHERE f.value:type::string = 'event'\n AND abi IS NOT NULL\n)\nSELECT \n event_name,\n COUNT(DISTINCT contract_address) AS contracts_with_event,\n ARRAY_AGG(DISTINCT abi_source) AS sources\nFROM abi_events\nGROUP BY 1\nORDER BY 2 DESC\nLIMIT 50;\n```\n\n**Bytecode Matching Effectiveness**\n```sql\n-- Analyze bytecode matching success\nSELECT \n DATE_TRUNC('week', created_timestamp) AS week,\n COUNT(CASE WHEN abi_source = 'bytecode_matched' THEN 1 END) AS bytecode_matched,\n COUNT(CASE WHEN abi_source = 'user_submitted' THEN 1 END) AS user_submitted,\n COUNT(CASE WHEN abi_source LIKE '%explorer%' THEN 1 END) AS explorer_verified,\n COUNT(*) AS total_new_abis\nFROM .core.dim_contract_abis\nWHERE created_timestamp >= CURRENT_DATE - 90\nGROUP BY 1\nORDER BY 1 DESC;\n```\n\n**Common Contract Patterns**\n```sql\n-- Find contracts sharing bytecode (proxy patterns, clones)\nWITH bytecode_groups AS (\n SELECT \n bytecode,\n COUNT(DISTINCT contract_address) AS contract_count,\n ARRAY_AGG(DISTINCT contract_address) AS contracts,\n MAX(abi) AS sample_abi\n FROM .core.dim_contract_abis\n WHERE bytecode IS NOT NULL\n AND LENGTH(bytecode) > 100 -- Exclude minimal contracts\n GROUP BY 1\n HAVING COUNT(DISTINCT contract_address) > 5\n)\nSELECT \n contract_count,\n ARRAY_SIZE(contracts) AS unique_addresses,\n LEFT(bytecode, 20) || '...' AS bytecode_prefix,\n CASE \n WHEN sample_abi LIKE '%proxy%' THEN 'Likely Proxy'\n WHEN sample_abi LIKE '%clone%' THEN 'Likely Clone'\n ELSE 'Standard Pattern'\n END AS pattern_type\nFROM bytecode_groups\nORDER BY contract_count DESC\nLIMIT 20;\n```", "columns": {"CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "Unique identifier - the deployed contract's blockchain address.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ABI": {"name": "ABI", "description": "The contract's Application Binary Interface in JSON format, containing function and event definitions that enable interaction with the smart contract.\n\nExample: '[{\"name\":\"transfer\",\"type\":\"function\",\"inputs\":[{\"name\":\"to\",\"type\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}]}]'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ABI_SOURCE": {"name": "ABI_SOURCE", "description": "The origin of the ABI data, indicating trust level and collection method.\n\nExample: 'etherscan'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BYTECODE": {"name": "BYTECODE", "description": "The compiled contract code deployed on-chain, used for bytecode matching and identifying identical contracts.\n\nExample: '0x608060405234801561001057600080fd5b50...'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/decoder_package/abis/gold/core__dim_contract_abis.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "contract_address", "merge_exclude_columns": ["inserted_timestamp"], "tags": ["gold", "abis", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018437.3108904, "relation_name": "polygon.core.dim_contract_abis", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"contract_address\",\n merge_exclude_columns = [\"inserted_timestamp\"],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(contract_address,bytecode)\",\n tags = ['gold','abis','phase_2']\n) }}\n\nSELECT\n contract_address,\n DATA AS abi,\n abi_source,\n bytecode,\n abis_id AS dim_contract_abis_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n {{ ref('silver__abis') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp),'1970-01-01' :: TIMESTAMP)\n FROM\n {{ this }}\n )\n{% endif %}", "language": "sql", "refs": [{"name": "silver__abis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__abis"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/gold/core__dim_contract_abis.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"merge_exclude_columns\": [\n \"inserted_timestamp\"\n ],\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(contract_address,bytecode)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"abis\",\n \"phase_2\"\n ],\n \"unique_key\": \"contract_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"contract_address\",\n merge_exclude_columns = [\"inserted_timestamp\"],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(contract_address,bytecode)\",\n tags = ['gold','abis','phase_2']\n) }}\n\nSELECT\n contract_address,\n DATA AS abi,\n abi_source,\n bytecode,\n abis_id AS dim_contract_abis_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n {{ ref('silver__abis') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp),'1970-01-01' :: TIMESTAMP)\n FROM\n {{ this }}\n )\n{% endif %}\n*/\n\n\n\nSELECT\n contract_address,\n DATA AS abi,\n abi_source,\n bytecode,\n abis_id AS dim_contract_abis_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n polygon.silver.abis\n\n\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp),'1970-01-01' :: TIMESTAMP)\n FROM\n polygon.core.dim_contract_abis\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__dim_contract_abis_full": {"database": "polygon", "schema": "test_gold", "name": "test_gold__dim_contract_abis_full", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/gold/tests/test_gold__dim_contract_abis_full.sql", "original_file_path": "models/decoder_package/abis/gold/tests/test_gold__dim_contract_abis_full.sql", "unique_id": "model.fsc_evm.test_gold__dim_contract_abis_full", "fqn": ["fsc_evm", "decoder_package", "abis", "gold", "tests", "test_gold__dim_contract_abis_full"], "alias": "dim_contract_abis_full", "checksum": {"name": "sha256", "checksum": "425b29595dfa838351950cd81b7223287cf845829f9278420dc7cfd40a095d71"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "abis", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "abis", "full_test", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/decoder_package/abis/gold/tests/test_gold__dim_contract_abis_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "abis", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.3169587, "relation_name": "polygon.test_gold.dim_contract_abis_full", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','abis','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__dim_contract_abis') }}", "language": "sql", "refs": [{"name": "core__dim_contract_abis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__dim_contract_abis"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/gold/tests/test_gold__dim_contract_abis_full.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"abis\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','abis','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__dim_contract_abis') }}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.core.dim_contract_abis", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__dim_contract_abis_recent": {"database": "polygon", "schema": "test_gold", "name": "test_gold__dim_contract_abis_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/gold/tests/test_gold__dim_contract_abis_recent.sql", "original_file_path": "models/decoder_package/abis/gold/tests/test_gold__dim_contract_abis_recent.sql", "unique_id": "model.fsc_evm.test_gold__dim_contract_abis_recent", "fqn": ["fsc_evm", "decoder_package", "abis", "gold", "tests", "test_gold__dim_contract_abis_recent"], "alias": "dim_contract_abis_recent", "checksum": {"name": "sha256", "checksum": "0b2f3442f81385fda3cf739cd5154038f711aac593baedd2eab79feafe5f4dc5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "abis", "daily_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "abis", "daily_test", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/decoder_package/abis/gold/tests/test_gold__dim_contract_abis_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "abis", "daily_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.3114858, "relation_name": "polygon.test_gold.dim_contract_abis_recent", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','abis','daily_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__dim_contract_abis') }}\nWHERE\n inserted_timestamp > DATEADD(DAY, -5, SYSDATE())", "language": "sql", "refs": [{"name": "core__dim_contract_abis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__dim_contract_abis"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/gold/tests/test_gold__dim_contract_abis_recent.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"abis\",\n \"daily_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','abis','daily_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__dim_contract_abis') }}\nWHERE\n inserted_timestamp > DATEADD(DAY, -5, SYSDATE())\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.core.dim_contract_abis\nWHERE\n inserted_timestamp > DATEADD(DAY, -5, SYSDATE())", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__contract_abis": {"database": "polygon", "schema": "bronze", "name": "bronze__contract_abis", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/bronze/bronze__contract_abis.sql", "original_file_path": "models/decoder_package/abis/bronze/bronze__contract_abis.sql", "unique_id": "model.fsc_evm.bronze__contract_abis", "fqn": ["fsc_evm", "decoder_package", "abis", "bronze", "bronze__contract_abis"], "alias": "contract_abis", "checksum": {"name": "sha256", "checksum": "098e040d11e513bfacb8faabc5d8e86ba16a755ef8af2f55b992360df46199fc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "abis", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "abis", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "abis", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018301.911577, "relation_name": "polygon.bronze.contract_abis", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','abis','phase_2']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'contract_abis',\n block_number = false,\n contract_address = true\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "contract_abis"], ["bronze_streamline", "contract_abis"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.contract_abis"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/bronze/bronze__contract_abis.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"abis\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','abis','phase_2']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'contract_abis',\n block_number = false,\n contract_address = true\n) }}\n*/\n\n\n\n\n\n\n\n \n\n WITH meta AS (\n SELECT\n job_created_time AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.POLYGON.contract_abis')\n ) A\n )\n SELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n \n\n , --for contract_abis\n COALESCE(\n VALUE :\"CONTRACT_ADDRESS\",\n VALUE :\"contract_address\"\n ) :: STRING AS contract_address\n \n\n \n FROM\n streamline.POLYGON.contract_abis\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \n WHERE\n b.partition_key = s.partition_key\n \n \n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n \n AND DATA IS NOT NULL\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__contract_abis_fr": {"database": "polygon", "schema": "bronze", "name": "bronze__contract_abis_fr", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/bronze/bronze__contract_abis_fr.sql", "original_file_path": "models/decoder_package/abis/bronze/bronze__contract_abis_fr.sql", "unique_id": "model.fsc_evm.bronze__contract_abis_fr", "fqn": ["fsc_evm", "decoder_package", "abis", "bronze", "bronze__contract_abis_fr"], "alias": "contract_abis_fr", "checksum": {"name": "sha256", "checksum": "3ff93033071ce3fdeba2926331c3d820cb792ce764aea15b2d3cd3d22cc4e9ee"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "abis", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "abis", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "abis", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018302.0807376, "relation_name": "polygon.bronze.contract_abis_fr", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n-- depends_on: {{ ref('bronze_api__contract_abis') }}\n\n{{ config (\n materialized = 'view',\n tags = ['bronze','abis','phase_2']\n) }}\n\nSELECT\n partition_key,\n contract_address,\n VALUE,\n metadata,\n DATA,\n file_name,\n _inserted_timestamp\nFROM\n {{ ref('bronze__contract_abis_fr_v2') }}\n\n{% if vars.DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED %}\nUNION ALL\nSELECT\n 1 AS partition_key,\n contract_address,\n abi_data AS VALUE,\n NULL AS metadata,\n abi_data :data AS DATA,\n NULL AS file_name,\n _inserted_timestamp\nFROM\n {{ ref('bronze_api__contract_abis') }}\n{% endif %}", "language": "sql", "refs": [{"name": "bronze_api__contract_abis", "package": null, "version": null}, {"name": "bronze__contract_abis_fr_v2", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze_api__contract_abis", "model.fsc_evm.bronze__contract_abis_fr_v2"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/bronze/bronze__contract_abis_fr.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"abis\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n-- depends_on: {{ ref('bronze_api__contract_abis') }}\n\n{{ config (\n materialized = 'view',\n tags = ['bronze','abis','phase_2']\n) }}\n\nSELECT\n partition_key,\n contract_address,\n VALUE,\n metadata,\n DATA,\n file_name,\n _inserted_timestamp\nFROM\n {{ ref('bronze__contract_abis_fr_v2') }}\n\n{% if vars.DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED %}\nUNION ALL\nSELECT\n 1 AS partition_key,\n contract_address,\n abi_data AS VALUE,\n NULL AS metadata,\n abi_data :data AS DATA,\n NULL AS file_name,\n _inserted_timestamp\nFROM\n {{ ref('bronze_api__contract_abis') }}\n{% endif %}\n*/\n\n\n-- depends_on: polygon.bronze_api.contract_abis\n\n\n\nSELECT\n partition_key,\n contract_address,\n VALUE,\n metadata,\n DATA,\n file_name,\n _inserted_timestamp\nFROM\n polygon.bronze.contract_abis_fr_v2\n\n\nUNION ALL\nSELECT\n 1 AS partition_key,\n contract_address,\n abi_data AS VALUE,\n NULL AS metadata,\n abi_data :data AS DATA,\n NULL AS file_name,\n _inserted_timestamp\nFROM\n polygon.bronze_api.contract_abis\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__contract_abis_fr_v2": {"database": "polygon", "schema": "bronze", "name": "bronze__contract_abis_fr_v2", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/bronze/bronze__contract_abis_fr_v2.sql", "original_file_path": "models/decoder_package/abis/bronze/bronze__contract_abis_fr_v2.sql", "unique_id": "model.fsc_evm.bronze__contract_abis_fr_v2", "fqn": ["fsc_evm", "decoder_package", "abis", "bronze", "bronze__contract_abis_fr_v2"], "alias": "contract_abis_fr_v2", "checksum": {"name": "sha256", "checksum": "a55d64fe144ed86f79959bacdd0d12926c01f5ef872455afa45dec74af58bdf0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "abis", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "abis", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "abis", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018302.3969808, "relation_name": "polygon.bronze.contract_abis_fr_v2", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','abis','phase_2']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'contract_abis',\n block_number = false,\n contract_address = true\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "contract_abis"], ["bronze_streamline", "contract_abis"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query_fr", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.contract_abis"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/bronze/bronze__contract_abis_fr_v2.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"abis\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','abis','phase_2']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'contract_abis',\n block_number = false,\n contract_address = true\n) }}\n*/\n\n\n\n\n\n\n\n \n \n WITH meta AS (\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.POLYGON.contract_abis'\n )\n ) A\n )\nSELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n\n\n, --for contract_abis\n COALESCE(\n VALUE :\"CONTRACT_ADDRESS\",\n VALUE :\"contract_address\"\n ) :: STRING AS contract_address\n\n\n\nFROM\n streamline.POLYGON.contract_abis\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \nWHERE\n b.partition_key = s.partition_key\n \n \n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n \n AND DATA IS NOT NULL\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze_api__contract_abis": {"database": "polygon", "schema": "bronze_api", "name": "bronze_api__contract_abis", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/abis/bronze/_legacy/bronze_api__contract_abis.sql", "original_file_path": "models/decoder_package/abis/bronze/_legacy/bronze_api__contract_abis.sql", "unique_id": "model.fsc_evm.bronze_api__contract_abis", "fqn": ["fsc_evm", "decoder_package", "abis", "bronze", "_legacy", "bronze_api__contract_abis"], "alias": "contract_abis", "checksum": {"name": "sha256", "checksum": "77f9b4e00539b320e79e984b6e0f865469c0e263f2dd07c33c07702e8575c752"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(contract_address)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "contract_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "contract_address", "full_refresh": false, "tags": ["stale"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018302.5666144, "relation_name": "polygon.bronze_api.contract_abis", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('_retry_abis') }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = \"contract_address\",\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(contract_address)\",\n full_refresh = vars.GLOBAL_BRONZE_FR_ENABLED,\n tags = ['stale']\n) }}\n\nWITH base AS (\n\n SELECT\n contract_address,\n total_interaction_count\n FROM\n {{ ref('silver__relevant_contracts') }}\n WHERE\n 1 = 1\n AND total_interaction_count > {{ vars.DECODER_SL_CONTRACT_ABIS_INTERACTION_COUNT }}\n\n{% if is_incremental() %}\nAND contract_address NOT IN (\n SELECT\n contract_address\n FROM\n {{ this }}\n WHERE\n 1 = 1\n AND abi_data :error IS NULL\n)\n{% endif %}\nORDER BY\n total_event_count DESC\nLIMIT\n {{ vars.DECODER_SL_CONTRACT_ABIS_REALTIME_SQL_LIMIT }}\n), \nall_contracts AS (\n SELECT\n contract_address\n FROM\n base\n\n{% if is_incremental() %}\nUNION\nSELECT\n contract_address\nFROM\n {{ ref('_retry_abis') }}\n{% endif %}\n),\nrow_nos AS (\n SELECT\n contract_address,\n ROW_NUMBER() over (\n ORDER BY\n contract_address\n ) AS row_no\n FROM\n all_contracts\n),\nbatched AS (\n {% for item in range(\n vars.DECODER_SL_CONTRACT_ABIS_REALTIME_SQL_LIMIT * 2\n ) %}\n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n '{{ vars.DECODER_SL_CONTRACT_ABIS_EXPLORER_URL }}',\n rn.contract_address\n {% if vars.DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH != '' %}\n ,'&apikey={key}'\n {% endif %}\n {% if vars.DECODER_SL_CONTRACT_ABIS_EXPLORER_URL_SUFFIX != '' %}\n ,'{{ vars.DECODER_SL_CONTRACT_ABIS_EXPLORER_URL_SUFFIX }}'\n {% endif %}\n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n '{{ vars.DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH }}'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = {{ item }}\n\n {% if not loop.last %}\n UNION ALL\n {% endif %}\n {% endfor %}\n)\nSELECT\n contract_address,\n abi_data,\n SYSDATE() AS _inserted_timestamp\nFROM\n batched", "language": "sql", "refs": [{"name": "_retry_abis", "package": null, "version": null}, {"name": "silver__relevant_contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm._retry_abis", "model.fsc_evm.silver__relevant_contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/bronze/_legacy/bronze_api__contract_abis.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(contract_address)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"stale\"\n ],\n \"unique_key\": \"contract_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('_retry_abis') }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = \"contract_address\",\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(contract_address)\",\n full_refresh = vars.GLOBAL_BRONZE_FR_ENABLED,\n tags = ['stale']\n) }}\n\nWITH base AS (\n\n SELECT\n contract_address,\n total_interaction_count\n FROM\n {{ ref('silver__relevant_contracts') }}\n WHERE\n 1 = 1\n AND total_interaction_count > {{ vars.DECODER_SL_CONTRACT_ABIS_INTERACTION_COUNT }}\n\n{% if is_incremental() %}\nAND contract_address NOT IN (\n SELECT\n contract_address\n FROM\n {{ this }}\n WHERE\n 1 = 1\n AND abi_data :error IS NULL\n)\n{% endif %}\nORDER BY\n total_event_count DESC\nLIMIT\n {{ vars.DECODER_SL_CONTRACT_ABIS_REALTIME_SQL_LIMIT }}\n), \nall_contracts AS (\n SELECT\n contract_address\n FROM\n base\n\n{% if is_incremental() %}\nUNION\nSELECT\n contract_address\nFROM\n {{ ref('_retry_abis') }}\n{% endif %}\n),\nrow_nos AS (\n SELECT\n contract_address,\n ROW_NUMBER() over (\n ORDER BY\n contract_address\n ) AS row_no\n FROM\n all_contracts\n),\nbatched AS (\n {% for item in range(\n vars.DECODER_SL_CONTRACT_ABIS_REALTIME_SQL_LIMIT * 2\n ) %}\n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n '{{ vars.DECODER_SL_CONTRACT_ABIS_EXPLORER_URL }}',\n rn.contract_address\n {% if vars.DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH != '' %}\n ,'&apikey={key}'\n {% endif %}\n {% if vars.DECODER_SL_CONTRACT_ABIS_EXPLORER_URL_SUFFIX != '' %}\n ,'{{ vars.DECODER_SL_CONTRACT_ABIS_EXPLORER_URL_SUFFIX }}'\n {% endif %}\n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n '{{ vars.DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH }}'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = {{ item }}\n\n {% if not loop.last %}\n UNION ALL\n {% endif %}\n {% endfor %}\n)\nSELECT\n contract_address,\n abi_data,\n SYSDATE() AS _inserted_timestamp\nFROM\n batched\n*/\n\n-- depends_on: __dbt__cte___retry_abis\n\n\n\nWITH __dbt__cte___retry_abis as (\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n{{ config (\n materialized = \"ephemeral\"\n) }}\n\nWITH retry AS (\n\n SELECT\n r.contract_address,\n GREATEST(\n latest_call_block,\n latest_event_block\n ) AS block_number,\n total_interaction_count\n FROM\n {{ ref(\"silver__relevant_contracts\") }}\n r\n LEFT JOIN {{ source(\n 'abis_silver',\n 'verified_abis'\n ) }}\n v USING (contract_address)\n LEFT JOIN {{ source(\n 'complete_streamline',\n 'complete_contract_abis'\n ) }} C\n ON r.contract_address = C.contract_address\n AND C._inserted_timestamp >= CURRENT_DATE - INTERVAL '30 days' -- avoid retrying the same contract within the last 30 days\n WHERE\n r.total_interaction_count >= 250 -- high interaction count\n AND GREATEST(\n max_inserted_timestamp_logs,\n max_inserted_timestamp_traces\n ) >= CURRENT_DATE - INTERVAL '30 days' -- recent activity\n AND v.contract_address IS NULL -- no verified abi\n AND C.contract_address IS NULL\n ORDER BY\n total_interaction_count DESC\n LIMIT\n 5\n), FINAL AS (\n SELECT\n implementation_contract AS contract_address,\n start_block AS block_number\n FROM\n {{ ref(\"silver__proxies\") }}\n p\n JOIN retry r USING (contract_address)\n LEFT JOIN {{ source(\n 'abis_silver',\n 'verified_abis'\n ) }}\n v\n ON v.contract_address = p.implementation_contract\n LEFT JOIN {{ source(\n 'complete_streamline',\n 'complete_contract_abis'\n ) }} C\n ON p.implementation_contract = C.contract_address\n AND C._inserted_timestamp >= CURRENT_DATE - INTERVAL '30 days' -- avoid retrying the same contract within the last 30 days\n WHERE\n v.contract_address IS NULL\n AND C.contract_address IS NULL\n UNION ALL\n SELECT\n contract_address,\n block_number\n FROM\n retry\n)\nSELECT\n *\nFROM\n FINAL qualify ROW_NUMBER() over (\n PARTITION BY contract_address\n ORDER BY\n block_number DESC\n ) = 1\n*/\n\n\nWITH retry AS (\n\n SELECT\n r.contract_address,\n GREATEST(\n latest_call_block,\n latest_event_block\n ) AS block_number,\n total_interaction_count\n FROM\n polygon.silver.relevant_contracts\n r\n LEFT JOIN polygon.silver.verified_abis\n v USING (contract_address)\n LEFT JOIN polygon.streamline.complete_contract_abis C\n ON r.contract_address = C.contract_address\n AND C._inserted_timestamp >= CURRENT_DATE - INTERVAL '30 days' -- avoid retrying the same contract within the last 30 days\n WHERE\n r.total_interaction_count >= 250 -- high interaction count\n AND GREATEST(\n max_inserted_timestamp_logs,\n max_inserted_timestamp_traces\n ) >= CURRENT_DATE - INTERVAL '30 days' -- recent activity\n AND v.contract_address IS NULL -- no verified abi\n AND C.contract_address IS NULL\n ORDER BY\n total_interaction_count DESC\n LIMIT\n 5\n), FINAL AS (\n SELECT\n implementation_contract AS contract_address,\n start_block AS block_number\n FROM\n polygon.silver.proxies\n p\n JOIN retry r USING (contract_address)\n LEFT JOIN polygon.silver.verified_abis\n v\n ON v.contract_address = p.implementation_contract\n LEFT JOIN polygon.streamline.complete_contract_abis C\n ON p.implementation_contract = C.contract_address\n AND C._inserted_timestamp >= CURRENT_DATE - INTERVAL '30 days' -- avoid retrying the same contract within the last 30 days\n WHERE\n v.contract_address IS NULL\n AND C.contract_address IS NULL\n UNION ALL\n SELECT\n contract_address,\n block_number\n FROM\n retry\n)\nSELECT\n *\nFROM\n FINAL qualify ROW_NUMBER() over (\n PARTITION BY contract_address\n ORDER BY\n block_number DESC\n ) = 1\n), base AS (\n\n SELECT\n contract_address,\n total_interaction_count\n FROM\n polygon.silver.relevant_contracts\n WHERE\n 1 = 1\n AND total_interaction_count > 50\n\n\nAND contract_address NOT IN (\n SELECT\n contract_address\n FROM\n polygon.bronze_api.contract_abis\n WHERE\n 1 = 1\n AND abi_data :error IS NULL\n)\n\nORDER BY\n total_event_count DESC\nLIMIT\n 100\n), \nall_contracts AS (\n SELECT\n contract_address\n FROM\n base\n\n\nUNION\nSELECT\n contract_address\nFROM\n __dbt__cte___retry_abis\n\n),\nrow_nos AS (\n SELECT\n contract_address,\n ROW_NUMBER() over (\n ORDER BY\n contract_address\n ) AS row_no\n FROM\n all_contracts\n),\nbatched AS (\n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 0\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 1\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 2\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 3\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 4\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 5\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 6\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 7\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 8\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 9\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 10\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 11\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 12\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 13\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 14\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 15\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 16\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 17\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 18\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 19\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 20\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 21\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 22\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 23\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 24\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 25\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 26\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 27\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 28\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 29\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 30\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 31\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 32\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 33\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 34\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 35\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 36\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 37\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 38\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 39\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 40\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 41\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 42\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 43\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 44\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 45\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 46\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 47\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 48\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 49\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 50\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 51\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 52\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 53\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 54\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 55\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 56\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 57\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 58\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 59\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 60\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 61\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 62\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 63\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 64\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 65\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 66\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 67\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 68\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 69\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 70\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 71\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 72\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 73\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 74\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 75\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 76\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 77\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 78\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 79\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 80\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 81\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 82\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 83\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 84\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 85\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 86\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 87\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 88\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 89\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 90\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 91\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 92\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 93\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 94\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 95\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 96\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 97\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 98\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 99\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 100\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 101\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 102\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 103\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 104\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 105\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 106\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 107\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 108\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 109\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 110\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 111\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 112\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 113\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 114\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 115\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 116\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 117\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 118\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 119\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 120\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 121\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 122\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 123\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 124\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 125\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 126\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 127\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 128\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 129\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 130\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 131\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 132\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 133\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 134\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 135\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 136\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 137\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 138\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 139\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 140\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 141\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 142\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 143\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 144\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 145\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 146\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 147\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 148\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 149\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 150\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 151\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 152\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 153\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 154\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 155\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 156\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 157\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 158\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 159\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 160\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 161\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 162\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 163\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 164\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 165\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 166\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 167\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 168\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 169\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 170\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 171\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 172\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 173\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 174\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 175\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 176\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 177\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 178\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 179\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 180\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 181\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 182\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 183\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 184\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 185\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 186\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 187\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 188\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 189\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 190\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 191\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 192\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 193\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 194\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 195\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 196\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 197\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 198\n\n \n UNION ALL\n \n \n SELECT\n rn.contract_address,\n live.udf_api('GET',\n CONCAT(\n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n rn.contract_address\n \n ,'&apikey={key}'\n \n \n ),\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n {},\n 'Vault/prod/block_explorers/polygon_scan'\n ) AS abi_data\n FROM\n row_nos rn\n WHERE\n row_no = 199\n\n \n \n)\nSELECT\n contract_address,\n abi_data,\n SYSDATE() AS _inserted_timestamp\nFROM\n batched", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.fsc_evm._retry_abis", "sql": " __dbt__cte___retry_abis as (\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n{{ config (\n materialized = \"ephemeral\"\n) }}\n\nWITH retry AS (\n\n SELECT\n r.contract_address,\n GREATEST(\n latest_call_block,\n latest_event_block\n ) AS block_number,\n total_interaction_count\n FROM\n {{ ref(\"silver__relevant_contracts\") }}\n r\n LEFT JOIN {{ source(\n 'abis_silver',\n 'verified_abis'\n ) }}\n v USING (contract_address)\n LEFT JOIN {{ source(\n 'complete_streamline',\n 'complete_contract_abis'\n ) }} C\n ON r.contract_address = C.contract_address\n AND C._inserted_timestamp >= CURRENT_DATE - INTERVAL '30 days' -- avoid retrying the same contract within the last 30 days\n WHERE\n r.total_interaction_count >= 250 -- high interaction count\n AND GREATEST(\n max_inserted_timestamp_logs,\n max_inserted_timestamp_traces\n ) >= CURRENT_DATE - INTERVAL '30 days' -- recent activity\n AND v.contract_address IS NULL -- no verified abi\n AND C.contract_address IS NULL\n ORDER BY\n total_interaction_count DESC\n LIMIT\n 5\n), FINAL AS (\n SELECT\n implementation_contract AS contract_address,\n start_block AS block_number\n FROM\n {{ ref(\"silver__proxies\") }}\n p\n JOIN retry r USING (contract_address)\n LEFT JOIN {{ source(\n 'abis_silver',\n 'verified_abis'\n ) }}\n v\n ON v.contract_address = p.implementation_contract\n LEFT JOIN {{ source(\n 'complete_streamline',\n 'complete_contract_abis'\n ) }} C\n ON p.implementation_contract = C.contract_address\n AND C._inserted_timestamp >= CURRENT_DATE - INTERVAL '30 days' -- avoid retrying the same contract within the last 30 days\n WHERE\n v.contract_address IS NULL\n AND C.contract_address IS NULL\n UNION ALL\n SELECT\n contract_address,\n block_number\n FROM\n retry\n)\nSELECT\n *\nFROM\n FINAL qualify ROW_NUMBER() over (\n PARTITION BY contract_address\n ORDER BY\n block_number DESC\n ) = 1\n*/\n\n\nWITH retry AS (\n\n SELECT\n r.contract_address,\n GREATEST(\n latest_call_block,\n latest_event_block\n ) AS block_number,\n total_interaction_count\n FROM\n polygon.silver.relevant_contracts\n r\n LEFT JOIN polygon.silver.verified_abis\n v USING (contract_address)\n LEFT JOIN polygon.streamline.complete_contract_abis C\n ON r.contract_address = C.contract_address\n AND C._inserted_timestamp >= CURRENT_DATE - INTERVAL '30 days' -- avoid retrying the same contract within the last 30 days\n WHERE\n r.total_interaction_count >= 250 -- high interaction count\n AND GREATEST(\n max_inserted_timestamp_logs,\n max_inserted_timestamp_traces\n ) >= CURRENT_DATE - INTERVAL '30 days' -- recent activity\n AND v.contract_address IS NULL -- no verified abi\n AND C.contract_address IS NULL\n ORDER BY\n total_interaction_count DESC\n LIMIT\n 5\n), FINAL AS (\n SELECT\n implementation_contract AS contract_address,\n start_block AS block_number\n FROM\n polygon.silver.proxies\n p\n JOIN retry r USING (contract_address)\n LEFT JOIN polygon.silver.verified_abis\n v\n ON v.contract_address = p.implementation_contract\n LEFT JOIN polygon.streamline.complete_contract_abis C\n ON p.implementation_contract = C.contract_address\n AND C._inserted_timestamp >= CURRENT_DATE - INTERVAL '30 days' -- avoid retrying the same contract within the last 30 days\n WHERE\n v.contract_address IS NULL\n AND C.contract_address IS NULL\n UNION ALL\n SELECT\n contract_address,\n block_number\n FROM\n retry\n)\nSELECT\n *\nFROM\n FINAL qualify ROW_NUMBER() over (\n PARTITION BY contract_address\n ORDER BY\n block_number DESC\n ) = 1\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__decoded_logs": {"database": "polygon", "schema": "silver", "name": "silver__decoded_logs", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/decoded_logs/silver/silver__decoded_logs.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/silver__decoded_logs.sql", "unique_id": "model.fsc_evm.silver__decoded_logs", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "silver__decoded_logs"], "alias": "decoded_logs", "checksum": {"name": "sha256", "checksum": "dd9b706599cde961ec43b07be113d207a4f81fe9d03d86610c5a7b83de169da2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "decoded_logs", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "decoded_logs_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["modified_timestamp::date", "round(block_number, -3)"], "incremental_predicates": ["polygon.\n \n silver.\n \n decoded_logs.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n silver.\n \n decoded_logs__dbt_tmp\n )"]}, "tags": ["silver", "decoded_logs", "phase_3"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "decoded_logs_id", "incremental_strategy": "delete+insert", "cluster_by": ["modified_timestamp::date", "round(block_number, -3)"], "incremental_predicates": ["polygon.\n \n silver.\n \n decoded_logs.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n silver.\n \n decoded_logs__dbt_tmp\n )"], "full_refresh": false, "tags": ["silver", "decoded_logs", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018302.8926408, "relation_name": "polygon.silver.decoded_logs", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze__decoded_logs') }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"decoded_logs_id\",\n incremental_strategy = 'delete+insert',\n cluster_by = ['modified_timestamp::date', 'round(block_number, -3)'],\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','decoded_logs','phase_3']\n) }}\n\nWITH base_data AS (\n\n SELECT\n block_number :: INTEGER AS block_number,\n SPLIT(id, '-')[0] :: STRING AS tx_hash,\n SPLIT(id, '-')[1] :: INTEGER AS event_index,\n DATA :name :: STRING AS event_name,\n LOWER(DATA :address :: STRING) :: STRING AS contract_address,\n DATA AS decoded_data,\n TO_TIMESTAMP_NTZ(_inserted_timestamp) AS _inserted_timestamp\n FROM\n\n{% if is_incremental() %}\n{{ ref('bronze__decoded_logs') }}\nWHERE\n TO_TIMESTAMP_NTZ(_inserted_timestamp) > (\n SELECT\n COALESCE(\n MAX(modified_timestamp), \n '1900-01-01'::TIMESTAMP\n )\n FROM\n {{ this }}\n )\n AND is_object(DATA)\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n{% else %}\n {{ ref('bronze__decoded_logs_fr') }}\nWHERE\n is_object(DATA)\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n{% endif %}\n\nqualify(ROW_NUMBER() over (\n PARTITION BY\n block_number, event_index\n ORDER BY\n _inserted_timestamp DESC, _partition_by_created_date DESC)) = 1\n),\ntransformed_logs AS (\n SELECT\n block_number,\n tx_hash,\n event_index,\n contract_address,\n event_name,\n decoded_data,\n _inserted_timestamp,\n utils.udf_transform_logs(decoded_data) AS transformed\n FROM\n base_data\n),\nFINAL AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.decoded_data,\n transformed,\n b._inserted_timestamp,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value :name = '' THEN CONCAT('anonymous_', v.index)\n ELSE v.value :name\n END,\n v.value :value\n ) AS decoded_flat\n FROM\n transformed_logs b,\n LATERAL FLATTEN(\n input => transformed :data\n ) v\n GROUP BY\n ALL\n)\nSELECT \n tx_hash,\n block_number,\n event_index,\n event_name,\n contract_address,\n decoded_data,\n transformed,\n decoded_flat,\n {{ dbt_utils.generate_surrogate_key(['block_number', 'event_index']) }} AS decoded_logs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM FINAL", "language": "sql", "refs": [{"name": "bronze__decoded_logs", "package": null, "version": null}, {"name": "bronze__decoded_logs_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.standard_predicate", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__decoded_logs", "model.fsc_evm.bronze__decoded_logs_fr"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/silver__decoded_logs.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"modified_timestamp::date\",\n \"round(block_number, -3)\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"polygon.\\n \\n silver.\\n \\n decoded_logs.block_number \\u003e= (\\n SELECT\\n MIN(\\n block_number\\n )\\n FROM\\n polygon.\\n \\n silver.\\n \\n decoded_logs__dbt_tmp\\n )\"\n ],\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"decoded_logs\",\n \"phase_3\"\n ],\n \"unique_key\": \"decoded_logs_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze__decoded_logs') }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"decoded_logs_id\",\n incremental_strategy = 'delete+insert',\n cluster_by = ['modified_timestamp::date', 'round(block_number, -3)'],\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','decoded_logs','phase_3']\n) }}\n\nWITH base_data AS (\n\n SELECT\n block_number :: INTEGER AS block_number,\n SPLIT(id, '-')[0] :: STRING AS tx_hash,\n SPLIT(id, '-')[1] :: INTEGER AS event_index,\n DATA :name :: STRING AS event_name,\n LOWER(DATA :address :: STRING) :: STRING AS contract_address,\n DATA AS decoded_data,\n TO_TIMESTAMP_NTZ(_inserted_timestamp) AS _inserted_timestamp\n FROM\n\n{% if is_incremental() %}\n{{ ref('bronze__decoded_logs') }}\nWHERE\n TO_TIMESTAMP_NTZ(_inserted_timestamp) > (\n SELECT\n COALESCE(\n MAX(modified_timestamp), \n '1900-01-01'::TIMESTAMP\n )\n FROM\n {{ this }}\n )\n AND is_object(DATA)\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n{% else %}\n {{ ref('bronze__decoded_logs_fr') }}\nWHERE\n is_object(DATA)\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n{% endif %}\n\nqualify(ROW_NUMBER() over (\n PARTITION BY\n block_number, event_index\n ORDER BY\n _inserted_timestamp DESC, _partition_by_created_date DESC)) = 1\n),\ntransformed_logs AS (\n SELECT\n block_number,\n tx_hash,\n event_index,\n contract_address,\n event_name,\n decoded_data,\n _inserted_timestamp,\n utils.udf_transform_logs(decoded_data) AS transformed\n FROM\n base_data\n),\nFINAL AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.decoded_data,\n transformed,\n b._inserted_timestamp,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value :name = '' THEN CONCAT('anonymous_', v.index)\n ELSE v.value :name\n END,\n v.value :value\n ) AS decoded_flat\n FROM\n transformed_logs b,\n LATERAL FLATTEN(\n input => transformed :data\n ) v\n GROUP BY\n ALL\n)\nSELECT \n tx_hash,\n block_number,\n event_index,\n event_name,\n contract_address,\n decoded_data,\n transformed,\n decoded_flat,\n {{ dbt_utils.generate_surrogate_key(['block_number', 'event_index']) }} AS decoded_logs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM FINAL\n*/\n\n-- depends_on: polygon.bronze.decoded_logs\n\n\n\nWITH base_data AS (\n\n SELECT\n block_number :: INTEGER AS block_number,\n SPLIT(id, '-')[0] :: STRING AS tx_hash,\n SPLIT(id, '-')[1] :: INTEGER AS event_index,\n DATA :name :: STRING AS event_name,\n LOWER(DATA :address :: STRING) :: STRING AS contract_address,\n DATA AS decoded_data,\n TO_TIMESTAMP_NTZ(_inserted_timestamp) AS _inserted_timestamp\n FROM\n\n\npolygon.bronze.decoded_logs\nWHERE\n TO_TIMESTAMP_NTZ(_inserted_timestamp) > (\n SELECT\n COALESCE(\n MAX(modified_timestamp), \n '1900-01-01'::TIMESTAMP\n )\n FROM\n polygon.silver.decoded_logs\n )\n AND is_object(DATA)\n AND block_number >= 0\n\n\nqualify(ROW_NUMBER() over (\n PARTITION BY\n block_number, event_index\n ORDER BY\n _inserted_timestamp DESC, _partition_by_created_date DESC)) = 1\n),\ntransformed_logs AS (\n SELECT\n block_number,\n tx_hash,\n event_index,\n contract_address,\n event_name,\n decoded_data,\n _inserted_timestamp,\n utils.udf_transform_logs(decoded_data) AS transformed\n FROM\n base_data\n),\nFINAL AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.decoded_data,\n transformed,\n b._inserted_timestamp,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value :name = '' THEN CONCAT('anonymous_', v.index)\n ELSE v.value :name\n END,\n v.value :value\n ) AS decoded_flat\n FROM\n transformed_logs b,\n LATERAL FLATTEN(\n input => transformed :data\n ) v\n GROUP BY\n ALL\n)\nSELECT \n tx_hash,\n block_number,\n event_index,\n event_name,\n contract_address,\n decoded_data,\n transformed,\n decoded_flat,\n \n \nmd5(cast(coalesce(cast(block_number as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(event_index as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS decoded_logs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM FINAL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__decoded_logs_full": {"database": "polygon", "schema": "test_silver", "name": "test_silver__decoded_logs_full", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.sql", "unique_id": "model.fsc_evm.test_silver__decoded_logs_full", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "test_silver__decoded_logs_full"], "alias": "decoded_logs_full", "checksum": {"name": "sha256", "checksum": "be71e0e9a8b26ab7e180602a72da4961410b1575555f9a351210012c1bbd1510"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "decoded_logs", "full_test", "phase_3"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "decoded_logs", "full_test", "phase_3"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "decoded_logs", "full_test", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.3233364, "relation_name": "polygon.test_silver.decoded_logs_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','decoded_logs','full_test','phase_3']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__decoded_logs') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "silver__decoded_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__decoded_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"decoded_logs\",\n \"full_test\",\n \"phase_3\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','decoded_logs','full_test','phase_3']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__decoded_logs') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.decoded_logs\n\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__decoded_logs_recent": {"database": "polygon", "schema": "test_silver", "name": "test_silver__decoded_logs_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.sql", "unique_id": "model.fsc_evm.test_silver__decoded_logs_recent", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "test_silver__decoded_logs_recent"], "alias": "decoded_logs_recent", "checksum": {"name": "sha256", "checksum": "5bf7371dd28b473fd8412b1f9e7471890963f648ed528540e4782a9a99aa4471"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "decoded_logs", "recent_test", "phase_3"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "decoded_logs", "recent_test", "phase_3"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "decoded_logs", "recent_test", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.392696, "relation_name": "polygon.test_silver.decoded_logs_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','decoded_logs','recent_test','phase_3']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__decoded_logs') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "silver__decoded_logs", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__decoded_logs", "model.fsc_evm._block_lookback"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.sql", "compiled": true, "compiled_code": "\n\n\n\nwith __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n) /* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"decoded_logs\",\n \"recent_test\",\n \"phase_3\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','decoded_logs','recent_test','phase_3']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__decoded_logs') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.decoded_logs\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n __dbt__cte___block_lookback\n )\n\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.fsc_evm._block_lookback", "sql": " __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__decoded_logs_realtime": {"database": "polygon", "schema": "streamline", "name": "streamline__decoded_logs_realtime", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/decoded_logs/streamline/realtime/streamline__decoded_logs_realtime.sql", "original_file_path": "models/decoder_package/decoded_logs/streamline/realtime/streamline__decoded_logs_realtime.sql", "unique_id": "model.fsc_evm.streamline__decoded_logs_realtime", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "streamline", "realtime", "streamline__decoded_logs_realtime"], "alias": "decoded_logs_realtime", "checksum": {"name": "sha256", "checksum": "3b1c28f78406d8789eb56868fbb593bebcfc346904220b72a654eb44a4369bdf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "decoded_logs", "realtime", "phase_3"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "decoded_logs", "realtime", "phase_3"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "decoded_logs", "realtime", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018303.8575196, "relation_name": "polygon.streamline.decoded_logs_realtime", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','decoded_logs','realtime','phase_3']\n) }}\n\nWITH existing_logs_to_exclude AS (\n SELECT\n _log_id\n FROM\n {{ ref('streamline__decoded_logs_complete') }}\n WHERE\n inserted_timestamp >= DATEADD('hour', -60, SYSDATE())\n),\ncandidate_logs AS (\n SELECT\n block_number,\n tx_hash,\n event_index,\n contract_address,\n topics,\n data,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM {{ ref('core__fact_event_logs') }}\n WHERE\n tx_succeeded\n AND inserted_timestamp >= DATEADD('hour', -48, SYSDATE())\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n)\nSELECT\n l.block_number,\n l._log_id,\n A.abi,\n OBJECT_CONSTRUCT(\n 'topics',\n l.topics,\n 'data',\n l.data,\n 'address',\n l.contract_address\n ) AS DATA\nFROM\n candidate_logs l\n INNER JOIN {{ source('abis_silver', 'complete_event_abis') }} A\n ON A.parent_contract_address = l.contract_address\n AND A.event_signature = l.topics [0] :: STRING\n AND l.block_number BETWEEN A.start_block\n AND A.end_block\nWHERE\n NOT EXISTS (\n SELECT\n 1\n FROM\n existing_logs_to_exclude e\n WHERE\n e._log_id = l._log_id\n )\n\n{% if vars.DECODER_SL_TESTING_LIMIT is not none %}\n LIMIT\n {{ vars.DECODER_SL_TESTING_LIMIT }}\n{% endif %}\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = {\n \"external_table\": vars.DECODER_SL_DECODED_LOGS_REALTIME_EXTERNAL_TABLE,\n \"sql_limit\": vars.DECODER_SL_DECODED_LOGS_REALTIME_SQL_LIMIT,\n \"producer_batch_size\": vars.DECODER_SL_DECODED_LOGS_REALTIME_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.DECODER_SL_DECODED_LOGS_REALTIME_WORKER_BATCH_SIZE,\n \"sql_source\": \"decoded_logs_realtime\"\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_decode_logs_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n \n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "streamline__decoded_logs_complete", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [["abis_silver", "complete_event_abis"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.abis_silver.complete_event_abis", "model.fsc_evm.streamline__decoded_logs_complete", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__decoded_logs_complete": {"database": "polygon", "schema": "streamline", "name": "streamline__decoded_logs_complete", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/decoded_logs/streamline/complete/streamline__decoded_logs_complete.sql", "original_file_path": "models/decoder_package/decoded_logs/streamline/complete/streamline__decoded_logs_complete.sql", "unique_id": "model.fsc_evm.streamline__decoded_logs_complete", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "streamline", "complete", "streamline__decoded_logs_complete"], "alias": "decoded_logs_complete", "checksum": {"name": "sha256", "checksum": "bf9c372d1cb7a7eabed1321efd0cf38bb73d962146369cb440a29cf31ae80069"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "decoded_logs", "complete", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(_log_id)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "_log_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["_log_id"], "incremental_predicates": ["dynamic_range", "block_number"]}, "tags": ["streamline", "decoded_logs", "complete", "phase_3"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "_log_id", "cluster_by": "ROUND(block_number, -3)", "incremental_predicates": ["dynamic_range", "block_number"], "merge_update_columns": ["_log_id"], "full_refresh": false, "tags": ["streamline", "decoded_logs", "complete", "phase_3"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018304.1797016, "relation_name": "polygon.streamline.decoded_logs_complete", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n-- depends_on: {{ ref('bronze__decoded_logs') }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"_log_id\",\n cluster_by = \"ROUND(block_number, -3)\",\n incremental_predicates = [\"dynamic_range\", \"block_number\"],\n merge_update_columns = [\"_log_id\"],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(_log_id)\",\n full_refresh = vars.GLOBAL_STREAMLINE_FR_ENABLED,\n tags = ['streamline','decoded_logs','complete','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n block_number,\n file_name,\n id AS _log_id,\n {{ dbt_utils.generate_surrogate_key(['id']) }} AS complete_decoded_logs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {% if is_incremental() %}\n {{ ref('bronze__decoded_logs') }}\n WHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM\n {{ this }}\n )\n {% else %}\n {{ ref('bronze__decoded_logs_fr') }}\n {% endif %}\n\nQUALIFY (ROW_NUMBER() OVER (PARTITION BY id ORDER BY _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__decoded_logs", "package": null, "version": null}, {"name": "bronze__decoded_logs_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__decoded_logs", "model.fsc_evm.bronze__decoded_logs_fr"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.core__ez_decoded_event_logs": {"database": "polygon", "schema": "core", "name": "core__ez_decoded_event_logs", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/decoded_logs/gold/core__ez_decoded_event_logs.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/core__ez_decoded_event_logs.sql", "unique_id": "model.fsc_evm.core__ez_decoded_event_logs", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "core__ez_decoded_event_logs"], "alias": "ez_decoded_event_logs", "checksum": {"name": "sha256", "checksum": "e7c6205829bece38c292a01433c9d1fc89f63c40e783e4381ae1f8c71c722e1f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "decoded_logs", "phase_3", "heal"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(ez_decoded_event_logs_id, contract_name, contract_address)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "ez_decoded_event_logs_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "block_timestamp::date", "incremental_predicates": ["polygon.\n \n core.\n \n ez_decoded_event_logs.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n core.\n \n ez_decoded_event_logs__dbt_tmp\n )"]}, "tags": ["gold", "decoded_logs", "phase_3", "heal"], "description": "## What\n\nThis table provides human-readable decoded event data for smart contracts where ABIs are available. It transforms raw hex-encoded logs into structured JSON with named parameters and values, making blockchain data immediately queryable without manual decoding.\n\n## Key Use Cases\n\n- Analyzing token transfers and approvals without manual decoding\n- Tracking DEX swaps and liquidity events with named parameters\n- Monitoring NFT transfers and marketplace activity\n- Querying DeFi protocol interactions (lending, staking, governance)\n- Building analytics on any smart contract with available ABIs\n\n## Important Relationships\n\n- **Join with fact_event_logs**: Use `tx_hash` and `event_index` for raw event data\n- **Join with dim_contracts**: Use `contract_address` for contract metadata\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Cross-reference ez_token_transfers**: For simplified token movement data\n\n## Commonly-used Fields\n\n- `contract_address`: The smart contract that emitted the event\n- `event_name`: The event name from the contract ABI (e.g., Transfer, Swap)\n- `decoded_log`: JSON object with decoded parameter names and values\n- `contract_name`: Human-readable name of the contract\n- `block_timestamp`: When the event occurred\n- `tx_hash`: Transaction hash containing this event\n\n## Sample queries\n\n**ERC-20 Transfer Events with Proper Types**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n contract_address,\n contract_name,\n event_name,\n decoded_log:from::string AS from_address,\n decoded_log:to::string AS to_address,\n decoded_log:value::numeric AS amount,\n -- Convert to decimal (assuming 18 decimals)\n decoded_log:value::numeric / POW(10, 18) AS amount_decimal\nFROM .core.ez_decoded_event_logs\nWHERE contract_address = LOWER('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48') -- USDC\n AND event_name = 'Transfer'\n AND block_timestamp >= CURRENT_DATE - 7\n AND decoded_log:value::numeric > 1000000000 -- Over 1000 USDC\nORDER BY block_timestamp DESC;\n```\n\n**Uniswap V3 Swap Events**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n contract_address AS pool_address,\n event_name,\n decoded_log:sender::string AS sender,\n decoded_log:recipient::string AS recipient,\n decoded_log:amount0::numeric AS amount0,\n decoded_log:amount1::numeric AS amount1,\n decoded_log:sqrtPriceX96::numeric AS sqrt_price,\n decoded_log:liquidity::numeric AS liquidity,\n decoded_log:tick::integer AS tick\nFROM .core.ez_decoded_event_logs\nWHERE event_name = 'Swap'\n AND contract_address IN (\n SELECT address FROM dim_contracts \n WHERE contract_name ILIKE '%Uniswap V3%'\n )\n AND block_timestamp >= CURRENT_DATE - 1\nLIMIT 100;\n```\n\n**NFT Transfer Events (ERC-721)**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n contract_address,\n contract_name AS collection_name,\n decoded_log:from::string AS from_address,\n decoded_log:to::string AS to_address,\n decoded_log:tokenId::string AS token_id\nFROM .core.ez_decoded_event_logs\nWHERE event_name = 'Transfer'\n AND decoded_log:tokenId IS NOT NULL -- Indicates ERC-721\n AND block_timestamp >= CURRENT_DATE - 1\nORDER BY block_timestamp DESC;\n```\n\n**DeFi Protocol Events - Compound Finance**\n\n```sql\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n event_name,\n COUNT(*) AS event_count,\n COUNT(DISTINCT decoded_log:minter::string) AS unique_users\nFROM .core.ez_decoded_event_logs\nWHERE contract_name ILIKE '%compound%'\n AND event_name IN ('Mint', 'Redeem', 'Borrow', 'RepayBorrow')\n AND block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1, 2\nORDER BY 1 DESC, 3 DESC;\n```\n\n**Complex Event Analysis - DEX Aggregator Routes**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n event_name,\n decoded_log,\n ARRAY_SIZE(decoded_log:path) AS swap_hops,\n decoded_log:amountIn::numeric AS amount_in,\n decoded_log:amountOutMin::numeric AS min_amount_out\nFROM .core.ez_decoded_event_logs\nWHERE contract_address = LOWER('0x1111111254fb6c44bAC0beD2854e76F90643097d') -- 1inch\n AND event_name ILIKE '%swap%'\n AND block_timestamp >= CURRENT_DATE - 1;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPICS": {"name": "TOPICS", "description": "Array containing all indexed parameters of the event.\n\nExample: ['0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', '0x0000000000000000000000001234567890123456789012345678901234567890']", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPIC_0": {"name": "TOPIC_0", "description": "Event signature hash - keccak256 of the event declaration.\n\nExample: '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPIC_1": {"name": "TOPIC_1", "description": "First indexed parameter of the event (if exists).\n\nExample: '0x0000000000000000000000001234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPIC_2": {"name": "TOPIC_2", "description": "Second indexed parameter of the event (if exists).\n\nExample: '0x000000000000000000000000abcdefabcdefabcdefabcdefabcdefabcdefabcd'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPIC_3": {"name": "TOPIC_3", "description": "Third indexed parameter of the event (if exists).\n\nExample: '0x0000000000000000000000000000000000000000000000000000000000000001'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DATA": {"name": "DATA", "description": "Hex-encoded non-indexed event parameters.\n\nExample: '0x0000000000000000000000000000000000000000000000000de0b6b3a7640000'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_REMOVED": {"name": "EVENT_REMOVED", "description": "Boolean flag indicating if the event was removed due to chain reorganization.\n\nExample: false", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Boolean indicator of transaction success.\n\n**Values**:\n- TRUE: Transaction executed successfully\n- FALSE: Transaction failed/reverted", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FULL_DECODED_LOG": {"name": "FULL_DECODED_LOG", "description": "Complete decoded event data including parameter names, values, types, and metadata.\n\nExample: '{\"event_name\": \"Transfer\", \"parameters\": [{\"name\": \"from\", \"type\": \"address\", \"value\": \"0x123...\", \"indexed\": true}]}'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECODED_LOG": {"name": "DECODED_LOG", "description": "Flattened JSON object containing decoded event parameters with their values.\n\nExample: '{\"from\": \"0x123...\", \"to\": \"0x456...\", \"value\": \"1000000000000000000\"}'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_NAME": {"name": "CONTRACT_NAME", "description": "Human-readable name of the smart contract emitting the event, joined from dim_contracts.\n\nExample: 'USD Coin'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_DECODED_EVENT_LOGS_ID": {"name": "EZ_DECODED_EVENT_LOGS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/decoder_package/decoded_logs/gold/core__ez_decoded_event_logs.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "ez_decoded_event_logs_id", "incremental_strategy": "delete+insert", "cluster_by": "block_timestamp::date", "incremental_predicates": ["polygon.\n \n core.\n \n ez_decoded_event_logs.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n core.\n \n ez_decoded_event_logs__dbt_tmp\n )"], "full_refresh": false, "tags": ["gold", "decoded_logs", "phase_3", "heal"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018437.4672372, "relation_name": "polygon.core.ez_decoded_event_logs", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"ez_decoded_event_logs_id\",\n incremental_strategy = 'delete+insert',\n cluster_by = \"block_timestamp::date\",\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n post_hook = 'ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(ez_decoded_event_logs_id, contract_name, contract_address)',\n tags = ['gold','decoded_logs','phase_3','heal']\n) }}\n\nWITH base AS (\n\n SELECT\n tx_hash,\n block_number,\n event_index,\n event_name,\n contract_address,\n decoded_data AS full_decoded_log,\n decoded_flat AS decoded_log\n FROM\n {{ ref('silver__decoded_logs') }}\n WHERE\n 1 = 1\n\n{% if is_incremental() %}\nAND modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '2000-01-01' :: TIMESTAMP)\n FROM\n {{ this }})\n {% endif %}\n),\nnew_records AS (\n SELECT\n b.block_number AS block_number,\n block_timestamp AS block_timestamp,\n b.tx_hash AS tx_hash,\n tx_position,\n b.event_index AS event_index,\n b.contract_address AS contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n event_name,\n full_decoded_log,\n decoded_log,\n NAME AS contract_name\n FROM\n base b\n LEFT JOIN {{ ref('core__fact_event_logs') }}\n fel\n ON b.block_number = fel.block_number\n AND b.event_index = fel.event_index\n\n{% if is_incremental() %}\nAND fel.inserted_timestamp > DATEADD('day', -3, SYSDATE())\n{% endif %}\nLEFT JOIN {{ ref('core__dim_contracts') }}\ndc\nON b.contract_address = dc.address\nAND dc.name IS NOT NULL\nWHERE\n 1 = 1\n)\n\n{% if is_incremental() %},\nbroken_logs AS (\n SELECT\n block_number,\n tx_hash,\n event_index,\n contract_address,\n event_name,\n full_decoded_log,\n decoded_log,\n contract_name\n from {{ this }}\n where tx_succeeded is null or block_timestamp is null\n),\nmissing_tx_data AS (\n SELECT\n t.block_number,\n fel.block_timestamp,\n t.tx_hash,\n fel.tx_position,\n t.event_index,\n t.contract_address,\n fel.topics,\n fel.topic_0,\n fel.topic_1,\n fel.topic_2,\n fel.topic_3,\n fel.data,\n fel.event_removed,\n fel.origin_from_address,\n fel.origin_to_address,\n fel.origin_function_signature,\n fel.tx_succeeded,\n t.event_name,\n t.full_decoded_log,\n t.decoded_log,\n t.contract_name\n FROM\n broken_logs\n t\n INNER JOIN {{ ref('core__fact_event_logs') }}\n fel USING (\n block_number,\n event_index\n )\n WHERE fel.block_timestamp IS NOT NULL\n)\n{% if var('HEAL_MODEL',false) %},\nbroken_contracts as (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n event_name,\n full_decoded_log,\n decoded_log\n from {{ this }}\n where contract_name is null and modified_timestamp >= dateadd('day', -30, SYSDATE())\n),\nmissing_contract_data AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n event_name,\n full_decoded_log,\n decoded_log,\n dc.name AS contract_name\n FROM\n broken_contracts\n t\n INNER JOIN {{ ref('core__dim_contracts') }}\n dc\n ON t.contract_address = dc.address\n AND dc.name IS NOT NULL\n)\n{% endif %}\n\n{% endif %},\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n event_name,\n full_decoded_log,\n decoded_log,\n contract_name\n FROM\n new_records\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n event_name,\n full_decoded_log,\n decoded_log,\n contract_name\nFROM\n missing_tx_data\n{% if var('HEAL_MODEL',false) %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n event_name,\n full_decoded_log,\n decoded_log,\n contract_name\nFROM\n missing_contract_data\n{% endif %}\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n event_name,\n full_decoded_log,\n decoded_log,\n contract_name,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash', 'event_index']\n ) }} AS ez_decoded_event_logs_id,\n{% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n{% else %}\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS inserted_timestamp,\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS modified_timestamp\n{% endif %}\nFROM\n FINAL \n{% if is_incremental() %} \nqualify ROW_NUMBER() over (\n PARTITION BY ez_decoded_event_logs_id\n ORDER BY\n block_timestamp DESC nulls last,\n tx_succeeded DESC nulls last,\n contract_name DESC nulls last\n ) = 1\n{% endif %}", "language": "sql", "refs": [{"name": "silver__decoded_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.standard_predicate", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__decoded_logs", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__dim_contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/core__ez_decoded_event_logs.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": \"block_timestamp::date\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"polygon.\\n \\n core.\\n \\n ez_decoded_event_logs.block_number \\u003e= (\\n SELECT\\n MIN(\\n block_number\\n )\\n FROM\\n polygon.\\n \\n core.\\n \\n ez_decoded_event_logs__dbt_tmp\\n )\"\n ],\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(ez_decoded_event_logs_id, contract_name, contract_address)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"decoded_logs\",\n \"phase_3\",\n \"heal\"\n ],\n \"unique_key\": \"ez_decoded_event_logs_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"ez_decoded_event_logs_id\",\n incremental_strategy = 'delete+insert',\n cluster_by = \"block_timestamp::date\",\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n post_hook = 'ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(ez_decoded_event_logs_id, contract_name, contract_address)',\n tags = ['gold','decoded_logs','phase_3','heal']\n) }}\n\nWITH base AS (\n\n SELECT\n tx_hash,\n block_number,\n event_index,\n event_name,\n contract_address,\n decoded_data AS full_decoded_log,\n decoded_flat AS decoded_log\n FROM\n {{ ref('silver__decoded_logs') }}\n WHERE\n 1 = 1\n\n{% if is_incremental() %}\nAND modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '2000-01-01' :: TIMESTAMP)\n FROM\n {{ this }})\n {% endif %}\n),\nnew_records AS (\n SELECT\n b.block_number AS block_number,\n block_timestamp AS block_timestamp,\n b.tx_hash AS tx_hash,\n tx_position,\n b.event_index AS event_index,\n b.contract_address AS contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n event_name,\n full_decoded_log,\n decoded_log,\n NAME AS contract_name\n FROM\n base b\n LEFT JOIN {{ ref('core__fact_event_logs') }}\n fel\n ON b.block_number = fel.block_number\n AND b.event_index = fel.event_index\n\n{% if is_incremental() %}\nAND fel.inserted_timestamp > DATEADD('day', -3, SYSDATE())\n{% endif %}\nLEFT JOIN {{ ref('core__dim_contracts') }}\ndc\nON b.contract_address = dc.address\nAND dc.name IS NOT NULL\nWHERE\n 1 = 1\n)\n\n{% if is_incremental() %},\nbroken_logs AS (\n SELECT\n block_number,\n tx_hash,\n event_index,\n contract_address,\n event_name,\n full_decoded_log,\n decoded_log,\n contract_name\n from {{ this }}\n where tx_succeeded is null or block_timestamp is null\n),\nmissing_tx_data AS (\n SELECT\n t.block_number,\n fel.block_timestamp,\n t.tx_hash,\n fel.tx_position,\n t.event_index,\n t.contract_address,\n fel.topics,\n fel.topic_0,\n fel.topic_1,\n fel.topic_2,\n fel.topic_3,\n fel.data,\n fel.event_removed,\n fel.origin_from_address,\n fel.origin_to_address,\n fel.origin_function_signature,\n fel.tx_succeeded,\n t.event_name,\n t.full_decoded_log,\n t.decoded_log,\n t.contract_name\n FROM\n broken_logs\n t\n INNER JOIN {{ ref('core__fact_event_logs') }}\n fel USING (\n block_number,\n event_index\n )\n WHERE fel.block_timestamp IS NOT NULL\n)\n{% if var('HEAL_MODEL',false) %},\nbroken_contracts as (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n event_name,\n full_decoded_log,\n decoded_log\n from {{ this }}\n where contract_name is null and modified_timestamp >= dateadd('day', -30, SYSDATE())\n),\nmissing_contract_data AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n event_name,\n full_decoded_log,\n decoded_log,\n dc.name AS contract_name\n FROM\n broken_contracts\n t\n INNER JOIN {{ ref('core__dim_contracts') }}\n dc\n ON t.contract_address = dc.address\n AND dc.name IS NOT NULL\n)\n{% endif %}\n\n{% endif %},\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n event_name,\n full_decoded_log,\n decoded_log,\n contract_name\n FROM\n new_records\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n event_name,\n full_decoded_log,\n decoded_log,\n contract_name\nFROM\n missing_tx_data\n{% if var('HEAL_MODEL',false) %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n event_name,\n full_decoded_log,\n decoded_log,\n contract_name\nFROM\n missing_contract_data\n{% endif %}\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n event_name,\n full_decoded_log,\n decoded_log,\n contract_name,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash', 'event_index']\n ) }} AS ez_decoded_event_logs_id,\n{% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n{% else %}\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS inserted_timestamp,\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS modified_timestamp\n{% endif %}\nFROM\n FINAL \n{% if is_incremental() %} \nqualify ROW_NUMBER() over (\n PARTITION BY ez_decoded_event_logs_id\n ORDER BY\n block_timestamp DESC nulls last,\n tx_succeeded DESC nulls last,\n contract_name DESC nulls last\n ) = 1\n{% endif %}\n*/\n\n\n\nWITH base AS (\n\n SELECT\n tx_hash,\n block_number,\n event_index,\n event_name,\n contract_address,\n decoded_data AS full_decoded_log,\n decoded_flat AS decoded_log\n FROM\n polygon.silver.decoded_logs\n WHERE\n 1 = 1\n\n\nAND modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '2000-01-01' :: TIMESTAMP)\n FROM\n polygon.core.ez_decoded_event_logs)\n \n),\nnew_records AS (\n SELECT\n b.block_number AS block_number,\n block_timestamp AS block_timestamp,\n b.tx_hash AS tx_hash,\n tx_position,\n b.event_index AS event_index,\n b.contract_address AS contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n event_name,\n full_decoded_log,\n decoded_log,\n NAME AS contract_name\n FROM\n base b\n LEFT JOIN polygon.core.fact_event_logs\n fel\n ON b.block_number = fel.block_number\n AND b.event_index = fel.event_index\n\n\nAND fel.inserted_timestamp > DATEADD('day', -3, SYSDATE())\n\nLEFT JOIN polygon.core.dim_contracts\ndc\nON b.contract_address = dc.address\nAND dc.name IS NOT NULL\nWHERE\n 1 = 1\n)\n\n,\nbroken_logs AS (\n SELECT\n block_number,\n tx_hash,\n event_index,\n contract_address,\n event_name,\n full_decoded_log,\n decoded_log,\n contract_name\n from polygon.core.ez_decoded_event_logs\n where tx_succeeded is null or block_timestamp is null\n),\nmissing_tx_data AS (\n SELECT\n t.block_number,\n fel.block_timestamp,\n t.tx_hash,\n fel.tx_position,\n t.event_index,\n t.contract_address,\n fel.topics,\n fel.topic_0,\n fel.topic_1,\n fel.topic_2,\n fel.topic_3,\n fel.data,\n fel.event_removed,\n fel.origin_from_address,\n fel.origin_to_address,\n fel.origin_function_signature,\n fel.tx_succeeded,\n t.event_name,\n t.full_decoded_log,\n t.decoded_log,\n t.contract_name\n FROM\n broken_logs\n t\n INNER JOIN polygon.core.fact_event_logs\n fel USING (\n block_number,\n event_index\n )\n WHERE fel.block_timestamp IS NOT NULL\n)\n\n\n,\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n event_name,\n full_decoded_log,\n decoded_log,\n contract_name\n FROM\n new_records\n\n\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n event_name,\n full_decoded_log,\n decoded_log,\n contract_name\nFROM\n missing_tx_data\n\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n event_name,\n full_decoded_log,\n decoded_log,\n contract_name,\n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(event_index as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS ez_decoded_event_logs_id,\n\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n\nFROM\n FINAL \n \nqualify ROW_NUMBER() over (\n PARTITION BY ez_decoded_event_logs_id\n ORDER BY\n block_timestamp DESC nulls last,\n tx_succeeded DESC nulls last,\n contract_name DESC nulls last\n ) = 1\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__ez_decoded_event_logs_recent": {"database": "polygon", "schema": "test_gold", "name": "test_gold__ez_decoded_event_logs_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.sql", "unique_id": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "test_gold__ez_decoded_event_logs_recent"], "alias": "ez_decoded_event_logs_recent", "checksum": {"name": "sha256", "checksum": "9b3fa250ab427f0ca327ff8a223eec723f583ce59c9ca7630ae156e80a481c39"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "decoded_logs", "recent_test", "phase_3"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "decoded_logs", "recent_test", "phase_3"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPICS": {"name": "TOPICS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPIC_0": {"name": "TOPIC_0", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPIC_1": {"name": "TOPIC_1", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPIC_2": {"name": "TOPIC_2", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPIC_3": {"name": "TOPIC_3", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DATA": {"name": "DATA", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_REMOVED": {"name": "EVENT_REMOVED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FULL_DECODED_LOG": {"name": "FULL_DECODED_LOG", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECODED_LOG": {"name": "DECODED_LOG", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_NAME": {"name": "CONTRACT_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_DECODED_EVENT_LOGS_ID": {"name": "EZ_DECODED_EVENT_LOGS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "decoded_logs", "recent_test", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.6086385, "relation_name": "polygon.test_gold.ez_decoded_event_logs_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','decoded_logs','recent_test','phase_3']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__ez_decoded_event_logs') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm._block_lookback"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.sql", "compiled": true, "compiled_code": "\n\n\n\nwith __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n) /* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"decoded_logs\",\n \"recent_test\",\n \"phase_3\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','decoded_logs','recent_test','phase_3']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__ez_decoded_event_logs') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.core.ez_decoded_event_logs\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n __dbt__cte___block_lookback\n )\n\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.fsc_evm._block_lookback", "sql": " __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__ez_decoded_event_logs_full": {"database": "polygon", "schema": "test_gold", "name": "test_gold__ez_decoded_event_logs_full", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.sql", "unique_id": "model.fsc_evm.test_gold__ez_decoded_event_logs_full", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "test_gold__ez_decoded_event_logs_full"], "alias": "ez_decoded_event_logs_full", "checksum": {"name": "sha256", "checksum": "18b46bbe399cfc28c05c759c0ff24e0d672ca0c475985d303aedbc17caff5b1f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "decoded_logs", "full_test", "phase_3"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "decoded_logs", "full_test", "phase_3"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPICS": {"name": "TOPICS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPIC_0": {"name": "TOPIC_0", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPIC_1": {"name": "TOPIC_1", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPIC_2": {"name": "TOPIC_2", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPIC_3": {"name": "TOPIC_3", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DATA": {"name": "DATA", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_REMOVED": {"name": "EVENT_REMOVED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FULL_DECODED_LOG": {"name": "FULL_DECODED_LOG", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECODED_LOG": {"name": "DECODED_LOG", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_NAME": {"name": "CONTRACT_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_DECODED_EVENT_LOGS_ID": {"name": "EZ_DECODED_EVENT_LOGS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "decoded_logs", "full_test", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.4696617, "relation_name": "polygon.test_gold.ez_decoded_event_logs_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','decoded_logs','full_test','phase_3']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__ez_decoded_event_logs') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"decoded_logs\",\n \"full_test\",\n \"phase_3\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','decoded_logs','full_test','phase_3']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__ez_decoded_event_logs') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.core.ez_decoded_event_logs\n\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__decoded_logs": {"database": "polygon", "schema": "bronze", "name": "bronze__decoded_logs", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/decoded_logs/bronze/bronze__decoded_logs.sql", "original_file_path": "models/decoder_package/decoded_logs/bronze/bronze__decoded_logs.sql", "unique_id": "model.fsc_evm.bronze__decoded_logs", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "bronze", "bronze__decoded_logs"], "alias": "decoded_logs", "checksum": {"name": "sha256", "checksum": "8c5a815965a5e3eb960d531783439b3ab2d8212b349d152c80e3c146280bc22c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "decoded_logs", "phase_3"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "decoded_logs", "phase_3"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "decoded_logs", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018305.4625502, "relation_name": "polygon.bronze.decoded_logs", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','decoded_logs','phase_3']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_decoder(\n source_name = 'decoded_logs'\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "decoded_logs"], ["bronze_streamline", "decoded_logs"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query_decoder", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.decoded_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/bronze/bronze__decoded_logs.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"decoded_logs\",\n \"phase_3\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','decoded_logs','phase_3']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_decoder(\n source_name = 'decoded_logs'\n) }}\n*/\n\n\n\n\n\n\n \n \n \n WITH meta AS (\n SELECT\n job_created_time AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 6), '_', 1) AS INTEGER) AS _partition_by_block_number,\n TO_DATE(\n concat_ws('-', SPLIT_PART(file_name, '/', 3), SPLIT_PART(file_name, '/', 4), SPLIT_PART(file_name, '/', 5))\n ) AS _partition_by_created_date\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.POLYGON.decoded_logs')\n ) A\n )\n SELECT\n block_number,\n id :: STRING AS id,\n DATA,\n metadata,\n b.file_name,\n _inserted_timestamp,\n s._partition_by_block_number AS _partition_by_block_number,\n s._partition_by_created_date AS _partition_by_created_date\n FROM\n streamline.POLYGON.decoded_logs\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b._partition_by_block_number = s._partition_by_block_number\n AND b._partition_by_created_date = s._partition_by_created_date\n WHERE\n b._partition_by_block_number = s._partition_by_block_number\n AND b._partition_by_created_date = s._partition_by_created_date\n AND s._partition_by_created_date >= DATEADD('day', -2, CURRENT_TIMESTAMP())\n AND DATA :error IS NULL\n AND DATA IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__decoded_logs_fr": {"database": "polygon", "schema": "bronze", "name": "bronze__decoded_logs_fr", "resource_type": "model", "package_name": "fsc_evm", "path": "decoder_package/decoded_logs/bronze/bronze__decoded_logs_fr.sql", "original_file_path": "models/decoder_package/decoded_logs/bronze/bronze__decoded_logs_fr.sql", "unique_id": "model.fsc_evm.bronze__decoded_logs_fr", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "bronze", "bronze__decoded_logs_fr"], "alias": "decoded_logs_fr", "checksum": {"name": "sha256", "checksum": "2a36b1d7d45af3ccc479ddc982ea3045982d83c8495204009a48c0e76c73b2d0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "decoded_logs", "phase_3"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "decoded_logs", "phase_3"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "decoded_logs", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018305.629313, "relation_name": "polygon.bronze.decoded_logs_fr", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','decoded_logs','phase_3']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_decoder_fr(\n source_name = 'decoded_logs'\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "decoded_logs"], ["bronze_streamline", "decoded_logs"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query_decoder_fr", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.decoded_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/bronze/bronze__decoded_logs_fr.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"decoded_logs\",\n \"phase_3\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','decoded_logs','phase_3']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_decoder_fr(\n source_name = 'decoded_logs'\n) }}\n*/\n\n\n\n\n\n\n \n \n \n WITH meta AS (\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 6), '_', 1) AS INTEGER) AS _partition_by_block_number,\n TO_DATE(\n concat_ws('-', SPLIT_PART(file_name, '/', 3), SPLIT_PART(file_name, '/', 4), SPLIT_PART(file_name, '/', 5))\n ) AS _partition_by_created_date\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.POLYGON.decoded_logs'\n )\n ) A\n )\nSELECT\n block_number,\n id :: STRING AS id,\n DATA,\n metadata,\n b.file_name,\n _inserted_timestamp,\n s._partition_by_block_number AS _partition_by_block_number,\n s._partition_by_created_date AS _partition_by_created_date\nFROM\n streamline.POLYGON.decoded_logs\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b._partition_by_block_number = s._partition_by_block_number\n AND b._partition_by_created_date = s._partition_by_created_date\nWHERE\n b._partition_by_block_number = s._partition_by_block_number\n AND b._partition_by_created_date = s._partition_by_created_date\n AND DATA :error IS NULL\n AND DATA IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.scores__known_event_names": {"database": "polygon", "schema": "scores", "name": "scores__known_event_names", "resource_type": "model", "package_name": "fsc_evm", "path": "scores_package/scores__known_event_names.sql", "original_file_path": "models/scores_package/scores__known_event_names.sql", "unique_id": "model.fsc_evm.scores__known_event_names", "fqn": ["fsc_evm", "scores_package", "scores__known_event_names"], "alias": "known_event_names", "checksum": {"name": "sha256", "checksum": "f20e7728001c27fd8a2b892e6415fb57b777d759c2a6a05f153d87c43b535d94"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "scores", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "scores", "phase_4"], "description": "This table contains a de-duplicated list of event names mapped to their scoring category. Sourced from curated models.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/scores_package/scores__known_event_names.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["silver", "scores", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.747986, "relation_name": "polygon.scores.known_event_names", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['silver','scores','phase_4']\n) }}\n\nselect * from {{ source('data_science_silver', 'evm_known_event_names') }}", "language": "sql", "refs": [], "sources": [["data_science_silver", "evm_known_event_names"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.fsc_evm.data_science_silver.evm_known_event_names"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.scores__scoring_activity_categories": {"database": "polygon", "schema": "scores", "name": "scores__scoring_activity_categories", "resource_type": "model", "package_name": "fsc_evm", "path": "scores_package/scores__scoring_activity_categories.sql", "original_file_path": "models/scores_package/scores__scoring_activity_categories.sql", "unique_id": "model.fsc_evm.scores__scoring_activity_categories", "fqn": ["fsc_evm", "scores_package", "scores__scoring_activity_categories"], "alias": "scoring_activity_categories", "checksum": {"name": "sha256", "checksum": "be4623bb2c8bd2fd3d958a68c1e6d862fdd837c3fb79d32cf334a9b3497c82f2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "scores", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "scores", "phase_4"], "description": "This table contains the scoring activity categories for the scores package.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/scores_package/scores__scoring_activity_categories.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["silver", "scores", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.7474096, "relation_name": "polygon.scores.scoring_activity_categories", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['silver','scores','phase_4']\n) }}\n\nselect * from {{ source('data_science_silver', 'scoring_activity_categories') }}", "language": "sql", "refs": [], "sources": [["data_science_silver", "scoring_activity_categories"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.fsc_evm.data_science_silver.scoring_activity_categories"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.scores__target_days": {"database": "polygon", "schema": "scores", "name": "scores__target_days", "resource_type": "model", "package_name": "fsc_evm", "path": "scores_package/scores__target_days.sql", "original_file_path": "models/scores_package/scores__target_days.sql", "unique_id": "model.fsc_evm.scores__target_days", "fqn": ["fsc_evm", "scores_package", "scores__target_days"], "alias": "target_days", "checksum": {"name": "sha256", "checksum": "487f17774c78c2027988a045a9e94e68642561f48728b375d7176703a6a1082f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "scores", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "scores", "phase_4"], "description": "This table contains the target days for the scores package. It is used to score events for the target days.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/scores_package/scores__target_days.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["silver", "scores", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.7485738, "relation_name": "polygon.scores.target_days", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['silver','scores','phase_4']\n) }}\n\n{% if execute %}\n {{ log(\"==========================================\", info=True) }}\n {{ log(\"Generating date spine for blockchain: \" ~ vars.GLOBAL_PROJECT_NAME, info=True) }}\n {{ log(\"Backfill mode: \" ~ vars.SCORES_FULL_RELOAD_ENABLED, info=True) }}\n {{ log(\"==========================================\", info=True) }}\n{% endif %}\n\nWITH chain_dates AS (\n SELECT\n block_timestamp :: DATE AS block_date,\n count(distinct date_trunc('hour', block_timestamp)) AS n_hours\n FROM {{ ref('core__fact_blocks') }}\n\n{% if not vars.SCORES_FULL_RELOAD_ENABLED %}\n WHERE block_timestamp :: DATE > DATEADD('day', -120, SYSDATE() :: DATE)\n{% endif %}\n GROUP BY ALL\n),\ndate_spine AS (\n\n{% if vars.SCORES_FULL_RELOAD_ENABLED %}\n SELECT\n date_day\n FROM\n {{ ref('scores__dates') }}\n WHERE\n day_of_week = 1\n AND date_day < DATEADD('day', -90, SYSDATE() :: DATE) -- every sunday, excluding last 90 days\n UNION\n{% endif %}\n\n SELECT\n date_day\n FROM\n {{ ref('scores__dates') }}\n WHERE\n date_day >= DATEADD('day', -90, SYSDATE() :: DATE)\n and date_day <= (SELECT MAX(block_date) FROM chain_dates where n_hours = 24)\n),\nday_of_chain AS (\n SELECT\n block_date,\n ROW_NUMBER() over (ORDER BY block_date ASC) AS chain_day\n FROM\n chain_dates\n),\nexclude_first_90_days AS (\n SELECT\n block_date\n FROM\n day_of_chain\n\n{% if vars.SCORES_FULL_RELOAD_ENABLED %}\n WHERE chain_day >= 90\n{% endif %}\n\n),\neligible_dates AS (\n SELECT\n block_date\n FROM\n exclude_first_90_days\n JOIN date_spine ON date_day = block_date\n)\nSELECT\n block_date\nFROM\n eligible_dates\nORDER BY block_date ASC", "language": "sql", "refs": [{"name": "core__fact_blocks", "package": null, "version": null}, {"name": "scores__dates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_blocks", "model.fsc_evm.scores__dates"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.scores__actions_daily": {"database": "polygon", "schema": "scores", "name": "scores__actions_daily", "resource_type": "model", "package_name": "fsc_evm", "path": "scores_package/scores__actions_daily.sql", "original_file_path": "models/scores_package/scores__actions_daily.sql", "unique_id": "model.fsc_evm.scores__actions_daily", "fqn": ["fsc_evm", "scores_package", "scores__actions_daily"], "alias": "actions_daily", "checksum": {"name": "sha256", "checksum": "dcd28d93a4be6d131934d1c862630234ab9b735de97a89106ba3ca11c78e140a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "scores", "phase_4"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_date", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "block_date", "version": 1}, "tags": ["silver", "scores", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "block_date", "incremental_strategy": "delete+insert", "cluster_by": "block_date", "version": 1, "tags": ["silver", "scores", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018306.5591478, "relation_name": "polygon.scores.actions_daily", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{% set include_gaming_metrics = var('INCLUDE_GAMING_METRICS', false) %}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"block_date\",\n incremental_strategy = \"delete+insert\",\n cluster_by = \"block_date\",\n version = 1,\n tags = ['silver','scores','phase_4']\n) }}\n\n {% if is_incremental() %}\n {% set max_modified_timestamp_query %}\n SELECT MAX(modified_timestamp) as max_modified_timestamp\n FROM {{ this }}\n {% endset %}\n\n {% set results = run_query(max_modified_timestamp_query) %}\n {% if execute %}\n {% set max_modified_timestamp = results.columns[0].values()[0] %}\n {% else %}\n {% set max_modified_timestamp = none %}\n {% endif %}\n {% endif %}\n \n {% if execute %} \n {{ log(\"==========================================\", info=True) }}\n {% if is_incremental() %}\n {% set new_data_check_query %}\n SELECT COUNT(1) as cnt\n FROM {{ ref('scores__actions') }}\n WHERE modified_timestamp > '{{ max_modified_timestamp }}'\n limit 1\n {% endset %}\n {% set new_data_results = run_query(new_data_check_query) %}\n {% set new_data_count = new_data_results.columns[0].values()[0] %}\n \n {% if new_data_count > 0 %}\n {{ log(\"Processing action data for blockchain: \" ~ vars.GLOBAL_PROJECT_NAME ~ \" modified after: \" ~ max_modified_timestamp, info=True) }}\n {% else %}\n {{ log(\"No new action data to aggregate daily for blockchain: \" ~ vars.GLOBAL_PROJECT_NAME, info=True) }}\n {% endif %}\n {% else %}\n {{ log(\"Aggregating daily action data for blockchain: \" ~ vars.GLOBAL_PROJECT_NAME, info=True) }}\n {% endif %}\n {{ log(\"==========================================\", info=True) }}\n {% endif %}\n\nWITH actions AS (\n\n SELECT\n block_date,\n origin_from_address,\n origin_to_address,\n INDEX,\n block_timestamp,\n block_number,\n tx_hash,\n action_type,\n action_details,\n metric_name,\n metric_rank\n FROM\n {{ ref('scores__actions') }}\n WHERE\n 1=1\n {% if is_incremental() %}\n AND modified_timestamp > '{{ max_modified_timestamp }}'\n {% endif %}\n),\nprioritized_actions AS (\n SELECT\n block_date,\n origin_from_address,\n origin_to_address,\n INDEX,\n block_timestamp,\n block_number,\n tx_hash,\n action_type,\n action_details,\n metric_name,\n metric_rank,\n CASE\n WHEN metric_name = 'n_bridge_in' THEN action_details :token_to_address :: STRING\n WHEN metric_name = 'n_cex_withdrawals' THEN action_details :token_to_address :: STRING\n WHEN metric_name = 'n_other_defi' THEN origin_from_address :: STRING\n WHEN metric_name = 'n_lp_adds' THEN origin_from_address :: STRING\n WHEN metric_name = 'n_swap_tx' THEN origin_from_address :: STRING\n WHEN metric_name = 'n_nft_mints' THEN action_details :token_to_address :: STRING\n WHEN metric_name = 'n_nft_trades' THEN origin_from_address :: STRING\n WHEN metric_name = 'n_gov_votes' THEN origin_from_address :: STRING\n WHEN metric_name = 'n_stake_tx' THEN origin_from_address :: STRING\n WHEN metric_name = 'n_restakes' THEN origin_from_address :: STRING\n {% if include_gaming_metrics %}\n WHEN metric_name = 'n_gaming_actions' THEN origin_from_address :: STRING\n {% endif %}\n END AS user_address\n FROM\n actions\n WHERE\n action_type <> 'tx' \n qualify ROW_NUMBER() over (PARTITION BY tx_hash, user_address, metric_name ORDER BY metric_rank ASC nulls last) = 1\n),\nsimple_aggs AS (\n SELECT\n block_date,\n user_address,\n SUM(IFF(metric_name = 'n_bridge_in', 1, 0)) AS n_bridge_in,\n SUM(IFF(metric_name = 'n_cex_withdrawals', 1, 0)) AS n_cex_withdrawals,\n SUM(IFF(metric_name = 'n_other_defi', 1, 0)) AS n_other_defi,\n SUM(IFF(metric_name = 'n_lp_adds', 1, 0)) AS n_lp_adds,\n SUM(IFF(metric_name = 'n_swap_tx', 1, 0)) AS n_swap_tx,\n SUM(IFF(metric_name = 'n_nft_mints', 1, 0)) AS n_nft_mints,\n SUM(IFF(metric_name = 'n_nft_trades', 1, 0)) AS n_nft_trades,\n SUM(IFF(metric_name = 'n_gov_votes', 1, 0)) AS n_gov_votes,\n SUM(IFF(metric_name = 'n_stake_tx', 1, 0)) AS n_stake_tx,\n SUM(IFF(metric_name = 'n_restakes', 1, 0)) AS n_restakes\n {% if include_gaming_metrics %}\n ,SUM(IFF(metric_name = 'n_gaming_actions', 1, 0)) AS n_gaming_actions,\n {% endif %}\n FROM\n prioritized_actions\n GROUP BY\n ALL\n),\nxfer_in AS (\n SELECT\n block_date,\n action_details :token_to_address :: STRING AS user_address,\n {% if include_gaming_metrics %}\n COUNT(IFF(l.label_type != 'games' OR l.label_type IS NULL, 1, 0)) AS n_xfer_in,\n COUNT(IFF(l.label_type = 'games', 1, 0)) AS n_gaming_xfer_in\n {% else %}\n COUNT(1) AS n_xfer_in\n {% endif %}\n FROM\n actions a\n {% if include_gaming_metrics %}\n LEFT JOIN {{ ref('core__dim_labels') }} l \n ON a.action_details:contract_address::string = l.address\n {% endif %}\n WHERE\n action_type IN (\n 'erc20_transfer',\n 'native_transfer'\n )\n GROUP BY\n ALL\n),\nxfer_out AS (\n SELECT\n block_date,\n action_details :token_from_address :: STRING AS user_address,\n {% if include_gaming_metrics %}\n COUNT(IFF(l.label_type != 'games' OR l.label_type IS NULL, 1, 0)) AS n_xfer_out,\n COUNT(IFF(l.label_type = 'games', 1, 0)) AS n_gaming_xfer_out\n {% else %}\n COUNT(1) AS n_xfer_out\n {% endif %}\n FROM\n actions a\n {% if include_gaming_metrics %}\n LEFT JOIN {{ ref('core__dim_labels') }} l \n ON a.action_details:contract_address::string = l.address\n {% endif %}\n WHERE\n action_type IN (\n 'erc20_transfer',\n 'native_transfer'\n )\n GROUP BY\n ALL\n),\nnet_token_accumulate AS (\n SELECT\n COALESCE(\n A.block_date,\n b.block_date\n ) AS block_date,\n COALESCE(\n A.user_address,\n b.user_address\n ) AS user_address,\n COALESCE(n_xfer_in / (ifnull(n_xfer_in,0) + ifnull(n_xfer_out,0)),0) AS net_token_accumulate\n {% if include_gaming_metrics %}\n ,COALESCE(n_gaming_xfer_in / NULLIF(n_gaming_xfer_in + n_gaming_xfer_out, 0), 0) AS net_gaming_token_accumulate\n {% endif %}\n FROM\n xfer_in A full\n OUTER JOIN xfer_out b\n ON A.user_address = b.user_address\n AND A.block_date = b.block_date\n),\nnft_in AS (\n SELECT\n block_date,\n action_details :token_to_address :: STRING AS user_address,\n {% if include_gaming_metrics %}\n COUNT(IFF(l.label_type != 'games' OR l.label_type IS NULL, 1, 0)) AS n_nft_in,\n COUNT(IFF(l.label_type = 'games', 1, 0)) AS n_gaming_nft_in\n {% else %}\n COUNT(1) AS n_nft_in\n {% endif %}\n FROM\n actions a\n {% if include_gaming_metrics %}\n LEFT JOIN {{ ref('core__dim_labels') }} l \n ON a.action_details:contract_address::string = l.address\n {% endif %}\n WHERE\n action_type IN (\n 'erc721_transfer',\n 'erc1155_transfer',\n 'erc1155_transfer_batch'\n )\n GROUP BY\n ALL\n),\nnft_out AS (\n SELECT\n block_date,\n action_details :token_from_address :: STRING AS user_address,\n {% if include_gaming_metrics %}\n COUNT(IFF(l.label_type != 'games' OR l.label_type IS NULL, 1, 0)) AS n_nft_out,\n COUNT(IFF(l.label_type = 'games', 1, 0)) AS n_gaming_nft_out\n {% else %}\n COUNT(1) AS n_nft_out\n {% endif %}\n FROM\n actions a\n {% if include_gaming_metrics %}\n LEFT JOIN {{ ref('core__dim_labels') }} l \n ON a.action_details:contract_address::string = l.address\n {% endif %}\n WHERE\n action_type IN (\n 'erc721_transfer',\n 'erc1155_transfer',\n 'erc1155_transfer_batch'\n )\n GROUP BY\n ALL\n),\nnet_nft_accumulate AS (\n SELECT\n COALESCE(A.block_date, b.block_date) AS block_date,\n COALESCE(A.user_address, b.user_address) AS user_address,\n COALESCE(n_nft_in / NULLIF(n_nft_in + n_nft_out, 0), 0) AS net_nft_accumulate\n {% if include_gaming_metrics %}\n ,COALESCE(n_gaming_nft_in / NULLIF(n_gaming_nft_in + n_gaming_nft_out, 0), 0) AS net_gaming_nft_accumulate\n {% endif %}\n FROM\n nft_in A \n FULL OUTER JOIN nft_out b\n ON A.user_address = b.user_address\n AND A.block_date = b.block_date\n),\nnft_collections AS (\n SELECT\n block_date,\n user_address,\n {% if include_gaming_metrics %}\n ARRAY_AGG(IFF(l.label_type != 'games' OR l.label_type IS NULL, nft_address, NULL)) AS nft_collection_addresses,\n ARRAY_AGG(IFF(l.label_type = 'games', nft_address, NULL)) AS gaming_nft_collection_addresses\n {% else %}\n ARRAY_AGG(nft_address) AS nft_collection_addresses\n {% endif %}\n FROM\n (\n SELECT\n DISTINCT block_date,\n action_details :token_from_address :: STRING AS user_address,\n action_details: contract_address :: STRING AS nft_address\n FROM\n actions\n WHERE\n action_type IN (\n 'erc721_transfer',\n 'erc1155_transfer',\n 'erc1155_transfer_batch'\n )\n UNION\n SELECT\n DISTINCT block_date,\n action_details :token_to_address :: STRING AS user_address,\n action_details: contract_address :: STRING AS nft_address\n FROM\n actions\n WHERE\n action_type IN (\n 'erc721_transfer',\n 'erc1155_transfer',\n 'erc1155_transfer_batch'\n )\n qualify row_number() over (partition by user_address, block_date order by block_date asc) <= 1000\n ) nfts\n {% if include_gaming_metrics %}\n LEFT JOIN {{ ref('core__dim_labels') }} l ON nfts.nft_address = l.address\n {% endif %}\n GROUP BY ALL\n),\nstaking_validators AS (\n SELECT\n block_date,\n origin_from_address AS user_address,\n ARRAY_AGG(\n action_details :contract_address :: STRING\n ) AS validator_addresses\n FROM\n (\n select * \n from actions\n where action_type = 'contract_interaction'\n and metric_name = 'n_stake_tx'\n qualify row_number() over (partition by origin_from_address, block_date order by block_timestamp asc) <= 1000\n )\n GROUP BY\n ALL\n),\ncomplex_txns AS (\n SELECT\n block_date,\n user_address,\n SUM(complex_tx) AS complex_tx\n FROM\n (\n SELECT\n block_date,\n origin_from_address AS user_address,\n IFF(\n action_details :complex_tx :: BOOLEAN,\n 1,\n 0\n ) AS complex_tx,\n tx_hash\n FROM\n actions\n WHERE\n action_type = 'tx'\n UNION ALL\n SELECT\n block_date,\n COALESCE(\n action_details: token_to_address :: STRING,\n origin_from_address :: STRING\n ) AS user_address,\n 1 AS complex_tx,\n tx_hash\n FROM\n actions\n WHERE\n metric_name = 'n_bridge_in'\n )\n GROUP BY\n ALL\n),\ncontract_interactions AS (\n SELECT\n block_date,\n origin_from_address AS user_address,\n ARRAY_AGG(\n origin_to_address\n ) AS contract_addresses\n FROM\n (\n select * \n from actions\n where action_type = 'tx'\n and action_details: to_address_is_contract :: BOOLEAN\n qualify row_number() over (partition by origin_from_address, block_date order by block_timestamp asc) <= 1000\n )\n GROUP BY\n ALL\n),\nactive_day AS (\n SELECT\n block_date,\n user_address,\n MAX(active_day) = 1 AS active_day,\n SUM(active_day) AS n_txn\n FROM\n (\n SELECT\n block_date,\n origin_from_address AS user_address,\n 1 AS active_day\n FROM\n actions\n WHERE\n action_type = 'tx'\n UNION ALL\n SELECT\n block_date,\n action_details: token_to_address :: STRING AS user_address,\n 1 AS active_day\n FROM\n actions\n WHERE\n metric_name = 'n_bridge_in'\n UNION ALL\n SELECT\n block_date,\n action_details: token_to_address :: STRING AS user_address,\n 1 AS active_day\n FROM\n actions\n WHERE\n metric_name = 'n_cex_withdrawals'\n )\n GROUP BY\n ALL\n)\nSELECT\n ad.block_date,\n ad.user_address,\n IFNULL(\n n_bridge_in,\n 0\n ) AS n_bridge_in,\n IFNULL(\n n_cex_withdrawals,\n 0\n ) AS n_cex_withdrawals,\n IFNULL(\n n_other_defi,\n 0\n ) AS n_other_defi,\n IFNULL(\n n_lp_adds,\n 0\n ) AS n_lp_adds,\n IFNULL(\n n_swap_tx,\n 0\n ) AS n_swap_tx,\n IFNULL(\n n_nft_mints,\n 0\n ) AS n_nft_mints,\n IFNULL(\n n_nft_trades,\n 0\n ) AS n_nft_trades,\n IFNULL(\n n_gov_votes,\n 0\n ) AS n_gov_votes,\n IFNULL(\n n_stake_tx,\n 0\n ) AS n_stake_tx,\n IFNULL(\n n_restakes,\n 0\n ) AS n_restakes,\n {% if include_gaming_metrics %}\n IFNULL(n_gaming_actions, 0) AS n_gaming_actions,\n IFNULL(net_gaming_token_accumulate, 0) AS net_gaming_token_accumulate,\n IFNULL(net_gaming_nft_accumulate, 0) AS net_gaming_nft_accumulate,\n IFNULL(gaming_nft_collection_addresses, ARRAY_CONSTRUCT()) AS gaming_nft_collection_addresses,\n {% endif %}\n IFNULL(\n net_token_accumulate,\n 0\n ) AS net_token_accumulate,\n IFNULL(net_nft_accumulate, 0) AS net_nft_accumulate,\n IFNULL(nft_collection_addresses, ARRAY_CONSTRUCT()) AS nft_collection_addresses,\n IFNULL(validator_addresses, ARRAY_CONSTRUCT()) AS validator_addresses,\n IFNULL(\n complex_tx,\n 0\n ) AS complex_tx,\n IFNULL(contract_addresses, ARRAY_CONSTRUCT()) AS contract_addresses,\n IFNULL(\n active_day,\n FALSE\n ) AS active_day,\n IFNULL(\n n_txn,\n 0\n ) AS n_txn,\n '{{ vars.GLOBAL_PROJECT_NAME }}' AS blockchain,\n {{ dbt_utils.generate_surrogate_key(\n ['ad.block_date','ad.user_address', \"'\" ~ blockchain ~ \"'\"]\n ) }} AS actions_daily_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n active_day ad\n LEFT JOIN simple_aggs sa\n ON ad.user_address = sa.user_address\n AND ad.block_date = sa.block_date\n LEFT JOIN net_token_accumulate nta\n ON ad.user_address = nta.user_address\n AND ad.block_date = nta.block_date\n LEFT JOIN nft_collections nc\n ON ad.user_address = nc.user_address\n AND ad.block_date = nc.block_date\n LEFT JOIN staking_validators sv\n ON ad.user_address = sv.user_address\n AND ad.block_date = sv.block_date\n LEFT JOIN complex_txns ct\n ON ad.user_address = ct.user_address\n AND ad.block_date = ct.block_date\n LEFT JOIN contract_interactions ci\n ON ad.user_address = ci.user_address\n AND ad.block_date = ci.block_date\n LEFT JOIN net_nft_accumulate nna\n ON ad.user_address = nna.user_address\n AND ad.block_date = nna.block_date", "language": "sql", "refs": [{"name": "scores__actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.scores__actions"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.scores__dates": {"database": "polygon", "schema": "scores", "name": "scores__dates", "resource_type": "model", "package_name": "fsc_evm", "path": "scores_package/scores__dates.sql", "original_file_path": "models/scores_package/scores__dates.sql", "unique_id": "model.fsc_evm.scores__dates", "fqn": ["fsc_evm", "scores_package", "scores__dates"], "alias": "dates", "checksum": {"name": "sha256", "checksum": "426776f655435782b92b8b175496bc28be90cdd8da5586c4cecc54103a94e8fd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "scores", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "scores", "phase_4"], "description": "Dates table for scores", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/scores_package/scores__dates.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["silver", "scores", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.7468188, "relation_name": "polygon.scores.dates", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['silver','scores','phase_4']\n) }}\n\nselect * from {{ source('data_science_silver', 'dates') }}", "language": "sql", "refs": [], "sources": [["data_science_silver", "dates"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.fsc_evm.data_science_silver.dates"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.scores__actions_agg": {"database": "polygon", "schema": "scores", "name": "scores__actions_agg", "resource_type": "model", "package_name": "fsc_evm", "path": "scores_package/scores__actions_agg.sql", "original_file_path": "models/scores_package/scores__actions_agg.sql", "unique_id": "model.fsc_evm.scores__actions_agg", "fqn": ["fsc_evm", "scores_package", "scores__actions_agg"], "alias": "actions_agg", "checksum": {"name": "sha256", "checksum": "2362ea3ffec5174d65edbb3464388a09530efb00b940bd35f88cd1ea1c57876f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "scores", "phase_4"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "score_date", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "score_date", "version": 1}, "tags": ["silver", "scores", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "score_date", "incremental_strategy": "delete+insert", "cluster_by": "score_date", "version": 1, "full_refresh": false, "tags": ["silver", "scores", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018307.0624516, "relation_name": "polygon.scores.actions_agg", "raw_code": "-- depends_on: {{ ref('scores__actions_daily') }}\n-- depends_on: {{ ref('core__dim_labels') }}\n-- depends_on: {{ ref('core__dim_contracts') }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{% set include_gaming_metrics = var('INCLUDE_GAMING_METRICS', false) %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"score_date\",\n incremental_strategy = \"delete+insert\",\n cluster_by = \"score_date\",\n version = 1,\n full_refresh = false,\n tags = ['silver','scores','phase_4']\n) }}\n\n {% set score_dates_query %}\n SELECT block_date as score_date\n FROM {{ ref('scores__target_days') }}\n \n {% if not vars.SCORES_FULL_RELOAD_ENABLED %}\n WHERE score_date > dateadd('day', -120, sysdate())\n {% endif %}\n\n {% if is_incremental() %}\n EXCEPT \n SELECT DISTINCT score_date \n FROM {{ this }}\n {% if not vars.SCORES_FULL_RELOAD_ENABLED %}\n WHERE score_date > dateadd('day', -120, sysdate())\n {% endif %}\n {% endif %}\n\n ORDER BY score_date ASC\n {% if vars.SCORES_LIMIT_DAYS %}\n LIMIT {{ vars.SCORES_LIMIT_DAYS }}\n {% endif %}\n {% endset %}\n\n {% set score_dates = run_query(score_dates_query) %}\n\n {% if execute %}\n {% set score_dates_list = score_dates.columns[0].values() %}\n {% else %}\n {% set score_dates_list = [] %}\n {% endif %}\n\n {% if execute %}\n {% if score_dates_list|length > 0 %}\n {{ log(\"==========================================\", info=True) }}\n {% if score_dates_list|length == 1 %}\n {{ log(\"Calculating action totals for blockchain: \" ~ vars.GLOBAL_PROJECT_NAME, info=True) }}\n {{ log(\"For score date: \" ~ score_dates_list[0], info=True) }}\n {% else %}\n {{ log(\"Calculating action totals for blockchain: \" ~ vars.GLOBAL_PROJECT_NAME, info=True) }}\n {{ log(\"For score dates: \" ~ score_dates_list|join(', '), info=True) }}\n {% endif %}\n {{ log(\"==========================================\", info=True) }}\n {% else %}\n {{ log(\"==========================================\", info=True) }}\n {{ log(\"No action totals to calculate for blockchain: \" ~ vars.GLOBAL_PROJECT_NAME, info=True) }}\n {{ log(\"==========================================\", info=True) }}\n {% endif %} \n {% endif %} \n\n {% if score_dates_list|length > 0 %}\n WITH combined_results AS (\n {% for score_date in score_dates_list %}\n SELECT\n user_address,\n n_complex_txn,\n n_contracts,\n n_days_active,\n n_txn,\n n_bridge_in,\n n_cex_withdrawals,\n net_token_accumulate,\n n_other_defi,\n n_lp_adds,\n n_swap_tx,\n n_nft_collections,\n n_nft_mints,\n n_nft_trades,\n n_gov_votes,\n n_stake_tx,\n n_restakes,\n n_validators,\n {% if include_gaming_metrics %}\n n_gaming_actions,\n net_gaming_token_accumulate,\n net_gaming_nft_accumulate,\n {% endif %}\n CURRENT_TIMESTAMP AS calculation_time,\n CAST('{{ score_date }}' AS DATE) AS score_date,\n '{{ vars.GLOBAL_PROJECT_NAME }}' AS blockchain,\n {{ dbt_utils.generate_surrogate_key(['user_address', \"'\" ~ blockchain ~ \"'\", \"'\" ~ score_date ~ \"'\"]) }} AS actions_agg_id,\n '{{ model.config.version }}' AS score_version,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\n FROM\n (\n SELECT\n user_address,\n SUM(n_bridge_in) AS n_bridge_in,\n SUM(n_cex_withdrawals) AS n_cex_withdrawals,\n SUM(n_other_defi) AS n_other_defi,\n SUM(n_lp_adds) AS n_lp_adds,\n SUM(n_swap_tx) AS n_swap_tx,\n SUM(n_nft_mints) AS n_nft_mints,\n SUM(n_nft_trades) AS n_nft_trades,\n SUM(n_gov_votes) AS n_gov_votes,\n SUM(n_stake_tx) AS n_stake_tx,\n SUM(n_restakes) AS n_restakes,\n SUM(net_token_accumulate) AS net_token_accumulate,\n SUM(n_txn) AS n_txn,\n SUM(IFF(active_day, 1, 0)) AS n_days_active,\n SUM(complex_tx) AS n_complex_txn,\n ARRAY_SIZE(ARRAY_COMPACT(ARRAY_DISTINCT(ARRAY_UNION_AGG(validator_addresses)))) AS n_validators,\n ARRAY_SIZE(ARRAY_COMPACT(ARRAY_DISTINCT(ARRAY_UNION_AGG(contract_addresses)))) AS n_contracts,\n ARRAY_SIZE(ARRAY_COMPACT(ARRAY_DISTINCT(ARRAY_UNION_AGG(nft_collection_addresses)))) AS n_nft_collections\n {% if include_gaming_metrics %}\n ,SUM(n_gaming_actions) AS n_gaming_actions,\n SUM(net_gaming_token_accumulate) AS net_gaming_token_accumulate,\n SUM(net_gaming_nft_accumulate) AS net_gaming_nft_accumulate\n {% endif %}\n FROM\n {{ ref('scores__actions_daily') }} a \n LEFT JOIN {{ ref('core__dim_labels') }} b\n ON a.user_address = b.address\n LEFT JOIN {{ ref('core__dim_contracts') }} c\n ON a.user_address = c.address\n WHERE\n b.address IS NULL\n AND c.address IS NULL\n AND a.block_date BETWEEN DATEADD('day', -90, '{{ score_date }}') AND '{{ score_date }}' :: DATE\n GROUP BY\n user_address\n )\n {% if not loop.last %}\n UNION ALL\n {% endif %}\n {% endfor %}\n )\n\n SELECT * FROM combined_results\n\n {% else %}\n -- Return an empty result set with the correct schema\n SELECT\n CAST(NULL AS STRING) AS user_address,\n CAST(NULL AS INTEGER) AS n_complex_txn,\n CAST(NULL AS INTEGER) AS n_contracts,\n CAST(NULL AS INTEGER) AS n_days_active,\n CAST(NULL AS INTEGER) AS n_txn,\n CAST(NULL AS INTEGER) AS n_bridge_in,\n CAST(NULL AS INTEGER) AS n_cex_withdrawals,\n CAST(NULL AS FLOAT) AS net_token_accumulate,\n CAST(NULL AS INTEGER) AS n_other_defi,\n CAST(NULL AS INTEGER) AS n_lp_adds,\n CAST(NULL AS INTEGER) AS n_swap_tx,\n CAST(NULL AS INTEGER) AS n_nft_collections,\n CAST(NULL AS INTEGER) AS n_nft_mints,\n CAST(NULL AS INTEGER) AS n_nft_trades,\n CAST(NULL AS INTEGER) AS n_gov_votes,\n CAST(NULL AS INTEGER) AS n_stake_tx,\n CAST(NULL AS INTEGER) AS n_restakes,\n CAST(NULL AS INTEGER) AS n_validators,\n {% if include_gaming_metrics %}\n CAST(NULL AS INTEGER) AS n_gaming_actions,\n CAST(NULL AS FLOAT) AS net_gaming_token_accumulate,\n CAST(NULL AS FLOAT) AS net_gaming_nft_accumulate,\n {% endif %}\n CAST(NULL AS TIMESTAMP) AS calculation_time,\n CAST(NULL AS DATE) AS score_date,\n CAST(NULL AS STRING) AS blockchain,\n CAST(NULL AS STRING) AS actions_agg_id,\n CAST(NULL AS STRING) AS score_version,\n CAST(NULL AS TIMESTAMP) AS inserted_timestamp,\n CAST(NULL AS TIMESTAMP) AS modified_timestamp,\n CAST(NULL AS STRING) AS _invocation_id\n WHERE 1 = 0\n {% endif %}", "language": "sql", "refs": [{"name": "scores__actions_daily", "package": null, "version": null}, {"name": "core__dim_labels", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "scores__target_days", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt.run_query", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.scores__actions_daily", "model.fsc_evm.core__dim_labels", "model.fsc_evm.core__dim_contracts", "model.fsc_evm.scores__target_days"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.scores__actions": {"database": "polygon", "schema": "scores", "name": "scores__actions", "resource_type": "model", "package_name": "fsc_evm", "path": "scores_package/scores__actions.sql", "original_file_path": "models/scores_package/scores__actions.sql", "unique_id": "model.fsc_evm.scores__actions", "fqn": ["fsc_evm", "scores_package", "scores__actions"], "alias": "actions", "checksum": {"name": "sha256", "checksum": "1f282f0283e02231d0b4bda60a57a15f7b10c5e1e64365e80b5b61374ad51bdf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "scores", "phase_4"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "block_date", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "block_date"}, "tags": ["silver", "scores", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "block_date", "incremental_strategy": "delete+insert", "cluster_by": "block_date", "full_refresh": false, "tags": ["silver", "scores", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018307.4042375, "relation_name": "polygon.scores.actions", "raw_code": "-- depends_on: {{ ref('scores__target_days') }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{% set include_gaming_metrics = var('INCLUDE_GAMING_METRICS', false) %}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"block_date\",\n incremental_strategy = \"delete+insert\",\n cluster_by = \"block_date\",\n full_refresh = false,\n tags = ['silver','scores','phase_4']\n) }}\n\n{% if is_incremental() %}\n {% set max_block_date_query %}\n WITH target_days AS (\n SELECT block_date \n FROM {{ ref('scores__target_days') }}\n {% if not vars.SCORES_FULL_RELOAD_ENABLED %}\n WHERE block_date > dateadd('day', -120, sysdate())\n {% endif %}\n ),\n processed_days AS (\n SELECT DISTINCT block_date\n FROM {{ this }}\n {% if not vars.SCORES_FULL_RELOAD_ENABLED %}\n WHERE block_date > dateadd('day', -120, sysdate())\n {% endif %}\n ),\n unprocessed_days AS (\n SELECT block_date\n FROM target_days\n EXCEPT\n SELECT block_date\n FROM processed_days\n )\n SELECT block_date\n FROM unprocessed_days\n {% endset %}\n\n {% set results = run_query(max_block_date_query) %}\n {% if execute %}\n {% set block_dates = results.columns[0].values() %}\n {% if block_dates|length > 0 %}\n {{ log(\"==========================================\", info=True) }}\n {{ log(\"Loading action data for blockchain: \" ~ vars.GLOBAL_PROJECT_NAME, info=True) }}\n {{ log(\"For block dates: \" ~ block_dates|join(', '), info=True) }}\n {{ log(\"==========================================\", info=True) }}\n {% else %}\n {{ log(\"==========================================\", info=True) }}\n {{ log(\"No new action data to process for blockchain: \" ~ vars.GLOBAL_PROJECT_NAME, info=True) }}\n {{ log(\"==========================================\", info=True) }}\n {% endif %}\n {% else %}\n {% set block_dates = [] %}\n {% endif %}\n {% endif %}\n\n{% if (is_incremental() and block_dates|length > 0) or (not is_incremental()) %}\n WITH txs AS (\n SELECT\n block_timestamp :: DATE AS block_date,\n from_address,\n to_address,\n input_data <> '0x'\n AND LEFT(input_data, 10) <> '0xa9059cbb' AS complex_tx,\n input_data <> '0x' AS to_address_is_contract,\n block_timestamp,\n tx_hash,\n block_number\n FROM\n {{ ref('core__fact_transactions') }} t\n\n WHERE \n tx_succeeded\n {% if is_incremental() %}\n AND t.block_timestamp::date IN ({% for date in block_dates %}{% if not loop.first %}, {% endif %}'{{ date }}'{% endfor %})\n AND 1=1\n {% else %}\n AND block_timestamp :: DATE < (SELECT MAX(block_timestamp)::DATE FROM {{ ref('core__fact_transactions') }})\n {% endif %}\n ),\n raw_logs AS (\n SELECT\n block_timestamp :: DATE AS block_date,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n topics[0] :: STRING AS event_sig,\n topics,\n data,\n block_timestamp,\n tx_hash,\n block_number\n FROM\n {{ ref('core__fact_event_logs') }} l\n JOIN txs USING (block_number, tx_hash)\n\n WHERE\n {% if is_incremental() %}\n l.block_timestamp::date IN ({% for date in block_dates %}{% if not loop.first %}, {% endif %}'{{ date }}'{% endfor %})\n AND 1=1\n {% else %}\n l.block_timestamp :: DATE < (SELECT MAX(block_timestamp)::DATE FROM {{ ref('core__fact_transactions') }})\n {% endif %}\n ),\n decoded_event_logs AS (\n SELECT\n event_index,\n contract_address,\n event_name,\n block_timestamp,\n tx_hash,\n block_number\n FROM\n {{ ref('core__ez_decoded_event_logs') }} dl\n JOIN txs USING (block_number, tx_hash)\n\n WHERE\n {% if is_incremental() %}\n dl.block_timestamp::date IN ({% for date in block_dates %}{% if not loop.first %}, {% endif %}'{{ date }}'{% endfor %})\n AND 1=1\n {% else %}\n dl.block_timestamp :: DATE < (SELECT MAX(block_timestamp)::DATE FROM {{ ref('core__fact_transactions') }})\n {% endif %}\n ),\n native_transfers AS (\n SELECT\n from_address,\n to_address,\n value,\n block_timestamp,\n tx_hash,\n block_number,\n trace_index\n FROM\n {{ ref('core__fact_traces') }} tr\n JOIN txs USING (block_number, tx_hash)\n\n WHERE\n {% if is_incremental() %}\n tr.block_timestamp::date IN ({% for date in block_dates %}{% if not loop.first %}, {% endif %}'{{ date }}'{% endfor %})\n AND 1=1\n {% else %}\n tr.block_timestamp :: DATE < (SELECT MAX(block_timestamp)::DATE FROM {{ ref('core__fact_transactions') }})\n {% endif %}\n AND value > 0\n AND trace_succeeded\n ),\n event_names AS (\n SELECT\n block_date,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_sig,\n COALESCE(d.event_name, e.event_name) AS event_name,\n event_index,\n topics,\n data,\n block_timestamp,\n tx_hash,\n block_number\n FROM\n raw_logs\n LEFT JOIN decoded_event_logs d USING (block_number, tx_hash, event_index)\n LEFT JOIN {{ ref('scores__event_sigs') }} e USING (event_sig)\n ),\n all_transfers AS (\n SELECT\n block_date,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n block_timestamp,\n block_number,\n tx_hash,\n CASE\n WHEN topics[0] :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND data = '0x'\n AND topics[3] IS NOT NULL THEN 'erc721_transfer'\n WHEN topics[0] :: STRING = '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62' THEN 'erc1155_transfer'\n WHEN topics[0] :: STRING = '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb' THEN 'erc1155_transfer_batch'\n WHEN topics[0] :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND SUBSTR(data, 3, 64) IS NOT NULL\n AND SUBSTR(topics[1], 27, 40) IS NOT NULL\n AND SUBSTR(topics[2], 27, 40) IS NOT NULL THEN 'erc20_transfer'\n ELSE NULL\n END AS transfer_type,\n IFF(\n transfer_type = 'erc20_transfer',\n TRY_TO_NUMBER(utils.udf_hex_to_int(SUBSTR(data, 3, 64))) / POW(10, COALESCE(c.decimals, 18)),\n NULL\n ) AS value,\n CASE\n WHEN transfer_type IN ('erc20_transfer', 'erc721_transfer') THEN CONCAT('0x', SUBSTR(topics[1], 27, 40)) :: STRING\n WHEN transfer_type IN ('erc1155_transfer', 'erc1155_transfer_batch') THEN CONCAT('0x', SUBSTR(topics[2] :: STRING, 27, 40))\n ELSE NULL\n END AS token_from_address,\n CASE\n WHEN transfer_type IN ('erc20_transfer', 'erc721_transfer') THEN CONCAT('0x', SUBSTR(topics[2], 27, 40)) :: STRING\n WHEN transfer_type IN ('erc1155_transfer', 'erc1155_transfer_batch') THEN CONCAT('0x', SUBSTR(topics[3] :: STRING, 27, 40))\n ELSE NULL\n END AS token_to_address,\n token_from_address = '0x0000000000000000000000000000000000000000' AS is_mint\n FROM\n event_names e\n LEFT JOIN {{ ref('core__dim_contracts') }} c ON e.contract_address = c.address\n WHERE\n transfer_type IS NOT NULL\n UNION ALL\n SELECT\n block_timestamp :: DATE AS block_date,\n txs.from_address AS origin_from_address,\n txs.to_address AS origin_to_address,\n NULL AS contract_address,\n trace_index AS event_index,\n block_timestamp,\n block_number,\n tx_hash,\n 'native_transfer' AS transfer_type,\n value,\n from_address AS token_from_address,\n to_address AS token_to_address,\n FALSE AS is_mint\n FROM\n native_transfers\n LEFT JOIN txs USING (block_number, tx_hash)\n ),\n labeled_transfers AS (\n SELECT\n t.block_date,\n t.origin_from_address,\n t.origin_to_address,\n t.contract_address,\n t.event_index,\n t.block_timestamp,\n t.block_number,\n t.tx_hash,\n t.transfer_type,\n t.value,\n t.token_from_address,\n t.token_to_address,\n t.is_mint,\n lbl_from.label_type AS from_type,\n lbl_from.label_subtype AS from_subtype,\n lbl_to.label_type AS to_type,\n lbl_to.label_subtype AS to_subtype,\n CASE\n WHEN is_mint AND transfer_type = 'erc721_transfer' THEN 'n_nft_mints'\n WHEN is_mint AND transfer_type = 'erc1155_transfer' THEN 'n_nft_mints'\n WHEN is_mint AND transfer_type = 'erc1155_transfer_batch' THEN 'n_nft_mints'\n WHEN lbl_from.label_type = 'bridge' and lbl_from.label_subtype <> 'token_contract' THEN 'n_bridge_in'\n WHEN (transfer_type = 'native_transfer' or (transfer_type = 'erc20_transfer' and am.is_verified)) \n AND from_type = 'cex' and from_subtype in ('hot_wallet', 'deposit_wallet')\n AND to_type IS NULL\n THEN 'n_cex_withdrawals'\n ELSE NULL\n END AS label_metric_name,\n metric_rank\n FROM\n all_transfers t\n LEFT JOIN {{ ref('core__dim_labels') }} lbl_from ON t.token_from_address = lbl_from.address\n LEFT JOIN {{ ref('core__dim_labels') }} lbl_to ON t.token_to_address = lbl_to.address\n LEFT JOIN {{ ref('price__ez_asset_metadata')}} am ON t.contract_address = am.token_address\n LEFT JOIN {{ ref('scores__scoring_activity_categories') }} a ON a.metric = label_metric_name\n ),\n eligible_events AS (\n SELECT\n block_date,\n origin_from_address,\n origin_to_address,\n contract_address,\n e.event_sig,\n e.event_name,\n event_index,\n block_timestamp,\n tx_hash,\n block_number,\n l.label_type,\n s.metric AS sig_metric_name,\n n.metric AS name_metric_name,\n CASE\n WHEN l.label_type = 'bridge' and l.label_subtype <> 'token_contract' THEN 'n_bridge_in'\n WHEN l.label_type = 'dex' THEN 'n_swap_tx'\n WHEN l.label_type = 'defi' THEN 'n_other_defi'\n {% if include_gaming_metrics %}\n WHEN l.label_type IN ('nft', 'token', 'games') THEN 'n_gaming_actions'\n {% endif %}\n ELSE NULL\n END AS label_metric_name,\n {% if include_gaming_metrics %}\n CASE\n WHEN l.label_type IN ('nft', 'token', 'games') THEN label_metric_name\n ELSE COALESCE(sig_metric_name, label_metric_name, name_metric_name)\n END AS metric_name_0,\n {% else %}\n COALESCE(sig_metric_name, label_metric_name, name_metric_name) AS metric_name_0,\n {% endif %}\n CASE \n WHEN wrapped_asset_address IS NOT NULL AND e.event_sig = '0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c' THEN 'n_swap_tx'\n WHEN metric_name_0 = 'n_bridge_in' THEN 'n_other_defi' -- any events labeled as bridge would be bridges out, therefore we need to label them as other_defi\n ELSE metric_name_0\n END AS metric_name,\n metric_rank\n FROM\n event_names e\n LEFT JOIN {{ ref('core__dim_labels') }} l ON contract_address = l.address\n LEFT JOIN {{ ref('scores__known_event_sigs') }} s ON s.event_sig = e.event_sig\n LEFT JOIN {{ ref('scores__known_event_names') }} n ON e.event_name ILIKE '%' || n.event_name || '%'\n LEFT JOIN {{ ref('scores__wrapped_assets') }} w ON e.contract_address = w.wrapped_asset_address AND w.blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n LEFT JOIN {{ ref('scores__scoring_activity_categories') }} a ON a.metric = metric_name\n WHERE\n e.event_sig NOT IN (\n '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', -- transfers\n '0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925', -- approvals,\n '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb', -- transfer batch\n '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62' -- transfer single\n )\n ),\n prioritized_eligible_events AS (\n SELECT\n block_date,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_sig,\n event_name,\n event_index,\n block_timestamp,\n tx_hash,\n block_number,\n label_type,\n sig_metric_name,\n name_metric_name,\n label_metric_name,\n metric_name_0,\n metric_name,\n metric_rank\n FROM\n eligible_events\n QUALIFY ROW_NUMBER() OVER (PARTITION BY tx_hash, event_index ORDER BY metric_rank ASC) = 1\n ), \n create_action_details AS (\n SELECT\n block_date,\n origin_from_address,\n origin_to_address,\n event_index AS index,\n block_timestamp,\n block_number,\n tx_hash,\n transfer_type AS action_type,\n OBJECT_CONSTRUCT(\n 'value', value,\n 'token_from_address', token_from_address,\n 'token_to_address', token_to_address,\n 'from_label_type', from_type,\n 'to_label_type', to_type,\n 'contract_address', contract_address\n ) AS action_details,\n label_metric_name AS metric_name,\n metric_rank\n FROM\n labeled_transfers\n UNION ALL\n SELECT\n block_date,\n origin_from_address,\n origin_to_address,\n event_index AS index,\n block_timestamp,\n block_number,\n tx_hash,\n 'contract_interaction' AS action_type,\n OBJECT_CONSTRUCT(\n 'event_name', event_name,\n 'event_sig', event_sig,\n 'label_type', label_type,\n 'contract_address', contract_address\n ) AS action_details,\n metric_name,\n metric_rank\n FROM\n prioritized_eligible_events\n UNION ALL\n SELECT\n block_date,\n from_address AS origin_from_address,\n to_address AS origin_to_address,\n -1 AS index,\n block_timestamp,\n block_number,\n tx_hash,\n 'tx' AS action_type,\n OBJECT_CONSTRUCT(\n 'complex_tx', complex_tx,\n 'to_address_is_contract', to_address_is_contract,\n 'label_type', NULL\n ) AS action_details,\n NULL AS metric_name,\n NULL AS metric_rank\n FROM\n txs\n )\n SELECT\n block_date,\n origin_from_address,\n origin_to_address,\n index,\n block_timestamp,\n block_number,\n tx_hash,\n action_type,\n action_details,\n metric_name,\n metric_rank,\n '{{ vars.GLOBAL_PROJECT_NAME }}' AS blockchain,\n {{ dbt_utils.generate_surrogate_key(['tx_hash', 'index', 'action_type', \"'\" ~ blockchain ~ \"'\"]) }} AS actions_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\n FROM\n create_action_details\n {% else %}\n -- Return an empty result set with the correct schema\n SELECT\n CAST(NULL AS DATE) AS block_date,\n CAST(NULL AS STRING) AS origin_from_address,\n CAST(NULL AS STRING) AS origin_to_address,\n CAST(NULL AS INTEGER) AS index,\n CAST(NULL AS TIMESTAMP) AS block_timestamp,\n CAST(NULL AS INTEGER) AS block_number,\n CAST(NULL AS STRING) AS tx_hash,\n CAST(NULL AS STRING) AS action_type,\n CAST(NULL AS OBJECT) AS action_details,\n CAST(NULL AS STRING) AS metric_name,\n CAST(NULL AS INTEGER) AS metric_rank,\n CAST(NULL AS STRING) AS blockchain,\n CAST(NULL AS STRING) AS actions_id,\n CAST(NULL AS TIMESTAMP) AS inserted_timestamp,\n CAST(NULL AS TIMESTAMP) AS modified_timestamp,\n CAST(NULL AS STRING) AS _invocation_id\n WHERE 1 = 0\n {% endif %}", "language": "sql", "refs": [{"name": "scores__target_days", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}, {"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}, {"name": "core__fact_traces", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}, {"name": "scores__event_sigs", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "core__dim_labels", "package": null, "version": null}, {"name": "core__dim_labels", "package": null, "version": null}, {"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "scores__scoring_activity_categories", "package": null, "version": null}, {"name": "core__dim_labels", "package": null, "version": null}, {"name": "scores__known_event_sigs", "package": null, "version": null}, {"name": "scores__known_event_names", "package": null, "version": null}, {"name": "scores__wrapped_assets", "package": null, "version": null}, {"name": "scores__scoring_activity_categories", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.scores__target_days", "model.fsc_evm.core__fact_transactions", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__fact_traces", "model.fsc_evm.scores__event_sigs", "model.fsc_evm.core__dim_contracts", "model.fsc_evm.core__dim_labels", "model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.scores__scoring_activity_categories", "model.fsc_evm.scores__known_event_sigs", "model.fsc_evm.scores__known_event_names", "model.fsc_evm.scores__wrapped_assets"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.scores__event_sigs": {"database": "polygon", "schema": "scores", "name": "scores__event_sigs", "resource_type": "model", "package_name": "fsc_evm", "path": "scores_package/scores__event_sigs.sql", "original_file_path": "models/scores_package/scores__event_sigs.sql", "unique_id": "model.fsc_evm.scores__event_sigs", "fqn": ["fsc_evm", "scores_package", "scores__event_sigs"], "alias": "event_sigs", "checksum": {"name": "sha256", "checksum": "aa5cb8b7750abf3302a7bce4bbdc004774fb7177cbe53b87f98290fd68143a34"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "scores", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "scores", "phase_4"], "description": "This table contains a de-duplicated list of event signatures for EVM chains from the complete_event_abis model.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/scores_package/scores__event_sigs.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["silver", "scores", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.745527, "relation_name": "polygon.scores.event_sigs", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['silver','scores','phase_4']\n) }}\n\nselect * from {{ source('data_science_silver', 'evm_event_sigs') }}", "language": "sql", "refs": [], "sources": [["data_science_silver", "evm_event_sigs"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.fsc_evm.data_science_silver.evm_event_sigs"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.scores__wrapped_assets": {"database": "polygon", "schema": "scores", "name": "scores__wrapped_assets", "resource_type": "model", "package_name": "fsc_evm", "path": "scores_package/scores__wrapped_assets.sql", "original_file_path": "models/scores_package/scores__wrapped_assets.sql", "unique_id": "model.fsc_evm.scores__wrapped_assets", "fqn": ["fsc_evm", "scores_package", "scores__wrapped_assets"], "alias": "wrapped_assets", "checksum": {"name": "sha256", "checksum": "3286b7b5e2ff0f408c6fea191c6235e543efc841944b4b810179a2cee588cc18"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "scores", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "scores", "phase_4"], "description": "This table contains a the wrapped assets for EVM chains. It is needed to correctly score deposits and withdrawals for wrapped assets.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/scores_package/scores__wrapped_assets.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["silver", "scores", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.7491398, "relation_name": "polygon.scores.wrapped_assets", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['silver','scores','phase_4']\n) }}\n\nselect * from {{ source('data_science_silver', 'evm_wrapped_assets') }}", "language": "sql", "refs": [], "sources": [["data_science_silver", "evm_wrapped_assets"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.fsc_evm.data_science_silver.evm_wrapped_assets"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.scores__known_event_sigs": {"database": "polygon", "schema": "scores", "name": "scores__known_event_sigs", "resource_type": "model", "package_name": "fsc_evm", "path": "scores_package/scores__known_event_sigs.sql", "original_file_path": "models/scores_package/scores__known_event_sigs.sql", "unique_id": "model.fsc_evm.scores__known_event_sigs", "fqn": ["fsc_evm", "scores_package", "scores__known_event_sigs"], "alias": "known_event_sigs", "checksum": {"name": "sha256", "checksum": "d3a877a2d0a27aedb3ba614b6ab752d81c58877e458d652461f28ecb925dc847"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "scores", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "scores", "phase_4"], "description": "This table contains a de-duplicated list of event signatures mapped to their scoring category. Sourced from curated models.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/scores_package/scores__known_event_sigs.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["silver", "scores", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.7462192, "relation_name": "polygon.scores.known_event_sigs", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['silver','scores','phase_4']\n) }}\n\nselect * from {{ source('data_science_silver', 'evm_known_event_sigs') }}", "language": "sql", "refs": [], "sources": [["data_science_silver", "evm_known_event_sigs"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.fsc_evm.data_science_silver.evm_known_event_sigs"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.admin__number_sequence": {"database": "polygon", "schema": "admin", "name": "admin__number_sequence", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/admin/admin__number_sequence.sql", "original_file_path": "models/main_package/admin/admin__number_sequence.sql", "unique_id": "model.fsc_evm.admin__number_sequence", "fqn": ["fsc_evm", "main_package", "admin", "admin__number_sequence"], "alias": "number_sequence", "checksum": {"name": "sha256", "checksum": "23bb981a9ab3476a99f7a0f507ced7ca8c232791b67ff973e4285056f396e688"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "admin", "phase_1"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(_id)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "round(_id,-3)"}, "tags": ["silver", "admin", "phase_1"], "description": "This model generates a sequence of numbers for a given range.\n", "columns": {"_ID": {"name": "_ID", "description": "Primary key for the table", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/admin/admin__number_sequence.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "cluster_by": "round(_id,-3)", "full_refresh": false, "tags": ["silver", "admin", "phase_1"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018437.802236, "relation_name": "polygon.admin.number_sequence", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n cluster_by = 'round(_id,-3)',\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(_id)\",\n full_refresh = false,\n tags = ['silver','admin','phase_1']\n) }}\n\nSELECT\n ROW_NUMBER() over (\n ORDER BY\n SEQ4()\n ) - 1 :: INT AS _id\nFROM\n TABLE(GENERATOR(rowcount => {{ vars.GLOBAL_MAX_SEQUENCE_NUMBER }}))\nWHERE 1=1\n{% if is_incremental() %}\n AND 1=0\n{% endif %}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__number_sequence.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": \"round(_id,-3)\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(_id)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"admin\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n cluster_by = 'round(_id,-3)',\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(_id)\",\n full_refresh = false,\n tags = ['silver','admin','phase_1']\n) }}\n\nSELECT\n ROW_NUMBER() over (\n ORDER BY\n SEQ4()\n ) - 1 :: INT AS _id\nFROM\n TABLE(GENERATOR(rowcount => {{ vars.GLOBAL_MAX_SEQUENCE_NUMBER }}))\nWHERE 1=1\n{% if is_incremental() %}\n AND 1=0\n{% endif %}\n*/\n\n\n\nSELECT\n ROW_NUMBER() over (\n ORDER BY\n SEQ4()\n ) - 1 :: INT AS _id\nFROM\n TABLE(GENERATOR(rowcount => 1000000000))\nWHERE 1=1\n\n AND 1=0\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.admin__fact_rpc_details": {"database": "polygon", "schema": "admin", "name": "admin__fact_rpc_details", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/admin/admin__fact_rpc_details.sql", "original_file_path": "models/main_package/admin/admin__fact_rpc_details.sql", "unique_id": "model.fsc_evm.admin__fact_rpc_details", "fqn": ["fsc_evm", "main_package", "admin", "admin__fact_rpc_details"], "alias": "fact_rpc_details", "checksum": {"name": "sha256", "checksum": "3386c95ae6ce827bca6bbe7a669beadafeca69d2cd2192c10f67076e8b527fe2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "admin", "rpc_settings", "phase_1"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "admin", "rpc_settings", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "table", "tags": ["silver", "admin", "rpc_settings", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018308.560009, "relation_name": "polygon.admin.fact_rpc_details", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'table',\n tags = ['silver','admin','rpc_settings','phase_1']\n) }}\n\nSELECT\n blockchain,\n receipts_by_block,\n blocks_per_hour,\n blocks_fields,\n transactions_fields,\n receipts_fields,\n traces_fields,\n inserted_at AS rpc_sampled_at\nFROM\n {{ source(\n \"fsc_evm_admin\",\n \"rpc_node_logs\"\n ) }}\nWHERE\n RESULT :error :: STRING IS NULL\n AND LOWER(blockchain) = LOWER('{{ vars.GLOBAL_PROJECT_NAME }}')\n AND LOWER(network) = LOWER('{{ vars.GLOBAL_NETWORK }}') qualify ROW_NUMBER() over (\n PARTITION BY blockchain,\n network\n ORDER BY\n rpc_sampled_at DESC\n ) = 1", "language": "sql", "refs": [], "sources": [["fsc_evm_admin", "rpc_node_logs"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.fsc_evm_admin.rpc_node_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__fact_rpc_details.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"table\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"admin\",\n \"rpc_settings\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'table',\n tags = ['silver','admin','rpc_settings','phase_1']\n) }}\n\nSELECT\n blockchain,\n receipts_by_block,\n blocks_per_hour,\n blocks_fields,\n transactions_fields,\n receipts_fields,\n traces_fields,\n inserted_at AS rpc_sampled_at\nFROM\n {{ source(\n \"fsc_evm_admin\",\n \"rpc_node_logs\"\n ) }}\nWHERE\n RESULT :error :: STRING IS NULL\n AND LOWER(blockchain) = LOWER('{{ vars.GLOBAL_PROJECT_NAME }}')\n AND LOWER(network) = LOWER('{{ vars.GLOBAL_NETWORK }}') qualify ROW_NUMBER() over (\n PARTITION BY blockchain,\n network\n ORDER BY\n rpc_sampled_at DESC\n ) = 1\n*/\n\n\n\nSELECT\n blockchain,\n receipts_by_block,\n blocks_per_hour,\n blocks_fields,\n transactions_fields,\n receipts_fields,\n traces_fields,\n inserted_at AS rpc_sampled_at\nFROM\n FSC_EVM.admin.rpc_node_logs\nWHERE\n RESULT :error :: STRING IS NULL\n AND LOWER(blockchain) = LOWER('polygon')\n AND LOWER(network) = LOWER('mainnet') qualify ROW_NUMBER() over (\n PARTITION BY blockchain,\n network\n ORDER BY\n rpc_sampled_at DESC\n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.admin__dim_variables": {"database": "polygon", "schema": "admin", "name": "admin__dim_variables", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/admin/admin__dim_variables.sql", "original_file_path": "models/main_package/admin/admin__dim_variables.sql", "unique_id": "model.fsc_evm.admin__dim_variables", "fqn": ["fsc_evm", "main_package", "admin", "admin__dim_variables"], "alias": "dim_variables", "checksum": {"name": "sha256", "checksum": "f78ba0b87609abea8fd90333fdd9026be4e54528ef646caadf71f74ffc0fb2a9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "admin", "variables", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "admin", "variables", "phase_1"], "description": "", "columns": {"KEY": {"name": "KEY", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEFAULT_VALUE": {"name": "DEFAULT_VALUE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEFAULT_TYPE": {"name": "DEFAULT_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DIM_VARIABLES_ID": {"name": "DIM_VARIABLES_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/admin/admin__dim_variables.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["silver", "admin", "variables", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.7679229, "relation_name": "polygon.admin.dim_variables", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n tags = ['silver','admin','variables','phase_1']\n) }}\n\nSELECT\n PACKAGE,\n category,\n variable_key AS key,\n default_value,\n default_type,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['variable_key']\n ) }} AS dim_variables_id\nFROM\n {{ source(\n 'fsc_evm_admin',\n '_master_keys'\n ) }}\n qualify(ROW_NUMBER() over (PARTITION BY variable_key\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [], "sources": [["fsc_evm_admin", "_master_keys"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.fsc_evm_admin._master_keys"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__dim_variables.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"admin\",\n \"variables\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n tags = ['silver','admin','variables','phase_1']\n) }}\n\nSELECT\n PACKAGE,\n category,\n variable_key AS key,\n default_value,\n default_type,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['variable_key']\n ) }} AS dim_variables_id\nFROM\n {{ source(\n 'fsc_evm_admin',\n '_master_keys'\n ) }}\n qualify(ROW_NUMBER() over (PARTITION BY variable_key\nORDER BY\n _inserted_timestamp DESC)) = 1\n*/\n\n\n\nSELECT\n PACKAGE,\n category,\n variable_key AS key,\n default_value,\n default_type,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(variable_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS dim_variables_id\nFROM\n FSC_EVM.admin._master_keys\n qualify(ROW_NUMBER() over (PARTITION BY variable_key\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.admin__fact_variables": {"database": "polygon", "schema": "admin", "name": "admin__fact_variables", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/admin/admin__fact_variables.sql", "original_file_path": "models/main_package/admin/admin__fact_variables.sql", "unique_id": "model.fsc_evm.admin__fact_variables", "fqn": ["fsc_evm", "main_package", "admin", "admin__fact_variables"], "alias": "fact_variables", "checksum": {"name": "sha256", "checksum": "0afdcbcb6a607dee38d70dcadba6f3972e3d79806ebe39acfb29e7838210e0ff"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "admin", "variables", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "admin", "variables", "phase_1"], "description": "", "columns": {"PROJECT": {"name": "PROJECT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "KEY": {"name": "KEY", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE": {"name": "VALUE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FACT_VARIABLES_ID": {"name": "FACT_VARIABLES_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/admin/admin__fact_variables.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["silver", "admin", "variables", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.7513065, "relation_name": "polygon.admin.fact_variables", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n tags = ['silver','admin','variables','phase_1']\n) }}\n\n{%- set vars_data = vars_config(all_projects=true) -%}\n{%- set project = target.database.lower() | replace('_dev', '') -%}\n\nWITH flattened_data AS (\n {% for project, project_config in vars_data.items() %}\n {% for key, value in project_config.items() %}\n {% if value is mapping %}\n {% for nested_key, nested_value in value.items() %}\n SELECT\n '{{ project }}' AS project,\n '{{ nested_key }}' AS key,\n {% if nested_value is string %}\n '{{ nested_value }}' AS VALUE,\n {% elif nested_value is iterable and nested_value is not string %}\n '{{ nested_value | tojson }}' AS VALUE,\n {% else %}\n '{{ nested_value }}' AS VALUE,\n {% endif %}\n '{{ key }}' AS parent_key\n \n {% if not loop.last %}UNION ALL{% endif %}\n {% endfor %}\n \n {% if not loop.last %}UNION ALL{% endif %}\n {% else %}\n SELECT\n '{{ project }}' AS project,\n '{{ key }}' AS key,\n {% if value is string %}\n '{{ value }}' AS VALUE,\n {% elif value is iterable and value is not string %}\n '{{ value | tojson }}' AS VALUE,\n {% else %}\n '{{ value }}' AS VALUE,\n {% endif %}\n NULL AS parent_key\n \n {% if not loop.last %}UNION ALL{% endif %}\n {% endif %}\n {% endfor %}\n \n {% if not loop.last %}UNION ALL{% endif %}\n {% endfor %}\n)\n\nSELECT\n project,\n key,\n VALUE,\n parent_key,\n {{ dbt_utils.generate_surrogate_key(\n ['project', 'key', 'parent_key']\n ) }} AS fact_variables_id\nFROM\n flattened_data\n\n{% if project != 'fsc_evm' %}\nWHERE\n project = '{{ project }}'\n{% endif %}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.vars_config", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__fact_variables.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"admin\",\n \"variables\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n tags = ['silver','admin','variables','phase_1']\n) }}\n\n{%- set vars_data = vars_config(all_projects=true) -%}\n{%- set project = target.database.lower() | replace('_dev', '') -%}\n\nWITH flattened_data AS (\n {% for project, project_config in vars_data.items() %}\n {% for key, value in project_config.items() %}\n {% if value is mapping %}\n {% for nested_key, nested_value in value.items() %}\n SELECT\n '{{ project }}' AS project,\n '{{ nested_key }}' AS key,\n {% if nested_value is string %}\n '{{ nested_value }}' AS VALUE,\n {% elif nested_value is iterable and nested_value is not string %}\n '{{ nested_value | tojson }}' AS VALUE,\n {% else %}\n '{{ nested_value }}' AS VALUE,\n {% endif %}\n '{{ key }}' AS parent_key\n \n {% if not loop.last %}UNION ALL{% endif %}\n {% endfor %}\n \n {% if not loop.last %}UNION ALL{% endif %}\n {% else %}\n SELECT\n '{{ project }}' AS project,\n '{{ key }}' AS key,\n {% if value is string %}\n '{{ value }}' AS VALUE,\n {% elif value is iterable and value is not string %}\n '{{ value | tojson }}' AS VALUE,\n {% else %}\n '{{ value }}' AS VALUE,\n {% endif %}\n NULL AS parent_key\n \n {% if not loop.last %}UNION ALL{% endif %}\n {% endif %}\n {% endfor %}\n \n {% if not loop.last %}UNION ALL{% endif %}\n {% endfor %}\n)\n\nSELECT\n project,\n key,\n VALUE,\n parent_key,\n {{ dbt_utils.generate_surrogate_key(\n ['project', 'key', 'parent_key']\n ) }} AS fact_variables_id\nFROM\n flattened_data\n\n{% if project != 'fsc_evm' %}\nWHERE\n project = '{{ project }}'\n{% endif %}\n*/\n\nWITH flattened_data AS (\n \n \n \n SELECT\n 'boba' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'boba' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'drpc' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'GLOBAL_NODE_URL' AS key,\n \n 'https://lb.drpc.org/ogrpc?network=boba-eth&dkey={KEY}' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'Vault/prod/evm/drpc' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'WETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '1800' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS' AS key,\n \n 'ethereum' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n '[\"boba network\", \"boba\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME' AS key,\n \n 'routescan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL' AS key,\n \n 'https://api.routescan.io/v2/network/mainnet/evm/288/etherscan/api?module=contract&action=getabi&address=' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON' AS key,\n \n '3,33 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'MAIN_GHA_SCHEDULED_SCORES_CRON' AS key,\n \n '25 5 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'DECODER_SL_CONTRACT_ABIS_REALTIME_PRODUCER_BATCH_SIZE' AS key,\n \n '50' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'DECODER_SL_CONTRACT_ABIS_REALTIME_WORKER_BATCH_SIZE' AS key,\n \n '50' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'MAIN_OBSERV_EXCLUSION_LIST_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"uniswap-v3\", \"sushiswap-v1\", \"sushiswap-v2\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"uniswap-v3\", \"sushiswap-v1\", \"sushiswap-v2\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'boba' AS project,\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"celer_cbridge-v1\", \"symbiosis-v1\", \"synapse-v1\", \"l2_standard_bridge-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'boba' AS project,\n 'uniswap' AS key,\n \n '{\"v3\": {\"uni_v3_pool_created\": \"0xffcd7aed9c627e82a765c3247d562239507f6f1b\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'boba' AS project,\n 'sushiswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0xc35dadb65012ec5796536bd9864ed8773abc74c4\"}, \"v2\": {\"uni_v3_pool_created\": \"0x0be808376ecb75a5cf9bb6d237d16cd37893d904\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n \n SELECT\n 'boba' AS project,\n 'celer_cbridge' AS key,\n \n '{\"v1\": {\"bridge\": \"0x841ce48f9446c8e281d3f1444cb859b4a6d0738c\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'boba' AS project,\n 'l2_standard_bridge' AS key,\n \n '{\"v1\": {\"bridge\": \"0x4200000000000000000000000000000000000010\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'boba' AS project,\n 'symbiosis' AS key,\n \n '{\"v1\": {\"bridge\": \"0xb8f275fbf7a959f4bce59999a2ef122a099e81a8\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'boba' AS project,\n 'synapse' AS key,\n \n '{\"v1\": {\"token_bridge\": \"0x432036208d2717394d2614d6697c46df3ed69540\", \"token_bridge_swap\": \"0x432036208d2717394d2614d6697c46df3ed69540\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'monad' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'monad' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'monad' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'quicknode' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'monad' AS project,\n 'GLOBAL_NODE_URL' AS key,\n \n '{URL}' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'monad' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'Vault/prod/evm/quicknode/monad/mainnet' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'monad' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0x3a704ad3e4784b935ae029171adcf57ee7988198' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'monad' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'WMON' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'monad' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'MON' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'monad' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '10000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'monad' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n 'MON' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'monad' AS project,\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS' AS key,\n \n 'monad' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'monad' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n 'monad' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'monad' AS project,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON' AS key,\n \n '24,54 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'monad' AS project,\n 'BALANCES_SL_DAILY_REALTIME_LOOKBACK_DAYS' AS key,\n \n '-2' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'monad' AS project,\n 'uniswap' AS key,\n \n '{\"v2\": {\"uni_v2_pair_created\": \"0x182a927119d56008d921126764bf884221b10f59\"}, \"v3\": {\"uni_v3_pool_created\": \"0x204faca1764b154221e35c0d20abb3c525710498\"}, \"v4\": {\"factory\": \"0x188d586ddcf52439676ca21a244753fa19f9ea8e\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'monad' AS project,\n 'pancakeswap' AS key,\n \n '{\"v2\": {\"uni_v2_pair_created\": \"0x02a84c1b3bbd7401a5f7fa98a384ebc70bb5749e\"}, \"v3\": {\"factory\": \"0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'monad' AS project,\n 'curve' AS key,\n \n '{\"v1\": {\"deployer\": [\"0x8271e06e5887fe5ba05234f5315c19f3ec90e8ad\", \"0x6e28493348446503db04a49621d8e6c9a40015fb\", \"0xe7fbd704b938cb8fe26313c3464d4b7b7348c88c\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'monad' AS project,\n 'octoswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0xce104732685b9d7b2f07a09d828f6b19786cda32\"}, \"v2\": {\"uni_v3_pool_created\": \"0x30db57a29acf3641dfc3885af2e5f1f5a408d9cb\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n \n SELECT\n 'monad' AS project,\n 'layerzero' AS key,\n \n '{\"v2\": {\"bridge\": \"0x6f475642a6e85809b1c36fa62763669b1b48dd5b\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'monad' AS project,\n 'axelar' AS key,\n \n '{\"v1\": {\"gas_service\": \"0xbe406f0189a0b4cf3a05c286473d23791dd44cc6\", \"gateway\": \"0xe432150cce91c13a887f7d836923d5597add8e31\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'monad' AS project,\n 'wormhole' AS key,\n \n '{\"v1\": {\"token_bridge\": \"0x0b2719cda2f10595369e6673cea3ee2edfa13ba7\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'monad' AS project,\n 'circle_cctp' AS key,\n \n '{\"v2\": {\"deposit\": \"0x28b5a0e9c621a5badaa536219b3a228c8168cf5d\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'monad' AS project,\n 'chainlink_ccip' AS key,\n \n '{\"v1\": {\"router\": \"0x33566fe5976aaa420f3d5c64996641fc3858cadb\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'monad' AS project,\n 'dln_debridge' AS key,\n \n '{\"v1\": {\"source\": \"0xef4fb24ad0916217251f553c0596f8edc630eb66\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'scroll' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'scroll' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'scroll' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'quicknode' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'scroll' AS project,\n 'GLOBAL_NODE_URL' AS key,\n \n '{URL}' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'scroll' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'Vault/prod/evm/quicknode/scroll/mainnet' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'scroll' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0x5300000000000000000000000000000000000004' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'scroll' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'WETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'scroll' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'scroll' AS project,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON' AS key,\n \n '12,42 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'scroll' AS project,\n 'MAIN_GHA_SCHEDULED_SCORES_CRON' AS key,\n \n '25 5 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'scroll' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '1200' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'scroll' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n '[\"ETH\", \"SCROLL\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'scroll' AS project,\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS' AS key,\n \n '[\"ethereum\", \"scroll\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'scroll' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n '[\"scroll\", \"Scroll\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'scroll' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME' AS key,\n \n 'ScrollScan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'scroll' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'scroll' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL' AS key,\n \n 'https://api.scrollscan.com/api?module=contract&action=getabi&address=' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'scroll' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH' AS key,\n \n 'Vault/prod/block_explorers/scroll_scan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'scroll' AS project,\n 'MAIN_OBSERV_EXCLUSION_LIST_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'mantle' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'mantle' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'mantle' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'quicknode' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'mantle' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'Vault/prod/mantle/quicknode/mainnet' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'mantle' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'mantle' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'WMNT' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'mantle' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'MNT' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'mantle' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '1800' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'mantle' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n '[\"ETH\", \"MNT\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'mantle' AS project,\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS' AS key,\n \n '[\"ethereum\", \"mantle\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'mantle' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n '[\"mantle\", \"Mantle\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'mantle' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME' AS key,\n \n 'MantleScan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'mantle' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'mantle' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL' AS key,\n \n 'https://api.mantlescan.xyz/api?module=contract&action=getabi&address=' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'mantle' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH' AS key,\n \n 'Vault/prod/block_explorers/mantle_scan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'mantle' AS project,\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'mantle' AS project,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON' AS key,\n \n '24,54 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'mantle' AS project,\n 'MAIN_GHA_SCHEDULED_SCORES_CRON' AS key,\n \n '5 5 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'mantle' AS project,\n 'layerzero' AS key,\n \n '{\"v2\": {\"bridge\": \"0x1a44076050125825900e736c501f859c50fe728c\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'mantle' AS project,\n 'stargate' AS key,\n \n '{\"v2\": {\"bridge\": \"0x41b491285a4f888f9f636cec8a363ab9770a0aef\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'ronin' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'tatum' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'Vault/prod/evm/tatum/ronin/mainnet' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'GLOBAL_NODE_URL' AS key,\n \n '{URL}' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0xe514d9deb7966c8be0ca922de8a064264ea6bcd4' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'WRON' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'RON' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'GLOBAL_START_BLOCK' AS key,\n \n '38633701' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '1200' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'MAIN_SL_TRANSACTIONS_PER_BLOCK' AS key,\n \n '50' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n 'RON' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n 'ronin' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME' AS key,\n \n 'RoninChain' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL' AS key,\n \n 'https://explorer-kintsugi.roninchain.com/v2/2020/contract/' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL_SUFFIX' AS key,\n \n '/abi' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'MAIN_SL_CHAINHEAD_DELAY_MINUTES' AS key,\n \n '6' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON' AS key,\n \n '19,49 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'MAIN_GHA_SCHEDULED_SCORES_CRON' AS key,\n \n '20 5 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ronin' AS project,\n 'MAIN_OBSERV_EXCLUSION_LIST_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'kaia' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'kaia' AS VALUE,\n \n NULL AS parent_key\n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'swell' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'swell' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'swell' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'drpc' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'swell' AS project,\n 'GLOBAL_NODE_URL' AS key,\n \n 'https://lb.drpc.org/ogrpc?network=swell&dkey={KEY}' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'swell' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'Vault/prod/evm/drpc' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'swell' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0x4200000000000000000000000000000000000006' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'swell' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'WETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'swell' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'swell' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '1800' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'swell' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'swell' AS project,\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS' AS key,\n \n 'ethereum' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'swell' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n 'Swell' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'swell' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME' AS key,\n \n 'SwellExplorer' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'swell' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL' AS key,\n \n 'https://explorer.swellnetwork.io/api/v2/smart-contracts/' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'swell' AS project,\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'swell' AS project,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON' AS key,\n \n '17,47 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'swell' AS project,\n 'MAIN_GHA_SCHEDULED_SCORES_CRON' AS key,\n \n '30 5 * * *' AS VALUE,\n \n NULL AS parent_key\n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'arbitrum' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'quicknode' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'Vault/prod/evm/quicknode/arbitrum/mainnet' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'GLOBAL_NODE_URL' AS key,\n \n '{URL}' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0x82af49447d8a07e3bd95bd0d56f35241523fbab1' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'WETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '14200' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS' AS key,\n \n 'ethereum' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n 'Arbitrum' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME' AS key,\n \n 'arbiscan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL' AS key,\n \n 'https://api.arbiscan.io/api?module=contract&action=getabi&address=' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH' AS key,\n \n 'Vault/prod/block_explorers/arbitrum_scan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON' AS key,\n \n '5,35 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'MAIN_GHA_SCHEDULED_SCORES_CRON' AS key,\n \n '5 5 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'MAIN_CORE_TRACES_ARB_MODE' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'MAIN_OBSERV_EXCLUSION_LIST_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"radiant-v2\", \"radiant-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"hashflow-v1\", \"gmx-v1\", \"woofi-v3\", \"woofi-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"trader_joe-v2\", \"kyberswap-v1\", \"kyberswap-v2\", \"zyberswap-v2\", \"fraxswap-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"hyperliquid-v1\", \"across-v1\", \"multichain-v7\", \"symbiosis-v1\", \"hop-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'arbitrum' AS project,\n 'uniswap' AS key,\n \n '{\"v2\": {\"uni_v2_pair_created\": \"0xf1d7cc64fb4452f05c498126312ebe29f30fbcf9\"}, \"v3\": {\"uni_v3_pool_created\": \"0x1f98431c8ad98523631ae4a59f267346ea31f984\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'sushiswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0xc35dadb65012ec5796536bd9864ed8773abc74c4\"}, \"v2\": {\"uni_v3_pool_created\": \"0x1af415a1eba07a4986a52b6f2e7de7003d82231e\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'fraxswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": [\"0x5ca135cb8527d76e932f34b5145575f9d8cbe08e\", \"0x8374a74a728f06bea6b7259c68aa7bbb732bfead\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'kyberswap' AS key,\n \n '{\"v1\": {\"dynamic\": \"0xd9bfe9979e9ca4b2fe84ba5d4cf963bbcb376974\", \"static\": \"0x1c758af0688502e49140230f6b0ebd376d429be5\"}, \"v2\": {\"elastic\": [\"0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a\", \"0xc7a590291e07b9fe9e64b86c58fd8fc764308c4a\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'dodo' AS key,\n \n '{\"v1\": {\"dodo_birth\": \"0xbcc3401e16c25eaf4d3fed632ce3288503883b1f\", \"proxy\": \"0xd5a7e197bace1f3b26e2760321d6ce06ad07281a\"}, \"v2\": {\"new_pool\": [\"0xa6cf3d163358af376ec5e8b7cc5e102a05fde63d\", \"0xddb13e6dd168e1a68dc2285cb212078ae10394a9\", \"0x7b07164ecfaf0f0d85dfc062bc205a4674c75aa0\", \"0x1506b54a1c0ea1b2f4a84866ec5776f7f6e7f0b1\", \"0x9340e3296121507318874ce9c04afb4492af0284\", \"0xc8fe2440744dcd733246a4db14093664defd5a53\", \"0xda4c4411c55b0785e501332354a036c04833b72b\"], \"proxy\": \"0x8ab2d334ce64b50be9ab04184f7ccba2a6bb6391\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'hashflow' AS key,\n \n '{\"v1\": {\"create\": [\"0xe43632337d3f9a52ffd098fe71a57cc5961c041f\", \"0x63ae536fec0b57bdeb1fd6a893191b4239f61bff\", \"0x75fb2ab4d5b0de8b1a1acdc9124887d35d459084\"]}, \"v3\": {\"create_pool\": \"0xde828fdc3f497f16416d1bb645261c7c6a62dab5\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'woofi' AS key,\n \n '{\"v1\": {\"woo_swap\": [\"0x39d361e66798155813b907a70d6c2e3fdafb0877\", \"0xc04362cf21e6285e295240e30c056511df224cf4\", \"0x86b1742a1d7c963d3e8985829d722725316abf0a\", \"0xeff23b4be1091b53205e35f3afcd9c7182bf3062\", \"0xb89a33227876aef02a7ebd594af9973aece2f521\", \"0x8693f9701d6db361fe9cc15bc455ef4366e39ae0\", \"0x1f79f8a65e02f8a137ce7f79c038cc44332df448\", \"0xed9e3f98bbed560e66b89aac922e29d4596a9642\"]}, \"v2\": {\"woo_router_swap\": [\"0xcdfd61a8303beb5c8dd2a6d02df8d228ce15b9f3\", \"0x9aed3a8896a85fe9a8cac52c9b402d092b629a30\", \"0xd2635bc7e4e4f63b2892ed80d0b0f9dff7eda899\", \"0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7\"]}, \"v3\": {\"woo_router_swap\": \"0xb130a49065178465931d4f887056328cea5d723f\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'curve' AS key,\n \n '{\"v1\": {\"deployer\": [\"0x7eeac6cddbd1d0b8af061742d41877d7f707289a\", \"0x745748bcfd8f9c2de519a71d789be8a63dd7d66c\", \"0xbabe61887f1de2713c6f97e567623453d3c79f67\", \"0xb17b674d9c5cb2e441f8e196a2f048a81355d031\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'balancer' AS key,\n \n '{\"v1\": {\"vault\": \"0xba12222222228d8ba445958a75a0704d566bf2c8\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'dexalot' AS key,\n \n '{\"v1\": {\"swap_executed\": \"0x010224949cca211fb5ddfedd28dc8bf9d2990368\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'gmx' AS key,\n \n '{\"v1\": {\"swap\": \"0x489ee077994b6658eafa855c308275ead8097c4a\"}, \"v2\": {\"swap\": \"0xc8ee91a54287db53897056e12d9819156d3822fb\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'ramses' AS key,\n \n '{\"v2\": {\"uni_v3_pool_created\": \"0xaa2cd7477c451e703f3b9ba5663334914763edf8\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'sparta' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0xfe8ec10fe07a6a6f4a2584f8cd9fe232930eaf55\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'trader_joe' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0xae4ec9901c3076d0ddbe76a520f9e90a6227acb7\"}, \"v2\": {\"lb_pair_created\": \"0x1886d09c9ade0c5db822d85d21678db67b6c2982\"}, \"v2.1\": {\"lb_pair_created\": [\"0x8e42f2f4101563bf679975178e880fd87d3efd4e\", \"0xee0616a2deaa5331e2047bc61e0b588195a49cea\", \"0x8597db3ba8de6baadeda8cba4dac653e24a0e57b\"]}, \"v2.2\": {\"lb_pair_created\": \"0xb43120c4745967fa9b93e79c149e66b0f2d6fe0c\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'camelot' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0x6eccab422d763ac031210895c81787e87b43a652\"}, \"v2\": {\"pool\": [\"0xd490f2f6990c0291597fd1247651b4e0dcf684dd\", \"0x1a3c9b1d2f0529d97f2afc5136cc23e58f1fd35b\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'maverick' AS key,\n \n '{\"v2\": {\"factory\": \"0x0a7e848aca42d879ef06507fca0e7b33a0a63c1e\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'pancakeswap' AS key,\n \n '{\"v3\": {\"factory\": \"0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'zyberswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0xac2ee06a14c52570ef3b9812ed240bce359772e7\"}, \"v2\": {\"pool\": \"0x9c2abd632771b433e5e7507bcaa41ca3b25d8544\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'CURATED_DEFI_DEX_DEXALOT_DEST_CHAIN_ID' AS key,\n \n '42161' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'arbitrum' AS project,\n 'across' AS key,\n \n '{\"v1\": {\"funds_deposited\": \"0xe35e9842fceaca96570b734083f4a58e8f7c5f2a\"}, \"v3\": {\"funds_deposited\": \"0xe35e9842fceaca96570b734083f4a58e8f7c5f2a\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'allbridge' AS key,\n \n '{\"v2\": {\"lp\": [\"0x47235cb71107cc66b12af6f8b8a9260ea38472c7\", \"0x690e66fc0f8be8964d40e55ede6aebdfcb8a21df\"], \"tokens_sent\": \"0x9ce3447b58d58e8602b7306316a5ff011b92d189\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'axelar' AS key,\n \n '{\"v1\": {\"burn\": \"0x0000000000000000000000000000000000000000\", \"gas_service\": \"0x2d5d7d31f671f86c782533cc367f14109a082712\", \"gateway\": \"0xe432150cce91c13a887f7d836923d5597add8e31\", \"squid_router\": \"0xce16f69375520ab01377ce7b88f5ba8c48f8d666\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'chainlink_ccip' AS key,\n \n '{\"v1\": {\"router\": \"0x141fa059441e0ca23ce184b6a78bafd2a517dde8\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'circle_cctp' AS key,\n \n '{\"v1\": {\"deposit\": \"0x19330d10d9cc8751218eaf51e8885d058642e08a\"}, \"v2\": {\"deposit\": \"0x28b5a0e9c621a5badaa536219b3a228c8168cf5d\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'celer_cbridge' AS key,\n \n '{\"v1\": {\"bridge\": [\"0xdd90e5e87a2081dcf0391920868ebc2ffb81a1af\", \"0x1619de6b6b20ed217a58d00f37b9d47c7663feca\"]}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'dln_debridge' AS key,\n \n '{\"v1\": {\"source\": \"0xef4fb24ad0916217251f553c0596f8edc630eb66\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'everclear' AS key,\n \n '{\"v1\": {\"bridge\": \"0xa05a3380889115bf313f1db9d5f335157be4d816\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'eywa' AS key,\n \n '{\"v2\": {\"portal\": [\"0xece9cf6a8f2768a3b8b65060925b646afeaa5167\", \"0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe\", \"0xbf0b5d561b986809924f88099c4ff0e6bcce60c9\"]}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'hyperliquid' AS key,\n \n '{\"v1\": {\"bridge\": \"0xc67e9efdb8a66a4b91b1f3731c75f500130373a4\", \"token\": \"0xff970a61a04b1ca14834a43f5de4533ebddb5cc8\"}, \"v2\": {\"bridge\": \"0x2df1c51e09aecf9cacb7bc98cb1742757f163df7\", \"token\": \"0xaf88d065e77c8cc2239327c5edb3a432268e5831\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'layerzero' AS key,\n \n '{\"v2\": {\"bridge\": \"0x1a44076050125825900e736c501f859c50fe728c\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'meson' AS key,\n \n '{\"v1\": {\"bridge\": \"0x25ab3efd52e6470681ce037cd546dc60726948d3\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'multichain' AS key,\n \n '{\"v7\": {\"router\": \"0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'stargate' AS key,\n \n '{\"v1\": {\"bridge\": \"0x352d8275aae3e0c2404d9f68f6cee084b5beb3dd\", \"factory\": \"0x55bdb4164d28fbaf0898e0ef14a589ac09ac9970\"}, \"v2\": {\"bridge\": \"0x19cfce47ed54a88614648dc3f19a5980097007dd\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'symbiosis' AS key,\n \n '{\"v1\": {\"bridge\": [\"0x0425841529882628880fbd228ac90606e0c2e09a\", \"0x01a3c8e513b758ebb011f7afaf6c37616c9c24d9\"]}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'synapse' AS key,\n \n '{\"v1\": {\"token_bridge\": \"0x6f4e8eba4d337f874ab57478acc2cb5bacdc19c9\", \"token_bridge_swap\": \"0x6f4e8eba4d337f874ab57478acc2cb5bacdc19c9\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'wormhole' AS key,\n \n '{\"v1\": {\"token_bridge\": \"0x0b2402144bb366a632d14b83f244d2e0e21bd39c\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'CURATED_DEFI_BRIDGE_HOP_BRIDGE_CONTRACT' AS key,\n \n '0x25fb92e505f752f730cad0bd4fa17ece4a384266' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'arbitrum' AS project,\n 'CURATED_DEFI_BRIDGE_HOP_TOKEN_CONTRACT' AS key,\n \n '0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'arbitrum' AS project,\n 'dforce' AS key,\n \n '{\"v1\": {\"comp_v2_origin_from_address\": [\"0x70a0d319c76b0a99be5e8cd2685219aea9406845\", \"0x655284bebcc6e1dffd098ec538750d43b57bc743\", \"0xde6d6f23aabbdc9469c8907ece7c379f98e4cb75\"]}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'compound' AS key,\n \n '{\"v3\": {\"comp_v3_origin_from_address\": [\"0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915\", \"0x2501713a67a3dedde090e42759088a7ef37d4eab\"]}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'radiant' AS key,\n \n '{\"v1\": {\"aave_version_address\": \"0x2032b9a8e9f7e76768ca9271003d3e43e1616b1f\"}, \"v2\": {\"aave_version_address\": \"0xf4b1486dd74d07706052a33d31d7c0aafd0659e1\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'aave' AS key,\n \n '{\"v3\": {\"aave_version_address\": \"0x794a61358d6845594f94dc1db02a252b5b4814ad\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'morpho' AS key,\n \n '{\"v1\": {\"morpho_blue_address\": \"0x6c247b1f6182318877311737bac0844baa518f5e\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'silo' AS key,\n \n '{\"v2\": {\"silo_factory\": \"0x4166487056a922d784b073d4d928a516b074b719\", \"silo_tokens_factory\": \"0xe067b967a36a136084eb9df0149dde64f01ea7d1\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'arbitrum' AS project,\n 'lodestar' AS key,\n \n '{\"v1\": {\"comp_v2_origin_from_address\": \"0x0f01756bc6183994d90773c8f22e3f44355ffa0e\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'ink' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'ink' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ink' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'quicknode' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ink' AS project,\n 'GLOBAL_NODE_URL' AS key,\n \n '{URL}' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ink' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'Vault/prod/evm/quicknode/ink/mainnet' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ink' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0x4200000000000000000000000000000000000006' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ink' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'WETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ink' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ink' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '3600' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ink' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ink' AS project,\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS' AS key,\n \n 'ethereum' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ink' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n 'ink' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ink' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME' AS key,\n \n 'InkOnChain' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ink' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL' AS key,\n \n 'https://explorer.inkonchain.com/api/v2/smart-contracts/' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ink' AS project,\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ink' AS project,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON' AS key,\n \n '9,39 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ink' AS project,\n 'MAIN_GHA_SCHEDULED_SCORES_CRON' AS key,\n \n '50 5 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ink' AS project,\n 'CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"morpho-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ink' AS project,\n 'CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"squidswap-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'ink' AS project,\n 'uniswap' AS key,\n \n '{\"v2\": {\"uni_v2_pair_created\": [\"0x458c5d5b75ccba22651d2c5b61cb1ea1e0b0f95d\", \"0xfe57a6ba1951f69ae2ed4abe23e0f095df500c04\"]}, \"v3\": {\"uni_v3_pool_created\": \"0x640887a9ba3a9c53ed27d0f7e8246a4f933f3424\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ink' AS project,\n 'camelot' AS key,\n \n '{\"v2\": {\"uni_v2_pair_created\": \"0x31832f2a97fd20664d76cc421207669b55ce4bc0\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ink' AS project,\n 'squidswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0x63b54dbbd2dabf89d5c536746e534711f6094199\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ink' AS project,\n 'inkswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0xbd5b41358a6601924f1fd708af1535a671f530a9\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ink' AS project,\n 'velodrome' AS key,\n \n '{\"v2\": {\"factory\": \"0x31832f2a97fd20664d76cc421207669b55ce4bc0\"}, \"v3\": {\"superchain_slipstream\": \"0x04625b046c69577efc40e6c0bb83cdbafab5a55f\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n \n SELECT\n 'ink' AS project,\n 'across' AS key,\n \n '{\"v3\": {\"funds_deposited\": \"0xef684c38f94f48775959ecf2012d7e864ffb9dd4\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ink' AS project,\n 'everclear' AS key,\n \n '{\"v1\": {\"bridge\": \"0xa05a3380889115bf313f1db9d5f335157be4d816\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ink' AS project,\n 'layerzero' AS key,\n \n '{\"v2\": {\"bridge\": \"0xca29f3a6f966cb2fc0de625f8f325c0c46dbe958\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ink' AS project,\n 'l2_standard_bridge' AS key,\n \n '{\"v1\": {\"bridge\": \"0x4200000000000000000000000000000000000010\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ink' AS project,\n 'stargate' AS key,\n \n '{\"v2\": {\"bridge\": \"0x45f1a95a4d3f3836523f5c83673c797f4d4d263b\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n \n SELECT\n 'ink' AS project,\n 'shroomy' AS key,\n \n '{\"v1\": {\"aave_version_address\": \"0x70c88e98578bc521a799de0b1c65a2b12d6f99e4\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ink' AS project,\n 'tydro' AS key,\n \n '{\"v1\": {\"aave_version_address\": \"0x2816cf15f6d2a220e789aa011d5ee4eb6c47feba\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ink' AS project,\n 'morpho' AS key,\n \n '{\"v1\": {\"morpho_blue_address\": \"0x857f3eefe8cbda3bc49367c996cd664a880d3042\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'fsc_evm' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'fsc_evm' AS VALUE,\n \n NULL AS parent_key\n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'ethereum' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'quicknode' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'Vault/prod/evm/quicknode/ethereum/mainnet' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'GLOBAL_NODE_URL' AS key,\n \n '{URL}' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'WETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '300' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS' AS key,\n \n 'ethereum' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n 'Ethereum' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME' AS key,\n \n 'etherscan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL' AS key,\n \n 'https://api.etherscan.io/api?module=contract&action=getabi&address=' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH' AS key,\n \n 'Vault/prod/ethereum/block_explorers/etherscan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON' AS key,\n \n '0,30 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'MAIN_GHA_SCHEDULED_SCORES_CRON' AS key,\n \n '40 5 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'CUSTOM_GHA_TEST_BEACON_CRON' AS key,\n \n '5 9 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'CUSTOM_GHA_STREAMLINE_READS_CRON' AS key,\n \n '40 1-23/2 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'CUSTOM_GHA_STREAMLINE_BEACON_CRON' AS key,\n \n '55 */1 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'CUSTOM_GHA_SCHEDULED_BEACON_CRON' AS key,\n \n '10 */2 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'CUSTOM_GHA_NFT_READS_CRON' AS key,\n \n '0 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'CUSTOM_GHA_NFT_LIST_CRON' AS key,\n \n '0 0,12 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'MAIN_OBSERV_EXCLUSION_LIST_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'MAIN_SL_TOKEN_READS_BRONZE_TABLE_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"silo-v1\", \"aave-v1\", \"flux-v1\", \"aave-v2\", \"aave-v2.1\", \"sturdy-v1\", \"silo-v2\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"hashflow-v1\", \"pancakeswap-v2\", \"synthetix-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"kyberswap-v2\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"ronin_axie_bridge-v1\", \"multichain-v7\", \"symbiosis-v1\", \"axie_infinity-v2\", \"across-v1\", \"near_rainbow_bridge-v1\", \"hop-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'ethereum' AS project,\n 'uniswap' AS key,\n \n '{\"v2\": {\"uni_v2_pair_created\": \"0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f\"}, \"v3\": {\"uni_v3_pool_created\": \"0x1f98431c8ad98523631ae4a59f267346ea31f984\"}, \"v4\": {\"factory\": \"0x000000000004444c5dc75cb358380d2e3de08a90\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'sushiswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0xc0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'fraxswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": [\"0xb076b06f669e682609fb4a8c6646d2619717be4b\", \"0x43ec799eadd63848443e2347c49f5f52e8fe0f6f\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'kyberswap' AS key,\n \n '{\"v1\": {\"dynamic\": \"0x833e4083b7ae46cea85695c4f7ed25cdad8886de\", \"static\": \"0x1c758af0688502e49140230f6b0ebd376d429be5\"}, \"v2\": {\"elastic\": \"0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'dodo' AS key,\n \n '{\"v1\": {\"deployer\": [\"0x5e5a7b76462e4bdf83aa98795644281bdba80b88\", \"0x17dbfa501f2f376d092fa69d3223a09bba4efdf7\"], \"dodo_birth\": [\"0xbd337924f000dceb119153d4d3b1744b22364d25\", \"0xe1b5d7a770cb1b40c859a52696e7e3dd1c57b0ba\", \"0x3a97247df274a17c59a3bd12735ea3fcdfb49950\"], \"proxy\": [\"0x91e1c84ba8786b1fae2570202f0126c0b88f6ec7\", \"0x9b64c81ba54ea51e1f6b7fefb3cff8aa6f1e2a09\", \"0xe6aafa1c45d9d0c64686c1f1d17b9fe9c7dab05b\", \"0xe55154d09265b18ac7cdac6e646672a5460389a1\"]}, \"v2\": {\"new_pool\": [\"0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8\", \"0x5336ede8f971339f6c0e304c66ba16f1296a2fbe\", \"0x6b4fa0bc61eddc928e0df9c7f01e407bfcd3e5ef\", \"0xb5dc5e183c2acf02ab879a8569ab4edaf147d537\", \"0x6fddb76c93299d985f4d3fc7ac468f9a168577a4\", \"0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13\", \"0x72d220ce168c4f361dd4dee5d826a01ad8598f6c\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'hashflow' AS key,\n \n '{\"v1\": {\"create\": [\"0x63ae536fec0b57bdeb1fd6a893191b4239f61bff\", \"0xc11a1e6fde432df9467d6d1a5454b54a63b86c8c\", \"0x596d32f9b7c1f2e73f5071c66b5e336e27d00da4\"]}, \"v3\": {\"create_pool\": \"0xde828fdc3f497f16416d1bb645261c7c6a62dab5\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'woofi' AS key,\n \n '{\"v2\": {\"woo_router_swap\": [\"0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7\", \"0x044c08639bd59beb4f6ec52c0da6cd47283534e8\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'curve' AS key,\n \n '{\"v1\": {\"deployer\": [\"0x7eeac6cddbd1d0b8af061742d41877d7f707289a\", \"0xf18056bbd320e96a48e3fbf8bc061322531aac99\", \"0xc447fcaf1def19a583f97b3620627bf69c05b5fb\", \"0xb9fc157394af804a3578134a6585c0dc9cc990d4\", \"0xfd6f33a0509ec67defc500755322abd9df1bd5b8\", \"0xbf7d65d769e82e7b862df338223263ba33f72623\", \"0xa6df4fcb1ca559155a678e9aff5de3f210c0ff84\", \"0x0959158b6040d32d04c301a72cbfd6b39e21c9ae\", \"0x745748bcfd8f9c2de519a71d789be8a63dd7d66c\", \"0x3e0139ce3533a42a7d342841aee69ab2bfee1d51\", \"0xbabe61887f1de2713c6f97e567623453d3c79f67\", \"0x7f7abe23fc1ad4884b726229ceaafb1179e9c9cf\", \"0x4f8846ae9380b90d2e71d5e3d042dff3e7ebb40d\", \"0x0c0e5f2ff0ff18a3be9b835635039256dc4b4963\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'balancer' AS key,\n \n '{\"v1\": {\"vault\": \"0xba12222222228d8ba445958a75a0704d566bf2c8\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'maverick' AS key,\n \n '{\"v1\": {\"swap\": [\"0x4faf448121bf2985b991c0261dd356a9803b3cae\", \"0xa5ebd82503c72299073657957f41b9cea6c0a43a\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'pancakeswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0x1097053fd2ea711dad45caccc45eff7548fcb362\"}, \"v2\": {\"mm_router\": \"0x9ca2a439810524250e543ba8fb6e88578af242bc\"}, \"v3\": {\"factory\": \"0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'shibaswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0x115934131916c8b277dd010ee02de363c09d037c\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'synthetix' AS key,\n \n '{\"v1\": {\"synth_exchange\": [\"0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f\", \"0xc011a72400e58ecd99ee497cf89e3775d4bd732f\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'trader_joe' AS key,\n \n '{\"v2.1\": {\"lb_pair_created\": \"0xdc8d77b69155c7e68a95a4fb0f06a71ff90b943a\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'verse' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0xee3e9e46e34a27dc755a63e2849c9913ee1a06e2\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n \n SELECT\n 'ethereum' AS project,\n 'across' AS key,\n \n '{\"v1\": {\"funds_deposited\": \"0x5c7bcd6e7de5423a257d81b442095a1a6ced35c5\"}, \"v3\": {\"funds_deposited\": \"0x5c7bcd6e7de5423a257d81b442095a1a6ced35c5\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'allbridge' AS key,\n \n '{\"v1\": {\"sent\": \"0xbbbd1bbb4f9b936c3604906d7592a644071de884\"}, \"v2\": {\"lp\": [\"0x7dbf07ad92ed4e26d5511b4f285508ebf174135d\", \"0xa7062bba94c91d565ae33b893ab5dfaf1fc57c4d\"], \"tokens_sent\": \"0x609c690e8f7d68a59885c9132e812eebdaaf0c9e\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'axelar' AS key,\n \n '{\"v1\": {\"burn\": \"0x0000000000000000000000000000000000000000\", \"gas_service\": \"0x2d5d7d31f671f86c782533cc367f14109a082712\", \"gateway\": \"0x4f4495243837681061c4743b74b3eedf548d56a5\", \"squid_router\": \"0xce16f69375520ab01377ce7b88f5ba8c48f8d666\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'chainlink_ccip' AS key,\n \n '{\"v1\": {\"router\": \"0x80226fc0ee2b096224eeac085bb9a8cba1146f7d\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'circle_cctp' AS key,\n \n '{\"v1\": {\"deposit\": \"0xbd3fa81b58ba92a82136038b25adec7066af3155\"}, \"v2\": {\"deposit\": \"0x28b5a0e9c621a5badaa536219b3a228c8168cf5d\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'celer_cbridge' AS key,\n \n '{\"v1\": {\"bridge\": \"0x5427fefa711eff984124bfbb1ab6fbf5e3da1820\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'dln_debridge' AS key,\n \n '{\"v1\": {\"source\": \"0xef4fb24ad0916217251f553c0596f8edc630eb66\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'everclear' AS key,\n \n '{\"v1\": {\"bridge\": \"0xa05a3380889115bf313f1db9d5f335157be4d816\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'eywa' AS key,\n \n '{\"v1\": {\"portal\": [\"0xece9cf6a8f2768a3b8b65060925b646afeaa5167\", \"0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe\", \"0xbf0b5d561b986809924f88099c4ff0e6bcce60c9\"]}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'layerzero' AS key,\n \n '{\"v2\": {\"bridge\": \"0x1a44076050125825900e736c501f859c50fe728c\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'meson' AS key,\n \n '{\"v1\": {\"bridge\": \"0x25ab3efd52e6470681ce037cd546dc60726948d3\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'multichain' AS key,\n \n '{\"v7\": {\"router\": [\"0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3\", \"0x93251f98acb0c83904320737aec091bce287f8f5\"]}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'stargate' AS key,\n \n '{\"v1\": {\"bridge\": \"0x296f55f8fb28e498b858d0bcda06d955b2cb3f97\", \"factory\": \"0x06d538690af257da524f25d0cd52fd85b1c2173e\"}, \"v2\": {\"bridge\": \"0x6d6620efa72948c5f68a3c8646d58c00d3f4a980\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'symbiosis' AS key,\n \n '{\"v1\": {\"bridge\": [\"0xb80fdaa74dda763a8a158ba85798d373a5e84d84\", \"0xb8f275fbf7a959f4bce59999a2ef122a099e81a8\"]}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'synapse' AS key,\n \n '{\"v1\": {\"token_bridge\": \"0x2796317b0ff8538f253012862c06787adfb8ceb6\", \"token_bridge_swap\": \"0x2796317b0ff8538f253012862c06787adfb8ceb6\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'wormhole' AS key,\n \n '{\"v1\": {\"token_bridge\": \"0x3ee18b2214aff97000d974cf647e7c347e8fa585\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'axie_infinity' AS key,\n \n '{\"v2\": {\"deposit_requested\": \"0x64192819ac13ef72bf6b5ae239ac672b43a9af08\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'CURATED_DEFI_BRIDGE_ALLBRIDGE_SOURCE_CHAIN' AS key,\n \n 'ethereum mainnet' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'ethereum' AS project,\n 'CURATED_DEFI_BRIDGE_HOP_L1_CONTRACTS' AS key,\n \n '[\"0xb8901acb165ed027e32754e0ffe830802919727f\", \"0x236fe0ffa7118505f2a1c35a039f6a219308b1a7\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'ethereum' AS project,\n 'flux' AS key,\n \n '{\"v1\": {\"comp_v2_origin_from_address\": \"0x690043fb6826f9d9381c56f43971f4f044bce3aa\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'strike' AS key,\n \n '{\"v1\": {\"comp_v2_origin_from_address\": \"0x752dfb1c709eea4621c8e95f48f3d0b6dde5d126\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'compound' AS key,\n \n '{\"v2\": {\"comp_v2_origin_from_address\": [\"0x54a37d93e57c5da659f508069cf65a381b61e189\", \"0x96fa6acfc5f683db191234c74d315e5d732b07c0\", \"0xa7ff0d561cd15ed525e31bbe0af3fe34ac2059f6\", \"0x2b384212edc04ae8bb41738d05ba20e33277bf33\", \"0x5f32db4e59165e2745496a456eaab10a03dd38be\", \"0x3cafceed09e25951c33046699d07d7761eb3ed4f\", \"0x18c8f1222083997405f2e482338a4650ac02e1d6\", \"0xfe83af639f769ead20bad76067abc120245a06a9\", \"0xa8f4514e4db0ce95e30142cc8baa5e6c921e16a5\"]}, \"v3\": {\"comp_v3_origin_from_address\": [\"0x343715fa797b8e9fe48b9efab4b54f01ca860e78\", \"0x2501713a67a3dedde090e42759088a7ef37d4eab\"]}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'fraxlend' AS key,\n \n '{\"v1\": {\"fraxlend_origin_from_address\": [\"0xcbc616d595d38483e6adc45c7e426f44bf230928\", \"0x381e2495e683868f693aa5b1414f712f21d34b40\", \"0x05fb8ec3c41da95b26fcb85503daf8b89b89a935\", \"0xf4e1d185666a624099298fcc42c50ba662dc7e52\", \"0x31562ae726afebe25417df01bedc72ef489f45b3\", \"0xdb3388e770f49a604e11f1a2084b39279492a61f\", \"0x6e74053a3798e0fc9a9775f7995316b27f21c4d2\"]}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'radiant' AS key,\n \n '{\"v2\": {\"aave_treasury\": \"0x28e395a54a64284dba39652921cd99924f4e3797\", \"aave_version_address\": \"0xa950974f64aa33f27f6c5e017eee93bf7588ed07\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'spark' AS key,\n \n '{\"v1\": {\"aave_treasury\": \"0xb137e7d16564c81ae2b0c8ee6b55de81dd46ece5\", \"aave_version_address\": \"0xc13e21b648a5ee794902342038ff3adab66be987\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'sturdy' AS key,\n \n '{\"v1\": {\"aave_treasury\": \"0xfd1d36995d76c0f75bbe4637c84c06e4a68bbb3a\", \"aave_version_address\": [\"0xa422ca380bd70eef876292839222159e41aaee17\", \"0x9f72dc67cec672bb99e3d02cbea0a21536a2b657\"]}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'aave' AS key,\n \n '{\"v1\": {\"aave_pool_addresses\": [\"0x1e70af20976b2c7e72fdc8016bcdffded12f3464\", \"0x4965f6fa20fe9728decf5165016fc338a5a85abf\", \"0xed2ebe33a237d2e2ba8bbea210616ee3d10b92db\"]}, \"v2\": {\"aave_pool_addresses\": [\"0x311bb771e4f8952e6da169b425e7e92d6ac45756\", \"0x4e1c7865e7be78a7748724fa0409e88dc14e67aa\"]}, \"v2.1\": {\"aave_pool_addresses\": \"0x23a875ede3f1030138701683e42e9b16a7f87768\"}, \"v3\": {\"aave_treasury\": \"0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c\", \"aave_version_address\": \"0x87870bca3f3fd6335c3f4ce8392d69350b4fa4e2\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'euler' AS key,\n \n '{\"v1\": {\"euler_origin_to_address\": \"0x29a56a1b8214d9cf7c5561811750d5cbdb45cc8e\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'silo' AS key,\n \n '{\"v1\": {\"silo_factory\": \"0xb7d391192080674281baab8b3083154a5f64cd0a\", \"silo_tokens_factory\": \"0x0e37df413f97fc198a84a21bc463c41b516ad622\"}, \"v2\": {\"silo_factory\": \"0x4d919cecfd4793c0d47866c8d0a02a0950737589\", \"silo_tokens_factory\": \"0x7ed1160719ab280760faa0ba26cf13139904cba5\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'ethereum' AS project,\n 'morpho' AS key,\n \n '{\"v1\": {\"morpho_blue_address\": \"0xbbbbbbbbbb9cc5e90e3b3af64bdaf62c37eeffcb\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'blast' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'blast' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'blast' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'quicknode' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'blast' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'Vault/prod/blast/quicknode/mainnet' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'blast' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0x4300000000000000000000000000000000000004' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'blast' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'WETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'blast' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'blast' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '1800' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'blast' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'blast' AS project,\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS' AS key,\n \n 'ethereum' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'blast' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n 'Blast' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'blast' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME' AS key,\n \n 'blastscan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'blast' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'blast' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL' AS key,\n \n 'https://api.blastscan.io/api?module=contract&action=getabi&address=' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'blast' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH' AS key,\n \n 'Vault/prod/block_explorers/blast_scan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'blast' AS project,\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'gnosis' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'quicknode' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'Vault/prod/evm/quicknode/gnosis/mainnet' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'GLOBAL_NODE_URL' AS key,\n \n '{URL}' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0xe91d153e0b41518a2ce8dd3d7944fa863463a97d' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'XDAI' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'XDAI' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '1200' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n '[\"XDAI\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n '[\"Gnosis\", \"Gnosis Chain\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME' AS key,\n \n 'gnosisscan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL' AS key,\n \n 'https://api.gnosisscan.io/api?module=contract&action=getabi&address=' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH' AS key,\n \n 'Vault/prod/block_explorers/gnosis_scan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON' AS key,\n \n '25,55 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'MAIN_GHA_SCHEDULED_SCORES_CRON' AS key,\n \n '45 5 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"hop-v1\", \"celer_cbridge-v1\", \"layerzero-v2\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'gnosis' AS project,\n 'curve' AS key,\n \n '{\"v1\": {\"deployer\": [\"0x7eeac6cddbd1d0b8af061742d41877d7f707289a\", \"0xcbaf0a32f5a16b326f00607421857f68fc72e508\", \"0xd25fcbb7b6021cf83122fcd65be88a045d5f961c\", \"0xd19baeadc667cf2015e395f2b08668ef120f41f5\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'gnosis' AS project,\n 'balancer' AS key,\n \n '{\"v1\": {\"vault\": \"0xba12222222228d8ba445958a75a0704d566bf2c8\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'gnosis' AS project,\n 'sushiswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0xc35dadb65012ec5796536bd9864ed8773abc74c4\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'gnosis' AS project,\n 'honeyswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0xa818b4f111ccac7aa31d0bcc0806d64f2e0737d7\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'gnosis' AS project,\n 'swapr' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0x5d48c95adffd4b40c1aaadc4e08fc44117e02179\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n \n SELECT\n 'gnosis' AS project,\n 'chainlink_ccip' AS key,\n \n '{\"v1\": {\"router\": \"0x4aad6071085df840abd9baf1697d5d5992bdadce\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'gnosis' AS project,\n 'celer_cbridge' AS key,\n \n '{\"v1\": {\"bridge\": \"0x3795c36e7d12a8c252a20c5a7b455f7c57b60283\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'gnosis' AS project,\n 'layerzero' AS key,\n \n '{\"v2\": {\"bridge\": \"0x1a44076050125825900e736c501f859c50fe728c\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'gnosis' AS project,\n 'meson' AS key,\n \n '{\"v1\": {\"bridge\": \"0x25ab3efd52e6470681ce037cd546dc60726948d3\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'gnosis' AS project,\n 'stargate' AS key,\n \n '{\"v2\": {\"bridge\": \"0xaf368c91793cb22739386dfcbbb2f1a9e4bcbebf\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'CURATED_DEFI_BRIDGE_HOP_BRIDGE_CONTRACT' AS key,\n \n '0x6f03052743cd99ce1b29265e377e320cd24eb632' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'gnosis' AS project,\n 'CURATED_DEFI_BRIDGE_HOP_TOKEN_CONTRACT' AS key,\n \n '0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'gnosis' AS project,\n 'aave' AS key,\n \n '{\"v3\": {\"aave_version_address\": \"0xb50201558b00496a145fe76f7424749556e326d8\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'gnosis' AS project,\n 'spark' AS key,\n \n '{\"v1\": {\"aave_version_address\": \"0x2dae5307c5e3fd1cf5a72cb6f698f915860607e0\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'gnosis' AS project,\n 'realt' AS key,\n \n '{\"v3\": {\"aave_version_address\": [\"0x5b8d36de471880ee21936f328aab2383a280cb2a\", \"0xfb9b496519fca8473fba1af0850b6b8f476bfdb3\"]}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'bob' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'drpc' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'GLOBAL_NODE_URL' AS key,\n \n 'https://lb.drpc.org/ogrpc?network=bob&dkey={KEY}' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'Vault/prod/evm/drpc' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0x4200000000000000000000000000000000000006' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'WETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '1800' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS' AS key,\n \n 'ethereum' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n 'bob-network' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME' AS key,\n \n 'GoBOB' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL' AS key,\n \n 'https://explorer-bob-mainnet-0.t.conduit.xyz/api/v2/smart-contracts/' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON' AS key,\n \n '21,51 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'MAIN_GHA_SCHEDULED_SCORES_CRON' AS key,\n \n '20 5 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'DECODER_SL_CONTRACT_ABIS_REALTIME_PRODUCER_BATCH_SIZE' AS key,\n \n '50' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'DECODER_SL_CONTRACT_ABIS_REALTIME_WORKER_BATCH_SIZE' AS key,\n \n '50' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bob' AS project,\n 'BALANCES_SL_START_DATE' AS key,\n \n '2024-01-01' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'bob' AS project,\n 'uniswap' AS key,\n \n '{\"v3\": {\"uni_v3_pool_created\": \"0xcb2436774c3e191c85056d248ef4260ce5f27a9d\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bob' AS project,\n 'velodrome' AS key,\n \n '{\"v2\": {\"factory\": \"0x31832f2a97fd20664d76cc421207669b55ce4bc0\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n \n SELECT\n 'bob' AS project,\n 'dln_debridge' AS key,\n \n '{\"v1\": {\"source\": \"0xef4fb24ad0916217251f553c0596f8edc630eb66\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bob' AS project,\n 'layerzero' AS key,\n \n '{\"v2\": {\"bridge\": \"0x1a44076050125825900e736c501f859c50fe728c\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bob' AS project,\n 'l2_standard_bridge' AS key,\n \n '{\"v1\": {\"bridge\": \"0x4200000000000000000000000000000000000010\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bob' AS project,\n 'meson' AS key,\n \n '{\"v1\": {\"bridge\": \"0x25ab3efd52e6470681ce037cd546dc60726948d3\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n \n SELECT\n 'bob' AS project,\n 'segment_finance' AS key,\n \n '{\"v1\": {\"comp_v2_origin_from_address\": \"0xac5694794e95ab182c363ee37f604bfd4cc14bbd\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bob' AS project,\n 'shoebill_finance' AS key,\n \n '{\"v1\": {\"comp_v2_origin_from_address\": \"0xcff0e961d0dec9dadf8587f66f158738e1366264\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bob' AS project,\n 'euler' AS key,\n \n '{\"v1\": {\"euler_origin_to_address\": \"0x046a9837a61d6b6263f54f4e27ee072ba4bdc7e4\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bob' AS project,\n 'layerbank' AS key,\n \n '{\"v1\": {\"comp_v2_origin_from_address\": \"0x561064e20290d9cb371b631a86634ae39b462279\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'polygon' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'quicknode' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'Vault/prod/evm/quicknode/polygon/mainnet' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'GLOBAL_NODE_URL' AS key,\n \n '{URL}' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'WPOL' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'POL' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '1700' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n '[\"MATIC\", \"POL\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n 'Polygon' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME' AS key,\n \n 'polygonscan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL' AS key,\n \n 'https://api.polygonscan.com/api?module=contract&action=getabi&address=' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH' AS key,\n \n 'Vault/prod/block_explorers/polygon_scan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'MAIN_SL_CHAINHEAD_DELAY_MINUTES' AS key,\n \n '10' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON' AS key,\n \n '25,55 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'MAIN_GHA_SCHEDULED_SCORES_CRON' AS key,\n \n '15 5 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'MAIN_CORE_BRONZE_TOKEN_READS_LIMIT' AS key,\n \n '30' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'MAIN_CORE_BRONZE_TOKEN_READS_BATCHED_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'MAIN_OBSERV_EXCLUSION_LIST_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"aave-v2\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"woofi-v1\", \"hashflow-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"kyberswap-v2\", \"curve-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"hop-v1\", \"multichain-v7\", \"symbiosis-v1\", \"across-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'polygon' AS project,\n 'uniswap' AS key,\n \n '{\"v2\": {\"uni_v2_pair_created\": \"0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c\"}, \"v3\": {\"uni_v3_pool_created\": \"0x1f98431c8ad98523631ae4a59f267346ea31f984\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'sushiswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0xc35dadb65012ec5796536bd9864ed8773abc74c4\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'quickswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0x5757371414417b8c6caad45baef941abc7d3ab32\"}, \"v2\": {\"pool\": \"0x411b0facc3489691f28ad58c47006af5e3ab3a28\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'fraxswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": [\"0xc2544a32872a91f4a553b404c6950e89de901fdb\", \"0x54f454d747e037da288db568d4121117eab34e79\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'kyberswap' AS key,\n \n '{\"v1\": {\"dynamic\": \"0x5f1fe642060b5b9658c15721ea22e982643c095c\", \"static\": \"0x1c758af0688502e49140230f6b0ebd376d429be5\"}, \"v2\": {\"elastic\": \"0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'dodo' AS key,\n \n '{\"v1\": {\"dodo_birth\": \"0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11\", \"proxy\": [\"0xdbfaf391c37339c903503495395ad7d6b096e192\", \"0x6c30be15d88462b788dea7c6a860a2ccaf7b2670\"]}, \"v2\": {\"new_pool\": [\"0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8\", \"0xd24153244066f0afa9415563bfc7ba248bfb7a51\", \"0x43c49f8dd240e1545f147211ec9f917376ac1e87\", \"0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'hashflow' AS key,\n \n '{\"v1\": {\"create\": [\"0x63ae536fec0b57bdeb1fd6a893191b4239f61bff\", \"0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5\", \"0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac\"]}, \"v3\": {\"create_pool\": \"0xde828fdc3f497f16416d1bb645261c7c6a62dab5\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'woofi' AS key,\n \n '{\"v1\": {\"woo_router_swap\": [\"0x9d1a92e601db0901e69bd810029f2c14bcca3128\", \"0x817eb46d60762442da3d931ff51a30334ca39b74\"], \"woo_swap\": [\"0x7081a38158bd050ae4a86e38e0225bc281887d7e\", \"0x7400b665c8f4f3a951a99f1ee9872efb8778723d\", \"0xed9e3f98bbed560e66b89aac922e29d4596a9642\"]}, \"v2\": {\"woo_router_swap\": \"0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'curve' AS key,\n \n '{\"v1\": {\"deployer\": [\"0x7eeac6cddbd1d0b8af061742d41877d7f707289a\", \"0xbabe61887f1de2713c6f97e567623453d3c79f67\", \"0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee\", \"0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'balancer' AS key,\n \n '{\"v1\": {\"vault\": \"0xba12222222228d8ba445958a75a0704d566bf2c8\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n \n SELECT\n 'polygon' AS project,\n 'across' AS key,\n \n '{\"v1\": {\"funds_deposited\": \"0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096\"}, \"v3\": {\"funds_deposited\": \"0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'allbridge' AS key,\n \n '{\"v1\": {\"sent\": \"0xbbbd1bbb4f9b936c3604906d7592a644071de884\"}, \"v2\": {\"lp\": [\"0x0394c4f17738a10096510832beab89a9dd090791\", \"0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6\", \"0x58cc621c62b0aa9babfae5651202a932279437da\"], \"tokens_sent\": \"0x7775d63836987f444e2f14aa0fa2602204d7d3e0\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'axelar' AS key,\n \n '{\"v1\": {\"burn\": \"0x0000000000000000000000000000000000000000\", \"gas_service\": \"0x2d5d7d31f671f86c782533cc367f14109a082712\", \"gateway\": \"0x6f015f16de9fc8791b234ef68d486d2bf203fba8\", \"squid_router\": \"0xce16f69375520ab01377ce7b88f5ba8c48f8d666\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'chainlink_ccip' AS key,\n \n '{\"v1\": {\"router\": \"0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'circle_cctp' AS key,\n \n '{\"v1\": {\"deposit\": \"0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe\"}, \"v2\": {\"deposit\": \"0x28b5a0e9c621a5badaa536219b3a228c8168cf5d\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'celer_cbridge' AS key,\n \n '{\"v1\": {\"bridge\": [\"0x88dcdc47d2f83a99cf0000fdf667a468bb958a78\", \"0xa251c4691c1ffd7d9b128874c023427513d8ac5c\", \"0xb5df797468e6e8f2cb293cd6e32939366e0f8733\", \"0x02745032d2aeccdc90310d6cca32cb82c7e149dd\", \"0xf5c6825015280cdfd0b56903f9f8b5a2233476f5\"]}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'dln_debridge' AS key,\n \n '{\"v1\": {\"source\": \"0xef4fb24ad0916217251f553c0596f8edc630eb66\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'everclear' AS key,\n \n '{\"v1\": {\"bridge\": \"0x7189c59e245135696bfd2906b56607755f84f3fd\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'eywa' AS key,\n \n '{\"v1\": {\"portal\": [\"0xece9cf6a8f2768a3b8b65060925b646afeaa5167\", \"0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe\", \"0xbf0b5d561b986809924f88099c4ff0e6bcce60c9\"]}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'layerzero' AS key,\n \n '{\"v2\": {\"bridge\": \"0x1a44076050125825900e736c501f859c50fe728c\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'meson' AS key,\n \n '{\"v1\": {\"bridge\": \"0x25ab3efd52e6470681ce037cd546dc60726948d3\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'multichain' AS key,\n \n '{\"v7\": {\"router\": \"0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'stargate' AS key,\n \n '{\"v1\": {\"bridge\": \"0x9d1b1669c73b033dfe47ae5a0164ab96df25b944\", \"factory\": \"0x808d7c71ad2ba3fa531b068a2417c63106bc0949\"}, \"v2\": {\"bridge\": \"0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'symbiosis' AS key,\n \n '{\"v1\": {\"bridge\": [\"0xb8f275fbf7a959f4bce59999a2ef122a099e81a8\", \"0x3338be49a5f60e2593337919f9ad7098e9a7dd7e\"]}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'synapse' AS key,\n \n '{\"v1\": {\"token_bridge\": [\"0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280\", \"0x2119a5c9279a13ec0de5e30d572b316f1cfca567\", \"0x0efc29e196da2e81afe96edd041bedcdf9e74893\", \"0x5f06745ee8a2001198a379bafbd0361475f3cfc3\", \"0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5\"], \"token_bridge_swap\": [\"0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280\", \"0x0efc29e196da2e81afe96edd041bedcdf9e74893\"]}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'wormhole' AS key,\n \n '{\"v1\": {\"token_bridge\": \"0x5a58505a96d1dbf8df91cb21b54419fc36e93fde\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'CURATED_DEFI_BRIDGE_ALLBRIDGE_SOURCE_CHAIN' AS key,\n \n 'polygon mainnet' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'CURATED_DEFI_BRIDGE_HOP_BRIDGE_CONTRACT' AS key,\n \n '0x58c61aee5ed3d748a1467085ed2650b697a66234' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'polygon' AS project,\n 'CURATED_DEFI_BRIDGE_HOP_TOKEN_CONTRACT' AS key,\n \n '0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'polygon' AS project,\n 'compound' AS key,\n \n '{\"v3\": {\"comp_v3_origin_from_address\": [\"0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915\", \"0x2501713a67a3dedde090e42759088a7ef37d4eab\"]}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'aave' AS key,\n \n '{\"v2\": {\"aave_treasury\": \"0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c\", \"aave_version_address\": \"0x8dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf\"}, \"v3\": {\"aave_treasury\": \"0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c\", \"aave_version_address\": \"0x794a61358d6845594f94dc1db02a252b5b4814ad\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'polygon' AS project,\n 'morpho' AS key,\n \n '{\"v1\": {\"morpho_blue_address\": \"0x1bf0c2541f820e775182832f06c0b7fc27a25f67\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'somnia' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'flipside' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'GLOBAL_NODE_URL' AS key,\n \n '{URL}' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'vault/prod/evm/flipside/somnia/mainnet' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0x046ede9564a72571df6f5e44d0405360c0f4dcab' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'WSOMI' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'SOMI' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '36000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_PRODUCER_BATCH_SIZE' AS key,\n \n '36000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_WORKER_BATCH_SIZE' AS key,\n \n '360' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_ASYNC_CONCURRENT_REQUESTS' AS key,\n \n '25' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_PRODUCER_BATCH_SIZE' AS key,\n \n '36000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_WORKER_BATCH_SIZE' AS key,\n \n '360' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_ASYNC_CONCURRENT_REQUESTS' AS key,\n \n '25' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_RECEIPTS_REALTIME_PRODUCER_BATCH_SIZE' AS key,\n \n '36000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_RECEIPTS_REALTIME_WORKER_BATCH_SIZE' AS key,\n \n '360' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_RECEIPTS_REALTIME_ASYNC_CONCURRENT_REQUESTS' AS key,\n \n '25' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_RECEIPTS_HISTORY_PRODUCER_BATCH_SIZE' AS key,\n \n '36000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_RECEIPTS_HISTORY_WORKER_BATCH_SIZE' AS key,\n \n '360' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_RECEIPTS_HISTORY_ASYNC_CONCURRENT_REQUESTS' AS key,\n \n '25' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_TRACES_REALTIME_PRODUCER_BATCH_SIZE' AS key,\n \n '36000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_TRACES_REALTIME_WORKER_BATCH_SIZE' AS key,\n \n '360' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_TRACES_REALTIME_ASYNC_CONCURRENT_REQUESTS' AS key,\n \n '25' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_TRACES_HISTORY_PRODUCER_BATCH_SIZE' AS key,\n \n '36000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_TRACES_HISTORY_WORKER_BATCH_SIZE' AS key,\n \n '360' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_TRACES_HISTORY_ASYNC_CONCURRENT_REQUESTS' AS key,\n \n '25' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_CONFIRM_BLOCKS_REALTIME_PRODUCER_BATCH_SIZE' AS key,\n \n '36000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_CONFIRM_BLOCKS_REALTIME_WORKER_BATCH_SIZE' AS key,\n \n '360' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_CONFIRM_BLOCKS_REALTIME_ASYNC_CONCURRENT_REQUESTS' AS key,\n \n '25' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_CONFIRM_BLOCKS_HISTORY_PRODUCER_BATCH_SIZE' AS key,\n \n '36000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_CONFIRM_BLOCKS_HISTORY_WORKER_BATCH_SIZE' AS key,\n \n '360' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_SL_CONFIRM_BLOCKS_HISTORY_ASYNC_CONCURRENT_REQUESTS' AS key,\n \n '25' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n 'SOMI' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS' AS key,\n \n 'somnia' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n 'somnia' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME' AS key,\n \n 'somnia' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL' AS key,\n \n 'https://mainnet.somnia.w3us.site/api/v2/smart-contracts/' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON' AS key,\n \n '9,39 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'somnia' AS project,\n 'MAIN_GHA_SCHEDULED_SCORES_CRON' AS key,\n \n '50 5 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'somnia' AS project,\n 'quickswap' AS key,\n \n '{\"v4\": {\"pool\": \"0x0ccff3d02a3a200263ec4e0fdb5e60a56721b8ae\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'somnia' AS project,\n 'somnex' AS key,\n \n '{\"v2\": {\"uni_v2_pair_created\": \"0xafd71143fb155058e96527b07695d93223747ed1\"}, \"v3\": {\"uni_v3_pool_created\": \"0xdd594374a0fa18cd074ed61288f392ed1ccbaffd\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'somnia' AS project,\n 'somnia_exchange' AS key,\n \n '{\"v2\": {\"uni_v2_pair_created\": \"0x6c4853c97b981aa848c2b56f160a73a46b5dccd4\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n \n SELECT\n 'somnia' AS project,\n 'layerzero' AS key,\n \n '{\"v2\": {\"bridge\": \"0x6f475642a6e85809b1c36fa62763669b1b48dd5b\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'somnia' AS project,\n 'stargate' AS key,\n \n '{\"v2\": {\"bridge\": \"0x78add880a697070c1e765ac44d65323a0dcce913\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'avalanche' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'quicknode' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'Vault/prod/evm/quicknode/avalanche/mainnet' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'GLOBAL_NODE_URL' AS key,\n \n '{URL}' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'WAVAX' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'AVAX' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '1800' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n 'AVAX' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n '[\"Avalanche\", \"Avalanche C-Chain\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME' AS key,\n \n 'snowtrace' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL' AS key,\n \n 'https://api.routescan.io/v2/network/mainnet/evm/43114/etherscan/api?module=contract&action=getabi&address=' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'DECODER_SL_CONTRACT_ABIS_REALTIME_PRODUCER_BATCH_SIZE' AS key,\n \n '50' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'DECODER_SL_CONTRACT_ABIS_REALTIME_WORKER_BATCH_SIZE' AS key,\n \n '50' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON' AS key,\n \n '10,40 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'MAIN_GHA_SCHEDULED_SCORES_CRON' AS key,\n \n '10 5 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'CUSTOM_GHA_STREAMLINE_DEXALOT_CHAINHEAD_CRON' AS key,\n \n '50 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'CUSTOM_GHA_SCHEDULED_DEXALOT_MAIN_CRON' AS key,\n \n '5 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"aave-v2\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"gmx-v1\", \"hashflow-v1\", \"woofi-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"pharaoh-v1\", \"kyberswap-v2\", \"curve-v1\", \"uniswap-v2\", \"kyberswap-v1\", \"fraxswap-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"symbiosis-v1\", \"multichain-v7\", \"allbridge-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'avalanche' AS project,\n 'arena_trade' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0xf16784dcaf838a3e16bef7711a62d12413c39bd1\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'curve' AS key,\n \n '{\"v1\": {\"deployer\": [\"0x7eeac6cddbd1d0b8af061742d41877d7f707289a\", \"0x745748bcfd8f9c2de519a71d789be8a63dd7d66c\", \"0xbabe61887f1de2713c6f97e567623453d3c79f67\", \"0xb17b674d9c5cb2e441f8e196a2f048a81355d031\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'balancer' AS key,\n \n '{\"v1\": {\"vault\": \"0xba12222222228d8ba445958a75a0704d566bf2c8\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'dexalot' AS key,\n \n '{\"v1\": {\"swap_executed\": \"0xeed3c159f3a96ab8d41c8b9ca49ee1e5071a7cdd\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'fraxswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": [\"0x5ca135cb8527d76e932f34b5145575f9d8cbe08e\", \"0xf77ca9b635898980fb219b4f4605c50e4ba58aff\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'hashflow' AS key,\n \n '{\"v1\": {\"create\": [\"0x05fb0089bec6d00b2f01f4096eb0e0488c79cd91\", \"0x7677bf119654d1fbcb46cb9014949bf16180b6ae\"]}, \"v3\": {\"create_pool\": \"0xde828fdc3f497f16416d1bb645261c7c6a62dab5\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'kyberswap' AS key,\n \n '{\"v1\": {\"dynamic\": \"0x10908c875d865c66f271f5d3949848971c9595c9\", \"static\": \"0x1c758af0688502e49140230f6b0ebd376d429be5\"}, \"v2\": {\"elastic\": \"0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'sushiswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0xc35dadb65012ec5796536bd9864ed8773abc74c4\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'uniswap' AS key,\n \n '{\"v2\": {\"uni_v2_pair_created\": \"0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c\"}, \"v3\": {\"uni_v3_pool_created\": \"0x740b1c1de25031c31ff4fc9a62f554a55cdc1bad\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'woofi' AS key,\n \n '{\"v1\": {\"woo_router_swap\": \"0x5aa6a4e96a9129562e2fc06660d07feddaaf7854\", \"woo_swap\": [\"0xf8ce0d043891b62c55380fb1efbfb4f186153d96\", \"0x1df3009c57a8b143c6246149f00b090bce3b8f88\", \"0x3b3e4b4741e91af52d0e9ad8660573e951c88524\", \"0xed9e3f98bbed560e66b89aac922e29d4596a9642\"]}, \"v2\": {\"woo_router_swap\": [\"0xc22fbb3133df781e6c25ea6acebe2d2bb8cea2f9\", \"0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'pangolin' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0xefa94de7a4656d787667c749f7e1223d71e9fd88\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'gmx' AS key,\n \n '{\"v1\": {\"swap\": \"0x9ab2de34a33fb459b538c43f251eb825645e8595\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'pharaoh' AS key,\n \n '{\"v1\": {\"swap\": \"0xaaa16c016bf556fcd620328f0759252e29b1ab57\"}, \"v2\": {\"uni_v3_pool_created\": \"0xaaa32926fce6be95ea2c51cb4fcb60836d320c42\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'platypus' AS key,\n \n '{\"v1\": {\"deployer\": \"0x416a7989a964c9ed60257b064efc3a30fe6bf2ee\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'trader_joe' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0x9ad6c38be94206ca50bb0d90783181662f0cfa10\"}, \"v2\": {\"lb_pair_created\": \"0x6e77932a92582f504ff6c4bdbcef7da6c198aeef\"}, \"v2.1\": {\"lb_pair_created\": \"0x8e42f2f4101563bf679975178e880fd87d3efd4e\"}, \"v2.2\": {\"lb_pair_created\": \"0xb43120c4745967fa9b93e79c149e66b0f2d6fe0c\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'CURATED_DEFI_DEX_DEXALOT_DEST_CHAIN_ID' AS key,\n \n '43114' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'avalanche' AS project,\n 'allbridge' AS key,\n \n '{\"v1\": {\"sent\": \"0xbbbd1bbb4f9b936c3604906d7592a644071de884\"}, \"v2\": {\"lp\": [\"0x2d2f460d7a1e7a4fcc4ddab599451480728b5784\", \"0xe827352a0552ffc835c181ab5bf1d7794038ec9f\"], \"tokens_sent\": \"0x9068e1c28941d0a680197cc03be8afe27ccaeea9\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'axelar' AS key,\n \n '{\"v1\": {\"burn\": \"0x0000000000000000000000000000000000000000\", \"gas_service\": \"0x2d5d7d31f671f86c782533cc367f14109a082712\", \"gateway\": \"0x5029c0eff6c34351a0cec334542cdb22c7928f78\", \"squid_router\": \"0xce16f69375520ab01377ce7b88f5ba8c48f8d666\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'chainlink_ccip' AS key,\n \n '{\"v1\": {\"router\": \"0xf4c7e640eda248ef95972845a62bdc74237805db\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'celer_cbridge' AS key,\n \n '{\"v1\": {\"bridge\": [\"0xbb7684cc5408f4dd0921e5c2cadd547b8f1ad573\", \"0x9b36f165bab9ebe611d491180418d8de4b8f3a1f\", \"0xef3c714c9425a8f3697a9c969dc1af30ba82e5d4\"]}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'circle_cctp' AS key,\n \n '{\"v1\": {\"deposit\": \"0x6b25532e1060ce10cc3b0a99e5683b91bfde6982\"}, \"v2\": {\"deposit\": \"0x28b5a0e9c621a5badaa536219b3a228c8168cf5d\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'dln_debridge' AS key,\n \n '{\"v1\": {\"source\": \"0xef4fb24ad0916217251f553c0596f8edc630eb66\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'everclear' AS key,\n \n '{\"v1\": {\"bridge\": \"0x9aa2ecad5c77dfcb4f34893993f313ec4a370460\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'eywa' AS key,\n \n '{\"v1\": {\"portal\": [\"0xece9cf6a8f2768a3b8b65060925b646afeaa5167\", \"0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe\", \"0xbf0b5d561b986809924f88099c4ff0e6bcce60c9\"]}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'layerzero' AS key,\n \n '{\"v2\": {\"bridge\": \"0x1a44076050125825900e736c501f859c50fe728c\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'meson' AS key,\n \n '{\"v1\": {\"bridge\": \"0x25ab3efd52e6470681ce037cd546dc60726948d3\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'multichain' AS key,\n \n '{\"v7\": {\"router\": \"0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'stargate' AS key,\n \n '{\"v1\": {\"bridge\": \"0x9d1b1669c73b033dfe47ae5a0164ab96df25b944\", \"factory\": \"0x808d7c71ad2ba3fa531b068a2417c63106bc0949\"}, \"v2\": {\"bridge\": \"0x17e450be3ba9557f2378e20d64ad417e59ef9a34\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'symbiosis' AS key,\n \n '{\"v1\": {\"bridge\": \"0xe75c7e85fe6add07077467064ad15847e6ba9877\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'synapse' AS key,\n \n '{\"v1\": {\"token_bridge\": [\"0xc4133e23c783af2c732c06677b98b905b5c65c46\", \"0xc05e61d0e7a63d27546389b7ad62fdff5a91aace\"], \"token_bridge_swap\": \"0xc05e61d0e7a63d27546389b7ad62fdff5a91aace\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'wormhole' AS key,\n \n '{\"v1\": {\"token_bridge\": \"0x0e082f06ff657d94310cb8ce8b0d9a04541d8052\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'avalanche' AS project,\n 'CURATED_DEFI_BRIDGE_ALLBRIDGE_SOURCE_CHAIN' AS key,\n \n 'avalanche c-chain' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'avalanche' AS project,\n 'benqi' AS key,\n \n '{\"v1\": {\"comp_v2_origin_from_address\": [\"0x5423819b3b5bb38b0e9e9e59f22f9034e2d8819b\", \"0x0df1a01ade3cd67ccc11d89f2859a0de514cd679\", \"0xf799c20563218190424c3aec6022ce9faf588eb7\", \"0x0cf89de760b234b82e475d609a6de8ec48c68677\", \"0xfb45e03b83ad113cd0d4e697354a6a9be6decc55\"]}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'joe_lend' AS key,\n \n '{\"v1\": {\"comp_v2_origin_from_address\": [\"0x5d3e4c0fe11e0ae4c32f0ff74b4544c49538ac61\", \"0x72c5456d731fdd9d3480f997226a631231de61cc\"]}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'aave' AS key,\n \n '{\"v2\": {\"aave_version_address\": \"0x4f01aed16d97e3ab5ab2b501154dc9bb0f1a5a2c\"}, \"v3\": {\"aave_version_address\": \"0x794a61358d6845594f94dc1db02a252b5b4814ad\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'avalanche' AS project,\n 'euler' AS key,\n \n '{\"v1\": {\"euler_origin_to_address\": \"0x7f53e2755eb3c43824e162f7f6f087832b9c9df6\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'core' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'drpc' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'GLOBAL_NODE_URL' AS key,\n \n 'https://lb.drpc.org/ogrpc?network=core&dkey={KEY}' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'Vault/prod/evm/drpc' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0x40375c92d9faf44d2f9db9bd9ba41a3317a2404f' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'WCORE' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'CORE' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '1200' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'MAIN_SL_TRANSACTIONS_PER_BLOCK' AS key,\n \n '50' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'MAIN_CORE_RECEIPTS_BY_HASH_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n 'CORE' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n '[\"Core\", \"core\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON' AS key,\n \n '23,53 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'MAIN_GHA_SCHEDULED_SCORES_CRON' AS key,\n \n '35 5 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME' AS key,\n \n 'CoreScan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL' AS key,\n \n 'https://openapi.coredao.org/api?module=contract&action=getabi&address=' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH' AS key,\n \n 'Vault/prod/block_explorers/core_scan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'MAIN_OBSERV_EXCLUSION_LIST_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'MAIN_SL_TOKEN_READS_BRONZE_TABLE_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'MAIN_CORE_GOLD_TRACES_TEST_ERROR_THRESHOLD' AS key,\n \n '10' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'BALANCES_SL_STATE_TRACER_REALTIME_SQL_LIMIT' AS key,\n \n '4800' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'BALANCES_EXCLUSION_LIST_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'BALANCES_VALIDATOR_CONTRACT_ADDRESS' AS key,\n \n '[\"0x0000000000000000000000000000000000001000\", \"0x0000000000000000000000000000000000001010\", \"0x0000000000000000000000000000000000001007\", \"0x0000000000000000000000000000000000001002\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'core' AS project,\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"meson-v1\", \"symbiosis-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'core' AS project,\n 'sushiswap' AS key,\n \n '{\"v2\": {\"uni_v3_pool_created\": \"0xc35dadb65012ec5796536bd9864ed8773abc74c4\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'core' AS project,\n 'corex' AS key,\n \n '{\"v1\": {\"uni_v3_pool_created\": \"0x526190295afb6b8736b14e4b42744fbd95203a3a\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'core' AS project,\n 'bitflux' AS key,\n \n '{\"v1\": {\"create\": [\"0xa18481c844c1b7e707adaf67a6394f2b37f0705b\", \"0x5a65012ac60e8a22fd191c288c87a25dcbeef1c4\", \"0xfceb33c1e5cba985175ac4488e338dc4f0dd2a1f\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'core' AS project,\n 'glyph' AS key,\n \n '{\"v4\": {\"pool_created\": \"0x74efe55bea4988e7d92d03efd8ddb8bf8b7bd597\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n \n SELECT\n 'core' AS project,\n 'layerzero' AS key,\n \n '{\"v2\": {\"bridge\": \"0x1a44076050125825900e736c501f859c50fe728c\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'core' AS project,\n 'meson' AS key,\n \n '{\"v1\": {\"bridge\": \"0x25ab3efd52e6470681ce037cd546dc60726948d3\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'core' AS project,\n 'stargate' AS key,\n \n '{\"v2\": {\"bridge\": \"0xaf54be5b6eec24d6bfacf1cce4eaf680a8239398\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'core' AS project,\n 'symbiosis' AS key,\n \n '{\"v1\": {\"bridge\": \"0x292fc50e4eb66c3f6514b9e402dbc25961824d62\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'core' AS project,\n 'gaszip_lz' AS key,\n \n '{\"v2\": {\"packet_sent\": \"0x1a44076050125825900e736c501f859c50fe728c\", \"send_deposits\": \"0x26da582889f59eaae9da1f063be0140cd93e6a4f\", \"send_uln\": \"0x0bcac336466ef7f1e0b5c184aab2867c108331af\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n \n SELECT\n 'core' AS project,\n 'colend' AS key,\n \n '{\"v1\": {\"aave_v3_treasury\": [\"0x5a3e71b6d8e0ce3d568d3c9b089b6a31a3f43501\", \"0xe88d2aebe73f15f2b7d5e4a77694a3fe74c7de74\"]}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'core' AS project,\n 'summer_money' AS key,\n \n '{\"v1\": {\"comp_v2_origin_from_address\": \"0x5c85a7ae2b6d29c38cdf360553f8acbc4e684c31\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'base' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'quicknode' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'GLOBAL_NODE_URL' AS key,\n \n '{URL}' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'Vault/prod/evm/quicknode/base/mainnet' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0x4200000000000000000000000000000000000006' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'WETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '1800' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS' AS key,\n \n 'ethereum' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n '[\"base\", \"Base\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME' AS key,\n \n 'basescan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL' AS key,\n \n 'https://api.basescan.org/api?module=contract&action=getabi&address=' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH' AS key,\n \n 'Vault/prod/block_explorers/base_scan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'MAIN_SL_TRACES_REALTIME_PRODUCER_BATCH_SIZE' AS key,\n \n '900' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'MAIN_SL_TRACES_REALTIME_WORKER_BATCH_SIZE' AS key,\n \n '450' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON' AS key,\n \n '15,45 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'MAIN_GHA_SCHEDULED_SCORES_CRON' AS key,\n \n '15 5 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'BALANCES_SL_ERC20_DAILY_HISTORY_PRODUCER_BATCH_SIZE' AS key,\n \n '120000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'BALANCES_SL_ERC20_DAILY_HISTORY_WORKER_BATCH_SIZE' AS key,\n \n '60000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'BALANCES_SL_NATIVE_DAILY_HISTORY_PRODUCER_BATCH_SIZE' AS key,\n \n '120000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'BALANCES_SL_NATIVE_DAILY_HISTORY_WORKER_BATCH_SIZE' AS key,\n \n '60000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'BALANCES_SL_ERC20_DAILY_REALTIME_PRODUCER_BATCH_SIZE' AS key,\n \n '450000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'BALANCES_SL_ERC20_DAILY_REALTIME_WORKER_BATCH_SIZE' AS key,\n \n '45000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'BALANCES_SL_ERC20_DAILY_REALTIME_ASYNC_CONCURRENT_REQUESTS' AS key,\n \n '5' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'BALANCES_SL_NATIVE_DAILY_REALTIME_PRODUCER_BATCH_SIZE' AS key,\n \n '450000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'BALANCES_SL_NATIVE_DAILY_REALTIME_WORKER_BATCH_SIZE' AS key,\n \n '45000' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'BALANCES_SL_NATIVE_DAILY_REALTIME_ASYNC_CONCURRENT_REQUESTS' AS key,\n \n '5' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"seamless-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"woofi-v3\", \"woofi-v1\", \"voodoo-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"balancer-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"symbiosis-v1\", \"hop-v1\", \"across-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'base' AS project,\n 'uniswap' AS key,\n \n '{\"v2\": {\"uni_v2_pair_created\": \"0x8909dc15e40173ff4699343b6eb8132c65e18ec6\"}, \"v3\": {\"uni_v3_pool_created\": \"0x33128a8fc17869897dce68ed026d694621f6fdfd\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'sushiswap' AS key,\n \n '{\"v2\": {\"uni_v3_pool_created\": \"0xc35dadb65012ec5796536bd9864ed8773abc74c4\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'woofi' AS key,\n \n '{\"v1\": {\"woo_swap\": [\"0x39d361e66798155813b907a70d6c2e3fdafb0877\", \"0xc04362cf21e6285e295240e30c056511df224cf4\", \"0x86b1742a1d7c963d3e8985829d722725316abf0a\", \"0xeff23b4be1091b53205e35f3afcd9c7182bf3062\", \"0xb89a33227876aef02a7ebd594af9973aece2f521\", \"0x8693f9701d6db361fe9cc15bc455ef4366e39ae0\", \"0xb130a49065178465931d4f887056328cea5d723f\", \"0xed9e3f98bbed560e66b89aac922e29d4596a9642\"]}, \"v2\": {\"woo_router_swap\": [\"0xcdfd61a8303beb5c8dd2a6d02df8d228ce15b9f3\", \"0x9aed3a8896a85fe9a8cac52c9b402d092b629a30\", \"0xd2635bc7e4e4f63b2892ed80d0b0f9dff7eda899\", \"0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7\"]}, \"v3\": {\"woo_router_swap\": \"0x27425e9fb6a9a625e8484cfd9620851d1fa322e5\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'curve' AS key,\n \n '{\"v1\": {\"deployer\": [\"0xa5961898870943c68037f6848d2d866ed2016bcb\", \"0x3093f9b57a428f3eb6285a589cb35bea6e78c336\", \"0x5ef72230578b3e399e6c6f4f6360edf95e83bbfd\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'balancer' AS key,\n \n '{\"v1\": {\"vault\": \"0xba12222222228d8ba445958a75a0704d566bf2c8\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'alienbase' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0x3e84d913803b02a4a7f027165e8ca42c14c0fde7\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'baseswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0xfda619b6d20975be80a10332cd39b9a4b0faa8bb\"}, \"v2\": {\"uni_v3_pool_created\": \"0x38015d05f4fec8afe15d7cc0386a126574e8077b\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'dexalot' AS key,\n \n '{\"v1\": {\"swap_executed\": \"0x1fd108cf42a59c635bd4703b8dbc8a741ff834be\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'swapbased' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0x04c9f118d21e8b767d2e50c946f0cc9f6c367300\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'maverick' AS key,\n \n '{\"v1\": {\"swap\": \"0xb2855783a346735e4aae0c1eb894def861fa9b45\"}, \"v2\": {\"factory\": \"0x0a7e848aca42d879ef06507fca0e7b33a0a63c1e\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'pancakeswap' AS key,\n \n '{\"v3\": {\"factory\": \"0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'voodoo' AS key,\n \n '{\"v1\": {\"vault\": \"0x4f188afdc40e6d2ddddf5fd1b2df7aef7da52f50\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'dackieswap' AS key,\n \n '{\"v1\": {\"factory\": \"0x3d237ac6d2f425d2e890cc99198818cc1fa48870\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'aerodrome' AS key,\n \n '{\"v1\": {\"factory\": \"0x420dd381b31aef6683db6b902084cb0ffece40da\"}, \"v2\": {\"superchain_slipstream\": \"0x5e7bb104d84c7cb9b682aac2f3d509f5f406809a\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'CURATED_DEFI_DEX_DEXALOT_DEST_CHAIN_ID' AS key,\n \n '8453' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'base' AS project,\n 'across' AS key,\n \n '{\"v1\": {\"funds_deposited\": \"0x09aea4b2242abc8bb4bb78d537a67a245a7bec64\"}, \"v3\": {\"funds_deposited\": \"0x09aea4b2242abc8bb4bb78d537a67a245a7bec64\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'allbridge' AS key,\n \n '{\"v2\": {\"lp\": \"0xda6bb1ec3baba68b26bea0508d6f81c9ec5e96d5\", \"tokens_sent\": \"0x001e3f136c2f804854581da55ad7660a2b35def7\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'axelar' AS key,\n \n '{\"v1\": {\"burn\": \"0x0000000000000000000000000000000000000000\", \"gas_service\": \"0x2d5d7d31f671f86c782533cc367f14109a082712\", \"gateway\": \"0xe432150cce91c13a887f7d836923d5597add8e31\", \"squid_router\": \"0xce16f69375520ab01377ce7b88f5ba8c48f8d666\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'chainlink_ccip' AS key,\n \n '{\"v1\": {\"router\": \"0x881e3a65b4d4a04dd529061dd0071cf975f58bcd\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'circle_cctp' AS key,\n \n '{\"v1\": {\"deposit\": \"0x1682ae6375c4e4a97e4b583bc394c861a46d8962\"}, \"v2\": {\"deposit\": \"0x28b5a0e9c621a5badaa536219b3a228c8168cf5d\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'celer_cbridge' AS key,\n \n '{\"v1\": {\"bridge\": \"0x7d43aabc515c356145049227cee54b608342c0ad\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'dln_debridge' AS key,\n \n '{\"v1\": {\"source\": \"0xef4fb24ad0916217251f553c0596f8edc630eb66\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'everclear' AS key,\n \n '{\"v1\": {\"bridge\": \"0xa05a3380889115bf313f1db9d5f335157be4d816\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'layerzero' AS key,\n \n '{\"v2\": {\"bridge\": \"0x1a44076050125825900e736c501f859c50fe728c\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'l2_standard_bridge' AS key,\n \n '{\"v1\": {\"bridge\": \"0x4200000000000000000000000000000000000010\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'meson' AS key,\n \n '{\"v1\": {\"bridge\": \"0x25ab3efd52e6470681ce037cd546dc60726948d3\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'stargate' AS key,\n \n '{\"v1\": {\"bridge\": \"0xaf54be5b6eec24d6bfacf1cce4eaf680a8239398\", \"factory\": \"0xaf5191b0de278c7286d6c7cc6ab6bb8a73ba2cd6\"}, \"v2\": {\"bridge\": \"0x5634c4a5fed09819e3c46d86a965dd9447d86e47\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'symbiosis' AS key,\n \n '{\"v1\": {\"bridge\": \"0xee981b2459331ad268cc63ce6167b446af4161f8\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'synapse' AS key,\n \n '{\"v1\": {\"token_bridge\": \"0xf07d1c752fab503e47fef309bf14fbdd3e867089\", \"token_bridge_swap\": \"0xf07d1c752fab503e47fef309bf14fbdd3e867089\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'wormhole' AS key,\n \n '{\"v1\": {\"token_bridge\": \"0x8d2de8d2f73f1f4cab472ac9a881c9b123c79627\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'CURATED_DEFI_BRIDGE_HOP_BRIDGE_CONTRACT' AS key,\n \n '0xe22d2bedb3eca35e6397e0c6d62857094aa26f52' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'base' AS project,\n 'CURATED_DEFI_BRIDGE_HOP_TOKEN_CONTRACT' AS key,\n \n '0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'base' AS project,\n 'sonne' AS key,\n \n '{\"v1\": {\"comp_v2_origin_from_address\": \"0xfb59ce8986943163f14c590755b29db2998f2322\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'compound' AS key,\n \n '{\"v3\": {\"comp_v3_origin_from_address\": [\"0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915\", \"0x2501713a67a3dedde090e42759088a7ef37d4eab\"]}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'aave' AS key,\n \n '{\"v3\": {\"aave_version_address\": \"0xa238dd80c259a72e81d7e4664a9801593f98d1c5\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'radiant' AS key,\n \n '{\"v2\": {\"aave_version_address\": \"0x30798cfe2cca822321ceed7e6085e633aabc492f\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'euler' AS key,\n \n '{\"v1\": {\"euler_origin_to_address\": \"0x7f321498a801a191a93c840750ed637149ddf8d0\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'granary' AS key,\n \n '{\"v1\": {\"aave_version_address\": \"0xb702ce183b4e1faa574834715e5d4a6378d0eed3\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'seamless' AS key,\n \n '{\"v1\": {\"aave_version_address\": \"0x8f44fd754285aa6a2b8b9b97739b79746e0475a7\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'morpho' AS key,\n \n '{\"v1\": {\"morpho_blue_address\": \"0xbbbbbbbbbb9cc5e90e3b3af64bdaf62c37eeffcb\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'base' AS project,\n 'moonwell' AS key,\n \n '{\"v1\": {\"comp_v2_origin_from_address\": [\"0x5c000728eb8a4c7f6e78495da2900b0370adb1ed\", \"0xc3f9774af21a030ab785cb45510ba9edc9d0c8cd\", \"0xc84065601e39a623d75dfddd278346b9778d8943\", \"0x0f23882f0a4bf32d4cb1e70c3831747b83dd2287\", \"0x29b28b0ff5b6b26448f3ac02cd209539626d96ab\", \"0x10b83c88e88910cd5293324800d1a6e751004be5\", \"0x3073fcad986fbe9f94cc6caa44f76c12e34516d4\"]}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'bsc' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'quicknode' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'Vault/prod/evm/quicknode/bsc/mainnet' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'GLOBAL_NODE_URL' AS key,\n \n '{URL}' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'WBNB' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'BNB' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '4800' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n 'BNB' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n '[\"BNB\", \"BNB Smart Chain (BEP20)\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME' AS key,\n \n 'bscscan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL' AS key,\n \n 'https://api.bscscan.com/api?module=contract&action=getabi&address=' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH' AS key,\n \n 'Vault/prod/block_explorers/bsc_scan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON' AS key,\n \n '15,45 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'MAIN_GHA_SCHEDULED_SCORES_CRON' AS key,\n \n '30 5 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'MAIN_SL_TRACES_REALTIME_PRODUCER_BATCH_SIZE' AS key,\n \n '4800' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'MAIN_SL_TRACES_REALTIME_WORKER_BATCH_SIZE' AS key,\n \n '600' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'MAIN_SL_TRACES_REALTIME_ASYNC_CONCURRENT_REQUESTS' AS key,\n \n '50' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"radiant-v2\", \"kinza-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"level_finance-v1\", \"hashflow-v1\", \"woofi-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"fraxswap-v1\", \"trader_joe-v1\", \"trader_joe-v2\", \"kyberswap-v1\", \"kyberswap-v2\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"symbiosis-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'bsc' AS project,\n 'uniswap' AS key,\n \n '{\"v2\": {\"uni_v2_pair_created\": \"0x8909dc15e40173ff4699343b6eb8132c65e18ec6\"}, \"v3\": {\"uni_v3_pool_created\": \"0xdb1d10011ad0ff90774d0c6bb92e5c5c8b4461f7\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'sushiswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0xc35dadb65012ec5796536bd9864ed8773abc74c4\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'fraxswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": [\"0x5ca135cb8527d76e932f34b5145575f9d8cbe08e\", \"0xf89e6ca06121b6d4370f4b196ae458e8b969a011\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'kyberswap' AS key,\n \n '{\"v1\": {\"dynamic\": \"0x878dfe971d44e9122048308301f540910bbd934c\", \"static\": \"0x1c758af0688502e49140230f6b0ebd376d429be5\"}, \"v2\": {\"elastic\": \"0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'dodo' AS key,\n \n '{\"v1\": {\"dodo_birth\": \"0xca459456a45e300aa7ef447dbb60f87cccb42828\", \"proxy\": [\"0x8e4842d0570c85ba3805a9508dce7c6a458359d0\", \"0x0596908263ef2724fbfbcafa1c983fcd7a629038\", \"0x165ba87e882208100672b6c56f477ee42502c820\", \"0xab623fbcaeb522046185051911209f5b2c2a2e1f\"]}, \"v2\": {\"new_pool\": [\"0xafe0a75dffb395eaabd0a7e1bbbd0b11f8609eef\", \"0xd9cac3d964327e47399aebd8e1e6dcc4c251daae\", \"0x0fb9815938ad069bf90e14fe6c596c514bede767\", \"0x790b4a80fb1094589a3c0efc8740aa9b0c1733fb\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'hashflow' AS key,\n \n '{\"v1\": {\"create\": [\"0x63ae536fec0b57bdeb1fd6a893191b4239f61bff\", \"0xa98242820ebf3a405d265ccd22a4ea8f64afb281\", \"0xb5574750a786a37e300a916974ecd63f93fc6754\"]}, \"v3\": {\"create_pool\": \"0xde828fdc3f497f16416d1bb645261c7c6a62dab5\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'woofi' AS key,\n \n '{\"v1\": {\"woo_swap\": [\"0xbf365ce9cfcb2d5855521985e351ba3bcf77fd3f\", \"0x2217c57c91e3c6c55a90b4ca280f532d65590559\"]}, \"v2\": {\"woo_router_swap\": [\"0xc90bfe9951a4efbf20aca5ecd9966b2bf8a01294\", \"0x4f4fd4290c9bb49764701803af6445c5b03e8f06\", \"0xcef5be73ae943b77f9bc08859367d923c030a269\", \"0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7\"], \"woo_swap\": [\"0x59de3b49314bf5067719364a2cb43e8525ab93fa\", \"0xec054126922a9a1918435c9072c32f1b60cb2b90\", \"0xed9e3f98bbed560e66b89aac922e29d4596a9642\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'biswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0x858e3312ed3a876947ea49d572a7c42de08af7ee\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'trader_joe' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0x4f8bdc85e3eec5b9de67097c3f59b6db025d9986\"}, \"v2\": {\"lb_pair_created\": \"0x43646a8e839b2f2766392c1bf8f60f6e587b6960\"}, \"v2.1\": {\"lb_pair_created\": \"0x8e42f2f4101563bf679975178e880fd87d3efd4e\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'level_finance' AS key,\n \n '{\"v1\": {\"router\": \"0xa5abfb56a78d2bd4689b25b8a77fd49bb0675874\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'pancakeswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0xbcfccbde45ce874adcb698cc183debcf17952812\"}, \"v2\": {\"mm_router\": \"0xfeacb05b373f1a08e68235ba7fc92636b92ced01\", \"ss_factory_1\": \"0x36bbb126e75351c0dfb651e39b38fe0bc436ffd2\", \"ss_factory_2\": \"0x25a55f9f2279a54951133d503490342b50e5cd15\", \"uni_v2_pair_created\": [\"0xca143ce32fe78f1f7019d7d551a6402fc5350c73\", \"0x7b13d1d2a1fa28b16862ebac6e3c52fa9c8d753e\", \"0x1f830fb91094a0e87c0a80150aa0af3805456090\"]}, \"v3\": {\"factory\": \"0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n \n SELECT\n 'bsc' AS project,\n 'across' AS key,\n \n '{\"v3\": {\"funds_deposited\": \"0x4e8e101924ede233c13e2d8622dc8aed2872d505\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'allbridge' AS key,\n \n '{\"v1\": {\"sent\": \"0xbbbd1bbb4f9b936c3604906d7592a644071de884\"}, \"v2\": {\"lp\": [\"0xf833afa46fcd100e62365a0fdb0734b7c4537811\", \"0x8033d5b454ee4758e4bd1d37a49009c1a81d8b10\"], \"tokens_sent\": \"0x3c4fa639c8d7e65c603145adad8bd12f2358312f\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'axelar' AS key,\n \n '{\"v1\": {\"burn\": \"0x0000000000000000000000000000000000000000\", \"gas_service\": \"0x2d5d7d31f671f86c782533cc367f14109a082712\", \"gateway\": \"0x304acf330bbe08d1e512eefaa92f6a57871fd895\", \"squid_router\": \"0xce16f69375520ab01377ce7b88f5ba8c48f8d666\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'chainlink_ccip' AS key,\n \n '{\"v1\": {\"router\": \"0x34b03cb9086d7d758ac55af71584f81a598759fe\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'celer_cbridge' AS key,\n \n '{\"v1\": {\"bridge\": [\"0x5d96d4287d1ff115ee50fac0526cf43ecf79bfc6\", \"0x9b36f165bab9ebe611d491180418d8de4b8f3a1f\", \"0x265b25e22bcd7f10a5bd6e6410f10537cc7567e8\", \"0xdd90e5e87a2081dcf0391920868ebc2ffb81a1af\"]}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'dln_debridge' AS key,\n \n '{\"v1\": {\"source\": \"0xef4fb24ad0916217251f553c0596f8edc630eb66\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'everclear' AS key,\n \n '{\"v1\": {\"bridge\": \"0xa05a3380889115bf313f1db9d5f335157be4d816\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'eywa' AS key,\n \n '{\"v2\": {\"portal\": [\"0xece9cf6a8f2768a3b8b65060925b646afeaa5167\", \"0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe\", \"0xbf0b5d561b986809924f88099c4ff0e6bcce60c9\"]}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'layerzero' AS key,\n \n '{\"v2\": {\"bridge\": \"0x1a44076050125825900e736c501f859c50fe728c\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'meson' AS key,\n \n '{\"v1\": {\"bridge\": \"0x25ab3efd52e6470681ce037cd546dc60726948d3\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'stargate' AS key,\n \n '{\"v1\": {\"bridge\": \"0x6694340fc020c5e6b96567843da2df01b2ce1eb6\", \"factory\": \"0xe7ec689f432f29383f217e36e680b5c855051f25\"}, \"v2\": {\"bridge\": \"0x6e3d884c96d640526f273c61dfcf08915ebd7e2b\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'symbiosis' AS key,\n \n '{\"v1\": {\"bridge\": [\"0xb91d3060c90aac7c4c706aef2b37997b3b2a1dcf\", \"0x5aa5f7f84ed0e5db0a4a85c3947ea16b53352fd4\"]}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'synapse' AS key,\n \n '{\"v1\": {\"token_bridge\": [\"0x0efc29e196da2e81afe96edd041bedcdf9e74893\", \"0xd123f70ae324d34a9e76b67a27bf77593ba8749f\"], \"token_bridge_swap\": [\"0x0efc29e196da2e81afe96edd041bedcdf9e74893\", \"0xd123f70ae324d34a9e76b67a27bf77593ba8749f\"]}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'wormhole' AS key,\n \n '{\"v1\": {\"token_bridge\": \"0xb6f6d86a8f9879a9c87f643768d9efc38c1da6e7\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'bsc' AS project,\n 'CURATED_DEFI_BRIDGE_ALLBRIDGE_SOURCE_CHAIN' AS key,\n \n 'bnb smart chain mainnet' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'bsc' AS project,\n 'venus' AS key,\n \n '{\"v1\": {\"comp_v2_origin_from_address\": [\"0x1ca3ac3686071be692be7f1fbecd668641476d7e\", \"0x55a9f5374af30e3045fb491f1da3c2e8a74d168d\", \"0x7bf1fe2c42e79dba813bf5026b7720935a55ec5f\"]}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'dforce' AS key,\n \n '{\"v1\": {\"comp_v2_origin_from_address\": \"0x4375c89af5b4af46791b05810c4b795a0470207f\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'radiant' AS key,\n \n '{\"v2\": {\"aave_version_address\": \"0xd50cf00b6e600dd036ba8ef475677d816d6c4281\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'aave' AS key,\n \n '{\"v3\": {\"aave_version_address\": \"0x6807dc923806fe8fd134338eabca509979a7e0cb\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'kinza' AS key,\n \n '{\"v1\": {\"aave_version_address\": \"0xcb0620b181140e57d1c0d8b724cde623ca963c8c\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'euler' AS key,\n \n '{\"v1\": {\"euler_origin_to_address\": \"0x7f53e2755eb3c43824e162f7f6f087832b9c9df6\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'bsc' AS project,\n 'morpho' AS key,\n \n '{\"v1\": {\"morpho_blue_address\": \"0x01b0bd309aa75547f7a37ad7b1219a898e67a83a\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'GLOBAL_PROJECT_NAME' AS key,\n \n 'optimism' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'GLOBAL_NODE_PROVIDER' AS key,\n \n 'quicknode' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'GLOBAL_NODE_VAULT_PATH' AS key,\n \n 'Vault/prod/evm/quicknode/optimism/mainnet' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'GLOBAL_NODE_URL' AS key,\n \n '{URL}' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS' AS key,\n \n '0x4200000000000000000000000000000000000006' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL' AS key,\n \n 'WETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'GLOBAL_NATIVE_ASSET_SYMBOL' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'MAIN_SL_BLOCKS_PER_HOUR' AS key,\n \n '1800' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'MAIN_PRICES_NATIVE_SYMBOLS' AS key,\n \n 'ETH' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS' AS key,\n \n 'ethereum' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'MAIN_PRICES_PROVIDER_PLATFORMS' AS key,\n \n '[\"Optimism\", \"optimistic-ethereum\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME' AS key,\n \n 'opscan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL' AS key,\n \n 'https://api-optimistic.etherscan.io/api?module=contract&action=getabi&address=' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH' AS key,\n \n 'Vault/prod/block_explorers/optimism_scan' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON' AS key,\n \n '20,50 * * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'MAIN_GHA_SCHEDULED_SCORES_CRON' AS key,\n \n '10 5 * * *' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'MAIN_OBSERV_EXCLUSION_LIST_ENABLED' AS key,\n \n 'True' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"granary-v1\", \"sonne-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"woofi-v1\", \"hashflow-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"fraxswap-v1\", \"kyberswap-v2\", \"sushiswap-v1\", \"uniswap-v2\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST' AS key,\n \n '[\"eywa-v1\", \"across-v1\", \"meson-v1\", \"symbiosis-v1\", \"multichain-v7\", \"hop-v1\"]' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'optimism' AS project,\n 'uniswap' AS key,\n \n '{\"v2\": {\"uni_v2_pair_created\": \"0x0c3c1c532f1e39edf36be9fe0be1410313e074bf\"}, \"v3\": {\"uni_v3_pool_created\": \"0x1f98431c8ad98523631ae4a59f267346ea31f984\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'sushiswap' AS key,\n \n '{\"v1\": {\"deploy_pool\": [\"0xcaabdd9cf4b61813d4a52f980d6bc1b713fe66f5\", \"0x1b02da8cb0d097eb8d57a175b88c7d8b47997506\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'fraxswap' AS key,\n \n '{\"v1\": {\"uni_v2_pair_created\": \"0x67a1412d2d6cbf211bb71f8e851b4393b491b10f\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'kyberswap' AS key,\n \n '{\"v1\": {\"static\": \"0x1c758af0688502e49140230f6b0ebd376d429be5\"}, \"v2\": {\"elastic\": \"0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'dodo' AS key,\n \n '{\"v1\": {\"proxy\": \"0xdd0951b69bc0cf9d39111e5037685fb573204c86\"}, \"v2\": {\"deployer\": \"0x386a28709a31532d4f68b06fd28a27e4ea378364\", \"new_pool\": [\"0xdb9c53f2ced34875685b607c97a61a65da2f30a8\", \"0x1f83858cd6d0ae7a08ab1fd977c06dabece6d711\", \"0x2b800dc6270726f7e2266ce8cd5a3f8436fe0b40\"], \"proxy\": \"0x169ae3d5acc90f0895790f6321ee81cb040e8a6b\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'hashflow' AS key,\n \n '{\"v1\": {\"create\": [\"0x246d44b1221e44930b207a1a7e235b616c465158\", \"0x63ae536fec0b57bdeb1fd6a893191b4239f61bff\"]}, \"v3\": {\"create_pool\": \"0x6d551f4d999fac0984eb75b2b230ba7e7651bde7\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'woofi' AS key,\n \n '{\"v1\": {\"woo_router_swap\": \"0xeaf1ac8e89ea0ae13e0f03634a4ff23502527024\", \"woo_swap\": [\"0xeaf1ac8e89ea0ae13e0f03634a4ff23502527024\", \"0xed9e3f98bbed560e66b89aac922e29d4596a9642\"]}, \"v2\": {\"woo_router_swap\": \"0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'curve' AS key,\n \n '{\"v1\": {\"deployer\": [\"0x2db0e83599a91b508ac268a6197b8b14f5e72840\", \"0x7eeac6cddbd1d0b8af061742d41877d7f707289a\", \"0x745748bcfd8f9c2de519a71d789be8a63dd7d66c\"]}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'beethoven_x' AS key,\n \n '{\"v1\": {\"vault\": \"0xba12222222228d8ba445958a75a0704d566bf2c8\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'synthetix' AS key,\n \n '{\"v1\": {\"synth_exchange\": \"0x8700daec35af8ff88c16bdf0418774cb3d7599b4\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'velodrome' AS key,\n \n '{\"v1\": {\"pair_created\": \"0x25cbddb98b35ab1ff77413456b31ec81a6b6b746\"}, \"v2\": {\"converter\": \"0x585af0b397ac42dbef7f18395426bf878634f18d\", \"factory\": \"0xf1046053aa5682b4f9a81b5481394da16be5ff5a\"}}' AS VALUE,\n \n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n \n SELECT\n 'optimism' AS project,\n 'across' AS key,\n \n '{\"v1\": {\"funds_deposited\": \"0x6f26bf09b1c792e3228e5467807a900a503c0281\"}, \"v3\": {\"funds_deposited\": \"0x6f26bf09b1c792e3228e5467807a900a503c0281\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'allbridge' AS key,\n \n '{\"v2\": {\"lp\": [\"0xb24a05d54fcacfe1fc00c59209470d4cafb0deea\", \"0x3b96f88b2b9eb87964b852874d41b633e0f1f68f\"], \"tokens_sent\": \"0x97e5bf5068ea6a9604ee25851e6c9780ff50d5ab\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'axelar' AS key,\n \n '{\"v1\": {\"burn\": \"0x0000000000000000000000000000000000000000\", \"gas_service\": \"0x2d5d7d31f671f86c782533cc367f14109a082712\", \"gateway\": [\"0xe19bb3b98f7727c520c757b8a00753eb47358b14\", \"0xe432150cce91c13a887f7d836923d5597add8e31\"], \"squid_router\": \"0xce16f69375520ab01377ce7b88f5ba8c48f8d666\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'chainlink_ccip' AS key,\n \n '{\"v1\": {\"router\": \"0x3206695cae29952f4b0c22a169725a865bc8ce0f\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'circle_cctp' AS key,\n \n '{\"v1\": {\"deposit\": \"0x2b4069517957735be00cee0fadae88a26365528f\"}, \"v2\": {\"deposit\": \"0x28b5a0e9c621a5badaa536219b3a228c8168cf5d\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'celer_cbridge' AS key,\n \n '{\"v1\": {\"bridge\": \"0x9d39fc627a6d9d9f8c831c16995b209548cc3401\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'dln_debridge' AS key,\n \n '{\"v1\": {\"source\": \"0xef4fb24ad0916217251f553c0596f8edc630eb66\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'everclear' AS key,\n \n '{\"v1\": {\"bridge\": \"0xa05a3380889115bf313f1db9d5f335157be4d816\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'eywa' AS key,\n \n '{\"v1\": {\"portal\": [\"0xece9cf6a8f2768a3b8b65060925b646afeaa5167\", \"0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe\", \"0xbf0b5d561b986809924f88099c4ff0e6bcce60c9\"]}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'layerzero' AS key,\n \n '{\"v2\": {\"bridge\": \"0x1a44076050125825900e736c501f859c50fe728c\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'l2_standard_bridge' AS key,\n \n '{\"v1\": {\"bridge\": \"0x4200000000000000000000000000000000000010\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'meson' AS key,\n \n '{\"v1\": {\"bridge\": \"0x25ab3efd52e6470681ce037cd546dc60726948d3\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'multichain' AS key,\n \n '{\"v7\": {\"router\": \"0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'stargate' AS key,\n \n '{\"v1\": {\"bridge\": \"0x701a95707a0290ac8b90b3719e8ee5b210360883\", \"factory\": \"0xe3b53af74a4bf62ae5511055290838050bf764df\"}, \"v2\": {\"bridge\": \"0xf1fcb4cbd57b67d683972a59b6a7b1e2e8bf27e6\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'symbiosis' AS key,\n \n '{\"v1\": {\"bridge\": \"0x292fc50e4eb66c3f6514b9e402dbc25961824d62\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'synapse' AS key,\n \n '{\"v1\": {\"token_bridge\": \"0xaf41a65f786339e7911f4acdad6bd49426f2dc6b\", \"token_bridge_swap\": \"0xaf41a65f786339e7911f4acdad6bd49426f2dc6b\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'wormhole' AS key,\n \n '{\"v1\": {\"token_bridge\": \"0x1d68124e65fafc907325e3edbf8c4d84499daa8b\"}}' AS VALUE,\n \n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'CURATED_DEFI_BRIDGE_HOP_BRIDGE_CONTRACT' AS key,\n \n '0x03d7f750777ec48d39d080b020d83eb2cb4e3547' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n SELECT\n 'optimism' AS project,\n 'CURATED_DEFI_BRIDGE_HOP_TOKEN_CONTRACT' AS key,\n \n '0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc' AS VALUE,\n \n NULL AS parent_key\n \n UNION ALL\n \n \n \n \n SELECT\n 'optimism' AS project,\n 'moonwell' AS key,\n \n '{\"v1\": {\"comp_v2_origin_from_address\": [\"0x5c000728eb8a4c7f6e78495da2900b0370adb1ed\", \"0xc3f9774af21a030ab785cb45510ba9edc9d0c8cd\", \"0xc84065601e39a623d75dfddd278346b9778d8943\", \"0x0f23882f0a4bf32d4cb1e70c3831747b83dd2287\", \"0x29b28b0ff5b6b26448f3ac02cd209539626d96ab\", \"0x10b83c88e88910cd5293324800d1a6e751004be5\", \"0x3073fcad986fbe9f94cc6caa44f76c12e34516d4\"]}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'sonne' AS key,\n \n '{\"v1\": {\"comp_v2_origin_from_address\": \"0xfb59ce8986943163f14c590755b29db2998f2322\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'compound' AS key,\n \n '{\"v3\": {\"comp_v3_origin_from_address\": [\"0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915\", \"0x2501713a67a3dedde090e42759088a7ef37d4eab\"]}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'granary' AS key,\n \n '{\"v1\": {\"aave_version_address\": \"0x8fd4af47e4e63d1d2d45582c3286b4bd9bb95dfe\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'aave' AS key,\n \n '{\"v3\": {\"aave_version_address\": \"0x794a61358d6845594f94dc1db02a252b5b4814ad\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n UNION ALL\n \n SELECT\n 'optimism' AS project,\n 'morpho' AS key,\n \n '{\"v1\": {\"morpho_blue_address\": \"0xce95afbb8ea029495c66020883f87aae8864af92\"}}' AS VALUE,\n \n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING' AS parent_key\n \n \n \n \n \n \n \n \n \n \n)\n\nSELECT\n project,\n key,\n VALUE,\n parent_key,\n \n \nmd5(cast(coalesce(cast(project as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(key as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(parent_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS fact_variables_id\nFROM\n flattened_data\n\n\nWHERE\n project = 'polygon'\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.admin__ez_variables": {"database": "polygon", "schema": "admin", "name": "admin__ez_variables", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/admin/admin__ez_variables.sql", "original_file_path": "models/main_package/admin/admin__ez_variables.sql", "unique_id": "model.fsc_evm.admin__ez_variables", "fqn": ["fsc_evm", "main_package", "admin", "admin__ez_variables"], "alias": "ez_variables", "checksum": {"name": "sha256", "checksum": "b05e272e85ee6c8d2c39c3b6d76bc41b5a99eb05826815a0bcd4438e485a83ca"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "admin", "variables", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "admin", "variables", "phase_1"], "description": "", "columns": {"PROJECT": {"name": "PROJECT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "KEY": {"name": "KEY", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE": {"name": "VALUE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEFAULT_VALUE": {"name": "DEFAULT_VALUE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEFAULT_TYPE": {"name": "DEFAULT_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_VARIABLES_ID": {"name": "EZ_VARIABLES_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/admin/admin__ez_variables.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["silver", "admin", "variables", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.7834792, "relation_name": "polygon.admin.ez_variables", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n tags = ['silver','admin','variables','phase_1']\n) }}\n\nSELECT\n f.project,\n d.PACKAGE,\n d.CATEGORY,\n f.key,\n f.value,\n f.parent_key,\n d.default_value,\n d.default_type,\n {{ dbt_utils.generate_surrogate_key(\n ['f.project', 'f.key', 'f.parent_key']\n ) }} AS ez_variables_id\nFROM\n {{ ref('admin__fact_variables') }}\n f\n LEFT JOIN {{ ref('admin__dim_variables') }}\n d\n ON f.key = d.key\n OR f.parent_key = d.key", "language": "sql", "refs": [{"name": "admin__fact_variables", "package": null, "version": null}, {"name": "admin__dim_variables", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.admin__fact_variables", "model.fsc_evm.admin__dim_variables"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__ez_variables.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"admin\",\n \"variables\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n tags = ['silver','admin','variables','phase_1']\n) }}\n\nSELECT\n f.project,\n d.PACKAGE,\n d.CATEGORY,\n f.key,\n f.value,\n f.parent_key,\n d.default_value,\n d.default_type,\n {{ dbt_utils.generate_surrogate_key(\n ['f.project', 'f.key', 'f.parent_key']\n ) }} AS ez_variables_id\nFROM\n {{ ref('admin__fact_variables') }}\n f\n LEFT JOIN {{ ref('admin__dim_variables') }}\n d\n ON f.key = d.key\n OR f.parent_key = d.key\n*/\n\n\n\nSELECT\n f.project,\n d.PACKAGE,\n d.CATEGORY,\n f.key,\n f.value,\n f.parent_key,\n d.default_value,\n d.default_type,\n \n \nmd5(cast(coalesce(cast(f.project as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(f.key as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(f.parent_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS ez_variables_id\nFROM\n polygon.admin.fact_variables\n f\n LEFT JOIN polygon.admin.dim_variables\n d\n ON f.key = d.key\n OR f.parent_key = d.key", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__labels": {"database": "polygon", "schema": "silver", "name": "silver__labels", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/labels/silver/silver__labels.sql", "original_file_path": "models/main_package/labels/silver/silver__labels.sql", "unique_id": "model.fsc_evm.silver__labels", "fqn": ["fsc_evm", "main_package", "labels", "silver", "silver__labels"], "alias": "labels", "checksum": {"name": "sha256", "checksum": "e2624938b055a213d9605c917eec81df641140bc315be18149e0eb7d7cb0b6a9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "labels", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "merge", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["address", "blockchain"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "modified_timestamp::DATE", "merge_exclude_columns": ["inserted_timestamp"]}, "tags": ["silver", "labels", "phase_3"], "description": "", "columns": {"BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATOR": {"name": "CREATOR", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS_NAME": {"name": "ADDRESS_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LABEL_TYPE": {"name": "LABEL_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LABEL_SUBTYPE": {"name": "LABEL_SUBTYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROJECT_NAME": {"name": "PROJECT_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/labels/silver/silver__labels.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": ["address", "blockchain"], "incremental_strategy": "merge", "merge_exclude_columns": ["inserted_timestamp"], "cluster_by": "modified_timestamp::DATE", "tags": ["silver", "labels", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.8127325, "relation_name": "polygon.silver.labels", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = ['address', 'blockchain'],\n incremental_strategy = 'merge',\n merge_exclude_columns = [\"inserted_timestamp\"],\n cluster_by = 'modified_timestamp::DATE',\n tags = ['silver','labels','phase_3']\n) }}\n\nSELECT\n system_created_at,\n insert_date,\n blockchain,\n address,\n creator,\n label_type,\n label_subtype,\n address_name,\n project_name,\n _is_deleted,\n {{ dbt_utils.generate_surrogate_key(['labels_combined_id']) }} AS labels_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref('bronze__labels') }} b \n\n{% if is_incremental() %}\nWHERE\n b.modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}", "language": "sql", "refs": [{"name": "bronze__labels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__labels"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/labels/silver/silver__labels.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": \"modified_timestamp::DATE\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"merge\",\n \"materialized\": \"incremental\",\n \"merge_exclude_columns\": [\n \"inserted_timestamp\"\n ],\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"labels\",\n \"phase_3\"\n ],\n \"unique_key\": [\n \"address\",\n \"blockchain\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = ['address', 'blockchain'],\n incremental_strategy = 'merge',\n merge_exclude_columns = [\"inserted_timestamp\"],\n cluster_by = 'modified_timestamp::DATE',\n tags = ['silver','labels','phase_3']\n) }}\n\nSELECT\n system_created_at,\n insert_date,\n blockchain,\n address,\n creator,\n label_type,\n label_subtype,\n address_name,\n project_name,\n _is_deleted,\n {{ dbt_utils.generate_surrogate_key(['labels_combined_id']) }} AS labels_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref('bronze__labels') }} b \n\n{% if is_incremental() %}\nWHERE\n b.modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n*/\n\n\n\nSELECT\n system_created_at,\n insert_date,\n blockchain,\n address,\n creator,\n label_type,\n label_subtype,\n address_name,\n project_name,\n _is_deleted,\n \n \nmd5(cast(coalesce(cast(labels_combined_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS labels_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n polygon.bronze.labels b \n\n\nWHERE\n b.modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n polygon.silver.labels\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.core__dim_labels": {"database": "polygon", "schema": "core", "name": "core__dim_labels", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/labels/gold/core__dim_labels.sql", "original_file_path": "models/main_package/labels/gold/core__dim_labels.sql", "unique_id": "model.fsc_evm.core__dim_labels", "fqn": ["fsc_evm", "main_package", "labels", "gold", "core__dim_labels"], "alias": "dim_labels", "checksum": {"name": "sha256", "checksum": "0c8e921c81202c882ad367c8a95b3966cc97e0e335e13391d5539e20738f031f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "labels", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "merge", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address, label_type, label_subtype, address_name, label), SUBSTRING(address, label_type, label_subtype, address_name, label); DELETE FROM {{ this }} WHERE address in (SELECT address FROM {{ ref('silver__labels') }} WHERE _is_deleted = TRUE);", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["address", "blockchain"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "modified_timestamp::DATE", "merge_exclude_columns": ["inserted_timestamp"]}, "tags": ["gold", "labels", "phase_3"], "description": "## What\n\nThe labels table is a critical dimension for blockchain analysis, providing one-to-one address identifiers that transform opaque addresses into recognizable entities. Labels are categorized into types (cex, dex, defi, etc.) and subtypes (hot_wallet, treasury, etc.) to enable sophisticated filtering and analysis.\n\n## Key Use Cases\n\n- Track centralized exchange flows (deposits, withdrawals, hot/cold wallet movements)\n- Analyze DeFi protocol usage and cross-protocol interactions\n- Monitor whale and institutional wallet activities\n- Identify token contracts and their movements\n- Assess labeling coverage for active addresses\n- Create entity-based transaction flow analysis\n\n## Important Relationships\n\n- **Join with fact_transactions**: Identify exchange flows, protocol usage\n- **Join with ez_token_transfers**: Track token movements by entity type\n- **Join with dim_contracts**: Combine with contract metadata\n\n## Commonly-used Fields\n\n- `address`: Primary key for joining with transaction tables\n- `label_type`: High-level category (cex, dex, defi, token, etc.)\n- `label_subtype`: Specific categorization within type (hot_wallet, pool, etc.)\n- `project_name`: Protocol or entity name\n- `address_name`: Most specific, granular label\n- `blockchain`: Network identifier for multi-chain queries\n\n## Sample Queries\n\n**Exchange Flow Analysis**\n```sql\n-- Track CEX inflows and outflows\nWITH cex_addresses AS (\n SELECT DISTINCT address\n FROM .core.dim_labels\n WHERE label_type = 'cex'\n AND label_subtype IN ('hot_wallet', 'deposit')\n)\nSELECT \n DATE_TRUNC('day', t.block_timestamp) AS day,\n CASE \n WHEN t.to_address IN (SELECT address FROM cex_addresses) THEN 'CEX Inflow'\n WHEN t.from_address IN (SELECT address FROM cex_addresses) THEN 'CEX Outflow'\n END AS flow_direction,\n COUNT(*) AS transaction_count,\n SUM(t.value) AS total_native_value,\n COUNT(DISTINCT t.from_address) AS unique_users\nFROM .fact.fact_transactions t\nWHERE (t.to_address IN (SELECT address FROM cex_addresses)\n OR t.from_address IN (SELECT address FROM cex_addresses))\n AND t.block_timestamp >= CURRENT_DATE - 30\n AND t.value > 0\nGROUP BY 1, 2\nORDER BY 1 DESC, 2;\n```\n\n**Protocol Usage Ranking**\n```sql\n-- Top DeFi protocols by unique users\nSELECT \n l.project_name,\n l.label_type,\n COUNT(DISTINCT t.from_address) AS unique_users,\n COUNT(*) AS total_interactions,\n SUM(t.tx_fee) AS total_fees_paid\nFROM .fact.fact_transactions t\nJOIN .core.dim_labels l ON t.to_address = l.address\nWHERE l.label_type IN ('defi', 'dex')\n AND t.block_timestamp >= CURRENT_DATE - 7\n AND t.tx_status = 'SUCCESS'\nGROUP BY 1, 2\nORDER BY 3 DESC\nLIMIT 20;\n```\n\n**Whale Wallet Tracking**\n```sql\n-- Monitor large holder activities\nWITH whale_activity AS (\n SELECT \n l.address,\n l.address_name,\n l.label_type,\n COUNT(*) AS tx_count,\n SUM(CASE WHEN t.from_address = l.address THEN 1 ELSE 0 END) AS outgoing_tx,\n SUM(CASE WHEN t.to_address = l.address THEN 1 ELSE 0 END) AS incoming_tx,\n SUM(CASE WHEN t.from_address = l.address THEN t.value ELSE 0 END) AS value_sent,\n SUM(CASE WHEN t.to_address = l.address THEN t.value ELSE 0 END) AS value_received\n FROM .core.dim_labels l\n JOIN .fact.fact_transactions t \n ON l.address IN (t.from_address, t.to_address)\n WHERE l.label_type IN ('whale', 'institution', 'fund')\n AND t.block_timestamp >= CURRENT_DATE - 1\n GROUP BY 1, 2, 3\n)\nSELECT \n *,\n value_received - value_sent AS net_flow\nFROM whale_activity\nWHERE tx_count > 10\nORDER BY ABS(net_flow) DESC;\n```\n\n**Cross-Protocol Interactions**\n```sql\n-- Find addresses interacting with multiple protocols\nWITH user_protocols AS (\n SELECT \n t.from_address AS user_address,\n l.project_name,\n l.label_type,\n COUNT(*) AS interactions\n FROM .fact.fact_transactions t\n JOIN .core.dim_labels l ON t.to_address = l.address\n WHERE l.label_type IN ('defi', 'dex', 'nft')\n AND t.block_timestamp >= CURRENT_DATE - 30\n GROUP BY 1, 2, 3\n)\nSELECT \n user_address,\n COUNT(DISTINCT project_name) AS protocols_used,\n SUM(interactions) AS total_interactions,\n ARRAY_AGG(DISTINCT project_name) AS protocol_list\nFROM user_protocols\nGROUP BY 1\nHAVING COUNT(DISTINCT project_name) >= 5\nORDER BY 2 DESC\nLIMIT 100;\n```\n \n**Label Coverage Analysis**\n```sql\n-- Assess labeling coverage for active addresses\nWITH active_addresses AS (\n SELECT DISTINCT address, address_count\n FROM (\n SELECT to_address AS address, COUNT(*) AS address_count\n FROM .fact.fact_transactions\n WHERE block_timestamp >= CURRENT_DATE - 7\n GROUP BY 1\n HAVING COUNT(*) > 100\n )\n)\nSELECT \n CASE WHEN l.address IS NOT NULL THEN 'Labeled' ELSE 'Unlabeled' END AS status,\n COUNT(*) AS address_count,\n SUM(a.address_count) AS total_transactions\nFROM active_addresses a\nLEFT JOIN .core.dim_labels l ON a.address = l.address\nGROUP BY 1;\n```", "columns": {"BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "The blockchain network for this label. Required for multi-chain label queries.\n\nExample: 'ethereum'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATOR": {"name": "CREATOR", "description": "The source or creator of this label entry. Labels from verified sources may be more reliable.\n\nExample: 'flipside'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "The blockchain address (0x format) that this label describes. Lowercase hex string used as primary key for joining.\n\nExample: '0x1234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS_NAME": {"name": "ADDRESS_NAME", "description": "The most specific, granular label for this address. Provides maximum detail for precise identification.\n\nExample: 'Binance 14'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LABEL_TYPE": {"name": "LABEL_TYPE", "description": "High-level category describing the address's primary function. Core types include cex, dex, defi, token, nft, bridge, games, whale, institution, and l2.\n\nExample: 'cex'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LABEL_SUBTYPE": {"name": "LABEL_SUBTYPE", "description": "Specific categorization within the label type. Used for detailed filtering within broader categories.\n\nExample: 'hot_wallet'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LABEL": {"name": "LABEL", "description": "High-level label identifying the general entity or wallet type. Often combines project_name with label_subtype.\n\nExample: 'Binance Hot Wallet'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DIM_LABELS_ID": {"name": "DIM_LABELS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/labels/gold/core__dim_labels.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": ["address", "blockchain"], "incremental_strategy": "merge", "merge_exclude_columns": ["inserted_timestamp"], "cluster_by": "modified_timestamp::DATE", "tags": ["gold", "labels", "phase_3"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018437.8518186, "relation_name": "polygon.core.dim_labels", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = ['address', 'blockchain'],\n incremental_strategy = 'merge',\n merge_exclude_columns = [\"inserted_timestamp\"],\n cluster_by = 'modified_timestamp::DATE',\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address, label_type, label_subtype, address_name, label), SUBSTRING(address, label_type, label_subtype, address_name, label); DELETE FROM {{ this }} WHERE address in (SELECT address FROM {{ ref('silver__labels') }} WHERE _is_deleted = TRUE);\",\n tags = ['gold','labels','phase_3']\n) }}\n\nSELECT\n blockchain,\n creator,\n address,\n address_name,\n label_type,\n label_subtype,\n project_name AS label,\n {{ dbt_utils.generate_surrogate_key(['labels_id']) }} AS dim_labels_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n {{ ref('silver__labels') }} s \n\n{% if is_incremental() %}\nWHERE\n s.modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n )\n{% endif %}", "language": "sql", "refs": [{"name": "silver__labels", "package": null, "version": null}, {"name": "silver__labels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__labels"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/labels/gold/core__dim_labels.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": \"modified_timestamp::DATE\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"merge\",\n \"materialized\": \"incremental\",\n \"merge_exclude_columns\": [\n \"inserted_timestamp\"\n ],\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address, label_type, label_subtype, address_name, label), SUBSTRING(address, label_type, label_subtype, address_name, label); DELETE FROM {{ this }} WHERE address in (SELECT address FROM {{ ref(\\u0027silver__labels\\u0027) }} WHERE _is_deleted = TRUE);\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"labels\",\n \"phase_3\"\n ],\n \"unique_key\": [\n \"address\",\n \"blockchain\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = ['address', 'blockchain'],\n incremental_strategy = 'merge',\n merge_exclude_columns = [\"inserted_timestamp\"],\n cluster_by = 'modified_timestamp::DATE',\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address, label_type, label_subtype, address_name, label), SUBSTRING(address, label_type, label_subtype, address_name, label); DELETE FROM {{ this }} WHERE address in (SELECT address FROM {{ ref('silver__labels') }} WHERE _is_deleted = TRUE);\",\n tags = ['gold','labels','phase_3']\n) }}\n\nSELECT\n blockchain,\n creator,\n address,\n address_name,\n label_type,\n label_subtype,\n project_name AS label,\n {{ dbt_utils.generate_surrogate_key(['labels_id']) }} AS dim_labels_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n {{ ref('silver__labels') }} s \n\n{% if is_incremental() %}\nWHERE\n s.modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n )\n{% endif %}\n*/\n\n\n\nSELECT\n blockchain,\n creator,\n address,\n address_name,\n label_type,\n label_subtype,\n project_name AS label,\n \n \nmd5(cast(coalesce(cast(labels_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS dim_labels_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n polygon.silver.labels s \n\n\nWHERE\n s.modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n polygon.core.dim_labels\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__labels": {"database": "polygon", "schema": "bronze", "name": "bronze__labels", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/labels/bronze/bronze__labels.sql", "original_file_path": "models/main_package/labels/bronze/bronze__labels.sql", "unique_id": "model.fsc_evm.bronze__labels", "fqn": ["fsc_evm", "main_package", "labels", "bronze", "bronze__labels"], "alias": "labels", "checksum": {"name": "sha256", "checksum": "6890a6ebd7c3f05495cf9e72f41cc3b3efc3c70c6d79814afe308369500b2aa3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "labels", "phase_3"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "labels", "phase_3"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "labels", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018310.2131655, "relation_name": "polygon.bronze.labels", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n tags = ['bronze','labels','phase_3']\n) }}\n\nSELECT\n system_created_at,\n insert_date,\n blockchain,\n address,\n creator,\n label_type,\n label_subtype,\n address_name,\n project_name,\n _is_deleted,\n modified_timestamp,\n labels_combined_id\nFROM\n {{ source(\n 'crosschain_silver',\n 'labels_combined'\n ) }}\nWHERE\n blockchain IN ({% if vars.MAIN_LABELS_BLOCKCHAINS is string %}\n '{{ vars.MAIN_LABELS_BLOCKCHAINS }}'\n {% else %}\n {{ vars.MAIN_LABELS_BLOCKCHAINS | replace('[', '') | replace(']', '') }}\n {% endif %})\n AND address LIKE '0x%'", "language": "sql", "refs": [], "sources": [["crosschain_silver", "labels_combined"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.crosschain_silver.labels_combined"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/labels/bronze/bronze__labels.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"labels\",\n \"phase_3\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n tags = ['bronze','labels','phase_3']\n) }}\n\nSELECT\n system_created_at,\n insert_date,\n blockchain,\n address,\n creator,\n label_type,\n label_subtype,\n address_name,\n project_name,\n _is_deleted,\n modified_timestamp,\n labels_combined_id\nFROM\n {{ source(\n 'crosschain_silver',\n 'labels_combined'\n ) }}\nWHERE\n blockchain IN ({% if vars.MAIN_LABELS_BLOCKCHAINS is string %}\n '{{ vars.MAIN_LABELS_BLOCKCHAINS }}'\n {% else %}\n {{ vars.MAIN_LABELS_BLOCKCHAINS | replace('[', '') | replace(']', '') }}\n {% endif %})\n AND address LIKE '0x%'\n*/\n\n\n\nSELECT\n system_created_at,\n insert_date,\n blockchain,\n address,\n creator,\n label_type,\n label_subtype,\n address_name,\n project_name,\n _is_deleted,\n modified_timestamp,\n labels_combined_id\nFROM\n CROSSCHAIN.silver.labels_combined\nWHERE\n blockchain IN (\n 'polygon'\n )\n AND address LIKE '0x%'", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm._max_block_by_hour": {"database": "polygon", "schema": "_max_block_by_hour", "name": "_max_block_by_hour", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/utils/_max_block_by_hour.sql", "original_file_path": "models/main_package/utils/_max_block_by_hour.sql", "unique_id": "model.fsc_evm._max_block_by_hour", "fqn": ["fsc_evm", "main_package", "utils", "_max_block_by_hour"], "alias": "", "checksum": {"name": "sha256", "checksum": "18321ef2c93b13b44f13279175cd4ffcb1548e53987de3b36bed765b4ac7511a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "ephemeral", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018310.535176, "relation_name": null, "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\nWITH base AS (\n SELECT\n DATE_TRUNC(\n 'hour',\n block_timestamp\n ) AS block_hour,\n MAX(block_number) AS block_number\n FROM\n {{ ref(\"core__fact_blocks\") }}\n WHERE\n block_timestamp > DATEADD(\n 'day',\n -5,\n CURRENT_DATE\n )\n GROUP BY\n 1\n)\nSELECT\n block_hour,\n block_number\nFROM\n base\nWHERE\n block_hour <> (\n SELECT\n MAX(\n block_hour\n )\n FROM\n base\n )", "language": "sql", "refs": [{"name": "core__fact_blocks", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_blocks"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/utils/_max_block_by_hour.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\nWITH base AS (\n SELECT\n DATE_TRUNC(\n 'hour',\n block_timestamp\n ) AS block_hour,\n MAX(block_number) AS block_number\n FROM\n {{ ref(\"core__fact_blocks\") }}\n WHERE\n block_timestamp > DATEADD(\n 'day',\n -5,\n CURRENT_DATE\n )\n GROUP BY\n 1\n)\nSELECT\n block_hour,\n block_number\nFROM\n base\nWHERE\n block_hour <> (\n SELECT\n MAX(\n block_hour\n )\n FROM\n base\n )\n*/\n\n\n\nWITH base AS (\n SELECT\n DATE_TRUNC(\n 'hour',\n block_timestamp\n ) AS block_hour,\n MAX(block_number) AS block_number\n FROM\n polygon.core.fact_blocks\n WHERE\n block_timestamp > DATEADD(\n 'day',\n -5,\n CURRENT_DATE\n )\n GROUP BY\n 1\n)\nSELECT\n block_hour,\n block_number\nFROM\n base\nWHERE\n block_hour <> (\n SELECT\n MAX(\n block_hour\n )\n FROM\n base\n )", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm._24_hour_lookback": {"database": "polygon", "schema": "_24_hour_lookback", "name": "_24_hour_lookback", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/utils/_24_hour_lookback.sql", "original_file_path": "models/main_package/utils/_24_hour_lookback.sql", "unique_id": "model.fsc_evm._24_hour_lookback", "fqn": ["fsc_evm", "main_package", "utils", "_24_hour_lookback"], "alias": "", "checksum": {"name": "sha256", "checksum": "e100019887e329a15c7f9455bf8d7bb25f9fd5cc3259018d1c2617987f37ae84"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "ephemeral", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018310.6994023, "relation_name": null, "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n WITH max_time AS (\n SELECT\n MAX(block_timestamp) AS max_timestamp\n FROM\n {{ ref(\"core__fact_blocks\") }}\n )\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\n JOIN max_time\n ON block_timestamp BETWEEN DATEADD(\n 'hour',\n -25,\n max_timestamp\n )\n AND DATEADD(\n 'hour',\n -24,\n max_timestamp\n )", "language": "sql", "refs": [{"name": "core__fact_blocks", "package": null, "version": null}, {"name": "core__fact_blocks", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_blocks"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/utils/_24_hour_lookback.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n WITH max_time AS (\n SELECT\n MAX(block_timestamp) AS max_timestamp\n FROM\n {{ ref(\"core__fact_blocks\") }}\n )\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\n JOIN max_time\n ON block_timestamp BETWEEN DATEADD(\n 'hour',\n -25,\n max_timestamp\n )\n AND DATEADD(\n 'hour',\n -24,\n max_timestamp\n )\n*/\n\n\n\n WITH max_time AS (\n SELECT\n MAX(block_timestamp) AS max_timestamp\n FROM\n polygon.core.fact_blocks\n )\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\n JOIN max_time\n ON block_timestamp BETWEEN DATEADD(\n 'hour',\n -25,\n max_timestamp\n )\n AND DATEADD(\n 'hour',\n -24,\n max_timestamp\n )", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm._block_lookback": {"database": "polygon", "schema": "_block_lookback", "name": "_block_lookback", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/utils/_block_lookback.sql", "original_file_path": "models/main_package/utils/_block_lookback.sql", "unique_id": "model.fsc_evm._block_lookback", "fqn": ["fsc_evm", "main_package", "utils", "_block_lookback"], "alias": "", "checksum": {"name": "sha256", "checksum": "6fc60e27f83a4d0abb42c1670954bf093e63a70d49593f7531ba2d2311298913"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "ephemeral", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018310.8646991, "relation_name": null, "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}", "language": "sql", "refs": [{"name": "core__fact_blocks", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_blocks"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/utils/_block_lookback.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm._max_block_by_date": {"database": "polygon", "schema": "_max_block_by_date", "name": "_max_block_by_date", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/utils/_max_block_by_date.sql", "original_file_path": "models/main_package/utils/_max_block_by_date.sql", "unique_id": "model.fsc_evm._max_block_by_date", "fqn": ["fsc_evm", "main_package", "utils", "_max_block_by_date"], "alias": "", "checksum": {"name": "sha256", "checksum": "dff28416c6354dce3af73ebab08d871491d4e212b9515122799916e9e7cc6b4b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "ephemeral", "unique_key": "block_number", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018311.1855168, "relation_name": null, "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral',\n unique_key = 'block_number'\n) }}\n\nWITH base AS (\n SELECT\n block_timestamp :: DATE AS block_date,\n MAX(block_number) AS block_number\n FROM\n {{ ref(\"core__fact_blocks\") }}\n GROUP BY\n block_timestamp :: DATE\n)\nSELECT\n block_date,\n block_number\nFROM\n base\nWHERE\n block_date <> (\n SELECT\n MAX(block_date)\n FROM\n base\n )", "language": "sql", "refs": [{"name": "core__fact_blocks", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_blocks"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/utils/_max_block_by_date.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral',\n unique_key = 'block_number'\n) }}\n\nWITH base AS (\n SELECT\n block_timestamp :: DATE AS block_date,\n MAX(block_number) AS block_number\n FROM\n {{ ref(\"core__fact_blocks\") }}\n GROUP BY\n block_timestamp :: DATE\n)\nSELECT\n block_date,\n block_number\nFROM\n base\nWHERE\n block_date <> (\n SELECT\n MAX(block_date)\n FROM\n base\n )\n*/\n\n\n\nWITH base AS (\n SELECT\n block_timestamp :: DATE AS block_date,\n MAX(block_number) AS block_number\n FROM\n polygon.core.fact_blocks\n GROUP BY\n block_timestamp :: DATE\n)\nSELECT\n block_date,\n block_number\nFROM\n base\nWHERE\n block_date <> (\n SELECT\n MAX(block_date)\n FROM\n base\n )", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm._block_ranges": {"database": "polygon", "schema": "_block_ranges", "name": "_block_ranges", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/utils/_block_ranges.sql", "original_file_path": "models/main_package/utils/_block_ranges.sql", "unique_id": "model.fsc_evm._block_ranges", "fqn": ["fsc_evm", "main_package", "utils", "_block_ranges"], "alias": "", "checksum": {"name": "sha256", "checksum": "34f04d625b13bcc3dfabcb3402dd55efeaadbd6a9bea764f7f4bae8e396190de"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "ephemeral", "unique_key": "block_number", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018311.3494492, "relation_name": null, "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"ephemeral\",\n unique_key = \"block_number\",\n) }}\n\nSELECT\n block_number,\n CASE\n WHEN RIGHT(\n block_number,\n 1\n ) = 0 THEN block_number\n END AS block_number_10,\n CASE\n WHEN RIGHT(\n block_number,\n 2\n ) IN (\n 00,\n 25,\n 50,\n 75\n ) THEN block_number\n END AS block_number_25,\n CASE\n WHEN RIGHT(\n block_number,\n 2\n ) IN (\n 00,\n 50\n ) THEN block_number\n END AS block_number_50,\n CASE\n WHEN RIGHT(\n block_number,\n 2\n ) IN (00) THEN block_number\n END AS block_number_100,\n CASE\n WHEN RIGHT(\n block_number,\n 3\n ) IN (000) THEN block_number\n END AS block_number_1000,\n CASE\n WHEN RIGHT(\n block_number,\n 4\n ) IN (0000) THEN block_number\n END AS block_number_10000,\n block_timestamp,\n TO_TIMESTAMP_NTZ(modified_timestamp) AS modified_timestamp\nFROM\n {{ ref(\"core__fact_blocks\") }}", "language": "sql", "refs": [{"name": "core__fact_blocks", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_blocks"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/utils/_block_ranges.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"ephemeral\",\n unique_key = \"block_number\",\n) }}\n\nSELECT\n block_number,\n CASE\n WHEN RIGHT(\n block_number,\n 1\n ) = 0 THEN block_number\n END AS block_number_10,\n CASE\n WHEN RIGHT(\n block_number,\n 2\n ) IN (\n 00,\n 25,\n 50,\n 75\n ) THEN block_number\n END AS block_number_25,\n CASE\n WHEN RIGHT(\n block_number,\n 2\n ) IN (\n 00,\n 50\n ) THEN block_number\n END AS block_number_50,\n CASE\n WHEN RIGHT(\n block_number,\n 2\n ) IN (00) THEN block_number\n END AS block_number_100,\n CASE\n WHEN RIGHT(\n block_number,\n 3\n ) IN (000) THEN block_number\n END AS block_number_1000,\n CASE\n WHEN RIGHT(\n block_number,\n 4\n ) IN (0000) THEN block_number\n END AS block_number_10000,\n block_timestamp,\n TO_TIMESTAMP_NTZ(modified_timestamp) AS modified_timestamp\nFROM\n {{ ref(\"core__fact_blocks\") }}\n*/\n\n\n\nSELECT\n block_number,\n CASE\n WHEN RIGHT(\n block_number,\n 1\n ) = 0 THEN block_number\n END AS block_number_10,\n CASE\n WHEN RIGHT(\n block_number,\n 2\n ) IN (\n 00,\n 25,\n 50,\n 75\n ) THEN block_number\n END AS block_number_25,\n CASE\n WHEN RIGHT(\n block_number,\n 2\n ) IN (\n 00,\n 50\n ) THEN block_number\n END AS block_number_50,\n CASE\n WHEN RIGHT(\n block_number,\n 2\n ) IN (00) THEN block_number\n END AS block_number_100,\n CASE\n WHEN RIGHT(\n block_number,\n 3\n ) IN (000) THEN block_number\n END AS block_number_1000,\n CASE\n WHEN RIGHT(\n block_number,\n 4\n ) IN (0000) THEN block_number\n END AS block_number_10000,\n block_timestamp,\n TO_TIMESTAMP_NTZ(modified_timestamp) AS modified_timestamp\nFROM\n polygon.core.fact_blocks", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.github_actions__task_current": {"database": "polygon", "schema": "github_actions", "name": "github_actions__task_current", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/github_actions/github_actions__task_current.sql", "original_file_path": "models/main_package/github_actions/github_actions__task_current.sql", "unique_id": "model.fsc_evm.github_actions__task_current", "fqn": ["fsc_evm", "main_package", "github_actions", "github_actions__task_current"], "alias": "task_current", "checksum": {"name": "sha256", "checksum": "4820fd3cef3bed6a47360c62b534eae3b94aca2511fb897c8f8e92a39369a7fc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "gha_tasks", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "gha_tasks", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["silver", "gha_tasks", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018311.5126815, "relation_name": "polygon.github_actions.task_current", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n tags = ['silver','gha_tasks','phase_1']\n) }}\n\nSELECT \n *\nFROM \n TABLE(information_schema.current_task_graphs())\nWHERE\n database_name = UPPER('{{ target.database }}')\n AND schema_name = 'GITHUB_ACTIONS'", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": "target/compiled/fsc_evm/models/main_package/github_actions/github_actions__task_current.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"gha_tasks\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n tags = ['silver','gha_tasks','phase_1']\n) }}\n\nSELECT \n *\nFROM \n TABLE(information_schema.current_task_graphs())\nWHERE\n database_name = UPPER('{{ target.database }}')\n AND schema_name = 'GITHUB_ACTIONS'\n*/\n\n\n\nSELECT \n *\nFROM \n TABLE(information_schema.current_task_graphs())\nWHERE\n database_name = UPPER('polygon')\n AND schema_name = 'GITHUB_ACTIONS'", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.github_actions__relevant_workflows": {"database": "polygon", "schema": "github_actions", "name": "github_actions__relevant_workflows", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/github_actions/github_actions__relevant_workflows.sql", "original_file_path": "models/main_package/github_actions/github_actions__relevant_workflows.sql", "unique_id": "model.fsc_evm.github_actions__relevant_workflows", "fqn": ["fsc_evm", "main_package", "github_actions", "github_actions__relevant_workflows"], "alias": "relevant_workflows", "checksum": {"name": "sha256", "checksum": "38bcb5e07f8f57ac4c3ee65db99c978656a900563a8214561182cde5986a2377"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "gha_tasks", "phase_1"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "gha_tasks", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "table", "tags": ["silver", "gha_tasks", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018311.677096, "relation_name": "polygon.github_actions.relevant_workflows", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'table',\n tags = ['silver','gha_tasks','phase_1']\n) }}\n\nSELECT \n workflow_name,\n inserted_at\nFROM\n {{ source(\n 'github_actions',\n 'workflows'\n ) }}", "language": "sql", "refs": [], "sources": [["github_actions", "workflows"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.github_actions.workflows"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/github_actions/github_actions__relevant_workflows.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"table\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"gha_tasks\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'table',\n tags = ['silver','gha_tasks','phase_1']\n) }}\n\nSELECT \n workflow_name,\n inserted_at\nFROM\n {{ source(\n 'github_actions',\n 'workflows'\n ) }}\n*/\n\n\n\nSELECT \n workflow_name,\n inserted_at\nFROM\n polygon.github_actions.workflows", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.github_actions__task_history": {"database": "polygon", "schema": "github_actions", "name": "github_actions__task_history", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/github_actions/github_actions__task_history.sql", "original_file_path": "models/main_package/github_actions/github_actions__task_history.sql", "unique_id": "model.fsc_evm.github_actions__task_history", "fqn": ["fsc_evm", "main_package", "github_actions", "github_actions__task_history"], "alias": "task_history", "checksum": {"name": "sha256", "checksum": "9862849b040f68c8dac00b6edead372402ee937d12c64243f4eb2ee651b559fd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "gha_tasks", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "gha_tasks", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["silver", "gha_tasks", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018311.9961278, "relation_name": "polygon.github_actions.task_history", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n tags = ['silver','gha_tasks','phase_1']\n) }}\n\nSELECT\n *\nFROM\n {{ source(\n 'snowflake_account_usage',\n 'complete_task_graphs'\n ) }}\nWHERE\n database_name = UPPER('{{ target.database }}')\n AND schema_name = 'GITHUB_ACTIONS'", "language": "sql", "refs": [], "sources": [["snowflake_account_usage", "complete_task_graphs"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.fsc_evm.snowflake_account_usage.complete_task_graphs"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/github_actions/github_actions__task_history.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"gha_tasks\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n tags = ['silver','gha_tasks','phase_1']\n) }}\n\nSELECT\n *\nFROM\n {{ source(\n 'snowflake_account_usage',\n 'complete_task_graphs'\n ) }}\nWHERE\n database_name = UPPER('{{ target.database }}')\n AND schema_name = 'GITHUB_ACTIONS'\n*/\n\n\n\nSELECT\n *\nFROM\n snowflake.account_usage.complete_task_graphs\nWHERE\n database_name = UPPER('polygon')\n AND schema_name = 'GITHUB_ACTIONS'", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.github_actions__workflow_status": {"database": "polygon", "schema": "github_actions", "name": "github_actions__workflow_status", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/github_actions/github_actions__workflow_status.sql", "original_file_path": "models/main_package/github_actions/github_actions__workflow_status.sql", "unique_id": "model.fsc_evm.github_actions__workflow_status", "fqn": ["fsc_evm", "main_package", "github_actions", "github_actions__workflow_status"], "alias": "workflow_status", "checksum": {"name": "sha256", "checksum": "17affe40183acce399093129abce14102615be96bb1542a16d9a973a937cfc4d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "gha_tasks"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "gha_tasks"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["silver", "gha_tasks"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018312.161814, "relation_name": "polygon.github_actions.workflow_status", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n tags = ['silver','gha_tasks']\n) }}\n\nSELECT\n NAME,\n status,\n created_at,\n updated_at,\n run_started_at,\n run_attempt,\n run_number,\n CASE\n -- For in-progress workflows: use current time since they're still running\n WHEN LOWER(status) = 'in progress' \n THEN TIMESTAMPDIFF(seconds, run_started_at, SYSDATE()) / 60\n -- For queued/waiting workflows: use time since creation\n WHEN LOWER(status) IN ('queued', 'waiting') \n THEN TIMESTAMPDIFF(seconds, created_at, SYSDATE()) / 60\n -- For all other statuses (completed, failed, cancelled, etc): use actual duration\n ELSE TIMESTAMPDIFF(seconds, run_started_at, updated_at) / 60\n END AS run_minutes,\n id,\n workflow_id,\n html_url\nFROM\n TABLE(\n github_actions.tf_runs(\n 'FlipsideCrypto',\n '{{ vars.GLOBAL_PROJECT_NAME.lower() }}' || '-models',\n {'per_page':'100'}\n )\n )", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": "target/compiled/fsc_evm/models/main_package/github_actions/github_actions__workflow_status.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"gha_tasks\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n tags = ['silver','gha_tasks']\n) }}\n\nSELECT\n NAME,\n status,\n created_at,\n updated_at,\n run_started_at,\n run_attempt,\n run_number,\n CASE\n -- For in-progress workflows: use current time since they're still running\n WHEN LOWER(status) = 'in progress' \n THEN TIMESTAMPDIFF(seconds, run_started_at, SYSDATE()) / 60\n -- For queued/waiting workflows: use time since creation\n WHEN LOWER(status) IN ('queued', 'waiting') \n THEN TIMESTAMPDIFF(seconds, created_at, SYSDATE()) / 60\n -- For all other statuses (completed, failed, cancelled, etc): use actual duration\n ELSE TIMESTAMPDIFF(seconds, run_started_at, updated_at) / 60\n END AS run_minutes,\n id,\n workflow_id,\n html_url\nFROM\n TABLE(\n github_actions.tf_runs(\n 'FlipsideCrypto',\n '{{ vars.GLOBAL_PROJECT_NAME.lower() }}' || '-models',\n {'per_page':'100'}\n )\n )\n*/\n\n\n\nSELECT\n NAME,\n status,\n created_at,\n updated_at,\n run_started_at,\n run_attempt,\n run_number,\n CASE\n -- For in-progress workflows: use current time since they're still running\n WHEN LOWER(status) = 'in progress' \n THEN TIMESTAMPDIFF(seconds, run_started_at, SYSDATE()) / 60\n -- For queued/waiting workflows: use time since creation\n WHEN LOWER(status) IN ('queued', 'waiting') \n THEN TIMESTAMPDIFF(seconds, created_at, SYSDATE()) / 60\n -- For all other statuses (completed, failed, cancelled, etc): use actual duration\n ELSE TIMESTAMPDIFF(seconds, run_started_at, updated_at) / 60\n END AS run_minutes,\n id,\n workflow_id,\n html_url\nFROM\n TABLE(\n github_actions.tf_runs(\n 'FlipsideCrypto',\n 'polygon' || '-models',\n {'per_page':'100'}\n )\n )", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.github_actions__workflow_schedule": {"database": "polygon", "schema": "github_actions", "name": "github_actions__workflow_schedule", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/github_actions/github_actions__workflow_schedule.sql", "original_file_path": "models/main_package/github_actions/github_actions__workflow_schedule.sql", "unique_id": "model.fsc_evm.github_actions__workflow_schedule", "fqn": ["fsc_evm", "main_package", "github_actions", "github_actions__workflow_schedule"], "alias": "workflow_schedule", "checksum": {"name": "sha256", "checksum": "089598c8931142f730c29a3d01106b35c5522e252a118692948aac5b311a5ce0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "gha_tasks", "phase_1"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "gha_tasks", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "table", "tags": ["silver", "gha_tasks", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018312.4833283, "relation_name": "polygon.github_actions.workflow_schedule", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'table',\n tags = ['silver','gha_tasks','phase_1']\n) }}\n\nWITH workflows AS (\n {{ generate_workflow_schedules(\n vars.MAIN_GHA_STREAMLINE_CHAINHEAD_CRON\n ) }}\n)\nSELECT\n concat_ws(\n '_',\n 'TRIGGER',\n UPPER(\n w.workflow_name\n )\n ) AS task_name,\n w.workflow_name,\n w.cadence,\n w.cron_schedule\nFROM\n workflows w\n INNER JOIN {{ ref('github_actions__relevant_workflows') }}\n t\n ON w.workflow_name = t.workflow_name", "language": "sql", "refs": [{"name": "github_actions__relevant_workflows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.generate_workflow_schedules", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.github_actions__relevant_workflows"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/github_actions/github_actions__workflow_schedule.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"table\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"gha_tasks\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'table',\n tags = ['silver','gha_tasks','phase_1']\n) }}\n\nWITH workflows AS (\n {{ generate_workflow_schedules(\n vars.MAIN_GHA_STREAMLINE_CHAINHEAD_CRON\n ) }}\n)\nSELECT\n concat_ws(\n '_',\n 'TRIGGER',\n UPPER(\n w.workflow_name\n )\n ) AS task_name,\n w.workflow_name,\n w.cadence,\n w.cron_schedule\nFROM\n workflows w\n INNER JOIN {{ ref('github_actions__relevant_workflows') }}\n t\n ON w.workflow_name = t.workflow_name\n*/\n\n\n\nWITH workflows AS (\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_streamline_chainhead' AS workflow_name,\n \n '25,55 * * * *'\n AS cron_schedule,\n 'root' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_scheduled_main' AS workflow_name,\n \n \n '10 * * * *'\n \n AS cron_schedule,\n 'hourly' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_scheduled_decoder' AS workflow_name,\n \n \n '35 * * * *'\n \n AS cron_schedule,\n 'hourly' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_scheduled_curated' AS workflow_name,\n \n \n '25 */4 * * *'\n \n AS cron_schedule,\n 'every_4_hours' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_scheduled_curated_daily' AS workflow_name,\n \n \n '40 9 * * *'\n \n AS cron_schedule,\n 'daily' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_scheduled_abis' AS workflow_name,\n \n \n '15 8 * * *'\n \n AS cron_schedule,\n 'daily' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_scheduled_scores' AS workflow_name,\n \n \n '15 5 * * *'\n \n AS cron_schedule,\n 'daily' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_test_daily' AS workflow_name,\n \n \n '45 10 * * *'\n \n AS cron_schedule,\n 'daily' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_test_intraday' AS workflow_name,\n \n \n '45 */4 * * *'\n \n AS cron_schedule,\n 'every_4_hours' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_test_monthly' AS workflow_name,\n \n \n '15 8 28 * *'\n \n AS cron_schedule,\n 'monthly' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_heal_models' AS workflow_name,\n \n \n '40 13 * * 0'\n \n AS cron_schedule,\n 'weekly' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_full_observability' AS workflow_name,\n \n \n '20 9 28 * *'\n \n AS cron_schedule,\n 'monthly' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_dev_refresh' AS workflow_name,\n \n \n '35 14 * * 1'\n \n AS cron_schedule,\n 'weekly' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_streamline_decoder_history' AS workflow_name,\n \n \n '25 10 * * 6'\n \n AS cron_schedule,\n 'weekly' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_streamline_balances_history' AS workflow_name,\n \n \n '40 16 * * 0'\n \n AS cron_schedule,\n 'weekly' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_streamline_reads_history' AS workflow_name,\n \n \n '40 14 * * 0'\n \n AS cron_schedule,\n 'weekly' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_streamline_dexalot_chainhead' AS workflow_name,\n \n 'None'\n AS cron_schedule,\n 'custom' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_scheduled_dexalot_main' AS workflow_name,\n \n 'None'\n AS cron_schedule,\n 'custom' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_test_beacon' AS workflow_name,\n \n 'None'\n AS cron_schedule,\n 'custom' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_streamline_reads' AS workflow_name,\n \n 'None'\n AS cron_schedule,\n 'custom' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_streamline_beacon' AS workflow_name,\n \n 'None'\n AS cron_schedule,\n 'custom' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_scheduled_beacon' AS workflow_name,\n \n 'None'\n AS cron_schedule,\n 'custom' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_nft_reads' AS workflow_name,\n \n 'None'\n AS cron_schedule,\n 'custom' AS cadence\n \n \n UNION ALL\n \n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n SELECT \n 'dbt_run_nft_list' AS workflow_name,\n \n 'None'\n AS cron_schedule,\n 'custom' AS cadence\n \n \n\n\n\n)\nSELECT\n concat_ws(\n '_',\n 'TRIGGER',\n UPPER(\n w.workflow_name\n )\n ) AS task_name,\n w.workflow_name,\n w.cadence,\n w.cron_schedule\nFROM\n workflows w\n INNER JOIN polygon.github_actions.relevant_workflows\n t\n ON w.workflow_name = t.workflow_name", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__traces": {"database": "polygon", "schema": "silver", "name": "silver__traces", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/silver__traces.sql", "original_file_path": "models/main_package/core/silver/silver__traces.sql", "unique_id": "model.fsc_evm.silver__traces", "fqn": ["fsc_evm", "main_package", "core", "silver", "silver__traces"], "alias": "traces", "checksum": {"name": "sha256", "checksum": "5aae6bbec563149599f3af41e1dc3db60ecc78c1dc81f2509efce2a2ac260ee4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "core", "traces", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["modified_timestamp::DATE", "partition_key"], "incremental_predicates": ["polygon.\n \n silver.\n \n traces.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n silver.\n \n traces__dbt_tmp\n )"]}, "tags": ["silver", "core", "traces", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["modified_timestamp::DATE", "partition_key"], "incremental_predicates": ["polygon.\n \n silver.\n \n traces.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n silver.\n \n traces__dbt_tmp\n )"], "full_refresh": false, "tags": ["silver", "core", "traces", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018312.9872375, "relation_name": "polygon.silver.traces", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze__traces') }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['modified_timestamp::DATE','partition_key'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','core','traces','phase_2']\n) }}\n\n WITH bronze_traces AS (\n SELECT\n block_number,\n {% if vars.MAIN_CORE_SILVER_TRACES_PARTITION_KEY_ENABLED %}\n partition_key,\n {% else %}\n _partition_by_block_id AS partition_key,\n {% endif %}\n\n VALUE :array_index :: INT AS tx_position,\n DATA :result AS full_traces,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n DATA :txHash :: STRING AS tx_hash,\n {% endif %}\n _inserted_timestamp\n FROM\n\n{% if is_incremental() and not vars.MAIN_CORE_SILVER_TRACES_FULL_RELOAD_ENABLED %}\n{{ ref('bronze__traces') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1900-01-01') _inserted_timestamp\n FROM\n {{ this }}\n ) AND DATA :result IS NOT NULL \n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% if vars.MAIN_CORE_TRACES_ARB_MODE %}\n AND block_number > 22207817\n {% endif %}\n\n {% elif is_incremental() and vars.MAIN_CORE_SILVER_TRACES_FULL_RELOAD_ENABLED %}\n {{ ref('bronze__traces_fr') }}\nWHERE\n {% if vars.MAIN_CORE_SILVER_TRACES_PARTITION_KEY_ENABLED %}\n partition_key BETWEEN (\n SELECT\n MAX(partition_key) - 100000\n FROM\n {{ this }}\n )\n AND (\n SELECT\n MAX(partition_key) + {{ vars.MAIN_CORE_SILVER_TRACES_FULL_RELOAD_BLOCKS_PER_RUN }}\n FROM\n {{ this }}\n )\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% else %}\n _partition_by_block_id BETWEEN (\n SELECT\n MAX(_partition_by_block_id) - 100000\n FROM\n {{ this }}\n )\n AND (\n SELECT\n MAX(_partition_by_block_id) + {{ vars.MAIN_CORE_SILVER_TRACES_FULL_RELOAD_BLOCKS_PER_RUN }}\n FROM\n {{ this }}\n )\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% endif %}\n\n {% if vars.MAIN_CORE_TRACES_ARB_MODE %}\n AND block_number > 22207817\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% endif %}\n{% else %}\n {{ ref('bronze__traces_fr') }}\nWHERE 1=1\n {% if not vars.GLOBAL_NEW_BUILD_ENABLED %}\n {% if vars.MAIN_CORE_SILVER_TRACES_PARTITION_KEY_ENABLED %}\n AND partition_key <= {{ vars.MAIN_CORE_SILVER_TRACES_FR_MAX_BLOCK }}\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% else %}\n AND _partition_by_block_id <= {{ vars.MAIN_CORE_SILVER_TRACES_FR_MAX_BLOCK }}\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% endif %}\n {% endif %}\n\n {% if vars.MAIN_CORE_TRACES_ARB_MODE %}\n AND block_number > 22207817\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% endif %}\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY block_number, tx_position\nORDER BY\n _inserted_timestamp DESC)) = 1\n),\nflatten_traces AS (\n SELECT\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n partition_key,\n IFF(\n path IN (\n 'result',\n 'result.value',\n 'result.type',\n 'result.to',\n 'result.input',\n 'result.gasUsed',\n 'result.gas',\n 'result.from',\n 'result.output',\n 'result.error',\n 'result.revertReason',\n 'result.time',\n 'gasUsed',\n 'gas',\n 'type',\n 'to',\n 'from',\n 'value',\n 'input',\n 'error',\n 'output',\n 'time',\n 'revertReason' \n {% if vars.MAIN_CORE_TRACES_ARB_MODE %},\n 'afterEVMTransfers',\n 'beforeEVMTransfers',\n 'result.afterEVMTransfers',\n 'result.beforeEVMTransfers'\n {% endif %}\n {% if vars.MAIN_CORE_TRACES_KAIA_MODE %},\n 'reverted',\n 'result.reverted'\n {% endif %}\n ),\n 'ORIGIN',\n REGEXP_REPLACE(REGEXP_REPLACE(path, '[^0-9]+', '_'), '^_|_$', '')\n ) AS trace_address,\n _inserted_timestamp,\n OBJECT_AGG(\n key,\n VALUE\n ) AS trace_json,\n CASE\n WHEN trace_address = 'ORIGIN' THEN NULL\n WHEN POSITION(\n '_' IN trace_address\n ) = 0 THEN 'ORIGIN'\n ELSE REGEXP_REPLACE(\n trace_address,\n '_[0-9]+$',\n '',\n 1,\n 1\n )\n END AS parent_trace_address,\n SPLIT(\n trace_address,\n '_'\n ) AS trace_address_array\n FROM\n bronze_traces txs,\n TABLE(\n FLATTEN(\n input => PARSE_JSON(\n txs.full_traces\n ),\n recursive => TRUE\n )\n ) f\n WHERE\n f.index IS NULL\n AND f.key != 'calls'\n AND f.path != 'result' \n AND (trace_address_array :: VARIANT) :: STRING <> '[\"\"]'\n {% if vars.MAIN_CORE_TRACES_ARB_MODE %}\n AND f.path NOT LIKE 'afterEVMTransfers[%'\n AND f.path NOT LIKE 'beforeEVMTransfers[%'\n {% endif %}\n {% if vars.MAIN_CORE_TRACES_KAIA_MODE %}\n and f.key not in ('message', 'contract')\n {% endif %}\n GROUP BY\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n partition_key,\n trace_address,\n _inserted_timestamp\n)\nSELECT\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address,\n parent_trace_address,\n trace_address_array,\n trace_json,\n partition_key,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['block_number'] + \n (['tx_hash'] if vars.MAIN_CORE_TRACES_SEI_MODE else ['tx_position']) + \n ['trace_address']\n ) }} AS traces_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n flatten_traces \nWHERE trace_json :\"type\" :: STRING IS NOT NULL\nqualify(ROW_NUMBER() over(PARTITION BY traces_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__traces", "package": null, "version": null}, {"name": "bronze__traces_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.standard_predicate", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__traces", "model.fsc_evm.bronze__traces_fr"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/silver__traces.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"modified_timestamp::DATE\",\n \"partition_key\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"polygon.\\n \\n silver.\\n \\n traces.block_number \\u003e= (\\n SELECT\\n MIN(\\n block_number\\n )\\n FROM\\n polygon.\\n \\n silver.\\n \\n traces__dbt_tmp\\n )\"\n ],\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"core\",\n \"traces\",\n \"phase_2\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze__traces') }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['modified_timestamp::DATE','partition_key'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','core','traces','phase_2']\n) }}\n\n WITH bronze_traces AS (\n SELECT\n block_number,\n {% if vars.MAIN_CORE_SILVER_TRACES_PARTITION_KEY_ENABLED %}\n partition_key,\n {% else %}\n _partition_by_block_id AS partition_key,\n {% endif %}\n\n VALUE :array_index :: INT AS tx_position,\n DATA :result AS full_traces,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n DATA :txHash :: STRING AS tx_hash,\n {% endif %}\n _inserted_timestamp\n FROM\n\n{% if is_incremental() and not vars.MAIN_CORE_SILVER_TRACES_FULL_RELOAD_ENABLED %}\n{{ ref('bronze__traces') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1900-01-01') _inserted_timestamp\n FROM\n {{ this }}\n ) AND DATA :result IS NOT NULL \n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% if vars.MAIN_CORE_TRACES_ARB_MODE %}\n AND block_number > 22207817\n {% endif %}\n\n {% elif is_incremental() and vars.MAIN_CORE_SILVER_TRACES_FULL_RELOAD_ENABLED %}\n {{ ref('bronze__traces_fr') }}\nWHERE\n {% if vars.MAIN_CORE_SILVER_TRACES_PARTITION_KEY_ENABLED %}\n partition_key BETWEEN (\n SELECT\n MAX(partition_key) - 100000\n FROM\n {{ this }}\n )\n AND (\n SELECT\n MAX(partition_key) + {{ vars.MAIN_CORE_SILVER_TRACES_FULL_RELOAD_BLOCKS_PER_RUN }}\n FROM\n {{ this }}\n )\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% else %}\n _partition_by_block_id BETWEEN (\n SELECT\n MAX(_partition_by_block_id) - 100000\n FROM\n {{ this }}\n )\n AND (\n SELECT\n MAX(_partition_by_block_id) + {{ vars.MAIN_CORE_SILVER_TRACES_FULL_RELOAD_BLOCKS_PER_RUN }}\n FROM\n {{ this }}\n )\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% endif %}\n\n {% if vars.MAIN_CORE_TRACES_ARB_MODE %}\n AND block_number > 22207817\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% endif %}\n{% else %}\n {{ ref('bronze__traces_fr') }}\nWHERE 1=1\n {% if not vars.GLOBAL_NEW_BUILD_ENABLED %}\n {% if vars.MAIN_CORE_SILVER_TRACES_PARTITION_KEY_ENABLED %}\n AND partition_key <= {{ vars.MAIN_CORE_SILVER_TRACES_FR_MAX_BLOCK }}\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% else %}\n AND _partition_by_block_id <= {{ vars.MAIN_CORE_SILVER_TRACES_FR_MAX_BLOCK }}\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% endif %}\n {% endif %}\n\n {% if vars.MAIN_CORE_TRACES_ARB_MODE %}\n AND block_number > 22207817\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% endif %}\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY block_number, tx_position\nORDER BY\n _inserted_timestamp DESC)) = 1\n),\nflatten_traces AS (\n SELECT\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n partition_key,\n IFF(\n path IN (\n 'result',\n 'result.value',\n 'result.type',\n 'result.to',\n 'result.input',\n 'result.gasUsed',\n 'result.gas',\n 'result.from',\n 'result.output',\n 'result.error',\n 'result.revertReason',\n 'result.time',\n 'gasUsed',\n 'gas',\n 'type',\n 'to',\n 'from',\n 'value',\n 'input',\n 'error',\n 'output',\n 'time',\n 'revertReason' \n {% if vars.MAIN_CORE_TRACES_ARB_MODE %},\n 'afterEVMTransfers',\n 'beforeEVMTransfers',\n 'result.afterEVMTransfers',\n 'result.beforeEVMTransfers'\n {% endif %}\n {% if vars.MAIN_CORE_TRACES_KAIA_MODE %},\n 'reverted',\n 'result.reverted'\n {% endif %}\n ),\n 'ORIGIN',\n REGEXP_REPLACE(REGEXP_REPLACE(path, '[^0-9]+', '_'), '^_|_$', '')\n ) AS trace_address,\n _inserted_timestamp,\n OBJECT_AGG(\n key,\n VALUE\n ) AS trace_json,\n CASE\n WHEN trace_address = 'ORIGIN' THEN NULL\n WHEN POSITION(\n '_' IN trace_address\n ) = 0 THEN 'ORIGIN'\n ELSE REGEXP_REPLACE(\n trace_address,\n '_[0-9]+$',\n '',\n 1,\n 1\n )\n END AS parent_trace_address,\n SPLIT(\n trace_address,\n '_'\n ) AS trace_address_array\n FROM\n bronze_traces txs,\n TABLE(\n FLATTEN(\n input => PARSE_JSON(\n txs.full_traces\n ),\n recursive => TRUE\n )\n ) f\n WHERE\n f.index IS NULL\n AND f.key != 'calls'\n AND f.path != 'result' \n AND (trace_address_array :: VARIANT) :: STRING <> '[\"\"]'\n {% if vars.MAIN_CORE_TRACES_ARB_MODE %}\n AND f.path NOT LIKE 'afterEVMTransfers[%'\n AND f.path NOT LIKE 'beforeEVMTransfers[%'\n {% endif %}\n {% if vars.MAIN_CORE_TRACES_KAIA_MODE %}\n and f.key not in ('message', 'contract')\n {% endif %}\n GROUP BY\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n partition_key,\n trace_address,\n _inserted_timestamp\n)\nSELECT\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address,\n parent_trace_address,\n trace_address_array,\n trace_json,\n partition_key,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['block_number'] + \n (['tx_hash'] if vars.MAIN_CORE_TRACES_SEI_MODE else ['tx_position']) + \n ['trace_address']\n ) }} AS traces_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n flatten_traces \nWHERE trace_json :\"type\" :: STRING IS NOT NULL\nqualify(ROW_NUMBER() over(PARTITION BY traces_id\nORDER BY\n _inserted_timestamp DESC)) = 1\n*/\n\n-- depends_on: polygon.bronze.traces\n\n\n\n WITH bronze_traces AS (\n SELECT\n block_number,\n \n partition_key,\n \n\n VALUE :array_index :: INT AS tx_position,\n DATA :result AS full_traces,\n \n _inserted_timestamp\n FROM\n\n\npolygon.bronze.traces\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1900-01-01') _inserted_timestamp\n FROM\n polygon.silver.traces\n ) AND DATA :result IS NOT NULL \n AND block_number >= 0\n \n\n \n\nqualify(ROW_NUMBER() over (PARTITION BY block_number, tx_position\nORDER BY\n _inserted_timestamp DESC)) = 1\n),\nflatten_traces AS (\n SELECT\n block_number,\n \n tx_position,\n \n partition_key,\n IFF(\n path IN (\n 'result',\n 'result.value',\n 'result.type',\n 'result.to',\n 'result.input',\n 'result.gasUsed',\n 'result.gas',\n 'result.from',\n 'result.output',\n 'result.error',\n 'result.revertReason',\n 'result.time',\n 'gasUsed',\n 'gas',\n 'type',\n 'to',\n 'from',\n 'value',\n 'input',\n 'error',\n 'output',\n 'time',\n 'revertReason' \n \n \n ),\n 'ORIGIN',\n REGEXP_REPLACE(REGEXP_REPLACE(path, '[^0-9]+', '_'), '^_|_$', '')\n ) AS trace_address,\n _inserted_timestamp,\n OBJECT_AGG(\n key,\n VALUE\n ) AS trace_json,\n CASE\n WHEN trace_address = 'ORIGIN' THEN NULL\n WHEN POSITION(\n '_' IN trace_address\n ) = 0 THEN 'ORIGIN'\n ELSE REGEXP_REPLACE(\n trace_address,\n '_[0-9]+$',\n '',\n 1,\n 1\n )\n END AS parent_trace_address,\n SPLIT(\n trace_address,\n '_'\n ) AS trace_address_array\n FROM\n bronze_traces txs,\n TABLE(\n FLATTEN(\n input => PARSE_JSON(\n txs.full_traces\n ),\n recursive => TRUE\n )\n ) f\n WHERE\n f.index IS NULL\n AND f.key != 'calls'\n AND f.path != 'result' \n AND (trace_address_array :: VARIANT) :: STRING <> '[\"\"]'\n \n \n GROUP BY\n block_number,\n \n tx_position,\n \n partition_key,\n trace_address,\n _inserted_timestamp\n)\nSELECT\n block_number,\n \n tx_position,\n \n trace_address,\n parent_trace_address,\n trace_address_array,\n trace_json,\n partition_key,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(block_number as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(tx_position as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(trace_address as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS traces_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n flatten_traces \nWHERE trace_json :\"type\" :: STRING IS NOT NULL\nqualify(ROW_NUMBER() over(PARTITION BY traces_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__confirm_blocks": {"database": "polygon", "schema": "silver", "name": "silver__confirm_blocks", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/silver__confirm_blocks.sql", "original_file_path": "models/main_package/core/silver/silver__confirm_blocks.sql", "unique_id": "model.fsc_evm.silver__confirm_blocks", "fqn": ["fsc_evm", "main_package", "core", "silver", "silver__confirm_blocks"], "alias": "confirm_blocks", "checksum": {"name": "sha256", "checksum": "4316b03a6dd65b2b4d131ed74df5724f0ef3be4b2fb0acaf363b8cf297914e1b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "core", "confirm_blocks", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "incremental_predicates": ["polygon.\n \n silver.\n \n confirm_blocks.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n silver.\n \n confirm_blocks__dbt_tmp\n )"]}, "tags": ["silver", "core", "confirm_blocks", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "incremental_predicates": ["polygon.\n \n silver.\n \n confirm_blocks.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n silver.\n \n confirm_blocks__dbt_tmp\n )"], "full_refresh": false, "tags": ["silver", "core", "confirm_blocks", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018313.3182437, "relation_name": "polygon.silver.confirm_blocks", "raw_code": "-- depends_on: {{ ref('bronze__confirm_blocks') }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{% if is_incremental() %}\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['modified_timestamp::DATE','partition_key'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','core','confirm_blocks','phase_2']\n) }}\n{% else %}\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','core','confirm_blocks','phase_2']\n) }}\n{% endif %}\n\nWITH bronze_confirm_blocks AS (\n SELECT \n block_number,\n partition_key,\n DATA:result AS block_json,\n block_json :hash :: STRING AS block_hash,\n block_json :transactions AS txs,\n _inserted_timestamp\n FROM \n {% if is_incremental() %}\n {% if vars.MAIN_CORE_SILVER_CONFIRM_BLOCKS_FULL_RELOAD_ENABLED %}\n {{ ref('bronze__confirm_blocks') }}\n WHERE block_number >= (\n SELECT COALESCE(MAX(block_number), 0) FROM {{ this }}\n )\n AND block_number < (\n SELECT COALESCE(MAX(block_number), 0) FROM {{ this }} \n ) +5000000\n AND DATA:result IS NOT NULL\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% else %}\n {{ ref('bronze__confirm_blocks') }}\n WHERE _inserted_timestamp >= (\n SELECT COALESCE(MAX(_inserted_timestamp), '1900-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM {{ this }}\n ) AND DATA:result IS NOT NULL\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% endif %}\n {% else %}\n {{ ref('bronze__confirm_blocks_fr') }}\n WHERE DATA:result IS NOT NULL\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% endif %}\n\n qualify(ROW_NUMBER() over (PARTITION BY block_number ORDER BY _inserted_timestamp DESC)) = 1\n)\n\nSELECT \n block_number,\n partition_key,\n block_json,\n block_hash,\n VALUE :: STRING AS tx_hash,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(['block_number','tx_hash']) }} AS confirm_blocks_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM bronze_confirm_blocks,\n LATERAL FLATTEN (\n input => txs\n )", "language": "sql", "refs": [{"name": "bronze__confirm_blocks", "package": null, "version": null}, {"name": "bronze__confirm_blocks_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.standard_predicate", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__confirm_blocks", "model.fsc_evm.bronze__confirm_blocks_fr"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/silver__confirm_blocks.sql", "compiled": true, "compiled_code": "-- depends_on: polygon.bronze.confirm_blocks\n\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"polygon.\\n \\n silver.\\n \\n confirm_blocks.block_number \\u003e= (\\n SELECT\\n MIN(\\n block_number\\n )\\n FROM\\n polygon.\\n \\n silver.\\n \\n confirm_blocks__dbt_tmp\\n )\"\n ],\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"core\",\n \"confirm_blocks\",\n \"phase_2\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n-- depends_on: {{ ref('bronze__confirm_blocks') }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{% if is_incremental() %}\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['modified_timestamp::DATE','partition_key'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','core','confirm_blocks','phase_2']\n) }}\n{% else %}\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','core','confirm_blocks','phase_2']\n) }}\n{% endif %}\n\nWITH bronze_confirm_blocks AS (\n SELECT \n block_number,\n partition_key,\n DATA:result AS block_json,\n block_json :hash :: STRING AS block_hash,\n block_json :transactions AS txs,\n _inserted_timestamp\n FROM \n {% if is_incremental() %}\n {% if vars.MAIN_CORE_SILVER_CONFIRM_BLOCKS_FULL_RELOAD_ENABLED %}\n {{ ref('bronze__confirm_blocks') }}\n WHERE block_number >= (\n SELECT COALESCE(MAX(block_number), 0) FROM {{ this }}\n )\n AND block_number < (\n SELECT COALESCE(MAX(block_number), 0) FROM {{ this }} \n ) +5000000\n AND DATA:result IS NOT NULL\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% else %}\n {{ ref('bronze__confirm_blocks') }}\n WHERE _inserted_timestamp >= (\n SELECT COALESCE(MAX(_inserted_timestamp), '1900-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM {{ this }}\n ) AND DATA:result IS NOT NULL\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% endif %}\n {% else %}\n {{ ref('bronze__confirm_blocks_fr') }}\n WHERE DATA:result IS NOT NULL\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% endif %}\n\n qualify(ROW_NUMBER() over (PARTITION BY block_number ORDER BY _inserted_timestamp DESC)) = 1\n)\n\nSELECT \n block_number,\n partition_key,\n block_json,\n block_hash,\n VALUE :: STRING AS tx_hash,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(['block_number','tx_hash']) }} AS confirm_blocks_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM bronze_confirm_blocks,\n LATERAL FLATTEN (\n input => txs\n )\n*/\n\n\n\n\n\nWITH bronze_confirm_blocks AS (\n SELECT \n block_number,\n partition_key,\n DATA:result AS block_json,\n block_json :hash :: STRING AS block_hash,\n block_json :transactions AS txs,\n _inserted_timestamp\n FROM \n \n \n polygon.bronze.confirm_blocks\n WHERE _inserted_timestamp >= (\n SELECT COALESCE(MAX(_inserted_timestamp), '1900-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM polygon.silver.confirm_blocks\n ) AND DATA:result IS NOT NULL\n AND block_number >= 0\n \n \n\n qualify(ROW_NUMBER() over (PARTITION BY block_number ORDER BY _inserted_timestamp DESC)) = 1\n)\n\nSELECT \n block_number,\n partition_key,\n block_json,\n block_hash,\n VALUE :: STRING AS tx_hash,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(block_number as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS confirm_blocks_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM bronze_confirm_blocks,\n LATERAL FLATTEN (\n input => txs\n )", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__receipts": {"database": "polygon", "schema": "silver", "name": "silver__receipts", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/silver__receipts.sql", "original_file_path": "models/main_package/core/silver/silver__receipts.sql", "unique_id": "model.fsc_evm.silver__receipts", "fqn": ["fsc_evm", "main_package", "core", "silver", "silver__receipts"], "alias": "receipts", "checksum": {"name": "sha256", "checksum": "7d02c133f8659edae93726cffefb5c35d4486c01ab8dec9b5c5636ae2d3c1fe6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "core", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(array_index, block_number)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["modified_timestamp::DATE", "partition_key"], "incremental_predicates": ["polygon.\n \n silver.\n \n receipts.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n silver.\n \n receipts__dbt_tmp\n )"]}, "tags": ["silver", "core", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["modified_timestamp::DATE", "partition_key"], "incremental_predicates": ["polygon.\n \n silver.\n \n receipts.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n silver.\n \n receipts__dbt_tmp\n )"], "full_refresh": false, "tags": ["silver", "core", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018313.6422014, "relation_name": "polygon.silver.receipts", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze__' ~ vars.MAIN_CORE_SILVER_RECEIPTS_SOURCE_NAME.lower()) }}\n-- depends_on: {{ ref('bronze__' ~ vars.MAIN_CORE_SILVER_RECEIPTS_SOURCE_NAME.lower() ~ '_fr') }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = vars.MAIN_CORE_SILVER_RECEIPTS_UNIQUE_KEY,\n cluster_by = ['modified_timestamp::DATE','partition_key'],\n post_hook = vars.MAIN_CORE_SILVER_RECEIPTS_POST_HOOK,\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','core','phase_2']\n) }}\n\nWITH bronze_receipts AS (\n SELECT \n block_number,\n partition_key,\n {% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n tx_hash,\n DATA:result AS receipts_json,\n {% else %}\n array_index,\n DATA AS receipts_json,\n {% endif %}\n _inserted_timestamp\n FROM \n {% if is_incremental() %}\n {{ ref('bronze__' ~ vars.MAIN_CORE_SILVER_RECEIPTS_SOURCE_NAME.lower()) }}\n WHERE _inserted_timestamp >= (\n SELECT \n COALESCE(MAX(_inserted_timestamp), '1900-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM {{ this }}\n )\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n AND \n {% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n DATA:result IS NOT NULL\n {% else %}\n DATA IS NOT NULL\n {% endif %}\n {% else %}\n {{ ref('bronze__' ~ vars.MAIN_CORE_SILVER_RECEIPTS_SOURCE_NAME.lower() ~ '_fr') }}\n WHERE \n {% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n DATA:result IS NOT NULL\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% else %}\n DATA IS NOT NULL\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% endif %}\n {% endif %}\n)\n\nSELECT \n block_number,\n partition_key,\n {% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n tx_hash,\n {% else %}\n array_index,\n {% endif %}\n receipts_json,\n _inserted_timestamp,\n {% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n {{ dbt_utils.generate_surrogate_key(['block_number','tx_hash']) }} AS receipts_id,\n {% else %}\n {{ dbt_utils.generate_surrogate_key(['block_number','array_index']) }} AS receipts_id,\n {% endif %}\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM bronze_receipts\n{% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\nQUALIFY ROW_NUMBER() OVER (PARTITION BY tx_hash ORDER BY block_number DESC, _inserted_timestamp DESC) = 1\n{% else %}\nQUALIFY(ROW_NUMBER() OVER (PARTITION BY block_number, array_index ORDER BY _inserted_timestamp DESC)) = 1\n{% endif %}", "language": "sql", "refs": [{"name": "bronze__receipts", "package": null, "version": null}, {"name": "bronze__receipts_fr", "package": null, "version": null}, {"name": "bronze__receipts_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.standard_predicate", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__receipts", "model.fsc_evm.bronze__receipts_fr"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/silver__receipts.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"modified_timestamp::DATE\",\n \"partition_key\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"polygon.\\n \\n silver.\\n \\n receipts.block_number \\u003e= (\\n SELECT\\n MIN(\\n block_number\\n )\\n FROM\\n polygon.\\n \\n silver.\\n \\n receipts__dbt_tmp\\n )\"\n ],\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(array_index, block_number)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"core\",\n \"phase_2\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze__' ~ vars.MAIN_CORE_SILVER_RECEIPTS_SOURCE_NAME.lower()) }}\n-- depends_on: {{ ref('bronze__' ~ vars.MAIN_CORE_SILVER_RECEIPTS_SOURCE_NAME.lower() ~ '_fr') }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = vars.MAIN_CORE_SILVER_RECEIPTS_UNIQUE_KEY,\n cluster_by = ['modified_timestamp::DATE','partition_key'],\n post_hook = vars.MAIN_CORE_SILVER_RECEIPTS_POST_HOOK,\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','core','phase_2']\n) }}\n\nWITH bronze_receipts AS (\n SELECT \n block_number,\n partition_key,\n {% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n tx_hash,\n DATA:result AS receipts_json,\n {% else %}\n array_index,\n DATA AS receipts_json,\n {% endif %}\n _inserted_timestamp\n FROM \n {% if is_incremental() %}\n {{ ref('bronze__' ~ vars.MAIN_CORE_SILVER_RECEIPTS_SOURCE_NAME.lower()) }}\n WHERE _inserted_timestamp >= (\n SELECT \n COALESCE(MAX(_inserted_timestamp), '1900-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM {{ this }}\n )\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n AND \n {% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n DATA:result IS NOT NULL\n {% else %}\n DATA IS NOT NULL\n {% endif %}\n {% else %}\n {{ ref('bronze__' ~ vars.MAIN_CORE_SILVER_RECEIPTS_SOURCE_NAME.lower() ~ '_fr') }}\n WHERE \n {% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n DATA:result IS NOT NULL\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% else %}\n DATA IS NOT NULL\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n {% endif %}\n {% endif %}\n)\n\nSELECT \n block_number,\n partition_key,\n {% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n tx_hash,\n {% else %}\n array_index,\n {% endif %}\n receipts_json,\n _inserted_timestamp,\n {% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n {{ dbt_utils.generate_surrogate_key(['block_number','tx_hash']) }} AS receipts_id,\n {% else %}\n {{ dbt_utils.generate_surrogate_key(['block_number','array_index']) }} AS receipts_id,\n {% endif %}\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM bronze_receipts\n{% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\nQUALIFY ROW_NUMBER() OVER (PARTITION BY tx_hash ORDER BY block_number DESC, _inserted_timestamp DESC) = 1\n{% else %}\nQUALIFY(ROW_NUMBER() OVER (PARTITION BY block_number, array_index ORDER BY _inserted_timestamp DESC)) = 1\n{% endif %}\n*/\n\n-- depends_on: polygon.bronze.receipts\n-- depends_on: polygon.bronze.receipts_fr\n\n\n\nWITH bronze_receipts AS (\n SELECT \n block_number,\n partition_key,\n \n array_index,\n DATA AS receipts_json,\n \n _inserted_timestamp\n FROM \n \n polygon.bronze.receipts\n WHERE _inserted_timestamp >= (\n SELECT \n COALESCE(MAX(_inserted_timestamp), '1900-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM polygon.silver.receipts\n )\n AND block_number >= 0\n AND \n \n DATA IS NOT NULL\n \n \n)\n\nSELECT \n block_number,\n partition_key,\n \n array_index,\n \n receipts_json,\n _inserted_timestamp,\n \n \n \nmd5(cast(coalesce(cast(block_number as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(array_index as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS receipts_id,\n \n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM bronze_receipts\n\nQUALIFY(ROW_NUMBER() OVER (PARTITION BY block_number, array_index ORDER BY _inserted_timestamp DESC)) = 1\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__proxies": {"database": "polygon", "schema": "silver", "name": "silver__proxies", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/silver__proxies.sql", "original_file_path": "models/main_package/core/silver/silver__proxies.sql", "unique_id": "model.fsc_evm.silver__proxies", "fqn": ["fsc_evm", "main_package", "core", "silver", "silver__proxies"], "alias": "proxies", "checksum": {"name": "sha256", "checksum": "60e9060f39de8e5066ebc98b253c9ef601adf90eb259c527a390c023be150189"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "core", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(contract_address, implementation_contract)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["contract_address", "implementation_contract"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["start_timestamp::date"]}, "tags": ["silver", "core", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": ["contract_address", "implementation_contract"], "cluster_by": ["start_timestamp::date"], "tags": ["silver", "core", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018313.9704735, "relation_name": "polygon.silver.proxies", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = 'incremental',\n unique_key = [\"contract_address\", \"implementation_contract\"],\n cluster_by = [\"start_timestamp::date\"],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(contract_address, implementation_contract)\",\n tags = ['silver','core','phase_2']\n) }}\n\nWITH base AS (\n\n SELECT\n from_address,\n to_address,\n MIN(block_number) AS start_block,\n MIN(block_timestamp) AS start_timestamp,\n MAX(inserted_timestamp) AS _inserted_timestamp\n FROM\n {{ ref('core__fact_traces') }}\n WHERE\n TYPE = 'DELEGATECALL'\n AND trace_succeeded\n AND tx_succeeded\n AND from_address != to_address -- exclude self-calls\n\n{% if is_incremental() %}\nAND inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01' :: TIMESTAMP) - INTERVAL '4 hours'\n FROM\n {{ this }}\n)\n{% endif %}\nGROUP BY\n ALL\n),\ncreate_id AS (\n SELECT\n from_address AS contract_address,\n to_address AS implementation_contract,\n start_block,\n start_timestamp,\n CONCAT(\n from_address,\n '-',\n to_address\n ) AS _id,\n _inserted_timestamp\n FROM\n base\n),\nheal AS (\n SELECT\n contract_address,\n implementation_contract,\n start_block,\n start_timestamp,\n _id,\n _inserted_timestamp\n FROM\n create_id\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n contract_address,\n implementation_contract,\n start_block,\n start_timestamp,\n _id,\n _inserted_timestamp\nFROM\n {{ this }}\n JOIN create_id USING (\n contract_address,\n implementation_contract\n )\n{% endif %}\n),\nFINAL AS (\n SELECT\n contract_address,\n implementation_contract,\n start_block,\n start_timestamp,\n _id,\n _inserted_timestamp\n FROM\n heal qualify ROW_NUMBER() over (\n PARTITION BY contract_address,\n implementation_contract\n ORDER BY\n start_block ASC\n ) = 1\n)\nSELECT\n f.contract_address,\n f.implementation_contract,\n f.start_block,\n f.start_timestamp,\n f._id,\n f._inserted_timestamp,\n COALESCE(\n C.block_number,\n 0\n ) AS created_block,\n COALESCE(\n p.block_number,\n 0\n ) AS implementation_created_block\nFROM\n FINAL f\n LEFT JOIN {{ ref('silver__created_contracts') }} C\n ON f.contract_address = C.created_contract_address\n LEFT JOIN {{ ref('silver__created_contracts') }}\n p\n ON f.implementation_contract = p.created_contract_address", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}, {"name": "silver__created_contracts", "package": null, "version": null}, {"name": "silver__created_contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces", "model.fsc_evm.silver__created_contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/silver__proxies.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"start_timestamp::date\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(contract_address, implementation_contract)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"core\",\n \"phase_2\"\n ],\n \"unique_key\": [\n \"contract_address\",\n \"implementation_contract\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = 'incremental',\n unique_key = [\"contract_address\", \"implementation_contract\"],\n cluster_by = [\"start_timestamp::date\"],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(contract_address, implementation_contract)\",\n tags = ['silver','core','phase_2']\n) }}\n\nWITH base AS (\n\n SELECT\n from_address,\n to_address,\n MIN(block_number) AS start_block,\n MIN(block_timestamp) AS start_timestamp,\n MAX(inserted_timestamp) AS _inserted_timestamp\n FROM\n {{ ref('core__fact_traces') }}\n WHERE\n TYPE = 'DELEGATECALL'\n AND trace_succeeded\n AND tx_succeeded\n AND from_address != to_address -- exclude self-calls\n\n{% if is_incremental() %}\nAND inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01' :: TIMESTAMP) - INTERVAL '4 hours'\n FROM\n {{ this }}\n)\n{% endif %}\nGROUP BY\n ALL\n),\ncreate_id AS (\n SELECT\n from_address AS contract_address,\n to_address AS implementation_contract,\n start_block,\n start_timestamp,\n CONCAT(\n from_address,\n '-',\n to_address\n ) AS _id,\n _inserted_timestamp\n FROM\n base\n),\nheal AS (\n SELECT\n contract_address,\n implementation_contract,\n start_block,\n start_timestamp,\n _id,\n _inserted_timestamp\n FROM\n create_id\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n contract_address,\n implementation_contract,\n start_block,\n start_timestamp,\n _id,\n _inserted_timestamp\nFROM\n {{ this }}\n JOIN create_id USING (\n contract_address,\n implementation_contract\n )\n{% endif %}\n),\nFINAL AS (\n SELECT\n contract_address,\n implementation_contract,\n start_block,\n start_timestamp,\n _id,\n _inserted_timestamp\n FROM\n heal qualify ROW_NUMBER() over (\n PARTITION BY contract_address,\n implementation_contract\n ORDER BY\n start_block ASC\n ) = 1\n)\nSELECT\n f.contract_address,\n f.implementation_contract,\n f.start_block,\n f.start_timestamp,\n f._id,\n f._inserted_timestamp,\n COALESCE(\n C.block_number,\n 0\n ) AS created_block,\n COALESCE(\n p.block_number,\n 0\n ) AS implementation_created_block\nFROM\n FINAL f\n LEFT JOIN {{ ref('silver__created_contracts') }} C\n ON f.contract_address = C.created_contract_address\n LEFT JOIN {{ ref('silver__created_contracts') }}\n p\n ON f.implementation_contract = p.created_contract_address\n*/\n\n\n\nWITH base AS (\n\n SELECT\n from_address,\n to_address,\n MIN(block_number) AS start_block,\n MIN(block_timestamp) AS start_timestamp,\n MAX(inserted_timestamp) AS _inserted_timestamp\n FROM\n polygon.core.fact_traces\n WHERE\n TYPE = 'DELEGATECALL'\n AND trace_succeeded\n AND tx_succeeded\n AND from_address != to_address -- exclude self-calls\n\n\nAND inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01' :: TIMESTAMP) - INTERVAL '4 hours'\n FROM\n polygon.silver.proxies\n)\n\nGROUP BY\n ALL\n),\ncreate_id AS (\n SELECT\n from_address AS contract_address,\n to_address AS implementation_contract,\n start_block,\n start_timestamp,\n CONCAT(\n from_address,\n '-',\n to_address\n ) AS _id,\n _inserted_timestamp\n FROM\n base\n),\nheal AS (\n SELECT\n contract_address,\n implementation_contract,\n start_block,\n start_timestamp,\n _id,\n _inserted_timestamp\n FROM\n create_id\n\n\nUNION ALL\nSELECT\n contract_address,\n implementation_contract,\n start_block,\n start_timestamp,\n _id,\n _inserted_timestamp\nFROM\n polygon.silver.proxies\n JOIN create_id USING (\n contract_address,\n implementation_contract\n )\n\n),\nFINAL AS (\n SELECT\n contract_address,\n implementation_contract,\n start_block,\n start_timestamp,\n _id,\n _inserted_timestamp\n FROM\n heal qualify ROW_NUMBER() over (\n PARTITION BY contract_address,\n implementation_contract\n ORDER BY\n start_block ASC\n ) = 1\n)\nSELECT\n f.contract_address,\n f.implementation_contract,\n f.start_block,\n f.start_timestamp,\n f._id,\n f._inserted_timestamp,\n COALESCE(\n C.block_number,\n 0\n ) AS created_block,\n COALESCE(\n p.block_number,\n 0\n ) AS implementation_created_block\nFROM\n FINAL f\n LEFT JOIN polygon.silver.created_contracts C\n ON f.contract_address = C.created_contract_address\n LEFT JOIN polygon.silver.created_contracts\n p\n ON f.implementation_contract = p.created_contract_address", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__relevant_contracts": {"database": "polygon", "schema": "silver", "name": "silver__relevant_contracts", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/silver__relevant_contracts.sql", "original_file_path": "models/main_package/core/silver/silver__relevant_contracts.sql", "unique_id": "model.fsc_evm.silver__relevant_contracts", "fqn": ["fsc_evm", "main_package", "core", "silver", "silver__relevant_contracts"], "alias": "relevant_contracts", "checksum": {"name": "sha256", "checksum": "1f9e5f59d323ee22b21f840aef5f647dadbec197447bb588babd950670b34e82"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "core", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(contract_address)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "contract_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "core", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "contract_address", "tags": ["silver", "core", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018314.1384773, "relation_name": "polygon.silver.relevant_contracts", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = \"contract_address\",\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(contract_address)\",\n tags = ['silver','core','phase_2']\n) }}\n\nWITH emitted_events AS (\n\n SELECT\n contract_address,\n COUNT(*) AS event_count,\n MAX(inserted_timestamp) AS max_inserted_timestamp_logs,\n MAX(block_number) AS latest_event_block\n FROM\n {{ ref('core__fact_event_logs') }}\n\n{% if is_incremental() %}\nWHERE\n inserted_timestamp > (\n SELECT\n MAX(max_inserted_timestamp_logs)\n FROM\n {{ this }}\n )\n{% endif %}\nGROUP BY\n contract_address\n),\nfunction_calls AS (\n SELECT\n to_address AS contract_address,\n COUNT(*) AS function_call_count,\n MAX(inserted_timestamp) AS max_inserted_timestamp_traces,\n MAX(block_number) AS latest_call_block\n FROM\n {{ ref('core__fact_traces') }}\n WHERE\n tx_succeeded\n AND trace_succeeded\n AND to_address IS NOT NULL\n AND input IS NOT NULL\n AND input <> '0x'\n\n{% if is_incremental() %}\nAND inserted_timestamp > (\n SELECT\n MAX(max_inserted_timestamp_traces)\n FROM\n {{ this }}\n)\n{% endif %}\nGROUP BY\n 1\n),\nactive_contracts AS (\n SELECT\n contract_address\n FROM\n emitted_events\n UNION\n SELECT\n contract_address\n FROM\n function_calls\n),\nprevious_totals AS (\n\n{% if is_incremental() %}\nSELECT\n contract_address, total_event_count, total_call_count, max_inserted_timestamp_logs, latest_event_block, max_inserted_timestamp_traces, latest_call_block\nFROM\n {{ this }}\n{% else %}\nSELECT\n NULL AS contract_address, 0 AS total_event_count, 0 AS total_call_count, '1970-01-01 00:00:00' AS max_inserted_timestamp_logs, 0 AS latest_event_block, '1970-01-01 00:00:00' AS max_inserted_timestamp_traces, 0 AS latest_call_block\n{% endif %})\nSELECT\n C.contract_address,\n COALESCE(\n p.total_event_count,\n 0\n ) + COALESCE(\n e.event_count,\n 0\n ) AS total_event_count,\n COALESCE(\n p.total_call_count,\n 0\n ) + COALESCE(\n f.function_call_count,\n 0\n ) AS total_call_count,\n COALESCE(\n p.total_event_count,\n 0\n ) + COALESCE(\n e.event_count,\n 0\n ) + COALESCE(\n p.total_call_count,\n 0\n ) + COALESCE(\n f.function_call_count,\n 0\n ) AS total_interaction_count,\n COALESCE(\n e.max_inserted_timestamp_logs,\n p.max_inserted_timestamp_logs,\n '1970-01-01 00:00:00'\n ) AS max_inserted_timestamp_logs,\n COALESCE(\n f.max_inserted_timestamp_traces,\n p.max_inserted_timestamp_traces,\n '1970-01-01 00:00:00'\n ) AS max_inserted_timestamp_traces,\n COALESCE(\n e.latest_event_block,\n p.latest_event_block,\n 0\n ) AS latest_event_block,\n COALESCE(\n f.latest_call_block,\n p.latest_call_block,\n 0\n ) AS latest_call_block\nFROM\n active_contracts C\n LEFT JOIN emitted_events e\n ON C.contract_address = e.contract_address\n LEFT JOIN function_calls f\n ON C.contract_address = f.contract_address\n LEFT JOIN previous_totals p\n ON C.contract_address = p.contract_address", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_traces"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/silver__relevant_contracts.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(contract_address)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"core\",\n \"phase_2\"\n ],\n \"unique_key\": \"contract_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = \"contract_address\",\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(contract_address)\",\n tags = ['silver','core','phase_2']\n) }}\n\nWITH emitted_events AS (\n\n SELECT\n contract_address,\n COUNT(*) AS event_count,\n MAX(inserted_timestamp) AS max_inserted_timestamp_logs,\n MAX(block_number) AS latest_event_block\n FROM\n {{ ref('core__fact_event_logs') }}\n\n{% if is_incremental() %}\nWHERE\n inserted_timestamp > (\n SELECT\n MAX(max_inserted_timestamp_logs)\n FROM\n {{ this }}\n )\n{% endif %}\nGROUP BY\n contract_address\n),\nfunction_calls AS (\n SELECT\n to_address AS contract_address,\n COUNT(*) AS function_call_count,\n MAX(inserted_timestamp) AS max_inserted_timestamp_traces,\n MAX(block_number) AS latest_call_block\n FROM\n {{ ref('core__fact_traces') }}\n WHERE\n tx_succeeded\n AND trace_succeeded\n AND to_address IS NOT NULL\n AND input IS NOT NULL\n AND input <> '0x'\n\n{% if is_incremental() %}\nAND inserted_timestamp > (\n SELECT\n MAX(max_inserted_timestamp_traces)\n FROM\n {{ this }}\n)\n{% endif %}\nGROUP BY\n 1\n),\nactive_contracts AS (\n SELECT\n contract_address\n FROM\n emitted_events\n UNION\n SELECT\n contract_address\n FROM\n function_calls\n),\nprevious_totals AS (\n\n{% if is_incremental() %}\nSELECT\n contract_address, total_event_count, total_call_count, max_inserted_timestamp_logs, latest_event_block, max_inserted_timestamp_traces, latest_call_block\nFROM\n {{ this }}\n{% else %}\nSELECT\n NULL AS contract_address, 0 AS total_event_count, 0 AS total_call_count, '1970-01-01 00:00:00' AS max_inserted_timestamp_logs, 0 AS latest_event_block, '1970-01-01 00:00:00' AS max_inserted_timestamp_traces, 0 AS latest_call_block\n{% endif %})\nSELECT\n C.contract_address,\n COALESCE(\n p.total_event_count,\n 0\n ) + COALESCE(\n e.event_count,\n 0\n ) AS total_event_count,\n COALESCE(\n p.total_call_count,\n 0\n ) + COALESCE(\n f.function_call_count,\n 0\n ) AS total_call_count,\n COALESCE(\n p.total_event_count,\n 0\n ) + COALESCE(\n e.event_count,\n 0\n ) + COALESCE(\n p.total_call_count,\n 0\n ) + COALESCE(\n f.function_call_count,\n 0\n ) AS total_interaction_count,\n COALESCE(\n e.max_inserted_timestamp_logs,\n p.max_inserted_timestamp_logs,\n '1970-01-01 00:00:00'\n ) AS max_inserted_timestamp_logs,\n COALESCE(\n f.max_inserted_timestamp_traces,\n p.max_inserted_timestamp_traces,\n '1970-01-01 00:00:00'\n ) AS max_inserted_timestamp_traces,\n COALESCE(\n e.latest_event_block,\n p.latest_event_block,\n 0\n ) AS latest_event_block,\n COALESCE(\n f.latest_call_block,\n p.latest_call_block,\n 0\n ) AS latest_call_block\nFROM\n active_contracts C\n LEFT JOIN emitted_events e\n ON C.contract_address = e.contract_address\n LEFT JOIN function_calls f\n ON C.contract_address = f.contract_address\n LEFT JOIN previous_totals p\n ON C.contract_address = p.contract_address\n*/\n\n\n\nWITH emitted_events AS (\n\n SELECT\n contract_address,\n COUNT(*) AS event_count,\n MAX(inserted_timestamp) AS max_inserted_timestamp_logs,\n MAX(block_number) AS latest_event_block\n FROM\n polygon.core.fact_event_logs\n\n\nWHERE\n inserted_timestamp > (\n SELECT\n MAX(max_inserted_timestamp_logs)\n FROM\n polygon.silver.relevant_contracts\n )\n\nGROUP BY\n contract_address\n),\nfunction_calls AS (\n SELECT\n to_address AS contract_address,\n COUNT(*) AS function_call_count,\n MAX(inserted_timestamp) AS max_inserted_timestamp_traces,\n MAX(block_number) AS latest_call_block\n FROM\n polygon.core.fact_traces\n WHERE\n tx_succeeded\n AND trace_succeeded\n AND to_address IS NOT NULL\n AND input IS NOT NULL\n AND input <> '0x'\n\n\nAND inserted_timestamp > (\n SELECT\n MAX(max_inserted_timestamp_traces)\n FROM\n polygon.silver.relevant_contracts\n)\n\nGROUP BY\n 1\n),\nactive_contracts AS (\n SELECT\n contract_address\n FROM\n emitted_events\n UNION\n SELECT\n contract_address\n FROM\n function_calls\n),\nprevious_totals AS (\n\n\nSELECT\n contract_address, total_event_count, total_call_count, max_inserted_timestamp_logs, latest_event_block, max_inserted_timestamp_traces, latest_call_block\nFROM\n polygon.silver.relevant_contracts\n)\nSELECT\n C.contract_address,\n COALESCE(\n p.total_event_count,\n 0\n ) + COALESCE(\n e.event_count,\n 0\n ) AS total_event_count,\n COALESCE(\n p.total_call_count,\n 0\n ) + COALESCE(\n f.function_call_count,\n 0\n ) AS total_call_count,\n COALESCE(\n p.total_event_count,\n 0\n ) + COALESCE(\n e.event_count,\n 0\n ) + COALESCE(\n p.total_call_count,\n 0\n ) + COALESCE(\n f.function_call_count,\n 0\n ) AS total_interaction_count,\n COALESCE(\n e.max_inserted_timestamp_logs,\n p.max_inserted_timestamp_logs,\n '1970-01-01 00:00:00'\n ) AS max_inserted_timestamp_logs,\n COALESCE(\n f.max_inserted_timestamp_traces,\n p.max_inserted_timestamp_traces,\n '1970-01-01 00:00:00'\n ) AS max_inserted_timestamp_traces,\n COALESCE(\n e.latest_event_block,\n p.latest_event_block,\n 0\n ) AS latest_event_block,\n COALESCE(\n f.latest_call_block,\n p.latest_call_block,\n 0\n ) AS latest_call_block\nFROM\n active_contracts C\n LEFT JOIN emitted_events e\n ON C.contract_address = e.contract_address\n LEFT JOIN function_calls f\n ON C.contract_address = f.contract_address\n LEFT JOIN previous_totals p\n ON C.contract_address = p.contract_address", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__created_contracts": {"database": "polygon", "schema": "silver", "name": "silver__created_contracts", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/silver__created_contracts.sql", "original_file_path": "models/main_package/core/silver/silver__created_contracts.sql", "unique_id": "model.fsc_evm.silver__created_contracts", "fqn": ["fsc_evm", "main_package", "core", "silver", "silver__created_contracts"], "alias": "created_contracts", "checksum": {"name": "sha256", "checksum": "d2824a32a1907d81cf3b8755e4f441bfa103882228769bec1b8018e9706d6439"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "core", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_timestamp, tx_hash, created_contract_address, creator_address), SUBSTRING(created_contract_address, creator_address)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "created_contract_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "merge_exclude_columns": ["inserted_timestamp"]}, "tags": ["silver", "core", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "created_contract_address", "merge_exclude_columns": ["inserted_timestamp"], "tags": ["silver", "core", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018314.3077524, "relation_name": "polygon.silver.created_contracts", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"created_contract_address\",\n merge_exclude_columns = [\"inserted_timestamp\"],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_timestamp, tx_hash, created_contract_address, creator_address), SUBSTRING(created_contract_address, creator_address)\",\n tags = ['silver','core','phase_2']\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n to_address AS created_contract_address,\n from_address AS creator_address,\n input AS created_contract_input,\n inserted_timestamp AS _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['to_address']\n ) }} AS created_contracts_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref('core__fact_traces') }}\nWHERE\n TYPE ILIKE 'create%'\n AND to_address IS NOT NULL\n AND input IS NOT NULL\n AND input != '0x'\n AND trace_succeeded\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND inserted_timestamp >= (\n SELECT\n coalesce(MAX(inserted_timestamp) - INTERVAL '4 hours', '1900-01-01'::TIMESTAMP)\n FROM\n {{ this }}\n)\n{% endif %}\n\nqualify(ROW_NUMBER() over(PARTITION BY created_contract_address\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/silver__created_contracts.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"merge_exclude_columns\": [\n \"inserted_timestamp\"\n ],\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_timestamp, tx_hash, created_contract_address, creator_address), SUBSTRING(created_contract_address, creator_address)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"core\",\n \"phase_2\"\n ],\n \"unique_key\": \"created_contract_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"created_contract_address\",\n merge_exclude_columns = [\"inserted_timestamp\"],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_timestamp, tx_hash, created_contract_address, creator_address), SUBSTRING(created_contract_address, creator_address)\",\n tags = ['silver','core','phase_2']\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n to_address AS created_contract_address,\n from_address AS creator_address,\n input AS created_contract_input,\n inserted_timestamp AS _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['to_address']\n ) }} AS created_contracts_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref('core__fact_traces') }}\nWHERE\n TYPE ILIKE 'create%'\n AND to_address IS NOT NULL\n AND input IS NOT NULL\n AND input != '0x'\n AND trace_succeeded\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND inserted_timestamp >= (\n SELECT\n coalesce(MAX(inserted_timestamp) - INTERVAL '4 hours', '1900-01-01'::TIMESTAMP)\n FROM\n {{ this }}\n)\n{% endif %}\n\nqualify(ROW_NUMBER() over(PARTITION BY created_contract_address\nORDER BY\n _inserted_timestamp DESC)) = 1\n*/\n\n\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n to_address AS created_contract_address,\n from_address AS creator_address,\n input AS created_contract_input,\n inserted_timestamp AS _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(to_address as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS created_contracts_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n polygon.core.fact_traces\nWHERE\n TYPE ILIKE 'create%'\n AND to_address IS NOT NULL\n AND input IS NOT NULL\n AND input != '0x'\n AND trace_succeeded\n AND tx_succeeded\n\n\nAND inserted_timestamp >= (\n SELECT\n coalesce(MAX(inserted_timestamp) - INTERVAL '4 hours', '1900-01-01'::TIMESTAMP)\n FROM\n polygon.silver.created_contracts\n)\n\n\nqualify(ROW_NUMBER() over(PARTITION BY created_contract_address\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__transactions": {"database": "polygon", "schema": "silver", "name": "silver__transactions", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/silver__transactions.sql", "original_file_path": "models/main_package/core/silver/silver__transactions.sql", "unique_id": "model.fsc_evm.silver__transactions", "fqn": ["fsc_evm", "main_package", "core", "silver", "silver__transactions"], "alias": "transactions", "checksum": {"name": "sha256", "checksum": "fd8438710ddcb358931ba1bdbbb72539e0e2da02eb64a32ec8d1315ff4a15f00"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "core", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["modified_timestamp::DATE", "partition_key"], "incremental_predicates": ["polygon.\n \n silver.\n \n transactions.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n silver.\n \n transactions__dbt_tmp\n )"]}, "tags": ["silver", "core", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["modified_timestamp::DATE", "partition_key"], "incremental_predicates": ["polygon.\n \n silver.\n \n transactions.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n silver.\n \n transactions__dbt_tmp\n )"], "full_refresh": false, "tags": ["silver", "core", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018314.5981688, "relation_name": "polygon.silver.transactions", "raw_code": "-- depends_on: {{ ref('bronze__transactions') }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['modified_timestamp::DATE','partition_key'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','core','phase_2']\n) }}\n\nWITH bronze_transactions AS (\n SELECT \n block_number,\n partition_key,\n COALESCE(\n VALUE :array_index :: INT,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n VALUE :data :transactionIndex :: STRING\n )\n )\n ) AS tx_position,\n DATA AS transaction_json,\n _inserted_timestamp\n FROM \n {% if is_incremental() %}\n {{ ref('bronze__transactions') }}\n WHERE _inserted_timestamp >= (\n SELECT \n COALESCE(MAX(_inserted_timestamp), '1900-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM {{ this }}\n ) AND DATA IS NOT NULL\n {% else %}\n {{ ref('bronze__transactions_fr') }}\n WHERE DATA IS NOT NULL\n {% endif %}\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n)\n\nSELECT \n block_number,\n partition_key,\n tx_position,\n transaction_json,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(['block_number','tx_position']) }} AS transactions_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM bronze_transactions\nWHERE tx_position IS NOT NULL\nQUALIFY ROW_NUMBER() OVER (PARTITION BY transactions_id ORDER BY _inserted_timestamp DESC) = 1", "language": "sql", "refs": [{"name": "bronze__transactions", "package": null, "version": null}, {"name": "bronze__transactions_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.standard_predicate", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__transactions", "model.fsc_evm.bronze__transactions_fr"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/silver__transactions.sql", "compiled": true, "compiled_code": "-- depends_on: polygon.bronze.transactions\n\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"modified_timestamp::DATE\",\n \"partition_key\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"polygon.\\n \\n silver.\\n \\n transactions.block_number \\u003e= (\\n SELECT\\n MIN(\\n block_number\\n )\\n FROM\\n polygon.\\n \\n silver.\\n \\n transactions__dbt_tmp\\n )\"\n ],\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"core\",\n \"phase_2\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n-- depends_on: {{ ref('bronze__transactions') }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['modified_timestamp::DATE','partition_key'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','core','phase_2']\n) }}\n\nWITH bronze_transactions AS (\n SELECT \n block_number,\n partition_key,\n COALESCE(\n VALUE :array_index :: INT,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n VALUE :data :transactionIndex :: STRING\n )\n )\n ) AS tx_position,\n DATA AS transaction_json,\n _inserted_timestamp\n FROM \n {% if is_incremental() %}\n {{ ref('bronze__transactions') }}\n WHERE _inserted_timestamp >= (\n SELECT \n COALESCE(MAX(_inserted_timestamp), '1900-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM {{ this }}\n ) AND DATA IS NOT NULL\n {% else %}\n {{ ref('bronze__transactions_fr') }}\n WHERE DATA IS NOT NULL\n {% endif %}\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n)\n\nSELECT \n block_number,\n partition_key,\n tx_position,\n transaction_json,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(['block_number','tx_position']) }} AS transactions_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM bronze_transactions\nWHERE tx_position IS NOT NULL\nQUALIFY ROW_NUMBER() OVER (PARTITION BY transactions_id ORDER BY _inserted_timestamp DESC) = 1\n*/\n\n\n\nWITH bronze_transactions AS (\n SELECT \n block_number,\n partition_key,\n COALESCE(\n VALUE :array_index :: INT,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n VALUE :data :transactionIndex :: STRING\n )\n )\n ) AS tx_position,\n DATA AS transaction_json,\n _inserted_timestamp\n FROM \n \n polygon.bronze.transactions\n WHERE _inserted_timestamp >= (\n SELECT \n COALESCE(MAX(_inserted_timestamp), '1900-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM polygon.silver.transactions\n ) AND DATA IS NOT NULL\n \n AND block_number >= 0\n)\n\nSELECT \n block_number,\n partition_key,\n tx_position,\n transaction_json,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(block_number as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(tx_position as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS transactions_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM bronze_transactions\nWHERE tx_position IS NOT NULL\nQUALIFY ROW_NUMBER() OVER (PARTITION BY transactions_id ORDER BY _inserted_timestamp DESC) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__contracts": {"database": "polygon", "schema": "silver", "name": "silver__contracts", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/silver__contracts.sql", "original_file_path": "models/main_package/core/silver/silver__contracts.sql", "unique_id": "model.fsc_evm.silver__contracts", "fqn": ["fsc_evm", "main_package", "core", "silver", "silver__contracts"], "alias": "contracts", "checksum": {"name": "sha256", "checksum": "67be837c15874ad8a5e04c66955eb6a7335d5a88e4471830804bd541e6721df5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "core", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "contract_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "merge_exclude_columns": ["inserted_timestamp"]}, "tags": ["silver", "core", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "contract_address", "merge_exclude_columns": ["inserted_timestamp"], "tags": ["silver", "core", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018314.919181, "relation_name": "polygon.silver.contracts", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze__token_reads') }}\n-- depends_on: {{ ref('bronze__token_reads_fr') }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = 'contract_address',\n merge_exclude_columns = [\"inserted_timestamp\"],\n tags = ['silver','core','phase_2']\n) }}\n\nWITH base_metadata AS (\n\n SELECT\n contract_address,\n VALUE :\"LATEST_BLOCK\" :: INT AS block_number,\n VALUE :\"FUNCTION_SIG\" :: STRING AS function_signature,\n data :result :: STRING AS read_output,\n _inserted_timestamp\n FROM\n {% if is_incremental() %}\n {{ ref('bronze__token_reads') }}\n {% else %}\n {{ ref('bronze__token_reads_fr') }}\n {% endif %}\n WHERE\n read_output IS NOT NULL\n AND read_output <> '0x'\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n COALESCE(\n MAX(\n _inserted_timestamp\n ),\n '1970-01-01'\n )\n FROM\n {{ this }}\n)\n{% endif %}\n),\ntoken_names AS (\n SELECT\n contract_address,\n block_number,\n function_signature,\n read_output,\n utils.udf_hex_to_string(\n SUBSTR(read_output,(64 * 2 + 3), len(read_output))) AS token_name\n FROM\n base_metadata\n WHERE\n function_signature = '0x06fdde03'\n AND token_name IS NOT NULL\n ),\n token_symbols AS (\n SELECT\n contract_address,\n block_number,\n function_signature,\n read_output,\n utils.udf_hex_to_string(\n SUBSTR(read_output,(64 * 2 + 3), len(read_output))) AS token_symbol\n FROM\n base_metadata\n WHERE\n function_signature = '0x95d89b41'\n AND token_symbol IS NOT NULL\n ),\n token_decimals AS (\n SELECT\n contract_address,\n CASE\n WHEN read_output IS NOT NULL THEN utils.udf_hex_to_int(\n read_output :: STRING\n )\n ELSE NULL\n END AS token_decimals,\n LENGTH(token_decimals) AS dec_length\n FROM\n base_metadata\n WHERE\n function_signature = '0x313ce567'\n AND read_output IS NOT NULL\n AND read_output <> '0x'\n AND LENGTH(read_output :: STRING) <= 4300\n ),\n contracts AS (\n SELECT\n contract_address,\n MAX(_inserted_timestamp) AS _inserted_timestamp\n FROM\n base_metadata\n GROUP BY\n 1\n ),\n final AS (\n SELECT\n c1.contract_address :: STRING AS contract_address,\n token_name,\n TRY_TO_NUMBER(token_decimals) AS token_decimals,\n token_symbol,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['c1.contract_address']\n ) }} AS contracts_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\n FROM\n contracts c1\n LEFT JOIN token_names\n ON c1.contract_address = token_names.contract_address\n LEFT JOIN token_symbols\n ON c1.contract_address = token_symbols.contract_address\n LEFT JOIN token_decimals\n ON c1.contract_address = token_decimals.contract_address\n AND dec_length < 3 \n\n {% if not is_incremental() and vars.GLOBAL_PROJECT_NAME == 'ethereum' %}\n UNION\n SELECT\n address AS contract_address,\n NAME AS token_name,\n decimals AS token_decimals,\n symbol AS token_symbol,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['address']\n ) }} AS contracts_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\n FROM\n silver.contracts_legacy -- hardcoded for ethereum, to avoid source compiling issues on other chains\n {% endif %}\n )\n SELECT\n contract_address,\n token_name,\n token_decimals,\n token_symbol,\n _inserted_timestamp,\n contracts_id,\n inserted_timestamp,\n modified_timestamp,\n _invocation_id\n FROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY contract_address\n ORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__token_reads", "package": null, "version": null}, {"name": "bronze__token_reads_fr", "package": null, "version": null}, {"name": "bronze__token_reads_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__token_reads", "model.fsc_evm.bronze__token_reads_fr"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/silver__contracts.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"merge_exclude_columns\": [\n \"inserted_timestamp\"\n ],\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"core\",\n \"phase_2\"\n ],\n \"unique_key\": \"contract_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze__token_reads') }}\n-- depends_on: {{ ref('bronze__token_reads_fr') }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = 'contract_address',\n merge_exclude_columns = [\"inserted_timestamp\"],\n tags = ['silver','core','phase_2']\n) }}\n\nWITH base_metadata AS (\n\n SELECT\n contract_address,\n VALUE :\"LATEST_BLOCK\" :: INT AS block_number,\n VALUE :\"FUNCTION_SIG\" :: STRING AS function_signature,\n data :result :: STRING AS read_output,\n _inserted_timestamp\n FROM\n {% if is_incremental() %}\n {{ ref('bronze__token_reads') }}\n {% else %}\n {{ ref('bronze__token_reads_fr') }}\n {% endif %}\n WHERE\n read_output IS NOT NULL\n AND read_output <> '0x'\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n COALESCE(\n MAX(\n _inserted_timestamp\n ),\n '1970-01-01'\n )\n FROM\n {{ this }}\n)\n{% endif %}\n),\ntoken_names AS (\n SELECT\n contract_address,\n block_number,\n function_signature,\n read_output,\n utils.udf_hex_to_string(\n SUBSTR(read_output,(64 * 2 + 3), len(read_output))) AS token_name\n FROM\n base_metadata\n WHERE\n function_signature = '0x06fdde03'\n AND token_name IS NOT NULL\n ),\n token_symbols AS (\n SELECT\n contract_address,\n block_number,\n function_signature,\n read_output,\n utils.udf_hex_to_string(\n SUBSTR(read_output,(64 * 2 + 3), len(read_output))) AS token_symbol\n FROM\n base_metadata\n WHERE\n function_signature = '0x95d89b41'\n AND token_symbol IS NOT NULL\n ),\n token_decimals AS (\n SELECT\n contract_address,\n CASE\n WHEN read_output IS NOT NULL THEN utils.udf_hex_to_int(\n read_output :: STRING\n )\n ELSE NULL\n END AS token_decimals,\n LENGTH(token_decimals) AS dec_length\n FROM\n base_metadata\n WHERE\n function_signature = '0x313ce567'\n AND read_output IS NOT NULL\n AND read_output <> '0x'\n AND LENGTH(read_output :: STRING) <= 4300\n ),\n contracts AS (\n SELECT\n contract_address,\n MAX(_inserted_timestamp) AS _inserted_timestamp\n FROM\n base_metadata\n GROUP BY\n 1\n ),\n final AS (\n SELECT\n c1.contract_address :: STRING AS contract_address,\n token_name,\n TRY_TO_NUMBER(token_decimals) AS token_decimals,\n token_symbol,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['c1.contract_address']\n ) }} AS contracts_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\n FROM\n contracts c1\n LEFT JOIN token_names\n ON c1.contract_address = token_names.contract_address\n LEFT JOIN token_symbols\n ON c1.contract_address = token_symbols.contract_address\n LEFT JOIN token_decimals\n ON c1.contract_address = token_decimals.contract_address\n AND dec_length < 3 \n\n {% if not is_incremental() and vars.GLOBAL_PROJECT_NAME == 'ethereum' %}\n UNION\n SELECT\n address AS contract_address,\n NAME AS token_name,\n decimals AS token_decimals,\n symbol AS token_symbol,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['address']\n ) }} AS contracts_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\n FROM\n silver.contracts_legacy -- hardcoded for ethereum, to avoid source compiling issues on other chains\n {% endif %}\n )\n SELECT\n contract_address,\n token_name,\n token_decimals,\n token_symbol,\n _inserted_timestamp,\n contracts_id,\n inserted_timestamp,\n modified_timestamp,\n _invocation_id\n FROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY contract_address\n ORDER BY\n _inserted_timestamp DESC)) = 1\n*/\n\n-- depends_on: polygon.bronze.token_reads\n-- depends_on: polygon.bronze.token_reads_fr\n\n\n\nWITH base_metadata AS (\n\n SELECT\n contract_address,\n VALUE :\"LATEST_BLOCK\" :: INT AS block_number,\n VALUE :\"FUNCTION_SIG\" :: STRING AS function_signature,\n data :result :: STRING AS read_output,\n _inserted_timestamp\n FROM\n \n polygon.bronze.token_reads\n \n WHERE\n read_output IS NOT NULL\n AND read_output <> '0x'\n\n\nAND _inserted_timestamp >= (\n SELECT\n COALESCE(\n MAX(\n _inserted_timestamp\n ),\n '1970-01-01'\n )\n FROM\n polygon.silver.contracts\n)\n\n),\ntoken_names AS (\n SELECT\n contract_address,\n block_number,\n function_signature,\n read_output,\n utils.udf_hex_to_string(\n SUBSTR(read_output,(64 * 2 + 3), len(read_output))) AS token_name\n FROM\n base_metadata\n WHERE\n function_signature = '0x06fdde03'\n AND token_name IS NOT NULL\n ),\n token_symbols AS (\n SELECT\n contract_address,\n block_number,\n function_signature,\n read_output,\n utils.udf_hex_to_string(\n SUBSTR(read_output,(64 * 2 + 3), len(read_output))) AS token_symbol\n FROM\n base_metadata\n WHERE\n function_signature = '0x95d89b41'\n AND token_symbol IS NOT NULL\n ),\n token_decimals AS (\n SELECT\n contract_address,\n CASE\n WHEN read_output IS NOT NULL THEN utils.udf_hex_to_int(\n read_output :: STRING\n )\n ELSE NULL\n END AS token_decimals,\n LENGTH(token_decimals) AS dec_length\n FROM\n base_metadata\n WHERE\n function_signature = '0x313ce567'\n AND read_output IS NOT NULL\n AND read_output <> '0x'\n AND LENGTH(read_output :: STRING) <= 4300\n ),\n contracts AS (\n SELECT\n contract_address,\n MAX(_inserted_timestamp) AS _inserted_timestamp\n FROM\n base_metadata\n GROUP BY\n 1\n ),\n final AS (\n SELECT\n c1.contract_address :: STRING AS contract_address,\n token_name,\n TRY_TO_NUMBER(token_decimals) AS token_decimals,\n token_symbol,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(c1.contract_address as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS contracts_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\n FROM\n contracts c1\n LEFT JOIN token_names\n ON c1.contract_address = token_names.contract_address\n LEFT JOIN token_symbols\n ON c1.contract_address = token_symbols.contract_address\n LEFT JOIN token_decimals\n ON c1.contract_address = token_decimals.contract_address\n AND dec_length < 3 \n\n \n )\n SELECT\n contract_address,\n token_name,\n token_decimals,\n token_symbol,\n _inserted_timestamp,\n contracts_id,\n inserted_timestamp,\n modified_timestamp,\n _invocation_id\n FROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY contract_address\n ORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__blocks": {"database": "polygon", "schema": "silver", "name": "silver__blocks", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/silver__blocks.sql", "original_file_path": "models/main_package/core/silver/silver__blocks.sql", "unique_id": "model.fsc_evm.silver__blocks", "fqn": ["fsc_evm", "main_package", "core", "silver", "silver__blocks"], "alias": "blocks", "checksum": {"name": "sha256", "checksum": "18317adf360ca00f7db3ca278af0e733c7e74fe4da1e785db80e15fab34d0dc0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "core", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["modified_timestamp::DATE", "partition_key"], "incremental_predicates": ["polygon.\n \n silver.\n \n blocks.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n silver.\n \n blocks__dbt_tmp\n )"]}, "tags": ["silver", "core", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["modified_timestamp::DATE", "partition_key"], "incremental_predicates": ["polygon.\n \n silver.\n \n blocks.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n silver.\n \n blocks__dbt_tmp\n )"], "full_refresh": false, "tags": ["silver", "core", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018315.244613, "relation_name": "polygon.silver.blocks", "raw_code": "-- depends_on: {{ ref('bronze__blocks') }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['modified_timestamp::DATE','partition_key'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','core','phase_2']\n) }}\n\nWITH bronze_blocks AS (\n SELECT \n block_number,\n partition_key,\n DATA AS block_json,\n _inserted_timestamp\n FROM \n {% if is_incremental() %}\n {{ ref('bronze__blocks') }}\n WHERE _inserted_timestamp >= (\n SELECT \n COALESCE(MAX(_inserted_timestamp), '1900-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM {{ this }}\n ) AND DATA IS NOT NULL\n {% else %}\n {{ ref('bronze__blocks_fr') }}\n WHERE DATA IS NOT NULL\n {% endif %}\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n)\n\nSELECT \n block_number,\n partition_key,\n block_json,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(['block_number']) }} AS blocks_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM bronze_blocks\nQUALIFY ROW_NUMBER() OVER (PARTITION BY blocks_id ORDER BY _inserted_timestamp DESC) = 1", "language": "sql", "refs": [{"name": "bronze__blocks", "package": null, "version": null}, {"name": "bronze__blocks_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.standard_predicate", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__blocks", "model.fsc_evm.bronze__blocks_fr"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/silver__blocks.sql", "compiled": true, "compiled_code": "-- depends_on: polygon.bronze.blocks\n\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"modified_timestamp::DATE\",\n \"partition_key\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"polygon.\\n \\n silver.\\n \\n blocks.block_number \\u003e= (\\n SELECT\\n MIN(\\n block_number\\n )\\n FROM\\n polygon.\\n \\n silver.\\n \\n blocks__dbt_tmp\\n )\"\n ],\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"core\",\n \"phase_2\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n-- depends_on: {{ ref('bronze__blocks') }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['modified_timestamp::DATE','partition_key'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','core','phase_2']\n) }}\n\nWITH bronze_blocks AS (\n SELECT \n block_number,\n partition_key,\n DATA AS block_json,\n _inserted_timestamp\n FROM \n {% if is_incremental() %}\n {{ ref('bronze__blocks') }}\n WHERE _inserted_timestamp >= (\n SELECT \n COALESCE(MAX(_inserted_timestamp), '1900-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM {{ this }}\n ) AND DATA IS NOT NULL\n {% else %}\n {{ ref('bronze__blocks_fr') }}\n WHERE DATA IS NOT NULL\n {% endif %}\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}\n)\n\nSELECT \n block_number,\n partition_key,\n block_json,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(['block_number']) }} AS blocks_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM bronze_blocks\nQUALIFY ROW_NUMBER() OVER (PARTITION BY blocks_id ORDER BY _inserted_timestamp DESC) = 1\n*/\n\n\n\nWITH bronze_blocks AS (\n SELECT \n block_number,\n partition_key,\n DATA AS block_json,\n _inserted_timestamp\n FROM \n \n polygon.bronze.blocks\n WHERE _inserted_timestamp >= (\n SELECT \n COALESCE(MAX(_inserted_timestamp), '1900-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM polygon.silver.blocks\n ) AND DATA IS NOT NULL\n \n AND block_number >= 0\n)\n\nSELECT \n block_number,\n partition_key,\n block_json,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(block_number as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS blocks_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM bronze_blocks\nQUALIFY ROW_NUMBER() OVER (PARTITION BY blocks_id ORDER BY _inserted_timestamp DESC) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__traces_recent": {"database": "polygon", "schema": "test_silver", "name": "test_silver__traces_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/tests/traces/test_silver__traces_recent.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_recent.sql", "unique_id": "model.fsc_evm.test_silver__traces_recent", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "test_silver__traces_recent"], "alias": "traces_recent", "checksum": {"name": "sha256", "checksum": "3623c122189c58be1e93b85c4beb73fac6d5cfb62c29fe0d3d723d5088e73250"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "core", "recent_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "core", "recent_test", "phase_2"], "description": "This is a view used to test the last three days of traces.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_ADDRESS": {"name": "TRACE_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_JSON": {"name": "TRACE_JSON", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "core", "recent_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.8535364, "relation_name": "polygon.test_silver.traces_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','recent_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__traces') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "silver__traces", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__traces", "model.fsc_evm._block_lookback"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_recent.sql", "compiled": true, "compiled_code": "\n\n\n\nwith __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n) /* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"core\",\n \"recent_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','recent_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__traces') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.traces\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n __dbt__cte___block_lookback\n )\n\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.fsc_evm._block_lookback", "sql": " __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__traces_full": {"database": "polygon", "schema": "test_silver", "name": "test_silver__traces_full", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/tests/traces/test_silver__traces_full.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_full.sql", "unique_id": "model.fsc_evm.test_silver__traces_full", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "test_silver__traces_full"], "alias": "traces_full", "checksum": {"name": "sha256", "checksum": "235a5926c3c1afd5d4b7c0280e8f816b39a132d0a929515cf6d074d554e9b953"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "core", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "core", "full_test", "phase_2"], "description": "This is a view used to test all of the silver traces model.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_ADDRESS": {"name": "TRACE_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_JSON": {"name": "TRACE_JSON", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/silver/tests/traces/test_silver__traces_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "core", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.9124784, "relation_name": "polygon.test_silver.traces_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__traces') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "silver__traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__traces"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_full.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"core\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__traces') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.traces\n\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__confirm_blocks_recent": {"database": "polygon", "schema": "test_silver", "name": "test_silver__confirm_blocks_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_recent.sql", "original_file_path": "models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_recent.sql", "unique_id": "model.fsc_evm.test_silver__confirm_blocks_recent", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "confirm_blocks", "test_silver__confirm_blocks_recent"], "alias": "confirm_blocks_recent", "checksum": {"name": "sha256", "checksum": "55194803e41994777f378c737ff3f237560e684dcc6d94b7870c45ab80d14ade"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "core", "confirm_blocks", "recent_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "core", "confirm_blocks", "recent_test", "phase_2"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONFIRM_BLOCKS_ID": {"name": "CONFIRM_BLOCKS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "core", "confirm_blocks", "recent_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.9703057, "relation_name": "polygon.test_silver.confirm_blocks_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','confirm_blocks','recent_test','phase_2']\n) }}\n\n{%- set default_hours = -24 * 5 -%}\n{%- set hour_lookback = default_hours -%}\n\n{% if execute %}\n {% set lookback_query %}\n SELECT\n IFF(\n DATEDIFF('hour', MIN(modified_timestamp), SYSDATE()) <= (24 * 7),\n -12,\n {{ default_hours }}\n ) as hour_lookback\n FROM\n {{ ref('silver__confirm_blocks') }}\n {% endset %}\n \n {% set results = run_query(lookback_query) %}\n {% set hour_lookback = results.columns[0].values()[0] %}\n{% endif %}\n\nSELECT\n *\nFROM\n {{ ref('silver__confirm_blocks') }}\nWHERE\n modified_timestamp > DATEADD(\n 'hour',\n {{ hour_lookback }},\n SYSDATE()\n )\n AND partition_key > (\n SELECT\n ROUND(\n block_number,\n -3\n ) AS block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "silver__confirm_blocks", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking", "macro.dbt.run_query"], "nodes": ["model.fsc_evm.silver__confirm_blocks", "model.fsc_evm._block_lookback"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_recent.sql", "compiled": true, "compiled_code": "\n\n\n\nwith __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n) /* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"core\",\n \"confirm_blocks\",\n \"recent_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','confirm_blocks','recent_test','phase_2']\n) }}\n\n{%- set default_hours = -24 * 5 -%}\n{%- set hour_lookback = default_hours -%}\n\n{% if execute %}\n {% set lookback_query %}\n SELECT\n IFF(\n DATEDIFF('hour', MIN(modified_timestamp), SYSDATE()) <= (24 * 7),\n -12,\n {{ default_hours }}\n ) as hour_lookback\n FROM\n {{ ref('silver__confirm_blocks') }}\n {% endset %}\n \n {% set results = run_query(lookback_query) %}\n {% set hour_lookback = results.columns[0].values()[0] %}\n{% endif %}\n\nSELECT\n *\nFROM\n {{ ref('silver__confirm_blocks') }}\nWHERE\n modified_timestamp > DATEADD(\n 'hour',\n {{ hour_lookback }},\n SYSDATE()\n )\n AND partition_key > (\n SELECT\n ROUND(\n block_number,\n -3\n ) AS block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n \n \n \n \n\n\nSELECT\n *\nFROM\n polygon.silver.confirm_blocks\nWHERE\n modified_timestamp > DATEADD(\n 'hour',\n -120,\n SYSDATE()\n )\n AND partition_key > (\n SELECT\n ROUND(\n block_number,\n -3\n ) AS block_number\n FROM\n __dbt__cte___block_lookback\n )\n\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.fsc_evm._block_lookback", "sql": " __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__confirm_blocks_full": {"database": "polygon", "schema": "test_silver", "name": "test_silver__confirm_blocks_full", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_full.sql", "original_file_path": "models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_full.sql", "unique_id": "model.fsc_evm.test_silver__confirm_blocks_full", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "confirm_blocks", "test_silver__confirm_blocks_full"], "alias": "confirm_blocks_full", "checksum": {"name": "sha256", "checksum": "b68fbfafeb8448651a179786a8ea824f7ec34c642839d44463951787a7312599"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "core", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "core", "full_test", "phase_2"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONFIRM_BLOCKS_ID": {"name": "CONFIRM_BLOCKS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "core", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018437.9975033, "relation_name": "polygon.test_silver.confirm_blocks_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__confirm_blocks') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "silver__confirm_blocks", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__confirm_blocks"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_full.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"core\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__confirm_blocks') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.confirm_blocks\n\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__blocks_full": {"database": "polygon", "schema": "test_silver", "name": "test_silver__blocks_full", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/tests/blocks/test_silver__blocks_full.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_full.sql", "unique_id": "model.fsc_evm.test_silver__blocks_full", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "test_silver__blocks_full"], "alias": "blocks_full", "checksum": {"name": "sha256", "checksum": "1cabe0904c9c55cc90d5bb72125569b84586d2f5c3b437f0d606765cf59dcfe2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "core", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "core", "full_test", "phase_2"], "description": "This is a view used to test all of the silver blocks model.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_JSON": {"name": "BLOCK_JSON", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "core", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018438.1285641, "relation_name": "polygon.test_silver.blocks_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__blocks') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "silver__blocks", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__blocks"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_full.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"core\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__blocks') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.blocks\n\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__blocks_recent": {"database": "polygon", "schema": "test_silver", "name": "test_silver__blocks_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/tests/blocks/test_silver__blocks_recent.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.sql", "unique_id": "model.fsc_evm.test_silver__blocks_recent", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "test_silver__blocks_recent"], "alias": "blocks_recent", "checksum": {"name": "sha256", "checksum": "812f60a7ef8a13fe83c636489c8a5c6e4c0fb00001d7fbe8d12275a77eaf80d7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "core", "recent_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "core", "recent_test", "phase_2"], "description": "This is a view used to test the last three days of blocks.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_JSON": {"name": "BLOCK_JSON", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "core", "recent_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018438.0249143, "relation_name": "polygon.test_silver.blocks_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','recent_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__blocks') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "silver__blocks", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__blocks", "model.fsc_evm._block_lookback"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.sql", "compiled": true, "compiled_code": "\n\n\n\nwith __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n) /* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"core\",\n \"recent_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','recent_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__blocks') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.blocks\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n __dbt__cte___block_lookback\n )\n\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.fsc_evm._block_lookback", "sql": " __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__contracts_recent": {"database": "polygon", "schema": "test_silver", "name": "test_silver__contracts_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/tests/contracts/test_silver__contracts_recent.sql", "original_file_path": "models/main_package/core/silver/tests/contracts/test_silver__contracts_recent.sql", "unique_id": "model.fsc_evm.test_silver__contracts_recent", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "contracts", "test_silver__contracts_recent"], "alias": "contracts_recent", "checksum": {"name": "sha256", "checksum": "fb689c58bb6c810028089001e646d017e7155a21bd9df615c1899035f96d17bd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "core", "daily_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "core", "daily_test", "phase_2"], "description": "", "columns": {"CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/silver/tests/contracts/test_silver__contracts_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "core", "daily_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018438.2276902, "relation_name": "polygon.test_silver.contracts_recent", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','daily_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__contracts') }}\nWHERE\n inserted_timestamp > DATEADD(DAY, -5, SYSDATE())", "language": "sql", "refs": [{"name": "silver__contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/contracts/test_silver__contracts_recent.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"core\",\n \"daily_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','daily_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__contracts') }}\nWHERE\n inserted_timestamp > DATEADD(DAY, -5, SYSDATE())\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.contracts\nWHERE\n inserted_timestamp > DATEADD(DAY, -5, SYSDATE())", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__contracts_full": {"database": "polygon", "schema": "test_silver", "name": "test_silver__contracts_full", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/tests/contracts/test_silver__contracts_full.sql", "original_file_path": "models/main_package/core/silver/tests/contracts/test_silver__contracts_full.sql", "unique_id": "model.fsc_evm.test_silver__contracts_full", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "contracts", "test_silver__contracts_full"], "alias": "contracts_full", "checksum": {"name": "sha256", "checksum": "e64cd8268fea50944c3ab370b219c131e8e82cc4b7c85188ee851d838aa7712c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "core", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "core", "full_test", "phase_2"], "description": "", "columns": {"CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/silver/tests/contracts/test_silver__contracts_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "core", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018438.2359269, "relation_name": "polygon.test_silver.contracts_full", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__contracts') }}", "language": "sql", "refs": [{"name": "silver__contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/contracts/test_silver__contracts_full.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"core\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__contracts') }}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.contracts", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__created_contracts_full": {"database": "polygon", "schema": "test_silver", "name": "test_silver__created_contracts_full", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/tests/created_contracts/test_silver__created_contracts_full.sql", "original_file_path": "models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_full.sql", "unique_id": "model.fsc_evm.test_silver__created_contracts_full", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "created_contracts", "test_silver__created_contracts_full"], "alias": "created_contracts_full", "checksum": {"name": "sha256", "checksum": "e706ce38fde4bc8620d85b87bf0d1dcf1ff6a19e87ea5d2f825f37f6fa0fb53a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "core", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "core", "full_test", "phase_2"], "description": "", "columns": {"BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "core", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018438.2441275, "relation_name": "polygon.test_silver.created_contracts_full", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__created_contracts') }}", "language": "sql", "refs": [{"name": "silver__created_contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__created_contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_full.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"core\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__created_contracts') }}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.created_contracts", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__created_contracts_recent": {"database": "polygon", "schema": "test_silver", "name": "test_silver__created_contracts_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/tests/created_contracts/test_silver__created_contracts_recent.sql", "original_file_path": "models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_recent.sql", "unique_id": "model.fsc_evm.test_silver__created_contracts_recent", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "created_contracts", "test_silver__created_contracts_recent"], "alias": "created_contracts_recent", "checksum": {"name": "sha256", "checksum": "d0a544ac080d86bf6c14fbbd8f065ac658ad3beee587649608af5544fb25bfff"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "core", "daily_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "core", "daily_test", "phase_2"], "description": "", "columns": {"BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "core", "daily_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018438.2795649, "relation_name": "polygon.test_silver.created_contracts_recent", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','daily_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__created_contracts') }}\nWHERE\n inserted_timestamp > DATEADD(DAY, -5, SYSDATE())", "language": "sql", "refs": [{"name": "silver__created_contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__created_contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_recent.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"core\",\n \"daily_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','daily_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__created_contracts') }}\nWHERE\n inserted_timestamp > DATEADD(DAY, -5, SYSDATE())\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.created_contracts\nWHERE\n inserted_timestamp > DATEADD(DAY, -5, SYSDATE())", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__receipts_full": {"database": "polygon", "schema": "test_silver", "name": "test_silver__receipts_full", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/tests/receipts/test_silver__receipts_full.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_full.sql", "unique_id": "model.fsc_evm.test_silver__receipts_full", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "test_silver__receipts_full"], "alias": "receipts_full", "checksum": {"name": "sha256", "checksum": "f88471582b61fd2f0f0db4535b4d79b182a81286e48652579de1922f1ee3f979"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "core", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "core", "full_test", "phase_2"], "description": "This is a view used to test all of the silver receipts model.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "RECEIPTS_JSON": {"name": "RECEIPTS_JSON", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "core", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018438.3145812, "relation_name": "polygon.test_silver.receipts_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__receipts') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "silver__receipts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__receipts"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_full.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"core\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__receipts') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.receipts\n\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__receipts_recent": {"database": "polygon", "schema": "test_silver", "name": "test_silver__receipts_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/tests/receipts/test_silver__receipts_recent.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.sql", "unique_id": "model.fsc_evm.test_silver__receipts_recent", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "test_silver__receipts_recent"], "alias": "receipts_recent", "checksum": {"name": "sha256", "checksum": "a6111de602ca726aeaeab869db3b1b10db9ff2facbb433056bf54d78021e3d37"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "core", "recent_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "core", "recent_test", "phase_2"], "description": "This is a view used to test the last three days of receipts.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "RECEIPTS_JSON": {"name": "RECEIPTS_JSON", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "core", "recent_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018438.3691876, "relation_name": "polygon.test_silver.receipts_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','recent_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__receipts') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "silver__receipts", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__receipts", "model.fsc_evm._block_lookback"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.sql", "compiled": true, "compiled_code": "\n\n\n\nwith __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n) /* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"core\",\n \"recent_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','recent_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__receipts') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.receipts\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n __dbt__cte___block_lookback\n )\n\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.fsc_evm._block_lookback", "sql": " __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__transactions_full": {"database": "polygon", "schema": "test_silver", "name": "test_silver__transactions_full", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/tests/transactions/test_silver__transactions_full.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_full.sql", "unique_id": "model.fsc_evm.test_silver__transactions_full", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "test_silver__transactions_full"], "alias": "transactions_full", "checksum": {"name": "sha256", "checksum": "d6323087c1ae309fb698e01708f16cd3256e0be03861cc5959a4faf404902e9b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "core", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "core", "full_test", "phase_2"], "description": "This is a view used to test all of the silver transactions model.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRANSACTION_JSON": {"name": "TRANSACTION_JSON", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "core", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018438.5250506, "relation_name": "polygon.test_silver.transactions_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__transactions') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "silver__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__transactions"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_full.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"core\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__transactions') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.transactions\n\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__transactions_recent": {"database": "polygon", "schema": "test_silver", "name": "test_silver__transactions_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/tests/transactions/test_silver__transactions_recent.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.sql", "unique_id": "model.fsc_evm.test_silver__transactions_recent", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "test_silver__transactions_recent"], "alias": "transactions_recent", "checksum": {"name": "sha256", "checksum": "92f6b932bf31afc180c46511b5b8a69395072665331ffa974e73a95860687dda"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "core", "recent_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "core", "recent_test", "phase_2"], "description": "This is a view used to test the last three days of transactions.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRANSACTION_JSON": {"name": "TRANSACTION_JSON", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "core", "recent_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018438.4230604, "relation_name": "polygon.test_silver.transactions_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','recent_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__transactions') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "silver__transactions", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__transactions", "model.fsc_evm._block_lookback"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.sql", "compiled": true, "compiled_code": "\n\n\n\nwith __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n) /* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"core\",\n \"recent_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','recent_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__transactions') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.transactions\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n __dbt__cte___block_lookback\n )\n\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.fsc_evm._block_lookback", "sql": " __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__proxies_recent": {"database": "polygon", "schema": "test_silver", "name": "test_silver__proxies_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/tests/proxies/test_silver__proxies_recent.sql", "original_file_path": "models/main_package/core/silver/tests/proxies/test_silver__proxies_recent.sql", "unique_id": "model.fsc_evm.test_silver__proxies_recent", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "proxies", "test_silver__proxies_recent"], "alias": "proxies_recent", "checksum": {"name": "sha256", "checksum": "80d3759f190323cbe898ace4e6de104bc721305a54442836c9beab7fea00d1e4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "core", "daily_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "core", "daily_test", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/silver/tests/proxies/test_silver__proxies_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "core", "daily_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018438.6326573, "relation_name": "polygon.test_silver.proxies_recent", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','daily_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__proxies') }}\nWHERE\n _inserted_timestamp > DATEADD(DAY, -5, SYSDATE())", "language": "sql", "refs": [{"name": "silver__proxies", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__proxies"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/proxies/test_silver__proxies_recent.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"core\",\n \"daily_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','daily_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__proxies') }}\nWHERE\n _inserted_timestamp > DATEADD(DAY, -5, SYSDATE())\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.proxies\nWHERE\n _inserted_timestamp > DATEADD(DAY, -5, SYSDATE())", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_silver__proxies_full": {"database": "polygon", "schema": "test_silver", "name": "test_silver__proxies_full", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/silver/tests/proxies/test_silver__proxies_full.sql", "original_file_path": "models/main_package/core/silver/tests/proxies/test_silver__proxies_full.sql", "unique_id": "model.fsc_evm.test_silver__proxies_full", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "proxies", "test_silver__proxies_full"], "alias": "proxies_full", "checksum": {"name": "sha256", "checksum": "96b1aa2f412b38b4522393e27e71450b75b5388a8e913c6ef0cec61ede666cfe"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_silver", "core", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_silver", "core", "full_test", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/silver/tests/proxies/test_silver__proxies_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_silver", "core", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018438.6262703, "relation_name": "polygon.test_silver.proxies_full", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__proxies') }}", "language": "sql", "refs": [{"name": "silver__proxies", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__proxies"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/proxies/test_silver__proxies_full.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_silver\",\n \"core\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_silver','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__proxies') }}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.silver.proxies", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__get_chainhead": {"database": "polygon", "schema": "streamline", "name": "streamline__get_chainhead", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/streamline__get_chainhead.sql", "original_file_path": "models/main_package/core/streamline/streamline__get_chainhead.sql", "unique_id": "model.fsc_evm.streamline__get_chainhead", "fqn": ["fsc_evm", "main_package", "core", "streamline", "streamline__get_chainhead"], "alias": "get_chainhead", "checksum": {"name": "sha256", "checksum": "3eeca42b15e6617f7089223677574a516deaff5d7b3d2816e0aa31b03f5d2bf5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "core", "chainhead", "phase_1"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "core", "chainhead", "phase_1"], "description": "This model is used to get the chainhead from the blockchain.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/streamline/streamline__get_chainhead.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "table", "tags": ["streamline", "core", "chainhead", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018438.6385531, "relation_name": "polygon.streamline.get_chainhead", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = 'table',\n tags = ['streamline','core','chainhead','phase_1']\n) }}\n\nSELECT\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n OBJECT_CONSTRUCT(\n 'id',\n 0,\n 'jsonrpc',\n '2.0',\n 'method',\n 'eth_blockNumber',\n 'params',\n []\n ),\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS resp,\n utils.udf_hex_to_int(\n resp :data :result :: STRING\n ) AS block_number", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__blocks": {"database": "polygon", "schema": "streamline", "name": "streamline__blocks", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/streamline__blocks.sql", "original_file_path": "models/main_package/core/streamline/streamline__blocks.sql", "unique_id": "model.fsc_evm.streamline__blocks", "fqn": ["fsc_evm", "main_package", "core", "streamline", "streamline__blocks"], "alias": "blocks", "checksum": {"name": "sha256", "checksum": "f376e75226968c3117d480bcb376d1f113d180314ccf483dd461ca20a52a9c63"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "core", "chainhead", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "core", "chainhead", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "core", "chainhead", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018320.1842344, "relation_name": "polygon.streamline.blocks", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['streamline','core','chainhead','phase_1']\n) }}\n\nSELECT\n _id,\n (\n ({{ vars.MAIN_SL_BLOCKS_PER_HOUR }} / 60) * {{ vars.MAIN_SL_CHAINHEAD_DELAY_MINUTES }}\n ) :: INT AS block_number_delay, --minute-based block delay\n (_id - block_number_delay) :: INT AS block_number,\n utils.udf_int_to_hex(block_number) AS block_number_hex\nFROM\n {{ ref('admin__number_sequence') }}\nWHERE\n _id <= (\n SELECT\n COALESCE(\n block_number,\n 0\n )\n FROM\n {{ ref(\"streamline__get_chainhead\") }}\n )\n AND block_number >= {{ vars.GLOBAL_START_BLOCK }}", "language": "sql", "refs": [{"name": "admin__number_sequence", "package": null, "version": null}, {"name": "streamline__get_chainhead", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.admin__number_sequence", "model.fsc_evm.streamline__get_chainhead"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__receipts_by_hash_realtime": {"database": "polygon", "schema": "streamline", "name": "streamline__receipts_by_hash_realtime", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/realtime/streamline__receipts_by_hash_realtime.sql", "original_file_path": "models/main_package/core/streamline/realtime/streamline__receipts_by_hash_realtime.sql", "unique_id": "model.fsc_evm.streamline__receipts_by_hash_realtime", "fqn": ["fsc_evm", "main_package", "core", "streamline", "realtime", "streamline__receipts_by_hash_realtime"], "alias": "receipts_by_hash_realtime", "checksum": {"name": "sha256", "checksum": "79109a796dc9b10843268eadc7f6a999698e265e851a7a4d8ac79edb73bd9d43"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "core", "realtime", "receipts_by_hash", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "core", "realtime", "receipts_by_hash", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "core", "realtime", "receipts_by_hash", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018320.5029764, "relation_name": "polygon.streamline.receipts_by_hash_realtime", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','core','realtime','receipts_by_hash','phase_1']\n) }}\n\n{# Main query starts here #}\n{# Start by invoking LQ for the last hour of blocks #}\n\nWITH numbered_blocks AS (\n\n SELECT\n block_number_hex,\n block_number,\n ROW_NUMBER() over (\n ORDER BY\n block_number\n ) AS row_num\n FROM\n (\n SELECT\n *\n FROM\n {{ ref('streamline__blocks') }}\n ORDER BY\n block_number DESC\n LIMIT\n {{ vars.MAIN_SL_BLOCKS_PER_HOUR }}\n )\n), batched_blocks AS (\n SELECT\n block_number_hex,\n block_number,\n 100 AS rows_per_batch,\n CEIL(\n row_num / rows_per_batch\n ) AS batch_number,\n MOD(\n row_num - 1,\n rows_per_batch\n ) + 1 AS row_within_batch\n FROM\n numbered_blocks\n),\nbatched_calls AS (\n SELECT\n batch_number,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockByNumber',\n [block_number_hex, false]\n )\n ) AS batch_request\n FROM\n batched_blocks\n GROUP BY\n batch_number\n),\nrpc_requests AS (\n SELECT\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type',\n 'application/json',\n 'fsc-quantum-state',\n 'livequery'\n ),\n batch_request,\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS resp\n FROM\n batched_calls\n),\nblocks AS (\n SELECT\n utils.udf_hex_to_int(\n VALUE :result :number :: STRING\n ) :: INT AS block_number,\n VALUE :result :transactions AS tx_hashes\n FROM\n rpc_requests,\n LATERAL FLATTEN (\n input => resp :data\n )\n),\nflat_tx_hashes AS (\n SELECT\n block_number,\n VALUE :: STRING AS tx_hash\n FROM\n blocks,\n LATERAL FLATTEN (\n input => tx_hashes\n )\n),\nto_do AS (\n\n SELECT \n block_number,\n tx_hash\n FROM (\n SELECT\n block_number,\n tx_hash\n FROM\n flat_tx_hashes\n WHERE 1=1\n\n {% if vars.MAIN_SL_RECEIPTS_BY_HASH_REALTIME_TXNS_MODEL_ENABLED %}\n UNION ALL\n SELECT\n block_number,\n tx_hash\n FROM\n {{ ref('test_gold__fact_transactions_recent') }}\n {% endif %}\n\n )\n\n EXCEPT\n\n SELECT\n block_number,\n tx_hash\n FROM\n {{ ref('streamline__receipts_by_hash_complete') }}\n WHERE 1=1\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number >= (SELECT block_number FROM {{ ref('_block_lookback') }})\n {% endif %}\n),\nready_blocks AS (\n SELECT\n block_number,\n tx_hash\n FROM\n to_do\n\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n\n UNION\n SELECT\n block_number,\n tx_hash\n FROM\n {{ ref('test_gold__fact_transactions_recent') }}\n JOIN {{ ref('_missing_receipts') }} using (block_number)\n\n {% endif %}\n\n {% if vars.MAIN_SL_TESTING_LIMIT is not none %}\n ORDER BY block_number DESC\n LIMIT {{ vars.MAIN_SL_TESTING_LIMIT }} \n {% endif %}\n)\nSELECT\n block_number,\n tx_hash,\n ROUND(\n block_number,\n -3\n ) AS partition_key,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type',\n 'application/json',\n 'fsc-quantum-state', 'streamline'\n ),\n OBJECT_CONSTRUCT(\n 'id', block_number,\n 'jsonrpc', '2.0',\n 'method', 'eth_getTransactionReceipt',\n 'params', ARRAY_CONSTRUCT(tx_hash)\n ),\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS request\nFROM\n ready_blocks\n\nORDER BY partition_key DESC, block_number DESC\n\nLIMIT {{ vars.MAIN_SL_RECEIPTS_BY_HASH_REALTIME_SQL_LIMIT }}\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = {\n \"external_table\": 'receipts_by_hash',\n \"sql_limit\": vars.MAIN_SL_RECEIPTS_BY_HASH_REALTIME_SQL_LIMIT,\n \"producer_batch_size\": vars.MAIN_SL_RECEIPTS_BY_HASH_REALTIME_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.MAIN_SL_RECEIPTS_BY_HASH_REALTIME_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\": vars.MAIN_SL_RECEIPTS_BY_HASH_REALTIME_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\": 'receipts_by_hash_realtime'\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n \n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "streamline__blocks", "package": null, "version": null}, {"name": "test_gold__fact_transactions_recent", "package": null, "version": null}, {"name": "streamline__receipts_by_hash_complete", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}, {"name": "test_gold__fact_transactions_recent", "package": null, "version": null}, {"name": "_missing_receipts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.streamline__blocks", "model.fsc_evm.test_gold__fact_transactions_recent", "model.fsc_evm.streamline__receipts_by_hash_complete", "model.fsc_evm._block_lookback", "model.fsc_evm._missing_receipts"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__traces_realtime": {"database": "polygon", "schema": "streamline", "name": "streamline__traces_realtime", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/realtime/streamline__traces_realtime.sql", "original_file_path": "models/main_package/core/streamline/realtime/streamline__traces_realtime.sql", "unique_id": "model.fsc_evm.streamline__traces_realtime", "fqn": ["fsc_evm", "main_package", "core", "streamline", "realtime", "streamline__traces_realtime"], "alias": "traces_realtime", "checksum": {"name": "sha256", "checksum": "7d623a376203a158cd5e585a579a9d0d9fb3fd8c8375f6cab2734cdd9a02e055"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "core", "realtime", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "core", "realtime", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "core", "realtime", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018320.8305538, "relation_name": "polygon.streamline.traces_realtime", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','core','realtime','phase_1']\n) }}\n\n{# Main query starts here #}\nWITH \n{% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n last_3_days AS (\n SELECT block_number\n FROM {{ ref(\"_block_lookback\") }}\n ),\n{% endif %}\n\n{# Identify blocks that need processing #}\nto_do AS (\n SELECT block_number\n FROM {{ ref(\"streamline__blocks\") }}\n WHERE \n block_number IS NOT NULL\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number >= (SELECT block_number FROM last_3_days)\n {% endif %}\n {% if vars.MAIN_SL_TRACES_REALTIME_REQUEST_START_BLOCK is not none %}\n AND block_number >= {{ vars.MAIN_SL_TRACES_REALTIME_REQUEST_START_BLOCK }}\n {% endif %}\n\n EXCEPT\n\n {# Exclude blocks that have already been processed #}\n SELECT block_number\n FROM {{ ref('streamline__traces_complete') }}\n WHERE 1=1\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number >= (SELECT block_number FROM last_3_days)\n {% endif %}\n)\n\n{# Prepare the final list of blocks to process #}\n,ready_blocks AS (\n SELECT block_number\n FROM to_do\n\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n UNION\n SELECT block_number\n FROM {{ ref(\"_unconfirmed_blocks\") }}\n UNION\n SELECT block_number\n FROM {{ ref(\"_missing_traces\") }}\n {% endif %}\n\n {% if vars.MAIN_SL_TESTING_LIMIT is not none %}\n ORDER BY block_number DESC\n LIMIT {{ vars.MAIN_SL_TESTING_LIMIT }} \n {% endif %}\n)\n\n{# Generate API requests for each block #}\nSELECT\n block_number,\n ROUND(block_number, -3) AS partition_key,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'streamline'\n ),\n OBJECT_CONSTRUCT(\n 'id', block_number,\n 'jsonrpc', '2.0',\n 'method', 'debug_traceBlockByNumber',\n 'params', ARRAY_CONSTRUCT(utils.udf_int_to_hex(block_number), OBJECT_CONSTRUCT('tracer', 'callTracer', 'timeout', '120s'))\n ),\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS request\nFROM\n ready_blocks\n \nORDER BY partition_key DESC, block_number DESC\n\nLIMIT {{ vars.MAIN_SL_TRACES_REALTIME_SQL_LIMIT }}\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = {\n \"external_table\": 'traces',\n \"sql_limit\": vars.MAIN_SL_TRACES_REALTIME_SQL_LIMIT,\n \"producer_batch_size\": vars.MAIN_SL_TRACES_REALTIME_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.MAIN_SL_TRACES_REALTIME_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\": vars.MAIN_SL_TRACES_REALTIME_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\": 'traces_realtime',\n \"exploded_key\": tojson(['result'])\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n \n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "_block_lookback", "package": null, "version": null}, {"name": "streamline__blocks", "package": null, "version": null}, {"name": "streamline__traces_complete", "package": null, "version": null}, {"name": "_unconfirmed_blocks", "package": null, "version": null}, {"name": "_missing_traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm._block_lookback", "model.fsc_evm.streamline__blocks", "model.fsc_evm.streamline__traces_complete", "model.fsc_evm._unconfirmed_blocks", "model.fsc_evm._missing_traces"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__receipts_realtime": {"database": "polygon", "schema": "streamline", "name": "streamline__receipts_realtime", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/realtime/streamline__receipts_realtime.sql", "original_file_path": "models/main_package/core/streamline/realtime/streamline__receipts_realtime.sql", "unique_id": "model.fsc_evm.streamline__receipts_realtime", "fqn": ["fsc_evm", "main_package", "core", "streamline", "realtime", "streamline__receipts_realtime"], "alias": "receipts_realtime", "checksum": {"name": "sha256", "checksum": "be8f93ccf6ead4137deb6c7d2055fa84e37b303ad7e6ef2c65075226b8f8d076"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "core", "realtime", "receipts", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "core", "realtime", "receipts", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "core", "realtime", "receipts", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018321.1578248, "relation_name": "polygon.streamline.receipts_realtime", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','core','realtime','receipts','phase_1']\n) }}\n\n{# Main query starts here #}\nWITH \n{% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n last_3_days AS (\n SELECT block_number\n FROM {{ ref(\"_block_lookback\") }}\n ),\n{% endif %}\n\n{# Identify blocks that need processing #}\nto_do AS (\n SELECT block_number\n FROM {{ ref(\"streamline__blocks\") }}\n WHERE \n block_number IS NOT NULL\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number >= (SELECT block_number FROM last_3_days)\n {% endif %}\n\n EXCEPT\n\n {# Exclude blocks that have already been processed #}\n SELECT block_number\n FROM {{ ref('streamline__receipts_complete') }}\n WHERE 1=1\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number >= (SELECT block_number FROM last_3_days)\n {% endif %}\n)\n\n{# Prepare the final list of blocks to process #}\n,ready_blocks AS (\n SELECT block_number\n FROM to_do\n\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n UNION\n SELECT block_number\n FROM {{ ref(\"_unconfirmed_blocks\") }}\n UNION\n SELECT block_number\n FROM {{ ref(\"_missing_txs\") }}\n UNION\n SELECT block_number\n FROM {{ ref(\"_missing_receipts\") }}\n {% endif %}\n\n {% if vars.MAIN_SL_TESTING_LIMIT is not none %}\n ORDER BY block_number DESC\n LIMIT {{ vars.MAIN_SL_TESTING_LIMIT }} \n {% endif %}\n)\n\n{# Generate API requests for each block #}\nSELECT\n block_number,\n ROUND(block_number, -3) AS partition_key,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'streamline'\n ),\n OBJECT_CONSTRUCT(\n 'id', block_number,\n 'jsonrpc', '2.0',\n 'method', 'eth_getBlockReceipts',\n 'params', ARRAY_CONSTRUCT(utils.udf_int_to_hex(block_number))\n ),\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS request\nFROM\n ready_blocks\n \nORDER BY partition_key DESC, block_number DESC\n\nLIMIT {{ vars.MAIN_SL_RECEIPTS_REALTIME_SQL_LIMIT }}\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = {\n \"external_table\": 'receipts',\n \"sql_limit\": vars.MAIN_SL_RECEIPTS_REALTIME_SQL_LIMIT,\n \"producer_batch_size\": vars.MAIN_SL_RECEIPTS_REALTIME_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.MAIN_SL_RECEIPTS_REALTIME_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\": vars.MAIN_SL_RECEIPTS_REALTIME_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\": 'receipts_realtime',\n \"exploded_key\": tojson(['result'])\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n \n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "_block_lookback", "package": null, "version": null}, {"name": "streamline__blocks", "package": null, "version": null}, {"name": "streamline__receipts_complete", "package": null, "version": null}, {"name": "_unconfirmed_blocks", "package": null, "version": null}, {"name": "_missing_txs", "package": null, "version": null}, {"name": "_missing_receipts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm._block_lookback", "model.fsc_evm.streamline__blocks", "model.fsc_evm.streamline__receipts_complete", "model.fsc_evm._unconfirmed_blocks", "model.fsc_evm._missing_txs", "model.fsc_evm._missing_receipts"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__confirm_blocks_realtime": {"database": "polygon", "schema": "streamline", "name": "streamline__confirm_blocks_realtime", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/realtime/streamline__confirm_blocks_realtime.sql", "original_file_path": "models/main_package/core/streamline/realtime/streamline__confirm_blocks_realtime.sql", "unique_id": "model.fsc_evm.streamline__confirm_blocks_realtime", "fqn": ["fsc_evm", "main_package", "core", "streamline", "realtime", "streamline__confirm_blocks_realtime"], "alias": "confirm_blocks_realtime", "checksum": {"name": "sha256", "checksum": "b3f185c6ae478120d76bbc46b6234d9081864f6ccabdcb57d0bfaad5ac132991"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "core", "realtime", "confirm_blocks", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "core", "realtime", "confirm_blocks", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "core", "realtime", "confirm_blocks", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018321.4846134, "relation_name": "polygon.streamline.confirm_blocks_realtime", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','core','realtime','confirm_blocks','phase_2']\n) }}\n\n{# Main query starts here #}\nWITH \n{% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n last_3_days AS (\n SELECT block_number\n FROM {{ ref(\"_block_lookback\") }}\n ),\n{% endif %}\n\n{# Delay blocks #}\nlook_back AS (\n SELECT\n block_number\n FROM\n {{ ref(\"_max_block_by_hour\") }}\n qualify ROW_NUMBER() over (\n ORDER BY\n block_number DESC\n ) = 6\n ),\n\n{# Identify blocks that need processing #}\nto_do AS (\n SELECT block_number\n FROM {{ ref(\"streamline__blocks\") }}\n WHERE \n block_number IS NOT NULL\n AND block_number <= (SELECT block_number FROM look_back)\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number >= (SELECT block_number FROM last_3_days)\n {% endif %}\n\n EXCEPT\n\n {# Exclude blocks that have already been processed #}\n SELECT block_number\n FROM {{ ref('streamline__confirm_blocks_complete') }}\n WHERE 1=1\n AND block_number IS NOT NULL\n AND block_number <= (SELECT block_number FROM look_back)\n AND _inserted_timestamp >= DATEADD(\n 'day',\n -4,\n SYSDATE()\n )\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number >= (SELECT block_number FROM last_3_days)\n {% endif %}\n)\n\n{# Prepare the final list of blocks to process #}\n,ready_blocks AS (\n SELECT block_number\n FROM to_do\n\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n UNION\n SELECT block_number\n FROM {{ ref(\"_unconfirmed_blocks\") }}\n {% endif %}\n\n {% if vars.MAIN_SL_TESTING_LIMIT is not none %}\n ORDER BY block_number DESC\n LIMIT {{ vars.MAIN_SL_TESTING_LIMIT }} \n {% endif %}\n)\n\n{# Generate API requests for each block #}\nSELECT\n block_number,\n ROUND(block_number, -3) AS partition_key,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'streamline'\n ),\n OBJECT_CONSTRUCT(\n 'id', block_number,\n 'jsonrpc', '2.0',\n 'method', 'eth_getBlockByNumber',\n 'params', ARRAY_CONSTRUCT(utils.udf_int_to_hex(block_number), FALSE)\n ),\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS request\nFROM\n ready_blocks\n \nORDER BY partition_key DESC, block_number DESC\n\nLIMIT {{ vars.MAIN_SL_CONFIRM_BLOCKS_REALTIME_SQL_LIMIT }}\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = {\n \"external_table\": 'confirm_blocks',\n \"sql_limit\": vars.MAIN_SL_CONFIRM_BLOCKS_REALTIME_SQL_LIMIT,\n \"producer_batch_size\": vars.MAIN_SL_CONFIRM_BLOCKS_REALTIME_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.MAIN_SL_CONFIRM_BLOCKS_REALTIME_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\": vars.MAIN_SL_CONFIRM_BLOCKS_REALTIME_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\": 'confirm_blocks_realtime'\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n \n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "_block_lookback", "package": null, "version": null}, {"name": "_max_block_by_hour", "package": null, "version": null}, {"name": "streamline__blocks", "package": null, "version": null}, {"name": "streamline__confirm_blocks_complete", "package": null, "version": null}, {"name": "_unconfirmed_blocks", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm._block_lookback", "model.fsc_evm._max_block_by_hour", "model.fsc_evm.streamline__blocks", "model.fsc_evm.streamline__confirm_blocks_complete", "model.fsc_evm._unconfirmed_blocks"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__blocks_transactions_realtime": {"database": "polygon", "schema": "streamline", "name": "streamline__blocks_transactions_realtime", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/realtime/streamline__blocks_transactions_realtime.sql", "original_file_path": "models/main_package/core/streamline/realtime/streamline__blocks_transactions_realtime.sql", "unique_id": "model.fsc_evm.streamline__blocks_transactions_realtime", "fqn": ["fsc_evm", "main_package", "core", "streamline", "realtime", "streamline__blocks_transactions_realtime"], "alias": "blocks_transactions_realtime", "checksum": {"name": "sha256", "checksum": "affa89e802b76e011bba6aba1ba4c7e446899fea21058ccd0fbb7a0f28b75632"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "core", "realtime", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "core", "realtime", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "core", "realtime", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018321.8129718, "relation_name": "polygon.streamline.blocks_transactions_realtime", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','core','realtime','phase_1']\n) }}\n\n{# Main query starts here #}\nWITH \n{% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n last_3_days AS (\n SELECT block_number\n FROM {{ ref(\"_block_lookback\") }}\n ),\n{% endif %}\n\n{# Identify blocks that need processing #}\nto_do AS (\n SELECT block_number\n FROM {{ ref(\"streamline__blocks\") }}\n WHERE \n block_number IS NOT NULL\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number >= (SELECT block_number FROM last_3_days)\n {% endif %}\n\n EXCEPT\n\n SELECT block_number\n FROM {{ ref(\"streamline__blocks_complete\") }} b\n INNER JOIN {{ ref(\"streamline__transactions_complete\") }} t USING(block_number)\n WHERE 1=1\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number >= (SELECT block_number FROM last_3_days)\n {% endif %}\n),\nready_blocks AS (\n SELECT block_number\n FROM to_do\n\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n UNION\n SELECT block_number\n FROM {{ ref(\"_unconfirmed_blocks\") }}\n UNION\n SELECT block_number\n FROM {{ ref(\"_missing_txs\") }}\n {% endif %}\n\n {% if vars.MAIN_SL_TESTING_LIMIT is not none %}\n ORDER BY block_number DESC\n LIMIT {{ vars.MAIN_SL_TESTING_LIMIT }} \n {% endif %}\n)\n\n{# Generate API requests for each block #}\nSELECT\n block_number,\n ROUND(block_number, -3) AS partition_key,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'streamline'\n ),\n OBJECT_CONSTRUCT(\n 'id', block_number,\n 'jsonrpc', '2.0',\n 'method', 'eth_getBlockByNumber',\n 'params', ARRAY_CONSTRUCT(utils.udf_int_to_hex(block_number), TRUE)\n ),\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS request\nFROM\n ready_blocks\n \nORDER BY partition_key DESC, block_number DESC\n\nLIMIT {{ vars.MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_SQL_LIMIT }}\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = {\n \"external_table\": 'blocks_transactions',\n \"sql_limit\": vars.MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_SQL_LIMIT,\n \"producer_batch_size\": vars.MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\": vars.MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\": 'blocks_transactions_realtime',\n \"exploded_key\": tojson(['result', 'result.transactions'])\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n \n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "_block_lookback", "package": null, "version": null}, {"name": "streamline__blocks", "package": null, "version": null}, {"name": "streamline__blocks_complete", "package": null, "version": null}, {"name": "streamline__transactions_complete", "package": null, "version": null}, {"name": "_unconfirmed_blocks", "package": null, "version": null}, {"name": "_missing_txs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm._block_lookback", "model.fsc_evm.streamline__blocks", "model.fsc_evm.streamline__blocks_complete", "model.fsc_evm.streamline__transactions_complete", "model.fsc_evm._unconfirmed_blocks", "model.fsc_evm._missing_txs"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__transactions_complete": {"database": "polygon", "schema": "streamline", "name": "streamline__transactions_complete", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/complete/streamline__transactions_complete.sql", "original_file_path": "models/main_package/core/streamline/complete/streamline__transactions_complete.sql", "unique_id": "model.fsc_evm.streamline__transactions_complete", "fqn": ["fsc_evm", "main_package", "core", "streamline", "complete", "streamline__transactions_complete"], "alias": "transactions_complete", "checksum": {"name": "sha256", "checksum": "d00b7ca4b93d50e7148fd86ecf4eb1f6ab15b55e9948175ec119b93914ca252e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "core", "complete", "phase_1"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "ROUND(block_number, -3)"}, "tags": ["streamline", "core", "complete", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "block_number", "cluster_by": "ROUND(block_number, -3)", "full_refresh": false, "tags": ["streamline", "core", "complete", "phase_1"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018322.1405962, "relation_name": "polygon.streamline.transactions_complete", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n-- depends_on: {{ ref('bronze__transactions') }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"block_number\",\n cluster_by = \"ROUND(block_number, -3)\",\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n full_refresh = vars.GLOBAL_STREAMLINE_FR_ENABLED,\n tags = ['streamline','core','complete','phase_1']\n) }}\n\n{# Main query starts here #}\nSELECT\n block_number,\n file_name,\n {{ dbt_utils.generate_surrogate_key(['block_number']) }} AS complete_transactions_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {% if is_incremental() %}\n {{ ref('bronze__transactions') }}\n WHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM\n {{ this }}\n )\n {% else %}\n {{ ref('bronze__transactions_fr') }}\n {% endif %}\n\nQUALIFY (ROW_NUMBER() OVER (PARTITION BY block_number ORDER BY _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__transactions", "package": null, "version": null}, {"name": "bronze__transactions_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__transactions", "model.fsc_evm.bronze__transactions_fr"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__traces_complete": {"database": "polygon", "schema": "streamline", "name": "streamline__traces_complete", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/complete/streamline__traces_complete.sql", "original_file_path": "models/main_package/core/streamline/complete/streamline__traces_complete.sql", "unique_id": "model.fsc_evm.streamline__traces_complete", "fqn": ["fsc_evm", "main_package", "core", "streamline", "complete", "streamline__traces_complete"], "alias": "traces_complete", "checksum": {"name": "sha256", "checksum": "4895cd956819b7de62271f019f1f3fa93972304a587443d67a56d1b24fd1978b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "core", "complete", "phase_1"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "ROUND(block_number, -3)"}, "tags": ["streamline", "core", "complete", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "block_number", "cluster_by": "ROUND(block_number, -3)", "full_refresh": false, "tags": ["streamline", "core", "complete", "phase_1"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018322.4611924, "relation_name": "polygon.streamline.traces_complete", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n-- depends_on: {{ ref('bronze__traces') }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"block_number\",\n cluster_by = \"ROUND(block_number, -3)\",\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n full_refresh = vars.GLOBAL_STREAMLINE_FR_ENABLED,\n tags = ['streamline','core','complete','phase_1']\n) }}\n\n{# Main query starts here #}\nSELECT\n block_number,\n file_name,\n {{ dbt_utils.generate_surrogate_key(['block_number']) }} AS complete_traces_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {% if is_incremental() %}\n {{ ref('bronze__traces') }}\n WHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM\n {{ this }}\n )\n {% else %}\n {{ ref('bronze__traces_fr') }}\n {% endif %}\n\nQUALIFY (ROW_NUMBER() OVER (PARTITION BY block_number ORDER BY _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__traces", "package": null, "version": null}, {"name": "bronze__traces_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__traces", "model.fsc_evm.bronze__traces_fr"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__confirm_blocks_complete": {"database": "polygon", "schema": "streamline", "name": "streamline__confirm_blocks_complete", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/complete/streamline__confirm_blocks_complete.sql", "original_file_path": "models/main_package/core/streamline/complete/streamline__confirm_blocks_complete.sql", "unique_id": "model.fsc_evm.streamline__confirm_blocks_complete", "fqn": ["fsc_evm", "main_package", "core", "streamline", "complete", "streamline__confirm_blocks_complete"], "alias": "confirm_blocks_complete", "checksum": {"name": "sha256", "checksum": "366dbb776d2c9606db979f6a36252d9331ce9c6dfe228ecb1571e1ad2a9298a5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "core", "complete", "confirm_blocks", "phase_1"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "ROUND(block_number, -3)"}, "tags": ["streamline", "core", "complete", "confirm_blocks", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "block_number", "cluster_by": "ROUND(block_number, -3)", "full_refresh": false, "tags": ["streamline", "core", "complete", "confirm_blocks", "phase_1"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018322.7826943, "relation_name": "polygon.streamline.confirm_blocks_complete", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n-- depends_on: {{ ref('bronze__confirm_blocks') }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"block_number\",\n cluster_by = \"ROUND(block_number, -3)\",\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n full_refresh = vars.GLOBAL_STREAMLINE_FR_ENABLED,\n tags = ['streamline','core','complete','confirm_blocks','phase_1']\n) }}\n\n{# Main query starts here #}\nSELECT\n block_number,\n file_name,\n {{ dbt_utils.generate_surrogate_key(['block_number']) }} AS complete_confirm_blocks_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {% if is_incremental() %}\n {{ ref('bronze__confirm_blocks') }}\n WHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM\n {{ this }}\n )\n {% else %}\n {{ ref('bronze__confirm_blocks_fr') }}\n {% endif %}\n\nQUALIFY (ROW_NUMBER() OVER (PARTITION BY block_number ORDER BY _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__confirm_blocks", "package": null, "version": null}, {"name": "bronze__confirm_blocks_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__confirm_blocks", "model.fsc_evm.bronze__confirm_blocks_fr"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__blocks_complete": {"database": "polygon", "schema": "streamline", "name": "streamline__blocks_complete", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/complete/streamline__blocks_complete.sql", "original_file_path": "models/main_package/core/streamline/complete/streamline__blocks_complete.sql", "unique_id": "model.fsc_evm.streamline__blocks_complete", "fqn": ["fsc_evm", "main_package", "core", "streamline", "complete", "streamline__blocks_complete"], "alias": "blocks_complete", "checksum": {"name": "sha256", "checksum": "bdf0a2167846fef8625a1b96acbb5c08ae8a88c9448a9f1742f6821af202f59a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "core", "complete", "phase_1"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "ROUND(block_number, -3)"}, "tags": ["streamline", "core", "complete", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "block_number", "cluster_by": "ROUND(block_number, -3)", "full_refresh": false, "tags": ["streamline", "core", "complete", "phase_1"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018323.1027443, "relation_name": "polygon.streamline.blocks_complete", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n-- depends_on: {{ ref('bronze__blocks') }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"block_number\",\n cluster_by = \"ROUND(block_number, -3)\",\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n full_refresh = vars.GLOBAL_STREAMLINE_FR_ENABLED,\n tags = ['streamline','core','complete','phase_1']\n) }}\n\n{# Main query starts here #}\nSELECT\n block_number,\n file_name,\n {{ dbt_utils.generate_surrogate_key(['block_number']) }} AS complete_blocks_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {% if is_incremental() %}\n {{ ref('bronze__blocks') }}\n WHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM\n {{ this }}\n )\n {% else %}\n {{ ref('bronze__blocks_fr') }}\n {% endif %}\n\nQUALIFY (ROW_NUMBER() OVER (PARTITION BY block_number ORDER BY _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__blocks", "package": null, "version": null}, {"name": "bronze__blocks_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__blocks", "model.fsc_evm.bronze__blocks_fr"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__receipts_complete": {"database": "polygon", "schema": "streamline", "name": "streamline__receipts_complete", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/complete/streamline__receipts_complete.sql", "original_file_path": "models/main_package/core/streamline/complete/streamline__receipts_complete.sql", "unique_id": "model.fsc_evm.streamline__receipts_complete", "fqn": ["fsc_evm", "main_package", "core", "streamline", "complete", "streamline__receipts_complete"], "alias": "receipts_complete", "checksum": {"name": "sha256", "checksum": "9d7eb6e03039133e610741c0f124d0dd4ebe3fa1f45b671fdd44bef1dbae2ecf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "core", "complete", "receipts", "phase_1"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "ROUND(block_number, -3)"}, "tags": ["streamline", "core", "complete", "receipts", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "block_number", "cluster_by": "ROUND(block_number, -3)", "full_refresh": false, "tags": ["streamline", "core", "complete", "receipts", "phase_1"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018323.4243882, "relation_name": "polygon.streamline.receipts_complete", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n-- depends_on: {{ ref('bronze__receipts') }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"block_number\",\n cluster_by = \"ROUND(block_number, -3)\",\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n full_refresh = vars.GLOBAL_STREAMLINE_FR_ENABLED,\n tags = ['streamline','core','complete','receipts','phase_1']\n) }}\n\n{# Main query starts here #}\nSELECT\n block_number,\n file_name,\n {{ dbt_utils.generate_surrogate_key(['block_number']) }} AS complete_receipts_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {% if is_incremental() %}\n {{ ref('bronze__receipts') }}\n WHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM\n {{ this }}\n )\n {% else %}\n {{ ref('bronze__receipts_fr') }}\n {% endif %}\n\nQUALIFY (ROW_NUMBER() OVER (PARTITION BY block_number ORDER BY _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__receipts", "package": null, "version": null}, {"name": "bronze__receipts_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__receipts", "model.fsc_evm.bronze__receipts_fr"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__receipts_by_hash_complete": {"database": "polygon", "schema": "streamline", "name": "streamline__receipts_by_hash_complete", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/complete/streamline__receipts_by_hash_complete.sql", "original_file_path": "models/main_package/core/streamline/complete/streamline__receipts_by_hash_complete.sql", "unique_id": "model.fsc_evm.streamline__receipts_by_hash_complete", "fqn": ["fsc_evm", "main_package", "core", "streamline", "complete", "streamline__receipts_by_hash_complete"], "alias": "receipts_by_hash_complete", "checksum": {"name": "sha256", "checksum": "610699bc1a6dea30e3f4ab4d4dc46868eb66cae3e1a40280cac4d17afc1c56f0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "core", "complete", "receipts_by_hash", "phase_1"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number, tx_hash)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "complete_receipts_by_hash_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "ROUND(block_number, -3)"}, "tags": ["streamline", "core", "complete", "receipts_by_hash", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "complete_receipts_by_hash_id", "cluster_by": "ROUND(block_number, -3)", "full_refresh": false, "tags": ["streamline", "core", "complete", "receipts_by_hash", "phase_1"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018323.7426326, "relation_name": "polygon.streamline.receipts_by_hash_complete", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n-- depends_on: {{ ref('bronze__receipts_by_hash') }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"complete_receipts_by_hash_id\",\n cluster_by = \"ROUND(block_number, -3)\",\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number, tx_hash)\",\n full_refresh = vars.GLOBAL_STREAMLINE_FR_ENABLED,\n tags = ['streamline','core','complete','receipts_by_hash','phase_1']\n) }}\n\n{# Main query starts here #}\nSELECT\n tx_hash,\n block_number,\n file_name,\n {{ dbt_utils.generate_surrogate_key(['block_number', 'tx_hash']) }} AS complete_receipts_by_hash_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {% if is_incremental() %}\n {{ ref('bronze__receipts_by_hash') }}\n WHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM\n {{ this }}\n )\n {% else %}\n {{ ref('bronze__receipts_by_hash_fr') }}\n {% endif %}\n\nQUALIFY (ROW_NUMBER() OVER (PARTITION BY tx_hash ORDER BY block_number desc, _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__receipts_by_hash", "package": null, "version": null}, {"name": "bronze__receipts_by_hash_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__receipts_by_hash", "model.fsc_evm.bronze__receipts_by_hash_fr"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm._unconfirmed_blocks": {"database": "polygon", "schema": "_unconfirmed_blocks", "name": "_unconfirmed_blocks", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/retry/_unconfirmed_blocks.sql", "original_file_path": "models/main_package/core/streamline/retry/_unconfirmed_blocks.sql", "unique_id": "model.fsc_evm._unconfirmed_blocks", "fqn": ["fsc_evm", "main_package", "core", "streamline", "retry", "_unconfirmed_blocks"], "alias": "", "checksum": {"name": "sha256", "checksum": "3b6df4058d2da1a5b23e6b8f041ea2879eb9317a90f98f9cbff127845d9fd21a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "ephemeral", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018324.0646296, "relation_name": null, "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% if vars.MAIN_SL_NEW_BUILD_ENABLED %}\n\n SELECT\n -1 AS block_number\n WHERE 0=1\n{% else %}\n SELECT\n DISTINCT cb.block_number AS block_number\n FROM\n {{ ref(\"test_silver__confirm_blocks_recent\") }}\n cb\n LEFT JOIN {{ ref(\"test_gold__fact_transactions_recent\") }}\n txs \n ON cb.block_number = txs.block_number\n and cb.tx_hash = txs.tx_hash\n and cb.partition_key = round(txs.block_number,-3)\n WHERE\n txs.tx_hash IS NULL\n AND cb.modified_timestamp > DATEADD('day', -5, SYSDATE())\n{% endif %}", "language": "sql", "refs": [{"name": "test_silver__confirm_blocks_recent", "package": null, "version": null}, {"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.test_silver__confirm_blocks_recent", "model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/streamline/retry/_unconfirmed_blocks.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% if vars.MAIN_SL_NEW_BUILD_ENABLED %}\n\n SELECT\n -1 AS block_number\n WHERE 0=1\n{% else %}\n SELECT\n DISTINCT cb.block_number AS block_number\n FROM\n {{ ref(\"test_silver__confirm_blocks_recent\") }}\n cb\n LEFT JOIN {{ ref(\"test_gold__fact_transactions_recent\") }}\n txs \n ON cb.block_number = txs.block_number\n and cb.tx_hash = txs.tx_hash\n and cb.partition_key = round(txs.block_number,-3)\n WHERE\n txs.tx_hash IS NULL\n AND cb.modified_timestamp > DATEADD('day', -5, SYSDATE())\n{% endif %}\n*/\n\n\n\n\n SELECT\n DISTINCT cb.block_number AS block_number\n FROM\n polygon.test_silver.confirm_blocks_recent\n cb\n LEFT JOIN polygon.test_gold.fact_transactions_recent\n txs \n ON cb.block_number = txs.block_number\n and cb.tx_hash = txs.tx_hash\n and cb.partition_key = round(txs.block_number,-3)\n WHERE\n txs.tx_hash IS NULL\n AND cb.modified_timestamp > DATEADD('day', -5, SYSDATE())\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm._missing_traces": {"database": "polygon", "schema": "_missing_traces", "name": "_missing_traces", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/retry/_missing_traces.sql", "original_file_path": "models/main_package/core/streamline/retry/_missing_traces.sql", "unique_id": "model.fsc_evm._missing_traces", "fqn": ["fsc_evm", "main_package", "core", "streamline", "retry", "_missing_traces"], "alias": "", "checksum": {"name": "sha256", "checksum": "112c9d66ccdd8ee6e2949901ff0fca944f47c79e3034fd14e5f8380bb8760d95"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "ephemeral", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018324.3824441, "relation_name": null, "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% if vars.MAIN_SL_NEW_BUILD_ENABLED %}\n\n SELECT\n -1 AS block_number\n WHERE 0=1\n {% else %}\n SELECT\n DISTINCT tx.block_number\n FROM\n {{ ref(\"test_gold__fact_transactions_recent\") }}\n tx\n LEFT JOIN {{ ref(\"test_gold__fact_traces_recent\") }}\n tr USING (\n block_number,\n tx_hash\n )\n WHERE\n tr.tx_hash IS NULL\n AND tx.block_timestamp > DATEADD('day', -5, SYSDATE())\n AND tx.from_address <> '0x0000000000000000000000000000000000000000'\n AND tx.to_address <> '0x0000000000000000000000000000000000000000'\n{% endif %}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}, {"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent", "model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/streamline/retry/_missing_traces.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% if vars.MAIN_SL_NEW_BUILD_ENABLED %}\n\n SELECT\n -1 AS block_number\n WHERE 0=1\n {% else %}\n SELECT\n DISTINCT tx.block_number\n FROM\n {{ ref(\"test_gold__fact_transactions_recent\") }}\n tx\n LEFT JOIN {{ ref(\"test_gold__fact_traces_recent\") }}\n tr USING (\n block_number,\n tx_hash\n )\n WHERE\n tr.tx_hash IS NULL\n AND tx.block_timestamp > DATEADD('day', -5, SYSDATE())\n AND tx.from_address <> '0x0000000000000000000000000000000000000000'\n AND tx.to_address <> '0x0000000000000000000000000000000000000000'\n{% endif %}\n*/\n\n\n\n\n SELECT\n DISTINCT tx.block_number\n FROM\n polygon.test_gold.fact_transactions_recent\n tx\n LEFT JOIN polygon.test_gold.fact_traces_recent\n tr USING (\n block_number,\n tx_hash\n )\n WHERE\n tr.tx_hash IS NULL\n AND tx.block_timestamp > DATEADD('day', -5, SYSDATE())\n AND tx.from_address <> '0x0000000000000000000000000000000000000000'\n AND tx.to_address <> '0x0000000000000000000000000000000000000000'\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm._missing_receipts": {"database": "polygon", "schema": "_missing_receipts", "name": "_missing_receipts", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/retry/_missing_receipts.sql", "original_file_path": "models/main_package/core/streamline/retry/_missing_receipts.sql", "unique_id": "model.fsc_evm._missing_receipts", "fqn": ["fsc_evm", "main_package", "core", "streamline", "retry", "_missing_receipts"], "alias": "", "checksum": {"name": "sha256", "checksum": "bd58b8fceb48a42f09ff5259962589cbbccd4d1d31ed54f1d14c0f8ef1dcf6d1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "ephemeral", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018324.8220263, "relation_name": null, "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% if vars.MAIN_SL_NEW_BUILD_ENABLED %}\n\n SELECT\n -1 AS block_number\n WHERE 0=1\n {% else %}\n SELECT\n DISTINCT block_number\n FROM\n {{ ref(\"test_gold__fact_transactions_recent\") }}\n WHERE\n tx_succeeded IS NULL\n\n {% if vars.GLOBAL_PROJECT_NAME == 'arbitrum' %}\n OR timeboosted IS NULL\n {% endif %}\n\n{% endif %}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/streamline/retry/_missing_receipts.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% if vars.MAIN_SL_NEW_BUILD_ENABLED %}\n\n SELECT\n -1 AS block_number\n WHERE 0=1\n {% else %}\n SELECT\n DISTINCT block_number\n FROM\n {{ ref(\"test_gold__fact_transactions_recent\") }}\n WHERE\n tx_succeeded IS NULL\n\n {% if vars.GLOBAL_PROJECT_NAME == 'arbitrum' %}\n OR timeboosted IS NULL\n {% endif %}\n\n{% endif %}\n*/\n\n\n\n\n SELECT\n DISTINCT block_number\n FROM\n polygon.test_gold.fact_transactions_recent\n WHERE\n tx_succeeded IS NULL\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm._missing_txs": {"database": "polygon", "schema": "_missing_txs", "name": "_missing_txs", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/retry/_missing_txs.sql", "original_file_path": "models/main_package/core/streamline/retry/_missing_txs.sql", "unique_id": "model.fsc_evm._missing_txs", "fqn": ["fsc_evm", "main_package", "core", "streamline", "retry", "_missing_txs"], "alias": "", "checksum": {"name": "sha256", "checksum": "51077e0f49cf636c9a08fb087926480f4c193302b23de718e189ba359d654d2c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "ephemeral", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018325.1379004, "relation_name": null, "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% if vars.MAIN_SL_NEW_BUILD_ENABLED %}\n\n SELECT\n -1 AS block_number\n WHERE 0=1\n {% else %}\n WITH transactions AS (\n SELECT\n block_number,\n tx_position,\n LAG(\n tx_position,\n 1\n ) over (\n PARTITION BY block_number\n ORDER BY\n tx_position ASC\n ) AS prev_tx_position\n FROM\n {{ ref(\"test_gold__fact_transactions_recent\") }}\n WHERE\n block_timestamp > DATEADD('day', -5, SYSDATE())\n )\n SELECT\n DISTINCT block_number AS block_number\n FROM\n transactions\n WHERE\n tx_position - prev_tx_position <> 1\n {% endif %}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/streamline/retry/_missing_txs.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% if vars.MAIN_SL_NEW_BUILD_ENABLED %}\n\n SELECT\n -1 AS block_number\n WHERE 0=1\n {% else %}\n WITH transactions AS (\n SELECT\n block_number,\n tx_position,\n LAG(\n tx_position,\n 1\n ) over (\n PARTITION BY block_number\n ORDER BY\n tx_position ASC\n ) AS prev_tx_position\n FROM\n {{ ref(\"test_gold__fact_transactions_recent\") }}\n WHERE\n block_timestamp > DATEADD('day', -5, SYSDATE())\n )\n SELECT\n DISTINCT block_number AS block_number\n FROM\n transactions\n WHERE\n tx_position - prev_tx_position <> 1\n {% endif %}\n*/\n\n\n\n\n WITH transactions AS (\n SELECT\n block_number,\n tx_position,\n LAG(\n tx_position,\n 1\n ) over (\n PARTITION BY block_number\n ORDER BY\n tx_position ASC\n ) AS prev_tx_position\n FROM\n polygon.test_gold.fact_transactions_recent\n WHERE\n block_timestamp > DATEADD('day', -5, SYSDATE())\n )\n SELECT\n DISTINCT block_number AS block_number\n FROM\n transactions\n WHERE\n tx_position - prev_tx_position <> 1\n ", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__blocks_transactions_history": {"database": "polygon", "schema": "streamline", "name": "streamline__blocks_transactions_history", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/history/streamline__blocks_transactions_history.sql", "original_file_path": "models/main_package/core/streamline/history/streamline__blocks_transactions_history.sql", "unique_id": "model.fsc_evm.streamline__blocks_transactions_history", "fqn": ["fsc_evm", "main_package", "core", "streamline", "history", "streamline__blocks_transactions_history"], "alias": "blocks_transactions_history", "checksum": {"name": "sha256", "checksum": "1a0930b98d7ee4cf80d62b7c901ce2df2af513dcb94c3dde18922f29b27d1944"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "core", "history", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "core", "history", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "core", "history", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018325.4519296, "relation_name": "polygon.streamline.blocks_transactions_history", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','core','history','phase_1']\n) }}\n\n{# Main query starts here #}\nWITH \n{% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n last_3_days AS (\n SELECT block_number\n FROM {{ ref(\"_block_lookback\") }}\n ),\n{% endif %}\n\n{# Identify blocks that need processing #}\nto_do AS (\n SELECT block_number\n FROM {{ ref(\"streamline__blocks\") }}\n WHERE \n block_number IS NOT NULL\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number <= (SELECT block_number FROM last_3_days)\n {% endif %}\n\n EXCEPT\n\n SELECT block_number\n FROM {{ ref(\"streamline__blocks_complete\") }} b\n INNER JOIN {{ ref(\"streamline__transactions_complete\") }} t USING(block_number)\n WHERE 1=1\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number <= (SELECT block_number FROM last_3_days)\n {% endif %}\n),\nready_blocks AS (\n SELECT block_number\n FROM to_do\n\n {% if vars.MAIN_SL_TESTING_LIMIT is not none %}\n ORDER BY block_number DESC\n LIMIT {{ vars.MAIN_SL_TESTING_LIMIT }} \n {% endif %}\n)\n\n{# Generate API requests for each block #}\nSELECT\n block_number,\n ROUND(block_number, -3) AS partition_key,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'streamline'\n ),\n OBJECT_CONSTRUCT(\n 'id', block_number,\n 'jsonrpc', '2.0',\n 'method', 'eth_getBlockByNumber',\n 'params', ARRAY_CONSTRUCT(utils.udf_int_to_hex(block_number), TRUE)\n ),\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS request\nFROM\n ready_blocks\n \nORDER BY partition_key DESC, block_number DESC\n\nLIMIT {{ vars.MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_SQL_LIMIT }}\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = {\n \"external_table\": 'blocks_transactions',\n \"sql_limit\": vars.MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_SQL_LIMIT,\n \"producer_batch_size\": vars.MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\": vars.MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\": 'blocks_transactions_history',\n \"exploded_key\": tojson(['result', 'result.transactions'])\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n \n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "_block_lookback", "package": null, "version": null}, {"name": "streamline__blocks", "package": null, "version": null}, {"name": "streamline__blocks_complete", "package": null, "version": null}, {"name": "streamline__transactions_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm._block_lookback", "model.fsc_evm.streamline__blocks", "model.fsc_evm.streamline__blocks_complete", "model.fsc_evm.streamline__transactions_complete"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__receipts_by_hash_history": {"database": "polygon", "schema": "streamline", "name": "streamline__receipts_by_hash_history", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/history/streamline__receipts_by_hash_history.sql", "original_file_path": "models/main_package/core/streamline/history/streamline__receipts_by_hash_history.sql", "unique_id": "model.fsc_evm.streamline__receipts_by_hash_history", "fqn": ["fsc_evm", "main_package", "core", "streamline", "history", "streamline__receipts_by_hash_history"], "alias": "receipts_by_hash_history", "checksum": {"name": "sha256", "checksum": "c0342ba3c112276eaa3b5f59e1535bd93eb036ed0e94744237b7894dffd80767"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "core", "history", "receipts_by_hash", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "core", "history", "receipts_by_hash", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "core", "history", "receipts_by_hash", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018325.774476, "relation_name": "polygon.streamline.receipts_by_hash_history", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','core','history','receipts_by_hash','phase_1']\n) }}\n\n\n{# Main query starts here #}\n\nWITH \n{% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n last_3_days AS (\n SELECT block_number\n FROM {{ ref(\"_block_lookback\") }}\n ),\n{% endif %}\n\nto_do AS (\n SELECT \n block_number,\n tx_hash\n FROM {{ ref(\"core__fact_transactions\") }}\n WHERE \n (block_number IS NOT NULL \n AND tx_hash IS NOT NULL)\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number <= (SELECT block_number FROM last_3_days)\n {% endif %}\n\n EXCEPT\n\n SELECT\n block_number,\n tx_hash\n FROM\n {{ ref('streamline__receipts_by_hash_complete') }}\n WHERE 1=1\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number <= (SELECT block_number FROM last_3_days)\n {% endif %}\n),\nready_blocks AS (\n SELECT\n block_number,\n tx_hash\n FROM\n to_do\n\n {% if vars.MAIN_SL_TESTING_LIMIT is not none %}\n ORDER BY block_number DESC\n LIMIT {{ vars.MAIN_SL_TESTING_LIMIT }} \n {% endif %}\n)\nSELECT\n block_number,\n tx_hash,\n ROUND(\n block_number,\n -3\n ) AS partition_key,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type',\n 'application/json',\n 'fsc-quantum-state', 'streamline'\n ),\n OBJECT_CONSTRUCT(\n 'id', block_number,\n 'jsonrpc', '2.0',\n 'method', 'eth_getTransactionReceipt',\n 'params', ARRAY_CONSTRUCT(tx_hash)\n ),\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS request\nFROM\n ready_blocks\n\nORDER BY partition_key DESC, block_number DESC\n\nLIMIT {{ vars.MAIN_SL_RECEIPTS_BY_HASH_HISTORY_SQL_LIMIT }}\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = {\n \"external_table\": 'receipts_by_hash',\n \"sql_limit\": vars.MAIN_SL_RECEIPTS_BY_HASH_HISTORY_SQL_LIMIT,\n \"producer_batch_size\": vars.MAIN_SL_RECEIPTS_BY_HASH_HISTORY_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.MAIN_SL_RECEIPTS_BY_HASH_HISTORY_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\": vars.MAIN_SL_RECEIPTS_BY_HASH_HISTORY_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\": 'receipts_by_hash_history'\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n \n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "_block_lookback", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}, {"name": "streamline__receipts_by_hash_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm._block_lookback", "model.fsc_evm.core__fact_transactions", "model.fsc_evm.streamline__receipts_by_hash_complete"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__traces_history": {"database": "polygon", "schema": "streamline", "name": "streamline__traces_history", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/history/streamline__traces_history.sql", "original_file_path": "models/main_package/core/streamline/history/streamline__traces_history.sql", "unique_id": "model.fsc_evm.streamline__traces_history", "fqn": ["fsc_evm", "main_package", "core", "streamline", "history", "streamline__traces_history"], "alias": "traces_history", "checksum": {"name": "sha256", "checksum": "e2b71ad75deca6fe13844cb60b208e9f59b886c2ec358e8af7994a383ffd1144"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "core", "history", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "core", "history", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "core", "history", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018326.0982285, "relation_name": "polygon.streamline.traces_history", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','core','history','phase_1']\n) }}\n\n{# Main query starts here #}\nWITH \n{% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n last_3_days AS (\n SELECT block_number\n FROM {{ ref(\"_block_lookback\") }}\n ),\n{% endif %}\n\n{# Identify blocks that need processing #}\nto_do AS (\n SELECT block_number\n FROM {{ ref(\"streamline__blocks\") }}\n WHERE \n block_number IS NOT NULL\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number <= (SELECT block_number FROM last_3_days)\n {% endif %}\n {% if vars.MAIN_SL_TRACES_HISTORY_REQUEST_START_BLOCK is not none %}\n AND block_number >= {{ vars.MAIN_SL_TRACES_HISTORY_REQUEST_START_BLOCK }}\n {% endif %}\n EXCEPT\n\n {# Exclude blocks that have already been processed #}\n SELECT block_number\n FROM {{ ref('streamline__traces_complete') }}\n WHERE 1=1\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number <= (SELECT block_number FROM last_3_days)\n {% endif %}\n)\n\n{# Prepare the final list of blocks to process #}\n,ready_blocks AS (\n SELECT block_number\n FROM to_do\n\n {% if vars.MAIN_SL_TESTING_LIMIT is not none %}\n ORDER BY block_number DESC\n LIMIT {{ vars.MAIN_SL_TESTING_LIMIT }} \n {% endif %}\n)\n\n{# Generate API requests for each block #}\nSELECT\n block_number,\n ROUND(block_number, -3) AS partition_key,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'streamline'\n ),\n OBJECT_CONSTRUCT(\n 'id', block_number,\n 'jsonrpc', '2.0',\n 'method', 'debug_traceBlockByNumber',\n 'params', ARRAY_CONSTRUCT(utils.udf_int_to_hex(block_number), OBJECT_CONSTRUCT('tracer', 'callTracer', 'timeout', '120s'))\n ),\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS request\nFROM\n ready_blocks\n \nORDER BY partition_key DESC, block_number DESC\n\nLIMIT {{ vars.MAIN_SL_TRACES_HISTORY_SQL_LIMIT }}\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = {\n \"external_table\": 'traces',\n \"sql_limit\": vars.MAIN_SL_TRACES_HISTORY_SQL_LIMIT,\n \"producer_batch_size\": vars.MAIN_SL_TRACES_HISTORY_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.MAIN_SL_TRACES_HISTORY_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\": vars.MAIN_SL_TRACES_HISTORY_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\": 'traces_history',\n \"exploded_key\": tojson(['result'])\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n \n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "_block_lookback", "package": null, "version": null}, {"name": "streamline__blocks", "package": null, "version": null}, {"name": "streamline__traces_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm._block_lookback", "model.fsc_evm.streamline__blocks", "model.fsc_evm.streamline__traces_complete"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__confirm_blocks_history": {"database": "polygon", "schema": "streamline", "name": "streamline__confirm_blocks_history", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/history/streamline__confirm_blocks_history.sql", "original_file_path": "models/main_package/core/streamline/history/streamline__confirm_blocks_history.sql", "unique_id": "model.fsc_evm.streamline__confirm_blocks_history", "fqn": ["fsc_evm", "main_package", "core", "streamline", "history", "streamline__confirm_blocks_history"], "alias": "confirm_blocks_history", "checksum": {"name": "sha256", "checksum": "2dc3bb77345f4e1648217bf329dcfc83ba2eb439419bf5460a31e50fb1d0d5db"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "core", "history", "confirm_blocks", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "core", "history", "confirm_blocks", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "core", "history", "confirm_blocks", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018326.4241927, "relation_name": "polygon.streamline.confirm_blocks_history", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','core','history','confirm_blocks','phase_2']\n) }}\n\n{# Main query starts here #}\nWITH \n{% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n last_3_days AS (\n SELECT block_number\n FROM {{ ref(\"_block_lookback\") }}\n ),\n{% endif %}\n\n{# Delay blocks #}\nlook_back AS (\n SELECT\n block_number\n FROM\n {{ ref(\"_max_block_by_hour\") }}\n qualify ROW_NUMBER() over (\n ORDER BY\n block_number DESC\n ) = 6\n ),\n\n{# Identify blocks that need processing #}\nto_do AS (\n SELECT block_number\n FROM {{ ref(\"streamline__blocks\") }}\n WHERE \n block_number IS NOT NULL\n AND block_number <= (SELECT block_number FROM look_back)\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number <= (SELECT block_number FROM last_3_days)\n {% endif %}\n\n EXCEPT\n\n {# Exclude blocks that have already been processed #}\n SELECT block_number\n FROM {{ ref('streamline__confirm_blocks_complete') }}\n WHERE 1=1\n AND block_number IS NOT NULL\n AND block_number <= (SELECT block_number FROM look_back)\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number <= (SELECT block_number FROM last_3_days)\n {% endif %}\n)\n\n{# Prepare the final list of blocks to process #}\n,ready_blocks AS (\n SELECT block_number\n FROM to_do\n\n {% if vars.MAIN_SL_TESTING_LIMIT is not none %}\n ORDER BY block_number DESC\n LIMIT {{ vars.MAIN_SL_TESTING_LIMIT }} \n {% endif %}\n)\n\n{# Generate API requests for each block #}\nSELECT\n block_number,\n ROUND(block_number, -3) AS partition_key,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'streamline'\n ),\n OBJECT_CONSTRUCT(\n 'id', block_number,\n 'jsonrpc', '2.0',\n 'method', 'eth_getBlockByNumber',\n 'params', ARRAY_CONSTRUCT(utils.udf_int_to_hex(block_number), FALSE)\n ),\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS request\nFROM\n ready_blocks\n \nORDER BY partition_key DESC, block_number DESC\n\nLIMIT {{ vars.MAIN_SL_CONFIRM_BLOCKS_HISTORY_SQL_LIMIT }}\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = {\n \"external_table\": 'confirm_blocks',\n \"sql_limit\": vars.MAIN_SL_CONFIRM_BLOCKS_HISTORY_SQL_LIMIT,\n \"producer_batch_size\": vars.MAIN_SL_CONFIRM_BLOCKS_HISTORY_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.MAIN_SL_CONFIRM_BLOCKS_HISTORY_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\": vars.MAIN_SL_CONFIRM_BLOCKS_HISTORY_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\": 'confirm_blocks_history'\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n \n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "_block_lookback", "package": null, "version": null}, {"name": "_max_block_by_hour", "package": null, "version": null}, {"name": "streamline__blocks", "package": null, "version": null}, {"name": "streamline__confirm_blocks_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm._block_lookback", "model.fsc_evm._max_block_by_hour", "model.fsc_evm.streamline__blocks", "model.fsc_evm.streamline__confirm_blocks_complete"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__receipts_history": {"database": "polygon", "schema": "streamline", "name": "streamline__receipts_history", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/streamline/history/streamline__receipts_history.sql", "original_file_path": "models/main_package/core/streamline/history/streamline__receipts_history.sql", "unique_id": "model.fsc_evm.streamline__receipts_history", "fqn": ["fsc_evm", "main_package", "core", "streamline", "history", "streamline__receipts_history"], "alias": "receipts_history", "checksum": {"name": "sha256", "checksum": "46283aab8877d54cb558411a4dd43242c29e65a154dc76b4f83ca9bc22204479"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "core", "history", "receipts", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "core", "history", "receipts", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "core", "history", "receipts", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018326.7488186, "relation_name": "polygon.streamline.receipts_history", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','core','history','receipts','phase_1']\n) }}\n\n{# Main query starts here #}\nWITH \n{% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n last_3_days AS (\n SELECT block_number\n FROM {{ ref(\"_block_lookback\") }}\n ),\n{% endif %}\n\n{# Identify blocks that need processing #}\nto_do AS (\n SELECT block_number\n FROM {{ ref(\"streamline__blocks\") }}\n WHERE \n block_number IS NOT NULL\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number <= (SELECT block_number FROM last_3_days)\n {% endif %}\n\n EXCEPT\n\n {# Exclude blocks that have already been processed #}\n SELECT block_number\n FROM {{ ref('streamline__receipts_complete') }}\n WHERE 1=1\n {% if not vars.MAIN_SL_NEW_BUILD_ENABLED %}\n AND block_number <= (SELECT block_number FROM last_3_days)\n {% endif %}\n)\n\n{# Prepare the final list of blocks to process #}\n,ready_blocks AS (\n SELECT block_number\n FROM to_do\n\n {% if vars.MAIN_SL_TESTING_LIMIT is not none %}\n ORDER BY block_number DESC\n LIMIT {{ vars.MAIN_SL_TESTING_LIMIT }} \n {% endif %}\n)\n\n{# Generate API requests for each block #}\nSELECT\n block_number,\n ROUND(block_number, -3) AS partition_key,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'streamline'\n ),\n OBJECT_CONSTRUCT(\n 'id', block_number,\n 'jsonrpc', '2.0',\n 'method', 'eth_getBlockReceipts',\n 'params', ARRAY_CONSTRUCT(utils.udf_int_to_hex(block_number))\n ),\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS request\nFROM\n ready_blocks\n \nORDER BY partition_key DESC, block_number DESC\n\nLIMIT {{ vars.MAIN_SL_RECEIPTS_HISTORY_SQL_LIMIT }}\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = {\n \"external_table\": 'receipts',\n \"sql_limit\": vars.MAIN_SL_RECEIPTS_HISTORY_SQL_LIMIT,\n \"producer_batch_size\": vars.MAIN_SL_RECEIPTS_HISTORY_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.MAIN_SL_RECEIPTS_HISTORY_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\": vars.MAIN_SL_RECEIPTS_HISTORY_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\": 'receipts_history',\n \"exploded_key\": tojson(['result'])\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n \n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "_block_lookback", "package": null, "version": null}, {"name": "streamline__blocks", "package": null, "version": null}, {"name": "streamline__receipts_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm._block_lookback", "model.fsc_evm.streamline__blocks", "model.fsc_evm.streamline__receipts_complete"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.core__fact_blocks": {"database": "polygon", "schema": "core", "name": "core__fact_blocks", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/core__fact_blocks.sql", "original_file_path": "models/main_package/core/gold/core__fact_blocks.sql", "unique_id": "model.fsc_evm.core__fact_blocks", "fqn": ["fsc_evm", "main_package", "core", "gold", "core__fact_blocks"], "alias": "fact_blocks", "checksum": {"name": "sha256", "checksum": "f26d31ee9682abff90766b83af205f11329ec9fdcec90e69ed2b11994050b898"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "core", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "incremental_predicates": ["polygon.\n \n core.\n \n fact_blocks.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n core.\n \n fact_blocks__dbt_tmp\n )"]}, "tags": ["gold", "core", "phase_2"], "description": "## What\n\nThis table contains block-level data for EVM blockchains, providing a complete record of all blocks produced on the chain. Each row represents one block with its associated metadata, transactions, and gas metrics.\n\n## Key Use Cases\n\n- Analyzing gas price trends and network congestion over time\n- Tracking block production rates and miner/validator performance\n- Monitoring network upgrades and their impact (e.g., EIP-1559, EIP-4844)\n- Calculating transaction throughput and network utilization\n- Identifying uncle blocks and chain reorganizations\n\n## Important Relationships\n\n- **Join with fact_transactions**: Use `block_number` to analyze all transactions within a block\n- **Join with fact_traces**: Use `block_number` to examine internal transactions\n- **Join with fact_event_logs**: Use `block_number` to find all events emitted in a block\n\n## Commonly-used Fields\n\n- `block_number`: Sequential identifier for blocks\n- `block_timestamp`: UTC timestamp of block production\n- `gas_used`: Total gas consumed by all transactions\n- `gas_limit`: Maximum gas allowed in the block\n- `base_fee_per_gas`: Base fee for EIP-1559 chains\n- `tx_count`: Number of transactions in the block\n- `miner`: Address that received block rewards\n\n## Sample queries\n\n```sql\n-- Average gas price and utilization by hour\nSELECT \n DATE_TRUNC('hour', block_timestamp) AS hour,\n AVG(gas_used / gas_limit) AS avg_gas_utilization,\n AVG(base_fee_per_gas) AS avg_base_fee,\n COUNT(*) AS blocks_count,\n SUM(tx_count) AS total_transactions\nFROM .core.fact_blocks\nWHERE block_timestamp >= CURRENT_DATE - 7\nGROUP BY 1\nORDER BY 1 DESC;\n\n-- Identify high-value blocks by total gas used\nSELECT \n block_number,\n block_timestamp,\n tx_count,\n gas_used,\n gas_limit,\n (gas_used::FLOAT / gas_limit) AS utilization_rate,\n miner\nFROM .core.fact_blocks\nWHERE block_timestamp >= CURRENT_DATE - 1\nORDER BY gas_used DESC\nLIMIT 100;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_HASH": {"name": "BLOCK_HASH", "description": "The unique 32-byte Keccak-256 hash of the block header, prefixed with '0x'.\n\nExample: '0x4e3a3754410177e6937ef1f84bba68ea139e8d1a2258c5f85db9f1cd715a1bdd'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NETWORK": {"name": "NETWORK", "description": "Network identifier within the blockchain (e.g., 'mainnet', 'testnet').\n\nExample: 'mainnet'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_COUNT": {"name": "TX_COUNT", "description": "Number of transactions included in the block.\n\nExample: 142", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SIZE": {"name": "SIZE", "description": "Block size in bytes.\n\nExample: 125432", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MINER": {"name": "MINER", "description": "Address that received block rewards.\n\nExample: '0xea674fdde714fd979de3edf0f56aa9716b898ec8'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BASE_FEE_PER_GAS": {"name": "BASE_FEE_PER_GAS", "description": "Base fee per gas unit in wei (EIP-1559 chains only).\n\nExample: 25000000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MIX_HASH": {"name": "MIX_HASH", "description": "256-bit hash used in PoW mining process. Post-merge, contains prevRandao for randomness.\n\nExample: '0x0000000000000000000000000000000000000000000000000000000000000000'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EXTRA_DATA": {"name": "EXTRA_DATA", "description": "Arbitrary data included by block producer (max 32 bytes).\n\nExample: 'Geth/v1.10.23-stable/linux-amd64/go1.18.5'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PARENT_HASH": {"name": "PARENT_HASH", "description": "Hash of the previous block (block_number - 1).\n\nExample: '0x3d7a3754410177e6937ef1f84bba68ea139e8d1a2258c5f85db9f1cd715a1bee'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "Total gas consumed by all transactions in the block.\n\nExample: 15234567", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_LIMIT": {"name": "GAS_LIMIT", "description": "Maximum gas allowed for all transactions in this block.\n\nExample: 30000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DIFFICULTY": {"name": "DIFFICULTY", "description": "Mining difficulty at block production time.\n\nExample: 0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_DIFFICULTY": {"name": "TOTAL_DIFFICULTY", "description": "Cumulative difficulty from genesis to this block.\n\nExample: 58750000000000000000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SHA3_UNCLES": {"name": "SHA3_UNCLES", "description": "Keccak-256 hash of uncle blocks list.\n\nExample: '0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UNCLE_BLOCKS": {"name": "UNCLE_BLOCKS", "description": "Array of uncle block headers (PoW only).\n\nExample: []", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NONCE": {"name": "NONCE", "description": "Proof-of-Work nonce value. For PoW chains, this demonstrates computational work. Post-merge Ethereum and PoS chains typically show 0x0000000000000000.\n\nExample: '0x0000000000000000'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "RECEIPTS_ROOT": {"name": "RECEIPTS_ROOT", "description": "Merkle root of all transaction receipts in the block.\n\nExample: '0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STATE_ROOT": {"name": "STATE_ROOT", "description": "Merkle root of the entire blockchain state after executing this block.\n\nExample: '0xd7f897bbebe1f8d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRANSACTIONS_ROOT": {"name": "TRANSACTIONS_ROOT", "description": "Merkle root of all transactions in the block.\n\nExample: '0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOGS_BLOOM": {"name": "LOGS_BLOOM", "description": "2048-bit bloom filter containing all log addresses and topics from the block's transactions.\n\nExample: '0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOB_GAS_USED": {"name": "BLOB_GAS_USED", "description": "Gas consumed by blob transactions (EIP-4844, post-Dencun).\n\nExample: 131072", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EXCESS_BLOB_GAS": {"name": "EXCESS_BLOB_GAS", "description": "Excess blob gas above target, affects next block's blob base fee.\n\nExample: 262144", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PARENT_BEACON_BLOCK_ROOT": {"name": "PARENT_BEACON_BLOCK_ROOT", "description": "Root hash of the parent beacon chain block (post-merge Ethereum).\n\nExample: '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "WITHDRAWALS": {"name": "WITHDRAWALS", "description": "Array of validator withdrawals from beacon chain.\n\nExample: [{\"index\": 1234, \"validator_index\": 5678, \"address\": \"0x123...\", \"amount\": 1000000000}]", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "WITHDRAWALS_ROOT": {"name": "WITHDRAWALS_ROOT", "description": "Merkle root of all withdrawals in the block.\n\nExample: '0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FACT_BLOCKS_ID": {"name": "FACT_BLOCKS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/core__fact_blocks.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "incremental_predicates": ["polygon.\n \n core.\n \n fact_blocks.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n core.\n \n fact_blocks__dbt_tmp\n )"], "full_refresh": false, "tags": ["gold", "core", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018438.6508005, "relation_name": "polygon.core.fact_blocks", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Set fact_blocks specific variables #}\n{% set rpc_vars = set_dynamic_fields('fact_blocks') %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n tags = ['gold','core','phase_2']\n) }}\n\nSELECT\n b.block_number,\n block_json :hash :: STRING AS block_hash,\n utils.udf_hex_to_int(\n block_json :timestamp :: STRING\n ) :: TIMESTAMP AS block_timestamp,\n '{{ vars.GLOBAL_NETWORK }}' AS network,\n {% if is_incremental() %}\n ARRAY_SIZE(\n block_json :transactions\n ) AS tx_count,\n {% else %}\n COALESCE(\n tx.tx_count,\n 0\n ) AS tx_count,\n {% endif %}\n utils.udf_hex_to_int(\n block_json :size :: STRING\n ) :: bigint AS SIZE,\n block_json :miner :: STRING AS miner,\n {% if rpc_vars.mixHash %}\n block_json :mixHash :: STRING AS mix_hash,\n {% endif %}\n block_json :extraData :: STRING AS extra_data,\n block_json :parentHash :: STRING AS parent_hash,\n utils.udf_hex_to_int(\n block_json :gasUsed :: STRING\n ) :: bigint AS gas_used,\n utils.udf_hex_to_int(\n block_json :gasLimit :: STRING\n ) :: bigint AS gas_limit,\n {% if rpc_vars.baseFeePerGas %}\n utils.udf_hex_to_int(\n block_json :baseFeePerGas :: STRING\n ) :: bigint AS base_fee_per_gas,\n {% endif %}\n {% if rpc_vars.blobGasUsed %}\n utils.udf_hex_to_int(\n block_json :blobGasUsed :: STRING\n ) :: bigint AS blob_gas_used,\n {% endif %}\n {% if rpc_vars.excessBlobGas %}\n utils.udf_hex_to_int(\n block_json :excessBlobGas :: STRING\n ) :: bigint AS excess_blob_gas,\n {% endif %}\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n block_json :difficulty :: STRING\n )) AS difficulty,\n {% if rpc_vars.totalDifficulty %}\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n block_json :totalDifficulty :: STRING\n )) AS total_difficulty,\n {% endif %}\n block_json :sha3Uncles :: STRING AS sha3_uncles,\n COALESCE(block_json :uncles, []) AS uncle_blocks,\n utils.udf_hex_to_int(\n block_json :nonce :: STRING\n ) :: bigint AS nonce,\n block_json :receiptsRoot :: STRING AS receipts_root,\n block_json :stateRoot :: STRING AS state_root,\n block_json :transactionsRoot :: STRING AS transactions_root,\n block_json :logsBloom :: STRING AS logs_bloom,\n {% if rpc_vars.parentBeaconBlockRoot %}\n block_json :parentBeaconBlockRoot :: STRING AS parent_beacon_block_root,\n {% endif %}\n {% if rpc_vars.withdrawals %}\n block_json :withdrawals AS withdrawals,\n {% endif %}\n {% if rpc_vars.withdrawalsRoot %}\n block_json :withdrawalsRoot :: STRING AS withdrawals_root,\n {% endif %}\n {% if rpc_vars.sendCount %}\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n block_json :sendCount :: STRING\n )) AS send_count,\n {% endif %}\n {% if rpc_vars.sendRoot %}\n block_json :sendRoot :: STRING AS send_root,\n {% endif %}\n {% if rpc_vars.author %}\n block_json :author :: STRING AS author,\n {% endif %}\n {% if rpc_vars.requestsHash %}\n block_json :requestsHash :: STRING AS requests_hash,\n {% endif %}\n {% if rpc_vars.blockGasCost %}\n TRY_TO_NUMBER(utils.udf_hex_to_int(block_json :blockGasCost :: STRING)) AS block_gas_cost,\n {% endif %}\n {% if rpc_vars.blockExtraData %}\n block_json :blockExtraData :: STRING AS block_extra_data,\n {% endif %}\n {% if rpc_vars.extDataHash %}\n block_json :extDataHash :: STRING AS ext_data_hash,\n {% endif %}\n {% if rpc_vars.extDataGasUsed %}\n TRY_TO_NUMBER(utils.udf_hex_to_int(block_json :extDataGasUsed :: STRING)) AS ext_data_gas_used,\n {% endif %}\n {% if rpc_vars.milliTimestamp %}\n TRY_TO_TIMESTAMP(utils.udf_hex_to_int(block_json :milliTimestamp :: STRING)) AS milli_timestamp,\n {% endif %}\n {{ dbt_utils.generate_surrogate_key(['b.block_number']) }} AS fact_blocks_id,\n {% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n {% else %}\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS inserted_timestamp,\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS modified_timestamp\n {% endif %}\nFROM\n {{ ref('silver__blocks') }} b\n{% if not is_incremental() %}\n LEFT JOIN (\n SELECT\n block_number,\n COUNT(*) AS tx_count\n FROM\n {{ ref('silver__transactions') }}\n GROUP BY\n 1\n ) tx\n ON b.block_number = tx.block_number\n{% endif %}\nWHERE 1=1\n\n{% if is_incremental() %}\nAND modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n )\n{% endif %}", "language": "sql", "refs": [{"name": "admin__fact_rpc_details", "package": null, "version": null}, {"name": "silver__blocks", "package": null, "version": null}, {"name": "silver__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.set_dynamic_fields", "macro.fsc_evm.log_model_details", "macro.fsc_evm.standard_predicate", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.admin__fact_rpc_details", "model.fsc_evm.silver__blocks", "model.fsc_evm.silver__transactions"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/core__fact_blocks.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"polygon.\\n \\n core.\\n \\n fact_blocks.block_number \\u003e= (\\n SELECT\\n MIN(\\n block_number\\n )\\n FROM\\n polygon.\\n \\n core.\\n \\n fact_blocks__dbt_tmp\\n )\"\n ],\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"core\",\n \"phase_2\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Set fact_blocks specific variables #}\n{% set rpc_vars = set_dynamic_fields('fact_blocks') %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n tags = ['gold','core','phase_2']\n) }}\n\nSELECT\n b.block_number,\n block_json :hash :: STRING AS block_hash,\n utils.udf_hex_to_int(\n block_json :timestamp :: STRING\n ) :: TIMESTAMP AS block_timestamp,\n '{{ vars.GLOBAL_NETWORK }}' AS network,\n {% if is_incremental() %}\n ARRAY_SIZE(\n block_json :transactions\n ) AS tx_count,\n {% else %}\n COALESCE(\n tx.tx_count,\n 0\n ) AS tx_count,\n {% endif %}\n utils.udf_hex_to_int(\n block_json :size :: STRING\n ) :: bigint AS SIZE,\n block_json :miner :: STRING AS miner,\n {% if rpc_vars.mixHash %}\n block_json :mixHash :: STRING AS mix_hash,\n {% endif %}\n block_json :extraData :: STRING AS extra_data,\n block_json :parentHash :: STRING AS parent_hash,\n utils.udf_hex_to_int(\n block_json :gasUsed :: STRING\n ) :: bigint AS gas_used,\n utils.udf_hex_to_int(\n block_json :gasLimit :: STRING\n ) :: bigint AS gas_limit,\n {% if rpc_vars.baseFeePerGas %}\n utils.udf_hex_to_int(\n block_json :baseFeePerGas :: STRING\n ) :: bigint AS base_fee_per_gas,\n {% endif %}\n {% if rpc_vars.blobGasUsed %}\n utils.udf_hex_to_int(\n block_json :blobGasUsed :: STRING\n ) :: bigint AS blob_gas_used,\n {% endif %}\n {% if rpc_vars.excessBlobGas %}\n utils.udf_hex_to_int(\n block_json :excessBlobGas :: STRING\n ) :: bigint AS excess_blob_gas,\n {% endif %}\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n block_json :difficulty :: STRING\n )) AS difficulty,\n {% if rpc_vars.totalDifficulty %}\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n block_json :totalDifficulty :: STRING\n )) AS total_difficulty,\n {% endif %}\n block_json :sha3Uncles :: STRING AS sha3_uncles,\n COALESCE(block_json :uncles, []) AS uncle_blocks,\n utils.udf_hex_to_int(\n block_json :nonce :: STRING\n ) :: bigint AS nonce,\n block_json :receiptsRoot :: STRING AS receipts_root,\n block_json :stateRoot :: STRING AS state_root,\n block_json :transactionsRoot :: STRING AS transactions_root,\n block_json :logsBloom :: STRING AS logs_bloom,\n {% if rpc_vars.parentBeaconBlockRoot %}\n block_json :parentBeaconBlockRoot :: STRING AS parent_beacon_block_root,\n {% endif %}\n {% if rpc_vars.withdrawals %}\n block_json :withdrawals AS withdrawals,\n {% endif %}\n {% if rpc_vars.withdrawalsRoot %}\n block_json :withdrawalsRoot :: STRING AS withdrawals_root,\n {% endif %}\n {% if rpc_vars.sendCount %}\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n block_json :sendCount :: STRING\n )) AS send_count,\n {% endif %}\n {% if rpc_vars.sendRoot %}\n block_json :sendRoot :: STRING AS send_root,\n {% endif %}\n {% if rpc_vars.author %}\n block_json :author :: STRING AS author,\n {% endif %}\n {% if rpc_vars.requestsHash %}\n block_json :requestsHash :: STRING AS requests_hash,\n {% endif %}\n {% if rpc_vars.blockGasCost %}\n TRY_TO_NUMBER(utils.udf_hex_to_int(block_json :blockGasCost :: STRING)) AS block_gas_cost,\n {% endif %}\n {% if rpc_vars.blockExtraData %}\n block_json :blockExtraData :: STRING AS block_extra_data,\n {% endif %}\n {% if rpc_vars.extDataHash %}\n block_json :extDataHash :: STRING AS ext_data_hash,\n {% endif %}\n {% if rpc_vars.extDataGasUsed %}\n TRY_TO_NUMBER(utils.udf_hex_to_int(block_json :extDataGasUsed :: STRING)) AS ext_data_gas_used,\n {% endif %}\n {% if rpc_vars.milliTimestamp %}\n TRY_TO_TIMESTAMP(utils.udf_hex_to_int(block_json :milliTimestamp :: STRING)) AS milli_timestamp,\n {% endif %}\n {{ dbt_utils.generate_surrogate_key(['b.block_number']) }} AS fact_blocks_id,\n {% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n {% else %}\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS inserted_timestamp,\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS modified_timestamp\n {% endif %}\nFROM\n {{ ref('silver__blocks') }} b\n{% if not is_incremental() %}\n LEFT JOIN (\n SELECT\n block_number,\n COUNT(*) AS tx_count\n FROM\n {{ ref('silver__transactions') }}\n GROUP BY\n 1\n ) tx\n ON b.block_number = tx.block_number\n{% endif %}\nWHERE 1=1\n\n{% if is_incremental() %}\nAND modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n )\n{% endif %}\n*/\n\n\n\nSELECT\n b.block_number,\n block_json :hash :: STRING AS block_hash,\n utils.udf_hex_to_int(\n block_json :timestamp :: STRING\n ) :: TIMESTAMP AS block_timestamp,\n 'mainnet' AS network,\n \n ARRAY_SIZE(\n block_json :transactions\n ) AS tx_count,\n \n utils.udf_hex_to_int(\n block_json :size :: STRING\n ) :: bigint AS SIZE,\n block_json :miner :: STRING AS miner,\n \n block_json :mixHash :: STRING AS mix_hash,\n \n block_json :extraData :: STRING AS extra_data,\n block_json :parentHash :: STRING AS parent_hash,\n utils.udf_hex_to_int(\n block_json :gasUsed :: STRING\n ) :: bigint AS gas_used,\n utils.udf_hex_to_int(\n block_json :gasLimit :: STRING\n ) :: bigint AS gas_limit,\n \n utils.udf_hex_to_int(\n block_json :baseFeePerGas :: STRING\n ) :: bigint AS base_fee_per_gas,\n \n \n \n TRY_TO_NUMBER(utils.udf_hex_to_int(\n block_json :difficulty :: STRING\n )) AS difficulty,\n \n TRY_TO_NUMBER(utils.udf_hex_to_int(\n block_json :totalDifficulty :: STRING\n )) AS total_difficulty,\n \n block_json :sha3Uncles :: STRING AS sha3_uncles,\n COALESCE(block_json :uncles, []) AS uncle_blocks,\n utils.udf_hex_to_int(\n block_json :nonce :: STRING\n ) :: bigint AS nonce,\n block_json :receiptsRoot :: STRING AS receipts_root,\n block_json :stateRoot :: STRING AS state_root,\n block_json :transactionsRoot :: STRING AS transactions_root,\n block_json :logsBloom :: STRING AS logs_bloom,\n \n \n \n \n \n \n \n \n \n \n \n \n \n \nmd5(cast(coalesce(cast(b.block_number as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS fact_blocks_id,\n \n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n \nFROM\n polygon.silver.blocks b\n\nWHERE 1=1\n\n\nAND modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n polygon.core.fact_blocks\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.core__ez_token_transfers": {"database": "polygon", "schema": "core", "name": "core__ez_token_transfers", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/core__ez_token_transfers.sql", "original_file_path": "models/main_package/core/gold/core__ez_token_transfers.sql", "unique_id": "model.fsc_evm.core__ez_token_transfers", "fqn": ["fsc_evm", "main_package", "core", "gold", "core__ez_token_transfers"], "alias": "ez_token_transfers", "checksum": {"name": "sha256", "checksum": "0e31ac8434e090d673bed1acfc64053fa8f1289f00c503cbbd03f3c39657b904"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "core", "transfers", "ez", "phase_3", "heal"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(origin_from_address, origin_to_address, from_address, to_address, origin_function_signature)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "ez_token_transfers_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "incremental_predicates": ["polygon.\n \n core.\n \n ez_token_transfers.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n core.\n \n ez_token_transfers__dbt_tmp\n )"]}, "tags": ["gold", "core", "transfers", "ez", "phase_3", "heal"], "description": "## What\n\nThis convenience table provides a comprehensive view of all ERC-20 token transfers with enriched metadata including decimal adjustments, USD values, and token information. It simplifies token flow analysis by joining transfer events with contract details and price data.\n\n## Key Use Cases\n\n- Tracking token movements and holder activity\n- Analyzing stablecoin flows and volumes\n- Monitoring DEX token inflows and outflows\n- Detecting new token launches and adoption\n- Calculating wallet token balances from transfer history\n\n## Important Relationships\n\n- **Join with fact_event_logs**: Use `tx_hash` and `event_index` for raw event details\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Join with dim_contracts**: Use `contract_address` for token metadata\n- **Complement to ez_native_transfers**: Complete picture of value flows\n\n## Commonly-used Fields\n\n- `contract_address`: The token contract address (NOT the recipient)\n- `from_address`: Token sender address\n- `to_address`: Token recipient address\n- `amount`: Decimal-adjusted transfer amount\n- `amount_usd`: USD value at time of transfer\n- `symbol`: Token symbol (e.g., USDC, DAI)\n- `raw_amount`: Original amount without decimal adjustment\n\n## Sample queries\n\n**Top Token Transfers by USD Value**\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n symbol,\n from_address,\n to_address,\n amount,\n amount_usd,\n token_price,\n contract_address\nFROM .core.ez_token_transfers\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND amount_usd > 100000 -- Over $100k\n AND has_decimal = TRUE\n AND has_price = TRUE\nORDER BY amount_usd DESC\nLIMIT 100;\n```\n\n**Daily Stablecoin Volume Analysis**\n```sql\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n symbol,\n COUNT(*) AS transfer_count,\n COUNT(DISTINCT from_address) AS unique_senders,\n SUM(amount) AS total_amount,\n SUM(amount_usd) AS total_usd,\n AVG(amount_usd) AS avg_transfer_usd\nFROM .core.ez_token_transfers\nWHERE symbol IN ('USDC', 'USDT', 'DAI', 'BUSD')\n AND block_timestamp >= CURRENT_DATE - 30\n AND has_decimal = TRUE\nGROUP BY 1, 2\nORDER BY 1 DESC, 6 DESC;\n```\n\n**DEX Token Flow Analysis**\n```sql\nWITH dex_addresses AS (\n SELECT address \n FROM .core.dim_labels \n WHERE label_type = 'dex' \n AND label_subtype IN ('pool', 'router')\n)\nSELECT \n DATE_TRUNC('hour', block_timestamp) AS hour,\n symbol,\n CASE \n WHEN from_address IN (SELECT address FROM dex_addresses) THEN 'DEX Outflow'\n WHEN to_address IN (SELECT address FROM dex_addresses) THEN 'DEX Inflow'\n END AS flow_type,\n COUNT(*) AS transfers,\n SUM(amount) AS total_amount,\n SUM(amount_usd) AS total_usd\nFROM .core.ez_token_transfers\nWHERE block_timestamp >= CURRENT_DATE - 1\n AND (from_address IN (SELECT address FROM dex_addresses)\n OR to_address IN (SELECT address FROM dex_addresses))\n AND symbol IS NOT NULL\nGROUP BY 1, 2, 3\nORDER BY 1 DESC, 6 DESC;\n```\n\n**Token Holder Activity**\n```sql\n-- Most active token senders\nSELECT \n from_address,\n COUNT(DISTINCT contract_address) AS tokens_sent,\n COUNT(DISTINCT DATE(block_timestamp)) AS active_days,\n COUNT(*) AS total_transfers,\n SUM(amount_usd) AS total_usd_sent\nFROM .core.ez_token_transfers\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND has_price = TRUE\n AND amount_usd > 10 -- Filter dust\nGROUP BY 1\nHAVING COUNT(*) > 10\nORDER BY total_usd_sent DESC\nLIMIT 100;\n```\n\n**New Token Detection**\n```sql\nWITH first_transfers AS (\n SELECT \n contract_address,\n symbol,\n MIN(block_timestamp) AS first_transfer,\n COUNT(*) AS transfer_count,\n COUNT(DISTINCT from_address) AS unique_senders,\n COUNT(DISTINCT to_address) AS unique_receivers\n FROM .core.ez_token_transfers\n WHERE block_timestamp >= CURRENT_DATE - 7\n GROUP BY 1, 2\n HAVING MIN(block_timestamp) >= CURRENT_DATE - 1\n)\nSELECT \n ft.*,\n dc.name AS token_name,\n dc.decimals\nFROM first_transfers ft\nLEFT JOIN .core.dim_contracts dc ON ft.contract_address = dc.address\nORDER BY transfer_count DESC;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "The from address for the token transfer. This may or may not be the same as the origin_from_address.\n\nExample: '0x1234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "The to address for the token transfer. This may or may not be the same as the origin_to_address.\n\nExample: '0xabcdefabcdefabcdefabcdefabcdefabcdefabcd'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "The contract address for the token transfer.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_STANDARD": {"name": "TOKEN_STANDARD", "description": "The token standard for the transfer, in this case always erc20.\n\nExample: 'erc20'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_IS_VERIFIED": {"name": "TOKEN_IS_VERIFIED", "description": "Boolean flag indicating if the token is verified by the Flipside team.\n\nExample: true", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NAME": {"name": "NAME", "description": "Human-readable contract name from the name() function.\n\nExample: 'USD Coin'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "Token/contract symbol from the symbol() function.\n\nExample: 'USDC'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECIMALS": {"name": "DECIMALS", "description": "Number of decimal places for token amounts, read directly from the contract code.\n\nExample: 6", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "RAW_AMOUNT_PRECISE": {"name": "RAW_AMOUNT_PRECISE", "description": "String representation of raw amount for precision preservation.\n\nExample: '1000500000'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "RAW_AMOUNT": {"name": "RAW_AMOUNT", "description": "Original token amount without decimal adjustment.\n\nExample: 1000500000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_PRECISE": {"name": "AMOUNT_PRECISE", "description": "String representation of decimal-adjusted amount preserving full precision.\n\nExample: '1000.500000'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "Decimal-adjusted token amount for human-readable values.\n\nExample: 1000.50", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_USD": {"name": "AMOUNT_USD", "description": "USD value of the token transfer at transaction time.\n\nExample: 1000.50", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_TOKEN_TRANSFERS_ID": {"name": "EZ_TOKEN_TRANSFERS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/core__ez_token_transfers.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "ez_token_transfers_id", "cluster_by": ["block_timestamp::DATE"], "incremental_predicates": ["polygon.\n \n core.\n \n ez_token_transfers.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n core.\n \n ez_token_transfers__dbt_tmp\n )"], "full_refresh": false, "tags": ["gold", "core", "transfers", "ez", "phase_3", "heal"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018438.678279, "relation_name": "polygon.core.ez_token_transfers", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = 'ez_token_transfers_id',\n cluster_by = ['block_timestamp::DATE'],\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(origin_from_address, origin_to_address, from_address, to_address, origin_function_signature)\",\n tags = ['gold','core','transfers','ez','phase_3', 'heal']\n) }}\n\nWITH base AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) :: STRING AS from_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) :: STRING AS to_address,\n utils.udf_hex_to_int(SUBSTR(DATA, 3, 64)) AS raw_amount_precise,\n raw_amount_precise :: FLOAT AS raw_amount,\n IFF(\n C.decimals IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n raw_amount_precise,\n C.decimals\n )\n ) AS amount_precise,\n amount_precise :: FLOAT AS amount,\n IFF(\n C.decimals IS NOT NULL\n AND IFF(contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}', COALESCE(p.price, p1.price), p.price) IS NOT NULL,\n ROUND(\n amount_precise * IFF(contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}', COALESCE(p.price, p1.price), p.price),\n 2\n ),\n NULL\n ) AS amount_usd,\n C.decimals,\n C.symbol,\n C.name,\n IFF(\n topic_0 = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',\n 'erc20',\n NULL\n ) AS token_standard,\n IFF(contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}', true, coalesce(p.is_verified, false)) as token_is_verified,\n fact_event_logs_id AS ez_token_transfers_id,\n {% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n {% else %}\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS inserted_timestamp,\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS modified_timestamp\n {% endif %}\n FROM\n {{ ref('core__fact_event_logs') }}\n f\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = HOUR\n AND token_address = contract_address\n LEFT JOIN {{ ref('price__ez_prices_hourly') }} p1\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.HOUR\n AND p1.is_native\n LEFT JOIN {{ ref('core__dim_contracts') }} C\n ON contract_address = C.address\n AND (\n C.decimals IS NOT NULL\n OR C.symbol IS NOT NULL\n OR C.name IS NOT NULL\n )\n WHERE\n topic_0 = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND tx_succeeded\n AND NOT event_removed\n AND topic_1 IS NOT NULL\n AND topic_2 IS NOT NULL\n AND DATA IS NOT NULL\n AND raw_amount IS NOT NULL\n\n{% if is_incremental() %}\nAND f.modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n)\n{% endif %}\n)\n{% if is_incremental() %}\n, broken_records as (\n SELECT\n *\n FROM\n {{ this }}\n WHERE\n block_timestamp::DATE > dateadd('day', \n {% if var('HEAL_MODEL') %}\n -31\n {% else %}\n -3\n {% endif %}\n , \n SYSDATE())\n AND (\n amount_usd IS NULL\n OR decimals IS NULL\n OR symbol IS NULL\n OR name IS NULL\n )\n),\nheal_prices as (\nSELECT\n t0.block_number,\n t0.block_timestamp,\n t0.tx_hash,\n t0.tx_position,\n t0.event_index,\n t0.from_address,\n t0.to_address,\n t0.contract_address,\n t0.token_standard,\n coalesce(p0.is_verified, false) as token_is_verified,\n t0.name,\n t0.symbol,\n t0.decimals,\n t0.raw_amount_precise,\n t0.raw_amount,\n IFF(\n t0.decimals IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n t0.raw_amount_precise,\n t0.decimals\n )\n ) AS amount_precise_heal,\n amount_precise_heal :: FLOAT AS amount_heal,\n IFF(\n t0.decimals IS NOT NULL\n AND p0.price IS NOT NULL,\n ROUND(\n amount_heal * p0.price,\n 2\n ),\n NULL\n ) AS amount_usd_heal,\n t0.origin_function_signature,\n t0.origin_from_address,\n t0.origin_to_address,\n t0.ez_token_transfers_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n broken_records\n t0\n INNER JOIN {{ ref('price__ez_prices_hourly') }}\n p0\n ON DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = HOUR\n AND t0.contract_address = p0.token_address\nWHERE t0.amount_usd IS NULL\n),\nheal_metadata as (\nSELECT\n t0.block_number,\n t0.block_timestamp,\n t0.tx_hash,\n t0.tx_position,\n t0.event_index,\n t0.from_address,\n t0.to_address,\n t0.contract_address,\n t0.token_standard,\n t0.token_is_verified,\n COALESCE(t0.name, c0.name) AS name_heal,\n COALESCE(t0.symbol, c0.symbol) AS symbol_heal,\n COALESCE(t0.decimals, c0.decimals) AS decimals_heal,\n t0.raw_amount_precise,\n t0.raw_amount,\n t0.amount_precise,\n t0.amount,\n t0.amount_usd,\n t0.origin_function_signature,\n t0.origin_from_address,\n t0.origin_to_address,\n t0.ez_token_transfers_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM \n broken_records\n t0\n INNER JOIN {{ ref('core__dim_contracts') }}\n c0\n ON t0.contract_address = c0.address\n WHERE (\n (t0.symbol IS NULL AND c0.symbol IS NOT NULL) \n OR (t0.name IS NULL AND c0.name IS NOT NULL)\n OR (t0.decimals IS NULL AND c0.decimals IS NOT NULL)\n ) \n)\n{% endif %}\n{% if is_incremental() and var('HEAL_MODEL', false) %}\n, newly_verified_tokens as (\n select token_address\n from {{ ref('price__ez_asset_metadata') }}\n where ifnull(is_verified_modified_timestamp, '1970-01-01' :: TIMESTAMP) > dateadd('day', -10, SYSDATE())\n),\nheal_verified_tokens as (\n select \n t.block_number,\n t.block_timestamp,\n t.tx_hash,\n t.tx_position,\n t.event_index,\n t.from_address,\n t.to_address,\n t.contract_address,\n t.token_standard,\n coalesce(p.is_verified, false) as token_is_verified,\n t.name,\n t.symbol,\n t.decimals,\n t.raw_amount_precise,\n t.raw_amount,\n IFF(\n t.decimals IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n t.raw_amount_precise,\n t.decimals\n )\n ) AS amount_precise_heal,\n amount_precise_heal :: FLOAT AS amount_heal,\n IFF(\n t.decimals IS NOT NULL\n AND p.price IS NOT NULL,\n ROUND(\n amount_heal * p.price,\n 2\n ),\n NULL\n ) AS amount_usd_heal,\n t.origin_function_signature,\n t.origin_from_address,\n t.origin_to_address,\n t.ez_token_transfers_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n from {{ this }} t \n inner join newly_verified_tokens nv\n on t.contract_address = nv.token_address\n left join {{ ref('price__ez_prices_hourly')}} p\n on DATE_TRUNC(\n 'hour',\n t.block_timestamp\n ) = HOUR\n AND t.contract_address = p.token_address\n)\n\n{% endif %}\n,\nfinal AS (\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n from_address,\n to_address,\n contract_address,\n token_standard,\n token_is_verified,\n NAME,\n symbol,\n decimals,\n raw_amount_precise,\n raw_amount,\n amount_precise,\n amount,\n amount_usd,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n ez_token_transfers_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n base\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n *\nFROM\n heal_prices\nUNION ALL\nSELECT\n *\nFROM\n heal_metadata\n{% endif %}\n{% if is_incremental() and var('HEAL_MODEL', false) %}\nUNION ALL\nSELECT\n *\nFROM\n heal_verified_tokens\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n from_address,\n to_address,\n contract_address,\n token_standard,\n token_is_verified,\n NAME,\n symbol,\n decimals,\n raw_amount_precise,\n raw_amount,\n amount_precise,\n amount,\n amount_usd,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n ez_token_transfers_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n final\n\nqualify(ROW_NUMBER() over(PARTITION BY ez_token_transfers_id ORDER BY modified_timestamp DESC, amount_usd DESC NULLS LAST, token_is_verified desc nulls last, decimals DESC NULLS LAST, symbol DESC NULLS LAST, name DESC NULLS LAST)) = 1", "language": "sql", "refs": [{"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.standard_predicate", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.core__dim_contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/core__ez_token_transfers.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"polygon.\\n \\n core.\\n \\n ez_token_transfers.block_number \\u003e= (\\n SELECT\\n MIN(\\n block_number\\n )\\n FROM\\n polygon.\\n \\n core.\\n \\n ez_token_transfers__dbt_tmp\\n )\"\n ],\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(origin_from_address, origin_to_address, from_address, to_address, origin_function_signature)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"core\",\n \"transfers\",\n \"ez\",\n \"phase_3\",\n \"heal\"\n ],\n \"unique_key\": \"ez_token_transfers_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = 'ez_token_transfers_id',\n cluster_by = ['block_timestamp::DATE'],\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(origin_from_address, origin_to_address, from_address, to_address, origin_function_signature)\",\n tags = ['gold','core','transfers','ez','phase_3', 'heal']\n) }}\n\nWITH base AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) :: STRING AS from_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) :: STRING AS to_address,\n utils.udf_hex_to_int(SUBSTR(DATA, 3, 64)) AS raw_amount_precise,\n raw_amount_precise :: FLOAT AS raw_amount,\n IFF(\n C.decimals IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n raw_amount_precise,\n C.decimals\n )\n ) AS amount_precise,\n amount_precise :: FLOAT AS amount,\n IFF(\n C.decimals IS NOT NULL\n AND IFF(contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}', COALESCE(p.price, p1.price), p.price) IS NOT NULL,\n ROUND(\n amount_precise * IFF(contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}', COALESCE(p.price, p1.price), p.price),\n 2\n ),\n NULL\n ) AS amount_usd,\n C.decimals,\n C.symbol,\n C.name,\n IFF(\n topic_0 = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',\n 'erc20',\n NULL\n ) AS token_standard,\n IFF(contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}', true, coalesce(p.is_verified, false)) as token_is_verified,\n fact_event_logs_id AS ez_token_transfers_id,\n {% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n {% else %}\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS inserted_timestamp,\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS modified_timestamp\n {% endif %}\n FROM\n {{ ref('core__fact_event_logs') }}\n f\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = HOUR\n AND token_address = contract_address\n LEFT JOIN {{ ref('price__ez_prices_hourly') }} p1\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.HOUR\n AND p1.is_native\n LEFT JOIN {{ ref('core__dim_contracts') }} C\n ON contract_address = C.address\n AND (\n C.decimals IS NOT NULL\n OR C.symbol IS NOT NULL\n OR C.name IS NOT NULL\n )\n WHERE\n topic_0 = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND tx_succeeded\n AND NOT event_removed\n AND topic_1 IS NOT NULL\n AND topic_2 IS NOT NULL\n AND DATA IS NOT NULL\n AND raw_amount IS NOT NULL\n\n{% if is_incremental() %}\nAND f.modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n)\n{% endif %}\n)\n{% if is_incremental() %}\n, broken_records as (\n SELECT\n *\n FROM\n {{ this }}\n WHERE\n block_timestamp::DATE > dateadd('day', \n {% if var('HEAL_MODEL') %}\n -31\n {% else %}\n -3\n {% endif %}\n , \n SYSDATE())\n AND (\n amount_usd IS NULL\n OR decimals IS NULL\n OR symbol IS NULL\n OR name IS NULL\n )\n),\nheal_prices as (\nSELECT\n t0.block_number,\n t0.block_timestamp,\n t0.tx_hash,\n t0.tx_position,\n t0.event_index,\n t0.from_address,\n t0.to_address,\n t0.contract_address,\n t0.token_standard,\n coalesce(p0.is_verified, false) as token_is_verified,\n t0.name,\n t0.symbol,\n t0.decimals,\n t0.raw_amount_precise,\n t0.raw_amount,\n IFF(\n t0.decimals IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n t0.raw_amount_precise,\n t0.decimals\n )\n ) AS amount_precise_heal,\n amount_precise_heal :: FLOAT AS amount_heal,\n IFF(\n t0.decimals IS NOT NULL\n AND p0.price IS NOT NULL,\n ROUND(\n amount_heal * p0.price,\n 2\n ),\n NULL\n ) AS amount_usd_heal,\n t0.origin_function_signature,\n t0.origin_from_address,\n t0.origin_to_address,\n t0.ez_token_transfers_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n broken_records\n t0\n INNER JOIN {{ ref('price__ez_prices_hourly') }}\n p0\n ON DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = HOUR\n AND t0.contract_address = p0.token_address\nWHERE t0.amount_usd IS NULL\n),\nheal_metadata as (\nSELECT\n t0.block_number,\n t0.block_timestamp,\n t0.tx_hash,\n t0.tx_position,\n t0.event_index,\n t0.from_address,\n t0.to_address,\n t0.contract_address,\n t0.token_standard,\n t0.token_is_verified,\n COALESCE(t0.name, c0.name) AS name_heal,\n COALESCE(t0.symbol, c0.symbol) AS symbol_heal,\n COALESCE(t0.decimals, c0.decimals) AS decimals_heal,\n t0.raw_amount_precise,\n t0.raw_amount,\n t0.amount_precise,\n t0.amount,\n t0.amount_usd,\n t0.origin_function_signature,\n t0.origin_from_address,\n t0.origin_to_address,\n t0.ez_token_transfers_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM \n broken_records\n t0\n INNER JOIN {{ ref('core__dim_contracts') }}\n c0\n ON t0.contract_address = c0.address\n WHERE (\n (t0.symbol IS NULL AND c0.symbol IS NOT NULL) \n OR (t0.name IS NULL AND c0.name IS NOT NULL)\n OR (t0.decimals IS NULL AND c0.decimals IS NOT NULL)\n ) \n)\n{% endif %}\n{% if is_incremental() and var('HEAL_MODEL', false) %}\n, newly_verified_tokens as (\n select token_address\n from {{ ref('price__ez_asset_metadata') }}\n where ifnull(is_verified_modified_timestamp, '1970-01-01' :: TIMESTAMP) > dateadd('day', -10, SYSDATE())\n),\nheal_verified_tokens as (\n select \n t.block_number,\n t.block_timestamp,\n t.tx_hash,\n t.tx_position,\n t.event_index,\n t.from_address,\n t.to_address,\n t.contract_address,\n t.token_standard,\n coalesce(p.is_verified, false) as token_is_verified,\n t.name,\n t.symbol,\n t.decimals,\n t.raw_amount_precise,\n t.raw_amount,\n IFF(\n t.decimals IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n t.raw_amount_precise,\n t.decimals\n )\n ) AS amount_precise_heal,\n amount_precise_heal :: FLOAT AS amount_heal,\n IFF(\n t.decimals IS NOT NULL\n AND p.price IS NOT NULL,\n ROUND(\n amount_heal * p.price,\n 2\n ),\n NULL\n ) AS amount_usd_heal,\n t.origin_function_signature,\n t.origin_from_address,\n t.origin_to_address,\n t.ez_token_transfers_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n from {{ this }} t \n inner join newly_verified_tokens nv\n on t.contract_address = nv.token_address\n left join {{ ref('price__ez_prices_hourly')}} p\n on DATE_TRUNC(\n 'hour',\n t.block_timestamp\n ) = HOUR\n AND t.contract_address = p.token_address\n)\n\n{% endif %}\n,\nfinal AS (\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n from_address,\n to_address,\n contract_address,\n token_standard,\n token_is_verified,\n NAME,\n symbol,\n decimals,\n raw_amount_precise,\n raw_amount,\n amount_precise,\n amount,\n amount_usd,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n ez_token_transfers_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n base\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n *\nFROM\n heal_prices\nUNION ALL\nSELECT\n *\nFROM\n heal_metadata\n{% endif %}\n{% if is_incremental() and var('HEAL_MODEL', false) %}\nUNION ALL\nSELECT\n *\nFROM\n heal_verified_tokens\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n from_address,\n to_address,\n contract_address,\n token_standard,\n token_is_verified,\n NAME,\n symbol,\n decimals,\n raw_amount_precise,\n raw_amount,\n amount_precise,\n amount,\n amount_usd,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n ez_token_transfers_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n final\n\nqualify(ROW_NUMBER() over(PARTITION BY ez_token_transfers_id ORDER BY modified_timestamp DESC, amount_usd DESC NULLS LAST, token_is_verified desc nulls last, decimals DESC NULLS LAST, symbol DESC NULLS LAST, name DESC NULLS LAST)) = 1\n*/\n\n-- depends_on: polygon.price.ez_asset_metadata\n\n\n\nWITH base AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) :: STRING AS from_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) :: STRING AS to_address,\n utils.udf_hex_to_int(SUBSTR(DATA, 3, 64)) AS raw_amount_precise,\n raw_amount_precise :: FLOAT AS raw_amount,\n IFF(\n C.decimals IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n raw_amount_precise,\n C.decimals\n )\n ) AS amount_precise,\n amount_precise :: FLOAT AS amount,\n IFF(\n C.decimals IS NOT NULL\n AND IFF(contract_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', COALESCE(p.price, p1.price), p.price) IS NOT NULL,\n ROUND(\n amount_precise * IFF(contract_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', COALESCE(p.price, p1.price), p.price),\n 2\n ),\n NULL\n ) AS amount_usd,\n C.decimals,\n C.symbol,\n C.name,\n IFF(\n topic_0 = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',\n 'erc20',\n NULL\n ) AS token_standard,\n IFF(contract_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', true, coalesce(p.is_verified, false)) as token_is_verified,\n fact_event_logs_id AS ez_token_transfers_id,\n \n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n \n FROM\n polygon.core.fact_event_logs\n f\n LEFT JOIN polygon.price.ez_prices_hourly\n p\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = HOUR\n AND token_address = contract_address\n LEFT JOIN polygon.price.ez_prices_hourly p1\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.HOUR\n AND p1.is_native\n LEFT JOIN polygon.core.dim_contracts C\n ON contract_address = C.address\n AND (\n C.decimals IS NOT NULL\n OR C.symbol IS NOT NULL\n OR C.name IS NOT NULL\n )\n WHERE\n topic_0 = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND tx_succeeded\n AND NOT event_removed\n AND topic_1 IS NOT NULL\n AND topic_2 IS NOT NULL\n AND DATA IS NOT NULL\n AND raw_amount IS NOT NULL\n\n\nAND f.modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n polygon.core.ez_token_transfers\n)\n\n)\n\n, broken_records as (\n SELECT\n *\n FROM\n polygon.core.ez_token_transfers\n WHERE\n block_timestamp::DATE > dateadd('day', \n \n -3\n \n , \n SYSDATE())\n AND (\n amount_usd IS NULL\n OR decimals IS NULL\n OR symbol IS NULL\n OR name IS NULL\n )\n),\nheal_prices as (\nSELECT\n t0.block_number,\n t0.block_timestamp,\n t0.tx_hash,\n t0.tx_position,\n t0.event_index,\n t0.from_address,\n t0.to_address,\n t0.contract_address,\n t0.token_standard,\n coalesce(p0.is_verified, false) as token_is_verified,\n t0.name,\n t0.symbol,\n t0.decimals,\n t0.raw_amount_precise,\n t0.raw_amount,\n IFF(\n t0.decimals IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n t0.raw_amount_precise,\n t0.decimals\n )\n ) AS amount_precise_heal,\n amount_precise_heal :: FLOAT AS amount_heal,\n IFF(\n t0.decimals IS NOT NULL\n AND p0.price IS NOT NULL,\n ROUND(\n amount_heal * p0.price,\n 2\n ),\n NULL\n ) AS amount_usd_heal,\n t0.origin_function_signature,\n t0.origin_from_address,\n t0.origin_to_address,\n t0.ez_token_transfers_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n broken_records\n t0\n INNER JOIN polygon.price.ez_prices_hourly\n p0\n ON DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = HOUR\n AND t0.contract_address = p0.token_address\nWHERE t0.amount_usd IS NULL\n),\nheal_metadata as (\nSELECT\n t0.block_number,\n t0.block_timestamp,\n t0.tx_hash,\n t0.tx_position,\n t0.event_index,\n t0.from_address,\n t0.to_address,\n t0.contract_address,\n t0.token_standard,\n t0.token_is_verified,\n COALESCE(t0.name, c0.name) AS name_heal,\n COALESCE(t0.symbol, c0.symbol) AS symbol_heal,\n COALESCE(t0.decimals, c0.decimals) AS decimals_heal,\n t0.raw_amount_precise,\n t0.raw_amount,\n t0.amount_precise,\n t0.amount,\n t0.amount_usd,\n t0.origin_function_signature,\n t0.origin_from_address,\n t0.origin_to_address,\n t0.ez_token_transfers_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM \n broken_records\n t0\n INNER JOIN polygon.core.dim_contracts\n c0\n ON t0.contract_address = c0.address\n WHERE (\n (t0.symbol IS NULL AND c0.symbol IS NOT NULL) \n OR (t0.name IS NULL AND c0.name IS NOT NULL)\n OR (t0.decimals IS NULL AND c0.decimals IS NOT NULL)\n ) \n)\n\n\n,\nfinal AS (\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n from_address,\n to_address,\n contract_address,\n token_standard,\n token_is_verified,\n NAME,\n symbol,\n decimals,\n raw_amount_precise,\n raw_amount,\n amount_precise,\n amount,\n amount_usd,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n ez_token_transfers_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n base\n\n\nUNION ALL\nSELECT\n *\nFROM\n heal_prices\nUNION ALL\nSELECT\n *\nFROM\n heal_metadata\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n from_address,\n to_address,\n contract_address,\n token_standard,\n token_is_verified,\n NAME,\n symbol,\n decimals,\n raw_amount_precise,\n raw_amount,\n amount_precise,\n amount,\n amount_usd,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n ez_token_transfers_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n final\n\nqualify(ROW_NUMBER() over(PARTITION BY ez_token_transfers_id ORDER BY modified_timestamp DESC, amount_usd DESC NULLS LAST, token_is_verified desc nulls last, decimals DESC NULLS LAST, symbol DESC NULLS LAST, name DESC NULLS LAST)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.core__ez_native_transfers": {"database": "polygon", "schema": "core", "name": "core__ez_native_transfers", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/core__ez_native_transfers.sql", "original_file_path": "models/main_package/core/gold/core__ez_native_transfers.sql", "unique_id": "model.fsc_evm.core__ez_native_transfers", "fqn": ["fsc_evm", "main_package", "core", "gold", "core__ez_native_transfers"], "alias": "ez_native_transfers", "checksum": {"name": "sha256", "checksum": "5f575510c57100739f6b9394a3aa5ee31c08385d2a825bbc772603cf7520736c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "core", "transfers", "ez", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(origin_from_address, origin_to_address, from_address, to_address, origin_function_signature)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "incremental_predicates": ["polygon.\n \n core.\n \n ez_native_transfers.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n core.\n \n ez_native_transfers__dbt_tmp\n )"]}, "tags": ["gold", "core", "transfers", "ez", "phase_3"], "description": "## What\n\nThis convenience table tracks all native asset transfers (ETH, AVAX, MATIC, etc.) extracted from transaction traces. It provides a simplified view of value movements with decimal adjustments and USD conversions, making it easy to analyze fund flows without parsing complex trace data.\n\n## Key Use Cases\n\n- Tracking native asset movements between wallets and contracts\n- Analyzing exchange deposits and withdrawals\n- Monitoring whale movements and large transfers\n- Calculating wallet balances from transfer history\n- Identifying internal transfers within smart contract executions\n\n## Important Relationships\n\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Join with fact_traces**: Use `tx_hash` and `trace_index` for trace details\n- **Join with dim_labels**: Use addresses for entity identification\n- **Complement to ez_token_transfers**: This table for native, that for tokens\n\n## Commonly-used Fields\n\n- `from_address`: The sender of the native asset transfer\n- `to_address`: The recipient of the native asset transfer\n- `amount`: Decimal-adjusted transfer amount\n- `amount_usd`: USD value at time of transfer\n- `origin_from_address`: Original transaction sender\n- `origin_to_address`: Original transaction recipient\n- `identifier`: Trace identifier (0 for external transfers)\n\n## Sample queries\n\n**Daily Native Asset Transfer Volume**\n```sql\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n COUNT(*) AS transfer_count,\n COUNT(DISTINCT from_address) AS unique_senders,\n COUNT(DISTINCT to_address) AS unique_receivers,\n SUM(amount) AS total_amount,\n AVG(amount) AS avg_amount,\n SUM(amount_usd) AS total_usd,\n MAX(amount_usd) AS largest_transfer_usd\nFROM .core.ez_native_transfers\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount > 0\nGROUP BY 1\nORDER BY 1 DESC;\n```\n\n**Whale Movements (Large Transfers)**\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n from_address,\n to_address,\n amount,\n amount_usd,\n origin_from_address,\n origin_to_address,\n identifier\nFROM .core.ez_native_transfers\nWHERE amount_usd > 1000000 -- Over $1M USD\n AND block_timestamp >= CURRENT_DATE - 7\nORDER BY amount_usd DESC\nLIMIT 100;\n```\n\n**Exchange Deposit/Withdrawal Patterns**\n```sql\nWITH exchange_addresses AS (\n SELECT DISTINCT address \n FROM dim_labels \n WHERE label_type = 'exchange'\n)\nSELECT \n DATE_TRUNC('hour', block_timestamp) AS hour,\n CASE \n WHEN to_address IN (SELECT address FROM exchange_addresses) THEN 'Deposit'\n WHEN from_address IN (SELECT address FROM exchange_addresses) THEN 'Withdrawal'\n END AS transfer_type,\n COUNT(*) AS transfer_count,\n SUM(amount) AS total_amount,\n SUM(amount_usd) AS total_usd\nFROM .core.ez_native_transfers\nWHERE block_timestamp >= CURRENT_DATE - 1\n AND (to_address IN (SELECT address FROM exchange_addresses)\n OR from_address IN (SELECT address FROM exchange_addresses))\nGROUP BY 1, 2\nORDER BY 1 DESC;\n```\n\n**Internal Transfer Analysis**\n```sql\n-- Compare external vs internal transfers\nSELECT \n CASE \n WHEN identifier = '0' THEN 'External Transfer'\n ELSE 'Internal Transfer'\n END AS transfer_type,\n COUNT(*) AS count,\n SUM(amount) AS total_amount,\n AVG(amount) AS avg_amount,\n SUM(amount_usd) AS total_volume_usd\nFROM .core.ez_native_transfers\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1;\n```\n\n**Smart Contract Native Asset Holdings**\n```sql\nWITH contract_balances AS (\n SELECT \n to_address AS address,\n SUM(amount) AS inflows\n FROM .core.ez_native_transfers\n WHERE to_address IN (SELECT address FROM dim_contracts)\n GROUP BY 1\n),\noutflows AS (\n SELECT \n from_address AS address,\n SUM(amount) AS outflows\n FROM .core.ez_native_transfers\n WHERE from_address IN (SELECT address FROM dim_contracts)\n GROUP BY 1\n)\nSELECT \n c.address,\n dc.name AS contract_name,\n COALESCE(c.inflows, 0) - COALESCE(o.outflows, 0) AS net_balance,\n c.inflows,\n o.outflows\nFROM contract_balances c\nLEFT JOIN outflows o ON c.address = o.address\nLEFT JOIN .core.dim_contracts dc ON c.address = dc.address\nWHERE COALESCE(c.inflows, 0) - COALESCE(o.outflows, 0) > 100 -- Over 100 native tokens\nORDER BY net_balance DESC\nLIMIT 50;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_INDEX": {"name": "TRACE_INDEX", "description": "Sequential index of trace within the transaction's execution.\n\nExample: 3", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_ADDRESS": {"name": "TRACE_ADDRESS", "description": "Array describing the trace's position in the execution tree.\n\nExample: [0, 1, 2]", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TYPE": {"name": "TYPE", "description": "The type of EVM operation performed.\n\nExample: 'CALL'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "The from address for the native asset transfer. This may or may not be the same as the origin_from_address.\n\nExample: '0x1234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "The to address for the native asset transfer. This may or may not be the same as the origin_to_address.\n\nExample: '0xabcdefabcdefabcdefabcdefabcdefabcdefabcd'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "Native asset amount transferred, adjusted to standard decimal units.\n\nExample: 1.5", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_PRECISE_RAW": {"name": "AMOUNT_PRECISE_RAW", "description": "Native asset amount transferred, no decimal adjustment, returned as a string to preserve precision.\n\nExample: '1500000000000000000'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_PRECISE": {"name": "AMOUNT_PRECISE", "description": "Native asset amount transferred, decimal adjusted, returned as a string to preserve precision.\n\nExample: '1.500000000000000000'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_USD": {"name": "AMOUNT_USD", "description": "USD value of the native asset transfer at the time of the transaction.\n\nExample: 2500.50", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_NATIVE_TRANSFERS_ID": {"name": "EZ_NATIVE_TRANSFERS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/core__ez_native_transfers.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "incremental_predicates": ["polygon.\n \n core.\n \n ez_native_transfers.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n core.\n \n ez_native_transfers__dbt_tmp\n )"], "full_refresh": false, "tags": ["gold", "core", "transfers", "ez", "phase_3"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018438.6714606, "relation_name": "polygon.core.ez_native_transfers", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = vars.MAIN_CORE_GOLD_EZ_NATIVE_TRANSFERS_UNIQUE_KEY,\n cluster_by = ['block_timestamp::DATE'],\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(origin_from_address, origin_to_address, from_address, to_address, origin_function_signature)\",\n tags = ['gold','core','transfers','ez','phase_3']\n) }}\n\nWITH base AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n TYPE,\n trace_address,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n from_address,\n to_address,\n VALUE AS amount,\n value_precise_raw AS amount_precise_raw,\n value_precise AS amount_precise,\n ROUND(\n VALUE * COALESCE(p0.price, p1.price),\n 2\n ) AS amount_usd,\n tx_position,\n trace_index,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash', 'trace_index']\n ) }} AS ez_native_transfers_id,\n {% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n {% else %}\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS inserted_timestamp,\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS modified_timestamp\n {% endif %}\n FROM\n {{ ref('core__fact_traces') }}\n tr\n LEFT JOIN {{ ref('price__ez_prices_hourly') }} p0\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p0.HOUR\n AND p0.token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n LEFT JOIN {{ ref('price__ez_prices_hourly') }} p1\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.HOUR\n and p1.is_native\n WHERE\n tr.value > 0\n AND tr.tx_succeeded\n AND tr.trace_succeeded\n AND tr.type NOT IN (\n 'DELEGATECALL',\n 'STATICCALL'\n )\n\n{% if is_incremental() %}\nAND tr.modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n)\n{% endif %}\n),\nfinal AS (\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n trace_index,\n trace_address,\n TYPE,\n from_address,\n to_address,\n amount,\n amount_precise_raw,\n amount_precise,\n amount_usd,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n ez_native_transfers_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n base\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n t.block_number,\n t.block_timestamp,\n t.tx_hash,\n t.tx_position,\n t.trace_index,\n t.trace_address,\n t.type,\n t.from_address,\n t.to_address,\n t.amount,\n t.amount_precise_raw,\n t.amount_precise,\n t.amount * COALESCE(p0.price, p1.price) AS amount_usd_heal,\n t.origin_from_address,\n t.origin_to_address,\n t.origin_function_signature,\n t.ez_native_transfers_id,\n {% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n {% else %}\n CASE WHEN t.block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(t.block_timestamp, dateadd('day', -10, SYSDATE())) END AS inserted_timestamp,\n CASE WHEN t.block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(t.block_timestamp, dateadd('day', -10, SYSDATE())) END AS modified_timestamp\n {% endif %}\nFROM\n {{ this }}\n t\n LEFT JOIN {{ ref('price__ez_prices_hourly') }} p0\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p0.HOUR\n AND p0.token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n LEFT JOIN {{ ref('price__ez_prices_hourly') }} p1\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.HOUR\n and p1.is_native\n LEFT JOIN base b USING (ez_native_transfers_id)\nWHERE\n t.amount_usd IS NULL\n AND t.block_timestamp :: DATE >= '{{ vars.MAIN_CORE_GOLD_EZ_NATIVE_TRANSFERS_PRICES_START_DATE }}'\n AND b.ez_native_transfers_id IS NULL\n and COALESCE(p0.price, p1.price) is not null\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n trace_index,\n trace_address,\n TYPE,\n from_address,\n to_address,\n amount,\n amount_precise_raw,\n amount_precise,\n amount_usd,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n ez_native_transfers_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n final\n\nqualify(ROW_NUMBER() over(PARTITION BY ez_native_transfers_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.standard_predicate", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces", "model.fsc_evm.price__ez_prices_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/core__ez_native_transfers.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"polygon.\\n \\n core.\\n \\n ez_native_transfers.block_number \\u003e= (\\n SELECT\\n MIN(\\n block_number\\n )\\n FROM\\n polygon.\\n \\n core.\\n \\n ez_native_transfers__dbt_tmp\\n )\"\n ],\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(origin_from_address, origin_to_address, from_address, to_address, origin_function_signature)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"core\",\n \"transfers\",\n \"ez\",\n \"phase_3\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = vars.MAIN_CORE_GOLD_EZ_NATIVE_TRANSFERS_UNIQUE_KEY,\n cluster_by = ['block_timestamp::DATE'],\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(origin_from_address, origin_to_address, from_address, to_address, origin_function_signature)\",\n tags = ['gold','core','transfers','ez','phase_3']\n) }}\n\nWITH base AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n TYPE,\n trace_address,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n from_address,\n to_address,\n VALUE AS amount,\n value_precise_raw AS amount_precise_raw,\n value_precise AS amount_precise,\n ROUND(\n VALUE * COALESCE(p0.price, p1.price),\n 2\n ) AS amount_usd,\n tx_position,\n trace_index,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash', 'trace_index']\n ) }} AS ez_native_transfers_id,\n {% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n {% else %}\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS inserted_timestamp,\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS modified_timestamp\n {% endif %}\n FROM\n {{ ref('core__fact_traces') }}\n tr\n LEFT JOIN {{ ref('price__ez_prices_hourly') }} p0\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p0.HOUR\n AND p0.token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n LEFT JOIN {{ ref('price__ez_prices_hourly') }} p1\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.HOUR\n and p1.is_native\n WHERE\n tr.value > 0\n AND tr.tx_succeeded\n AND tr.trace_succeeded\n AND tr.type NOT IN (\n 'DELEGATECALL',\n 'STATICCALL'\n )\n\n{% if is_incremental() %}\nAND tr.modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n)\n{% endif %}\n),\nfinal AS (\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n trace_index,\n trace_address,\n TYPE,\n from_address,\n to_address,\n amount,\n amount_precise_raw,\n amount_precise,\n amount_usd,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n ez_native_transfers_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n base\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n t.block_number,\n t.block_timestamp,\n t.tx_hash,\n t.tx_position,\n t.trace_index,\n t.trace_address,\n t.type,\n t.from_address,\n t.to_address,\n t.amount,\n t.amount_precise_raw,\n t.amount_precise,\n t.amount * COALESCE(p0.price, p1.price) AS amount_usd_heal,\n t.origin_from_address,\n t.origin_to_address,\n t.origin_function_signature,\n t.ez_native_transfers_id,\n {% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n {% else %}\n CASE WHEN t.block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(t.block_timestamp, dateadd('day', -10, SYSDATE())) END AS inserted_timestamp,\n CASE WHEN t.block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(t.block_timestamp, dateadd('day', -10, SYSDATE())) END AS modified_timestamp\n {% endif %}\nFROM\n {{ this }}\n t\n LEFT JOIN {{ ref('price__ez_prices_hourly') }} p0\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p0.HOUR\n AND p0.token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n LEFT JOIN {{ ref('price__ez_prices_hourly') }} p1\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.HOUR\n and p1.is_native\n LEFT JOIN base b USING (ez_native_transfers_id)\nWHERE\n t.amount_usd IS NULL\n AND t.block_timestamp :: DATE >= '{{ vars.MAIN_CORE_GOLD_EZ_NATIVE_TRANSFERS_PRICES_START_DATE }}'\n AND b.ez_native_transfers_id IS NULL\n and COALESCE(p0.price, p1.price) is not null\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n trace_index,\n trace_address,\n TYPE,\n from_address,\n to_address,\n amount,\n amount_precise_raw,\n amount_precise,\n amount_usd,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n ez_native_transfers_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n final\n\nqualify(ROW_NUMBER() over(PARTITION BY ez_native_transfers_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH base AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n TYPE,\n trace_address,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n from_address,\n to_address,\n VALUE AS amount,\n value_precise_raw AS amount_precise_raw,\n value_precise AS amount_precise,\n ROUND(\n VALUE * COALESCE(p0.price, p1.price),\n 2\n ) AS amount_usd,\n tx_position,\n trace_index,\n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(trace_index as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS ez_native_transfers_id,\n \n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n \n FROM\n polygon.core.fact_traces\n tr\n LEFT JOIN polygon.price.ez_prices_hourly p0\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p0.HOUR\n AND p0.token_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n LEFT JOIN polygon.price.ez_prices_hourly p1\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.HOUR\n and p1.is_native\n WHERE\n tr.value > 0\n AND tr.tx_succeeded\n AND tr.trace_succeeded\n AND tr.type NOT IN (\n 'DELEGATECALL',\n 'STATICCALL'\n )\n\n\nAND tr.modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n polygon.core.ez_native_transfers\n)\n\n),\nfinal AS (\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n trace_index,\n trace_address,\n TYPE,\n from_address,\n to_address,\n amount,\n amount_precise_raw,\n amount_precise,\n amount_usd,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n ez_native_transfers_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n base\n\n\nUNION ALL\nSELECT\n t.block_number,\n t.block_timestamp,\n t.tx_hash,\n t.tx_position,\n t.trace_index,\n t.trace_address,\n t.type,\n t.from_address,\n t.to_address,\n t.amount,\n t.amount_precise_raw,\n t.amount_precise,\n t.amount * COALESCE(p0.price, p1.price) AS amount_usd_heal,\n t.origin_from_address,\n t.origin_to_address,\n t.origin_function_signature,\n t.ez_native_transfers_id,\n \n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n \nFROM\n polygon.core.ez_native_transfers\n t\n LEFT JOIN polygon.price.ez_prices_hourly p0\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p0.HOUR\n AND p0.token_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n LEFT JOIN polygon.price.ez_prices_hourly p1\n ON DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.HOUR\n and p1.is_native\n LEFT JOIN base b USING (ez_native_transfers_id)\nWHERE\n t.amount_usd IS NULL\n AND t.block_timestamp :: DATE >= '2024-01-01'\n AND b.ez_native_transfers_id IS NULL\n and COALESCE(p0.price, p1.price) is not null\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n trace_index,\n trace_address,\n TYPE,\n from_address,\n to_address,\n amount,\n amount_precise_raw,\n amount_precise,\n amount_usd,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n ez_native_transfers_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n final\n\nqualify(ROW_NUMBER() over(PARTITION BY ez_native_transfers_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.core__dim_contracts": {"database": "polygon", "schema": "core", "name": "core__dim_contracts", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/core__dim_contracts.sql", "original_file_path": "models/main_package/core/gold/core__dim_contracts.sql", "unique_id": "model.fsc_evm.core__dim_contracts", "fqn": ["fsc_evm", "main_package", "core", "gold", "core__dim_contracts"], "alias": "dim_contracts", "checksum": {"name": "sha256", "checksum": "32d50f1a15e67fd26a85d89cf6d98537dd6646ceb2070b1c4b7b8495729bb641"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "core", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address, symbol, name)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "merge_exclude_columns": ["inserted_timestamp"]}, "tags": ["gold", "core", "phase_2"], "description": "## What\n\nThis table provides comprehensive metadata for all smart contracts deployed on EVM blockchains. It includes contract names, symbols, decimals, and deployment details read directly from the blockchain.\n\n## Key Use Cases\n\n- Identifying contracts by name, symbol, or address\n- Understanding token properties (decimals, symbols)\n- Tracking contract deployment patterns and trends\n- Finding contracts deployed by specific factories or deployers\n- Filtering protocol-specific data across other tables\n\n## Important Relationships\n\n- **Join with fact_transactions**: Use `address = to_address` for contract interactions\n- **Join with fact_event_logs**: Use `address = contract_address` for contract events\n- **Join with ez_token_transfers**: Use `address = contract_address` for token movements\n\n## Commonly-used Fields\n\n- `address`: The deployed contract's blockchain address (lowercase)\n- `name`: Human-readable contract name from the name() function\n- `symbol`: Token/contract symbol from the symbol() function\n- `decimals`: Number of decimal places for token amounts\n- `creator_address`: Address that deployed this contract\n- `created_block_timestamp`: When the contract was created\n\n## Sample queries\n\n**Find All Uniswap V3 Pool Contracts**\n\n```sql\nSELECT \n address,\n name,\n created_block_number,\n created_block_timestamp,\n creator_address\nFROM .core.dim_contracts\nWHERE creator_address = LOWER('0x1F98431c8aD98523631AE4a59f267346ea31F984') -- Uniswap V3 Factory\nORDER BY created_block_number DESC\nLIMIT 100;\n```\n\n**Analyze Contract Deployment Trends**\n\n```sql\nSELECT \n DATE_TRUNC('week', created_block_timestamp) AS week,\n COUNT(*) AS contracts_deployed,\n COUNT(DISTINCT creator_address) AS unique_deployers\nFROM .core.dim_contracts\nWHERE created_block_timestamp >= CURRENT_DATE - 90\nGROUP BY 1, 2\nORDER BY 1 DESC, 3 DESC;\n```", "columns": {"ADDRESS": {"name": "ADDRESS", "description": "Unique identifier - the deployed contract's blockchain address.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "Token/contract symbol from the symbol() function.\n\nExample: 'USDC'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NAME": {"name": "NAME", "description": "Human-readable contract name from the name() function.\n\nExample: 'USD Coin'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECIMALS": {"name": "DECIMALS", "description": "Number of decimal places for token amounts, read directly from the contract code.\n\nExample: 6", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_BLOCK_NUMBER": {"name": "CREATED_BLOCK_NUMBER", "description": "Block number when contract was created.\n\nExample: 17500000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_BLOCK_TIMESTAMP": {"name": "CREATED_BLOCK_TIMESTAMP", "description": "Timestamp when contract was created.\n\nExample: 2023-06-15 14:30:00.000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_TX_HASH": {"name": "CREATED_TX_HASH", "description": "Transaction hash of the contract deployment.\n\nExample: '0x4f01db1f857e711af502ad6fa8b5b3ccd9e36b5f8c8a7b2c1d3e4f5a6b7c8d9e'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATOR_ADDRESS": {"name": "CREATOR_ADDRESS", "description": "Address that deployed this contract (transaction from_address).\n\nExample: '0x95ba4cf87d6723ad9c0db21737d862be80e93911'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DIM_CONTRACTS_ID": {"name": "DIM_CONTRACTS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/core__dim_contracts.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "address", "merge_exclude_columns": ["inserted_timestamp"], "tags": ["gold", "core", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018438.6751816, "relation_name": "polygon.core.dim_contracts", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n{{ config(\n materialized = 'incremental',\n unique_key = 'address',\n merge_exclude_columns = [\"inserted_timestamp\"],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address, symbol, name)\",\n tags = ['gold','core','phase_2']\n) }}\n\nWITH created_contracts AS (\n\n SELECT\n created_contract_address AS address,\n block_number AS created_block_number,\n block_timestamp AS created_block_timestamp,\n tx_hash AS created_tx_hash,\n creator_address AS creator_address,\n created_contracts_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n {{ ref('silver__created_contracts') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP)\n FROM\n {{ this }})\n {% endif %}\n ),\n genesis_contracts AS (\n SELECT\n contract_address AS address,\n 0 AS created_block_number,\n '1970-01-01 00:00:00' AS created_block_timestamp,\n 'GENESIS' AS created_tx_hash,\n 'GENESIS' AS creator_address,\n {{ dbt_utils.generate_surrogate_key(\n ['contract_address']\n ) }} AS created_contracts_id,\n max_inserted_timestamp_logs AS inserted_timestamp,\n max_inserted_timestamp_logs AS modified_timestamp\n FROM\n {{ ref('silver__relevant_contracts') }}\n r\n WHERE\n total_event_count > 0\n AND NOT EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__created_contracts') }} C\n WHERE\n r.contract_address = C.created_contract_address\n )\n\n{% if is_incremental() %}\nAND max_inserted_timestamp_logs > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP)\n FROM\n {{ this }})\n {% endif %}\n),\ncombined AS (\n SELECT\n address,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n created_contracts_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n created_contracts\n UNION ALL\n SELECT\n address,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n created_contracts_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n genesis_contracts\n),\nnew_contracts AS (\n SELECT\n address,\n c1.token_symbol AS symbol,\n c1.token_name AS NAME,\n c1.token_decimals AS decimals,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n COALESCE (\n c0.created_contracts_id,\n {{ dbt_utils.generate_surrogate_key(\n ['c0.address']\n ) }}\n ) AS dim_contracts_id,\n GREATEST(COALESCE(c0.inserted_timestamp, '2000-01-01'), COALESCE(c1.inserted_timestamp, '2000-01-01')) AS inserted_timestamp,\n GREATEST(COALESCE(c0.modified_timestamp, '2000-01-01'), COALESCE(c1.modified_timestamp, '2000-01-01')) AS modified_timestamp,\n 1 AS priority\n FROM\n combined c0\n LEFT JOIN {{ ref('silver__contracts') }}\n c1\n ON LOWER(\n c0.address\n ) = LOWER(\n c1.contract_address\n )\n)\n\n{% if is_incremental() %},\nmetadata_heal AS (\n SELECT\n address,\n C.token_symbol AS symbol,\n C.token_name AS NAME,\n C.token_decimals AS decimals,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n dim_contracts_id,\n GREATEST(COALESCE(t.inserted_timestamp, '2000-01-01'), COALESCE(C.inserted_timestamp, '2000-01-01')) AS inserted_timestamp,\n GREATEST(COALESCE(t.modified_timestamp, '2000-01-01'), COALESCE(C.modified_timestamp, '2000-01-01')) AS modified_timestamp,\n 2 AS priority\n FROM\n {{ this }}\n t\n INNER JOIN {{ ref('silver__contracts') }} C\n ON LOWER(\n t.address\n ) = LOWER(\n C.contract_address\n )\n WHERE\n C.inserted_timestamp > (\n SELECT\n MAX(inserted_timestamp)\n FROM\n {{ this }}\n )\n AND (\n t.symbol IS NULL\n OR t.name IS NULL\n OR t.decimals IS NULL\n )\n)\n{% endif %},\nFINAL AS (\n SELECT\n address,\n symbol,\n NAME,\n decimals,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n dim_contracts_id,\n inserted_timestamp,\n modified_timestamp,\n priority\n FROM\n new_contracts\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n address,\n symbol,\n NAME,\n decimals,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n dim_contracts_id,\n inserted_timestamp,\n modified_timestamp,\n priority\nFROM\n metadata_heal\n{% endif %}\n)\nSELECT\n address,\n symbol,\n NAME,\n decimals,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n dim_contracts_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n FINAL qualify ROW_NUMBER() over (\n PARTITION BY address\n ORDER BY\n priority ASC,\n modified_timestamp DESC\n ) = 1", "language": "sql", "refs": [{"name": "silver__created_contracts", "package": null, "version": null}, {"name": "silver__relevant_contracts", "package": null, "version": null}, {"name": "silver__created_contracts", "package": null, "version": null}, {"name": "silver__contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__created_contracts", "model.fsc_evm.silver__relevant_contracts", "model.fsc_evm.silver__contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/core__dim_contracts.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"merge_exclude_columns\": [\n \"inserted_timestamp\"\n ],\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address, symbol, name)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"core\",\n \"phase_2\"\n ],\n \"unique_key\": \"address\"\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n{{ config(\n materialized = 'incremental',\n unique_key = 'address',\n merge_exclude_columns = [\"inserted_timestamp\"],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address, symbol, name)\",\n tags = ['gold','core','phase_2']\n) }}\n\nWITH created_contracts AS (\n\n SELECT\n created_contract_address AS address,\n block_number AS created_block_number,\n block_timestamp AS created_block_timestamp,\n tx_hash AS created_tx_hash,\n creator_address AS creator_address,\n created_contracts_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n {{ ref('silver__created_contracts') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP)\n FROM\n {{ this }})\n {% endif %}\n ),\n genesis_contracts AS (\n SELECT\n contract_address AS address,\n 0 AS created_block_number,\n '1970-01-01 00:00:00' AS created_block_timestamp,\n 'GENESIS' AS created_tx_hash,\n 'GENESIS' AS creator_address,\n {{ dbt_utils.generate_surrogate_key(\n ['contract_address']\n ) }} AS created_contracts_id,\n max_inserted_timestamp_logs AS inserted_timestamp,\n max_inserted_timestamp_logs AS modified_timestamp\n FROM\n {{ ref('silver__relevant_contracts') }}\n r\n WHERE\n total_event_count > 0\n AND NOT EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__created_contracts') }} C\n WHERE\n r.contract_address = C.created_contract_address\n )\n\n{% if is_incremental() %}\nAND max_inserted_timestamp_logs > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP)\n FROM\n {{ this }})\n {% endif %}\n),\ncombined AS (\n SELECT\n address,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n created_contracts_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n created_contracts\n UNION ALL\n SELECT\n address,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n created_contracts_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n genesis_contracts\n),\nnew_contracts AS (\n SELECT\n address,\n c1.token_symbol AS symbol,\n c1.token_name AS NAME,\n c1.token_decimals AS decimals,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n COALESCE (\n c0.created_contracts_id,\n {{ dbt_utils.generate_surrogate_key(\n ['c0.address']\n ) }}\n ) AS dim_contracts_id,\n GREATEST(COALESCE(c0.inserted_timestamp, '2000-01-01'), COALESCE(c1.inserted_timestamp, '2000-01-01')) AS inserted_timestamp,\n GREATEST(COALESCE(c0.modified_timestamp, '2000-01-01'), COALESCE(c1.modified_timestamp, '2000-01-01')) AS modified_timestamp,\n 1 AS priority\n FROM\n combined c0\n LEFT JOIN {{ ref('silver__contracts') }}\n c1\n ON LOWER(\n c0.address\n ) = LOWER(\n c1.contract_address\n )\n)\n\n{% if is_incremental() %},\nmetadata_heal AS (\n SELECT\n address,\n C.token_symbol AS symbol,\n C.token_name AS NAME,\n C.token_decimals AS decimals,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n dim_contracts_id,\n GREATEST(COALESCE(t.inserted_timestamp, '2000-01-01'), COALESCE(C.inserted_timestamp, '2000-01-01')) AS inserted_timestamp,\n GREATEST(COALESCE(t.modified_timestamp, '2000-01-01'), COALESCE(C.modified_timestamp, '2000-01-01')) AS modified_timestamp,\n 2 AS priority\n FROM\n {{ this }}\n t\n INNER JOIN {{ ref('silver__contracts') }} C\n ON LOWER(\n t.address\n ) = LOWER(\n C.contract_address\n )\n WHERE\n C.inserted_timestamp > (\n SELECT\n MAX(inserted_timestamp)\n FROM\n {{ this }}\n )\n AND (\n t.symbol IS NULL\n OR t.name IS NULL\n OR t.decimals IS NULL\n )\n)\n{% endif %},\nFINAL AS (\n SELECT\n address,\n symbol,\n NAME,\n decimals,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n dim_contracts_id,\n inserted_timestamp,\n modified_timestamp,\n priority\n FROM\n new_contracts\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n address,\n symbol,\n NAME,\n decimals,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n dim_contracts_id,\n inserted_timestamp,\n modified_timestamp,\n priority\nFROM\n metadata_heal\n{% endif %}\n)\nSELECT\n address,\n symbol,\n NAME,\n decimals,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n dim_contracts_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n FINAL qualify ROW_NUMBER() over (\n PARTITION BY address\n ORDER BY\n priority ASC,\n modified_timestamp DESC\n ) = 1\n*/\n\n\nWITH created_contracts AS (\n\n SELECT\n created_contract_address AS address,\n block_number AS created_block_number,\n block_timestamp AS created_block_timestamp,\n tx_hash AS created_tx_hash,\n creator_address AS creator_address,\n created_contracts_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n polygon.silver.created_contracts\n\n\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP)\n FROM\n polygon.core.dim_contracts)\n \n ),\n genesis_contracts AS (\n SELECT\n contract_address AS address,\n 0 AS created_block_number,\n '1970-01-01 00:00:00' AS created_block_timestamp,\n 'GENESIS' AS created_tx_hash,\n 'GENESIS' AS creator_address,\n \n \nmd5(cast(coalesce(cast(contract_address as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS created_contracts_id,\n max_inserted_timestamp_logs AS inserted_timestamp,\n max_inserted_timestamp_logs AS modified_timestamp\n FROM\n polygon.silver.relevant_contracts\n r\n WHERE\n total_event_count > 0\n AND NOT EXISTS (\n SELECT\n 1\n FROM\n polygon.silver.created_contracts C\n WHERE\n r.contract_address = C.created_contract_address\n )\n\n\nAND max_inserted_timestamp_logs > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP)\n FROM\n polygon.core.dim_contracts)\n \n),\ncombined AS (\n SELECT\n address,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n created_contracts_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n created_contracts\n UNION ALL\n SELECT\n address,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n created_contracts_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n genesis_contracts\n),\nnew_contracts AS (\n SELECT\n address,\n c1.token_symbol AS symbol,\n c1.token_name AS NAME,\n c1.token_decimals AS decimals,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n COALESCE (\n c0.created_contracts_id,\n \n \nmd5(cast(coalesce(cast(c0.address as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT))\n ) AS dim_contracts_id,\n GREATEST(COALESCE(c0.inserted_timestamp, '2000-01-01'), COALESCE(c1.inserted_timestamp, '2000-01-01')) AS inserted_timestamp,\n GREATEST(COALESCE(c0.modified_timestamp, '2000-01-01'), COALESCE(c1.modified_timestamp, '2000-01-01')) AS modified_timestamp,\n 1 AS priority\n FROM\n combined c0\n LEFT JOIN polygon.silver.contracts\n c1\n ON LOWER(\n c0.address\n ) = LOWER(\n c1.contract_address\n )\n)\n\n,\nmetadata_heal AS (\n SELECT\n address,\n C.token_symbol AS symbol,\n C.token_name AS NAME,\n C.token_decimals AS decimals,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n dim_contracts_id,\n GREATEST(COALESCE(t.inserted_timestamp, '2000-01-01'), COALESCE(C.inserted_timestamp, '2000-01-01')) AS inserted_timestamp,\n GREATEST(COALESCE(t.modified_timestamp, '2000-01-01'), COALESCE(C.modified_timestamp, '2000-01-01')) AS modified_timestamp,\n 2 AS priority\n FROM\n polygon.core.dim_contracts\n t\n INNER JOIN polygon.silver.contracts C\n ON LOWER(\n t.address\n ) = LOWER(\n C.contract_address\n )\n WHERE\n C.inserted_timestamp > (\n SELECT\n MAX(inserted_timestamp)\n FROM\n polygon.core.dim_contracts\n )\n AND (\n t.symbol IS NULL\n OR t.name IS NULL\n OR t.decimals IS NULL\n )\n)\n,\nFINAL AS (\n SELECT\n address,\n symbol,\n NAME,\n decimals,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n dim_contracts_id,\n inserted_timestamp,\n modified_timestamp,\n priority\n FROM\n new_contracts\n\n\nUNION ALL\nSELECT\n address,\n symbol,\n NAME,\n decimals,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n dim_contracts_id,\n inserted_timestamp,\n modified_timestamp,\n priority\nFROM\n metadata_heal\n\n)\nSELECT\n address,\n symbol,\n NAME,\n decimals,\n created_block_number,\n created_block_timestamp,\n created_tx_hash,\n creator_address,\n dim_contracts_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n FINAL qualify ROW_NUMBER() over (\n PARTITION BY address\n ORDER BY\n priority ASC,\n modified_timestamp DESC\n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.core__fact_event_logs": {"database": "polygon", "schema": "core", "name": "core__fact_event_logs", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/core__fact_event_logs.sql", "original_file_path": "models/main_package/core/gold/core__fact_event_logs.sql", "unique_id": "model.fsc_evm.core__fact_event_logs", "fqn": ["fsc_evm", "main_package", "core", "gold", "core__fact_event_logs"], "alias": "fact_event_logs", "checksum": {"name": "sha256", "checksum": "710a1560829930c8046b0013f4fe47450e6f5d2226e1b9d172aeab4a6125efa5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "core", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_number,tx_hash,contract_address,origin_from_address,origin_to_address,origin_function_signature,topic_0)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "incremental_predicates": ["polygon.\n \n core.\n \n fact_event_logs.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n core.\n \n fact_event_logs__dbt_tmp\n )"]}, "tags": ["gold", "core", "phase_2"], "description": "## What\n\nThis table contains raw event logs emitted by smart contracts during transaction execution. Each row represents a single event with its topics and data. Events are the primary mechanism for smart contracts to communicate state changes and must be explicitly emitted in contract code.\n\n## Key Use Cases\n\n- Tracking raw blockchain events before decoding\n- Filtering events by signature (topic_0) for specific event types\n- Analyzing contract activity patterns and event frequencies\n- Building custom event decoders for unsupported contracts\n- Monitoring specific addresses via indexed parameters\n\n## Important Relationships\n\n- **Join with ez_decoded_event_logs**: Use `tx_hash` and `event_index` for simplified decoded data\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Join with dim_contracts**: Use `contract_address` for contract metadata\n\n## Commonly-used Fields\n\n- `topic_0`: Event signature hash for filtering event types\n- `contract_address`: Smart contract that emitted the event\n- `topics`: Array of indexed parameters (max 4)\n- `data`: Hex-encoded non-indexed parameters\n- `event_index`: Sequential position within transaction\n- `tx_hash`: Transaction containing this event\n\n## Sample queries\n\n```sql\n-- Find all ERC-20 Transfer events in last 24 hours\nSELECT \n block_timestamp,\n tx_hash,\n contract_address,\n topics[1] AS from_address_padded,\n topics[2] AS to_address_padded,\n data AS amount_hex,\n event_index\nFROM .core.fact_event_logs\nWHERE topic_0 = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND ARRAY_SIZE(topics) = 3 -- ERC-20 has 3 topics\n AND block_timestamp >= CURRENT_DATE - 1\nLIMIT 100;\n\n-- Most active contracts by event count\nSELECT \n contract_address,\n COUNT(*) AS event_count,\n COUNT(DISTINCT tx_hash) AS unique_txs,\n COUNT(DISTINCT topic_0) AS unique_event_types,\n MIN(block_timestamp) AS first_seen,\n MAX(block_timestamp) AS last_seen\nFROM .core.fact_event_logs\nWHERE block_timestamp >= CURRENT_DATE - 7\nGROUP BY 1\nORDER BY 2 DESC\nLIMIT 50;\n\n-- Event patterns within transactions\nSELECT \n tx_hash,\n COUNT(*) AS events_in_tx,\n COUNT(DISTINCT contract_address) AS contracts_touched,\n ARRAY_AGG(DISTINCT topic_0) AS event_signatures\nFROM .core.fact_event_logs\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1\nHAVING COUNT(*) > 10\nORDER BY 2 DESC\nLIMIT 20;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPICS": {"name": "TOPICS", "description": "Array containing all indexed parameters of the event.\n\nExample: ['0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', '0x0000000000000000000000001234567890123456789012345678901234567890']", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPIC_0": {"name": "TOPIC_0", "description": "Event signature hash - keccak256 of the event declaration.\n\nExample: '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPIC_1": {"name": "TOPIC_1", "description": "First indexed parameter of the event (if exists).\n\nExample: '0x0000000000000000000000001234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPIC_2": {"name": "TOPIC_2", "description": "Second indexed parameter of the event (if exists).\n\nExample: '0x000000000000000000000000abcdefabcdefabcdefabcdefabcdefabcdefabcd'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPIC_3": {"name": "TOPIC_3", "description": "Third indexed parameter of the event (if exists).\n\nExample: '0x0000000000000000000000000000000000000000000000000000000000000001'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DATA": {"name": "DATA", "description": "Hex-encoded non-indexed event parameters.\n\nExample: '0x0000000000000000000000000000000000000000000000000de0b6b3a7640000'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_REMOVED": {"name": "EVENT_REMOVED", "description": "Boolean flag indicating if the event was removed due to chain reorganization.\n\nExample: false", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Boolean indicator of transaction success.\n\n**Values**:\n- TRUE: Transaction executed successfully\n- FALSE: Transaction failed/reverted", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FACT_EVENT_LOGS_ID": {"name": "FACT_EVENT_LOGS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/core__fact_event_logs.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "incremental_predicates": ["polygon.\n \n core.\n \n fact_event_logs.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n core.\n \n fact_event_logs__dbt_tmp\n )"], "full_refresh": false, "tags": ["gold", "core", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018438.6526368, "relation_name": "polygon.core.fact_event_logs", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = vars.MAIN_CORE_GOLD_FACT_EVENT_LOGS_UNIQUE_KEY,\n cluster_by = ['block_timestamp::DATE'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_number,tx_hash,contract_address,origin_from_address,origin_to_address,origin_function_signature,topic_0)\",\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n tags = ['gold','core','phase_2']\n) }}\n\nWITH base AS (\n\n SELECT\n block_number,\n {% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n tx_hash,\n {% else %}\n receipts_json :transactionHash :: STRING AS tx_hash,\n array_index,\n {% endif %}\n receipts_json :from :: STRING AS origin_from_address,\n receipts_json :to :: STRING AS origin_to_address,\n CASE\n WHEN receipts_json :status :: STRING = '0x1' THEN TRUE\n WHEN receipts_json :status :: STRING = '0x0' THEN FALSE\n ELSE NULL\n END AS tx_succeeded,\n receipts_json :logs AS full_logs\n FROM\n {{ ref('silver__receipts') }}\n WHERE\n ARRAY_SIZE(receipts_json :logs) > 0\n {% if is_incremental() %}\n AND modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }})\n {% endif %}\n),\nrelevant_transactions AS (\n SELECT \n block_number,\n tx_hash,\n block_timestamp,\n tx_position,\n origin_function_signature\n FROM {{ ref('core__fact_transactions') }}\n WHERE 1=1\n {% if is_incremental() %}\n AND block_timestamp >= (\n SELECT\n DATEADD('hour', -24, MAX(block_timestamp))\n FROM\n {{ this }}\n )\n {% endif %}\n),\nflattened_logs AS (\n SELECT\n b.block_number,\n b.tx_hash,\n b.origin_from_address,\n b.origin_to_address,\n b.tx_succeeded,\n {% if not vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n b.array_index,\n {% endif %}\n VALUE :address :: STRING AS contract_address,\n VALUE :blockHash :: STRING AS block_hash,\n VALUE :blockNumber :: STRING AS block_number_hex,\n VALUE :data :: STRING AS DATA,\n utils.udf_hex_to_int(\n VALUE :logIndex :: STRING\n ) :: INT AS event_index,\n COALESCE(VALUE :removed :: BOOLEAN, FALSE) AS event_removed,\n VALUE :topics AS topics,\n topics [0] :: STRING AS topic_0,\n topics [1] :: STRING AS topic_1,\n topics [2] :: STRING AS topic_2,\n topics [3] :: STRING AS topic_3,\n VALUE :transactionHash :: STRING AS transaction_hash,\n utils.udf_hex_to_int(\n VALUE :transactionIndex :: STRING\n ) :: INT AS transaction_index\n FROM\n base b,\n LATERAL FLATTEN (\n input => full_logs\n )\n),\nmaterialized_logs AS (\n SELECT \n block_number,\n tx_hash,\n origin_from_address,\n origin_to_address,\n tx_succeeded,\n {% if not vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n array_index,\n {% endif %}\n contract_address,\n block_hash,\n block_number_hex,\n DATA,\n event_index,\n event_removed,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n transaction_hash,\n transaction_index\n FROM flattened_logs\n),\nnew_logs AS (\n SELECT\n l.block_number,\n txs.block_timestamp,\n l.tx_hash,\n COALESCE(txs.tx_position, l.transaction_index) AS tx_position,\n l.event_index,\n l.contract_address,\n l.topics,\n l.topic_0,\n l.topic_1,\n l.topic_2,\n l.topic_3,\n l.data,\n l.event_removed,\n l.origin_from_address,\n l.origin_to_address,\n txs.origin_function_signature,\n l.tx_succeeded\n FROM\n materialized_logs l\n LEFT JOIN relevant_transactions txs\n ON l.block_number = txs.block_number\n {% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n AND l.tx_hash = txs.tx_hash\n {% else %}\n AND l.array_index = txs.tx_position\n {% endif %}\n)\n\n{% if is_incremental() %},\nmissing_data AS (\n SELECT\n t.block_number,\n txs.block_timestamp AS block_timestamp_heal,\n t.tx_hash,\n t.tx_position,\n t.event_index,\n t.contract_address,\n t.topics,\n t.topic_0,\n t.topic_1,\n t.topic_2,\n t.topic_3,\n t.data,\n t.event_removed,\n t.origin_from_address,\n t.origin_to_address,\n txs.origin_function_signature AS origin_function_signature_heal,\n t.tx_succeeded\n FROM\n {{ this }}\n t\n LEFT JOIN {{ ref('core__fact_transactions') }}\n txs\n ON t.tx_hash = txs.tx_hash\n AND t.block_number = txs.block_number\n WHERE\n t.block_timestamp IS NULL\n OR t.origin_function_signature IS NULL\n)\n{% endif %},\nall_logs AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded\n FROM\n new_logs\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp_heal AS block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature_heal AS origin_function_signature,\n tx_succeeded\nFROM\n missing_data\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n {{ dbt_utils.generate_surrogate_key(['tx_hash','event_index']) }} AS fact_event_logs_id,\n {% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n {% else %}\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS inserted_timestamp,\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS modified_timestamp\n {% endif %}\nFROM\n all_logs \nqualify ROW_NUMBER() over (\n PARTITION BY fact_event_logs_id\n ORDER BY\n {% if vars.GLOBAL_PROJECT_NAME == 'monad' %}\n tx_succeeded DESC nulls last,\n block_number DESC,\n block_timestamp DESC nulls last\n {% else %}\n block_number DESC,\n block_timestamp DESC nulls last,\n origin_function_signature DESC nulls last\n {% endif %}\n ) = 1", "language": "sql", "refs": [{"name": "silver__receipts", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.standard_predicate", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__receipts", "model.fsc_evm.core__fact_transactions"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/core__fact_event_logs.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"polygon.\\n \\n core.\\n \\n fact_event_logs.block_number \\u003e= (\\n SELECT\\n MIN(\\n block_number\\n )\\n FROM\\n polygon.\\n \\n core.\\n \\n fact_event_logs__dbt_tmp\\n )\"\n ],\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_number,tx_hash,contract_address,origin_from_address,origin_to_address,origin_function_signature,topic_0)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"core\",\n \"phase_2\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = vars.MAIN_CORE_GOLD_FACT_EVENT_LOGS_UNIQUE_KEY,\n cluster_by = ['block_timestamp::DATE'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_number,tx_hash,contract_address,origin_from_address,origin_to_address,origin_function_signature,topic_0)\",\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n tags = ['gold','core','phase_2']\n) }}\n\nWITH base AS (\n\n SELECT\n block_number,\n {% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n tx_hash,\n {% else %}\n receipts_json :transactionHash :: STRING AS tx_hash,\n array_index,\n {% endif %}\n receipts_json :from :: STRING AS origin_from_address,\n receipts_json :to :: STRING AS origin_to_address,\n CASE\n WHEN receipts_json :status :: STRING = '0x1' THEN TRUE\n WHEN receipts_json :status :: STRING = '0x0' THEN FALSE\n ELSE NULL\n END AS tx_succeeded,\n receipts_json :logs AS full_logs\n FROM\n {{ ref('silver__receipts') }}\n WHERE\n ARRAY_SIZE(receipts_json :logs) > 0\n {% if is_incremental() %}\n AND modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }})\n {% endif %}\n),\nrelevant_transactions AS (\n SELECT \n block_number,\n tx_hash,\n block_timestamp,\n tx_position,\n origin_function_signature\n FROM {{ ref('core__fact_transactions') }}\n WHERE 1=1\n {% if is_incremental() %}\n AND block_timestamp >= (\n SELECT\n DATEADD('hour', -24, MAX(block_timestamp))\n FROM\n {{ this }}\n )\n {% endif %}\n),\nflattened_logs AS (\n SELECT\n b.block_number,\n b.tx_hash,\n b.origin_from_address,\n b.origin_to_address,\n b.tx_succeeded,\n {% if not vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n b.array_index,\n {% endif %}\n VALUE :address :: STRING AS contract_address,\n VALUE :blockHash :: STRING AS block_hash,\n VALUE :blockNumber :: STRING AS block_number_hex,\n VALUE :data :: STRING AS DATA,\n utils.udf_hex_to_int(\n VALUE :logIndex :: STRING\n ) :: INT AS event_index,\n COALESCE(VALUE :removed :: BOOLEAN, FALSE) AS event_removed,\n VALUE :topics AS topics,\n topics [0] :: STRING AS topic_0,\n topics [1] :: STRING AS topic_1,\n topics [2] :: STRING AS topic_2,\n topics [3] :: STRING AS topic_3,\n VALUE :transactionHash :: STRING AS transaction_hash,\n utils.udf_hex_to_int(\n VALUE :transactionIndex :: STRING\n ) :: INT AS transaction_index\n FROM\n base b,\n LATERAL FLATTEN (\n input => full_logs\n )\n),\nmaterialized_logs AS (\n SELECT \n block_number,\n tx_hash,\n origin_from_address,\n origin_to_address,\n tx_succeeded,\n {% if not vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n array_index,\n {% endif %}\n contract_address,\n block_hash,\n block_number_hex,\n DATA,\n event_index,\n event_removed,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n transaction_hash,\n transaction_index\n FROM flattened_logs\n),\nnew_logs AS (\n SELECT\n l.block_number,\n txs.block_timestamp,\n l.tx_hash,\n COALESCE(txs.tx_position, l.transaction_index) AS tx_position,\n l.event_index,\n l.contract_address,\n l.topics,\n l.topic_0,\n l.topic_1,\n l.topic_2,\n l.topic_3,\n l.data,\n l.event_removed,\n l.origin_from_address,\n l.origin_to_address,\n txs.origin_function_signature,\n l.tx_succeeded\n FROM\n materialized_logs l\n LEFT JOIN relevant_transactions txs\n ON l.block_number = txs.block_number\n {% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n AND l.tx_hash = txs.tx_hash\n {% else %}\n AND l.array_index = txs.tx_position\n {% endif %}\n)\n\n{% if is_incremental() %},\nmissing_data AS (\n SELECT\n t.block_number,\n txs.block_timestamp AS block_timestamp_heal,\n t.tx_hash,\n t.tx_position,\n t.event_index,\n t.contract_address,\n t.topics,\n t.topic_0,\n t.topic_1,\n t.topic_2,\n t.topic_3,\n t.data,\n t.event_removed,\n t.origin_from_address,\n t.origin_to_address,\n txs.origin_function_signature AS origin_function_signature_heal,\n t.tx_succeeded\n FROM\n {{ this }}\n t\n LEFT JOIN {{ ref('core__fact_transactions') }}\n txs\n ON t.tx_hash = txs.tx_hash\n AND t.block_number = txs.block_number\n WHERE\n t.block_timestamp IS NULL\n OR t.origin_function_signature IS NULL\n)\n{% endif %},\nall_logs AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded\n FROM\n new_logs\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp_heal AS block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature_heal AS origin_function_signature,\n tx_succeeded\nFROM\n missing_data\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n {{ dbt_utils.generate_surrogate_key(['tx_hash','event_index']) }} AS fact_event_logs_id,\n {% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n {% else %}\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS inserted_timestamp,\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS modified_timestamp\n {% endif %}\nFROM\n all_logs \nqualify ROW_NUMBER() over (\n PARTITION BY fact_event_logs_id\n ORDER BY\n {% if vars.GLOBAL_PROJECT_NAME == 'monad' %}\n tx_succeeded DESC nulls last,\n block_number DESC,\n block_timestamp DESC nulls last\n {% else %}\n block_number DESC,\n block_timestamp DESC nulls last,\n origin_function_signature DESC nulls last\n {% endif %}\n ) = 1\n*/\n\n\n\nWITH base AS (\n\n SELECT\n block_number,\n \n receipts_json :transactionHash :: STRING AS tx_hash,\n array_index,\n \n receipts_json :from :: STRING AS origin_from_address,\n receipts_json :to :: STRING AS origin_to_address,\n CASE\n WHEN receipts_json :status :: STRING = '0x1' THEN TRUE\n WHEN receipts_json :status :: STRING = '0x0' THEN FALSE\n ELSE NULL\n END AS tx_succeeded,\n receipts_json :logs AS full_logs\n FROM\n polygon.silver.receipts\n WHERE\n ARRAY_SIZE(receipts_json :logs) > 0\n \n AND modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n polygon.core.fact_event_logs)\n \n),\nrelevant_transactions AS (\n SELECT \n block_number,\n tx_hash,\n block_timestamp,\n tx_position,\n origin_function_signature\n FROM polygon.core.fact_transactions\n WHERE 1=1\n \n AND block_timestamp >= (\n SELECT\n DATEADD('hour', -24, MAX(block_timestamp))\n FROM\n polygon.core.fact_event_logs\n )\n \n),\nflattened_logs AS (\n SELECT\n b.block_number,\n b.tx_hash,\n b.origin_from_address,\n b.origin_to_address,\n b.tx_succeeded,\n \n b.array_index,\n \n VALUE :address :: STRING AS contract_address,\n VALUE :blockHash :: STRING AS block_hash,\n VALUE :blockNumber :: STRING AS block_number_hex,\n VALUE :data :: STRING AS DATA,\n utils.udf_hex_to_int(\n VALUE :logIndex :: STRING\n ) :: INT AS event_index,\n COALESCE(VALUE :removed :: BOOLEAN, FALSE) AS event_removed,\n VALUE :topics AS topics,\n topics [0] :: STRING AS topic_0,\n topics [1] :: STRING AS topic_1,\n topics [2] :: STRING AS topic_2,\n topics [3] :: STRING AS topic_3,\n VALUE :transactionHash :: STRING AS transaction_hash,\n utils.udf_hex_to_int(\n VALUE :transactionIndex :: STRING\n ) :: INT AS transaction_index\n FROM\n base b,\n LATERAL FLATTEN (\n input => full_logs\n )\n),\nmaterialized_logs AS (\n SELECT \n block_number,\n tx_hash,\n origin_from_address,\n origin_to_address,\n tx_succeeded,\n \n array_index,\n \n contract_address,\n block_hash,\n block_number_hex,\n DATA,\n event_index,\n event_removed,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n transaction_hash,\n transaction_index\n FROM flattened_logs\n),\nnew_logs AS (\n SELECT\n l.block_number,\n txs.block_timestamp,\n l.tx_hash,\n COALESCE(txs.tx_position, l.transaction_index) AS tx_position,\n l.event_index,\n l.contract_address,\n l.topics,\n l.topic_0,\n l.topic_1,\n l.topic_2,\n l.topic_3,\n l.data,\n l.event_removed,\n l.origin_from_address,\n l.origin_to_address,\n txs.origin_function_signature,\n l.tx_succeeded\n FROM\n materialized_logs l\n LEFT JOIN relevant_transactions txs\n ON l.block_number = txs.block_number\n \n AND l.array_index = txs.tx_position\n \n)\n\n,\nmissing_data AS (\n SELECT\n t.block_number,\n txs.block_timestamp AS block_timestamp_heal,\n t.tx_hash,\n t.tx_position,\n t.event_index,\n t.contract_address,\n t.topics,\n t.topic_0,\n t.topic_1,\n t.topic_2,\n t.topic_3,\n t.data,\n t.event_removed,\n t.origin_from_address,\n t.origin_to_address,\n txs.origin_function_signature AS origin_function_signature_heal,\n t.tx_succeeded\n FROM\n polygon.core.fact_event_logs\n t\n LEFT JOIN polygon.core.fact_transactions\n txs\n ON t.tx_hash = txs.tx_hash\n AND t.block_number = txs.block_number\n WHERE\n t.block_timestamp IS NULL\n OR t.origin_function_signature IS NULL\n)\n,\nall_logs AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded\n FROM\n new_logs\n\n\nUNION ALL\nSELECT\n block_number,\n block_timestamp_heal AS block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature_heal AS origin_function_signature,\n tx_succeeded\nFROM\n missing_data\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n contract_address,\n topics,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n event_removed,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_succeeded,\n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(event_index as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS fact_event_logs_id,\n \n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n \nFROM\n all_logs \nqualify ROW_NUMBER() over (\n PARTITION BY fact_event_logs_id\n ORDER BY\n \n block_number DESC,\n block_timestamp DESC nulls last,\n origin_function_signature DESC nulls last\n \n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.core__fact_transactions": {"database": "polygon", "schema": "core", "name": "core__fact_transactions", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/core__fact_transactions.sql", "original_file_path": "models/main_package/core/gold/core__fact_transactions.sql", "unique_id": "model.fsc_evm.core__fact_transactions", "fqn": ["fsc_evm", "main_package", "core", "gold", "core__fact_transactions"], "alias": "fact_transactions", "checksum": {"name": "sha256", "checksum": "a82ffab75f19059bbba89ec4a2802009e8178d11e873f11abd62f22aaed733c8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "core", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_number,tx_hash,from_address,to_address,origin_function_signature)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "incremental_predicates": ["polygon.\n \n core.\n \n fact_transactions.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n core.\n \n fact_transactions__dbt_tmp\n )"]}, "tags": ["gold", "core", "phase_2"], "description": "## What\n\nThis table contains comprehensive transaction-level data for EVM blockchains. Each row represents a single transaction with its execution details, gas consumption, and value transfers. This is a high-level table for analyzing on-chain activity, user behavior, and protocol interactions.\n\n## Key Use Cases\n\n- Tracking wallet activity and transaction patterns\n- Analyzing gas fee trends and optimization opportunities\n- Monitoring smart contract interactions and usage\n- Calculating transaction volumes and network revenue\n- Detecting MEV, arbitrage, and trading patterns\n\n## Important Relationships\n\n- **Join with fact_blocks**: Use `block_number` for block-level context\n- **Join with fact_traces**: Use `tx_hash` for internal transactions\n- **Join with fact_event_logs**: Use `tx_hash` for emitted events\n- **Join with ez_decoded_event_logs**: Use `tx_hash` for human-readable events\n- **Join with dim_contracts**: Use `to_address` for contract metadata\n\n## Commonly-used Fields\n\n- `tx_hash`: Unique transaction identifier\n- `from_address`: Transaction sender\n- `to_address`: Transaction recipient\n- `value`: Native token amount transferred\n- `gas_used`: Actual gas consumed\n- `gas_price`: Price per gas unit\n- `tx_fee`: Total transaction fee in native tokens\n- `block_timestamp`: When transaction was included\n\n## Sample queries\n\n```sql\n-- Daily transaction statistics by type\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n tx_type,\n COUNT(*) AS tx_count,\n COUNT(DISTINCT from_address) AS unique_senders,\n SUM(tx_fee) AS total_fees_native,\n AVG(gas_used) AS avg_gas_used,\n PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY gas_price) AS median_gas_price\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1, 2\nORDER BY 1 DESC, 3 DESC;\n\n-- High-value native token transfers\nSELECT \n tx_hash,\n block_timestamp,\n from_address,\n to_address,\n value,\n tx_fee,\n gas_used * gas_price / 1e9 AS gas_cost_gwei\nFROM .core.fact_transactions\nWHERE value > 0\n AND tx_succeeded\n AND block_timestamp >= CURRENT_DATE - 7\nORDER BY value DESC\nLIMIT 100;\n\n-- Smart contract interaction patterns\nSELECT \n to_address,\n origin_function_signature,\n COUNT(*) AS interaction_count,\n COUNT(DISTINCT from_address) AS unique_users,\n SUM(tx_fee) AS total_fees_paid\nFROM .core.fact_transactions\nWHERE to_address IN (SELECT address FROM dim_contracts)\n AND block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2\nORDER BY 3 DESC\nLIMIT 50;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE": {"name": "VALUE", "description": "Amount of native tokens transferred, in token units (not Wei).\n\n**Key Points**:\n- 0 for most contract interactions\n- >0 for native token transfers or payable functions\n- Already converted from Wei (divided by 1e18)\n- Use value_precise for exact amounts\n\n**Example Query**:\n```sql\n-- Daily native token transfer volume\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n SUM(value) AS total_transferred,\n COUNT(*) AS transfer_count\nFROM .core.fact_transactions\nWHERE value > 0 AND tx_succeeded\nGROUP BY 1;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE_PRECISE_RAW": {"name": "VALUE_PRECISE_RAW", "description": "String representation of numeric values preserving exact precision without any adjustments.\n\n**Format**: VARCHAR containing numeric string\n**Purpose**: Prevents floating-point precision loss due to snowflake limitations\n**Contains**: Raw blockchain values (usually in smallest unit)\n\n**Example Values**:\n- \"1000000000000000000\" = 1 ETH in Wei\n- \"50000000\" = 50 USDC (6 decimals)\n\n**Usage**:\n```sql\n-- Exact value comparisons\nWHERE value_precise_raw = '1000000000000000000'\n\n-- Conversion with precision\nCAST(value_precise_raw AS NUMERIC(38,0)) / POW(10, 18) AS value_decimal\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE_PRECISE": {"name": "VALUE_PRECISE", "description": "String representation of numeric values adjusted for human readability while maintaining precision.\n\n**Format**: VARCHAR containing decimal string\n**Adjustments**: Converted from smallest unit to standard unit\n**Purpose**: Human-readable values without precision loss\n\n**Example Values**:\n- \"1.0\" = 1 ETH (converted from Wei)\n- \"50.0\" = 50 USDC (converted from 6 decimal places)\n\n**Best Practices**:\n```sql\n-- Safe numeric operations\nCAST(value_precise AS NUMERIC(38,18))\n\n-- Filtering large values\nWHERE CAST(value_precise AS NUMERIC(38,18)) > 1000\n\n-- Aggregations\nSUM(CAST(value_precise AS NUMERIC(38,18))) AS total_value\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_FEE": {"name": "TX_FEE", "description": "Total fee paid for transaction execution in native token units.\n\nExample: 0.002", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_FEE_PRECISE": {"name": "TX_FEE_PRECISE", "description": "Exact transaction fee as string to prevent floating-point precision loss.\n\nExample: '0.002345678901234567'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Boolean indicator of transaction success.\n\n**Values**:\n- TRUE: Transaction executed successfully\n- FALSE: Transaction failed/reverted", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_TYPE": {"name": "TX_TYPE", "description": "Transaction envelope type (EIP-2718).\n\nExample: 2", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMEBOOSTED": {"name": "TIMEBOOSTED", "description": "Arbitrum-specific priority transaction flag.\n\nExample: false", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NONCE": {"name": "NONCE", "description": "Sequential counter of transactions sent by the from_address.\n\nExample: 42", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INPUT_DATA": {"name": "INPUT_DATA", "description": "Encoded data sent with the transaction, containing function calls and parameters.\n\nExample: '0xa9059cbb0000000000000000000000001234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_PRICE": {"name": "GAS_PRICE", "description": "Price per gas unit in Gwei (1 Gwei = 1e-9 native token).\n\nExample: 25", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "Actual gas units consumed by transaction execution.\n\nExample: 89234", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_LIMIT": {"name": "GAS_LIMIT", "description": "Maximum gas units the sender is willing to consume for this transaction.\n\nExample: 150000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CUMULATIVE_GAS_USED": {"name": "CUMULATIVE_GAS_USED", "description": "Running total of gas consumed by all transactions up to and including this transaction within the block.\n\nExample: 1234567", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EFFECTIVE_GAS_PRICE": {"name": "EFFECTIVE_GAS_PRICE", "description": "Actual price paid per gas unit for EIP-1559 transactions, in Gwei.\n\nExample: 23.5", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "R": {"name": "R", "description": "R component of ECDSA signature (32 bytes).\n\nExample: '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "S": {"name": "S", "description": "S component of ECDSA signature (32 bytes).\n\nExample: '0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "V": {"name": "V", "description": "Recovery identifier for ECDSA signature.\n\nExample: 27", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ETH_VALUE": {"name": "ETH_VALUE", "description": "ETH value for cross-chain transactions on L2s.\n\nExample: 0.5", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MINT": {"name": "MINT", "description": "Minting event data for special transactions.\n\nExample: null", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SOURCE_HASH": {"name": "SOURCE_HASH", "description": "Hash linking L2 transactions to their L1 origin.\n\nExample: '0x9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MAX_FEE_PER_GAS": {"name": "MAX_FEE_PER_GAS", "description": "Maximum total fee per gas unit sender is willing to pay (EIP-1559), in Gwei.\n\nExample: 50", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MAX_PRIORITY_FEE_PER_GAS": {"name": "MAX_PRIORITY_FEE_PER_GAS", "description": "Maximum tip per gas unit for validator (EIP-1559), in Gwei.\n\nExample: 2", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_FEE": {"name": "L1_FEE", "description": "The L1 portion of fees paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_FEE_PRECISE_RAW": {"name": "L1_FEE_PRECISE_RAW", "description": "Raw L1 data availability fee for L2 transactions, in Gwei.\n\nExample: 123456789", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_FEE_PRECISE": {"name": "L1_FEE_PRECISE", "description": "Formatted L1 fee for L2 transactions, in native token units.\n\nExample: '0.000123456789'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_FEE_SCALAR": {"name": "L1_FEE_SCALAR", "description": "This value covers the change in L1 gas price between the time the transaction is submitted and when it is published from the OP stack L2 chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_GAS_PRICE": {"name": "L1_GAS_PRICE", "description": "The gas price for L1 transactions when the transaction was processed from the OP stack L2 chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_GAS_USED": {"name": "L1_GAS_USED", "description": "The gas used on L1 to publish the transaction from the OP stack L2 chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "Y_PARITY": {"name": "Y_PARITY", "description": "Y coordinate parity for signature recovery (EIP-2098).\n\nExample: 1", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ACCESS_LIST": {"name": "ACCESS_LIST", "description": "Array of addresses and storage keys for optimized gas costs (EIP-2930).\n\nExample: [{\"address\": \"0x123...\", \"storageKeys\": [\"0x456...\"]}]", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AUTHORIZATION_LIST": {"name": "AUTHORIZATION_LIST", "description": "EIP-7702 authorization entries for EOA delegation.\n\nExample: []", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_RATIO": {"name": "TOKEN_RATIO", "description": "ETH/MNT price ratio for Mantle network fee calculations.\n\nExample: 1.5", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_BASE_FEE_SCALAR": {"name": "L1_BASE_FEE_SCALAR", "description": "Multiplier for L1 base fee in L2 fee calculation.\n\nExample: 1500", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_BLOB_BASE_FEE": {"name": "L1_BLOB_BASE_FEE", "description": "L1 blob base fee at time of L2 transaction.\n\nExample: 1", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_BLOB_BASE_FEE_SCALAR": {"name": "L1_BLOB_BASE_FEE_SCALAR", "description": "Multiplier for blob base fee in L2 calculations.\n\nExample: 1000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "OPERATOR_FEE_SCALAR": {"name": "OPERATOR_FEE_SCALAR", "description": "OP Stack operator fee multiplier.\n\nExample: 100", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "OPERATOR_FEE_CONSTANT": {"name": "OPERATOR_FEE_CONSTANT", "description": "OP Stack fixed operator fee component.\n\nExample: 0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOB_VERSIONED_HASHES": {"name": "BLOB_VERSIONED_HASHES", "description": "Array of blob commitment hashes for EIP-4844 transactions.\n\nExample: ['0x01234567890abcdef1234567890abcdef1234567890abcdef1234567890abcd']", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MAX_FEE_PER_BLOB_GAS": {"name": "MAX_FEE_PER_BLOB_GAS", "description": "Maximum price sender will pay per blob gas unit.\n\nExample: 3", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOB_GAS_USED": {"name": "BLOB_GAS_USED", "description": "Gas consumed by blob transactions (EIP-4844, post-Dencun).\n\nExample: 131072", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOB_GAS_PRICE": {"name": "BLOB_GAS_PRICE", "description": "Actual price paid per blob gas unit.\n\nExample: 1", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FACT_TRANSACTIONS_ID": {"name": "FACT_TRANSACTIONS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/core__fact_transactions.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "incremental_predicates": ["polygon.\n \n core.\n \n fact_transactions.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n core.\n \n fact_transactions__dbt_tmp\n )"], "full_refresh": false, "tags": ["gold", "core", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018438.6687148, "relation_name": "polygon.core.fact_transactions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Set fact_transactions specific variables #}\n{% set rpc_vars = set_dynamic_fields('fact_transactions') %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = vars.MAIN_CORE_GOLD_FACT_TRANSACTIONS_UNIQUE_KEY,\n cluster_by = ['block_timestamp::DATE'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_number,tx_hash,from_address,to_address,origin_function_signature)\",\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n tags = ['gold','core','phase_2']\n) }}\n\nWITH base AS (\n\n SELECT\n block_number,\n tx_position,\n transaction_json\n FROM\n {{ ref('silver__transactions') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }})\n {% endif %}\n ),\n transactions_fields AS (\n SELECT\n block_number,\n tx_position,\n transaction_json :blockHash :: STRING AS block_hash,\n transaction_json :blockNumber :: STRING AS block_number_hex,\n transaction_json :from :: STRING AS from_address,\n utils.udf_hex_to_int(\n transaction_json :gas :: STRING\n ) :: bigint AS gas_limit,\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n transaction_json :gasPrice :: STRING\n )) AS gas_price,\n transaction_json :hash :: STRING AS tx_hash,\n transaction_json :input :: STRING AS input_data,\n LEFT(\n input_data,\n 10\n ) AS origin_function_signature,\n {% if rpc_vars.mint %}\n utils.udf_hex_to_int(\n transaction_json :mint :: STRING\n ) AS mint_precise_raw,\n utils.udf_decimal_adjust(\n mint_precise_raw,\n 18\n ) AS mint_precise,\n mint_precise :: FLOAT AS mint,\n {% endif %}\n utils.udf_hex_to_int(\n transaction_json :nonce :: STRING\n ) :: bigint AS nonce,\n transaction_json :r :: STRING AS r,\n transaction_json :s :: STRING AS s,\n {% if rpc_vars.sourceHash %}\n transaction_json :sourceHash :: STRING AS source_hash,\n {% endif %}\n transaction_json :to :: STRING AS to_address1,\n CASE\n WHEN to_address1 = '' THEN NULL\n ELSE to_address1\n END AS to_address,\n utils.udf_hex_to_int(\n transaction_json :transactionIndex :: STRING\n ) :: bigint AS transaction_index,\n utils.udf_hex_to_int(\n transaction_json :v :: STRING\n ) :: bigint AS v,\n {% if rpc_vars.maxFeePerGas %}\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n transaction_json :maxFeePerGas :: STRING\n )\n ) / pow(\n 10,\n 9\n ) AS max_fee_per_gas,\n {% endif %}\n {% if rpc_vars.maxPriorityFeePerGas %}\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n transaction_json :maxPriorityFeePerGas :: STRING\n )\n ) / pow(\n 10,\n 9\n ) AS max_priority_fee_per_gas,\n {% endif %}\n {% if rpc_vars.blobVersionedHashes %}\n transaction_json :blobVersionedHashes AS blob_versioned_hashes,\n {% endif %}\n {% if rpc_vars.maxFeePerBlobGas %}\n utils.udf_hex_to_int(transaction_json :maxFeePerBlobGas :: STRING) / pow(10, 9) AS max_fee_per_blob_gas, \n {% endif %}\n {% if rpc_vars.ethValue %}\n utils.udf_hex_to_int(\n transaction_json :ethValue :: STRING\n ) AS eth_value_precise_raw,\n utils.udf_decimal_adjust(\n eth_value_precise_raw,\n 18\n ) AS eth_value_precise,\n eth_value_precise :: FLOAT AS eth_value,\n {% endif %}\n utils.udf_hex_to_int(\n transaction_json :value :: STRING\n ) AS value_precise_raw,\n utils.udf_decimal_adjust(\n value_precise_raw,\n 18\n ) AS value_precise,\n value_precise :: FLOAT AS VALUE\n {% if rpc_vars.yParity %}\n ,utils.udf_hex_to_int(transaction_json :yParity :: STRING):: bigint AS y_parity\n {% endif %}\n {% if rpc_vars.accessList %}\n ,transaction_json :accessList AS access_list\n {% endif %}\n {% if rpc_vars.authorizationList %}\n ,transaction_json :authorizationList AS authorization_list\n {% endif %}\n FROM\n base\n ),\n new_transactions AS (\n SELECT\n txs.block_number,\n txs.block_hash,\n b.block_timestamp,\n txs.tx_hash,\n txs.from_address,\n txs.to_address,\n txs.origin_function_signature,\n {% if rpc_vars.mint %}\n txs.mint,\n txs.mint_precise_raw,\n txs.mint_precise,\n {% endif %}\n {% if rpc_vars.ethValue %}\n txs.eth_value,\n txs.eth_value_precise_raw,\n txs.eth_value_precise,\n {% endif %}\n txs.value,\n txs.value_precise_raw,\n txs.value_precise,\n {% if rpc_vars.maxFeePerGas %}\n txs.max_fee_per_gas,\n {% endif %}\n {% if rpc_vars.maxPriorityFeePerGas %}\n txs.max_priority_fee_per_gas,\n {% endif %}\n {% if rpc_vars.blobVersionedHashes %}\n txs.blob_versioned_hashes,\n {% endif %}\n {% if rpc_vars.maxFeePerBlobGas %}\n txs.max_fee_per_blob_gas, \n {% endif %}\n {% if rpc_vars.blobGasPrice %}\n utils.udf_hex_to_int(r.receipts_json :blobGasPrice :: STRING) / pow(10, 9) as blob_gas_price,\n {% endif %}\n {% if rpc_vars.blobGasUsed %}\n utils.udf_hex_to_int(r.receipts_json :blobGasUsed :: STRING) as blob_gas_used,\n {% endif %}\n {% if rpc_vars.l1Fee %}\n utils.udf_hex_to_int(r.receipts_json :l1Fee :: STRING) as l1_fee_precise_raw,\n utils.udf_decimal_adjust(l1_fee_precise_raw, 18) as l1_fee_precise,\n l1_fee_precise :: FLOAT AS l1_fee,\n {% endif %}\n {% if rpc_vars.l1FeeScalar %}\n COALESCE(\n (\n r.receipts_json :l1FeeScalar :: STRING\n ) :: FLOAT,\n 0\n ) AS l1_fee_scalar,\n {% endif %}\n {% if rpc_vars.l1GasUsed %}\n COALESCE(\n utils.udf_hex_to_int(\n r.receipts_json :l1GasUsed :: STRING\n ) :: BIGINT,\n 0\n ) AS l1_gas_used,\n {% endif %}\n {% if rpc_vars.l1GasPrice %}\n COALESCE(\n utils.udf_hex_to_int(\n r.receipts_json :l1GasPrice :: STRING\n ) :: BIGINT,\n 0\n ) AS l1_gas_price,\n {% endif %}\n {% if rpc_vars.l1BaseFeeScalar %}\n utils.udf_hex_to_int(r.receipts_json :l1BaseFeeScalar :: STRING):: bigint AS l1_base_fee_scalar,\n {% endif %}\n {% if rpc_vars.gasUsedForL1 %}\n COALESCE(\n utils.udf_hex_to_int(\n r.receipts_json :gasUsedForL1 :: STRING\n ) :: bigint,\n 0\n ) AS gas_used_for_l1,\n {% endif %}\n {% if rpc_vars.l1BlockNumber %}\n COALESCE(\n utils.udf_hex_to_int(\n r.receipts_json :l1BlockNumber :: STRING\n ) :: bigint,\n 0\n ) AS l1_block_number,\n {% endif %}\n {% if rpc_vars.yParity %}\n txs.y_parity,\n {% endif %}\n {% if rpc_vars.accessList %}\n txs.access_list,\n {% endif %}\n {% if rpc_vars.authorizationList %}\n txs.authorization_list,\n {% endif %}\n {% if rpc_vars.tokenRatio %}\n TRY_TO_NUMBER(utils.udf_hex_to_int(r.receipts_json :tokenRatio :: STRING)) AS token_ratio,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFee %}\n utils.udf_hex_to_int(r.receipts_json :l1BlobBaseFee :: STRING):: bigint AS l1_blob_base_fee,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFeeScalar %}\n utils.udf_hex_to_int(r.receipts_json :l1BlobBaseFeeScalar :: STRING):: bigint AS l1_blob_base_fee_scalar,\n {% endif %}\n {% if rpc_vars.operatorFeeScalar %}\n utils.udf_hex_to_int(\n r.receipts_json :operatorFeeScalar :: STRING\n ) :: bigint AS operator_fee_scalar,\n {% endif %}\n {% if rpc_vars.operatorFeeConstant %}\n utils.udf_hex_to_int(\n r.receipts_json :operatorFeeConstant :: STRING\n ) :: bigint AS operator_fee_constant,\n {% endif %}\n txs.gas_price / pow(\n 10,\n 9\n ) AS gas_price,\n utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint AS gas_used,\n txs.gas_limit,\n utils.udf_hex_to_int(\n r.receipts_json :cumulativeGasUsed :: STRING\n ) :: bigint AS cumulative_gas_used,\n utils.udf_hex_to_int(\n r.receipts_json :effectiveGasPrice :: STRING\n ) :: bigint AS effective_gas_price,\n {% if rpc_vars.l1Fee %}\n utils.udf_decimal_adjust(\n (\n txs.gas_price * utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint\n ) + ifnull(l1_fee_precise_raw :: bigint,0)\n {% if rpc_vars.operatorFeeScalar or rpc_vars.operatorFeeConstant %}\n + (\n (\n utils.udf_hex_to_int(r.receipts_json :gasUsed :: STRING) :: bigint \n * COALESCE(operator_fee_scalar, 0) / pow(10, 6)\n ) \n + COALESCE(operator_fee_constant,0)\n )\n {% endif %}\n ,18\n ) AS tx_fee_precise,\n {% elif vars.GLOBAL_PROJECT_NAME == 'arbitrum' %}\n utils.udf_decimal_adjust(\n effective_gas_price * utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint,\n 18\n ) AS tx_fee_precise,\n {% else %}\n utils.udf_decimal_adjust(\n txs.gas_price * utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint,\n 18\n ) AS tx_fee_precise,\n {% endif %}\n COALESCE(\n tx_fee_precise :: FLOAT,\n 0\n ) AS tx_fee,\n CASE\n WHEN r.receipts_json :status :: STRING = '0x1' THEN TRUE\n WHEN r.receipts_json :status :: STRING = '0x0' THEN FALSE\n ELSE NULL\n END AS tx_succeeded,\n utils.udf_hex_to_int(\n r.receipts_json :type :: STRING\n ) :: bigint AS tx_type,\n {% if rpc_vars.timeboosted %}\n r.receipts_json :timeboosted :: BOOLEAN AS timeboosted,\n {% endif %}\n txs.nonce,\n txs.tx_position,\n txs.input_data,\n txs.r,\n txs.s,\n {% if rpc_vars.sourceHash %}\n txs.source_hash,\n {% endif %}\n txs.v\n FROM\n transactions_fields txs\n LEFT JOIN {{ ref('core__fact_blocks') }}\n b\n ON txs.block_number = b.block_number\n\n{% if is_incremental() %}\nAND b.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) :: DATE - 1\n FROM\n {{ this }}\n)\n{% endif %}\nLEFT JOIN {{ ref('silver__receipts') }}\nr\nON txs.block_number = r.block_number\nAND txs.tx_hash =\n{% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n r.tx_hash\n{% else %}\n r.receipts_json :transactionHash :: STRING\n{% endif %}\n\n{% if is_incremental() %}\nAND r.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) :: DATE - 1\n FROM\n {{ this }}\n)\n{% endif %}\n)\n\n{% if is_incremental() %},\nmissing_data AS (\n SELECT\n t.block_number,\n b.block_timestamp AS block_timestamp_heal,\n t.tx_hash,\n t.from_address,\n t.to_address,\n t.origin_function_signature,\n {% if rpc_vars.mint %}\n t.mint,\n t.mint_precise_raw,\n t.mint_precise,\n {% endif %}\n {% if rpc_vars.ethValue %}\n t.eth_value,\n t.eth_value_precise_raw,\n t.eth_value_precise,\n {% endif %}\n t.value,\n t.value_precise_raw,\n t.value_precise,\n {% if rpc_vars.maxFeePerGas %}\n t.max_fee_per_gas,\n {% endif %}\n {% if rpc_vars.maxPriorityFeePerGas %}\n t.max_priority_fee_per_gas,\n {% endif %}\n {% if rpc_vars.blobVersionedHashes %}\n t.blob_versioned_hashes,\n {% endif %}\n {% if rpc_vars.maxFeePerBlobGas %}\n t.max_fee_per_blob_gas, \n {% endif %}\n {% if rpc_vars.blobGasPrice %}\n utils.udf_hex_to_int(r.receipts_json :blobGasPrice :: STRING) / pow(10, 9) as blob_gas_price_heal,\n {% endif %}\n {% if rpc_vars.blobGasUsed %}\n utils.udf_hex_to_int(r.receipts_json :blobGasUsed :: STRING) as blob_gas_used_heal,\n {% endif %}\n {% if rpc_vars.l1Fee %}\n utils.udf_hex_to_int(r.receipts_json :l1Fee :: STRING) as l1_fee_precise_raw_heal,\n utils.udf_decimal_adjust(l1_fee_precise_raw_heal, 18) as l1_fee_precise_heal,\n l1_fee_precise_heal :: FLOAT AS l1_fee_heal,\n {% endif %}\n {% if rpc_vars.l1FeeScalar %}\n COALESCE(\n (\n r.receipts_json :l1FeeScalar :: STRING\n ) :: FLOAT,\n 0\n ) AS l1_fee_scalar_heal,\n {% endif %}\n {% if rpc_vars.l1GasUsed %}\n COALESCE(\n utils.udf_hex_to_int(\n r.receipts_json :l1GasUsed :: STRING\n ) :: BIGINT,\n 0\n ) AS l1_gas_used_heal,\n {% endif %}\n {% if rpc_vars.l1GasPrice %}\n COALESCE(\n utils.udf_hex_to_int(\n r.receipts_json :l1GasPrice :: STRING\n ) :: BIGINT,\n 0\n ) AS l1_gas_price_heal,\n {% endif %}\n {% if rpc_vars.l1BaseFeeScalar %}\n utils.udf_hex_to_int(r.receipts_json :l1BaseFeeScalar :: STRING):: bigint AS l1_base_fee_scalar_heal,\n {% endif %}\n {% if rpc_vars.gasUsedForL1 %}\n COALESCE(\n utils.udf_hex_to_int(\n r.receipts_json :gasUsedForL1 :: STRING\n ) :: bigint,\n 0\n ) AS gas_used_for_l1_heal,\n {% endif %}\n {% if rpc_vars.l1BlockNumber %}\n COALESCE(\n utils.udf_hex_to_int(\n r.receipts_json :l1BlockNumber :: STRING\n ) :: bigint,\n 0\n ) AS l1_block_number_heal,\n {% endif %}\n {% if rpc_vars.yParity %}\n t.y_parity,\n {% endif %}\n {% if rpc_vars.accessList %}\n t.access_list,\n {% endif %}\n {% if rpc_vars.authorizationList %}\n t.authorization_list,\n {% endif %}\n {% if rpc_vars.tokenRatio %}\n TRY_TO_NUMBER(utils.udf_hex_to_int(r.receipts_json :tokenRatio :: STRING)) AS token_ratio_heal,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFee %}\n utils.udf_hex_to_int(r.receipts_json :l1BlobBaseFee :: STRING):: bigint AS l1_blob_base_fee_heal,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFeeScalar %}\n utils.udf_hex_to_int(r.receipts_json :l1BlobBaseFeeScalar :: STRING):: bigint AS l1_blob_base_fee_scalar_heal,\n {% endif %}\n {% if rpc_vars.operatorFeeScalar %}\n utils.udf_hex_to_int(\n r.receipts_json :operatorFeeScalar :: STRING\n ) :: bigint AS operator_fee_scalar_heal,\n {% endif %}\n {% if rpc_vars.operatorFeeConstant %}\n utils.udf_hex_to_int(\n r.receipts_json :operatorFeeConstant :: STRING\n ) :: bigint AS operator_fee_constant_heal,\n {% endif %}\n {% if vars.GLOBAL_PROJECT_NAME == 'arbitrum' %}\n t.gas_price_bid as gas_price, \n {% else %}\n t.gas_price,\n {% endif %}\n utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint AS gas_used_heal,\n t.gas_limit,\n utils.udf_hex_to_int(\n r.receipts_json :cumulativeGasUsed :: STRING\n ) :: bigint AS cumulative_gas_used_heal,\n utils.udf_hex_to_int(\n r.receipts_json :effectiveGasPrice :: STRING\n ) :: bigint AS effective_gas_price_heal,\n {% if rpc_vars.l1Fee %}\n utils.udf_decimal_adjust(\n (\n (t.gas_price * pow(10, 9)) * utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint\n ) + ifnull(l1_fee_precise_raw_heal :: bigint,0)\n {% if rpc_vars.operatorFeeScalar or rpc_vars.operatorFeeConstant %}\n + (\n (\n utils.udf_hex_to_int(r.receipts_json :gasUsed :: STRING) :: bigint \n * COALESCE(operator_fee_scalar_heal, 0) / pow(10, 6)\n ) \n + COALESCE(operator_fee_constant_heal,0)\n )\n {% endif %}\n ,18\n ) AS tx_fee_precise_heal,\n {% elif vars.GLOBAL_PROJECT_NAME == 'arbitrum' %}\n utils.udf_decimal_adjust(\n effective_gas_price_heal * utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint,\n 18\n ) AS tx_fee_precise_heal,\n {% else %}\n utils.udf_decimal_adjust(\n t.gas_price * utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint, \n 9\n ) AS tx_fee_precise_heal,\n {% endif %}\n COALESCE(\n tx_fee_precise_heal :: FLOAT,\n 0\n ) AS tx_fee_heal,\n CASE\n WHEN r.receipts_json :status :: STRING = '0x1' THEN TRUE\n WHEN r.receipts_json :status :: STRING = '0x0' THEN FALSE\n ELSE NULL\n END AS tx_succeeded_heal,\n utils.udf_hex_to_int(\n r.receipts_json :type :: STRING\n ) :: bigint AS tx_type_heal,\n {% if rpc_vars.timeboosted %}\n r.receipts_json :timeboosted :: BOOLEAN AS timeboosted_heal,\n {% endif %}\n t.nonce,\n t.tx_position,\n t.input_data,\n t.r,\n t.s,\n {% if rpc_vars.sourceHash %}\n t.source_hash,\n {% endif %}\n t.v\n FROM\n {{ this }}\n t\n LEFT JOIN {{ ref('core__fact_blocks') }}\n b\n ON t.block_number = b.block_number\n LEFT JOIN {{ ref('silver__receipts') }}\n r\n ON t.block_number = r.block_number\n AND t.tx_hash =\n {% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n r.tx_hash\n {% else %}\n r.receipts_json :transactionHash :: STRING\n {% endif %}\n WHERE\n t.block_timestamp IS NULL\n OR t.tx_succeeded IS NULL\n\n {% if vars.GLOBAL_PROJECT_NAME == 'arbitrum' %}\n OR (t.timeboosted IS NULL and t.block_number >= 330058686)\n {% endif %}\n)\n{% endif %},\nall_transactions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address,\n to_address,\n origin_function_signature,\n {% if rpc_vars.mint %}\n mint,\n mint_precise_raw,\n mint_precise,\n {% endif %}\n {% if rpc_vars.ethValue %}\n eth_value,\n eth_value_precise_raw,\n eth_value_precise,\n {% endif %}\n VALUE,\n value_precise_raw,\n value_precise,\n {% if rpc_vars.maxFeePerGas %}\n max_fee_per_gas,\n {% endif %}\n {% if rpc_vars.maxPriorityFeePerGas %}\n max_priority_fee_per_gas,\n {% endif %}\n {% if rpc_vars.blobVersionedHashes %}\n blob_versioned_hashes,\n {% endif %}\n {% if rpc_vars.maxFeePerBlobGas %}\n max_fee_per_blob_gas, \n {% endif %}\n {% if rpc_vars.blobGasUsed %}\n blob_gas_used,\n {% endif %}\n {% if rpc_vars.blobGasPrice %}\n blob_gas_price,\n {% endif %}\n {% if rpc_vars.l1Fee %}\n l1_fee,\n l1_fee_precise_raw,\n l1_fee_precise,\n {% endif %}\n {% if rpc_vars.l1FeeScalar %}\n l1_fee_scalar,\n {% endif %}\n {% if rpc_vars.l1GasUsed %}\n l1_gas_used,\n {% endif %}\n {% if rpc_vars.l1GasPrice %}\n l1_gas_price / pow(10, 9) as l1_gas_price,\n {% endif %}\n {% if rpc_vars.l1BaseFeeScalar %}\n l1_base_fee_scalar,\n {% endif %}\n {% if rpc_vars.gasUsedForL1 %}\n gas_used_for_l1,\n {% endif %}\n {% if rpc_vars.l1BlockNumber %}\n l1_block_number,\n {% endif %}\n {% if rpc_vars.yParity %}\n y_parity,\n {% endif %}\n {% if rpc_vars.accessList %}\n access_list,\n {% endif %}\n {% if rpc_vars.authorizationList %}\n authorization_list,\n {% endif %}\n {% if rpc_vars.tokenRatio %}\n token_ratio,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFee %}\n l1_blob_base_fee,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFeeScalar %}\n l1_blob_base_fee_scalar,\n {% endif %}\n {% if rpc_vars.operatorFeeScalar %}\n operator_fee_scalar,\n {% endif %}\n {% if rpc_vars.operatorFeeConstant %}\n operator_fee_constant,\n {% endif %}\n tx_fee,\n tx_fee_precise,\n tx_succeeded,\n tx_type,\n {% if rpc_vars.timeboosted %}\n timeboosted,\n {% endif %}\n nonce,\n tx_position,\n input_data,\n gas_price,\n gas_used,\n gas_limit,\n cumulative_gas_used,\n effective_gas_price / pow(10, 9) as effective_gas_price,\n r,\n s,\n {% if rpc_vars.sourceHash %}\n source_hash,\n {% endif %}\n v\n FROM\n new_transactions\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp_heal AS block_timestamp,\n tx_hash,\n from_address,\n to_address,\n origin_function_signature,\n {% if rpc_vars.mint %}\n mint,\n mint_precise_raw,\n mint_precise,\n {% endif %}\n {% if rpc_vars.ethValue %}\n eth_value,\n eth_value_precise_raw,\n eth_value_precise,\n {% endif %}\n VALUE,\n value_precise_raw,\n value_precise,\n {% if rpc_vars.maxFeePerGas %}\n max_fee_per_gas,\n {% endif %}\n {% if rpc_vars.maxPriorityFeePerGas %}\n max_priority_fee_per_gas,\n {% endif %}\n {% if rpc_vars.blobVersionedHashes %}\n blob_versioned_hashes,\n {% endif %}\n {% if rpc_vars.maxFeePerBlobGas %}\n max_fee_per_blob_gas, \n {% endif %}\n {% if rpc_vars.blobGasUsed %}\n blob_gas_used_heal AS blob_gas_used,\n {% endif %}\n {% if rpc_vars.blobGasPrice %}\n blob_gas_price_heal AS blob_gas_price,\n {% endif %}\n {% if rpc_vars.l1Fee %}\n l1_fee_precise_heal AS l1_fee,\n l1_fee_precise_raw_heal AS l1_fee_precise_raw,\n l1_fee_precise_heal AS l1_fee_precise,\n {% endif %}\n {% if rpc_vars.l1FeeScalar %}\n l1_fee_scalar_heal AS l1_fee_scalar,\n {% endif %}\n {% if rpc_vars.l1GasUsed %}\n l1_gas_used_heal AS l1_gas_used,\n {% endif %}\n {% if rpc_vars.l1GasPrice %}\n l1_gas_price_heal / pow(10, 9) AS l1_gas_price,\n {% endif %}\n {% if rpc_vars.l1BaseFeeScalar %}\n l1_base_fee_scalar_heal AS l1_base_fee_scalar,\n {% endif %}\n {% if rpc_vars.gasUsedForL1 %}\n gas_used_for_l1_heal AS gas_used_for_l1,\n {% endif %}\n {% if rpc_vars.l1BlockNumber %}\n l1_block_number_heal AS l1_block_number,\n {% endif %}\n {% if rpc_vars.yParity %}\n y_parity,\n {% endif %}\n {% if rpc_vars.accessList %}\n access_list,\n {% endif %}\n {% if rpc_vars.authorizationList %}\n authorization_list,\n {% endif %}\n {% if rpc_vars.tokenRatio %}\n token_ratio_heal AS token_ratio,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFee %}\n l1_blob_base_fee_heal AS l1_blob_base_fee,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFeeScalar %}\n l1_blob_base_fee_scalar_heal AS l1_blob_base_fee_scalar,\n {% endif %}\n {% if rpc_vars.operatorFeeScalar %}\n operator_fee_scalar_heal AS operator_fee_scalar,\n {% endif %}\n {% if rpc_vars.operatorFeeConstant %}\n operator_fee_constant_heal AS operator_fee_constant,\n {% endif %}\n tx_fee_heal AS tx_fee,\n tx_fee_precise_heal AS tx_fee_precise,\n tx_succeeded_heal AS tx_succeeded,\n tx_type_heal AS tx_type,\n {% if rpc_vars.timeboosted %}\n timeboosted_heal AS timeboosted,\n {% endif %}\n nonce,\n tx_position,\n input_data,\n gas_price,\n gas_used_heal AS gas_used,\n gas_limit,\n cumulative_gas_used_heal AS cumulative_gas_used,\n effective_gas_price_heal / pow(10, 9) AS effective_gas_price,\n r,\n s,\n {% if rpc_vars.sourceHash %}\n source_hash,\n {% endif %}\n v\nFROM\n missing_data\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address,\n to_address,\n origin_function_signature,\n VALUE,\n value_precise_raw,\n value_precise,\n tx_fee,\n COALESCE(tx_fee_precise,'0') AS tx_fee_precise,\n tx_succeeded,\n tx_type,\n {% if rpc_vars.timeboosted %}\n timeboosted,\n {% endif %}\n nonce,\n tx_position,\n input_data,\n {% if vars.GLOBAL_PROJECT_NAME == 'arbitrum' %}\n gas_price as gas_price_bid, \n effective_gas_price as gas_price_paid,\n {% else %}\n gas_price,\n effective_gas_price,\n {% endif %}\n gas_used,\n gas_limit,\n cumulative_gas_used,\n {% if rpc_vars.maxFeePerGas %}\n max_fee_per_gas,\n {% endif %}\n {% if rpc_vars.maxPriorityFeePerGas %}\n max_priority_fee_per_gas,\n {% endif %}\n {% if rpc_vars.blobVersionedHashes %}\n blob_versioned_hashes,\n {% endif %}\n {% if rpc_vars.maxFeePerBlobGas %}\n max_fee_per_blob_gas, \n {% endif %}\n {% if rpc_vars.blobGasUsed %}\n blob_gas_used,\n {% endif %}\n {% if rpc_vars.blobGasPrice %}\n blob_gas_price,\n {% endif %}\n {% if rpc_vars.l1Fee %}\n l1_fee,\n l1_fee_precise_raw,\n l1_fee_precise,\n {% endif %}\n {% if rpc_vars.l1FeeScalar %}\n l1_fee_scalar,\n {% endif %}\n {% if rpc_vars.l1GasUsed %}\n l1_gas_used,\n {% endif %}\n {% if rpc_vars.l1GasPrice %}\n l1_gas_price,\n {% endif %}\n {% if rpc_vars.l1BaseFeeScalar %}\n l1_base_fee_scalar,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFee %}\n l1_blob_base_fee,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFeeScalar %}\n l1_blob_base_fee_scalar,\n {% endif %}\n {% if rpc_vars.operatorFeeScalar %}\n operator_fee_scalar,\n {% endif %}\n {% if rpc_vars.operatorFeeConstant %}\n operator_fee_constant,\n {% endif %}\n {% if rpc_vars.mint %}\n mint,\n mint_precise_raw,\n mint_precise,\n {% endif %}\n {% if rpc_vars.ethValue %}\n eth_value,\n eth_value_precise_raw,\n eth_value_precise,\n {% endif %}\n {% if rpc_vars.l1BlockNumber %}\n l1_block_number,\n {% endif %}\n {% if rpc_vars.gasUsedForL1 %}\n gas_used_for_l1,\n {% endif %}\n {% if rpc_vars.yParity %}\n y_parity,\n {% endif %}\n {% if rpc_vars.accessList %}\n access_list,\n {% endif %}\n {% if rpc_vars.authorizationList %}\n authorization_list,\n {% endif %}\n {% if rpc_vars.tokenRatio %}\n token_ratio,\n {% endif %}\n r,\n s,\n v,\n {% if rpc_vars.sourceHash %}\n source_hash,\n {% endif %}\n {{ dbt_utils.generate_surrogate_key(['tx_hash']) }} AS fact_transactions_id,\n {% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n {% else %}\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS inserted_timestamp,\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS modified_timestamp\n {% endif %}\nFROM\n all_transactions qualify ROW_NUMBER() over (\n PARTITION BY fact_transactions_id\n ORDER BY\n\n {% if vars.GLOBAL_PROJECT_NAME == 'monad' %}\n tx_succeeded DESC nulls last,\n block_number DESC,\n block_timestamp DESC nulls last\n {% else %}\n block_number DESC,\n block_timestamp DESC nulls last,\n tx_succeeded DESC nulls last\n {% endif %}\n ) = 1", "language": "sql", "refs": [{"name": "admin__fact_rpc_details", "package": null, "version": null}, {"name": "silver__transactions", "package": null, "version": null}, {"name": "core__fact_blocks", "package": null, "version": null}, {"name": "silver__receipts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.set_dynamic_fields", "macro.fsc_evm.log_model_details", "macro.fsc_evm.standard_predicate", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.admin__fact_rpc_details", "model.fsc_evm.silver__transactions", "model.fsc_evm.core__fact_blocks", "model.fsc_evm.silver__receipts"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/core__fact_transactions.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"polygon.\\n \\n core.\\n \\n fact_transactions.block_number \\u003e= (\\n SELECT\\n MIN(\\n block_number\\n )\\n FROM\\n polygon.\\n \\n core.\\n \\n fact_transactions__dbt_tmp\\n )\"\n ],\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_number,tx_hash,from_address,to_address,origin_function_signature)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"core\",\n \"phase_2\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Set fact_transactions specific variables #}\n{% set rpc_vars = set_dynamic_fields('fact_transactions') %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = vars.MAIN_CORE_GOLD_FACT_TRANSACTIONS_UNIQUE_KEY,\n cluster_by = ['block_timestamp::DATE'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_number,tx_hash,from_address,to_address,origin_function_signature)\",\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n tags = ['gold','core','phase_2']\n) }}\n\nWITH base AS (\n\n SELECT\n block_number,\n tx_position,\n transaction_json\n FROM\n {{ ref('silver__transactions') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }})\n {% endif %}\n ),\n transactions_fields AS (\n SELECT\n block_number,\n tx_position,\n transaction_json :blockHash :: STRING AS block_hash,\n transaction_json :blockNumber :: STRING AS block_number_hex,\n transaction_json :from :: STRING AS from_address,\n utils.udf_hex_to_int(\n transaction_json :gas :: STRING\n ) :: bigint AS gas_limit,\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n transaction_json :gasPrice :: STRING\n )) AS gas_price,\n transaction_json :hash :: STRING AS tx_hash,\n transaction_json :input :: STRING AS input_data,\n LEFT(\n input_data,\n 10\n ) AS origin_function_signature,\n {% if rpc_vars.mint %}\n utils.udf_hex_to_int(\n transaction_json :mint :: STRING\n ) AS mint_precise_raw,\n utils.udf_decimal_adjust(\n mint_precise_raw,\n 18\n ) AS mint_precise,\n mint_precise :: FLOAT AS mint,\n {% endif %}\n utils.udf_hex_to_int(\n transaction_json :nonce :: STRING\n ) :: bigint AS nonce,\n transaction_json :r :: STRING AS r,\n transaction_json :s :: STRING AS s,\n {% if rpc_vars.sourceHash %}\n transaction_json :sourceHash :: STRING AS source_hash,\n {% endif %}\n transaction_json :to :: STRING AS to_address1,\n CASE\n WHEN to_address1 = '' THEN NULL\n ELSE to_address1\n END AS to_address,\n utils.udf_hex_to_int(\n transaction_json :transactionIndex :: STRING\n ) :: bigint AS transaction_index,\n utils.udf_hex_to_int(\n transaction_json :v :: STRING\n ) :: bigint AS v,\n {% if rpc_vars.maxFeePerGas %}\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n transaction_json :maxFeePerGas :: STRING\n )\n ) / pow(\n 10,\n 9\n ) AS max_fee_per_gas,\n {% endif %}\n {% if rpc_vars.maxPriorityFeePerGas %}\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n transaction_json :maxPriorityFeePerGas :: STRING\n )\n ) / pow(\n 10,\n 9\n ) AS max_priority_fee_per_gas,\n {% endif %}\n {% if rpc_vars.blobVersionedHashes %}\n transaction_json :blobVersionedHashes AS blob_versioned_hashes,\n {% endif %}\n {% if rpc_vars.maxFeePerBlobGas %}\n utils.udf_hex_to_int(transaction_json :maxFeePerBlobGas :: STRING) / pow(10, 9) AS max_fee_per_blob_gas, \n {% endif %}\n {% if rpc_vars.ethValue %}\n utils.udf_hex_to_int(\n transaction_json :ethValue :: STRING\n ) AS eth_value_precise_raw,\n utils.udf_decimal_adjust(\n eth_value_precise_raw,\n 18\n ) AS eth_value_precise,\n eth_value_precise :: FLOAT AS eth_value,\n {% endif %}\n utils.udf_hex_to_int(\n transaction_json :value :: STRING\n ) AS value_precise_raw,\n utils.udf_decimal_adjust(\n value_precise_raw,\n 18\n ) AS value_precise,\n value_precise :: FLOAT AS VALUE\n {% if rpc_vars.yParity %}\n ,utils.udf_hex_to_int(transaction_json :yParity :: STRING):: bigint AS y_parity\n {% endif %}\n {% if rpc_vars.accessList %}\n ,transaction_json :accessList AS access_list\n {% endif %}\n {% if rpc_vars.authorizationList %}\n ,transaction_json :authorizationList AS authorization_list\n {% endif %}\n FROM\n base\n ),\n new_transactions AS (\n SELECT\n txs.block_number,\n txs.block_hash,\n b.block_timestamp,\n txs.tx_hash,\n txs.from_address,\n txs.to_address,\n txs.origin_function_signature,\n {% if rpc_vars.mint %}\n txs.mint,\n txs.mint_precise_raw,\n txs.mint_precise,\n {% endif %}\n {% if rpc_vars.ethValue %}\n txs.eth_value,\n txs.eth_value_precise_raw,\n txs.eth_value_precise,\n {% endif %}\n txs.value,\n txs.value_precise_raw,\n txs.value_precise,\n {% if rpc_vars.maxFeePerGas %}\n txs.max_fee_per_gas,\n {% endif %}\n {% if rpc_vars.maxPriorityFeePerGas %}\n txs.max_priority_fee_per_gas,\n {% endif %}\n {% if rpc_vars.blobVersionedHashes %}\n txs.blob_versioned_hashes,\n {% endif %}\n {% if rpc_vars.maxFeePerBlobGas %}\n txs.max_fee_per_blob_gas, \n {% endif %}\n {% if rpc_vars.blobGasPrice %}\n utils.udf_hex_to_int(r.receipts_json :blobGasPrice :: STRING) / pow(10, 9) as blob_gas_price,\n {% endif %}\n {% if rpc_vars.blobGasUsed %}\n utils.udf_hex_to_int(r.receipts_json :blobGasUsed :: STRING) as blob_gas_used,\n {% endif %}\n {% if rpc_vars.l1Fee %}\n utils.udf_hex_to_int(r.receipts_json :l1Fee :: STRING) as l1_fee_precise_raw,\n utils.udf_decimal_adjust(l1_fee_precise_raw, 18) as l1_fee_precise,\n l1_fee_precise :: FLOAT AS l1_fee,\n {% endif %}\n {% if rpc_vars.l1FeeScalar %}\n COALESCE(\n (\n r.receipts_json :l1FeeScalar :: STRING\n ) :: FLOAT,\n 0\n ) AS l1_fee_scalar,\n {% endif %}\n {% if rpc_vars.l1GasUsed %}\n COALESCE(\n utils.udf_hex_to_int(\n r.receipts_json :l1GasUsed :: STRING\n ) :: BIGINT,\n 0\n ) AS l1_gas_used,\n {% endif %}\n {% if rpc_vars.l1GasPrice %}\n COALESCE(\n utils.udf_hex_to_int(\n r.receipts_json :l1GasPrice :: STRING\n ) :: BIGINT,\n 0\n ) AS l1_gas_price,\n {% endif %}\n {% if rpc_vars.l1BaseFeeScalar %}\n utils.udf_hex_to_int(r.receipts_json :l1BaseFeeScalar :: STRING):: bigint AS l1_base_fee_scalar,\n {% endif %}\n {% if rpc_vars.gasUsedForL1 %}\n COALESCE(\n utils.udf_hex_to_int(\n r.receipts_json :gasUsedForL1 :: STRING\n ) :: bigint,\n 0\n ) AS gas_used_for_l1,\n {% endif %}\n {% if rpc_vars.l1BlockNumber %}\n COALESCE(\n utils.udf_hex_to_int(\n r.receipts_json :l1BlockNumber :: STRING\n ) :: bigint,\n 0\n ) AS l1_block_number,\n {% endif %}\n {% if rpc_vars.yParity %}\n txs.y_parity,\n {% endif %}\n {% if rpc_vars.accessList %}\n txs.access_list,\n {% endif %}\n {% if rpc_vars.authorizationList %}\n txs.authorization_list,\n {% endif %}\n {% if rpc_vars.tokenRatio %}\n TRY_TO_NUMBER(utils.udf_hex_to_int(r.receipts_json :tokenRatio :: STRING)) AS token_ratio,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFee %}\n utils.udf_hex_to_int(r.receipts_json :l1BlobBaseFee :: STRING):: bigint AS l1_blob_base_fee,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFeeScalar %}\n utils.udf_hex_to_int(r.receipts_json :l1BlobBaseFeeScalar :: STRING):: bigint AS l1_blob_base_fee_scalar,\n {% endif %}\n {% if rpc_vars.operatorFeeScalar %}\n utils.udf_hex_to_int(\n r.receipts_json :operatorFeeScalar :: STRING\n ) :: bigint AS operator_fee_scalar,\n {% endif %}\n {% if rpc_vars.operatorFeeConstant %}\n utils.udf_hex_to_int(\n r.receipts_json :operatorFeeConstant :: STRING\n ) :: bigint AS operator_fee_constant,\n {% endif %}\n txs.gas_price / pow(\n 10,\n 9\n ) AS gas_price,\n utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint AS gas_used,\n txs.gas_limit,\n utils.udf_hex_to_int(\n r.receipts_json :cumulativeGasUsed :: STRING\n ) :: bigint AS cumulative_gas_used,\n utils.udf_hex_to_int(\n r.receipts_json :effectiveGasPrice :: STRING\n ) :: bigint AS effective_gas_price,\n {% if rpc_vars.l1Fee %}\n utils.udf_decimal_adjust(\n (\n txs.gas_price * utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint\n ) + ifnull(l1_fee_precise_raw :: bigint,0)\n {% if rpc_vars.operatorFeeScalar or rpc_vars.operatorFeeConstant %}\n + (\n (\n utils.udf_hex_to_int(r.receipts_json :gasUsed :: STRING) :: bigint \n * COALESCE(operator_fee_scalar, 0) / pow(10, 6)\n ) \n + COALESCE(operator_fee_constant,0)\n )\n {% endif %}\n ,18\n ) AS tx_fee_precise,\n {% elif vars.GLOBAL_PROJECT_NAME == 'arbitrum' %}\n utils.udf_decimal_adjust(\n effective_gas_price * utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint,\n 18\n ) AS tx_fee_precise,\n {% else %}\n utils.udf_decimal_adjust(\n txs.gas_price * utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint,\n 18\n ) AS tx_fee_precise,\n {% endif %}\n COALESCE(\n tx_fee_precise :: FLOAT,\n 0\n ) AS tx_fee,\n CASE\n WHEN r.receipts_json :status :: STRING = '0x1' THEN TRUE\n WHEN r.receipts_json :status :: STRING = '0x0' THEN FALSE\n ELSE NULL\n END AS tx_succeeded,\n utils.udf_hex_to_int(\n r.receipts_json :type :: STRING\n ) :: bigint AS tx_type,\n {% if rpc_vars.timeboosted %}\n r.receipts_json :timeboosted :: BOOLEAN AS timeboosted,\n {% endif %}\n txs.nonce,\n txs.tx_position,\n txs.input_data,\n txs.r,\n txs.s,\n {% if rpc_vars.sourceHash %}\n txs.source_hash,\n {% endif %}\n txs.v\n FROM\n transactions_fields txs\n LEFT JOIN {{ ref('core__fact_blocks') }}\n b\n ON txs.block_number = b.block_number\n\n{% if is_incremental() %}\nAND b.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) :: DATE - 1\n FROM\n {{ this }}\n)\n{% endif %}\nLEFT JOIN {{ ref('silver__receipts') }}\nr\nON txs.block_number = r.block_number\nAND txs.tx_hash =\n{% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n r.tx_hash\n{% else %}\n r.receipts_json :transactionHash :: STRING\n{% endif %}\n\n{% if is_incremental() %}\nAND r.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) :: DATE - 1\n FROM\n {{ this }}\n)\n{% endif %}\n)\n\n{% if is_incremental() %},\nmissing_data AS (\n SELECT\n t.block_number,\n b.block_timestamp AS block_timestamp_heal,\n t.tx_hash,\n t.from_address,\n t.to_address,\n t.origin_function_signature,\n {% if rpc_vars.mint %}\n t.mint,\n t.mint_precise_raw,\n t.mint_precise,\n {% endif %}\n {% if rpc_vars.ethValue %}\n t.eth_value,\n t.eth_value_precise_raw,\n t.eth_value_precise,\n {% endif %}\n t.value,\n t.value_precise_raw,\n t.value_precise,\n {% if rpc_vars.maxFeePerGas %}\n t.max_fee_per_gas,\n {% endif %}\n {% if rpc_vars.maxPriorityFeePerGas %}\n t.max_priority_fee_per_gas,\n {% endif %}\n {% if rpc_vars.blobVersionedHashes %}\n t.blob_versioned_hashes,\n {% endif %}\n {% if rpc_vars.maxFeePerBlobGas %}\n t.max_fee_per_blob_gas, \n {% endif %}\n {% if rpc_vars.blobGasPrice %}\n utils.udf_hex_to_int(r.receipts_json :blobGasPrice :: STRING) / pow(10, 9) as blob_gas_price_heal,\n {% endif %}\n {% if rpc_vars.blobGasUsed %}\n utils.udf_hex_to_int(r.receipts_json :blobGasUsed :: STRING) as blob_gas_used_heal,\n {% endif %}\n {% if rpc_vars.l1Fee %}\n utils.udf_hex_to_int(r.receipts_json :l1Fee :: STRING) as l1_fee_precise_raw_heal,\n utils.udf_decimal_adjust(l1_fee_precise_raw_heal, 18) as l1_fee_precise_heal,\n l1_fee_precise_heal :: FLOAT AS l1_fee_heal,\n {% endif %}\n {% if rpc_vars.l1FeeScalar %}\n COALESCE(\n (\n r.receipts_json :l1FeeScalar :: STRING\n ) :: FLOAT,\n 0\n ) AS l1_fee_scalar_heal,\n {% endif %}\n {% if rpc_vars.l1GasUsed %}\n COALESCE(\n utils.udf_hex_to_int(\n r.receipts_json :l1GasUsed :: STRING\n ) :: BIGINT,\n 0\n ) AS l1_gas_used_heal,\n {% endif %}\n {% if rpc_vars.l1GasPrice %}\n COALESCE(\n utils.udf_hex_to_int(\n r.receipts_json :l1GasPrice :: STRING\n ) :: BIGINT,\n 0\n ) AS l1_gas_price_heal,\n {% endif %}\n {% if rpc_vars.l1BaseFeeScalar %}\n utils.udf_hex_to_int(r.receipts_json :l1BaseFeeScalar :: STRING):: bigint AS l1_base_fee_scalar_heal,\n {% endif %}\n {% if rpc_vars.gasUsedForL1 %}\n COALESCE(\n utils.udf_hex_to_int(\n r.receipts_json :gasUsedForL1 :: STRING\n ) :: bigint,\n 0\n ) AS gas_used_for_l1_heal,\n {% endif %}\n {% if rpc_vars.l1BlockNumber %}\n COALESCE(\n utils.udf_hex_to_int(\n r.receipts_json :l1BlockNumber :: STRING\n ) :: bigint,\n 0\n ) AS l1_block_number_heal,\n {% endif %}\n {% if rpc_vars.yParity %}\n t.y_parity,\n {% endif %}\n {% if rpc_vars.accessList %}\n t.access_list,\n {% endif %}\n {% if rpc_vars.authorizationList %}\n t.authorization_list,\n {% endif %}\n {% if rpc_vars.tokenRatio %}\n TRY_TO_NUMBER(utils.udf_hex_to_int(r.receipts_json :tokenRatio :: STRING)) AS token_ratio_heal,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFee %}\n utils.udf_hex_to_int(r.receipts_json :l1BlobBaseFee :: STRING):: bigint AS l1_blob_base_fee_heal,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFeeScalar %}\n utils.udf_hex_to_int(r.receipts_json :l1BlobBaseFeeScalar :: STRING):: bigint AS l1_blob_base_fee_scalar_heal,\n {% endif %}\n {% if rpc_vars.operatorFeeScalar %}\n utils.udf_hex_to_int(\n r.receipts_json :operatorFeeScalar :: STRING\n ) :: bigint AS operator_fee_scalar_heal,\n {% endif %}\n {% if rpc_vars.operatorFeeConstant %}\n utils.udf_hex_to_int(\n r.receipts_json :operatorFeeConstant :: STRING\n ) :: bigint AS operator_fee_constant_heal,\n {% endif %}\n {% if vars.GLOBAL_PROJECT_NAME == 'arbitrum' %}\n t.gas_price_bid as gas_price, \n {% else %}\n t.gas_price,\n {% endif %}\n utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint AS gas_used_heal,\n t.gas_limit,\n utils.udf_hex_to_int(\n r.receipts_json :cumulativeGasUsed :: STRING\n ) :: bigint AS cumulative_gas_used_heal,\n utils.udf_hex_to_int(\n r.receipts_json :effectiveGasPrice :: STRING\n ) :: bigint AS effective_gas_price_heal,\n {% if rpc_vars.l1Fee %}\n utils.udf_decimal_adjust(\n (\n (t.gas_price * pow(10, 9)) * utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint\n ) + ifnull(l1_fee_precise_raw_heal :: bigint,0)\n {% if rpc_vars.operatorFeeScalar or rpc_vars.operatorFeeConstant %}\n + (\n (\n utils.udf_hex_to_int(r.receipts_json :gasUsed :: STRING) :: bigint \n * COALESCE(operator_fee_scalar_heal, 0) / pow(10, 6)\n ) \n + COALESCE(operator_fee_constant_heal,0)\n )\n {% endif %}\n ,18\n ) AS tx_fee_precise_heal,\n {% elif vars.GLOBAL_PROJECT_NAME == 'arbitrum' %}\n utils.udf_decimal_adjust(\n effective_gas_price_heal * utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint,\n 18\n ) AS tx_fee_precise_heal,\n {% else %}\n utils.udf_decimal_adjust(\n t.gas_price * utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint, \n 9\n ) AS tx_fee_precise_heal,\n {% endif %}\n COALESCE(\n tx_fee_precise_heal :: FLOAT,\n 0\n ) AS tx_fee_heal,\n CASE\n WHEN r.receipts_json :status :: STRING = '0x1' THEN TRUE\n WHEN r.receipts_json :status :: STRING = '0x0' THEN FALSE\n ELSE NULL\n END AS tx_succeeded_heal,\n utils.udf_hex_to_int(\n r.receipts_json :type :: STRING\n ) :: bigint AS tx_type_heal,\n {% if rpc_vars.timeboosted %}\n r.receipts_json :timeboosted :: BOOLEAN AS timeboosted_heal,\n {% endif %}\n t.nonce,\n t.tx_position,\n t.input_data,\n t.r,\n t.s,\n {% if rpc_vars.sourceHash %}\n t.source_hash,\n {% endif %}\n t.v\n FROM\n {{ this }}\n t\n LEFT JOIN {{ ref('core__fact_blocks') }}\n b\n ON t.block_number = b.block_number\n LEFT JOIN {{ ref('silver__receipts') }}\n r\n ON t.block_number = r.block_number\n AND t.tx_hash =\n {% if vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n r.tx_hash\n {% else %}\n r.receipts_json :transactionHash :: STRING\n {% endif %}\n WHERE\n t.block_timestamp IS NULL\n OR t.tx_succeeded IS NULL\n\n {% if vars.GLOBAL_PROJECT_NAME == 'arbitrum' %}\n OR (t.timeboosted IS NULL and t.block_number >= 330058686)\n {% endif %}\n)\n{% endif %},\nall_transactions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address,\n to_address,\n origin_function_signature,\n {% if rpc_vars.mint %}\n mint,\n mint_precise_raw,\n mint_precise,\n {% endif %}\n {% if rpc_vars.ethValue %}\n eth_value,\n eth_value_precise_raw,\n eth_value_precise,\n {% endif %}\n VALUE,\n value_precise_raw,\n value_precise,\n {% if rpc_vars.maxFeePerGas %}\n max_fee_per_gas,\n {% endif %}\n {% if rpc_vars.maxPriorityFeePerGas %}\n max_priority_fee_per_gas,\n {% endif %}\n {% if rpc_vars.blobVersionedHashes %}\n blob_versioned_hashes,\n {% endif %}\n {% if rpc_vars.maxFeePerBlobGas %}\n max_fee_per_blob_gas, \n {% endif %}\n {% if rpc_vars.blobGasUsed %}\n blob_gas_used,\n {% endif %}\n {% if rpc_vars.blobGasPrice %}\n blob_gas_price,\n {% endif %}\n {% if rpc_vars.l1Fee %}\n l1_fee,\n l1_fee_precise_raw,\n l1_fee_precise,\n {% endif %}\n {% if rpc_vars.l1FeeScalar %}\n l1_fee_scalar,\n {% endif %}\n {% if rpc_vars.l1GasUsed %}\n l1_gas_used,\n {% endif %}\n {% if rpc_vars.l1GasPrice %}\n l1_gas_price / pow(10, 9) as l1_gas_price,\n {% endif %}\n {% if rpc_vars.l1BaseFeeScalar %}\n l1_base_fee_scalar,\n {% endif %}\n {% if rpc_vars.gasUsedForL1 %}\n gas_used_for_l1,\n {% endif %}\n {% if rpc_vars.l1BlockNumber %}\n l1_block_number,\n {% endif %}\n {% if rpc_vars.yParity %}\n y_parity,\n {% endif %}\n {% if rpc_vars.accessList %}\n access_list,\n {% endif %}\n {% if rpc_vars.authorizationList %}\n authorization_list,\n {% endif %}\n {% if rpc_vars.tokenRatio %}\n token_ratio,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFee %}\n l1_blob_base_fee,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFeeScalar %}\n l1_blob_base_fee_scalar,\n {% endif %}\n {% if rpc_vars.operatorFeeScalar %}\n operator_fee_scalar,\n {% endif %}\n {% if rpc_vars.operatorFeeConstant %}\n operator_fee_constant,\n {% endif %}\n tx_fee,\n tx_fee_precise,\n tx_succeeded,\n tx_type,\n {% if rpc_vars.timeboosted %}\n timeboosted,\n {% endif %}\n nonce,\n tx_position,\n input_data,\n gas_price,\n gas_used,\n gas_limit,\n cumulative_gas_used,\n effective_gas_price / pow(10, 9) as effective_gas_price,\n r,\n s,\n {% if rpc_vars.sourceHash %}\n source_hash,\n {% endif %}\n v\n FROM\n new_transactions\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp_heal AS block_timestamp,\n tx_hash,\n from_address,\n to_address,\n origin_function_signature,\n {% if rpc_vars.mint %}\n mint,\n mint_precise_raw,\n mint_precise,\n {% endif %}\n {% if rpc_vars.ethValue %}\n eth_value,\n eth_value_precise_raw,\n eth_value_precise,\n {% endif %}\n VALUE,\n value_precise_raw,\n value_precise,\n {% if rpc_vars.maxFeePerGas %}\n max_fee_per_gas,\n {% endif %}\n {% if rpc_vars.maxPriorityFeePerGas %}\n max_priority_fee_per_gas,\n {% endif %}\n {% if rpc_vars.blobVersionedHashes %}\n blob_versioned_hashes,\n {% endif %}\n {% if rpc_vars.maxFeePerBlobGas %}\n max_fee_per_blob_gas, \n {% endif %}\n {% if rpc_vars.blobGasUsed %}\n blob_gas_used_heal AS blob_gas_used,\n {% endif %}\n {% if rpc_vars.blobGasPrice %}\n blob_gas_price_heal AS blob_gas_price,\n {% endif %}\n {% if rpc_vars.l1Fee %}\n l1_fee_precise_heal AS l1_fee,\n l1_fee_precise_raw_heal AS l1_fee_precise_raw,\n l1_fee_precise_heal AS l1_fee_precise,\n {% endif %}\n {% if rpc_vars.l1FeeScalar %}\n l1_fee_scalar_heal AS l1_fee_scalar,\n {% endif %}\n {% if rpc_vars.l1GasUsed %}\n l1_gas_used_heal AS l1_gas_used,\n {% endif %}\n {% if rpc_vars.l1GasPrice %}\n l1_gas_price_heal / pow(10, 9) AS l1_gas_price,\n {% endif %}\n {% if rpc_vars.l1BaseFeeScalar %}\n l1_base_fee_scalar_heal AS l1_base_fee_scalar,\n {% endif %}\n {% if rpc_vars.gasUsedForL1 %}\n gas_used_for_l1_heal AS gas_used_for_l1,\n {% endif %}\n {% if rpc_vars.l1BlockNumber %}\n l1_block_number_heal AS l1_block_number,\n {% endif %}\n {% if rpc_vars.yParity %}\n y_parity,\n {% endif %}\n {% if rpc_vars.accessList %}\n access_list,\n {% endif %}\n {% if rpc_vars.authorizationList %}\n authorization_list,\n {% endif %}\n {% if rpc_vars.tokenRatio %}\n token_ratio_heal AS token_ratio,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFee %}\n l1_blob_base_fee_heal AS l1_blob_base_fee,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFeeScalar %}\n l1_blob_base_fee_scalar_heal AS l1_blob_base_fee_scalar,\n {% endif %}\n {% if rpc_vars.operatorFeeScalar %}\n operator_fee_scalar_heal AS operator_fee_scalar,\n {% endif %}\n {% if rpc_vars.operatorFeeConstant %}\n operator_fee_constant_heal AS operator_fee_constant,\n {% endif %}\n tx_fee_heal AS tx_fee,\n tx_fee_precise_heal AS tx_fee_precise,\n tx_succeeded_heal AS tx_succeeded,\n tx_type_heal AS tx_type,\n {% if rpc_vars.timeboosted %}\n timeboosted_heal AS timeboosted,\n {% endif %}\n nonce,\n tx_position,\n input_data,\n gas_price,\n gas_used_heal AS gas_used,\n gas_limit,\n cumulative_gas_used_heal AS cumulative_gas_used,\n effective_gas_price_heal / pow(10, 9) AS effective_gas_price,\n r,\n s,\n {% if rpc_vars.sourceHash %}\n source_hash,\n {% endif %}\n v\nFROM\n missing_data\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address,\n to_address,\n origin_function_signature,\n VALUE,\n value_precise_raw,\n value_precise,\n tx_fee,\n COALESCE(tx_fee_precise,'0') AS tx_fee_precise,\n tx_succeeded,\n tx_type,\n {% if rpc_vars.timeboosted %}\n timeboosted,\n {% endif %}\n nonce,\n tx_position,\n input_data,\n {% if vars.GLOBAL_PROJECT_NAME == 'arbitrum' %}\n gas_price as gas_price_bid, \n effective_gas_price as gas_price_paid,\n {% else %}\n gas_price,\n effective_gas_price,\n {% endif %}\n gas_used,\n gas_limit,\n cumulative_gas_used,\n {% if rpc_vars.maxFeePerGas %}\n max_fee_per_gas,\n {% endif %}\n {% if rpc_vars.maxPriorityFeePerGas %}\n max_priority_fee_per_gas,\n {% endif %}\n {% if rpc_vars.blobVersionedHashes %}\n blob_versioned_hashes,\n {% endif %}\n {% if rpc_vars.maxFeePerBlobGas %}\n max_fee_per_blob_gas, \n {% endif %}\n {% if rpc_vars.blobGasUsed %}\n blob_gas_used,\n {% endif %}\n {% if rpc_vars.blobGasPrice %}\n blob_gas_price,\n {% endif %}\n {% if rpc_vars.l1Fee %}\n l1_fee,\n l1_fee_precise_raw,\n l1_fee_precise,\n {% endif %}\n {% if rpc_vars.l1FeeScalar %}\n l1_fee_scalar,\n {% endif %}\n {% if rpc_vars.l1GasUsed %}\n l1_gas_used,\n {% endif %}\n {% if rpc_vars.l1GasPrice %}\n l1_gas_price,\n {% endif %}\n {% if rpc_vars.l1BaseFeeScalar %}\n l1_base_fee_scalar,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFee %}\n l1_blob_base_fee,\n {% endif %}\n {% if rpc_vars.l1BlobBaseFeeScalar %}\n l1_blob_base_fee_scalar,\n {% endif %}\n {% if rpc_vars.operatorFeeScalar %}\n operator_fee_scalar,\n {% endif %}\n {% if rpc_vars.operatorFeeConstant %}\n operator_fee_constant,\n {% endif %}\n {% if rpc_vars.mint %}\n mint,\n mint_precise_raw,\n mint_precise,\n {% endif %}\n {% if rpc_vars.ethValue %}\n eth_value,\n eth_value_precise_raw,\n eth_value_precise,\n {% endif %}\n {% if rpc_vars.l1BlockNumber %}\n l1_block_number,\n {% endif %}\n {% if rpc_vars.gasUsedForL1 %}\n gas_used_for_l1,\n {% endif %}\n {% if rpc_vars.yParity %}\n y_parity,\n {% endif %}\n {% if rpc_vars.accessList %}\n access_list,\n {% endif %}\n {% if rpc_vars.authorizationList %}\n authorization_list,\n {% endif %}\n {% if rpc_vars.tokenRatio %}\n token_ratio,\n {% endif %}\n r,\n s,\n v,\n {% if rpc_vars.sourceHash %}\n source_hash,\n {% endif %}\n {{ dbt_utils.generate_surrogate_key(['tx_hash']) }} AS fact_transactions_id,\n {% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n {% else %}\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS inserted_timestamp,\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS modified_timestamp\n {% endif %}\nFROM\n all_transactions qualify ROW_NUMBER() over (\n PARTITION BY fact_transactions_id\n ORDER BY\n\n {% if vars.GLOBAL_PROJECT_NAME == 'monad' %}\n tx_succeeded DESC nulls last,\n block_number DESC,\n block_timestamp DESC nulls last\n {% else %}\n block_number DESC,\n block_timestamp DESC nulls last,\n tx_succeeded DESC nulls last\n {% endif %}\n ) = 1\n*/\n\n\n\nWITH base AS (\n\n SELECT\n block_number,\n tx_position,\n transaction_json\n FROM\n polygon.silver.transactions\n\n\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n polygon.core.fact_transactions)\n \n ),\n transactions_fields AS (\n SELECT\n block_number,\n tx_position,\n transaction_json :blockHash :: STRING AS block_hash,\n transaction_json :blockNumber :: STRING AS block_number_hex,\n transaction_json :from :: STRING AS from_address,\n utils.udf_hex_to_int(\n transaction_json :gas :: STRING\n ) :: bigint AS gas_limit,\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n transaction_json :gasPrice :: STRING\n )) AS gas_price,\n transaction_json :hash :: STRING AS tx_hash,\n transaction_json :input :: STRING AS input_data,\n LEFT(\n input_data,\n 10\n ) AS origin_function_signature,\n \n utils.udf_hex_to_int(\n transaction_json :nonce :: STRING\n ) :: bigint AS nonce,\n transaction_json :r :: STRING AS r,\n transaction_json :s :: STRING AS s,\n \n transaction_json :to :: STRING AS to_address1,\n CASE\n WHEN to_address1 = '' THEN NULL\n ELSE to_address1\n END AS to_address,\n utils.udf_hex_to_int(\n transaction_json :transactionIndex :: STRING\n ) :: bigint AS transaction_index,\n utils.udf_hex_to_int(\n transaction_json :v :: STRING\n ) :: bigint AS v,\n \n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n transaction_json :maxFeePerGas :: STRING\n )\n ) / pow(\n 10,\n 9\n ) AS max_fee_per_gas,\n \n \n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n transaction_json :maxPriorityFeePerGas :: STRING\n )\n ) / pow(\n 10,\n 9\n ) AS max_priority_fee_per_gas,\n \n \n \n \n utils.udf_hex_to_int(\n transaction_json :value :: STRING\n ) AS value_precise_raw,\n utils.udf_decimal_adjust(\n value_precise_raw,\n 18\n ) AS value_precise,\n value_precise :: FLOAT AS VALUE\n \n ,utils.udf_hex_to_int(transaction_json :yParity :: STRING):: bigint AS y_parity\n \n \n ,transaction_json :accessList AS access_list\n \n \n FROM\n base\n ),\n new_transactions AS (\n SELECT\n txs.block_number,\n txs.block_hash,\n b.block_timestamp,\n txs.tx_hash,\n txs.from_address,\n txs.to_address,\n txs.origin_function_signature,\n \n \n txs.value,\n txs.value_precise_raw,\n txs.value_precise,\n \n txs.max_fee_per_gas,\n \n \n txs.max_priority_fee_per_gas,\n \n \n \n \n \n \n \n \n \n \n \n \n \n txs.y_parity,\n \n \n txs.access_list,\n \n \n \n \n \n \n \n txs.gas_price / pow(\n 10,\n 9\n ) AS gas_price,\n utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint AS gas_used,\n txs.gas_limit,\n utils.udf_hex_to_int(\n r.receipts_json :cumulativeGasUsed :: STRING\n ) :: bigint AS cumulative_gas_used,\n utils.udf_hex_to_int(\n r.receipts_json :effectiveGasPrice :: STRING\n ) :: bigint AS effective_gas_price,\n \n utils.udf_decimal_adjust(\n txs.gas_price * utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint,\n 18\n ) AS tx_fee_precise,\n \n COALESCE(\n tx_fee_precise :: FLOAT,\n 0\n ) AS tx_fee,\n CASE\n WHEN r.receipts_json :status :: STRING = '0x1' THEN TRUE\n WHEN r.receipts_json :status :: STRING = '0x0' THEN FALSE\n ELSE NULL\n END AS tx_succeeded,\n utils.udf_hex_to_int(\n r.receipts_json :type :: STRING\n ) :: bigint AS tx_type,\n \n txs.nonce,\n txs.tx_position,\n txs.input_data,\n txs.r,\n txs.s,\n \n txs.v\n FROM\n transactions_fields txs\n LEFT JOIN polygon.core.fact_blocks\n b\n ON txs.block_number = b.block_number\n\n\nAND b.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) :: DATE - 1\n FROM\n polygon.core.fact_transactions\n)\n\nLEFT JOIN polygon.silver.receipts\nr\nON txs.block_number = r.block_number\nAND txs.tx_hash =\n\n r.receipts_json :transactionHash :: STRING\n\n\n\nAND r.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) :: DATE - 1\n FROM\n polygon.core.fact_transactions\n)\n\n)\n\n,\nmissing_data AS (\n SELECT\n t.block_number,\n b.block_timestamp AS block_timestamp_heal,\n t.tx_hash,\n t.from_address,\n t.to_address,\n t.origin_function_signature,\n \n \n t.value,\n t.value_precise_raw,\n t.value_precise,\n \n t.max_fee_per_gas,\n \n \n t.max_priority_fee_per_gas,\n \n \n \n \n \n \n \n \n \n \n \n \n \n t.y_parity,\n \n \n t.access_list,\n \n \n \n \n \n \n \n \n t.gas_price,\n \n utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint AS gas_used_heal,\n t.gas_limit,\n utils.udf_hex_to_int(\n r.receipts_json :cumulativeGasUsed :: STRING\n ) :: bigint AS cumulative_gas_used_heal,\n utils.udf_hex_to_int(\n r.receipts_json :effectiveGasPrice :: STRING\n ) :: bigint AS effective_gas_price_heal,\n \n utils.udf_decimal_adjust(\n t.gas_price * utils.udf_hex_to_int(\n r.receipts_json :gasUsed :: STRING\n ) :: bigint, \n 9\n ) AS tx_fee_precise_heal,\n \n COALESCE(\n tx_fee_precise_heal :: FLOAT,\n 0\n ) AS tx_fee_heal,\n CASE\n WHEN r.receipts_json :status :: STRING = '0x1' THEN TRUE\n WHEN r.receipts_json :status :: STRING = '0x0' THEN FALSE\n ELSE NULL\n END AS tx_succeeded_heal,\n utils.udf_hex_to_int(\n r.receipts_json :type :: STRING\n ) :: bigint AS tx_type_heal,\n \n t.nonce,\n t.tx_position,\n t.input_data,\n t.r,\n t.s,\n \n t.v\n FROM\n polygon.core.fact_transactions\n t\n LEFT JOIN polygon.core.fact_blocks\n b\n ON t.block_number = b.block_number\n LEFT JOIN polygon.silver.receipts\n r\n ON t.block_number = r.block_number\n AND t.tx_hash =\n \n r.receipts_json :transactionHash :: STRING\n \n WHERE\n t.block_timestamp IS NULL\n OR t.tx_succeeded IS NULL\n\n \n)\n,\nall_transactions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address,\n to_address,\n origin_function_signature,\n \n \n VALUE,\n value_precise_raw,\n value_precise,\n \n max_fee_per_gas,\n \n \n max_priority_fee_per_gas,\n \n \n \n \n \n \n \n \n \n \n \n \n \n y_parity,\n \n \n access_list,\n \n \n \n \n \n \n \n tx_fee,\n tx_fee_precise,\n tx_succeeded,\n tx_type,\n \n nonce,\n tx_position,\n input_data,\n gas_price,\n gas_used,\n gas_limit,\n cumulative_gas_used,\n effective_gas_price / pow(10, 9) as effective_gas_price,\n r,\n s,\n \n v\n FROM\n new_transactions\n\n\nUNION ALL\nSELECT\n block_number,\n block_timestamp_heal AS block_timestamp,\n tx_hash,\n from_address,\n to_address,\n origin_function_signature,\n \n \n VALUE,\n value_precise_raw,\n value_precise,\n \n max_fee_per_gas,\n \n \n max_priority_fee_per_gas,\n \n \n \n \n \n \n \n \n \n \n \n \n \n y_parity,\n \n \n access_list,\n \n \n \n \n \n \n \n tx_fee_heal AS tx_fee,\n tx_fee_precise_heal AS tx_fee_precise,\n tx_succeeded_heal AS tx_succeeded,\n tx_type_heal AS tx_type,\n \n nonce,\n tx_position,\n input_data,\n gas_price,\n gas_used_heal AS gas_used,\n gas_limit,\n cumulative_gas_used_heal AS cumulative_gas_used,\n effective_gas_price_heal / pow(10, 9) AS effective_gas_price,\n r,\n s,\n \n v\nFROM\n missing_data\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address,\n to_address,\n origin_function_signature,\n VALUE,\n value_precise_raw,\n value_precise,\n tx_fee,\n COALESCE(tx_fee_precise,'0') AS tx_fee_precise,\n tx_succeeded,\n tx_type,\n \n nonce,\n tx_position,\n input_data,\n \n gas_price,\n effective_gas_price,\n \n gas_used,\n gas_limit,\n cumulative_gas_used,\n \n max_fee_per_gas,\n \n \n max_priority_fee_per_gas,\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n y_parity,\n \n \n access_list,\n \n \n \n r,\n s,\n v,\n \n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS fact_transactions_id,\n \n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n \nFROM\n all_transactions qualify ROW_NUMBER() over (\n PARTITION BY fact_transactions_id\n ORDER BY\n\n \n block_number DESC,\n block_timestamp DESC nulls last,\n tx_succeeded DESC nulls last\n \n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.core__fact_traces": {"database": "polygon", "schema": "core", "name": "core__fact_traces", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/core__fact_traces.sql", "original_file_path": "models/main_package/core/gold/core__fact_traces.sql", "unique_id": "model.fsc_evm.core__fact_traces", "fqn": ["fsc_evm", "main_package", "core", "gold", "core__fact_traces"], "alias": "fact_traces", "checksum": {"name": "sha256", "checksum": "25934360da8255d1c7842816110ce23250915ea857a41e3cf857e54e09947cb9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "core", "traces", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_number,tx_hash,from_address,to_address,trace_address,origin_from_address,origin_to_address,origin_function_signature)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "incremental_predicates": ["polygon.\n \n core.\n \n fact_traces.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n core.\n \n fact_traces__dbt_tmp\n )"]}, "tags": ["gold", "core", "traces", "phase_2"], "description": "## What\n\nThis table contains detailed execution traces of all internal transactions within the EVM. While fact_transactions shows external calls, this table reveals the complete execution flow including contract-to-contract calls, value transfers, and computation paths.\n\n## Key Use Cases\n\n- Analyzing internal contract-to-contract calls and value transfers\n- Debugging failed transactions and understanding revert reasons\n- Tracking contract deployments (CREATE/CREATE2 operations)\n- Understanding DeFi protocol interactions and MEV analysis\n- Monitoring delegatecall patterns and proxy contract usage\n\n## Important Relationships\n\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Self-join for trace tree**: Use `tx_hash` and `trace_address` array relationships\n- **Join with fact_event_logs**: Match execution flow with events\n- **Join with dim_contracts**: Get metadata for interacting contracts\n\n## Commonly-used Fields\n\n- `trace_index`: Sequential execution order within transaction\n- `trace_address`: Array showing position in execution tree\n- `type`: Operation type (CALL, DELEGATECALL, CREATE, etc.)\n- `from_address`: Address initiating this internal call\n- `to_address`: Destination address (NULL for contract creation)\n- `value`: Native token amount transferred\n- `trace_succeeded`: Whether execution completed successfully\n\n## Sample queries\n\n```sql\n-- Analyze internal ETH transfers\nSELECT \n block_timestamp,\n tx_hash,\n trace_index,\n type,\n from_address,\n to_address,\n value,\n gas_used,\n trace_succeeded\nFROM .core.fact_traces\nWHERE value > 0\n AND type = 'CALL'\n AND trace_succeeded\n AND block_timestamp >= CURRENT_DATE - 1\nORDER BY value DESC\nLIMIT 100;\n\n-- Find failed internal transactions with reasons\nSELECT \n tx_hash,\n trace_index,\n from_address,\n to_address,\n type,\n error_reason,\n revert_reason,\n gas,\n gas_used\nFROM .core.fact_traces\nWHERE NOT trace_succeeded\n AND block_timestamp >= CURRENT_DATE - 1\n AND error_reason IS NOT NULL\nLIMIT 50;\n\n-- Trace execution depth analysis\nSELECT \n tx_hash,\n MAX(ARRAY_SIZE(trace_address)) AS max_depth,\n COUNT(*) AS total_traces,\n SUM(CASE WHEN trace_succeeded THEN 0 ELSE 1 END) AS failed_traces,\n SUM(value) AS total_value_transferred\nFROM .core.fact_traces\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1\nHAVING MAX(ARRAY_SIZE(trace_address)) > 3\nORDER BY 2 DESC;\n\n-- Contract interaction patterns\nWITH contract_calls AS (\n SELECT \n from_address AS caller,\n to_address AS callee,\n COUNT(*) AS call_count,\n SUM(value) AS total_value\n FROM .core.fact_traces\n WHERE type IN ('CALL', 'DELEGATECALL')\n AND block_timestamp >= CURRENT_DATE - 7\n GROUP BY 1, 2\n)\nSELECT * FROM contract_calls\nWHERE call_count > 100\nORDER BY call_count DESC;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_INDEX": {"name": "TRACE_INDEX", "description": "Sequential index of trace within the transaction's execution.\n\nExample: 3", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "Address that initiated this specific internal call.\n\nExample: '0x7a250d5630b4cf539739df2c5dacb4c659f2488d'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "Destination address for this internal call.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INPUT": {"name": "INPUT", "description": "Hex-encoded input data for this trace (function call data).\n\nExample: '0xa9059cbb0000000000000000000000001234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "OUTPUT": {"name": "OUTPUT", "description": "Hex-encoded output data from trace execution.\n\nExample: '0x0000000000000000000000000000000000000000000000000000000000000001'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TYPE": {"name": "TYPE", "description": "The type of EVM operation performed.\n\nExample: 'CALL'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_ADDRESS": {"name": "TRACE_ADDRESS", "description": "Array describing the trace's position in the execution tree.\n\nExample: [0, 1, 2]", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SUB_TRACES": {"name": "SUB_TRACES", "description": "Count of immediate child traces spawned by this trace.\n\nExample: 2", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE": {"name": "VALUE", "description": "Amount of native tokens transferred, in token units (not Wei).\n\n**Key Points**:\n- 0 for most contract interactions\n- >0 for native token transfers or payable functions\n- Already converted from Wei (divided by 1e18)\n- Use value_precise for exact amounts\n\n**Example Query**:\n```sql\n-- Daily native token transfer volume\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n SUM(value) AS total_transferred,\n COUNT(*) AS transfer_count\nFROM .core.fact_transactions\nWHERE value > 0 AND tx_succeeded\nGROUP BY 1;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE_PRECISE_RAW": {"name": "VALUE_PRECISE_RAW", "description": "String representation of numeric values preserving exact precision without any adjustments.\n\n**Format**: VARCHAR containing numeric string\n**Purpose**: Prevents floating-point precision loss due to snowflake limitations\n**Contains**: Raw blockchain values (usually in smallest unit)\n\n**Example Values**:\n- \"1000000000000000000\" = 1 ETH in Wei\n- \"50000000\" = 50 USDC (6 decimals)\n\n**Usage**:\n```sql\n-- Exact value comparisons\nWHERE value_precise_raw = '1000000000000000000'\n\n-- Conversion with precision\nCAST(value_precise_raw AS NUMERIC(38,0)) / POW(10, 18) AS value_decimal\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE_PRECISE": {"name": "VALUE_PRECISE", "description": "String representation of numeric values adjusted for human readability while maintaining precision.\n\n**Format**: VARCHAR containing decimal string\n**Adjustments**: Converted from smallest unit to standard unit\n**Purpose**: Human-readable values without precision loss\n\n**Example Values**:\n- \"1.0\" = 1 ETH (converted from Wei)\n- \"50.0\" = 50 USDC (converted from 6 decimal places)\n\n**Best Practices**:\n```sql\n-- Safe numeric operations\nCAST(value_precise AS NUMERIC(38,18))\n\n-- Filtering large values\nWHERE CAST(value_precise AS NUMERIC(38,18)) > 1000\n\n-- Aggregations\nSUM(CAST(value_precise AS NUMERIC(38,18))) AS total_value\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE_HEX": {"name": "VALUE_HEX", "description": "Hexadecimal representation of transaction values as provided by the blockchain RPC.\n\n**Format**: 0x-prefixed hex string\n**Example**: \"0xde0b6b3a7640000\" = 1 ETH in Wei\n\n**Use Cases**:\n- Debugging RPC responses\n- Verifying data transformations\n- Handling special encoding cases\n\n**Conversion Example**:\n- Hex to decimal (conceptual - use built-in conversions)\n- 0xde0b6b3a7640000 = 1000000000000000000 Wei = 1 ETH\n\n**Note**: Most queries should use value or value_precise fields instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS": {"name": "GAS", "description": "Gas allocated to this specific trace execution.\n\nExample: 250000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "Actual gas consumed by this trace execution.\n\nExample: 125673", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_SUCCEEDED": {"name": "TRACE_SUCCEEDED", "description": "Boolean indicating if the trace executed successfully.\n\nExample: true", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ERROR_REASON": {"name": "ERROR_REASON", "description": "Technical reason for trace failure.\n\nExample: 'Out of gas'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REVERT_REASON": {"name": "REVERT_REASON", "description": "Human-readable revert message from contract require/revert statements.\n\nExample: 'Insufficient balance'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Boolean indicator of transaction success.\n\n**Values**:\n- TRUE: Transaction executed successfully\n- FALSE: Transaction failed/reverted", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FACT_TRACES_ID": {"name": "FACT_TRACES_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/core__fact_traces.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "incremental_predicates": ["polygon.\n \n core.\n \n fact_traces.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n core.\n \n fact_traces__dbt_tmp\n )"], "full_refresh": false, "tags": ["gold", "core", "traces", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018438.6553864, "relation_name": "polygon.core.fact_traces", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = vars.MAIN_CORE_GOLD_TRACES_UNIQUE_KEY,\n cluster_by = ['block_timestamp::DATE'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_number,tx_hash,from_address,to_address,trace_address,origin_from_address,origin_to_address,origin_function_signature)\",\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n tags = ['gold','core','traces','phase_2']\n) }}\n\nWITH silver_traces AS (\n SELECT\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address,\n parent_trace_address,\n trace_address_array,\n trace_json,\n traces_id,\n 'regular' AS source\n FROM\n {{ ref(\n 'silver__traces'\n ) }}\n WHERE\n 1 = 1\n\n{% if is_incremental() and not vars.MAIN_CORE_GOLD_TRACES_FULL_RELOAD_ENABLED %}\nAND modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n) {% elif is_incremental() and vars.MAIN_CORE_GOLD_TRACES_FULL_RELOAD_ENABLED %}\nAND block_number BETWEEN (\n SELECT\n MAX(\n block_number\n )\n FROM\n {{ this }}\n)\nAND (\n SELECT\n MAX(\n block_number\n ) + {{ vars.MAIN_CORE_GOLD_TRACES_FULL_RELOAD_BLOCKS_PER_RUN }}\n FROM\n {{ this }}\n)\n{% else %}\n AND block_number <= {{ vars.MAIN_CORE_GOLD_TRACES_FR_MAX_BLOCK }}\n{% endif %}\n\n {% if vars.MAIN_CORE_TRACES_ARB_MODE %}\n UNION ALL\n SELECT\n block_number,\n tx_position,\n trace_address,\n parent_trace_address,\n IFF(\n trace_address = 'ORIGIN',\n ARRAY_CONSTRUCT('ORIGIN'),\n trace_address_array\n ) AS trace_address_array,\n trace_json,\n traces_id,\n 'arb_traces' AS source\n FROM\n silver.arb_traces -- intentionally not using ref() to avoid dependency on silver__arb_traces\n WHERE\n 1 = 1\n\n{% if is_incremental() and not vars.MAIN_CORE_GOLD_TRACES_FULL_RELOAD_ENABLED %}\nAND modified_timestamp > (\n SELECT\n DATEADD('hour', -2, MAX(modified_timestamp))\n FROM\n {{ this }}) {% elif is_incremental() and vars.MAIN_CORE_GOLD_TRACES_FULL_RELOAD_ENABLED %}\n AND block_number BETWEEN (\n SELECT\n MAX(\n block_number\n )\n FROM\n {{ this }}\n )\n AND (\n SELECT\n MAX(\n block_number\n ) + {{ vars.MAIN_CORE_GOLD_TRACES_FULL_RELOAD_BLOCKS_PER_RUN }}\n FROM\n {{ this }}\n )\n {% else %}\n AND block_number <= {{ vars.MAIN_CORE_GOLD_TRACES_FR_MAX_BLOCK }}\n {% endif %}\n {% endif %}\n),\nsub_traces AS (\n SELECT\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n parent_trace_address,\n COUNT(*) AS sub_traces\n FROM\n silver_traces\n GROUP BY\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n parent_trace_address\n),\ntrace_index_array AS (\n SELECT\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address,\n ARRAY_AGG(flat_value) AS number_array\n FROM\n (\n SELECT\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address,\n IFF(\n VALUE :: STRING = 'ORIGIN',\n -1,\n VALUE :: INT\n ) AS flat_value\n FROM\n silver_traces,\n LATERAL FLATTEN (\n input => trace_address_array\n )\n )\n GROUP BY\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address\n),\ntrace_index_sub_traces AS (\n SELECT\n b.block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n b.tx_hash,\n {% else %}\n b.tx_position,\n {% endif %}\n b.trace_address,\n IFNULL(\n sub_traces,\n 0\n ) AS sub_traces,\n number_array,\n ROW_NUMBER() over (\n PARTITION BY b.block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n b.tx_hash\n {% else %}\n b.tx_position\n {% endif %}\n ORDER BY\n number_array ASC\n ) - 1 AS trace_index,\n b.trace_json,\n b.traces_id,\n b.source\n FROM\n silver_traces b\n LEFT JOIN sub_traces s\n ON b.block_number = s.block_number\n AND {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n b.tx_hash = s.tx_hash\n {% else %}\n b.tx_position = s.tx_position\n {% endif %}\n AND b.trace_address = s.parent_trace_address\n JOIN trace_index_array n\n ON b.block_number = n.block_number\n AND {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n b.tx_hash = n.tx_hash\n {% else %}\n b.tx_position = n.tx_position\n {% endif %}\n AND b.trace_address = n.trace_address\n),\nerrored_traces AS (\n SELECT\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address,\n trace_json\n FROM\n trace_index_sub_traces\n WHERE\n trace_json :error :: STRING IS NOT NULL\n),\nerror_logic AS (\n SELECT\n b0.block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n b0.tx_hash,\n {% else %}\n b0.tx_position,\n {% endif %}\n b0.trace_address,\n b0.trace_json :error :: STRING AS error,\n b1.trace_json :error :: STRING AS any_error,\n b2.trace_json :error :: STRING AS origin_error\n FROM\n trace_index_sub_traces b0\n LEFT JOIN errored_traces b1\n ON b0.block_number = b1.block_number\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n AND b0.tx_hash = b1.tx_hash\n {% else %}\n AND b0.tx_position = b1.tx_position\n {% endif %}\n AND b0.trace_address RLIKE CONCAT('^', b1.trace_address, '(_[0-9]+)*$')\n LEFT JOIN errored_traces b2\n ON b0.block_number = b2.block_number\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n AND b0.tx_hash = b2.tx_hash\n {% else %}\n AND b0.tx_position = b2.tx_position\n {% endif %}\n AND b2.trace_address = 'ORIGIN'\n),\naggregated_errors AS (\n SELECT\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address,\n error,\n IFF(MAX(any_error) IS NULL\n AND error IS NULL\n AND origin_error IS NULL, TRUE, FALSE) AS trace_succeeded\n FROM\n error_logic\n GROUP BY\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address,\n error,\n origin_error),\n json_traces AS {% if not vars.MAIN_CORE_TRACES_ARB_MODE %}\n (\n SELECT\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address,\n sub_traces,\n number_array,\n trace_index,\n trace_succeeded,\n trace_json :error :: STRING AS error_reason,\n {% if vars.MAIN_CORE_TRACES_KAIA_MODE %}\n coalesce(\n trace_json :revertReason :: STRING,\n trace_json :reverted :message :: STRING\n ) AS revert_reason,\n {% else %}\n trace_json :revertReason :: STRING AS revert_reason,\n {% endif %}\n trace_json :from :: STRING AS from_address,\n trace_json :to :: STRING AS to_address,\n IFNULL(\n trace_json :value :: STRING,\n '0x0'\n ) AS value_hex,\n IFNULL(\n utils.udf_hex_to_int(\n trace_json :value :: STRING\n ),\n '0'\n ) AS value_precise_raw,\n utils.udf_decimal_adjust(\n value_precise_raw,\n 18\n ) AS value_precise,\n value_precise :: FLOAT AS VALUE,\n utils.udf_hex_to_int(\n trace_json :gas :: STRING\n ) :: INT AS gas,\n utils.udf_hex_to_int(\n trace_json :gasUsed :: STRING\n ) :: INT AS gas_used,\n trace_json :input :: STRING AS input,\n trace_json :output :: STRING AS output,\n trace_json :type :: STRING AS TYPE,\n traces_id\n FROM\n trace_index_sub_traces\n JOIN aggregated_errors USING (\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address\n )\n {% else %}\n (\n SELECT\n block_number,\n tx_position,\n trace_address,\n sub_traces,\n number_array,\n trace_index,\n trace_succeeded,\n trace_json :error :: STRING AS error_reason,\n trace_json :revertReason :: STRING AS revert_reason,\n trace_json :from :: STRING AS from_address,\n trace_json :to :: STRING AS to_address,\n IFNULL(\n trace_json :value :: STRING,\n '0x0'\n ) AS value_hex,\n IFNULL(\n utils.udf_hex_to_int(\n trace_json :value :: STRING\n ),\n '0'\n ) AS value_precise_raw,\n utils.udf_decimal_adjust(\n value_precise_raw,\n 18\n ) AS value_precise,\n value_precise :: FLOAT AS VALUE,\n utils.udf_hex_to_int(\n trace_json :gas :: STRING\n ) :: INT AS gas,\n utils.udf_hex_to_int(\n trace_json :gasUsed :: STRING\n ) :: INT AS gas_used,\n trace_json :input :: STRING AS input,\n trace_json :output :: STRING AS output,\n trace_json :type :: STRING AS TYPE,\n traces_id,\n trace_json :afterEVMTransfers AS after_evm_transfers,\n trace_json :beforeEVMTransfers AS before_evm_transfers\n FROM\n trace_index_sub_traces t0\n JOIN aggregated_errors USING (\n block_number,\n tx_position,\n trace_address\n )\n WHERE\n t0.source <> 'arb_traces'\n UNION ALL\n SELECT\n block_number,\n tx_position,\n trace_address,\n sub_traces,\n number_array,\n trace_index,\n trace_succeeded,\n trace_json :error :: STRING AS error_reason,\n NULL AS revert_reason,\n trace_json :action :from :: STRING AS from_address,\n COALESCE(\n trace_json :action :to :: STRING,\n trace_json :result :address :: STRING\n ) AS to_address,\n IFNULL(\n trace_json :action :value :: STRING,\n '0x0'\n ) AS value_hex,\n IFNULL(\n utils.udf_hex_to_int(\n trace_json :action :value :: STRING\n ),\n '0'\n ) AS value_precise_raw,\n utils.udf_decimal_adjust(\n value_precise_raw,\n 18\n ) AS value_precise,\n value_precise :: FLOAT AS VALUE,\n utils.udf_hex_to_int(\n trace_json :action :gas :: STRING\n ) :: INT AS gas,\n IFNULL(\n utils.udf_hex_to_int(\n trace_json :result :gasUsed :: STRING\n ),\n 0\n ) :: INT AS gas_used,\n COALESCE(\n trace_json :action :input :: STRING,\n trace_json :action :init :: STRING\n ) AS input,\n COALESCE(\n trace_json :result :output :: STRING,\n trace_json :result :code :: STRING\n ) AS output,\n UPPER(\n COALESCE(\n trace_json :action :callType :: STRING,\n trace_json :type :: STRING\n )\n ) AS TYPE,\n traces_id,\n NULL AS after_evm_transfers,\n NULL AS before_evm_transfers\n FROM\n trace_index_sub_traces t0\n JOIN aggregated_errors USING (\n block_number,\n tx_position,\n trace_address\n )\n WHERE\n t0.source = 'arb_traces'\n {% endif %}\n ),\n incremental_traces AS (\n SELECT\n f.block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n f.tx_hash,\n {% else %}\n t.tx_hash,\n {% endif %}\n t.block_timestamp,\n t.origin_function_signature,\n t.from_address AS origin_from_address,\n t.to_address AS origin_to_address,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n t.position AS tx_position,\n {% else %}\n f.tx_position,\n {% endif %}\n f.trace_index,\n f.from_address AS from_address,\n f.to_address AS to_address,\n f.value_hex,\n f.value_precise_raw,\n f.value_precise,\n f.value,\n f.gas,\n f.gas_used,\n f.input,\n f.output,\n f.type,\n f.sub_traces,\n f.error_reason,\n f.revert_reason,\n f.traces_id,\n f.trace_succeeded,\n f.trace_address,\n {% if vars.MAIN_CORE_GOLD_TRACES_TX_STATUS_ENABLED %}\n t.tx_status AS tx_succeeded\n {% else %}\n t.tx_succeeded\n {% endif %}\n {% if vars.MAIN_CORE_TRACES_ARB_MODE %},\n f.before_evm_transfers,\n f.after_evm_transfers\n {% endif %}\n FROM\n json_traces f\n LEFT OUTER JOIN {{ ref('core__fact_transactions') }}\n t\n ON {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n f.tx_hash = t.tx_hash\n {% else %}\n f.tx_position = t.tx_position\n {% endif %}\n AND f.block_number = t.block_number\n\n{% if is_incremental() and not vars.MAIN_CORE_GOLD_TRACES_FULL_RELOAD_ENABLED %}\nAND t.block_timestamp >= (\n SELECT\n DATEADD('hour', -36, MAX(block_timestamp))\n FROM\n {{ this }})\n {% endif %}\n)\n\n{% if is_incremental() %},\nheal_missing_data AS (\n SELECT\n t.block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n t.tx_hash,\n {% else %}\n txs.tx_hash,\n {% endif %}\n txs.block_timestamp AS block_timestamp_heal,\n txs.origin_function_signature AS origin_function_signature_heal,\n txs.from_address AS origin_from_address_heal,\n txs.to_address AS origin_to_address_heal,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n txs.position AS tx_position,\n {% else %}\n t.tx_position,\n {% endif %}\n t.trace_index,\n t.from_address,\n t.to_address,\n t.value_hex,\n t.value_precise_raw,\n t.value_precise,\n t.value,\n t.gas,\n t.gas_used,\n t.input,\n t.output,\n t.type,\n t.sub_traces,\n t.error_reason,\n t.revert_reason,\n t.fact_traces_id AS traces_id,\n t.trace_succeeded,\n t.trace_address,\n {% if vars.MAIN_CORE_GOLD_TRACES_TX_STATUS_ENABLED %}\n txs.tx_status AS tx_succeeded_heal\n {% else %}\n txs.tx_succeeded AS tx_succeeded_heal\n {% endif %}\n {% if vars.MAIN_CORE_TRACES_ARB_MODE %},\n t.before_evm_transfers,\n t.after_evm_transfers\n {% endif %}\n FROM\n {{ this }}\n t\n JOIN {{ ref('core__fact_transactions') }}\n txs\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n ON t.tx_hash = txs.tx_hash\n {% else %}\n ON t.tx_position = txs.tx_position\n {% endif %}\n AND t.block_number = txs.block_number\n WHERE\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n t.tx_position IS NULL\n {% else %}\n t.tx_hash IS NULL\n {% endif %}\n OR t.block_timestamp IS NULL\n OR t.tx_succeeded IS NULL\n)\n{% endif %},\nall_traces AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_position,\n trace_index,\n from_address,\n to_address,\n value_hex,\n value_precise_raw,\n value_precise,\n VALUE,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n sub_traces,\n error_reason,\n revert_reason,\n trace_succeeded,\n trace_address,\n tx_succeeded\n {% if vars.MAIN_CORE_TRACES_ARB_MODE %},\n before_evm_transfers,\n after_evm_transfers\n {% endif %}\n FROM\n incremental_traces\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n block_number,\n tx_hash,\n block_timestamp_heal AS block_timestamp,\n origin_function_signature_heal AS origin_function_signature,\n origin_from_address_heal AS origin_from_address,\n origin_to_address_heal AS origin_to_address,\n tx_position,\n trace_index,\n from_address,\n to_address,\n value_hex,\n value_precise_raw,\n value_precise,\n VALUE,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n sub_traces,\n error_reason,\n revert_reason,\n trace_succeeded,\n trace_address,\n tx_succeeded_heal AS tx_succeeded\n{% if vars.MAIN_CORE_TRACES_ARB_MODE %},\n before_evm_transfers,\n after_evm_transfers\n{% endif %}\nFROM\n heal_missing_data\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n trace_index,\n from_address,\n to_address,\n input,\n output,\n TYPE,\n trace_address,\n sub_traces,\n VALUE,\n value_precise_raw,\n value_precise,\n value_hex,\n gas,\n gas_used,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n {% if vars.MAIN_CORE_TRACES_ARB_MODE %}\n before_evm_transfers,\n after_evm_transfers,\n {% endif %}\n trace_succeeded,\n error_reason,\n revert_reason,\n tx_succeeded,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash', 'trace_index']\n ) }} AS fact_traces_id,\n {% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n {% else %}\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS inserted_timestamp,\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS modified_timestamp\n {% endif %}\nFROM\n all_traces qualify(ROW_NUMBER() over(PARTITION BY block_number, {% if vars.MAIN_CORE_TRACES_SEI_MODE %}tx_hash, {% else %}tx_position, {% endif %} trace_index\nORDER BY\n {% if vars.GLOBAL_PROJECT_NAME == 'monad' %}\n tx_succeeded DESC nulls last,\n block_timestamp DESC nulls last\n {% else %} -- this maybe should be updated everywhere but im not sure it matters since the block number is in the partition\n modified_timestamp DESC, block_timestamp DESC nulls last\n {% endif %}\n)) = 1", "language": "sql", "refs": [{"name": "silver__traces", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.standard_predicate", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__traces", "model.fsc_evm.core__fact_transactions"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/core__fact_traces.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"polygon.\\n \\n core.\\n \\n fact_traces.block_number \\u003e= (\\n SELECT\\n MIN(\\n block_number\\n )\\n FROM\\n polygon.\\n \\n core.\\n \\n fact_traces__dbt_tmp\\n )\"\n ],\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_number,tx_hash,from_address,to_address,trace_address,origin_from_address,origin_to_address,origin_function_signature)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"core\",\n \"traces\",\n \"phase_2\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = vars.MAIN_CORE_GOLD_TRACES_UNIQUE_KEY,\n cluster_by = ['block_timestamp::DATE'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_number,tx_hash,from_address,to_address,trace_address,origin_from_address,origin_to_address,origin_function_signature)\",\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n tags = ['gold','core','traces','phase_2']\n) }}\n\nWITH silver_traces AS (\n SELECT\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address,\n parent_trace_address,\n trace_address_array,\n trace_json,\n traces_id,\n 'regular' AS source\n FROM\n {{ ref(\n 'silver__traces'\n ) }}\n WHERE\n 1 = 1\n\n{% if is_incremental() and not vars.MAIN_CORE_GOLD_TRACES_FULL_RELOAD_ENABLED %}\nAND modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n) {% elif is_incremental() and vars.MAIN_CORE_GOLD_TRACES_FULL_RELOAD_ENABLED %}\nAND block_number BETWEEN (\n SELECT\n MAX(\n block_number\n )\n FROM\n {{ this }}\n)\nAND (\n SELECT\n MAX(\n block_number\n ) + {{ vars.MAIN_CORE_GOLD_TRACES_FULL_RELOAD_BLOCKS_PER_RUN }}\n FROM\n {{ this }}\n)\n{% else %}\n AND block_number <= {{ vars.MAIN_CORE_GOLD_TRACES_FR_MAX_BLOCK }}\n{% endif %}\n\n {% if vars.MAIN_CORE_TRACES_ARB_MODE %}\n UNION ALL\n SELECT\n block_number,\n tx_position,\n trace_address,\n parent_trace_address,\n IFF(\n trace_address = 'ORIGIN',\n ARRAY_CONSTRUCT('ORIGIN'),\n trace_address_array\n ) AS trace_address_array,\n trace_json,\n traces_id,\n 'arb_traces' AS source\n FROM\n silver.arb_traces -- intentionally not using ref() to avoid dependency on silver__arb_traces\n WHERE\n 1 = 1\n\n{% if is_incremental() and not vars.MAIN_CORE_GOLD_TRACES_FULL_RELOAD_ENABLED %}\nAND modified_timestamp > (\n SELECT\n DATEADD('hour', -2, MAX(modified_timestamp))\n FROM\n {{ this }}) {% elif is_incremental() and vars.MAIN_CORE_GOLD_TRACES_FULL_RELOAD_ENABLED %}\n AND block_number BETWEEN (\n SELECT\n MAX(\n block_number\n )\n FROM\n {{ this }}\n )\n AND (\n SELECT\n MAX(\n block_number\n ) + {{ vars.MAIN_CORE_GOLD_TRACES_FULL_RELOAD_BLOCKS_PER_RUN }}\n FROM\n {{ this }}\n )\n {% else %}\n AND block_number <= {{ vars.MAIN_CORE_GOLD_TRACES_FR_MAX_BLOCK }}\n {% endif %}\n {% endif %}\n),\nsub_traces AS (\n SELECT\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n parent_trace_address,\n COUNT(*) AS sub_traces\n FROM\n silver_traces\n GROUP BY\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n parent_trace_address\n),\ntrace_index_array AS (\n SELECT\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address,\n ARRAY_AGG(flat_value) AS number_array\n FROM\n (\n SELECT\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address,\n IFF(\n VALUE :: STRING = 'ORIGIN',\n -1,\n VALUE :: INT\n ) AS flat_value\n FROM\n silver_traces,\n LATERAL FLATTEN (\n input => trace_address_array\n )\n )\n GROUP BY\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address\n),\ntrace_index_sub_traces AS (\n SELECT\n b.block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n b.tx_hash,\n {% else %}\n b.tx_position,\n {% endif %}\n b.trace_address,\n IFNULL(\n sub_traces,\n 0\n ) AS sub_traces,\n number_array,\n ROW_NUMBER() over (\n PARTITION BY b.block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n b.tx_hash\n {% else %}\n b.tx_position\n {% endif %}\n ORDER BY\n number_array ASC\n ) - 1 AS trace_index,\n b.trace_json,\n b.traces_id,\n b.source\n FROM\n silver_traces b\n LEFT JOIN sub_traces s\n ON b.block_number = s.block_number\n AND {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n b.tx_hash = s.tx_hash\n {% else %}\n b.tx_position = s.tx_position\n {% endif %}\n AND b.trace_address = s.parent_trace_address\n JOIN trace_index_array n\n ON b.block_number = n.block_number\n AND {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n b.tx_hash = n.tx_hash\n {% else %}\n b.tx_position = n.tx_position\n {% endif %}\n AND b.trace_address = n.trace_address\n),\nerrored_traces AS (\n SELECT\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address,\n trace_json\n FROM\n trace_index_sub_traces\n WHERE\n trace_json :error :: STRING IS NOT NULL\n),\nerror_logic AS (\n SELECT\n b0.block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n b0.tx_hash,\n {% else %}\n b0.tx_position,\n {% endif %}\n b0.trace_address,\n b0.trace_json :error :: STRING AS error,\n b1.trace_json :error :: STRING AS any_error,\n b2.trace_json :error :: STRING AS origin_error\n FROM\n trace_index_sub_traces b0\n LEFT JOIN errored_traces b1\n ON b0.block_number = b1.block_number\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n AND b0.tx_hash = b1.tx_hash\n {% else %}\n AND b0.tx_position = b1.tx_position\n {% endif %}\n AND b0.trace_address RLIKE CONCAT('^', b1.trace_address, '(_[0-9]+)*$')\n LEFT JOIN errored_traces b2\n ON b0.block_number = b2.block_number\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n AND b0.tx_hash = b2.tx_hash\n {% else %}\n AND b0.tx_position = b2.tx_position\n {% endif %}\n AND b2.trace_address = 'ORIGIN'\n),\naggregated_errors AS (\n SELECT\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address,\n error,\n IFF(MAX(any_error) IS NULL\n AND error IS NULL\n AND origin_error IS NULL, TRUE, FALSE) AS trace_succeeded\n FROM\n error_logic\n GROUP BY\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address,\n error,\n origin_error),\n json_traces AS {% if not vars.MAIN_CORE_TRACES_ARB_MODE %}\n (\n SELECT\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address,\n sub_traces,\n number_array,\n trace_index,\n trace_succeeded,\n trace_json :error :: STRING AS error_reason,\n {% if vars.MAIN_CORE_TRACES_KAIA_MODE %}\n coalesce(\n trace_json :revertReason :: STRING,\n trace_json :reverted :message :: STRING\n ) AS revert_reason,\n {% else %}\n trace_json :revertReason :: STRING AS revert_reason,\n {% endif %}\n trace_json :from :: STRING AS from_address,\n trace_json :to :: STRING AS to_address,\n IFNULL(\n trace_json :value :: STRING,\n '0x0'\n ) AS value_hex,\n IFNULL(\n utils.udf_hex_to_int(\n trace_json :value :: STRING\n ),\n '0'\n ) AS value_precise_raw,\n utils.udf_decimal_adjust(\n value_precise_raw,\n 18\n ) AS value_precise,\n value_precise :: FLOAT AS VALUE,\n utils.udf_hex_to_int(\n trace_json :gas :: STRING\n ) :: INT AS gas,\n utils.udf_hex_to_int(\n trace_json :gasUsed :: STRING\n ) :: INT AS gas_used,\n trace_json :input :: STRING AS input,\n trace_json :output :: STRING AS output,\n trace_json :type :: STRING AS TYPE,\n traces_id\n FROM\n trace_index_sub_traces\n JOIN aggregated_errors USING (\n block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n tx_hash,\n {% else %}\n tx_position,\n {% endif %}\n trace_address\n )\n {% else %}\n (\n SELECT\n block_number,\n tx_position,\n trace_address,\n sub_traces,\n number_array,\n trace_index,\n trace_succeeded,\n trace_json :error :: STRING AS error_reason,\n trace_json :revertReason :: STRING AS revert_reason,\n trace_json :from :: STRING AS from_address,\n trace_json :to :: STRING AS to_address,\n IFNULL(\n trace_json :value :: STRING,\n '0x0'\n ) AS value_hex,\n IFNULL(\n utils.udf_hex_to_int(\n trace_json :value :: STRING\n ),\n '0'\n ) AS value_precise_raw,\n utils.udf_decimal_adjust(\n value_precise_raw,\n 18\n ) AS value_precise,\n value_precise :: FLOAT AS VALUE,\n utils.udf_hex_to_int(\n trace_json :gas :: STRING\n ) :: INT AS gas,\n utils.udf_hex_to_int(\n trace_json :gasUsed :: STRING\n ) :: INT AS gas_used,\n trace_json :input :: STRING AS input,\n trace_json :output :: STRING AS output,\n trace_json :type :: STRING AS TYPE,\n traces_id,\n trace_json :afterEVMTransfers AS after_evm_transfers,\n trace_json :beforeEVMTransfers AS before_evm_transfers\n FROM\n trace_index_sub_traces t0\n JOIN aggregated_errors USING (\n block_number,\n tx_position,\n trace_address\n )\n WHERE\n t0.source <> 'arb_traces'\n UNION ALL\n SELECT\n block_number,\n tx_position,\n trace_address,\n sub_traces,\n number_array,\n trace_index,\n trace_succeeded,\n trace_json :error :: STRING AS error_reason,\n NULL AS revert_reason,\n trace_json :action :from :: STRING AS from_address,\n COALESCE(\n trace_json :action :to :: STRING,\n trace_json :result :address :: STRING\n ) AS to_address,\n IFNULL(\n trace_json :action :value :: STRING,\n '0x0'\n ) AS value_hex,\n IFNULL(\n utils.udf_hex_to_int(\n trace_json :action :value :: STRING\n ),\n '0'\n ) AS value_precise_raw,\n utils.udf_decimal_adjust(\n value_precise_raw,\n 18\n ) AS value_precise,\n value_precise :: FLOAT AS VALUE,\n utils.udf_hex_to_int(\n trace_json :action :gas :: STRING\n ) :: INT AS gas,\n IFNULL(\n utils.udf_hex_to_int(\n trace_json :result :gasUsed :: STRING\n ),\n 0\n ) :: INT AS gas_used,\n COALESCE(\n trace_json :action :input :: STRING,\n trace_json :action :init :: STRING\n ) AS input,\n COALESCE(\n trace_json :result :output :: STRING,\n trace_json :result :code :: STRING\n ) AS output,\n UPPER(\n COALESCE(\n trace_json :action :callType :: STRING,\n trace_json :type :: STRING\n )\n ) AS TYPE,\n traces_id,\n NULL AS after_evm_transfers,\n NULL AS before_evm_transfers\n FROM\n trace_index_sub_traces t0\n JOIN aggregated_errors USING (\n block_number,\n tx_position,\n trace_address\n )\n WHERE\n t0.source = 'arb_traces'\n {% endif %}\n ),\n incremental_traces AS (\n SELECT\n f.block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n f.tx_hash,\n {% else %}\n t.tx_hash,\n {% endif %}\n t.block_timestamp,\n t.origin_function_signature,\n t.from_address AS origin_from_address,\n t.to_address AS origin_to_address,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n t.position AS tx_position,\n {% else %}\n f.tx_position,\n {% endif %}\n f.trace_index,\n f.from_address AS from_address,\n f.to_address AS to_address,\n f.value_hex,\n f.value_precise_raw,\n f.value_precise,\n f.value,\n f.gas,\n f.gas_used,\n f.input,\n f.output,\n f.type,\n f.sub_traces,\n f.error_reason,\n f.revert_reason,\n f.traces_id,\n f.trace_succeeded,\n f.trace_address,\n {% if vars.MAIN_CORE_GOLD_TRACES_TX_STATUS_ENABLED %}\n t.tx_status AS tx_succeeded\n {% else %}\n t.tx_succeeded\n {% endif %}\n {% if vars.MAIN_CORE_TRACES_ARB_MODE %},\n f.before_evm_transfers,\n f.after_evm_transfers\n {% endif %}\n FROM\n json_traces f\n LEFT OUTER JOIN {{ ref('core__fact_transactions') }}\n t\n ON {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n f.tx_hash = t.tx_hash\n {% else %}\n f.tx_position = t.tx_position\n {% endif %}\n AND f.block_number = t.block_number\n\n{% if is_incremental() and not vars.MAIN_CORE_GOLD_TRACES_FULL_RELOAD_ENABLED %}\nAND t.block_timestamp >= (\n SELECT\n DATEADD('hour', -36, MAX(block_timestamp))\n FROM\n {{ this }})\n {% endif %}\n)\n\n{% if is_incremental() %},\nheal_missing_data AS (\n SELECT\n t.block_number,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n t.tx_hash,\n {% else %}\n txs.tx_hash,\n {% endif %}\n txs.block_timestamp AS block_timestamp_heal,\n txs.origin_function_signature AS origin_function_signature_heal,\n txs.from_address AS origin_from_address_heal,\n txs.to_address AS origin_to_address_heal,\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n txs.position AS tx_position,\n {% else %}\n t.tx_position,\n {% endif %}\n t.trace_index,\n t.from_address,\n t.to_address,\n t.value_hex,\n t.value_precise_raw,\n t.value_precise,\n t.value,\n t.gas,\n t.gas_used,\n t.input,\n t.output,\n t.type,\n t.sub_traces,\n t.error_reason,\n t.revert_reason,\n t.fact_traces_id AS traces_id,\n t.trace_succeeded,\n t.trace_address,\n {% if vars.MAIN_CORE_GOLD_TRACES_TX_STATUS_ENABLED %}\n txs.tx_status AS tx_succeeded_heal\n {% else %}\n txs.tx_succeeded AS tx_succeeded_heal\n {% endif %}\n {% if vars.MAIN_CORE_TRACES_ARB_MODE %},\n t.before_evm_transfers,\n t.after_evm_transfers\n {% endif %}\n FROM\n {{ this }}\n t\n JOIN {{ ref('core__fact_transactions') }}\n txs\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n ON t.tx_hash = txs.tx_hash\n {% else %}\n ON t.tx_position = txs.tx_position\n {% endif %}\n AND t.block_number = txs.block_number\n WHERE\n {% if vars.MAIN_CORE_TRACES_SEI_MODE %}\n t.tx_position IS NULL\n {% else %}\n t.tx_hash IS NULL\n {% endif %}\n OR t.block_timestamp IS NULL\n OR t.tx_succeeded IS NULL\n)\n{% endif %},\nall_traces AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_position,\n trace_index,\n from_address,\n to_address,\n value_hex,\n value_precise_raw,\n value_precise,\n VALUE,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n sub_traces,\n error_reason,\n revert_reason,\n trace_succeeded,\n trace_address,\n tx_succeeded\n {% if vars.MAIN_CORE_TRACES_ARB_MODE %},\n before_evm_transfers,\n after_evm_transfers\n {% endif %}\n FROM\n incremental_traces\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n block_number,\n tx_hash,\n block_timestamp_heal AS block_timestamp,\n origin_function_signature_heal AS origin_function_signature,\n origin_from_address_heal AS origin_from_address,\n origin_to_address_heal AS origin_to_address,\n tx_position,\n trace_index,\n from_address,\n to_address,\n value_hex,\n value_precise_raw,\n value_precise,\n VALUE,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n sub_traces,\n error_reason,\n revert_reason,\n trace_succeeded,\n trace_address,\n tx_succeeded_heal AS tx_succeeded\n{% if vars.MAIN_CORE_TRACES_ARB_MODE %},\n before_evm_transfers,\n after_evm_transfers\n{% endif %}\nFROM\n heal_missing_data\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n trace_index,\n from_address,\n to_address,\n input,\n output,\n TYPE,\n trace_address,\n sub_traces,\n VALUE,\n value_precise_raw,\n value_precise,\n value_hex,\n gas,\n gas_used,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n {% if vars.MAIN_CORE_TRACES_ARB_MODE %}\n before_evm_transfers,\n after_evm_transfers,\n {% endif %}\n trace_succeeded,\n error_reason,\n revert_reason,\n tx_succeeded,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash', 'trace_index']\n ) }} AS fact_traces_id,\n {% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n {% else %}\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS inserted_timestamp,\n CASE WHEN block_timestamp >= date_trunc('hour',SYSDATE()) - interval '6 hours' THEN SYSDATE() \n ELSE GREATEST(block_timestamp, dateadd('day', -10, SYSDATE())) END AS modified_timestamp\n {% endif %}\nFROM\n all_traces qualify(ROW_NUMBER() over(PARTITION BY block_number, {% if vars.MAIN_CORE_TRACES_SEI_MODE %}tx_hash, {% else %}tx_position, {% endif %} trace_index\nORDER BY\n {% if vars.GLOBAL_PROJECT_NAME == 'monad' %}\n tx_succeeded DESC nulls last,\n block_timestamp DESC nulls last\n {% else %} -- this maybe should be updated everywhere but im not sure it matters since the block number is in the partition\n modified_timestamp DESC, block_timestamp DESC nulls last\n {% endif %}\n)) = 1\n*/\n\n\n\nWITH silver_traces AS (\n SELECT\n block_number,\n \n tx_position,\n \n trace_address,\n parent_trace_address,\n trace_address_array,\n trace_json,\n traces_id,\n 'regular' AS source\n FROM\n polygon.silver.traces\n WHERE\n 1 = 1\n\n\nAND modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n polygon.core.fact_traces\n) \n\n \n),\nsub_traces AS (\n SELECT\n block_number,\n \n tx_position,\n \n parent_trace_address,\n COUNT(*) AS sub_traces\n FROM\n silver_traces\n GROUP BY\n block_number,\n \n tx_position,\n \n parent_trace_address\n),\ntrace_index_array AS (\n SELECT\n block_number,\n \n tx_position,\n \n trace_address,\n ARRAY_AGG(flat_value) AS number_array\n FROM\n (\n SELECT\n block_number,\n \n tx_position,\n \n trace_address,\n IFF(\n VALUE :: STRING = 'ORIGIN',\n -1,\n VALUE :: INT\n ) AS flat_value\n FROM\n silver_traces,\n LATERAL FLATTEN (\n input => trace_address_array\n )\n )\n GROUP BY\n block_number,\n \n tx_position,\n \n trace_address\n),\ntrace_index_sub_traces AS (\n SELECT\n b.block_number,\n \n b.tx_position,\n \n b.trace_address,\n IFNULL(\n sub_traces,\n 0\n ) AS sub_traces,\n number_array,\n ROW_NUMBER() over (\n PARTITION BY b.block_number,\n \n b.tx_position\n \n ORDER BY\n number_array ASC\n ) - 1 AS trace_index,\n b.trace_json,\n b.traces_id,\n b.source\n FROM\n silver_traces b\n LEFT JOIN sub_traces s\n ON b.block_number = s.block_number\n AND \n b.tx_position = s.tx_position\n \n AND b.trace_address = s.parent_trace_address\n JOIN trace_index_array n\n ON b.block_number = n.block_number\n AND \n b.tx_position = n.tx_position\n \n AND b.trace_address = n.trace_address\n),\nerrored_traces AS (\n SELECT\n block_number,\n \n tx_position,\n \n trace_address,\n trace_json\n FROM\n trace_index_sub_traces\n WHERE\n trace_json :error :: STRING IS NOT NULL\n),\nerror_logic AS (\n SELECT\n b0.block_number,\n \n b0.tx_position,\n \n b0.trace_address,\n b0.trace_json :error :: STRING AS error,\n b1.trace_json :error :: STRING AS any_error,\n b2.trace_json :error :: STRING AS origin_error\n FROM\n trace_index_sub_traces b0\n LEFT JOIN errored_traces b1\n ON b0.block_number = b1.block_number\n \n AND b0.tx_position = b1.tx_position\n \n AND b0.trace_address RLIKE CONCAT('^', b1.trace_address, '(_[0-9]+)*$')\n LEFT JOIN errored_traces b2\n ON b0.block_number = b2.block_number\n \n AND b0.tx_position = b2.tx_position\n \n AND b2.trace_address = 'ORIGIN'\n),\naggregated_errors AS (\n SELECT\n block_number,\n \n tx_position,\n \n trace_address,\n error,\n IFF(MAX(any_error) IS NULL\n AND error IS NULL\n AND origin_error IS NULL, TRUE, FALSE) AS trace_succeeded\n FROM\n error_logic\n GROUP BY\n block_number,\n \n tx_position,\n \n trace_address,\n error,\n origin_error),\n json_traces AS \n (\n SELECT\n block_number,\n \n tx_position,\n \n trace_address,\n sub_traces,\n number_array,\n trace_index,\n trace_succeeded,\n trace_json :error :: STRING AS error_reason,\n \n trace_json :revertReason :: STRING AS revert_reason,\n \n trace_json :from :: STRING AS from_address,\n trace_json :to :: STRING AS to_address,\n IFNULL(\n trace_json :value :: STRING,\n '0x0'\n ) AS value_hex,\n IFNULL(\n utils.udf_hex_to_int(\n trace_json :value :: STRING\n ),\n '0'\n ) AS value_precise_raw,\n utils.udf_decimal_adjust(\n value_precise_raw,\n 18\n ) AS value_precise,\n value_precise :: FLOAT AS VALUE,\n utils.udf_hex_to_int(\n trace_json :gas :: STRING\n ) :: INT AS gas,\n utils.udf_hex_to_int(\n trace_json :gasUsed :: STRING\n ) :: INT AS gas_used,\n trace_json :input :: STRING AS input,\n trace_json :output :: STRING AS output,\n trace_json :type :: STRING AS TYPE,\n traces_id\n FROM\n trace_index_sub_traces\n JOIN aggregated_errors USING (\n block_number,\n \n tx_position,\n \n trace_address\n )\n \n ),\n incremental_traces AS (\n SELECT\n f.block_number,\n \n t.tx_hash,\n \n t.block_timestamp,\n t.origin_function_signature,\n t.from_address AS origin_from_address,\n t.to_address AS origin_to_address,\n \n f.tx_position,\n \n f.trace_index,\n f.from_address AS from_address,\n f.to_address AS to_address,\n f.value_hex,\n f.value_precise_raw,\n f.value_precise,\n f.value,\n f.gas,\n f.gas_used,\n f.input,\n f.output,\n f.type,\n f.sub_traces,\n f.error_reason,\n f.revert_reason,\n f.traces_id,\n f.trace_succeeded,\n f.trace_address,\n \n t.tx_succeeded\n \n \n FROM\n json_traces f\n LEFT OUTER JOIN polygon.core.fact_transactions\n t\n ON \n f.tx_position = t.tx_position\n \n AND f.block_number = t.block_number\n\n\nAND t.block_timestamp >= (\n SELECT\n DATEADD('hour', -36, MAX(block_timestamp))\n FROM\n polygon.core.fact_traces)\n \n)\n\n,\nheal_missing_data AS (\n SELECT\n t.block_number,\n \n txs.tx_hash,\n \n txs.block_timestamp AS block_timestamp_heal,\n txs.origin_function_signature AS origin_function_signature_heal,\n txs.from_address AS origin_from_address_heal,\n txs.to_address AS origin_to_address_heal,\n \n t.tx_position,\n \n t.trace_index,\n t.from_address,\n t.to_address,\n t.value_hex,\n t.value_precise_raw,\n t.value_precise,\n t.value,\n t.gas,\n t.gas_used,\n t.input,\n t.output,\n t.type,\n t.sub_traces,\n t.error_reason,\n t.revert_reason,\n t.fact_traces_id AS traces_id,\n t.trace_succeeded,\n t.trace_address,\n \n txs.tx_succeeded AS tx_succeeded_heal\n \n \n FROM\n polygon.core.fact_traces\n t\n JOIN polygon.core.fact_transactions\n txs\n \n ON t.tx_position = txs.tx_position\n \n AND t.block_number = txs.block_number\n WHERE\n \n t.tx_hash IS NULL\n \n OR t.block_timestamp IS NULL\n OR t.tx_succeeded IS NULL\n)\n,\nall_traces AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_position,\n trace_index,\n from_address,\n to_address,\n value_hex,\n value_precise_raw,\n value_precise,\n VALUE,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n sub_traces,\n error_reason,\n revert_reason,\n trace_succeeded,\n trace_address,\n tx_succeeded\n \n FROM\n incremental_traces\n\n\nUNION ALL\nSELECT\n block_number,\n tx_hash,\n block_timestamp_heal AS block_timestamp,\n origin_function_signature_heal AS origin_function_signature,\n origin_from_address_heal AS origin_from_address,\n origin_to_address_heal AS origin_to_address,\n tx_position,\n trace_index,\n from_address,\n to_address,\n value_hex,\n value_precise_raw,\n value_precise,\n VALUE,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n sub_traces,\n error_reason,\n revert_reason,\n trace_succeeded,\n trace_address,\n tx_succeeded_heal AS tx_succeeded\n\nFROM\n heal_missing_data\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n trace_index,\n from_address,\n to_address,\n input,\n output,\n TYPE,\n trace_address,\n sub_traces,\n VALUE,\n value_precise_raw,\n value_precise,\n value_hex,\n gas,\n gas_used,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n \n trace_succeeded,\n error_reason,\n revert_reason,\n tx_succeeded,\n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(trace_index as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS fact_traces_id,\n \n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n \nFROM\n all_traces qualify(ROW_NUMBER() over(PARTITION BY block_number, tx_position, trace_index\nORDER BY\n -- this maybe should be updated everywhere but im not sure it matters since the block number is in the partition\n modified_timestamp DESC, block_timestamp DESC nulls last\n \n)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__fact_traces_recent": {"database": "polygon", "schema": "test_gold", "name": "test_gold__fact_traces_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/tests/traces/test_gold__fact_traces_recent.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.sql", "unique_id": "model.fsc_evm.test_gold__fact_traces_recent", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "test_gold__fact_traces_recent"], "alias": "fact_traces_recent", "checksum": {"name": "sha256", "checksum": "618213e9f2b39f459f3f785e44e8aadb6a6732381b29fe3d7a470c94dd5cd90c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "core", "recent_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "core", "recent_test", "phase_2"], "description": "This is a view used to test the last three days of fact traces.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_INDEX": {"name": "TRACE_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INPUT": {"name": "INPUT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TYPE": {"name": "TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_ADDRESS": {"name": "TRACE_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SUB_TRACES": {"name": "SUB_TRACES", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE": {"name": "VALUE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE_PRECISE_RAW": {"name": "VALUE_PRECISE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE_PRECISE": {"name": "VALUE_PRECISE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE_HEX": {"name": "VALUE_HEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS": {"name": "GAS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_SUCCEEDED": {"name": "TRACE_SUCCEEDED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FACT_TRACES_ID": {"name": "FACT_TRACES_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "core", "recent_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018438.6810691, "relation_name": "polygon.test_gold.fact_traces_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','recent_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__fact_traces') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces", "model.fsc_evm._block_lookback"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.sql", "compiled": true, "compiled_code": "\n\n\n\nwith __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n) /* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"core\",\n \"recent_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','recent_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__fact_traces') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.core.fact_traces\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n __dbt__cte___block_lookback\n )\n\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.fsc_evm._block_lookback", "sql": " __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__fact_traces_full": {"database": "polygon", "schema": "test_gold", "name": "test_gold__fact_traces_full", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/tests/traces/test_gold__fact_traces_full.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.sql", "unique_id": "model.fsc_evm.test_gold__fact_traces_full", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "test_gold__fact_traces_full"], "alias": "fact_traces_full", "checksum": {"name": "sha256", "checksum": "a832cf364ef54a7f23993dff6b931835456a8e7c59c5fe8def1fee878ebfffe7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "core", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "core", "full_test", "phase_2"], "description": "This is a view used to test all of the gold fact traces model.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_INDEX": {"name": "TRACE_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INPUT": {"name": "INPUT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TYPE": {"name": "TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_ADDRESS": {"name": "TRACE_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SUB_TRACES": {"name": "SUB_TRACES", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE": {"name": "VALUE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE_PRECISE_RAW": {"name": "VALUE_PRECISE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE_PRECISE": {"name": "VALUE_PRECISE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE_HEX": {"name": "VALUE_HEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS": {"name": "GAS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_SUCCEEDED": {"name": "TRACE_SUCCEEDED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FACT_TRACES_ID": {"name": "FACT_TRACES_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "core", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018438.8858922, "relation_name": "polygon.test_gold.fact_traces_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__fact_traces') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"core\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__fact_traces') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.core.fact_traces\n\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__ez_token_transfers_recent": {"database": "polygon", "schema": "test_gold", "name": "test_gold__ez_token_transfers_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.sql", "unique_id": "model.fsc_evm.test_gold__ez_token_transfers_recent", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "test_gold__ez_token_transfers_recent"], "alias": "ez_token_transfers_recent", "checksum": {"name": "sha256", "checksum": "6e34a1b36fbc500144f51268b5c2234cd5f043726d5b4451df5922f3ea4a26d8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "core", "recent_test", "transfers", "ez", "phase_3"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "core", "recent_test", "transfers", "ez", "phase_3"], "description": "This is a view used to test the last three days of `ez_token_transfers` data.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "RAW_AMOUNT": {"name": "RAW_AMOUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_TOKEN_TRANSFERS_ID": {"name": "EZ_TOKEN_TRANSFERS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "core", "recent_test", "transfers", "ez", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018439.086806, "relation_name": "polygon.test_gold.ez_token_transfers_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','recent_test','transfers','ez','phase_3']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__ez_token_transfers') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "core__ez_token_transfers", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_token_transfers", "model.fsc_evm._block_lookback"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.sql", "compiled": true, "compiled_code": "\n\n\n\nwith __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n) /* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"core\",\n \"recent_test\",\n \"transfers\",\n \"ez\",\n \"phase_3\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','recent_test','transfers','ez','phase_3']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__ez_token_transfers') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.core.ez_token_transfers\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n __dbt__cte___block_lookback\n )\n\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.fsc_evm._block_lookback", "sql": " __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__ez_token_transfers_full": {"database": "polygon", "schema": "test_gold", "name": "test_gold__ez_token_transfers_full", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.sql", "unique_id": "model.fsc_evm.test_gold__ez_token_transfers_full", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "test_gold__ez_token_transfers_full"], "alias": "ez_token_transfers_full", "checksum": {"name": "sha256", "checksum": "8c17e033c6052d8ff8f14436ff2576240919066f6928822fc08c5bafb786ae07"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "core", "full_test", "transfers", "ez", "phase_3"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "core", "full_test", "transfers", "ez", "phase_3"], "description": "This is a view used to test all of the `ez_token_transfers` data.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "RAW_AMOUNT": {"name": "RAW_AMOUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_TOKEN_TRANSFERS_ID": {"name": "EZ_TOKEN_TRANSFERS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "core", "full_test", "transfers", "ez", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018439.1748435, "relation_name": "polygon.test_gold.ez_token_transfers_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','full_test','transfers','ez','phase_3']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__ez_token_transfers') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "core__ez_token_transfers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_token_transfers"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"core\",\n \"full_test\",\n \"transfers\",\n \"ez\",\n \"phase_3\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','full_test','transfers','ez','phase_3']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__ez_token_transfers') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.core.ez_token_transfers\n\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__fact_event_logs_full": {"database": "polygon", "schema": "test_gold", "name": "test_gold__fact_event_logs_full", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.sql", "unique_id": "model.fsc_evm.test_gold__fact_event_logs_full", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "test_gold__fact_event_logs_full"], "alias": "fact_event_logs_full", "checksum": {"name": "sha256", "checksum": "1bc055abd02e147035f62943e189abd8e9f8bdd9283b15d375b3b2ce091eb3f8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "core", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "core", "full_test", "phase_2"], "description": "This is a view used to test all of the gold fact event logs model.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPICS": {"name": "TOPICS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DATA": {"name": "DATA", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_REMOVED": {"name": "EVENT_REMOVED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FACT_EVENT_LOGS_ID": {"name": "FACT_EVENT_LOGS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "core", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018439.2631185, "relation_name": "polygon.test_gold.fact_event_logs_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__fact_event_logs') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"core\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__fact_event_logs') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.core.fact_event_logs\n\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__fact_event_logs_recent": {"database": "polygon", "schema": "test_gold", "name": "test_gold__fact_event_logs_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.sql", "unique_id": "model.fsc_evm.test_gold__fact_event_logs_recent", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "test_gold__fact_event_logs_recent"], "alias": "fact_event_logs_recent", "checksum": {"name": "sha256", "checksum": "c273d01da47b4764940d521fc869b43b77201e6d63cc9eb4a82c2846c347d0df"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "core", "recent_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "core", "recent_test", "phase_2"], "description": "This is a view used to test the last three days of fact event logs.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOPICS": {"name": "TOPICS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DATA": {"name": "DATA", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_REMOVED": {"name": "EVENT_REMOVED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FACT_EVENT_LOGS_ID": {"name": "FACT_EVENT_LOGS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "core", "recent_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018439.4337707, "relation_name": "polygon.test_gold.fact_event_logs_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','recent_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__fact_event_logs') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm._block_lookback"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.sql", "compiled": true, "compiled_code": "\n\n\n\nwith __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n) /* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"core\",\n \"recent_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','recent_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__fact_event_logs') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.core.fact_event_logs\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n __dbt__cte___block_lookback\n )\n\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.fsc_evm._block_lookback", "sql": " __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__fact_blocks_full": {"database": "polygon", "schema": "test_gold", "name": "test_gold__fact_blocks_full", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.sql", "unique_id": "model.fsc_evm.test_gold__fact_blocks_full", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "test_gold__fact_blocks_full"], "alias": "fact_blocks_full", "checksum": {"name": "sha256", "checksum": "4c1c150f620a4431ca2e66269d4d3c655a25a501bacda1a441aa6174859d53fa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "core", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "core", "full_test", "phase_2"], "description": "This is a view used to test all of the gold fact blocks model.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_HASH": {"name": "BLOCK_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NETWORK": {"name": "NETWORK", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_COUNT": {"name": "TX_COUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SIZE": {"name": "SIZE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MINER": {"name": "MINER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EXTRA_DATA": {"name": "EXTRA_DATA", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PARENT_HASH": {"name": "PARENT_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_LIMIT": {"name": "GAS_LIMIT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DIFFICULTY": {"name": "DIFFICULTY", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SHA3_UNCLES": {"name": "SHA3_UNCLES", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UNCLE_BLOCKS": {"name": "UNCLE_BLOCKS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NONCE": {"name": "NONCE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "RECEIPTS_ROOT": {"name": "RECEIPTS_ROOT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STATE_ROOT": {"name": "STATE_ROOT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRANSACTIONS_ROOT": {"name": "TRANSACTIONS_ROOT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOGS_BLOOM": {"name": "LOGS_BLOOM", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FACT_BLOCKS_ID": {"name": "FACT_BLOCKS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "core", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018439.8402379, "relation_name": "polygon.test_gold.fact_blocks_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__fact_blocks') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "core__fact_blocks", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_blocks"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"core\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__fact_blocks') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.core.fact_blocks\n\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__fact_blocks_recent": {"database": "polygon", "schema": "test_gold", "name": "test_gold__fact_blocks_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.sql", "unique_id": "model.fsc_evm.test_gold__fact_blocks_recent", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "test_gold__fact_blocks_recent"], "alias": "fact_blocks_recent", "checksum": {"name": "sha256", "checksum": "4ab5c2b3cd16ba3343635c2ef638ddcf81df6f857f83eab2088dddbbe6ef7dcd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "core", "recent_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "core", "recent_test", "phase_2"], "description": "This is a view used to test the last three days of fact blocks.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_HASH": {"name": "BLOCK_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NETWORK": {"name": "NETWORK", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_COUNT": {"name": "TX_COUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SIZE": {"name": "SIZE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MINER": {"name": "MINER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EXTRA_DATA": {"name": "EXTRA_DATA", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PARENT_HASH": {"name": "PARENT_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_LIMIT": {"name": "GAS_LIMIT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DIFFICULTY": {"name": "DIFFICULTY", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SHA3_UNCLES": {"name": "SHA3_UNCLES", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UNCLE_BLOCKS": {"name": "UNCLE_BLOCKS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NONCE": {"name": "NONCE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "RECEIPTS_ROOT": {"name": "RECEIPTS_ROOT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STATE_ROOT": {"name": "STATE_ROOT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRANSACTIONS_ROOT": {"name": "TRANSACTIONS_ROOT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOGS_BLOOM": {"name": "LOGS_BLOOM", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FACT_BLOCKS_ID": {"name": "FACT_BLOCKS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "core", "recent_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018439.6091573, "relation_name": "polygon.test_gold.fact_blocks_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','recent_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__fact_blocks') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "core__fact_blocks", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_blocks", "model.fsc_evm._block_lookback"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.sql", "compiled": true, "compiled_code": "\n\n\n\nwith __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n) /* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"core\",\n \"recent_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','recent_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__fact_blocks') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.core.fact_blocks\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n __dbt__cte___block_lookback\n )\n\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.fsc_evm._block_lookback", "sql": " __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__ez_native_transfers_full": {"database": "polygon", "schema": "test_gold", "name": "test_gold__ez_native_transfers_full", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.sql", "unique_id": "model.fsc_evm.test_gold__ez_native_transfers_full", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "test_gold__ez_native_transfers_full"], "alias": "ez_native_transfers_full", "checksum": {"name": "sha256", "checksum": "8c28a65e2f5061134c2eb598bc2d63dbadd210c425861e095baf33bb0efbe53a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "core", "full_test", "transfers", "ez", "phase_3"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "core", "full_test", "transfers", "ez", "phase_3"], "description": "This is a view used to test all of the `ez_native_transfers` data.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "core", "full_test", "transfers", "ez", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.048625, "relation_name": "polygon.test_gold.ez_native_transfers_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','full_test','transfers','ez','phase_3']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__ez_native_transfers') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "core__ez_native_transfers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_native_transfers"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"core\",\n \"full_test\",\n \"transfers\",\n \"ez\",\n \"phase_3\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','full_test','transfers','ez','phase_3']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__ez_native_transfers') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.core.ez_native_transfers\n\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__ez_native_transfers_recent": {"database": "polygon", "schema": "test_gold", "name": "test_gold__ez_native_transfers_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.sql", "unique_id": "model.fsc_evm.test_gold__ez_native_transfers_recent", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "test_gold__ez_native_transfers_recent"], "alias": "ez_native_transfers_recent", "checksum": {"name": "sha256", "checksum": "d10c30e5e26627a8b10e379482588191bc9ca8a46c22af48444ad1d756514346"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "core", "recent_test", "transfers", "ez", "phase_3"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "core", "recent_test", "transfers", "ez", "phase_3"], "description": "This is a view used to test the last three days of `ez_native_transfers` data.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "core", "recent_test", "transfers", "ez", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.0951655, "relation_name": "polygon.test_gold.ez_native_transfers_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','recent_test','transfers','ez','phase_3']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__ez_native_transfers') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "core__ez_native_transfers", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_native_transfers", "model.fsc_evm._block_lookback"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.sql", "compiled": true, "compiled_code": "\n\n\n\nwith __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n) /* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"core\",\n \"recent_test\",\n \"transfers\",\n \"ez\",\n \"phase_3\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','recent_test','transfers','ez','phase_3']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__ez_native_transfers') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.core.ez_native_transfers\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n __dbt__cte___block_lookback\n )\n\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.fsc_evm._block_lookback", "sql": " __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__fact_transactions_recent": {"database": "polygon", "schema": "test_gold", "name": "test_gold__fact_transactions_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.sql", "unique_id": "model.fsc_evm.test_gold__fact_transactions_recent", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "test_gold__fact_transactions_recent"], "alias": "fact_transactions_recent", "checksum": {"name": "sha256", "checksum": "fde2b28952f4293bf7698e169d52c7c02e49753c1d64e07be6df67965a78fd51"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "core", "recent_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "core", "recent_test", "phase_2"], "description": "This is a view used to test the last three days of fact transactions.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE": {"name": "VALUE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE_PRECISE_RAW": {"name": "VALUE_PRECISE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE_PRECISE": {"name": "VALUE_PRECISE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_FEE": {"name": "TX_FEE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_FEE_PRECISE": {"name": "TX_FEE_PRECISE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_TYPE": {"name": "TX_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NONCE": {"name": "NONCE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INPUT_DATA": {"name": "INPUT_DATA", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_LIMIT": {"name": "GAS_LIMIT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CUMULATIVE_GAS_USED": {"name": "CUMULATIVE_GAS_USED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "R": {"name": "R", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "S": {"name": "S", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "V": {"name": "V", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FACT_TRANSACTIONS_ID": {"name": "FACT_TRANSACTIONS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "core", "recent_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.1415334, "relation_name": "polygon.test_gold.fact_transactions_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','recent_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__fact_transactions') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "core__fact_transactions", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_transactions", "model.fsc_evm._block_lookback"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.sql", "compiled": true, "compiled_code": "\n\n\n\nwith __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n) /* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"core\",\n \"recent_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','recent_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__fact_transactions') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.core.fact_transactions\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n __dbt__cte___block_lookback\n )\n\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.fsc_evm._block_lookback", "sql": " __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__fact_transactions_full": {"database": "polygon", "schema": "test_gold", "name": "test_gold__fact_transactions_full", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.sql", "unique_id": "model.fsc_evm.test_gold__fact_transactions_full", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "test_gold__fact_transactions_full"], "alias": "fact_transactions_full", "checksum": {"name": "sha256", "checksum": "52894450f7d2e018576836516f6fe5e1bc169778635275d6fca2e4d653659124"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "core", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "core", "full_test", "phase_2"], "description": "This is a view used to test all of the gold fact transactions model.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE": {"name": "VALUE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE_PRECISE_RAW": {"name": "VALUE_PRECISE_RAW", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE_PRECISE": {"name": "VALUE_PRECISE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_FEE": {"name": "TX_FEE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_FEE_PRECISE": {"name": "TX_FEE_PRECISE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_TYPE": {"name": "TX_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NONCE": {"name": "NONCE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INPUT_DATA": {"name": "INPUT_DATA", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_LIMIT": {"name": "GAS_LIMIT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CUMULATIVE_GAS_USED": {"name": "CUMULATIVE_GAS_USED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "R": {"name": "R", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "S": {"name": "S", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "V": {"name": "V", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FACT_TRANSACTIONS_ID": {"name": "FACT_TRANSACTIONS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "core", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.3040702, "relation_name": "polygon.test_gold.fact_transactions_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__fact_transactions') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "core__fact_transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_transactions"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"core\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','core','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('core__fact_transactions') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.core.fact_transactions\n\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__traces_fr": {"database": "polygon", "schema": "bronze", "name": "bronze__traces_fr", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/bronze/streamline/bronze__traces_fr.sql", "original_file_path": "models/main_package/core/bronze/streamline/bronze__traces_fr.sql", "unique_id": "model.fsc_evm.bronze__traces_fr", "fqn": ["fsc_evm", "main_package", "core", "bronze", "streamline", "bronze__traces_fr"], "alias": "traces_fr", "checksum": {"name": "sha256", "checksum": "d1b4dc1a1203cbc8fce6abf1aa3005ef57e88fb6dd0931b0af870440a04e82dc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "core", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "core", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "core", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018333.214049, "relation_name": "polygon.bronze.traces_fr", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'traces',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "traces"], ["bronze_streamline", "traces"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query_fr", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.traces"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/bronze/streamline/bronze__traces_fr.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"core\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'traces',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}\n*/\n\n\n\n\n\n\n\n \n \n WITH meta AS (\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.POLYGON.traces'\n )\n ) A\n )\nSELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n, --for streamline 2.0+\n COALESCE(\n s.value :\"BLOCK_NUMBER\" :: STRING,\n s.value :\"block_number\" :: STRING,\n s.metadata :request :\"data\" :id :: STRING,\n PARSE_JSON(\n s.metadata :request :\"data\"\n ) :id :: STRING\n ) :: INT AS block_number\n\n\n\n\n\nFROM\n streamline.POLYGON.traces\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \nWHERE\n b.partition_key = s.partition_key\n \n \n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n \n AND DATA IS NOT NULL\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__blocks": {"database": "polygon", "schema": "bronze", "name": "bronze__blocks", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/bronze/streamline/bronze__blocks.sql", "original_file_path": "models/main_package/core/bronze/streamline/bronze__blocks.sql", "unique_id": "model.fsc_evm.bronze__blocks", "fqn": ["fsc_evm", "main_package", "core", "bronze", "streamline", "bronze__blocks"], "alias": "blocks", "checksum": {"name": "sha256", "checksum": "de714e749518dc6cf99cc1d984ac6d960fdff8674dd49e7d43968262f045253c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "core", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "core", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "core", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018333.5314274, "relation_name": "polygon.bronze.blocks", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'blocks',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "blocks"], ["bronze_streamline", "blocks"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.blocks"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/bronze/streamline/bronze__blocks.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"core\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'blocks',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}\n*/\n\n\n\n\n\n\n\n \n\n WITH meta AS (\n SELECT\n job_created_time AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.POLYGON.blocks')\n ) A\n )\n SELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n , --for streamline 2.0+\n COALESCE(\n s.value :\"BLOCK_NUMBER\" :: STRING,\n s.metadata :request :\"data\" :id :: STRING,\n PARSE_JSON(\n s.metadata :request :\"data\"\n ) :id :: STRING\n ) :: INT AS block_number\n \n\n \n\n \n FROM\n streamline.POLYGON.blocks\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \n WHERE\n b.partition_key = s.partition_key\n \n \n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n \n AND DATA IS NOT NULL\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__confirm_blocks_fr": {"database": "polygon", "schema": "bronze", "name": "bronze__confirm_blocks_fr", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/bronze/streamline/bronze__confirm_blocks_fr.sql", "original_file_path": "models/main_package/core/bronze/streamline/bronze__confirm_blocks_fr.sql", "unique_id": "model.fsc_evm.bronze__confirm_blocks_fr", "fqn": ["fsc_evm", "main_package", "core", "bronze", "streamline", "bronze__confirm_blocks_fr"], "alias": "confirm_blocks_fr", "checksum": {"name": "sha256", "checksum": "b2ab30cededc6b20bba2a5931034d4d37325d07fb45b3d6ef25e19302abebf25"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "core", "confirm_blocks", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "core", "confirm_blocks", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "core", "confirm_blocks", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018333.8481555, "relation_name": "polygon.bronze.confirm_blocks_fr", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','confirm_blocks','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'confirm_blocks',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "confirm_blocks"], ["bronze_streamline", "confirm_blocks"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query_fr", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.confirm_blocks"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/bronze/streamline/bronze__confirm_blocks_fr.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"core\",\n \"confirm_blocks\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','confirm_blocks','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'confirm_blocks',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}\n*/\n\n\n\n\n\n\n\n \n \n WITH meta AS (\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.POLYGON.confirm_blocks'\n )\n ) A\n )\nSELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n, --for streamline 2.0+\n COALESCE(\n s.value :\"BLOCK_NUMBER\" :: STRING,\n s.value :\"block_number\" :: STRING,\n s.metadata :request :\"data\" :id :: STRING,\n PARSE_JSON(\n s.metadata :request :\"data\"\n ) :id :: STRING\n ) :: INT AS block_number\n\n\n\n\n\nFROM\n streamline.POLYGON.confirm_blocks\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \nWHERE\n b.partition_key = s.partition_key\n \n \n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n \n AND DATA IS NOT NULL\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__receipts_by_hash": {"database": "polygon", "schema": "bronze", "name": "bronze__receipts_by_hash", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/bronze/streamline/bronze__receipts_by_hash.sql", "original_file_path": "models/main_package/core/bronze/streamline/bronze__receipts_by_hash.sql", "unique_id": "model.fsc_evm.bronze__receipts_by_hash", "fqn": ["fsc_evm", "main_package", "core", "bronze", "streamline", "bronze__receipts_by_hash"], "alias": "receipts_by_hash", "checksum": {"name": "sha256", "checksum": "ea58c65b98a01c6c3c4ae1956a908bd1c6bc7ebbc3e0373aac7e88a11dddc2f8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "core", "receipts_by_hash", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "core", "receipts_by_hash", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "core", "receipts_by_hash", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018334.1650388, "relation_name": "polygon.bronze.receipts_by_hash", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','receipts_by_hash','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'receipts_by_hash',\n tx_hash = vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED,\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "receipts_by_hash"], ["bronze_streamline", "receipts_by_hash"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.fsc_evm.bronze_streamline.receipts_by_hash"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/bronze/streamline/bronze__receipts_by_hash.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"core\",\n \"receipts_by_hash\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','receipts_by_hash','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'receipts_by_hash',\n tx_hash = vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED,\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}\n*/\n\n\n\n\n\n\n\n \n\n WITH meta AS (\n SELECT\n job_created_time AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'polygon.streamline.receipts_by_hash')\n ) A\n )\n SELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n , --for streamline 2.0+\n COALESCE(\n s.value :\"BLOCK_NUMBER\" :: STRING,\n s.metadata :request :\"data\" :id :: STRING,\n PARSE_JSON(\n s.metadata :request :\"data\"\n ) :id :: STRING\n ) :: INT AS block_number\n \n\n \n\n \n FROM\n polygon.streamline.receipts_by_hash\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \n WHERE\n b.partition_key = s.partition_key\n \n \n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n \n AND DATA IS NOT NULL\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__receipts": {"database": "polygon", "schema": "bronze", "name": "bronze__receipts", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/bronze/streamline/bronze__receipts.sql", "original_file_path": "models/main_package/core/bronze/streamline/bronze__receipts.sql", "unique_id": "model.fsc_evm.bronze__receipts", "fqn": ["fsc_evm", "main_package", "core", "bronze", "streamline", "bronze__receipts"], "alias": "receipts", "checksum": {"name": "sha256", "checksum": "50d3b668dc6dd71088326f16e54fbe9433d62195ba4109eeb510a99b1dd27871"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "core", "receipts", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "core", "receipts", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "core", "receipts", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018334.4817452, "relation_name": "polygon.bronze.receipts", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','receipts','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'receipts',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "receipts"], ["bronze_streamline", "receipts"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.receipts"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/bronze/streamline/bronze__receipts.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"core\",\n \"receipts\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','receipts','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'receipts',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}\n*/\n\n\n\n\n\n\n\n \n\n WITH meta AS (\n SELECT\n job_created_time AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.POLYGON.receipts')\n ) A\n )\n SELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n , --for streamline 2.0+\n COALESCE(\n s.value :\"BLOCK_NUMBER\" :: STRING,\n s.metadata :request :\"data\" :id :: STRING,\n PARSE_JSON(\n s.metadata :request :\"data\"\n ) :id :: STRING\n ) :: INT AS block_number\n \n\n \n\n \n FROM\n streamline.POLYGON.receipts\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \n WHERE\n b.partition_key = s.partition_key\n \n \n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n \n AND DATA IS NOT NULL\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__traces": {"database": "polygon", "schema": "bronze", "name": "bronze__traces", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/bronze/streamline/bronze__traces.sql", "original_file_path": "models/main_package/core/bronze/streamline/bronze__traces.sql", "unique_id": "model.fsc_evm.bronze__traces", "fqn": ["fsc_evm", "main_package", "core", "bronze", "streamline", "bronze__traces"], "alias": "traces", "checksum": {"name": "sha256", "checksum": "9ef2b616065a530df987bf7e12915cf35706011f0997d85c0e060fbefe3ecfcb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "core", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "core", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "core", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018334.7959707, "relation_name": "polygon.bronze.traces", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'traces',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "traces"], ["bronze_streamline", "traces"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.traces"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/bronze/streamline/bronze__traces.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"core\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'traces',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}\n*/\n\n\n\n\n\n\n\n \n\n WITH meta AS (\n SELECT\n job_created_time AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.POLYGON.traces')\n ) A\n )\n SELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n , --for streamline 2.0+\n COALESCE(\n s.value :\"BLOCK_NUMBER\" :: STRING,\n s.metadata :request :\"data\" :id :: STRING,\n PARSE_JSON(\n s.metadata :request :\"data\"\n ) :id :: STRING\n ) :: INT AS block_number\n \n\n \n\n \n FROM\n streamline.POLYGON.traces\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \n WHERE\n b.partition_key = s.partition_key\n \n \n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n \n AND DATA IS NOT NULL\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__receipts_by_hash_fr": {"database": "polygon", "schema": "bronze", "name": "bronze__receipts_by_hash_fr", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/bronze/streamline/bronze__receipts_by_hash_fr.sql", "original_file_path": "models/main_package/core/bronze/streamline/bronze__receipts_by_hash_fr.sql", "unique_id": "model.fsc_evm.bronze__receipts_by_hash_fr", "fqn": ["fsc_evm", "main_package", "core", "bronze", "streamline", "bronze__receipts_by_hash_fr"], "alias": "receipts_by_hash_fr", "checksum": {"name": "sha256", "checksum": "9126d17e55cc0b37286ef84d9d1ba0f25b3cc63f6ff8dc11b26570496827f6aa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "core", "receipts_by_hash", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "core", "receipts_by_hash", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "core", "receipts_by_hash", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018335.1126575, "relation_name": "polygon.bronze.receipts_by_hash_fr", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','receipts_by_hash','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'receipts_by_hash',\n tx_hash = vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED,\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "receipts_by_hash"], ["bronze_streamline", "receipts_by_hash"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query_fr", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.fsc_evm.bronze_streamline.receipts_by_hash"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/bronze/streamline/bronze__receipts_by_hash_fr.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"core\",\n \"receipts_by_hash\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','receipts_by_hash','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'receipts_by_hash',\n tx_hash = vars.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED,\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}\n*/\n\n\n\n\n\n\n\n \n \n WITH meta AS (\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'polygon.streamline.receipts_by_hash'\n )\n ) A\n )\nSELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n, --for streamline 2.0+\n COALESCE(\n s.value :\"BLOCK_NUMBER\" :: STRING,\n s.value :\"block_number\" :: STRING,\n s.metadata :request :\"data\" :id :: STRING,\n PARSE_JSON(\n s.metadata :request :\"data\"\n ) :id :: STRING\n ) :: INT AS block_number\n\n\n\n\n\nFROM\n polygon.streamline.receipts_by_hash\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \nWHERE\n b.partition_key = s.partition_key\n \n \n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n \n AND DATA IS NOT NULL\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__transactions": {"database": "polygon", "schema": "bronze", "name": "bronze__transactions", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/bronze/streamline/bronze__transactions.sql", "original_file_path": "models/main_package/core/bronze/streamline/bronze__transactions.sql", "unique_id": "model.fsc_evm.bronze__transactions", "fqn": ["fsc_evm", "main_package", "core", "bronze", "streamline", "bronze__transactions"], "alias": "transactions", "checksum": {"name": "sha256", "checksum": "4b7cc5154347c5aa6802e5ccf9ef170d3e65533293eb25703e0ccce134fae201"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "core", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "core", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "core", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018335.5533636, "relation_name": "polygon.bronze.transactions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'transactions',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "transactions"], ["bronze_streamline", "transactions"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.transactions"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/bronze/streamline/bronze__transactions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"core\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'transactions',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}\n*/\n\n\n\n\n\n\n\n \n\n WITH meta AS (\n SELECT\n job_created_time AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.POLYGON.transactions')\n ) A\n )\n SELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n , --for streamline 2.0+\n COALESCE(\n s.value :\"BLOCK_NUMBER\" :: STRING,\n s.metadata :request :\"data\" :id :: STRING,\n PARSE_JSON(\n s.metadata :request :\"data\"\n ) :id :: STRING\n ) :: INT AS block_number\n \n\n \n\n \n FROM\n streamline.POLYGON.transactions\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \n WHERE\n b.partition_key = s.partition_key\n \n \n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n \n AND DATA IS NOT NULL\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__receipts_fr": {"database": "polygon", "schema": "bronze", "name": "bronze__receipts_fr", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/bronze/streamline/bronze__receipts_fr.sql", "original_file_path": "models/main_package/core/bronze/streamline/bronze__receipts_fr.sql", "unique_id": "model.fsc_evm.bronze__receipts_fr", "fqn": ["fsc_evm", "main_package", "core", "bronze", "streamline", "bronze__receipts_fr"], "alias": "receipts_fr", "checksum": {"name": "sha256", "checksum": "325b694a2fcba7e4933a68c3e42d598b1a910fa2bec02b8c24f7b86e926e7d16"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "core", "receipts", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "core", "receipts", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "core", "receipts", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018335.873621, "relation_name": "polygon.bronze.receipts_fr", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','receipts','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'receipts',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "receipts"], ["bronze_streamline", "receipts"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query_fr", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.receipts"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/bronze/streamline/bronze__receipts_fr.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"core\",\n \"receipts\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','receipts','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'receipts',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}\n*/\n\n\n\n\n\n\n\n \n \n WITH meta AS (\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.POLYGON.receipts'\n )\n ) A\n )\nSELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n, --for streamline 2.0+\n COALESCE(\n s.value :\"BLOCK_NUMBER\" :: STRING,\n s.value :\"block_number\" :: STRING,\n s.metadata :request :\"data\" :id :: STRING,\n PARSE_JSON(\n s.metadata :request :\"data\"\n ) :id :: STRING\n ) :: INT AS block_number\n\n\n\n\n\nFROM\n streamline.POLYGON.receipts\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \nWHERE\n b.partition_key = s.partition_key\n \n \n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n \n AND DATA IS NOT NULL\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__transactions_fr": {"database": "polygon", "schema": "bronze", "name": "bronze__transactions_fr", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/bronze/streamline/bronze__transactions_fr.sql", "original_file_path": "models/main_package/core/bronze/streamline/bronze__transactions_fr.sql", "unique_id": "model.fsc_evm.bronze__transactions_fr", "fqn": ["fsc_evm", "main_package", "core", "bronze", "streamline", "bronze__transactions_fr"], "alias": "transactions_fr", "checksum": {"name": "sha256", "checksum": "e98d9ac99f4e6cfa19bb8236bd3dcd21b3747865a6e5bfa67599852cabaacf8e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "core", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "core", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "core", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018336.1955202, "relation_name": "polygon.bronze.transactions_fr", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'transactions',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "transactions"], ["bronze_streamline", "transactions"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query_fr", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.transactions"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/bronze/streamline/bronze__transactions_fr.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"core\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'transactions',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}\n*/\n\n\n\n\n\n\n\n \n \n WITH meta AS (\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.POLYGON.transactions'\n )\n ) A\n )\nSELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n, --for streamline 2.0+\n COALESCE(\n s.value :\"BLOCK_NUMBER\" :: STRING,\n s.value :\"block_number\" :: STRING,\n s.metadata :request :\"data\" :id :: STRING,\n PARSE_JSON(\n s.metadata :request :\"data\"\n ) :id :: STRING\n ) :: INT AS block_number\n\n\n\n\n\nFROM\n streamline.POLYGON.transactions\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \nWHERE\n b.partition_key = s.partition_key\n \n \n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n \n AND DATA IS NOT NULL\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__confirm_blocks": {"database": "polygon", "schema": "bronze", "name": "bronze__confirm_blocks", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/bronze/streamline/bronze__confirm_blocks.sql", "original_file_path": "models/main_package/core/bronze/streamline/bronze__confirm_blocks.sql", "unique_id": "model.fsc_evm.bronze__confirm_blocks", "fqn": ["fsc_evm", "main_package", "core", "bronze", "streamline", "bronze__confirm_blocks"], "alias": "confirm_blocks", "checksum": {"name": "sha256", "checksum": "cc9346884940d44a6879b4c037e9e755c5b781c6b9259f3fbbd9e98c29552e85"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "core", "confirm_blocks", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "core", "confirm_blocks", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "core", "confirm_blocks", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018336.5183847, "relation_name": "polygon.bronze.confirm_blocks", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','confirm_blocks','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'confirm_blocks',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "confirm_blocks"], ["bronze_streamline", "confirm_blocks"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.confirm_blocks"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/bronze/streamline/bronze__confirm_blocks.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"core\",\n \"confirm_blocks\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','confirm_blocks','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'confirm_blocks',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}\n*/\n\n\n\n\n\n\n\n \n\n WITH meta AS (\n SELECT\n job_created_time AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.POLYGON.confirm_blocks')\n ) A\n )\n SELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n , --for streamline 2.0+\n COALESCE(\n s.value :\"BLOCK_NUMBER\" :: STRING,\n s.metadata :request :\"data\" :id :: STRING,\n PARSE_JSON(\n s.metadata :request :\"data\"\n ) :id :: STRING\n ) :: INT AS block_number\n \n\n \n\n \n FROM\n streamline.POLYGON.confirm_blocks\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \n WHERE\n b.partition_key = s.partition_key\n \n \n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n \n AND DATA IS NOT NULL\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__blocks_fr": {"database": "polygon", "schema": "bronze", "name": "bronze__blocks_fr", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/bronze/streamline/bronze__blocks_fr.sql", "original_file_path": "models/main_package/core/bronze/streamline/bronze__blocks_fr.sql", "unique_id": "model.fsc_evm.bronze__blocks_fr", "fqn": ["fsc_evm", "main_package", "core", "bronze", "streamline", "bronze__blocks_fr"], "alias": "blocks_fr", "checksum": {"name": "sha256", "checksum": "85a75ebe1ec26d53a05cd4316493b58508540932673e7e9a630cc8c4ede68a12"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "core", "phase_1"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "core", "phase_1"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "core", "phase_1"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018336.8393376, "relation_name": "polygon.bronze.blocks_fr", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'blocks',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "blocks"], ["bronze_streamline", "blocks"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query_fr", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.blocks"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/bronze/streamline/bronze__blocks_fr.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"core\",\n \"phase_1\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','core','phase_1']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'blocks',\n error_code = vars.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED\n) }}\n*/\n\n\n\n\n\n\n\n \n \n WITH meta AS (\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.POLYGON.blocks'\n )\n ) A\n )\nSELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n, --for streamline 2.0+\n COALESCE(\n s.value :\"BLOCK_NUMBER\" :: STRING,\n s.value :\"block_number\" :: STRING,\n s.metadata :request :\"data\" :id :: STRING,\n PARSE_JSON(\n s.metadata :request :\"data\"\n ) :id :: STRING\n ) :: INT AS block_number\n\n\n\n\n\nFROM\n streamline.POLYGON.blocks\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \nWHERE\n b.partition_key = s.partition_key\n \n \n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n \n AND DATA IS NOT NULL\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.nft__ez_nft_transfers": {"database": "polygon", "schema": "nft", "name": "nft__ez_nft_transfers", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/nft/nft__ez_nft_transfers.sql", "original_file_path": "models/main_package/core/nft/nft__ez_nft_transfers.sql", "unique_id": "model.fsc_evm.nft__ez_nft_transfers", "fqn": ["fsc_evm", "main_package", "core", "nft", "nft__ez_nft_transfers"], "alias": "ez_nft_transfers", "checksum": {"name": "sha256", "checksum": "211fd7966b27f23dc7b55c6aa767fe70753d88f107a205084ebe25415a9934ee"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "core", "ez", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(origin_from_address, origin_to_address, from_address, to_address, origin_function_signature)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "ez_nft_transfers_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "incremental_predicates": ["polygon.\n \n nft.\n \n ez_nft_transfers.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n nft.\n \n ez_nft_transfers__dbt_tmp\n )"]}, "tags": ["gold", "core", "ez", "phase_2"], "description": "## What\n\nThis table contains all NFT transfer events for ERC-721 and ERC-1155 tokens on EVM blockchains. It provides a comprehensive view of NFT movements including transfers, mints, and burns, with enriched metadata for easier analysis.\n\n## Key Use Cases\n\n- Track daily NFT activity and transfer volume across collections\n- Analyze NFT minting patterns and mint timing\n- Identify popular collections by transfer activity\n- Monitor wallet NFT accumulation and trading behavior\n- Analyze ERC-1155 batch transfer patterns\n- Track current NFT holders and ownership changes\n- Detect burns and unusual transfer patterns\n\n## Important Relationships\n\n- **Join with ez_nft_sales**: Use `tx_hash` to match with sales but note that a single transaction can contain multiple sales. Do not use `event_index` to match as the `event_index` in ez_nft_transfers represent the `event_index` of the transfer and not the sale\n- **Join with dim_nft_collection_metadata**: This is only for the Ethereum blockchain. Use `contract_address` and `token_id` for metadata like traits, token id name and token id description\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n\n## Commonly-used Fields\n\n- `contract_address`: NFT collection contract address\n- `token_id`: Unique identifier of the specific NFT\n- `from_address` / `to_address`: Transfer participants (0x0 for mint/burn)\n- `is_mint`: Boolean flag for minting events\n- `token_standard`: NFT standard (erc721, erc1155, cryptopunks, legacy)\n- `nft_quantity`: Number of tokens transferred (always 1 for ERC-721)\n- `token_transfer_type`: Specific event type emitted\n\n## Sample Queries\n\n**Daily NFT Activity Overview**\n```sql\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n COUNT(*) AS total_transfers,\n COUNT(DISTINCT contract_address) AS unique_collections,\n COUNT(DISTINCT CASE WHEN is_mint THEN tx_hash END) AS mint_count,\n COUNT(DISTINCT from_address) AS unique_senders,\n COUNT(DISTINCT to_address) AS unique_receivers,\n SUM(IFF(token_standard = 'erc721', 1 , 0)) as erc721_transfer_count,\n SUM(IFF(token_standard = 'erc1155', 1 , 0)) as erc1155_transfer_count\nFROM .nft.ez_nft_transfers\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 1 DESC;\n```\n\n**Popular NFT Collections by Transfer Volume**\n```sql\nSELECT \n contract_address,\n name,\n COUNT(*) AS transfer_count,\n COUNT(DISTINCT token_id) AS unique_tokens,\n COUNT(DISTINCT from_address) AS unique_senders,\n COUNT(DISTINCT to_address) AS unique_receivers,\n SUM(CASE WHEN is_mint THEN 1 ELSE 0 END) AS mints,\n SUM(CASE WHEN to_address = '0x0000000000000000000000000000000000000000' THEN 1 ELSE 0 END) AS burns\nFROM .nft.ez_nft_transfers\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND name IS NOT NULL \nGROUP BY 1, 2\nORDER BY 3 DESC\nLIMIT 50;\n```\n\n**NFT Minting Analysis**\n```sql\nSELECT \n contract_address,\n name,\n DATE_TRUNC('hour', block_timestamp) AS mint_hour,\n COUNT(*) AS mint_count,\n COUNT(DISTINCT to_address) AS unique_minters,\n COUNT(DISTINCT token_id) as unique_token_id_count \nFROM .nft.ez_nft_transfers\nWHERE is_mint = TRUE\n AND block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2, 3\nORDER BY 4 DESC;\n```\n\n**Wallet NFT Activity**\n```sql\nWITH wallet_activity AS (\n SELECT \n address,\n SUM(received) AS nfts_received,\n SUM(sent) AS nfts_sent,\n SUM(received) - SUM(sent) AS net_change,\n COUNT(DISTINCT contract_address) AS collections_interacted\n FROM (\n SELECT to_address AS address, COUNT(*) AS received, 0 AS sent, contract_address\n FROM .nft.ez_nft_transfers\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND to_address != '0x0000000000000000000000000000000000000000'\n GROUP BY 1, 4\n \n UNION ALL\n \n SELECT from_address AS address, 0 AS received, COUNT(*) AS sent, contract_address\n FROM .nft.ez_nft_transfers\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND from_address != '0x0000000000000000000000000000000000000000'\n GROUP BY 1, 4\n )\n GROUP BY 1\n)\nSELECT * FROM wallet_activity\nWHERE collections_interacted > 5\nORDER BY net_change DESC\nLIMIT 100;\n```\n\n**ERC-1155 Single and Batch Transfer Analysis**\n```sql\nSELECT \n contract_address,\n name,\n token_transfer_type, \n COUNT(*) AS transfer_count \nFROM .nft.ez_nft_transfers\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND token_transfer_type in (\n 'erc1155_TransferSingle',\n 'erc1155_TransferBatch'\n )\nGROUP BY 1, 2, 3\nORDER BY 4 DESC;\n```\n\n**Latest holders for a given ERC-721 collection**\n```sql\nSELECT \n to_address,\n contract_address,\n token_id \nFROM .nft.ez_nft_transfers\nWHERE contract_address = '0xbd3531da5cf5857e7cfaa92426877b022e612cf8'\nQUALIFY ROW_NUMBER() OVER (PARTITION BY contract_address, token_id ORDER BY block_number DESC, event_index DESC) =1;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INTRA_EVENT_INDEX": {"name": "INTRA_EVENT_INDEX", "description": "Position within a batch transfer event, primarily for ERC-1155. Always starts with 1 for single transfers.\n\nExample: 1", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_TRANSFER_TYPE": {"name": "TOKEN_TRANSFER_TYPE", "description": "The specific event type emitted by the contract. Values include 'erc721_Transfer', 'erc1155_TransferSingle', 'erc1155_TransferBatch', etc.\n\nExample: 'erc721_Transfer'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_MINT": {"name": "IS_MINT", "description": "Boolean flag indicating if this transfer is a minting event (from address is 0x0).\n\nExample: true", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "The address sending/transferring the NFT. Special value of '0x0000000000000000000000000000000000000000' indicates minting event.\n\nExample: '0x1234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "The address receiving the NFT. Special value of '0x0000000000000000000000000000000000000000' indicates burning event.\n\nExample: '0x1234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "The address of the contract that emitted the NFT transfer event.\n\nExample: '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ID": {"name": "TOKEN_ID", "description": "The unique identifier for a specific NFT within a collection. String format to handle various token_id formats.\n\nExample: '1234'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "QUANTITY": {"name": "QUANTITY", "description": "The number of NFTs transferred for this specific token_id. Always 1 for ERC-721, can be more for ERC-1155.\n\nExample: 1", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_STANDARD": {"name": "TOKEN_STANDARD", "description": "The standard of the NFT. Values include 'erc721', 'erc1155', 'cryptopunks', and 'legacy'.\n\nExample: 'erc721'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NAME": {"name": "NAME", "description": "The name of the NFT collection. For Ethereum only, join with nft.dim_nft_collection_metadata for token-level details.\n\nExample: 'Bored Ape Yacht Club'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_NFT_TRANSFERS_ID": {"name": "EZ_NFT_TRANSFERS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/nft/nft__ez_nft_transfers.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "ez_nft_transfers_id", "cluster_by": ["block_timestamp::DATE"], "incremental_predicates": ["polygon.\n \n nft.\n \n ez_nft_transfers.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n nft.\n \n ez_nft_transfers__dbt_tmp\n )"], "full_refresh": false, "tags": ["gold", "core", "ez", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018440.4662132, "relation_name": "polygon.nft.ez_nft_transfers", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = 'ez_nft_transfers_id',\n cluster_by = ['block_timestamp::DATE'],\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(origin_from_address, origin_to_address, from_address, to_address, origin_function_signature)\",\n tags = ['gold','core','ez','phase_2']\n) }}\n\nWITH base AS (\n\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n event_index,\n contract_address,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_position,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE\n WHEN topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' THEN 'erc721_Transfer'\n WHEN topic_0 :: STRING = '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62' THEN 'erc1155_TransferSingle'\n WHEN topic_0 :: STRING = '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb' THEN 'erc1155_TransferBatch'\n END AS token_transfer_type,\n CASE\n WHEN token_transfer_type = 'erc721_Transfer' THEN CONCAT('0x', SUBSTR(topic_1 :: STRING, 27, 40))\n WHEN token_transfer_type = 'erc1155_TransferSingle'\n OR token_transfer_type = 'erc1155_TransferBatch' THEN CONCAT('0x', SUBSTR(topic_2 :: STRING, 27, 40))\n END AS from_address,\n CASE\n WHEN token_transfer_type = 'erc721_Transfer' THEN CONCAT('0x', SUBSTR(topic_2 :: STRING, 27, 40))\n WHEN token_transfer_type = 'erc1155_TransferSingle'\n OR token_transfer_type = 'erc1155_TransferBatch' THEN CONCAT('0x', SUBSTR(topic_3 :: STRING, 27, 40))\n END AS to_address,\n CASE\n WHEN token_transfer_type = 'erc721_Transfer' THEN utils.udf_hex_to_int(\n topic_3 :: STRING\n ) :: STRING\n WHEN token_transfer_type = 'erc1155_TransferSingle' THEN utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: STRING\n END AS token_id,\n CASE\n WHEN token_transfer_type = 'erc721_Transfer' THEN NULL\n WHEN token_transfer_type = 'erc1155_TransferSingle' THEN utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: STRING\n END AS quantity,\n CASE\n WHEN token_transfer_type = 'erc721_Transfer' THEN NULL\n WHEN token_transfer_type = 'erc1155_TransferSingle'\n OR token_transfer_type = 'erc1155_TransferBatch' THEN CONCAT('0x', SUBSTR(topic_1 :: STRING, 27, 40))\n END AS operator_address\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n tx_succeeded\n AND NOT event_removed\n AND (\n (\n topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND DATA = '0x'\n AND topic_3 IS NOT NULL\n ) --erc721s\n OR (\n topic_0 :: STRING = '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62'\n ) --erc1155s\n OR (\n topic_0 :: STRING = '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb'\n ) --erc1155s TransferBatch event\n {% if vars.GLOBAL_PROJECT_NAME == 'ethereum' %}\n OR (\n topic_0 :: STRING IN (\n '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',\n -- regular transfer topic\n '0x58e5d5a525e3b40bc15abaa38b5882678db1ee68befd2f60bafe3a7fd06db9e3',\n -- PunkBought\n '0x05af636b70da6819000c49f85b21fa82081c632069bb626f30932034099107d8' -- PunkTransfer\n )\n AND contract_address IN (\n '0x6ba6f2207e343923ba692e5cae646fb0f566db8d',\n -- Old V1\n '0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb' -- cryptopunks\n )\n )\n OR (\n -- legacy tokens\n topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND topic_1 IS NULL\n )\n {% endif %}\n )\n\n{% if is_incremental() %}\nAND modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }})\n {% endif %}\n),\ntransfer_batch_raw AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_position,\n segmented_data,\n operator_address,\n from_address,\n to_address,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) AS tokenid_length\n FROM\n base\n WHERE\n topic_0 :: STRING = '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb'\n AND to_address IS NOT NULL\n),\nflattened AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_position,\n segmented_data,\n operator_address,\n from_address,\n to_address,\n INDEX,\n VALUE,\n tokenid_length,\n 2 + tokenid_length AS tokenid_indextag,\n 4 + tokenid_length AS quantity_indextag_start,\n 4 + tokenid_length + tokenid_length AS quantity_indextag_end,\n CASE\n WHEN INDEX BETWEEN 3\n AND (\n tokenid_indextag\n ) THEN 'tokenid'\n WHEN INDEX BETWEEN (\n quantity_indextag_start\n )\n AND (\n quantity_indextag_end\n ) THEN 'quantity'\n ELSE NULL\n END AS label\n FROM\n transfer_batch_raw,\n LATERAL FLATTEN (\n input => segmented_data\n )\n),\ntokenid_list AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_position,\n segmented_data,\n operator_address,\n from_address,\n to_address,\n utils.udf_hex_to_int(\n VALUE :: STRING\n ) :: STRING AS tokenId,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n event_index\n ORDER BY\n INDEX ASC\n ) AS tokenid_order\n FROM\n flattened\n WHERE\n label = 'tokenid'\n),\nquantity_list AS (\n SELECT\n tx_hash,\n event_index,\n utils.udf_hex_to_int(\n VALUE :: STRING\n ) :: STRING AS quantity,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n event_index\n ORDER BY\n INDEX ASC\n ) AS quantity_order\n FROM\n flattened\n WHERE\n label = 'quantity'\n),\ntransfer_batch_final AS (\n SELECT\n block_number,\n block_timestamp,\n t.tx_hash,\n t.event_index,\n contract_address,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_position,\n segmented_data,\n operator_address,\n from_address,\n to_address,\n t.tokenId AS token_id,\n q.quantity AS quantity,\n tokenid_order AS intra_event_index\n FROM\n tokenid_list t\n INNER JOIN quantity_list q\n ON t.tx_hash = q.tx_hash\n AND t.event_index = q.event_index\n AND t.tokenid_order = q.quantity_order\n),\n{% if vars.GLOBAL_PROJECT_NAME == 'ethereum' %}\n punks_bought_raw AS (\n -- punks bought via sale or bids\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n topic_1,\n topic_0,\n topic_2,\n utils.udf_hex_to_int(\n topic_1 :: STRING\n ) :: STRING AS token_id,\n CONCAT('0x', SUBSTR(topic_2 :: STRING, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topic_3 :: STRING, 27, 40)) AS to_address,\n '1' AS quantity,\n LAG(topic_0) over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) AS prev_topic_0,\n LAG(topic_1) over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) AS prev_topic_1,\n LAG(topic_2) over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) AS prev_topic_2,\n CONCAT('0x', SUBSTR(prev_topic_1 :: STRING, 27, 40)) AS prev_from_address,\n CONCAT('0x', SUBSTR(prev_topic_2 :: STRING, 27, 40)) AS prev_to_address,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address\n FROM\n base\n WHERE\n topic_0 :: STRING IN (\n '0x58e5d5a525e3b40bc15abaa38b5882678db1ee68befd2f60bafe3a7fd06db9e3',\n -- punk bought\n '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' -- transfer\n )\n AND contract_address IN (\n '0x6ba6f2207e343923ba692e5cae646fb0f566db8d',\n -- Old V1\n '0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb' -- cryptopunks\n )\n ),\n punks_bought AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n contract_address,\n token_id,\n from_address,\n CASE\n WHEN to_address = '0x0000000000000000000000000000000000000000'\n AND prev_topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND prev_from_address = from_address THEN prev_to_address\n ELSE to_address\n END AS to_address,\n quantity,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address\n FROM\n punks_bought_raw\n WHERE\n topic_0 :: STRING = '0x58e5d5a525e3b40bc15abaa38b5882678db1ee68befd2f60bafe3a7fd06db9e3'\n ),\n punks_transfer AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n contract_address,\n utils.udf_hex_to_int(\n DATA :: STRING\n ) :: STRING AS token_id,\n CONCAT('0x', SUBSTR(topic_1 :: STRING, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topic_2 :: STRING, 27, 40)) AS to_address,\n '1' AS quantity,\n event_index,\n tx_position,\n origin_function_signature,\n origin_from_address,\n origin_to_address\n FROM\n base\n WHERE\n topic_0 :: STRING = '0x05af636b70da6819000c49f85b21fa82081c632069bb626f30932034099107d8'\n AND contract_address IN (\n '0x6ba6f2207e343923ba692e5cae646fb0f566db8d',\n -- Old V1\n '0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb' -- cryptopunks\n )\n ),\n legacy_tokens AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n contract_address,\n CONCAT('0x', SUBSTR(segmented_data [0], 25, 40)) AS from_address,\n CONCAT('0x', SUBSTR(segmented_data [1], 25, 40)) AS to_address,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: STRING AS token_id,\n '1' AS quantity,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address\n FROM\n base\n WHERE\n topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND topic_1 IS NULL\n ),\n{% endif %}\n\nall_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n token_id,\n quantity,\n 1 AS intra_event_index,\n token_transfer_type\n FROM\n base\n WHERE\n (\n topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND DATA = '0x'\n AND topic_3 IS NOT NULL\n ) --erc721s TransferSingle event\n OR (\n topic_0 :: STRING = '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62'\n ) --erc1155s\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n token_id,\n quantity,\n intra_event_index,\n 'erc1155_TransferBatch' AS token_transfer_type\n FROM\n transfer_batch_final\n\n {% if vars.GLOBAL_PROJECT_NAME == 'ethereum' %}\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n token_id,\n quantity,\n 1 AS intra_event_index,\n 'cryptopunks_PunkTransfer' AS token_transfer_type\n FROM\n punks_transfer\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n token_id,\n quantity,\n 1 AS intra_event_index,\n 'cryptopunks_PunkBought' AS token_transfer_type\n FROM\n punks_bought\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n token_id,\n quantity,\n 1 AS intra_event_index,\n 'legacy_Transfer' AS token_transfer_type\n FROM\n legacy_tokens\n {% endif %}\n),\nfinal_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n token_id,\n COALESCE(\n quantity,\n '1'\n ) AS quantity,\n intra_event_index,\n token_transfer_type,\n NAME AS NAME,\n from_address = '0x0000000000000000000000000000000000000000' AS is_mint,\n CASE\n WHEN token_transfer_type = 'erc721_Transfer' THEN 'erc721'\n WHEN token_transfer_type = 'erc1155_TransferSingle' THEN 'erc1155'\n WHEN token_transfer_type = 'erc1155_TransferBatch' THEN 'erc1155' {% if vars.GLOBAL_PROJECT_NAME == 'ethereum' %}\n WHEN token_transfer_type = 'legacy_Transfer' THEN 'legacy'\n WHEN token_transfer_type = 'cryptopunks_PunkBought' THEN 'cryptopunks'\n WHEN token_transfer_type = 'cryptopunks_PunkTransfer' THEN 'cryptopunks'\n {% endif %}\n END AS token_standard,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash','event_index','intra_event_index']\n ) }} AS ez_nft_transfers_id,\n\n{% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\nSYSDATE() AS inserted_timestamp,\nSYSDATE() AS modified_timestamp\n{% else %}\n CASE\n WHEN block_timestamp >= DATE_TRUNC('hour', SYSDATE()) - INTERVAL '6 hours' THEN SYSDATE()\n ELSE GREATEST(block_timestamp, DATEADD('day', -10, SYSDATE()))END AS inserted_timestamp,\n CASE\n WHEN block_timestamp >= DATE_TRUNC('hour', SYSDATE()) - INTERVAL '6 hours' THEN SYSDATE()\n ELSE GREATEST(block_timestamp, DATEADD('day', -10, SYSDATE()))END AS modified_timestamp\n {% endif %}\n FROM\n all_transfers A\n LEFT JOIN {{ ref('core__dim_contracts') }} C\n ON A.contract_address = C.address\n AND C.name IS NOT NULL AND C.name <> ''\n WHERE\n to_address IS NOT NULL\n ),\n FINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n intra_event_index,\n token_transfer_type,\n is_mint,\n from_address,\n to_address,\n contract_address,\n COALESCE(\n token_id,\n '0'\n ) AS token_id,\n quantity,\n token_standard,\n NAME,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n ez_nft_transfers_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n final_transfers\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n t.block_number,\n t.block_timestamp,\n t.tx_hash,\n t.tx_position,\n t.event_index,\n t.intra_event_index,\n t.token_transfer_type,\n t.is_mint,\n t.from_address,\n t.to_address,\n t.contract_address,\n t.token_id,\n t.quantity,\n t.token_standard,\n C.name,\n t.origin_function_signature,\n t.origin_from_address,\n t.origin_to_address,\n t.ez_nft_transfers_id,\n\n{% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\nSYSDATE() AS inserted_timestamp,\nSYSDATE() AS modified_timestamp\n{% else %}\n CASE\n WHEN t.block_timestamp >= DATE_TRUNC('hour', SYSDATE()) - INTERVAL '6 hours' THEN SYSDATE()\n ELSE GREATEST(t.block_timestamp, DATEADD('day', -10, SYSDATE()))END AS inserted_timestamp,\n CASE\n WHEN t.block_timestamp >= DATE_TRUNC('hour', SYSDATE()) - INTERVAL '6 hours' THEN SYSDATE()\n ELSE GREATEST(t.block_timestamp, DATEADD('day', -10, SYSDATE()))END AS modified_timestamp\n {% endif %}\n FROM\n {{ this }}\n t\n INNER JOIN {{ ref('core__dim_contracts') }} C\n ON t.contract_address = C.address\n AND C.name IS NOT NULL\n AND C.modified_timestamp > CURRENT_DATE() - 30\n LEFT JOIN final_transfers f USING (ez_nft_transfers_id)\n WHERE\n t.name IS NULL\n AND f.ez_nft_transfers_id IS NULL\n {% endif %}\n )\n SELECT\n *\n FROM\n FINAL qualify ROW_NUMBER() over (\n PARTITION BY tx_hash,\n event_index,\n intra_event_index\n ORDER BY\n modified_timestamp DESC\n ) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.standard_predicate", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__dim_contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/nft__ez_nft_transfers.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"polygon.\\n \\n nft.\\n \\n ez_nft_transfers.block_number \\u003e= (\\n SELECT\\n MIN(\\n block_number\\n )\\n FROM\\n polygon.\\n \\n nft.\\n \\n ez_nft_transfers__dbt_tmp\\n )\"\n ],\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(origin_from_address, origin_to_address, from_address, to_address, origin_function_signature)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"core\",\n \"ez\",\n \"phase_2\"\n ],\n \"unique_key\": \"ez_nft_transfers_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = 'ez_nft_transfers_id',\n cluster_by = ['block_timestamp::DATE'],\n incremental_predicates = [fsc_evm.standard_predicate()],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(origin_from_address, origin_to_address, from_address, to_address, origin_function_signature)\",\n tags = ['gold','core','ez','phase_2']\n) }}\n\nWITH base AS (\n\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n event_index,\n contract_address,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_position,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE\n WHEN topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' THEN 'erc721_Transfer'\n WHEN topic_0 :: STRING = '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62' THEN 'erc1155_TransferSingle'\n WHEN topic_0 :: STRING = '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb' THEN 'erc1155_TransferBatch'\n END AS token_transfer_type,\n CASE\n WHEN token_transfer_type = 'erc721_Transfer' THEN CONCAT('0x', SUBSTR(topic_1 :: STRING, 27, 40))\n WHEN token_transfer_type = 'erc1155_TransferSingle'\n OR token_transfer_type = 'erc1155_TransferBatch' THEN CONCAT('0x', SUBSTR(topic_2 :: STRING, 27, 40))\n END AS from_address,\n CASE\n WHEN token_transfer_type = 'erc721_Transfer' THEN CONCAT('0x', SUBSTR(topic_2 :: STRING, 27, 40))\n WHEN token_transfer_type = 'erc1155_TransferSingle'\n OR token_transfer_type = 'erc1155_TransferBatch' THEN CONCAT('0x', SUBSTR(topic_3 :: STRING, 27, 40))\n END AS to_address,\n CASE\n WHEN token_transfer_type = 'erc721_Transfer' THEN utils.udf_hex_to_int(\n topic_3 :: STRING\n ) :: STRING\n WHEN token_transfer_type = 'erc1155_TransferSingle' THEN utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: STRING\n END AS token_id,\n CASE\n WHEN token_transfer_type = 'erc721_Transfer' THEN NULL\n WHEN token_transfer_type = 'erc1155_TransferSingle' THEN utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: STRING\n END AS quantity,\n CASE\n WHEN token_transfer_type = 'erc721_Transfer' THEN NULL\n WHEN token_transfer_type = 'erc1155_TransferSingle'\n OR token_transfer_type = 'erc1155_TransferBatch' THEN CONCAT('0x', SUBSTR(topic_1 :: STRING, 27, 40))\n END AS operator_address\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n tx_succeeded\n AND NOT event_removed\n AND (\n (\n topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND DATA = '0x'\n AND topic_3 IS NOT NULL\n ) --erc721s\n OR (\n topic_0 :: STRING = '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62'\n ) --erc1155s\n OR (\n topic_0 :: STRING = '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb'\n ) --erc1155s TransferBatch event\n {% if vars.GLOBAL_PROJECT_NAME == 'ethereum' %}\n OR (\n topic_0 :: STRING IN (\n '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',\n -- regular transfer topic\n '0x58e5d5a525e3b40bc15abaa38b5882678db1ee68befd2f60bafe3a7fd06db9e3',\n -- PunkBought\n '0x05af636b70da6819000c49f85b21fa82081c632069bb626f30932034099107d8' -- PunkTransfer\n )\n AND contract_address IN (\n '0x6ba6f2207e343923ba692e5cae646fb0f566db8d',\n -- Old V1\n '0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb' -- cryptopunks\n )\n )\n OR (\n -- legacy tokens\n topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND topic_1 IS NULL\n )\n {% endif %}\n )\n\n{% if is_incremental() %}\nAND modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }})\n {% endif %}\n),\ntransfer_batch_raw AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_position,\n segmented_data,\n operator_address,\n from_address,\n to_address,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) AS tokenid_length\n FROM\n base\n WHERE\n topic_0 :: STRING = '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb'\n AND to_address IS NOT NULL\n),\nflattened AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_position,\n segmented_data,\n operator_address,\n from_address,\n to_address,\n INDEX,\n VALUE,\n tokenid_length,\n 2 + tokenid_length AS tokenid_indextag,\n 4 + tokenid_length AS quantity_indextag_start,\n 4 + tokenid_length + tokenid_length AS quantity_indextag_end,\n CASE\n WHEN INDEX BETWEEN 3\n AND (\n tokenid_indextag\n ) THEN 'tokenid'\n WHEN INDEX BETWEEN (\n quantity_indextag_start\n )\n AND (\n quantity_indextag_end\n ) THEN 'quantity'\n ELSE NULL\n END AS label\n FROM\n transfer_batch_raw,\n LATERAL FLATTEN (\n input => segmented_data\n )\n),\ntokenid_list AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_position,\n segmented_data,\n operator_address,\n from_address,\n to_address,\n utils.udf_hex_to_int(\n VALUE :: STRING\n ) :: STRING AS tokenId,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n event_index\n ORDER BY\n INDEX ASC\n ) AS tokenid_order\n FROM\n flattened\n WHERE\n label = 'tokenid'\n),\nquantity_list AS (\n SELECT\n tx_hash,\n event_index,\n utils.udf_hex_to_int(\n VALUE :: STRING\n ) :: STRING AS quantity,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n event_index\n ORDER BY\n INDEX ASC\n ) AS quantity_order\n FROM\n flattened\n WHERE\n label = 'quantity'\n),\ntransfer_batch_final AS (\n SELECT\n block_number,\n block_timestamp,\n t.tx_hash,\n t.event_index,\n contract_address,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_position,\n segmented_data,\n operator_address,\n from_address,\n to_address,\n t.tokenId AS token_id,\n q.quantity AS quantity,\n tokenid_order AS intra_event_index\n FROM\n tokenid_list t\n INNER JOIN quantity_list q\n ON t.tx_hash = q.tx_hash\n AND t.event_index = q.event_index\n AND t.tokenid_order = q.quantity_order\n),\n{% if vars.GLOBAL_PROJECT_NAME == 'ethereum' %}\n punks_bought_raw AS (\n -- punks bought via sale or bids\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n topic_1,\n topic_0,\n topic_2,\n utils.udf_hex_to_int(\n topic_1 :: STRING\n ) :: STRING AS token_id,\n CONCAT('0x', SUBSTR(topic_2 :: STRING, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topic_3 :: STRING, 27, 40)) AS to_address,\n '1' AS quantity,\n LAG(topic_0) over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) AS prev_topic_0,\n LAG(topic_1) over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) AS prev_topic_1,\n LAG(topic_2) over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) AS prev_topic_2,\n CONCAT('0x', SUBSTR(prev_topic_1 :: STRING, 27, 40)) AS prev_from_address,\n CONCAT('0x', SUBSTR(prev_topic_2 :: STRING, 27, 40)) AS prev_to_address,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address\n FROM\n base\n WHERE\n topic_0 :: STRING IN (\n '0x58e5d5a525e3b40bc15abaa38b5882678db1ee68befd2f60bafe3a7fd06db9e3',\n -- punk bought\n '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' -- transfer\n )\n AND contract_address IN (\n '0x6ba6f2207e343923ba692e5cae646fb0f566db8d',\n -- Old V1\n '0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb' -- cryptopunks\n )\n ),\n punks_bought AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n contract_address,\n token_id,\n from_address,\n CASE\n WHEN to_address = '0x0000000000000000000000000000000000000000'\n AND prev_topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND prev_from_address = from_address THEN prev_to_address\n ELSE to_address\n END AS to_address,\n quantity,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address\n FROM\n punks_bought_raw\n WHERE\n topic_0 :: STRING = '0x58e5d5a525e3b40bc15abaa38b5882678db1ee68befd2f60bafe3a7fd06db9e3'\n ),\n punks_transfer AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n contract_address,\n utils.udf_hex_to_int(\n DATA :: STRING\n ) :: STRING AS token_id,\n CONCAT('0x', SUBSTR(topic_1 :: STRING, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topic_2 :: STRING, 27, 40)) AS to_address,\n '1' AS quantity,\n event_index,\n tx_position,\n origin_function_signature,\n origin_from_address,\n origin_to_address\n FROM\n base\n WHERE\n topic_0 :: STRING = '0x05af636b70da6819000c49f85b21fa82081c632069bb626f30932034099107d8'\n AND contract_address IN (\n '0x6ba6f2207e343923ba692e5cae646fb0f566db8d',\n -- Old V1\n '0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb' -- cryptopunks\n )\n ),\n legacy_tokens AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n contract_address,\n CONCAT('0x', SUBSTR(segmented_data [0], 25, 40)) AS from_address,\n CONCAT('0x', SUBSTR(segmented_data [1], 25, 40)) AS to_address,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: STRING AS token_id,\n '1' AS quantity,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address\n FROM\n base\n WHERE\n topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND topic_1 IS NULL\n ),\n{% endif %}\n\nall_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n token_id,\n quantity,\n 1 AS intra_event_index,\n token_transfer_type\n FROM\n base\n WHERE\n (\n topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND DATA = '0x'\n AND topic_3 IS NOT NULL\n ) --erc721s TransferSingle event\n OR (\n topic_0 :: STRING = '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62'\n ) --erc1155s\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n token_id,\n quantity,\n intra_event_index,\n 'erc1155_TransferBatch' AS token_transfer_type\n FROM\n transfer_batch_final\n\n {% if vars.GLOBAL_PROJECT_NAME == 'ethereum' %}\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n token_id,\n quantity,\n 1 AS intra_event_index,\n 'cryptopunks_PunkTransfer' AS token_transfer_type\n FROM\n punks_transfer\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n token_id,\n quantity,\n 1 AS intra_event_index,\n 'cryptopunks_PunkBought' AS token_transfer_type\n FROM\n punks_bought\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n token_id,\n quantity,\n 1 AS intra_event_index,\n 'legacy_Transfer' AS token_transfer_type\n FROM\n legacy_tokens\n {% endif %}\n),\nfinal_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n token_id,\n COALESCE(\n quantity,\n '1'\n ) AS quantity,\n intra_event_index,\n token_transfer_type,\n NAME AS NAME,\n from_address = '0x0000000000000000000000000000000000000000' AS is_mint,\n CASE\n WHEN token_transfer_type = 'erc721_Transfer' THEN 'erc721'\n WHEN token_transfer_type = 'erc1155_TransferSingle' THEN 'erc1155'\n WHEN token_transfer_type = 'erc1155_TransferBatch' THEN 'erc1155' {% if vars.GLOBAL_PROJECT_NAME == 'ethereum' %}\n WHEN token_transfer_type = 'legacy_Transfer' THEN 'legacy'\n WHEN token_transfer_type = 'cryptopunks_PunkBought' THEN 'cryptopunks'\n WHEN token_transfer_type = 'cryptopunks_PunkTransfer' THEN 'cryptopunks'\n {% endif %}\n END AS token_standard,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash','event_index','intra_event_index']\n ) }} AS ez_nft_transfers_id,\n\n{% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\nSYSDATE() AS inserted_timestamp,\nSYSDATE() AS modified_timestamp\n{% else %}\n CASE\n WHEN block_timestamp >= DATE_TRUNC('hour', SYSDATE()) - INTERVAL '6 hours' THEN SYSDATE()\n ELSE GREATEST(block_timestamp, DATEADD('day', -10, SYSDATE()))END AS inserted_timestamp,\n CASE\n WHEN block_timestamp >= DATE_TRUNC('hour', SYSDATE()) - INTERVAL '6 hours' THEN SYSDATE()\n ELSE GREATEST(block_timestamp, DATEADD('day', -10, SYSDATE()))END AS modified_timestamp\n {% endif %}\n FROM\n all_transfers A\n LEFT JOIN {{ ref('core__dim_contracts') }} C\n ON A.contract_address = C.address\n AND C.name IS NOT NULL AND C.name <> ''\n WHERE\n to_address IS NOT NULL\n ),\n FINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n intra_event_index,\n token_transfer_type,\n is_mint,\n from_address,\n to_address,\n contract_address,\n COALESCE(\n token_id,\n '0'\n ) AS token_id,\n quantity,\n token_standard,\n NAME,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n ez_nft_transfers_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n final_transfers\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n t.block_number,\n t.block_timestamp,\n t.tx_hash,\n t.tx_position,\n t.event_index,\n t.intra_event_index,\n t.token_transfer_type,\n t.is_mint,\n t.from_address,\n t.to_address,\n t.contract_address,\n t.token_id,\n t.quantity,\n t.token_standard,\n C.name,\n t.origin_function_signature,\n t.origin_from_address,\n t.origin_to_address,\n t.ez_nft_transfers_id,\n\n{% if is_incremental() or vars.GLOBAL_NEW_BUILD_ENABLED %}\nSYSDATE() AS inserted_timestamp,\nSYSDATE() AS modified_timestamp\n{% else %}\n CASE\n WHEN t.block_timestamp >= DATE_TRUNC('hour', SYSDATE()) - INTERVAL '6 hours' THEN SYSDATE()\n ELSE GREATEST(t.block_timestamp, DATEADD('day', -10, SYSDATE()))END AS inserted_timestamp,\n CASE\n WHEN t.block_timestamp >= DATE_TRUNC('hour', SYSDATE()) - INTERVAL '6 hours' THEN SYSDATE()\n ELSE GREATEST(t.block_timestamp, DATEADD('day', -10, SYSDATE()))END AS modified_timestamp\n {% endif %}\n FROM\n {{ this }}\n t\n INNER JOIN {{ ref('core__dim_contracts') }} C\n ON t.contract_address = C.address\n AND C.name IS NOT NULL\n AND C.modified_timestamp > CURRENT_DATE() - 30\n LEFT JOIN final_transfers f USING (ez_nft_transfers_id)\n WHERE\n t.name IS NULL\n AND f.ez_nft_transfers_id IS NULL\n {% endif %}\n )\n SELECT\n *\n FROM\n FINAL qualify ROW_NUMBER() over (\n PARTITION BY tx_hash,\n event_index,\n intra_event_index\n ORDER BY\n modified_timestamp DESC\n ) = 1\n*/\n\n\n\nWITH base AS (\n\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n event_index,\n contract_address,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_position,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE\n WHEN topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' THEN 'erc721_Transfer'\n WHEN topic_0 :: STRING = '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62' THEN 'erc1155_TransferSingle'\n WHEN topic_0 :: STRING = '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb' THEN 'erc1155_TransferBatch'\n END AS token_transfer_type,\n CASE\n WHEN token_transfer_type = 'erc721_Transfer' THEN CONCAT('0x', SUBSTR(topic_1 :: STRING, 27, 40))\n WHEN token_transfer_type = 'erc1155_TransferSingle'\n OR token_transfer_type = 'erc1155_TransferBatch' THEN CONCAT('0x', SUBSTR(topic_2 :: STRING, 27, 40))\n END AS from_address,\n CASE\n WHEN token_transfer_type = 'erc721_Transfer' THEN CONCAT('0x', SUBSTR(topic_2 :: STRING, 27, 40))\n WHEN token_transfer_type = 'erc1155_TransferSingle'\n OR token_transfer_type = 'erc1155_TransferBatch' THEN CONCAT('0x', SUBSTR(topic_3 :: STRING, 27, 40))\n END AS to_address,\n CASE\n WHEN token_transfer_type = 'erc721_Transfer' THEN utils.udf_hex_to_int(\n topic_3 :: STRING\n ) :: STRING\n WHEN token_transfer_type = 'erc1155_TransferSingle' THEN utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: STRING\n END AS token_id,\n CASE\n WHEN token_transfer_type = 'erc721_Transfer' THEN NULL\n WHEN token_transfer_type = 'erc1155_TransferSingle' THEN utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: STRING\n END AS quantity,\n CASE\n WHEN token_transfer_type = 'erc721_Transfer' THEN NULL\n WHEN token_transfer_type = 'erc1155_TransferSingle'\n OR token_transfer_type = 'erc1155_TransferBatch' THEN CONCAT('0x', SUBSTR(topic_1 :: STRING, 27, 40))\n END AS operator_address\n FROM\n polygon.core.fact_event_logs\n WHERE\n tx_succeeded\n AND NOT event_removed\n AND (\n (\n topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND DATA = '0x'\n AND topic_3 IS NOT NULL\n ) --erc721s\n OR (\n topic_0 :: STRING = '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62'\n ) --erc1155s\n OR (\n topic_0 :: STRING = '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb'\n ) --erc1155s TransferBatch event\n \n )\n\n\nAND modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n polygon.nft.ez_nft_transfers)\n \n),\ntransfer_batch_raw AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_position,\n segmented_data,\n operator_address,\n from_address,\n to_address,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) AS tokenid_length\n FROM\n base\n WHERE\n topic_0 :: STRING = '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb'\n AND to_address IS NOT NULL\n),\nflattened AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_position,\n segmented_data,\n operator_address,\n from_address,\n to_address,\n INDEX,\n VALUE,\n tokenid_length,\n 2 + tokenid_length AS tokenid_indextag,\n 4 + tokenid_length AS quantity_indextag_start,\n 4 + tokenid_length + tokenid_length AS quantity_indextag_end,\n CASE\n WHEN INDEX BETWEEN 3\n AND (\n tokenid_indextag\n ) THEN 'tokenid'\n WHEN INDEX BETWEEN (\n quantity_indextag_start\n )\n AND (\n quantity_indextag_end\n ) THEN 'quantity'\n ELSE NULL\n END AS label\n FROM\n transfer_batch_raw,\n LATERAL FLATTEN (\n input => segmented_data\n )\n),\ntokenid_list AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_position,\n segmented_data,\n operator_address,\n from_address,\n to_address,\n utils.udf_hex_to_int(\n VALUE :: STRING\n ) :: STRING AS tokenId,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n event_index\n ORDER BY\n INDEX ASC\n ) AS tokenid_order\n FROM\n flattened\n WHERE\n label = 'tokenid'\n),\nquantity_list AS (\n SELECT\n tx_hash,\n event_index,\n utils.udf_hex_to_int(\n VALUE :: STRING\n ) :: STRING AS quantity,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n event_index\n ORDER BY\n INDEX ASC\n ) AS quantity_order\n FROM\n flattened\n WHERE\n label = 'quantity'\n),\ntransfer_batch_final AS (\n SELECT\n block_number,\n block_timestamp,\n t.tx_hash,\n t.event_index,\n contract_address,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_position,\n segmented_data,\n operator_address,\n from_address,\n to_address,\n t.tokenId AS token_id,\n q.quantity AS quantity,\n tokenid_order AS intra_event_index\n FROM\n tokenid_list t\n INNER JOIN quantity_list q\n ON t.tx_hash = q.tx_hash\n AND t.event_index = q.event_index\n AND t.tokenid_order = q.quantity_order\n),\n\n\nall_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n token_id,\n quantity,\n 1 AS intra_event_index,\n token_transfer_type\n FROM\n base\n WHERE\n (\n topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND DATA = '0x'\n AND topic_3 IS NOT NULL\n ) --erc721s TransferSingle event\n OR (\n topic_0 :: STRING = '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62'\n ) --erc1155s\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n token_id,\n quantity,\n intra_event_index,\n 'erc1155_TransferBatch' AS token_transfer_type\n FROM\n transfer_batch_final\n\n \n),\nfinal_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n token_id,\n COALESCE(\n quantity,\n '1'\n ) AS quantity,\n intra_event_index,\n token_transfer_type,\n NAME AS NAME,\n from_address = '0x0000000000000000000000000000000000000000' AS is_mint,\n CASE\n WHEN token_transfer_type = 'erc721_Transfer' THEN 'erc721'\n WHEN token_transfer_type = 'erc1155_TransferSingle' THEN 'erc1155'\n WHEN token_transfer_type = 'erc1155_TransferBatch' THEN 'erc1155' \n END AS token_standard,\n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(event_index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(intra_event_index as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS ez_nft_transfers_id,\n\n\nSYSDATE() AS inserted_timestamp,\nSYSDATE() AS modified_timestamp\n\n FROM\n all_transfers A\n LEFT JOIN polygon.core.dim_contracts C\n ON A.contract_address = C.address\n AND C.name IS NOT NULL AND C.name <> ''\n WHERE\n to_address IS NOT NULL\n ),\n FINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n tx_position,\n event_index,\n intra_event_index,\n token_transfer_type,\n is_mint,\n from_address,\n to_address,\n contract_address,\n COALESCE(\n token_id,\n '0'\n ) AS token_id,\n quantity,\n token_standard,\n NAME,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n ez_nft_transfers_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n final_transfers\n\n\nUNION ALL\nSELECT\n t.block_number,\n t.block_timestamp,\n t.tx_hash,\n t.tx_position,\n t.event_index,\n t.intra_event_index,\n t.token_transfer_type,\n t.is_mint,\n t.from_address,\n t.to_address,\n t.contract_address,\n t.token_id,\n t.quantity,\n t.token_standard,\n C.name,\n t.origin_function_signature,\n t.origin_from_address,\n t.origin_to_address,\n t.ez_nft_transfers_id,\n\n\nSYSDATE() AS inserted_timestamp,\nSYSDATE() AS modified_timestamp\n\n FROM\n polygon.nft.ez_nft_transfers\n t\n INNER JOIN polygon.core.dim_contracts C\n ON t.contract_address = C.address\n AND C.name IS NOT NULL\n AND C.modified_timestamp > CURRENT_DATE() - 30\n LEFT JOIN final_transfers f USING (ez_nft_transfers_id)\n WHERE\n t.name IS NULL\n AND f.ez_nft_transfers_id IS NULL\n \n )\n SELECT\n *\n FROM\n FINAL qualify ROW_NUMBER() over (\n PARTITION BY tx_hash,\n event_index,\n intra_event_index\n ORDER BY\n modified_timestamp DESC\n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_nft__ez_nft_transfers_full": {"database": "polygon", "schema": "test_nft", "name": "test_nft__ez_nft_transfers_full", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/nft/tests/test_nft__ez_nft_transfers_full.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.sql", "unique_id": "model.fsc_evm.test_nft__ez_nft_transfers_full", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "test_nft__ez_nft_transfers_full"], "alias": "ez_nft_transfers_full", "checksum": {"name": "sha256", "checksum": "0d524b373ad87dd6826daf4ccbec75829ab11667438e8f636bfff5b282537c9f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_nft", "nft", "full_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_nft", "nft", "full_test", "phase_2"], "description": "This is a view used to test all of the `ez_nft_transfers` data.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INTRA_EVENT_INDEX": {"name": "INTRA_EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ID": {"name": "TOKEN_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_NFT_TRANSFERS_ID": {"name": "EZ_NFT_TRANSFERS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_nft", "nft", "full_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.4680617, "relation_name": "polygon.test_nft.ez_nft_transfers_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_nft','nft','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('nft__ez_nft_transfers') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "nft__ez_nft_transfers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.nft__ez_nft_transfers"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_nft\",\n \"nft\",\n \"full_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_nft','nft','full_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('nft__ez_nft_transfers') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.nft.ez_nft_transfers\n\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_nft__ez_nft_transfers_recent": {"database": "polygon", "schema": "test_nft", "name": "test_nft__ez_nft_transfers_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.sql", "unique_id": "model.fsc_evm.test_nft__ez_nft_transfers_recent", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "test_nft__ez_nft_transfers_recent"], "alias": "ez_nft_transfers_recent", "checksum": {"name": "sha256", "checksum": "ba90adfa18aec8a98a12fa26a961e2738c7f298ccfe29158717b16a33deb8da2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_nft", "nft", "recent_test", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_nft", "nft", "recent_test", "phase_2"], "description": "This is a view used to test the recent `ez_nft_transfers` data.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INTRA_EVENT_INDEX": {"name": "INTRA_EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ID": {"name": "TOKEN_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_NFT_TRANSFERS_ID": {"name": "EZ_NFT_TRANSFERS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_nft", "nft", "recent_test", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.5478382, "relation_name": "polygon.test_nft.ez_nft_transfers_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_nft','nft','recent_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('nft__ez_nft_transfers') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "nft__ez_nft_transfers", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.nft__ez_nft_transfers", "model.fsc_evm._block_lookback"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.sql", "compiled": true, "compiled_code": "\n\n\n\nwith __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n) /* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_nft\",\n \"nft\",\n \"recent_test\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_nft','nft','recent_test','phase_2']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('nft__ez_nft_transfers') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.nft.ez_nft_transfers\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n __dbt__cte___block_lookback\n )\n\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.fsc_evm._block_lookback", "sql": " __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.observability__receipts": {"database": "polygon", "schema": "observability", "name": "observability__receipts", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/observability/observability__receipts.sql", "original_file_path": "models/main_package/observability/observability__receipts.sql", "unique_id": "model.fsc_evm.observability__receipts", "fqn": ["fsc_evm", "main_package", "observability", "observability__receipts"], "alias": "receipts", "checksum": {"name": "sha256", "checksum": "e66c981435528c8047f70d6ed799887146d7bf947848f4aeda6b4ac4372131ed"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "observability", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "test_timestamp", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "observability", "phase_3"], "description": "", "columns": {"TEST_TIMESTAMP": {"name": "TEST_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCKS_IMPACTED_COUNT": {"name": "BLOCKS_IMPACTED_COUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/observability/observability__receipts.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "test_timestamp", "full_refresh": false, "tags": ["silver", "observability", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.6590858, "relation_name": "polygon.observability.receipts", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = 'test_timestamp',\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','observability','phase_3']\n) }}\n\nWITH lookback AS (\n\n SELECT\n MIN(block_number) AS block_number\n FROM\n (\n SELECT\n block_number\n FROM\n {{ ref('core__fact_blocks') }}\n WHERE\n block_timestamp >= DATEADD('hour', -96, systimestamp())\n\n{% if is_incremental() %}\nUNION ALL\n (\n SELECT\n missing_list [0]\n FROM\n {{ this }}\n ORDER BY\n test_timestamp DESC\n LIMIT\n 1\n )\n{% endif %}\n\n{% if vars.MAIN_OBSERV_FULL_TEST_ENABLED %}\nUNION ALL\nSELECT\n 0\n{% endif %}\n)\n),\nbase AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash\n FROM\n {{ ref('core__fact_transactions') }}\n WHERE\n block_timestamp <= DATEADD('hour', -12, systimestamp())\n\n{% if is_incremental() %}\nAND block_number >= (\n SELECT\n block_number\n FROM\n lookback\n)\n{% endif %}\n),\nsummary_stats AS (\n SELECT\n MIN(block_number) AS min_block,\n MAX(block_number) AS max_block,\n MIN(block_timestamp) AS min_block_timestamp,\n MAX(block_timestamp) AS max_block_timestamp,\n COUNT(1) AS blocks_tested\n FROM\n base\n),\ngap_test AS (\n SELECT\n IFF(\n (\n r.receipts_json :transactionHash :: STRING\n ) IS NULL,\n b.block_number,\n NULL\n ) AS missing_block_number\n FROM\n base b\n LEFT JOIN {{ ref('silver__receipts') }}\n r\n ON b.block_number = r.block_number\n AND b.tx_hash = r.receipts_json :transactionHash :: STRING\n INNER JOIN summary_stats\n WHERE\n r.receipts_json :transactionHash :: STRING IS NULL\n AND b.block_number >= min_block\n AND b.block_number <= max_block\n),\ngap_agg AS (\n SELECT\n COUNT(\n DISTINCT missing_block_number\n ) AS blocks_impacted_count,\n ARRAY_AGG(\n DISTINCT missing_block_number\n ) within GROUP (\n ORDER BY\n missing_block_number ASC\n ) AS missing_list\n FROM\n gap_test\n WHERE\n missing_block_number IS NOT NULL\n AND missing_block_number <> 0 {% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\n AND missing_block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n {% endif %}\n)\nSELECT\n 'receipts' AS test_name,\n systimestamp() AS test_timestamp,\n min_block,\n max_block,\n min_block_timestamp,\n max_block_timestamp,\n blocks_tested,\n blocks_impacted_count,\n missing_list\nFROM\n gap_agg,\n summary_stats", "language": "sql", "refs": [{"name": "core__fact_blocks", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}, {"name": "silver__receipts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_blocks", "model.fsc_evm.core__fact_transactions", "model.fsc_evm.silver__receipts"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/observability/observability__receipts.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"observability\",\n \"phase_3\"\n ],\n \"unique_key\": \"test_timestamp\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = 'test_timestamp',\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','observability','phase_3']\n) }}\n\nWITH lookback AS (\n\n SELECT\n MIN(block_number) AS block_number\n FROM\n (\n SELECT\n block_number\n FROM\n {{ ref('core__fact_blocks') }}\n WHERE\n block_timestamp >= DATEADD('hour', -96, systimestamp())\n\n{% if is_incremental() %}\nUNION ALL\n (\n SELECT\n missing_list [0]\n FROM\n {{ this }}\n ORDER BY\n test_timestamp DESC\n LIMIT\n 1\n )\n{% endif %}\n\n{% if vars.MAIN_OBSERV_FULL_TEST_ENABLED %}\nUNION ALL\nSELECT\n 0\n{% endif %}\n)\n),\nbase AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash\n FROM\n {{ ref('core__fact_transactions') }}\n WHERE\n block_timestamp <= DATEADD('hour', -12, systimestamp())\n\n{% if is_incremental() %}\nAND block_number >= (\n SELECT\n block_number\n FROM\n lookback\n)\n{% endif %}\n),\nsummary_stats AS (\n SELECT\n MIN(block_number) AS min_block,\n MAX(block_number) AS max_block,\n MIN(block_timestamp) AS min_block_timestamp,\n MAX(block_timestamp) AS max_block_timestamp,\n COUNT(1) AS blocks_tested\n FROM\n base\n),\ngap_test AS (\n SELECT\n IFF(\n (\n r.receipts_json :transactionHash :: STRING\n ) IS NULL,\n b.block_number,\n NULL\n ) AS missing_block_number\n FROM\n base b\n LEFT JOIN {{ ref('silver__receipts') }}\n r\n ON b.block_number = r.block_number\n AND b.tx_hash = r.receipts_json :transactionHash :: STRING\n INNER JOIN summary_stats\n WHERE\n r.receipts_json :transactionHash :: STRING IS NULL\n AND b.block_number >= min_block\n AND b.block_number <= max_block\n),\ngap_agg AS (\n SELECT\n COUNT(\n DISTINCT missing_block_number\n ) AS blocks_impacted_count,\n ARRAY_AGG(\n DISTINCT missing_block_number\n ) within GROUP (\n ORDER BY\n missing_block_number ASC\n ) AS missing_list\n FROM\n gap_test\n WHERE\n missing_block_number IS NOT NULL\n AND missing_block_number <> 0 {% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\n AND missing_block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n {% endif %}\n)\nSELECT\n 'receipts' AS test_name,\n systimestamp() AS test_timestamp,\n min_block,\n max_block,\n min_block_timestamp,\n max_block_timestamp,\n blocks_tested,\n blocks_impacted_count,\n missing_list\nFROM\n gap_agg,\n summary_stats\n*/\n\n\n\nWITH lookback AS (\n\n SELECT\n MIN(block_number) AS block_number\n FROM\n (\n SELECT\n block_number\n FROM\n polygon.core.fact_blocks\n WHERE\n block_timestamp >= DATEADD('hour', -96, systimestamp())\n\n\nUNION ALL\n (\n SELECT\n missing_list [0]\n FROM\n polygon.observability.receipts\n ORDER BY\n test_timestamp DESC\n LIMIT\n 1\n )\n\n\n\n)\n),\nbase AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash\n FROM\n polygon.core.fact_transactions\n WHERE\n block_timestamp <= DATEADD('hour', -12, systimestamp())\n\n\nAND block_number >= (\n SELECT\n block_number\n FROM\n lookback\n)\n\n),\nsummary_stats AS (\n SELECT\n MIN(block_number) AS min_block,\n MAX(block_number) AS max_block,\n MIN(block_timestamp) AS min_block_timestamp,\n MAX(block_timestamp) AS max_block_timestamp,\n COUNT(1) AS blocks_tested\n FROM\n base\n),\ngap_test AS (\n SELECT\n IFF(\n (\n r.receipts_json :transactionHash :: STRING\n ) IS NULL,\n b.block_number,\n NULL\n ) AS missing_block_number\n FROM\n base b\n LEFT JOIN polygon.silver.receipts\n r\n ON b.block_number = r.block_number\n AND b.tx_hash = r.receipts_json :transactionHash :: STRING\n INNER JOIN summary_stats\n WHERE\n r.receipts_json :transactionHash :: STRING IS NULL\n AND b.block_number >= min_block\n AND b.block_number <= max_block\n),\ngap_agg AS (\n SELECT\n COUNT(\n DISTINCT missing_block_number\n ) AS blocks_impacted_count,\n ARRAY_AGG(\n DISTINCT missing_block_number\n ) within GROUP (\n ORDER BY\n missing_block_number ASC\n ) AS missing_list\n FROM\n gap_test\n WHERE\n missing_block_number IS NOT NULL\n AND missing_block_number <> 0 \n AND missing_block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n \n)\nSELECT\n 'receipts' AS test_name,\n systimestamp() AS test_timestamp,\n min_block,\n max_block,\n min_block_timestamp,\n max_block_timestamp,\n blocks_tested,\n blocks_impacted_count,\n missing_list\nFROM\n gap_agg,\n summary_stats", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.observability__traces": {"database": "polygon", "schema": "observability", "name": "observability__traces", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/observability/observability__traces.sql", "original_file_path": "models/main_package/observability/observability__traces.sql", "unique_id": "model.fsc_evm.observability__traces", "fqn": ["fsc_evm", "main_package", "observability", "observability__traces"], "alias": "traces", "checksum": {"name": "sha256", "checksum": "c98ef9c39526d7d3754fd1d081c297990983ef6cc7f628f55dcbe6b8ca9890b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "observability", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "test_timestamp", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "observability", "phase_3"], "description": "", "columns": {"TEST_TIMESTAMP": {"name": "TEST_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCKS_IMPACTED_COUNT": {"name": "BLOCKS_IMPACTED_COUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/observability/observability__traces.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "test_timestamp", "full_refresh": false, "tags": ["silver", "observability", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.6436963, "relation_name": "polygon.observability.traces", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = 'test_timestamp',\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','observability','phase_3']\n) }}\n\nWITH lookback AS (\n\n SELECT\n MIN(block_number) AS block_number\n FROM\n (\n SELECT\n block_number\n FROM\n {{ ref('core__fact_blocks') }}\n WHERE\n block_timestamp >= DATEADD('hour', -96, systimestamp())\n\n{% if is_incremental() %}\nUNION ALL\n (\n SELECT\n missing_list [0]\n FROM\n {{ this }}\n ORDER BY\n test_timestamp DESC\n LIMIT\n 1\n )\n{% endif %}\n\n{% if vars.MAIN_OBSERV_FULL_TEST_ENABLED %}\nUNION ALL\nSELECT\n 0\n{% endif %}\n)\n),\nbase AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash\n FROM\n {{ ref('core__fact_transactions') }}\n WHERE\n block_timestamp <= DATEADD('hour', -12, systimestamp())\n AND from_address <> '0x0000000000000000000000000000000000000000'\n AND to_address <> '0x0000000000000000000000000000000000000000'\n {% if vars.GLOBAL_PROJECT_NAME == 'arbitrum' %}\n AND to_address <> '0x000000000000000000000000000000000000006e'\n AND block_number > 22207817\n {% endif %}\n\n{% if is_incremental() %}\nAND block_number >= (\n SELECT\n block_number\n FROM\n lookback\n)\n{% endif %}\n),\nsummary_stats AS (\n SELECT\n MIN(block_number) AS min_block,\n MAX(block_number) AS max_block,\n MIN(block_timestamp) AS min_block_timestamp,\n MAX(block_timestamp) AS max_block_timestamp,\n COUNT(1) AS blocks_tested\n FROM\n base\n),\ngap_test AS (\n SELECT\n IFF(\n t.tx_hash IS NULL,\n b.block_number,\n NULL\n ) AS missing_block_number\n FROM\n base b\n LEFT JOIN {{ ref('core__fact_traces') }}\n t USING (\n block_number,\n tx_hash\n )\n INNER JOIN summary_stats\n WHERE\n t.tx_hash IS NULL\n AND b.block_number >= min_block\n AND b.block_number <= max_block\n),\ngap_agg AS (\n SELECT\n COUNT(\n DISTINCT missing_block_number\n ) AS blocks_impacted_count,\n ARRAY_AGG(\n DISTINCT missing_block_number\n ) within GROUP (\n ORDER BY\n missing_block_number ASC\n ) AS missing_list\n FROM\n gap_test\n WHERE\n missing_block_number IS NOT NULL\n AND missing_block_number <> 0 {% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\n AND missing_block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n {% endif %}\n {% if vars.GLOBAL_PROJECT_NAME == 'boba' %}\n AND missing_block_number > 1041894\n {% endif %}\n AND (\n SELECT\n COUNT(DISTINCT missing_block_number) >= {{ vars.MAIN_CORE_GOLD_TRACES_TEST_ERROR_THRESHOLD }}\n FROM\n gap_test\n )\n)\nSELECT\n 'traces' AS test_name,\n systimestamp() AS test_timestamp,\n min_block,\n max_block,\n min_block_timestamp,\n max_block_timestamp,\n blocks_tested,\n blocks_impacted_count,\n missing_list\nFROM\n gap_agg,\n summary_stats", "language": "sql", "refs": [{"name": "core__fact_blocks", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}, {"name": "core__fact_traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_blocks", "model.fsc_evm.core__fact_transactions", "model.fsc_evm.core__fact_traces"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/observability/observability__traces.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"observability\",\n \"phase_3\"\n ],\n \"unique_key\": \"test_timestamp\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = 'test_timestamp',\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','observability','phase_3']\n) }}\n\nWITH lookback AS (\n\n SELECT\n MIN(block_number) AS block_number\n FROM\n (\n SELECT\n block_number\n FROM\n {{ ref('core__fact_blocks') }}\n WHERE\n block_timestamp >= DATEADD('hour', -96, systimestamp())\n\n{% if is_incremental() %}\nUNION ALL\n (\n SELECT\n missing_list [0]\n FROM\n {{ this }}\n ORDER BY\n test_timestamp DESC\n LIMIT\n 1\n )\n{% endif %}\n\n{% if vars.MAIN_OBSERV_FULL_TEST_ENABLED %}\nUNION ALL\nSELECT\n 0\n{% endif %}\n)\n),\nbase AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash\n FROM\n {{ ref('core__fact_transactions') }}\n WHERE\n block_timestamp <= DATEADD('hour', -12, systimestamp())\n AND from_address <> '0x0000000000000000000000000000000000000000'\n AND to_address <> '0x0000000000000000000000000000000000000000'\n {% if vars.GLOBAL_PROJECT_NAME == 'arbitrum' %}\n AND to_address <> '0x000000000000000000000000000000000000006e'\n AND block_number > 22207817\n {% endif %}\n\n{% if is_incremental() %}\nAND block_number >= (\n SELECT\n block_number\n FROM\n lookback\n)\n{% endif %}\n),\nsummary_stats AS (\n SELECT\n MIN(block_number) AS min_block,\n MAX(block_number) AS max_block,\n MIN(block_timestamp) AS min_block_timestamp,\n MAX(block_timestamp) AS max_block_timestamp,\n COUNT(1) AS blocks_tested\n FROM\n base\n),\ngap_test AS (\n SELECT\n IFF(\n t.tx_hash IS NULL,\n b.block_number,\n NULL\n ) AS missing_block_number\n FROM\n base b\n LEFT JOIN {{ ref('core__fact_traces') }}\n t USING (\n block_number,\n tx_hash\n )\n INNER JOIN summary_stats\n WHERE\n t.tx_hash IS NULL\n AND b.block_number >= min_block\n AND b.block_number <= max_block\n),\ngap_agg AS (\n SELECT\n COUNT(\n DISTINCT missing_block_number\n ) AS blocks_impacted_count,\n ARRAY_AGG(\n DISTINCT missing_block_number\n ) within GROUP (\n ORDER BY\n missing_block_number ASC\n ) AS missing_list\n FROM\n gap_test\n WHERE\n missing_block_number IS NOT NULL\n AND missing_block_number <> 0 {% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\n AND missing_block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n {% endif %}\n {% if vars.GLOBAL_PROJECT_NAME == 'boba' %}\n AND missing_block_number > 1041894\n {% endif %}\n AND (\n SELECT\n COUNT(DISTINCT missing_block_number) >= {{ vars.MAIN_CORE_GOLD_TRACES_TEST_ERROR_THRESHOLD }}\n FROM\n gap_test\n )\n)\nSELECT\n 'traces' AS test_name,\n systimestamp() AS test_timestamp,\n min_block,\n max_block,\n min_block_timestamp,\n max_block_timestamp,\n blocks_tested,\n blocks_impacted_count,\n missing_list\nFROM\n gap_agg,\n summary_stats\n*/\n\n\n\nWITH lookback AS (\n\n SELECT\n MIN(block_number) AS block_number\n FROM\n (\n SELECT\n block_number\n FROM\n polygon.core.fact_blocks\n WHERE\n block_timestamp >= DATEADD('hour', -96, systimestamp())\n\n\nUNION ALL\n (\n SELECT\n missing_list [0]\n FROM\n polygon.observability.traces\n ORDER BY\n test_timestamp DESC\n LIMIT\n 1\n )\n\n\n\n)\n),\nbase AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash\n FROM\n polygon.core.fact_transactions\n WHERE\n block_timestamp <= DATEADD('hour', -12, systimestamp())\n AND from_address <> '0x0000000000000000000000000000000000000000'\n AND to_address <> '0x0000000000000000000000000000000000000000'\n \n\n\nAND block_number >= (\n SELECT\n block_number\n FROM\n lookback\n)\n\n),\nsummary_stats AS (\n SELECT\n MIN(block_number) AS min_block,\n MAX(block_number) AS max_block,\n MIN(block_timestamp) AS min_block_timestamp,\n MAX(block_timestamp) AS max_block_timestamp,\n COUNT(1) AS blocks_tested\n FROM\n base\n),\ngap_test AS (\n SELECT\n IFF(\n t.tx_hash IS NULL,\n b.block_number,\n NULL\n ) AS missing_block_number\n FROM\n base b\n LEFT JOIN polygon.core.fact_traces\n t USING (\n block_number,\n tx_hash\n )\n INNER JOIN summary_stats\n WHERE\n t.tx_hash IS NULL\n AND b.block_number >= min_block\n AND b.block_number <= max_block\n),\ngap_agg AS (\n SELECT\n COUNT(\n DISTINCT missing_block_number\n ) AS blocks_impacted_count,\n ARRAY_AGG(\n DISTINCT missing_block_number\n ) within GROUP (\n ORDER BY\n missing_block_number ASC\n ) AS missing_list\n FROM\n gap_test\n WHERE\n missing_block_number IS NOT NULL\n AND missing_block_number <> 0 \n AND missing_block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n \n \n AND (\n SELECT\n COUNT(DISTINCT missing_block_number) >= 0\n FROM\n gap_test\n )\n)\nSELECT\n 'traces' AS test_name,\n systimestamp() AS test_timestamp,\n min_block,\n max_block,\n min_block_timestamp,\n max_block_timestamp,\n blocks_tested,\n blocks_impacted_count,\n missing_list\nFROM\n gap_agg,\n summary_stats", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.observability__blocks": {"database": "polygon", "schema": "observability", "name": "observability__blocks", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/observability/observability__blocks.sql", "original_file_path": "models/main_package/observability/observability__blocks.sql", "unique_id": "model.fsc_evm.observability__blocks", "fqn": ["fsc_evm", "main_package", "observability", "observability__blocks"], "alias": "blocks", "checksum": {"name": "sha256", "checksum": "13bfb6bcd50942e2ee1f597b727a8ec0df7c260396aae86e0c03b1b87d6a7ea3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "observability", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "test_timestamp", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "observability", "phase_3"], "description": "", "columns": {"TEST_TIMESTAMP": {"name": "TEST_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCKS_IMPACTED_COUNT": {"name": "BLOCKS_IMPACTED_COUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/observability/observability__blocks.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "test_timestamp", "full_refresh": false, "tags": ["silver", "observability", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.65142, "relation_name": "polygon.observability.blocks", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = 'test_timestamp',\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','observability','phase_3']\n) }}\n\nWITH lookback AS (\n\n SELECT\n MIN(block_number) AS block_number\n FROM\n (\n SELECT\n block_number\n FROM\n {{ ref('core__fact_blocks') }}\n WHERE\n block_timestamp >= DATEADD('hour', -96, systimestamp())\n\n{% if is_incremental() %}\nUNION ALL\n (\n SELECT\n missing_list [0]\n FROM\n {{ this }}\n ORDER BY\n test_timestamp DESC\n LIMIT\n 1\n )\n{% endif %}\n\n{% if vars.MAIN_OBSERV_FULL_TEST_ENABLED %}\nUNION ALL\nSELECT\n 0\n{% endif %}\n)\n),\nbase AS (\n SELECT\n block_number,\n block_timestamp\n FROM\n {{ ref('core__fact_blocks') }}\n WHERE\n block_timestamp <= DATEADD('hour', -12, systimestamp())\n\n{% if is_incremental() %}\nAND block_number >= (\n SELECT\n block_number\n FROM\n lookback\n)\n{% endif %}\n),\nsummary_stats AS (\n SELECT\n MIN(block_number) AS min_block,\n MAX(block_number) AS max_block,\n MIN(block_timestamp) AS min_block_timestamp,\n MAX(block_timestamp) AS max_block_timestamp,\n COUNT(1) AS blocks_tested\n FROM\n base\n),\ngenerated_range AS (\n SELECT\n _id AS block_number,\n min_block,\n max_block,\n min_block_timestamp,\n max_block_timestamp,\n blocks_tested\n FROM\n {{ ref('admin__number_sequence') }}\n INNER JOIN summary_stats\n WHERE\n _id BETWEEN min_block\n AND max_block\n),\ngap_test AS (\n SELECT\n IFF(\n b.block_number IS NULL,\n g.block_number,\n NULL\n ) AS missing_block_number\n FROM\n generated_range g\n LEFT JOIN base b USING (block_number)\n),\ngap_agg AS (\n SELECT\n COUNT(1) AS blocks_impacted_count,\n ARRAY_AGG(missing_block_number) within GROUP (\n ORDER BY\n missing_block_number ASC\n ) AS missing_list\n FROM\n gap_test\n WHERE\n missing_block_number IS NOT NULL\n AND missing_block_number <> 0 {% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\n AND missing_block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n {% endif %}\n)\nSELECT\n 'blocks' AS test_name,\n systimestamp() AS test_timestamp,\n min_block,\n max_block,\n min_block_timestamp,\n max_block_timestamp,\n blocks_tested,\n blocks_impacted_count,\n missing_list\nFROM\n gap_agg,\n summary_stats", "language": "sql", "refs": [{"name": "core__fact_blocks", "package": null, "version": null}, {"name": "core__fact_blocks", "package": null, "version": null}, {"name": "admin__number_sequence", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_blocks", "model.fsc_evm.admin__number_sequence"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/observability/observability__blocks.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"observability\",\n \"phase_3\"\n ],\n \"unique_key\": \"test_timestamp\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = 'test_timestamp',\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','observability','phase_3']\n) }}\n\nWITH lookback AS (\n\n SELECT\n MIN(block_number) AS block_number\n FROM\n (\n SELECT\n block_number\n FROM\n {{ ref('core__fact_blocks') }}\n WHERE\n block_timestamp >= DATEADD('hour', -96, systimestamp())\n\n{% if is_incremental() %}\nUNION ALL\n (\n SELECT\n missing_list [0]\n FROM\n {{ this }}\n ORDER BY\n test_timestamp DESC\n LIMIT\n 1\n )\n{% endif %}\n\n{% if vars.MAIN_OBSERV_FULL_TEST_ENABLED %}\nUNION ALL\nSELECT\n 0\n{% endif %}\n)\n),\nbase AS (\n SELECT\n block_number,\n block_timestamp\n FROM\n {{ ref('core__fact_blocks') }}\n WHERE\n block_timestamp <= DATEADD('hour', -12, systimestamp())\n\n{% if is_incremental() %}\nAND block_number >= (\n SELECT\n block_number\n FROM\n lookback\n)\n{% endif %}\n),\nsummary_stats AS (\n SELECT\n MIN(block_number) AS min_block,\n MAX(block_number) AS max_block,\n MIN(block_timestamp) AS min_block_timestamp,\n MAX(block_timestamp) AS max_block_timestamp,\n COUNT(1) AS blocks_tested\n FROM\n base\n),\ngenerated_range AS (\n SELECT\n _id AS block_number,\n min_block,\n max_block,\n min_block_timestamp,\n max_block_timestamp,\n blocks_tested\n FROM\n {{ ref('admin__number_sequence') }}\n INNER JOIN summary_stats\n WHERE\n _id BETWEEN min_block\n AND max_block\n),\ngap_test AS (\n SELECT\n IFF(\n b.block_number IS NULL,\n g.block_number,\n NULL\n ) AS missing_block_number\n FROM\n generated_range g\n LEFT JOIN base b USING (block_number)\n),\ngap_agg AS (\n SELECT\n COUNT(1) AS blocks_impacted_count,\n ARRAY_AGG(missing_block_number) within GROUP (\n ORDER BY\n missing_block_number ASC\n ) AS missing_list\n FROM\n gap_test\n WHERE\n missing_block_number IS NOT NULL\n AND missing_block_number <> 0 {% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\n AND missing_block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n {% endif %}\n)\nSELECT\n 'blocks' AS test_name,\n systimestamp() AS test_timestamp,\n min_block,\n max_block,\n min_block_timestamp,\n max_block_timestamp,\n blocks_tested,\n blocks_impacted_count,\n missing_list\nFROM\n gap_agg,\n summary_stats\n*/\n\n\n\nWITH lookback AS (\n\n SELECT\n MIN(block_number) AS block_number\n FROM\n (\n SELECT\n block_number\n FROM\n polygon.core.fact_blocks\n WHERE\n block_timestamp >= DATEADD('hour', -96, systimestamp())\n\n\nUNION ALL\n (\n SELECT\n missing_list [0]\n FROM\n polygon.observability.blocks\n ORDER BY\n test_timestamp DESC\n LIMIT\n 1\n )\n\n\n\n)\n),\nbase AS (\n SELECT\n block_number,\n block_timestamp\n FROM\n polygon.core.fact_blocks\n WHERE\n block_timestamp <= DATEADD('hour', -12, systimestamp())\n\n\nAND block_number >= (\n SELECT\n block_number\n FROM\n lookback\n)\n\n),\nsummary_stats AS (\n SELECT\n MIN(block_number) AS min_block,\n MAX(block_number) AS max_block,\n MIN(block_timestamp) AS min_block_timestamp,\n MAX(block_timestamp) AS max_block_timestamp,\n COUNT(1) AS blocks_tested\n FROM\n base\n),\ngenerated_range AS (\n SELECT\n _id AS block_number,\n min_block,\n max_block,\n min_block_timestamp,\n max_block_timestamp,\n blocks_tested\n FROM\n polygon.admin.number_sequence\n INNER JOIN summary_stats\n WHERE\n _id BETWEEN min_block\n AND max_block\n),\ngap_test AS (\n SELECT\n IFF(\n b.block_number IS NULL,\n g.block_number,\n NULL\n ) AS missing_block_number\n FROM\n generated_range g\n LEFT JOIN base b USING (block_number)\n),\ngap_agg AS (\n SELECT\n COUNT(1) AS blocks_impacted_count,\n ARRAY_AGG(missing_block_number) within GROUP (\n ORDER BY\n missing_block_number ASC\n ) AS missing_list\n FROM\n gap_test\n WHERE\n missing_block_number IS NOT NULL\n AND missing_block_number <> 0 \n AND missing_block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n \n)\nSELECT\n 'blocks' AS test_name,\n systimestamp() AS test_timestamp,\n min_block,\n max_block,\n min_block_timestamp,\n max_block_timestamp,\n blocks_tested,\n blocks_impacted_count,\n missing_list\nFROM\n gap_agg,\n summary_stats", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.observability__transactions": {"database": "polygon", "schema": "observability", "name": "observability__transactions", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/observability/observability__transactions.sql", "original_file_path": "models/main_package/observability/observability__transactions.sql", "unique_id": "model.fsc_evm.observability__transactions", "fqn": ["fsc_evm", "main_package", "observability", "observability__transactions"], "alias": "transactions", "checksum": {"name": "sha256", "checksum": "53a03e14b74486440ee3be8bf28cdd1062675f6115a0c4bbab3f3ac7c24466af"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "observability", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "test_timestamp", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "observability", "phase_3"], "description": "", "columns": {"TEST_TIMESTAMP": {"name": "TEST_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCKS_IMPACTED_COUNT": {"name": "BLOCKS_IMPACTED_COUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/observability/observability__transactions.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "test_timestamp", "full_refresh": false, "tags": ["silver", "observability", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.6262121, "relation_name": "polygon.observability.transactions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = 'test_timestamp',\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','observability','phase_3']\n) }}\n\nWITH lookback AS (\n\n SELECT\n MIN(block_number) AS block_number\n FROM\n (\n SELECT\n block_number\n FROM\n {{ ref('core__fact_blocks') }}\n WHERE\n block_timestamp >= DATEADD('hour', -96, systimestamp())\n\n{% if is_incremental() %}\nUNION ALL\n (\n SELECT\n missing_list [0]\n FROM\n {{ this }}\n ORDER BY\n test_timestamp DESC\n LIMIT\n 1\n )\n{% endif %}\n\n{% if vars.MAIN_OBSERV_FULL_TEST_ENABLED %}\nUNION ALL\nSELECT\n 0\n{% endif %}\n)\n),\nbase AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n modified_timestamp\n FROM\n {{ ref('core__fact_transactions') }}\n WHERE\n block_timestamp <= DATEADD('hour', -12, systimestamp())\n\n{% if is_incremental() %}\nAND block_number >= (\n SELECT\n block_number\n FROM\n lookback\n)\n{% endif %}\n),\nsummary_stats AS (\n SELECT\n MIN(block_number) AS min_block,\n MAX(block_number) AS max_block,\n MIN(block_timestamp) AS min_block_timestamp,\n MAX(block_timestamp) AS max_block_timestamp,\n COUNT(DISTINCT block_number) AS blocks_tested\n FROM\n base\n),\nconfirmed_blocks AS (\n SELECT\n block_number,\n tx_hash\n FROM\n {{ ref(\"silver__confirm_blocks\") }}\n WHERE block_number >= (select min_block from summary_stats)\n AND partition_key >= (select round(min_block,-3) from summary_stats)\n),\ngap_test AS (\n SELECT\n IFF(\n t.tx_hash IS NULL,\n b.block_number,\n NULL\n ) AS missing_block_number\n FROM\n confirmed_blocks\n b\n LEFT JOIN base t USING (\n block_number,\n tx_hash\n )\n INNER JOIN summary_stats\n WHERE\n t.tx_hash IS NULL\n AND b.block_number >= min_block\n AND b.block_number <= max_block\n),\ngap_agg AS (\n SELECT\n COUNT(\n DISTINCT missing_block_number\n ) AS blocks_impacted_count,\n ARRAY_AGG(\n DISTINCT missing_block_number\n ) within GROUP (\n ORDER BY\n missing_block_number ASC\n ) AS missing_list\n FROM\n gap_test\n WHERE\n missing_block_number IS NOT NULL\n AND missing_block_number <> 0 {% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\n AND missing_block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n {% endif %}\n)\nSELECT\n 'transactions' AS test_name,\n systimestamp() AS test_timestamp,\n min_block,\n max_block,\n min_block_timestamp,\n max_block_timestamp,\n blocks_tested,\n blocks_impacted_count,\n missing_list\nFROM\n gap_agg,\n summary_stats", "language": "sql", "refs": [{"name": "core__fact_blocks", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}, {"name": "silver__confirm_blocks", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_blocks", "model.fsc_evm.core__fact_transactions", "model.fsc_evm.silver__confirm_blocks"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/observability/observability__transactions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"observability\",\n \"phase_3\"\n ],\n \"unique_key\": \"test_timestamp\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = 'test_timestamp',\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','observability','phase_3']\n) }}\n\nWITH lookback AS (\n\n SELECT\n MIN(block_number) AS block_number\n FROM\n (\n SELECT\n block_number\n FROM\n {{ ref('core__fact_blocks') }}\n WHERE\n block_timestamp >= DATEADD('hour', -96, systimestamp())\n\n{% if is_incremental() %}\nUNION ALL\n (\n SELECT\n missing_list [0]\n FROM\n {{ this }}\n ORDER BY\n test_timestamp DESC\n LIMIT\n 1\n )\n{% endif %}\n\n{% if vars.MAIN_OBSERV_FULL_TEST_ENABLED %}\nUNION ALL\nSELECT\n 0\n{% endif %}\n)\n),\nbase AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n modified_timestamp\n FROM\n {{ ref('core__fact_transactions') }}\n WHERE\n block_timestamp <= DATEADD('hour', -12, systimestamp())\n\n{% if is_incremental() %}\nAND block_number >= (\n SELECT\n block_number\n FROM\n lookback\n)\n{% endif %}\n),\nsummary_stats AS (\n SELECT\n MIN(block_number) AS min_block,\n MAX(block_number) AS max_block,\n MIN(block_timestamp) AS min_block_timestamp,\n MAX(block_timestamp) AS max_block_timestamp,\n COUNT(DISTINCT block_number) AS blocks_tested\n FROM\n base\n),\nconfirmed_blocks AS (\n SELECT\n block_number,\n tx_hash\n FROM\n {{ ref(\"silver__confirm_blocks\") }}\n WHERE block_number >= (select min_block from summary_stats)\n AND partition_key >= (select round(min_block,-3) from summary_stats)\n),\ngap_test AS (\n SELECT\n IFF(\n t.tx_hash IS NULL,\n b.block_number,\n NULL\n ) AS missing_block_number\n FROM\n confirmed_blocks\n b\n LEFT JOIN base t USING (\n block_number,\n tx_hash\n )\n INNER JOIN summary_stats\n WHERE\n t.tx_hash IS NULL\n AND b.block_number >= min_block\n AND b.block_number <= max_block\n),\ngap_agg AS (\n SELECT\n COUNT(\n DISTINCT missing_block_number\n ) AS blocks_impacted_count,\n ARRAY_AGG(\n DISTINCT missing_block_number\n ) within GROUP (\n ORDER BY\n missing_block_number ASC\n ) AS missing_list\n FROM\n gap_test\n WHERE\n missing_block_number IS NOT NULL\n AND missing_block_number <> 0 {% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\n AND missing_block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n {% endif %}\n)\nSELECT\n 'transactions' AS test_name,\n systimestamp() AS test_timestamp,\n min_block,\n max_block,\n min_block_timestamp,\n max_block_timestamp,\n blocks_tested,\n blocks_impacted_count,\n missing_list\nFROM\n gap_agg,\n summary_stats\n*/\n\n\n\nWITH lookback AS (\n\n SELECT\n MIN(block_number) AS block_number\n FROM\n (\n SELECT\n block_number\n FROM\n polygon.core.fact_blocks\n WHERE\n block_timestamp >= DATEADD('hour', -96, systimestamp())\n\n\nUNION ALL\n (\n SELECT\n missing_list [0]\n FROM\n polygon.observability.transactions\n ORDER BY\n test_timestamp DESC\n LIMIT\n 1\n )\n\n\n\n)\n),\nbase AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n modified_timestamp\n FROM\n polygon.core.fact_transactions\n WHERE\n block_timestamp <= DATEADD('hour', -12, systimestamp())\n\n\nAND block_number >= (\n SELECT\n block_number\n FROM\n lookback\n)\n\n),\nsummary_stats AS (\n SELECT\n MIN(block_number) AS min_block,\n MAX(block_number) AS max_block,\n MIN(block_timestamp) AS min_block_timestamp,\n MAX(block_timestamp) AS max_block_timestamp,\n COUNT(DISTINCT block_number) AS blocks_tested\n FROM\n base\n),\nconfirmed_blocks AS (\n SELECT\n block_number,\n tx_hash\n FROM\n polygon.silver.confirm_blocks\n WHERE block_number >= (select min_block from summary_stats)\n AND partition_key >= (select round(min_block,-3) from summary_stats)\n),\ngap_test AS (\n SELECT\n IFF(\n t.tx_hash IS NULL,\n b.block_number,\n NULL\n ) AS missing_block_number\n FROM\n confirmed_blocks\n b\n LEFT JOIN base t USING (\n block_number,\n tx_hash\n )\n INNER JOIN summary_stats\n WHERE\n t.tx_hash IS NULL\n AND b.block_number >= min_block\n AND b.block_number <= max_block\n),\ngap_agg AS (\n SELECT\n COUNT(\n DISTINCT missing_block_number\n ) AS blocks_impacted_count,\n ARRAY_AGG(\n DISTINCT missing_block_number\n ) within GROUP (\n ORDER BY\n missing_block_number ASC\n ) AS missing_list\n FROM\n gap_test\n WHERE\n missing_block_number IS NOT NULL\n AND missing_block_number <> 0 \n AND missing_block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n \n)\nSELECT\n 'transactions' AS test_name,\n systimestamp() AS test_timestamp,\n min_block,\n max_block,\n min_block_timestamp,\n max_block_timestamp,\n blocks_tested,\n blocks_impacted_count,\n missing_list\nFROM\n gap_agg,\n summary_stats", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.observability__logs": {"database": "polygon", "schema": "observability", "name": "observability__logs", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/observability/observability__logs.sql", "original_file_path": "models/main_package/observability/observability__logs.sql", "unique_id": "model.fsc_evm.observability__logs", "fqn": ["fsc_evm", "main_package", "observability", "observability__logs"], "alias": "logs", "checksum": {"name": "sha256", "checksum": "e64590165490be639ce01725b76a7e894a03f6a8c1fedd0d43431aafc6abfa62"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "observability", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "test_timestamp", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "observability", "phase_3"], "description": "", "columns": {"TEST_TIMESTAMP": {"name": "TEST_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCKS_IMPACTED_COUNT": {"name": "BLOCKS_IMPACTED_COUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/observability/observability__logs.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "test_timestamp", "full_refresh": false, "tags": ["silver", "observability", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.635962, "relation_name": "polygon.observability.logs", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = 'test_timestamp',\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','observability','phase_3']\n) }}\n\nWITH lookback AS (\n\n SELECT\n MIN(block_number) AS block_number\n FROM\n (\n SELECT\n block_number\n FROM\n {{ ref('core__fact_blocks') }}\n WHERE\n block_timestamp >= DATEADD('hour', -96, systimestamp())\n\n{% if is_incremental() %}\nUNION ALL\n (\n SELECT\n missing_list [0]\n FROM\n {{ this }}\n ORDER BY\n test_timestamp DESC\n LIMIT\n 1\n )\n{% endif %}\n\n{% if vars.MAIN_OBSERV_FULL_TEST_ENABLED %}\nUNION ALL\nSELECT\n 0\n{% endif %}\n)\n),\nbase AS (\n SELECT\n block_number,\n b.block_timestamp,\n r.receipts_json :transactionHash :: STRING AS tx_hash\n FROM\n {{ ref('silver__receipts') }}\n r\n INNER JOIN {{ ref('core__fact_blocks') }}\n b USING (block_number)\n WHERE\n b.block_timestamp <= DATEADD('hour', -12, systimestamp())\n AND receipts_json :logs [0] IS NOT NULL\n\n{% if is_incremental() %}\nAND block_number >= (\n SELECT\n block_number\n FROM\n lookback\n)\n{% endif %}\n),\nsummary_stats AS (\n SELECT\n MIN(block_number) AS min_block,\n MAX(block_number) AS max_block,\n MIN(block_timestamp) AS min_block_timestamp,\n MAX(block_timestamp) AS max_block_timestamp,\n COUNT(1) AS blocks_tested\n FROM\n base\n),\ngap_test AS (\n SELECT\n IFF(\n t.tx_hash IS NULL,\n b.block_number,\n NULL\n ) AS missing_block_number\n FROM\n base b\n LEFT JOIN {{ ref('core__fact_event_logs') }}\n t USING (\n block_number,\n tx_hash\n )\n INNER JOIN summary_stats\n WHERE\n t.tx_hash IS NULL\n AND b.block_number >= min_block\n AND b.block_number <= max_block\n),\ngap_agg AS (\n SELECT\n COUNT(\n DISTINCT missing_block_number\n ) AS blocks_impacted_count,\n ARRAY_AGG(\n DISTINCT missing_block_number\n ) within GROUP (\n ORDER BY\n missing_block_number ASC\n ) AS missing_list\n FROM\n gap_test\n WHERE\n missing_block_number IS NOT NULL\n AND missing_block_number <> 0 {% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\n AND missing_block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n {% endif %}\n)\nSELECT\n 'logs' AS test_name,\n systimestamp() AS test_timestamp,\n min_block,\n max_block,\n min_block_timestamp,\n max_block_timestamp,\n blocks_tested,\n blocks_impacted_count,\n missing_list\nFROM\n gap_agg,\n summary_stats", "language": "sql", "refs": [{"name": "core__fact_blocks", "package": null, "version": null}, {"name": "silver__receipts", "package": null, "version": null}, {"name": "core__fact_blocks", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_blocks", "model.fsc_evm.silver__receipts", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/observability/observability__logs.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"observability\",\n \"phase_3\"\n ],\n \"unique_key\": \"test_timestamp\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = 'test_timestamp',\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','observability','phase_3']\n) }}\n\nWITH lookback AS (\n\n SELECT\n MIN(block_number) AS block_number\n FROM\n (\n SELECT\n block_number\n FROM\n {{ ref('core__fact_blocks') }}\n WHERE\n block_timestamp >= DATEADD('hour', -96, systimestamp())\n\n{% if is_incremental() %}\nUNION ALL\n (\n SELECT\n missing_list [0]\n FROM\n {{ this }}\n ORDER BY\n test_timestamp DESC\n LIMIT\n 1\n )\n{% endif %}\n\n{% if vars.MAIN_OBSERV_FULL_TEST_ENABLED %}\nUNION ALL\nSELECT\n 0\n{% endif %}\n)\n),\nbase AS (\n SELECT\n block_number,\n b.block_timestamp,\n r.receipts_json :transactionHash :: STRING AS tx_hash\n FROM\n {{ ref('silver__receipts') }}\n r\n INNER JOIN {{ ref('core__fact_blocks') }}\n b USING (block_number)\n WHERE\n b.block_timestamp <= DATEADD('hour', -12, systimestamp())\n AND receipts_json :logs [0] IS NOT NULL\n\n{% if is_incremental() %}\nAND block_number >= (\n SELECT\n block_number\n FROM\n lookback\n)\n{% endif %}\n),\nsummary_stats AS (\n SELECT\n MIN(block_number) AS min_block,\n MAX(block_number) AS max_block,\n MIN(block_timestamp) AS min_block_timestamp,\n MAX(block_timestamp) AS max_block_timestamp,\n COUNT(1) AS blocks_tested\n FROM\n base\n),\ngap_test AS (\n SELECT\n IFF(\n t.tx_hash IS NULL,\n b.block_number,\n NULL\n ) AS missing_block_number\n FROM\n base b\n LEFT JOIN {{ ref('core__fact_event_logs') }}\n t USING (\n block_number,\n tx_hash\n )\n INNER JOIN summary_stats\n WHERE\n t.tx_hash IS NULL\n AND b.block_number >= min_block\n AND b.block_number <= max_block\n),\ngap_agg AS (\n SELECT\n COUNT(\n DISTINCT missing_block_number\n ) AS blocks_impacted_count,\n ARRAY_AGG(\n DISTINCT missing_block_number\n ) within GROUP (\n ORDER BY\n missing_block_number ASC\n ) AS missing_list\n FROM\n gap_test\n WHERE\n missing_block_number IS NOT NULL\n AND missing_block_number <> 0 {% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\n AND missing_block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n {% endif %}\n)\nSELECT\n 'logs' AS test_name,\n systimestamp() AS test_timestamp,\n min_block,\n max_block,\n min_block_timestamp,\n max_block_timestamp,\n blocks_tested,\n blocks_impacted_count,\n missing_list\nFROM\n gap_agg,\n summary_stats\n*/\n\n\n\nWITH lookback AS (\n\n SELECT\n MIN(block_number) AS block_number\n FROM\n (\n SELECT\n block_number\n FROM\n polygon.core.fact_blocks\n WHERE\n block_timestamp >= DATEADD('hour', -96, systimestamp())\n\n\nUNION ALL\n (\n SELECT\n missing_list [0]\n FROM\n polygon.observability.logs\n ORDER BY\n test_timestamp DESC\n LIMIT\n 1\n )\n\n\n\n)\n),\nbase AS (\n SELECT\n block_number,\n b.block_timestamp,\n r.receipts_json :transactionHash :: STRING AS tx_hash\n FROM\n polygon.silver.receipts\n r\n INNER JOIN polygon.core.fact_blocks\n b USING (block_number)\n WHERE\n b.block_timestamp <= DATEADD('hour', -12, systimestamp())\n AND receipts_json :logs [0] IS NOT NULL\n\n\nAND block_number >= (\n SELECT\n block_number\n FROM\n lookback\n)\n\n),\nsummary_stats AS (\n SELECT\n MIN(block_number) AS min_block,\n MAX(block_number) AS max_block,\n MIN(block_timestamp) AS min_block_timestamp,\n MAX(block_timestamp) AS max_block_timestamp,\n COUNT(1) AS blocks_tested\n FROM\n base\n),\ngap_test AS (\n SELECT\n IFF(\n t.tx_hash IS NULL,\n b.block_number,\n NULL\n ) AS missing_block_number\n FROM\n base b\n LEFT JOIN polygon.core.fact_event_logs\n t USING (\n block_number,\n tx_hash\n )\n INNER JOIN summary_stats\n WHERE\n t.tx_hash IS NULL\n AND b.block_number >= min_block\n AND b.block_number <= max_block\n),\ngap_agg AS (\n SELECT\n COUNT(\n DISTINCT missing_block_number\n ) AS blocks_impacted_count,\n ARRAY_AGG(\n DISTINCT missing_block_number\n ) within GROUP (\n ORDER BY\n missing_block_number ASC\n ) AS missing_list\n FROM\n gap_test\n WHERE\n missing_block_number IS NOT NULL\n AND missing_block_number <> 0 \n AND missing_block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n \n)\nSELECT\n 'logs' AS test_name,\n systimestamp() AS test_timestamp,\n min_block,\n max_block,\n min_block_timestamp,\n max_block_timestamp,\n blocks_tested,\n blocks_impacted_count,\n missing_list\nFROM\n gap_agg,\n summary_stats", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__token_reads_realtime": {"database": "polygon", "schema": "streamline", "name": "streamline__token_reads_realtime", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/token_reads/streamline/realtime/streamline__token_reads_realtime.sql", "original_file_path": "models/main_package/token_reads/streamline/realtime/streamline__token_reads_realtime.sql", "unique_id": "model.fsc_evm.streamline__token_reads_realtime", "fqn": ["fsc_evm", "main_package", "token_reads", "streamline", "realtime", "streamline__token_reads_realtime"], "alias": "token_reads_realtime", "checksum": {"name": "sha256", "checksum": "acee3a9e6c24b7074fd49a5cf9d9d800ab5c802fbd92ca3b81a6e633cd2f3418"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "token_reads", "realtime", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "token_reads", "realtime", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "token_reads", "realtime", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018339.7231765, "relation_name": "polygon.streamline.token_reads_realtime", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','token_reads','realtime','phase_2']\n) }}\n\nWITH base AS (\n\n SELECT\n r.contract_address,\n r.latest_event_block AS latest_block\n FROM\n {{ ref('silver__relevant_contracts') }} r \n LEFT JOIN {{ ref('streamline__token_reads_complete') }} c\n USING (contract_address)\n WHERE\n c.contract_address IS NULL\n AND r.total_event_count >= 25\n AND r.latest_event_block > (\n SELECT max(block_number) \n FROM {{ ref('core__fact_blocks') }} \n WHERE block_timestamp::date = dateadd('day',-60,sysdate())::Date\n )\n ORDER BY\n r.total_event_count DESC\n LIMIT {{ vars.MAIN_SL_TOKEN_READS_CONTRACT_LIMIT }}\n\n), \nfunction_sigs AS (\n SELECT\n '0x313ce567' AS function_sig,\n 'decimals' AS function_name\n UNION\n SELECT\n '0x06fdde03',\n 'name'\n UNION\n SELECT\n '0x95d89b41',\n 'symbol'\n),\nready_reads AS (\n SELECT\n contract_address,\n latest_block,\n function_sig,\n RPAD(\n function_sig,\n 64,\n '0'\n ) AS input\n FROM\n base\n JOIN function_sigs\n ON 1 = 1\n)\nSELECT\n contract_address,\n latest_block,\n ROUND(latest_block,-3) AS partition_key,\n function_sig,\n input,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'streamline'\n ),\n OBJECT_CONSTRUCT(\n 'method', 'eth_call',\n 'jsonrpc', '2.0',\n 'params', [{'to': contract_address, 'from': null, 'data': input}, utils.udf_int_to_hex(latest_block)],\n 'id', concat_ws(\n '-',\n contract_address,\n input,\n latest_block\n )\n ),\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS request\nFROM\n ready_reads\nWHERE\n EXISTS (\n SELECT\n 1\n FROM\n ready_reads\n LIMIT\n 1\n )\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = { \n \"external_table\" :\"token_reads\",\n \"sql_limit\" : vars.MAIN_SL_TOKEN_READS_REALTIME_SQL_LIMIT,\n \"producer_batch_size\" : vars.MAIN_SL_TOKEN_READS_REALTIME_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\" : vars.MAIN_SL_TOKEN_READS_REALTIME_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\" : vars.MAIN_SL_TOKEN_READS_REALTIME_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\" : 'token_reads_realtime'\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n \n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "silver__relevant_contracts", "package": null, "version": null}, {"name": "streamline__token_reads_complete", "package": null, "version": null}, {"name": "core__fact_blocks", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__relevant_contracts", "model.fsc_evm.streamline__token_reads_complete", "model.fsc_evm.core__fact_blocks"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__token_reads_complete": {"database": "polygon", "schema": "streamline", "name": "streamline__token_reads_complete", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/token_reads/streamline/complete/streamline__token_reads_complete.sql", "original_file_path": "models/main_package/token_reads/streamline/complete/streamline__token_reads_complete.sql", "unique_id": "model.fsc_evm.streamline__token_reads_complete", "fqn": ["fsc_evm", "main_package", "token_reads", "streamline", "complete", "streamline__token_reads_complete"], "alias": "token_reads_complete", "checksum": {"name": "sha256", "checksum": "ea5d8a069800c9295703cc67e0dcf1054bb9ca32a612e3dbd6f8dabb25ee1ac0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "token_reads", "complete", "phase_2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(complete_token_reads_id, contract_address)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "complete_token_reads_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "partition_key", "incremental_predicates": ["dynamic_range", "partition_key"]}, "tags": ["streamline", "token_reads", "complete", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "complete_token_reads_id", "cluster_by": "partition_key", "incremental_predicates": ["dynamic_range", "partition_key"], "full_refresh": false, "tags": ["streamline", "token_reads", "complete", "phase_2"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018340.0441217, "relation_name": "polygon.streamline.token_reads_complete", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends on: {{ ref('bronze__token_reads') }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'incremental',\n unique_key = 'complete_token_reads_id',\n cluster_by = 'partition_key',\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(complete_token_reads_id, contract_address)\",\n incremental_predicates = ['dynamic_range', 'partition_key'],\n full_refresh = vars.GLOBAL_STREAMLINE_FR_ENABLED,\n tags = ['streamline','token_reads','complete','phase_2']\n) }}\n\nSELECT\n partition_key,\n contract_address,\n file_name,\n {{ dbt_utils.generate_surrogate_key(\n ['contract_address']\n ) }} AS complete_token_reads_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n\n{% if is_incremental() %}\n{{ ref('bronze__token_reads') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE (MAX(_inserted_timestamp), '1970-01-01' :: TIMESTAMP)\n FROM\n {{ this }})\n {% else %}\n {{ ref('bronze__token_reads_fr') }}\n {% endif %}\n\n{% if not is_incremental() and vars.GLOBAL_PROJECT_NAME == 'ethereum' %}\nUNION ALL\nSELECT\n 0 AS partition_key,\n address AS contract_address,\n NULL AS file_name,\n {{ dbt_utils.generate_surrogate_key(\n ['address']\n ) }} AS complete_token_reads_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n silver.contracts_legacy -- hardcoded for ethereum, to avoid source compiling issues on other chains\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY complete_token_reads_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__token_reads", "package": null, "version": null}, {"name": "bronze__token_reads_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__token_reads", "model.fsc_evm.bronze__token_reads_fr"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__token_reads_fr": {"database": "polygon", "schema": "bronze", "name": "bronze__token_reads_fr", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/token_reads/bronze/bronze__token_reads_fr.sql", "original_file_path": "models/main_package/token_reads/bronze/bronze__token_reads_fr.sql", "unique_id": "model.fsc_evm.bronze__token_reads_fr", "fqn": ["fsc_evm", "main_package", "token_reads", "bronze", "bronze__token_reads_fr"], "alias": "token_reads_fr", "checksum": {"name": "sha256", "checksum": "bb74bf6e88b75d414b4e114d54132d19f46dfaa80212cb4dce9c7adf9650d5c4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "token_reads", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "token_reads", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "token_reads", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018340.3643646, "relation_name": "polygon.bronze.token_reads_fr", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze_api__token_reads') }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','token_reads','phase_2']\n) }}\n\nSELECT\n partition_key,\n contract_address,\n VALUE,\n metadata,\n DATA,\n file_name,\n _inserted_timestamp\nFROM\n {{ ref('bronze__token_reads_fr_v2') }}\n\n{% if vars.MAIN_SL_TOKEN_READS_BRONZE_TABLE_ENABLED %}\nUNION ALL\nSELECT\n ROUND(block_number,-3) AS partition_key,\n contract_address,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'CONTRACT_ADDRESS', contract_address,\n 'FUNCTION_SIG', function_sig,\n 'INPUT', RPAD(function_sig,64,'0'),\n 'LATEST_BLOCK', block_number,\n 'data', OBJECT_CONSTRUCT_KEEP_NULL(\n 'id', concat_ws(\n '-',\n contract_address,\n RPAD(function_sig,64,'0'),\n block_number\n ),\n 'jsonrpc', '2.0',\n 'result', read_result\n ),\n 'metadata', NULL,\n 'partition_key', partition_key\n ) AS VALUE,\n NULL AS metadata,\n VALUE :data AS DATA,\n NULL AS file_name,\n _inserted_timestamp\nFROM\n {{ ref('bronze_api__token_reads') }}\n{% endif %}", "language": "sql", "refs": [{"name": "bronze_api__token_reads", "package": null, "version": null}, {"name": "bronze__token_reads_fr_v2", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze_api__token_reads", "model.fsc_evm.bronze__token_reads_fr_v2"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/token_reads/bronze/bronze__token_reads_fr.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"token_reads\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze_api__token_reads') }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','token_reads','phase_2']\n) }}\n\nSELECT\n partition_key,\n contract_address,\n VALUE,\n metadata,\n DATA,\n file_name,\n _inserted_timestamp\nFROM\n {{ ref('bronze__token_reads_fr_v2') }}\n\n{% if vars.MAIN_SL_TOKEN_READS_BRONZE_TABLE_ENABLED %}\nUNION ALL\nSELECT\n ROUND(block_number,-3) AS partition_key,\n contract_address,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'CONTRACT_ADDRESS', contract_address,\n 'FUNCTION_SIG', function_sig,\n 'INPUT', RPAD(function_sig,64,'0'),\n 'LATEST_BLOCK', block_number,\n 'data', OBJECT_CONSTRUCT_KEEP_NULL(\n 'id', concat_ws(\n '-',\n contract_address,\n RPAD(function_sig,64,'0'),\n block_number\n ),\n 'jsonrpc', '2.0',\n 'result', read_result\n ),\n 'metadata', NULL,\n 'partition_key', partition_key\n ) AS VALUE,\n NULL AS metadata,\n VALUE :data AS DATA,\n NULL AS file_name,\n _inserted_timestamp\nFROM\n {{ ref('bronze_api__token_reads') }}\n{% endif %}\n*/\n\n-- depends_on: polygon.bronze_api.token_reads\n\n\n\n\nSELECT\n partition_key,\n contract_address,\n VALUE,\n metadata,\n DATA,\n file_name,\n _inserted_timestamp\nFROM\n polygon.bronze.token_reads_fr_v2\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__token_reads_fr_v2": {"database": "polygon", "schema": "bronze", "name": "bronze__token_reads_fr_v2", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/token_reads/bronze/bronze__token_reads_fr_v2.sql", "original_file_path": "models/main_package/token_reads/bronze/bronze__token_reads_fr_v2.sql", "unique_id": "model.fsc_evm.bronze__token_reads_fr_v2", "fqn": ["fsc_evm", "main_package", "token_reads", "bronze", "bronze__token_reads_fr_v2"], "alias": "token_reads_fr_v2", "checksum": {"name": "sha256", "checksum": "f12febb36325a4c17efd083fd331c537c709e9e235e07c1373617aba0eb8e4dd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "token_reads", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "token_reads", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "token_reads", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018340.8036866, "relation_name": "polygon.bronze.token_reads_fr_v2", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','token_reads','phase_2']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'token_reads',\n block_number = false,\n contract_address = true,\n data_not_null = false\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "token_reads"], ["bronze_streamline", "token_reads"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query_fr", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.token_reads"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/token_reads/bronze/bronze__token_reads_fr_v2.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"token_reads\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','token_reads','phase_2']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'token_reads',\n block_number = false,\n contract_address = true,\n data_not_null = false\n) }}\n*/\n\n\n\n\n\n\n\n \n \n WITH meta AS (\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.POLYGON.token_reads'\n )\n ) A\n )\nSELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n\n\n, --for contract_abis\n COALESCE(\n VALUE :\"CONTRACT_ADDRESS\",\n VALUE :\"contract_address\"\n ) :: STRING AS contract_address\n\n\n\nFROM\n streamline.POLYGON.token_reads\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \nWHERE\n b.partition_key = s.partition_key\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__token_reads": {"database": "polygon", "schema": "bronze", "name": "bronze__token_reads", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/token_reads/bronze/bronze__token_reads.sql", "original_file_path": "models/main_package/token_reads/bronze/bronze__token_reads.sql", "unique_id": "model.fsc_evm.bronze__token_reads", "fqn": ["fsc_evm", "main_package", "token_reads", "bronze", "bronze__token_reads"], "alias": "token_reads", "checksum": {"name": "sha256", "checksum": "31e530068800fe2154047b006071423df1882a6d880f284595c44b662d9eb94d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "token_reads", "phase_2"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "token_reads", "phase_2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "token_reads", "phase_2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018340.9668941, "relation_name": "polygon.bronze.token_reads", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','token_reads','phase_2']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'token_reads',\n block_number = false,\n contract_address = true,\n data_not_null = false\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "token_reads"], ["bronze_streamline", "token_reads"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.token_reads"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/token_reads/bronze/bronze__token_reads.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"token_reads\",\n \"phase_2\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','token_reads','phase_2']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'token_reads',\n block_number = false,\n contract_address = true,\n data_not_null = false\n) }}\n*/\n\n\n\n\n\n\n\n \n\n WITH meta AS (\n SELECT\n job_created_time AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.POLYGON.token_reads')\n ) A\n )\n SELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n \n\n , --for contract_abis\n COALESCE(\n VALUE :\"CONTRACT_ADDRESS\",\n VALUE :\"contract_address\"\n ) :: STRING AS contract_address\n \n\n \n FROM\n streamline.POLYGON.token_reads\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \n WHERE\n b.partition_key = s.partition_key\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze_api__token_reads": {"database": "polygon", "schema": "bronze_api", "name": "bronze_api__token_reads", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/token_reads/bronze/_legacy/bronze_api__token_reads.sql", "original_file_path": "models/main_package/token_reads/bronze/_legacy/bronze_api__token_reads.sql", "unique_id": "model.fsc_evm.bronze_api__token_reads", "fqn": ["fsc_evm", "main_package", "token_reads", "bronze", "_legacy", "bronze_api__token_reads"], "alias": "token_reads", "checksum": {"name": "sha256", "checksum": "85c114f5c7793d883344ab85fc0f39765095d7044cf5a86b1254ffd285c7712a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "contract_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "contract_address", "full_refresh": false, "tags": ["stale"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018341.1292922, "relation_name": "polygon.bronze_api.token_reads", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = \"contract_address\",\n full_refresh = vars.GLOBAL_BRONZE_FR_ENABLED,\n tags = ['stale']\n) }}\n\nWITH base AS (\n\n SELECT\n contract_address,\n latest_event_block AS latest_block\n FROM\n {{ ref('silver__relevant_contracts') }}\n WHERE\n total_event_count >= 25\n\n{% if is_incremental() %}\nAND contract_address NOT IN (\n SELECT\n contract_address\n FROM\n {{ this }}\n)\n {% if vars.GLOBAL_PROJECT_NAME == 'ethereum' %}\n AND contract_address NOT IN (\n SELECT\n address\n FROM\n silver.contracts_legacy -- hardcoded for ethereum, to avoid source compiling issues on other chains\n )\n {% endif %}\n{% endif %}\nORDER BY\n total_event_count DESC\nLIMIT {{ vars.MAIN_CORE_BRONZE_TOKEN_READS_LIMIT }}\n\n), function_sigs AS (\n SELECT\n '0x313ce567' AS function_sig,\n 'decimals' AS function_name\n UNION\n SELECT\n '0x06fdde03',\n 'name'\n UNION\n SELECT\n '0x95d89b41',\n 'symbol'\n),\nall_reads AS (\n SELECT\n *\n FROM\n base\n JOIN function_sigs\n ON 1 = 1\n),\nready_reads AS (\n SELECT\n contract_address,\n latest_block,\n function_sig,\n RPAD(\n function_sig,\n 64,\n '0'\n ) AS input,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{'to': contract_address, 'from': null, 'data': input}, utils.udf_int_to_hex(latest_block)],\n concat_ws(\n '-',\n contract_address,\n input,\n latest_block\n )\n ) AS rpc_request\n FROM\n all_reads\n),\nnode_call AS (\n SELECT\n *,\n {% if vars.MAIN_CORE_BRONZE_TOKEN_READS_BATCHED_ENABLED %}\n live.udf_api_batched(\n {% else %}\n live.udf_api(\n {% endif %}\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n rpc_request,\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS response\n FROM\n ready_reads\n WHERE\n EXISTS (\n SELECT\n 1\n FROM\n ready_reads\n LIMIT\n 1\n )\n)\n\nSELECT\n contract_address,\n latest_block AS block_number,\n LEFT(input, 10) AS function_sig,\n NULL AS function_input,\n response:data:result::string as read_result,\n SYSDATE() :: TIMESTAMP AS _inserted_timestamp\nFROM\n node_call", "language": "sql", "refs": [{"name": "silver__relevant_contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__relevant_contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/token_reads/bronze/_legacy/bronze_api__token_reads.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"stale\"\n ],\n \"unique_key\": \"contract_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = \"contract_address\",\n full_refresh = vars.GLOBAL_BRONZE_FR_ENABLED,\n tags = ['stale']\n) }}\n\nWITH base AS (\n\n SELECT\n contract_address,\n latest_event_block AS latest_block\n FROM\n {{ ref('silver__relevant_contracts') }}\n WHERE\n total_event_count >= 25\n\n{% if is_incremental() %}\nAND contract_address NOT IN (\n SELECT\n contract_address\n FROM\n {{ this }}\n)\n {% if vars.GLOBAL_PROJECT_NAME == 'ethereum' %}\n AND contract_address NOT IN (\n SELECT\n address\n FROM\n silver.contracts_legacy -- hardcoded for ethereum, to avoid source compiling issues on other chains\n )\n {% endif %}\n{% endif %}\nORDER BY\n total_event_count DESC\nLIMIT {{ vars.MAIN_CORE_BRONZE_TOKEN_READS_LIMIT }}\n\n), function_sigs AS (\n SELECT\n '0x313ce567' AS function_sig,\n 'decimals' AS function_name\n UNION\n SELECT\n '0x06fdde03',\n 'name'\n UNION\n SELECT\n '0x95d89b41',\n 'symbol'\n),\nall_reads AS (\n SELECT\n *\n FROM\n base\n JOIN function_sigs\n ON 1 = 1\n),\nready_reads AS (\n SELECT\n contract_address,\n latest_block,\n function_sig,\n RPAD(\n function_sig,\n 64,\n '0'\n ) AS input,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{'to': contract_address, 'from': null, 'data': input}, utils.udf_int_to_hex(latest_block)],\n concat_ws(\n '-',\n contract_address,\n input,\n latest_block\n )\n ) AS rpc_request\n FROM\n all_reads\n),\nnode_call AS (\n SELECT\n *,\n {% if vars.MAIN_CORE_BRONZE_TOKEN_READS_BATCHED_ENABLED %}\n live.udf_api_batched(\n {% else %}\n live.udf_api(\n {% endif %}\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n rpc_request,\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS response\n FROM\n ready_reads\n WHERE\n EXISTS (\n SELECT\n 1\n FROM\n ready_reads\n LIMIT\n 1\n )\n)\n\nSELECT\n contract_address,\n latest_block AS block_number,\n LEFT(input, 10) AS function_sig,\n NULL AS function_input,\n response:data:result::string as read_result,\n SYSDATE() :: TIMESTAMP AS _inserted_timestamp\nFROM\n node_call\n*/\n\n\n\nWITH base AS (\n\n SELECT\n contract_address,\n latest_event_block AS latest_block\n FROM\n polygon.silver.relevant_contracts\n WHERE\n total_event_count >= 25\n\n\nAND contract_address NOT IN (\n SELECT\n contract_address\n FROM\n polygon.bronze_api.token_reads\n)\n \n\nORDER BY\n total_event_count DESC\nLIMIT 30\n\n), function_sigs AS (\n SELECT\n '0x313ce567' AS function_sig,\n 'decimals' AS function_name\n UNION\n SELECT\n '0x06fdde03',\n 'name'\n UNION\n SELECT\n '0x95d89b41',\n 'symbol'\n),\nall_reads AS (\n SELECT\n *\n FROM\n base\n JOIN function_sigs\n ON 1 = 1\n),\nready_reads AS (\n SELECT\n contract_address,\n latest_block,\n function_sig,\n RPAD(\n function_sig,\n 64,\n '0'\n ) AS input,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{'to': contract_address, 'from': null, 'data': input}, utils.udf_int_to_hex(latest_block)],\n concat_ws(\n '-',\n contract_address,\n input,\n latest_block\n )\n ) AS rpc_request\n FROM\n all_reads\n),\nnode_call AS (\n SELECT\n *,\n \n live.udf_api_batched(\n \n 'POST',\n '{URL}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n rpc_request,\n 'Vault/prod/evm/quicknode/polygon/mainnet'\n ) AS response\n FROM\n ready_reads\n WHERE\n EXISTS (\n SELECT\n 1\n FROM\n ready_reads\n LIMIT\n 1\n )\n)\n\nSELECT\n contract_address,\n latest_block AS block_number,\n LEFT(input, 10) AS function_sig,\n NULL AS function_input,\n response:data:result::string as read_result,\n SYSDATE() :: TIMESTAMP AS _inserted_timestamp\nFROM\n node_call", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__complete_provider_asset_metadata": {"database": "polygon", "schema": "silver", "name": "silver__complete_provider_asset_metadata", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/prices/silver/silver__complete_provider_asset_metadata.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_provider_asset_metadata.sql", "unique_id": "model.fsc_evm.silver__complete_provider_asset_metadata", "fqn": ["fsc_evm", "main_package", "prices", "silver", "silver__complete_provider_asset_metadata"], "alias": "complete_provider_asset_metadata", "checksum": {"name": "sha256", "checksum": "79dd4786ba980c5bf2514cacc4daaf6158b9518578fe1938916e891a989ecdbe"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "prices", "provider", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "complete_provider_asset_metadata_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "prices", "provider", "phase_3"], "description": "", "columns": {"PROVIDER": {"name": "PROVIDER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ASSET_ID": {"name": "ASSET_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "COMPLETE_PROVIDER_ASSET_METADATA_ID": {"name": "COMPLETE_PROVIDER_ASSET_METADATA_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/prices/silver/silver__complete_provider_asset_metadata.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "complete_provider_asset_metadata_id", "tags": ["silver", "prices", "provider", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.703968, "relation_name": "polygon.silver.complete_provider_asset_metadata", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'complete_provider_asset_metadata_id',\n tags = ['silver','prices','provider','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n asset_id,\n token_address,\n NAME,\n symbol,\n platform,\n platform_id,\n provider,\n source,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['complete_provider_asset_metadata_id']) }} AS complete_provider_asset_metadata_id,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref(\n 'bronze__complete_provider_asset_metadata'\n ) }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify row_number() over (partition by complete_provider_asset_metadata_id order by modified_timestamp desc) = 1", "language": "sql", "refs": [{"name": "bronze__complete_provider_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__complete_provider_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_provider_asset_metadata.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"prices\",\n \"provider\",\n \"phase_3\"\n ],\n \"unique_key\": \"complete_provider_asset_metadata_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'complete_provider_asset_metadata_id',\n tags = ['silver','prices','provider','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n asset_id,\n token_address,\n NAME,\n symbol,\n platform,\n platform_id,\n provider,\n source,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['complete_provider_asset_metadata_id']) }} AS complete_provider_asset_metadata_id,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref(\n 'bronze__complete_provider_asset_metadata'\n ) }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify row_number() over (partition by complete_provider_asset_metadata_id order by modified_timestamp desc) = 1\n*/\n\n\n\n\n\nSELECT\n asset_id,\n token_address,\n NAME,\n symbol,\n platform,\n platform_id,\n provider,\n source,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n \n \nmd5(cast(coalesce(cast(complete_provider_asset_metadata_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_provider_asset_metadata_id,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n polygon.bronze.complete_provider_asset_metadata\n\n\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n polygon.silver.complete_provider_asset_metadata\n )\n\n\nqualify row_number() over (partition by complete_provider_asset_metadata_id order by modified_timestamp desc) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__complete_native_asset_metadata": {"database": "polygon", "schema": "silver", "name": "silver__complete_native_asset_metadata", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/prices/silver/silver__complete_native_asset_metadata.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_native_asset_metadata.sql", "unique_id": "model.fsc_evm.silver__complete_native_asset_metadata", "fqn": ["fsc_evm", "main_package", "prices", "silver", "silver__complete_native_asset_metadata"], "alias": "complete_native_asset_metadata", "checksum": {"name": "sha256", "checksum": "b458fe49f4ba36966e27057ee148aa1368efdf217aec77ea215150df11702870"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "prices", "native", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "complete_native_asset_metadata_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "prices", "native", "phase_3"], "description": "", "columns": {"PROVIDER": {"name": "PROVIDER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "COMPLETE_NATIVE_ASSET_METADATA_ID": {"name": "COMPLETE_NATIVE_ASSET_METADATA_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/prices/silver/silver__complete_native_asset_metadata.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "complete_native_asset_metadata_id", "tags": ["silver", "prices", "native", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.667843, "relation_name": "polygon.silver.complete_native_asset_metadata", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'complete_native_asset_metadata_id',\n tags = ['silver','prices','native','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n asset_id,\n symbol,\n NAME,\n decimals,\n blockchain,\n is_deprecated,\n provider,\n source,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['complete_native_asset_metadata_id']) }} AS complete_native_asset_metadata_id,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref(\n 'bronze__complete_native_asset_metadata'\n ) }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify row_number() over (partition by complete_native_asset_metadata_id order by modified_timestamp desc) = 1", "language": "sql", "refs": [{"name": "bronze__complete_native_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__complete_native_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_native_asset_metadata.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"prices\",\n \"native\",\n \"phase_3\"\n ],\n \"unique_key\": \"complete_native_asset_metadata_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'complete_native_asset_metadata_id',\n tags = ['silver','prices','native','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n asset_id,\n symbol,\n NAME,\n decimals,\n blockchain,\n is_deprecated,\n provider,\n source,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['complete_native_asset_metadata_id']) }} AS complete_native_asset_metadata_id,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref(\n 'bronze__complete_native_asset_metadata'\n ) }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify row_number() over (partition by complete_native_asset_metadata_id order by modified_timestamp desc) = 1\n*/\n\n\n\n\n\nSELECT\n asset_id,\n symbol,\n NAME,\n decimals,\n blockchain,\n is_deprecated,\n provider,\n source,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n \n \nmd5(cast(coalesce(cast(complete_native_asset_metadata_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_native_asset_metadata_id,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n polygon.bronze.complete_native_asset_metadata\n\n\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n polygon.silver.complete_native_asset_metadata\n )\n\n\nqualify row_number() over (partition by complete_native_asset_metadata_id order by modified_timestamp desc) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__complete_provider_prices": {"database": "polygon", "schema": "silver", "name": "silver__complete_provider_prices", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/prices/silver/silver__complete_provider_prices.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_provider_prices.sql", "unique_id": "model.fsc_evm.silver__complete_provider_prices", "fqn": ["fsc_evm", "main_package", "prices", "silver", "silver__complete_provider_prices"], "alias": "complete_provider_prices", "checksum": {"name": "sha256", "checksum": "7e5a9533a5f6a2c6e9230b64057f3af1ad60da954f349bf8e44a95eab0c30eff"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "prices", "provider", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "complete_provider_prices_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["recorded_hour::DATE", "provider"]}, "tags": ["silver", "prices", "provider", "phase_3"], "description": "", "columns": {"PROVIDER": {"name": "PROVIDER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ASSET_ID": {"name": "ASSET_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "RECORDED_HOUR": {"name": "RECORDED_HOUR", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "COMPLETE_PROVIDER_PRICES_ID": {"name": "COMPLETE_PROVIDER_PRICES_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/prices/silver/silver__complete_provider_prices.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "complete_provider_prices_id", "cluster_by": ["recorded_hour::DATE", "provider"], "tags": ["silver", "prices", "provider", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.6857185, "relation_name": "polygon.silver.complete_provider_prices", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'complete_provider_prices_id',\n cluster_by = ['recorded_hour::DATE','provider'],\n tags = ['silver','prices','provider','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n p.asset_id,\n recorded_hour,\n OPEN,\n high,\n low,\n CLOSE,\n p.provider,\n p.source,\n p._inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['p.complete_provider_prices_id']) }} AS complete_provider_prices_id,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref(\n 'bronze__complete_provider_prices'\n ) }}\n p\n INNER JOIN {{ ref('bronze__complete_provider_asset_metadata') }}\n m\n ON p.asset_id = m.asset_id\n\n{% if is_incremental() %}\nWHERE\n p.modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY complete_provider_prices_id ORDER BY p.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__complete_provider_prices", "package": null, "version": null}, {"name": "bronze__complete_provider_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__complete_provider_prices", "model.fsc_evm.bronze__complete_provider_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_provider_prices.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"recorded_hour::DATE\",\n \"provider\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"prices\",\n \"provider\",\n \"phase_3\"\n ],\n \"unique_key\": \"complete_provider_prices_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'complete_provider_prices_id',\n cluster_by = ['recorded_hour::DATE','provider'],\n tags = ['silver','prices','provider','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n p.asset_id,\n recorded_hour,\n OPEN,\n high,\n low,\n CLOSE,\n p.provider,\n p.source,\n p._inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['p.complete_provider_prices_id']) }} AS complete_provider_prices_id,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref(\n 'bronze__complete_provider_prices'\n ) }}\n p\n INNER JOIN {{ ref('bronze__complete_provider_asset_metadata') }}\n m\n ON p.asset_id = m.asset_id\n\n{% if is_incremental() %}\nWHERE\n p.modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY complete_provider_prices_id ORDER BY p.modified_timestamp DESC)) = 1\n*/\n\n\n\n\n\nSELECT\n p.asset_id,\n recorded_hour,\n OPEN,\n high,\n low,\n CLOSE,\n p.provider,\n p.source,\n p._inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n \n \nmd5(cast(coalesce(cast(p.complete_provider_prices_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_provider_prices_id,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n polygon.bronze.complete_provider_prices\n p\n INNER JOIN polygon.bronze.complete_provider_asset_metadata\n m\n ON p.asset_id = m.asset_id\n\n\nWHERE\n p.modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n polygon.silver.complete_provider_prices\n )\n\n\nqualify(ROW_NUMBER() over (PARTITION BY complete_provider_prices_id ORDER BY p.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__complete_native_prices": {"database": "polygon", "schema": "silver", "name": "silver__complete_native_prices", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/prices/silver/silver__complete_native_prices.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_native_prices.sql", "unique_id": "model.fsc_evm.silver__complete_native_prices", "fqn": ["fsc_evm", "main_package", "prices", "silver", "silver__complete_native_prices"], "alias": "complete_native_prices", "checksum": {"name": "sha256", "checksum": "1eede9262f391cbc1f4121a56663950734e83e80681f7f4417c094961f85e6cf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "prices", "native", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "complete_native_prices_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["hour::DATE"]}, "tags": ["silver", "prices", "native", "phase_3"], "description": "", "columns": {"HOUR": {"name": "HOUR", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROVIDER": {"name": "PROVIDER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRICE": {"name": "PRICE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_IMPUTED": {"name": "IS_IMPUTED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "COMPLETE_NATIVE_PRICES_ID": {"name": "COMPLETE_NATIVE_PRICES_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/prices/silver/silver__complete_native_prices.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "complete_native_prices_id", "cluster_by": ["hour::DATE"], "tags": ["silver", "prices", "native", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.7410333, "relation_name": "polygon.silver.complete_native_prices", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'complete_native_prices_id',\n cluster_by = ['hour::DATE'],\n tags = ['silver','prices','native','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n HOUR,\n asset_id,\n symbol,\n NAME,\n decimals,\n price,\n blockchain,\n is_imputed,\n is_deprecated,\n provider,\n source,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['complete_native_prices_id']) }} AS complete_native_prices_id,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref(\n 'bronze__complete_native_prices'\n ) }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify row_number() over (partition by complete_native_prices_id order by modified_timestamp desc) = 1", "language": "sql", "refs": [{"name": "bronze__complete_native_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__complete_native_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_native_prices.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"hour::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"prices\",\n \"native\",\n \"phase_3\"\n ],\n \"unique_key\": \"complete_native_prices_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'complete_native_prices_id',\n cluster_by = ['hour::DATE'],\n tags = ['silver','prices','native','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n HOUR,\n asset_id,\n symbol,\n NAME,\n decimals,\n price,\n blockchain,\n is_imputed,\n is_deprecated,\n provider,\n source,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['complete_native_prices_id']) }} AS complete_native_prices_id,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref(\n 'bronze__complete_native_prices'\n ) }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify row_number() over (partition by complete_native_prices_id order by modified_timestamp desc) = 1\n*/\n\n\n\n\n\nSELECT\n HOUR,\n asset_id,\n symbol,\n NAME,\n decimals,\n price,\n blockchain,\n is_imputed,\n is_deprecated,\n provider,\n source,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n \n \nmd5(cast(coalesce(cast(complete_native_prices_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_native_prices_id,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n polygon.bronze.complete_native_prices\n\n\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n polygon.silver.complete_native_prices\n )\n\n\nqualify row_number() over (partition by complete_native_prices_id order by modified_timestamp desc) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__complete_token_prices": {"database": "polygon", "schema": "silver", "name": "silver__complete_token_prices", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/prices/silver/silver__complete_token_prices.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_prices.sql", "unique_id": "model.fsc_evm.silver__complete_token_prices", "fqn": ["fsc_evm", "main_package", "prices", "silver", "silver__complete_token_prices"], "alias": "complete_token_prices", "checksum": {"name": "sha256", "checksum": "cea5a206cc9ad84042bcecc5ce6ff252dffa8cf5d8e20972443c4771887c31f0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "prices", "token", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "complete_token_prices_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["hour::DATE"]}, "tags": ["silver", "prices", "token", "phase_3"], "description": "", "columns": {"HOUR": {"name": "HOUR", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCKCHAIN_ID": {"name": "BLOCKCHAIN_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROVIDER": {"name": "PROVIDER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRICE": {"name": "PRICE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_IMPUTED": {"name": "IS_IMPUTED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "COMPLETE_TOKEN_PRICES_ID": {"name": "COMPLETE_TOKEN_PRICES_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/prices/silver/silver__complete_token_prices.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "complete_token_prices_id", "cluster_by": ["hour::DATE"], "tags": ["silver", "prices", "token", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.7674205, "relation_name": "polygon.silver.complete_token_prices", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'complete_token_prices_id',\n cluster_by = ['hour::DATE'],\n tags = ['silver','prices','token','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n HOUR,\n LOWER(\n p.token_address\n ) AS token_address,\n asset_id,\n symbol,\n NAME,\n decimals,\n price,\n blockchain,\n blockchain_name,\n blockchain_id,\n is_imputed,\n is_deprecated,\n is_verified,\n provider,\n source,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['complete_token_prices_id']) }} AS complete_token_prices_id,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref(\n 'bronze__complete_token_prices'\n ) }}\n p\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify row_number() over (partition by complete_token_prices_id order by modified_timestamp desc) = 1", "language": "sql", "refs": [{"name": "bronze__complete_token_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__complete_token_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_prices.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"hour::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"prices\",\n \"token\",\n \"phase_3\"\n ],\n \"unique_key\": \"complete_token_prices_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'complete_token_prices_id',\n cluster_by = ['hour::DATE'],\n tags = ['silver','prices','token','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n HOUR,\n LOWER(\n p.token_address\n ) AS token_address,\n asset_id,\n symbol,\n NAME,\n decimals,\n price,\n blockchain,\n blockchain_name,\n blockchain_id,\n is_imputed,\n is_deprecated,\n is_verified,\n provider,\n source,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['complete_token_prices_id']) }} AS complete_token_prices_id,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref(\n 'bronze__complete_token_prices'\n ) }}\n p\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify row_number() over (partition by complete_token_prices_id order by modified_timestamp desc) = 1\n*/\n\n\n\n\n\nSELECT\n HOUR,\n LOWER(\n p.token_address\n ) AS token_address,\n asset_id,\n symbol,\n NAME,\n decimals,\n price,\n blockchain,\n blockchain_name,\n blockchain_id,\n is_imputed,\n is_deprecated,\n is_verified,\n provider,\n source,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n \n \nmd5(cast(coalesce(cast(complete_token_prices_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_token_prices_id,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n polygon.bronze.complete_token_prices\n p\n\n\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n polygon.silver.complete_token_prices\n )\n\n\nqualify row_number() over (partition by complete_token_prices_id order by modified_timestamp desc) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__complete_token_asset_metadata": {"database": "polygon", "schema": "silver", "name": "silver__complete_token_asset_metadata", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/prices/silver/silver__complete_token_asset_metadata.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_asset_metadata.sql", "unique_id": "model.fsc_evm.silver__complete_token_asset_metadata", "fqn": ["fsc_evm", "main_package", "prices", "silver", "silver__complete_token_asset_metadata"], "alias": "complete_token_asset_metadata", "checksum": {"name": "sha256", "checksum": "d6e535a2ce54c10f01d965cffeae117610f21239c4441a30ea2c95a440bec3d3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "prices", "token", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "complete_token_asset_metadata_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "prices", "token", "phase_3"], "description": "", "columns": {"PROVIDER": {"name": "PROVIDER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCKCHAIN_ID": {"name": "BLOCKCHAIN_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "COMPLETE_TOKEN_ASSET_METADATA_ID": {"name": "COMPLETE_TOKEN_ASSET_METADATA_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/prices/silver/silver__complete_token_asset_metadata.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "complete_token_asset_metadata_id", "tags": ["silver", "prices", "token", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.7204177, "relation_name": "polygon.silver.complete_token_asset_metadata", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'complete_token_asset_metadata_id',\n tags = ['silver','prices','token','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n LOWER(\n A.token_address\n ) AS token_address,\n asset_id,\n symbol,\n NAME,\n decimals,\n blockchain,\n blockchain_name,\n blockchain_id,\n is_deprecated,\n is_verified,\n is_verified_modified_timestamp,\n provider,\n source,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['complete_token_asset_metadata_id']) }} AS complete_token_asset_metadata_id,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref(\n 'bronze__complete_token_asset_metadata'\n ) }} A\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify row_number() over (partition by complete_token_asset_metadata_id order by modified_timestamp desc) = 1", "language": "sql", "refs": [{"name": "bronze__complete_token_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__complete_token_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_asset_metadata.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"prices\",\n \"token\",\n \"phase_3\"\n ],\n \"unique_key\": \"complete_token_asset_metadata_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'complete_token_asset_metadata_id',\n tags = ['silver','prices','token','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n LOWER(\n A.token_address\n ) AS token_address,\n asset_id,\n symbol,\n NAME,\n decimals,\n blockchain,\n blockchain_name,\n blockchain_id,\n is_deprecated,\n is_verified,\n is_verified_modified_timestamp,\n provider,\n source,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['complete_token_asset_metadata_id']) }} AS complete_token_asset_metadata_id,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref(\n 'bronze__complete_token_asset_metadata'\n ) }} A\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify row_number() over (partition by complete_token_asset_metadata_id order by modified_timestamp desc) = 1\n*/\n\n\n\n\n\nSELECT\n LOWER(\n A.token_address\n ) AS token_address,\n asset_id,\n symbol,\n NAME,\n decimals,\n blockchain,\n blockchain_name,\n blockchain_id,\n is_deprecated,\n is_verified,\n is_verified_modified_timestamp,\n provider,\n source,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n \n \nmd5(cast(coalesce(cast(complete_token_asset_metadata_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_token_asset_metadata_id,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n polygon.bronze.complete_token_asset_metadata A\n\n\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n )\n FROM\n polygon.silver.complete_token_asset_metadata\n )\n\n\nqualify row_number() over (partition by complete_token_asset_metadata_id order by modified_timestamp desc) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.price__dim_asset_metadata": {"database": "polygon", "schema": "price", "name": "price__dim_asset_metadata", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/prices/gold/price__dim_asset_metadata.sql", "original_file_path": "models/main_package/prices/gold/price__dim_asset_metadata.sql", "unique_id": "model.fsc_evm.price__dim_asset_metadata", "fqn": ["fsc_evm", "main_package", "prices", "gold", "price__dim_asset_metadata"], "alias": "dim_asset_metadata", "checksum": {"name": "sha256", "checksum": "05e511fcd81145d3799a7c3d1311d0f7f38bb492129a10764f39b81d97819126"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "prices", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(asset_id, token_address, symbol, name)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "dim_asset_metadata_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "prices", "phase_3"], "description": "## What\n\nThis table provides comprehensive metadata for all assets (tokens and native assets) tracked in the price schema across EVM blockchains. It includes provider, asset identifiers, names, symbols, contract addresses, blockchain, and verification status.\n\n## Key Use Cases\n\n- Join price data to asset metadata for enriched analysis\n- Cross-chain asset analysis and mapping\n- Asset discovery and verification status checking\n- Provider-specific data source analysis\n\n## Important Relationships\n\n- **Join with ez_prices_hourly**: For price time series data\n- **Join with core.dim_contracts**: For contract metadata\n\n## Commonly-used Fields\n\n- `provider`: Data source (coingecko, coinmarketcap, etc.)\n- `asset_id`: Provider-specific unique identifier\n- `blockchain`: Network identifier\n- `token_address`: Contract address (NULL for native assets)\n- `symbol`: Token ticker symbol\n- `name`: Full asset name\n\n## Sample Queries\n\n**Basic Asset Lookup**\n```sql\nSELECT *\nFROM .price.dim_asset_metadata\nWHERE blockchain = 'ethereum'\nORDER BY symbol;\n```", "columns": {"PROVIDER": {"name": "PROVIDER", "description": "Data source that provided the price information. Values include 'coingecko', 'coinmarketcap', 'dex_aggregated'.\n\nExample: 'coingecko'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ASSET_ID": {"name": "ASSET_ID", "description": "Unique identifier for the asset from the price provider. Provider-specific ID format.\n\nExample: 'ethereum'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NAME": {"name": "NAME", "description": "Full name of the asset or token. More descriptive than symbol.\n\nExample: 'Wrapped Ether'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "Token ticker symbol as commonly recognized. Usually 3-5 uppercase characters.\n\nExample: 'WETH'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "Contract address of the token on the blockchain. NULL for native assets (ETH, AVAX, etc.).\n\nExample: '0xa0b86a33e6776a1e7f9f0b8b8b8b8b8b8b8b8b8b'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "The blockchain network where the asset exists. Lowercase by convention.\n\nExample: 'ethereum'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCKCHAIN_ID": {"name": "BLOCKCHAIN_ID", "description": "The numeric or string identifier for the blockchain on which the asset exists. Used for cross-chain mapping.\n\nExample: '1'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DIM_ASSET_METADATA_ID": {"name": "DIM_ASSET_METADATA_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/prices/gold/price__dim_asset_metadata.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "dim_asset_metadata_id", "tags": ["gold", "prices", "phase_3"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018440.8012235, "relation_name": "polygon.price.dim_asset_metadata", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'dim_asset_metadata_id',\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(asset_id, token_address, symbol, name)\",\n tags = ['gold','prices','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n token_address,\n asset_id,\n symbol,\n NAME,\n platform AS blockchain,\n platform_id AS blockchain_id,\n provider,\n {{ dbt_utils.generate_surrogate_key(['complete_provider_asset_metadata_id']) }} AS dim_asset_metadata_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n {{ ref('silver__complete_provider_asset_metadata') }}\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify row_number() over (partition by dim_asset_metadata_id order by modified_timestamp desc) = 1", "language": "sql", "refs": [{"name": "silver__complete_provider_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__complete_provider_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/gold/price__dim_asset_metadata.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(asset_id, token_address, symbol, name)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"prices\",\n \"phase_3\"\n ],\n \"unique_key\": \"dim_asset_metadata_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'dim_asset_metadata_id',\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(asset_id, token_address, symbol, name)\",\n tags = ['gold','prices','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n token_address,\n asset_id,\n symbol,\n NAME,\n platform AS blockchain,\n platform_id AS blockchain_id,\n provider,\n {{ dbt_utils.generate_surrogate_key(['complete_provider_asset_metadata_id']) }} AS dim_asset_metadata_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n {{ ref('silver__complete_provider_asset_metadata') }}\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify row_number() over (partition by dim_asset_metadata_id order by modified_timestamp desc) = 1\n*/\n\n\n\n\n\nSELECT\n token_address,\n asset_id,\n symbol,\n NAME,\n platform AS blockchain,\n platform_id AS blockchain_id,\n provider,\n \n \nmd5(cast(coalesce(cast(complete_provider_asset_metadata_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS dim_asset_metadata_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n polygon.silver.complete_provider_asset_metadata\n\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n polygon.price.dim_asset_metadata\n )\n\n\nqualify row_number() over (partition by dim_asset_metadata_id order by modified_timestamp desc) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.price__fact_prices_ohlc_hourly": {"database": "polygon", "schema": "price", "name": "price__fact_prices_ohlc_hourly", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/prices/gold/price__fact_prices_ohlc_hourly.sql", "original_file_path": "models/main_package/prices/gold/price__fact_prices_ohlc_hourly.sql", "unique_id": "model.fsc_evm.price__fact_prices_ohlc_hourly", "fqn": ["fsc_evm", "main_package", "prices", "gold", "price__fact_prices_ohlc_hourly"], "alias": "fact_prices_ohlc_hourly", "checksum": {"name": "sha256", "checksum": "347fedecc861cebe02ac9c5918bd207f5a6a44fb44c2b4fcb2f294ad79e3a5bd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "prices", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(asset_id)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "fact_prices_ohlc_hourly_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["hour::DATE", "provider"]}, "tags": ["gold", "prices", "phase_3"], "description": "## What\n\nThis table provides hourly OHLC (Open, High, Low, Close) price data for all assets tracked in the price schema. It is designed for time series analysis, volatility studies, and historical price lookups.\n\n## Key Use Cases\n\n- Technical analysis and candlestick chart creation\n- Volatility studies and risk assessment\n- Historical price lookups and trend analysis\n- Market timing and trading analysis\n\n## Important Relationships\n\n- **Join with dim_asset_metadata**: For asset metadata\n- **Join with ez_token_transfers**: For USD value calculations\n\n## Commonly-used Fields\n\n- `hour`: UTC timestamp for the price period\n- `asset_id`: Unique identifier for the asset\n- `open`: Opening price at start of hour\n- `high`: Highest price during hour\n- `low`: Lowest price during hour\n- `close`: Closing price at end of hour\n\n## Sample Queries\n\n**OHLC Data Retrieval**\n```sql\nSELECT hour, asset_id, open, high, low, close\nFROM .price.fact_prices_ohlc_hourly\nWHERE asset_id = ''\n AND hour >= CURRENT_DATE - 30\nORDER BY hour DESC;\n```", "columns": {"HOUR": {"name": "HOUR", "description": "UTC timestamp truncated to the hour for price recording. Used for joining with hourly transaction data.\n\nExample: '2024-01-15 14:00:00.000'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ASSET_ID": {"name": "ASSET_ID", "description": "Unique identifier for the asset from the price provider. Provider-specific ID format.\n\nExample: 'ethereum'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "OPEN": {"name": "OPEN", "description": "Opening price at the start of the hour in USD. First recorded price in the hour for OHLC analysis.\n\nExample: 2995.25", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "HIGH": {"name": "HIGH", "description": "Highest price reached during the hour in USD. Maximum price in the hour for volatility analysis.\n\nExample: 3005.75", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOW": {"name": "LOW", "description": "Lowest price reached during the hour in USD. Minimum price in the hour for support level analysis.\n\nExample: 2985.50", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CLOSE": {"name": "CLOSE", "description": "Closing price at the end of the hour in USD. Last recorded price in the hour, commonly used for valuations.\n\nExample: 3000.50", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FACT_PRICES_OHLC_HOURLY_ID": {"name": "FACT_PRICES_OHLC_HOURLY_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/prices/gold/price__fact_prices_ohlc_hourly.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "fact_prices_ohlc_hourly_id", "cluster_by": ["hour::DATE", "provider"], "tags": ["gold", "prices", "phase_3"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018440.7996976, "relation_name": "polygon.price.fact_prices_ohlc_hourly", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'fact_prices_ohlc_hourly_id',\n cluster_by = ['hour::DATE','provider'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(asset_id)\",\n tags = ['gold','prices','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n asset_id,\n recorded_hour AS HOUR,\n OPEN,\n high,\n low,\n CLOSE,\n provider,\n {{ dbt_utils.generate_surrogate_key(['complete_provider_prices_id']) }} AS fact_prices_ohlc_hourly_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n {{ ref('silver__complete_provider_prices') }}\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify row_number() over (partition by fact_prices_ohlc_hourly_id order by modified_timestamp desc) = 1", "language": "sql", "refs": [{"name": "silver__complete_provider_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__complete_provider_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/gold/price__fact_prices_ohlc_hourly.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"hour::DATE\",\n \"provider\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(asset_id)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"prices\",\n \"phase_3\"\n ],\n \"unique_key\": \"fact_prices_ohlc_hourly_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'fact_prices_ohlc_hourly_id',\n cluster_by = ['hour::DATE','provider'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(asset_id)\",\n tags = ['gold','prices','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n asset_id,\n recorded_hour AS HOUR,\n OPEN,\n high,\n low,\n CLOSE,\n provider,\n {{ dbt_utils.generate_surrogate_key(['complete_provider_prices_id']) }} AS fact_prices_ohlc_hourly_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n {{ ref('silver__complete_provider_prices') }}\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify row_number() over (partition by fact_prices_ohlc_hourly_id order by modified_timestamp desc) = 1\n*/\n\n\n\n\n\nSELECT\n asset_id,\n recorded_hour AS HOUR,\n OPEN,\n high,\n low,\n CLOSE,\n provider,\n \n \nmd5(cast(coalesce(cast(complete_provider_prices_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS fact_prices_ohlc_hourly_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n polygon.silver.complete_provider_prices\n\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n polygon.price.fact_prices_ohlc_hourly\n )\n\n\nqualify row_number() over (partition by fact_prices_ohlc_hourly_id order by modified_timestamp desc) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.price__ez_asset_metadata": {"database": "polygon", "schema": "price", "name": "price__ez_asset_metadata", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/prices/gold/price__ez_asset_metadata.sql", "original_file_path": "models/main_package/prices/gold/price__ez_asset_metadata.sql", "unique_id": "model.fsc_evm.price__ez_asset_metadata", "fqn": ["fsc_evm", "main_package", "prices", "gold", "price__ez_asset_metadata"], "alias": "ez_asset_metadata", "checksum": {"name": "sha256", "checksum": "c333707854ea80aa6cff0d82122414156d0e01033c3266c27edf98b158310c35"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "prices", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(asset_id, token_address, symbol, name)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "ez_asset_metadata_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "prices", "phase_3"], "description": "## What\n\nThis curated dimensional table provides comprehensive metadata for tokens and native assets across EVM blockchains. It serves as the authoritative source for asset information, with quality checks and verification status to ensure reliability.\n\n## Key Use Cases\n\n- Asset discovery and verification checking\n- Cross-chain asset mapping and analysis\n- Token metadata lookup for display purposes\n- Filtering for verified or native assets only\n\n## Important Relationships\n\n- **Join with ez_prices_hourly**: For price data enrichment\n- **Join with ez_token_transfers**: For transfer metadata\n\n## Commonly-used Fields\n\n- `token_address`: Contract address (NULL for native assets)\n- `symbol`: Token ticker symbol\n- `name`: Full asset name\n- `decimals`: Token decimal places\n- `is_verified`: Flipside verification status\n- `is_native`: Native asset flag\n- `blockchain`: Network identifier\n\n## Sample Queries\n\n**Verified Asset Discovery**\n```sql\n-- Find all verified USD stablecoins\nSELECT \n blockchain,\n token_address,\n name,\n symbol,\n decimals,\n is_verified\nFROM .price.ez_asset_metadata\nWHERE is_verified = TRUE\n AND (\n symbol IN ('USDC', 'USDT', 'DAI', 'BUSD')\n OR name ILIKE '%USD%'\n OR name ILIKE '%stablecoin%'\n )\n AND is_native = FALSE\nORDER BY blockchain, symbol;\n```\n\n**Cross-Chain Asset Mapping**\n```sql\n-- Find same assets across multiple chains\nWITH asset_presence AS (\n SELECT \n symbol,\n name,\n COUNT(DISTINCT blockchain) AS chain_count,\n ARRAY_AGG(DISTINCT blockchain) AS chains,\n ARRAY_AGG(token_address) AS addresses\n FROM .price.ez_asset_metadata\n WHERE is_native = FALSE\n AND is_verified = TRUE\n GROUP BY 1, 2\n)\nSELECT * FROM asset_presence\nWHERE chain_count > 3\nORDER BY chain_count DESC, symbol;\n```\n\n**Native Asset Reference**\n```sql\n-- Get all native assets with metadata\nSELECT \n blockchain,\n symbol,\n name,\n decimals,\n CASE blockchain\n WHEN 'ethereum' THEN 'Proof of Stake'\n WHEN 'binance' THEN 'Proof of Staked Authority'\n WHEN 'polygon' THEN 'Proof of Stake'\n WHEN 'avalanche' THEN 'Avalanche Consensus'\n ELSE 'Various'\n END AS consensus_mechanism\nFROM .price.ez_asset_metadata\nWHERE is_native = TRUE\nORDER BY blockchain;\n```", "columns": {"ASSET_ID": {"name": "ASSET_ID", "description": "Unique identifier for the asset from the price provider. Provider-specific ID format.\n\nExample: 'ethereum'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NAME": {"name": "NAME", "description": "Full name of the asset or token. More descriptive than symbol.\n\nExample: 'Wrapped Ether'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "Token ticker symbol as commonly recognized. Usually 3-5 uppercase characters.\n\nExample: 'WETH'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "Contract address of the token on the blockchain. NULL for native assets (ETH, AVAX, etc.).\n\nExample: '0xa0b86a33e6776a1e7f9f0b8b8b8b8b8b8b8b8b8b'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "The blockchain network where the asset exists. Lowercase by convention.\n\nExample: 'ethereum'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECIMALS": {"name": "DECIMALS", "description": "Number of decimal places for the token. Most ERC-20 tokens use 18 decimals, USDC/USDT use 6, WBTC uses 8.\n\nExample: 18", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_NATIVE": {"name": "IS_NATIVE", "description": "Boolean indicating if the asset is the blockchain's native currency. TRUE for ETH on Ethereum, AVAX on Avalanche, etc.\n\nExample: true", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_DEPRECATED": {"name": "IS_DEPRECATED", "description": "Flag indicating if the asset is no longer actively supported. TRUE for deprecated assets that may have stale prices.\n\nExample: false", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_VERIFIED": {"name": "IS_VERIFIED", "description": "Boolean indicating Flipside team verification of the asset. TRUE for manually verified assets with validated metadata.\n\nExample: true", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_ASSET_METADATA_ID": {"name": "EZ_ASSET_METADATA_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/prices/gold/price__ez_asset_metadata.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "ez_asset_metadata_id", "tags": ["gold", "prices", "phase_3"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018440.8026094, "relation_name": "polygon.price.ez_asset_metadata", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'ez_asset_metadata_id',\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(asset_id, token_address, symbol, name)\",\n tags = ['gold','prices','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n token_address,\n asset_id,\n symbol,\n NAME,\n decimals,\n blockchain,\n FALSE AS is_native,\n is_deprecated,\n is_verified,\n is_verified_modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['complete_token_asset_metadata_id']) }} AS ez_asset_metadata_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n {{ ref('silver__complete_token_asset_metadata') }}\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n )\n{% endif %}\nUNION ALL\nSELECT\n NULL AS token_address,\n asset_id,\n symbol,\n NAME,\n decimals,\n blockchain,\n TRUE AS is_native,\n is_deprecated,\n TRUE AS is_verified,\n null as is_verified_modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['complete_native_asset_metadata_id']) }} AS ez_asset_metadata_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n {{ ref('silver__complete_native_asset_metadata') }}\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify row_number() over (partition by ez_asset_metadata_id order by modified_timestamp desc) = 1", "language": "sql", "refs": [{"name": "silver__complete_token_asset_metadata", "package": null, "version": null}, {"name": "silver__complete_native_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__complete_token_asset_metadata", "model.fsc_evm.silver__complete_native_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/gold/price__ez_asset_metadata.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(asset_id, token_address, symbol, name)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"prices\",\n \"phase_3\"\n ],\n \"unique_key\": \"ez_asset_metadata_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'ez_asset_metadata_id',\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(asset_id, token_address, symbol, name)\",\n tags = ['gold','prices','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n token_address,\n asset_id,\n symbol,\n NAME,\n decimals,\n blockchain,\n FALSE AS is_native,\n is_deprecated,\n is_verified,\n is_verified_modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['complete_token_asset_metadata_id']) }} AS ez_asset_metadata_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n {{ ref('silver__complete_token_asset_metadata') }}\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n )\n{% endif %}\nUNION ALL\nSELECT\n NULL AS token_address,\n asset_id,\n symbol,\n NAME,\n decimals,\n blockchain,\n TRUE AS is_native,\n is_deprecated,\n TRUE AS is_verified,\n null as is_verified_modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['complete_native_asset_metadata_id']) }} AS ez_asset_metadata_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n {{ ref('silver__complete_native_asset_metadata') }}\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify row_number() over (partition by ez_asset_metadata_id order by modified_timestamp desc) = 1\n*/\n\n\n\n\n\nSELECT\n token_address,\n asset_id,\n symbol,\n NAME,\n decimals,\n blockchain,\n FALSE AS is_native,\n is_deprecated,\n is_verified,\n is_verified_modified_timestamp,\n \n \nmd5(cast(coalesce(cast(complete_token_asset_metadata_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS ez_asset_metadata_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n polygon.silver.complete_token_asset_metadata\n\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n polygon.price.ez_asset_metadata\n )\n\nUNION ALL\nSELECT\n NULL AS token_address,\n asset_id,\n symbol,\n NAME,\n decimals,\n blockchain,\n TRUE AS is_native,\n is_deprecated,\n TRUE AS is_verified,\n null as is_verified_modified_timestamp,\n \n \nmd5(cast(coalesce(cast(complete_native_asset_metadata_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS ez_asset_metadata_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n polygon.silver.complete_native_asset_metadata\n\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n polygon.price.ez_asset_metadata\n )\n\n\nqualify row_number() over (partition by ez_asset_metadata_id order by modified_timestamp desc) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.price__ez_prices_hourly": {"database": "polygon", "schema": "price", "name": "price__ez_prices_hourly", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/prices/gold/price__ez_prices_hourly.sql", "original_file_path": "models/main_package/prices/gold/price__ez_prices_hourly.sql", "unique_id": "model.fsc_evm.price__ez_prices_hourly", "fqn": ["fsc_evm", "main_package", "prices", "gold", "price__ez_prices_hourly"], "alias": "ez_prices_hourly", "checksum": {"name": "sha256", "checksum": "2be99799fc8ea141403921203ca3045f3236b64d4a9a5a122cd1723961ac5337"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "prices", "phase_3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(token_address, symbol, name)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "ez_prices_hourly_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["hour::DATE"]}, "tags": ["gold", "prices", "phase_3"], "description": "## What\n\nThis curated table provides reliable hourly price data for tokens and native assets across EVM blockchains. It combines multiple data sources with quality checks to ensure accurate, consistent pricing for DeFi analytics, portfolio valuations, and historical analysis.\n\n## Key Use Cases\n\n- Calculate USD values for token transfers and transaction amounts\n- Track price volatility and market movements over time\n- Monitor stablecoin depegging events and price stability\n- Analyze native asset price trends across different blockchains\n- Perform portfolio valuations and historical price lookups\n- Create price charts and technical analysis dashboards\n- Assess price data quality and imputation rates\n\n## Important Relationships\n\n- **Join with ez_token_transfers**: Calculate transfer USD values using hourly price snapshots\n- **Join with ez_asset_metadata**: Get token details and verification status\n- **Join with dim_contracts**: Match addresses with contract metadata\n\n## Commonly-used Fields\n\n- `hour`: UTC timestamp truncated to hour for price recording\n- `token_address`: Contract address of the token (NULL for native assets)\n- `symbol`: Token ticker symbol (ETH, USDC, etc.)\n- `price`: USD price of one whole token unit\n- `is_imputed`: Flag indicating forward-filled prices due to missing data\n- `is_native`: Boolean for blockchain native currencies\n- `blockchain`: Network where the asset exists\n\n## Sample Queries\n\n**Token Price Lookup with USD Calculations**\n```sql\n-- Calculate USD value for token transfers\nSELECT \n t.block_timestamp,\n t.tx_hash,\n t.symbol,\n t.from_address,\n t.to_address,\n t.amount,\n p.price,\n t.amount * p.price AS usd_value,\n p.is_imputed\nFROM .core.ez_token_transfers t\nJOIN .price.ez_prices_hourly p\n ON t.contract_address = p.token_address\n AND DATE_TRUNC('hour', t.block_timestamp) = p.hour\nWHERE t.block_timestamp >= CURRENT_DATE - 7\n AND t.amount > 0\n AND p.price IS NOT NULL\nORDER BY usd_value DESC\nLIMIT 100;\n```\n\n**Price Volatility Analysis**\n```sql\n-- 24-hour price volatility for major tokens\nWITH price_stats AS (\n SELECT \n symbol,\n token_address,\n DATE(hour) AS date,\n MIN(price) AS daily_low,\n MAX(price) AS daily_high,\n AVG(price) AS daily_avg,\n STDDEV(price) AS daily_stddev,\n (MAX(price) - MIN(price)) / MIN(price) * 100 AS daily_range_pct\n FROM .price.ez_prices_hourly\n WHERE hour >= CURRENT_DATE - 30\n AND symbol IN ('WETH', 'USDC', 'USDT', 'WBTC', 'DAI')\n AND NOT is_imputed\n GROUP BY 1, 2, 3\n)\nSELECT \n symbol,\n AVG(daily_range_pct) AS avg_daily_volatility,\n MAX(daily_range_pct) AS max_daily_volatility,\n AVG(daily_stddev / daily_avg) * 100 AS avg_cv_pct\nFROM price_stats\nGROUP BY 1\nORDER BY 2 DESC;\n```\n\n**Native Asset Price Tracking**\n```sql\n-- Track native asset prices across chains\nSELECT \n blockchain,\n symbol,\n hour,\n price,\n price / LAG(price, 24) OVER (PARTITION BY blockchain ORDER BY hour) - 1 AS change_24h,\n price / LAG(price, 168) OVER (PARTITION BY blockchain ORDER BY hour) - 1 AS change_7d\nFROM .price.ez_prices_hourly\nWHERE is_native = TRUE\n AND hour >= CURRENT_DATE - 8\n AND hour = DATE_TRUNC('hour', CURRENT_TIMESTAMP) - INTERVAL '1 hour'\nORDER BY blockchain;\n```\n\n**Stablecoin Peg Monitoring**\n```sql\n-- Monitor stablecoin deviations from $1\nSELECT \n symbol,\n hour,\n price,\n ABS(price - 1.0) AS deviation,\n CASE \n WHEN ABS(price - 1.0) > 0.05 THEN 'Severe Depeg'\n WHEN ABS(price - 1.0) > 0.01 THEN 'Mild Depeg'\n ELSE 'Stable'\n END AS peg_status\nFROM .price.ez_prices_hourly\nWHERE symbol IN ('USDC', 'USDT', 'DAI', 'BUSD', 'FRAX', 'LUSD')\n AND hour >= CURRENT_DATE - 7\n AND ABS(price - 1.0) > 0.005\nORDER BY hour DESC, deviation DESC;\n```\n\n**Price Data Quality Check**\n```sql\n-- Analyze price data completeness and imputation rates\nSELECT \n symbol,\n COUNT(*) AS total_hours,\n SUM(CASE WHEN is_imputed THEN 1 ELSE 0 END) AS imputed_hours,\n ROUND(100.0 * SUM(CASE WHEN is_imputed THEN 1 ELSE 0 END) / COUNT(*), 2) AS imputation_rate,\n MIN(hour) AS first_price,\n MAX(hour) AS last_price,\n COUNT(DISTINCT DATE(hour)) AS days_with_data\nFROM .price.ez_prices_hourly\nWHERE hour >= CURRENT_DATE - 30\nGROUP BY 1\nHAVING COUNT(*) > 100\nORDER BY imputation_rate DESC;\n```", "columns": {"HOUR": {"name": "HOUR", "description": "UTC timestamp truncated to the hour for price recording. Used for joining with hourly transaction data.\n\nExample: '2024-01-15 14:00:00.000'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "Contract address of the token on the blockchain. NULL for native assets (ETH, AVAX, etc.).\n\nExample: '0xa0b86a33e6776a1e7f9f0b8b8b8b8b8b8b8b8b8b'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "Token ticker symbol as commonly recognized. Usually 3-5 uppercase characters.\n\nExample: 'WETH'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "The blockchain network where the asset exists. Lowercase by convention.\n\nExample: 'ethereum'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECIMALS": {"name": "DECIMALS", "description": "Number of decimal places for the token. Most ERC-20 tokens use 18 decimals, USDC/USDT use 6, WBTC uses 8.\n\nExample: 18", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRICE": {"name": "PRICE", "description": "USD price of one whole token unit at the recorded hour.\n\nExample: 3000.50", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_NATIVE": {"name": "IS_NATIVE", "description": "Boolean indicating if the asset is the blockchain's native currency. TRUE for ETH on Ethereum, AVAX on Avalanche, etc.\n\nExample: true", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_IMPUTED": {"name": "IS_IMPUTED", "description": "Boolean flag indicating if the price was forward-filled due to missing data. TRUE means price carried forward from last known value.\n\nExample: false", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_DEPRECATED": {"name": "IS_DEPRECATED", "description": "Flag indicating if the asset is no longer actively supported. TRUE for deprecated assets that may have stale prices.\n\nExample: false", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_VERIFIED": {"name": "IS_VERIFIED", "description": "Boolean indicating Flipside team verification of the asset. TRUE for manually verified assets with validated metadata.\n\nExample: true", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_PRICES_HOURLY_ID": {"name": "EZ_PRICES_HOURLY_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/main_package/prices/gold/price__ez_prices_hourly.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "ez_prices_hourly_id", "cluster_by": ["hour::DATE"], "tags": ["gold", "prices", "phase_3"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018440.797128, "relation_name": "polygon.price.ez_prices_hourly", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'ez_prices_hourly_id',\n cluster_by = ['hour::DATE'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(token_address, symbol, name)\",\n tags = ['gold','prices','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n HOUR,\n token_address,\n symbol,\n NAME,\n decimals,\n price,\n blockchain,\n FALSE AS is_native,\n is_imputed,\n is_deprecated,\n is_verified,\n {{ dbt_utils.generate_surrogate_key(['complete_token_prices_id']) }} AS ez_prices_hourly_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n {{ ref('silver__complete_token_prices') }}\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n )\n{% endif %}\nUNION ALL\nSELECT\n HOUR,\n NULL AS token_address,\n symbol,\n NAME,\n decimals,\n price,\n blockchain,\n TRUE AS is_native,\n is_imputed,\n is_deprecated,\n TRUE as is_verified,\n {{ dbt_utils.generate_surrogate_key(['complete_native_prices_id']) }} AS ez_prices_hourly_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n {{ ref('silver__complete_native_prices') }}\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify row_number() over (partition by ez_prices_hourly_id order by modified_timestamp desc) = 1", "language": "sql", "refs": [{"name": "silver__complete_token_prices", "package": null, "version": null}, {"name": "silver__complete_native_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__complete_token_prices", "model.fsc_evm.silver__complete_native_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/gold/price__ez_prices_hourly.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"hour::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(token_address, symbol, name)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"prices\",\n \"phase_3\"\n ],\n \"unique_key\": \"ez_prices_hourly_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'ez_prices_hourly_id',\n cluster_by = ['hour::DATE'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(token_address, symbol, name)\",\n tags = ['gold','prices','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n HOUR,\n token_address,\n symbol,\n NAME,\n decimals,\n price,\n blockchain,\n FALSE AS is_native,\n is_imputed,\n is_deprecated,\n is_verified,\n {{ dbt_utils.generate_surrogate_key(['complete_token_prices_id']) }} AS ez_prices_hourly_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n {{ ref('silver__complete_token_prices') }}\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n )\n{% endif %}\nUNION ALL\nSELECT\n HOUR,\n NULL AS token_address,\n symbol,\n NAME,\n decimals,\n price,\n blockchain,\n TRUE AS is_native,\n is_imputed,\n is_deprecated,\n TRUE as is_verified,\n {{ dbt_utils.generate_surrogate_key(['complete_native_prices_id']) }} AS ez_prices_hourly_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n {{ ref('silver__complete_native_prices') }}\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify row_number() over (partition by ez_prices_hourly_id order by modified_timestamp desc) = 1\n*/\n\n\n\n\n\nSELECT\n HOUR,\n token_address,\n symbol,\n NAME,\n decimals,\n price,\n blockchain,\n FALSE AS is_native,\n is_imputed,\n is_deprecated,\n is_verified,\n \n \nmd5(cast(coalesce(cast(complete_token_prices_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS ez_prices_hourly_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n polygon.silver.complete_token_prices\n\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n polygon.price.ez_prices_hourly\n )\n\nUNION ALL\nSELECT\n HOUR,\n NULL AS token_address,\n symbol,\n NAME,\n decimals,\n price,\n blockchain,\n TRUE AS is_native,\n is_imputed,\n is_deprecated,\n TRUE as is_verified,\n \n \nmd5(cast(coalesce(cast(complete_native_prices_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS ez_prices_hourly_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n polygon.silver.complete_native_prices\n\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n polygon.price.ez_prices_hourly\n )\n\n\nqualify row_number() over (partition by ez_prices_hourly_id order by modified_timestamp desc) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__complete_provider_asset_metadata": {"database": "polygon", "schema": "bronze", "name": "bronze__complete_provider_asset_metadata", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/prices/bronze/bronze__complete_provider_asset_metadata.sql", "original_file_path": "models/main_package/prices/bronze/bronze__complete_provider_asset_metadata.sql", "unique_id": "model.fsc_evm.bronze__complete_provider_asset_metadata", "fqn": ["fsc_evm", "main_package", "prices", "bronze", "bronze__complete_provider_asset_metadata"], "alias": "complete_provider_asset_metadata", "checksum": {"name": "sha256", "checksum": "347919a75887fefd23e04f32404ed4b4bbd4bd65309cc9a919918292bb3ba2ca"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "prices", "provider", "phase_3"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "prices", "provider", "phase_3"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "prices", "provider", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018343.122418, "relation_name": "polygon.bronze.complete_provider_asset_metadata", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','prices','provider','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n asset_id,\n token_address,\n NAME,\n symbol,\n platform,\n platform_id,\n provider,\n source,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n complete_provider_asset_metadata_id,\n _invocation_id\nFROM\n {{ source(\n 'crosschain_silver',\n 'complete_provider_asset_metadata'\n ) }}\nWHERE\n platform IN ({% if vars.MAIN_PRICES_PROVIDER_PLATFORMS is string %}\n '{{ vars.MAIN_PRICES_PROVIDER_PLATFORMS }}'\n {% else %}\n {{ vars.MAIN_PRICES_PROVIDER_PLATFORMS | replace('[', '') | replace(']', '') }}\n {% endif %}) -- platforms specific to the target blockchain", "language": "sql", "refs": [], "sources": [["crosschain_silver", "complete_provider_asset_metadata"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.crosschain_silver.complete_provider_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/bronze/bronze__complete_provider_asset_metadata.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"prices\",\n \"provider\",\n \"phase_3\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','prices','provider','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n asset_id,\n token_address,\n NAME,\n symbol,\n platform,\n platform_id,\n provider,\n source,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n complete_provider_asset_metadata_id,\n _invocation_id\nFROM\n {{ source(\n 'crosschain_silver',\n 'complete_provider_asset_metadata'\n ) }}\nWHERE\n platform IN ({% if vars.MAIN_PRICES_PROVIDER_PLATFORMS is string %}\n '{{ vars.MAIN_PRICES_PROVIDER_PLATFORMS }}'\n {% else %}\n {{ vars.MAIN_PRICES_PROVIDER_PLATFORMS | replace('[', '') | replace(']', '') }}\n {% endif %}) -- platforms specific to the target blockchain\n*/\n\n\n\n\n\nSELECT\n asset_id,\n token_address,\n NAME,\n symbol,\n platform,\n platform_id,\n provider,\n source,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n complete_provider_asset_metadata_id,\n _invocation_id\nFROM\n CROSSCHAIN.silver.complete_provider_asset_metadata\nWHERE\n platform IN (\n 'Polygon'\n ) -- platforms specific to the target blockchain", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__complete_native_asset_metadata": {"database": "polygon", "schema": "bronze", "name": "bronze__complete_native_asset_metadata", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/prices/bronze/bronze__complete_native_asset_metadata.sql", "original_file_path": "models/main_package/prices/bronze/bronze__complete_native_asset_metadata.sql", "unique_id": "model.fsc_evm.bronze__complete_native_asset_metadata", "fqn": ["fsc_evm", "main_package", "prices", "bronze", "bronze__complete_native_asset_metadata"], "alias": "complete_native_asset_metadata", "checksum": {"name": "sha256", "checksum": "62cb5c981bfea69e82e92e7049bd59209f3772a505cacae66a480cf2ee2417aa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "prices", "native", "phase_3"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "prices", "native", "phase_3"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "prices", "native", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018343.4432878, "relation_name": "polygon.bronze.complete_native_asset_metadata", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','prices','native','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n asset_id,\n symbol,\n NAME,\n decimals,\n blockchain,\n is_deprecated,\n provider,\n source,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n complete_native_asset_metadata_id,\n _invocation_id\nFROM\n {{ source(\n 'crosschain_silver',\n 'complete_native_asset_metadata'\n ) }}\nWHERE\n blockchain IN ({% if vars.MAIN_PRICES_NATIVE_BLOCKCHAINS is string %}\n '{{ vars.MAIN_PRICES_NATIVE_BLOCKCHAINS }}'\n {% else %}\n {{ vars.MAIN_PRICES_NATIVE_BLOCKCHAINS | replace('[', '') | replace(']', '') }}\n {% endif %})\n AND symbol IN ({% if vars.MAIN_PRICES_NATIVE_SYMBOLS is string %}\n '{{ vars.MAIN_PRICES_NATIVE_SYMBOLS }}'\n {% else %}\n {{ vars.MAIN_PRICES_NATIVE_SYMBOLS | replace('[', '') | replace(']', '') }}\n {% endif %})", "language": "sql", "refs": [], "sources": [["crosschain_silver", "complete_native_asset_metadata"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.crosschain_silver.complete_native_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/bronze/bronze__complete_native_asset_metadata.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"prices\",\n \"native\",\n \"phase_3\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','prices','native','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n asset_id,\n symbol,\n NAME,\n decimals,\n blockchain,\n is_deprecated,\n provider,\n source,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n complete_native_asset_metadata_id,\n _invocation_id\nFROM\n {{ source(\n 'crosschain_silver',\n 'complete_native_asset_metadata'\n ) }}\nWHERE\n blockchain IN ({% if vars.MAIN_PRICES_NATIVE_BLOCKCHAINS is string %}\n '{{ vars.MAIN_PRICES_NATIVE_BLOCKCHAINS }}'\n {% else %}\n {{ vars.MAIN_PRICES_NATIVE_BLOCKCHAINS | replace('[', '') | replace(']', '') }}\n {% endif %})\n AND symbol IN ({% if vars.MAIN_PRICES_NATIVE_SYMBOLS is string %}\n '{{ vars.MAIN_PRICES_NATIVE_SYMBOLS }}'\n {% else %}\n {{ vars.MAIN_PRICES_NATIVE_SYMBOLS | replace('[', '') | replace(']', '') }}\n {% endif %})\n*/\n\n\n\n\n\nSELECT\n asset_id,\n symbol,\n NAME,\n decimals,\n blockchain,\n is_deprecated,\n provider,\n source,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n complete_native_asset_metadata_id,\n _invocation_id\nFROM\n CROSSCHAIN.silver.complete_native_asset_metadata\nWHERE\n blockchain IN (\n 'polygon'\n )\n AND symbol IN (\n 'MATIC', 'POL'\n )", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__complete_token_prices": {"database": "polygon", "schema": "bronze", "name": "bronze__complete_token_prices", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/prices/bronze/bronze__complete_token_prices.sql", "original_file_path": "models/main_package/prices/bronze/bronze__complete_token_prices.sql", "unique_id": "model.fsc_evm.bronze__complete_token_prices", "fqn": ["fsc_evm", "main_package", "prices", "bronze", "bronze__complete_token_prices"], "alias": "complete_token_prices", "checksum": {"name": "sha256", "checksum": "0ce9636293bb61736ef2fbcc0d3e5b80a6c54bbfb4f917cbae1c06e818ebda96"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "prices", "token", "phase_3"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "prices", "token", "phase_3"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "prices", "token", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018343.7653954, "relation_name": "polygon.bronze.complete_token_prices", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','prices','token','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n HOUR,\n token_address,\n asset_id,\n symbol,\n NAME,\n decimals,\n price,\n blockchain,\n blockchain_name,\n blockchain_id,\n is_imputed,\n is_deprecated,\n is_verified,\n provider,\n source,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n complete_token_prices_id,\n _invocation_id\nFROM\n {{ source(\n 'crosschain_silver',\n 'complete_token_prices'\n ) }}\nWHERE\n blockchain IN ({% if vars.MAIN_PRICES_TOKEN_BLOCKCHAINS is string %}\n '{{ vars.MAIN_PRICES_TOKEN_BLOCKCHAINS }}'\n {% else %}\n {{ vars.MAIN_PRICES_TOKEN_BLOCKCHAINS | replace('[', '') | replace(']', '') }}\n {% endif %})\n {% if vars.MAIN_PRICES_TOKEN_ADDRESSES is not none %}\n AND token_address IN ({% if vars.MAIN_PRICES_TOKEN_ADDRESSES is string %}\n '{{ vars.MAIN_PRICES_TOKEN_ADDRESSES }}'\n {% else %}\n {{ vars.MAIN_PRICES_TOKEN_ADDRESSES | replace('[', '') | replace(']', '') }}\n {% endif %})\n {% endif %}", "language": "sql", "refs": [], "sources": [["crosschain_silver", "complete_token_prices"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.crosschain_silver.complete_token_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/bronze/bronze__complete_token_prices.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"prices\",\n \"token\",\n \"phase_3\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','prices','token','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n HOUR,\n token_address,\n asset_id,\n symbol,\n NAME,\n decimals,\n price,\n blockchain,\n blockchain_name,\n blockchain_id,\n is_imputed,\n is_deprecated,\n is_verified,\n provider,\n source,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n complete_token_prices_id,\n _invocation_id\nFROM\n {{ source(\n 'crosschain_silver',\n 'complete_token_prices'\n ) }}\nWHERE\n blockchain IN ({% if vars.MAIN_PRICES_TOKEN_BLOCKCHAINS is string %}\n '{{ vars.MAIN_PRICES_TOKEN_BLOCKCHAINS }}'\n {% else %}\n {{ vars.MAIN_PRICES_TOKEN_BLOCKCHAINS | replace('[', '') | replace(']', '') }}\n {% endif %})\n {% if vars.MAIN_PRICES_TOKEN_ADDRESSES is not none %}\n AND token_address IN ({% if vars.MAIN_PRICES_TOKEN_ADDRESSES is string %}\n '{{ vars.MAIN_PRICES_TOKEN_ADDRESSES }}'\n {% else %}\n {{ vars.MAIN_PRICES_TOKEN_ADDRESSES | replace('[', '') | replace(']', '') }}\n {% endif %})\n {% endif %}\n*/\n\n\n\n\n\nSELECT\n HOUR,\n token_address,\n asset_id,\n symbol,\n NAME,\n decimals,\n price,\n blockchain,\n blockchain_name,\n blockchain_id,\n is_imputed,\n is_deprecated,\n is_verified,\n provider,\n source,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n complete_token_prices_id,\n _invocation_id\nFROM\n CROSSCHAIN.silver.complete_token_prices\nWHERE\n blockchain IN (\n 'polygon'\n )\n ", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__complete_token_asset_metadata": {"database": "polygon", "schema": "bronze", "name": "bronze__complete_token_asset_metadata", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/prices/bronze/bronze__complete_token_asset_metadata.sql", "original_file_path": "models/main_package/prices/bronze/bronze__complete_token_asset_metadata.sql", "unique_id": "model.fsc_evm.bronze__complete_token_asset_metadata", "fqn": ["fsc_evm", "main_package", "prices", "bronze", "bronze__complete_token_asset_metadata"], "alias": "complete_token_asset_metadata", "checksum": {"name": "sha256", "checksum": "069fa3ae757aa548a30d96491ffb84d89bec73de702e91bb421842ebeaea1dde"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "prices", "token", "phase_3"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "prices", "token", "phase_3"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "prices", "token", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018344.084204, "relation_name": "polygon.bronze.complete_token_asset_metadata", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','prices','token','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n token_address,\n asset_id,\n symbol,\n NAME,\n decimals,\n blockchain,\n blockchain_name,\n blockchain_id,\n is_deprecated,\n is_verified,\n is_verified_modified_timestamp,\n provider,\n source,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n complete_token_asset_metadata_id,\n _invocation_id\nFROM\n {{ source(\n 'crosschain_silver',\n 'complete_token_asset_metadata'\n ) }}\nWHERE\n blockchain IN ({% if vars.MAIN_PRICES_TOKEN_BLOCKCHAINS is string %}\n '{{ vars.MAIN_PRICES_TOKEN_BLOCKCHAINS }}'\n {% else %}\n {{ vars.MAIN_PRICES_TOKEN_BLOCKCHAINS | replace('[', '') | replace(']', '') }}\n {% endif %})\n {% if vars.MAIN_PRICES_TOKEN_ADDRESSES is not none %}\n AND token_address IN ({% if vars.MAIN_PRICES_TOKEN_ADDRESSES is string %}\n '{{ vars.MAIN_PRICES_TOKEN_ADDRESSES }}'\n {% else %}\n {{ vars.MAIN_PRICES_TOKEN_ADDRESSES | replace('[', '') | replace(']', '') }}\n {% endif %})\n {% endif %}", "language": "sql", "refs": [], "sources": [["crosschain_silver", "complete_token_asset_metadata"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.crosschain_silver.complete_token_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/bronze/bronze__complete_token_asset_metadata.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"prices\",\n \"token\",\n \"phase_3\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','prices','token','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n token_address,\n asset_id,\n symbol,\n NAME,\n decimals,\n blockchain,\n blockchain_name,\n blockchain_id,\n is_deprecated,\n is_verified,\n is_verified_modified_timestamp,\n provider,\n source,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n complete_token_asset_metadata_id,\n _invocation_id\nFROM\n {{ source(\n 'crosschain_silver',\n 'complete_token_asset_metadata'\n ) }}\nWHERE\n blockchain IN ({% if vars.MAIN_PRICES_TOKEN_BLOCKCHAINS is string %}\n '{{ vars.MAIN_PRICES_TOKEN_BLOCKCHAINS }}'\n {% else %}\n {{ vars.MAIN_PRICES_TOKEN_BLOCKCHAINS | replace('[', '') | replace(']', '') }}\n {% endif %})\n {% if vars.MAIN_PRICES_TOKEN_ADDRESSES is not none %}\n AND token_address IN ({% if vars.MAIN_PRICES_TOKEN_ADDRESSES is string %}\n '{{ vars.MAIN_PRICES_TOKEN_ADDRESSES }}'\n {% else %}\n {{ vars.MAIN_PRICES_TOKEN_ADDRESSES | replace('[', '') | replace(']', '') }}\n {% endif %})\n {% endif %}\n*/\n\n\n\n\n\nSELECT\n token_address,\n asset_id,\n symbol,\n NAME,\n decimals,\n blockchain,\n blockchain_name,\n blockchain_id,\n is_deprecated,\n is_verified,\n is_verified_modified_timestamp,\n provider,\n source,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n complete_token_asset_metadata_id,\n _invocation_id\nFROM\n CROSSCHAIN.silver.complete_token_asset_metadata\nWHERE\n blockchain IN (\n 'polygon'\n )\n ", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__complete_native_prices": {"database": "polygon", "schema": "bronze", "name": "bronze__complete_native_prices", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/prices/bronze/bronze__complete_native_prices.sql", "original_file_path": "models/main_package/prices/bronze/bronze__complete_native_prices.sql", "unique_id": "model.fsc_evm.bronze__complete_native_prices", "fqn": ["fsc_evm", "main_package", "prices", "bronze", "bronze__complete_native_prices"], "alias": "complete_native_prices", "checksum": {"name": "sha256", "checksum": "23840ddfe74fcf9ec35b68308a3b3d043a6fd6967d512f37cadd8a63ae51f124"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "prices", "native", "phase_3"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "prices", "native", "phase_3"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "prices", "native", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018344.4002297, "relation_name": "polygon.bronze.complete_native_prices", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','prices','native','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n HOUR,\n asset_id,\n symbol,\n NAME,\n decimals,\n price,\n blockchain,\n is_imputed,\n is_deprecated,\n provider,\n source,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n complete_native_prices_id,\n _invocation_id\nFROM\n {{ source(\n 'crosschain_silver',\n 'complete_native_prices'\n ) }}\nWHERE\n blockchain IN ({% if vars.MAIN_PRICES_NATIVE_BLOCKCHAINS is string %}\n '{{ vars.MAIN_PRICES_NATIVE_BLOCKCHAINS }}'\n {% else %}\n {{ vars.MAIN_PRICES_NATIVE_BLOCKCHAINS | replace('[', '') | replace(']', '') }}\n {% endif %})\n AND symbol IN ({% if vars.MAIN_PRICES_NATIVE_SYMBOLS is string %}\n '{{ vars.MAIN_PRICES_NATIVE_SYMBOLS }}'\n {% else %}\n {{ vars.MAIN_PRICES_NATIVE_SYMBOLS | replace('[', '') | replace(']', '') }}\n {% endif %})", "language": "sql", "refs": [], "sources": [["crosschain_silver", "complete_native_prices"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.crosschain_silver.complete_native_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/bronze/bronze__complete_native_prices.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"prices\",\n \"native\",\n \"phase_3\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','prices','native','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n HOUR,\n asset_id,\n symbol,\n NAME,\n decimals,\n price,\n blockchain,\n is_imputed,\n is_deprecated,\n provider,\n source,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n complete_native_prices_id,\n _invocation_id\nFROM\n {{ source(\n 'crosschain_silver',\n 'complete_native_prices'\n ) }}\nWHERE\n blockchain IN ({% if vars.MAIN_PRICES_NATIVE_BLOCKCHAINS is string %}\n '{{ vars.MAIN_PRICES_NATIVE_BLOCKCHAINS }}'\n {% else %}\n {{ vars.MAIN_PRICES_NATIVE_BLOCKCHAINS | replace('[', '') | replace(']', '') }}\n {% endif %})\n AND symbol IN ({% if vars.MAIN_PRICES_NATIVE_SYMBOLS is string %}\n '{{ vars.MAIN_PRICES_NATIVE_SYMBOLS }}'\n {% else %}\n {{ vars.MAIN_PRICES_NATIVE_SYMBOLS | replace('[', '') | replace(']', '') }}\n {% endif %})\n*/\n\n\n\n\n\nSELECT\n HOUR,\n asset_id,\n symbol,\n NAME,\n decimals,\n price,\n blockchain,\n is_imputed,\n is_deprecated,\n provider,\n source,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n complete_native_prices_id,\n _invocation_id\nFROM\n CROSSCHAIN.silver.complete_native_prices\nWHERE\n blockchain IN (\n 'polygon'\n )\n AND symbol IN (\n 'MATIC', 'POL'\n )", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__complete_provider_prices": {"database": "polygon", "schema": "bronze", "name": "bronze__complete_provider_prices", "resource_type": "model", "package_name": "fsc_evm", "path": "main_package/prices/bronze/bronze__complete_provider_prices.sql", "original_file_path": "models/main_package/prices/bronze/bronze__complete_provider_prices.sql", "unique_id": "model.fsc_evm.bronze__complete_provider_prices", "fqn": ["fsc_evm", "main_package", "prices", "bronze", "bronze__complete_provider_prices"], "alias": "complete_provider_prices", "checksum": {"name": "sha256", "checksum": "204dc8b06f519d1de8782804e720f3f96d7920016a0bdeaf409b3d1ea3306f38"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "prices", "provider", "phase_3"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "prices", "provider", "phase_3"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "prices", "provider", "phase_3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018344.836467, "relation_name": "polygon.bronze.complete_provider_prices", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','prices','provider','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n asset_id,\n recorded_hour,\n OPEN,\n high,\n low,\n CLOSE,\n provider,\n source,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n complete_provider_prices_id,\n _invocation_id\nFROM\n {{ source(\n 'crosschain_silver',\n 'complete_provider_prices'\n ) }}\n -- prices for all ids, no filter necessary", "language": "sql", "refs": [], "sources": [["crosschain_silver", "complete_provider_prices"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.crosschain_silver.complete_provider_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/bronze/bronze__complete_provider_prices.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"prices\",\n \"provider\",\n \"phase_3\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','prices','provider','phase_3']\n) }}\n\n{# Main query starts here #}\nSELECT\n asset_id,\n recorded_hour,\n OPEN,\n high,\n low,\n CLOSE,\n provider,\n source,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n complete_provider_prices_id,\n _invocation_id\nFROM\n {{ source(\n 'crosschain_silver',\n 'complete_provider_prices'\n ) }}\n -- prices for all ids, no filter necessary\n*/\n\n\n\n\n\nSELECT\n asset_id,\n recorded_hour,\n OPEN,\n high,\n low,\n CLOSE,\n provider,\n source,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n complete_provider_prices_id,\n _invocation_id\nFROM\n CROSSCHAIN.silver.complete_provider_prices\n -- prices for all ids, no filter necessary", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__complete_bridge_activity": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__complete_bridge_activity", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.sql", "unique_id": "model.fsc_evm.silver_bridge__complete_bridge_activity", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "silver_bridge__complete_bridge_activity"], "alias": "complete_bridge_activity", "checksum": {"name": "sha256", "checksum": "124cf100138e5a613b8de39c8db419fecee354c9b21fbbb9e004e553b1e2326c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated", "heal", "complete"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, bridge_address, sender, receiver, destination_chain_receiver, destination_chain_id, destination_chain, token_address, token_symbol)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["block_number", "platform", "version"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE", "platform"], "incremental_predicates": ["polygon.\n \n silver_bridge.\n \n complete_bridge_activity.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n silver_bridge.\n \n complete_bridge_activity__dbt_tmp\n )"]}, "tags": ["silver_bridge", "defi", "bridge", "curated", "heal", "complete"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BRIDGE_ADDRESS": {"name": "BRIDGE_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESTINATION_CHAIN_RECEIVER": {"name": "DESTINATION_CHAIN_RECEIVER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SENDER": {"name": "SENDER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "RECEIVER": {"name": "RECEIVER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_UNADJ": {"name": "AMOUNT_UNADJ", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL": {"name": "PROTOCOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VERSION": {"name": "VERSION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TYPE": {"name": "TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["block_number", "platform", "version"], "cluster_by": ["block_timestamp::DATE", "platform"], "incremental_predicates": ["polygon.\n \n silver_bridge.\n \n complete_bridge_activity.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n silver_bridge.\n \n complete_bridge_activity__dbt_tmp\n )"], "tags": ["silver_bridge", "defi", "bridge", "curated", "heal", "complete"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018440.8149023, "relation_name": "polygon.silver_bridge.complete_bridge_activity", "raw_code": "-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform','version'],\n cluster_by = ['block_timestamp::DATE','platform'],\n incremental_predicates = [fsc_evm.standard_predicate()],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, bridge_address, sender, receiver, destination_chain_receiver, destination_chain_id, destination_chain, token_address, token_symbol)\",\n tags = ['silver_bridge','defi','bridge','curated','heal','complete']\n) }}\n\nWITH contracts AS (\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n),\nprices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n),\nacross AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__across_fundsdeposited') }}\n\n{% if is_incremental() and 'across' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nacross_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__across_v3fundsdeposited') }}\n\n{% if is_incremental() and 'across_v3' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nallbridge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n NULL AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__allbridge_sent') }}\n\n{% if is_incremental() and 'allbridge' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nallbridge_v2 AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__allbridge_tokens_sent') }}\n\n{% if is_incremental() and 'allbridge_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naxelar AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n NULL AS destination_chain_id,\n destination_chain,\n token_address,\n token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__axelar_contractcallwithtoken') }}\n\n{% if is_incremental() and 'axelar' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nceler_cbridge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__celer_cbridge_send') }}\n\n{% if is_incremental() and 'celer_cbridge' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nccip AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__ccip_send_requested') }}\n\n {% if is_incremental() and 'ccip' not in vars.CURATED_FR_MODELS %}\n WHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n {% endif %}\n ),\n \n cctp AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__cctp_depositforburn') }}\n\n {% if is_incremental() and 'cctp' not in vars.CURATED_FR_MODELS %}\n WHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n {% endif %}\n ),\n cctp_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__cctp_v2_depositforburn') }}\n\n {% if is_incremental() and 'cctp_v2' not in vars.CURATED_FR_MODELS %}\n WHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n {% endif %}\n ),\ndln_debridge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__dln_debridge_createdorder') }}\n\n{% if is_incremental() and 'dln_debridge' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\neverclear AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol, \n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__everclear') }}\n\n{% if is_incremental() and 'everclear' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\neywa AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__eywa_requestsent') }}\n\n{% if is_incremental() and 'eywa' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nhop_l2 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__hop_transfersent') }}\n\n{% if is_incremental() and 'hop_l2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nhop_l1 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__hop_transfersenttol2') }}\n\n{% if is_incremental() and 'hop_l1' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nhyperliquid AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__hyperliquid') }}\n\n{% if is_incremental() and 'hyperliquid' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nlayerzero_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__layerzero_v2') }}\n\n{% if is_incremental() and 'layerzero_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nmeson AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__meson_transfers') }}\n\n{% if is_incremental() and 'meson' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmultichain AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__multichain_v7_loganyswapout') }}\n\n{% if is_incremental() and 'multichain' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nstargate AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__stargate_swap') }}\n\n{% if is_incremental() and 'stargate' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nstargate_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__stargate_v2') }}\n\n{% if is_incremental() and 'stargate_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nsymbiosis AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__symbiosis_synthesizerequest') }}\n\n{% if is_incremental() and 'symbiosis' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsynapse_tb AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__synapse_token_bridge') }}\n\n{% if is_incremental() and 'synapse_tb' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsynapse_tbs AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__synapse_tokenbridgeandswap') }}\n\n{% if is_incremental() and 'synapse_tbs' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nwormhole AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__wormhole_transfers') }}\n\n{% if is_incremental() and 'wormhole' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\navalanche_native_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__avalanche_native_v2') }}\n\n{% if is_incremental() and 'avalanche_native_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncore_native_bridge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__core_bridge_unwraptoken') }}\n\n{% if is_incremental() and 'core_native_bridge' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\npolygon_pos_bridge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__polygon_pos_bridge') }}\n\n{% if is_incremental() and 'polygon_pos_bridge' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nsuperchain_l2_standard_bridge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__superchain_l2_standard_bridge') }}\n\n{% if is_incremental() and 'superchain_l2_standard_bridge' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\naxie_infinity_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__axie_infinity_depositrequested') }}\n\n{% if is_incremental() and 'axie_infinity_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ngaszip_lz AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__gaszip_lz_sentdeposits') }}\n\n{% if is_incremental() and 'gaszip_lz' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nall_protocols AS (\n SELECT\n *\n FROM\n across\n UNION ALL\n SELECT\n *\n FROM\n across_v3\n UNION ALL\n SELECT\n *\n FROM\n allbridge\n UNION ALL\n SELECT \n *\n FROM\n allbridge_v2\n UNION ALL\n SELECT\n *\n FROM\n axelar\n UNION ALL\n SELECT\n *\n FROM\n celer_cbridge\n UNION ALL \n SELECT \n *\n FROM \n ccip\n UNION ALL\n SELECT\n *\n FROM\n cctp\n UNION ALL\n SELECT\n *\n FROM\n cctp_v2\n UNION ALL\n SELECT\n *\n FROM\n dln_debridge\n UNION ALL\n SELECT\n *\n FROM\n everclear\n UNION ALL\n SELECT\n *\n FROM\n eywa\n UNION ALL\n SELECT\n *\n FROM\n hop_l2\n UNION ALL\n SELECT\n *\n FROM\n hop_l1\n UNION ALL\n SELECT\n *\n FROM\n hyperliquid\n UNION ALL\n SELECT\n *\n FROM\n layerzero_v2\n UNION ALL\n SELECT\n *\n FROM\n meson\n UNION ALL\n SELECT\n *\n FROM\n multichain\n UNION ALL\n SELECT\n *\n FROM\n stargate\n UNION ALL\n SELECT\n *\n FROM\n stargate_v2\n UNION ALL\n SELECT\n *\n FROM\n symbiosis\n UNION ALL\n SELECT\n *\n FROM\n synapse_tb\n UNION ALL\n SELECT\n *\n FROM\n synapse_tbs\n UNION ALL\n SELECT\n *\n FROM\n wormhole\n UNION ALL\n SELECT\n *\n FROM\n avalanche_native_v2\n UNION ALL\n SELECT\n *\n FROM\n core_native_bridge\n UNION ALL\n SELECT\n *\n FROM\n polygon_pos_bridge\n UNION ALL\n SELECT\n *\n FROM\n superchain_l2_standard_bridge\n UNION ALL\n SELECT\n *\n FROM\n axie_infinity_v2\n UNION ALL\n SELECT\n *\n FROM\n gaszip_lz\n),\neth_native_bridges AS ( --ethereum specific transfers out only, contracts sourced via seed file\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n NULL AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__ethereum_native_bridges_transfers_out') }}\n WHERE\n tx_hash NOT IN (\n SELECT\n DISTINCT tx_hash\n FROM\n all_protocols\n )\n\n{% if is_incremental() and 'eth_native_bridges' not in vars.CURATED_FR_MODELS %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n\n{% if is_incremental() and 'eth_native_bridges' in vars.CURATED_FR_MODELS %}\nAND tx_hash NOT IN (\n SELECT\n DISTINCT tx_hash\n FROM\n {{ this }}\n WHERE\n type <> 'ethereum_native'\n)\n{% endif %}\n),\nall_bridges AS (\n SELECT\n *\n FROM\n all_protocols\n UNION ALL\n SELECT\n *\n FROM\n eth_native_bridges\n),\ncomplete_bridge_activity AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n platform,\n protocol,\n version,\n type,\n sender,\n receiver,\n destination_chain_receiver,\n CASE\n WHEN destination_chain_id :: STRING IS NULL \n THEN d.chain_id :: STRING\n ELSE destination_chain_id :: STRING\n END AS destination_chain_id,\n CASE\n WHEN destination_chain :: STRING IS NULL \n THEN LOWER(d.chain :: STRING)\n ELSE LOWER(destination_chain :: STRING)\n END AS destination_chain,\n b.token_address,\n CASE\n WHEN platform = 'axelar-v1' THEN COALESCE(\n C.token_symbol,\n b.token_symbol\n )\n ELSE C.token_symbol\n END AS token_symbol,\n C.token_decimals AS token_decimals,\n amount_unadj,\n CASE\n WHEN C.token_decimals IS NOT NULL THEN (amount_unadj / pow(10, C.token_decimals))\n ELSE amount_unadj\n END AS amount,\n CASE\n WHEN C.token_decimals IS NOT NULL THEN ROUND(\n amount * p.price,\n 2\n )\n ELSE NULL\n END AS amount_usd,\n p.is_verified as token_is_verified,\n _id,\n b._inserted_timestamp\n FROM\n all_bridges b\n LEFT JOIN contracts C\n ON b.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON b.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n LEFT JOIN {{ source(\n 'external_gold_defillama',\n 'dim_chains'\n ) }}\n d\n ON d.chain_id :: STRING = b.destination_chain_id :: STRING\n OR LOWER(\n d.chain\n ) = LOWER(\n b.destination_chain\n )\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nheal_model AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n platform,\n protocol,\n version,\n type,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id,\n destination_chain,\n t0.token_address,\n C.token_symbol AS token_symbol,\n C.token_decimals AS token_decimals,\n amount_unadj,\n CASE\n WHEN C.token_decimals IS NOT NULL THEN (amount_unadj / pow(10, C.token_decimals))\n ELSE amount_unadj\n END AS amount_heal,\n CASE\n WHEN C.token_decimals IS NOT NULL THEN amount_heal * p.price\n ELSE NULL\n END AS amount_usd_heal,\n p.is_verified as token_is_verified,\n _id,\n t0._inserted_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN contracts C\n ON t0.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON t0.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t1.block_number,\n '-',\n t1.platform,\n '-',\n t1.version\n )\n FROM\n {{ this }}\n t1\n WHERE\n t1.token_decimals IS NULL\n AND t1._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n contracts C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_decimals IS NOT NULL\n AND C.contract_address = t1.token_address)\n GROUP BY\n 1\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t2.block_number,\n '-',\n t2.platform,\n '-',\n t2.version\n )\n FROM\n {{ this }}\n t2\n WHERE\n t2.amount_usd IS NULL\n AND t2._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n prices\n p\n WHERE\n p._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND p.price IS NOT NULL\n AND p.token_address = t2.token_address\n AND p.hour = DATE_TRUNC(\n 'hour',\n t2.block_timestamp\n )\n )\n GROUP BY\n 1\n )\n OR concat(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN ( \n select concat(\n t3.block_number,\n '-',\n t3.platform,\n '-',\n t3.version\n )\n from {{ this }} t3\n where t3.token_address in (\n select token_address\n from {{ ref('price__ez_asset_metadata') }}\n where ifnull(is_verified_modified_timestamp, '1970-01-01' :: TIMESTAMP) > dateadd('day', -10, SYSDATE())\n )\n )\n ),\n {% endif %}\n\n FINAL AS (\n SELECT\n *\n FROM\n complete_bridge_activity\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n platform,\n protocol,\n version,\n type,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id,\n destination_chain,\n token_address,\n token_symbol,\n token_decimals,\n amount_unadj,\n amount_heal AS amount,\n amount_usd_heal AS amount_usd,\n token_is_verified,\n _id,\n _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n platform,\n protocol,\n version,\n type,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id,\n destination_chain,\n token_address,\n token_symbol,\n token_decimals,\n amount_unadj,\n amount,\n amount_usd,\n ifnull(token_is_verified, false) AS token_is_verified,\n _id,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['_id']\n ) }} AS complete_bridge_activity_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL\nWHERE\n destination_chain <> '{{ vars.GLOBAL_PROJECT_NAME }}' qualify (ROW_NUMBER() over (PARTITION BY _id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "silver_bridge__across_fundsdeposited", "package": null, "version": null}, {"name": "silver_bridge__across_v3fundsdeposited", "package": null, "version": null}, {"name": "silver_bridge__allbridge_sent", "package": null, "version": null}, {"name": "silver_bridge__allbridge_tokens_sent", "package": null, "version": null}, {"name": "silver_bridge__axelar_contractcallwithtoken", "package": null, "version": null}, {"name": "silver_bridge__celer_cbridge_send", "package": null, "version": null}, {"name": "silver_bridge__ccip_send_requested", "package": null, "version": null}, {"name": "silver_bridge__cctp_depositforburn", "package": null, "version": null}, {"name": "silver_bridge__cctp_v2_depositforburn", "package": null, "version": null}, {"name": "silver_bridge__dln_debridge_createdorder", "package": null, "version": null}, {"name": "silver_bridge__everclear", "package": null, "version": null}, {"name": "silver_bridge__eywa_requestsent", "package": null, "version": null}, {"name": "silver_bridge__hop_transfersent", "package": null, "version": null}, {"name": "silver_bridge__hop_transfersenttol2", "package": null, "version": null}, {"name": "silver_bridge__hyperliquid", "package": null, "version": null}, {"name": "silver_bridge__layerzero_v2", "package": null, "version": null}, {"name": "silver_bridge__meson_transfers", "package": null, "version": null}, {"name": "silver_bridge__multichain_v7_loganyswapout", "package": null, "version": null}, {"name": "silver_bridge__stargate_swap", "package": null, "version": null}, {"name": "silver_bridge__stargate_v2", "package": null, "version": null}, {"name": "silver_bridge__symbiosis_synthesizerequest", "package": null, "version": null}, {"name": "silver_bridge__synapse_token_bridge", "package": null, "version": null}, {"name": "silver_bridge__synapse_tokenbridgeandswap", "package": null, "version": null}, {"name": "silver_bridge__wormhole_transfers", "package": null, "version": null}, {"name": "silver_bridge__avalanche_native_v2", "package": null, "version": null}, {"name": "silver_bridge__core_bridge_unwraptoken", "package": null, "version": null}, {"name": "silver_bridge__polygon_pos_bridge", "package": null, "version": null}, {"name": "silver_bridge__superchain_l2_standard_bridge", "package": null, "version": null}, {"name": "silver_bridge__axie_infinity_depositrequested", "package": null, "version": null}, {"name": "silver_bridge__gaszip_lz_sentdeposits", "package": null, "version": null}, {"name": "silver_bridge__ethereum_native_bridges_transfers_out", "package": null, "version": null}], "sources": [["external_gold_defillama", "dim_chains"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.standard_predicate", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.external_gold_defillama.dim_chains", "model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver_bridge__across_fundsdeposited", "model.fsc_evm.silver_bridge__across_v3fundsdeposited", "model.fsc_evm.silver_bridge__allbridge_sent", "model.fsc_evm.silver_bridge__allbridge_tokens_sent", "model.fsc_evm.silver_bridge__axelar_contractcallwithtoken", "model.fsc_evm.silver_bridge__celer_cbridge_send", "model.fsc_evm.silver_bridge__ccip_send_requested", "model.fsc_evm.silver_bridge__cctp_depositforburn", "model.fsc_evm.silver_bridge__cctp_v2_depositforburn", "model.fsc_evm.silver_bridge__dln_debridge_createdorder", "model.fsc_evm.silver_bridge__everclear", "model.fsc_evm.silver_bridge__eywa_requestsent", "model.fsc_evm.silver_bridge__hop_transfersent", "model.fsc_evm.silver_bridge__hop_transfersenttol2", "model.fsc_evm.silver_bridge__hyperliquid", "model.fsc_evm.silver_bridge__layerzero_v2", "model.fsc_evm.silver_bridge__meson_transfers", "model.fsc_evm.silver_bridge__multichain_v7_loganyswapout", "model.fsc_evm.silver_bridge__stargate_swap", "model.fsc_evm.silver_bridge__stargate_v2", "model.fsc_evm.silver_bridge__symbiosis_synthesizerequest", "model.fsc_evm.silver_bridge__synapse_token_bridge", "model.fsc_evm.silver_bridge__synapse_tokenbridgeandswap", "model.fsc_evm.silver_bridge__wormhole_transfers", "model.fsc_evm.silver_bridge__avalanche_native_v2", "model.fsc_evm.silver_bridge__core_bridge_unwraptoken", "model.fsc_evm.silver_bridge__polygon_pos_bridge", "model.fsc_evm.silver_bridge__superchain_l2_standard_bridge", "model.fsc_evm.silver_bridge__axie_infinity_depositrequested", "model.fsc_evm.silver_bridge__gaszip_lz_sentdeposits", "model.fsc_evm.silver_bridge__ethereum_native_bridges_transfers_out"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.sql", "compiled": true, "compiled_code": "-- depends_on: polygon.price.ez_asset_metadata\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\",\n \"platform\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_predicates\": [\n \"polygon.\\n \\n silver_bridge.\\n \\n complete_bridge_activity.block_number \\u003e= (\\n SELECT\\n MIN(\\n block_number\\n )\\n FROM\\n polygon.\\n \\n silver_bridge.\\n \\n complete_bridge_activity__dbt_tmp\\n )\"\n ],\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, bridge_address, sender, receiver, destination_chain_receiver, destination_chain_id, destination_chain, token_address, token_symbol)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\",\n \"heal\",\n \"complete\"\n ],\n \"unique_key\": [\n \"block_number\",\n \"platform\",\n \"version\"\n ]\n}\n*/\n \n/*\nRaw Code:\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform','version'],\n cluster_by = ['block_timestamp::DATE','platform'],\n incremental_predicates = [fsc_evm.standard_predicate()],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, bridge_address, sender, receiver, destination_chain_receiver, destination_chain_id, destination_chain, token_address, token_symbol)\",\n tags = ['silver_bridge','defi','bridge','curated','heal','complete']\n) }}\n\nWITH contracts AS (\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n),\nprices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n),\nacross AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__across_fundsdeposited') }}\n\n{% if is_incremental() and 'across' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nacross_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__across_v3fundsdeposited') }}\n\n{% if is_incremental() and 'across_v3' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nallbridge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n NULL AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__allbridge_sent') }}\n\n{% if is_incremental() and 'allbridge' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nallbridge_v2 AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__allbridge_tokens_sent') }}\n\n{% if is_incremental() and 'allbridge_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naxelar AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n NULL AS destination_chain_id,\n destination_chain,\n token_address,\n token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__axelar_contractcallwithtoken') }}\n\n{% if is_incremental() and 'axelar' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nceler_cbridge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__celer_cbridge_send') }}\n\n{% if is_incremental() and 'celer_cbridge' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nccip AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__ccip_send_requested') }}\n\n {% if is_incremental() and 'ccip' not in vars.CURATED_FR_MODELS %}\n WHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n {% endif %}\n ),\n \n cctp AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__cctp_depositforburn') }}\n\n {% if is_incremental() and 'cctp' not in vars.CURATED_FR_MODELS %}\n WHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n {% endif %}\n ),\n cctp_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__cctp_v2_depositforburn') }}\n\n {% if is_incremental() and 'cctp_v2' not in vars.CURATED_FR_MODELS %}\n WHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n {% endif %}\n ),\ndln_debridge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__dln_debridge_createdorder') }}\n\n{% if is_incremental() and 'dln_debridge' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\neverclear AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol, \n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__everclear') }}\n\n{% if is_incremental() and 'everclear' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\neywa AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__eywa_requestsent') }}\n\n{% if is_incremental() and 'eywa' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nhop_l2 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__hop_transfersent') }}\n\n{% if is_incremental() and 'hop_l2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nhop_l1 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__hop_transfersenttol2') }}\n\n{% if is_incremental() and 'hop_l1' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nhyperliquid AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__hyperliquid') }}\n\n{% if is_incremental() and 'hyperliquid' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nlayerzero_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__layerzero_v2') }}\n\n{% if is_incremental() and 'layerzero_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nmeson AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__meson_transfers') }}\n\n{% if is_incremental() and 'meson' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmultichain AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__multichain_v7_loganyswapout') }}\n\n{% if is_incremental() and 'multichain' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nstargate AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__stargate_swap') }}\n\n{% if is_incremental() and 'stargate' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nstargate_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__stargate_v2') }}\n\n{% if is_incremental() and 'stargate_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nsymbiosis AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__symbiosis_synthesizerequest') }}\n\n{% if is_incremental() and 'symbiosis' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsynapse_tb AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__synapse_token_bridge') }}\n\n{% if is_incremental() and 'synapse_tb' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsynapse_tbs AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__synapse_tokenbridgeandswap') }}\n\n{% if is_incremental() and 'synapse_tbs' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nwormhole AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__wormhole_transfers') }}\n\n{% if is_incremental() and 'wormhole' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\navalanche_native_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__avalanche_native_v2') }}\n\n{% if is_incremental() and 'avalanche_native_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncore_native_bridge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__core_bridge_unwraptoken') }}\n\n{% if is_incremental() and 'core_native_bridge' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\npolygon_pos_bridge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__polygon_pos_bridge') }}\n\n{% if is_incremental() and 'polygon_pos_bridge' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nsuperchain_l2_standard_bridge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__superchain_l2_standard_bridge') }}\n\n{% if is_incremental() and 'superchain_l2_standard_bridge' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\naxie_infinity_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__axie_infinity_depositrequested') }}\n\n{% if is_incremental() and 'axie_infinity_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ngaszip_lz AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__gaszip_lz_sentdeposits') }}\n\n{% if is_incremental() and 'gaszip_lz' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nall_protocols AS (\n SELECT\n *\n FROM\n across\n UNION ALL\n SELECT\n *\n FROM\n across_v3\n UNION ALL\n SELECT\n *\n FROM\n allbridge\n UNION ALL\n SELECT \n *\n FROM\n allbridge_v2\n UNION ALL\n SELECT\n *\n FROM\n axelar\n UNION ALL\n SELECT\n *\n FROM\n celer_cbridge\n UNION ALL \n SELECT \n *\n FROM \n ccip\n UNION ALL\n SELECT\n *\n FROM\n cctp\n UNION ALL\n SELECT\n *\n FROM\n cctp_v2\n UNION ALL\n SELECT\n *\n FROM\n dln_debridge\n UNION ALL\n SELECT\n *\n FROM\n everclear\n UNION ALL\n SELECT\n *\n FROM\n eywa\n UNION ALL\n SELECT\n *\n FROM\n hop_l2\n UNION ALL\n SELECT\n *\n FROM\n hop_l1\n UNION ALL\n SELECT\n *\n FROM\n hyperliquid\n UNION ALL\n SELECT\n *\n FROM\n layerzero_v2\n UNION ALL\n SELECT\n *\n FROM\n meson\n UNION ALL\n SELECT\n *\n FROM\n multichain\n UNION ALL\n SELECT\n *\n FROM\n stargate\n UNION ALL\n SELECT\n *\n FROM\n stargate_v2\n UNION ALL\n SELECT\n *\n FROM\n symbiosis\n UNION ALL\n SELECT\n *\n FROM\n synapse_tb\n UNION ALL\n SELECT\n *\n FROM\n synapse_tbs\n UNION ALL\n SELECT\n *\n FROM\n wormhole\n UNION ALL\n SELECT\n *\n FROM\n avalanche_native_v2\n UNION ALL\n SELECT\n *\n FROM\n core_native_bridge\n UNION ALL\n SELECT\n *\n FROM\n polygon_pos_bridge\n UNION ALL\n SELECT\n *\n FROM\n superchain_l2_standard_bridge\n UNION ALL\n SELECT\n *\n FROM\n axie_infinity_v2\n UNION ALL\n SELECT\n *\n FROM\n gaszip_lz\n),\neth_native_bridges AS ( --ethereum specific transfers out only, contracts sourced via seed file\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n NULL AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_bridge__ethereum_native_bridges_transfers_out') }}\n WHERE\n tx_hash NOT IN (\n SELECT\n DISTINCT tx_hash\n FROM\n all_protocols\n )\n\n{% if is_incremental() and 'eth_native_bridges' not in vars.CURATED_FR_MODELS %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n\n{% if is_incremental() and 'eth_native_bridges' in vars.CURATED_FR_MODELS %}\nAND tx_hash NOT IN (\n SELECT\n DISTINCT tx_hash\n FROM\n {{ this }}\n WHERE\n type <> 'ethereum_native'\n)\n{% endif %}\n),\nall_bridges AS (\n SELECT\n *\n FROM\n all_protocols\n UNION ALL\n SELECT\n *\n FROM\n eth_native_bridges\n),\ncomplete_bridge_activity AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n platform,\n protocol,\n version,\n type,\n sender,\n receiver,\n destination_chain_receiver,\n CASE\n WHEN destination_chain_id :: STRING IS NULL \n THEN d.chain_id :: STRING\n ELSE destination_chain_id :: STRING\n END AS destination_chain_id,\n CASE\n WHEN destination_chain :: STRING IS NULL \n THEN LOWER(d.chain :: STRING)\n ELSE LOWER(destination_chain :: STRING)\n END AS destination_chain,\n b.token_address,\n CASE\n WHEN platform = 'axelar-v1' THEN COALESCE(\n C.token_symbol,\n b.token_symbol\n )\n ELSE C.token_symbol\n END AS token_symbol,\n C.token_decimals AS token_decimals,\n amount_unadj,\n CASE\n WHEN C.token_decimals IS NOT NULL THEN (amount_unadj / pow(10, C.token_decimals))\n ELSE amount_unadj\n END AS amount,\n CASE\n WHEN C.token_decimals IS NOT NULL THEN ROUND(\n amount * p.price,\n 2\n )\n ELSE NULL\n END AS amount_usd,\n p.is_verified as token_is_verified,\n _id,\n b._inserted_timestamp\n FROM\n all_bridges b\n LEFT JOIN contracts C\n ON b.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON b.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n LEFT JOIN {{ source(\n 'external_gold_defillama',\n 'dim_chains'\n ) }}\n d\n ON d.chain_id :: STRING = b.destination_chain_id :: STRING\n OR LOWER(\n d.chain\n ) = LOWER(\n b.destination_chain\n )\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nheal_model AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n platform,\n protocol,\n version,\n type,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id,\n destination_chain,\n t0.token_address,\n C.token_symbol AS token_symbol,\n C.token_decimals AS token_decimals,\n amount_unadj,\n CASE\n WHEN C.token_decimals IS NOT NULL THEN (amount_unadj / pow(10, C.token_decimals))\n ELSE amount_unadj\n END AS amount_heal,\n CASE\n WHEN C.token_decimals IS NOT NULL THEN amount_heal * p.price\n ELSE NULL\n END AS amount_usd_heal,\n p.is_verified as token_is_verified,\n _id,\n t0._inserted_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN contracts C\n ON t0.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON t0.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t1.block_number,\n '-',\n t1.platform,\n '-',\n t1.version\n )\n FROM\n {{ this }}\n t1\n WHERE\n t1.token_decimals IS NULL\n AND t1._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n contracts C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_decimals IS NOT NULL\n AND C.contract_address = t1.token_address)\n GROUP BY\n 1\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t2.block_number,\n '-',\n t2.platform,\n '-',\n t2.version\n )\n FROM\n {{ this }}\n t2\n WHERE\n t2.amount_usd IS NULL\n AND t2._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n prices\n p\n WHERE\n p._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND p.price IS NOT NULL\n AND p.token_address = t2.token_address\n AND p.hour = DATE_TRUNC(\n 'hour',\n t2.block_timestamp\n )\n )\n GROUP BY\n 1\n )\n OR concat(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN ( \n select concat(\n t3.block_number,\n '-',\n t3.platform,\n '-',\n t3.version\n )\n from {{ this }} t3\n where t3.token_address in (\n select token_address\n from {{ ref('price__ez_asset_metadata') }}\n where ifnull(is_verified_modified_timestamp, '1970-01-01' :: TIMESTAMP) > dateadd('day', -10, SYSDATE())\n )\n )\n ),\n {% endif %}\n\n FINAL AS (\n SELECT\n *\n FROM\n complete_bridge_activity\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n platform,\n protocol,\n version,\n type,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id,\n destination_chain,\n token_address,\n token_symbol,\n token_decimals,\n amount_unadj,\n amount_heal AS amount,\n amount_usd_heal AS amount_usd,\n token_is_verified,\n _id,\n _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n platform,\n protocol,\n version,\n type,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id,\n destination_chain,\n token_address,\n token_symbol,\n token_decimals,\n amount_unadj,\n amount,\n amount_usd,\n ifnull(token_is_verified, false) AS token_is_verified,\n _id,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['_id']\n ) }} AS complete_bridge_activity_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL\nWHERE\n destination_chain <> '{{ vars.GLOBAL_PROJECT_NAME }}' qualify (ROW_NUMBER() over (PARTITION BY _id\nORDER BY\n _inserted_timestamp DESC)) = 1\n*/\n\n\n\nWITH contracts AS (\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n),\nprices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.price.ez_prices_hourly\n),\nacross AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.across_fundsdeposited\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\nacross_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.across_v3fundsdeposited\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\nallbridge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n NULL AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.allbridge_sent\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\nallbridge_v2 AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.allbridge_tokens_sent\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\naxelar AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n NULL AS destination_chain_id,\n destination_chain,\n token_address,\n token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.axelar_contractcallwithtoken\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\nceler_cbridge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.celer_cbridge_send\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\nccip AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.ccip_send_requested\n\n \n WHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n \n ),\n \n cctp AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.cctp_depositforburn\n\n \n WHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n \n ),\n cctp_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.cctp_v2_depositforburn\n\n \n WHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n \n ),\ndln_debridge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.dln_debridge_createdorder\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\n\neverclear AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol, \n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.everclear\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\n\neywa AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.eywa_requestsent\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\nhop_l2 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.hop_transfersent\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\nhop_l1 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.hop_transfersenttol2\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\n\nhyperliquid AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.hyperliquid\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\n\nlayerzero_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.layerzero_v2\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\n\nmeson AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.meson_transfers\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\nmultichain AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.multichain_v7_loganyswapout\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\nstargate AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.stargate_swap\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\n\nstargate_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.stargate_v2\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\n\nsymbiosis AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.symbiosis_synthesizerequest\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\nsynapse_tb AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.synapse_token_bridge\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\nsynapse_tbs AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.synapse_tokenbridgeandswap\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\nwormhole AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.wormhole_transfers\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\navalanche_native_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.avalanche_native_v2\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\ncore_native_bridge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.core_bridge_unwraptoken\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\n\npolygon_pos_bridge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.polygon_pos_bridge\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\n\nsuperchain_l2_standard_bridge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.superchain_l2_standard_bridge\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\n\naxie_infinity_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n NULL AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount AS amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.axie_infinity_depositrequested\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\ngaszip_lz AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.gaszip_lz_sentdeposits\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT \n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n )\n\n),\nall_protocols AS (\n SELECT\n *\n FROM\n across\n UNION ALL\n SELECT\n *\n FROM\n across_v3\n UNION ALL\n SELECT\n *\n FROM\n allbridge\n UNION ALL\n SELECT \n *\n FROM\n allbridge_v2\n UNION ALL\n SELECT\n *\n FROM\n axelar\n UNION ALL\n SELECT\n *\n FROM\n celer_cbridge\n UNION ALL \n SELECT \n *\n FROM \n ccip\n UNION ALL\n SELECT\n *\n FROM\n cctp\n UNION ALL\n SELECT\n *\n FROM\n cctp_v2\n UNION ALL\n SELECT\n *\n FROM\n dln_debridge\n UNION ALL\n SELECT\n *\n FROM\n everclear\n UNION ALL\n SELECT\n *\n FROM\n eywa\n UNION ALL\n SELECT\n *\n FROM\n hop_l2\n UNION ALL\n SELECT\n *\n FROM\n hop_l1\n UNION ALL\n SELECT\n *\n FROM\n hyperliquid\n UNION ALL\n SELECT\n *\n FROM\n layerzero_v2\n UNION ALL\n SELECT\n *\n FROM\n meson\n UNION ALL\n SELECT\n *\n FROM\n multichain\n UNION ALL\n SELECT\n *\n FROM\n stargate\n UNION ALL\n SELECT\n *\n FROM\n stargate_v2\n UNION ALL\n SELECT\n *\n FROM\n symbiosis\n UNION ALL\n SELECT\n *\n FROM\n synapse_tb\n UNION ALL\n SELECT\n *\n FROM\n synapse_tbs\n UNION ALL\n SELECT\n *\n FROM\n wormhole\n UNION ALL\n SELECT\n *\n FROM\n avalanche_native_v2\n UNION ALL\n SELECT\n *\n FROM\n core_native_bridge\n UNION ALL\n SELECT\n *\n FROM\n polygon_pos_bridge\n UNION ALL\n SELECT\n *\n FROM\n superchain_l2_standard_bridge\n UNION ALL\n SELECT\n *\n FROM\n axie_infinity_v2\n UNION ALL\n SELECT\n *\n FROM\n gaszip_lz\n),\neth_native_bridges AS ( --ethereum specific transfers out only, contracts sourced via seed file\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n sender,\n receiver,\n destination_chain_receiver,\n NULL AS destination_chain_id,\n destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_unadj,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_bridge.ethereum_native_bridges_transfers_out\n WHERE\n tx_hash NOT IN (\n SELECT\n DISTINCT tx_hash\n FROM\n all_protocols\n )\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_bridge.complete_bridge_activity\n)\n\n\n\n),\nall_bridges AS (\n SELECT\n *\n FROM\n all_protocols\n UNION ALL\n SELECT\n *\n FROM\n eth_native_bridges\n),\ncomplete_bridge_activity AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n platform,\n protocol,\n version,\n type,\n sender,\n receiver,\n destination_chain_receiver,\n CASE\n WHEN destination_chain_id :: STRING IS NULL \n THEN d.chain_id :: STRING\n ELSE destination_chain_id :: STRING\n END AS destination_chain_id,\n CASE\n WHEN destination_chain :: STRING IS NULL \n THEN LOWER(d.chain :: STRING)\n ELSE LOWER(destination_chain :: STRING)\n END AS destination_chain,\n b.token_address,\n CASE\n WHEN platform = 'axelar-v1' THEN COALESCE(\n C.token_symbol,\n b.token_symbol\n )\n ELSE C.token_symbol\n END AS token_symbol,\n C.token_decimals AS token_decimals,\n amount_unadj,\n CASE\n WHEN C.token_decimals IS NOT NULL THEN (amount_unadj / pow(10, C.token_decimals))\n ELSE amount_unadj\n END AS amount,\n CASE\n WHEN C.token_decimals IS NOT NULL THEN ROUND(\n amount * p.price,\n 2\n )\n ELSE NULL\n END AS amount_usd,\n p.is_verified as token_is_verified,\n _id,\n b._inserted_timestamp\n FROM\n all_bridges b\n LEFT JOIN contracts C\n ON b.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON b.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n LEFT JOIN external.defillama.dim_chains\n d\n ON d.chain_id :: STRING = b.destination_chain_id :: STRING\n OR LOWER(\n d.chain\n ) = LOWER(\n b.destination_chain\n )\n),\n\n\n\n FINAL AS (\n SELECT\n *\n FROM\n complete_bridge_activity\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n platform,\n protocol,\n version,\n type,\n sender,\n receiver,\n destination_chain_receiver,\n destination_chain_id,\n destination_chain,\n token_address,\n token_symbol,\n token_decimals,\n amount_unadj,\n amount,\n amount_usd,\n ifnull(token_is_verified, false) AS token_is_verified,\n _id,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_bridge_activity_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n FINAL\nWHERE\n destination_chain <> 'polygon' qualify (ROW_NUMBER() over (PARTITION BY _id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__across_v3fundsdeposited": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__across_v3fundsdeposited", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/across/silver_bridge__across_v3fundsdeposited.sql", "original_file_path": "models/curated_package/defi/bridge/silver/across/silver_bridge__across_v3fundsdeposited.sql", "unique_id": "model.fsc_evm.silver_bridge__across_v3fundsdeposited", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "across", "silver_bridge__across_v3fundsdeposited"], "alias": "across_v3fundsdeposited", "checksum": {"name": "sha256", "checksum": "cc3db26db192de8767b5d61054441625a731370d3ed3d0d5ccd8a2cedc06c49c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018345.3642924, "relation_name": "polygon.silver_bridge.across_v3fundsdeposited", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'across'\n AND version = 'v3'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topic_0,\n CASE\n WHEN topic_0 = '0x32ed1a409ef04c7b0227189c3a103dc5ac10e775a15b785dcc510201f7c25ad3' THEN 'FundsDeposited'\n WHEN topic_0 = '0xa123dc29aebf7d0c3322c8eeb5b999e859f39937950ed31056532713d0de396f' THEN 'V3FundsDeposited'\n END AS event_name,\n topics,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n topics [1] :: STRING\n )\n ) AS destinationChainId,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n topics [2] :: STRING\n )\n ) AS depositId,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS depositor,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS inputToken,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS outputToken,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS inputAmount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS outputAmount,\n TRY_TO_TIMESTAMP(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n ) AS quoteTimestamp,\n TRY_TO_TIMESTAMP(\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n )\n ) AS fillDeadline,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [6] :: STRING\n )\n ) AS exclusivityDeadline,\n CONCAT('0x', SUBSTR(segmented_data [7] :: STRING, 25, 40)) AS recipient,\n CONCAT('0x', SUBSTR(segmented_data [8] :: STRING, 25, 40)) AS exclusiveRelayer,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [9] :: STRING\n )\n ) AS relayerFeePct,\n segmented_data [10] :: STRING AS message,\n event_removed,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 IN (\n '0x32ed1a409ef04c7b0227189c3a103dc5ac10e775a15b785dcc510201f7c25ad3',\n '0xa123dc29aebf7d0c3322c8eeb5b999e859f39937950ed31056532713d0de396f'\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n contract_address AS bridge_address,\n depositor AS sender,\n recipient AS receiver,\n recipient AS destination_chain_receiver,\n destinationChainId AS destination_chain_id,\n inputAmount AS amount,\n inputToken AS token_address,\n depositId AS deposit_id,\n message,\n quoteTimestamp AS quote_timestamp,\n relayerFeePct AS relayer_fee_pct,\n exclusiveRelayer AS exclusive_relayer,\n exclusivityDeadline AS exclusivity_deadline,\n fillDeadline AS fill_deadline,\n outputAmount AS output_amount,\n outputToken AS output_token,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/across/silver_bridge__across_v3fundsdeposited.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'across'\n AND version = 'v3'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topic_0,\n CASE\n WHEN topic_0 = '0x32ed1a409ef04c7b0227189c3a103dc5ac10e775a15b785dcc510201f7c25ad3' THEN 'FundsDeposited'\n WHEN topic_0 = '0xa123dc29aebf7d0c3322c8eeb5b999e859f39937950ed31056532713d0de396f' THEN 'V3FundsDeposited'\n END AS event_name,\n topics,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n topics [1] :: STRING\n )\n ) AS destinationChainId,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n topics [2] :: STRING\n )\n ) AS depositId,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS depositor,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS inputToken,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS outputToken,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS inputAmount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS outputAmount,\n TRY_TO_TIMESTAMP(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n ) AS quoteTimestamp,\n TRY_TO_TIMESTAMP(\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n )\n ) AS fillDeadline,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [6] :: STRING\n )\n ) AS exclusivityDeadline,\n CONCAT('0x', SUBSTR(segmented_data [7] :: STRING, 25, 40)) AS recipient,\n CONCAT('0x', SUBSTR(segmented_data [8] :: STRING, 25, 40)) AS exclusiveRelayer,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [9] :: STRING\n )\n ) AS relayerFeePct,\n segmented_data [10] :: STRING AS message,\n event_removed,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 IN (\n '0x32ed1a409ef04c7b0227189c3a103dc5ac10e775a15b785dcc510201f7c25ad3',\n '0xa123dc29aebf7d0c3322c8eeb5b999e859f39937950ed31056532713d0de396f'\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n contract_address AS bridge_address,\n depositor AS sender,\n recipient AS receiver,\n recipient AS destination_chain_receiver,\n destinationChainId AS destination_chain_id,\n inputAmount AS amount,\n inputToken AS token_address,\n depositId AS deposit_id,\n message,\n quoteTimestamp AS quote_timestamp,\n relayerFeePct AS relayer_fee_pct,\n exclusiveRelayer AS exclusive_relayer,\n exclusivityDeadline AS exclusivity_deadline,\n fillDeadline AS fill_deadline,\n outputAmount AS output_amount,\n outputToken AS output_token,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'across'\n AND version = 'v3'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topic_0,\n CASE\n WHEN topic_0 = '0x32ed1a409ef04c7b0227189c3a103dc5ac10e775a15b785dcc510201f7c25ad3' THEN 'FundsDeposited'\n WHEN topic_0 = '0xa123dc29aebf7d0c3322c8eeb5b999e859f39937950ed31056532713d0de396f' THEN 'V3FundsDeposited'\n END AS event_name,\n topics,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n topics [1] :: STRING\n )\n ) AS destinationChainId,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n topics [2] :: STRING\n )\n ) AS depositId,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS depositor,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS inputToken,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS outputToken,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS inputAmount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS outputAmount,\n TRY_TO_TIMESTAMP(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n ) AS quoteTimestamp,\n TRY_TO_TIMESTAMP(\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n )\n ) AS fillDeadline,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [6] :: STRING\n )\n ) AS exclusivityDeadline,\n CONCAT('0x', SUBSTR(segmented_data [7] :: STRING, 25, 40)) AS recipient,\n CONCAT('0x', SUBSTR(segmented_data [8] :: STRING, 25, 40)) AS exclusiveRelayer,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [9] :: STRING\n )\n ) AS relayerFeePct,\n segmented_data [10] :: STRING AS message,\n event_removed,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 IN (\n '0x32ed1a409ef04c7b0227189c3a103dc5ac10e775a15b785dcc510201f7c25ad3',\n '0xa123dc29aebf7d0c3322c8eeb5b999e859f39937950ed31056532713d0de396f'\n )\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.across_v3fundsdeposited\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n contract_address AS bridge_address,\n depositor AS sender,\n recipient AS receiver,\n recipient AS destination_chain_receiver,\n destinationChainId AS destination_chain_id,\n inputAmount AS amount,\n inputToken AS token_address,\n depositId AS deposit_id,\n message,\n quoteTimestamp AS quote_timestamp,\n relayerFeePct AS relayer_fee_pct,\n exclusiveRelayer AS exclusive_relayer,\n exclusivityDeadline AS exclusivity_deadline,\n fillDeadline AS fill_deadline,\n outputAmount AS output_amount,\n outputToken AS output_token,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__across_fundsdeposited": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__across_fundsdeposited", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/across/silver_bridge__across_fundsdeposited.sql", "original_file_path": "models/curated_package/defi/bridge/silver/across/silver_bridge__across_fundsdeposited.sql", "unique_id": "model.fsc_evm.silver_bridge__across_fundsdeposited", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "across", "silver_bridge__across_fundsdeposited"], "alias": "across_fundsdeposited", "checksum": {"name": "sha256", "checksum": "a120076a584e5b8cdb6a56727bb28de69fbeab0b920e284cc271b7965033a8fb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018345.689575, "relation_name": "polygon.silver_bridge.across_fundsdeposited", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'across'\n AND version = 'v1'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"depositId\" :: STRING\n ) AS depositId,\n decoded_log :\"depositor\" :: STRING AS depositor,\n TRY_TO_NUMBER(\n decoded_log :\"destinationChainId\" :: STRING\n ) AS destinationChainId,\n decoded_log :\"message\" :: STRING AS message,\n TRY_TO_NUMBER(\n decoded_log :\"originChainId\" :: STRING\n ) AS originChainId,\n decoded_log :\"originToken\" :: STRING AS originToken,\n TRY_TO_TIMESTAMP(\n decoded_log :\"quoteTimestamp\" :: STRING\n ) AS quoteTimestamp,\n decoded_log :\"recipient\" :: STRING AS recipient,\n TRY_TO_NUMBER(\n decoded_log :\"relayerFeePct\" :: STRING\n ) AS relayerFeePct,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xafc4df6845a4ab948b492800d3d8a25d538a102a2bc07cd01f1cfa097fddcff6'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n depositor AS sender,\n recipient AS receiver,\n recipient AS destination_chain_receiver,\n destinationChainId AS destination_chain_id,\n amount,\n depositId AS deposit_id,\n message,\n originChainId AS origin_chain_id,\n originToken AS token_address,\n quoteTimestamp AS quote_timestamp,\n relayerFeePct AS relayer_fee_pct,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/across/silver_bridge__across_fundsdeposited.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'across'\n AND version = 'v1'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"depositId\" :: STRING\n ) AS depositId,\n decoded_log :\"depositor\" :: STRING AS depositor,\n TRY_TO_NUMBER(\n decoded_log :\"destinationChainId\" :: STRING\n ) AS destinationChainId,\n decoded_log :\"message\" :: STRING AS message,\n TRY_TO_NUMBER(\n decoded_log :\"originChainId\" :: STRING\n ) AS originChainId,\n decoded_log :\"originToken\" :: STRING AS originToken,\n TRY_TO_TIMESTAMP(\n decoded_log :\"quoteTimestamp\" :: STRING\n ) AS quoteTimestamp,\n decoded_log :\"recipient\" :: STRING AS recipient,\n TRY_TO_NUMBER(\n decoded_log :\"relayerFeePct\" :: STRING\n ) AS relayerFeePct,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xafc4df6845a4ab948b492800d3d8a25d538a102a2bc07cd01f1cfa097fddcff6'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n depositor AS sender,\n recipient AS receiver,\n recipient AS destination_chain_receiver,\n destinationChainId AS destination_chain_id,\n amount,\n depositId AS deposit_id,\n message,\n originChainId AS origin_chain_id,\n originToken AS token_address,\n quoteTimestamp AS quote_timestamp,\n relayerFeePct AS relayer_fee_pct,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'across'\n AND version = 'v1'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"depositId\" :: STRING\n ) AS depositId,\n decoded_log :\"depositor\" :: STRING AS depositor,\n TRY_TO_NUMBER(\n decoded_log :\"destinationChainId\" :: STRING\n ) AS destinationChainId,\n decoded_log :\"message\" :: STRING AS message,\n TRY_TO_NUMBER(\n decoded_log :\"originChainId\" :: STRING\n ) AS originChainId,\n decoded_log :\"originToken\" :: STRING AS originToken,\n TRY_TO_TIMESTAMP(\n decoded_log :\"quoteTimestamp\" :: STRING\n ) AS quoteTimestamp,\n decoded_log :\"recipient\" :: STRING AS recipient,\n TRY_TO_NUMBER(\n decoded_log :\"relayerFeePct\" :: STRING\n ) AS relayerFeePct,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xafc4df6845a4ab948b492800d3d8a25d538a102a2bc07cd01f1cfa097fddcff6'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.across_fundsdeposited\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n depositor AS sender,\n recipient AS receiver,\n recipient AS destination_chain_receiver,\n destinationChainId AS destination_chain_id,\n amount,\n depositId AS deposit_id,\n message,\n originChainId AS origin_chain_id,\n originToken AS token_address,\n quoteTimestamp AS quote_timestamp,\n relayerFeePct AS relayer_fee_pct,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__synapse_tokenbridgeandswap": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__synapse_tokenbridgeandswap", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/synapse/silver_bridge__synapse_tokenbridgeandswap.sql", "original_file_path": "models/curated_package/defi/bridge/silver/synapse/silver_bridge__synapse_tokenbridgeandswap.sql", "unique_id": "model.fsc_evm.silver_bridge__synapse_tokenbridgeandswap", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "synapse", "silver_bridge__synapse_tokenbridgeandswap"], "alias": "synapse_tokenbridgeandswap", "checksum": {"name": "sha256", "checksum": "fa431cc05b62fab29a59c841fa293509919e448bf78fe0a62f8fc48372251a39"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018346.0091066, "relation_name": "polygon.silver_bridge.synapse_tokenbridgeandswap", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'synapse'\n AND version = 'v1'\n AND type = 'token_bridge_swap'\n), \nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"chainId\" :: STRING\n ) AS chainId,\n TRY_TO_TIMESTAMP(\n decoded_log :\"deadline\" :: STRING\n ) AS deadline,\n TRY_TO_NUMBER(\n decoded_log :\"minDy\" :: STRING\n ) AS minDy,\n decoded_log :\"to\" :: STRING AS to_address,\n decoded_log :\"token\" :: STRING AS token,\n TRY_TO_NUMBER(\n decoded_log :\"tokenIndexFrom\" :: STRING\n ) AS tokenIndexFrom,\n TRY_TO_NUMBER(\n decoded_log :\"tokenIndexTo\" :: STRING\n ) AS tokenIndexTo,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }} \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING IN (\n '0x91f25e9be0134ec851830e0e76dc71e06f9dade75a9b84e9524071dbbc319425',\n --redeemandswap\n '0x79c15604b92ef54d3f61f0c40caab8857927ca3d5092367163b4562c1699eb5f' --depositandswap\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n origin_from_address AS sender,\n to_address AS receiver,\n receiver AS destination_chain_receiver,\n amount,\n chainId AS destination_chain_id,\n token AS token_address,\n deadline,\n minDy AS min_dy,\n tokenIndexFrom AS token_index_from,\n tokenIndexTo AS token_index_to,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/synapse/silver_bridge__synapse_tokenbridgeandswap.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'synapse'\n AND version = 'v1'\n AND type = 'token_bridge_swap'\n), \nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"chainId\" :: STRING\n ) AS chainId,\n TRY_TO_TIMESTAMP(\n decoded_log :\"deadline\" :: STRING\n ) AS deadline,\n TRY_TO_NUMBER(\n decoded_log :\"minDy\" :: STRING\n ) AS minDy,\n decoded_log :\"to\" :: STRING AS to_address,\n decoded_log :\"token\" :: STRING AS token,\n TRY_TO_NUMBER(\n decoded_log :\"tokenIndexFrom\" :: STRING\n ) AS tokenIndexFrom,\n TRY_TO_NUMBER(\n decoded_log :\"tokenIndexTo\" :: STRING\n ) AS tokenIndexTo,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }} \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING IN (\n '0x91f25e9be0134ec851830e0e76dc71e06f9dade75a9b84e9524071dbbc319425',\n --redeemandswap\n '0x79c15604b92ef54d3f61f0c40caab8857927ca3d5092367163b4562c1699eb5f' --depositandswap\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n origin_from_address AS sender,\n to_address AS receiver,\n receiver AS destination_chain_receiver,\n amount,\n chainId AS destination_chain_id,\n token AS token_address,\n deadline,\n minDy AS min_dy,\n tokenIndexFrom AS token_index_from,\n tokenIndexTo AS token_index_to,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'synapse'\n AND version = 'v1'\n AND type = 'token_bridge_swap'\n), \nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"chainId\" :: STRING\n ) AS chainId,\n TRY_TO_TIMESTAMP(\n decoded_log :\"deadline\" :: STRING\n ) AS deadline,\n TRY_TO_NUMBER(\n decoded_log :\"minDy\" :: STRING\n ) AS minDy,\n decoded_log :\"to\" :: STRING AS to_address,\n decoded_log :\"token\" :: STRING AS token,\n TRY_TO_NUMBER(\n decoded_log :\"tokenIndexFrom\" :: STRING\n ) AS tokenIndexFrom,\n TRY_TO_NUMBER(\n decoded_log :\"tokenIndexTo\" :: STRING\n ) AS tokenIndexTo,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING IN (\n '0x91f25e9be0134ec851830e0e76dc71e06f9dade75a9b84e9524071dbbc319425',\n --redeemandswap\n '0x79c15604b92ef54d3f61f0c40caab8857927ca3d5092367163b4562c1699eb5f' --depositandswap\n )\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.synapse_tokenbridgeandswap\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n origin_from_address AS sender,\n to_address AS receiver,\n receiver AS destination_chain_receiver,\n amount,\n chainId AS destination_chain_id,\n token AS token_address,\n deadline,\n minDy AS min_dy,\n tokenIndexFrom AS token_index_from,\n tokenIndexTo AS token_index_to,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__synapse_token_bridge": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__synapse_token_bridge", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/synapse/silver_bridge__synapse_token_bridge.sql", "original_file_path": "models/curated_package/defi/bridge/silver/synapse/silver_bridge__synapse_token_bridge.sql", "unique_id": "model.fsc_evm.silver_bridge__synapse_token_bridge", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "synapse", "silver_bridge__synapse_token_bridge"], "alias": "synapse_token_bridge", "checksum": {"name": "sha256", "checksum": "5c737d61c9fbbf89c7b9e81ed4789c58a3a993625d101561a4699f26486b751b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018346.3280065, "relation_name": "polygon.silver_bridge.synapse_token_bridge", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'synapse'\n AND version = 'v1'\n AND type = 'token_bridge'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"chainId\" :: STRING\n ) AS chainId,\n decoded_log :\"to\" :: STRING AS to_address,\n decoded_log :\"token\" :: STRING AS token,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }} \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING IN (\n '0xdc5bad4651c5fbe9977a696aadc65996c468cde1448dd468ec0d83bf61c4b57c',\n --redeem\n '0xda5273705dbef4bf1b902a131c2eac086b7e1476a8ab0cb4da08af1fe1bd8e3b' --deposit\n )\n AND origin_to_address IS NOT NULL\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n amount,\n origin_from_address AS sender,\n to_address AS receiver,\n receiver AS destination_chain_receiver,\n chainId AS destination_chain_id,\n token AS token_address,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/synapse/silver_bridge__synapse_token_bridge.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'synapse'\n AND version = 'v1'\n AND type = 'token_bridge'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"chainId\" :: STRING\n ) AS chainId,\n decoded_log :\"to\" :: STRING AS to_address,\n decoded_log :\"token\" :: STRING AS token,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }} \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING IN (\n '0xdc5bad4651c5fbe9977a696aadc65996c468cde1448dd468ec0d83bf61c4b57c',\n --redeem\n '0xda5273705dbef4bf1b902a131c2eac086b7e1476a8ab0cb4da08af1fe1bd8e3b' --deposit\n )\n AND origin_to_address IS NOT NULL\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n amount,\n origin_from_address AS sender,\n to_address AS receiver,\n receiver AS destination_chain_receiver,\n chainId AS destination_chain_id,\n token AS token_address,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'synapse'\n AND version = 'v1'\n AND type = 'token_bridge'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"chainId\" :: STRING\n ) AS chainId,\n decoded_log :\"to\" :: STRING AS to_address,\n decoded_log :\"token\" :: STRING AS token,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING IN (\n '0xdc5bad4651c5fbe9977a696aadc65996c468cde1448dd468ec0d83bf61c4b57c',\n --redeem\n '0xda5273705dbef4bf1b902a131c2eac086b7e1476a8ab0cb4da08af1fe1bd8e3b' --deposit\n )\n AND origin_to_address IS NOT NULL\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.synapse_token_bridge\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n amount,\n origin_from_address AS sender,\n to_address AS receiver,\n receiver AS destination_chain_receiver,\n chainId AS destination_chain_id,\n token AS token_address,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__meson_transfers": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__meson_transfers", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/meson/silver_bridge__meson_transfers.sql", "original_file_path": "models/curated_package/defi/bridge/silver/meson/silver_bridge__meson_transfers.sql", "unique_id": "model.fsc_evm.silver_bridge__meson_transfers", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "meson", "silver_bridge__meson_transfers"], "alias": "meson_transfers", "checksum": {"name": "sha256", "checksum": "316fba8bef47633600f68e7b641fa796020c7f9d7f774fd2caf7fca050f8195e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018346.6504188, "relation_name": "polygon.silver_bridge.meson_transfers", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'meson'\n),\ntoken_transfers AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n t.contract_address,\n from_address,\n to_address,\n raw_amount,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_token_transfers') }} t\n INNER JOIN contract_mapping m\n ON t.to_address = m.contract_address\n WHERE\n from_address <> '0x0000000000000000000000000000000000000000'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nnative_transfers AS (\n SELECT\n et.block_number,\n et.block_timestamp,\n et.tx_hash,\n tx.from_address AS origin_from_address,\n tx.to_address AS origin_to_address,\n tx.origin_function_signature,\n et.from_address,\n et.to_address,\n amount_precise_raw,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n et.ez_native_transfers_id AS _call_id,\n et.modified_timestamp\n FROM\n {{ ref('core__ez_native_transfers') }}\n et\n INNER JOIN {{ ref('core__fact_transactions') }}\n tx\n ON et.block_number = tx.block_number\n AND et.tx_hash = tx.tx_hash\n INNER JOIN contract_mapping m\n ON et.to_address = m.contract_address\n\n{% if is_incremental() %}\nAND et.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\nall_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'Transfer' AS event_name,\n to_address AS bridge_address,\n from_address AS sender,\n to_address AS receiver,\n raw_amount AS amount_unadj,\n contract_address AS token_address,\n protocol,\n version,\n type,\n platform,\n {{ dbt_utils.generate_surrogate_key(\n ['_log_id']\n ) }} AS _id,\n modified_timestamp\n FROM\n token_transfers\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n NULL AS event_index,\n NULL AS event_name,\n to_address AS bridge_address,\n from_address AS sender,\n to_address AS receiver,\n amount_precise_raw AS amount_unadj,\n '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}' AS token_address,\n protocol,\n version,\n type,\n platform,\n {{ dbt_utils.generate_surrogate_key(\n ['_call_id']\n ) }} AS _id,\n modified_timestamp\n FROM\n native_transfers\n),\ndst_info AS (\n SELECT\n block_number,\n tx_hash,\n topics [1] :: STRING AS encoded_data,\n SUBSTR(RIGHT(encoded_data, 12), 1, 4) AS destination_chain_id,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }} l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING IN ('0x5ce4019f772fda6cb703b26bce3ec3006eb36b73f1d3a0eb441213317d9f5e9d',\n '0x8d92c805c252261fcfff21ee60740eb8a38922469a7e6ee396976d57c22fc1c9')\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '16 hours'\n FROM\n {{ this }}\n)\n{% endif %}\n)\nSELECT\n t.block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t.tx_hash,\n event_index,\n event_name,\n bridge_address,\n sender,\n receiver,\n CASE \n WHEN origin_from_address = '0x0000000000000000000000000000000000000000' THEN sender\n ELSE origin_from_address\n END AS destination_chain_receiver,\n amount_unadj,\n destination_chain_id,\n LOWER(chain) AS destination_chain,\n token_address,\n t.protocol,\n t.version,\n t.type,\n t.platform,\n _id,\n t.modified_timestamp\nFROM\n all_transfers t\n INNER JOIN dst_info d\n ON t.tx_hash = d.tx_hash\n AND t.block_number = d.block_number\n LEFT JOIN {{ ref('silver_bridge__meson_chain_id_seed') }}\n s\n ON d.destination_chain_id :: STRING = RIGHT(\n s.short_coin_type,\n 4\n ) :: STRING\nWHERE\n origin_to_address IS NOT NULL qualify (ROW_NUMBER() over (PARTITION BY _id\nORDER BY\n t.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__ez_token_transfers", "package": null, "version": null}, {"name": "core__ez_native_transfers", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_bridge__meson_chain_id_seed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_token_transfers", "model.fsc_evm.core__ez_native_transfers", "model.fsc_evm.core__fact_transactions", "model.fsc_evm.core__fact_event_logs", "seed.fsc_evm.silver_bridge__meson_chain_id_seed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/meson/silver_bridge__meson_transfers.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'meson'\n),\ntoken_transfers AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n t.contract_address,\n from_address,\n to_address,\n raw_amount,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_token_transfers') }} t\n INNER JOIN contract_mapping m\n ON t.to_address = m.contract_address\n WHERE\n from_address <> '0x0000000000000000000000000000000000000000'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nnative_transfers AS (\n SELECT\n et.block_number,\n et.block_timestamp,\n et.tx_hash,\n tx.from_address AS origin_from_address,\n tx.to_address AS origin_to_address,\n tx.origin_function_signature,\n et.from_address,\n et.to_address,\n amount_precise_raw,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n et.ez_native_transfers_id AS _call_id,\n et.modified_timestamp\n FROM\n {{ ref('core__ez_native_transfers') }}\n et\n INNER JOIN {{ ref('core__fact_transactions') }}\n tx\n ON et.block_number = tx.block_number\n AND et.tx_hash = tx.tx_hash\n INNER JOIN contract_mapping m\n ON et.to_address = m.contract_address\n\n{% if is_incremental() %}\nAND et.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\nall_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'Transfer' AS event_name,\n to_address AS bridge_address,\n from_address AS sender,\n to_address AS receiver,\n raw_amount AS amount_unadj,\n contract_address AS token_address,\n protocol,\n version,\n type,\n platform,\n {{ dbt_utils.generate_surrogate_key(\n ['_log_id']\n ) }} AS _id,\n modified_timestamp\n FROM\n token_transfers\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n NULL AS event_index,\n NULL AS event_name,\n to_address AS bridge_address,\n from_address AS sender,\n to_address AS receiver,\n amount_precise_raw AS amount_unadj,\n '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}' AS token_address,\n protocol,\n version,\n type,\n platform,\n {{ dbt_utils.generate_surrogate_key(\n ['_call_id']\n ) }} AS _id,\n modified_timestamp\n FROM\n native_transfers\n),\ndst_info AS (\n SELECT\n block_number,\n tx_hash,\n topics [1] :: STRING AS encoded_data,\n SUBSTR(RIGHT(encoded_data, 12), 1, 4) AS destination_chain_id,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }} l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING IN ('0x5ce4019f772fda6cb703b26bce3ec3006eb36b73f1d3a0eb441213317d9f5e9d',\n '0x8d92c805c252261fcfff21ee60740eb8a38922469a7e6ee396976d57c22fc1c9')\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '16 hours'\n FROM\n {{ this }}\n)\n{% endif %}\n)\nSELECT\n t.block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t.tx_hash,\n event_index,\n event_name,\n bridge_address,\n sender,\n receiver,\n CASE \n WHEN origin_from_address = '0x0000000000000000000000000000000000000000' THEN sender\n ELSE origin_from_address\n END AS destination_chain_receiver,\n amount_unadj,\n destination_chain_id,\n LOWER(chain) AS destination_chain,\n token_address,\n t.protocol,\n t.version,\n t.type,\n t.platform,\n _id,\n t.modified_timestamp\nFROM\n all_transfers t\n INNER JOIN dst_info d\n ON t.tx_hash = d.tx_hash\n AND t.block_number = d.block_number\n LEFT JOIN {{ ref('silver_bridge__meson_chain_id_seed') }}\n s\n ON d.destination_chain_id :: STRING = RIGHT(\n s.short_coin_type,\n 4\n ) :: STRING\nWHERE\n origin_to_address IS NOT NULL qualify (ROW_NUMBER() over (PARTITION BY _id\nORDER BY\n t.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'meson'\n),\ntoken_transfers AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n t.contract_address,\n from_address,\n to_address,\n raw_amount,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_token_transfers t\n INNER JOIN contract_mapping m\n ON t.to_address = m.contract_address\n WHERE\n from_address <> '0x0000000000000000000000000000000000000000'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.meson_transfers\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nnative_transfers AS (\n SELECT\n et.block_number,\n et.block_timestamp,\n et.tx_hash,\n tx.from_address AS origin_from_address,\n tx.to_address AS origin_to_address,\n tx.origin_function_signature,\n et.from_address,\n et.to_address,\n amount_precise_raw,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n et.ez_native_transfers_id AS _call_id,\n et.modified_timestamp\n FROM\n polygon.core.ez_native_transfers\n et\n INNER JOIN polygon.core.fact_transactions\n tx\n ON et.block_number = tx.block_number\n AND et.tx_hash = tx.tx_hash\n INNER JOIN contract_mapping m\n ON et.to_address = m.contract_address\n\n\nAND et.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.meson_transfers\n)\n\n),\nall_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'Transfer' AS event_name,\n to_address AS bridge_address,\n from_address AS sender,\n to_address AS receiver,\n raw_amount AS amount_unadj,\n contract_address AS token_address,\n protocol,\n version,\n type,\n platform,\n \n \nmd5(cast(coalesce(cast(_log_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS _id,\n modified_timestamp\n FROM\n token_transfers\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n NULL AS event_index,\n NULL AS event_name,\n to_address AS bridge_address,\n from_address AS sender,\n to_address AS receiver,\n amount_precise_raw AS amount_unadj,\n '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270' AS token_address,\n protocol,\n version,\n type,\n platform,\n \n \nmd5(cast(coalesce(cast(_call_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS _id,\n modified_timestamp\n FROM\n native_transfers\n),\ndst_info AS (\n SELECT\n block_number,\n tx_hash,\n topics [1] :: STRING AS encoded_data,\n SUBSTR(RIGHT(encoded_data, 12), 1, 4) AS destination_chain_id,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING IN ('0x5ce4019f772fda6cb703b26bce3ec3006eb36b73f1d3a0eb441213317d9f5e9d',\n '0x8d92c805c252261fcfff21ee60740eb8a38922469a7e6ee396976d57c22fc1c9')\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '16 hours'\n FROM\n polygon.silver_bridge.meson_transfers\n)\n\n)\nSELECT\n t.block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t.tx_hash,\n event_index,\n event_name,\n bridge_address,\n sender,\n receiver,\n CASE \n WHEN origin_from_address = '0x0000000000000000000000000000000000000000' THEN sender\n ELSE origin_from_address\n END AS destination_chain_receiver,\n amount_unadj,\n destination_chain_id,\n LOWER(chain) AS destination_chain,\n token_address,\n t.protocol,\n t.version,\n t.type,\n t.platform,\n _id,\n t.modified_timestamp\nFROM\n all_transfers t\n INNER JOIN dst_info d\n ON t.tx_hash = d.tx_hash\n AND t.block_number = d.block_number\n LEFT JOIN polygon.silver_bridge.meson_chain_id_seed\n s\n ON d.destination_chain_id :: STRING = RIGHT(\n s.short_coin_type,\n 4\n ) :: STRING\nWHERE\n origin_to_address IS NOT NULL qualify (ROW_NUMBER() over (PARTITION BY _id\nORDER BY\n t.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__everclear": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__everclear", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/everclear/silver_bridge__everclear.sql", "original_file_path": "models/curated_package/defi/bridge/silver/everclear/silver_bridge__everclear.sql", "unique_id": "model.fsc_evm.silver_bridge__everclear", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "everclear", "silver_bridge__everclear"], "alias": "everclear", "checksum": {"name": "sha256", "checksum": "52cfcf44e7395b4c6c777c3f6d3d7a42efe4e2e9f15f3bc5b6aa1b40d0c10b7e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018346.9770124, "relation_name": "polygon.silver_bridge.everclear", "raw_code": "{# Set variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH regular AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n intent_id,\n initiator,\n receiver,\n input_asset,\n output_asset_raw,\n source_chain_id,\n amount_raw,\n destination_count,\n destination_0,\n protocol,\n version,\n type,\n platform,\n _log_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n {{ ref('silver_bridge__everclear_intent_added') }}\n WHERE\n destination_count = 1\n\n{% if is_incremental() %}\nAND (\n modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n)\n{% endif %}\n),\nedge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n intent_id,\n initiator,\n receiver,\n input_asset,\n output_asset_raw,\n source_chain_id,\n amount_raw,\n destination_count,\n destination_0,\n protocol,\n version,\n type,\n platform,\n _log_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n {{ ref('silver_bridge__everclear_intent_added') }}\n WHERE\n destination_count > 1\n\n{% if is_incremental() %}\nAND intent_id NOT IN (\n SELECT\n intent_id\n FROM\n {{ this }}\n)\n{% endif %}\n),\nintent_reads AS (\n SELECT\n intent_id,\n output_asset AS output_asset_reads,\n destination_chain_id AS destination_chain_id_reads\n FROM\n {{ ref('silver_bridge__everclear_reads') }}\n WHERE\n status = 'SETTLED_AND_COMPLETED'\n\n{% if is_incremental() %}\nAND intent_id NOT IN (\n SELECT\n intent_id\n FROM\n {{ this }}\n)\n{% endif %}\n),\ncomplete_edge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n intent_id,\n initiator,\n receiver,\n input_asset,\n output_asset_raw,\n output_asset_reads AS output_asset,\n source_chain_id,\n amount_raw,\n destination_count,\n destination_0,\n destination_chain_id_reads AS destination_chain_id,\n protocol,\n version,\n type,\n platform,\n _log_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n FROM\n edge\n INNER JOIN intent_reads USING (intent_id)\n),\ncombined AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n intent_id,\n initiator,\n receiver,\n input_asset,\n output_asset_raw AS output_asset,\n source_chain_id,\n amount_raw,\n destination_count,\n destination_0 AS destination_chain_id,\n protocol,\n version,\n type,\n platform,\n _log_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n regular\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n intent_id,\n initiator,\n receiver,\n input_asset,\n output_asset,\n source_chain_id,\n amount_raw,\n destination_count,\n destination_chain_id,\n protocol,\n version,\n type,\n platform,\n _log_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n complete_edge\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'IntentAdded' AS event_name,\n contract_address AS bridge_address,\n protocol,\n version,\n type,\n platform,\n intent_id,\n origin_from_address AS sender,\n initiator,\n receiver,\n IFF(\n destination_chain_id = '1399811149',\n utils.udf_hex_to_base58(receiver),\n receiver\n ) AS destination_chain_receiver,\n input_asset,\n output_asset,\n input_asset AS token_address,\n amount_raw AS amount_unadj,\n destination_count,\n source_chain_id,\n destination_chain_id,\n chain AS destination_chain,\n _log_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n combined C\n LEFT JOIN {{ ref('silver_bridge__everclear_chain_seed') }}\n s\n ON C.destination_chain_id = s.chainid", "language": "sql", "refs": [{"name": "silver_bridge__everclear_intent_added", "package": null, "version": null}, {"name": "silver_bridge__everclear_intent_added", "package": null, "version": null}, {"name": "silver_bridge__everclear_reads", "package": null, "version": null}, {"name": "silver_bridge__everclear_chain_seed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_bridge__everclear_intent_added", "model.fsc_evm.silver_bridge__everclear_reads", "seed.fsc_evm.silver_bridge__everclear_chain_seed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/everclear/silver_bridge__everclear.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Set variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH regular AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n intent_id,\n initiator,\n receiver,\n input_asset,\n output_asset_raw,\n source_chain_id,\n amount_raw,\n destination_count,\n destination_0,\n protocol,\n version,\n type,\n platform,\n _log_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n {{ ref('silver_bridge__everclear_intent_added') }}\n WHERE\n destination_count = 1\n\n{% if is_incremental() %}\nAND (\n modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n)\n{% endif %}\n),\nedge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n intent_id,\n initiator,\n receiver,\n input_asset,\n output_asset_raw,\n source_chain_id,\n amount_raw,\n destination_count,\n destination_0,\n protocol,\n version,\n type,\n platform,\n _log_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n {{ ref('silver_bridge__everclear_intent_added') }}\n WHERE\n destination_count > 1\n\n{% if is_incremental() %}\nAND intent_id NOT IN (\n SELECT\n intent_id\n FROM\n {{ this }}\n)\n{% endif %}\n),\nintent_reads AS (\n SELECT\n intent_id,\n output_asset AS output_asset_reads,\n destination_chain_id AS destination_chain_id_reads\n FROM\n {{ ref('silver_bridge__everclear_reads') }}\n WHERE\n status = 'SETTLED_AND_COMPLETED'\n\n{% if is_incremental() %}\nAND intent_id NOT IN (\n SELECT\n intent_id\n FROM\n {{ this }}\n)\n{% endif %}\n),\ncomplete_edge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n intent_id,\n initiator,\n receiver,\n input_asset,\n output_asset_raw,\n output_asset_reads AS output_asset,\n source_chain_id,\n amount_raw,\n destination_count,\n destination_0,\n destination_chain_id_reads AS destination_chain_id,\n protocol,\n version,\n type,\n platform,\n _log_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n FROM\n edge\n INNER JOIN intent_reads USING (intent_id)\n),\ncombined AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n intent_id,\n initiator,\n receiver,\n input_asset,\n output_asset_raw AS output_asset,\n source_chain_id,\n amount_raw,\n destination_count,\n destination_0 AS destination_chain_id,\n protocol,\n version,\n type,\n platform,\n _log_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n regular\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n intent_id,\n initiator,\n receiver,\n input_asset,\n output_asset,\n source_chain_id,\n amount_raw,\n destination_count,\n destination_chain_id,\n protocol,\n version,\n type,\n platform,\n _log_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n complete_edge\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'IntentAdded' AS event_name,\n contract_address AS bridge_address,\n protocol,\n version,\n type,\n platform,\n intent_id,\n origin_from_address AS sender,\n initiator,\n receiver,\n IFF(\n destination_chain_id = '1399811149',\n utils.udf_hex_to_base58(receiver),\n receiver\n ) AS destination_chain_receiver,\n input_asset,\n output_asset,\n input_asset AS token_address,\n amount_raw AS amount_unadj,\n destination_count,\n source_chain_id,\n destination_chain_id,\n chain AS destination_chain,\n _log_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n combined C\n LEFT JOIN {{ ref('silver_bridge__everclear_chain_seed') }}\n s\n ON C.destination_chain_id = s.chainid\n*/\n\n\n\nWITH regular AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n intent_id,\n initiator,\n receiver,\n input_asset,\n output_asset_raw,\n source_chain_id,\n amount_raw,\n destination_count,\n destination_0,\n protocol,\n version,\n type,\n platform,\n _log_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n polygon.silver_bridge.everclear_intent_added\n WHERE\n destination_count = 1\n\n\nAND (\n modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.everclear\n )\n)\n\n),\nedge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n intent_id,\n initiator,\n receiver,\n input_asset,\n output_asset_raw,\n source_chain_id,\n amount_raw,\n destination_count,\n destination_0,\n protocol,\n version,\n type,\n platform,\n _log_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n polygon.silver_bridge.everclear_intent_added\n WHERE\n destination_count > 1\n\n\nAND intent_id NOT IN (\n SELECT\n intent_id\n FROM\n polygon.silver_bridge.everclear\n)\n\n),\nintent_reads AS (\n SELECT\n intent_id,\n output_asset AS output_asset_reads,\n destination_chain_id AS destination_chain_id_reads\n FROM\n polygon.silver_bridge.everclear_reads\n WHERE\n status = 'SETTLED_AND_COMPLETED'\n\n\nAND intent_id NOT IN (\n SELECT\n intent_id\n FROM\n polygon.silver_bridge.everclear\n)\n\n),\ncomplete_edge AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n intent_id,\n initiator,\n receiver,\n input_asset,\n output_asset_raw,\n output_asset_reads AS output_asset,\n source_chain_id,\n amount_raw,\n destination_count,\n destination_0,\n destination_chain_id_reads AS destination_chain_id,\n protocol,\n version,\n type,\n platform,\n _log_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n FROM\n edge\n INNER JOIN intent_reads USING (intent_id)\n),\ncombined AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n intent_id,\n initiator,\n receiver,\n input_asset,\n output_asset_raw AS output_asset,\n source_chain_id,\n amount_raw,\n destination_count,\n destination_0 AS destination_chain_id,\n protocol,\n version,\n type,\n platform,\n _log_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n regular\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n intent_id,\n initiator,\n receiver,\n input_asset,\n output_asset,\n source_chain_id,\n amount_raw,\n destination_count,\n destination_chain_id,\n protocol,\n version,\n type,\n platform,\n _log_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n complete_edge\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'IntentAdded' AS event_name,\n contract_address AS bridge_address,\n protocol,\n version,\n type,\n platform,\n intent_id,\n origin_from_address AS sender,\n initiator,\n receiver,\n IFF(\n destination_chain_id = '1399811149',\n utils.udf_hex_to_base58(receiver),\n receiver\n ) AS destination_chain_receiver,\n input_asset,\n output_asset,\n input_asset AS token_address,\n amount_raw AS amount_unadj,\n destination_count,\n source_chain_id,\n destination_chain_id,\n chain AS destination_chain,\n _log_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n combined C\n LEFT JOIN polygon.silver_bridge.everclear_chain_seed\n s\n ON C.destination_chain_id = s.chainid", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__everclear_reads": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__everclear_reads", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/everclear/silver_bridge__everclear_reads.sql", "original_file_path": "models/curated_package/defi/bridge/silver/everclear/silver_bridge__everclear_reads.sql", "unique_id": "model.fsc_evm.silver_bridge__everclear_reads", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "everclear", "silver_bridge__everclear_reads"], "alias": "everclear_reads", "checksum": {"name": "sha256", "checksum": "f18feae33e18df3aac7f5733f8b2acd3db522db1208424ae7125b43deabf11e5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "intent_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {"INTENT_ID": {"name": "INTENT_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STATUS": {"name": "STATUS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "OUTPUT_ASSET": {"name": "OUTPUT_ASSET", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESTINATION_CHAIN_ID": {"name": "DESTINATION_CHAIN_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/bridge/silver/everclear/silver_bridge__everclear_reads.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "intent_id", "full_refresh": false, "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.9364715, "relation_name": "polygon.silver_bridge.everclear_reads", "raw_code": "{# Set variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"intent_id\",\n full_refresh = false,\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH start_epoch AS (\n\n SELECT\n DATE_PART(epoch_second, MIN(block_timestamp :: DATE)) AS min_epoch\n FROM\n {{ ref('silver_bridge__everclear_intent_added') }}\n WHERE\n destination_count > 1\n),\nstart_epoch_chain AS (\n SELECT\n min_epoch,\n chainid\n FROM\n start_epoch,\n {{ ref('silver_bridge__everclear_chain_seed') }}\n WHERE\n chain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n),\n\n{% if is_incremental() %}\nin_progress_epoch AS (\n SELECT\n DATE_PART(\n epoch_second,\n MIN(\n intent_created_timestamp :: DATE\n )\n ) AS min_progress_epoch,\n DATE_PART(\n epoch_second,\n MIN(\n intent_created_timestamp :: DATE\n ) + INTERVAL '1 day'\n ) AS min_progress_epoch_plus_1_day,\n DATE_PART(\n epoch_second,\n MAX(\n intent_created_timestamp :: DATE\n )\n ) AS max_progress_epoch\n FROM\n {{ this }}\n),\n{% endif %}\n\n{% if is_incremental() and var(\n 'backfill_2',\n false\n) %}\nintent_list_to_requests AS (\n SELECT\n intent_id\n FROM\n {{ ref('silver_bridge__everclear_intent_added') }}\n WHERE\n destination_count > 1\n AND intent_id NOT IN (\n SELECT\n intent_id\n FROM\n {{ this }}\n ) qualify ROW_NUMBER() over (\n ORDER BY\n block_timestamp ASC,\n intent_id ASC\n ) <= 15\n),\n{% endif %}\n\nrequests AS (\n SELECT\n chainid,\n min_epoch,\n\n{% if is_incremental() %}\n-- backfill run mode 1\n{% if var(\n 'backfill_1',\n false\n ) %}\n live.udf_api(\n CONCAT(\n 'https://api.everclear.org/intents?limit=',\n {{ var(\n 'backfill_limit',\n 2500\n ) }},\n '&origins=',\n chainid,\n '&endDate=',\n min_progress_epoch_plus_1_day\n )\n ) AS response,\n -- backfill run mode 2\n {% elif var(\n 'backfill_2',\n false\n ) %}\n live.udf_api(\n CONCAT(\n 'https://api.everclear.org/intents/',\n intent_id\n )\n ) AS response,\n{% else %}\n -- regular incremental run\n live.udf_api(\n CONCAT(\n 'https://api.everclear.org/intents?limit=500&origins=',\n chainid,\n '&startDate=',\n max_progress_epoch\n )\n ) AS response,\n{% endif %}\n{% else %}\n -- full refresh run\n live.udf_api(\n CONCAT(\n 'https://api.everclear.org/intents?limit=',\n {{ var(\n 'backfill_limit',\n 2500\n ) }},\n '&origins=',\n chainid,\n '&startDate=',\n min_epoch\n )\n ) AS response\n{% endif %}\nFROM\n start_epoch_chain\n\n{% if is_incremental() %},\nin_progress_epoch\n{% endif %}\n\n{% if is_incremental() and var(\n 'backfill_2',\n false\n) %},\nintent_list_to_requests\n{% endif %}\n),\nresults AS (\n\n{% if is_incremental() and var(\n 'backfill_2',\n false\n) %}\nSELECT\n chainid,\n min_epoch,\n response :data :intent AS VALUE,\n LOWER(\n VALUE :output_asset :: STRING\n ) AS output_asset,\n VALUE :status :: STRING AS status,\n VALUE :hub_settlement_domain :: STRING AS destination_chain_id,\n TO_TIMESTAMP(\n VALUE :intent_created_timestamp :: INT\n ) AS intent_created_timestamp,\n VALUE :auto_id :: INT AS cursor_id,\n VALUE :intent_id :: STRING AS intent_id\nFROM\n requests\n{% else %}\nSELECT\n chainid,\n min_epoch,\n VALUE,\n LOWER(\n VALUE :output_asset :: STRING\n ) AS output_asset,\n VALUE :status :: STRING AS status,\n VALUE :hub_settlement_domain :: STRING AS destination_chain_id,\n TO_TIMESTAMP(\n VALUE :intent_created_timestamp :: INT\n ) AS intent_created_timestamp,\n VALUE :auto_id :: INT AS cursor_id,\n VALUE :intent_id :: STRING AS intent_id\nFROM\n requests,\n LATERAL FLATTEN (\n input => response :data :intents\n )\n{% endif %}\n)\nSELECT\n min_epoch,\n output_asset,\n status,\n destination_chain_id,\n intent_created_timestamp,\n cursor_id,\n intent_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n results", "language": "sql", "refs": [{"name": "silver_bridge__everclear_intent_added", "package": null, "version": null}, {"name": "silver_bridge__everclear_chain_seed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_bridge__everclear_intent_added", "seed.fsc_evm.silver_bridge__everclear_chain_seed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/everclear/silver_bridge__everclear_reads.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"intent_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Set variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"intent_id\",\n full_refresh = false,\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH start_epoch AS (\n\n SELECT\n DATE_PART(epoch_second, MIN(block_timestamp :: DATE)) AS min_epoch\n FROM\n {{ ref('silver_bridge__everclear_intent_added') }}\n WHERE\n destination_count > 1\n),\nstart_epoch_chain AS (\n SELECT\n min_epoch,\n chainid\n FROM\n start_epoch,\n {{ ref('silver_bridge__everclear_chain_seed') }}\n WHERE\n chain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n),\n\n{% if is_incremental() %}\nin_progress_epoch AS (\n SELECT\n DATE_PART(\n epoch_second,\n MIN(\n intent_created_timestamp :: DATE\n )\n ) AS min_progress_epoch,\n DATE_PART(\n epoch_second,\n MIN(\n intent_created_timestamp :: DATE\n ) + INTERVAL '1 day'\n ) AS min_progress_epoch_plus_1_day,\n DATE_PART(\n epoch_second,\n MAX(\n intent_created_timestamp :: DATE\n )\n ) AS max_progress_epoch\n FROM\n {{ this }}\n),\n{% endif %}\n\n{% if is_incremental() and var(\n 'backfill_2',\n false\n) %}\nintent_list_to_requests AS (\n SELECT\n intent_id\n FROM\n {{ ref('silver_bridge__everclear_intent_added') }}\n WHERE\n destination_count > 1\n AND intent_id NOT IN (\n SELECT\n intent_id\n FROM\n {{ this }}\n ) qualify ROW_NUMBER() over (\n ORDER BY\n block_timestamp ASC,\n intent_id ASC\n ) <= 15\n),\n{% endif %}\n\nrequests AS (\n SELECT\n chainid,\n min_epoch,\n\n{% if is_incremental() %}\n-- backfill run mode 1\n{% if var(\n 'backfill_1',\n false\n ) %}\n live.udf_api(\n CONCAT(\n 'https://api.everclear.org/intents?limit=',\n {{ var(\n 'backfill_limit',\n 2500\n ) }},\n '&origins=',\n chainid,\n '&endDate=',\n min_progress_epoch_plus_1_day\n )\n ) AS response,\n -- backfill run mode 2\n {% elif var(\n 'backfill_2',\n false\n ) %}\n live.udf_api(\n CONCAT(\n 'https://api.everclear.org/intents/',\n intent_id\n )\n ) AS response,\n{% else %}\n -- regular incremental run\n live.udf_api(\n CONCAT(\n 'https://api.everclear.org/intents?limit=500&origins=',\n chainid,\n '&startDate=',\n max_progress_epoch\n )\n ) AS response,\n{% endif %}\n{% else %}\n -- full refresh run\n live.udf_api(\n CONCAT(\n 'https://api.everclear.org/intents?limit=',\n {{ var(\n 'backfill_limit',\n 2500\n ) }},\n '&origins=',\n chainid,\n '&startDate=',\n min_epoch\n )\n ) AS response\n{% endif %}\nFROM\n start_epoch_chain\n\n{% if is_incremental() %},\nin_progress_epoch\n{% endif %}\n\n{% if is_incremental() and var(\n 'backfill_2',\n false\n) %},\nintent_list_to_requests\n{% endif %}\n),\nresults AS (\n\n{% if is_incremental() and var(\n 'backfill_2',\n false\n) %}\nSELECT\n chainid,\n min_epoch,\n response :data :intent AS VALUE,\n LOWER(\n VALUE :output_asset :: STRING\n ) AS output_asset,\n VALUE :status :: STRING AS status,\n VALUE :hub_settlement_domain :: STRING AS destination_chain_id,\n TO_TIMESTAMP(\n VALUE :intent_created_timestamp :: INT\n ) AS intent_created_timestamp,\n VALUE :auto_id :: INT AS cursor_id,\n VALUE :intent_id :: STRING AS intent_id\nFROM\n requests\n{% else %}\nSELECT\n chainid,\n min_epoch,\n VALUE,\n LOWER(\n VALUE :output_asset :: STRING\n ) AS output_asset,\n VALUE :status :: STRING AS status,\n VALUE :hub_settlement_domain :: STRING AS destination_chain_id,\n TO_TIMESTAMP(\n VALUE :intent_created_timestamp :: INT\n ) AS intent_created_timestamp,\n VALUE :auto_id :: INT AS cursor_id,\n VALUE :intent_id :: STRING AS intent_id\nFROM\n requests,\n LATERAL FLATTEN (\n input => response :data :intents\n )\n{% endif %}\n)\nSELECT\n min_epoch,\n output_asset,\n status,\n destination_chain_id,\n intent_created_timestamp,\n cursor_id,\n intent_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n results\n*/\n\n\n\nWITH start_epoch AS (\n\n SELECT\n DATE_PART(epoch_second, MIN(block_timestamp :: DATE)) AS min_epoch\n FROM\n polygon.silver_bridge.everclear_intent_added\n WHERE\n destination_count > 1\n),\nstart_epoch_chain AS (\n SELECT\n min_epoch,\n chainid\n FROM\n start_epoch,\n polygon.silver_bridge.everclear_chain_seed\n WHERE\n chain = 'polygon'\n),\n\n\nin_progress_epoch AS (\n SELECT\n DATE_PART(\n epoch_second,\n MIN(\n intent_created_timestamp :: DATE\n )\n ) AS min_progress_epoch,\n DATE_PART(\n epoch_second,\n MIN(\n intent_created_timestamp :: DATE\n ) + INTERVAL '1 day'\n ) AS min_progress_epoch_plus_1_day,\n DATE_PART(\n epoch_second,\n MAX(\n intent_created_timestamp :: DATE\n )\n ) AS max_progress_epoch\n FROM\n polygon.silver_bridge.everclear_reads\n),\n\n\n\n\nrequests AS (\n SELECT\n chainid,\n min_epoch,\n\n\n-- backfill run mode 1\n\n -- regular incremental run\n live.udf_api(\n CONCAT(\n 'https://api.everclear.org/intents?limit=500&origins=',\n chainid,\n '&startDate=',\n max_progress_epoch\n )\n ) AS response,\n\n\nFROM\n start_epoch_chain\n\n,\nin_progress_epoch\n\n\n\n),\nresults AS (\n\n\nSELECT\n chainid,\n min_epoch,\n VALUE,\n LOWER(\n VALUE :output_asset :: STRING\n ) AS output_asset,\n VALUE :status :: STRING AS status,\n VALUE :hub_settlement_domain :: STRING AS destination_chain_id,\n TO_TIMESTAMP(\n VALUE :intent_created_timestamp :: INT\n ) AS intent_created_timestamp,\n VALUE :auto_id :: INT AS cursor_id,\n VALUE :intent_id :: STRING AS intent_id\nFROM\n requests,\n LATERAL FLATTEN (\n input => response :data :intents\n )\n\n)\nSELECT\n min_epoch,\n output_asset,\n status,\n destination_chain_id,\n intent_created_timestamp,\n cursor_id,\n intent_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n results", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__everclear_intent_added": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__everclear_intent_added", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/everclear/silver_bridge__everclear_intent_added.sql", "original_file_path": "models/curated_package/defi/bridge/silver/everclear/silver_bridge__everclear_intent_added.sql", "unique_id": "model.fsc_evm.silver_bridge__everclear_intent_added", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "everclear", "silver_bridge__everclear_intent_added"], "alias": "everclear_intent_added", "checksum": {"name": "sha256", "checksum": "d5cf17fb596a06a5291297faf50c1d98dd55e37afa689d9538ceda2b4227deea"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018347.6177096, "relation_name": "polygon.silver_bridge.everclear_intent_added", "raw_code": "{# Set variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'everclear'\n AND version = 'v1'\n),\n\nevents AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS part,\n topic_1 AS intent_id,\n '0x' || SUBSTR(\n part [2] :: STRING,\n 25\n ) AS initiator,\n '0x' || SUBSTR(\n part [3] :: STRING,\n 25\n ) AS receiver,\n '0x' || SUBSTR(\n part [4] :: STRING,\n 25\n ) AS input_asset,\n '0x' || SUBSTR(\n part [5] :: STRING,\n 25\n ) AS output_asset_raw,\n utils.udf_hex_to_int(\n part [7] :: STRING\n ) AS source_chain_id,\n utils.udf_hex_to_int(\n part [14] :: STRING\n ) :: INT AS destination_count,\n utils.udf_hex_to_int(\n part [15] :: STRING\n ) :: STRING AS destination_0,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }} \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0xefe68281645929e2db845c5b42e12f7c73485fb5f18737b7b29379da006fa5f7'\n AND block_timestamp :: DATE >= '2024-09-01'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\ntraces AS (\n SELECT\n tx_hash,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS inputs,\n regexp_substr_all(SUBSTR(output, 3), '.{64}') AS outputs,\n utils.udf_hex_to_int(\n inputs [4] :: STRING\n ) AS amount_raw,\n '0x' || outputs [0] :: STRING AS intent_id\n FROM\n {{ ref('core__fact_traces') }}\n t\n INNER JOIN contract_mapping m\n ON t.to_address = m.contract_address\n WHERE\n block_timestamp :: DATE >= '2024-09-01'\n AND t.TYPE = 'CALL'\n AND LEFT(\n input,\n 10\n ) IN (\n -- 3 versions of newIntent\n '0x4a943d21',\n -- address for senders\n '0x1b5c3e8b',\n -- bytes32 for senders\n '0xb4c20477' -- permit2\n )\n AND tx_succeeded\n AND trace_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n intent_id,\n initiator,\n receiver,\n input_asset,\n output_asset_raw,\n source_chain_id,\n amount_raw,\n destination_count,\n destination_0,\n protocol,\n version,\n type,\n platform,\n _log_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n events\n INNER JOIN traces USING (\n tx_hash,\n intent_id\n )", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_traces"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/everclear/silver_bridge__everclear_intent_added.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Set variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'everclear'\n AND version = 'v1'\n),\n\nevents AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS part,\n topic_1 AS intent_id,\n '0x' || SUBSTR(\n part [2] :: STRING,\n 25\n ) AS initiator,\n '0x' || SUBSTR(\n part [3] :: STRING,\n 25\n ) AS receiver,\n '0x' || SUBSTR(\n part [4] :: STRING,\n 25\n ) AS input_asset,\n '0x' || SUBSTR(\n part [5] :: STRING,\n 25\n ) AS output_asset_raw,\n utils.udf_hex_to_int(\n part [7] :: STRING\n ) AS source_chain_id,\n utils.udf_hex_to_int(\n part [14] :: STRING\n ) :: INT AS destination_count,\n utils.udf_hex_to_int(\n part [15] :: STRING\n ) :: STRING AS destination_0,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }} \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0xefe68281645929e2db845c5b42e12f7c73485fb5f18737b7b29379da006fa5f7'\n AND block_timestamp :: DATE >= '2024-09-01'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\ntraces AS (\n SELECT\n tx_hash,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS inputs,\n regexp_substr_all(SUBSTR(output, 3), '.{64}') AS outputs,\n utils.udf_hex_to_int(\n inputs [4] :: STRING\n ) AS amount_raw,\n '0x' || outputs [0] :: STRING AS intent_id\n FROM\n {{ ref('core__fact_traces') }}\n t\n INNER JOIN contract_mapping m\n ON t.to_address = m.contract_address\n WHERE\n block_timestamp :: DATE >= '2024-09-01'\n AND t.TYPE = 'CALL'\n AND LEFT(\n input,\n 10\n ) IN (\n -- 3 versions of newIntent\n '0x4a943d21',\n -- address for senders\n '0x1b5c3e8b',\n -- bytes32 for senders\n '0xb4c20477' -- permit2\n )\n AND tx_succeeded\n AND trace_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n intent_id,\n initiator,\n receiver,\n input_asset,\n output_asset_raw,\n source_chain_id,\n amount_raw,\n destination_count,\n destination_0,\n protocol,\n version,\n type,\n platform,\n _log_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n events\n INNER JOIN traces USING (\n tx_hash,\n intent_id\n )\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'everclear'\n AND version = 'v1'\n),\n\nevents AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS part,\n topic_1 AS intent_id,\n '0x' || SUBSTR(\n part [2] :: STRING,\n 25\n ) AS initiator,\n '0x' || SUBSTR(\n part [3] :: STRING,\n 25\n ) AS receiver,\n '0x' || SUBSTR(\n part [4] :: STRING,\n 25\n ) AS input_asset,\n '0x' || SUBSTR(\n part [5] :: STRING,\n 25\n ) AS output_asset_raw,\n utils.udf_hex_to_int(\n part [7] :: STRING\n ) AS source_chain_id,\n utils.udf_hex_to_int(\n part [14] :: STRING\n ) :: INT AS destination_count,\n utils.udf_hex_to_int(\n part [15] :: STRING\n ) :: STRING AS destination_0,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0xefe68281645929e2db845c5b42e12f7c73485fb5f18737b7b29379da006fa5f7'\n AND block_timestamp :: DATE >= '2024-09-01'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.everclear_intent_added\n)\n\n),\ntraces AS (\n SELECT\n tx_hash,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS inputs,\n regexp_substr_all(SUBSTR(output, 3), '.{64}') AS outputs,\n utils.udf_hex_to_int(\n inputs [4] :: STRING\n ) AS amount_raw,\n '0x' || outputs [0] :: STRING AS intent_id\n FROM\n polygon.core.fact_traces\n t\n INNER JOIN contract_mapping m\n ON t.to_address = m.contract_address\n WHERE\n block_timestamp :: DATE >= '2024-09-01'\n AND t.TYPE = 'CALL'\n AND LEFT(\n input,\n 10\n ) IN (\n -- 3 versions of newIntent\n '0x4a943d21',\n -- address for senders\n '0x1b5c3e8b',\n -- bytes32 for senders\n '0xb4c20477' -- permit2\n )\n AND tx_succeeded\n AND trace_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.everclear_intent_added\n)\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n intent_id,\n initiator,\n receiver,\n input_asset,\n output_asset_raw,\n source_chain_id,\n amount_raw,\n destination_count,\n destination_0,\n protocol,\n version,\n type,\n platform,\n _log_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n events\n INNER JOIN traces USING (\n tx_hash,\n intent_id\n )", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__hop_transfersent": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__hop_transfersent", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_transfersent.sql", "original_file_path": "models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_transfersent.sql", "unique_id": "model.fsc_evm.silver_bridge__hop_transfersent", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "hop", "l2", "silver_bridge__hop_transfersent"], "alias": "hop_transfersent", "checksum": {"name": "sha256", "checksum": "17631d12bac59adfbee30cf98e0e2ee61eee8912a62211fb7558ac23d17d5ca8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018347.9391627, "relation_name": "polygon.silver_bridge.hop_transfersent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH base_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"amountOutMin\" :: STRING\n ) AS amountOutMin,\n TRY_TO_NUMBER(\n decoded_log :\"bonderFee\" :: STRING\n ) AS bonderFee,\n TRY_TO_NUMBER(\n decoded_log :\"chainId\" :: STRING\n ) AS chainId,\n TRY_TO_TIMESTAMP(\n decoded_log :\"deadline\" :: STRING\n ) AS deadline,\n TRY_TO_TIMESTAMP(\n decoded_log :\"index\" :: STRING\n ) AS INDEX,\n decoded_log :\"recipient\" :: STRING AS recipient,\n decoded_log :\"transferId\" :: STRING AS transferId,\n decoded_log :\"transferNonce\" :: STRING AS transferNonce,\n decoded_log,\n event_removed,\n tx_succeeded,\n 'hop' AS protocol,\n 'v1' AS version,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n 'transfer_sent' AS type,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n WHERE\n topics [0] :: STRING = '0xe35dddd4ea75d7e9b3fe93af4f4e40e778c3da4074c9d93e7c6536f1e803c1eb'\n AND origin_to_address IS NOT NULL\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n amm_wrapper_address,\n origin_from_address AS sender,\n recipient AS receiver,\n receiver AS destination_chain_receiver,\n chainId AS destination_chain_id,\n token_address,\n amount,\n amountOutMin AS amount_out_min,\n bonderFee AS bonder_fee,\n deadline,\n INDEX,\n transferId AS transfer_id,\n transferNonce AS transfer_nonce,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt b\n LEFT JOIN {{ ref('silver_bridge__hop_l2canonicaltoken') }} \n h USING(contract_address)\nWHERE\n token_address IS NOT NULL", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "silver_bridge__hop_l2canonicaltoken", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.silver_bridge__hop_l2canonicaltoken"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_transfersent.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH base_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"amountOutMin\" :: STRING\n ) AS amountOutMin,\n TRY_TO_NUMBER(\n decoded_log :\"bonderFee\" :: STRING\n ) AS bonderFee,\n TRY_TO_NUMBER(\n decoded_log :\"chainId\" :: STRING\n ) AS chainId,\n TRY_TO_TIMESTAMP(\n decoded_log :\"deadline\" :: STRING\n ) AS deadline,\n TRY_TO_TIMESTAMP(\n decoded_log :\"index\" :: STRING\n ) AS INDEX,\n decoded_log :\"recipient\" :: STRING AS recipient,\n decoded_log :\"transferId\" :: STRING AS transferId,\n decoded_log :\"transferNonce\" :: STRING AS transferNonce,\n decoded_log,\n event_removed,\n tx_succeeded,\n 'hop' AS protocol,\n 'v1' AS version,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n 'transfer_sent' AS type,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n WHERE\n topics [0] :: STRING = '0xe35dddd4ea75d7e9b3fe93af4f4e40e778c3da4074c9d93e7c6536f1e803c1eb'\n AND origin_to_address IS NOT NULL\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n amm_wrapper_address,\n origin_from_address AS sender,\n recipient AS receiver,\n receiver AS destination_chain_receiver,\n chainId AS destination_chain_id,\n token_address,\n amount,\n amountOutMin AS amount_out_min,\n bonderFee AS bonder_fee,\n deadline,\n INDEX,\n transferId AS transfer_id,\n transferNonce AS transfer_nonce,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt b\n LEFT JOIN {{ ref('silver_bridge__hop_l2canonicaltoken') }} \n h USING(contract_address)\nWHERE\n token_address IS NOT NULL\n*/\n\n\n\nWITH base_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"amountOutMin\" :: STRING\n ) AS amountOutMin,\n TRY_TO_NUMBER(\n decoded_log :\"bonderFee\" :: STRING\n ) AS bonderFee,\n TRY_TO_NUMBER(\n decoded_log :\"chainId\" :: STRING\n ) AS chainId,\n TRY_TO_TIMESTAMP(\n decoded_log :\"deadline\" :: STRING\n ) AS deadline,\n TRY_TO_TIMESTAMP(\n decoded_log :\"index\" :: STRING\n ) AS INDEX,\n decoded_log :\"recipient\" :: STRING AS recipient,\n decoded_log :\"transferId\" :: STRING AS transferId,\n decoded_log :\"transferNonce\" :: STRING AS transferNonce,\n decoded_log,\n event_removed,\n tx_succeeded,\n 'hop' AS protocol,\n 'v1' AS version,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n 'transfer_sent' AS type,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs\n WHERE\n topics [0] :: STRING = '0xe35dddd4ea75d7e9b3fe93af4f4e40e778c3da4074c9d93e7c6536f1e803c1eb'\n AND origin_to_address IS NOT NULL\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.hop_transfersent\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n amm_wrapper_address,\n origin_from_address AS sender,\n recipient AS receiver,\n receiver AS destination_chain_receiver,\n chainId AS destination_chain_id,\n token_address,\n amount,\n amountOutMin AS amount_out_min,\n bonderFee AS bonder_fee,\n deadline,\n INDEX,\n transferId AS transfer_id,\n transferNonce AS transfer_nonce,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt b\n LEFT JOIN polygon.silver_bridge.hop_l2canonicaltoken \n h USING(contract_address)\nWHERE\n token_address IS NOT NULL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__hop_l2canonicaltoken": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__hop_l2canonicaltoken", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_l2canonicaltoken.sql", "original_file_path": "models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_l2canonicaltoken.sql", "unique_id": "model.fsc_evm.silver_bridge__hop_l2canonicaltoken", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "hop", "l2", "silver_bridge__hop_l2canonicaltoken"], "alias": "hop_l2canonicaltoken", "checksum": {"name": "sha256", "checksum": "5384803f18eab8961b00d038df116476e9d51a34d305f4ffac9bd3b92d7e0f84"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {"TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_l2canonicaltoken.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.9655728, "relation_name": "polygon.silver_bridge.hop_l2canonicaltoken", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH base_contracts AS (\n\n SELECT\n contract_address,\n amm_wrapper_address,\n block_number\n FROM\n {{ ref('silver_bridge__hop_ammwrapper') }}\n\n{% if is_incremental() %}\nWHERE\n amm_wrapper_address NOT IN (\n SELECT\n DISTINCT amm_wrapper_address\n FROM\n {{ this }}\n )\n{% endif %}\n),\nfunction_sigs AS (\n SELECT\n '0x1ee1bf67' AS function_sig,\n 'l2CanonicalToken' AS function_name\n),\ninputs AS (\n SELECT\n amm_wrapper_address,\n block_number,\n function_sig,\n function_name,\n 0 AS function_input,\n CONCAT(\n function_sig,\n LPAD(\n function_input,\n 64,\n 0\n )\n ) AS DATA\n FROM\n base_contracts\n JOIN function_sigs\n ON 1 = 1\n),\ncontract_reads AS (\n SELECT\n amm_wrapper_address,\n block_number,\n function_sig,\n function_name,\n function_input,\n DATA,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{ 'to': amm_wrapper_address, 'from': null, 'data': data }, utils.udf_int_to_hex(block_number) ]\n ) AS rpc_request,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n {},\n rpc_request,\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS read_output,\n SYSDATE() AS _inserted_timestamp\n FROM\n inputs\n),\nreads_flat AS (\n SELECT\n read_output,\n read_output :data :id :: STRING AS read_id,\n read_output :data :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n amm_wrapper_address,\n block_number,\n _inserted_timestamp\n FROM\n contract_reads\n)\nSELECT\n read_output,\n read_id,\n read_result,\n read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n block_number,\n contract_address,\n amm_wrapper_address,\n CASE\n WHEN contract_address = '{{ vars.CURATED_DEFI_BRIDGE_HOP_BRIDGE_CONTRACT }}' THEN '{{ vars.CURATED_DEFI_BRIDGE_HOP_TOKEN_CONTRACT }}'\n ELSE CONCAT('0x', SUBSTR(read_result, 27, 40))\n END AS token_address,\n _inserted_timestamp\nFROM\n reads_flat\n LEFT JOIN base_contracts USING(amm_wrapper_address)\nWHERE\n token_address <> '0x'\n AND token_address IS NOT NULL", "language": "sql", "refs": [{"name": "silver_bridge__hop_ammwrapper", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_bridge__hop_ammwrapper"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_l2canonicaltoken.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH base_contracts AS (\n\n SELECT\n contract_address,\n amm_wrapper_address,\n block_number\n FROM\n {{ ref('silver_bridge__hop_ammwrapper') }}\n\n{% if is_incremental() %}\nWHERE\n amm_wrapper_address NOT IN (\n SELECT\n DISTINCT amm_wrapper_address\n FROM\n {{ this }}\n )\n{% endif %}\n),\nfunction_sigs AS (\n SELECT\n '0x1ee1bf67' AS function_sig,\n 'l2CanonicalToken' AS function_name\n),\ninputs AS (\n SELECT\n amm_wrapper_address,\n block_number,\n function_sig,\n function_name,\n 0 AS function_input,\n CONCAT(\n function_sig,\n LPAD(\n function_input,\n 64,\n 0\n )\n ) AS DATA\n FROM\n base_contracts\n JOIN function_sigs\n ON 1 = 1\n),\ncontract_reads AS (\n SELECT\n amm_wrapper_address,\n block_number,\n function_sig,\n function_name,\n function_input,\n DATA,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{ 'to': amm_wrapper_address, 'from': null, 'data': data }, utils.udf_int_to_hex(block_number) ]\n ) AS rpc_request,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n {},\n rpc_request,\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS read_output,\n SYSDATE() AS _inserted_timestamp\n FROM\n inputs\n),\nreads_flat AS (\n SELECT\n read_output,\n read_output :data :id :: STRING AS read_id,\n read_output :data :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n amm_wrapper_address,\n block_number,\n _inserted_timestamp\n FROM\n contract_reads\n)\nSELECT\n read_output,\n read_id,\n read_result,\n read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n block_number,\n contract_address,\n amm_wrapper_address,\n CASE\n WHEN contract_address = '{{ vars.CURATED_DEFI_BRIDGE_HOP_BRIDGE_CONTRACT }}' THEN '{{ vars.CURATED_DEFI_BRIDGE_HOP_TOKEN_CONTRACT }}'\n ELSE CONCAT('0x', SUBSTR(read_result, 27, 40))\n END AS token_address,\n _inserted_timestamp\nFROM\n reads_flat\n LEFT JOIN base_contracts USING(amm_wrapper_address)\nWHERE\n token_address <> '0x'\n AND token_address IS NOT NULL\n*/\n\n\n\nWITH base_contracts AS (\n\n SELECT\n contract_address,\n amm_wrapper_address,\n block_number\n FROM\n polygon.silver_bridge.hop_ammwrapper\n\n\nWHERE\n amm_wrapper_address NOT IN (\n SELECT\n DISTINCT amm_wrapper_address\n FROM\n polygon.silver_bridge.hop_l2canonicaltoken\n )\n\n),\nfunction_sigs AS (\n SELECT\n '0x1ee1bf67' AS function_sig,\n 'l2CanonicalToken' AS function_name\n),\ninputs AS (\n SELECT\n amm_wrapper_address,\n block_number,\n function_sig,\n function_name,\n 0 AS function_input,\n CONCAT(\n function_sig,\n LPAD(\n function_input,\n 64,\n 0\n )\n ) AS DATA\n FROM\n base_contracts\n JOIN function_sigs\n ON 1 = 1\n),\ncontract_reads AS (\n SELECT\n amm_wrapper_address,\n block_number,\n function_sig,\n function_name,\n function_input,\n DATA,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{ 'to': amm_wrapper_address, 'from': null, 'data': data }, utils.udf_int_to_hex(block_number) ]\n ) AS rpc_request,\n live.udf_api(\n 'POST',\n '{URL}',\n {},\n rpc_request,\n 'Vault/prod/evm/quicknode/polygon/mainnet'\n ) AS read_output,\n SYSDATE() AS _inserted_timestamp\n FROM\n inputs\n),\nreads_flat AS (\n SELECT\n read_output,\n read_output :data :id :: STRING AS read_id,\n read_output :data :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n amm_wrapper_address,\n block_number,\n _inserted_timestamp\n FROM\n contract_reads\n)\nSELECT\n read_output,\n read_id,\n read_result,\n read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n block_number,\n contract_address,\n amm_wrapper_address,\n CASE\n WHEN contract_address = '0x58c61aee5ed3d748a1467085ed2650b697a66234' THEN '0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc'\n ELSE CONCAT('0x', SUBSTR(read_result, 27, 40))\n END AS token_address,\n _inserted_timestamp\nFROM\n reads_flat\n LEFT JOIN base_contracts USING(amm_wrapper_address)\nWHERE\n token_address <> '0x'\n AND token_address IS NOT NULL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__hop_ammwrapper": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__hop_ammwrapper", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_ammwrapper.sql", "original_file_path": "models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_ammwrapper.sql", "unique_id": "model.fsc_evm.silver_bridge__hop_ammwrapper", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "hop", "l2", "silver_bridge__hop_ammwrapper"], "alias": "hop_ammwrapper", "checksum": {"name": "sha256", "checksum": "ac0d7e4f38a925d4083912fe307c513133914cfcd4852e095b15cab45906f2e5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {"AMM_WRAPPER_ADDRESS": {"name": "AMM_WRAPPER_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_ammwrapper.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.9524744, "relation_name": "polygon.silver_bridge.hop_ammwrapper", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH base_contracts AS (\n\n SELECT\n contract_address,\n MAX(block_number) AS block_number\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0xe35dddd4ea75d7e9b3fe93af4f4e40e778c3da4074c9d93e7c6536f1e803c1eb'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND contract_address NOT IN (\n SELECT\n DISTINCT contract_address\n FROM\n {{ this }}\n)\n{% endif %}\nGROUP BY\n 1\n),\nfunction_sigs AS (\n SELECT\n '0xe9cdfe51' AS function_sig,\n 'ammWrapper' AS function_name\n),\ninputs AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n 0 AS function_input,\n CONCAT(\n function_sig,\n LPAD(\n function_input,\n 64,\n 0\n )\n ) AS DATA\n FROM\n base_contracts\n JOIN function_sigs\n ON 1 = 1\n),\ncontract_reads AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n function_input,\n DATA,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{ 'to': contract_address, 'from': null, 'data': data }, utils.udf_int_to_hex(block_number) ]\n ) AS rpc_request,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n {},\n rpc_request,\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS read_output,\n SYSDATE() AS _inserted_timestamp\n FROM\n inputs\n),\nreads_flat AS (\n SELECT\n read_output,\n read_output :data :id :: STRING AS read_id,\n read_output :data :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n contract_address,\n block_number,\n _inserted_timestamp\n FROM\n contract_reads\n)\nSELECT\n read_output,\n read_id,\n read_result,\n read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n block_number,\n contract_address,\n CONCAT('0x', SUBSTR(read_result, 27, 40)) AS amm_wrapper_address,\n _inserted_timestamp\nFROM\n reads_flat", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_ammwrapper.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH base_contracts AS (\n\n SELECT\n contract_address,\n MAX(block_number) AS block_number\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0xe35dddd4ea75d7e9b3fe93af4f4e40e778c3da4074c9d93e7c6536f1e803c1eb'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND contract_address NOT IN (\n SELECT\n DISTINCT contract_address\n FROM\n {{ this }}\n)\n{% endif %}\nGROUP BY\n 1\n),\nfunction_sigs AS (\n SELECT\n '0xe9cdfe51' AS function_sig,\n 'ammWrapper' AS function_name\n),\ninputs AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n 0 AS function_input,\n CONCAT(\n function_sig,\n LPAD(\n function_input,\n 64,\n 0\n )\n ) AS DATA\n FROM\n base_contracts\n JOIN function_sigs\n ON 1 = 1\n),\ncontract_reads AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n function_input,\n DATA,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{ 'to': contract_address, 'from': null, 'data': data }, utils.udf_int_to_hex(block_number) ]\n ) AS rpc_request,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n {},\n rpc_request,\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS read_output,\n SYSDATE() AS _inserted_timestamp\n FROM\n inputs\n),\nreads_flat AS (\n SELECT\n read_output,\n read_output :data :id :: STRING AS read_id,\n read_output :data :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n contract_address,\n block_number,\n _inserted_timestamp\n FROM\n contract_reads\n)\nSELECT\n read_output,\n read_id,\n read_result,\n read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n block_number,\n contract_address,\n CONCAT('0x', SUBSTR(read_result, 27, 40)) AS amm_wrapper_address,\n _inserted_timestamp\nFROM\n reads_flat\n*/\n\n\n\nWITH base_contracts AS (\n\n SELECT\n contract_address,\n MAX(block_number) AS block_number\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING = '0xe35dddd4ea75d7e9b3fe93af4f4e40e778c3da4074c9d93e7c6536f1e803c1eb'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.hop_ammwrapper\n)\nAND contract_address NOT IN (\n SELECT\n DISTINCT contract_address\n FROM\n polygon.silver_bridge.hop_ammwrapper\n)\n\nGROUP BY\n 1\n),\nfunction_sigs AS (\n SELECT\n '0xe9cdfe51' AS function_sig,\n 'ammWrapper' AS function_name\n),\ninputs AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n 0 AS function_input,\n CONCAT(\n function_sig,\n LPAD(\n function_input,\n 64,\n 0\n )\n ) AS DATA\n FROM\n base_contracts\n JOIN function_sigs\n ON 1 = 1\n),\ncontract_reads AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n function_input,\n DATA,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{ 'to': contract_address, 'from': null, 'data': data }, utils.udf_int_to_hex(block_number) ]\n ) AS rpc_request,\n live.udf_api(\n 'POST',\n '{URL}',\n {},\n rpc_request,\n 'Vault/prod/evm/quicknode/polygon/mainnet'\n ) AS read_output,\n SYSDATE() AS _inserted_timestamp\n FROM\n inputs\n),\nreads_flat AS (\n SELECT\n read_output,\n read_output :data :id :: STRING AS read_id,\n read_output :data :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n contract_address,\n block_number,\n _inserted_timestamp\n FROM\n contract_reads\n)\nSELECT\n read_output,\n read_id,\n read_result,\n read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n block_number,\n contract_address,\n CONCAT('0x', SUBSTR(read_result, 27, 40)) AS amm_wrapper_address,\n _inserted_timestamp\nFROM\n reads_flat", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__hop_transfersenttol2": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__hop_transfersenttol2", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/hop/l1/silver_bridge__hop_transfersenttol2.sql", "original_file_path": "models/curated_package/defi/bridge/silver/hop/l1/silver_bridge__hop_transfersenttol2.sql", "unique_id": "model.fsc_evm.silver_bridge__hop_transfersenttol2", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "hop", "l1", "silver_bridge__hop_transfersenttol2"], "alias": "hop_transfersenttol2", "checksum": {"name": "sha256", "checksum": "470b2de7c2d661458b38c584292610034bf77e3f5d2483299b317a8c32239ae2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018348.898946, "relation_name": "polygon.silver_bridge.hop_transfersenttol2", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH base_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"amountOutMin\" :: STRING\n ) AS amountOutMin,\n TRY_TO_NUMBER(\n decoded_log :\"chainId\" :: STRING\n ) AS chainId,\n TRY_TO_TIMESTAMP(\n decoded_log :\"deadline\" :: STRING\n ) AS deadline,\n decoded_log :\"recipient\" :: STRING AS recipient,\n decoded_log :\"relayer\" :: STRING AS relayer,\n TRY_TO_NUMBER(\n decoded_log :\"relayerFee\" :: STRING\n ) AS relayerFee,\n decoded_log AS decoded_flat,\n event_removed,\n IFF(\n tx_succeeded,\n 'SUCCESS',\n 'FAIL'\n ) AS tx_status,\n 'hop' AS protocol,\n 'v1' AS version,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n 'transfer_sent_to_l2' AS type,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n WHERE\n topics [0] :: STRING = '0x0a0607688c86ec1775abcdbab7b33a3a35a6c9cde677c9be880150c231cc6b0b'\n AND origin_to_address IS NOT NULL\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nhop_tokens AS (\n SELECT\n block_number,\n contract_address,\n token_address,\n _inserted_timestamp\n FROM\n {{ ref('silver_bridge__hop_l1canonicaltoken') }}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_status,\n contract_address AS bridge_address,\n origin_from_address AS sender,\n recipient AS receiver,\n receiver AS destination_chain_receiver,\n chainId AS destination_chain_id,\n token_address,\n amount,\n amountOutMin AS amount_out_min,\n deadline,\n relayer,\n relayerFee AS relayer_fee,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt b\n LEFT JOIN hop_tokens h USING(contract_address)", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "silver_bridge__hop_l1canonicaltoken", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.silver_bridge__hop_l1canonicaltoken"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/hop/l1/silver_bridge__hop_transfersenttol2.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH base_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"amountOutMin\" :: STRING\n ) AS amountOutMin,\n TRY_TO_NUMBER(\n decoded_log :\"chainId\" :: STRING\n ) AS chainId,\n TRY_TO_TIMESTAMP(\n decoded_log :\"deadline\" :: STRING\n ) AS deadline,\n decoded_log :\"recipient\" :: STRING AS recipient,\n decoded_log :\"relayer\" :: STRING AS relayer,\n TRY_TO_NUMBER(\n decoded_log :\"relayerFee\" :: STRING\n ) AS relayerFee,\n decoded_log AS decoded_flat,\n event_removed,\n IFF(\n tx_succeeded,\n 'SUCCESS',\n 'FAIL'\n ) AS tx_status,\n 'hop' AS protocol,\n 'v1' AS version,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n 'transfer_sent_to_l2' AS type,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n WHERE\n topics [0] :: STRING = '0x0a0607688c86ec1775abcdbab7b33a3a35a6c9cde677c9be880150c231cc6b0b'\n AND origin_to_address IS NOT NULL\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nhop_tokens AS (\n SELECT\n block_number,\n contract_address,\n token_address,\n _inserted_timestamp\n FROM\n {{ ref('silver_bridge__hop_l1canonicaltoken') }}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_status,\n contract_address AS bridge_address,\n origin_from_address AS sender,\n recipient AS receiver,\n receiver AS destination_chain_receiver,\n chainId AS destination_chain_id,\n token_address,\n amount,\n amountOutMin AS amount_out_min,\n deadline,\n relayer,\n relayerFee AS relayer_fee,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt b\n LEFT JOIN hop_tokens h USING(contract_address)\n*/\n\n\n\nWITH base_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"amountOutMin\" :: STRING\n ) AS amountOutMin,\n TRY_TO_NUMBER(\n decoded_log :\"chainId\" :: STRING\n ) AS chainId,\n TRY_TO_TIMESTAMP(\n decoded_log :\"deadline\" :: STRING\n ) AS deadline,\n decoded_log :\"recipient\" :: STRING AS recipient,\n decoded_log :\"relayer\" :: STRING AS relayer,\n TRY_TO_NUMBER(\n decoded_log :\"relayerFee\" :: STRING\n ) AS relayerFee,\n decoded_log AS decoded_flat,\n event_removed,\n IFF(\n tx_succeeded,\n 'SUCCESS',\n 'FAIL'\n ) AS tx_status,\n 'hop' AS protocol,\n 'v1' AS version,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n 'transfer_sent_to_l2' AS type,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs\n WHERE\n topics [0] :: STRING = '0x0a0607688c86ec1775abcdbab7b33a3a35a6c9cde677c9be880150c231cc6b0b'\n AND origin_to_address IS NOT NULL\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.hop_transfersenttol2\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nhop_tokens AS (\n SELECT\n block_number,\n contract_address,\n token_address,\n _inserted_timestamp\n FROM\n polygon.silver_bridge.hop_l1canonicaltoken\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_status,\n contract_address AS bridge_address,\n origin_from_address AS sender,\n recipient AS receiver,\n receiver AS destination_chain_receiver,\n chainId AS destination_chain_id,\n token_address,\n amount,\n amountOutMin AS amount_out_min,\n deadline,\n relayer,\n relayerFee AS relayer_fee,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt b\n LEFT JOIN hop_tokens h USING(contract_address)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__hop_l1canonicaltoken": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__hop_l1canonicaltoken", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/hop/l1/silver_bridge__hop_l1canonicaltoken.sql", "original_file_path": "models/curated_package/defi/bridge/silver/hop/l1/silver_bridge__hop_l1canonicaltoken.sql", "unique_id": "model.fsc_evm.silver_bridge__hop_l1canonicaltoken", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "hop", "l1", "silver_bridge__hop_l1canonicaltoken"], "alias": "hop_l1canonicaltoken", "checksum": {"name": "sha256", "checksum": "8cbee3db6adf74196610735114829d3873b2693a5c432e823b09e281535bb180"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {"TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/bridge/silver/hop/l1/silver_bridge__hop_l1canonicaltoken.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.979318, "relation_name": "polygon.silver_bridge.hop_l1canonicaltoken", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH base_contracts AS (\n\n SELECT\n contract_address,\n MAX(block_number) AS block_number\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0x0a0607688c86ec1775abcdbab7b33a3a35a6c9cde677c9be880150c231cc6b0b'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND contract_address NOT IN (\n SELECT\n DISTINCT contract_address\n FROM\n {{ this }}\n)\n{% endif %}\nGROUP BY\n 1\n),\nfunction_sigs AS (\n SELECT\n '0xb7a0bda6' AS function_sig,\n 'l1CanonicalToken' AS function_name\n),\ninputs AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n 0 AS function_input,\n CONCAT(\n function_sig,\n LPAD(\n function_input,\n 64,\n 0\n )\n ) AS DATA\n FROM\n base_contracts\n JOIN function_sigs\n ON 1 = 1\n),\ncontract_reads AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n function_input,\n DATA,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{ 'to': contract_address, 'from': null, 'data': data }, utils.udf_int_to_hex(block_number) ]\n ) AS rpc_request,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n {},\n rpc_request,\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS read_output,\n SYSDATE() AS _inserted_timestamp\n FROM\n inputs\n),\nreads_flat AS (\n SELECT\n read_output,\n read_output :data :id :: STRING AS read_id,\n read_output :data :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n contract_address,\n block_number,\n _inserted_timestamp\n FROM\n contract_reads\n)\nSELECT\n read_output,\n read_id,\n read_result,\n read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n block_number,\n contract_address,\n CASE\n WHEN read_result IS NULL\n AND contract_address IN ('{{ vars.CURATED_DEFI_BRIDGE_HOP_L1_CONTRACTS | join(\"', '\") }}')\n THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE CONCAT('0x', SUBSTR(read_result, 27, 40))\n END AS token_address,\n _inserted_timestamp\nFROM\n reads_flat\nWHERE\n token_address <> '0x'\n AND token_address IS NOT NULL", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/hop/l1/silver_bridge__hop_l1canonicaltoken.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH base_contracts AS (\n\n SELECT\n contract_address,\n MAX(block_number) AS block_number\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0x0a0607688c86ec1775abcdbab7b33a3a35a6c9cde677c9be880150c231cc6b0b'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND contract_address NOT IN (\n SELECT\n DISTINCT contract_address\n FROM\n {{ this }}\n)\n{% endif %}\nGROUP BY\n 1\n),\nfunction_sigs AS (\n SELECT\n '0xb7a0bda6' AS function_sig,\n 'l1CanonicalToken' AS function_name\n),\ninputs AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n 0 AS function_input,\n CONCAT(\n function_sig,\n LPAD(\n function_input,\n 64,\n 0\n )\n ) AS DATA\n FROM\n base_contracts\n JOIN function_sigs\n ON 1 = 1\n),\ncontract_reads AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n function_input,\n DATA,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{ 'to': contract_address, 'from': null, 'data': data }, utils.udf_int_to_hex(block_number) ]\n ) AS rpc_request,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n {},\n rpc_request,\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS read_output,\n SYSDATE() AS _inserted_timestamp\n FROM\n inputs\n),\nreads_flat AS (\n SELECT\n read_output,\n read_output :data :id :: STRING AS read_id,\n read_output :data :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n contract_address,\n block_number,\n _inserted_timestamp\n FROM\n contract_reads\n)\nSELECT\n read_output,\n read_id,\n read_result,\n read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n block_number,\n contract_address,\n CASE\n WHEN read_result IS NULL\n AND contract_address IN ('{{ vars.CURATED_DEFI_BRIDGE_HOP_L1_CONTRACTS | join(\"', '\") }}')\n THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE CONCAT('0x', SUBSTR(read_result, 27, 40))\n END AS token_address,\n _inserted_timestamp\nFROM\n reads_flat\nWHERE\n token_address <> '0x'\n AND token_address IS NOT NULL\n*/\n\n\n\nWITH base_contracts AS (\n\n SELECT\n contract_address,\n MAX(block_number) AS block_number\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING = '0x0a0607688c86ec1775abcdbab7b33a3a35a6c9cde677c9be880150c231cc6b0b'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.hop_l1canonicaltoken\n)\nAND contract_address NOT IN (\n SELECT\n DISTINCT contract_address\n FROM\n polygon.silver_bridge.hop_l1canonicaltoken\n)\n\nGROUP BY\n 1\n),\nfunction_sigs AS (\n SELECT\n '0xb7a0bda6' AS function_sig,\n 'l1CanonicalToken' AS function_name\n),\ninputs AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n 0 AS function_input,\n CONCAT(\n function_sig,\n LPAD(\n function_input,\n 64,\n 0\n )\n ) AS DATA\n FROM\n base_contracts\n JOIN function_sigs\n ON 1 = 1\n),\ncontract_reads AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n function_input,\n DATA,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{ 'to': contract_address, 'from': null, 'data': data }, utils.udf_int_to_hex(block_number) ]\n ) AS rpc_request,\n live.udf_api(\n 'POST',\n '{URL}',\n {},\n rpc_request,\n 'Vault/prod/evm/quicknode/polygon/mainnet'\n ) AS read_output,\n SYSDATE() AS _inserted_timestamp\n FROM\n inputs\n),\nreads_flat AS (\n SELECT\n read_output,\n read_output :data :id :: STRING AS read_id,\n read_output :data :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n contract_address,\n block_number,\n _inserted_timestamp\n FROM\n contract_reads\n)\nSELECT\n read_output,\n read_id,\n read_result,\n read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n block_number,\n contract_address,\n CASE\n WHEN read_result IS NULL\n AND contract_address IN ('')\n THEN '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ELSE CONCAT('0x', SUBSTR(read_result, 27, 40))\n END AS token_address,\n _inserted_timestamp\nFROM\n reads_flat\nWHERE\n token_address <> '0x'\n AND token_address IS NOT NULL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__gaszip_lz_sentdeposits": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__gaszip_lz_sentdeposits", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/gaszip/silver_bridge__gaszip_lz_sentdeposits.sql", "original_file_path": "models/curated_package/defi/bridge/silver/gaszip/silver_bridge__gaszip_lz_sentdeposits.sql", "unique_id": "model.fsc_evm.silver_bridge__gaszip_lz_sentdeposits", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "gaszip", "silver_bridge__gaszip_lz_sentdeposits"], "alias": "gaszip_lz_sentdeposits", "checksum": {"name": "sha256", "checksum": "b6c74ccb6b7e196e751c41bd6645cb8f07db176cf383473a6fc695931f130b65"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018349.5346375, "relation_name": "polygon.silver_bridge.gaszip_lz_sentdeposits", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'gaszip_lz'\n),\nsenddeposits AS (\n -- gaszip lz v2 event (only 1 per tx)\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS to_address,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS VALUE,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [3] :: STRING)) AS fee,\n CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40)) AS from_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0xa22a487af6300dc77db439586e8ce7028fd7f1d734efd33b287bc1e2af4cd162' -- senddeposits\n AND tx_succeeded\n AND m.type = 'send_deposits'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\npacketsent AS (\n -- pulls lz packetsent events from gaszip txs only (1 packet per chain, may have >1 per tx)\n SELECT\n tx_hash,\n event_index,\n DATA,\n CONCAT('0x', SUBSTR(DATA, 155, 40)) AS send_lib,\n utils.udf_hex_to_int(SUBSTR(DATA, 261, 16)) AS nonce,\n utils.udf_hex_to_int(SUBSTR(DATA, 277, 8)) AS srcEid,\n CONCAT('0x', SUBSTR(DATA, 258 + 18 + 8 + 25, 40)) AS src_app_address,\n utils.udf_hex_to_int(SUBSTR(DATA, 258 + 18 + 8 + 64 + 1, 8)) AS dstEid,\n CONCAT('0x', SUBSTR(DATA, 258 + 18 + 8 + 64 + 8 + 25, 40)) AS dst_app_address,\n TRY_TO_NUMBER(utils.udf_hex_to_int(SUBSTR(DATA, 630 + 1, 32))) AS native_amount,\n CONCAT('0x', SUBSTR(DATA, 630 + 1 + 32 + 24, 40)) AS receiver,\n ROW_NUMBER() over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) event_rank\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0x1ab700d4ced0c005b164c0f789fd09fcbb0156d4c2041b8a3bfbcd961cd1567f' -- packetsent\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n senddeposits\n )\n AND tx_succeeded\n AND m.type = 'packet_sent'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nnativetransfers AS (\n -- pulls native transfers in gaszip lz v2 bridging\n SELECT\n tx_hash,\n TRY_TO_NUMBER(amount_precise_raw) AS amount_precise_raw,\n '0x40375c92d9faf44d2f9db9bd9ba41a3317a2404f' AS token_address,\n -- wrapped native\n ROW_NUMBER() over (\n PARTITION BY tx_hash\n ORDER BY\n trace_index ASC\n ) transfer_rank\n FROM\n {{ ref('core__ez_native_transfers') }}\n WHERE\n from_address IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n WHERE\n type = 'packet_sent'\n )\n AND to_address IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n WHERE\n type = 'send_uln'\n )\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n senddeposits\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n s.tx_hash,\n p.event_index,\n -- joins on packetsent event index instead of senddeposits for uniqueness\n 'SendDeposit' AS event_name,\n contract_address AS bridge_address,\n contract_address,\n from_address AS sender,\n receiver,\n receiver AS destination_chain_receiver,\n nonce,\n dstEid AS destination_chain_id,\n chain AS destination_chain,\n amount_precise_raw AS amount_unadj,\n token_address,\n protocol,\n version,\n type,\n platform,\n CONCAT(\n s.tx_hash :: STRING,\n '-',\n p.event_index :: STRING\n ) AS _log_id,\n modified_timestamp\nFROM\n senddeposits s\n INNER JOIN packetsent p\n ON s.tx_hash = p.tx_hash\n LEFT JOIN nativetransfers t\n ON p.tx_hash = t.tx_hash\n AND event_rank = transfer_rank\n LEFT JOIN {{ ref('silver_bridge__layerzero_v2_bridge_seed') }}\n ON dstEid = eid", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__ez_native_transfers", "package": null, "version": null}, {"name": "silver_bridge__layerzero_v2_bridge_seed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__ez_native_transfers", "seed.fsc_evm.silver_bridge__layerzero_v2_bridge_seed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/gaszip/silver_bridge__gaszip_lz_sentdeposits.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'gaszip_lz'\n),\nsenddeposits AS (\n -- gaszip lz v2 event (only 1 per tx)\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS to_address,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS VALUE,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [3] :: STRING)) AS fee,\n CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40)) AS from_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0xa22a487af6300dc77db439586e8ce7028fd7f1d734efd33b287bc1e2af4cd162' -- senddeposits\n AND tx_succeeded\n AND m.type = 'send_deposits'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\npacketsent AS (\n -- pulls lz packetsent events from gaszip txs only (1 packet per chain, may have >1 per tx)\n SELECT\n tx_hash,\n event_index,\n DATA,\n CONCAT('0x', SUBSTR(DATA, 155, 40)) AS send_lib,\n utils.udf_hex_to_int(SUBSTR(DATA, 261, 16)) AS nonce,\n utils.udf_hex_to_int(SUBSTR(DATA, 277, 8)) AS srcEid,\n CONCAT('0x', SUBSTR(DATA, 258 + 18 + 8 + 25, 40)) AS src_app_address,\n utils.udf_hex_to_int(SUBSTR(DATA, 258 + 18 + 8 + 64 + 1, 8)) AS dstEid,\n CONCAT('0x', SUBSTR(DATA, 258 + 18 + 8 + 64 + 8 + 25, 40)) AS dst_app_address,\n TRY_TO_NUMBER(utils.udf_hex_to_int(SUBSTR(DATA, 630 + 1, 32))) AS native_amount,\n CONCAT('0x', SUBSTR(DATA, 630 + 1 + 32 + 24, 40)) AS receiver,\n ROW_NUMBER() over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) event_rank\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0x1ab700d4ced0c005b164c0f789fd09fcbb0156d4c2041b8a3bfbcd961cd1567f' -- packetsent\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n senddeposits\n )\n AND tx_succeeded\n AND m.type = 'packet_sent'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nnativetransfers AS (\n -- pulls native transfers in gaszip lz v2 bridging\n SELECT\n tx_hash,\n TRY_TO_NUMBER(amount_precise_raw) AS amount_precise_raw,\n '0x40375c92d9faf44d2f9db9bd9ba41a3317a2404f' AS token_address,\n -- wrapped native\n ROW_NUMBER() over (\n PARTITION BY tx_hash\n ORDER BY\n trace_index ASC\n ) transfer_rank\n FROM\n {{ ref('core__ez_native_transfers') }}\n WHERE\n from_address IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n WHERE\n type = 'packet_sent'\n )\n AND to_address IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n WHERE\n type = 'send_uln'\n )\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n senddeposits\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n s.tx_hash,\n p.event_index,\n -- joins on packetsent event index instead of senddeposits for uniqueness\n 'SendDeposit' AS event_name,\n contract_address AS bridge_address,\n contract_address,\n from_address AS sender,\n receiver,\n receiver AS destination_chain_receiver,\n nonce,\n dstEid AS destination_chain_id,\n chain AS destination_chain,\n amount_precise_raw AS amount_unadj,\n token_address,\n protocol,\n version,\n type,\n platform,\n CONCAT(\n s.tx_hash :: STRING,\n '-',\n p.event_index :: STRING\n ) AS _log_id,\n modified_timestamp\nFROM\n senddeposits s\n INNER JOIN packetsent p\n ON s.tx_hash = p.tx_hash\n LEFT JOIN nativetransfers t\n ON p.tx_hash = t.tx_hash\n AND event_rank = transfer_rank\n LEFT JOIN {{ ref('silver_bridge__layerzero_v2_bridge_seed') }}\n ON dstEid = eid\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'gaszip_lz'\n),\nsenddeposits AS (\n -- gaszip lz v2 event (only 1 per tx)\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS to_address,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS VALUE,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [3] :: STRING)) AS fee,\n CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40)) AS from_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0xa22a487af6300dc77db439586e8ce7028fd7f1d734efd33b287bc1e2af4cd162' -- senddeposits\n AND tx_succeeded\n AND m.type = 'send_deposits'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.gaszip_lz_sentdeposits\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\npacketsent AS (\n -- pulls lz packetsent events from gaszip txs only (1 packet per chain, may have >1 per tx)\n SELECT\n tx_hash,\n event_index,\n DATA,\n CONCAT('0x', SUBSTR(DATA, 155, 40)) AS send_lib,\n utils.udf_hex_to_int(SUBSTR(DATA, 261, 16)) AS nonce,\n utils.udf_hex_to_int(SUBSTR(DATA, 277, 8)) AS srcEid,\n CONCAT('0x', SUBSTR(DATA, 258 + 18 + 8 + 25, 40)) AS src_app_address,\n utils.udf_hex_to_int(SUBSTR(DATA, 258 + 18 + 8 + 64 + 1, 8)) AS dstEid,\n CONCAT('0x', SUBSTR(DATA, 258 + 18 + 8 + 64 + 8 + 25, 40)) AS dst_app_address,\n TRY_TO_NUMBER(utils.udf_hex_to_int(SUBSTR(DATA, 630 + 1, 32))) AS native_amount,\n CONCAT('0x', SUBSTR(DATA, 630 + 1 + 32 + 24, 40)) AS receiver,\n ROW_NUMBER() over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) event_rank\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0x1ab700d4ced0c005b164c0f789fd09fcbb0156d4c2041b8a3bfbcd961cd1567f' -- packetsent\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n senddeposits\n )\n AND tx_succeeded\n AND m.type = 'packet_sent'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.gaszip_lz_sentdeposits\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nnativetransfers AS (\n -- pulls native transfers in gaszip lz v2 bridging\n SELECT\n tx_hash,\n TRY_TO_NUMBER(amount_precise_raw) AS amount_precise_raw,\n '0x40375c92d9faf44d2f9db9bd9ba41a3317a2404f' AS token_address,\n -- wrapped native\n ROW_NUMBER() over (\n PARTITION BY tx_hash\n ORDER BY\n trace_index ASC\n ) transfer_rank\n FROM\n polygon.core.ez_native_transfers\n WHERE\n from_address IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n WHERE\n type = 'packet_sent'\n )\n AND to_address IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n WHERE\n type = 'send_uln'\n )\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n senddeposits\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.gaszip_lz_sentdeposits\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n s.tx_hash,\n p.event_index,\n -- joins on packetsent event index instead of senddeposits for uniqueness\n 'SendDeposit' AS event_name,\n contract_address AS bridge_address,\n contract_address,\n from_address AS sender,\n receiver,\n receiver AS destination_chain_receiver,\n nonce,\n dstEid AS destination_chain_id,\n chain AS destination_chain,\n amount_precise_raw AS amount_unadj,\n token_address,\n protocol,\n version,\n type,\n platform,\n CONCAT(\n s.tx_hash :: STRING,\n '-',\n p.event_index :: STRING\n ) AS _log_id,\n modified_timestamp\nFROM\n senddeposits s\n INNER JOIN packetsent p\n ON s.tx_hash = p.tx_hash\n LEFT JOIN nativetransfers t\n ON p.tx_hash = t.tx_hash\n AND event_rank = transfer_rank\n LEFT JOIN polygon.silver_bridge.layerzero_v2_bridge_seed\n ON dstEid = eid", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__hyperliquid": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__hyperliquid", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/hyperliquid/silver_bridge__hyperliquid.sql", "original_file_path": "models/curated_package/defi/bridge/silver/hyperliquid/silver_bridge__hyperliquid.sql", "unique_id": "model.fsc_evm.silver_bridge__hyperliquid", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "hyperliquid", "silver_bridge__hyperliquid"], "alias": "hyperliquid", "checksum": {"name": "sha256", "checksum": "06faa1ac391f7bf80aa9257917fa17c2fbc2529505da0774eeeae9f08e065e89"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018349.8568847, "relation_name": "polygon.silver_bridge.hyperliquid", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'hyperliquid'\n),\nmapping AS (\n SELECT\n c1.contract_address AS bridge_address,\n c2.contract_address AS token_address,\n version\n FROM\n contract_mapping c1\n INNER JOIN contract_mapping c2 USING (version)\n WHERE\n c1.type = 'bridge'\n AND c2.type = 'token'\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'Transfer' AS event_name,\n to_address AS bridge_address,\n 'hyperliquid' AS protocol,\n version,\n 'bridge' AS TYPE,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n from_address AS sender,\n from_address AS receiver,\n from_address AS destination_chain_receiver,\n t.contract_address AS token_address,\n raw_amount AS amount_unadj,\n '999' AS destination_chain_id,\n 'hyperliquid' AS destination_chain,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _id,\n inserted_timestamp,\n modified_timestamp\nFROM\n {{ ref('core__ez_token_transfers') }}\n t\n INNER JOIN mapping m\n ON t.to_address = m.bridge_address\n AND t.contract_address = m.token_address\nWHERE\n block_timestamp :: DATE >= '2023-02-01'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}", "language": "sql", "refs": [{"name": "core__ez_token_transfers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_token_transfers"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/hyperliquid/silver_bridge__hyperliquid.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'hyperliquid'\n),\nmapping AS (\n SELECT\n c1.contract_address AS bridge_address,\n c2.contract_address AS token_address,\n version\n FROM\n contract_mapping c1\n INNER JOIN contract_mapping c2 USING (version)\n WHERE\n c1.type = 'bridge'\n AND c2.type = 'token'\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'Transfer' AS event_name,\n to_address AS bridge_address,\n 'hyperliquid' AS protocol,\n version,\n 'bridge' AS TYPE,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n from_address AS sender,\n from_address AS receiver,\n from_address AS destination_chain_receiver,\n t.contract_address AS token_address,\n raw_amount AS amount_unadj,\n '999' AS destination_chain_id,\n 'hyperliquid' AS destination_chain,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _id,\n inserted_timestamp,\n modified_timestamp\nFROM\n {{ ref('core__ez_token_transfers') }}\n t\n INNER JOIN mapping m\n ON t.to_address = m.bridge_address\n AND t.contract_address = m.token_address\nWHERE\n block_timestamp :: DATE >= '2023-02-01'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'hyperliquid'\n),\nmapping AS (\n SELECT\n c1.contract_address AS bridge_address,\n c2.contract_address AS token_address,\n version\n FROM\n contract_mapping c1\n INNER JOIN contract_mapping c2 USING (version)\n WHERE\n c1.type = 'bridge'\n AND c2.type = 'token'\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'Transfer' AS event_name,\n to_address AS bridge_address,\n 'hyperliquid' AS protocol,\n version,\n 'bridge' AS TYPE,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n from_address AS sender,\n from_address AS receiver,\n from_address AS destination_chain_receiver,\n t.contract_address AS token_address,\n raw_amount AS amount_unadj,\n '999' AS destination_chain_id,\n 'hyperliquid' AS destination_chain,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _id,\n inserted_timestamp,\n modified_timestamp\nFROM\n polygon.core.ez_token_transfers\n t\n INNER JOIN mapping m\n ON t.to_address = m.bridge_address\n AND t.contract_address = m.token_address\nWHERE\n block_timestamp :: DATE >= '2023-02-01'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.hyperliquid\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__symbiosis_synthesizerequest": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__symbiosis_synthesizerequest", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/symbiosis/silver_bridge__symbiosis_synthesizerequest.sql", "original_file_path": "models/curated_package/defi/bridge/silver/symbiosis/silver_bridge__symbiosis_synthesizerequest.sql", "unique_id": "model.fsc_evm.silver_bridge__symbiosis_synthesizerequest", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "symbiosis", "silver_bridge__symbiosis_synthesizerequest"], "alias": "symbiosis_synthesizerequest", "checksum": {"name": "sha256", "checksum": "56aa263b2747d03b5d03429f4afd0e7a1ca28da1169b44ea641eb74510f1ad68"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018350.2993357, "relation_name": "polygon.silver_bridge.symbiosis_synthesizerequest", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'symbiosis'\n), \nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"chainID\" :: STRING\n ) AS chainID,\n decoded_log :\"from\" :: STRING AS from_address,\n decoded_log :\"id\" :: STRING AS id,\n decoded_log :\"revertableAddress\" :: STRING AS revertableAddress,\n decoded_log :\"to\" :: STRING AS to_address,\n decoded_log :\"token\" :: STRING AS token,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }} \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x31325fe0a1a2e6a5b1e41572156ba5b4e94f0fae7e7f63ec21e9b5ce1e4b3eab'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n from_address AS sender,\n to_address AS receiver,\n receiver AS destination_chain_receiver,\n amount,\n chainID AS destination_chain_id,\n id,\n revertableAddress AS revertable_address,\n token AS token_address,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/symbiosis/silver_bridge__symbiosis_synthesizerequest.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'symbiosis'\n), \nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"chainID\" :: STRING\n ) AS chainID,\n decoded_log :\"from\" :: STRING AS from_address,\n decoded_log :\"id\" :: STRING AS id,\n decoded_log :\"revertableAddress\" :: STRING AS revertableAddress,\n decoded_log :\"to\" :: STRING AS to_address,\n decoded_log :\"token\" :: STRING AS token,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }} \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x31325fe0a1a2e6a5b1e41572156ba5b4e94f0fae7e7f63ec21e9b5ce1e4b3eab'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n from_address AS sender,\n to_address AS receiver,\n receiver AS destination_chain_receiver,\n amount,\n chainID AS destination_chain_id,\n id,\n revertableAddress AS revertable_address,\n token AS token_address,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'symbiosis'\n), \nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"chainID\" :: STRING\n ) AS chainID,\n decoded_log :\"from\" :: STRING AS from_address,\n decoded_log :\"id\" :: STRING AS id,\n decoded_log :\"revertableAddress\" :: STRING AS revertableAddress,\n decoded_log :\"to\" :: STRING AS to_address,\n decoded_log :\"token\" :: STRING AS token,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x31325fe0a1a2e6a5b1e41572156ba5b4e94f0fae7e7f63ec21e9b5ce1e4b3eab'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.symbiosis_synthesizerequest\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n from_address AS sender,\n to_address AS receiver,\n receiver AS destination_chain_receiver,\n amount,\n chainID AS destination_chain_id,\n id,\n revertableAddress AS revertable_address,\n token AS token_address,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__multichain_v7_loganyswapout": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__multichain_v7_loganyswapout", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/multichain/silver_bridge__multichain_v7_loganyswapout.sql", "original_file_path": "models/curated_package/defi/bridge/silver/multichain/silver_bridge__multichain_v7_loganyswapout.sql", "unique_id": "model.fsc_evm.silver_bridge__multichain_v7_loganyswapout", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "multichain", "silver_bridge__multichain_v7_loganyswapout"], "alias": "multichain_v7_loganyswapout", "checksum": {"name": "sha256", "checksum": "d84b4752ff92a9b5c337411373e2c8171855fced3c2a82dc2fd3e949b7385695"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018350.6199286, "relation_name": "polygon.silver_bridge.multichain_v7_loganyswapout", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'multichain'\n), \nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n decoded_log :\"from\" :: STRING AS from_address,\n decoded_log :\"receiver\" :: STRING AS receiver,\n decoded_log :\"swapoutID\" :: STRING AS swapoutID,\n TRY_TO_NUMBER(\n decoded_log :\"toChainID\" :: STRING\n ) AS toChainID,\n decoded_log :\"token\" :: STRING AS token,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }} l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x0d969ae475ff6fcaf0dcfa760d4d8607244e8d95e9bf426f8d5d69f9a3e525af'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n LOWER(from_address) AS sender,\n LOWER(receiver) AS receiver,\n LOWER(receiver) AS destination_chain_receiver,\n amount,\n toChainID AS destination_chain_id,\n token AS token_address,\n swapoutID AS swapout_id,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt\nWHERE destination_chain_id <> 0", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/multichain/silver_bridge__multichain_v7_loganyswapout.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'multichain'\n), \nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n decoded_log :\"from\" :: STRING AS from_address,\n decoded_log :\"receiver\" :: STRING AS receiver,\n decoded_log :\"swapoutID\" :: STRING AS swapoutID,\n TRY_TO_NUMBER(\n decoded_log :\"toChainID\" :: STRING\n ) AS toChainID,\n decoded_log :\"token\" :: STRING AS token,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }} l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x0d969ae475ff6fcaf0dcfa760d4d8607244e8d95e9bf426f8d5d69f9a3e525af'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n LOWER(from_address) AS sender,\n LOWER(receiver) AS receiver,\n LOWER(receiver) AS destination_chain_receiver,\n amount,\n toChainID AS destination_chain_id,\n token AS token_address,\n swapoutID AS swapout_id,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt\nWHERE destination_chain_id <> 0\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'multichain'\n), \nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n decoded_log :\"from\" :: STRING AS from_address,\n decoded_log :\"receiver\" :: STRING AS receiver,\n decoded_log :\"swapoutID\" :: STRING AS swapoutID,\n TRY_TO_NUMBER(\n decoded_log :\"toChainID\" :: STRING\n ) AS toChainID,\n decoded_log :\"token\" :: STRING AS token,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x0d969ae475ff6fcaf0dcfa760d4d8607244e8d95e9bf426f8d5d69f9a3e525af'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.multichain_v7_loganyswapout\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n LOWER(from_address) AS sender,\n LOWER(receiver) AS receiver,\n LOWER(receiver) AS destination_chain_receiver,\n amount,\n toChainID AS destination_chain_id,\n token AS token_address,\n swapoutID AS swapout_id,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt\nWHERE destination_chain_id <> 0", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__stargate_createpool": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__stargate_createpool", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_createpool.sql", "original_file_path": "models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_createpool.sql", "unique_id": "model.fsc_evm.silver_bridge__stargate_createpool", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "stargate", "silver_bridge__stargate_createpool"], "alias": "stargate_createpool", "checksum": {"name": "sha256", "checksum": "dbd38f1a1a5b79d134ae25ea1adea2e5453908a8893a71fc71e78ff703dac7db"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {"TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_createpool.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018440.9929283, "relation_name": "polygon.silver_bridge.stargate_createpool", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'stargate'\n AND version = 'v1'\n AND type = 'factory'\n), \nbase_contracts AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n from_address,\n to_address AS contract_address,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }} t\n INNER JOIN contract_mapping m\n ON t.from_address = m.contract_address\n WHERE\n t.TYPE ILIKE 'create%'\n AND trace_succeeded\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND to_address NOT IN (\n SELECT\n DISTINCT pool_address\n FROM\n {{ this }}\n)\n{% endif %}\n),\nfunction_sigs AS (\n SELECT\n '0xfc0c546a' AS function_sig,\n 'token' AS function_name\n),\ninputs AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n 0 AS function_input,\n CONCAT(\n function_sig,\n LPAD(\n function_input,\n 64,\n 0\n )\n ) AS DATA\n FROM\n base_contracts\n JOIN function_sigs\n ON 1 = 1\n),\ncontract_reads AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n function_input,\n DATA,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{ 'to': contract_address, 'from': null, 'data': data }, utils.udf_int_to_hex(block_number) ]\n ) AS rpc_request,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n {},\n rpc_request,\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS read_output,\n SYSDATE() AS _inserted_timestamp\n FROM\n inputs\n),\nreads_flat AS (\n SELECT\n read_output,\n read_output :data :id :: STRING AS read_id,\n read_output :data :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n contract_address,\n block_number,\n _inserted_timestamp\n FROM\n contract_reads\n)\nSELECT\n read_output,\n read_id,\n read_result,\n read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n block_number,\n contract_address AS pool_address,\n LOWER(CONCAT('0x', SUBSTR(read_result, 27, 40))) AS token_address,\n _inserted_timestamp\nFROM\n reads_flat", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_createpool.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'stargate'\n AND version = 'v1'\n AND type = 'factory'\n), \nbase_contracts AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n from_address,\n to_address AS contract_address,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }} t\n INNER JOIN contract_mapping m\n ON t.from_address = m.contract_address\n WHERE\n t.TYPE ILIKE 'create%'\n AND trace_succeeded\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND to_address NOT IN (\n SELECT\n DISTINCT pool_address\n FROM\n {{ this }}\n)\n{% endif %}\n),\nfunction_sigs AS (\n SELECT\n '0xfc0c546a' AS function_sig,\n 'token' AS function_name\n),\ninputs AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n 0 AS function_input,\n CONCAT(\n function_sig,\n LPAD(\n function_input,\n 64,\n 0\n )\n ) AS DATA\n FROM\n base_contracts\n JOIN function_sigs\n ON 1 = 1\n),\ncontract_reads AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n function_input,\n DATA,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{ 'to': contract_address, 'from': null, 'data': data }, utils.udf_int_to_hex(block_number) ]\n ) AS rpc_request,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n {},\n rpc_request,\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS read_output,\n SYSDATE() AS _inserted_timestamp\n FROM\n inputs\n),\nreads_flat AS (\n SELECT\n read_output,\n read_output :data :id :: STRING AS read_id,\n read_output :data :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n contract_address,\n block_number,\n _inserted_timestamp\n FROM\n contract_reads\n)\nSELECT\n read_output,\n read_id,\n read_result,\n read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n block_number,\n contract_address AS pool_address,\n LOWER(CONCAT('0x', SUBSTR(read_result, 27, 40))) AS token_address,\n _inserted_timestamp\nFROM\n reads_flat\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'stargate'\n AND version = 'v1'\n AND type = 'factory'\n), \nbase_contracts AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n from_address,\n to_address AS contract_address,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n polygon.core.fact_traces t\n INNER JOIN contract_mapping m\n ON t.from_address = m.contract_address\n WHERE\n t.TYPE ILIKE 'create%'\n AND trace_succeeded\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.stargate_createpool\n)\nAND to_address NOT IN (\n SELECT\n DISTINCT pool_address\n FROM\n polygon.silver_bridge.stargate_createpool\n)\n\n),\nfunction_sigs AS (\n SELECT\n '0xfc0c546a' AS function_sig,\n 'token' AS function_name\n),\ninputs AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n 0 AS function_input,\n CONCAT(\n function_sig,\n LPAD(\n function_input,\n 64,\n 0\n )\n ) AS DATA\n FROM\n base_contracts\n JOIN function_sigs\n ON 1 = 1\n),\ncontract_reads AS (\n SELECT\n contract_address,\n block_number,\n function_sig,\n function_name,\n function_input,\n DATA,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{ 'to': contract_address, 'from': null, 'data': data }, utils.udf_int_to_hex(block_number) ]\n ) AS rpc_request,\n live.udf_api(\n 'POST',\n '{URL}',\n {},\n rpc_request,\n 'Vault/prod/evm/quicknode/polygon/mainnet'\n ) AS read_output,\n SYSDATE() AS _inserted_timestamp\n FROM\n inputs\n),\nreads_flat AS (\n SELECT\n read_output,\n read_output :data :id :: STRING AS read_id,\n read_output :data :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n contract_address,\n block_number,\n _inserted_timestamp\n FROM\n contract_reads\n)\nSELECT\n read_output,\n read_id,\n read_result,\n read_id_object,\n function_sig,\n function_name,\n function_input,\n DATA,\n block_number,\n contract_address AS pool_address,\n LOWER(CONCAT('0x', SUBSTR(read_result, 27, 40))) AS token_address,\n _inserted_timestamp\nFROM\n reads_flat", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__stargate_v2_busrode": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__stargate_v2_busrode", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_v2_busrode.sql", "original_file_path": "models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_v2_busrode.sql", "unique_id": "model.fsc_evm.silver_bridge__stargate_v2_busrode", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "stargate", "silver_bridge__stargate_v2_busrode"], "alias": "stargate_v2_busrode", "checksum": {"name": "sha256", "checksum": "2b5ef137d66c5e85aa44bcd9badcaa68ba0c32fcd29b9f947f84ffb13ad9c185"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018351.267498, "relation_name": "polygon.silver_bridge.stargate_v2_busrode", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'stargate'\n AND version = 'v2'\n),\nlogs AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS part,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n (\n contract_address IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n )\n AND topic_0 = '0x15955c5a4cc61b8fbb05301bce47fd31c0e6f935e1ab97fdac9b134c887bb074' --busRode\n )\n OR topic_0 = '0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a' --OFTSent\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\noft_sent AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index AS oft_sent_index,\n LEAD(event_index) over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) AS next_oft_sent_index,\n contract_address AS stargate_adapter_address,\n SUBSTR(\n topic_1,\n 3\n ) AS guid,\n '0x' || SUBSTR(\n topic_2,\n 27\n ) AS from_address,\n utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: INT AS dst_id,\n utils.udf_hex_to_int(\n part [1] :: STRING\n ) :: INT AS amount_sent,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n _log_id,\n modified_timestamp\n FROM\n logs\n WHERE\n topic_0 = '0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a'\n AND guid = '0000000000000000000000000000000000000000000000000000000000000000'\n),\nbus_raw AS (\n SELECT\n tx_hash,\n event_index AS bus_rode_index,\n LEAD(event_index) over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) AS next_bus_rode_index,\n utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: INT AS bus_dst_id,\n utils.udf_hex_to_int(\n part [1] :: STRING\n ) :: INT AS ticket_id,\n utils.udf_hex_to_int(\n part [2] :: STRING\n ) :: INT AS fare,\n regexp_substr_all(SUBSTR(DATA, 195), '.{64}') AS passenger_raw,\n utils.udf_hex_to_int(\n passenger_raw [1] :: STRING\n ) * 2 AS passenger_length,\n SUBSTR(\n DATA,\n 323,\n passenger_length\n ) AS passenger_final,\n utils.udf_hex_to_int(\n SUBSTR(\n passenger_final,\n 1,\n 4\n )\n ) AS asset_id,\n SUBSTR(\n passenger_final,\n 5,\n 64\n ) AS dst_receiver_address_raw,\n '0x' || SUBSTR(SUBSTR(passenger_final, 5, 64), 25) AS dst_receiver_address,\n SUBSTR(\n passenger_final,\n 85,\n 2\n ) AS is_native_drop\n FROM\n logs\n WHERE\n topic_0 = '0x15955c5a4cc61b8fbb05301bce47fd31c0e6f935e1ab97fdac9b134c887bb074'\n)\nSELECT\n o.block_number,\n o.block_timestamp,\n o.tx_hash,\n o.oft_sent_index,\n b.bus_rode_index,\n stargate_adapter_address,\n guid,\n from_address,\n dst_id,\n amount_sent,\n bus_dst_id,\n ticket_id,\n fare,\n asset_id,\n A.asset AS asset_name,\n A.address AS asset_address,\n dst_receiver_address,\n is_native_drop,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n _log_id,\n modified_timestamp\nFROM\n oft_sent o\n INNER JOIN bus_raw b\n ON o.tx_hash = b.tx_hash\n AND o.oft_sent_index > b.bus_rode_index\n AND (\n o.oft_sent_index < b.next_bus_rode_index\n OR b.next_bus_rode_index IS NULL\n )\n LEFT JOIN {{ ref('silver_bridge__stargate_v2_asset_seed') }} A\n ON asset_id = id\n AND A.chain = '{{ vars.GLOBAL_PROJECT_NAME }}'", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_bridge__stargate_v2_asset_seed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "seed.fsc_evm.silver_bridge__stargate_v2_asset_seed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_v2_busrode.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'stargate'\n AND version = 'v2'\n),\nlogs AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS part,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n (\n contract_address IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n )\n AND topic_0 = '0x15955c5a4cc61b8fbb05301bce47fd31c0e6f935e1ab97fdac9b134c887bb074' --busRode\n )\n OR topic_0 = '0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a' --OFTSent\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\noft_sent AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index AS oft_sent_index,\n LEAD(event_index) over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) AS next_oft_sent_index,\n contract_address AS stargate_adapter_address,\n SUBSTR(\n topic_1,\n 3\n ) AS guid,\n '0x' || SUBSTR(\n topic_2,\n 27\n ) AS from_address,\n utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: INT AS dst_id,\n utils.udf_hex_to_int(\n part [1] :: STRING\n ) :: INT AS amount_sent,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n _log_id,\n modified_timestamp\n FROM\n logs\n WHERE\n topic_0 = '0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a'\n AND guid = '0000000000000000000000000000000000000000000000000000000000000000'\n),\nbus_raw AS (\n SELECT\n tx_hash,\n event_index AS bus_rode_index,\n LEAD(event_index) over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) AS next_bus_rode_index,\n utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: INT AS bus_dst_id,\n utils.udf_hex_to_int(\n part [1] :: STRING\n ) :: INT AS ticket_id,\n utils.udf_hex_to_int(\n part [2] :: STRING\n ) :: INT AS fare,\n regexp_substr_all(SUBSTR(DATA, 195), '.{64}') AS passenger_raw,\n utils.udf_hex_to_int(\n passenger_raw [1] :: STRING\n ) * 2 AS passenger_length,\n SUBSTR(\n DATA,\n 323,\n passenger_length\n ) AS passenger_final,\n utils.udf_hex_to_int(\n SUBSTR(\n passenger_final,\n 1,\n 4\n )\n ) AS asset_id,\n SUBSTR(\n passenger_final,\n 5,\n 64\n ) AS dst_receiver_address_raw,\n '0x' || SUBSTR(SUBSTR(passenger_final, 5, 64), 25) AS dst_receiver_address,\n SUBSTR(\n passenger_final,\n 85,\n 2\n ) AS is_native_drop\n FROM\n logs\n WHERE\n topic_0 = '0x15955c5a4cc61b8fbb05301bce47fd31c0e6f935e1ab97fdac9b134c887bb074'\n)\nSELECT\n o.block_number,\n o.block_timestamp,\n o.tx_hash,\n o.oft_sent_index,\n b.bus_rode_index,\n stargate_adapter_address,\n guid,\n from_address,\n dst_id,\n amount_sent,\n bus_dst_id,\n ticket_id,\n fare,\n asset_id,\n A.asset AS asset_name,\n A.address AS asset_address,\n dst_receiver_address,\n is_native_drop,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n _log_id,\n modified_timestamp\nFROM\n oft_sent o\n INNER JOIN bus_raw b\n ON o.tx_hash = b.tx_hash\n AND o.oft_sent_index > b.bus_rode_index\n AND (\n o.oft_sent_index < b.next_bus_rode_index\n OR b.next_bus_rode_index IS NULL\n )\n LEFT JOIN {{ ref('silver_bridge__stargate_v2_asset_seed') }} A\n ON asset_id = id\n AND A.chain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'stargate'\n AND version = 'v2'\n),\nlogs AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS part,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n (\n contract_address IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n )\n AND topic_0 = '0x15955c5a4cc61b8fbb05301bce47fd31c0e6f935e1ab97fdac9b134c887bb074' --busRode\n )\n OR topic_0 = '0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a' --OFTSent\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.stargate_v2_busrode\n)\n\n),\noft_sent AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index AS oft_sent_index,\n LEAD(event_index) over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) AS next_oft_sent_index,\n contract_address AS stargate_adapter_address,\n SUBSTR(\n topic_1,\n 3\n ) AS guid,\n '0x' || SUBSTR(\n topic_2,\n 27\n ) AS from_address,\n utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: INT AS dst_id,\n utils.udf_hex_to_int(\n part [1] :: STRING\n ) :: INT AS amount_sent,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n _log_id,\n modified_timestamp\n FROM\n logs\n WHERE\n topic_0 = '0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a'\n AND guid = '0000000000000000000000000000000000000000000000000000000000000000'\n),\nbus_raw AS (\n SELECT\n tx_hash,\n event_index AS bus_rode_index,\n LEAD(event_index) over (\n PARTITION BY tx_hash\n ORDER BY\n event_index ASC\n ) AS next_bus_rode_index,\n utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: INT AS bus_dst_id,\n utils.udf_hex_to_int(\n part [1] :: STRING\n ) :: INT AS ticket_id,\n utils.udf_hex_to_int(\n part [2] :: STRING\n ) :: INT AS fare,\n regexp_substr_all(SUBSTR(DATA, 195), '.{64}') AS passenger_raw,\n utils.udf_hex_to_int(\n passenger_raw [1] :: STRING\n ) * 2 AS passenger_length,\n SUBSTR(\n DATA,\n 323,\n passenger_length\n ) AS passenger_final,\n utils.udf_hex_to_int(\n SUBSTR(\n passenger_final,\n 1,\n 4\n )\n ) AS asset_id,\n SUBSTR(\n passenger_final,\n 5,\n 64\n ) AS dst_receiver_address_raw,\n '0x' || SUBSTR(SUBSTR(passenger_final, 5, 64), 25) AS dst_receiver_address,\n SUBSTR(\n passenger_final,\n 85,\n 2\n ) AS is_native_drop\n FROM\n logs\n WHERE\n topic_0 = '0x15955c5a4cc61b8fbb05301bce47fd31c0e6f935e1ab97fdac9b134c887bb074'\n)\nSELECT\n o.block_number,\n o.block_timestamp,\n o.tx_hash,\n o.oft_sent_index,\n b.bus_rode_index,\n stargate_adapter_address,\n guid,\n from_address,\n dst_id,\n amount_sent,\n bus_dst_id,\n ticket_id,\n fare,\n asset_id,\n A.asset AS asset_name,\n A.address AS asset_address,\n dst_receiver_address,\n is_native_drop,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n _log_id,\n modified_timestamp\nFROM\n oft_sent o\n INNER JOIN bus_raw b\n ON o.tx_hash = b.tx_hash\n AND o.oft_sent_index > b.bus_rode_index\n AND (\n o.oft_sent_index < b.next_bus_rode_index\n OR b.next_bus_rode_index IS NULL\n )\n LEFT JOIN polygon.silver_bridge.stargate_v2_asset_seed A\n ON asset_id = id\n AND A.chain = 'polygon'", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__stargate_v2_busdriven": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__stargate_v2_busdriven", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_v2_busdriven.sql", "original_file_path": "models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_v2_busdriven.sql", "unique_id": "model.fsc_evm.silver_bridge__stargate_v2_busdriven", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "stargate", "silver_bridge__stargate_v2_busdriven"], "alias": "stargate_v2_busdriven", "checksum": {"name": "sha256", "checksum": "7fbe9f5aec447c0a2e5865f13ea2d0b66544f34d5c64fb0d4b1b4da21ab95c03"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018351.5852745, "relation_name": "polygon.silver_bridge.stargate_v2_busdriven", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'stargate'\n AND version = 'v2'\n),\nbus_driven_raw AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n l.contract_address,\n decoded_log :dstEid :: INT AS dst_id,\n SUBSTR(\n decoded_log :guid :: STRING,\n 3\n ) AS guid,\n decoded_log :numPassengers :: INT AS num_passengers,\n decoded_log :startTicketId :: INT AS start_ticket_id,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }} l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n event_name = 'BusDriven'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\nbus_driven_array AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n dst_id,\n guid,\n num_passengers,\n start_ticket_id,\n VALUE :: INT AS ticket_id,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n bus_driven_raw,\n LATERAL FLATTEN (\n input =>(\n array_generate_range(\n start_ticket_id,\n start_ticket_id + num_passengers,\n 1\n )\n )\n )\n),\nbus_driven AS (\n SELECT\n r.block_number,\n r.block_timestamp,\n r.tx_hash,\n r.event_index,\n r.event_name,\n r.guid,\n contract_address,\n stargate_adapter_address,\n r.dst_id,\n start_ticket_id,\n num_passengers,\n b.ticket_id,\n asset_id,\n asset_name,\n asset_address,\n from_address,\n dst_receiver_address,\n b.amount_sent,\n b.fare,\n r.origin_from_address,\n r.origin_to_address,\n r.origin_function_signature,\n r.protocol,\n r.version,\n r.type,\n r.platform,\n r._log_id,\n r.modified_timestamp\n FROM\n bus_driven_array r\n INNER JOIN {{ ref('silver_bridge__stargate_v2_busrode') }}\n b USING (\n dst_id,\n ticket_id\n )\n\n{% if is_incremental() %}\nWHERE\n b.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '24 hours'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nlayerzero AS (\n SELECT\n tx_hash,\n guid,\n payload,\n TYPE AS tx_type,\n nonce,\n src_chain_id,\n src_chain,\n sender_contract_address,\n dst_chain_id,\n dst_chain,\n receiver_contract_address,\n message_type\n FROM\n {{ ref('silver_bridge__layerzero_v2_packet') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n)\nSELECT\n b.block_number,\n b.block_timestamp,\n b.tx_hash,\n guid,\n b.event_index,\n b.event_name,\n b.contract_address,\n stargate_adapter_address,\n dst_id,\n start_ticket_id,\n num_passengers,\n ticket_id,\n asset_id,\n asset_name,\n asset_address,\n from_address,\n dst_receiver_address,\n amount_sent,\n fare,\n payload,\n tx_type,\n nonce,\n src_chain_id,\n src_chain,\n sender_contract_address,\n dst_chain_id,\n dst_chain,\n receiver_contract_address,\n message_type,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n bus_driven b\n INNER JOIN layerzero l USING (\n tx_hash,\n guid\n )", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "silver_bridge__stargate_v2_busrode", "package": null, "version": null}, {"name": "silver_bridge__layerzero_v2_packet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.silver_bridge__stargate_v2_busrode", "model.fsc_evm.silver_bridge__layerzero_v2_packet"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_v2_busdriven.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'stargate'\n AND version = 'v2'\n),\nbus_driven_raw AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n l.contract_address,\n decoded_log :dstEid :: INT AS dst_id,\n SUBSTR(\n decoded_log :guid :: STRING,\n 3\n ) AS guid,\n decoded_log :numPassengers :: INT AS num_passengers,\n decoded_log :startTicketId :: INT AS start_ticket_id,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }} l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n event_name = 'BusDriven'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\nbus_driven_array AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n dst_id,\n guid,\n num_passengers,\n start_ticket_id,\n VALUE :: INT AS ticket_id,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n bus_driven_raw,\n LATERAL FLATTEN (\n input =>(\n array_generate_range(\n start_ticket_id,\n start_ticket_id + num_passengers,\n 1\n )\n )\n )\n),\nbus_driven AS (\n SELECT\n r.block_number,\n r.block_timestamp,\n r.tx_hash,\n r.event_index,\n r.event_name,\n r.guid,\n contract_address,\n stargate_adapter_address,\n r.dst_id,\n start_ticket_id,\n num_passengers,\n b.ticket_id,\n asset_id,\n asset_name,\n asset_address,\n from_address,\n dst_receiver_address,\n b.amount_sent,\n b.fare,\n r.origin_from_address,\n r.origin_to_address,\n r.origin_function_signature,\n r.protocol,\n r.version,\n r.type,\n r.platform,\n r._log_id,\n r.modified_timestamp\n FROM\n bus_driven_array r\n INNER JOIN {{ ref('silver_bridge__stargate_v2_busrode') }}\n b USING (\n dst_id,\n ticket_id\n )\n\n{% if is_incremental() %}\nWHERE\n b.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '24 hours'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nlayerzero AS (\n SELECT\n tx_hash,\n guid,\n payload,\n TYPE AS tx_type,\n nonce,\n src_chain_id,\n src_chain,\n sender_contract_address,\n dst_chain_id,\n dst_chain,\n receiver_contract_address,\n message_type\n FROM\n {{ ref('silver_bridge__layerzero_v2_packet') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n)\nSELECT\n b.block_number,\n b.block_timestamp,\n b.tx_hash,\n guid,\n b.event_index,\n b.event_name,\n b.contract_address,\n stargate_adapter_address,\n dst_id,\n start_ticket_id,\n num_passengers,\n ticket_id,\n asset_id,\n asset_name,\n asset_address,\n from_address,\n dst_receiver_address,\n amount_sent,\n fare,\n payload,\n tx_type,\n nonce,\n src_chain_id,\n src_chain,\n sender_contract_address,\n dst_chain_id,\n dst_chain,\n receiver_contract_address,\n message_type,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n bus_driven b\n INNER JOIN layerzero l USING (\n tx_hash,\n guid\n )\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'stargate'\n AND version = 'v2'\n),\nbus_driven_raw AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n l.contract_address,\n decoded_log :dstEid :: INT AS dst_id,\n SUBSTR(\n decoded_log :guid :: STRING,\n 3\n ) AS guid,\n decoded_log :numPassengers :: INT AS num_passengers,\n decoded_log :startTicketId :: INT AS start_ticket_id,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n event_name = 'BusDriven'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.stargate_v2_busdriven\n)\n\n),\nbus_driven_array AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n dst_id,\n guid,\n num_passengers,\n start_ticket_id,\n VALUE :: INT AS ticket_id,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n bus_driven_raw,\n LATERAL FLATTEN (\n input =>(\n array_generate_range(\n start_ticket_id,\n start_ticket_id + num_passengers,\n 1\n )\n )\n )\n),\nbus_driven AS (\n SELECT\n r.block_number,\n r.block_timestamp,\n r.tx_hash,\n r.event_index,\n r.event_name,\n r.guid,\n contract_address,\n stargate_adapter_address,\n r.dst_id,\n start_ticket_id,\n num_passengers,\n b.ticket_id,\n asset_id,\n asset_name,\n asset_address,\n from_address,\n dst_receiver_address,\n b.amount_sent,\n b.fare,\n r.origin_from_address,\n r.origin_to_address,\n r.origin_function_signature,\n r.protocol,\n r.version,\n r.type,\n r.platform,\n r._log_id,\n r.modified_timestamp\n FROM\n bus_driven_array r\n INNER JOIN polygon.silver_bridge.stargate_v2_busrode\n b USING (\n dst_id,\n ticket_id\n )\n\n\nWHERE\n b.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '24 hours'\n FROM\n polygon.silver_bridge.stargate_v2_busdriven\n )\n\n),\nlayerzero AS (\n SELECT\n tx_hash,\n guid,\n payload,\n TYPE AS tx_type,\n nonce,\n src_chain_id,\n src_chain,\n sender_contract_address,\n dst_chain_id,\n dst_chain,\n receiver_contract_address,\n message_type\n FROM\n polygon.silver_bridge.layerzero_v2_packet\n\n\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.stargate_v2_busdriven\n )\n\n)\nSELECT\n b.block_number,\n b.block_timestamp,\n b.tx_hash,\n guid,\n b.event_index,\n b.event_name,\n b.contract_address,\n stargate_adapter_address,\n dst_id,\n start_ticket_id,\n num_passengers,\n ticket_id,\n asset_id,\n asset_name,\n asset_address,\n from_address,\n dst_receiver_address,\n amount_sent,\n fare,\n payload,\n tx_type,\n nonce,\n src_chain_id,\n src_chain,\n sender_contract_address,\n dst_chain_id,\n dst_chain,\n receiver_contract_address,\n message_type,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n bus_driven b\n INNER JOIN layerzero l USING (\n tx_hash,\n guid\n )", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__stargate_swap": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__stargate_swap", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_swap.sql", "original_file_path": "models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_swap.sql", "unique_id": "model.fsc_evm.silver_bridge__stargate_swap", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "stargate", "silver_bridge__stargate_swap"], "alias": "stargate_swap", "checksum": {"name": "sha256", "checksum": "1c265974f35c86950cfb3c7e3cb5ad52a998810a26955ff9aebc9544cfe76301"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018351.9070067, "relation_name": "polygon.silver_bridge.stargate_swap", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'stargate'\n AND version = 'v1'\n AND type = 'bridge'\n),\nbase_evt AS (\n SELECT\n d.block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n d.contract_address,\n m.contract_address AS bridge_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amountSD\" :: STRING\n ) AS amountSD,\n TRY_TO_NUMBER(\n decoded_log :\"chainId\" :: STRING\n ) AS chainId,\n CASE\n WHEN chainId < 100 THEN chainId + 100\n ELSE chainId\n END AS destination_chain_id,\n TRY_TO_NUMBER(\n decoded_log :\"dstPoolId\" :: STRING\n ) AS dstPoolId,\n TRY_TO_NUMBER(\n decoded_log :\"eqFee\" :: STRING\n ) AS eqFee,\n TRY_TO_NUMBER(\n decoded_log :\"eqReward\" :: STRING\n ) AS eqReward,\n TRY_TO_NUMBER(\n decoded_log :\"amountSD\" :: STRING\n ) AS lpFee,\n TRY_TO_NUMBER(\n decoded_log :\"amountSD\" :: STRING\n ) AS protocolFee,\n decoded_log :\"from\" :: STRING AS from_address,\n decoded_log,\n token_address,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n d\n INNER JOIN {{ ref('silver_bridge__stargate_createpool') }} p\n ON d.contract_address = p.pool_address\n CROSS JOIN contract_mapping m\n WHERE\n topics [0] :: STRING = '0x34660fc8af304464529f48a778e03d03e4d34bcd5f9b6f0cfbf3cd238c642f7f'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n bridge_address,\n from_address AS sender,\n from_address AS receiver,\n receiver AS destination_chain_receiver,\n amountSD AS amount_unadj,\n destination_chain_id,\n LOWER(chain_name) AS destination_chain,\n dstPoolId AS destination_pool_id,\n eqFee AS fee,\n eqReward AS reward,\n lpFee AS lp_fee,\n protocolFee AS protocol_fee,\n token_address,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt b\n LEFT JOIN {{ ref('silver_bridge__stargate_chain_id_seed') }}\n s\n ON b.destination_chain_id :: STRING = s.chain_id :: STRING", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "silver_bridge__stargate_createpool", "package": null, "version": null}, {"name": "silver_bridge__stargate_chain_id_seed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.silver_bridge__stargate_createpool", "seed.fsc_evm.silver_bridge__stargate_chain_id_seed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_swap.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'stargate'\n AND version = 'v1'\n AND type = 'bridge'\n),\nbase_evt AS (\n SELECT\n d.block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n d.contract_address,\n m.contract_address AS bridge_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amountSD\" :: STRING\n ) AS amountSD,\n TRY_TO_NUMBER(\n decoded_log :\"chainId\" :: STRING\n ) AS chainId,\n CASE\n WHEN chainId < 100 THEN chainId + 100\n ELSE chainId\n END AS destination_chain_id,\n TRY_TO_NUMBER(\n decoded_log :\"dstPoolId\" :: STRING\n ) AS dstPoolId,\n TRY_TO_NUMBER(\n decoded_log :\"eqFee\" :: STRING\n ) AS eqFee,\n TRY_TO_NUMBER(\n decoded_log :\"eqReward\" :: STRING\n ) AS eqReward,\n TRY_TO_NUMBER(\n decoded_log :\"amountSD\" :: STRING\n ) AS lpFee,\n TRY_TO_NUMBER(\n decoded_log :\"amountSD\" :: STRING\n ) AS protocolFee,\n decoded_log :\"from\" :: STRING AS from_address,\n decoded_log,\n token_address,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n d\n INNER JOIN {{ ref('silver_bridge__stargate_createpool') }} p\n ON d.contract_address = p.pool_address\n CROSS JOIN contract_mapping m\n WHERE\n topics [0] :: STRING = '0x34660fc8af304464529f48a778e03d03e4d34bcd5f9b6f0cfbf3cd238c642f7f'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n bridge_address,\n from_address AS sender,\n from_address AS receiver,\n receiver AS destination_chain_receiver,\n amountSD AS amount_unadj,\n destination_chain_id,\n LOWER(chain_name) AS destination_chain,\n dstPoolId AS destination_pool_id,\n eqFee AS fee,\n eqReward AS reward,\n lpFee AS lp_fee,\n protocolFee AS protocol_fee,\n token_address,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt b\n LEFT JOIN {{ ref('silver_bridge__stargate_chain_id_seed') }}\n s\n ON b.destination_chain_id :: STRING = s.chain_id :: STRING\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'stargate'\n AND version = 'v1'\n AND type = 'bridge'\n),\nbase_evt AS (\n SELECT\n d.block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n d.contract_address,\n m.contract_address AS bridge_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amountSD\" :: STRING\n ) AS amountSD,\n TRY_TO_NUMBER(\n decoded_log :\"chainId\" :: STRING\n ) AS chainId,\n CASE\n WHEN chainId < 100 THEN chainId + 100\n ELSE chainId\n END AS destination_chain_id,\n TRY_TO_NUMBER(\n decoded_log :\"dstPoolId\" :: STRING\n ) AS dstPoolId,\n TRY_TO_NUMBER(\n decoded_log :\"eqFee\" :: STRING\n ) AS eqFee,\n TRY_TO_NUMBER(\n decoded_log :\"eqReward\" :: STRING\n ) AS eqReward,\n TRY_TO_NUMBER(\n decoded_log :\"amountSD\" :: STRING\n ) AS lpFee,\n TRY_TO_NUMBER(\n decoded_log :\"amountSD\" :: STRING\n ) AS protocolFee,\n decoded_log :\"from\" :: STRING AS from_address,\n decoded_log,\n token_address,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs\n d\n INNER JOIN polygon.silver_bridge.stargate_createpool p\n ON d.contract_address = p.pool_address\n CROSS JOIN contract_mapping m\n WHERE\n topics [0] :: STRING = '0x34660fc8af304464529f48a778e03d03e4d34bcd5f9b6f0cfbf3cd238c642f7f'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.stargate_swap\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n bridge_address,\n from_address AS sender,\n from_address AS receiver,\n receiver AS destination_chain_receiver,\n amountSD AS amount_unadj,\n destination_chain_id,\n LOWER(chain_name) AS destination_chain,\n dstPoolId AS destination_pool_id,\n eqFee AS fee,\n eqReward AS reward,\n lpFee AS lp_fee,\n protocolFee AS protocol_fee,\n token_address,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt b\n LEFT JOIN polygon.silver_bridge.stargate_chain_id_seed\n s\n ON b.destination_chain_id :: STRING = s.chain_id :: STRING", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__stargate_v2_oft": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__stargate_v2_oft", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_v2_oft.sql", "original_file_path": "models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_v2_oft.sql", "unique_id": "model.fsc_evm.silver_bridge__stargate_v2_oft", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "stargate", "silver_bridge__stargate_v2_oft"], "alias": "stargate_v2_oft", "checksum": {"name": "sha256", "checksum": "30216a7659f53e8abd7ac4038a5bd5bce3fd12938e2d918634a0c54501343f36"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018352.2272992, "relation_name": "polygon.silver_bridge.stargate_v2_oft", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'stargate'\n AND version = 'v2'\n),\nlayerzero AS (\n\n SELECT\n tx_hash,\n payload,\n tx_type,\n nonce,\n src_chain_id,\n src_chain,\n sender_contract_address,\n dst_chain_id,\n dst_chain,\n receiver_contract_address,\n guid,\n message_type,\n SUBSTR(\n payload,\n 229,\n 4\n ) AS message_type_2,\n '0x' || SUBSTR(SUBSTR(payload, 233, 64), 25) AS to_address,\n executor_address,\n executor_fee,\n dvn_contract_address,\n dvn_fees,\n optional_dvns,\n required_dvns,\n total_dvn_fees,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n modified_timestamp\n FROM\n {{ ref('silver_bridge__layerzero_v2_packet') }} l\n INNER JOIN contract_mapping m\n ON l.sender_contract_address = m.contract_address\n\n{% if is_incremental() %}\nWHERE modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\noft_raw AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n contract_address AS stargate_oft_address,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS part,\n SUBSTR(\n topic_1,\n 3\n ) AS guid,\n '0x' || SUBSTR(\n topic_2,\n 27\n ) AS from_address,\n utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: INT AS dst_chain_id_oft,\n utils.udf_hex_to_int(\n part [1] :: STRING\n ) :: INT AS amount_sent,\n utils.udf_hex_to_int(\n part [2] :: STRING\n ) :: INT AS amount_received,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topic_0 = '0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a' --OFTSent\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n guid,\n event_index,\n 'OFTSent' AS event_name,\n stargate_oft_address,\n stargate_oft_address AS contract_address,\n A.address AS token_address,\n A.id AS asset_id,\n A.asset AS asset_name,\n from_address,\n to_address,\n src_chain_id,\n src_chain,\n dst_chain_id,\n dst_chain,\n dst_chain_id_oft,\n amount_sent,\n amount_received,\n payload,\n tx_type,\n nonce,\n sender_contract_address,\n receiver_contract_address,\n message_type,\n message_type_2,\n executor_address,\n executor_fee,\n dvn_contract_address,\n dvn_fees,\n optional_dvns,\n required_dvns,\n total_dvn_fees,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n oft_raw o\n INNER JOIN layerzero l USING (\n tx_hash,\n guid\n )\n LEFT JOIN {{ ref('silver_bridge__stargate_v2_asset_seed') }} A\n ON o.stargate_oft_address = A.oftaddress\n AND A.chain = '{{ vars.GLOBAL_PROJECT_NAME }}'", "language": "sql", "refs": [{"name": "silver_bridge__layerzero_v2_packet", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_bridge__stargate_v2_asset_seed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_bridge__layerzero_v2_packet", "model.fsc_evm.core__fact_event_logs", "seed.fsc_evm.silver_bridge__stargate_v2_asset_seed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_v2_oft.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'stargate'\n AND version = 'v2'\n),\nlayerzero AS (\n\n SELECT\n tx_hash,\n payload,\n tx_type,\n nonce,\n src_chain_id,\n src_chain,\n sender_contract_address,\n dst_chain_id,\n dst_chain,\n receiver_contract_address,\n guid,\n message_type,\n SUBSTR(\n payload,\n 229,\n 4\n ) AS message_type_2,\n '0x' || SUBSTR(SUBSTR(payload, 233, 64), 25) AS to_address,\n executor_address,\n executor_fee,\n dvn_contract_address,\n dvn_fees,\n optional_dvns,\n required_dvns,\n total_dvn_fees,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n modified_timestamp\n FROM\n {{ ref('silver_bridge__layerzero_v2_packet') }} l\n INNER JOIN contract_mapping m\n ON l.sender_contract_address = m.contract_address\n\n{% if is_incremental() %}\nWHERE modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\noft_raw AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n contract_address AS stargate_oft_address,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS part,\n SUBSTR(\n topic_1,\n 3\n ) AS guid,\n '0x' || SUBSTR(\n topic_2,\n 27\n ) AS from_address,\n utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: INT AS dst_chain_id_oft,\n utils.udf_hex_to_int(\n part [1] :: STRING\n ) :: INT AS amount_sent,\n utils.udf_hex_to_int(\n part [2] :: STRING\n ) :: INT AS amount_received,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topic_0 = '0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a' --OFTSent\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n guid,\n event_index,\n 'OFTSent' AS event_name,\n stargate_oft_address,\n stargate_oft_address AS contract_address,\n A.address AS token_address,\n A.id AS asset_id,\n A.asset AS asset_name,\n from_address,\n to_address,\n src_chain_id,\n src_chain,\n dst_chain_id,\n dst_chain,\n dst_chain_id_oft,\n amount_sent,\n amount_received,\n payload,\n tx_type,\n nonce,\n sender_contract_address,\n receiver_contract_address,\n message_type,\n message_type_2,\n executor_address,\n executor_fee,\n dvn_contract_address,\n dvn_fees,\n optional_dvns,\n required_dvns,\n total_dvn_fees,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n oft_raw o\n INNER JOIN layerzero l USING (\n tx_hash,\n guid\n )\n LEFT JOIN {{ ref('silver_bridge__stargate_v2_asset_seed') }} A\n ON o.stargate_oft_address = A.oftaddress\n AND A.chain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'stargate'\n AND version = 'v2'\n),\nlayerzero AS (\n\n SELECT\n tx_hash,\n payload,\n tx_type,\n nonce,\n src_chain_id,\n src_chain,\n sender_contract_address,\n dst_chain_id,\n dst_chain,\n receiver_contract_address,\n guid,\n message_type,\n SUBSTR(\n payload,\n 229,\n 4\n ) AS message_type_2,\n '0x' || SUBSTR(SUBSTR(payload, 233, 64), 25) AS to_address,\n executor_address,\n executor_fee,\n dvn_contract_address,\n dvn_fees,\n optional_dvns,\n required_dvns,\n total_dvn_fees,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n modified_timestamp\n FROM\n polygon.silver_bridge.layerzero_v2_packet l\n INNER JOIN contract_mapping m\n ON l.sender_contract_address = m.contract_address\n\n\nWHERE modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.stargate_v2_oft\n)\n\n),\noft_raw AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n contract_address AS stargate_oft_address,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS part,\n SUBSTR(\n topic_1,\n 3\n ) AS guid,\n '0x' || SUBSTR(\n topic_2,\n 27\n ) AS from_address,\n utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: INT AS dst_chain_id_oft,\n utils.udf_hex_to_int(\n part [1] :: STRING\n ) :: INT AS amount_sent,\n utils.udf_hex_to_int(\n part [2] :: STRING\n ) :: INT AS amount_received,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n topic_0 = '0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a' --OFTSent\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.stargate_v2_oft\n)\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n guid,\n event_index,\n 'OFTSent' AS event_name,\n stargate_oft_address,\n stargate_oft_address AS contract_address,\n A.address AS token_address,\n A.id AS asset_id,\n A.asset AS asset_name,\n from_address,\n to_address,\n src_chain_id,\n src_chain,\n dst_chain_id,\n dst_chain,\n dst_chain_id_oft,\n amount_sent,\n amount_received,\n payload,\n tx_type,\n nonce,\n sender_contract_address,\n receiver_contract_address,\n message_type,\n message_type_2,\n executor_address,\n executor_fee,\n dvn_contract_address,\n dvn_fees,\n optional_dvns,\n required_dvns,\n total_dvn_fees,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n oft_raw o\n INNER JOIN layerzero l USING (\n tx_hash,\n guid\n )\n LEFT JOIN polygon.silver_bridge.stargate_v2_asset_seed A\n ON o.stargate_oft_address = A.oftaddress\n AND A.chain = 'polygon'", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__stargate_v2": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__stargate_v2", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_v2.sql", "original_file_path": "models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_v2.sql", "unique_id": "model.fsc_evm.silver_bridge__stargate_v2", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "stargate", "silver_bridge__stargate_v2"], "alias": "stargate_v2", "checksum": {"name": "sha256", "checksum": "f59923d6c5addfa98ac19fb2def58313577126a2701e6eae7a2b281a42553dd0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018352.548145, "relation_name": "polygon.silver_bridge.stargate_v2", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH bus_driven AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n event_name,\n stargate_adapter_address AS bridge_address,\n guid,\n ticket_id,\n from_address AS sender,\n dst_receiver_address AS receiver,\n dst_receiver_address AS destination_chain_receiver,\n dst_chain_id,\n dst_chain_id :: STRING AS destination_chain_id,\n dst_chain AS destination_chain,\n asset_address AS token_address,\n NULL AS token_symbol,\n amount_sent AS amount_unadj,\n src_chain_id,\n src_chain,\n asset_id,\n asset_name,\n payload,\n tx_type,\n nonce,\n sender_contract_address,\n receiver_contract_address,\n message_type,\n protocol,\n version,\n type,\n platform,\n CONCAT(\n tx_hash,\n '-',\n event_index,\n '-',\n ticket_id\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('silver_bridge__stargate_v2_busdriven') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\noft_sent AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'OFTSent' AS event_name,\n contract_address AS bridge_address,\n guid,\n NULL AS ticket_id,\n from_address AS sender,\n to_address AS receiver,\n to_address AS destination_chain_receiver,\n dst_chain_id,\n dst_chain_id :: STRING AS destination_chain_id,\n dst_chain AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_sent AS amount_unadj,\n src_chain_id,\n src_chain,\n asset_id,\n asset_name,\n payload,\n tx_type,\n nonce,\n sender_contract_address,\n receiver_contract_address,\n message_type,\n protocol,\n version,\n type,\n platform,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('silver_bridge__stargate_v2_oft') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncombined AS (\n SELECT\n *\n FROM\n bus_driven\n UNION ALL\n SELECT\n *\n FROM\n oft_sent\n),\nFINAL AS (\n SELECT\n *\n FROM\n combined\n\n{% if is_incremental() and 'stargate_heal' in vars.CURATED_FR_MODELS %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n event_name,\n bridge_address,\n guid,\n ticket_id,\n sender,\n receiver,\n destination_chain_receiver,\n dst_chain_id,\n destination_chain_id,\n LOWER(\n b.chain\n ) AS destination_chain,\n A.address AS token_address,\n A.asset AS token_symbol,\n amount_unadj,\n src_chain_id,\n src_chain,\n A.id AS asset_id,\n A.asset AS asset_name,\n payload,\n tx_type,\n nonce,\n sender_contract_address,\n receiver_contract_address,\n message_type,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n {{ this }}\n t\n LEFT JOIN {{ ref('silver_bridge__stargate_v2_asset_seed') }} A\n ON t.bridge_address = A.oftaddress\n AND A.chain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n LEFT JOIN {{ ref('silver_bridge__layerzero_v2_bridge_seed') }}\n b\n ON t.destination_chain_id = b.eid\nWHERE\n t.token_address IS NULL\n OR t.destination_chain IS NULL\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n event_name,\n bridge_address,\n guid,\n ticket_id,\n sender,\n receiver,\n destination_chain_receiver,\n dst_chain_id,\n destination_chain_id,\n destination_chain,\n token_address,\n token_symbol,\n amount_unadj,\n src_chain_id,\n src_chain,\n asset_id,\n asset_name,\n payload,\n tx_type,\n nonce,\n sender_contract_address,\n receiver_contract_address,\n message_type,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n FINAL qualify ROW_NUMBER() over (\n PARTITION BY _log_id\n ORDER BY\n modified_timestamp DESC,\n destination_chain DESC nulls last\n ) = 1", "language": "sql", "refs": [{"name": "silver_bridge__stargate_v2_busdriven", "package": null, "version": null}, {"name": "silver_bridge__stargate_v2_oft", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_bridge__stargate_v2_busdriven", "model.fsc_evm.silver_bridge__stargate_v2_oft"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_v2.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH bus_driven AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n event_name,\n stargate_adapter_address AS bridge_address,\n guid,\n ticket_id,\n from_address AS sender,\n dst_receiver_address AS receiver,\n dst_receiver_address AS destination_chain_receiver,\n dst_chain_id,\n dst_chain_id :: STRING AS destination_chain_id,\n dst_chain AS destination_chain,\n asset_address AS token_address,\n NULL AS token_symbol,\n amount_sent AS amount_unadj,\n src_chain_id,\n src_chain,\n asset_id,\n asset_name,\n payload,\n tx_type,\n nonce,\n sender_contract_address,\n receiver_contract_address,\n message_type,\n protocol,\n version,\n type,\n platform,\n CONCAT(\n tx_hash,\n '-',\n event_index,\n '-',\n ticket_id\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('silver_bridge__stargate_v2_busdriven') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\noft_sent AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'OFTSent' AS event_name,\n contract_address AS bridge_address,\n guid,\n NULL AS ticket_id,\n from_address AS sender,\n to_address AS receiver,\n to_address AS destination_chain_receiver,\n dst_chain_id,\n dst_chain_id :: STRING AS destination_chain_id,\n dst_chain AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_sent AS amount_unadj,\n src_chain_id,\n src_chain,\n asset_id,\n asset_name,\n payload,\n tx_type,\n nonce,\n sender_contract_address,\n receiver_contract_address,\n message_type,\n protocol,\n version,\n type,\n platform,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('silver_bridge__stargate_v2_oft') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncombined AS (\n SELECT\n *\n FROM\n bus_driven\n UNION ALL\n SELECT\n *\n FROM\n oft_sent\n),\nFINAL AS (\n SELECT\n *\n FROM\n combined\n\n{% if is_incremental() and 'stargate_heal' in vars.CURATED_FR_MODELS %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n event_name,\n bridge_address,\n guid,\n ticket_id,\n sender,\n receiver,\n destination_chain_receiver,\n dst_chain_id,\n destination_chain_id,\n LOWER(\n b.chain\n ) AS destination_chain,\n A.address AS token_address,\n A.asset AS token_symbol,\n amount_unadj,\n src_chain_id,\n src_chain,\n A.id AS asset_id,\n A.asset AS asset_name,\n payload,\n tx_type,\n nonce,\n sender_contract_address,\n receiver_contract_address,\n message_type,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n {{ this }}\n t\n LEFT JOIN {{ ref('silver_bridge__stargate_v2_asset_seed') }} A\n ON t.bridge_address = A.oftaddress\n AND A.chain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n LEFT JOIN {{ ref('silver_bridge__layerzero_v2_bridge_seed') }}\n b\n ON t.destination_chain_id = b.eid\nWHERE\n t.token_address IS NULL\n OR t.destination_chain IS NULL\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n event_name,\n bridge_address,\n guid,\n ticket_id,\n sender,\n receiver,\n destination_chain_receiver,\n dst_chain_id,\n destination_chain_id,\n destination_chain,\n token_address,\n token_symbol,\n amount_unadj,\n src_chain_id,\n src_chain,\n asset_id,\n asset_name,\n payload,\n tx_type,\n nonce,\n sender_contract_address,\n receiver_contract_address,\n message_type,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n FINAL qualify ROW_NUMBER() over (\n PARTITION BY _log_id\n ORDER BY\n modified_timestamp DESC,\n destination_chain DESC nulls last\n ) = 1\n*/\n\n\n\nWITH bus_driven AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n event_name,\n stargate_adapter_address AS bridge_address,\n guid,\n ticket_id,\n from_address AS sender,\n dst_receiver_address AS receiver,\n dst_receiver_address AS destination_chain_receiver,\n dst_chain_id,\n dst_chain_id :: STRING AS destination_chain_id,\n dst_chain AS destination_chain,\n asset_address AS token_address,\n NULL AS token_symbol,\n amount_sent AS amount_unadj,\n src_chain_id,\n src_chain,\n asset_id,\n asset_name,\n payload,\n tx_type,\n nonce,\n sender_contract_address,\n receiver_contract_address,\n message_type,\n protocol,\n version,\n type,\n platform,\n CONCAT(\n tx_hash,\n '-',\n event_index,\n '-',\n ticket_id\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.silver_bridge.stargate_v2_busdriven\n\n\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.stargate_v2\n )\n\n),\noft_sent AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'OFTSent' AS event_name,\n contract_address AS bridge_address,\n guid,\n NULL AS ticket_id,\n from_address AS sender,\n to_address AS receiver,\n to_address AS destination_chain_receiver,\n dst_chain_id,\n dst_chain_id :: STRING AS destination_chain_id,\n dst_chain AS destination_chain,\n token_address,\n NULL AS token_symbol,\n amount_sent AS amount_unadj,\n src_chain_id,\n src_chain,\n asset_id,\n asset_name,\n payload,\n tx_type,\n nonce,\n sender_contract_address,\n receiver_contract_address,\n message_type,\n protocol,\n version,\n type,\n platform,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.silver_bridge.stargate_v2_oft\n\n\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.stargate_v2\n )\n\n),\ncombined AS (\n SELECT\n *\n FROM\n bus_driven\n UNION ALL\n SELECT\n *\n FROM\n oft_sent\n),\nFINAL AS (\n SELECT\n *\n FROM\n combined\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n event_name,\n bridge_address,\n guid,\n ticket_id,\n sender,\n receiver,\n destination_chain_receiver,\n dst_chain_id,\n destination_chain_id,\n destination_chain,\n token_address,\n token_symbol,\n amount_unadj,\n src_chain_id,\n src_chain,\n asset_id,\n asset_name,\n payload,\n tx_type,\n nonce,\n sender_contract_address,\n receiver_contract_address,\n message_type,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n FINAL qualify ROW_NUMBER() over (\n PARTITION BY _log_id\n ORDER BY\n modified_timestamp DESC,\n destination_chain DESC nulls last\n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__dln_debridge_createdorder": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__dln_debridge_createdorder", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/dln/silver_bridge__dln_debridge_createdorder.sql", "original_file_path": "models/curated_package/defi/bridge/silver/dln/silver_bridge__dln_debridge_createdorder.sql", "unique_id": "model.fsc_evm.silver_bridge__dln_debridge_createdorder", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "dln", "silver_bridge__dln_debridge_createdorder"], "alias": "dln_debridge_createdorder", "checksum": {"name": "sha256", "checksum": "29a6c018066c7199490e9db732f0a61b667f49a649abf43892b6bfcd0dda7c09"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018352.869289, "relation_name": "polygon.silver_bridge.dln_debridge_createdorder", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'dln_debridge'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [24] :: STRING, 1, 40)) AS token_address,\n decoded_log :\"affiliateFee\" :: STRING AS affiliateFee,\n decoded_log :\"metadata\" :: STRING AS metadata,\n TRY_TO_NUMBER(\n decoded_log :\"nativeFixFee\" :: STRING\n ) AS nativeFixFee,\n decoded_log :\"order\" AS order_obj,\n decoded_log :\"order\" :\"allowedCancelBeneficiarySrc\" :: STRING AS allowedCancelBeneficiarySrc,\n decoded_log :\"order\" :\"allowedTakerDst\" :: STRING AS allowedTakerDst,\n decoded_log :\"order\" :\"externalCall\" :: STRING AS externalCall,\n TRY_TO_NUMBER(\n decoded_log :\"order\" :\"giveAmount\" :: STRING\n ) AS giveAmount,\n TRY_TO_NUMBER(\n decoded_log :\"order\" :\"giveChainId\" :: STRING\n ) AS giveChainId,\n decoded_log :\"order\" :\"givePatchAuthoritySrc\" :: STRING AS givePatchAuthoritySrc,\n decoded_log :\"order\" :\"giveTokenAddress\" :: STRING AS giveTokenAddress,\n TRY_TO_NUMBER(\n decoded_log :\"order\" :\"makerOrderNonce\" :: STRING\n ) AS makerOrderNonce,\n decoded_log :\"order\" :\"makerSrc\" :: STRING AS makerSrc,\n decoded_log :\"order\" :\"orderAuthorityAddressDst\" :: STRING AS orderAuthorityAddressDst,\n CONCAT('0x', LEFT(segmented_data [28] :: STRING, 40)) AS receiverDst,\n TRY_TO_NUMBER(\n decoded_log :\"order\" :\"takeAmount\" :: STRING\n ) AS takeAmount,\n TRY_TO_NUMBER(\n decoded_log :\"order\" :\"takeChainId\" :: STRING\n ) AS takeChainId,\n decoded_log :\"order\" :\"takeTokenAddress\" :: STRING AS takeTokenAddress,\n decoded_log :\"orderId\" :: STRING AS orderId,\n TRY_TO_NUMBER(\n decoded_log :\"percentFee\" :: STRING\n ) AS percentFee,\n TRY_TO_NUMBER(\n decoded_log :\"referralCode\" :: STRING\n ) AS referralCode,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }} \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xfc8703fd57380f9dd234a89dce51333782d49c5902f307b02f03e014d18fe471' --CreatedOrder\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n origin_from_address AS sender,\n receiverDst AS receiver,\n CASE\n WHEN takeChainId :: STRING = '7565164' THEN utils.udf_hex_to_base58(CONCAT('0x', segmented_data [28] :: STRING))\n ELSE receiverDst\n END AS destination_chain_receiver,\n giveAmount AS amount,\n takeChainId AS destination_chain_id,\n CASE\n WHEN destination_chain_id :: STRING = '7565164' THEN 'solana'\n ELSE NULL\n END AS destination_chain,\n CASE\n WHEN token_address = '0x0000000000000000000000000000000000000000' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE token_address\n END AS token_address,\n decoded_log,\n order_obj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/dln/silver_bridge__dln_debridge_createdorder.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'dln_debridge'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [24] :: STRING, 1, 40)) AS token_address,\n decoded_log :\"affiliateFee\" :: STRING AS affiliateFee,\n decoded_log :\"metadata\" :: STRING AS metadata,\n TRY_TO_NUMBER(\n decoded_log :\"nativeFixFee\" :: STRING\n ) AS nativeFixFee,\n decoded_log :\"order\" AS order_obj,\n decoded_log :\"order\" :\"allowedCancelBeneficiarySrc\" :: STRING AS allowedCancelBeneficiarySrc,\n decoded_log :\"order\" :\"allowedTakerDst\" :: STRING AS allowedTakerDst,\n decoded_log :\"order\" :\"externalCall\" :: STRING AS externalCall,\n TRY_TO_NUMBER(\n decoded_log :\"order\" :\"giveAmount\" :: STRING\n ) AS giveAmount,\n TRY_TO_NUMBER(\n decoded_log :\"order\" :\"giveChainId\" :: STRING\n ) AS giveChainId,\n decoded_log :\"order\" :\"givePatchAuthoritySrc\" :: STRING AS givePatchAuthoritySrc,\n decoded_log :\"order\" :\"giveTokenAddress\" :: STRING AS giveTokenAddress,\n TRY_TO_NUMBER(\n decoded_log :\"order\" :\"makerOrderNonce\" :: STRING\n ) AS makerOrderNonce,\n decoded_log :\"order\" :\"makerSrc\" :: STRING AS makerSrc,\n decoded_log :\"order\" :\"orderAuthorityAddressDst\" :: STRING AS orderAuthorityAddressDst,\n CONCAT('0x', LEFT(segmented_data [28] :: STRING, 40)) AS receiverDst,\n TRY_TO_NUMBER(\n decoded_log :\"order\" :\"takeAmount\" :: STRING\n ) AS takeAmount,\n TRY_TO_NUMBER(\n decoded_log :\"order\" :\"takeChainId\" :: STRING\n ) AS takeChainId,\n decoded_log :\"order\" :\"takeTokenAddress\" :: STRING AS takeTokenAddress,\n decoded_log :\"orderId\" :: STRING AS orderId,\n TRY_TO_NUMBER(\n decoded_log :\"percentFee\" :: STRING\n ) AS percentFee,\n TRY_TO_NUMBER(\n decoded_log :\"referralCode\" :: STRING\n ) AS referralCode,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }} \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xfc8703fd57380f9dd234a89dce51333782d49c5902f307b02f03e014d18fe471' --CreatedOrder\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n origin_from_address AS sender,\n receiverDst AS receiver,\n CASE\n WHEN takeChainId :: STRING = '7565164' THEN utils.udf_hex_to_base58(CONCAT('0x', segmented_data [28] :: STRING))\n ELSE receiverDst\n END AS destination_chain_receiver,\n giveAmount AS amount,\n takeChainId AS destination_chain_id,\n CASE\n WHEN destination_chain_id :: STRING = '7565164' THEN 'solana'\n ELSE NULL\n END AS destination_chain,\n CASE\n WHEN token_address = '0x0000000000000000000000000000000000000000' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE token_address\n END AS token_address,\n decoded_log,\n order_obj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'dln_debridge'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [24] :: STRING, 1, 40)) AS token_address,\n decoded_log :\"affiliateFee\" :: STRING AS affiliateFee,\n decoded_log :\"metadata\" :: STRING AS metadata,\n TRY_TO_NUMBER(\n decoded_log :\"nativeFixFee\" :: STRING\n ) AS nativeFixFee,\n decoded_log :\"order\" AS order_obj,\n decoded_log :\"order\" :\"allowedCancelBeneficiarySrc\" :: STRING AS allowedCancelBeneficiarySrc,\n decoded_log :\"order\" :\"allowedTakerDst\" :: STRING AS allowedTakerDst,\n decoded_log :\"order\" :\"externalCall\" :: STRING AS externalCall,\n TRY_TO_NUMBER(\n decoded_log :\"order\" :\"giveAmount\" :: STRING\n ) AS giveAmount,\n TRY_TO_NUMBER(\n decoded_log :\"order\" :\"giveChainId\" :: STRING\n ) AS giveChainId,\n decoded_log :\"order\" :\"givePatchAuthoritySrc\" :: STRING AS givePatchAuthoritySrc,\n decoded_log :\"order\" :\"giveTokenAddress\" :: STRING AS giveTokenAddress,\n TRY_TO_NUMBER(\n decoded_log :\"order\" :\"makerOrderNonce\" :: STRING\n ) AS makerOrderNonce,\n decoded_log :\"order\" :\"makerSrc\" :: STRING AS makerSrc,\n decoded_log :\"order\" :\"orderAuthorityAddressDst\" :: STRING AS orderAuthorityAddressDst,\n CONCAT('0x', LEFT(segmented_data [28] :: STRING, 40)) AS receiverDst,\n TRY_TO_NUMBER(\n decoded_log :\"order\" :\"takeAmount\" :: STRING\n ) AS takeAmount,\n TRY_TO_NUMBER(\n decoded_log :\"order\" :\"takeChainId\" :: STRING\n ) AS takeChainId,\n decoded_log :\"order\" :\"takeTokenAddress\" :: STRING AS takeTokenAddress,\n decoded_log :\"orderId\" :: STRING AS orderId,\n TRY_TO_NUMBER(\n decoded_log :\"percentFee\" :: STRING\n ) AS percentFee,\n TRY_TO_NUMBER(\n decoded_log :\"referralCode\" :: STRING\n ) AS referralCode,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xfc8703fd57380f9dd234a89dce51333782d49c5902f307b02f03e014d18fe471' --CreatedOrder\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.dln_debridge_createdorder\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n origin_from_address AS sender,\n receiverDst AS receiver,\n CASE\n WHEN takeChainId :: STRING = '7565164' THEN utils.udf_hex_to_base58(CONCAT('0x', segmented_data [28] :: STRING))\n ELSE receiverDst\n END AS destination_chain_receiver,\n giveAmount AS amount,\n takeChainId AS destination_chain_id,\n CASE\n WHEN destination_chain_id :: STRING = '7565164' THEN 'solana'\n ELSE NULL\n END AS destination_chain,\n CASE\n WHEN token_address = '0x0000000000000000000000000000000000000000' THEN '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ELSE token_address\n END AS token_address,\n decoded_log,\n order_obj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__ccip_send_requested": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__ccip_send_requested", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/ccip/silver_bridge__ccip_send_requested.sql", "original_file_path": "models/curated_package/defi/bridge/silver/ccip/silver_bridge__ccip_send_requested.sql", "unique_id": "model.fsc_evm.silver_bridge__ccip_send_requested", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "ccip", "silver_bridge__ccip_send_requested"], "alias": "ccip_send_requested", "checksum": {"name": "sha256", "checksum": "f8e504e5cda03dc1bbbd960906b77315d104e87d1d86068d6811edc267020af1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018353.1871934, "relation_name": "polygon.silver_bridge.ccip_send_requested", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'circle_cctp'\n AND version = 'v1'\n),\n-- to exclude circle transactions\nraw_traces AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n trace_index,\n from_address,\n to_address,\n input,\n output,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS part,\n LEFT(\n input,\n 10\n ) AS function_sig,\n trace_address,\n REGEXP_REPLACE(\n trace_address,\n '_[0-9]+_[0-9]+$',\n ''\n ) AS parent_address,\n C.contract_address,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }}\n t\n LEFT JOIN contract_mapping C\n ON to_address = contract_address\n WHERE\n block_timestamp :: DATE >= '2023-10-01'\n AND tx_succeeded\n AND trace_succeeded\n AND t.type = 'CALL'\n AND (\n (\n C.contract_address IS NOT NULL\n AND function_sig IN (\n '0xf856ddb6',\n '0x6fd3504e'\n )\n ) -- circle cctp v1 address & functions - depositForBurn, depositForBurnWithCaller\n OR (\n function_sig = '0xdf0aa9e9'\n ) -- forwardFromRouter\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ncircle_calls AS (\n SELECT\n tx_hash,\n trace_index AS circle_trace_index,\n from_address,\n to_address,\n trace_address,\n parent_address AS circle_parent_address\n FROM\n raw_traces\n WHERE\n contract_address IS NOT NULL\n AND function_sig IN (\n '0xf856ddb6',\n '0x6fd3504e'\n )\n),\ncircle_exclusion_join AS (\n SELECT\n C.tx_hash,\n circle_trace_index,\n r.trace_index AS parent_trace_index\n FROM\n circle_calls C\n INNER JOIN raw_traces r\n ON C.circle_parent_address = r.trace_address\n AND C.tx_hash = r.tx_hash\n WHERE\n r.function_sig = '0xdf0aa9e9' --forwardFromRouter\n),\nccip_decoded AS (\n SELECT\n t.block_number,\n t.block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t.tx_hash,\n input,\n part,\n utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: STRING AS dest_chain_selector,\n try_to_number(utils.udf_hex_to_int(\n part [2] :: STRING\n )) AS fee_token_amount,\n '0x' || SUBSTR(\n part [3] :: STRING,\n 25\n ) AS original_sender,\n try_to_number(utils.udf_hex_to_int(\n part [4] :: STRING\n )) / 32 AS offset_receiver,\n try_to_number(utils.udf_hex_to_int(\n part [offset_receiver + 4] :: STRING\n )) * 2 AS receiver_length,\n (\n offset_receiver + 5\n ) * 64 AS receiver_byteskip,\n SUBSTR(input, (11 + receiver_byteskip), receiver_length) AS receiver_raw,\n '0x' || SUBSTR(\n receiver_raw,\n 25,\n 40\n ) AS receiver_evm,\n try_to_number(utils.udf_hex_to_int(\n part [6] :: STRING\n )) / 32 AS offset_token_amount,\n try_to_number(utils.udf_hex_to_int(\n part [offset_token_amount + 4] :: STRING\n )) AS token_amount_array,\n chain_name,\n trace_index,\n from_address,\n contract_address,\n bridge_address,\n protocol,\n version,\n TYPE,\n platform,\n t.modified_timestamp,\n ROW_NUMBER() over (\n ORDER BY\n trace_index ASC\n ) AS rn\n FROM\n raw_traces t\n INNER JOIN {{ ref('silver_bridge__ccip_on_ramp_address') }}\n r\n ON to_address = on_ramp_address\n AND r.dest_chain_selector = utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: STRING\n WHERE\n function_sig = '0xdf0aa9e9'\n),\ntokens_raw AS (\n SELECT\n tx_hash,\n trace_index,\n INDEX,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n trace_index\n ORDER BY\n INDEX ASC\n ) - 1 AS row_num,\n TRUNC(\n row_num / 2\n ) AS GROUPING,\n VALUE :: STRING AS VALUE\n FROM\n ccip_decoded,\n LATERAL FLATTEN (\n input => part\n )\n WHERE\n INDEX BETWEEN (\n offset_token_amount + 5\n )\n AND (offset_token_amount + 5 + (2 * token_amount_array) - 1)\n),\ntoken_grouping AS (\n SELECT\n tx_hash,\n trace_index,\n GROUPING,\n ARRAY_AGG(VALUE) within GROUP (\n ORDER BY\n INDEX ASC\n ) AS token_array\n FROM\n tokens_raw\n GROUP BY\n ALL\n),\nfinal_ccip AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n trace_index,\n GROUPING,\n '0x' || SUBSTR(\n token_array [0] :: STRING,\n 25\n ) AS token_address,\n try_to_number(utils.udf_hex_to_int(\n token_array [1] :: STRING\n )) AS amount_unadj,\n dest_chain_selector,\n receiver_raw,\n receiver_evm,\n chain_name,\n protocol,\n version,\n TYPE,\n platform,\n contract_address,\n bridge_address,\n modified_timestamp\n FROM\n ccip_decoded\n INNER JOIN token_grouping USING (\n tx_hash,\n trace_index\n )\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n f.tx_hash,\n trace_index,\n GROUPING,\n NULL AS event_index,\n bridge_address,\n NULL AS event_name,\n origin_from_address AS sender,\n receiver_evm AS receiver,\n receiver_evm AS destination_chain_receiver,\n dest_chain_selector :: STRING AS destination_chain_id,\n chain_name AS destination_chain,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version,\n TYPE,\n circle_trace_index,\n parent_trace_index,\n CONCAT(\n f.tx_hash,\n '-',\n trace_index,\n '-',\n GROUPING\n ) AS _log_id,\n modified_timestamp\nFROM\n final_ccip f\n LEFT JOIN circle_exclusion_join C\n ON f.tx_hash = C.tx_hash\n AND f.trace_index = C.parent_trace_index\nWHERE\n parent_trace_index IS NULL", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}, {"name": "silver_bridge__ccip_on_ramp_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces", "model.fsc_evm.silver_bridge__ccip_on_ramp_address"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/ccip/silver_bridge__ccip_send_requested.sql", "compiled": true, "compiled_code": "\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'circle_cctp'\n AND version = 'v1'\n),\n-- to exclude circle transactions\nraw_traces AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n trace_index,\n from_address,\n to_address,\n input,\n output,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS part,\n LEFT(\n input,\n 10\n ) AS function_sig,\n trace_address,\n REGEXP_REPLACE(\n trace_address,\n '_[0-9]+_[0-9]+$',\n ''\n ) AS parent_address,\n C.contract_address,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }}\n t\n LEFT JOIN contract_mapping C\n ON to_address = contract_address\n WHERE\n block_timestamp :: DATE >= '2023-10-01'\n AND tx_succeeded\n AND trace_succeeded\n AND t.type = 'CALL'\n AND (\n (\n C.contract_address IS NOT NULL\n AND function_sig IN (\n '0xf856ddb6',\n '0x6fd3504e'\n )\n ) -- circle cctp v1 address & functions - depositForBurn, depositForBurnWithCaller\n OR (\n function_sig = '0xdf0aa9e9'\n ) -- forwardFromRouter\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ncircle_calls AS (\n SELECT\n tx_hash,\n trace_index AS circle_trace_index,\n from_address,\n to_address,\n trace_address,\n parent_address AS circle_parent_address\n FROM\n raw_traces\n WHERE\n contract_address IS NOT NULL\n AND function_sig IN (\n '0xf856ddb6',\n '0x6fd3504e'\n )\n),\ncircle_exclusion_join AS (\n SELECT\n C.tx_hash,\n circle_trace_index,\n r.trace_index AS parent_trace_index\n FROM\n circle_calls C\n INNER JOIN raw_traces r\n ON C.circle_parent_address = r.trace_address\n AND C.tx_hash = r.tx_hash\n WHERE\n r.function_sig = '0xdf0aa9e9' --forwardFromRouter\n),\nccip_decoded AS (\n SELECT\n t.block_number,\n t.block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t.tx_hash,\n input,\n part,\n utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: STRING AS dest_chain_selector,\n try_to_number(utils.udf_hex_to_int(\n part [2] :: STRING\n )) AS fee_token_amount,\n '0x' || SUBSTR(\n part [3] :: STRING,\n 25\n ) AS original_sender,\n try_to_number(utils.udf_hex_to_int(\n part [4] :: STRING\n )) / 32 AS offset_receiver,\n try_to_number(utils.udf_hex_to_int(\n part [offset_receiver + 4] :: STRING\n )) * 2 AS receiver_length,\n (\n offset_receiver + 5\n ) * 64 AS receiver_byteskip,\n SUBSTR(input, (11 + receiver_byteskip), receiver_length) AS receiver_raw,\n '0x' || SUBSTR(\n receiver_raw,\n 25,\n 40\n ) AS receiver_evm,\n try_to_number(utils.udf_hex_to_int(\n part [6] :: STRING\n )) / 32 AS offset_token_amount,\n try_to_number(utils.udf_hex_to_int(\n part [offset_token_amount + 4] :: STRING\n )) AS token_amount_array,\n chain_name,\n trace_index,\n from_address,\n contract_address,\n bridge_address,\n protocol,\n version,\n TYPE,\n platform,\n t.modified_timestamp,\n ROW_NUMBER() over (\n ORDER BY\n trace_index ASC\n ) AS rn\n FROM\n raw_traces t\n INNER JOIN {{ ref('silver_bridge__ccip_on_ramp_address') }}\n r\n ON to_address = on_ramp_address\n AND r.dest_chain_selector = utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: STRING\n WHERE\n function_sig = '0xdf0aa9e9'\n),\ntokens_raw AS (\n SELECT\n tx_hash,\n trace_index,\n INDEX,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n trace_index\n ORDER BY\n INDEX ASC\n ) - 1 AS row_num,\n TRUNC(\n row_num / 2\n ) AS GROUPING,\n VALUE :: STRING AS VALUE\n FROM\n ccip_decoded,\n LATERAL FLATTEN (\n input => part\n )\n WHERE\n INDEX BETWEEN (\n offset_token_amount + 5\n )\n AND (offset_token_amount + 5 + (2 * token_amount_array) - 1)\n),\ntoken_grouping AS (\n SELECT\n tx_hash,\n trace_index,\n GROUPING,\n ARRAY_AGG(VALUE) within GROUP (\n ORDER BY\n INDEX ASC\n ) AS token_array\n FROM\n tokens_raw\n GROUP BY\n ALL\n),\nfinal_ccip AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n trace_index,\n GROUPING,\n '0x' || SUBSTR(\n token_array [0] :: STRING,\n 25\n ) AS token_address,\n try_to_number(utils.udf_hex_to_int(\n token_array [1] :: STRING\n )) AS amount_unadj,\n dest_chain_selector,\n receiver_raw,\n receiver_evm,\n chain_name,\n protocol,\n version,\n TYPE,\n platform,\n contract_address,\n bridge_address,\n modified_timestamp\n FROM\n ccip_decoded\n INNER JOIN token_grouping USING (\n tx_hash,\n trace_index\n )\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n f.tx_hash,\n trace_index,\n GROUPING,\n NULL AS event_index,\n bridge_address,\n NULL AS event_name,\n origin_from_address AS sender,\n receiver_evm AS receiver,\n receiver_evm AS destination_chain_receiver,\n dest_chain_selector :: STRING AS destination_chain_id,\n chain_name AS destination_chain,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version,\n TYPE,\n circle_trace_index,\n parent_trace_index,\n CONCAT(\n f.tx_hash,\n '-',\n trace_index,\n '-',\n GROUPING\n ) AS _log_id,\n modified_timestamp\nFROM\n final_ccip f\n LEFT JOIN circle_exclusion_join C\n ON f.tx_hash = C.tx_hash\n AND f.trace_index = C.parent_trace_index\nWHERE\n parent_trace_index IS NULL\n*/\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'circle_cctp'\n AND version = 'v1'\n),\n-- to exclude circle transactions\nraw_traces AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n trace_index,\n from_address,\n to_address,\n input,\n output,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS part,\n LEFT(\n input,\n 10\n ) AS function_sig,\n trace_address,\n REGEXP_REPLACE(\n trace_address,\n '_[0-9]+_[0-9]+$',\n ''\n ) AS parent_address,\n C.contract_address,\n modified_timestamp\n FROM\n polygon.core.fact_traces\n t\n LEFT JOIN contract_mapping C\n ON to_address = contract_address\n WHERE\n block_timestamp :: DATE >= '2023-10-01'\n AND tx_succeeded\n AND trace_succeeded\n AND t.type = 'CALL'\n AND (\n (\n C.contract_address IS NOT NULL\n AND function_sig IN (\n '0xf856ddb6',\n '0x6fd3504e'\n )\n ) -- circle cctp v1 address & functions - depositForBurn, depositForBurnWithCaller\n OR (\n function_sig = '0xdf0aa9e9'\n ) -- forwardFromRouter\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.ccip_send_requested\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ncircle_calls AS (\n SELECT\n tx_hash,\n trace_index AS circle_trace_index,\n from_address,\n to_address,\n trace_address,\n parent_address AS circle_parent_address\n FROM\n raw_traces\n WHERE\n contract_address IS NOT NULL\n AND function_sig IN (\n '0xf856ddb6',\n '0x6fd3504e'\n )\n),\ncircle_exclusion_join AS (\n SELECT\n C.tx_hash,\n circle_trace_index,\n r.trace_index AS parent_trace_index\n FROM\n circle_calls C\n INNER JOIN raw_traces r\n ON C.circle_parent_address = r.trace_address\n AND C.tx_hash = r.tx_hash\n WHERE\n r.function_sig = '0xdf0aa9e9' --forwardFromRouter\n),\nccip_decoded AS (\n SELECT\n t.block_number,\n t.block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t.tx_hash,\n input,\n part,\n utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: STRING AS dest_chain_selector,\n try_to_number(utils.udf_hex_to_int(\n part [2] :: STRING\n )) AS fee_token_amount,\n '0x' || SUBSTR(\n part [3] :: STRING,\n 25\n ) AS original_sender,\n try_to_number(utils.udf_hex_to_int(\n part [4] :: STRING\n )) / 32 AS offset_receiver,\n try_to_number(utils.udf_hex_to_int(\n part [offset_receiver + 4] :: STRING\n )) * 2 AS receiver_length,\n (\n offset_receiver + 5\n ) * 64 AS receiver_byteskip,\n SUBSTR(input, (11 + receiver_byteskip), receiver_length) AS receiver_raw,\n '0x' || SUBSTR(\n receiver_raw,\n 25,\n 40\n ) AS receiver_evm,\n try_to_number(utils.udf_hex_to_int(\n part [6] :: STRING\n )) / 32 AS offset_token_amount,\n try_to_number(utils.udf_hex_to_int(\n part [offset_token_amount + 4] :: STRING\n )) AS token_amount_array,\n chain_name,\n trace_index,\n from_address,\n contract_address,\n bridge_address,\n protocol,\n version,\n TYPE,\n platform,\n t.modified_timestamp,\n ROW_NUMBER() over (\n ORDER BY\n trace_index ASC\n ) AS rn\n FROM\n raw_traces t\n INNER JOIN polygon.silver_bridge.ccip_on_ramp_address\n r\n ON to_address = on_ramp_address\n AND r.dest_chain_selector = utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: STRING\n WHERE\n function_sig = '0xdf0aa9e9'\n),\ntokens_raw AS (\n SELECT\n tx_hash,\n trace_index,\n INDEX,\n ROW_NUMBER() over (\n PARTITION BY tx_hash,\n trace_index\n ORDER BY\n INDEX ASC\n ) - 1 AS row_num,\n TRUNC(\n row_num / 2\n ) AS GROUPING,\n VALUE :: STRING AS VALUE\n FROM\n ccip_decoded,\n LATERAL FLATTEN (\n input => part\n )\n WHERE\n INDEX BETWEEN (\n offset_token_amount + 5\n )\n AND (offset_token_amount + 5 + (2 * token_amount_array) - 1)\n),\ntoken_grouping AS (\n SELECT\n tx_hash,\n trace_index,\n GROUPING,\n ARRAY_AGG(VALUE) within GROUP (\n ORDER BY\n INDEX ASC\n ) AS token_array\n FROM\n tokens_raw\n GROUP BY\n ALL\n),\nfinal_ccip AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n trace_index,\n GROUPING,\n '0x' || SUBSTR(\n token_array [0] :: STRING,\n 25\n ) AS token_address,\n try_to_number(utils.udf_hex_to_int(\n token_array [1] :: STRING\n )) AS amount_unadj,\n dest_chain_selector,\n receiver_raw,\n receiver_evm,\n chain_name,\n protocol,\n version,\n TYPE,\n platform,\n contract_address,\n bridge_address,\n modified_timestamp\n FROM\n ccip_decoded\n INNER JOIN token_grouping USING (\n tx_hash,\n trace_index\n )\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n f.tx_hash,\n trace_index,\n GROUPING,\n NULL AS event_index,\n bridge_address,\n NULL AS event_name,\n origin_from_address AS sender,\n receiver_evm AS receiver,\n receiver_evm AS destination_chain_receiver,\n dest_chain_selector :: STRING AS destination_chain_id,\n chain_name AS destination_chain,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version,\n TYPE,\n circle_trace_index,\n parent_trace_index,\n CONCAT(\n f.tx_hash,\n '-',\n trace_index,\n '-',\n GROUPING\n ) AS _log_id,\n modified_timestamp\nFROM\n final_ccip f\n LEFT JOIN circle_exclusion_join C\n ON f.tx_hash = C.tx_hash\n AND f.trace_index = C.parent_trace_index\nWHERE\n parent_trace_index IS NULL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__ccip_on_ramp_address": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__ccip_on_ramp_address", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/ccip/silver_bridge__ccip_on_ramp_address.sql", "original_file_path": "models/curated_package/defi/bridge/silver/ccip/silver_bridge__ccip_on_ramp_address.sql", "unique_id": "model.fsc_evm.silver_bridge__ccip_on_ramp_address", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "ccip", "silver_bridge__ccip_on_ramp_address"], "alias": "ccip_on_ramp_address", "checksum": {"name": "sha256", "checksum": "f2e66b07ed0c93460ac85a646bfeae32db0525143656a240624ec57eb3a05852"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018353.5082185, "relation_name": "polygon.silver_bridge.ccip_on_ramp_address", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'chainlink_ccip'\n)\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_name,\n l.contract_address as bridge_address,\n decoded_log :destChainSelector :: STRING AS dest_chain_selector,\n chain_name,\n decoded_log :onRamp :: STRING AS on_ramp_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n modified_timestamp\nFROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n INNER JOIN {{ ref('silver_bridge__ccip_chain_seed') }}\n ON dest_chain_selector = chain_selector\nWHERE\n topic_0 = '0x1f7d0ec248b80e5c0dde0ee531c4fc8fdb6ce9a2b3d90f560c74acd6a7202f23' -- onrampset\n AND tx_succeeded\n AND event_removed = FALSE\n and block_timestamp::DATE >= '2023-01-01'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "silver_bridge__ccip_chain_seed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs", "seed.fsc_evm.silver_bridge__ccip_chain_seed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/ccip/silver_bridge__ccip_on_ramp_address.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'chainlink_ccip'\n)\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_name,\n l.contract_address as bridge_address,\n decoded_log :destChainSelector :: STRING AS dest_chain_selector,\n chain_name,\n decoded_log :onRamp :: STRING AS on_ramp_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n modified_timestamp\nFROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n INNER JOIN {{ ref('silver_bridge__ccip_chain_seed') }}\n ON dest_chain_selector = chain_selector\nWHERE\n topic_0 = '0x1f7d0ec248b80e5c0dde0ee531c4fc8fdb6ce9a2b3d90f560c74acd6a7202f23' -- onrampset\n AND tx_succeeded\n AND event_removed = FALSE\n and block_timestamp::DATE >= '2023-01-01'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'chainlink_ccip'\n)\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_name,\n l.contract_address as bridge_address,\n decoded_log :destChainSelector :: STRING AS dest_chain_selector,\n chain_name,\n decoded_log :onRamp :: STRING AS on_ramp_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n modified_timestamp\nFROM\n polygon.core.ez_decoded_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n INNER JOIN polygon.silver_bridge.ccip_chain_seed\n ON dest_chain_selector = chain_selector\nWHERE\n topic_0 = '0x1f7d0ec248b80e5c0dde0ee531c4fc8fdb6ce9a2b3d90f560c74acd6a7202f23' -- onrampset\n AND tx_succeeded\n AND event_removed = FALSE\n and block_timestamp::DATE >= '2023-01-01'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.ccip_on_ramp_address\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__allbridge_sent": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__allbridge_sent", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/allbridge/silver_bridge__allbridge_sent.sql", "original_file_path": "models/curated_package/defi/bridge/silver/allbridge/silver_bridge__allbridge_sent.sql", "unique_id": "model.fsc_evm.silver_bridge__allbridge_sent", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "allbridge", "silver_bridge__allbridge_sent"], "alias": "allbridge_sent", "checksum": {"name": "sha256", "checksum": "8d189914146066a085e47a9a5c985a5cd7fceb144920352d35797b48782d3bf5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018353.8295827, "relation_name": "polygon.silver_bridge.allbridge_sent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'allbridge'\n AND version = 'v1'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n utils.udf_hex_to_string(\n SUBSTRING(\n decoded_log :\"destination\" :: STRING,\n 3\n )\n ) AS destination_chain_symbol,\n decoded_log :\"lockId\" :: STRING AS lockId,\n decoded_log :\"recipient\" :: STRING AS recipient,\n decoded_log :\"sender\" :: STRING AS sender,\n utils.udf_hex_to_string(\n SUBSTRING(\n decoded_log :\"tokenSource\" :: STRING,\n 3\n )\n ) AS token_source,\n REGEXP_REPLACE(\n decoded_log :\"tokenSourceAddress\" :: STRING,\n '0+$',\n ''\n ) AS tokenSourceAddress,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x884a8def17f0d5bbb3fef53f3136b5320c9b39f75afb8985eeab9ea1153ee56d'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n sender,\n recipient AS receiver,\n amount,\n lockId AS lock_id,\n CASE\n WHEN destination_chain_symbol = 'AURO' THEN 'aurora mainnet'\n WHEN destination_chain_symbol = 'AVA' THEN 'avalanche c-chain'\n WHEN destination_chain_symbol = 'BSC' THEN 'bnb smart chain mainnet'\n WHEN destination_chain_symbol = 'CELO' THEN 'celo mainnet'\n WHEN destination_chain_symbol = 'ETH' THEN 'ethereum mainnet'\n WHEN destination_chain_symbol = 'FTM' THEN 'fantom opera'\n WHEN destination_chain_symbol = 'HECO' THEN 'huobi eco chain mainnet'\n WHEN destination_chain_symbol = 'KLAY' THEN 'klaytn mainnet cypress'\n WHEN destination_chain_symbol = 'POL' THEN 'polygon mainnet'\n WHEN destination_chain_symbol = 'SOL' THEN 'solana'\n WHEN destination_chain_symbol = 'TRA' THEN 'terra'\n WHEN destination_chain_symbol = 'TEZ' THEN 'tezos'\n WHEN destination_chain_symbol = 'WAVE' THEN 'waves'\n ELSE LOWER(destination_chain_symbol)\n END AS destination_chain,\n CASE\n WHEN token_source = 'AURO' THEN 'aurora mainnet'\n WHEN token_source = 'AVA' THEN 'avalanche c-chain'\n WHEN token_source = 'BSC' THEN 'bnb smart chain mainnet'\n WHEN token_source = 'CELO' THEN 'celo mainnet'\n WHEN token_source = 'ETH' THEN 'ethereum mainnet'\n WHEN token_source = 'FTM' THEN 'fantom opera'\n WHEN token_source = 'HECO' THEN 'huobi eco chain mainnet'\n WHEN token_source = 'KLAY' THEN 'klaytn mainnet cypress'\n WHEN token_source = 'POL' THEN 'polygon mainnet'\n WHEN token_source = 'SOL' THEN 'solana'\n WHEN token_source = 'TRA' THEN 'terra'\n WHEN token_source = 'TEZ' THEN 'tezos'\n WHEN token_source = 'WAVE' THEN 'waves'\n ELSE LOWER(token_source)\n END AS source_chain,\n CASE\n WHEN destination_chain = 'solana' THEN utils.udf_hex_to_base58(recipient)\n WHEN destination_chain = 'waves' THEN utils.udf_hex_to_base58(SUBSTR(recipient,1,54))\n WHEN destination_chain ILIKE 'terra%' THEN utils.udf_hex_to_bech32(recipient, SUBSTR(destination_chain, 1, 5))\n WHEN destination_chain = 'tezos' THEN utils.udf_hex_to_tezos(CONCAT('0x', SUBSTR(recipient, 7, 40)), 'tz1')\n WHEN destination_chain = 'near' THEN utils.udf_hex_to_string(SUBSTR(recipient,3))\n WHEN destination_chain IN (\n 'aurora mainnet',\n 'avalanche c-chain',\n 'bnb smart chain mainnet',\n 'celo mainnet',\n 'fantom opera',\n 'fuse',\n 'huobi eco chain mainnet',\n 'klaytn mainnet cypress',\n 'polygon mainnet'\n ) THEN SUBSTR(\n recipient,\n 1,\n 42\n )\n WHEN destination_chain = 'zzz' THEN origin_from_address\n ELSE recipient\n END AS destination_chain_receiver,\n tokenSourceAddress AS token_address,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt\nWHERE\n source_chain = '{{ vars.CURATED_DEFI_BRIDGE_ALLBRIDGE_SOURCE_CHAIN }}'", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/allbridge/silver_bridge__allbridge_sent.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'allbridge'\n AND version = 'v1'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n utils.udf_hex_to_string(\n SUBSTRING(\n decoded_log :\"destination\" :: STRING,\n 3\n )\n ) AS destination_chain_symbol,\n decoded_log :\"lockId\" :: STRING AS lockId,\n decoded_log :\"recipient\" :: STRING AS recipient,\n decoded_log :\"sender\" :: STRING AS sender,\n utils.udf_hex_to_string(\n SUBSTRING(\n decoded_log :\"tokenSource\" :: STRING,\n 3\n )\n ) AS token_source,\n REGEXP_REPLACE(\n decoded_log :\"tokenSourceAddress\" :: STRING,\n '0+$',\n ''\n ) AS tokenSourceAddress,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x884a8def17f0d5bbb3fef53f3136b5320c9b39f75afb8985eeab9ea1153ee56d'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n sender,\n recipient AS receiver,\n amount,\n lockId AS lock_id,\n CASE\n WHEN destination_chain_symbol = 'AURO' THEN 'aurora mainnet'\n WHEN destination_chain_symbol = 'AVA' THEN 'avalanche c-chain'\n WHEN destination_chain_symbol = 'BSC' THEN 'bnb smart chain mainnet'\n WHEN destination_chain_symbol = 'CELO' THEN 'celo mainnet'\n WHEN destination_chain_symbol = 'ETH' THEN 'ethereum mainnet'\n WHEN destination_chain_symbol = 'FTM' THEN 'fantom opera'\n WHEN destination_chain_symbol = 'HECO' THEN 'huobi eco chain mainnet'\n WHEN destination_chain_symbol = 'KLAY' THEN 'klaytn mainnet cypress'\n WHEN destination_chain_symbol = 'POL' THEN 'polygon mainnet'\n WHEN destination_chain_symbol = 'SOL' THEN 'solana'\n WHEN destination_chain_symbol = 'TRA' THEN 'terra'\n WHEN destination_chain_symbol = 'TEZ' THEN 'tezos'\n WHEN destination_chain_symbol = 'WAVE' THEN 'waves'\n ELSE LOWER(destination_chain_symbol)\n END AS destination_chain,\n CASE\n WHEN token_source = 'AURO' THEN 'aurora mainnet'\n WHEN token_source = 'AVA' THEN 'avalanche c-chain'\n WHEN token_source = 'BSC' THEN 'bnb smart chain mainnet'\n WHEN token_source = 'CELO' THEN 'celo mainnet'\n WHEN token_source = 'ETH' THEN 'ethereum mainnet'\n WHEN token_source = 'FTM' THEN 'fantom opera'\n WHEN token_source = 'HECO' THEN 'huobi eco chain mainnet'\n WHEN token_source = 'KLAY' THEN 'klaytn mainnet cypress'\n WHEN token_source = 'POL' THEN 'polygon mainnet'\n WHEN token_source = 'SOL' THEN 'solana'\n WHEN token_source = 'TRA' THEN 'terra'\n WHEN token_source = 'TEZ' THEN 'tezos'\n WHEN token_source = 'WAVE' THEN 'waves'\n ELSE LOWER(token_source)\n END AS source_chain,\n CASE\n WHEN destination_chain = 'solana' THEN utils.udf_hex_to_base58(recipient)\n WHEN destination_chain = 'waves' THEN utils.udf_hex_to_base58(SUBSTR(recipient,1,54))\n WHEN destination_chain ILIKE 'terra%' THEN utils.udf_hex_to_bech32(recipient, SUBSTR(destination_chain, 1, 5))\n WHEN destination_chain = 'tezos' THEN utils.udf_hex_to_tezos(CONCAT('0x', SUBSTR(recipient, 7, 40)), 'tz1')\n WHEN destination_chain = 'near' THEN utils.udf_hex_to_string(SUBSTR(recipient,3))\n WHEN destination_chain IN (\n 'aurora mainnet',\n 'avalanche c-chain',\n 'bnb smart chain mainnet',\n 'celo mainnet',\n 'fantom opera',\n 'fuse',\n 'huobi eco chain mainnet',\n 'klaytn mainnet cypress',\n 'polygon mainnet'\n ) THEN SUBSTR(\n recipient,\n 1,\n 42\n )\n WHEN destination_chain = 'zzz' THEN origin_from_address\n ELSE recipient\n END AS destination_chain_receiver,\n tokenSourceAddress AS token_address,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt\nWHERE\n source_chain = '{{ vars.CURATED_DEFI_BRIDGE_ALLBRIDGE_SOURCE_CHAIN }}'\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'allbridge'\n AND version = 'v1'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n utils.udf_hex_to_string(\n SUBSTRING(\n decoded_log :\"destination\" :: STRING,\n 3\n )\n ) AS destination_chain_symbol,\n decoded_log :\"lockId\" :: STRING AS lockId,\n decoded_log :\"recipient\" :: STRING AS recipient,\n decoded_log :\"sender\" :: STRING AS sender,\n utils.udf_hex_to_string(\n SUBSTRING(\n decoded_log :\"tokenSource\" :: STRING,\n 3\n )\n ) AS token_source,\n REGEXP_REPLACE(\n decoded_log :\"tokenSourceAddress\" :: STRING,\n '0+$',\n ''\n ) AS tokenSourceAddress,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x884a8def17f0d5bbb3fef53f3136b5320c9b39f75afb8985eeab9ea1153ee56d'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.allbridge_sent\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n sender,\n recipient AS receiver,\n amount,\n lockId AS lock_id,\n CASE\n WHEN destination_chain_symbol = 'AURO' THEN 'aurora mainnet'\n WHEN destination_chain_symbol = 'AVA' THEN 'avalanche c-chain'\n WHEN destination_chain_symbol = 'BSC' THEN 'bnb smart chain mainnet'\n WHEN destination_chain_symbol = 'CELO' THEN 'celo mainnet'\n WHEN destination_chain_symbol = 'ETH' THEN 'ethereum mainnet'\n WHEN destination_chain_symbol = 'FTM' THEN 'fantom opera'\n WHEN destination_chain_symbol = 'HECO' THEN 'huobi eco chain mainnet'\n WHEN destination_chain_symbol = 'KLAY' THEN 'klaytn mainnet cypress'\n WHEN destination_chain_symbol = 'POL' THEN 'polygon mainnet'\n WHEN destination_chain_symbol = 'SOL' THEN 'solana'\n WHEN destination_chain_symbol = 'TRA' THEN 'terra'\n WHEN destination_chain_symbol = 'TEZ' THEN 'tezos'\n WHEN destination_chain_symbol = 'WAVE' THEN 'waves'\n ELSE LOWER(destination_chain_symbol)\n END AS destination_chain,\n CASE\n WHEN token_source = 'AURO' THEN 'aurora mainnet'\n WHEN token_source = 'AVA' THEN 'avalanche c-chain'\n WHEN token_source = 'BSC' THEN 'bnb smart chain mainnet'\n WHEN token_source = 'CELO' THEN 'celo mainnet'\n WHEN token_source = 'ETH' THEN 'ethereum mainnet'\n WHEN token_source = 'FTM' THEN 'fantom opera'\n WHEN token_source = 'HECO' THEN 'huobi eco chain mainnet'\n WHEN token_source = 'KLAY' THEN 'klaytn mainnet cypress'\n WHEN token_source = 'POL' THEN 'polygon mainnet'\n WHEN token_source = 'SOL' THEN 'solana'\n WHEN token_source = 'TRA' THEN 'terra'\n WHEN token_source = 'TEZ' THEN 'tezos'\n WHEN token_source = 'WAVE' THEN 'waves'\n ELSE LOWER(token_source)\n END AS source_chain,\n CASE\n WHEN destination_chain = 'solana' THEN utils.udf_hex_to_base58(recipient)\n WHEN destination_chain = 'waves' THEN utils.udf_hex_to_base58(SUBSTR(recipient,1,54))\n WHEN destination_chain ILIKE 'terra%' THEN utils.udf_hex_to_bech32(recipient, SUBSTR(destination_chain, 1, 5))\n WHEN destination_chain = 'tezos' THEN utils.udf_hex_to_tezos(CONCAT('0x', SUBSTR(recipient, 7, 40)), 'tz1')\n WHEN destination_chain = 'near' THEN utils.udf_hex_to_string(SUBSTR(recipient,3))\n WHEN destination_chain IN (\n 'aurora mainnet',\n 'avalanche c-chain',\n 'bnb smart chain mainnet',\n 'celo mainnet',\n 'fantom opera',\n 'fuse',\n 'huobi eco chain mainnet',\n 'klaytn mainnet cypress',\n 'polygon mainnet'\n ) THEN SUBSTR(\n recipient,\n 1,\n 42\n )\n WHEN destination_chain = 'zzz' THEN origin_from_address\n ELSE recipient\n END AS destination_chain_receiver,\n tokenSourceAddress AS token_address,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt\nWHERE\n source_chain = 'polygon mainnet'", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__allbridge_tokens_sent": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__allbridge_tokens_sent", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/allbridge/silver_bridge__allbridge_tokens_sent.sql", "original_file_path": "models/curated_package/defi/bridge/silver/allbridge/silver_bridge__allbridge_tokens_sent.sql", "unique_id": "model.fsc_evm.silver_bridge__allbridge_tokens_sent", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "allbridge", "silver_bridge__allbridge_tokens_sent"], "alias": "allbridge_tokens_sent", "checksum": {"name": "sha256", "checksum": "96d3c50f5bdfaa1db9d62bdfc0d9c96984dfcc4f38e24480242896664e48d76b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018354.154162, "relation_name": "polygon.silver_bridge.allbridge_tokens_sent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'allbridge'\n AND version = 'v2'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n 'TokensSent' AS event_name,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [0] :: STRING)) AS amount,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS destinationChainId,\n origin_from_address AS sender,\n origin_from_address AS recipient,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [4] :: STRING)) AS nonce,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [5] :: STRING)) AS messenger,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x9cd6008e8d4ebd34fd9d022278fec7f95d133780ecc1a0dea459fae3e9675390' --TokensSent\n AND tx_succeeded\n AND m.type = 'tokens_sent'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nlp_evt AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS token,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS amount,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [3] :: STRING)) AS vUsdAmount,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [4] :: STRING)) AS fee,\n tx_succeeded,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0xa930da1d3f27a25892307dd59cec52dd9b881661a0f20364757f83a0da2f6873' --SwappedToVUsd\n AND m.type = 'lp'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_evt\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n s.block_number,\n s.block_timestamp,\n s.tx_hash,\n s.origin_function_signature,\n s.origin_from_address,\n s.origin_to_address,\n s.contract_address AS bridge_address,\n s.event_index,\n s.event_name,\n lp.amount,\n lp.token AS token_address,\n s.sender,\n s.recipient AS receiver,\n C.chain AS destination_chain,\n s.destinationChainId AS destination_chain_id,\n CASE\n WHEN C.chain = 'solana' THEN utils.udf_hex_to_base58(CONCAT('0x', s.segmented_data [1] :: STRING))\n WHEN C.chain = 'stellar' THEN s.segmented_data [1] :: STRING\n ELSE CONCAT(\n '0x',\n SUBSTR(\n s.segmented_data [1] :: STRING,\n 25,\n 40\n )\n )\n END AS destination_chain_receiver,\n CASE\n WHEN C.chain = 'solana' THEN utils.udf_hex_to_base58(CONCAT('0x', s.segmented_data [3] :: STRING))\n WHEN C.chain = 'stellar' THEN s.segmented_data [3] :: STRING\n ELSE CONCAT(\n '0x',\n SUBSTR(\n s.segmented_data [3] :: STRING,\n 25,\n 40\n )\n )\n END AS destination_chain_token,\n s.tx_succeeded,\n s.protocol,\n s.version,\n s.type,\n s.platform,\n s._log_id,\n s.modified_timestamp\nFROM\n base_evt s\n INNER JOIN lp_evt lp\n ON s.tx_hash = lp.tx_hash\n AND s.block_number = lp.block_number\n LEFT JOIN {{ ref('silver_bridge__allbridge_chain_id_seed') }} C\n ON s.destinationChainId = C.chain_id qualify(ROW_NUMBER() over (PARTITION BY s._log_id\nORDER BY\n s.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_bridge__allbridge_chain_id_seed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "seed.fsc_evm.silver_bridge__allbridge_chain_id_seed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/allbridge/silver_bridge__allbridge_tokens_sent.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'allbridge'\n AND version = 'v2'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n 'TokensSent' AS event_name,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [0] :: STRING)) AS amount,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS destinationChainId,\n origin_from_address AS sender,\n origin_from_address AS recipient,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [4] :: STRING)) AS nonce,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [5] :: STRING)) AS messenger,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x9cd6008e8d4ebd34fd9d022278fec7f95d133780ecc1a0dea459fae3e9675390' --TokensSent\n AND tx_succeeded\n AND m.type = 'tokens_sent'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nlp_evt AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS token,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS amount,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [3] :: STRING)) AS vUsdAmount,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [4] :: STRING)) AS fee,\n tx_succeeded,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0xa930da1d3f27a25892307dd59cec52dd9b881661a0f20364757f83a0da2f6873' --SwappedToVUsd\n AND m.type = 'lp'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_evt\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n s.block_number,\n s.block_timestamp,\n s.tx_hash,\n s.origin_function_signature,\n s.origin_from_address,\n s.origin_to_address,\n s.contract_address AS bridge_address,\n s.event_index,\n s.event_name,\n lp.amount,\n lp.token AS token_address,\n s.sender,\n s.recipient AS receiver,\n C.chain AS destination_chain,\n s.destinationChainId AS destination_chain_id,\n CASE\n WHEN C.chain = 'solana' THEN utils.udf_hex_to_base58(CONCAT('0x', s.segmented_data [1] :: STRING))\n WHEN C.chain = 'stellar' THEN s.segmented_data [1] :: STRING\n ELSE CONCAT(\n '0x',\n SUBSTR(\n s.segmented_data [1] :: STRING,\n 25,\n 40\n )\n )\n END AS destination_chain_receiver,\n CASE\n WHEN C.chain = 'solana' THEN utils.udf_hex_to_base58(CONCAT('0x', s.segmented_data [3] :: STRING))\n WHEN C.chain = 'stellar' THEN s.segmented_data [3] :: STRING\n ELSE CONCAT(\n '0x',\n SUBSTR(\n s.segmented_data [3] :: STRING,\n 25,\n 40\n )\n )\n END AS destination_chain_token,\n s.tx_succeeded,\n s.protocol,\n s.version,\n s.type,\n s.platform,\n s._log_id,\n s.modified_timestamp\nFROM\n base_evt s\n INNER JOIN lp_evt lp\n ON s.tx_hash = lp.tx_hash\n AND s.block_number = lp.block_number\n LEFT JOIN {{ ref('silver_bridge__allbridge_chain_id_seed') }} C\n ON s.destinationChainId = C.chain_id qualify(ROW_NUMBER() over (PARTITION BY s._log_id\nORDER BY\n s.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'allbridge'\n AND version = 'v2'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n 'TokensSent' AS event_name,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [0] :: STRING)) AS amount,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS destinationChainId,\n origin_from_address AS sender,\n origin_from_address AS recipient,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [4] :: STRING)) AS nonce,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [5] :: STRING)) AS messenger,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x9cd6008e8d4ebd34fd9d022278fec7f95d133780ecc1a0dea459fae3e9675390' --TokensSent\n AND tx_succeeded\n AND m.type = 'tokens_sent'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.allbridge_tokens_sent\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nlp_evt AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS token,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS amount,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [3] :: STRING)) AS vUsdAmount,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [4] :: STRING)) AS fee,\n tx_succeeded,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0xa930da1d3f27a25892307dd59cec52dd9b881661a0f20364757f83a0da2f6873' --SwappedToVUsd\n AND m.type = 'lp'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n base_evt\n )\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.allbridge_tokens_sent\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n s.block_number,\n s.block_timestamp,\n s.tx_hash,\n s.origin_function_signature,\n s.origin_from_address,\n s.origin_to_address,\n s.contract_address AS bridge_address,\n s.event_index,\n s.event_name,\n lp.amount,\n lp.token AS token_address,\n s.sender,\n s.recipient AS receiver,\n C.chain AS destination_chain,\n s.destinationChainId AS destination_chain_id,\n CASE\n WHEN C.chain = 'solana' THEN utils.udf_hex_to_base58(CONCAT('0x', s.segmented_data [1] :: STRING))\n WHEN C.chain = 'stellar' THEN s.segmented_data [1] :: STRING\n ELSE CONCAT(\n '0x',\n SUBSTR(\n s.segmented_data [1] :: STRING,\n 25,\n 40\n )\n )\n END AS destination_chain_receiver,\n CASE\n WHEN C.chain = 'solana' THEN utils.udf_hex_to_base58(CONCAT('0x', s.segmented_data [3] :: STRING))\n WHEN C.chain = 'stellar' THEN s.segmented_data [3] :: STRING\n ELSE CONCAT(\n '0x',\n SUBSTR(\n s.segmented_data [3] :: STRING,\n 25,\n 40\n )\n )\n END AS destination_chain_token,\n s.tx_succeeded,\n s.protocol,\n s.version,\n s.type,\n s.platform,\n s._log_id,\n s.modified_timestamp\nFROM\n base_evt s\n INNER JOIN lp_evt lp\n ON s.tx_hash = lp.tx_hash\n AND s.block_number = lp.block_number\n LEFT JOIN polygon.silver_bridge.allbridge_chain_id_seed C\n ON s.destinationChainId = C.chain_id qualify(ROW_NUMBER() over (PARTITION BY s._log_id\nORDER BY\n s.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__eywa_requestsent": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__eywa_requestsent", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/eywa/silver_bridge__eywa_requestsent.sql", "original_file_path": "models/curated_package/defi/bridge/silver/eywa/silver_bridge__eywa_requestsent.sql", "unique_id": "model.fsc_evm.silver_bridge__eywa_requestsent", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "eywa", "silver_bridge__eywa_requestsent"], "alias": "eywa_requestsent", "checksum": {"name": "sha256", "checksum": "5e791b48f1c9558d25b9ee1b41f68d91fbb9722658353e39d2cfdf02e257d36f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018354.473478, "relation_name": "polygon.silver_bridge.eywa_requestsent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'eywa'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }} \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING IN (\n '0x5566d73d091d945ab32ea023cd1930c0d43aa43bef9aee4cb029775cfc94bdae',\n --RequestSent\n '0xb5f411fa3c897c9b0b6cd61852278a67e73d885610724a5610a8580d3e94cfdb'\n ) --locked\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n),\nrequestsent AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topic_0,\n event_name,\n decoded_log :\"chainIdTo\" :: STRING AS chainIdTo,\n decoded_log :\"data\" :: STRING AS data_requestsent,\n decoded_log :\"requestId\" :: STRING AS requestId,\n decoded_log :\"to\" :: STRING AS to_address,\n decoded_log,\n event_removed,\n tx_succeeded,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n base_evt\n WHERE\n topic_0 = '0x5566d73d091d945ab32ea023cd1930c0d43aa43bef9aee4cb029775cfc94bdae' --RequestSent\n),\nlocked AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n decoded_log :\"from\" :: STRING AS from_address,\n decoded_log :\"to\" :: STRING AS to_address,\n decoded_log :\"token\" :: STRING AS token,\n decoded_log,\n event_removed,\n tx_succeeded,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n base_evt\n WHERE\n topic_0 = '0xb5f411fa3c897c9b0b6cd61852278a67e73d885610724a5610a8580d3e94cfdb' --Locked\n)\nSELECT\n r.block_number,\n r.block_timestamp,\n r.origin_function_signature,\n r.origin_from_address,\n r.origin_to_address,\n r.tx_hash,\n r.event_index,\n r.topic_0,\n r.event_name,\n r.event_removed,\n r.tx_succeeded,\n r.contract_address AS bridge_address,\n l.from_address AS sender,\n sender AS receiver,\n receiver AS destination_chain_receiver,\n l.amount,\n r.chainIdTo AS destination_chain_id,\n l.token AS token_address,\n r.protocol,\n r.version,\n r.type,\n r.platform,\n r._log_id,\n r.modified_timestamp\nFROM\n requestsent r\n LEFT JOIN locked l USING(\n block_number,\n tx_hash\n )\nWHERE token_address IS NOT NULL", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/eywa/silver_bridge__eywa_requestsent.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'eywa'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }} \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING IN (\n '0x5566d73d091d945ab32ea023cd1930c0d43aa43bef9aee4cb029775cfc94bdae',\n --RequestSent\n '0xb5f411fa3c897c9b0b6cd61852278a67e73d885610724a5610a8580d3e94cfdb'\n ) --locked\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n),\nrequestsent AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topic_0,\n event_name,\n decoded_log :\"chainIdTo\" :: STRING AS chainIdTo,\n decoded_log :\"data\" :: STRING AS data_requestsent,\n decoded_log :\"requestId\" :: STRING AS requestId,\n decoded_log :\"to\" :: STRING AS to_address,\n decoded_log,\n event_removed,\n tx_succeeded,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n base_evt\n WHERE\n topic_0 = '0x5566d73d091d945ab32ea023cd1930c0d43aa43bef9aee4cb029775cfc94bdae' --RequestSent\n),\nlocked AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n decoded_log :\"from\" :: STRING AS from_address,\n decoded_log :\"to\" :: STRING AS to_address,\n decoded_log :\"token\" :: STRING AS token,\n decoded_log,\n event_removed,\n tx_succeeded,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n base_evt\n WHERE\n topic_0 = '0xb5f411fa3c897c9b0b6cd61852278a67e73d885610724a5610a8580d3e94cfdb' --Locked\n)\nSELECT\n r.block_number,\n r.block_timestamp,\n r.origin_function_signature,\n r.origin_from_address,\n r.origin_to_address,\n r.tx_hash,\n r.event_index,\n r.topic_0,\n r.event_name,\n r.event_removed,\n r.tx_succeeded,\n r.contract_address AS bridge_address,\n l.from_address AS sender,\n sender AS receiver,\n receiver AS destination_chain_receiver,\n l.amount,\n r.chainIdTo AS destination_chain_id,\n l.token AS token_address,\n r.protocol,\n r.version,\n r.type,\n r.platform,\n r._log_id,\n r.modified_timestamp\nFROM\n requestsent r\n LEFT JOIN locked l USING(\n block_number,\n tx_hash\n )\nWHERE token_address IS NOT NULL\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'eywa'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING IN (\n '0x5566d73d091d945ab32ea023cd1930c0d43aa43bef9aee4cb029775cfc94bdae',\n --RequestSent\n '0xb5f411fa3c897c9b0b6cd61852278a67e73d885610724a5610a8580d3e94cfdb'\n ) --locked\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.eywa_requestsent\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n),\nrequestsent AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topic_0,\n event_name,\n decoded_log :\"chainIdTo\" :: STRING AS chainIdTo,\n decoded_log :\"data\" :: STRING AS data_requestsent,\n decoded_log :\"requestId\" :: STRING AS requestId,\n decoded_log :\"to\" :: STRING AS to_address,\n decoded_log,\n event_removed,\n tx_succeeded,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n base_evt\n WHERE\n topic_0 = '0x5566d73d091d945ab32ea023cd1930c0d43aa43bef9aee4cb029775cfc94bdae' --RequestSent\n),\nlocked AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n decoded_log :\"from\" :: STRING AS from_address,\n decoded_log :\"to\" :: STRING AS to_address,\n decoded_log :\"token\" :: STRING AS token,\n decoded_log,\n event_removed,\n tx_succeeded,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n base_evt\n WHERE\n topic_0 = '0xb5f411fa3c897c9b0b6cd61852278a67e73d885610724a5610a8580d3e94cfdb' --Locked\n)\nSELECT\n r.block_number,\n r.block_timestamp,\n r.origin_function_signature,\n r.origin_from_address,\n r.origin_to_address,\n r.tx_hash,\n r.event_index,\n r.topic_0,\n r.event_name,\n r.event_removed,\n r.tx_succeeded,\n r.contract_address AS bridge_address,\n l.from_address AS sender,\n sender AS receiver,\n receiver AS destination_chain_receiver,\n l.amount,\n r.chainIdTo AS destination_chain_id,\n l.token AS token_address,\n r.protocol,\n r.version,\n r.type,\n r.platform,\n r._log_id,\n r.modified_timestamp\nFROM\n requestsent r\n LEFT JOIN locked l USING(\n block_number,\n tx_hash\n )\nWHERE token_address IS NOT NULL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__axelar_contractcallwithtoken": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__axelar_contractcallwithtoken", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/axelar/silver_bridge__axelar_contractcallwithtoken.sql", "original_file_path": "models/curated_package/defi/bridge/silver/axelar/silver_bridge__axelar_contractcallwithtoken.sql", "unique_id": "model.fsc_evm.silver_bridge__axelar_contractcallwithtoken", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "axelar", "silver_bridge__axelar_contractcallwithtoken"], "alias": "axelar_contractcallwithtoken", "checksum": {"name": "sha256", "checksum": "b21779b3ee8143a95a3ff71a03768436037661d741f8b021dcd878432099c9d1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018354.7894952, "relation_name": "polygon.silver_bridge.axelar_contractcallwithtoken", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'axelar'\n),\nbase_evt AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n decoded_log :\"destinationChain\" :: STRING AS destinationChain,\n LOWER(\n decoded_log :\"destinationContractAddress\" :: STRING\n ) AS destinationContractAddress,\n decoded_log :\"payload\" :: STRING AS payload,\n origin_from_address AS recipient,\n decoded_log :\"payloadHash\" :: STRING AS payloadHash,\n decoded_log :\"sender\" :: STRING AS sender,\n decoded_log :\"symbol\" :: STRING AS symbol,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x7e50569d26be643bda7757722291ec66b1be66d8283474ae3fab5a98f878a7a2'\n AND tx_succeeded\n AND m.type = 'gateway'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n),\nnative_gas_paid AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n decoded_log :\"destinationChain\" :: STRING AS destinationChain,\n LOWER(\n decoded_log :\"destinationAddress\" :: STRING\n ) AS destinationAddress,\n TRY_TO_NUMBER(\n decoded_log :\"gasFeeAmount\" :: STRING\n ) AS gasFeeAmount,\n decoded_log :\"payloadHash\" :: STRING AS payloadHash,\n decoded_log :\"refundAddress\" :: STRING AS refundAddress,\n decoded_log :\"sourceAddress\" :: STRING AS sourceAddress,\n decoded_log :\"symbol\" :: STRING AS symbol,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x999d431b58761213cf53af96262b67a069cbd963499fd8effd1e21556217b841'\n AND tx_succeeded\n AND m.type = 'gas_service'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n),\ntransfers AS (\n SELECT\n block_number,\n tx_hash,\n event_index,\n contract_address AS token_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_token_transfers') }}\n WHERE\n from_address IN (\n SELECT contract_address\n FROM contract_mapping\n WHERE type = 'squid_router'\n )\n AND to_address IN (\n SELECT contract_address\n FROM contract_mapping\n WHERE type IN ('gateway', 'burn')\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nFINAL AS (\n SELECT\n b.block_number,\n b.block_timestamp,\n b.origin_function_signature,\n b.origin_from_address,\n b.origin_to_address,\n b.tx_hash,\n b.event_index,\n b.topic_0,\n b.event_name,\n b.event_removed,\n b.tx_succeeded,\n b.contract_address AS bridge_address,\n b.origin_from_address AS sender,\n CASE\n WHEN b.recipient = '0x0000000000000000000000000000000000000000' THEN refundAddress\n ELSE b.recipient\n END AS receiver,\n CASE\n WHEN LOWER(\n b.destinationChain\n ) = 'avalanche' THEN 'avalanche c-chain'\n WHEN LOWER(\n b.destinationChain\n ) = 'binance' THEN 'bnb smart chain mainnet'\n WHEN LOWER(\n b.destinationChain\n ) = 'celo' THEN 'celo mainnet'\n WHEN LOWER(\n b.destinationChain\n ) = 'ethereum' THEN 'ethereum mainnet'\n WHEN LOWER(\n b.destinationChain\n ) = 'fantom' THEN 'fantom opera'\n WHEN LOWER(\n b.destinationChain\n ) = 'polygon' THEN 'polygon mainnet'\n ELSE LOWER(\n b.destinationChain\n )\n END AS destination_chain,\n b.destinationContractAddress AS destination_contract_address,\n CASE\n WHEN destination_chain IN (\n 'arbitrum',\n 'avalanche c-chain',\n 'base',\n 'bnb smart chain mainnet',\n 'celo mainnet',\n 'ethereum mainnet',\n 'fantom opera',\n 'filecoin',\n 'kava',\n 'linea',\n 'mantle',\n 'moonbeam',\n 'optimism',\n 'polygon mainnet',\n 'scroll'\n ) THEN receiver\n ELSE destination_contract_address\n END AS destination_chain_receiver,\n b.amount,\n b.payload,\n b.payloadHash AS payload_hash,\n b.symbol AS token_symbol,\n t.token_address,\n b.platform,\n b.protocol,\n b.version,\n b.type,\n b._log_id,\n b.modified_timestamp\n FROM\n base_evt b\n INNER JOIN transfers t\n ON b.block_number = t.block_number\n AND b.tx_hash = t.tx_hash\n LEFT JOIN native_gas_paid n\n ON n.block_number = b.block_number\n AND n.tx_hash = b.tx_hash\n)\nSELECT\n *\nFROM\n FINAL qualify (ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "core__ez_token_transfers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__ez_token_transfers"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/axelar/silver_bridge__axelar_contractcallwithtoken.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'axelar'\n),\nbase_evt AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n decoded_log :\"destinationChain\" :: STRING AS destinationChain,\n LOWER(\n decoded_log :\"destinationContractAddress\" :: STRING\n ) AS destinationContractAddress,\n decoded_log :\"payload\" :: STRING AS payload,\n origin_from_address AS recipient,\n decoded_log :\"payloadHash\" :: STRING AS payloadHash,\n decoded_log :\"sender\" :: STRING AS sender,\n decoded_log :\"symbol\" :: STRING AS symbol,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x7e50569d26be643bda7757722291ec66b1be66d8283474ae3fab5a98f878a7a2'\n AND tx_succeeded\n AND m.type = 'gateway'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n),\nnative_gas_paid AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n decoded_log :\"destinationChain\" :: STRING AS destinationChain,\n LOWER(\n decoded_log :\"destinationAddress\" :: STRING\n ) AS destinationAddress,\n TRY_TO_NUMBER(\n decoded_log :\"gasFeeAmount\" :: STRING\n ) AS gasFeeAmount,\n decoded_log :\"payloadHash\" :: STRING AS payloadHash,\n decoded_log :\"refundAddress\" :: STRING AS refundAddress,\n decoded_log :\"sourceAddress\" :: STRING AS sourceAddress,\n decoded_log :\"symbol\" :: STRING AS symbol,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x999d431b58761213cf53af96262b67a069cbd963499fd8effd1e21556217b841'\n AND tx_succeeded\n AND m.type = 'gas_service'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n),\ntransfers AS (\n SELECT\n block_number,\n tx_hash,\n event_index,\n contract_address AS token_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_token_transfers') }}\n WHERE\n from_address IN (\n SELECT contract_address\n FROM contract_mapping\n WHERE type = 'squid_router'\n )\n AND to_address IN (\n SELECT contract_address\n FROM contract_mapping\n WHERE type IN ('gateway', 'burn')\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nFINAL AS (\n SELECT\n b.block_number,\n b.block_timestamp,\n b.origin_function_signature,\n b.origin_from_address,\n b.origin_to_address,\n b.tx_hash,\n b.event_index,\n b.topic_0,\n b.event_name,\n b.event_removed,\n b.tx_succeeded,\n b.contract_address AS bridge_address,\n b.origin_from_address AS sender,\n CASE\n WHEN b.recipient = '0x0000000000000000000000000000000000000000' THEN refundAddress\n ELSE b.recipient\n END AS receiver,\n CASE\n WHEN LOWER(\n b.destinationChain\n ) = 'avalanche' THEN 'avalanche c-chain'\n WHEN LOWER(\n b.destinationChain\n ) = 'binance' THEN 'bnb smart chain mainnet'\n WHEN LOWER(\n b.destinationChain\n ) = 'celo' THEN 'celo mainnet'\n WHEN LOWER(\n b.destinationChain\n ) = 'ethereum' THEN 'ethereum mainnet'\n WHEN LOWER(\n b.destinationChain\n ) = 'fantom' THEN 'fantom opera'\n WHEN LOWER(\n b.destinationChain\n ) = 'polygon' THEN 'polygon mainnet'\n ELSE LOWER(\n b.destinationChain\n )\n END AS destination_chain,\n b.destinationContractAddress AS destination_contract_address,\n CASE\n WHEN destination_chain IN (\n 'arbitrum',\n 'avalanche c-chain',\n 'base',\n 'bnb smart chain mainnet',\n 'celo mainnet',\n 'ethereum mainnet',\n 'fantom opera',\n 'filecoin',\n 'kava',\n 'linea',\n 'mantle',\n 'moonbeam',\n 'optimism',\n 'polygon mainnet',\n 'scroll'\n ) THEN receiver\n ELSE destination_contract_address\n END AS destination_chain_receiver,\n b.amount,\n b.payload,\n b.payloadHash AS payload_hash,\n b.symbol AS token_symbol,\n t.token_address,\n b.platform,\n b.protocol,\n b.version,\n b.type,\n b._log_id,\n b.modified_timestamp\n FROM\n base_evt b\n INNER JOIN transfers t\n ON b.block_number = t.block_number\n AND b.tx_hash = t.tx_hash\n LEFT JOIN native_gas_paid n\n ON n.block_number = b.block_number\n AND n.tx_hash = b.tx_hash\n)\nSELECT\n *\nFROM\n FINAL qualify (ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'axelar'\n),\nbase_evt AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n decoded_log :\"destinationChain\" :: STRING AS destinationChain,\n LOWER(\n decoded_log :\"destinationContractAddress\" :: STRING\n ) AS destinationContractAddress,\n decoded_log :\"payload\" :: STRING AS payload,\n origin_from_address AS recipient,\n decoded_log :\"payloadHash\" :: STRING AS payloadHash,\n decoded_log :\"sender\" :: STRING AS sender,\n decoded_log :\"symbol\" :: STRING AS symbol,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x7e50569d26be643bda7757722291ec66b1be66d8283474ae3fab5a98f878a7a2'\n AND tx_succeeded\n AND m.type = 'gateway'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.axelar_contractcallwithtoken\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n),\nnative_gas_paid AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n decoded_log :\"destinationChain\" :: STRING AS destinationChain,\n LOWER(\n decoded_log :\"destinationAddress\" :: STRING\n ) AS destinationAddress,\n TRY_TO_NUMBER(\n decoded_log :\"gasFeeAmount\" :: STRING\n ) AS gasFeeAmount,\n decoded_log :\"payloadHash\" :: STRING AS payloadHash,\n decoded_log :\"refundAddress\" :: STRING AS refundAddress,\n decoded_log :\"sourceAddress\" :: STRING AS sourceAddress,\n decoded_log :\"symbol\" :: STRING AS symbol,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x999d431b58761213cf53af96262b67a069cbd963499fd8effd1e21556217b841'\n AND tx_succeeded\n AND m.type = 'gas_service'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.axelar_contractcallwithtoken\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n),\ntransfers AS (\n SELECT\n block_number,\n tx_hash,\n event_index,\n contract_address AS token_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_token_transfers\n WHERE\n from_address IN (\n SELECT contract_address\n FROM contract_mapping\n WHERE type = 'squid_router'\n )\n AND to_address IN (\n SELECT contract_address\n FROM contract_mapping\n WHERE type IN ('gateway', 'burn')\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.axelar_contractcallwithtoken\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nFINAL AS (\n SELECT\n b.block_number,\n b.block_timestamp,\n b.origin_function_signature,\n b.origin_from_address,\n b.origin_to_address,\n b.tx_hash,\n b.event_index,\n b.topic_0,\n b.event_name,\n b.event_removed,\n b.tx_succeeded,\n b.contract_address AS bridge_address,\n b.origin_from_address AS sender,\n CASE\n WHEN b.recipient = '0x0000000000000000000000000000000000000000' THEN refundAddress\n ELSE b.recipient\n END AS receiver,\n CASE\n WHEN LOWER(\n b.destinationChain\n ) = 'avalanche' THEN 'avalanche c-chain'\n WHEN LOWER(\n b.destinationChain\n ) = 'binance' THEN 'bnb smart chain mainnet'\n WHEN LOWER(\n b.destinationChain\n ) = 'celo' THEN 'celo mainnet'\n WHEN LOWER(\n b.destinationChain\n ) = 'ethereum' THEN 'ethereum mainnet'\n WHEN LOWER(\n b.destinationChain\n ) = 'fantom' THEN 'fantom opera'\n WHEN LOWER(\n b.destinationChain\n ) = 'polygon' THEN 'polygon mainnet'\n ELSE LOWER(\n b.destinationChain\n )\n END AS destination_chain,\n b.destinationContractAddress AS destination_contract_address,\n CASE\n WHEN destination_chain IN (\n 'arbitrum',\n 'avalanche c-chain',\n 'base',\n 'bnb smart chain mainnet',\n 'celo mainnet',\n 'ethereum mainnet',\n 'fantom opera',\n 'filecoin',\n 'kava',\n 'linea',\n 'mantle',\n 'moonbeam',\n 'optimism',\n 'polygon mainnet',\n 'scroll'\n ) THEN receiver\n ELSE destination_contract_address\n END AS destination_chain_receiver,\n b.amount,\n b.payload,\n b.payloadHash AS payload_hash,\n b.symbol AS token_symbol,\n t.token_address,\n b.platform,\n b.protocol,\n b.version,\n b.type,\n b._log_id,\n b.modified_timestamp\n FROM\n base_evt b\n INNER JOIN transfers t\n ON b.block_number = t.block_number\n AND b.tx_hash = t.tx_hash\n LEFT JOIN native_gas_paid n\n ON n.block_number = b.block_number\n AND n.tx_hash = b.tx_hash\n)\nSELECT\n *\nFROM\n FINAL qualify (ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__layerzero_v2_token_reads": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__layerzero_v2_token_reads", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/layerzero/silver_bridge__layerzero_v2_token_reads.sql", "original_file_path": "models/curated_package/defi/bridge/silver/layerzero/silver_bridge__layerzero_v2_token_reads.sql", "unique_id": "model.fsc_evm.silver_bridge__layerzero_v2_token_reads", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "layerzero", "silver_bridge__layerzero_v2_token_reads"], "alias": "layerzero_v2_token_reads", "checksum": {"name": "sha256", "checksum": "77a4791593e275a9fae78ef007f8f4fe4c7c6c818a1dc8f123ccaace920392be"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "contract_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {"TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/bridge/silver/layerzero/silver_bridge__layerzero_v2_token_reads.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "contract_address", "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018441.0059493, "relation_name": "polygon.silver_bridge.layerzero_v2_token_reads", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"contract_address\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH new_tokens AS (\n\n SELECT\n DISTINCT contract_address\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topic_0 = '0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a' --OFTSent\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= CURRENT_DATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\nAND contract_address NOT IN (\n SELECT\n contract_address\n FROM\n {{ this }}\n)\n{% endif %}\n),\nready_reads AS (\n SELECT\n contract_address,\n '0xfc0c546a' AS function_sig,\n RPAD(\n function_sig,\n 64,\n '0'\n ) AS input,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{'to': contract_address, 'from': null, 'data': input}, 'latest']\n ) AS rpc_request\n FROM new_tokens\n),\nnode_call AS (\n SELECT\n contract_address,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n {},\n rpc_request,\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS response,\n '0x' || LOWER(SUBSTR(response :data :result :: STRING, 27, 40)) AS token_address\n FROM\n ready_reads\n)\nSELECT\n response,\n contract_address,\n IFF(\n token_address = '0x0000000000000000000000000000000000000000',\n '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}',\n token_address\n ) AS token_address,\n SYSDATE() AS modified_timestamp,\n SYSDATE() AS inserted_timestamp\nFROM\n node_call", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/layerzero/silver_bridge__layerzero_v2_token_reads.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"contract_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"contract_address\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH new_tokens AS (\n\n SELECT\n DISTINCT contract_address\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topic_0 = '0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a' --OFTSent\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= CURRENT_DATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\nAND contract_address NOT IN (\n SELECT\n contract_address\n FROM\n {{ this }}\n)\n{% endif %}\n),\nready_reads AS (\n SELECT\n contract_address,\n '0xfc0c546a' AS function_sig,\n RPAD(\n function_sig,\n 64,\n '0'\n ) AS input,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{'to': contract_address, 'from': null, 'data': input}, 'latest']\n ) AS rpc_request\n FROM new_tokens\n),\nnode_call AS (\n SELECT\n contract_address,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n {},\n rpc_request,\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS response,\n '0x' || LOWER(SUBSTR(response :data :result :: STRING, 27, 40)) AS token_address\n FROM\n ready_reads\n)\nSELECT\n response,\n contract_address,\n IFF(\n token_address = '0x0000000000000000000000000000000000000000',\n '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}',\n token_address\n ) AS token_address,\n SYSDATE() AS modified_timestamp,\n SYSDATE() AS inserted_timestamp\nFROM\n node_call\n*/\n\n\n\nWITH new_tokens AS (\n\n SELECT\n DISTINCT contract_address\n FROM\n polygon.core.fact_event_logs\n WHERE\n topic_0 = '0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a' --OFTSent\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.layerzero_v2_token_reads\n)\nAND modified_timestamp >= CURRENT_DATE() - INTERVAL '7 days'\n\nAND contract_address NOT IN (\n SELECT\n contract_address\n FROM\n polygon.silver_bridge.layerzero_v2_token_reads\n)\n\n),\nready_reads AS (\n SELECT\n contract_address,\n '0xfc0c546a' AS function_sig,\n RPAD(\n function_sig,\n 64,\n '0'\n ) AS input,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{'to': contract_address, 'from': null, 'data': input}, 'latest']\n ) AS rpc_request\n FROM new_tokens\n),\nnode_call AS (\n SELECT\n contract_address,\n live.udf_api(\n 'POST',\n '{URL}',\n {},\n rpc_request,\n 'Vault/prod/evm/quicknode/polygon/mainnet'\n ) AS response,\n '0x' || LOWER(SUBSTR(response :data :result :: STRING, 27, 40)) AS token_address\n FROM\n ready_reads\n)\nSELECT\n response,\n contract_address,\n IFF(\n token_address = '0x0000000000000000000000000000000000000000',\n '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',\n token_address\n ) AS token_address,\n SYSDATE() AS modified_timestamp,\n SYSDATE() AS inserted_timestamp\nFROM\n node_call", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__layerzero_v2": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__layerzero_v2", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/layerzero/silver_bridge__layerzero_v2.sql", "original_file_path": "models/curated_package/defi/bridge/silver/layerzero/silver_bridge__layerzero_v2.sql", "unique_id": "model.fsc_evm.silver_bridge__layerzero_v2", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "layerzero", "silver_bridge__layerzero_v2"], "alias": "layerzero_v2", "checksum": {"name": "sha256", "checksum": "0a4b3b7a073033d008896143cd5952560d28779079be6b824e880f27c7a5c962"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018355.5487516, "relation_name": "polygon.silver_bridge.layerzero_v2", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'stargate' --pulls in stargate rather than layerzero to exclude contract_address\n AND version = 'v2'\n),\nlayerzero AS (\n SELECT\n tx_hash,\n payload,\n tx_type,\n nonce,\n src_chain_id,\n src_chain,\n sender_contract_address,\n dst_chain_id,\n dst_chain,\n receiver_contract_address,\n guid,\n message_type,\n '0x' || SUBSTR(SUBSTR(payload, 227, 64), 25) AS to_address,\n executor_address,\n executor_fee,\n dvn_contract_address,\n dvn_fees,\n optional_dvns,\n required_dvns,\n total_dvn_fees,\n protocol,\n version,\n type,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n _log_id,\n modified_timestamp\n FROM\n {{ ref('silver_bridge__layerzero_v2_packet') }}\n WHERE\n sender_contract_address NOT IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\noft_raw AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n contract_address,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS part,\n SUBSTR(\n topic_1,\n 3\n ) AS guid,\n '0x' || SUBSTR(\n topic_2,\n 27\n ) AS from_address,\n utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: INT AS dst_chain_id_oft,\n utils.udf_hex_to_int(\n part [1] :: STRING\n ) :: INT AS amount_sent,\n utils.udf_hex_to_int(\n part [2] :: STRING\n ) :: INT AS amount_received,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n 'OFTSent' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topic_0 = '0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a' --OFTSent\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n event_name,\n contract_address AS bridge_address,\n guid,\n from_address AS sender,\n to_address AS receiver,\n to_address AS destination_chain_receiver,\n dst_chain_id,\n dst_chain_id :: STRING AS destination_chain_id,\n dst_chain AS destination_chain,\n coalesce(token_address, contract_address) AS token_address,\n amount_sent AS amount_unadj,\n amount_sent AS amount_sent,\n amount_received AS amount_received,\n src_chain_id,\n src_chain,\n payload,\n tx_type,\n nonce,\n sender_contract_address,\n receiver_contract_address,\n message_type,\n executor_address,\n executor_fee,\n dvn_contract_address,\n dvn_fees,\n optional_dvns,\n required_dvns,\n total_dvn_fees,\n l.protocol,\n l.version,\n l.type,\n l.platform,\n o._log_id,\n o.modified_timestamp\nFROM\n oft_raw o\n INNER JOIN layerzero l USING (\n tx_hash,\n guid\n )\n INNER JOIN {{ ref('silver_bridge__layerzero_v2_token_reads') }} USING (\n contract_address\n )", "language": "sql", "refs": [{"name": "silver_bridge__layerzero_v2_packet", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_bridge__layerzero_v2_token_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_bridge__layerzero_v2_packet", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_bridge__layerzero_v2_token_reads"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/layerzero/silver_bridge__layerzero_v2.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'stargate' --pulls in stargate rather than layerzero to exclude contract_address\n AND version = 'v2'\n),\nlayerzero AS (\n SELECT\n tx_hash,\n payload,\n tx_type,\n nonce,\n src_chain_id,\n src_chain,\n sender_contract_address,\n dst_chain_id,\n dst_chain,\n receiver_contract_address,\n guid,\n message_type,\n '0x' || SUBSTR(SUBSTR(payload, 227, 64), 25) AS to_address,\n executor_address,\n executor_fee,\n dvn_contract_address,\n dvn_fees,\n optional_dvns,\n required_dvns,\n total_dvn_fees,\n protocol,\n version,\n type,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n _log_id,\n modified_timestamp\n FROM\n {{ ref('silver_bridge__layerzero_v2_packet') }}\n WHERE\n sender_contract_address NOT IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\noft_raw AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n contract_address,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS part,\n SUBSTR(\n topic_1,\n 3\n ) AS guid,\n '0x' || SUBSTR(\n topic_2,\n 27\n ) AS from_address,\n utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: INT AS dst_chain_id_oft,\n utils.udf_hex_to_int(\n part [1] :: STRING\n ) :: INT AS amount_sent,\n utils.udf_hex_to_int(\n part [2] :: STRING\n ) :: INT AS amount_received,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n 'OFTSent' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topic_0 = '0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a' --OFTSent\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n event_name,\n contract_address AS bridge_address,\n guid,\n from_address AS sender,\n to_address AS receiver,\n to_address AS destination_chain_receiver,\n dst_chain_id,\n dst_chain_id :: STRING AS destination_chain_id,\n dst_chain AS destination_chain,\n coalesce(token_address, contract_address) AS token_address,\n amount_sent AS amount_unadj,\n amount_sent AS amount_sent,\n amount_received AS amount_received,\n src_chain_id,\n src_chain,\n payload,\n tx_type,\n nonce,\n sender_contract_address,\n receiver_contract_address,\n message_type,\n executor_address,\n executor_fee,\n dvn_contract_address,\n dvn_fees,\n optional_dvns,\n required_dvns,\n total_dvn_fees,\n l.protocol,\n l.version,\n l.type,\n l.platform,\n o._log_id,\n o.modified_timestamp\nFROM\n oft_raw o\n INNER JOIN layerzero l USING (\n tx_hash,\n guid\n )\n INNER JOIN {{ ref('silver_bridge__layerzero_v2_token_reads') }} USING (\n contract_address\n )\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'stargate' --pulls in stargate rather than layerzero to exclude contract_address\n AND version = 'v2'\n),\nlayerzero AS (\n SELECT\n tx_hash,\n payload,\n tx_type,\n nonce,\n src_chain_id,\n src_chain,\n sender_contract_address,\n dst_chain_id,\n dst_chain,\n receiver_contract_address,\n guid,\n message_type,\n '0x' || SUBSTR(SUBSTR(payload, 227, 64), 25) AS to_address,\n executor_address,\n executor_fee,\n dvn_contract_address,\n dvn_fees,\n optional_dvns,\n required_dvns,\n total_dvn_fees,\n protocol,\n version,\n type,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n _log_id,\n modified_timestamp\n FROM\n polygon.silver_bridge.layerzero_v2_packet\n WHERE\n sender_contract_address NOT IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.layerzero_v2\n)\n\n),\noft_raw AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n contract_address,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS part,\n SUBSTR(\n topic_1,\n 3\n ) AS guid,\n '0x' || SUBSTR(\n topic_2,\n 27\n ) AS from_address,\n utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: INT AS dst_chain_id_oft,\n utils.udf_hex_to_int(\n part [1] :: STRING\n ) :: INT AS amount_sent,\n utils.udf_hex_to_int(\n part [2] :: STRING\n ) :: INT AS amount_received,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n 'OFTSent' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n topic_0 = '0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a' --OFTSent\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.layerzero_v2\n)\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n event_name,\n contract_address AS bridge_address,\n guid,\n from_address AS sender,\n to_address AS receiver,\n to_address AS destination_chain_receiver,\n dst_chain_id,\n dst_chain_id :: STRING AS destination_chain_id,\n dst_chain AS destination_chain,\n coalesce(token_address, contract_address) AS token_address,\n amount_sent AS amount_unadj,\n amount_sent AS amount_sent,\n amount_received AS amount_received,\n src_chain_id,\n src_chain,\n payload,\n tx_type,\n nonce,\n sender_contract_address,\n receiver_contract_address,\n message_type,\n executor_address,\n executor_fee,\n dvn_contract_address,\n dvn_fees,\n optional_dvns,\n required_dvns,\n total_dvn_fees,\n l.protocol,\n l.version,\n l.type,\n l.platform,\n o._log_id,\n o.modified_timestamp\nFROM\n oft_raw o\n INNER JOIN layerzero l USING (\n tx_hash,\n guid\n )\n INNER JOIN polygon.silver_bridge.layerzero_v2_token_reads USING (\n contract_address\n )", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__layerzero_v2_packet": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__layerzero_v2_packet", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/layerzero/silver_bridge__layerzero_v2_packet.sql", "original_file_path": "models/curated_package/defi/bridge/silver/layerzero/silver_bridge__layerzero_v2_packet.sql", "unique_id": "model.fsc_evm.silver_bridge__layerzero_v2_packet", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "layerzero", "silver_bridge__layerzero_v2_packet"], "alias": "layerzero_v2_packet", "checksum": {"name": "sha256", "checksum": "69a60946de7b73a2965fc9f428696b6408d63ce51b790a8aec60839c995f542b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018355.8675528, "relation_name": "polygon.silver_bridge.layerzero_v2_packet", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'layerzero'\n AND version = 'v2'\n),\nraw AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n SUBSTR(\n decoded_log :encodedPayload :: STRING,\n 3\n ) AS payload,\n SUBSTR(\n payload,\n 1,\n 2\n ) AS tx_type,\n SUBSTR(\n payload,\n 3,\n 16\n ) AS nonce,\n utils.udf_hex_to_int(SUBSTR(payload, 19, 8)) AS src_chain_id,\n '0x' || SUBSTR(SUBSTR(payload, 27, 64), 25) AS sender_contract_address,\n utils.udf_hex_to_int(SUBSTR(payload, 91, 8)) AS dst_chain_id,\n '0x' || SUBSTR(SUBSTR(payload, 99, 64), 25) AS receiver_contract_address,\n SUBSTR(\n payload,\n 163,\n 64\n ) AS guid,\n SUBSTR(\n payload,\n 227,\n 2\n ) AS message_type,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n event_name = 'PacketSent'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\ndvn_fees as (\n\n SELECT\n tx_hash,\n event_index,\n contract_address as dvn_contract_address,\n decoded_log:fees as dvn_fees,\n decoded_log:optionalDVNs as optional_dvns,\n decoded_log:requiredDVNs as required_dvns,\n reduce(decoded_log:fees, 0, (acc, x) -> acc + x::number) as total_dvn_fees\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n WHERE\n event_name = 'DVNFeePaid'\n and tx_hash in (select tx_hash from raw)\n {% if is_incremental() %}\n AND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n {% endif %}\n),\nexecutor_fees as (\n\n SELECT\n tx_hash,\n event_index,\n contract_address as executor_contract_address,\n decoded_log: \"executor\" :: STRING AS executor_address,\n TRY_TO_NUMBER(decoded_log: \"fee\" :: STRING) AS executor_fee\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n WHERE\n event_name = 'ExecutorFeePaid'\n and tx_hash in (select tx_hash from raw)\n {% if is_incremental() %}\n AND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n {% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n raw.tx_hash,\n raw.event_index,\n payload,\n tx_type,\n nonce,\n src_chain_id,\n LOWER(\n c1.chain\n ) AS src_chain,\n sender_contract_address,\n dst_chain_id,\n LOWER(\n c2.chain\n ) AS dst_chain,\n receiver_contract_address,\n guid,\n message_type,\n executor_address,\n executor_fee,\n dvn_contract_address,\n dvn_fees,\n optional_dvns,\n required_dvns,\n total_dvn_fees,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n raw\n LEFT JOIN {{ ref('silver_bridge__layerzero_v2_bridge_seed') }}\n c1\n ON src_chain_id = c1.eid\n LEFT JOIN {{ ref('silver_bridge__layerzero_v2_bridge_seed') }}\n c2\n ON dst_chain_id = c2.eid\n LEFT JOIN executor_fees ef\n ON raw.tx_hash = ef.tx_hash\n AND raw.event_index = ef.event_index + 2\n LEFT JOIN dvn_fees df\n ON raw.tx_hash = df.tx_hash\n AND raw.event_index = df.event_index + 1", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "silver_bridge__layerzero_v2_bridge_seed", "package": null, "version": null}, {"name": "silver_bridge__layerzero_v2_bridge_seed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs", "seed.fsc_evm.silver_bridge__layerzero_v2_bridge_seed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/layerzero/silver_bridge__layerzero_v2_packet.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'layerzero'\n AND version = 'v2'\n),\nraw AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n SUBSTR(\n decoded_log :encodedPayload :: STRING,\n 3\n ) AS payload,\n SUBSTR(\n payload,\n 1,\n 2\n ) AS tx_type,\n SUBSTR(\n payload,\n 3,\n 16\n ) AS nonce,\n utils.udf_hex_to_int(SUBSTR(payload, 19, 8)) AS src_chain_id,\n '0x' || SUBSTR(SUBSTR(payload, 27, 64), 25) AS sender_contract_address,\n utils.udf_hex_to_int(SUBSTR(payload, 91, 8)) AS dst_chain_id,\n '0x' || SUBSTR(SUBSTR(payload, 99, 64), 25) AS receiver_contract_address,\n SUBSTR(\n payload,\n 163,\n 64\n ) AS guid,\n SUBSTR(\n payload,\n 227,\n 2\n ) AS message_type,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n event_name = 'PacketSent'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\ndvn_fees as (\n\n SELECT\n tx_hash,\n event_index,\n contract_address as dvn_contract_address,\n decoded_log:fees as dvn_fees,\n decoded_log:optionalDVNs as optional_dvns,\n decoded_log:requiredDVNs as required_dvns,\n reduce(decoded_log:fees, 0, (acc, x) -> acc + x::number) as total_dvn_fees\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n WHERE\n event_name = 'DVNFeePaid'\n and tx_hash in (select tx_hash from raw)\n {% if is_incremental() %}\n AND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n {% endif %}\n),\nexecutor_fees as (\n\n SELECT\n tx_hash,\n event_index,\n contract_address as executor_contract_address,\n decoded_log: \"executor\" :: STRING AS executor_address,\n TRY_TO_NUMBER(decoded_log: \"fee\" :: STRING) AS executor_fee\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n WHERE\n event_name = 'ExecutorFeePaid'\n and tx_hash in (select tx_hash from raw)\n {% if is_incremental() %}\n AND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n {% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n raw.tx_hash,\n raw.event_index,\n payload,\n tx_type,\n nonce,\n src_chain_id,\n LOWER(\n c1.chain\n ) AS src_chain,\n sender_contract_address,\n dst_chain_id,\n LOWER(\n c2.chain\n ) AS dst_chain,\n receiver_contract_address,\n guid,\n message_type,\n executor_address,\n executor_fee,\n dvn_contract_address,\n dvn_fees,\n optional_dvns,\n required_dvns,\n total_dvn_fees,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n raw\n LEFT JOIN {{ ref('silver_bridge__layerzero_v2_bridge_seed') }}\n c1\n ON src_chain_id = c1.eid\n LEFT JOIN {{ ref('silver_bridge__layerzero_v2_bridge_seed') }}\n c2\n ON dst_chain_id = c2.eid\n LEFT JOIN executor_fees ef\n ON raw.tx_hash = ef.tx_hash\n AND raw.event_index = ef.event_index + 2\n LEFT JOIN dvn_fees df\n ON raw.tx_hash = df.tx_hash\n AND raw.event_index = df.event_index + 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'layerzero'\n AND version = 'v2'\n),\nraw AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n SUBSTR(\n decoded_log :encodedPayload :: STRING,\n 3\n ) AS payload,\n SUBSTR(\n payload,\n 1,\n 2\n ) AS tx_type,\n SUBSTR(\n payload,\n 3,\n 16\n ) AS nonce,\n utils.udf_hex_to_int(SUBSTR(payload, 19, 8)) AS src_chain_id,\n '0x' || SUBSTR(SUBSTR(payload, 27, 64), 25) AS sender_contract_address,\n utils.udf_hex_to_int(SUBSTR(payload, 91, 8)) AS dst_chain_id,\n '0x' || SUBSTR(SUBSTR(payload, 99, 64), 25) AS receiver_contract_address,\n SUBSTR(\n payload,\n 163,\n 64\n ) AS guid,\n SUBSTR(\n payload,\n 227,\n 2\n ) AS message_type,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n event_name = 'PacketSent'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.layerzero_v2_packet\n)\n\n),\ndvn_fees as (\n\n SELECT\n tx_hash,\n event_index,\n contract_address as dvn_contract_address,\n decoded_log:fees as dvn_fees,\n decoded_log:optionalDVNs as optional_dvns,\n decoded_log:requiredDVNs as required_dvns,\n reduce(decoded_log:fees, 0, (acc, x) -> acc + x::number) as total_dvn_fees\n FROM\n polygon.core.ez_decoded_event_logs\n WHERE\n event_name = 'DVNFeePaid'\n and tx_hash in (select tx_hash from raw)\n \n AND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.layerzero_v2_packet\n )\n \n),\nexecutor_fees as (\n\n SELECT\n tx_hash,\n event_index,\n contract_address as executor_contract_address,\n decoded_log: \"executor\" :: STRING AS executor_address,\n TRY_TO_NUMBER(decoded_log: \"fee\" :: STRING) AS executor_fee\n FROM\n polygon.core.ez_decoded_event_logs\n WHERE\n event_name = 'ExecutorFeePaid'\n and tx_hash in (select tx_hash from raw)\n \n AND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.layerzero_v2_packet\n )\n \n)\nSELECT\n block_number,\n block_timestamp,\n raw.tx_hash,\n raw.event_index,\n payload,\n tx_type,\n nonce,\n src_chain_id,\n LOWER(\n c1.chain\n ) AS src_chain,\n sender_contract_address,\n dst_chain_id,\n LOWER(\n c2.chain\n ) AS dst_chain,\n receiver_contract_address,\n guid,\n message_type,\n executor_address,\n executor_fee,\n dvn_contract_address,\n dvn_fees,\n optional_dvns,\n required_dvns,\n total_dvn_fees,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n raw\n LEFT JOIN polygon.silver_bridge.layerzero_v2_bridge_seed\n c1\n ON src_chain_id = c1.eid\n LEFT JOIN polygon.silver_bridge.layerzero_v2_bridge_seed\n c2\n ON dst_chain_id = c2.eid\n LEFT JOIN executor_fees ef\n ON raw.tx_hash = ef.tx_hash\n AND raw.event_index = ef.event_index + 2\n LEFT JOIN dvn_fees df\n ON raw.tx_hash = df.tx_hash\n AND raw.event_index = df.event_index + 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__axie_infinity_depositrequested": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__axie_infinity_depositrequested", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/axie/silver_bridge__axie_infinity_depositrequested.sql", "original_file_path": "models/curated_package/defi/bridge/silver/axie/silver_bridge__axie_infinity_depositrequested.sql", "unique_id": "model.fsc_evm.silver_bridge__axie_infinity_depositrequested", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "axie", "silver_bridge__axie_infinity_depositrequested"], "alias": "axie_infinity_depositrequested", "checksum": {"name": "sha256", "checksum": "d97576f99a7db193ebe53c94ae48516c77a50495ee21e1959da5b3ebefccf14e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018356.1903408, "relation_name": "polygon.silver_bridge.axie_infinity_depositrequested", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'axie_infinity'\n AND version = 'v2'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"receipt\" :\"info\" :\"quantity\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"receipt\" :\"ronin\" :\"chainId\" :: STRING\n ) AS chainId,\n decoded_log :\"receipt\" :\"mainchain\" :\"addr\" :: STRING AS sender,\n decoded_log :\"receipt\" :\"ronin\" :\"addr\" :: STRING AS receiver,\n decoded_log :\"receipt\" :\"mainchain\" :\"tokenAddr\" :: STRING AS token_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xd7b25068d9dc8d00765254cfb7f5070f98d263c8d68931d937c7362fa738048b' -- DepositRequested\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n contract_address AS bridge_address,\n sender,\n receiver,\n receiver AS destination_chain_receiver,\n amount,\n chainId AS destination_chain_id,\n token_address,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/axie/silver_bridge__axie_infinity_depositrequested.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'axie_infinity'\n AND version = 'v2'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"receipt\" :\"info\" :\"quantity\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"receipt\" :\"ronin\" :\"chainId\" :: STRING\n ) AS chainId,\n decoded_log :\"receipt\" :\"mainchain\" :\"addr\" :: STRING AS sender,\n decoded_log :\"receipt\" :\"ronin\" :\"addr\" :: STRING AS receiver,\n decoded_log :\"receipt\" :\"mainchain\" :\"tokenAddr\" :: STRING AS token_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xd7b25068d9dc8d00765254cfb7f5070f98d263c8d68931d937c7362fa738048b' -- DepositRequested\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n contract_address AS bridge_address,\n sender,\n receiver,\n receiver AS destination_chain_receiver,\n amount,\n chainId AS destination_chain_id,\n token_address,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'axie_infinity'\n AND version = 'v2'\n),\nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"receipt\" :\"info\" :\"quantity\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"receipt\" :\"ronin\" :\"chainId\" :: STRING\n ) AS chainId,\n decoded_log :\"receipt\" :\"mainchain\" :\"addr\" :: STRING AS sender,\n decoded_log :\"receipt\" :\"ronin\" :\"addr\" :: STRING AS receiver,\n decoded_log :\"receipt\" :\"mainchain\" :\"tokenAddr\" :: STRING AS token_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xd7b25068d9dc8d00765254cfb7f5070f98d263c8d68931d937c7362fa738048b' -- DepositRequested\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.axie_infinity_depositrequested\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n contract_address AS bridge_address,\n sender,\n receiver,\n receiver AS destination_chain_receiver,\n amount,\n chainId AS destination_chain_id,\n token_address,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__polygon_pos_bridge": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__polygon_pos_bridge", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/native/polygon/silver_bridge__polygon_pos_bridge.sql", "original_file_path": "models/curated_package/defi/bridge/silver/native/polygon/silver_bridge__polygon_pos_bridge.sql", "unique_id": "model.fsc_evm.silver_bridge__polygon_pos_bridge", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "native", "polygon", "silver_bridge__polygon_pos_bridge"], "alias": "polygon_pos_bridge", "checksum": {"name": "sha256", "checksum": "5485868a52462c106c3fbd3958a5584188b6e6e9e8bec4bfda9408f8dcd7edc2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018356.5084617, "relation_name": "polygon.silver_bridge.polygon_pos_bridge", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n NULL AS event_index,\n to_address AS bridge_address,\n NULL AS event_name,\n from_address AS sender,\n from_address AS receiver,\n from_address AS destination_chain_receiver,\n '1' AS destination_chain_id,\n 'ethereum' AS destination_chain,\n to_address AS token_address,\n NAME,\n utils.udf_hex_to_int(regexp_substr_all(SUBSTR(input, 11), '.{64}') [0] :: STRING) :: INT AS amount_unadj,\n 'polygon_pos_bridge-v1' platform,\n 'polygon_pos_bridge' AS protocol,\n 'v1' AS version,\n 'native' AS TYPE,\n fact_traces_id AS _id,\n inserted_timestamp,\n t.modified_timestamp\nFROM\n {{ ref('core__fact_traces') }}\n t\n INNER JOIN {{ ref('silver_bridge__polygon_pos_contracts') }} C\n ON C.address = t.to_address\nWHERE\n LEFT(\n input,\n 10\n ) = '0x2e1a7d4d' -- withdraw\n AND block_timestamp :: DATE >= '2020-05-30'\n AND TYPE = 'CALL'\n AND '{{ vars.GLOBAL_PROJECT_NAME }}' = 'polygon'\n AND trace_succeeded\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND t.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND t.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}, {"name": "silver_bridge__polygon_pos_contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces", "model.fsc_evm.silver_bridge__polygon_pos_contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/native/polygon/silver_bridge__polygon_pos_bridge.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n NULL AS event_index,\n to_address AS bridge_address,\n NULL AS event_name,\n from_address AS sender,\n from_address AS receiver,\n from_address AS destination_chain_receiver,\n '1' AS destination_chain_id,\n 'ethereum' AS destination_chain,\n to_address AS token_address,\n NAME,\n utils.udf_hex_to_int(regexp_substr_all(SUBSTR(input, 11), '.{64}') [0] :: STRING) :: INT AS amount_unadj,\n 'polygon_pos_bridge-v1' platform,\n 'polygon_pos_bridge' AS protocol,\n 'v1' AS version,\n 'native' AS TYPE,\n fact_traces_id AS _id,\n inserted_timestamp,\n t.modified_timestamp\nFROM\n {{ ref('core__fact_traces') }}\n t\n INNER JOIN {{ ref('silver_bridge__polygon_pos_contracts') }} C\n ON C.address = t.to_address\nWHERE\n LEFT(\n input,\n 10\n ) = '0x2e1a7d4d' -- withdraw\n AND block_timestamp :: DATE >= '2020-05-30'\n AND TYPE = 'CALL'\n AND '{{ vars.GLOBAL_PROJECT_NAME }}' = 'polygon'\n AND trace_succeeded\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND t.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND t.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n*/\n\n\n\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n NULL AS event_index,\n to_address AS bridge_address,\n NULL AS event_name,\n from_address AS sender,\n from_address AS receiver,\n from_address AS destination_chain_receiver,\n '1' AS destination_chain_id,\n 'ethereum' AS destination_chain,\n to_address AS token_address,\n NAME,\n utils.udf_hex_to_int(regexp_substr_all(SUBSTR(input, 11), '.{64}') [0] :: STRING) :: INT AS amount_unadj,\n 'polygon_pos_bridge-v1' platform,\n 'polygon_pos_bridge' AS protocol,\n 'v1' AS version,\n 'native' AS TYPE,\n fact_traces_id AS _id,\n inserted_timestamp,\n t.modified_timestamp\nFROM\n polygon.core.fact_traces\n t\n INNER JOIN polygon.silver_bridge.polygon_pos_contracts C\n ON C.address = t.to_address\nWHERE\n LEFT(\n input,\n 10\n ) = '0x2e1a7d4d' -- withdraw\n AND block_timestamp :: DATE >= '2020-05-30'\n AND TYPE = 'CALL'\n AND 'polygon' = 'polygon'\n AND trace_succeeded\n AND tx_succeeded\n\n\nAND t.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.polygon_pos_bridge\n)\nAND t.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__polygon_pos_contracts": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__polygon_pos_contracts", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/native/polygon/silver_bridge__polygon_pos_contracts.sql", "original_file_path": "models/curated_package/defi/bridge/silver/native/polygon/silver_bridge__polygon_pos_contracts.sql", "unique_id": "model.fsc_evm.silver_bridge__polygon_pos_contracts", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "native", "polygon", "silver_bridge__polygon_pos_contracts"], "alias": "polygon_pos_contracts", "checksum": {"name": "sha256", "checksum": "71e5cd97faa228e3df0c18b021a84a5710e69a0fb7e6389cb3cae25c35efab0c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "address", "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018356.8249698, "relation_name": "polygon.silver_bridge.polygon_pos_contracts", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"address\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nSELECT\n address,\n NAME,\n modified_timestamp\nFROM\n {{ ref('core__dim_contracts') }}\nWHERE\n NAME LIKE '%(PoS)%'\n AND '{{ vars.GLOBAL_PROJECT_NAME }}' = 'polygon'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nUNION ALL\nSELECT\n '0x0000000000000000000000000000000000001010' AS address,\n 'POL' AS NAME,\n TO_TIMESTAMP('1970-01-01') AS modified_timestamp", "language": "sql", "refs": [{"name": "core__dim_contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__dim_contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/native/polygon/silver_bridge__polygon_pos_contracts.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"address\",\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nSELECT\n address,\n NAME,\n modified_timestamp\nFROM\n {{ ref('core__dim_contracts') }}\nWHERE\n NAME LIKE '%(PoS)%'\n AND '{{ vars.GLOBAL_PROJECT_NAME }}' = 'polygon'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nUNION ALL\nSELECT\n '0x0000000000000000000000000000000000001010' AS address,\n 'POL' AS NAME,\n TO_TIMESTAMP('1970-01-01') AS modified_timestamp\n*/\n\n\n\nSELECT\n address,\n NAME,\n modified_timestamp\nFROM\n polygon.core.dim_contracts\nWHERE\n NAME LIKE '%(PoS)%'\n AND 'polygon' = 'polygon'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.polygon_pos_contracts\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nUNION ALL\nSELECT\n '0x0000000000000000000000000000000000001010' AS address,\n 'POL' AS NAME,\n TO_TIMESTAMP('1970-01-01') AS modified_timestamp", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__avalanche_native_v2": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__avalanche_native_v2", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/native/avalanche/silver_bridge__avalanche_native_v2.sql", "original_file_path": "models/curated_package/defi/bridge/silver/native/avalanche/silver_bridge__avalanche_native_v2.sql", "unique_id": "model.fsc_evm.silver_bridge__avalanche_native_v2", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "native", "avalanche", "silver_bridge__avalanche_native_v2"], "alias": "avalanche_native_v2", "checksum": {"name": "sha256", "checksum": "436578259d48d828f8bdc54aca072cc8912c8a726fe0d56dcc2468dc57b14e5f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018357.1433895, "relation_name": "polygon.silver_bridge.avalanche_native_v2", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH unwrap AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n contract_address AS bridge_address,\n contract_address AS token_address,\n 'Unwrap' AS event_name,\n 'avalanche_bridge' AS protocol,\n 'v2' AS version,\n 'native' AS type,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n regexp_SUBSTR_all(SUBSTR(DATA, 3), '.{64}') AS part,\n utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: INT AS amount_unadj,\n utils.udf_hex_to_int(\n part [1] :: STRING\n ) :: STRING AS destination_chain_id,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n block_timestamp :: DATE >= '2022-01-01'\n AND topic_0 = '0x37a06799a3500428a773d00284aa706101f5ad94dae9ec37e1c3773aa54c3304'\n AND '{{ vars.GLOBAL_PROJECT_NAME }}' = 'avalanche'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\ntransfers AS (\n SELECT\n contract_address,\n tx_hash,\n from_address\n FROM\n {{ ref('core__ez_token_transfers') }}\n WHERE\n block_timestamp :: DATE >= '2022-01-01'\n AND to_address = '0x0000000000000000000000000000000000000000'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n\nqualify ROW_NUMBER() over (\n PARTITION BY tx_hash,\n contract_address,\n from_address\n ORDER BY\n event_index ASC\n) = 1\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n from_address AS sender,\n from_address AS receiver,\n from_address AS destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n IFF(\n token_address = '0x152b9d0fdc40c096757f570a51e494bd4b943e50',\n -- btc.b\n 'bitcoin',\n 'ethereum'\n ) AS destination_chain,\n token_address,\n amount_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp,\n inserted_timestamp\nFROM\n unwrap\n INNER JOIN transfers USING (\n contract_address,\n tx_hash\n )", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__ez_token_transfers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__ez_token_transfers"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/native/avalanche/silver_bridge__avalanche_native_v2.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH unwrap AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n contract_address AS bridge_address,\n contract_address AS token_address,\n 'Unwrap' AS event_name,\n 'avalanche_bridge' AS protocol,\n 'v2' AS version,\n 'native' AS type,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n regexp_SUBSTR_all(SUBSTR(DATA, 3), '.{64}') AS part,\n utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: INT AS amount_unadj,\n utils.udf_hex_to_int(\n part [1] :: STRING\n ) :: STRING AS destination_chain_id,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n block_timestamp :: DATE >= '2022-01-01'\n AND topic_0 = '0x37a06799a3500428a773d00284aa706101f5ad94dae9ec37e1c3773aa54c3304'\n AND '{{ vars.GLOBAL_PROJECT_NAME }}' = 'avalanche'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\ntransfers AS (\n SELECT\n contract_address,\n tx_hash,\n from_address\n FROM\n {{ ref('core__ez_token_transfers') }}\n WHERE\n block_timestamp :: DATE >= '2022-01-01'\n AND to_address = '0x0000000000000000000000000000000000000000'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n\nqualify ROW_NUMBER() over (\n PARTITION BY tx_hash,\n contract_address,\n from_address\n ORDER BY\n event_index ASC\n) = 1\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n from_address AS sender,\n from_address AS receiver,\n from_address AS destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n IFF(\n token_address = '0x152b9d0fdc40c096757f570a51e494bd4b943e50',\n -- btc.b\n 'bitcoin',\n 'ethereum'\n ) AS destination_chain,\n token_address,\n amount_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp,\n inserted_timestamp\nFROM\n unwrap\n INNER JOIN transfers USING (\n contract_address,\n tx_hash\n )\n*/\n\n\n\nWITH unwrap AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n contract_address AS bridge_address,\n contract_address AS token_address,\n 'Unwrap' AS event_name,\n 'avalanche_bridge' AS protocol,\n 'v2' AS version,\n 'native' AS type,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n regexp_SUBSTR_all(SUBSTR(DATA, 3), '.{64}') AS part,\n utils.udf_hex_to_int(\n part [0] :: STRING\n ) :: INT AS amount_unadj,\n utils.udf_hex_to_int(\n part [1] :: STRING\n ) :: STRING AS destination_chain_id,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n inserted_timestamp,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n block_timestamp :: DATE >= '2022-01-01'\n AND topic_0 = '0x37a06799a3500428a773d00284aa706101f5ad94dae9ec37e1c3773aa54c3304'\n AND 'polygon' = 'avalanche'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.avalanche_native_v2\n)\n\n),\ntransfers AS (\n SELECT\n contract_address,\n tx_hash,\n from_address\n FROM\n polygon.core.ez_token_transfers\n WHERE\n block_timestamp :: DATE >= '2022-01-01'\n AND to_address = '0x0000000000000000000000000000000000000000'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.avalanche_native_v2\n)\n\n\nqualify ROW_NUMBER() over (\n PARTITION BY tx_hash,\n contract_address,\n from_address\n ORDER BY\n event_index ASC\n) = 1\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n from_address AS sender,\n from_address AS receiver,\n from_address AS destination_chain_receiver,\n destination_chain_id :: STRING AS destination_chain_id,\n IFF(\n token_address = '0x152b9d0fdc40c096757f570a51e494bd4b943e50',\n -- btc.b\n 'bitcoin',\n 'ethereum'\n ) AS destination_chain,\n token_address,\n amount_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp,\n inserted_timestamp\nFROM\n unwrap\n INNER JOIN transfers USING (\n contract_address,\n tx_hash\n )", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__superchain_l2_standard_bridge": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__superchain_l2_standard_bridge", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/native/superchain/silver_bridge__superchain_l2_standard_bridge.sql", "original_file_path": "models/curated_package/defi/bridge/silver/native/superchain/silver_bridge__superchain_l2_standard_bridge.sql", "unique_id": "model.fsc_evm.silver_bridge__superchain_l2_standard_bridge", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "native", "superchain", "silver_bridge__superchain_l2_standard_bridge"], "alias": "superchain_l2_standard_bridge", "checksum": {"name": "sha256", "checksum": "5278f8d571c94bd6927d6797e32e44cc5568886b9f992e172027eab20b7e6c1a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018357.4654453, "relation_name": "polygon.silver_bridge.superchain_l2_standard_bridge", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'l2_standard_bridge'\n),\n\nbase AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n '0x' || SUBSTR(\n topic_1,\n 27\n ) :: STRING AS l1_token,\n '0x' || SUBSTR(\n topic_2,\n 27\n ) :: STRING AS l2_token,\n '0x' || SUBSTR(\n topic_3,\n 27\n ) :: STRING AS from_address,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS part,\n '0x' || SUBSTR(\n part [0] :: STRING,\n 25\n ) AS to_address,\n utils.udf_hex_to_int(\n part [1] :: STRING\n ) :: INT AS amount_unadj,\n inserted_timestamp,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n INNER JOIN contract_mapping \n USING (contract_address)\n WHERE\n topic_0 = '0x73d170910aba9e6d50b102db522b1dbcd796216f5128b445aa2135272886497e' -- withdrawal initiated\n AND block_timestamp :: DATE >= '2021-11-01'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address AS bridge_address,\n 'WithdrawalInitiated' AS event_name,\n from_address AS sender,\n to_address AS receiver,\n to_address AS destination_chain_receiver,\n '1' AS destination_chain_id,\n 'ethereum' AS destination_chain,\n IFF(\n l1_token = '0x0000000000000000000000000000000000000000',\n '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}',\n l2_token\n ) AS token_address,\n amount_unadj,\n CONCAT('{{ vars.GLOBAL_PROJECT_NAME }}', '_l2_standard_bridge') AS protocol,\n 'v1' AS version,\n CONCAT(protocol, '-', version) AS platform,\n 'native' AS TYPE,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _id,\n inserted_timestamp,\n modified_timestamp\nFROM\n base", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/native/superchain/silver_bridge__superchain_l2_standard_bridge.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'l2_standard_bridge'\n),\n\nbase AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n '0x' || SUBSTR(\n topic_1,\n 27\n ) :: STRING AS l1_token,\n '0x' || SUBSTR(\n topic_2,\n 27\n ) :: STRING AS l2_token,\n '0x' || SUBSTR(\n topic_3,\n 27\n ) :: STRING AS from_address,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS part,\n '0x' || SUBSTR(\n part [0] :: STRING,\n 25\n ) AS to_address,\n utils.udf_hex_to_int(\n part [1] :: STRING\n ) :: INT AS amount_unadj,\n inserted_timestamp,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n INNER JOIN contract_mapping \n USING (contract_address)\n WHERE\n topic_0 = '0x73d170910aba9e6d50b102db522b1dbcd796216f5128b445aa2135272886497e' -- withdrawal initiated\n AND block_timestamp :: DATE >= '2021-11-01'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address AS bridge_address,\n 'WithdrawalInitiated' AS event_name,\n from_address AS sender,\n to_address AS receiver,\n to_address AS destination_chain_receiver,\n '1' AS destination_chain_id,\n 'ethereum' AS destination_chain,\n IFF(\n l1_token = '0x0000000000000000000000000000000000000000',\n '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}',\n l2_token\n ) AS token_address,\n amount_unadj,\n CONCAT('{{ vars.GLOBAL_PROJECT_NAME }}', '_l2_standard_bridge') AS protocol,\n 'v1' AS version,\n CONCAT(protocol, '-', version) AS platform,\n 'native' AS TYPE,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _id,\n inserted_timestamp,\n modified_timestamp\nFROM\n base\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'l2_standard_bridge'\n),\n\nbase AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n '0x' || SUBSTR(\n topic_1,\n 27\n ) :: STRING AS l1_token,\n '0x' || SUBSTR(\n topic_2,\n 27\n ) :: STRING AS l2_token,\n '0x' || SUBSTR(\n topic_3,\n 27\n ) :: STRING AS from_address,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS part,\n '0x' || SUBSTR(\n part [0] :: STRING,\n 25\n ) AS to_address,\n utils.udf_hex_to_int(\n part [1] :: STRING\n ) :: INT AS amount_unadj,\n inserted_timestamp,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n INNER JOIN contract_mapping \n USING (contract_address)\n WHERE\n topic_0 = '0x73d170910aba9e6d50b102db522b1dbcd796216f5128b445aa2135272886497e' -- withdrawal initiated\n AND block_timestamp :: DATE >= '2021-11-01'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.superchain_l2_standard_bridge\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address AS bridge_address,\n 'WithdrawalInitiated' AS event_name,\n from_address AS sender,\n to_address AS receiver,\n to_address AS destination_chain_receiver,\n '1' AS destination_chain_id,\n 'ethereum' AS destination_chain,\n IFF(\n l1_token = '0x0000000000000000000000000000000000000000',\n '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',\n l2_token\n ) AS token_address,\n amount_unadj,\n CONCAT('polygon', '_l2_standard_bridge') AS protocol,\n 'v1' AS version,\n CONCAT(protocol, '-', version) AS platform,\n 'native' AS TYPE,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _id,\n inserted_timestamp,\n modified_timestamp\nFROM\n base", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__ethereum_native_bridges_transfers_out": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__ethereum_native_bridges_transfers_out", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/native/ethereum/silver_bridge__ethereum_native_bridges_transfers_out.sql", "original_file_path": "models/curated_package/defi/bridge/silver/native/ethereum/silver_bridge__ethereum_native_bridges_transfers_out.sql", "unique_id": "model.fsc_evm.silver_bridge__ethereum_native_bridges_transfers_out", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "native", "ethereum", "silver_bridge__ethereum_native_bridges_transfers_out"], "alias": "ethereum_native_bridges_transfers_out", "checksum": {"name": "sha256", "checksum": "ea74d65a56d80bcbe1abe5b52e651bb61b44689a394f0880406c8474ee1071e9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018357.7877717, "relation_name": "polygon.silver_bridge.ethereum_native_bridges_transfers_out", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH bridges AS (\n\n SELECT\n LOWER(contract_address) AS bridge_address,\n LOWER(protocol) AS protocol,\n LOWER(version) AS version,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n 'ethereum_native' AS type,\n LOWER(blockchain) AS blockchain\n FROM\n {{ ref('silver_bridge__ethereum_native_bridges_seed') }}\n WHERE\n '{{ vars.GLOBAL_PROJECT_NAME }}' = 'ethereum'\n),\ntoken_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n contract_address,\n from_address,\n to_address,\n bridge_address,\n protocol,\n version,\n b.type,\n platform,\n blockchain,\n raw_amount,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_token_transfers') }}\n t\n INNER JOIN bridges b\n ON t.to_address = b.bridge_address\n WHERE\n from_address <> '0x0000000000000000000000000000000000000000'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nnative_transfers AS (\n SELECT\n et.block_number,\n et.block_timestamp,\n et.tx_hash,\n t.from_address AS origin_from_address,\n t.to_address AS origin_to_address,\n t.origin_function_signature,\n et.from_address,\n et.to_address,\n bridge_address,\n protocol,\n version,\n b.type,\n platform,\n blockchain,\n amount_precise_raw,\n et.ez_native_transfers_id AS _call_id,\n et.modified_timestamp\n FROM\n {{ ref('core__ez_native_transfers') }}\n et\n INNER JOIN bridges b\n ON et.to_address = b.bridge_address\n LEFT JOIN {{ ref('core__fact_transactions') }}\n t USING(\n block_number,\n tx_hash\n )\n WHERE\n tx_hash NOT IN (\n SELECT\n DISTINCT tx_hash\n FROM\n token_transfers\n )\n\n{% if is_incremental() %}\nAND et.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'Transfer' AS event_name,\n bridge_address,\n protocol,\n version,\n type,\n platform,\n from_address AS sender,\n to_address AS receiver,\n CASE \n WHEN origin_from_address = '0x0000000000000000000000000000000000000000' THEN from_address\n ELSE origin_from_address\n END AS destination_chain_receiver,\n raw_amount AS amount_unadj,\n blockchain AS destination_chain,\n contract_address AS token_address,\n {{ dbt_utils.generate_surrogate_key(\n ['_log_id']\n ) }} AS _id,\n modified_timestamp\n FROM\n token_transfers\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n NULL AS event_index,\n NULL AS event_name,\n bridge_address,\n protocol,\n version,\n type,\n platform,\n from_address AS sender,\n to_address AS receiver,\n CASE \n WHEN origin_from_address = '0x0000000000000000000000000000000000000000' THEN from_address\n ELSE origin_from_address\n END AS destination_chain_receiver,\n amount_precise_raw AS amount_unadj,\n blockchain AS destination_chain,\n '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' AS token_address,\n {{ dbt_utils.generate_surrogate_key(\n ['_call_id']\n ) }} AS _id,\n modified_timestamp\n FROM\n native_transfers\n)\nSELECT\n *\nFROM\n FINAL\nWHERE\n origin_to_address IS NOT NULL", "language": "sql", "refs": [{"name": "silver_bridge__ethereum_native_bridges_seed", "package": null, "version": null}, {"name": "core__ez_token_transfers", "package": null, "version": null}, {"name": "core__ez_native_transfers", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["seed.fsc_evm.silver_bridge__ethereum_native_bridges_seed", "model.fsc_evm.core__ez_token_transfers", "model.fsc_evm.core__ez_native_transfers", "model.fsc_evm.core__fact_transactions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/native/ethereum/silver_bridge__ethereum_native_bridges_transfers_out.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH bridges AS (\n\n SELECT\n LOWER(contract_address) AS bridge_address,\n LOWER(protocol) AS protocol,\n LOWER(version) AS version,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n 'ethereum_native' AS type,\n LOWER(blockchain) AS blockchain\n FROM\n {{ ref('silver_bridge__ethereum_native_bridges_seed') }}\n WHERE\n '{{ vars.GLOBAL_PROJECT_NAME }}' = 'ethereum'\n),\ntoken_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n contract_address,\n from_address,\n to_address,\n bridge_address,\n protocol,\n version,\n b.type,\n platform,\n blockchain,\n raw_amount,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_token_transfers') }}\n t\n INNER JOIN bridges b\n ON t.to_address = b.bridge_address\n WHERE\n from_address <> '0x0000000000000000000000000000000000000000'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nnative_transfers AS (\n SELECT\n et.block_number,\n et.block_timestamp,\n et.tx_hash,\n t.from_address AS origin_from_address,\n t.to_address AS origin_to_address,\n t.origin_function_signature,\n et.from_address,\n et.to_address,\n bridge_address,\n protocol,\n version,\n b.type,\n platform,\n blockchain,\n amount_precise_raw,\n et.ez_native_transfers_id AS _call_id,\n et.modified_timestamp\n FROM\n {{ ref('core__ez_native_transfers') }}\n et\n INNER JOIN bridges b\n ON et.to_address = b.bridge_address\n LEFT JOIN {{ ref('core__fact_transactions') }}\n t USING(\n block_number,\n tx_hash\n )\n WHERE\n tx_hash NOT IN (\n SELECT\n DISTINCT tx_hash\n FROM\n token_transfers\n )\n\n{% if is_incremental() %}\nAND et.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'Transfer' AS event_name,\n bridge_address,\n protocol,\n version,\n type,\n platform,\n from_address AS sender,\n to_address AS receiver,\n CASE \n WHEN origin_from_address = '0x0000000000000000000000000000000000000000' THEN from_address\n ELSE origin_from_address\n END AS destination_chain_receiver,\n raw_amount AS amount_unadj,\n blockchain AS destination_chain,\n contract_address AS token_address,\n {{ dbt_utils.generate_surrogate_key(\n ['_log_id']\n ) }} AS _id,\n modified_timestamp\n FROM\n token_transfers\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n NULL AS event_index,\n NULL AS event_name,\n bridge_address,\n protocol,\n version,\n type,\n platform,\n from_address AS sender,\n to_address AS receiver,\n CASE \n WHEN origin_from_address = '0x0000000000000000000000000000000000000000' THEN from_address\n ELSE origin_from_address\n END AS destination_chain_receiver,\n amount_precise_raw AS amount_unadj,\n blockchain AS destination_chain,\n '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' AS token_address,\n {{ dbt_utils.generate_surrogate_key(\n ['_call_id']\n ) }} AS _id,\n modified_timestamp\n FROM\n native_transfers\n)\nSELECT\n *\nFROM\n FINAL\nWHERE\n origin_to_address IS NOT NULL\n*/\n\n\n\nWITH bridges AS (\n\n SELECT\n LOWER(contract_address) AS bridge_address,\n LOWER(protocol) AS protocol,\n LOWER(version) AS version,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n 'ethereum_native' AS type,\n LOWER(blockchain) AS blockchain\n FROM\n polygon.silver_bridge.ethereum_native_bridges_seed\n WHERE\n 'polygon' = 'ethereum'\n),\ntoken_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n contract_address,\n from_address,\n to_address,\n bridge_address,\n protocol,\n version,\n b.type,\n platform,\n blockchain,\n raw_amount,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_token_transfers\n t\n INNER JOIN bridges b\n ON t.to_address = b.bridge_address\n WHERE\n from_address <> '0x0000000000000000000000000000000000000000'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.ethereum_native_bridges_transfers_out\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nnative_transfers AS (\n SELECT\n et.block_number,\n et.block_timestamp,\n et.tx_hash,\n t.from_address AS origin_from_address,\n t.to_address AS origin_to_address,\n t.origin_function_signature,\n et.from_address,\n et.to_address,\n bridge_address,\n protocol,\n version,\n b.type,\n platform,\n blockchain,\n amount_precise_raw,\n et.ez_native_transfers_id AS _call_id,\n et.modified_timestamp\n FROM\n polygon.core.ez_native_transfers\n et\n INNER JOIN bridges b\n ON et.to_address = b.bridge_address\n LEFT JOIN polygon.core.fact_transactions\n t USING(\n block_number,\n tx_hash\n )\n WHERE\n tx_hash NOT IN (\n SELECT\n DISTINCT tx_hash\n FROM\n token_transfers\n )\n\n\nAND et.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.ethereum_native_bridges_transfers_out\n)\n\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'Transfer' AS event_name,\n bridge_address,\n protocol,\n version,\n type,\n platform,\n from_address AS sender,\n to_address AS receiver,\n CASE \n WHEN origin_from_address = '0x0000000000000000000000000000000000000000' THEN from_address\n ELSE origin_from_address\n END AS destination_chain_receiver,\n raw_amount AS amount_unadj,\n blockchain AS destination_chain,\n contract_address AS token_address,\n \n \nmd5(cast(coalesce(cast(_log_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS _id,\n modified_timestamp\n FROM\n token_transfers\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n NULL AS event_index,\n NULL AS event_name,\n bridge_address,\n protocol,\n version,\n type,\n platform,\n from_address AS sender,\n to_address AS receiver,\n CASE \n WHEN origin_from_address = '0x0000000000000000000000000000000000000000' THEN from_address\n ELSE origin_from_address\n END AS destination_chain_receiver,\n amount_precise_raw AS amount_unadj,\n blockchain AS destination_chain,\n '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' AS token_address,\n \n \nmd5(cast(coalesce(cast(_call_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS _id,\n modified_timestamp\n FROM\n native_transfers\n)\nSELECT\n *\nFROM\n FINAL\nWHERE\n origin_to_address IS NOT NULL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__core_bridge_unwraptoken": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__core_bridge_unwraptoken", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/native/core/silver_bridge__core_bridge_unwraptoken.sql", "original_file_path": "models/curated_package/defi/bridge/silver/native/core/silver_bridge__core_bridge_unwraptoken.sql", "unique_id": "model.fsc_evm.silver_bridge__core_bridge_unwraptoken", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "native", "core", "silver_bridge__core_bridge_unwraptoken"], "alias": "core_bridge_unwraptoken", "checksum": {"name": "sha256", "checksum": "d515d1b0259b41f637255e7f05c95967d5ff797aa089b3ba2828d3aec95e18b0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018358.1118944, "relation_name": "polygon.silver_bridge.core_bridge_unwraptoken", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH unwrap_token AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n tx_hash,\n event_index,\n 'UnwrapToken' AS event_name,\n 'core_bridge' AS protocol,\n 'v1' AS version,\n 'native' AS type,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS local_token,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS remote_token,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS remote_chain_id,\n CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) AS to_address,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [4] :: STRING)) AS amount_unadj,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n contract_address = '0xa4218e1f39da4aadac971066458db56e901bcbde'\n AND topic_0 = '0x3b661011d9e0ff8f0dc432bac4ed79eabf70cf52596ed9de985810ef36689e9e'\n AND tx_succeeded\n AND '{{ vars.GLOBAL_PROJECT_NAME }}' = 'core'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address AS bridge_address,\n contract_address,\n event_name,\n protocol,\n version,\n type,\n platform,\n origin_from_address AS sender,\n to_address AS receiver,\n receiver AS destination_chain_receiver,\n remote_chain_id :: STRING AS destination_chain_id,\n s.chain_name AS destination_chain,\n local_token AS token_address,\n amount_unadj,\n _log_id,\n modified_timestamp\nFROM\n unwrap_token\n LEFT JOIN {{ ref('silver_bridge__stargate_chain_id_seed') }}\n s\n ON unwrap_token.remote_chain_id :: STRING = s.chain_id :: STRING", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_bridge__stargate_chain_id_seed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "seed.fsc_evm.silver_bridge__stargate_chain_id_seed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/native/core/silver_bridge__core_bridge_unwraptoken.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH unwrap_token AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n tx_hash,\n event_index,\n 'UnwrapToken' AS event_name,\n 'core_bridge' AS protocol,\n 'v1' AS version,\n 'native' AS type,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS local_token,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS remote_token,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS remote_chain_id,\n CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) AS to_address,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [4] :: STRING)) AS amount_unadj,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n contract_address = '0xa4218e1f39da4aadac971066458db56e901bcbde'\n AND topic_0 = '0x3b661011d9e0ff8f0dc432bac4ed79eabf70cf52596ed9de985810ef36689e9e'\n AND tx_succeeded\n AND '{{ vars.GLOBAL_PROJECT_NAME }}' = 'core'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address AS bridge_address,\n contract_address,\n event_name,\n protocol,\n version,\n type,\n platform,\n origin_from_address AS sender,\n to_address AS receiver,\n receiver AS destination_chain_receiver,\n remote_chain_id :: STRING AS destination_chain_id,\n s.chain_name AS destination_chain,\n local_token AS token_address,\n amount_unadj,\n _log_id,\n modified_timestamp\nFROM\n unwrap_token\n LEFT JOIN {{ ref('silver_bridge__stargate_chain_id_seed') }}\n s\n ON unwrap_token.remote_chain_id :: STRING = s.chain_id :: STRING\n*/\n\n\n\nWITH unwrap_token AS (\n\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n tx_hash,\n event_index,\n 'UnwrapToken' AS event_name,\n 'core_bridge' AS protocol,\n 'v1' AS version,\n 'native' AS type,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS local_token,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS remote_token,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS remote_chain_id,\n CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) AS to_address,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [4] :: STRING)) AS amount_unadj,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n contract_address = '0xa4218e1f39da4aadac971066458db56e901bcbde'\n AND topic_0 = '0x3b661011d9e0ff8f0dc432bac4ed79eabf70cf52596ed9de985810ef36689e9e'\n AND tx_succeeded\n AND 'polygon' = 'core'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.core_bridge_unwraptoken\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address AS bridge_address,\n contract_address,\n event_name,\n protocol,\n version,\n type,\n platform,\n origin_from_address AS sender,\n to_address AS receiver,\n receiver AS destination_chain_receiver,\n remote_chain_id :: STRING AS destination_chain_id,\n s.chain_name AS destination_chain,\n local_token AS token_address,\n amount_unadj,\n _log_id,\n modified_timestamp\nFROM\n unwrap_token\n LEFT JOIN polygon.silver_bridge.stargate_chain_id_seed\n s\n ON unwrap_token.remote_chain_id :: STRING = s.chain_id :: STRING", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__celer_cbridge_send": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__celer_cbridge_send", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/celer/silver_bridge__celer_cbridge_send.sql", "original_file_path": "models/curated_package/defi/bridge/silver/celer/silver_bridge__celer_cbridge_send.sql", "unique_id": "model.fsc_evm.silver_bridge__celer_cbridge_send", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "celer", "silver_bridge__celer_cbridge_send"], "alias": "celer_cbridge_send", "checksum": {"name": "sha256", "checksum": "a982d6578b0f34403518dade52a0660a3bd52e18845a9ed2f8fed050f21b04c0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018358.433395, "relation_name": "polygon.silver_bridge.celer_cbridge_send", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'celer_cbridge'\n), \nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"dstChainId\" :: STRING\n ) AS dstChainId,\n TRY_TO_NUMBER(\n decoded_log :\"maxSlippage\" :: STRING\n ) AS maxSlippage,\n TRY_TO_NUMBER(\n decoded_log :\"nonce\" :: STRING\n ) AS nonce,\n decoded_log :\"receiver\" :: STRING AS receiver,\n decoded_log :\"sender\" :: STRING AS sender,\n decoded_log :\"token\" :: STRING AS token,\n decoded_log :\"transferId\" :: STRING AS transferId,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }} \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x89d8051e597ab4178a863a5190407b98abfeff406aa8db90c59af76612e58f01'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n sender,\n receiver,\n receiver AS destination_chain_receiver,\n amount,\n dstChainId AS destination_chain_id,\n maxSlippage AS max_slippage,\n nonce,\n token AS token_address,\n transferId AS transfer_id,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/celer/silver_bridge__celer_cbridge_send.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'celer_cbridge'\n), \nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"dstChainId\" :: STRING\n ) AS dstChainId,\n TRY_TO_NUMBER(\n decoded_log :\"maxSlippage\" :: STRING\n ) AS maxSlippage,\n TRY_TO_NUMBER(\n decoded_log :\"nonce\" :: STRING\n ) AS nonce,\n decoded_log :\"receiver\" :: STRING AS receiver,\n decoded_log :\"sender\" :: STRING AS sender,\n decoded_log :\"token\" :: STRING AS token,\n decoded_log :\"transferId\" :: STRING AS transferId,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }} \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x89d8051e597ab4178a863a5190407b98abfeff406aa8db90c59af76612e58f01'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n sender,\n receiver,\n receiver AS destination_chain_receiver,\n amount,\n dstChainId AS destination_chain_id,\n maxSlippage AS max_slippage,\n nonce,\n token AS token_address,\n transferId AS transfer_id,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'celer_cbridge'\n), \nbase_evt AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n event_index,\n topics [0] :: STRING AS topic_0,\n event_name,\n TRY_TO_NUMBER(\n decoded_log :\"amount\" :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :\"dstChainId\" :: STRING\n ) AS dstChainId,\n TRY_TO_NUMBER(\n decoded_log :\"maxSlippage\" :: STRING\n ) AS maxSlippage,\n TRY_TO_NUMBER(\n decoded_log :\"nonce\" :: STRING\n ) AS nonce,\n decoded_log :\"receiver\" :: STRING AS receiver,\n decoded_log :\"sender\" :: STRING AS sender,\n decoded_log :\"token\" :: STRING AS token,\n decoded_log :\"transferId\" :: STRING AS transferId,\n decoded_log,\n event_removed,\n tx_succeeded,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x89d8051e597ab4178a863a5190407b98abfeff406aa8db90c59af76612e58f01'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.celer_cbridge_send\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n event_removed,\n tx_succeeded,\n contract_address AS bridge_address,\n sender,\n receiver,\n receiver AS destination_chain_receiver,\n amount,\n dstChainId AS destination_chain_id,\n maxSlippage AS max_slippage,\n nonce,\n token AS token_address,\n transferId AS transfer_id,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__wormhole_transfers": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__wormhole_transfers", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/wormhole/silver_bridge__wormhole_transfers.sql", "original_file_path": "models/curated_package/defi/bridge/silver/wormhole/silver_bridge__wormhole_transfers.sql", "unique_id": "model.fsc_evm.silver_bridge__wormhole_transfers", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "wormhole", "silver_bridge__wormhole_transfers"], "alias": "wormhole_transfers", "checksum": {"name": "sha256", "checksum": "a87fd062710b4650db5d7c94c294468bd27b10eb5ad004704b3c565535060133"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018358.748463, "relation_name": "polygon.silver_bridge.wormhole_transfers", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'wormhole'\n),\ntoken_transfers AS (\n\n SELECT\n tr.block_number,\n tr.block_timestamp,\n tr.origin_function_signature,\n tr.origin_from_address,\n tr.origin_to_address,\n tr.tx_hash,\n event_index,\n tr.contract_address,\n tr.from_address,\n tr.to_address,\n raw_amount,\n regexp_substr_all(SUBSTR(input_data, 11, len(input_data)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS destination_chain_id,\n CONCAT(\n '0x',\n segmented_data [3] :: STRING\n ) AS recipient1,\n CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) AS recipient2,\n LENGTH(\n REGEXP_SUBSTR(\n segmented_data [3] :: STRING,\n '^(0*)'\n )\n ) AS len,\n CASE\n WHEN len >= 24 THEN recipient2\n ELSE recipient1\n END AS destination_recipient_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS token,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [1] :: STRING)) AS amount,\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n ) AS arbiterFee,\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n ) AS nonce,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(tr.tx_hash :: STRING, '-', tr.event_index :: STRING) AS _log_id,\n tr.modified_timestamp\n FROM\n {{ ref('core__ez_token_transfers') }}\n tr\n INNER JOIN {{ ref('core__fact_transactions') }}\n tx\n ON tr.block_number = tx.block_number\n AND tr.tx_hash = tx.tx_hash\n INNER JOIN contract_mapping m\n ON tr.to_address = m.contract_address\n WHERE\n tr.from_address <> '0x0000000000000000000000000000000000000000'\n AND tr.origin_function_signature = '0x0f5287b0' -- tokenTransfer\n AND destination_chain_id <> 0\n\n{% if is_incremental() %}\nAND tr.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\nnative_transfers AS (\n SELECT\n et.block_number,\n et.block_timestamp,\n et.tx_hash,\n tx.from_address AS origin_from_address,\n tx.to_address AS origin_to_address,\n tx.origin_function_signature,\n et.from_address,\n et.to_address,\n amount_precise_raw,\n regexp_substr_all(SUBSTR(input_data, 11, len(input_data)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS destination_chain_id,\n CONCAT(\n '0x',\n segmented_data [1] :: STRING\n ) AS recipient1,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS recipient2,\n LENGTH(\n REGEXP_SUBSTR(\n segmented_data [1] :: STRING,\n '^(0*)'\n )\n ) AS len,\n CASE\n WHEN len >= 24 THEN recipient2\n ELSE recipient1\n END AS destination_recipient_address,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) AS arbiterFee,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) AS nonce,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n et.ez_native_transfers_id AS _call_id,\n et.modified_timestamp\n FROM\n {{ ref('core__ez_native_transfers') }}\n et\n INNER JOIN {{ ref('core__fact_transactions') }}\n tx\n ON et.block_number = tx.block_number\n AND et.tx_hash = tx.tx_hash\n INNER JOIN contract_mapping m\n ON et.to_address = m.contract_address\n WHERE\n tx.origin_function_signature = '0x9981509f' -- wrapAndTransfer\n AND destination_chain_id <> 0\n\n{% if is_incremental() %}\nAND et.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\nall_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'Transfer' AS event_name,\n to_address AS bridge_address,\n from_address AS sender,\n to_address AS receiver,\n raw_amount AS amount_unadj,\n destination_chain_id,\n contract_address AS token_address,\n destination_recipient_address,\n protocol,\n version,\n type,\n platform,\n {{ dbt_utils.generate_surrogate_key(\n ['_log_id']\n ) }} AS _id,\n modified_timestamp\n FROM\n token_transfers\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n NULL AS event_index,\n NULL AS event_name,\n to_address AS bridge_address,\n from_address AS sender,\n to_address AS receiver,\n amount_precise_raw AS amount_unadj,\n destination_chain_id,\n '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}' AS token_address,\n destination_recipient_address,\n protocol,\n version,\n type,\n platform,\n {{ dbt_utils.generate_surrogate_key(\n ['_call_id']\n ) }} AS _id,\n modified_timestamp\n FROM\n native_transfers\n),\nbase_near AS (\n SELECT\n near_address,\n addr_encoded\n FROM\n {{ source(\n 'crosschain_silver',\n 'near_address_encoded'\n ) }}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n event_name,\n bridge_address,\n sender,\n receiver,\n amount_unadj,\n destination_chain_id,\n chain_name AS destination_chain,\n token_address,\n destination_recipient_address,\n --hex address on the destination chain, requires decoding for non-EVM - more info: https://docs.wormhole.com/wormhole/blockchain-environments/environments\n CASE \n WHEN destination_chain = 'solana' THEN utils.udf_hex_to_base58(destination_recipient_address)\n WHEN destination_chain IN ('injective','sei') \n THEN utils.udf_hex_to_bech32(destination_recipient_address,SUBSTR(destination_chain,1,3))\n WHEN destination_chain IN ('osmosis','xpla') \n THEN utils.udf_hex_to_bech32(destination_recipient_address,SUBSTR(destination_chain,1,4))\n WHEN destination_chain IN ('terra','terra2','evmos') \n THEN utils.udf_hex_to_bech32(destination_recipient_address,SUBSTR(destination_chain,1,5))\n WHEN destination_chain IN ('cosmoshub','kujira') \n THEN utils.udf_hex_to_bech32(destination_recipient_address,SUBSTR(destination_chain,1,6))\n WHEN destination_chain IN ('near')\n THEN COALESCE(near_address,destination_recipient_address)\n WHEN destination_chain IN ('algorand')\n THEN utils.udf_hex_to_algorand(destination_recipient_address)\n WHEN destination_chain IN ('polygon')\n THEN SUBSTR(destination_recipient_address,1,42)\n ELSE destination_recipient_address \n END AS destination_chain_receiver,\n protocol,\n version,\n type,\n platform,\n _id,\n modified_timestamp\nFROM\n all_transfers t\n LEFT JOIN {{ ref('silver_bridge__wormhole_chain_id_seed') }}\n s\n ON t.destination_chain_id :: STRING = s.wormhole_chain_id :: STRING\n LEFT JOIN base_near n\n ON t.destination_recipient_address = n.addr_encoded\nWHERE\n origin_to_address IS NOT NULL qualify (ROW_NUMBER() over (PARTITION BY _id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__ez_token_transfers", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}, {"name": "core__ez_native_transfers", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}, {"name": "silver_bridge__wormhole_chain_id_seed", "package": null, "version": null}], "sources": [["crosschain_silver", "near_address_encoded"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.crosschain_silver.near_address_encoded", "model.fsc_evm.core__ez_token_transfers", "model.fsc_evm.core__fact_transactions", "model.fsc_evm.core__ez_native_transfers", "seed.fsc_evm.silver_bridge__wormhole_chain_id_seed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/wormhole/silver_bridge__wormhole_transfers.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'wormhole'\n),\ntoken_transfers AS (\n\n SELECT\n tr.block_number,\n tr.block_timestamp,\n tr.origin_function_signature,\n tr.origin_from_address,\n tr.origin_to_address,\n tr.tx_hash,\n event_index,\n tr.contract_address,\n tr.from_address,\n tr.to_address,\n raw_amount,\n regexp_substr_all(SUBSTR(input_data, 11, len(input_data)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS destination_chain_id,\n CONCAT(\n '0x',\n segmented_data [3] :: STRING\n ) AS recipient1,\n CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) AS recipient2,\n LENGTH(\n REGEXP_SUBSTR(\n segmented_data [3] :: STRING,\n '^(0*)'\n )\n ) AS len,\n CASE\n WHEN len >= 24 THEN recipient2\n ELSE recipient1\n END AS destination_recipient_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS token,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [1] :: STRING)) AS amount,\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n ) AS arbiterFee,\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n ) AS nonce,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(tr.tx_hash :: STRING, '-', tr.event_index :: STRING) AS _log_id,\n tr.modified_timestamp\n FROM\n {{ ref('core__ez_token_transfers') }}\n tr\n INNER JOIN {{ ref('core__fact_transactions') }}\n tx\n ON tr.block_number = tx.block_number\n AND tr.tx_hash = tx.tx_hash\n INNER JOIN contract_mapping m\n ON tr.to_address = m.contract_address\n WHERE\n tr.from_address <> '0x0000000000000000000000000000000000000000'\n AND tr.origin_function_signature = '0x0f5287b0' -- tokenTransfer\n AND destination_chain_id <> 0\n\n{% if is_incremental() %}\nAND tr.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\nnative_transfers AS (\n SELECT\n et.block_number,\n et.block_timestamp,\n et.tx_hash,\n tx.from_address AS origin_from_address,\n tx.to_address AS origin_to_address,\n tx.origin_function_signature,\n et.from_address,\n et.to_address,\n amount_precise_raw,\n regexp_substr_all(SUBSTR(input_data, 11, len(input_data)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS destination_chain_id,\n CONCAT(\n '0x',\n segmented_data [1] :: STRING\n ) AS recipient1,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS recipient2,\n LENGTH(\n REGEXP_SUBSTR(\n segmented_data [1] :: STRING,\n '^(0*)'\n )\n ) AS len,\n CASE\n WHEN len >= 24 THEN recipient2\n ELSE recipient1\n END AS destination_recipient_address,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) AS arbiterFee,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) AS nonce,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n et.ez_native_transfers_id AS _call_id,\n et.modified_timestamp\n FROM\n {{ ref('core__ez_native_transfers') }}\n et\n INNER JOIN {{ ref('core__fact_transactions') }}\n tx\n ON et.block_number = tx.block_number\n AND et.tx_hash = tx.tx_hash\n INNER JOIN contract_mapping m\n ON et.to_address = m.contract_address\n WHERE\n tx.origin_function_signature = '0x9981509f' -- wrapAndTransfer\n AND destination_chain_id <> 0\n\n{% if is_incremental() %}\nAND et.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\nall_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'Transfer' AS event_name,\n to_address AS bridge_address,\n from_address AS sender,\n to_address AS receiver,\n raw_amount AS amount_unadj,\n destination_chain_id,\n contract_address AS token_address,\n destination_recipient_address,\n protocol,\n version,\n type,\n platform,\n {{ dbt_utils.generate_surrogate_key(\n ['_log_id']\n ) }} AS _id,\n modified_timestamp\n FROM\n token_transfers\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n NULL AS event_index,\n NULL AS event_name,\n to_address AS bridge_address,\n from_address AS sender,\n to_address AS receiver,\n amount_precise_raw AS amount_unadj,\n destination_chain_id,\n '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}' AS token_address,\n destination_recipient_address,\n protocol,\n version,\n type,\n platform,\n {{ dbt_utils.generate_surrogate_key(\n ['_call_id']\n ) }} AS _id,\n modified_timestamp\n FROM\n native_transfers\n),\nbase_near AS (\n SELECT\n near_address,\n addr_encoded\n FROM\n {{ source(\n 'crosschain_silver',\n 'near_address_encoded'\n ) }}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n event_name,\n bridge_address,\n sender,\n receiver,\n amount_unadj,\n destination_chain_id,\n chain_name AS destination_chain,\n token_address,\n destination_recipient_address,\n --hex address on the destination chain, requires decoding for non-EVM - more info: https://docs.wormhole.com/wormhole/blockchain-environments/environments\n CASE \n WHEN destination_chain = 'solana' THEN utils.udf_hex_to_base58(destination_recipient_address)\n WHEN destination_chain IN ('injective','sei') \n THEN utils.udf_hex_to_bech32(destination_recipient_address,SUBSTR(destination_chain,1,3))\n WHEN destination_chain IN ('osmosis','xpla') \n THEN utils.udf_hex_to_bech32(destination_recipient_address,SUBSTR(destination_chain,1,4))\n WHEN destination_chain IN ('terra','terra2','evmos') \n THEN utils.udf_hex_to_bech32(destination_recipient_address,SUBSTR(destination_chain,1,5))\n WHEN destination_chain IN ('cosmoshub','kujira') \n THEN utils.udf_hex_to_bech32(destination_recipient_address,SUBSTR(destination_chain,1,6))\n WHEN destination_chain IN ('near')\n THEN COALESCE(near_address,destination_recipient_address)\n WHEN destination_chain IN ('algorand')\n THEN utils.udf_hex_to_algorand(destination_recipient_address)\n WHEN destination_chain IN ('polygon')\n THEN SUBSTR(destination_recipient_address,1,42)\n ELSE destination_recipient_address \n END AS destination_chain_receiver,\n protocol,\n version,\n type,\n platform,\n _id,\n modified_timestamp\nFROM\n all_transfers t\n LEFT JOIN {{ ref('silver_bridge__wormhole_chain_id_seed') }}\n s\n ON t.destination_chain_id :: STRING = s.wormhole_chain_id :: STRING\n LEFT JOIN base_near n\n ON t.destination_recipient_address = n.addr_encoded\nWHERE\n origin_to_address IS NOT NULL qualify (ROW_NUMBER() over (PARTITION BY _id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'wormhole'\n),\ntoken_transfers AS (\n\n SELECT\n tr.block_number,\n tr.block_timestamp,\n tr.origin_function_signature,\n tr.origin_from_address,\n tr.origin_to_address,\n tr.tx_hash,\n event_index,\n tr.contract_address,\n tr.from_address,\n tr.to_address,\n raw_amount,\n regexp_substr_all(SUBSTR(input_data, 11, len(input_data)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS destination_chain_id,\n CONCAT(\n '0x',\n segmented_data [3] :: STRING\n ) AS recipient1,\n CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) AS recipient2,\n LENGTH(\n REGEXP_SUBSTR(\n segmented_data [3] :: STRING,\n '^(0*)'\n )\n ) AS len,\n CASE\n WHEN len >= 24 THEN recipient2\n ELSE recipient1\n END AS destination_recipient_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS token,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [1] :: STRING)) AS amount,\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n ) AS arbiterFee,\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n ) AS nonce,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CONCAT(tr.tx_hash :: STRING, '-', tr.event_index :: STRING) AS _log_id,\n tr.modified_timestamp\n FROM\n polygon.core.ez_token_transfers\n tr\n INNER JOIN polygon.core.fact_transactions\n tx\n ON tr.block_number = tx.block_number\n AND tr.tx_hash = tx.tx_hash\n INNER JOIN contract_mapping m\n ON tr.to_address = m.contract_address\n WHERE\n tr.from_address <> '0x0000000000000000000000000000000000000000'\n AND tr.origin_function_signature = '0x0f5287b0' -- tokenTransfer\n AND destination_chain_id <> 0\n\n\nAND tr.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.wormhole_transfers\n)\n\n),\nnative_transfers AS (\n SELECT\n et.block_number,\n et.block_timestamp,\n et.tx_hash,\n tx.from_address AS origin_from_address,\n tx.to_address AS origin_to_address,\n tx.origin_function_signature,\n et.from_address,\n et.to_address,\n amount_precise_raw,\n regexp_substr_all(SUBSTR(input_data, 11, len(input_data)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS destination_chain_id,\n CONCAT(\n '0x',\n segmented_data [1] :: STRING\n ) AS recipient1,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS recipient2,\n LENGTH(\n REGEXP_SUBSTR(\n segmented_data [1] :: STRING,\n '^(0*)'\n )\n ) AS len,\n CASE\n WHEN len >= 24 THEN recipient2\n ELSE recipient1\n END AS destination_recipient_address,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) AS arbiterFee,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) AS nonce,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n et.ez_native_transfers_id AS _call_id,\n et.modified_timestamp\n FROM\n polygon.core.ez_native_transfers\n et\n INNER JOIN polygon.core.fact_transactions\n tx\n ON et.block_number = tx.block_number\n AND et.tx_hash = tx.tx_hash\n INNER JOIN contract_mapping m\n ON et.to_address = m.contract_address\n WHERE\n tx.origin_function_signature = '0x9981509f' -- wrapAndTransfer\n AND destination_chain_id <> 0\n\n\nAND et.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.wormhole_transfers\n)\n\n),\nall_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n 'Transfer' AS event_name,\n to_address AS bridge_address,\n from_address AS sender,\n to_address AS receiver,\n raw_amount AS amount_unadj,\n destination_chain_id,\n contract_address AS token_address,\n destination_recipient_address,\n protocol,\n version,\n type,\n platform,\n \n \nmd5(cast(coalesce(cast(_log_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS _id,\n modified_timestamp\n FROM\n token_transfers\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n NULL AS event_index,\n NULL AS event_name,\n to_address AS bridge_address,\n from_address AS sender,\n to_address AS receiver,\n amount_precise_raw AS amount_unadj,\n destination_chain_id,\n '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270' AS token_address,\n destination_recipient_address,\n protocol,\n version,\n type,\n platform,\n \n \nmd5(cast(coalesce(cast(_call_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS _id,\n modified_timestamp\n FROM\n native_transfers\n),\nbase_near AS (\n SELECT\n near_address,\n addr_encoded\n FROM\n CROSSCHAIN.silver.near_address_encoded\n)\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n event_name,\n bridge_address,\n sender,\n receiver,\n amount_unadj,\n destination_chain_id,\n chain_name AS destination_chain,\n token_address,\n destination_recipient_address,\n --hex address on the destination chain, requires decoding for non-EVM - more info: https://docs.wormhole.com/wormhole/blockchain-environments/environments\n CASE \n WHEN destination_chain = 'solana' THEN utils.udf_hex_to_base58(destination_recipient_address)\n WHEN destination_chain IN ('injective','sei') \n THEN utils.udf_hex_to_bech32(destination_recipient_address,SUBSTR(destination_chain,1,3))\n WHEN destination_chain IN ('osmosis','xpla') \n THEN utils.udf_hex_to_bech32(destination_recipient_address,SUBSTR(destination_chain,1,4))\n WHEN destination_chain IN ('terra','terra2','evmos') \n THEN utils.udf_hex_to_bech32(destination_recipient_address,SUBSTR(destination_chain,1,5))\n WHEN destination_chain IN ('cosmoshub','kujira') \n THEN utils.udf_hex_to_bech32(destination_recipient_address,SUBSTR(destination_chain,1,6))\n WHEN destination_chain IN ('near')\n THEN COALESCE(near_address,destination_recipient_address)\n WHEN destination_chain IN ('algorand')\n THEN utils.udf_hex_to_algorand(destination_recipient_address)\n WHEN destination_chain IN ('polygon')\n THEN SUBSTR(destination_recipient_address,1,42)\n ELSE destination_recipient_address \n END AS destination_chain_receiver,\n protocol,\n version,\n type,\n platform,\n _id,\n modified_timestamp\nFROM\n all_transfers t\n LEFT JOIN polygon.silver_bridge.wormhole_chain_id_seed\n s\n ON t.destination_chain_id :: STRING = s.wormhole_chain_id :: STRING\n LEFT JOIN base_near n\n ON t.destination_recipient_address = n.addr_encoded\nWHERE\n origin_to_address IS NOT NULL qualify (ROW_NUMBER() over (PARTITION BY _id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__cctp_v2_depositforburn": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__cctp_v2_depositforburn", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/cctp/silver_bridge__cctp_v2_depositforburn.sql", "original_file_path": "models/curated_package/defi/bridge/silver/cctp/silver_bridge__cctp_v2_depositforburn.sql", "unique_id": "model.fsc_evm.silver_bridge__cctp_v2_depositforburn", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "cctp", "silver_bridge__cctp_v2_depositforburn"], "alias": "cctp_v2_depositforburn", "checksum": {"name": "sha256", "checksum": "df8460e8d50bd5f31cd50639d804f49f18bd5b9c1cbaa7106bd6ff97936345bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018359.070472, "relation_name": "polygon.silver_bridge.cctp_v2_depositforburn", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'circle_cctp'\n AND version = 'v2'\n),\nbase_evt AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n l.contract_address,\n event_index,\n topic_0,\n event_name,\n event_removed,\n decoded_log,\n TRY_TO_NUMBER(\n decoded_log :nonce :: STRING\n ) AS nonce,\n decoded_log :burnToken :: STRING AS burnToken,\n decoded_log :depositor :: STRING AS depositor,\n TRY_TO_NUMBER(\n decoded_log :amount :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :destinationDomain :: STRING\n ) AS destination_domain,\n CASE\n WHEN destination_domain = 5 THEN utils.udf_hex_to_base58(\n decoded_log :mintRecipient :: STRING\n ) -- solana\n WHEN LEFT(\n decoded_log :mintRecipient :: STRING,\n 26\n ) = '0x000000000000000000000000' THEN CONCAT(\n '0x',\n SUBSTR(\n decoded_log :mintRecipient :: STRING,\n 27,\n 40\n )\n ) -- evm\n ELSE decoded_log :mintRecipient :: STRING -- other non-evm chains\n END AS mint_recipient,\n CASE\n WHEN destination_domain = 5 THEN utils.udf_hex_to_base58(\n decoded_log :destinationTokenMessenger :: STRING\n ) -- solana\n WHEN LEFT(\n decoded_log :destinationTokenMessenger :: STRING,\n 26\n ) = '0x000000000000000000000000' THEN CONCAT(\n '0x',\n SUBSTR(\n decoded_log :destinationTokenMessenger :: STRING,\n 27,\n 40\n )\n ) -- evm\n ELSE decoded_log :destinationTokenMessenger :: STRING -- other non-evm chains\n END AS destination_token_messenger,\n CASE\n WHEN destination_domain = 5 THEN utils.udf_hex_to_base58(\n decoded_log :destinationCaller :: STRING\n ) -- solana\n WHEN LEFT(\n decoded_log :destinationCaller :: STRING,\n 26\n ) = '0x000000000000000000000000' THEN CONCAT(\n '0x',\n SUBSTR(\n decoded_log :destinationCaller :: STRING,\n 27,\n 40\n )\n ) -- evm\n ELSE decoded_log :destinationCaller :: STRING -- other non-evm chains\n END AS destination_caller,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n modified_timestamp,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0x0c8c1cbdc5190613ebd485511d4e2812cfa45eecb79d845893331fedad5130a5'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n contract_address AS bridge_address,\n burnToken AS token_address,\n amount AS amount_unadj,\n depositor AS sender,\n origin_from_address AS receiver,\n mint_recipient AS destination_chain_receiver,\n destination_domain AS destination_chain_id,\n chain AS destination_chain,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt\n LEFT JOIN {{ ref('silver_bridge__cctp_chain_id_seed') }}\n d\n ON domain = destination_domain", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "silver_bridge__cctp_chain_id_seed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs", "seed.fsc_evm.silver_bridge__cctp_chain_id_seed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/cctp/silver_bridge__cctp_v2_depositforburn.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'circle_cctp'\n AND version = 'v2'\n),\nbase_evt AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n l.contract_address,\n event_index,\n topic_0,\n event_name,\n event_removed,\n decoded_log,\n TRY_TO_NUMBER(\n decoded_log :nonce :: STRING\n ) AS nonce,\n decoded_log :burnToken :: STRING AS burnToken,\n decoded_log :depositor :: STRING AS depositor,\n TRY_TO_NUMBER(\n decoded_log :amount :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :destinationDomain :: STRING\n ) AS destination_domain,\n CASE\n WHEN destination_domain = 5 THEN utils.udf_hex_to_base58(\n decoded_log :mintRecipient :: STRING\n ) -- solana\n WHEN LEFT(\n decoded_log :mintRecipient :: STRING,\n 26\n ) = '0x000000000000000000000000' THEN CONCAT(\n '0x',\n SUBSTR(\n decoded_log :mintRecipient :: STRING,\n 27,\n 40\n )\n ) -- evm\n ELSE decoded_log :mintRecipient :: STRING -- other non-evm chains\n END AS mint_recipient,\n CASE\n WHEN destination_domain = 5 THEN utils.udf_hex_to_base58(\n decoded_log :destinationTokenMessenger :: STRING\n ) -- solana\n WHEN LEFT(\n decoded_log :destinationTokenMessenger :: STRING,\n 26\n ) = '0x000000000000000000000000' THEN CONCAT(\n '0x',\n SUBSTR(\n decoded_log :destinationTokenMessenger :: STRING,\n 27,\n 40\n )\n ) -- evm\n ELSE decoded_log :destinationTokenMessenger :: STRING -- other non-evm chains\n END AS destination_token_messenger,\n CASE\n WHEN destination_domain = 5 THEN utils.udf_hex_to_base58(\n decoded_log :destinationCaller :: STRING\n ) -- solana\n WHEN LEFT(\n decoded_log :destinationCaller :: STRING,\n 26\n ) = '0x000000000000000000000000' THEN CONCAT(\n '0x',\n SUBSTR(\n decoded_log :destinationCaller :: STRING,\n 27,\n 40\n )\n ) -- evm\n ELSE decoded_log :destinationCaller :: STRING -- other non-evm chains\n END AS destination_caller,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n modified_timestamp,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0x0c8c1cbdc5190613ebd485511d4e2812cfa45eecb79d845893331fedad5130a5'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n contract_address AS bridge_address,\n burnToken AS token_address,\n amount AS amount_unadj,\n depositor AS sender,\n origin_from_address AS receiver,\n mint_recipient AS destination_chain_receiver,\n destination_domain AS destination_chain_id,\n chain AS destination_chain,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt\n LEFT JOIN {{ ref('silver_bridge__cctp_chain_id_seed') }}\n d\n ON domain = destination_domain\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'circle_cctp'\n AND version = 'v2'\n),\nbase_evt AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n l.contract_address,\n event_index,\n topic_0,\n event_name,\n event_removed,\n decoded_log,\n TRY_TO_NUMBER(\n decoded_log :nonce :: STRING\n ) AS nonce,\n decoded_log :burnToken :: STRING AS burnToken,\n decoded_log :depositor :: STRING AS depositor,\n TRY_TO_NUMBER(\n decoded_log :amount :: STRING\n ) AS amount,\n TRY_TO_NUMBER(\n decoded_log :destinationDomain :: STRING\n ) AS destination_domain,\n CASE\n WHEN destination_domain = 5 THEN utils.udf_hex_to_base58(\n decoded_log :mintRecipient :: STRING\n ) -- solana\n WHEN LEFT(\n decoded_log :mintRecipient :: STRING,\n 26\n ) = '0x000000000000000000000000' THEN CONCAT(\n '0x',\n SUBSTR(\n decoded_log :mintRecipient :: STRING,\n 27,\n 40\n )\n ) -- evm\n ELSE decoded_log :mintRecipient :: STRING -- other non-evm chains\n END AS mint_recipient,\n CASE\n WHEN destination_domain = 5 THEN utils.udf_hex_to_base58(\n decoded_log :destinationTokenMessenger :: STRING\n ) -- solana\n WHEN LEFT(\n decoded_log :destinationTokenMessenger :: STRING,\n 26\n ) = '0x000000000000000000000000' THEN CONCAT(\n '0x',\n SUBSTR(\n decoded_log :destinationTokenMessenger :: STRING,\n 27,\n 40\n )\n ) -- evm\n ELSE decoded_log :destinationTokenMessenger :: STRING -- other non-evm chains\n END AS destination_token_messenger,\n CASE\n WHEN destination_domain = 5 THEN utils.udf_hex_to_base58(\n decoded_log :destinationCaller :: STRING\n ) -- solana\n WHEN LEFT(\n decoded_log :destinationCaller :: STRING,\n 26\n ) = '0x000000000000000000000000' THEN CONCAT(\n '0x',\n SUBSTR(\n decoded_log :destinationCaller :: STRING,\n 27,\n 40\n )\n ) -- evm\n ELSE decoded_log :destinationCaller :: STRING -- other non-evm chains\n END AS destination_caller,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n modified_timestamp,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id\n FROM\n polygon.core.ez_decoded_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0x0c8c1cbdc5190613ebd485511d4e2812cfa45eecb79d845893331fedad5130a5'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.cctp_v2_depositforburn\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n topic_0,\n event_name,\n contract_address AS bridge_address,\n burnToken AS token_address,\n amount AS amount_unadj,\n depositor AS sender,\n origin_from_address AS receiver,\n mint_recipient AS destination_chain_receiver,\n destination_domain AS destination_chain_id,\n chain AS destination_chain,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n base_evt\n LEFT JOIN polygon.silver_bridge.cctp_chain_id_seed\n d\n ON domain = destination_domain", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_bridge__cctp_depositforburn": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__cctp_depositforburn", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/silver/cctp/silver_bridge__cctp_depositforburn.sql", "original_file_path": "models/curated_package/defi/bridge/silver/cctp/silver_bridge__cctp_depositforburn.sql", "unique_id": "model.fsc_evm.silver_bridge__cctp_depositforburn", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "cctp", "silver_bridge__cctp_depositforburn"], "alias": "cctp_depositforburn", "checksum": {"name": "sha256", "checksum": "b82e65176edd4bfc0eba29b05f8b9f46a34e4bf9e684ca29a818551c287dc1af"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_bridge", "defi", "bridge", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_bridge", "defi", "bridge", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_bridge", "defi", "bridge", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018359.387133, "relation_name": "polygon.silver_bridge.cctp_depositforburn", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'circle_cctp'\n AND version = 'v1'\n),\nbase_evt AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n event_index,\n TRY_TO_NUMBER(utils.udf_hex_to_int(topic_1 :: STRING)) AS nonce,\n CONCAT('0x', SUBSTR(topic_2 :: STRING, 27, 40)) AS burn_token,\n CONCAT('0x', SUBSTR(topic_3 :: STRING, 27, 40)) AS depositor,\n regexp_SUBSTR_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [0] :: STRING)) AS burn_amount,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS destination_domain,\n CASE\n WHEN destination_domain IN (\n 0,\n 1,\n 2,\n 3,\n 6,\n 7,\n 10\n ) THEN CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) -- evm\n WHEN destination_domain = 5 THEN utils.udf_hex_to_base58(CONCAT('0x', segmented_data [1] :: STRING)) -- solana\n ELSE CONCAT(\n '0x',\n segmented_data [1] :: STRING\n ) -- other non-evm chains\n END AS mint_recipient,\n CASE\n WHEN destination_domain IN (\n 0,\n 1,\n 2,\n 3,\n 6,\n 7,\n 10\n ) THEN CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) -- evm\n WHEN destination_domain = 5 THEN utils.udf_hex_to_base58(CONCAT('0x', segmented_data [3] :: STRING)) -- solana\n ELSE CONCAT(\n '0x',\n segmented_data [3] :: STRING\n ) -- other non-evm chains\n END AS destinationTokenMessenger,\n CASE\n WHEN destination_domain IN (\n 0,\n 1,\n 2,\n 3,\n 6,\n 7,\n 10\n ) THEN CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40)) -- evm\n WHEN destination_domain = 5 THEN utils.udf_hex_to_base58(CONCAT('0x', segmented_data [4] :: STRING)) -- solana\n ELSE CONCAT(\n '0x',\n segmented_data [4] :: STRING\n ) -- other non-evm chains\n END AS destination_caller,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'DepositForBurn' AS event_name,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0x2fa9ca894982930190727e75500a97d8dc500233a5065e0f3126c48fbe0343c0'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n event_index,\n contract_address AS bridge_address,\n event_name,\n depositor,\n depositor AS sender,\n origin_from_address AS receiver,\n mint_recipient AS destination_chain_receiver,\n chain AS destination_chain,\n destination_domain AS destination_chain_id,\n burn_token AS token_address,\n burn_amount AS amount_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n e.modified_timestamp\nFROM\n base_evt e\n LEFT JOIN {{ ref('silver_bridge__cctp_chain_id_seed') }}\n d\n ON domain = destination_domain", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_bridge__cctp_chain_id_seed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "seed.fsc_evm.silver_bridge__cctp_chain_id_seed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/cctp/silver_bridge__cctp_depositforburn.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_bridge\",\n \"defi\",\n \"bridge\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_bridge','defi','bridge','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'circle_cctp'\n AND version = 'v1'\n),\nbase_evt AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n event_index,\n TRY_TO_NUMBER(utils.udf_hex_to_int(topic_1 :: STRING)) AS nonce,\n CONCAT('0x', SUBSTR(topic_2 :: STRING, 27, 40)) AS burn_token,\n CONCAT('0x', SUBSTR(topic_3 :: STRING, 27, 40)) AS depositor,\n regexp_SUBSTR_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [0] :: STRING)) AS burn_amount,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS destination_domain,\n CASE\n WHEN destination_domain IN (\n 0,\n 1,\n 2,\n 3,\n 6,\n 7,\n 10\n ) THEN CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) -- evm\n WHEN destination_domain = 5 THEN utils.udf_hex_to_base58(CONCAT('0x', segmented_data [1] :: STRING)) -- solana\n ELSE CONCAT(\n '0x',\n segmented_data [1] :: STRING\n ) -- other non-evm chains\n END AS mint_recipient,\n CASE\n WHEN destination_domain IN (\n 0,\n 1,\n 2,\n 3,\n 6,\n 7,\n 10\n ) THEN CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) -- evm\n WHEN destination_domain = 5 THEN utils.udf_hex_to_base58(CONCAT('0x', segmented_data [3] :: STRING)) -- solana\n ELSE CONCAT(\n '0x',\n segmented_data [3] :: STRING\n ) -- other non-evm chains\n END AS destinationTokenMessenger,\n CASE\n WHEN destination_domain IN (\n 0,\n 1,\n 2,\n 3,\n 6,\n 7,\n 10\n ) THEN CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40)) -- evm\n WHEN destination_domain = 5 THEN utils.udf_hex_to_base58(CONCAT('0x', segmented_data [4] :: STRING)) -- solana\n ELSE CONCAT(\n '0x',\n segmented_data [4] :: STRING\n ) -- other non-evm chains\n END AS destination_caller,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'DepositForBurn' AS event_name,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0x2fa9ca894982930190727e75500a97d8dc500233a5065e0f3126c48fbe0343c0'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n event_index,\n contract_address AS bridge_address,\n event_name,\n depositor,\n depositor AS sender,\n origin_from_address AS receiver,\n mint_recipient AS destination_chain_receiver,\n chain AS destination_chain,\n destination_domain AS destination_chain_id,\n burn_token AS token_address,\n burn_amount AS amount_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n e.modified_timestamp\nFROM\n base_evt e\n LEFT JOIN {{ ref('silver_bridge__cctp_chain_id_seed') }}\n d\n ON domain = destination_domain\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v1', 'funds_deposited'),\n \n ('0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096', 'across', 'v3', 'funds_deposited'),\n \n ('0xbbbd1bbb4f9b936c3604906d7592a644071de884', 'allbridge', 'v1', 'sent'),\n \n ('0x7775d63836987f444e2f14aa0fa2602204d7d3e0', 'allbridge', 'v2', 'tokens_sent'),\n \n ('0x0394c4f17738a10096510832beab89a9dd090791', 'allbridge', 'v2', 'lp'),\n \n ('0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6', 'allbridge', 'v2', 'lp'),\n \n ('0x58cc621c62b0aa9babfae5651202a932279437da', 'allbridge', 'v2', 'lp'),\n \n ('0x6f015f16de9fc8791b234ef68d486d2bf203fba8', 'axelar', 'v1', 'gateway'),\n \n ('0x2d5d7d31f671f86c782533cc367f14109a082712', 'axelar', 'v1', 'gas_service'),\n \n ('0xce16f69375520ab01377ce7b88f5ba8c48f8d666', 'axelar', 'v1', 'squid_router'),\n \n ('0x0000000000000000000000000000000000000000', 'axelar', 'v1', 'burn'),\n \n ('0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe', 'chainlink_ccip', 'v1', 'router'),\n \n ('0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe', 'circle_cctp', 'v1', 'deposit'),\n \n ('0x28b5a0e9c621a5badaa536219b3a228c8168cf5d', 'circle_cctp', 'v2', 'deposit'),\n \n ('0x88dcdc47d2f83a99cf0000fdf667a468bb958a78', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xa251c4691c1ffd7d9b128874c023427513d8ac5c', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xb5df797468e6e8f2cb293cd6e32939366e0f8733', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0x02745032d2aeccdc90310d6cca32cb82c7e149dd', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xf5c6825015280cdfd0b56903f9f8b5a2233476f5', 'celer_cbridge', 'v1', 'bridge'),\n \n ('0xef4fb24ad0916217251f553c0596f8edc630eb66', 'dln_debridge', 'v1', 'source'),\n \n ('0x7189c59e245135696bfd2906b56607755f84f3fd', 'everclear', 'v1', 'bridge'),\n \n ('0xece9cf6a8f2768a3b8b65060925b646afeaa5167', 'eywa', 'v1', 'portal'),\n \n ('0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe', 'eywa', 'v1', 'portal'),\n \n ('0xbf0b5d561b986809924f88099c4ff0e6bcce60c9', 'eywa', 'v1', 'portal'),\n \n ('0x1a44076050125825900e736c501f859c50fe728c', 'layerzero', 'v2', 'bridge'),\n \n ('0x25ab3efd52e6470681ce037cd546dc60726948d3', 'meson', 'v1', 'bridge'),\n \n ('0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3', 'multichain', 'v7', 'router'),\n \n ('0x808d7c71ad2ba3fa531b068a2417c63106bc0949', 'stargate', 'v1', 'factory'),\n \n ('0x9d1b1669c73b033dfe47ae5a0164ab96df25b944', 'stargate', 'v1', 'bridge'),\n \n ('0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac', 'stargate', 'v2', 'bridge'),\n \n ('0xb8f275fbf7a959f4bce59999a2ef122a099e81a8', 'symbiosis', 'v1', 'bridge'),\n \n ('0x3338be49a5f60e2593337919f9ad7098e9a7dd7e', 'symbiosis', 'v1', 'bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge'),\n \n ('0x2119a5c9279a13ec0de5e30d572b316f1cfca567', 'synapse', 'v1', 'token_bridge'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge'),\n \n ('0x5f06745ee8a2001198a379bafbd0361475f3cfc3', 'synapse', 'v1', 'token_bridge'),\n \n ('0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5', 'synapse', 'v1', 'token_bridge'),\n \n ('0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x0efc29e196da2e81afe96edd041bedcdf9e74893', 'synapse', 'v1', 'token_bridge_swap'),\n \n ('0x5a58505a96d1dbf8df91cb21b54419fc36e93fde', 'wormhole', 'v1', 'token_bridge')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'circle_cctp'\n AND version = 'v1'\n),\nbase_evt AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n event_index,\n TRY_TO_NUMBER(utils.udf_hex_to_int(topic_1 :: STRING)) AS nonce,\n CONCAT('0x', SUBSTR(topic_2 :: STRING, 27, 40)) AS burn_token,\n CONCAT('0x', SUBSTR(topic_3 :: STRING, 27, 40)) AS depositor,\n regexp_SUBSTR_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [0] :: STRING)) AS burn_amount,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS destination_domain,\n CASE\n WHEN destination_domain IN (\n 0,\n 1,\n 2,\n 3,\n 6,\n 7,\n 10\n ) THEN CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) -- evm\n WHEN destination_domain = 5 THEN utils.udf_hex_to_base58(CONCAT('0x', segmented_data [1] :: STRING)) -- solana\n ELSE CONCAT(\n '0x',\n segmented_data [1] :: STRING\n ) -- other non-evm chains\n END AS mint_recipient,\n CASE\n WHEN destination_domain IN (\n 0,\n 1,\n 2,\n 3,\n 6,\n 7,\n 10\n ) THEN CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) -- evm\n WHEN destination_domain = 5 THEN utils.udf_hex_to_base58(CONCAT('0x', segmented_data [3] :: STRING)) -- solana\n ELSE CONCAT(\n '0x',\n segmented_data [3] :: STRING\n ) -- other non-evm chains\n END AS destinationTokenMessenger,\n CASE\n WHEN destination_domain IN (\n 0,\n 1,\n 2,\n 3,\n 6,\n 7,\n 10\n ) THEN CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40)) -- evm\n WHEN destination_domain = 5 THEN utils.udf_hex_to_base58(CONCAT('0x', segmented_data [4] :: STRING)) -- solana\n ELSE CONCAT(\n '0x',\n segmented_data [4] :: STRING\n ) -- other non-evm chains\n END AS destination_caller,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'DepositForBurn' AS event_name,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0x2fa9ca894982930190727e75500a97d8dc500233a5065e0f3126c48fbe0343c0'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_bridge.cctp_depositforburn\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n event_index,\n contract_address AS bridge_address,\n event_name,\n depositor,\n depositor AS sender,\n origin_from_address AS receiver,\n mint_recipient AS destination_chain_receiver,\n chain AS destination_chain,\n destination_domain AS destination_chain_id,\n burn_token AS token_address,\n burn_amount AS amount_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n e.modified_timestamp\nFROM\n base_evt e\n LEFT JOIN polygon.silver_bridge.cctp_chain_id_seed\n d\n ON domain = destination_domain", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.defi__ez_bridge_activity": {"database": "polygon", "schema": "defi", "name": "defi__ez_bridge_activity", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/bridge/gold/defi__ez_bridge_activity.sql", "original_file_path": "models/curated_package/defi/bridge/gold/defi__ez_bridge_activity.sql", "unique_id": "model.fsc_evm.defi__ez_bridge_activity", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "gold", "defi__ez_bridge_activity"], "alias": "ez_bridge_activity", "checksum": {"name": "sha256", "checksum": "d2e63a6facac16793ffe51eed032ab37ae2c372cb4d2830b65092b7ea9aa1683"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "defi", "bridge", "curated", "ez"], "meta": {"database_tags": {"table": {"PURPOSE": "BRIDGE"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "defi", "bridge", "curated", "ez"], "description": "## What\n\nThis table provides a comprehensive view of cross-chain bridge activity across EVM-compatible blockchains. It consolidates bridge-related events from multiple sources (event_logs, traces, and transfers) to create a unified dataset for analyzing cross-chain asset movements.\n\n## Key Use Cases\n\n- Tracking cross-chain asset flows and bridge volumes\n- Analyzing user bridging behavior and patterns\n- Comparing bridge protocol market share and performance\n- Monitoring token distribution across multiple chains\n- Identifying popular bridge routes and corridors\n\n## Important Relationships\n\n- **Join with core.fact_event_logs**: Use `tx_hash` for raw event details\n- **Join with core.dim_contracts**: Use `bridge_address` or `token_address` for contract metadata\n- **Join with price.ez_prices_hourly**: For additional price validation\n- **Join with core.dim_labels**: Use sender addresses for entity identification\n\n## Commonly-used Fields\n\n- `platform`: Bridge protocol name\n- `sender`: Address sending tokens to bridge\n- `destination_chain`: Target blockchain for assets\n- `token_address`: Token being bridged\n- `amount`: Decimal-adjusted token amount\n- `amount_usd`: USD value at transaction time\n- `block_timestamp`: When bridge transaction occurred\n\n## Sample queries\n\n```sql\n-- Daily bridge volume by protocol\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(DISTINCT tx_hash) AS bridge_txns,\n SUM(amount_usd) AS volume_usd\nFROM .defi.ez_bridge_activity\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 3 DESC;\n\n-- Top bridge routes (source to destination chains)\nSELECT \n blockchain AS source_chain,\n destination_chain,\n platform,\n COUNT(*) AS transfer_count,\n SUM(amount_usd) AS total_volume_usd\nFROM .defi.ez_bridge_activity\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND destination_chain IS NOT NULL\nGROUP BY 1, 2, 3\nORDER BY 5 DESC\nLIMIT 20;\n\n-- User bridge activity analysis\nSELECT \n sender,\n COUNT(DISTINCT DATE_TRUNC('day', block_timestamp)) AS active_days,\n COUNT(DISTINCT platform) AS protocols_used,\n COUNT(DISTINCT destination_chain) AS chains_bridged_to,\n SUM(amount_usd) AS total_bridged_usd\nFROM .defi.ez_bridge_activity\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd > 100 -- Filter small transfers\nGROUP BY 1\nHAVING COUNT(*) > 5 -- Active bridgers\nORDER BY 5 DESC\nLIMIT 100;\n\n-- Token flow analysis\nSELECT \n token_symbol,\n token_address,\n blockchain AS source_chain,\n destination_chain,\n COUNT(*) AS bridge_count,\n SUM(amount) AS total_amount,\n AVG(amount_usd) AS avg_transfer_usd\nFROM .defi.ez_bridge_activity\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND token_symbol IS NOT NULL\nGROUP BY 1, 2, 3, 4\nHAVING COUNT(*) > 10\nORDER BY 5 DESC;\n\n-- Bridge protocol comparison\nWITH protocol_stats AS (\n SELECT \n platform,\n COUNT(DISTINCT sender) AS unique_users,\n COUNT(*) AS total_transfers,\n AVG(amount_usd) AS avg_transfer_size,\n PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY amount_usd) AS median_transfer_size,\n SUM(amount_usd) AS total_volume\n FROM .defi.ez_bridge_activity\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT *\nFROM protocol_stats\nORDER BY total_volume DESC;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "The protocol or application facilitating the cross-chain bridge transfer.\n\nExample: 'stargate'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SENDER": {"name": "SENDER", "description": "The address that directly sent tokens to the bridge contract.\n\nExample: '0xabcdefabcdefabcdefabcdefabcdefabcdefabcd'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "RECEIVER": {"name": "RECEIVER", "description": "The address designated to receive tokens on the destination chain (or on the source chain, for intermediate steps).\n\nExample: '0x9876543210987654321098765432109876543210'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESTINATION_CHAIN_RECEIVER": {"name": "DESTINATION_CHAIN_RECEIVER", "description": "The final recipient address on the destination blockchain.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESTINATION_CHAIN": {"name": "DESTINATION_CHAIN", "description": "The target blockchain network for the bridged assets.\n\nExample: 'arbitrum'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESTINATION_CHAIN_ID": {"name": "DESTINATION_CHAIN_ID", "description": "The numeric identifier for the destination blockchain.\n\nExample: 42161", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BRIDGE_ADDRESS": {"name": "BRIDGE_ADDRESS", "description": "The smart contract address handling the bridge operation.\n\nExample: '0x296f55f8fb28e498b858d0bcda06d955b2cb3f97'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "The contract address of the token being bridged.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_SYMBOL": {"name": "TOKEN_SYMBOL", "description": "The symbol identifier for the bridged token.\n\nExample: 'USDC'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_IS_VERIFIED": {"name": "TOKEN_IS_VERIFIED", "description": "Whether the token is verified by the Flipside team.\n\nExample: true", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_UNADJ": {"name": "AMOUNT_UNADJ", "description": "The raw token amount without decimal adjustment.\n\nExample: 1000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "The decimal-adjusted amount of tokens bridged.\n\nExample: 1.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_USD": {"name": "AMOUNT_USD", "description": "The hourly close USD value of bridged tokens at the time of the transaction.\n\nExample: 1000.50", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_BRIDGE_ACTIVITY_ID": {"name": "EZ_BRIDGE_ACTIVITY_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "BRIDGE"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/bridge/gold/defi__ez_bridge_activity.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "persist_docs": {"relation": true, "columns": true}, "meta": {"database_tags": {"table": {"PURPOSE": "BRIDGE"}}}, "tags": ["gold", "defi", "bridge", "curated", "ez"], "copy_grants": true, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018441.0131755, "relation_name": "polygon.defi.ez_bridge_activity", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ \n 'database_tags':{\n 'table':{\n 'PURPOSE': 'BRIDGE'\n } } },\n tags = ['gold','defi','bridge','curated','ez']\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n platform,\n protocol,\n version AS protocol_version,\n sender,\n receiver,\n destination_chain_receiver,\n COALESCE(\n c.standardized_name,\n b.destination_chain\n ) AS destination_chain,\n destination_chain_id,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n ROUND(\n CASE\n WHEN amount_usd < 1e+15 THEN amount_usd\n ELSE NULL\n END,\n 2\n ) AS amount_usd,\n token_is_verified,\n complete_bridge_activity_id AS ez_bridge_activity_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n {{ ref('silver_bridge__complete_bridge_activity') }}\n b\n LEFT JOIN {{ ref('silver_bridge__standard_chain_seed') }} C\n ON b.destination_chain = C.variation", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}, {"name": "silver_bridge__standard_chain_seed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity", "seed.fsc_evm.silver_bridge__standard_chain_seed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/gold/defi__ez_bridge_activity.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {\n \"database_tags\": {\n \"table\": {\n \"PURPOSE\": \"BRIDGE\"\n }\n }\n },\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"defi\",\n \"bridge\",\n \"curated\",\n \"ez\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ \n 'database_tags':{\n 'table':{\n 'PURPOSE': 'BRIDGE'\n } } },\n tags = ['gold','defi','bridge','curated','ez']\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n platform,\n protocol,\n version AS protocol_version,\n sender,\n receiver,\n destination_chain_receiver,\n COALESCE(\n c.standardized_name,\n b.destination_chain\n ) AS destination_chain,\n destination_chain_id,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n ROUND(\n CASE\n WHEN amount_usd < 1e+15 THEN amount_usd\n ELSE NULL\n END,\n 2\n ) AS amount_usd,\n token_is_verified,\n complete_bridge_activity_id AS ez_bridge_activity_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n {{ ref('silver_bridge__complete_bridge_activity') }}\n b\n LEFT JOIN {{ ref('silver_bridge__standard_chain_seed') }} C\n ON b.destination_chain = C.variation\n*/\n\n\n\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n bridge_address,\n event_name,\n platform,\n protocol,\n version AS protocol_version,\n sender,\n receiver,\n destination_chain_receiver,\n COALESCE(\n c.standardized_name,\n b.destination_chain\n ) AS destination_chain,\n destination_chain_id,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n ROUND(\n CASE\n WHEN amount_usd < 1e+15 THEN amount_usd\n ELSE NULL\n END,\n 2\n ) AS amount_usd,\n token_is_verified,\n complete_bridge_activity_id AS ez_bridge_activity_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n polygon.silver_bridge.complete_bridge_activity\n b\n LEFT JOIN polygon.silver_bridge.standard_chain_seed C\n ON b.destination_chain = C.variation", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__stablecoin_reads": {"database": "polygon", "schema": "silver", "name": "silver__stablecoin_reads", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/stablecoins/reads/silver/silver__stablecoin_reads.sql", "original_file_path": "models/curated_package/defi/stablecoins/reads/silver/silver__stablecoin_reads.sql", "unique_id": "model.fsc_evm.silver__stablecoin_reads", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "reads", "silver", "silver__stablecoin_reads"], "alias": "stablecoin_reads", "checksum": {"name": "sha256", "checksum": "1c5b41d04d0bcf9775428737e77ee754532e45df9916308cbdedaecb3c88baf2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "stablecoins", "curated_daily"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ unverify_stablecoins() }}", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "stablecoin_reads_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_date"], "incremental_predicates": ["dynamic_range", "block_number"], "merge_exclude_columns": ["inserted_timestamp"]}, "tags": ["silver", "defi", "stablecoins", "curated_daily"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/stablecoins/reads/silver/silver__stablecoin_reads.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "stablecoin_reads_id", "cluster_by": ["block_date"], "incremental_predicates": ["dynamic_range", "block_number"], "merge_exclude_columns": ["inserted_timestamp"], "full_refresh": false, "tags": ["silver", "defi", "stablecoins", "curated_daily"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018441.01384, "relation_name": "polygon.silver.stablecoin_reads", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze__stablecoin_reads') }}\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n unique_key = 'stablecoin_reads_id',\n cluster_by = ['block_date'],\n incremental_predicates = [\"dynamic_range\", \"block_number\"],\n merge_exclude_columns = [\"inserted_timestamp\"],\n post_hook = \"{{ unverify_stablecoins() }}\",\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','defi','stablecoins','curated_daily']\n) }}\n\nWITH stablecoin_reads AS (\n\n SELECT\n VALUE :\"BLOCK_NUMBER\" :: NUMBER AS block_number,\n (\n VALUE :\"BLOCK_DATE_UNIX\" :: TIMESTAMP\n ) :: DATE AS block_date,\n contract_address,\n DATA :result :: STRING AS result_hex,\n _inserted_timestamp\n FROM\n\n{% if is_incremental() %}\n{{ ref('bronze__stablecoin_reads') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01')\n FROM\n {{ this }})\n AND DATA :result :: STRING <> '0x'\n {% else %}\n {{ ref('bronze__stablecoin_reads_fr') }}\n WHERE\n DATA :result :: STRING <> '0x'\n {% endif %}\n\n qualify(ROW_NUMBER() over (PARTITION BY block_number, contract_address\n ORDER BY\n _inserted_timestamp DESC)) = 1\n ),\nresults AS (\n SELECT\n block_number,\n block_date,\n contract_address,\n IFF(\n C.decimals IS NULL,\n 18,\n C.decimals\n ) AS decimals_adj,\n result_hex AS amount_hex,\n IFNULL(\n CASE\n WHEN LENGTH(amount_hex) <= 4300\n AND amount_hex IS NOT NULL THEN TRY_CAST(utils.udf_hex_to_int(amount_hex) AS bigint)END,\n CASE\n WHEN amount_hex IS NOT NULL THEN TRY_CAST(utils.udf_hex_to_int(RTRIM(amount_hex, '0')) AS bigint)\n END\n ) AS amount_raw,\n IFF(\n decimals_adj IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n amount_raw,\n decimals_adj\n )\n ) AS amount_precise,\n amount_precise :: FLOAT AS amount,\n _inserted_timestamp\n FROM\n stablecoin_reads s\n LEFT JOIN {{ ref('core__dim_contracts') }} C\n ON s.contract_address = C.address\n WHERE\n amount_raw IS NOT NULL\n )\nSELECT\n block_number,\n block_date,\n contract_address,\n decimals_adj AS decimals,\n amount_hex,\n amount_raw,\n amount_precise,\n amount,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['block_date','contract_address']\n ) }} AS stablecoin_reads_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n results", "language": "sql", "refs": [{"name": "bronze__stablecoin_reads", "package": null, "version": null}, {"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "bronze__stablecoin_reads_fr", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.unverify_stablecoins", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__stablecoin_reads", "model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.bronze__stablecoin_reads_fr", "model.fsc_evm.core__dim_contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/reads/silver/silver__stablecoin_reads.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_date\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"dynamic_range\",\n \"block_number\"\n ],\n \"materialized\": \"incremental\",\n \"merge_exclude_columns\": [\n \"inserted_timestamp\"\n ],\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ unverify_stablecoins() }}\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"stablecoins\",\n \"curated_daily\"\n ],\n \"unique_key\": \"stablecoin_reads_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze__stablecoin_reads') }}\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n unique_key = 'stablecoin_reads_id',\n cluster_by = ['block_date'],\n incremental_predicates = [\"dynamic_range\", \"block_number\"],\n merge_exclude_columns = [\"inserted_timestamp\"],\n post_hook = \"{{ unverify_stablecoins() }}\",\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','defi','stablecoins','curated_daily']\n) }}\n\nWITH stablecoin_reads AS (\n\n SELECT\n VALUE :\"BLOCK_NUMBER\" :: NUMBER AS block_number,\n (\n VALUE :\"BLOCK_DATE_UNIX\" :: TIMESTAMP\n ) :: DATE AS block_date,\n contract_address,\n DATA :result :: STRING AS result_hex,\n _inserted_timestamp\n FROM\n\n{% if is_incremental() %}\n{{ ref('bronze__stablecoin_reads') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01')\n FROM\n {{ this }})\n AND DATA :result :: STRING <> '0x'\n {% else %}\n {{ ref('bronze__stablecoin_reads_fr') }}\n WHERE\n DATA :result :: STRING <> '0x'\n {% endif %}\n\n qualify(ROW_NUMBER() over (PARTITION BY block_number, contract_address\n ORDER BY\n _inserted_timestamp DESC)) = 1\n ),\nresults AS (\n SELECT\n block_number,\n block_date,\n contract_address,\n IFF(\n C.decimals IS NULL,\n 18,\n C.decimals\n ) AS decimals_adj,\n result_hex AS amount_hex,\n IFNULL(\n CASE\n WHEN LENGTH(amount_hex) <= 4300\n AND amount_hex IS NOT NULL THEN TRY_CAST(utils.udf_hex_to_int(amount_hex) AS bigint)END,\n CASE\n WHEN amount_hex IS NOT NULL THEN TRY_CAST(utils.udf_hex_to_int(RTRIM(amount_hex, '0')) AS bigint)\n END\n ) AS amount_raw,\n IFF(\n decimals_adj IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n amount_raw,\n decimals_adj\n )\n ) AS amount_precise,\n amount_precise :: FLOAT AS amount,\n _inserted_timestamp\n FROM\n stablecoin_reads s\n LEFT JOIN {{ ref('core__dim_contracts') }} C\n ON s.contract_address = C.address\n WHERE\n amount_raw IS NOT NULL\n )\nSELECT\n block_number,\n block_date,\n contract_address,\n decimals_adj AS decimals,\n amount_hex,\n amount_raw,\n amount_precise,\n amount,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['block_date','contract_address']\n ) }} AS stablecoin_reads_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n results\n*/\n\n-- depends_on: polygon.bronze.stablecoin_reads\n-- depends_on: polygon.price.ez_asset_metadata\n\n\nWITH stablecoin_reads AS (\n\n SELECT\n VALUE :\"BLOCK_NUMBER\" :: NUMBER AS block_number,\n (\n VALUE :\"BLOCK_DATE_UNIX\" :: TIMESTAMP\n ) :: DATE AS block_date,\n contract_address,\n DATA :result :: STRING AS result_hex,\n _inserted_timestamp\n FROM\n\n\npolygon.bronze.stablecoin_reads\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01')\n FROM\n polygon.silver.stablecoin_reads)\n AND DATA :result :: STRING <> '0x'\n \n\n qualify(ROW_NUMBER() over (PARTITION BY block_number, contract_address\n ORDER BY\n _inserted_timestamp DESC)) = 1\n ),\nresults AS (\n SELECT\n block_number,\n block_date,\n contract_address,\n IFF(\n C.decimals IS NULL,\n 18,\n C.decimals\n ) AS decimals_adj,\n result_hex AS amount_hex,\n IFNULL(\n CASE\n WHEN LENGTH(amount_hex) <= 4300\n AND amount_hex IS NOT NULL THEN TRY_CAST(utils.udf_hex_to_int(amount_hex) AS bigint)END,\n CASE\n WHEN amount_hex IS NOT NULL THEN TRY_CAST(utils.udf_hex_to_int(RTRIM(amount_hex, '0')) AS bigint)\n END\n ) AS amount_raw,\n IFF(\n decimals_adj IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n amount_raw,\n decimals_adj\n )\n ) AS amount_precise,\n amount_precise :: FLOAT AS amount,\n _inserted_timestamp\n FROM\n stablecoin_reads s\n LEFT JOIN polygon.core.dim_contracts C\n ON s.contract_address = C.address\n WHERE\n amount_raw IS NOT NULL\n )\nSELECT\n block_number,\n block_date,\n contract_address,\n decimals_adj AS decimals,\n amount_hex,\n amount_raw,\n amount_precise,\n amount,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(block_date as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(contract_address as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS stablecoin_reads_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n results", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__stablecoin_reads_realtime": {"database": "polygon", "schema": "streamline", "name": "streamline__stablecoin_reads_realtime", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/stablecoins/reads/streamline/realtime/streamline__stablecoin_reads_realtime.sql", "original_file_path": "models/curated_package/defi/stablecoins/reads/streamline/realtime/streamline__stablecoin_reads_realtime.sql", "unique_id": "model.fsc_evm.streamline__stablecoin_reads_realtime", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "reads", "streamline", "realtime", "streamline__stablecoin_reads_realtime"], "alias": "stablecoin_reads_realtime", "checksum": {"name": "sha256", "checksum": "3e1ffdfa32b6ce8479ccc54f5c99b9ef4aea1a554fda22341cce05a631a57a41"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "stablecoin_reads", "realtime", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "stablecoin_reads", "realtime", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "stablecoin_reads", "realtime", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018360.339683, "relation_name": "polygon.streamline.stablecoin_reads_realtime", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','stablecoin_reads','realtime','phase_4']\n) }}\n\nWITH verified_stablecoins AS (\n SELECT\n contract_address\n FROM\n {{ ref('defi__dim_stablecoins') }}\n WHERE\n is_verified\n AND contract_address IS NOT NULL\n),\nmax_blocks AS (\n SELECT\n block_number,\n block_date\n FROM\n {{ ref(\"_max_block_by_date\") }}\n WHERE \n block_date >= DATEADD('day',-4,SYSDATE()) --last 3 max block_number by date\n),\nbase AS (\n SELECT\n s.contract_address,\n m.block_number,\n m.block_date\n FROM\n verified_stablecoins s\n CROSS JOIN max_blocks m\n LEFT JOIN {{ ref('streamline__stablecoin_reads_complete') }} c\n ON s.contract_address = c.contract_address\n AND m.block_number = c.block_number\n WHERE\n c.contract_address IS NULL\n),\nfunction_sigs AS (\n SELECT\n '0x18160ddd' AS function_sig,\n 'totalSupply' AS function_name\n),\nready_reads AS (\n SELECT\n contract_address,\n block_number,\n block_date,\n function_sig,\n RPAD(\n function_sig,\n 64,\n '0'\n ) AS input\n FROM\n base\n JOIN function_sigs\n ON 1 = 1\n)\nSELECT\n contract_address,\n block_number,\n DATE_PART('EPOCH_SECONDS', block_date) :: INT AS block_date_unix,\n ROUND(block_number,-3) AS partition_key,\n function_sig,\n input,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'streamline'\n ),\n OBJECT_CONSTRUCT(\n 'method', 'eth_call',\n 'jsonrpc', '2.0',\n 'params', [{'to': contract_address, 'from': null, 'data': input}, utils.udf_int_to_hex(block_number)],\n 'id', concat_ws(\n '-',\n contract_address,\n input,\n block_number\n )\n ),\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS request\nFROM\n ready_reads\nWHERE\n EXISTS (\n SELECT\n 1\n FROM\n ready_reads\n LIMIT\n 1\n )\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = { \n \"external_table\" :\"stablecoin_reads\",\n \"sql_limit\" : vars.CURATED_SL_STABLECOIN_READS_REALTIME_SQL_LIMIT,\n \"producer_batch_size\" : vars.CURATED_SL_STABLECOIN_READS_REALTIME_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\" : vars.CURATED_SL_STABLECOIN_READS_REALTIME_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\" : vars.CURATED_SL_STABLECOIN_READS_REALTIME_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\" : 'stablecoin_reads_realtime'\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n \n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "defi__dim_stablecoins", "package": null, "version": null}, {"name": "_max_block_by_date", "package": null, "version": null}, {"name": "streamline__stablecoin_reads_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.defi__dim_stablecoins", "model.fsc_evm._max_block_by_date", "model.fsc_evm.streamline__stablecoin_reads_complete"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__stablecoin_reads_complete": {"database": "polygon", "schema": "streamline", "name": "streamline__stablecoin_reads_complete", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/stablecoins/reads/streamline/complete/streamline__stablecoin_reads_complete.sql", "original_file_path": "models/curated_package/defi/stablecoins/reads/streamline/complete/streamline__stablecoin_reads_complete.sql", "unique_id": "model.fsc_evm.streamline__stablecoin_reads_complete", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "reads", "streamline", "complete", "streamline__stablecoin_reads_complete"], "alias": "stablecoin_reads_complete", "checksum": {"name": "sha256", "checksum": "c79788fb5b0b1c23798d8e279b3c0b507e1c3e17aeb6f3770ce97bccf84d3aba"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "stablecoin_reads", "complete", "phase_4"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "stablecoin_reads_complete_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "incremental_predicates": ["dynamic_range", "partition_key"]}, "tags": ["streamline", "stablecoin_reads", "complete", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "stablecoin_reads_complete_id", "incremental_predicates": ["dynamic_range", "partition_key"], "full_refresh": false, "tags": ["streamline", "stablecoin_reads", "complete", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018360.6555383, "relation_name": "polygon.streamline.stablecoin_reads_complete", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends on: {{ ref('bronze__stablecoin_reads') }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'incremental',\n unique_key = 'stablecoin_reads_complete_id',\n incremental_predicates = ['dynamic_range', 'partition_key'],\n full_refresh = vars.GLOBAL_STREAMLINE_FR_ENABLED,\n tags = ['streamline','stablecoin_reads','complete','phase_4']\n) }}\n\nSELECT\n partition_key,\n contract_address,\n VALUE :\"BLOCK_NUMBER\" :: NUMBER AS block_number,\n (\n VALUE :\"BLOCK_DATE_UNIX\" :: TIMESTAMP\n ) :: DATE AS block_date,\n file_name,\n {{ dbt_utils.generate_surrogate_key(\n ['contract_address', 'block_number']\n ) }} AS stablecoin_reads_complete_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n\n{% if is_incremental() %}\n{{ ref('bronze__stablecoin_reads') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE (MAX(_inserted_timestamp), '1970-01-01' :: TIMESTAMP)\n FROM\n {{ this }})\n {% else %}\n {{ ref('bronze__stablecoin_reads_fr') }}\n {% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY stablecoin_reads_complete_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__stablecoin_reads", "package": null, "version": null}, {"name": "bronze__stablecoin_reads_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__stablecoin_reads", "model.fsc_evm.bronze__stablecoin_reads_fr"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__stablecoin_reads_history": {"database": "polygon", "schema": "streamline", "name": "streamline__stablecoin_reads_history", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/stablecoins/reads/streamline/history/streamline__stablecoin_reads_history.sql", "original_file_path": "models/curated_package/defi/stablecoins/reads/streamline/history/streamline__stablecoin_reads_history.sql", "unique_id": "model.fsc_evm.streamline__stablecoin_reads_history", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "reads", "streamline", "history", "streamline__stablecoin_reads_history"], "alias": "stablecoin_reads_history", "checksum": {"name": "sha256", "checksum": "1b901eb35e15811953f977a8e8ce08472c5b9484081223024e473c5f30843cca"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "stablecoin_reads", "history", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "stablecoin_reads", "history", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "stablecoin_reads", "history", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018361.0899591, "relation_name": "polygon.streamline.stablecoin_reads_history", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','stablecoin_reads','history','phase_4']\n) }}\n\nWITH verified_stablecoins AS (\n SELECT\n contract_address\n FROM\n {{ ref('defi__dim_stablecoins') }}\n WHERE\n is_verified\n AND contract_address IS NOT NULL\n),\nmax_blocks AS (\n SELECT\n block_number,\n block_date\n FROM\n {{ ref(\"_max_block_by_date\") }}\n WHERE \n block_date >= ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE\n),\nbase AS (\n SELECT\n s.contract_address,\n m.block_number,\n m.block_date\n FROM\n verified_stablecoins s\n CROSS JOIN max_blocks m\n LEFT JOIN {{ ref('streamline__stablecoin_reads_complete') }} c\n ON s.contract_address = c.contract_address\n AND m.block_number = c.block_number\n WHERE\n c.contract_address IS NULL\n AND m.block_date < (\n SELECT MAX(block_date)\n FROM max_blocks\n )\n),\nfunction_sigs AS (\n SELECT\n '0x18160ddd' AS function_sig,\n 'totalSupply' AS function_name\n),\nready_reads AS (\n SELECT\n contract_address,\n block_number,\n block_date,\n function_sig,\n RPAD(\n function_sig,\n 64,\n '0'\n ) AS input\n FROM\n base\n JOIN function_sigs\n ON 1 = 1\n)\nSELECT\n contract_address,\n block_number,\n DATE_PART('EPOCH_SECONDS', block_date) :: INT AS block_date_unix,\n ROUND(block_number,-3) AS partition_key,\n function_sig,\n input,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'streamline'\n ),\n OBJECT_CONSTRUCT(\n 'method', 'eth_call',\n 'jsonrpc', '2.0',\n 'params', [{'to': contract_address, 'from': null, 'data': input}, utils.udf_int_to_hex(block_number)],\n 'id', concat_ws(\n '-',\n contract_address,\n input,\n block_number\n )\n ),\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS request\nFROM\n ready_reads\nWHERE\n EXISTS (\n SELECT\n 1\n FROM\n ready_reads\n LIMIT\n 1\n )\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = {\n \"external_table\": 'stablecoin_reads',\n \"sql_limit\": vars.CURATED_SL_STABLECOIN_READS_HISTORY_SQL_LIMIT,\n \"producer_batch_size\": vars.CURATED_SL_STABLECOIN_READS_HISTORY_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.CURATED_SL_STABLECOIN_READS_HISTORY_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\": vars.CURATED_SL_STABLECOIN_READS_HISTORY_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\": 'stablecoin_reads_history'\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n\n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "defi__dim_stablecoins", "package": null, "version": null}, {"name": "_max_block_by_date", "package": null, "version": null}, {"name": "streamline__stablecoin_reads_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.defi__dim_stablecoins", "model.fsc_evm._max_block_by_date", "model.fsc_evm.streamline__stablecoin_reads_complete"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__stablecoin_reads": {"database": "polygon", "schema": "bronze", "name": "bronze__stablecoin_reads", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/stablecoins/reads/bronze/bronze__stablecoin_reads.sql", "original_file_path": "models/curated_package/defi/stablecoins/reads/bronze/bronze__stablecoin_reads.sql", "unique_id": "model.fsc_evm.bronze__stablecoin_reads", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "reads", "bronze", "bronze__stablecoin_reads"], "alias": "stablecoin_reads", "checksum": {"name": "sha256", "checksum": "a79c0b292608d0714b81ff47766fc07befa4e31aa87f2d540f2b9f1eaeec3fa6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "stablecoin_reads", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "stablecoin_reads", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "stablecoin_reads", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018361.4062233, "relation_name": "polygon.bronze.stablecoin_reads", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','stablecoin_reads','phase_4']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'stablecoin_reads',\n block_number = false,\n contract_address = true,\n data_not_null = false\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "stablecoin_reads"], ["bronze_streamline", "stablecoin_reads"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.stablecoin_reads"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/reads/bronze/bronze__stablecoin_reads.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"stablecoin_reads\",\n \"phase_4\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','stablecoin_reads','phase_4']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'stablecoin_reads',\n block_number = false,\n contract_address = true,\n data_not_null = false\n) }}\n*/\n\n\n\n\n\n\n\n \n\n WITH meta AS (\n SELECT\n job_created_time AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.POLYGON.stablecoin_reads')\n ) A\n )\n SELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n \n\n , --for contract_abis\n COALESCE(\n VALUE :\"CONTRACT_ADDRESS\",\n VALUE :\"contract_address\"\n ) :: STRING AS contract_address\n \n\n \n FROM\n streamline.POLYGON.stablecoin_reads\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \n WHERE\n b.partition_key = s.partition_key\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__stablecoin_reads_fr": {"database": "polygon", "schema": "bronze", "name": "bronze__stablecoin_reads_fr", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/stablecoins/reads/bronze/bronze__stablecoin_reads_fr.sql", "original_file_path": "models/curated_package/defi/stablecoins/reads/bronze/bronze__stablecoin_reads_fr.sql", "unique_id": "model.fsc_evm.bronze__stablecoin_reads_fr", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "reads", "bronze", "bronze__stablecoin_reads_fr"], "alias": "stablecoin_reads_fr", "checksum": {"name": "sha256", "checksum": "8134ba21ca86a3fe9c438aa6df1cdd1c120ce92cd970695290e5be957bfbab8c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "stablecoin_reads", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "stablecoin_reads", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "stablecoin_reads", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018361.5687177, "relation_name": "polygon.bronze.stablecoin_reads_fr", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','stablecoin_reads','phase_4']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'stablecoin_reads',\n block_number = false,\n contract_address = true,\n data_not_null = false\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "stablecoin_reads"], ["bronze_streamline", "stablecoin_reads"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query_fr", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.stablecoin_reads"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/reads/bronze/bronze__stablecoin_reads_fr.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"stablecoin_reads\",\n \"phase_4\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','stablecoin_reads','phase_4']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'stablecoin_reads',\n block_number = false,\n contract_address = true,\n data_not_null = false\n) }}\n*/\n\n\n\n\n\n\n\n \n \n WITH meta AS (\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.POLYGON.stablecoin_reads'\n )\n ) A\n )\nSELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n\n\n, --for contract_abis\n COALESCE(\n VALUE :\"CONTRACT_ADDRESS\",\n VALUE :\"contract_address\"\n ) :: STRING AS contract_address\n\n\n\nFROM\n streamline.POLYGON.stablecoin_reads\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \nWHERE\n b.partition_key = s.partition_key\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_stablecoins__mint_burn": {"database": "polygon", "schema": "silver_stablecoins", "name": "silver_stablecoins__mint_burn", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/stablecoins/silver/silver_stablecoins__mint_burn.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__mint_burn.sql", "unique_id": "model.fsc_evm.silver_stablecoins__mint_burn", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "silver_stablecoins__mint_burn"], "alias": "mint_burn", "checksum": {"name": "sha256", "checksum": "ca983788f8cdc59d33195561d36e7a27d72cad255715e59d3af3bdba6916632d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ unverify_stablecoins() }}", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/stablecoins/silver/silver_stablecoins__mint_burn.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018441.0197425, "relation_name": "polygon.silver_stablecoins.mint_burn", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n post_hook = '{{ unverify_stablecoins() }}',\n tags = ['silver','defi','stablecoins','heal','curated_daily']\n) }}\n\nWITH verified_stablecoins AS (\n\n SELECT\n contract_address,\n decimals,\n symbol,\n NAME\n FROM\n {{ ref('defi__dim_stablecoins') }}\n WHERE\n is_verified\n AND contract_address IS NOT NULL\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL',\n false\n) %}\nnewly_verified_stablecoins AS (\n SELECT\n contract_address,\n decimals,\n symbol,\n NAME\n FROM\n {{ ref('defi__dim_stablecoins') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(modified_timestamp) :: DATE\n FROM\n {{ this }}\n )\n )\n),\nnewly_verified_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n l.contract_address,\n CONCAT('0x', SUBSTR(topic_1 :: STRING, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topic_2 :: STRING, 27, 40)) AS to_address,\n utils.udf_hex_to_int(SUBSTR(DATA, 3, 64)) AS amount_raw_precise,\n amount_raw_precise :: FLOAT AS amount_raw,\n IFF(\n s.decimals IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n amount_raw_precise,\n s.decimals\n )\n ) AS amount_precise,\n amount_precise :: FLOAT AS amount,\n s.decimals,\n s.symbol,\n s.name,\n tx_succeeded,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN newly_verified_stablecoins s\n ON l.contract_address = s.contract_address\n WHERE\n topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' --Transfer\n AND amount_raw IS NOT NULL\n AND block_timestamp :: DATE >= (\n SELECT\n MIN(block_date)\n FROM\n {{ ref('silver_stablecoins__supply_by_address') }}\n )\n),\n{% endif %}\n\ntransfers AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n l.contract_address,\n CONCAT('0x', SUBSTR(topic_1 :: STRING, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topic_2 :: STRING, 27, 40)) AS to_address,\n utils.udf_hex_to_int(SUBSTR(DATA, 3, 64)) AS amount_raw_precise,\n amount_raw_precise :: FLOAT AS amount_raw,\n IFF(\n s.decimals IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n amount_raw_precise,\n s.decimals\n )\n ) AS amount_precise,\n amount_precise :: FLOAT AS amount,\n s.decimals,\n s.symbol,\n s.name,\n tx_succeeded,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN verified_stablecoins s\n ON l.contract_address = s.contract_address\n WHERE\n topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' --Transfer\n AND amount_raw IS NOT NULL\n AND block_timestamp :: DATE >= (\n SELECT\n MIN(block_date)\n FROM\n {{ ref('silver_stablecoins__supply_by_address') }}\n )\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nall_transfers AS (\n SELECT\n *\n FROM\n transfers\n\n{% if is_incremental() and var(\n 'HEAL_MODEL',\n false\n) %}\nUNION\nSELECT\n *\nFROM\n newly_verified_transfers\n{% endif %}\n),\nmint_burn AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n 'Mint' AS event_name,\n contract_address,\n symbol,\n NAME,\n decimals,\n from_address,\n to_address,\n amount_raw_precise,\n amount_raw,\n amount_precise,\n amount,\n tx_succeeded,\n _log_id,\n modified_timestamp\n FROM\n all_transfers\n WHERE\n from_address = '0x0000000000000000000000000000000000000000'\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n 'Burn' AS event_name,\n contract_address,\n symbol,\n NAME,\n decimals,\n from_address,\n to_address,\n amount_raw_precise,\n amount_raw,\n amount_precise,\n amount,\n tx_succeeded,\n _log_id,\n modified_timestamp\n FROM\n all_transfers\n WHERE\n to_address = '0x0000000000000000000000000000000000000000'\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n symbol,\n NAME,\n decimals,\n from_address,\n to_address,\n amount_raw_precise,\n amount_raw,\n amount_precise,\n amount,\n tx_succeeded,\n _log_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['tx_hash','event_index']) }} AS stablecoins_mint_burn_id\nFROM\n mint_burn", "language": "sql", "refs": [{"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "defi__dim_stablecoins", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_stablecoins__supply_by_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.unverify_stablecoins", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.defi__dim_stablecoins", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_stablecoins__supply_by_address"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__mint_burn.sql", "compiled": true, "compiled_code": "\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ unverify_stablecoins() }}\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"stablecoins\",\n \"heal\",\n \"curated_daily\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n post_hook = '{{ unverify_stablecoins() }}',\n tags = ['silver','defi','stablecoins','heal','curated_daily']\n) }}\n\nWITH verified_stablecoins AS (\n\n SELECT\n contract_address,\n decimals,\n symbol,\n NAME\n FROM\n {{ ref('defi__dim_stablecoins') }}\n WHERE\n is_verified\n AND contract_address IS NOT NULL\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL',\n false\n) %}\nnewly_verified_stablecoins AS (\n SELECT\n contract_address,\n decimals,\n symbol,\n NAME\n FROM\n {{ ref('defi__dim_stablecoins') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(modified_timestamp) :: DATE\n FROM\n {{ this }}\n )\n )\n),\nnewly_verified_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n l.contract_address,\n CONCAT('0x', SUBSTR(topic_1 :: STRING, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topic_2 :: STRING, 27, 40)) AS to_address,\n utils.udf_hex_to_int(SUBSTR(DATA, 3, 64)) AS amount_raw_precise,\n amount_raw_precise :: FLOAT AS amount_raw,\n IFF(\n s.decimals IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n amount_raw_precise,\n s.decimals\n )\n ) AS amount_precise,\n amount_precise :: FLOAT AS amount,\n s.decimals,\n s.symbol,\n s.name,\n tx_succeeded,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN newly_verified_stablecoins s\n ON l.contract_address = s.contract_address\n WHERE\n topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' --Transfer\n AND amount_raw IS NOT NULL\n AND block_timestamp :: DATE >= (\n SELECT\n MIN(block_date)\n FROM\n {{ ref('silver_stablecoins__supply_by_address') }}\n )\n),\n{% endif %}\n\ntransfers AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n l.contract_address,\n CONCAT('0x', SUBSTR(topic_1 :: STRING, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topic_2 :: STRING, 27, 40)) AS to_address,\n utils.udf_hex_to_int(SUBSTR(DATA, 3, 64)) AS amount_raw_precise,\n amount_raw_precise :: FLOAT AS amount_raw,\n IFF(\n s.decimals IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n amount_raw_precise,\n s.decimals\n )\n ) AS amount_precise,\n amount_precise :: FLOAT AS amount,\n s.decimals,\n s.symbol,\n s.name,\n tx_succeeded,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN verified_stablecoins s\n ON l.contract_address = s.contract_address\n WHERE\n topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' --Transfer\n AND amount_raw IS NOT NULL\n AND block_timestamp :: DATE >= (\n SELECT\n MIN(block_date)\n FROM\n {{ ref('silver_stablecoins__supply_by_address') }}\n )\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nall_transfers AS (\n SELECT\n *\n FROM\n transfers\n\n{% if is_incremental() and var(\n 'HEAL_MODEL',\n false\n) %}\nUNION\nSELECT\n *\nFROM\n newly_verified_transfers\n{% endif %}\n),\nmint_burn AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n 'Mint' AS event_name,\n contract_address,\n symbol,\n NAME,\n decimals,\n from_address,\n to_address,\n amount_raw_precise,\n amount_raw,\n amount_precise,\n amount,\n tx_succeeded,\n _log_id,\n modified_timestamp\n FROM\n all_transfers\n WHERE\n from_address = '0x0000000000000000000000000000000000000000'\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n 'Burn' AS event_name,\n contract_address,\n symbol,\n NAME,\n decimals,\n from_address,\n to_address,\n amount_raw_precise,\n amount_raw,\n amount_precise,\n amount,\n tx_succeeded,\n _log_id,\n modified_timestamp\n FROM\n all_transfers\n WHERE\n to_address = '0x0000000000000000000000000000000000000000'\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n symbol,\n NAME,\n decimals,\n from_address,\n to_address,\n amount_raw_precise,\n amount_raw,\n amount_precise,\n amount,\n tx_succeeded,\n _log_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['tx_hash','event_index']) }} AS stablecoins_mint_burn_id\nFROM\n mint_burn\n*/\n-- depends_on: polygon.price.ez_asset_metadata\n\n\nWITH verified_stablecoins AS (\n\n SELECT\n contract_address,\n decimals,\n symbol,\n NAME\n FROM\n polygon.defi.dim_stablecoins\n WHERE\n is_verified\n AND contract_address IS NOT NULL\n),\n\n\n\ntransfers AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n l.contract_address,\n CONCAT('0x', SUBSTR(topic_1 :: STRING, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topic_2 :: STRING, 27, 40)) AS to_address,\n utils.udf_hex_to_int(SUBSTR(DATA, 3, 64)) AS amount_raw_precise,\n amount_raw_precise :: FLOAT AS amount_raw,\n IFF(\n s.decimals IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n amount_raw_precise,\n s.decimals\n )\n ) AS amount_precise,\n amount_precise :: FLOAT AS amount,\n s.decimals,\n s.symbol,\n s.name,\n tx_succeeded,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN verified_stablecoins s\n ON l.contract_address = s.contract_address\n WHERE\n topic_0 :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' --Transfer\n AND amount_raw IS NOT NULL\n AND block_timestamp :: DATE >= (\n SELECT\n MIN(block_date)\n FROM\n polygon.silver_stablecoins.supply_by_address\n )\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_stablecoins.mint_burn\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\nall_transfers AS (\n SELECT\n *\n FROM\n transfers\n\n\n),\nmint_burn AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n 'Mint' AS event_name,\n contract_address,\n symbol,\n NAME,\n decimals,\n from_address,\n to_address,\n amount_raw_precise,\n amount_raw,\n amount_precise,\n amount,\n tx_succeeded,\n _log_id,\n modified_timestamp\n FROM\n all_transfers\n WHERE\n from_address = '0x0000000000000000000000000000000000000000'\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n 'Burn' AS event_name,\n contract_address,\n symbol,\n NAME,\n decimals,\n from_address,\n to_address,\n amount_raw_precise,\n amount_raw,\n amount_precise,\n amount,\n tx_succeeded,\n _log_id,\n modified_timestamp\n FROM\n all_transfers\n WHERE\n to_address = '0x0000000000000000000000000000000000000000'\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n symbol,\n NAME,\n decimals,\n from_address,\n to_address,\n amount_raw_precise,\n amount_raw,\n amount_precise,\n amount,\n tx_succeeded,\n _log_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(event_index as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS stablecoins_mint_burn_id\nFROM\n mint_burn", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_stablecoins__supply_complete": {"database": "polygon", "schema": "silver_stablecoins", "name": "silver_stablecoins__supply_complete", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.sql", "unique_id": "model.fsc_evm.silver_stablecoins__supply_complete", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "silver_stablecoins__supply_complete"], "alias": "supply_complete", "checksum": {"name": "sha256", "checksum": "13ff6713d7176a36c5fa6ef86448c6dde725b6ead3ded434bf46b1ce6dc346c3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ unverify_stablecoins() }}", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["stablecoins_supply_complete_id"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_date"]}, "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "description": "", "columns": {"BLOCK_DATE": {"name": "BLOCK_DATE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NAME": {"name": "NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECIMALS": {"name": "DECIMALS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_SUPPLY": {"name": "TOTAL_SUPPLY", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_BLACKLISTED": {"name": "AMOUNT_BLACKLISTED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_IN_CEX": {"name": "AMOUNT_IN_CEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_IN_BRIDGES": {"name": "AMOUNT_IN_BRIDGES", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_IN_DEX_LIQUIDITY_POOLS": {"name": "AMOUNT_IN_DEX_LIQUIDITY_POOLS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_IN_LENDING_POOLS": {"name": "AMOUNT_IN_LENDING_POOLS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_IN_CONTRACTS": {"name": "AMOUNT_IN_CONTRACTS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_MINTED": {"name": "AMOUNT_MINTED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_BURNED": {"name": "AMOUNT_BURNED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_TRANSFERRED": {"name": "AMOUNT_TRANSFERRED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STABLECOINS_SUPPLY_COMPLETE_ID": {"name": "STABLECOINS_SUPPLY_COMPLETE_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["stablecoins_supply_complete_id"], "cluster_by": ["block_date"], "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018441.0309987, "relation_name": "polygon.silver_stablecoins.supply_complete", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = [\"stablecoins_supply_complete_id\"],\n cluster_by = ['block_date'],\n post_hook = '{{ unverify_stablecoins() }}',\n tags = ['silver','defi','stablecoins','heal','curated_daily']\n) }}\n\nWITH\n\n{% if is_incremental() %}\nmax_ts AS (\n SELECT MAX(modified_timestamp) AS max_modified_timestamp\n FROM {{ this }}\n),\nincremental_dates AS (\n -- Get all distinct dates that have been updated in any source table\n SELECT DISTINCT block_date\n FROM {{ ref('silver__stablecoin_reads') }}\n WHERE modified_timestamp > (SELECT max_modified_timestamp FROM max_ts)\n UNION\n SELECT DISTINCT block_date\n FROM {{ ref('silver_stablecoins__supply_by_address_imputed') }}\n WHERE modified_timestamp > (SELECT max_modified_timestamp FROM max_ts)\n UNION\n SELECT DISTINCT block_date\n FROM {{ ref('silver_stablecoins__supply_contracts') }}\n WHERE modified_timestamp > (SELECT max_modified_timestamp FROM max_ts)\n UNION\n SELECT DISTINCT block_timestamp::DATE AS block_date\n FROM {{ ref('silver_stablecoins__mint_burn') }}\n WHERE modified_timestamp > (SELECT max_modified_timestamp FROM max_ts)\n UNION\n SELECT DISTINCT block_date\n FROM {{ ref('silver_stablecoins__transfers') }}\n WHERE modified_timestamp > (SELECT max_modified_timestamp FROM max_ts)\n),\n{% endif %}\n\ntotal_supply AS (\n SELECT\n block_date,\n contract_address,\n amount AS total_supply\n FROM\n {{ ref('silver__stablecoin_reads') }}\n\n{% if is_incremental() %}\nWHERE\n block_date IN (\n SELECT\n block_date\n FROM\n incremental_dates\n )\n{% endif %}\n),\nblacklist_ordered_evt AS (\n SELECT\n block_timestamp :: DATE AS block_date,\n blacklist_address,\n contract_address,\n event_name,\n LEAD(event_name) over (\n PARTITION BY blacklist_address,\n contract_address\n ORDER BY\n block_timestamp\n ) AS next_event_name,\n LEAD(\n block_timestamp :: DATE\n ) over (\n PARTITION BY blacklist_address,\n contract_address\n ORDER BY\n block_timestamp\n ) AS next_event_date\n FROM\n {{ ref('silver_stablecoins__address_blacklist') }}\n),\nblacklist AS (\n SELECT\n blacklist_address,\n contract_address,\n block_date AS start_block_date,\n CASE\n WHEN next_event_name = 'RemovedBlacklist' THEN next_event_date\n ELSE NULL\n END AS end_block_date\n FROM\n blacklist_ordered_evt\n WHERE\n event_name = 'AddedBlacklist'\n),\nblacklist_supply AS (\n SELECT\n s.block_date,\n s.contract_address,\n SUM(\n s.balance\n ) AS balance_blacklist,\n MAX(\n s.modified_timestamp\n ) AS modified_timestamp\n FROM\n {{ ref('silver_stablecoins__supply_by_address_imputed') }}\n s\n LEFT JOIN blacklist bl\n ON s.address = bl.blacklist_address\n AND s.contract_address = bl.contract_address\n AND s.block_date >= bl.start_block_date\n AND (\n s.block_date < bl.end_block_date\n OR bl.end_block_date IS NULL\n )\n WHERE\n bl.blacklist_address IS NOT NULL\n\n{% if is_incremental() %}\nAND s.block_date IN (\n SELECT\n block_date\n FROM\n incremental_dates\n)\n{% endif %}\nGROUP BY\n s.block_date,\n s.contract_address\n),\nlocked_in_contracts AS (\n SELECT\n block_date,\n contract_address,\n SUM(bridge_balance) AS bridge_balance,\n SUM(dex_balance) AS dex_balance,\n SUM(lending_pool_balance) AS lending_pool_balance,\n SUM(cex_balance) AS cex_balance,\n SUM(contracts_balance) AS contracts_balance,\n MAX(modified_timestamp) AS modified_timestamp\n FROM\n {{ ref('silver_stablecoins__supply_contracts') }}\n\n{% if is_incremental() %}\nWHERE\n block_date IN (\n SELECT\n block_date\n FROM\n incremental_dates\n )\n{% endif %}\nGROUP BY\n block_date,\n contract_address\n),\nmint_burn AS (\n SELECT\n block_timestamp :: DATE AS block_date,\n contract_address,\n SUM(\n CASE\n WHEN event_name = 'Mint' THEN amount\n ELSE 0\n END\n ) AS mint_amount,\n SUM(\n CASE\n WHEN event_name = 'Burn' THEN amount\n ELSE 0\n END\n ) AS burn_amount,\n MAX(modified_timestamp) AS modified_timestamp\n FROM\n {{ ref('silver_stablecoins__mint_burn') }}\n m\n\n{% if is_incremental() %}\nWHERE\n block_timestamp :: DATE IN (\n SELECT\n block_date\n FROM\n incremental_dates\n )\n{% endif %}\nGROUP BY\n block_timestamp :: DATE,\n contract_address\n),\ntransfers AS (\n SELECT\n block_date,\n contract_address,\n SUM(amount) AS transfer_volume,\n MAX(modified_timestamp) AS modified_timestamp\n FROM\n {{ ref('silver_stablecoins__transfers') }}\n\n{% if is_incremental() %}\nWHERE\n block_date IN (\n SELECT\n block_date\n FROM\n incremental_dates\n )\n{% endif %}\nGROUP BY\n block_date,\n contract_address\n),\nFINAL AS (\n SELECT\n s.block_date,\n s.contract_address,\n s.total_supply,\n COALESCE(\n b.balance_blacklist,\n 0\n ) AS blacklist_supply,\n COALESCE(\n l.bridge_balance,\n 0\n ) AS bridge_balance,\n COALESCE(\n l.dex_balance,\n 0\n ) AS dex_balance,\n COALESCE(\n l.lending_pool_balance,\n 0\n ) AS lending_pool_balance,\n COALESCE(\n l.contracts_balance,\n 0\n ) AS contracts_balance,\n COALESCE(\n l.cex_balance,\n 0\n ) AS cex_balance,\n COALESCE(\n mb.mint_amount,\n 0\n ) AS mint_amount,\n COALESCE(\n mb.burn_amount,\n 0\n ) AS burn_amount,\n COALESCE(\n transfer_volume,\n 0\n ) AS transfer_volume\n FROM\n total_supply s\n LEFT JOIN blacklist_supply b\n ON s.block_date = b.block_date\n AND s.contract_address = b.contract_address\n LEFT JOIN locked_in_contracts l\n ON s.block_date = l.block_date\n AND s.contract_address = l.contract_address\n LEFT JOIN mint_burn mb\n ON s.block_date = mb.block_date\n AND s.contract_address = mb.contract_address\n LEFT JOIN transfers t\n ON s.block_date = t.block_date\n AND s.contract_address = t.contract_address\n)\nSELECT\n block_date,\n contract_address,\n symbol,\n NAME,\n label,\n decimals,\n total_supply,\n blacklist_supply AS amount_blacklisted,\n cex_balance AS amount_in_cex,\n bridge_balance AS amount_in_bridges,\n dex_balance AS amount_in_dex_liquidity_pools,\n lending_pool_balance AS amount_in_lending_pools,\n contracts_balance AS amount_in_contracts,\n mint_amount AS amount_minted,\n burn_amount AS amount_burned,\n transfer_volume AS amount_transferred,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['block_date','contract_address']) }} AS stablecoins_supply_complete_id\nFROM\n FINAL\n LEFT JOIN {{ ref('defi__dim_stablecoins') }} USING (contract_address)", "language": "sql", "refs": [{"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "silver__stablecoin_reads", "package": null, "version": null}, {"name": "silver_stablecoins__address_blacklist", "package": null, "version": null}, {"name": "silver_stablecoins__supply_by_address_imputed", "package": null, "version": null}, {"name": "silver_stablecoins__supply_contracts", "package": null, "version": null}, {"name": "silver_stablecoins__mint_burn", "package": null, "version": null}, {"name": "silver_stablecoins__transfers", "package": null, "version": null}, {"name": "defi__dim_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.unverify_stablecoins", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.silver__stablecoin_reads", "model.fsc_evm.silver_stablecoins__address_blacklist", "model.fsc_evm.silver_stablecoins__supply_by_address_imputed", "model.fsc_evm.silver_stablecoins__supply_contracts", "model.fsc_evm.silver_stablecoins__mint_burn", "model.fsc_evm.silver_stablecoins__transfers", "model.fsc_evm.defi__dim_stablecoins"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.sql", "compiled": true, "compiled_code": "\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_date\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ unverify_stablecoins() }}\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"stablecoins\",\n \"heal\",\n \"curated_daily\"\n ],\n \"unique_key\": [\n \"stablecoins_supply_complete_id\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = [\"stablecoins_supply_complete_id\"],\n cluster_by = ['block_date'],\n post_hook = '{{ unverify_stablecoins() }}',\n tags = ['silver','defi','stablecoins','heal','curated_daily']\n) }}\n\nWITH\n\n{% if is_incremental() %}\nmax_ts AS (\n SELECT MAX(modified_timestamp) AS max_modified_timestamp\n FROM {{ this }}\n),\nincremental_dates AS (\n -- Get all distinct dates that have been updated in any source table\n SELECT DISTINCT block_date\n FROM {{ ref('silver__stablecoin_reads') }}\n WHERE modified_timestamp > (SELECT max_modified_timestamp FROM max_ts)\n UNION\n SELECT DISTINCT block_date\n FROM {{ ref('silver_stablecoins__supply_by_address_imputed') }}\n WHERE modified_timestamp > (SELECT max_modified_timestamp FROM max_ts)\n UNION\n SELECT DISTINCT block_date\n FROM {{ ref('silver_stablecoins__supply_contracts') }}\n WHERE modified_timestamp > (SELECT max_modified_timestamp FROM max_ts)\n UNION\n SELECT DISTINCT block_timestamp::DATE AS block_date\n FROM {{ ref('silver_stablecoins__mint_burn') }}\n WHERE modified_timestamp > (SELECT max_modified_timestamp FROM max_ts)\n UNION\n SELECT DISTINCT block_date\n FROM {{ ref('silver_stablecoins__transfers') }}\n WHERE modified_timestamp > (SELECT max_modified_timestamp FROM max_ts)\n),\n{% endif %}\n\ntotal_supply AS (\n SELECT\n block_date,\n contract_address,\n amount AS total_supply\n FROM\n {{ ref('silver__stablecoin_reads') }}\n\n{% if is_incremental() %}\nWHERE\n block_date IN (\n SELECT\n block_date\n FROM\n incremental_dates\n )\n{% endif %}\n),\nblacklist_ordered_evt AS (\n SELECT\n block_timestamp :: DATE AS block_date,\n blacklist_address,\n contract_address,\n event_name,\n LEAD(event_name) over (\n PARTITION BY blacklist_address,\n contract_address\n ORDER BY\n block_timestamp\n ) AS next_event_name,\n LEAD(\n block_timestamp :: DATE\n ) over (\n PARTITION BY blacklist_address,\n contract_address\n ORDER BY\n block_timestamp\n ) AS next_event_date\n FROM\n {{ ref('silver_stablecoins__address_blacklist') }}\n),\nblacklist AS (\n SELECT\n blacklist_address,\n contract_address,\n block_date AS start_block_date,\n CASE\n WHEN next_event_name = 'RemovedBlacklist' THEN next_event_date\n ELSE NULL\n END AS end_block_date\n FROM\n blacklist_ordered_evt\n WHERE\n event_name = 'AddedBlacklist'\n),\nblacklist_supply AS (\n SELECT\n s.block_date,\n s.contract_address,\n SUM(\n s.balance\n ) AS balance_blacklist,\n MAX(\n s.modified_timestamp\n ) AS modified_timestamp\n FROM\n {{ ref('silver_stablecoins__supply_by_address_imputed') }}\n s\n LEFT JOIN blacklist bl\n ON s.address = bl.blacklist_address\n AND s.contract_address = bl.contract_address\n AND s.block_date >= bl.start_block_date\n AND (\n s.block_date < bl.end_block_date\n OR bl.end_block_date IS NULL\n )\n WHERE\n bl.blacklist_address IS NOT NULL\n\n{% if is_incremental() %}\nAND s.block_date IN (\n SELECT\n block_date\n FROM\n incremental_dates\n)\n{% endif %}\nGROUP BY\n s.block_date,\n s.contract_address\n),\nlocked_in_contracts AS (\n SELECT\n block_date,\n contract_address,\n SUM(bridge_balance) AS bridge_balance,\n SUM(dex_balance) AS dex_balance,\n SUM(lending_pool_balance) AS lending_pool_balance,\n SUM(cex_balance) AS cex_balance,\n SUM(contracts_balance) AS contracts_balance,\n MAX(modified_timestamp) AS modified_timestamp\n FROM\n {{ ref('silver_stablecoins__supply_contracts') }}\n\n{% if is_incremental() %}\nWHERE\n block_date IN (\n SELECT\n block_date\n FROM\n incremental_dates\n )\n{% endif %}\nGROUP BY\n block_date,\n contract_address\n),\nmint_burn AS (\n SELECT\n block_timestamp :: DATE AS block_date,\n contract_address,\n SUM(\n CASE\n WHEN event_name = 'Mint' THEN amount\n ELSE 0\n END\n ) AS mint_amount,\n SUM(\n CASE\n WHEN event_name = 'Burn' THEN amount\n ELSE 0\n END\n ) AS burn_amount,\n MAX(modified_timestamp) AS modified_timestamp\n FROM\n {{ ref('silver_stablecoins__mint_burn') }}\n m\n\n{% if is_incremental() %}\nWHERE\n block_timestamp :: DATE IN (\n SELECT\n block_date\n FROM\n incremental_dates\n )\n{% endif %}\nGROUP BY\n block_timestamp :: DATE,\n contract_address\n),\ntransfers AS (\n SELECT\n block_date,\n contract_address,\n SUM(amount) AS transfer_volume,\n MAX(modified_timestamp) AS modified_timestamp\n FROM\n {{ ref('silver_stablecoins__transfers') }}\n\n{% if is_incremental() %}\nWHERE\n block_date IN (\n SELECT\n block_date\n FROM\n incremental_dates\n )\n{% endif %}\nGROUP BY\n block_date,\n contract_address\n),\nFINAL AS (\n SELECT\n s.block_date,\n s.contract_address,\n s.total_supply,\n COALESCE(\n b.balance_blacklist,\n 0\n ) AS blacklist_supply,\n COALESCE(\n l.bridge_balance,\n 0\n ) AS bridge_balance,\n COALESCE(\n l.dex_balance,\n 0\n ) AS dex_balance,\n COALESCE(\n l.lending_pool_balance,\n 0\n ) AS lending_pool_balance,\n COALESCE(\n l.contracts_balance,\n 0\n ) AS contracts_balance,\n COALESCE(\n l.cex_balance,\n 0\n ) AS cex_balance,\n COALESCE(\n mb.mint_amount,\n 0\n ) AS mint_amount,\n COALESCE(\n mb.burn_amount,\n 0\n ) AS burn_amount,\n COALESCE(\n transfer_volume,\n 0\n ) AS transfer_volume\n FROM\n total_supply s\n LEFT JOIN blacklist_supply b\n ON s.block_date = b.block_date\n AND s.contract_address = b.contract_address\n LEFT JOIN locked_in_contracts l\n ON s.block_date = l.block_date\n AND s.contract_address = l.contract_address\n LEFT JOIN mint_burn mb\n ON s.block_date = mb.block_date\n AND s.contract_address = mb.contract_address\n LEFT JOIN transfers t\n ON s.block_date = t.block_date\n AND s.contract_address = t.contract_address\n)\nSELECT\n block_date,\n contract_address,\n symbol,\n NAME,\n label,\n decimals,\n total_supply,\n blacklist_supply AS amount_blacklisted,\n cex_balance AS amount_in_cex,\n bridge_balance AS amount_in_bridges,\n dex_balance AS amount_in_dex_liquidity_pools,\n lending_pool_balance AS amount_in_lending_pools,\n contracts_balance AS amount_in_contracts,\n mint_amount AS amount_minted,\n burn_amount AS amount_burned,\n transfer_volume AS amount_transferred,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['block_date','contract_address']) }} AS stablecoins_supply_complete_id\nFROM\n FINAL\n LEFT JOIN {{ ref('defi__dim_stablecoins') }} USING (contract_address)\n*/\n-- depends_on: polygon.price.ez_asset_metadata\n\n\nWITH\n\n\nmax_ts AS (\n SELECT MAX(modified_timestamp) AS max_modified_timestamp\n FROM polygon.silver_stablecoins.supply_complete\n),\nincremental_dates AS (\n -- Get all distinct dates that have been updated in any source table\n SELECT DISTINCT block_date\n FROM polygon.silver.stablecoin_reads\n WHERE modified_timestamp > (SELECT max_modified_timestamp FROM max_ts)\n UNION\n SELECT DISTINCT block_date\n FROM polygon.silver_stablecoins.supply_by_address_imputed\n WHERE modified_timestamp > (SELECT max_modified_timestamp FROM max_ts)\n UNION\n SELECT DISTINCT block_date\n FROM polygon.silver_stablecoins.supply_contracts\n WHERE modified_timestamp > (SELECT max_modified_timestamp FROM max_ts)\n UNION\n SELECT DISTINCT block_timestamp::DATE AS block_date\n FROM polygon.silver_stablecoins.mint_burn\n WHERE modified_timestamp > (SELECT max_modified_timestamp FROM max_ts)\n UNION\n SELECT DISTINCT block_date\n FROM polygon.silver_stablecoins.transfers\n WHERE modified_timestamp > (SELECT max_modified_timestamp FROM max_ts)\n),\n\n\ntotal_supply AS (\n SELECT\n block_date,\n contract_address,\n amount AS total_supply\n FROM\n polygon.silver.stablecoin_reads\n\n\nWHERE\n block_date IN (\n SELECT\n block_date\n FROM\n incremental_dates\n )\n\n),\nblacklist_ordered_evt AS (\n SELECT\n block_timestamp :: DATE AS block_date,\n blacklist_address,\n contract_address,\n event_name,\n LEAD(event_name) over (\n PARTITION BY blacklist_address,\n contract_address\n ORDER BY\n block_timestamp\n ) AS next_event_name,\n LEAD(\n block_timestamp :: DATE\n ) over (\n PARTITION BY blacklist_address,\n contract_address\n ORDER BY\n block_timestamp\n ) AS next_event_date\n FROM\n polygon.silver_stablecoins.address_blacklist\n),\nblacklist AS (\n SELECT\n blacklist_address,\n contract_address,\n block_date AS start_block_date,\n CASE\n WHEN next_event_name = 'RemovedBlacklist' THEN next_event_date\n ELSE NULL\n END AS end_block_date\n FROM\n blacklist_ordered_evt\n WHERE\n event_name = 'AddedBlacklist'\n),\nblacklist_supply AS (\n SELECT\n s.block_date,\n s.contract_address,\n SUM(\n s.balance\n ) AS balance_blacklist,\n MAX(\n s.modified_timestamp\n ) AS modified_timestamp\n FROM\n polygon.silver_stablecoins.supply_by_address_imputed\n s\n LEFT JOIN blacklist bl\n ON s.address = bl.blacklist_address\n AND s.contract_address = bl.contract_address\n AND s.block_date >= bl.start_block_date\n AND (\n s.block_date < bl.end_block_date\n OR bl.end_block_date IS NULL\n )\n WHERE\n bl.blacklist_address IS NOT NULL\n\n\nAND s.block_date IN (\n SELECT\n block_date\n FROM\n incremental_dates\n)\n\nGROUP BY\n s.block_date,\n s.contract_address\n),\nlocked_in_contracts AS (\n SELECT\n block_date,\n contract_address,\n SUM(bridge_balance) AS bridge_balance,\n SUM(dex_balance) AS dex_balance,\n SUM(lending_pool_balance) AS lending_pool_balance,\n SUM(cex_balance) AS cex_balance,\n SUM(contracts_balance) AS contracts_balance,\n MAX(modified_timestamp) AS modified_timestamp\n FROM\n polygon.silver_stablecoins.supply_contracts\n\n\nWHERE\n block_date IN (\n SELECT\n block_date\n FROM\n incremental_dates\n )\n\nGROUP BY\n block_date,\n contract_address\n),\nmint_burn AS (\n SELECT\n block_timestamp :: DATE AS block_date,\n contract_address,\n SUM(\n CASE\n WHEN event_name = 'Mint' THEN amount\n ELSE 0\n END\n ) AS mint_amount,\n SUM(\n CASE\n WHEN event_name = 'Burn' THEN amount\n ELSE 0\n END\n ) AS burn_amount,\n MAX(modified_timestamp) AS modified_timestamp\n FROM\n polygon.silver_stablecoins.mint_burn\n m\n\n\nWHERE\n block_timestamp :: DATE IN (\n SELECT\n block_date\n FROM\n incremental_dates\n )\n\nGROUP BY\n block_timestamp :: DATE,\n contract_address\n),\ntransfers AS (\n SELECT\n block_date,\n contract_address,\n SUM(amount) AS transfer_volume,\n MAX(modified_timestamp) AS modified_timestamp\n FROM\n polygon.silver_stablecoins.transfers\n\n\nWHERE\n block_date IN (\n SELECT\n block_date\n FROM\n incremental_dates\n )\n\nGROUP BY\n block_date,\n contract_address\n),\nFINAL AS (\n SELECT\n s.block_date,\n s.contract_address,\n s.total_supply,\n COALESCE(\n b.balance_blacklist,\n 0\n ) AS blacklist_supply,\n COALESCE(\n l.bridge_balance,\n 0\n ) AS bridge_balance,\n COALESCE(\n l.dex_balance,\n 0\n ) AS dex_balance,\n COALESCE(\n l.lending_pool_balance,\n 0\n ) AS lending_pool_balance,\n COALESCE(\n l.contracts_balance,\n 0\n ) AS contracts_balance,\n COALESCE(\n l.cex_balance,\n 0\n ) AS cex_balance,\n COALESCE(\n mb.mint_amount,\n 0\n ) AS mint_amount,\n COALESCE(\n mb.burn_amount,\n 0\n ) AS burn_amount,\n COALESCE(\n transfer_volume,\n 0\n ) AS transfer_volume\n FROM\n total_supply s\n LEFT JOIN blacklist_supply b\n ON s.block_date = b.block_date\n AND s.contract_address = b.contract_address\n LEFT JOIN locked_in_contracts l\n ON s.block_date = l.block_date\n AND s.contract_address = l.contract_address\n LEFT JOIN mint_burn mb\n ON s.block_date = mb.block_date\n AND s.contract_address = mb.contract_address\n LEFT JOIN transfers t\n ON s.block_date = t.block_date\n AND s.contract_address = t.contract_address\n)\nSELECT\n block_date,\n contract_address,\n symbol,\n NAME,\n label,\n decimals,\n total_supply,\n blacklist_supply AS amount_blacklisted,\n cex_balance AS amount_in_cex,\n bridge_balance AS amount_in_bridges,\n dex_balance AS amount_in_dex_liquidity_pools,\n lending_pool_balance AS amount_in_lending_pools,\n contracts_balance AS amount_in_contracts,\n mint_amount AS amount_minted,\n burn_amount AS amount_burned,\n transfer_volume AS amount_transferred,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n \n \nmd5(cast(coalesce(cast(block_date as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(contract_address as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS stablecoins_supply_complete_id\nFROM\n FINAL\n LEFT JOIN polygon.defi.dim_stablecoins USING (contract_address)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_stablecoins__transfers": {"database": "polygon", "schema": "silver_stablecoins", "name": "silver_stablecoins__transfers", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/stablecoins/silver/silver_stablecoins__transfers.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__transfers.sql", "unique_id": "model.fsc_evm.silver_stablecoins__transfers", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "silver_stablecoins__transfers"], "alias": "transfers", "checksum": {"name": "sha256", "checksum": "a59b0112ce34d8594238cdd3977b74229bb9badb523d91aa7fc7c77d0d3201b1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ unverify_stablecoins() }}", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["stablecoins_transfers_id"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_date"]}, "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/stablecoins/silver/silver_stablecoins__transfers.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["stablecoins_transfers_id"], "cluster_by": ["block_date"], "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018441.093521, "relation_name": "polygon.silver_stablecoins.transfers", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = [\"stablecoins_transfers_id\"],\n cluster_by = ['block_date'],\n post_hook = '{{ unverify_stablecoins() }}',\n tags = ['silver','defi','stablecoins','heal','curated_daily']\n) }}\n\nWITH verified_stablecoins AS (\n\n SELECT\n contract_address\n FROM\n {{ ref('defi__dim_stablecoins') }}\n WHERE\n is_verified\n AND contract_address IS NOT NULL\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL',\n false\n) %}\nnewly_verified_stablecoins AS (\n SELECT\n contract_address\n FROM\n {{ ref('defi__dim_stablecoins') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(modified_timestamp) :: DATE\n FROM\n {{ this }}\n )\n )\n),\nnewly_verified_transfers AS (\n SELECT\n block_timestamp,\n block_timestamp :: DATE AS block_date,\n block_number,\n tx_hash,\n event_index,\n from_address,\n to_address,\n contract_address,\n amount\n FROM\n {{ ref('core__ez_token_transfers') }}\n INNER JOIN newly_verified_stablecoins USING (contract_address)\n WHERE\n block_date >= (\n SELECT\n MIN(block_date)\n FROM\n {{ ref('silver_stablecoins__supply_by_address') }}\n )\n),\n{% endif %}\n\ntransfers AS (\n SELECT\n block_timestamp,\n block_timestamp :: DATE AS block_date,\n block_number,\n tx_hash,\n event_index,\n from_address,\n to_address,\n contract_address,\n amount\n FROM\n {{ ref('core__ez_token_transfers') }}\n INNER JOIN verified_stablecoins USING (contract_address)\n WHERE\n block_date >= (\n SELECT\n MIN(block_date)\n FROM\n {{ ref('silver_stablecoins__supply_by_address') }}\n )\n\n{% if is_incremental() %}\nAND modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n)\n{% endif %}\n),\nall_transfers AS (\n SELECT\n *\n FROM\n transfers\n\n{% if is_incremental() and var(\n 'HEAL_MODEL',\n false\n) %}\nUNION\nSELECT\n *\nFROM\n newly_verified_transfers\n{% endif %}\n)\nSELECT\n block_timestamp,\n block_date,\n block_number,\n tx_hash,\n event_index,\n from_address,\n to_address,\n contract_address,\n amount,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['tx_hash','event_index']) }} AS stablecoins_transfers_id\nFROM\n all_transfers", "language": "sql", "refs": [{"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "defi__dim_stablecoins", "package": null, "version": null}, {"name": "core__ez_token_transfers", "package": null, "version": null}, {"name": "silver_stablecoins__supply_by_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.unverify_stablecoins", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.defi__dim_stablecoins", "model.fsc_evm.core__ez_token_transfers", "model.fsc_evm.silver_stablecoins__supply_by_address"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__transfers.sql", "compiled": true, "compiled_code": "\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_date\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ unverify_stablecoins() }}\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"stablecoins\",\n \"heal\",\n \"curated_daily\"\n ],\n \"unique_key\": [\n \"stablecoins_transfers_id\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = [\"stablecoins_transfers_id\"],\n cluster_by = ['block_date'],\n post_hook = '{{ unverify_stablecoins() }}',\n tags = ['silver','defi','stablecoins','heal','curated_daily']\n) }}\n\nWITH verified_stablecoins AS (\n\n SELECT\n contract_address\n FROM\n {{ ref('defi__dim_stablecoins') }}\n WHERE\n is_verified\n AND contract_address IS NOT NULL\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL',\n false\n) %}\nnewly_verified_stablecoins AS (\n SELECT\n contract_address\n FROM\n {{ ref('defi__dim_stablecoins') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(modified_timestamp) :: DATE\n FROM\n {{ this }}\n )\n )\n),\nnewly_verified_transfers AS (\n SELECT\n block_timestamp,\n block_timestamp :: DATE AS block_date,\n block_number,\n tx_hash,\n event_index,\n from_address,\n to_address,\n contract_address,\n amount\n FROM\n {{ ref('core__ez_token_transfers') }}\n INNER JOIN newly_verified_stablecoins USING (contract_address)\n WHERE\n block_date >= (\n SELECT\n MIN(block_date)\n FROM\n {{ ref('silver_stablecoins__supply_by_address') }}\n )\n),\n{% endif %}\n\ntransfers AS (\n SELECT\n block_timestamp,\n block_timestamp :: DATE AS block_date,\n block_number,\n tx_hash,\n event_index,\n from_address,\n to_address,\n contract_address,\n amount\n FROM\n {{ ref('core__ez_token_transfers') }}\n INNER JOIN verified_stablecoins USING (contract_address)\n WHERE\n block_date >= (\n SELECT\n MIN(block_date)\n FROM\n {{ ref('silver_stablecoins__supply_by_address') }}\n )\n\n{% if is_incremental() %}\nAND modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n)\n{% endif %}\n),\nall_transfers AS (\n SELECT\n *\n FROM\n transfers\n\n{% if is_incremental() and var(\n 'HEAL_MODEL',\n false\n) %}\nUNION\nSELECT\n *\nFROM\n newly_verified_transfers\n{% endif %}\n)\nSELECT\n block_timestamp,\n block_date,\n block_number,\n tx_hash,\n event_index,\n from_address,\n to_address,\n contract_address,\n amount,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['tx_hash','event_index']) }} AS stablecoins_transfers_id\nFROM\n all_transfers\n*/\n-- depends_on: polygon.price.ez_asset_metadata\n\n\nWITH verified_stablecoins AS (\n\n SELECT\n contract_address\n FROM\n polygon.defi.dim_stablecoins\n WHERE\n is_verified\n AND contract_address IS NOT NULL\n),\n\n\n\ntransfers AS (\n SELECT\n block_timestamp,\n block_timestamp :: DATE AS block_date,\n block_number,\n tx_hash,\n event_index,\n from_address,\n to_address,\n contract_address,\n amount\n FROM\n polygon.core.ez_token_transfers\n INNER JOIN verified_stablecoins USING (contract_address)\n WHERE\n block_date >= (\n SELECT\n MIN(block_date)\n FROM\n polygon.silver_stablecoins.supply_by_address\n )\n\n\nAND modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n polygon.silver_stablecoins.transfers\n)\n\n),\nall_transfers AS (\n SELECT\n *\n FROM\n transfers\n\n\n)\nSELECT\n block_timestamp,\n block_date,\n block_number,\n tx_hash,\n event_index,\n from_address,\n to_address,\n contract_address,\n amount,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(event_index as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS stablecoins_transfers_id\nFROM\n all_transfers", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_stablecoins__supply_contracts": {"database": "polygon", "schema": "silver_stablecoins", "name": "silver_stablecoins__supply_contracts", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/stablecoins/silver/silver_stablecoins__supply_contracts.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_contracts.sql", "unique_id": "model.fsc_evm.silver_stablecoins__supply_contracts", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "silver_stablecoins__supply_contracts"], "alias": "supply_contracts", "checksum": {"name": "sha256", "checksum": "c2c4f0be0c392aa2548a4af2c86bce3772a7f39d49bea57398ba0cc1aa52ce2f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ unverify_stablecoins() }}", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["stablecoins_supply_contracts_id"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_date"]}, "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_contracts.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["stablecoins_supply_contracts_id"], "cluster_by": ["block_date"], "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018441.178582, "relation_name": "polygon.silver_stablecoins.supply_contracts", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = [\"stablecoins_supply_contracts_id\"],\n cluster_by = ['block_date'],\n post_hook = '{{ unverify_stablecoins() }}',\n tags = ['silver','defi','stablecoins','heal','curated_daily']\n) }}\n\nWITH contracts AS (\n SELECT\n address,\n contract_type\n FROM\n {{ ref('silver_stablecoins__supply_contracts_list') }}\n),\nsupply_by_address_imputed AS (\n SELECT\n block_date,\n address,\n contract_address,\n balance,\n modified_timestamp\n FROM\n {{ ref('silver_stablecoins__supply_by_address_imputed') }}\n {% if is_incremental() %}\n WHERE\n modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n )\n {% endif %}\n),\nbalances AS (\n SELECT\n block_date,\n s.address,\n contract_address,\n balance,\n CASE WHEN c0.address IS NOT NULL THEN balance ELSE 0 END AS bridge_balance,\n CASE WHEN c1.address IS NOT NULL THEN balance ELSE 0 END AS dex_balance,\n CASE WHEN c2.address IS NOT NULL THEN balance ELSE 0 END AS lending_pool_balance,\n CASE WHEN c3.address IS NOT NULL THEN balance ELSE 0 END AS contracts_balance,\n CASE WHEN c4.address IS NOT NULL THEN balance ELSE 0 END AS cex_balance,\n s.modified_timestamp\n FROM\n supply_by_address_imputed s\n LEFT JOIN contracts c0 ON c0.address = s.address AND c0.contract_type = 'bridge'\n LEFT JOIN contracts c1 ON c1.address = s.address AND c1.contract_type = 'dex'\n LEFT JOIN contracts c2 ON c2.address = s.address AND c2.contract_type = 'lending'\n LEFT JOIN contracts c3 ON c3.address = s.address AND c3.contract_type = 'all'\n LEFT JOIN contracts c4 ON c4.address = s.address AND c4.contract_type = 'cex'\n WHERE c0.address IS NOT NULL OR c1.address IS NOT NULL OR c2.address IS NOT NULL OR c3.address IS NOT NULL OR c4.address IS NOT NULL\n)\nSELECT\n block_date,\n address,\n contract_address,\n COALESCE(\n bridge_balance,\n 0\n ) AS bridge_balance,\n COALESCE(\n dex_balance,\n 0\n ) AS dex_balance,\n COALESCE(\n lending_pool_balance,\n 0\n ) AS lending_pool_balance,\n COALESCE(\n contracts_balance,\n 0\n ) AS contracts_balance,\n COALESCE(\n cex_balance,\n 0\n ) AS cex_balance,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['block_date','address','contract_address']) }} AS stablecoins_supply_contracts_id\nFROM\n balances", "language": "sql", "refs": [{"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "silver_stablecoins__supply_contracts_list", "package": null, "version": null}, {"name": "silver_stablecoins__supply_by_address_imputed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.unverify_stablecoins", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.silver_stablecoins__supply_contracts_list", "model.fsc_evm.silver_stablecoins__supply_by_address_imputed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_contracts.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_date\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ unverify_stablecoins() }}\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"stablecoins\",\n \"heal\",\n \"curated_daily\"\n ],\n \"unique_key\": [\n \"stablecoins_supply_contracts_id\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = [\"stablecoins_supply_contracts_id\"],\n cluster_by = ['block_date'],\n post_hook = '{{ unverify_stablecoins() }}',\n tags = ['silver','defi','stablecoins','heal','curated_daily']\n) }}\n\nWITH contracts AS (\n SELECT\n address,\n contract_type\n FROM\n {{ ref('silver_stablecoins__supply_contracts_list') }}\n),\nsupply_by_address_imputed AS (\n SELECT\n block_date,\n address,\n contract_address,\n balance,\n modified_timestamp\n FROM\n {{ ref('silver_stablecoins__supply_by_address_imputed') }}\n {% if is_incremental() %}\n WHERE\n modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n )\n {% endif %}\n),\nbalances AS (\n SELECT\n block_date,\n s.address,\n contract_address,\n balance,\n CASE WHEN c0.address IS NOT NULL THEN balance ELSE 0 END AS bridge_balance,\n CASE WHEN c1.address IS NOT NULL THEN balance ELSE 0 END AS dex_balance,\n CASE WHEN c2.address IS NOT NULL THEN balance ELSE 0 END AS lending_pool_balance,\n CASE WHEN c3.address IS NOT NULL THEN balance ELSE 0 END AS contracts_balance,\n CASE WHEN c4.address IS NOT NULL THEN balance ELSE 0 END AS cex_balance,\n s.modified_timestamp\n FROM\n supply_by_address_imputed s\n LEFT JOIN contracts c0 ON c0.address = s.address AND c0.contract_type = 'bridge'\n LEFT JOIN contracts c1 ON c1.address = s.address AND c1.contract_type = 'dex'\n LEFT JOIN contracts c2 ON c2.address = s.address AND c2.contract_type = 'lending'\n LEFT JOIN contracts c3 ON c3.address = s.address AND c3.contract_type = 'all'\n LEFT JOIN contracts c4 ON c4.address = s.address AND c4.contract_type = 'cex'\n WHERE c0.address IS NOT NULL OR c1.address IS NOT NULL OR c2.address IS NOT NULL OR c3.address IS NOT NULL OR c4.address IS NOT NULL\n)\nSELECT\n block_date,\n address,\n contract_address,\n COALESCE(\n bridge_balance,\n 0\n ) AS bridge_balance,\n COALESCE(\n dex_balance,\n 0\n ) AS dex_balance,\n COALESCE(\n lending_pool_balance,\n 0\n ) AS lending_pool_balance,\n COALESCE(\n contracts_balance,\n 0\n ) AS contracts_balance,\n COALESCE(\n cex_balance,\n 0\n ) AS cex_balance,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['block_date','address','contract_address']) }} AS stablecoins_supply_contracts_id\nFROM\n balances\n*/\n\n-- depends_on: polygon.price.ez_asset_metadata\n\n\nWITH contracts AS (\n SELECT\n address,\n contract_type\n FROM\n polygon.silver_stablecoins.supply_contracts_list\n),\nsupply_by_address_imputed AS (\n SELECT\n block_date,\n address,\n contract_address,\n balance,\n modified_timestamp\n FROM\n polygon.silver_stablecoins.supply_by_address_imputed\n \n WHERE\n modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n polygon.silver_stablecoins.supply_contracts\n )\n \n),\nbalances AS (\n SELECT\n block_date,\n s.address,\n contract_address,\n balance,\n CASE WHEN c0.address IS NOT NULL THEN balance ELSE 0 END AS bridge_balance,\n CASE WHEN c1.address IS NOT NULL THEN balance ELSE 0 END AS dex_balance,\n CASE WHEN c2.address IS NOT NULL THEN balance ELSE 0 END AS lending_pool_balance,\n CASE WHEN c3.address IS NOT NULL THEN balance ELSE 0 END AS contracts_balance,\n CASE WHEN c4.address IS NOT NULL THEN balance ELSE 0 END AS cex_balance,\n s.modified_timestamp\n FROM\n supply_by_address_imputed s\n LEFT JOIN contracts c0 ON c0.address = s.address AND c0.contract_type = 'bridge'\n LEFT JOIN contracts c1 ON c1.address = s.address AND c1.contract_type = 'dex'\n LEFT JOIN contracts c2 ON c2.address = s.address AND c2.contract_type = 'lending'\n LEFT JOIN contracts c3 ON c3.address = s.address AND c3.contract_type = 'all'\n LEFT JOIN contracts c4 ON c4.address = s.address AND c4.contract_type = 'cex'\n WHERE c0.address IS NOT NULL OR c1.address IS NOT NULL OR c2.address IS NOT NULL OR c3.address IS NOT NULL OR c4.address IS NOT NULL\n)\nSELECT\n block_date,\n address,\n contract_address,\n COALESCE(\n bridge_balance,\n 0\n ) AS bridge_balance,\n COALESCE(\n dex_balance,\n 0\n ) AS dex_balance,\n COALESCE(\n lending_pool_balance,\n 0\n ) AS lending_pool_balance,\n COALESCE(\n contracts_balance,\n 0\n ) AS contracts_balance,\n COALESCE(\n cex_balance,\n 0\n ) AS cex_balance,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n \n \nmd5(cast(coalesce(cast(block_date as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(address as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(contract_address as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS stablecoins_supply_contracts_id\nFROM\n balances", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_stablecoins__address_blacklist": {"database": "polygon", "schema": "silver_stablecoins", "name": "silver_stablecoins__address_blacklist", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/stablecoins/silver/silver_stablecoins__address_blacklist.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__address_blacklist.sql", "unique_id": "model.fsc_evm.silver_stablecoins__address_blacklist", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "silver_stablecoins__address_blacklist"], "alias": "address_blacklist", "checksum": {"name": "sha256", "checksum": "d3e7052b83696a3b323242ee6163674e76905e5117c7cd195b0727ded60fc19b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ unverify_stablecoins() }}", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/stablecoins/silver/silver_stablecoins__address_blacklist.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018441.1859486, "relation_name": "polygon.silver_stablecoins.address_blacklist", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n post_hook = '{{ unverify_stablecoins() }}',\n tags = ['silver','defi','stablecoins','heal','curated_daily']\n) }}\n\n\nWITH verified_stablecoins AS (\n\n SELECT\n contract_address,\n decimals,\n symbol,\n NAME\n FROM\n {{ ref('defi__dim_stablecoins') }}\n WHERE\n is_verified\n AND contract_address IS NOT NULL\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL',\n false\n) %}\nnewly_verified_stablecoins AS (\n SELECT\n contract_address,\n decimals,\n symbol,\n NAME\n FROM\n {{ ref('defi__dim_stablecoins') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(modified_timestamp) :: DATE\n FROM\n {{ this }}\n )\n )\n),\nnewly_verified_blacklist AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n CASE\n WHEN topic_0 IN (\n '0x42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc', \n '0x406bbf2d8d145125adf1198d2cf8a67c66cc4bb0ab01c37dccd4f7c0aae1e7c7', \n '0xffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b855'\n ) THEN 'AddedBlacklist'\n ELSE 'RemovedBlacklist'\n END AS event_name,\n l.contract_address,\n CASE \n WHEN topic_0 IN (\n '0x42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc',\n '0xd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c'\n ) THEN CONCAT('0x', SUBSTR(SUBSTR(DATA, 3, 64), 25, 40)) :: STRING \n ELSE '0x' || SUBSTR(topic_1, 27) :: STRING\n END AS blacklist_address,\n s.decimals,\n s.symbol,\n s.name,\n tx_succeeded,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN newly_verified_stablecoins s\n ON l.contract_address = s.contract_address\n WHERE\n topic_0 :: STRING IN (\n '0x42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc', --USDT AddedBlacklist\n '0xd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c', --USDT RemovedBlacklist\n '0x406bbf2d8d145125adf1198d2cf8a67c66cc4bb0ab01c37dccd4f7c0aae1e7c7', --USDT0 BlockPlaced\n '0x665918c9e02eb2fd85acca3969cb054fc84c138e60ec4af22ab6ef2fd4c93c27', --USDT0 BlockReleased\n '0xffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b855', --USDC Blacklisted\n '0x117e3210bb9aa7d9baff172026820255c6f6c30ba8999d1c2fd88e2848137c4e' --USDC Unblacklisted\n )\n),\n{% endif %}\n\nblacklist AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n CASE\n WHEN topic_0 IN (\n '0x42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc', \n '0x406bbf2d8d145125adf1198d2cf8a67c66cc4bb0ab01c37dccd4f7c0aae1e7c7', \n '0xffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b855'\n ) THEN 'AddedBlacklist'\n ELSE 'RemovedBlacklist'\n END AS event_name,\n l.contract_address,\n CASE \n WHEN topic_0 IN (\n '0x42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc',\n '0xd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c'\n ) THEN CONCAT('0x', SUBSTR(SUBSTR(DATA, 3, 64), 25, 40)) :: STRING \n ELSE '0x' || SUBSTR(topic_1, 27) :: STRING\n END AS blacklist_address,\n s.decimals,\n s.symbol,\n s.name,\n tx_succeeded,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN verified_stablecoins s\n ON l.contract_address = s.contract_address\n WHERE\n topic_0 :: STRING IN (\n '0x42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc', --USDT AddedBlacklist\n '0xd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c', --USDT RemovedBlacklist\n '0x406bbf2d8d145125adf1198d2cf8a67c66cc4bb0ab01c37dccd4f7c0aae1e7c7', --USDT0 BlockPlaced\n '0x665918c9e02eb2fd85acca3969cb054fc84c138e60ec4af22ab6ef2fd4c93c27', --USDT0 BlockReleased\n '0xffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b855', --USDC Blacklisted\n '0x117e3210bb9aa7d9baff172026820255c6f6c30ba8999d1c2fd88e2848137c4e' --USDC Unblacklisted\n )\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nall_blacklist AS (\n SELECT\n *\n FROM\n blacklist\n\n{% if is_incremental() and var(\n 'HEAL_MODEL',\n false\n) %}\nUNION\nSELECT\n *\nFROM\n newly_verified_blacklist\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n symbol,\n NAME,\n decimals,\n blacklist_address,\n tx_succeeded,\n _log_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['tx_hash','event_index']) }} AS stablecoins_address_blacklist_id\nFROM\n all_blacklist", "language": "sql", "refs": [{"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "defi__dim_stablecoins", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.unverify_stablecoins", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.defi__dim_stablecoins", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__address_blacklist.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ unverify_stablecoins() }}\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"stablecoins\",\n \"heal\",\n \"curated_daily\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n post_hook = '{{ unverify_stablecoins() }}',\n tags = ['silver','defi','stablecoins','heal','curated_daily']\n) }}\n\n\nWITH verified_stablecoins AS (\n\n SELECT\n contract_address,\n decimals,\n symbol,\n NAME\n FROM\n {{ ref('defi__dim_stablecoins') }}\n WHERE\n is_verified\n AND contract_address IS NOT NULL\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL',\n false\n) %}\nnewly_verified_stablecoins AS (\n SELECT\n contract_address,\n decimals,\n symbol,\n NAME\n FROM\n {{ ref('defi__dim_stablecoins') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(modified_timestamp) :: DATE\n FROM\n {{ this }}\n )\n )\n),\nnewly_verified_blacklist AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n CASE\n WHEN topic_0 IN (\n '0x42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc', \n '0x406bbf2d8d145125adf1198d2cf8a67c66cc4bb0ab01c37dccd4f7c0aae1e7c7', \n '0xffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b855'\n ) THEN 'AddedBlacklist'\n ELSE 'RemovedBlacklist'\n END AS event_name,\n l.contract_address,\n CASE \n WHEN topic_0 IN (\n '0x42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc',\n '0xd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c'\n ) THEN CONCAT('0x', SUBSTR(SUBSTR(DATA, 3, 64), 25, 40)) :: STRING \n ELSE '0x' || SUBSTR(topic_1, 27) :: STRING\n END AS blacklist_address,\n s.decimals,\n s.symbol,\n s.name,\n tx_succeeded,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN newly_verified_stablecoins s\n ON l.contract_address = s.contract_address\n WHERE\n topic_0 :: STRING IN (\n '0x42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc', --USDT AddedBlacklist\n '0xd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c', --USDT RemovedBlacklist\n '0x406bbf2d8d145125adf1198d2cf8a67c66cc4bb0ab01c37dccd4f7c0aae1e7c7', --USDT0 BlockPlaced\n '0x665918c9e02eb2fd85acca3969cb054fc84c138e60ec4af22ab6ef2fd4c93c27', --USDT0 BlockReleased\n '0xffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b855', --USDC Blacklisted\n '0x117e3210bb9aa7d9baff172026820255c6f6c30ba8999d1c2fd88e2848137c4e' --USDC Unblacklisted\n )\n),\n{% endif %}\n\nblacklist AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n CASE\n WHEN topic_0 IN (\n '0x42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc', \n '0x406bbf2d8d145125adf1198d2cf8a67c66cc4bb0ab01c37dccd4f7c0aae1e7c7', \n '0xffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b855'\n ) THEN 'AddedBlacklist'\n ELSE 'RemovedBlacklist'\n END AS event_name,\n l.contract_address,\n CASE \n WHEN topic_0 IN (\n '0x42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc',\n '0xd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c'\n ) THEN CONCAT('0x', SUBSTR(SUBSTR(DATA, 3, 64), 25, 40)) :: STRING \n ELSE '0x' || SUBSTR(topic_1, 27) :: STRING\n END AS blacklist_address,\n s.decimals,\n s.symbol,\n s.name,\n tx_succeeded,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN verified_stablecoins s\n ON l.contract_address = s.contract_address\n WHERE\n topic_0 :: STRING IN (\n '0x42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc', --USDT AddedBlacklist\n '0xd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c', --USDT RemovedBlacklist\n '0x406bbf2d8d145125adf1198d2cf8a67c66cc4bb0ab01c37dccd4f7c0aae1e7c7', --USDT0 BlockPlaced\n '0x665918c9e02eb2fd85acca3969cb054fc84c138e60ec4af22ab6ef2fd4c93c27', --USDT0 BlockReleased\n '0xffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b855', --USDC Blacklisted\n '0x117e3210bb9aa7d9baff172026820255c6f6c30ba8999d1c2fd88e2848137c4e' --USDC Unblacklisted\n )\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n{% endif %}\n),\nall_blacklist AS (\n SELECT\n *\n FROM\n blacklist\n\n{% if is_incremental() and var(\n 'HEAL_MODEL',\n false\n) %}\nUNION\nSELECT\n *\nFROM\n newly_verified_blacklist\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n symbol,\n NAME,\n decimals,\n blacklist_address,\n tx_succeeded,\n _log_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['tx_hash','event_index']) }} AS stablecoins_address_blacklist_id\nFROM\n all_blacklist\n*/\n\n-- depends_on: polygon.price.ez_asset_metadata\n\n\n\nWITH verified_stablecoins AS (\n\n SELECT\n contract_address,\n decimals,\n symbol,\n NAME\n FROM\n polygon.defi.dim_stablecoins\n WHERE\n is_verified\n AND contract_address IS NOT NULL\n),\n\n\n\nblacklist AS (\n SELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n CASE\n WHEN topic_0 IN (\n '0x42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc', \n '0x406bbf2d8d145125adf1198d2cf8a67c66cc4bb0ab01c37dccd4f7c0aae1e7c7', \n '0xffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b855'\n ) THEN 'AddedBlacklist'\n ELSE 'RemovedBlacklist'\n END AS event_name,\n l.contract_address,\n CASE \n WHEN topic_0 IN (\n '0x42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc',\n '0xd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c'\n ) THEN CONCAT('0x', SUBSTR(SUBSTR(DATA, 3, 64), 25, 40)) :: STRING \n ELSE '0x' || SUBSTR(topic_1, 27) :: STRING\n END AS blacklist_address,\n s.decimals,\n s.symbol,\n s.name,\n tx_succeeded,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN verified_stablecoins s\n ON l.contract_address = s.contract_address\n WHERE\n topic_0 :: STRING IN (\n '0x42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc', --USDT AddedBlacklist\n '0xd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c', --USDT RemovedBlacklist\n '0x406bbf2d8d145125adf1198d2cf8a67c66cc4bb0ab01c37dccd4f7c0aae1e7c7', --USDT0 BlockPlaced\n '0x665918c9e02eb2fd85acca3969cb054fc84c138e60ec4af22ab6ef2fd4c93c27', --USDT0 BlockReleased\n '0xffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b855', --USDC Blacklisted\n '0x117e3210bb9aa7d9baff172026820255c6f6c30ba8999d1c2fd88e2848137c4e' --USDC Unblacklisted\n )\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_stablecoins.address_blacklist\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n),\nall_blacklist AS (\n SELECT\n *\n FROM\n blacklist\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n symbol,\n NAME,\n decimals,\n blacklist_address,\n tx_succeeded,\n _log_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(event_index as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS stablecoins_address_blacklist_id\nFROM\n all_blacklist", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_stablecoins__supply_contracts_list": {"database": "polygon", "schema": "silver_stablecoins", "name": "silver_stablecoins__supply_contracts_list", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/stablecoins/silver/silver_stablecoins__supply_contracts_list.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_contracts_list.sql", "unique_id": "model.fsc_evm.silver_stablecoins__supply_contracts_list", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "silver_stablecoins__supply_contracts_list"], "alias": "supply_contracts_list", "checksum": {"name": "sha256", "checksum": "330e2e848dc39f07c7e6bbaf3fe33242c719039da67e86d81fc852353df7f434"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["stablecoins_supply_contracts_list_id"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "description": "", "columns": {"ADDRESS": {"name": "ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_TYPE": {"name": "CONTRACT_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_contracts_list.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["stablecoins_supply_contracts_list_id"], "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018441.1675851, "relation_name": "polygon.silver_stablecoins.supply_contracts_list", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = [\"stablecoins_supply_contracts_list_id\"],\n tags = ['silver','defi','stablecoins','heal','curated_daily']\n) }}\n\nWITH bridge_vault_list AS (\n\n SELECT\n DISTINCT bridge_address AS address,\n 'bridge' AS contract_type\n FROM\n {{ ref('defi__ez_bridge_activity') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n )\n{% endif %}\nUNION\nSELECT\n vault_address AS address,\n 'bridge' AS contract_type\nFROM\n {{ ref('silver_stablecoins__bridge_vault_seed') }}\nWHERE\n chain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n\n{% if is_incremental() %}\nAND address NOT IN (\n SELECT\n address\n FROM\n {{ this }}\n WHERE\n contract_type = 'bridge'\n)\n{% endif %}\n),\ndex_pool_list AS (\n SELECT\n DISTINCT pool_address AS address,\n 'dex' AS contract_type\n FROM\n {{ ref('defi__dim_dex_liquidity_pools') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n )\n{% endif %}\n),\nlending_pool_list AS (\n SELECT\n DISTINCT protocol_market AS address,\n 'lending' AS contract_type\n FROM\n {{ ref('defi__ez_lending_deposits') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncontract_list AS (\n SELECT\n DISTINCT address,\n 'all' AS contract_type\n FROM\n {{ ref('core__dim_contracts') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncex_list AS (\n SELECT\n DISTINCT address,\n 'cex' AS contract_type\n FROM\n {{ ref('core__dim_labels') }}\n WHERE\n label_type = 'cex'\n\n{% if is_incremental() %}\nAND modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n)\n{% endif %}\n),\nall_contracts AS (\n SELECT\n *\n FROM\n bridge_vault_list\n UNION ALL\n SELECT\n *\n FROM\n dex_pool_list\n UNION ALL\n SELECT\n *\n FROM\n lending_pool_list\n UNION ALL\n SELECT\n *\n FROM\n contract_list\n UNION ALL\n SELECT\n *\n FROM\n cex_list\n)\nSELECT\n address,\n contract_type,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['address','contract_type']) }} AS stablecoins_supply_contracts_list_id\nFROM\n all_contracts", "language": "sql", "refs": [{"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "defi__ez_bridge_activity", "package": null, "version": null}, {"name": "silver_stablecoins__bridge_vault_seed", "package": null, "version": null}, {"name": "defi__dim_dex_liquidity_pools", "package": null, "version": null}, {"name": "defi__ez_lending_deposits", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "core__dim_labels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.defi__ez_bridge_activity", "seed.fsc_evm.silver_stablecoins__bridge_vault_seed", "model.fsc_evm.defi__dim_dex_liquidity_pools", "model.fsc_evm.defi__ez_lending_deposits", "model.fsc_evm.core__dim_contracts", "model.fsc_evm.core__dim_labels"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_contracts_list.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"stablecoins\",\n \"heal\",\n \"curated_daily\"\n ],\n \"unique_key\": [\n \"stablecoins_supply_contracts_list_id\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = [\"stablecoins_supply_contracts_list_id\"],\n tags = ['silver','defi','stablecoins','heal','curated_daily']\n) }}\n\nWITH bridge_vault_list AS (\n\n SELECT\n DISTINCT bridge_address AS address,\n 'bridge' AS contract_type\n FROM\n {{ ref('defi__ez_bridge_activity') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n )\n{% endif %}\nUNION\nSELECT\n vault_address AS address,\n 'bridge' AS contract_type\nFROM\n {{ ref('silver_stablecoins__bridge_vault_seed') }}\nWHERE\n chain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n\n{% if is_incremental() %}\nAND address NOT IN (\n SELECT\n address\n FROM\n {{ this }}\n WHERE\n contract_type = 'bridge'\n)\n{% endif %}\n),\ndex_pool_list AS (\n SELECT\n DISTINCT pool_address AS address,\n 'dex' AS contract_type\n FROM\n {{ ref('defi__dim_dex_liquidity_pools') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n )\n{% endif %}\n),\nlending_pool_list AS (\n SELECT\n DISTINCT protocol_market AS address,\n 'lending' AS contract_type\n FROM\n {{ ref('defi__ez_lending_deposits') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncontract_list AS (\n SELECT\n DISTINCT address,\n 'all' AS contract_type\n FROM\n {{ ref('core__dim_contracts') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncex_list AS (\n SELECT\n DISTINCT address,\n 'cex' AS contract_type\n FROM\n {{ ref('core__dim_labels') }}\n WHERE\n label_type = 'cex'\n\n{% if is_incremental() %}\nAND modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n)\n{% endif %}\n),\nall_contracts AS (\n SELECT\n *\n FROM\n bridge_vault_list\n UNION ALL\n SELECT\n *\n FROM\n dex_pool_list\n UNION ALL\n SELECT\n *\n FROM\n lending_pool_list\n UNION ALL\n SELECT\n *\n FROM\n contract_list\n UNION ALL\n SELECT\n *\n FROM\n cex_list\n)\nSELECT\n address,\n contract_type,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['address','contract_type']) }} AS stablecoins_supply_contracts_list_id\nFROM\n all_contracts\n*/\n\n-- depends_on: polygon.price.ez_asset_metadata\n\n\nWITH bridge_vault_list AS (\n\n SELECT\n DISTINCT bridge_address AS address,\n 'bridge' AS contract_type\n FROM\n polygon.defi.ez_bridge_activity\n\n\nWHERE\n modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n polygon.silver_stablecoins.supply_contracts_list\n )\n\nUNION\nSELECT\n vault_address AS address,\n 'bridge' AS contract_type\nFROM\n polygon.silver_stablecoins.bridge_vault_seed\nWHERE\n chain = 'polygon'\n\n\nAND address NOT IN (\n SELECT\n address\n FROM\n polygon.silver_stablecoins.supply_contracts_list\n WHERE\n contract_type = 'bridge'\n)\n\n),\ndex_pool_list AS (\n SELECT\n DISTINCT pool_address AS address,\n 'dex' AS contract_type\n FROM\n polygon.defi.dim_dex_liquidity_pools\n\n\nWHERE\n modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n polygon.silver_stablecoins.supply_contracts_list\n )\n\n),\nlending_pool_list AS (\n SELECT\n DISTINCT protocol_market AS address,\n 'lending' AS contract_type\n FROM\n polygon.defi.ez_lending_deposits\n\n\nWHERE\n modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n polygon.silver_stablecoins.supply_contracts_list\n )\n\n),\ncontract_list AS (\n SELECT\n DISTINCT address,\n 'all' AS contract_type\n FROM\n polygon.core.dim_contracts\n\n\nWHERE\n modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n polygon.silver_stablecoins.supply_contracts_list\n )\n\n),\ncex_list AS (\n SELECT\n DISTINCT address,\n 'cex' AS contract_type\n FROM\n polygon.core.dim_labels\n WHERE\n label_type = 'cex'\n\n\nAND modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n polygon.silver_stablecoins.supply_contracts_list\n)\n\n),\nall_contracts AS (\n SELECT\n *\n FROM\n bridge_vault_list\n UNION ALL\n SELECT\n *\n FROM\n dex_pool_list\n UNION ALL\n SELECT\n *\n FROM\n lending_pool_list\n UNION ALL\n SELECT\n *\n FROM\n contract_list\n UNION ALL\n SELECT\n *\n FROM\n cex_list\n)\nSELECT\n address,\n contract_type,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n \n \nmd5(cast(coalesce(cast(address as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(contract_type as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS stablecoins_supply_contracts_list_id\nFROM\n all_contracts", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_stablecoins__supply_by_address_imputed": {"database": "polygon", "schema": "silver_stablecoins", "name": "silver_stablecoins__supply_by_address_imputed", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.sql", "unique_id": "model.fsc_evm.silver_stablecoins__supply_by_address_imputed", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "silver_stablecoins__supply_by_address_imputed"], "alias": "supply_by_address_imputed", "checksum": {"name": "sha256", "checksum": "d3b5d6b27ad7c584ac5c13fbda837c594134ea05bf5e72898b3198b9bb48c473"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ unverify_stablecoins() }}", "transaction": true, "index": null}, {"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address, contract_address)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["stablecoins_supply_by_address_imputed_id"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_date"]}, "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "description": "", "columns": {"BLOCK_DATE": {"name": "BLOCK_DATE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCE": {"name": "BALANCE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_IMPUTED": {"name": "IS_IMPUTED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["stablecoins_supply_by_address_imputed_id"], "cluster_by": ["block_date"], "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018441.1010842, "relation_name": "polygon.silver_stablecoins.supply_by_address_imputed", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = [\"stablecoins_supply_by_address_imputed_id\"],\n cluster_by = ['block_date'],\n post_hook = [ \"{{ unverify_stablecoins() }}\", \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address, contract_address)\" ],\n tags = ['silver','defi','stablecoins','heal','curated_daily']\n) }}\n\nWITH base_supply AS (\n\n SELECT\n block_date,\n address,\n contract_address,\n balance,\n modified_timestamp\n FROM\n {{ ref('silver_stablecoins__supply_by_address') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\n{% if is_incremental() %}\n-- Find earliest date needing reprocessing per address+contract (handles historical corrections/replays)\nmin_base_supply AS (\n SELECT\n MIN(block_date) AS min_base_supply_date,\n address,\n contract_address\n FROM\n base_supply\n GROUP BY\n address,\n contract_address\n),\n-- Pull complete history from earliest affected date forward for impacted pairs (needed for re-imputation)\nincremental_supply AS (\n SELECT\n s.block_date,\n s.address,\n s.contract_address,\n balance,\n modified_timestamp,\n FALSE AS is_imputed\n FROM\n {{ ref('silver_stablecoins__supply_by_address') }}\n s\n INNER JOIN min_base_supply m\n ON s.address = m.address\n AND s.contract_address = m.contract_address\n AND s.block_date >= m.min_base_supply_date\n),\n-- Lookup of address+contract pairs being updated this run (used to filter unchanged pairs)\nbase_supply_list AS (\n SELECT\n address,\n contract_address,\n COUNT(1)\n FROM\n base_supply\n GROUP BY\n ALL\n),\nexisting_supply AS (\n SELECT\n t.block_date,\n t.address,\n t.contract_address,\n t.balance,\n t.modified_timestamp,\n t.is_imputed\n FROM\n {{ this }}\n t\n LEFT JOIN base_supply_list b\n ON t.address = b.address\n AND t.contract_address = b.contract_address\n WHERE\n block_date = (\n SELECT\n MAX(block_date)\n FROM\n {{ this }}\n )\n AND b.address IS NULL\n),\n{% endif %}\n\nall_supply AS (\n\n{% if is_incremental() %}\nSELECT\n *\nFROM\n incremental_supply\nUNION ALL\nSELECT\n *\nFROM\n existing_supply\n{% else %}\nSELECT\n *\nFROM\n base_supply\n{% endif %}),\n-- Identify unique address+contract pairs and their first balance date\naddress_contract_pairs AS (\n SELECT\n address,\n contract_address,\n MIN(block_date) AS min_balance_date\n FROM\n all_supply\n GROUP BY\n address,\n contract_address\n),\n-- Create a date spine for all dates between the minimum balance date and the current date - 1 day,\n-- Balances are recorded using the last block from the previous day\ndate_spine AS (\n SELECT\n date_day\n FROM\n {{ source(\n 'crosschain_gold',\n 'dim_dates'\n ) }}\n WHERE\n date_day < SYSDATE() :: DATE\n AND date_day >= (\n SELECT\n MIN(block_date)\n FROM\n all_supply\n )\n),\n-- Generate one row per date per address+contract pair (filtered by min_balance_date)\ndate_address_contract_spine AS (\n SELECT\n d.date_day AS block_date,\n p.address,\n p.contract_address\n FROM\n date_spine d\n INNER JOIN address_contract_pairs p\n ON d.date_day >= p.min_balance_date\n),\n-- Forward-fill missing balances to create one row per date per address+contract pair, even in cases where no balance new balance is recorded\nfilled_balances AS (\n SELECT\n s.block_date,\n s.address,\n s.contract_address,\n COALESCE(\n A.balance,\n LAST_VALUE(\n A.balance ignore nulls\n ) over (\n PARTITION BY s.address,\n s.contract_address\n ORDER BY\n s.block_date rows BETWEEN unbounded preceding\n AND CURRENT ROW\n )\n ) AS balance,\n\n{% if is_incremental() %}\n-- If incremental, use the imputed flag from the existing record, otherwise use the balance to determine if it is imputed\nCOALESCE(\n A.is_imputed,\n TRUE\n) AS is_imputed,\n{% else %}\n CASE\n WHEN A.balance IS NULL THEN TRUE\n ELSE FALSE\n END AS is_imputed,\n{% endif %}\n\nA.modified_timestamp\nFROM\n date_address_contract_spine s\n LEFT JOIN all_supply A\n ON s.block_date = A.block_date\n AND s.address = A.address\n AND s.contract_address = A.contract_address\n)\nSELECT\n block_date,\n address,\n contract_address,\n balance,\n is_imputed,\n SYSDATE() AS modified_timestamp,\n SYSDATE() AS inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(['block_date','address','contract_address']) }} AS stablecoins_supply_by_address_imputed_id\nFROM\n filled_balances", "language": "sql", "refs": [{"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "silver_stablecoins__supply_by_address", "package": null, "version": null}], "sources": [["crosschain_gold", "dim_dates"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.unverify_stablecoins", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.crosschain_gold.dim_dates", "model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.silver_stablecoins__supply_by_address"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.sql", "compiled": true, "compiled_code": "\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_date\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ unverify_stablecoins() }}\",\n \"transaction\": true\n },\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address, contract_address)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"stablecoins\",\n \"heal\",\n \"curated_daily\"\n ],\n \"unique_key\": [\n \"stablecoins_supply_by_address_imputed_id\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = [\"stablecoins_supply_by_address_imputed_id\"],\n cluster_by = ['block_date'],\n post_hook = [ \"{{ unverify_stablecoins() }}\", \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address, contract_address)\" ],\n tags = ['silver','defi','stablecoins','heal','curated_daily']\n) }}\n\nWITH base_supply AS (\n\n SELECT\n block_date,\n address,\n contract_address,\n balance,\n modified_timestamp\n FROM\n {{ ref('silver_stablecoins__supply_by_address') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\n{% if is_incremental() %}\n-- Find earliest date needing reprocessing per address+contract (handles historical corrections/replays)\nmin_base_supply AS (\n SELECT\n MIN(block_date) AS min_base_supply_date,\n address,\n contract_address\n FROM\n base_supply\n GROUP BY\n address,\n contract_address\n),\n-- Pull complete history from earliest affected date forward for impacted pairs (needed for re-imputation)\nincremental_supply AS (\n SELECT\n s.block_date,\n s.address,\n s.contract_address,\n balance,\n modified_timestamp,\n FALSE AS is_imputed\n FROM\n {{ ref('silver_stablecoins__supply_by_address') }}\n s\n INNER JOIN min_base_supply m\n ON s.address = m.address\n AND s.contract_address = m.contract_address\n AND s.block_date >= m.min_base_supply_date\n),\n-- Lookup of address+contract pairs being updated this run (used to filter unchanged pairs)\nbase_supply_list AS (\n SELECT\n address,\n contract_address,\n COUNT(1)\n FROM\n base_supply\n GROUP BY\n ALL\n),\nexisting_supply AS (\n SELECT\n t.block_date,\n t.address,\n t.contract_address,\n t.balance,\n t.modified_timestamp,\n t.is_imputed\n FROM\n {{ this }}\n t\n LEFT JOIN base_supply_list b\n ON t.address = b.address\n AND t.contract_address = b.contract_address\n WHERE\n block_date = (\n SELECT\n MAX(block_date)\n FROM\n {{ this }}\n )\n AND b.address IS NULL\n),\n{% endif %}\n\nall_supply AS (\n\n{% if is_incremental() %}\nSELECT\n *\nFROM\n incremental_supply\nUNION ALL\nSELECT\n *\nFROM\n existing_supply\n{% else %}\nSELECT\n *\nFROM\n base_supply\n{% endif %}),\n-- Identify unique address+contract pairs and their first balance date\naddress_contract_pairs AS (\n SELECT\n address,\n contract_address,\n MIN(block_date) AS min_balance_date\n FROM\n all_supply\n GROUP BY\n address,\n contract_address\n),\n-- Create a date spine for all dates between the minimum balance date and the current date - 1 day,\n-- Balances are recorded using the last block from the previous day\ndate_spine AS (\n SELECT\n date_day\n FROM\n {{ source(\n 'crosschain_gold',\n 'dim_dates'\n ) }}\n WHERE\n date_day < SYSDATE() :: DATE\n AND date_day >= (\n SELECT\n MIN(block_date)\n FROM\n all_supply\n )\n),\n-- Generate one row per date per address+contract pair (filtered by min_balance_date)\ndate_address_contract_spine AS (\n SELECT\n d.date_day AS block_date,\n p.address,\n p.contract_address\n FROM\n date_spine d\n INNER JOIN address_contract_pairs p\n ON d.date_day >= p.min_balance_date\n),\n-- Forward-fill missing balances to create one row per date per address+contract pair, even in cases where no balance new balance is recorded\nfilled_balances AS (\n SELECT\n s.block_date,\n s.address,\n s.contract_address,\n COALESCE(\n A.balance,\n LAST_VALUE(\n A.balance ignore nulls\n ) over (\n PARTITION BY s.address,\n s.contract_address\n ORDER BY\n s.block_date rows BETWEEN unbounded preceding\n AND CURRENT ROW\n )\n ) AS balance,\n\n{% if is_incremental() %}\n-- If incremental, use the imputed flag from the existing record, otherwise use the balance to determine if it is imputed\nCOALESCE(\n A.is_imputed,\n TRUE\n) AS is_imputed,\n{% else %}\n CASE\n WHEN A.balance IS NULL THEN TRUE\n ELSE FALSE\n END AS is_imputed,\n{% endif %}\n\nA.modified_timestamp\nFROM\n date_address_contract_spine s\n LEFT JOIN all_supply A\n ON s.block_date = A.block_date\n AND s.address = A.address\n AND s.contract_address = A.contract_address\n)\nSELECT\n block_date,\n address,\n contract_address,\n balance,\n is_imputed,\n SYSDATE() AS modified_timestamp,\n SYSDATE() AS inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(['block_date','address','contract_address']) }} AS stablecoins_supply_by_address_imputed_id\nFROM\n filled_balances\n*/\n-- depends_on: polygon.price.ez_asset_metadata\n\n\nWITH base_supply AS (\n\n SELECT\n block_date,\n address,\n contract_address,\n balance,\n modified_timestamp\n FROM\n polygon.silver_stablecoins.supply_by_address\n\n\nWHERE\n modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n polygon.silver_stablecoins.supply_by_address_imputed\n )\n\n),\n\n\n-- Find earliest date needing reprocessing per address+contract (handles historical corrections/replays)\nmin_base_supply AS (\n SELECT\n MIN(block_date) AS min_base_supply_date,\n address,\n contract_address\n FROM\n base_supply\n GROUP BY\n address,\n contract_address\n),\n-- Pull complete history from earliest affected date forward for impacted pairs (needed for re-imputation)\nincremental_supply AS (\n SELECT\n s.block_date,\n s.address,\n s.contract_address,\n balance,\n modified_timestamp,\n FALSE AS is_imputed\n FROM\n polygon.silver_stablecoins.supply_by_address\n s\n INNER JOIN min_base_supply m\n ON s.address = m.address\n AND s.contract_address = m.contract_address\n AND s.block_date >= m.min_base_supply_date\n),\n-- Lookup of address+contract pairs being updated this run (used to filter unchanged pairs)\nbase_supply_list AS (\n SELECT\n address,\n contract_address,\n COUNT(1)\n FROM\n base_supply\n GROUP BY\n ALL\n),\nexisting_supply AS (\n SELECT\n t.block_date,\n t.address,\n t.contract_address,\n t.balance,\n t.modified_timestamp,\n t.is_imputed\n FROM\n polygon.silver_stablecoins.supply_by_address_imputed\n t\n LEFT JOIN base_supply_list b\n ON t.address = b.address\n AND t.contract_address = b.contract_address\n WHERE\n block_date = (\n SELECT\n MAX(block_date)\n FROM\n polygon.silver_stablecoins.supply_by_address_imputed\n )\n AND b.address IS NULL\n),\n\n\nall_supply AS (\n\n\nSELECT\n *\nFROM\n incremental_supply\nUNION ALL\nSELECT\n *\nFROM\n existing_supply\n),\n-- Identify unique address+contract pairs and their first balance date\naddress_contract_pairs AS (\n SELECT\n address,\n contract_address,\n MIN(block_date) AS min_balance_date\n FROM\n all_supply\n GROUP BY\n address,\n contract_address\n),\n-- Create a date spine for all dates between the minimum balance date and the current date - 1 day,\n-- Balances are recorded using the last block from the previous day\ndate_spine AS (\n SELECT\n date_day\n FROM\n crosschain.core.dim_dates\n WHERE\n date_day < SYSDATE() :: DATE\n AND date_day >= (\n SELECT\n MIN(block_date)\n FROM\n all_supply\n )\n),\n-- Generate one row per date per address+contract pair (filtered by min_balance_date)\ndate_address_contract_spine AS (\n SELECT\n d.date_day AS block_date,\n p.address,\n p.contract_address\n FROM\n date_spine d\n INNER JOIN address_contract_pairs p\n ON d.date_day >= p.min_balance_date\n),\n-- Forward-fill missing balances to create one row per date per address+contract pair, even in cases where no balance new balance is recorded\nfilled_balances AS (\n SELECT\n s.block_date,\n s.address,\n s.contract_address,\n COALESCE(\n A.balance,\n LAST_VALUE(\n A.balance ignore nulls\n ) over (\n PARTITION BY s.address,\n s.contract_address\n ORDER BY\n s.block_date rows BETWEEN unbounded preceding\n AND CURRENT ROW\n )\n ) AS balance,\n\n\n-- If incremental, use the imputed flag from the existing record, otherwise use the balance to determine if it is imputed\nCOALESCE(\n A.is_imputed,\n TRUE\n) AS is_imputed,\n\n\nA.modified_timestamp\nFROM\n date_address_contract_spine s\n LEFT JOIN all_supply A\n ON s.block_date = A.block_date\n AND s.address = A.address\n AND s.contract_address = A.contract_address\n)\nSELECT\n block_date,\n address,\n contract_address,\n balance,\n is_imputed,\n SYSDATE() AS modified_timestamp,\n SYSDATE() AS inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(block_date as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(address as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(contract_address as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS stablecoins_supply_by_address_imputed_id\nFROM\n filled_balances", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_stablecoins__supply_by_address": {"database": "polygon", "schema": "silver_stablecoins", "name": "silver_stablecoins__supply_by_address", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address.sql", "unique_id": "model.fsc_evm.silver_stablecoins__supply_by_address", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "silver_stablecoins__supply_by_address"], "alias": "supply_by_address", "checksum": {"name": "sha256", "checksum": "ef59f62764cdaafd387e31dcaa1eec863e158b3328090cf82e78a11d684191c0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ unverify_stablecoins() }}", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["stablecoins_supply_by_address_id"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_date"]}, "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["stablecoins_supply_by_address_id"], "cluster_by": ["block_date"], "tags": ["silver", "defi", "stablecoins", "heal", "curated_daily"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018441.1608462, "relation_name": "polygon.silver_stablecoins.supply_by_address", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = [\"stablecoins_supply_by_address_id\"],\n cluster_by = ['block_date'],\n post_hook = '{{ unverify_stablecoins() }}',\n tags = ['silver','defi','stablecoins','heal','curated_daily']\n) }}\n\nWITH verified_stablecoins AS (\n\n SELECT\n contract_address\n FROM\n {{ ref('defi__dim_stablecoins') }}\n WHERE\n is_verified\n AND contract_address IS NOT NULL\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL',\n false\n) %}\nnewly_verified_stablecoins AS (\n SELECT\n contract_address\n FROM\n {{ ref('defi__dim_stablecoins') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(modified_timestamp) :: DATE\n FROM\n {{ this }}\n )\n )\n),\nnewly_verified_supply AS (\n SELECT\n block_date,\n address,\n contract_address,\n balance,\n modified_timestamp\n FROM\n {{ ref('balances__ez_balances_erc20_daily') }}\n INNER JOIN newly_verified_stablecoins USING (contract_address)\n),\n{% endif %}\n\nsupply AS (\n SELECT\n block_date,\n address,\n contract_address,\n balance,\n modified_timestamp\n FROM\n {{ ref('balances__ez_balances_erc20_daily') }}\n INNER JOIN verified_stablecoins USING (contract_address)\n\n{% if is_incremental() %}\nWHERE modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n)\n{% endif %}\n),\nall_supply AS (\n SELECT\n *\n FROM\n supply\n\n{% if is_incremental() and var(\n 'HEAL_MODEL',\n false\n) %}\nUNION\nSELECT\n *\nFROM\n newly_verified_supply\n{% endif %}\n)\nSELECT\n block_date,\n address,\n contract_address,\n balance,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['block_date','address','contract_address']) }} AS stablecoins_supply_by_address_id,\nFROM\n all_supply", "language": "sql", "refs": [{"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "defi__dim_stablecoins", "package": null, "version": null}, {"name": "balances__ez_balances_erc20_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.unverify_stablecoins", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.defi__dim_stablecoins", "model.fsc_evm.balances__ez_balances_erc20_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_date\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ unverify_stablecoins() }}\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"stablecoins\",\n \"heal\",\n \"curated_daily\"\n ],\n \"unique_key\": [\n \"stablecoins_supply_by_address_id\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = [\"stablecoins_supply_by_address_id\"],\n cluster_by = ['block_date'],\n post_hook = '{{ unverify_stablecoins() }}',\n tags = ['silver','defi','stablecoins','heal','curated_daily']\n) }}\n\nWITH verified_stablecoins AS (\n\n SELECT\n contract_address\n FROM\n {{ ref('defi__dim_stablecoins') }}\n WHERE\n is_verified\n AND contract_address IS NOT NULL\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL',\n false\n) %}\nnewly_verified_stablecoins AS (\n SELECT\n contract_address\n FROM\n {{ ref('defi__dim_stablecoins') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(modified_timestamp) :: DATE\n FROM\n {{ this }}\n )\n )\n),\nnewly_verified_supply AS (\n SELECT\n block_date,\n address,\n contract_address,\n balance,\n modified_timestamp\n FROM\n {{ ref('balances__ez_balances_erc20_daily') }}\n INNER JOIN newly_verified_stablecoins USING (contract_address)\n),\n{% endif %}\n\nsupply AS (\n SELECT\n block_date,\n address,\n contract_address,\n balance,\n modified_timestamp\n FROM\n {{ ref('balances__ez_balances_erc20_daily') }}\n INNER JOIN verified_stablecoins USING (contract_address)\n\n{% if is_incremental() %}\nWHERE modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n)\n{% endif %}\n),\nall_supply AS (\n SELECT\n *\n FROM\n supply\n\n{% if is_incremental() and var(\n 'HEAL_MODEL',\n false\n) %}\nUNION\nSELECT\n *\nFROM\n newly_verified_supply\n{% endif %}\n)\nSELECT\n block_date,\n address,\n contract_address,\n balance,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['block_date','address','contract_address']) }} AS stablecoins_supply_by_address_id,\nFROM\n all_supply\n*/\n\n-- depends_on: polygon.price.ez_asset_metadata\n\n\nWITH verified_stablecoins AS (\n\n SELECT\n contract_address\n FROM\n polygon.defi.dim_stablecoins\n WHERE\n is_verified\n AND contract_address IS NOT NULL\n),\n\n\n\nsupply AS (\n SELECT\n block_date,\n address,\n contract_address,\n balance,\n modified_timestamp\n FROM\n polygon.balances.ez_balances_erc20_daily\n INNER JOIN verified_stablecoins USING (contract_address)\n\n\nWHERE modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n polygon.silver_stablecoins.supply_by_address\n)\n\n),\nall_supply AS (\n SELECT\n *\n FROM\n supply\n\n\n)\nSELECT\n block_date,\n address,\n contract_address,\n balance,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n \n \nmd5(cast(coalesce(cast(block_date as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(address as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(contract_address as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS stablecoins_supply_by_address_id,\nFROM\n all_supply", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.defi__ez_stablecoins_supply": {"database": "polygon", "schema": "defi", "name": "defi__ez_stablecoins_supply", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/stablecoins/gold/defi__ez_stablecoins_supply.sql", "original_file_path": "models/curated_package/defi/stablecoins/gold/defi__ez_stablecoins_supply.sql", "unique_id": "model.fsc_evm.defi__ez_stablecoins_supply", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "gold", "defi__ez_stablecoins_supply"], "alias": "ez_stablecoins_supply", "checksum": {"name": "sha256", "checksum": "e7234f257a146ff7a5a8fe4c58304bfd84198b63993431000280e0dfdd6b5e68"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "defi", "stablecoins", "heal", "curated_daily"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "defi", "stablecoins", "heal", "curated_daily"], "description": "## What\n\nThis table provides daily supply metrics for verified stablecoins across EVM-compatible blockchains. It tracks total supply, mint/burn activity, and distribution across various DeFi protocols and platforms. Historical data available, starting from `2025-06-10`.\n\n## Key Use Cases\n\n- Tracking stablecoin supply growth and contraction over time\n- Analyzing stablecoin distribution and TVL across DeFi protocols\n- Monitoring mint and burn events for supply changes\n- Identifying stablecoin liquidity concentration in specific venues\n- Building supply-based metrics and charts\n\n## Important Relationships\n\n- **Join with defi.dim_stablecoins**: Use `contract_address` for stablecoin metadata\n- **Join with price.ez_prices_hourly**: Use `contract_address` for price data\n\n## Commonly-used Fields\n\n- `block_date`: Date of the supply snapshot\n- `contract_address`: Stablecoin token contract address\n- `symbol`: Token symbol (e.g., USDC, USDT, DAI)\n- `total_supply`: Total supply of the stablecoin, based on direct `totalSupply` contract functions calls\n- `amount_minted`: Cumulative amount minted\n- `amount_burned`: Cumulative amount burned\n- `amount_in_bridges`: Amount held in Bridge vaults\n- `amount_in_dex_liquidity_pools`: Amount held in DEX liquidity pools\n- `amount_in_lending_pools`: Amount deposited in lending protocols\n- `amount_in_cex`: Amount held in centralized exchange addresses\n\n## Sample queries\n\n```sql\n-- Latest supply metrics by stablecoin\nSELECT \n label AS stablecoin,\n total_supply,\n amount_in_dex_liquidity_pools,\n amount_in_lending_pools\nFROM .defi.ez_stablecoins_supply\nWHERE block_date = CURRENT_DATE - 1\nORDER BY total_supply DESC;\n\n-- Daily supply changes for a specific stablecoin\nSELECT \n block_date,\n symbol,\n total_supply,\n amount_minted - LAG(amount_minted) OVER (PARTITION BY contract_address ORDER BY block_date) AS daily_minted,\n amount_burned - LAG(amount_burned) OVER (PARTITION BY contract_address ORDER BY block_date) AS daily_burned\nFROM .defi.ez_stablecoins_supply\nWHERE symbol = 'USDC'\n AND block_date >= CURRENT_DATE - 30\nORDER BY block_date DESC;\n\n-- Stablecoin distribution analysis\nSELECT \n block_date,\n label AS stablecoin,\n amount_in_bridges / NULLIF(total_supply, 0) AS pct_in_bridge,\n amount_in_dex_liquidity_pools / NULLIF(total_supply, 0) AS pct_in_dex,\n amount_in_lending_pools / NULLIF(total_supply, 0) AS pct_in_lending,\n amount_in_cex / NULLIF(total_supply, 0) AS pct_in_cex\nFROM .defi.ez_stablecoins_supply\nWHERE block_date = CURRENT_DATE - 1\n AND total_supply > 0\nORDER BY total_supply DESC;\n```", "columns": {"BLOCK_DATE": {"name": "BLOCK_DATE", "description": "The date of the daily supply snapshot. This corresponds with the MAX block_number from the previous day.\n\nExample: '2025-06-10'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "The smart contract address of the stablecoin token.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "The symbol identifier for the stablecoin token.\n\nExample: 'USDC'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NAME": {"name": "NAME", "description": "The full name of the stablecoin token.\n\nExample: 'USD Coin'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LABEL": {"name": "LABEL", "description": "A combined display label containing both symbol and name, as a stablecoin unique identifier.\n\nExample: 'USDC: USD Coin'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECIMALS": {"name": "DECIMALS", "description": "The number of decimal places used by the token contract.\n\nExample: 6", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_SUPPLY": {"name": "TOTAL_SUPPLY", "description": "The total supply of the stablecoin on this blockchain as of the block_date, directly derived from `totalSupply` contract function calls.\n\nExample: 1500000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_MINTED": {"name": "AMOUNT_MINTED", "description": "The amount of tokens minted daily.\n\nExample: 2000000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_BURNED": {"name": "AMOUNT_BURNED", "description": "The amount of tokens burned daily.\n\nExample: 500000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_TRANSFERRED": {"name": "AMOUNT_TRANSFERRED", "description": "The amount of tokens transferred daily.\n\nExample: 10000000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_BLACKLISTED": {"name": "AMOUNT_BLACKLISTED", "description": "The total amount of tokens held in blacklisted addresses.\n\nExample: 1000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_IN_CEX": {"name": "AMOUNT_IN_CEX", "description": "The amount of tokens held in centralized exchange addresses.\n\nExample: 300000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_IN_BRIDGES": {"name": "AMOUNT_IN_BRIDGES", "description": "The amount of tokens held in bridge vaults and contracts.\n\nExample: 50000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_IN_DEX_LIQUIDITY_POOLS": {"name": "AMOUNT_IN_DEX_LIQUIDITY_POOLS", "description": "The amount of tokens deposited in decentralized exchange liquidity pools.\n\nExample: 200000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_IN_LENDING_POOLS": {"name": "AMOUNT_IN_LENDING_POOLS", "description": "The amount of tokens deposited in lending protocol pools.\n\nExample: 150000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_IN_CONTRACTS": {"name": "AMOUNT_IN_CONTRACTS", "description": "The amount of tokens held in all contracts (including other categorized contracts).\n\nExample: 100000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_STABLECOINS_SUPPLY_ID": {"name": "EZ_STABLECOINS_SUPPLY_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/stablecoins/gold/defi__ez_stablecoins_supply.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "persist_docs": {"relation": true, "columns": true}, "tags": ["gold", "defi", "stablecoins", "heal", "curated_daily"], "copy_grants": true, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018441.2134037, "relation_name": "polygon.defi.ez_stablecoins_supply", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['gold','defi','stablecoins','heal','curated_daily']\n) }}\n\nSELECT\n block_date,\n contract_address,\n symbol,\n NAME,\n label,\n decimals,\n total_supply,\n amount_minted,\n amount_burned,\n amount_transferred,\n amount_blacklisted,\n amount_in_cex,\n amount_in_bridges,\n amount_in_dex_liquidity_pools,\n amount_in_lending_pools,\n amount_in_contracts,\n inserted_timestamp,\n modified_timestamp,\n stablecoins_supply_complete_id AS ez_stablecoins_supply_id\nFROM\n {{ ref('silver_stablecoins__supply_complete') }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/gold/defi__ez_stablecoins_supply.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"defi\",\n \"stablecoins\",\n \"heal\",\n \"curated_daily\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['gold','defi','stablecoins','heal','curated_daily']\n) }}\n\nSELECT\n block_date,\n contract_address,\n symbol,\n NAME,\n label,\n decimals,\n total_supply,\n amount_minted,\n amount_burned,\n amount_transferred,\n amount_blacklisted,\n amount_in_cex,\n amount_in_bridges,\n amount_in_dex_liquidity_pools,\n amount_in_lending_pools,\n amount_in_contracts,\n inserted_timestamp,\n modified_timestamp,\n stablecoins_supply_complete_id AS ez_stablecoins_supply_id\nFROM\n {{ ref('silver_stablecoins__supply_complete') }}\n*/\n\n\n\nSELECT\n block_date,\n contract_address,\n symbol,\n NAME,\n label,\n decimals,\n total_supply,\n amount_minted,\n amount_burned,\n amount_transferred,\n amount_blacklisted,\n amount_in_cex,\n amount_in_bridges,\n amount_in_dex_liquidity_pools,\n amount_in_lending_pools,\n amount_in_contracts,\n inserted_timestamp,\n modified_timestamp,\n stablecoins_supply_complete_id AS ez_stablecoins_supply_id\nFROM\n polygon.silver_stablecoins.supply_complete", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.defi__dim_stablecoins": {"database": "polygon", "schema": "defi", "name": "defi__dim_stablecoins", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/stablecoins/gold/defi__dim_stablecoins.sql", "original_file_path": "models/curated_package/defi/stablecoins/gold/defi__dim_stablecoins.sql", "unique_id": "model.fsc_evm.defi__dim_stablecoins", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "gold", "defi__dim_stablecoins"], "alias": "dim_stablecoins", "checksum": {"name": "sha256", "checksum": "e1614d0fa57e19acd5a9d29b6dd7ff5ec4424cc85784b95aff7cff569a9d53a7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "defi", "stablecoins", "heal", "curated_daily"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ unverify_stablecoins() }}", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "contract_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "defi", "stablecoins", "heal", "curated_daily"], "description": "## What\n\nThis table provides a dimensional view of verified stablecoins across EVM-compatible blockchains. It consolidates stablecoin metadata from various sources to create a unified reference table for identifying and analyzing stablecoin tokens.\n\n## Key Use Cases\n\n- Identifying stablecoin tokens in transaction and event data\n- Filtering DeFi activities to stablecoin-only transactions\n- Analyzing stablecoin adoption and distribution\n- Tracking verified stablecoin contracts across chains\n- Building stablecoin-specific metrics and dashboards\n\n## Important Relationships\n\n- **Join with defi.ez_stablecoins_supply**: Use `contract_address` for supply metrics\n\n## Commonly-used Fields\n\n- `contract_address`: Unique stablecoin token contract address\n- `symbol`: Token symbol (e.g., USDC, USDT, DAI)\n- `name`: Full token name\n- `label`: Combined symbol and name, as a stablecoin unique identifier\n- `decimals`: Number of decimal places for the token\n- `is_verified`: Verification status\n\n## Sample queries\n\n```sql\n-- Get unique stablecoins\nSELECT \n label AS stablecoin,\n COUNT(*) AS token_count\nFROM .defi.dim_stablecoins\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Get all USDC variants\nSELECT \n contract_address,\n symbol,\n name,\n decimals\nFROM .defi.dim_stablecoins\nWHERE symbol LIKE '%USDC%'\nORDER BY symbol;\n\n-- Check if specific address is a stablecoin\nSELECT \n contract_address,\n label,\n decimals\nFROM .defi.dim_stablecoins\nWHERE contract_address = LOWER('0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48');\n```", "columns": {"CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "The unique smart contract address of the stablecoin token.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "The symbol identifier for the stablecoin token.\n\nExample: 'USDC'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NAME": {"name": "NAME", "description": "The full name of the stablecoin token.\n\nExample: 'USD Coin'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LABEL": {"name": "LABEL", "description": "A combined display label containing both symbol and name.\n\nExample: 'USDC: USD Coin'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECIMALS": {"name": "DECIMALS", "description": "The number of decimal places used by the token contract.\n\nExample: 6", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_VERIFIED": {"name": "IS_VERIFIED", "description": "Indicates whether the stablecoin is verified by the Flipside team.\n\nExample: true", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DIM_STABLECOINS_ID": {"name": "DIM_STABLECOINS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/stablecoins/gold/defi__dim_stablecoins.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "contract_address", "persist_docs": {"relation": true, "columns": true}, "tags": ["gold", "defi", "stablecoins", "heal", "curated_daily"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "on_schema_change": "append_new_columns"}, "created_at": 1764018441.1930099, "relation_name": "polygon.defi.dim_stablecoins", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'contract_address',\n post_hook = '{{ unverify_stablecoins() }}',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['gold','defi','stablecoins','heal','curated_daily']\n) }}\n\nWITH crosschain_stablecoins AS (\n\n SELECT\n s.token_address AS contract_address,\n UPPER(COALESCE(s.symbol, m.symbol)) AS symbol,\n COALESCE(\n s.name,\n m.name\n ) AS NAME,\n m.decimals,\n m.is_verified,\n m.is_verified_modified_timestamp\n FROM\n {{ source(\n 'crosschain_silver',\n 'tokens_stablecoins'\n ) }}\n s\n INNER JOIN {{ ref('price__ez_asset_metadata') }}\n m\n ON s.token_address = m.token_address\n AND s.blockchain = m.blockchain\n WHERE\n m.is_verified --verified stablecoins only\n\n{% if is_incremental() %}\nAND s.modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n)\n{% endif %}\n),\nmanual_stablecoins AS (\n SELECT\n s.contract_address,\n UPPER(\n m.symbol\n ) AS symbol,\n m.name,\n m.decimals,\n m.is_verified,\n m.is_verified_modified_timestamp\n FROM\n {{ ref('silver_stablecoins__stablecoins_mapping_seed') }}\n s\n INNER JOIN {{ ref('price__ez_asset_metadata') }}\n m\n ON s.contract_address = m.token_address\n AND s.blockchain = m.blockchain\n WHERE\n m.is_verified --verified stablecoins only\n\n{% if is_incremental() %}\nAND s.contract_address NOT IN (\n SELECT\n contract_address\n FROM\n {{ this }}\n)\n{% endif %}\n),\nall_stablecoins AS (\n SELECT\n *\n FROM\n crosschain_stablecoins\n UNION ALL\n SELECT\n *\n FROM\n manual_stablecoins\n)\nSELECT\n contract_address,\n symbol,\n NAME,\n CONCAT(symbol,': ',name) AS label,\n decimals,\n is_verified,\n is_verified_modified_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['contract_address']) }} AS dim_stablecoins_id\nFROM\n all_stablecoins", "language": "sql", "refs": [{"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "silver_stablecoins__stablecoins_mapping_seed", "package": null, "version": null}, {"name": "price__ez_asset_metadata", "package": null, "version": null}], "sources": [["crosschain_silver", "tokens_stablecoins"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.unverify_stablecoins", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.crosschain_silver.tokens_stablecoins", "model.fsc_evm.price__ez_asset_metadata", "seed.fsc_evm.silver_stablecoins__stablecoins_mapping_seed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/gold/defi__dim_stablecoins.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ unverify_stablecoins() }}\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"defi\",\n \"stablecoins\",\n \"heal\",\n \"curated_daily\"\n ],\n \"unique_key\": \"contract_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'contract_address',\n post_hook = '{{ unverify_stablecoins() }}',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['gold','defi','stablecoins','heal','curated_daily']\n) }}\n\nWITH crosschain_stablecoins AS (\n\n SELECT\n s.token_address AS contract_address,\n UPPER(COALESCE(s.symbol, m.symbol)) AS symbol,\n COALESCE(\n s.name,\n m.name\n ) AS NAME,\n m.decimals,\n m.is_verified,\n m.is_verified_modified_timestamp\n FROM\n {{ source(\n 'crosschain_silver',\n 'tokens_stablecoins'\n ) }}\n s\n INNER JOIN {{ ref('price__ez_asset_metadata') }}\n m\n ON s.token_address = m.token_address\n AND s.blockchain = m.blockchain\n WHERE\n m.is_verified --verified stablecoins only\n\n{% if is_incremental() %}\nAND s.modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n)\n{% endif %}\n),\nmanual_stablecoins AS (\n SELECT\n s.contract_address,\n UPPER(\n m.symbol\n ) AS symbol,\n m.name,\n m.decimals,\n m.is_verified,\n m.is_verified_modified_timestamp\n FROM\n {{ ref('silver_stablecoins__stablecoins_mapping_seed') }}\n s\n INNER JOIN {{ ref('price__ez_asset_metadata') }}\n m\n ON s.contract_address = m.token_address\n AND s.blockchain = m.blockchain\n WHERE\n m.is_verified --verified stablecoins only\n\n{% if is_incremental() %}\nAND s.contract_address NOT IN (\n SELECT\n contract_address\n FROM\n {{ this }}\n)\n{% endif %}\n),\nall_stablecoins AS (\n SELECT\n *\n FROM\n crosschain_stablecoins\n UNION ALL\n SELECT\n *\n FROM\n manual_stablecoins\n)\nSELECT\n contract_address,\n symbol,\n NAME,\n CONCAT(symbol,': ',name) AS label,\n decimals,\n is_verified,\n is_verified_modified_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['contract_address']) }} AS dim_stablecoins_id\nFROM\n all_stablecoins\n*/\n\n-- depends_on: polygon.price.ez_asset_metadata\n\n\nWITH crosschain_stablecoins AS (\n\n SELECT\n s.token_address AS contract_address,\n UPPER(COALESCE(s.symbol, m.symbol)) AS symbol,\n COALESCE(\n s.name,\n m.name\n ) AS NAME,\n m.decimals,\n m.is_verified,\n m.is_verified_modified_timestamp\n FROM\n CROSSCHAIN.silver.tokens_stablecoins\n s\n INNER JOIN polygon.price.ez_asset_metadata\n m\n ON s.token_address = m.token_address\n AND s.blockchain = m.blockchain\n WHERE\n m.is_verified --verified stablecoins only\n\n\nAND s.modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n polygon.defi.dim_stablecoins\n)\n\n),\nmanual_stablecoins AS (\n SELECT\n s.contract_address,\n UPPER(\n m.symbol\n ) AS symbol,\n m.name,\n m.decimals,\n m.is_verified,\n m.is_verified_modified_timestamp\n FROM\n polygon.silver_stablecoins.stablecoins_mapping_seed\n s\n INNER JOIN polygon.price.ez_asset_metadata\n m\n ON s.contract_address = m.token_address\n AND s.blockchain = m.blockchain\n WHERE\n m.is_verified --verified stablecoins only\n\n\nAND s.contract_address NOT IN (\n SELECT\n contract_address\n FROM\n polygon.defi.dim_stablecoins\n)\n\n),\nall_stablecoins AS (\n SELECT\n *\n FROM\n crosschain_stablecoins\n UNION ALL\n SELECT\n *\n FROM\n manual_stablecoins\n)\nSELECT\n contract_address,\n symbol,\n NAME,\n CONCAT(symbol,': ',name) AS label,\n decimals,\n is_verified,\n is_verified_modified_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n \n \nmd5(cast(coalesce(cast(contract_address as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS dim_stablecoins_id\nFROM\n all_stablecoins", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__complete_dex_liquidity_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "silver_dex__complete_dex_liquidity_pool_actions"], "alias": "complete_dex_liquidity_pool_actions", "checksum": {"name": "sha256", "checksum": "ac49a0f12f6b84950b93ac2ce939741819c3aa49fccf2cbe585c80d437bc99fe"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated", "heal", "complete", "lp_actions"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["block_number", "platform"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE", "platform"]}, "tags": ["silver_dex", "defi", "dex", "curated", "heal", "complete", "lp_actions"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LIQUIDITY_PROVIDER": {"name": "LIQUIDITY_PROVIDER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SENDER": {"name": "SENDER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "RECEIVER": {"name": "RECEIVER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POOL_ADDRESS": {"name": "POOL_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNTS_UNADJ": {"name": "AMOUNTS_UNADJ", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNTS": {"name": "AMOUNTS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNTS_USD": {"name": "AMOUNTS_USD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKENS": {"name": "TOKENS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOLS": {"name": "SYMBOLS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECIMALS": {"name": "DECIMALS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKENS_IS_VERIFIED": {"name": "TOKENS_IS_VERIFIED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL": {"name": "PROTOCOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VERSION": {"name": "VERSION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TYPE": {"name": "TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["block_number", "platform"], "cluster_by": ["block_timestamp::DATE", "platform"], "tags": ["silver_dex", "defi", "dex", "curated", "heal", "complete", "lp_actions"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018441.2179573, "relation_name": "polygon.silver_dex.complete_dex_liquidity_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform'],\n cluster_by = ['block_timestamp::DATE','platform'],\n tags = ['silver_dex','defi','dex','curated','heal','complete','lp_actions']\n) }}\n\nWITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n WHERE\n address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\nprices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n WHERE\n token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\npoolcreated_evt_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__poolcreated_evt_v3_pool_actions') }}\n\n{% if is_incremental() and 'poolcreated_evt_v3' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npaircreated_evt_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__paircreated_evt_v2_pool_actions') }}\n\n{% if is_incremental() and 'paircreated_evt_v2' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naerodrome AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__aerodrome_pool_actions') }}\n\n{% if is_incremental() and 'aerodrome' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npharaoh_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__pharaoh_v1_pool_actions') }}\n\n{% if is_incremental() and 'pharaoh_v1' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nkyberswap_v1_dynamic AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__kyberswap_v1_dynamic_pool_actions') }}\n\n{% if is_incremental() and 'kyberswap_v1_dynamic' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nkyberswap_v2_elastic AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__kyberswap_v2_elastic_pool_actions') }}\n\n{% if is_incremental() and 'kyberswap_v2_elastic' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ndodo_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__dodo_v1_pool_actions') }}\n\n{% if is_incremental() and 'dodo_v1' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npancakeswap_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__pancakeswap_v3_pool_actions') }}\n\n{% if is_incremental() and 'pancakeswap_v3' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncamelot_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__camelot_v2_pool_actions') }}\n\n{% if is_incremental() and 'camelot_v2' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nquickswap_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__quickswap_v2_pool_actions') }}\n\n{% if is_incremental() and 'quickswap_v2' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nquickswap_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__quickswap_v4_pool_actions') }}\n\n{% if is_incremental() and 'quickswap_v4' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\ndackie AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__dackie_pool_actions') }}\n\n{% if is_incremental() and 'dackie' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsuperchain_slipstream AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__superchain_slipstream_pool_actions') }}\n\n{% if is_incremental() and 'superchain_slipstream' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsushiswap AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__sushiswap_pool_actions') }}\n\n{% if is_incremental() and 'sushiswap' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ntrader_joe_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__trader_joe_v2_pool_actions') }}\n\n{% if is_incremental() and 'trader_joe_v2' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nzyberswap_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__zyberswap_v2_pool_actions') }}\n\n{% if is_incremental() and 'zyberswap_v2' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nvelodrome_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__velodrome_v1_pool_actions') }}\n\n{% if is_incremental() and 'velodrome_v1' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nvelodrome_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__velodrome_v2_pool_actions') }}\n\n{% if is_incremental() and 'velodrome_v2' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nbalancer AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n amount0_unadj,\n amount1_unadj,\n amount2_unadj,\n amount3_unadj,\n amount4_unadj,\n amount5_unadj,\n amount6_unadj,\n amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__balancer_pool_actions') }}\n\n{% if is_incremental() and 'balancer' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncurve AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n amount0_unadj,\n amount1_unadj,\n amount2_unadj,\n amount3_unadj,\n amount4_unadj,\n amount5_unadj,\n amount6_unadj,\n amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__curve_pool_actions') }}\n\n{% if is_incremental() and 'curve' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nall_pools AS (\n SELECT\n *\n FROM\n poolcreated_evt_v3\n UNION ALL\n SELECT\n *\n FROM\n paircreated_evt_v2\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v1_dynamic\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v2_elastic\n UNION ALL\n SELECT\n *\n FROM\n dodo_v1\n UNION ALL\n SELECT\n *\n FROM\n pancakeswap_v3\n UNION ALL\n SELECT\n *\n FROM\n balancer\n UNION ALL\n SELECT\n *\n FROM\n curve\n UNION ALL\n SELECT\n *\n FROM\n aerodrome\n UNION ALL\n SELECT\n *\n FROM\n camelot_v2\n UNION ALL\n SELECT\n *\n FROM\n dackie\n UNION ALL\n SELECT\n *\n FROM\n pharaoh_v1\n UNION ALL\n SELECT\n *\n FROM\n quickswap_v2\n UNION ALL\n SELECT\n *\n FROM\n quickswap_v4\n UNION ALL\n SELECT\n *\n FROM\n superchain_slipstream\n UNION ALL\n SELECT\n *\n FROM\n sushiswap\n UNION ALL\n SELECT\n *\n FROM\n trader_joe_v2\n UNION ALL\n SELECT\n *\n FROM\n zyberswap_v2\n UNION ALL\n SELECT\n *\n FROM\n velodrome_v1\n UNION ALL\n SELECT\n *\n FROM\n velodrome_v2\n),\ncomplete_lps AS (\n SELECT\n A.block_number,\n A.block_timestamp,\n A.tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n A.pool_address,\n lp.pool_name,\n A.token0,\n A.token1,\n A.token2,\n A.token3,\n A.token4,\n A.token5,\n A.token6,\n A.token7,\n c0.token_symbol AS token0_symbol,\n c1.token_symbol AS token1_symbol,\n c2.token_symbol AS token2_symbol,\n c3.token_symbol AS token3_symbol,\n c4.token_symbol AS token4_symbol,\n c5.token_symbol AS token5_symbol,\n c6.token_symbol AS token6_symbol,\n c7.token_symbol AS token7_symbol,\n c0.token_decimals AS token0_decimals,\n c1.token_decimals AS token1_decimals,\n c2.token_decimals AS token2_decimals,\n c3.token_decimals AS token3_decimals,\n c4.token_decimals AS token4_decimals,\n c5.token_decimals AS token5_decimals,\n c6.token_decimals AS token6_decimals,\n c7.token_decimals AS token7_decimals,\n A.amount0_unadj,\n A.amount1_unadj,\n A.amount2_unadj,\n A.amount3_unadj,\n A.amount4_unadj,\n A.amount5_unadj,\n A.amount6_unadj,\n A.amount7_unadj,\n CASE\n WHEN token0_decimals IS NULL THEN amount0_unadj\n ELSE (amount0_unadj / pow(10, token0_decimals))\n END AS amount0,\n CASE\n WHEN token1_decimals IS NULL THEN amount1_unadj\n ELSE (amount1_unadj / pow(10, token1_decimals))\n END AS amount1,\n CASE\n WHEN token2_decimals IS NULL THEN amount2_unadj\n ELSE (amount2_unadj / pow(10, token2_decimals))\n END AS amount2,\n CASE\n WHEN token3_decimals IS NULL THEN amount3_unadj\n ELSE (amount3_unadj / pow(10, token3_decimals))\n END AS amount3,\n CASE\n WHEN token4_decimals IS NULL THEN amount4_unadj\n ELSE (amount4_unadj / pow(10, token4_decimals))\n END AS amount4,\n CASE\n WHEN token5_decimals IS NULL THEN amount5_unadj\n ELSE (amount5_unadj / pow(10, token5_decimals))\n END AS amount5,\n CASE\n WHEN token6_decimals IS NULL THEN amount6_unadj\n ELSE (amount6_unadj / pow(10, token6_decimals))\n END AS amount6,\n CASE\n WHEN token7_decimals IS NULL THEN amount7_unadj\n ELSE (amount7_unadj / pow(10, token7_decimals))\n END AS amount7,\n CASE\n WHEN token0_decimals IS NOT NULL THEN amount0 * p0.price\n ELSE NULL\n END AS amount0_usd,\n CASE\n WHEN token1_decimals IS NOT NULL THEN amount1 * p1.price\n ELSE NULL\n END AS amount1_usd,\n CASE\n WHEN token2_decimals IS NOT NULL THEN amount2 * p2.price\n ELSE NULL\n END AS amount2_usd,\n CASE\n WHEN token3_decimals IS NOT NULL THEN amount3 * p3.price\n ELSE NULL\n END AS amount3_usd,\n CASE\n WHEN token4_decimals IS NOT NULL THEN amount4 * p4.price\n ELSE NULL\n END AS amount4_usd,\n CASE\n WHEN token5_decimals IS NOT NULL THEN amount5 * p5.price\n ELSE NULL\n END AS amount5_usd,\n CASE\n WHEN token6_decimals IS NOT NULL THEN amount6 * p6.price\n ELSE NULL\n END AS amount6_usd,\n CASE\n WHEN token7_decimals IS NOT NULL THEN amount7 * p7.price\n ELSE NULL\n END AS amount7_usd,\n p0.is_verified AS token0_is_verified,\n p1.is_verified AS token1_is_verified,\n p2.is_verified AS token2_is_verified,\n p3.is_verified AS token3_is_verified,\n p4.is_verified AS token4_is_verified,\n p5.is_verified AS token5_is_verified,\n p6.is_verified AS token6_is_verified,\n p7.is_verified AS token7_is_verified,\n A.platform,\n A.protocol,\n A.version,\n A.type,\n A._id,\n A._inserted_timestamp\n FROM\n all_pools A\n LEFT JOIN {{ ref('silver_dex__complete_dex_liquidity_pools') }}\n lp\n ON lp.pool_address = A.pool_address\n LEFT JOIN contracts c0\n ON c0.contract_address = A.token0\n LEFT JOIN contracts c1\n ON c1.contract_address = A.token1\n LEFT JOIN contracts c2\n ON c2.contract_address = A.token2\n LEFT JOIN contracts c3\n ON c3.contract_address = A.token3\n LEFT JOIN contracts c4\n ON c4.contract_address = A.token4\n LEFT JOIN contracts c5\n ON c5.contract_address = A.token5\n LEFT JOIN contracts c6\n ON c6.contract_address = A.token6\n LEFT JOIN contracts c7\n ON c7.contract_address = A.token7\n LEFT JOIN prices p0\n ON A.token0 = p0.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p0.hour\n LEFT JOIN prices p1\n ON A.token1 = p1.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p1.hour\n LEFT JOIN prices p2\n ON A.token2 = p2.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p2.hour\n LEFT JOIN prices p3\n ON A.token3 = p3.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p3.hour\n LEFT JOIN prices p4\n ON A.token4 = p4.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p4.hour\n LEFT JOIN prices p5\n ON A.token5 = p5.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p5.hour\n LEFT JOIN prices p6\n ON A.token6 = p6.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p6.hour\n LEFT JOIN prices p7\n ON A.token7 = p7.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p7.hour\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nheal_model AS (\n SELECT\n t0.block_number,\n t0.block_timestamp,\n t0.tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n t0.pool_address,\n lp.pool_name AS pool_name_heal,\n t0.tokens,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n c0.token_symbol,\n 'token1',\n c1.token_symbol,\n 'token2',\n c2.token_symbol,\n 'token3',\n c3.token_symbol,\n 'token4',\n c4.token_symbol,\n 'token5',\n c5.token_symbol,\n 'token6',\n c6.token_symbol,\n 'token7',\n c7.token_symbol\n ) AS symbols_heal,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n c0.token_decimals,\n 'token1',\n c1.token_decimals,\n 'token2',\n c2.token_decimals,\n 'token3',\n c3.token_decimals,\n 'token4',\n c4.token_decimals,\n 'token5',\n c5.token_decimals,\n 'token6',\n c6.token_decimals,\n 'token7',\n c7.token_decimals\n ) AS decimals_heal,\n t0.amounts_unadj,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n CASE\n WHEN c0.token_decimals IS NULL THEN t0.amounts_unadj :token0 :: STRING\n ELSE (t0.amounts_unadj :token0 :: FLOAT / pow(10, c0.token_decimals)) :: STRING\n END,\n 'token1',\n CASE\n WHEN c1.token_decimals IS NULL THEN t0.amounts_unadj :token1 :: STRING\n ELSE (t0.amounts_unadj :token1 :: FLOAT / pow(10, c1.token_decimals)) :: STRING\n END,\n 'token2',\n CASE\n WHEN c2.token_decimals IS NULL THEN t0.amounts_unadj :token2 :: STRING\n ELSE (t0.amounts_unadj :token2 :: FLOAT / pow(10, c2.token_decimals)) :: STRING\n END,\n 'token3',\n CASE\n WHEN c3.token_decimals IS NULL THEN t0.amounts_unadj :token3 :: STRING\n ELSE (t0.amounts_unadj :token3 :: FLOAT / pow(10, c3.token_decimals)) :: STRING\n END,\n 'token4',\n CASE\n WHEN c4.token_decimals IS NULL THEN t0.amounts_unadj :token4 :: STRING\n ELSE (t0.amounts_unadj :token4 :: FLOAT / pow(10, c4.token_decimals)) :: STRING\n END,\n 'token5',\n CASE\n WHEN c5.token_decimals IS NULL THEN t0.amounts_unadj :token5 :: STRING\n ELSE (t0.amounts_unadj :token5 :: FLOAT / pow(10, c5.token_decimals)) :: STRING\n END,\n 'token6',\n CASE\n WHEN c6.token_decimals IS NULL THEN t0.amounts_unadj :token6 :: STRING\n ELSE (t0.amounts_unadj :token6 :: FLOAT / pow(10, c6.token_decimals)) :: STRING\n END,\n 'token7',\n CASE\n WHEN c7.token_decimals IS NULL THEN t0.amounts_unadj :token7 :: STRING\n ELSE (t0.amounts_unadj :token7 :: FLOAT / pow(10, c7.token_decimals)) :: STRING\n END\n ) AS amounts_heal,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n CASE\n WHEN c0.token_decimals IS NOT NULL THEN (amounts_heal :token0 :: FLOAT * p0.price) :: STRING\n ELSE NULL\n END,\n 'token1',\n CASE\n WHEN c1.token_decimals IS NOT NULL THEN (amounts_heal :token1 :: FLOAT * p1.price) :: STRING\n ELSE NULL\n END,\n 'token2',\n CASE\n WHEN c2.token_decimals IS NOT NULL THEN (amounts_heal :token2 :: FLOAT * p2.price) :: STRING\n ELSE NULL\n END,\n 'token3',\n CASE\n WHEN c3.token_decimals IS NOT NULL THEN (amounts_heal :token3 :: FLOAT * p3.price) :: STRING\n ELSE NULL\n END,\n 'token4',\n CASE\n WHEN c4.token_decimals IS NOT NULL THEN (amounts_heal :token4 :: FLOAT * p4.price) :: STRING\n ELSE NULL\n END,\n 'token5',\n CASE\n WHEN c5.token_decimals IS NOT NULL THEN (amounts_heal :token5 :: FLOAT * p5.price) :: STRING\n ELSE NULL\n END,\n 'token6',\n CASE\n WHEN c6.token_decimals IS NOT NULL THEN (amounts_heal :token6 :: FLOAT * p6.price) :: STRING\n ELSE NULL\n END,\n 'token7',\n CASE\n WHEN c7.token_decimals IS NOT NULL THEN (amounts_heal :token7 :: FLOAT * p7.price) :: STRING\n ELSE NULL\n END\n ) AS amounts_usd_heal,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n p0.is_verified,\n 'token1',\n p1.is_verified,\n 'token2',\n p2.is_verified,\n 'token3',\n p3.is_verified,\n 'token4',\n p4.is_verified,\n 'token5',\n p5.is_verified,\n 'token6',\n p6.is_verified,\n 'token7',\n p7.is_verified\n ) AS tokens_is_verified_heal,\n t0.platform,\n t0.protocol,\n t0.version,\n t0.type,\n t0._id,\n t0._inserted_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN {{ ref('silver_dex__complete_dex_liquidity_pools') }}\n lp\n ON lp.pool_address = t0.pool_address\n LEFT JOIN contracts c0\n ON c0.contract_address = t0.tokens :token0\n LEFT JOIN contracts c1\n ON c1.contract_address = t0.tokens :token1\n LEFT JOIN contracts c2\n ON c2.contract_address = t0.tokens :token2\n LEFT JOIN contracts c3\n ON c3.contract_address = t0.tokens :token3\n LEFT JOIN contracts c4\n ON c4.contract_address = t0.tokens :token4\n LEFT JOIN contracts c5\n ON c5.contract_address = t0.tokens :token5\n LEFT JOIN contracts c6\n ON c6.contract_address = t0.tokens :token6\n LEFT JOIN contracts c7\n ON c7.contract_address = t0.tokens :token7\n LEFT JOIN prices p0\n ON t0.tokens :token0 = p0.token_address\n AND DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = p0.hour\n LEFT JOIN prices p1\n ON t0.tokens :token1 = p1.token_address\n AND DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = p1.hour\n LEFT JOIN prices p2\n ON t0.tokens :token2 = p2.token_address\n AND DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = p2.hour\n LEFT JOIN prices p3\n ON t0.tokens :token3 = p3.token_address\n AND DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = p3.hour\n LEFT JOIN prices p4\n ON t0.tokens :token4 = p4.token_address\n AND DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = p4.hour\n LEFT JOIN prices p5\n ON t0.tokens :token5 = p5.token_address\n AND DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = p5.hour\n LEFT JOIN prices p6\n ON t0.tokens :token6 = p6.token_address\n AND DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = p6.hour\n LEFT JOIN prices p7\n ON t0.tokens :token7 = p7.token_address\n AND DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = p7.hour\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t1.block_number,\n '-',\n t1.platform,\n '-',\n t1.version\n )\n FROM\n {{ this }}\n t1\n WHERE\n t1._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND t1.tokens :token0 IN (\n SELECT\n token_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n ) -- newly verified token\n )\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t2.block_number,\n '-',\n t2.platform,\n '-',\n t2.version\n )\n FROM\n {{ this }}\n t2\n WHERE\n t2._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND t2.tokens :token1 IN (\n SELECT\n token_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n ) -- newly verified token\n )\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t3.block_number,\n '-',\n t3.platform,\n '-',\n t3.version\n )\n FROM\n {{ this }}\n t3\n WHERE\n t3._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND t3.tokens :token2 IN (\n SELECT\n token_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n ) -- newly verified token\n )\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t4.block_number,\n '-',\n t4.platform,\n '-',\n t4.version\n )\n FROM\n {{ this }}\n t4\n WHERE\n t4._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND t4.tokens :token3 IN (\n SELECT\n token_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n ) -- newly verified token\n )\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t5.block_number,\n '-',\n t5.platform,\n '-',\n t5.version\n )\n FROM\n {{ this }}\n t5\n WHERE\n t5._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND t5.tokens :token4 IN (\n SELECT\n token_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n ) -- newly verified token\n )\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t6.block_number,\n '-',\n t6.platform,\n '-',\n t6.version\n )\n FROM\n {{ this }}\n t6\n WHERE\n t6._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND t6.tokens :token5 IN (\n SELECT\n token_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n ) -- newly verified token\n )\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t7.block_number,\n '-',\n t7.platform,\n '-',\n t7.version\n )\n FROM\n {{ this }}\n t7\n WHERE\n t7._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND t7.tokens :token6 IN (\n SELECT\n token_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n ) -- newly verified token\n )\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t8.block_number,\n '-',\n t8.platform,\n '-',\n t8.version\n )\n FROM\n {{ this }}\n t8\n WHERE\n t8._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND t8.tokens :token7 IN (\n SELECT\n token_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n ) -- newly verified token\n )\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t9.block_number,\n '-',\n t9.platform,\n '-',\n t9.version\n )\n FROM\n {{ this }}\n t9\n WHERE\n t9.pool_name IS NULL\n AND t9._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver_dex__complete_dex_liquidity_pools') }}\n lp\n WHERE\n lp._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND lp.pool_name IS NOT NULL\n AND lp.pool_address = t9.pool_address)\n GROUP BY\n 1\n )\n ),\n {% endif %}\n\n FINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n pool_name,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n token0,\n 'token1',\n token1,\n 'token2',\n token2,\n 'token3',\n token3,\n 'token4',\n token4,\n 'token5',\n token5,\n 'token6',\n token6,\n 'token7',\n token7\n ) AS tokens,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n token0_symbol,\n 'token1',\n token1_symbol,\n 'token2',\n token2_symbol,\n 'token3',\n token3_symbol,\n 'token4',\n token4_symbol,\n 'token5',\n token5_symbol,\n 'token6',\n token6_symbol,\n 'token7',\n token7_symbol\n ) AS symbols,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n token0_decimals,\n 'token1',\n token1_decimals,\n 'token2',\n token2_decimals,\n 'token3',\n token3_decimals,\n 'token4',\n token4_decimals,\n 'token5',\n token5_decimals,\n 'token6',\n token6_decimals,\n 'token7',\n token7_decimals\n ) AS decimals,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n amount0_unadj :: STRING,\n 'token1',\n amount1_unadj :: STRING,\n 'token2',\n amount2_unadj :: STRING,\n 'token3',\n amount3_unadj :: STRING,\n 'token4',\n amount4_unadj :: STRING,\n 'token5',\n amount5_unadj :: STRING,\n 'token6',\n amount6_unadj :: STRING,\n 'token7',\n amount7_unadj :: STRING\n ) AS amounts_unadj,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n amount0 :: STRING,\n 'token1',\n amount1 :: STRING,\n 'token2',\n amount2 :: STRING,\n 'token3',\n amount3 :: STRING,\n 'token4',\n amount4 :: STRING,\n 'token5',\n amount5 :: STRING,\n 'token6',\n amount6 :: STRING,\n 'token7',\n amount7 :: STRING\n ) AS amounts,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n amount0_usd :: STRING,\n 'token1',\n amount1_usd :: STRING,\n 'token2',\n amount2_usd :: STRING,\n 'token3',\n amount3_usd :: STRING,\n 'token4',\n amount4_usd :: STRING,\n 'token5',\n amount5_usd :: STRING,\n 'token6',\n amount6_usd :: STRING,\n 'token7',\n amount7_usd :: STRING\n ) AS amounts_usd,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n token0_is_verified,\n 'token1',\n token1_is_verified,\n 'token2',\n token2_is_verified,\n 'token3',\n token3_is_verified,\n 'token4',\n token4_is_verified,\n 'token5',\n token5_is_verified,\n 'token6',\n token6_is_verified,\n 'token7',\n token7_is_verified\n ) AS tokens_is_verified,\n platform,\n protocol,\n version,\n TYPE,\n _id,\n _inserted_timestamp\n FROM\n complete_lps\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n pool_name_heal AS pool_name,\n tokens,\n symbols_heal AS symbols,\n decimals_heal AS decimals,\n amounts_unadj,\n amounts_heal AS amounts,\n amounts_usd_heal AS amounts_usd,\n tokens_is_verified_heal AS tokens_is_verified,\n platform,\n protocol,\n version,\n TYPE,\n _id,\n _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n pool_name,\n tokens,\n symbols,\n decimals,\n amounts_unadj,\n amounts,\n amounts_usd,\n tokens_is_verified,\n platform,\n protocol,\n version,\n TYPE,\n _id,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['_id']\n ) }} AS complete_dex_liquidity_pool_actions_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL", "language": "sql", "refs": [{"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "silver_dex__poolcreated_evt_v3_pool_actions", "package": null, "version": null}, {"name": "silver_dex__paircreated_evt_v2_pool_actions", "package": null, "version": null}, {"name": "silver_dex__aerodrome_pool_actions", "package": null, "version": null}, {"name": "silver_dex__pharaoh_v1_pool_actions", "package": null, "version": null}, {"name": "silver_dex__kyberswap_v1_dynamic_pool_actions", "package": null, "version": null}, {"name": "silver_dex__kyberswap_v2_elastic_pool_actions", "package": null, "version": null}, {"name": "silver_dex__dodo_v1_pool_actions", "package": null, "version": null}, {"name": "silver_dex__pancakeswap_v3_pool_actions", "package": null, "version": null}, {"name": "silver_dex__camelot_v2_pool_actions", "package": null, "version": null}, {"name": "silver_dex__quickswap_v2_pool_actions", "package": null, "version": null}, {"name": "silver_dex__quickswap_v4_pool_actions", "package": null, "version": null}, {"name": "silver_dex__dackie_pool_actions", "package": null, "version": null}, {"name": "silver_dex__superchain_slipstream_pool_actions", "package": null, "version": null}, {"name": "silver_dex__sushiswap_pool_actions", "package": null, "version": null}, {"name": "silver_dex__trader_joe_v2_pool_actions", "package": null, "version": null}, {"name": "silver_dex__zyberswap_v2_pool_actions", "package": null, "version": null}, {"name": "silver_dex__velodrome_v1_pool_actions", "package": null, "version": null}, {"name": "silver_dex__velodrome_v2_pool_actions", "package": null, "version": null}, {"name": "silver_dex__balancer_pool_actions", "package": null, "version": null}, {"name": "silver_dex__curve_pool_actions", "package": null, "version": null}, {"name": "silver_dex__complete_dex_liquidity_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver_dex__poolcreated_evt_v3_pool_actions", "model.fsc_evm.silver_dex__paircreated_evt_v2_pool_actions", "model.fsc_evm.silver_dex__aerodrome_pool_actions", "model.fsc_evm.silver_dex__pharaoh_v1_pool_actions", "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pool_actions", "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pool_actions", "model.fsc_evm.silver_dex__dodo_v1_pool_actions", "model.fsc_evm.silver_dex__pancakeswap_v3_pool_actions", "model.fsc_evm.silver_dex__camelot_v2_pool_actions", "model.fsc_evm.silver_dex__quickswap_v2_pool_actions", "model.fsc_evm.silver_dex__quickswap_v4_pool_actions", "model.fsc_evm.silver_dex__dackie_pool_actions", "model.fsc_evm.silver_dex__superchain_slipstream_pool_actions", "model.fsc_evm.silver_dex__sushiswap_pool_actions", "model.fsc_evm.silver_dex__trader_joe_v2_pool_actions", "model.fsc_evm.silver_dex__zyberswap_v2_pool_actions", "model.fsc_evm.silver_dex__velodrome_v1_pool_actions", "model.fsc_evm.silver_dex__velodrome_v2_pool_actions", "model.fsc_evm.silver_dex__balancer_pool_actions", "model.fsc_evm.silver_dex__curve_pool_actions", "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\",\n \"platform\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\",\n \"heal\",\n \"complete\",\n \"lp_actions\"\n ],\n \"unique_key\": [\n \"block_number\",\n \"platform\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform'],\n cluster_by = ['block_timestamp::DATE','platform'],\n tags = ['silver_dex','defi','dex','curated','heal','complete','lp_actions']\n) }}\n\nWITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n WHERE\n address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\nprices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n WHERE\n token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\npoolcreated_evt_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__poolcreated_evt_v3_pool_actions') }}\n\n{% if is_incremental() and 'poolcreated_evt_v3' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npaircreated_evt_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__paircreated_evt_v2_pool_actions') }}\n\n{% if is_incremental() and 'paircreated_evt_v2' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naerodrome AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__aerodrome_pool_actions') }}\n\n{% if is_incremental() and 'aerodrome' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npharaoh_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__pharaoh_v1_pool_actions') }}\n\n{% if is_incremental() and 'pharaoh_v1' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nkyberswap_v1_dynamic AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__kyberswap_v1_dynamic_pool_actions') }}\n\n{% if is_incremental() and 'kyberswap_v1_dynamic' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nkyberswap_v2_elastic AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__kyberswap_v2_elastic_pool_actions') }}\n\n{% if is_incremental() and 'kyberswap_v2_elastic' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ndodo_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__dodo_v1_pool_actions') }}\n\n{% if is_incremental() and 'dodo_v1' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npancakeswap_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__pancakeswap_v3_pool_actions') }}\n\n{% if is_incremental() and 'pancakeswap_v3' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncamelot_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__camelot_v2_pool_actions') }}\n\n{% if is_incremental() and 'camelot_v2' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nquickswap_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__quickswap_v2_pool_actions') }}\n\n{% if is_incremental() and 'quickswap_v2' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nquickswap_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__quickswap_v4_pool_actions') }}\n\n{% if is_incremental() and 'quickswap_v4' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\ndackie AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__dackie_pool_actions') }}\n\n{% if is_incremental() and 'dackie' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsuperchain_slipstream AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__superchain_slipstream_pool_actions') }}\n\n{% if is_incremental() and 'superchain_slipstream' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsushiswap AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__sushiswap_pool_actions') }}\n\n{% if is_incremental() and 'sushiswap' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ntrader_joe_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__trader_joe_v2_pool_actions') }}\n\n{% if is_incremental() and 'trader_joe_v2' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nzyberswap_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__zyberswap_v2_pool_actions') }}\n\n{% if is_incremental() and 'zyberswap_v2' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nvelodrome_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__velodrome_v1_pool_actions') }}\n\n{% if is_incremental() and 'velodrome_v1' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nvelodrome_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__velodrome_v2_pool_actions') }}\n\n{% if is_incremental() and 'velodrome_v2' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nbalancer AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n amount0_unadj,\n amount1_unadj,\n amount2_unadj,\n amount3_unadj,\n amount4_unadj,\n amount5_unadj,\n amount6_unadj,\n amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__balancer_pool_actions') }}\n\n{% if is_incremental() and 'balancer' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncurve AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n amount0_unadj,\n amount1_unadj,\n amount2_unadj,\n amount3_unadj,\n amount4_unadj,\n amount5_unadj,\n amount6_unadj,\n amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__curve_pool_actions') }}\n\n{% if is_incremental() and 'curve' not in vars.curated_fr_models %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nall_pools AS (\n SELECT\n *\n FROM\n poolcreated_evt_v3\n UNION ALL\n SELECT\n *\n FROM\n paircreated_evt_v2\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v1_dynamic\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v2_elastic\n UNION ALL\n SELECT\n *\n FROM\n dodo_v1\n UNION ALL\n SELECT\n *\n FROM\n pancakeswap_v3\n UNION ALL\n SELECT\n *\n FROM\n balancer\n UNION ALL\n SELECT\n *\n FROM\n curve\n UNION ALL\n SELECT\n *\n FROM\n aerodrome\n UNION ALL\n SELECT\n *\n FROM\n camelot_v2\n UNION ALL\n SELECT\n *\n FROM\n dackie\n UNION ALL\n SELECT\n *\n FROM\n pharaoh_v1\n UNION ALL\n SELECT\n *\n FROM\n quickswap_v2\n UNION ALL\n SELECT\n *\n FROM\n quickswap_v4\n UNION ALL\n SELECT\n *\n FROM\n superchain_slipstream\n UNION ALL\n SELECT\n *\n FROM\n sushiswap\n UNION ALL\n SELECT\n *\n FROM\n trader_joe_v2\n UNION ALL\n SELECT\n *\n FROM\n zyberswap_v2\n UNION ALL\n SELECT\n *\n FROM\n velodrome_v1\n UNION ALL\n SELECT\n *\n FROM\n velodrome_v2\n),\ncomplete_lps AS (\n SELECT\n A.block_number,\n A.block_timestamp,\n A.tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n A.pool_address,\n lp.pool_name,\n A.token0,\n A.token1,\n A.token2,\n A.token3,\n A.token4,\n A.token5,\n A.token6,\n A.token7,\n c0.token_symbol AS token0_symbol,\n c1.token_symbol AS token1_symbol,\n c2.token_symbol AS token2_symbol,\n c3.token_symbol AS token3_symbol,\n c4.token_symbol AS token4_symbol,\n c5.token_symbol AS token5_symbol,\n c6.token_symbol AS token6_symbol,\n c7.token_symbol AS token7_symbol,\n c0.token_decimals AS token0_decimals,\n c1.token_decimals AS token1_decimals,\n c2.token_decimals AS token2_decimals,\n c3.token_decimals AS token3_decimals,\n c4.token_decimals AS token4_decimals,\n c5.token_decimals AS token5_decimals,\n c6.token_decimals AS token6_decimals,\n c7.token_decimals AS token7_decimals,\n A.amount0_unadj,\n A.amount1_unadj,\n A.amount2_unadj,\n A.amount3_unadj,\n A.amount4_unadj,\n A.amount5_unadj,\n A.amount6_unadj,\n A.amount7_unadj,\n CASE\n WHEN token0_decimals IS NULL THEN amount0_unadj\n ELSE (amount0_unadj / pow(10, token0_decimals))\n END AS amount0,\n CASE\n WHEN token1_decimals IS NULL THEN amount1_unadj\n ELSE (amount1_unadj / pow(10, token1_decimals))\n END AS amount1,\n CASE\n WHEN token2_decimals IS NULL THEN amount2_unadj\n ELSE (amount2_unadj / pow(10, token2_decimals))\n END AS amount2,\n CASE\n WHEN token3_decimals IS NULL THEN amount3_unadj\n ELSE (amount3_unadj / pow(10, token3_decimals))\n END AS amount3,\n CASE\n WHEN token4_decimals IS NULL THEN amount4_unadj\n ELSE (amount4_unadj / pow(10, token4_decimals))\n END AS amount4,\n CASE\n WHEN token5_decimals IS NULL THEN amount5_unadj\n ELSE (amount5_unadj / pow(10, token5_decimals))\n END AS amount5,\n CASE\n WHEN token6_decimals IS NULL THEN amount6_unadj\n ELSE (amount6_unadj / pow(10, token6_decimals))\n END AS amount6,\n CASE\n WHEN token7_decimals IS NULL THEN amount7_unadj\n ELSE (amount7_unadj / pow(10, token7_decimals))\n END AS amount7,\n CASE\n WHEN token0_decimals IS NOT NULL THEN amount0 * p0.price\n ELSE NULL\n END AS amount0_usd,\n CASE\n WHEN token1_decimals IS NOT NULL THEN amount1 * p1.price\n ELSE NULL\n END AS amount1_usd,\n CASE\n WHEN token2_decimals IS NOT NULL THEN amount2 * p2.price\n ELSE NULL\n END AS amount2_usd,\n CASE\n WHEN token3_decimals IS NOT NULL THEN amount3 * p3.price\n ELSE NULL\n END AS amount3_usd,\n CASE\n WHEN token4_decimals IS NOT NULL THEN amount4 * p4.price\n ELSE NULL\n END AS amount4_usd,\n CASE\n WHEN token5_decimals IS NOT NULL THEN amount5 * p5.price\n ELSE NULL\n END AS amount5_usd,\n CASE\n WHEN token6_decimals IS NOT NULL THEN amount6 * p6.price\n ELSE NULL\n END AS amount6_usd,\n CASE\n WHEN token7_decimals IS NOT NULL THEN amount7 * p7.price\n ELSE NULL\n END AS amount7_usd,\n p0.is_verified AS token0_is_verified,\n p1.is_verified AS token1_is_verified,\n p2.is_verified AS token2_is_verified,\n p3.is_verified AS token3_is_verified,\n p4.is_verified AS token4_is_verified,\n p5.is_verified AS token5_is_verified,\n p6.is_verified AS token6_is_verified,\n p7.is_verified AS token7_is_verified,\n A.platform,\n A.protocol,\n A.version,\n A.type,\n A._id,\n A._inserted_timestamp\n FROM\n all_pools A\n LEFT JOIN {{ ref('silver_dex__complete_dex_liquidity_pools') }}\n lp\n ON lp.pool_address = A.pool_address\n LEFT JOIN contracts c0\n ON c0.contract_address = A.token0\n LEFT JOIN contracts c1\n ON c1.contract_address = A.token1\n LEFT JOIN contracts c2\n ON c2.contract_address = A.token2\n LEFT JOIN contracts c3\n ON c3.contract_address = A.token3\n LEFT JOIN contracts c4\n ON c4.contract_address = A.token4\n LEFT JOIN contracts c5\n ON c5.contract_address = A.token5\n LEFT JOIN contracts c6\n ON c6.contract_address = A.token6\n LEFT JOIN contracts c7\n ON c7.contract_address = A.token7\n LEFT JOIN prices p0\n ON A.token0 = p0.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p0.hour\n LEFT JOIN prices p1\n ON A.token1 = p1.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p1.hour\n LEFT JOIN prices p2\n ON A.token2 = p2.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p2.hour\n LEFT JOIN prices p3\n ON A.token3 = p3.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p3.hour\n LEFT JOIN prices p4\n ON A.token4 = p4.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p4.hour\n LEFT JOIN prices p5\n ON A.token5 = p5.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p5.hour\n LEFT JOIN prices p6\n ON A.token6 = p6.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p6.hour\n LEFT JOIN prices p7\n ON A.token7 = p7.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p7.hour\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nheal_model AS (\n SELECT\n t0.block_number,\n t0.block_timestamp,\n t0.tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n t0.pool_address,\n lp.pool_name AS pool_name_heal,\n t0.tokens,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n c0.token_symbol,\n 'token1',\n c1.token_symbol,\n 'token2',\n c2.token_symbol,\n 'token3',\n c3.token_symbol,\n 'token4',\n c4.token_symbol,\n 'token5',\n c5.token_symbol,\n 'token6',\n c6.token_symbol,\n 'token7',\n c7.token_symbol\n ) AS symbols_heal,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n c0.token_decimals,\n 'token1',\n c1.token_decimals,\n 'token2',\n c2.token_decimals,\n 'token3',\n c3.token_decimals,\n 'token4',\n c4.token_decimals,\n 'token5',\n c5.token_decimals,\n 'token6',\n c6.token_decimals,\n 'token7',\n c7.token_decimals\n ) AS decimals_heal,\n t0.amounts_unadj,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n CASE\n WHEN c0.token_decimals IS NULL THEN t0.amounts_unadj :token0 :: STRING\n ELSE (t0.amounts_unadj :token0 :: FLOAT / pow(10, c0.token_decimals)) :: STRING\n END,\n 'token1',\n CASE\n WHEN c1.token_decimals IS NULL THEN t0.amounts_unadj :token1 :: STRING\n ELSE (t0.amounts_unadj :token1 :: FLOAT / pow(10, c1.token_decimals)) :: STRING\n END,\n 'token2',\n CASE\n WHEN c2.token_decimals IS NULL THEN t0.amounts_unadj :token2 :: STRING\n ELSE (t0.amounts_unadj :token2 :: FLOAT / pow(10, c2.token_decimals)) :: STRING\n END,\n 'token3',\n CASE\n WHEN c3.token_decimals IS NULL THEN t0.amounts_unadj :token3 :: STRING\n ELSE (t0.amounts_unadj :token3 :: FLOAT / pow(10, c3.token_decimals)) :: STRING\n END,\n 'token4',\n CASE\n WHEN c4.token_decimals IS NULL THEN t0.amounts_unadj :token4 :: STRING\n ELSE (t0.amounts_unadj :token4 :: FLOAT / pow(10, c4.token_decimals)) :: STRING\n END,\n 'token5',\n CASE\n WHEN c5.token_decimals IS NULL THEN t0.amounts_unadj :token5 :: STRING\n ELSE (t0.amounts_unadj :token5 :: FLOAT / pow(10, c5.token_decimals)) :: STRING\n END,\n 'token6',\n CASE\n WHEN c6.token_decimals IS NULL THEN t0.amounts_unadj :token6 :: STRING\n ELSE (t0.amounts_unadj :token6 :: FLOAT / pow(10, c6.token_decimals)) :: STRING\n END,\n 'token7',\n CASE\n WHEN c7.token_decimals IS NULL THEN t0.amounts_unadj :token7 :: STRING\n ELSE (t0.amounts_unadj :token7 :: FLOAT / pow(10, c7.token_decimals)) :: STRING\n END\n ) AS amounts_heal,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n CASE\n WHEN c0.token_decimals IS NOT NULL THEN (amounts_heal :token0 :: FLOAT * p0.price) :: STRING\n ELSE NULL\n END,\n 'token1',\n CASE\n WHEN c1.token_decimals IS NOT NULL THEN (amounts_heal :token1 :: FLOAT * p1.price) :: STRING\n ELSE NULL\n END,\n 'token2',\n CASE\n WHEN c2.token_decimals IS NOT NULL THEN (amounts_heal :token2 :: FLOAT * p2.price) :: STRING\n ELSE NULL\n END,\n 'token3',\n CASE\n WHEN c3.token_decimals IS NOT NULL THEN (amounts_heal :token3 :: FLOAT * p3.price) :: STRING\n ELSE NULL\n END,\n 'token4',\n CASE\n WHEN c4.token_decimals IS NOT NULL THEN (amounts_heal :token4 :: FLOAT * p4.price) :: STRING\n ELSE NULL\n END,\n 'token5',\n CASE\n WHEN c5.token_decimals IS NOT NULL THEN (amounts_heal :token5 :: FLOAT * p5.price) :: STRING\n ELSE NULL\n END,\n 'token6',\n CASE\n WHEN c6.token_decimals IS NOT NULL THEN (amounts_heal :token6 :: FLOAT * p6.price) :: STRING\n ELSE NULL\n END,\n 'token7',\n CASE\n WHEN c7.token_decimals IS NOT NULL THEN (amounts_heal :token7 :: FLOAT * p7.price) :: STRING\n ELSE NULL\n END\n ) AS amounts_usd_heal,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n p0.is_verified,\n 'token1',\n p1.is_verified,\n 'token2',\n p2.is_verified,\n 'token3',\n p3.is_verified,\n 'token4',\n p4.is_verified,\n 'token5',\n p5.is_verified,\n 'token6',\n p6.is_verified,\n 'token7',\n p7.is_verified\n ) AS tokens_is_verified_heal,\n t0.platform,\n t0.protocol,\n t0.version,\n t0.type,\n t0._id,\n t0._inserted_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN {{ ref('silver_dex__complete_dex_liquidity_pools') }}\n lp\n ON lp.pool_address = t0.pool_address\n LEFT JOIN contracts c0\n ON c0.contract_address = t0.tokens :token0\n LEFT JOIN contracts c1\n ON c1.contract_address = t0.tokens :token1\n LEFT JOIN contracts c2\n ON c2.contract_address = t0.tokens :token2\n LEFT JOIN contracts c3\n ON c3.contract_address = t0.tokens :token3\n LEFT JOIN contracts c4\n ON c4.contract_address = t0.tokens :token4\n LEFT JOIN contracts c5\n ON c5.contract_address = t0.tokens :token5\n LEFT JOIN contracts c6\n ON c6.contract_address = t0.tokens :token6\n LEFT JOIN contracts c7\n ON c7.contract_address = t0.tokens :token7\n LEFT JOIN prices p0\n ON t0.tokens :token0 = p0.token_address\n AND DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = p0.hour\n LEFT JOIN prices p1\n ON t0.tokens :token1 = p1.token_address\n AND DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = p1.hour\n LEFT JOIN prices p2\n ON t0.tokens :token2 = p2.token_address\n AND DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = p2.hour\n LEFT JOIN prices p3\n ON t0.tokens :token3 = p3.token_address\n AND DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = p3.hour\n LEFT JOIN prices p4\n ON t0.tokens :token4 = p4.token_address\n AND DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = p4.hour\n LEFT JOIN prices p5\n ON t0.tokens :token5 = p5.token_address\n AND DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = p5.hour\n LEFT JOIN prices p6\n ON t0.tokens :token6 = p6.token_address\n AND DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = p6.hour\n LEFT JOIN prices p7\n ON t0.tokens :token7 = p7.token_address\n AND DATE_TRUNC(\n 'hour',\n t0.block_timestamp\n ) = p7.hour\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t1.block_number,\n '-',\n t1.platform,\n '-',\n t1.version\n )\n FROM\n {{ this }}\n t1\n WHERE\n t1._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND t1.tokens :token0 IN (\n SELECT\n token_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n ) -- newly verified token\n )\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t2.block_number,\n '-',\n t2.platform,\n '-',\n t2.version\n )\n FROM\n {{ this }}\n t2\n WHERE\n t2._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND t2.tokens :token1 IN (\n SELECT\n token_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n ) -- newly verified token\n )\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t3.block_number,\n '-',\n t3.platform,\n '-',\n t3.version\n )\n FROM\n {{ this }}\n t3\n WHERE\n t3._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND t3.tokens :token2 IN (\n SELECT\n token_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n ) -- newly verified token\n )\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t4.block_number,\n '-',\n t4.platform,\n '-',\n t4.version\n )\n FROM\n {{ this }}\n t4\n WHERE\n t4._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND t4.tokens :token3 IN (\n SELECT\n token_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n ) -- newly verified token\n )\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t5.block_number,\n '-',\n t5.platform,\n '-',\n t5.version\n )\n FROM\n {{ this }}\n t5\n WHERE\n t5._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND t5.tokens :token4 IN (\n SELECT\n token_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n ) -- newly verified token\n )\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t6.block_number,\n '-',\n t6.platform,\n '-',\n t6.version\n )\n FROM\n {{ this }}\n t6\n WHERE\n t6._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND t6.tokens :token5 IN (\n SELECT\n token_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n ) -- newly verified token\n )\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t7.block_number,\n '-',\n t7.platform,\n '-',\n t7.version\n )\n FROM\n {{ this }}\n t7\n WHERE\n t7._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND t7.tokens :token6 IN (\n SELECT\n token_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n ) -- newly verified token\n )\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t8.block_number,\n '-',\n t8.platform,\n '-',\n t8.version\n )\n FROM\n {{ this }}\n t8\n WHERE\n t8._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND t8.tokens :token7 IN (\n SELECT\n token_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n ) -- newly verified token\n )\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t9.block_number,\n '-',\n t9.platform,\n '-',\n t9.version\n )\n FROM\n {{ this }}\n t9\n WHERE\n t9.pool_name IS NULL\n AND t9._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver_dex__complete_dex_liquidity_pools') }}\n lp\n WHERE\n lp._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND lp.pool_name IS NOT NULL\n AND lp.pool_address = t9.pool_address)\n GROUP BY\n 1\n )\n ),\n {% endif %}\n\n FINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n pool_name,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n token0,\n 'token1',\n token1,\n 'token2',\n token2,\n 'token3',\n token3,\n 'token4',\n token4,\n 'token5',\n token5,\n 'token6',\n token6,\n 'token7',\n token7\n ) AS tokens,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n token0_symbol,\n 'token1',\n token1_symbol,\n 'token2',\n token2_symbol,\n 'token3',\n token3_symbol,\n 'token4',\n token4_symbol,\n 'token5',\n token5_symbol,\n 'token6',\n token6_symbol,\n 'token7',\n token7_symbol\n ) AS symbols,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n token0_decimals,\n 'token1',\n token1_decimals,\n 'token2',\n token2_decimals,\n 'token3',\n token3_decimals,\n 'token4',\n token4_decimals,\n 'token5',\n token5_decimals,\n 'token6',\n token6_decimals,\n 'token7',\n token7_decimals\n ) AS decimals,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n amount0_unadj :: STRING,\n 'token1',\n amount1_unadj :: STRING,\n 'token2',\n amount2_unadj :: STRING,\n 'token3',\n amount3_unadj :: STRING,\n 'token4',\n amount4_unadj :: STRING,\n 'token5',\n amount5_unadj :: STRING,\n 'token6',\n amount6_unadj :: STRING,\n 'token7',\n amount7_unadj :: STRING\n ) AS amounts_unadj,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n amount0 :: STRING,\n 'token1',\n amount1 :: STRING,\n 'token2',\n amount2 :: STRING,\n 'token3',\n amount3 :: STRING,\n 'token4',\n amount4 :: STRING,\n 'token5',\n amount5 :: STRING,\n 'token6',\n amount6 :: STRING,\n 'token7',\n amount7 :: STRING\n ) AS amounts,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n amount0_usd :: STRING,\n 'token1',\n amount1_usd :: STRING,\n 'token2',\n amount2_usd :: STRING,\n 'token3',\n amount3_usd :: STRING,\n 'token4',\n amount4_usd :: STRING,\n 'token5',\n amount5_usd :: STRING,\n 'token6',\n amount6_usd :: STRING,\n 'token7',\n amount7_usd :: STRING\n ) AS amounts_usd,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n token0_is_verified,\n 'token1',\n token1_is_verified,\n 'token2',\n token2_is_verified,\n 'token3',\n token3_is_verified,\n 'token4',\n token4_is_verified,\n 'token5',\n token5_is_verified,\n 'token6',\n token6_is_verified,\n 'token7',\n token7_is_verified\n ) AS tokens_is_verified,\n platform,\n protocol,\n version,\n TYPE,\n _id,\n _inserted_timestamp\n FROM\n complete_lps\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n pool_name_heal AS pool_name,\n tokens,\n symbols_heal AS symbols,\n decimals_heal AS decimals,\n amounts_unadj,\n amounts_heal AS amounts,\n amounts_usd_heal AS amounts_usd,\n tokens_is_verified_heal AS tokens_is_verified,\n platform,\n protocol,\n version,\n TYPE,\n _id,\n _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n pool_name,\n tokens,\n symbols,\n decimals,\n amounts_unadj,\n amounts,\n amounts_usd,\n tokens_is_verified,\n platform,\n protocol,\n version,\n TYPE,\n _id,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['_id']\n ) }} AS complete_dex_liquidity_pool_actions_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL\n*/\n\n-- depends_on: polygon.price.ez_asset_metadata\n\n\nWITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n 'POL' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n WHERE\n address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\nprices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.price.ez_prices_hourly\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.price.ez_prices_hourly\n WHERE\n token_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\npoolcreated_evt_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.poolcreated_evt_v3_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\npaircreated_evt_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.paircreated_evt_v2_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\naerodrome AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.aerodrome_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\npharaoh_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.pharaoh_v1_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\nkyberswap_v1_dynamic AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.kyberswap_v1_dynamic_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\nkyberswap_v2_elastic AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.kyberswap_v2_elastic_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\ndodo_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.dodo_v1_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\npancakeswap_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.pancakeswap_v3_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\ncamelot_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.camelot_v2_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\nquickswap_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.quickswap_v2_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\n\nquickswap_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.quickswap_v4_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\n\ndackie AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.dackie_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\nsuperchain_slipstream AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.superchain_slipstream_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\nsushiswap AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.sushiswap_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\ntrader_joe_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.trader_joe_v2_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\nzyberswap_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.zyberswap_v2_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\nvelodrome_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.velodrome_v1_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\nvelodrome_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n amount0_unadj,\n amount1_unadj,\n NULL AS amount2_unadj,\n NULL AS amount3_unadj,\n NULL AS amount4_unadj,\n NULL AS amount5_unadj,\n NULL AS amount6_unadj,\n NULL AS amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.velodrome_v2_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\nbalancer AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n amount0_unadj,\n amount1_unadj,\n amount2_unadj,\n amount3_unadj,\n amount4_unadj,\n amount5_unadj,\n amount6_unadj,\n amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.balancer_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\ncurve AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n amount0_unadj,\n amount1_unadj,\n amount2_unadj,\n amount3_unadj,\n amount4_unadj,\n amount5_unadj,\n amount6_unadj,\n amount7_unadj,\n platform,\n protocol,\n version,\n TYPE,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.curve_pool_actions\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n )\n\n),\nall_pools AS (\n SELECT\n *\n FROM\n poolcreated_evt_v3\n UNION ALL\n SELECT\n *\n FROM\n paircreated_evt_v2\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v1_dynamic\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v2_elastic\n UNION ALL\n SELECT\n *\n FROM\n dodo_v1\n UNION ALL\n SELECT\n *\n FROM\n pancakeswap_v3\n UNION ALL\n SELECT\n *\n FROM\n balancer\n UNION ALL\n SELECT\n *\n FROM\n curve\n UNION ALL\n SELECT\n *\n FROM\n aerodrome\n UNION ALL\n SELECT\n *\n FROM\n camelot_v2\n UNION ALL\n SELECT\n *\n FROM\n dackie\n UNION ALL\n SELECT\n *\n FROM\n pharaoh_v1\n UNION ALL\n SELECT\n *\n FROM\n quickswap_v2\n UNION ALL\n SELECT\n *\n FROM\n quickswap_v4\n UNION ALL\n SELECT\n *\n FROM\n superchain_slipstream\n UNION ALL\n SELECT\n *\n FROM\n sushiswap\n UNION ALL\n SELECT\n *\n FROM\n trader_joe_v2\n UNION ALL\n SELECT\n *\n FROM\n zyberswap_v2\n UNION ALL\n SELECT\n *\n FROM\n velodrome_v1\n UNION ALL\n SELECT\n *\n FROM\n velodrome_v2\n),\ncomplete_lps AS (\n SELECT\n A.block_number,\n A.block_timestamp,\n A.tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n A.pool_address,\n lp.pool_name,\n A.token0,\n A.token1,\n A.token2,\n A.token3,\n A.token4,\n A.token5,\n A.token6,\n A.token7,\n c0.token_symbol AS token0_symbol,\n c1.token_symbol AS token1_symbol,\n c2.token_symbol AS token2_symbol,\n c3.token_symbol AS token3_symbol,\n c4.token_symbol AS token4_symbol,\n c5.token_symbol AS token5_symbol,\n c6.token_symbol AS token6_symbol,\n c7.token_symbol AS token7_symbol,\n c0.token_decimals AS token0_decimals,\n c1.token_decimals AS token1_decimals,\n c2.token_decimals AS token2_decimals,\n c3.token_decimals AS token3_decimals,\n c4.token_decimals AS token4_decimals,\n c5.token_decimals AS token5_decimals,\n c6.token_decimals AS token6_decimals,\n c7.token_decimals AS token7_decimals,\n A.amount0_unadj,\n A.amount1_unadj,\n A.amount2_unadj,\n A.amount3_unadj,\n A.amount4_unadj,\n A.amount5_unadj,\n A.amount6_unadj,\n A.amount7_unadj,\n CASE\n WHEN token0_decimals IS NULL THEN amount0_unadj\n ELSE (amount0_unadj / pow(10, token0_decimals))\n END AS amount0,\n CASE\n WHEN token1_decimals IS NULL THEN amount1_unadj\n ELSE (amount1_unadj / pow(10, token1_decimals))\n END AS amount1,\n CASE\n WHEN token2_decimals IS NULL THEN amount2_unadj\n ELSE (amount2_unadj / pow(10, token2_decimals))\n END AS amount2,\n CASE\n WHEN token3_decimals IS NULL THEN amount3_unadj\n ELSE (amount3_unadj / pow(10, token3_decimals))\n END AS amount3,\n CASE\n WHEN token4_decimals IS NULL THEN amount4_unadj\n ELSE (amount4_unadj / pow(10, token4_decimals))\n END AS amount4,\n CASE\n WHEN token5_decimals IS NULL THEN amount5_unadj\n ELSE (amount5_unadj / pow(10, token5_decimals))\n END AS amount5,\n CASE\n WHEN token6_decimals IS NULL THEN amount6_unadj\n ELSE (amount6_unadj / pow(10, token6_decimals))\n END AS amount6,\n CASE\n WHEN token7_decimals IS NULL THEN amount7_unadj\n ELSE (amount7_unadj / pow(10, token7_decimals))\n END AS amount7,\n CASE\n WHEN token0_decimals IS NOT NULL THEN amount0 * p0.price\n ELSE NULL\n END AS amount0_usd,\n CASE\n WHEN token1_decimals IS NOT NULL THEN amount1 * p1.price\n ELSE NULL\n END AS amount1_usd,\n CASE\n WHEN token2_decimals IS NOT NULL THEN amount2 * p2.price\n ELSE NULL\n END AS amount2_usd,\n CASE\n WHEN token3_decimals IS NOT NULL THEN amount3 * p3.price\n ELSE NULL\n END AS amount3_usd,\n CASE\n WHEN token4_decimals IS NOT NULL THEN amount4 * p4.price\n ELSE NULL\n END AS amount4_usd,\n CASE\n WHEN token5_decimals IS NOT NULL THEN amount5 * p5.price\n ELSE NULL\n END AS amount5_usd,\n CASE\n WHEN token6_decimals IS NOT NULL THEN amount6 * p6.price\n ELSE NULL\n END AS amount6_usd,\n CASE\n WHEN token7_decimals IS NOT NULL THEN amount7 * p7.price\n ELSE NULL\n END AS amount7_usd,\n p0.is_verified AS token0_is_verified,\n p1.is_verified AS token1_is_verified,\n p2.is_verified AS token2_is_verified,\n p3.is_verified AS token3_is_verified,\n p4.is_verified AS token4_is_verified,\n p5.is_verified AS token5_is_verified,\n p6.is_verified AS token6_is_verified,\n p7.is_verified AS token7_is_verified,\n A.platform,\n A.protocol,\n A.version,\n A.type,\n A._id,\n A._inserted_timestamp\n FROM\n all_pools A\n LEFT JOIN polygon.silver_dex.complete_dex_liquidity_pools\n lp\n ON lp.pool_address = A.pool_address\n LEFT JOIN contracts c0\n ON c0.contract_address = A.token0\n LEFT JOIN contracts c1\n ON c1.contract_address = A.token1\n LEFT JOIN contracts c2\n ON c2.contract_address = A.token2\n LEFT JOIN contracts c3\n ON c3.contract_address = A.token3\n LEFT JOIN contracts c4\n ON c4.contract_address = A.token4\n LEFT JOIN contracts c5\n ON c5.contract_address = A.token5\n LEFT JOIN contracts c6\n ON c6.contract_address = A.token6\n LEFT JOIN contracts c7\n ON c7.contract_address = A.token7\n LEFT JOIN prices p0\n ON A.token0 = p0.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p0.hour\n LEFT JOIN prices p1\n ON A.token1 = p1.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p1.hour\n LEFT JOIN prices p2\n ON A.token2 = p2.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p2.hour\n LEFT JOIN prices p3\n ON A.token3 = p3.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p3.hour\n LEFT JOIN prices p4\n ON A.token4 = p4.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p4.hour\n LEFT JOIN prices p5\n ON A.token5 = p5.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p5.hour\n LEFT JOIN prices p6\n ON A.token6 = p6.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p6.hour\n LEFT JOIN prices p7\n ON A.token7 = p7.token_address\n AND DATE_TRUNC(\n 'hour',\n A.block_timestamp\n ) = p7.hour\n),\n\n\n\n FINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n pool_name,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n token0,\n 'token1',\n token1,\n 'token2',\n token2,\n 'token3',\n token3,\n 'token4',\n token4,\n 'token5',\n token5,\n 'token6',\n token6,\n 'token7',\n token7\n ) AS tokens,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n token0_symbol,\n 'token1',\n token1_symbol,\n 'token2',\n token2_symbol,\n 'token3',\n token3_symbol,\n 'token4',\n token4_symbol,\n 'token5',\n token5_symbol,\n 'token6',\n token6_symbol,\n 'token7',\n token7_symbol\n ) AS symbols,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n token0_decimals,\n 'token1',\n token1_decimals,\n 'token2',\n token2_decimals,\n 'token3',\n token3_decimals,\n 'token4',\n token4_decimals,\n 'token5',\n token5_decimals,\n 'token6',\n token6_decimals,\n 'token7',\n token7_decimals\n ) AS decimals,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n amount0_unadj :: STRING,\n 'token1',\n amount1_unadj :: STRING,\n 'token2',\n amount2_unadj :: STRING,\n 'token3',\n amount3_unadj :: STRING,\n 'token4',\n amount4_unadj :: STRING,\n 'token5',\n amount5_unadj :: STRING,\n 'token6',\n amount6_unadj :: STRING,\n 'token7',\n amount7_unadj :: STRING\n ) AS amounts_unadj,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n amount0 :: STRING,\n 'token1',\n amount1 :: STRING,\n 'token2',\n amount2 :: STRING,\n 'token3',\n amount3 :: STRING,\n 'token4',\n amount4 :: STRING,\n 'token5',\n amount5 :: STRING,\n 'token6',\n amount6 :: STRING,\n 'token7',\n amount7 :: STRING\n ) AS amounts,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n amount0_usd :: STRING,\n 'token1',\n amount1_usd :: STRING,\n 'token2',\n amount2_usd :: STRING,\n 'token3',\n amount3_usd :: STRING,\n 'token4',\n amount4_usd :: STRING,\n 'token5',\n amount5_usd :: STRING,\n 'token6',\n amount6_usd :: STRING,\n 'token7',\n amount7_usd :: STRING\n ) AS amounts_usd,\n OBJECT_CONSTRUCT_KEEP_NULL(\n 'token0',\n token0_is_verified,\n 'token1',\n token1_is_verified,\n 'token2',\n token2_is_verified,\n 'token3',\n token3_is_verified,\n 'token4',\n token4_is_verified,\n 'token5',\n token5_is_verified,\n 'token6',\n token6_is_verified,\n 'token7',\n token7_is_verified\n ) AS tokens_is_verified,\n platform,\n protocol,\n version,\n TYPE,\n _id,\n _inserted_timestamp\n FROM\n complete_lps\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n pool_name,\n tokens,\n symbols,\n decimals,\n amounts_unadj,\n amounts,\n amounts_usd,\n tokens_is_verified,\n platform,\n protocol,\n version,\n TYPE,\n _id,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_dex_liquidity_pool_actions_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n FINAL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__complete_dex_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__complete_dex_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__complete_dex_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "silver_dex__complete_dex_swaps"], "alias": "complete_dex_swaps", "checksum": {"name": "sha256", "checksum": "cf56ae89094cd0a048c5c143a38bc614790a79cadf4b4a439e8f0f2b6b8494ad"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated", "heal", "complete", "swap"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_number, tx_hash, origin_function_signature, origin_from_address, origin_to_address, contract_address, pool_name, event_name, token_in, token_out, symbol_in, symbol_out)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["block_number", "platform", "version"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE", "platform"], "incremental_predicates": ["polygon.\n \n silver_dex.\n \n complete_dex_swaps.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n silver_dex.\n \n complete_dex_swaps__dbt_tmp\n )"]}, "tags": ["silver_dex", "defi", "dex", "curated", "heal", "complete", "swap"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_IN": {"name": "AMOUNT_IN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_OUT": {"name": "AMOUNT_OUT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_IN": {"name": "TOKEN_IN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_OUT": {"name": "TOKEN_OUT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SENDER": {"name": "SENDER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_TO": {"name": "TX_TO", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL": {"name": "PROTOCOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VERSION": {"name": "VERSION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TYPE": {"name": "TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["block_number", "platform", "version"], "cluster_by": ["block_timestamp::DATE", "platform"], "incremental_predicates": ["polygon.\n \n silver_dex.\n \n complete_dex_swaps.block_number >= (\n SELECT\n MIN(\n block_number\n )\n FROM\n polygon.\n \n silver_dex.\n \n complete_dex_swaps__dbt_tmp\n )"], "tags": ["silver_dex", "defi", "dex", "curated", "heal", "complete", "swap"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018441.3316898, "relation_name": "polygon.silver_dex.complete_dex_swaps", "raw_code": "-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform','version'],\n cluster_by = ['block_timestamp::DATE','platform'],\n incremental_predicates = [fsc_evm.standard_predicate()],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_number, tx_hash, origin_function_signature, origin_from_address, origin_to_address, contract_address, pool_name, event_name, token_in, token_out, symbol_in, symbol_out)\",\n tags = ['silver_dex','defi','dex','curated','heal','complete','swap']\n) }}\n\nWITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n WHERE\n address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\nprices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n WHERE\n token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\nswap_evt_v3 AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n recipient AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__swap_evt_v3_swaps') }}\n\n{% if is_incremental() and 'swap_evt_v3' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nswap_evt_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__swap_evt_v2_swaps') }}\n\n{% if is_incremental() and 'swap_evt_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nquickswap_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n recipient AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__quickswap_v2_swaps') }}\n\n{% if is_incremental() and 'quickswap_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nquickswap_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n recipient AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__quickswap_v4_swaps') }}\n\n{% if is_incremental() and 'quickswap_v4' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nwoofi AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__woofi_swaps') }}\n\n{% if is_incremental() and 'woofi' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nkyberswap_v1_dynamic AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__kyberswap_v1_dynamic_swaps') }}\n\n{% if is_incremental() and 'kyberswap_v1_dynamic' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nkyberswap_v1_static AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__kyberswap_v1_static_swaps') }}\n\n{% if is_incremental() and 'kyberswap_v1_static' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nkyberswap_v2_elastic AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__kyberswap_v2_elastic_swaps') }}\n\n{% if is_incremental() and 'kyberswap_v2_elastic' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nhashflow AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__hashflow_swaps') }}\n\n{% if is_incremental() and 'hashflow' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nhashflow_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__hashflow_v3_swaps') }}\n\n{% if is_incremental() and 'hashflow_v3' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncurve AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n tokens_sold AS amount_in_unadj,\n tokens_bought AS amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n _inserted_timestamp\n FROM\n {{ ref('silver_dex__curve_swaps') }}\n\n{% if is_incremental() and 'curve' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nbalancer AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n _inserted_timestamp\n FROM\n {{ ref('silver_dex__balancer_swaps') }}\n\n{% if is_incremental() and 'balancer' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ndodo_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__dodo_v1_swaps') }}\n\n{% if is_incremental() and 'dodo_v1' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ndodo_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__dodo_v2_swaps') }}\n\n{% if is_incremental() and 'dodo_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ndexalot AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__dexalot_swaps') }}\n\n{% if is_incremental() and 'dexalot' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ngmx AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__gmx_swaps') }}\n\n{% if is_incremental() and 'gmx' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ngmx_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__gmx_v2_swaps') }}\n\n{% if is_incremental() and 'gmx_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npharaoh_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__pharaoh_v1_swaps') }}\n\n{% if is_incremental() and 'pharaoh_v1' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsushiswap AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__sushiswap_swaps') }}\n\n{% if is_incremental() and 'sushiswap' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nplatypus AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__platypus_swaps') }}\n\n{% if is_incremental() and 'platypus' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ntrader_joe_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__trader_joe_v2_swaps') }}\n\n{% if is_incremental() and 'trader_joe_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ntrader_joe_v2_1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__trader_joe_v2_1_swaps') }}\n\n{% if is_incremental() and 'trader_joe_v2_1' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nvelodrome_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__velodrome_v1_swaps') }}\n\n{% if is_incremental() and 'velodrome_v1' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nvelodrome_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__velodrome_v2_swaps') }}\n\n{% if is_incremental() and 'velodrome_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsynthetix AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__synthetix_swaps') }}\n\n{% if is_incremental() and 'synthetix' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmaverick AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__maverick_swaps') }}\n\n{% if is_incremental() and 'maverick' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmaverick_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__maverick_v2_swaps') }}\n\n{% if is_incremental() and 'maverick_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npancakeswap_v2_ss AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__pancakeswap_v2_ss_swaps') }}\n\n{% if is_incremental() and 'pancakeswap_v2_ss' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npancakeswap_v2_mm AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__pancakeswap_v2_mm_swaps') }}\n\n{% if is_incremental() and 'pancakeswap_v2_mm' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npancakeswap_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender_address AS sender,\n recipient_address AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__pancakeswap_v3_swaps') }}\n\n{% if is_incremental() and 'pancakeswap_v3' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ndackie AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender_address AS sender,\n recipient_address AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__dackie_swaps') }}\n\n{% if is_incremental() and 'dackie' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nuniswap_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n recipient AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__uniswap_v4_swaps') }}\n\n{% if is_incremental() and 'uniswap_v4' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nbitflux AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__bitflux_swaps') }}\n\n{% if is_incremental() and 'bitflux' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nglyph_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__glyph_v4_swaps') }}\n\n{% if is_incremental() and 'glyph_v4' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nlevelfi AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__levelfi_swaps') }}\n\n{% if is_incremental() and 'levelfi' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncamelot_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__camelot_v2_swaps') }}\n\n{% if is_incremental() and 'camelot_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nzyberswap_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__zyberswap_v2_swaps') }}\n\n{% if is_incremental() and 'zyberswap_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nvoodoo AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__voodoo_swaps') }}\n\n{% if is_incremental() and 'voodoo' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naerodrome AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__aerodrome_swaps') }}\n\n{% if is_incremental() and 'aerodrome' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsuperchain_slipstream AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__superchain_slipstream_swaps') }}\n\n{% if is_incremental() and 'superchain_slipstream' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nall_dex AS (\n SELECT\n *\n FROM\n balancer\n UNION ALL\n SELECT\n *\n FROM\n curve\n UNION ALL\n SELECT\n *\n FROM\n hashflow\n UNION ALL\n SELECT\n *\n FROM\n hashflow_v3\n UNION ALL\n SELECT\n *\n FROM\n quickswap_v2\n UNION ALL\n SELECT\n *\n FROM\n quickswap_v4\n UNION ALL\n SELECT\n *\n FROM\n woofi\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v1_dynamic\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v1_static\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v2_elastic\n UNION ALL\n SELECT\n *\n FROM\n dodo_v1\n UNION ALL\n SELECT\n *\n FROM\n dodo_v2\n UNION ALL\n SELECT\n *\n FROM\n swap_evt_v3\n UNION ALL\n SELECT\n *\n FROM\n swap_evt_v2\n UNION ALL\n SELECT\n *\n FROM\n dexalot\n UNION ALL\n SELECT\n *\n FROM\n gmx\n UNION ALL\n SELECT\n *\n FROM\n gmx_v2\n UNION ALL\n SELECT\n *\n FROM\n pharaoh_v1\n UNION ALL\n SELECT\n *\n FROM\n sushiswap\n UNION ALL\n SELECT\n *\n FROM\n platypus\n UNION ALL\n SELECT\n *\n FROM\n trader_joe_v2\n UNION ALL\n SELECT\n *\n FROM\n trader_joe_v2_1\n UNION ALL\n SELECT\n *\n FROM\n velodrome_v1\n UNION ALL\n SELECT\n *\n FROM\n velodrome_v2\n UNION ALL\n SELECT\n *\n FROM\n synthetix\n UNION ALL\n SELECT\n *\n FROM\n maverick\n UNION ALL\n SELECT\n *\n FROM\n maverick_v2\n UNION ALL\n SELECT\n *\n FROM\n pancakeswap_v2_ss\n UNION ALL\n SELECT\n *\n FROM\n pancakeswap_v2_mm\n UNION ALL\n SELECT\n *\n FROM\n pancakeswap_v3\n UNION ALL\n SELECT\n *\n FROM\n dackie\n UNION ALL\n SELECT\n *\n FROM\n uniswap_v4\n UNION ALL\n SELECT\n *\n FROM\n bitflux\n UNION ALL\n SELECT\n *\n FROM\n glyph_v4\n UNION ALL\n SELECT\n *\n FROM\n levelfi\n UNION ALL\n SELECT\n *\n FROM\n camelot_v2\n UNION ALL\n SELECT\n *\n FROM\n zyberswap_v2\n UNION ALL\n SELECT\n *\n FROM\n voodoo\n UNION ALL\n SELECT\n *\n FROM\n dackie\n UNION ALL\n SELECT\n *\n FROM\n aerodrome\n UNION ALL\n SELECT\n *\n FROM\n superchain_slipstream\n),\ncomplete_dex_swaps AS (\n SELECT\n s.block_number,\n s.block_timestamp,\n s.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n s.contract_address,\n s.pool_id,\n event_name,\n token_in,\n p1.is_verified AS token_in_is_verified,\n c1.token_decimals AS decimals_in,\n c1.token_symbol AS symbol_in,\n amount_in_unadj,\n CASE\n WHEN decimals_in IS NULL THEN amount_in_unadj\n ELSE (amount_in_unadj / pow(10, decimals_in))\n END AS amount_in,\n CASE\n WHEN decimals_in IS NOT NULL THEN amount_in * p1.price\n ELSE NULL\n END AS amount_in_usd,\n token_out,\n p2.is_verified AS token_out_is_verified,\n c2.token_decimals AS decimals_out,\n c2.token_symbol AS symbol_out,\n amount_out_unadj,\n CASE\n WHEN decimals_out IS NULL THEN amount_out_unadj\n ELSE (amount_out_unadj / pow(10, decimals_out))\n END AS amount_out,\n CASE\n WHEN decimals_out IS NOT NULL THEN amount_out * p2.price\n ELSE NULL\n END AS amount_out_usd,\n CASE\n WHEN lp.pool_name IS NULL THEN CONCAT(\n LEAST(\n COALESCE(\n symbol_in,\n CONCAT(SUBSTRING(token_in, 1, 5), '...', SUBSTRING(token_in, 39, 42))\n ),\n COALESCE(\n symbol_out,\n CONCAT(SUBSTRING(token_out, 1, 5), '...', SUBSTRING(token_out, 39, 42))\n )\n ),\n '-',\n GREATEST(\n COALESCE(\n symbol_in,\n CONCAT(SUBSTRING(token_in, 1, 5), '...', SUBSTRING(token_in, 39, 42))\n ),\n COALESCE(\n symbol_out,\n CONCAT(SUBSTRING(token_out, 1, 5), '...', SUBSTRING(token_out, 39, 42))\n )\n )\n )\n ELSE lp.pool_name\n END AS pool_name,\n sender,\n tx_to,\n event_index,\n s.platform,\n s.protocol,\n s.version,\n s.type,\n s._log_id,\n s._inserted_timestamp\n FROM\n all_dex s\n LEFT JOIN contracts\n c1\n ON s.token_in = c1.contract_address\n LEFT JOIN contracts\n c2\n ON s.token_out = c2.contract_address\n LEFT JOIN prices\n p1\n ON s.token_in = p1.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.hour\n LEFT JOIN prices\n p2\n ON s.token_out = p2.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p2.hour\n LEFT JOIN {{ ref('silver_dex__complete_dex_liquidity_pools') }}\n lp\n ON s.contract_address = lp.pool_address\n AND s.pool_id = lp.pool_id\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nheal_model AS (\n SELECT\n t0.block_number,\n t0.block_timestamp,\n t0.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n t0.contract_address,\n t0.pool_id,\n event_name,\n token_in,\n p1.is_verified AS token_in_is_verified,\n c1.token_decimals AS decimals_in,\n c1.token_symbol AS symbol_in,\n amount_in_unadj,\n CASE\n WHEN c1.token_decimals IS NULL THEN amount_in_unadj\n ELSE (amount_in_unadj / pow(10, c1.token_decimals))\n END AS amount_in_heal,\n CASE\n WHEN c1.token_decimals IS NOT NULL THEN amount_in_heal * p1.price\n ELSE NULL\n END AS amount_in_usd_heal,\n token_out,\n p2.is_verified AS token_out_is_verified,\n c2.token_decimals AS decimals_out,\n c2.token_symbol AS symbol_out,\n amount_out_unadj,\n CASE\n WHEN c2.token_decimals IS NULL THEN amount_out_unadj\n ELSE (amount_out_unadj / pow(10, c2.token_decimals))\n END AS amount_out_heal,\n CASE\n WHEN c2.token_decimals IS NOT NULL THEN amount_out_heal * p2.price\n ELSE NULL\n END AS amount_out_usd_heal,\n CASE\n WHEN lp.pool_name IS NULL THEN CONCAT(\n LEAST(\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token_in, 1, 5), '...', SUBSTRING(token_in, 39, 42))\n ),\n COALESCE(\n c2.token_symbol,\n CONCAT(SUBSTRING(token_out, 1, 5), '...', SUBSTRING(token_out, 39, 42))\n )\n ),\n '-',\n GREATEST(\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token_in, 1, 5), '...', SUBSTRING(token_in, 39, 42))\n ),\n COALESCE(\n c2.token_symbol,\n CONCAT(SUBSTRING(token_out, 1, 5), '...', SUBSTRING(token_out, 39, 42))\n )\n )\n )\n ELSE lp.pool_name\n END AS pool_name_heal,\n sender,\n tx_to,\n event_index,\n t0.platform,\n t0.protocol,\n t0.version,\n t0.type,\n t0._log_id,\n t0._inserted_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN contracts\n c1\n ON t0.token_in = c1.contract_address\n LEFT JOIN contracts\n c2\n ON t0.token_out = c2.contract_address\n LEFT JOIN prices\n p1\n ON t0.token_in = p1.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.hour\n LEFT JOIN prices\n p2\n ON t0.token_out = p2.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p2.hour\n LEFT JOIN {{ ref('silver_dex__complete_dex_liquidity_pools') }}\n lp\n ON t0.contract_address = lp.pool_address\n AND t0.pool_id = lp.pool_id\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n select concat(\n t5.block_number,\n '-',\n t5.platform,\n '-',\n t5.version\n )\n from {{ this }} t5\n where t5.token_in in (\n select token_address\n from {{ ref('price__ez_asset_metadata') }}\n where ifnull(is_verified_modified_timestamp, '1970-01-01' :: TIMESTAMP) > dateadd('day', -8, (select max(_inserted_timestamp)::date from {{ this }})) -- newly verified token in\n )\n and t5._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n )\n OR concat(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN ( \n select concat(\n t6.block_number,\n '-',\n t6.platform,\n '-',\n t6.version\n )\n from {{ this }} t6\n where t6.token_out in (\n select token_address\n from {{ ref('price__ez_asset_metadata') }}\n where ifnull(is_verified_modified_timestamp, '1970-01-01' :: TIMESTAMP) > dateadd('day', -8, (select max(_inserted_timestamp)::date from {{ this }})) -- newly verified token out\n )\n and t6._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n )\n ),\n {% endif %}\n\n FINAL AS (\n SELECT\n *\n FROM\n complete_dex_swaps\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_id,\n event_name,\n token_in,\n token_in_is_verified,\n decimals_in,\n symbol_in,\n amount_in_unadj,\n amount_in_heal AS amount_in,\n amount_in_usd_heal AS amount_in_usd,\n token_out,\n token_out_is_verified,\n decimals_out,\n symbol_out,\n amount_out_unadj,\n amount_out_heal AS amount_out,\n amount_out_usd_heal AS amount_out_usd,\n pool_name_heal AS pool_name,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_name,\n pool_id,\n event_name,\n amount_in_unadj,\n amount_in,\n amount_in_usd,\n amount_out_unadj,\n amount_out,\n amount_out_usd,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n token_in,\n IFNULL(\n token_in_is_verified,\n FALSE\n ) AS token_in_is_verified,\n token_out,\n IFNULL(\n token_out_is_verified,\n FALSE\n ) AS token_out_is_verified,\n symbol_in,\n symbol_out,\n decimals_in,\n decimals_out,\n _log_id,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash','event_index']\n ) }} AS complete_dex_swaps_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL qualify (ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "silver_dex__swap_evt_v3_swaps", "package": null, "version": null}, {"name": "silver_dex__swap_evt_v2_swaps", "package": null, "version": null}, {"name": "silver_dex__quickswap_v2_swaps", "package": null, "version": null}, {"name": "silver_dex__quickswap_v4_swaps", "package": null, "version": null}, {"name": "silver_dex__woofi_swaps", "package": null, "version": null}, {"name": "silver_dex__kyberswap_v1_dynamic_swaps", "package": null, "version": null}, {"name": "silver_dex__kyberswap_v1_static_swaps", "package": null, "version": null}, {"name": "silver_dex__kyberswap_v2_elastic_swaps", "package": null, "version": null}, {"name": "silver_dex__hashflow_swaps", "package": null, "version": null}, {"name": "silver_dex__hashflow_v3_swaps", "package": null, "version": null}, {"name": "silver_dex__curve_swaps", "package": null, "version": null}, {"name": "silver_dex__balancer_swaps", "package": null, "version": null}, {"name": "silver_dex__dodo_v1_swaps", "package": null, "version": null}, {"name": "silver_dex__dodo_v2_swaps", "package": null, "version": null}, {"name": "silver_dex__dexalot_swaps", "package": null, "version": null}, {"name": "silver_dex__gmx_swaps", "package": null, "version": null}, {"name": "silver_dex__gmx_v2_swaps", "package": null, "version": null}, {"name": "silver_dex__pharaoh_v1_swaps", "package": null, "version": null}, {"name": "silver_dex__sushiswap_swaps", "package": null, "version": null}, {"name": "silver_dex__platypus_swaps", "package": null, "version": null}, {"name": "silver_dex__trader_joe_v2_swaps", "package": null, "version": null}, {"name": "silver_dex__trader_joe_v2_1_swaps", "package": null, "version": null}, {"name": "silver_dex__velodrome_v1_swaps", "package": null, "version": null}, {"name": "silver_dex__velodrome_v2_swaps", "package": null, "version": null}, {"name": "silver_dex__synthetix_swaps", "package": null, "version": null}, {"name": "silver_dex__maverick_swaps", "package": null, "version": null}, {"name": "silver_dex__maverick_v2_swaps", "package": null, "version": null}, {"name": "silver_dex__pancakeswap_v2_ss_swaps", "package": null, "version": null}, {"name": "silver_dex__pancakeswap_v2_mm_swaps", "package": null, "version": null}, {"name": "silver_dex__pancakeswap_v3_swaps", "package": null, "version": null}, {"name": "silver_dex__dackie_swaps", "package": null, "version": null}, {"name": "silver_dex__uniswap_v4_swaps", "package": null, "version": null}, {"name": "silver_dex__bitflux_swaps", "package": null, "version": null}, {"name": "silver_dex__glyph_v4_swaps", "package": null, "version": null}, {"name": "silver_dex__levelfi_swaps", "package": null, "version": null}, {"name": "silver_dex__camelot_v2_swaps", "package": null, "version": null}, {"name": "silver_dex__zyberswap_v2_swaps", "package": null, "version": null}, {"name": "silver_dex__voodoo_swaps", "package": null, "version": null}, {"name": "silver_dex__aerodrome_swaps", "package": null, "version": null}, {"name": "silver_dex__superchain_slipstream_swaps", "package": null, "version": null}, {"name": "silver_dex__complete_dex_liquidity_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.standard_predicate", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver_dex__swap_evt_v3_swaps", "model.fsc_evm.silver_dex__swap_evt_v2_swaps", "model.fsc_evm.silver_dex__quickswap_v2_swaps", "model.fsc_evm.silver_dex__quickswap_v4_swaps", "model.fsc_evm.silver_dex__woofi_swaps", "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_swaps", "model.fsc_evm.silver_dex__kyberswap_v1_static_swaps", "model.fsc_evm.silver_dex__kyberswap_v2_elastic_swaps", "model.fsc_evm.silver_dex__hashflow_swaps", "model.fsc_evm.silver_dex__hashflow_v3_swaps", "model.fsc_evm.silver_dex__curve_swaps", "model.fsc_evm.silver_dex__balancer_swaps", "model.fsc_evm.silver_dex__dodo_v1_swaps", "model.fsc_evm.silver_dex__dodo_v2_swaps", "model.fsc_evm.silver_dex__dexalot_swaps", "model.fsc_evm.silver_dex__gmx_swaps", "model.fsc_evm.silver_dex__gmx_v2_swaps", "model.fsc_evm.silver_dex__pharaoh_v1_swaps", "model.fsc_evm.silver_dex__sushiswap_swaps", "model.fsc_evm.silver_dex__platypus_swaps", "model.fsc_evm.silver_dex__trader_joe_v2_swaps", "model.fsc_evm.silver_dex__trader_joe_v2_1_swaps", "model.fsc_evm.silver_dex__velodrome_v1_swaps", "model.fsc_evm.silver_dex__velodrome_v2_swaps", "model.fsc_evm.silver_dex__synthetix_swaps", "model.fsc_evm.silver_dex__maverick_swaps", "model.fsc_evm.silver_dex__maverick_v2_swaps", "model.fsc_evm.silver_dex__pancakeswap_v2_ss_swaps", "model.fsc_evm.silver_dex__pancakeswap_v2_mm_swaps", "model.fsc_evm.silver_dex__pancakeswap_v3_swaps", "model.fsc_evm.silver_dex__dackie_swaps", "model.fsc_evm.silver_dex__uniswap_v4_swaps", "model.fsc_evm.silver_dex__bitflux_swaps", "model.fsc_evm.silver_dex__glyph_v4_swaps", "model.fsc_evm.silver_dex__levelfi_swaps", "model.fsc_evm.silver_dex__camelot_v2_swaps", "model.fsc_evm.silver_dex__zyberswap_v2_swaps", "model.fsc_evm.silver_dex__voodoo_swaps", "model.fsc_evm.silver_dex__aerodrome_swaps", "model.fsc_evm.silver_dex__superchain_slipstream_swaps", "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.sql", "compiled": true, "compiled_code": "-- depends_on: polygon.price.ez_asset_metadata\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\",\n \"platform\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_predicates\": [\n \"polygon.\\n \\n silver_dex.\\n \\n complete_dex_swaps.block_number \\u003e= (\\n SELECT\\n MIN(\\n block_number\\n )\\n FROM\\n polygon.\\n \\n silver_dex.\\n \\n complete_dex_swaps__dbt_tmp\\n )\"\n ],\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_number, tx_hash, origin_function_signature, origin_from_address, origin_to_address, contract_address, pool_name, event_name, token_in, token_out, symbol_in, symbol_out)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\",\n \"heal\",\n \"complete\",\n \"swap\"\n ],\n \"unique_key\": [\n \"block_number\",\n \"platform\",\n \"version\"\n ]\n}\n*/\n \n/*\nRaw Code:\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform','version'],\n cluster_by = ['block_timestamp::DATE','platform'],\n incremental_predicates = [fsc_evm.standard_predicate()],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_number, tx_hash, origin_function_signature, origin_from_address, origin_to_address, contract_address, pool_name, event_name, token_in, token_out, symbol_in, symbol_out)\",\n tags = ['silver_dex','defi','dex','curated','heal','complete','swap']\n) }}\n\nWITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n WHERE\n address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\nprices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n WHERE\n token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\nswap_evt_v3 AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n recipient AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__swap_evt_v3_swaps') }}\n\n{% if is_incremental() and 'swap_evt_v3' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nswap_evt_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__swap_evt_v2_swaps') }}\n\n{% if is_incremental() and 'swap_evt_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nquickswap_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n recipient AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__quickswap_v2_swaps') }}\n\n{% if is_incremental() and 'quickswap_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nquickswap_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n recipient AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__quickswap_v4_swaps') }}\n\n{% if is_incremental() and 'quickswap_v4' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nwoofi AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__woofi_swaps') }}\n\n{% if is_incremental() and 'woofi' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nkyberswap_v1_dynamic AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__kyberswap_v1_dynamic_swaps') }}\n\n{% if is_incremental() and 'kyberswap_v1_dynamic' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nkyberswap_v1_static AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__kyberswap_v1_static_swaps') }}\n\n{% if is_incremental() and 'kyberswap_v1_static' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nkyberswap_v2_elastic AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__kyberswap_v2_elastic_swaps') }}\n\n{% if is_incremental() and 'kyberswap_v2_elastic' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nhashflow AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__hashflow_swaps') }}\n\n{% if is_incremental() and 'hashflow' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nhashflow_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__hashflow_v3_swaps') }}\n\n{% if is_incremental() and 'hashflow_v3' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncurve AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n tokens_sold AS amount_in_unadj,\n tokens_bought AS amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n _inserted_timestamp\n FROM\n {{ ref('silver_dex__curve_swaps') }}\n\n{% if is_incremental() and 'curve' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nbalancer AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n _inserted_timestamp\n FROM\n {{ ref('silver_dex__balancer_swaps') }}\n\n{% if is_incremental() and 'balancer' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ndodo_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__dodo_v1_swaps') }}\n\n{% if is_incremental() and 'dodo_v1' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ndodo_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__dodo_v2_swaps') }}\n\n{% if is_incremental() and 'dodo_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ndexalot AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__dexalot_swaps') }}\n\n{% if is_incremental() and 'dexalot' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ngmx AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__gmx_swaps') }}\n\n{% if is_incremental() and 'gmx' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ngmx_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__gmx_v2_swaps') }}\n\n{% if is_incremental() and 'gmx_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npharaoh_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__pharaoh_v1_swaps') }}\n\n{% if is_incremental() and 'pharaoh_v1' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsushiswap AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__sushiswap_swaps') }}\n\n{% if is_incremental() and 'sushiswap' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nplatypus AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__platypus_swaps') }}\n\n{% if is_incremental() and 'platypus' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ntrader_joe_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__trader_joe_v2_swaps') }}\n\n{% if is_incremental() and 'trader_joe_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ntrader_joe_v2_1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__trader_joe_v2_1_swaps') }}\n\n{% if is_incremental() and 'trader_joe_v2_1' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nvelodrome_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__velodrome_v1_swaps') }}\n\n{% if is_incremental() and 'velodrome_v1' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nvelodrome_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__velodrome_v2_swaps') }}\n\n{% if is_incremental() and 'velodrome_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsynthetix AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__synthetix_swaps') }}\n\n{% if is_incremental() and 'synthetix' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmaverick AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__maverick_swaps') }}\n\n{% if is_incremental() and 'maverick' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmaverick_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__maverick_v2_swaps') }}\n\n{% if is_incremental() and 'maverick_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npancakeswap_v2_ss AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__pancakeswap_v2_ss_swaps') }}\n\n{% if is_incremental() and 'pancakeswap_v2_ss' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npancakeswap_v2_mm AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__pancakeswap_v2_mm_swaps') }}\n\n{% if is_incremental() and 'pancakeswap_v2_mm' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npancakeswap_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender_address AS sender,\n recipient_address AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__pancakeswap_v3_swaps') }}\n\n{% if is_incremental() and 'pancakeswap_v3' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ndackie AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender_address AS sender,\n recipient_address AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__dackie_swaps') }}\n\n{% if is_incremental() and 'dackie' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nuniswap_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n recipient AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__uniswap_v4_swaps') }}\n\n{% if is_incremental() and 'uniswap_v4' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nbitflux AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__bitflux_swaps') }}\n\n{% if is_incremental() and 'bitflux' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nglyph_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__glyph_v4_swaps') }}\n\n{% if is_incremental() and 'glyph_v4' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nlevelfi AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__levelfi_swaps') }}\n\n{% if is_incremental() and 'levelfi' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncamelot_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__camelot_v2_swaps') }}\n\n{% if is_incremental() and 'camelot_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nzyberswap_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__zyberswap_v2_swaps') }}\n\n{% if is_incremental() and 'zyberswap_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nvoodoo AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__voodoo_swaps') }}\n\n{% if is_incremental() and 'voodoo' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naerodrome AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__aerodrome_swaps') }}\n\n{% if is_incremental() and 'aerodrome' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsuperchain_slipstream AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__superchain_slipstream_swaps') }}\n\n{% if is_incremental() and 'superchain_slipstream' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nall_dex AS (\n SELECT\n *\n FROM\n balancer\n UNION ALL\n SELECT\n *\n FROM\n curve\n UNION ALL\n SELECT\n *\n FROM\n hashflow\n UNION ALL\n SELECT\n *\n FROM\n hashflow_v3\n UNION ALL\n SELECT\n *\n FROM\n quickswap_v2\n UNION ALL\n SELECT\n *\n FROM\n quickswap_v4\n UNION ALL\n SELECT\n *\n FROM\n woofi\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v1_dynamic\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v1_static\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v2_elastic\n UNION ALL\n SELECT\n *\n FROM\n dodo_v1\n UNION ALL\n SELECT\n *\n FROM\n dodo_v2\n UNION ALL\n SELECT\n *\n FROM\n swap_evt_v3\n UNION ALL\n SELECT\n *\n FROM\n swap_evt_v2\n UNION ALL\n SELECT\n *\n FROM\n dexalot\n UNION ALL\n SELECT\n *\n FROM\n gmx\n UNION ALL\n SELECT\n *\n FROM\n gmx_v2\n UNION ALL\n SELECT\n *\n FROM\n pharaoh_v1\n UNION ALL\n SELECT\n *\n FROM\n sushiswap\n UNION ALL\n SELECT\n *\n FROM\n platypus\n UNION ALL\n SELECT\n *\n FROM\n trader_joe_v2\n UNION ALL\n SELECT\n *\n FROM\n trader_joe_v2_1\n UNION ALL\n SELECT\n *\n FROM\n velodrome_v1\n UNION ALL\n SELECT\n *\n FROM\n velodrome_v2\n UNION ALL\n SELECT\n *\n FROM\n synthetix\n UNION ALL\n SELECT\n *\n FROM\n maverick\n UNION ALL\n SELECT\n *\n FROM\n maverick_v2\n UNION ALL\n SELECT\n *\n FROM\n pancakeswap_v2_ss\n UNION ALL\n SELECT\n *\n FROM\n pancakeswap_v2_mm\n UNION ALL\n SELECT\n *\n FROM\n pancakeswap_v3\n UNION ALL\n SELECT\n *\n FROM\n dackie\n UNION ALL\n SELECT\n *\n FROM\n uniswap_v4\n UNION ALL\n SELECT\n *\n FROM\n bitflux\n UNION ALL\n SELECT\n *\n FROM\n glyph_v4\n UNION ALL\n SELECT\n *\n FROM\n levelfi\n UNION ALL\n SELECT\n *\n FROM\n camelot_v2\n UNION ALL\n SELECT\n *\n FROM\n zyberswap_v2\n UNION ALL\n SELECT\n *\n FROM\n voodoo\n UNION ALL\n SELECT\n *\n FROM\n dackie\n UNION ALL\n SELECT\n *\n FROM\n aerodrome\n UNION ALL\n SELECT\n *\n FROM\n superchain_slipstream\n),\ncomplete_dex_swaps AS (\n SELECT\n s.block_number,\n s.block_timestamp,\n s.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n s.contract_address,\n s.pool_id,\n event_name,\n token_in,\n p1.is_verified AS token_in_is_verified,\n c1.token_decimals AS decimals_in,\n c1.token_symbol AS symbol_in,\n amount_in_unadj,\n CASE\n WHEN decimals_in IS NULL THEN amount_in_unadj\n ELSE (amount_in_unadj / pow(10, decimals_in))\n END AS amount_in,\n CASE\n WHEN decimals_in IS NOT NULL THEN amount_in * p1.price\n ELSE NULL\n END AS amount_in_usd,\n token_out,\n p2.is_verified AS token_out_is_verified,\n c2.token_decimals AS decimals_out,\n c2.token_symbol AS symbol_out,\n amount_out_unadj,\n CASE\n WHEN decimals_out IS NULL THEN amount_out_unadj\n ELSE (amount_out_unadj / pow(10, decimals_out))\n END AS amount_out,\n CASE\n WHEN decimals_out IS NOT NULL THEN amount_out * p2.price\n ELSE NULL\n END AS amount_out_usd,\n CASE\n WHEN lp.pool_name IS NULL THEN CONCAT(\n LEAST(\n COALESCE(\n symbol_in,\n CONCAT(SUBSTRING(token_in, 1, 5), '...', SUBSTRING(token_in, 39, 42))\n ),\n COALESCE(\n symbol_out,\n CONCAT(SUBSTRING(token_out, 1, 5), '...', SUBSTRING(token_out, 39, 42))\n )\n ),\n '-',\n GREATEST(\n COALESCE(\n symbol_in,\n CONCAT(SUBSTRING(token_in, 1, 5), '...', SUBSTRING(token_in, 39, 42))\n ),\n COALESCE(\n symbol_out,\n CONCAT(SUBSTRING(token_out, 1, 5), '...', SUBSTRING(token_out, 39, 42))\n )\n )\n )\n ELSE lp.pool_name\n END AS pool_name,\n sender,\n tx_to,\n event_index,\n s.platform,\n s.protocol,\n s.version,\n s.type,\n s._log_id,\n s._inserted_timestamp\n FROM\n all_dex s\n LEFT JOIN contracts\n c1\n ON s.token_in = c1.contract_address\n LEFT JOIN contracts\n c2\n ON s.token_out = c2.contract_address\n LEFT JOIN prices\n p1\n ON s.token_in = p1.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.hour\n LEFT JOIN prices\n p2\n ON s.token_out = p2.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p2.hour\n LEFT JOIN {{ ref('silver_dex__complete_dex_liquidity_pools') }}\n lp\n ON s.contract_address = lp.pool_address\n AND s.pool_id = lp.pool_id\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nheal_model AS (\n SELECT\n t0.block_number,\n t0.block_timestamp,\n t0.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n t0.contract_address,\n t0.pool_id,\n event_name,\n token_in,\n p1.is_verified AS token_in_is_verified,\n c1.token_decimals AS decimals_in,\n c1.token_symbol AS symbol_in,\n amount_in_unadj,\n CASE\n WHEN c1.token_decimals IS NULL THEN amount_in_unadj\n ELSE (amount_in_unadj / pow(10, c1.token_decimals))\n END AS amount_in_heal,\n CASE\n WHEN c1.token_decimals IS NOT NULL THEN amount_in_heal * p1.price\n ELSE NULL\n END AS amount_in_usd_heal,\n token_out,\n p2.is_verified AS token_out_is_verified,\n c2.token_decimals AS decimals_out,\n c2.token_symbol AS symbol_out,\n amount_out_unadj,\n CASE\n WHEN c2.token_decimals IS NULL THEN amount_out_unadj\n ELSE (amount_out_unadj / pow(10, c2.token_decimals))\n END AS amount_out_heal,\n CASE\n WHEN c2.token_decimals IS NOT NULL THEN amount_out_heal * p2.price\n ELSE NULL\n END AS amount_out_usd_heal,\n CASE\n WHEN lp.pool_name IS NULL THEN CONCAT(\n LEAST(\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token_in, 1, 5), '...', SUBSTRING(token_in, 39, 42))\n ),\n COALESCE(\n c2.token_symbol,\n CONCAT(SUBSTRING(token_out, 1, 5), '...', SUBSTRING(token_out, 39, 42))\n )\n ),\n '-',\n GREATEST(\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token_in, 1, 5), '...', SUBSTRING(token_in, 39, 42))\n ),\n COALESCE(\n c2.token_symbol,\n CONCAT(SUBSTRING(token_out, 1, 5), '...', SUBSTRING(token_out, 39, 42))\n )\n )\n )\n ELSE lp.pool_name\n END AS pool_name_heal,\n sender,\n tx_to,\n event_index,\n t0.platform,\n t0.protocol,\n t0.version,\n t0.type,\n t0._log_id,\n t0._inserted_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN contracts\n c1\n ON t0.token_in = c1.contract_address\n LEFT JOIN contracts\n c2\n ON t0.token_out = c2.contract_address\n LEFT JOIN prices\n p1\n ON t0.token_in = p1.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.hour\n LEFT JOIN prices\n p2\n ON t0.token_out = p2.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p2.hour\n LEFT JOIN {{ ref('silver_dex__complete_dex_liquidity_pools') }}\n lp\n ON t0.contract_address = lp.pool_address\n AND t0.pool_id = lp.pool_id\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n select concat(\n t5.block_number,\n '-',\n t5.platform,\n '-',\n t5.version\n )\n from {{ this }} t5\n where t5.token_in in (\n select token_address\n from {{ ref('price__ez_asset_metadata') }}\n where ifnull(is_verified_modified_timestamp, '1970-01-01' :: TIMESTAMP) > dateadd('day', -8, (select max(_inserted_timestamp)::date from {{ this }})) -- newly verified token in\n )\n and t5._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n )\n OR concat(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN ( \n select concat(\n t6.block_number,\n '-',\n t6.platform,\n '-',\n t6.version\n )\n from {{ this }} t6\n where t6.token_out in (\n select token_address\n from {{ ref('price__ez_asset_metadata') }}\n where ifnull(is_verified_modified_timestamp, '1970-01-01' :: TIMESTAMP) > dateadd('day', -8, (select max(_inserted_timestamp)::date from {{ this }})) -- newly verified token out\n )\n and t6._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n )\n ),\n {% endif %}\n\n FINAL AS (\n SELECT\n *\n FROM\n complete_dex_swaps\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_id,\n event_name,\n token_in,\n token_in_is_verified,\n decimals_in,\n symbol_in,\n amount_in_unadj,\n amount_in_heal AS amount_in,\n amount_in_usd_heal AS amount_in_usd,\n token_out,\n token_out_is_verified,\n decimals_out,\n symbol_out,\n amount_out_unadj,\n amount_out_heal AS amount_out,\n amount_out_usd_heal AS amount_out_usd,\n pool_name_heal AS pool_name,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_name,\n pool_id,\n event_name,\n amount_in_unadj,\n amount_in,\n amount_in_usd,\n amount_out_unadj,\n amount_out,\n amount_out_usd,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n token_in,\n IFNULL(\n token_in_is_verified,\n FALSE\n ) AS token_in_is_verified,\n token_out,\n IFNULL(\n token_out_is_verified,\n FALSE\n ) AS token_out_is_verified,\n symbol_in,\n symbol_out,\n decimals_in,\n decimals_out,\n _log_id,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash','event_index']\n ) }} AS complete_dex_swaps_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL qualify (ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1\n*/\n\n\n\nWITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n 'POL' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n WHERE\n address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\nprices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.price.ez_prices_hourly\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.price.ez_prices_hourly\n WHERE\n token_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\nswap_evt_v3 AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n recipient AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.swap_evt_v3_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nswap_evt_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.swap_evt_v2_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nquickswap_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n recipient AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.quickswap_v2_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\n\nquickswap_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n recipient AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.quickswap_v4_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\n\nwoofi AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.woofi_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nkyberswap_v1_dynamic AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.kyberswap_v1_dynamic_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nkyberswap_v1_static AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.kyberswap_v1_static_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nkyberswap_v2_elastic AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.kyberswap_v2_elastic_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nhashflow AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.hashflow_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nhashflow_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.hashflow_v3_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\ncurve AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n tokens_sold AS amount_in_unadj,\n tokens_bought AS amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n _inserted_timestamp\n FROM\n polygon.silver_dex.curve_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nbalancer AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n _inserted_timestamp\n FROM\n polygon.silver_dex.balancer_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\ndodo_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.dodo_v1_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\ndodo_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.dodo_v2_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\ndexalot AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.dexalot_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\ngmx AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.gmx_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\ngmx_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.gmx_v2_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\npharaoh_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.pharaoh_v1_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nsushiswap AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.sushiswap_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nplatypus AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.platypus_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\ntrader_joe_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.trader_joe_v2_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\ntrader_joe_v2_1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.trader_joe_v2_1_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nvelodrome_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.velodrome_v1_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nvelodrome_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.velodrome_v2_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nsynthetix AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.synthetix_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nmaverick AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.maverick_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nmaverick_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.maverick_v2_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\npancakeswap_v2_ss AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.pancakeswap_v2_ss_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\npancakeswap_v2_mm AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.pancakeswap_v2_mm_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\npancakeswap_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender_address AS sender,\n recipient_address AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.pancakeswap_v3_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\ndackie AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender_address AS sender,\n recipient_address AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.dackie_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nuniswap_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n recipient AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.uniswap_v4_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nbitflux AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.bitflux_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nglyph_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n pool_address AS contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.glyph_v4_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nlevelfi AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.levelfi_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\ncamelot_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.camelot_v2_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nzyberswap_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.zyberswap_v2_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nvoodoo AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.voodoo_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\naerodrome AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.aerodrome_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nsuperchain_slipstream AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n '0x' AS pool_id,\n event_name,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.superchain_slipstream_swaps\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_swaps\n )\n\n),\nall_dex AS (\n SELECT\n *\n FROM\n balancer\n UNION ALL\n SELECT\n *\n FROM\n curve\n UNION ALL\n SELECT\n *\n FROM\n hashflow\n UNION ALL\n SELECT\n *\n FROM\n hashflow_v3\n UNION ALL\n SELECT\n *\n FROM\n quickswap_v2\n UNION ALL\n SELECT\n *\n FROM\n quickswap_v4\n UNION ALL\n SELECT\n *\n FROM\n woofi\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v1_dynamic\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v1_static\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v2_elastic\n UNION ALL\n SELECT\n *\n FROM\n dodo_v1\n UNION ALL\n SELECT\n *\n FROM\n dodo_v2\n UNION ALL\n SELECT\n *\n FROM\n swap_evt_v3\n UNION ALL\n SELECT\n *\n FROM\n swap_evt_v2\n UNION ALL\n SELECT\n *\n FROM\n dexalot\n UNION ALL\n SELECT\n *\n FROM\n gmx\n UNION ALL\n SELECT\n *\n FROM\n gmx_v2\n UNION ALL\n SELECT\n *\n FROM\n pharaoh_v1\n UNION ALL\n SELECT\n *\n FROM\n sushiswap\n UNION ALL\n SELECT\n *\n FROM\n platypus\n UNION ALL\n SELECT\n *\n FROM\n trader_joe_v2\n UNION ALL\n SELECT\n *\n FROM\n trader_joe_v2_1\n UNION ALL\n SELECT\n *\n FROM\n velodrome_v1\n UNION ALL\n SELECT\n *\n FROM\n velodrome_v2\n UNION ALL\n SELECT\n *\n FROM\n synthetix\n UNION ALL\n SELECT\n *\n FROM\n maverick\n UNION ALL\n SELECT\n *\n FROM\n maverick_v2\n UNION ALL\n SELECT\n *\n FROM\n pancakeswap_v2_ss\n UNION ALL\n SELECT\n *\n FROM\n pancakeswap_v2_mm\n UNION ALL\n SELECT\n *\n FROM\n pancakeswap_v3\n UNION ALL\n SELECT\n *\n FROM\n dackie\n UNION ALL\n SELECT\n *\n FROM\n uniswap_v4\n UNION ALL\n SELECT\n *\n FROM\n bitflux\n UNION ALL\n SELECT\n *\n FROM\n glyph_v4\n UNION ALL\n SELECT\n *\n FROM\n levelfi\n UNION ALL\n SELECT\n *\n FROM\n camelot_v2\n UNION ALL\n SELECT\n *\n FROM\n zyberswap_v2\n UNION ALL\n SELECT\n *\n FROM\n voodoo\n UNION ALL\n SELECT\n *\n FROM\n dackie\n UNION ALL\n SELECT\n *\n FROM\n aerodrome\n UNION ALL\n SELECT\n *\n FROM\n superchain_slipstream\n),\ncomplete_dex_swaps AS (\n SELECT\n s.block_number,\n s.block_timestamp,\n s.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n s.contract_address,\n s.pool_id,\n event_name,\n token_in,\n p1.is_verified AS token_in_is_verified,\n c1.token_decimals AS decimals_in,\n c1.token_symbol AS symbol_in,\n amount_in_unadj,\n CASE\n WHEN decimals_in IS NULL THEN amount_in_unadj\n ELSE (amount_in_unadj / pow(10, decimals_in))\n END AS amount_in,\n CASE\n WHEN decimals_in IS NOT NULL THEN amount_in * p1.price\n ELSE NULL\n END AS amount_in_usd,\n token_out,\n p2.is_verified AS token_out_is_verified,\n c2.token_decimals AS decimals_out,\n c2.token_symbol AS symbol_out,\n amount_out_unadj,\n CASE\n WHEN decimals_out IS NULL THEN amount_out_unadj\n ELSE (amount_out_unadj / pow(10, decimals_out))\n END AS amount_out,\n CASE\n WHEN decimals_out IS NOT NULL THEN amount_out * p2.price\n ELSE NULL\n END AS amount_out_usd,\n CASE\n WHEN lp.pool_name IS NULL THEN CONCAT(\n LEAST(\n COALESCE(\n symbol_in,\n CONCAT(SUBSTRING(token_in, 1, 5), '...', SUBSTRING(token_in, 39, 42))\n ),\n COALESCE(\n symbol_out,\n CONCAT(SUBSTRING(token_out, 1, 5), '...', SUBSTRING(token_out, 39, 42))\n )\n ),\n '-',\n GREATEST(\n COALESCE(\n symbol_in,\n CONCAT(SUBSTRING(token_in, 1, 5), '...', SUBSTRING(token_in, 39, 42))\n ),\n COALESCE(\n symbol_out,\n CONCAT(SUBSTRING(token_out, 1, 5), '...', SUBSTRING(token_out, 39, 42))\n )\n )\n )\n ELSE lp.pool_name\n END AS pool_name,\n sender,\n tx_to,\n event_index,\n s.platform,\n s.protocol,\n s.version,\n s.type,\n s._log_id,\n s._inserted_timestamp\n FROM\n all_dex s\n LEFT JOIN contracts\n c1\n ON s.token_in = c1.contract_address\n LEFT JOIN contracts\n c2\n ON s.token_out = c2.contract_address\n LEFT JOIN prices\n p1\n ON s.token_in = p1.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.hour\n LEFT JOIN prices\n p2\n ON s.token_out = p2.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p2.hour\n LEFT JOIN polygon.silver_dex.complete_dex_liquidity_pools\n lp\n ON s.contract_address = lp.pool_address\n AND s.pool_id = lp.pool_id\n),\n\n\n\n FINAL AS (\n SELECT\n *\n FROM\n complete_dex_swaps\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_name,\n pool_id,\n event_name,\n amount_in_unadj,\n amount_in,\n amount_in_usd,\n amount_out_unadj,\n amount_out,\n amount_out_usd,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n token_in,\n IFNULL(\n token_in_is_verified,\n FALSE\n ) AS token_in_is_verified,\n token_out,\n IFNULL(\n token_out_is_verified,\n FALSE\n ) AS token_out_is_verified,\n symbol_in,\n symbol_out,\n decimals_in,\n decimals_out,\n _log_id,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(event_index as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_dex_swaps_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n FINAL qualify (ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__complete_dex_liquidity_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__complete_dex_liquidity_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.sql", "unique_id": "model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "silver_dex__complete_dex_liquidity_pools"], "alias": "complete_dex_liquidity_pools", "checksum": {"name": "sha256", "checksum": "43bac0090f280fd38646f41b94cd073ea96a324fb6d8ac1b61ca73411d83dd5b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated", "heal", "complete", "lp"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, contract_address, pool_address, pool_name, tokens, symbols)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["block_number", "platform", "version"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE", "platform"]}, "tags": ["silver_dex", "defi", "dex", "curated", "heal", "complete", "lp"], "description": "", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POOL_ADDRESS": {"name": "POOL_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL": {"name": "PROTOCOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VERSION": {"name": "VERSION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TYPE": {"name": "TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["block_number", "platform", "version"], "cluster_by": ["block_timestamp::DATE", "platform"], "tags": ["silver_dex", "defi", "dex", "curated", "heal", "complete", "lp"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018441.4513254, "relation_name": "polygon.silver_dex.complete_dex_liquidity_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform','version'],\n cluster_by = ['block_timestamp::DATE','platform'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, contract_address, pool_address, pool_name, tokens, symbols)\",\n tags = ['silver_dex','defi','dex','curated','heal','complete','lp']\n) }}\n\nWITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n WHERE\n address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\nbalancer AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n _inserted_timestamp\n FROM\n {{ ref('silver_dex__balancer_pools') }}\n\n{% if is_incremental() and 'balancer' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncurve AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n deployer_address AS contract_address,\n pool_address,\n '0x' AS pool_id,\n pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n MAX(\n CASE\n WHEN token_num = 1 THEN token_address\n END\n ) AS token0,\n MAX(\n CASE\n WHEN token_num = 2 THEN token_address\n END\n ) AS token1,\n MAX(\n CASE\n WHEN token_num = 3 THEN token_address\n END\n ) AS token2,\n MAX(\n CASE\n WHEN token_num = 4 THEN token_address\n END\n ) AS token3,\n MAX(\n CASE\n WHEN token_num = 5 THEN token_address\n END\n ) AS token4,\n MAX(\n CASE\n WHEN token_num = 6 THEN token_address\n END\n ) AS token5,\n MAX(\n CASE\n WHEN token_num = 7 THEN token_address\n END\n ) AS token6,\n MAX(\n CASE\n WHEN token_num = 8 THEN token_address\n END\n ) AS token7,\n platform,\n protocol,\n version,\n type,\n _call_id AS _id,\n _inserted_timestamp\n FROM\n {{ ref('silver_dex__curve_pools') }}\n\n{% if is_incremental() and 'curve' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\nGROUP BY\n ALL\n),\ndodo_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n base_token AS token0,\n quote_token AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__dodo_v1_pools') }}\n\n{% if is_incremental() and 'dodo_v1' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ndodo_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n base_token AS token0,\n quote_token AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__dodo_v2_pools') }}\n WHERE\n token0 IS NOT NULL\n\n{% if is_incremental() and 'dodo_v2' not in vars.CURATED_FR_MODELS %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\nkyberswap_v1_dynamic AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__kyberswap_v1_dynamic_pools') }}\n\n{% if is_incremental() and 'kyberswap_v1_dynamic' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nkyberswap_v1_static AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__kyberswap_v1_static_pools') }}\n\n{% if is_incremental() and 'kyberswap_v1_static' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nkyberswap_v2_elastic AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n swap_fee_units AS fee,\n tick_distance AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__kyberswap_v2_elastic_pools') }}\n\n{% if is_incremental() and 'kyberswap_v2_elastic' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nquickswap_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0_address AS token0,\n token1_address AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__quickswap_v2_pools') }}\n\n{% if is_incremental() and 'quickswap_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nquickswap_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0_address AS token0,\n token1_address AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__quickswap_v4_pools') }}\n\n{% if is_incremental() and 'quickswap_v4' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npoolcreated_evt_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n fee,\n tick_spacing,\n token0_address AS token0,\n token1_address AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__poolcreated_evt_v3_pools') }}\n\n{% if is_incremental() and 'poolcreated_evt_v3' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npaircreated_evt_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__paircreated_evt_v2_pools') }}\n\n{% if is_incremental() and 'paircreated_evt_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npharaoh_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__pharaoh_v1_pools') }}\n\n{% if is_incremental() and 'pharaoh_v1' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsushiswap AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__sushiswap_pools') }}\n\n{% if is_incremental() and 'sushiswap' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ntrader_joe_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n lb_pair AS pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n tokenX AS token0,\n tokenY AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__trader_joe_v2_pools') }}\n\n{% if is_incremental() and 'trader_joe_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nvelodrome_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__velodrome_v1_pools') }}\n\n{% if is_incremental() and 'velodrome_v1' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nvelodrome_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n factory_address AS contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__velodrome_v2_pools') }}\n\n{% if is_incremental() and 'velodrome_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmaverick AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n tokenA AS token0,\n tokenB AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__maverick_pools') }}\n\n{% if is_incremental() and 'maverick' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmaverick_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n tick_spacing,\n tokenA AS token0,\n tokenB AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__maverick_v2_pools') }}\n\n{% if is_incremental() and 'maverick_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npancakeswap_v2_ss AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n tokenA AS token0,\n tokenB AS token1,\n tokenC AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__pancakeswap_v2_ss_pools') }}\n\n{% if is_incremental() and 'pancakeswap_v2_ss' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npancakeswap_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n fee,\n tick_spacing,\n token0_address AS token0,\n token1_address AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__pancakeswap_v3_pools') }}\n\n{% if is_incremental() and 'pancakeswap_v3' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ndackie AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n fee,\n tick_spacing,\n token0_address AS token0,\n token1_address AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__dackie_pools') }}\n\n{% if is_incremental() and 'dackie' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nuniswap_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n pool_id :: STRING AS pool_id,\n pool_name,\n fee,\n tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__uniswap_v4_pools') }}\n\n{% if is_incremental() and 'uniswap_v4' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nbitflux AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n token2,\n token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _call_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__bitflux_pools') }}\n\n{% if is_incremental() and 'bitflux' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nglyph_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n fee,\n tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__glyph_v4_pools') }}\n\n{% if is_incremental() and 'glyph_v4' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncamelot_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__camelot_v2_pools') }}\n\n{% if is_incremental() and 'camelot_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nzyberswap_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__zyberswap_v2_pools') }}\n\n{% if is_incremental() and 'zyberswap_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naerodrome AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__aerodrome_pools') }}\n\n{% if is_incremental() and 'aerodrome' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsuperchain_slipstream AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n tick_spacing,\n token0_address AS token0,\n token1_address AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__superchain_slipstream_pools') }}\n\n{% if is_incremental() and 'superchain_slipstream' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nall_pools AS (\n SELECT\n *\n FROM\n poolcreated_evt_v3\n UNION ALL\n SELECT\n *\n FROM\n paircreated_evt_v2\n UNION ALL\n SELECT\n *\n FROM\n dodo_v1\n UNION ALL\n SELECT\n *\n FROM\n dodo_v2\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v1_dynamic\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v1_static\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v2_elastic\n UNION ALL\n SELECT\n *\n FROM\n quickswap_v2\n UNION ALL\n SELECT\n *\n FROM\n quickswap_v4\n UNION ALL \n SELECT\n *\n FROM\n balancer\n UNION ALL\n SELECT\n *\n FROM\n curve\n UNION ALL\n SELECT\n *\n FROM\n pharaoh_v1\n UNION ALL\n SELECT\n *\n FROM\n sushiswap\n UNION ALL\n SELECT\n *\n FROM\n trader_joe_v2\n UNION ALL\n SELECT\n *\n FROM\n velodrome_v1\n UNION ALL\n SELECT\n *\n FROM\n velodrome_v2\n UNION ALL\n SELECT\n *\n FROM\n maverick\n UNION ALL\n SELECT\n *\n FROM\n maverick_v2\n UNION ALL\n SELECT\n *\n FROM\n pancakeswap_v2_ss\n UNION ALL\n SELECT\n *\n FROM\n pancakeswap_v3\n UNION ALL\n SELECT\n *\n FROM\n uniswap_v4\n UNION ALL\n SELECT\n *\n FROM\n bitflux\n UNION ALL\n SELECT\n *\n FROM\n glyph_v4\n UNION ALL\n SELECT\n *\n FROM\n camelot_v2\n UNION ALL\n SELECT\n *\n FROM\n zyberswap_v2\n UNION ALL\n SELECT\n *\n FROM\n aerodrome\n UNION ALL\n SELECT\n *\n FROM\n superchain_slipstream\n UNION ALL\n SELECT\n *\n FROM\n dackie\n),\ncomplete_lps AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n p.contract_address,\n pool_address,\n pool_id,\n CASE\n WHEN platform NOT IN ('uniswap-v4')\n AND pool_name IS NOT NULL THEN pool_name\n WHEN pool_name IS NULL\n AND platform IN (\n 'corex-v1',\n 'uniswap-v3',\n 'pharaoh-v2',\n 'kyberswap-v2',\n 'pancakeswap-v3',\n 'glyph-v4',\n 'sushiswap-v3',\n 'maverick-v2'\n ) THEN CONCAT(\n COALESCE(\n c0.token_symbol,\n CONCAT(SUBSTRING(token0, 1, 5), '...', SUBSTRING(token0, 39, 42))\n ),\n '-',\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token1, 1, 5), '...', SUBSTRING(token1, 39, 42))\n ),\n ' ',\n COALESCE(\n fee,\n 0\n ),\n ' ',\n COALESCE(\n tick_spacing,\n 0\n ),\n CASE\n WHEN platform = 'uniswap-v3' THEN ' UNI-V3 LP'\n WHEN platform = 'pancakeswap-v3' THEN ' PCS-V3 LP'\n WHEN platform = 'pharaoh-v2' THEN ''\n WHEN platform = 'kyberswap-v2' THEN ''\n WHEN platform = 'glyph-v4' THEN ' GLYPH-V4 LP'\n WHEN platform = 'sushiswap-v3' THEN 'SUSHI-V3 LP'\n WHEN platform = 'maverick-v2' THEN 'MPv2 LP'\n END\n )\n WHEN pool_name IS NULL\n AND platform IN (\n 'balancer-v1',\n 'curve-v1',\n 'bitflux-v1'\n ) THEN CONCAT(\n COALESCE(c0.token_symbol, SUBSTRING(token0, 1, 5) || '...' || SUBSTRING(token0, 39, 42)),\n CASE\n WHEN token1 IS NOT NULL THEN '-' || COALESCE(c1.token_symbol, SUBSTRING(token1, 1, 5) || '...' || SUBSTRING(token1, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token2 IS NOT NULL THEN '-' || COALESCE(c2.token_symbol, SUBSTRING(token2, 1, 5) || '...' || SUBSTRING(token2, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token3 IS NOT NULL THEN '-' || COALESCE(c3.token_symbol, SUBSTRING(token3, 1, 5) || '...' || SUBSTRING(token3, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token4 IS NOT NULL THEN '-' || COALESCE(c4.token_symbol, SUBSTRING(token4, 1, 5) || '...' || SUBSTRING(token4, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token5 IS NOT NULL THEN '-' || COALESCE(c5.token_symbol, SUBSTRING(token5, 1, 5) || '...' || SUBSTRING(token5, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token6 IS NOT NULL THEN '-' || COALESCE(c6.token_symbol, SUBSTRING(token6, 1, 5) || '...' || SUBSTRING(token6, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token7 IS NOT NULL THEN '-' || COALESCE(c7.token_symbol, SUBSTRING(token7, 1, 5) || '...' || SUBSTRING(token7, 39, 42))\n ELSE ''\n END\n )\n WHEN platform = 'uniswap-v4' THEN CONCAT(\n COALESCE(\n c0.token_symbol,\n CONCAT(SUBSTRING(token0, 1, 5), '...', SUBSTRING(token0, 39, 42))\n ),\n '-',\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token1, 1, 5), '...', SUBSTRING(token1, 39, 42))\n ),\n ' ',\n COALESCE(\n fee,\n 0\n ),\n ' ',\n COALESCE(\n tick_spacing,\n 0\n ),\n ' ',\n CASE\n WHEN REGEXP_LIKE(RIGHT(pool_name, 42), '0x[0-9a-fA-F]+$') THEN RIGHT(\n pool_name,\n 42\n )\n ELSE ''\n END,\n ' UNI-V4 LP'\n )\n ELSE CONCAT(\n COALESCE(\n c0.token_symbol,\n CONCAT(SUBSTRING(token0, 1, 5), '...', SUBSTRING(token0, 39, 42))\n ),\n '-',\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token1, 1, 5), '...', SUBSTRING(token1, 39, 42))\n )\n )\n END AS pool_name,\n fee,\n tick_spacing,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n OBJECT_CONSTRUCT(\n 'token0',\n token0,\n 'token1',\n token1,\n 'token2',\n token2,\n 'token3',\n token3,\n 'token4',\n token4,\n 'token5',\n token5,\n 'token6',\n token6,\n 'token7',\n token7\n ) AS tokens,\n OBJECT_CONSTRUCT(\n 'token0',\n c0.token_symbol,\n 'token1',\n c1.token_symbol,\n 'token2',\n c2.token_symbol,\n 'token3',\n c3.token_symbol,\n 'token4',\n c4.token_symbol,\n 'token5',\n c5.token_symbol,\n 'token6',\n c6.token_symbol,\n 'token7',\n c7.token_symbol\n ) AS symbols,\n OBJECT_CONSTRUCT(\n 'token0',\n c0.token_decimals,\n 'token1',\n c1.token_decimals,\n 'token2',\n c2.token_decimals,\n 'token3',\n c3.token_decimals,\n 'token4',\n c4.token_decimals,\n 'token5',\n c5.token_decimals,\n 'token6',\n c6.token_decimals,\n 'token7',\n c7.token_decimals\n ) AS decimals,\n platform,\n protocol,\n version,\n type,\n _id,\n p._inserted_timestamp\n FROM\n all_pools p\n LEFT JOIN contracts c0\n ON c0.contract_address = p.token0\n LEFT JOIN contracts c1\n ON c1.contract_address = p.token1\n LEFT JOIN contracts c2\n ON c2.contract_address = p.token2\n LEFT JOIN contracts c3\n ON c3.contract_address = p.token3\n LEFT JOIN contracts c4\n ON c4.contract_address = p.token4\n LEFT JOIN contracts c5\n ON c5.contract_address = p.token5\n LEFT JOIN contracts c6\n ON c6.contract_address = p.token6\n LEFT JOIN contracts c7\n ON c7.contract_address = p.token7\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nheal_model AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n t0.contract_address,\n pool_address,\n pool_id,\n CASE\n WHEN platform NOT IN ('uniswap-v4')\n AND pool_name IS NOT NULL THEN pool_name\n WHEN pool_name IS NULL\n AND platform IN (\n 'uniswap-v3',\n 'pharaoh-v2',\n 'kyberswap-v2',\n 'pancakeswap-v3',\n 'glyph-v4',\n 'sushiswap-v3',\n 'maverick-v2'\n ) THEN CONCAT(\n COALESCE(\n c0.token_symbol,\n CONCAT(SUBSTRING(token0, 1, 5), '...', SUBSTRING(token0, 39, 42))\n ),\n '-',\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token1, 1, 5), '...', SUBSTRING(token1, 39, 42))\n ),\n ' ',\n COALESCE(\n fee,\n 0\n ),\n ' ',\n COALESCE(\n tick_spacing,\n 0\n ),\n CASE\n WHEN platform = 'uniswap-v3' THEN ' UNI-V3 LP'\n WHEN platform = 'pancakeswap-v3' THEN ' PCS-V3 LP'\n WHEN platform = 'pharaoh-v2' THEN ''\n WHEN platform = 'kyberswap-v2' THEN ''\n WHEN platform = 'glyph-v4' THEN ' GLYPH-V4 LP'\n WHEN platform = 'sushiswap-v3' THEN 'SUSHI-V3 LP'\n WHEN platform = 'maverick-v2' THEN 'MPv2 LP'\n END\n )\n WHEN pool_name IS NULL\n AND platform IN (\n 'balancer-v1',\n 'curve-v1',\n 'bitflux-v1'\n ) THEN CONCAT(\n COALESCE(c0.token_symbol, SUBSTRING(token0, 1, 5) || '...' || SUBSTRING(token0, 39, 42)),\n CASE\n WHEN token1 IS NOT NULL THEN '-' || COALESCE(c1.token_symbol, SUBSTRING(token1, 1, 5) || '...' || SUBSTRING(token1, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token2 IS NOT NULL THEN '-' || COALESCE(c2.token_symbol, SUBSTRING(token2, 1, 5) || '...' || SUBSTRING(token2, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token3 IS NOT NULL THEN '-' || COALESCE(c3.token_symbol, SUBSTRING(token3, 1, 5) || '...' || SUBSTRING(token3, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token4 IS NOT NULL THEN '-' || COALESCE(c4.token_symbol, SUBSTRING(token4, 1, 5) || '...' || SUBSTRING(token4, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token5 IS NOT NULL THEN '-' || COALESCE(c5.token_symbol, SUBSTRING(token5, 1, 5) || '...' || SUBSTRING(token5, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token6 IS NOT NULL THEN '-' || COALESCE(c6.token_symbol, SUBSTRING(token6, 1, 5) || '...' || SUBSTRING(token6, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token7 IS NOT NULL THEN '-' || COALESCE(c7.token_symbol, SUBSTRING(token7, 1, 5) || '...' || SUBSTRING(token7, 39, 42))\n ELSE ''\n END\n )\n WHEN platform = 'uniswap-v4' THEN CONCAT(\n COALESCE(\n c0.token_symbol,\n CONCAT(SUBSTRING(token0, 1, 5), '...', SUBSTRING(token0, 39, 42))\n ),\n '-',\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token1, 1, 5), '...', SUBSTRING(token1, 39, 42))\n ),\n ' ',\n COALESCE(\n fee,\n 0\n ),\n ' ',\n COALESCE(\n tick_spacing,\n 0\n ),\n ' ',\n CASE\n WHEN REGEXP_LIKE(SUBSTR(pool_name, len(pool_name) - 51, 42), '0x[0-9a-fA-F]+$') THEN SUBSTR(pool_name, len(pool_name) - 51, 42)\n ELSE ''END,\n ' UNI-V4 LP'\n )\n ELSE CONCAT(\n COALESCE(\n c0.token_symbol,\n CONCAT(SUBSTRING(token0, 1, 5), '...', SUBSTRING(token0, 39, 42))\n ),\n '-',\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token1, 1, 5), '...', SUBSTRING(token1, 39, 42))\n )\n )\n END AS pool_name_heal,\n fee,\n tick_spacing,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n tokens,\n OBJECT_CONSTRUCT(\n 'token0',\n c0.token_symbol,\n 'token1',\n c1.token_symbol,\n 'token2',\n c2.token_symbol,\n 'token3',\n c3.token_symbol,\n 'token4',\n c4.token_symbol,\n 'token5',\n c5.token_symbol,\n 'token6',\n c6.token_symbol,\n 'token7',\n c7.token_symbol\n ) AS symbols_heal,\n OBJECT_CONSTRUCT(\n 'token0',\n c0.token_decimals,\n 'token1',\n c1.token_decimals,\n 'token2',\n c2.token_decimals,\n 'token3',\n c3.token_decimals,\n 'token4',\n c4.token_decimals,\n 'token5',\n c5.token_decimals,\n 'token6',\n c6.token_decimals,\n 'token7',\n c7.token_decimals\n ) AS decimals_heal,\n platform,\n protocol,\n version,\n type,\n _id,\n t0._inserted_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN contracts c0\n ON c0.contract_address = t0.token0\n LEFT JOIN contracts c1\n ON c1.contract_address = t0.token1\n LEFT JOIN contracts c2\n ON c2.contract_address = t0.token2\n LEFT JOIN contracts c3\n ON c3.contract_address = t0.token3\n LEFT JOIN contracts c4\n ON c4.contract_address = t0.token4\n LEFT JOIN contracts c5\n ON c5.contract_address = t0.token5\n LEFT JOIN contracts c6\n ON c6.contract_address = t0.token6\n LEFT JOIN contracts c7\n ON c7.contract_address = t0.token7\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t1.block_number,\n '-',\n t1.platform,\n '-',\n t1.version\n )\n FROM\n {{ this }}\n t1\n WHERE\n t1.decimals :token0 :: INT IS NULL\n AND t1._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n contracts C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_decimals IS NOT NULL\n AND C.contract_address = t1.tokens :token0 :: STRING)\n GROUP BY\n 1\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t2.block_number,\n '-',\n t2.platform,\n '-',\n t2.version\n )\n FROM\n {{ this }}\n t2\n WHERE\n t2.decimals :token1 :: INT IS NULL\n AND t2._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n contracts C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_decimals IS NOT NULL\n AND C.contract_address = t2.tokens :token1 :: STRING)\n GROUP BY\n 1\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t3.block_number,\n '-',\n t3.platform,\n '-',\n t3.version\n )\n FROM\n {{ this }}\n t3\n WHERE\n t3.decimals :token2 :: INT IS NULL\n AND t3._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n contracts C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_decimals IS NOT NULL\n AND C.contract_address = t3.tokens :token2 :: STRING)\n GROUP BY\n 1\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t4.block_number,\n '-',\n t4.platform,\n '-',\n t4.version\n )\n FROM\n {{ this }}\n t4\n WHERE\n t4.decimals :token3 :: INT IS NULL\n AND t4._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n contracts C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_decimals IS NOT NULL\n AND C.contract_address = t4.tokens :token3 :: STRING)\n GROUP BY\n 1\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t5.block_number,\n '-',\n t5.platform,\n '-',\n t5.version\n )\n FROM\n {{ this }}\n t5\n WHERE\n t5.decimals :token4 :: INT IS NULL\n AND t5._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n contracts C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_decimals IS NOT NULL\n AND C.contract_address = t5.tokens :token4 :: STRING)\n GROUP BY\n 1\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t6.block_number,\n '-',\n t6.platform,\n '-',\n t6.version\n )\n FROM\n {{ this }}\n t6\n WHERE\n t6.decimals :token5 :: INT IS NULL\n AND t6._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n contracts C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_decimals IS NOT NULL\n AND C.contract_address = t6.tokens :token5 :: STRING)\n GROUP BY\n 1\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t7.block_number,\n '-',\n t7.platform,\n '-',\n t7.version\n )\n FROM\n {{ this }}\n t7\n WHERE\n t7.decimals :token6 :: INT IS NULL\n AND t7._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n contracts C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_decimals IS NOT NULL\n AND C.contract_address = t7.tokens :token6 :: STRING)\n GROUP BY\n 1\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t8.block_number,\n '-',\n t8.platform,\n '-',\n t8.version\n )\n FROM\n {{ this }}\n t8\n WHERE\n t8.decimals :token7 :: INT IS NULL\n AND t8._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n contracts C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_decimals IS NOT NULL\n AND C.contract_address = t8.tokens :token7 :: STRING)\n GROUP BY\n 1\n )\n ),\n {% endif %}\n\n FINAL AS (\n SELECT\n *\n FROM\n complete_lps\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n pool_id,\n pool_name_heal AS pool_name,\n fee,\n tick_spacing,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n tokens,\n symbols_heal AS symbols,\n decimals_heal AS decimals,\n platform,\n protocol,\n version,\n type,\n _id,\n _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n platform,\n protocol,\n version,\n type,\n contract_address,\n pool_address,\n pool_id,\n pool_name,\n tokens,\n symbols,\n decimals,\n fee,\n tick_spacing,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n _id,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['pool_address', 'pool_id']\n ) }} AS complete_dex_liquidity_pools_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL", "language": "sql", "refs": [{"name": "core__dim_contracts", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "silver_dex__balancer_pools", "package": null, "version": null}, {"name": "silver_dex__curve_pools", "package": null, "version": null}, {"name": "silver_dex__dodo_v1_pools", "package": null, "version": null}, {"name": "silver_dex__dodo_v2_pools", "package": null, "version": null}, {"name": "silver_dex__kyberswap_v1_dynamic_pools", "package": null, "version": null}, {"name": "silver_dex__kyberswap_v1_static_pools", "package": null, "version": null}, {"name": "silver_dex__kyberswap_v2_elastic_pools", "package": null, "version": null}, {"name": "silver_dex__quickswap_v2_pools", "package": null, "version": null}, {"name": "silver_dex__quickswap_v4_pools", "package": null, "version": null}, {"name": "silver_dex__poolcreated_evt_v3_pools", "package": null, "version": null}, {"name": "silver_dex__paircreated_evt_v2_pools", "package": null, "version": null}, {"name": "silver_dex__pharaoh_v1_pools", "package": null, "version": null}, {"name": "silver_dex__sushiswap_pools", "package": null, "version": null}, {"name": "silver_dex__trader_joe_v2_pools", "package": null, "version": null}, {"name": "silver_dex__velodrome_v1_pools", "package": null, "version": null}, {"name": "silver_dex__velodrome_v2_pools", "package": null, "version": null}, {"name": "silver_dex__maverick_pools", "package": null, "version": null}, {"name": "silver_dex__maverick_v2_pools", "package": null, "version": null}, {"name": "silver_dex__pancakeswap_v2_ss_pools", "package": null, "version": null}, {"name": "silver_dex__pancakeswap_v3_pools", "package": null, "version": null}, {"name": "silver_dex__dackie_pools", "package": null, "version": null}, {"name": "silver_dex__uniswap_v4_pools", "package": null, "version": null}, {"name": "silver_dex__bitflux_pools", "package": null, "version": null}, {"name": "silver_dex__glyph_v4_pools", "package": null, "version": null}, {"name": "silver_dex__camelot_v2_pools", "package": null, "version": null}, {"name": "silver_dex__zyberswap_v2_pools", "package": null, "version": null}, {"name": "silver_dex__aerodrome_pools", "package": null, "version": null}, {"name": "silver_dex__superchain_slipstream_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.silver_dex__balancer_pools", "model.fsc_evm.silver_dex__curve_pools", "model.fsc_evm.silver_dex__dodo_v1_pools", "model.fsc_evm.silver_dex__dodo_v2_pools", "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pools", "model.fsc_evm.silver_dex__kyberswap_v1_static_pools", "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pools", "model.fsc_evm.silver_dex__quickswap_v2_pools", "model.fsc_evm.silver_dex__quickswap_v4_pools", "model.fsc_evm.silver_dex__poolcreated_evt_v3_pools", "model.fsc_evm.silver_dex__paircreated_evt_v2_pools", "model.fsc_evm.silver_dex__pharaoh_v1_pools", "model.fsc_evm.silver_dex__sushiswap_pools", "model.fsc_evm.silver_dex__trader_joe_v2_pools", "model.fsc_evm.silver_dex__velodrome_v1_pools", "model.fsc_evm.silver_dex__velodrome_v2_pools", "model.fsc_evm.silver_dex__maverick_pools", "model.fsc_evm.silver_dex__maverick_v2_pools", "model.fsc_evm.silver_dex__pancakeswap_v2_ss_pools", "model.fsc_evm.silver_dex__pancakeswap_v3_pools", "model.fsc_evm.silver_dex__dackie_pools", "model.fsc_evm.silver_dex__uniswap_v4_pools", "model.fsc_evm.silver_dex__bitflux_pools", "model.fsc_evm.silver_dex__glyph_v4_pools", "model.fsc_evm.silver_dex__camelot_v2_pools", "model.fsc_evm.silver_dex__zyberswap_v2_pools", "model.fsc_evm.silver_dex__aerodrome_pools", "model.fsc_evm.silver_dex__superchain_slipstream_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\",\n \"platform\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, contract_address, pool_address, pool_name, tokens, symbols)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\",\n \"heal\",\n \"complete\",\n \"lp\"\n ],\n \"unique_key\": [\n \"block_number\",\n \"platform\",\n \"version\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform','version'],\n cluster_by = ['block_timestamp::DATE','platform'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, contract_address, pool_address, pool_name, tokens, symbols)\",\n tags = ['silver_dex','defi','dex','curated','heal','complete','lp']\n) }}\n\nWITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n WHERE\n address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\nbalancer AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n _inserted_timestamp\n FROM\n {{ ref('silver_dex__balancer_pools') }}\n\n{% if is_incremental() and 'balancer' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncurve AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n deployer_address AS contract_address,\n pool_address,\n '0x' AS pool_id,\n pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n MAX(\n CASE\n WHEN token_num = 1 THEN token_address\n END\n ) AS token0,\n MAX(\n CASE\n WHEN token_num = 2 THEN token_address\n END\n ) AS token1,\n MAX(\n CASE\n WHEN token_num = 3 THEN token_address\n END\n ) AS token2,\n MAX(\n CASE\n WHEN token_num = 4 THEN token_address\n END\n ) AS token3,\n MAX(\n CASE\n WHEN token_num = 5 THEN token_address\n END\n ) AS token4,\n MAX(\n CASE\n WHEN token_num = 6 THEN token_address\n END\n ) AS token5,\n MAX(\n CASE\n WHEN token_num = 7 THEN token_address\n END\n ) AS token6,\n MAX(\n CASE\n WHEN token_num = 8 THEN token_address\n END\n ) AS token7,\n platform,\n protocol,\n version,\n type,\n _call_id AS _id,\n _inserted_timestamp\n FROM\n {{ ref('silver_dex__curve_pools') }}\n\n{% if is_incremental() and 'curve' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\nGROUP BY\n ALL\n),\ndodo_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n base_token AS token0,\n quote_token AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__dodo_v1_pools') }}\n\n{% if is_incremental() and 'dodo_v1' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ndodo_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n base_token AS token0,\n quote_token AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__dodo_v2_pools') }}\n WHERE\n token0 IS NOT NULL\n\n{% if is_incremental() and 'dodo_v2' not in vars.CURATED_FR_MODELS %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\n{% endif %}\n),\nkyberswap_v1_dynamic AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__kyberswap_v1_dynamic_pools') }}\n\n{% if is_incremental() and 'kyberswap_v1_dynamic' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nkyberswap_v1_static AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__kyberswap_v1_static_pools') }}\n\n{% if is_incremental() and 'kyberswap_v1_static' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nkyberswap_v2_elastic AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n swap_fee_units AS fee,\n tick_distance AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__kyberswap_v2_elastic_pools') }}\n\n{% if is_incremental() and 'kyberswap_v2_elastic' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nquickswap_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0_address AS token0,\n token1_address AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__quickswap_v2_pools') }}\n\n{% if is_incremental() and 'quickswap_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n\nquickswap_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0_address AS token0,\n token1_address AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__quickswap_v4_pools') }}\n\n{% if is_incremental() and 'quickswap_v4' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npoolcreated_evt_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n fee,\n tick_spacing,\n token0_address AS token0,\n token1_address AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__poolcreated_evt_v3_pools') }}\n\n{% if is_incremental() and 'poolcreated_evt_v3' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npaircreated_evt_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__paircreated_evt_v2_pools') }}\n\n{% if is_incremental() and 'paircreated_evt_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npharaoh_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__pharaoh_v1_pools') }}\n\n{% if is_incremental() and 'pharaoh_v1' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsushiswap AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__sushiswap_pools') }}\n\n{% if is_incremental() and 'sushiswap' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ntrader_joe_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n lb_pair AS pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n tokenX AS token0,\n tokenY AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__trader_joe_v2_pools') }}\n\n{% if is_incremental() and 'trader_joe_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nvelodrome_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__velodrome_v1_pools') }}\n\n{% if is_incremental() and 'velodrome_v1' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nvelodrome_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n factory_address AS contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__velodrome_v2_pools') }}\n\n{% if is_incremental() and 'velodrome_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmaverick AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n tokenA AS token0,\n tokenB AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__maverick_pools') }}\n\n{% if is_incremental() and 'maverick' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmaverick_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n tick_spacing,\n tokenA AS token0,\n tokenB AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__maverick_v2_pools') }}\n\n{% if is_incremental() and 'maverick_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npancakeswap_v2_ss AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n tokenA AS token0,\n tokenB AS token1,\n tokenC AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__pancakeswap_v2_ss_pools') }}\n\n{% if is_incremental() and 'pancakeswap_v2_ss' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\npancakeswap_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n fee,\n tick_spacing,\n token0_address AS token0,\n token1_address AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__pancakeswap_v3_pools') }}\n\n{% if is_incremental() and 'pancakeswap_v3' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ndackie AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n fee,\n tick_spacing,\n token0_address AS token0,\n token1_address AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__dackie_pools') }}\n\n{% if is_incremental() and 'dackie' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nuniswap_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n pool_id :: STRING AS pool_id,\n pool_name,\n fee,\n tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__uniswap_v4_pools') }}\n\n{% if is_incremental() and 'uniswap_v4' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nbitflux AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n token2,\n token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _call_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__bitflux_pools') }}\n\n{% if is_incremental() and 'bitflux' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nglyph_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n fee,\n tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__glyph_v4_pools') }}\n\n{% if is_incremental() and 'glyph_v4' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncamelot_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__camelot_v2_pools') }}\n\n{% if is_incremental() and 'camelot_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nzyberswap_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__zyberswap_v2_pools') }}\n\n{% if is_incremental() and 'zyberswap_v2' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naerodrome AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__aerodrome_pools') }}\n\n{% if is_incremental() and 'aerodrome' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsuperchain_slipstream AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n tick_spacing,\n token0_address AS token0,\n token1_address AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__superchain_slipstream_pools') }}\n\n{% if is_incremental() and 'superchain_slipstream' not in vars.CURATED_FR_MODELS %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nall_pools AS (\n SELECT\n *\n FROM\n poolcreated_evt_v3\n UNION ALL\n SELECT\n *\n FROM\n paircreated_evt_v2\n UNION ALL\n SELECT\n *\n FROM\n dodo_v1\n UNION ALL\n SELECT\n *\n FROM\n dodo_v2\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v1_dynamic\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v1_static\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v2_elastic\n UNION ALL\n SELECT\n *\n FROM\n quickswap_v2\n UNION ALL\n SELECT\n *\n FROM\n quickswap_v4\n UNION ALL \n SELECT\n *\n FROM\n balancer\n UNION ALL\n SELECT\n *\n FROM\n curve\n UNION ALL\n SELECT\n *\n FROM\n pharaoh_v1\n UNION ALL\n SELECT\n *\n FROM\n sushiswap\n UNION ALL\n SELECT\n *\n FROM\n trader_joe_v2\n UNION ALL\n SELECT\n *\n FROM\n velodrome_v1\n UNION ALL\n SELECT\n *\n FROM\n velodrome_v2\n UNION ALL\n SELECT\n *\n FROM\n maverick\n UNION ALL\n SELECT\n *\n FROM\n maverick_v2\n UNION ALL\n SELECT\n *\n FROM\n pancakeswap_v2_ss\n UNION ALL\n SELECT\n *\n FROM\n pancakeswap_v3\n UNION ALL\n SELECT\n *\n FROM\n uniswap_v4\n UNION ALL\n SELECT\n *\n FROM\n bitflux\n UNION ALL\n SELECT\n *\n FROM\n glyph_v4\n UNION ALL\n SELECT\n *\n FROM\n camelot_v2\n UNION ALL\n SELECT\n *\n FROM\n zyberswap_v2\n UNION ALL\n SELECT\n *\n FROM\n aerodrome\n UNION ALL\n SELECT\n *\n FROM\n superchain_slipstream\n UNION ALL\n SELECT\n *\n FROM\n dackie\n),\ncomplete_lps AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n p.contract_address,\n pool_address,\n pool_id,\n CASE\n WHEN platform NOT IN ('uniswap-v4')\n AND pool_name IS NOT NULL THEN pool_name\n WHEN pool_name IS NULL\n AND platform IN (\n 'corex-v1',\n 'uniswap-v3',\n 'pharaoh-v2',\n 'kyberswap-v2',\n 'pancakeswap-v3',\n 'glyph-v4',\n 'sushiswap-v3',\n 'maverick-v2'\n ) THEN CONCAT(\n COALESCE(\n c0.token_symbol,\n CONCAT(SUBSTRING(token0, 1, 5), '...', SUBSTRING(token0, 39, 42))\n ),\n '-',\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token1, 1, 5), '...', SUBSTRING(token1, 39, 42))\n ),\n ' ',\n COALESCE(\n fee,\n 0\n ),\n ' ',\n COALESCE(\n tick_spacing,\n 0\n ),\n CASE\n WHEN platform = 'uniswap-v3' THEN ' UNI-V3 LP'\n WHEN platform = 'pancakeswap-v3' THEN ' PCS-V3 LP'\n WHEN platform = 'pharaoh-v2' THEN ''\n WHEN platform = 'kyberswap-v2' THEN ''\n WHEN platform = 'glyph-v4' THEN ' GLYPH-V4 LP'\n WHEN platform = 'sushiswap-v3' THEN 'SUSHI-V3 LP'\n WHEN platform = 'maverick-v2' THEN 'MPv2 LP'\n END\n )\n WHEN pool_name IS NULL\n AND platform IN (\n 'balancer-v1',\n 'curve-v1',\n 'bitflux-v1'\n ) THEN CONCAT(\n COALESCE(c0.token_symbol, SUBSTRING(token0, 1, 5) || '...' || SUBSTRING(token0, 39, 42)),\n CASE\n WHEN token1 IS NOT NULL THEN '-' || COALESCE(c1.token_symbol, SUBSTRING(token1, 1, 5) || '...' || SUBSTRING(token1, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token2 IS NOT NULL THEN '-' || COALESCE(c2.token_symbol, SUBSTRING(token2, 1, 5) || '...' || SUBSTRING(token2, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token3 IS NOT NULL THEN '-' || COALESCE(c3.token_symbol, SUBSTRING(token3, 1, 5) || '...' || SUBSTRING(token3, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token4 IS NOT NULL THEN '-' || COALESCE(c4.token_symbol, SUBSTRING(token4, 1, 5) || '...' || SUBSTRING(token4, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token5 IS NOT NULL THEN '-' || COALESCE(c5.token_symbol, SUBSTRING(token5, 1, 5) || '...' || SUBSTRING(token5, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token6 IS NOT NULL THEN '-' || COALESCE(c6.token_symbol, SUBSTRING(token6, 1, 5) || '...' || SUBSTRING(token6, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token7 IS NOT NULL THEN '-' || COALESCE(c7.token_symbol, SUBSTRING(token7, 1, 5) || '...' || SUBSTRING(token7, 39, 42))\n ELSE ''\n END\n )\n WHEN platform = 'uniswap-v4' THEN CONCAT(\n COALESCE(\n c0.token_symbol,\n CONCAT(SUBSTRING(token0, 1, 5), '...', SUBSTRING(token0, 39, 42))\n ),\n '-',\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token1, 1, 5), '...', SUBSTRING(token1, 39, 42))\n ),\n ' ',\n COALESCE(\n fee,\n 0\n ),\n ' ',\n COALESCE(\n tick_spacing,\n 0\n ),\n ' ',\n CASE\n WHEN REGEXP_LIKE(RIGHT(pool_name, 42), '0x[0-9a-fA-F]+$') THEN RIGHT(\n pool_name,\n 42\n )\n ELSE ''\n END,\n ' UNI-V4 LP'\n )\n ELSE CONCAT(\n COALESCE(\n c0.token_symbol,\n CONCAT(SUBSTRING(token0, 1, 5), '...', SUBSTRING(token0, 39, 42))\n ),\n '-',\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token1, 1, 5), '...', SUBSTRING(token1, 39, 42))\n )\n )\n END AS pool_name,\n fee,\n tick_spacing,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n OBJECT_CONSTRUCT(\n 'token0',\n token0,\n 'token1',\n token1,\n 'token2',\n token2,\n 'token3',\n token3,\n 'token4',\n token4,\n 'token5',\n token5,\n 'token6',\n token6,\n 'token7',\n token7\n ) AS tokens,\n OBJECT_CONSTRUCT(\n 'token0',\n c0.token_symbol,\n 'token1',\n c1.token_symbol,\n 'token2',\n c2.token_symbol,\n 'token3',\n c3.token_symbol,\n 'token4',\n c4.token_symbol,\n 'token5',\n c5.token_symbol,\n 'token6',\n c6.token_symbol,\n 'token7',\n c7.token_symbol\n ) AS symbols,\n OBJECT_CONSTRUCT(\n 'token0',\n c0.token_decimals,\n 'token1',\n c1.token_decimals,\n 'token2',\n c2.token_decimals,\n 'token3',\n c3.token_decimals,\n 'token4',\n c4.token_decimals,\n 'token5',\n c5.token_decimals,\n 'token6',\n c6.token_decimals,\n 'token7',\n c7.token_decimals\n ) AS decimals,\n platform,\n protocol,\n version,\n type,\n _id,\n p._inserted_timestamp\n FROM\n all_pools p\n LEFT JOIN contracts c0\n ON c0.contract_address = p.token0\n LEFT JOIN contracts c1\n ON c1.contract_address = p.token1\n LEFT JOIN contracts c2\n ON c2.contract_address = p.token2\n LEFT JOIN contracts c3\n ON c3.contract_address = p.token3\n LEFT JOIN contracts c4\n ON c4.contract_address = p.token4\n LEFT JOIN contracts c5\n ON c5.contract_address = p.token5\n LEFT JOIN contracts c6\n ON c6.contract_address = p.token6\n LEFT JOIN contracts c7\n ON c7.contract_address = p.token7\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nheal_model AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n t0.contract_address,\n pool_address,\n pool_id,\n CASE\n WHEN platform NOT IN ('uniswap-v4')\n AND pool_name IS NOT NULL THEN pool_name\n WHEN pool_name IS NULL\n AND platform IN (\n 'uniswap-v3',\n 'pharaoh-v2',\n 'kyberswap-v2',\n 'pancakeswap-v3',\n 'glyph-v4',\n 'sushiswap-v3',\n 'maverick-v2'\n ) THEN CONCAT(\n COALESCE(\n c0.token_symbol,\n CONCAT(SUBSTRING(token0, 1, 5), '...', SUBSTRING(token0, 39, 42))\n ),\n '-',\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token1, 1, 5), '...', SUBSTRING(token1, 39, 42))\n ),\n ' ',\n COALESCE(\n fee,\n 0\n ),\n ' ',\n COALESCE(\n tick_spacing,\n 0\n ),\n CASE\n WHEN platform = 'uniswap-v3' THEN ' UNI-V3 LP'\n WHEN platform = 'pancakeswap-v3' THEN ' PCS-V3 LP'\n WHEN platform = 'pharaoh-v2' THEN ''\n WHEN platform = 'kyberswap-v2' THEN ''\n WHEN platform = 'glyph-v4' THEN ' GLYPH-V4 LP'\n WHEN platform = 'sushiswap-v3' THEN 'SUSHI-V3 LP'\n WHEN platform = 'maverick-v2' THEN 'MPv2 LP'\n END\n )\n WHEN pool_name IS NULL\n AND platform IN (\n 'balancer-v1',\n 'curve-v1',\n 'bitflux-v1'\n ) THEN CONCAT(\n COALESCE(c0.token_symbol, SUBSTRING(token0, 1, 5) || '...' || SUBSTRING(token0, 39, 42)),\n CASE\n WHEN token1 IS NOT NULL THEN '-' || COALESCE(c1.token_symbol, SUBSTRING(token1, 1, 5) || '...' || SUBSTRING(token1, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token2 IS NOT NULL THEN '-' || COALESCE(c2.token_symbol, SUBSTRING(token2, 1, 5) || '...' || SUBSTRING(token2, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token3 IS NOT NULL THEN '-' || COALESCE(c3.token_symbol, SUBSTRING(token3, 1, 5) || '...' || SUBSTRING(token3, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token4 IS NOT NULL THEN '-' || COALESCE(c4.token_symbol, SUBSTRING(token4, 1, 5) || '...' || SUBSTRING(token4, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token5 IS NOT NULL THEN '-' || COALESCE(c5.token_symbol, SUBSTRING(token5, 1, 5) || '...' || SUBSTRING(token5, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token6 IS NOT NULL THEN '-' || COALESCE(c6.token_symbol, SUBSTRING(token6, 1, 5) || '...' || SUBSTRING(token6, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token7 IS NOT NULL THEN '-' || COALESCE(c7.token_symbol, SUBSTRING(token7, 1, 5) || '...' || SUBSTRING(token7, 39, 42))\n ELSE ''\n END\n )\n WHEN platform = 'uniswap-v4' THEN CONCAT(\n COALESCE(\n c0.token_symbol,\n CONCAT(SUBSTRING(token0, 1, 5), '...', SUBSTRING(token0, 39, 42))\n ),\n '-',\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token1, 1, 5), '...', SUBSTRING(token1, 39, 42))\n ),\n ' ',\n COALESCE(\n fee,\n 0\n ),\n ' ',\n COALESCE(\n tick_spacing,\n 0\n ),\n ' ',\n CASE\n WHEN REGEXP_LIKE(SUBSTR(pool_name, len(pool_name) - 51, 42), '0x[0-9a-fA-F]+$') THEN SUBSTR(pool_name, len(pool_name) - 51, 42)\n ELSE ''END,\n ' UNI-V4 LP'\n )\n ELSE CONCAT(\n COALESCE(\n c0.token_symbol,\n CONCAT(SUBSTRING(token0, 1, 5), '...', SUBSTRING(token0, 39, 42))\n ),\n '-',\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token1, 1, 5), '...', SUBSTRING(token1, 39, 42))\n )\n )\n END AS pool_name_heal,\n fee,\n tick_spacing,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n tokens,\n OBJECT_CONSTRUCT(\n 'token0',\n c0.token_symbol,\n 'token1',\n c1.token_symbol,\n 'token2',\n c2.token_symbol,\n 'token3',\n c3.token_symbol,\n 'token4',\n c4.token_symbol,\n 'token5',\n c5.token_symbol,\n 'token6',\n c6.token_symbol,\n 'token7',\n c7.token_symbol\n ) AS symbols_heal,\n OBJECT_CONSTRUCT(\n 'token0',\n c0.token_decimals,\n 'token1',\n c1.token_decimals,\n 'token2',\n c2.token_decimals,\n 'token3',\n c3.token_decimals,\n 'token4',\n c4.token_decimals,\n 'token5',\n c5.token_decimals,\n 'token6',\n c6.token_decimals,\n 'token7',\n c7.token_decimals\n ) AS decimals_heal,\n platform,\n protocol,\n version,\n type,\n _id,\n t0._inserted_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN contracts c0\n ON c0.contract_address = t0.token0\n LEFT JOIN contracts c1\n ON c1.contract_address = t0.token1\n LEFT JOIN contracts c2\n ON c2.contract_address = t0.token2\n LEFT JOIN contracts c3\n ON c3.contract_address = t0.token3\n LEFT JOIN contracts c4\n ON c4.contract_address = t0.token4\n LEFT JOIN contracts c5\n ON c5.contract_address = t0.token5\n LEFT JOIN contracts c6\n ON c6.contract_address = t0.token6\n LEFT JOIN contracts c7\n ON c7.contract_address = t0.token7\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t1.block_number,\n '-',\n t1.platform,\n '-',\n t1.version\n )\n FROM\n {{ this }}\n t1\n WHERE\n t1.decimals :token0 :: INT IS NULL\n AND t1._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n contracts C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_decimals IS NOT NULL\n AND C.contract_address = t1.tokens :token0 :: STRING)\n GROUP BY\n 1\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t2.block_number,\n '-',\n t2.platform,\n '-',\n t2.version\n )\n FROM\n {{ this }}\n t2\n WHERE\n t2.decimals :token1 :: INT IS NULL\n AND t2._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n contracts C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_decimals IS NOT NULL\n AND C.contract_address = t2.tokens :token1 :: STRING)\n GROUP BY\n 1\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t3.block_number,\n '-',\n t3.platform,\n '-',\n t3.version\n )\n FROM\n {{ this }}\n t3\n WHERE\n t3.decimals :token2 :: INT IS NULL\n AND t3._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n contracts C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_decimals IS NOT NULL\n AND C.contract_address = t3.tokens :token2 :: STRING)\n GROUP BY\n 1\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t4.block_number,\n '-',\n t4.platform,\n '-',\n t4.version\n )\n FROM\n {{ this }}\n t4\n WHERE\n t4.decimals :token3 :: INT IS NULL\n AND t4._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n contracts C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_decimals IS NOT NULL\n AND C.contract_address = t4.tokens :token3 :: STRING)\n GROUP BY\n 1\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t5.block_number,\n '-',\n t5.platform,\n '-',\n t5.version\n )\n FROM\n {{ this }}\n t5\n WHERE\n t5.decimals :token4 :: INT IS NULL\n AND t5._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n contracts C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_decimals IS NOT NULL\n AND C.contract_address = t5.tokens :token4 :: STRING)\n GROUP BY\n 1\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t6.block_number,\n '-',\n t6.platform,\n '-',\n t6.version\n )\n FROM\n {{ this }}\n t6\n WHERE\n t6.decimals :token5 :: INT IS NULL\n AND t6._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n contracts C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_decimals IS NOT NULL\n AND C.contract_address = t6.tokens :token5 :: STRING)\n GROUP BY\n 1\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t7.block_number,\n '-',\n t7.platform,\n '-',\n t7.version\n )\n FROM\n {{ this }}\n t7\n WHERE\n t7.decimals :token6 :: INT IS NULL\n AND t7._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n contracts C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_decimals IS NOT NULL\n AND C.contract_address = t7.tokens :token6 :: STRING)\n GROUP BY\n 1\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform,\n '-',\n t0.version\n ) IN (\n SELECT\n CONCAT(\n t8.block_number,\n '-',\n t8.platform,\n '-',\n t8.version\n )\n FROM\n {{ this }}\n t8\n WHERE\n t8.decimals :token7 :: INT IS NULL\n AND t8._inserted_timestamp < (\n SELECT\n MAX(\n _inserted_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n contracts C\n WHERE\n C._inserted_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND C.token_decimals IS NOT NULL\n AND C.contract_address = t8.tokens :token7 :: STRING)\n GROUP BY\n 1\n )\n ),\n {% endif %}\n\n FINAL AS (\n SELECT\n *\n FROM\n complete_lps\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n pool_id,\n pool_name_heal AS pool_name,\n fee,\n tick_spacing,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n tokens,\n symbols_heal AS symbols,\n decimals_heal AS decimals,\n platform,\n protocol,\n version,\n type,\n _id,\n _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n platform,\n protocol,\n version,\n type,\n contract_address,\n pool_address,\n pool_id,\n pool_name,\n tokens,\n symbols,\n decimals,\n fee,\n tick_spacing,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n _id,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['pool_address', 'pool_id']\n ) }} AS complete_dex_liquidity_pools_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL\n*/\n\n\n\nWITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n 'POL' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n WHERE\n address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\nbalancer AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n _inserted_timestamp\n FROM\n polygon.silver_dex.balancer_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\ncurve AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n deployer_address AS contract_address,\n pool_address,\n '0x' AS pool_id,\n pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n MAX(\n CASE\n WHEN token_num = 1 THEN token_address\n END\n ) AS token0,\n MAX(\n CASE\n WHEN token_num = 2 THEN token_address\n END\n ) AS token1,\n MAX(\n CASE\n WHEN token_num = 3 THEN token_address\n END\n ) AS token2,\n MAX(\n CASE\n WHEN token_num = 4 THEN token_address\n END\n ) AS token3,\n MAX(\n CASE\n WHEN token_num = 5 THEN token_address\n END\n ) AS token4,\n MAX(\n CASE\n WHEN token_num = 6 THEN token_address\n END\n ) AS token5,\n MAX(\n CASE\n WHEN token_num = 7 THEN token_address\n END\n ) AS token6,\n MAX(\n CASE\n WHEN token_num = 8 THEN token_address\n END\n ) AS token7,\n platform,\n protocol,\n version,\n type,\n _call_id AS _id,\n _inserted_timestamp\n FROM\n polygon.silver_dex.curve_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\nGROUP BY\n ALL\n),\ndodo_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n base_token AS token0,\n quote_token AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.dodo_v1_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\ndodo_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n base_token AS token0,\n quote_token AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.dodo_v2_pools\n WHERE\n token0 IS NOT NULL\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n)\n\n),\nkyberswap_v1_dynamic AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.kyberswap_v1_dynamic_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\nkyberswap_v1_static AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.kyberswap_v1_static_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\nkyberswap_v2_elastic AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n swap_fee_units AS fee,\n tick_distance AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.kyberswap_v2_elastic_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\nquickswap_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0_address AS token0,\n token1_address AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.quickswap_v2_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\n\nquickswap_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0_address AS token0,\n token1_address AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.quickswap_v4_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\npoolcreated_evt_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n fee,\n tick_spacing,\n token0_address AS token0,\n token1_address AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.poolcreated_evt_v3_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\npaircreated_evt_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.paircreated_evt_v2_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\npharaoh_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.pharaoh_v1_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\nsushiswap AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.sushiswap_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\ntrader_joe_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n lb_pair AS pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n tokenX AS token0,\n tokenY AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.trader_joe_v2_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\nvelodrome_v1 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.velodrome_v1_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\nvelodrome_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n factory_address AS contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.velodrome_v2_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\nmaverick AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n tokenA AS token0,\n tokenB AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.maverick_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\nmaverick_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n tick_spacing,\n tokenA AS token0,\n tokenB AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.maverick_v2_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\npancakeswap_v2_ss AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n tokenA AS token0,\n tokenB AS token1,\n tokenC AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.pancakeswap_v2_ss_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\npancakeswap_v3 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n fee,\n tick_spacing,\n token0_address AS token0,\n token1_address AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.pancakeswap_v3_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\ndackie AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n fee,\n tick_spacing,\n token0_address AS token0,\n token1_address AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.dackie_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\nuniswap_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n pool_id :: STRING AS pool_id,\n pool_name,\n fee,\n tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.uniswap_v4_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\nbitflux AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n token2,\n token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _call_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.bitflux_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\nglyph_v4 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n fee,\n tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.glyph_v4_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\ncamelot_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.camelot_v2_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\nzyberswap_v2 AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.zyberswap_v2_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\naerodrome AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n NULL AS tick_spacing,\n token0,\n token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.aerodrome_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\nsuperchain_slipstream AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n '0x' AS pool_id,\n NULL AS pool_name,\n NULL AS fee,\n tick_spacing,\n token0_address AS token0,\n token1_address AS token1,\n NULL AS token2,\n NULL AS token3,\n NULL AS token4,\n NULL AS token5,\n NULL AS token6,\n NULL AS token7,\n platform,\n protocol,\n version,\n type,\n _log_id AS _id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.silver_dex.superchain_slipstream_pools\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_dex.complete_dex_liquidity_pools\n )\n\n),\nall_pools AS (\n SELECT\n *\n FROM\n poolcreated_evt_v3\n UNION ALL\n SELECT\n *\n FROM\n paircreated_evt_v2\n UNION ALL\n SELECT\n *\n FROM\n dodo_v1\n UNION ALL\n SELECT\n *\n FROM\n dodo_v2\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v1_dynamic\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v1_static\n UNION ALL\n SELECT\n *\n FROM\n kyberswap_v2_elastic\n UNION ALL\n SELECT\n *\n FROM\n quickswap_v2\n UNION ALL\n SELECT\n *\n FROM\n quickswap_v4\n UNION ALL \n SELECT\n *\n FROM\n balancer\n UNION ALL\n SELECT\n *\n FROM\n curve\n UNION ALL\n SELECT\n *\n FROM\n pharaoh_v1\n UNION ALL\n SELECT\n *\n FROM\n sushiswap\n UNION ALL\n SELECT\n *\n FROM\n trader_joe_v2\n UNION ALL\n SELECT\n *\n FROM\n velodrome_v1\n UNION ALL\n SELECT\n *\n FROM\n velodrome_v2\n UNION ALL\n SELECT\n *\n FROM\n maverick\n UNION ALL\n SELECT\n *\n FROM\n maverick_v2\n UNION ALL\n SELECT\n *\n FROM\n pancakeswap_v2_ss\n UNION ALL\n SELECT\n *\n FROM\n pancakeswap_v3\n UNION ALL\n SELECT\n *\n FROM\n uniswap_v4\n UNION ALL\n SELECT\n *\n FROM\n bitflux\n UNION ALL\n SELECT\n *\n FROM\n glyph_v4\n UNION ALL\n SELECT\n *\n FROM\n camelot_v2\n UNION ALL\n SELECT\n *\n FROM\n zyberswap_v2\n UNION ALL\n SELECT\n *\n FROM\n aerodrome\n UNION ALL\n SELECT\n *\n FROM\n superchain_slipstream\n UNION ALL\n SELECT\n *\n FROM\n dackie\n),\ncomplete_lps AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n p.contract_address,\n pool_address,\n pool_id,\n CASE\n WHEN platform NOT IN ('uniswap-v4')\n AND pool_name IS NOT NULL THEN pool_name\n WHEN pool_name IS NULL\n AND platform IN (\n 'corex-v1',\n 'uniswap-v3',\n 'pharaoh-v2',\n 'kyberswap-v2',\n 'pancakeswap-v3',\n 'glyph-v4',\n 'sushiswap-v3',\n 'maverick-v2'\n ) THEN CONCAT(\n COALESCE(\n c0.token_symbol,\n CONCAT(SUBSTRING(token0, 1, 5), '...', SUBSTRING(token0, 39, 42))\n ),\n '-',\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token1, 1, 5), '...', SUBSTRING(token1, 39, 42))\n ),\n ' ',\n COALESCE(\n fee,\n 0\n ),\n ' ',\n COALESCE(\n tick_spacing,\n 0\n ),\n CASE\n WHEN platform = 'uniswap-v3' THEN ' UNI-V3 LP'\n WHEN platform = 'pancakeswap-v3' THEN ' PCS-V3 LP'\n WHEN platform = 'pharaoh-v2' THEN ''\n WHEN platform = 'kyberswap-v2' THEN ''\n WHEN platform = 'glyph-v4' THEN ' GLYPH-V4 LP'\n WHEN platform = 'sushiswap-v3' THEN 'SUSHI-V3 LP'\n WHEN platform = 'maverick-v2' THEN 'MPv2 LP'\n END\n )\n WHEN pool_name IS NULL\n AND platform IN (\n 'balancer-v1',\n 'curve-v1',\n 'bitflux-v1'\n ) THEN CONCAT(\n COALESCE(c0.token_symbol, SUBSTRING(token0, 1, 5) || '...' || SUBSTRING(token0, 39, 42)),\n CASE\n WHEN token1 IS NOT NULL THEN '-' || COALESCE(c1.token_symbol, SUBSTRING(token1, 1, 5) || '...' || SUBSTRING(token1, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token2 IS NOT NULL THEN '-' || COALESCE(c2.token_symbol, SUBSTRING(token2, 1, 5) || '...' || SUBSTRING(token2, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token3 IS NOT NULL THEN '-' || COALESCE(c3.token_symbol, SUBSTRING(token3, 1, 5) || '...' || SUBSTRING(token3, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token4 IS NOT NULL THEN '-' || COALESCE(c4.token_symbol, SUBSTRING(token4, 1, 5) || '...' || SUBSTRING(token4, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token5 IS NOT NULL THEN '-' || COALESCE(c5.token_symbol, SUBSTRING(token5, 1, 5) || '...' || SUBSTRING(token5, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token6 IS NOT NULL THEN '-' || COALESCE(c6.token_symbol, SUBSTRING(token6, 1, 5) || '...' || SUBSTRING(token6, 39, 42))\n ELSE ''\n END,\n CASE\n WHEN token7 IS NOT NULL THEN '-' || COALESCE(c7.token_symbol, SUBSTRING(token7, 1, 5) || '...' || SUBSTRING(token7, 39, 42))\n ELSE ''\n END\n )\n WHEN platform = 'uniswap-v4' THEN CONCAT(\n COALESCE(\n c0.token_symbol,\n CONCAT(SUBSTRING(token0, 1, 5), '...', SUBSTRING(token0, 39, 42))\n ),\n '-',\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token1, 1, 5), '...', SUBSTRING(token1, 39, 42))\n ),\n ' ',\n COALESCE(\n fee,\n 0\n ),\n ' ',\n COALESCE(\n tick_spacing,\n 0\n ),\n ' ',\n CASE\n WHEN REGEXP_LIKE(RIGHT(pool_name, 42), '0x[0-9a-fA-F]+$') THEN RIGHT(\n pool_name,\n 42\n )\n ELSE ''\n END,\n ' UNI-V4 LP'\n )\n ELSE CONCAT(\n COALESCE(\n c0.token_symbol,\n CONCAT(SUBSTRING(token0, 1, 5), '...', SUBSTRING(token0, 39, 42))\n ),\n '-',\n COALESCE(\n c1.token_symbol,\n CONCAT(SUBSTRING(token1, 1, 5), '...', SUBSTRING(token1, 39, 42))\n )\n )\n END AS pool_name,\n fee,\n tick_spacing,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n OBJECT_CONSTRUCT(\n 'token0',\n token0,\n 'token1',\n token1,\n 'token2',\n token2,\n 'token3',\n token3,\n 'token4',\n token4,\n 'token5',\n token5,\n 'token6',\n token6,\n 'token7',\n token7\n ) AS tokens,\n OBJECT_CONSTRUCT(\n 'token0',\n c0.token_symbol,\n 'token1',\n c1.token_symbol,\n 'token2',\n c2.token_symbol,\n 'token3',\n c3.token_symbol,\n 'token4',\n c4.token_symbol,\n 'token5',\n c5.token_symbol,\n 'token6',\n c6.token_symbol,\n 'token7',\n c7.token_symbol\n ) AS symbols,\n OBJECT_CONSTRUCT(\n 'token0',\n c0.token_decimals,\n 'token1',\n c1.token_decimals,\n 'token2',\n c2.token_decimals,\n 'token3',\n c3.token_decimals,\n 'token4',\n c4.token_decimals,\n 'token5',\n c5.token_decimals,\n 'token6',\n c6.token_decimals,\n 'token7',\n c7.token_decimals\n ) AS decimals,\n platform,\n protocol,\n version,\n type,\n _id,\n p._inserted_timestamp\n FROM\n all_pools p\n LEFT JOIN contracts c0\n ON c0.contract_address = p.token0\n LEFT JOIN contracts c1\n ON c1.contract_address = p.token1\n LEFT JOIN contracts c2\n ON c2.contract_address = p.token2\n LEFT JOIN contracts c3\n ON c3.contract_address = p.token3\n LEFT JOIN contracts c4\n ON c4.contract_address = p.token4\n LEFT JOIN contracts c5\n ON c5.contract_address = p.token5\n LEFT JOIN contracts c6\n ON c6.contract_address = p.token6\n LEFT JOIN contracts c7\n ON c7.contract_address = p.token7\n),\n\n\n\n FINAL AS (\n SELECT\n *\n FROM\n complete_lps\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n platform,\n protocol,\n version,\n type,\n contract_address,\n pool_address,\n pool_id,\n pool_name,\n tokens,\n symbols,\n decimals,\n fee,\n tick_spacing,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n _id,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(pool_address as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(pool_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_dex_liquidity_pools_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n FINAL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__balancer_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__balancer_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/balancer/silver_dex__balancer_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/balancer/silver_dex__balancer_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__balancer_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "balancer", "silver_dex__balancer_swaps"], "alias": "balancer_swaps", "checksum": {"name": "sha256", "checksum": "2ebd7180ba0a96b29fc43f70a2efce8b9dd95b1c679ca07a815373f046175fd3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018366.044251, "relation_name": "polygon.silver_dex.balancer_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH pool_name AS (\n\n SELECT\n CASE\n WHEN p.pool_name IS NULL THEN p.pool_symbol\n ELSE p.pool_name\n END AS pool_name,\n pool_address,\n contract_address,\n platform,\n protocol,\n version,\n type\n FROM\n {{ ref('silver_dex__balancer_pools') }} p\n),\nswaps_base AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n 'Swap' AS event_name,\n event_index,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS amount_in_unadj,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS amount_out_unadj,\n topics [1] :: STRING AS pool_id,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token_in,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS token_out,\n SUBSTR(\n topics [1] :: STRING,\n 1,\n 42\n ) AS pool_address,\n origin_from_address AS sender,\n origin_from_address AS tx_to,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n contract_address IN (SELECT DISTINCT contract_address FROM pool_name)\n AND topics [0] :: STRING = '0x2170c741c41531aec20e7c107c24eecfdd15e69c9bb0a8dd37b1840b9e0b207b'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n pool_id,\n s.pool_address AS contract_address,\n pool_name,\n event_name,\n platform,\n protocol,\n version,\n type,\n _log_id,\n _inserted_timestamp\nFROM\n swaps_base s\n INNER JOIN pool_name pn\n ON pn.pool_address = s.pool_address", "language": "sql", "refs": [{"name": "silver_dex__balancer_pools", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_dex__balancer_pools", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/balancer/silver_dex__balancer_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH pool_name AS (\n\n SELECT\n CASE\n WHEN p.pool_name IS NULL THEN p.pool_symbol\n ELSE p.pool_name\n END AS pool_name,\n pool_address,\n contract_address,\n platform,\n protocol,\n version,\n type\n FROM\n {{ ref('silver_dex__balancer_pools') }} p\n),\nswaps_base AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n 'Swap' AS event_name,\n event_index,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS amount_in_unadj,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS amount_out_unadj,\n topics [1] :: STRING AS pool_id,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token_in,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS token_out,\n SUBSTR(\n topics [1] :: STRING,\n 1,\n 42\n ) AS pool_address,\n origin_from_address AS sender,\n origin_from_address AS tx_to,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n contract_address IN (SELECT DISTINCT contract_address FROM pool_name)\n AND topics [0] :: STRING = '0x2170c741c41531aec20e7c107c24eecfdd15e69c9bb0a8dd37b1840b9e0b207b'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n pool_id,\n s.pool_address AS contract_address,\n pool_name,\n event_name,\n platform,\n protocol,\n version,\n type,\n _log_id,\n _inserted_timestamp\nFROM\n swaps_base s\n INNER JOIN pool_name pn\n ON pn.pool_address = s.pool_address\n*/\n\n\n\nWITH pool_name AS (\n\n SELECT\n CASE\n WHEN p.pool_name IS NULL THEN p.pool_symbol\n ELSE p.pool_name\n END AS pool_name,\n pool_address,\n contract_address,\n platform,\n protocol,\n version,\n type\n FROM\n polygon.silver_dex.balancer_pools p\n),\nswaps_base AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n 'Swap' AS event_name,\n event_index,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS amount_in_unadj,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS amount_out_unadj,\n topics [1] :: STRING AS pool_id,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token_in,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS token_out,\n SUBSTR(\n topics [1] :: STRING,\n 1,\n 42\n ) AS pool_address,\n origin_from_address AS sender,\n origin_from_address AS tx_to,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n contract_address IN (SELECT DISTINCT contract_address FROM pool_name)\n AND topics [0] :: STRING = '0x2170c741c41531aec20e7c107c24eecfdd15e69c9bb0a8dd37b1840b9e0b207b'\n AND tx_succeeded\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.balancer_swaps\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n sender,\n tx_to,\n pool_id,\n s.pool_address AS contract_address,\n pool_name,\n event_name,\n platform,\n protocol,\n version,\n type,\n _log_id,\n _inserted_timestamp\nFROM\n swaps_base s\n INNER JOIN pool_name pn\n ON pn.pool_address = s.pool_address", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__balancer_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__balancer_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/balancer/silver_dex__balancer_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/balancer/silver_dex__balancer_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__balancer_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "balancer", "silver_dex__balancer_pool_actions"], "alias": "balancer_pool_actions", "checksum": {"name": "sha256", "checksum": "b775488f76cdd006fc43894fd10c8632f667d7eb92a8b9f82b51a5ac99a17692"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018366.4998643, "relation_name": "polygon.silver_dex.balancer_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n p.pool_address,\n decoded_log :poolId :: STRING AS pool_id,\n decoded_log :liquidityProvider :: STRING AS liquidity_provider,\n decoded_log :tokens AS tokens,\n tokens [0] :: STRING AS token0,\n tokens [1] :: STRING AS token1,\n tokens [2] :: STRING AS token2,\n tokens [3] :: STRING AS token3,\n tokens [4] :: STRING AS token4,\n tokens [5] :: STRING AS token5,\n tokens [6] :: STRING AS token6,\n tokens [7] :: STRING AS token7,\n decoded_log :deltas AS deltas,\n deltas [0] :: FLOAT AS amount0,\n deltas [1] :: FLOAT AS amount1,\n deltas [2] :: FLOAT AS amount2,\n deltas [3] :: FLOAT AS amount3,\n deltas [4] :: FLOAT AS amount4,\n deltas [5] :: FLOAT AS amount5,\n deltas [6] :: FLOAT AS amount6,\n deltas [7] :: FLOAT AS amount7,\n decoded_log :protocolFeeAmounts AS protocol_fee_amounts,\n protocol_fee_amounts [0] :: FLOAT AS protocol_fee_amount0,\n protocol_fee_amounts [1] :: FLOAT AS protocol_fee_amount1,\n protocol_fee_amounts [2] :: FLOAT AS protocol_fee_amount2,\n protocol_fee_amounts [3] :: FLOAT AS protocol_fee_amount3,\n protocol_fee_amounts [4] :: FLOAT AS protocol_fee_amount4,\n protocol_fee_amounts [5] :: FLOAT AS protocol_fee_amount5,\n protocol_fee_amounts [6] :: FLOAT AS protocol_fee_amount6,\n protocol_fee_amounts [7] :: FLOAT AS protocol_fee_amount7,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__balancer_pools')}} p\n ON l.contract_address = p.contract_address\n WHERE\n topic_0 = '0xe5ce249087ce04f05a957192435400fd97868dba0e6a4b4c049abf8af80dae78' --PoolBalanceChanged\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ndeposit AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Deposit' AS event_name,\n contract_address,\n pool_address,\n pool_id,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n liquidity_provider,\n liquidity_provider AS sender,\n pool_address AS receiver,\n ABS(amount0) AS amount0_unadj,\n ABS(amount1) AS amount1_unadj,\n ABS(amount2) AS amount2_unadj,\n ABS(amount3) AS amount3_unadj,\n ABS(amount4) AS amount4_unadj,\n ABS(amount5) AS amount5_unadj,\n ABS(amount6) AS amount6_unadj,\n ABS(amount7) AS amount7_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n amount0 >= 0\n OR amount1 >= 0\n OR amount2 >= 0\n OR amount3 >= 0\n OR amount4 >= 0\n OR amount5 >= 0\n OR amount6 >= 0\n OR amount7 >= 0\n),\nwithdraw AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Withdraw' AS event_name,\n contract_address,\n pool_address,\n pool_id,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n liquidity_provider,\n pool_address AS sender,\n liquidity_provider AS receiver,\n ABS(amount0) AS amount0_unadj,\n ABS(amount1) AS amount1_unadj,\n ABS(amount2) AS amount2_unadj,\n ABS(amount3) AS amount3_unadj,\n ABS(amount4) AS amount4_unadj,\n ABS(amount5) AS amount5_unadj,\n ABS(amount6) AS amount6_unadj,\n ABS(amount7) AS amount7_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n amount0 < 0\n OR amount1 < 0\n OR amount2 < 0\n OR amount3 < 0\n OR amount4 < 0\n OR amount5 < 0\n OR amount6 < 0\n OR amount7 < 0\n),\nall_actions AS (\n SELECT\n *\n FROM\n deposit\n UNION ALL\n SELECT\n *\n FROM\n withdraw\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n contract_address,\n pool_address,\n pool_id,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n amount2_unadj,\n amount3_unadj,\n amount4_unadj,\n amount5_unadj,\n amount6_unadj,\n amount7_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "silver_dex__balancer_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.silver_dex__balancer_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/balancer/silver_dex__balancer_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n p.pool_address,\n decoded_log :poolId :: STRING AS pool_id,\n decoded_log :liquidityProvider :: STRING AS liquidity_provider,\n decoded_log :tokens AS tokens,\n tokens [0] :: STRING AS token0,\n tokens [1] :: STRING AS token1,\n tokens [2] :: STRING AS token2,\n tokens [3] :: STRING AS token3,\n tokens [4] :: STRING AS token4,\n tokens [5] :: STRING AS token5,\n tokens [6] :: STRING AS token6,\n tokens [7] :: STRING AS token7,\n decoded_log :deltas AS deltas,\n deltas [0] :: FLOAT AS amount0,\n deltas [1] :: FLOAT AS amount1,\n deltas [2] :: FLOAT AS amount2,\n deltas [3] :: FLOAT AS amount3,\n deltas [4] :: FLOAT AS amount4,\n deltas [5] :: FLOAT AS amount5,\n deltas [6] :: FLOAT AS amount6,\n deltas [7] :: FLOAT AS amount7,\n decoded_log :protocolFeeAmounts AS protocol_fee_amounts,\n protocol_fee_amounts [0] :: FLOAT AS protocol_fee_amount0,\n protocol_fee_amounts [1] :: FLOAT AS protocol_fee_amount1,\n protocol_fee_amounts [2] :: FLOAT AS protocol_fee_amount2,\n protocol_fee_amounts [3] :: FLOAT AS protocol_fee_amount3,\n protocol_fee_amounts [4] :: FLOAT AS protocol_fee_amount4,\n protocol_fee_amounts [5] :: FLOAT AS protocol_fee_amount5,\n protocol_fee_amounts [6] :: FLOAT AS protocol_fee_amount6,\n protocol_fee_amounts [7] :: FLOAT AS protocol_fee_amount7,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__balancer_pools')}} p\n ON l.contract_address = p.contract_address\n WHERE\n topic_0 = '0xe5ce249087ce04f05a957192435400fd97868dba0e6a4b4c049abf8af80dae78' --PoolBalanceChanged\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ndeposit AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Deposit' AS event_name,\n contract_address,\n pool_address,\n pool_id,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n liquidity_provider,\n liquidity_provider AS sender,\n pool_address AS receiver,\n ABS(amount0) AS amount0_unadj,\n ABS(amount1) AS amount1_unadj,\n ABS(amount2) AS amount2_unadj,\n ABS(amount3) AS amount3_unadj,\n ABS(amount4) AS amount4_unadj,\n ABS(amount5) AS amount5_unadj,\n ABS(amount6) AS amount6_unadj,\n ABS(amount7) AS amount7_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n amount0 >= 0\n OR amount1 >= 0\n OR amount2 >= 0\n OR amount3 >= 0\n OR amount4 >= 0\n OR amount5 >= 0\n OR amount6 >= 0\n OR amount7 >= 0\n),\nwithdraw AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Withdraw' AS event_name,\n contract_address,\n pool_address,\n pool_id,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n liquidity_provider,\n pool_address AS sender,\n liquidity_provider AS receiver,\n ABS(amount0) AS amount0_unadj,\n ABS(amount1) AS amount1_unadj,\n ABS(amount2) AS amount2_unadj,\n ABS(amount3) AS amount3_unadj,\n ABS(amount4) AS amount4_unadj,\n ABS(amount5) AS amount5_unadj,\n ABS(amount6) AS amount6_unadj,\n ABS(amount7) AS amount7_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n amount0 < 0\n OR amount1 < 0\n OR amount2 < 0\n OR amount3 < 0\n OR amount4 < 0\n OR amount5 < 0\n OR amount6 < 0\n OR amount7 < 0\n),\nall_actions AS (\n SELECT\n *\n FROM\n deposit\n UNION ALL\n SELECT\n *\n FROM\n withdraw\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n contract_address,\n pool_address,\n pool_id,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n amount2_unadj,\n amount3_unadj,\n amount4_unadj,\n amount5_unadj,\n amount6_unadj,\n amount7_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n p.pool_address,\n decoded_log :poolId :: STRING AS pool_id,\n decoded_log :liquidityProvider :: STRING AS liquidity_provider,\n decoded_log :tokens AS tokens,\n tokens [0] :: STRING AS token0,\n tokens [1] :: STRING AS token1,\n tokens [2] :: STRING AS token2,\n tokens [3] :: STRING AS token3,\n tokens [4] :: STRING AS token4,\n tokens [5] :: STRING AS token5,\n tokens [6] :: STRING AS token6,\n tokens [7] :: STRING AS token7,\n decoded_log :deltas AS deltas,\n deltas [0] :: FLOAT AS amount0,\n deltas [1] :: FLOAT AS amount1,\n deltas [2] :: FLOAT AS amount2,\n deltas [3] :: FLOAT AS amount3,\n deltas [4] :: FLOAT AS amount4,\n deltas [5] :: FLOAT AS amount5,\n deltas [6] :: FLOAT AS amount6,\n deltas [7] :: FLOAT AS amount7,\n decoded_log :protocolFeeAmounts AS protocol_fee_amounts,\n protocol_fee_amounts [0] :: FLOAT AS protocol_fee_amount0,\n protocol_fee_amounts [1] :: FLOAT AS protocol_fee_amount1,\n protocol_fee_amounts [2] :: FLOAT AS protocol_fee_amount2,\n protocol_fee_amounts [3] :: FLOAT AS protocol_fee_amount3,\n protocol_fee_amounts [4] :: FLOAT AS protocol_fee_amount4,\n protocol_fee_amounts [5] :: FLOAT AS protocol_fee_amount5,\n protocol_fee_amounts [6] :: FLOAT AS protocol_fee_amount6,\n protocol_fee_amounts [7] :: FLOAT AS protocol_fee_amount7,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs\n l\n INNER JOIN polygon.silver_dex.balancer_pools p\n ON l.contract_address = p.contract_address\n WHERE\n topic_0 = '0xe5ce249087ce04f05a957192435400fd97868dba0e6a4b4c049abf8af80dae78' --PoolBalanceChanged\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.balancer_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ndeposit AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Deposit' AS event_name,\n contract_address,\n pool_address,\n pool_id,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n liquidity_provider,\n liquidity_provider AS sender,\n pool_address AS receiver,\n ABS(amount0) AS amount0_unadj,\n ABS(amount1) AS amount1_unadj,\n ABS(amount2) AS amount2_unadj,\n ABS(amount3) AS amount3_unadj,\n ABS(amount4) AS amount4_unadj,\n ABS(amount5) AS amount5_unadj,\n ABS(amount6) AS amount6_unadj,\n ABS(amount7) AS amount7_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n amount0 >= 0\n OR amount1 >= 0\n OR amount2 >= 0\n OR amount3 >= 0\n OR amount4 >= 0\n OR amount5 >= 0\n OR amount6 >= 0\n OR amount7 >= 0\n),\nwithdraw AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Withdraw' AS event_name,\n contract_address,\n pool_address,\n pool_id,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n liquidity_provider,\n pool_address AS sender,\n liquidity_provider AS receiver,\n ABS(amount0) AS amount0_unadj,\n ABS(amount1) AS amount1_unadj,\n ABS(amount2) AS amount2_unadj,\n ABS(amount3) AS amount3_unadj,\n ABS(amount4) AS amount4_unadj,\n ABS(amount5) AS amount5_unadj,\n ABS(amount6) AS amount6_unadj,\n ABS(amount7) AS amount7_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n amount0 < 0\n OR amount1 < 0\n OR amount2 < 0\n OR amount3 < 0\n OR amount4 < 0\n OR amount5 < 0\n OR amount6 < 0\n OR amount7 < 0\n),\nall_actions AS (\n SELECT\n *\n FROM\n deposit\n UNION ALL\n SELECT\n *\n FROM\n withdraw\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n contract_address,\n pool_address,\n pool_id,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n amount2_unadj,\n amount3_unadj,\n amount4_unadj,\n amount5_unadj,\n amount6_unadj,\n amount7_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__balancer_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__balancer_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/balancer/silver_dex__balancer_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/balancer/silver_dex__balancer_pools.sql", "unique_id": "model.fsc_evm.silver_dex__balancer_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "balancer", "silver_dex__balancer_pools"], "alias": "balancer_pools", "checksum": {"name": "sha256", "checksum": "35b7263c95f597fb19bd5a4fd1aec7768090906853178bd323e2457231a9a3cc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/dex/silver/balancer/silver_dex__balancer_pools.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "full_refresh": false, "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018441.4982016, "relation_name": "polygon.silver_dex.balancer_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol IN ('balancer', 'beethoven_x')\n),\npools_registered AS (\n\n SELECT\n block_number,\n block_timestamp,\n event_index,\n tx_hash,\n l.contract_address,\n topics [1] :: STRING AS pool_id,\n SUBSTR(\n topics [1] :: STRING,\n 1,\n 42\n ) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolRegistered' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp AS _inserted_timestamp,\n ROW_NUMBER() over (\n ORDER BY\n pool_address\n ) AS row_num\n FROM\n {{ ref('core__fact_event_logs') }} \n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x3c13bc30b8e878c53fd2a36b679409c073afd75950be43d8858768e956fbc20e' --PoolRegistered\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ntokens_registered AS (\n SELECT\n block_number,\n block_timestamp,\n event_index,\n tx_hash,\n l.contract_address,\n decoded_log :poolId :: STRING AS pool_id,\n decoded_log :tokens AS tokens,\n tokens [0] :: STRING AS token0,\n tokens [1] :: STRING AS token1,\n tokens [2] :: STRING AS token2,\n tokens [3] :: STRING AS token3,\n tokens [4] :: STRING AS token4,\n tokens [5] :: STRING AS token5,\n tokens [6] :: STRING AS token6,\n tokens [7] :: STRING AS token7,\n decoded_log :assetManagers AS asset_managers,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xf5847d3f2197b16cdcd2098ec95d0905cd1abdaf415f07bb7cef2bba8ac5dec4' --TokensRegistered\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n pools_registered\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nfunction_sigs AS (\n SELECT\n '0x06fdde03' AS function_sig,\n 'name' AS function_name\n UNION ALL\n SELECT\n '0x95d89b41' AS function_sig,\n 'symbol' AS function_name\n UNION ALL\n SELECT\n '0x313ce567' AS function_sig,\n 'decimals' AS function_name\n),\ninputs_pools AS (\n SELECT\n pool_address,\n block_number,\n function_sig\n FROM\n pools_registered\n JOIN function_sigs\n ON 1 = 1\n),\nbuild_rpc_requests AS (\n SELECT\n pool_address,\n block_number,\n function_sig,\n RPAD(\n function_sig,\n 64,\n '0'\n ) AS input,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{'to': pool_address, 'from': null, 'data': input}, utils.udf_int_to_hex(block_number)],\n concat_ws(\n '-',\n pool_address,\n input,\n block_number\n )\n ) AS rpc_request,\n row_num,\n CEIL(\n row_num / 250\n ) AS batch_no\n FROM\n inputs_pools\n LEFT JOIN pools_registered USING(pool_address)\n),\npool_token_reads AS ({% for item in range(20) %}\n (\nSELECT\n live.udf_api('POST','{{ vars.GLOBAL_NODE_URL }}',{}, batch_rpc_request, '{{ vars.GLOBAL_NODE_VAULT_PATH }}') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = {{ item }} + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) {% if not loop.last %}\n UNION ALL\n {% endif %}\n{% endfor %}),\nreads_adjusted AS (\n SELECT\n VALUE :id :: STRING AS read_id,\n VALUE :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n read_id_object [0] :: STRING AS pool_address,\n LEFT(\n read_id_object [1] :: STRING,\n 10\n ) AS function_sig,\n read_id_object [2] :: STRING AS block_number,\n _inserted_timestamp\n FROM\n pool_token_reads,\n LATERAL FLATTEN(\n input => read_output :data\n )\n),\npool_details AS (\n SELECT\n pool_address,\n function_sig,\n function_name,\n read_result,\n regexp_substr_all(SUBSTR(read_result, 3, len(read_result)), '.{64}') AS segmented_output,\n _inserted_timestamp\n FROM\n reads_adjusted\n LEFT JOIN function_sigs USING(function_sig)\n),\nFINAL AS (\n SELECT\n pool_address,\n MIN(\n CASE\n WHEN function_name = 'symbol' THEN utils.udf_hex_to_string(\n segmented_output [2] :: STRING\n )\n END\n ) AS pool_symbol,\n MIN(\n CASE\n WHEN function_name = 'name' THEN utils.udf_hex_to_string(\n segmented_output [2] :: STRING\n )\n END\n ) AS pool_name,\n MIN(\n CASE\n WHEN read_result :: STRING = '0x' THEN NULL\n ELSE utils.udf_hex_to_int(LEFT(read_result :: STRING, 66))\n END\n ) :: INTEGER AS pool_decimals,\n MAX(_inserted_timestamp) AS _inserted_timestamp\n FROM\n pool_details\n GROUP BY\n 1\n)\nSELECT\n p.block_number,\n p.block_timestamp,\n p.event_index,\n COALESCE(p.event_name,t.event_name) AS event_name,\n p.tx_hash,\n p.contract_address,\n p.pool_id,\n f.pool_address,\n f.pool_symbol,\n f.pool_name,\n f.pool_decimals,\n t.token0,\n t.token1,\n t.token2,\n t.token3,\n t.token4,\n t.token5,\n t.token6,\n t.token7,\n t.asset_managers,\n COALESCE(p.platform,t.platform) AS platform,\n COALESCE(p.protocol,t.protocol) AS protocol,\n COALESCE(p.version,t.version) AS version,\n COALESCE(p.type,t.type) AS type,\n p._log_id,\n f._inserted_timestamp\nFROM\n FINAL f\n LEFT JOIN pools_registered p\n ON f.pool_address = p.pool_address\n LEFT JOIN tokens_registered t\n ON p.pool_id = t.pool_id\nWHERE\n t.token0 IS NOT NULL qualify(ROW_NUMBER() over(PARTITION BY f.pool_address\nORDER BY\n f._inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__ez_decoded_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__ez_decoded_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/balancer/silver_dex__balancer_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol IN ('balancer', 'beethoven_x')\n),\npools_registered AS (\n\n SELECT\n block_number,\n block_timestamp,\n event_index,\n tx_hash,\n l.contract_address,\n topics [1] :: STRING AS pool_id,\n SUBSTR(\n topics [1] :: STRING,\n 1,\n 42\n ) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolRegistered' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp AS _inserted_timestamp,\n ROW_NUMBER() over (\n ORDER BY\n pool_address\n ) AS row_num\n FROM\n {{ ref('core__fact_event_logs') }} \n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x3c13bc30b8e878c53fd2a36b679409c073afd75950be43d8858768e956fbc20e' --PoolRegistered\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ntokens_registered AS (\n SELECT\n block_number,\n block_timestamp,\n event_index,\n tx_hash,\n l.contract_address,\n decoded_log :poolId :: STRING AS pool_id,\n decoded_log :tokens AS tokens,\n tokens [0] :: STRING AS token0,\n tokens [1] :: STRING AS token1,\n tokens [2] :: STRING AS token2,\n tokens [3] :: STRING AS token3,\n tokens [4] :: STRING AS token4,\n tokens [5] :: STRING AS token5,\n tokens [6] :: STRING AS token6,\n tokens [7] :: STRING AS token7,\n decoded_log :assetManagers AS asset_managers,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xf5847d3f2197b16cdcd2098ec95d0905cd1abdaf415f07bb7cef2bba8ac5dec4' --TokensRegistered\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n pools_registered\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nfunction_sigs AS (\n SELECT\n '0x06fdde03' AS function_sig,\n 'name' AS function_name\n UNION ALL\n SELECT\n '0x95d89b41' AS function_sig,\n 'symbol' AS function_name\n UNION ALL\n SELECT\n '0x313ce567' AS function_sig,\n 'decimals' AS function_name\n),\ninputs_pools AS (\n SELECT\n pool_address,\n block_number,\n function_sig\n FROM\n pools_registered\n JOIN function_sigs\n ON 1 = 1\n),\nbuild_rpc_requests AS (\n SELECT\n pool_address,\n block_number,\n function_sig,\n RPAD(\n function_sig,\n 64,\n '0'\n ) AS input,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{'to': pool_address, 'from': null, 'data': input}, utils.udf_int_to_hex(block_number)],\n concat_ws(\n '-',\n pool_address,\n input,\n block_number\n )\n ) AS rpc_request,\n row_num,\n CEIL(\n row_num / 250\n ) AS batch_no\n FROM\n inputs_pools\n LEFT JOIN pools_registered USING(pool_address)\n),\npool_token_reads AS ({% for item in range(20) %}\n (\nSELECT\n live.udf_api('POST','{{ vars.GLOBAL_NODE_URL }}',{}, batch_rpc_request, '{{ vars.GLOBAL_NODE_VAULT_PATH }}') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = {{ item }} + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) {% if not loop.last %}\n UNION ALL\n {% endif %}\n{% endfor %}),\nreads_adjusted AS (\n SELECT\n VALUE :id :: STRING AS read_id,\n VALUE :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n read_id_object [0] :: STRING AS pool_address,\n LEFT(\n read_id_object [1] :: STRING,\n 10\n ) AS function_sig,\n read_id_object [2] :: STRING AS block_number,\n _inserted_timestamp\n FROM\n pool_token_reads,\n LATERAL FLATTEN(\n input => read_output :data\n )\n),\npool_details AS (\n SELECT\n pool_address,\n function_sig,\n function_name,\n read_result,\n regexp_substr_all(SUBSTR(read_result, 3, len(read_result)), '.{64}') AS segmented_output,\n _inserted_timestamp\n FROM\n reads_adjusted\n LEFT JOIN function_sigs USING(function_sig)\n),\nFINAL AS (\n SELECT\n pool_address,\n MIN(\n CASE\n WHEN function_name = 'symbol' THEN utils.udf_hex_to_string(\n segmented_output [2] :: STRING\n )\n END\n ) AS pool_symbol,\n MIN(\n CASE\n WHEN function_name = 'name' THEN utils.udf_hex_to_string(\n segmented_output [2] :: STRING\n )\n END\n ) AS pool_name,\n MIN(\n CASE\n WHEN read_result :: STRING = '0x' THEN NULL\n ELSE utils.udf_hex_to_int(LEFT(read_result :: STRING, 66))\n END\n ) :: INTEGER AS pool_decimals,\n MAX(_inserted_timestamp) AS _inserted_timestamp\n FROM\n pool_details\n GROUP BY\n 1\n)\nSELECT\n p.block_number,\n p.block_timestamp,\n p.event_index,\n COALESCE(p.event_name,t.event_name) AS event_name,\n p.tx_hash,\n p.contract_address,\n p.pool_id,\n f.pool_address,\n f.pool_symbol,\n f.pool_name,\n f.pool_decimals,\n t.token0,\n t.token1,\n t.token2,\n t.token3,\n t.token4,\n t.token5,\n t.token6,\n t.token7,\n t.asset_managers,\n COALESCE(p.platform,t.platform) AS platform,\n COALESCE(p.protocol,t.protocol) AS protocol,\n COALESCE(p.version,t.version) AS version,\n COALESCE(p.type,t.type) AS type,\n p._log_id,\n f._inserted_timestamp\nFROM\n FINAL f\n LEFT JOIN pools_registered p\n ON f.pool_address = p.pool_address\n LEFT JOIN tokens_registered t\n ON p.pool_id = t.pool_id\nWHERE\n t.token0 IS NOT NULL qualify(ROW_NUMBER() over(PARTITION BY f.pool_address\nORDER BY\n f._inserted_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol IN ('balancer', 'beethoven_x')\n),\npools_registered AS (\n\n SELECT\n block_number,\n block_timestamp,\n event_index,\n tx_hash,\n l.contract_address,\n topics [1] :: STRING AS pool_id,\n SUBSTR(\n topics [1] :: STRING,\n 1,\n 42\n ) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolRegistered' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp AS _inserted_timestamp,\n ROW_NUMBER() over (\n ORDER BY\n pool_address\n ) AS row_num\n FROM\n polygon.core.fact_event_logs \n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x3c13bc30b8e878c53fd2a36b679409c073afd75950be43d8858768e956fbc20e' --PoolRegistered\n AND tx_succeeded\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.balancer_pools\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ntokens_registered AS (\n SELECT\n block_number,\n block_timestamp,\n event_index,\n tx_hash,\n l.contract_address,\n decoded_log :poolId :: STRING AS pool_id,\n decoded_log :tokens AS tokens,\n tokens [0] :: STRING AS token0,\n tokens [1] :: STRING AS token1,\n tokens [2] :: STRING AS token2,\n tokens [3] :: STRING AS token3,\n tokens [4] :: STRING AS token4,\n tokens [5] :: STRING AS token5,\n tokens [6] :: STRING AS token6,\n tokens [7] :: STRING AS token7,\n decoded_log :assetManagers AS asset_managers,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.ez_decoded_event_logs\n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xf5847d3f2197b16cdcd2098ec95d0905cd1abdaf415f07bb7cef2bba8ac5dec4' --TokensRegistered\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n pools_registered\n )\n AND tx_succeeded\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.balancer_pools\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nfunction_sigs AS (\n SELECT\n '0x06fdde03' AS function_sig,\n 'name' AS function_name\n UNION ALL\n SELECT\n '0x95d89b41' AS function_sig,\n 'symbol' AS function_name\n UNION ALL\n SELECT\n '0x313ce567' AS function_sig,\n 'decimals' AS function_name\n),\ninputs_pools AS (\n SELECT\n pool_address,\n block_number,\n function_sig\n FROM\n pools_registered\n JOIN function_sigs\n ON 1 = 1\n),\nbuild_rpc_requests AS (\n SELECT\n pool_address,\n block_number,\n function_sig,\n RPAD(\n function_sig,\n 64,\n '0'\n ) AS input,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{'to': pool_address, 'from': null, 'data': input}, utils.udf_int_to_hex(block_number)],\n concat_ws(\n '-',\n pool_address,\n input,\n block_number\n )\n ) AS rpc_request,\n row_num,\n CEIL(\n row_num / 250\n ) AS batch_no\n FROM\n inputs_pools\n LEFT JOIN pools_registered USING(pool_address)\n),\npool_token_reads AS (\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 0 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 1 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 2 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 3 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 4 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 5 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 6 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 7 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 8 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 9 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 10 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 11 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 12 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 13 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 14 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 15 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 16 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 17 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 18 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\nFROM\n build_rpc_requests\nWHERE\n batch_no = 19 + 1\n AND batch_no IN (\nSELECT\n DISTINCT batch_no\nFROM\n build_rpc_requests))) \n),\nreads_adjusted AS (\n SELECT\n VALUE :id :: STRING AS read_id,\n VALUE :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n read_id_object [0] :: STRING AS pool_address,\n LEFT(\n read_id_object [1] :: STRING,\n 10\n ) AS function_sig,\n read_id_object [2] :: STRING AS block_number,\n _inserted_timestamp\n FROM\n pool_token_reads,\n LATERAL FLATTEN(\n input => read_output :data\n )\n),\npool_details AS (\n SELECT\n pool_address,\n function_sig,\n function_name,\n read_result,\n regexp_substr_all(SUBSTR(read_result, 3, len(read_result)), '.{64}') AS segmented_output,\n _inserted_timestamp\n FROM\n reads_adjusted\n LEFT JOIN function_sigs USING(function_sig)\n),\nFINAL AS (\n SELECT\n pool_address,\n MIN(\n CASE\n WHEN function_name = 'symbol' THEN utils.udf_hex_to_string(\n segmented_output [2] :: STRING\n )\n END\n ) AS pool_symbol,\n MIN(\n CASE\n WHEN function_name = 'name' THEN utils.udf_hex_to_string(\n segmented_output [2] :: STRING\n )\n END\n ) AS pool_name,\n MIN(\n CASE\n WHEN read_result :: STRING = '0x' THEN NULL\n ELSE utils.udf_hex_to_int(LEFT(read_result :: STRING, 66))\n END\n ) :: INTEGER AS pool_decimals,\n MAX(_inserted_timestamp) AS _inserted_timestamp\n FROM\n pool_details\n GROUP BY\n 1\n)\nSELECT\n p.block_number,\n p.block_timestamp,\n p.event_index,\n COALESCE(p.event_name,t.event_name) AS event_name,\n p.tx_hash,\n p.contract_address,\n p.pool_id,\n f.pool_address,\n f.pool_symbol,\n f.pool_name,\n f.pool_decimals,\n t.token0,\n t.token1,\n t.token2,\n t.token3,\n t.token4,\n t.token5,\n t.token6,\n t.token7,\n t.asset_managers,\n COALESCE(p.platform,t.platform) AS platform,\n COALESCE(p.protocol,t.protocol) AS protocol,\n COALESCE(p.version,t.version) AS version,\n COALESCE(p.type,t.type) AS type,\n p._log_id,\n f._inserted_timestamp\nFROM\n FINAL f\n LEFT JOIN pools_registered p\n ON f.pool_address = p.pool_address\n LEFT JOIN tokens_registered t\n ON p.pool_id = t.pool_id\nWHERE\n t.token0 IS NOT NULL qualify(ROW_NUMBER() over(PARTITION BY f.pool_address\nORDER BY\n f._inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__hashflow_v3_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__hashflow_v3_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/hashflow/silver_dex__hashflow_v3_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/hashflow/silver_dex__hashflow_v3_pools.sql", "unique_id": "model.fsc_evm.silver_dex__hashflow_v3_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "hashflow", "silver_dex__hashflow_v3_pools"], "alias": "hashflow_v3_pools", "checksum": {"name": "sha256", "checksum": "d19075aa7e3ea28dddde7aa9fd21c888d8f8f0d885fad50482897522db0034bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018367.136922, "relation_name": "polygon.silver_dex.hashflow_v3_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"pool_address\",\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'hashflow'\n AND version = 'v3'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n origin_from_address AS deployer_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'CreatePool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xdbd2a1ea6808362e6adbec4db4969cbc11e3b0b28fb6c74cb342defaaf1daada' --CreatePool\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n deployer_address,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/hashflow/silver_dex__hashflow_v3_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"pool_address\",\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'hashflow'\n AND version = 'v3'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n origin_from_address AS deployer_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'CreatePool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xdbd2a1ea6808362e6adbec4db4969cbc11e3b0b28fb6c74cb342defaaf1daada' --CreatePool\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n deployer_address,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'hashflow'\n AND version = 'v3'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n origin_from_address AS deployer_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'CreatePool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xdbd2a1ea6808362e6adbec4db4969cbc11e3b0b28fb6c74cb342defaaf1daada' --CreatePool\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.hashflow_v3_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n deployer_address,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__hashflow_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__hashflow_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/hashflow/silver_dex__hashflow_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/hashflow/silver_dex__hashflow_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__hashflow_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "hashflow", "silver_dex__hashflow_swaps"], "alias": "hashflow_swaps", "checksum": {"name": "sha256", "checksum": "3c5d9cdb5eb9fdea860dba7c95a6643d26b6045bcb64c60b369c2c8ba9bae249"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018367.4571247, "relation_name": "polygon.silver_dex.hashflow_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH router_swaps_base AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS account_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [3] :: STRING,\n 25,\n 40\n )\n ) AS tokenIn,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [4] :: STRING,\n 25,\n 40\n )\n ) AS tokenOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [5] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [6] :: STRING\n )\n ) AS amountOut,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__hashflow_pools') }}\n p\n ON l.contract_address = p.pool_address\n WHERE\n l.topics [0] :: STRING = '0xb709ddcc6550418e9b89df1f4938071eeaa3f6376309904c77e15d46b16066f5' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nswaps_base AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS account_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [2] :: STRING,\n 25,\n 40\n )\n ) AS tokenIn,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [3] :: STRING,\n 25,\n 40\n )\n ) AS tokenOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [5] :: STRING\n )\n ) AS amountOut,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__hashflow_pools') }}\n p\n ON l.contract_address = p.pool_address\n WHERE\n l.topics [0] :: STRING = '0x8cf3dec1929508e5677d7db003124e74802bfba7250a572205a9986d86ca9f1e' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n origin_from_address AS sender,\n account_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\n FROM\n router_swaps_base\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n origin_from_address AS sender,\n account_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\n FROM\n swaps_base\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n sender,\n tx_to,\n CASE\n WHEN token_in = '0x0000000000000000000000000000000000000000' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE token_in\n END AS token_in,\n CASE\n WHEN token_out = '0x0000000000000000000000000000000000000000' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE token_out\n END AS token_out,\n amount_in_unadj,\n amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n FINAL", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__hashflow_pools", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__hashflow_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__hashflow_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/hashflow/silver_dex__hashflow_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH router_swaps_base AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS account_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [3] :: STRING,\n 25,\n 40\n )\n ) AS tokenIn,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [4] :: STRING,\n 25,\n 40\n )\n ) AS tokenOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [5] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [6] :: STRING\n )\n ) AS amountOut,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__hashflow_pools') }}\n p\n ON l.contract_address = p.pool_address\n WHERE\n l.topics [0] :: STRING = '0xb709ddcc6550418e9b89df1f4938071eeaa3f6376309904c77e15d46b16066f5' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nswaps_base AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS account_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [2] :: STRING,\n 25,\n 40\n )\n ) AS tokenIn,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [3] :: STRING,\n 25,\n 40\n )\n ) AS tokenOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [5] :: STRING\n )\n ) AS amountOut,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__hashflow_pools') }}\n p\n ON l.contract_address = p.pool_address\n WHERE\n l.topics [0] :: STRING = '0x8cf3dec1929508e5677d7db003124e74802bfba7250a572205a9986d86ca9f1e' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n origin_from_address AS sender,\n account_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\n FROM\n router_swaps_base\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n origin_from_address AS sender,\n account_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\n FROM\n swaps_base\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n sender,\n tx_to,\n CASE\n WHEN token_in = '0x0000000000000000000000000000000000000000' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE token_in\n END AS token_in,\n CASE\n WHEN token_out = '0x0000000000000000000000000000000000000000' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE token_out\n END AS token_out,\n amount_in_unadj,\n amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n FINAL\n*/\n\n\n\nWITH router_swaps_base AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS account_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [3] :: STRING,\n 25,\n 40\n )\n ) AS tokenIn,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [4] :: STRING,\n 25,\n 40\n )\n ) AS tokenOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [5] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [6] :: STRING\n )\n ) AS amountOut,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.hashflow_pools\n p\n ON l.contract_address = p.pool_address\n WHERE\n l.topics [0] :: STRING = '0xb709ddcc6550418e9b89df1f4938071eeaa3f6376309904c77e15d46b16066f5' --Swap\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.hashflow_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nswaps_base AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS account_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [2] :: STRING,\n 25,\n 40\n )\n ) AS tokenIn,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [3] :: STRING,\n 25,\n 40\n )\n ) AS tokenOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [5] :: STRING\n )\n ) AS amountOut,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.hashflow_pools\n p\n ON l.contract_address = p.pool_address\n WHERE\n l.topics [0] :: STRING = '0x8cf3dec1929508e5677d7db003124e74802bfba7250a572205a9986d86ca9f1e' --Swap\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.hashflow_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n origin_from_address AS sender,\n account_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\n FROM\n router_swaps_base\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n origin_from_address AS sender,\n account_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\n FROM\n swaps_base\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n sender,\n tx_to,\n CASE\n WHEN token_in = '0x0000000000000000000000000000000000000000' THEN '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ELSE token_in\n END AS token_in,\n CASE\n WHEN token_out = '0x0000000000000000000000000000000000000000' THEN '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ELSE token_out\n END AS token_out,\n amount_in_unadj,\n amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n FINAL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__hashflow_v3_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__hashflow_v3_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/hashflow/silver_dex__hashflow_v3_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/hashflow/silver_dex__hashflow_v3_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__hashflow_v3_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "hashflow", "silver_dex__hashflow_v3_swaps"], "alias": "hashflow_v3_swaps", "checksum": {"name": "sha256", "checksum": "150fb8aa8ec584b1ccdd108e090447a54cee7afdd1dff9c1bf62cec90c87b6f9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018367.7794657, "relation_name": "polygon.silver_dex.hashflow_v3_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.event_index,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS trader_address,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS effective_trader_address,\n CONCAT(\n '0x',\n segmented_data [2] :: STRING\n ) AS txid,\n CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) AS tokenIn,\n CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40)) AS tokenOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [6] :: STRING\n )\n ) AS amountOut,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Trade' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__hashflow_v3_pools') }}\n p\n ON l.contract_address = p.pool_address\n WHERE\n l.topics [0] :: STRING = '0x34f57786fb01682fb4eec88d340387ef01a168fe345ea5b76f709d4e560c10eb' --Trade\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n effective_trader_address AS sender,\n trader_address AS tx_to,\n txid,\n CASE\n WHEN tokenIn = '0x0000000000000000000000000000000000000000' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE tokenIn\n END AS token_in,\n CASE\n WHEN tokenOut = '0x0000000000000000000000000000000000000000' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE tokenOut\n END AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__hashflow_v3_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__hashflow_v3_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/hashflow/silver_dex__hashflow_v3_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.event_index,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS trader_address,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS effective_trader_address,\n CONCAT(\n '0x',\n segmented_data [2] :: STRING\n ) AS txid,\n CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) AS tokenIn,\n CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40)) AS tokenOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [6] :: STRING\n )\n ) AS amountOut,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Trade' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__hashflow_v3_pools') }}\n p\n ON l.contract_address = p.pool_address\n WHERE\n l.topics [0] :: STRING = '0x34f57786fb01682fb4eec88d340387ef01a168fe345ea5b76f709d4e560c10eb' --Trade\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n effective_trader_address AS sender,\n trader_address AS tx_to,\n txid,\n CASE\n WHEN tokenIn = '0x0000000000000000000000000000000000000000' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE tokenIn\n END AS token_in,\n CASE\n WHEN tokenOut = '0x0000000000000000000000000000000000000000' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE tokenOut\n END AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\n*/\n\n\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.event_index,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS trader_address,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS effective_trader_address,\n CONCAT(\n '0x',\n segmented_data [2] :: STRING\n ) AS txid,\n CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) AS tokenIn,\n CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40)) AS tokenOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [6] :: STRING\n )\n ) AS amountOut,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Trade' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.hashflow_v3_pools\n p\n ON l.contract_address = p.pool_address\n WHERE\n l.topics [0] :: STRING = '0x34f57786fb01682fb4eec88d340387ef01a168fe345ea5b76f709d4e560c10eb' --Trade\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.hashflow_v3_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n effective_trader_address AS sender,\n trader_address AS tx_to,\n txid,\n CASE\n WHEN tokenIn = '0x0000000000000000000000000000000000000000' THEN '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ELSE tokenIn\n END AS token_in,\n CASE\n WHEN tokenOut = '0x0000000000000000000000000000000000000000' THEN '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ELSE tokenOut\n END AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__hashflow_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__hashflow_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/hashflow/silver_dex__hashflow_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/hashflow/silver_dex__hashflow_pools.sql", "unique_id": "model.fsc_evm.silver_dex__hashflow_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "hashflow", "silver_dex__hashflow_pools"], "alias": "hashflow_pools", "checksum": {"name": "sha256", "checksum": "d39eb92fcfe2bea4a3f0a8b82074185622127ce852bdae95ca2bd902c2c947c1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018368.0986502, "relation_name": "polygon.silver_dex.hashflow_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'hashflow'\n AND version = 'v1'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address AS deployer_address,\n to_address AS contract_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }}\n t\n INNER JOIN contract_mapping m\n ON t.from_address = m.contract_address\n WHERE\n t.TYPE ILIKE 'create%'\n AND tx_succeeded\n AND trace_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n\nqualify(ROW_NUMBER() over(PARTITION BY to_address\nORDER BY\n block_timestamp ASC)) = 1\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n deployer_address,\n contract_address AS pool_address,\n platform,\n protocol,\n version,\n type,\n _call_id,\n modified_timestamp\nFROM\n pools", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/hashflow/silver_dex__hashflow_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'hashflow'\n AND version = 'v1'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address AS deployer_address,\n to_address AS contract_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }}\n t\n INNER JOIN contract_mapping m\n ON t.from_address = m.contract_address\n WHERE\n t.TYPE ILIKE 'create%'\n AND tx_succeeded\n AND trace_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n\nqualify(ROW_NUMBER() over(PARTITION BY to_address\nORDER BY\n block_timestamp ASC)) = 1\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n deployer_address,\n contract_address AS pool_address,\n platform,\n protocol,\n version,\n type,\n _call_id,\n modified_timestamp\nFROM\n pools\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'hashflow'\n AND version = 'v1'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address AS deployer_address,\n to_address AS contract_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n polygon.core.fact_traces\n t\n INNER JOIN contract_mapping m\n ON t.from_address = m.contract_address\n WHERE\n t.TYPE ILIKE 'create%'\n AND tx_succeeded\n AND trace_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.hashflow_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\nqualify(ROW_NUMBER() over(PARTITION BY to_address\nORDER BY\n block_timestamp ASC)) = 1\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n deployer_address,\n contract_address AS pool_address,\n platform,\n protocol,\n version,\n type,\n _call_id,\n modified_timestamp\nFROM\n pools", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__trader_joe_v2_1_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__trader_joe_v2_1_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/trader_joe/silver_dex__trader_joe_v2_1_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/trader_joe/silver_dex__trader_joe_v2_1_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__trader_joe_v2_1_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "trader_joe", "silver_dex__trader_joe_v2_1_swaps"], "alias": "trader_joe_v2_1_swaps", "checksum": {"name": "sha256", "checksum": "be17d339da71db9a15980e68bc8388b4da8d5628f65c260a71787b169c7ef361"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018368.4197416, "relation_name": "polygon.silver_dex.trader_joe_v2_1_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n l.topics,\n l.data,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS id,\n l_segmented_data [1] :: STRING AS amountsIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(amountsIn, 0, 32))\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(amountsIn, 33, 32))\n ) AS amount1In,\n l_segmented_data [2] :: STRING AS amountsOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(amountsOut, 0, 32))\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(amountsOut, 33, 32))\n ) AS amount1Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS volatilityAccumulated,\n l_segmented_data [4] :: STRING AS totalFees,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(totalFees, 0, 32))\n ) AS fee0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(totalFees, 33, 32))\n ) AS fee1,\n l_segmented_data [5] :: STRING AS protocolFees,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(protocolFees, 0, 32))\n ) AS protocolFee0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(protocolFees, 33, 32))\n ) AS protocolFee1,\n tokenX,\n tokenY,\n p.protocol,\n p.version,\n p.type,\n p.platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__trader_joe_v2_pools') }} p\n ON p.lb_pair = l.contract_address\n WHERE\n topics [0] :: STRING = '0xad7d6f97abf51ce18e17a38f4d70e975be9c0708474987bb3e26ad21bd93ca70' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n to_address AS tx_to,\n id,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n volatilityAccumulated AS volatility_accumulated,\n fee0,\n fee1,\n protocolFee0 AS protocol_fee0,\n protocolFee1 AS protocol_fee1,\n tokenX,\n tokenY,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN tokenX\n WHEN amount0In <> 0 THEN tokenY\n WHEN amount1In <> 0 THEN tokenX\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN tokenY\n WHEN amount1Out <> 0 THEN tokenX\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE token_in <> token_out", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__trader_joe_v2_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__trader_joe_v2_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/trader_joe/silver_dex__trader_joe_v2_1_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n l.topics,\n l.data,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS id,\n l_segmented_data [1] :: STRING AS amountsIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(amountsIn, 0, 32))\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(amountsIn, 33, 32))\n ) AS amount1In,\n l_segmented_data [2] :: STRING AS amountsOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(amountsOut, 0, 32))\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(amountsOut, 33, 32))\n ) AS amount1Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS volatilityAccumulated,\n l_segmented_data [4] :: STRING AS totalFees,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(totalFees, 0, 32))\n ) AS fee0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(totalFees, 33, 32))\n ) AS fee1,\n l_segmented_data [5] :: STRING AS protocolFees,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(protocolFees, 0, 32))\n ) AS protocolFee0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(protocolFees, 33, 32))\n ) AS protocolFee1,\n tokenX,\n tokenY,\n p.protocol,\n p.version,\n p.type,\n p.platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__trader_joe_v2_pools') }} p\n ON p.lb_pair = l.contract_address\n WHERE\n topics [0] :: STRING = '0xad7d6f97abf51ce18e17a38f4d70e975be9c0708474987bb3e26ad21bd93ca70' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n to_address AS tx_to,\n id,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n volatilityAccumulated AS volatility_accumulated,\n fee0,\n fee1,\n protocolFee0 AS protocol_fee0,\n protocolFee1 AS protocol_fee1,\n tokenX,\n tokenY,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN tokenX\n WHEN amount0In <> 0 THEN tokenY\n WHEN amount1In <> 0 THEN tokenX\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN tokenY\n WHEN amount1Out <> 0 THEN tokenX\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE token_in <> token_out\n*/\n\n\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n l.topics,\n l.data,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS id,\n l_segmented_data [1] :: STRING AS amountsIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(amountsIn, 0, 32))\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(amountsIn, 33, 32))\n ) AS amount1In,\n l_segmented_data [2] :: STRING AS amountsOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(amountsOut, 0, 32))\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(amountsOut, 33, 32))\n ) AS amount1Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS volatilityAccumulated,\n l_segmented_data [4] :: STRING AS totalFees,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(totalFees, 0, 32))\n ) AS fee0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(totalFees, 33, 32))\n ) AS fee1,\n l_segmented_data [5] :: STRING AS protocolFees,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(protocolFees, 0, 32))\n ) AS protocolFee0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(SUBSTR(protocolFees, 33, 32))\n ) AS protocolFee1,\n tokenX,\n tokenY,\n p.protocol,\n p.version,\n p.type,\n p.platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.trader_joe_v2_pools p\n ON p.lb_pair = l.contract_address\n WHERE\n topics [0] :: STRING = '0xad7d6f97abf51ce18e17a38f4d70e975be9c0708474987bb3e26ad21bd93ca70' --Swap\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.trader_joe_v2_1_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n to_address AS tx_to,\n id,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n volatilityAccumulated AS volatility_accumulated,\n fee0,\n fee1,\n protocolFee0 AS protocol_fee0,\n protocolFee1 AS protocol_fee1,\n tokenX,\n tokenY,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN tokenX\n WHEN amount0In <> 0 THEN tokenY\n WHEN amount1In <> 0 THEN tokenX\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN tokenY\n WHEN amount1Out <> 0 THEN tokenX\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE token_in <> token_out", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__trader_joe_v2_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__trader_joe_v2_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/trader_joe/silver_dex__trader_joe_v2_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/trader_joe/silver_dex__trader_joe_v2_pools.sql", "unique_id": "model.fsc_evm.silver_dex__trader_joe_v2_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "trader_joe", "silver_dex__trader_joe_v2_pools"], "alias": "trader_joe_v2_pools", "checksum": {"name": "sha256", "checksum": "40ac507bcc316a02cb71eb08c7158285f47d2d5812afaf8a086c702a3ecda50e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "lb_pair", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "lb_pair", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018368.7400591, "relation_name": "polygon.silver_dex.trader_joe_v2_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'lb_pair',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'trader_joe'\n AND version ILIKE 'v2%'\n),\npools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS tokenX,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS tokenY,\n utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INT AS binStep,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS lb_pair,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INT AS pool_id,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'LBPairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x2c8d104b27c6b7f4492017a6f5cf3803043688934ebcaa6a03540beeaf976aff' --LB PairCreated\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n tokenX,\n tokenY,\n binStep AS bin_step,\n lb_pair,\n pool_id,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over(PARTITION BY lb_pair\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/trader_joe/silver_dex__trader_joe_v2_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"lb_pair\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'lb_pair',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'trader_joe'\n AND version ILIKE 'v2%'\n),\npools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS tokenX,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS tokenY,\n utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INT AS binStep,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS lb_pair,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INT AS pool_id,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'LBPairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x2c8d104b27c6b7f4492017a6f5cf3803043688934ebcaa6a03540beeaf976aff' --LB PairCreated\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n tokenX,\n tokenY,\n binStep AS bin_step,\n lb_pair,\n pool_id,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over(PARTITION BY lb_pair\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'trader_joe'\n AND version ILIKE 'v2%'\n),\npools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS tokenX,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS tokenY,\n utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INT AS binStep,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS lb_pair,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INT AS pool_id,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'LBPairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x2c8d104b27c6b7f4492017a6f5cf3803043688934ebcaa6a03540beeaf976aff' --LB PairCreated\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.trader_joe_v2_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 day'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n tokenX,\n tokenY,\n binStep AS bin_step,\n lb_pair,\n pool_id,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over(PARTITION BY lb_pair\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__trader_joe_v2_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__trader_joe_v2_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/trader_joe/silver_dex__trader_joe_v2_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/trader_joe/silver_dex__trader_joe_v2_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__trader_joe_v2_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "trader_joe", "silver_dex__trader_joe_v2_pool_actions"], "alias": "trader_joe_v2_pool_actions", "checksum": {"name": "sha256", "checksum": "c7e3e769fee151387bfdf45750193b7e67b174ea9bc2ab4195d883a7ddc1a56f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018369.056667, "relation_name": "polygon.silver_dex.trader_joe_v2_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n tokenX AS token0,\n tokenY AS token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n decoded_log :amountX :: FLOAT AS amount0,\n decoded_log :amountY :: FLOAT AS amount1,\n decoded_log :id :: STRING AS id,\n decoded_log :sender :: STRING AS sender_address,\n decoded_log :recipient :: STRING AS receiver_address,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__trader_joe_v2_pools')}} p\n ON l.contract_address = p.lb_pair\n WHERE\n topic_0 IN ('0x4216cc3bd0c40a90259d92f800c06ede5c47765f41a488072b7e7104a1f95841', --DepositedToBin\n '0xda5e7177dface55f5e0eff7dfc67420a1db4243ddfcf0ecc84ed93e034dd8cc2' --WithdrawnFromBin\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ndeposit AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'DepositedToBin' AS event_name,\n pool_address,\n token0,\n token1,\n sender_address,\n receiver_address,\n amount0,\n amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4216cc3bd0c40a90259d92f800c06ede5c47765f41a488072b7e7104a1f95841' --mint\n),\nwithdraw AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'WithdrawnFromBin' AS event_name,\n pool_address,\n token0,\n token1,\n sender_address,\n receiver_address,\n amount0,\n amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xda5e7177dface55f5e0eff7dfc67420a1db4243ddfcf0ecc84ed93e034dd8cc2' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n receiver_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n deposit\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n receiver_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n withdraw\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "silver_dex__trader_joe_v2_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.silver_dex__trader_joe_v2_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/trader_joe/silver_dex__trader_joe_v2_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n tokenX AS token0,\n tokenY AS token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n decoded_log :amountX :: FLOAT AS amount0,\n decoded_log :amountY :: FLOAT AS amount1,\n decoded_log :id :: STRING AS id,\n decoded_log :sender :: STRING AS sender_address,\n decoded_log :recipient :: STRING AS receiver_address,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__trader_joe_v2_pools')}} p\n ON l.contract_address = p.lb_pair\n WHERE\n topic_0 IN ('0x4216cc3bd0c40a90259d92f800c06ede5c47765f41a488072b7e7104a1f95841', --DepositedToBin\n '0xda5e7177dface55f5e0eff7dfc67420a1db4243ddfcf0ecc84ed93e034dd8cc2' --WithdrawnFromBin\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ndeposit AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'DepositedToBin' AS event_name,\n pool_address,\n token0,\n token1,\n sender_address,\n receiver_address,\n amount0,\n amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4216cc3bd0c40a90259d92f800c06ede5c47765f41a488072b7e7104a1f95841' --mint\n),\nwithdraw AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'WithdrawnFromBin' AS event_name,\n pool_address,\n token0,\n token1,\n sender_address,\n receiver_address,\n amount0,\n amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xda5e7177dface55f5e0eff7dfc67420a1db4243ddfcf0ecc84ed93e034dd8cc2' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n receiver_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n deposit\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n receiver_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n withdraw\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n tokenX AS token0,\n tokenY AS token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n decoded_log :amountX :: FLOAT AS amount0,\n decoded_log :amountY :: FLOAT AS amount1,\n decoded_log :id :: STRING AS id,\n decoded_log :sender :: STRING AS sender_address,\n decoded_log :recipient :: STRING AS receiver_address,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs\n l\n INNER JOIN polygon.silver_dex.trader_joe_v2_pools p\n ON l.contract_address = p.lb_pair\n WHERE\n topic_0 IN ('0x4216cc3bd0c40a90259d92f800c06ede5c47765f41a488072b7e7104a1f95841', --DepositedToBin\n '0xda5e7177dface55f5e0eff7dfc67420a1db4243ddfcf0ecc84ed93e034dd8cc2' --WithdrawnFromBin\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.trader_joe_v2_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ndeposit AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'DepositedToBin' AS event_name,\n pool_address,\n token0,\n token1,\n sender_address,\n receiver_address,\n amount0,\n amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4216cc3bd0c40a90259d92f800c06ede5c47765f41a488072b7e7104a1f95841' --mint\n),\nwithdraw AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'WithdrawnFromBin' AS event_name,\n pool_address,\n token0,\n token1,\n sender_address,\n receiver_address,\n amount0,\n amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xda5e7177dface55f5e0eff7dfc67420a1db4243ddfcf0ecc84ed93e034dd8cc2' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n receiver_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n deposit\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n receiver_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n withdraw\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__trader_joe_v2_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__trader_joe_v2_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/trader_joe/silver_dex__trader_joe_v2_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/trader_joe/silver_dex__trader_joe_v2_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__trader_joe_v2_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "trader_joe", "silver_dex__trader_joe_v2_swaps"], "alias": "trader_joe_v2_swaps", "checksum": {"name": "sha256", "checksum": "f35fc2e2203f12a5a7ba510650c0ea69ba51cb89e31b5d8dc3be0b8e354d0135"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018369.3710446, "relation_name": "polygon.silver_dex.trader_joe_v2_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.event_index,\n l.contract_address,\n l.topics,\n l.data,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS recipient_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l.topics [3] :: STRING\n )\n ) AS id,\n CASE\n WHEN utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n ) = 0 THEN FALSE\n ELSE TRUE\n END AS swapForY,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS amountOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS volatilityAccumulated,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) AS fees,\n CASE\n WHEN swapForY THEN tokenY\n ELSE tokenX\n END AS token_out_address,\n CASE\n WHEN swapForY THEN tokenX\n ELSE tokenY\n END AS token_in_address,\n p.protocol,\n p.platform,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__trader_joe_v2_pools') }} p\n ON p.lb_pair = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc528cda9e500228b16ce84fadae290d9a49aecb17483110004c5af0a07f6fd73' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n recipient_address AS tx_to,\n id,\n swapForY AS swap_for_y,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n volatilityAccumulated AS volatility_accumulated,\n fees,\n token_in_address AS token_in,\n token_out_address AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__trader_joe_v2_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__trader_joe_v2_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/trader_joe/silver_dex__trader_joe_v2_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.event_index,\n l.contract_address,\n l.topics,\n l.data,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS recipient_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l.topics [3] :: STRING\n )\n ) AS id,\n CASE\n WHEN utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n ) = 0 THEN FALSE\n ELSE TRUE\n END AS swapForY,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS amountOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS volatilityAccumulated,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) AS fees,\n CASE\n WHEN swapForY THEN tokenY\n ELSE tokenX\n END AS token_out_address,\n CASE\n WHEN swapForY THEN tokenX\n ELSE tokenY\n END AS token_in_address,\n p.protocol,\n p.platform,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__trader_joe_v2_pools') }} p\n ON p.lb_pair = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc528cda9e500228b16ce84fadae290d9a49aecb17483110004c5af0a07f6fd73' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n recipient_address AS tx_to,\n id,\n swapForY AS swap_for_y,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n volatilityAccumulated AS volatility_accumulated,\n fees,\n token_in_address AS token_in,\n token_out_address AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\n*/\n\n\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.event_index,\n l.contract_address,\n l.topics,\n l.data,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS recipient_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l.topics [3] :: STRING\n )\n ) AS id,\n CASE\n WHEN utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n ) = 0 THEN FALSE\n ELSE TRUE\n END AS swapForY,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS amountOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS volatilityAccumulated,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) AS fees,\n CASE\n WHEN swapForY THEN tokenY\n ELSE tokenX\n END AS token_out_address,\n CASE\n WHEN swapForY THEN tokenX\n ELSE tokenY\n END AS token_in_address,\n p.protocol,\n p.platform,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.trader_joe_v2_pools p\n ON p.lb_pair = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc528cda9e500228b16ce84fadae290d9a49aecb17483110004c5af0a07f6fd73' --Swap\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.trader_joe_v2_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n recipient_address AS tx_to,\n id,\n swapForY AS swap_for_y,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n volatilityAccumulated AS volatility_accumulated,\n fees,\n token_in_address AS token_in,\n token_out_address AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__superchain_slipstream_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__superchain_slipstream_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/superchain/silver_dex__superchain_slipstream_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/superchain/silver_dex__superchain_slipstream_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__superchain_slipstream_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "superchain", "silver_dex__superchain_slipstream_swaps"], "alias": "superchain_slipstream_swaps", "checksum": {"name": "sha256", "checksum": "1a3133dd5a80f8ad1a138b687a9a51465a0ca418b0c2c7c91aa82377d0481f91"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018369.6845727, "relation_name": "polygon.silver_dex.superchain_slipstream_swaps", "raw_code": "{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS reipient_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n )\n ) AS amount0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n )\n ) AS amount1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS price,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS tick,\n token0_address,\n token1_address,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__superchain_slipstream_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n reipient_address AS tx_to,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n token0_address,\n token1_address,\n price,\n liquidity,\n tick,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__superchain_slipstream_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__superchain_slipstream_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/superchain/silver_dex__superchain_slipstream_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS reipient_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n )\n ) AS amount0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n )\n ) AS amount1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS price,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS tick,\n token0_address,\n token1_address,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__superchain_slipstream_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n reipient_address AS tx_to,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n token0_address,\n token1_address,\n price,\n liquidity,\n tick,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\n*/\n\n\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS reipient_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n )\n ) AS amount0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n )\n ) AS amount1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS price,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS tick,\n token0_address,\n token1_address,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.superchain_slipstream_pools p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.superchain_slipstream_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n reipient_address AS tx_to,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n token0_address,\n token1_address,\n price,\n liquidity,\n tick,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__superchain_slipstream_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__superchain_slipstream_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/superchain/silver_dex__superchain_slipstream_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/superchain/silver_dex__superchain_slipstream_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__superchain_slipstream_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "superchain", "silver_dex__superchain_slipstream_pool_actions"], "alias": "superchain_slipstream_pool_actions", "checksum": {"name": "sha256", "checksum": "eed3084084ebfd6afa85813ad825fd4990122044ac4f68f3e18d0394bd421435"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018369.998564, "relation_name": "polygon.silver_dex.superchain_slipstream_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0_address AS token0,\n token1_address AS token1,\n tick_spacing,\n init_tick,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__superchain_slipstream_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__superchain_slipstream_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__superchain_slipstream_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/superchain/silver_dex__superchain_slipstream_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0_address AS token0,\n token1_address AS token1,\n tick_spacing,\n init_tick,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__superchain_slipstream_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0_address AS token0,\n token1_address AS token1,\n tick_spacing,\n init_tick,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.superchain_slipstream_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.superchain_slipstream_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__superchain_slipstream_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__superchain_slipstream_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/superchain/silver_dex__superchain_slipstream_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/superchain/silver_dex__superchain_slipstream_pools.sql", "unique_id": "model.fsc_evm.silver_dex__superchain_slipstream_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "superchain", "silver_dex__superchain_slipstream_pools"], "alias": "superchain_slipstream_pools", "checksum": {"name": "sha256", "checksum": "8d05f2c5e70e3ea947a941f6ab2c4362793c38bfe052c52eb5e09fb220ef605d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018370.315084, "relation_name": "polygon.silver_dex.superchain_slipstream_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"pool_address\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'superchain_slipstream'\n),\ncreated_pools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0_address,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1_address,\n utils.udf_hex_to_int(\n 's2c',\n topics [3] :: STRING\n ) :: INTEGER AS tick_spacing,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0xab0d57f0df537bb25e80245ef7748fa62353808c54d6e528a9dd20887aed9ac2'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ninitial_info AS (\n SELECT\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [0] :: STRING)) :: FLOAT AS init_sqrtPriceX96,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [1] :: STRING)) :: FLOAT AS init_tick,\n pow(\n 1.0001,\n init_tick\n ) AS init_price_1_0_unadj,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n p.contract_address,\n p.event_name,\n token0_address,\n token1_address,\n tick_spacing,\n pool_address,\n COALESCE(\n init_tick,\n 0\n ) AS init_tick,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n p._log_id,\n p.modified_timestamp\nFROM\n created_pools p\n LEFT JOIN initial_info i\n ON p.pool_address = i.contract_address\nqualify(ROW_NUMBER() over(PARTITION BY pool_address\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/superchain/silver_dex__superchain_slipstream_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"pool_address\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'superchain_slipstream'\n),\ncreated_pools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0_address,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1_address,\n utils.udf_hex_to_int(\n 's2c',\n topics [3] :: STRING\n ) :: INTEGER AS tick_spacing,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0xab0d57f0df537bb25e80245ef7748fa62353808c54d6e528a9dd20887aed9ac2'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ninitial_info AS (\n SELECT\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [0] :: STRING)) :: FLOAT AS init_sqrtPriceX96,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [1] :: STRING)) :: FLOAT AS init_tick,\n pow(\n 1.0001,\n init_tick\n ) AS init_price_1_0_unadj,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n p.contract_address,\n p.event_name,\n token0_address,\n token1_address,\n tick_spacing,\n pool_address,\n COALESCE(\n init_tick,\n 0\n ) AS init_tick,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n p._log_id,\n p.modified_timestamp\nFROM\n created_pools p\n LEFT JOIN initial_info i\n ON p.pool_address = i.contract_address\nqualify(ROW_NUMBER() over(PARTITION BY pool_address\nORDER BY\n _inserted_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n type = 'superchain_slipstream'\n),\ncreated_pools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0_address,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1_address,\n utils.udf_hex_to_int(\n 's2c',\n topics [3] :: STRING\n ) :: INTEGER AS tick_spacing,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0xab0d57f0df537bb25e80245ef7748fa62353808c54d6e528a9dd20887aed9ac2'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.superchain_slipstream_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ninitial_info AS (\n SELECT\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [0] :: STRING)) :: FLOAT AS init_sqrtPriceX96,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [1] :: STRING)) :: FLOAT AS init_tick,\n pow(\n 1.0001,\n init_tick\n ) AS init_price_1_0_unadj,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING = '0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.superchain_slipstream_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n p.contract_address,\n p.event_name,\n token0_address,\n token1_address,\n tick_spacing,\n pool_address,\n COALESCE(\n init_tick,\n 0\n ) AS init_tick,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n p._log_id,\n p.modified_timestamp\nFROM\n created_pools p\n LEFT JOIN initial_info i\n ON p.pool_address = i.contract_address\nqualify(ROW_NUMBER() over(PARTITION BY pool_address\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__pancakeswap_v3_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__pancakeswap_v3_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/pancakeswap/silver_dex__pancakeswap_v3_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/pancakeswap/silver_dex__pancakeswap_v3_pools.sql", "unique_id": "model.fsc_evm.silver_dex__pancakeswap_v3_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "pancakeswap", "silver_dex__pancakeswap_v3_pools"], "alias": "pancakeswap_v3_pools", "checksum": {"name": "sha256", "checksum": "9e9085e839ec55192244ec5ec0f0b0c8a6fa094536a980bed379f2281f29960e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018370.6295068, "relation_name": "polygon.silver_dex.pancakeswap_v3_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'pancakeswap'\n AND version = 'v3'\n AND type = 'factory'\n),\ncreated_pools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n topics [3] :: STRING\n )\n ) AS fee,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n )\n ) AS tickSpacing,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118' --paircreated\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n token0_address,\n token1_address,\n fee :: INTEGER AS fee,\n (\n fee / 10000\n ) :: FLOAT AS fee_percent,\n tickSpacing AS tick_spacing,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n created_pools qualify(ROW_NUMBER() over(PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/pancakeswap/silver_dex__pancakeswap_v3_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'pancakeswap'\n AND version = 'v3'\n AND type = 'factory'\n),\ncreated_pools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n topics [3] :: STRING\n )\n ) AS fee,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n )\n ) AS tickSpacing,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118' --paircreated\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n token0_address,\n token1_address,\n fee :: INTEGER AS fee,\n (\n fee / 10000\n ) :: FLOAT AS fee_percent,\n tickSpacing AS tick_spacing,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n created_pools qualify(ROW_NUMBER() over(PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'pancakeswap'\n AND version = 'v3'\n AND type = 'factory'\n),\ncreated_pools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n topics [3] :: STRING\n )\n ) AS fee,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n )\n ) AS tickSpacing,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118' --paircreated\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.pancakeswap_v3_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n token0_address,\n token1_address,\n fee :: INTEGER AS fee,\n (\n fee / 10000\n ) :: FLOAT AS fee_percent,\n tickSpacing AS tick_spacing,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n created_pools qualify(ROW_NUMBER() over(PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__pancakeswap_v2_ss_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__pancakeswap_v2_ss_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/pancakeswap/silver_dex__pancakeswap_v2_ss_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/pancakeswap/silver_dex__pancakeswap_v2_ss_pools.sql", "unique_id": "model.fsc_evm.silver_dex__pancakeswap_v2_ss_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "pancakeswap", "silver_dex__pancakeswap_v2_ss_pools"], "alias": "pancakeswap_v2_ss_pools", "checksum": {"name": "sha256", "checksum": "af836c6741ea4aed716e6ab607c3d7425d5bcf1cddb681db6e174525cb958da4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018370.942015, "relation_name": "polygon.silver_dex.pancakeswap_v2_ss_pools", "raw_code": "{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'pancakeswap'\n AND version = 'v2'\n AND type IN ('ss_factory_1', 'ss_factory_2')\n), \npools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS pool_address,\n CASE\n WHEN m.type = 'ss_factory_1' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n WHEN m.type = 'ss_factory_2' THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40))\n END AS tokenA,\n CASE\n WHEN m.type = 'ss_factory_1' THEN CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40))\n WHEN m.type = 'ss_factory_2' THEN CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40))\n END AS tokenB,\n CASE\n WHEN m.type = 'ss_factory_1' THEN NULL\n WHEN m.type = 'ss_factory_2' THEN CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40))\n END AS tokenC,\n CASE\n WHEN m.type = 'ss_factory_1' THEN NULL\n WHEN m.type = 'ss_factory_2' THEN CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40))\n END AS lp,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref ('core__fact_event_logs') }}\n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING IN (\n '0xa9551fb056fc743efe2a0a34e39f9769ad10166520df7843c09a66f82e148b97',\n '0x48dc7a1b156fe3e70ed5ed0afcb307661905edf536f15bb5786e327ea1933532'\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n pool_address,\n tokenA,\n tokenB,\n tokenC,\n lp,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/pancakeswap/silver_dex__pancakeswap_v2_ss_pools.sql", "compiled": true, "compiled_code": "\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'pancakeswap'\n AND version = 'v2'\n AND type IN ('ss_factory_1', 'ss_factory_2')\n), \npools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS pool_address,\n CASE\n WHEN m.type = 'ss_factory_1' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n WHEN m.type = 'ss_factory_2' THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40))\n END AS tokenA,\n CASE\n WHEN m.type = 'ss_factory_1' THEN CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40))\n WHEN m.type = 'ss_factory_2' THEN CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40))\n END AS tokenB,\n CASE\n WHEN m.type = 'ss_factory_1' THEN NULL\n WHEN m.type = 'ss_factory_2' THEN CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40))\n END AS tokenC,\n CASE\n WHEN m.type = 'ss_factory_1' THEN NULL\n WHEN m.type = 'ss_factory_2' THEN CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40))\n END AS lp,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref ('core__fact_event_logs') }}\n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING IN (\n '0xa9551fb056fc743efe2a0a34e39f9769ad10166520df7843c09a66f82e148b97',\n '0x48dc7a1b156fe3e70ed5ed0afcb307661905edf536f15bb5786e327ea1933532'\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n pool_address,\n tokenA,\n tokenB,\n tokenC,\n lp,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'pancakeswap'\n AND version = 'v2'\n AND type IN ('ss_factory_1', 'ss_factory_2')\n), \npools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS pool_address,\n CASE\n WHEN m.type = 'ss_factory_1' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n WHEN m.type = 'ss_factory_2' THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40))\n END AS tokenA,\n CASE\n WHEN m.type = 'ss_factory_1' THEN CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40))\n WHEN m.type = 'ss_factory_2' THEN CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40))\n END AS tokenB,\n CASE\n WHEN m.type = 'ss_factory_1' THEN NULL\n WHEN m.type = 'ss_factory_2' THEN CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40))\n END AS tokenC,\n CASE\n WHEN m.type = 'ss_factory_1' THEN NULL\n WHEN m.type = 'ss_factory_2' THEN CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40))\n END AS lp,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING IN (\n '0xa9551fb056fc743efe2a0a34e39f9769ad10166520df7843c09a66f82e148b97',\n '0x48dc7a1b156fe3e70ed5ed0afcb307661905edf536f15bb5786e327ea1933532'\n )\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.pancakeswap_v2_ss_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n pool_address,\n tokenA,\n tokenB,\n tokenC,\n lp,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__pancakeswap_v3_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__pancakeswap_v3_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/pancakeswap/silver_dex__pancakeswap_v3_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/pancakeswap/silver_dex__pancakeswap_v3_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__pancakeswap_v3_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "pancakeswap", "silver_dex__pancakeswap_v3_swaps"], "alias": "pancakeswap_v3_swaps", "checksum": {"name": "sha256", "checksum": "89c7be761895074d14ef19dd853834af09d7c3c3aa56c720673a2e022ecbbc73"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018371.2562923, "relation_name": "polygon.silver_dex.pancakeswap_v3_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS recipient_address,\n COALESCE(\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [0] :: STRING\n )\n ),\n 0\n ) AS amount0,\n COALESCE(\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [1] :: STRING\n )\n ),\n 0\n ) AS amount1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS sqrtPriceX96,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [4] :: STRING\n )\n ) AS tick,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [5] :: STRING\n )\n ) AS protocolFeesToken0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [6] :: STRING\n )\n ) AS protocolFeesToken1,\n token0_address,\n token1_address,\n fee,\n tick_spacing,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__pancakeswap_v3_pools') }} p\n ON l.contract_address = p.pool_address\n WHERE\n topics [0] :: STRING = '0x19b47279256b2a23a1665c810c8d55a1758940ee09377d4f8d26497a3577dc83' --swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address AS pool_address,\n event_name,\n sender_address,\n recipient_address,\n event_index,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n sqrtPriceX96,\n liquidity,\n tick,\n tick_spacing,\n fee,\n protocolFeesToken0,\n protocolFeesToken1,\n token0_address,\n token1_address,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__pancakeswap_v3_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__pancakeswap_v3_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/pancakeswap/silver_dex__pancakeswap_v3_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS recipient_address,\n COALESCE(\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [0] :: STRING\n )\n ),\n 0\n ) AS amount0,\n COALESCE(\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [1] :: STRING\n )\n ),\n 0\n ) AS amount1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS sqrtPriceX96,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [4] :: STRING\n )\n ) AS tick,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [5] :: STRING\n )\n ) AS protocolFeesToken0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [6] :: STRING\n )\n ) AS protocolFeesToken1,\n token0_address,\n token1_address,\n fee,\n tick_spacing,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__pancakeswap_v3_pools') }} p\n ON l.contract_address = p.pool_address\n WHERE\n topics [0] :: STRING = '0x19b47279256b2a23a1665c810c8d55a1758940ee09377d4f8d26497a3577dc83' --swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address AS pool_address,\n event_name,\n sender_address,\n recipient_address,\n event_index,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n sqrtPriceX96,\n liquidity,\n tick,\n tick_spacing,\n fee,\n protocolFeesToken0,\n protocolFeesToken1,\n token0_address,\n token1_address,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\n*/\n\n\n\nWITH swaps AS (\n SELECT\n l.block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS recipient_address,\n COALESCE(\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [0] :: STRING\n )\n ),\n 0\n ) AS amount0,\n COALESCE(\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [1] :: STRING\n )\n ),\n 0\n ) AS amount1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS sqrtPriceX96,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [4] :: STRING\n )\n ) AS tick,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [5] :: STRING\n )\n ) AS protocolFeesToken0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [6] :: STRING\n )\n ) AS protocolFeesToken1,\n token0_address,\n token1_address,\n fee,\n tick_spacing,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.pancakeswap_v3_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topics [0] :: STRING = '0x19b47279256b2a23a1665c810c8d55a1758940ee09377d4f8d26497a3577dc83' --swap\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.pancakeswap_v3_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address AS pool_address,\n event_name,\n sender_address,\n recipient_address,\n event_index,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n sqrtPriceX96,\n liquidity,\n tick,\n tick_spacing,\n fee,\n protocolFeesToken0,\n protocolFeesToken1,\n token0_address,\n token1_address,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__pancakeswap_v2_mm_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__pancakeswap_v2_mm_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/pancakeswap/silver_dex__pancakeswap_v2_mm_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/pancakeswap/silver_dex__pancakeswap_v2_mm_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__pancakeswap_v2_mm_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "pancakeswap", "silver_dex__pancakeswap_v2_mm_swaps"], "alias": "pancakeswap_v2_mm_swaps", "checksum": {"name": "sha256", "checksum": "95aba27756a5fa5c7c05246321846dbb6352a549189f30f86a20dffb477ea379"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018371.5708647, "relation_name": "polygon.silver_dex.pancakeswap_v2_mm_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'pancakeswap'\n AND version = 'v2'\n AND type = 'mm_router'\n),\nswaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS user_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS mm_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS nonce,\n CONCAT('0x', SUBSTR(l_segmented_data [1] :: STRING, 25, 40)) AS mmTreasury,\n CONCAT('0x', SUBSTR(l_segmented_data [2] :: STRING, 25, 40)) AS baseToken1,\n CONCAT('0x', SUBSTR(l_segmented_data [3] :: STRING, 25, 40)) AS quoteToken1,\n CASE\n WHEN baseToken1 = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE baseToken1\n END AS baseToken,\n CASE\n WHEN quoteToken1 = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE quoteToken1\n END AS quoteToken,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) AS baseTokenAmount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [5] :: STRING\n )\n ) AS quoteTokenAmount,\n baseToken AS token_in,\n quoteToken AS token_out,\n baseTokenAmount AS token_in_amount,\n quoteTokenAmount AS token_out_amount,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xe7d6f812e1a54298ddef0b881cd08a4d452d9de35eb18b5145aa580fdda18b26' --swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n user_address AS sender,\n user_address AS tx_to,\n mm_address,\n nonce,\n mmTreasury,\n baseToken,\n quoteToken,\n baseTokenAmount,\n quoteTokenAmount,\n token_in,\n token_out,\n token_in_amount AS amount_in_unadj,\n token_out_amount AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/pancakeswap/silver_dex__pancakeswap_v2_mm_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'pancakeswap'\n AND version = 'v2'\n AND type = 'mm_router'\n),\nswaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS user_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS mm_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS nonce,\n CONCAT('0x', SUBSTR(l_segmented_data [1] :: STRING, 25, 40)) AS mmTreasury,\n CONCAT('0x', SUBSTR(l_segmented_data [2] :: STRING, 25, 40)) AS baseToken1,\n CONCAT('0x', SUBSTR(l_segmented_data [3] :: STRING, 25, 40)) AS quoteToken1,\n CASE\n WHEN baseToken1 = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE baseToken1\n END AS baseToken,\n CASE\n WHEN quoteToken1 = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE quoteToken1\n END AS quoteToken,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) AS baseTokenAmount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [5] :: STRING\n )\n ) AS quoteTokenAmount,\n baseToken AS token_in,\n quoteToken AS token_out,\n baseTokenAmount AS token_in_amount,\n quoteTokenAmount AS token_out_amount,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xe7d6f812e1a54298ddef0b881cd08a4d452d9de35eb18b5145aa580fdda18b26' --swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n user_address AS sender,\n user_address AS tx_to,\n mm_address,\n nonce,\n mmTreasury,\n baseToken,\n quoteToken,\n baseTokenAmount,\n quoteTokenAmount,\n token_in,\n token_out,\n token_in_amount AS amount_in_unadj,\n token_out_amount AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'pancakeswap'\n AND version = 'v2'\n AND type = 'mm_router'\n),\nswaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS user_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS mm_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS nonce,\n CONCAT('0x', SUBSTR(l_segmented_data [1] :: STRING, 25, 40)) AS mmTreasury,\n CONCAT('0x', SUBSTR(l_segmented_data [2] :: STRING, 25, 40)) AS baseToken1,\n CONCAT('0x', SUBSTR(l_segmented_data [3] :: STRING, 25, 40)) AS quoteToken1,\n CASE\n WHEN baseToken1 = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ELSE baseToken1\n END AS baseToken,\n CASE\n WHEN quoteToken1 = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ELSE quoteToken1\n END AS quoteToken,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) AS baseTokenAmount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [5] :: STRING\n )\n ) AS quoteTokenAmount,\n baseToken AS token_in,\n quoteToken AS token_out,\n baseTokenAmount AS token_in_amount,\n quoteTokenAmount AS token_out_amount,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xe7d6f812e1a54298ddef0b881cd08a4d452d9de35eb18b5145aa580fdda18b26' --swap\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.pancakeswap_v2_mm_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n user_address AS sender,\n user_address AS tx_to,\n mm_address,\n nonce,\n mmTreasury,\n baseToken,\n quoteToken,\n baseTokenAmount,\n quoteTokenAmount,\n token_in,\n token_out,\n token_in_amount AS amount_in_unadj,\n token_out_amount AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__pancakeswap_v3_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__pancakeswap_v3_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/pancakeswap/silver_dex__pancakeswap_v3_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/pancakeswap/silver_dex__pancakeswap_v3_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__pancakeswap_v3_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "pancakeswap", "silver_dex__pancakeswap_v3_pool_actions"], "alias": "pancakeswap_v3_pool_actions", "checksum": {"name": "sha256", "checksum": "efbc58d1b1d1f6bf8f55686f557ef659df27edba99e914842fccbf41f0d84e4d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018372.0108898, "relation_name": "polygon.silver_dex.pancakeswap_v3_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0_address AS token0,\n token1_address AS token1,\n fee,\n fee_percent,\n tick_spacing,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__pancakeswap_v3_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n amount AS amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n amount AS amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__pancakeswap_v3_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__pancakeswap_v3_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/pancakeswap/silver_dex__pancakeswap_v3_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0_address AS token0,\n token1_address AS token1,\n fee,\n fee_percent,\n tick_spacing,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__pancakeswap_v3_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n amount AS amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n amount AS amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0_address AS token0,\n token1_address AS token1,\n fee,\n fee_percent,\n tick_spacing,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.pancakeswap_v3_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.pancakeswap_v3_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n amount AS amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n amount AS amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__pancakeswap_v2_ss_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__pancakeswap_v2_ss_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/pancakeswap/silver_dex__pancakeswap_v2_ss_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/pancakeswap/silver_dex__pancakeswap_v2_ss_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__pancakeswap_v2_ss_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "pancakeswap", "silver_dex__pancakeswap_v2_ss_swaps"], "alias": "pancakeswap_v2_ss_swaps", "checksum": {"name": "sha256", "checksum": "5c0e69af3d2718037bc05838029d00de57324e9532da77391c46d86d53fb3b8d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018372.3261585, "relation_name": "polygon.silver_dex.pancakeswap_v2_ss_swaps", "raw_code": "{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS buyer_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS sold_id,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS tokens_sold,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS bought_id,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS tokens_bought,\n tokens_sold AS amountIn,\n tokens_bought AS amountOut,\n CASE\n WHEN bought_id = 0 THEN tokenA\n ELSE tokenB\n END AS tokenOut,\n CASE\n WHEN bought_id = 0 THEN tokenB\n ELSE tokenA\n END AS tokenIn,\n p.protocol,\n p.version,\n p.type,\n CONCAT(p.protocol, '-', p.version) AS platform,\n 'TokenExchange' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__pancakeswap_v2_ss_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xb2e76ae99761dc136e598d4a629bb347eccb9532a5f8bbd72e18467c3c34cc98' --TokenExchange\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n buyer_address AS sender,\n buyer_address AS tx_to,\n sold_id,\n tokens_sold,\n bought_id,\n tokens_bought,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n tokenIn AS token_in,\n tokenOut AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__pancakeswap_v2_ss_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__pancakeswap_v2_ss_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/pancakeswap/silver_dex__pancakeswap_v2_ss_swaps.sql", "compiled": true, "compiled_code": "\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS buyer_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS sold_id,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS tokens_sold,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS bought_id,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS tokens_bought,\n tokens_sold AS amountIn,\n tokens_bought AS amountOut,\n CASE\n WHEN bought_id = 0 THEN tokenA\n ELSE tokenB\n END AS tokenOut,\n CASE\n WHEN bought_id = 0 THEN tokenB\n ELSE tokenA\n END AS tokenIn,\n p.protocol,\n p.version,\n p.type,\n CONCAT(p.protocol, '-', p.version) AS platform,\n 'TokenExchange' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__pancakeswap_v2_ss_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xb2e76ae99761dc136e598d4a629bb347eccb9532a5f8bbd72e18467c3c34cc98' --TokenExchange\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n buyer_address AS sender,\n buyer_address AS tx_to,\n sold_id,\n tokens_sold,\n bought_id,\n tokens_bought,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n tokenIn AS token_in,\n tokenOut AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\n*/\n\n\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS buyer_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS sold_id,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS tokens_sold,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS bought_id,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS tokens_bought,\n tokens_sold AS amountIn,\n tokens_bought AS amountOut,\n CASE\n WHEN bought_id = 0 THEN tokenA\n ELSE tokenB\n END AS tokenOut,\n CASE\n WHEN bought_id = 0 THEN tokenB\n ELSE tokenA\n END AS tokenIn,\n p.protocol,\n p.version,\n p.type,\n CONCAT(p.protocol, '-', p.version) AS platform,\n 'TokenExchange' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.pancakeswap_v2_ss_pools p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xb2e76ae99761dc136e598d4a629bb347eccb9532a5f8bbd72e18467c3c34cc98' --TokenExchange\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.pancakeswap_v2_ss_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n buyer_address AS sender,\n buyer_address AS tx_to,\n sold_id,\n tokens_sold,\n bought_id,\n tokens_bought,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n tokenIn AS token_in,\n tokenOut AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__gmx_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__gmx_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/gmx/silver_dex__gmx_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/gmx/silver_dex__gmx_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__gmx_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "gmx", "silver_dex__gmx_swaps"], "alias": "gmx_swaps", "checksum": {"name": "sha256", "checksum": "a344e9d0f0dc65be159dc710fb2f80e5db4e9421961d1bce28c60b95a1d174cb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018372.6393218, "relation_name": "polygon.silver_dex.gmx_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'gmx'\n AND version = 'v1'\n),\nswaps AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS account_address,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS tokenIn,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [2] :: STRING,\n 25,\n 40\n )\n ) AS tokenOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n ) AS amountOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n )\n ) AS amountOutAfterFees,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [6] :: STRING\n )\n ) AS feeBasisPoints,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x0874b2d545cb271cdbda4e093020c452328b24af12382ed62c4d00f5c26709db'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n origin_from_address AS sender,\n account_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOutAfterFees AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/gmx/silver_dex__gmx_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'gmx'\n AND version = 'v1'\n),\nswaps AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS account_address,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS tokenIn,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [2] :: STRING,\n 25,\n 40\n )\n ) AS tokenOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n ) AS amountOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n )\n ) AS amountOutAfterFees,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [6] :: STRING\n )\n ) AS feeBasisPoints,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x0874b2d545cb271cdbda4e093020c452328b24af12382ed62c4d00f5c26709db'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n origin_from_address AS sender,\n account_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOutAfterFees AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'gmx'\n AND version = 'v1'\n),\nswaps AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS account_address,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS tokenIn,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [2] :: STRING,\n 25,\n 40\n )\n ) AS tokenOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n ) AS amountOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n )\n ) AS amountOutAfterFees,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [6] :: STRING\n )\n ) AS feeBasisPoints,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x0874b2d545cb271cdbda4e093020c452328b24af12382ed62c4d00f5c26709db'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.gmx_swaps\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n origin_from_address AS sender,\n account_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOutAfterFees AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__gmx_v2_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__gmx_v2_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/gmx/silver_dex__gmx_v2_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/gmx/silver_dex__gmx_v2_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__gmx_v2_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "gmx", "silver_dex__gmx_v2_swaps"], "alias": "gmx_v2_swaps", "checksum": {"name": "sha256", "checksum": "69b5925cc5c6f2a4027a736a1e6e2ffcf6e50dbc2c5556bdb4a75f232602171a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018372.9539692, "relation_name": "polygon.silver_dex.gmx_v2_swaps", "raw_code": "{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'gmx'\n AND version = 'v2'\n),\ndecoded_logs AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n topics,\n DATA,\n event_index,\n decoded_log,\n decoded_log :eventName :: STRING AS event_name,\n decoded_log :eventNameHash :: STRING AS event_name_hash,\n decoded_log :msgSender :: STRING AS msg_sender,\n decoded_log :topic1 :: STRING AS topic_1,\n decoded_log :topic2 :: STRING AS topic_2,\n decoded_log :eventData AS event_data,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }} \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n decoded_log :eventName :: STRING IN (\n 'SwapInfo',\n 'OrderExecuted'\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nparse_data AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n _log_id,\n modified_timestamp,\n event_name,\n event_name_hash,\n msg_sender,\n topic_1,\n topic_2,\n event_data [0] [0] [0] [1] :: STRING AS market,\n event_data [0] [0] [1] [1] :: STRING AS receiver,\n event_data [0] [0] [2] [1] :: STRING AS token_in,\n event_data [0] [0] [3] [1] :: STRING AS token_out,\n TRY_TO_NUMBER(\n event_data [1] [0] [0] [1] :: STRING\n ) AS token_in_price,\n TRY_TO_NUMBER(\n event_data [1] [0] [1] [1] :: STRING\n ) AS token_out_price,\n TRY_TO_NUMBER(\n event_data [1] [0] [2] [1] :: STRING\n ) AS amount_in,\n TRY_TO_NUMBER(\n event_data [1] [0] [3] [1] :: STRING\n ) AS amount_in_after_fees,\n TRY_TO_NUMBER(\n event_data [1] [0] [4] [1] :: STRING\n ) AS amount_out,\n TRY_TO_NUMBER(\n event_data [2] [0] [0] [1] :: STRING\n ) AS price_impact_usd,\n TRY_TO_NUMBER(\n event_data [2] [0] [0] [1] :: STRING\n ) AS price_impact_amount,\n event_data [4] [0] [0] [1] :: STRING AS key,\n protocol,\n version,\n type,\n platform\n FROM\n decoded_logs\n WHERE\n event_name = 'SwapInfo'\n),\ncolumn_format AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n p.contract_address,\n event_index,\n _log_id,\n modified_timestamp,\n event_name,\n event_name_hash,\n msg_sender AS sender,\n receiver AS tx_to,\n topic_1,\n market,\n receiver,\n token_in,\n token_in_price AS raw_token_in_price,\n amount_in AS amount_in_unadj,\n amount_in_after_fees,\n token_out,\n token_out_price AS raw_token_out_price,\n amount_out AS amount_out_unadj,\n price_impact_usd,\n price_impact_amount,\n key,\n platform,\n protocol,\n version,\n type\n FROM\n parse_data p\n),\nexecuted_orders AS (\n SELECT\n event_data [4] [0] [0] [1] :: STRING AS key\n FROM\n decoded_logs\n WHERE\n event_name = 'OrderExecuted'\n)\nSELECT\n A.block_number,\n A.block_timestamp,\n A.tx_hash,\n A.origin_function_signature,\n A.origin_from_address,\n A.origin_to_address,\n A.contract_address,\n A.event_index,\n A.event_name,\n market,\n receiver,\n sender,\n tx_to,\n CASE\n WHEN e.key IS NOT NULL THEN 'executed'\n ELSE 'not-executed'\n END AS order_execution,\n token_in,\n amount_in_unadj,\n token_out,\n amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n A.key,\n A._log_id,\n A.modified_timestamp\nFROM\n column_format A\n INNER JOIN executed_orders e\n ON A.key = e.key", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/gmx/silver_dex__gmx_v2_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'gmx'\n AND version = 'v2'\n),\ndecoded_logs AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n topics,\n DATA,\n event_index,\n decoded_log,\n decoded_log :eventName :: STRING AS event_name,\n decoded_log :eventNameHash :: STRING AS event_name_hash,\n decoded_log :msgSender :: STRING AS msg_sender,\n decoded_log :topic1 :: STRING AS topic_1,\n decoded_log :topic2 :: STRING AS topic_2,\n decoded_log :eventData AS event_data,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }} \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n decoded_log :eventName :: STRING IN (\n 'SwapInfo',\n 'OrderExecuted'\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nparse_data AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n _log_id,\n modified_timestamp,\n event_name,\n event_name_hash,\n msg_sender,\n topic_1,\n topic_2,\n event_data [0] [0] [0] [1] :: STRING AS market,\n event_data [0] [0] [1] [1] :: STRING AS receiver,\n event_data [0] [0] [2] [1] :: STRING AS token_in,\n event_data [0] [0] [3] [1] :: STRING AS token_out,\n TRY_TO_NUMBER(\n event_data [1] [0] [0] [1] :: STRING\n ) AS token_in_price,\n TRY_TO_NUMBER(\n event_data [1] [0] [1] [1] :: STRING\n ) AS token_out_price,\n TRY_TO_NUMBER(\n event_data [1] [0] [2] [1] :: STRING\n ) AS amount_in,\n TRY_TO_NUMBER(\n event_data [1] [0] [3] [1] :: STRING\n ) AS amount_in_after_fees,\n TRY_TO_NUMBER(\n event_data [1] [0] [4] [1] :: STRING\n ) AS amount_out,\n TRY_TO_NUMBER(\n event_data [2] [0] [0] [1] :: STRING\n ) AS price_impact_usd,\n TRY_TO_NUMBER(\n event_data [2] [0] [0] [1] :: STRING\n ) AS price_impact_amount,\n event_data [4] [0] [0] [1] :: STRING AS key,\n protocol,\n version,\n type,\n platform\n FROM\n decoded_logs\n WHERE\n event_name = 'SwapInfo'\n),\ncolumn_format AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n p.contract_address,\n event_index,\n _log_id,\n modified_timestamp,\n event_name,\n event_name_hash,\n msg_sender AS sender,\n receiver AS tx_to,\n topic_1,\n market,\n receiver,\n token_in,\n token_in_price AS raw_token_in_price,\n amount_in AS amount_in_unadj,\n amount_in_after_fees,\n token_out,\n token_out_price AS raw_token_out_price,\n amount_out AS amount_out_unadj,\n price_impact_usd,\n price_impact_amount,\n key,\n platform,\n protocol,\n version,\n type\n FROM\n parse_data p\n),\nexecuted_orders AS (\n SELECT\n event_data [4] [0] [0] [1] :: STRING AS key\n FROM\n decoded_logs\n WHERE\n event_name = 'OrderExecuted'\n)\nSELECT\n A.block_number,\n A.block_timestamp,\n A.tx_hash,\n A.origin_function_signature,\n A.origin_from_address,\n A.origin_to_address,\n A.contract_address,\n A.event_index,\n A.event_name,\n market,\n receiver,\n sender,\n tx_to,\n CASE\n WHEN e.key IS NOT NULL THEN 'executed'\n ELSE 'not-executed'\n END AS order_execution,\n token_in,\n amount_in_unadj,\n token_out,\n amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n A.key,\n A._log_id,\n A.modified_timestamp\nFROM\n column_format A\n INNER JOIN executed_orders e\n ON A.key = e.key\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'gmx'\n AND version = 'v2'\n),\ndecoded_logs AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n topics,\n DATA,\n event_index,\n decoded_log,\n decoded_log :eventName :: STRING AS event_name,\n decoded_log :eventNameHash :: STRING AS event_name_hash,\n decoded_log :msgSender :: STRING AS msg_sender,\n decoded_log :topic1 :: STRING AS topic_1,\n decoded_log :topic2 :: STRING AS topic_2,\n decoded_log :eventData AS event_data,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n decoded_log :eventName :: STRING IN (\n 'SwapInfo',\n 'OrderExecuted'\n )\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.gmx_v2_swaps\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nparse_data AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n _log_id,\n modified_timestamp,\n event_name,\n event_name_hash,\n msg_sender,\n topic_1,\n topic_2,\n event_data [0] [0] [0] [1] :: STRING AS market,\n event_data [0] [0] [1] [1] :: STRING AS receiver,\n event_data [0] [0] [2] [1] :: STRING AS token_in,\n event_data [0] [0] [3] [1] :: STRING AS token_out,\n TRY_TO_NUMBER(\n event_data [1] [0] [0] [1] :: STRING\n ) AS token_in_price,\n TRY_TO_NUMBER(\n event_data [1] [0] [1] [1] :: STRING\n ) AS token_out_price,\n TRY_TO_NUMBER(\n event_data [1] [0] [2] [1] :: STRING\n ) AS amount_in,\n TRY_TO_NUMBER(\n event_data [1] [0] [3] [1] :: STRING\n ) AS amount_in_after_fees,\n TRY_TO_NUMBER(\n event_data [1] [0] [4] [1] :: STRING\n ) AS amount_out,\n TRY_TO_NUMBER(\n event_data [2] [0] [0] [1] :: STRING\n ) AS price_impact_usd,\n TRY_TO_NUMBER(\n event_data [2] [0] [0] [1] :: STRING\n ) AS price_impact_amount,\n event_data [4] [0] [0] [1] :: STRING AS key,\n protocol,\n version,\n type,\n platform\n FROM\n decoded_logs\n WHERE\n event_name = 'SwapInfo'\n),\ncolumn_format AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n p.contract_address,\n event_index,\n _log_id,\n modified_timestamp,\n event_name,\n event_name_hash,\n msg_sender AS sender,\n receiver AS tx_to,\n topic_1,\n market,\n receiver,\n token_in,\n token_in_price AS raw_token_in_price,\n amount_in AS amount_in_unadj,\n amount_in_after_fees,\n token_out,\n token_out_price AS raw_token_out_price,\n amount_out AS amount_out_unadj,\n price_impact_usd,\n price_impact_amount,\n key,\n platform,\n protocol,\n version,\n type\n FROM\n parse_data p\n),\nexecuted_orders AS (\n SELECT\n event_data [4] [0] [0] [1] :: STRING AS key\n FROM\n decoded_logs\n WHERE\n event_name = 'OrderExecuted'\n)\nSELECT\n A.block_number,\n A.block_timestamp,\n A.tx_hash,\n A.origin_function_signature,\n A.origin_from_address,\n A.origin_to_address,\n A.contract_address,\n A.event_index,\n A.event_name,\n market,\n receiver,\n sender,\n tx_to,\n CASE\n WHEN e.key IS NOT NULL THEN 'executed'\n ELSE 'not-executed'\n END AS order_execution,\n token_in,\n amount_in_unadj,\n token_out,\n amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n A.key,\n A._log_id,\n A.modified_timestamp\nFROM\n column_format A\n INNER JOIN executed_orders e\n ON A.key = e.key", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__velodrome_v1_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__velodrome_v1_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/velodrome/silver_dex__velodrome_v1_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/velodrome/silver_dex__velodrome_v1_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__velodrome_v1_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "velodrome", "silver_dex__velodrome_v1_swaps"], "alias": "velodrome_v1_swaps", "checksum": {"name": "sha256", "checksum": "131dfbd90b8bf943c149c2d5008eca822014303d0c7531a7e157987b6d482273"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018373.266596, "relation_name": "polygon.silver_dex.velodrome_v1_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n pool_name,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS segmented,\n '0x' || SUBSTR(\n topics [1] :: STRING,\n 27,\n 40\n ) AS sender,\n '0x' || SUBSTR(\n topics [2] :: STRING,\n 27,\n 40\n ) AS tx_to,\n utils.udf_hex_to_int(\n segmented [0] :: STRING\n ) :: INT AS amount0In,\n utils.udf_hex_to_int(\n segmented [1] :: STRING\n ) :: INT AS amount1In,\n utils.udf_hex_to_int(\n segmented [2] :: STRING\n ) :: INT AS amount0Out,\n utils.udf_hex_to_int(\n segmented [3] :: STRING\n ) :: INT AS amount1Out,\n token0,\n token1,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__velodrome_v1_pools') }} p\n ON l.contract_address = p.pool_address\n WHERE\n topics [0] :: STRING IN (\n '0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822'\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n pool_name,\n sender,\n tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__velodrome_v1_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__velodrome_v1_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/velodrome/silver_dex__velodrome_v1_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n pool_name,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS segmented,\n '0x' || SUBSTR(\n topics [1] :: STRING,\n 27,\n 40\n ) AS sender,\n '0x' || SUBSTR(\n topics [2] :: STRING,\n 27,\n 40\n ) AS tx_to,\n utils.udf_hex_to_int(\n segmented [0] :: STRING\n ) :: INT AS amount0In,\n utils.udf_hex_to_int(\n segmented [1] :: STRING\n ) :: INT AS amount1In,\n utils.udf_hex_to_int(\n segmented [2] :: STRING\n ) :: INT AS amount0Out,\n utils.udf_hex_to_int(\n segmented [3] :: STRING\n ) :: INT AS amount1Out,\n token0,\n token1,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__velodrome_v1_pools') }} p\n ON l.contract_address = p.pool_address\n WHERE\n topics [0] :: STRING IN (\n '0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822'\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n pool_name,\n sender,\n tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out\n*/\n\n\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n pool_name,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS segmented,\n '0x' || SUBSTR(\n topics [1] :: STRING,\n 27,\n 40\n ) AS sender,\n '0x' || SUBSTR(\n topics [2] :: STRING,\n 27,\n 40\n ) AS tx_to,\n utils.udf_hex_to_int(\n segmented [0] :: STRING\n ) :: INT AS amount0In,\n utils.udf_hex_to_int(\n segmented [1] :: STRING\n ) :: INT AS amount1In,\n utils.udf_hex_to_int(\n segmented [2] :: STRING\n ) :: INT AS amount0Out,\n utils.udf_hex_to_int(\n segmented [3] :: STRING\n ) :: INT AS amount1Out,\n token0,\n token1,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.velodrome_v1_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topics [0] :: STRING IN (\n '0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822'\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.velodrome_v1_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n pool_name,\n sender,\n tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__velodrome_v2_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__velodrome_v2_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/velodrome/silver_dex__velodrome_v2_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/velodrome/silver_dex__velodrome_v2_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__velodrome_v2_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "velodrome", "silver_dex__velodrome_v2_pool_actions"], "alias": "velodrome_v2_pool_actions", "checksum": {"name": "sha256", "checksum": "c1ae70133811c7017decc039ead5c7bdca8ab60672d6aef04bdc5b5d6ba41ff2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018373.58055, "relation_name": "polygon.silver_dex.velodrome_v2_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__velodrome_v2_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f', --mint\n '0x5d624aa9c148153ab3446c1b154f660ee7701e549fe9b62dab7171b1c80e6fa2' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS target_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS value_amt,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS index_amt,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x5d624aa9c148153ab3446c1b154f660ee7701e549fe9b62dab7171b1c80e6fa2' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n pool_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n from_address AS sender,\n target_address AS receiver,\n value_amt AS amount0_unadj,\n index_amt AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__velodrome_v2_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__velodrome_v2_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/velodrome/silver_dex__velodrome_v2_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__velodrome_v2_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f', --mint\n '0x5d624aa9c148153ab3446c1b154f660ee7701e549fe9b62dab7171b1c80e6fa2' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS target_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS value_amt,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS index_amt,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x5d624aa9c148153ab3446c1b154f660ee7701e549fe9b62dab7171b1c80e6fa2' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n pool_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n from_address AS sender,\n target_address AS receiver,\n value_amt AS amount0_unadj,\n index_amt AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.velodrome_v2_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f', --mint\n '0x5d624aa9c148153ab3446c1b154f660ee7701e549fe9b62dab7171b1c80e6fa2' --burn\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.velodrome_v2_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS target_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS value_amt,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS index_amt,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x5d624aa9c148153ab3446c1b154f660ee7701e549fe9b62dab7171b1c80e6fa2' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n pool_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n from_address AS sender,\n target_address AS receiver,\n value_amt AS amount0_unadj,\n index_amt AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__velodrome_v1_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__velodrome_v1_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/velodrome/silver_dex__velodrome_v1_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/velodrome/silver_dex__velodrome_v1_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__velodrome_v1_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "velodrome", "silver_dex__velodrome_v1_pool_actions"], "alias": "velodrome_v1_pool_actions", "checksum": {"name": "sha256", "checksum": "1f2ce0f4946a47ed334d0588661cf013d610d9cc2fdb9841b1b00c47364e0ff4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018373.8963041, "relation_name": "polygon.silver_dex.velodrome_v1_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__velodrome_v1_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f', --mint\n '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS to_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n pool_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n to_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__velodrome_v1_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__velodrome_v1_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/velodrome/silver_dex__velodrome_v1_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__velodrome_v1_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f', --mint\n '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS to_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n pool_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n to_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.velodrome_v1_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f', --mint\n '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.velodrome_v1_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS to_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n pool_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n to_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__velodrome_v1_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__velodrome_v1_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/velodrome/silver_dex__velodrome_v1_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/velodrome/silver_dex__velodrome_v1_pools.sql", "unique_id": "model.fsc_evm.silver_dex__velodrome_v1_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "velodrome", "silver_dex__velodrome_v1_pools"], "alias": "velodrome_v1_pools", "checksum": {"name": "sha256", "checksum": "3a6b198b12dced236316e7b41bcd4e4d78b2cd058b7906cddc279463bdc013fb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018374.211133, "relation_name": "polygon.silver_dex.velodrome_v1_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'velodrome'\n AND version = 'v1'\n),\npool_creation AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS segmented,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n IFF(utils.udf_hex_to_int(segmented [0] :: STRING) = 0, FALSE, TRUE) AS stable,\n '0x' || SUBSTR(\n segmented [1] :: STRING,\n 25,\n 40\n ) AS pool_address,\n utils.udf_hex_to_int(\n segmented [2] :: STRING\n ) AS pool_id,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xc4805696c66d7cf352fc1d6bb633ad5ee82f6cb577c453024b6e0eb8306c6fc9' -- pair created\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n),\nbuild_request AS (\n SELECT\n pool_address,\n block_number,\n '0x06fdde03' AS function_sig,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{'to': pool_address, 'from': null, 'data': function_sig}, utils.udf_int_to_hex(block_number)],\n concat_ws(\n '-',\n contract_address,\n function_sig,\n block_number\n )\n ) AS rpc_request\n FROM\n pool_creation\n),\nrequests AS (\n SELECT\n *,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n {},\n rpc_request,\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS read_output,\n read_output :data :result AS results\n FROM\n build_request\n),\nresults_decoded AS (\n SELECT\n pool_address,\n regexp_substr_all(SUBSTR(results, 3), '.{64}') AS segmented_data,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) / 32 AS offset,\n utils.udf_hex_to_int(\n segmented_data [offset] :: STRING\n ) * 2 AS string_length,\n utils.udf_hex_to_string(\n SUBSTR(\n segmented_data [offset + 1 ] :: STRING,\n 1,\n string_length\n )\n ) AS pool_name\n FROM\n requests\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n token0,\n token1,\n stable,\n pool_address,\n pool_name,\n pool_id,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pool_creation\n LEFT JOIN results_decoded USING (pool_address)", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/velodrome/silver_dex__velodrome_v1_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'velodrome'\n AND version = 'v1'\n),\npool_creation AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS segmented,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n IFF(utils.udf_hex_to_int(segmented [0] :: STRING) = 0, FALSE, TRUE) AS stable,\n '0x' || SUBSTR(\n segmented [1] :: STRING,\n 25,\n 40\n ) AS pool_address,\n utils.udf_hex_to_int(\n segmented [2] :: STRING\n ) AS pool_id,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xc4805696c66d7cf352fc1d6bb633ad5ee82f6cb577c453024b6e0eb8306c6fc9' -- pair created\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n),\nbuild_request AS (\n SELECT\n pool_address,\n block_number,\n '0x06fdde03' AS function_sig,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{'to': pool_address, 'from': null, 'data': function_sig}, utils.udf_int_to_hex(block_number)],\n concat_ws(\n '-',\n contract_address,\n function_sig,\n block_number\n )\n ) AS rpc_request\n FROM\n pool_creation\n),\nrequests AS (\n SELECT\n *,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n {},\n rpc_request,\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS read_output,\n read_output :data :result AS results\n FROM\n build_request\n),\nresults_decoded AS (\n SELECT\n pool_address,\n regexp_substr_all(SUBSTR(results, 3), '.{64}') AS segmented_data,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) / 32 AS offset,\n utils.udf_hex_to_int(\n segmented_data [offset] :: STRING\n ) * 2 AS string_length,\n utils.udf_hex_to_string(\n SUBSTR(\n segmented_data [offset + 1 ] :: STRING,\n 1,\n string_length\n )\n ) AS pool_name\n FROM\n requests\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n token0,\n token1,\n stable,\n pool_address,\n pool_name,\n pool_id,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pool_creation\n LEFT JOIN results_decoded USING (pool_address)\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'velodrome'\n AND version = 'v1'\n),\npool_creation AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3), '.{64}') AS segmented,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n IFF(utils.udf_hex_to_int(segmented [0] :: STRING) = 0, FALSE, TRUE) AS stable,\n '0x' || SUBSTR(\n segmented [1] :: STRING,\n 25,\n 40\n ) AS pool_address,\n utils.udf_hex_to_int(\n segmented [2] :: STRING\n ) AS pool_id,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xc4805696c66d7cf352fc1d6bb633ad5ee82f6cb577c453024b6e0eb8306c6fc9' -- pair created\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.velodrome_v1_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\nqualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n),\nbuild_request AS (\n SELECT\n pool_address,\n block_number,\n '0x06fdde03' AS function_sig,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{'to': pool_address, 'from': null, 'data': function_sig}, utils.udf_int_to_hex(block_number)],\n concat_ws(\n '-',\n contract_address,\n function_sig,\n block_number\n )\n ) AS rpc_request\n FROM\n pool_creation\n),\nrequests AS (\n SELECT\n *,\n live.udf_api(\n 'POST',\n '{URL}',\n {},\n rpc_request,\n 'Vault/prod/evm/quicknode/polygon/mainnet'\n ) AS read_output,\n read_output :data :result AS results\n FROM\n build_request\n),\nresults_decoded AS (\n SELECT\n pool_address,\n regexp_substr_all(SUBSTR(results, 3), '.{64}') AS segmented_data,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) / 32 AS offset,\n utils.udf_hex_to_int(\n segmented_data [offset] :: STRING\n ) * 2 AS string_length,\n utils.udf_hex_to_string(\n SUBSTR(\n segmented_data [offset + 1 ] :: STRING,\n 1,\n string_length\n )\n ) AS pool_name\n FROM\n requests\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n token0,\n token1,\n stable,\n pool_address,\n pool_name,\n pool_id,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pool_creation\n LEFT JOIN results_decoded USING (pool_address)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__velodrome_v2_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__velodrome_v2_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/velodrome/silver_dex__velodrome_v2_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/velodrome/silver_dex__velodrome_v2_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__velodrome_v2_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "velodrome", "silver_dex__velodrome_v2_swaps"], "alias": "velodrome_v2_swaps", "checksum": {"name": "sha256", "checksum": "8acf0be478cbc5c0f24b5df81353641d20e882a2d269eb416fe541580b39619f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018374.5239723, "relation_name": "polygon.silver_dex.velodrome_v2_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS amount1In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS amount1Out,\n token0,\n token1,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__velodrome_v2_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xb3e2773606abfd36b5bd91394b3a54d1398336c65005baf7bf7a05efeffaf75b'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n to_address AS tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__velodrome_v2_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__velodrome_v2_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/velodrome/silver_dex__velodrome_v2_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS amount1In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS amount1Out,\n token0,\n token1,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__velodrome_v2_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xb3e2773606abfd36b5bd91394b3a54d1398336c65005baf7bf7a05efeffaf75b'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n to_address AS tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out\n*/\n\n\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS amount1In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS amount1Out,\n token0,\n token1,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.velodrome_v2_pools p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xb3e2773606abfd36b5bd91394b3a54d1398336c65005baf7bf7a05efeffaf75b'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.velodrome_v2_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n to_address AS tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__velodrome_v2_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__velodrome_v2_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/velodrome/silver_dex__velodrome_v2_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/velodrome/silver_dex__velodrome_v2_pools.sql", "unique_id": "model.fsc_evm.silver_dex__velodrome_v2_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "velodrome", "silver_dex__velodrome_v2_pools"], "alias": "velodrome_v2_pools", "checksum": {"name": "sha256", "checksum": "3b0104d35f7ca9380e030ecd46e3a407d82b4eb5fb38cc39fb1bacdcc6d2b91e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018374.8378649, "relation_name": "polygon.silver_dex.velodrome_v2_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'velodrome'\n AND version = 'v2'\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address AS factory_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1,\n CASE\n WHEN RIGHT(\n topics [3] :: STRING,\n 1\n ) = '0' THEN FALSE\n ELSE TRUE\n END AS stable,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n 'velodrome' AS protocol,\n 'v2' AS version,\n 'factory' AS type,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\nFROM\n {{ ref('core__fact_event_logs') }}\nWHERE\n topics [0] = '0x2128d88d14c80cb081c1252a5acff7a264671bf199ce226b53788fb26065005e'\n AND contract_address IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n WHERE type = 'factory'\n )\n AND pool_address NOT IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n WHERE type = 'converter'\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/velodrome/silver_dex__velodrome_v2_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'velodrome'\n AND version = 'v2'\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address AS factory_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1,\n CASE\n WHEN RIGHT(\n topics [3] :: STRING,\n 1\n ) = '0' THEN FALSE\n ELSE TRUE\n END AS stable,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n 'velodrome' AS protocol,\n 'v2' AS version,\n 'factory' AS type,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\nFROM\n {{ ref('core__fact_event_logs') }}\nWHERE\n topics [0] = '0x2128d88d14c80cb081c1252a5acff7a264671bf199ce226b53788fb26065005e'\n AND contract_address IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n WHERE type = 'factory'\n )\n AND pool_address NOT IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n WHERE type = 'converter'\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'velodrome'\n AND version = 'v2'\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address AS factory_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1,\n CASE\n WHEN RIGHT(\n topics [3] :: STRING,\n 1\n ) = '0' THEN FALSE\n ELSE TRUE\n END AS stable,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n 'velodrome' AS protocol,\n 'v2' AS version,\n 'factory' AS type,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\nFROM\n polygon.core.fact_event_logs\nWHERE\n topics [0] = '0x2128d88d14c80cb081c1252a5acff7a264671bf199ce226b53788fb26065005e'\n AND contract_address IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n WHERE type = 'factory'\n )\n AND pool_address NOT IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n WHERE type = 'converter'\n )\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.velodrome_v2_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\nqualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__pharaoh_v1_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__pharaoh_v1_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/pharaoh/silver_dex__pharaoh_v1_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/pharaoh/silver_dex__pharaoh_v1_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__pharaoh_v1_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "pharaoh", "silver_dex__pharaoh_v1_pool_actions"], "alias": "pharaoh_v1_pool_actions", "checksum": {"name": "sha256", "checksum": "168a3463f244fa0abafdebd80b5ae9b0f63b8af554c01275e517877e40506945"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018375.1493645, "relation_name": "polygon.silver_dex.pharaoh_v1_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__pharaoh_v1_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f', --mint\n '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS to_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n pool_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n to_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__pharaoh_v1_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__pharaoh_v1_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/pharaoh/silver_dex__pharaoh_v1_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__pharaoh_v1_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f', --mint\n '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS to_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n pool_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n to_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.pharaoh_v1_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f', --mint\n '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.pharaoh_v1_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS to_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n pool_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n to_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__pharaoh_v1_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__pharaoh_v1_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/pharaoh/silver_dex__pharaoh_v1_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/pharaoh/silver_dex__pharaoh_v1_pools.sql", "unique_id": "model.fsc_evm.silver_dex__pharaoh_v1_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "pharaoh", "silver_dex__pharaoh_v1_pools"], "alias": "pharaoh_v1_pools", "checksum": {"name": "sha256", "checksum": "0543c79ea9bf45f80ac9a7dc35035f2f3662f51f370aca1529dcab1a7d516522"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018375.4649582, "relation_name": "polygon.silver_dex.pharaoh_v1_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'pharaoh'\n AND version = 'v1'\n),\npools AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS pool_address,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INT AS pool_id,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xc4805696c66d7cf352fc1d6bb633ad5ee82f6cb577c453024b6e0eb8306c6fc9' --PairCreated\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n pool_id,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/pharaoh/silver_dex__pharaoh_v1_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'pharaoh'\n AND version = 'v1'\n),\npools AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS pool_address,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INT AS pool_id,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xc4805696c66d7cf352fc1d6bb633ad5ee82f6cb577c453024b6e0eb8306c6fc9' --PairCreated\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n pool_id,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'pharaoh'\n AND version = 'v1'\n),\npools AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS pool_address,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INT AS pool_id,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xc4805696c66d7cf352fc1d6bb633ad5ee82f6cb577c453024b6e0eb8306c6fc9' --PairCreated\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.pharaoh_v1_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n pool_id,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__pharaoh_v1_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__pharaoh_v1_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/pharaoh/silver_dex__pharaoh_v1_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/pharaoh/silver_dex__pharaoh_v1_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__pharaoh_v1_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "pharaoh", "silver_dex__pharaoh_v1_swaps"], "alias": "pharaoh_v1_swaps", "checksum": {"name": "sha256", "checksum": "f24735e7d803d33e98422015291ea34964d7669fe4d0f7de9408d26a5aec7e51"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018375.7790534, "relation_name": "polygon.silver_dex.pharaoh_v1_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n ) AS amount1In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER\n ) AS amount1Out,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS tx_to,\n token0,\n token1,\n p.protocol,\n p.version,\n p.type,\n CONCAT(p.protocol, '-', p.version) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__pharaoh_v1_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n sender,\n tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__pharaoh_v1_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__pharaoh_v1_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/pharaoh/silver_dex__pharaoh_v1_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n ) AS amount1In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER\n ) AS amount1Out,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS tx_to,\n token0,\n token1,\n p.protocol,\n p.version,\n p.type,\n CONCAT(p.protocol, '-', p.version) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__pharaoh_v1_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n sender,\n tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out\n*/\n\n\n\nWITH swaps AS (\n SELECT\n l.block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n ) AS amount1In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER\n ) AS amount1Out,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS tx_to,\n token0,\n token1,\n p.protocol,\n p.version,\n p.type,\n CONCAT(p.protocol, '-', p.version) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.pharaoh_v1_pools p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.pharaoh_v1_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n sender,\n tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__dackie_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__dackie_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/dackieswap/silver_dex__dackie_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/dackieswap/silver_dex__dackie_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__dackie_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dackieswap", "silver_dex__dackie_pool_actions"], "alias": "dackie_pool_actions", "checksum": {"name": "sha256", "checksum": "783dd6b20a95b141cd325acbb2ccd15a3f42b1c407db6a9642b91cc381bab4bb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018376.0917397, "relation_name": "polygon.silver_dex.dackie_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0_address AS token0,\n token1_address AS token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__dackie_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__dackie_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__dackie_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/dackieswap/silver_dex__dackie_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0_address AS token0,\n token1_address AS token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__dackie_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0_address AS token0,\n token1_address AS token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.dackie_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.dackie_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__dackie_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__dackie_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/dackieswap/silver_dex__dackie_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/dackieswap/silver_dex__dackie_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__dackie_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dackieswap", "silver_dex__dackie_swaps"], "alias": "dackie_swaps", "checksum": {"name": "sha256", "checksum": "981dc4153d0e0c1e3d811207b48c7131d47de8f90aed7ebd85dae8eb71be51a4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018376.4046426, "relation_name": "polygon.silver_dex.dackie_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS recipient_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [0] :: STRING\n )\n ) AS amount0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [1] :: STRING\n )\n ) AS amount1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS sqrtPriceX96,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [4] :: STRING\n )\n ) AS tick,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [5] :: STRING\n )\n ) AS protocolFeesToken0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [6] :: STRING\n )\n ) AS protocolFeesToken1,\n token0_address,\n token1_address,\n fee,\n tick_spacing,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__dackie_pools') }} p\n ON l.contract_address = p.pool_address\n WHERE\n topics [0] :: STRING = '0x19b47279256b2a23a1665c810c8d55a1758940ee09377d4f8d26497a3577dc83' --swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address AS pool_address,\n event_name,\n sender_address,\n recipient_address,\n event_index,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n sqrtPriceX96,\n liquidity,\n tick,\n tick_spacing,\n fee,\n protocolFeesToken0,\n protocolFeesToken1,\n token0_address,\n token1_address,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE amount_in_unadj IS NOT NULL \nAND amount_out_unadj IS NOT NULL", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__dackie_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__dackie_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/dackieswap/silver_dex__dackie_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS recipient_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [0] :: STRING\n )\n ) AS amount0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [1] :: STRING\n )\n ) AS amount1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS sqrtPriceX96,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [4] :: STRING\n )\n ) AS tick,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [5] :: STRING\n )\n ) AS protocolFeesToken0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [6] :: STRING\n )\n ) AS protocolFeesToken1,\n token0_address,\n token1_address,\n fee,\n tick_spacing,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__dackie_pools') }} p\n ON l.contract_address = p.pool_address\n WHERE\n topics [0] :: STRING = '0x19b47279256b2a23a1665c810c8d55a1758940ee09377d4f8d26497a3577dc83' --swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address AS pool_address,\n event_name,\n sender_address,\n recipient_address,\n event_index,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n sqrtPriceX96,\n liquidity,\n tick,\n tick_spacing,\n fee,\n protocolFeesToken0,\n protocolFeesToken1,\n token0_address,\n token1_address,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE amount_in_unadj IS NOT NULL \nAND amount_out_unadj IS NOT NULL\n*/\n\n\n\nWITH swaps AS (\n SELECT\n l.block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS recipient_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [0] :: STRING\n )\n ) AS amount0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [1] :: STRING\n )\n ) AS amount1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS sqrtPriceX96,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [4] :: STRING\n )\n ) AS tick,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [5] :: STRING\n )\n ) AS protocolFeesToken0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [6] :: STRING\n )\n ) AS protocolFeesToken1,\n token0_address,\n token1_address,\n fee,\n tick_spacing,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.dackie_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topics [0] :: STRING = '0x19b47279256b2a23a1665c810c8d55a1758940ee09377d4f8d26497a3577dc83' --swap\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.dackie_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address AS pool_address,\n event_name,\n sender_address,\n recipient_address,\n event_index,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n sqrtPriceX96,\n liquidity,\n tick,\n tick_spacing,\n fee,\n protocolFeesToken0,\n protocolFeesToken1,\n token0_address,\n token1_address,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE amount_in_unadj IS NOT NULL \nAND amount_out_unadj IS NOT NULL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__dackie_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__dackie_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/dackieswap/silver_dex__dackie_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/dackieswap/silver_dex__dackie_pools.sql", "unique_id": "model.fsc_evm.silver_dex__dackie_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dackieswap", "silver_dex__dackie_pools"], "alias": "dackie_pools", "checksum": {"name": "sha256", "checksum": "dfb7e83fec6e4957849675f27fd0007287e1b61870bc41ae8c454019e5cd478c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018376.718243, "relation_name": "polygon.silver_dex.dackie_pools", "raw_code": "{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"pool_address\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'dackieswap'\n),\ncreated_pools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0_address,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1_address,\n utils.udf_hex_to_int(\n 's2c',\n topics [3] :: STRING\n ) :: INTEGER AS fee,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n ) :: INTEGER AS tick_spacing,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ninitial_info AS (\n SELECT\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [0] :: STRING)) :: FLOAT AS init_sqrtPriceX96,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [1] :: STRING)) :: FLOAT AS init_tick,\n pow(\n 1.0001,\n init_tick\n ) AS init_price_1_0_unadj,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_name,\n p.contract_address,\n token0_address,\n token1_address,\n fee :: INTEGER AS fee,\n (\n fee / 10000\n ) :: FLOAT AS fee_percent,\n tick_spacing,\n pool_address,\n COALESCE(\n init_tick,\n 0\n ) AS init_tick,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n p._log_id,\n p.modified_timestamp\n FROM\n created_pools p\n LEFT JOIN initial_info i\n ON p.pool_address = i.contract_address\n)\nSELECT\n *\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/dackieswap/silver_dex__dackie_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"pool_address\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'dackieswap'\n),\ncreated_pools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0_address,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1_address,\n utils.udf_hex_to_int(\n 's2c',\n topics [3] :: STRING\n ) :: INTEGER AS fee,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n ) :: INTEGER AS tick_spacing,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ninitial_info AS (\n SELECT\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [0] :: STRING)) :: FLOAT AS init_sqrtPriceX96,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [1] :: STRING)) :: FLOAT AS init_tick,\n pow(\n 1.0001,\n init_tick\n ) AS init_price_1_0_unadj,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_name,\n p.contract_address,\n token0_address,\n token1_address,\n fee :: INTEGER AS fee,\n (\n fee / 10000\n ) :: FLOAT AS fee_percent,\n tick_spacing,\n pool_address,\n COALESCE(\n init_tick,\n 0\n ) AS init_tick,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n p._log_id,\n p.modified_timestamp\n FROM\n created_pools p\n LEFT JOIN initial_info i\n ON p.pool_address = i.contract_address\n)\nSELECT\n *\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'dackieswap'\n),\ncreated_pools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0_address,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1_address,\n utils.udf_hex_to_int(\n 's2c',\n topics [3] :: STRING\n ) :: INTEGER AS fee,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n ) :: INTEGER AS tick_spacing,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.dackie_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ninitial_info AS (\n SELECT\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [0] :: STRING)) :: FLOAT AS init_sqrtPriceX96,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [1] :: STRING)) :: FLOAT AS init_tick,\n pow(\n 1.0001,\n init_tick\n ) AS init_price_1_0_unadj,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING = '0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.dackie_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_name,\n p.contract_address,\n token0_address,\n token1_address,\n fee :: INTEGER AS fee,\n (\n fee / 10000\n ) :: FLOAT AS fee_percent,\n tick_spacing,\n pool_address,\n COALESCE(\n init_tick,\n 0\n ) AS init_tick,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n p._log_id,\n p.modified_timestamp\n FROM\n created_pools p\n LEFT JOIN initial_info i\n ON p.pool_address = i.contract_address\n)\nSELECT\n *\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__curve_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__curve_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/curve/silver_dex__curve_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/curve/silver_dex__curve_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__curve_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "curve", "silver_dex__curve_swaps"], "alias": "curve_swaps", "checksum": {"name": "sha256", "checksum": "e368b64cb646451185b18d940a93719dcb0e9224bf5f9bd6ff2179423eaeb540"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018377.0330155, "relation_name": "polygon.silver_dex.curve_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH pool_meta AS (\n\n SELECT\n pool_address,\n pool_name,\n token_address,\n pool_symbol AS symbol,\n token_id :: INTEGER AS token_id,\n token_type :: STRING AS token_type,\n platform,\n protocol,\n version,\n type\n FROM\n {{ ref('silver_dex__curve_pools') }}\n),\n\npools AS (\n SELECT \n DISTINCT pool_address,\n pool_name,\n platform,\n protocol,\n version,\n type\n FROM pool_meta\n QUALIFY (ROW_NUMBER() OVER (PARTITION BY pool_address ORDER BY pool_name ASC NULLS LAST)) = 1\n),\n\ncurve_base AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n CASE\n WHEN topics [0] :: STRING = '0xd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b' THEN 'TokenExchangeUnderlying'\n ELSE 'TokenExchange'\n END AS event_name,\n contract_address AS pool_address,\n pool_name,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )) AS sold_id,\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )) AS tokens_sold,\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )) AS bought_id,\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )) AS tokens_bought,\n platform,\n protocol,\n version,\n type,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__fact_event_logs') }} l\n INNER JOIN pools p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING IN (\n '0x143f1f8e861fbdeddd5b46e844b7d3ac7b86a122f36e8c463859ee6811b1f29c', --TokenExchange\n '0x8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd97140', --TokenExchange\n '0xb2e76ae99761dc136e598d4a629bb347eccb9532a5f8bbd72e18467c3c34cc98', --TokenExchange\n '0xd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b' --TokenExchangeUnderlying\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\n\ntoken_exchange AS (\n\nSELECT\n\t_log_id,\n MAX(CASE WHEN sold_id = token_id THEN token_address END) AS token_in,\n MAX(CASE WHEN bought_id = token_id THEN token_address END) AS token_out,\n MAX(CASE WHEN sold_id = token_id THEN symbol END) AS symbol_in,\n MAX(CASE WHEN bought_id = token_id THEN symbol END) AS symbol_out\nFROM curve_base t\nLEFT JOIN pool_meta p ON p.pool_address = t.pool_address AND (p.token_id = t.sold_id OR p.token_id = t.bought_id)\nWHERE token_type = 'coins'\nGROUP BY 1\n),\n\ntoken_transfers AS (\n SELECT\n tx_hash,\n contract_address AS token_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n DATA :: STRING\n )\n ) AS amount,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS to_address,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n curve_base\n )\n AND CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) <> '0x0000000000000000000000000000000000000000'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nfrom_transfers AS (\n SELECT\n DISTINCT tx_hash,\n token_address,\n from_address,\n amount\n FROM\n token_transfers\n),\nto_transfers AS (\n SELECT\n DISTINCT tx_hash,\n token_address,\n to_address,\n amount\n FROM\n token_transfers\n),\n\nready_pool_info AS (\n\nSELECT\n\ts.block_number,\n s.block_timestamp,\n s.tx_hash,\n s.origin_function_signature,\n s.origin_from_address,\n s.origin_from_address AS tx_to,\n s.origin_to_address,\n event_index,\n event_name,\n pool_address,\n pool_address AS contract_address,\n pool_name,\n sender,\n sold_id,\n tokens_sold,\n COALESCE(sold.token_address,e.token_in) AS token_in,\n e.symbol_in AS symbol_in,\n bought_id,\n tokens_bought,\n COALESCE(bought.token_address,e.token_out) AS token_out,\n e.symbol_out AS symbol_out,\n s._log_id,\n _inserted_timestamp,\n platform,\n protocol,\n version,\n type\nFROM\n curve_base s\n LEFT JOIN token_exchange e ON s._log_id = e._log_id\n LEFT JOIN from_transfers sold\n ON tokens_sold = sold.amount\n AND s.tx_hash = sold.tx_hash\n LEFT JOIN to_transfers bought\n ON tokens_bought = bought.amount\n AND s.tx_hash = bought.tx_hash\nWHERE\n\ttokens_sold <> 0\nqualify(ROW_NUMBER() over(PARTITION BY s._log_id\n ORDER BY\n _inserted_timestamp DESC)) = 1 \n)\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n tx_to,\n origin_to_address,\n event_index,\n event_name,\n pool_address,\n contract_address,\n pool_name,\n sender,\n sold_id,\n tokens_sold,\n token_in,\n symbol_in,\n bought_id,\n tokens_bought,\n token_out,\n symbol_out,\n _log_id,\n _inserted_timestamp,\n platform,\n protocol,\n version,\n type\nFROM\n ready_pool_info", "language": "sql", "refs": [{"name": "silver_dex__curve_pools", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_dex__curve_pools", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/curve/silver_dex__curve_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH pool_meta AS (\n\n SELECT\n pool_address,\n pool_name,\n token_address,\n pool_symbol AS symbol,\n token_id :: INTEGER AS token_id,\n token_type :: STRING AS token_type,\n platform,\n protocol,\n version,\n type\n FROM\n {{ ref('silver_dex__curve_pools') }}\n),\n\npools AS (\n SELECT \n DISTINCT pool_address,\n pool_name,\n platform,\n protocol,\n version,\n type\n FROM pool_meta\n QUALIFY (ROW_NUMBER() OVER (PARTITION BY pool_address ORDER BY pool_name ASC NULLS LAST)) = 1\n),\n\ncurve_base AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n CASE\n WHEN topics [0] :: STRING = '0xd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b' THEN 'TokenExchangeUnderlying'\n ELSE 'TokenExchange'\n END AS event_name,\n contract_address AS pool_address,\n pool_name,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )) AS sold_id,\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )) AS tokens_sold,\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )) AS bought_id,\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )) AS tokens_bought,\n platform,\n protocol,\n version,\n type,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__fact_event_logs') }} l\n INNER JOIN pools p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING IN (\n '0x143f1f8e861fbdeddd5b46e844b7d3ac7b86a122f36e8c463859ee6811b1f29c', --TokenExchange\n '0x8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd97140', --TokenExchange\n '0xb2e76ae99761dc136e598d4a629bb347eccb9532a5f8bbd72e18467c3c34cc98', --TokenExchange\n '0xd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b' --TokenExchangeUnderlying\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\n\ntoken_exchange AS (\n\nSELECT\n\t_log_id,\n MAX(CASE WHEN sold_id = token_id THEN token_address END) AS token_in,\n MAX(CASE WHEN bought_id = token_id THEN token_address END) AS token_out,\n MAX(CASE WHEN sold_id = token_id THEN symbol END) AS symbol_in,\n MAX(CASE WHEN bought_id = token_id THEN symbol END) AS symbol_out\nFROM curve_base t\nLEFT JOIN pool_meta p ON p.pool_address = t.pool_address AND (p.token_id = t.sold_id OR p.token_id = t.bought_id)\nWHERE token_type = 'coins'\nGROUP BY 1\n),\n\ntoken_transfers AS (\n SELECT\n tx_hash,\n contract_address AS token_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n DATA :: STRING\n )\n ) AS amount,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS to_address,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n curve_base\n )\n AND CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) <> '0x0000000000000000000000000000000000000000'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nfrom_transfers AS (\n SELECT\n DISTINCT tx_hash,\n token_address,\n from_address,\n amount\n FROM\n token_transfers\n),\nto_transfers AS (\n SELECT\n DISTINCT tx_hash,\n token_address,\n to_address,\n amount\n FROM\n token_transfers\n),\n\nready_pool_info AS (\n\nSELECT\n\ts.block_number,\n s.block_timestamp,\n s.tx_hash,\n s.origin_function_signature,\n s.origin_from_address,\n s.origin_from_address AS tx_to,\n s.origin_to_address,\n event_index,\n event_name,\n pool_address,\n pool_address AS contract_address,\n pool_name,\n sender,\n sold_id,\n tokens_sold,\n COALESCE(sold.token_address,e.token_in) AS token_in,\n e.symbol_in AS symbol_in,\n bought_id,\n tokens_bought,\n COALESCE(bought.token_address,e.token_out) AS token_out,\n e.symbol_out AS symbol_out,\n s._log_id,\n _inserted_timestamp,\n platform,\n protocol,\n version,\n type\nFROM\n curve_base s\n LEFT JOIN token_exchange e ON s._log_id = e._log_id\n LEFT JOIN from_transfers sold\n ON tokens_sold = sold.amount\n AND s.tx_hash = sold.tx_hash\n LEFT JOIN to_transfers bought\n ON tokens_bought = bought.amount\n AND s.tx_hash = bought.tx_hash\nWHERE\n\ttokens_sold <> 0\nqualify(ROW_NUMBER() over(PARTITION BY s._log_id\n ORDER BY\n _inserted_timestamp DESC)) = 1 \n)\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n tx_to,\n origin_to_address,\n event_index,\n event_name,\n pool_address,\n contract_address,\n pool_name,\n sender,\n sold_id,\n tokens_sold,\n token_in,\n symbol_in,\n bought_id,\n tokens_bought,\n token_out,\n symbol_out,\n _log_id,\n _inserted_timestamp,\n platform,\n protocol,\n version,\n type\nFROM\n ready_pool_info\n*/\n\n\n\nWITH pool_meta AS (\n\n SELECT\n pool_address,\n pool_name,\n token_address,\n pool_symbol AS symbol,\n token_id :: INTEGER AS token_id,\n token_type :: STRING AS token_type,\n platform,\n protocol,\n version,\n type\n FROM\n polygon.silver_dex.curve_pools\n),\n\npools AS (\n SELECT \n DISTINCT pool_address,\n pool_name,\n platform,\n protocol,\n version,\n type\n FROM pool_meta\n QUALIFY (ROW_NUMBER() OVER (PARTITION BY pool_address ORDER BY pool_name ASC NULLS LAST)) = 1\n),\n\ncurve_base AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n CASE\n WHEN topics [0] :: STRING = '0xd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b' THEN 'TokenExchangeUnderlying'\n ELSE 'TokenExchange'\n END AS event_name,\n contract_address AS pool_address,\n pool_name,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )) AS sold_id,\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )) AS tokens_sold,\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )) AS bought_id,\n TRY_TO_NUMBER(utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )) AS tokens_bought,\n platform,\n protocol,\n version,\n type,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.fact_event_logs l\n INNER JOIN pools p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING IN (\n '0x143f1f8e861fbdeddd5b46e844b7d3ac7b86a122f36e8c463859ee6811b1f29c', --TokenExchange\n '0x8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd97140', --TokenExchange\n '0xb2e76ae99761dc136e598d4a629bb347eccb9532a5f8bbd72e18467c3c34cc98', --TokenExchange\n '0xd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b' --TokenExchangeUnderlying\n )\n AND tx_succeeded\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.curve_swaps\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\n\ntoken_exchange AS (\n\nSELECT\n\t_log_id,\n MAX(CASE WHEN sold_id = token_id THEN token_address END) AS token_in,\n MAX(CASE WHEN bought_id = token_id THEN token_address END) AS token_out,\n MAX(CASE WHEN sold_id = token_id THEN symbol END) AS symbol_in,\n MAX(CASE WHEN bought_id = token_id THEN symbol END) AS symbol_out\nFROM curve_base t\nLEFT JOIN pool_meta p ON p.pool_address = t.pool_address AND (p.token_id = t.sold_id OR p.token_id = t.bought_id)\nWHERE token_type = 'coins'\nGROUP BY 1\n),\n\ntoken_transfers AS (\n SELECT\n tx_hash,\n contract_address AS token_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n DATA :: STRING\n )\n ) AS amount,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS to_address,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n curve_base\n )\n AND CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) <> '0x0000000000000000000000000000000000000000'\n AND tx_succeeded\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.curve_swaps\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nfrom_transfers AS (\n SELECT\n DISTINCT tx_hash,\n token_address,\n from_address,\n amount\n FROM\n token_transfers\n),\nto_transfers AS (\n SELECT\n DISTINCT tx_hash,\n token_address,\n to_address,\n amount\n FROM\n token_transfers\n),\n\nready_pool_info AS (\n\nSELECT\n\ts.block_number,\n s.block_timestamp,\n s.tx_hash,\n s.origin_function_signature,\n s.origin_from_address,\n s.origin_from_address AS tx_to,\n s.origin_to_address,\n event_index,\n event_name,\n pool_address,\n pool_address AS contract_address,\n pool_name,\n sender,\n sold_id,\n tokens_sold,\n COALESCE(sold.token_address,e.token_in) AS token_in,\n e.symbol_in AS symbol_in,\n bought_id,\n tokens_bought,\n COALESCE(bought.token_address,e.token_out) AS token_out,\n e.symbol_out AS symbol_out,\n s._log_id,\n _inserted_timestamp,\n platform,\n protocol,\n version,\n type\nFROM\n curve_base s\n LEFT JOIN token_exchange e ON s._log_id = e._log_id\n LEFT JOIN from_transfers sold\n ON tokens_sold = sold.amount\n AND s.tx_hash = sold.tx_hash\n LEFT JOIN to_transfers bought\n ON tokens_bought = bought.amount\n AND s.tx_hash = bought.tx_hash\nWHERE\n\ttokens_sold <> 0\nqualify(ROW_NUMBER() over(PARTITION BY s._log_id\n ORDER BY\n _inserted_timestamp DESC)) = 1 \n)\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n tx_to,\n origin_to_address,\n event_index,\n event_name,\n pool_address,\n contract_address,\n pool_name,\n sender,\n sold_id,\n tokens_sold,\n token_in,\n symbol_in,\n bought_id,\n tokens_bought,\n token_out,\n symbol_out,\n _log_id,\n _inserted_timestamp,\n platform,\n protocol,\n version,\n type\nFROM\n ready_pool_info", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__curve_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__curve_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/curve/silver_dex__curve_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/curve/silver_dex__curve_pools.sql", "unique_id": "model.fsc_evm.silver_dex__curve_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "curve", "silver_dex__curve_pools"], "alias": "curve_pools", "checksum": {"name": "sha256", "checksum": "c2810bebfcdcc8f1194495e29496435394d71d5d0da15613787e6757b501c09e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {"POOL_ADDRESS": {"name": "POOL_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/dex/silver/curve/silver_dex__curve_pools.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "full_refresh": false, "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018441.5038855, "relation_name": "polygon.silver_dex.curve_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'curve'\n),\ncontract_deployments AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address AS deployer_address,\n to_address AS contract_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp AS _inserted_timestamp,\n ROW_NUMBER() over (\n ORDER BY\n contract_address\n ) AS row_num\n FROM\n {{ ref(\n 'core__fact_traces'\n ) }} t \n INNER JOIN contract_mapping m\n ON t.from_address = m.contract_address\n WHERE\n t.TYPE ILIKE 'create%'\n AND trace_succeeded\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n\nqualify(ROW_NUMBER() over(PARTITION BY to_address\nORDER BY\n block_timestamp ASC)) = 1\n),\nfunction_sigs AS (\n SELECT\n '0x87cb4f57' AS function_sig,\n 'base_coins' AS function_name\n UNION ALL\n SELECT\n '0xb9947eb0' AS function_sig,\n 'underlying_coins' AS function_name\n UNION ALL\n SELECT\n '0xc6610657' AS function_sig,\n 'coins' AS function_name\n UNION ALL\n SELECT\n '0x06fdde03' AS function_sig,\n 'name' AS function_name\n UNION ALL\n SELECT\n '0x95d89b41' AS function_sig,\n 'symbol' AS function_name\n UNION ALL\n SELECT\n '0x313ce567' AS function_sig,\n 'decimals' AS function_name\n),\nfunction_inputs AS (\n SELECT\n SEQ4() AS function_input\n FROM\n TABLE(GENERATOR(rowcount => 8))\n),\ninputs_coins AS (\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n (ROW_NUMBER() over (PARTITION BY contract_address\n ORDER BY\n block_number)) - 1 AS function_input\n FROM\n contract_deployments\n JOIN function_sigs\n ON 1 = 1\n JOIN function_inputs\n ON 1 = 1\n WHERE\n function_name = 'coins'\n),\ninputs_base_coins AS (\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n (ROW_NUMBER() over (PARTITION BY contract_address\n ORDER BY\n block_number)) - 1 AS function_input\n FROM\n contract_deployments\n JOIN function_sigs\n ON 1 = 1\n JOIN function_inputs\n ON 1 = 1\n WHERE\n function_name = 'base_coins'\n),\ninputs_underlying_coins AS (\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n (ROW_NUMBER() over (PARTITION BY contract_address\n ORDER BY\n block_number)) - 1 AS function_input\n FROM\n contract_deployments\n JOIN function_sigs\n ON 1 = 1\n JOIN function_inputs\n ON 1 = 1\n WHERE\n function_name = 'underlying_coins'\n),\ninputs_pool_details AS (\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n NULL AS function_input\n FROM\n contract_deployments\n JOIN function_sigs\n ON 1 = 1\n WHERE\n function_name IN (\n 'name',\n 'symbol',\n 'decimals'\n )\n),\nall_inputs AS (\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n function_input\n FROM\n inputs_coins\n UNION ALL\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n function_input\n FROM\n inputs_base_coins\n UNION ALL\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n function_input\n FROM\n inputs_underlying_coins\n UNION ALL\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n function_input\n FROM\n inputs_pool_details\n),\nbuild_rpc_requests AS (\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n function_input,\n CONCAT(\n function_sig,\n LPAD(IFNULL(function_input, 0), 64, '0')\n ) AS input,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{'to': contract_address, 'from': null, 'data':input }, utils.udf_int_to_hex(block_number)],\n concat_ws(\n '-',\n contract_address,\n input,\n block_number\n )\n ) AS rpc_request,\n row_num,\n CEIL(\n row_num / 50\n ) AS batch_no\n FROM\n all_inputs\n LEFT JOIN contract_deployments USING(contract_address)\n),\npool_token_reads AS (\n\n{% if is_incremental() %}\n{% for item in range(6) %}\n (\n SELECT\n live.udf_api('POST','{{ vars.GLOBAL_NODE_URL }}',{}, batch_rpc_request, '{{ vars.GLOBAL_NODE_VAULT_PATH }}') AS read_output, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\n FROM\n build_rpc_requests\n WHERE\n batch_no = {{ item }} + 1\n AND batch_no IN (\n SELECT\n DISTINCT batch_no\n FROM\n build_rpc_requests))) {% if not loop.last %}\n UNION ALL\n {% endif %}\n {% endfor %}\n{% else %}\n {% for item in range(60) %}\n (\n SELECT\n live.udf_api('POST','{{ vars.GLOBAL_NODE_URL }}',{}, batch_rpc_request, '{{ vars.GLOBAL_NODE_VAULT_PATH }}') AS read_output, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\n FROM\n build_rpc_requests\n WHERE\n batch_no = {{ item }} + 1\n AND batch_no IN (\n SELECT\n DISTINCT batch_no\n FROM\n build_rpc_requests))) {% if not loop.last %}\n UNION ALL\n {% endif %}\n {% endfor %}\n{% endif %}),\nreads_adjusted AS (\n SELECT\n VALUE :id :: STRING AS read_id,\n VALUE :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n read_id_object [0] :: STRING AS contract_address,\n read_id_object [2] :: STRING AS block_number,\n LEFT(\n read_id_object [1] :: STRING,\n 10\n ) AS function_sig,\n RIGHT(\n read_id_object [1],\n LENGTH(\n read_id_object [1] - 10\n )\n ) :: INT AS function_input,\n _inserted_timestamp\n FROM\n pool_token_reads,\n LATERAL FLATTEN(\n input => read_output :data\n )\n),\ntokens AS (\n SELECT\n contract_address,\n function_sig,\n function_name,\n function_input,\n read_result,\n regexp_substr_all(SUBSTR(read_result, 3, len(read_result)), '.{64}') [0] AS segmented_token_address,\n _inserted_timestamp\n FROM\n reads_adjusted\n LEFT JOIN function_sigs USING(function_sig)\n WHERE\n function_name IN (\n 'coins',\n 'base_coins',\n 'underlying_coins'\n )\n AND read_result IS NOT NULL\n),\npool_details AS (\n SELECT\n contract_address,\n function_sig,\n function_name,\n function_input,\n read_result,\n regexp_substr_all(SUBSTR(read_result, 3, len(read_result)), '.{64}') AS segmented_output,\n _inserted_timestamp\n FROM\n reads_adjusted\n LEFT JOIN function_sigs USING(function_sig)\n WHERE\n function_name IN (\n 'name',\n 'symbol',\n 'decimals'\n )\n AND read_result IS NOT NULL\n),\nall_pools AS (\n SELECT\n t.contract_address AS pool_address,\n CONCAT('0x', SUBSTRING(t.segmented_token_address, 25, 40)) AS token_address,\n function_input AS token_id,\n function_name AS token_type,\n MIN(\n CASE\n WHEN p.function_name = 'symbol' THEN utils.udf_hex_to_string(RTRIM(p.segmented_output [2] :: STRING, 0))\n END\n ) AS pool_symbol,\n MIN(\n CASE\n WHEN p.function_name = 'name' THEN CONCAT(\n utils.udf_hex_to_string(\n p.segmented_output [2] :: STRING\n ),\n utils.udf_hex_to_string(\n segmented_output [3] :: STRING\n )\n )\n END\n ) AS pool_name,\n MIN(\n CASE\n WHEN p.read_result :: STRING = '0x' THEN NULL\n ELSE utils.udf_hex_to_int(LEFT(p.read_result :: STRING, 66))\n END\n ) :: INTEGER AS pool_decimals,\n CONCAT(\n t.contract_address,\n '-',\n CONCAT('0x', SUBSTRING(t.segmented_token_address, 25, 40)),\n '-',\n function_input,\n '-',\n function_name\n ) AS pool_id,\n MAX(\n t._inserted_timestamp\n ) AS _inserted_timestamp\n FROM\n tokens t\n LEFT JOIN pool_details p USING(contract_address)\n WHERE\n token_address IS NOT NULL\n AND token_address <> '0x0000000000000000000000000000000000000000'\n GROUP BY\n 1,\n 2,\n 3,\n 4\n),\nfinal_pools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n deployer_address,\n pool_address,\n CASE\n WHEN token_address = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE token_address\n END AS token_address,\n token_id,\n token_type,\n CASE\n WHEN token_address = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL }}'\n WHEN pool_symbol IS NULL THEN C.symbol\n ELSE pool_symbol\n END AS pool_symbol,\n pool_name,\n CASE\n WHEN token_address = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '18'\n WHEN pool_decimals IS NULL THEN C.decimals\n ELSE pool_decimals\n END AS pool_decimals,\n pool_id,\n d.protocol,\n d.version,\n d.platform,\n d.type,\n _call_id,\n A._inserted_timestamp\n FROM\n all_pools A\n LEFT JOIN {{ ref('core__dim_contracts') }} C\n ON A.token_address = C.address\n LEFT JOIN contract_deployments d\n ON A.pool_address = d.contract_address qualify(ROW_NUMBER() over(PARTITION BY pool_address, token_address\n ORDER BY\n A._inserted_timestamp DESC)) = 1\n),\nlegacy_pools AS (\n SELECT\n block_number,\n block_timestamp :: TIMESTAMP AS block_timestamp,\n tx_hash,\n deployer_address,\n pool_address,\n token_address,\n token_index :: STRING AS token_id,\n token_type,\n token_symbol AS pool_symbol,\n pool_name,\n token_decimals :: INTEGER AS pool_decimals,\n CONCAT(\n pool_id,\n '-',\n token_id,\n '-',\n token_type\n ) AS pool_id,\n 'curve' AS protocol,\n 'v1' AS version,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n 'legacy' AS type,\n _call_id,\n _inserted_timestamp :: TIMESTAMP AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__eth_curve_pools_legacy') }}\n WHERE\n {% if vars.GLOBAL_PROJECT_NAME == 'ethereum' %}\n 1=1\n AND \n pool_address NOT IN (\n SELECT\n pool_address\n FROM\n final_pools\n )\n {% else %}\n 1=0\n {% endif %}\n),\nFINAL AS (\n SELECT\n *\n FROM\n final_pools\n UNION ALL\n SELECT\n *\n FROM\n legacy_pools\n)\nSELECT\n *,\n ROW_NUMBER() over (\n PARTITION BY pool_address\n ORDER BY\n token_address ASC\n ) AS token_num\nFROM\n FINAL", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "silver_dex__eth_curve_pools_legacy", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces", "model.fsc_evm.core__dim_contracts", "seed.fsc_evm.silver_dex__eth_curve_pools_legacy"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/curve/silver_dex__curve_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'curve'\n),\ncontract_deployments AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address AS deployer_address,\n to_address AS contract_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp AS _inserted_timestamp,\n ROW_NUMBER() over (\n ORDER BY\n contract_address\n ) AS row_num\n FROM\n {{ ref(\n 'core__fact_traces'\n ) }} t \n INNER JOIN contract_mapping m\n ON t.from_address = m.contract_address\n WHERE\n t.TYPE ILIKE 'create%'\n AND trace_succeeded\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n\nqualify(ROW_NUMBER() over(PARTITION BY to_address\nORDER BY\n block_timestamp ASC)) = 1\n),\nfunction_sigs AS (\n SELECT\n '0x87cb4f57' AS function_sig,\n 'base_coins' AS function_name\n UNION ALL\n SELECT\n '0xb9947eb0' AS function_sig,\n 'underlying_coins' AS function_name\n UNION ALL\n SELECT\n '0xc6610657' AS function_sig,\n 'coins' AS function_name\n UNION ALL\n SELECT\n '0x06fdde03' AS function_sig,\n 'name' AS function_name\n UNION ALL\n SELECT\n '0x95d89b41' AS function_sig,\n 'symbol' AS function_name\n UNION ALL\n SELECT\n '0x313ce567' AS function_sig,\n 'decimals' AS function_name\n),\nfunction_inputs AS (\n SELECT\n SEQ4() AS function_input\n FROM\n TABLE(GENERATOR(rowcount => 8))\n),\ninputs_coins AS (\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n (ROW_NUMBER() over (PARTITION BY contract_address\n ORDER BY\n block_number)) - 1 AS function_input\n FROM\n contract_deployments\n JOIN function_sigs\n ON 1 = 1\n JOIN function_inputs\n ON 1 = 1\n WHERE\n function_name = 'coins'\n),\ninputs_base_coins AS (\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n (ROW_NUMBER() over (PARTITION BY contract_address\n ORDER BY\n block_number)) - 1 AS function_input\n FROM\n contract_deployments\n JOIN function_sigs\n ON 1 = 1\n JOIN function_inputs\n ON 1 = 1\n WHERE\n function_name = 'base_coins'\n),\ninputs_underlying_coins AS (\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n (ROW_NUMBER() over (PARTITION BY contract_address\n ORDER BY\n block_number)) - 1 AS function_input\n FROM\n contract_deployments\n JOIN function_sigs\n ON 1 = 1\n JOIN function_inputs\n ON 1 = 1\n WHERE\n function_name = 'underlying_coins'\n),\ninputs_pool_details AS (\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n NULL AS function_input\n FROM\n contract_deployments\n JOIN function_sigs\n ON 1 = 1\n WHERE\n function_name IN (\n 'name',\n 'symbol',\n 'decimals'\n )\n),\nall_inputs AS (\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n function_input\n FROM\n inputs_coins\n UNION ALL\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n function_input\n FROM\n inputs_base_coins\n UNION ALL\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n function_input\n FROM\n inputs_underlying_coins\n UNION ALL\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n function_input\n FROM\n inputs_pool_details\n),\nbuild_rpc_requests AS (\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n function_input,\n CONCAT(\n function_sig,\n LPAD(IFNULL(function_input, 0), 64, '0')\n ) AS input,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{'to': contract_address, 'from': null, 'data':input }, utils.udf_int_to_hex(block_number)],\n concat_ws(\n '-',\n contract_address,\n input,\n block_number\n )\n ) AS rpc_request,\n row_num,\n CEIL(\n row_num / 50\n ) AS batch_no\n FROM\n all_inputs\n LEFT JOIN contract_deployments USING(contract_address)\n),\npool_token_reads AS (\n\n{% if is_incremental() %}\n{% for item in range(6) %}\n (\n SELECT\n live.udf_api('POST','{{ vars.GLOBAL_NODE_URL }}',{}, batch_rpc_request, '{{ vars.GLOBAL_NODE_VAULT_PATH }}') AS read_output, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\n FROM\n build_rpc_requests\n WHERE\n batch_no = {{ item }} + 1\n AND batch_no IN (\n SELECT\n DISTINCT batch_no\n FROM\n build_rpc_requests))) {% if not loop.last %}\n UNION ALL\n {% endif %}\n {% endfor %}\n{% else %}\n {% for item in range(60) %}\n (\n SELECT\n live.udf_api('POST','{{ vars.GLOBAL_NODE_URL }}',{}, batch_rpc_request, '{{ vars.GLOBAL_NODE_VAULT_PATH }}') AS read_output, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\n FROM\n build_rpc_requests\n WHERE\n batch_no = {{ item }} + 1\n AND batch_no IN (\n SELECT\n DISTINCT batch_no\n FROM\n build_rpc_requests))) {% if not loop.last %}\n UNION ALL\n {% endif %}\n {% endfor %}\n{% endif %}),\nreads_adjusted AS (\n SELECT\n VALUE :id :: STRING AS read_id,\n VALUE :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n read_id_object [0] :: STRING AS contract_address,\n read_id_object [2] :: STRING AS block_number,\n LEFT(\n read_id_object [1] :: STRING,\n 10\n ) AS function_sig,\n RIGHT(\n read_id_object [1],\n LENGTH(\n read_id_object [1] - 10\n )\n ) :: INT AS function_input,\n _inserted_timestamp\n FROM\n pool_token_reads,\n LATERAL FLATTEN(\n input => read_output :data\n )\n),\ntokens AS (\n SELECT\n contract_address,\n function_sig,\n function_name,\n function_input,\n read_result,\n regexp_substr_all(SUBSTR(read_result, 3, len(read_result)), '.{64}') [0] AS segmented_token_address,\n _inserted_timestamp\n FROM\n reads_adjusted\n LEFT JOIN function_sigs USING(function_sig)\n WHERE\n function_name IN (\n 'coins',\n 'base_coins',\n 'underlying_coins'\n )\n AND read_result IS NOT NULL\n),\npool_details AS (\n SELECT\n contract_address,\n function_sig,\n function_name,\n function_input,\n read_result,\n regexp_substr_all(SUBSTR(read_result, 3, len(read_result)), '.{64}') AS segmented_output,\n _inserted_timestamp\n FROM\n reads_adjusted\n LEFT JOIN function_sigs USING(function_sig)\n WHERE\n function_name IN (\n 'name',\n 'symbol',\n 'decimals'\n )\n AND read_result IS NOT NULL\n),\nall_pools AS (\n SELECT\n t.contract_address AS pool_address,\n CONCAT('0x', SUBSTRING(t.segmented_token_address, 25, 40)) AS token_address,\n function_input AS token_id,\n function_name AS token_type,\n MIN(\n CASE\n WHEN p.function_name = 'symbol' THEN utils.udf_hex_to_string(RTRIM(p.segmented_output [2] :: STRING, 0))\n END\n ) AS pool_symbol,\n MIN(\n CASE\n WHEN p.function_name = 'name' THEN CONCAT(\n utils.udf_hex_to_string(\n p.segmented_output [2] :: STRING\n ),\n utils.udf_hex_to_string(\n segmented_output [3] :: STRING\n )\n )\n END\n ) AS pool_name,\n MIN(\n CASE\n WHEN p.read_result :: STRING = '0x' THEN NULL\n ELSE utils.udf_hex_to_int(LEFT(p.read_result :: STRING, 66))\n END\n ) :: INTEGER AS pool_decimals,\n CONCAT(\n t.contract_address,\n '-',\n CONCAT('0x', SUBSTRING(t.segmented_token_address, 25, 40)),\n '-',\n function_input,\n '-',\n function_name\n ) AS pool_id,\n MAX(\n t._inserted_timestamp\n ) AS _inserted_timestamp\n FROM\n tokens t\n LEFT JOIN pool_details p USING(contract_address)\n WHERE\n token_address IS NOT NULL\n AND token_address <> '0x0000000000000000000000000000000000000000'\n GROUP BY\n 1,\n 2,\n 3,\n 4\n),\nfinal_pools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n deployer_address,\n pool_address,\n CASE\n WHEN token_address = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE token_address\n END AS token_address,\n token_id,\n token_type,\n CASE\n WHEN token_address = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL }}'\n WHEN pool_symbol IS NULL THEN C.symbol\n ELSE pool_symbol\n END AS pool_symbol,\n pool_name,\n CASE\n WHEN token_address = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '18'\n WHEN pool_decimals IS NULL THEN C.decimals\n ELSE pool_decimals\n END AS pool_decimals,\n pool_id,\n d.protocol,\n d.version,\n d.platform,\n d.type,\n _call_id,\n A._inserted_timestamp\n FROM\n all_pools A\n LEFT JOIN {{ ref('core__dim_contracts') }} C\n ON A.token_address = C.address\n LEFT JOIN contract_deployments d\n ON A.pool_address = d.contract_address qualify(ROW_NUMBER() over(PARTITION BY pool_address, token_address\n ORDER BY\n A._inserted_timestamp DESC)) = 1\n),\nlegacy_pools AS (\n SELECT\n block_number,\n block_timestamp :: TIMESTAMP AS block_timestamp,\n tx_hash,\n deployer_address,\n pool_address,\n token_address,\n token_index :: STRING AS token_id,\n token_type,\n token_symbol AS pool_symbol,\n pool_name,\n token_decimals :: INTEGER AS pool_decimals,\n CONCAT(\n pool_id,\n '-',\n token_id,\n '-',\n token_type\n ) AS pool_id,\n 'curve' AS protocol,\n 'v1' AS version,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n 'legacy' AS type,\n _call_id,\n _inserted_timestamp :: TIMESTAMP AS _inserted_timestamp\n FROM\n {{ ref('silver_dex__eth_curve_pools_legacy') }}\n WHERE\n {% if vars.GLOBAL_PROJECT_NAME == 'ethereum' %}\n 1=1\n AND \n pool_address NOT IN (\n SELECT\n pool_address\n FROM\n final_pools\n )\n {% else %}\n 1=0\n {% endif %}\n),\nFINAL AS (\n SELECT\n *\n FROM\n final_pools\n UNION ALL\n SELECT\n *\n FROM\n legacy_pools\n)\nSELECT\n *,\n ROW_NUMBER() over (\n PARTITION BY pool_address\n ORDER BY\n token_address ASC\n ) AS token_num\nFROM\n FINAL\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'curve'\n),\ncontract_deployments AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address AS deployer_address,\n to_address AS contract_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp AS _inserted_timestamp,\n ROW_NUMBER() over (\n ORDER BY\n contract_address\n ) AS row_num\n FROM\n polygon.core.fact_traces t \n INNER JOIN contract_mapping m\n ON t.from_address = m.contract_address\n WHERE\n t.TYPE ILIKE 'create%'\n AND trace_succeeded\n AND tx_succeeded\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.curve_pools\n)\nAND _inserted_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\nqualify(ROW_NUMBER() over(PARTITION BY to_address\nORDER BY\n block_timestamp ASC)) = 1\n),\nfunction_sigs AS (\n SELECT\n '0x87cb4f57' AS function_sig,\n 'base_coins' AS function_name\n UNION ALL\n SELECT\n '0xb9947eb0' AS function_sig,\n 'underlying_coins' AS function_name\n UNION ALL\n SELECT\n '0xc6610657' AS function_sig,\n 'coins' AS function_name\n UNION ALL\n SELECT\n '0x06fdde03' AS function_sig,\n 'name' AS function_name\n UNION ALL\n SELECT\n '0x95d89b41' AS function_sig,\n 'symbol' AS function_name\n UNION ALL\n SELECT\n '0x313ce567' AS function_sig,\n 'decimals' AS function_name\n),\nfunction_inputs AS (\n SELECT\n SEQ4() AS function_input\n FROM\n TABLE(GENERATOR(rowcount => 8))\n),\ninputs_coins AS (\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n (ROW_NUMBER() over (PARTITION BY contract_address\n ORDER BY\n block_number)) - 1 AS function_input\n FROM\n contract_deployments\n JOIN function_sigs\n ON 1 = 1\n JOIN function_inputs\n ON 1 = 1\n WHERE\n function_name = 'coins'\n),\ninputs_base_coins AS (\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n (ROW_NUMBER() over (PARTITION BY contract_address\n ORDER BY\n block_number)) - 1 AS function_input\n FROM\n contract_deployments\n JOIN function_sigs\n ON 1 = 1\n JOIN function_inputs\n ON 1 = 1\n WHERE\n function_name = 'base_coins'\n),\ninputs_underlying_coins AS (\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n (ROW_NUMBER() over (PARTITION BY contract_address\n ORDER BY\n block_number)) - 1 AS function_input\n FROM\n contract_deployments\n JOIN function_sigs\n ON 1 = 1\n JOIN function_inputs\n ON 1 = 1\n WHERE\n function_name = 'underlying_coins'\n),\ninputs_pool_details AS (\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n NULL AS function_input\n FROM\n contract_deployments\n JOIN function_sigs\n ON 1 = 1\n WHERE\n function_name IN (\n 'name',\n 'symbol',\n 'decimals'\n )\n),\nall_inputs AS (\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n function_input\n FROM\n inputs_coins\n UNION ALL\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n function_input\n FROM\n inputs_base_coins\n UNION ALL\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n function_input\n FROM\n inputs_underlying_coins\n UNION ALL\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n function_input\n FROM\n inputs_pool_details\n),\nbuild_rpc_requests AS (\n SELECT\n deployer_address,\n contract_address,\n block_number,\n function_sig,\n function_input,\n CONCAT(\n function_sig,\n LPAD(IFNULL(function_input, 0), 64, '0')\n ) AS input,\n utils.udf_json_rpc_call(\n 'eth_call',\n [{'to': contract_address, 'from': null, 'data':input }, utils.udf_int_to_hex(block_number)],\n concat_ws(\n '-',\n contract_address,\n input,\n block_number\n )\n ) AS rpc_request,\n row_num,\n CEIL(\n row_num / 50\n ) AS batch_no\n FROM\n all_inputs\n LEFT JOIN contract_deployments USING(contract_address)\n),\npool_token_reads AS (\n\n\n\n (\n SELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\n FROM\n build_rpc_requests\n WHERE\n batch_no = 0 + 1\n AND batch_no IN (\n SELECT\n DISTINCT batch_no\n FROM\n build_rpc_requests))) \n UNION ALL\n \n \n (\n SELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\n FROM\n build_rpc_requests\n WHERE\n batch_no = 1 + 1\n AND batch_no IN (\n SELECT\n DISTINCT batch_no\n FROM\n build_rpc_requests))) \n UNION ALL\n \n \n (\n SELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\n FROM\n build_rpc_requests\n WHERE\n batch_no = 2 + 1\n AND batch_no IN (\n SELECT\n DISTINCT batch_no\n FROM\n build_rpc_requests))) \n UNION ALL\n \n \n (\n SELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\n FROM\n build_rpc_requests\n WHERE\n batch_no = 3 + 1\n AND batch_no IN (\n SELECT\n DISTINCT batch_no\n FROM\n build_rpc_requests))) \n UNION ALL\n \n \n (\n SELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\n FROM\n build_rpc_requests\n WHERE\n batch_no = 4 + 1\n AND batch_no IN (\n SELECT\n DISTINCT batch_no\n FROM\n build_rpc_requests))) \n UNION ALL\n \n \n (\n SELECT\n live.udf_api('POST','{URL}',{}, batch_rpc_request, 'Vault/prod/evm/quicknode/polygon/mainnet') AS read_output, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n ARRAY_AGG(rpc_request) batch_rpc_request\n FROM\n build_rpc_requests\n WHERE\n batch_no = 5 + 1\n AND batch_no IN (\n SELECT\n DISTINCT batch_no\n FROM\n build_rpc_requests))) \n \n),\nreads_adjusted AS (\n SELECT\n VALUE :id :: STRING AS read_id,\n VALUE :result :: STRING AS read_result,\n SPLIT(\n read_id,\n '-'\n ) AS read_id_object,\n read_id_object [0] :: STRING AS contract_address,\n read_id_object [2] :: STRING AS block_number,\n LEFT(\n read_id_object [1] :: STRING,\n 10\n ) AS function_sig,\n RIGHT(\n read_id_object [1],\n LENGTH(\n read_id_object [1] - 10\n )\n ) :: INT AS function_input,\n _inserted_timestamp\n FROM\n pool_token_reads,\n LATERAL FLATTEN(\n input => read_output :data\n )\n),\ntokens AS (\n SELECT\n contract_address,\n function_sig,\n function_name,\n function_input,\n read_result,\n regexp_substr_all(SUBSTR(read_result, 3, len(read_result)), '.{64}') [0] AS segmented_token_address,\n _inserted_timestamp\n FROM\n reads_adjusted\n LEFT JOIN function_sigs USING(function_sig)\n WHERE\n function_name IN (\n 'coins',\n 'base_coins',\n 'underlying_coins'\n )\n AND read_result IS NOT NULL\n),\npool_details AS (\n SELECT\n contract_address,\n function_sig,\n function_name,\n function_input,\n read_result,\n regexp_substr_all(SUBSTR(read_result, 3, len(read_result)), '.{64}') AS segmented_output,\n _inserted_timestamp\n FROM\n reads_adjusted\n LEFT JOIN function_sigs USING(function_sig)\n WHERE\n function_name IN (\n 'name',\n 'symbol',\n 'decimals'\n )\n AND read_result IS NOT NULL\n),\nall_pools AS (\n SELECT\n t.contract_address AS pool_address,\n CONCAT('0x', SUBSTRING(t.segmented_token_address, 25, 40)) AS token_address,\n function_input AS token_id,\n function_name AS token_type,\n MIN(\n CASE\n WHEN p.function_name = 'symbol' THEN utils.udf_hex_to_string(RTRIM(p.segmented_output [2] :: STRING, 0))\n END\n ) AS pool_symbol,\n MIN(\n CASE\n WHEN p.function_name = 'name' THEN CONCAT(\n utils.udf_hex_to_string(\n p.segmented_output [2] :: STRING\n ),\n utils.udf_hex_to_string(\n segmented_output [3] :: STRING\n )\n )\n END\n ) AS pool_name,\n MIN(\n CASE\n WHEN p.read_result :: STRING = '0x' THEN NULL\n ELSE utils.udf_hex_to_int(LEFT(p.read_result :: STRING, 66))\n END\n ) :: INTEGER AS pool_decimals,\n CONCAT(\n t.contract_address,\n '-',\n CONCAT('0x', SUBSTRING(t.segmented_token_address, 25, 40)),\n '-',\n function_input,\n '-',\n function_name\n ) AS pool_id,\n MAX(\n t._inserted_timestamp\n ) AS _inserted_timestamp\n FROM\n tokens t\n LEFT JOIN pool_details p USING(contract_address)\n WHERE\n token_address IS NOT NULL\n AND token_address <> '0x0000000000000000000000000000000000000000'\n GROUP BY\n 1,\n 2,\n 3,\n 4\n),\nfinal_pools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n deployer_address,\n pool_address,\n CASE\n WHEN token_address = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ELSE token_address\n END AS token_address,\n token_id,\n token_type,\n CASE\n WHEN token_address = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN 'WPOL'\n WHEN pool_symbol IS NULL THEN C.symbol\n ELSE pool_symbol\n END AS pool_symbol,\n pool_name,\n CASE\n WHEN token_address = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '18'\n WHEN pool_decimals IS NULL THEN C.decimals\n ELSE pool_decimals\n END AS pool_decimals,\n pool_id,\n d.protocol,\n d.version,\n d.platform,\n d.type,\n _call_id,\n A._inserted_timestamp\n FROM\n all_pools A\n LEFT JOIN polygon.core.dim_contracts C\n ON A.token_address = C.address\n LEFT JOIN contract_deployments d\n ON A.pool_address = d.contract_address qualify(ROW_NUMBER() over(PARTITION BY pool_address, token_address\n ORDER BY\n A._inserted_timestamp DESC)) = 1\n),\nlegacy_pools AS (\n SELECT\n block_number,\n block_timestamp :: TIMESTAMP AS block_timestamp,\n tx_hash,\n deployer_address,\n pool_address,\n token_address,\n token_index :: STRING AS token_id,\n token_type,\n token_symbol AS pool_symbol,\n pool_name,\n token_decimals :: INTEGER AS pool_decimals,\n CONCAT(\n pool_id,\n '-',\n token_id,\n '-',\n token_type\n ) AS pool_id,\n 'curve' AS protocol,\n 'v1' AS version,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n 'legacy' AS type,\n _call_id,\n _inserted_timestamp :: TIMESTAMP AS _inserted_timestamp\n FROM\n polygon.silver_dex.eth_curve_pools_legacy\n WHERE\n \n 1=0\n \n),\nFINAL AS (\n SELECT\n *\n FROM\n final_pools\n UNION ALL\n SELECT\n *\n FROM\n legacy_pools\n)\nSELECT\n *,\n ROW_NUMBER() over (\n PARTITION BY pool_address\n ORDER BY\n token_address ASC\n ) AS token_num\nFROM\n FINAL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__curve_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__curve_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/curve/silver_dex__curve_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/curve/silver_dex__curve_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__curve_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "curve", "silver_dex__curve_pool_actions"], "alias": "curve_pool_actions", "checksum": {"name": "sha256", "checksum": "bab80330273dbb47ca107b722bf48957dc3521d76922b357ae3c7667085a9254"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018377.79559, "relation_name": "polygon.silver_dex.curve_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n p.pool_address,\n l.topic_0,\n decoded_log :provider :: STRING AS liquidity_provider,\n COALESCE(decoded_log :token_amounts, decoded_log :token_amount) AS token_amounts,\n token_amounts [0] :: STRING AS amount0_unadj,\n token_amounts [1] :: STRING AS amount1_unadj,\n token_amounts [2] :: STRING AS amount2_unadj,\n token_amounts [3] :: STRING AS amount3_unadj,\n token_amounts [4] :: STRING AS amount4_unadj,\n token_amounts [5] :: STRING AS amount5_unadj,\n token_amounts [6] :: STRING AS amount6_unadj,\n token_amounts [7] :: STRING AS amount7_unadj,\n COALESCE(decoded_log :fees, decoded_log :fee) AS fees,\n fees [0] :: STRING AS fee0,\n fees [1] :: STRING AS fee1,\n fees [2] :: STRING AS fee2,\n fees [3] :: STRING AS fee3,\n fees [4] :: STRING AS fee4,\n fees [5] :: STRING AS fee5,\n fees [6] :: STRING AS fee6,\n fees [7] :: STRING AS fee7,\n decoded_log :invariant :: STRING AS invariant,\n decoded_log: token_supply :: STRING AS token_supply,\n decoded_log: packed_price_scale :: STRING AS packed_price_scale,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__curve_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN (\n '0xe1b60455bd9e33720b547f60e4e0cfbf1252d0f2ee0147d53029945f39fe3c1a',\n '0x423f6495a08fc652425cf4ed0d1f9e37e571d9b9529b1c1c23cce780b2e7df0d',\n '0x26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a768',\n '0x96b486485420b963edd3fdec0b0195730035600feb7de6f544383d7950fa97ee',\n '0x540ab385f9b5d450a27404172caade516b3ba3f4be88239ac56a2ad1de2a1f5a',\n '0x3f1915775e0c9a38a57a7bb7f1f9005f486fb904e1f84aa215364d567319a58d', -- AddLiquidity\n '0x9878ca375e106f2a43c3b599fc624568131c4c9a4ba66a14563715763be9d59d',\n '0x7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c',\n '0xd6cc314a0b1e3b2579f8e64248e82434072e8271290eef8ad0886709304195f5',\n '0xa49d4cf02656aebf8c771f5a8585638a2a15ee6c97cf7205d4208ed7c1df252d',\n '0xdd3c0336a16f1b64f172b7bb0dad5b2b3c7c76f91e8c4aafd6aae60dce800153' -- RemoveLiquidity\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ntransfers AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n raw_amount_precise,\n raw_amount,\n amount_precise,\n amount\n FROM \n {{ ref('core__ez_token_transfers') }}\n WHERE\n tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n evt\n )\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\npool_tokens AS (\n SELECT\n e.block_number,\n e.block_timestamp,\n e.tx_hash,\n e.event_index,\n e.origin_function_signature,\n e.origin_from_address,\n e.origin_to_address,\n e.contract_address,\n topic_0,\n pool_address,\n liquidity_provider,\n token_amounts,\n t0.contract_address AS token0,\n t1.contract_address AS token1,\n t2.contract_address AS token2,\n t3.contract_address AS token3,\n t4.contract_address AS token4,\n t5.contract_address AS token5,\n t6.contract_address AS token6,\n t7.contract_address AS token7,\n amount0_unadj,\n amount1_unadj,\n amount2_unadj,\n amount3_unadj,\n amount4_unadj,\n amount5_unadj,\n amount6_unadj,\n amount7_unadj,\n fees,\n fee0,\n fee1,\n fee2,\n fee3,\n fee4,\n fee5,\n fee6,\n fee7,\n invariant,\n token_supply,\n packed_price_scale,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM evt e \n LEFT JOIN transfers t0\n ON e.block_number = t0.block_number\n AND e.tx_hash = t0.tx_hash\n AND e.amount0_unadj = t0.raw_amount_precise\n LEFT JOIN transfers t1\n ON e.block_number = t1.block_number\n AND e.tx_hash = t1.tx_hash\n AND e.amount1_unadj = t1.raw_amount_precise\n LEFT JOIN transfers t2\n ON e.block_number = t2.block_number\n AND e.tx_hash = t2.tx_hash\n AND e.amount2_unadj = t2.raw_amount_precise\n LEFT JOIN transfers t3\n ON e.block_number = t3.block_number\n AND e.tx_hash = t3.tx_hash\n AND e.amount3_unadj = t3.raw_amount_precise\n LEFT JOIN transfers t4\n ON e.block_number = t4.block_number\n AND e.tx_hash = t4.tx_hash\n AND e.amount4_unadj = t4.raw_amount_precise\n LEFT JOIN transfers t5\n ON e.block_number = t5.block_number\n AND e.tx_hash = t5.tx_hash\n AND e.amount5_unadj = t5.raw_amount_precise\n LEFT JOIN transfers t6\n ON e.block_number = t6.block_number\n AND e.tx_hash = t6.tx_hash\n AND e.amount6_unadj = t6.raw_amount_precise\n LEFT JOIN transfers t7\n ON e.block_number = t7.block_number\n AND e.tx_hash = t7.tx_hash\n AND e.amount7_unadj = t7.raw_amount_precise\n),\nadd_liquidity AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'AddLiquidity' AS event_name,\n contract_address,\n pool_address,\n token_amounts,\n fees,\n invariant,\n token_supply,\n packed_price_scale,\n liquidity_provider,\n liquidity_provider AS sender,\n pool_address AS receiver,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n amount0_unadj,\n amount1_unadj,\n amount2_unadj,\n amount3_unadj,\n amount4_unadj,\n amount5_unadj,\n amount6_unadj,\n amount7_unadj,\n fee0,\n fee1,\n fee2,\n fee3,\n fee4,\n fee5,\n fee6,\n fee7,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n pool_tokens\n WHERE topic_0 IN (\n '0xe1b60455bd9e33720b547f60e4e0cfbf1252d0f2ee0147d53029945f39fe3c1a',\n '0x423f6495a08fc652425cf4ed0d1f9e37e571d9b9529b1c1c23cce780b2e7df0d',\n '0x26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a768',\n '0x96b486485420b963edd3fdec0b0195730035600feb7de6f544383d7950fa97ee',\n '0x540ab385f9b5d450a27404172caade516b3ba3f4be88239ac56a2ad1de2a1f5a',\n '0x3f1915775e0c9a38a57a7bb7f1f9005f486fb904e1f84aa215364d567319a58d' -- AddLiquidity\n )\n),\nremove_liquidity AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'RemoveLiquidity' AS event_name,\n contract_address,\n pool_address,\n token_amounts,\n fees,\n invariant,\n token_supply,\n packed_price_scale,\n liquidity_provider,\n liquidity_provider AS sender,\n pool_address AS receiver,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n amount0_unadj,\n amount1_unadj,\n amount2_unadj,\n amount3_unadj,\n amount4_unadj,\n amount5_unadj,\n amount6_unadj,\n amount7_unadj,\n fee0,\n fee1,\n fee2,\n fee3,\n fee4,\n fee5,\n fee6,\n fee7,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n pool_tokens\n WHERE topic_0 IN (\n '0x9878ca375e106f2a43c3b599fc624568131c4c9a4ba66a14563715763be9d59d',\n '0x7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c',\n '0xd6cc314a0b1e3b2579f8e64248e82434072e8271290eef8ad0886709304195f5',\n '0xa49d4cf02656aebf8c771f5a8585638a2a15ee6c97cf7205d4208ed7c1df252d',\n '0xdd3c0336a16f1b64f172b7bb0dad5b2b3c7c76f91e8c4aafd6aae60dce800153' -- RemoveLiquidity\n )\n),\nall_actions AS (\n SELECT\n *\n FROM\n add_liquidity\n UNION ALL\n SELECT\n *\n FROM\n remove_liquidity\n),\npool_tokens_pivoted AS (\n SELECT \n pool_address,\n MAX(CASE WHEN token_id::INT = 0 THEN token_address END) AS token_0_address,\n MAX(CASE WHEN token_id::INT = 1 THEN token_address END) AS token_1_address,\n MAX(CASE WHEN token_id::INT = 2 THEN token_address END) AS token_2_address,\n MAX(CASE WHEN token_id::INT = 3 THEN token_address END) AS token_3_address,\n MAX(CASE WHEN token_id::INT = 4 THEN token_address END) AS token_4_address,\n MAX(CASE WHEN token_id::INT = 5 THEN token_address END) AS token_5_address,\n MAX(CASE WHEN token_id::INT = 6 THEN token_address END) AS token_6_address,\n MAX(CASE WHEN token_id::INT = 7 THEN token_address END) AS token_7_address\n FROM {{ ref('silver_dex__curve_pools') }}\n GROUP BY pool_address\n)\nSELECT\n a.block_number,\n a.block_timestamp,\n a.tx_hash,\n a.event_index,\n a.origin_function_signature,\n a.origin_from_address,\n a.origin_to_address,\n event_name,\n a.contract_address,\n a.pool_address,\n token_amounts,\n ARRAY_SIZE(token_amounts) AS num_tokens,\n fees,\n invariant,\n token_supply,\n packed_price_scale,\n liquidity_provider,\n sender,\n receiver,\n CASE WHEN num_tokens >= 1 THEN COALESCE(a.token0, s.token_0_address) ELSE NULL END AS token0,\n CASE WHEN num_tokens >= 2 THEN COALESCE(a.token1, s.token_1_address) ELSE NULL END AS token1,\n CASE WHEN num_tokens >= 3 THEN COALESCE(a.token2, s.token_2_address) ELSE NULL END AS token2,\n CASE WHEN num_tokens >= 4 THEN COALESCE(a.token3, s.token_3_address) ELSE NULL END AS token3,\n CASE WHEN num_tokens >= 5 THEN COALESCE(a.token4, s.token_4_address) ELSE NULL END AS token4,\n CASE WHEN num_tokens >= 6 THEN COALESCE(a.token5, s.token_5_address) ELSE NULL END AS token5,\n CASE WHEN num_tokens >= 7 THEN COALESCE(a.token6, s.token_6_address) ELSE NULL END AS token6,\n CASE WHEN num_tokens >= 8 THEN COALESCE(a.token7, s.token_7_address) ELSE NULL END AS token7,\n amount0_unadj :: FLOAT AS amount0_unadj,\n amount1_unadj :: FLOAT AS amount1_unadj,\n amount2_unadj :: FLOAT AS amount2_unadj,\n amount3_unadj :: FLOAT AS amount3_unadj,\n amount4_unadj :: FLOAT AS amount4_unadj,\n amount5_unadj :: FLOAT AS amount5_unadj,\n amount6_unadj :: FLOAT AS amount6_unadj,\n amount7_unadj :: FLOAT AS amount7_unadj,\n fee0,\n fee1,\n fee2,\n fee3,\n fee4,\n fee5,\n fee6,\n fee7,\n a.protocol,\n a.version,\n a.type,\n a.platform,\n a._log_id,\n a.modified_timestamp\nFROM\n all_actions a \n LEFT JOIN pool_tokens_pivoted s ON a.pool_address = s.pool_address\n qualify(ROW_NUMBER() over (PARTITION BY a._log_id\nORDER BY\n a.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__ez_decoded_event_logs", "package": null, "version": null}, {"name": "silver_dex__curve_pools", "package": null, "version": null}, {"name": "core__ez_token_transfers", "package": null, "version": null}, {"name": "silver_dex__curve_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.silver_dex__curve_pools", "model.fsc_evm.core__ez_token_transfers"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/curve/silver_dex__curve_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n p.pool_address,\n l.topic_0,\n decoded_log :provider :: STRING AS liquidity_provider,\n COALESCE(decoded_log :token_amounts, decoded_log :token_amount) AS token_amounts,\n token_amounts [0] :: STRING AS amount0_unadj,\n token_amounts [1] :: STRING AS amount1_unadj,\n token_amounts [2] :: STRING AS amount2_unadj,\n token_amounts [3] :: STRING AS amount3_unadj,\n token_amounts [4] :: STRING AS amount4_unadj,\n token_amounts [5] :: STRING AS amount5_unadj,\n token_amounts [6] :: STRING AS amount6_unadj,\n token_amounts [7] :: STRING AS amount7_unadj,\n COALESCE(decoded_log :fees, decoded_log :fee) AS fees,\n fees [0] :: STRING AS fee0,\n fees [1] :: STRING AS fee1,\n fees [2] :: STRING AS fee2,\n fees [3] :: STRING AS fee3,\n fees [4] :: STRING AS fee4,\n fees [5] :: STRING AS fee5,\n fees [6] :: STRING AS fee6,\n fees [7] :: STRING AS fee7,\n decoded_log :invariant :: STRING AS invariant,\n decoded_log: token_supply :: STRING AS token_supply,\n decoded_log: packed_price_scale :: STRING AS packed_price_scale,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__ez_decoded_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__curve_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN (\n '0xe1b60455bd9e33720b547f60e4e0cfbf1252d0f2ee0147d53029945f39fe3c1a',\n '0x423f6495a08fc652425cf4ed0d1f9e37e571d9b9529b1c1c23cce780b2e7df0d',\n '0x26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a768',\n '0x96b486485420b963edd3fdec0b0195730035600feb7de6f544383d7950fa97ee',\n '0x540ab385f9b5d450a27404172caade516b3ba3f4be88239ac56a2ad1de2a1f5a',\n '0x3f1915775e0c9a38a57a7bb7f1f9005f486fb904e1f84aa215364d567319a58d', -- AddLiquidity\n '0x9878ca375e106f2a43c3b599fc624568131c4c9a4ba66a14563715763be9d59d',\n '0x7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c',\n '0xd6cc314a0b1e3b2579f8e64248e82434072e8271290eef8ad0886709304195f5',\n '0xa49d4cf02656aebf8c771f5a8585638a2a15ee6c97cf7205d4208ed7c1df252d',\n '0xdd3c0336a16f1b64f172b7bb0dad5b2b3c7c76f91e8c4aafd6aae60dce800153' -- RemoveLiquidity\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ntransfers AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n raw_amount_precise,\n raw_amount,\n amount_precise,\n amount\n FROM \n {{ ref('core__ez_token_transfers') }}\n WHERE\n tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n evt\n )\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\npool_tokens AS (\n SELECT\n e.block_number,\n e.block_timestamp,\n e.tx_hash,\n e.event_index,\n e.origin_function_signature,\n e.origin_from_address,\n e.origin_to_address,\n e.contract_address,\n topic_0,\n pool_address,\n liquidity_provider,\n token_amounts,\n t0.contract_address AS token0,\n t1.contract_address AS token1,\n t2.contract_address AS token2,\n t3.contract_address AS token3,\n t4.contract_address AS token4,\n t5.contract_address AS token5,\n t6.contract_address AS token6,\n t7.contract_address AS token7,\n amount0_unadj,\n amount1_unadj,\n amount2_unadj,\n amount3_unadj,\n amount4_unadj,\n amount5_unadj,\n amount6_unadj,\n amount7_unadj,\n fees,\n fee0,\n fee1,\n fee2,\n fee3,\n fee4,\n fee5,\n fee6,\n fee7,\n invariant,\n token_supply,\n packed_price_scale,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM evt e \n LEFT JOIN transfers t0\n ON e.block_number = t0.block_number\n AND e.tx_hash = t0.tx_hash\n AND e.amount0_unadj = t0.raw_amount_precise\n LEFT JOIN transfers t1\n ON e.block_number = t1.block_number\n AND e.tx_hash = t1.tx_hash\n AND e.amount1_unadj = t1.raw_amount_precise\n LEFT JOIN transfers t2\n ON e.block_number = t2.block_number\n AND e.tx_hash = t2.tx_hash\n AND e.amount2_unadj = t2.raw_amount_precise\n LEFT JOIN transfers t3\n ON e.block_number = t3.block_number\n AND e.tx_hash = t3.tx_hash\n AND e.amount3_unadj = t3.raw_amount_precise\n LEFT JOIN transfers t4\n ON e.block_number = t4.block_number\n AND e.tx_hash = t4.tx_hash\n AND e.amount4_unadj = t4.raw_amount_precise\n LEFT JOIN transfers t5\n ON e.block_number = t5.block_number\n AND e.tx_hash = t5.tx_hash\n AND e.amount5_unadj = t5.raw_amount_precise\n LEFT JOIN transfers t6\n ON e.block_number = t6.block_number\n AND e.tx_hash = t6.tx_hash\n AND e.amount6_unadj = t6.raw_amount_precise\n LEFT JOIN transfers t7\n ON e.block_number = t7.block_number\n AND e.tx_hash = t7.tx_hash\n AND e.amount7_unadj = t7.raw_amount_precise\n),\nadd_liquidity AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'AddLiquidity' AS event_name,\n contract_address,\n pool_address,\n token_amounts,\n fees,\n invariant,\n token_supply,\n packed_price_scale,\n liquidity_provider,\n liquidity_provider AS sender,\n pool_address AS receiver,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n amount0_unadj,\n amount1_unadj,\n amount2_unadj,\n amount3_unadj,\n amount4_unadj,\n amount5_unadj,\n amount6_unadj,\n amount7_unadj,\n fee0,\n fee1,\n fee2,\n fee3,\n fee4,\n fee5,\n fee6,\n fee7,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n pool_tokens\n WHERE topic_0 IN (\n '0xe1b60455bd9e33720b547f60e4e0cfbf1252d0f2ee0147d53029945f39fe3c1a',\n '0x423f6495a08fc652425cf4ed0d1f9e37e571d9b9529b1c1c23cce780b2e7df0d',\n '0x26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a768',\n '0x96b486485420b963edd3fdec0b0195730035600feb7de6f544383d7950fa97ee',\n '0x540ab385f9b5d450a27404172caade516b3ba3f4be88239ac56a2ad1de2a1f5a',\n '0x3f1915775e0c9a38a57a7bb7f1f9005f486fb904e1f84aa215364d567319a58d' -- AddLiquidity\n )\n),\nremove_liquidity AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'RemoveLiquidity' AS event_name,\n contract_address,\n pool_address,\n token_amounts,\n fees,\n invariant,\n token_supply,\n packed_price_scale,\n liquidity_provider,\n liquidity_provider AS sender,\n pool_address AS receiver,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n amount0_unadj,\n amount1_unadj,\n amount2_unadj,\n amount3_unadj,\n amount4_unadj,\n amount5_unadj,\n amount6_unadj,\n amount7_unadj,\n fee0,\n fee1,\n fee2,\n fee3,\n fee4,\n fee5,\n fee6,\n fee7,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n pool_tokens\n WHERE topic_0 IN (\n '0x9878ca375e106f2a43c3b599fc624568131c4c9a4ba66a14563715763be9d59d',\n '0x7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c',\n '0xd6cc314a0b1e3b2579f8e64248e82434072e8271290eef8ad0886709304195f5',\n '0xa49d4cf02656aebf8c771f5a8585638a2a15ee6c97cf7205d4208ed7c1df252d',\n '0xdd3c0336a16f1b64f172b7bb0dad5b2b3c7c76f91e8c4aafd6aae60dce800153' -- RemoveLiquidity\n )\n),\nall_actions AS (\n SELECT\n *\n FROM\n add_liquidity\n UNION ALL\n SELECT\n *\n FROM\n remove_liquidity\n),\npool_tokens_pivoted AS (\n SELECT \n pool_address,\n MAX(CASE WHEN token_id::INT = 0 THEN token_address END) AS token_0_address,\n MAX(CASE WHEN token_id::INT = 1 THEN token_address END) AS token_1_address,\n MAX(CASE WHEN token_id::INT = 2 THEN token_address END) AS token_2_address,\n MAX(CASE WHEN token_id::INT = 3 THEN token_address END) AS token_3_address,\n MAX(CASE WHEN token_id::INT = 4 THEN token_address END) AS token_4_address,\n MAX(CASE WHEN token_id::INT = 5 THEN token_address END) AS token_5_address,\n MAX(CASE WHEN token_id::INT = 6 THEN token_address END) AS token_6_address,\n MAX(CASE WHEN token_id::INT = 7 THEN token_address END) AS token_7_address\n FROM {{ ref('silver_dex__curve_pools') }}\n GROUP BY pool_address\n)\nSELECT\n a.block_number,\n a.block_timestamp,\n a.tx_hash,\n a.event_index,\n a.origin_function_signature,\n a.origin_from_address,\n a.origin_to_address,\n event_name,\n a.contract_address,\n a.pool_address,\n token_amounts,\n ARRAY_SIZE(token_amounts) AS num_tokens,\n fees,\n invariant,\n token_supply,\n packed_price_scale,\n liquidity_provider,\n sender,\n receiver,\n CASE WHEN num_tokens >= 1 THEN COALESCE(a.token0, s.token_0_address) ELSE NULL END AS token0,\n CASE WHEN num_tokens >= 2 THEN COALESCE(a.token1, s.token_1_address) ELSE NULL END AS token1,\n CASE WHEN num_tokens >= 3 THEN COALESCE(a.token2, s.token_2_address) ELSE NULL END AS token2,\n CASE WHEN num_tokens >= 4 THEN COALESCE(a.token3, s.token_3_address) ELSE NULL END AS token3,\n CASE WHEN num_tokens >= 5 THEN COALESCE(a.token4, s.token_4_address) ELSE NULL END AS token4,\n CASE WHEN num_tokens >= 6 THEN COALESCE(a.token5, s.token_5_address) ELSE NULL END AS token5,\n CASE WHEN num_tokens >= 7 THEN COALESCE(a.token6, s.token_6_address) ELSE NULL END AS token6,\n CASE WHEN num_tokens >= 8 THEN COALESCE(a.token7, s.token_7_address) ELSE NULL END AS token7,\n amount0_unadj :: FLOAT AS amount0_unadj,\n amount1_unadj :: FLOAT AS amount1_unadj,\n amount2_unadj :: FLOAT AS amount2_unadj,\n amount3_unadj :: FLOAT AS amount3_unadj,\n amount4_unadj :: FLOAT AS amount4_unadj,\n amount5_unadj :: FLOAT AS amount5_unadj,\n amount6_unadj :: FLOAT AS amount6_unadj,\n amount7_unadj :: FLOAT AS amount7_unadj,\n fee0,\n fee1,\n fee2,\n fee3,\n fee4,\n fee5,\n fee6,\n fee7,\n a.protocol,\n a.version,\n a.type,\n a.platform,\n a._log_id,\n a.modified_timestamp\nFROM\n all_actions a \n LEFT JOIN pool_tokens_pivoted s ON a.pool_address = s.pool_address\n qualify(ROW_NUMBER() over (PARTITION BY a._log_id\nORDER BY\n a.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n p.pool_address,\n l.topic_0,\n decoded_log :provider :: STRING AS liquidity_provider,\n COALESCE(decoded_log :token_amounts, decoded_log :token_amount) AS token_amounts,\n token_amounts [0] :: STRING AS amount0_unadj,\n token_amounts [1] :: STRING AS amount1_unadj,\n token_amounts [2] :: STRING AS amount2_unadj,\n token_amounts [3] :: STRING AS amount3_unadj,\n token_amounts [4] :: STRING AS amount4_unadj,\n token_amounts [5] :: STRING AS amount5_unadj,\n token_amounts [6] :: STRING AS amount6_unadj,\n token_amounts [7] :: STRING AS amount7_unadj,\n COALESCE(decoded_log :fees, decoded_log :fee) AS fees,\n fees [0] :: STRING AS fee0,\n fees [1] :: STRING AS fee1,\n fees [2] :: STRING AS fee2,\n fees [3] :: STRING AS fee3,\n fees [4] :: STRING AS fee4,\n fees [5] :: STRING AS fee5,\n fees [6] :: STRING AS fee6,\n fees [7] :: STRING AS fee7,\n decoded_log :invariant :: STRING AS invariant,\n decoded_log: token_supply :: STRING AS token_supply,\n decoded_log: packed_price_scale :: STRING AS packed_price_scale,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.ez_decoded_event_logs\n l\n INNER JOIN polygon.silver_dex.curve_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN (\n '0xe1b60455bd9e33720b547f60e4e0cfbf1252d0f2ee0147d53029945f39fe3c1a',\n '0x423f6495a08fc652425cf4ed0d1f9e37e571d9b9529b1c1c23cce780b2e7df0d',\n '0x26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a768',\n '0x96b486485420b963edd3fdec0b0195730035600feb7de6f544383d7950fa97ee',\n '0x540ab385f9b5d450a27404172caade516b3ba3f4be88239ac56a2ad1de2a1f5a',\n '0x3f1915775e0c9a38a57a7bb7f1f9005f486fb904e1f84aa215364d567319a58d', -- AddLiquidity\n '0x9878ca375e106f2a43c3b599fc624568131c4c9a4ba66a14563715763be9d59d',\n '0x7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c',\n '0xd6cc314a0b1e3b2579f8e64248e82434072e8271290eef8ad0886709304195f5',\n '0xa49d4cf02656aebf8c771f5a8585638a2a15ee6c97cf7205d4208ed7c1df252d',\n '0xdd3c0336a16f1b64f172b7bb0dad5b2b3c7c76f91e8c4aafd6aae60dce800153' -- RemoveLiquidity\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.curve_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ntransfers AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n from_address,\n to_address,\n raw_amount_precise,\n raw_amount,\n amount_precise,\n amount\n FROM \n polygon.core.ez_token_transfers\n WHERE\n tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n evt\n )\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.curve_pool_actions\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\npool_tokens AS (\n SELECT\n e.block_number,\n e.block_timestamp,\n e.tx_hash,\n e.event_index,\n e.origin_function_signature,\n e.origin_from_address,\n e.origin_to_address,\n e.contract_address,\n topic_0,\n pool_address,\n liquidity_provider,\n token_amounts,\n t0.contract_address AS token0,\n t1.contract_address AS token1,\n t2.contract_address AS token2,\n t3.contract_address AS token3,\n t4.contract_address AS token4,\n t5.contract_address AS token5,\n t6.contract_address AS token6,\n t7.contract_address AS token7,\n amount0_unadj,\n amount1_unadj,\n amount2_unadj,\n amount3_unadj,\n amount4_unadj,\n amount5_unadj,\n amount6_unadj,\n amount7_unadj,\n fees,\n fee0,\n fee1,\n fee2,\n fee3,\n fee4,\n fee5,\n fee6,\n fee7,\n invariant,\n token_supply,\n packed_price_scale,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM evt e \n LEFT JOIN transfers t0\n ON e.block_number = t0.block_number\n AND e.tx_hash = t0.tx_hash\n AND e.amount0_unadj = t0.raw_amount_precise\n LEFT JOIN transfers t1\n ON e.block_number = t1.block_number\n AND e.tx_hash = t1.tx_hash\n AND e.amount1_unadj = t1.raw_amount_precise\n LEFT JOIN transfers t2\n ON e.block_number = t2.block_number\n AND e.tx_hash = t2.tx_hash\n AND e.amount2_unadj = t2.raw_amount_precise\n LEFT JOIN transfers t3\n ON e.block_number = t3.block_number\n AND e.tx_hash = t3.tx_hash\n AND e.amount3_unadj = t3.raw_amount_precise\n LEFT JOIN transfers t4\n ON e.block_number = t4.block_number\n AND e.tx_hash = t4.tx_hash\n AND e.amount4_unadj = t4.raw_amount_precise\n LEFT JOIN transfers t5\n ON e.block_number = t5.block_number\n AND e.tx_hash = t5.tx_hash\n AND e.amount5_unadj = t5.raw_amount_precise\n LEFT JOIN transfers t6\n ON e.block_number = t6.block_number\n AND e.tx_hash = t6.tx_hash\n AND e.amount6_unadj = t6.raw_amount_precise\n LEFT JOIN transfers t7\n ON e.block_number = t7.block_number\n AND e.tx_hash = t7.tx_hash\n AND e.amount7_unadj = t7.raw_amount_precise\n),\nadd_liquidity AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'AddLiquidity' AS event_name,\n contract_address,\n pool_address,\n token_amounts,\n fees,\n invariant,\n token_supply,\n packed_price_scale,\n liquidity_provider,\n liquidity_provider AS sender,\n pool_address AS receiver,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n amount0_unadj,\n amount1_unadj,\n amount2_unadj,\n amount3_unadj,\n amount4_unadj,\n amount5_unadj,\n amount6_unadj,\n amount7_unadj,\n fee0,\n fee1,\n fee2,\n fee3,\n fee4,\n fee5,\n fee6,\n fee7,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n pool_tokens\n WHERE topic_0 IN (\n '0xe1b60455bd9e33720b547f60e4e0cfbf1252d0f2ee0147d53029945f39fe3c1a',\n '0x423f6495a08fc652425cf4ed0d1f9e37e571d9b9529b1c1c23cce780b2e7df0d',\n '0x26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a768',\n '0x96b486485420b963edd3fdec0b0195730035600feb7de6f544383d7950fa97ee',\n '0x540ab385f9b5d450a27404172caade516b3ba3f4be88239ac56a2ad1de2a1f5a',\n '0x3f1915775e0c9a38a57a7bb7f1f9005f486fb904e1f84aa215364d567319a58d' -- AddLiquidity\n )\n),\nremove_liquidity AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'RemoveLiquidity' AS event_name,\n contract_address,\n pool_address,\n token_amounts,\n fees,\n invariant,\n token_supply,\n packed_price_scale,\n liquidity_provider,\n liquidity_provider AS sender,\n pool_address AS receiver,\n token0,\n token1,\n token2,\n token3,\n token4,\n token5,\n token6,\n token7,\n amount0_unadj,\n amount1_unadj,\n amount2_unadj,\n amount3_unadj,\n amount4_unadj,\n amount5_unadj,\n amount6_unadj,\n amount7_unadj,\n fee0,\n fee1,\n fee2,\n fee3,\n fee4,\n fee5,\n fee6,\n fee7,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n pool_tokens\n WHERE topic_0 IN (\n '0x9878ca375e106f2a43c3b599fc624568131c4c9a4ba66a14563715763be9d59d',\n '0x7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c',\n '0xd6cc314a0b1e3b2579f8e64248e82434072e8271290eef8ad0886709304195f5',\n '0xa49d4cf02656aebf8c771f5a8585638a2a15ee6c97cf7205d4208ed7c1df252d',\n '0xdd3c0336a16f1b64f172b7bb0dad5b2b3c7c76f91e8c4aafd6aae60dce800153' -- RemoveLiquidity\n )\n),\nall_actions AS (\n SELECT\n *\n FROM\n add_liquidity\n UNION ALL\n SELECT\n *\n FROM\n remove_liquidity\n),\npool_tokens_pivoted AS (\n SELECT \n pool_address,\n MAX(CASE WHEN token_id::INT = 0 THEN token_address END) AS token_0_address,\n MAX(CASE WHEN token_id::INT = 1 THEN token_address END) AS token_1_address,\n MAX(CASE WHEN token_id::INT = 2 THEN token_address END) AS token_2_address,\n MAX(CASE WHEN token_id::INT = 3 THEN token_address END) AS token_3_address,\n MAX(CASE WHEN token_id::INT = 4 THEN token_address END) AS token_4_address,\n MAX(CASE WHEN token_id::INT = 5 THEN token_address END) AS token_5_address,\n MAX(CASE WHEN token_id::INT = 6 THEN token_address END) AS token_6_address,\n MAX(CASE WHEN token_id::INT = 7 THEN token_address END) AS token_7_address\n FROM polygon.silver_dex.curve_pools\n GROUP BY pool_address\n)\nSELECT\n a.block_number,\n a.block_timestamp,\n a.tx_hash,\n a.event_index,\n a.origin_function_signature,\n a.origin_from_address,\n a.origin_to_address,\n event_name,\n a.contract_address,\n a.pool_address,\n token_amounts,\n ARRAY_SIZE(token_amounts) AS num_tokens,\n fees,\n invariant,\n token_supply,\n packed_price_scale,\n liquidity_provider,\n sender,\n receiver,\n CASE WHEN num_tokens >= 1 THEN COALESCE(a.token0, s.token_0_address) ELSE NULL END AS token0,\n CASE WHEN num_tokens >= 2 THEN COALESCE(a.token1, s.token_1_address) ELSE NULL END AS token1,\n CASE WHEN num_tokens >= 3 THEN COALESCE(a.token2, s.token_2_address) ELSE NULL END AS token2,\n CASE WHEN num_tokens >= 4 THEN COALESCE(a.token3, s.token_3_address) ELSE NULL END AS token3,\n CASE WHEN num_tokens >= 5 THEN COALESCE(a.token4, s.token_4_address) ELSE NULL END AS token4,\n CASE WHEN num_tokens >= 6 THEN COALESCE(a.token5, s.token_5_address) ELSE NULL END AS token5,\n CASE WHEN num_tokens >= 7 THEN COALESCE(a.token6, s.token_6_address) ELSE NULL END AS token6,\n CASE WHEN num_tokens >= 8 THEN COALESCE(a.token7, s.token_7_address) ELSE NULL END AS token7,\n amount0_unadj :: FLOAT AS amount0_unadj,\n amount1_unadj :: FLOAT AS amount1_unadj,\n amount2_unadj :: FLOAT AS amount2_unadj,\n amount3_unadj :: FLOAT AS amount3_unadj,\n amount4_unadj :: FLOAT AS amount4_unadj,\n amount5_unadj :: FLOAT AS amount5_unadj,\n amount6_unadj :: FLOAT AS amount6_unadj,\n amount7_unadj :: FLOAT AS amount7_unadj,\n fee0,\n fee1,\n fee2,\n fee3,\n fee4,\n fee5,\n fee6,\n fee7,\n a.protocol,\n a.version,\n a.type,\n a.platform,\n a._log_id,\n a.modified_timestamp\nFROM\n all_actions a \n LEFT JOIN pool_tokens_pivoted s ON a.pool_address = s.pool_address\n qualify(ROW_NUMBER() over (PARTITION BY a._log_id\nORDER BY\n a.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__zyberswap_v2_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__zyberswap_v2_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/zyberswap/silver_dex__zyberswap_v2_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/zyberswap/silver_dex__zyberswap_v2_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__zyberswap_v2_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "zyberswap", "silver_dex__zyberswap_v2_swaps"], "alias": "zyberswap_v2_swaps", "checksum": {"name": "sha256", "checksum": "587cc9b57a6ac40af43f973cf844172ce6be76b3297cb2b83d77b85d1672764a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018378.110362, "relation_name": "polygon.silver_dex.zyberswap_v2_swaps", "raw_code": "{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS reipient_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n )\n ) AS amount0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n )\n ) AS amount1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS price,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS tick,\n token0,\n token1,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__zyberswap_v2_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n reipient_address AS tx_to,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n token0 AS token0_address,\n token1 AS token1_address,\n price,\n liquidity,\n tick,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__zyberswap_v2_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__zyberswap_v2_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/zyberswap/silver_dex__zyberswap_v2_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS reipient_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n )\n ) AS amount0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n )\n ) AS amount1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS price,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS tick,\n token0,\n token1,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__zyberswap_v2_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n reipient_address AS tx_to,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n token0 AS token0_address,\n token1 AS token1_address,\n price,\n liquidity,\n tick,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\n*/\n\n\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS reipient_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n )\n ) AS amount0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n )\n ) AS amount1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS price,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS tick,\n token0,\n token1,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.zyberswap_v2_pools p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.zyberswap_v2_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n reipient_address AS tx_to,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n token0 AS token0_address,\n token1 AS token1_address,\n price,\n liquidity,\n tick,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__zyberswap_v2_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__zyberswap_v2_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/zyberswap/silver_dex__zyberswap_v2_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/zyberswap/silver_dex__zyberswap_v2_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__zyberswap_v2_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "zyberswap", "silver_dex__zyberswap_v2_pool_actions"], "alias": "zyberswap_v2_pool_actions", "checksum": {"name": "sha256", "checksum": "6a357b562157b8d7223c525bc8f868227e8249b9e960bf51705a36b21364cf2c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018378.4239507, "relation_name": "polygon.silver_dex.zyberswap_v2_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__zyberswap_v2_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__zyberswap_v2_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__zyberswap_v2_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/zyberswap/silver_dex__zyberswap_v2_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__zyberswap_v2_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.zyberswap_v2_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.zyberswap_v2_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__zyberswap_v2_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__zyberswap_v2_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/zyberswap/silver_dex__zyberswap_v2_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/zyberswap/silver_dex__zyberswap_v2_pools.sql", "unique_id": "model.fsc_evm.silver_dex__zyberswap_v2_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "zyberswap", "silver_dex__zyberswap_v2_pools"], "alias": "zyberswap_v2_pools", "checksum": {"name": "sha256", "checksum": "0e34e922e35124f05ec49e0c2f48ce8c75a39784b19e463f71849b332f79d004"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018378.7411208, "relation_name": "polygon.silver_dex.zyberswap_v2_pools", "raw_code": "{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'zyberswap'\n AND version = 'v2'\n),\npool_creation AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref ('core__fact_event_logs') }}\n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pool_creation qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/zyberswap/silver_dex__zyberswap_v2_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'zyberswap'\n AND version = 'v2'\n),\npool_creation AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref ('core__fact_event_logs') }}\n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pool_creation qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'zyberswap'\n AND version = 'v2'\n),\npool_creation AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.zyberswap_v2_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pool_creation qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__aerodrome_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__aerodrome_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/aerodrome/silver_dex__aerodrome_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/aerodrome/silver_dex__aerodrome_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__aerodrome_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "aerodrome", "silver_dex__aerodrome_swaps"], "alias": "aerodrome_swaps", "checksum": {"name": "sha256", "checksum": "b076fb09f539694396f07cb4b951f076306227b37f67751ce1c5aff6ff87be0d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018379.0578349, "relation_name": "polygon.silver_dex.aerodrome_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps_base AS (\n SELECT\n l.block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS amount1In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS amount1Out,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS tx_to,\n token0,\n token1,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__aerodrome_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xb3e2773606abfd36b5bd91394b3a54d1398336c65005baf7bf7a05efeffaf75b'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n sender,\n tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps_base\nWHERE\n token_in <> token_out", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__aerodrome_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__aerodrome_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/aerodrome/silver_dex__aerodrome_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps_base AS (\n SELECT\n l.block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS amount1In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS amount1Out,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS tx_to,\n token0,\n token1,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__aerodrome_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xb3e2773606abfd36b5bd91394b3a54d1398336c65005baf7bf7a05efeffaf75b'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n sender,\n tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps_base\nWHERE\n token_in <> token_out\n*/\n\n\n\nWITH swaps_base AS (\n SELECT\n l.block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS amount1In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS amount1Out,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS tx_to,\n token0,\n token1,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.aerodrome_pools p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xb3e2773606abfd36b5bd91394b3a54d1398336c65005baf7bf7a05efeffaf75b'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.aerodrome_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n sender,\n tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps_base\nWHERE\n token_in <> token_out", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__aerodrome_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__aerodrome_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/aerodrome/silver_dex__aerodrome_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/aerodrome/silver_dex__aerodrome_pools.sql", "unique_id": "model.fsc_evm.silver_dex__aerodrome_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "aerodrome", "silver_dex__aerodrome_pools"], "alias": "aerodrome_pools", "checksum": {"name": "sha256", "checksum": "7e227d1a4edaf9e8b5f0696fd64ac7d001bf94f3290f5463c4f05a2282643e2b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018379.374601, "relation_name": "polygon.silver_dex.aerodrome_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"pool_address\",\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'aerodrome'\n AND version = 'v1'\n AND type = 'factory'\n),\ncreated_pools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1,\n LOWER(CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40))) AS stable,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n ) :: INTEGER AS pool_number,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x2128d88d14c80cb081c1252a5acff7a264671bf199ce226b53788fb26065005e'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n token0,\n token1,\n CASE\n WHEN stable = '0x0000000000000000000000000000000000000001' THEN TRUE\n WHEN stable = '0x0000000000000000000000000000000000000000' THEN FALSE\n END AS stable,\n pool_number,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n created_pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/aerodrome/silver_dex__aerodrome_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"pool_address\",\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'aerodrome'\n AND version = 'v1'\n AND type = 'factory'\n),\ncreated_pools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1,\n LOWER(CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40))) AS stable,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n ) :: INTEGER AS pool_number,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x2128d88d14c80cb081c1252a5acff7a264671bf199ce226b53788fb26065005e'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n token0,\n token1,\n CASE\n WHEN stable = '0x0000000000000000000000000000000000000001' THEN TRUE\n WHEN stable = '0x0000000000000000000000000000000000000000' THEN FALSE\n END AS stable,\n pool_number,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n created_pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'aerodrome'\n AND version = 'v1'\n AND type = 'factory'\n),\ncreated_pools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1,\n LOWER(CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40))) AS stable,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n ) :: INTEGER AS pool_number,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x2128d88d14c80cb081c1252a5acff7a264671bf199ce226b53788fb26065005e'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.aerodrome_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n token0,\n token1,\n CASE\n WHEN stable = '0x0000000000000000000000000000000000000001' THEN TRUE\n WHEN stable = '0x0000000000000000000000000000000000000000' THEN FALSE\n END AS stable,\n pool_number,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n created_pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__aerodrome_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__aerodrome_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/aerodrome/silver_dex__aerodrome_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/aerodrome/silver_dex__aerodrome_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__aerodrome_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "aerodrome", "silver_dex__aerodrome_pool_actions"], "alias": "aerodrome_pool_actions", "checksum": {"name": "sha256", "checksum": "dace846cfd47e641448504e391eeb4c708cf1986a632eb3a5abcc74b40932b1d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018379.6978734, "relation_name": "polygon.silver_dex.aerodrome_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__aerodrome_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f', --mint\n '0x5d624aa9c148153ab3446c1b154f660ee7701e549fe9b62dab7171b1c80e6fa2' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS target_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS value_amt,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS index_amt,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x5d624aa9c148153ab3446c1b154f660ee7701e549fe9b62dab7171b1c80e6fa2' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n pool_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n from_address AS sender,\n target_address AS receiver,\n value_amt AS amount0_unadj,\n index_amt AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__aerodrome_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__aerodrome_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/aerodrome/silver_dex__aerodrome_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__aerodrome_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f', --mint\n '0x5d624aa9c148153ab3446c1b154f660ee7701e549fe9b62dab7171b1c80e6fa2' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS target_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS value_amt,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS index_amt,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x5d624aa9c148153ab3446c1b154f660ee7701e549fe9b62dab7171b1c80e6fa2' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n pool_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n from_address AS sender,\n target_address AS receiver,\n value_amt AS amount0_unadj,\n index_amt AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.aerodrome_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f', --mint\n '0x5d624aa9c148153ab3446c1b154f660ee7701e549fe9b62dab7171b1c80e6fa2' --burn\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.aerodrome_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS from_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS target_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS value_amt,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS index_amt,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x5d624aa9c148153ab3446c1b154f660ee7701e549fe9b62dab7171b1c80e6fa2' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n pool_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n from_address AS sender,\n target_address AS receiver,\n value_amt AS amount0_unadj,\n index_amt AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__paircreated_evt_v2_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__paircreated_evt_v2_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/pool_swap_evt/silver_dex__paircreated_evt_v2_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/pool_swap_evt/silver_dex__paircreated_evt_v2_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__paircreated_evt_v2_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "pool_swap_evt", "silver_dex__paircreated_evt_v2_pool_actions"], "alias": "paircreated_evt_v2_pool_actions", "checksum": {"name": "sha256", "checksum": "1f1da0b105d42127ebfe2412f8b7e2006b34f3f89f040a1342853bcf27b168af"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018380.012664, "relation_name": "polygon.silver_dex.paircreated_evt_v2_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__paircreated_evt_v2_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f', --mint\n '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS to_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n pool_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n to_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__paircreated_evt_v2_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__paircreated_evt_v2_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/pool_swap_evt/silver_dex__paircreated_evt_v2_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__paircreated_evt_v2_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f', --mint\n '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS to_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n pool_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n to_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.paircreated_evt_v2_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f', --mint\n '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.paircreated_evt_v2_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS to_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n pool_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n to_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__poolcreated_evt_v3_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__poolcreated_evt_v3_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/pool_swap_evt/silver_dex__poolcreated_evt_v3_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/pool_swap_evt/silver_dex__poolcreated_evt_v3_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__poolcreated_evt_v3_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "pool_swap_evt", "silver_dex__poolcreated_evt_v3_pool_actions"], "alias": "poolcreated_evt_v3_pool_actions", "checksum": {"name": "sha256", "checksum": "7241bad94eefe80661d792aab70f92de11b16641d4b91232b59b938f291d419a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018380.32661, "relation_name": "polygon.silver_dex.poolcreated_evt_v3_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0_address AS token0,\n token1_address AS token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__poolcreated_evt_v3_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__poolcreated_evt_v3_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__poolcreated_evt_v3_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/pool_swap_evt/silver_dex__poolcreated_evt_v3_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0_address AS token0,\n token1_address AS token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__poolcreated_evt_v3_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0_address AS token0,\n token1_address AS token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.poolcreated_evt_v3_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.poolcreated_evt_v3_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__swap_evt_v2_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__swap_evt_v2_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/pool_swap_evt/silver_dex__swap_evt_v2_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/pool_swap_evt/silver_dex__swap_evt_v2_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__swap_evt_v2_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "pool_swap_evt", "silver_dex__swap_evt_v2_swaps"], "alias": "swap_evt_v2_swaps", "checksum": {"name": "sha256", "checksum": "3e501adbe73841c3c42b36cf0c0d452b891b498c6dea59bd17d7750ed27bc18e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018380.6421702, "relation_name": "polygon.silver_dex.swap_evt_v2_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n ) AS amount1In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER\n ) AS amount1Out,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS tx_to,\n p.token0,\n p.token1,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__paircreated_evt_v2_pools') }}\n p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n sender,\n tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__paircreated_evt_v2_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__paircreated_evt_v2_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/pool_swap_evt/silver_dex__swap_evt_v2_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n ) AS amount1In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER\n ) AS amount1Out,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS tx_to,\n p.token0,\n p.token1,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__paircreated_evt_v2_pools') }}\n p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n sender,\n tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out\n*/\n\n\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n ) AS amount1In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER\n ) AS amount1Out,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS tx_to,\n p.token0,\n p.token1,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.paircreated_evt_v2_pools\n p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822' --Swap\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.swap_evt_v2_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n sender,\n tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__paircreated_evt_v2_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__paircreated_evt_v2_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/pool_swap_evt/silver_dex__paircreated_evt_v2_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/pool_swap_evt/silver_dex__paircreated_evt_v2_pools.sql", "unique_id": "model.fsc_evm.silver_dex__paircreated_evt_v2_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "pool_swap_evt", "silver_dex__paircreated_evt_v2_pools"], "alias": "paircreated_evt_v2_pools", "checksum": {"name": "sha256", "checksum": "92773b783fd8533db20241e1220d1281323400916b50dce0983b05d99308f22c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018380.9577518, "relation_name": "polygon.silver_dex.paircreated_evt_v2_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'uni_v2_pair_created'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INT AS pool_id,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9' --PairCreated\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n pool_id,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/pool_swap_evt/silver_dex__paircreated_evt_v2_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'uni_v2_pair_created'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INT AS pool_id,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9' --PairCreated\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n pool_id,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n type = 'uni_v2_pair_created'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INT AS pool_id,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9' --PairCreated\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.paircreated_evt_v2_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n pool_id,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__swap_evt_v3_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__swap_evt_v3_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/pool_swap_evt/silver_dex__swap_evt_v3_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/pool_swap_evt/silver_dex__swap_evt_v3_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__swap_evt_v3_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "pool_swap_evt", "silver_dex__swap_evt_v3_swaps"], "alias": "swap_evt_v3_swaps", "checksum": {"name": "sha256", "checksum": "8b065c336e2f745b5b1333c4547e3959f7d59cab45cb7cd45c0fa7729cac2f48"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018381.2722816, "relation_name": "polygon.silver_dex.swap_evt_v3_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n ) :: FLOAT AS sqrtPriceX96,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n ) :: FLOAT AS liquidity,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n ) :: FLOAT AS tick,\n token0_address,\n token1_address,\n pool_address,\n tick_spacing,\n fee,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__poolcreated_evt_v3_pools') }}\n p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_address,\n recipient,\n sender,\n fee,\n tick,\n tick_spacing,\n liquidity,\n token0_address,\n token1_address,\n amount0_unadj,\n amount1_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__poolcreated_evt_v3_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__poolcreated_evt_v3_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/pool_swap_evt/silver_dex__swap_evt_v3_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n ) :: FLOAT AS sqrtPriceX96,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n ) :: FLOAT AS liquidity,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n ) :: FLOAT AS tick,\n token0_address,\n token1_address,\n pool_address,\n tick_spacing,\n fee,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__poolcreated_evt_v3_pools') }}\n p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_address,\n recipient,\n sender,\n fee,\n tick,\n tick_spacing,\n liquidity,\n token0_address,\n token1_address,\n amount0_unadj,\n amount1_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n ) :: FLOAT AS sqrtPriceX96,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n ) :: FLOAT AS liquidity,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n ) :: FLOAT AS tick,\n token0_address,\n token1_address,\n pool_address,\n tick_spacing,\n fee,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.poolcreated_evt_v3_pools\n p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67' --Swap\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.swap_evt_v3_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_address,\n recipient,\n sender,\n fee,\n tick,\n tick_spacing,\n liquidity,\n token0_address,\n token1_address,\n amount0_unadj,\n amount1_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__poolcreated_evt_v3_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__poolcreated_evt_v3_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/pool_swap_evt/silver_dex__poolcreated_evt_v3_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/pool_swap_evt/silver_dex__poolcreated_evt_v3_pools.sql", "unique_id": "model.fsc_evm.silver_dex__poolcreated_evt_v3_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "pool_swap_evt", "silver_dex__poolcreated_evt_v3_pools"], "alias": "poolcreated_evt_v3_pools", "checksum": {"name": "sha256", "checksum": "0dd7d6601b2a6db4b94ac01b81e1fba48b7eba37d75327a299f5d581b2462abf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018381.585, "relation_name": "polygon.silver_dex.poolcreated_evt_v3_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'uni_v3_pool_created'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0_address,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n topics [3] :: STRING\n )\n ) AS fee,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n )\n ) AS tick_spacing,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118' --PoolCreated\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ninitial_info AS (\n SELECT\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [0] :: STRING)) :: FLOAT AS init_sqrtPriceX96,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [1] :: STRING)) :: FLOAT AS init_tick,\n pow(\n 1.0001,\n init_tick\n ) AS init_price_1_0_unadj,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95' --Initialize\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nlegacy_pools AS ( --seed file CTE for GENESIS contracts, union as needed\n SELECT\n pool_address,\n token0 AS token0_address,\n token1 AS token1_address,\n fee,\n 'uniswap' AS protocol,\n 'v3' AS version,\n 'ovm1_legacy' AS type,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n 'PoolCreated' AS event_name\n FROM\n {{ ref('silver_dex__univ3_ovm1_legacy_pools') }}\n WHERE\n {% if vars.GLOBAL_PROJECT_NAME == 'optimism' %}\n 1=1\n AND \n pool_address NOT IN (\n SELECT\n pool_address\n FROM\n pools\n )\n {% else %}\n 1=0\n {% endif %}\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n p.contract_address,\n token0_address,\n token1_address,\n fee :: INTEGER AS fee,\n (\n fee / 10000\n ) :: FLOAT AS fee_percent,\n tick_spacing,\n pool_address,\n COALESCE(\n init_tick,\n 0\n ) AS init_tick,\n platform,\n protocol,\n version,\n type,\n p._log_id,\n p.modified_timestamp\n FROM\n pools p\n LEFT JOIN initial_info i\n ON p.pool_address = i.contract_address\n UNION\n SELECT\n 0 AS block_number,\n '1970-01-01 00:00:00' :: TIMESTAMP AS block_timestamp,\n 'GENESIS' AS tx_hash,\n 0 AS event_index,\n event_name,\n pool_address AS contract_address,\n token0_address,\n token1_address,\n fee,\n (\n fee / 10000\n ) :: FLOAT AS fee_percent,\n NULL AS tick_spacing,\n pool_address,\n NULL AS init_tick,\n platform,\n protocol,\n version,\n type,\n CONCAT(\n tx_hash,\n '-',\n contract_address\n ) AS _log_id,\n '1970-01-01 00:00:00' :: TIMESTAMP AS modified_timestamp\n FROM\n legacy_pools\n)\nSELECT\n *\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__univ3_ovm1_legacy_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "seed.fsc_evm.silver_dex__univ3_ovm1_legacy_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/pool_swap_evt/silver_dex__poolcreated_evt_v3_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'uni_v3_pool_created'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0_address,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n topics [3] :: STRING\n )\n ) AS fee,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n )\n ) AS tick_spacing,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118' --PoolCreated\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ninitial_info AS (\n SELECT\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [0] :: STRING)) :: FLOAT AS init_sqrtPriceX96,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [1] :: STRING)) :: FLOAT AS init_tick,\n pow(\n 1.0001,\n init_tick\n ) AS init_price_1_0_unadj,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95' --Initialize\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nlegacy_pools AS ( --seed file CTE for GENESIS contracts, union as needed\n SELECT\n pool_address,\n token0 AS token0_address,\n token1 AS token1_address,\n fee,\n 'uniswap' AS protocol,\n 'v3' AS version,\n 'ovm1_legacy' AS type,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n 'PoolCreated' AS event_name\n FROM\n {{ ref('silver_dex__univ3_ovm1_legacy_pools') }}\n WHERE\n {% if vars.GLOBAL_PROJECT_NAME == 'optimism' %}\n 1=1\n AND \n pool_address NOT IN (\n SELECT\n pool_address\n FROM\n pools\n )\n {% else %}\n 1=0\n {% endif %}\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n p.contract_address,\n token0_address,\n token1_address,\n fee :: INTEGER AS fee,\n (\n fee / 10000\n ) :: FLOAT AS fee_percent,\n tick_spacing,\n pool_address,\n COALESCE(\n init_tick,\n 0\n ) AS init_tick,\n platform,\n protocol,\n version,\n type,\n p._log_id,\n p.modified_timestamp\n FROM\n pools p\n LEFT JOIN initial_info i\n ON p.pool_address = i.contract_address\n UNION\n SELECT\n 0 AS block_number,\n '1970-01-01 00:00:00' :: TIMESTAMP AS block_timestamp,\n 'GENESIS' AS tx_hash,\n 0 AS event_index,\n event_name,\n pool_address AS contract_address,\n token0_address,\n token1_address,\n fee,\n (\n fee / 10000\n ) :: FLOAT AS fee_percent,\n NULL AS tick_spacing,\n pool_address,\n NULL AS init_tick,\n platform,\n protocol,\n version,\n type,\n CONCAT(\n tx_hash,\n '-',\n contract_address\n ) AS _log_id,\n '1970-01-01 00:00:00' :: TIMESTAMP AS modified_timestamp\n FROM\n legacy_pools\n)\nSELECT\n *\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n type = 'uni_v3_pool_created'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0_address,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n topics [3] :: STRING\n )\n ) AS fee,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n )\n ) AS tick_spacing,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118' --PoolCreated\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.poolcreated_evt_v3_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ninitial_info AS (\n SELECT\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [0] :: STRING)) :: FLOAT AS init_sqrtPriceX96,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [1] :: STRING)) :: FLOAT AS init_tick,\n pow(\n 1.0001,\n init_tick\n ) AS init_price_1_0_unadj,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING = '0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95' --Initialize\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.poolcreated_evt_v3_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nlegacy_pools AS ( --seed file CTE for GENESIS contracts, union as needed\n SELECT\n pool_address,\n token0 AS token0_address,\n token1 AS token1_address,\n fee,\n 'uniswap' AS protocol,\n 'v3' AS version,\n 'ovm1_legacy' AS type,\n CONCAT(\n protocol,\n '-',\n version\n ) AS platform,\n 'PoolCreated' AS event_name\n FROM\n polygon.silver_dex.univ3_ovm1_legacy_pools\n WHERE\n \n 1=0\n \n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n p.contract_address,\n token0_address,\n token1_address,\n fee :: INTEGER AS fee,\n (\n fee / 10000\n ) :: FLOAT AS fee_percent,\n tick_spacing,\n pool_address,\n COALESCE(\n init_tick,\n 0\n ) AS init_tick,\n platform,\n protocol,\n version,\n type,\n p._log_id,\n p.modified_timestamp\n FROM\n pools p\n LEFT JOIN initial_info i\n ON p.pool_address = i.contract_address\n UNION\n SELECT\n 0 AS block_number,\n '1970-01-01 00:00:00' :: TIMESTAMP AS block_timestamp,\n 'GENESIS' AS tx_hash,\n 0 AS event_index,\n event_name,\n pool_address AS contract_address,\n token0_address,\n token1_address,\n fee,\n (\n fee / 10000\n ) :: FLOAT AS fee_percent,\n NULL AS tick_spacing,\n pool_address,\n NULL AS init_tick,\n platform,\n protocol,\n version,\n type,\n CONCAT(\n tx_hash,\n '-',\n contract_address\n ) AS _log_id,\n '1970-01-01 00:00:00' :: TIMESTAMP AS modified_timestamp\n FROM\n legacy_pools\n)\nSELECT\n *\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__levelfi_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__levelfi_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/level/silver_dex__levelfi_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/level/silver_dex__levelfi_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__levelfi_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "level", "silver_dex__levelfi_swaps"], "alias": "levelfi_swaps", "checksum": {"name": "sha256", "checksum": "c0cea53708bcd5ab4aa6642844c1854a41939d6108bc15a149059b49a3acdef0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018381.8997798, "relation_name": "polygon.silver_dex.levelfi_swaps", "raw_code": "{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'level_finance'\n),\nswaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS segmented_data,\n ARRAY_SIZE(segmented_data) AS data_count,\n CASE\n WHEN data_count = 6 THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40))\n END AS sender_address,\n CASE\n WHEN data_count = 6 THEN CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40))\n WHEN data_count = 5 THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40))\n END AS tokenIn,\n CASE\n WHEN data_count = 6 THEN CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40))\n WHEN data_count = 5 THEN CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40))\n END AS tokenOut,\n CASE\n WHEN data_count = 6 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n )\n WHEN data_count = 5 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n )\n END AS amountIn,\n CASE\n WHEN data_count = 6 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n )\n WHEN data_count = 5 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n )\n END AS amountOut,\n CASE\n WHEN data_count = 6 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n )\n )\n WHEN data_count = 5 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n )\n END AS fee,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xd6d34547c69c5ee3d2667625c188acf1006abb93e0ee7cf03925c67cf7760413' --swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n COALESCE(\n sender_address,\n origin_from_address\n ) AS sender,\n origin_from_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n fee,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/level/silver_dex__levelfi_swaps.sql", "compiled": true, "compiled_code": "\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'level_finance'\n),\nswaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS segmented_data,\n ARRAY_SIZE(segmented_data) AS data_count,\n CASE\n WHEN data_count = 6 THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40))\n END AS sender_address,\n CASE\n WHEN data_count = 6 THEN CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40))\n WHEN data_count = 5 THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40))\n END AS tokenIn,\n CASE\n WHEN data_count = 6 THEN CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40))\n WHEN data_count = 5 THEN CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40))\n END AS tokenOut,\n CASE\n WHEN data_count = 6 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n )\n WHEN data_count = 5 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n )\n END AS amountIn,\n CASE\n WHEN data_count = 6 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n )\n WHEN data_count = 5 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n )\n END AS amountOut,\n CASE\n WHEN data_count = 6 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n )\n )\n WHEN data_count = 5 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n )\n END AS fee,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xd6d34547c69c5ee3d2667625c188acf1006abb93e0ee7cf03925c67cf7760413' --swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n COALESCE(\n sender_address,\n origin_from_address\n ) AS sender,\n origin_from_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n fee,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'level_finance'\n),\nswaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS segmented_data,\n ARRAY_SIZE(segmented_data) AS data_count,\n CASE\n WHEN data_count = 6 THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40))\n END AS sender_address,\n CASE\n WHEN data_count = 6 THEN CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40))\n WHEN data_count = 5 THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40))\n END AS tokenIn,\n CASE\n WHEN data_count = 6 THEN CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40))\n WHEN data_count = 5 THEN CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40))\n END AS tokenOut,\n CASE\n WHEN data_count = 6 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n )\n WHEN data_count = 5 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n )\n END AS amountIn,\n CASE\n WHEN data_count = 6 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n )\n WHEN data_count = 5 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n )\n END AS amountOut,\n CASE\n WHEN data_count = 6 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n )\n )\n WHEN data_count = 5 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n )\n END AS fee,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xd6d34547c69c5ee3d2667625c188acf1006abb93e0ee7cf03925c67cf7760413' --swap\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.levelfi_swaps\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n COALESCE(\n sender_address,\n origin_from_address\n ) AS sender,\n origin_from_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n fee,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__synthetix_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__synthetix_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/synthetix/silver_dex__synthetix_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/synthetix/silver_dex__synthetix_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__synthetix_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "synthetix", "silver_dex__synthetix_swaps"], "alias": "synthetix_swaps", "checksum": {"name": "sha256", "checksum": "bd3d29270edb9e6abf8f69533bff56c45856b1f72f05bf804020ef85aacfbfc7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018382.214006, "relation_name": "polygon.silver_dex.synthetix_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'synthetix'\n),\nswaps AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS amount_in_unadj,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER AS amount_out_unadj,\n REGEXP_REPLACE(\n utils.udf_hex_to_string(\n segmented_data [0] :: STRING\n ),\n '[^a-zA-Z0-9]+'\n ) AS symbol_in,\n REGEXP_REPLACE(\n utils.udf_hex_to_string(\n segmented_data [2] :: STRING\n ),\n '[^a-zA-Z0-9]+'\n ) AS symbol_out,\n CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40)) AS tx_to,\n event_index,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'SynthExchange' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x65b6972c94204d84cffd3a95615743e31270f04fdf251f3dccc705cfbad44776'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n event_name,\n sender,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n symbol_in,\n symbol_out,\n tx_to,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps s\n LEFT JOIN (\n SELECT\n synth_symbol AS synth_symbol_in,\n synth_proxy_address AS token_in,\n decimals AS decimals_in,\n blockchain\n FROM\n {{ ref('silver_dex__synthetix_synths_20230404') }}\n ) sc1\n ON sc1.synth_symbol_in = s.symbol_in\n AND sc1.blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n LEFT JOIN (\n SELECT\n synth_symbol AS synth_symbol_out,\n synth_proxy_address AS token_out,\n decimals AS decimals_out,\n blockchain\n FROM\n {{ ref('silver_dex__synthetix_synths_20230404') }}\n ) sc2\n ON sc2.synth_symbol_out = s.symbol_out\n AND sc2.blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__synthetix_synths_20230404", "package": null, "version": null}, {"name": "silver_dex__synthetix_synths_20230404", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "seed.fsc_evm.silver_dex__synthetix_synths_20230404"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/synthetix/silver_dex__synthetix_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'synthetix'\n),\nswaps AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS amount_in_unadj,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER AS amount_out_unadj,\n REGEXP_REPLACE(\n utils.udf_hex_to_string(\n segmented_data [0] :: STRING\n ),\n '[^a-zA-Z0-9]+'\n ) AS symbol_in,\n REGEXP_REPLACE(\n utils.udf_hex_to_string(\n segmented_data [2] :: STRING\n ),\n '[^a-zA-Z0-9]+'\n ) AS symbol_out,\n CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40)) AS tx_to,\n event_index,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'SynthExchange' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x65b6972c94204d84cffd3a95615743e31270f04fdf251f3dccc705cfbad44776'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n event_name,\n sender,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n symbol_in,\n symbol_out,\n tx_to,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps s\n LEFT JOIN (\n SELECT\n synth_symbol AS synth_symbol_in,\n synth_proxy_address AS token_in,\n decimals AS decimals_in,\n blockchain\n FROM\n {{ ref('silver_dex__synthetix_synths_20230404') }}\n ) sc1\n ON sc1.synth_symbol_in = s.symbol_in\n AND sc1.blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n LEFT JOIN (\n SELECT\n synth_symbol AS synth_symbol_out,\n synth_proxy_address AS token_out,\n decimals AS decimals_out,\n blockchain\n FROM\n {{ ref('silver_dex__synthetix_synths_20230404') }}\n ) sc2\n ON sc2.synth_symbol_out = s.symbol_out\n AND sc2.blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'synthetix'\n),\nswaps AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS amount_in_unadj,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER AS amount_out_unadj,\n REGEXP_REPLACE(\n utils.udf_hex_to_string(\n segmented_data [0] :: STRING\n ),\n '[^a-zA-Z0-9]+'\n ) AS symbol_in,\n REGEXP_REPLACE(\n utils.udf_hex_to_string(\n segmented_data [2] :: STRING\n ),\n '[^a-zA-Z0-9]+'\n ) AS symbol_out,\n CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40)) AS tx_to,\n event_index,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'SynthExchange' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x65b6972c94204d84cffd3a95615743e31270f04fdf251f3dccc705cfbad44776'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.synthetix_swaps\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n event_name,\n sender,\n amount_in_unadj,\n amount_out_unadj,\n token_in,\n token_out,\n symbol_in,\n symbol_out,\n tx_to,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps s\n LEFT JOIN (\n SELECT\n synth_symbol AS synth_symbol_in,\n synth_proxy_address AS token_in,\n decimals AS decimals_in,\n blockchain\n FROM\n polygon.silver_dex.synthetix_synths_20230404\n ) sc1\n ON sc1.synth_symbol_in = s.symbol_in\n AND sc1.blockchain = 'polygon'\n LEFT JOIN (\n SELECT\n synth_symbol AS synth_symbol_out,\n synth_proxy_address AS token_out,\n decimals AS decimals_out,\n blockchain\n FROM\n polygon.silver_dex.synthetix_synths_20230404\n ) sc2\n ON sc2.synth_symbol_out = s.symbol_out\n AND sc2.blockchain = 'polygon'", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__maverick_v2_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__maverick_v2_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/maverick/silver_dex__maverick_v2_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/maverick/silver_dex__maverick_v2_pools.sql", "unique_id": "model.fsc_evm.silver_dex__maverick_v2_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "maverick", "silver_dex__maverick_v2_pools"], "alias": "maverick_v2_pools", "checksum": {"name": "sha256", "checksum": "a059b2c8161989ea61d58b73b0e1e50bba2e187cbe8946b62aa68d99cf2f6975"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018382.52968, "relation_name": "polygon.silver_dex.maverick_v2_pools", "raw_code": "{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'maverick'\n AND version = 'v2'\n),\ncreated_pools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n )\n ) AS protocolFeeRatio,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n )\n ) AS feeAIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n )\n ) AS feeBIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS tickSpacing,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [5] :: STRING\n )\n ) AS lookback,\n -- lookback period\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [6] :: STRING\n )\n ) AS activetick,\n -- pool type (static/right/left/both/all)\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [7] :: STRING,\n 25,\n 40\n )\n ) AS tokenA,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [8] :: STRING,\n 25,\n 40\n )\n ) AS tokenB,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [9] :: STRING\n )\n ) AS kinds,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [10] :: STRING,\n 25,\n 40\n )\n ) AS accessor,\n -- null if permissionless pool\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0x848331e408557f4b7eb6561ca1c18a3ac43004fbe64b8b5bce613855cfdf22d2' --paircreated\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n pool_address,\n protocolFeeRatio AS protocol_fee_ratio,\n feeAin,\n feeBin,\n tickspacing AS tick_spacing,\n lookback,\n activetick,\n tokenA,\n tokenB,\n kinds,\n accessor,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n created_pools qualify(ROW_NUMBER() over(PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/maverick/silver_dex__maverick_v2_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'maverick'\n AND version = 'v2'\n),\ncreated_pools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n )\n ) AS protocolFeeRatio,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n )\n ) AS feeAIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n )\n ) AS feeBIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS tickSpacing,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [5] :: STRING\n )\n ) AS lookback,\n -- lookback period\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [6] :: STRING\n )\n ) AS activetick,\n -- pool type (static/right/left/both/all)\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [7] :: STRING,\n 25,\n 40\n )\n ) AS tokenA,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [8] :: STRING,\n 25,\n 40\n )\n ) AS tokenB,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [9] :: STRING\n )\n ) AS kinds,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [10] :: STRING,\n 25,\n 40\n )\n ) AS accessor,\n -- null if permissionless pool\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0x848331e408557f4b7eb6561ca1c18a3ac43004fbe64b8b5bce613855cfdf22d2' --paircreated\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n pool_address,\n protocolFeeRatio AS protocol_fee_ratio,\n feeAin,\n feeBin,\n tickspacing AS tick_spacing,\n lookback,\n activetick,\n tokenA,\n tokenB,\n kinds,\n accessor,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n created_pools qualify(ROW_NUMBER() over(PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'maverick'\n AND version = 'v2'\n),\ncreated_pools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n )\n ) AS protocolFeeRatio,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n )\n ) AS feeAIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n )\n ) AS feeBIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS tickSpacing,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [5] :: STRING\n )\n ) AS lookback,\n -- lookback period\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [6] :: STRING\n )\n ) AS activetick,\n -- pool type (static/right/left/both/all)\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [7] :: STRING,\n 25,\n 40\n )\n ) AS tokenA,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [8] :: STRING,\n 25,\n 40\n )\n ) AS tokenB,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [9] :: STRING\n )\n ) AS kinds,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [10] :: STRING,\n 25,\n 40\n )\n ) AS accessor,\n -- null if permissionless pool\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0x848331e408557f4b7eb6561ca1c18a3ac43004fbe64b8b5bce613855cfdf22d2' --paircreated\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.maverick_v2_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n pool_address,\n protocolFeeRatio AS protocol_fee_ratio,\n feeAin,\n feeBin,\n tickspacing AS tick_spacing,\n lookback,\n activetick,\n tokenA,\n tokenB,\n kinds,\n accessor,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n created_pools qualify(ROW_NUMBER() over(PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__maverick_v2_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__maverick_v2_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/maverick/silver_dex__maverick_v2_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/maverick/silver_dex__maverick_v2_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__maverick_v2_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "maverick", "silver_dex__maverick_v2_swaps"], "alias": "maverick_v2_swaps", "checksum": {"name": "sha256", "checksum": "e75a4ef8506fdd0b6a0e6c2a5f45b511a7d3dc256975fec9dbb7ae5041dd26d6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018382.9640238, "relation_name": "polygon.silver_dex.maverick_v2_swaps", "raw_code": "{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS sender_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS recipient_address,\n CASE\n WHEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) = 0 THEN FALSE\n ELSE TRUE\n END AS tokenAin,\n CASE\n WHEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) = 0 THEN FALSE\n ELSE TRUE\n END AS exactOutput,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [5] :: STRING\n )\n ) AS activetick,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [6] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [7] :: STRING\n )\n ) AS amountOut,\n tokenA,\n tokenB,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__maverick_v2_pools') }} p\n ON l.contract_address = p.pool_address\n WHERE\n l.topic_0 :: STRING = '0x103ed084e94a44c8f5f6ba8e3011507c41063177e29949083c439777d8d63f60' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n contract_address AS pool_address,\n sender_address AS sender,\n recipient_address AS tx_to,\n tokenAin AS token_A_in,\n exactOutput AS exact_output,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n activetick,\n CASE\n WHEN token_A_in = TRUE THEN tokenA\n ELSE tokenB\n END AS token_in,\n CASE\n WHEN token_A_in = TRUE THEN tokenB\n ELSE tokenA\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__maverick_v2_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__maverick_v2_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/maverick/silver_dex__maverick_v2_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS sender_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS recipient_address,\n CASE\n WHEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) = 0 THEN FALSE\n ELSE TRUE\n END AS tokenAin,\n CASE\n WHEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) = 0 THEN FALSE\n ELSE TRUE\n END AS exactOutput,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [5] :: STRING\n )\n ) AS activetick,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [6] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [7] :: STRING\n )\n ) AS amountOut,\n tokenA,\n tokenB,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__maverick_v2_pools') }} p\n ON l.contract_address = p.pool_address\n WHERE\n l.topic_0 :: STRING = '0x103ed084e94a44c8f5f6ba8e3011507c41063177e29949083c439777d8d63f60' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n contract_address AS pool_address,\n sender_address AS sender,\n recipient_address AS tx_to,\n tokenAin AS token_A_in,\n exactOutput AS exact_output,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n activetick,\n CASE\n WHEN token_A_in = TRUE THEN tokenA\n ELSE tokenB\n END AS token_in,\n CASE\n WHEN token_A_in = TRUE THEN tokenB\n ELSE tokenA\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out\n*/\n\n\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS sender_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS recipient_address,\n CASE\n WHEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) = 0 THEN FALSE\n ELSE TRUE\n END AS tokenAin,\n CASE\n WHEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) = 0 THEN FALSE\n ELSE TRUE\n END AS exactOutput,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [5] :: STRING\n )\n ) AS activetick,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [6] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [7] :: STRING\n )\n ) AS amountOut,\n tokenA,\n tokenB,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.maverick_v2_pools p\n ON l.contract_address = p.pool_address\n WHERE\n l.topic_0 :: STRING = '0x103ed084e94a44c8f5f6ba8e3011507c41063177e29949083c439777d8d63f60' --Swap\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.maverick_v2_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n contract_address AS pool_address,\n sender_address AS sender,\n recipient_address AS tx_to,\n tokenAin AS token_A_in,\n exactOutput AS exact_output,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n activetick,\n CASE\n WHEN token_A_in = TRUE THEN tokenA\n ELSE tokenB\n END AS token_in,\n CASE\n WHEN token_A_in = TRUE THEN tokenB\n ELSE tokenA\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__maverick_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__maverick_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/maverick/silver_dex__maverick_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/maverick/silver_dex__maverick_pools.sql", "unique_id": "model.fsc_evm.silver_dex__maverick_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "maverick", "silver_dex__maverick_pools"], "alias": "maverick_pools", "checksum": {"name": "sha256", "checksum": "9e9bf3bf3d545ec5ac31b6882e2299bc8be45690fc09a5c64b9bd434babee98f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018383.2801893, "relation_name": "polygon.silver_dex.maverick_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"pool_address\",\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'maverick'\n AND version = 'v1'\n),\npools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS fee,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS tickSpacing,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n )\n ) AS activeTick,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n ) AS lookback,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n )\n ) AS protocolFeeRatio,\n CONCAT('0x', SUBSTR(segmented_data [6] :: STRING, 25, 40)) AS tokenA,\n CONCAT('0x', SUBSTR(segmented_data [7] :: STRING, 25, 40)) AS tokenB,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref ('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x9b3fb3a17b4e94eb4d1217257372dcc712218fcd4bc1c28482bd8a6804a7c775'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n pool_address,\n fee,\n tickSpacing,\n activeTick,\n lookback,\n protocolFeeRatio,\n tokenA,\n tokenB,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over(PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/maverick/silver_dex__maverick_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"pool_address\",\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'maverick'\n AND version = 'v1'\n),\npools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS fee,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS tickSpacing,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n )\n ) AS activeTick,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n ) AS lookback,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n )\n ) AS protocolFeeRatio,\n CONCAT('0x', SUBSTR(segmented_data [6] :: STRING, 25, 40)) AS tokenA,\n CONCAT('0x', SUBSTR(segmented_data [7] :: STRING, 25, 40)) AS tokenB,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref ('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x9b3fb3a17b4e94eb4d1217257372dcc712218fcd4bc1c28482bd8a6804a7c775'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n pool_address,\n fee,\n tickSpacing,\n activeTick,\n lookback,\n protocolFeeRatio,\n tokenA,\n tokenB,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over(PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'maverick'\n AND version = 'v1'\n),\npools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS fee,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS tickSpacing,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n )\n ) AS activeTick,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n ) AS lookback,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n )\n ) AS protocolFeeRatio,\n CONCAT('0x', SUBSTR(segmented_data [6] :: STRING, 25, 40)) AS tokenA,\n CONCAT('0x', SUBSTR(segmented_data [7] :: STRING, 25, 40)) AS tokenB,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'PairCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x9b3fb3a17b4e94eb4d1217257372dcc712218fcd4bc1c28482bd8a6804a7c775'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.maverick_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n pool_address,\n fee,\n tickSpacing,\n activeTick,\n lookback,\n protocolFeeRatio,\n tokenA,\n tokenB,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over(PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__maverick_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__maverick_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/maverick/silver_dex__maverick_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/maverick/silver_dex__maverick_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__maverick_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "maverick", "silver_dex__maverick_swaps"], "alias": "maverick_swaps", "checksum": {"name": "sha256", "checksum": "437861bb49dd3425c1d575944257398e7eb9ced34022c2582347ff0a6fc50a99"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018383.5953064, "relation_name": "polygon.silver_dex.maverick_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS sender_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS recipient_address,\n CASE\n WHEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) = 0 THEN FALSE\n ELSE TRUE\n END AS tokenAin,\n CASE\n WHEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) = 0 THEN FALSE\n ELSE TRUE\n END AS exactOutput,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [5] :: STRING\n )\n ) AS amountOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [6] :: STRING\n )\n ) AS activeTick,\n tokenA,\n tokenB,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__maverick_pools') }} p\n ON l.contract_address = p.pool_address\n WHERE\n l.topics [0] :: STRING = '0x3b841dc9ab51e3104bda4f61b41e4271192d22cd19da5ee6e292dc8e2744f713' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n event_name,\n sender_address AS sender,\n recipient_address AS tx_to,\n tokenAin AS token_A_in,\n exactOutput AS exact_output,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n activeTick AS active_tick,\n CASE\n WHEN token_A_in = TRUE THEN tokenA\n ELSE tokenB\n END AS token_in,\n CASE\n WHEN token_A_in = TRUE THEN tokenB\n ELSE tokenA\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__maverick_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__maverick_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/maverick/silver_dex__maverick_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS sender_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS recipient_address,\n CASE\n WHEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) = 0 THEN FALSE\n ELSE TRUE\n END AS tokenAin,\n CASE\n WHEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) = 0 THEN FALSE\n ELSE TRUE\n END AS exactOutput,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [5] :: STRING\n )\n ) AS amountOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [6] :: STRING\n )\n ) AS activeTick,\n tokenA,\n tokenB,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__maverick_pools') }} p\n ON l.contract_address = p.pool_address\n WHERE\n l.topics [0] :: STRING = '0x3b841dc9ab51e3104bda4f61b41e4271192d22cd19da5ee6e292dc8e2744f713' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n event_name,\n sender_address AS sender,\n recipient_address AS tx_to,\n tokenAin AS token_A_in,\n exactOutput AS exact_output,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n activeTick AS active_tick,\n CASE\n WHEN token_A_in = TRUE THEN tokenA\n ELSE tokenB\n END AS token_in,\n CASE\n WHEN token_A_in = TRUE THEN tokenB\n ELSE tokenA\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out\n*/\n\n\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS sender_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS recipient_address,\n CASE\n WHEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) = 0 THEN FALSE\n ELSE TRUE\n END AS tokenAin,\n CASE\n WHEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) = 0 THEN FALSE\n ELSE TRUE\n END AS exactOutput,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [5] :: STRING\n )\n ) AS amountOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [6] :: STRING\n )\n ) AS activeTick,\n tokenA,\n tokenB,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.maverick_pools p\n ON l.contract_address = p.pool_address\n WHERE\n l.topics [0] :: STRING = '0x3b841dc9ab51e3104bda4f61b41e4271192d22cd19da5ee6e292dc8e2744f713' --Swap\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.maverick_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n event_name,\n sender_address AS sender,\n recipient_address AS tx_to,\n tokenAin AS token_A_in,\n exactOutput AS exact_output,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n activeTick AS active_tick,\n CASE\n WHEN token_A_in = TRUE THEN tokenA\n ELSE tokenB\n END AS token_in,\n CASE\n WHEN token_A_in = TRUE THEN tokenB\n ELSE tokenA\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__sushiswap_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__sushiswap_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/sushiswap/silver_dex__sushiswap_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/sushiswap/silver_dex__sushiswap_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__sushiswap_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "sushiswap", "silver_dex__sushiswap_pool_actions"], "alias": "sushiswap_pool_actions", "checksum": {"name": "sha256", "checksum": "2fe35e34061c5ca26c917d50ae2105a08a6871cef741b86ee28017b142ec88e2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018383.910531, "relation_name": "polygon.silver_dex.sushiswap_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__sushiswap_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0xdbba30eb0402b389513e87f51f4db2db80bed454384ec6925a24097c3548a02a', --mint\n '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS receiver_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xdbba30eb0402b389513e87f51f4db2db80bed454384ec6925a24097c3548a02a' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS receiver_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n receiver_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n receiver_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__sushiswap_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__sushiswap_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/sushiswap/silver_dex__sushiswap_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__sushiswap_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0xdbba30eb0402b389513e87f51f4db2db80bed454384ec6925a24097c3548a02a', --mint\n '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS receiver_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xdbba30eb0402b389513e87f51f4db2db80bed454384ec6925a24097c3548a02a' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS receiver_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n receiver_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n receiver_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.sushiswap_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0xdbba30eb0402b389513e87f51f4db2db80bed454384ec6925a24097c3548a02a', --mint\n '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.sushiswap_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS receiver_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xdbba30eb0402b389513e87f51f4db2db80bed454384ec6925a24097c3548a02a' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS receiver_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n receiver_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n receiver_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__sushiswap_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__sushiswap_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/sushiswap/silver_dex__sushiswap_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/sushiswap/silver_dex__sushiswap_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__sushiswap_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "sushiswap", "silver_dex__sushiswap_swaps"], "alias": "sushiswap_swaps", "checksum": {"name": "sha256", "checksum": "fa689b82e993264a7873fe79d432ff35af14031686483b166e754cfc8aae7fa9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018384.2263465, "relation_name": "polygon.silver_dex.sushiswap_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS amountOut,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS tx_to,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS tokenIn,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS tokenOut,\n token0,\n token1,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__sushiswap_pools') }} p\n ON l.contract_address = p.pool_address\n WHERE\n topics [0] :: STRING = '0xcd3829a3813dc3cdd188fd3d01dcf3268c16be2fdd2dd21d0665418816e46062'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n origin_from_address AS sender,\n tx_to,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n tokenIn AS token_in,\n tokenOut AS token_out,\n token0,\n token1,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__sushiswap_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__sushiswap_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/sushiswap/silver_dex__sushiswap_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS amountOut,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS tx_to,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS tokenIn,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS tokenOut,\n token0,\n token1,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__sushiswap_pools') }} p\n ON l.contract_address = p.pool_address\n WHERE\n topics [0] :: STRING = '0xcd3829a3813dc3cdd188fd3d01dcf3268c16be2fdd2dd21d0665418816e46062'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n origin_from_address AS sender,\n tx_to,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n tokenIn AS token_in,\n tokenOut AS token_out,\n token0,\n token1,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\n*/\n\n\n\nWITH swaps AS (\n SELECT\n l.block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS amountOut,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS tx_to,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS tokenIn,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS tokenOut,\n token0,\n token1,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.sushiswap_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topics [0] :: STRING = '0xcd3829a3813dc3cdd188fd3d01dcf3268c16be2fdd2dd21d0665418816e46062'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.sushiswap_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n origin_from_address AS sender,\n tx_to,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n tokenIn AS token_in,\n tokenOut AS token_out,\n token0,\n token1,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__sushiswap_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__sushiswap_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/sushiswap/silver_dex__sushiswap_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/sushiswap/silver_dex__sushiswap_pools.sql", "unique_id": "model.fsc_evm.silver_dex__sushiswap_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "sushiswap", "silver_dex__sushiswap_pools"], "alias": "sushiswap_pools", "checksum": {"name": "sha256", "checksum": "06baca1fc71d5c016b7268398dc13cadce63b3fc4469f3224f187f900de6d9f6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018384.5424192, "relation_name": "polygon.silver_dex.sushiswap_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'sushiswap'\n AND version = 'v1'\n),\npools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS pool_address,\n CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40)) AS token0,\n CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) AS token1,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'DeployPool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref ('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xe469f9471ac1d98222517eb2cdff1ef4df5f7880269173bb782bb78e499d9de3' --DeployPool\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/sushiswap/silver_dex__sushiswap_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'sushiswap'\n AND version = 'v1'\n),\npools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS pool_address,\n CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40)) AS token0,\n CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) AS token1,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'DeployPool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref ('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xe469f9471ac1d98222517eb2cdff1ef4df5f7880269173bb782bb78e499d9de3' --DeployPool\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'sushiswap'\n AND version = 'v1'\n),\npools AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS pool_address,\n CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40)) AS token0,\n CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) AS token1,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'DeployPool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xe469f9471ac1d98222517eb2cdff1ef4df5f7880269173bb782bb78e499d9de3' --DeployPool\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.sushiswap_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__woofi_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__woofi_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/woofi/silver_dex__woofi_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/woofi/silver_dex__woofi_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__woofi_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "woofi", "silver_dex__woofi_swaps"], "alias": "woofi_swaps", "checksum": {"name": "sha256", "checksum": "0a0d85c7bd9bf5ec383870332678702c10114396d5ab24200384a5f1dc1bae91"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018384.8584924, "relation_name": "polygon.silver_dex.woofi_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'woofi'\n),\nrouter_swaps_base AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS from_token,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_token,\n CONCAT('0x', SUBSTR(l.topics [3] :: STRING, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS swapType,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS fromAmount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS toAmount,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [3] :: STRING,\n 25,\n 40\n )\n ) AS from_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [4] :: STRING,\n 25,\n 40\n )\n ) AS rebateTo,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'WooRouterSwap' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n AND m.type = 'woo_router_swap'\n WHERE\n topics [0] :: STRING = '0x27c98e911efdd224f4002f6cd831c3ad0d2759ee176f9ee8466d95826af22a1c' --WooRouterSwap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nswaps_base AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS from_token,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_token,\n CONCAT('0x', SUBSTR(l.topics [3] :: STRING, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS fromAmount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS toAmount,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [2] :: STRING,\n 25,\n 40\n )\n ) AS from_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [3] :: STRING,\n 25,\n 40\n )\n ) AS rebateTo,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'WooSwap' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n AND m.type = 'woo_swap'\n WHERE\n topics [0] :: STRING IN (\n '0x74ef34e2ea7c5d9f7b7ed44e97ad44b4303416c3a660c3fb5b3bdb95a1d6abd3',\n '0x0e8e403c2d36126272b08c75823e988381d9dc47f2f0a9a080d95f891d95c469'\n ) --WooSwap\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n router_swaps_base\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n CASE\n WHEN from_token = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE from_token\n END AS token_in,\n CASE\n WHEN to_token = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE to_token\n END AS token_out,\n to_address AS tx_to,\n swapType AS swap_type,\n fromAmount AS amount_in_unadj,\n toAmount AS amount_out_unadj,\n from_address AS sender,\n rebateTo AS rebate_to,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n router_swaps_base\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n CASE\n WHEN from_token = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE from_token\n END AS token_in,\n CASE\n WHEN to_token = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE to_token\n END AS token_out,\n to_address AS tx_to,\n NULL AS swap_type,\n fromAmount AS amount_in_unadj,\n toAmount AS amount_out_unadj,\n from_address AS sender,\n rebateTo AS rebate_to,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps_base", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/woofi/silver_dex__woofi_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'woofi'\n),\nrouter_swaps_base AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS from_token,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_token,\n CONCAT('0x', SUBSTR(l.topics [3] :: STRING, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS swapType,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS fromAmount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS toAmount,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [3] :: STRING,\n 25,\n 40\n )\n ) AS from_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [4] :: STRING,\n 25,\n 40\n )\n ) AS rebateTo,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'WooRouterSwap' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n AND m.type = 'woo_router_swap'\n WHERE\n topics [0] :: STRING = '0x27c98e911efdd224f4002f6cd831c3ad0d2759ee176f9ee8466d95826af22a1c' --WooRouterSwap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nswaps_base AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS from_token,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_token,\n CONCAT('0x', SUBSTR(l.topics [3] :: STRING, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS fromAmount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS toAmount,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [2] :: STRING,\n 25,\n 40\n )\n ) AS from_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [3] :: STRING,\n 25,\n 40\n )\n ) AS rebateTo,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'WooSwap' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n AND m.type = 'woo_swap'\n WHERE\n topics [0] :: STRING IN (\n '0x74ef34e2ea7c5d9f7b7ed44e97ad44b4303416c3a660c3fb5b3bdb95a1d6abd3',\n '0x0e8e403c2d36126272b08c75823e988381d9dc47f2f0a9a080d95f891d95c469'\n ) --WooSwap\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n router_swaps_base\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n CASE\n WHEN from_token = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE from_token\n END AS token_in,\n CASE\n WHEN to_token = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE to_token\n END AS token_out,\n to_address AS tx_to,\n swapType AS swap_type,\n fromAmount AS amount_in_unadj,\n toAmount AS amount_out_unadj,\n from_address AS sender,\n rebateTo AS rebate_to,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n router_swaps_base\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n CASE\n WHEN from_token = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE from_token\n END AS token_in,\n CASE\n WHEN to_token = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE to_token\n END AS token_out,\n to_address AS tx_to,\n NULL AS swap_type,\n fromAmount AS amount_in_unadj,\n toAmount AS amount_out_unadj,\n from_address AS sender,\n rebateTo AS rebate_to,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps_base\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'woofi'\n),\nrouter_swaps_base AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS from_token,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_token,\n CONCAT('0x', SUBSTR(l.topics [3] :: STRING, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS swapType,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS fromAmount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS toAmount,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [3] :: STRING,\n 25,\n 40\n )\n ) AS from_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [4] :: STRING,\n 25,\n 40\n )\n ) AS rebateTo,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'WooRouterSwap' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n AND m.type = 'woo_router_swap'\n WHERE\n topics [0] :: STRING = '0x27c98e911efdd224f4002f6cd831c3ad0d2759ee176f9ee8466d95826af22a1c' --WooRouterSwap\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.woofi_swaps\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nswaps_base AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS from_token,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_token,\n CONCAT('0x', SUBSTR(l.topics [3] :: STRING, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS fromAmount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS toAmount,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [2] :: STRING,\n 25,\n 40\n )\n ) AS from_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [3] :: STRING,\n 25,\n 40\n )\n ) AS rebateTo,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'WooSwap' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n AND m.type = 'woo_swap'\n WHERE\n topics [0] :: STRING IN (\n '0x74ef34e2ea7c5d9f7b7ed44e97ad44b4303416c3a660c3fb5b3bdb95a1d6abd3',\n '0x0e8e403c2d36126272b08c75823e988381d9dc47f2f0a9a080d95f891d95c469'\n ) --WooSwap\n AND tx_hash NOT IN (\n SELECT\n tx_hash\n FROM\n router_swaps_base\n )\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.woofi_swaps\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n CASE\n WHEN from_token = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ELSE from_token\n END AS token_in,\n CASE\n WHEN to_token = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ELSE to_token\n END AS token_out,\n to_address AS tx_to,\n swapType AS swap_type,\n fromAmount AS amount_in_unadj,\n toAmount AS amount_out_unadj,\n from_address AS sender,\n rebateTo AS rebate_to,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n router_swaps_base\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n CASE\n WHEN from_token = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ELSE from_token\n END AS token_in,\n CASE\n WHEN to_token = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ELSE to_token\n END AS token_out,\n to_address AS tx_to,\n NULL AS swap_type,\n fromAmount AS amount_in_unadj,\n toAmount AS amount_out_unadj,\n from_address AS sender,\n rebateTo AS rebate_to,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps_base", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__quickswap_v2_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__quickswap_v2_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/quickswap/silver_dex__quickswap_v2_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/quickswap/silver_dex__quickswap_v2_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__quickswap_v2_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "quickswap", "silver_dex__quickswap_v2_swaps"], "alias": "quickswap_v2_swaps", "checksum": {"name": "sha256", "checksum": "d2e2635621d703e7fb04d48168338184012e507d74761da9edd8157286d97b04"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018385.1763604, "relation_name": "polygon.silver_dex.quickswap_v2_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n ) :: FLOAT AS sqrtPriceX96,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n ) :: FLOAT AS liquidity,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n ) :: FLOAT AS tick,\n token0_address,\n token1_address,\n pool_address,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__quickswap_v2_pools') }}\n p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_address,\n recipient,\n sender,\n tick,\n liquidity,\n token0_address,\n token1_address,\n amount0_unadj,\n amount1_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__quickswap_v2_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__quickswap_v2_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/quickswap/silver_dex__quickswap_v2_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n ) :: FLOAT AS sqrtPriceX96,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n ) :: FLOAT AS liquidity,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n ) :: FLOAT AS tick,\n token0_address,\n token1_address,\n pool_address,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__quickswap_v2_pools') }}\n p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_address,\n recipient,\n sender,\n tick,\n liquidity,\n token0_address,\n token1_address,\n amount0_unadj,\n amount1_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n ) :: FLOAT AS sqrtPriceX96,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n ) :: FLOAT AS liquidity,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n ) :: FLOAT AS tick,\n token0_address,\n token1_address,\n pool_address,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.quickswap_v2_pools\n p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67' --Swap\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.quickswap_v2_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_address,\n recipient,\n sender,\n tick,\n liquidity,\n token0_address,\n token1_address,\n amount0_unadj,\n amount1_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__quickswap_v4_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__quickswap_v4_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/quickswap/silver_dex__quickswap_v4_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/quickswap/silver_dex__quickswap_v4_pools.sql", "unique_id": "model.fsc_evm.silver_dex__quickswap_v4_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "quickswap", "silver_dex__quickswap_v4_pools"], "alias": "quickswap_v4_pools", "checksum": {"name": "sha256", "checksum": "2dd11b6ab7a04f6751cc14fea224768bfec4e4ab622d787261b29c5951c38915"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018385.4904413, "relation_name": "polygon.silver_dex.quickswap_v4_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'quickswap'\n AND version = 'v4'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0_address,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'Pool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db' --Pool\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0_address,\n token1_address,\n pool_address,\n platform,\n protocol,\n version,\n TYPE,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/quickswap/silver_dex__quickswap_v4_pools.sql", "compiled": true, "compiled_code": "\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'quickswap'\n AND version = 'v4'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0_address,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'Pool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db' --Pool\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0_address,\n token1_address,\n pool_address,\n platform,\n protocol,\n version,\n TYPE,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'quickswap'\n AND version = 'v4'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0_address,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'Pool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db' --Pool\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.quickswap_v4_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0_address,\n token1_address,\n pool_address,\n platform,\n protocol,\n version,\n TYPE,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__quickswap_v2_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__quickswap_v2_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/quickswap/silver_dex__quickswap_v2_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/quickswap/silver_dex__quickswap_v2_pools.sql", "unique_id": "model.fsc_evm.silver_dex__quickswap_v2_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "quickswap", "silver_dex__quickswap_v2_pools"], "alias": "quickswap_v2_pools", "checksum": {"name": "sha256", "checksum": "6c79b1f2f92b907e34478858c54baeeec5bec8ab2a8ca9c8e9c47d97274aecb8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018385.805526, "relation_name": "polygon.silver_dex.quickswap_v2_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'quickswap'\n AND version = 'v2'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0_address,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'Pool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db' --Pool\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0_address,\n token1_address,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/quickswap/silver_dex__quickswap_v2_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'quickswap'\n AND version = 'v2'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0_address,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'Pool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db' --Pool\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0_address,\n token1_address,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'quickswap'\n AND version = 'v2'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) AS token0_address,\n LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) AS token1_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'Pool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] = '0x91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db' --Pool\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.quickswap_v2_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0_address,\n token1_address,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__quickswap_v4_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__quickswap_v4_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/quickswap/silver_dex__quickswap_v4_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/quickswap/silver_dex__quickswap_v4_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__quickswap_v4_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "quickswap", "silver_dex__quickswap_v4_swaps"], "alias": "quickswap_v4_swaps", "checksum": {"name": "sha256", "checksum": "d1fc123c56dd953a2dbd3196d03ea6d2aa212dac54c9bd1d6f2a0c38de32e9a2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018386.1193624, "relation_name": "polygon.silver_dex.quickswap_v4_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n ) :: FLOAT AS sqrtPriceX96,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n ) :: FLOAT AS liquidity,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n ) :: FLOAT AS tick,\n token0_address,\n token1_address,\n pool_address,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__quickswap_v4_pools') }}\n p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_address,\n recipient,\n sender,\n tick,\n liquidity,\n token0_address,\n token1_address,\n amount0_unadj,\n amount1_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n TYPE,\n _log_id,\n modified_timestamp\nFROM\n swaps qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__quickswap_v4_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__quickswap_v4_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/quickswap/silver_dex__quickswap_v4_swaps.sql", "compiled": true, "compiled_code": "\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n ) :: FLOAT AS sqrtPriceX96,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n ) :: FLOAT AS liquidity,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n ) :: FLOAT AS tick,\n token0_address,\n token1_address,\n pool_address,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__quickswap_v4_pools') }}\n p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_address,\n recipient,\n sender,\n tick,\n liquidity,\n token0_address,\n token1_address,\n amount0_unadj,\n amount1_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n TYPE,\n _log_id,\n modified_timestamp\nFROM\n swaps qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n ) :: FLOAT AS sqrtPriceX96,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n ) :: FLOAT AS liquidity,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n ) :: FLOAT AS tick,\n token0_address,\n token1_address,\n pool_address,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.quickswap_v4_pools\n p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67' --Swap\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.quickswap_v4_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_address,\n recipient,\n sender,\n tick,\n liquidity,\n token0_address,\n token1_address,\n amount0_unadj,\n amount1_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n TYPE,\n _log_id,\n modified_timestamp\nFROM\n swaps qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__quickswap_v4_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__quickswap_v4_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/quickswap/silver_dex__quickswap_v4_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/quickswap/silver_dex__quickswap_v4_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__quickswap_v4_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "quickswap", "silver_dex__quickswap_v4_pool_actions"], "alias": "quickswap_v4_pool_actions", "checksum": {"name": "sha256", "checksum": "bb6bc5a64520db519ff490d0188e55e46fe6cb3fe2c2cc0a94daa52fd4a43f3c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018386.4352126, "relation_name": "polygon.silver_dex.quickswap_v4_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0_address AS token0,\n token1_address AS token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__quickswap_v4_pools') }}\n p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN (\n '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde',\n --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n TYPE,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n TYPE,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n TYPE,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n TYPE,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n TYPE,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__quickswap_v4_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__quickswap_v4_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/quickswap/silver_dex__quickswap_v4_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0_address AS token0,\n token1_address AS token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__quickswap_v4_pools') }}\n p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN (\n '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde',\n --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n TYPE,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n TYPE,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n TYPE,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n TYPE,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n TYPE,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\nWITH evt AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0_address AS token0,\n token1_address AS token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n DATA,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.quickswap_v4_pools\n p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN (\n '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde',\n --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.quickswap_v4_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n TYPE,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n TYPE,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n TYPE,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n TYPE,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n TYPE,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__quickswap_v2_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__quickswap_v2_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/quickswap/silver_dex__quickswap_v2_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/quickswap/silver_dex__quickswap_v2_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__quickswap_v2_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "quickswap", "silver_dex__quickswap_v2_pool_actions"], "alias": "quickswap_v2_pool_actions", "checksum": {"name": "sha256", "checksum": "1acc3b94294feac1f6d5f6dad5e90e22c99d1f37ca57a4ba15b8b85156d0c112"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018386.752064, "relation_name": "polygon.silver_dex.quickswap_v2_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0_address AS token0,\n token1_address AS token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__quickswap_v2_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__quickswap_v2_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__quickswap_v2_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/quickswap/silver_dex__quickswap_v2_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0_address AS token0,\n token1_address AS token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__quickswap_v2_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0_address AS token0,\n token1_address AS token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.quickswap_v2_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.quickswap_v2_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__bitflux_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__bitflux_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/bitflux/silver_dex__bitflux_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/bitflux/silver_dex__bitflux_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__bitflux_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "bitflux", "silver_dex__bitflux_swaps"], "alias": "bitflux_swaps", "checksum": {"name": "sha256", "checksum": "d5f2078c270480de64c20cd307b34298a5379c378832fc02996b539ef1ab045b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018387.0665922, "relation_name": "polygon.silver_dex.bitflux_swaps", "raw_code": "{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.contract_address,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n event_index,\n COALESCE(\n p1.pool_address,\n p2.pool_address\n ) AS pool_address,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS buyer,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [0] :: STRING)) AS tokensSold,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [1] :: STRING)) AS tokensBought,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS soldId,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [3] :: STRING)) AS boughtId,\n p1.token0,\n p1.token1,\n p1.token2,\n p1.token3,\n CASE\n WHEN boughtId = 0 THEN p1.token0\n WHEN boughtId = 1 THEN p1.token1\n WHEN boughtId = 2 THEN p1.token2\n WHEN boughtId = 3 THEN p1.token3\n ELSE NULL\n END AS token_out,\n CASE\n WHEN soldId = 0 THEN p2.token0\n WHEN soldId = 1 THEN p2.token1\n WHEN soldId = 2 THEN p2.token2\n WHEN soldId = 3 THEN p2.token3\n ELSE NULL\n END AS token_in,\n tokensSold AS amount_in_unadj,\n tokensBought AS amount_out_unadj,\n COALESCE(p1.platform, p2.platform) AS platform,\n COALESCE(p1.protocol, p2.protocol) AS protocol,\n COALESCE(p1.version, p2.version) AS version,\n COALESCE(p1.type, p2.type) AS type,\n 'TokenSwap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__bitflux_pools') }} p1\n ON l.contract_address = p1.pool_address\n INNER JOIN {{ ref('silver_dex__bitflux_pools') }} p2\n ON l.contract_address = p2.pool_address\n WHERE\n topic_0 = '0xc6c1e0630dbe9130cc068028486c0d118ddcea348550819defd5cb8c257f8a38'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n buyer AS recipient,\n buyer AS sender,\n buyer AS tx_to,\n event_name,\n event_index,\n token0,\n token1,\n token2,\n token3,\n token_in,\n token_out,\n amount_in_unadj,\n amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__bitflux_pools", "package": null, "version": null}, {"name": "silver_dex__bitflux_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__bitflux_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/bitflux/silver_dex__bitflux_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.contract_address,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n event_index,\n COALESCE(\n p1.pool_address,\n p2.pool_address\n ) AS pool_address,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS buyer,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [0] :: STRING)) AS tokensSold,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [1] :: STRING)) AS tokensBought,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS soldId,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [3] :: STRING)) AS boughtId,\n p1.token0,\n p1.token1,\n p1.token2,\n p1.token3,\n CASE\n WHEN boughtId = 0 THEN p1.token0\n WHEN boughtId = 1 THEN p1.token1\n WHEN boughtId = 2 THEN p1.token2\n WHEN boughtId = 3 THEN p1.token3\n ELSE NULL\n END AS token_out,\n CASE\n WHEN soldId = 0 THEN p2.token0\n WHEN soldId = 1 THEN p2.token1\n WHEN soldId = 2 THEN p2.token2\n WHEN soldId = 3 THEN p2.token3\n ELSE NULL\n END AS token_in,\n tokensSold AS amount_in_unadj,\n tokensBought AS amount_out_unadj,\n COALESCE(p1.platform, p2.platform) AS platform,\n COALESCE(p1.protocol, p2.protocol) AS protocol,\n COALESCE(p1.version, p2.version) AS version,\n COALESCE(p1.type, p2.type) AS type,\n 'TokenSwap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__bitflux_pools') }} p1\n ON l.contract_address = p1.pool_address\n INNER JOIN {{ ref('silver_dex__bitflux_pools') }} p2\n ON l.contract_address = p2.pool_address\n WHERE\n topic_0 = '0xc6c1e0630dbe9130cc068028486c0d118ddcea348550819defd5cb8c257f8a38'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n buyer AS recipient,\n buyer AS sender,\n buyer AS tx_to,\n event_name,\n event_index,\n token0,\n token1,\n token2,\n token3,\n token_in,\n token_out,\n amount_in_unadj,\n amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\n*/\n\n\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.contract_address,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n event_index,\n COALESCE(\n p1.pool_address,\n p2.pool_address\n ) AS pool_address,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS buyer,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [0] :: STRING)) AS tokensSold,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [1] :: STRING)) AS tokensBought,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS soldId,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [3] :: STRING)) AS boughtId,\n p1.token0,\n p1.token1,\n p1.token2,\n p1.token3,\n CASE\n WHEN boughtId = 0 THEN p1.token0\n WHEN boughtId = 1 THEN p1.token1\n WHEN boughtId = 2 THEN p1.token2\n WHEN boughtId = 3 THEN p1.token3\n ELSE NULL\n END AS token_out,\n CASE\n WHEN soldId = 0 THEN p2.token0\n WHEN soldId = 1 THEN p2.token1\n WHEN soldId = 2 THEN p2.token2\n WHEN soldId = 3 THEN p2.token3\n ELSE NULL\n END AS token_in,\n tokensSold AS amount_in_unadj,\n tokensBought AS amount_out_unadj,\n COALESCE(p1.platform, p2.platform) AS platform,\n COALESCE(p1.protocol, p2.protocol) AS protocol,\n COALESCE(p1.version, p2.version) AS version,\n COALESCE(p1.type, p2.type) AS type,\n 'TokenSwap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.bitflux_pools p1\n ON l.contract_address = p1.pool_address\n INNER JOIN polygon.silver_dex.bitflux_pools p2\n ON l.contract_address = p2.pool_address\n WHERE\n topic_0 = '0xc6c1e0630dbe9130cc068028486c0d118ddcea348550819defd5cb8c257f8a38'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.bitflux_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n pool_address,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n buyer AS recipient,\n buyer AS sender,\n buyer AS tx_to,\n event_name,\n event_index,\n token0,\n token1,\n token2,\n token3,\n token_in,\n token_out,\n amount_in_unadj,\n amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__bitflux_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__bitflux_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/bitflux/silver_dex__bitflux_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/bitflux/silver_dex__bitflux_pools.sql", "unique_id": "model.fsc_evm.silver_dex__bitflux_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "bitflux", "silver_dex__bitflux_pools"], "alias": "bitflux_pools", "checksum": {"name": "sha256", "checksum": "c53f42431b1e6953369c7b3332c9fdce0d4e1de4b10dfd6a4004050172f68c1a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018387.3793938, "relation_name": "polygon.silver_dex.bitflux_pools", "raw_code": "{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'bitflux'\n),\npool_traces AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address AS deployer_address,\n to_address AS pool_address,\n regexp_substr_all(SUBSTR(input, 11, len(input)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [0] :: STRING)) / 32 AS token_index, \n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [1] :: STRING)) / 32 AS decimal_index,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [token_index] :: STRING\n )\n ) AS token_number,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [decimal_index] :: STRING\n )\n ) AS decimals_number,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [5] :: STRING)) * pow(\n 10,\n -10\n ) AS swap_fee,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [6] :: STRING)) * pow(\n 10,\n -10\n ) AS admin_fee,\n -- 50% of swap fee\n CONCAT('0x', SUBSTR(segmented_data [7] :: STRING, 25, 40)) AS lp_token,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [token_index+1] :: STRING,\n 25,\n 40\n )\n ) AS token0,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [token_index+2] :: STRING,\n 25,\n 40\n )\n ) AS token1,\n CASE\n WHEN token_number > 2 THEN CONCAT(\n '0x',\n SUBSTR(\n segmented_data [token_index+3] :: STRING,\n 25,\n 40\n )\n )\n ELSE NULL\n END AS token2,\n CASE\n WHEN token_number > 3 THEN CONCAT(\n '0x',\n SUBSTR(\n segmented_data [token_index+4] :: STRING,\n 25,\n 40\n )\n )\n ELSE NULL\n END AS token3,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [decimal_index+1] :: STRING\n )\n ) AS decimal0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [decimal_index+2] :: STRING\n )\n ) AS decimal1,\n CASE\n WHEN decimals_number > 2 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [decimal_index+3] :: STRING\n )\n )\n ELSE NULL\n END AS decimal2,\n CASE\n WHEN decimals_number > 3 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [decimal_index+4] :: STRING\n )\n )\n ELSE NULL\n END AS decimal3,\n utils.udf_hex_to_string(\n segmented_data [array_size(segmented_data)-3] :: STRING\n ) AS lp_name,\n utils.udf_hex_to_string(\n segmented_data [array_size(segmented_data)-1] :: STRING\n ) AS lp_symbol,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }} t \n INNER JOIN contract_mapping m \n ON t.from_address = m.contract_address\n WHERE\n origin_function_signature = '0xb28cb6dc'\n AND LEFT(\n input,\n 10\n ) = '0xb28cb6dc'\n AND trace_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n deployer_address,\n pool_address AS contract_address,\n pool_address,\n token0,\n token1,\n token2,\n token3,\n decimal0,\n decimal1,\n decimal2,\n decimal3,\n lp_name,\n lp_symbol,\n swap_fee,\n admin_fee,\n lp_token,\n platform,\n protocol,\n version,\n type,\n _call_id,\n modified_timestamp\nFROM\n pool_traces qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/bitflux/silver_dex__bitflux_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'bitflux'\n),\npool_traces AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address AS deployer_address,\n to_address AS pool_address,\n regexp_substr_all(SUBSTR(input, 11, len(input)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [0] :: STRING)) / 32 AS token_index, \n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [1] :: STRING)) / 32 AS decimal_index,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [token_index] :: STRING\n )\n ) AS token_number,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [decimal_index] :: STRING\n )\n ) AS decimals_number,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [5] :: STRING)) * pow(\n 10,\n -10\n ) AS swap_fee,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [6] :: STRING)) * pow(\n 10,\n -10\n ) AS admin_fee,\n -- 50% of swap fee\n CONCAT('0x', SUBSTR(segmented_data [7] :: STRING, 25, 40)) AS lp_token,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [token_index+1] :: STRING,\n 25,\n 40\n )\n ) AS token0,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [token_index+2] :: STRING,\n 25,\n 40\n )\n ) AS token1,\n CASE\n WHEN token_number > 2 THEN CONCAT(\n '0x',\n SUBSTR(\n segmented_data [token_index+3] :: STRING,\n 25,\n 40\n )\n )\n ELSE NULL\n END AS token2,\n CASE\n WHEN token_number > 3 THEN CONCAT(\n '0x',\n SUBSTR(\n segmented_data [token_index+4] :: STRING,\n 25,\n 40\n )\n )\n ELSE NULL\n END AS token3,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [decimal_index+1] :: STRING\n )\n ) AS decimal0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [decimal_index+2] :: STRING\n )\n ) AS decimal1,\n CASE\n WHEN decimals_number > 2 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [decimal_index+3] :: STRING\n )\n )\n ELSE NULL\n END AS decimal2,\n CASE\n WHEN decimals_number > 3 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [decimal_index+4] :: STRING\n )\n )\n ELSE NULL\n END AS decimal3,\n utils.udf_hex_to_string(\n segmented_data [array_size(segmented_data)-3] :: STRING\n ) AS lp_name,\n utils.udf_hex_to_string(\n segmented_data [array_size(segmented_data)-1] :: STRING\n ) AS lp_symbol,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }} t \n INNER JOIN contract_mapping m \n ON t.from_address = m.contract_address\n WHERE\n origin_function_signature = '0xb28cb6dc'\n AND LEFT(\n input,\n 10\n ) = '0xb28cb6dc'\n AND trace_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n deployer_address,\n pool_address AS contract_address,\n pool_address,\n token0,\n token1,\n token2,\n token3,\n decimal0,\n decimal1,\n decimal2,\n decimal3,\n lp_name,\n lp_symbol,\n swap_fee,\n admin_fee,\n lp_token,\n platform,\n protocol,\n version,\n type,\n _call_id,\n modified_timestamp\nFROM\n pool_traces qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'bitflux'\n),\npool_traces AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address AS deployer_address,\n to_address AS pool_address,\n regexp_substr_all(SUBSTR(input, 11, len(input)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [0] :: STRING)) / 32 AS token_index, \n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [1] :: STRING)) / 32 AS decimal_index,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [token_index] :: STRING\n )\n ) AS token_number,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [decimal_index] :: STRING\n )\n ) AS decimals_number,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [5] :: STRING)) * pow(\n 10,\n -10\n ) AS swap_fee,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [6] :: STRING)) * pow(\n 10,\n -10\n ) AS admin_fee,\n -- 50% of swap fee\n CONCAT('0x', SUBSTR(segmented_data [7] :: STRING, 25, 40)) AS lp_token,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [token_index+1] :: STRING,\n 25,\n 40\n )\n ) AS token0,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [token_index+2] :: STRING,\n 25,\n 40\n )\n ) AS token1,\n CASE\n WHEN token_number > 2 THEN CONCAT(\n '0x',\n SUBSTR(\n segmented_data [token_index+3] :: STRING,\n 25,\n 40\n )\n )\n ELSE NULL\n END AS token2,\n CASE\n WHEN token_number > 3 THEN CONCAT(\n '0x',\n SUBSTR(\n segmented_data [token_index+4] :: STRING,\n 25,\n 40\n )\n )\n ELSE NULL\n END AS token3,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [decimal_index+1] :: STRING\n )\n ) AS decimal0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [decimal_index+2] :: STRING\n )\n ) AS decimal1,\n CASE\n WHEN decimals_number > 2 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [decimal_index+3] :: STRING\n )\n )\n ELSE NULL\n END AS decimal2,\n CASE\n WHEN decimals_number > 3 THEN TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [decimal_index+4] :: STRING\n )\n )\n ELSE NULL\n END AS decimal3,\n utils.udf_hex_to_string(\n segmented_data [array_size(segmented_data)-3] :: STRING\n ) AS lp_name,\n utils.udf_hex_to_string(\n segmented_data [array_size(segmented_data)-1] :: STRING\n ) AS lp_symbol,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n polygon.core.fact_traces t \n INNER JOIN contract_mapping m \n ON t.from_address = m.contract_address\n WHERE\n origin_function_signature = '0xb28cb6dc'\n AND LEFT(\n input,\n 10\n ) = '0xb28cb6dc'\n AND trace_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.bitflux_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n deployer_address,\n pool_address AS contract_address,\n pool_address,\n token0,\n token1,\n token2,\n token3,\n decimal0,\n decimal1,\n decimal2,\n decimal3,\n lp_name,\n lp_symbol,\n swap_fee,\n admin_fee,\n lp_token,\n platform,\n protocol,\n version,\n type,\n _call_id,\n modified_timestamp\nFROM\n pool_traces qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__platypus_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__platypus_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/platypus/silver_dex__platypus_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/platypus/silver_dex__platypus_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__platypus_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "platypus", "silver_dex__platypus_swaps"], "alias": "platypus_swaps", "checksum": {"name": "sha256", "checksum": "e8cdadd4b6b2138d4cf3e000686c39ca40212357644fbb22a498bf2a733626ce"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018387.6925476, "relation_name": "polygon.silver_dex.platypus_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS fromToken,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS toToken,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS fromAmount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS toAmount,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__platypus_pools') }} p\n ON l.contract_address = p.pool_address\n WHERE\n topics [0] :: STRING = '0x54787c404bb33c88e86f4baf88183a3b0141d0a848e6a9f7a13b66ae3a9b73d1'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n to_address AS tx_to,\n fromToken AS token_in,\n toToken AS token_out,\n fromAmount AS amount_in_unadj,\n toAmount AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__platypus_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__platypus_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/platypus/silver_dex__platypus_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS fromToken,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS toToken,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS fromAmount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS toAmount,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__platypus_pools') }} p\n ON l.contract_address = p.pool_address\n WHERE\n topics [0] :: STRING = '0x54787c404bb33c88e86f4baf88183a3b0141d0a848e6a9f7a13b66ae3a9b73d1'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n to_address AS tx_to,\n fromToken AS token_in,\n toToken AS token_out,\n fromAmount AS amount_in_unadj,\n toAmount AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\n*/\n\n\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS fromToken,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS toToken,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS fromAmount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS toAmount,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.platypus_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topics [0] :: STRING = '0x54787c404bb33c88e86f4baf88183a3b0141d0a848e6a9f7a13b66ae3a9b73d1'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.platypus_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n to_address AS tx_to,\n fromToken AS token_in,\n toToken AS token_out,\n fromAmount AS amount_in_unadj,\n toAmount AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__platypus_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__platypus_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/platypus/silver_dex__platypus_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/platypus/silver_dex__platypus_pools.sql", "unique_id": "model.fsc_evm.silver_dex__platypus_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "platypus", "silver_dex__platypus_pools"], "alias": "platypus_pools", "checksum": {"name": "sha256", "checksum": "e9793affa5ecbb54d10b1670baafa3dc5d10a5a6410f9ff6b53efad4204dbb96"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018388.006495, "relation_name": "polygon.silver_dex.platypus_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'platypus'\n),\ncontract_deployments AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address AS deployer_address,\n to_address AS contract_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }} t \n INNER JOIN contract_mapping m\n ON t.from_address = m.contract_address\n WHERE\n t.TYPE ILIKE 'create%'\n AND tx_succeeded\n AND trace_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n\nqualify(ROW_NUMBER() over(PARTITION BY to_address\nORDER BY\n block_timestamp ASC)) = 1\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n deployer_address,\n contract_address AS pool_address,\n platform,\n protocol,\n version,\n type,\n _call_id,\n modified_timestamp\nFROM\n contract_deployments", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/platypus/silver_dex__platypus_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'platypus'\n),\ncontract_deployments AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address AS deployer_address,\n to_address AS contract_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }} t \n INNER JOIN contract_mapping m\n ON t.from_address = m.contract_address\n WHERE\n t.TYPE ILIKE 'create%'\n AND tx_succeeded\n AND trace_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n\nqualify(ROW_NUMBER() over(PARTITION BY to_address\nORDER BY\n block_timestamp ASC)) = 1\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n deployer_address,\n contract_address AS pool_address,\n platform,\n protocol,\n version,\n type,\n _call_id,\n modified_timestamp\nFROM\n contract_deployments\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'platypus'\n),\ncontract_deployments AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address AS deployer_address,\n to_address AS contract_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n polygon.core.fact_traces t \n INNER JOIN contract_mapping m\n ON t.from_address = m.contract_address\n WHERE\n t.TYPE ILIKE 'create%'\n AND tx_succeeded\n AND trace_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.platypus_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n\nqualify(ROW_NUMBER() over(PARTITION BY to_address\nORDER BY\n block_timestamp ASC)) = 1\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n deployer_address,\n contract_address AS pool_address,\n platform,\n protocol,\n version,\n type,\n _call_id,\n modified_timestamp\nFROM\n contract_deployments", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__dodo_v1_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__dodo_v1_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/dodo/silver_dex__dodo_v1_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/dodo/silver_dex__dodo_v1_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__dodo_v1_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dodo", "silver_dex__dodo_v1_swaps"], "alias": "dodo_v1_swaps", "checksum": {"name": "sha256", "checksum": "821d13927253b9a4641dfe4a938ec56ab4ca10deceadeea66f48fbb3b644054c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018388.4554005, "relation_name": "polygon.silver_dex.dodo_v1_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'dodo'\n AND type = 'proxy'\n),\nsell_base_token AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS seller_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS payBase,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS receiveQuote,\n base_token,\n quote_token,\n quote_token AS tokenIn,\n base_token AS tokenOut,\n receiveQuote AS amountIn,\n payBase AS amountOut,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'sellBaseToken' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__dodo_v1_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xd8648b6ac54162763c86fd54bf2005af8ecd2f9cb273a5775921fd7f91e17b2d' --sellBaseToken\n AND seller_address NOT IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nbuy_base_token AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS buyer_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS receiveBase,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS payQuote,\n base_token,\n quote_token,\n quote_token AS tokenIn,\n base_token AS tokenOut,\n payQuote AS amountIn,\n receiveBase AS amountOut,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'buyBaseToken' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__dodo_v1_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xe93ad76094f247c0dafc1c61adc2187de1ac2738f7a3b49cb20b2263420251a3' --buyBaseToken\n AND buyer_address NOT IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n event_name,\n seller_address AS sender,\n origin_from_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n sell_base_token\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n event_name,\n buyer_address AS sender,\n origin_from_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n buy_base_token", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__dodo_v1_pools", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__dodo_v1_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__dodo_v1_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/dodo/silver_dex__dodo_v1_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'dodo'\n AND type = 'proxy'\n),\nsell_base_token AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS seller_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS payBase,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS receiveQuote,\n base_token,\n quote_token,\n quote_token AS tokenIn,\n base_token AS tokenOut,\n receiveQuote AS amountIn,\n payBase AS amountOut,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'sellBaseToken' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__dodo_v1_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xd8648b6ac54162763c86fd54bf2005af8ecd2f9cb273a5775921fd7f91e17b2d' --sellBaseToken\n AND seller_address NOT IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nbuy_base_token AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS buyer_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS receiveBase,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS payQuote,\n base_token,\n quote_token,\n quote_token AS tokenIn,\n base_token AS tokenOut,\n payQuote AS amountIn,\n receiveBase AS amountOut,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'buyBaseToken' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__dodo_v1_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xe93ad76094f247c0dafc1c61adc2187de1ac2738f7a3b49cb20b2263420251a3' --buyBaseToken\n AND buyer_address NOT IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n event_name,\n seller_address AS sender,\n origin_from_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n sell_base_token\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n event_name,\n buyer_address AS sender,\n origin_from_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n buy_base_token\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'dodo'\n AND type = 'proxy'\n),\nsell_base_token AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS seller_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS payBase,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS receiveQuote,\n base_token,\n quote_token,\n quote_token AS tokenIn,\n base_token AS tokenOut,\n receiveQuote AS amountIn,\n payBase AS amountOut,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'sellBaseToken' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.dodo_v1_pools p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xd8648b6ac54162763c86fd54bf2005af8ecd2f9cb273a5775921fd7f91e17b2d' --sellBaseToken\n AND seller_address NOT IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.dodo_v1_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nbuy_base_token AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS buyer_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS receiveBase,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS payQuote,\n base_token,\n quote_token,\n quote_token AS tokenIn,\n base_token AS tokenOut,\n payQuote AS amountIn,\n receiveBase AS amountOut,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'buyBaseToken' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.dodo_v1_pools p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xe93ad76094f247c0dafc1c61adc2187de1ac2738f7a3b49cb20b2263420251a3' --buyBaseToken\n AND buyer_address NOT IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.dodo_v1_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n event_name,\n seller_address AS sender,\n origin_from_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n sell_base_token\nUNION ALL\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n event_name,\n buyer_address AS sender,\n origin_from_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n buy_base_token", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__dodo_v1_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__dodo_v1_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/dodo/silver_dex__dodo_v1_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/dodo/silver_dex__dodo_v1_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__dodo_v1_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dodo", "silver_dex__dodo_v1_pool_actions"], "alias": "dodo_v1_pool_actions", "checksum": {"name": "sha256", "checksum": "e4850c35e5ad5308ceb40895e104098a1ef2f4d0e7eae3334e6e38ba016a3bf1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018388.7748752, "relation_name": "polygon.silver_dex.dodo_v1_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n base_token AS token0,\n quote_token AS token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__dodo_v1_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x18081cde2fa64894914e1080b98cca17bb6d1acf633e57f6e26ebdb945ad830b', --deposit\n '0xe89c586bd81ee35a18f7eac22a732b56e589a2821497cce12a0208828540a36d' --withdraw\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ndeposit AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Deposit' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS payer_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS receiver_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS is_base_token_raw,\n CASE \n WHEN is_base_token_raw = 1 THEN TRUE \n ELSE FALSE\n END AS is_base_token,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n CASE\n WHEN is_base_token THEN amount\n ELSE 0\n END AS amount0,\n CASE\n WHEN NOT is_base_token THEN amount\n ELSE 0\n END AS amount1,\n --deposits occur for each token separately\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS lp_token_amount,\n CASE\n WHEN is_base_token THEN lp_token_amount\n ELSE 0\n END AS lp_token_amount0,\n CASE\n WHEN NOT is_base_token THEN lp_token_amount\n ELSE 0\n END AS lp_token_amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x18081cde2fa64894914e1080b98cca17bb6d1acf633e57f6e26ebdb945ad830b' --deposit\n),\nwithdraw AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Withdraw' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS payer_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS receiver_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS is_base_token_raw,\n CASE \n WHEN is_base_token_raw = 1 THEN TRUE \n ELSE FALSE\n END AS is_base_token,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n CASE\n WHEN is_base_token THEN amount\n ELSE 0\n END AS amount0,\n CASE\n WHEN NOT is_base_token THEN amount\n ELSE 0\n END AS amount1,\n --withdraws occur for each token separately\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS lp_token_amount,\n CASE\n WHEN is_base_token THEN lp_token_amount\n ELSE 0\n END AS lp_token_amount0,\n CASE\n WHEN NOT is_base_token THEN lp_token_amount\n ELSE 0\n END AS lp_token_amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xe89c586bd81ee35a18f7eac22a732b56e589a2821497cce12a0208828540a36d' --withdraw\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n payer_address AS sender,\n receiver_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n deposit\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n payer_address AS sender,\n receiver_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n withdraw\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__dodo_v1_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__dodo_v1_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/dodo/silver_dex__dodo_v1_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n base_token AS token0,\n quote_token AS token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__dodo_v1_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x18081cde2fa64894914e1080b98cca17bb6d1acf633e57f6e26ebdb945ad830b', --deposit\n '0xe89c586bd81ee35a18f7eac22a732b56e589a2821497cce12a0208828540a36d' --withdraw\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ndeposit AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Deposit' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS payer_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS receiver_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS is_base_token_raw,\n CASE \n WHEN is_base_token_raw = 1 THEN TRUE \n ELSE FALSE\n END AS is_base_token,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n CASE\n WHEN is_base_token THEN amount\n ELSE 0\n END AS amount0,\n CASE\n WHEN NOT is_base_token THEN amount\n ELSE 0\n END AS amount1,\n --deposits occur for each token separately\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS lp_token_amount,\n CASE\n WHEN is_base_token THEN lp_token_amount\n ELSE 0\n END AS lp_token_amount0,\n CASE\n WHEN NOT is_base_token THEN lp_token_amount\n ELSE 0\n END AS lp_token_amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x18081cde2fa64894914e1080b98cca17bb6d1acf633e57f6e26ebdb945ad830b' --deposit\n),\nwithdraw AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Withdraw' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS payer_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS receiver_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS is_base_token_raw,\n CASE \n WHEN is_base_token_raw = 1 THEN TRUE \n ELSE FALSE\n END AS is_base_token,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n CASE\n WHEN is_base_token THEN amount\n ELSE 0\n END AS amount0,\n CASE\n WHEN NOT is_base_token THEN amount\n ELSE 0\n END AS amount1,\n --withdraws occur for each token separately\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS lp_token_amount,\n CASE\n WHEN is_base_token THEN lp_token_amount\n ELSE 0\n END AS lp_token_amount0,\n CASE\n WHEN NOT is_base_token THEN lp_token_amount\n ELSE 0\n END AS lp_token_amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xe89c586bd81ee35a18f7eac22a732b56e589a2821497cce12a0208828540a36d' --withdraw\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n payer_address AS sender,\n receiver_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n deposit\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n payer_address AS sender,\n receiver_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n withdraw\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n base_token AS token0,\n quote_token AS token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.dodo_v1_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x18081cde2fa64894914e1080b98cca17bb6d1acf633e57f6e26ebdb945ad830b', --deposit\n '0xe89c586bd81ee35a18f7eac22a732b56e589a2821497cce12a0208828540a36d' --withdraw\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.dodo_v1_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ndeposit AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Deposit' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS payer_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS receiver_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS is_base_token_raw,\n CASE \n WHEN is_base_token_raw = 1 THEN TRUE \n ELSE FALSE\n END AS is_base_token,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n CASE\n WHEN is_base_token THEN amount\n ELSE 0\n END AS amount0,\n CASE\n WHEN NOT is_base_token THEN amount\n ELSE 0\n END AS amount1,\n --deposits occur for each token separately\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS lp_token_amount,\n CASE\n WHEN is_base_token THEN lp_token_amount\n ELSE 0\n END AS lp_token_amount0,\n CASE\n WHEN NOT is_base_token THEN lp_token_amount\n ELSE 0\n END AS lp_token_amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x18081cde2fa64894914e1080b98cca17bb6d1acf633e57f6e26ebdb945ad830b' --deposit\n),\nwithdraw AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Withdraw' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS payer_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS receiver_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS is_base_token_raw,\n CASE \n WHEN is_base_token_raw = 1 THEN TRUE \n ELSE FALSE\n END AS is_base_token,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n CASE\n WHEN is_base_token THEN amount\n ELSE 0\n END AS amount0,\n CASE\n WHEN NOT is_base_token THEN amount\n ELSE 0\n END AS amount1,\n --withdraws occur for each token separately\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS lp_token_amount,\n CASE\n WHEN is_base_token THEN lp_token_amount\n ELSE 0\n END AS lp_token_amount0,\n CASE\n WHEN NOT is_base_token THEN lp_token_amount\n ELSE 0\n END AS lp_token_amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xe89c586bd81ee35a18f7eac22a732b56e589a2821497cce12a0208828540a36d' --withdraw\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n payer_address AS sender,\n receiver_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n deposit\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n payer_address AS sender,\n receiver_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n withdraw\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__dodo_v1_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__dodo_v1_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/dodo/silver_dex__dodo_v1_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/dodo/silver_dex__dodo_v1_pools.sql", "unique_id": "model.fsc_evm.silver_dex__dodo_v1_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dodo", "silver_dex__dodo_v1_pools"], "alias": "dodo_v1_pools", "checksum": {"name": "sha256", "checksum": "f4f8020e4d669ccafa84e1f6b671e733333e3ab14b3057c33334e96dda1e59ab"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018389.0951152, "relation_name": "polygon.silver_dex.dodo_v1_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'dodo'\n AND version = 'v1'\n),\npool_tr AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address AS deployer_address,\n to_address AS pool_address,\n base_token,\n quote_token,\n base_token_symbol,\n quote_token_symbol,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }}\n t\n INNER JOIN {{ ref('silver_dex__dodo_v1_pool_metadata') }}\n s\n ON t.to_address = s.pool_address\n INNER JOIN contract_mapping m\n ON t.from_address = m.contract_address\n WHERE\n s.blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n AND m.type = 'deployer'\n AND t.TYPE ILIKE 'create%'\n AND tx_succeeded\n AND trace_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\npool_evt AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS newBorn,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS baseToken,\n CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40)) AS quoteToken,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'DODOBirth' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x5c428a2e12ecaa744a080b25b4cda8b86359c82d726575d7d747e07708071f93' --DODOBirth\n AND tx_succeeded\n AND m.type = 'dodo_birth'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n baseToken AS base_token,\n quoteToken AS quote_token,\n newBorn AS pool_address,\n protocol,\n version,\n type,\n platform,\n _log_id AS _id,\n modified_timestamp\n FROM\n pool_evt\n UNION\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n NULL AS event_index,\n NULL AS event_name,\n deployer_address AS contract_address,\n base_token,\n quote_token,\n pool_address,\n protocol,\n version,\n type,\n platform,\n _call_id AS _id,\n modified_timestamp\n FROM\n pool_tr\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n pool_address,\n base_token,\n quote_token,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp\nFROM\n FINAL qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}, {"name": "silver_dex__dodo_v1_pool_metadata", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces", "seed.fsc_evm.silver_dex__dodo_v1_pool_metadata", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/dodo/silver_dex__dodo_v1_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'dodo'\n AND version = 'v1'\n),\npool_tr AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address AS deployer_address,\n to_address AS pool_address,\n base_token,\n quote_token,\n base_token_symbol,\n quote_token_symbol,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }}\n t\n INNER JOIN {{ ref('silver_dex__dodo_v1_pool_metadata') }}\n s\n ON t.to_address = s.pool_address\n INNER JOIN contract_mapping m\n ON t.from_address = m.contract_address\n WHERE\n s.blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n AND m.type = 'deployer'\n AND t.TYPE ILIKE 'create%'\n AND tx_succeeded\n AND trace_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\npool_evt AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS newBorn,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS baseToken,\n CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40)) AS quoteToken,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'DODOBirth' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x5c428a2e12ecaa744a080b25b4cda8b86359c82d726575d7d747e07708071f93' --DODOBirth\n AND tx_succeeded\n AND m.type = 'dodo_birth'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n baseToken AS base_token,\n quoteToken AS quote_token,\n newBorn AS pool_address,\n protocol,\n version,\n type,\n platform,\n _log_id AS _id,\n modified_timestamp\n FROM\n pool_evt\n UNION\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n NULL AS event_index,\n NULL AS event_name,\n deployer_address AS contract_address,\n base_token,\n quote_token,\n pool_address,\n protocol,\n version,\n type,\n platform,\n _call_id AS _id,\n modified_timestamp\n FROM\n pool_tr\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n pool_address,\n base_token,\n quote_token,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp\nFROM\n FINAL qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'dodo'\n AND version = 'v1'\n),\npool_tr AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address AS deployer_address,\n to_address AS pool_address,\n base_token,\n quote_token,\n base_token_symbol,\n quote_token_symbol,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n polygon.core.fact_traces\n t\n INNER JOIN polygon.silver_dex.dodo_v1_pool_metadata\n s\n ON t.to_address = s.pool_address\n INNER JOIN contract_mapping m\n ON t.from_address = m.contract_address\n WHERE\n s.blockchain = 'polygon'\n AND m.type = 'deployer'\n AND t.TYPE ILIKE 'create%'\n AND tx_succeeded\n AND trace_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.dodo_v1_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\npool_evt AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS newBorn,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS baseToken,\n CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40)) AS quoteToken,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'DODOBirth' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x5c428a2e12ecaa744a080b25b4cda8b86359c82d726575d7d747e07708071f93' --DODOBirth\n AND tx_succeeded\n AND m.type = 'dodo_birth'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.dodo_v1_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n baseToken AS base_token,\n quoteToken AS quote_token,\n newBorn AS pool_address,\n protocol,\n version,\n type,\n platform,\n _log_id AS _id,\n modified_timestamp\n FROM\n pool_evt\n UNION\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n NULL AS event_index,\n NULL AS event_name,\n deployer_address AS contract_address,\n base_token,\n quote_token,\n pool_address,\n protocol,\n version,\n type,\n platform,\n _call_id AS _id,\n modified_timestamp\n FROM\n pool_tr\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n pool_address,\n base_token,\n quote_token,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp\nFROM\n FINAL qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__dodo_v2_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__dodo_v2_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/dodo/silver_dex__dodo_v2_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/dodo/silver_dex__dodo_v2_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__dodo_v2_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dodo", "silver_dex__dodo_v2_swaps"], "alias": "dodo_v2_swaps", "checksum": {"name": "sha256", "checksum": "d11135148c0b91519b9949a9c23d7cc776d6cd671a61fdabe9822bbbf1befeef"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018389.4119267, "relation_name": "polygon.silver_dex.dodo_v2_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'dodo'\n AND type = 'proxy'\n),\nswaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS fromToken,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS toToken,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS fromAmount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS toAmount,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [4] :: STRING,\n 25,\n 40\n )\n ) AS trader_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [5] :: STRING,\n 25,\n 40\n )\n ) AS receiver_address,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'dodoswap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__dodo_v2_pools') }} p\n ON\n l.contract_address = p.pool_address\n WHERE\n l.topics [0] :: STRING = '0xc2c0245e056d5fb095f04cd6373bc770802ebd1e6c918eb78fdef843cdb37b0f' --dodoswap\n AND trader_address NOT IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n CASE\n WHEN fromToken = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE fromToken\n END AS token_in,\n CASE\n WHEN toToken = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE toToken\n END AS token_out,\n fromAmount AS amount_in_unadj,\n toAmount AS amount_out_unadj,\n trader_address AS sender,\n receiver_address AS tx_to,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__dodo_v2_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__dodo_v2_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/dodo/silver_dex__dodo_v2_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'dodo'\n AND type = 'proxy'\n),\nswaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS fromToken,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS toToken,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS fromAmount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS toAmount,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [4] :: STRING,\n 25,\n 40\n )\n ) AS trader_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [5] :: STRING,\n 25,\n 40\n )\n ) AS receiver_address,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'dodoswap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__dodo_v2_pools') }} p\n ON\n l.contract_address = p.pool_address\n WHERE\n l.topics [0] :: STRING = '0xc2c0245e056d5fb095f04cd6373bc770802ebd1e6c918eb78fdef843cdb37b0f' --dodoswap\n AND trader_address NOT IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n CASE\n WHEN fromToken = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE fromToken\n END AS token_in,\n CASE\n WHEN toToken = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE toToken\n END AS token_out,\n fromAmount AS amount_in_unadj,\n toAmount AS amount_out_unadj,\n trader_address AS sender,\n receiver_address AS tx_to,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'dodo'\n AND type = 'proxy'\n),\nswaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS fromToken,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS toToken,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS fromAmount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS toAmount,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [4] :: STRING,\n 25,\n 40\n )\n ) AS trader_address,\n CONCAT(\n '0x',\n SUBSTR(\n l_segmented_data [5] :: STRING,\n 25,\n 40\n )\n ) AS receiver_address,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'dodoswap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.dodo_v2_pools p\n ON\n l.contract_address = p.pool_address\n WHERE\n l.topics [0] :: STRING = '0xc2c0245e056d5fb095f04cd6373bc770802ebd1e6c918eb78fdef843cdb37b0f' --dodoswap\n AND trader_address NOT IN (\n SELECT\n contract_address\n FROM\n contract_mapping\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.dodo_v2_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n CASE\n WHEN fromToken = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ELSE fromToken\n END AS token_in,\n CASE\n WHEN toToken = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ELSE toToken\n END AS token_out,\n fromAmount AS amount_in_unadj,\n toAmount AS amount_out_unadj,\n trader_address AS sender,\n receiver_address AS tx_to,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__dodo_v2_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__dodo_v2_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/dodo/silver_dex__dodo_v2_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/dodo/silver_dex__dodo_v2_pools.sql", "unique_id": "model.fsc_evm.silver_dex__dodo_v2_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dodo", "silver_dex__dodo_v2_pools"], "alias": "dodo_v2_pools", "checksum": {"name": "sha256", "checksum": "f97eb48fbe398fc0bc9945fbe7a7e6e34dad4234c5a877af20bcbc527abd5d8a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018389.7657378, "relation_name": "polygon.silver_dex.dodo_v2_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'dodo'\n AND version = 'v2'\n),\npool_tr AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address AS deployer_address,\n to_address AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n {{ ref(\n 'core__fact_traces'\n ) }} t \n INNER JOIN contract_mapping m\n ON t.from_address = m.contract_address\n WHERE\n t.TYPE ILIKE 'create%'\n AND tx_succeeded\n AND trace_succeeded\n AND m.type = 'deployer'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\npool_evt AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS baseToken,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS quoteToken,\n CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40)) AS creator,\n CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CASE\n WHEN topics [0] :: STRING = '0x8494fe594cd5087021d4b11758a2bbc7be28a430e94f2b268d668e5991ed3b8a' THEN 'NewDPP'\n WHEN topics [0] :: STRING = '0xbc1083a2c1c5ef31e13fb436953d22b47880cf7db279c2c5666b16083afd6b9d' THEN 'NewDSP'\n WHEN topics [0] :: STRING = '0xaf5c5f12a80fc937520df6fcaed66262a4cc775e0f3fceaf7a7cfe476d9a751d' THEN 'NewDVM'\n END AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING IN (\n '0x8494fe594cd5087021d4b11758a2bbc7be28a430e94f2b268d668e5991ed3b8a',\n --NewDPP\n '0xbc1083a2c1c5ef31e13fb436953d22b47880cf7db279c2c5666b16083afd6b9d',\n --NewDSP\n '0xaf5c5f12a80fc937520df6fcaed66262a4cc775e0f3fceaf7a7cfe476d9a751d' --NewDVM\n )\n AND m.type = 'new_pool'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n baseToken AS base_token,\n quoteToken AS quote_token,\n creator,\n pool_address,\n protocol,\n version,\n type,\n platform,\n _log_id AS _id,\n modified_timestamp\n FROM\n pool_evt\n UNION\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n NULL AS event_index,\n NULL AS event_name,\n deployer_address AS contract_address,\n NULL AS base_token,\n NULL AS quote_token,\n deployer_address AS creator,\n pool_address,\n protocol,\n version,\n type,\n platform,\n _call_id AS _id,\n modified_timestamp\n FROM\n pool_tr\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n base_token,\n quote_token,\n creator,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp\nFROM\n final qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/dodo/silver_dex__dodo_v2_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'dodo'\n AND version = 'v2'\n),\npool_tr AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address AS deployer_address,\n to_address AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n {{ ref(\n 'core__fact_traces'\n ) }} t \n INNER JOIN contract_mapping m\n ON t.from_address = m.contract_address\n WHERE\n t.TYPE ILIKE 'create%'\n AND tx_succeeded\n AND trace_succeeded\n AND m.type = 'deployer'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\npool_evt AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS baseToken,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS quoteToken,\n CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40)) AS creator,\n CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CASE\n WHEN topics [0] :: STRING = '0x8494fe594cd5087021d4b11758a2bbc7be28a430e94f2b268d668e5991ed3b8a' THEN 'NewDPP'\n WHEN topics [0] :: STRING = '0xbc1083a2c1c5ef31e13fb436953d22b47880cf7db279c2c5666b16083afd6b9d' THEN 'NewDSP'\n WHEN topics [0] :: STRING = '0xaf5c5f12a80fc937520df6fcaed66262a4cc775e0f3fceaf7a7cfe476d9a751d' THEN 'NewDVM'\n END AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING IN (\n '0x8494fe594cd5087021d4b11758a2bbc7be28a430e94f2b268d668e5991ed3b8a',\n --NewDPP\n '0xbc1083a2c1c5ef31e13fb436953d22b47880cf7db279c2c5666b16083afd6b9d',\n --NewDSP\n '0xaf5c5f12a80fc937520df6fcaed66262a4cc775e0f3fceaf7a7cfe476d9a751d' --NewDVM\n )\n AND m.type = 'new_pool'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n baseToken AS base_token,\n quoteToken AS quote_token,\n creator,\n pool_address,\n protocol,\n version,\n type,\n platform,\n _log_id AS _id,\n modified_timestamp\n FROM\n pool_evt\n UNION\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n NULL AS event_index,\n NULL AS event_name,\n deployer_address AS contract_address,\n NULL AS base_token,\n NULL AS quote_token,\n deployer_address AS creator,\n pool_address,\n protocol,\n version,\n type,\n platform,\n _call_id AS _id,\n modified_timestamp\n FROM\n pool_tr\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n base_token,\n quote_token,\n creator,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp\nFROM\n final qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'dodo'\n AND version = 'v2'\n),\npool_tr AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n from_address AS deployer_address,\n to_address AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n t.TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n polygon.core.fact_traces t \n INNER JOIN contract_mapping m\n ON t.from_address = m.contract_address\n WHERE\n t.TYPE ILIKE 'create%'\n AND tx_succeeded\n AND trace_succeeded\n AND m.type = 'deployer'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.dodo_v2_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\npool_evt AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS baseToken,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS quoteToken,\n CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40)) AS creator,\n CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n CASE\n WHEN topics [0] :: STRING = '0x8494fe594cd5087021d4b11758a2bbc7be28a430e94f2b268d668e5991ed3b8a' THEN 'NewDPP'\n WHEN topics [0] :: STRING = '0xbc1083a2c1c5ef31e13fb436953d22b47880cf7db279c2c5666b16083afd6b9d' THEN 'NewDSP'\n WHEN topics [0] :: STRING = '0xaf5c5f12a80fc937520df6fcaed66262a4cc775e0f3fceaf7a7cfe476d9a751d' THEN 'NewDVM'\n END AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING IN (\n '0x8494fe594cd5087021d4b11758a2bbc7be28a430e94f2b268d668e5991ed3b8a',\n --NewDPP\n '0xbc1083a2c1c5ef31e13fb436953d22b47880cf7db279c2c5666b16083afd6b9d',\n --NewDSP\n '0xaf5c5f12a80fc937520df6fcaed66262a4cc775e0f3fceaf7a7cfe476d9a751d' --NewDVM\n )\n AND m.type = 'new_pool'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.dodo_v2_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n baseToken AS base_token,\n quoteToken AS quote_token,\n creator,\n pool_address,\n protocol,\n version,\n type,\n platform,\n _log_id AS _id,\n modified_timestamp\n FROM\n pool_evt\n UNION\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n NULL AS event_index,\n NULL AS event_name,\n deployer_address AS contract_address,\n NULL AS base_token,\n NULL AS quote_token,\n deployer_address AS creator,\n pool_address,\n protocol,\n version,\n type,\n platform,\n _call_id AS _id,\n modified_timestamp\n FROM\n pool_tr\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n base_token,\n quote_token,\n creator,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _id,\n modified_timestamp\nFROM\n final qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__glyph_v4_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__glyph_v4_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/glyph/silver_dex__glyph_v4_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/glyph/silver_dex__glyph_v4_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__glyph_v4_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "glyph", "silver_dex__glyph_v4_swaps"], "alias": "glyph_v4_swaps", "checksum": {"name": "sha256", "checksum": "d56af63152bbd1fbb2ce2c5865b00937b8ca08290fe79c33d48635e3fa4d175b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018390.0962558, "relation_name": "polygon.silver_dex.glyph_v4_swaps", "raw_code": "{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps_base AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n ) :: FLOAT AS sqrtPriceX96,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n ) :: FLOAT AS liquidity,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n ) :: FLOAT AS tick,\n token0,\n token1,\n pool_address,\n tick_spacing,\n fee,\n p.protocol,\n p.version,\n p.type,\n CONCAT(p.protocol, '-', p.version) AS platform,\n 'TokenSwap' AS event_name,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__glyph_v4_pools') }}\n p\n ON p.pool_address = l.contract_address\n WHERE\n topic_0 = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_name,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_address,\n recipient,\n recipient AS tx_to,\n sender,\n fee,\n tick,\n tick_spacing,\n liquidity,\n token0,\n token1,\n amount0_unadj,\n amount1_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0\n ELSE token1\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0\n ELSE token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps_base qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__glyph_v4_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__glyph_v4_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/glyph/silver_dex__glyph_v4_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps_base AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n ) :: FLOAT AS sqrtPriceX96,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n ) :: FLOAT AS liquidity,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n ) :: FLOAT AS tick,\n token0,\n token1,\n pool_address,\n tick_spacing,\n fee,\n p.protocol,\n p.version,\n p.type,\n CONCAT(p.protocol, '-', p.version) AS platform,\n 'TokenSwap' AS event_name,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__glyph_v4_pools') }}\n p\n ON p.pool_address = l.contract_address\n WHERE\n topic_0 = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_name,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_address,\n recipient,\n recipient AS tx_to,\n sender,\n fee,\n tick,\n tick_spacing,\n liquidity,\n token0,\n token1,\n amount0_unadj,\n amount1_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0\n ELSE token1\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0\n ELSE token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps_base qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH swaps_base AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS recipient,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1_unadj,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n ) :: FLOAT AS sqrtPriceX96,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n ) :: FLOAT AS liquidity,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n ) :: FLOAT AS tick,\n token0,\n token1,\n pool_address,\n tick_spacing,\n fee,\n p.protocol,\n p.version,\n p.type,\n CONCAT(p.protocol, '-', p.version) AS platform,\n 'TokenSwap' AS event_name,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.glyph_v4_pools\n p\n ON p.pool_address = l.contract_address\n WHERE\n topic_0 = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.glyph_v4_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_name,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_address,\n recipient,\n recipient AS tx_to,\n sender,\n fee,\n tick,\n tick_spacing,\n liquidity,\n token0,\n token1,\n amount0_unadj,\n amount1_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0\n ELSE token1\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0\n ELSE token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps_base qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__glyph_v4_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__glyph_v4_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/glyph/silver_dex__glyph_v4_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/glyph/silver_dex__glyph_v4_pools.sql", "unique_id": "model.fsc_evm.silver_dex__glyph_v4_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "glyph", "silver_dex__glyph_v4_pools"], "alias": "glyph_v4_pools", "checksum": {"name": "sha256", "checksum": "268b646df3ddbd4e99ea3f6159eaf14571faa05ef533f374f598618ebfd7f66a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018390.4115975, "relation_name": "polygon.silver_dex.glyph_v4_pools", "raw_code": "{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'glyph'\n),\npool_creation AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(DATA, 27, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0x91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ninitial_info AS (\n SELECT\n tx_hash,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [0] :: STRING)) AS price,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [1] :: STRING)) AS tick\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n pool_creation\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ntick_spacing AS (\n SELECT\n tx_hash,\n contract_address,\n utils.udf_hex_to_int(\n 's2c',\n DATA :: STRING\n ) :: INTEGER AS tick_spacing\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topic_0 = '0x01413b1d5d4c359e9a0daa7909ecda165f6e8c51fe2ff529d74b22a5a7c02645'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n pool_creation\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nfee AS (\n SELECT\n tx_hash,\n contract_address,\n utils.udf_hex_to_int(\n 's2c',\n DATA :: STRING\n ) :: INTEGER AS fee\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topic_0 = '0x598b9f043c813aa6be3426ca60d1c65d17256312890be5118dab55b0775ebe2a'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n pool_creation\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n p.tx_hash,\n p.contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n fee,\n tick,\n tick_spacing,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pool_creation p\n INNER JOIN initial_info\n ON initial_info.contract_address = p.pool_address\n INNER JOIN tick_spacing\n ON tick_spacing.contract_address = p.pool_address\n INNER JOIN fee\n ON fee.contract_address = p.pool_address qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/glyph/silver_dex__glyph_v4_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'glyph'\n),\npool_creation AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(DATA, 27, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0x91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ninitial_info AS (\n SELECT\n tx_hash,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [0] :: STRING)) AS price,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [1] :: STRING)) AS tick\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n pool_creation\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ntick_spacing AS (\n SELECT\n tx_hash,\n contract_address,\n utils.udf_hex_to_int(\n 's2c',\n DATA :: STRING\n ) :: INTEGER AS tick_spacing\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topic_0 = '0x01413b1d5d4c359e9a0daa7909ecda165f6e8c51fe2ff529d74b22a5a7c02645'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n pool_creation\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nfee AS (\n SELECT\n tx_hash,\n contract_address,\n utils.udf_hex_to_int(\n 's2c',\n DATA :: STRING\n ) :: INTEGER AS fee\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topic_0 = '0x598b9f043c813aa6be3426ca60d1c65d17256312890be5118dab55b0775ebe2a'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n pool_creation\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n p.tx_hash,\n p.contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n fee,\n tick,\n tick_spacing,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pool_creation p\n INNER JOIN initial_info\n ON initial_info.contract_address = p.pool_address\n INNER JOIN tick_spacing\n ON tick_spacing.contract_address = p.pool_address\n INNER JOIN fee\n ON fee.contract_address = p.pool_address qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'glyph'\n),\npool_creation AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(DATA, 27, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0x91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.glyph_v4_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ninitial_info AS (\n SELECT\n tx_hash,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [0] :: STRING)) AS price,\n utils.udf_hex_to_int('s2c', CONCAT('0x', segmented_data [1] :: STRING)) AS tick\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING = '0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n pool_creation\n )\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.glyph_v4_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ntick_spacing AS (\n SELECT\n tx_hash,\n contract_address,\n utils.udf_hex_to_int(\n 's2c',\n DATA :: STRING\n ) :: INTEGER AS tick_spacing\n FROM\n polygon.core.fact_event_logs\n WHERE\n topic_0 = '0x01413b1d5d4c359e9a0daa7909ecda165f6e8c51fe2ff529d74b22a5a7c02645'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n pool_creation\n )\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.glyph_v4_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nfee AS (\n SELECT\n tx_hash,\n contract_address,\n utils.udf_hex_to_int(\n 's2c',\n DATA :: STRING\n ) :: INTEGER AS fee\n FROM\n polygon.core.fact_event_logs\n WHERE\n topic_0 = '0x598b9f043c813aa6be3426ca60d1c65d17256312890be5118dab55b0775ebe2a'\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n pool_creation\n )\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.glyph_v4_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n p.tx_hash,\n p.contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n fee,\n tick,\n tick_spacing,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pool_creation p\n INNER JOIN initial_info\n ON initial_info.contract_address = p.pool_address\n INNER JOIN tick_spacing\n ON tick_spacing.contract_address = p.pool_address\n INNER JOIN fee\n ON fee.contract_address = p.pool_address qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__dexalot_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__dexalot_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/dexalot/silver_dex__dexalot_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/dexalot/silver_dex__dexalot_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__dexalot_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dexalot", "silver_dex__dexalot_swaps"], "alias": "dexalot_swaps", "checksum": {"name": "sha256", "checksum": "366c6abab36113e7a81b1f0d04afa8a447cd6fc171c3a735073b71c821709286"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018390.730759, "relation_name": "polygon.silver_dex.dexalot_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'dexalot'\n),\nswaps AS (\n\n SELECT\n block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n topic_1 AS nonceAndMeta,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS taker,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS destTrader,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS destChainId,\n CASE\n WHEN CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) = '0x0000000000000000000000000000000000000000' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40))\n END AS srcAsset,\n CASE\n WHEN CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40)) = '0x0000000000000000000000000000000000000000' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40))\n END AS destAsset,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [5] :: STRING)) AS srcAmount,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [6] :: STRING)) AS destAmount,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'SwapExecuted' AS event_name,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }} \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 IN (\n '0x68eb6d948c037c94e470f9a5b288dd93debbcd9342635408e66cb0211686f7f7',\n '0xfeb087be954e9eb692f863466081925668f8f5214f5c1d1a28438df811cbf042'\n )\n AND destChainId = {{ vars.CURATED_DEFI_DEX_DEXALOT_DEST_CHAIN_ID }}\n AND tx_succeeded\n AND event_removed = FALSE\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_name,\n srcAmount AS amount_in_unadj,\n destAmount AS amount_out_unadj,\n srcAsset AS token_in,\n destAsset AS token_out,\n origin_from_address AS sender,\n taker AS recipient,\n destTrader AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/dexalot/silver_dex__dexalot_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'dexalot'\n),\nswaps AS (\n\n SELECT\n block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n topic_1 AS nonceAndMeta,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS taker,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS destTrader,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS destChainId,\n CASE\n WHEN CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) = '0x0000000000000000000000000000000000000000' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40))\n END AS srcAsset,\n CASE\n WHEN CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40)) = '0x0000000000000000000000000000000000000000' THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40))\n END AS destAsset,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [5] :: STRING)) AS srcAmount,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [6] :: STRING)) AS destAmount,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'SwapExecuted' AS event_name,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }} \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 IN (\n '0x68eb6d948c037c94e470f9a5b288dd93debbcd9342635408e66cb0211686f7f7',\n '0xfeb087be954e9eb692f863466081925668f8f5214f5c1d1a28438df811cbf042'\n )\n AND destChainId = {{ vars.CURATED_DEFI_DEX_DEXALOT_DEST_CHAIN_ID }}\n AND tx_succeeded\n AND event_removed = FALSE\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_name,\n srcAmount AS amount_in_unadj,\n destAmount AS amount_out_unadj,\n srcAsset AS token_in,\n destAsset AS token_out,\n origin_from_address AS sender,\n taker AS recipient,\n destTrader AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'dexalot'\n),\nswaps AS (\n\n SELECT\n block_number,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n topic_1 AS nonceAndMeta,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS taker,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS destTrader,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [2] :: STRING)) AS destChainId,\n CASE\n WHEN CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) = '0x0000000000000000000000000000000000000000' THEN '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ELSE CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40))\n END AS srcAsset,\n CASE\n WHEN CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40)) = '0x0000000000000000000000000000000000000000' THEN '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ELSE CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40))\n END AS destAsset,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [5] :: STRING)) AS srcAmount,\n TRY_TO_NUMBER(utils.udf_hex_to_int(segmented_data [6] :: STRING)) AS destAmount,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'SwapExecuted' AS event_name,\n CONCAT(\n tx_hash,\n '-',\n event_index\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs \n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 IN (\n '0x68eb6d948c037c94e470f9a5b288dd93debbcd9342635408e66cb0211686f7f7',\n '0xfeb087be954e9eb692f863466081925668f8f5214f5c1d1a28438df811cbf042'\n )\n AND destChainId = 0\n AND tx_succeeded\n AND event_removed = FALSE\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.dexalot_swaps\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_name,\n srcAmount AS amount_in_unadj,\n destAmount AS amount_out_unadj,\n srcAsset AS token_in,\n destAsset AS token_out,\n origin_from_address AS sender,\n taker AS recipient,\n destTrader AS tx_to,\n event_index,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__kyberswap_v1_static_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__kyberswap_v1_static_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v1_static_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v1_static_pools.sql", "unique_id": "model.fsc_evm.silver_dex__kyberswap_v1_static_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "kyberswap", "silver_dex__kyberswap_v1_static_pools"], "alias": "kyberswap_v1_static_pools", "checksum": {"name": "sha256", "checksum": "2cf87bee2305bdd00af8d8f7e05a1dae384ff72c593d30a2c4a2bf0eba2e5288"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018391.0440032, "relation_name": "polygon.silver_dex.kyberswap_v1_static_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'kyberswap'\n AND version = 'v1'\n AND type = 'static'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS ampBps,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS feeUnits,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS totalPool,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'CreatePool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xb6bce363b712c921bead4bcc977289440eb6172eb89e258e3a25bd49ca806de6' --CreatePool\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n ampBps AS amp_bps,\n feeUnits AS fee_units,\n totalPool AS total_pool,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v1_static_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'kyberswap'\n AND version = 'v1'\n AND type = 'static'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS ampBps,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS feeUnits,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS totalPool,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'CreatePool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xb6bce363b712c921bead4bcc977289440eb6172eb89e258e3a25bd49ca806de6' --CreatePool\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n ampBps AS amp_bps,\n feeUnits AS fee_units,\n totalPool AS total_pool,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'kyberswap'\n AND version = 'v1'\n AND type = 'static'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS ampBps,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS feeUnits,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS totalPool,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'CreatePool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xb6bce363b712c921bead4bcc977289440eb6172eb89e258e3a25bd49ca806de6' --CreatePool\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.kyberswap_v1_static_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n ampBps AS amp_bps,\n feeUnits AS fee_units,\n totalPool AS total_pool,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__kyberswap_v2_elastic_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v2_elastic_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v2_elastic_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "kyberswap", "silver_dex__kyberswap_v2_elastic_pool_actions"], "alias": "kyberswap_v2_elastic_pool_actions", "checksum": {"name": "sha256", "checksum": "952ae8c0bdca4cfb0cf148c3d47e69b0e66b18a4593948db3dda9021daf3fac4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018391.35803, "relation_name": "polygon.silver_dex.kyberswap_v2_elastic_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n swap_fee_units AS fee,\n (\n swap_fee_units / 10000\n ) :: FLOAT AS fee_percent,\n tick_distance AS tick_spacing,\n NULL AS init_tick,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__kyberswap_v2_elastic_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n amount AS amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n amount AS amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__kyberswap_v2_elastic_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v2_elastic_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n swap_fee_units AS fee,\n (\n swap_fee_units / 10000\n ) :: FLOAT AS fee_percent,\n tick_distance AS tick_spacing,\n NULL AS init_tick,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__kyberswap_v2_elastic_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n amount AS amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n amount AS amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n swap_fee_units AS fee,\n (\n swap_fee_units / 10000\n ) :: FLOAT AS fee_percent,\n tick_distance AS tick_spacing,\n NULL AS init_tick,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.kyberswap_v2_elastic_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.kyberswap_v2_elastic_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS tick_lower,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS tick_upper,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n amount AS amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n amount AS amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n fee,\n fee_percent,\n tick_spacing,\n init_tick,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__kyberswap_v1_dynamic_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v1_dynamic_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v1_dynamic_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "kyberswap", "silver_dex__kyberswap_v1_dynamic_swaps"], "alias": "kyberswap_v1_dynamic_swaps", "checksum": {"name": "sha256", "checksum": "0ae54a29af38abe18acf89c95b854c3e85912d00af3e52cbba29103b04db2704"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018391.6720362, "relation_name": "polygon.silver_dex.kyberswap_v1_dynamic_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS amount1In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS amount1Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) AS feeInPrecision,\n p.token0,\n p.token1,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'DynamicSwap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__kyberswap_v1_dynamic_pools') }}\n p\n ON p.pool_address = l.contract_address\n WHERE\n l.topics [0] :: STRING = '0x606ecd02b3e3b4778f8e97b2e03351de14224efaa5fa64e62200afc9395c2499' --DynamicSwap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n sender_address AS sender,\n to_address AS tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n feeInPrecision AS fee_in_precision,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__kyberswap_v1_dynamic_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v1_dynamic_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS amount1In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS amount1Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) AS feeInPrecision,\n p.token0,\n p.token1,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'DynamicSwap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__kyberswap_v1_dynamic_pools') }}\n p\n ON p.pool_address = l.contract_address\n WHERE\n l.topics [0] :: STRING = '0x606ecd02b3e3b4778f8e97b2e03351de14224efaa5fa64e62200afc9395c2499' --DynamicSwap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n sender_address AS sender,\n to_address AS tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n feeInPrecision AS fee_in_precision,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out\n*/\n\n\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS amount1In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS amount1Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) AS feeInPrecision,\n p.token0,\n p.token1,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'DynamicSwap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.kyberswap_v1_dynamic_pools\n p\n ON p.pool_address = l.contract_address\n WHERE\n l.topics [0] :: STRING = '0x606ecd02b3e3b4778f8e97b2e03351de14224efaa5fa64e62200afc9395c2499' --DynamicSwap\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.kyberswap_v1_dynamic_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n sender_address AS sender,\n to_address AS tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n feeInPrecision AS fee_in_precision,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__kyberswap_v1_dynamic_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v1_dynamic_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v1_dynamic_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "kyberswap", "silver_dex__kyberswap_v1_dynamic_pool_actions"], "alias": "kyberswap_v1_dynamic_pool_actions", "checksum": {"name": "sha256", "checksum": "7aa28e1b2f3fa804ca185fabe807bc5c8c5c564c3d156ba21bdc453252e6cd9c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018391.9849896, "relation_name": "polygon.silver_dex.kyberswap_v1_dynamic_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__kyberswap_v1_dynamic_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f', --mint\n '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS to_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n pool_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n to_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__kyberswap_v1_dynamic_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v1_dynamic_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__kyberswap_v1_dynamic_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f', --mint\n '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS to_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n pool_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n to_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.kyberswap_v1_dynamic_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f', --mint\n '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.kyberswap_v1_dynamic_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS to_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n pool_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n sender_address AS sender,\n to_address AS receiver,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n sender,\n receiver,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__kyberswap_v1_static_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__kyberswap_v1_static_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v1_static_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v1_static_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__kyberswap_v1_static_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "kyberswap", "silver_dex__kyberswap_v1_static_swaps"], "alias": "kyberswap_v1_static_swaps", "checksum": {"name": "sha256", "checksum": "e3542f1beac497524320280c1d3a50cc9a789b8cc6f90c7b727fd1a58fdc163e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018392.3004913, "relation_name": "polygon.silver_dex.kyberswap_v1_static_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS amount1In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS amount1Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) AS feeInPrecision,\n p.token0,\n p.token1,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'StaticSwap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__kyberswap_v1_static_pools') }}\n p\n ON p.pool_address = l.contract_address\n WHERE\n l.topics [0] :: STRING = '0x606ecd02b3e3b4778f8e97b2e03351de14224efaa5fa64e62200afc9395c2499' --StaticSwap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n sender_address AS sender,\n to_address AS tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n feeInPrecision AS fee_in_precision,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__kyberswap_v1_static_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__kyberswap_v1_static_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v1_static_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS amount1In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS amount1Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) AS feeInPrecision,\n p.token0,\n p.token1,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'StaticSwap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__kyberswap_v1_static_pools') }}\n p\n ON p.pool_address = l.contract_address\n WHERE\n l.topics [0] :: STRING = '0x606ecd02b3e3b4778f8e97b2e03351de14224efaa5fa64e62200afc9395c2499' --StaticSwap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n sender_address AS sender,\n to_address AS tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n feeInPrecision AS fee_in_precision,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out\n*/\n\n\n\nWITH swaps AS (\n\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS to_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [0] :: STRING\n )\n ) AS amount0In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [1] :: STRING\n )\n ) AS amount1In,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS amount0Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS amount1Out,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [4] :: STRING\n )\n ) AS feeInPrecision,\n p.token0,\n p.token1,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'StaticSwap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.kyberswap_v1_static_pools\n p\n ON p.pool_address = l.contract_address\n WHERE\n l.topics [0] :: STRING = '0x606ecd02b3e3b4778f8e97b2e03351de14224efaa5fa64e62200afc9395c2499' --StaticSwap\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.kyberswap_v1_static_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n sender_address AS sender,\n to_address AS tx_to,\n amount0In,\n amount1In,\n amount0Out,\n amount1Out,\n feeInPrecision AS fee_in_precision,\n token0,\n token1,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN amount1In\n WHEN amount0In <> 0 THEN amount0In\n WHEN amount1In <> 0 THEN amount1In\n END AS amount_in_unadj,\n CASE\n WHEN amount0Out <> 0 THEN amount0Out\n WHEN amount1Out <> 0 THEN amount1Out\n END AS amount_out_unadj,\n CASE\n WHEN amount0In <> 0\n AND amount1In <> 0\n AND amount0Out <> 0 THEN token1\n WHEN amount0In <> 0 THEN token0\n WHEN amount1In <> 0 THEN token1\n END AS token_in,\n CASE\n WHEN amount0Out <> 0 THEN token0\n WHEN amount1Out <> 0 THEN token1\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__kyberswap_v2_elastic_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__kyberswap_v2_elastic_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v2_elastic_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v2_elastic_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__kyberswap_v2_elastic_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "kyberswap", "silver_dex__kyberswap_v2_elastic_swaps"], "alias": "kyberswap_v2_elastic_swaps", "checksum": {"name": "sha256", "checksum": "a26b7ac5bee59854b303a56a2f50b4e9de0fd40c34ed21779bf90e2f9f3ec67b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018392.6140404, "relation_name": "polygon.silver_dex.kyberswap_v2_elastic_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS reipient_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [0] :: STRING\n )\n ) AS deltaQty0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [1] :: STRING\n )\n ) AS deltaQty1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS sqrtP,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [4] :: STRING\n )\n ) AS currentTick,\n ABS(GREATEST(deltaQty0, deltaQty1)) AS amountOut,\n ABS(LEAST(deltaQty0, deltaQty1)) AS amountIn,\n token0,\n token1,\n CASE\n WHEN deltaQty0 < 0 THEN token0\n ELSE token1\n END AS token_in,\n CASE\n WHEN deltaQty0 > 0 THEN token0\n ELSE token1\n END AS token_out,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'ElasticSwap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__kyberswap_v2_elastic_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67' -- elastic swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n sender_address AS sender,\n reipient_address AS tx_to,\n deltaQty0 AS delta_qty0,\n deltaQty1 AS delta_qty1,\n sqrtP AS sqrt_p,\n liquidity,\n currentTick AS current_tick,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n token0,\n token1,\n token_in,\n token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__kyberswap_v2_elastic_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v2_elastic_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS reipient_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [0] :: STRING\n )\n ) AS deltaQty0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [1] :: STRING\n )\n ) AS deltaQty1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS sqrtP,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [4] :: STRING\n )\n ) AS currentTick,\n ABS(GREATEST(deltaQty0, deltaQty1)) AS amountOut,\n ABS(LEAST(deltaQty0, deltaQty1)) AS amountIn,\n token0,\n token1,\n CASE\n WHEN deltaQty0 < 0 THEN token0\n ELSE token1\n END AS token_in,\n CASE\n WHEN deltaQty0 > 0 THEN token0\n ELSE token1\n END AS token_out,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'ElasticSwap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__kyberswap_v2_elastic_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67' -- elastic swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n sender_address AS sender,\n reipient_address AS tx_to,\n deltaQty0 AS delta_qty0,\n deltaQty1 AS delta_qty1,\n sqrtP AS sqrt_p,\n liquidity,\n currentTick AS current_tick,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n token0,\n token1,\n token_in,\n token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out\n*/\n\n\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS l_segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS reipient_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [0] :: STRING\n )\n ) AS deltaQty0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [1] :: STRING\n )\n ) AS deltaQty1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [2] :: STRING\n )\n ) AS sqrtP,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n l_segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n l_segmented_data [4] :: STRING\n )\n ) AS currentTick,\n ABS(GREATEST(deltaQty0, deltaQty1)) AS amountOut,\n ABS(LEAST(deltaQty0, deltaQty1)) AS amountIn,\n token0,\n token1,\n CASE\n WHEN deltaQty0 < 0 THEN token0\n ELSE token1\n END AS token_in,\n CASE\n WHEN deltaQty0 > 0 THEN token0\n ELSE token1\n END AS token_out,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'ElasticSwap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.kyberswap_v2_elastic_pools p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67' -- elastic swap\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.kyberswap_v2_elastic_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n sender_address AS sender,\n reipient_address AS tx_to,\n deltaQty0 AS delta_qty0,\n deltaQty1 AS delta_qty1,\n sqrtP AS sqrt_p,\n liquidity,\n currentTick AS current_tick,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n token0,\n token1,\n token_in,\n token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\nWHERE\n token_in <> token_out", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__kyberswap_v2_elastic_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v2_elastic_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v2_elastic_pools.sql", "unique_id": "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "kyberswap", "silver_dex__kyberswap_v2_elastic_pools"], "alias": "kyberswap_v2_elastic_pools", "checksum": {"name": "sha256", "checksum": "b1415ec54871dc50679f385647a79c152aeb21a983f22e21bc1d144ea72ea07d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018392.9249647, "relation_name": "polygon.silver_dex.kyberswap_v2_elastic_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'kyberswap'\n AND version = 'v2'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n TRY_TO_NUMBER(utils.udf_hex_to_int(topics [3] :: STRING)) AS swapFeeUnits,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS tickDistance,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'CreatePool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118' --Create pool\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n swapFeeUnits AS swap_fee_units,\n tickDistance AS tick_distance,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v2_elastic_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'kyberswap'\n AND version = 'v2'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n TRY_TO_NUMBER(utils.udf_hex_to_int(topics [3] :: STRING)) AS swapFeeUnits,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS tickDistance,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'CreatePool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118' --Create pool\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n swapFeeUnits AS swap_fee_units,\n tickDistance AS tick_distance,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'kyberswap'\n AND version = 'v2'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n TRY_TO_NUMBER(utils.udf_hex_to_int(topics [3] :: STRING)) AS swapFeeUnits,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS tickDistance,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'CreatePool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118' --Create pool\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.kyberswap_v2_elastic_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n swapFeeUnits AS swap_fee_units,\n tickDistance AS tick_distance,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__kyberswap_v1_dynamic_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v1_dynamic_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v1_dynamic_pools.sql", "unique_id": "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "kyberswap", "silver_dex__kyberswap_v1_dynamic_pools"], "alias": "kyberswap_v1_dynamic_pools", "checksum": {"name": "sha256", "checksum": "ccebb72b0a63e03ba3cfe41101b5c0bc630daa99593b169636e7674401bafc46"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018393.2374861, "relation_name": "polygon.silver_dex.kyberswap_v1_dynamic_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'kyberswap'\n AND version = 'v1'\n AND type = 'dynamic'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS ampBps,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS totalPool,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'CreatedPool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xfc574402c445e75f2b79b67884ff9c662244dce454c5ae68935fcd0bebb7c8ff' --CreatedPool\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n ampBps AS amp_bps,\n totalPool AS total_pool,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/kyberswap/silver_dex__kyberswap_v1_dynamic_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'kyberswap'\n AND version = 'v1'\n AND type = 'dynamic'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS ampBps,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS totalPool,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'CreatedPool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xfc574402c445e75f2b79b67884ff9c662244dce454c5ae68935fcd0bebb7c8ff' --CreatedPool\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n ampBps AS amp_bps,\n totalPool AS total_pool,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'kyberswap'\n AND version = 'v1'\n AND type = 'dynamic'\n),\npools AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS ampBps,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS totalPool,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'CreatedPool' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0xfc574402c445e75f2b79b67884ff9c662244dce454c5ae68935fcd0bebb7c8ff' --CreatedPool\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.kyberswap_v1_dynamic_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n ampBps AS amp_bps,\n totalPool AS total_pool,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pools qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__voodoo_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__voodoo_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/voodoo/silver_dex__voodoo_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/voodoo/silver_dex__voodoo_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__voodoo_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "voodoo", "silver_dex__voodoo_swaps"], "alias": "voodoo_swaps", "checksum": {"name": "sha256", "checksum": "6c2ef752f88aaf759a8c80474386dad5f9bcf0496025d74e74256d2fd660e65b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018393.5498493, "relation_name": "polygon.silver_dex.voodoo_swaps", "raw_code": "{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'voodoo'\n),\nswaps AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS account_address,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS tokenIn,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [2] :: STRING,\n 25,\n 40\n )\n ) AS tokenOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n ) AS amountOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n )\n ) AS amountOutAfterFees,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [6] :: STRING\n )\n ) AS feeBasisPoints,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x0874b2d545cb271cdbda4e093020c452328b24af12382ed62c4d00f5c26709db' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n origin_from_address AS sender,\n account_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n amountOutAfterFees AS amount_out_after_fees,\n feeBasisPoints AS fee_basis_points,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/voodoo/silver_dex__voodoo_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'voodoo'\n),\nswaps AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS account_address,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS tokenIn,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [2] :: STRING,\n 25,\n 40\n )\n ) AS tokenOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n ) AS amountOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n )\n ) AS amountOutAfterFees,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [6] :: STRING\n )\n ) AS feeBasisPoints,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x0874b2d545cb271cdbda4e093020c452328b24af12382ed62c4d00f5c26709db' --Swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n origin_from_address AS sender,\n account_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n amountOutAfterFees AS amount_out_after_fees,\n feeBasisPoints AS fee_basis_points,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'voodoo'\n),\nswaps AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [0] :: STRING,\n 25,\n 40\n )\n ) AS account_address,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [1] :: STRING,\n 25,\n 40\n )\n ) AS tokenIn,\n CONCAT(\n '0x',\n SUBSTR(\n segmented_data [2] :: STRING,\n 25,\n 40\n )\n ) AS tokenOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS amountIn,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n ) AS amountOut,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [5] :: STRING\n )\n ) AS amountOutAfterFees,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [6] :: STRING\n )\n ) AS feeBasisPoints,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'Swap' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x0874b2d545cb271cdbda4e093020c452328b24af12382ed62c4d00f5c26709db' --Swap\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.voodoo_swaps\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n event_name,\n contract_address,\n origin_from_address AS sender,\n account_address AS tx_to,\n tokenIn AS token_in,\n tokenOut AS token_out,\n amountIn AS amount_in_unadj,\n amountOut AS amount_out_unadj,\n amountOutAfterFees AS amount_out_after_fees,\n feeBasisPoints AS fee_basis_points,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__uniswap_v4_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__uniswap_v4_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/uniswap/silver_dex__uniswap_v4_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/uniswap/silver_dex__uniswap_v4_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__uniswap_v4_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "uniswap", "silver_dex__uniswap_v4_swaps"], "alias": "uniswap_v4_swaps", "checksum": {"name": "sha256", "checksum": "5dbda6c8882e8c87204e4fc271abf26f55f949d681e09266916b6b6e195a885d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018393.9940717, "relation_name": "polygon.silver_dex.uniswap_v4_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH pool_data AS (\n\n SELECT\n token0,\n token1,\n fee,\n pool_id,\n tick_spacing,\n hook_address,\n pool_address,\n protocol,\n version,\n type,\n platform\n FROM\n {{ ref('silver_dex__uniswap_v4_pools') }}\n),\nevents_swap AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topic_1 AS pool_id,\n pool_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS sender,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n ) AS sqrtPriceX96,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS tick,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS fee,\n CONCAT(\n token0,\n token1,\n tick_spacing,\n hook_address\n ) AS proxy_id,\n RANK() over (\n PARTITION BY tx_hash,\n proxy_id\n ORDER BY\n event_index ASC\n ) AS event_rank,\n token0,\n token1,\n tick_spacing,\n p.protocol,\n p.version,\n p.type,\n p.platform,\n modified_timestamp,\n FROM\n {{ ref('core__fact_event_logs') }} l\n INNER JOIN pool_data p\n ON l.topic_1 = p.pool_id\n AND l.contract_address = p.pool_address\n WHERE\n topic_0 = '0x40e9cecb9f5f1f1c5b9c97dec2917b7ee92e57ba5563708daca94dd84ad7112f' -- swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ntraces_swap AS (\n SELECT\n tx_hash,\n trace_index,\n regexp_substr_all(SUBSTR(input, 11, len(input)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS currency0,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS currency1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n )\n ) AS fee,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n )\n ) AS tick_spacing,\n CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40)) AS hook_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [6] :: STRING\n )\n ) AS amount_specified,\n TRY_TO_BOOLEAN(utils.udf_hex_to_int(segmented_data [5] :: STRING)) AS zero_for_one,\n CASE\n WHEN amount_specified < 0 THEN TRUE\n ELSE FALSE\n END AS exact_input,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [7] :: STRING\n ) AS sqrtPriceX96,\n SUBSTR(\n output,\n 3,\n 32\n ) AS high_bits,\n utils.udf_hex_to_int('s2c', high_bits :: STRING) :: FLOAT AS amount0,\n SUBSTR(\n output,\n 32 + 3,\n 32\n ) AS low_bits,\n utils.udf_hex_to_int('s2c', low_bits :: STRING) :: FLOAT AS amount1,\n CONCAT(\n currency0,\n currency1,\n tick_spacing,\n hook_address\n ) AS proxy_id,\n RANK() over (\n PARTITION BY tx_hash,\n proxy_id\n ORDER BY\n trace_index ASC\n ) AS trace_rank,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }} t \n WHERE\n LEFT(\n input,\n 10\n ) = '0xf3cd914c' -- swap\n AND trace_succeeded\n AND to_address IN (\n SELECT\n DISTINCT pool_address\n FROM\n pool_data\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n e.block_number,\n e.block_timestamp,\n e.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_address,\n pool_id,\n event_index,\n 'Swap' AS event_name,\n sender,\n sender AS recipient,\n t.amount0 AS amount0_unadj,\n t.amount1 AS amount1_unadj,\n e.sqrtPriceX96,\n liquidity,\n tick,\n e.fee,\n token0 AS token0_address,\n token1 AS token1_address,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n e.tick_spacing,\n CONCAT(\n e.tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n e.platform,\n e.protocol,\n e.version,\n e.type,\n e.modified_timestamp\nFROM\n events_swap e\n INNER JOIN traces_swap t\n ON e.tx_hash = t.tx_hash\n AND trace_rank = event_rank\n AND t.proxy_id = e.proxy_id qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n e.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_dex__uniswap_v4_pools", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_dex__uniswap_v4_pools", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_traces"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/uniswap/silver_dex__uniswap_v4_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH pool_data AS (\n\n SELECT\n token0,\n token1,\n fee,\n pool_id,\n tick_spacing,\n hook_address,\n pool_address,\n protocol,\n version,\n type,\n platform\n FROM\n {{ ref('silver_dex__uniswap_v4_pools') }}\n),\nevents_swap AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topic_1 AS pool_id,\n pool_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS sender,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n ) AS sqrtPriceX96,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS tick,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS fee,\n CONCAT(\n token0,\n token1,\n tick_spacing,\n hook_address\n ) AS proxy_id,\n RANK() over (\n PARTITION BY tx_hash,\n proxy_id\n ORDER BY\n event_index ASC\n ) AS event_rank,\n token0,\n token1,\n tick_spacing,\n p.protocol,\n p.version,\n p.type,\n p.platform,\n modified_timestamp,\n FROM\n {{ ref('core__fact_event_logs') }} l\n INNER JOIN pool_data p\n ON l.topic_1 = p.pool_id\n AND l.contract_address = p.pool_address\n WHERE\n topic_0 = '0x40e9cecb9f5f1f1c5b9c97dec2917b7ee92e57ba5563708daca94dd84ad7112f' -- swap\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ntraces_swap AS (\n SELECT\n tx_hash,\n trace_index,\n regexp_substr_all(SUBSTR(input, 11, len(input)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS currency0,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS currency1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n )\n ) AS fee,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n )\n ) AS tick_spacing,\n CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40)) AS hook_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [6] :: STRING\n )\n ) AS amount_specified,\n TRY_TO_BOOLEAN(utils.udf_hex_to_int(segmented_data [5] :: STRING)) AS zero_for_one,\n CASE\n WHEN amount_specified < 0 THEN TRUE\n ELSE FALSE\n END AS exact_input,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [7] :: STRING\n ) AS sqrtPriceX96,\n SUBSTR(\n output,\n 3,\n 32\n ) AS high_bits,\n utils.udf_hex_to_int('s2c', high_bits :: STRING) :: FLOAT AS amount0,\n SUBSTR(\n output,\n 32 + 3,\n 32\n ) AS low_bits,\n utils.udf_hex_to_int('s2c', low_bits :: STRING) :: FLOAT AS amount1,\n CONCAT(\n currency0,\n currency1,\n tick_spacing,\n hook_address\n ) AS proxy_id,\n RANK() over (\n PARTITION BY tx_hash,\n proxy_id\n ORDER BY\n trace_index ASC\n ) AS trace_rank,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }} t \n WHERE\n LEFT(\n input,\n 10\n ) = '0xf3cd914c' -- swap\n AND trace_succeeded\n AND to_address IN (\n SELECT\n DISTINCT pool_address\n FROM\n pool_data\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n e.block_number,\n e.block_timestamp,\n e.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_address,\n pool_id,\n event_index,\n 'Swap' AS event_name,\n sender,\n sender AS recipient,\n t.amount0 AS amount0_unadj,\n t.amount1 AS amount1_unadj,\n e.sqrtPriceX96,\n liquidity,\n tick,\n e.fee,\n token0 AS token0_address,\n token1 AS token1_address,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n e.tick_spacing,\n CONCAT(\n e.tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n e.platform,\n e.protocol,\n e.version,\n e.type,\n e.modified_timestamp\nFROM\n events_swap e\n INNER JOIN traces_swap t\n ON e.tx_hash = t.tx_hash\n AND trace_rank = event_rank\n AND t.proxy_id = e.proxy_id qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n e.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH pool_data AS (\n\n SELECT\n token0,\n token1,\n fee,\n pool_id,\n tick_spacing,\n hook_address,\n pool_address,\n protocol,\n version,\n type,\n platform\n FROM\n polygon.silver_dex.uniswap_v4_pools\n),\nevents_swap AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n event_index,\n topic_1 AS pool_id,\n pool_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS sender,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount1,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n ) AS sqrtPriceX96,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS tick,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS fee,\n CONCAT(\n token0,\n token1,\n tick_spacing,\n hook_address\n ) AS proxy_id,\n RANK() over (\n PARTITION BY tx_hash,\n proxy_id\n ORDER BY\n event_index ASC\n ) AS event_rank,\n token0,\n token1,\n tick_spacing,\n p.protocol,\n p.version,\n p.type,\n p.platform,\n modified_timestamp,\n FROM\n polygon.core.fact_event_logs l\n INNER JOIN pool_data p\n ON l.topic_1 = p.pool_id\n AND l.contract_address = p.pool_address\n WHERE\n topic_0 = '0x40e9cecb9f5f1f1c5b9c97dec2917b7ee92e57ba5563708daca94dd84ad7112f' -- swap\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.uniswap_v4_swaps\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ntraces_swap AS (\n SELECT\n tx_hash,\n trace_index,\n regexp_substr_all(SUBSTR(input, 11, len(input)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS currency0,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS currency1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [2] :: STRING\n )\n ) AS fee,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n )\n ) AS tick_spacing,\n CONCAT('0x', SUBSTR(segmented_data [4] :: STRING, 25, 40)) AS hook_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [6] :: STRING\n )\n ) AS amount_specified,\n TRY_TO_BOOLEAN(utils.udf_hex_to_int(segmented_data [5] :: STRING)) AS zero_for_one,\n CASE\n WHEN amount_specified < 0 THEN TRUE\n ELSE FALSE\n END AS exact_input,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [7] :: STRING\n ) AS sqrtPriceX96,\n SUBSTR(\n output,\n 3,\n 32\n ) AS high_bits,\n utils.udf_hex_to_int('s2c', high_bits :: STRING) :: FLOAT AS amount0,\n SUBSTR(\n output,\n 32 + 3,\n 32\n ) AS low_bits,\n utils.udf_hex_to_int('s2c', low_bits :: STRING) :: FLOAT AS amount1,\n CONCAT(\n currency0,\n currency1,\n tick_spacing,\n hook_address\n ) AS proxy_id,\n RANK() over (\n PARTITION BY tx_hash,\n proxy_id\n ORDER BY\n trace_index ASC\n ) AS trace_rank,\n modified_timestamp\n FROM\n polygon.core.fact_traces t \n WHERE\n LEFT(\n input,\n 10\n ) = '0xf3cd914c' -- swap\n AND trace_succeeded\n AND to_address IN (\n SELECT\n DISTINCT pool_address\n FROM\n pool_data\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.uniswap_v4_swaps\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n e.block_number,\n e.block_timestamp,\n e.tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_address,\n pool_id,\n event_index,\n 'Swap' AS event_name,\n sender,\n sender AS recipient,\n t.amount0 AS amount0_unadj,\n t.amount1 AS amount1_unadj,\n e.sqrtPriceX96,\n liquidity,\n tick,\n e.fee,\n token0 AS token0_address,\n token1 AS token1_address,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n e.tick_spacing,\n CONCAT(\n e.tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n e.platform,\n e.protocol,\n e.version,\n e.type,\n e.modified_timestamp\nFROM\n events_swap e\n INNER JOIN traces_swap t\n ON e.tx_hash = t.tx_hash\n AND trace_rank = event_rank\n AND t.proxy_id = e.proxy_id qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n e.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__uniswap_v4_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__uniswap_v4_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/uniswap/silver_dex__uniswap_v4_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/uniswap/silver_dex__uniswap_v4_pools.sql", "unique_id": "model.fsc_evm.silver_dex__uniswap_v4_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "uniswap", "silver_dex__uniswap_v4_pools"], "alias": "uniswap_v4_pools", "checksum": {"name": "sha256", "checksum": "d945e6d98497e74f265f5ef7c9424b487e935b5e0dd02ad145e61189caaff9ed"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_id", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018394.3092096, "relation_name": "polygon.silver_dex.uniswap_v4_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"pool_id\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'uniswap'\n AND version = 'v4'\n),\ninitialize AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n topic_1 AS pool_id,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS currency0,\n CONCAT('0x', SUBSTR(topic_3, 27, 40)) AS currency1,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n )\n ) AS fee,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n )\n ) AS tick_spacing,\n CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40)) AS hook_address,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n ) AS sqrtPriceX96,\n TRY_TO_DOUBLE(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS tick,\n CASE\n WHEN fee = 8388608 THEN TRUE\n ELSE FALSE\n END AS dynamic_fees,\n utils.udf_int_to_binary(\n utils.udf_hex_to_int(RIGHT(hook_address, 4))\n ) AS hook_flag_unsorted,\n CASE\n WHEN hook_flag_unsorted = '0' THEN '0000000000000000'\n ELSE hook_flag_unsorted\n END AS hook_flag,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -14, 1)), FALSE) AS beforeInitialize,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -13, 1)), FALSE) AS afterInitialize,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -12, 1)), FALSE) AS beforeAddLiquidity,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -11, 1)), FALSE) AS afterAddLiquidity,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -10, 1)), FALSE) AS beforeRemoveLiquidity,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -9, 1)), FALSE) AS afterRemoveLiquidity,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -8, 1)), FALSE) AS beforeSwap,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -7, 1)), FALSE) AS afterSwap,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -6, 1)), FALSE) AS beforeDonate,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -5, 1)), FALSE) AS afterDonate,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -4, 1)), FALSE) AS beforeSwapReturnDelta,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -3, 1)), FALSE) AS afterSwapReturnDelta,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -2, 1)), FALSE) AS afterAddLiquidityReturnDelta,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -1, 1)), FALSE) AS afterRemoveLiquidityReturnDelta,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'initialize' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0xdd466e674ea557f56295e2d0218a125ea4b4f0f6f3307b95f85e6110838d6438' -- initialize\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n contract_address AS pool_address,\n CASE\n WHEN hook_address = '0x0000000000000000000000000000000000000000' THEN CONCAT(COALESCE(fee, 0), ' ', COALESCE(tick_spacing, 0))\n ELSE CONCAT(COALESCE(fee, 0), ' ', COALESCE(tick_spacing, 0), ' ', hook_address)\n END AS pool_name,\n pool_id,\n currency0 AS token0,\n currency1 AS token1,\n fee,\n tick_spacing,\n hook_address,\n sqrtPriceX96,\n tick,\n dynamic_fees,\n beforeInitialize,\n afterInitialize,\n beforeAddLiquidity,\n afterAddLiquidity,\n beforeRemoveLiquidity,\n afterRemoveLiquidity,\n beforeSwap,\n afterSwap,\n beforeDonate,\n afterDonate,\n beforeSwapReturnDelta,\n afterSwapReturnDelta,\n afterAddLiquidityReturnDelta,\n afterRemoveLiquidityReturnDelta,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n initialize qualify (ROW_NUMBER() over (PARTITION BY pool_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/uniswap/silver_dex__uniswap_v4_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"pool_id\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'uniswap'\n AND version = 'v4'\n),\ninitialize AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n topic_1 AS pool_id,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS currency0,\n CONCAT('0x', SUBSTR(topic_3, 27, 40)) AS currency1,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n )\n ) AS fee,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n )\n ) AS tick_spacing,\n CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40)) AS hook_address,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n ) AS sqrtPriceX96,\n TRY_TO_DOUBLE(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS tick,\n CASE\n WHEN fee = 8388608 THEN TRUE\n ELSE FALSE\n END AS dynamic_fees,\n utils.udf_int_to_binary(\n utils.udf_hex_to_int(RIGHT(hook_address, 4))\n ) AS hook_flag_unsorted,\n CASE\n WHEN hook_flag_unsorted = '0' THEN '0000000000000000'\n ELSE hook_flag_unsorted\n END AS hook_flag,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -14, 1)), FALSE) AS beforeInitialize,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -13, 1)), FALSE) AS afterInitialize,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -12, 1)), FALSE) AS beforeAddLiquidity,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -11, 1)), FALSE) AS afterAddLiquidity,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -10, 1)), FALSE) AS beforeRemoveLiquidity,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -9, 1)), FALSE) AS afterRemoveLiquidity,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -8, 1)), FALSE) AS beforeSwap,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -7, 1)), FALSE) AS afterSwap,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -6, 1)), FALSE) AS beforeDonate,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -5, 1)), FALSE) AS afterDonate,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -4, 1)), FALSE) AS beforeSwapReturnDelta,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -3, 1)), FALSE) AS afterSwapReturnDelta,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -2, 1)), FALSE) AS afterAddLiquidityReturnDelta,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -1, 1)), FALSE) AS afterRemoveLiquidityReturnDelta,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'initialize' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0xdd466e674ea557f56295e2d0218a125ea4b4f0f6f3307b95f85e6110838d6438' -- initialize\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n contract_address AS pool_address,\n CASE\n WHEN hook_address = '0x0000000000000000000000000000000000000000' THEN CONCAT(COALESCE(fee, 0), ' ', COALESCE(tick_spacing, 0))\n ELSE CONCAT(COALESCE(fee, 0), ' ', COALESCE(tick_spacing, 0), ' ', hook_address)\n END AS pool_name,\n pool_id,\n currency0 AS token0,\n currency1 AS token1,\n fee,\n tick_spacing,\n hook_address,\n sqrtPriceX96,\n tick,\n dynamic_fees,\n beforeInitialize,\n afterInitialize,\n beforeAddLiquidity,\n afterAddLiquidity,\n beforeRemoveLiquidity,\n afterRemoveLiquidity,\n beforeSwap,\n afterSwap,\n beforeDonate,\n afterDonate,\n beforeSwapReturnDelta,\n afterSwapReturnDelta,\n afterAddLiquidityReturnDelta,\n afterRemoveLiquidityReturnDelta,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n initialize qualify (ROW_NUMBER() over (PARTITION BY pool_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'uniswap'\n AND version = 'v4'\n),\ninitialize AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n topic_1 AS pool_id,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) AS currency0,\n CONCAT('0x', SUBSTR(topic_3, 27, 40)) AS currency1,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n )\n ) AS fee,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n )\n ) AS tick_spacing,\n CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40)) AS hook_address,\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [3] :: STRING\n ) AS sqrtPriceX96,\n TRY_TO_DOUBLE(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS tick,\n CASE\n WHEN fee = 8388608 THEN TRUE\n ELSE FALSE\n END AS dynamic_fees,\n utils.udf_int_to_binary(\n utils.udf_hex_to_int(RIGHT(hook_address, 4))\n ) AS hook_flag_unsorted,\n CASE\n WHEN hook_flag_unsorted = '0' THEN '0000000000000000'\n ELSE hook_flag_unsorted\n END AS hook_flag,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -14, 1)), FALSE) AS beforeInitialize,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -13, 1)), FALSE) AS afterInitialize,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -12, 1)), FALSE) AS beforeAddLiquidity,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -11, 1)), FALSE) AS afterAddLiquidity,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -10, 1)), FALSE) AS beforeRemoveLiquidity,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -9, 1)), FALSE) AS afterRemoveLiquidity,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -8, 1)), FALSE) AS beforeSwap,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -7, 1)), FALSE) AS afterSwap,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -6, 1)), FALSE) AS beforeDonate,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -5, 1)), FALSE) AS afterDonate,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -4, 1)), FALSE) AS beforeSwapReturnDelta,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -3, 1)), FALSE) AS afterSwapReturnDelta,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -2, 1)), FALSE) AS afterAddLiquidityReturnDelta,\n COALESCE(TRY_TO_BOOLEAN(SUBSTR(hook_flag, -1, 1)), FALSE) AS afterRemoveLiquidityReturnDelta,\n m.protocol,\n m.version,\n m.type,\n CONCAT(\n m.protocol,\n '-',\n m.version\n ) AS platform,\n 'initialize' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topic_0 = '0xdd466e674ea557f56295e2d0218a125ea4b4f0f6f3307b95f85e6110838d6438' -- initialize\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.uniswap_v4_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n contract_address AS pool_address,\n CASE\n WHEN hook_address = '0x0000000000000000000000000000000000000000' THEN CONCAT(COALESCE(fee, 0), ' ', COALESCE(tick_spacing, 0))\n ELSE CONCAT(COALESCE(fee, 0), ' ', COALESCE(tick_spacing, 0), ' ', hook_address)\n END AS pool_name,\n pool_id,\n currency0 AS token0,\n currency1 AS token1,\n fee,\n tick_spacing,\n hook_address,\n sqrtPriceX96,\n tick,\n dynamic_fees,\n beforeInitialize,\n afterInitialize,\n beforeAddLiquidity,\n afterAddLiquidity,\n beforeRemoveLiquidity,\n afterRemoveLiquidity,\n beforeSwap,\n afterSwap,\n beforeDonate,\n afterDonate,\n beforeSwapReturnDelta,\n afterSwapReturnDelta,\n afterAddLiquidityReturnDelta,\n afterRemoveLiquidityReturnDelta,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n initialize qualify (ROW_NUMBER() over (PARTITION BY pool_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__camelot_v2_swaps": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__camelot_v2_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/camelot/silver_dex__camelot_v2_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/camelot/silver_dex__camelot_v2_swaps.sql", "unique_id": "model.fsc_evm.silver_dex__camelot_v2_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "camelot", "silver_dex__camelot_v2_swaps"], "alias": "camelot_v2_swaps", "checksum": {"name": "sha256", "checksum": "94da528f35feb1bb6da8a9794c881132c9fd33fd4762aa018722994c5f3f8410"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018394.6220784, "relation_name": "polygon.silver_dex.camelot_v2_swaps", "raw_code": "{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS reipient_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n )\n ) AS amount0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n )\n ) AS amount1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS price,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS tick,\n token0,\n token1,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__camelot_v2_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n reipient_address AS tx_to,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n token0 AS token0_address,\n token1 AS token1_address,\n price,\n liquidity,\n tick,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__camelot_v2_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__camelot_v2_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/camelot/silver_dex__camelot_v2_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS reipient_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n )\n ) AS amount0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n )\n ) AS amount1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS price,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS tick,\n token0,\n token1,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_dex__camelot_v2_pools') }} p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n reipient_address AS tx_to,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n token0 AS token0_address,\n token1 AS token1_address,\n price,\n liquidity,\n tick,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps\n*/\n\n\n\nWITH swaps AS (\n SELECT\n l.block_number,\n l.origin_function_signature,\n l.origin_from_address,\n l.origin_to_address,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(l.data, 3, len(l.data)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 40)) AS sender_address,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 40)) AS reipient_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [0] :: STRING\n )\n ) AS amount0,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [1] :: STRING\n )\n ) AS amount1,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS price,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS liquidity,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n 's2c',\n segmented_data [4] :: STRING\n )\n ) AS tick,\n token0,\n token1,\n p.platform,\n p.protocol,\n p.version,\n p.type,\n 'Swap' AS event_name,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.camelot_v2_pools p\n ON p.pool_address = l.contract_address\n WHERE\n topics [0] :: STRING = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.camelot_v2_swaps\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n tx_hash,\n event_index,\n event_name,\n contract_address,\n sender_address AS sender,\n reipient_address AS tx_to,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n token0 AS token0_address,\n token1 AS token1_address,\n price,\n liquidity,\n tick,\n CASE\n WHEN amount0_unadj > 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_in_unadj,\n CASE\n WHEN amount0_unadj < 0 THEN ABS(amount0_unadj)\n ELSE ABS(amount1_unadj)\n END AS amount_out_unadj,\n CASE\n WHEN amount0_unadj > 0 THEN token0_address\n ELSE token1_address\n END AS token_in,\n CASE\n WHEN amount0_unadj < 0 THEN token0_address\n ELSE token1_address\n END AS token_out,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n swaps", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__camelot_v2_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__camelot_v2_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/camelot/silver_dex__camelot_v2_pools.sql", "original_file_path": "models/curated_package/defi/dex/silver/camelot/silver_dex__camelot_v2_pools.sql", "unique_id": "model.fsc_evm.silver_dex__camelot_v2_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "camelot", "silver_dex__camelot_v2_pools"], "alias": "camelot_v2_pools", "checksum": {"name": "sha256", "checksum": "6d27ed593816b0582f47e9677cb922bbb6097ac6b4bd56b85acdfcf5eab74587"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "pool_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver_dex", "defi", "dex", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "pool_address", "tags": ["silver_dex", "defi", "dex", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018394.935667, "relation_name": "polygon.silver_dex.camelot_v2_pools", "raw_code": "{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'camelot'\n AND version = 'v2'\n),\npool_creation AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref ('core__fact_event_logs') }}\n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pool_creation qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/camelot/silver_dex__camelot_v2_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"curated\"\n ],\n \"unique_key\": \"pool_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get Variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'pool_address',\n tags = ['silver_dex','defi','dex','curated']\n) }}\n\nWITH contract_mapping AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING\n ) }}\n WHERE\n protocol = 'camelot'\n AND version = 'v2'\n),\npool_creation AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref ('core__fact_event_logs') }}\n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pool_creation qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH contract_mapping AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c', 'uniswap', 'v2', 'uni_v2_pair_created'),\n \n ('0x1f98431c8ad98523631ae4a59f267346ea31f984', 'uniswap', 'v3', 'uni_v3_pool_created'),\n \n ('0xc35dadb65012ec5796536bd9864ed8773abc74c4', 'sushiswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5757371414417b8c6caad45baef941abc7d3ab32', 'quickswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x411b0facc3489691f28ad58c47006af5e3ab3a28', 'quickswap', 'v2', 'pool'),\n \n ('0xc2544a32872a91f4a553b404c6950e89de901fdb', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x54f454d747e037da288db568d4121117eab34e79', 'fraxswap', 'v1', 'uni_v2_pair_created'),\n \n ('0x5f1fe642060b5b9658c15721ea22e982643c095c', 'kyberswap', 'v1', 'dynamic'),\n \n ('0x1c758af0688502e49140230f6b0ebd376d429be5', 'kyberswap', 'v1', 'static'),\n \n ('0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a', 'kyberswap', 'v2', 'elastic'),\n \n ('0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11', 'dodo', 'v1', 'dodo_birth'),\n \n ('0xdbfaf391c37339c903503495395ad7d6b096e192', 'dodo', 'v1', 'proxy'),\n \n ('0x6c30be15d88462b788dea7c6a860a2ccaf7b2670', 'dodo', 'v1', 'proxy'),\n \n ('0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8', 'dodo', 'v2', 'new_pool'),\n \n ('0xd24153244066f0afa9415563bfc7ba248bfb7a51', 'dodo', 'v2', 'new_pool'),\n \n ('0x43c49f8dd240e1545f147211ec9f917376ac1e87', 'dodo', 'v2', 'new_pool'),\n \n ('0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13', 'dodo', 'v2', 'new_pool'),\n \n ('0x63ae536fec0b57bdeb1fd6a893191b4239f61bff', 'hashflow', 'v1', 'create'),\n \n ('0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5', 'hashflow', 'v1', 'create'),\n \n ('0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac', 'hashflow', 'v1', 'create'),\n \n ('0xde828fdc3f497f16416d1bb645261c7c6a62dab5', 'hashflow', 'v3', 'create_pool'),\n \n ('0x9d1a92e601db0901e69bd810029f2c14bcca3128', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x817eb46d60762442da3d931ff51a30334ca39b74', 'woofi', 'v1', 'woo_router_swap'),\n \n ('0x7081a38158bd050ae4a86e38e0225bc281887d7e', 'woofi', 'v1', 'woo_swap'),\n \n ('0x7400b665c8f4f3a951a99f1ee9872efb8778723d', 'woofi', 'v1', 'woo_swap'),\n \n ('0xed9e3f98bbed560e66b89aac922e29d4596a9642', 'woofi', 'v1', 'woo_swap'),\n \n ('0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7', 'woofi', 'v2', 'woo_router_swap'),\n \n ('0x7eeac6cddbd1d0b8af061742d41877d7f707289a', 'curve', 'v1', 'deployer'),\n \n ('0xbabe61887f1de2713c6f97e567623453d3c79f67', 'curve', 'v1', 'deployer'),\n \n ('0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee', 'curve', 'v1', 'deployer'),\n \n ('0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69', 'curve', 'v1', 'deployer'),\n \n ('0xba12222222228d8ba445958a75a0704d566bf2c8', 'balancer', 'v1', 'vault')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n protocol = 'camelot'\n AND version = 'v2'\n),\npool_creation AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token0,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token1,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS pool_address,\n m.protocol,\n m.version,\n m.type,\n CONCAT(m.protocol, '-', m.version) AS platform,\n 'PoolCreated' AS event_name,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l \n INNER JOIN contract_mapping m\n ON l.contract_address = m.contract_address\n WHERE\n topics [0] :: STRING = '0x91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db'\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.camelot_v2_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_index,\n event_name,\n token0,\n token1,\n pool_address,\n platform,\n protocol,\n version,\n type,\n _log_id,\n modified_timestamp\nFROM\n pool_creation qualify(ROW_NUMBER() over (PARTITION BY pool_address\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_dex__camelot_v2_pool_actions": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__camelot_v2_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/silver/camelot/silver_dex__camelot_v2_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/silver/camelot/silver_dex__camelot_v2_pool_actions.sql", "unique_id": "model.fsc_evm.silver_dex__camelot_v2_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "camelot", "silver_dex__camelot_v2_pool_actions"], "alias": "camelot_v2_pool_actions", "checksum": {"name": "sha256", "checksum": "8c9b7dbb2b63ca897f4e8ec33c9cbe11736916b40e8bce1279c7ce98472436b5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver_dex", "defi", "dex", "lp_actions", "curated"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018395.2495072, "relation_name": "polygon.silver_dex.camelot_v2_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__camelot_v2_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_dex__camelot_v2_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__camelot_v2_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/camelot/silver_dex__camelot_v2_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_dex\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'block_number',\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver_dex','defi','dex','lp_actions','curated']\n) }}\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ref('silver_dex__camelot_v2_pools')}} p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH evt AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_hash,\n l.event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n l.contract_address AS pool_address,\n token0,\n token1,\n topic_0,\n topic_1,\n topic_2,\n topic_3,\n data,\n regexp_substr_all(SUBSTR(data, 3, len(data)), '.{64}') AS segmented_data,\n p.protocol,\n p.version,\n p.type,\n CONCAT(\n p.protocol,\n '-',\n p.version\n ) AS platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_dex.camelot_v2_pools p\n ON l.contract_address = p.pool_address\n WHERE\n topic_0 IN ('0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde', --mint\n '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_dex.camelot_v2_pool_actions\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nmint AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Mint' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS sender_address,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' --mint\n),\nburn AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n 'Burn' AS event_name,\n pool_address,\n token0,\n token1,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) AS owner_address,\n utils.udf_hex_to_int(\n topic_2\n ) :: FLOAT AS bottom_tick,\n utils.udf_hex_to_int(\n topic_3\n ) :: FLOAT AS top_tick,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: FLOAT AS liquidity_amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: FLOAT AS amount0,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: FLOAT AS amount1,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n evt\n WHERE\n topic_0 = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' --burn\n),\nall_actions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n sender_address AS sender,\n owner_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n mint\n UNION ALL\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n bottom_tick AS tick_lower,\n top_tick AS tick_upper,\n token0,\n token1,\n owner_address,\n owner_address AS sender,\n origin_from_address AS receiver,\n liquidity_amount AS liquidity_amount_unadj,\n amount0 AS amount0_unadj,\n amount1 AS amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\n FROM\n burn\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_name,\n pool_address,\n tick_lower,\n tick_upper,\n token0,\n token1,\n origin_from_address AS liquidity_provider,\n owner_address,\n sender,\n receiver,\n liquidity_amount_unadj,\n amount0_unadj,\n amount1_unadj,\n protocol,\n version,\n type,\n platform,\n _log_id,\n modified_timestamp\nFROM\n all_actions qualify(ROW_NUMBER() over (PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.defi__ez_dex_swaps": {"database": "polygon", "schema": "defi", "name": "defi__ez_dex_swaps", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/gold/defi__ez_dex_swaps.sql", "original_file_path": "models/curated_package/defi/dex/gold/defi__ez_dex_swaps.sql", "unique_id": "model.fsc_evm.defi__ez_dex_swaps", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "gold", "defi__ez_dex_swaps"], "alias": "ez_dex_swaps", "checksum": {"name": "sha256", "checksum": "d10b71a9b4eec488c0482ff9b8883202cfcfea51ab8a56d9ca7ca87ec950be98"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "defi", "dex", "curated", "ez"], "meta": {"database_tags": {"table": {"PURPOSE": "DEX, SWAPS"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "defi", "dex", "curated", "ez"], "description": "## What\n\nThis table provides a comprehensive view of token swap events across major decentralized exchanges (DEXs) on EVM blockchains. It standardizes swap data from different DEX protocols into a unified format, enabling cross-DEX analysis and DeFi trading insights.\n\n## Key Use Cases\n\n- Analyzing DEX trading volumes and market share\n- Tracking token pair liquidity and trading activity\n- Detecting arbitrage opportunities across protocols\n- Monitoring whale trades and unusual swap patterns\n- Calculating slippage and price impact of trades\n\n## Important Relationships\n\n- **Join with dim_dex_liquidity_pools**: Get pool metadata and token details\n- **Join with fact_event_logs**: Access raw swap events\n- **Join with ez_prices_hourly**: Verify token prices\n\n## Commonly-used Fields\n\n- `platform`: DEX protocol (uniswap_v2, curve, etc.)\n- `sender`: Address initiating the swap\n- `token_in`/`token_out`: Token addresses being swapped\n- `amount_in`/`amount_out`: Decimal-adjusted swap amounts\n- `amount_in_usd`/`amount_out_usd`: USD values at swap time\n- `pool_address`: Liquidity pool where swap occurred\n\n## Sample queries\n\n```sql\n-- Daily swap volume by DEX platform\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(*) AS swap_count,\n COUNT(DISTINCT sender) AS unique_traders,\n COUNT(DISTINCT pool_address) AS active_pools,\n SUM(amount_in_usd) AS total_volume_usd,\n AVG(amount_in_usd) AS avg_swap_size_usd,\n PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY amount_in_usd) AS median_swap_usd\nFROM .defi.ez_dex_swaps\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_in_usd IS NOT NULL\n AND amount_in_usd > 0\nGROUP BY 1, 2\nORDER BY 1 DESC, 6 DESC;\n\n-- Most active trading pairs\nWITH pair_volume AS (\n SELECT \n LEAST(token_in, token_out) AS token_a,\n GREATEST(token_in, token_out) AS token_b,\n LEAST(symbol_in, symbol_out) AS symbol_a,\n GREATEST(symbol_in, symbol_out) AS symbol_b,\n COUNT(*) AS swap_count,\n SUM(amount_in_usd) AS volume_usd,\n COUNT(DISTINCT sender) AS unique_traders,\n COUNT(DISTINCT DATE(block_timestamp)) AS active_days\n FROM .defi.ez_dex_swaps\n WHERE block_timestamp >= CURRENT_DATE - 7\n AND amount_in_usd IS NOT NULL\n GROUP BY 1, 2, 3, 4\n)\nSELECT \n symbol_a || '/' || symbol_b AS pair,\n swap_count,\n volume_usd,\n unique_traders,\n active_days,\n volume_usd / swap_count AS avg_swap_size\nFROM pair_volume\nWHERE volume_usd > 100000\nORDER BY volume_usd DESC\nLIMIT 50;\n\n-- Price discrepancies across DEXs for same token pairs\nWITH recent_swaps AS (\n SELECT \n block_timestamp,\n platform,\n token_in,\n token_out,\n symbol_in,\n symbol_out,\n amount_in,\n amount_out,\n amount_in_usd / NULLIF(amount_in, 0) AS price_in_usd,\n amount_out_usd / NULLIF(amount_out, 0) AS price_out_usd,\n -- Calculate implied exchange rate\n amount_out / NULLIF(amount_in, 0) AS exchange_rate\n FROM .defi.ez_dex_swaps\n WHERE block_timestamp >= CURRENT_TIMESTAMP - INTERVAL '1 hour'\n AND amount_in > 0 \n AND amount_out > 0\n AND amount_in_usd IS NOT NULL\n),\nprice_comparison AS (\n SELECT \n DATE_TRUNC('minute', block_timestamp) AS minute,\n token_in,\n token_out,\n symbol_in || '->' || symbol_out AS pair,\n platform,\n AVG(exchange_rate) AS avg_rate,\n COUNT(*) AS swap_count\n FROM recent_swaps\n GROUP BY 1, 2, 3, 4, 5\n)\nSELECT \n p1.minute,\n p1.pair,\n p1.platform AS platform_1,\n p2.platform AS platform_2,\n p1.avg_rate AS rate_1,\n p2.avg_rate AS rate_2,\n ABS(p1.avg_rate - p2.avg_rate) / LEAST(p1.avg_rate, p2.avg_rate) * 100 AS price_diff_pct\nFROM price_comparison p1\nJOIN price_comparison p2\n ON p1.minute = p2.minute\n AND p1.token_in = p2.token_in\n AND p1.token_out = p2.token_out\n AND p1.platform < p2.platform\nWHERE price_diff_pct > 1 -- More than 1% difference\nORDER BY p1.minute DESC, price_diff_pct DESC;\n\n-- Large swaps by size and impact\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n sender,\n symbol_in || ' -> ' || symbol_out AS swap_pair,\n amount_in,\n amount_in_usd,\n amount_out,\n amount_out_usd,\n ABS(amount_in_usd - amount_out_usd) / NULLIF(amount_in_usd, 0) * 100 AS slippage_pct\nFROM .defi.ez_dex_swaps\nWHERE block_timestamp >= CURRENT_DATE - 1\n AND amount_in_usd > 100000 -- Swaps over $100k\nORDER BY amount_in_usd DESC\nLIMIT 100;\n\n-- Platform market share by volume\nWITH platform_stats AS (\n SELECT \n platform,\n SUM(amount_in_usd) AS total_volume,\n COUNT(*) AS total_swaps,\n COUNT(DISTINCT sender) AS unique_users,\n COUNT(DISTINCT pool_address) AS unique_pools\n FROM .defi.ez_dex_swaps\n WHERE block_timestamp >= CURRENT_DATE - 7\n AND amount_in_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n platform,\n total_volume,\n ROUND(100.0 * total_volume / SUM(total_volume) OVER (), 2) AS market_share_pct,\n total_swaps,\n unique_users,\n unique_pools,\n total_volume / NULLIF(total_swaps, 0) AS avg_swap_size\nFROM platform_stats\nORDER BY total_volume DESC;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "The contract address of the swap. This is the address of the contract that executed the swap, often a pool contract.\n\nExample: '0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_IN": {"name": "AMOUNT_IN", "description": "The decimal-adjusted quantity of tokens provided by the trader in the swap.\n\nExample: 1000.5", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_OUT": {"name": "AMOUNT_OUT", "description": "The decimal-adjusted quantity of tokens received by the trader from the swap.\n\nExample: 0.65", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_IN_USD": {"name": "AMOUNT_IN_USD", "description": "USD value of tokens provided in the swap at time of transaction.\n\nExample: 1500.75", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_OUT_USD": {"name": "AMOUNT_OUT_USD", "description": "USD value of tokens received from the swap at time of transaction.\n\nExample: 1498.25", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_IN": {"name": "TOKEN_IN", "description": "The contract address of the token being sold in the swap.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_IN_IS_VERIFIED": {"name": "TOKEN_IN_IS_VERIFIED", "description": "Whether the token in the swap is verified.\n\nExample: true", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_OUT": {"name": "TOKEN_OUT", "description": "The contract address of the token being received from the swap.\n\nExample: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_OUT_IS_VERIFIED": {"name": "TOKEN_OUT_IS_VERIFIED", "description": "Whether the token out of the swap is verified.\n\nExample: true", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL_IN": {"name": "SYMBOL_IN", "description": "The ticker symbol of the token being sold/swapped from.\n\nExample: 'USDC'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL_OUT": {"name": "SYMBOL_OUT", "description": "The ticker symbol of the token being bought/received.\n\nExample: 'WETH'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SENDER": {"name": "SENDER", "description": "The address that initiated the swap transaction.\n\nExample: '0x7a250d5630b4cf539739df2c5dacb4c659f2488d'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_TO": {"name": "TX_TO", "description": "The recipient address of the swapped tokens.\n\nExample: '0x1234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "The DEX protocol where the swap occurred.\n\nExample: 'uniswap_v3'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL": {"name": "PROTOCOL", "description": "The protocol used for the swap. This is the clean name of the protocol, not the platform, without the version.\n\nExample: 'uniswap'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL_VERSION": {"name": "PROTOCOL_VERSION", "description": "The version of the protocol used for the swap.\n\nExample: 'v3'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_IN_UNADJ": {"name": "AMOUNT_IN_UNADJ", "description": "The raw, non-decimal adjusted amount of tokens provided in the swap.\n\nExample: 1000500000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_OUT_UNADJ": {"name": "AMOUNT_OUT_UNADJ", "description": "The raw, non-decimal adjusted amount of tokens received from the swap.\n\nExample: 650000000000000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_DEX_SWAPS_ID": {"name": "EZ_DEX_SWAPS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "DEX, SWAPS"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/dex/gold/defi__ez_dex_swaps.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "persist_docs": {"relation": true, "columns": true}, "meta": {"database_tags": {"table": {"PURPOSE": "DEX, SWAPS"}}}, "tags": ["gold", "defi", "dex", "curated", "ez"], "copy_grants": true, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018441.5292788, "relation_name": "polygon.defi.ez_dex_swaps", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'DEX, SWAPS' } } },\n tags = ['gold','defi','dex','curated','ez']\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_name,\n event_name,\n amount_in_unadj,\n amount_in,\n ROUND(\n CASE\n WHEN (token_in <> '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n OR NOT token_in_is_verified)\n AND (\n amount_out_usd IS NULL\n OR ABS((amount_in_usd - amount_out_usd) / NULLIF(amount_out_usd, 0)) > 0.75\n OR ABS((amount_in_usd - amount_out_usd) / NULLIF(amount_in_usd, 0)) > 0.75\n ) THEN NULL\n ELSE amount_in_usd\n END,\n 2\n ) AS amount_in_usd,\n amount_out_unadj,\n amount_out,\n ROUND(\n CASE\n WHEN (token_out <> '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n OR NOT token_out_is_verified)\n AND (\n amount_in_usd IS NULL\n OR ABS((amount_out_usd - amount_in_usd) / NULLIF(amount_in_usd, 0)) > 0.75\n OR ABS((amount_out_usd - amount_in_usd) / NULLIF(amount_out_usd, 0)) > 0.75\n ) THEN NULL\n ELSE amount_out_usd\n END,\n 2\n ) AS amount_out_usd,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version AS protocol_version,\n token_in,\n token_in_is_verified,\n token_out,\n token_out_is_verified,\n symbol_in,\n symbol_out,\n _log_id,\n complete_dex_swaps_id AS ez_dex_swaps_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n {{ ref('silver_dex__complete_dex_swaps') }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/gold/defi__ez_dex_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {\n \"database_tags\": {\n \"table\": {\n \"PURPOSE\": \"DEX, SWAPS\"\n }\n }\n },\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"defi\",\n \"dex\",\n \"curated\",\n \"ez\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'DEX, SWAPS' } } },\n tags = ['gold','defi','dex','curated','ez']\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_name,\n event_name,\n amount_in_unadj,\n amount_in,\n ROUND(\n CASE\n WHEN (token_in <> '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n OR NOT token_in_is_verified)\n AND (\n amount_out_usd IS NULL\n OR ABS((amount_in_usd - amount_out_usd) / NULLIF(amount_out_usd, 0)) > 0.75\n OR ABS((amount_in_usd - amount_out_usd) / NULLIF(amount_in_usd, 0)) > 0.75\n ) THEN NULL\n ELSE amount_in_usd\n END,\n 2\n ) AS amount_in_usd,\n amount_out_unadj,\n amount_out,\n ROUND(\n CASE\n WHEN (token_out <> '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n OR NOT token_out_is_verified)\n AND (\n amount_in_usd IS NULL\n OR ABS((amount_out_usd - amount_in_usd) / NULLIF(amount_in_usd, 0)) > 0.75\n OR ABS((amount_out_usd - amount_in_usd) / NULLIF(amount_out_usd, 0)) > 0.75\n ) THEN NULL\n ELSE amount_out_usd\n END,\n 2\n ) AS amount_out_usd,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version AS protocol_version,\n token_in,\n token_in_is_verified,\n token_out,\n token_out_is_verified,\n symbol_in,\n symbol_out,\n _log_id,\n complete_dex_swaps_id AS ez_dex_swaps_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n {{ ref('silver_dex__complete_dex_swaps') }}\n*/\n\n\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address,\n pool_name,\n event_name,\n amount_in_unadj,\n amount_in,\n ROUND(\n CASE\n WHEN (token_in <> '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n OR NOT token_in_is_verified)\n AND (\n amount_out_usd IS NULL\n OR ABS((amount_in_usd - amount_out_usd) / NULLIF(amount_out_usd, 0)) > 0.75\n OR ABS((amount_in_usd - amount_out_usd) / NULLIF(amount_in_usd, 0)) > 0.75\n ) THEN NULL\n ELSE amount_in_usd\n END,\n 2\n ) AS amount_in_usd,\n amount_out_unadj,\n amount_out,\n ROUND(\n CASE\n WHEN (token_out <> '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n OR NOT token_out_is_verified)\n AND (\n amount_in_usd IS NULL\n OR ABS((amount_out_usd - amount_in_usd) / NULLIF(amount_in_usd, 0)) > 0.75\n OR ABS((amount_out_usd - amount_in_usd) / NULLIF(amount_out_usd, 0)) > 0.75\n ) THEN NULL\n ELSE amount_out_usd\n END,\n 2\n ) AS amount_out_usd,\n sender,\n tx_to,\n event_index,\n platform,\n protocol,\n version AS protocol_version,\n token_in,\n token_in_is_verified,\n token_out,\n token_out_is_verified,\n symbol_in,\n symbol_out,\n _log_id,\n complete_dex_swaps_id AS ez_dex_swaps_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n polygon.silver_dex.complete_dex_swaps", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.defi__ez_dex_liquidity_pool_actions": {"database": "polygon", "schema": "defi", "name": "defi__ez_dex_liquidity_pool_actions", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/gold/defi__ez_dex_liquidity_pool_actions.sql", "original_file_path": "models/curated_package/defi/dex/gold/defi__ez_dex_liquidity_pool_actions.sql", "unique_id": "model.fsc_evm.defi__ez_dex_liquidity_pool_actions", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "gold", "defi__ez_dex_liquidity_pool_actions"], "alias": "ez_dex_liquidity_pool_actions", "checksum": {"name": "sha256", "checksum": "97964c24a107419d0de4ba604c92cc4cc5c264afa28b8f015895f5fc48c66aa6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "defi", "dex", "lp_actions", "curated", "ez"], "meta": {"database_tags": {"table": {"PURPOSE": "DEX, LIQUIDITY, POOLS, LP, SWAPS"}}}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, pool_address, token_address)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["block_number", "platform"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE", "platform"]}, "tags": ["gold", "defi", "dex", "lp_actions", "curated", "ez"], "description": "## What\n\nThis table provides a comprehensive view of liquidity pool actions across major decentralized exchanges (DEXs) on EVM blockchains. Each row represents **one token** in a liquidity pool action. For example, if a user adds WETH and USDC to a pool, there will be 2 rows: one for WETH and one for USDC.\n\n## Key Use Cases\n\n- Analyzing liquidity provision patterns and LP behavior\n- Tracking token-specific liquidity flows\n- Monitoring large liquidity additions/removals by token\n- Calculating LP rewards and impermanent loss\n- Identifying popular tokens in liquidity pools\n\n## Important Relationships\n\n- **Join with ez_dex_swaps**: Correlate LP actions with trading activity\n- **Join with ez_prices_hourly**: Get historical token prices\n- **Self-join on ez_dex_liquidity_pool_actions_id**: Group tokens from the same action\n\n## Commonly-used Fields\n\n- `platform`: DEX protocol (uniswap-v3, uniswap-v2 etc.)\n- `event_name`: Type of action (Mint, Burn, AddLiquidity, RemoveLiquidity, Deposit, Withdraw etc.)\n- `liquidity_provider`: Address providing/removing liquidity\n- `pool_address`: Liquidity pool where action occurred\n- `token_address`: Individual token in the action\n- `amount`: Decimal-adjusted token amount\n- `amount_usd`: USD value of the token amount\n\n## Sample queries\n\n```sql\n-- Top tokens by liquidity additions (last 7 days)\nSELECT \n token_address,\n symbol,\n COUNT(DISTINCT tx_hash) AS add_count,\n SUM(amount_usd) AS total_usd_added\nFROM .defi.ez_dex_liquidity_pool_actions\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND event_name IN ('Mint', 'AddLiquidity', 'Deposit')\nGROUP BY 1, 2\nORDER BY total_usd_added DESC\nLIMIT 50;\n\n-- Largest single token liquidity actions\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n pool_name,\n liquidity_provider,\n symbol,\n amount,\n amount_usd\nFROM .defi.ez_dex_liquidity_pool_actions\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND amount_usd > 0\nORDER BY amount_usd DESC\nLIMIT 100;\n\n-- Daily LP activity by platform\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(DISTINCT liquidity_provider) AS unique_lps,\n COUNT(DISTINCT pool_address) AS active_pools,\n SUM(amount_usd) AS total_volume_usd\nFROM .defi.ez_dex_liquidity_pool_actions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1, 2\nORDER BY 1 DESC, 5 DESC;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LIQUIDITY_PROVIDER": {"name": "LIQUIDITY_PROVIDER", "description": "The address that is providing or removing liquidity from the pool.\n\nExample: '0x1234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SENDER": {"name": "SENDER", "description": "The address that initiated the liquidity pool action function.\n\nExample: '0x7a250d5630b4cf539739df2c5dacb4c659f2488d'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "RECEIVER": {"name": "RECEIVER", "description": "The recipient address of the LP tokens or withdrawn assets.\n\nExample: '0x1234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POOL_ADDRESS": {"name": "POOL_ADDRESS", "description": "The liquidity pool contract address where the action occurred.\n\nExample: '0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POOL_NAME": {"name": "POOL_NAME", "description": "Human-readable name for the liquidity pool.\n\nExample: 'WETH/USDC'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "The contract address of the individual token in this liquidity pool action.\n\nExample: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "The symbol of the individual token.\n\nExample: 'WETH'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECIMALS": {"name": "DECIMALS", "description": "The number of decimal places for the individual token.\n\nExample: 18", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_UNADJ": {"name": "AMOUNT_UNADJ", "description": "Raw, non-decimal adjusted amount of the individual token in this action.\n\nExample: 1000500000000000000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "Decimal-adjusted amount of the individual token in this action.\n\nExample: 1000.5", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_USD": {"name": "AMOUNT_USD", "description": "USD value of the individual token amount at the time of the transaction.\n\nExample: 1500.75", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_IS_VERIFIED": {"name": "TOKEN_IS_VERIFIED", "description": "Whether the individual token is verified in the Flipside token metadata.\n\nExample: true", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "The DEX protocol and version where the liquidity action occurred.\n\nExample: 'uniswap-v3'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL": {"name": "PROTOCOL", "description": "The protocol used for the liquidity action. This is the clean name of the protocol without the version.\n\nExample: 'uniswap'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL_VERSION": {"name": "PROTOCOL_VERSION", "description": "The version of the protocol used for the liquidity action.\n\nExample: 'v3'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_DEX_LIQUIDITY_POOL_ACTIONS_ID": {"name": "EZ_DEX_LIQUIDITY_POOL_ACTIONS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "DEX, LIQUIDITY, POOLS, LP, SWAPS"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/dex/gold/defi__ez_dex_liquidity_pool_actions.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["block_number", "platform"], "cluster_by": ["block_timestamp::DATE", "platform"], "persist_docs": {"relation": true, "columns": true}, "meta": {"database_tags": {"table": {"PURPOSE": "DEX, LIQUIDITY, POOLS, LP, SWAPS"}}}, "tags": ["gold", "defi", "dex", "lp_actions", "curated", "ez"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "on_schema_change": "append_new_columns"}, "created_at": 1764018441.534604, "relation_name": "polygon.defi.ez_dex_liquidity_pool_actions", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform'],\n cluster_by = ['block_timestamp::DATE','platform'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, pool_address, token_address)\",\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'DEX, LIQUIDITY, POOLS, LP, SWAPS',\n } } },\n tags = ['gold','defi','dex','lp_actions','curated','ez']\n) }}\n\nWITH base AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n pool_name,\n tokens,\n symbols,\n decimals,\n amounts_unadj,\n amounts,\n amounts_usd,\n tokens_is_verified,\n platform,\n protocol,\n version AS protocol_version,\n modified_timestamp\n FROM\n {{ ref('silver_dex__complete_dex_liquidity_pool_actions') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n )\n{% endif %}\n),\nflattened_tokens AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n pool_name,\n tokens,\n symbols,\n decimals,\n amounts_unadj,\n amounts,\n amounts_usd,\n tokens_is_verified,\n platform,\n protocol,\n protocol_version,\n modified_timestamp,\n f.key AS token_key,\n f.value :: STRING AS token_address\n FROM\n base,\n LATERAL FLATTEN(\n input => tokens\n ) f\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n pool_name,\n token_address,\n symbols [token_key] :: STRING AS symbol,\n decimals [token_key] :: INT AS decimals,\n amounts_unadj [token_key] :: FLOAT AS amount_unadj,\n amounts [token_key] :: FLOAT AS amount,\n ROUND(\n IFF(\n amount = 0,\n 0,\n amounts_usd [token_key] :: FLOAT\n ),\n 2\n ) AS amount_usd,\n IFNULL(\n tokens_is_verified [token_key] :: BOOLEAN,\n FALSE\n ) AS token_is_verified,\n platform,\n protocol,\n protocol_version,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash','event_index','token_key']\n ) }} AS ez_dex_liquidity_pool_actions_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n flattened_tokens\nWHERE\n token_address IS NOT NULL", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/gold/defi__ez_dex_liquidity_pool_actions.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\",\n \"platform\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {\n \"database_tags\": {\n \"table\": {\n \"PURPOSE\": \"DEX, LIQUIDITY, POOLS, LP, SWAPS\"\n }\n }\n },\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, pool_address, token_address)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"defi\",\n \"dex\",\n \"lp_actions\",\n \"curated\",\n \"ez\"\n ],\n \"unique_key\": [\n \"block_number\",\n \"platform\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform'],\n cluster_by = ['block_timestamp::DATE','platform'],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, pool_address, token_address)\",\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'DEX, LIQUIDITY, POOLS, LP, SWAPS',\n } } },\n tags = ['gold','defi','dex','lp_actions','curated','ez']\n) }}\n\nWITH base AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n pool_name,\n tokens,\n symbols,\n decimals,\n amounts_unadj,\n amounts,\n amounts_usd,\n tokens_is_verified,\n platform,\n protocol,\n version AS protocol_version,\n modified_timestamp\n FROM\n {{ ref('silver_dex__complete_dex_liquidity_pool_actions') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n {{ this }}\n )\n{% endif %}\n),\nflattened_tokens AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n pool_name,\n tokens,\n symbols,\n decimals,\n amounts_unadj,\n amounts,\n amounts_usd,\n tokens_is_verified,\n platform,\n protocol,\n protocol_version,\n modified_timestamp,\n f.key AS token_key,\n f.value :: STRING AS token_address\n FROM\n base,\n LATERAL FLATTEN(\n input => tokens\n ) f\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n pool_name,\n token_address,\n symbols [token_key] :: STRING AS symbol,\n decimals [token_key] :: INT AS decimals,\n amounts_unadj [token_key] :: FLOAT AS amount_unadj,\n amounts [token_key] :: FLOAT AS amount,\n ROUND(\n IFF(\n amount = 0,\n 0,\n amounts_usd [token_key] :: FLOAT\n ),\n 2\n ) AS amount_usd,\n IFNULL(\n tokens_is_verified [token_key] :: BOOLEAN,\n FALSE\n ) AS token_is_verified,\n platform,\n protocol,\n protocol_version,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash','event_index','token_key']\n ) }} AS ez_dex_liquidity_pool_actions_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n flattened_tokens\nWHERE\n token_address IS NOT NULL\n*/\n\n\n\nWITH base AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n pool_name,\n tokens,\n symbols,\n decimals,\n amounts_unadj,\n amounts,\n amounts_usd,\n tokens_is_verified,\n platform,\n protocol,\n version AS protocol_version,\n modified_timestamp\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n\n\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP) AS modified_timestamp\n FROM\n polygon.defi.ez_dex_liquidity_pool_actions\n )\n\n),\nflattened_tokens AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n pool_name,\n tokens,\n symbols,\n decimals,\n amounts_unadj,\n amounts,\n amounts_usd,\n tokens_is_verified,\n platform,\n protocol,\n protocol_version,\n modified_timestamp,\n f.key AS token_key,\n f.value :: STRING AS token_address\n FROM\n base,\n LATERAL FLATTEN(\n input => tokens\n ) f\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n event_name,\n liquidity_provider,\n sender,\n receiver,\n pool_address,\n pool_name,\n token_address,\n symbols [token_key] :: STRING AS symbol,\n decimals [token_key] :: INT AS decimals,\n amounts_unadj [token_key] :: FLOAT AS amount_unadj,\n amounts [token_key] :: FLOAT AS amount,\n ROUND(\n IFF(\n amount = 0,\n 0,\n amounts_usd [token_key] :: FLOAT\n ),\n 2\n ) AS amount_usd,\n IFNULL(\n tokens_is_verified [token_key] :: BOOLEAN,\n FALSE\n ) AS token_is_verified,\n platform,\n protocol,\n protocol_version,\n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(event_index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(token_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS ez_dex_liquidity_pool_actions_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n flattened_tokens\nWHERE\n token_address IS NOT NULL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.defi__dim_dex_liquidity_pools": {"database": "polygon", "schema": "defi", "name": "defi__dim_dex_liquidity_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/dex/gold/defi__dim_dex_liquidity_pools.sql", "original_file_path": "models/curated_package/defi/dex/gold/defi__dim_dex_liquidity_pools.sql", "unique_id": "model.fsc_evm.defi__dim_dex_liquidity_pools", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "gold", "defi__dim_dex_liquidity_pools"], "alias": "dim_dex_liquidity_pools", "checksum": {"name": "sha256", "checksum": "fe0f1abb4a7e0610039caab53b7ee9754b42b323df10db3509d7d47285c7f993"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "defi", "dex", "curated"], "meta": {"database_tags": {"table": {"PURPOSE": "DEX, LIQUIDITY, POOLS, LP, SWAPS"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "defi", "dex", "curated"], "description": "## What\n\nThis dimensional table contains comprehensive metadata for all DEX liquidity pools across supported protocols. It provides essential information about pool composition, token pairs, and configuration needed for analyzing liquidity provision and pool performance.\n\n## Key Use Cases\n\n- Finding all pools containing specific tokens\n- Tracking new pool deployments\n- Analyzing pool configurations and fee structures\n- Identifying trading pairs across different protocols\n- Monitoring factory contract deployments\n\n## Important Relationships\n\n- **Join with ez_dex_swaps**: Use `pool_address` to get swap activity\n- **Join with dim_contracts**: Use token addresses for additional metadata\n- **Self-join**: Find all pools with common tokens\n\n## Commonly-used Fields\n\n- `pool_address`: Unique identifier for the liquidity pool\n- `platform`: DEX protocol (uniswap_v3, curve, etc.)\n- `pool_name`: Human-readable pool identifier\n- `tokens`: JSON with token0 and token1 addresses\n- `symbols`: JSON with token0 and token1 symbols\n- `creation_time`: When pool was deployed\n\n## Sample queries\n\n```sql\n-- Find all pools containing USDC\nSELECT \n pool_address,\n pool_name,\n platform,\n creation_time,\n CASE \n WHEN tokens:token0::string = LOWER('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48') THEN \n symbols:token1::string\n ELSE \n symbols:token0::string\n END AS paired_token\nFROM .defi.dim_dex_liquidity_pools\nWHERE LOWER('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48') IN (\n tokens:token0::string,\n tokens:token1::string\n)\nORDER BY creation_time DESC;\n\n-- Recently created liquidity pools\nSELECT \n platform,\n pool_address,\n pool_name,\n creation_time,\n creation_tx,\n symbols:token0::string || '/' || symbols:token1::string AS pair,\n factory_address\nFROM .defi.dim_dex_liquidity_pools\nWHERE creation_time >= CURRENT_DATE - 7\nORDER BY creation_time DESC\nLIMIT 100;\n\n-- Extract token information from JSON fields\nSELECT \n pool_address,\n tokens:token0::string AS token0_address,\n tokens:token1::string AS token1_address,\n symbols:token0::string AS token0_symbol,\n symbols:token1::string AS token1_symbol,\n decimals:token0::integer AS token0_decimals,\n decimals:token1::integer AS token1_decimals\nFROM .defi.dim_dex_liquidity_pools\nWHERE platform = 'uniswap_v3';\n```", "columns": {"CREATION_BLOCK": {"name": "CREATION_BLOCK", "description": "The block number when the liquidity pool was first created.\n\nExample: 12369739", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATION_TIME": {"name": "CREATION_TIME", "description": "The timestamp when the liquidity pool was deployed.\n\nExample: '2021-05-05 12:34:56.000'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATION_TX": {"name": "CREATION_TX", "description": "The transaction hash that deployed this liquidity pool.\n\nExample: '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FACTORY_ADDRESS": {"name": "FACTORY_ADDRESS", "description": "The factory contract that deployed this liquidity pool.\n\nExample: '0x1f98431c8ad98523631ae4a59f267346ea31f984'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "The DEX protocol where the swap occurred.\n\nExample: 'uniswap_v3'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POOL_ADDRESS": {"name": "POOL_ADDRESS", "description": "The liquidity pool contract address where the swap executed.\n\nExample: '0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POOL_NAME": {"name": "POOL_NAME", "description": "Human-readable name for the liquidity pool.\n\nExample: 'WETH/USDC 0.05%'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKENS": {"name": "TOKENS", "description": "JSON object containing token contract addresses in the pool.\n\nExample: {\"token0\": \"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2\", \"token1\": \"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\"}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOLS": {"name": "SYMBOLS", "description": "JSON object containing token symbols for the pool pair.\n\nExample: {\"token0\": \"WETH\", \"token1\": \"USDC\"}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECIMALS": {"name": "DECIMALS", "description": "JSON object containing decimal places for each token in the pool.\n\nExample: {\"token0\": 18, \"token1\": 6}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DIM_DEX_LIQUIDITY_POOLS_ID": {"name": "DIM_DEX_LIQUIDITY_POOLS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "DEX, LIQUIDITY, POOLS, LP, SWAPS"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/dex/gold/defi__dim_dex_liquidity_pools.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "persist_docs": {"relation": true, "columns": true}, "meta": {"database_tags": {"table": {"PURPOSE": "DEX, LIQUIDITY, POOLS, LP, SWAPS"}}}, "tags": ["gold", "defi", "dex", "curated"], "copy_grants": true, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018441.5324044, "relation_name": "polygon.defi.dim_dex_liquidity_pools", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'DEX, LIQUIDITY, POOLS, LP, SWAPS',\n } } },\n tags = ['gold','defi','dex','curated']\n) }}\n\nSELECT\n block_number AS creation_block,\n block_timestamp AS creation_time,\n tx_hash AS creation_tx,\n platform,\n protocol,\n version AS protocol_version,\n contract_address AS factory_address,\n pool_address,\n pool_name,\n tokens,\n symbols,\n decimals,\n complete_dex_liquidity_pools_id AS dim_dex_liquidity_pools_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n {{ ref('silver_dex__complete_dex_liquidity_pools') }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/gold/defi__dim_dex_liquidity_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {\n \"database_tags\": {\n \"table\": {\n \"PURPOSE\": \"DEX, LIQUIDITY, POOLS, LP, SWAPS\"\n }\n }\n },\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"defi\",\n \"dex\",\n \"curated\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'DEX, LIQUIDITY, POOLS, LP, SWAPS',\n } } },\n tags = ['gold','defi','dex','curated']\n) }}\n\nSELECT\n block_number AS creation_block,\n block_timestamp AS creation_time,\n tx_hash AS creation_tx,\n platform,\n protocol,\n version AS protocol_version,\n contract_address AS factory_address,\n pool_address,\n pool_name,\n tokens,\n symbols,\n decimals,\n complete_dex_liquidity_pools_id AS dim_dex_liquidity_pools_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n {{ ref('silver_dex__complete_dex_liquidity_pools') }}\n*/\n\n\n\nSELECT\n block_number AS creation_block,\n block_timestamp AS creation_time,\n tx_hash AS creation_tx,\n platform,\n protocol,\n version AS protocol_version,\n contract_address AS factory_address,\n pool_address,\n pool_name,\n tokens,\n symbols,\n decimals,\n complete_dex_liquidity_pools_id AS dim_dex_liquidity_pools_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n polygon.silver_dex.complete_dex_liquidity_pools", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__morpho_repayments": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__morpho_repayments", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/morpho/silver_lending__morpho_repayments.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/morpho/silver_lending__morpho_repayments.sql", "unique_id": "model.fsc_evm.silver_lending__morpho_repayments", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "morpho", "silver_lending__morpho_repayments"], "alias": "morpho_repayments", "checksum": {"name": "sha256", "checksum": "d5f78fa3a4ff6c5222187dd7724c2b23fc26976b0b7cc3e17a7b1512e3c654b0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "morpho"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "morpho"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "morpho"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018396.5127664, "relation_name": "polygon.silver_lending.morpho_repayments", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','morpho']\n) }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\nWITH morpho_blue_addresses AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'morpho_blue_address'\n),\n\ntraces AS (\n\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n from_address,\n to_address,\n LEFT(\n input,\n 10\n ) AS function_sig,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS segmented_input,\n CONCAT('0x', SUBSTR(segmented_input [0] :: STRING, 25)) AS loan_token,\n CONCAT('0x', SUBSTR(segmented_input [1] :: STRING, 25)) AS collateral_token,\n CONCAT('0x', SUBSTR(segmented_input [2] :: STRING, 25)) AS oracle_address,\n CONCAT('0x', SUBSTR(segmented_input [3] :: STRING, 25)) AS irm_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [4] :: STRING\n )\n ) AS lltv,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [5] :: STRING\n )\n ) AS amount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [6] :: STRING\n )\n ) AS shares,\n CONCAT('0x', SUBSTR(segmented_input [7] :: STRING, 25)) AS on_behalf_address,\n CONCAT('0x', SUBSTR(segmented_input [8] :: STRING, 25)) AS receiver_address,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature\n FROM\n {{ ref('core__fact_traces') }}\n WHERE\n to_address IN (\n SELECT\n contract_address\n FROM\n morpho_blue_addresses\n )\n AND function_sig = '0x20b76e81'\n AND trace_succeeded\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ntx_join AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n from_address,\n to_address AS contract_address,\n origin_from_address AS borrower_address,\n loan_token,\n collateral_token,\n amount,\n on_behalf_address,\n receiver_address,\n _call_id,\n modified_timestamp\n FROM\n traces\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t.contract_address,\n loan_token AS token_address,\n amount AS amount_unadj,\n on_behalf_address AS payer,\n borrower_address as borrower,\n t.contract_address AS protocol_market,\n m.protocol || '-' || m.version AS platform,\n m.protocol,\n m.version,\n t._call_id AS _id,\n t.modified_timestamp,\n 'Repay' AS event_name\nFROM\n tx_join t\n LEFT JOIN morpho_blue_addresses m\n ON m.contract_address = t.contract_address", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/morpho/silver_lending__morpho_repayments.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH morpho_blue_addresses AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x2501713a67a3dedde090e42759088a7ef37d4eab', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v3', 'aave_treasury'),\n \n ('0x794a61358d6845594f94dc1db02a252b5b4814ad', 'aave', 'v3', 'aave_version_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v2', 'aave_treasury'),\n \n ('0x8dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf', 'aave', 'v2', 'aave_version_address'),\n \n ('0x1bf0c2541f820e775182832f06c0b7fc27a25f67', 'morpho', 'v1', 'morpho_blue_address')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n type = 'morpho_blue_address'\n),\n\ntraces AS (\n\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n from_address,\n to_address,\n LEFT(\n input,\n 10\n ) AS function_sig,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS segmented_input,\n CONCAT('0x', SUBSTR(segmented_input [0] :: STRING, 25)) AS loan_token,\n CONCAT('0x', SUBSTR(segmented_input [1] :: STRING, 25)) AS collateral_token,\n CONCAT('0x', SUBSTR(segmented_input [2] :: STRING, 25)) AS oracle_address,\n CONCAT('0x', SUBSTR(segmented_input [3] :: STRING, 25)) AS irm_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [4] :: STRING\n )\n ) AS lltv,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [5] :: STRING\n )\n ) AS amount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [6] :: STRING\n )\n ) AS shares,\n CONCAT('0x', SUBSTR(segmented_input [7] :: STRING, 25)) AS on_behalf_address,\n CONCAT('0x', SUBSTR(segmented_input [8] :: STRING, 25)) AS receiver_address,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature\n FROM\n polygon.core.fact_traces\n WHERE\n to_address IN (\n SELECT\n contract_address\n FROM\n morpho_blue_addresses\n )\n AND function_sig = '0x20b76e81'\n AND trace_succeeded\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.morpho_repayments\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ntx_join AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n from_address,\n to_address AS contract_address,\n origin_from_address AS borrower_address,\n loan_token,\n collateral_token,\n amount,\n on_behalf_address,\n receiver_address,\n _call_id,\n modified_timestamp\n FROM\n traces\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t.contract_address,\n loan_token AS token_address,\n amount AS amount_unadj,\n on_behalf_address AS payer,\n borrower_address as borrower,\n t.contract_address AS protocol_market,\n m.protocol || '-' || m.version AS platform,\n m.protocol,\n m.version,\n t._call_id AS _id,\n t.modified_timestamp,\n 'Repay' AS event_name\nFROM\n tx_join t\n LEFT JOIN morpho_blue_addresses m\n ON m.contract_address = t.contract_address", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__morpho_borrows": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__morpho_borrows", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/morpho/silver_lending__morpho_borrows.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/morpho/silver_lending__morpho_borrows.sql", "unique_id": "model.fsc_evm.silver_lending__morpho_borrows", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "morpho", "silver_lending__morpho_borrows"], "alias": "morpho_borrows", "checksum": {"name": "sha256", "checksum": "97a420048d9ac944f2926b070373ae78fd68b45c49a41533039667e6d742f28e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "morpho"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "morpho"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "morpho"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018396.8245838, "relation_name": "polygon.silver_lending.morpho_borrows", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','morpho']\n) }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\nWITH morpho_blue_addresses AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'morpho_blue_address'\n),\n\ntraces AS (\n\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n from_address,\n to_address,\n LEFT(\n input,\n 10\n ) AS function_sig,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS segmented_input,\n CONCAT('0x', SUBSTR(segmented_input [0] :: STRING, 25)) AS loan_token,\n CONCAT('0x', SUBSTR(segmented_input [1] :: STRING, 25)) AS collateral_token,\n CONCAT('0x', SUBSTR(segmented_input [2] :: STRING, 25)) AS oracle_address,\n CONCAT('0x', SUBSTR(segmented_input [3] :: STRING, 25)) AS irm_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [4] :: STRING\n )\n ) AS lltv,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [5] :: STRING\n )\n ) AS amount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [6] :: STRING\n )\n ) AS shares,\n CONCAT('0x', SUBSTR(segmented_input [7] :: STRING, 25)) AS on_behalf_address,\n CONCAT('0x', SUBSTR(segmented_input [8] :: STRING, 25)) AS receiver_address,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature\n FROM\n {{ ref('core__fact_traces') }}\n WHERE\n to_address IN (\n SELECT\n contract_address\n FROM\n morpho_blue_addresses\n )\n AND function_sig = '0x50d8cd4b'\n AND trace_succeeded\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ntx_join AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n from_address,\n to_address AS contract_address,\n origin_from_address AS borrower_address,\n loan_token,\n collateral_token,\n amount,\n on_behalf_address,\n receiver_address,\n _call_id,\n modified_timestamp\n FROM\n traces\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t.contract_address,\n loan_token AS token_address,\n amount AS amount_unadj,\n t.contract_address AS protocol_market,\n borrower_address AS borrower,\n m.protocol || '-' || m.version AS platform,\n m.protocol,\n m.version,\n t._call_id AS _id,\n t.modified_timestamp,\n 'Borrow' AS event_name\nFROM\n tx_join t\n LEFT JOIN morpho_blue_addresses m\n ON m.contract_address = t.contract_address", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/morpho/silver_lending__morpho_borrows.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH morpho_blue_addresses AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x2501713a67a3dedde090e42759088a7ef37d4eab', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v3', 'aave_treasury'),\n \n ('0x794a61358d6845594f94dc1db02a252b5b4814ad', 'aave', 'v3', 'aave_version_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v2', 'aave_treasury'),\n \n ('0x8dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf', 'aave', 'v2', 'aave_version_address'),\n \n ('0x1bf0c2541f820e775182832f06c0b7fc27a25f67', 'morpho', 'v1', 'morpho_blue_address')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n type = 'morpho_blue_address'\n),\n\ntraces AS (\n\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n from_address,\n to_address,\n LEFT(\n input,\n 10\n ) AS function_sig,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS segmented_input,\n CONCAT('0x', SUBSTR(segmented_input [0] :: STRING, 25)) AS loan_token,\n CONCAT('0x', SUBSTR(segmented_input [1] :: STRING, 25)) AS collateral_token,\n CONCAT('0x', SUBSTR(segmented_input [2] :: STRING, 25)) AS oracle_address,\n CONCAT('0x', SUBSTR(segmented_input [3] :: STRING, 25)) AS irm_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [4] :: STRING\n )\n ) AS lltv,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [5] :: STRING\n )\n ) AS amount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [6] :: STRING\n )\n ) AS shares,\n CONCAT('0x', SUBSTR(segmented_input [7] :: STRING, 25)) AS on_behalf_address,\n CONCAT('0x', SUBSTR(segmented_input [8] :: STRING, 25)) AS receiver_address,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature\n FROM\n polygon.core.fact_traces\n WHERE\n to_address IN (\n SELECT\n contract_address\n FROM\n morpho_blue_addresses\n )\n AND function_sig = '0x50d8cd4b'\n AND trace_succeeded\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.morpho_borrows\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ntx_join AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n from_address,\n to_address AS contract_address,\n origin_from_address AS borrower_address,\n loan_token,\n collateral_token,\n amount,\n on_behalf_address,\n receiver_address,\n _call_id,\n modified_timestamp\n FROM\n traces\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t.contract_address,\n loan_token AS token_address,\n amount AS amount_unadj,\n t.contract_address AS protocol_market,\n borrower_address AS borrower,\n m.protocol || '-' || m.version AS platform,\n m.protocol,\n m.version,\n t._call_id AS _id,\n t.modified_timestamp,\n 'Borrow' AS event_name\nFROM\n tx_join t\n LEFT JOIN morpho_blue_addresses m\n ON m.contract_address = t.contract_address", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__morpho_flashloans": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__morpho_flashloans", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/morpho/silver_lending__morpho_flashloans.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/morpho/silver_lending__morpho_flashloans.sql", "unique_id": "model.fsc_evm.silver_lending__morpho_flashloans", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "morpho", "silver_lending__morpho_flashloans"], "alias": "morpho_flashloans", "checksum": {"name": "sha256", "checksum": "ac3315772eb874b624b69ae392826033d00dc0fae901db936a83d6b2df0537b7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "morpho"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "morpho"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "morpho"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018397.139646, "relation_name": "polygon.silver_lending.morpho_flashloans", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','morpho']\n) }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\nWITH morpho_blue_addresses AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'morpho_blue_address'\n),\n\nflashloan AS(\n\n SELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS caller,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS flashloan_quantity,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n WHERE\n topics [0] :: STRING = '0xc76f1b4fe4396ac07a9fa55a415d4ca430e72651d37d3401f3bed7cb13fc4f12'\n AND contract_address IN (\n SELECT\n contract_address\n FROM\n morpho_blue_addresses\n )\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n f.contract_address,\n f.contract_address AS protocol_market,\n caller AS initiator,\n null as target,\n token AS token_address,\n flashloan_quantity AS flashloan_amount_unadj,\n null as premium_amount_unadj,\n m.protocol || '-' || m.version AS platform,\n m.protocol,\n m.version,\n f._log_id,\n f.modified_timestamp,\n 'Flashloan' AS event_name\nFROM\n flashloan f\n LEFT JOIN morpho_blue_addresses m\n ON m.contract_address = f.contract_address\nwhere caller <> token", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/morpho/silver_lending__morpho_flashloans.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH morpho_blue_addresses AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x2501713a67a3dedde090e42759088a7ef37d4eab', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v3', 'aave_treasury'),\n \n ('0x794a61358d6845594f94dc1db02a252b5b4814ad', 'aave', 'v3', 'aave_version_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v2', 'aave_treasury'),\n \n ('0x8dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf', 'aave', 'v2', 'aave_version_address'),\n \n ('0x1bf0c2541f820e775182832f06c0b7fc27a25f67', 'morpho', 'v1', 'morpho_blue_address')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n type = 'morpho_blue_address'\n),\n\nflashloan AS(\n\n SELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS caller,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS flashloan_quantity,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n WHERE\n topics [0] :: STRING = '0xc76f1b4fe4396ac07a9fa55a415d4ca430e72651d37d3401f3bed7cb13fc4f12'\n AND contract_address IN (\n SELECT\n contract_address\n FROM\n morpho_blue_addresses\n )\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.morpho_flashloans\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n f.contract_address,\n f.contract_address AS protocol_market,\n caller AS initiator,\n null as target,\n token AS token_address,\n flashloan_quantity AS flashloan_amount_unadj,\n null as premium_amount_unadj,\n m.protocol || '-' || m.version AS platform,\n m.protocol,\n m.version,\n f._log_id,\n f.modified_timestamp,\n 'Flashloan' AS event_name\nFROM\n flashloan f\n LEFT JOIN morpho_blue_addresses m\n ON m.contract_address = f.contract_address\nwhere caller <> token", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__morpho_deposits": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__morpho_deposits", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/morpho/silver_lending__morpho_deposits.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/morpho/silver_lending__morpho_deposits.sql", "unique_id": "model.fsc_evm.silver_lending__morpho_deposits", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "morpho", "silver_lending__morpho_deposits"], "alias": "morpho_deposits", "checksum": {"name": "sha256", "checksum": "4ea38df69325abd26d38bee75f62a390a89dac09ce609802cc50b71d646ebb22"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "morpho"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "morpho"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "morpho"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018397.453105, "relation_name": "polygon.silver_lending.morpho_deposits", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','morpho']\n) }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\nWITH morpho_blue_addresses AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'morpho_blue_address'\n),\n\ntraces AS (\n\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n from_address,\n to_address,\n LEFT(\n input,\n 10\n ) AS function_sig,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS segmented_input,\n CONCAT('0x', SUBSTR(segmented_input [0] :: STRING, 25)) AS loan_token,\n CONCAT('0x', SUBSTR(segmented_input [1] :: STRING, 25)) AS collateral_token,\n CONCAT('0x', SUBSTR(segmented_input [2] :: STRING, 25)) AS oracle_address,\n CONCAT('0x', SUBSTR(segmented_input [3] :: STRING, 25)) AS irm_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [4] :: STRING\n )\n ) AS lltv,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [5] :: STRING\n )\n ) AS amount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [6] :: STRING\n )\n ) AS shares,\n CONCAT('0x', SUBSTR(segmented_input [7] :: STRING, 25)) AS on_behalf_address,\n CONCAT('0x', SUBSTR(segmented_input [8] :: STRING, 25)) AS receiver_address,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature\n FROM\n {{ ref('core__fact_traces') }}\n WHERE\n to_address IN (\n SELECT\n contract_address\n FROM\n morpho_blue_addresses\n )\n AND function_sig = '0xa99aad89'\n AND trace_succeeded\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ntx_join AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n from_address,\n to_address AS contract_address,\n origin_from_address AS depositor_address,\n loan_token,\n collateral_token,\n amount,\n on_behalf_address,\n receiver_address,\n _call_id,\n modified_timestamp\n FROM\n traces\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t.contract_address,\n loan_token AS token_address,\n amount AS amount_unadj,\n depositor_address AS depositor,\n t.contract_address AS protocol_market,\n m.protocol || '-' || m.version AS platform,\n m.protocol,\n m.version,\n t._call_id AS _id,\n t.modified_timestamp,\n 'Deposit' AS event_name\nFROM\n tx_join t\n LEFT JOIN morpho_blue_addresses m\n ON m.contract_address = t.contract_address", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/morpho/silver_lending__morpho_deposits.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH morpho_blue_addresses AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x2501713a67a3dedde090e42759088a7ef37d4eab', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v3', 'aave_treasury'),\n \n ('0x794a61358d6845594f94dc1db02a252b5b4814ad', 'aave', 'v3', 'aave_version_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v2', 'aave_treasury'),\n \n ('0x8dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf', 'aave', 'v2', 'aave_version_address'),\n \n ('0x1bf0c2541f820e775182832f06c0b7fc27a25f67', 'morpho', 'v1', 'morpho_blue_address')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n type = 'morpho_blue_address'\n),\n\ntraces AS (\n\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n from_address,\n to_address,\n LEFT(\n input,\n 10\n ) AS function_sig,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS segmented_input,\n CONCAT('0x', SUBSTR(segmented_input [0] :: STRING, 25)) AS loan_token,\n CONCAT('0x', SUBSTR(segmented_input [1] :: STRING, 25)) AS collateral_token,\n CONCAT('0x', SUBSTR(segmented_input [2] :: STRING, 25)) AS oracle_address,\n CONCAT('0x', SUBSTR(segmented_input [3] :: STRING, 25)) AS irm_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [4] :: STRING\n )\n ) AS lltv,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [5] :: STRING\n )\n ) AS amount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [6] :: STRING\n )\n ) AS shares,\n CONCAT('0x', SUBSTR(segmented_input [7] :: STRING, 25)) AS on_behalf_address,\n CONCAT('0x', SUBSTR(segmented_input [8] :: STRING, 25)) AS receiver_address,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature\n FROM\n polygon.core.fact_traces\n WHERE\n to_address IN (\n SELECT\n contract_address\n FROM\n morpho_blue_addresses\n )\n AND function_sig = '0xa99aad89'\n AND trace_succeeded\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.morpho_deposits\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ntx_join AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n from_address,\n to_address AS contract_address,\n origin_from_address AS depositor_address,\n loan_token,\n collateral_token,\n amount,\n on_behalf_address,\n receiver_address,\n _call_id,\n modified_timestamp\n FROM\n traces\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t.contract_address,\n loan_token AS token_address,\n amount AS amount_unadj,\n depositor_address AS depositor,\n t.contract_address AS protocol_market,\n m.protocol || '-' || m.version AS platform,\n m.protocol,\n m.version,\n t._call_id AS _id,\n t.modified_timestamp,\n 'Deposit' AS event_name\nFROM\n tx_join t\n LEFT JOIN morpho_blue_addresses m\n ON m.contract_address = t.contract_address", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__morpho_withdraws": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__morpho_withdraws", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/morpho/silver_lending__morpho_withdraws.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/morpho/silver_lending__morpho_withdraws.sql", "unique_id": "model.fsc_evm.silver_lending__morpho_withdraws", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "morpho", "silver_lending__morpho_withdraws"], "alias": "morpho_withdraws", "checksum": {"name": "sha256", "checksum": "36ccc006477040004c24b4a203bea216f95dd795f9443a692e72a6a562639317"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "morpho"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "morpho"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "morpho"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018397.767266, "relation_name": "polygon.silver_lending.morpho_withdraws", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','morpho']\n) }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\nWITH morpho_blue_addresses AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'morpho_blue_address'\n),\n\ntraces AS (\n\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n from_address,\n to_address,\n LEFT(\n input,\n 10\n ) AS function_sig,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS segmented_input,\n CONCAT('0x', SUBSTR(segmented_input [0] :: STRING, 25)) AS loan_token,\n CONCAT('0x', SUBSTR(segmented_input [1] :: STRING, 25)) AS collateral_token,\n CONCAT('0x', SUBSTR(segmented_input [2] :: STRING, 25)) AS oracle_address,\n CONCAT('0x', SUBSTR(segmented_input [3] :: STRING, 25)) AS irm_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [4] :: STRING\n )\n ) AS lltv,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [5] :: STRING\n )\n ) AS amount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [6] :: STRING\n )\n ) AS shares,\n CONCAT('0x', SUBSTR(segmented_input [7] :: STRING, 25)) AS on_behalf_address,\n CONCAT('0x', SUBSTR(segmented_input [8] :: STRING, 25)) AS receiver_address,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature\n FROM\n {{ ref('core__fact_traces') }}\n WHERE\n to_address IN (\n SELECT\n contract_address\n FROM\n morpho_blue_addresses\n )\n AND function_sig = '0x5c2bea49'\n AND trace_succeeded\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ntx_join AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n from_address,\n to_address AS contract_address,\n origin_from_address AS depositor_address,\n loan_token,\n collateral_token,\n amount,\n on_behalf_address,\n receiver_address,\n _call_id,\n modified_timestamp\n FROM\n traces\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t.contract_address,\n loan_token AS token_address,\n amount AS amount_unadj,\n depositor_address AS depositor,\n t.contract_address AS protocol_market,\n m.protocol || '-' || m.version AS platform,\n m.protocol,\n m.version,\n t._call_id AS _id,\n t.modified_timestamp,\n 'Withdraw' AS event_name\nFROM\n tx_join t\n LEFT JOIN morpho_blue_addresses m\n ON m.contract_address = t.contract_address", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/morpho/silver_lending__morpho_withdraws.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH morpho_blue_addresses AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x2501713a67a3dedde090e42759088a7ef37d4eab', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v3', 'aave_treasury'),\n \n ('0x794a61358d6845594f94dc1db02a252b5b4814ad', 'aave', 'v3', 'aave_version_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v2', 'aave_treasury'),\n \n ('0x8dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf', 'aave', 'v2', 'aave_version_address'),\n \n ('0x1bf0c2541f820e775182832f06c0b7fc27a25f67', 'morpho', 'v1', 'morpho_blue_address')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n type = 'morpho_blue_address'\n),\n\ntraces AS (\n\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n from_address,\n to_address,\n LEFT(\n input,\n 10\n ) AS function_sig,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS segmented_input,\n CONCAT('0x', SUBSTR(segmented_input [0] :: STRING, 25)) AS loan_token,\n CONCAT('0x', SUBSTR(segmented_input [1] :: STRING, 25)) AS collateral_token,\n CONCAT('0x', SUBSTR(segmented_input [2] :: STRING, 25)) AS oracle_address,\n CONCAT('0x', SUBSTR(segmented_input [3] :: STRING, 25)) AS irm_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [4] :: STRING\n )\n ) AS lltv,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [5] :: STRING\n )\n ) AS amount,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input [6] :: STRING\n )\n ) AS shares,\n CONCAT('0x', SUBSTR(segmented_input [7] :: STRING, 25)) AS on_behalf_address,\n CONCAT('0x', SUBSTR(segmented_input [8] :: STRING, 25)) AS receiver_address,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature\n FROM\n polygon.core.fact_traces\n WHERE\n to_address IN (\n SELECT\n contract_address\n FROM\n morpho_blue_addresses\n )\n AND function_sig = '0x5c2bea49'\n AND trace_succeeded\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.morpho_withdraws\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ntx_join AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n from_address,\n to_address AS contract_address,\n origin_from_address AS depositor_address,\n loan_token,\n collateral_token,\n amount,\n on_behalf_address,\n receiver_address,\n _call_id,\n modified_timestamp\n FROM\n traces\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t.contract_address,\n loan_token AS token_address,\n amount AS amount_unadj,\n depositor_address AS depositor,\n t.contract_address AS protocol_market,\n m.protocol || '-' || m.version AS platform,\n m.protocol,\n m.version,\n t._call_id AS _id,\n t.modified_timestamp,\n 'Withdraw' AS event_name\nFROM\n tx_join t\n LEFT JOIN morpho_blue_addresses m\n ON m.contract_address = t.contract_address", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__morpho_liquidations": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__morpho_liquidations", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/morpho/silver_lending__morpho_liquidations.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/morpho/silver_lending__morpho_liquidations.sql", "unique_id": "model.fsc_evm.silver_lending__morpho_liquidations", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "morpho", "silver_lending__morpho_liquidations"], "alias": "morpho_liquidations", "checksum": {"name": "sha256", "checksum": "a40ceb85e971a0c7ff7ef104ba74926b7c7eee3637cdc449d6ff6492d34a503a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "morpho"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "morpho"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "morpho"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018398.0811996, "relation_name": "polygon.silver_lending.morpho_liquidations", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','morpho']\n) }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\nWITH morpho_blue_addresses AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'morpho_blue_address'\n),\n\ntraces AS (\n\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n from_address,\n to_address,\n LEFT(\n input,\n 10\n ) AS function_sig,\n len(input) AS segmented_input_len,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS segmented_input,\n CONCAT('0x', SUBSTR(segmented_input [0] :: STRING, 25)) AS loan_token,\n CONCAT('0x', SUBSTR(segmented_input [1] :: STRING, 25)) AS collateral_token,\n CONCAT('0x', SUBSTR(segmented_input [2] :: STRING, 25)) AS oracle_address,\n CONCAT('0x', SUBSTR(segmented_input [3] :: STRING, 25)) AS irm_address,\n CONCAT('0x', SUBSTR(segmented_input [5] :: STRING, 25)) AS borrower,\n ROW_NUMBER() over (\n PARTITION BY tx_hash\n ORDER BY\n trace_index\n ) AS trace_index_order,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }}\n WHERE\n to_address IN (\n SELECT\n contract_address\n FROM\n morpho_blue_addresses\n )\n AND function_sig = '0xd8eabcb8'\n AND trace_succeeded\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nlogs AS(\n SELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.event_index,\n ROW_NUMBER() over (\n PARTITION BY l.tx_hash\n ORDER BY\n l.event_index\n ) AS event_index_order,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS caller,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS repay_assets,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER AS seized_assets,\n COALESCE(\n l.origin_to_address,\n l.contract_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n WHERE\n topics [0] :: STRING = '0xa4946ede45d0c6f06a0f5ce92c9ad3b4751452d2fe0e25010783bcab57a67e41'\n AND l.contract_address IN (\n SELECT\n contract_address\n FROM\n morpho_blue_addresses\n )\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n traces\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n l.contract_address AS protocol_market,\n l.caller AS liquidator,\n l.borrower,\n t.loan_token AS debt_token,\n l.repay_assets AS repaid_amount_unadj,\n t.collateral_token AS collateral_token,\n l.seized_assets AS liquidated_amount_unadj,\n m.protocol || '-' || m.version AS platform,\n m.protocol,\n m.version,\n t._call_id AS _id,\n t.modified_timestamp,\n 'Liquidate' AS event_name\nFROM\n traces t\n INNER JOIN logs l\n ON l.tx_hash = t.tx_hash\n AND l.event_index_order = t.trace_index_order\n LEFT JOIN morpho_blue_addresses m\n ON m.contract_address = l.contract_address", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/morpho/silver_lending__morpho_liquidations.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH morpho_blue_addresses AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x2501713a67a3dedde090e42759088a7ef37d4eab', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v3', 'aave_treasury'),\n \n ('0x794a61358d6845594f94dc1db02a252b5b4814ad', 'aave', 'v3', 'aave_version_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v2', 'aave_treasury'),\n \n ('0x8dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf', 'aave', 'v2', 'aave_version_address'),\n \n ('0x1bf0c2541f820e775182832f06c0b7fc27a25f67', 'morpho', 'v1', 'morpho_blue_address')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n type = 'morpho_blue_address'\n),\n\ntraces AS (\n\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n from_address,\n to_address,\n LEFT(\n input,\n 10\n ) AS function_sig,\n len(input) AS segmented_input_len,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS segmented_input,\n CONCAT('0x', SUBSTR(segmented_input [0] :: STRING, 25)) AS loan_token,\n CONCAT('0x', SUBSTR(segmented_input [1] :: STRING, 25)) AS collateral_token,\n CONCAT('0x', SUBSTR(segmented_input [2] :: STRING, 25)) AS oracle_address,\n CONCAT('0x', SUBSTR(segmented_input [3] :: STRING, 25)) AS irm_address,\n CONCAT('0x', SUBSTR(segmented_input [5] :: STRING, 25)) AS borrower,\n ROW_NUMBER() over (\n PARTITION BY tx_hash\n ORDER BY\n trace_index\n ) AS trace_index_order,\n concat_ws(\n '-',\n block_number,\n tx_position,\n CONCAT(\n TYPE,\n '_',\n trace_address\n )\n ) AS _call_id,\n modified_timestamp\n FROM\n polygon.core.fact_traces\n WHERE\n to_address IN (\n SELECT\n contract_address\n FROM\n morpho_blue_addresses\n )\n AND function_sig = '0xd8eabcb8'\n AND trace_succeeded\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.morpho_liquidations\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nlogs AS(\n SELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.event_index,\n ROW_NUMBER() over (\n PARTITION BY l.tx_hash\n ORDER BY\n l.event_index\n ) AS event_index_order,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS caller,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS repay_assets,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER AS seized_assets,\n COALESCE(\n l.origin_to_address,\n l.contract_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n WHERE\n topics [0] :: STRING = '0xa4946ede45d0c6f06a0f5ce92c9ad3b4751452d2fe0e25010783bcab57a67e41'\n AND l.contract_address IN (\n SELECT\n contract_address\n FROM\n morpho_blue_addresses\n )\n AND tx_hash IN (\n SELECT\n tx_hash\n FROM\n traces\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.morpho_liquidations\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n l.contract_address AS protocol_market,\n l.caller AS liquidator,\n l.borrower,\n t.loan_token AS debt_token,\n l.repay_assets AS repaid_amount_unadj,\n t.collateral_token AS collateral_token,\n l.seized_assets AS liquidated_amount_unadj,\n m.protocol || '-' || m.version AS platform,\n m.protocol,\n m.version,\n t._call_id AS _id,\n t.modified_timestamp,\n 'Liquidate' AS event_name\nFROM\n traces t\n INNER JOIN logs l\n ON l.tx_hash = t.tx_hash\n AND l.event_index_order = t.trace_index_order\n LEFT JOIN morpho_blue_addresses m\n ON m.contract_address = l.contract_address", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__comp_v3_withdraws": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__comp_v3_withdraws", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/compound_v3/silver_lending__comp_v3_withdraws.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/compound_v3/silver_lending__comp_v3_withdraws.sql", "unique_id": "model.fsc_evm.silver_lending__comp_v3_withdraws", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "compound_v3", "silver_lending__comp_v3_withdraws"], "alias": "comp_v3_withdraws", "checksum": {"name": "sha256", "checksum": "1a71d934b624c6cf598eefe38d79fac479bde8c07af10e007d292ca61fa8601b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "comp_v3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "comp_v3"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "comp_v3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018398.3935578, "relation_name": "polygon.silver_lending.comp_v3_withdraws", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','comp_v3']\n) }}\n\nWITH comp_assets AS (\n\n SELECT\n compound_market_address,\n compound_market_name,\n compound_market_symbol,\n compound_market_decimals,\n underlying_asset_address,\n underlying_asset_name,\n protocol,\n version,\n platform\n FROM\n {{ ref('silver_lending__comp_v3_asset_details') }}\n),\nwithdraw AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n l.contract_address AS compound_market,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS token_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS withdraw_amount,\n origin_from_address AS depositor_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n WHERE\n topics [0] = '0xd6d480d5b3068db003533b170d67561494d72e3bf9fa40a266471351ebba9e16' --WithdrawCollateral\n AND l.contract_address IN (\n SELECT\n DISTINCT(compound_market_address)\n FROM\n comp_assets\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nborrow AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS asset,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS src_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS to_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS borrow_amount,\n origin_from_address AS borrower_address,\n C.compound_market_name AS NAME,\n C.compound_market_symbol AS symbol,\n C.compound_market_decimals AS decimals,\n C.underlying_asset_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n LEFT JOIN comp_assets C\n ON asset = C.compound_market_address\n WHERE\n topics [0] = '0x9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb' --withdrawl\n AND l.contract_address IN (\n SELECT\n DISTINCT(compound_market_address)\n FROM\n comp_assets\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nborrows_checks as (\nselect\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n to_address,\n from_address,\n amount\nfrom\n {{ ref('core__ez_token_transfers') }}\nwhere \n tx_hash in (select distinct tx_hash from borrow)\n and to_address = '0x0000000000000000000000000000000000000000'\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nfinal_base_wd as (\nSELECT\n w.tx_hash,\n w.block_number,\n w.block_timestamp,\n w.event_index,\n w.origin_from_address,\n w.origin_to_address,\n w.origin_function_signature,\n w.contract_address,\n w.asset AS protocol_market,\n w.borrower_address AS depositor,\n A.underlying_asset_address AS token_address,\n w.borrow_amount AS amount_unadj,\n w.symbol AS itoken_symbol,\n A.protocol,\n A.version,\n A.platform,\n w._log_id,\n w.modified_timestamp,\n 'Withdraw' AS event_name\nFROM\n borrow w\n LEFT JOIN comp_assets A\n ON w.asset = A.compound_market_address\n LEFT JOIN borrows_checks B\n ON w.tx_hash = B.tx_hash\n and w.borrower_address = b.from_address\n and w.asset=b.contract_address\n WHERE b.to_address IS NOT NULL\n),\nwithdraw_union as (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n compound_market as protocol_market,\n depositor_address as depositor,\n w.token_address,\n withdraw_amount AS amount_unadj,\n A.compound_market_symbol AS itoken_symbol,\n A.protocol,\n A.version,\n A.platform,\n _log_id,\n modified_timestamp,\n 'WithdrawCollateral' AS event_name\n FROM\n withdraw w\n LEFT JOIN comp_assets A\n ON w.compound_market = A.compound_market_address\n UNION ALL\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n protocol_market,\n depositor,\n A.underlying_asset_address AS token_address,\n amount_unadj,\n A.compound_market_symbol AS itoken_symbol,\n A.protocol,\n A.version,\n A.platform,\n _log_id,\n modified_timestamp,\n 'Withdraw' AS event_name\n FROM\n final_base_wd w\n LEFT JOIN comp_assets A\n ON w.protocol_market = A.compound_market_address\n)\nSELECT\n *\nFROM\n withdraw_union\nQUALIFY ROW_NUMBER() OVER (PARTITION BY _log_id ORDER BY modified_timestamp DESC) = 1", "language": "sql", "refs": [{"name": "silver_lending__comp_v3_asset_details", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__ez_token_transfers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__comp_v3_asset_details", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__ez_token_transfers"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/compound_v3/silver_lending__comp_v3_withdraws.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH comp_assets AS (\n\n SELECT\n compound_market_address,\n compound_market_name,\n compound_market_symbol,\n compound_market_decimals,\n underlying_asset_address,\n underlying_asset_name,\n protocol,\n version,\n platform\n FROM\n polygon.silver_lending.comp_v3_asset_details\n),\nwithdraw AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n l.contract_address AS compound_market,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS token_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS withdraw_amount,\n origin_from_address AS depositor_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n WHERE\n topics [0] = '0xd6d480d5b3068db003533b170d67561494d72e3bf9fa40a266471351ebba9e16' --WithdrawCollateral\n AND l.contract_address IN (\n SELECT\n DISTINCT(compound_market_address)\n FROM\n comp_assets\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.comp_v3_withdraws\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nborrow AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS asset,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS src_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS to_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS borrow_amount,\n origin_from_address AS borrower_address,\n C.compound_market_name AS NAME,\n C.compound_market_symbol AS symbol,\n C.compound_market_decimals AS decimals,\n C.underlying_asset_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n LEFT JOIN comp_assets C\n ON asset = C.compound_market_address\n WHERE\n topics [0] = '0x9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb' --withdrawl\n AND l.contract_address IN (\n SELECT\n DISTINCT(compound_market_address)\n FROM\n comp_assets\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.comp_v3_withdraws\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nborrows_checks as (\nselect\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n to_address,\n from_address,\n amount\nfrom\n polygon.core.ez_token_transfers\nwhere \n tx_hash in (select distinct tx_hash from borrow)\n and to_address = '0x0000000000000000000000000000000000000000'\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.comp_v3_withdraws\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nfinal_base_wd as (\nSELECT\n w.tx_hash,\n w.block_number,\n w.block_timestamp,\n w.event_index,\n w.origin_from_address,\n w.origin_to_address,\n w.origin_function_signature,\n w.contract_address,\n w.asset AS protocol_market,\n w.borrower_address AS depositor,\n A.underlying_asset_address AS token_address,\n w.borrow_amount AS amount_unadj,\n w.symbol AS itoken_symbol,\n A.protocol,\n A.version,\n A.platform,\n w._log_id,\n w.modified_timestamp,\n 'Withdraw' AS event_name\nFROM\n borrow w\n LEFT JOIN comp_assets A\n ON w.asset = A.compound_market_address\n LEFT JOIN borrows_checks B\n ON w.tx_hash = B.tx_hash\n and w.borrower_address = b.from_address\n and w.asset=b.contract_address\n WHERE b.to_address IS NOT NULL\n),\nwithdraw_union as (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n compound_market as protocol_market,\n depositor_address as depositor,\n w.token_address,\n withdraw_amount AS amount_unadj,\n A.compound_market_symbol AS itoken_symbol,\n A.protocol,\n A.version,\n A.platform,\n _log_id,\n modified_timestamp,\n 'WithdrawCollateral' AS event_name\n FROM\n withdraw w\n LEFT JOIN comp_assets A\n ON w.compound_market = A.compound_market_address\n UNION ALL\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n protocol_market,\n depositor,\n A.underlying_asset_address AS token_address,\n amount_unadj,\n A.compound_market_symbol AS itoken_symbol,\n A.protocol,\n A.version,\n A.platform,\n _log_id,\n modified_timestamp,\n 'Withdraw' AS event_name\n FROM\n final_base_wd w\n LEFT JOIN comp_assets A\n ON w.protocol_market = A.compound_market_address\n)\nSELECT\n *\nFROM\n withdraw_union\nQUALIFY ROW_NUMBER() OVER (PARTITION BY _log_id ORDER BY modified_timestamp DESC) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__comp_v3_liquidations": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__comp_v3_liquidations", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/compound_v3/silver_lending__comp_v3_liquidations.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/compound_v3/silver_lending__comp_v3_liquidations.sql", "unique_id": "model.fsc_evm.silver_lending__comp_v3_liquidations", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "compound_v3", "silver_lending__comp_v3_liquidations"], "alias": "comp_v3_liquidations", "checksum": {"name": "sha256", "checksum": "e65c1fe9d679e3bd565af541959d6943dbc6be73a228d80d8259233a71708608"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "comp_v3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "comp_v3"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "comp_v3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018398.7084408, "relation_name": "polygon.silver_lending.comp_v3_liquidations", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','comp_v3']\n) }}\n\nWITH comp_assets AS (\n\n SELECT\n compound_market_address,\n compound_market_name,\n compound_market_symbol,\n compound_market_decimals,\n underlying_asset_address,\n underlying_asset_name,\n protocol,\n version,\n platform\n FROM\n {{ ref('silver_lending__comp_v3_asset_details') }}\n),\nliquidations AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n l.contract_address AS compound_market,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS collateral_token,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS absorber,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS collateral_absorbed,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS usd_value,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n WHERE\n topics [0] = '0x9850ab1af75177e4a9201c65a2cf7976d5d28e40ef63494b44366f86b2f9412e' --AbsorbCollateral\n AND l.contract_address IN (\n SELECT\n DISTINCT(compound_market_address)\n FROM\n comp_assets\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nrepayments AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n l.contract_address AS compound_market,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS absorber,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS collateral_token,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS repaid_amount_unadj,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n WHERE\n topics [0] = '0x428a71022c65d48a5617ad1aa0b2ec7f865096caee9b5cd593fe1d83f01e36ca' --BuyCollateral\n AND l.contract_address IN (\n SELECT\n DISTINCT(compound_market_address)\n FROM\n comp_assets\n )\n AND tx_hash in (select tx_hash from liquidations)\n AND tx_succeeded\n)\nSELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n l.compound_market as protocol_market,\n l.absorber as liquidator,\n l.borrower,\n l.collateral_token,\n collateral_absorbed AS liquidated_amount_unadj,\n r.repaid_amount_unadj,\n A.underlying_asset_address AS debt_token,\n A.protocol,\n A.version,\n A.platform,\n l._log_id,\n l.modified_timestamp,\n 'AbsorbCollateral' AS event_name\nFROM\n liquidations l\n LEFT JOIN comp_assets A\n ON l.compound_market = A.compound_market_address \n LEFT JOIN repayments r\n ON l.tx_hash = r.tx_hash\n AND l.absorber = r.absorber\n AND l.collateral_token = r.collateral_token\nqualify(ROW_NUMBER() over(PARTITION BY l._log_id\nORDER BY\n l.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__comp_v3_asset_details", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__comp_v3_asset_details", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/compound_v3/silver_lending__comp_v3_liquidations.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH comp_assets AS (\n\n SELECT\n compound_market_address,\n compound_market_name,\n compound_market_symbol,\n compound_market_decimals,\n underlying_asset_address,\n underlying_asset_name,\n protocol,\n version,\n platform\n FROM\n polygon.silver_lending.comp_v3_asset_details\n),\nliquidations AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n l.contract_address AS compound_market,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS collateral_token,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS absorber,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS collateral_absorbed,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS usd_value,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n WHERE\n topics [0] = '0x9850ab1af75177e4a9201c65a2cf7976d5d28e40ef63494b44366f86b2f9412e' --AbsorbCollateral\n AND l.contract_address IN (\n SELECT\n DISTINCT(compound_market_address)\n FROM\n comp_assets\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.comp_v3_liquidations\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nrepayments AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n l.contract_address AS compound_market,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS absorber,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS collateral_token,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS repaid_amount_unadj,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n WHERE\n topics [0] = '0x428a71022c65d48a5617ad1aa0b2ec7f865096caee9b5cd593fe1d83f01e36ca' --BuyCollateral\n AND l.contract_address IN (\n SELECT\n DISTINCT(compound_market_address)\n FROM\n comp_assets\n )\n AND tx_hash in (select tx_hash from liquidations)\n AND tx_succeeded\n)\nSELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n l.compound_market as protocol_market,\n l.absorber as liquidator,\n l.borrower,\n l.collateral_token,\n collateral_absorbed AS liquidated_amount_unadj,\n r.repaid_amount_unadj,\n A.underlying_asset_address AS debt_token,\n A.protocol,\n A.version,\n A.platform,\n l._log_id,\n l.modified_timestamp,\n 'AbsorbCollateral' AS event_name\nFROM\n liquidations l\n LEFT JOIN comp_assets A\n ON l.compound_market = A.compound_market_address \n LEFT JOIN repayments r\n ON l.tx_hash = r.tx_hash\n AND l.absorber = r.absorber\n AND l.collateral_token = r.collateral_token\nqualify(ROW_NUMBER() over(PARTITION BY l._log_id\nORDER BY\n l.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__comp_v3_repayments": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__comp_v3_repayments", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/compound_v3/silver_lending__comp_v3_repayments.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/compound_v3/silver_lending__comp_v3_repayments.sql", "unique_id": "model.fsc_evm.silver_lending__comp_v3_repayments", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "compound_v3", "silver_lending__comp_v3_repayments"], "alias": "comp_v3_repayments", "checksum": {"name": "sha256", "checksum": "a379f194a1207998b5548aafbbccf8f0ee0cd4c26312eeb61a100136af37a01b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "comp_v3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "comp_v3"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "comp_v3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018399.023267, "relation_name": "polygon.silver_lending.comp_v3_repayments", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','comp_v3']\n) }}\n\nWITH comp_assets AS (\n\n SELECT\n compound_market_address,\n compound_market_name,\n compound_market_symbol,\n compound_market_decimals,\n underlying_asset_address,\n underlying_asset_name,\n protocol,\n version,\n platform\n FROM\n {{ ref('silver_lending__comp_v3_asset_details') }}\n),\nrepayments AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n l.contract_address AS asset,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS repayer,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS usd_value,\n origin_from_address AS depositor,\n compound_market_name,\n compound_market_symbol,\n compound_market_decimals,\n C.underlying_asset_address AS underlying_asset,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n LEFT JOIN comp_assets C\n ON contract_address = C.compound_market_address\n WHERE\n topics [0] = '0xd1cf3d156d5f8f0d50f6c122ed609cec09d35c9b9fb3fff6ea0959134dae424e' --Supply\n AND l.contract_address IN (\n SELECT\n DISTINCT(compound_market_address)\n FROM\n comp_assets\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n w.asset AS protocol_market,\n repayer as payer,\n borrower,\n depositor,\n underlying_asset AS token_address,\n amount AS amount_unadj,\n A.protocol,\n A.version,\n A.platform,\n _log_id,\n modified_timestamp,\n 'Supply' AS event_name\nFROM\n repayments w\n LEFT JOIN comp_assets A\n ON w.asset = A.compound_market_address qualify(ROW_NUMBER() over(PARTITION BY w._log_id\nORDER BY\n w.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__comp_v3_asset_details", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__comp_v3_asset_details", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/compound_v3/silver_lending__comp_v3_repayments.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH comp_assets AS (\n\n SELECT\n compound_market_address,\n compound_market_name,\n compound_market_symbol,\n compound_market_decimals,\n underlying_asset_address,\n underlying_asset_name,\n protocol,\n version,\n platform\n FROM\n polygon.silver_lending.comp_v3_asset_details\n),\nrepayments AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n l.contract_address AS asset,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS repayer,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS usd_value,\n origin_from_address AS depositor,\n compound_market_name,\n compound_market_symbol,\n compound_market_decimals,\n C.underlying_asset_address AS underlying_asset,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n LEFT JOIN comp_assets C\n ON contract_address = C.compound_market_address\n WHERE\n topics [0] = '0xd1cf3d156d5f8f0d50f6c122ed609cec09d35c9b9fb3fff6ea0959134dae424e' --Supply\n AND l.contract_address IN (\n SELECT\n DISTINCT(compound_market_address)\n FROM\n comp_assets\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.comp_v3_repayments\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n w.asset AS protocol_market,\n repayer as payer,\n borrower,\n depositor,\n underlying_asset AS token_address,\n amount AS amount_unadj,\n A.protocol,\n A.version,\n A.platform,\n _log_id,\n modified_timestamp,\n 'Supply' AS event_name\nFROM\n repayments w\n LEFT JOIN comp_assets A\n ON w.asset = A.compound_market_address qualify(ROW_NUMBER() over(PARTITION BY w._log_id\nORDER BY\n w.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__comp_v3_borrows": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__comp_v3_borrows", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/compound_v3/silver_lending__comp_v3_borrows.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/compound_v3/silver_lending__comp_v3_borrows.sql", "unique_id": "model.fsc_evm.silver_lending__comp_v3_borrows", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "compound_v3", "silver_lending__comp_v3_borrows"], "alias": "comp_v3_borrows", "checksum": {"name": "sha256", "checksum": "09ba201c3d5c5470696a1bd5df40ddc9993156814544e895923543caa607e3d9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "comp_v3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "comp_v3"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "comp_v3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018399.467772, "relation_name": "polygon.silver_lending.comp_v3_borrows", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','comp_v3']\n) }}\n\nWITH comp_assets AS (\n\n SELECT\n compound_market_address,\n compound_market_name,\n compound_market_symbol,\n compound_market_decimals,\n underlying_asset_address,\n underlying_asset_name,\n protocol,\n version,\n platform\n FROM\n {{ ref('silver_lending__comp_v3_asset_details') }}\n),\nborrow AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS asset,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS src_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS to_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS borrow_amount,\n origin_from_address AS borrower_address,\n C.compound_market_name AS NAME,\n C.compound_market_symbol AS symbol,\n C.compound_market_decimals AS decimals,\n C.underlying_asset_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n LEFT JOIN comp_assets C\n ON asset = C.compound_market_address\n WHERE\n topics [0] = '0x9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb' --withdrawl\n AND l.contract_address IN (\n SELECT\n DISTINCT(compound_market_address)\n FROM\n comp_assets\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nborrows_checks as (\nselect\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n to_address,\n from_address,\n amount\nfrom\n {{ ref('core__ez_token_transfers') }}\nwhere \n tx_hash in (select distinct tx_hash from borrow)\n and to_address = '0x0000000000000000000000000000000000000000'\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n w.tx_hash,\n w.block_number,\n w.block_timestamp,\n w.event_index,\n w.origin_from_address,\n w.origin_to_address,\n w.origin_function_signature,\n w.contract_address,\n w.asset AS protocol_market,\n w.borrower_address AS borrower,\n w.underlying_asset_address AS token_address,\n w.borrow_amount AS amount_unadj,\n w.symbol AS itoken_symbol,\n A.protocol,\n A.version,\n A.platform,\n w._log_id,\n w.modified_timestamp,\n 'Withdraw' AS event_name\nFROM\n borrow w\n LEFT JOIN comp_assets A\n ON w.asset = A.compound_market_address\n LEFT JOIN borrows_checks B\n ON w.tx_hash = B.tx_hash\n and w.borrower_address = b.from_address\n and w.asset=b.contract_address\n WHERE b.to_address is null qualify(ROW_NUMBER() over(PARTITION BY w._log_id\nORDER BY\n w.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__comp_v3_asset_details", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__ez_token_transfers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__comp_v3_asset_details", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__ez_token_transfers"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/compound_v3/silver_lending__comp_v3_borrows.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH comp_assets AS (\n\n SELECT\n compound_market_address,\n compound_market_name,\n compound_market_symbol,\n compound_market_decimals,\n underlying_asset_address,\n underlying_asset_name,\n protocol,\n version,\n platform\n FROM\n polygon.silver_lending.comp_v3_asset_details\n),\nborrow AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS asset,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS src_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS to_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS borrow_amount,\n origin_from_address AS borrower_address,\n C.compound_market_name AS NAME,\n C.compound_market_symbol AS symbol,\n C.compound_market_decimals AS decimals,\n C.underlying_asset_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n LEFT JOIN comp_assets C\n ON asset = C.compound_market_address\n WHERE\n topics [0] = '0x9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb' --withdrawl\n AND l.contract_address IN (\n SELECT\n DISTINCT(compound_market_address)\n FROM\n comp_assets\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.comp_v3_borrows\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nborrows_checks as (\nselect\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n to_address,\n from_address,\n amount\nfrom\n polygon.core.ez_token_transfers\nwhere \n tx_hash in (select distinct tx_hash from borrow)\n and to_address = '0x0000000000000000000000000000000000000000'\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.comp_v3_borrows\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n w.tx_hash,\n w.block_number,\n w.block_timestamp,\n w.event_index,\n w.origin_from_address,\n w.origin_to_address,\n w.origin_function_signature,\n w.contract_address,\n w.asset AS protocol_market,\n w.borrower_address AS borrower,\n w.underlying_asset_address AS token_address,\n w.borrow_amount AS amount_unadj,\n w.symbol AS itoken_symbol,\n A.protocol,\n A.version,\n A.platform,\n w._log_id,\n w.modified_timestamp,\n 'Withdraw' AS event_name\nFROM\n borrow w\n LEFT JOIN comp_assets A\n ON w.asset = A.compound_market_address\n LEFT JOIN borrows_checks B\n ON w.tx_hash = B.tx_hash\n and w.borrower_address = b.from_address\n and w.asset=b.contract_address\n WHERE b.to_address is null qualify(ROW_NUMBER() over(PARTITION BY w._log_id\nORDER BY\n w.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__comp_v3_deposits": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__comp_v3_deposits", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/compound_v3/silver_lending__comp_v3_deposits.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/compound_v3/silver_lending__comp_v3_deposits.sql", "unique_id": "model.fsc_evm.silver_lending__comp_v3_deposits", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "compound_v3", "silver_lending__comp_v3_deposits"], "alias": "comp_v3_deposits", "checksum": {"name": "sha256", "checksum": "9dcbb8d3099bf3ac513b0bbaa346848b38c17cbef54a7b8a42776624933a0d9a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "comp_v3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "comp_v3"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "comp_v3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018399.782998, "relation_name": "polygon.silver_lending.comp_v3_deposits", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','comp_v3']\n) }}\n\nWITH comp_assets AS (\n\n SELECT\n compound_market_address,\n compound_market_name,\n compound_market_symbol,\n compound_market_decimals,\n underlying_asset_address,\n underlying_asset_name,\n protocol,\n version,\n platform\n FROM\n {{ ref('silver_lending__comp_v3_asset_details') }}\n),\nsupply AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n l.contract_address AS compound_market,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS asset,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS supply_amount,\n origin_from_address AS depositor_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n WHERE\n topics [0] = '0xfa56f7b24f17183d81894d3ac2ee654e3c26388d17a28dbd9549b8114304e1f4' --SupplyCollateral\n AND l.contract_address IN (\n SELECT\n DISTINCT(compound_market_address)\n FROM\n comp_assets\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nUNION ALL\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n l.contract_address AS compound_market,\n c.underlying_asset_address AS asset,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS supply_amount,\n origin_from_address AS depositor_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n LEFT JOIN comp_assets c\n ON l.contract_address = c.compound_market_address \n WHERE\n topics [0] = '0xd1cf3d156d5f8f0d50f6c122ed609cec09d35c9b9fb3fff6ea0959134dae424e' --Supply (base asset)\n AND l.contract_address IN (\n SELECT\n DISTINCT(compound_market_address)\n FROM\n comp_assets\n )\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n compound_market as protocol_market,\n depositor_address as depositor,\n asset AS token_address,\n supply_amount AS amount_unadj,\n A.protocol,\n A.version,\n A.platform,\n _log_id,\n modified_timestamp,\n 'SupplyCollateral' AS event_name\nFROM\n supply w\n LEFT JOIN comp_assets A\n ON w.compound_market = A.compound_market_address qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__comp_v3_asset_details", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__comp_v3_asset_details", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/compound_v3/silver_lending__comp_v3_deposits.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH comp_assets AS (\n\n SELECT\n compound_market_address,\n compound_market_name,\n compound_market_symbol,\n compound_market_decimals,\n underlying_asset_address,\n underlying_asset_name,\n protocol,\n version,\n platform\n FROM\n polygon.silver_lending.comp_v3_asset_details\n),\nsupply AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n l.contract_address AS compound_market,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS asset,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS supply_amount,\n origin_from_address AS depositor_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n WHERE\n topics [0] = '0xfa56f7b24f17183d81894d3ac2ee654e3c26388d17a28dbd9549b8114304e1f4' --SupplyCollateral\n AND l.contract_address IN (\n SELECT\n DISTINCT(compound_market_address)\n FROM\n comp_assets\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.comp_v3_deposits\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nUNION ALL\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n l.contract_address AS compound_market,\n c.underlying_asset_address AS asset,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS supply_amount,\n origin_from_address AS depositor_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n LEFT JOIN comp_assets c\n ON l.contract_address = c.compound_market_address \n WHERE\n topics [0] = '0xd1cf3d156d5f8f0d50f6c122ed609cec09d35c9b9fb3fff6ea0959134dae424e' --Supply (base asset)\n AND l.contract_address IN (\n SELECT\n DISTINCT(compound_market_address)\n FROM\n comp_assets\n )\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.comp_v3_deposits\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n compound_market as protocol_market,\n depositor_address as depositor,\n asset AS token_address,\n supply_amount AS amount_unadj,\n A.protocol,\n A.version,\n A.platform,\n _log_id,\n modified_timestamp,\n 'SupplyCollateral' AS event_name\nFROM\n supply w\n LEFT JOIN comp_assets A\n ON w.compound_market = A.compound_market_address qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__comp_v3_asset_details": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__comp_v3_asset_details", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/compound_v3/silver_lending__comp_v3_asset_details.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/compound_v3/silver_lending__comp_v3_asset_details.sql", "unique_id": "model.fsc_evm.silver_lending__comp_v3_asset_details", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "compound_v3", "silver_lending__comp_v3_asset_details"], "alias": "comp_v3_asset_details", "checksum": {"name": "sha256", "checksum": "86778f14bed0cc34f6fba10630522b83548f421e65018c549274e84ca11b22de"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "compound", "comp_v3"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "compound_market_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "defi", "lending", "curated", "compound", "comp_v3"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "compound_market_address", "tags": ["silver", "defi", "lending", "curated", "compound", "comp_v3"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018400.0977168, "relation_name": "polygon.silver_lending.comp_v3_asset_details", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = \"compound_market_address\",\n tags = ['silver','defi','lending','curated','compound','comp_v3']\n) }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\nWITH origin_from_addresses AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'comp_v3_origin_from_address'\n),\ncontracts_dim AS (\n SELECT\n address,\n name,\n symbol,\n decimals\n FROM\n {{ ref('core__dim_contracts') }}\n ),\n\n comp_v3_base AS (\n SELECT\n contract_address,\n origin_from_address,\n block_number,\n live.udf_api(\n 'POST',\n '{URL}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n utils.udf_json_rpc_call(\n 'eth_call',\n [\n {\n 'to': contract_address, \n 'from': null, \n 'data': RPAD('0xc55dae63', 64, '0')\n }, \n utils.udf_int_to_hex(block_number)\n ],\n concat_ws('-', contract_address, '0xc55dae63', block_number)\n ),\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS api_response\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topic_0 = '0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b'\n AND origin_from_address IN (\n SELECT\n contract_address\n FROM\n origin_from_addresses\n )\n\n {% if is_incremental() %}\n AND modified_timestamp >= (\n SELECT MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}' FROM {{ this }}\n )\n AND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n and contract_address not in (select compound_market_address from {{ this }})\n {% endif %}\n\n QUALIFY ROW_NUMBER() OVER (\n PARTITION BY contract_address\n ORDER BY block_number DESC\n ) = 1\n ),\n\n comp_v3_data AS (\n SELECT\n l.contract_address AS ctoken_address,\n l.origin_from_address,\n c1.symbol AS ctoken_symbol,\n c1.name AS ctoken_name,\n c1.decimals AS ctoken_decimals,\n LOWER(\n CONCAT(\n '0x',\n SUBSTR(\n l.api_response:data:result :: STRING,\n -40\n )\n )\n ) AS underlying_address,\n c2.name AS underlying_name,\n c2.symbol AS underlying_symbol,\n c2.decimals AS underlying_decimals,\n l.block_number AS created_block,\n 'Compound V3' AS compound_version\n FROM comp_v3_base l\n LEFT JOIN contracts_dim c1 ON l.contract_address = c1.address\n LEFT JOIN contracts_dim c2 ON LOWER(\n CONCAT(\n '0x',\n SUBSTR(\n l.api_response:data:result :: STRING,\n -40\n )\n )\n ) = c2.address\n WHERE c1.name IS NOT NULL\n )\n\n SELECT\n ctoken_address AS compound_market_address,\n ctoken_symbol AS compound_market_symbol,\n ctoken_name AS compound_market_name,\n ctoken_decimals AS compound_market_decimals,\n underlying_address AS underlying_asset_address,\n underlying_name AS underlying_asset_name,\n created_block AS created_block_number,\n origin_from_address,\n o.protocol,\n o.version,\n o.protocol || '-' || o.version AS platform,\n compound_version,\n {{ dbt_utils.generate_surrogate_key(['compound_market_address']) }} AS comp_asset_details_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\n FROM\n comp_v3_data c\nLEFT JOIN origin_from_addresses o\n ON c.origin_from_address = o.contract_address", "language": "sql", "refs": [{"name": "core__dim_contracts", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/compound_v3/silver_lending__comp_v3_asset_details.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH origin_from_addresses AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x2501713a67a3dedde090e42759088a7ef37d4eab', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v3', 'aave_treasury'),\n \n ('0x794a61358d6845594f94dc1db02a252b5b4814ad', 'aave', 'v3', 'aave_version_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v2', 'aave_treasury'),\n \n ('0x8dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf', 'aave', 'v2', 'aave_version_address'),\n \n ('0x1bf0c2541f820e775182832f06c0b7fc27a25f67', 'morpho', 'v1', 'morpho_blue_address')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n type = 'comp_v3_origin_from_address'\n),\ncontracts_dim AS (\n SELECT\n address,\n name,\n symbol,\n decimals\n FROM\n polygon.core.dim_contracts\n ),\n\n comp_v3_base AS (\n SELECT\n contract_address,\n origin_from_address,\n block_number,\n live.udf_api(\n 'POST',\n '{URL}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'livequery'\n ),\n utils.udf_json_rpc_call(\n 'eth_call',\n [\n {\n 'to': contract_address, \n 'from': null, \n 'data': RPAD('0xc55dae63', 64, '0')\n }, \n utils.udf_int_to_hex(block_number)\n ],\n concat_ws('-', contract_address, '0xc55dae63', block_number)\n ),\n 'Vault/prod/evm/quicknode/polygon/mainnet'\n ) AS api_response\n FROM\n polygon.core.fact_event_logs\n WHERE\n topic_0 = '0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b'\n AND origin_from_address IN (\n SELECT\n contract_address\n FROM\n origin_from_addresses\n )\n\n \n AND modified_timestamp >= (\n SELECT MAX(modified_timestamp) - INTERVAL '12 hours' FROM polygon.silver_lending.comp_v3_asset_details\n )\n AND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n and contract_address not in (select compound_market_address from polygon.silver_lending.comp_v3_asset_details)\n \n\n QUALIFY ROW_NUMBER() OVER (\n PARTITION BY contract_address\n ORDER BY block_number DESC\n ) = 1\n ),\n\n comp_v3_data AS (\n SELECT\n l.contract_address AS ctoken_address,\n l.origin_from_address,\n c1.symbol AS ctoken_symbol,\n c1.name AS ctoken_name,\n c1.decimals AS ctoken_decimals,\n LOWER(\n CONCAT(\n '0x',\n SUBSTR(\n l.api_response:data:result :: STRING,\n -40\n )\n )\n ) AS underlying_address,\n c2.name AS underlying_name,\n c2.symbol AS underlying_symbol,\n c2.decimals AS underlying_decimals,\n l.block_number AS created_block,\n 'Compound V3' AS compound_version\n FROM comp_v3_base l\n LEFT JOIN contracts_dim c1 ON l.contract_address = c1.address\n LEFT JOIN contracts_dim c2 ON LOWER(\n CONCAT(\n '0x',\n SUBSTR(\n l.api_response:data:result :: STRING,\n -40\n )\n )\n ) = c2.address\n WHERE c1.name IS NOT NULL\n )\n\n SELECT\n ctoken_address AS compound_market_address,\n ctoken_symbol AS compound_market_symbol,\n ctoken_name AS compound_market_name,\n ctoken_decimals AS compound_market_decimals,\n underlying_address AS underlying_asset_address,\n underlying_name AS underlying_asset_name,\n created_block AS created_block_number,\n origin_from_address,\n o.protocol,\n o.version,\n o.protocol || '-' || o.version AS platform,\n compound_version,\n \n \nmd5(cast(coalesce(cast(compound_market_address as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS comp_asset_details_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\n FROM\n comp_v3_data c\nLEFT JOIN origin_from_addresses o\n ON c.origin_from_address = o.contract_address", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__silo_repayments": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__silo_repayments", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/silo/silver_lending__silo_repayments.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/silo/silver_lending__silo_repayments.sql", "unique_id": "model.fsc_evm.silver_lending__silo_repayments", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "silo", "silver_lending__silo_repayments"], "alias": "silo_repayments", "checksum": {"name": "sha256", "checksum": "93da2a266419274be21ca6c838a403b41128495374a17b947a875afe441e7b91"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "silo"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "silo"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "silo"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018400.412965, "relation_name": "polygon.silver_lending.silo_repayments", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','silo']\n) }}\n\nWITH deposits AS(\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS depositor_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS amount,\n p.token_address AS silo_market,\n p.protocol,\n p.version,\n p.platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_lending__silo_pools') }}\n p\n ON l.contract_address = p.silo_address\n WHERE\n topics [0] :: STRING = '0x05f2eeda0e08e4b437f487c8d7d29b14537d15e3488170dc3de5dbdf8dac4684'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n silo_market as protocol_market,\n asset_address AS token_address,\n amount AS amount_unadj,\n null as payer,\n depositor_address AS borrower,\n d.protocol,\n d.version,\n d.platform,\n d._log_id,\n d.modified_timestamp,\n 'Repay' AS event_name\nFROM\n deposits d\n qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_lending__silo_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__silo_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/silo/silver_lending__silo_repayments.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH deposits AS(\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS depositor_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS amount,\n p.token_address AS silo_market,\n p.protocol,\n p.version,\n p.platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_lending.silo_pools\n p\n ON l.contract_address = p.silo_address\n WHERE\n topics [0] :: STRING = '0x05f2eeda0e08e4b437f487c8d7d29b14537d15e3488170dc3de5dbdf8dac4684'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.silo_repayments\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n silo_market as protocol_market,\n asset_address AS token_address,\n amount AS amount_unadj,\n null as payer,\n depositor_address AS borrower,\n d.protocol,\n d.version,\n d.platform,\n d._log_id,\n d.modified_timestamp,\n 'Repay' AS event_name\nFROM\n deposits d\n qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__silo_pools": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__silo_pools", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/silo/silver_lending__silo_pools.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/silo/silver_lending__silo_pools.sql", "unique_id": "model.fsc_evm.silver_lending__silo_pools", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "silo", "silver_lending__silo_pools"], "alias": "silo_pools", "checksum": {"name": "sha256", "checksum": "7d9970dc9fbee370aa989e675f669811c34d47700418f49df2cd0f76b2fae665"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "silo"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "silo_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "defi", "lending", "curated", "silo"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "silo_address", "tags": ["silver", "defi", "lending", "curated", "silo"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018400.725884, "relation_name": "polygon.silver_lending.silo_pools", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = \"silo_address\",\n tags = ['silver','defi','lending','curated','silo']\n) }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\nWITH silo_factory_addresses AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type in('silo_factory', 'silo_tokens_factory')\n),\n logs_pull AS (\n\n SELECT\n block_number,\n tx_hash,\n contract_address,\n event_index,\n data,\n topics,\n modified_timestamp,\n CASE\n WHEN contract_address in (select contract_address from silo_factory_addresses where type = 'silo_factory') THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n WHEN contract_address in (select contract_address from silo_factory_addresses where type = 'silo_tokens_factory') THEN CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))\n ELSE NULL\n END AS tokens\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n contract_address IN (\n SELECT\n contract_address\n FROM\n silo_factory_addresses\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ncontracts AS (\n SELECT\n contract_address,\n token_name,\n token_decimals,\n token_symbol\n FROM\n {{ ref('silver__contracts') }}\n WHERE\n contract_address IN (\n SELECT\n tokens\n FROM\n logs_pull\n )\n),\nsilo_pull AS (\n SELECT\n block_number AS silo_create_block,\n tx_hash,\n l.contract_address AS factory_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS silo_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token_address,\n utils.udf_hex_to_int(\n SUBSTR(\n segmented_data [0] :: STRING,\n 27,\n 40\n )\n ) :: INTEGER AS version,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n logs_pull l\n WHERE\n l.contract_address in (select contract_address from silo_factory_addresses where type = 'silo_factory')\n),\nsilo_collateral_token AS (\n SELECT\n tx_hash,\n CONCAT('0x', SUBSTR(topics [0] :: STRING, 27, 40)) AS topic_0,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS protocol_collateral_token_address,\n C.token_symbol,\n C.token_decimals\n FROM\n logs_pull l\n LEFT JOIN contracts C\n ON CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) = C.contract_address\n WHERE\n l.contract_address in (select contract_address from silo_factory_addresses where type = 'silo_token_factory')\n AND topics [0] :: STRING = '0xd97e9f840332422474cda9bb0976c87735b44cda62a3fe2a4e13e2e862671812'\n),\nsilo_debt_token AS (\n SELECT\n tx_hash,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS protocol_debt_token_address,\n C.token_symbol,\n C.token_decimals\n FROM\n logs_pull l\n LEFT JOIN contracts C\n ON CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) = C.contract_address\n WHERE\n l.contract_address in (select contract_address from silo_factory_addresses where type = 'silo_token_factory')\n AND topics [0] :: STRING = '0x94f128ebf0749edb8bb9d165d016ce008a16bc82cbd40cc81ded2be79140d020'\n)\nSELECT\n silo_create_block,\n l.tx_hash AS creation_hash,\n factory_address,\n silo_address,\n l.token_address,\n C.token_name,\n C.token_symbol,\n C.token_decimals,\n ct.protocol_collateral_token_address,\n ct.token_symbol AS protocol_collateral_token_symbol,\n ct.token_decimals AS protocol_collateral_token_decimals,\n dt.protocol_debt_token_address,\n dt.token_symbol AS protocol_debt_token_symbol,\n dt.token_decimals AS protocol_debt_token_decimals,\n sf.protocol,\n sf.version,\n sf.protocol || '-' || sf.version AS platform,\n l._log_id,\n l.modified_timestamp\nFROM\n silo_pull l\n LEFT JOIN contracts C\n ON C.contract_address = l.token_address\n LEFT JOIN silo_collateral_token ct\n ON ct.tx_hash = l.tx_hash\n LEFT JOIN silo_debt_token dt\n ON dt.tx_hash = l.tx_hash\n LEFT JOIN silo_factory_addresses sf\n ON sf.contract_address = l.factory_address\nWHERE\n silo_address IS NOT NULL qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n l.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver__contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver__contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/silo/silver_lending__silo_pools.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"silo\"\n ],\n \"unique_key\": \"silo_address\"\n}\n*/\n \n/*\nRaw Code:\n{{ config(\n materialized = 'incremental',\n unique_key = \"silo_address\",\n tags = ['silver','defi','lending','curated','silo']\n) }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\nWITH silo_factory_addresses AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type in('silo_factory', 'silo_tokens_factory')\n),\n logs_pull AS (\n\n SELECT\n block_number,\n tx_hash,\n contract_address,\n event_index,\n data,\n topics,\n modified_timestamp,\n CASE\n WHEN contract_address in (select contract_address from silo_factory_addresses where type = 'silo_factory') THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n WHEN contract_address in (select contract_address from silo_factory_addresses where type = 'silo_tokens_factory') THEN CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))\n ELSE NULL\n END AS tokens\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n contract_address IN (\n SELECT\n contract_address\n FROM\n silo_factory_addresses\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ncontracts AS (\n SELECT\n contract_address,\n token_name,\n token_decimals,\n token_symbol\n FROM\n {{ ref('silver__contracts') }}\n WHERE\n contract_address IN (\n SELECT\n tokens\n FROM\n logs_pull\n )\n),\nsilo_pull AS (\n SELECT\n block_number AS silo_create_block,\n tx_hash,\n l.contract_address AS factory_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS silo_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token_address,\n utils.udf_hex_to_int(\n SUBSTR(\n segmented_data [0] :: STRING,\n 27,\n 40\n )\n ) :: INTEGER AS version,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n logs_pull l\n WHERE\n l.contract_address in (select contract_address from silo_factory_addresses where type = 'silo_factory')\n),\nsilo_collateral_token AS (\n SELECT\n tx_hash,\n CONCAT('0x', SUBSTR(topics [0] :: STRING, 27, 40)) AS topic_0,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS protocol_collateral_token_address,\n C.token_symbol,\n C.token_decimals\n FROM\n logs_pull l\n LEFT JOIN contracts C\n ON CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) = C.contract_address\n WHERE\n l.contract_address in (select contract_address from silo_factory_addresses where type = 'silo_token_factory')\n AND topics [0] :: STRING = '0xd97e9f840332422474cda9bb0976c87735b44cda62a3fe2a4e13e2e862671812'\n),\nsilo_debt_token AS (\n SELECT\n tx_hash,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS protocol_debt_token_address,\n C.token_symbol,\n C.token_decimals\n FROM\n logs_pull l\n LEFT JOIN contracts C\n ON CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) = C.contract_address\n WHERE\n l.contract_address in (select contract_address from silo_factory_addresses where type = 'silo_token_factory')\n AND topics [0] :: STRING = '0x94f128ebf0749edb8bb9d165d016ce008a16bc82cbd40cc81ded2be79140d020'\n)\nSELECT\n silo_create_block,\n l.tx_hash AS creation_hash,\n factory_address,\n silo_address,\n l.token_address,\n C.token_name,\n C.token_symbol,\n C.token_decimals,\n ct.protocol_collateral_token_address,\n ct.token_symbol AS protocol_collateral_token_symbol,\n ct.token_decimals AS protocol_collateral_token_decimals,\n dt.protocol_debt_token_address,\n dt.token_symbol AS protocol_debt_token_symbol,\n dt.token_decimals AS protocol_debt_token_decimals,\n sf.protocol,\n sf.version,\n sf.protocol || '-' || sf.version AS platform,\n l._log_id,\n l.modified_timestamp\nFROM\n silo_pull l\n LEFT JOIN contracts C\n ON C.contract_address = l.token_address\n LEFT JOIN silo_collateral_token ct\n ON ct.tx_hash = l.tx_hash\n LEFT JOIN silo_debt_token dt\n ON dt.tx_hash = l.tx_hash\n LEFT JOIN silo_factory_addresses sf\n ON sf.contract_address = l.factory_address\nWHERE\n silo_address IS NOT NULL qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n l.modified_timestamp DESC)) = 1\n*/\n\nWITH silo_factory_addresses AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x2501713a67a3dedde090e42759088a7ef37d4eab', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v3', 'aave_treasury'),\n \n ('0x794a61358d6845594f94dc1db02a252b5b4814ad', 'aave', 'v3', 'aave_version_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v2', 'aave_treasury'),\n \n ('0x8dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf', 'aave', 'v2', 'aave_version_address'),\n \n ('0x1bf0c2541f820e775182832f06c0b7fc27a25f67', 'morpho', 'v1', 'morpho_blue_address')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n type in('silo_factory', 'silo_tokens_factory')\n),\n logs_pull AS (\n\n SELECT\n block_number,\n tx_hash,\n contract_address,\n event_index,\n data,\n topics,\n modified_timestamp,\n CASE\n WHEN contract_address in (select contract_address from silo_factory_addresses where type = 'silo_factory') THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n WHEN contract_address in (select contract_address from silo_factory_addresses where type = 'silo_tokens_factory') THEN CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))\n ELSE NULL\n END AS tokens\n FROM\n polygon.core.fact_event_logs\n WHERE\n contract_address IN (\n SELECT\n contract_address\n FROM\n silo_factory_addresses\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.silo_pools\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ncontracts AS (\n SELECT\n contract_address,\n token_name,\n token_decimals,\n token_symbol\n FROM\n polygon.silver.contracts\n WHERE\n contract_address IN (\n SELECT\n tokens\n FROM\n logs_pull\n )\n),\nsilo_pull AS (\n SELECT\n block_number AS silo_create_block,\n tx_hash,\n l.contract_address AS factory_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS silo_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token_address,\n utils.udf_hex_to_int(\n SUBSTR(\n segmented_data [0] :: STRING,\n 27,\n 40\n )\n ) :: INTEGER AS version,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n logs_pull l\n WHERE\n l.contract_address in (select contract_address from silo_factory_addresses where type = 'silo_factory')\n),\nsilo_collateral_token AS (\n SELECT\n tx_hash,\n CONCAT('0x', SUBSTR(topics [0] :: STRING, 27, 40)) AS topic_0,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS protocol_collateral_token_address,\n C.token_symbol,\n C.token_decimals\n FROM\n logs_pull l\n LEFT JOIN contracts C\n ON CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) = C.contract_address\n WHERE\n l.contract_address in (select contract_address from silo_factory_addresses where type = 'silo_token_factory')\n AND topics [0] :: STRING = '0xd97e9f840332422474cda9bb0976c87735b44cda62a3fe2a4e13e2e862671812'\n),\nsilo_debt_token AS (\n SELECT\n tx_hash,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS protocol_debt_token_address,\n C.token_symbol,\n C.token_decimals\n FROM\n logs_pull l\n LEFT JOIN contracts C\n ON CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) = C.contract_address\n WHERE\n l.contract_address in (select contract_address from silo_factory_addresses where type = 'silo_token_factory')\n AND topics [0] :: STRING = '0x94f128ebf0749edb8bb9d165d016ce008a16bc82cbd40cc81ded2be79140d020'\n)\nSELECT\n silo_create_block,\n l.tx_hash AS creation_hash,\n factory_address,\n silo_address,\n l.token_address,\n C.token_name,\n C.token_symbol,\n C.token_decimals,\n ct.protocol_collateral_token_address,\n ct.token_symbol AS protocol_collateral_token_symbol,\n ct.token_decimals AS protocol_collateral_token_decimals,\n dt.protocol_debt_token_address,\n dt.token_symbol AS protocol_debt_token_symbol,\n dt.token_decimals AS protocol_debt_token_decimals,\n sf.protocol,\n sf.version,\n sf.protocol || '-' || sf.version AS platform,\n l._log_id,\n l.modified_timestamp\nFROM\n silo_pull l\n LEFT JOIN contracts C\n ON C.contract_address = l.token_address\n LEFT JOIN silo_collateral_token ct\n ON ct.tx_hash = l.tx_hash\n LEFT JOIN silo_debt_token dt\n ON dt.tx_hash = l.tx_hash\n LEFT JOIN silo_factory_addresses sf\n ON sf.contract_address = l.factory_address\nWHERE\n silo_address IS NOT NULL qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n l.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__silo_borrows": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__silo_borrows", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/silo/silver_lending__silo_borrows.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/silo/silver_lending__silo_borrows.sql", "unique_id": "model.fsc_evm.silver_lending__silo_borrows", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "silo", "silver_lending__silo_borrows"], "alias": "silo_borrows", "checksum": {"name": "sha256", "checksum": "4b2fba91b6603447c68d7a6fd41aa1ce594a930c663757fde8e9ab88e14185f4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "silo"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "silo"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "silo"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018401.0396514, "relation_name": "polygon.silver_lending.silo_borrows", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','silo']\n) }}\n\nWITH borrows AS(\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrow_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS collateral_only,\n p.token_address AS silo_market,\n p.protocol,\n p.version,\n p.platform,\n l.modified_timestamp,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_lending__silo_pools') }}\n p\n ON l.contract_address = p.silo_address\n WHERE\n topics [0] :: STRING = '0x312a5e5e1079f5dda4e95dbbd0b908b291fd5b992ef22073643ab691572c5b52'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n silo_market as protocol_market,\n asset_address AS token_address,\n amount AS amount_unadj,\n borrow_address AS borrower,\n d.protocol,\n d.version,\n d.platform,\n d._log_id,\n d.modified_timestamp,\n 'Borrow' AS event_name\nFROM\n borrows d\n qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_lending__silo_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__silo_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/silo/silver_lending__silo_borrows.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH borrows AS(\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrow_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS collateral_only,\n p.token_address AS silo_market,\n p.protocol,\n p.version,\n p.platform,\n l.modified_timestamp,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_lending.silo_pools\n p\n ON l.contract_address = p.silo_address\n WHERE\n topics [0] :: STRING = '0x312a5e5e1079f5dda4e95dbbd0b908b291fd5b992ef22073643ab691572c5b52'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.silo_borrows\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n silo_market as protocol_market,\n asset_address AS token_address,\n amount AS amount_unadj,\n borrow_address AS borrower,\n d.protocol,\n d.version,\n d.platform,\n d._log_id,\n d.modified_timestamp,\n 'Borrow' AS event_name\nFROM\n borrows d\n qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__silo_withdraws": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__silo_withdraws", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/silo/silver_lending__silo_withdraws.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/silo/silver_lending__silo_withdraws.sql", "unique_id": "model.fsc_evm.silver_lending__silo_withdraws", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "silo", "silver_lending__silo_withdraws"], "alias": "silo_withdraws", "checksum": {"name": "sha256", "checksum": "61100d0092f5029ac4ab1906a3dd38c2896d0fa1c09748b9d32f248a98eeab47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "silo"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "silo"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "silo"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018401.3555827, "relation_name": "polygon.silver_lending.silo_withdraws", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','silo']\n) }}\n\nWITH deposits AS(\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS depositor_address,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS reciever_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS collateral_only,\n p.token_address AS silo_market,\n p.protocol,\n p.version,\n p.platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_lending__silo_pools') }}\n p\n ON l.contract_address = p.silo_address\n WHERE\n topics [0] :: STRING = '0x3b5f15635b488fe265654176726b3222080f3d6500a562f4664233b3ea2f0283'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n silo_market as protocol_market,\n asset_address AS token_address,\n amount AS amount_unadj,\n depositor_address AS depositor,\n d.protocol,\n d.version,\n d.platform,\n d._log_id,\n d.modified_timestamp,\n 'Withdraw' AS event_name\nFROM\n deposits d\n qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_lending__silo_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__silo_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/silo/silver_lending__silo_withdraws.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH deposits AS(\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS depositor_address,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS reciever_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS collateral_only,\n p.token_address AS silo_market,\n p.protocol,\n p.version,\n p.platform,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_lending.silo_pools\n p\n ON l.contract_address = p.silo_address\n WHERE\n topics [0] :: STRING = '0x3b5f15635b488fe265654176726b3222080f3d6500a562f4664233b3ea2f0283'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.silo_withdraws\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n silo_market as protocol_market,\n asset_address AS token_address,\n amount AS amount_unadj,\n depositor_address AS depositor,\n d.protocol,\n d.version,\n d.platform,\n d._log_id,\n d.modified_timestamp,\n 'Withdraw' AS event_name\nFROM\n deposits d\n qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__silo_liquidations": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__silo_liquidations", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/silo/silver_lending__silo_liquidations.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/silo/silver_lending__silo_liquidations.sql", "unique_id": "model.fsc_evm.silver_lending__silo_liquidations", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "silo", "silver_lending__silo_liquidations"], "alias": "silo_liquidations", "checksum": {"name": "sha256", "checksum": "92ef3037f55be6aab91c8ce40c6a6114a2660f1dc3c4f2c90107d9bbe25ffd6f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "silo"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "silo"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "silo"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018401.6704326, "relation_name": "polygon.silver_lending.silo_liquidations", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','silo']\n) }}\n\nWITH liquidations AS(\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS depositor_address,\n origin_from_address AS receiver_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS shareamountrepaid,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS amount,\n p.token_address AS silo_market,\n p.protocol_collateral_token_address AS protocol_collateral_token,\n p.protocol,\n p.version,\n p.platform,\n CASE\n WHEN shareamountrepaid > 0 THEN 'debt_token_event'\n ELSE 'collateral_token_event'\n END AS liquidation_event_type,\n l.modified_timestamp,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_lending__silo_pools') }}\n p\n ON l.contract_address = p.silo_address\n WHERE\n topics [0] :: STRING = '0xf3fa0eaee8f258c23b013654df25d1527f98a5c7ccd5e951dd77caca400ef972'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ndebt_token_isolate AS (\n SELECT\n tx_hash,\n asset_address,\n liquidation_event_type\n FROM\n liquidations d\n WHERE\n liquidation_event_type = 'debt_token_event'\n)\nSELECT\n d.tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n silo_market as protocol_market,\n protocol_collateral_token,\n depositor_address AS borrower,\n receiver_address AS liquidator,\n d.asset_address AS collateral_token,\n amount AS liquidated_amount_unadj,\n i.asset_address AS debt_token,\n null as repaid_amount_unadj,\n d.protocol,\n d.version,\n d.platform,\n d._log_id,\n d.modified_timestamp,\n 'Liquidate' AS event_name\nFROM\n liquidations d\n LEFT JOIN debt_token_isolate i\n ON d.tx_hash = i.tx_hash\nWHERE\n d.liquidation_event_type = 'collateral_token_event' qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_lending__silo_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__silo_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/silo/silver_lending__silo_liquidations.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH liquidations AS(\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS depositor_address,\n origin_from_address AS receiver_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS shareamountrepaid,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS amount,\n p.token_address AS silo_market,\n p.protocol_collateral_token_address AS protocol_collateral_token,\n p.protocol,\n p.version,\n p.platform,\n CASE\n WHEN shareamountrepaid > 0 THEN 'debt_token_event'\n ELSE 'collateral_token_event'\n END AS liquidation_event_type,\n l.modified_timestamp,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_lending.silo_pools\n p\n ON l.contract_address = p.silo_address\n WHERE\n topics [0] :: STRING = '0xf3fa0eaee8f258c23b013654df25d1527f98a5c7ccd5e951dd77caca400ef972'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.silo_liquidations\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ndebt_token_isolate AS (\n SELECT\n tx_hash,\n asset_address,\n liquidation_event_type\n FROM\n liquidations d\n WHERE\n liquidation_event_type = 'debt_token_event'\n)\nSELECT\n d.tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n silo_market as protocol_market,\n protocol_collateral_token,\n depositor_address AS borrower,\n receiver_address AS liquidator,\n d.asset_address AS collateral_token,\n amount AS liquidated_amount_unadj,\n i.asset_address AS debt_token,\n null as repaid_amount_unadj,\n d.protocol,\n d.version,\n d.platform,\n d._log_id,\n d.modified_timestamp,\n 'Liquidate' AS event_name\nFROM\n liquidations d\n LEFT JOIN debt_token_isolate i\n ON d.tx_hash = i.tx_hash\nWHERE\n d.liquidation_event_type = 'collateral_token_event' qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__silo_deposits": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__silo_deposits", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/silo/silver_lending__silo_deposits.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/silo/silver_lending__silo_deposits.sql", "unique_id": "model.fsc_evm.silver_lending__silo_deposits", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "silo", "silver_lending__silo_deposits"], "alias": "silo_deposits", "checksum": {"name": "sha256", "checksum": "dda929c728906ca78d8d513ebc69aba9c5f0e23e3a49eb02d3a5516e1cb0270f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "silo"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "silo"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "silo"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018401.9832842, "relation_name": "polygon.silver_lending.silo_deposits", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','silo']\n) }}\n\nWITH deposits AS(\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS depositor_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS amount_unadj,\n p.token_address AS silo_market,\n p.protocol,\n p.version,\n p.platform,\n l.modified_timestamp,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN {{ ref('silver_lending__silo_pools') }}\n p\n ON l.contract_address = p.silo_address\n WHERE\n topics [0] :: STRING = '0xdd160bb401ec5b5e5ca443d41e8e7182f3fe72d70a04b9c0ba844483d212bcb5'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n silo_market as protocol_market,\n asset_address AS token_address,\n amount_unadj,\n depositor_address AS depositor,\n d.protocol,\n d.version,\n d.platform,\n d._log_id,\n d.modified_timestamp,\n 'Deposit' AS event_name\nFROM\n deposits d\n qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_lending__silo_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__silo_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/silo/silver_lending__silo_deposits.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH deposits AS(\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS asset_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS depositor_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS amount_unadj,\n p.token_address AS silo_market,\n p.protocol,\n p.version,\n p.platform,\n l.modified_timestamp,\n CONCAT(\n l.tx_hash :: STRING,\n '-',\n l.event_index :: STRING\n ) AS _log_id\n FROM\n polygon.core.fact_event_logs\n l\n INNER JOIN polygon.silver_lending.silo_pools\n p\n ON l.contract_address = p.silo_address\n WHERE\n topics [0] :: STRING = '0xdd160bb401ec5b5e5ca443d41e8e7182f3fe72d70a04b9c0ba844483d212bcb5'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.silo_deposits\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n silo_market as protocol_market,\n asset_address AS token_address,\n amount_unadj,\n depositor_address AS depositor,\n d.protocol,\n d.version,\n d.platform,\n d._log_id,\n d.modified_timestamp,\n 'Deposit' AS event_name\nFROM\n deposits d\n qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__fraxlend_deposits": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__fraxlend_deposits", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/fraxlend/silver_lending__fraxlend_deposits.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/fraxlend/silver_lending__fraxlend_deposits.sql", "unique_id": "model.fsc_evm.silver_lending__fraxlend_deposits", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "fraxlend", "silver_lending__fraxlend_deposits"], "alias": "fraxlend_deposits", "checksum": {"name": "sha256", "checksum": "33da33dcb8540ac81fff0f10a8ef283844ba654d945c65f356556ed1439bd4ab"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "fraxlend"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "fraxlend"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "fraxlend"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018402.2946198, "relation_name": "polygon.silver_lending.fraxlend_deposits", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','fraxlend']\n) }}\n\nWITH log_join AS (\n\n SELECT\n l.tx_hash,\n l.block_timestamp,\n l.block_number,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS caller,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 42)) AS owner,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS deposit_amount_unadj,\n f.frax_market_address,\n f.frax_market_symbol,\n f.underlying_asset,\n f.protocol,\n f.version,\n f.platform,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('silver_lending__fraxlend_asset_details') }}\n f\n LEFT JOIN {{ ref('core__fact_event_logs') }}\n l\n ON f.frax_market_address = l.contract_address\n WHERE\n topics [0] = '0xa32435755c235de2976ed44a75a2f85cb01faf0c894f639fe0c32bb9455fea8f'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n tx_hash,\n block_timestamp,\n block_number,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n caller,\n owner as depositor,\n deposit_amount_unadj as amount_unadj,\n frax_market_address as protocol_market,\n frax_market_symbol as protocol_market_symbol,\n underlying_asset AS token_address,\n protocol,\n version,\n platform,\n _log_id,\n modified_timestamp,\n 'AddCollateral' as event_name\nFROM\n log_join qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__fraxlend_asset_details", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__fraxlend_asset_details", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/fraxlend/silver_lending__fraxlend_deposits.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH log_join AS (\n\n SELECT\n l.tx_hash,\n l.block_timestamp,\n l.block_number,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS caller,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 42)) AS owner,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS deposit_amount_unadj,\n f.frax_market_address,\n f.frax_market_symbol,\n f.underlying_asset,\n f.protocol,\n f.version,\n f.platform,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.silver_lending.fraxlend_asset_details\n f\n LEFT JOIN polygon.core.fact_event_logs\n l\n ON f.frax_market_address = l.contract_address\n WHERE\n topics [0] = '0xa32435755c235de2976ed44a75a2f85cb01faf0c894f639fe0c32bb9455fea8f'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.fraxlend_deposits\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n tx_hash,\n block_timestamp,\n block_number,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n caller,\n owner as depositor,\n deposit_amount_unadj as amount_unadj,\n frax_market_address as protocol_market,\n frax_market_symbol as protocol_market_symbol,\n underlying_asset AS token_address,\n protocol,\n version,\n platform,\n _log_id,\n modified_timestamp,\n 'AddCollateral' as event_name\nFROM\n log_join qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__fraxlend_borrows": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__fraxlend_borrows", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/fraxlend/silver_lending__fraxlend_borrows.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/fraxlend/silver_lending__fraxlend_borrows.sql", "unique_id": "model.fsc_evm.silver_lending__fraxlend_borrows", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "fraxlend", "silver_lending__fraxlend_borrows"], "alias": "fraxlend_borrows", "checksum": {"name": "sha256", "checksum": "4d4262e05149b8859981b17015eefb3af21dcc47b745b4ec3d35dca7be23a542"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "fraxlend"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "fraxlend"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "fraxlend"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018402.6063, "relation_name": "polygon.silver_lending.fraxlend_borrows", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','fraxlend']\n) }}\n\nWITH log_join AS (\n\n SELECT\n l.tx_hash,\n l.block_timestamp,\n l.block_number,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS borrower,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 42)) AS receiver,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS borrow_amount_unadj,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS shares_added_raw,\n f.frax_market_address,\n f.frax_market_symbol,\n f.underlying_asset,\n f.protocol,\n f.version,\n f.platform,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('silver_lending__fraxlend_asset_details') }}\n f\n LEFT JOIN {{ ref('core__fact_event_logs') }}\n l\n ON f.frax_market_address = l.contract_address\n WHERE\n topics [0] = '0x01348584ec81ac7acd52b7d66d9ade986dd909f3d513881c190fc31c90527efe'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n tx_hash,\n block_timestamp,\n block_number,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n receiver,\n borrow_amount_unadj as amount_unadj,\n shares_added_raw as shares_added_unadj,\n frax_market_address as protocol_market,\n frax_market_symbol as protocol_market_symbol,\n lower('0x853d955aCEf822Db058eb8505911ED77F175b99e') AS token_address,\n 'FRAX' AS token_symbol,\n underlying_asset AS collateral_asset,\n protocol,\n version,\n platform,\n _log_id,\n modified_timestamp,\n 'BorrowAsset' as event_name\nFROM\n log_join qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__fraxlend_asset_details", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__fraxlend_asset_details", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/fraxlend/silver_lending__fraxlend_borrows.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH log_join AS (\n\n SELECT\n l.tx_hash,\n l.block_timestamp,\n l.block_number,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS borrower,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 42)) AS receiver,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS borrow_amount_unadj,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS shares_added_raw,\n f.frax_market_address,\n f.frax_market_symbol,\n f.underlying_asset,\n f.protocol,\n f.version,\n f.platform,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.silver_lending.fraxlend_asset_details\n f\n LEFT JOIN polygon.core.fact_event_logs\n l\n ON f.frax_market_address = l.contract_address\n WHERE\n topics [0] = '0x01348584ec81ac7acd52b7d66d9ade986dd909f3d513881c190fc31c90527efe'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.fraxlend_borrows\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n tx_hash,\n block_timestamp,\n block_number,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n receiver,\n borrow_amount_unadj as amount_unadj,\n shares_added_raw as shares_added_unadj,\n frax_market_address as protocol_market,\n frax_market_symbol as protocol_market_symbol,\n lower('0x853d955aCEf822Db058eb8505911ED77F175b99e') AS token_address,\n 'FRAX' AS token_symbol,\n underlying_asset AS collateral_asset,\n protocol,\n version,\n platform,\n _log_id,\n modified_timestamp,\n 'BorrowAsset' as event_name\nFROM\n log_join qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__fraxlend_repayments": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__fraxlend_repayments", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/fraxlend/silver_lending__fraxlend_repayments.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/fraxlend/silver_lending__fraxlend_repayments.sql", "unique_id": "model.fsc_evm.silver_lending__fraxlend_repayments", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "fraxlend", "silver_lending__fraxlend_repayments"], "alias": "fraxlend_repayments", "checksum": {"name": "sha256", "checksum": "d12176ab54ae590bc0ea271aac660099b1c69fed06298fe8d2e91d2ca6fc0050"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "fraxlend"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "fraxlend"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "fraxlend"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018402.9204717, "relation_name": "polygon.silver_lending.fraxlend_repayments", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','fraxlend']\n) }}\n\nWITH log_join AS (\n\n SELECT\n l.tx_hash,\n l.block_timestamp,\n l.block_number,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS payer,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 42)) AS borrower,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS repay_amount_unadj,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS repay_shares_raw,\n f.frax_market_address,\n f.frax_market_symbol,\n f.underlying_asset,\n f.protocol,\n f.version,\n f.platform,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('silver_lending__fraxlend_asset_details') }}\n f\n LEFT JOIN {{ ref('core__fact_event_logs') }}\n l\n ON f.frax_market_address = l.contract_address\n WHERE\n topics [0] = '0x9dc1449a0ff0c152e18e8289d865b47acc6e1b76b1ecb239c13d6ee22a9206a7'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n tx_hash,\n block_timestamp,\n block_number,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n repay_amount_unadj as amount_unadj,\n repay_shares_raw as shares_repaid_unadj,\n frax_market_address as protocol_market,\n frax_market_symbol as protocol_market_symbol,\n lower('0x853d955aCEf822Db058eb8505911ED77F175b99e') AS token_address,\n 'FRAX' AS token_symbol,\n underlying_asset as collateral_token,\n protocol,\n version,\n platform,\n _log_id,\n modified_timestamp,\n 'RepayAsset' as event_name\nFROM\n log_join l qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__fraxlend_asset_details", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__fraxlend_asset_details", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/fraxlend/silver_lending__fraxlend_repayments.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH log_join AS (\n\n SELECT\n l.tx_hash,\n l.block_timestamp,\n l.block_number,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS payer,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 42)) AS borrower,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS repay_amount_unadj,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS repay_shares_raw,\n f.frax_market_address,\n f.frax_market_symbol,\n f.underlying_asset,\n f.protocol,\n f.version,\n f.platform,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.silver_lending.fraxlend_asset_details\n f\n LEFT JOIN polygon.core.fact_event_logs\n l\n ON f.frax_market_address = l.contract_address\n WHERE\n topics [0] = '0x9dc1449a0ff0c152e18e8289d865b47acc6e1b76b1ecb239c13d6ee22a9206a7'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.fraxlend_repayments\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n tx_hash,\n block_timestamp,\n block_number,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n repay_amount_unadj as amount_unadj,\n repay_shares_raw as shares_repaid_unadj,\n frax_market_address as protocol_market,\n frax_market_symbol as protocol_market_symbol,\n lower('0x853d955aCEf822Db058eb8505911ED77F175b99e') AS token_address,\n 'FRAX' AS token_symbol,\n underlying_asset as collateral_token,\n protocol,\n version,\n platform,\n _log_id,\n modified_timestamp,\n 'RepayAsset' as event_name\nFROM\n log_join l qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__fraxlend_liquidations": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__fraxlend_liquidations", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/fraxlend/silver_lending__fraxlend_liquidations.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/fraxlend/silver_lending__fraxlend_liquidations.sql", "unique_id": "model.fsc_evm.silver_lending__fraxlend_liquidations", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "fraxlend", "silver_lending__fraxlend_liquidations"], "alias": "fraxlend_liquidations", "checksum": {"name": "sha256", "checksum": "27cf5b6a33167ecbdc902889f7a7fe5b5e9056dd05bc1607af8353a45c9832bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "fraxlend"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "fraxlend"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "fraxlend"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018403.232904, "relation_name": "polygon.silver_lending.fraxlend_liquidations", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','fraxlend']\n) }}\n\nWITH log_join AS (\n\n SELECT\n l.tx_hash,\n l.block_timestamp,\n l.block_number,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n l.origin_from_address AS liquidator,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS borrower,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS collateral_for_liquidator_unadj,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS shares_to_liquidate_raw,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER AS liquidator_repay_amount_unadj,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER AS shares_to_adjust_raw,\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n ) :: INTEGER AS amount_to_adjust_raw,\n f.frax_market_address,\n f.frax_market_symbol,\n f.underlying_asset,\n f.protocol,\n f.version,\n f.platform,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('silver_lending__fraxlend_asset_details') }}\n f\n LEFT JOIN {{ ref('core__fact_event_logs') }}\n l\n ON f.frax_market_address = l.contract_address\n WHERE\n topics [0] = '0x35f432a64bd3767447a456650432406c6cacb885819947a202216eeea6820ecf'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n tx_hash,\n block_timestamp,\n block_number,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n contract_address as protocol_market,\n liquidator,\n borrower,\n underlying_asset as collateral_token,\n collateral_for_liquidator_unadj as liquidated_amount_unadj,\n shares_to_liquidate_raw as shares_liquidated_unadj,\n LOWER('0x853d955aCEf822Db058eb8505911ED77F175b99e') AS debt_token,\n 'FRAX' AS debt_token_symbol,\n liquidator_repay_amount_unadj as repaid_amount_unadj,\n shares_to_adjust_raw as shares_to_adjust_unadj,\n amount_to_adjust_raw as amount_to_adjust_unadj,\n protocol,\n version,\n platform,\n _log_id,\n modified_timestamp,\n 'Liquidate' AS event_name\nFROM\n log_join l qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__fraxlend_asset_details", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__fraxlend_asset_details", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/fraxlend/silver_lending__fraxlend_liquidations.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH log_join AS (\n\n SELECT\n l.tx_hash,\n l.block_timestamp,\n l.block_number,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n l.origin_from_address AS liquidator,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS borrower,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS collateral_for_liquidator_unadj,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS shares_to_liquidate_raw,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER AS liquidator_repay_amount_unadj,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER AS shares_to_adjust_raw,\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n ) :: INTEGER AS amount_to_adjust_raw,\n f.frax_market_address,\n f.frax_market_symbol,\n f.underlying_asset,\n f.protocol,\n f.version,\n f.platform,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.silver_lending.fraxlend_asset_details\n f\n LEFT JOIN polygon.core.fact_event_logs\n l\n ON f.frax_market_address = l.contract_address\n WHERE\n topics [0] = '0x35f432a64bd3767447a456650432406c6cacb885819947a202216eeea6820ecf'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.fraxlend_liquidations\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n tx_hash,\n block_timestamp,\n block_number,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n contract_address as protocol_market,\n liquidator,\n borrower,\n underlying_asset as collateral_token,\n collateral_for_liquidator_unadj as liquidated_amount_unadj,\n shares_to_liquidate_raw as shares_liquidated_unadj,\n LOWER('0x853d955aCEf822Db058eb8505911ED77F175b99e') AS debt_token,\n 'FRAX' AS debt_token_symbol,\n liquidator_repay_amount_unadj as repaid_amount_unadj,\n shares_to_adjust_raw as shares_to_adjust_unadj,\n amount_to_adjust_raw as amount_to_adjust_unadj,\n protocol,\n version,\n platform,\n _log_id,\n modified_timestamp,\n 'Liquidate' AS event_name\nFROM\n log_join l qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__fraxlend_withdraws": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__fraxlend_withdraws", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/fraxlend/silver_lending__fraxlend_withdraws.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/fraxlend/silver_lending__fraxlend_withdraws.sql", "unique_id": "model.fsc_evm.silver_lending__fraxlend_withdraws", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "fraxlend", "silver_lending__fraxlend_withdraws"], "alias": "fraxlend_withdraws", "checksum": {"name": "sha256", "checksum": "f3f261ac4a39e2bcaad1638be2062c4aa580ac31fc02a08d52d4b478cc63336c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "fraxlend"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "fraxlend"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "fraxlend"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018403.5453272, "relation_name": "polygon.silver_lending.fraxlend_withdraws", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','fraxlend']\n) }}\n\nWITH log_join AS (\n\n SELECT\n l.tx_hash,\n l.block_timestamp,\n l.block_number,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS caller,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 42)) AS receiver,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 42)) AS owner,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS withdraw_amount_unadj,\n f.frax_market_address,\n f.frax_market_symbol,\n f.underlying_asset,\n f.protocol,\n f.version,\n f.platform,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n {{ ref('silver_lending__fraxlend_asset_details') }}\n f\n LEFT JOIN {{ ref('core__fact_event_logs') }}\n l\n ON f.frax_market_address = l.contract_address\n WHERE\n topics [0] = '0xbc290bb45104f73cf92115c9603987c3f8fd30c182a13603d8cffa49b5f59952'\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nSELECT\n tx_hash,\n block_timestamp,\n block_number,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n caller,\n receiver,\n owner as depositor,\n withdraw_amount_unadj as amount_unadj,\n frax_market_address as protocol_market,\n frax_market_symbol as protocol_market_symbol,\n underlying_asset as token_address,\n protocol,\n version,\n platform,\n _log_id,\n modified_timestamp,\n 'RemoveCollateral' as event_name\nFROM\n log_join qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__fraxlend_asset_details", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__fraxlend_asset_details", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/fraxlend/silver_lending__fraxlend_withdraws.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH log_join AS (\n\n SELECT\n l.tx_hash,\n l.block_timestamp,\n l.block_number,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS caller,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 42)) AS receiver,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 42)) AS owner,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS withdraw_amount_unadj,\n f.frax_market_address,\n f.frax_market_symbol,\n f.underlying_asset,\n f.protocol,\n f.version,\n f.platform,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n polygon.silver_lending.fraxlend_asset_details\n f\n LEFT JOIN polygon.core.fact_event_logs\n l\n ON f.frax_market_address = l.contract_address\n WHERE\n topics [0] = '0xbc290bb45104f73cf92115c9603987c3f8fd30c182a13603d8cffa49b5f59952'\n AND tx_succeeded\n\n\nAND l.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.fraxlend_withdraws\n)\nAND l.modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nSELECT\n tx_hash,\n block_timestamp,\n block_number,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n caller,\n receiver,\n owner as depositor,\n withdraw_amount_unadj as amount_unadj,\n frax_market_address as protocol_market,\n frax_market_symbol as protocol_market_symbol,\n underlying_asset as token_address,\n protocol,\n version,\n platform,\n _log_id,\n modified_timestamp,\n 'RemoveCollateral' as event_name\nFROM\n log_join qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__fraxlend_asset_details": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__fraxlend_asset_details", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/fraxlend/silver_lending__fraxlend_asset_details.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/fraxlend/silver_lending__fraxlend_asset_details.sql", "unique_id": "model.fsc_evm.silver_lending__fraxlend_asset_details", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "fraxlend", "silver_lending__fraxlend_asset_details"], "alias": "fraxlend_asset_details", "checksum": {"name": "sha256", "checksum": "4c6065ce9e177fc357e9125c27bee63fff7c71a7c8597f9b10cabf05f8453630"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "fraxlend"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "_log_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "defi", "lending", "curated", "fraxlend"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "_log_id", "tags": ["silver", "defi", "lending", "curated", "fraxlend"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018403.8558915, "relation_name": "polygon.silver_lending.fraxlend_asset_details", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = '_log_id',\n tags = ['silver','defi','lending','curated','fraxlend']\n) }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Get fraxlend origin from address #}\nWITH fraxlend_origin_from_address AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'fraxlend_origin_from_address'\n),\n\nlogs AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n contract_address,\n topics,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE\n WHEN topics [0] = '0xb7f7e57b7bb3a5186ad1bd43405339ba361555344aec7a4be01968e88ee3883e' THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40))\n WHEN topics [0] = '0x9303649990c462969a3c46d4e2c758166e92f5a4b18c67f26d3e58d2b0660e67' THEN CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42))\n WHEN topics [0] = '0xc6fa598658c9cdf9eaa5f76414ef17a38a7f74c0e719a0571a3f73d9ecd755b7' THEN CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42))\n END AS pool_address,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] IN (\n '0xb7f7e57b7bb3a5186ad1bd43405339ba361555344aec7a4be01968e88ee3883e',\n '0x9303649990c462969a3c46d4e2c758166e92f5a4b18c67f26d3e58d2b0660e67',\n '0xc6fa598658c9cdf9eaa5f76414ef17a38a7f74c0e719a0571a3f73d9ecd755b7'\n )\n and origin_from_address in (\n select contract_address from fraxlend_origin_from_address\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ncontracts AS (\n SELECT\n contract_address,\n token_name,\n token_decimals,\n token_symbol\n FROM\n {{ ref('silver__contracts') }}\n),\nlogs_transform AS (\n SELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.event_index,\n l.contract_address,\n l.origin_from_address,\n l.origin_to_address,\n pool_address AS frax_market_address,\n c.token_name AS frax_market_name,\n c.token_symbol AS frax_market_symbol,\n c.token_decimals AS frax_market_decimals,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 42)) AS underlying_asset,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n logs l\n LEFT JOIN contracts c\n ON c.contract_address = pool_address\n)\nSELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.event_index,\n l.contract_address,\n l.origin_from_address,\n l.origin_to_address,\n l.frax_market_address,\n l.frax_market_name,\n l.frax_market_symbol,\n l.frax_market_decimals,\n c.token_name AS underlying_name,\n l.underlying_asset,\n c.token_symbol AS underlying_symbol,\n c.token_decimals AS underlying_decimals,\n f.protocol || '-' || f.version AS platform,\n f.protocol,\n f.version,\n l._log_id,\n l.modified_timestamp\nFROM\n logs_transform l\nLEFT JOIN \n contracts c\nON\n c.contract_address = underlying_asset\nLEFT JOIN \n fraxlend_origin_from_address f\nON\n f.contract_address = l.origin_from_address\nWHERE\n frax_market_name IS NOT NULL\nAND \n c.token_decimals IS NOT NULL", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver__contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver__contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/fraxlend/silver_lending__fraxlend_asset_details.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"fraxlend\"\n ],\n \"unique_key\": \"_log_id\"\n}\n*/\n \n/*\nRaw Code:\n{{ config(\n materialized = 'incremental',\n unique_key = '_log_id',\n tags = ['silver','defi','lending','curated','fraxlend']\n) }}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Get fraxlend origin from address #}\nWITH fraxlend_origin_from_address AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'fraxlend_origin_from_address'\n),\n\nlogs AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n contract_address,\n topics,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE\n WHEN topics [0] = '0xb7f7e57b7bb3a5186ad1bd43405339ba361555344aec7a4be01968e88ee3883e' THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40))\n WHEN topics [0] = '0x9303649990c462969a3c46d4e2c758166e92f5a4b18c67f26d3e58d2b0660e67' THEN CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42))\n WHEN topics [0] = '0xc6fa598658c9cdf9eaa5f76414ef17a38a7f74c0e719a0571a3f73d9ecd755b7' THEN CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42))\n END AS pool_address,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] IN (\n '0xb7f7e57b7bb3a5186ad1bd43405339ba361555344aec7a4be01968e88ee3883e',\n '0x9303649990c462969a3c46d4e2c758166e92f5a4b18c67f26d3e58d2b0660e67',\n '0xc6fa598658c9cdf9eaa5f76414ef17a38a7f74c0e719a0571a3f73d9ecd755b7'\n )\n and origin_from_address in (\n select contract_address from fraxlend_origin_from_address\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ncontracts AS (\n SELECT\n contract_address,\n token_name,\n token_decimals,\n token_symbol\n FROM\n {{ ref('silver__contracts') }}\n),\nlogs_transform AS (\n SELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.event_index,\n l.contract_address,\n l.origin_from_address,\n l.origin_to_address,\n pool_address AS frax_market_address,\n c.token_name AS frax_market_name,\n c.token_symbol AS frax_market_symbol,\n c.token_decimals AS frax_market_decimals,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 42)) AS underlying_asset,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n logs l\n LEFT JOIN contracts c\n ON c.contract_address = pool_address\n)\nSELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.event_index,\n l.contract_address,\n l.origin_from_address,\n l.origin_to_address,\n l.frax_market_address,\n l.frax_market_name,\n l.frax_market_symbol,\n l.frax_market_decimals,\n c.token_name AS underlying_name,\n l.underlying_asset,\n c.token_symbol AS underlying_symbol,\n c.token_decimals AS underlying_decimals,\n f.protocol || '-' || f.version AS platform,\n f.protocol,\n f.version,\n l._log_id,\n l.modified_timestamp\nFROM\n logs_transform l\nLEFT JOIN \n contracts c\nON\n c.contract_address = underlying_asset\nLEFT JOIN \n fraxlend_origin_from_address f\nON\n f.contract_address = l.origin_from_address\nWHERE\n frax_market_name IS NOT NULL\nAND \n c.token_decimals IS NOT NULL\n*/\n\n\nWITH fraxlend_origin_from_address AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x2501713a67a3dedde090e42759088a7ef37d4eab', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v3', 'aave_treasury'),\n \n ('0x794a61358d6845594f94dc1db02a252b5b4814ad', 'aave', 'v3', 'aave_version_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v2', 'aave_treasury'),\n \n ('0x8dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf', 'aave', 'v2', 'aave_version_address'),\n \n ('0x1bf0c2541f820e775182832f06c0b7fc27a25f67', 'morpho', 'v1', 'morpho_blue_address')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n type = 'fraxlend_origin_from_address'\n),\n\nlogs AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n contract_address,\n topics,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE\n WHEN topics [0] = '0xb7f7e57b7bb3a5186ad1bd43405339ba361555344aec7a4be01968e88ee3883e' THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40))\n WHEN topics [0] = '0x9303649990c462969a3c46d4e2c758166e92f5a4b18c67f26d3e58d2b0660e67' THEN CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42))\n WHEN topics [0] = '0xc6fa598658c9cdf9eaa5f76414ef17a38a7f74c0e719a0571a3f73d9ecd755b7' THEN CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42))\n END AS pool_address,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] IN (\n '0xb7f7e57b7bb3a5186ad1bd43405339ba361555344aec7a4be01968e88ee3883e',\n '0x9303649990c462969a3c46d4e2c758166e92f5a4b18c67f26d3e58d2b0660e67',\n '0xc6fa598658c9cdf9eaa5f76414ef17a38a7f74c0e719a0571a3f73d9ecd755b7'\n )\n and origin_from_address in (\n select contract_address from fraxlend_origin_from_address\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.fraxlend_asset_details\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ncontracts AS (\n SELECT\n contract_address,\n token_name,\n token_decimals,\n token_symbol\n FROM\n polygon.silver.contracts\n),\nlogs_transform AS (\n SELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.event_index,\n l.contract_address,\n l.origin_from_address,\n l.origin_to_address,\n pool_address AS frax_market_address,\n c.token_name AS frax_market_name,\n c.token_symbol AS frax_market_symbol,\n c.token_decimals AS frax_market_decimals,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 42)) AS underlying_asset,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id,\n l.modified_timestamp\n FROM\n logs l\n LEFT JOIN contracts c\n ON c.contract_address = pool_address\n)\nSELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.event_index,\n l.contract_address,\n l.origin_from_address,\n l.origin_to_address,\n l.frax_market_address,\n l.frax_market_name,\n l.frax_market_symbol,\n l.frax_market_decimals,\n c.token_name AS underlying_name,\n l.underlying_asset,\n c.token_symbol AS underlying_symbol,\n c.token_decimals AS underlying_decimals,\n f.protocol || '-' || f.version AS platform,\n f.protocol,\n f.version,\n l._log_id,\n l.modified_timestamp\nFROM\n logs_transform l\nLEFT JOIN \n contracts c\nON\n c.contract_address = underlying_asset\nLEFT JOIN \n fraxlend_origin_from_address f\nON\n f.contract_address = l.origin_from_address\nWHERE\n frax_market_name IS NOT NULL\nAND \n c.token_decimals IS NOT NULL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__aave_liquidations": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__aave_liquidations", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_liquidations.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_liquidations.sql", "unique_id": "model.fsc_evm.silver_lending__aave_liquidations", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "aave", "silver_lending__aave_liquidations"], "alias": "aave_liquidations", "checksum": {"name": "sha256", "checksum": "f30dff51e645514e254f0f6c2ccbad5c43252df44f44cd378547df7c3dba5069"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "aave"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "aave"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "aave"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018404.1697364, "relation_name": "polygon.silver_lending.aave_liquidations", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave']\n) }}\n\nWITH token_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_tokens') }}\n),\nliquidation AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS collateral_asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS debt_asset,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS borrower_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS debt_to_cover_amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS liquidated_amount,\n CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40)) AS liquidator_address,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0xe413a321e8681d831f4dbccbca790d2952b56f977908e45be37335533e005286',\n '0x56864757fd5b1fc9f38f5f3a981cd8ae512ce41b902cf73fc506ee369c6bc237',\n '0xe76026d190f8c969db64638eaf9bc7087a3758e7fe58c017135a5051b4d7c4f8'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n liquidator_address AS liquidator,\n borrower_address AS borrower,\n amc.atoken_address AS protocol_market,\n collateral_asset AS collateral_token,\n liquidated_amount AS liquidated_amount_unadj,\n debt_asset AS debt_token,\n debt_to_cover_amount AS repaid_amount_unadj,\n amc.protocol || '-' || amc.version AS platform,\n amc.protocol,\n amc.version,\n l._log_id,\n l.modified_timestamp,\n 'LiquidationCall' AS event_name\nFROM\n liquidation l\n LEFT JOIN token_meta amc\n ON l.collateral_asset = amc.underlying_address\n and l.lending_pool_contract = amc.version_pool\n LEFT JOIN token_meta amd\n ON l.debt_asset = amd.underlying_address\n and l.lending_pool_contract = amd.version_pool qualify(ROW_NUMBER() over(PARTITION BY l._log_id\nORDER BY\n l.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__aave_tokens", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__aave_tokens", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_liquidations.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"aave\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave']\n) }}\n\nWITH token_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_tokens') }}\n),\nliquidation AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS collateral_asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS debt_asset,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS borrower_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS debt_to_cover_amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS liquidated_amount,\n CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40)) AS liquidator_address,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0xe413a321e8681d831f4dbccbca790d2952b56f977908e45be37335533e005286',\n '0x56864757fd5b1fc9f38f5f3a981cd8ae512ce41b902cf73fc506ee369c6bc237',\n '0xe76026d190f8c969db64638eaf9bc7087a3758e7fe58c017135a5051b4d7c4f8'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n liquidator_address AS liquidator,\n borrower_address AS borrower,\n amc.atoken_address AS protocol_market,\n collateral_asset AS collateral_token,\n liquidated_amount AS liquidated_amount_unadj,\n debt_asset AS debt_token,\n debt_to_cover_amount AS repaid_amount_unadj,\n amc.protocol || '-' || amc.version AS platform,\n amc.protocol,\n amc.version,\n l._log_id,\n l.modified_timestamp,\n 'LiquidationCall' AS event_name\nFROM\n liquidation l\n LEFT JOIN token_meta amc\n ON l.collateral_asset = amc.underlying_address\n and l.lending_pool_contract = amc.version_pool\n LEFT JOIN token_meta amd\n ON l.debt_asset = amd.underlying_address\n and l.lending_pool_contract = amd.version_pool qualify(ROW_NUMBER() over(PARTITION BY l._log_id\nORDER BY\n l.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH token_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n polygon.silver_lending.aave_tokens\n),\nliquidation AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS collateral_asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS debt_asset,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS borrower_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS debt_to_cover_amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS liquidated_amount,\n CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40)) AS liquidator_address,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING IN (\n '0xe413a321e8681d831f4dbccbca790d2952b56f977908e45be37335533e005286',\n '0x56864757fd5b1fc9f38f5f3a981cd8ae512ce41b902cf73fc506ee369c6bc237',\n '0xe76026d190f8c969db64638eaf9bc7087a3758e7fe58c017135a5051b4d7c4f8'\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.aave_liquidations\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n liquidator_address AS liquidator,\n borrower_address AS borrower,\n amc.atoken_address AS protocol_market,\n collateral_asset AS collateral_token,\n liquidated_amount AS liquidated_amount_unadj,\n debt_asset AS debt_token,\n debt_to_cover_amount AS repaid_amount_unadj,\n amc.protocol || '-' || amc.version AS platform,\n amc.protocol,\n amc.version,\n l._log_id,\n l.modified_timestamp,\n 'LiquidationCall' AS event_name\nFROM\n liquidation l\n LEFT JOIN token_meta amc\n ON l.collateral_asset = amc.underlying_address\n and l.lending_pool_contract = amc.version_pool\n LEFT JOIN token_meta amd\n ON l.debt_asset = amd.underlying_address\n and l.lending_pool_contract = amd.version_pool qualify(ROW_NUMBER() over(PARTITION BY l._log_id\nORDER BY\n l.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__aave_ohlc_interest_rates": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__aave_ohlc_interest_rates", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_ohlc_interest_rates.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_ohlc_interest_rates.sql", "unique_id": "model.fsc_evm.silver_lending__aave_ohlc_interest_rates", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "aave", "silver_lending__aave_ohlc_interest_rates"], "alias": "aave_ohlc_interest_rates", "checksum": {"name": "sha256", "checksum": "9303eee3b566b30649207cf6ef6c1f5a600824305df367f471f5c5fd2f180e28"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "aave"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["day", "protocol", "platform", "version", "token_address"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["day::DATE", "protocol", "platform"]}, "tags": ["silver", "defi", "lending", "curated", "aave"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["day", "protocol", "platform", "version", "token_address"], "cluster_by": ["day::DATE", "protocol", "platform"], "tags": ["silver", "defi", "lending", "curated", "aave"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018404.4840841, "relation_name": "polygon.silver_lending.aave_ohlc_interest_rates", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['day', 'protocol', 'platform', 'version', 'token_address'],\n cluster_by = ['day::DATE', 'protocol', 'platform'],\n tags = ['silver','defi','lending','curated','aave']\n) }}\n\nWITH daily_rates AS (\n SELECT\n DATE_TRUNC('day', block_timestamp) AS day,\n protocol,\n platform,\n version,\n token_address,\n supply_rate_unadj AS supply_rate,\n stable_borrow_rate_unadj AS stable_borrow_rate,\n variable_borrow_rate_unadj AS variable_borrow_rate,\n block_timestamp,\n modified_timestamp\n FROM\n {{ ref('silver_lending__aave_interest_rates') }}\n WHERE\n supply_rate_unadj IS NOT NULL\n OR stable_borrow_rate_unadj IS NOT NULL\n OR variable_borrow_rate_unadj IS NOT NULL\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nwindow_calculations AS (\n SELECT\n day,\n protocol,\n platform,\n version,\n token_address,\n supply_rate,\n stable_borrow_rate,\n variable_borrow_rate,\n FIRST_VALUE(supply_rate) OVER (\n PARTITION BY day, protocol, platform, version, token_address \n ORDER BY block_timestamp ASC\n ) AS supply_rate_open,\n LAST_VALUE(supply_rate) OVER (\n PARTITION BY day, protocol, platform, version, token_address \n ORDER BY block_timestamp ASC\n ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING\n ) AS supply_rate_close,\n FIRST_VALUE(stable_borrow_rate) OVER (\n PARTITION BY day, protocol, platform, version, token_address \n ORDER BY block_timestamp ASC\n ) AS stable_borrow_rate_open,\n LAST_VALUE(stable_borrow_rate) OVER (\n PARTITION BY day, protocol, platform, version, token_address \n ORDER BY block_timestamp ASC\n ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING\n ) AS stable_borrow_rate_close,\n FIRST_VALUE(variable_borrow_rate) OVER (\n PARTITION BY day, protocol, platform, version, token_address \n ORDER BY block_timestamp ASC\n ) AS variable_borrow_rate_open,\n LAST_VALUE(variable_borrow_rate) OVER (\n PARTITION BY day, protocol, platform, version, token_address \n ORDER BY block_timestamp ASC\n ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING\n ) AS variable_borrow_rate_close,\n modified_timestamp\n FROM\n daily_rates\n),\nrate_aggregations AS (\n SELECT\n day,\n protocol,\n platform,\n version,\n token_address,\n -- Supply Rate OHLC\n MIN(supply_rate) AS supply_rate_low,\n MAX(supply_rate) AS supply_rate_high,\n MAX(supply_rate_open) AS supply_rate_open,\n MAX(supply_rate_close) AS supply_rate_close,\n -- Stable Borrow Rate OHLC\n MIN(stable_borrow_rate) AS stable_borrow_rate_low,\n MAX(stable_borrow_rate) AS stable_borrow_rate_high,\n MAX(stable_borrow_rate_open) AS stable_borrow_rate_open,\n MAX(stable_borrow_rate_close) AS stable_borrow_rate_close,\n -- Variable Borrow Rate OHLC\n MIN(variable_borrow_rate) AS variable_borrow_rate_low,\n MAX(variable_borrow_rate) AS variable_borrow_rate_high,\n MAX(variable_borrow_rate_open) AS variable_borrow_rate_open,\n MAX(variable_borrow_rate_close) AS variable_borrow_rate_close,\n COUNT(*) AS rate_updates_count,\n MAX(modified_timestamp) AS modified_timestamp\n FROM\n window_calculations\n GROUP BY\n day,\n protocol,\n platform,\n version,\n token_address\n),\n-- Fill missing days with forward fill using window functions\nfilled_rates AS (\n SELECT\n day,\n protocol,\n platform,\n version,\n token_address,\n -- Forward fill supply rate values using LAST_VALUE to get the last known value\n COALESCE(\n supply_rate_open,\n LAST_VALUE(supply_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS supply_rate_open,\n COALESCE(\n supply_rate_high,\n LAST_VALUE(supply_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS supply_rate_high,\n COALESCE(\n supply_rate_low,\n LAST_VALUE(supply_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS supply_rate_low,\n COALESCE(\n supply_rate_close,\n LAST_VALUE(supply_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS supply_rate_close,\n -- Forward fill stable borrow rate values\n COALESCE(\n stable_borrow_rate_open,\n LAST_VALUE(stable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS stable_borrow_rate_open,\n COALESCE(\n stable_borrow_rate_high,\n LAST_VALUE(stable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS stable_borrow_rate_high,\n COALESCE(\n stable_borrow_rate_low,\n LAST_VALUE(stable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS stable_borrow_rate_low,\n COALESCE(\n stable_borrow_rate_close,\n LAST_VALUE(stable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS stable_borrow_rate_close,\n -- Forward fill variable borrow rate values\n COALESCE(\n variable_borrow_rate_open,\n LAST_VALUE(variable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS variable_borrow_rate_open,\n COALESCE(\n variable_borrow_rate_high,\n LAST_VALUE(variable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS variable_borrow_rate_high,\n COALESCE(\n variable_borrow_rate_low,\n LAST_VALUE(variable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS variable_borrow_rate_low,\n COALESCE(\n variable_borrow_rate_close,\n LAST_VALUE(variable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS variable_borrow_rate_close,\n COALESCE(rate_updates_count, 0) AS rate_updates_count,\n COALESCE(\n modified_timestamp,\n LAST_VALUE(modified_timestamp) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS modified_timestamp\n FROM\n rate_aggregations\n)\nSELECT\n day,\n protocol,\n platform,\n version,\n token_address,\n c.token_symbol AS token_symbol,\n -- Supply Rate OHLC\n supply_rate_open / POW(10, 27) AS supply_rate_open,\n supply_rate_high / POW(10, 27) AS supply_rate_high,\n supply_rate_low / POW(10, 27) AS supply_rate_low,\n supply_rate_close / POW(10, 27) AS supply_rate_close,\n -- Stable Borrow Rate OHLC\n stable_borrow_rate_open / POW(10, 27) AS stable_borrow_rate_open,\n stable_borrow_rate_high / POW(10, 27) AS stable_borrow_rate_high,\n stable_borrow_rate_low / POW(10, 27) AS stable_borrow_rate_low,\n stable_borrow_rate_close / POW(10, 27) AS stable_borrow_rate_close,\n -- Variable Borrow Rate OHLC\n variable_borrow_rate_open / POW(10, 27) AS variable_borrow_rate_open,\n variable_borrow_rate_high / POW(10, 27) AS variable_borrow_rate_high,\n variable_borrow_rate_low / POW(10, 27) AS variable_borrow_rate_low,\n variable_borrow_rate_close / POW(10, 27) AS variable_borrow_rate_close,\n rate_updates_count,\n '{{ vars.GLOBAL_PROJECT_NAME }}' AS blockchain,\n {{ dbt_utils.generate_surrogate_key(\n ['day', 'protocol', 'platform', 'version', 'token_address']\n ) }} AS aave_interest_rates_ohlc_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n filled_rates a\nLEFT JOIN \n {{ ref('silver__contracts') }} c\nON \n a.token_address = c.contract_address", "language": "sql", "refs": [{"name": "silver_lending__aave_interest_rates", "package": null, "version": null}, {"name": "silver__contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__aave_interest_rates", "model.fsc_evm.silver__contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_ohlc_interest_rates.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"day::DATE\",\n \"protocol\",\n \"platform\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"aave\"\n ],\n \"unique_key\": [\n \"day\",\n \"protocol\",\n \"platform\",\n \"version\",\n \"token_address\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['day', 'protocol', 'platform', 'version', 'token_address'],\n cluster_by = ['day::DATE', 'protocol', 'platform'],\n tags = ['silver','defi','lending','curated','aave']\n) }}\n\nWITH daily_rates AS (\n SELECT\n DATE_TRUNC('day', block_timestamp) AS day,\n protocol,\n platform,\n version,\n token_address,\n supply_rate_unadj AS supply_rate,\n stable_borrow_rate_unadj AS stable_borrow_rate,\n variable_borrow_rate_unadj AS variable_borrow_rate,\n block_timestamp,\n modified_timestamp\n FROM\n {{ ref('silver_lending__aave_interest_rates') }}\n WHERE\n supply_rate_unadj IS NOT NULL\n OR stable_borrow_rate_unadj IS NOT NULL\n OR variable_borrow_rate_unadj IS NOT NULL\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nwindow_calculations AS (\n SELECT\n day,\n protocol,\n platform,\n version,\n token_address,\n supply_rate,\n stable_borrow_rate,\n variable_borrow_rate,\n FIRST_VALUE(supply_rate) OVER (\n PARTITION BY day, protocol, platform, version, token_address \n ORDER BY block_timestamp ASC\n ) AS supply_rate_open,\n LAST_VALUE(supply_rate) OVER (\n PARTITION BY day, protocol, platform, version, token_address \n ORDER BY block_timestamp ASC\n ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING\n ) AS supply_rate_close,\n FIRST_VALUE(stable_borrow_rate) OVER (\n PARTITION BY day, protocol, platform, version, token_address \n ORDER BY block_timestamp ASC\n ) AS stable_borrow_rate_open,\n LAST_VALUE(stable_borrow_rate) OVER (\n PARTITION BY day, protocol, platform, version, token_address \n ORDER BY block_timestamp ASC\n ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING\n ) AS stable_borrow_rate_close,\n FIRST_VALUE(variable_borrow_rate) OVER (\n PARTITION BY day, protocol, platform, version, token_address \n ORDER BY block_timestamp ASC\n ) AS variable_borrow_rate_open,\n LAST_VALUE(variable_borrow_rate) OVER (\n PARTITION BY day, protocol, platform, version, token_address \n ORDER BY block_timestamp ASC\n ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING\n ) AS variable_borrow_rate_close,\n modified_timestamp\n FROM\n daily_rates\n),\nrate_aggregations AS (\n SELECT\n day,\n protocol,\n platform,\n version,\n token_address,\n -- Supply Rate OHLC\n MIN(supply_rate) AS supply_rate_low,\n MAX(supply_rate) AS supply_rate_high,\n MAX(supply_rate_open) AS supply_rate_open,\n MAX(supply_rate_close) AS supply_rate_close,\n -- Stable Borrow Rate OHLC\n MIN(stable_borrow_rate) AS stable_borrow_rate_low,\n MAX(stable_borrow_rate) AS stable_borrow_rate_high,\n MAX(stable_borrow_rate_open) AS stable_borrow_rate_open,\n MAX(stable_borrow_rate_close) AS stable_borrow_rate_close,\n -- Variable Borrow Rate OHLC\n MIN(variable_borrow_rate) AS variable_borrow_rate_low,\n MAX(variable_borrow_rate) AS variable_borrow_rate_high,\n MAX(variable_borrow_rate_open) AS variable_borrow_rate_open,\n MAX(variable_borrow_rate_close) AS variable_borrow_rate_close,\n COUNT(*) AS rate_updates_count,\n MAX(modified_timestamp) AS modified_timestamp\n FROM\n window_calculations\n GROUP BY\n day,\n protocol,\n platform,\n version,\n token_address\n),\n-- Fill missing days with forward fill using window functions\nfilled_rates AS (\n SELECT\n day,\n protocol,\n platform,\n version,\n token_address,\n -- Forward fill supply rate values using LAST_VALUE to get the last known value\n COALESCE(\n supply_rate_open,\n LAST_VALUE(supply_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS supply_rate_open,\n COALESCE(\n supply_rate_high,\n LAST_VALUE(supply_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS supply_rate_high,\n COALESCE(\n supply_rate_low,\n LAST_VALUE(supply_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS supply_rate_low,\n COALESCE(\n supply_rate_close,\n LAST_VALUE(supply_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS supply_rate_close,\n -- Forward fill stable borrow rate values\n COALESCE(\n stable_borrow_rate_open,\n LAST_VALUE(stable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS stable_borrow_rate_open,\n COALESCE(\n stable_borrow_rate_high,\n LAST_VALUE(stable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS stable_borrow_rate_high,\n COALESCE(\n stable_borrow_rate_low,\n LAST_VALUE(stable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS stable_borrow_rate_low,\n COALESCE(\n stable_borrow_rate_close,\n LAST_VALUE(stable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS stable_borrow_rate_close,\n -- Forward fill variable borrow rate values\n COALESCE(\n variable_borrow_rate_open,\n LAST_VALUE(variable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS variable_borrow_rate_open,\n COALESCE(\n variable_borrow_rate_high,\n LAST_VALUE(variable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS variable_borrow_rate_high,\n COALESCE(\n variable_borrow_rate_low,\n LAST_VALUE(variable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS variable_borrow_rate_low,\n COALESCE(\n variable_borrow_rate_close,\n LAST_VALUE(variable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS variable_borrow_rate_close,\n COALESCE(rate_updates_count, 0) AS rate_updates_count,\n COALESCE(\n modified_timestamp,\n LAST_VALUE(modified_timestamp) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS modified_timestamp\n FROM\n rate_aggregations\n)\nSELECT\n day,\n protocol,\n platform,\n version,\n token_address,\n c.token_symbol AS token_symbol,\n -- Supply Rate OHLC\n supply_rate_open / POW(10, 27) AS supply_rate_open,\n supply_rate_high / POW(10, 27) AS supply_rate_high,\n supply_rate_low / POW(10, 27) AS supply_rate_low,\n supply_rate_close / POW(10, 27) AS supply_rate_close,\n -- Stable Borrow Rate OHLC\n stable_borrow_rate_open / POW(10, 27) AS stable_borrow_rate_open,\n stable_borrow_rate_high / POW(10, 27) AS stable_borrow_rate_high,\n stable_borrow_rate_low / POW(10, 27) AS stable_borrow_rate_low,\n stable_borrow_rate_close / POW(10, 27) AS stable_borrow_rate_close,\n -- Variable Borrow Rate OHLC\n variable_borrow_rate_open / POW(10, 27) AS variable_borrow_rate_open,\n variable_borrow_rate_high / POW(10, 27) AS variable_borrow_rate_high,\n variable_borrow_rate_low / POW(10, 27) AS variable_borrow_rate_low,\n variable_borrow_rate_close / POW(10, 27) AS variable_borrow_rate_close,\n rate_updates_count,\n '{{ vars.GLOBAL_PROJECT_NAME }}' AS blockchain,\n {{ dbt_utils.generate_surrogate_key(\n ['day', 'protocol', 'platform', 'version', 'token_address']\n ) }} AS aave_interest_rates_ohlc_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n filled_rates a\nLEFT JOIN \n {{ ref('silver__contracts') }} c\nON \n a.token_address = c.contract_address\n*/\n\n\n\nWITH daily_rates AS (\n SELECT\n DATE_TRUNC('day', block_timestamp) AS day,\n protocol,\n platform,\n version,\n token_address,\n supply_rate_unadj AS supply_rate,\n stable_borrow_rate_unadj AS stable_borrow_rate,\n variable_borrow_rate_unadj AS variable_borrow_rate,\n block_timestamp,\n modified_timestamp\n FROM\n polygon.silver_lending.aave_interest_rates\n WHERE\n supply_rate_unadj IS NOT NULL\n OR stable_borrow_rate_unadj IS NOT NULL\n OR variable_borrow_rate_unadj IS NOT NULL\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.aave_ohlc_interest_rates\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nwindow_calculations AS (\n SELECT\n day,\n protocol,\n platform,\n version,\n token_address,\n supply_rate,\n stable_borrow_rate,\n variable_borrow_rate,\n FIRST_VALUE(supply_rate) OVER (\n PARTITION BY day, protocol, platform, version, token_address \n ORDER BY block_timestamp ASC\n ) AS supply_rate_open,\n LAST_VALUE(supply_rate) OVER (\n PARTITION BY day, protocol, platform, version, token_address \n ORDER BY block_timestamp ASC\n ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING\n ) AS supply_rate_close,\n FIRST_VALUE(stable_borrow_rate) OVER (\n PARTITION BY day, protocol, platform, version, token_address \n ORDER BY block_timestamp ASC\n ) AS stable_borrow_rate_open,\n LAST_VALUE(stable_borrow_rate) OVER (\n PARTITION BY day, protocol, platform, version, token_address \n ORDER BY block_timestamp ASC\n ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING\n ) AS stable_borrow_rate_close,\n FIRST_VALUE(variable_borrow_rate) OVER (\n PARTITION BY day, protocol, platform, version, token_address \n ORDER BY block_timestamp ASC\n ) AS variable_borrow_rate_open,\n LAST_VALUE(variable_borrow_rate) OVER (\n PARTITION BY day, protocol, platform, version, token_address \n ORDER BY block_timestamp ASC\n ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING\n ) AS variable_borrow_rate_close,\n modified_timestamp\n FROM\n daily_rates\n),\nrate_aggregations AS (\n SELECT\n day,\n protocol,\n platform,\n version,\n token_address,\n -- Supply Rate OHLC\n MIN(supply_rate) AS supply_rate_low,\n MAX(supply_rate) AS supply_rate_high,\n MAX(supply_rate_open) AS supply_rate_open,\n MAX(supply_rate_close) AS supply_rate_close,\n -- Stable Borrow Rate OHLC\n MIN(stable_borrow_rate) AS stable_borrow_rate_low,\n MAX(stable_borrow_rate) AS stable_borrow_rate_high,\n MAX(stable_borrow_rate_open) AS stable_borrow_rate_open,\n MAX(stable_borrow_rate_close) AS stable_borrow_rate_close,\n -- Variable Borrow Rate OHLC\n MIN(variable_borrow_rate) AS variable_borrow_rate_low,\n MAX(variable_borrow_rate) AS variable_borrow_rate_high,\n MAX(variable_borrow_rate_open) AS variable_borrow_rate_open,\n MAX(variable_borrow_rate_close) AS variable_borrow_rate_close,\n COUNT(*) AS rate_updates_count,\n MAX(modified_timestamp) AS modified_timestamp\n FROM\n window_calculations\n GROUP BY\n day,\n protocol,\n platform,\n version,\n token_address\n),\n-- Fill missing days with forward fill using window functions\nfilled_rates AS (\n SELECT\n day,\n protocol,\n platform,\n version,\n token_address,\n -- Forward fill supply rate values using LAST_VALUE to get the last known value\n COALESCE(\n supply_rate_open,\n LAST_VALUE(supply_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS supply_rate_open,\n COALESCE(\n supply_rate_high,\n LAST_VALUE(supply_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS supply_rate_high,\n COALESCE(\n supply_rate_low,\n LAST_VALUE(supply_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS supply_rate_low,\n COALESCE(\n supply_rate_close,\n LAST_VALUE(supply_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS supply_rate_close,\n -- Forward fill stable borrow rate values\n COALESCE(\n stable_borrow_rate_open,\n LAST_VALUE(stable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS stable_borrow_rate_open,\n COALESCE(\n stable_borrow_rate_high,\n LAST_VALUE(stable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS stable_borrow_rate_high,\n COALESCE(\n stable_borrow_rate_low,\n LAST_VALUE(stable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS stable_borrow_rate_low,\n COALESCE(\n stable_borrow_rate_close,\n LAST_VALUE(stable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS stable_borrow_rate_close,\n -- Forward fill variable borrow rate values\n COALESCE(\n variable_borrow_rate_open,\n LAST_VALUE(variable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS variable_borrow_rate_open,\n COALESCE(\n variable_borrow_rate_high,\n LAST_VALUE(variable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS variable_borrow_rate_high,\n COALESCE(\n variable_borrow_rate_low,\n LAST_VALUE(variable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS variable_borrow_rate_low,\n COALESCE(\n variable_borrow_rate_close,\n LAST_VALUE(variable_borrow_rate_close) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS variable_borrow_rate_close,\n COALESCE(rate_updates_count, 0) AS rate_updates_count,\n COALESCE(\n modified_timestamp,\n LAST_VALUE(modified_timestamp) IGNORE NULLS OVER (\n PARTITION BY protocol, platform, version, token_address\n ORDER BY day\n ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW\n )\n ) AS modified_timestamp\n FROM\n rate_aggregations\n)\nSELECT\n day,\n protocol,\n platform,\n version,\n token_address,\n c.token_symbol AS token_symbol,\n -- Supply Rate OHLC\n supply_rate_open / POW(10, 27) AS supply_rate_open,\n supply_rate_high / POW(10, 27) AS supply_rate_high,\n supply_rate_low / POW(10, 27) AS supply_rate_low,\n supply_rate_close / POW(10, 27) AS supply_rate_close,\n -- Stable Borrow Rate OHLC\n stable_borrow_rate_open / POW(10, 27) AS stable_borrow_rate_open,\n stable_borrow_rate_high / POW(10, 27) AS stable_borrow_rate_high,\n stable_borrow_rate_low / POW(10, 27) AS stable_borrow_rate_low,\n stable_borrow_rate_close / POW(10, 27) AS stable_borrow_rate_close,\n -- Variable Borrow Rate OHLC\n variable_borrow_rate_open / POW(10, 27) AS variable_borrow_rate_open,\n variable_borrow_rate_high / POW(10, 27) AS variable_borrow_rate_high,\n variable_borrow_rate_low / POW(10, 27) AS variable_borrow_rate_low,\n variable_borrow_rate_close / POW(10, 27) AS variable_borrow_rate_close,\n rate_updates_count,\n 'polygon' AS blockchain,\n \n \nmd5(cast(coalesce(cast(day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(protocol as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(platform as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(version as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(token_address as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS aave_interest_rates_ohlc_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n filled_rates a\nLEFT JOIN \n polygon.silver.contracts c\nON \n a.token_address = c.contract_address", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__aave_tokens": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__aave_tokens", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_tokens.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_tokens.sql", "unique_id": "model.fsc_evm.silver_lending__aave_tokens", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "aave", "silver_lending__aave_tokens"], "alias": "aave_tokens", "checksum": {"name": "sha256", "checksum": "b9abeed27a0e1fba57ca47c8a39db14030b4228c98b6c5549b38a50c6e08ccd4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "aave", "aave_tokens"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "atoken_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "defi", "lending", "curated", "aave", "aave_tokens"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "atoken_address", "tags": ["silver", "defi", "lending", "curated", "aave", "aave_tokens"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018404.938625, "relation_name": "polygon.silver_lending.aave_tokens", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = \"atoken_address\",\n tags = ['silver','defi','lending','curated','aave','aave_tokens']\n) }}\n\nWITH aave_version_addresses AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'aave_version_address'\n),\nDECODE AS (\n\n SELECT\n block_number AS atoken_created_block,\n contract_address AS a_token_address,\n tx_hash,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS underlying_asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS version_pool,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS treasury_address,\n utils.udf_hex_to_int(\n SUBSTR(\n segmented_data [2] :: STRING,\n 27,\n 40\n )\n ) :: INTEGER AS atoken_decimals,\n utils.udf_hex_to_string (\n segmented_data [7] :: STRING\n ) :: STRING AS atoken_name,\n utils.udf_hex_to_string (\n segmented_data [9] :: STRING\n ) :: STRING AS atoken_symbol,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] = '0xb19e051f8af41150ccccb3fc2c2d8d15f4a4cf434f32a559ba75fe73d6eea20b'\n \n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND contract_address NOT IN (\n SELECT\n atoken_address\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\na_token_step_1 AS (\n SELECT\n atoken_created_block,\n a_token_address,\n tx_hash,\n segmented_data,\n underlying_asset,\n version_pool,\n treasury_address,\n atoken_decimals,\n atoken_name, \n atoken_symbol,\n modified_timestamp,\n _log_id\n FROM\n DECODE\n WHERE version_pool in (select distinct lower(contract_address) from aave_version_addresses)\n and underlying_asset not in (\n '0x0000000000000000000000000000000000000001',\n '0x0000000000000000000000000000000000000000')\n),\ndebt_tokens AS (\n SELECT\n block_number AS atoken_created_block,\n contract_address AS a_token_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS underlying_asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 27, 40)) :: STRING AS token_stable_debt_address,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 27, 40)) :: STRING AS token_variable_debt_address,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] = '0x3a0ca721fc364424566385a1aa271ed508cc2c0949c2272575fb3013a163a45f'\n AND CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) IN (\n SELECT\n a_token_address\n FROM\n a_token_step_1\n )\n)\n\nSELECT\n A.tx_hash,\n A.atoken_created_block,\n A.version_pool,\n A.treasury_address,\n A.a_token_address AS atoken_address,\n b.token_stable_debt_address,\n b.token_variable_debt_address,\n t.protocol || '-' || t.version AS atoken_version,\n A.underlying_asset AS underlying_address,\n t.protocol,\n t.version,\n A.modified_timestamp,\n A._log_id\nFROM\n a_token_step_1 A\n LEFT JOIN debt_tokens b\n ON A.a_token_address = b.token_address\n LEFT JOIN aave_version_addresses t\n ON A.version_pool = t.contract_address\n qualify(ROW_NUMBER() over(PARTITION BY A.underlying_asset,A.version_pool\nORDER BY\n A.atoken_created_block DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_tokens.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"aave\",\n \"aave_tokens\"\n ],\n \"unique_key\": \"atoken_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = \"atoken_address\",\n tags = ['silver','defi','lending','curated','aave','aave_tokens']\n) }}\n\nWITH aave_version_addresses AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'aave_version_address'\n),\nDECODE AS (\n\n SELECT\n block_number AS atoken_created_block,\n contract_address AS a_token_address,\n tx_hash,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS underlying_asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS version_pool,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS treasury_address,\n utils.udf_hex_to_int(\n SUBSTR(\n segmented_data [2] :: STRING,\n 27,\n 40\n )\n ) :: INTEGER AS atoken_decimals,\n utils.udf_hex_to_string (\n segmented_data [7] :: STRING\n ) :: STRING AS atoken_name,\n utils.udf_hex_to_string (\n segmented_data [9] :: STRING\n ) :: STRING AS atoken_symbol,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] = '0xb19e051f8af41150ccccb3fc2c2d8d15f4a4cf434f32a559ba75fe73d6eea20b'\n \n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND contract_address NOT IN (\n SELECT\n atoken_address\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\na_token_step_1 AS (\n SELECT\n atoken_created_block,\n a_token_address,\n tx_hash,\n segmented_data,\n underlying_asset,\n version_pool,\n treasury_address,\n atoken_decimals,\n atoken_name, \n atoken_symbol,\n modified_timestamp,\n _log_id\n FROM\n DECODE\n WHERE version_pool in (select distinct lower(contract_address) from aave_version_addresses)\n and underlying_asset not in (\n '0x0000000000000000000000000000000000000001',\n '0x0000000000000000000000000000000000000000')\n),\ndebt_tokens AS (\n SELECT\n block_number AS atoken_created_block,\n contract_address AS a_token_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS underlying_asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 27, 40)) :: STRING AS token_stable_debt_address,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 27, 40)) :: STRING AS token_variable_debt_address,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] = '0x3a0ca721fc364424566385a1aa271ed508cc2c0949c2272575fb3013a163a45f'\n AND CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) IN (\n SELECT\n a_token_address\n FROM\n a_token_step_1\n )\n)\n\nSELECT\n A.tx_hash,\n A.atoken_created_block,\n A.version_pool,\n A.treasury_address,\n A.a_token_address AS atoken_address,\n b.token_stable_debt_address,\n b.token_variable_debt_address,\n t.protocol || '-' || t.version AS atoken_version,\n A.underlying_asset AS underlying_address,\n t.protocol,\n t.version,\n A.modified_timestamp,\n A._log_id\nFROM\n a_token_step_1 A\n LEFT JOIN debt_tokens b\n ON A.a_token_address = b.token_address\n LEFT JOIN aave_version_addresses t\n ON A.version_pool = t.contract_address\n qualify(ROW_NUMBER() over(PARTITION BY A.underlying_asset,A.version_pool\nORDER BY\n A.atoken_created_block DESC)) = 1\n*/\n\n\n\nWITH aave_version_addresses AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x2501713a67a3dedde090e42759088a7ef37d4eab', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v3', 'aave_treasury'),\n \n ('0x794a61358d6845594f94dc1db02a252b5b4814ad', 'aave', 'v3', 'aave_version_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v2', 'aave_treasury'),\n \n ('0x8dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf', 'aave', 'v2', 'aave_version_address'),\n \n ('0x1bf0c2541f820e775182832f06c0b7fc27a25f67', 'morpho', 'v1', 'morpho_blue_address')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n type = 'aave_version_address'\n),\nDECODE AS (\n\n SELECT\n block_number AS atoken_created_block,\n contract_address AS a_token_address,\n tx_hash,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS underlying_asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS version_pool,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS treasury_address,\n utils.udf_hex_to_int(\n SUBSTR(\n segmented_data [2] :: STRING,\n 27,\n 40\n )\n ) :: INTEGER AS atoken_decimals,\n utils.udf_hex_to_string (\n segmented_data [7] :: STRING\n ) :: STRING AS atoken_name,\n utils.udf_hex_to_string (\n segmented_data [9] :: STRING\n ) :: STRING AS atoken_symbol,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] = '0xb19e051f8af41150ccccb3fc2c2d8d15f4a4cf434f32a559ba75fe73d6eea20b'\n \n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.aave_tokens\n)\nAND contract_address NOT IN (\n SELECT\n atoken_address\n FROM\n polygon.silver_lending.aave_tokens\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\na_token_step_1 AS (\n SELECT\n atoken_created_block,\n a_token_address,\n tx_hash,\n segmented_data,\n underlying_asset,\n version_pool,\n treasury_address,\n atoken_decimals,\n atoken_name, \n atoken_symbol,\n modified_timestamp,\n _log_id\n FROM\n DECODE\n WHERE version_pool in (select distinct lower(contract_address) from aave_version_addresses)\n and underlying_asset not in (\n '0x0000000000000000000000000000000000000001',\n '0x0000000000000000000000000000000000000000')\n),\ndebt_tokens AS (\n SELECT\n block_number AS atoken_created_block,\n contract_address AS a_token_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS underlying_asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS token_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 27, 40)) :: STRING AS token_stable_debt_address,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 27, 40)) :: STRING AS token_variable_debt_address,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] = '0x3a0ca721fc364424566385a1aa271ed508cc2c0949c2272575fb3013a163a45f'\n AND CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) IN (\n SELECT\n a_token_address\n FROM\n a_token_step_1\n )\n)\n\nSELECT\n A.tx_hash,\n A.atoken_created_block,\n A.version_pool,\n A.treasury_address,\n A.a_token_address AS atoken_address,\n b.token_stable_debt_address,\n b.token_variable_debt_address,\n t.protocol || '-' || t.version AS atoken_version,\n A.underlying_asset AS underlying_address,\n t.protocol,\n t.version,\n A.modified_timestamp,\n A._log_id\nFROM\n a_token_step_1 A\n LEFT JOIN debt_tokens b\n ON A.a_token_address = b.token_address\n LEFT JOIN aave_version_addresses t\n ON A.version_pool = t.contract_address\n qualify(ROW_NUMBER() over(PARTITION BY A.underlying_asset,A.version_pool\nORDER BY\n A.atoken_created_block DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__aave_borrows": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__aave_borrows", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_borrows.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_borrows.sql", "unique_id": "model.fsc_evm.silver_lending__aave_borrows", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "aave", "silver_lending__aave_borrows"], "alias": "aave_borrows", "checksum": {"name": "sha256", "checksum": "d744b671983e105a51a79846afaecc46d72422bc3bfbcc908c9e98d759c6e073"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "aave"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "aave"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "aave"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018405.2528672, "relation_name": "polygon.silver_lending.aave_borrows", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave']\n) }}\n\nWITH --borrows from Aave LendingPool contracts\ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_tokens') }}\n),\nborrow AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS onBehalfOf,\n utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INTEGER AS refferal,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS userAddress,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS borrow_quantity,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER AS borrow_rate_mode,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER AS borrowrate,\n origin_from_address AS borrower_address,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0xc6a898309e823ee50bac64e45ca8adba6690e99e7841c45d754e2a38e9019d9b',\n '0xb3d084820fb1a9decffb176436bd02558d15fac9b0ddfed8c465bc7359d7dce0'\n )\n\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND lending_pool_contract IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower_address AS borrower,\n t.atoken_address AS protocol_market,\n market AS token_address,\n borrow_quantity AS amount_unadj,\n CASE\n WHEN borrow_rate_mode = 2 THEN 'Variable Rate'\n ELSE 'Stable Rate'\n END AS borrow_rate_mode,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n b._log_id,\n b.modified_timestamp,\n 'Borrow' AS event_name\nFROM\n borrow b\n LEFT JOIN token_meta t\n ON b.market = t.underlying_address\n and b.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY b._log_id\nORDER BY\n b.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__aave_tokens", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__aave_tokens", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_borrows.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH --borrows from Aave LendingPool contracts\ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n polygon.silver_lending.aave_tokens\n),\nborrow AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS onBehalfOf,\n utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INTEGER AS refferal,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS userAddress,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS borrow_quantity,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER AS borrow_rate_mode,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER AS borrowrate,\n origin_from_address AS borrower_address,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING IN (\n '0xc6a898309e823ee50bac64e45ca8adba6690e99e7841c45d754e2a38e9019d9b',\n '0xb3d084820fb1a9decffb176436bd02558d15fac9b0ddfed8c465bc7359d7dce0'\n )\n\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.aave_borrows\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nAND lending_pool_contract IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower_address AS borrower,\n t.atoken_address AS protocol_market,\n market AS token_address,\n borrow_quantity AS amount_unadj,\n CASE\n WHEN borrow_rate_mode = 2 THEN 'Variable Rate'\n ELSE 'Stable Rate'\n END AS borrow_rate_mode,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n b._log_id,\n b.modified_timestamp,\n 'Borrow' AS event_name\nFROM\n borrow b\n LEFT JOIN token_meta t\n ON b.market = t.underlying_address\n and b.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY b._log_id\nORDER BY\n b.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__aave_flashloans": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__aave_flashloans", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_flashloans.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_flashloans.sql", "unique_id": "model.fsc_evm.silver_lending__aave_flashloans", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "aave", "silver_lending__aave_flashloans"], "alias": "aave_flashloans", "checksum": {"name": "sha256", "checksum": "f9ff672b85acae27f7e8c21d7ffe1100775d55deae59e16b738645504edddcbf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "aave", "flashloans"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "aave", "flashloans"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "aave", "flashloans"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018405.5636332, "relation_name": "polygon.silver_lending.aave_flashloans", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave','flashloans']\n) }}\n\nWITH token_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_tokens') }}\n),\nflashloan AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS target_address,\n CASE\n WHEN topics [0] :: STRING = '0x631042c832b07452973831137f2d73e395028b44b250dedc5abb0ee766e168ac' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0'\n AND origin_to_address IS NULL THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN origin_to_address\n ELSE origin_from_address\n END AS initiator_address,\n CASE\n WHEN topics [0] :: STRING = '0x631042c832b07452973831137f2d73e395028b44b250dedc5abb0ee766e168ac' THEN COALESCE(CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)),CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)))\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n END AS asset_1,\n CASE\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER\n END AS flashloan_quantity,\n CASE\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n END AS premium_quantity,\n CASE\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER\n END AS refferalCode,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0',\n --v3\n '0x631042c832b07452973831137f2d73e395028b44b250dedc5abb0ee766e168ac' --v2\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n t.atoken_address AS protocol_market,\n initiator_address AS initiator,\n target_address AS target,\n asset_1 AS token_address,\n flashloan_quantity AS flashloan_amount_unadj,\n premium_quantity AS premium_amount_unadj,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n f._log_id,\n f.modified_timestamp,\n 'FlashLoan' AS event_name\nFROM\n flashloan f\n LEFT JOIN token_meta t\n ON f.asset_1 = t.underlying_address\n AND f.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY f._log_id\nORDER BY\n f.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__aave_tokens", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__aave_tokens", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_flashloans.sql", "compiled": true, "compiled_code": "\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"aave\",\n \"flashloans\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave','flashloans']\n) }}\n\nWITH token_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_tokens') }}\n),\nflashloan AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS target_address,\n CASE\n WHEN topics [0] :: STRING = '0x631042c832b07452973831137f2d73e395028b44b250dedc5abb0ee766e168ac' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0'\n AND origin_to_address IS NULL THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN origin_to_address\n ELSE origin_from_address\n END AS initiator_address,\n CASE\n WHEN topics [0] :: STRING = '0x631042c832b07452973831137f2d73e395028b44b250dedc5abb0ee766e168ac' THEN COALESCE(CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)),CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)))\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n END AS asset_1,\n CASE\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER\n END AS flashloan_quantity,\n CASE\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n END AS premium_quantity,\n CASE\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER\n END AS refferalCode,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0',\n --v3\n '0x631042c832b07452973831137f2d73e395028b44b250dedc5abb0ee766e168ac' --v2\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n t.atoken_address AS protocol_market,\n initiator_address AS initiator,\n target_address AS target,\n asset_1 AS token_address,\n flashloan_quantity AS flashloan_amount_unadj,\n premium_quantity AS premium_amount_unadj,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n f._log_id,\n f.modified_timestamp,\n 'FlashLoan' AS event_name\nFROM\n flashloan f\n LEFT JOIN token_meta t\n ON f.asset_1 = t.underlying_address\n AND f.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY f._log_id\nORDER BY\n f.modified_timestamp DESC)) = 1\n*/\n\n\nWITH token_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n polygon.silver_lending.aave_tokens\n),\nflashloan AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS target_address,\n CASE\n WHEN topics [0] :: STRING = '0x631042c832b07452973831137f2d73e395028b44b250dedc5abb0ee766e168ac' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0'\n AND origin_to_address IS NULL THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN origin_to_address\n ELSE origin_from_address\n END AS initiator_address,\n CASE\n WHEN topics [0] :: STRING = '0x631042c832b07452973831137f2d73e395028b44b250dedc5abb0ee766e168ac' THEN COALESCE(CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)),CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)))\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n END AS asset_1,\n CASE\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER\n END AS flashloan_quantity,\n CASE\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n END AS premium_quantity,\n CASE\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER\n END AS refferalCode,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING IN (\n '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0',\n --v3\n '0x631042c832b07452973831137f2d73e395028b44b250dedc5abb0ee766e168ac' --v2\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.aave_flashloans\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n t.atoken_address AS protocol_market,\n initiator_address AS initiator,\n target_address AS target,\n asset_1 AS token_address,\n flashloan_quantity AS flashloan_amount_unadj,\n premium_quantity AS premium_amount_unadj,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n f._log_id,\n f.modified_timestamp,\n 'FlashLoan' AS event_name\nFROM\n flashloan f\n LEFT JOIN token_meta t\n ON f.asset_1 = t.underlying_address\n AND f.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY f._log_id\nORDER BY\n f.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__aave_withdraws": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__aave_withdraws", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_withdraws.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_withdraws.sql", "unique_id": "model.fsc_evm.silver_lending__aave_withdraws", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "aave", "silver_lending__aave_withdraws"], "alias": "aave_withdraws", "checksum": {"name": "sha256", "checksum": "f134258c4254d7b9d67a8ec53c889ff703d0bfb198ae7c3b72ff5e2d9b6cabbf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "aave"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "aave"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "aave"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018405.8777936, "relation_name": "polygon.silver_lending.aave_withdraws", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave']\n) }}\n\nWITH token_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_tokens') }}\n),\nwithdraw AS(\n SELECT\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS useraddress,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS depositor,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS withdraw_amount,\n tx_hash,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7',\n '0x9c4ed599cd8555b9c1e8cd7643240d7d71eb76b792948c49fcb4d411f7b6b3c6'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n t.atoken_address AS protocol_market,\n market AS token_address,\n withdraw_amount AS amount_unadj,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n w._log_id,\n w.modified_timestamp,\n 'Withdraw' AS event_name\nFROM\n withdraw w\n LEFT JOIN token_meta t\n ON w.market = t.underlying_address\n and w.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY w._log_id\nORDER BY\n w.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__aave_tokens", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__aave_tokens", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_withdraws.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"aave\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave']\n) }}\n\nWITH token_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_tokens') }}\n),\nwithdraw AS(\n SELECT\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS useraddress,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS depositor,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS withdraw_amount,\n tx_hash,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7',\n '0x9c4ed599cd8555b9c1e8cd7643240d7d71eb76b792948c49fcb4d411f7b6b3c6'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n t.atoken_address AS protocol_market,\n market AS token_address,\n withdraw_amount AS amount_unadj,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n w._log_id,\n w.modified_timestamp,\n 'Withdraw' AS event_name\nFROM\n withdraw w\n LEFT JOIN token_meta t\n ON w.market = t.underlying_address\n and w.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY w._log_id\nORDER BY\n w.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH token_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n polygon.silver_lending.aave_tokens\n),\nwithdraw AS(\n SELECT\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS useraddress,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS depositor,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS withdraw_amount,\n tx_hash,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING IN (\n '0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7',\n '0x9c4ed599cd8555b9c1e8cd7643240d7d71eb76b792948c49fcb4d411f7b6b3c6'\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.aave_withdraws\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n t.atoken_address AS protocol_market,\n market AS token_address,\n withdraw_amount AS amount_unadj,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n w._log_id,\n w.modified_timestamp,\n 'Withdraw' AS event_name\nFROM\n withdraw w\n LEFT JOIN token_meta t\n ON w.market = t.underlying_address\n and w.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY w._log_id\nORDER BY\n w.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__aave_repayments": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__aave_repayments", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_repayments.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_repayments.sql", "unique_id": "model.fsc_evm.silver_lending__aave_repayments", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "aave", "silver_lending__aave_repayments"], "alias": "aave_repayments", "checksum": {"name": "sha256", "checksum": "95b6e73cda4a47488995b2ee0c460b3739e26d64bd4a7e6b2a566cbd836ded5a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "aave", "aave"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "aave"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "aave", "aave"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018406.1914713, "relation_name": "polygon.silver_lending.aave_repayments", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave','aave']\n) }}\n\nWITH token_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_tokens') }}\n),\nrepay AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower_address,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS repayer,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS repayed_amount,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n origin_from_address AS repayer_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0x4cdde6e09bb755c9a5589ebaec640bbfedff1362d4b255ebf8339782b9942faa',\n '0xa534c8dbe71f871f9f3530e97a74601fea17b426cae02e1c5aee42c96c784051'\n )\n\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n t.atoken_address AS protocol_market,\n market AS token_address,\n repayed_amount AS amount_unadj,\n repayer_address AS payer,\n borrower_address AS borrower,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n r._log_id,\n r.modified_timestamp,\n 'Repay' AS event_name\nFROM\n repay r\n LEFT JOIN token_meta t\n ON r.market = t.underlying_address\n and r.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY r._log_id\nORDER BY\n r.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__aave_tokens", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__aave_tokens", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_repayments.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"aave\",\n \"aave\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave','aave']\n) }}\n\nWITH token_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_tokens') }}\n),\nrepay AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower_address,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS repayer,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS repayed_amount,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n origin_from_address AS repayer_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0x4cdde6e09bb755c9a5589ebaec640bbfedff1362d4b255ebf8339782b9942faa',\n '0xa534c8dbe71f871f9f3530e97a74601fea17b426cae02e1c5aee42c96c784051'\n )\n\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n t.atoken_address AS protocol_market,\n market AS token_address,\n repayed_amount AS amount_unadj,\n repayer_address AS payer,\n borrower_address AS borrower,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n r._log_id,\n r.modified_timestamp,\n 'Repay' AS event_name\nFROM\n repay r\n LEFT JOIN token_meta t\n ON r.market = t.underlying_address\n and r.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY r._log_id\nORDER BY\n r.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH token_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n polygon.silver_lending.aave_tokens\n),\nrepay AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower_address,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS repayer,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS repayed_amount,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n origin_from_address AS repayer_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING IN (\n '0x4cdde6e09bb755c9a5589ebaec640bbfedff1362d4b255ebf8339782b9942faa',\n '0xa534c8dbe71f871f9f3530e97a74601fea17b426cae02e1c5aee42c96c784051'\n )\n\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.aave_repayments\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n t.atoken_address AS protocol_market,\n market AS token_address,\n repayed_amount AS amount_unadj,\n repayer_address AS payer,\n borrower_address AS borrower,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n r._log_id,\n r.modified_timestamp,\n 'Repay' AS event_name\nFROM\n repay r\n LEFT JOIN token_meta t\n ON r.market = t.underlying_address\n and r.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY r._log_id\nORDER BY\n r.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__aave_deposits": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__aave_deposits", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_deposits.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_deposits.sql", "unique_id": "model.fsc_evm.silver_lending__aave_deposits", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "aave", "silver_lending__aave_deposits"], "alias": "aave_deposits", "checksum": {"name": "sha256", "checksum": "1e94500fb9f527a74dd86a21d7958ca5fa4f1463516ba9dad61d97a022d346ac"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "aave"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "aave"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "aave"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018406.5068698, "relation_name": "polygon.silver_lending.aave_deposits", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave']\n) }}\n\nWITH token_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_tokens') }}\n),\ndeposits AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS onBehalfOf,\n utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INTEGER AS refferal,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 42)) AS userAddress,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS deposit_quantity,\n origin_from_address AS depositor,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0xde6857219544bb5b7746f48ed30be6386fefc61b2f864cacf559893bf50fd951',\n '0x2b627736bca15cd5381dcf80b0bf11fd197d01a037c52b927a881a10fb73ba61'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n t.atoken_address AS protocol_market,\n market AS token_address,\n deposit_quantity AS amount_unadj,\n depositor,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n d._log_id,\n d.modified_timestamp,\n 'Deposit' AS event_name\nFROM\n deposits d\n LEFT JOIN token_meta t\n ON d.market = t.underlying_address\n and d.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY d._log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__aave_tokens", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__aave_tokens", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_deposits.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"aave\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave']\n) }}\n\nWITH token_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_tokens') }}\n),\ndeposits AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS onBehalfOf,\n utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INTEGER AS refferal,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 42)) AS userAddress,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS deposit_quantity,\n origin_from_address AS depositor,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0xde6857219544bb5b7746f48ed30be6386fefc61b2f864cacf559893bf50fd951',\n '0x2b627736bca15cd5381dcf80b0bf11fd197d01a037c52b927a881a10fb73ba61'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n t.atoken_address AS protocol_market,\n market AS token_address,\n deposit_quantity AS amount_unadj,\n depositor,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n d._log_id,\n d.modified_timestamp,\n 'Deposit' AS event_name\nFROM\n deposits d\n LEFT JOIN token_meta t\n ON d.market = t.underlying_address\n and d.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY d._log_id\nORDER BY\n d.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH token_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n polygon.silver_lending.aave_tokens\n),\ndeposits AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS onBehalfOf,\n utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INTEGER AS refferal,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 42)) AS userAddress,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS deposit_quantity,\n origin_from_address AS depositor,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING IN (\n '0xde6857219544bb5b7746f48ed30be6386fefc61b2f864cacf559893bf50fd951',\n '0x2b627736bca15cd5381dcf80b0bf11fd197d01a037c52b927a881a10fb73ba61'\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.aave_deposits\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n t.atoken_address AS protocol_market,\n market AS token_address,\n deposit_quantity AS amount_unadj,\n depositor,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n d._log_id,\n d.modified_timestamp,\n 'Deposit' AS event_name\nFROM\n deposits d\n LEFT JOIN token_meta t\n ON d.market = t.underlying_address\n and d.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY d._log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__aave_interest_rates": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__aave_interest_rates", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_interest_rates.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_interest_rates.sql", "unique_id": "model.fsc_evm.silver_lending__aave_interest_rates", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "aave", "silver_lending__aave_interest_rates"], "alias": "aave_interest_rates", "checksum": {"name": "sha256", "checksum": "05a919f9f8d583f41a1449f444e53200f4063ae4debb37b32009da62a2cdbfde"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "aave", "interest_rates"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "aave", "interest_rates"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "aave", "interest_rates"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018406.820911, "relation_name": "polygon.silver_lending.aave_interest_rates", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave','interest_rates']\n) }}\n\nWITH --borrows from Aave LendingPool contracts\ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_tokens') }}\n UNION ALL\n SELECT\n atoken_created_block,\n version_pool,\n NULL AS treasury_address,\n atoken_address,\n NULL AS token_stable_debt_address,\n NULL AS token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_ethereum_tokens') }}\n \n),\nreserve_data AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n contract_address as lending_pool_contract,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS liquidity_rate,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS stable_borrow_rate,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS variable_borrow_rate,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS liquidity_index,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n ) AS variable_borrow_index,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0x804c9b842b2748a22bb64b345453a3de7ca54a6ca45ce00d415894979e22897a'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND lending_pool_contract IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n r.tx_hash,\n r.block_number,\n r.block_timestamp,\n r.event_index,\n r.origin_from_address,\n r.origin_to_address,\n r.origin_function_signature,\n r.contract_address,\n r.token_address,\n liquidity_rate AS supply_rate_unadj,\n stable_borrow_rate AS stable_borrow_rate_unadj,\n variable_borrow_rate AS variable_borrow_rate_unadj,\n r.liquidity_index,\n r.variable_borrow_index,\n r.lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n r._log_id,\n r.modified_timestamp,\n 'Borrow' AS event_name\nFROM\n reserve_data r\n LEFT JOIN token_meta t\n ON r.token_address = t.underlying_address\n and r.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY r._log_id\nORDER BY\n r.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__aave_tokens", "package": null, "version": null}, {"name": "silver_lending__aave_ethereum_tokens", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__aave_tokens", "model.fsc_evm.silver_lending__aave_ethereum_tokens", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/aave/silver_lending__aave_interest_rates.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"aave\",\n \"interest_rates\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave','interest_rates']\n) }}\n\nWITH --borrows from Aave LendingPool contracts\ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_tokens') }}\n UNION ALL\n SELECT\n atoken_created_block,\n version_pool,\n NULL AS treasury_address,\n atoken_address,\n NULL AS token_stable_debt_address,\n NULL AS token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_ethereum_tokens') }}\n \n),\nreserve_data AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n contract_address as lending_pool_contract,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS liquidity_rate,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS stable_borrow_rate,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS variable_borrow_rate,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS liquidity_index,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n ) AS variable_borrow_index,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0x804c9b842b2748a22bb64b345453a3de7ca54a6ca45ce00d415894979e22897a'\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND lending_pool_contract IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n r.tx_hash,\n r.block_number,\n r.block_timestamp,\n r.event_index,\n r.origin_from_address,\n r.origin_to_address,\n r.origin_function_signature,\n r.contract_address,\n r.token_address,\n liquidity_rate AS supply_rate_unadj,\n stable_borrow_rate AS stable_borrow_rate_unadj,\n variable_borrow_rate AS variable_borrow_rate_unadj,\n r.liquidity_index,\n r.variable_borrow_index,\n r.lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n r._log_id,\n r.modified_timestamp,\n 'Borrow' AS event_name\nFROM\n reserve_data r\n LEFT JOIN token_meta t\n ON r.token_address = t.underlying_address\n and r.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY r._log_id\nORDER BY\n r.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH --borrows from Aave LendingPool contracts\ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n treasury_address,\n atoken_address,\n token_stable_debt_address,\n token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n polygon.silver_lending.aave_tokens\n UNION ALL\n SELECT\n atoken_created_block,\n version_pool,\n NULL AS treasury_address,\n atoken_address,\n NULL AS token_stable_debt_address,\n NULL AS token_variable_debt_address,\n atoken_version,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n polygon.silver_lending.aave_ethereum_tokens\n \n),\nreserve_data AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n contract_address as lending_pool_contract,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS token_address,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n )\n ) AS liquidity_rate,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n )\n ) AS stable_borrow_rate,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n )\n ) AS variable_borrow_rate,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n )\n ) AS liquidity_index,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n )\n ) AS variable_borrow_index,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING = '0x804c9b842b2748a22bb64b345453a3de7ca54a6ca45ce00d415894979e22897a'\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.aave_interest_rates\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nAND lending_pool_contract IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n r.tx_hash,\n r.block_number,\n r.block_timestamp,\n r.event_index,\n r.origin_from_address,\n r.origin_to_address,\n r.origin_function_signature,\n r.contract_address,\n r.token_address,\n liquidity_rate AS supply_rate_unadj,\n stable_borrow_rate AS stable_borrow_rate_unadj,\n variable_borrow_rate AS variable_borrow_rate_unadj,\n r.liquidity_index,\n r.variable_borrow_index,\n r.lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n r._log_id,\n r.modified_timestamp,\n 'Borrow' AS event_name\nFROM\n reserve_data r\n LEFT JOIN token_meta t\n ON r.token_address = t.underlying_address\n and r.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY r._log_id\nORDER BY\n r.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__euler_repayments": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__euler_repayments", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/euler/silver_lending__euler_repayments.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/euler/silver_lending__euler_repayments.sql", "unique_id": "model.fsc_evm.silver_lending__euler_repayments", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "euler", "silver_lending__euler_repayments"], "alias": "euler_repayments", "checksum": {"name": "sha256", "checksum": "c3dd17e7c7e26499fb65dda2f1f2bdd2ff71582b02eb586245b34ad59ba608be"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "euler"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "euler"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "euler"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018407.1344142, "relation_name": "polygon.silver_lending.euler_repayments", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','euler']\n) }}\n\nWITH token_meta AS (\n SELECT\n contract_address,\n token_name,\n token_symbol,\n token_decimals,\n segmented_data,\n creator,\n underlying_address,\n underlying_name,\n protocol,\n version,\n dToken\n FROM\n {{ ref('silver_lending__euler_tokens') }}\n),\nrepay AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS market,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS borrower_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS repayer,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS repayed_amount,\n origin_from_address AS repayer_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0x4cdde6e09bb755c9a5589ebaec640bbfedff1362d4b255ebf8339782b9942faa'\n and contract_address in (\n select\n distinct(contract_address)\n from\n token_meta\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n r.contract_address,\n t.dToken AS protocol_market,\n t.underlying_address AS token_address,\n repayed_amount AS amount_unadj,\n repayer_address AS payer,\n borrower_address AS borrower,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n r._log_id,\n r.modified_timestamp,\n 'Repay' AS event_name\nFROM\n repay r\n LEFT JOIN token_meta t\n ON r.contract_address = t.contract_address qualify(ROW_NUMBER() over(PARTITION BY r._log_id\nORDER BY\n r.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__euler_tokens", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__euler_tokens", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/euler/silver_lending__euler_repayments.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"euler\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','euler']\n) }}\n\nWITH token_meta AS (\n SELECT\n contract_address,\n token_name,\n token_symbol,\n token_decimals,\n segmented_data,\n creator,\n underlying_address,\n underlying_name,\n protocol,\n version,\n dToken\n FROM\n {{ ref('silver_lending__euler_tokens') }}\n),\nrepay AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS market,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS borrower_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS repayer,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS repayed_amount,\n origin_from_address AS repayer_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0x4cdde6e09bb755c9a5589ebaec640bbfedff1362d4b255ebf8339782b9942faa'\n and contract_address in (\n select\n distinct(contract_address)\n from\n token_meta\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n r.contract_address,\n t.dToken AS protocol_market,\n t.underlying_address AS token_address,\n repayed_amount AS amount_unadj,\n repayer_address AS payer,\n borrower_address AS borrower,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n r._log_id,\n r.modified_timestamp,\n 'Repay' AS event_name\nFROM\n repay r\n LEFT JOIN token_meta t\n ON r.contract_address = t.contract_address qualify(ROW_NUMBER() over(PARTITION BY r._log_id\nORDER BY\n r.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH token_meta AS (\n SELECT\n contract_address,\n token_name,\n token_symbol,\n token_decimals,\n segmented_data,\n creator,\n underlying_address,\n underlying_name,\n protocol,\n version,\n dToken\n FROM\n polygon.silver_lending.euler_tokens\n),\nrepay AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS market,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS borrower_address,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS repayer,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS repayed_amount,\n origin_from_address AS repayer_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING = '0x4cdde6e09bb755c9a5589ebaec640bbfedff1362d4b255ebf8339782b9942faa'\n and contract_address in (\n select\n distinct(contract_address)\n from\n token_meta\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.euler_repayments\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n r.contract_address,\n t.dToken AS protocol_market,\n t.underlying_address AS token_address,\n repayed_amount AS amount_unadj,\n repayer_address AS payer,\n borrower_address AS borrower,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n r._log_id,\n r.modified_timestamp,\n 'Repay' AS event_name\nFROM\n repay r\n LEFT JOIN token_meta t\n ON r.contract_address = t.contract_address qualify(ROW_NUMBER() over(PARTITION BY r._log_id\nORDER BY\n r.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__euler_withdraws": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__euler_withdraws", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/euler/silver_lending__euler_withdraws.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/euler/silver_lending__euler_withdraws.sql", "unique_id": "model.fsc_evm.silver_lending__euler_withdraws", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "euler", "silver_lending__euler_withdraws"], "alias": "euler_withdraws", "checksum": {"name": "sha256", "checksum": "a0dda2323ad9132fb021fb8b5e13491697669f4515241dea6ae92c0111828b4b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "euler"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "euler"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "euler"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018407.4480994, "relation_name": "polygon.silver_lending.euler_withdraws", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','euler']\n) }}\n\nWITH token_meta AS (\n SELECT\n contract_address,\n token_name,\n token_symbol,\n token_decimals,\n segmented_data,\n creator,\n underlying_address,\n underlying_name,\n protocol,\n version,\n dToken\n FROM\n {{ ref('silver_lending__euler_tokens') }}\n),\nbase AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS onBehalfOf,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS depositor,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS withdraw_quantity,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS withdraw_quantity_shares,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0xfbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db'\n and contract_address in (\n select\n distinct(contract_address)\n from\n token_meta\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n t.dToken AS protocol_market,\n t.underlying_address AS token_address,\n withdraw_quantity AS amount_unadj,\n d.depositor,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n d._log_id,\n d.modified_timestamp,\n 'Withdraw' AS event_name\nFROM\n base d\n LEFT JOIN token_meta t\n ON d.contract_address = t.contract_address qualify(ROW_NUMBER() over(PARTITION BY d._log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__euler_tokens", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__euler_tokens", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/euler/silver_lending__euler_withdraws.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"euler\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','euler']\n) }}\n\nWITH token_meta AS (\n SELECT\n contract_address,\n token_name,\n token_symbol,\n token_decimals,\n segmented_data,\n creator,\n underlying_address,\n underlying_name,\n protocol,\n version,\n dToken\n FROM\n {{ ref('silver_lending__euler_tokens') }}\n),\nbase AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS onBehalfOf,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS depositor,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS withdraw_quantity,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS withdraw_quantity_shares,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0xfbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db'\n and contract_address in (\n select\n distinct(contract_address)\n from\n token_meta\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n t.dToken AS protocol_market,\n t.underlying_address AS token_address,\n withdraw_quantity AS amount_unadj,\n d.depositor,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n d._log_id,\n d.modified_timestamp,\n 'Withdraw' AS event_name\nFROM\n base d\n LEFT JOIN token_meta t\n ON d.contract_address = t.contract_address qualify(ROW_NUMBER() over(PARTITION BY d._log_id\nORDER BY\n d.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH token_meta AS (\n SELECT\n contract_address,\n token_name,\n token_symbol,\n token_decimals,\n segmented_data,\n creator,\n underlying_address,\n underlying_name,\n protocol,\n version,\n dToken\n FROM\n polygon.silver_lending.euler_tokens\n),\nbase AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS onBehalfOf,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS depositor,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS withdraw_quantity,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS withdraw_quantity_shares,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING = '0xfbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db'\n and contract_address in (\n select\n distinct(contract_address)\n from\n token_meta\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.euler_withdraws\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n t.dToken AS protocol_market,\n t.underlying_address AS token_address,\n withdraw_quantity AS amount_unadj,\n d.depositor,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n d._log_id,\n d.modified_timestamp,\n 'Withdraw' AS event_name\nFROM\n base d\n LEFT JOIN token_meta t\n ON d.contract_address = t.contract_address qualify(ROW_NUMBER() over(PARTITION BY d._log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__euler_tokens": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__euler_tokens", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/euler/silver_lending__euler_tokens.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/euler/silver_lending__euler_tokens.sql", "unique_id": "model.fsc_evm.silver_lending__euler_tokens", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "euler", "silver_lending__euler_tokens"], "alias": "euler_tokens", "checksum": {"name": "sha256", "checksum": "009e26712e7040c153aff2d2331ed89d9fdfe51f037ede7d8c2a79e262b296d8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "euler"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "contract_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "defi", "lending", "curated", "euler"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "contract_address", "tags": ["silver", "defi", "lending", "curated", "euler"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018407.7616835, "relation_name": "polygon.silver_lending.euler_tokens", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = \"contract_address\",\n tags = ['silver','defi','lending','curated','euler']\n) }}\nWITH euler_addresses AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'euler_origin_to_address'\n),\nbase_events as (\n select \n block_number,\n block_timestamp,\n tx_hash,\n origin_from_address, \n origin_to_address,\n origin_function_signature, \n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS creator,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS underlying_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS dToken,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n from \n {{ ref('core__fact_event_logs') }} l\n where \n topic_0 = '0x0cd345140b9008a43f99a999a328ece572a0193e8c8bf5f5755585e6f293b85e'\n AND origin_to_address in (\n select\n distinct(contract_address)\n from\n euler_addresses\n )\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nselect\n b.block_number,\n b.block_timestamp,\n b.tx_hash,\n b.origin_from_address,\n b.origin_to_address,\n b.origin_function_signature,\n b.event_index,\n b.contract_address,\n c.token_name,\n c.token_symbol,\n c.token_decimals,\n b.segmented_data,\n b.creator,\n b.underlying_address,\n u.token_name as underlying_name,\n u.token_symbol as underlying_symbol,\n u.token_decimals as underlying_decimals,\n b.dToken,\n e.protocol,\n e.version,\n b._log_id,\n b.modified_timestamp\nfrom base_events b\nleft join {{ ref('silver__contracts') }} c\n on b.contract_address = c.contract_address\nleft join {{ ref('silver__contracts') }} u\n on b.underlying_address = u.contract_address\nleft join euler_addresses e\n on b.origin_to_address = e.contract_address", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver__contracts", "package": null, "version": null}, {"name": "silver__contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver__contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/euler/silver_lending__euler_tokens.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"euler\"\n ],\n \"unique_key\": \"contract_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = \"contract_address\",\n tags = ['silver','defi','lending','curated','euler']\n) }}\nWITH euler_addresses AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'euler_origin_to_address'\n),\nbase_events as (\n select \n block_number,\n block_timestamp,\n tx_hash,\n origin_from_address, \n origin_to_address,\n origin_function_signature, \n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS creator,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS underlying_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS dToken,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n from \n {{ ref('core__fact_event_logs') }} l\n where \n topic_0 = '0x0cd345140b9008a43f99a999a328ece572a0193e8c8bf5f5755585e6f293b85e'\n AND origin_to_address in (\n select\n distinct(contract_address)\n from\n euler_addresses\n )\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n)\nselect\n b.block_number,\n b.block_timestamp,\n b.tx_hash,\n b.origin_from_address,\n b.origin_to_address,\n b.origin_function_signature,\n b.event_index,\n b.contract_address,\n c.token_name,\n c.token_symbol,\n c.token_decimals,\n b.segmented_data,\n b.creator,\n b.underlying_address,\n u.token_name as underlying_name,\n u.token_symbol as underlying_symbol,\n u.token_decimals as underlying_decimals,\n b.dToken,\n e.protocol,\n e.version,\n b._log_id,\n b.modified_timestamp\nfrom base_events b\nleft join {{ ref('silver__contracts') }} c\n on b.contract_address = c.contract_address\nleft join {{ ref('silver__contracts') }} u\n on b.underlying_address = u.contract_address\nleft join euler_addresses e\n on b.origin_to_address = e.contract_address\n*/\n\n\nWITH euler_addresses AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x2501713a67a3dedde090e42759088a7ef37d4eab', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v3', 'aave_treasury'),\n \n ('0x794a61358d6845594f94dc1db02a252b5b4814ad', 'aave', 'v3', 'aave_version_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v2', 'aave_treasury'),\n \n ('0x8dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf', 'aave', 'v2', 'aave_version_address'),\n \n ('0x1bf0c2541f820e775182832f06c0b7fc27a25f67', 'morpho', 'v1', 'morpho_blue_address')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n type = 'euler_origin_to_address'\n),\nbase_events as (\n select \n block_number,\n block_timestamp,\n tx_hash,\n origin_from_address, \n origin_to_address,\n origin_function_signature, \n event_index,\n l.contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS creator,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS underlying_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS dToken,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n from \n polygon.core.fact_event_logs l\n where \n topic_0 = '0x0cd345140b9008a43f99a999a328ece572a0193e8c8bf5f5755585e6f293b85e'\n AND origin_to_address in (\n select\n distinct(contract_address)\n from\n euler_addresses\n )\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.euler_tokens\n )\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n)\nselect\n b.block_number,\n b.block_timestamp,\n b.tx_hash,\n b.origin_from_address,\n b.origin_to_address,\n b.origin_function_signature,\n b.event_index,\n b.contract_address,\n c.token_name,\n c.token_symbol,\n c.token_decimals,\n b.segmented_data,\n b.creator,\n b.underlying_address,\n u.token_name as underlying_name,\n u.token_symbol as underlying_symbol,\n u.token_decimals as underlying_decimals,\n b.dToken,\n e.protocol,\n e.version,\n b._log_id,\n b.modified_timestamp\nfrom base_events b\nleft join polygon.silver.contracts c\n on b.contract_address = c.contract_address\nleft join polygon.silver.contracts u\n on b.underlying_address = u.contract_address\nleft join euler_addresses e\n on b.origin_to_address = e.contract_address", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__euler_deposits": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__euler_deposits", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/euler/silver_lending__euler_deposits.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/euler/silver_lending__euler_deposits.sql", "unique_id": "model.fsc_evm.silver_lending__euler_deposits", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "euler", "silver_lending__euler_deposits"], "alias": "euler_deposits", "checksum": {"name": "sha256", "checksum": "eba4cf06d0eab7d12ff64d99939c52c11db6dcf06ba2cf754b9318bebebc7d16"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "euler"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "euler"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "euler"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018408.0743203, "relation_name": "polygon.silver_lending.euler_deposits", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','euler']\n) }}\n\nWITH token_meta AS (\n SELECT\n contract_address,\n token_name,\n token_symbol,\n token_decimals,\n segmented_data,\n creator,\n underlying_address,\n underlying_name,\n protocol,\n version,\n dToken\n FROM\n {{ ref('silver_lending__euler_tokens') }}\n),\ndeposits AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS onBehalfOf,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS userAddress,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS deposit_quantity,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS deposit_quantity_shares,\n origin_from_address AS depositor,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7'\n and contract_address in (\n select\n distinct(contract_address)\n from\n token_meta\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n t.dToken AS protocol_market,\n t.underlying_address AS token_address,\n deposit_quantity AS amount_unadj,\n depositor,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n d._log_id,\n d.modified_timestamp,\n 'Deposit' AS event_name\nFROM\n deposits d\n LEFT JOIN token_meta t\n ON d.contract_address = t.contract_address qualify(ROW_NUMBER() over(PARTITION BY d._log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__euler_tokens", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__euler_tokens", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/euler/silver_lending__euler_deposits.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"euler\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','euler']\n) }}\n\nWITH token_meta AS (\n SELECT\n contract_address,\n token_name,\n token_symbol,\n token_decimals,\n segmented_data,\n creator,\n underlying_address,\n underlying_name,\n protocol,\n version,\n dToken\n FROM\n {{ ref('silver_lending__euler_tokens') }}\n),\ndeposits AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS onBehalfOf,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS userAddress,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS deposit_quantity,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS deposit_quantity_shares,\n origin_from_address AS depositor,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7'\n and contract_address in (\n select\n distinct(contract_address)\n from\n token_meta\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n t.dToken AS protocol_market,\n t.underlying_address AS token_address,\n deposit_quantity AS amount_unadj,\n depositor,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n d._log_id,\n d.modified_timestamp,\n 'Deposit' AS event_name\nFROM\n deposits d\n LEFT JOIN token_meta t\n ON d.contract_address = t.contract_address qualify(ROW_NUMBER() over(PARTITION BY d._log_id\nORDER BY\n d.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH token_meta AS (\n SELECT\n contract_address,\n token_name,\n token_symbol,\n token_decimals,\n segmented_data,\n creator,\n underlying_address,\n underlying_name,\n protocol,\n version,\n dToken\n FROM\n polygon.silver_lending.euler_tokens\n),\ndeposits AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS onBehalfOf,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS userAddress,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS deposit_quantity,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS deposit_quantity_shares,\n origin_from_address AS depositor,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING = '0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7'\n and contract_address in (\n select\n distinct(contract_address)\n from\n token_meta\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.euler_deposits\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n t.dToken AS protocol_market,\n t.underlying_address AS token_address,\n deposit_quantity AS amount_unadj,\n depositor,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n d._log_id,\n d.modified_timestamp,\n 'Deposit' AS event_name\nFROM\n deposits d\n LEFT JOIN token_meta t\n ON d.contract_address = t.contract_address qualify(ROW_NUMBER() over(PARTITION BY d._log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__euler_borrows": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__euler_borrows", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/euler/silver_lending__euler_borrows.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/euler/silver_lending__euler_borrows.sql", "unique_id": "model.fsc_evm.silver_lending__euler_borrows", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "euler", "silver_lending__euler_borrows"], "alias": "euler_borrows", "checksum": {"name": "sha256", "checksum": "4256db7f3cb90b40ef1148a2ddd042541aa0f2fcf8042f00f8abd1ed13159e5c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "euler"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "euler"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "euler"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018408.3873942, "relation_name": "polygon.silver_lending.euler_borrows", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','euler']\n) }}\n\nWITH token_meta AS (\n SELECT\n contract_address,\n token_name,\n token_symbol,\n token_decimals,\n segmented_data,\n creator,\n underlying_address,\n underlying_name,\n protocol,\n version,\n dToken\n FROM\n {{ ref('silver_lending__euler_tokens') }}\n),\nbase AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS market,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS account,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS borrow_quantity,\n origin_from_address AS borrower,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0xcbc04eca7e9da35cb1393a6135a199ca52e450d5e9251cbd99f7847d33a36750'\n and contract_address in (\n select\n distinct(contract_address)\n from\n token_meta\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n t.dToken AS protocol_market,\n t.underlying_address AS token_address,\n borrow_quantity AS amount_unadj,\n borrower,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n d._log_id,\n d.modified_timestamp,\n 'Borrow' AS event_name\nFROM\n base d\n LEFT JOIN token_meta t\n ON d.contract_address = t.contract_address qualify(ROW_NUMBER() over(PARTITION BY d._log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__euler_tokens", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__euler_tokens", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/euler/silver_lending__euler_borrows.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"euler\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','euler']\n) }}\n\nWITH token_meta AS (\n SELECT\n contract_address,\n token_name,\n token_symbol,\n token_decimals,\n segmented_data,\n creator,\n underlying_address,\n underlying_name,\n protocol,\n version,\n dToken\n FROM\n {{ ref('silver_lending__euler_tokens') }}\n),\nbase AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS market,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS account,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS borrow_quantity,\n origin_from_address AS borrower,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0xcbc04eca7e9da35cb1393a6135a199ca52e450d5e9251cbd99f7847d33a36750'\n and contract_address in (\n select\n distinct(contract_address)\n from\n token_meta\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n t.dToken AS protocol_market,\n t.underlying_address AS token_address,\n borrow_quantity AS amount_unadj,\n borrower,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n d._log_id,\n d.modified_timestamp,\n 'Borrow' AS event_name\nFROM\n base d\n LEFT JOIN token_meta t\n ON d.contract_address = t.contract_address qualify(ROW_NUMBER() over(PARTITION BY d._log_id\nORDER BY\n d.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH token_meta AS (\n SELECT\n contract_address,\n token_name,\n token_symbol,\n token_decimals,\n segmented_data,\n creator,\n underlying_address,\n underlying_name,\n protocol,\n version,\n dToken\n FROM\n polygon.silver_lending.euler_tokens\n),\nbase AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS market,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS account,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS borrow_quantity,\n origin_from_address AS borrower,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING = '0xcbc04eca7e9da35cb1393a6135a199ca52e450d5e9251cbd99f7847d33a36750'\n and contract_address in (\n select\n distinct(contract_address)\n from\n token_meta\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.euler_borrows\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n d.contract_address,\n t.dToken AS protocol_market,\n t.underlying_address AS token_address,\n borrow_quantity AS amount_unadj,\n borrower,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n d._log_id,\n d.modified_timestamp,\n 'Borrow' AS event_name\nFROM\n base d\n LEFT JOIN token_meta t\n ON d.contract_address = t.contract_address qualify(ROW_NUMBER() over(PARTITION BY d._log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__euler_liquidations": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__euler_liquidations", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/euler/silver_lending__euler_liquidations.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/euler/silver_lending__euler_liquidations.sql", "unique_id": "model.fsc_evm.silver_lending__euler_liquidations", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "euler", "silver_lending__euler_liquidations"], "alias": "euler_liquidations", "checksum": {"name": "sha256", "checksum": "02a4054c53cccdcd1674ddf024aeedf83c53b29aa079296bc2f930ee4e4fc498"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "euler"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "euler"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "euler"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018408.7003791, "relation_name": "polygon.silver_lending.euler_liquidations", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','euler']\n) }}\n\nWITH token_meta AS (\n SELECT\n contract_address,\n token_name,\n token_symbol,\n token_decimals,\n segmented_data,\n creator,\n underlying_address,\n underlying_name,\n protocol,\n version,\n dToken\n FROM\n {{ ref('silver_lending__euler_tokens') }}\n),\nbase AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS debt_asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS liquidator,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS collateral_asset,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS repaid_amount_unadj,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER AS yield_balance,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0x8246cc71ab01533b5bebc672a636df812f10637ad720797319d5741d5ebb3962'\n and contract_address in (\n select\n distinct(contract_address)\n from\n token_meta\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND tx_succeeded\n)\nSELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n l.liquidator,\n l.borrower,\n l.collateral_asset AS protocol_market,\n amc.underlying_address AS collateral_token,\n coalesce(w.amount_unadj, l.yield_balance) AS liquidated_amount_unadj,\n amd.underlying_address AS debt_token,\n l.repaid_amount_unadj AS repaid_amount_unadj,\n amc.protocol || '-' || amc.version AS platform,\n amc.protocol,\n amc.version,\n l._log_id,\n l.modified_timestamp,\n 'Liquidate' AS event_name\nFROM\n base l\n LEFT JOIN token_meta amc\n ON l.collateral_asset = amc.contract_address\n LEFT JOIN token_meta amd\n ON l.debt_asset = amd.contract_address \n LEFT JOIN {{ ref('silver_lending__euler_withdraws') }} w\n ON l.tx_hash = w.tx_hash\n AND l.collateral_asset = w.contract_address\n AND l.liquidator = w.depositor \nWHERE amc.contract_address is not null qualify(ROW_NUMBER() over(PARTITION BY l._log_id\nORDER BY\n l.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__euler_tokens", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver_lending__euler_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__euler_tokens", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__euler_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/euler/silver_lending__euler_liquidations.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"euler\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','euler']\n) }}\n\nWITH token_meta AS (\n SELECT\n contract_address,\n token_name,\n token_symbol,\n token_decimals,\n segmented_data,\n creator,\n underlying_address,\n underlying_name,\n protocol,\n version,\n dToken\n FROM\n {{ ref('silver_lending__euler_tokens') }}\n),\nbase AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS debt_asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS liquidator,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS collateral_asset,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS repaid_amount_unadj,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER AS yield_balance,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING = '0x8246cc71ab01533b5bebc672a636df812f10637ad720797319d5741d5ebb3962'\n and contract_address in (\n select\n distinct(contract_address)\n from\n token_meta\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND tx_succeeded\n)\nSELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n l.liquidator,\n l.borrower,\n l.collateral_asset AS protocol_market,\n amc.underlying_address AS collateral_token,\n coalesce(w.amount_unadj, l.yield_balance) AS liquidated_amount_unadj,\n amd.underlying_address AS debt_token,\n l.repaid_amount_unadj AS repaid_amount_unadj,\n amc.protocol || '-' || amc.version AS platform,\n amc.protocol,\n amc.version,\n l._log_id,\n l.modified_timestamp,\n 'Liquidate' AS event_name\nFROM\n base l\n LEFT JOIN token_meta amc\n ON l.collateral_asset = amc.contract_address\n LEFT JOIN token_meta amd\n ON l.debt_asset = amd.contract_address \n LEFT JOIN {{ ref('silver_lending__euler_withdraws') }} w\n ON l.tx_hash = w.tx_hash\n AND l.collateral_asset = w.contract_address\n AND l.liquidator = w.depositor \nWHERE amc.contract_address is not null qualify(ROW_NUMBER() over(PARTITION BY l._log_id\nORDER BY\n l.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH token_meta AS (\n SELECT\n contract_address,\n token_name,\n token_symbol,\n token_decimals,\n segmented_data,\n creator,\n underlying_address,\n underlying_name,\n protocol,\n version,\n dToken\n FROM\n polygon.silver_lending.euler_tokens\n),\nbase AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n contract_address AS debt_asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS liquidator,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS collateral_asset,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS repaid_amount_unadj,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER AS yield_balance,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING = '0x8246cc71ab01533b5bebc672a636df812f10637ad720797319d5741d5ebb3962'\n and contract_address in (\n select\n distinct(contract_address)\n from\n token_meta\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.euler_liquidations\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nAND tx_succeeded\n)\nSELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.event_index,\n l.origin_from_address,\n l.origin_to_address,\n l.origin_function_signature,\n l.contract_address,\n l.liquidator,\n l.borrower,\n l.collateral_asset AS protocol_market,\n amc.underlying_address AS collateral_token,\n coalesce(w.amount_unadj, l.yield_balance) AS liquidated_amount_unadj,\n amd.underlying_address AS debt_token,\n l.repaid_amount_unadj AS repaid_amount_unadj,\n amc.protocol || '-' || amc.version AS platform,\n amc.protocol,\n amc.version,\n l._log_id,\n l.modified_timestamp,\n 'Liquidate' AS event_name\nFROM\n base l\n LEFT JOIN token_meta amc\n ON l.collateral_asset = amc.contract_address\n LEFT JOIN token_meta amd\n ON l.debt_asset = amd.contract_address \n LEFT JOIN polygon.silver_lending.euler_withdraws w\n ON l.tx_hash = w.tx_hash\n AND l.collateral_asset = w.contract_address\n AND l.liquidator = w.depositor \nWHERE amc.contract_address is not null qualify(ROW_NUMBER() over(PARTITION BY l._log_id\nORDER BY\n l.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__aave_ethereum_flashloans": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__aave_ethereum_flashloans", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_flashloans.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_flashloans.sql", "unique_id": "model.fsc_evm.silver_lending__aave_ethereum_flashloans", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "aave_ethereum", "silver_lending__aave_ethereum_flashloans"], "alias": "aave_ethereum_flashloans", "checksum": {"name": "sha256", "checksum": "3c2c5630e8a931b02b44d9efb78d2d1ef27cd8902e0927fa88b2620bacf21f27"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "aave_ethereum", "flashloans"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "aave_ethereum", "flashloans"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "aave_ethereum", "flashloans"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018409.0156167, "relation_name": "polygon.silver_lending.aave_ethereum_flashloans", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave_ethereum','flashloans']\n) }}\n\nWITH \ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n atoken_address,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_ethereum_tokens') }}\n),\nflashloan AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS target_address,\n CASE\n WHEN topics [0] :: STRING = '0x631042c832b07452973831137f2d73e395028b44b250dedc5abb0ee766e168ac' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0'\n AND origin_to_address IS NULL THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN origin_to_address\n ELSE origin_from_address\n END AS initiator_address,\n CASE\n WHEN topics [0] :: STRING = '0x631042c832b07452973831137f2d73e395028b44b250dedc5abb0ee766e168ac' THEN CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0x5b8f46461c1dd69fb968f1a003acee221ea3e19540e350233b612ddb43433b55' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n END AS asset_1,\n CASE\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER\n END AS flashloan_quantity,\n CASE\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n END AS premium_quantity,\n CASE\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER\n END AS refferalCode,\n CASE \n WHEN LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' \n THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n END AS market,\n case when asset_1 = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' then '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' else asset_1 end AS underlying_address,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0x631042c832b07452973831137f2d73e395028b44b250dedc5abb0ee766e168ac',\n '0x5b8f46461c1dd69fb968f1a003acee221ea3e19540e350233b612ddb43433b55',\n '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n t.atoken_address AS protocol_market,\n initiator_address AS initiator,\n target_address AS target,\n f.underlying_address AS token_address,\n f.market,\n flashloan_quantity AS flashloan_amount_unadj,\n premium_quantity AS premium_amount_unadj,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n f._log_id,\n f.modified_timestamp,\n 'FlashLoan' AS event_name\nFROM\n flashloan f\n LEFT JOIN token_meta t\n ON f.underlying_address = t.underlying_address\n and f.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY f._log_id\nORDER BY\n f.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__aave_ethereum_tokens", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__aave_ethereum_tokens", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_flashloans.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"aave_ethereum\",\n \"flashloans\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave_ethereum','flashloans']\n) }}\n\nWITH \ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n atoken_address,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_ethereum_tokens') }}\n),\nflashloan AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS target_address,\n CASE\n WHEN topics [0] :: STRING = '0x631042c832b07452973831137f2d73e395028b44b250dedc5abb0ee766e168ac' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0'\n AND origin_to_address IS NULL THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN origin_to_address\n ELSE origin_from_address\n END AS initiator_address,\n CASE\n WHEN topics [0] :: STRING = '0x631042c832b07452973831137f2d73e395028b44b250dedc5abb0ee766e168ac' THEN CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0x5b8f46461c1dd69fb968f1a003acee221ea3e19540e350233b612ddb43433b55' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n END AS asset_1,\n CASE\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER\n END AS flashloan_quantity,\n CASE\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n END AS premium_quantity,\n CASE\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER\n END AS refferalCode,\n CASE \n WHEN LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' \n THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n END AS market,\n case when asset_1 = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' then '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' else asset_1 end AS underlying_address,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0x631042c832b07452973831137f2d73e395028b44b250dedc5abb0ee766e168ac',\n '0x5b8f46461c1dd69fb968f1a003acee221ea3e19540e350233b612ddb43433b55',\n '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n t.atoken_address AS protocol_market,\n initiator_address AS initiator,\n target_address AS target,\n f.underlying_address AS token_address,\n f.market,\n flashloan_quantity AS flashloan_amount_unadj,\n premium_quantity AS premium_amount_unadj,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n f._log_id,\n f.modified_timestamp,\n 'FlashLoan' AS event_name\nFROM\n flashloan f\n LEFT JOIN token_meta t\n ON f.underlying_address = t.underlying_address\n and f.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY f._log_id\nORDER BY\n f.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH \ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n atoken_address,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n polygon.silver_lending.aave_ethereum_tokens\n),\nflashloan AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS target_address,\n CASE\n WHEN topics [0] :: STRING = '0x631042c832b07452973831137f2d73e395028b44b250dedc5abb0ee766e168ac' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0'\n AND origin_to_address IS NULL THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN origin_to_address\n ELSE origin_from_address\n END AS initiator_address,\n CASE\n WHEN topics [0] :: STRING = '0x631042c832b07452973831137f2d73e395028b44b250dedc5abb0ee766e168ac' THEN CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0x5b8f46461c1dd69fb968f1a003acee221ea3e19540e350233b612ddb43433b55' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n END AS asset_1,\n CASE\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER\n END AS flashloan_quantity,\n CASE\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n END AS premium_quantity,\n CASE\n WHEN topics [0] :: STRING = '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0' THEN utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER\n END AS refferalCode,\n CASE \n WHEN LOWER(CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))) = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' \n THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n END AS market,\n case when asset_1 = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' then '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' else asset_1 end AS underlying_address,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING IN (\n '0x631042c832b07452973831137f2d73e395028b44b250dedc5abb0ee766e168ac',\n '0x5b8f46461c1dd69fb968f1a003acee221ea3e19540e350233b612ddb43433b55',\n '0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0'\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.aave_ethereum_flashloans\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n t.atoken_address AS protocol_market,\n initiator_address AS initiator,\n target_address AS target,\n f.underlying_address AS token_address,\n f.market,\n flashloan_quantity AS flashloan_amount_unadj,\n premium_quantity AS premium_amount_unadj,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n f._log_id,\n f.modified_timestamp,\n 'FlashLoan' AS event_name\nFROM\n flashloan f\n LEFT JOIN token_meta t\n ON f.underlying_address = t.underlying_address\n and f.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY f._log_id\nORDER BY\n f.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__aave_ethereum_withdraws": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__aave_ethereum_withdraws", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_withdraws.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_withdraws.sql", "unique_id": "model.fsc_evm.silver_lending__aave_ethereum_withdraws", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "aave_ethereum", "silver_lending__aave_ethereum_withdraws"], "alias": "aave_ethereum_withdraws", "checksum": {"name": "sha256", "checksum": "4d437dc324de414c3bce500c0a373935d0bc8e2fb8635da66eba6e5da0663a43"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "aave_ethereum"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "aave_ethereum"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "aave_ethereum"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018409.3264256, "relation_name": "polygon.silver_lending.aave_ethereum_withdraws", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave_ethereum']\n) }}\n\nWITH \ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n atoken_address,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_ethereum_tokens') }}\n),\nwithdraw AS(\n SELECT\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE \n WHEN LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' \n THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))\n END AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS useraddress,\n CASE\n WHEN topics [0] :: STRING = '0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7' THEN CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40))\n ELSE origin_from_address\n END AS depositor,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS withdraw_amount,\n tx_hash,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7',\n '0x9c4ed599cd8555b9c1e8cd7643240d7d71eb76b792948c49fcb4d411f7b6b3c6'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n t.atoken_address AS protocol_market,\n market AS token_address,\n withdraw_amount AS amount_unadj,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n w._log_id,\n w.modified_timestamp,\n CASE\n WHEN t.version = 'v1' THEN 'RedeemUnderlying'\n ELSE 'Withdraw'\n END AS event_name\nFROM\n withdraw w\n LEFT JOIN token_meta t\n ON w.market = t.underlying_address\n and w.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY w._log_id\nORDER BY\n w.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__aave_ethereum_tokens", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__aave_ethereum_tokens", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_withdraws.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"aave_ethereum\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave_ethereum']\n) }}\n\nWITH \ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n atoken_address,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_ethereum_tokens') }}\n),\nwithdraw AS(\n SELECT\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE \n WHEN LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' \n THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))\n END AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS useraddress,\n CASE\n WHEN topics [0] :: STRING = '0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7' THEN CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40))\n ELSE origin_from_address\n END AS depositor,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS withdraw_amount,\n tx_hash,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7',\n '0x9c4ed599cd8555b9c1e8cd7643240d7d71eb76b792948c49fcb4d411f7b6b3c6'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n t.atoken_address AS protocol_market,\n market AS token_address,\n withdraw_amount AS amount_unadj,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n w._log_id,\n w.modified_timestamp,\n CASE\n WHEN t.version = 'v1' THEN 'RedeemUnderlying'\n ELSE 'Withdraw'\n END AS event_name\nFROM\n withdraw w\n LEFT JOIN token_meta t\n ON w.market = t.underlying_address\n and w.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY w._log_id\nORDER BY\n w.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH \ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n atoken_address,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n polygon.silver_lending.aave_ethereum_tokens\n),\nwithdraw AS(\n SELECT\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE \n WHEN LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' \n THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))\n END AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS useraddress,\n CASE\n WHEN topics [0] :: STRING = '0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7' THEN CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40))\n ELSE origin_from_address\n END AS depositor,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS withdraw_amount,\n tx_hash,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING IN (\n '0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7',\n '0x9c4ed599cd8555b9c1e8cd7643240d7d71eb76b792948c49fcb4d411f7b6b3c6'\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.aave_ethereum_withdraws\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n t.atoken_address AS protocol_market,\n market AS token_address,\n withdraw_amount AS amount_unadj,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n w._log_id,\n w.modified_timestamp,\n CASE\n WHEN t.version = 'v1' THEN 'RedeemUnderlying'\n ELSE 'Withdraw'\n END AS event_name\nFROM\n withdraw w\n LEFT JOIN token_meta t\n ON w.market = t.underlying_address\n and w.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY w._log_id\nORDER BY\n w.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__aave_ethereum_liquidations": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__aave_ethereum_liquidations", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_liquidations.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_liquidations.sql", "unique_id": "model.fsc_evm.silver_lending__aave_ethereum_liquidations", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "aave_ethereum", "silver_lending__aave_ethereum_liquidations"], "alias": "aave_ethereum_liquidations", "checksum": {"name": "sha256", "checksum": "8a8eea0ea4b7a33be2e999e12f863eb67704fd7f350b90a1ec2e6833b55d44ca"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "aave_ethereum"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "aave_ethereum"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "aave_ethereum"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018409.6398947, "relation_name": "polygon.silver_lending.aave_ethereum_liquidations", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave_ethereum']\n) }}\n\nWITH \ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n atoken_address,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_ethereum_tokens') }}\n),\nliquidation AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS collateral_asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS debt_asset,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS borrower_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS debt_to_cover_amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS liquidated_amount,\n CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40)) AS liquidator_address,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CASE\n WHEN debt_asset = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE debt_asset\n END AS debt_token,\n CASE\n WHEN collateral_asset = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE collateral_asset\n END AS collateral_token,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0xe413a321e8681d831f4dbccbca790d2952b56f977908e45be37335533e005286',\n '0x56864757fd5b1fc9f38f5f3a981cd8ae512ce41b902cf73fc506ee369c6bc237'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n liquidator_address AS liquidator,\n borrower_address AS borrower,\n amc.atoken_address AS protocol_market,\n l.collateral_token,\n liquidated_amount AS liquidated_amount_unadj,\n l.debt_token,\n debt_to_cover_amount AS repaid_amount_unadj,\n amc.protocol || '-' || amc.version AS platform,\n amc.protocol,\n amc.version,\n l._log_id,\n l.modified_timestamp,\n 'LiquidationCall' AS event_name\nFROM\n liquidation l\n LEFT JOIN token_meta amc\n on l.collateral_token = amc.underlying_address\n and l.lending_pool_contract = amc.version_pool qualify(ROW_NUMBER() over(PARTITION BY l._log_id\nORDER BY\n l.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__aave_ethereum_tokens", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__aave_ethereum_tokens", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_liquidations.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"aave_ethereum\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave_ethereum']\n) }}\n\nWITH \ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n atoken_address,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_ethereum_tokens') }}\n),\nliquidation AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS collateral_asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS debt_asset,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS borrower_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS debt_to_cover_amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS liquidated_amount,\n CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40)) AS liquidator_address,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CASE\n WHEN debt_asset = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE debt_asset\n END AS debt_token,\n CASE\n WHEN collateral_asset = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE collateral_asset\n END AS collateral_token,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0xe413a321e8681d831f4dbccbca790d2952b56f977908e45be37335533e005286',\n '0x56864757fd5b1fc9f38f5f3a981cd8ae512ce41b902cf73fc506ee369c6bc237'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n liquidator_address AS liquidator,\n borrower_address AS borrower,\n amc.atoken_address AS protocol_market,\n l.collateral_token,\n liquidated_amount AS liquidated_amount_unadj,\n l.debt_token,\n debt_to_cover_amount AS repaid_amount_unadj,\n amc.protocol || '-' || amc.version AS platform,\n amc.protocol,\n amc.version,\n l._log_id,\n l.modified_timestamp,\n 'LiquidationCall' AS event_name\nFROM\n liquidation l\n LEFT JOIN token_meta amc\n on l.collateral_token = amc.underlying_address\n and l.lending_pool_contract = amc.version_pool qualify(ROW_NUMBER() over(PARTITION BY l._log_id\nORDER BY\n l.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH \ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n atoken_address,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n polygon.silver_lending.aave_ethereum_tokens\n),\nliquidation AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS collateral_asset,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS debt_asset,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS borrower_address,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS debt_to_cover_amount,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS liquidated_amount,\n CONCAT('0x', SUBSTR(segmented_data [2] :: STRING, 25, 40)) AS liquidator_address,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CASE\n WHEN debt_asset = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE debt_asset\n END AS debt_token,\n CASE\n WHEN collateral_asset = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE collateral_asset\n END AS collateral_token,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING IN (\n '0xe413a321e8681d831f4dbccbca790d2952b56f977908e45be37335533e005286',\n '0x56864757fd5b1fc9f38f5f3a981cd8ae512ce41b902cf73fc506ee369c6bc237'\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.aave_ethereum_liquidations\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n liquidator_address AS liquidator,\n borrower_address AS borrower,\n amc.atoken_address AS protocol_market,\n l.collateral_token,\n liquidated_amount AS liquidated_amount_unadj,\n l.debt_token,\n debt_to_cover_amount AS repaid_amount_unadj,\n amc.protocol || '-' || amc.version AS platform,\n amc.protocol,\n amc.version,\n l._log_id,\n l.modified_timestamp,\n 'LiquidationCall' AS event_name\nFROM\n liquidation l\n LEFT JOIN token_meta amc\n on l.collateral_token = amc.underlying_address\n and l.lending_pool_contract = amc.version_pool qualify(ROW_NUMBER() over(PARTITION BY l._log_id\nORDER BY\n l.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__aave_ethereum_deposits": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__aave_ethereum_deposits", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_deposits.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_deposits.sql", "unique_id": "model.fsc_evm.silver_lending__aave_ethereum_deposits", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "aave_ethereum", "silver_lending__aave_ethereum_deposits"], "alias": "aave_ethereum_deposits", "checksum": {"name": "sha256", "checksum": "11b92081b179f6b9d90d286dcacf3a2d83bf0bab136994a072889c069977d7d1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "aave_ethereum_deposits"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "aave_ethereum_deposits"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "aave_ethereum_deposits"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018409.9689896, "relation_name": "polygon.silver_lending.aave_ethereum_deposits", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave_ethereum_deposits']\n) }}\n\nWITH \ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n atoken_address,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_ethereum_tokens') }}\n),\ndeposits AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE \n WHEN LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' \n THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))\n END AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS onBehalfOf,\n utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INTEGER AS refferal,\n CASE\n WHEN topics [0] :: STRING = '0xde6857219544bb5b7746f48ed30be6386fefc61b2f864cacf559893bf50fd951' THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40))\n WHEN topics [0] :: STRING = '0xc12c57b1c73a2c3a2ea4613e9476abb3d8d146857aab7329e24243fb59710c82' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0x2b627736bca15cd5381dcf80b0bf11fd197d01a037c52b927a881a10fb73ba61' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 42))\n END AS userAddress,\n CASE\n WHEN topics [0] :: STRING = '0xc12c57b1c73a2c3a2ea4613e9476abb3d8d146857aab7329e24243fb59710c82' THEN utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n END AS deposit_quantity,\n origin_from_address AS depositor,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0xde6857219544bb5b7746f48ed30be6386fefc61b2f864cacf559893bf50fd951',\n '0xc12c57b1c73a2c3a2ea4613e9476abb3d8d146857aab7329e24243fb59710c82',\n '0x2b627736bca15cd5381dcf80b0bf11fd197d01a037c52b927a881a10fb73ba61'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n t.atoken_address AS protocol_market,\n market AS token_address,\n deposit_quantity AS amount_unadj,\n depositor,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n d._log_id,\n d.modified_timestamp,\n 'Supply' AS event_name\nFROM\n deposits d\n LEFT JOIN token_meta t\n ON d.market = t.underlying_address\n and d.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY d._log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__aave_ethereum_tokens", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__aave_ethereum_tokens", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_deposits.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"aave_ethereum_deposits\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave_ethereum_deposits']\n) }}\n\nWITH \ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n atoken_address,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_ethereum_tokens') }}\n),\ndeposits AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE \n WHEN LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' \n THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))\n END AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS onBehalfOf,\n utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INTEGER AS refferal,\n CASE\n WHEN topics [0] :: STRING = '0xde6857219544bb5b7746f48ed30be6386fefc61b2f864cacf559893bf50fd951' THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40))\n WHEN topics [0] :: STRING = '0xc12c57b1c73a2c3a2ea4613e9476abb3d8d146857aab7329e24243fb59710c82' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0x2b627736bca15cd5381dcf80b0bf11fd197d01a037c52b927a881a10fb73ba61' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 42))\n END AS userAddress,\n CASE\n WHEN topics [0] :: STRING = '0xc12c57b1c73a2c3a2ea4613e9476abb3d8d146857aab7329e24243fb59710c82' THEN utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n END AS deposit_quantity,\n origin_from_address AS depositor,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0xde6857219544bb5b7746f48ed30be6386fefc61b2f864cacf559893bf50fd951',\n '0xc12c57b1c73a2c3a2ea4613e9476abb3d8d146857aab7329e24243fb59710c82',\n '0x2b627736bca15cd5381dcf80b0bf11fd197d01a037c52b927a881a10fb73ba61'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n t.atoken_address AS protocol_market,\n market AS token_address,\n deposit_quantity AS amount_unadj,\n depositor,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n d._log_id,\n d.modified_timestamp,\n 'Supply' AS event_name\nFROM\n deposits d\n LEFT JOIN token_meta t\n ON d.market = t.underlying_address\n and d.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY d._log_id\nORDER BY\n d.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH \ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n atoken_address,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n polygon.silver_lending.aave_ethereum_tokens\n),\ndeposits AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE \n WHEN LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' \n THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))\n END AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS onBehalfOf,\n utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INTEGER AS refferal,\n CASE\n WHEN topics [0] :: STRING = '0xde6857219544bb5b7746f48ed30be6386fefc61b2f864cacf559893bf50fd951' THEN CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40))\n WHEN topics [0] :: STRING = '0xc12c57b1c73a2c3a2ea4613e9476abb3d8d146857aab7329e24243fb59710c82' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40))\n WHEN topics [0] :: STRING = '0x2b627736bca15cd5381dcf80b0bf11fd197d01a037c52b927a881a10fb73ba61' THEN CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 42))\n END AS userAddress,\n CASE\n WHEN topics [0] :: STRING = '0xc12c57b1c73a2c3a2ea4613e9476abb3d8d146857aab7329e24243fb59710c82' THEN utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n END AS deposit_quantity,\n origin_from_address AS depositor,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING IN (\n '0xde6857219544bb5b7746f48ed30be6386fefc61b2f864cacf559893bf50fd951',\n '0xc12c57b1c73a2c3a2ea4613e9476abb3d8d146857aab7329e24243fb59710c82',\n '0x2b627736bca15cd5381dcf80b0bf11fd197d01a037c52b927a881a10fb73ba61'\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.aave_ethereum_deposits\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n t.atoken_address AS protocol_market,\n market AS token_address,\n deposit_quantity AS amount_unadj,\n depositor,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n d._log_id,\n d.modified_timestamp,\n 'Supply' AS event_name\nFROM\n deposits d\n LEFT JOIN token_meta t\n ON d.market = t.underlying_address\n and d.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY d._log_id\nORDER BY\n d.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__aave_ethereum_tokens": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__aave_ethereum_tokens", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_tokens.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_tokens.sql", "unique_id": "model.fsc_evm.silver_lending__aave_ethereum_tokens", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "aave_ethereum", "silver_lending__aave_ethereum_tokens"], "alias": "aave_ethereum_tokens", "checksum": {"name": "sha256", "checksum": "4e1bea3f014d7297f07f40ef3f94c8304a85e25d863834fe3d78b60e533f47c5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "aave_ethereum"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "atoken_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "defi", "lending", "curated", "aave_ethereum"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "atoken_address", "tags": ["silver", "defi", "lending", "curated", "aave_ethereum"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018410.4169703, "relation_name": "polygon.silver_lending.aave_ethereum_tokens", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = \"atoken_address\",\n tags = ['silver','defi','lending','curated','aave_ethereum']\n) }}\n\nWITH\nv1_v2_pool_addresses AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'aave_pool_addresses'\n),\naave_v1_v2_tokens AS (\n SELECT\n block_number AS atoken_created_block,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS a_token_address,\n null as atoken_stable_debt_address,\n null as atoken_variable_debt_address,\n contract_address AS pool_address,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS underlying_asset,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] = '0x1d9fcd0dc935b4778d5af97f55c4d7b2553257382f1ef25c412114c8eeebd88e'\n AND contract_address IN (\n SELECT\n contract_address\n FROM\n v1_v2_pool_addresses\n WHERE version = 'v1'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) NOT IN (\n SELECT\n atoken_address\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n UNION ALL\n SELECT\n block_number AS atoken_created_block,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS a_token_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 27, 40)) :: STRING AS atoken_stable_debt_address,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 27, 40)) :: STRING AS atoken_variable_debt_address,\n l.contract_address AS pool_address,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS underlying_address,\n l.modified_timestamp,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }} l\n WHERE\n topics [0] = '0x3a0ca721fc364424566385a1aa271ed508cc2c0949c2272575fb3013a163a45f'\n AND contract_address IN (\n SELECT\n contract_address\n FROM\n v1_v2_pool_addresses\n WHERE (version in ('v2','v2.1') and protocol = 'aave')\n )\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) NOT IN (\n SELECT\n atoken_address\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\naave_v1_v2_tokens_step_1 AS (\n SELECT\n atoken_created_block,\n a_token_address,\n segmented_data,\n CASE \n WHEN v1.version = 'v1' THEN '0x398ec7346dcd622edc5ae82352f02be94c62d119'\n WHEN v1.version = 'v2' THEN '0x7d2768de32b0b80b7a3454c06bdac94a69ddc7a9'\n WHEN v1.version = 'v2.1' THEN '0x7937d4799803fbbe595ed57278bc4ca21f3bffcb'\n END AS version_pool,\n pool_address,\n CASE \n WHEN underlying_asset = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE underlying_asset\n END AS underlying_asset,\n modified_timestamp,\n v1.version,\n v1.protocol,\n _log_id\n FROM\n aave_v1_v2_tokens t\n INNER JOIN v1_v2_pool_addresses v1\n ON v1.contract_address = t.pool_address\n)\nSELECT\n A.atoken_created_block,\n A.version_pool,\n A.a_token_address AS atoken_address,\n A.protocol || '-' || A.version AS atoken_version,\n A.underlying_asset AS underlying_address,\n A.protocol,\n A.version,\n A.modified_timestamp,\n A._log_id\nFROM\n aave_v1_v2_tokens_step_1 A\nqualify(ROW_NUMBER() over(PARTITION BY underlying_address,version_pool\nORDER BY\n A.atoken_created_block DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_tokens.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"aave_ethereum\"\n ],\n \"unique_key\": \"atoken_address\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = \"atoken_address\",\n tags = ['silver','defi','lending','curated','aave_ethereum']\n) }}\n\nWITH\nv1_v2_pool_addresses AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'aave_pool_addresses'\n),\naave_v1_v2_tokens AS (\n SELECT\n block_number AS atoken_created_block,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS a_token_address,\n null as atoken_stable_debt_address,\n null as atoken_variable_debt_address,\n contract_address AS pool_address,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS underlying_asset,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] = '0x1d9fcd0dc935b4778d5af97f55c4d7b2553257382f1ef25c412114c8eeebd88e'\n AND contract_address IN (\n SELECT\n contract_address\n FROM\n v1_v2_pool_addresses\n WHERE version = 'v1'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) NOT IN (\n SELECT\n atoken_address\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n UNION ALL\n SELECT\n block_number AS atoken_created_block,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS a_token_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 27, 40)) :: STRING AS atoken_stable_debt_address,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 27, 40)) :: STRING AS atoken_variable_debt_address,\n l.contract_address AS pool_address,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS underlying_address,\n l.modified_timestamp,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }} l\n WHERE\n topics [0] = '0x3a0ca721fc364424566385a1aa271ed508cc2c0949c2272575fb3013a163a45f'\n AND contract_address IN (\n SELECT\n contract_address\n FROM\n v1_v2_pool_addresses\n WHERE (version in ('v2','v2.1') and protocol = 'aave')\n )\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) NOT IN (\n SELECT\n atoken_address\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\naave_v1_v2_tokens_step_1 AS (\n SELECT\n atoken_created_block,\n a_token_address,\n segmented_data,\n CASE \n WHEN v1.version = 'v1' THEN '0x398ec7346dcd622edc5ae82352f02be94c62d119'\n WHEN v1.version = 'v2' THEN '0x7d2768de32b0b80b7a3454c06bdac94a69ddc7a9'\n WHEN v1.version = 'v2.1' THEN '0x7937d4799803fbbe595ed57278bc4ca21f3bffcb'\n END AS version_pool,\n pool_address,\n CASE \n WHEN underlying_asset = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE underlying_asset\n END AS underlying_asset,\n modified_timestamp,\n v1.version,\n v1.protocol,\n _log_id\n FROM\n aave_v1_v2_tokens t\n INNER JOIN v1_v2_pool_addresses v1\n ON v1.contract_address = t.pool_address\n)\nSELECT\n A.atoken_created_block,\n A.version_pool,\n A.a_token_address AS atoken_address,\n A.protocol || '-' || A.version AS atoken_version,\n A.underlying_asset AS underlying_address,\n A.protocol,\n A.version,\n A.modified_timestamp,\n A._log_id\nFROM\n aave_v1_v2_tokens_step_1 A\nqualify(ROW_NUMBER() over(PARTITION BY underlying_address,version_pool\nORDER BY\n A.atoken_created_block DESC)) = 1\n*/\n\n\n\nWITH\nv1_v2_pool_addresses AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x2501713a67a3dedde090e42759088a7ef37d4eab', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v3', 'aave_treasury'),\n \n ('0x794a61358d6845594f94dc1db02a252b5b4814ad', 'aave', 'v3', 'aave_version_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v2', 'aave_treasury'),\n \n ('0x8dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf', 'aave', 'v2', 'aave_version_address'),\n \n ('0x1bf0c2541f820e775182832f06c0b7fc27a25f67', 'morpho', 'v1', 'morpho_blue_address')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n type = 'aave_pool_addresses'\n),\naave_v1_v2_tokens AS (\n SELECT\n block_number AS atoken_created_block,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS a_token_address,\n null as atoken_stable_debt_address,\n null as atoken_variable_debt_address,\n contract_address AS pool_address,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS underlying_asset,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] = '0x1d9fcd0dc935b4778d5af97f55c4d7b2553257382f1ef25c412114c8eeebd88e'\n AND contract_address IN (\n SELECT\n contract_address\n FROM\n v1_v2_pool_addresses\n WHERE version = 'v1'\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.aave_ethereum_tokens\n)\nAND CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) NOT IN (\n SELECT\n atoken_address\n FROM\n polygon.silver_lending.aave_ethereum_tokens\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n UNION ALL\n SELECT\n block_number AS atoken_created_block,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS a_token_address,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 27, 40)) :: STRING AS atoken_stable_debt_address,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 27, 40)) :: STRING AS atoken_variable_debt_address,\n l.contract_address AS pool_address,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40)) AS underlying_address,\n l.modified_timestamp,\n CONCAT(\n l.tx_hash,\n '-',\n l.event_index\n ) AS _log_id\n FROM\n polygon.core.fact_event_logs l\n WHERE\n topics [0] = '0x3a0ca721fc364424566385a1aa271ed508cc2c0949c2272575fb3013a163a45f'\n AND contract_address IN (\n SELECT\n contract_address\n FROM\n v1_v2_pool_addresses\n WHERE (version in ('v2','v2.1') and protocol = 'aave')\n )\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.aave_ethereum_tokens\n)\nAND CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) NOT IN (\n SELECT\n atoken_address\n FROM\n polygon.silver_lending.aave_ethereum_tokens\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\naave_v1_v2_tokens_step_1 AS (\n SELECT\n atoken_created_block,\n a_token_address,\n segmented_data,\n CASE \n WHEN v1.version = 'v1' THEN '0x398ec7346dcd622edc5ae82352f02be94c62d119'\n WHEN v1.version = 'v2' THEN '0x7d2768de32b0b80b7a3454c06bdac94a69ddc7a9'\n WHEN v1.version = 'v2.1' THEN '0x7937d4799803fbbe595ed57278bc4ca21f3bffcb'\n END AS version_pool,\n pool_address,\n CASE \n WHEN underlying_asset = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE underlying_asset\n END AS underlying_asset,\n modified_timestamp,\n v1.version,\n v1.protocol,\n _log_id\n FROM\n aave_v1_v2_tokens t\n INNER JOIN v1_v2_pool_addresses v1\n ON v1.contract_address = t.pool_address\n)\nSELECT\n A.atoken_created_block,\n A.version_pool,\n A.a_token_address AS atoken_address,\n A.protocol || '-' || A.version AS atoken_version,\n A.underlying_asset AS underlying_address,\n A.protocol,\n A.version,\n A.modified_timestamp,\n A._log_id\nFROM\n aave_v1_v2_tokens_step_1 A\nqualify(ROW_NUMBER() over(PARTITION BY underlying_address,version_pool\nORDER BY\n A.atoken_created_block DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__aave_ethereum_borrows": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__aave_ethereum_borrows", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_borrows.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_borrows.sql", "unique_id": "model.fsc_evm.silver_lending__aave_ethereum_borrows", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "aave_ethereum", "silver_lending__aave_ethereum_borrows"], "alias": "aave_ethereum_borrows", "checksum": {"name": "sha256", "checksum": "7ce6f2dd8afa25eb33f7b72c105f6e87be01b438dac896a7b2cfe75cadcae4a0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "aave_ethereum"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "aave_ethereum"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "aave_ethereum"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018410.7318404, "relation_name": "polygon.silver_lending.aave_ethereum_borrows", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave_ethereum']\n) }}\n\nWITH --borrows from Aave LendingPool contracts\ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n atoken_address,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_ethereum_tokens') }}\n),\nborrow AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE \n WHEN LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' \n THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))\n END AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS onBehalfOf,\n utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INTEGER AS refferal,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS userAddress,\n CASE\n WHEN topics [0] :: STRING = '0x1e77446728e5558aa1b7e81e0cdab9cc1b075ba893b740600c76a315c2caa553' THEN utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(segmented_data [1] :: STRING) :: INTEGER\n END AS borrow_quantity,\n CASE\n WHEN topics [0] :: STRING = '0x1e77446728e5558aa1b7e81e0cdab9cc1b075ba893b740600c76a315c2caa553' THEN utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(segmented_data [2] :: STRING) :: INTEGER\n END AS borrow_rate_mode,\n CASE\n WHEN topics [0] :: STRING = '0x1e77446728e5558aa1b7e81e0cdab9cc1b075ba893b740600c76a315c2caa553' THEN utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(segmented_data [3] :: STRING) :: INTEGER\n END AS borrow_rate,\n origin_from_address AS borrower_address,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0xc6a898309e823ee50bac64e45ca8adba6690e99e7841c45d754e2a38e9019d9b',\n '0x1e77446728e5558aa1b7e81e0cdab9cc1b075ba893b740600c76a315c2caa553',\n '0xb3d084820fb1a9decffb176436bd02558d15fac9b0ddfed8c465bc7359d7dce0'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND lending_pool_contract IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower_address AS borrower,\n t.atoken_address AS protocol_market,\n market AS token_address,\n borrow_quantity AS amount_unadj,\n CASE\n WHEN borrow_rate_mode = 2 THEN 'Variable Rate'\n ELSE 'Stable Rate'\n END AS borrow_rate_mode,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n b._log_id,\n b.modified_timestamp,\n 'Borrow' AS event_name\nFROM\n borrow b\n LEFT JOIN token_meta t\n ON b.market = t.underlying_address\n and b.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY b._log_id\nORDER BY\n b.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__aave_ethereum_tokens", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__aave_ethereum_tokens", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_borrows.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"aave_ethereum\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave_ethereum']\n) }}\n\nWITH --borrows from Aave LendingPool contracts\ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n atoken_address,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_ethereum_tokens') }}\n),\nborrow AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE \n WHEN LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' \n THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))\n END AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS onBehalfOf,\n utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INTEGER AS refferal,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS userAddress,\n CASE\n WHEN topics [0] :: STRING = '0x1e77446728e5558aa1b7e81e0cdab9cc1b075ba893b740600c76a315c2caa553' THEN utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(segmented_data [1] :: STRING) :: INTEGER\n END AS borrow_quantity,\n CASE\n WHEN topics [0] :: STRING = '0x1e77446728e5558aa1b7e81e0cdab9cc1b075ba893b740600c76a315c2caa553' THEN utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(segmented_data [2] :: STRING) :: INTEGER\n END AS borrow_rate_mode,\n CASE\n WHEN topics [0] :: STRING = '0x1e77446728e5558aa1b7e81e0cdab9cc1b075ba893b740600c76a315c2caa553' THEN utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(segmented_data [3] :: STRING) :: INTEGER\n END AS borrow_rate,\n origin_from_address AS borrower_address,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0xc6a898309e823ee50bac64e45ca8adba6690e99e7841c45d754e2a38e9019d9b',\n '0x1e77446728e5558aa1b7e81e0cdab9cc1b075ba893b740600c76a315c2caa553',\n '0xb3d084820fb1a9decffb176436bd02558d15fac9b0ddfed8c465bc7359d7dce0'\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND lending_pool_contract IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower_address AS borrower,\n t.atoken_address AS protocol_market,\n market AS token_address,\n borrow_quantity AS amount_unadj,\n CASE\n WHEN borrow_rate_mode = 2 THEN 'Variable Rate'\n ELSE 'Stable Rate'\n END AS borrow_rate_mode,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n b._log_id,\n b.modified_timestamp,\n 'Borrow' AS event_name\nFROM\n borrow b\n LEFT JOIN token_meta t\n ON b.market = t.underlying_address\n and b.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY b._log_id\nORDER BY\n b.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH --borrows from Aave LendingPool contracts\ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n atoken_address,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n polygon.silver_lending.aave_ethereum_tokens\n),\nborrow AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE \n WHEN LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' \n THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))\n END AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS onBehalfOf,\n utils.udf_hex_to_int(\n topics [3] :: STRING\n ) :: INTEGER AS refferal,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS userAddress,\n CASE\n WHEN topics [0] :: STRING = '0x1e77446728e5558aa1b7e81e0cdab9cc1b075ba893b740600c76a315c2caa553' THEN utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(segmented_data [1] :: STRING) :: INTEGER\n END AS borrow_quantity,\n CASE\n WHEN topics [0] :: STRING = '0x1e77446728e5558aa1b7e81e0cdab9cc1b075ba893b740600c76a315c2caa553' THEN utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(segmented_data [2] :: STRING) :: INTEGER\n END AS borrow_rate_mode,\n CASE\n WHEN topics [0] :: STRING = '0x1e77446728e5558aa1b7e81e0cdab9cc1b075ba893b740600c76a315c2caa553' THEN utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER\n ELSE utils.udf_hex_to_int(segmented_data [3] :: STRING) :: INTEGER\n END AS borrow_rate,\n origin_from_address AS borrower_address,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING IN (\n '0xc6a898309e823ee50bac64e45ca8adba6690e99e7841c45d754e2a38e9019d9b',\n '0x1e77446728e5558aa1b7e81e0cdab9cc1b075ba893b740600c76a315c2caa553',\n '0xb3d084820fb1a9decffb176436bd02558d15fac9b0ddfed8c465bc7359d7dce0'\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.aave_ethereum_borrows\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nAND lending_pool_contract IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower_address AS borrower,\n t.atoken_address AS protocol_market,\n market AS token_address,\n borrow_quantity AS amount_unadj,\n CASE\n WHEN borrow_rate_mode = 2 THEN 'Variable Rate'\n ELSE 'Stable Rate'\n END AS borrow_rate_mode,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n b._log_id,\n b.modified_timestamp,\n 'Borrow' AS event_name\nFROM\n borrow b\n LEFT JOIN token_meta t\n ON b.market = t.underlying_address\n and b.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY b._log_id\nORDER BY\n b.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__aave_ethereum_repayments": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__aave_ethereum_repayments", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_repayments.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_repayments.sql", "unique_id": "model.fsc_evm.silver_lending__aave_ethereum_repayments", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "aave_ethereum", "silver_lending__aave_ethereum_repayments"], "alias": "aave_ethereum_repayments", "checksum": {"name": "sha256", "checksum": "e305dde9d9a12216ef7bb616b6bd8b669a23cf409c56ab4bcd5472076b8e131c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "aave_ethereum"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "aave_ethereum"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "aave_ethereum"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018411.0470238, "relation_name": "polygon.silver_lending.aave_ethereum_repayments", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave_ethereum']\n) }}\n\nWITH \ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n atoken_address,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_ethereum_tokens') }}\n),\nrepay AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE \n WHEN LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' \n THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))\n END AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower_address,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS repayer,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS repayed_amount,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n origin_from_address AS repayer_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0x4cdde6e09bb755c9a5589ebaec640bbfedff1362d4b255ebf8339782b9942faa',\n '0xb718f0b14f03d8c3adf35b15e3da52421b042ac879e5a689011a8b1e0036773d',\n '0xa534c8dbe71f871f9f3530e97a74601fea17b426cae02e1c5aee42c96c784051'\n )\n\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n t.atoken_address AS protocol_market,\n market AS token_address,\n repayed_amount AS amount_unadj,\n repayer_address AS payer,\n borrower_address AS borrower,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n r._log_id,\n r.modified_timestamp,\n 'Repay' AS event_name\nFROM\n repay r\n LEFT JOIN token_meta t\n ON r.market = t.underlying_address\n and r.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY r._log_id\nORDER BY\n r.modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__aave_ethereum_tokens", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__aave_ethereum_tokens", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/aave_ethereum/silver_lending__aave_ethereum_repayments.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"aave_ethereum\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','aave_ethereum']\n) }}\n\nWITH \ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n atoken_address,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n {{ ref('silver_lending__aave_ethereum_tokens') }}\n),\nrepay AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE \n WHEN LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' \n THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))\n END AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower_address,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS repayer,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS repayed_amount,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n origin_from_address AS repayer_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topics [0] :: STRING IN (\n '0x4cdde6e09bb755c9a5589ebaec640bbfedff1362d4b255ebf8339782b9942faa',\n '0xb718f0b14f03d8c3adf35b15e3da52421b042ac879e5a689011a8b1e0036773d',\n '0xa534c8dbe71f871f9f3530e97a74601fea17b426cae02e1c5aee42c96c784051'\n )\n\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n t.atoken_address AS protocol_market,\n market AS token_address,\n repayed_amount AS amount_unadj,\n repayer_address AS payer,\n borrower_address AS borrower,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n r._log_id,\n r.modified_timestamp,\n 'Repay' AS event_name\nFROM\n repay r\n LEFT JOIN token_meta t\n ON r.market = t.underlying_address\n and r.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY r._log_id\nORDER BY\n r.modified_timestamp DESC)) = 1\n*/\n\n\n\nWITH \ntoken_meta AS (\n\n SELECT\n atoken_created_block,\n version_pool,\n atoken_address,\n underlying_address,\n protocol,\n version,\n modified_timestamp,\n _log_id\n FROM\n polygon.silver_lending.aave_ethereum_tokens\n),\nrepay AS(\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE \n WHEN LOWER(CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))) = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' \n THEN '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n ELSE CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 40))\n END AS market,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 40)) AS borrower_address,\n CONCAT('0x', SUBSTR(topics [3] :: STRING, 27, 40)) AS repayer,\n utils.udf_hex_to_int(\n segmented_data [0] :: STRING\n ) :: INTEGER AS repayed_amount,\n COALESCE(\n contract_address,\n origin_to_address\n ) AS lending_pool_contract,\n origin_from_address AS repayer_address,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n modified_timestamp\n FROM\n polygon.core.fact_event_logs\n WHERE\n topics [0] :: STRING IN (\n '0x4cdde6e09bb755c9a5589ebaec640bbfedff1362d4b255ebf8339782b9942faa',\n '0xb718f0b14f03d8c3adf35b15e3da52421b042ac879e5a689011a8b1e0036773d',\n '0xa534c8dbe71f871f9f3530e97a74601fea17b426cae02e1c5aee42c96c784051'\n )\n\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.aave_ethereum_repayments\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\nAND contract_address IN (\n SELECT\n DISTINCT(version_pool)\n FROM\n token_meta\n)\nAND tx_succeeded\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n t.atoken_address AS protocol_market,\n market AS token_address,\n repayed_amount AS amount_unadj,\n repayer_address AS payer,\n borrower_address AS borrower,\n lending_pool_contract,\n t.protocol || '-' || t.version AS platform,\n t.protocol,\n t.version,\n r._log_id,\n r.modified_timestamp,\n 'Repay' AS event_name\nFROM\n repay r\n LEFT JOIN token_meta t\n ON r.market = t.underlying_address\n and r.lending_pool_contract = t.version_pool qualify(ROW_NUMBER() over(PARTITION BY r._log_id\nORDER BY\n r.modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__comp_v2_repayments": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__comp_v2_repayments", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/compound_v2/silver_lending__comp_v2_repayments.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/compound_v2/silver_lending__comp_v2_repayments.sql", "unique_id": "model.fsc_evm.silver_lending__comp_v2_repayments", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "compound_v2", "silver_lending__comp_v2_repayments"], "alias": "comp_v2_repayments", "checksum": {"name": "sha256", "checksum": "220d4ad6e95f7ae318924b905d17c86f2500c763328c9ab62698064bfb236550"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "compound", "comp_v2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "compound", "comp_v2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "compound", "comp_v2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018411.3605092, "relation_name": "polygon.silver_lending.comp_v2_repayments", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','compound','comp_v2']\n) }}\n-- pull all token addresses and corresponding name\nWITH asset_details AS (\n SELECT\n token_address,\n token_symbol,\n token_name,\n token_decimals,\n underlying_asset_address,\n underlying_name,\n protocol,\n version\n FROM\n {{ ref('silver_lending__comp_v2_asset_details') }}\n),\ncomp_v2_fork_repayments AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS borrower,\n contract_address AS protocol_market,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS payer,\n utils.udf_hex_to_int(segmented_data [2] :: STRING) :: INTEGER AS repayed_amount_raw,\n modified_timestamp,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n contract_address IN (SELECT token_address FROM asset_details)\n AND topics [0] :: STRING in ('0x1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1'\n ,'0x6fadbf7329d21f278e724fa0d4511001a158f2a97ee35c5bc4cf8b64417399ef')\n AND tx_succeeded\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ncomp_v2_fork_combine AS (\n SELECT\n b.block_number,\n b.block_timestamp,\n b.tx_hash,\n b.event_index,\n b.origin_from_address,\n b.origin_to_address,\n b.origin_function_signature,\n b.contract_address,\n b.borrower,\n b.protocol_market,\n b.payer,\n b.repayed_amount_raw,\n C.underlying_asset_address AS token_address,\n C.protocol,\n C.version,\n C.protocol || '-' || C.version as platform,\n b._log_id,\n b.modified_timestamp\n FROM\n comp_v2_fork_repayments b\n LEFT JOIN asset_details C\n ON b.protocol_market = C.token_address\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n payer,\n protocol_market,\n token_address,\n repayed_amount_raw AS amount_unadj,\n platform,\n protocol,\n version,\n modified_timestamp as _inserted_timestamp,\n SYSDATE() as modified_timestamp,\n SYSDATE() as inserted_timestamp,\n _log_id,\n 'RepayBorrow' AS event_name\nFROM\n comp_v2_fork_combine qualify(ROW_NUMBER() over(PARTITION BY _log_id ORDER BY modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__comp_v2_asset_details", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__comp_v2_asset_details", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/compound_v2/silver_lending__comp_v2_repayments.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"compound\",\n \"comp_v2\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','compound','comp_v2']\n) }}\n-- pull all token addresses and corresponding name\nWITH asset_details AS (\n SELECT\n token_address,\n token_symbol,\n token_name,\n token_decimals,\n underlying_asset_address,\n underlying_name,\n protocol,\n version\n FROM\n {{ ref('silver_lending__comp_v2_asset_details') }}\n),\ncomp_v2_fork_repayments AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS borrower,\n contract_address AS protocol_market,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS payer,\n utils.udf_hex_to_int(segmented_data [2] :: STRING) :: INTEGER AS repayed_amount_raw,\n modified_timestamp,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n contract_address IN (SELECT token_address FROM asset_details)\n AND topics [0] :: STRING in ('0x1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1'\n ,'0x6fadbf7329d21f278e724fa0d4511001a158f2a97ee35c5bc4cf8b64417399ef')\n AND tx_succeeded\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ncomp_v2_fork_combine AS (\n SELECT\n b.block_number,\n b.block_timestamp,\n b.tx_hash,\n b.event_index,\n b.origin_from_address,\n b.origin_to_address,\n b.origin_function_signature,\n b.contract_address,\n b.borrower,\n b.protocol_market,\n b.payer,\n b.repayed_amount_raw,\n C.underlying_asset_address AS token_address,\n C.protocol,\n C.version,\n C.protocol || '-' || C.version as platform,\n b._log_id,\n b.modified_timestamp\n FROM\n comp_v2_fork_repayments b\n LEFT JOIN asset_details C\n ON b.protocol_market = C.token_address\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n payer,\n protocol_market,\n token_address,\n repayed_amount_raw AS amount_unadj,\n platform,\n protocol,\n version,\n modified_timestamp as _inserted_timestamp,\n SYSDATE() as modified_timestamp,\n SYSDATE() as inserted_timestamp,\n _log_id,\n 'RepayBorrow' AS event_name\nFROM\n comp_v2_fork_combine qualify(ROW_NUMBER() over(PARTITION BY _log_id ORDER BY modified_timestamp DESC)) = 1\n*/\n\n\n-- pull all token addresses and corresponding name\nWITH asset_details AS (\n SELECT\n token_address,\n token_symbol,\n token_name,\n token_decimals,\n underlying_asset_address,\n underlying_name,\n protocol,\n version\n FROM\n polygon.silver_lending.comp_v2_asset_details\n),\ncomp_v2_fork_repayments AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS borrower,\n contract_address AS protocol_market,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS payer,\n utils.udf_hex_to_int(segmented_data [2] :: STRING) :: INTEGER AS repayed_amount_raw,\n modified_timestamp,\n CONCAT(tx_hash :: STRING, '-', event_index :: STRING) AS _log_id\n FROM\n polygon.core.fact_event_logs\n WHERE\n contract_address IN (SELECT token_address FROM asset_details)\n AND topics [0] :: STRING in ('0x1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1'\n ,'0x6fadbf7329d21f278e724fa0d4511001a158f2a97ee35c5bc4cf8b64417399ef')\n AND tx_succeeded\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.comp_v2_repayments\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ncomp_v2_fork_combine AS (\n SELECT\n b.block_number,\n b.block_timestamp,\n b.tx_hash,\n b.event_index,\n b.origin_from_address,\n b.origin_to_address,\n b.origin_function_signature,\n b.contract_address,\n b.borrower,\n b.protocol_market,\n b.payer,\n b.repayed_amount_raw,\n C.underlying_asset_address AS token_address,\n C.protocol,\n C.version,\n C.protocol || '-' || C.version as platform,\n b._log_id,\n b.modified_timestamp\n FROM\n comp_v2_fork_repayments b\n LEFT JOIN asset_details C\n ON b.protocol_market = C.token_address\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n payer,\n protocol_market,\n token_address,\n repayed_amount_raw AS amount_unadj,\n platform,\n protocol,\n version,\n modified_timestamp as _inserted_timestamp,\n SYSDATE() as modified_timestamp,\n SYSDATE() as inserted_timestamp,\n _log_id,\n 'RepayBorrow' AS event_name\nFROM\n comp_v2_fork_combine qualify(ROW_NUMBER() over(PARTITION BY _log_id ORDER BY modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__comp_v2_liquidations": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__comp_v2_liquidations", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/compound_v2/silver_lending__comp_v2_liquidations.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/compound_v2/silver_lending__comp_v2_liquidations.sql", "unique_id": "model.fsc_evm.silver_lending__comp_v2_liquidations", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "compound_v2", "silver_lending__comp_v2_liquidations"], "alias": "comp_v2_liquidations", "checksum": {"name": "sha256", "checksum": "989692591009a6eb1500800831623423d600be532add23f907bca808fac9858d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "compound", "comp_v2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "compound", "comp_v2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "compound", "comp_v2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018411.6743994, "relation_name": "polygon.silver_lending.comp_v2_liquidations", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','compound','comp_v2']\n) }}\n\nWITH asset_details AS (\n\n SELECT\n token_address,\n token_symbol,\n token_name,\n token_decimals,\n underlying_asset_address,\n underlying_name,\n protocol,\n version\n FROM\n {{ ref('silver_lending__comp_v2_asset_details') }}\n),\ncomp_v2_fork_liquidations AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS borrower,\n contract_address AS protocol_market,\n asd2.underlying_asset_address AS collateral_token,\n asd1.underlying_asset_address AS debt_token,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS liquidator,\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n ) :: INTEGER AS seizeTokens_raw,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER AS repayAmount_raw,\n CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) AS tokenCollateral,\n asd1.protocol,\n asd1.version,\n asd1.protocol || '-' || asd1.version AS platform,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n LEFT JOIN asset_details asd1\n ON contract_address = asd1.token_address\n LEFT JOIN asset_details asd2\n ON tokenCollateral = asd2.token_address\n WHERE\n topics [0] :: STRING = '0x298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb52'\n AND tx_succeeded\n AND (contract_address in (select token_address from asset_details)\n AND tokenCollateral in (select token_address from asset_details))\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nexchange_rate AS (\n SELECT\n tx_hash,\n to_address,\n regexp_substr_all(SUBSTR(output, 3, len(output)), '.{64}') AS segmented_output,\n TRY_CAST(utils.udf_hex_to_int(\n segmented_output[0] :: STRING\n ) AS FLOAT) AS output\n FROM\n {{ ref('core__fact_traces') }}\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n comp_v2_fork_liquidations\n )\n AND input = '0x182df0f5'\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n QUALIFY ROW_NUMBER() OVER (\n PARTITION BY tx_hash, to_address\n ORDER BY output DESC NULLS LAST\n ) = 1\n)\nSELECT\n block_number,\n block_timestamp,\n l.tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n seizeTokens_raw * e.output / pow(\n 10,\n 18\n ) AS liquidated_amount_unadj,\n debt_token,\n repayAmount_raw AS repaid_amount_unadj,\n protocol,\n version,\n platform,\n _log_id,\n modified_timestamp AS _inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n SYSDATE() AS inserted_timestamp,\n 'LiquidateBorrow' AS event_name\nFROM\n comp_v2_fork_liquidations l\n INNER JOIN exchange_rate e\n ON e.to_address = l.tokenCollateral\n AND e.tx_hash = l.tx_hash qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__comp_v2_asset_details", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__comp_v2_asset_details", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_traces"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/compound_v2/silver_lending__comp_v2_liquidations.sql", "compiled": true, "compiled_code": "\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"compound\",\n \"comp_v2\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n{# Log configuration details #}\n{{ log_model_details() }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','compound','comp_v2']\n) }}\n\nWITH asset_details AS (\n\n SELECT\n token_address,\n token_symbol,\n token_name,\n token_decimals,\n underlying_asset_address,\n underlying_name,\n protocol,\n version\n FROM\n {{ ref('silver_lending__comp_v2_asset_details') }}\n),\ncomp_v2_fork_liquidations AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS borrower,\n contract_address AS protocol_market,\n asd2.underlying_asset_address AS collateral_token,\n asd1.underlying_asset_address AS debt_token,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS liquidator,\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n ) :: INTEGER AS seizeTokens_raw,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER AS repayAmount_raw,\n CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) AS tokenCollateral,\n asd1.protocol,\n asd1.version,\n asd1.protocol || '-' || asd1.version AS platform,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n LEFT JOIN asset_details asd1\n ON contract_address = asd1.token_address\n LEFT JOIN asset_details asd2\n ON tokenCollateral = asd2.token_address\n WHERE\n topics [0] :: STRING = '0x298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb52'\n AND tx_succeeded\n AND (contract_address in (select token_address from asset_details)\n AND tokenCollateral in (select token_address from asset_details))\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\nexchange_rate AS (\n SELECT\n tx_hash,\n to_address,\n regexp_substr_all(SUBSTR(output, 3, len(output)), '.{64}') AS segmented_output,\n TRY_CAST(utils.udf_hex_to_int(\n segmented_output[0] :: STRING\n ) AS FLOAT) AS output\n FROM\n {{ ref('core__fact_traces') }}\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n comp_v2_fork_liquidations\n )\n AND input = '0x182df0f5'\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n QUALIFY ROW_NUMBER() OVER (\n PARTITION BY tx_hash, to_address\n ORDER BY output DESC NULLS LAST\n ) = 1\n)\nSELECT\n block_number,\n block_timestamp,\n l.tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n seizeTokens_raw * e.output / pow(\n 10,\n 18\n ) AS liquidated_amount_unadj,\n debt_token,\n repayAmount_raw AS repaid_amount_unadj,\n protocol,\n version,\n platform,\n _log_id,\n modified_timestamp AS _inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n SYSDATE() AS inserted_timestamp,\n 'LiquidateBorrow' AS event_name\nFROM\n comp_v2_fork_liquidations l\n INNER JOIN exchange_rate e\n ON e.to_address = l.tokenCollateral\n AND e.tx_hash = l.tx_hash qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\nWITH asset_details AS (\n\n SELECT\n token_address,\n token_symbol,\n token_name,\n token_decimals,\n underlying_asset_address,\n underlying_name,\n protocol,\n version\n FROM\n polygon.silver_lending.comp_v2_asset_details\n),\ncomp_v2_fork_liquidations AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [1] :: STRING, 25, 40)) AS borrower,\n contract_address AS protocol_market,\n asd2.underlying_asset_address AS collateral_token,\n asd1.underlying_asset_address AS debt_token,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS liquidator,\n utils.udf_hex_to_int(\n segmented_data [4] :: STRING\n ) :: INTEGER AS seizeTokens_raw,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER AS repayAmount_raw,\n CONCAT('0x', SUBSTR(segmented_data [3] :: STRING, 25, 40)) AS tokenCollateral,\n asd1.protocol,\n asd1.version,\n asd1.protocol || '-' || asd1.version AS platform,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n polygon.core.fact_event_logs\n LEFT JOIN asset_details asd1\n ON contract_address = asd1.token_address\n LEFT JOIN asset_details asd2\n ON tokenCollateral = asd2.token_address\n WHERE\n topics [0] :: STRING = '0x298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb52'\n AND tx_succeeded\n AND (contract_address in (select token_address from asset_details)\n AND tokenCollateral in (select token_address from asset_details))\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.comp_v2_liquidations\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\nexchange_rate AS (\n SELECT\n tx_hash,\n to_address,\n regexp_substr_all(SUBSTR(output, 3, len(output)), '.{64}') AS segmented_output,\n TRY_CAST(utils.udf_hex_to_int(\n segmented_output[0] :: STRING\n ) AS FLOAT) AS output\n FROM\n polygon.core.fact_traces\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n comp_v2_fork_liquidations\n )\n AND input = '0x182df0f5'\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.comp_v2_liquidations\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n QUALIFY ROW_NUMBER() OVER (\n PARTITION BY tx_hash, to_address\n ORDER BY output DESC NULLS LAST\n ) = 1\n)\nSELECT\n block_number,\n block_timestamp,\n l.tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n seizeTokens_raw * e.output / pow(\n 10,\n 18\n ) AS liquidated_amount_unadj,\n debt_token,\n repayAmount_raw AS repaid_amount_unadj,\n protocol,\n version,\n platform,\n _log_id,\n modified_timestamp AS _inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n SYSDATE() AS inserted_timestamp,\n 'LiquidateBorrow' AS event_name\nFROM\n comp_v2_fork_liquidations l\n INNER JOIN exchange_rate e\n ON e.to_address = l.tokenCollateral\n AND e.tx_hash = l.tx_hash qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__comp_v2_asset_details": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__comp_v2_asset_details", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/compound_v2/silver_lending__comp_v2_asset_details.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/compound_v2/silver_lending__comp_v2_asset_details.sql", "unique_id": "model.fsc_evm.silver_lending__comp_v2_asset_details", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "compound_v2", "silver_lending__comp_v2_asset_details"], "alias": "comp_v2_asset_details", "checksum": {"name": "sha256", "checksum": "c4753188062ccaf89034b678fab97fdc240181057b990eab9ff7f27f33afd46a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "comp_v2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "token_address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "merge_exclude_columns": ["inserted_timestamp"]}, "tags": ["silver", "defi", "lending", "curated", "comp_v2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "token_address", "merge_exclude_columns": ["inserted_timestamp"], "tags": ["silver", "defi", "lending", "curated", "comp_v2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018411.9914796, "relation_name": "polygon.silver_lending.comp_v2_asset_details", "raw_code": "-- depends_on: {{ ref('silver_lending__token_metadata') }}\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = \"token_address\",\n merge_exclude_columns = ['inserted_timestamp'],\n tags = ['silver','defi','lending','curated','comp_v2']\n) }}\n\nWITH origin_from_addresses AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'comp_v2_origin_from_address'\n),\ncontracts AS (\n SELECT\n contract_address,\n token_name,\n token_symbol,\n token_decimals\n FROM\n {{ ref('silver__contracts') }}\n),\nlog_pull AS (\n SELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.origin_from_address,\n l.contract_address,\n C.token_name,\n C.token_symbol,\n C.token_decimals,\n l.modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n LEFT JOIN contracts C\n ON C.contract_address = l.contract_address\n WHERE\n topics [0] :: STRING in(\n '0x7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d',\n '0x70aea8d848e8a90fb7661b227dc522eb6395c3dac71b63cb59edd5c9899b2364',\n '0x17d6db5ffe5a3d1c3d7a98194dca4f7d808d621e6ff9077ed574513d553a2a85'--joelend topic\n )\n AND origin_from_address IN (\n SELECT\n contract_address\n FROM\n origin_from_addresses\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ntraces_pull AS (\n SELECT\n block_number,\n tx_hash,\n type,\n block_timestamp,\n from_address AS token_address,\n LEFT(input, 10) AS function_sig,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS segmented_input,\n CONCAT('0x', SUBSTR(segmented_input[0]::STRING, 25)) AS underlying_asset_address,\n utils.udf_hex_to_string(\n segmented_input[array_size(segmented_input) - 3]::STRING) AS token_name,\n utils.udf_hex_to_string(\n segmented_input[array_size(segmented_input) - 1]::STRING) AS token_symbol,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input[6]::STRING)) AS token_decimals,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }}\n t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n log_pull\n )\n AND TYPE = 'DELEGATECALL'\n AND trace_index = 1\n UNION\n SELECT\n block_number,\n tx_hash,\n type,\n block_timestamp,\n from_address AS token_address,\n LEFT(input, 10) AS function_sig,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS segmented_input,\n to_address AS underlying_asset_address,\n c.token_name,\n c.token_symbol,\n c.token_decimals,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }}\n t\n LEFT JOIN contracts c\n ON c.contract_address = t.from_address\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n log_pull\n )\n and function_sig = '0x18160ddd'\n and from_address in (select contract_address from log_pull)\n),\nunderlying_details AS (\n SELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.origin_from_address,\n l.contract_address,\n COALESCE(t.token_name, l.token_name) AS token_name,\n COALESCE(t.token_symbol, l.token_symbol) AS token_symbol,\n COALESCE(t.token_decimals, l.token_decimals) AS token_decimals,\n t.underlying_asset_address,\n l.modified_timestamp,\n l._log_id\n FROM\n log_pull l\n LEFT JOIN traces_pull t\n ON l.contract_address = t.token_address\n AND l.tx_hash = t.tx_hash \n),\nfinal AS (\n SELECT \n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.origin_from_address,\n l.contract_address AS token_address,\n l.token_name,\n l.token_symbol,\n l.token_decimals,\n l.underlying_asset_address,\n C.token_name AS underlying_name,\n C.token_symbol AS underlying_symbol,\n C.token_decimals AS underlying_decimals,\n o.protocol,\n o.version,\n l.modified_timestamp,\n l._log_id\n FROM\n underlying_details l\n LEFT JOIN contracts C\n ON C.contract_address = l.underlying_asset_address\n LEFT JOIN origin_from_addresses o\n ON o.contract_address = l.origin_from_address\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n origin_from_address,\n token_address,\n token_name,\n token_symbol,\n token_decimals,\n CASE \n WHEN token_symbol LIKE '%' || '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' || '%' AND underlying_symbol IS NULL\n THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE underlying_asset_address \n END AS underlying_asset_address,\n CASE \n WHEN token_symbol LIKE '%' || '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' || '%' AND underlying_name IS NULL \n THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL }}'\n ELSE underlying_name \n END AS underlying_name,\n CASE \n WHEN token_symbol LIKE '%' || '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' || '%' AND underlying_symbol IS NULL \n THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL }}'\n ELSE underlying_symbol \n END AS underlying_symbol,\n CASE \n WHEN token_symbol LIKE '%' || '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' || '%' AND underlying_decimals IS NULL \n THEN 18\n ELSE underlying_decimals \n END AS underlying_decimals,\n protocol,\n version,\n modified_timestamp as _inserted_timestamp,\n SYSDATE() as modified_timestamp,\n SYSDATE() as inserted_timestamp,\n _log_id\nFROM\n final\nWHERE \n token_name is not null or protocol <> 'dforce'\n qualify(ROW_NUMBER() over(PARTITION BY token_address\n ORDER BY\n CASE WHEN underlying_symbol IS NOT NULL THEN 1 ELSE 0 END DESC,\n CASE WHEN underlying_decimals IS NOT NULL THEN 1 ELSE 0 END DESC,\n block_number ASC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__token_metadata", "package": null, "version": null}, {"name": "silver__contracts", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_traces", "package": null, "version": null}, {"name": "core__fact_traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.curated_contract_mapping", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["seed.fsc_evm.silver_lending__token_metadata", "model.fsc_evm.silver__contracts", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_traces"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/compound_v2/silver_lending__comp_v2_asset_details.sql", "compiled": true, "compiled_code": "-- depends_on: polygon.silver_lending.token_metadata\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"incremental\",\n \"merge_exclude_columns\": [\n \"inserted_timestamp\"\n ],\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"comp_v2\"\n ],\n \"unique_key\": \"token_address\"\n}\n*/\n \n/*\nRaw Code:\n-- depends_on: {{ ref('silver_lending__token_metadata') }}\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n unique_key = \"token_address\",\n merge_exclude_columns = ['inserted_timestamp'],\n tags = ['silver','defi','lending','curated','comp_v2']\n) }}\n\nWITH origin_from_addresses AS (\n {{ curated_contract_mapping(\n vars.CURATED_DEFI_LENDING_CONTRACT_MAPPING\n ) }}\n WHERE\n type = 'comp_v2_origin_from_address'\n),\ncontracts AS (\n SELECT\n contract_address,\n token_name,\n token_symbol,\n token_decimals\n FROM\n {{ ref('silver__contracts') }}\n),\nlog_pull AS (\n SELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.origin_from_address,\n l.contract_address,\n C.token_name,\n C.token_symbol,\n C.token_decimals,\n l.modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n LEFT JOIN contracts C\n ON C.contract_address = l.contract_address\n WHERE\n topics [0] :: STRING in(\n '0x7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d',\n '0x70aea8d848e8a90fb7661b227dc522eb6395c3dac71b63cb59edd5c9899b2364',\n '0x17d6db5ffe5a3d1c3d7a98194dca4f7d808d621e6ff9077ed574513d553a2a85'--joelend topic\n )\n AND origin_from_address IN (\n SELECT\n contract_address\n FROM\n origin_from_addresses\n )\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ntraces_pull AS (\n SELECT\n block_number,\n tx_hash,\n type,\n block_timestamp,\n from_address AS token_address,\n LEFT(input, 10) AS function_sig,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS segmented_input,\n CONCAT('0x', SUBSTR(segmented_input[0]::STRING, 25)) AS underlying_asset_address,\n utils.udf_hex_to_string(\n segmented_input[array_size(segmented_input) - 3]::STRING) AS token_name,\n utils.udf_hex_to_string(\n segmented_input[array_size(segmented_input) - 1]::STRING) AS token_symbol,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input[6]::STRING)) AS token_decimals,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }}\n t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n log_pull\n )\n AND TYPE = 'DELEGATECALL'\n AND trace_index = 1\n UNION\n SELECT\n block_number,\n tx_hash,\n type,\n block_timestamp,\n from_address AS token_address,\n LEFT(input, 10) AS function_sig,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS segmented_input,\n to_address AS underlying_asset_address,\n c.token_name,\n c.token_symbol,\n c.token_decimals,\n modified_timestamp\n FROM\n {{ ref('core__fact_traces') }}\n t\n LEFT JOIN contracts c\n ON c.contract_address = t.from_address\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n log_pull\n )\n and function_sig = '0x18160ddd'\n and from_address in (select contract_address from log_pull)\n),\nunderlying_details AS (\n SELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.origin_from_address,\n l.contract_address,\n COALESCE(t.token_name, l.token_name) AS token_name,\n COALESCE(t.token_symbol, l.token_symbol) AS token_symbol,\n COALESCE(t.token_decimals, l.token_decimals) AS token_decimals,\n t.underlying_asset_address,\n l.modified_timestamp,\n l._log_id\n FROM\n log_pull l\n LEFT JOIN traces_pull t\n ON l.contract_address = t.token_address\n AND l.tx_hash = t.tx_hash \n),\nfinal AS (\n SELECT \n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.origin_from_address,\n l.contract_address AS token_address,\n l.token_name,\n l.token_symbol,\n l.token_decimals,\n l.underlying_asset_address,\n C.token_name AS underlying_name,\n C.token_symbol AS underlying_symbol,\n C.token_decimals AS underlying_decimals,\n o.protocol,\n o.version,\n l.modified_timestamp,\n l._log_id\n FROM\n underlying_details l\n LEFT JOIN contracts C\n ON C.contract_address = l.underlying_asset_address\n LEFT JOIN origin_from_addresses o\n ON o.contract_address = l.origin_from_address\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n origin_from_address,\n token_address,\n token_name,\n token_symbol,\n token_decimals,\n CASE \n WHEN token_symbol LIKE '%' || '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' || '%' AND underlying_symbol IS NULL\n THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n ELSE underlying_asset_address \n END AS underlying_asset_address,\n CASE \n WHEN token_symbol LIKE '%' || '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' || '%' AND underlying_name IS NULL \n THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL }}'\n ELSE underlying_name \n END AS underlying_name,\n CASE \n WHEN token_symbol LIKE '%' || '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' || '%' AND underlying_symbol IS NULL \n THEN '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL }}'\n ELSE underlying_symbol \n END AS underlying_symbol,\n CASE \n WHEN token_symbol LIKE '%' || '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' || '%' AND underlying_decimals IS NULL \n THEN 18\n ELSE underlying_decimals \n END AS underlying_decimals,\n protocol,\n version,\n modified_timestamp as _inserted_timestamp,\n SYSDATE() as modified_timestamp,\n SYSDATE() as inserted_timestamp,\n _log_id\nFROM\n final\nWHERE \n token_name is not null or protocol <> 'dforce'\n qualify(ROW_NUMBER() over(PARTITION BY token_address\n ORDER BY\n CASE WHEN underlying_symbol IS NOT NULL THEN 1 ELSE 0 END DESC,\n CASE WHEN underlying_decimals IS NOT NULL THEN 1 ELSE 0 END DESC,\n block_number ASC)) = 1\n*/\n\n\n\nWITH origin_from_addresses AS (\n \n SELECT * FROM VALUES\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ('0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x2501713a67a3dedde090e42759088a7ef37d4eab', 'compound', 'v3', 'comp_v3_origin_from_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v3', 'aave_treasury'),\n \n ('0x794a61358d6845594f94dc1db02a252b5b4814ad', 'aave', 'v3', 'aave_version_address'),\n \n ('0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c', 'aave', 'v2', 'aave_treasury'),\n \n ('0x8dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf', 'aave', 'v2', 'aave_version_address'),\n \n ('0x1bf0c2541f820e775182832f06c0b7fc27a25f67', 'morpho', 'v1', 'morpho_blue_address')\n \n AS t(contract_address, protocol, version, type)\n\n WHERE\n type = 'comp_v2_origin_from_address'\n),\ncontracts AS (\n SELECT\n contract_address,\n token_name,\n token_symbol,\n token_decimals\n FROM\n polygon.silver.contracts\n),\nlog_pull AS (\n SELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.origin_from_address,\n l.contract_address,\n C.token_name,\n C.token_symbol,\n C.token_decimals,\n l.modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n polygon.core.fact_event_logs\n l\n LEFT JOIN contracts C\n ON C.contract_address = l.contract_address\n WHERE\n topics [0] :: STRING in(\n '0x7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d',\n '0x70aea8d848e8a90fb7661b227dc522eb6395c3dac71b63cb59edd5c9899b2364',\n '0x17d6db5ffe5a3d1c3d7a98194dca4f7d808d621e6ff9077ed574513d553a2a85'--joelend topic\n )\n AND origin_from_address IN (\n SELECT\n contract_address\n FROM\n origin_from_addresses\n )\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.comp_v2_asset_details\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ntraces_pull AS (\n SELECT\n block_number,\n tx_hash,\n type,\n block_timestamp,\n from_address AS token_address,\n LEFT(input, 10) AS function_sig,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS segmented_input,\n CONCAT('0x', SUBSTR(segmented_input[0]::STRING, 25)) AS underlying_asset_address,\n utils.udf_hex_to_string(\n segmented_input[array_size(segmented_input) - 3]::STRING) AS token_name,\n utils.udf_hex_to_string(\n segmented_input[array_size(segmented_input) - 1]::STRING) AS token_symbol,\n TRY_TO_NUMBER(\n utils.udf_hex_to_int(\n segmented_input[6]::STRING)) AS token_decimals,\n modified_timestamp\n FROM\n polygon.core.fact_traces\n t\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n log_pull\n )\n AND TYPE = 'DELEGATECALL'\n AND trace_index = 1\n UNION\n SELECT\n block_number,\n tx_hash,\n type,\n block_timestamp,\n from_address AS token_address,\n LEFT(input, 10) AS function_sig,\n regexp_substr_all(SUBSTR(input, 11), '.{64}') AS segmented_input,\n to_address AS underlying_asset_address,\n c.token_name,\n c.token_symbol,\n c.token_decimals,\n modified_timestamp\n FROM\n polygon.core.fact_traces\n t\n LEFT JOIN contracts c\n ON c.contract_address = t.from_address\n WHERE\n tx_hash IN (\n SELECT\n tx_hash\n FROM\n log_pull\n )\n and function_sig = '0x18160ddd'\n and from_address in (select contract_address from log_pull)\n),\nunderlying_details AS (\n SELECT\n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.origin_from_address,\n l.contract_address,\n COALESCE(t.token_name, l.token_name) AS token_name,\n COALESCE(t.token_symbol, l.token_symbol) AS token_symbol,\n COALESCE(t.token_decimals, l.token_decimals) AS token_decimals,\n t.underlying_asset_address,\n l.modified_timestamp,\n l._log_id\n FROM\n log_pull l\n LEFT JOIN traces_pull t\n ON l.contract_address = t.token_address\n AND l.tx_hash = t.tx_hash \n),\nfinal AS (\n SELECT \n l.tx_hash,\n l.block_number,\n l.block_timestamp,\n l.origin_from_address,\n l.contract_address AS token_address,\n l.token_name,\n l.token_symbol,\n l.token_decimals,\n l.underlying_asset_address,\n C.token_name AS underlying_name,\n C.token_symbol AS underlying_symbol,\n C.token_decimals AS underlying_decimals,\n o.protocol,\n o.version,\n l.modified_timestamp,\n l._log_id\n FROM\n underlying_details l\n LEFT JOIN contracts C\n ON C.contract_address = l.underlying_asset_address\n LEFT JOIN origin_from_addresses o\n ON o.contract_address = l.origin_from_address\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n origin_from_address,\n token_address,\n token_name,\n token_symbol,\n token_decimals,\n CASE \n WHEN token_symbol LIKE '%' || 'POL' || '%' AND underlying_symbol IS NULL\n THEN '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n ELSE underlying_asset_address \n END AS underlying_asset_address,\n CASE \n WHEN token_symbol LIKE '%' || 'POL' || '%' AND underlying_name IS NULL \n THEN 'WPOL'\n ELSE underlying_name \n END AS underlying_name,\n CASE \n WHEN token_symbol LIKE '%' || 'POL' || '%' AND underlying_symbol IS NULL \n THEN 'WPOL'\n ELSE underlying_symbol \n END AS underlying_symbol,\n CASE \n WHEN token_symbol LIKE '%' || 'POL' || '%' AND underlying_decimals IS NULL \n THEN 18\n ELSE underlying_decimals \n END AS underlying_decimals,\n protocol,\n version,\n modified_timestamp as _inserted_timestamp,\n SYSDATE() as modified_timestamp,\n SYSDATE() as inserted_timestamp,\n _log_id\nFROM\n final\nWHERE \n token_name is not null or protocol <> 'dforce'\n qualify(ROW_NUMBER() over(PARTITION BY token_address\n ORDER BY\n CASE WHEN underlying_symbol IS NOT NULL THEN 1 ELSE 0 END DESC,\n CASE WHEN underlying_decimals IS NOT NULL THEN 1 ELSE 0 END DESC,\n block_number ASC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__comp_v2_withdraws": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__comp_v2_withdraws", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/compound_v2/silver_lending__comp_v2_withdraws.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/compound_v2/silver_lending__comp_v2_withdraws.sql", "unique_id": "model.fsc_evm.silver_lending__comp_v2_withdraws", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "compound_v2", "silver_lending__comp_v2_withdraws"], "alias": "comp_v2_withdraws", "checksum": {"name": "sha256", "checksum": "7aa27651759e6ef1ca9c20ec6b4b8bd504a8c3b68e2fca11ee7f6729274a2624"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "comp_v2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "comp_v2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "comp_v2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018412.3081322, "relation_name": "polygon.silver_lending.comp_v2_withdraws", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','comp_v2']\n) }}\n-- pull all token addresses and corresponding name\nWITH asset_details AS (\n SELECT\n token_address,\n token_symbol,\n token_name,\n token_decimals,\n underlying_asset_address,\n underlying_name,\n protocol,\n version\n FROM\n {{ ref('silver_lending__comp_v2_asset_details') }}\n),\ncomp_v2_fork_redemptions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n contract_address AS protocol_market,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE \n WHEN topics[0]::STRING = '0x3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc' THEN\n utils.udf_hex_to_int(segmented_data[3]::STRING)::INTEGER\n ELSE\n utils.udf_hex_to_int(segmented_data[1]::STRING)::INTEGER\n END AS received_amount_raw,\n CASE \n WHEN topics[0]::STRING = '0x3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc' THEN\n utils.udf_hex_to_int(segmented_data[2]::STRING)::INTEGER\n ELSE\n utils.udf_hex_to_int(segmented_data[3]::STRING)::INTEGER\n END AS redeemed_token_raw,\n CONCAT('0x', SUBSTR(segmented_data[0]::STRING, 25, 40)) AS depositor,\n modified_timestamp,\n CONCAT(tx_hash::STRING, '-', event_index::STRING) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n contract_address IN (SELECT token_address FROM asset_details)\n AND topics [0] :: STRING IN ('0xe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a929'\n ,'0xbd5034ffbd47e4e72a94baa2cdb74c6fad73cb3bcdc13036b72ec8306f5a7646'\n ,'0x3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc')\n AND tx_succeeded\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ncomp_v2_fork_combine AS (\n SELECT\n b.block_number,\n b.block_timestamp,\n b.tx_hash,\n b.event_index,\n b.origin_from_address,\n b.origin_to_address,\n b.origin_function_signature,\n b.contract_address,\n b.protocol_market,\n b.depositor,\n b.received_amount_raw,\n C.underlying_asset_address AS token_address,\n C.protocol,\n C.version,\n C.protocol || '-' || C.version as platform,\n b._log_id,\n b.modified_timestamp\n FROM\n comp_v2_fork_redemptions b\n LEFT JOIN asset_details C\n ON b.protocol_market = C.token_address\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n protocol_market,\n depositor,\n token_address,\n received_amount_raw AS amount_unadj,\n platform,\n protocol,\n version,\n modified_timestamp as _inserted_timestamp,\n SYSDATE() as modified_timestamp,\n SYSDATE() as inserted_timestamp,\n _log_id,\n 'Redeem' AS event_name\nFROM\n comp_v2_fork_combine qualify(ROW_NUMBER() over(PARTITION BY _log_id ORDER BY modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__comp_v2_asset_details", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__comp_v2_asset_details", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/compound_v2/silver_lending__comp_v2_withdraws.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"comp_v2\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','comp_v2']\n) }}\n-- pull all token addresses and corresponding name\nWITH asset_details AS (\n SELECT\n token_address,\n token_symbol,\n token_name,\n token_decimals,\n underlying_asset_address,\n underlying_name,\n protocol,\n version\n FROM\n {{ ref('silver_lending__comp_v2_asset_details') }}\n),\ncomp_v2_fork_redemptions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n contract_address AS protocol_market,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE \n WHEN topics[0]::STRING = '0x3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc' THEN\n utils.udf_hex_to_int(segmented_data[3]::STRING)::INTEGER\n ELSE\n utils.udf_hex_to_int(segmented_data[1]::STRING)::INTEGER\n END AS received_amount_raw,\n CASE \n WHEN topics[0]::STRING = '0x3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc' THEN\n utils.udf_hex_to_int(segmented_data[2]::STRING)::INTEGER\n ELSE\n utils.udf_hex_to_int(segmented_data[3]::STRING)::INTEGER\n END AS redeemed_token_raw,\n CONCAT('0x', SUBSTR(segmented_data[0]::STRING, 25, 40)) AS depositor,\n modified_timestamp,\n CONCAT(tx_hash::STRING, '-', event_index::STRING) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n contract_address IN (SELECT token_address FROM asset_details)\n AND topics [0] :: STRING IN ('0xe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a929'\n ,'0xbd5034ffbd47e4e72a94baa2cdb74c6fad73cb3bcdc13036b72ec8306f5a7646'\n ,'0x3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc')\n AND tx_succeeded\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ncomp_v2_fork_combine AS (\n SELECT\n b.block_number,\n b.block_timestamp,\n b.tx_hash,\n b.event_index,\n b.origin_from_address,\n b.origin_to_address,\n b.origin_function_signature,\n b.contract_address,\n b.protocol_market,\n b.depositor,\n b.received_amount_raw,\n C.underlying_asset_address AS token_address,\n C.protocol,\n C.version,\n C.protocol || '-' || C.version as platform,\n b._log_id,\n b.modified_timestamp\n FROM\n comp_v2_fork_redemptions b\n LEFT JOIN asset_details C\n ON b.protocol_market = C.token_address\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n protocol_market,\n depositor,\n token_address,\n received_amount_raw AS amount_unadj,\n platform,\n protocol,\n version,\n modified_timestamp as _inserted_timestamp,\n SYSDATE() as modified_timestamp,\n SYSDATE() as inserted_timestamp,\n _log_id,\n 'Redeem' AS event_name\nFROM\n comp_v2_fork_combine qualify(ROW_NUMBER() over(PARTITION BY _log_id ORDER BY modified_timestamp DESC)) = 1\n*/\n\n\n-- pull all token addresses and corresponding name\nWITH asset_details AS (\n SELECT\n token_address,\n token_symbol,\n token_name,\n token_decimals,\n underlying_asset_address,\n underlying_name,\n protocol,\n version\n FROM\n polygon.silver_lending.comp_v2_asset_details\n),\ncomp_v2_fork_redemptions AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n contract_address AS protocol_market,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE \n WHEN topics[0]::STRING = '0x3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc' THEN\n utils.udf_hex_to_int(segmented_data[3]::STRING)::INTEGER\n ELSE\n utils.udf_hex_to_int(segmented_data[1]::STRING)::INTEGER\n END AS received_amount_raw,\n CASE \n WHEN topics[0]::STRING = '0x3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc' THEN\n utils.udf_hex_to_int(segmented_data[2]::STRING)::INTEGER\n ELSE\n utils.udf_hex_to_int(segmented_data[3]::STRING)::INTEGER\n END AS redeemed_token_raw,\n CONCAT('0x', SUBSTR(segmented_data[0]::STRING, 25, 40)) AS depositor,\n modified_timestamp,\n CONCAT(tx_hash::STRING, '-', event_index::STRING) AS _log_id\n FROM\n polygon.core.fact_event_logs\n WHERE\n contract_address IN (SELECT token_address FROM asset_details)\n AND topics [0] :: STRING IN ('0xe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a929'\n ,'0xbd5034ffbd47e4e72a94baa2cdb74c6fad73cb3bcdc13036b72ec8306f5a7646'\n ,'0x3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc')\n AND tx_succeeded\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.comp_v2_withdraws\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ncomp_v2_fork_combine AS (\n SELECT\n b.block_number,\n b.block_timestamp,\n b.tx_hash,\n b.event_index,\n b.origin_from_address,\n b.origin_to_address,\n b.origin_function_signature,\n b.contract_address,\n b.protocol_market,\n b.depositor,\n b.received_amount_raw,\n C.underlying_asset_address AS token_address,\n C.protocol,\n C.version,\n C.protocol || '-' || C.version as platform,\n b._log_id,\n b.modified_timestamp\n FROM\n comp_v2_fork_redemptions b\n LEFT JOIN asset_details C\n ON b.protocol_market = C.token_address\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n protocol_market,\n depositor,\n token_address,\n received_amount_raw AS amount_unadj,\n platform,\n protocol,\n version,\n modified_timestamp as _inserted_timestamp,\n SYSDATE() as modified_timestamp,\n SYSDATE() as inserted_timestamp,\n _log_id,\n 'Redeem' AS event_name\nFROM\n comp_v2_fork_combine qualify(ROW_NUMBER() over(PARTITION BY _log_id ORDER BY modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__comp_v2_borrows": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__comp_v2_borrows", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/compound_v2/silver_lending__comp_v2_borrows.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/compound_v2/silver_lending__comp_v2_borrows.sql", "unique_id": "model.fsc_evm.silver_lending__comp_v2_borrows", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "compound_v2", "silver_lending__comp_v2_borrows"], "alias": "comp_v2_borrows", "checksum": {"name": "sha256", "checksum": "205d1e4d64a3fd03c1454f7316f6d9846c1613311e62b958395e47242061f4f2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "compound", "comp_v2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "compound", "comp_v2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "compound", "comp_v2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018412.6210017, "relation_name": "polygon.silver_lending.comp_v2_borrows", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','compound','comp_v2']\n) }}\n-- pull all token addresses and corresponding name\nWITH asset_details AS (\n\n SELECT\n token_address,\n token_symbol,\n token_name,\n token_decimals,\n underlying_asset_address,\n underlying_name,\n protocol,\n version\n FROM\n {{ ref('silver_lending__comp_v2_asset_details') }}\n),\ncomp_v2_fork_borrows AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS borrower,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS loan_amount_raw,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER AS accountBorrows,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER AS totalBorrows,\n contract_address AS protocol_market,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n contract_address IN (\n SELECT\n token_address\n FROM\n asset_details\n )\n AND topics [0] :: STRING in( '0x13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab80', '0x2dd79f4fccfd18c360ce7f9132f3621bf05eee18f995224badb32d17f172df73')\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ncomp_v2_fork_combine AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n C.underlying_asset_address AS token_address,\n loan_amount_raw,\n C.protocol,\n C.version,\n C.protocol || '-' || C.version as platform,\n b._log_id,\n b.modified_timestamp\n FROM\n comp_v2_fork_borrows b\n LEFT JOIN asset_details C\n ON b.protocol_market = C.token_address\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n loan_amount_raw AS amount_unadj,\n platform,\n protocol,\n version,\n modified_timestamp as _inserted_timestamp,\n SYSDATE() as modified_timestamp,\n SYSDATE() as inserted_timestamp,\n _log_id,\n 'Borrow' AS event_name\nFROM\n comp_v2_fork_combine qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__comp_v2_asset_details", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__comp_v2_asset_details", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/compound_v2/silver_lending__comp_v2_borrows.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"compound\",\n \"comp_v2\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','compound','comp_v2']\n) }}\n-- pull all token addresses and corresponding name\nWITH asset_details AS (\n\n SELECT\n token_address,\n token_symbol,\n token_name,\n token_decimals,\n underlying_asset_address,\n underlying_name,\n protocol,\n version\n FROM\n {{ ref('silver_lending__comp_v2_asset_details') }}\n),\ncomp_v2_fork_borrows AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS borrower,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS loan_amount_raw,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER AS accountBorrows,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER AS totalBorrows,\n contract_address AS protocol_market,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n contract_address IN (\n SELECT\n token_address\n FROM\n asset_details\n )\n AND topics [0] :: STRING in( '0x13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab80', '0x2dd79f4fccfd18c360ce7f9132f3621bf05eee18f995224badb32d17f172df73')\n AND tx_succeeded\n\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ncomp_v2_fork_combine AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n C.underlying_asset_address AS token_address,\n loan_amount_raw,\n C.protocol,\n C.version,\n C.protocol || '-' || C.version as platform,\n b._log_id,\n b.modified_timestamp\n FROM\n comp_v2_fork_borrows b\n LEFT JOIN asset_details C\n ON b.protocol_market = C.token_address\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n loan_amount_raw AS amount_unadj,\n platform,\n protocol,\n version,\n modified_timestamp as _inserted_timestamp,\n SYSDATE() as modified_timestamp,\n SYSDATE() as inserted_timestamp,\n _log_id,\n 'Borrow' AS event_name\nFROM\n comp_v2_fork_combine qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1\n*/\n\n\n-- pull all token addresses and corresponding name\nWITH asset_details AS (\n\n SELECT\n token_address,\n token_symbol,\n token_name,\n token_decimals,\n underlying_asset_address,\n underlying_name,\n protocol,\n version\n FROM\n polygon.silver_lending.comp_v2_asset_details\n),\ncomp_v2_fork_borrows AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS borrower,\n utils.udf_hex_to_int(\n segmented_data [1] :: STRING\n ) :: INTEGER AS loan_amount_raw,\n utils.udf_hex_to_int(\n segmented_data [2] :: STRING\n ) :: INTEGER AS accountBorrows,\n utils.udf_hex_to_int(\n segmented_data [3] :: STRING\n ) :: INTEGER AS totalBorrows,\n contract_address AS protocol_market,\n modified_timestamp,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id\n FROM\n polygon.core.fact_event_logs\n WHERE\n contract_address IN (\n SELECT\n token_address\n FROM\n asset_details\n )\n AND topics [0] :: STRING in( '0x13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab80', '0x2dd79f4fccfd18c360ce7f9132f3621bf05eee18f995224badb32d17f172df73')\n AND tx_succeeded\n\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.comp_v2_borrows\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ncomp_v2_fork_combine AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n C.underlying_asset_address AS token_address,\n loan_amount_raw,\n C.protocol,\n C.version,\n C.protocol || '-' || C.version as platform,\n b._log_id,\n b.modified_timestamp\n FROM\n comp_v2_fork_borrows b\n LEFT JOIN asset_details C\n ON b.protocol_market = C.token_address\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n loan_amount_raw AS amount_unadj,\n platform,\n protocol,\n version,\n modified_timestamp as _inserted_timestamp,\n SYSDATE() as modified_timestamp,\n SYSDATE() as inserted_timestamp,\n _log_id,\n 'Borrow' AS event_name\nFROM\n comp_v2_fork_combine qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__comp_v2_deposits": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__comp_v2_deposits", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/protocols/compound_v2/silver_lending__comp_v2_deposits.sql", "original_file_path": "models/curated_package/defi/lending/silver/protocols/compound_v2/silver_lending__comp_v2_deposits.sql", "unique_id": "model.fsc_evm.silver_lending__comp_v2_deposits", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "protocols", "compound_v2", "silver_lending__comp_v2_deposits"], "alias": "comp_v2_deposits", "checksum": {"name": "sha256", "checksum": "e25e0ffe5bfcc5ca1eaca325a925ff8fec21e2d37091c0cf23018b68039338a1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "compound", "comp_v2"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE"]}, "tags": ["silver", "defi", "lending", "curated", "compound", "comp_v2"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_number", "cluster_by": ["block_timestamp::DATE"], "tags": ["silver", "defi", "lending", "curated", "compound", "comp_v2"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018412.9334347, "relation_name": "polygon.silver_lending.comp_v2_deposits", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','compound','comp_v2']\n) }}\n-- pull all token addresses and corresponding name\nWITH asset_details AS (\n SELECT\n token_address,\n token_symbol,\n token_name,\n token_decimals,\n underlying_asset_address,\n underlying_name,\n protocol,\n version\n FROM\n {{ ref('silver_lending__comp_v2_asset_details') }}\n),\ncomp_v2_fork_deposits AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n contract_address AS protocol_market,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE \n WHEN topics[0]::STRING = '0x2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee' \n THEN utils.udf_hex_to_int(segmented_data[3]::STRING)::INTEGER\n ELSE utils.udf_hex_to_int(segmented_data[2]::STRING)::INTEGER\n END AS minttokens_raw,\n CASE \n WHEN topics[0]::STRING = '0x2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee' \n THEN utils.udf_hex_to_int(segmented_data[2]::STRING)::INTEGER\n ELSE utils.udf_hex_to_int(segmented_data[1]::STRING)::INTEGER\n END AS mintAmount_raw,\n CONCAT('0x', SUBSTR(segmented_data[0]::STRING, 25, 40)) AS supplier,\n modified_timestamp,\n CONCAT(tx_hash::STRING, '-', event_index::STRING) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n contract_address IN (SELECT token_address FROM asset_details)\n AND topics [0] :: STRING IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f'\n ,'0xb4c03061fb5b7fed76389d5af8f2e0ddb09f8c70d1333abbb62582835e10accb'\n ,'0x2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee')\n AND tx_succeeded\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ncomp_v2_fork_combine AS (\n SELECT\n b.block_number,\n b.block_timestamp,\n b.tx_hash,\n b.event_index,\n b.origin_from_address,\n b.origin_to_address,\n b.origin_function_signature,\n b.contract_address,\n b.supplier,\n b.mintAmount_raw,\n b.protocol_market,\n C.underlying_asset_address AS token_address,\n C.protocol,\n C.version,\n C.protocol || '-' || C.version as platform,\n b._log_id,\n b.modified_timestamp\n FROM\n comp_v2_fork_deposits b\n LEFT JOIN asset_details C\n ON b.protocol_market = C.token_address\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n supplier as depositor,\n protocol_market,\n token_address,\n mintAmount_raw AS amount_unadj,\n platform,\n protocol,\n version,\n modified_timestamp as _inserted_timestamp,\n SYSDATE() as modified_timestamp,\n SYSDATE() as inserted_timestamp,\n _log_id,\n 'Mint' AS event_name\nFROM\n comp_v2_fork_combine qualify(ROW_NUMBER() over(PARTITION BY _log_id ORDER BY modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__comp_v2_asset_details", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__comp_v2_asset_details", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/protocols/compound_v2/silver_lending__comp_v2_deposits.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"compound\",\n \"comp_v2\"\n ],\n \"unique_key\": \"block_number\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_number\",\n cluster_by = ['block_timestamp::DATE'],\n tags = ['silver','defi','lending','curated','compound','comp_v2']\n) }}\n-- pull all token addresses and corresponding name\nWITH asset_details AS (\n SELECT\n token_address,\n token_symbol,\n token_name,\n token_decimals,\n underlying_asset_address,\n underlying_name,\n protocol,\n version\n FROM\n {{ ref('silver_lending__comp_v2_asset_details') }}\n),\ncomp_v2_fork_deposits AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n contract_address AS protocol_market,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE \n WHEN topics[0]::STRING = '0x2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee' \n THEN utils.udf_hex_to_int(segmented_data[3]::STRING)::INTEGER\n ELSE utils.udf_hex_to_int(segmented_data[2]::STRING)::INTEGER\n END AS minttokens_raw,\n CASE \n WHEN topics[0]::STRING = '0x2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee' \n THEN utils.udf_hex_to_int(segmented_data[2]::STRING)::INTEGER\n ELSE utils.udf_hex_to_int(segmented_data[1]::STRING)::INTEGER\n END AS mintAmount_raw,\n CONCAT('0x', SUBSTR(segmented_data[0]::STRING, 25, 40)) AS supplier,\n modified_timestamp,\n CONCAT(tx_hash::STRING, '-', event_index::STRING) AS _log_id\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n contract_address IN (SELECT token_address FROM asset_details)\n AND topics [0] :: STRING IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f'\n ,'0xb4c03061fb5b7fed76389d5af8f2e0ddb09f8c70d1333abbb62582835e10accb'\n ,'0x2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee')\n AND tx_succeeded\n{% if is_incremental() %}\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '{{ vars.CURATED_LOOKBACK_DAYS }}'\n{% endif %}\n),\ncomp_v2_fork_combine AS (\n SELECT\n b.block_number,\n b.block_timestamp,\n b.tx_hash,\n b.event_index,\n b.origin_from_address,\n b.origin_to_address,\n b.origin_function_signature,\n b.contract_address,\n b.supplier,\n b.mintAmount_raw,\n b.protocol_market,\n C.underlying_asset_address AS token_address,\n C.protocol,\n C.version,\n C.protocol || '-' || C.version as platform,\n b._log_id,\n b.modified_timestamp\n FROM\n comp_v2_fork_deposits b\n LEFT JOIN asset_details C\n ON b.protocol_market = C.token_address\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n supplier as depositor,\n protocol_market,\n token_address,\n mintAmount_raw AS amount_unadj,\n platform,\n protocol,\n version,\n modified_timestamp as _inserted_timestamp,\n SYSDATE() as modified_timestamp,\n SYSDATE() as inserted_timestamp,\n _log_id,\n 'Mint' AS event_name\nFROM\n comp_v2_fork_combine qualify(ROW_NUMBER() over(PARTITION BY _log_id ORDER BY modified_timestamp DESC)) = 1\n*/\n\n\n-- pull all token addresses and corresponding name\nWITH asset_details AS (\n SELECT\n token_address,\n token_symbol,\n token_name,\n token_decimals,\n underlying_asset_address,\n underlying_name,\n protocol,\n version\n FROM\n polygon.silver_lending.comp_v2_asset_details\n),\ncomp_v2_fork_deposits AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n contract_address AS protocol_market,\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n CASE \n WHEN topics[0]::STRING = '0x2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee' \n THEN utils.udf_hex_to_int(segmented_data[3]::STRING)::INTEGER\n ELSE utils.udf_hex_to_int(segmented_data[2]::STRING)::INTEGER\n END AS minttokens_raw,\n CASE \n WHEN topics[0]::STRING = '0x2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee' \n THEN utils.udf_hex_to_int(segmented_data[2]::STRING)::INTEGER\n ELSE utils.udf_hex_to_int(segmented_data[1]::STRING)::INTEGER\n END AS mintAmount_raw,\n CONCAT('0x', SUBSTR(segmented_data[0]::STRING, 25, 40)) AS supplier,\n modified_timestamp,\n CONCAT(tx_hash::STRING, '-', event_index::STRING) AS _log_id\n FROM\n polygon.core.fact_event_logs\n WHERE\n contract_address IN (SELECT token_address FROM asset_details)\n AND topics [0] :: STRING IN ('0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f'\n ,'0xb4c03061fb5b7fed76389d5af8f2e0ddb09f8c70d1333abbb62582835e10accb'\n ,'0x2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee')\n AND tx_succeeded\n\nAND modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '12 hours'\n FROM\n polygon.silver_lending.comp_v2_deposits\n)\nAND modified_timestamp >= SYSDATE() - INTERVAL '7 days'\n\n),\ncomp_v2_fork_combine AS (\n SELECT\n b.block_number,\n b.block_timestamp,\n b.tx_hash,\n b.event_index,\n b.origin_from_address,\n b.origin_to_address,\n b.origin_function_signature,\n b.contract_address,\n b.supplier,\n b.mintAmount_raw,\n b.protocol_market,\n C.underlying_asset_address AS token_address,\n C.protocol,\n C.version,\n C.protocol || '-' || C.version as platform,\n b._log_id,\n b.modified_timestamp\n FROM\n comp_v2_fork_deposits b\n LEFT JOIN asset_details C\n ON b.protocol_market = C.token_address\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n supplier as depositor,\n protocol_market,\n token_address,\n mintAmount_raw AS amount_unadj,\n platform,\n protocol,\n version,\n modified_timestamp as _inserted_timestamp,\n SYSDATE() as modified_timestamp,\n SYSDATE() as inserted_timestamp,\n _log_id,\n 'Mint' AS event_name\nFROM\n comp_v2_fork_combine qualify(ROW_NUMBER() over(PARTITION BY _log_id ORDER BY modified_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__complete_lending_liquidations": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__complete_lending_liquidations", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.sql", "unique_id": "model.fsc_evm.silver_lending__complete_lending_liquidations", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "silver_lending__complete_lending_liquidations"], "alias": "complete_lending_liquidations", "checksum": {"name": "sha256", "checksum": "79c73a8299a24a2f443c148c66876f8a982199b01ece3b7392ad67534c807ac8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "heal", "liquidations", "complete_lending"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, liquidator, borrower, collateral_token, collateral_token_symbol, debt_token, debt_token_symbol, protocol_market)", "transaction": true, "index": null}, {"sql": "{{ remove_test_tokens() }}", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["block_number", "platform"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE", "platform"]}, "tags": ["silver", "defi", "lending", "curated", "heal", "liquidations", "complete_lending"], "description": "", "columns": {"TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LIQUIDATOR": {"name": "LIQUIDATOR", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BORROWER": {"name": "BORROWER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL_MARKET": {"name": "PROTOCOL_MARKET", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "COLLATERAL_TOKEN": {"name": "COLLATERAL_TOKEN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "COLLATERAL_TOKEN_SYMBOL": {"name": "COLLATERAL_TOKEN_SYMBOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LIQUIDATED_AMOUNT_UNADJ": {"name": "LIQUIDATED_AMOUNT_UNADJ", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LIQUIDATED_AMOUNT": {"name": "LIQUIDATED_AMOUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LIQUIDATED_AMOUNT_USD": {"name": "LIQUIDATED_AMOUNT_USD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEBT_TOKEN": {"name": "DEBT_TOKEN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEBT_TOKEN_SYMBOL": {"name": "DEBT_TOKEN_SYMBOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REPAID_AMOUNT_UNADJ": {"name": "REPAID_AMOUNT_UNADJ", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REPAID_AMOUNT": {"name": "REPAID_AMOUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REPAID_AMOUNT_USD": {"name": "REPAID_AMOUNT_USD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL": {"name": "PROTOCOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VERSION": {"name": "VERSION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_LOG_ID": {"name": "_LOG_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "COMPLETE_LENDING_LIQUIDATIONS_ID": {"name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INVOCATION_ID": {"name": "_INVOCATION_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["block_number", "platform"], "cluster_by": ["block_timestamp::DATE", "platform"], "tags": ["silver", "defi", "lending", "curated", "heal", "liquidations", "complete_lending"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018442.1277006, "relation_name": "polygon.silver_lending.complete_lending_liquidations", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('silver__complete_token_prices') }}\n-- depends_on: {{ ref('silver_lending__token_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform'],\n cluster_by = ['block_timestamp::DATE','platform'],\n post_hook = [\n \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, liquidator, borrower, collateral_token, collateral_token_symbol, debt_token, debt_token_symbol, protocol_market)\",\n \"{{ remove_test_tokens() }}\"\n ],\n tags = ['silver','defi','lending','curated','heal','liquidations','complete_lending']\n) }}\nWITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n WHERE\n address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\nprices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n WHERE\n token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\naave AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _log_id,\n modified_timestamp,\n event_name\n FROM\n {{ ref('silver_lending__aave_liquidations') }} A\n\n\n{% if is_incremental() and 'aave' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n euler AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _log_id,\n modified_timestamp,\n event_name\n FROM\n {{ ref('silver_lending__euler_liquidations') }} A\n\n{% if is_incremental() and 'euler' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naave_ethereum AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n liquidator,\n borrower,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_ethereum_liquidations') }} A\n\n{% if is_incremental() and 'aave_ethereum' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nfraxlend AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n liquidator,\n borrower,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__fraxlend_liquidations') }} A\n\n{% if is_incremental() and 'fraxlend' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v2 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _log_id,\n modified_timestamp,\n event_name\n FROM\n {{ ref('silver_lending__comp_v2_liquidations') }} A\n\n{% if is_incremental() and 'comp_v2' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v3 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _log_id,\n modified_timestamp,\n event_name\n FROM\n {{ ref('silver_lending__comp_v3_liquidations') }} A\n\n{% if is_incremental() and 'comp_v3' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsilo AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _log_id,\n modified_timestamp,\n event_name\n FROM\n {{ ref('silver_lending__silo_liquidations') }} A \n\n{% if is_incremental() and 'silo' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmorpho AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n null as event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _id as _log_id,\n modified_timestamp,\n event_name\n FROM\n {{ ref('silver_lending__morpho_liquidations') }} A\n\n{% if is_incremental() and 'morpho' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nliquidation_union AS (\n SELECT\n *\n FROM\n aave\n UNION ALL\n SELECT\n *\n FROM\n aave_ethereum\n UNION ALL\n SELECT\n *\n FROM\n comp_v2\n UNION ALL\n SELECT\n *\n FROM\n comp_v3\n UNION ALL\n SELECT\n *\n FROM\n silo\n UNION ALL\n SELECT\n *\n FROM\n fraxlend\n UNION ALL\n SELECT\n *\n FROM\n morpho\n UNION ALL\n SELECT\n *\n FROM\n euler\n),\n\ncomplete_lending_liquidations AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n A.contract_address,\n A.event_name,\n liquidator,\n borrower,\n protocol_market,\n collateral_token,\n C.token_symbol AS collateral_token_symbol,\n liquidated_amount_unadj,\n liquidated_amount_unadj / pow(10, C.token_decimals) AS liquidated_amount,\n ROUND(liquidated_amount * p1.price, 2) AS liquidated_amount_usd,\n debt_token,\n C2.token_symbol AS debt_token_symbol,\n repaid_amount_unadj,\n repaid_amount_unadj / pow(10, C2.token_decimals) AS repaid_amount,\n ROUND(repaid_amount * p2.price, 2) AS repaid_amount_usd,\n platform,\n protocol,\n version,\n A._LOG_ID,\n A.modified_timestamp\n FROM\n liquidation_union A\n LEFT JOIN contracts C\n ON A.collateral_token = C.contract_address\n LEFT JOIN contracts C2\n ON A.debt_token = C2.contract_address\n LEFT JOIN prices\n p1\n ON collateral_token = p1.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.hour\n LEFT JOIN prices\n p2\n ON debt_token = p2.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p2.hour\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\ntoken_metadata AS (\n SELECT\n underlying_token_address,\n underlying_token_symbol,\n underlying_token_decimals\n FROM\n {{ ref('silver_lending__token_metadata') }}\n WHERE \n blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n),\nheal_model AS (\n SELECT\n t0.tx_hash,\n t0.block_number,\n t0.block_timestamp,\n t0.event_index,\n t0.origin_from_address,\n t0.origin_to_address,\n t0.origin_function_signature,\n t0.contract_address,\n t0.event_name,\n t0.liquidator,\n t0.borrower,\n t0.protocol_market,\n t0.collateral_token,\n COALESCE(NULLIF(t0.collateral_token_symbol, ''), tm1.underlying_token_symbol, c1.token_symbol) as collateral_token_symbol,\n t0.liquidated_amount_unadj,\n COALESCE(t0.liquidated_amount, t0.liquidated_amount_unadj / pow(10, tm1.underlying_token_decimals), t0.liquidated_amount_unadj / pow(10, c1.token_decimals)) AS liquidated_amount,\n ROUND(\n COALESCE(t0.liquidated_amount, t0.liquidated_amount_unadj / pow(10, tm1.underlying_token_decimals), t0.liquidated_amount_unadj / pow(10, c1.token_decimals)) * p1.price,\n 2\n ) AS liquidated_amount_usd_heal,\n t0.debt_token,\n COALESCE(NULLIF(t0.debt_token_symbol, ''), tm2.underlying_token_symbol, c2.token_symbol) as debt_token_symbol,\n t0.repaid_amount_unadj,\n COALESCE(t0.repaid_amount, t0.repaid_amount_unadj / pow(10, tm2.underlying_token_decimals), t0.repaid_amount_unadj / pow(10, c2.token_decimals)) AS repaid_amount,\n ROUND(\n COALESCE(t0.repaid_amount, t0.repaid_amount_unadj / pow(10, tm2.underlying_token_decimals), t0.repaid_amount_unadj / pow(10, c2.token_decimals)) * p2.price,\n 2\n ) AS repaid_amount_usd_heal,\n t0.platform,\n t0.protocol,\n t0.version :: STRING AS version,\n t0._LOG_ID,\n t0.modified_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN token_metadata tm1\n ON t0.collateral_token = tm1.underlying_token_address\n LEFT JOIN token_metadata tm2\n ON t0.debt_token = tm2.underlying_token_address\n LEFT JOIN contracts c1\n ON t0.collateral_token = c1.contract_address\n LEFT JOIN contracts c2\n ON t0.debt_token = c2.contract_address\n LEFT JOIN prices p1\n ON t0.collateral_token = p1.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.hour\n LEFT JOIN prices p2\n ON t0.debt_token = p2.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p2.hour\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform\n ) IN (\n SELECT\n CONCAT(\n t1.block_number,\n '-',\n t1.platform\n )\n FROM\n {{ this }}\n t1\n WHERE\n t1.liquidated_amount_usd IS NULL\n AND t1.modified_timestamp < (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('price__ez_prices_hourly') }}\n p1\n WHERE\n p1.modified_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND p1.price IS NOT NULL\n AND p1.token_address = t1.collateral_token\n AND p1.hour = DATE_TRUNC(\n 'hour',\n t1.block_timestamp\n )\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('price__ez_prices_hourly') }}\n p2\n WHERE\n p2.modified_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND p2.price IS NOT NULL\n AND p2.token_address = t1.debt_token\n AND p2.hour = DATE_TRUNC(\n 'hour',\n t1.block_timestamp\n )\n )\n GROUP BY\n 1\n )\n OR (t0.collateral_token_symbol IS NULL OR t0.collateral_token_symbol = '' AND tm1.underlying_token_symbol IS NOT NULL AND tm1.underlying_token_symbol != '')\n OR (t0.collateral_token_symbol IS NULL OR t0.collateral_token_symbol = '' AND c1.token_symbol IS NOT NULL AND c1.token_symbol != '')\n OR (t0.debt_token_symbol IS NULL OR t0.debt_token_symbol = '' AND tm2.underlying_token_symbol IS NOT NULL AND tm2.underlying_token_symbol != '')\n OR (t0.debt_token_symbol IS NULL OR t0.debt_token_symbol = '' AND c2.token_symbol IS NOT NULL AND c2.token_symbol != '')\n OR (t0.liquidated_amount IS NULL AND tm1.underlying_token_decimals IS NOT NULL)\n OR (t0.liquidated_amount IS NULL AND c1.token_decimals IS NOT NULL)\n OR (t0.repaid_amount IS NULL AND tm2.underlying_token_decimals IS NOT NULL)\n OR (t0.repaid_amount IS NULL AND c2.token_decimals IS NOT NULL)\n),\n{% endif %}\n\nFINAL AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n liquidator,\n borrower,\n protocol_market,\n collateral_token,\n collateral_token_symbol,\n liquidated_amount_unadj,\n liquidated_amount,\n liquidated_amount_usd,\n debt_token,\n debt_token_symbol,\n repaid_amount_unadj,\n repaid_amount,\n repaid_amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\n FROM\n complete_lending_liquidations\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n liquidator,\n borrower,\n protocol_market,\n collateral_token,\n collateral_token_symbol,\n liquidated_amount_unadj,\n liquidated_amount,\n liquidated_amount_usd_heal AS liquidated_amount_usd,\n debt_token,\n debt_token_symbol,\n repaid_amount_unadj,\n repaid_amount,\n repaid_amount_usd_heal AS repaid_amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n\n)\nSELECT\n *,\n {{ dbt_utils.generate_surrogate_key(\n ['_log_id']\n ) }} AS complete_lending_liquidations_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver__complete_token_prices", "package": null, "version": null}, {"name": "silver_lending__token_metadata", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "silver_lending__aave_liquidations", "package": null, "version": null}, {"name": "silver_lending__euler_liquidations", "package": null, "version": null}, {"name": "silver_lending__aave_ethereum_liquidations", "package": null, "version": null}, {"name": "silver_lending__fraxlend_liquidations", "package": null, "version": null}, {"name": "silver_lending__comp_v2_liquidations", "package": null, "version": null}, {"name": "silver_lending__comp_v3_liquidations", "package": null, "version": null}, {"name": "silver_lending__silo_liquidations", "package": null, "version": null}, {"name": "silver_lending__morpho_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.remove_test_tokens", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__complete_token_prices", "seed.fsc_evm.silver_lending__token_metadata", "model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver_lending__aave_liquidations", "model.fsc_evm.silver_lending__euler_liquidations", "model.fsc_evm.silver_lending__aave_ethereum_liquidations", "model.fsc_evm.silver_lending__fraxlend_liquidations", "model.fsc_evm.silver_lending__comp_v2_liquidations", "model.fsc_evm.silver_lending__comp_v3_liquidations", "model.fsc_evm.silver_lending__silo_liquidations", "model.fsc_evm.silver_lending__morpho_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\",\n \"platform\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, liquidator, borrower, collateral_token, collateral_token_symbol, debt_token, debt_token_symbol, protocol_market)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ remove_test_tokens() }}\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"heal\",\n \"liquidations\",\n \"complete_lending\"\n ],\n \"unique_key\": [\n \"block_number\",\n \"platform\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('silver__complete_token_prices') }}\n-- depends_on: {{ ref('silver_lending__token_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform'],\n cluster_by = ['block_timestamp::DATE','platform'],\n post_hook = [\n \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, liquidator, borrower, collateral_token, collateral_token_symbol, debt_token, debt_token_symbol, protocol_market)\",\n \"{{ remove_test_tokens() }}\"\n ],\n tags = ['silver','defi','lending','curated','heal','liquidations','complete_lending']\n) }}\nWITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n WHERE\n address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\nprices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n WHERE\n token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\naave AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _log_id,\n modified_timestamp,\n event_name\n FROM\n {{ ref('silver_lending__aave_liquidations') }} A\n\n\n{% if is_incremental() and 'aave' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\n euler AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _log_id,\n modified_timestamp,\n event_name\n FROM\n {{ ref('silver_lending__euler_liquidations') }} A\n\n{% if is_incremental() and 'euler' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naave_ethereum AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n liquidator,\n borrower,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_ethereum_liquidations') }} A\n\n{% if is_incremental() and 'aave_ethereum' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nfraxlend AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n liquidator,\n borrower,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__fraxlend_liquidations') }} A\n\n{% if is_incremental() and 'fraxlend' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v2 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _log_id,\n modified_timestamp,\n event_name\n FROM\n {{ ref('silver_lending__comp_v2_liquidations') }} A\n\n{% if is_incremental() and 'comp_v2' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v3 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _log_id,\n modified_timestamp,\n event_name\n FROM\n {{ ref('silver_lending__comp_v3_liquidations') }} A\n\n{% if is_incremental() and 'comp_v3' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsilo AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _log_id,\n modified_timestamp,\n event_name\n FROM\n {{ ref('silver_lending__silo_liquidations') }} A \n\n{% if is_incremental() and 'silo' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmorpho AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n null as event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _id as _log_id,\n modified_timestamp,\n event_name\n FROM\n {{ ref('silver_lending__morpho_liquidations') }} A\n\n{% if is_incremental() and 'morpho' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nliquidation_union AS (\n SELECT\n *\n FROM\n aave\n UNION ALL\n SELECT\n *\n FROM\n aave_ethereum\n UNION ALL\n SELECT\n *\n FROM\n comp_v2\n UNION ALL\n SELECT\n *\n FROM\n comp_v3\n UNION ALL\n SELECT\n *\n FROM\n silo\n UNION ALL\n SELECT\n *\n FROM\n fraxlend\n UNION ALL\n SELECT\n *\n FROM\n morpho\n UNION ALL\n SELECT\n *\n FROM\n euler\n),\n\ncomplete_lending_liquidations AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n A.contract_address,\n A.event_name,\n liquidator,\n borrower,\n protocol_market,\n collateral_token,\n C.token_symbol AS collateral_token_symbol,\n liquidated_amount_unadj,\n liquidated_amount_unadj / pow(10, C.token_decimals) AS liquidated_amount,\n ROUND(liquidated_amount * p1.price, 2) AS liquidated_amount_usd,\n debt_token,\n C2.token_symbol AS debt_token_symbol,\n repaid_amount_unadj,\n repaid_amount_unadj / pow(10, C2.token_decimals) AS repaid_amount,\n ROUND(repaid_amount * p2.price, 2) AS repaid_amount_usd,\n platform,\n protocol,\n version,\n A._LOG_ID,\n A.modified_timestamp\n FROM\n liquidation_union A\n LEFT JOIN contracts C\n ON A.collateral_token = C.contract_address\n LEFT JOIN contracts C2\n ON A.debt_token = C2.contract_address\n LEFT JOIN prices\n p1\n ON collateral_token = p1.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.hour\n LEFT JOIN prices\n p2\n ON debt_token = p2.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p2.hour\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\ntoken_metadata AS (\n SELECT\n underlying_token_address,\n underlying_token_symbol,\n underlying_token_decimals\n FROM\n {{ ref('silver_lending__token_metadata') }}\n WHERE \n blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n),\nheal_model AS (\n SELECT\n t0.tx_hash,\n t0.block_number,\n t0.block_timestamp,\n t0.event_index,\n t0.origin_from_address,\n t0.origin_to_address,\n t0.origin_function_signature,\n t0.contract_address,\n t0.event_name,\n t0.liquidator,\n t0.borrower,\n t0.protocol_market,\n t0.collateral_token,\n COALESCE(NULLIF(t0.collateral_token_symbol, ''), tm1.underlying_token_symbol, c1.token_symbol) as collateral_token_symbol,\n t0.liquidated_amount_unadj,\n COALESCE(t0.liquidated_amount, t0.liquidated_amount_unadj / pow(10, tm1.underlying_token_decimals), t0.liquidated_amount_unadj / pow(10, c1.token_decimals)) AS liquidated_amount,\n ROUND(\n COALESCE(t0.liquidated_amount, t0.liquidated_amount_unadj / pow(10, tm1.underlying_token_decimals), t0.liquidated_amount_unadj / pow(10, c1.token_decimals)) * p1.price,\n 2\n ) AS liquidated_amount_usd_heal,\n t0.debt_token,\n COALESCE(NULLIF(t0.debt_token_symbol, ''), tm2.underlying_token_symbol, c2.token_symbol) as debt_token_symbol,\n t0.repaid_amount_unadj,\n COALESCE(t0.repaid_amount, t0.repaid_amount_unadj / pow(10, tm2.underlying_token_decimals), t0.repaid_amount_unadj / pow(10, c2.token_decimals)) AS repaid_amount,\n ROUND(\n COALESCE(t0.repaid_amount, t0.repaid_amount_unadj / pow(10, tm2.underlying_token_decimals), t0.repaid_amount_unadj / pow(10, c2.token_decimals)) * p2.price,\n 2\n ) AS repaid_amount_usd_heal,\n t0.platform,\n t0.protocol,\n t0.version :: STRING AS version,\n t0._LOG_ID,\n t0.modified_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN token_metadata tm1\n ON t0.collateral_token = tm1.underlying_token_address\n LEFT JOIN token_metadata tm2\n ON t0.debt_token = tm2.underlying_token_address\n LEFT JOIN contracts c1\n ON t0.collateral_token = c1.contract_address\n LEFT JOIN contracts c2\n ON t0.debt_token = c2.contract_address\n LEFT JOIN prices p1\n ON t0.collateral_token = p1.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.hour\n LEFT JOIN prices p2\n ON t0.debt_token = p2.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p2.hour\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform\n ) IN (\n SELECT\n CONCAT(\n t1.block_number,\n '-',\n t1.platform\n )\n FROM\n {{ this }}\n t1\n WHERE\n t1.liquidated_amount_usd IS NULL\n AND t1.modified_timestamp < (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('price__ez_prices_hourly') }}\n p1\n WHERE\n p1.modified_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND p1.price IS NOT NULL\n AND p1.token_address = t1.collateral_token\n AND p1.hour = DATE_TRUNC(\n 'hour',\n t1.block_timestamp\n )\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('price__ez_prices_hourly') }}\n p2\n WHERE\n p2.modified_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND p2.price IS NOT NULL\n AND p2.token_address = t1.debt_token\n AND p2.hour = DATE_TRUNC(\n 'hour',\n t1.block_timestamp\n )\n )\n GROUP BY\n 1\n )\n OR (t0.collateral_token_symbol IS NULL OR t0.collateral_token_symbol = '' AND tm1.underlying_token_symbol IS NOT NULL AND tm1.underlying_token_symbol != '')\n OR (t0.collateral_token_symbol IS NULL OR t0.collateral_token_symbol = '' AND c1.token_symbol IS NOT NULL AND c1.token_symbol != '')\n OR (t0.debt_token_symbol IS NULL OR t0.debt_token_symbol = '' AND tm2.underlying_token_symbol IS NOT NULL AND tm2.underlying_token_symbol != '')\n OR (t0.debt_token_symbol IS NULL OR t0.debt_token_symbol = '' AND c2.token_symbol IS NOT NULL AND c2.token_symbol != '')\n OR (t0.liquidated_amount IS NULL AND tm1.underlying_token_decimals IS NOT NULL)\n OR (t0.liquidated_amount IS NULL AND c1.token_decimals IS NOT NULL)\n OR (t0.repaid_amount IS NULL AND tm2.underlying_token_decimals IS NOT NULL)\n OR (t0.repaid_amount IS NULL AND c2.token_decimals IS NOT NULL)\n),\n{% endif %}\n\nFINAL AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n liquidator,\n borrower,\n protocol_market,\n collateral_token,\n collateral_token_symbol,\n liquidated_amount_unadj,\n liquidated_amount,\n liquidated_amount_usd,\n debt_token,\n debt_token_symbol,\n repaid_amount_unadj,\n repaid_amount,\n repaid_amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\n FROM\n complete_lending_liquidations\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n liquidator,\n borrower,\n protocol_market,\n collateral_token,\n collateral_token_symbol,\n liquidated_amount_unadj,\n liquidated_amount,\n liquidated_amount_usd_heal AS liquidated_amount_usd,\n debt_token,\n debt_token_symbol,\n repaid_amount_unadj,\n repaid_amount,\n repaid_amount_usd_heal AS repaid_amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n\n)\nSELECT\n *,\n {{ dbt_utils.generate_surrogate_key(\n ['_log_id']\n ) }} AS complete_lending_liquidations_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1\n*/\n\n-- depends_on: polygon.silver.complete_token_prices\n-- depends_on: polygon.silver_lending.token_metadata\n\nWITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n 'POL' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n WHERE\n address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\nprices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n polygon.price.ez_prices_hourly\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n polygon.price.ez_prices_hourly\n WHERE\n token_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\naave AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _log_id,\n modified_timestamp,\n event_name\n FROM\n polygon.silver_lending.aave_liquidations A\n\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_liquidations\n )\n\n),\n euler AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _log_id,\n modified_timestamp,\n event_name\n FROM\n polygon.silver_lending.euler_liquidations A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_liquidations\n )\n\n),\naave_ethereum AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n liquidator,\n borrower,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.aave_ethereum_liquidations A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_liquidations\n )\n\n),\nfraxlend AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n liquidator,\n borrower,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.fraxlend_liquidations A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_liquidations\n )\n\n),\ncomp_v2 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _log_id,\n modified_timestamp,\n event_name\n FROM\n polygon.silver_lending.comp_v2_liquidations A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_liquidations\n )\n\n),\ncomp_v3 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _log_id,\n modified_timestamp,\n event_name\n FROM\n polygon.silver_lending.comp_v3_liquidations A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_liquidations\n )\n\n),\nsilo AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _log_id,\n modified_timestamp,\n event_name\n FROM\n polygon.silver_lending.silo_liquidations A \n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_liquidations\n )\n\n),\nmorpho AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n null as event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n liquidator,\n protocol_market,\n collateral_token,\n liquidated_amount_unadj,\n debt_token,\n repaid_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _id as _log_id,\n modified_timestamp,\n event_name\n FROM\n polygon.silver_lending.morpho_liquidations A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_liquidations\n )\n\n),\nliquidation_union AS (\n SELECT\n *\n FROM\n aave\n UNION ALL\n SELECT\n *\n FROM\n aave_ethereum\n UNION ALL\n SELECT\n *\n FROM\n comp_v2\n UNION ALL\n SELECT\n *\n FROM\n comp_v3\n UNION ALL\n SELECT\n *\n FROM\n silo\n UNION ALL\n SELECT\n *\n FROM\n fraxlend\n UNION ALL\n SELECT\n *\n FROM\n morpho\n UNION ALL\n SELECT\n *\n FROM\n euler\n),\n\ncomplete_lending_liquidations AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n A.contract_address,\n A.event_name,\n liquidator,\n borrower,\n protocol_market,\n collateral_token,\n C.token_symbol AS collateral_token_symbol,\n liquidated_amount_unadj,\n liquidated_amount_unadj / pow(10, C.token_decimals) AS liquidated_amount,\n ROUND(liquidated_amount * p1.price, 2) AS liquidated_amount_usd,\n debt_token,\n C2.token_symbol AS debt_token_symbol,\n repaid_amount_unadj,\n repaid_amount_unadj / pow(10, C2.token_decimals) AS repaid_amount,\n ROUND(repaid_amount * p2.price, 2) AS repaid_amount_usd,\n platform,\n protocol,\n version,\n A._LOG_ID,\n A.modified_timestamp\n FROM\n liquidation_union A\n LEFT JOIN contracts C\n ON A.collateral_token = C.contract_address\n LEFT JOIN contracts C2\n ON A.debt_token = C2.contract_address\n LEFT JOIN prices\n p1\n ON collateral_token = p1.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p1.hour\n LEFT JOIN prices\n p2\n ON debt_token = p2.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p2.hour\n),\n\n\n\nFINAL AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n liquidator,\n borrower,\n protocol_market,\n collateral_token,\n collateral_token_symbol,\n liquidated_amount_unadj,\n liquidated_amount,\n liquidated_amount_usd,\n debt_token,\n debt_token_symbol,\n repaid_amount_unadj,\n repaid_amount,\n repaid_amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\n FROM\n complete_lending_liquidations\n\n\n\n)\nSELECT\n *,\n \n \nmd5(cast(coalesce(cast(_log_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_lending_liquidations_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__complete_lending_borrows": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__complete_lending_borrows", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.sql", "unique_id": "model.fsc_evm.silver_lending__complete_lending_borrows", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "silver_lending__complete_lending_borrows"], "alias": "complete_lending_borrows", "checksum": {"name": "sha256", "checksum": "f655c8fa2dece508f3e2b4cd6abcf2d121e13fe371355ab15e143df36003e5c0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "heal", "complete_lending"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, borrower, protocol_market)", "transaction": true, "index": null}, {"sql": "{{ remove_test_tokens() }}", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["block_number", "platform"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE", "platform"]}, "tags": ["silver", "defi", "lending", "curated", "heal", "complete_lending"], "description": "", "columns": {"TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BORROWER": {"name": "BORROWER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL_MARKET": {"name": "PROTOCOL_MARKET", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_SYMBOL": {"name": "TOKEN_SYMBOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_UNADJ": {"name": "AMOUNT_UNADJ", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_USD": {"name": "AMOUNT_USD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL": {"name": "PROTOCOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VERSION": {"name": "VERSION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_LOG_ID": {"name": "_LOG_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "COMPLETE_LENDING_BORROWS_ID": {"name": "COMPLETE_LENDING_BORROWS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INVOCATION_ID": {"name": "_INVOCATION_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["block_number", "platform"], "cluster_by": ["block_timestamp::DATE", "platform"], "tags": ["silver", "defi", "lending", "curated", "heal", "complete_lending"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018441.5535376, "relation_name": "polygon.silver_lending.complete_lending_borrows", "raw_code": "-- depends_on: {{ ref('silver_lending__token_metadata') }}\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('silver__complete_token_prices') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform'],\n cluster_by = ['block_timestamp::DATE','platform'],\n post_hook = [\n \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, borrower, protocol_market)\",\n \"{{ remove_test_tokens() }}\"\n ],\n tags = ['silver','defi','lending','curated','heal','complete_lending']\n) }}\n\n\n WITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n WHERE\n address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\n prices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n WHERE\n token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\naave AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_borrows') }} A\n\n{% if is_incremental() and 'aave' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\neuler AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__euler_borrows') }} A\n\n{% if is_incremental() and 'euler' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nfraxlend AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__fraxlend_borrows') }} A\n\n{% if is_incremental() and 'fraxlend' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmorpho AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n NULL AS event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._id AS _LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__morpho_borrows') }} A\n\n{% if is_incremental() and 'morpho' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsilo AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__silo_borrows') }} A\n\n{% if is_incremental() and 'silo' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naave_ethereum AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_ethereum_borrows') }} A\n\n{% if is_incremental() and 'aave_ethereum' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v2 AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__comp_v2_borrows') }} A\n\n{% if is_incremental() and 'comp_v2' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v3 AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__comp_v3_borrows') }} A\n\n{% if is_incremental() and 'comp_v3' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nborrows AS (\n SELECT\n *\n FROM\n aave\n UNION ALL\n SELECT\n *\n FROM\n euler\n UNION ALL\n SELECT\n *\n FROM\n fraxlend\n UNION ALL\n SELECT\n *\n FROM\n morpho\n UNION ALL\n SELECT\n *\n FROM\n silo\n UNION ALL\n SELECT\n *\n FROM\n aave_ethereum\n UNION ALL\n SELECT\n *\n FROM\n comp_v2\n UNION ALL\n SELECT\n *\n FROM\n comp_v3\n),\n\ncomplete_lending_borrows AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n b.contract_address,\n event_name,\n protocol_market,\n borrower,\n b.token_address,\n C.token_symbol,\n amount_unadj,\n amount_unadj / pow(10, C.token_decimals) AS amount,\n ROUND(\n amount * price,\n 2\n ) AS amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n b._LOG_ID,\n b.modified_timestamp\n FROM\n borrows b\n LEFT JOIN contracts C\n ON b.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON b.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n),\n\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\ntoken_metadata AS (\n SELECT\n underlying_token_address,\n underlying_token_symbol,\n underlying_token_decimals\n FROM\n {{ ref('silver_lending__token_metadata') }}\n WHERE \n blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n),\nheal_model AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t0.contract_address,\n event_name,\n protocol_market,\n borrower,\n t0.token_address,\n COALESCE(NULLIF(t0.token_symbol, ''), tm.underlying_token_symbol, c.token_symbol) as token_symbol,\n amount_unadj,\n COALESCE(t0.amount, amount_unadj / pow(10, tm.underlying_token_decimals), amount_unadj / pow(10, c.token_decimals)) AS amount,\n ROUND(\n COALESCE(t0.amount, amount_unadj / pow(10, tm.underlying_token_decimals), amount_unadj / pow(10, c.token_decimals)) * p.price,\n 2\n ) AS amount_usd_heal,\n platform,\n protocol,\n version,\n t0._LOG_ID,\n t0.modified_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN token_metadata tm\n ON t0.token_address = tm.underlying_token_address\n LEFT JOIN contracts c\n ON t0.token_address = c.contract_address\n LEFT JOIN prices p\n ON t0.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform\n ) IN (\n SELECT\n CONCAT(\n t1.block_number,\n '-',\n t1.platform\n )\n FROM\n {{ this }}\n t1\n WHERE\n t1.amount_usd IS NULL\n AND t1.modified_timestamp < (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__complete_token_prices') }}\n p\n WHERE\n p.modified_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND p.price IS NOT NULL\n AND p.token_address = t1.token_address\n AND p.hour = DATE_TRUNC(\n 'hour',\n t1.block_timestamp\n )\n )\n GROUP BY\n 1\n )\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND tm.underlying_token_symbol IS NOT NULL AND tm.underlying_token_symbol != '')\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND c.token_symbol IS NOT NULL AND c.token_symbol != '')\n OR (t0.amount IS NULL AND tm.underlying_token_decimals IS NOT NULL)\n OR (t0.amount IS NULL AND c.token_decimals IS NOT NULL)\n),\n{% endif %}\n\nFINAL AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n borrower,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\n FROM\n complete_lending_borrows\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n borrower,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd_heal AS amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n\n)\nSELECT\n *,\n {{ dbt_utils.generate_surrogate_key(\n ['_log_id']\n ) }} AS complete_lending_borrows_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver_lending__token_metadata", "package": null, "version": null}, {"name": "silver__complete_token_prices", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "silver_lending__aave_borrows", "package": null, "version": null}, {"name": "silver_lending__euler_borrows", "package": null, "version": null}, {"name": "silver_lending__fraxlend_borrows", "package": null, "version": null}, {"name": "silver_lending__morpho_borrows", "package": null, "version": null}, {"name": "silver_lending__silo_borrows", "package": null, "version": null}, {"name": "silver_lending__aave_ethereum_borrows", "package": null, "version": null}, {"name": "silver_lending__comp_v2_borrows", "package": null, "version": null}, {"name": "silver_lending__comp_v3_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.remove_test_tokens", "macro.fsc_evm.enable_change_tracking"], "nodes": ["seed.fsc_evm.silver_lending__token_metadata", "model.fsc_evm.silver__complete_token_prices", "model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver_lending__aave_borrows", "model.fsc_evm.silver_lending__euler_borrows", "model.fsc_evm.silver_lending__fraxlend_borrows", "model.fsc_evm.silver_lending__morpho_borrows", "model.fsc_evm.silver_lending__silo_borrows", "model.fsc_evm.silver_lending__aave_ethereum_borrows", "model.fsc_evm.silver_lending__comp_v2_borrows", "model.fsc_evm.silver_lending__comp_v3_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.sql", "compiled": true, "compiled_code": "-- depends_on: polygon.silver_lending.token_metadata\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\",\n \"platform\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, borrower, protocol_market)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ remove_test_tokens() }}\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"heal\",\n \"complete_lending\"\n ],\n \"unique_key\": [\n \"block_number\",\n \"platform\"\n ]\n}\n*/\n \n/*\nRaw Code:\n-- depends_on: {{ ref('silver_lending__token_metadata') }}\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('silver__complete_token_prices') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform'],\n cluster_by = ['block_timestamp::DATE','platform'],\n post_hook = [\n \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, borrower, protocol_market)\",\n \"{{ remove_test_tokens() }}\"\n ],\n tags = ['silver','defi','lending','curated','heal','complete_lending']\n) }}\n\n\n WITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n WHERE\n address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\n prices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n WHERE\n token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\naave AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_borrows') }} A\n\n{% if is_incremental() and 'aave' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\neuler AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__euler_borrows') }} A\n\n{% if is_incremental() and 'euler' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nfraxlend AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__fraxlend_borrows') }} A\n\n{% if is_incremental() and 'fraxlend' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmorpho AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n NULL AS event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._id AS _LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__morpho_borrows') }} A\n\n{% if is_incremental() and 'morpho' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsilo AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__silo_borrows') }} A\n\n{% if is_incremental() and 'silo' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naave_ethereum AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_ethereum_borrows') }} A\n\n{% if is_incremental() and 'aave_ethereum' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v2 AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__comp_v2_borrows') }} A\n\n{% if is_incremental() and 'comp_v2' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v3 AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__comp_v3_borrows') }} A\n\n{% if is_incremental() and 'comp_v3' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nborrows AS (\n SELECT\n *\n FROM\n aave\n UNION ALL\n SELECT\n *\n FROM\n euler\n UNION ALL\n SELECT\n *\n FROM\n fraxlend\n UNION ALL\n SELECT\n *\n FROM\n morpho\n UNION ALL\n SELECT\n *\n FROM\n silo\n UNION ALL\n SELECT\n *\n FROM\n aave_ethereum\n UNION ALL\n SELECT\n *\n FROM\n comp_v2\n UNION ALL\n SELECT\n *\n FROM\n comp_v3\n),\n\ncomplete_lending_borrows AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n b.contract_address,\n event_name,\n protocol_market,\n borrower,\n b.token_address,\n C.token_symbol,\n amount_unadj,\n amount_unadj / pow(10, C.token_decimals) AS amount,\n ROUND(\n amount * price,\n 2\n ) AS amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n b._LOG_ID,\n b.modified_timestamp\n FROM\n borrows b\n LEFT JOIN contracts C\n ON b.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON b.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n),\n\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\ntoken_metadata AS (\n SELECT\n underlying_token_address,\n underlying_token_symbol,\n underlying_token_decimals\n FROM\n {{ ref('silver_lending__token_metadata') }}\n WHERE \n blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n),\nheal_model AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t0.contract_address,\n event_name,\n protocol_market,\n borrower,\n t0.token_address,\n COALESCE(NULLIF(t0.token_symbol, ''), tm.underlying_token_symbol, c.token_symbol) as token_symbol,\n amount_unadj,\n COALESCE(t0.amount, amount_unadj / pow(10, tm.underlying_token_decimals), amount_unadj / pow(10, c.token_decimals)) AS amount,\n ROUND(\n COALESCE(t0.amount, amount_unadj / pow(10, tm.underlying_token_decimals), amount_unadj / pow(10, c.token_decimals)) * p.price,\n 2\n ) AS amount_usd_heal,\n platform,\n protocol,\n version,\n t0._LOG_ID,\n t0.modified_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN token_metadata tm\n ON t0.token_address = tm.underlying_token_address\n LEFT JOIN contracts c\n ON t0.token_address = c.contract_address\n LEFT JOIN prices p\n ON t0.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform\n ) IN (\n SELECT\n CONCAT(\n t1.block_number,\n '-',\n t1.platform\n )\n FROM\n {{ this }}\n t1\n WHERE\n t1.amount_usd IS NULL\n AND t1.modified_timestamp < (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__complete_token_prices') }}\n p\n WHERE\n p.modified_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND p.price IS NOT NULL\n AND p.token_address = t1.token_address\n AND p.hour = DATE_TRUNC(\n 'hour',\n t1.block_timestamp\n )\n )\n GROUP BY\n 1\n )\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND tm.underlying_token_symbol IS NOT NULL AND tm.underlying_token_symbol != '')\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND c.token_symbol IS NOT NULL AND c.token_symbol != '')\n OR (t0.amount IS NULL AND tm.underlying_token_decimals IS NOT NULL)\n OR (t0.amount IS NULL AND c.token_decimals IS NOT NULL)\n),\n{% endif %}\n\nFINAL AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n borrower,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\n FROM\n complete_lending_borrows\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n borrower,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd_heal AS amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n\n)\nSELECT\n *,\n {{ dbt_utils.generate_surrogate_key(\n ['_log_id']\n ) }} AS complete_lending_borrows_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1\n*/\n\n-- depends_on: polygon.silver.complete_token_prices\n\n\n\n WITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n 'POL' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n WHERE\n address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\n prices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n polygon.price.ez_prices_hourly\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n polygon.price.ez_prices_hourly\n WHERE\n token_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\naave AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.aave_borrows A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_borrows\n )\n\n),\neuler AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.euler_borrows A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_borrows\n )\n\n),\nfraxlend AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.fraxlend_borrows A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_borrows\n )\n\n),\nmorpho AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n NULL AS event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._id AS _LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.morpho_borrows A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_borrows\n )\n\n),\nsilo AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.silo_borrows A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_borrows\n )\n\n),\naave_ethereum AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.aave_ethereum_borrows A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_borrows\n )\n\n),\ncomp_v2 AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.comp_v2_borrows A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_borrows\n )\n\n),\ncomp_v3 AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.comp_v3_borrows A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_borrows\n )\n\n),\nborrows AS (\n SELECT\n *\n FROM\n aave\n UNION ALL\n SELECT\n *\n FROM\n euler\n UNION ALL\n SELECT\n *\n FROM\n fraxlend\n UNION ALL\n SELECT\n *\n FROM\n morpho\n UNION ALL\n SELECT\n *\n FROM\n silo\n UNION ALL\n SELECT\n *\n FROM\n aave_ethereum\n UNION ALL\n SELECT\n *\n FROM\n comp_v2\n UNION ALL\n SELECT\n *\n FROM\n comp_v3\n),\n\ncomplete_lending_borrows AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n b.contract_address,\n event_name,\n protocol_market,\n borrower,\n b.token_address,\n C.token_symbol,\n amount_unadj,\n amount_unadj / pow(10, C.token_decimals) AS amount,\n ROUND(\n amount * price,\n 2\n ) AS amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n b._LOG_ID,\n b.modified_timestamp\n FROM\n borrows b\n LEFT JOIN contracts C\n ON b.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON b.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n),\n\n\n\n\nFINAL AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n borrower,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\n FROM\n complete_lending_borrows\n\n\n\n)\nSELECT\n *,\n \n \nmd5(cast(coalesce(cast(_log_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_lending_borrows_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__complete_lending_flashloans": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__complete_lending_flashloans", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.sql", "unique_id": "model.fsc_evm.silver_lending__complete_lending_flashloans", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "silver_lending__complete_lending_flashloans"], "alias": "complete_lending_flashloans", "checksum": {"name": "sha256", "checksum": "ef205bd9550ece09fb638c2236fd84b86de2701cf31cf5e0cd54ba1de76d3a75"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "heal", "flashloans", "complete_lending"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, protocol_market)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["block_number", "platform"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE", "platform"]}, "tags": ["silver", "defi", "lending", "curated", "heal", "flashloans", "complete_lending"], "description": "", "columns": {"TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL_MARKET": {"name": "PROTOCOL_MARKET", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INITIATOR": {"name": "INITIATOR", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TARGET": {"name": "TARGET", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_SYMBOL": {"name": "TOKEN_SYMBOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FLASHLOAN_AMOUNT_UNADJ": {"name": "FLASHLOAN_AMOUNT_UNADJ", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FLASHLOAN_AMOUNT": {"name": "FLASHLOAN_AMOUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FLASHLOAN_AMOUNT_USD": {"name": "FLASHLOAN_AMOUNT_USD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PREMIUM_AMOUNT_UNADJ": {"name": "PREMIUM_AMOUNT_UNADJ", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PREMIUM_AMOUNT": {"name": "PREMIUM_AMOUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PREMIUM_AMOUNT_USD": {"name": "PREMIUM_AMOUNT_USD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL": {"name": "PROTOCOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VERSION": {"name": "VERSION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_LOG_ID": {"name": "_LOG_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "COMPLETE_LENDING_FLASHLOANS_ID": {"name": "COMPLETE_LENDING_FLASHLOANS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INVOCATION_ID": {"name": "_INVOCATION_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["block_number", "platform"], "cluster_by": ["block_timestamp::DATE", "platform"], "tags": ["silver", "defi", "lending", "curated", "heal", "flashloans", "complete_lending"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018441.7818317, "relation_name": "polygon.silver_lending.complete_lending_flashloans", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('silver__complete_token_prices') }}\n-- depends_on: {{ ref('silver_lending__token_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform'],\n cluster_by = ['block_timestamp::DATE','platform'],\n post_hook = [\n \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, protocol_market)\"\n ],\n tags = ['silver','defi','lending','curated','heal','flashloans','complete_lending']\n) }}\n\n WITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n WHERE\n address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\nprices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n WHERE\n token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\naave AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n protocol_market,\n initiator,\n target,\n token_address,\n flashloan_amount_unadj,\n premium_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_flashloans') }} A\n\n{% if is_incremental() and 'aave' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naave_ethereum AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n protocol_market,\n initiator,\n target,\n token_address,\n flashloan_amount_unadj,\n premium_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_ethereum_flashloans') }} A\n\n{% if is_incremental() and 'aave_ethereum' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmorpho AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n null as event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n protocol_market,\n initiator,\n target,\n token_address,\n flashloan_amount_unadj,\n premium_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__morpho_flashloans') }} A\n\n{% if is_incremental() and 'morpho' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nflashloans AS (\n SELECT\n *\n FROM\n aave\n UNION ALL\n SELECT\n *\n FROM\n aave_ethereum\n UNION ALL\n SELECT\n *\n FROM\n morpho\n),\ncomplete_lending_flashloans AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n f.contract_address,\n 'FlashLoan' AS event_name,\n protocol_market,\n initiator,\n target,\n f.token_address,\n c.token_symbol,\n flashloan_amount_unadj,\n flashloan_amount_unadj / pow(10, c.token_decimals) AS flashloan_amount,\n flashloan_amount * price AS flashloan_amount_usd,\n premium_amount_unadj,\n premium_amount_unadj / pow(10, c.token_decimals) AS premium_amount,\n premium_amount * price AS premium_amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n f._LOG_ID,\n f.modified_timestamp\n FROM\n flashloans f\n LEFT JOIN {{ ref('silver__contracts') }} C\n ON f.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON f.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\ntoken_metadata AS (\n SELECT\n underlying_token_address,\n underlying_token_symbol,\n underlying_token_decimals\n FROM\n {{ ref('silver_lending__token_metadata') }}\n WHERE \n blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n),\nheal_model AS (\n SELECT \n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t0.contract_address,\n event_name,\n protocol_market,\n initiator,\n target,\n t0.token_address,\n COALESCE(NULLIF(t0.token_symbol, ''), tm.underlying_token_symbol, c.token_symbol) as token_symbol,\n flashloan_amount_unadj,\n COALESCE(t0.flashloan_amount, flashloan_amount_unadj / pow(10, tm.underlying_token_decimals), flashloan_amount_unadj / pow(10, c.token_decimals)) AS flashloan_amount,\n ROUND(\n COALESCE(t0.flashloan_amount, flashloan_amount_unadj / pow(10, tm.underlying_token_decimals), flashloan_amount_unadj / pow(10, c.token_decimals)) * p.price,\n 2\n ) AS flashloan_amount_usd_heal,\n premium_amount_unadj,\n COALESCE(t0.premium_amount, premium_amount_unadj / pow(10, tm.underlying_token_decimals), premium_amount_unadj / pow(10, c.token_decimals)) AS premium_amount,\n ROUND(\n COALESCE(t0.premium_amount, premium_amount_unadj / pow(10, tm.underlying_token_decimals), premium_amount_unadj / pow(10, c.token_decimals)) * p.price,\n 2\n ) AS premium_amount_usd_heal,\n platform,\n protocol,\n version,\n t0._LOG_ID,\n t0.modified_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN token_metadata tm\n ON t0.token_address = tm.underlying_token_address\n LEFT JOIN contracts c\n ON t0.token_address = c.contract_address\n LEFT JOIN prices p\n ON t0.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform\n ) IN (\n SELECT\n CONCAT(\n t1.block_number,\n '-',\n t1.platform\n )\n FROM\n {{ this }}\n t1\n WHERE\n t1.flashloan_amount_usd IS NULL\n AND t1.modified_timestamp < (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__complete_token_prices') }}\n p\n WHERE\n p.modified_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND p.price IS NOT NULL\n AND p.token_address = t1.token_address\n AND p.hour = DATE_TRUNC(\n 'hour',\n t1.block_timestamp\n )\n )\n GROUP BY\n 1\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform\n ) IN (\n SELECT\n CONCAT(\n t2.block_number,\n '-',\n t2.platform\n )\n FROM\n {{ this }}\n t2\n WHERE\n t2.premium_amount_usd IS NULL\n AND t2.modified_timestamp < (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__complete_token_prices') }}\n p\n WHERE\n p.modified_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND p.price IS NOT NULL\n AND p.token_address = t2.token_address\n AND p.hour = DATE_TRUNC(\n 'hour',\n t2.block_timestamp\n )\n )\n GROUP BY\n 1\n )\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND tm.underlying_token_symbol IS NOT NULL AND tm.underlying_token_symbol != '')\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND c.token_symbol IS NOT NULL AND c.token_symbol != '')\n OR (t0.flashloan_amount IS NULL AND tm.underlying_token_decimals IS NOT NULL)\n OR (t0.flashloan_amount IS NULL AND c.token_decimals IS NOT NULL)\n OR (t0.premium_amount IS NULL AND tm.underlying_token_decimals IS NOT NULL)\n OR (t0.premium_amount IS NULL AND c.token_decimals IS NOT NULL)\n),\n{% endif %}\n\nFINAL AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n initiator,\n target,\n token_address,\n token_symbol,\n flashloan_amount_unadj,\n flashloan_amount,\n flashloan_amount_usd,\n premium_amount_unadj,\n premium_amount,\n premium_amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\n FROM\n complete_lending_flashloans\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n initiator,\n target,\n token_address,\n token_symbol,\n flashloan_amount_unadj,\n flashloan_amount,\n flashloan_amount_usd_heal AS flashloan_amount_usd,\n premium_amount_unadj,\n premium_amount,\n premium_amount_usd_heal AS premium_amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n)\nSELECT\n *,\n {{ dbt_utils.generate_surrogate_key(\n ['_log_id']\n ) }} AS complete_lending_flashloans_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL \nWHERE \n origin_function_signature <> '0x8cbf8566' \n AND TOKEN_ADDRESS IS NOT NULL \n AND platform <> 'morpho-v1' --excludes bad token morpho MEV flashloans\n qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver__complete_token_prices", "package": null, "version": null}, {"name": "silver_lending__token_metadata", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "silver_lending__aave_flashloans", "package": null, "version": null}, {"name": "silver_lending__aave_ethereum_flashloans", "package": null, "version": null}, {"name": "silver_lending__morpho_flashloans", "package": null, "version": null}, {"name": "silver__contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__complete_token_prices", "seed.fsc_evm.silver_lending__token_metadata", "model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver_lending__aave_flashloans", "model.fsc_evm.silver_lending__aave_ethereum_flashloans", "model.fsc_evm.silver_lending__morpho_flashloans", "model.fsc_evm.silver__contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\",\n \"platform\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, protocol_market)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"heal\",\n \"flashloans\",\n \"complete_lending\"\n ],\n \"unique_key\": [\n \"block_number\",\n \"platform\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('silver__complete_token_prices') }}\n-- depends_on: {{ ref('silver_lending__token_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform'],\n cluster_by = ['block_timestamp::DATE','platform'],\n post_hook = [\n \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, protocol_market)\"\n ],\n tags = ['silver','defi','lending','curated','heal','flashloans','complete_lending']\n) }}\n\n WITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n WHERE\n address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\nprices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n WHERE\n token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\naave AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n protocol_market,\n initiator,\n target,\n token_address,\n flashloan_amount_unadj,\n premium_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_flashloans') }} A\n\n{% if is_incremental() and 'aave' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naave_ethereum AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n protocol_market,\n initiator,\n target,\n token_address,\n flashloan_amount_unadj,\n premium_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_ethereum_flashloans') }} A\n\n{% if is_incremental() and 'aave_ethereum' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmorpho AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n null as event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n protocol_market,\n initiator,\n target,\n token_address,\n flashloan_amount_unadj,\n premium_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__morpho_flashloans') }} A\n\n{% if is_incremental() and 'morpho' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nflashloans AS (\n SELECT\n *\n FROM\n aave\n UNION ALL\n SELECT\n *\n FROM\n aave_ethereum\n UNION ALL\n SELECT\n *\n FROM\n morpho\n),\ncomplete_lending_flashloans AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n f.contract_address,\n 'FlashLoan' AS event_name,\n protocol_market,\n initiator,\n target,\n f.token_address,\n c.token_symbol,\n flashloan_amount_unadj,\n flashloan_amount_unadj / pow(10, c.token_decimals) AS flashloan_amount,\n flashloan_amount * price AS flashloan_amount_usd,\n premium_amount_unadj,\n premium_amount_unadj / pow(10, c.token_decimals) AS premium_amount,\n premium_amount * price AS premium_amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n f._LOG_ID,\n f.modified_timestamp\n FROM\n flashloans f\n LEFT JOIN {{ ref('silver__contracts') }} C\n ON f.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON f.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\ntoken_metadata AS (\n SELECT\n underlying_token_address,\n underlying_token_symbol,\n underlying_token_decimals\n FROM\n {{ ref('silver_lending__token_metadata') }}\n WHERE \n blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n),\nheal_model AS (\n SELECT \n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t0.contract_address,\n event_name,\n protocol_market,\n initiator,\n target,\n t0.token_address,\n COALESCE(NULLIF(t0.token_symbol, ''), tm.underlying_token_symbol, c.token_symbol) as token_symbol,\n flashloan_amount_unadj,\n COALESCE(t0.flashloan_amount, flashloan_amount_unadj / pow(10, tm.underlying_token_decimals), flashloan_amount_unadj / pow(10, c.token_decimals)) AS flashloan_amount,\n ROUND(\n COALESCE(t0.flashloan_amount, flashloan_amount_unadj / pow(10, tm.underlying_token_decimals), flashloan_amount_unadj / pow(10, c.token_decimals)) * p.price,\n 2\n ) AS flashloan_amount_usd_heal,\n premium_amount_unadj,\n COALESCE(t0.premium_amount, premium_amount_unadj / pow(10, tm.underlying_token_decimals), premium_amount_unadj / pow(10, c.token_decimals)) AS premium_amount,\n ROUND(\n COALESCE(t0.premium_amount, premium_amount_unadj / pow(10, tm.underlying_token_decimals), premium_amount_unadj / pow(10, c.token_decimals)) * p.price,\n 2\n ) AS premium_amount_usd_heal,\n platform,\n protocol,\n version,\n t0._LOG_ID,\n t0.modified_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN token_metadata tm\n ON t0.token_address = tm.underlying_token_address\n LEFT JOIN contracts c\n ON t0.token_address = c.contract_address\n LEFT JOIN prices p\n ON t0.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform\n ) IN (\n SELECT\n CONCAT(\n t1.block_number,\n '-',\n t1.platform\n )\n FROM\n {{ this }}\n t1\n WHERE\n t1.flashloan_amount_usd IS NULL\n AND t1.modified_timestamp < (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__complete_token_prices') }}\n p\n WHERE\n p.modified_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND p.price IS NOT NULL\n AND p.token_address = t1.token_address\n AND p.hour = DATE_TRUNC(\n 'hour',\n t1.block_timestamp\n )\n )\n GROUP BY\n 1\n )\n OR CONCAT(\n t0.block_number,\n '-',\n t0.platform\n ) IN (\n SELECT\n CONCAT(\n t2.block_number,\n '-',\n t2.platform\n )\n FROM\n {{ this }}\n t2\n WHERE\n t2.premium_amount_usd IS NULL\n AND t2.modified_timestamp < (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__complete_token_prices') }}\n p\n WHERE\n p.modified_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND p.price IS NOT NULL\n AND p.token_address = t2.token_address\n AND p.hour = DATE_TRUNC(\n 'hour',\n t2.block_timestamp\n )\n )\n GROUP BY\n 1\n )\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND tm.underlying_token_symbol IS NOT NULL AND tm.underlying_token_symbol != '')\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND c.token_symbol IS NOT NULL AND c.token_symbol != '')\n OR (t0.flashloan_amount IS NULL AND tm.underlying_token_decimals IS NOT NULL)\n OR (t0.flashloan_amount IS NULL AND c.token_decimals IS NOT NULL)\n OR (t0.premium_amount IS NULL AND tm.underlying_token_decimals IS NOT NULL)\n OR (t0.premium_amount IS NULL AND c.token_decimals IS NOT NULL)\n),\n{% endif %}\n\nFINAL AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n initiator,\n target,\n token_address,\n token_symbol,\n flashloan_amount_unadj,\n flashloan_amount,\n flashloan_amount_usd,\n premium_amount_unadj,\n premium_amount,\n premium_amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\n FROM\n complete_lending_flashloans\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n initiator,\n target,\n token_address,\n token_symbol,\n flashloan_amount_unadj,\n flashloan_amount,\n flashloan_amount_usd_heal AS flashloan_amount_usd,\n premium_amount_unadj,\n premium_amount,\n premium_amount_usd_heal AS premium_amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n)\nSELECT\n *,\n {{ dbt_utils.generate_surrogate_key(\n ['_log_id']\n ) }} AS complete_lending_flashloans_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL \nWHERE \n origin_function_signature <> '0x8cbf8566' \n AND TOKEN_ADDRESS IS NOT NULL \n AND platform <> 'morpho-v1' --excludes bad token morpho MEV flashloans\n qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1\n*/\n\n-- depends_on: polygon.silver.complete_token_prices\n-- depends_on: polygon.silver_lending.token_metadata\n\n\n WITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n 'POL' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n WHERE\n address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\nprices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n polygon.price.ez_prices_hourly\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n polygon.price.ez_prices_hourly\n WHERE\n token_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\naave AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n protocol_market,\n initiator,\n target,\n token_address,\n flashloan_amount_unadj,\n premium_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.aave_flashloans A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_flashloans\n )\n\n),\naave_ethereum AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n protocol_market,\n initiator,\n target,\n token_address,\n flashloan_amount_unadj,\n premium_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.aave_ethereum_flashloans A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_flashloans\n )\n\n),\nmorpho AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n null as event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n protocol_market,\n initiator,\n target,\n token_address,\n flashloan_amount_unadj,\n premium_amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.morpho_flashloans A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_flashloans\n )\n\n),\nflashloans AS (\n SELECT\n *\n FROM\n aave\n UNION ALL\n SELECT\n *\n FROM\n aave_ethereum\n UNION ALL\n SELECT\n *\n FROM\n morpho\n),\ncomplete_lending_flashloans AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n f.contract_address,\n 'FlashLoan' AS event_name,\n protocol_market,\n initiator,\n target,\n f.token_address,\n c.token_symbol,\n flashloan_amount_unadj,\n flashloan_amount_unadj / pow(10, c.token_decimals) AS flashloan_amount,\n flashloan_amount * price AS flashloan_amount_usd,\n premium_amount_unadj,\n premium_amount_unadj / pow(10, c.token_decimals) AS premium_amount,\n premium_amount * price AS premium_amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n f._LOG_ID,\n f.modified_timestamp\n FROM\n flashloans f\n LEFT JOIN polygon.silver.contracts C\n ON f.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON f.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n),\n\n\n\nFINAL AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n initiator,\n target,\n token_address,\n token_symbol,\n flashloan_amount_unadj,\n flashloan_amount,\n flashloan_amount_usd,\n premium_amount_unadj,\n premium_amount,\n premium_amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\n FROM\n complete_lending_flashloans\n\n\n)\nSELECT\n *,\n \n \nmd5(cast(coalesce(cast(_log_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_lending_flashloans_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n FINAL \nWHERE \n origin_function_signature <> '0x8cbf8566' \n AND TOKEN_ADDRESS IS NOT NULL \n AND platform <> 'morpho-v1' --excludes bad token morpho MEV flashloans\n qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__complete_lending_deposits": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__complete_lending_deposits", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.sql", "unique_id": "model.fsc_evm.silver_lending__complete_lending_deposits", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "silver_lending__complete_lending_deposits"], "alias": "complete_lending_deposits", "checksum": {"name": "sha256", "checksum": "6d837893b38f42d10917ac822506dfe7342a25a1013a03826636207e751faf12"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "heal", "complete_lending"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, depositor, protocol_market)", "transaction": true, "index": null}, {"sql": "{{ remove_test_tokens() }}", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["block_number", "platform"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE", "platform"]}, "tags": ["silver", "defi", "lending", "curated", "heal", "complete_lending"], "description": "", "columns": {"TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL_MARKET": {"name": "PROTOCOL_MARKET", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEPOSITOR": {"name": "DEPOSITOR", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_SYMBOL": {"name": "TOKEN_SYMBOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_UNADJ": {"name": "AMOUNT_UNADJ", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_USD": {"name": "AMOUNT_USD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL": {"name": "PROTOCOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VERSION": {"name": "VERSION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_LOG_ID": {"name": "_LOG_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "COMPLETE_LENDING_DEPOSITS_ID": {"name": "COMPLETE_LENDING_DEPOSITS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INVOCATION_ID": {"name": "_INVOCATION_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["block_number", "platform"], "cluster_by": ["block_timestamp::DATE", "platform"], "tags": ["silver", "defi", "lending", "curated", "heal", "complete_lending"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018442.0085316, "relation_name": "polygon.silver_lending.complete_lending_deposits", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('silver__complete_token_prices') }}\n-- depends_on: {{ ref('silver_lending__token_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform'],\n cluster_by = ['block_timestamp::DATE','platform'],\n post_hook = [\n \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, depositor, protocol_market)\",\n \"{{ remove_test_tokens() }}\"\n ],\n tags = ['silver','defi','lending','curated','heal','complete_lending']\n) }}\n\n WITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n WHERE\n address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\n \n prices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n WHERE\n token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\naave AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_deposits') }} A\n\n{% if is_incremental() and 'aave' not in vars.CURATED_FR_MODELS %}\n where A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\neuler AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__euler_deposits') }} A\n\n{% if is_incremental() and 'euler' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naave_ethereum AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_ethereum_deposits') }} A\n\n{% if is_incremental() and 'aave_ethereum' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nfraxlend AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__fraxlend_deposits') }} A\n\n{% if is_incremental() and 'fraxlend' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v2 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__comp_v2_deposits') }} A\n\n{% if is_incremental() and 'comp_v2' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v3 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__comp_v3_deposits') }} A\n\n{% if is_incremental() and 'comp_v3' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsilo AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__silo_deposits') }} A\n\n{% if is_incremental() and 'silo' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmorpho AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n null as event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._id AS _LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__morpho_deposits') }} A\n\n{% if is_incremental() and 'morpho' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ndeposits AS (\n SELECT\n *\n FROM\n aave\n UNION ALL\n SELECT\n *\n FROM\n aave_ethereum\n UNION ALL\n SELECT\n *\n FROM\n comp_v2\n UNION ALL\n SELECT\n *\n FROM\n comp_v3\n UNION ALL\n SELECT\n *\n FROM\n silo\n UNION ALL\n SELECT\n *\n FROM\n fraxlend\n UNION ALL\n SELECT\n *\n FROM\n morpho\n UNION ALL\n SELECT\n *\n FROM\n euler\n),\ncomplete_lending_deposits AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n A.contract_address,\n A.event_name,\n protocol_market,\n depositor,\n A.token_address,\n C.token_symbol,\n amount_unadj,\n amount_unadj / pow(10, C.token_decimals) AS amount,\n ROUND(\n amount * price,\n 2\n ) AS amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp\n FROM\n deposits A\n LEFT JOIN contracts C\n ON A.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON A.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\ntoken_metadata AS (\n SELECT\n underlying_token_address,\n underlying_token_symbol,\n underlying_token_decimals\n FROM\n {{ ref('silver_lending__token_metadata') }}\n WHERE \n blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n),\nheal_model AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t0.contract_address,\n event_name,\n protocol_market,\n depositor,\n t0.token_address,\n COALESCE(NULLIF(t0.token_symbol, ''), tm.underlying_token_symbol, c.token_symbol) as token_symbol,\n amount_unadj,\n COALESCE(t0.amount, amount_unadj / pow(10, tm.underlying_token_decimals), amount_unadj / pow(10, c.token_decimals)) AS amount,\n ROUND(\n COALESCE(t0.amount, amount_unadj / pow(10, tm.underlying_token_decimals), amount_unadj / pow(10, c.token_decimals)) * p.price,\n 2\n ) AS amount_usd_heal,\n platform,\n protocol,\n version :: STRING AS version,\n t0._LOG_ID,\n t0.modified_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN token_metadata tm\n ON t0.token_address = tm.underlying_token_address\n LEFT JOIN contracts c\n ON t0.token_address = c.contract_address\n LEFT JOIN prices p\n ON t0.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform\n ) IN (\n SELECT\n CONCAT(\n t1.block_number,\n '-',\n t1.platform\n )\n FROM\n {{ this }}\n t1\n WHERE\n t1.amount_usd IS NULL\n AND t1.modified_timestamp < (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__complete_token_prices') }}\n p\n WHERE\n p.modified_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND p.price IS NOT NULL\n AND p.token_address = t1.token_address\n AND p.hour = DATE_TRUNC(\n 'hour',\n t1.block_timestamp\n )\n )\n GROUP BY\n 1\n )\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND tm.underlying_token_symbol IS NOT NULL AND tm.underlying_token_symbol != '')\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND c.token_symbol IS NOT NULL AND c.token_symbol != '')\n OR (t0.amount IS NULL AND tm.underlying_token_decimals IS NOT NULL)\n OR (t0.amount IS NULL AND c.token_decimals IS NOT NULL)\n),\n{% endif %}\n\nFINAL AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n depositor,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\n FROM\n complete_lending_deposits\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n depositor,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd_heal AS amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n)\nSELECT\n *,\n {{ dbt_utils.generate_surrogate_key(\n ['_log_id']\n ) }} AS complete_lending_deposits_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver__complete_token_prices", "package": null, "version": null}, {"name": "silver_lending__token_metadata", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "silver_lending__aave_deposits", "package": null, "version": null}, {"name": "silver_lending__euler_deposits", "package": null, "version": null}, {"name": "silver_lending__aave_ethereum_deposits", "package": null, "version": null}, {"name": "silver_lending__fraxlend_deposits", "package": null, "version": null}, {"name": "silver_lending__comp_v2_deposits", "package": null, "version": null}, {"name": "silver_lending__comp_v3_deposits", "package": null, "version": null}, {"name": "silver_lending__silo_deposits", "package": null, "version": null}, {"name": "silver_lending__morpho_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.remove_test_tokens", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__complete_token_prices", "seed.fsc_evm.silver_lending__token_metadata", "model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver_lending__aave_deposits", "model.fsc_evm.silver_lending__euler_deposits", "model.fsc_evm.silver_lending__aave_ethereum_deposits", "model.fsc_evm.silver_lending__fraxlend_deposits", "model.fsc_evm.silver_lending__comp_v2_deposits", "model.fsc_evm.silver_lending__comp_v3_deposits", "model.fsc_evm.silver_lending__silo_deposits", "model.fsc_evm.silver_lending__morpho_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\",\n \"platform\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, depositor, protocol_market)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ remove_test_tokens() }}\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"heal\",\n \"complete_lending\"\n ],\n \"unique_key\": [\n \"block_number\",\n \"platform\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('silver__complete_token_prices') }}\n-- depends_on: {{ ref('silver_lending__token_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform'],\n cluster_by = ['block_timestamp::DATE','platform'],\n post_hook = [\n \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, depositor, protocol_market)\",\n \"{{ remove_test_tokens() }}\"\n ],\n tags = ['silver','defi','lending','curated','heal','complete_lending']\n) }}\n\n WITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n WHERE\n address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\n \n prices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n WHERE\n token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\naave AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_deposits') }} A\n\n{% if is_incremental() and 'aave' not in vars.CURATED_FR_MODELS %}\n where A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\neuler AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__euler_deposits') }} A\n\n{% if is_incremental() and 'euler' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naave_ethereum AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_ethereum_deposits') }} A\n\n{% if is_incremental() and 'aave_ethereum' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nfraxlend AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__fraxlend_deposits') }} A\n\n{% if is_incremental() and 'fraxlend' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v2 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__comp_v2_deposits') }} A\n\n{% if is_incremental() and 'comp_v2' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v3 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__comp_v3_deposits') }} A\n\n{% if is_incremental() and 'comp_v3' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsilo AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__silo_deposits') }} A\n\n{% if is_incremental() and 'silo' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmorpho AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n null as event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._id AS _LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__morpho_deposits') }} A\n\n{% if is_incremental() and 'morpho' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ndeposits AS (\n SELECT\n *\n FROM\n aave\n UNION ALL\n SELECT\n *\n FROM\n aave_ethereum\n UNION ALL\n SELECT\n *\n FROM\n comp_v2\n UNION ALL\n SELECT\n *\n FROM\n comp_v3\n UNION ALL\n SELECT\n *\n FROM\n silo\n UNION ALL\n SELECT\n *\n FROM\n fraxlend\n UNION ALL\n SELECT\n *\n FROM\n morpho\n UNION ALL\n SELECT\n *\n FROM\n euler\n),\ncomplete_lending_deposits AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n A.contract_address,\n A.event_name,\n protocol_market,\n depositor,\n A.token_address,\n C.token_symbol,\n amount_unadj,\n amount_unadj / pow(10, C.token_decimals) AS amount,\n ROUND(\n amount * price,\n 2\n ) AS amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp\n FROM\n deposits A\n LEFT JOIN contracts C\n ON A.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON A.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\ntoken_metadata AS (\n SELECT\n underlying_token_address,\n underlying_token_symbol,\n underlying_token_decimals\n FROM\n {{ ref('silver_lending__token_metadata') }}\n WHERE \n blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n),\nheal_model AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t0.contract_address,\n event_name,\n protocol_market,\n depositor,\n t0.token_address,\n COALESCE(NULLIF(t0.token_symbol, ''), tm.underlying_token_symbol, c.token_symbol) as token_symbol,\n amount_unadj,\n COALESCE(t0.amount, amount_unadj / pow(10, tm.underlying_token_decimals), amount_unadj / pow(10, c.token_decimals)) AS amount,\n ROUND(\n COALESCE(t0.amount, amount_unadj / pow(10, tm.underlying_token_decimals), amount_unadj / pow(10, c.token_decimals)) * p.price,\n 2\n ) AS amount_usd_heal,\n platform,\n protocol,\n version :: STRING AS version,\n t0._LOG_ID,\n t0.modified_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN token_metadata tm\n ON t0.token_address = tm.underlying_token_address\n LEFT JOIN contracts c\n ON t0.token_address = c.contract_address\n LEFT JOIN prices p\n ON t0.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform\n ) IN (\n SELECT\n CONCAT(\n t1.block_number,\n '-',\n t1.platform\n )\n FROM\n {{ this }}\n t1\n WHERE\n t1.amount_usd IS NULL\n AND t1.modified_timestamp < (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__complete_token_prices') }}\n p\n WHERE\n p.modified_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND p.price IS NOT NULL\n AND p.token_address = t1.token_address\n AND p.hour = DATE_TRUNC(\n 'hour',\n t1.block_timestamp\n )\n )\n GROUP BY\n 1\n )\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND tm.underlying_token_symbol IS NOT NULL AND tm.underlying_token_symbol != '')\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND c.token_symbol IS NOT NULL AND c.token_symbol != '')\n OR (t0.amount IS NULL AND tm.underlying_token_decimals IS NOT NULL)\n OR (t0.amount IS NULL AND c.token_decimals IS NOT NULL)\n),\n{% endif %}\n\nFINAL AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n depositor,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\n FROM\n complete_lending_deposits\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n depositor,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd_heal AS amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n)\nSELECT\n *,\n {{ dbt_utils.generate_surrogate_key(\n ['_log_id']\n ) }} AS complete_lending_deposits_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1\n*/\n\n-- depends_on: polygon.silver.complete_token_prices\n-- depends_on: polygon.silver_lending.token_metadata\n\n\n WITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n 'POL' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n WHERE\n address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\n \n prices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n polygon.price.ez_prices_hourly\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n polygon.price.ez_prices_hourly\n WHERE\n token_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\naave AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.aave_deposits A\n\n\n where A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_deposits\n )\n\n),\neuler AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.euler_deposits A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_deposits\n )\n\n),\naave_ethereum AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.aave_ethereum_deposits A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_deposits\n )\n\n),\nfraxlend AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.fraxlend_deposits A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_deposits\n )\n\n),\ncomp_v2 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.comp_v2_deposits A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_deposits\n )\n\n),\ncomp_v3 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.comp_v3_deposits A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_deposits\n )\n\n),\nsilo AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.silo_deposits A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_deposits\n )\n\n),\nmorpho AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n null as event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._id AS _LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.morpho_deposits A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_deposits\n )\n\n),\ndeposits AS (\n SELECT\n *\n FROM\n aave\n UNION ALL\n SELECT\n *\n FROM\n aave_ethereum\n UNION ALL\n SELECT\n *\n FROM\n comp_v2\n UNION ALL\n SELECT\n *\n FROM\n comp_v3\n UNION ALL\n SELECT\n *\n FROM\n silo\n UNION ALL\n SELECT\n *\n FROM\n fraxlend\n UNION ALL\n SELECT\n *\n FROM\n morpho\n UNION ALL\n SELECT\n *\n FROM\n euler\n),\ncomplete_lending_deposits AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n A.contract_address,\n A.event_name,\n protocol_market,\n depositor,\n A.token_address,\n C.token_symbol,\n amount_unadj,\n amount_unadj / pow(10, C.token_decimals) AS amount,\n ROUND(\n amount * price,\n 2\n ) AS amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp\n FROM\n deposits A\n LEFT JOIN contracts C\n ON A.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON A.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n),\n\n\n\nFINAL AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n depositor,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\n FROM\n complete_lending_deposits\n\n\n)\nSELECT\n *,\n \n \nmd5(cast(coalesce(cast(_log_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_lending_deposits_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__complete_lending_repayments": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__complete_lending_repayments", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.sql", "unique_id": "model.fsc_evm.silver_lending__complete_lending_repayments", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "silver_lending__complete_lending_repayments"], "alias": "complete_lending_repayments", "checksum": {"name": "sha256", "checksum": "73e5371716199bde81db79806f9042877b17a8d2f72dc413b1636ecea69ac47f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "heal", "complete_lending"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, payer, borrower, protocol_market)", "transaction": true, "index": null}, {"sql": "{{ remove_test_tokens() }}", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["block_number", "platform"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE", "platform"]}, "tags": ["silver", "defi", "lending", "curated", "heal", "complete_lending"], "description": "", "columns": {"TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL_MARKET": {"name": "PROTOCOL_MARKET", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PAYER": {"name": "PAYER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BORROWER": {"name": "BORROWER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_SYMBOL": {"name": "TOKEN_SYMBOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_UNADJ": {"name": "AMOUNT_UNADJ", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_USD": {"name": "AMOUNT_USD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL": {"name": "PROTOCOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VERSION": {"name": "VERSION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_LOG_ID": {"name": "_LOG_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "COMPLETE_LENDING_REPAYMENTS_ID": {"name": "COMPLETE_LENDING_REPAYMENTS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INVOCATION_ID": {"name": "_INVOCATION_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["block_number", "platform"], "cluster_by": ["block_timestamp::DATE", "platform"], "tags": ["silver", "defi", "lending", "curated", "heal", "complete_lending"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018441.893583, "relation_name": "polygon.silver_lending.complete_lending_repayments", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('silver__complete_token_prices') }}\n-- depends_on: {{ ref('silver_lending__token_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform'],\n cluster_by = ['block_timestamp::DATE','platform'],\n post_hook = [\n \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, payer, borrower, protocol_market)\",\n \"{{ remove_test_tokens() }}\"\n ],\n tags = ['silver','defi','lending','curated','heal','complete_lending']\n) }}\n\n WITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n WHERE\n address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\nprices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n WHERE\n token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\naave AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_repayments') }} A\n\n{% if is_incremental() and 'aave' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\neuler AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower AS payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__euler_repayments') }} A\n\n{% if is_incremental() and 'euler' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naave_ethereum AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_ethereum_repayments') }} A\n\n{% if is_incremental() and 'aave_ethereum' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nfraxlend AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__fraxlend_repayments') }} A\n\n{% if is_incremental() and 'fraxlend' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v2 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__comp_v2_repayments') }} A\n\n{% if is_incremental() and 'comp_v2' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v3 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__comp_v3_repayments') }} A\n\n{% if is_incremental() and 'comp_v3' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsilo AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__silo_repayments') }} A\n\n{% if is_incremental() and 'silo' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmorpho AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n null as event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _id as _log_id,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__morpho_repayments') }} A\n\n{% if is_incremental() and 'morpho' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nrepayments AS (\n SELECT\n *\n FROM\n aave\n UNION ALL\n SELECT\n *\n FROM\n aave_ethereum\n UNION ALL\n SELECT\n *\n FROM\n comp_v2\n UNION ALL\n SELECT\n *\n FROM\n comp_v3\n UNION ALL\n SELECT\n *\n FROM\n silo\n UNION ALL\n SELECT\n *\n FROM\n fraxlend\n UNION ALL\n SELECT\n *\n FROM\n morpho\n UNION ALL\n SELECT\n *\n FROM\n euler\n),\ncomplete_lending_repayments AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n A.contract_address,\n A.event_name,\n protocol_market,\n payer,\n borrower,\n A.token_address,\n C.token_symbol,\n amount_unadj,\n amount_unadj / pow(10, C.token_decimals) AS amount,\n amount * price AS amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp\n FROM\n repayments A\n LEFT JOIN contracts C\n ON A.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON A.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\ntoken_metadata AS (\n SELECT\n underlying_token_address,\n underlying_token_symbol,\n underlying_token_decimals\n FROM\n {{ ref('silver_lending__token_metadata') }}\n WHERE \n blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n),\nheal_model AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t0.contract_address,\n event_name,\n protocol_market,\n payer,\n borrower,\n t0.token_address,\n COALESCE(NULLIF(t0.token_symbol, ''), tm.underlying_token_symbol, c.token_symbol) as token_symbol,\n amount_unadj,\n COALESCE(t0.amount, amount_unadj / pow(10, tm.underlying_token_decimals), amount_unadj / pow(10, c.token_decimals)) AS amount,\n ROUND(\n COALESCE(t0.amount, amount_unadj / pow(10, tm.underlying_token_decimals), amount_unadj / pow(10, c.token_decimals)) * p.price,\n 2\n ) AS amount_usd_heal,\n platform,\n protocol,\n version,\n t0._LOG_ID,\n t0.modified_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN token_metadata tm\n ON t0.token_address = tm.underlying_token_address\n LEFT JOIN contracts c\n ON t0.token_address = c.contract_address\n LEFT JOIN prices p\n ON t0.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform\n ) IN (\n SELECT\n CONCAT(\n t1.block_number,\n '-',\n t1.platform\n )\n FROM\n {{ this }}\n t1\n WHERE\n t1.amount_usd IS NULL\n AND t1.modified_timestamp < (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__complete_token_prices') }}\n p\n WHERE\n p.modified_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND p.price IS NOT NULL\n AND p.token_address = t1.token_address\n AND p.hour = DATE_TRUNC(\n 'hour',\n t1.block_timestamp\n )\n )\n GROUP BY\n 1\n )\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND tm.underlying_token_symbol IS NOT NULL AND tm.underlying_token_symbol != '')\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND c.token_symbol IS NOT NULL AND c.token_symbol != '')\n OR (t0.amount IS NULL AND tm.underlying_token_decimals IS NOT NULL)\n OR (t0.amount IS NULL AND c.token_decimals IS NOT NULL)\n),\n{% endif %}\n\nFINAL AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n payer,\n borrower,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\n FROM\n complete_lending_repayments\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n payer,\n borrower,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd_heal AS amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n)\nSELECT\n *,\n {{ dbt_utils.generate_surrogate_key(\n ['_log_id']\n ) }} AS complete_lending_repayments_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver__complete_token_prices", "package": null, "version": null}, {"name": "silver_lending__token_metadata", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "silver_lending__aave_repayments", "package": null, "version": null}, {"name": "silver_lending__euler_repayments", "package": null, "version": null}, {"name": "silver_lending__aave_ethereum_repayments", "package": null, "version": null}, {"name": "silver_lending__fraxlend_repayments", "package": null, "version": null}, {"name": "silver_lending__comp_v2_repayments", "package": null, "version": null}, {"name": "silver_lending__comp_v3_repayments", "package": null, "version": null}, {"name": "silver_lending__silo_repayments", "package": null, "version": null}, {"name": "silver_lending__morpho_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.remove_test_tokens", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__complete_token_prices", "seed.fsc_evm.silver_lending__token_metadata", "model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver_lending__aave_repayments", "model.fsc_evm.silver_lending__euler_repayments", "model.fsc_evm.silver_lending__aave_ethereum_repayments", "model.fsc_evm.silver_lending__fraxlend_repayments", "model.fsc_evm.silver_lending__comp_v2_repayments", "model.fsc_evm.silver_lending__comp_v3_repayments", "model.fsc_evm.silver_lending__silo_repayments", "model.fsc_evm.silver_lending__morpho_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\",\n \"platform\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, payer, borrower, protocol_market)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ remove_test_tokens() }}\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"heal\",\n \"complete_lending\"\n ],\n \"unique_key\": [\n \"block_number\",\n \"platform\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('silver__complete_token_prices') }}\n-- depends_on: {{ ref('silver_lending__token_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform'],\n cluster_by = ['block_timestamp::DATE','platform'],\n post_hook = [\n \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, payer, borrower, protocol_market)\",\n \"{{ remove_test_tokens() }}\"\n ],\n tags = ['silver','defi','lending','curated','heal','complete_lending']\n) }}\n\n WITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n WHERE\n address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\nprices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n WHERE\n token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\naave AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_repayments') }} A\n\n{% if is_incremental() and 'aave' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\neuler AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower AS payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__euler_repayments') }} A\n\n{% if is_incremental() and 'euler' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naave_ethereum AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_ethereum_repayments') }} A\n\n{% if is_incremental() and 'aave_ethereum' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nfraxlend AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__fraxlend_repayments') }} A\n\n{% if is_incremental() and 'fraxlend' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v2 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__comp_v2_repayments') }} A\n\n{% if is_incremental() and 'comp_v2' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v3 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__comp_v3_repayments') }} A\n\n{% if is_incremental() and 'comp_v3' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsilo AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__silo_repayments') }} A\n\n{% if is_incremental() and 'silo' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmorpho AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n null as event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _id as _log_id,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__morpho_repayments') }} A\n\n{% if is_incremental() and 'morpho' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nrepayments AS (\n SELECT\n *\n FROM\n aave\n UNION ALL\n SELECT\n *\n FROM\n aave_ethereum\n UNION ALL\n SELECT\n *\n FROM\n comp_v2\n UNION ALL\n SELECT\n *\n FROM\n comp_v3\n UNION ALL\n SELECT\n *\n FROM\n silo\n UNION ALL\n SELECT\n *\n FROM\n fraxlend\n UNION ALL\n SELECT\n *\n FROM\n morpho\n UNION ALL\n SELECT\n *\n FROM\n euler\n),\ncomplete_lending_repayments AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n A.contract_address,\n A.event_name,\n protocol_market,\n payer,\n borrower,\n A.token_address,\n C.token_symbol,\n amount_unadj,\n amount_unadj / pow(10, C.token_decimals) AS amount,\n amount * price AS amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp\n FROM\n repayments A\n LEFT JOIN contracts C\n ON A.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON A.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\ntoken_metadata AS (\n SELECT\n underlying_token_address,\n underlying_token_symbol,\n underlying_token_decimals\n FROM\n {{ ref('silver_lending__token_metadata') }}\n WHERE \n blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n),\nheal_model AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n t0.contract_address,\n event_name,\n protocol_market,\n payer,\n borrower,\n t0.token_address,\n COALESCE(NULLIF(t0.token_symbol, ''), tm.underlying_token_symbol, c.token_symbol) as token_symbol,\n amount_unadj,\n COALESCE(t0.amount, amount_unadj / pow(10, tm.underlying_token_decimals), amount_unadj / pow(10, c.token_decimals)) AS amount,\n ROUND(\n COALESCE(t0.amount, amount_unadj / pow(10, tm.underlying_token_decimals), amount_unadj / pow(10, c.token_decimals)) * p.price,\n 2\n ) AS amount_usd_heal,\n platform,\n protocol,\n version,\n t0._LOG_ID,\n t0.modified_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN token_metadata tm\n ON t0.token_address = tm.underlying_token_address\n LEFT JOIN contracts c\n ON t0.token_address = c.contract_address\n LEFT JOIN prices p\n ON t0.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform\n ) IN (\n SELECT\n CONCAT(\n t1.block_number,\n '-',\n t1.platform\n )\n FROM\n {{ this }}\n t1\n WHERE\n t1.amount_usd IS NULL\n AND t1.modified_timestamp < (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__complete_token_prices') }}\n p\n WHERE\n p.modified_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND p.price IS NOT NULL\n AND p.token_address = t1.token_address\n AND p.hour = DATE_TRUNC(\n 'hour',\n t1.block_timestamp\n )\n )\n GROUP BY\n 1\n )\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND tm.underlying_token_symbol IS NOT NULL AND tm.underlying_token_symbol != '')\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND c.token_symbol IS NOT NULL AND c.token_symbol != '')\n OR (t0.amount IS NULL AND tm.underlying_token_decimals IS NOT NULL)\n OR (t0.amount IS NULL AND c.token_decimals IS NOT NULL)\n),\n{% endif %}\n\nFINAL AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n payer,\n borrower,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\n FROM\n complete_lending_repayments\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n payer,\n borrower,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd_heal AS amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n)\nSELECT\n *,\n {{ dbt_utils.generate_surrogate_key(\n ['_log_id']\n ) }} AS complete_lending_repayments_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1\n*/\n\n-- depends_on: polygon.silver.complete_token_prices\n-- depends_on: polygon.silver_lending.token_metadata\n\n\n WITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n 'POL' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n WHERE\n address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\nprices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n polygon.price.ez_prices_hourly\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n polygon.price.ez_prices_hourly\n WHERE\n token_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\naave AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.aave_repayments A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_repayments\n )\n\n),\neuler AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n borrower AS payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.euler_repayments A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_repayments\n )\n\n),\naave_ethereum AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.aave_ethereum_repayments A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_repayments\n )\n\n),\nfraxlend AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.fraxlend_repayments A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_repayments\n )\n\n),\ncomp_v2 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.comp_v2_repayments A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_repayments\n )\n\n),\ncomp_v3 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.comp_v3_repayments A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_repayments\n )\n\n),\nsilo AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.silo_repayments A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_repayments\n )\n\n),\nmorpho AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n null as event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n payer,\n borrower,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n _id as _log_id,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.morpho_repayments A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_repayments\n )\n\n),\nrepayments AS (\n SELECT\n *\n FROM\n aave\n UNION ALL\n SELECT\n *\n FROM\n aave_ethereum\n UNION ALL\n SELECT\n *\n FROM\n comp_v2\n UNION ALL\n SELECT\n *\n FROM\n comp_v3\n UNION ALL\n SELECT\n *\n FROM\n silo\n UNION ALL\n SELECT\n *\n FROM\n fraxlend\n UNION ALL\n SELECT\n *\n FROM\n morpho\n UNION ALL\n SELECT\n *\n FROM\n euler\n),\ncomplete_lending_repayments AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n A.contract_address,\n A.event_name,\n protocol_market,\n payer,\n borrower,\n A.token_address,\n C.token_symbol,\n amount_unadj,\n amount_unadj / pow(10, C.token_decimals) AS amount,\n amount * price AS amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp\n FROM\n repayments A\n LEFT JOIN contracts C\n ON A.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON A.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n),\n\n\n\nFINAL AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n payer,\n borrower,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\n FROM\n complete_lending_repayments\n\n\n)\nSELECT\n *,\n \n \nmd5(cast(coalesce(cast(_log_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_lending_repayments_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY _log_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_lending__complete_lending_withdraws": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__complete_lending_withdraws", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.sql", "unique_id": "model.fsc_evm.silver_lending__complete_lending_withdraws", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "silver_lending__complete_lending_withdraws"], "alias": "complete_lending_withdraws", "checksum": {"name": "sha256", "checksum": "87e2abb118411978f96169266f56e2d02df2694f9381cf47b4abf64724543ec1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "defi", "lending", "curated", "heal", "complete_lending"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, depositor, protocol_market)", "transaction": true, "index": null}, {"sql": "{{ remove_test_tokens() }}", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["block_number", "platform"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::DATE", "platform"]}, "tags": ["silver", "defi", "lending", "curated", "heal", "complete_lending"], "description": "", "columns": {"TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL_MARKET": {"name": "PROTOCOL_MARKET", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEPOSITOR": {"name": "DEPOSITOR", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_SYMBOL": {"name": "TOKEN_SYMBOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_UNADJ": {"name": "AMOUNT_UNADJ", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_USD": {"name": "AMOUNT_USD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL": {"name": "PROTOCOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VERSION": {"name": "VERSION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_LOG_ID": {"name": "_LOG_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "COMPLETE_LENDING_WITHDRAWS_ID": {"name": "COMPLETE_LENDING_WITHDRAWS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INVOCATION_ID": {"name": "_INVOCATION_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["block_number", "platform"], "cluster_by": ["block_timestamp::DATE", "platform"], "tags": ["silver", "defi", "lending", "curated", "heal", "complete_lending"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018441.6680477, "relation_name": "polygon.silver_lending.complete_lending_withdraws", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('silver__complete_token_prices') }}\n-- depends_on: {{ ref('silver_lending__token_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform'],\n cluster_by = ['block_timestamp::DATE','platform'],\n post_hook = [\n \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, depositor, protocol_market)\",\n \"{{ remove_test_tokens() }}\"\n ],\n tags = ['silver','defi','lending','curated','heal','complete_lending']\n) }}\n\n WITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n WHERE\n address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\n prices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n WHERE\n token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\naave AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_withdraws') }} A\n\n{% if is_incremental() and 'aave' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\neuler AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__euler_withdraws') }} A\n\n{% if is_incremental() and 'euler' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naave_ethereum AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_ethereum_withdraws') }} A\n\n{% if is_incremental() and 'aave_ethereum' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nfraxlend AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__fraxlend_withdraws') }} A\n\n{% if is_incremental() and 'fraxlend' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v2 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__comp_v2_withdraws') }} A\n\n{% if is_incremental() and 'comp_v2' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v3 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__comp_v3_withdraws') }} A\n\n{% if is_incremental() and 'comp_v3' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsilo AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__silo_withdraws') }} A\n\n{% if is_incremental() and 'silo' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmorpho AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n null as event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version,\n _id as _log_id,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__morpho_withdraws') }} A\n\n{% if is_incremental() and 'morpho' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nwithdraws AS (\n SELECT\n *\n FROM\n aave\n UNION ALL\n SELECT\n *\n FROM\n aave_ethereum\n UNION ALL\n SELECT\n *\n FROM\n comp_v2\n UNION ALL\n SELECT\n *\n FROM\n comp_v3\n UNION ALL\n SELECT\n *\n FROM\n silo\n UNION ALL\n SELECT\n *\n FROM\n fraxlend\n UNION ALL\n SELECT\n *\n FROM\n morpho\n UNION ALL\n SELECT\n *\n FROM\n euler\n),\ncomplete_lending_withdraws AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n A.contract_address,\n A.event_name,\n protocol_market,\n depositor,\n A.token_address,\n C.token_symbol,\n amount_unadj,\n amount_unadj / pow(10, C.token_decimals) AS amount,\n ROUND(\n amount * price,\n 2\n ) AS amount_usd,\n platform,\n protocol,\n version,\n A._log_id,\n A.modified_timestamp\n FROM\n withdraws A\n LEFT JOIN contracts C\n ON A.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON A.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\ntoken_metadata AS (\n SELECT\n underlying_token_address,\n underlying_token_symbol,\n underlying_token_decimals\n FROM\n {{ ref('silver_lending__token_metadata') }}\n WHERE \n blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n),\nheal_model AS (\n SELECT\n t0.tx_hash,\n t0.block_number,\n t0.block_timestamp,\n t0.event_index,\n t0.origin_from_address,\n t0.origin_to_address,\n t0.origin_function_signature,\n t0.contract_address,\n t0.event_name,\n t0.protocol_market,\n t0.depositor,\n t0.token_address,\n COALESCE(NULLIF(t0.token_symbol, ''), tm.underlying_token_symbol, c.token_symbol) as token_symbol,\n t0.amount_unadj,\n COALESCE(t0.amount, t0.amount_unadj / pow(10, tm.underlying_token_decimals), t0.amount_unadj / pow(10, c.token_decimals)) AS amount,\n ROUND(\n COALESCE(t0.amount, t0.amount_unadj / pow(10, tm.underlying_token_decimals), t0.amount_unadj / pow(10, c.token_decimals)) * p.price,\n 2\n ) AS amount_usd_heal,\n t0.platform,\n t0.protocol,\n t0.version :: STRING AS version,\n t0._log_id,\n t0.modified_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN token_metadata tm\n ON t0.token_address = tm.underlying_token_address\n LEFT JOIN contracts c\n ON t0.token_address = c.contract_address\n LEFT JOIN prices p\n ON t0.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform\n ) IN (\n SELECT\n CONCAT(\n t1.block_number,\n '-',\n t1.platform\n )\n FROM\n {{ this }}\n t1\n WHERE\n t1.amount_usd IS NULL\n AND t1.modified_timestamp < (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__complete_token_prices') }}\n p\n WHERE\n p.modified_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND p.price IS NOT NULL\n AND p.token_address = t1.token_address\n AND p.hour = DATE_TRUNC(\n 'hour',\n t1.block_timestamp\n )\n )\n GROUP BY\n 1\n )\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND tm.underlying_token_symbol IS NOT NULL AND tm.underlying_token_symbol != '')\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND c.token_symbol IS NOT NULL AND c.token_symbol != '')\n OR (t0.amount IS NULL AND tm.underlying_token_decimals IS NOT NULL)\n OR (t0.amount IS NULL AND c.token_decimals IS NOT NULL)\n),\n{% endif %}\n\nFINAL AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n depositor,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\n FROM\n complete_lending_withdraws\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n depositor,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd_heal AS amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _log_id,\n modified_timestamp AS _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n)\nSELECT\n *,\n {{ dbt_utils.generate_surrogate_key(\n ['_log_id']\n ) }} AS complete_lending_withdraws_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY _log_id,platform\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver__complete_token_prices", "package": null, "version": null}, {"name": "silver_lending__token_metadata", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "silver_lending__aave_withdraws", "package": null, "version": null}, {"name": "silver_lending__euler_withdraws", "package": null, "version": null}, {"name": "silver_lending__aave_ethereum_withdraws", "package": null, "version": null}, {"name": "silver_lending__fraxlend_withdraws", "package": null, "version": null}, {"name": "silver_lending__comp_v2_withdraws", "package": null, "version": null}, {"name": "silver_lending__comp_v3_withdraws", "package": null, "version": null}, {"name": "silver_lending__silo_withdraws", "package": null, "version": null}, {"name": "silver_lending__morpho_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.remove_test_tokens", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver__complete_token_prices", "seed.fsc_evm.silver_lending__token_metadata", "model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver_lending__aave_withdraws", "model.fsc_evm.silver_lending__euler_withdraws", "model.fsc_evm.silver_lending__aave_ethereum_withdraws", "model.fsc_evm.silver_lending__fraxlend_withdraws", "model.fsc_evm.silver_lending__comp_v2_withdraws", "model.fsc_evm.silver_lending__comp_v3_withdraws", "model.fsc_evm.silver_lending__silo_withdraws", "model.fsc_evm.silver_lending__morpho_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp::DATE\",\n \"platform\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, depositor, protocol_market)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ remove_test_tokens() }}\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"defi\",\n \"lending\",\n \"curated\",\n \"heal\",\n \"complete_lending\"\n ],\n \"unique_key\": [\n \"block_number\",\n \"platform\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('silver__complete_token_prices') }}\n-- depends_on: {{ ref('silver_lending__token_metadata') }}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = ['block_number','platform'],\n cluster_by = ['block_timestamp::DATE','platform'],\n post_hook = [\n \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(tx_hash, origin_from_address, origin_to_address, origin_function_signature, contract_address, event_name, token_address, token_symbol, depositor, protocol_market)\",\n \"{{ remove_test_tokens() }}\"\n ],\n tags = ['silver','defi','lending','curated','heal','complete_lending']\n) }}\n\n WITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n '{{ vars.GLOBAL_NATIVE_ASSET_SYMBOL }}' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n {{ ref('core__dim_contracts') }}\n WHERE\n address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\n prices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n {{ ref('price__ez_prices_hourly') }}\n WHERE\n token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n),\naave AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_withdraws') }} A\n\n{% if is_incremental() and 'aave' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\neuler AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__euler_withdraws') }} A\n\n{% if is_incremental() and 'euler' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\naave_ethereum AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__aave_ethereum_withdraws') }} A\n\n{% if is_incremental() and 'aave_ethereum' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nfraxlend AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__fraxlend_withdraws') }} A\n\n{% if is_incremental() and 'fraxlend' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v2 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__comp_v2_withdraws') }} A\n\n{% if is_incremental() and 'comp_v2' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\ncomp_v3 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__comp_v3_withdraws') }} A\n\n{% if is_incremental() and 'comp_v3' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nsilo AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__silo_withdraws') }} A\n\n{% if is_incremental() and 'silo' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nmorpho AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n null as event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version,\n _id as _log_id,\n A.modified_timestamp,\n A.event_name\n FROM\n {{ ref('silver_lending__morpho_withdraws') }} A\n\n{% if is_incremental() and 'morpho' not in vars.CURATED_FR_MODELS %}\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n{% endif %}\n),\nwithdraws AS (\n SELECT\n *\n FROM\n aave\n UNION ALL\n SELECT\n *\n FROM\n aave_ethereum\n UNION ALL\n SELECT\n *\n FROM\n comp_v2\n UNION ALL\n SELECT\n *\n FROM\n comp_v3\n UNION ALL\n SELECT\n *\n FROM\n silo\n UNION ALL\n SELECT\n *\n FROM\n fraxlend\n UNION ALL\n SELECT\n *\n FROM\n morpho\n UNION ALL\n SELECT\n *\n FROM\n euler\n),\ncomplete_lending_withdraws AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n A.contract_address,\n A.event_name,\n protocol_market,\n depositor,\n A.token_address,\n C.token_symbol,\n amount_unadj,\n amount_unadj / pow(10, C.token_decimals) AS amount,\n ROUND(\n amount * price,\n 2\n ) AS amount_usd,\n platform,\n protocol,\n version,\n A._log_id,\n A.modified_timestamp\n FROM\n withdraws A\n LEFT JOIN contracts C\n ON A.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON A.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n),\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\ntoken_metadata AS (\n SELECT\n underlying_token_address,\n underlying_token_symbol,\n underlying_token_decimals\n FROM\n {{ ref('silver_lending__token_metadata') }}\n WHERE \n blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n),\nheal_model AS (\n SELECT\n t0.tx_hash,\n t0.block_number,\n t0.block_timestamp,\n t0.event_index,\n t0.origin_from_address,\n t0.origin_to_address,\n t0.origin_function_signature,\n t0.contract_address,\n t0.event_name,\n t0.protocol_market,\n t0.depositor,\n t0.token_address,\n COALESCE(NULLIF(t0.token_symbol, ''), tm.underlying_token_symbol, c.token_symbol) as token_symbol,\n t0.amount_unadj,\n COALESCE(t0.amount, t0.amount_unadj / pow(10, tm.underlying_token_decimals), t0.amount_unadj / pow(10, c.token_decimals)) AS amount,\n ROUND(\n COALESCE(t0.amount, t0.amount_unadj / pow(10, tm.underlying_token_decimals), t0.amount_unadj / pow(10, c.token_decimals)) * p.price,\n 2\n ) AS amount_usd_heal,\n t0.platform,\n t0.protocol,\n t0.version :: STRING AS version,\n t0._log_id,\n t0.modified_timestamp\n FROM\n {{ this }}\n t0\n LEFT JOIN token_metadata tm\n ON t0.token_address = tm.underlying_token_address\n LEFT JOIN contracts c\n ON t0.token_address = c.contract_address\n LEFT JOIN prices p\n ON t0.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n WHERE\n CONCAT(\n t0.block_number,\n '-',\n t0.platform\n ) IN (\n SELECT\n CONCAT(\n t1.block_number,\n '-',\n t1.platform\n )\n FROM\n {{ this }}\n t1\n WHERE\n t1.amount_usd IS NULL\n AND t1.modified_timestamp < (\n SELECT\n MAX(\n modified_timestamp\n ) - INTERVAL '{{ vars.CURATED_COMPLETE_LOOKBACK_HOURS }}'\n FROM\n {{ this }}\n )\n AND EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__complete_token_prices') }}\n p\n WHERE\n p.modified_timestamp > DATEADD('DAY', -14, SYSDATE())\n AND p.price IS NOT NULL\n AND p.token_address = t1.token_address\n AND p.hour = DATE_TRUNC(\n 'hour',\n t1.block_timestamp\n )\n )\n GROUP BY\n 1\n )\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND tm.underlying_token_symbol IS NOT NULL AND tm.underlying_token_symbol != '')\n OR (t0.token_symbol IS NULL OR t0.token_symbol = '' AND c.token_symbol IS NOT NULL AND c.token_symbol != '')\n OR (t0.amount IS NULL AND tm.underlying_token_decimals IS NOT NULL)\n OR (t0.amount IS NULL AND c.token_decimals IS NOT NULL)\n),\n{% endif %}\n\nFINAL AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n depositor,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\n FROM\n complete_lending_withdraws\n\n{% if is_incremental() and var(\n 'HEAL_MODEL'\n) %}\nUNION ALL\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n depositor,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd_heal AS amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _log_id,\n modified_timestamp AS _inserted_timestamp\nFROM\n heal_model\n{% endif %}\n)\nSELECT\n *,\n {{ dbt_utils.generate_surrogate_key(\n ['_log_id']\n ) }} AS complete_lending_withdraws_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY _log_id,platform\nORDER BY\n _inserted_timestamp DESC)) = 1\n*/\n\n-- depends_on: polygon.silver.complete_token_prices\n-- depends_on: polygon.silver_lending.token_metadata\n\n\n WITH contracts AS (\n\n SELECT\n address AS contract_address,\n symbol AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS contract_address,\n 'POL' AS token_symbol,\n decimals AS token_decimals,\n modified_timestamp AS _inserted_timestamp\n FROM\n polygon.core.dim_contracts\n WHERE\n address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\n prices AS (\n SELECT\n token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n polygon.price.ez_prices_hourly\n UNION ALL\n SELECT\n '0x0000000000000000000000000000000000000000' AS token_address,\n price,\n HOUR,\n is_verified,\n modified_timestamp\n FROM\n polygon.price.ez_prices_hourly\n WHERE\n token_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n),\naave AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.aave_withdraws A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_withdraws\n )\n\n),\neuler AS (\n\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.euler_withdraws A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_withdraws\n )\n\n),\naave_ethereum AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.aave_ethereum_withdraws A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_withdraws\n )\n\n),\nfraxlend AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.fraxlend_withdraws A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_withdraws\n )\n\n),\ncomp_v2 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.comp_v2_withdraws A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_withdraws\n )\n\n),\ncomp_v3 AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.comp_v3_withdraws A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_withdraws\n )\n\n),\nsilo AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version :: STRING AS version,\n A._LOG_ID,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.silo_withdraws A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_withdraws\n )\n\n),\nmorpho AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n null as event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n depositor,\n protocol_market,\n token_address,\n amount_unadj,\n platform,\n protocol,\n version,\n _id as _log_id,\n A.modified_timestamp,\n A.event_name\n FROM\n polygon.silver_lending.morpho_withdraws A\n\n\n WHERE A.modified_timestamp >= (\n SELECT\n MAX(modified_timestamp) - INTERVAL '4 hours'\n FROM\n polygon.silver_lending.complete_lending_withdraws\n )\n\n),\nwithdraws AS (\n SELECT\n *\n FROM\n aave\n UNION ALL\n SELECT\n *\n FROM\n aave_ethereum\n UNION ALL\n SELECT\n *\n FROM\n comp_v2\n UNION ALL\n SELECT\n *\n FROM\n comp_v3\n UNION ALL\n SELECT\n *\n FROM\n silo\n UNION ALL\n SELECT\n *\n FROM\n fraxlend\n UNION ALL\n SELECT\n *\n FROM\n morpho\n UNION ALL\n SELECT\n *\n FROM\n euler\n),\ncomplete_lending_withdraws AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n A.contract_address,\n A.event_name,\n protocol_market,\n depositor,\n A.token_address,\n C.token_symbol,\n amount_unadj,\n amount_unadj / pow(10, C.token_decimals) AS amount,\n ROUND(\n amount * price,\n 2\n ) AS amount_usd,\n platform,\n protocol,\n version,\n A._log_id,\n A.modified_timestamp\n FROM\n withdraws A\n LEFT JOIN contracts C\n ON A.token_address = C.contract_address\n LEFT JOIN prices\n p\n ON A.token_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n block_timestamp\n ) = p.hour\n),\n\n\n\nFINAL AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n event_index,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n contract_address,\n event_name,\n protocol_market,\n depositor,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n platform,\n protocol,\n version :: STRING AS version,\n _LOG_ID,\n modified_timestamp AS _inserted_timestamp\n FROM\n complete_lending_withdraws\n\n\n)\nSELECT\n *,\n \n \nmd5(cast(coalesce(cast(_log_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_lending_withdraws_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n FINAL qualify(ROW_NUMBER() over(PARTITION BY _log_id,platform\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.defi__ez_lending_borrows": {"database": "polygon", "schema": "defi", "name": "defi__ez_lending_borrows", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/gold/defi__ez_lending_borrows.sql", "original_file_path": "models/curated_package/defi/lending/gold/defi__ez_lending_borrows.sql", "unique_id": "model.fsc_evm.defi__ez_lending_borrows", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "gold", "defi__ez_lending_borrows"], "alias": "ez_lending_borrows", "checksum": {"name": "sha256", "checksum": "ca784b1ae7f632ed2a1839a115a067984cc79229fb528480ad9faaf25b515eb5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "defi", "lending", "curated", "ez"], "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, BORROWS"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "defi", "lending", "curated", "ez"], "description": "## What\n\nThis table provides a comprehensive view of borrowing transactions across all major lending protocols on EVM blockchains. It captures when users borrow assets against their deposited collateral, enabling analysis of lending market dynamics, user behavior, and protocol performance.\n\n## Key Use Cases\n\n- Tracking borrowing volumes and user activity across protocols\n- Analyzing most borrowed assets and their trends\n- Understanding user borrowing patterns and behavior\n- Monitoring protocol market share and growth\n- Calculating outstanding loan positions\n\n## Important Relationships\n\n- Links to `ez_lending_deposits` for collateral analysis\n- Joins with `ez_lending_repayments` to track loan lifecycle\n- References `ez_lending_liquidations` for risk analysis\n- Connects to `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `borrower`: Address that borrowed assets\n- `platform`: Lending protocol name\n- `token_address`/`token_symbol`: Borrowed asset details\n- `amount`/`amount_usd`: Borrowed quantity and USD value\n- `block_timestamp`: When borrow occurred\n\n## Sample queries\n\n```sql\n-- Daily borrowing volume by protocol\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(DISTINCT tx_hash) AS borrow_txns,\n COUNT(DISTINCT borrower) AS unique_borrowers,\n SUM(amount_usd) AS volume_usd\nFROM .defi.ez_lending_borrows\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 5 DESC;\n\n-- Top borrowed assets analysis\nSELECT \n token_symbol,\n token_address,\n COUNT(*) AS borrow_count,\n SUM(amount) AS total_borrowed,\n SUM(amount_usd) AS total_borrowed_usd,\n AVG(amount_usd) AS avg_borrow_size_usd\nFROM .defi.ez_lending_borrows\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND token_symbol IS NOT NULL\nGROUP BY 1, 2\nORDER BY 5 DESC\nLIMIT 20;\n\n-- Wallet Specific Borrow Analysis\nSELECT \n b.borrower,\n b.token_address AS borrowed_token_address,\n b.token_symbol AS borrowed_token_symbol,\n DATE_TRUNC('week', b.block_timestamp) AS weekly_block_timestamp,\n SUM(b.amount) AS total_borrow_amount,\n SUM(b.amount_usd) AS total_borrow_usd,\n SUM(r.amount) AS total_repayment_amount,\n SUM(r.amount_usd) AS total_repayment_usd,\n SUM(b.amount) - SUM(r.amount) AS net_borrowed_amount,\n SUM(b.amount_usd) - SUM(r.amount_usd) AS net_borrowed_usd\nFROM \n .defi.ez_lending_borrows b\nLEFT JOIN .defi.ez_lending_repayments r\n ON b.borrower = r.borrower\n AND b.token_address = r.token_address\nWHERE \n b.borrower = LOWER('')\nGROUP BY 1, 2, 3, 4\n\n-- User borrowing patterns\nWITH user_stats AS (\n SELECT \n borrower,\n COUNT(DISTINCT DATE_TRUNC('day', block_timestamp)) AS active_days,\n COUNT(DISTINCT platform) AS platforms_used,\n COUNT(DISTINCT token_address) AS assets_borrowed,\n SUM(amount_usd) AS total_borrowed_usd,\n AVG(amount_usd) AS avg_borrow_size\n FROM .defi.ez_lending_borrows\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n CASE \n WHEN total_borrowed_usd < 1000 THEN '< $1K'\n WHEN total_borrowed_usd < 10000 THEN '$1K - $10K'\n WHEN total_borrowed_usd < 100000 THEN '$10K - $100K'\n ELSE '> $100K'\n END AS borrower_tier,\n COUNT(*) AS user_count,\n AVG(active_days) AS avg_active_days,\n AVG(platforms_used) AS avg_platforms,\n AVG(total_borrowed_usd) AS avg_total_borrowed\nFROM user_stats\nGROUP BY 1\nORDER BY 5 DESC;\n\n-- Protocol market share\nWITH protocol_volume AS (\n SELECT \n platform,\n SUM(amount_usd) AS total_volume,\n COUNT(DISTINCT borrower) AS unique_users,\n COUNT(*) AS transaction_count\n FROM .defi.ez_lending_borrows\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n platform,\n total_volume,\n total_volume * 100.0 / SUM(total_volume) OVER () AS market_share_pct,\n unique_users,\n transaction_count,\n total_volume / transaction_count AS avg_borrow_size\nFROM protocol_volume\nORDER BY total_volume DESC;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "The lending protocol where the transaction occurred.\n\nExample: 'aave'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL_MARKET": {"name": "PROTOCOL_MARKET", "description": "The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BORROWER": {"name": "BORROWER", "description": "The address that initiated a borrow or repayment transaction.\n\nExample: '0x1234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "The contract address of the underlying asset being lent or borrowed.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_SYMBOL": {"name": "TOKEN_SYMBOL", "description": "The ticker symbol of the asset involved in the lending transaction.\n\nExample: 'USDC'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_UNADJ": {"name": "AMOUNT_UNADJ", "description": "The raw amount of tokens borrowed or repaid without decimal adjustment.\n\nExample: 1000000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "The decimal-adjusted quantity of tokens in the transaction.\n\nExample: 1000.5", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_USD": {"name": "AMOUNT_USD", "description": "The USD value of tokens at transaction time.\n\nExample: 1500.75", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_LENDING_BORROWS_ID": {"name": "EZ_LENDING_BORROWS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, BORROWS"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/lending/gold/defi__ez_lending_borrows.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "persist_docs": {"relation": true, "columns": true}, "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, BORROWS"}}}, "tags": ["gold", "defi", "lending", "curated", "ez"], "copy_grants": true, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.2500656, "relation_name": "polygon.defi.ez_lending_borrows", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta={\n 'database_tags':{\n 'table': {\n 'PURPOSE': 'LENDING, BORROWS'\n }\n }\n },\n tags = ['gold','defi','lending','curated','ez']\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n platform,\n protocol_market,\n borrower,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n complete_lending_borrows_id AS ez_lending_borrows_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n {{ ref('silver_lending__complete_lending_borrows') }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/gold/defi__ez_lending_borrows.sql", "compiled": true, "compiled_code": "\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n platform,\n protocol_market,\n borrower,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n complete_lending_borrows_id AS ez_lending_borrows_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n polygon.silver_lending.complete_lending_borrows", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.defi__ez_lending_liquidations": {"database": "polygon", "schema": "defi", "name": "defi__ez_lending_liquidations", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/gold/defi__ez_lending_liquidations.sql", "original_file_path": "models/curated_package/defi/lending/gold/defi__ez_lending_liquidations.sql", "unique_id": "model.fsc_evm.defi__ez_lending_liquidations", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "gold", "defi__ez_lending_liquidations"], "alias": "ez_lending_liquidations", "checksum": {"name": "sha256", "checksum": "4cdfd5e42236524f2789991a05fa34e584126ec9f27d9eb86d8277fd6d7a2ca5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "defi", "lending", "curated", "ez"], "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, LIQUIDATIONS"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "defi", "lending", "curated", "ez"], "description": "## What\n\nThis table tracks liquidation events across lending protocols, where under-collateralized positions are forcibly closed to protect protocol solvency. Liquidations occur when a borrower's health factor drops below 1, typically due to collateral value decline or debt value increase.\n\n## Key Use Cases\n\n- Monitoring protocol health and risk levels\n- Analyzing liquidation patterns during market volatility\n- Tracking liquidator profitability and competition\n- Understanding collateral risk profiles\n- Identifying frequently liquidated borrowers\n\n## Important Relationships\n\n- Links to `ez_lending_borrows` for original loan details\n- Connects to `ez_lending_deposits` for collateral information\n- Often preceded by entries in `ez_lending_flashloans`\n- References `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `borrower`: Address that was liquidated\n- `liquidator`: Address performing the liquidation\n- `platform`: Lending protocol\n- `collateral_token`/`debt_token`: Asset pair involved\n- `amount`/`amount_usd`: Collateral seized\n\n## Sample queries\n\n```sql\n-- Daily liquidation volume and metrics\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(*) AS liquidation_count,\n COUNT(DISTINCT borrower) AS unique_borrowers_liquidated,\n SUM(amount_usd) AS total_debt_covered_usd,\n SUM(amount_usd) AS total_collateral_liquidated_usd,\n AVG(amount_usd / NULLIF(amount_usd, 0) - 1) * 100 AS avg_liquidation_bonus_pct\nFROM .defi.ez_lending_liquidations\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 5 DESC;\n\n-- Most liquidated asset pairs\nSELECT \n collateral_token,\n collateral_token_symbol,\n debt_token,\n debt_token_symbol,\n COUNT(*) AS liquidation_count,\n SUM(amount_usd) AS total_collateral_liquidated_usd,\n AVG(amount_usd) AS avg_liquidation_size_usd\nFROM .defi.ez_lending_liquidations\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND collateral_token_symbol IS NOT NULL\n AND debt_token_symbol IS NOT NULL\nGROUP BY 1, 2, 3, 4\nORDER BY 6 DESC\nLIMIT 20;\n\n-- Liquidator analysis\nWITH liquidator_stats AS (\n SELECT \n liquidator,\n COUNT(*) AS liquidations_performed,\n SUM(amount_usd) AS total_collateral_received_usd,\n FROM .defi.ez_lending_liquidations\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n CASE \n WHEN liquidations_performed = 1 THEN 'Opportunistic'\n WHEN liquidations_performed <= 10 THEN 'Active'\n WHEN liquidations_performed <= 100 THEN 'Professional'\n ELSE 'Bot/High Frequency'\n END AS liquidator_type,\n COUNT(*) AS liquidator_count,\n SUM(total_collateral_received_usd) as total_collateral_received_usd\n SUM(liquidations_performed) AS total_liquidations\nFROM liquidator_stats\nGROUP BY 1\nORDER BY 3 DESC;\n\n-- Large liquidations monitoring\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n borrower,\n liquidator,\n collateral_token_symbol,\n debt_token_symbol,\n amount_usd,\nFROM .defi.ez_lending_liquidations\nWHERE amount_usd > 10000\n AND block_timestamp >= CURRENT_DATE - 14\nORDER BY amount_usd DESC;\n\n-- Borrower liquidation history\nWITH borrower_liquidations AS (\n SELECT \n borrower,\n COUNT(*) AS times_liquidated,\n COUNT(DISTINCT DATE_TRUNC('day', block_timestamp)) AS liquidation_days,\n SUM(amount_usd) AS total_collateral_lost_usd,\n ARRAY_AGG(DISTINCT platform) AS platforms_liquidated_on\n FROM .defi.ez_lending_liquidations\n WHERE block_timestamp >= CURRENT_DATE - 90\n AND amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n times_liquidated,\n platforms_liquidated_on,\n COUNT(*) AS borrower_count,\n AVG(total_collateral_lost_usd) AS avg_loss_from_liquidation\nFROM borrower_liquidations\nGROUP BY 1, 2\nORDER BY 1, 2;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "The lending protocol where the transaction occurred.\n\nExample: 'aave'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LIQUIDATOR": {"name": "LIQUIDATOR", "description": "The address that performed the liquidation.\n\nExample: '0xabcdefabcdefabcdefabcdefabcdefabcdefabcd'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BORROWER": {"name": "BORROWER", "description": "The address that initiated a borrow or repayment transaction.\n\nExample: '0x1234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL_MARKET": {"name": "PROTOCOL_MARKET", "description": "The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "COLLATERAL_TOKEN": {"name": "COLLATERAL_TOKEN", "description": "The token contract address used as collateral in a liquidation.\n\nExample: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "COLLATERAL_TOKEN_SYMBOL": {"name": "COLLATERAL_TOKEN_SYMBOL", "description": "The symbol of the asset used as collateral in liquidations.\n\nExample: 'WETH'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_UNADJ": {"name": "AMOUNT_UNADJ", "description": "The raw amount of tokens liquidated without decimal adjustment. This column will be deprecated October 13th, please update to liquidated_amount_unadj.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "The decimal-adjusted amount of tokens liquidated. This column will be deprecated October 13th, please update to liquidated_amount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_USD": {"name": "AMOUNT_USD", "description": "The USD value of the tokens liquidated. This column will be deprecated October 13th, please update to liquidated_amount_usd.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEBT_TOKEN": {"name": "DEBT_TOKEN", "description": "The token contract address that was borrowed and is being repaid in liquidation.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEBT_TOKEN_SYMBOL": {"name": "DEBT_TOKEN_SYMBOL", "description": "The symbol of the borrowed asset being repaid in liquidation.\n\nExample: 'USDC'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_LENDING_LIQUDATIONS_ID": {"name": "EZ_LENDING_LIQUDATIONS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, LIQUIDATIONS"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/lending/gold/defi__ez_lending_liquidations.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "persist_docs": {"relation": true, "columns": true}, "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, LIQUIDATIONS"}}}, "tags": ["gold", "defi", "lending", "curated", "ez"], "copy_grants": true, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.243836, "relation_name": "polygon.defi.ez_lending_liquidations", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta={\n 'database_tags':{\n 'table': {\n 'PURPOSE': 'LENDING, LIQUIDATIONS'\n }\n }\n },\n tags = ['gold','defi','lending','curated','ez']\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n platform,\n liquidator,\n borrower,\n protocol_market,\n collateral_token,\n collateral_token_symbol,\n liquidated_amount_unadj,\n liquidated_amount,\n liquidated_amount_usd,\n liquidated_amount_unadj as amount_unadj,\n liquidated_amount as amount,\n liquidated_amount_usd as amount_usd,\n debt_token,\n debt_token_symbol,\n repaid_amount_unadj,\n repaid_amount,\n repaid_amount_usd,\n complete_lending_liquidations_id AS ez_lending_liquidations_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n {{ ref('silver_lending__complete_lending_liquidations') }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/gold/defi__ez_lending_liquidations.sql", "compiled": true, "compiled_code": "\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n platform,\n liquidator,\n borrower,\n protocol_market,\n collateral_token,\n collateral_token_symbol,\n liquidated_amount_unadj,\n liquidated_amount,\n liquidated_amount_usd,\n liquidated_amount_unadj as amount_unadj,\n liquidated_amount as amount,\n liquidated_amount_usd as amount_usd,\n debt_token,\n debt_token_symbol,\n repaid_amount_unadj,\n repaid_amount,\n repaid_amount_usd,\n complete_lending_liquidations_id AS ez_lending_liquidations_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n polygon.silver_lending.complete_lending_liquidations", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.defi__ez_lending_flashloans": {"database": "polygon", "schema": "defi", "name": "defi__ez_lending_flashloans", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/gold/defi__ez_lending_flashloans.sql", "original_file_path": "models/curated_package/defi/lending/gold/defi__ez_lending_flashloans.sql", "unique_id": "model.fsc_evm.defi__ez_lending_flashloans", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "gold", "defi__ez_lending_flashloans"], "alias": "ez_lending_flashloans", "checksum": {"name": "sha256", "checksum": "683528a6eebfe2f497e5d6451f945f3c51e7414bbd09e8042c07f555799e9913"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "defi", "lending", "curated", "ez"], "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, FLASHLOANS"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "defi", "lending", "curated", "ez"], "description": "## What\n\nThis table captures flash loan transactions across lending protocols. Flash loans enable borrowing without collateral within a single transaction, provided the loan plus fees are repaid before transaction completion. This advanced DeFi primitive is primarily used for arbitrage, collateral swapping, and liquidations.\n\n## Key Use Cases\n\n- Analyzing arbitrage and MEV activity patterns\n- Tracking flash loan volume and fee revenue\n- Identifying power users and bot activity\n- Monitoring large-scale DeFi operations\n- Understanding cross-protocol composability\n\n## Important Relationships\n\n- Often precedes transactions in DEX tables for arbitrage analysis\n- Links to `ez_lending_liquidations` for liquidation strategies\n- May connect to multiple protocols within single transaction\n- References `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `initiator`: Address that triggered the flash loan\n- `platform`: Lending protocol providing the loan\n- `flashloan_token`/`flashloan_token_symbol`: Borrowed asset\n- `flashloan_amount`/`flashloan_amount_usd`: Loan size\n- `premium_amount`/`premium_amount_usd`: Fee paid\n\n## Sample queries\n\n```sql\n-- Daily flash loan volume and fees\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(*) AS flashloan_count,\n SUM(flashloan_amount_usd) AS total_volume_usd,\n SUM(premium_amount_usd) AS total_fees_usd,\n AVG(premium_amount_usd / NULLIF(flashloan_amount_usd, 0) * 100) AS avg_fee_rate_pct\nFROM .defi.ez_lending_flashloans\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND flashloan_amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 4 DESC;\n\n-- Most flash loaned assets\nSELECT \n flashloan_token_symbol,\n flashloan_token,\n COUNT(*) AS loan_count,\n SUM(flashloan_amount) AS total_amount,\n SUM(flashloan_amount_usd) AS total_volume_usd,\n AVG(flashloan_amount_usd) AS avg_loan_size_usd,\n SUM(premium_amount_usd) AS total_fees_collected\nFROM .defi.ez_lending_flashloans\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND flashloan_token_symbol IS NOT NULL\nGROUP BY 1, 2\nORDER BY 5 DESC\nLIMIT 20;\n\n-- Flash loan user analysis\nWITH flashloan_users AS (\n SELECT \n initiator,\n COUNT(*) AS flashloan_count,\n COUNT(DISTINCT DATE_TRUNC('day', block_timestamp)) AS active_days,\n COUNT(DISTINCT platform) AS protocols_used,\n SUM(flashloan_amount_usd) AS total_borrowed_usd,\n SUM(premium_amount_usd) AS total_fees_paid_usd\n FROM .defi.ez_lending_flashloans\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND flashloan_amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n CASE \n WHEN flashloan_count = 1 THEN 'One-time User'\n WHEN flashloan_count <= 10 THEN 'Occasional User'\n WHEN flashloan_count <= 100 THEN 'Regular User'\n ELSE 'Power User'\n END AS user_category,\n COUNT(*) AS user_count,\n SUM(total_borrowed_usd) AS category_volume_usd,\n AVG(total_fees_paid_usd) AS avg_fees_per_user\nFROM flashloan_users\nGROUP BY 1\nORDER BY 3 DESC;\n\n-- Large flash loans (potential arbitrage/liquidations)\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n initiator,\n target,\n flashloan_token_symbol,\n flashloan_amount_usd,\n premium_amount_usd,\n premium_amount_usd / NULLIF(flashloan_amount_usd, 0) * 100 AS fee_rate_pct\nFROM .defi.ez_lending_flashloans\nWHERE flashloan_amount_usd > 1000000\n AND block_timestamp >= CURRENT_DATE - 1\nORDER BY flashloan_amount_usd DESC;\n\n-- Wallet-specific flash loan analysis\nSELECT \n initiator,\n platform,\n flashloan_token_symbol,\n COUNT(*) AS flashloan_count,\n SUM(flashloan_amount_usd) AS total_borrowed_usd,\n SUM(premium_amount_usd) AS total_fees_paid_usd,\n AVG(premium_amount_usd / NULLIF(flashloan_amount_usd, 0) * 100) AS avg_fee_rate_pct,\n MIN(block_timestamp) AS first_flashloan,\n MAX(block_timestamp) AS last_flashloan,\n COUNT(DISTINCT DATE_TRUNC('day', block_timestamp)) AS active_days\nFROM .defi.ez_lending_flashloans\nWHERE initiator = LOWER('')\n AND block_timestamp >= CURRENT_DATE - 30\n AND flashloan_amount_usd IS NOT NULL\nGROUP BY 1, 2, 3\nORDER BY total_borrowed_usd DESC;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "The lending protocol where the transaction occurred.\n\nExample: 'aave'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INITIATOR": {"name": "INITIATOR", "description": "The address that triggered the flash loan execution.\n\nExample: '0x7a250d5630b4cf539739df2c5dacb4c659f2488d'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TARGET": {"name": "TARGET", "description": "The contract address that receives and executes the flash loan logic.\n\nExample: '0x1111111254fb6c44bac0bed2854e76f90643097d'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL_MARKET": {"name": "PROTOCOL_MARKET", "description": "The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FLASHLOAN_TOKEN": {"name": "FLASHLOAN_TOKEN", "description": "The contract address of the token borrowed in the flash loan.\n\nExample: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n\nThis column will be deprecated October 13th, please update to token_address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FLASHLOAN_TOKEN_SYMBOL": {"name": "FLASHLOAN_TOKEN_SYMBOL", "description": "The symbol of the token borrowed in the flash loan.\n\nExample: 'WETH'\n\nThis column will be deprecated October 13th, please update to token_symbol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FLASHLOAN_AMOUNT_UNADJ": {"name": "FLASHLOAN_AMOUNT_UNADJ", "description": "The raw amount of tokens borrowed without decimal adjustment.\n\nExample: 1000000000000000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FLASHLOAN_AMOUNT": {"name": "FLASHLOAN_AMOUNT", "description": "The decimal-adjusted amount of tokens borrowed in the flash loan.\n\nExample: 1.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FLASHLOAN_AMOUNT_USD": {"name": "FLASHLOAN_AMOUNT_USD", "description": "The USD value of assets borrowed in a flash loan.\n\nExample: 1000000.50", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PREMIUM_AMOUNT_UNADJ": {"name": "PREMIUM_AMOUNT_UNADJ", "description": "The raw fee amount charged for the flash loan.\n\nExample: 900000000000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PREMIUM_AMOUNT": {"name": "PREMIUM_AMOUNT", "description": "The decimal-adjusted fee paid for the flash loan.\n\nExample: 0.0009", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PREMIUM_AMOUNT_USD": {"name": "PREMIUM_AMOUNT_USD", "description": "The USD value of the flash loan fee.\n\nExample: 0.90", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_LENDING_FLASHLOANS_ID": {"name": "EZ_LENDING_FLASHLOANS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, FLASHLOANS"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/lending/gold/defi__ez_lending_flashloans.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "persist_docs": {"relation": true, "columns": true}, "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, FLASHLOANS"}}}, "tags": ["gold", "defi", "lending", "curated", "ez"], "copy_grants": true, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.2481985, "relation_name": "polygon.defi.ez_lending_flashloans", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta={\n 'database_tags':{\n 'table': {\n 'PURPOSE': 'LENDING, FLASHLOANS'\n }\n }\n },\n tags = ['gold','defi','lending','curated','ez']\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n platform,\n initiator,\n target,\n protocol_market,\n token_address,\n token_symbol,\n token_address as flashloan_token,\n token_symbol as flashloan_token_symbol,\n flashloan_amount_unadj,\n flashloan_amount,\n flashloan_amount_usd,\n premium_amount_unadj,\n premium_amount,\n premium_amount_usd,\n complete_lending_flashloans_id AS ez_lending_flashloans_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n {{ ref('silver_lending__complete_lending_flashloans') }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/gold/defi__ez_lending_flashloans.sql", "compiled": true, "compiled_code": "\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n platform,\n initiator,\n target,\n protocol_market,\n token_address,\n token_symbol,\n token_address as flashloan_token,\n token_symbol as flashloan_token_symbol,\n flashloan_amount_unadj,\n flashloan_amount,\n flashloan_amount_usd,\n premium_amount_unadj,\n premium_amount,\n premium_amount_usd,\n complete_lending_flashloans_id AS ez_lending_flashloans_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n polygon.silver_lending.complete_lending_flashloans", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.defi__ez_lending_deposits": {"database": "polygon", "schema": "defi", "name": "defi__ez_lending_deposits", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/gold/defi__ez_lending_deposits.sql", "original_file_path": "models/curated_package/defi/lending/gold/defi__ez_lending_deposits.sql", "unique_id": "model.fsc_evm.defi__ez_lending_deposits", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "gold", "defi__ez_lending_deposits"], "alias": "ez_lending_deposits", "checksum": {"name": "sha256", "checksum": "4d0ede7557a67c62843f1216b1520c7f5571e202202e96b4358b9c8ccfa91ef1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "defi", "lending", "curated", "ez"], "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, DEPOSITS"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "defi", "lending", "curated", "ez"], "description": "## What\n\nThis table tracks all deposit transactions across lending protocols on EVM blockchains. Deposits represent users supplying liquidity to lending pools, earning yield while enabling their assets to serve as collateral for borrowing.\n\n## Key Use Cases\n\n- Calculating total value locked (TVL) by protocol\n- Analyzing deposit and withdrawal patterns\n- Tracking user liquidity provision behavior\n- Monitoring asset distribution across protocols\n- Identifying whale depositor activity\n\n## Important Relationships\n\n- Links to `ez_lending_borrows` for collateralization analysis\n- Joins with `ez_lending_withdraws` to track position lifecycle\n- References protocol-specific token contracts (aTokens, cTokens, etc.)\n- Connects to `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `depositor`: Address supplying liquidity\n- `platform`: Lending protocol name\n- `token_address`/`token_symbol`: Deposited asset details\n- `amount`/`amount_usd`: Deposit quantity and USD value\n- `block_timestamp`: When deposit occurred\n\n## Sample queries\n\n```sql\n-- Daily deposit volume and TVL calculation\nWITH daily_metrics AS (\n SELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n SUM(amount_usd) AS daily_deposits_usd,\n COUNT(DISTINCT depositor) AS unique_depositors\n FROM .defi.ez_lending_deposits\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n GROUP BY 1, 2\n),\ndaily_withdrawals AS (\n SELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n SUM(amount_usd) AS daily_withdrawals_usd\n FROM .defi.ez_lending_withdraws\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n GROUP BY 1, 2\n)\nSELECT \n m.date,\n m.platform,\n m.daily_deposits_usd,\n COALESCE(w.daily_withdrawals_usd, 0) AS daily_withdrawals_usd,\n m.daily_deposits_usd - COALESCE(w.daily_withdrawals_usd, 0) AS net_flow_usd,\n SUM(m.daily_deposits_usd - COALESCE(w.daily_withdrawals_usd, 0)) \n OVER (PARTITION BY m.platform ORDER BY m.date) AS cumulative_tvl_estimate\nFROM daily_metrics m\nLEFT JOIN daily_withdrawals w ON m.date = w.date AND m.platform = w.platform\nORDER BY m.date DESC, m.platform;\n\n-- Wallet level deposit and withdraw analysis\nSELECT \n d.depositor,\n d.token_address AS collateral_token_address,\n d.token_symbol AS collateral_token_symbol,\n DATE_TRUNC('week', d.block_timestamp) AS weekly_block_timestamp,\n SUM(d.amount) AS total_deposit_amount,\n SUM(d.amount_usd) AS total_deposit_usd,\n SUM(w.amount) AS total_withdraw_amount,\n SUM(w.amount_usd) AS total_withdraw_usd,\n SUM(d.amount) - SUM(w.amount) AS net_collateral_amount,\n SUM(d.amount_usd) - SUM(w.amount_usd) AS net_collateral_usd\nFROM \n .defi.ez_lending_deposits d\nLEFT JOIN .defi.ez_lending_withdraws w\n ON d.depositor = w.depositor\n AND d.token_address = w.token_address\nWHERE \n d.depositor = LOWER('')\nGROUP BY 1, 2, 3, 4;\n\n-- Depositor behavior analysis\nWITH depositor_activity AS (\n SELECT \n depositor,\n COUNT(DISTINCT platform) AS platforms_used,\n COUNT(DISTINCT token_address) AS unique_assets,\n SUM(amount_usd) AS total_deposited_usd,\n MAX(block_timestamp) AS last_deposit,\n MIN(block_timestamp) AS first_deposit\n FROM .defi.ez_lending_deposits\n WHERE amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n CASE \n WHEN platforms_used = 1 THEN 'Single Protocol'\n WHEN platforms_used = 2 THEN 'Two Protocols'\n ELSE 'Multi-Protocol'\n END AS user_type,\n COUNT(*) AS user_count,\n AVG(total_deposited_usd) AS avg_deposit_size,\n AVG(unique_assets) AS avg_assets_deposited,\n AVG(DATEDIFF('day', first_deposit, last_deposit)) AS avg_active_days\nFROM depositor_activity\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Asset distribution by protocol\nSELECT \n platform,\n token_symbol,\n COUNT(*) AS deposit_transactions,\n SUM(amount) AS total_amount,\n SUM(amount_usd) AS total_usd,\n SUM(amount_usd) * 100.0 / SUM(SUM(amount_usd)) OVER (PARTITION BY platform) AS pct_of_protocol\nFROM .defi.ez_lending_deposits\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n AND token_symbol IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1, 6 DESC;\n\n-- Large deposits monitoring (whale activity)\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n depositor,\n token_symbol,\n amount,\n amount_usd\nFROM .defi.ez_lending_deposits\nWHERE amount_usd > 1000000\n AND block_timestamp >= CURRENT_DATE - 7\nORDER BY amount_usd DESC;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "The lending protocol where the transaction occurred.\n\nExample: 'aave'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL_MARKET": {"name": "PROTOCOL_MARKET", "description": "The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEPOSITOR": {"name": "DEPOSITOR", "description": "The address that supplied liquidity to the lending protocol.\n\nExample: '0x9876543210987654321098765432109876543210'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "The contract address of the underlying asset being lent or borrowed.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_SYMBOL": {"name": "TOKEN_SYMBOL", "description": "The ticker symbol of the asset involved in the lending transaction.\n\nExample: 'USDC'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_UNADJ": {"name": "AMOUNT_UNADJ", "description": "The raw amount of tokens borrowed or repaid without decimal adjustment.\n\nExample: 1000000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "The decimal-adjusted quantity of tokens in the transaction.\n\nExample: 1000.5", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_USD": {"name": "AMOUNT_USD", "description": "The USD value of tokens at transaction time.\n\nExample: 1500.75", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_LENDING_DEPOSITS_ID": {"name": "EZ_LENDING_DEPOSITS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, DEPOSITS"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/lending/gold/defi__ez_lending_deposits.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "persist_docs": {"relation": true, "columns": true}, "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, DEPOSITS"}}}, "tags": ["gold", "defi", "lending", "curated", "ez"], "copy_grants": true, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.2416492, "relation_name": "polygon.defi.ez_lending_deposits", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta={\n 'database_tags':{\n 'table': {\n 'PURPOSE': 'LENDING, DEPOSITS'\n }\n }\n },\n tags = ['gold','defi','lending','curated','ez']\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n platform,\n protocol_market,\n depositor,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n complete_lending_deposits_id AS ez_lending_deposits_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n {{ ref('silver_lending__complete_lending_deposits') }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/gold/defi__ez_lending_deposits.sql", "compiled": true, "compiled_code": "\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n platform,\n protocol_market,\n depositor,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n complete_lending_deposits_id AS ez_lending_deposits_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n polygon.silver_lending.complete_lending_deposits", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.defi__ez_lending_ohlc_rates": {"database": "polygon", "schema": "defi", "name": "defi__ez_lending_ohlc_rates", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/gold/defi__ez_lending_ohlc_rates.sql", "original_file_path": "models/curated_package/defi/lending/gold/defi__ez_lending_ohlc_rates.sql", "unique_id": "model.fsc_evm.defi__ez_lending_ohlc_rates", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "gold", "defi__ez_lending_ohlc_rates"], "alias": "ez_lending_ohlc_rates", "checksum": {"name": "sha256", "checksum": "7560451fdc8dfd25762cf51f4f5beb805a7dffebbda36a00f91593119e4d5692"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "defi", "lending", "curated", "ez", "ohlc", "interest_rates"], "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, OHLC INTEREST RATES"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "defi", "lending", "curated", "ez", "ohlc", "interest_rates"], "description": "", "columns": {}, "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, OHLC INTEREST RATES"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "persist_docs": {"relation": true, "columns": true}, "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, OHLC INTEREST RATES"}}}, "tags": ["gold", "defi", "lending", "curated", "ez", "ohlc", "interest_rates"], "copy_grants": true, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018416.0095859, "relation_name": "polygon.defi.ez_lending_ohlc_rates", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta={\n 'database_tags':{\n 'table': {\n 'PURPOSE': 'LENDING, OHLC INTEREST RATES'\n }\n }\n },\n tags = ['gold','defi','lending','curated','ez','ohlc','interest_rates']\n) }}\n\nSELECT\n day,\n protocol,\n platform,\n version,\n token_address,\n token_symbol,\n supply_rate_open,\n supply_rate_high,\n supply_rate_low,\n supply_rate_close,\n stable_borrow_rate_open,\n stable_borrow_rate_high,\n stable_borrow_rate_low,\n stable_borrow_rate_close,\n variable_borrow_rate_open,\n variable_borrow_rate_high,\n variable_borrow_rate_low,\n variable_borrow_rate_close,\n rate_updates_count,\n blockchain,\n aave_interest_rates_ohlc_id AS ez_ohlc_rates_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n {{ ref('silver_lending__aave_ohlc_interest_rates') }}", "language": "sql", "refs": [{"name": "silver_lending__aave_ohlc_interest_rates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__aave_ohlc_interest_rates"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/gold/defi__ez_lending_ohlc_rates.sql", "compiled": true, "compiled_code": "\n\nSELECT\n day,\n protocol,\n platform,\n version,\n token_address,\n token_symbol,\n supply_rate_open,\n supply_rate_high,\n supply_rate_low,\n supply_rate_close,\n stable_borrow_rate_open,\n stable_borrow_rate_high,\n stable_borrow_rate_low,\n stable_borrow_rate_close,\n variable_borrow_rate_open,\n variable_borrow_rate_high,\n variable_borrow_rate_low,\n variable_borrow_rate_close,\n rate_updates_count,\n blockchain,\n aave_interest_rates_ohlc_id AS ez_ohlc_rates_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n polygon.silver_lending.aave_ohlc_interest_rates", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.defi__ez_lending_withdraws": {"database": "polygon", "schema": "defi", "name": "defi__ez_lending_withdraws", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/gold/defi__ez_lending_withdraws.sql", "original_file_path": "models/curated_package/defi/lending/gold/defi__ez_lending_withdraws.sql", "unique_id": "model.fsc_evm.defi__ez_lending_withdraws", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "gold", "defi__ez_lending_withdraws"], "alias": "ez_lending_withdraws", "checksum": {"name": "sha256", "checksum": "a99156a3204f1596317d03c343816a36af8e4d533b650148e91cbd5fe9da96c9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "defi", "lending", "curated", "ez"], "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, WITHDRAWS"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "defi", "lending", "curated", "ez"], "description": "## What\n\nThis table tracks withdrawal transactions where users remove their supplied liquidity from lending protocols. Withdrawals include the original deposit plus earned interest, subject to available liquidity in the protocol.\n\n## Key Use Cases\n\n- Monitoring liquidity flows and protocol health\n- Detecting potential bank run scenarios\n- Calculating realized yields for depositors\n- Analyzing withdrawal patterns and timing\n- Tracking large withdrawals that may impact rates\n\n## Important Relationships\n\n- Links to `ez_lending_deposits` for position lifecycle\n- Affected by `ez_lending_borrows` (reduces available liquidity)\n- Increased by `ez_lending_repayments` (adds liquidity)\n- References `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `depositor`: Address withdrawing funds\n- `platform`: Lending protocol\n- `token_address`/`token_symbol`: Withdrawn asset\n- `amount`/`amount_usd`: Withdrawal quantity including interest\n- `block_timestamp`: When withdrawal occurred\n\n## Sample queries\n\n```sql\n-- Daily withdrawal patterns\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(*) AS withdrawal_count,\n COUNT(DISTINCT depositor) AS unique_withdrawers,\n SUM(amount_usd) AS total_withdrawn_usd,\n AVG(amount_usd) AS avg_withdrawal_size_usd\nFROM .defi.ez_lending_withdraws\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 5 DESC;\n\n-- Platform liquidity analysis (deposits vs withdrawals)\nWITH platform_deposits AS (\n SELECT \n platform,\n token_address,\n token_symbol,\n COUNT(DISTINCT depositor) AS unique_depositors,\n SUM(amount) AS total_deposited_tokens,\n SUM(amount_usd) AS total_deposited_usd,\n COUNT(*) AS deposit_transactions,\n AVG(amount_usd) AS avg_deposit_size_usd\n FROM .defi.ez_lending_deposits\n WHERE block_timestamp >= CURRENT_DATE - 90\n AND amount IS NOT NULL\n GROUP BY 1, 2, 3\n),\nplatform_withdrawals AS (\n SELECT \n platform,\n token_address,\n token_symbol,\n COUNT(DISTINCT depositor) AS unique_withdrawers,\n SUM(amount) AS total_withdrawn_tokens,\n SUM(amount_usd) AS total_withdrawn_usd,\n COUNT(*) AS withdrawal_transactions,\n AVG(amount_usd) AS avg_withdrawal_size_usd\n FROM .defi.ez_lending_withdraws\n WHERE block_timestamp >= CURRENT_DATE - 90\n AND amount IS NOT NULL\n GROUP BY 1, 2, 3\n)\nSELECT \n COALESCE(d.platform, w.platform) AS platform,\n COALESCE(d.token_address, w.token_address) AS token_address,\n COALESCE(d.token_symbol, w.token_symbol) AS token_symbol,\n d.unique_depositors,\n w.unique_withdrawers,\n d.total_deposited_usd,\n w.total_withdrawn_usd,\n (d.total_deposited_usd - COALESCE(w.total_withdrawn_usd, 0)) AS net_deposits_usd,\n d.deposit_transactions,\n w.withdrawal_transactions,\n d.avg_deposit_size_usd,\n w.avg_withdrawal_size_usd\nFROM platform_deposits d\nFULL OUTER JOIN platform_withdrawals w\n ON d.platform = w.platform\n AND d.token_address = w.token_address\nWHERE COALESCE(d.total_deposited_usd, 0) > 100000\n OR COALESCE(w.total_withdrawn_usd, 0) > 100000\nORDER BY net_deposits_usd DESC;\n\n-- Liquidity stress analysis\nWITH hourly_flows AS (\n SELECT \n DATE_TRUNC('hour', block_timestamp) AS hour,\n platform,\n token_symbol,\n 0 AS deposits_usd,\n SUM(amount_usd) AS withdrawals_usd\n FROM .defi.ez_lending_withdraws\n WHERE block_timestamp >= CURRENT_DATE - 7\n AND amount_usd IS NOT NULL\n GROUP BY 1, 2, 3\n \n UNION ALL\n \n SELECT \n DATE_TRUNC('hour', block_timestamp) AS hour,\n platform,\n token_symbol,\n SUM(amount_usd) AS deposits_usd,\n 0 AS withdrawals_usd\n FROM .defi.ez_lending_deposits\n WHERE block_timestamp >= CURRENT_DATE - 7\n AND amount_usd IS NOT NULL\n GROUP BY 1, 2, 3\n)\nSELECT \n hour,\n platform,\n token_symbol,\n SUM(deposits_usd) AS hourly_deposits,\n SUM(withdrawals_usd) AS hourly_withdrawals,\n SUM(deposits_usd - withdrawals_usd) AS net_flow,\n SUM(SUM(deposits_usd - withdrawals_usd)) OVER (\n PARTITION BY platform, token_symbol \n ORDER BY hour\n ) AS cumulative_flow\nFROM hourly_flows\nGROUP BY 1, 2, 3\nHAVING SUM(withdrawals_usd) > 10000\nORDER BY 1 DESC, 6;\n\n-- Large withdrawals monitoring (potential bank run indicators)\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n depositor,\n token_symbol,\n amount AS withdrawn_tokens,\n amount_usd AS withdrawn_usd,\n LAG(amount_usd) OVER (PARTITION BY platform, token_symbol ORDER BY block_timestamp) AS prev_withdrawal_usd,\n amount_usd / NULLIF(LAG(amount_usd) OVER (PARTITION BY platform, token_symbol ORDER BY block_timestamp), 0) AS size_multiplier\nFROM .defi.ez_lending_withdraws\nWHERE amount_usd > 1000000\n AND block_timestamp >= CURRENT_DATE - 3\nORDER BY withdrawn_usd DESC;\n\n-- Withdrawal timing patterns\nSELECT \n EXTRACT(HOUR FROM block_timestamp) AS hour_of_day,\n COUNT(*) AS withdrawal_count,\n SUM(amount_usd) AS total_withdrawn_usd,\n AVG(amount_usd) AS avg_withdrawal_size\nFROM .defi.ez_lending_withdraws\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\nGROUP BY 1\nORDER BY 1;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "The lending protocol where the transaction occurred.\n\nExample: 'aave'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEPOSITOR": {"name": "DEPOSITOR", "description": "The address that supplied liquidity to the lending protocol.\n\nExample: '0x9876543210987654321098765432109876543210'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL_MARKET": {"name": "PROTOCOL_MARKET", "description": "The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "The contract address of the underlying asset being lent or borrowed.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_SYMBOL": {"name": "TOKEN_SYMBOL", "description": "The ticker symbol of the asset involved in the lending transaction.\n\nExample: 'USDC'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_UNADJ": {"name": "AMOUNT_UNADJ", "description": "The raw amount of tokens borrowed or repaid without decimal adjustment.\n\nExample: 1000000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "The decimal-adjusted quantity of tokens in the transaction.\n\nExample: 1000.5", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_USD": {"name": "AMOUNT_USD", "description": "The USD value of tokens at transaction time.\n\nExample: 1500.75", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_LENDING_WITHDRAWS_ID": {"name": "EZ_LENDING_WITHDRAWS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, WITHDRAWS"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/lending/gold/defi__ez_lending_withdraws.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "persist_docs": {"relation": true, "columns": true}, "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, WITHDRAWS"}}}, "tags": ["gold", "defi", "lending", "curated", "ez"], "copy_grants": true, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.2456377, "relation_name": "polygon.defi.ez_lending_withdraws", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta={\n 'database_tags':{\n 'table': {\n 'PURPOSE': 'LENDING, WITHDRAWS'\n }\n }\n },\n tags = ['gold','defi','lending','curated','ez']\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n platform,\n depositor,\n protocol_market,\n token_address,\n token_symbol,\n amount_unadj,\n amount, \n amount_usd,\n complete_lending_withdraws_id AS ez_lending_withdraws_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n {{ ref('silver_lending__complete_lending_withdraws') }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/gold/defi__ez_lending_withdraws.sql", "compiled": true, "compiled_code": "\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n contract_address,\n event_name,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n platform,\n depositor,\n protocol_market,\n token_address,\n token_symbol,\n amount_unadj,\n amount, \n amount_usd,\n complete_lending_withdraws_id AS ez_lending_withdraws_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n polygon.silver_lending.complete_lending_withdraws", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.defi__ez_lending_repayments": {"database": "polygon", "schema": "defi", "name": "defi__ez_lending_repayments", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/defi/lending/gold/defi__ez_lending_repayments.sql", "original_file_path": "models/curated_package/defi/lending/gold/defi__ez_lending_repayments.sql", "unique_id": "model.fsc_evm.defi__ez_lending_repayments", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "gold", "defi__ez_lending_repayments"], "alias": "ez_lending_repayments", "checksum": {"name": "sha256", "checksum": "61f4440e6da189d62fb4729e88d49d6d09f79abd27155fbe7c8d7d8281d1d368"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "defi", "lending", "curated", "ez"], "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, REPAYMENTS"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "defi", "lending", "curated", "ez"], "description": "## What\n\nThis table contains loan repayment transactions across lending protocols. Repayments reduce or eliminate outstanding debt positions, with amounts including both principal and accrued interest. Understanding repayment patterns helps analyze user behavior and protocol health.\n\n## Key Use Cases\n\n- Tracking loan lifecycle and duration analysis\n- Calculating interest paid on borrowed positions\n- Understanding repayment patterns by user segment\n- Monitoring protocol revenue from interest\n- Analyzing third-party repayment activity\n\n## Important Relationships\n\n- Links to `ez_lending_borrows` for original loan details\n- Connects to `ez_lending_liquidations` (forced repayments)\n- May reference `ez_lending_deposits` for collateral release\n- Uses `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `borrower`: Address with the loan\n- `payer`: Address making the payment (may differ)\n- `platform`: Lending protocol\n- `token_address`/`token_symbol`: Repaid asset\n- `amount`/`amount_usd`: Repayment quantity\n\n## Sample queries\n\n```sql\n-- Daily repayment volume and metrics\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(*) AS repayment_count,\n COUNT(DISTINCT borrower) AS unique_borrowers,\n SUM(amount_usd) AS total_repaid_usd,\n AVG(amount_usd) AS avg_repayment_size_usd\nFROM .defi.ez_lending_repayments\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 5 DESC;\n\n-- Loan duration analysis\nWITH loan_lifecycles AS (\n SELECT \n b.borrower,\n b.platform,\n b.token_symbol,\n b.block_timestamp AS borrow_time,\n MIN(r.block_timestamp) AS first_repayment_time,\n SUM(b.amount_usd) AS borrowed_usd,\n SUM(r.amount_usd) AS total_repaid_usd\n FROM .defi.ez_lending_borrows b\n INNER JOIN .defi.ez_lending_repayments r\n ON b.borrower = r.borrower\n AND b.platform = r.platform\n AND b.token_address = r.token_address\n AND r.block_timestamp > b.block_timestamp\n WHERE b.block_timestamp >= CURRENT_DATE - 90\n AND b.amount_usd IS NOT NULL\n AND r.amount_usd IS NOT NULL\n GROUP BY 1, 2, 3, 4\n)\nSELECT \n platform,\n token_symbol,\n AVG(DATEDIFF('day', borrow_time, first_repayment_time)) AS avg_days_to_first_repayment,\n PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY DATEDIFF('day', borrow_time, first_repayment_time)) AS median_days,\n COUNT(*) AS loan_count,\n AVG(total_repaid_usd / NULLIF(borrowed_usd, 0) - 1) * 100 AS avg_interest_paid_pct\nFROM loan_lifecycles\nGROUP BY 1, 2\nHAVING COUNT(*) > 10\nORDER BY 3;\n\n-- Repayment patterns by user segment\nWITH user_repayment_stats AS (\n SELECT \n borrower,\n COUNT(*) AS repayment_count,\n SUM(amount_usd) AS total_repaid_usd,\n AVG(amount_usd) AS avg_repayment_size,\n COUNT(DISTINCT DATE_TRUNC('month', block_timestamp)) AS active_months,\n COUNT(DISTINCT token_address) AS unique_assets_repaid\n FROM .defi.ez_lending_repayments\n WHERE block_timestamp >= CURRENT_DATE - 180\n AND amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n CASE \n WHEN total_repaid_usd < 1000 THEN 'Micro (<$1K)'\n WHEN total_repaid_usd < 10000 THEN 'Small ($1K-$10K)'\n WHEN total_repaid_usd < 100000 THEN 'Medium ($10K-$100K)'\n WHEN total_repaid_usd < 1000000 THEN 'Large ($100K-$1M)'\n ELSE 'Whale (>$1M)'\n END AS borrower_segment,\n COUNT(*) AS borrower_count,\n AVG(repayment_count) AS avg_repayments_per_user,\n AVG(avg_repayment_size) AS avg_repayment_size,\n AVG(active_months) AS avg_active_months\nFROM user_repayment_stats\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Asset-specific repayment velocity\nSELECT \n token_symbol,\n platform,\n COUNT(*) AS repayment_transactions,\n COUNT(DISTINCT borrower) AS unique_repayers,\n SUM(amount_usd) AS total_usd_repaid,\n AVG(amount_usd) AS avg_repayment_usd,\n SUM(amount_usd) / COUNT(DISTINCT DATE_TRUNC('day', block_timestamp)) AS daily_velocity_usd\nFROM .defi.ez_lending_repayments\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND token_symbol IS NOT NULL\n AND amount_usd IS NOT NULL\nGROUP BY 1, 2\nHAVING COUNT(*) > 50\nORDER BY 8 DESC;\n\n-- Large repayments monitoring\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n borrower,\n payer,\n token_symbol,\n amount_usd,\n CASE WHEN borrower = payer THEN 'Self' ELSE 'Third-party' END AS repayment_type\nFROM .defi.ez_lending_repayments\nWHERE amount_usd > 500000\n AND block_timestamp >= CURRENT_DATE - 7\nORDER BY amount_usd DESC;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_NAME": {"name": "EVENT_NAME", "description": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_INDEX": {"name": "EVENT_INDEX", "description": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FUNCTION_SIGNATURE": {"name": "ORIGIN_FUNCTION_SIGNATURE", "description": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_FROM_ADDRESS": {"name": "ORIGIN_FROM_ADDRESS", "description": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ORIGIN_TO_ADDRESS": {"name": "ORIGIN_TO_ADDRESS", "description": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM": {"name": "PLATFORM", "description": "The lending protocol where the transaction occurred.\n\nExample: 'aave'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PAYER": {"name": "PAYER", "description": "The address that paid the loan or deposit.\n\nExample: '0x5555555555555555555555555555555555555555'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BORROWER": {"name": "BORROWER", "description": "The address that initiated a borrow or repayment transaction.\n\nExample: '0x1234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL_MARKET": {"name": "PROTOCOL_MARKET", "description": "The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "The contract address of the underlying asset being lent or borrowed.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_SYMBOL": {"name": "TOKEN_SYMBOL", "description": "The ticker symbol of the asset involved in the lending transaction.\n\nExample: 'USDC'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_UNADJ": {"name": "AMOUNT_UNADJ", "description": "The raw amount of tokens borrowed or repaid without decimal adjustment.\n\nExample: 1000000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "The decimal-adjusted quantity of tokens in the transaction.\n\nExample: 1000.5", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_USD": {"name": "AMOUNT_USD", "description": "The USD value of tokens at transaction time.\n\nExample: 1500.75", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_LENDING_REPAYMENTS_ID": {"name": "EZ_LENDING_REPAYMENTS_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, REPAYMENTS"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/defi/lending/gold/defi__ez_lending_repayments.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "persist_docs": {"relation": true, "columns": true}, "meta": {"database_tags": {"table": {"PURPOSE": "LENDING, REPAYMENTS"}}}, "tags": ["gold", "defi", "lending", "curated", "ez"], "copy_grants": true, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.2396934, "relation_name": "polygon.defi.ez_lending_repayments", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta={\n 'database_tags':{\n 'table': {\n 'PURPOSE': 'LENDING, REPAYMENTS'\n }\n }\n },\n tags = ['gold','defi','lending','curated','ez']\n) }}\n\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n event_name,\n platform,\n payer,\n borrower,\n protocol_market,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n complete_lending_repayments_id AS ez_lending_repayments_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n {{ ref('silver_lending__complete_lending_repayments') }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/gold/defi__ez_lending_repayments.sql", "compiled": true, "compiled_code": "\n\nSELECT\n block_number,\n block_timestamp,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n tx_hash,\n event_index,\n contract_address,\n event_name,\n platform,\n payer,\n borrower,\n protocol_market,\n token_address,\n token_symbol,\n amount_unadj,\n amount,\n amount_usd,\n complete_lending_repayments_id AS ez_lending_repayments_id,\n inserted_timestamp,\n modified_timestamp\nFROM \n polygon.silver_lending.complete_lending_repayments", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver_stats__core_metrics_hourly": {"database": "polygon", "schema": "silver_stats", "name": "silver_stats__core_metrics_hourly", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/stats/silver/silver_stats__core_metrics_hourly.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.sql", "unique_id": "model.fsc_evm.silver_stats__core_metrics_hourly", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "silver_stats__core_metrics_hourly"], "alias": "core_metrics_hourly", "checksum": {"name": "sha256", "checksum": "20dc35ffe94ada498a4eb6cba1d954a6d760fc9e20e7966d53dbc7f090647ff1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver_stats", "curated", "stats", "daily_test", "phase_4"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_timestamp_hour", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp_hour::DATE"]}, "tags": ["silver_stats", "curated", "stats", "daily_test", "phase_4"], "description": "", "columns": {"BLOCK_TIMESTAMP_HOUR": {"name": "BLOCK_TIMESTAMP_HOUR", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_NUMBER_MIN": {"name": "BLOCK_NUMBER_MIN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_NUMBER_MAX": {"name": "BLOCK_NUMBER_MAX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_COUNT": {"name": "BLOCK_COUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRANSACTION_COUNT": {"name": "TRANSACTION_COUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRANSACTION_COUNT_SUCCESS": {"name": "TRANSACTION_COUNT_SUCCESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRANSACTION_COUNT_FAILED": {"name": "TRANSACTION_COUNT_FAILED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UNIQUE_FROM_COUNT": {"name": "UNIQUE_FROM_COUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UNIQUE_TO_COUNT": {"name": "UNIQUE_TO_COUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_FEES": {"name": "TOTAL_FEES", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "block_timestamp_hour", "cluster_by": ["block_timestamp_hour::DATE"], "tags": ["silver_stats", "curated", "stats", "daily_test", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.2659154, "relation_name": "polygon.silver_stats.core_metrics_hourly", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_timestamp_hour\",\n cluster_by = ['block_timestamp_hour::DATE'],\n tags = ['silver_stats','curated','stats','daily_test','phase_4']\n) }}\n\n{# run incremental timestamp value first then use it as a static value #}\n{% if execute %}\n\n{% if is_incremental() %}\n{% set query %}\nSELECT\n COALESCE(MIN(DATE_TRUNC('hour', block_timestamp)),SYSDATE()) AS block_timestamp_hour\nFROM\n {{ ref('core__fact_transactions') }}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n ) {% endset %}\n {% set min_block_timestamp_hour = run_query(query).columns [0].values() [0] %}\n{% endif %}\n{% endif %}\n\n{# Main query starts here #}\nSELECT\n DATE_TRUNC(\n 'hour',\n block_timestamp\n ) AS block_timestamp_hour,\n MIN(block_number) AS block_number_min,\n MAX(block_number) AS block_number_max,\n COUNT(\n DISTINCT block_number\n ) AS block_count,\n COUNT(\n DISTINCT tx_hash\n ) AS transaction_count,\n COUNT(\n DISTINCT CASE\n WHEN tx_succeeded THEN tx_hash\n END\n ) AS transaction_count_success,\n COUNT(\n DISTINCT CASE\n WHEN NOT tx_succeeded THEN tx_hash\n END\n ) AS transaction_count_failed,\n COUNT(\n DISTINCT from_address\n ) AS unique_from_count,\n COUNT(\n DISTINCT to_address\n ) AS unique_to_count,\n SUM(tx_fee_precise) AS total_fees,\n MAX(modified_timestamp) AS _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['block_timestamp_hour']\n ) }} AS core_metrics_hourly_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref('core__fact_transactions') }}\nWHERE\n block_timestamp_hour < DATE_TRUNC(\n 'hour',\n CURRENT_TIMESTAMP\n )\n\n{% if is_incremental() %}\nAND DATE_TRUNC(\n 'hour',\n block_timestamp\n) >= '{{ min_block_timestamp_hour }}'\n{% endif %}\nGROUP BY\n 1", "language": "sql", "refs": [{"name": "core__fact_transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking", "macro.dbt.run_query"], "nodes": ["model.fsc_evm.core__fact_transactions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_timestamp_hour::DATE\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"incremental_strategy\": \"delete+insert\",\n \"materialized\": \"incremental\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver_stats\",\n \"curated\",\n \"stats\",\n \"daily_test\",\n \"phase_4\"\n ],\n \"unique_key\": \"block_timestamp_hour\"\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = \"block_timestamp_hour\",\n cluster_by = ['block_timestamp_hour::DATE'],\n tags = ['silver_stats','curated','stats','daily_test','phase_4']\n) }}\n\n{# run incremental timestamp value first then use it as a static value #}\n{% if execute %}\n\n{% if is_incremental() %}\n{% set query %}\nSELECT\n COALESCE(MIN(DATE_TRUNC('hour', block_timestamp)),SYSDATE()) AS block_timestamp_hour\nFROM\n {{ ref('core__fact_transactions') }}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n ) {% endset %}\n {% set min_block_timestamp_hour = run_query(query).columns [0].values() [0] %}\n{% endif %}\n{% endif %}\n\n{# Main query starts here #}\nSELECT\n DATE_TRUNC(\n 'hour',\n block_timestamp\n ) AS block_timestamp_hour,\n MIN(block_number) AS block_number_min,\n MAX(block_number) AS block_number_max,\n COUNT(\n DISTINCT block_number\n ) AS block_count,\n COUNT(\n DISTINCT tx_hash\n ) AS transaction_count,\n COUNT(\n DISTINCT CASE\n WHEN tx_succeeded THEN tx_hash\n END\n ) AS transaction_count_success,\n COUNT(\n DISTINCT CASE\n WHEN NOT tx_succeeded THEN tx_hash\n END\n ) AS transaction_count_failed,\n COUNT(\n DISTINCT from_address\n ) AS unique_from_count,\n COUNT(\n DISTINCT to_address\n ) AS unique_to_count,\n SUM(tx_fee_precise) AS total_fees,\n MAX(modified_timestamp) AS _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['block_timestamp_hour']\n ) }} AS core_metrics_hourly_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref('core__fact_transactions') }}\nWHERE\n block_timestamp_hour < DATE_TRUNC(\n 'hour',\n CURRENT_TIMESTAMP\n )\n\n{% if is_incremental() %}\nAND DATE_TRUNC(\n 'hour',\n block_timestamp\n) >= '{{ min_block_timestamp_hour }}'\n{% endif %}\nGROUP BY\n 1\n*/\n\n\n\n\n\n\n\n\n\n \n\n\n\n\nSELECT\n DATE_TRUNC(\n 'hour',\n block_timestamp\n ) AS block_timestamp_hour,\n MIN(block_number) AS block_number_min,\n MAX(block_number) AS block_number_max,\n COUNT(\n DISTINCT block_number\n ) AS block_count,\n COUNT(\n DISTINCT tx_hash\n ) AS transaction_count,\n COUNT(\n DISTINCT CASE\n WHEN tx_succeeded THEN tx_hash\n END\n ) AS transaction_count_success,\n COUNT(\n DISTINCT CASE\n WHEN NOT tx_succeeded THEN tx_hash\n END\n ) AS transaction_count_failed,\n COUNT(\n DISTINCT from_address\n ) AS unique_from_count,\n COUNT(\n DISTINCT to_address\n ) AS unique_to_count,\n SUM(tx_fee_precise) AS total_fees,\n MAX(modified_timestamp) AS _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(block_timestamp_hour as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS core_metrics_hourly_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n polygon.core.fact_transactions\nWHERE\n block_timestamp_hour < DATE_TRUNC(\n 'hour',\n CURRENT_TIMESTAMP\n )\n\n\nAND DATE_TRUNC(\n 'hour',\n block_timestamp\n) >= '2025-11-24 21:09:23.097000'\n\nGROUP BY\n 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.stats__ez_core_metrics_hourly": {"database": "polygon", "schema": "stats", "name": "stats__ez_core_metrics_hourly", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/stats/gold/stats__ez_core_metrics_hourly.sql", "original_file_path": "models/curated_package/stats/gold/stats__ez_core_metrics_hourly.sql", "unique_id": "model.fsc_evm.stats__ez_core_metrics_hourly", "fqn": ["fsc_evm", "curated_package", "stats", "gold", "stats__ez_core_metrics_hourly"], "alias": "ez_core_metrics_hourly", "checksum": {"name": "sha256", "checksum": "ac826b9bcf5e6c56768d3080b0eecc4ab7faa18b4ce9020805c3b2fcb2b37881"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "stats", "curated", "phase_4"], "meta": {"database_tags": {"table": {"PURPOSE": "STATS, METRICS, CORE, HOURLY"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "stats", "curated", "phase_4"], "description": "## What\n\nThis aggregated table provides hourly blockchain metrics for high-level analysis and monitoring. It pre-calculates key statistics from fact_transactions to enable fast querying of network activity, gas usage patterns, and user behavior trends without scanning large transaction tables.\n\n## Key Use Cases\n\n- Network health dashboards and monitoring\n- Gas fee trend analysis and volatility tracking\n- User adoption metrics and activity patterns\n- Blockchain comparison studies across chains\n- Activity anomaly detection and congestion analysis\n- Performance optimization and capacity planning\n- Weekly/monthly growth analysis\n\n## Important Relationships\n\n- **Derived from fact_transactions**: All metrics aggregated from base transaction data\n- **Join with ez_prices_hourly**: For native token price correlation\n- **Compare across chains**: Standardized metrics enable cross-chain analysis\n\n## Commonly-used Fields\n\n- `block_timestamp_hour`: Hour boundary for aggregated metrics\n- `transaction_count`: Total transactions in the hour\n- `transaction_count_success` / `transaction_count_failed`: Success/failure counts\n- `unique_from_count`: Distinct active addresses\n- `total_fees_native` / `total_fees_usd`: Fee totals in native and USD\n- `block_count`: Number of blocks produced\n\n## Sample Queries\n\n**Network Health Dashboard Metrics**\n```sql\n-- 24-hour network health summary\nWITH hourly_stats AS (\n SELECT \n block_timestamp_hour,\n transaction_count,\n transaction_count_success,\n transaction_count_failed,\n ROUND(100.0 * transaction_count_success / NULLIF(transaction_count, 0), 2) AS success_rate,\n total_fees_native,\n total_fees_usd,\n unique_from_count AS active_users,\n block_count,\n ROUND(transaction_count::FLOAT / NULLIF(block_count, 0), 2) AS avg_tx_per_block\n FROM .stats.ez_core_metrics_hourly\n WHERE block_timestamp_hour >= CURRENT_TIMESTAMP - INTERVAL '24 hours'\n)\nSELECT \n COUNT(*) AS hours_of_data,\n SUM(transaction_count) AS total_transactions,\n AVG(success_rate) AS avg_success_rate,\n SUM(total_fees_usd) AS total_fees_usd_24h,\n SUM(active_users) AS unique_active_addresses,\n AVG(avg_tx_per_block) AS avg_tx_per_block_24h,\n MAX(transaction_count) AS peak_hourly_transactions,\n MIN(block_count) AS min_blocks_per_hour,\n MAX(block_count) AS max_blocks_per_hour\nFROM hourly_stats;\n```\n\n**Gas Fee Trends Analysis**\n```sql\n-- Daily average gas fees with volatility\nSELECT \n DATE(block_timestamp_hour) AS date,\n AVG(total_fees_native / NULLIF(transaction_count, 0)) AS avg_fee_per_tx_native,\n AVG(total_fees_usd / NULLIF(transaction_count, 0)) AS avg_fee_per_tx_usd,\n STDDEV(total_fees_usd / NULLIF(transaction_count, 0)) AS fee_volatility_usd,\n MIN(total_fees_usd / NULLIF(transaction_count, 0)) AS min_fee_per_tx_usd,\n MAX(total_fees_usd / NULLIF(transaction_count, 0)) AS max_fee_per_tx_usd,\n SUM(transaction_count) AS daily_transactions,\n SUM(total_fees_usd) AS daily_fees_usd\nFROM .stats.ez_core_metrics_hourly\nWHERE block_timestamp_hour >= CURRENT_DATE - 30\n AND transaction_count > 0\nGROUP BY 1\nORDER BY 1 DESC;\n```\n\n**User Activity Patterns**\n```sql\n-- Hourly activity patterns (UTC)\nSELECT \n EXTRACT(HOUR FROM block_timestamp_hour) AS hour_utc,\n AVG(transaction_count) AS avg_transactions,\n AVG(unique_from_count) AS avg_active_users,\n AVG(unique_to_count) AS avg_unique_recipients,\n AVG(transaction_count::FLOAT / NULLIF(unique_from_count, 0)) AS avg_tx_per_user,\n STDDEV(transaction_count) AS transaction_volatility\nFROM .stats.ez_core_metrics_hourly\nWHERE block_timestamp_hour >= CURRENT_DATE - 7\nGROUP BY 1\nORDER BY 1;\n```\n\n**Network Congestion Detection**\n```sql\n-- Identify high congestion periods\nWITH congestion_metrics AS (\n SELECT \n block_timestamp_hour,\n transaction_count,\n block_count,\n transaction_count::FLOAT / NULLIF(block_count, 0) AS tx_per_block,\n total_fees_usd / NULLIF(transaction_count, 0) AS avg_fee_usd,\n transaction_count_failed::FLOAT / NULLIF(transaction_count, 0) * 100 AS failure_rate\n FROM .stats.ez_core_metrics_hourly\n WHERE block_timestamp_hour >= CURRENT_DATE - 7\n),\npercentiles AS (\n SELECT \n PERCENTILE_CONT(0.9) WITHIN GROUP (ORDER BY tx_per_block) AS p90_tx_per_block,\n PERCENTILE_CONT(0.9) WITHIN GROUP (ORDER BY avg_fee_usd) AS p90_fee,\n PERCENTILE_CONT(0.9) WITHIN GROUP (ORDER BY failure_rate) AS p90_failure_rate\n FROM congestion_metrics\n)\nSELECT \n c.block_timestamp_hour,\n c.tx_per_block,\n c.avg_fee_usd,\n c.failure_rate,\n CASE \n WHEN c.tx_per_block > p.p90_tx_per_block \n AND c.avg_fee_usd > p.p90_fee THEN 'High Congestion'\n WHEN c.failure_rate > p.p90_failure_rate THEN 'Network Issues'\n ELSE 'Normal'\n END AS network_status\nFROM congestion_metrics c\nCROSS JOIN percentiles p\nWHERE c.tx_per_block > p.p90_tx_per_block \n OR c.avg_fee_usd > p.p90_fee\n OR c.failure_rate > p.p90_failure_rate\nORDER BY c.block_timestamp_hour DESC;\n```\n\n**Weekly Growth Metrics**\n```sql\n-- Week-over-week growth analysis\nWITH weekly_stats AS (\n SELECT \n DATE_TRUNC('week', block_timestamp_hour) AS week,\n SUM(transaction_count) AS weekly_transactions,\n COUNT(DISTINCT unique_from_count) AS unique_weekly_users,\n SUM(total_fees_usd) AS weekly_fees_usd,\n AVG(transaction_count_success::FLOAT / NULLIF(transaction_count, 0)) AS avg_success_rate\n FROM .stats.ez_core_metrics_hourly\n WHERE block_timestamp_hour >= CURRENT_DATE - 60\n GROUP BY 1\n)\nSELECT \n week,\n weekly_transactions,\n LAG(weekly_transactions) OVER (ORDER BY week) AS prev_week_transactions,\n ROUND(100.0 * (weekly_transactions - LAG(weekly_transactions) OVER (ORDER BY week)) / \n NULLIF(LAG(weekly_transactions) OVER (ORDER BY week), 0), 2) AS tx_growth_pct,\n unique_weekly_users,\n ROUND(100.0 * (unique_weekly_users - LAG(unique_weekly_users) OVER (ORDER BY week)) / \n NULLIF(LAG(unique_weekly_users) OVER (ORDER BY week), 0), 2) AS user_growth_pct,\n weekly_fees_usd,\n avg_success_rate\nFROM weekly_stats\nORDER BY week DESC;\n```", "columns": {"BLOCK_TIMESTAMP_HOUR": {"name": "BLOCK_TIMESTAMP_HOUR", "description": "The hour boundary (UTC) for which metrics are aggregated. Timestamp truncated to hour boundary.\n\nExample: '2024-01-15 14:00:00.000'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_NUMBER_MIN": {"name": "BLOCK_NUMBER_MIN", "description": "The lowest block number produced within this hour. Used to identify first block and calculate block ranges.\n\nExample: 18750000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_NUMBER_MAX": {"name": "BLOCK_NUMBER_MAX", "description": "The highest block number produced within this hour. Used to identify last block and monitor chain tip progression.\n\nExample: 18750299", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_COUNT": {"name": "BLOCK_COUNT", "description": "Total number of blocks produced in the hour. Calculated as block_number_max - block_number_min + 1.\n\nExample: 300", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRANSACTION_COUNT": {"name": "TRANSACTION_COUNT", "description": "Total number of transactions included in blocks during this hour. Includes both successful and failed transactions.\n\nExample: 125000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRANSACTION_COUNT_SUCCESS": {"name": "TRANSACTION_COUNT_SUCCESS", "description": "Number of transactions that executed successfully in the hour. Used to calculate network reliability.\n\nExample: 118750", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRANSACTION_COUNT_FAILED": {"name": "TRANSACTION_COUNT_FAILED", "description": "Number of transactions that failed or reverted in the hour. Common causes include insufficient gas or contract reverts.\n\nExample: 6250", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UNIQUE_FROM_COUNT": {"name": "UNIQUE_FROM_COUNT", "description": "Count of distinct addresses that initiated transactions in the hour. Represents active users, not cumulative.\n\nExample: 45000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UNIQUE_TO_COUNT": {"name": "UNIQUE_TO_COUNT", "description": "Count of distinct addresses that received transactions in the hour. Includes EOA recipients and contract addresses.\n\nExample: 52000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_FEES_NATIVE": {"name": "TOTAL_FEES_NATIVE", "description": "Sum of all transaction fees paid in the blockchain's native token. May have limited precision due to aggregation.\n\nExample: 125.75", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_FEES_USD": {"name": "TOTAL_FEES_USD", "description": "Sum of all transaction fees paid, converted to USD using hourly native token price. Rounded to 2 decimal places.\n\nExample: 425000.50", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_CORE_METRICS_HOURLY_ID": {"name": "EZ_CORE_METRICS_HOURLY_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "STATS, METRICS, CORE, HOURLY"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/stats/gold/stats__ez_core_metrics_hourly.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "meta": {"database_tags": {"table": {"PURPOSE": "STATS, METRICS, CORE, HOURLY"}}}, "tags": ["gold", "stats", "curated", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.3514678, "relation_name": "polygon.stats.ez_core_metrics_hourly", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'view',\n meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'STATS, METRICS, CORE, HOURLY',\n } } },\n tags = ['gold','stats','curated','phase_4']\n) }}\n\n{# Main query starts here #}\nSELECT\n block_timestamp_hour,\n block_number_min,\n block_number_max,\n block_count,\n transaction_count,\n transaction_count_success,\n transaction_count_failed,\n unique_from_count,\n unique_to_count,\n total_fees AS total_fees_native,\n ROUND(\n total_fees * LAST_VALUE(\n p.price ignore nulls\n ) over (\n ORDER BY\n block_timestamp_hour rows unbounded preceding\n ),\n 2\n ) AS total_fees_usd,\n core_metrics_hourly_id AS ez_core_metrics_hourly_id,\n s.inserted_timestamp AS inserted_timestamp,\n s.modified_timestamp AS modified_timestamp\nFROM\n {{ ref('silver_stats__core_metrics_hourly') }}\n s\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p\n ON s.block_timestamp_hour = p.hour\n AND p.token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}' --Wrapped Native Token Address for target blockchain", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly", "model.fsc_evm.price__ez_prices_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/gold/stats__ez_core_metrics_hourly.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {\n \"database_tags\": {\n \"table\": {\n \"PURPOSE\": \"STATS, METRICS, CORE, HOURLY\"\n }\n }\n },\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"stats\",\n \"curated\",\n \"phase_4\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'view',\n meta ={ 'database_tags':{ 'table':{ 'PURPOSE': 'STATS, METRICS, CORE, HOURLY',\n } } },\n tags = ['gold','stats','curated','phase_4']\n) }}\n\n{# Main query starts here #}\nSELECT\n block_timestamp_hour,\n block_number_min,\n block_number_max,\n block_count,\n transaction_count,\n transaction_count_success,\n transaction_count_failed,\n unique_from_count,\n unique_to_count,\n total_fees AS total_fees_native,\n ROUND(\n total_fees * LAST_VALUE(\n p.price ignore nulls\n ) over (\n ORDER BY\n block_timestamp_hour rows unbounded preceding\n ),\n 2\n ) AS total_fees_usd,\n core_metrics_hourly_id AS ez_core_metrics_hourly_id,\n s.inserted_timestamp AS inserted_timestamp,\n s.modified_timestamp AS modified_timestamp\nFROM\n {{ ref('silver_stats__core_metrics_hourly') }}\n s\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p\n ON s.block_timestamp_hour = p.hour\n AND p.token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}' --Wrapped Native Token Address for target blockchain\n*/\n\n\n\n\n\nSELECT\n block_timestamp_hour,\n block_number_min,\n block_number_max,\n block_count,\n transaction_count,\n transaction_count_success,\n transaction_count_failed,\n unique_from_count,\n unique_to_count,\n total_fees AS total_fees_native,\n ROUND(\n total_fees * LAST_VALUE(\n p.price ignore nulls\n ) over (\n ORDER BY\n block_timestamp_hour rows unbounded preceding\n ),\n 2\n ) AS total_fees_usd,\n core_metrics_hourly_id AS ez_core_metrics_hourly_id,\n s.inserted_timestamp AS inserted_timestamp,\n s.modified_timestamp AS modified_timestamp\nFROM\n polygon.silver_stats.core_metrics_hourly\n s\n LEFT JOIN polygon.price.ez_prices_hourly\n p\n ON s.block_timestamp_hour = p.hour\n AND p.token_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270' --Wrapped Native Token Address for target blockchain", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.chain_stats__ez_address_metrics": {"database": "polygon", "schema": "chain_stats", "name": "chain_stats__ez_address_metrics", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/chain_stats/gold/chain_stats__ez_address_metrics.sql", "original_file_path": "models/curated_package/chain_stats/gold/chain_stats__ez_address_metrics.sql", "unique_id": "model.fsc_evm.chain_stats__ez_address_metrics", "fqn": ["fsc_evm", "curated_package", "chain_stats", "gold", "chain_stats__ez_address_metrics"], "alias": "ez_address_metrics", "checksum": {"name": "sha256", "checksum": "29cdf652dfd92c5af7195a3d68ecf722f773bf33ff274684a3e4716f9fce8c6c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "chain_stats", "curated", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "chain_stats", "curated", "phase_4"], "description": "## What\n\nUser-level aggregated metrics for the indicated EVM blockchain including transaction activity, DeFi interactions, staking behavior, NFT activity, and governance participation. Captures comprehensive on-chain behavior patterns for individual addresses across various protocol categories and activity types.", "columns": {"address": {"name": "address", "description": "Unique address (wallet address) - primary identifier for all aggregated metrics\n\nExample: '0x1234567890abcdef1234567890abcdef12345678'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_complex_txn": {"name": "n_complex_txn", "description": "Number of non-native-transfer transactions initiated by the user + number of bridge transactions", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_contracts": {"name": "n_contracts", "description": "The number of different contracts that the user transacts with", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_days_active": {"name": "n_days_active", "description": "Number of days with initiated transactions + CEX withdrawals + inbound bridge transfers", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_txn": {"name": "n_txn", "description": "Number of transactions + CEX withdrawals + inbound bridge transfers", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_bridge_in": {"name": "n_bridge_in", "description": "Number of inbound bridge transfers", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_bridges": {"name": "n_bridges", "description": "Total number of bridge transactions (both inbound and outbound) executed by this address", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_cex_withdrawals": {"name": "n_cex_withdrawals", "description": "Number of withdrawals from a centralized exchange", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "net_token_accumulate": {"name": "net_token_accumulate", "description": "Number of token transfers received / (number of token transfers received + number of token transfers sent)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_other_defi": {"name": "n_other_defi", "description": "Any non-swap, non-LP transactions with events like borrow, lend, etc.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_lp_adds": {"name": "n_lp_adds", "description": "Number of non-swap transfers to a liquidity pool", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_lp_pools": {"name": "n_lp_pools", "description": "Number of unique liquidity pools this address has provided liquidity to", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_swap_tx": {"name": "n_swap_tx", "description": "Number of swaps", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_swaps": {"name": "n_swaps", "description": "Total number of individual swap operations (may differ from n_swap_tx if transactions contain multiple swaps)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_tokens_traded": {"name": "n_tokens_traded", "description": "Number of distinct tokens swapped", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_nft_collections": {"name": "n_nft_collections", "description": "Number of NFT contracts traded", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_nft_mints": {"name": "n_nft_mints", "description": "Number of NFTs minted", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_nft_buys": {"name": "n_nft_buys", "description": "Number of buys of any NFTs", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_nft_ids": {"name": "n_nft_ids", "description": "Number of distinct NFTs bought or sold", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_nft_lists": {"name": "n_nft_lists", "description": "Number of NFTs listed", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_votes": {"name": "n_votes", "description": "Number of staking transactions (liquid stake or delegation)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_stake_tx": {"name": "n_stake_tx", "description": "Number of staking transactions (liquid stake or delegation)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_restakes": {"name": "n_restakes", "description": "Number of restakes", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_validators": {"name": "n_validators", "description": "Number of validators staked to OR liquid stake providers", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "net_stake_accumulate": {"name": "net_stake_accumulate", "description": "Number of stakes / (number of stakes + number of unstakes)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/chain_stats/gold/chain_stats__ez_address_metrics.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["gold", "chain_stats", "curated", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.3757017, "relation_name": "polygon.chain_stats.ez_address_metrics", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'view',\n tags = ['gold','chain_stats','curated','phase_4']\n) }}\n\nSELECT\n *\nFROM\n crosschain.chain_stats.ez_{{ vars.GLOBAL_PROJECT_NAME }}_address_metrics", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/chain_stats/gold/chain_stats__ez_address_metrics.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"chain_stats\",\n \"curated\",\n \"phase_4\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'view',\n tags = ['gold','chain_stats','curated','phase_4']\n) }}\n\nSELECT\n *\nFROM\n crosschain.chain_stats.ez_{{ vars.GLOBAL_PROJECT_NAME }}_address_metrics\n*/\n\n\n\n\nSELECT\n *\nFROM\n crosschain.chain_stats.ez_polygon_address_metrics", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.chain_stats__ez_allowlist": {"database": "polygon", "schema": "chain_stats", "name": "chain_stats__ez_allowlist", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/chain_stats/gold/chain_stats__ez_allowlist.sql", "original_file_path": "models/curated_package/chain_stats/gold/chain_stats__ez_allowlist.sql", "unique_id": "model.fsc_evm.chain_stats__ez_allowlist", "fqn": ["fsc_evm", "curated_package", "chain_stats", "gold", "chain_stats__ez_allowlist"], "alias": "ez_allowlist", "checksum": {"name": "sha256", "checksum": "11130fe88c9013f310e785f60be69780b48c1dbaa9ebf17035c5206694799b4b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "chain_stats", "curated", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "chain_stats", "curated", "phase_4"], "description": "## What\n\nVerified tokens for the indicated EVM blockchain. Appended with a tracks asset column that indicates ETH, BTC, USD, or is an alt coin", "columns": {"blockchain": {"name": "blockchain", "description": "The name of the blockchain\n\nExample: 'Arbitrum'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "The symbol of the token\n\nExample: 'ETH', 'BTC', 'USDC'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tracks_asset": {"name": "tracks_asset", "description": "The asset that the token tracks, which can be ETH, BTC, USD, or an alt token. This is used to indicate the primary asset that the token is associated with\n\nExample: 'ETH', 'BTC', 'USD'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/chain_stats/gold/chain_stats__ez_allowlist.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["gold", "chain_stats", "curated", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.3532138, "relation_name": "polygon.chain_stats.ez_allowlist", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'view',\n tags = ['gold','chain_stats','curated','phase_4']\n) }}\n\nSELECT\n *\nFROM\n crosschain.chain_stats.ez_{{ vars.GLOBAL_PROJECT_NAME }}_allowlist", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/chain_stats/gold/chain_stats__ez_allowlist.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"chain_stats\",\n \"curated\",\n \"phase_4\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'view',\n tags = ['gold','chain_stats','curated','phase_4']\n) }}\n\nSELECT\n *\nFROM\n crosschain.chain_stats.ez_{{ vars.GLOBAL_PROJECT_NAME }}_allowlist\n*/\n\n\n\n\nSELECT\n *\nFROM\n crosschain.chain_stats.ez_polygon_allowlist", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.chain_stats__ez_protocol_metrics": {"database": "polygon", "schema": "chain_stats", "name": "chain_stats__ez_protocol_metrics", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/chain_stats/gold/chain_stats__ez_protocol_metrics.sql", "original_file_path": "models/curated_package/chain_stats/gold/chain_stats__ez_protocol_metrics.sql", "unique_id": "model.fsc_evm.chain_stats__ez_protocol_metrics", "fqn": ["fsc_evm", "curated_package", "chain_stats", "gold", "chain_stats__ez_protocol_metrics"], "alias": "ez_protocol_metrics", "checksum": {"name": "sha256", "checksum": "3aa33f595b38cdc8047baacbe641e436e03d7a8fcef46b35254ff266ab0b0ed8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "chain_stats", "curated", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "chain_stats", "curated", "phase_4"], "description": "## What\n\nDaily aggregated protocol-level metrics for the indicated EVM blockchain including user activity, transaction counts, and token flow data. Combines protocol interaction data with Flipside scoring to distinguish between total activity and quality user activity (Flipside score >= 4). Metrics track inflows, outflows, and user engagement at the protocol level.", "columns": {"day_": {"name": "day_", "description": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "protocol": {"name": "protocol", "description": "Protocol names including versioning information (e.g. Uniswap v2, v3, etc.). Note: protocol names may not always match protocol names in other tables like dex_volume", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_users": {"name": "n_users", "description": "Number of unique addresses submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_quality_users": {"name": "n_quality_users", "description": "Number of unique quality addresses with Flipside score >= 4 submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_transactions": {"name": "n_transactions", "description": "Number of unique transactions that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "n_quality_transactions": {"name": "n_quality_transactions", "description": "Number of unique transactions by addresses with Flipside score >= 4 that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "usd_inflows": {"name": "usd_inflows", "description": "USD value of tokens sent INTO this protocol from all other addresses/protocols/contracts (excludes transfers within the same protocol)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "usd_outflows": {"name": "usd_outflows", "description": "USD value of tokens sent FROM this protocol to all other addresses/protocols/contracts (excludes transfers within the same protocol)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "net_usd_inflow": {"name": "net_usd_inflow", "description": "USD inflows minus outflows. Note: Price effects may cause net USD and token-level net changes to differ in direction (rare but possible with large, fast price changes)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gross_usd_volume": {"name": "gross_usd_volume", "description": "Total USD volume calculated as inflows plus outflows", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quality_usd_inflows": {"name": "quality_usd_inflows", "description": "USD value of token inflows from quality addresses with Flipside score >= 4", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quality_usd_outflows": {"name": "quality_usd_outflows", "description": "USD value of token outflows to quality addresses with Flipside score >= 4", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quality_net_usd": {"name": "quality_net_usd", "description": "Quality USD inflows minus quality USD outflows. Price effects may apply similar to net_usd_inflow", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quality_gross_usd": {"name": "quality_gross_usd", "description": "Total quality USD volume calculated as quality inflows plus quality outflows", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/chain_stats/gold/chain_stats__ez_protocol_metrics.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["gold", "chain_stats", "curated", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.380777, "relation_name": "polygon.chain_stats.ez_protocol_metrics", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'view',\n tags = ['gold','chain_stats','curated','phase_4']\n) }}\n\nSELECT\n *\nFROM\n crosschain.chain_stats.ez_{{ vars.GLOBAL_PROJECT_NAME }}_protocol_metrics", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/chain_stats/gold/chain_stats__ez_protocol_metrics.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"chain_stats\",\n \"curated\",\n \"phase_4\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'view',\n tags = ['gold','chain_stats','curated','phase_4']\n) }}\n\nSELECT\n *\nFROM\n crosschain.chain_stats.ez_{{ vars.GLOBAL_PROJECT_NAME }}_protocol_metrics\n*/\n\n\n\n\nSELECT\n *\nFROM\n crosschain.chain_stats.ez_polygon_protocol_metrics", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.chain_stats__ez_metrics_daily": {"database": "polygon", "schema": "chain_stats", "name": "chain_stats__ez_metrics_daily", "resource_type": "model", "package_name": "fsc_evm", "path": "curated_package/chain_stats/gold/chain_stats__ez_metrics_daily.sql", "original_file_path": "models/curated_package/chain_stats/gold/chain_stats__ez_metrics_daily.sql", "unique_id": "model.fsc_evm.chain_stats__ez_metrics_daily", "fqn": ["fsc_evm", "curated_package", "chain_stats", "gold", "chain_stats__ez_metrics_daily"], "alias": "ez_metrics_daily", "checksum": {"name": "sha256", "checksum": "219119d89593c82f739bc1b4d3030fcabcec1286555cb6e169ec92357b32569e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "chain_stats", "curated", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["gold", "chain_stats", "curated", "phase_4"], "description": "## What\n\nDaily aggregated metrics for the indicated EVM blockchain including transaction activity, fees, DEX volumes, bridge flows, CEX flows, and TVL data. All metrics are calculated at the daily level (YYYY-MM-DD format) and include both total activity and quality user activity (Flipside score >= 4).", "columns": {"day_": {"name": "day_", "description": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_users_count": {"name": "active_users_count", "description": "Number of origin_from_address (Externally Owned Accounts EOAs) that submitted a transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_quality_users_count": {"name": "active_quality_users_count", "description": "Number of EOAs with a Flipside score of 4 or higher that submitted a transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_count": {"name": "transaction_count", "description": "Number of transactions submitted by any origin_from_address (EOA)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quality_transaction_count": {"name": "quality_transaction_count", "description": "Number of transactions submitted by EOAs with a Flipside score of 4 or higher", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_fees": {"name": "total_fees", "description": "Total transaction fees paid, denominated in Ether (ETH)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_fees_usd": {"name": "total_fees_usd", "description": "USD denominated total transaction fees paid (converting ETH to USD via ETH price)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quality_total_fees": {"name": "quality_total_fees", "description": "Total transaction fees paid by EOAs with a Flipside score of 4 or higher, denominated in Ether (ETH)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quality_total_fees_usd": {"name": "quality_total_fees_usd", "description": "USD denominated total transaction fees paid by EOAs with a Flipside score of 4 or higher (converting ETH to USD via ETH price)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stablecoin_transfer_volume_usd": {"name": "stablecoin_transfer_volume_usd", "description": "Value of all stablecoin transfers for any reason (USD)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "in_unit_total_transfer_volume": {"name": "in_unit_total_transfer_volume", "description": "Value of all token transfers of any token for any reason, denominated in ETH to reduce price effects (token price changes can be different than fundamental activity changes)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_transfer_volume_usd": {"name": "total_transfer_volume_usd", "description": "Value of all token transfers for any reason (direct, swap, liquidity deposit, staking, etc.), denominated in USD accepting price effects", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "in_unit_quality_total_transfer_volume": {"name": "in_unit_quality_total_transfer_volume", "description": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in ETH", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "quality_total_transfer_volume_usd": {"name": "quality_total_transfer_volume_usd", "description": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in USD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cex_withdrawal_volume_usd": {"name": "cex_withdrawal_volume_usd", "description": "Value of central exchange token withdrawals (USD)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cex_withdrawal_tx_count": {"name": "cex_withdrawal_tx_count", "description": "Number of central exchange token withdrawal transactions", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cex_unique_withdrawing_addresses": {"name": "cex_unique_withdrawing_addresses", "description": "Number of unique addresses that withdrew from a central exchange", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cex_deposit_volume_usd": {"name": "cex_deposit_volume_usd", "description": "Value of central exchange token deposits (USD)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cex_deposit_tx_count": {"name": "cex_deposit_tx_count", "description": "Number of central exchange token deposit transactions", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cex_unique_depositing_addresses": {"name": "cex_unique_depositing_addresses", "description": "Number of unique addresses that deposited to a central exchange", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cex_net_flow_usd": {"name": "cex_net_flow_usd", "description": "Net CEX flow (withdrawal_volume_usd - deposit_volume_usd). Note that if activity and price are correlated, this value can be negative even if more tokens are withdrawn than deposited", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chain_gross_dex_volume_usd": {"name": "chain_gross_dex_volume_usd", "description": "USD value of token sell volume on Decentralized Exchanges (DEXs) protocols", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chain_swap_count": {"name": "chain_swap_count", "description": "Number of swap transactions on Decentralized Exchanges (DEXs) protocols", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chain_swapper_count": {"name": "chain_swapper_count", "description": "Number of unique EOAs that have submitted a swap transaction on Decentralized Exchanges (DEXs) protocols", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tvl_usd": {"name": "tvl_usd", "description": "Total Value Locked - USD value of tokens locked in smart contracts. INCLUDES borrowed tokens, liquid staking, and staking", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "in_unit_tvl": {"name": "in_unit_tvl", "description": "Total Value Locked in ETH denominated terms to reduce price effects", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bridge_inbound_volume_usd": {"name": "bridge_inbound_volume_usd", "description": "Value of bridge inflows, denominated in USD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bridge_inbound_addresses": {"name": "bridge_inbound_addresses", "description": "Number of unique addresses receiving a bridge inflow", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bridge_inbound_tx_count": {"name": "bridge_inbound_tx_count", "description": "Number of bridge inflow transactions", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bridge_outbound_volume_usd": {"name": "bridge_outbound_volume_usd", "description": "Value of bridge outflows, denominated in USD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bridge_outbound_addresses": {"name": "bridge_outbound_addresses", "description": "Number of unique addresses sending a bridge outflow", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bridge_outbound_tx_count": {"name": "bridge_outbound_tx_count", "description": "Number of bridge outflow transactions", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bridge_gross_volume_usd": {"name": "bridge_gross_volume_usd", "description": "Value of bridge outflows, denominated in USD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bridge_net_inbound_usd": {"name": "bridge_net_inbound_usd", "description": "Value of bridge inflows minus outflows, denominated in USD. Note that if activity and price are correlated, this value can be negative even if more tokens are brought onto chain than off", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/curated_package/chain_stats/gold/chain_stats__ez_metrics_daily.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["gold", "chain_stats", "curated", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.36616, "relation_name": "polygon.chain_stats.ez_metrics_daily", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'view',\n tags = ['gold','chain_stats','curated','phase_4']\n) }}\n\nSELECT\n *\nFROM\n crosschain.chain_stats.ez_{{ vars.GLOBAL_PROJECT_NAME }}_metrics_daily", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/chain_stats/gold/chain_stats__ez_metrics_daily.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"chain_stats\",\n \"curated\",\n \"phase_4\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config(\n materialized = 'view',\n tags = ['gold','chain_stats','curated','phase_4']\n) }}\n\nSELECT\n *\nFROM\n crosschain.chain_stats.ez_{{ vars.GLOBAL_PROJECT_NAME }}_metrics_daily\n*/\n\n\n\n\nSELECT\n *\nFROM\n crosschain.chain_stats.ez_polygon_metrics_daily", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__balances_erc20_daily": {"database": "polygon", "schema": "silver", "name": "silver__balances_erc20_daily", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/erc20/silver/silver__balances_erc20_daily.sql", "original_file_path": "models/balances_package/erc20/silver/silver__balances_erc20_daily.sql", "unique_id": "model.fsc_evm.silver__balances_erc20_daily", "fqn": ["fsc_evm", "balances_package", "erc20", "silver", "silver__balances_erc20_daily"], "alias": "balances_erc20_daily", "checksum": {"name": "sha256", "checksum": "c24bb61f978d77c30cb82f3d97c07e0b4d572a9fc28dc2ca8e43b2de727beba7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "balances", "erc20", "heal", "phase_4"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ unverify_balances() }}", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "balances_erc20_daily_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_date"], "incremental_predicates": ["dynamic_range", "block_number"], "merge_exclude_columns": ["inserted_timestamp"]}, "tags": ["silver", "balances", "erc20", "heal", "phase_4"], "description": "", "columns": {"BLOCK_DATE": {"name": "BLOCK_DATE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCE_HEX": {"name": "BALANCE_HEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCES_ERC20_DAILY_ID": {"name": "BALANCES_ERC20_DAILY_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/erc20/silver/silver__balances_erc20_daily.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "balances_erc20_daily_id", "cluster_by": ["block_date"], "incremental_predicates": ["dynamic_range", "block_number"], "merge_exclude_columns": ["inserted_timestamp"], "full_refresh": false, "tags": ["silver", "balances", "erc20", "heal", "phase_4"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018442.382757, "relation_name": "polygon.silver.balances_erc20_daily", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze__balances_erc20') }}\n-- depends_on: {{ ref('silver__balances_erc20_override') }}\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n unique_key = 'balances_erc20_daily_id',\n cluster_by = ['block_date'],\n incremental_predicates = [\"dynamic_range\", \"block_number\"],\n merge_exclude_columns = [\"inserted_timestamp\"],\n post_hook = \"{{ unverify_balances() }}\",\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','balances','erc20','heal','phase_4']\n) }}\n\nSELECT\n VALUE :\"BLOCK_NUMBER\" :: NUMBER AS block_number,\n (\n VALUE :\"BLOCK_DATE_UNIX\" :: TIMESTAMP\n ) :: DATE AS block_date,\n VALUE :\"ADDRESS\" :: STRING AS address,\n VALUE :\"CONTRACT_ADDRESS\" :: STRING AS contract_address,\n DATA :result :: STRING AS balance_hex,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['block_date','address','contract_address']\n ) }} AS balances_erc20_daily_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n\n{% if is_incremental() %}\n{{ ref('bronze__balances_erc20') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01')\n FROM\n {{ this }}\n )\n AND DATA :result :: STRING <> '0x'\n{% else %}\n {{ ref('bronze__balances_erc20_fr') }}\nWHERE\n DATA :result :: STRING <> '0x'\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY balances_erc20_daily_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__balances_erc20", "package": null, "version": null}, {"name": "silver__balances_erc20_override", "package": null, "version": null}, {"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "bronze__balances_erc20_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.unverify_balances", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__balances_erc20", "seed.fsc_evm.silver__balances_erc20_override", "model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.bronze__balances_erc20_fr"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/silver/silver__balances_erc20_daily.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_date\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"dynamic_range\",\n \"block_number\"\n ],\n \"materialized\": \"incremental\",\n \"merge_exclude_columns\": [\n \"inserted_timestamp\"\n ],\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ unverify_balances() }}\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"balances\",\n \"erc20\",\n \"heal\",\n \"phase_4\"\n ],\n \"unique_key\": \"balances_erc20_daily_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze__balances_erc20') }}\n-- depends_on: {{ ref('silver__balances_erc20_override') }}\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n unique_key = 'balances_erc20_daily_id',\n cluster_by = ['block_date'],\n incremental_predicates = [\"dynamic_range\", \"block_number\"],\n merge_exclude_columns = [\"inserted_timestamp\"],\n post_hook = \"{{ unverify_balances() }}\",\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','balances','erc20','heal','phase_4']\n) }}\n\nSELECT\n VALUE :\"BLOCK_NUMBER\" :: NUMBER AS block_number,\n (\n VALUE :\"BLOCK_DATE_UNIX\" :: TIMESTAMP\n ) :: DATE AS block_date,\n VALUE :\"ADDRESS\" :: STRING AS address,\n VALUE :\"CONTRACT_ADDRESS\" :: STRING AS contract_address,\n DATA :result :: STRING AS balance_hex,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['block_date','address','contract_address']\n ) }} AS balances_erc20_daily_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n\n{% if is_incremental() %}\n{{ ref('bronze__balances_erc20') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01')\n FROM\n {{ this }}\n )\n AND DATA :result :: STRING <> '0x'\n{% else %}\n {{ ref('bronze__balances_erc20_fr') }}\nWHERE\n DATA :result :: STRING <> '0x'\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY balances_erc20_daily_id\nORDER BY\n _inserted_timestamp DESC)) = 1\n*/\n\n-- depends_on: polygon.bronze.balances_erc20\n-- depends_on: polygon.silver.balances_erc20_override\n-- depends_on: polygon.price.ez_asset_metadata\n\n\nSELECT\n VALUE :\"BLOCK_NUMBER\" :: NUMBER AS block_number,\n (\n VALUE :\"BLOCK_DATE_UNIX\" :: TIMESTAMP\n ) :: DATE AS block_date,\n VALUE :\"ADDRESS\" :: STRING AS address,\n VALUE :\"CONTRACT_ADDRESS\" :: STRING AS contract_address,\n DATA :result :: STRING AS balance_hex,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(block_date as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(address as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(contract_address as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS balances_erc20_daily_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n\n\npolygon.bronze.balances_erc20\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01')\n FROM\n polygon.silver.balances_erc20_daily\n )\n AND DATA :result :: STRING <> '0x'\n\n\nqualify(ROW_NUMBER() over (PARTITION BY balances_erc20_daily_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__balances_erc20_daily_records": {"database": "polygon", "schema": "streamline", "name": "streamline__balances_erc20_daily_records", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/erc20/streamline/streamline__balances_erc20_daily_records.sql", "original_file_path": "models/balances_package/erc20/streamline/streamline__balances_erc20_daily_records.sql", "unique_id": "model.fsc_evm.streamline__balances_erc20_daily_records", "fqn": ["fsc_evm", "balances_package", "erc20", "streamline", "streamline__balances_erc20_daily_records"], "alias": "balances_erc20_daily_records", "checksum": {"name": "sha256", "checksum": "b9b684f9047536edf0345afc82d5d05662186dadb4448d6e8225e2cca1c0c806"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "balances", "records", "erc20", "heal", "phase_4"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ unverify_balances() }}", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "balances_erc20_daily_records_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "block_date"}, "tags": ["streamline", "balances", "records", "erc20", "heal", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "balances_erc20_daily_records_id", "cluster_by": "block_date", "full_refresh": false, "tags": ["streamline", "balances", "records", "erc20", "heal", "phase_4"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018418.686834, "relation_name": "polygon.streamline.balances_erc20_daily_records", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('silver__balances_erc20_override') }}\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"incremental\",\n unique_key = \"balances_erc20_daily_records_id\",\n cluster_by = \"block_date\",\n post_hook = '{{ unverify_balances() }}',\n full_refresh = vars.GLOBAL_STREAMLINE_FR_ENABLED,\n tags = ['streamline','balances','records','erc20','heal','phase_4']\n) }}\n--intended to run on an on-going basis\n\nWITH verified_contracts AS (\n SELECT\n DISTINCT token_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n is_verified\n AND token_address IS NOT NULL\n AND token_address NOT IN (\n SELECT contract_address\n FROM {{ ref('silver__balances_erc20_override') }}\n WHERE blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n )\n),\n{% if is_incremental() and var('HEAL_MODEL',false) %}\nnewly_verified_contracts AS (\n SELECT\n DISTINCT token_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n IFNULL(\n is_verified_modified_timestamp,\n '1970-01-01' :: TIMESTAMP\n ) > DATEADD(\n 'day',\n -8,\n (\n SELECT\n MAX(modified_timestamp) :: DATE\n FROM\n {{ this }}\n )\n )\n AND token_address NOT IN (\n SELECT contract_address\n FROM {{ ref('silver__balances_erc20_override') }}\n WHERE blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n )\n),\nnewly_verified_logs AS (\n SELECT\n block_number,\n block_timestamp,\n contract_address,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS address1,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 42)) AS address2\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n (\n topics [0] :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n OR (\n topics [0] :: STRING = '0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65'\n AND contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n )\n OR (\n topics [0] :: STRING = '0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c'\n AND contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n )\n )\n AND contract_address IN (\n SELECT\n token_address\n FROM\n newly_verified_contracts\n )\n),\n{% endif %}\nlogs AS (\n SELECT\n block_number,\n block_timestamp,\n contract_address,\n CONCAT('0x', SUBSTR(topics [1] :: STRING, 27, 42)) AS address1,\n CONCAT('0x', SUBSTR(topics [2] :: STRING, 27, 42)) AS address2\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n (\n topics [0] :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n OR (\n topics [0] :: STRING = '0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65'\n AND contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n )\n OR (\n topics [0] :: STRING = '0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c'\n AND contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n )\n )\n AND contract_address IN (\n SELECT\n token_address\n FROM\n verified_contracts\n )\n {% if is_incremental() %}\n AND modified_timestamp >= (\n SELECT MAX(modified_timestamp) - INTERVAL '72 hours'\n FROM {{ this }}\n )\n {% endif %}\n),\nall_logs AS (\n SELECT *\n FROM logs\n {% if is_incremental() and var('HEAL_MODEL',false) %}\n UNION\n SELECT *\n FROM newly_verified_logs\n {% endif %}\n),\ntransfers_snapshot AS (\n SELECT\n DISTINCT \n ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE AS block_date,\n contract_address,\n address1 AS address\n FROM\n all_logs\n WHERE\n address1 IS NOT NULL\n AND address1 <> '0x0000000000000000000000000000000000000000'\n AND block_timestamp :: DATE <= ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE\n UNION\n SELECT\n DISTINCT \n ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE AS block_date,\n contract_address,\n address2 AS address\n FROM\n all_logs\n WHERE\n address2 IS NOT NULL\n AND address2 <> '0x0000000000000000000000000000000000000000'\n AND block_timestamp :: DATE <= ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE\n),\ntransfers_history AS (\n SELECT\n DISTINCT \n block_timestamp :: DATE AS block_date,\n contract_address,\n address1 AS address\n FROM\n all_logs\n WHERE\n address1 IS NOT NULL\n AND address1 <> '0x0000000000000000000000000000000000000000'\n AND block_date > ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE\n UNION\n SELECT\n DISTINCT \n block_timestamp :: DATE AS block_date,\n contract_address,\n address2 AS address\n FROM\n all_logs\n WHERE\n address2 IS NOT NULL\n AND address2 <> '0x0000000000000000000000000000000000000000'\n AND block_date > ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE\n),\nall_transfers AS (\n SELECT * FROM transfers_snapshot\n UNION\n SELECT * FROM transfers_history\n)\nSELECT\n block_date,\n address,\n contract_address,\n {{ dbt_utils.generate_surrogate_key(['block_date', 'address', 'contract_address']) }} AS balances_erc20_daily_records_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n all_transfers qualify (ROW_NUMBER() over (PARTITION BY balances_erc20_daily_records_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver__balances_erc20_override", "package": null, "version": null}, {"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "silver__balances_erc20_override", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.unverify_balances", "macro.fsc_evm.enable_change_tracking"], "nodes": ["seed.fsc_evm.silver__balances_erc20_override", "model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.core__fact_event_logs"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__balances_erc20_daily_realtime": {"database": "polygon", "schema": "streamline", "name": "streamline__balances_erc20_daily_realtime", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/erc20/streamline/realtime/streamline__balances_erc20_daily_realtime.sql", "original_file_path": "models/balances_package/erc20/streamline/realtime/streamline__balances_erc20_daily_realtime.sql", "unique_id": "model.fsc_evm.streamline__balances_erc20_daily_realtime", "fqn": ["fsc_evm", "balances_package", "erc20", "streamline", "realtime", "streamline__balances_erc20_daily_realtime"], "alias": "balances_erc20_daily_realtime", "checksum": {"name": "sha256", "checksum": "b752160daed620862a2c1ba4ed0013beb250204ddba99c4861d57107fc953360"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "balances", "realtime", "erc20", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "balances", "realtime", "erc20", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "balances", "realtime", "erc20", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018419.1579661, "relation_name": "polygon.streamline.balances_erc20_daily_realtime", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','balances','realtime','erc20','phase_4']\n) }}\n\nSELECT \n *\nFROM\n {{ ref('streamline__balances_erc20_daily_realtime_requests') }}\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = {\n \"external_table\": 'balances_erc20',\n \"sql_limit\": vars.BALANCES_SL_ERC20_DAILY_REALTIME_SQL_LIMIT,\n \"producer_batch_size\": vars.BALANCES_SL_ERC20_DAILY_REALTIME_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.BALANCES_SL_ERC20_DAILY_REALTIME_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\": vars.BALANCES_SL_ERC20_DAILY_REALTIME_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\": 'balances_erc20_daily_realtime'\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n\n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "streamline__balances_erc20_daily_realtime_requests", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.streamline__balances_erc20_daily_realtime_requests"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__balances_erc20_daily_realtime_requests": {"database": "polygon", "schema": "streamline", "name": "streamline__balances_erc20_daily_realtime_requests", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/erc20/streamline/realtime/streamline__balances_erc20_daily_realtime_requests.sql", "original_file_path": "models/balances_package/erc20/streamline/realtime/streamline__balances_erc20_daily_realtime_requests.sql", "unique_id": "model.fsc_evm.streamline__balances_erc20_daily_realtime_requests", "fqn": ["fsc_evm", "balances_package", "erc20", "streamline", "realtime", "streamline__balances_erc20_daily_realtime_requests"], "alias": "balances_erc20_daily_realtime_requests", "checksum": {"name": "sha256", "checksum": "53f517a9f579f40fe450089e13a549d005312d153092f6e91e589e5558bf35fa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "balances", "realtime", "erc20", "phase_4"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "balances", "realtime", "erc20", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "table", "tags": ["streamline", "balances", "realtime", "erc20", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018419.47231, "relation_name": "polygon.streamline.balances_erc20_daily_realtime_requests", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"table\",\n tags = ['streamline','balances','realtime','erc20','phase_4']\n) }}\n\nWITH last_x_days AS (\n\n SELECT\n block_number,\n block_date\n FROM\n {{ ref(\"_max_block_by_date\") }}\n WHERE block_date >= DATEADD('day', {{ vars.BALANCES_SL_DAILY_REALTIME_LOOKBACK_DAYS }}, SYSDATE())\n),\nto_do AS (\n SELECT\n DISTINCT\n d.block_number,\n d.block_date,\n t.address,\n t.contract_address\n FROM\n {{ ref(\"streamline__balances_erc20_daily_records\") }} t\n INNER JOIN last_x_days d \n ON t.block_date = d.block_date\n --max daily block_number from 1 day ago, for each contract_address/address pair\n WHERE\n t.block_date IS NOT NULL\n EXCEPT\n SELECT\n block_number,\n block_date,\n address,\n contract_address\n FROM\n {{ ref(\"streamline__balances_erc20_daily_complete\") }}\n WHERE\n block_date >= (\n SELECT MIN(block_date)\n FROM last_x_days\n )\n AND block_date IS NOT NULL\n AND _inserted_timestamp :: DATE >= DATEADD(\n 'day',\n -7,\n SYSDATE()\n )\n)\nSELECT\n block_number,\n DATE_PART('EPOCH_SECONDS', block_date) :: INT AS block_date_unix,\n address,\n contract_address,\n ROUND(\n block_number,\n -3\n ) AS partition_key,\n OBJECT_CONSTRUCT(\n 'data', OBJECT_CONSTRUCT(\n 'id', CONCAT(\n contract_address,\n '-',\n address,\n '-',\n block_number\n ),\n 'jsonrpc', '2.0',\n 'method', 'eth_call',\n 'params', ARRAY_CONSTRUCT(\n OBJECT_CONSTRUCT(\n 'to', contract_address,\n 'data', CONCAT(\n '0x70a08231000000000000000000000000',\n SUBSTR(address, 3)\n )\n ),\n utils.udf_int_to_hex(block_number)\n )\n ),\n 'headers', OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'x-fsc-livequery', 'true'\n ),\n 'method', 'POST',\n 'secret_name', '{{ vars.GLOBAL_NODE_VAULT_PATH }}',\n 'url', '{{ vars.GLOBAL_NODE_URL }}'\n ) AS request\nFROM\n to_do\nORDER BY partition_key DESC, block_number DESC\n\nLIMIT {{ vars.BALANCES_SL_ERC20_DAILY_REALTIME_SQL_LIMIT }}", "language": "sql", "refs": [{"name": "_max_block_by_date", "package": null, "version": null}, {"name": "streamline__balances_erc20_daily_records", "package": null, "version": null}, {"name": "streamline__balances_erc20_daily_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm._max_block_by_date", "model.fsc_evm.streamline__balances_erc20_daily_records", "model.fsc_evm.streamline__balances_erc20_daily_complete"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__balances_erc20_daily_complete": {"database": "polygon", "schema": "streamline", "name": "streamline__balances_erc20_daily_complete", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/erc20/streamline/complete/streamline__balances_erc20_daily_complete.sql", "original_file_path": "models/balances_package/erc20/streamline/complete/streamline__balances_erc20_daily_complete.sql", "unique_id": "model.fsc_evm.streamline__balances_erc20_daily_complete", "fqn": ["fsc_evm", "balances_package", "erc20", "streamline", "complete", "streamline__balances_erc20_daily_complete"], "alias": "balances_erc20_daily_complete", "checksum": {"name": "sha256", "checksum": "e7c0a3322a8f38b5315f5a52e18b86cf8abf3026bcac0f578d9932263cd91bea"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "balances", "complete", "erc20", "phase_4"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(address,contract_address)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "balances_erc20_daily_complete_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "ROUND(block_number, -3)"}, "tags": ["streamline", "balances", "complete", "erc20", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "balances_erc20_daily_complete_id", "cluster_by": "ROUND(block_number, -3)", "full_refresh": false, "tags": ["streamline", "balances", "complete", "erc20", "phase_4"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018419.7843647, "relation_name": "polygon.streamline.balances_erc20_daily_complete", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n-- depends_on: {{ ref('bronze__balances_erc20') }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"balances_erc20_daily_complete_id\",\n cluster_by = \"ROUND(block_number, -3)\",\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(address,contract_address)\",\n full_refresh = vars.GLOBAL_STREAMLINE_FR_ENABLED,\n tags = ['streamline','balances','complete','erc20','phase_4']\n) }}\n{# Main query starts here #}\n\nSELECT\n VALUE :\"BLOCK_NUMBER\" :: NUMBER AS block_number,\n (\n VALUE :\"BLOCK_DATE_UNIX\" :: TIMESTAMP\n ) :: DATE AS block_date,\n VALUE :\"ADDRESS\" :: STRING AS address,\n VALUE :\"CONTRACT_ADDRESS\" :: STRING AS contract_address,\n {{ dbt_utils.generate_surrogate_key(['block_date', 'address', 'contract_address']) }} AS balances_erc20_daily_complete_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n\n{% if is_incremental() %}\n{{ ref('bronze__balances_erc20') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01' :: TIMESTAMP) AS _inserted_timestamp\n FROM\n {{ this }})\n {% else %}\n {{ ref('bronze__balances_erc20_fr') }}\n {% endif %}\n\n qualify (ROW_NUMBER() over (PARTITION BY balances_erc20_daily_complete_id\n ORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__balances_erc20", "package": null, "version": null}, {"name": "bronze__balances_erc20_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__balances_erc20", "model.fsc_evm.bronze__balances_erc20_fr"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__balances_erc20_daily_history_requests": {"database": "polygon", "schema": "streamline", "name": "streamline__balances_erc20_daily_history_requests", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/erc20/streamline/history/streamline__balances_erc20_daily_history_requests.sql", "original_file_path": "models/balances_package/erc20/streamline/history/streamline__balances_erc20_daily_history_requests.sql", "unique_id": "model.fsc_evm.streamline__balances_erc20_daily_history_requests", "fqn": ["fsc_evm", "balances_package", "erc20", "streamline", "history", "streamline__balances_erc20_daily_history_requests"], "alias": "balances_erc20_daily_history_requests", "checksum": {"name": "sha256", "checksum": "c1bea6f7c86446c21a3e8881b3691c555d5bea02012340902d718fe95ef73450"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "balances", "history", "erc20", "phase_4"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "balances", "history", "erc20", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "table", "tags": ["streamline", "balances", "history", "erc20", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018420.1029878, "relation_name": "polygon.streamline.balances_erc20_daily_history_requests", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"table\",\n tags = ['streamline','balances','history','erc20','phase_4']\n) }}\n\nWITH last_x_days AS (\n\n SELECT\n block_number,\n block_date\n FROM\n {{ ref(\"_max_block_by_date\") }}\n WHERE block_date >= ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE\n),\nto_do AS (\n SELECT\n DISTINCT\n d.block_number,\n d.block_date,\n t.address,\n t.contract_address\n FROM\n {{ ref(\"streamline__balances_erc20_daily_records\") }} t\n INNER JOIN last_x_days d \n ON t.block_date = d.block_date\n --max daily block_number during the selected period, for each contract_address/address pair\n WHERE\n t.block_date IS NOT NULL\n AND d.block_date < (\n SELECT MAX(block_date)\n FROM last_x_days\n ) \n EXCEPT\n SELECT\n block_number,\n block_date,\n address,\n contract_address\n FROM\n {{ ref(\"streamline__balances_erc20_daily_complete\") }}\n WHERE block_date IS NOT NULL\n)\nSELECT\n block_number,\n DATE_PART('EPOCH_SECONDS', block_date) :: INT AS block_date_unix,\n address,\n contract_address,\n IFF(\n block_date = ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE,\n DATE_PART('EPOCH_SECONDS', SYSDATE() :: DATE) :: INT,\n ROUND(\n block_number,\n -3\n )\n ) AS partition_key,\n OBJECT_CONSTRUCT(\n 'data', OBJECT_CONSTRUCT(\n 'id', CONCAT(\n contract_address,\n '-',\n address,\n '-',\n block_number\n ),\n 'jsonrpc', '2.0',\n 'method', 'eth_call',\n 'params', ARRAY_CONSTRUCT(\n OBJECT_CONSTRUCT(\n 'to', contract_address,\n 'data', CONCAT(\n '0x70a08231000000000000000000000000',\n SUBSTR(address, 3)\n )\n ),\n utils.udf_int_to_hex(block_number)\n )\n ),\n 'headers', OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'x-fsc-livequery', 'true'\n ),\n 'method', 'POST',\n 'secret_name', '{{ vars.GLOBAL_NODE_VAULT_PATH }}',\n 'url', '{{ vars.GLOBAL_NODE_URL }}'\n ) AS request\nFROM\n to_do\nORDER BY partition_key DESC, block_number DESC\n\nLIMIT {{ vars.BALANCES_SL_ERC20_DAILY_HISTORY_SQL_LIMIT }}", "language": "sql", "refs": [{"name": "_max_block_by_date", "package": null, "version": null}, {"name": "streamline__balances_erc20_daily_records", "package": null, "version": null}, {"name": "streamline__balances_erc20_daily_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm._max_block_by_date", "model.fsc_evm.streamline__balances_erc20_daily_records", "model.fsc_evm.streamline__balances_erc20_daily_complete"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__balances_erc20_daily_history": {"database": "polygon", "schema": "streamline", "name": "streamline__balances_erc20_daily_history", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/erc20/streamline/history/streamline__balances_erc20_daily_history.sql", "original_file_path": "models/balances_package/erc20/streamline/history/streamline__balances_erc20_daily_history.sql", "unique_id": "model.fsc_evm.streamline__balances_erc20_daily_history", "fqn": ["fsc_evm", "balances_package", "erc20", "streamline", "history", "streamline__balances_erc20_daily_history"], "alias": "balances_erc20_daily_history", "checksum": {"name": "sha256", "checksum": "578911836f82d46db86f90f3ac1b99bc6f67f58f0b399e9e01c494f438eb9697"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "balances", "history", "erc20", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "balances", "history", "erc20", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "balances", "history", "erc20", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018420.4137912, "relation_name": "polygon.streamline.balances_erc20_daily_history", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','balances','history','erc20','phase_4']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('streamline__balances_erc20_daily_history_requests') }}\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = {\n \"external_table\": 'balances_erc20',\n \"sql_limit\": vars.BALANCES_SL_ERC20_DAILY_HISTORY_SQL_LIMIT,\n \"producer_batch_size\": vars.BALANCES_SL_ERC20_DAILY_HISTORY_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.BALANCES_SL_ERC20_DAILY_HISTORY_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\": vars.BALANCES_SL_ERC20_DAILY_HISTORY_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\": 'balances_erc20_daily_history'\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n\n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "streamline__balances_erc20_daily_history_requests", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.streamline__balances_erc20_daily_history_requests"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.balances__ez_balances_erc20_daily": {"database": "polygon", "schema": "balances", "name": "balances__ez_balances_erc20_daily", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/erc20/gold/balances__ez_balances_erc20_daily.sql", "original_file_path": "models/balances_package/erc20/gold/balances__ez_balances_erc20_daily.sql", "unique_id": "model.fsc_evm.balances__ez_balances_erc20_daily", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "balances__ez_balances_erc20_daily"], "alias": "ez_balances_erc20_daily", "checksum": {"name": "sha256", "checksum": "aeac0a39369cc1880fc3f48c5e2e07662bf185e77edad9dcc26561cc6a39a24d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "balances", "erc20", "heal", "phase_4"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ unverify_balances() }}", "transaction": true, "index": null}, {"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address, contract_address)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "ez_balances_erc20_daily_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_date"], "incremental_predicates": ["dynamic_range", "block_number"], "merge_exclude_columns": ["inserted_timestamp"]}, "tags": ["gold", "balances", "erc20", "heal", "phase_4"], "description": "## What\n\nThis table provides daily ERC20 token balance snapshots for verified token contracts by making direct `balanceOf` contract calls at the end of each day. **Important**: This table only includes a balance record for a given address and token on days when that address had transfer activity for that token. Balances are not rolled forward for every address-token pair every day. This means if an address holds a token but has no transfer activity on a given day, no balance record will be created for that day. This provides an efficient way to track token holdings across all verified ERC20 tokens with decimal adjustments and USD valuations where available. Historical ERC20 balances data available, starting from `2025-06-10`.\n\n## Key Use Cases\n\n- Daily portfolio tracking and balance monitoring for ERC20 tokens\n- Historical balance analysis and trend identification\n- Token holder distribution analysis at daily granularity\n- Wallet balance snapshots for reporting and analytics\n- Cross-token balance comparisons and concentration analysis\n- Token supply distribution monitoring over time\n- Daily balance-based yield and return calculations\n\n## Important Relationships\n\n- **Join with fact_blocks**: Use `block_number` for block metadata and timestamps\n- **Join with dim_labels**: Use `address` for entity identification and categorization\n- **Join with dim_contracts**: Use `contract_address` for token contract details\n- **Join with ez_prices_hourly**: USD valuations already included but can be refreshed\n- **Join with ez_balances_native_daily**: Compare with native token daily balances\n- **Join with ez_token_transfers**: Compare daily balances with transfer activity\n\n## Commonly-used Fields\n\n- `address`: The account address holding the token balance\n- `contract_address`: The ERC20 token contract address\n- `symbol`: Token symbol (USDC, WETH, etc.)\n- `balance`: Token balance at end of day, decimal adjusted to standard units\n- `balance_usd`: USD value of the token balance at end of day\n- `balance_raw`: Raw balance in smallest token unit (wei equivalent)\n- `balance_precise`: Precise decimal-adjusted balance as string\n- `decimals`: Number of decimal places for the token\n- `block_date`: The date for which this balance snapshot was taken\n\n## Sample queries\n\n**Daily Token Holdings by Address**\n```sql\nSELECT \n block_date,\n address,\n symbol,\n balance,\n balance_usd,\n contract_address\nFROM .balances.ez_balances_erc20_daily\nWHERE address = LOWER('0x1234567890123456789012345678901234567890')\n AND block_date >= CURRENT_DATE - 30\n AND balance > 0\nORDER BY block_date DESC, balance_usd DESC;\n```\n\n**Token Holder Count Trends**\n```sql\nSELECT \n block_date,\n symbol,\n contract_address,\n COUNT(DISTINCT address) AS holder_count,\n SUM(balance) AS total_supply_tracked,\n AVG(balance) AS avg_balance,\n MEDIAN(balance) AS median_balance\nFROM .balances.ez_balances_erc20_daily\nWHERE block_date >= CURRENT_DATE - 90\n AND balance > 0\n AND symbol IS NOT NULL\nGROUP BY 1, 2, 3\nORDER BY 1 DESC, holder_count DESC;\n```\n\n**Portfolio Value Evolution**\n```sql\n-- Track portfolio value changes over time for specific addresses\nSELECT \n block_date,\n address,\n COUNT(DISTINCT contract_address) AS token_count,\n SUM(balance_usd) AS total_portfolio_usd,\n STRING_AGG(\n CASE WHEN balance_usd > 100 \n THEN symbol || ': $' || ROUND(balance_usd, 2) \n END, ', '\n ) AS major_holdings\nFROM .balances.ez_balances_erc20_daily\nWHERE address IN (\n SELECT DISTINCT address \n FROM .balances.ez_balances_erc20_daily \n WHERE balance_usd > 10000\n LIMIT 100\n)\n AND block_date >= CURRENT_DATE - 30\n AND balance > 0\nGROUP BY 1, 2\nHAVING total_portfolio_usd > 1000\nORDER BY 1 DESC, total_portfolio_usd DESC;\n```\n\n**Token Distribution Analysis**\n```sql\n-- Analyze token concentration and distribution patterns\nSELECT \n symbol,\n contract_address,\n block_date,\n COUNT(DISTINCT address) AS total_holders,\n COUNT(DISTINCT CASE WHEN balance >= 1000 THEN address END) AS holders_1k_plus,\n COUNT(DISTINCT CASE WHEN balance >= 10000 THEN address END) AS holders_10k_plus,\n MAX(balance) AS max_balance,\n PERCENTILE_CONT(0.95) WITHIN GROUP (ORDER BY balance) AS p95_balance,\n PERCENTILE_CONT(0.50) WITHIN GROUP (ORDER BY balance) AS median_balance\nFROM .balances.ez_balances_erc20_daily\nWHERE block_date = CURRENT_DATE - 1\n AND balance > 0\n AND symbol IS NOT NULL\nGROUP BY 1, 2, 3\nHAVING total_holders >= 100\nORDER BY total_holders DESC\nLIMIT 50;\n```\n\n**Daily Balance Changes**\n```sql\n-- Compare daily balances to identify significant changes\nWITH daily_changes AS (\n SELECT \n address,\n contract_address,\n symbol,\n block_date,\n balance,\n balance_usd,\n LAG(balance) OVER (\n PARTITION BY address, contract_address \n ORDER BY block_date\n ) AS prev_balance,\n LAG(balance_usd) OVER (\n PARTITION BY address, contract_address \n ORDER BY block_date\n ) AS prev_balance_usd\n FROM .balances.ez_balances_erc20_daily\n WHERE block_date >= CURRENT_DATE - 7\n AND balance > 0\n)\nSELECT \n block_date,\n address,\n symbol,\n balance,\n prev_balance,\n balance - prev_balance AS balance_change,\n balance_usd - prev_balance_usd AS balance_change_usd,\n CASE \n WHEN prev_balance > 0 \n THEN ((balance - prev_balance) / prev_balance) * 100 \n ELSE NULL \n END AS pct_change\nFROM daily_changes\nWHERE ABS(balance_change_usd) > 1000\n AND prev_balance IS NOT NULL\nORDER BY ABS(balance_change_usd) DESC\nLIMIT 100;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_DATE": {"name": "BLOCK_DATE", "description": "The date for which this balance snapshot represents the end-of-day token balance.\n\nExample: '2025-07-04'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "The account address whose token balance is recorded in this daily snapshot.\n\nExample: '0x1234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "The ERC20 token contract address for which the balance is recorded.\n\nExample: '0xa0b86a33e6eb88b4d81b15e4e60c8a5b776e3b7a'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECIMALS": {"name": "DECIMALS", "description": "Number of decimal places for the token, used for proper decimal adjustment in balance calculations.\n\nExample: 6", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "The token symbol for the ERC20 token.\n\nExample: 'USDC'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCE_HEX": {"name": "BALANCE_HEX", "description": "Hexadecimal representation of the token balance as returned by the balanceOf contract call.\n\nExample: '0x3b9aca00'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCE_RAW": {"name": "BALANCE_RAW", "description": "Token balance in the smallest unit (wei equivalent) without decimal adjustment, as returned by the contract.\n\nExample: 1000000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCE_PRECISE": {"name": "BALANCE_PRECISE", "description": "Token balance with proper decimal adjustment, returned as a string to preserve precision.\n\nExample: '1000.000000'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCE": {"name": "BALANCE", "description": "Token balance with decimal adjustment converted to a float for easier mathematical operations.\n\nExample: 1000.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCE_USD": {"name": "BALANCE_USD", "description": "USD value of the token balance at the end of the day, calculated using hourly price data.\n\nExample: 1000.50", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_BALANCES_ERC20_DAILY_ID": {"name": "EZ_BALANCES_ERC20_DAILY_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/erc20/gold/balances__ez_balances_erc20_daily.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "ez_balances_erc20_daily_id", "cluster_by": ["block_date"], "incremental_predicates": ["dynamic_range", "block_number"], "merge_exclude_columns": ["inserted_timestamp"], "full_refresh": false, "tags": ["gold", "balances", "erc20", "heal", "phase_4"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018442.4219942, "relation_name": "polygon.balances.ez_balances_erc20_daily", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze__balances_erc20') }}\n-- depends_on: {{ ref('silver__balances_erc20_override') }}\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n unique_key = 'ez_balances_erc20_daily_id',\n cluster_by = ['block_date'],\n incremental_predicates = [\"dynamic_range\", \"block_number\"],\n post_hook = [\n \"{{ unverify_balances() }}\",\n \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address, contract_address)\"\n ],\n merge_exclude_columns = [\"inserted_timestamp\"],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n tags = ['gold','balances','erc20','heal','phase_4']\n) }}\n\nWITH balances AS (\n\n SELECT\n s.block_number,\n block_date,\n s.address,\n s.contract_address,\n IFF(\n c.decimals IS NULL\n AND s.contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}',\n 18,\n c.decimals\n ) AS decimals_adj,\n c.symbol,\n balance_hex,\n IFNULL(\n CASE WHEN LENGTH(balance_hex) <= 4300 AND balance_hex IS NOT NULL \n THEN TRY_CAST(utils.udf_hex_to_int(balance_hex) AS bigint) \n END,\n CASE WHEN balance_hex IS NOT NULL \n THEN TRY_CAST(utils.udf_hex_to_int(RTRIM(balance_hex,'0')) AS bigint) \n END\n ) AS balance_raw,\n IFF(\n decimals_adj IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n balance_raw,\n decimals_adj\n )\n ) AS balance_precise,\n balance_precise :: FLOAT AS balance,\n IFF(\n decimals_adj IS NULL,\n NULL,\n ROUND(\n balance * IFF(\n s.contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}',\n COALESCE(\n p0.price,\n p1.price\n ),\n p0.price\n ),\n 2\n )\n ) AS balance_usd\n FROM\n {{ ref('silver__balances_erc20_daily') }}\n s\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p0\n ON s.contract_address = p0.token_address\n AND DATEADD(\n 'hour',\n 23,\n s.block_date\n ) = p0.hour\n AND p0.decimals IS NOT NULL\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p1\n ON DATEADD(\n 'hour',\n 23,\n s.block_date\n ) = p1.hour\n AND p1.is_native\n LEFT JOIN {{ ref('core__dim_contracts')}}\n c\n ON s.contract_address = c.address\n WHERE\n balance_raw IS NOT NULL\n\n{% if is_incremental() %}\nAND s.modified_timestamp >= (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01')\n FROM\n {{ this }}\n)\n{% endif %}\n)\n\n{% if is_incremental() %},\nmissing_data AS (\n SELECT\n t.block_number,\n block_date,\n t.address,\n t.contract_address,\n IFF(\n c.decimals IS NULL\n AND t.contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}',\n 18,\n c.decimals\n ) AS decimals_heal,\n c.symbol AS symbol_heal,\n balance_hex,\n balance_raw,\n IFF(\n decimals_heal IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n balance_raw,\n decimals_heal\n )\n ) AS balance_precise_heal,\n balance_precise_heal :: FLOAT AS balance_heal,\n IFF(\n decimals_heal IS NULL,\n NULL,\n ROUND(\n balance_heal * IFF(\n t.contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}',\n COALESCE(\n p0.price,\n p1.price\n ),\n p0.price\n ),\n 2\n )\n ) AS balance_usd_heal\n FROM\n {{ this }}\n t\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p0\n ON t.contract_address = p0.token_address\n AND DATEADD(\n 'hour',\n 23,\n t.block_date\n ) = p0.hour\n AND p0.decimals IS NOT NULL\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p1\n ON DATEADD(\n 'hour',\n 23,\n t.block_date\n ) = p1.hour\n AND p1.is_native\n LEFT JOIN {{ ref('core__dim_contracts')}}\n c\n ON t.contract_address = c.address\n WHERE\n (\n t.balance_usd IS NULL\n AND (\n p0.price IS NOT NULL\n OR (\n t.contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n AND p1.price IS NOT NULL\n )\n )\n )\n OR (\n t.decimals IS NULL\n AND t.symbol IS NULL\n )\n)\n{% endif %},\nFINAL AS (\n SELECT\n block_number,\n block_date,\n address,\n contract_address,\n decimals_adj AS decimals,\n symbol,\n balance_hex,\n balance_raw,\n balance_precise,\n balance,\n balance_usd\n FROM\n balances\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n block_number,\n block_date,\n address,\n contract_address,\n decimals_heal AS decimals,\n symbol_heal AS symbol,\n balance_hex,\n balance_raw,\n balance_precise_heal AS balance_precise,\n balance_heal AS balance,\n balance_usd_heal AS balance_usd\nFROM\n missing_data\n{% endif %}\n)\nSELECT\n block_number,\n block_date,\n address,\n contract_address,\n decimals,\n symbol,\n balance_hex,\n balance_raw,\n balance_precise,\n balance,\n balance_usd,\n {{ dbt_utils.generate_surrogate_key(\n ['block_date','address','contract_address']\n ) }} AS ez_balances_erc20_daily_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n FINAL \n \n{% if is_incremental() %}\nqualify(ROW_NUMBER() over (PARTITION BY ez_balances_erc20_daily_id\nORDER BY\n modified_timestamp DESC)) = 1\n{% endif %}", "language": "sql", "refs": [{"name": "bronze__balances_erc20", "package": null, "version": null}, {"name": "silver__balances_erc20_override", "package": null, "version": null}, {"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "silver__balances_erc20_daily", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.unverify_balances", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__balances_erc20", "seed.fsc_evm.silver__balances_erc20_override", "model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.silver__balances_erc20_daily", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.core__dim_contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/balances__ez_balances_erc20_daily.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_date\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"dynamic_range\",\n \"block_number\"\n ],\n \"materialized\": \"incremental\",\n \"merge_exclude_columns\": [\n \"inserted_timestamp\"\n ],\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ unverify_balances() }}\",\n \"transaction\": true\n },\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address, contract_address)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"balances\",\n \"erc20\",\n \"heal\",\n \"phase_4\"\n ],\n \"unique_key\": \"ez_balances_erc20_daily_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze__balances_erc20') }}\n-- depends_on: {{ ref('silver__balances_erc20_override') }}\n-- depends_on: {{ ref('price__ez_asset_metadata') }}\n{{ config(\n materialized = 'incremental',\n unique_key = 'ez_balances_erc20_daily_id',\n cluster_by = ['block_date'],\n incremental_predicates = [\"dynamic_range\", \"block_number\"],\n post_hook = [\n \"{{ unverify_balances() }}\",\n \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address, contract_address)\"\n ],\n merge_exclude_columns = [\"inserted_timestamp\"],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n tags = ['gold','balances','erc20','heal','phase_4']\n) }}\n\nWITH balances AS (\n\n SELECT\n s.block_number,\n block_date,\n s.address,\n s.contract_address,\n IFF(\n c.decimals IS NULL\n AND s.contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}',\n 18,\n c.decimals\n ) AS decimals_adj,\n c.symbol,\n balance_hex,\n IFNULL(\n CASE WHEN LENGTH(balance_hex) <= 4300 AND balance_hex IS NOT NULL \n THEN TRY_CAST(utils.udf_hex_to_int(balance_hex) AS bigint) \n END,\n CASE WHEN balance_hex IS NOT NULL \n THEN TRY_CAST(utils.udf_hex_to_int(RTRIM(balance_hex,'0')) AS bigint) \n END\n ) AS balance_raw,\n IFF(\n decimals_adj IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n balance_raw,\n decimals_adj\n )\n ) AS balance_precise,\n balance_precise :: FLOAT AS balance,\n IFF(\n decimals_adj IS NULL,\n NULL,\n ROUND(\n balance * IFF(\n s.contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}',\n COALESCE(\n p0.price,\n p1.price\n ),\n p0.price\n ),\n 2\n )\n ) AS balance_usd\n FROM\n {{ ref('silver__balances_erc20_daily') }}\n s\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p0\n ON s.contract_address = p0.token_address\n AND DATEADD(\n 'hour',\n 23,\n s.block_date\n ) = p0.hour\n AND p0.decimals IS NOT NULL\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p1\n ON DATEADD(\n 'hour',\n 23,\n s.block_date\n ) = p1.hour\n AND p1.is_native\n LEFT JOIN {{ ref('core__dim_contracts')}}\n c\n ON s.contract_address = c.address\n WHERE\n balance_raw IS NOT NULL\n\n{% if is_incremental() %}\nAND s.modified_timestamp >= (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01')\n FROM\n {{ this }}\n)\n{% endif %}\n)\n\n{% if is_incremental() %},\nmissing_data AS (\n SELECT\n t.block_number,\n block_date,\n t.address,\n t.contract_address,\n IFF(\n c.decimals IS NULL\n AND t.contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}',\n 18,\n c.decimals\n ) AS decimals_heal,\n c.symbol AS symbol_heal,\n balance_hex,\n balance_raw,\n IFF(\n decimals_heal IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n balance_raw,\n decimals_heal\n )\n ) AS balance_precise_heal,\n balance_precise_heal :: FLOAT AS balance_heal,\n IFF(\n decimals_heal IS NULL,\n NULL,\n ROUND(\n balance_heal * IFF(\n t.contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}',\n COALESCE(\n p0.price,\n p1.price\n ),\n p0.price\n ),\n 2\n )\n ) AS balance_usd_heal\n FROM\n {{ this }}\n t\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p0\n ON t.contract_address = p0.token_address\n AND DATEADD(\n 'hour',\n 23,\n t.block_date\n ) = p0.hour\n AND p0.decimals IS NOT NULL\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p1\n ON DATEADD(\n 'hour',\n 23,\n t.block_date\n ) = p1.hour\n AND p1.is_native\n LEFT JOIN {{ ref('core__dim_contracts')}}\n c\n ON t.contract_address = c.address\n WHERE\n (\n t.balance_usd IS NULL\n AND (\n p0.price IS NOT NULL\n OR (\n t.contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n AND p1.price IS NOT NULL\n )\n )\n )\n OR (\n t.decimals IS NULL\n AND t.symbol IS NULL\n )\n)\n{% endif %},\nFINAL AS (\n SELECT\n block_number,\n block_date,\n address,\n contract_address,\n decimals_adj AS decimals,\n symbol,\n balance_hex,\n balance_raw,\n balance_precise,\n balance,\n balance_usd\n FROM\n balances\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n block_number,\n block_date,\n address,\n contract_address,\n decimals_heal AS decimals,\n symbol_heal AS symbol,\n balance_hex,\n balance_raw,\n balance_precise_heal AS balance_precise,\n balance_heal AS balance,\n balance_usd_heal AS balance_usd\nFROM\n missing_data\n{% endif %}\n)\nSELECT\n block_number,\n block_date,\n address,\n contract_address,\n decimals,\n symbol,\n balance_hex,\n balance_raw,\n balance_precise,\n balance,\n balance_usd,\n {{ dbt_utils.generate_surrogate_key(\n ['block_date','address','contract_address']\n ) }} AS ez_balances_erc20_daily_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n FINAL \n \n{% if is_incremental() %}\nqualify(ROW_NUMBER() over (PARTITION BY ez_balances_erc20_daily_id\nORDER BY\n modified_timestamp DESC)) = 1\n{% endif %}\n*/\n\n-- depends_on: polygon.bronze.balances_erc20\n-- depends_on: polygon.silver.balances_erc20_override\n-- depends_on: polygon.price.ez_asset_metadata\n\n\nWITH balances AS (\n\n SELECT\n s.block_number,\n block_date,\n s.address,\n s.contract_address,\n IFF(\n c.decimals IS NULL\n AND s.contract_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',\n 18,\n c.decimals\n ) AS decimals_adj,\n c.symbol,\n balance_hex,\n IFNULL(\n CASE WHEN LENGTH(balance_hex) <= 4300 AND balance_hex IS NOT NULL \n THEN TRY_CAST(utils.udf_hex_to_int(balance_hex) AS bigint) \n END,\n CASE WHEN balance_hex IS NOT NULL \n THEN TRY_CAST(utils.udf_hex_to_int(RTRIM(balance_hex,'0')) AS bigint) \n END\n ) AS balance_raw,\n IFF(\n decimals_adj IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n balance_raw,\n decimals_adj\n )\n ) AS balance_precise,\n balance_precise :: FLOAT AS balance,\n IFF(\n decimals_adj IS NULL,\n NULL,\n ROUND(\n balance * IFF(\n s.contract_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',\n COALESCE(\n p0.price,\n p1.price\n ),\n p0.price\n ),\n 2\n )\n ) AS balance_usd\n FROM\n polygon.silver.balances_erc20_daily\n s\n LEFT JOIN polygon.price.ez_prices_hourly\n p0\n ON s.contract_address = p0.token_address\n AND DATEADD(\n 'hour',\n 23,\n s.block_date\n ) = p0.hour\n AND p0.decimals IS NOT NULL\n LEFT JOIN polygon.price.ez_prices_hourly\n p1\n ON DATEADD(\n 'hour',\n 23,\n s.block_date\n ) = p1.hour\n AND p1.is_native\n LEFT JOIN polygon.core.dim_contracts\n c\n ON s.contract_address = c.address\n WHERE\n balance_raw IS NOT NULL\n\n\nAND s.modified_timestamp >= (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01')\n FROM\n polygon.balances.ez_balances_erc20_daily\n)\n\n)\n\n,\nmissing_data AS (\n SELECT\n t.block_number,\n block_date,\n t.address,\n t.contract_address,\n IFF(\n c.decimals IS NULL\n AND t.contract_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',\n 18,\n c.decimals\n ) AS decimals_heal,\n c.symbol AS symbol_heal,\n balance_hex,\n balance_raw,\n IFF(\n decimals_heal IS NULL,\n NULL,\n utils.udf_decimal_adjust(\n balance_raw,\n decimals_heal\n )\n ) AS balance_precise_heal,\n balance_precise_heal :: FLOAT AS balance_heal,\n IFF(\n decimals_heal IS NULL,\n NULL,\n ROUND(\n balance_heal * IFF(\n t.contract_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',\n COALESCE(\n p0.price,\n p1.price\n ),\n p0.price\n ),\n 2\n )\n ) AS balance_usd_heal\n FROM\n polygon.balances.ez_balances_erc20_daily\n t\n LEFT JOIN polygon.price.ez_prices_hourly\n p0\n ON t.contract_address = p0.token_address\n AND DATEADD(\n 'hour',\n 23,\n t.block_date\n ) = p0.hour\n AND p0.decimals IS NOT NULL\n LEFT JOIN polygon.price.ez_prices_hourly\n p1\n ON DATEADD(\n 'hour',\n 23,\n t.block_date\n ) = p1.hour\n AND p1.is_native\n LEFT JOIN polygon.core.dim_contracts\n c\n ON t.contract_address = c.address\n WHERE\n (\n t.balance_usd IS NULL\n AND (\n p0.price IS NOT NULL\n OR (\n t.contract_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n AND p1.price IS NOT NULL\n )\n )\n )\n OR (\n t.decimals IS NULL\n AND t.symbol IS NULL\n )\n)\n,\nFINAL AS (\n SELECT\n block_number,\n block_date,\n address,\n contract_address,\n decimals_adj AS decimals,\n symbol,\n balance_hex,\n balance_raw,\n balance_precise,\n balance,\n balance_usd\n FROM\n balances\n\n\nUNION ALL\nSELECT\n block_number,\n block_date,\n address,\n contract_address,\n decimals_heal AS decimals,\n symbol_heal AS symbol,\n balance_hex,\n balance_raw,\n balance_precise_heal AS balance_precise,\n balance_heal AS balance,\n balance_usd_heal AS balance_usd\nFROM\n missing_data\n\n)\nSELECT\n block_number,\n block_date,\n address,\n contract_address,\n decimals,\n symbol,\n balance_hex,\n balance_raw,\n balance_precise,\n balance,\n balance_usd,\n \n \nmd5(cast(coalesce(cast(block_date as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(address as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(contract_address as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS ez_balances_erc20_daily_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n FINAL \n \n\nqualify(ROW_NUMBER() over (PARTITION BY ez_balances_erc20_daily_id\nORDER BY\n modified_timestamp DESC)) = 1\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent": {"database": "polygon", "schema": "test_gold", "name": "test_gold__ez_balances_erc20_daily_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.sql", "unique_id": "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "test_gold__ez_balances_erc20_daily_recent"], "alias": "ez_balances_erc20_daily_recent", "checksum": {"name": "sha256", "checksum": "1a9c9db8bdea4543b1a048676d25c7d9499e894c702e5bab3cbc8cc676bb67af"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "balances", "erc20", "daily", "daily_test", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "balances", "erc20", "daily", "daily_test", "phase_4"], "description": "", "columns": {"BLOCK_DATE": {"name": "BLOCK_DATE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECIMALS": {"name": "DECIMALS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCE": {"name": "BALANCE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_BALANCES_ERC20_DAILY_ID": {"name": "EZ_BALANCES_ERC20_DAILY_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "balances", "erc20", "daily", "daily_test", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.4232738, "relation_name": "polygon.test_gold.ez_balances_erc20_daily_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','balances','erc20','daily','daily_test','phase_4']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('balances__ez_balances_erc20_daily') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "balances__ez_balances_erc20_daily", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.balances__ez_balances_erc20_daily", "model.fsc_evm._block_lookback"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.sql", "compiled": true, "compiled_code": "\n\n\n\nwith __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n) /* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"balances\",\n \"erc20\",\n \"daily\",\n \"daily_test\",\n \"phase_4\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','balances','erc20','daily','daily_test','phase_4']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('balances__ez_balances_erc20_daily') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.balances.ez_balances_erc20_daily\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n __dbt__cte___block_lookback\n )\n\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.fsc_evm._block_lookback", "sql": " __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__ez_balances_erc20_daily_full": {"database": "polygon", "schema": "test_gold", "name": "test_gold__ez_balances_erc20_daily_full", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.sql", "unique_id": "model.fsc_evm.test_gold__ez_balances_erc20_daily_full", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "test_gold__ez_balances_erc20_daily_full"], "alias": "ez_balances_erc20_daily_full", "checksum": {"name": "sha256", "checksum": "abc32a298696ccec8cd2fdae806006d7fdd5a369386408e808f94ea6db2475b0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "balances", "erc20", "daily", "full_test", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "balances", "erc20", "daily", "full_test", "phase_4"], "description": "", "columns": {"BLOCK_DATE": {"name": "BLOCK_DATE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECIMALS": {"name": "DECIMALS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCE": {"name": "BALANCE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_BALANCES_ERC20_DAILY_ID": {"name": "EZ_BALANCES_ERC20_DAILY_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "balances", "erc20", "daily", "full_test", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.4663959, "relation_name": "polygon.test_gold.ez_balances_erc20_daily_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','balances','erc20','daily','full_test','phase_4']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('balances__ez_balances_erc20_daily') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "balances__ez_balances_erc20_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.balances__ez_balances_erc20_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"balances\",\n \"erc20\",\n \"daily\",\n \"full_test\",\n \"phase_4\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','balances','erc20','daily','full_test','phase_4']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('balances__ez_balances_erc20_daily') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.balances.ez_balances_erc20_daily\n\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__balances_erc20": {"database": "polygon", "schema": "bronze", "name": "bronze__balances_erc20", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/erc20/bronze/bronze__balances_erc20.sql", "original_file_path": "models/balances_package/erc20/bronze/bronze__balances_erc20.sql", "unique_id": "model.fsc_evm.bronze__balances_erc20", "fqn": ["fsc_evm", "balances_package", "erc20", "bronze", "bronze__balances_erc20"], "alias": "balances_erc20", "checksum": {"name": "sha256", "checksum": "48d05fb739b71f56518e98ac88a5c5a8493018d5868d9af9d30b27223ab68778"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "balances", "erc20", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "balances", "erc20", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "balances", "erc20", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018421.9630458, "relation_name": "polygon.bronze.balances_erc20", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','balances','erc20','phase_4']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'balances_erc20',\n contract_address = true\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "balances_erc20"], ["bronze_streamline", "balances_erc20"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.balances_erc20"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/bronze/bronze__balances_erc20.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"balances\",\n \"erc20\",\n \"phase_4\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','balances','erc20','phase_4']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'balances_erc20',\n contract_address = true\n) }}\n*/\n\n\n\n\n\n\n\n \n\n WITH meta AS (\n SELECT\n job_created_time AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.POLYGON.balances_erc20')\n ) A\n )\n SELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n , --for streamline 2.0+\n COALESCE(\n s.value :\"BLOCK_NUMBER\" :: STRING,\n s.metadata :request :\"data\" :id :: STRING,\n PARSE_JSON(\n s.metadata :request :\"data\"\n ) :id :: STRING\n ) :: INT AS block_number\n \n\n , --for contract_abis\n COALESCE(\n VALUE :\"CONTRACT_ADDRESS\",\n VALUE :\"contract_address\"\n ) :: STRING AS contract_address\n \n\n \n FROM\n streamline.POLYGON.balances_erc20\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \n WHERE\n b.partition_key = s.partition_key\n \n \n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n \n AND DATA IS NOT NULL\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__balances_erc20_fr": {"database": "polygon", "schema": "bronze", "name": "bronze__balances_erc20_fr", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/erc20/bronze/bronze__balances_erc20_fr.sql", "original_file_path": "models/balances_package/erc20/bronze/bronze__balances_erc20_fr.sql", "unique_id": "model.fsc_evm.bronze__balances_erc20_fr", "fqn": ["fsc_evm", "balances_package", "erc20", "bronze", "bronze__balances_erc20_fr"], "alias": "balances_erc20_fr", "checksum": {"name": "sha256", "checksum": "a77db427b2a152a5f27bfcb8827fcf73b48c59b325d5f8c532bedcdbd7db40c3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "balances", "erc20", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "balances", "erc20", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "balances", "erc20", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018422.1252902, "relation_name": "polygon.bronze.balances_erc20_fr", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','balances','erc20','phase_4']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'balances_erc20',\n contract_address = true\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "balances_erc20"], ["bronze_streamline", "balances_erc20"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query_fr", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.balances_erc20"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/bronze/bronze__balances_erc20_fr.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"balances\",\n \"erc20\",\n \"phase_4\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','balances','erc20','phase_4']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'balances_erc20',\n contract_address = true\n) }}\n*/\n\n\n\n\n\n\n\n \n \n WITH meta AS (\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.POLYGON.balances_erc20'\n )\n ) A\n )\nSELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n, --for streamline 2.0+\n COALESCE(\n s.value :\"BLOCK_NUMBER\" :: STRING,\n s.value :\"block_number\" :: STRING,\n s.metadata :request :\"data\" :id :: STRING,\n PARSE_JSON(\n s.metadata :request :\"data\"\n ) :id :: STRING\n ) :: INT AS block_number\n\n\n, --for contract_abis\n COALESCE(\n VALUE :\"CONTRACT_ADDRESS\",\n VALUE :\"contract_address\"\n ) :: STRING AS contract_address\n\n\n\nFROM\n streamline.POLYGON.balances_erc20\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \nWHERE\n b.partition_key = s.partition_key\n \n \n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n \n AND DATA IS NOT NULL\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.silver__balances_native_daily": {"database": "polygon", "schema": "silver", "name": "silver__balances_native_daily", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/native/silver/silver__balances_native_daily.sql", "original_file_path": "models/balances_package/native/silver/silver__balances_native_daily.sql", "unique_id": "model.fsc_evm.silver__balances_native_daily", "fqn": ["fsc_evm", "balances_package", "native", "silver", "silver__balances_native_daily"], "alias": "balances_native_daily", "checksum": {"name": "sha256", "checksum": "29be97670f3447b26f4363f67fa2ff1f217b2b79fd3a3ba3e34db2d26aafdd5e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "balances", "native", "phase_4"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "balances_native_daily_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_date"], "incremental_predicates": ["dynamic_range", "block_number"], "merge_exclude_columns": ["inserted_timestamp"]}, "tags": ["silver", "balances", "native", "phase_4"], "description": "", "columns": {"BLOCK_DATE": {"name": "BLOCK_DATE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCE_HEX": {"name": "BALANCE_HEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCES_NATIVE_DAILY_ID": {"name": "BALANCES_NATIVE_DAILY_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/native/silver/silver__balances_native_daily.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "balances_native_daily_id", "cluster_by": ["block_date"], "incremental_predicates": ["dynamic_range", "block_number"], "merge_exclude_columns": ["inserted_timestamp"], "full_refresh": false, "tags": ["silver", "balances", "native", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.5103474, "relation_name": "polygon.silver.balances_native_daily", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends on: {{ ref('bronze__balances_native') }}\n{{ config(\n materialized = 'incremental',\n unique_key = 'balances_native_daily_id',\n cluster_by = ['block_date'],\n incremental_predicates = [\"dynamic_range\", \"block_number\"],\n merge_exclude_columns = [\"inserted_timestamp\"],\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','balances','native','phase_4']\n) }}\n\nSELECT\n VALUE :\"BLOCK_NUMBER\" :: NUMBER AS block_number,\n (\n VALUE :\"BLOCK_DATE_UNIX\" :: TIMESTAMP\n ) :: DATE AS block_date,\n VALUE :\"ADDRESS\" :: STRING AS address,\n DATA :result :: STRING AS balance_hex,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['block_date','address']\n ) }} AS balances_native_daily_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n\n{% if is_incremental() %}\n{{ ref('bronze__balances_native') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01')\n FROM\n {{ this }}\n )\n AND DATA :result :: STRING <> '0x'\n{% else %}\n {{ ref('bronze__balances_native_fr') }}\nWHERE\n DATA :result :: STRING <> '0x'\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY balances_native_daily_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__balances_native", "package": null, "version": null}, {"name": "bronze__balances_native_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__balances_native", "model.fsc_evm.bronze__balances_native_fr"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/silver/silver__balances_native_daily.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_date\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"dynamic_range\",\n \"block_number\"\n ],\n \"materialized\": \"incremental\",\n \"merge_exclude_columns\": [\n \"inserted_timestamp\"\n ],\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"silver\",\n \"balances\",\n \"native\",\n \"phase_4\"\n ],\n \"unique_key\": \"balances_native_daily_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends on: {{ ref('bronze__balances_native') }}\n{{ config(\n materialized = 'incremental',\n unique_key = 'balances_native_daily_id',\n cluster_by = ['block_date'],\n incremental_predicates = [\"dynamic_range\", \"block_number\"],\n merge_exclude_columns = [\"inserted_timestamp\"],\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['silver','balances','native','phase_4']\n) }}\n\nSELECT\n VALUE :\"BLOCK_NUMBER\" :: NUMBER AS block_number,\n (\n VALUE :\"BLOCK_DATE_UNIX\" :: TIMESTAMP\n ) :: DATE AS block_date,\n VALUE :\"ADDRESS\" :: STRING AS address,\n DATA :result :: STRING AS balance_hex,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['block_date','address']\n ) }} AS balances_native_daily_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n\n{% if is_incremental() %}\n{{ ref('bronze__balances_native') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01')\n FROM\n {{ this }}\n )\n AND DATA :result :: STRING <> '0x'\n{% else %}\n {{ ref('bronze__balances_native_fr') }}\nWHERE\n DATA :result :: STRING <> '0x'\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY balances_native_daily_id\nORDER BY\n _inserted_timestamp DESC)) = 1\n*/\n\n-- depends on: polygon.bronze.balances_native\n\n\nSELECT\n VALUE :\"BLOCK_NUMBER\" :: NUMBER AS block_number,\n (\n VALUE :\"BLOCK_DATE_UNIX\" :: TIMESTAMP\n ) :: DATE AS block_date,\n VALUE :\"ADDRESS\" :: STRING AS address,\n DATA :result :: STRING AS balance_hex,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(block_date as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(address as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS balances_native_daily_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'ac90a3b1-79f8-42b7-9f7d-761d1c38b2db' AS _invocation_id\nFROM\n\n\npolygon.bronze.balances_native\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01')\n FROM\n polygon.silver.balances_native_daily\n )\n AND DATA :result :: STRING <> '0x'\n\n\nqualify(ROW_NUMBER() over (PARTITION BY balances_native_daily_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__balances_native_daily_records": {"database": "polygon", "schema": "streamline", "name": "streamline__balances_native_daily_records", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/native/streamline/streamline__balances_native_daily_records.sql", "original_file_path": "models/balances_package/native/streamline/streamline__balances_native_daily_records.sql", "unique_id": "model.fsc_evm.streamline__balances_native_daily_records", "fqn": ["fsc_evm", "balances_package", "native", "streamline", "streamline__balances_native_daily_records"], "alias": "balances_native_daily_records", "checksum": {"name": "sha256", "checksum": "c55a6c9c54e869b3b450791917fcbd4f688d383a71b2f2fa1ee31579fdd6ac76"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "balances", "records", "native", "phase_4"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "balances_native_daily_records_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "block_date"}, "tags": ["streamline", "balances", "records", "native", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "balances_native_daily_records_id", "cluster_by": "block_date", "full_refresh": false, "tags": ["streamline", "balances", "records", "native", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018422.6023955, "relation_name": "polygon.streamline.balances_native_daily_records", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"incremental\",\n unique_key = \"balances_native_daily_records_id\",\n cluster_by = \"block_date\",\n full_refresh = vars.GLOBAL_STREAMLINE_FR_ENABLED,\n tags = ['streamline','balances','records','native','phase_4']\n) }}\n\nWITH traces AS (\n SELECT\n block_number,\n block_timestamp,\n from_address AS address1,\n to_address AS address2\n FROM\n {{ ref('core__fact_traces') }}\n WHERE\n value > 0\n AND type NOT IN (\n 'DELEGATECALL',\n 'STATICCALL'\n )\n {% if is_incremental() %}\n AND modified_timestamp >= (\n SELECT MAX(modified_timestamp) - INTERVAL '72 hours'\n FROM {{ this }}\n )\n {% endif %}\n),\ntx_fees AS (\n SELECT\n block_number,\n block_timestamp,\n from_address AS address\n FROM\n {{ ref('core__fact_transactions') }}\n WHERE\n tx_fee > 0\n AND from_address <> '0x0000000000000000000000000000000000000000'\n {% if is_incremental() %}\n AND modified_timestamp >= (\n SELECT MAX(modified_timestamp) - INTERVAL '72 hours'\n FROM {{ this }}\n )\n {% endif %}\n),\nnative_transfers_snapshot AS (\n SELECT\n DISTINCT \n ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE AS block_date,\n address1 AS address\n FROM\n traces\n WHERE\n address1 <> '0x0000000000000000000000000000000000000000'\n AND block_timestamp :: DATE <= ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE\n UNION\n SELECT\n DISTINCT \n ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE AS block_date,\n address2 AS address\n FROM\n traces\n WHERE\n address2 <> '0x0000000000000000000000000000000000000000'\n AND block_timestamp :: DATE <= ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE\n UNION\n SELECT\n DISTINCT \n ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE AS block_date,\n address\n FROM\n tx_fees\n WHERE\n block_timestamp :: DATE <= ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE\n),\nnative_transfers_history AS (\n SELECT\n DISTINCT \n block_timestamp :: DATE AS block_date,\n address1 AS address\n FROM\n traces\n WHERE\n address1 <> '0x0000000000000000000000000000000000000000'\n AND block_date > ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE\n UNION\n SELECT\n DISTINCT \n block_timestamp :: DATE AS block_date,\n address2 AS address\n FROM\n traces\n WHERE\n address2 <> '0x0000000000000000000000000000000000000000'\n AND block_date > ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE\n UNION\n SELECT\n DISTINCT \n block_timestamp :: DATE AS block_date,\n address\n FROM\n tx_fees\n WHERE\n block_date > ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE\n),\nall_transfers AS (\n SELECT * FROM native_transfers_snapshot\n UNION\n SELECT * FROM native_transfers_history\n)\nSELECT\n block_date,\n address,\n {{ dbt_utils.generate_surrogate_key(['block_date', 'address']) }} AS balances_native_daily_records_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n all_transfers qualify (ROW_NUMBER() over (PARTITION BY balances_native_daily_records_id\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.core__fact_traces", "model.fsc_evm.core__fact_transactions"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__balances_native_daily_realtime": {"database": "polygon", "schema": "streamline", "name": "streamline__balances_native_daily_realtime", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/native/streamline/realtime/streamline__balances_native_daily_realtime.sql", "original_file_path": "models/balances_package/native/streamline/realtime/streamline__balances_native_daily_realtime.sql", "unique_id": "model.fsc_evm.streamline__balances_native_daily_realtime", "fqn": ["fsc_evm", "balances_package", "native", "streamline", "realtime", "streamline__balances_native_daily_realtime"], "alias": "balances_native_daily_realtime", "checksum": {"name": "sha256", "checksum": "173b1c997a18d2f9d11b47fba78594c6f74302bf6e0c444a8eb09cfc45dec10b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "balances", "realtime", "native", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "balances", "realtime", "native", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "balances", "realtime", "native", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018422.9224114, "relation_name": "polygon.streamline.balances_native_daily_realtime", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','balances','realtime','native','phase_4']\n) }}\n\nSELECT \n *\nFROM\n {{ ref('streamline__balances_native_daily_realtime_requests') }}\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = {\n \"external_table\": 'balances_native',\n \"sql_limit\": vars.BALANCES_SL_NATIVE_DAILY_REALTIME_SQL_LIMIT,\n \"producer_batch_size\": vars.BALANCES_SL_NATIVE_DAILY_REALTIME_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.BALANCES_SL_NATIVE_DAILY_REALTIME_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\": vars.BALANCES_SL_NATIVE_DAILY_REALTIME_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\": 'balances_native_daily_realtime'\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n\n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "streamline__balances_native_daily_realtime_requests", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.streamline__balances_native_daily_realtime_requests"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__balances_native_daily_realtime_requests": {"database": "polygon", "schema": "streamline", "name": "streamline__balances_native_daily_realtime_requests", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/native/streamline/realtime/streamline__balances_native_daily_realtime_requests.sql", "original_file_path": "models/balances_package/native/streamline/realtime/streamline__balances_native_daily_realtime_requests.sql", "unique_id": "model.fsc_evm.streamline__balances_native_daily_realtime_requests", "fqn": ["fsc_evm", "balances_package", "native", "streamline", "realtime", "streamline__balances_native_daily_realtime_requests"], "alias": "balances_native_daily_realtime_requests", "checksum": {"name": "sha256", "checksum": "7f7645e543bf9e27360201fd9468092ef009030a4d5a3875b235585bd7c7545b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "balances", "realtime", "native", "phase_4"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "balances", "realtime", "native", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "table", "tags": ["streamline", "balances", "realtime", "native", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018423.239289, "relation_name": "polygon.streamline.balances_native_daily_realtime_requests", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"table\",\n tags = ['streamline','balances','realtime','native','phase_4']\n) }}\n\nWITH last_x_days AS (\n\n SELECT\n block_number,\n block_date\n FROM\n {{ ref(\"_max_block_by_date\") }}\n WHERE block_date >= DATEADD('day', {{ vars.BALANCES_SL_DAILY_REALTIME_LOOKBACK_DAYS }}, SYSDATE())\n),\nto_do AS (\n SELECT\n DISTINCT\n d.block_number,\n d.block_date,\n t.address\n FROM\n {{ ref(\"streamline__balances_native_daily_records\") }} t\n INNER JOIN last_x_days d \n ON t.block_date = d.block_date\n --max daily block_number from 1 day ago, for each address\n WHERE\n t.block_date IS NOT NULL\n EXCEPT\n SELECT\n block_number,\n block_date,\n address\n FROM\n {{ ref(\"streamline__balances_native_daily_complete\") }}\n WHERE\n block_date >= (\n SELECT MIN(block_date)\n FROM last_x_days\n )\n AND block_date IS NOT NULL\n AND _inserted_timestamp :: DATE >= DATEADD(\n 'day',\n -7,\n SYSDATE()\n )\n)\nSELECT\n block_number,\n DATE_PART('EPOCH_SECONDS', block_date) :: INT AS block_date_unix,\n address,\n ROUND(\n block_number,\n -3\n ) AS partition_key,\n OBJECT_CONSTRUCT(\n 'data', OBJECT_CONSTRUCT(\n 'id',\n CONCAT(\n address,\n '-',\n block_number\n ),\n 'jsonrpc',\n '2.0',\n 'method',\n 'eth_getBalance',\n 'params',\n ARRAY_CONSTRUCT(address, utils.udf_int_to_hex(block_number))\n ),\n 'headers', OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'x-fsc-livequery', 'true'\n ),\n 'method', 'POST',\n 'secret_name', '{{ vars.GLOBAL_NODE_VAULT_PATH }}',\n 'url', '{{ vars.GLOBAL_NODE_URL }}'\n ) AS request\nFROM\n to_do\nORDER BY partition_key DESC, block_number DESC\n\nLIMIT {{ vars.BALANCES_SL_NATIVE_DAILY_REALTIME_SQL_LIMIT }}", "language": "sql", "refs": [{"name": "_max_block_by_date", "package": null, "version": null}, {"name": "streamline__balances_native_daily_records", "package": null, "version": null}, {"name": "streamline__balances_native_daily_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm._max_block_by_date", "model.fsc_evm.streamline__balances_native_daily_records", "model.fsc_evm.streamline__balances_native_daily_complete"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__balances_native_daily_complete": {"database": "polygon", "schema": "streamline", "name": "streamline__balances_native_daily_complete", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/native/streamline/complete/streamline__balances_native_daily_complete.sql", "original_file_path": "models/balances_package/native/streamline/complete/streamline__balances_native_daily_complete.sql", "unique_id": "model.fsc_evm.streamline__balances_native_daily_complete", "fqn": ["fsc_evm", "balances_package", "native", "streamline", "complete", "streamline__balances_native_daily_complete"], "alias": "balances_native_daily_complete", "checksum": {"name": "sha256", "checksum": "17bb45eb02631c333c6527073217c31ebb55133fb5954a610c696f715cecb4d1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "balances", "complete", "native", "phase_4"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(address)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "balances_native_daily_complete_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "ROUND(block_number, -3)"}, "tags": ["streamline", "balances", "complete", "native", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "balances_native_daily_complete_id", "cluster_by": "ROUND(block_number, -3)", "full_refresh": false, "tags": ["streamline", "balances", "complete", "native", "phase_4"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018423.5522094, "relation_name": "polygon.streamline.balances_native_daily_complete", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n-- depends_on: {{ ref('bronze__balances_native') }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"balances_native_daily_complete_id\",\n cluster_by = \"ROUND(block_number, -3)\",\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(address)\",\n full_refresh = vars.GLOBAL_STREAMLINE_FR_ENABLED,\n tags = ['streamline','balances','complete','native','phase_4']\n) }}\n{# Main query starts here #}\n\nSELECT\n VALUE :\"BLOCK_NUMBER\" :: NUMBER AS block_number,\n (\n VALUE :\"BLOCK_DATE_UNIX\" :: TIMESTAMP\n ) :: DATE AS block_date,\n VALUE :\"ADDRESS\" :: STRING AS address,\n {{ dbt_utils.generate_surrogate_key(['block_date', 'address']) }} AS balances_native_daily_complete_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n\n{% if is_incremental() %}\n{{ ref('bronze__balances_native') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01' :: TIMESTAMP) AS _inserted_timestamp\n FROM\n {{ this }})\n {% else %}\n {{ ref('bronze__balances_native_fr') }}\n {% endif %}\n\n qualify (ROW_NUMBER() over (PARTITION BY balances_native_daily_complete_id\n ORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__balances_native", "package": null, "version": null}, {"name": "bronze__balances_native_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__balances_native", "model.fsc_evm.bronze__balances_native_fr"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__balances_native_daily_history_requests": {"database": "polygon", "schema": "streamline", "name": "streamline__balances_native_daily_history_requests", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/native/streamline/history/streamline__balances_native_daily_history_requests.sql", "original_file_path": "models/balances_package/native/streamline/history/streamline__balances_native_daily_history_requests.sql", "unique_id": "model.fsc_evm.streamline__balances_native_daily_history_requests", "fqn": ["fsc_evm", "balances_package", "native", "streamline", "history", "streamline__balances_native_daily_history_requests"], "alias": "balances_native_daily_history_requests", "checksum": {"name": "sha256", "checksum": "9d6e434a463142ebe4eb418675de0c99dd4de77ad8eb196da1c149b469de3de6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "balances", "history", "native", "phase_4"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "balances", "history", "native", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "table", "tags": ["streamline", "balances", "history", "native", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018423.8687615, "relation_name": "polygon.streamline.balances_native_daily_history_requests", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"table\",\n tags = ['streamline','balances','history','native','phase_4']\n) }}\n\nWITH last_x_days AS (\n\n SELECT\n block_number,\n block_date\n FROM\n {{ ref(\"_max_block_by_date\") }}\n WHERE block_date >= ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE\n),\nto_do AS (\n SELECT\n DISTINCT\n d.block_number,\n d.block_date,\n t.address\n FROM\n {{ ref(\"streamline__balances_native_daily_records\") }} t\n INNER JOIN last_x_days d \n ON t.block_date = d.block_date\n --max daily block_number during the selected period, for each address\n WHERE\n t.block_date IS NOT NULL\n AND d.block_date < (\n SELECT MAX(block_date)\n FROM last_x_days\n ) \n EXCEPT\n SELECT\n block_number,\n block_date,\n address\n FROM\n {{ ref(\"streamline__balances_native_daily_complete\") }}\n WHERE block_date IS NOT NULL\n)\nSELECT\n block_number,\n DATE_PART('EPOCH_SECONDS', block_date) :: INT AS block_date_unix,\n address,\n IFF(\n block_date = ('{{ vars.BALANCES_SL_START_DATE }}' :: TIMESTAMP) :: DATE,\n DATE_PART('EPOCH_SECONDS', SYSDATE() :: DATE) :: INT,\n ROUND(\n block_number,\n -3\n )\n ) AS partition_key,\n OBJECT_CONSTRUCT(\n 'data', OBJECT_CONSTRUCT(\n 'id',\n CONCAT(\n address,\n '-',\n block_number\n ),\n 'jsonrpc',\n '2.0',\n 'method',\n 'eth_getBalance',\n 'params',\n ARRAY_CONSTRUCT(address, utils.udf_int_to_hex(block_number))\n ),\n 'headers', OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'x-fsc-livequery', 'true'\n ),\n 'method', 'POST',\n 'secret_name', '{{ vars.GLOBAL_NODE_VAULT_PATH }}',\n 'url', '{{ vars.GLOBAL_NODE_URL }}'\n ) AS request\nFROM\n to_do\nORDER BY partition_key DESC, block_number DESC\n\nLIMIT {{ vars.BALANCES_SL_NATIVE_DAILY_HISTORY_SQL_LIMIT }}", "language": "sql", "refs": [{"name": "_max_block_by_date", "package": null, "version": null}, {"name": "streamline__balances_native_daily_records", "package": null, "version": null}, {"name": "streamline__balances_native_daily_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm._max_block_by_date", "model.fsc_evm.streamline__balances_native_daily_records", "model.fsc_evm.streamline__balances_native_daily_complete"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.streamline__balances_native_daily_history": {"database": "polygon", "schema": "streamline", "name": "streamline__balances_native_daily_history", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/native/streamline/history/streamline__balances_native_daily_history.sql", "original_file_path": "models/balances_package/native/streamline/history/streamline__balances_native_daily_history.sql", "unique_id": "model.fsc_evm.streamline__balances_native_daily_history", "fqn": ["fsc_evm", "balances_package", "native", "streamline", "history", "streamline__balances_native_daily_history"], "alias": "balances_native_daily_history", "checksum": {"name": "sha256", "checksum": "bd2a63d683879a02fcac6d9829e361880576f1e01e80bb772e70200527e4b5a0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline", "balances", "history", "native", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline", "balances", "history", "native", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["streamline", "balances", "history", "native", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018424.1834755, "relation_name": "polygon.streamline.balances_native_daily_history", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['streamline','balances','history','native','phase_4']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('streamline__balances_native_daily_history_requests') }}\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = {\n \"external_table\": 'balances_native',\n \"sql_limit\": vars.BALANCES_SL_NATIVE_DAILY_HISTORY_SQL_LIMIT,\n \"producer_batch_size\": vars.BALANCES_SL_NATIVE_DAILY_HISTORY_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.BALANCES_SL_NATIVE_DAILY_HISTORY_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\": vars.BALANCES_SL_NATIVE_DAILY_HISTORY_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\": 'balances_native_daily_history'\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n\n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "streamline__balances_native_daily_history_requests", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.streamline__balances_native_daily_history_requests"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.balances__ez_balances_native_daily": {"database": "polygon", "schema": "balances", "name": "balances__ez_balances_native_daily", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/native/gold/balances__ez_balances_native_daily.sql", "original_file_path": "models/balances_package/native/gold/balances__ez_balances_native_daily.sql", "unique_id": "model.fsc_evm.balances__ez_balances_native_daily", "fqn": ["fsc_evm", "balances_package", "native", "gold", "balances__ez_balances_native_daily"], "alias": "ez_balances_native_daily", "checksum": {"name": "sha256", "checksum": "d459c493aeca55072b8d215b68d0f8a67a57d98bc77b4bdea3eaa33851487973"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["gold", "balances", "native", "phase_4"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "ez_balances_native_daily_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_date"], "incremental_predicates": ["dynamic_range", "block_number"], "merge_exclude_columns": ["inserted_timestamp"]}, "tags": ["gold", "balances", "native", "phase_4"], "description": "## What\n\nThis table provides daily native asset balance snapshots (ETH, AVAX, BNB, etc.) by making direct `eth_getBalance` RPC calls at the end of each day. **Important**: This table only includes a balance record for a given address on days when that address had native asset activity. Balances are not rolled forward for every address every day. This means if an address holds native assets but has no activity on a given day, no balance record will be created for that day. This provides an efficient way to track native asset holdings with decimal adjustments and USD valuations where available. Historical native balances data available, starting from `2025-06-10`.\n\n## Key Use Cases\n\n- Daily portfolio tracking and native asset balance monitoring\n- Historical native asset balance analysis and trend identification\n- Whale tracking and large holder distribution analysis\n- Daily balance snapshots for reporting and analytics\n- Native asset concentration analysis across addresses\n- Daily balance-based yield and return calculations for native assets\n- End-of-day balance reconciliation and accounting\n\n## Important Relationships\n\n- **Join with fact_blocks**: Use `block_number` for block metadata and timestamps\n- **Join with dim_labels**: Use `address` for entity identification and categorization\n- **Join with ez_prices_hourly**: USD valuations already included but can be refreshed\n- **Join with ez_balances_erc20_daily**: Compare with ERC20 token daily balances\n- **Join with ez_native_transfers**: Compare daily balances with transfer activity\n- **Join with core__fact_traces**: Analyze native asset movement patterns\n\n## Commonly-used Fields\n\n- `address`: The account address holding the native asset balance\n- `balance`: Native asset balance at end of day, decimal adjusted to standard units\n- `balance_usd`: USD value of the native asset balance at end of day\n- `balance_raw`: Raw balance in smallest unit (Wei) without decimal adjustment\n- `balance_precise`: Precise decimal-adjusted balance as string\n- `balance_hex`: Hexadecimal balance as returned by eth_getBalance\n- `decimals`: Number of decimal places (always 18 for native assets)\n- `block_date`: The date for which this balance snapshot was taken\n\n## Sample queries\n\n**Daily Native Asset Holdings by Address**\n```sql\nSELECT \n block_date,\n address,\n balance,\n balance_usd,\n LAG(balance) OVER (\n PARTITION BY address \n ORDER BY block_date\n ) AS prev_balance,\n balance - LAG(balance) OVER (\n PARTITION BY address \n ORDER BY block_date\n ) AS daily_change\nFROM .balances.ez_balances_native_daily\nWHERE address = LOWER('0x1234567890123456789012345678901234567890')\n AND block_date >= CURRENT_DATE - 30\n AND balance > 0\nORDER BY block_date DESC;\n```\n\n**Native Asset Holder Distribution Trends**\n```sql\nSELECT \n block_date,\n COUNT(DISTINCT address) AS total_holders,\n COUNT(DISTINCT CASE WHEN balance >= 1 THEN address END) AS holders_1_plus,\n COUNT(DISTINCT CASE WHEN balance >= 10 THEN address END) AS holders_10_plus,\n COUNT(DISTINCT CASE WHEN balance >= 100 THEN address END) AS holders_100_plus,\n COUNT(DISTINCT CASE WHEN balance >= 1000 THEN address END) AS holders_1000_plus,\n SUM(balance) AS total_native_tracked,\n AVG(balance) AS avg_balance,\n MEDIAN(balance) AS median_balance,\n MAX(balance) AS max_balance\nFROM .balances.ez_balances_native_daily\nWHERE block_date >= CURRENT_DATE - 90\n AND balance > 0\nGROUP BY 1\nORDER BY 1 DESC;\n```\n\n**Whale Activity Monitoring**\n```sql\n-- Track large native asset holders and their balance changes\nWITH whale_balances AS (\n SELECT \n address,\n block_date,\n balance,\n balance_usd,\n LAG(balance) OVER (\n PARTITION BY address \n ORDER BY block_date\n ) AS prev_balance,\n LAG(balance_usd) OVER (\n PARTITION BY address \n ORDER BY block_date\n ) AS prev_balance_usd\n FROM .balances.ez_balances_native_daily\n WHERE balance >= 1000 -- Focus on large holders\n AND block_date >= CURRENT_DATE - 7\n),\nwhale_changes AS (\n SELECT \n *,\n balance - prev_balance AS balance_change,\n balance_usd - prev_balance_usd AS balance_change_usd,\n CASE \n WHEN prev_balance > 0 \n THEN ((balance - prev_balance) / prev_balance) * 100 \n ELSE NULL \n END AS pct_change\n FROM whale_balances\n WHERE prev_balance IS NOT NULL\n)\nSELECT \n block_date,\n address,\n balance,\n balance_change,\n balance_change_usd,\n pct_change,\n CASE \n WHEN balance_change > 100 THEN 'Large Increase'\n WHEN balance_change > 10 THEN 'Moderate Increase'\n WHEN balance_change < -100 THEN 'Large Decrease'\n WHEN balance_change < -10 THEN 'Moderate Decrease'\n ELSE 'Stable'\n END AS change_category\nFROM whale_changes\nWHERE ABS(balance_change) > 5 -- Only show meaningful changes\nORDER BY ABS(balance_change_usd) DESC\nLIMIT 100;\n```\n\n**Daily Balance Distribution Analysis**\n```sql\n-- Analyze the distribution of native asset balances\nSELECT \n block_date,\n CASE \n WHEN balance < 0.001 THEN 'Dust (<0.001)'\n WHEN balance < 0.01 THEN 'Very Small (0.001-0.01)'\n WHEN balance < 0.1 THEN 'Small (0.01-0.1)'\n WHEN balance < 1 THEN 'Medium (0.1-1)'\n WHEN balance < 10 THEN 'Large (1-10)'\n WHEN balance < 100 THEN 'Very Large (10-100)'\n WHEN balance < 1000 THEN 'Whale (100-1000)'\n ELSE 'Super Whale (1000+)'\n END AS balance_category,\n COUNT(DISTINCT address) AS address_count,\n SUM(balance) AS total_balance,\n SUM(balance_usd) AS total_balance_usd,\n AVG(balance) AS avg_balance,\n PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY balance) AS median_balance\nFROM .balances.ez_balances_native_daily\nWHERE block_date = CURRENT_DATE - 1\n AND balance > 0\nGROUP BY 1, 2\nORDER BY 1 DESC, \n CASE balance_category\n WHEN 'Dust (<0.001)' THEN 1\n WHEN 'Very Small (0.001-0.01)' THEN 2\n WHEN 'Small (0.01-0.1)' THEN 3\n WHEN 'Medium (0.1-1)' THEN 4\n WHEN 'Large (1-10)' THEN 5\n WHEN 'Very Large (10-100)' THEN 6\n WHEN 'Whale (100-1000)' THEN 7\n WHEN 'Super Whale (1000+)' THEN 8\n END;\n```\n\n**Portfolio Value Evolution**\n```sql\n-- Track total portfolio value changes for top holders\nSELECT \n block_date,\n COUNT(DISTINCT address) AS tracked_addresses,\n SUM(balance_usd) AS total_portfolio_value,\n AVG(balance_usd) AS avg_portfolio_value,\n SUM(balance) AS total_native_balance,\n LAG(SUM(balance_usd)) OVER (ORDER BY block_date) AS prev_total_value,\n (SUM(balance_usd) - LAG(SUM(balance_usd)) OVER (ORDER BY block_date)) AS daily_value_change,\n CASE \n WHEN LAG(SUM(balance_usd)) OVER (ORDER BY block_date) > 0\n THEN ((SUM(balance_usd) - LAG(SUM(balance_usd)) OVER (ORDER BY block_date)) / LAG(SUM(balance_usd)) OVER (ORDER BY block_date)) * 100\n ELSE NULL\n END AS daily_pct_change\nFROM .balances.ez_balances_native_daily\nWHERE block_date >= CURRENT_DATE - 30\n AND balance_usd >= 10000 -- Focus on significant holders\nGROUP BY 1\nORDER BY 1 DESC;\n```", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_DATE": {"name": "BLOCK_DATE", "description": "The date for which this balance snapshot represents the end-of-day native asset balance.\n\nExample: '2023-12-15'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "The account address whose native asset balance is recorded in this daily snapshot.\n\nExample: '0x1234567890123456789012345678901234567890'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCE_HEX": {"name": "BALANCE_HEX", "description": "Hexadecimal representation of the native asset balance as returned by the eth_getBalance RPC call.\n\nExample: '0x3b9aca00'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCE_RAW": {"name": "BALANCE_RAW", "description": "Native asset balance in the smallest unit (Wei) without decimal adjustment, as returned by eth_getBalance.\n\nExample: 1000000000000000000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCE_PRECISE": {"name": "BALANCE_PRECISE", "description": "Native asset balance with proper decimal adjustment, returned as a string to preserve precision.\n\nExample: '1.000000000000000000'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCE": {"name": "BALANCE", "description": "Native asset balance with decimal adjustment converted to a float for easier mathematical operations.\n\nExample: 1.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCE_USD": {"name": "BALANCE_USD", "description": "USD value of the native asset balance at the end of the day, calculated using hourly price data.\n\nExample: 2500.75", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_BALANCES_NATIVE_DAILY_ID": {"name": "EZ_BALANCES_NATIVE_DAILY_ID", "description": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/native/gold/balances__ez_balances_native_daily.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "incremental", "unique_key": "ez_balances_native_daily_id", "cluster_by": ["block_date"], "incremental_predicates": ["dynamic_range", "block_number"], "merge_exclude_columns": ["inserted_timestamp"], "full_refresh": false, "tags": ["gold", "balances", "native", "phase_4"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018442.5406718, "relation_name": "polygon.balances.ez_balances_native_daily", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends on: {{ ref('bronze__balances_native') }}\n{{ config(\n materialized = 'incremental',\n unique_key = 'ez_balances_native_daily_id',\n cluster_by = ['block_date'],\n incremental_predicates = [\"dynamic_range\", \"block_number\"],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address)\",\n merge_exclude_columns = [\"inserted_timestamp\"],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n tags = ['gold','balances','native','phase_4']\n) }}\n\nWITH balances AS (\n\n SELECT\n block_number,\n block_date,\n address,\n balance_hex,\n utils.udf_hex_to_int(\n balance_hex\n ) :: bigint AS balance_raw,\n 18 AS decimals,\n utils.udf_decimal_adjust(\n balance_raw,\n 18\n ) AS balance_precise,\n balance_precise :: FLOAT AS balance,\n ROUND(balance * COALESCE(p0.price, p1.price), 2) AS balance_usd\n FROM\n {{ ref('silver__balances_native_daily') }} s\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p0\n ON DATEADD(\n 'hour',\n 23,\n s.block_date\n ) = p0.hour --last hourly price of the day\n AND p0.token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p1\n ON DATEADD(\n 'hour',\n 23,\n s.block_date\n ) = p1.hour\n AND p1.is_native\n\n{% if is_incremental() %}\nWHERE\n s.modified_timestamp >= (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01')\n FROM\n {{ this }}\n )\n{% endif %}\n)\n\n{% if is_incremental() %},\nmissing_data AS (\n SELECT\n block_number,\n block_date,\n address,\n t.decimals,\n balance_hex,\n balance_raw,\n balance_precise,\n balance,\n ROUND(balance * COALESCE(p0.price, p1.price), 2) AS balance_usd_heal\n FROM\n {{ this }}\n t\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p0\n ON DATEADD(\n 'hour',\n 23,\n t.block_date\n ) = p0.hour\n AND p0.token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p1\n ON DATEADD(\n 'hour',\n 23,\n t.block_date\n ) = p1.hour\n AND p1.is_native\n WHERE\n t.balance_usd IS NULL\n AND COALESCE(\n p0.price,\n p1.price\n ) IS NOT NULL\n)\n{% endif %},\nFINAL AS (\n SELECT\n block_number,\n block_date,\n address,\n decimals,\n balance_hex,\n balance_raw,\n balance_precise,\n balance,\n balance_usd\n FROM\n balances\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n block_number,\n block_date,\n address,\n decimals,\n balance_hex,\n balance_raw,\n balance_precise,\n balance,\n balance_usd_heal AS balance_usd\nFROM\n missing_data\n{% endif %}\n)\nSELECT\n block_number,\n block_date,\n address,\n decimals,\n balance_hex,\n balance_raw,\n balance_precise,\n balance,\n balance_usd,\n {{ dbt_utils.generate_surrogate_key(\n ['block_date','address']\n ) }} AS ez_balances_native_daily_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n FINAL \n \n{% if is_incremental() %}\nqualify(ROW_NUMBER() over (PARTITION BY ez_balances_native_daily_id\nORDER BY\n modified_timestamp DESC)) = 1\n{% endif %}", "language": "sql", "refs": [{"name": "bronze__balances_native", "package": null, "version": null}, {"name": "silver__balances_native_daily", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.bronze__balances_native", "model.fsc_evm.silver__balances_native_daily", "model.fsc_evm.price__ez_prices_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/gold/balances__ez_balances_native_daily.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"cluster_by\": [\n \"block_date\"\n ],\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"full_refresh\": false,\n \"grants\": {},\n \"incremental_predicates\": [\n \"dynamic_range\",\n \"block_number\"\n ],\n \"materialized\": \"incremental\",\n \"merge_exclude_columns\": [\n \"inserted_timestamp\"\n ],\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address)\",\n \"transaction\": true\n },\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"gold\",\n \"balances\",\n \"native\",\n \"phase_4\"\n ],\n \"unique_key\": \"ez_balances_native_daily_id\"\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends on: {{ ref('bronze__balances_native') }}\n{{ config(\n materialized = 'incremental',\n unique_key = 'ez_balances_native_daily_id',\n cluster_by = ['block_date'],\n incremental_predicates = [\"dynamic_range\", \"block_number\"],\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(address)\",\n merge_exclude_columns = [\"inserted_timestamp\"],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n tags = ['gold','balances','native','phase_4']\n) }}\n\nWITH balances AS (\n\n SELECT\n block_number,\n block_date,\n address,\n balance_hex,\n utils.udf_hex_to_int(\n balance_hex\n ) :: bigint AS balance_raw,\n 18 AS decimals,\n utils.udf_decimal_adjust(\n balance_raw,\n 18\n ) AS balance_precise,\n balance_precise :: FLOAT AS balance,\n ROUND(balance * COALESCE(p0.price, p1.price), 2) AS balance_usd\n FROM\n {{ ref('silver__balances_native_daily') }} s\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p0\n ON DATEADD(\n 'hour',\n 23,\n s.block_date\n ) = p0.hour --last hourly price of the day\n AND p0.token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p1\n ON DATEADD(\n 'hour',\n 23,\n s.block_date\n ) = p1.hour\n AND p1.is_native\n\n{% if is_incremental() %}\nWHERE\n s.modified_timestamp >= (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01')\n FROM\n {{ this }}\n )\n{% endif %}\n)\n\n{% if is_incremental() %},\nmissing_data AS (\n SELECT\n block_number,\n block_date,\n address,\n t.decimals,\n balance_hex,\n balance_raw,\n balance_precise,\n balance,\n ROUND(balance * COALESCE(p0.price, p1.price), 2) AS balance_usd_heal\n FROM\n {{ this }}\n t\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p0\n ON DATEADD(\n 'hour',\n 23,\n t.block_date\n ) = p0.hour\n AND p0.token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p1\n ON DATEADD(\n 'hour',\n 23,\n t.block_date\n ) = p1.hour\n AND p1.is_native\n WHERE\n t.balance_usd IS NULL\n AND COALESCE(\n p0.price,\n p1.price\n ) IS NOT NULL\n)\n{% endif %},\nFINAL AS (\n SELECT\n block_number,\n block_date,\n address,\n decimals,\n balance_hex,\n balance_raw,\n balance_precise,\n balance,\n balance_usd\n FROM\n balances\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n block_number,\n block_date,\n address,\n decimals,\n balance_hex,\n balance_raw,\n balance_precise,\n balance,\n balance_usd_heal AS balance_usd\nFROM\n missing_data\n{% endif %}\n)\nSELECT\n block_number,\n block_date,\n address,\n decimals,\n balance_hex,\n balance_raw,\n balance_precise,\n balance,\n balance_usd,\n {{ dbt_utils.generate_surrogate_key(\n ['block_date','address']\n ) }} AS ez_balances_native_daily_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n FINAL \n \n{% if is_incremental() %}\nqualify(ROW_NUMBER() over (PARTITION BY ez_balances_native_daily_id\nORDER BY\n modified_timestamp DESC)) = 1\n{% endif %}\n*/\n\n-- depends on: polygon.bronze.balances_native\n\n\nWITH balances AS (\n\n SELECT\n block_number,\n block_date,\n address,\n balance_hex,\n utils.udf_hex_to_int(\n balance_hex\n ) :: bigint AS balance_raw,\n 18 AS decimals,\n utils.udf_decimal_adjust(\n balance_raw,\n 18\n ) AS balance_precise,\n balance_precise :: FLOAT AS balance,\n ROUND(balance * COALESCE(p0.price, p1.price), 2) AS balance_usd\n FROM\n polygon.silver.balances_native_daily s\n LEFT JOIN polygon.price.ez_prices_hourly\n p0\n ON DATEADD(\n 'hour',\n 23,\n s.block_date\n ) = p0.hour --last hourly price of the day\n AND p0.token_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n LEFT JOIN polygon.price.ez_prices_hourly\n p1\n ON DATEADD(\n 'hour',\n 23,\n s.block_date\n ) = p1.hour\n AND p1.is_native\n\n\nWHERE\n s.modified_timestamp >= (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01')\n FROM\n polygon.balances.ez_balances_native_daily\n )\n\n)\n\n,\nmissing_data AS (\n SELECT\n block_number,\n block_date,\n address,\n t.decimals,\n balance_hex,\n balance_raw,\n balance_precise,\n balance,\n ROUND(balance * COALESCE(p0.price, p1.price), 2) AS balance_usd_heal\n FROM\n polygon.balances.ez_balances_native_daily\n t\n LEFT JOIN polygon.price.ez_prices_hourly\n p0\n ON DATEADD(\n 'hour',\n 23,\n t.block_date\n ) = p0.hour\n AND p0.token_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n LEFT JOIN polygon.price.ez_prices_hourly\n p1\n ON DATEADD(\n 'hour',\n 23,\n t.block_date\n ) = p1.hour\n AND p1.is_native\n WHERE\n t.balance_usd IS NULL\n AND COALESCE(\n p0.price,\n p1.price\n ) IS NOT NULL\n)\n,\nFINAL AS (\n SELECT\n block_number,\n block_date,\n address,\n decimals,\n balance_hex,\n balance_raw,\n balance_precise,\n balance,\n balance_usd\n FROM\n balances\n\n\nUNION ALL\nSELECT\n block_number,\n block_date,\n address,\n decimals,\n balance_hex,\n balance_raw,\n balance_precise,\n balance,\n balance_usd_heal AS balance_usd\nFROM\n missing_data\n\n)\nSELECT\n block_number,\n block_date,\n address,\n decimals,\n balance_hex,\n balance_raw,\n balance_precise,\n balance,\n balance_usd,\n \n \nmd5(cast(coalesce(cast(block_date as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(address as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS ez_balances_native_daily_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n FINAL \n \n\nqualify(ROW_NUMBER() over (PARTITION BY ez_balances_native_daily_id\nORDER BY\n modified_timestamp DESC)) = 1\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__ez_balances_native_daily_full": {"database": "polygon", "schema": "test_gold", "name": "test_gold__ez_balances_native_daily_full", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_full.sql", "original_file_path": "models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_full.sql", "unique_id": "model.fsc_evm.test_gold__ez_balances_native_daily_full", "fqn": ["fsc_evm", "balances_package", "native", "gold", "tests", "native", "test_gold__ez_balances_native_daily_full"], "alias": "ez_balances_native_daily_full", "checksum": {"name": "sha256", "checksum": "5a29b21a67677b8d25c96aa3800c1421f377c69d63c69d6d296e111df1ac0b76"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "balances", "native", "daily", "full_test", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "balances", "native", "daily", "full_test", "phase_4"], "description": "", "columns": {"BLOCK_DATE": {"name": "BLOCK_DATE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCE": {"name": "BALANCE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_BALANCES_NATIVE_DAILY_ID": {"name": "EZ_BALANCES_NATIVE_DAILY_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "balances", "native", "daily", "full_test", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.5417209, "relation_name": "polygon.test_gold.ez_balances_native_daily_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','balances','native','daily','full_test','phase_4']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('balances__ez_balances_native_daily') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "balances__ez_balances_native_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.balances__ez_balances_native_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_full.sql", "compiled": true, "compiled_code": "\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"balances\",\n \"native\",\n \"daily\",\n \"full_test\",\n \"phase_4\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','balances','native','daily','full_test','phase_4']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('balances__ez_balances_native_daily') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.balances.ez_balances_native_daily\n\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.test_gold__ez_balances_native_daily_recent": {"database": "polygon", "schema": "test_gold", "name": "test_gold__ez_balances_native_daily_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_recent.sql", "original_file_path": "models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_recent.sql", "unique_id": "model.fsc_evm.test_gold__ez_balances_native_daily_recent", "fqn": ["fsc_evm", "balances_package", "native", "gold", "tests", "native", "test_gold__ez_balances_native_daily_recent"], "alias": "ez_balances_native_daily_recent", "checksum": {"name": "sha256", "checksum": "29a1fd984f28e91becbaec3e4e47d230d3420521cabf4d7fd7ca5af464c782e0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["test_gold", "balances", "native", "daily", "daily_test", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["test_gold", "balances", "native", "daily", "daily_test", "phase_4"], "description": "", "columns": {"BLOCK_DATE": {"name": "BLOCK_DATE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCE": {"name": "BALANCE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_BALANCES_NATIVE_DAILY_ID": {"name": "EZ_BALANCES_NATIVE_DAILY_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["test_gold", "balances", "native", "daily", "daily_test", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.5724864, "relation_name": "polygon.test_gold.ez_balances_native_daily_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','balances','native','daily','daily_test','phase_4']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('balances__ez_balances_native_daily') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "balances__ez_balances_native_daily", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": ["model.fsc_evm.balances__ez_balances_native_daily", "model.fsc_evm._block_lookback"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_recent.sql", "compiled": true, "compiled_code": "\n\n\n\nwith __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n) /* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"test_gold\",\n \"balances\",\n \"native\",\n \"daily\",\n \"daily_test\",\n \"phase_4\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['test_gold','balances','native','daily','daily_test','phase_4']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('balances__ez_balances_native_daily') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}\n*/\n\n\n\nSELECT\n *\nFROM\n polygon.balances.ez_balances_native_daily\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n __dbt__cte___block_lookback\n )\n\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.fsc_evm._block_lookback", "sql": " __dbt__cte___block_lookback as (\n\n\n\n\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"ephemeral\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": []\n}\n*/\n \n/*\nRaw Code:\n{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% set uses_lookback = vars.MAIN_SL_BLOCK_LOOKBACK_ENABLED %}\n\n{% if not uses_lookback %}\n\nSELECT \n 0 AS block_number\n{% else %}\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n {{ ref(\"core__fact_blocks\") }}\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n{% endif %}\n*/\n\n\n\n\n\n\nSELECT\n COALESCE(MIN(block_number), 0) AS block_number\nFROM\n polygon.core.fact_blocks\nWHERE\n block_timestamp >= DATEADD('hour', -72, TRUNCATE(SYSDATE(), 'HOUR'))\n AND block_timestamp < DATEADD('hour', -71, TRUNCATE(SYSDATE(), 'HOUR'))\n\n\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__balances_native_fr": {"database": "polygon", "schema": "bronze", "name": "bronze__balances_native_fr", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/native/bronze/bronze__balances_native_fr.sql", "original_file_path": "models/balances_package/native/bronze/bronze__balances_native_fr.sql", "unique_id": "model.fsc_evm.bronze__balances_native_fr", "fqn": ["fsc_evm", "balances_package", "native", "bronze", "bronze__balances_native_fr"], "alias": "balances_native_fr", "checksum": {"name": "sha256", "checksum": "4270ec0e54936859cff7cb74474a7e4d2fbb3cefac3a76c4f21a11db704d559a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "balances", "native", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "balances", "native", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "balances", "native", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018425.4413815, "relation_name": "polygon.bronze.balances_native_fr", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','balances','native','phase_4']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'balances_native'\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "balances_native"], ["bronze_streamline", "balances_native"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query_fr", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.balances_native"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/bronze/bronze__balances_native_fr.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"balances\",\n \"native\",\n \"phase_4\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','balances','native','phase_4']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'balances_native'\n) }}\n*/\n\n\n\n\n\n\n\n \n \n WITH meta AS (\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.POLYGON.balances_native'\n )\n ) A\n )\nSELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n, --for streamline 2.0+\n COALESCE(\n s.value :\"BLOCK_NUMBER\" :: STRING,\n s.value :\"block_number\" :: STRING,\n s.metadata :request :\"data\" :id :: STRING,\n PARSE_JSON(\n s.metadata :request :\"data\"\n ) :id :: STRING\n ) :: INT AS block_number\n\n\n\n\n\nFROM\n streamline.POLYGON.balances_native\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \nWHERE\n b.partition_key = s.partition_key\n \n \n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n \n AND DATA IS NOT NULL\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_evm.bronze__balances_native": {"database": "polygon", "schema": "bronze", "name": "bronze__balances_native", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/native/bronze/bronze__balances_native.sql", "original_file_path": "models/balances_package/native/bronze/bronze__balances_native.sql", "unique_id": "model.fsc_evm.bronze__balances_native", "fqn": ["fsc_evm", "balances_package", "native", "bronze", "bronze__balances_native"], "alias": "balances_native", "checksum": {"name": "sha256", "checksum": "f12b6b3e8c37de686b5cdea632351593a8b4d22d8e178fd1f67eed38cc02ab64"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bronze", "balances", "native", "phase_4"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bronze", "balances", "native", "phase_4"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "materialized": "view", "tags": ["bronze", "balances", "native", "phase_4"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018425.6015859, "relation_name": "polygon.bronze.balances_native", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','balances','native','phase_4']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'balances_native'\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "balances_native"], ["bronze_streamline", "balances_native"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query", "macro.fsc_evm.enable_change_tracking"], "nodes": ["source.polygon_models.bronze_streamline.balances_native"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/bronze/bronze__balances_native.sql", "compiled": true, "compiled_code": "\n/* \nDBT Model Config:\n{\n \"access\": \"protected\",\n \"column_types\": {},\n \"contract\": {\n \"alias_types\": true,\n \"enforced\": false\n },\n \"copy_grants\": true,\n \"docs\": {\n \"show\": true\n },\n \"enabled\": true,\n \"grants\": {},\n \"materialized\": \"view\",\n \"meta\": {},\n \"on_configuration_change\": \"apply\",\n \"on_schema_change\": \"append_new_columns\",\n \"packages\": [],\n \"persist_docs\": {\n \"columns\": true,\n \"relation\": true\n },\n \"post-hook\": [\n {\n \"sql\": \"{{ fsc_evm.enable_change_tracking() }}\",\n \"transaction\": true\n }\n ],\n \"pre-hook\": [],\n \"quoting\": {},\n \"tags\": [\n \"bronze\",\n \"balances\",\n \"native\",\n \"phase_4\"\n ]\n}\n*/\n \n/*\nRaw Code:\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['bronze','balances','native','phase_4']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'balances_native'\n) }}\n*/\n\n\n\n\n\n\n\n \n\n WITH meta AS (\n SELECT\n job_created_time AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.POLYGON.balances_native')\n ) A\n )\n SELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n \n\n , --for streamline 2.0+\n COALESCE(\n s.value :\"BLOCK_NUMBER\" :: STRING,\n s.metadata :request :\"data\" :id :: STRING,\n PARSE_JSON(\n s.metadata :request :\"data\"\n ) :id :: STRING\n ) :: INT AS block_number\n \n\n \n\n \n FROM\n streamline.POLYGON.balances_native\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n \n WHERE\n b.partition_key = s.partition_key\n \n \n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n \n AND DATA IS NOT NULL\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "seed.fsc_evm.admin__repos": {"database": "polygon", "schema": "admin", "name": "admin__repos", "resource_type": "seed", "package_name": "fsc_evm", "path": "admin__repos.csv", "original_file_path": "data/admin__repos.csv", "unique_id": "seed.fsc_evm.admin__repos", "fqn": ["fsc_evm", "admin__repos"], "alias": "repos", "checksum": {"name": "sha256", "checksum": "5638caf680ca6f2afb7bf1c9e40c0af97188b9beff60228ed513bddc538cd2c5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018432.9722338, "relation_name": "polygon.admin.repos", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver__balances_erc20_override": {"database": "polygon", "schema": "silver", "name": "silver__balances_erc20_override", "resource_type": "seed", "package_name": "fsc_evm", "path": "balances/silver__balances_erc20_override.csv", "original_file_path": "data/balances/silver__balances_erc20_override.csv", "unique_id": "seed.fsc_evm.silver__balances_erc20_override", "fqn": ["fsc_evm", "balances", "silver__balances_erc20_override"], "alias": "balances_erc20_override", "checksum": {"name": "sha256", "checksum": "6271470c40f11131799d0f92b55bb9ef881c7adeaf8b96cab45224ff4e8d4907"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018432.975017, "relation_name": "polygon.silver.balances_erc20_override", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver_bridge__ccip_chain_seed": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__ccip_chain_seed", "resource_type": "seed", "package_name": "fsc_evm", "path": "curated/defi/bridge/silver_bridge__ccip_chain_seed.csv", "original_file_path": "data/curated/defi/bridge/silver_bridge__ccip_chain_seed.csv", "unique_id": "seed.fsc_evm.silver_bridge__ccip_chain_seed", "fqn": ["fsc_evm", "curated", "defi", "bridge", "silver_bridge__ccip_chain_seed"], "alias": "ccip_chain_seed", "checksum": {"name": "sha256", "checksum": "0d480e64ae8ef5e1704d7b23e9a0e6f37d7d2fdde990db38645ee7addabbd52e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018432.977578, "relation_name": "polygon.silver_bridge.ccip_chain_seed", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver_bridge__cctp_chain_id_seed": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__cctp_chain_id_seed", "resource_type": "seed", "package_name": "fsc_evm", "path": "curated/defi/bridge/silver_bridge__cctp_chain_id_seed.csv", "original_file_path": "data/curated/defi/bridge/silver_bridge__cctp_chain_id_seed.csv", "unique_id": "seed.fsc_evm.silver_bridge__cctp_chain_id_seed", "fqn": ["fsc_evm", "curated", "defi", "bridge", "silver_bridge__cctp_chain_id_seed"], "alias": "cctp_chain_id_seed", "checksum": {"name": "sha256", "checksum": "d1ca1658b8065270824f13f067b8196f52a9e6b57cb03e21d144ebcc29ffeb0c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018432.9801362, "relation_name": "polygon.silver_bridge.cctp_chain_id_seed", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver_bridge__allbridge_chain_id_seed": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__allbridge_chain_id_seed", "resource_type": "seed", "package_name": "fsc_evm", "path": "curated/defi/bridge/silver_bridge__allbridge_chain_id_seed.csv", "original_file_path": "data/curated/defi/bridge/silver_bridge__allbridge_chain_id_seed.csv", "unique_id": "seed.fsc_evm.silver_bridge__allbridge_chain_id_seed", "fqn": ["fsc_evm", "curated", "defi", "bridge", "silver_bridge__allbridge_chain_id_seed"], "alias": "allbridge_chain_id_seed", "checksum": {"name": "sha256", "checksum": "2d808e40326d6c30d0b43a03cf436758ef8c0949c193b7df909b4340ce1d23b7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018432.9828997, "relation_name": "polygon.silver_bridge.allbridge_chain_id_seed", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver_bridge__layerzero_v2_bridge_seed": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__layerzero_v2_bridge_seed", "resource_type": "seed", "package_name": "fsc_evm", "path": "curated/defi/bridge/silver_bridge__layerzero_v2_bridge_seed.csv", "original_file_path": "data/curated/defi/bridge/silver_bridge__layerzero_v2_bridge_seed.csv", "unique_id": "seed.fsc_evm.silver_bridge__layerzero_v2_bridge_seed", "fqn": ["fsc_evm", "curated", "defi", "bridge", "silver_bridge__layerzero_v2_bridge_seed"], "alias": "layerzero_v2_bridge_seed", "checksum": {"name": "sha256", "checksum": "00b629ad0e29f0e0a60ac96fdfee31fd7c8244f3627f3ce42b3579549622d833"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018432.9854093, "relation_name": "polygon.silver_bridge.layerzero_v2_bridge_seed", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver_bridge__everclear_chain_seed": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__everclear_chain_seed", "resource_type": "seed", "package_name": "fsc_evm", "path": "curated/defi/bridge/silver_bridge__everclear_chain_seed.csv", "original_file_path": "data/curated/defi/bridge/silver_bridge__everclear_chain_seed.csv", "unique_id": "seed.fsc_evm.silver_bridge__everclear_chain_seed", "fqn": ["fsc_evm", "curated", "defi", "bridge", "silver_bridge__everclear_chain_seed"], "alias": "everclear_chain_seed", "checksum": {"name": "sha256", "checksum": "515118e71d6d4e059bb48a915c70331f4ff4a2fd21dd0ce20fcb9d1485381893"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018432.9879327, "relation_name": "polygon.silver_bridge.everclear_chain_seed", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver_bridge__wormhole_chain_id_seed": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__wormhole_chain_id_seed", "resource_type": "seed", "package_name": "fsc_evm", "path": "curated/defi/bridge/silver_bridge__wormhole_chain_id_seed.csv", "original_file_path": "data/curated/defi/bridge/silver_bridge__wormhole_chain_id_seed.csv", "unique_id": "seed.fsc_evm.silver_bridge__wormhole_chain_id_seed", "fqn": ["fsc_evm", "curated", "defi", "bridge", "silver_bridge__wormhole_chain_id_seed"], "alias": "wormhole_chain_id_seed", "checksum": {"name": "sha256", "checksum": "aad78c3348bbe2ce37a31a382b1664d27eeab5b16a84c56b5dc7fcf14b9e3ecc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018432.9904454, "relation_name": "polygon.silver_bridge.wormhole_chain_id_seed", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver_bridge__meson_chain_id_seed": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__meson_chain_id_seed", "resource_type": "seed", "package_name": "fsc_evm", "path": "curated/defi/bridge/silver_bridge__meson_chain_id_seed.csv", "original_file_path": "data/curated/defi/bridge/silver_bridge__meson_chain_id_seed.csv", "unique_id": "seed.fsc_evm.silver_bridge__meson_chain_id_seed", "fqn": ["fsc_evm", "curated", "defi", "bridge", "silver_bridge__meson_chain_id_seed"], "alias": "meson_chain_id_seed", "checksum": {"name": "sha256", "checksum": "07a7a1f8384ea23a8a2bc49287dbd076a247c8ee72dbcf10793681b50641c7d4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018432.9929852, "relation_name": "polygon.silver_bridge.meson_chain_id_seed", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver_bridge__stargate_v2_asset_seed": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__stargate_v2_asset_seed", "resource_type": "seed", "package_name": "fsc_evm", "path": "curated/defi/bridge/silver_bridge__stargate_v2_asset_seed.csv", "original_file_path": "data/curated/defi/bridge/silver_bridge__stargate_v2_asset_seed.csv", "unique_id": "seed.fsc_evm.silver_bridge__stargate_v2_asset_seed", "fqn": ["fsc_evm", "curated", "defi", "bridge", "silver_bridge__stargate_v2_asset_seed"], "alias": "stargate_v2_asset_seed", "checksum": {"name": "sha256", "checksum": "24baa958450e6d740299944c4dc0ca44576a6451dd11c1dc6b0e171692531dd3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018432.9954593, "relation_name": "polygon.silver_bridge.stargate_v2_asset_seed", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver_bridge__ethereum_native_bridges_seed": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__ethereum_native_bridges_seed", "resource_type": "seed", "package_name": "fsc_evm", "path": "curated/defi/bridge/silver_bridge__ethereum_native_bridges_seed.csv", "original_file_path": "data/curated/defi/bridge/silver_bridge__ethereum_native_bridges_seed.csv", "unique_id": "seed.fsc_evm.silver_bridge__ethereum_native_bridges_seed", "fqn": ["fsc_evm", "curated", "defi", "bridge", "silver_bridge__ethereum_native_bridges_seed"], "alias": "ethereum_native_bridges_seed", "checksum": {"name": "sha256", "checksum": "37a254055e8c0ad57ee4884ccd79fb6dbc9e76974f7fadccca0b8db660f599c6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018432.9982285, "relation_name": "polygon.silver_bridge.ethereum_native_bridges_seed", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver_bridge__standard_chain_seed": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__standard_chain_seed", "resource_type": "seed", "package_name": "fsc_evm", "path": "curated/defi/bridge/silver_bridge__standard_chain_seed.csv", "original_file_path": "data/curated/defi/bridge/silver_bridge__standard_chain_seed.csv", "unique_id": "seed.fsc_evm.silver_bridge__standard_chain_seed", "fqn": ["fsc_evm", "curated", "defi", "bridge", "silver_bridge__standard_chain_seed"], "alias": "standard_chain_seed", "checksum": {"name": "sha256", "checksum": "72aec150eab73dd0d39eba485d8c69215e0ce942422cd9114e69105fd8ffb25a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018433.0007303, "relation_name": "polygon.silver_bridge.standard_chain_seed", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver_bridge__stargate_chain_id_seed": {"database": "polygon", "schema": "silver_bridge", "name": "silver_bridge__stargate_chain_id_seed", "resource_type": "seed", "package_name": "fsc_evm", "path": "curated/defi/bridge/silver_bridge__stargate_chain_id_seed.csv", "original_file_path": "data/curated/defi/bridge/silver_bridge__stargate_chain_id_seed.csv", "unique_id": "seed.fsc_evm.silver_bridge__stargate_chain_id_seed", "fqn": ["fsc_evm", "curated", "defi", "bridge", "silver_bridge__stargate_chain_id_seed"], "alias": "stargate_chain_id_seed", "checksum": {"name": "sha256", "checksum": "123c8810c147627d65ba57216c509d9d60c1ffa7ee54a547f7c9712291d833c4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018433.0032396, "relation_name": "polygon.silver_bridge.stargate_chain_id_seed", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver_stablecoins__bridge_vault_seed": {"database": "polygon", "schema": "silver_stablecoins", "name": "silver_stablecoins__bridge_vault_seed", "resource_type": "seed", "package_name": "fsc_evm", "path": "curated/defi/stablecoins/silver_stablecoins__bridge_vault_seed.csv", "original_file_path": "data/curated/defi/stablecoins/silver_stablecoins__bridge_vault_seed.csv", "unique_id": "seed.fsc_evm.silver_stablecoins__bridge_vault_seed", "fqn": ["fsc_evm", "curated", "defi", "stablecoins", "silver_stablecoins__bridge_vault_seed"], "alias": "bridge_vault_seed", "checksum": {"name": "sha256", "checksum": "20ad9f8b7a0cb03e95961f154366b4a9b9b035c185c72cd5fc70f91ba84bb1ec"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018433.0057147, "relation_name": "polygon.silver_stablecoins.bridge_vault_seed", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver_stablecoins__stablecoins_mapping_seed": {"database": "polygon", "schema": "silver_stablecoins", "name": "silver_stablecoins__stablecoins_mapping_seed", "resource_type": "seed", "package_name": "fsc_evm", "path": "curated/defi/stablecoins/silver_stablecoins__stablecoins_mapping_seed.csv", "original_file_path": "data/curated/defi/stablecoins/silver_stablecoins__stablecoins_mapping_seed.csv", "unique_id": "seed.fsc_evm.silver_stablecoins__stablecoins_mapping_seed", "fqn": ["fsc_evm", "curated", "defi", "stablecoins", "silver_stablecoins__stablecoins_mapping_seed"], "alias": "stablecoins_mapping_seed", "checksum": {"name": "sha256", "checksum": "82592d56358dd498684e4e89355d09c79a1b2aaac61bd85ca98403a7629df724"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018433.0081875, "relation_name": "polygon.silver_stablecoins.stablecoins_mapping_seed", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver_dex__univ3_ovm1_legacy_pools": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__univ3_ovm1_legacy_pools", "resource_type": "seed", "package_name": "fsc_evm", "path": "curated/defi/dex/silver_dex__univ3_ovm1_legacy_pools.csv", "original_file_path": "data/curated/defi/dex/silver_dex__univ3_ovm1_legacy_pools.csv", "unique_id": "seed.fsc_evm.silver_dex__univ3_ovm1_legacy_pools", "fqn": ["fsc_evm", "curated", "defi", "dex", "silver_dex__univ3_ovm1_legacy_pools"], "alias": "univ3_ovm1_legacy_pools", "checksum": {"name": "sha256", "checksum": "5fda041d35bb36bc4b8142d9742edcc485073b4916f7cbf2f18ff86459f417d3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018433.0106509, "relation_name": "polygon.silver_dex.univ3_ovm1_legacy_pools", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver_dex__synthetix_synths_20230404": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__synthetix_synths_20230404", "resource_type": "seed", "package_name": "fsc_evm", "path": "curated/defi/dex/silver_dex__synthetix_synths_20230404.csv", "original_file_path": "data/curated/defi/dex/silver_dex__synthetix_synths_20230404.csv", "unique_id": "seed.fsc_evm.silver_dex__synthetix_synths_20230404", "fqn": ["fsc_evm", "curated", "defi", "dex", "silver_dex__synthetix_synths_20230404"], "alias": "synthetix_synths_20230404", "checksum": {"name": "sha256", "checksum": "ab73b54493aadf557b73c11a8b8741cb87fdd3f61f0a66c02b7bb31fed375b5b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018433.0147758, "relation_name": "polygon.silver_dex.synthetix_synths_20230404", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver_dex__dodo_v1_pool_metadata": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__dodo_v1_pool_metadata", "resource_type": "seed", "package_name": "fsc_evm", "path": "curated/defi/dex/silver_dex__dodo_v1_pool_metadata.csv", "original_file_path": "data/curated/defi/dex/silver_dex__dodo_v1_pool_metadata.csv", "unique_id": "seed.fsc_evm.silver_dex__dodo_v1_pool_metadata", "fqn": ["fsc_evm", "curated", "defi", "dex", "silver_dex__dodo_v1_pool_metadata"], "alias": "dodo_v1_pool_metadata", "checksum": {"name": "sha256", "checksum": "20f23f0de11263e8b07a7cec4ad9ac6b5239f7a2f5bc6db4e0f0b513d7b3013e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018433.0173445, "relation_name": "polygon.silver_dex.dodo_v1_pool_metadata", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver_dex__eth_curve_pools_legacy": {"database": "polygon", "schema": "silver_dex", "name": "silver_dex__eth_curve_pools_legacy", "resource_type": "seed", "package_name": "fsc_evm", "path": "curated/defi/dex/silver_dex__eth_curve_pools_legacy.csv", "original_file_path": "data/curated/defi/dex/silver_dex__eth_curve_pools_legacy.csv", "unique_id": "seed.fsc_evm.silver_dex__eth_curve_pools_legacy", "fqn": ["fsc_evm", "curated", "defi", "dex", "silver_dex__eth_curve_pools_legacy"], "alias": "eth_curve_pools_legacy", "checksum": {"name": "sha256", "checksum": "fa49fc53719bb958a4896a224c15a3eb0e0c69f0fcc95cb92f12948719df3e90"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018433.0199249, "relation_name": "polygon.silver_dex.eth_curve_pools_legacy", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "seed.fsc_evm.silver_lending__token_metadata": {"database": "polygon", "schema": "silver_lending", "name": "silver_lending__token_metadata", "resource_type": "seed", "package_name": "fsc_evm", "path": "curated/defi/lending/silver_lending__token_metadata.csv", "original_file_path": "data/curated/defi/lending/silver_lending__token_metadata.csv", "unique_id": "seed.fsc_evm.silver_lending__token_metadata", "fqn": ["fsc_evm", "curated", "defi", "lending", "silver_lending__token_metadata"], "alias": "token_metadata", "checksum": {"name": "sha256", "checksum": "8f2e307ba4dbbe553c871dcc09a51789b75a8e95946dc4f1570761c5dcda0d81"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1764018433.022587, "relation_name": "polygon.silver_lending.token_metadata", "raw_code": "", "root_path": "/home/runner/work/polygon-models/polygon-models/dbt_packages/fsc_evm", "depends_on": {"macros": []}}, "test.polygon_models.not_null_silver__polymarket_filled_orders_BLOCK_NUMBER.37fef61b1d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__polymarket_filled_orders_BLOCK_NUMBER", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__polymarket_filled_orders_BLOCK_NUMBER.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_BLOCK_NUMBER.37fef61b1d", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "not_null_silver__polymarket_filled_orders_BLOCK_NUMBER"], "alias": "polymarket_filled_orders_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018433.950662, "relation_name": "polygon.not_null_silver.polymarket_filled_orders_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/not_null_silver__polymarket_filled_orders_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.polymarket_filled_orders\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_BLOCK_TIMESTAMP.6917d6df42": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__polymarket_filled_orders_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__polymarket_filled_orders_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_BLOCK_TIMESTAMP.6917d6df42", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "not_null_silver__polymarket_filled_orders_BLOCK_TIMESTAMP"], "alias": "polymarket_filled_orders_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018433.953245, "relation_name": "polygon.not_null_silver.polymarket_filled_orders_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/not_null_silver__polymarket_filled_orders_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.polymarket_filled_orders\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__polymarket_filled_orders_BLOCK_TIMESTAMP__day__3.566647b61b": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 3, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__polymarket_filled_orders_BLOCK_TIMESTAMP__day__3", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_row_va_9b0b90e4c4c975a83edb5e409be48d51.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__polymarket_filled_orders_BLOCK_TIMESTAMP__day__3.566647b61b", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "dbt_expectations_expect_row_values_to_have_recent_data_silver__polymarket_filled_orders_BLOCK_TIMESTAMP__day__3"], "alias": "polymarket_filled_orders_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_9b0b90e4c4c975a83edb5e409be48d51", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_9b0b90e4c4c975a83edb5e409be48d51"}, "created_at": 1764018433.9553728, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver.polymarket_filled_orders_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_9b0b90e4c4c975a83edb5e409be48d51\") }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/dbt_expectations_expect_row_va_9b0b90e4c4c975a83edb5e409be48d51.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver.polymarket_filled_orders\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_FUNCTION_SIGNATURE.cb15dd5380": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__polymarket_filled_orders_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__polymarket_fi_c85334035c8da1bffd1e96bef0947a1c.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_FUNCTION_SIGNATURE.cb15dd5380", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "not_null_silver__polymarket_filled_orders_ORIGIN_FUNCTION_SIGNATURE"], "alias": "polymarket_filled_orders_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver__polymarket_fi_c85334035c8da1bffd1e96bef0947a1c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "not_null_silver__polymarket_fi_c85334035c8da1bffd1e96bef0947a1c"}, "created_at": 1764018433.9959292, "relation_name": "polygon.not_null_silver.polymarket_filled_orders_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver__polymarket_fi_c85334035c8da1bffd1e96bef0947a1c\") }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/not_null_silver__polymarket_fi_c85334035c8da1bffd1e96bef0947a1c.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.polymarket_filled_orders\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS.db8de48e63": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS.db8de48e63", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "not_null_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS"], "alias": "polymarket_filled_orders_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018433.9979885, "relation_name": "polygon.not_null_silver.polymarket_filled_orders_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/not_null_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.polymarket_filled_orders\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.7b409eed52": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_68f58e089b61ac2981150204773303aa.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.7b409eed52", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "polymarket_filled_orders_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_68f58e089b61ac2981150204773303aa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_68f58e089b61ac2981150204773303aa"}, "created_at": 1764018434.0002246, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.polymarket_filled_orders_ORIGIN_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_68f58e089b61ac2981150204773303aa\") }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/dbt_expectations_expect_column_68f58e089b61ac2981150204773303aa.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.polymarket_filled_orders\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS.d211fba691": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS.d211fba691", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "not_null_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS"], "alias": "polymarket_filled_orders_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.0183575, "relation_name": "polygon.not_null_silver.polymarket_filled_orders_ORIGIN_TO_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/not_null_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.polymarket_filled_orders\nwhere ORIGIN_TO_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.6f648aaeb4": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_36be3bf0180394cad4561263e0fede50.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.6f648aaeb4", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "polymarket_filled_orders_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_36be3bf0180394cad4561263e0fede50", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_36be3bf0180394cad4561263e0fede50"}, "created_at": 1764018434.0204148, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.polymarket_filled_orders_ORIGIN_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_36be3bf0180394cad4561263e0fede50\") }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/dbt_expectations_expect_column_36be3bf0180394cad4561263e0fede50.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.polymarket_filled_orders\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_TX_HASH.61638ba866": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__polymarket_filled_orders_TX_HASH", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__polymarket_filled_orders_TX_HASH.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_TX_HASH.61638ba866", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "not_null_silver__polymarket_filled_orders_TX_HASH"], "alias": "polymarket_filled_orders_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.0256464, "relation_name": "polygon.not_null_silver.polymarket_filled_orders_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/not_null_silver__polymarket_filled_orders_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.polymarket_filled_orders\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_TX_HASH__0_xX_0_9a_fA_F_.99f06dfd94": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_c9367241cf10c86f54a9cb560ca62b0a.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_TX_HASH__0_xX_0_9a_fA_F_.99f06dfd94", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "polymarket_filled_orders_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c9367241cf10c86f54a9cb560ca62b0a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c9367241cf10c86f54a9cb560ca62b0a"}, "created_at": 1764018434.0279212, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.polymarket_filled_orders_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c9367241cf10c86f54a9cb560ca62b0a\") }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/dbt_expectations_expect_column_c9367241cf10c86f54a9cb560ca62b0a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.polymarket_filled_orders\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_EVENT_INDEX.08ca9dd7ff": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__polymarket_filled_orders_EVENT_INDEX", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__polymarket_filled_orders_EVENT_INDEX.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_EVENT_INDEX.08ca9dd7ff", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "not_null_silver__polymarket_filled_orders_EVENT_INDEX"], "alias": "polymarket_filled_orders_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.0331542, "relation_name": "polygon.not_null_silver.polymarket_filled_orders_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/not_null_silver__polymarket_filled_orders_EVENT_INDEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.polymarket_filled_orders\nwhere EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_EVENT_NAME.8723d6958b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_NAME", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__polymarket_filled_orders_EVENT_NAME", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__polymarket_filled_orders_EVENT_NAME.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_EVENT_NAME.8723d6958b", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "not_null_silver__polymarket_filled_orders_EVENT_NAME"], "alias": "polymarket_filled_orders_EVENT_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.0351708, "relation_name": "polygon.not_null_silver.polymarket_filled_orders_EVENT_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/not_null_silver__polymarket_filled_orders_EVENT_NAME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.polymarket_filled_orders\nwhere EVENT_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_NAME", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_CONTRACT_ADDRESS.c1a839cddb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__polymarket_filled_orders_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__polymarket_filled_orders_CONTRACT_ADDRESS.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_CONTRACT_ADDRESS.c1a839cddb", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "not_null_silver__polymarket_filled_orders_CONTRACT_ADDRESS"], "alias": "polymarket_filled_orders_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.0371673, "relation_name": "polygon.not_null_silver.polymarket_filled_orders_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/not_null_silver__polymarket_filled_orders_CONTRACT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.polymarket_filled_orders\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2a1903b370": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_993030669c9346950eef643c50c2e180.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2a1903b370", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "polymarket_filled_orders_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_993030669c9346950eef643c50c2e180", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_993030669c9346950eef643c50c2e180"}, "created_at": 1764018434.0391908, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.polymarket_filled_orders_CONTRACT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_993030669c9346950eef643c50c2e180\") }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/dbt_expectations_expect_column_993030669c9346950eef643c50c2e180.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.polymarket_filled_orders\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_AMOUNT_USD.07501acd40": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_USD", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__polymarket_filled_orders_AMOUNT_USD", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__polymarket_filled_orders_AMOUNT_USD.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_AMOUNT_USD.07501acd40", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "not_null_silver__polymarket_filled_orders_AMOUNT_USD"], "alias": "polymarket_filled_orders_AMOUNT_USD", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.0457091, "relation_name": "polygon.not_null_silver.polymarket_filled_orders_AMOUNT_USD", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/not_null_silver__polymarket_filled_orders_AMOUNT_USD.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.polymarket_filled_orders\nwhere AMOUNT_USD is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_USD", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_AMOUNT_USD__DECIMAL__FLOAT__NUMBER.12cd4b012b": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["DECIMAL", "FLOAT", "NUMBER"], "column_name": "AMOUNT_USD", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_AMOUNT_USD__DECIMAL__FLOAT__NUMBER", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_2342c55758754641bfce03279dfecd45.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_AMOUNT_USD__DECIMAL__FLOAT__NUMBER.12cd4b012b", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_AMOUNT_USD__DECIMAL__FLOAT__NUMBER"], "alias": "polymarket_filled_orders_AMOUNT_USD", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2342c55758754641bfce03279dfecd45", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_2342c55758754641bfce03279dfecd45"}, "created_at": 1764018434.0477543, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.polymarket_filled_orders_AMOUNT_USD", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2342c55758754641bfce03279dfecd45\") }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/dbt_expectations_expect_column_2342c55758754641bfce03279dfecd45.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('QUESTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MARKET_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('END_DATE_ISO' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('OUTCOME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDER_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONDITION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('QUESTION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ASSET_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAKER_ASSET_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TAKER_ASSET_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHARES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_PER_SHARE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('POLYMARKET_FILLED_ORDERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'AMOUNT_USD'\n and\n relation_column_type not in ('DECIMAL', 'FLOAT', 'NUMBER')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_USD", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_SHARES.4e8255f345": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SHARES", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__polymarket_filled_orders_SHARES", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__polymarket_filled_orders_SHARES.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_SHARES.4e8255f345", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "not_null_silver__polymarket_filled_orders_SHARES"], "alias": "polymarket_filled_orders_SHARES", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.0576525, "relation_name": "polygon.not_null_silver.polymarket_filled_orders_SHARES", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/not_null_silver__polymarket_filled_orders_SHARES.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.polymarket_filled_orders\nwhere SHARES is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SHARES", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_SHARES__DECIMAL__FLOAT__NUMBER.0ed57ee530": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["DECIMAL", "FLOAT", "NUMBER"], "column_name": "SHARES", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_SHARES__DECIMAL__FLOAT__NUMBER", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_2f202085189f95b558e7fc46e3cfaab7.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_SHARES__DECIMAL__FLOAT__NUMBER.0ed57ee530", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_SHARES__DECIMAL__FLOAT__NUMBER"], "alias": "polymarket_filled_orders_SHARES", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2f202085189f95b558e7fc46e3cfaab7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_2f202085189f95b558e7fc46e3cfaab7"}, "created_at": 1764018434.0597324, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.polymarket_filled_orders_SHARES", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2f202085189f95b558e7fc46e3cfaab7\") }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/dbt_expectations_expect_column_2f202085189f95b558e7fc46e3cfaab7.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('QUESTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MARKET_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('END_DATE_ISO' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('OUTCOME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDER_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONDITION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('QUESTION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ASSET_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAKER_ASSET_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TAKER_ASSET_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHARES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_PER_SHARE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('POLYMARKET_FILLED_ORDERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'SHARES'\n and\n relation_column_type not in ('DECIMAL', 'FLOAT', 'NUMBER')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SHARES", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.not_null_silver__polymarket_filled_orders_PRICE_PER_SHARE.bfce816c2f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PRICE_PER_SHARE", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__polymarket_filled_orders_PRICE_PER_SHARE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__polymarket_filled_orders_PRICE_PER_SHARE.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.not_null_silver__polymarket_filled_orders_PRICE_PER_SHARE.bfce816c2f", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "not_null_silver__polymarket_filled_orders_PRICE_PER_SHARE"], "alias": "polymarket_filled_orders_PRICE_PER_SHARE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.0644372, "relation_name": "polygon.not_null_silver.polymarket_filled_orders_PRICE_PER_SHARE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/not_null_silver__polymarket_filled_orders_PRICE_PER_SHARE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.polymarket_filled_orders\nwhere PRICE_PER_SHARE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PRICE_PER_SHARE", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_PRICE_PER_SHARE__DECIMAL__FLOAT__NUMBER.d613cb9c05": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["DECIMAL", "FLOAT", "NUMBER"], "column_name": "PRICE_PER_SHARE", "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_PRICE_PER_SHARE__DECIMAL__FLOAT__NUMBER", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_62153fc50eca002e0fea2216672635c1.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_PRICE_PER_SHARE__DECIMAL__FLOAT__NUMBER.d613cb9c05", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_PRICE_PER_SHARE__DECIMAL__FLOAT__NUMBER"], "alias": "polymarket_filled_orders_PRICE_PER_SHARE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_62153fc50eca002e0fea2216672635c1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_62153fc50eca002e0fea2216672635c1"}, "created_at": 1764018434.0664766, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.polymarket_filled_orders_PRICE_PER_SHARE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_62153fc50eca002e0fea2216672635c1\") }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/dbt_expectations_expect_column_62153fc50eca002e0fea2216672635c1.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('QUESTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MARKET_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('END_DATE_ISO' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('OUTCOME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDER_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONDITION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('QUESTION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ASSET_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAKER_ASSET_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TAKER_ASSET_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHARES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_PER_SHARE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('POLYMARKET_FILLED_ORDERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'PRICE_PER_SHARE'\n and\n relation_column_type not in ('DECIMAL', 'FLOAT', 'NUMBER')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PRICE_PER_SHARE", "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__polymarket_filled_orders__LOG_ID.7b6aeb1e9c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_LOG_ID"], "model": "{{ get_where_subquery(ref('silver__polymarket_filled_orders')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__polymarket_filled_orders__LOG_ID", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_utils_unique_combination_o_8c457dd44e67898cc3b01f77144a77f8.sql", "original_file_path": "models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml", "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__polymarket_filled_orders__LOG_ID.7b6aeb1e9c", "fqn": ["polygon_models", "silver", "protocols", "polymarket", "dbt_utils_unique_combination_of_columns_silver__polymarket_filled_orders__LOG_ID"], "alias": "polymarket_filled_orders", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c457dd44e67898cc3b01f77144a77f8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_8c457dd44e67898cc3b01f77144a77f8"}, "created_at": 1764018434.0710292, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.polymarket_filled_orders", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c457dd44e67898cc3b01f77144a77f8\") }}", "language": "sql", "refs": [{"name": "silver__polymarket_filled_orders", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__polymarket_filled_orders"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/polymarket/silver__polymarket_filled_orders.yml/dbt_utils_unique_combination_o_8c457dd44e67898cc3b01f77144a77f8.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _LOG_ID\n from polygon.silver.polymarket_filled_orders\n group by _LOG_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__polymarket_filled_orders", "attached_node": "model.polygon_models.silver__polymarket_filled_orders"}, "test.polygon_models.not_null_silver_olas__create_service_multisigs_BLOCK_NUMBER.69d215b1bf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver_olas__create_service_multisigs')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__create_service_multisigs_BLOCK_NUMBER", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__create_service_multisigs_BLOCK_NUMBER.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__create_service_multisigs.yml", "unique_id": "test.polygon_models.not_null_silver_olas__create_service_multisigs_BLOCK_NUMBER.69d215b1bf", "fqn": ["polygon_models", "silver", "protocols", "olas", "not_null_silver_olas__create_service_multisigs_BLOCK_NUMBER"], "alias": "create_service_multisigs_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.0831645, "relation_name": "polygon.not_null_silver_olas.create_service_multisigs_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__create_service_multisigs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__create_service_multisigs"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__create_service_multisigs.yml/not_null_silver_olas__create_service_multisigs_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.create_service_multisigs\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver_olas__create_service_multisigs", "attached_node": "model.polygon_models.silver_olas__create_service_multisigs"}, "test.polygon_models.not_null_silver_olas__create_service_multisigs_BLOCK_TIMESTAMP.c337c03bc4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_olas__create_service_multisigs')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__create_service_multisigs_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__create_service_multisigs_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__create_service_multisigs.yml", "unique_id": "test.polygon_models.not_null_silver_olas__create_service_multisigs_BLOCK_TIMESTAMP.c337c03bc4", "fqn": ["polygon_models", "silver", "protocols", "olas", "not_null_silver_olas__create_service_multisigs_BLOCK_TIMESTAMP"], "alias": "create_service_multisigs_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.0852668, "relation_name": "polygon.not_null_silver_olas.create_service_multisigs_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__create_service_multisigs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__create_service_multisigs"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__create_service_multisigs.yml/not_null_silver_olas__create_service_multisigs_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.create_service_multisigs\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_olas__create_service_multisigs", "attached_node": "model.polygon_models.silver_olas__create_service_multisigs"}, "test.polygon_models.not_null_silver_olas__create_service_multisigs_TX_HASH.cfb739aeec": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver_olas__create_service_multisigs')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__create_service_multisigs_TX_HASH", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__create_service_multisigs_TX_HASH.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__create_service_multisigs.yml", "unique_id": "test.polygon_models.not_null_silver_olas__create_service_multisigs_TX_HASH.cfb739aeec", "fqn": ["polygon_models", "silver", "protocols", "olas", "not_null_silver_olas__create_service_multisigs_TX_HASH"], "alias": "create_service_multisigs_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.0875566, "relation_name": "polygon.not_null_silver_olas.create_service_multisigs_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__create_service_multisigs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__create_service_multisigs"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__create_service_multisigs.yml/not_null_silver_olas__create_service_multisigs_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.create_service_multisigs\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver_olas__create_service_multisigs", "attached_node": "model.polygon_models.silver_olas__create_service_multisigs"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__create_service_multisigs_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.81228daf15": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "MULTISIG_ADDRESS", "model": "{{ get_where_subquery(ref('silver_olas__create_service_multisigs')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_olas", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_olas__create_service_multisigs_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_24a731208e6678c42ddc4d43182bae79.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__create_service_multisigs.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__create_service_multisigs_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.81228daf15", "fqn": ["polygon_models", "silver", "protocols", "olas", "dbt_expectations_expect_column_values_to_match_regex_silver_olas__create_service_multisigs_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "create_service_multisigs_MULTISIG_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_24a731208e6678c42ddc4d43182bae79", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_24a731208e6678c42ddc4d43182bae79"}, "created_at": 1764018434.0896113, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_olas.create_service_multisigs_MULTISIG_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_24a731208e6678c42ddc4d43182bae79\") }}", "language": "sql", "refs": [{"name": "silver_olas__create_service_multisigs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__create_service_multisigs"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__create_service_multisigs.yml/dbt_expectations_expect_column_24a731208e6678c42ddc4d43182bae79.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(MULTISIG_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_olas.create_service_multisigs\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MULTISIG_ADDRESS", "file_key_name": "models.silver_olas__create_service_multisigs", "attached_node": "model.polygon_models.silver_olas__create_service_multisigs"}, "test.polygon_models.not_null_silver_olas__create_service_multisigs_ID.daadfeec98": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ID", "model": "{{ get_where_subquery(ref('silver_olas__create_service_multisigs')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__create_service_multisigs_ID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__create_service_multisigs_ID.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__create_service_multisigs.yml", "unique_id": "test.polygon_models.not_null_silver_olas__create_service_multisigs_ID.daadfeec98", "fqn": ["polygon_models", "silver", "protocols", "olas", "not_null_silver_olas__create_service_multisigs_ID"], "alias": "create_service_multisigs_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.0953083, "relation_name": "polygon.not_null_silver_olas.create_service_multisigs_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__create_service_multisigs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__create_service_multisigs"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__create_service_multisigs.yml/not_null_silver_olas__create_service_multisigs_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.create_service_multisigs\nwhere ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ID", "file_key_name": "models.silver_olas__create_service_multisigs", "attached_node": "model.polygon_models.silver_olas__create_service_multisigs"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__create_service_multisigs__LOG_ID.57c866e6e9": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_LOG_ID"], "model": "{{ get_where_subquery(ref('silver_olas__create_service_multisigs')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_olas", "name": "dbt_utils_unique_combination_of_columns_silver_olas__create_service_multisigs__LOG_ID", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_utils_unique_combination_o_6b33cf179767555e7d71910ad9e90f3a.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__create_service_multisigs.yml", "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__create_service_multisigs__LOG_ID.57c866e6e9", "fqn": ["polygon_models", "silver", "protocols", "olas", "dbt_utils_unique_combination_of_columns_silver_olas__create_service_multisigs__LOG_ID"], "alias": "create_service_multisigs", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6b33cf179767555e7d71910ad9e90f3a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_6b33cf179767555e7d71910ad9e90f3a"}, "created_at": 1764018434.0973694, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_olas.create_service_multisigs", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6b33cf179767555e7d71910ad9e90f3a\") }}", "language": "sql", "refs": [{"name": "silver_olas__create_service_multisigs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__create_service_multisigs"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__create_service_multisigs.yml/dbt_utils_unique_combination_o_6b33cf179767555e7d71910ad9e90f3a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _LOG_ID\n from polygon.silver_olas.create_service_multisigs\n group by _LOG_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_olas__create_service_multisigs", "attached_node": "model.polygon_models.silver_olas__create_service_multisigs"}, "test.polygon_models.not_null_silver_olas__service_registrations_BLOCK_NUMBER.07ad8d6819": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver_olas__service_registrations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__service_registrations_BLOCK_NUMBER", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__service_registrations_BLOCK_NUMBER.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__service_registrations.yml", "unique_id": "test.polygon_models.not_null_silver_olas__service_registrations_BLOCK_NUMBER.07ad8d6819", "fqn": ["polygon_models", "silver", "protocols", "olas", "not_null_silver_olas__service_registrations_BLOCK_NUMBER"], "alias": "service_registrations_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.1042054, "relation_name": "polygon.not_null_silver_olas.service_registrations_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__service_registrations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__service_registrations"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__service_registrations.yml/not_null_silver_olas__service_registrations_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.service_registrations\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver_olas__service_registrations", "attached_node": "model.polygon_models.silver_olas__service_registrations"}, "test.polygon_models.not_null_silver_olas__service_registrations_BLOCK_TIMESTAMP.5cfbea80f9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_olas__service_registrations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__service_registrations_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__service_registrations_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__service_registrations.yml", "unique_id": "test.polygon_models.not_null_silver_olas__service_registrations_BLOCK_TIMESTAMP.5cfbea80f9", "fqn": ["polygon_models", "silver", "protocols", "olas", "not_null_silver_olas__service_registrations_BLOCK_TIMESTAMP"], "alias": "service_registrations_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.1063447, "relation_name": "polygon.not_null_silver_olas.service_registrations_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__service_registrations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__service_registrations"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__service_registrations.yml/not_null_silver_olas__service_registrations_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.service_registrations\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_olas__service_registrations", "attached_node": "model.polygon_models.silver_olas__service_registrations"}, "test.polygon_models.not_null_silver_olas__service_registrations_TX_HASH.39ebb01275": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver_olas__service_registrations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__service_registrations_TX_HASH", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__service_registrations_TX_HASH.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__service_registrations.yml", "unique_id": "test.polygon_models.not_null_silver_olas__service_registrations_TX_HASH.39ebb01275", "fqn": ["polygon_models", "silver", "protocols", "olas", "not_null_silver_olas__service_registrations_TX_HASH"], "alias": "service_registrations_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.1084065, "relation_name": "polygon.not_null_silver_olas.service_registrations_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__service_registrations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__service_registrations"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__service_registrations.yml/not_null_silver_olas__service_registrations_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.service_registrations\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver_olas__service_registrations", "attached_node": "model.polygon_models.silver_olas__service_registrations"}, "test.polygon_models.not_null_silver_olas__service_registrations_OWNER_ADDRESS.60900e09bd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "OWNER_ADDRESS", "model": "{{ get_where_subquery(ref('silver_olas__service_registrations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__service_registrations_OWNER_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__service_registrations_OWNER_ADDRESS.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__service_registrations.yml", "unique_id": "test.polygon_models.not_null_silver_olas__service_registrations_OWNER_ADDRESS.60900e09bd", "fqn": ["polygon_models", "silver", "protocols", "olas", "not_null_silver_olas__service_registrations_OWNER_ADDRESS"], "alias": "service_registrations_OWNER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.110444, "relation_name": "polygon.not_null_silver_olas.service_registrations_OWNER_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__service_registrations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__service_registrations"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__service_registrations.yml/not_null_silver_olas__service_registrations_OWNER_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.service_registrations\nwhere OWNER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "OWNER_ADDRESS", "file_key_name": "models.silver_olas__service_registrations", "attached_node": "model.polygon_models.silver_olas__service_registrations"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_registrations_OWNER_ADDRESS__0_xX_0_9a_fA_F_.bdfdf5df47": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "OWNER_ADDRESS", "model": "{{ get_where_subquery(ref('silver_olas__service_registrations')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_olas", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_registrations_OWNER_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_bf911f309975c5393e9805b0541a48c3.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__service_registrations.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_registrations_OWNER_ADDRESS__0_xX_0_9a_fA_F_.bdfdf5df47", "fqn": ["polygon_models", "silver", "protocols", "olas", "dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_registrations_OWNER_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "service_registrations_OWNER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_bf911f309975c5393e9805b0541a48c3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_bf911f309975c5393e9805b0541a48c3"}, "created_at": 1764018434.1124816, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_olas.service_registrations_OWNER_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_bf911f309975c5393e9805b0541a48c3\") }}", "language": "sql", "refs": [{"name": "silver_olas__service_registrations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__service_registrations"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__service_registrations.yml/dbt_expectations_expect_column_bf911f309975c5393e9805b0541a48c3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(OWNER_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_olas.service_registrations\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "OWNER_ADDRESS", "file_key_name": "models.silver_olas__service_registrations", "attached_node": "model.polygon_models.silver_olas__service_registrations"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_registrations_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.9e4a4fa9f9": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "MULTISIG_ADDRESS", "model": "{{ get_where_subquery(ref('silver_olas__service_registrations')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_olas", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_registrations_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_e3f74a8d48107884cd36e52245aa25f4.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__service_registrations.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_registrations_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.9e4a4fa9f9", "fqn": ["polygon_models", "silver", "protocols", "olas", "dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_registrations_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "service_registrations_MULTISIG_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e3f74a8d48107884cd36e52245aa25f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e3f74a8d48107884cd36e52245aa25f4"}, "created_at": 1764018434.1177657, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_olas.service_registrations_MULTISIG_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e3f74a8d48107884cd36e52245aa25f4\") }}", "language": "sql", "refs": [{"name": "silver_olas__service_registrations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__service_registrations"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__service_registrations.yml/dbt_expectations_expect_column_e3f74a8d48107884cd36e52245aa25f4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(MULTISIG_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_olas.service_registrations\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MULTISIG_ADDRESS", "file_key_name": "models.silver_olas__service_registrations", "attached_node": "model.polygon_models.silver_olas__service_registrations"}, "test.polygon_models.not_null_silver_olas__service_registrations_SERVICE_ID.943c28d401": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SERVICE_ID", "model": "{{ get_where_subquery(ref('silver_olas__service_registrations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__service_registrations_SERVICE_ID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__service_registrations_SERVICE_ID.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__service_registrations.yml", "unique_id": "test.polygon_models.not_null_silver_olas__service_registrations_SERVICE_ID.943c28d401", "fqn": ["polygon_models", "silver", "protocols", "olas", "not_null_silver_olas__service_registrations_SERVICE_ID"], "alias": "service_registrations_SERVICE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.1230397, "relation_name": "polygon.not_null_silver_olas.service_registrations_SERVICE_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__service_registrations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__service_registrations"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__service_registrations.yml/not_null_silver_olas__service_registrations_SERVICE_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.service_registrations\nwhere SERVICE_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SERVICE_ID", "file_key_name": "models.silver_olas__service_registrations", "attached_node": "model.polygon_models.silver_olas__service_registrations"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__service_registrations__LOG_ID.2abbc6e68b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_LOG_ID"], "model": "{{ get_where_subquery(ref('silver_olas__service_registrations')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_olas", "name": "dbt_utils_unique_combination_of_columns_silver_olas__service_registrations__LOG_ID", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_utils_unique_combination_o_601aa531d3fdae5f68638c204e79f6c8.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__service_registrations.yml", "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__service_registrations__LOG_ID.2abbc6e68b", "fqn": ["polygon_models", "silver", "protocols", "olas", "dbt_utils_unique_combination_of_columns_silver_olas__service_registrations__LOG_ID"], "alias": "service_registrations", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_601aa531d3fdae5f68638c204e79f6c8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_601aa531d3fdae5f68638c204e79f6c8"}, "created_at": 1764018434.1251338, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_olas.service_registrations", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_601aa531d3fdae5f68638c204e79f6c8\") }}", "language": "sql", "refs": [{"name": "silver_olas__service_registrations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__service_registrations"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__service_registrations.yml/dbt_utils_unique_combination_o_601aa531d3fdae5f68638c204e79f6c8.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _LOG_ID\n from polygon.silver_olas.service_registrations\n group by _LOG_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_olas__service_registrations", "attached_node": "model.polygon_models.silver_olas__service_registrations"}, "test.polygon_models.not_null_silver_olas__service_event_logs_BLOCK_NUMBER.e49da10e6f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver_olas__service_event_logs')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__service_event_logs_BLOCK_NUMBER", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__service_event_logs_BLOCK_NUMBER.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__service_event_logs.yml", "unique_id": "test.polygon_models.not_null_silver_olas__service_event_logs_BLOCK_NUMBER.e49da10e6f", "fqn": ["polygon_models", "silver", "protocols", "olas", "not_null_silver_olas__service_event_logs_BLOCK_NUMBER"], "alias": "service_event_logs_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.1319213, "relation_name": "polygon.not_null_silver_olas.service_event_logs_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__service_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__service_event_logs"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__service_event_logs.yml/not_null_silver_olas__service_event_logs_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.service_event_logs\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver_olas__service_event_logs", "attached_node": "model.polygon_models.silver_olas__service_event_logs"}, "test.polygon_models.not_null_silver_olas__service_event_logs_BLOCK_TIMESTAMP.f0e808ba68": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_olas__service_event_logs')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__service_event_logs_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__service_event_logs_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__service_event_logs.yml", "unique_id": "test.polygon_models.not_null_silver_olas__service_event_logs_BLOCK_TIMESTAMP.f0e808ba68", "fqn": ["polygon_models", "silver", "protocols", "olas", "not_null_silver_olas__service_event_logs_BLOCK_TIMESTAMP"], "alias": "service_event_logs_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.1340697, "relation_name": "polygon.not_null_silver_olas.service_event_logs_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__service_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__service_event_logs"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__service_event_logs.yml/not_null_silver_olas__service_event_logs_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.service_event_logs\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_olas__service_event_logs", "attached_node": "model.polygon_models.silver_olas__service_event_logs"}, "test.polygon_models.not_null_silver_olas__service_event_logs_TX_HASH.04a3422711": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver_olas__service_event_logs')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__service_event_logs_TX_HASH", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__service_event_logs_TX_HASH.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__service_event_logs.yml", "unique_id": "test.polygon_models.not_null_silver_olas__service_event_logs_TX_HASH.04a3422711", "fqn": ["polygon_models", "silver", "protocols", "olas", "not_null_silver_olas__service_event_logs_TX_HASH"], "alias": "service_event_logs_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.136152, "relation_name": "polygon.not_null_silver_olas.service_event_logs_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__service_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__service_event_logs"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__service_event_logs.yml/not_null_silver_olas__service_event_logs_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.service_event_logs\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver_olas__service_event_logs", "attached_node": "model.polygon_models.silver_olas__service_event_logs"}, "test.polygon_models.not_null_silver_olas__service_event_logs_MULTISIG_ADDRESS.bcc9d7a3ca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MULTISIG_ADDRESS", "model": "{{ get_where_subquery(ref('silver_olas__service_event_logs')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__service_event_logs_MULTISIG_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__service_event_logs_MULTISIG_ADDRESS.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__service_event_logs.yml", "unique_id": "test.polygon_models.not_null_silver_olas__service_event_logs_MULTISIG_ADDRESS.bcc9d7a3ca", "fqn": ["polygon_models", "silver", "protocols", "olas", "not_null_silver_olas__service_event_logs_MULTISIG_ADDRESS"], "alias": "service_event_logs_MULTISIG_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.1382031, "relation_name": "polygon.not_null_silver_olas.service_event_logs_MULTISIG_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__service_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__service_event_logs"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__service_event_logs.yml/not_null_silver_olas__service_event_logs_MULTISIG_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.service_event_logs\nwhere MULTISIG_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MULTISIG_ADDRESS", "file_key_name": "models.silver_olas__service_event_logs", "attached_node": "model.polygon_models.silver_olas__service_event_logs"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_event_logs_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.c6b135bb12": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "MULTISIG_ADDRESS", "model": "{{ get_where_subquery(ref('silver_olas__service_event_logs')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_olas", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_event_logs_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_73ad8535ff6161f85d16269378be2a46.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__service_event_logs.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_event_logs_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.c6b135bb12", "fqn": ["polygon_models", "silver", "protocols", "olas", "dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_event_logs_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "service_event_logs_MULTISIG_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_73ad8535ff6161f85d16269378be2a46", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_73ad8535ff6161f85d16269378be2a46"}, "created_at": 1764018434.1402626, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_olas.service_event_logs_MULTISIG_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_73ad8535ff6161f85d16269378be2a46\") }}", "language": "sql", "refs": [{"name": "silver_olas__service_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__service_event_logs"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__service_event_logs.yml/dbt_expectations_expect_column_73ad8535ff6161f85d16269378be2a46.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(MULTISIG_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_olas.service_event_logs\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MULTISIG_ADDRESS", "file_key_name": "models.silver_olas__service_event_logs", "attached_node": "model.polygon_models.silver_olas__service_event_logs"}, "test.polygon_models.not_null_silver_olas__service_event_logs_SERVICE_ID.1ad8540ad5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SERVICE_ID", "model": "{{ get_where_subquery(ref('silver_olas__service_event_logs')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__service_event_logs_SERVICE_ID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__service_event_logs_SERVICE_ID.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__service_event_logs.yml", "unique_id": "test.polygon_models.not_null_silver_olas__service_event_logs_SERVICE_ID.1ad8540ad5", "fqn": ["polygon_models", "silver", "protocols", "olas", "not_null_silver_olas__service_event_logs_SERVICE_ID"], "alias": "service_event_logs_SERVICE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.1457365, "relation_name": "polygon.not_null_silver_olas.service_event_logs_SERVICE_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__service_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__service_event_logs"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__service_event_logs.yml/not_null_silver_olas__service_event_logs_SERVICE_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.service_event_logs\nwhere SERVICE_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SERVICE_ID", "file_key_name": "models.silver_olas__service_event_logs", "attached_node": "model.polygon_models.silver_olas__service_event_logs"}, "test.polygon_models.not_null_silver_olas__service_event_logs_DATA.e35df90e62": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DATA", "model": "{{ get_where_subquery(ref('silver_olas__service_event_logs')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__service_event_logs_DATA", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__service_event_logs_DATA.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__service_event_logs.yml", "unique_id": "test.polygon_models.not_null_silver_olas__service_event_logs_DATA.e35df90e62", "fqn": ["polygon_models", "silver", "protocols", "olas", "not_null_silver_olas__service_event_logs_DATA"], "alias": "service_event_logs_DATA", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.147778, "relation_name": "polygon.not_null_silver_olas.service_event_logs_DATA", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__service_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__service_event_logs"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__service_event_logs.yml/not_null_silver_olas__service_event_logs_DATA.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.service_event_logs\nwhere DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DATA", "file_key_name": "models.silver_olas__service_event_logs", "attached_node": "model.polygon_models.silver_olas__service_event_logs"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__service_event_logs__LOG_ID.283185ebcc": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_LOG_ID"], "model": "{{ get_where_subquery(ref('silver_olas__service_event_logs')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_olas", "name": "dbt_utils_unique_combination_of_columns_silver_olas__service_event_logs__LOG_ID", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_utils_unique_combination_o_0fa113fc144ed76badaf33e562f674af.sql", "original_file_path": "models/silver/protocols/olas/silver_olas__service_event_logs.yml", "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__service_event_logs__LOG_ID.283185ebcc", "fqn": ["polygon_models", "silver", "protocols", "olas", "dbt_utils_unique_combination_of_columns_silver_olas__service_event_logs__LOG_ID"], "alias": "service_event_logs", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0fa113fc144ed76badaf33e562f674af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_0fa113fc144ed76badaf33e562f674af"}, "created_at": 1764018434.1498263, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_olas.service_event_logs", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0fa113fc144ed76badaf33e562f674af\") }}", "language": "sql", "refs": [{"name": "silver_olas__service_event_logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__service_event_logs"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/silver_olas__service_event_logs.yml/dbt_utils_unique_combination_o_0fa113fc144ed76badaf33e562f674af.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _LOG_ID\n from polygon.silver_olas.service_event_logs\n group by _LOG_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_olas__service_event_logs", "attached_node": "model.polygon_models.silver_olas__service_event_logs"}, "test.polygon_models.not_null_silver_olas__getservice_reads_BLOCK_NUMBER.4525478d4f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver_olas__getservice_reads')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__getservice_reads_BLOCK_NUMBER", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__getservice_reads_BLOCK_NUMBER.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__getservice_reads.yml", "unique_id": "test.polygon_models.not_null_silver_olas__getservice_reads_BLOCK_NUMBER.4525478d4f", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "not_null_silver_olas__getservice_reads_BLOCK_NUMBER"], "alias": "getservice_reads_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.1566463, "relation_name": "polygon.not_null_silver_olas.getservice_reads_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__getservice_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__getservice_reads"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__getservice_reads.yml/not_null_silver_olas__getservice_reads_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.getservice_reads\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver_olas__getservice_reads", "attached_node": "model.polygon_models.silver_olas__getservice_reads"}, "test.polygon_models.not_null_silver_olas__getservice_reads_FUNCTION_INPUT.abe26173ba": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FUNCTION_INPUT", "model": "{{ get_where_subquery(ref('silver_olas__getservice_reads')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__getservice_reads_FUNCTION_INPUT", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__getservice_reads_FUNCTION_INPUT.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__getservice_reads.yml", "unique_id": "test.polygon_models.not_null_silver_olas__getservice_reads_FUNCTION_INPUT.abe26173ba", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "not_null_silver_olas__getservice_reads_FUNCTION_INPUT"], "alias": "getservice_reads_FUNCTION_INPUT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.1587696, "relation_name": "polygon.not_null_silver_olas.getservice_reads_FUNCTION_INPUT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__getservice_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__getservice_reads"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__getservice_reads.yml/not_null_silver_olas__getservice_reads_FUNCTION_INPUT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.getservice_reads\nwhere FUNCTION_INPUT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FUNCTION_INPUT", "file_key_name": "models.silver_olas__getservice_reads", "attached_node": "model.polygon_models.silver_olas__getservice_reads"}, "test.polygon_models.not_null_silver_olas__getservice_reads_AGENT_IDS.16c637c223": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AGENT_IDS", "model": "{{ get_where_subquery(ref('silver_olas__getservice_reads')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__getservice_reads_AGENT_IDS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__getservice_reads_AGENT_IDS.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__getservice_reads.yml", "unique_id": "test.polygon_models.not_null_silver_olas__getservice_reads_AGENT_IDS.16c637c223", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "not_null_silver_olas__getservice_reads_AGENT_IDS"], "alias": "getservice_reads_AGENT_IDS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.1608052, "relation_name": "polygon.not_null_silver_olas.getservice_reads_AGENT_IDS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__getservice_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__getservice_reads"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__getservice_reads.yml/not_null_silver_olas__getservice_reads_AGENT_IDS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.getservice_reads\nwhere AGENT_IDS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AGENT_IDS", "file_key_name": "models.silver_olas__getservice_reads", "attached_node": "model.polygon_models.silver_olas__getservice_reads"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__getservice_reads_GETSERVICE_READS_ID.93211253f0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["GETSERVICE_READS_ID"], "model": "{{ get_where_subquery(ref('silver_olas__getservice_reads')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_olas", "name": "dbt_utils_unique_combination_of_columns_silver_olas__getservice_reads_GETSERVICE_READS_ID", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_utils_unique_combination_o_3eecd4de4ce16af6d7a0f70ca4e15624.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__getservice_reads.yml", "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__getservice_reads_GETSERVICE_READS_ID.93211253f0", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "dbt_utils_unique_combination_of_columns_silver_olas__getservice_reads_GETSERVICE_READS_ID"], "alias": "getservice_reads_GETSERVICE_READS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3eecd4de4ce16af6d7a0f70ca4e15624", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_3eecd4de4ce16af6d7a0f70ca4e15624"}, "created_at": 1764018434.1628292, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_olas.getservice_reads_GETSERVICE_READS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3eecd4de4ce16af6d7a0f70ca4e15624\") }}", "language": "sql", "refs": [{"name": "silver_olas__getservice_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__getservice_reads"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__getservice_reads.yml/dbt_utils_unique_combination_o_3eecd4de4ce16af6d7a0f70ca4e15624.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n GETSERVICE_READS_ID\n from polygon.silver_olas.getservice_reads\n group by GETSERVICE_READS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_olas__getservice_reads", "attached_node": "model.polygon_models.silver_olas__getservice_reads"}, "test.polygon_models.not_null_silver_olas__registry_metadata_complete_CONTRACT_ADDRESS.2a0b0f82cb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_olas__registry_metadata_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__registry_metadata_complete_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__registry_de7b362a9fe3e173e1ebe5bf055305ba.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__registry_metadata_complete.yml", "unique_id": "test.polygon_models.not_null_silver_olas__registry_metadata_complete_CONTRACT_ADDRESS.2a0b0f82cb", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "not_null_silver_olas__registry_metadata_complete_CONTRACT_ADDRESS"], "alias": "registry_metadata_complete_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_olas__registry_de7b362a9fe3e173e1ebe5bf055305ba", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "not_null_silver_olas__registry_de7b362a9fe3e173e1ebe5bf055305ba"}, "created_at": 1764018434.1702805, "relation_name": "polygon.not_null_silver_olas.registry_metadata_complete_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_olas__registry_de7b362a9fe3e173e1ebe5bf055305ba\") }}", "language": "sql", "refs": [{"name": "silver_olas__registry_metadata_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__registry_metadata_complete"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__registry_metadata_complete.yml/not_null_silver_olas__registry_de7b362a9fe3e173e1ebe5bf055305ba.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.registry_metadata_complete\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_olas__registry_metadata_complete", "attached_node": "model.polygon_models.silver_olas__registry_metadata_complete"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_metadata_complete_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.a79fec85ad": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_olas__registry_metadata_complete')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_olas", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_metadata_complete_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_713a60cb3ed4d1562fd9a5d0775517f4.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__registry_metadata_complete.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_metadata_complete_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.a79fec85ad", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_metadata_complete_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "registry_metadata_complete_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_713a60cb3ed4d1562fd9a5d0775517f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_713a60cb3ed4d1562fd9a5d0775517f4"}, "created_at": 1764018434.1723735, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_olas.registry_metadata_complete_CONTRACT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_713a60cb3ed4d1562fd9a5d0775517f4\") }}", "language": "sql", "refs": [{"name": "silver_olas__registry_metadata_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__registry_metadata_complete"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__registry_metadata_complete.yml/dbt_expectations_expect_column_713a60cb3ed4d1562fd9a5d0775517f4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_olas.registry_metadata_complete\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_olas__registry_metadata_complete", "attached_node": "model.polygon_models.silver_olas__registry_metadata_complete"}, "test.polygon_models.not_null_silver_olas__registry_metadata_complete_REGISTRY_ID.d41d9793d9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "REGISTRY_ID", "model": "{{ get_where_subquery(ref('silver_olas__registry_metadata_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__registry_metadata_complete_REGISTRY_ID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__registry_metadata_complete_REGISTRY_ID.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__registry_metadata_complete.yml", "unique_id": "test.polygon_models.not_null_silver_olas__registry_metadata_complete_REGISTRY_ID.d41d9793d9", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "not_null_silver_olas__registry_metadata_complete_REGISTRY_ID"], "alias": "registry_metadata_complete_REGISTRY_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.1775787, "relation_name": "polygon.not_null_silver_olas.registry_metadata_complete_REGISTRY_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__registry_metadata_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__registry_metadata_complete"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__registry_metadata_complete.yml/not_null_silver_olas__registry_metadata_complete_REGISTRY_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.registry_metadata_complete\nwhere REGISTRY_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "REGISTRY_ID", "file_key_name": "models.silver_olas__registry_metadata_complete", "attached_node": "model.polygon_models.silver_olas__registry_metadata_complete"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_metadata_complete_REGISTRY_METADATA_ID.bde925d9ef": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["REGISTRY_METADATA_ID"], "model": "{{ get_where_subquery(ref('silver_olas__registry_metadata_complete')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_olas", "name": "dbt_utils_unique_combination_of_columns_silver_olas__registry_metadata_complete_REGISTRY_METADATA_ID", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_utils_unique_combination_o_92841ee3fccc7ca861c3430efdf3f568.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__registry_metadata_complete.yml", "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_metadata_complete_REGISTRY_METADATA_ID.bde925d9ef", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "dbt_utils_unique_combination_of_columns_silver_olas__registry_metadata_complete_REGISTRY_METADATA_ID"], "alias": "registry_metadata_complete_REGISTRY_METADATA_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_92841ee3fccc7ca861c3430efdf3f568", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_92841ee3fccc7ca861c3430efdf3f568"}, "created_at": 1764018434.1796126, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_olas.registry_metadata_complete_REGISTRY_METADATA_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_92841ee3fccc7ca861c3430efdf3f568\") }}", "language": "sql", "refs": [{"name": "silver_olas__registry_metadata_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__registry_metadata_complete"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__registry_metadata_complete.yml/dbt_utils_unique_combination_o_92841ee3fccc7ca861c3430efdf3f568.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n REGISTRY_METADATA_ID\n from polygon.silver_olas.registry_metadata_complete\n group by REGISTRY_METADATA_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_olas__registry_metadata_complete", "attached_node": "model.polygon_models.silver_olas__registry_metadata_complete"}, "test.polygon_models.not_null_silver_olas__registry_metadata_BLOCK_NUMBER.df505ae61e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver_olas__registry_metadata')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__registry_metadata_BLOCK_NUMBER", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__registry_metadata_BLOCK_NUMBER.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__registry_metadata.yml", "unique_id": "test.polygon_models.not_null_silver_olas__registry_metadata_BLOCK_NUMBER.df505ae61e", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "not_null_silver_olas__registry_metadata_BLOCK_NUMBER"], "alias": "registry_metadata_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.185893, "relation_name": "polygon.not_null_silver_olas.registry_metadata_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__registry_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__registry_metadata"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__registry_metadata.yml/not_null_silver_olas__registry_metadata_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.registry_metadata\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver_olas__registry_metadata", "attached_node": "model.polygon_models.silver_olas__registry_metadata"}, "test.polygon_models.not_null_silver_olas__registry_metadata_CONTRACT_ADDRESS.d47b0a47dc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_olas__registry_metadata')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__registry_metadata_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__registry_metadata_CONTRACT_ADDRESS.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__registry_metadata.yml", "unique_id": "test.polygon_models.not_null_silver_olas__registry_metadata_CONTRACT_ADDRESS.d47b0a47dc", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "not_null_silver_olas__registry_metadata_CONTRACT_ADDRESS"], "alias": "registry_metadata_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.1880023, "relation_name": "polygon.not_null_silver_olas.registry_metadata_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__registry_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__registry_metadata"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__registry_metadata.yml/not_null_silver_olas__registry_metadata_CONTRACT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.registry_metadata\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_olas__registry_metadata", "attached_node": "model.polygon_models.silver_olas__registry_metadata"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_metadata_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2d2a8813c5": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_olas__registry_metadata')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_olas", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_metadata_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_1586e7f236bfae926bc85f5573c4c461.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__registry_metadata.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_metadata_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2d2a8813c5", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_metadata_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "registry_metadata_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1586e7f236bfae926bc85f5573c4c461", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_1586e7f236bfae926bc85f5573c4c461"}, "created_at": 1764018434.190047, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_olas.registry_metadata_CONTRACT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1586e7f236bfae926bc85f5573c4c461\") }}", "language": "sql", "refs": [{"name": "silver_olas__registry_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__registry_metadata"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__registry_metadata.yml/dbt_expectations_expect_column_1586e7f236bfae926bc85f5573c4c461.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_olas.registry_metadata\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_olas__registry_metadata", "attached_node": "model.polygon_models.silver_olas__registry_metadata"}, "test.polygon_models.not_null_silver_olas__registry_metadata_REGISTRY_ID.cee5b3e691": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "REGISTRY_ID", "model": "{{ get_where_subquery(ref('silver_olas__registry_metadata')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__registry_metadata_REGISTRY_ID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__registry_metadata_REGISTRY_ID.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__registry_metadata.yml", "unique_id": "test.polygon_models.not_null_silver_olas__registry_metadata_REGISTRY_ID.cee5b3e691", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "not_null_silver_olas__registry_metadata_REGISTRY_ID"], "alias": "registry_metadata_REGISTRY_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.1952908, "relation_name": "polygon.not_null_silver_olas.registry_metadata_REGISTRY_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__registry_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__registry_metadata"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__registry_metadata.yml/not_null_silver_olas__registry_metadata_REGISTRY_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.registry_metadata\nwhere REGISTRY_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "REGISTRY_ID", "file_key_name": "models.silver_olas__registry_metadata", "attached_node": "model.polygon_models.silver_olas__registry_metadata"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_metadata_REGISTRY_METADATA_ID.818d85b569": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["REGISTRY_METADATA_ID"], "model": "{{ get_where_subquery(ref('silver_olas__registry_metadata')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_olas", "name": "dbt_utils_unique_combination_of_columns_silver_olas__registry_metadata_REGISTRY_METADATA_ID", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_utils_unique_combination_o_9c3ade08dea90edcb1d4efb76bfc9f6b.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__registry_metadata.yml", "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_metadata_REGISTRY_METADATA_ID.818d85b569", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "dbt_utils_unique_combination_of_columns_silver_olas__registry_metadata_REGISTRY_METADATA_ID"], "alias": "registry_metadata_REGISTRY_METADATA_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9c3ade08dea90edcb1d4efb76bfc9f6b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_9c3ade08dea90edcb1d4efb76bfc9f6b"}, "created_at": 1764018434.1973753, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_olas.registry_metadata_REGISTRY_METADATA_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9c3ade08dea90edcb1d4efb76bfc9f6b\") }}", "language": "sql", "refs": [{"name": "silver_olas__registry_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__registry_metadata"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__registry_metadata.yml/dbt_utils_unique_combination_o_9c3ade08dea90edcb1d4efb76bfc9f6b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n REGISTRY_METADATA_ID\n from polygon.silver_olas.registry_metadata\n group by REGISTRY_METADATA_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_olas__registry_metadata", "attached_node": "model.polygon_models.silver_olas__registry_metadata"}, "test.polygon_models.not_null_silver_olas__registry_reads_BLOCK_NUMBER.b13e2f8805": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver_olas__registry_reads')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__registry_reads_BLOCK_NUMBER", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__registry_reads_BLOCK_NUMBER.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__registry_reads.yml", "unique_id": "test.polygon_models.not_null_silver_olas__registry_reads_BLOCK_NUMBER.b13e2f8805", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "not_null_silver_olas__registry_reads_BLOCK_NUMBER"], "alias": "registry_reads_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.2037604, "relation_name": "polygon.not_null_silver_olas.registry_reads_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__registry_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__registry_reads"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__registry_reads.yml/not_null_silver_olas__registry_reads_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.registry_reads\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver_olas__registry_reads", "attached_node": "model.polygon_models.silver_olas__registry_reads"}, "test.polygon_models.not_null_silver_olas__registry_reads_CONTRACT_ADDRESS.8aeb785480": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_olas__registry_reads')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__registry_reads_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__registry_reads_CONTRACT_ADDRESS.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__registry_reads.yml", "unique_id": "test.polygon_models.not_null_silver_olas__registry_reads_CONTRACT_ADDRESS.8aeb785480", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "not_null_silver_olas__registry_reads_CONTRACT_ADDRESS"], "alias": "registry_reads_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.205874, "relation_name": "polygon.not_null_silver_olas.registry_reads_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__registry_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__registry_reads"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__registry_reads.yml/not_null_silver_olas__registry_reads_CONTRACT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.registry_reads\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_olas__registry_reads", "attached_node": "model.polygon_models.silver_olas__registry_reads"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_reads_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.5dc95cdcbc": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_olas__registry_reads')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_olas", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_reads_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_aaa31071526e6413e5bb9bb2ad16e676.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__registry_reads.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_reads_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.5dc95cdcbc", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_reads_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "registry_reads_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_aaa31071526e6413e5bb9bb2ad16e676", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_aaa31071526e6413e5bb9bb2ad16e676"}, "created_at": 1764018434.2079313, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_olas.registry_reads_CONTRACT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_aaa31071526e6413e5bb9bb2ad16e676\") }}", "language": "sql", "refs": [{"name": "silver_olas__registry_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__registry_reads"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__registry_reads.yml/dbt_expectations_expect_column_aaa31071526e6413e5bb9bb2ad16e676.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_olas.registry_reads\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_olas__registry_reads", "attached_node": "model.polygon_models.silver_olas__registry_reads"}, "test.polygon_models.not_null_silver_olas__registry_reads_TOKEN_URI_LINK.e05085b1e1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_URI_LINK", "model": "{{ get_where_subquery(ref('silver_olas__registry_reads')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_olas", "name": "not_null_silver_olas__registry_reads_TOKEN_URI_LINK", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver_olas__registry_reads_TOKEN_URI_LINK.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__registry_reads.yml", "unique_id": "test.polygon_models.not_null_silver_olas__registry_reads_TOKEN_URI_LINK.e05085b1e1", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "not_null_silver_olas__registry_reads_TOKEN_URI_LINK"], "alias": "registry_reads_TOKEN_URI_LINK", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.213149, "relation_name": "polygon.not_null_silver_olas.registry_reads_TOKEN_URI_LINK", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_olas__registry_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__registry_reads"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__registry_reads.yml/not_null_silver_olas__registry_reads_TOKEN_URI_LINK.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_olas.registry_reads\nwhere TOKEN_URI_LINK is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_URI_LINK", "file_key_name": "models.silver_olas__registry_reads", "attached_node": "model.polygon_models.silver_olas__registry_reads"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_reads_REGISTRY_READS_ID.92579c5880": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["REGISTRY_READS_ID"], "model": "{{ get_where_subquery(ref('silver_olas__registry_reads')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_olas", "name": "dbt_utils_unique_combination_of_columns_silver_olas__registry_reads_REGISTRY_READS_ID", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_utils_unique_combination_o_44b1b64fa22821320abb3699200e1b8e.sql", "original_file_path": "models/silver/protocols/olas/metadata/silver_olas__registry_reads.yml", "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_reads_REGISTRY_READS_ID.92579c5880", "fqn": ["polygon_models", "silver", "protocols", "olas", "metadata", "dbt_utils_unique_combination_of_columns_silver_olas__registry_reads_REGISTRY_READS_ID"], "alias": "registry_reads_REGISTRY_READS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_44b1b64fa22821320abb3699200e1b8e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_44b1b64fa22821320abb3699200e1b8e"}, "created_at": 1764018434.215211, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_olas.registry_reads_REGISTRY_READS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_44b1b64fa22821320abb3699200e1b8e\") }}", "language": "sql", "refs": [{"name": "silver_olas__registry_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver_olas__registry_reads"]}, "compiled_path": "target/compiled/polygon_models/models/silver/protocols/olas/metadata/silver_olas__registry_reads.yml/dbt_utils_unique_combination_o_44b1b64fa22821320abb3699200e1b8e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n REGISTRY_READS_ID\n from polygon.silver_olas.registry_reads\n group by REGISTRY_READS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_olas__registry_reads", "attached_node": "model.polygon_models.silver_olas__registry_reads"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_BLOCK_NUMBER.87ef6d1a21": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_BLOCK_NUMBER", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_BLOCK_NUMBER.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_BLOCK_NUMBER.87ef6d1a21", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_BLOCK_NUMBER"], "alias": "seaport_1_4_sales_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.2286124, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_BLOCK_NUMBER__NUMBER__FLOAT.db1568242f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_39b3852ab23cbc96337ea936a7943e37.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_BLOCK_NUMBER__NUMBER__FLOAT.db1568242f", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "seaport_1_4_sales_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_39b3852ab23cbc96337ea936a7943e37", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_39b3852ab23cbc96337ea936a7943e37"}, "created_at": 1764018434.2307396, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_4_sales_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_39b3852ab23cbc96337ea936a7943e37\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_expectations_expect_column_39b3852ab23cbc96337ea936a7943e37.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_BLOCK_TIMESTAMP.64626723f1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_BLOCK_TIMESTAMP.64626723f1", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_BLOCK_TIMESTAMP"], "alias": "seaport_1_4_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.235497, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e5a6626a52": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_aeaa512d71287a7a3c29132f954b5f99.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e5a6626a52", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "seaport_1_4_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_aeaa512d71287a7a3c29132f954b5f99", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_aeaa512d71287a7a3c29132f954b5f99"}, "created_at": 1764018434.237569, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_4_sales_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_aeaa512d71287a7a3c29132f954b5f99\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_expectations_expect_column_aeaa512d71287a7a3c29132f954b5f99.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_TX_HASH.76c3272674": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_TX_HASH", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_TX_HASH.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_TX_HASH.76c3272674", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_TX_HASH"], "alias": "seaport_1_4_sales_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.242782, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_TX_HASH__0_xX_0_9a_fA_F_.6ec2b48a1e": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_83fcf9e200a46c8163f2070aa811fcd5.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_TX_HASH__0_xX_0_9a_fA_F_.6ec2b48a1e", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "seaport_1_4_sales_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_83fcf9e200a46c8163f2070aa811fcd5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_83fcf9e200a46c8163f2070aa811fcd5"}, "created_at": 1764018434.244875, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_4_sales_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_83fcf9e200a46c8163f2070aa811fcd5\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_expectations_expect_column_83fcf9e200a46c8163f2070aa811fcd5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_4_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_ADDRESS.148994188c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_PLATFORM_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_PLATFORM_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_ADDRESS.148994188c", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_PLATFORM_ADDRESS"], "alias": "seaport_1_4_sales_PLATFORM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.2501135, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_PLATFORM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_PLATFORM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere PLATFORM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_ADDRESS", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.cd2cbbcc06": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "PLATFORM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_f235e5d72530a450311efaa67ff6ce76.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.cd2cbbcc06", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_4_sales_PLATFORM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f235e5d72530a450311efaa67ff6ce76", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f235e5d72530a450311efaa67ff6ce76"}, "created_at": 1764018434.2521842, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_4_sales_PLATFORM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f235e5d72530a450311efaa67ff6ce76\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_expectations_expect_column_f235e5d72530a450311efaa67ff6ce76.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(PLATFORM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_4_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_ADDRESS", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_NAME.1fb199e6b9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_NAME", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_PLATFORM_NAME", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_PLATFORM_NAME.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_NAME.1fb199e6b9", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_PLATFORM_NAME"], "alias": "seaport_1_4_sales_PLATFORM_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.2573671, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_PLATFORM_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_PLATFORM_NAME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere PLATFORM_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_NAME", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_4_sales_PLATFORM_NAME__opensea.cab2dd30f7": {"test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["opensea"], "column_name": "PLATFORM_NAME", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_set_silver", "name": "dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_4_sales_PLATFORM_NAME__opensea", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_1c5e2efe7e8cf2563374d1b3a1d6fb55.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_4_sales_PLATFORM_NAME__opensea.cab2dd30f7", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_4_sales_PLATFORM_NAME__opensea"], "alias": "seaport_1_4_sales_PLATFORM_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1c5e2efe7e8cf2563374d1b3a1d6fb55", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_1c5e2efe7e8cf2563374d1b3a1d6fb55"}, "created_at": 1764018434.2594063, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_set_silver.seaport_1_4_sales_PLATFORM_NAME", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1c5e2efe7e8cf2563374d1b3a1d6fb55\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_expectations_expect_column_1c5e2efe7e8cf2563374d1b3a1d6fb55.sql", "compiled": true, "compiled_code": "\n\nwith all_values as (\n\n select\n PLATFORM_NAME as value_field\n\n from polygon.silver.seaport_1_4_sales\n \n\n),\nset_values as (\n\n select\n cast('opensea' as TEXT) as value_field\n \n \n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_NAME", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_SELLER_ADDRESS.efdfee2c74": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SELLER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_SELLER_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_SELLER_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_SELLER_ADDRESS.efdfee2c74", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_SELLER_ADDRESS"], "alias": "seaport_1_4_sales_SELLER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.268872, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_SELLER_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_SELLER_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere SELLER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SELLER_ADDRESS", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.f7b39ffb41": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "SELLER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_b833156ca71857ac89144ad3dccee621.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.f7b39ffb41", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_4_sales_SELLER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b833156ca71857ac89144ad3dccee621", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b833156ca71857ac89144ad3dccee621"}, "created_at": 1764018434.270938, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_4_sales_SELLER_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b833156ca71857ac89144ad3dccee621\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_expectations_expect_column_b833156ca71857ac89144ad3dccee621.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(SELLER_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_4_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SELLER_ADDRESS", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_BUYER_ADDRESS.39557d23ca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BUYER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_BUYER_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_BUYER_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_BUYER_ADDRESS.39557d23ca", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_BUYER_ADDRESS"], "alias": "seaport_1_4_sales_BUYER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.275996, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_BUYER_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_BUYER_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere BUYER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BUYER_ADDRESS", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.f73a5fc522": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "BUYER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_c97b2d69ba0d9a0eb2f63bdfb9f8d1ad.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.f73a5fc522", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_4_sales_BUYER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c97b2d69ba0d9a0eb2f63bdfb9f8d1ad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c97b2d69ba0d9a0eb2f63bdfb9f8d1ad"}, "created_at": 1764018434.2780383, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_4_sales_BUYER_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c97b2d69ba0d9a0eb2f63bdfb9f8d1ad\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_expectations_expect_column_c97b2d69ba0d9a0eb2f63bdfb9f8d1ad.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(BUYER_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_4_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BUYER_ADDRESS", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_NFT_ADDRESS.9e5ab44cbd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NFT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_NFT_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_NFT_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_NFT_ADDRESS.9e5ab44cbd", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_NFT_ADDRESS"], "alias": "seaport_1_4_sales_NFT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.2831547, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_NFT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_NFT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere NFT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_ADDRESS", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.ea367e02b2": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "NFT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_10d632231358a534c9d66b2706ba1698.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.ea367e02b2", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_4_sales_NFT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_10d632231358a534c9d66b2706ba1698", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_10d632231358a534c9d66b2706ba1698"}, "created_at": 1764018434.2852015, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_4_sales_NFT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_10d632231358a534c9d66b2706ba1698\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_expectations_expect_column_10d632231358a534c9d66b2706ba1698.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(NFT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_4_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_ADDRESS", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_TOKENID.8353c1c5b8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKENID", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_TOKENID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_TOKENID.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_TOKENID.8353c1c5b8", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_TOKENID"], "alias": "seaport_1_4_sales_TOKENID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.2900524, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_TOKENID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_TOKENID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere TOKENID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKENID", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_CURRENCY_ADDRESS.cfb0b5d08a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CURRENCY_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_CURRENCY_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_CURRENCY_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_CURRENCY_ADDRESS.cfb0b5d08a", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_CURRENCY_ADDRESS"], "alias": "seaport_1_4_sales_CURRENCY_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "total_price_raw > 0", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "where": "total_price_raw > 0"}, "created_at": 1764018434.2927296, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_CURRENCY_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"total_price_raw > 0\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_CURRENCY_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver.seaport_1_4_sales where total_price_raw > 0) dbt_subquery\nwhere CURRENCY_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CURRENCY_ADDRESS", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_TOTAL_PRICE_RAW.0ccd4356fe": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_PRICE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_TOTAL_PRICE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_TOTAL_PRICE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_TOTAL_PRICE_RAW.0ccd4356fe", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_TOTAL_PRICE_RAW"], "alias": "seaport_1_4_sales_TOTAL_PRICE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.2947702, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_TOTAL_PRICE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_TOTAL_PRICE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere TOTAL_PRICE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_PRICE_RAW", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.fceecfdb11": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TOTAL_PRICE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_45da0f7647c2331c0322122545f78277.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.fceecfdb11", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT"], "alias": "seaport_1_4_sales_TOTAL_PRICE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_45da0f7647c2331c0322122545f78277", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_45da0f7647c2331c0322122545f78277"}, "created_at": 1764018434.2968109, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_4_sales_TOTAL_PRICE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_45da0f7647c2331c0322122545f78277\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_expectations_expect_column_45da0f7647c2331c0322122545f78277.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_PRICE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_PRICE_RAW", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_TOTAL_FEES_RAW.49141684e9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_FEES_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_TOTAL_FEES_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_TOTAL_FEES_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_TOTAL_FEES_RAW.49141684e9", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_TOTAL_FEES_RAW"], "alias": "seaport_1_4_sales_TOTAL_FEES_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.3014874, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_TOTAL_FEES_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_TOTAL_FEES_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere TOTAL_FEES_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES_RAW", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.2bde19d676": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TOTAL_FEES_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TOTAL_FEES_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_2deeb29f7b208663ea78e4dceea6f3bd.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.2bde19d676", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TOTAL_FEES_RAW__NUMBER__FLOAT"], "alias": "seaport_1_4_sales_TOTAL_FEES_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2deeb29f7b208663ea78e4dceea6f3bd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_2deeb29f7b208663ea78e4dceea6f3bd"}, "created_at": 1764018434.3035028, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_4_sales_TOTAL_FEES_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2deeb29f7b208663ea78e4dceea6f3bd\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_expectations_expect_column_2deeb29f7b208663ea78e4dceea6f3bd.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_FEES_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES_RAW", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_FEE_RAW.a0f300ff1c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_PLATFORM_FEE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_PLATFORM_FEE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_FEE_RAW.a0f300ff1c", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_PLATFORM_FEE_RAW"], "alias": "seaport_1_4_sales_PLATFORM_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.3079748, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_PLATFORM_FEE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_PLATFORM_FEE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere PLATFORM_FEE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_FEE_RAW", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.b3d57d8632": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "PLATFORM_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_290dceb189551e4670b636662592f450.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.b3d57d8632", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT"], "alias": "seaport_1_4_sales_PLATFORM_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_290dceb189551e4670b636662592f450", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_290dceb189551e4670b636662592f450"}, "created_at": 1764018434.3102984, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_4_sales_PLATFORM_FEE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_290dceb189551e4670b636662592f450\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_expectations_expect_column_290dceb189551e4670b636662592f450.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'PLATFORM_FEE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_FEE_RAW", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_CREATOR_FEE_RAW.98d862e5d3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CREATOR_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_CREATOR_FEE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_CREATOR_FEE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_CREATOR_FEE_RAW.98d862e5d3", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_CREATOR_FEE_RAW"], "alias": "seaport_1_4_sales_CREATOR_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.3147364, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_CREATOR_FEE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_CREATOR_FEE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere CREATOR_FEE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATOR_FEE_RAW", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.bd13725310": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "CREATOR_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_CREATOR_FEE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_70e1671d58049e0ef666c7b2e05967dc.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.bd13725310", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_CREATOR_FEE_RAW__NUMBER__FLOAT"], "alias": "seaport_1_4_sales_CREATOR_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_70e1671d58049e0ef666c7b2e05967dc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_70e1671d58049e0ef666c7b2e05967dc"}, "created_at": 1764018434.3167772, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_4_sales_CREATOR_FEE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_70e1671d58049e0ef666c7b2e05967dc\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_expectations_expect_column_70e1671d58049e0ef666c7b2e05967dc.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'CREATOR_FEE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATOR_FEE_RAW", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_TX_FEE.7a79488ebd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_TX_FEE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_TX_FEE.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_TX_FEE.7a79488ebd", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_TX_FEE"], "alias": "seaport_1_4_sales_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.3215, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_TX_FEE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_TX_FEE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere TX_FEE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TX_FEE__NUMBER__FLOAT.d59a0ea6ef": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TX_FEE__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_b737215dde5c79e88ec081cf31e103f1.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TX_FEE__NUMBER__FLOAT.d59a0ea6ef", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TX_FEE__NUMBER__FLOAT"], "alias": "seaport_1_4_sales_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b737215dde5c79e88ec081cf31e103f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b737215dde5c79e88ec081cf31e103f1"}, "created_at": 1764018434.3235538, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_4_sales_TX_FEE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b737215dde5c79e88ec081cf31e103f1\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_expectations_expect_column_b737215dde5c79e88ec081cf31e103f1.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_FEE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_NFT_LOG_ID.5be99512a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NFT_LOG_ID", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_NFT_LOG_ID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_NFT_LOG_ID.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_NFT_LOG_ID.5be99512a7", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_NFT_LOG_ID"], "alias": "seaport_1_4_sales_NFT_LOG_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.328288, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_NFT_LOG_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_NFT_LOG_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere NFT_LOG_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_LOG_ID", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales__INSERTED_TIMESTAMP.7cc0485f0d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales__INSERTED_TIMESTAMP.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales__INSERTED_TIMESTAMP.7cc0485f0d", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales__INSERTED_TIMESTAMP"], "alias": "seaport_1_4_sales", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.3303661, "relation_name": "polygon.not_null_silver.seaport_1_4_sales", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82ad920c6e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_8465b2baa9337902c5186231a88be038.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82ad920c6e", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "seaport_1_4_sales", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8465b2baa9337902c5186231a88be038", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_8465b2baa9337902c5186231a88be038"}, "created_at": 1764018434.332412, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_4_sales", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8465b2baa9337902c5186231a88be038\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_expectations_expect_column_8465b2baa9337902c5186231a88be038.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS.492297495d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS.492297495d", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS"], "alias": "seaport_1_4_sales_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.3371763, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.b0cc0cbca1": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_ed52bf66ea09394c33b3030ea36b5f7c.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.b0cc0cbca1", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_4_sales_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ed52bf66ea09394c33b3030ea36b5f7c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_ed52bf66ea09394c33b3030ea36b5f7c"}, "created_at": 1764018434.3392346, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_4_sales_ORIGIN_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ed52bf66ea09394c33b3030ea36b5f7c\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_expectations_expect_column_ed52bf66ea09394c33b3030ea36b5f7c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_4_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS.e67fafc448": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS.e67fafc448", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS"], "alias": "seaport_1_4_sales_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.3440735, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_ORIGIN_TO_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere ORIGIN_TO_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.6a5fede4fd": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_143d34213fea5e846346ecc501426e92.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.6a5fede4fd", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_4_sales_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_143d34213fea5e846346ecc501426e92", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_143d34213fea5e846346ecc501426e92"}, "created_at": 1764018434.3463495, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_4_sales_ORIGIN_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_143d34213fea5e846346ecc501426e92\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_expectations_expect_column_143d34213fea5e846346ecc501426e92.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_4_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE.e81f20de7e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE.e81f20de7e", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE"], "alias": "seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.3511508, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.8d40d2780e": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_fa5cef1a4100da5eb0354200b907b65a.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.8d40d2780e", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_"], "alias": "seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_fa5cef1a4100da5eb0354200b907b65a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_fa5cef1a4100da5eb0354200b907b65a"}, "created_at": 1764018434.3534606, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_fa5cef1a4100da5eb0354200b907b65a\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_expectations_expect_column_fa5cef1a4100da5eb0354200b907b65a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FUNCTION_SIGNATURE, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_4_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_EVENT_TYPE.a53bf70c11": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_TYPE", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_EVENT_TYPE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_EVENT_TYPE.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_EVENT_TYPE.a53bf70c11", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_EVENT_TYPE"], "alias": "seaport_1_4_sales_EVENT_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.358303, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_EVENT_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_EVENT_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere EVENT_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_TYPE", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_4_sales_EVENT_TYPE__bid_won__sale.6b6cedf5d9": {"test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["bid_won", "sale"], "column_name": "EVENT_TYPE", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_set_silver", "name": "dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_4_sales_EVENT_TYPE__bid_won__sale", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_8e94bb1b829a5a24493f6b31e1c773c1.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_4_sales_EVENT_TYPE__bid_won__sale.6b6cedf5d9", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_4_sales_EVENT_TYPE__bid_won__sale"], "alias": "seaport_1_4_sales_EVENT_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8e94bb1b829a5a24493f6b31e1c773c1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_8e94bb1b829a5a24493f6b31e1c773c1"}, "created_at": 1764018434.3603702, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_set_silver.seaport_1_4_sales_EVENT_TYPE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8e94bb1b829a5a24493f6b31e1c773c1\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_expectations_expect_column_8e94bb1b829a5a24493f6b31e1c773c1.sql", "compiled": true, "compiled_code": "\n\nwith all_values as (\n\n select\n EVENT_TYPE as value_field\n\n from polygon.silver.seaport_1_4_sales\n \n\n),\nset_values as (\n\n select\n cast('bid_won' as TEXT) as value_field\n union all\n select\n cast('sale' as TEXT) as value_field\n \n \n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_TYPE", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__seaport_1_4_sales_INPUT_DATA.02b25fd3bc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INPUT_DATA", "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_4_sales_INPUT_DATA", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_4_sales_INPUT_DATA.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_4_sales_INPUT_DATA.02b25fd3bc", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_4_sales_INPUT_DATA"], "alias": "seaport_1_4_sales_INPUT_DATA", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.3665967, "relation_name": "polygon.not_null_silver.seaport_1_4_sales_INPUT_DATA", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/not_null_silver__seaport_1_4_sales_INPUT_DATA.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_4_sales\nwhere INPUT_DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INPUT_DATA", "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_4_sales_nft_log_id.a174df5b72": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["nft_log_id"], "model": "{{ get_where_subquery(ref('silver__seaport_1_4_sales')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__seaport_1_4_sales_nft_log_id", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_utils_unique_combination_o_b19aba128299818d863656383ef71051.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_4_sales.yml", "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_4_sales_nft_log_id.a174df5b72", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_utils_unique_combination_of_columns_silver__seaport_1_4_sales_nft_log_id"], "alias": "seaport_1_4_sales_nft_log_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b19aba128299818d863656383ef71051", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_b19aba128299818d863656383ef71051"}, "created_at": 1764018434.368642, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.seaport_1_4_sales_nft_log_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b19aba128299818d863656383ef71051\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_4_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_4_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_4_sales.yml/dbt_utils_unique_combination_o_b19aba128299818d863656383ef71051.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n nft_log_id\n from polygon.silver.seaport_1_4_sales\n group by nft_log_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__seaport_1_4_sales", "attached_node": "model.polygon_models.silver__seaport_1_4_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_BLOCK_NUMBER.57944b643f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_BLOCK_NUMBER", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_BLOCK_NUMBER.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_BLOCK_NUMBER.57944b643f", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_BLOCK_NUMBER"], "alias": "complete_nft_sales_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.380402, "relation_name": "polygon.not_null_silver.complete_nft_sales_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_BLOCK_NUMBER__NUMBER__FLOAT.fdf0d994a1": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_b5b5b5f59c49d809ef8efb743203f94a.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_BLOCK_NUMBER__NUMBER__FLOAT.fdf0d994a1", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "complete_nft_sales_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b5b5b5f59c49d809ef8efb743203f94a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b5b5b5f59c49d809ef8efb743203f94a"}, "created_at": 1764018434.3825157, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.complete_nft_sales_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b5b5b5f59c49d809ef8efb743203f94a\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_b5b5b5f59c49d809ef8efb743203f94a.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLDATA_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MARKETPLACE_DECODED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AGGREGATOR_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('COMPLETE_NFT_SALES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_BLOCK_TIMESTAMP.79a5861cbe": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_BLOCK_TIMESTAMP.79a5861cbe", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_BLOCK_TIMESTAMP"], "alias": "complete_nft_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.3870316, "relation_name": "polygon.not_null_silver.complete_nft_sales_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__complete_nft_sales_BLOCK_TIMESTAMP__day__1.40e4447972": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__complete_nft_sales_BLOCK_TIMESTAMP__day__1", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_row_va_9b2cdaade234a07e358cc93b5cdbf2e5.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__complete_nft_sales_BLOCK_TIMESTAMP__day__1.40e4447972", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_row_values_to_have_recent_data_silver__complete_nft_sales_BLOCK_TIMESTAMP__day__1"], "alias": "complete_nft_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_9b2cdaade234a07e358cc93b5cdbf2e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_9b2cdaade234a07e358cc93b5cdbf2e5"}, "created_at": 1764018434.3893569, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver.complete_nft_sales_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_9b2cdaade234a07e358cc93b5cdbf2e5\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_row_va_9b2cdaade234a07e358cc93b5cdbf2e5.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver.complete_nft_sales\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.84edb45427": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_5541c2f911ce336901526930fda59036.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.84edb45427", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "complete_nft_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5541c2f911ce336901526930fda59036", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_5541c2f911ce336901526930fda59036"}, "created_at": 1764018434.3965745, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.complete_nft_sales_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5541c2f911ce336901526930fda59036\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_5541c2f911ce336901526930fda59036.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLDATA_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MARKETPLACE_DECODED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AGGREGATOR_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('COMPLETE_NFT_SALES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_TX_HASH.c6a7c23911": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_TX_HASH", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_TX_HASH.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_TX_HASH.c6a7c23911", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_TX_HASH"], "alias": "complete_nft_sales_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.4014616, "relation_name": "polygon.not_null_silver.complete_nft_sales_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_TX_HASH__0_xX_0_9a_fA_F_.0ee978e0d4": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_3f660b2a2575d867a2b26c99fd6cdc8c.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_TX_HASH__0_xX_0_9a_fA_F_.0ee978e0d4", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "complete_nft_sales_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3f660b2a2575d867a2b26c99fd6cdc8c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3f660b2a2575d867a2b26c99fd6cdc8c"}, "created_at": 1764018434.403781, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.complete_nft_sales_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3f660b2a2575d867a2b26c99fd6cdc8c\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_3f660b2a2575d867a2b26c99fd6cdc8c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.complete_nft_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_EVENT_INDEX.f2adcca32f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_EVENT_INDEX", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_EVENT_INDEX.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_EVENT_INDEX.f2adcca32f", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_EVENT_INDEX"], "alias": "complete_nft_sales_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.408677, "relation_name": "polygon.not_null_silver.complete_nft_sales_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_EVENT_INDEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_ADDRESS.795fa17957": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_PLATFORM_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_PLATFORM_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_ADDRESS.795fa17957", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_PLATFORM_ADDRESS"], "alias": "complete_nft_sales_PLATFORM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.4109645, "relation_name": "polygon.not_null_silver.complete_nft_sales_PLATFORM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_PLATFORM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere PLATFORM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_ADDRESS", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.5e6bffa046": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "PLATFORM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_25729b0be65fed9eea0da6e2f0f0fb7f.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.5e6bffa046", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "complete_nft_sales_PLATFORM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_25729b0be65fed9eea0da6e2f0f0fb7f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_25729b0be65fed9eea0da6e2f0f0fb7f"}, "created_at": 1764018434.4129872, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.complete_nft_sales_PLATFORM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_25729b0be65fed9eea0da6e2f0f0fb7f\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_25729b0be65fed9eea0da6e2f0f0fb7f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(PLATFORM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.complete_nft_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_ADDRESS", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_NAME.ffe92d79fd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_NAME", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_PLATFORM_NAME", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_PLATFORM_NAME.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_NAME.ffe92d79fd", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_PLATFORM_NAME"], "alias": "complete_nft_sales_PLATFORM_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.4178057, "relation_name": "polygon.not_null_silver.complete_nft_sales_PLATFORM_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_PLATFORM_NAME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere PLATFORM_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_NAME", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_SELLER_ADDRESS.eda1b7ad24": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SELLER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_SELLER_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_SELLER_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_SELLER_ADDRESS.eda1b7ad24", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_SELLER_ADDRESS"], "alias": "complete_nft_sales_SELLER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.4200764, "relation_name": "polygon.not_null_silver.complete_nft_sales_SELLER_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_SELLER_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere SELLER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SELLER_ADDRESS", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.bbf4b8149f": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "SELLER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_c9cd7858c4d5f13feb7c74bdf268205f.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.bbf4b8149f", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "complete_nft_sales_SELLER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c9cd7858c4d5f13feb7c74bdf268205f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c9cd7858c4d5f13feb7c74bdf268205f"}, "created_at": 1764018434.4221146, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.complete_nft_sales_SELLER_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c9cd7858c4d5f13feb7c74bdf268205f\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_c9cd7858c4d5f13feb7c74bdf268205f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(SELLER_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.complete_nft_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SELLER_ADDRESS", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_BUYER_ADDRESS.69569a63c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BUYER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_BUYER_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_BUYER_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_BUYER_ADDRESS.69569a63c7", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_BUYER_ADDRESS"], "alias": "complete_nft_sales_BUYER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.4269786, "relation_name": "polygon.not_null_silver.complete_nft_sales_BUYER_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_BUYER_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere BUYER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BUYER_ADDRESS", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4226247a32": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "BUYER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_cdd0d6e5faea20f4b716bf7aaf035700.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4226247a32", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "complete_nft_sales_BUYER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_cdd0d6e5faea20f4b716bf7aaf035700", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_cdd0d6e5faea20f4b716bf7aaf035700"}, "created_at": 1764018434.4292278, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.complete_nft_sales_BUYER_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_cdd0d6e5faea20f4b716bf7aaf035700\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_cdd0d6e5faea20f4b716bf7aaf035700.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(BUYER_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.complete_nft_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BUYER_ADDRESS", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_NFT_ADDRESS.5537952adb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NFT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_NFT_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_NFT_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_NFT_ADDRESS.5537952adb", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_NFT_ADDRESS"], "alias": "complete_nft_sales_NFT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.4339957, "relation_name": "polygon.not_null_silver.complete_nft_sales_NFT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_NFT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere NFT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_ADDRESS", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.232d4d13e5": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "NFT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_48bc54156d9fb0882215a47ed8bb033a.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.232d4d13e5", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "complete_nft_sales_NFT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_48bc54156d9fb0882215a47ed8bb033a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_48bc54156d9fb0882215a47ed8bb033a"}, "created_at": 1764018434.4362745, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.complete_nft_sales_NFT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_48bc54156d9fb0882215a47ed8bb033a\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_48bc54156d9fb0882215a47ed8bb033a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(NFT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.complete_nft_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_ADDRESS", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_TOKENID.434c1bbb73": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKENID", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_TOKENID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_TOKENID.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_TOKENID.434c1bbb73", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_TOKENID"], "alias": "complete_nft_sales_TOKENID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.4411182, "relation_name": "polygon.not_null_silver.complete_nft_sales_TOKENID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_TOKENID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere TOKENID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKENID", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_CURRENCY_ADDRESS.9b1d0cc7a8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CURRENCY_ADDRESS", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_CURRENCY_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_CURRENCY_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_CURRENCY_ADDRESS.9b1d0cc7a8", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_CURRENCY_ADDRESS"], "alias": "complete_nft_sales_CURRENCY_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "platform_exchange_version not in ('seaport_1_1', 'seaport_1_4', 'seaport_1_5', 'seaport_1_6')", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "where": "platform_exchange_version not in ('seaport_1_1', 'seaport_1_4', 'seaport_1_5', 'seaport_1_6')"}, "created_at": 1764018434.4437726, "relation_name": "polygon.not_null_silver.complete_nft_sales_CURRENCY_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"platform_exchange_version not in ('seaport_1_1', 'seaport_1_4', 'seaport_1_5', 'seaport_1_6')\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_CURRENCY_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver.complete_nft_sales where platform_exchange_version not in ('seaport_1_1', 'seaport_1_4', 'seaport_1_5', 'seaport_1_6')) dbt_subquery\nwhere CURRENCY_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CURRENCY_ADDRESS", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_PRICE.664e2772c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PRICE", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_PRICE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_PRICE.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_PRICE.664e2772c7", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_PRICE"], "alias": "complete_nft_sales_PRICE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.445811, "relation_name": "polygon.not_null_silver.complete_nft_sales_PRICE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_PRICE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere PRICE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PRICE", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PRICE__NUMBER__FLOAT.b67f7f036b": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "PRICE", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PRICE__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_82eca30777766a4cd527c1b0756a30c6.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PRICE__NUMBER__FLOAT.b67f7f036b", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PRICE__NUMBER__FLOAT"], "alias": "complete_nft_sales_PRICE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_82eca30777766a4cd527c1b0756a30c6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_82eca30777766a4cd527c1b0756a30c6"}, "created_at": 1764018434.44783, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.complete_nft_sales_PRICE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_82eca30777766a4cd527c1b0756a30c6\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_82eca30777766a4cd527c1b0756a30c6.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLDATA_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MARKETPLACE_DECODED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AGGREGATOR_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('COMPLETE_NFT_SALES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'PRICE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PRICE", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PRICE_USD__NUMBER__FLOAT.3865ef9872": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "PRICE_USD", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PRICE_USD__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_d49a999d96d8c863d7c52e9587551648.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PRICE_USD__NUMBER__FLOAT.3865ef9872", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PRICE_USD__NUMBER__FLOAT"], "alias": "complete_nft_sales_PRICE_USD", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d49a999d96d8c863d7c52e9587551648", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d49a999d96d8c863d7c52e9587551648"}, "created_at": 1764018434.4522684, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.complete_nft_sales_PRICE_USD", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d49a999d96d8c863d7c52e9587551648\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_d49a999d96d8c863d7c52e9587551648.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLDATA_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MARKETPLACE_DECODED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AGGREGATOR_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('COMPLETE_NFT_SALES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'PRICE_USD'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PRICE_USD", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_TOTAL_FEES.5f94d9565b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_FEES", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_TOTAL_FEES", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_TOTAL_FEES.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_TOTAL_FEES.5f94d9565b", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_TOTAL_FEES"], "alias": "complete_nft_sales_TOTAL_FEES", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.457013, "relation_name": "polygon.not_null_silver.complete_nft_sales_TOTAL_FEES", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_TOTAL_FEES.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere TOTAL_FEES is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TOTAL_FEES__NUMBER__FLOAT.c717cf1013": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TOTAL_FEES", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TOTAL_FEES__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_2c18ffb07c903a0119de60e32ddb7257.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TOTAL_FEES__NUMBER__FLOAT.c717cf1013", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TOTAL_FEES__NUMBER__FLOAT"], "alias": "complete_nft_sales_TOTAL_FEES", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2c18ffb07c903a0119de60e32ddb7257", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_2c18ffb07c903a0119de60e32ddb7257"}, "created_at": 1764018434.459044, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.complete_nft_sales_TOTAL_FEES", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2c18ffb07c903a0119de60e32ddb7257\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_2c18ffb07c903a0119de60e32ddb7257.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLDATA_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MARKETPLACE_DECODED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AGGREGATOR_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('COMPLETE_NFT_SALES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_FEES'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_FEE.d2ec7dbdd0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_FEE", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_PLATFORM_FEE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_PLATFORM_FEE.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_FEE.d2ec7dbdd0", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_PLATFORM_FEE"], "alias": "complete_nft_sales_PLATFORM_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.4637513, "relation_name": "polygon.not_null_silver.complete_nft_sales_PLATFORM_FEE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_PLATFORM_FEE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere PLATFORM_FEE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_FEE", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PLATFORM_FEE__NUMBER__FLOAT.4db7a35a78": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "PLATFORM_FEE", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PLATFORM_FEE__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_1c51d77c8de14e13b659b52a86d64483.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PLATFORM_FEE__NUMBER__FLOAT.4db7a35a78", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PLATFORM_FEE__NUMBER__FLOAT"], "alias": "complete_nft_sales_PLATFORM_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1c51d77c8de14e13b659b52a86d64483", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_1c51d77c8de14e13b659b52a86d64483"}, "created_at": 1764018434.4657907, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.complete_nft_sales_PLATFORM_FEE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1c51d77c8de14e13b659b52a86d64483\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_1c51d77c8de14e13b659b52a86d64483.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLDATA_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MARKETPLACE_DECODED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AGGREGATOR_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('COMPLETE_NFT_SALES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'PLATFORM_FEE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_FEE", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_CREATOR_FEE.2bcba1a012": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CREATOR_FEE", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_CREATOR_FEE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_CREATOR_FEE.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_CREATOR_FEE.2bcba1a012", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_CREATOR_FEE"], "alias": "complete_nft_sales_CREATOR_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.4709702, "relation_name": "polygon.not_null_silver.complete_nft_sales_CREATOR_FEE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_CREATOR_FEE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere CREATOR_FEE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATOR_FEE", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_CREATOR_FEE__NUMBER__FLOAT.cff32bf09f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "CREATOR_FEE", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_CREATOR_FEE__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_924a524772eddf6830bab51eae684ac3.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_CREATOR_FEE__NUMBER__FLOAT.cff32bf09f", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_CREATOR_FEE__NUMBER__FLOAT"], "alias": "complete_nft_sales_CREATOR_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_924a524772eddf6830bab51eae684ac3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_924a524772eddf6830bab51eae684ac3"}, "created_at": 1764018434.4729993, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.complete_nft_sales_CREATOR_FEE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_924a524772eddf6830bab51eae684ac3\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_924a524772eddf6830bab51eae684ac3.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLDATA_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MARKETPLACE_DECODED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AGGREGATOR_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('COMPLETE_NFT_SALES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'CREATOR_FEE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATOR_FEE", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TOTAL_FEES_USD__NUMBER__FLOAT.8179f9db61": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TOTAL_FEES_USD", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TOTAL_FEES_USD__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_925004069935399e0c63953c01a66999.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TOTAL_FEES_USD__NUMBER__FLOAT.8179f9db61", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TOTAL_FEES_USD__NUMBER__FLOAT"], "alias": "complete_nft_sales_TOTAL_FEES_USD", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_925004069935399e0c63953c01a66999", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_925004069935399e0c63953c01a66999"}, "created_at": 1764018434.4774454, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.complete_nft_sales_TOTAL_FEES_USD", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_925004069935399e0c63953c01a66999\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_925004069935399e0c63953c01a66999.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLDATA_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MARKETPLACE_DECODED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AGGREGATOR_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('COMPLETE_NFT_SALES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_FEES_USD'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES_USD", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PLATFORM_FEE_USD__NUMBER__FLOAT.bf1cc86946": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "PLATFORM_FEE_USD", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PLATFORM_FEE_USD__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_721fac64c010717379b589eeb94573e8.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PLATFORM_FEE_USD__NUMBER__FLOAT.bf1cc86946", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PLATFORM_FEE_USD__NUMBER__FLOAT"], "alias": "complete_nft_sales_PLATFORM_FEE_USD", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_721fac64c010717379b589eeb94573e8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_721fac64c010717379b589eeb94573e8"}, "created_at": 1764018434.482146, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.complete_nft_sales_PLATFORM_FEE_USD", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_721fac64c010717379b589eeb94573e8\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_721fac64c010717379b589eeb94573e8.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLDATA_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MARKETPLACE_DECODED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AGGREGATOR_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('COMPLETE_NFT_SALES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'PLATFORM_FEE_USD'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_FEE_USD", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_CREATOR_FEE_USD__NUMBER__FLOAT.32f4b653be": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "CREATOR_FEE_USD", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_CREATOR_FEE_USD__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_83e219bbc5d249e46e1778f1e4826185.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_CREATOR_FEE_USD__NUMBER__FLOAT.32f4b653be", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_CREATOR_FEE_USD__NUMBER__FLOAT"], "alias": "complete_nft_sales_CREATOR_FEE_USD", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_83e219bbc5d249e46e1778f1e4826185", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_83e219bbc5d249e46e1778f1e4826185"}, "created_at": 1764018434.4866242, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.complete_nft_sales_CREATOR_FEE_USD", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_83e219bbc5d249e46e1778f1e4826185\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_83e219bbc5d249e46e1778f1e4826185.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLDATA_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MARKETPLACE_DECODED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AGGREGATOR_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('COMPLETE_NFT_SALES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'CREATOR_FEE_USD'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATOR_FEE_USD", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_TX_FEE.3b60a50418": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_TX_FEE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_TX_FEE.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_TX_FEE.3b60a50418", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_TX_FEE"], "alias": "complete_nft_sales_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.4913578, "relation_name": "polygon.not_null_silver.complete_nft_sales_TX_FEE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_TX_FEE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere TX_FEE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TX_FEE__NUMBER__FLOAT.a50c15b6b4": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TX_FEE__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_9539b2ac89bae8cfa6e9163b48f9951c.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TX_FEE__NUMBER__FLOAT.a50c15b6b4", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TX_FEE__NUMBER__FLOAT"], "alias": "complete_nft_sales_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9539b2ac89bae8cfa6e9163b48f9951c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9539b2ac89bae8cfa6e9163b48f9951c"}, "created_at": 1764018434.493395, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.complete_nft_sales_TX_FEE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9539b2ac89bae8cfa6e9163b48f9951c\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_9539b2ac89bae8cfa6e9163b48f9951c.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLDATA_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MARKETPLACE_DECODED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AGGREGATOR_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('COMPLETE_NFT_SALES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_FEE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_NFT_LOG_ID.6a32d9392a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NFT_LOG_ID", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_NFT_LOG_ID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_NFT_LOG_ID.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_NFT_LOG_ID.6a32d9392a", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_NFT_LOG_ID"], "alias": "complete_nft_sales_NFT_LOG_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.4981914, "relation_name": "polygon.not_null_silver.complete_nft_sales_NFT_LOG_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_NFT_LOG_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere NFT_LOG_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_LOG_ID", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales__LOG_ID.423b310544": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_LOG_ID", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales__LOG_ID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales__LOG_ID.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales__LOG_ID.423b310544", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales__LOG_ID"], "alias": "complete_nft_sales", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.5002234, "relation_name": "polygon.not_null_silver.complete_nft_sales", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales__LOG_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere _LOG_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_LOG_ID", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS.5f21f6c546": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS.5f21f6c546", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS"], "alias": "complete_nft_sales_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.5022364, "relation_name": "polygon.not_null_silver.complete_nft_sales_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.165fc34eac": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_1ef7f8563259790662902d21bccf8806.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.165fc34eac", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "complete_nft_sales_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1ef7f8563259790662902d21bccf8806", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_1ef7f8563259790662902d21bccf8806"}, "created_at": 1764018434.5042117, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.complete_nft_sales_ORIGIN_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1ef7f8563259790662902d21bccf8806\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_1ef7f8563259790662902d21bccf8806.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.complete_nft_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_TO_ADDRESS.fb55dbfb6f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_ORIGIN_TO_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_ORIGIN_TO_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_TO_ADDRESS.fb55dbfb6f", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_ORIGIN_TO_ADDRESS"], "alias": "complete_nft_sales_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "platform_exchange_version not in ('seaport_1_1')", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "where": "platform_exchange_version not in ('seaport_1_1')"}, "created_at": 1764018434.5096552, "relation_name": "polygon.not_null_silver.complete_nft_sales_ORIGIN_TO_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"platform_exchange_version not in ('seaport_1_1')\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_ORIGIN_TO_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver.complete_nft_sales where platform_exchange_version not in ('seaport_1_1')) dbt_subquery\nwhere ORIGIN_TO_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.e291a891ae": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_37e176b068dad05980437bbe64976fb8.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.e291a891ae", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "complete_nft_sales_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_37e176b068dad05980437bbe64976fb8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_37e176b068dad05980437bbe64976fb8"}, "created_at": 1764018434.511704, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.complete_nft_sales_ORIGIN_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_37e176b068dad05980437bbe64976fb8\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_37e176b068dad05980437bbe64976fb8.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.complete_nft_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE.e14fe88673": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE.e14fe88673", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE"], "alias": "complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.51674, "relation_name": "polygon.not_null_silver.complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.b46c604770": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_19d90127e75dc74904267930a88e8683.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.b46c604770", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_"], "alias": "complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_19d90127e75dc74904267930a88e8683", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_19d90127e75dc74904267930a88e8683"}, "created_at": 1764018434.5187936, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_19d90127e75dc74904267930a88e8683\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_expectations_expect_column_19d90127e75dc74904267930a88e8683.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FUNCTION_SIGNATURE, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.complete_nft_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_EVENT_TYPE.b71abf8ef9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_TYPE", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_EVENT_TYPE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_EVENT_TYPE.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_EVENT_TYPE.b71abf8ef9", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_EVENT_TYPE"], "alias": "complete_nft_sales_EVENT_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.5238113, "relation_name": "polygon.not_null_silver.complete_nft_sales_EVENT_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_EVENT_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere EVENT_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_TYPE", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__complete_nft_sales_INPUT_DATA.37d4f77f83": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INPUT_DATA", "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_nft_sales_INPUT_DATA", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__complete_nft_sales_INPUT_DATA.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__complete_nft_sales_INPUT_DATA.37d4f77f83", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__complete_nft_sales_INPUT_DATA"], "alias": "complete_nft_sales_INPUT_DATA", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.5258317, "relation_name": "polygon.not_null_silver.complete_nft_sales_INPUT_DATA", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/not_null_silver__complete_nft_sales_INPUT_DATA.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_nft_sales\nwhere INPUT_DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INPUT_DATA", "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__complete_nft_sales_nft_log_id.1db89d3193": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["nft_log_id"], "model": "{{ get_where_subquery(ref('silver__complete_nft_sales')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__complete_nft_sales_nft_log_id", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_utils_unique_combination_o_eb8d299894413915b42cfb879b1533d1.sql", "original_file_path": "models/silver/NFT/sales/silver__complete_nft_sales.yml", "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__complete_nft_sales_nft_log_id.1db89d3193", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_utils_unique_combination_of_columns_silver__complete_nft_sales_nft_log_id"], "alias": "complete_nft_sales_nft_log_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_eb8d299894413915b42cfb879b1533d1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_eb8d299894413915b42cfb879b1533d1"}, "created_at": 1764018434.5278378, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.complete_nft_sales_nft_log_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_eb8d299894413915b42cfb879b1533d1\") }}", "language": "sql", "refs": [{"name": "silver__complete_nft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__complete_nft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__complete_nft_sales.yml/dbt_utils_unique_combination_o_eb8d299894413915b42cfb879b1533d1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n nft_log_id\n from polygon.silver.complete_nft_sales\n group by nft_log_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__complete_nft_sales", "attached_node": "model.polygon_models.silver__complete_nft_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_BLOCK_NUMBER.24829e36fa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_BLOCK_NUMBER", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_BLOCK_NUMBER.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_BLOCK_NUMBER.24829e36fa", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_BLOCK_NUMBER"], "alias": "seaport_1_1_sales_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.5354939, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_BLOCK_NUMBER__NUMBER__FLOAT.16b1475a6c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_9abc8f21ae130e6288b34f40d9b81cb7.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_BLOCK_NUMBER__NUMBER__FLOAT.16b1475a6c", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "seaport_1_1_sales_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9abc8f21ae130e6288b34f40d9b81cb7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9abc8f21ae130e6288b34f40d9b81cb7"}, "created_at": 1764018434.5375466, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_1_sales_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9abc8f21ae130e6288b34f40d9b81cb7\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_expectations_expect_column_9abc8f21ae130e6288b34f40d9b81cb7.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_BLOCK_TIMESTAMP.8996639023": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_BLOCK_TIMESTAMP.8996639023", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_BLOCK_TIMESTAMP"], "alias": "seaport_1_1_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.5422113, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.633ddbc1cc": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_9dc685e2a667ad0f09e153f8b3a20678.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.633ddbc1cc", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "seaport_1_1_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9dc685e2a667ad0f09e153f8b3a20678", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9dc685e2a667ad0f09e153f8b3a20678"}, "created_at": 1764018434.5442317, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_1_sales_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9dc685e2a667ad0f09e153f8b3a20678\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_expectations_expect_column_9dc685e2a667ad0f09e153f8b3a20678.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_TX_HASH.4ef964ba26": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_TX_HASH", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_TX_HASH.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_TX_HASH.4ef964ba26", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_TX_HASH"], "alias": "seaport_1_1_sales_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.5489285, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_TX_HASH__0_xX_0_9a_fA_F_.4980f309d1": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_9852c819af8d5a4cbdc807dbb2bf03e0.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_TX_HASH__0_xX_0_9a_fA_F_.4980f309d1", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "seaport_1_1_sales_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9852c819af8d5a4cbdc807dbb2bf03e0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9852c819af8d5a4cbdc807dbb2bf03e0"}, "created_at": 1764018434.550971, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_1_sales_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9852c819af8d5a4cbdc807dbb2bf03e0\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_expectations_expect_column_9852c819af8d5a4cbdc807dbb2bf03e0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_1_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_ADDRESS.a76e4edeac": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_PLATFORM_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_PLATFORM_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_ADDRESS.a76e4edeac", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_PLATFORM_ADDRESS"], "alias": "seaport_1_1_sales_PLATFORM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.5560236, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_PLATFORM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_PLATFORM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere PLATFORM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_ADDRESS", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.bbb38fefa1": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "PLATFORM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_fd9d5f7b9ca2989c79693542e20f0a6d.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.bbb38fefa1", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_1_sales_PLATFORM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_fd9d5f7b9ca2989c79693542e20f0a6d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_fd9d5f7b9ca2989c79693542e20f0a6d"}, "created_at": 1764018434.5580683, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_1_sales_PLATFORM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_fd9d5f7b9ca2989c79693542e20f0a6d\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_expectations_expect_column_fd9d5f7b9ca2989c79693542e20f0a6d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(PLATFORM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_1_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_ADDRESS", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_NAME.cd7a9560be": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_NAME", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_PLATFORM_NAME", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_PLATFORM_NAME.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_NAME.cd7a9560be", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_PLATFORM_NAME"], "alias": "seaport_1_1_sales_PLATFORM_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.5628679, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_PLATFORM_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_PLATFORM_NAME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere PLATFORM_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_NAME", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_1_sales_PLATFORM_NAME__opensea.559a845700": {"test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["opensea"], "column_name": "PLATFORM_NAME", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_set_silver", "name": "dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_1_sales_PLATFORM_NAME__opensea", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_7de8ef02e96f16718b8313d652d5c5fd.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_1_sales_PLATFORM_NAME__opensea.559a845700", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_1_sales_PLATFORM_NAME__opensea"], "alias": "seaport_1_1_sales_PLATFORM_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7de8ef02e96f16718b8313d652d5c5fd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_7de8ef02e96f16718b8313d652d5c5fd"}, "created_at": 1764018434.5652015, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_set_silver.seaport_1_1_sales_PLATFORM_NAME", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7de8ef02e96f16718b8313d652d5c5fd\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_expectations_expect_column_7de8ef02e96f16718b8313d652d5c5fd.sql", "compiled": true, "compiled_code": "\n\nwith all_values as (\n\n select\n PLATFORM_NAME as value_field\n\n from polygon.silver.seaport_1_1_sales\n \n\n),\nset_values as (\n\n select\n cast('opensea' as TEXT) as value_field\n \n \n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_NAME", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_SELLER_ADDRESS.d1219d17a2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SELLER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_SELLER_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_SELLER_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_SELLER_ADDRESS.d1219d17a2", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_SELLER_ADDRESS"], "alias": "seaport_1_1_sales_SELLER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.5701318, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_SELLER_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_SELLER_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere SELLER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SELLER_ADDRESS", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.82ff004d89": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "SELLER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_56e2ed5d4f00628790f7f5a84ab29a7e.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.82ff004d89", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_1_sales_SELLER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_56e2ed5d4f00628790f7f5a84ab29a7e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_56e2ed5d4f00628790f7f5a84ab29a7e"}, "created_at": 1764018434.572157, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_1_sales_SELLER_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_56e2ed5d4f00628790f7f5a84ab29a7e\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_expectations_expect_column_56e2ed5d4f00628790f7f5a84ab29a7e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(SELLER_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_1_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SELLER_ADDRESS", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_BUYER_ADDRESS.cffb31ba59": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BUYER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_BUYER_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_BUYER_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_BUYER_ADDRESS.cffb31ba59", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_BUYER_ADDRESS"], "alias": "seaport_1_1_sales_BUYER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.5783248, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_BUYER_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_BUYER_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere BUYER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BUYER_ADDRESS", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.e0b5729239": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "BUYER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_db86a4fb29a3d9adb2ab494b5913a89d.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.e0b5729239", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_1_sales_BUYER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_db86a4fb29a3d9adb2ab494b5913a89d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_db86a4fb29a3d9adb2ab494b5913a89d"}, "created_at": 1764018434.5803993, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_1_sales_BUYER_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_db86a4fb29a3d9adb2ab494b5913a89d\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_expectations_expect_column_db86a4fb29a3d9adb2ab494b5913a89d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(BUYER_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_1_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BUYER_ADDRESS", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_NFT_ADDRESS.4c2d3ab960": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NFT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_NFT_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_NFT_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_NFT_ADDRESS.4c2d3ab960", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_NFT_ADDRESS"], "alias": "seaport_1_1_sales_NFT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.5857315, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_NFT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_NFT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere NFT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_ADDRESS", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.7ba4b12cc3": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "NFT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_233e00cff4180691c688e1e2b56a8445.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.7ba4b12cc3", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_1_sales_NFT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_233e00cff4180691c688e1e2b56a8445", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_233e00cff4180691c688e1e2b56a8445"}, "created_at": 1764018434.5878282, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_1_sales_NFT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_233e00cff4180691c688e1e2b56a8445\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_expectations_expect_column_233e00cff4180691c688e1e2b56a8445.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(NFT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_1_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_ADDRESS", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_TOKENID.de88cac8c5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKENID", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_TOKENID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_TOKENID.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_TOKENID.de88cac8c5", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_TOKENID"], "alias": "seaport_1_1_sales_TOKENID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.5929906, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_TOKENID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_TOKENID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere TOKENID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKENID", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_CURRENCY_ADDRESS.1be87eaf04": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CURRENCY_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_CURRENCY_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_CURRENCY_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_CURRENCY_ADDRESS.1be87eaf04", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_CURRENCY_ADDRESS"], "alias": "seaport_1_1_sales_CURRENCY_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "total_price_raw > 0", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "where": "total_price_raw > 0"}, "created_at": 1764018434.5950768, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_CURRENCY_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"total_price_raw > 0\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_CURRENCY_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver.seaport_1_1_sales where total_price_raw > 0) dbt_subquery\nwhere CURRENCY_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CURRENCY_ADDRESS", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_TOTAL_PRICE_RAW.470d158317": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_PRICE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_TOTAL_PRICE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_TOTAL_PRICE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_TOTAL_PRICE_RAW.470d158317", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_TOTAL_PRICE_RAW"], "alias": "seaport_1_1_sales_TOTAL_PRICE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.5970936, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_TOTAL_PRICE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_TOTAL_PRICE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere TOTAL_PRICE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_PRICE_RAW", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.20c0e6f088": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TOTAL_PRICE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_6eb963890d74df2d1dbda08226a4ca9c.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.20c0e6f088", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT"], "alias": "seaport_1_1_sales_TOTAL_PRICE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_6eb963890d74df2d1dbda08226a4ca9c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_6eb963890d74df2d1dbda08226a4ca9c"}, "created_at": 1764018434.5991514, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_1_sales_TOTAL_PRICE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_6eb963890d74df2d1dbda08226a4ca9c\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_expectations_expect_column_6eb963890d74df2d1dbda08226a4ca9c.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_PRICE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_PRICE_RAW", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_TOTAL_FEES_RAW.90afed2683": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_FEES_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_TOTAL_FEES_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_TOTAL_FEES_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_TOTAL_FEES_RAW.90afed2683", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_TOTAL_FEES_RAW"], "alias": "seaport_1_1_sales_TOTAL_FEES_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.604088, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_TOTAL_FEES_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_TOTAL_FEES_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere TOTAL_FEES_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES_RAW", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.216c3d4f53": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TOTAL_FEES_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TOTAL_FEES_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_2dc8a167aca8599979b235a6d5fe548c.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.216c3d4f53", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TOTAL_FEES_RAW__NUMBER__FLOAT"], "alias": "seaport_1_1_sales_TOTAL_FEES_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2dc8a167aca8599979b235a6d5fe548c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_2dc8a167aca8599979b235a6d5fe548c"}, "created_at": 1764018434.6061575, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_1_sales_TOTAL_FEES_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2dc8a167aca8599979b235a6d5fe548c\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_expectations_expect_column_2dc8a167aca8599979b235a6d5fe548c.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_FEES_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES_RAW", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_FEE_RAW.98f46b971f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_PLATFORM_FEE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_PLATFORM_FEE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_FEE_RAW.98f46b971f", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_PLATFORM_FEE_RAW"], "alias": "seaport_1_1_sales_PLATFORM_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.611102, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_PLATFORM_FEE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_PLATFORM_FEE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere PLATFORM_FEE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_FEE_RAW", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.a33e76bb25": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "PLATFORM_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_b04ca722cf96063b81c38e790a423156.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.a33e76bb25", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT"], "alias": "seaport_1_1_sales_PLATFORM_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b04ca722cf96063b81c38e790a423156", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b04ca722cf96063b81c38e790a423156"}, "created_at": 1764018434.6132193, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_1_sales_PLATFORM_FEE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b04ca722cf96063b81c38e790a423156\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_expectations_expect_column_b04ca722cf96063b81c38e790a423156.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'PLATFORM_FEE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_FEE_RAW", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_CREATOR_FEE_RAW.4571cd3937": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CREATOR_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_CREATOR_FEE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_CREATOR_FEE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_CREATOR_FEE_RAW.4571cd3937", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_CREATOR_FEE_RAW"], "alias": "seaport_1_1_sales_CREATOR_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.6180842, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_CREATOR_FEE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_CREATOR_FEE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere CREATOR_FEE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATOR_FEE_RAW", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.c4c3f0c765": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "CREATOR_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_CREATOR_FEE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_405ae475cedfa9969a73db060bb1e825.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.c4c3f0c765", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_CREATOR_FEE_RAW__NUMBER__FLOAT"], "alias": "seaport_1_1_sales_CREATOR_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_405ae475cedfa9969a73db060bb1e825", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_405ae475cedfa9969a73db060bb1e825"}, "created_at": 1764018434.6204565, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_1_sales_CREATOR_FEE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_405ae475cedfa9969a73db060bb1e825\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_expectations_expect_column_405ae475cedfa9969a73db060bb1e825.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'CREATOR_FEE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATOR_FEE_RAW", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_TX_FEE.9da040f28a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_TX_FEE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_TX_FEE.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_TX_FEE.9da040f28a", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_TX_FEE"], "alias": "seaport_1_1_sales_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.6251132, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_TX_FEE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_TX_FEE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere TX_FEE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TX_FEE__NUMBER__FLOAT.5fc845aa08": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TX_FEE__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_0fa04358ead5576b2ff2179c47019f52.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TX_FEE__NUMBER__FLOAT.5fc845aa08", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TX_FEE__NUMBER__FLOAT"], "alias": "seaport_1_1_sales_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0fa04358ead5576b2ff2179c47019f52", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_0fa04358ead5576b2ff2179c47019f52"}, "created_at": 1764018434.6271815, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_1_sales_TX_FEE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0fa04358ead5576b2ff2179c47019f52\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_expectations_expect_column_0fa04358ead5576b2ff2179c47019f52.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_FEE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_NFT_LOG_ID.f7cd721252": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NFT_LOG_ID", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_NFT_LOG_ID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_NFT_LOG_ID.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_NFT_LOG_ID.f7cd721252", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_NFT_LOG_ID"], "alias": "seaport_1_1_sales_NFT_LOG_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.632188, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_NFT_LOG_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_NFT_LOG_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere NFT_LOG_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_LOG_ID", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales__INSERTED_TIMESTAMP.39029cba5f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales__INSERTED_TIMESTAMP.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales__INSERTED_TIMESTAMP.39029cba5f", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales__INSERTED_TIMESTAMP"], "alias": "seaport_1_1_sales", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.6345012, "relation_name": "polygon.not_null_silver.seaport_1_1_sales", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.044c1f3328": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_15ab0777334430e6d5d5499234f76abf.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.044c1f3328", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "seaport_1_1_sales", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_15ab0777334430e6d5d5499234f76abf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_15ab0777334430e6d5d5499234f76abf"}, "created_at": 1764018434.6367023, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_1_sales", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_15ab0777334430e6d5d5499234f76abf\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_expectations_expect_column_15ab0777334430e6d5d5499234f76abf.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS.07dbc4f7e2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS.07dbc4f7e2", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS"], "alias": "seaport_1_1_sales_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.642466, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.44c7ddb31b": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_1e6c3e2624371dd0c4ce00030a675bc7.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.44c7ddb31b", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_1_sales_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1e6c3e2624371dd0c4ce00030a675bc7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_1e6c3e2624371dd0c4ce00030a675bc7"}, "created_at": 1764018434.6446683, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_1_sales_ORIGIN_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1e6c3e2624371dd0c4ce00030a675bc7\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_expectations_expect_column_1e6c3e2624371dd0c4ce00030a675bc7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_1_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.41d5da7600": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_877a60c8c7db417eecdb6fa819fa496f.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.41d5da7600", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_1_sales_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_877a60c8c7db417eecdb6fa819fa496f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_877a60c8c7db417eecdb6fa819fa496f"}, "created_at": 1764018434.6509433, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_1_sales_ORIGIN_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_877a60c8c7db417eecdb6fa819fa496f\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_expectations_expect_column_877a60c8c7db417eecdb6fa819fa496f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_1_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE.1ffe9dc96f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE.1ffe9dc96f", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE"], "alias": "seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.6566236, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.77a1924e3a": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_397c4e26b21c69f08738d1d8017a733a.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.77a1924e3a", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_"], "alias": "seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_397c4e26b21c69f08738d1d8017a733a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_397c4e26b21c69f08738d1d8017a733a"}, "created_at": 1764018434.6590776, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_397c4e26b21c69f08738d1d8017a733a\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_expectations_expect_column_397c4e26b21c69f08738d1d8017a733a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FUNCTION_SIGNATURE, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_1_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_EVENT_TYPE.50311bf0fc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_TYPE", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_EVENT_TYPE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_EVENT_TYPE.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_EVENT_TYPE.50311bf0fc", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_EVENT_TYPE"], "alias": "seaport_1_1_sales_EVENT_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.6641653, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_EVENT_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_EVENT_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere EVENT_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_TYPE", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_1_sales_EVENT_TYPE__bid_won__sale.2524b82d17": {"test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["bid_won", "sale"], "column_name": "EVENT_TYPE", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_set_silver", "name": "dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_1_sales_EVENT_TYPE__bid_won__sale", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_61877d9aca65fa165769b124cfcad45f.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_1_sales_EVENT_TYPE__bid_won__sale.2524b82d17", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_1_sales_EVENT_TYPE__bid_won__sale"], "alias": "seaport_1_1_sales_EVENT_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_61877d9aca65fa165769b124cfcad45f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_61877d9aca65fa165769b124cfcad45f"}, "created_at": 1764018434.666251, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_set_silver.seaport_1_1_sales_EVENT_TYPE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_61877d9aca65fa165769b124cfcad45f\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_expectations_expect_column_61877d9aca65fa165769b124cfcad45f.sql", "compiled": true, "compiled_code": "\n\nwith all_values as (\n\n select\n EVENT_TYPE as value_field\n\n from polygon.silver.seaport_1_1_sales\n \n\n),\nset_values as (\n\n select\n cast('bid_won' as TEXT) as value_field\n union all\n select\n cast('sale' as TEXT) as value_field\n \n \n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_TYPE", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__seaport_1_1_sales_INPUT_DATA.bbebff71e0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INPUT_DATA", "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_1_sales_INPUT_DATA", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_1_sales_INPUT_DATA.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_1_sales_INPUT_DATA.bbebff71e0", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_1_sales_INPUT_DATA"], "alias": "seaport_1_1_sales_INPUT_DATA", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.6718218, "relation_name": "polygon.not_null_silver.seaport_1_1_sales_INPUT_DATA", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/not_null_silver__seaport_1_1_sales_INPUT_DATA.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_1_sales\nwhere INPUT_DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INPUT_DATA", "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_1_sales_nft_log_id.b926efc93c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["nft_log_id"], "model": "{{ get_where_subquery(ref('silver__seaport_1_1_sales')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__seaport_1_1_sales_nft_log_id", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_utils_unique_combination_o_5e2a6ccd1d047c9a08d6006907652b9a.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_1_sales.yml", "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_1_sales_nft_log_id.b926efc93c", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_utils_unique_combination_of_columns_silver__seaport_1_1_sales_nft_log_id"], "alias": "seaport_1_1_sales_nft_log_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5e2a6ccd1d047c9a08d6006907652b9a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_5e2a6ccd1d047c9a08d6006907652b9a"}, "created_at": 1764018434.6739593, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.seaport_1_1_sales_nft_log_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5e2a6ccd1d047c9a08d6006907652b9a\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_1_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_1_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_1_sales.yml/dbt_utils_unique_combination_o_5e2a6ccd1d047c9a08d6006907652b9a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n nft_log_id\n from polygon.silver.seaport_1_1_sales\n group by nft_log_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__seaport_1_1_sales", "attached_node": "model.polygon_models.silver__seaport_1_1_sales"}, "test.polygon_models.not_null_silver__element_sales_BLOCK_NUMBER.6f285666e9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_BLOCK_NUMBER", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_BLOCK_NUMBER.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_BLOCK_NUMBER.6f285666e9", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_BLOCK_NUMBER"], "alias": "element_sales_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.6817064, "relation_name": "polygon.not_null_silver.element_sales_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_BLOCK_NUMBER__NUMBER__FLOAT.e369cc923d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_b5b6a695c2f324b14cacd34316186d05.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_BLOCK_NUMBER__NUMBER__FLOAT.e369cc923d", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "element_sales_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b5b6a695c2f324b14cacd34316186d05", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b5b6a695c2f324b14cacd34316186d05"}, "created_at": 1764018434.6838064, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.element_sales_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b5b6a695c2f324b14cacd34316186d05\") }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/dbt_expectations_expect_column_b5b6a695c2f324b14cacd34316186d05.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_FLAT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_GROUPING_SELLER_FILL' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEES_ARRAY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales_BLOCK_TIMESTAMP.feb749030b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_BLOCK_TIMESTAMP.feb749030b", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_BLOCK_TIMESTAMP"], "alias": "element_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.6895576, "relation_name": "polygon.not_null_silver.element_sales_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.77148f96bc": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_634151077c75d30dbf26e94d8ca700fd.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.77148f96bc", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "element_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_634151077c75d30dbf26e94d8ca700fd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_634151077c75d30dbf26e94d8ca700fd"}, "created_at": 1764018434.6916509, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.element_sales_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_634151077c75d30dbf26e94d8ca700fd\") }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/dbt_expectations_expect_column_634151077c75d30dbf26e94d8ca700fd.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_FLAT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_GROUPING_SELLER_FILL' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEES_ARRAY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales_TX_HASH.c94a3fb7ed": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_TX_HASH", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_TX_HASH.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_TX_HASH.c94a3fb7ed", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_TX_HASH"], "alias": "element_sales_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.696538, "relation_name": "polygon.not_null_silver.element_sales_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_TX_HASH__0_xX_0_9a_fA_F_.197ddfc264": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_eb1617f3224232972124c6e544cfc8ea.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_TX_HASH__0_xX_0_9a_fA_F_.197ddfc264", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "element_sales_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_eb1617f3224232972124c6e544cfc8ea", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_eb1617f3224232972124c6e544cfc8ea"}, "created_at": 1764018434.6985745, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.element_sales_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_eb1617f3224232972124c6e544cfc8ea\") }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/dbt_expectations_expect_column_eb1617f3224232972124c6e544cfc8ea.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.element_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales_SELLER_ADDRESS.cbd314ffba": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SELLER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_SELLER_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_SELLER_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_SELLER_ADDRESS.cbd314ffba", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_SELLER_ADDRESS"], "alias": "element_sales_SELLER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.7034643, "relation_name": "polygon.not_null_silver.element_sales_SELLER_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_SELLER_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere SELLER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SELLER_ADDRESS", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.0e7240aef8": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "SELLER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_49e71f317c6e0d77ee429ff3f895966b.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.0e7240aef8", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "element_sales_SELLER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_49e71f317c6e0d77ee429ff3f895966b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_49e71f317c6e0d77ee429ff3f895966b"}, "created_at": 1764018434.705739, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.element_sales_SELLER_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_49e71f317c6e0d77ee429ff3f895966b\") }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/dbt_expectations_expect_column_49e71f317c6e0d77ee429ff3f895966b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(SELLER_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.element_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SELLER_ADDRESS", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales_BUYER_ADDRESS.13709bfa32": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BUYER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_BUYER_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_BUYER_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_BUYER_ADDRESS.13709bfa32", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_BUYER_ADDRESS"], "alias": "element_sales_BUYER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.7105956, "relation_name": "polygon.not_null_silver.element_sales_BUYER_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_BUYER_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere BUYER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BUYER_ADDRESS", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.1a632cfd6e": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "BUYER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_b25ee55bad3d7223cccf461f637caa6c.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.1a632cfd6e", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "element_sales_BUYER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b25ee55bad3d7223cccf461f637caa6c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b25ee55bad3d7223cccf461f637caa6c"}, "created_at": 1764018434.7129173, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.element_sales_BUYER_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b25ee55bad3d7223cccf461f637caa6c\") }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/dbt_expectations_expect_column_b25ee55bad3d7223cccf461f637caa6c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(BUYER_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.element_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BUYER_ADDRESS", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales_NFT_ADDRESS.a64e864cf2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NFT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_NFT_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_NFT_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_NFT_ADDRESS.a64e864cf2", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_NFT_ADDRESS"], "alias": "element_sales_NFT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.717714, "relation_name": "polygon.not_null_silver.element_sales_NFT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_NFT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere NFT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_ADDRESS", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.f3bcb7907f": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "NFT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_9b01bd50f8be05fe6bfbd3f5da283a63.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.f3bcb7907f", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "element_sales_NFT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9b01bd50f8be05fe6bfbd3f5da283a63", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9b01bd50f8be05fe6bfbd3f5da283a63"}, "created_at": 1764018434.7197456, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.element_sales_NFT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9b01bd50f8be05fe6bfbd3f5da283a63\") }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/dbt_expectations_expect_column_9b01bd50f8be05fe6bfbd3f5da283a63.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(NFT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.element_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_ADDRESS", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales_TOKENID.0c4c737af0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKENID", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_TOKENID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_TOKENID.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_TOKENID.0c4c737af0", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_TOKENID"], "alias": "element_sales_TOKENID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.7247643, "relation_name": "polygon.not_null_silver.element_sales_TOKENID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_TOKENID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere TOKENID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKENID", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales_CURRENCY_ADDRESS.6209f77238": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CURRENCY_ADDRESS", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_CURRENCY_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_CURRENCY_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_CURRENCY_ADDRESS.6209f77238", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_CURRENCY_ADDRESS"], "alias": "element_sales_CURRENCY_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.7267852, "relation_name": "polygon.not_null_silver.element_sales_CURRENCY_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_CURRENCY_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere CURRENCY_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CURRENCY_ADDRESS", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales_TOTAL_PRICE_RAW.6277f419e1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_PRICE_RAW", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_TOTAL_PRICE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_TOTAL_PRICE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_TOTAL_PRICE_RAW.6277f419e1", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_TOTAL_PRICE_RAW"], "alias": "element_sales_TOTAL_PRICE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.7287867, "relation_name": "polygon.not_null_silver.element_sales_TOTAL_PRICE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_TOTAL_PRICE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere TOTAL_PRICE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_PRICE_RAW", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.a01e856376": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TOTAL_PRICE_RAW", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_1f7c6f5bd6c93394d1762a700159fc12.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.a01e856376", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT"], "alias": "element_sales_TOTAL_PRICE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1f7c6f5bd6c93394d1762a700159fc12", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_1f7c6f5bd6c93394d1762a700159fc12"}, "created_at": 1764018434.7310438, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.element_sales_TOTAL_PRICE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1f7c6f5bd6c93394d1762a700159fc12\") }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/dbt_expectations_expect_column_1f7c6f5bd6c93394d1762a700159fc12.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_FLAT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_GROUPING_SELLER_FILL' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEES_ARRAY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_PRICE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_PRICE_RAW", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales_TOTAL_FEES_RAW.e744dc994a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_FEES_RAW", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_TOTAL_FEES_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_TOTAL_FEES_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_TOTAL_FEES_RAW.e744dc994a", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_TOTAL_FEES_RAW"], "alias": "element_sales_TOTAL_FEES_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.7355678, "relation_name": "polygon.not_null_silver.element_sales_TOTAL_FEES_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_TOTAL_FEES_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere TOTAL_FEES_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES_RAW", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.8b75c81a0d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TOTAL_FEES_RAW", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TOTAL_FEES_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_7dd5b4f3ddedae7c14ca5dc3fa7acf58.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.8b75c81a0d", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TOTAL_FEES_RAW__NUMBER__FLOAT"], "alias": "element_sales_TOTAL_FEES_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7dd5b4f3ddedae7c14ca5dc3fa7acf58", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_7dd5b4f3ddedae7c14ca5dc3fa7acf58"}, "created_at": 1764018434.7376127, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.element_sales_TOTAL_FEES_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7dd5b4f3ddedae7c14ca5dc3fa7acf58\") }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/dbt_expectations_expect_column_7dd5b4f3ddedae7c14ca5dc3fa7acf58.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_FLAT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_GROUPING_SELLER_FILL' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEES_ARRAY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_FEES_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES_RAW", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales_PLATFORM_FEE_RAW.4ff5271e75": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_PLATFORM_FEE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_PLATFORM_FEE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_PLATFORM_FEE_RAW.4ff5271e75", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_PLATFORM_FEE_RAW"], "alias": "element_sales_PLATFORM_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.7424753, "relation_name": "polygon.not_null_silver.element_sales_PLATFORM_FEE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_PLATFORM_FEE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere PLATFORM_FEE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_FEE_RAW", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.75db53c973": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "PLATFORM_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_87646f4376bcb36ae3439ab96a28cf33.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.75db53c973", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT"], "alias": "element_sales_PLATFORM_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_87646f4376bcb36ae3439ab96a28cf33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_87646f4376bcb36ae3439ab96a28cf33"}, "created_at": 1764018434.7445505, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.element_sales_PLATFORM_FEE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_87646f4376bcb36ae3439ab96a28cf33\") }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/dbt_expectations_expect_column_87646f4376bcb36ae3439ab96a28cf33.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_FLAT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_GROUPING_SELLER_FILL' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEES_ARRAY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'PLATFORM_FEE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_FEE_RAW", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales_CREATOR_FEE_RAW.05b31270ac": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CREATOR_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_CREATOR_FEE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_CREATOR_FEE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_CREATOR_FEE_RAW.05b31270ac", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_CREATOR_FEE_RAW"], "alias": "element_sales_CREATOR_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.7492616, "relation_name": "polygon.not_null_silver.element_sales_CREATOR_FEE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_CREATOR_FEE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere CREATOR_FEE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATOR_FEE_RAW", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.9f55628b74": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "CREATOR_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_CREATOR_FEE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_6a846df20c8b648ffb006277ff998073.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.9f55628b74", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_CREATOR_FEE_RAW__NUMBER__FLOAT"], "alias": "element_sales_CREATOR_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_6a846df20c8b648ffb006277ff998073", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_6a846df20c8b648ffb006277ff998073"}, "created_at": 1764018434.7513828, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.element_sales_CREATOR_FEE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_6a846df20c8b648ffb006277ff998073\") }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/dbt_expectations_expect_column_6a846df20c8b648ffb006277ff998073.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_FLAT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_GROUPING_SELLER_FILL' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEES_ARRAY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'CREATOR_FEE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATOR_FEE_RAW", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales_TX_FEE.cbc67dca64": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_TX_FEE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_TX_FEE.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_TX_FEE.cbc67dca64", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_TX_FEE"], "alias": "element_sales_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.7558074, "relation_name": "polygon.not_null_silver.element_sales_TX_FEE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_TX_FEE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere TX_FEE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TX_FEE__NUMBER__FLOAT.ba599921e2": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TX_FEE__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_ba1ed9fa6b5f3ccc6e21de21da91417b.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TX_FEE__NUMBER__FLOAT.ba599921e2", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TX_FEE__NUMBER__FLOAT"], "alias": "element_sales_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ba1ed9fa6b5f3ccc6e21de21da91417b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_ba1ed9fa6b5f3ccc6e21de21da91417b"}, "created_at": 1764018434.7581224, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.element_sales_TX_FEE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ba1ed9fa6b5f3ccc6e21de21da91417b\") }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/dbt_expectations_expect_column_ba1ed9fa6b5f3ccc6e21de21da91417b.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_FLAT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_GROUPING_SELLER_FILL' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TAKER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEES_ARRAY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_FEE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales_NFT_LOG_ID.a2214c6c73": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NFT_LOG_ID", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_NFT_LOG_ID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_NFT_LOG_ID.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_NFT_LOG_ID.a2214c6c73", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_NFT_LOG_ID"], "alias": "element_sales_NFT_LOG_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.7625952, "relation_name": "polygon.not_null_silver.element_sales_NFT_LOG_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_NFT_LOG_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere NFT_LOG_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_LOG_ID", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales__LOG_ID.45798a356f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_LOG_ID", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales__LOG_ID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales__LOG_ID.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales__LOG_ID.45798a356f", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales__LOG_ID"], "alias": "element_sales", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.7646627, "relation_name": "polygon.not_null_silver.element_sales", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales__LOG_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere _LOG_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_LOG_ID", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales_ORIGIN_FROM_ADDRESS.488cc78674": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_ORIGIN_FROM_ADDRESS.488cc78674", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_ORIGIN_FROM_ADDRESS"], "alias": "element_sales_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.7666826, "relation_name": "polygon.not_null_silver.element_sales_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_ORIGIN_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.8bf1eb8fd4": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_2c4d45fb127f8098b255dc56afabe0fa.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.8bf1eb8fd4", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "element_sales_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2c4d45fb127f8098b255dc56afabe0fa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_2c4d45fb127f8098b255dc56afabe0fa"}, "created_at": 1764018434.7690036, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.element_sales_ORIGIN_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2c4d45fb127f8098b255dc56afabe0fa\") }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/dbt_expectations_expect_column_2c4d45fb127f8098b255dc56afabe0fa.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.element_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales_ORIGIN_TO_ADDRESS.0c5df398d0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_ORIGIN_TO_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_ORIGIN_TO_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_ORIGIN_TO_ADDRESS.0c5df398d0", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_ORIGIN_TO_ADDRESS"], "alias": "element_sales_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.7738004, "relation_name": "polygon.not_null_silver.element_sales_ORIGIN_TO_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_ORIGIN_TO_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere ORIGIN_TO_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.3b01529200": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_d8b51e9532d99d4fe8dc83cdd3183608.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.3b01529200", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "element_sales_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d8b51e9532d99d4fe8dc83cdd3183608", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d8b51e9532d99d4fe8dc83cdd3183608"}, "created_at": 1764018434.7760983, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.element_sales_ORIGIN_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d8b51e9532d99d4fe8dc83cdd3183608\") }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/dbt_expectations_expect_column_d8b51e9532d99d4fe8dc83cdd3183608.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.element_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE.be176a72e9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE.be176a72e9", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE"], "alias": "element_sales_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.7810178, "relation_name": "polygon.not_null_silver.element_sales_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.fd0843fa8a": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_c9f0b918f0d71e21c2ed268875e9617f.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.fd0843fa8a", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_"], "alias": "element_sales_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c9f0b918f0d71e21c2ed268875e9617f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c9f0b918f0d71e21c2ed268875e9617f"}, "created_at": 1764018434.7830513, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.element_sales_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c9f0b918f0d71e21c2ed268875e9617f\") }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/dbt_expectations_expect_column_c9f0b918f0d71e21c2ed268875e9617f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FUNCTION_SIGNATURE, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.element_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales_EVENT_TYPE.1374ddbae0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_TYPE", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_EVENT_TYPE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_EVENT_TYPE.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_EVENT_TYPE.1374ddbae0", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_EVENT_TYPE"], "alias": "element_sales_EVENT_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.7880285, "relation_name": "polygon.not_null_silver.element_sales_EVENT_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_EVENT_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere EVENT_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_TYPE", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__element_sales_EVENT_TYPE__bid_won__sale.13f1c327ac": {"test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["bid_won", "sale"], "column_name": "EVENT_TYPE", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_set_silver", "name": "dbt_expectations_expect_column_values_to_be_in_set_silver__element_sales_EVENT_TYPE__bid_won__sale", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_3c6db5abd49ff4298b9bb0216c367bb6.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__element_sales_EVENT_TYPE__bid_won__sale.13f1c327ac", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_set_silver__element_sales_EVENT_TYPE__bid_won__sale"], "alias": "element_sales_EVENT_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3c6db5abd49ff4298b9bb0216c367bb6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3c6db5abd49ff4298b9bb0216c367bb6"}, "created_at": 1764018434.790076, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_set_silver.element_sales_EVENT_TYPE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3c6db5abd49ff4298b9bb0216c367bb6\") }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/dbt_expectations_expect_column_3c6db5abd49ff4298b9bb0216c367bb6.sql", "compiled": true, "compiled_code": "\n\nwith all_values as (\n\n select\n EVENT_TYPE as value_field\n\n from polygon.silver.element_sales\n \n\n),\nset_values as (\n\n select\n cast('bid_won' as TEXT) as value_field\n union all\n select\n cast('sale' as TEXT) as value_field\n \n \n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_TYPE", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__element_sales_INPUT_DATA.033bf73b52": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INPUT_DATA", "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__element_sales_INPUT_DATA", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__element_sales_INPUT_DATA.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.not_null_silver__element_sales_INPUT_DATA.033bf73b52", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__element_sales_INPUT_DATA"], "alias": "element_sales_INPUT_DATA", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.7958882, "relation_name": "polygon.not_null_silver.element_sales_INPUT_DATA", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/not_null_silver__element_sales_INPUT_DATA.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.element_sales\nwhere INPUT_DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INPUT_DATA", "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__element_sales_nft_log_id.3f2a276dbb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["nft_log_id"], "model": "{{ get_where_subquery(ref('silver__element_sales')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__element_sales_nft_log_id", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_utils_unique_combination_o_efc240d8e976bd4b4ca22665705cc111.sql", "original_file_path": "models/silver/NFT/sales/silver__element_sales.yml", "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__element_sales_nft_log_id.3f2a276dbb", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_utils_unique_combination_of_columns_silver__element_sales_nft_log_id"], "alias": "element_sales_nft_log_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_efc240d8e976bd4b4ca22665705cc111", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_efc240d8e976bd4b4ca22665705cc111"}, "created_at": 1764018434.7979445, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.element_sales_nft_log_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_efc240d8e976bd4b4ca22665705cc111\") }}", "language": "sql", "refs": [{"name": "silver__element_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__element_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__element_sales.yml/dbt_utils_unique_combination_o_efc240d8e976bd4b4ca22665705cc111.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n nft_log_id\n from polygon.silver.element_sales\n group by nft_log_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__element_sales", "attached_node": "model.polygon_models.silver__element_sales"}, "test.polygon_models.not_null_silver__mooar_sales_BLOCK_NUMBER.543489371f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_BLOCK_NUMBER", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_BLOCK_NUMBER.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_BLOCK_NUMBER.543489371f", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_BLOCK_NUMBER"], "alias": "mooar_sales_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.8055718, "relation_name": "polygon.not_null_silver.mooar_sales_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_BLOCK_NUMBER__NUMBER__FLOAT.07310f104e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_da72eaff6910df8cff453050895df20b.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_BLOCK_NUMBER__NUMBER__FLOAT.07310f104e", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "mooar_sales_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_da72eaff6910df8cff453050895df20b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_da72eaff6910df8cff453050895df20b"}, "created_at": 1764018434.8076358, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.mooar_sales_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_da72eaff6910df8cff453050895df20b\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_column_da72eaff6910df8cff453050895df20b.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_BLOCK_TIMESTAMP.30e0588b15": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_BLOCK_TIMESTAMP.30e0588b15", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_BLOCK_TIMESTAMP"], "alias": "mooar_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.8122814, "relation_name": "polygon.not_null_silver.mooar_sales_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__mooar_sales_BLOCK_TIMESTAMP__day__1.799f3f451c": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__mooar_sales_BLOCK_TIMESTAMP__day__1", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_row_va_f144c6e02abf24953bdb473448a1e258.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__mooar_sales_BLOCK_TIMESTAMP__day__1.799f3f451c", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_row_values_to_have_recent_data_silver__mooar_sales_BLOCK_TIMESTAMP__day__1"], "alias": "mooar_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_f144c6e02abf24953bdb473448a1e258", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_f144c6e02abf24953bdb473448a1e258"}, "created_at": 1764018434.814316, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver.mooar_sales_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_f144c6e02abf24953bdb473448a1e258\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_row_va_f144c6e02abf24953bdb473448a1e258.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver.mooar_sales\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f85e0e9c18": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_99641ae52d6ee9c586113f9ec54dc2ff.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f85e0e9c18", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "mooar_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_99641ae52d6ee9c586113f9ec54dc2ff", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_99641ae52d6ee9c586113f9ec54dc2ff"}, "created_at": 1764018434.8217156, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.mooar_sales_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_99641ae52d6ee9c586113f9ec54dc2ff\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_column_99641ae52d6ee9c586113f9ec54dc2ff.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_TX_HASH.da6a3d4a3e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_TX_HASH", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_TX_HASH.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_TX_HASH.da6a3d4a3e", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_TX_HASH"], "alias": "mooar_sales_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.8265128, "relation_name": "polygon.not_null_silver.mooar_sales_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_TX_HASH__0_xX_0_9a_fA_F_.f22d26a2aa": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_dda526040a380154a124f9f1933cfb8d.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_TX_HASH__0_xX_0_9a_fA_F_.f22d26a2aa", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "mooar_sales_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_dda526040a380154a124f9f1933cfb8d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_dda526040a380154a124f9f1933cfb8d"}, "created_at": 1764018434.8285632, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.mooar_sales_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_dda526040a380154a124f9f1933cfb8d\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_column_dda526040a380154a124f9f1933cfb8d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.mooar_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_PLATFORM_ADDRESS.d745fc012b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_PLATFORM_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_PLATFORM_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_PLATFORM_ADDRESS.d745fc012b", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_PLATFORM_ADDRESS"], "alias": "mooar_sales_PLATFORM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.8336165, "relation_name": "polygon.not_null_silver.mooar_sales_PLATFORM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_PLATFORM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere PLATFORM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_ADDRESS", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.c3c9bf6f98": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "PLATFORM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_db6475cc442934e7353bbbf516ef6330.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.c3c9bf6f98", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "mooar_sales_PLATFORM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_db6475cc442934e7353bbbf516ef6330", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_db6475cc442934e7353bbbf516ef6330"}, "created_at": 1764018434.8356502, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.mooar_sales_PLATFORM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_db6475cc442934e7353bbbf516ef6330\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_column_db6475cc442934e7353bbbf516ef6330.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(PLATFORM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.mooar_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_ADDRESS", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_SELLER_ADDRESS.44cd7daff0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SELLER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_SELLER_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_SELLER_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_SELLER_ADDRESS.44cd7daff0", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_SELLER_ADDRESS"], "alias": "mooar_sales_SELLER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.840728, "relation_name": "polygon.not_null_silver.mooar_sales_SELLER_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_SELLER_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere SELLER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SELLER_ADDRESS", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.c14c9abbbc": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "SELLER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_abbf11797e40e6564213f17fd87e92ea.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.c14c9abbbc", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "mooar_sales_SELLER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_abbf11797e40e6564213f17fd87e92ea", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_abbf11797e40e6564213f17fd87e92ea"}, "created_at": 1764018434.842817, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.mooar_sales_SELLER_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_abbf11797e40e6564213f17fd87e92ea\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_column_abbf11797e40e6564213f17fd87e92ea.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(SELLER_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.mooar_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SELLER_ADDRESS", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_BUYER_ADDRESS.888d3bd2c2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BUYER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_BUYER_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_BUYER_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_BUYER_ADDRESS.888d3bd2c2", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_BUYER_ADDRESS"], "alias": "mooar_sales_BUYER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.8476431, "relation_name": "polygon.not_null_silver.mooar_sales_BUYER_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_BUYER_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere BUYER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BUYER_ADDRESS", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.6b889510cb": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "BUYER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_7e465ee07fb2571973b7ae1e726577c3.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.6b889510cb", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "mooar_sales_BUYER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7e465ee07fb2571973b7ae1e726577c3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_7e465ee07fb2571973b7ae1e726577c3"}, "created_at": 1764018434.849979, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.mooar_sales_BUYER_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7e465ee07fb2571973b7ae1e726577c3\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_column_7e465ee07fb2571973b7ae1e726577c3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(BUYER_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.mooar_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BUYER_ADDRESS", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_NFT_ADDRESS.d7517df1bb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NFT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_NFT_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_NFT_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_NFT_ADDRESS.d7517df1bb", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_NFT_ADDRESS"], "alias": "mooar_sales_NFT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.8547404, "relation_name": "polygon.not_null_silver.mooar_sales_NFT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_NFT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere NFT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_ADDRESS", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.fa8c038b49": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "NFT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_9516aafc4475d229f39a4b159df8b4bf.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.fa8c038b49", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "mooar_sales_NFT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9516aafc4475d229f39a4b159df8b4bf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9516aafc4475d229f39a4b159df8b4bf"}, "created_at": 1764018434.8569882, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.mooar_sales_NFT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9516aafc4475d229f39a4b159df8b4bf\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_column_9516aafc4475d229f39a4b159df8b4bf.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(NFT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.mooar_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_ADDRESS", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_TOKENID.4fbe1082e6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKENID", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_TOKENID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_TOKENID.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_TOKENID.4fbe1082e6", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_TOKENID"], "alias": "mooar_sales_TOKENID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.862086, "relation_name": "polygon.not_null_silver.mooar_sales_TOKENID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_TOKENID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere TOKENID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKENID", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_CURRENCY_ADDRESS.bd2ef41ae9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CURRENCY_ADDRESS", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_CURRENCY_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_CURRENCY_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_CURRENCY_ADDRESS.bd2ef41ae9", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_CURRENCY_ADDRESS"], "alias": "mooar_sales_CURRENCY_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.8641436, "relation_name": "polygon.not_null_silver.mooar_sales_CURRENCY_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_CURRENCY_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere CURRENCY_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CURRENCY_ADDRESS", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_TOTAL_PRICE_RAW.528a859034": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_PRICE_RAW", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_TOTAL_PRICE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_TOTAL_PRICE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_TOTAL_PRICE_RAW.528a859034", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_TOTAL_PRICE_RAW"], "alias": "mooar_sales_TOTAL_PRICE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.8664339, "relation_name": "polygon.not_null_silver.mooar_sales_TOTAL_PRICE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_TOTAL_PRICE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere TOTAL_PRICE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_PRICE_RAW", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.72cac3a65f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TOTAL_PRICE_RAW", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_78caeaef1ae32c951889c0b84f2d10c1.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.72cac3a65f", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT"], "alias": "mooar_sales_TOTAL_PRICE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_78caeaef1ae32c951889c0b84f2d10c1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_78caeaef1ae32c951889c0b84f2d10c1"}, "created_at": 1764018434.8684924, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.mooar_sales_TOTAL_PRICE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_78caeaef1ae32c951889c0b84f2d10c1\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_column_78caeaef1ae32c951889c0b84f2d10c1.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_PRICE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_PRICE_RAW", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_TOTAL_FEES_RAW.676780db0c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_FEES_RAW", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_TOTAL_FEES_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_TOTAL_FEES_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_TOTAL_FEES_RAW.676780db0c", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_TOTAL_FEES_RAW"], "alias": "mooar_sales_TOTAL_FEES_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.8730273, "relation_name": "polygon.not_null_silver.mooar_sales_TOTAL_FEES_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_TOTAL_FEES_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere TOTAL_FEES_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES_RAW", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.a91c15b84d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TOTAL_FEES_RAW", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TOTAL_FEES_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_0de389a6c93d9c74501d267e2ca5afa1.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.a91c15b84d", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TOTAL_FEES_RAW__NUMBER__FLOAT"], "alias": "mooar_sales_TOTAL_FEES_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0de389a6c93d9c74501d267e2ca5afa1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_0de389a6c93d9c74501d267e2ca5afa1"}, "created_at": 1764018434.875321, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.mooar_sales_TOTAL_FEES_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0de389a6c93d9c74501d267e2ca5afa1\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_column_0de389a6c93d9c74501d267e2ca5afa1.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_FEES_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES_RAW", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_PLATFORM_FEE_RAW.6ab323f694": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_PLATFORM_FEE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_PLATFORM_FEE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_PLATFORM_FEE_RAW.6ab323f694", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_PLATFORM_FEE_RAW"], "alias": "mooar_sales_PLATFORM_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.8797307, "relation_name": "polygon.not_null_silver.mooar_sales_PLATFORM_FEE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_PLATFORM_FEE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere PLATFORM_FEE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_FEE_RAW", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.18683075ab": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "PLATFORM_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_d68c241de92e46c004a907c818a9ec1c.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.18683075ab", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT"], "alias": "mooar_sales_PLATFORM_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d68c241de92e46c004a907c818a9ec1c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d68c241de92e46c004a907c818a9ec1c"}, "created_at": 1764018434.881755, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.mooar_sales_PLATFORM_FEE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d68c241de92e46c004a907c818a9ec1c\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_column_d68c241de92e46c004a907c818a9ec1c.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'PLATFORM_FEE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_FEE_RAW", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_CREATOR_FEE_RAW.23190ef573": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CREATOR_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_CREATOR_FEE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_CREATOR_FEE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_CREATOR_FEE_RAW.23190ef573", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_CREATOR_FEE_RAW"], "alias": "mooar_sales_CREATOR_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.8864594, "relation_name": "polygon.not_null_silver.mooar_sales_CREATOR_FEE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_CREATOR_FEE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere CREATOR_FEE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATOR_FEE_RAW", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.3d185db5b6": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "CREATOR_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_CREATOR_FEE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_5f1d9bf95dde08d2c7cc646685cb7182.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.3d185db5b6", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_CREATOR_FEE_RAW__NUMBER__FLOAT"], "alias": "mooar_sales_CREATOR_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5f1d9bf95dde08d2c7cc646685cb7182", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_5f1d9bf95dde08d2c7cc646685cb7182"}, "created_at": 1764018434.888526, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.mooar_sales_CREATOR_FEE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5f1d9bf95dde08d2c7cc646685cb7182\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_column_5f1d9bf95dde08d2c7cc646685cb7182.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'CREATOR_FEE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATOR_FEE_RAW", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_TX_FEE.5eed484409": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_TX_FEE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_TX_FEE.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_TX_FEE.5eed484409", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_TX_FEE"], "alias": "mooar_sales_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.8940072, "relation_name": "polygon.not_null_silver.mooar_sales_TX_FEE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_TX_FEE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere TX_FEE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TX_FEE__NUMBER__FLOAT.dfe58ed919": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TX_FEE__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_96ab7919b7beb3e0dacab35b3a1b63eb.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TX_FEE__NUMBER__FLOAT.dfe58ed919", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TX_FEE__NUMBER__FLOAT"], "alias": "mooar_sales_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_96ab7919b7beb3e0dacab35b3a1b63eb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_96ab7919b7beb3e0dacab35b3a1b63eb"}, "created_at": 1764018434.8960626, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.mooar_sales_TX_FEE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_96ab7919b7beb3e0dacab35b3a1b63eb\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_column_96ab7919b7beb3e0dacab35b3a1b63eb.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_FEE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_NFT_LOG_ID.af807c77e9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NFT_LOG_ID", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_NFT_LOG_ID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_NFT_LOG_ID.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_NFT_LOG_ID.af807c77e9", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_NFT_LOG_ID"], "alias": "mooar_sales_NFT_LOG_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.9005241, "relation_name": "polygon.not_null_silver.mooar_sales_NFT_LOG_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_NFT_LOG_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere NFT_LOG_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_LOG_ID", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales__INSERTED_TIMESTAMP.93f5a5c8cb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales__INSERTED_TIMESTAMP.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales__INSERTED_TIMESTAMP.93f5a5c8cb", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales__INSERTED_TIMESTAMP"], "alias": "mooar_sales", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.9028292, "relation_name": "polygon.not_null_silver.mooar_sales", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__mooar_sales__INSERTED_TIMESTAMP__day__14.743279bc26": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 14, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__mooar_sales__INSERTED_TIMESTAMP__day__14", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_row_va_3127d62095347ce0a5e91b6394e03289.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__mooar_sales__INSERTED_TIMESTAMP__day__14.743279bc26", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_row_values_to_have_recent_data_silver__mooar_sales__INSERTED_TIMESTAMP__day__14"], "alias": "mooar_sales", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_3127d62095347ce0a5e91b6394e03289", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_3127d62095347ce0a5e91b6394e03289"}, "created_at": 1764018434.9048827, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver.mooar_sales", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_3127d62095347ce0a5e91b6394e03289\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_row_va_3127d62095347ce0a5e91b6394e03289.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver.mooar_sales\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -14,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a0776dfdc1": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_707639d7ff5456eb9acea892bbe09d8e.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a0776dfdc1", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "mooar_sales", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_707639d7ff5456eb9acea892bbe09d8e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_707639d7ff5456eb9acea892bbe09d8e"}, "created_at": 1764018434.9123065, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.mooar_sales", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_707639d7ff5456eb9acea892bbe09d8e\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_column_707639d7ff5456eb9acea892bbe09d8e.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_FROM_ADDRESS.a779765ca9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_FROM_ADDRESS.a779765ca9", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_ORIGIN_FROM_ADDRESS"], "alias": "mooar_sales_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.9168925, "relation_name": "polygon.not_null_silver.mooar_sales_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_ORIGIN_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.820c1a0eaa": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_13ae6e8c8b808370893ada02ebb09ada.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.820c1a0eaa", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "mooar_sales_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_13ae6e8c8b808370893ada02ebb09ada", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_13ae6e8c8b808370893ada02ebb09ada"}, "created_at": 1764018434.9192553, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.mooar_sales_ORIGIN_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_13ae6e8c8b808370893ada02ebb09ada\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_column_13ae6e8c8b808370893ada02ebb09ada.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.mooar_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_TO_ADDRESS.eadc499ce1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_ORIGIN_TO_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_ORIGIN_TO_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_TO_ADDRESS.eadc499ce1", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_ORIGIN_TO_ADDRESS"], "alias": "mooar_sales_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.9242709, "relation_name": "polygon.not_null_silver.mooar_sales_ORIGIN_TO_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_ORIGIN_TO_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere ORIGIN_TO_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.78e48edafd": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_ac101b4e6b45754bd3341a412c41c35f.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.78e48edafd", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "mooar_sales_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ac101b4e6b45754bd3341a412c41c35f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_ac101b4e6b45754bd3341a412c41c35f"}, "created_at": 1764018434.9263275, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.mooar_sales_ORIGIN_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ac101b4e6b45754bd3341a412c41c35f\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_column_ac101b4e6b45754bd3341a412c41c35f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.mooar_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE.764964b444": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE.764964b444", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE"], "alias": "mooar_sales_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.9314687, "relation_name": "polygon.not_null_silver.mooar_sales_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.f92b286eda": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_bc1647c0ca899a626a9919a9b926e598.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.f92b286eda", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_"], "alias": "mooar_sales_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_bc1647c0ca899a626a9919a9b926e598", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_bc1647c0ca899a626a9919a9b926e598"}, "created_at": 1764018434.933519, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.mooar_sales_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_bc1647c0ca899a626a9919a9b926e598\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_column_bc1647c0ca899a626a9919a9b926e598.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FUNCTION_SIGNATURE, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.mooar_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_EVENT_TYPE.482185083d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_TYPE", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_EVENT_TYPE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_EVENT_TYPE.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_EVENT_TYPE.482185083d", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_EVENT_TYPE"], "alias": "mooar_sales_EVENT_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.9385781, "relation_name": "polygon.not_null_silver.mooar_sales_EVENT_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_EVENT_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere EVENT_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_TYPE", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__mooar_sales_EVENT_TYPE__bid_won__sale.72a263fcbe": {"test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["bid_won", "sale"], "column_name": "EVENT_TYPE", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_set_silver", "name": "dbt_expectations_expect_column_values_to_be_in_set_silver__mooar_sales_EVENT_TYPE__bid_won__sale", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_86b21c6b23093023f23ce4b4b9d1441d.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__mooar_sales_EVENT_TYPE__bid_won__sale.72a263fcbe", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_set_silver__mooar_sales_EVENT_TYPE__bid_won__sale"], "alias": "mooar_sales_EVENT_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_86b21c6b23093023f23ce4b4b9d1441d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_86b21c6b23093023f23ce4b4b9d1441d"}, "created_at": 1764018434.9406617, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_set_silver.mooar_sales_EVENT_TYPE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_86b21c6b23093023f23ce4b4b9d1441d\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_expectations_expect_column_86b21c6b23093023f23ce4b4b9d1441d.sql", "compiled": true, "compiled_code": "\n\nwith all_values as (\n\n select\n EVENT_TYPE as value_field\n\n from polygon.silver.mooar_sales\n \n\n),\nset_values as (\n\n select\n cast('bid_won' as TEXT) as value_field\n union all\n select\n cast('sale' as TEXT) as value_field\n \n \n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_TYPE", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__mooar_sales_INPUT_DATA.d587446188": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INPUT_DATA", "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__mooar_sales_INPUT_DATA", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__mooar_sales_INPUT_DATA.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.not_null_silver__mooar_sales_INPUT_DATA.d587446188", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__mooar_sales_INPUT_DATA"], "alias": "mooar_sales_INPUT_DATA", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.9461873, "relation_name": "polygon.not_null_silver.mooar_sales_INPUT_DATA", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/not_null_silver__mooar_sales_INPUT_DATA.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.mooar_sales\nwhere INPUT_DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INPUT_DATA", "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__mooar_sales_nft_log_id.368a737a67": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["nft_log_id"], "model": "{{ get_where_subquery(ref('silver__mooar_sales')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__mooar_sales_nft_log_id", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_utils_unique_combination_o_35b41ff97b2366449288556efab98da0.sql", "original_file_path": "models/silver/NFT/sales/silver__mooar_sales.yml", "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__mooar_sales_nft_log_id.368a737a67", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_utils_unique_combination_of_columns_silver__mooar_sales_nft_log_id"], "alias": "mooar_sales_nft_log_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_35b41ff97b2366449288556efab98da0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_35b41ff97b2366449288556efab98da0"}, "created_at": 1764018434.9482496, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.mooar_sales_nft_log_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_35b41ff97b2366449288556efab98da0\") }}", "language": "sql", "refs": [{"name": "silver__mooar_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__mooar_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__mooar_sales.yml/dbt_utils_unique_combination_o_35b41ff97b2366449288556efab98da0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n nft_log_id\n from polygon.silver.mooar_sales\n group by nft_log_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__mooar_sales", "attached_node": "model.polygon_models.silver__mooar_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_BLOCK_NUMBER.d8a7a7833f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_BLOCK_NUMBER", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_BLOCK_NUMBER.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_BLOCK_NUMBER.d8a7a7833f", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_BLOCK_NUMBER"], "alias": "seaport_1_6_sales_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.9561362, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_BLOCK_NUMBER__NUMBER__FLOAT.9ab378f68e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_91b9b65cc2484885da9716d2919fbe75.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_BLOCK_NUMBER__NUMBER__FLOAT.9ab378f68e", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "seaport_1_6_sales_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_91b9b65cc2484885da9716d2919fbe75", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_91b9b65cc2484885da9716d2919fbe75"}, "created_at": 1764018434.9582572, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_6_sales_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_91b9b65cc2484885da9716d2919fbe75\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_column_91b9b65cc2484885da9716d2919fbe75.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_BLOCK_TIMESTAMP.aa8c9811f0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_BLOCK_TIMESTAMP.aa8c9811f0", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_BLOCK_TIMESTAMP"], "alias": "seaport_1_6_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.9632041, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__seaport_1_6_sales_BLOCK_TIMESTAMP__day__1.55704a4959": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__seaport_1_6_sales_BLOCK_TIMESTAMP__day__1", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_row_va_5cd27120441bb46468e06097e673eafe.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__seaport_1_6_sales_BLOCK_TIMESTAMP__day__1.55704a4959", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_row_values_to_have_recent_data_silver__seaport_1_6_sales_BLOCK_TIMESTAMP__day__1"], "alias": "seaport_1_6_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_5cd27120441bb46468e06097e673eafe", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_5cd27120441bb46468e06097e673eafe"}, "created_at": 1764018434.9653203, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver.seaport_1_6_sales_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_5cd27120441bb46468e06097e673eafe\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_row_va_5cd27120441bb46468e06097e673eafe.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver.seaport_1_6_sales\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d0a43ce369": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_2e76bcf277d3289b1a486e3e05c6b37f.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d0a43ce369", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "seaport_1_6_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2e76bcf277d3289b1a486e3e05c6b37f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_2e76bcf277d3289b1a486e3e05c6b37f"}, "created_at": 1764018434.9728017, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_6_sales_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2e76bcf277d3289b1a486e3e05c6b37f\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_column_2e76bcf277d3289b1a486e3e05c6b37f.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_TX_HASH.c56c02a893": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_TX_HASH", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_TX_HASH.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_TX_HASH.c56c02a893", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_TX_HASH"], "alias": "seaport_1_6_sales_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.9775565, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_TX_HASH__0_xX_0_9a_fA_F_.db140398eb": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_cd18874e4a170df5dd0ec554cfb1da7c.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_TX_HASH__0_xX_0_9a_fA_F_.db140398eb", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "seaport_1_6_sales_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_cd18874e4a170df5dd0ec554cfb1da7c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_cd18874e4a170df5dd0ec554cfb1da7c"}, "created_at": 1764018434.9795966, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_6_sales_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_cd18874e4a170df5dd0ec554cfb1da7c\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_column_cd18874e4a170df5dd0ec554cfb1da7c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_6_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_ADDRESS.aacd1db03b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_PLATFORM_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_PLATFORM_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_ADDRESS.aacd1db03b", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_PLATFORM_ADDRESS"], "alias": "seaport_1_6_sales_PLATFORM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.9847102, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_PLATFORM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_PLATFORM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere PLATFORM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_ADDRESS", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.62aeda5fe7": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "PLATFORM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_38a653d0577c0e35cf99e8b252b95503.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.62aeda5fe7", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_6_sales_PLATFORM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_38a653d0577c0e35cf99e8b252b95503", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_38a653d0577c0e35cf99e8b252b95503"}, "created_at": 1764018434.9868724, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_6_sales_PLATFORM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_38a653d0577c0e35cf99e8b252b95503\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_column_38a653d0577c0e35cf99e8b252b95503.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(PLATFORM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_6_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_ADDRESS", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_NAME.9134b92f06": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_NAME", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_PLATFORM_NAME", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_PLATFORM_NAME.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_NAME.9134b92f06", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_PLATFORM_NAME"], "alias": "seaport_1_6_sales_PLATFORM_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.99292, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_PLATFORM_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_PLATFORM_NAME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere PLATFORM_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_NAME", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_6_sales_PLATFORM_NAME__opensea.7575a475ff": {"test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["opensea"], "column_name": "PLATFORM_NAME", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_set_silver", "name": "dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_6_sales_PLATFORM_NAME__opensea", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_3c5143389a57924d24051dcde26c81b9.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_6_sales_PLATFORM_NAME__opensea.7575a475ff", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_6_sales_PLATFORM_NAME__opensea"], "alias": "seaport_1_6_sales_PLATFORM_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3c5143389a57924d24051dcde26c81b9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3c5143389a57924d24051dcde26c81b9"}, "created_at": 1764018434.9949563, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_set_silver.seaport_1_6_sales_PLATFORM_NAME", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3c5143389a57924d24051dcde26c81b9\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_column_3c5143389a57924d24051dcde26c81b9.sql", "compiled": true, "compiled_code": "\n\nwith all_values as (\n\n select\n PLATFORM_NAME as value_field\n\n from polygon.silver.seaport_1_6_sales\n \n\n),\nset_values as (\n\n select\n cast('opensea' as TEXT) as value_field\n \n \n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_NAME", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_SELLER_ADDRESS.266af61935": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SELLER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_SELLER_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_SELLER_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_SELLER_ADDRESS.266af61935", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_SELLER_ADDRESS"], "alias": "seaport_1_6_sales_SELLER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018434.99985, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_SELLER_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_SELLER_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere SELLER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SELLER_ADDRESS", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.03d32571d2": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "SELLER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_2a51584d0f2ca9e60f8a152a9d9e70e2.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.03d32571d2", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_6_sales_SELLER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2a51584d0f2ca9e60f8a152a9d9e70e2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_2a51584d0f2ca9e60f8a152a9d9e70e2"}, "created_at": 1764018435.0021362, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_6_sales_SELLER_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2a51584d0f2ca9e60f8a152a9d9e70e2\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_column_2a51584d0f2ca9e60f8a152a9d9e70e2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(SELLER_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_6_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SELLER_ADDRESS", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_BUYER_ADDRESS.fe949194db": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BUYER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_BUYER_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_BUYER_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_BUYER_ADDRESS.fe949194db", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_BUYER_ADDRESS"], "alias": "seaport_1_6_sales_BUYER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.0069294, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_BUYER_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_BUYER_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere BUYER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BUYER_ADDRESS", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.dc8d5cedfd": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "BUYER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_01280c612eb1088f0f17c4403edea4e2.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.dc8d5cedfd", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_6_sales_BUYER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_01280c612eb1088f0f17c4403edea4e2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_01280c612eb1088f0f17c4403edea4e2"}, "created_at": 1764018435.0089626, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_6_sales_BUYER_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_01280c612eb1088f0f17c4403edea4e2\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_column_01280c612eb1088f0f17c4403edea4e2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(BUYER_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_6_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BUYER_ADDRESS", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_NFT_ADDRESS.6411288ae0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NFT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_NFT_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_NFT_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_NFT_ADDRESS.6411288ae0", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_NFT_ADDRESS"], "alias": "seaport_1_6_sales_NFT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.0139747, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_NFT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_NFT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere NFT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_ADDRESS", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.277515e609": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "NFT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_1c6f2ef2cbf3b80aca60f02fc91d20e3.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.277515e609", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_6_sales_NFT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1c6f2ef2cbf3b80aca60f02fc91d20e3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_1c6f2ef2cbf3b80aca60f02fc91d20e3"}, "created_at": 1764018435.0160165, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_6_sales_NFT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1c6f2ef2cbf3b80aca60f02fc91d20e3\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_column_1c6f2ef2cbf3b80aca60f02fc91d20e3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(NFT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_6_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_ADDRESS", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_TOKENID.2f9a22db6b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKENID", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_TOKENID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_TOKENID.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_TOKENID.2f9a22db6b", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_TOKENID"], "alias": "seaport_1_6_sales_TOKENID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.0210245, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_TOKENID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_TOKENID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere TOKENID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKENID", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_CURRENCY_ADDRESS.36494514a1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CURRENCY_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_CURRENCY_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_CURRENCY_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_CURRENCY_ADDRESS.36494514a1", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_CURRENCY_ADDRESS"], "alias": "seaport_1_6_sales_CURRENCY_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "total_price_raw > 0", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "where": "total_price_raw > 0"}, "created_at": 1764018435.0230637, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_CURRENCY_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"total_price_raw > 0\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_CURRENCY_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver.seaport_1_6_sales where total_price_raw > 0) dbt_subquery\nwhere CURRENCY_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CURRENCY_ADDRESS", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_TOTAL_PRICE_RAW.8151aa3865": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_PRICE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_TOTAL_PRICE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_TOTAL_PRICE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_TOTAL_PRICE_RAW.8151aa3865", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_TOTAL_PRICE_RAW"], "alias": "seaport_1_6_sales_TOTAL_PRICE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.0250814, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_TOTAL_PRICE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_TOTAL_PRICE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere TOTAL_PRICE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_PRICE_RAW", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.1ff046cc57": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TOTAL_PRICE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_ffa5f16427ecadcc69e548e941cce0f6.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.1ff046cc57", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT"], "alias": "seaport_1_6_sales_TOTAL_PRICE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ffa5f16427ecadcc69e548e941cce0f6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_ffa5f16427ecadcc69e548e941cce0f6"}, "created_at": 1764018435.0270991, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_6_sales_TOTAL_PRICE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ffa5f16427ecadcc69e548e941cce0f6\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_column_ffa5f16427ecadcc69e548e941cce0f6.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_PRICE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_PRICE_RAW", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_TOTAL_FEES_RAW.919411d757": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_FEES_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_TOTAL_FEES_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_TOTAL_FEES_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_TOTAL_FEES_RAW.919411d757", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_TOTAL_FEES_RAW"], "alias": "seaport_1_6_sales_TOTAL_FEES_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.0318913, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_TOTAL_FEES_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_TOTAL_FEES_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere TOTAL_FEES_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES_RAW", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.f1237eed20": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TOTAL_FEES_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TOTAL_FEES_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_277c4ccaa43027b8478053bd28d518fd.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.f1237eed20", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TOTAL_FEES_RAW__NUMBER__FLOAT"], "alias": "seaport_1_6_sales_TOTAL_FEES_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_277c4ccaa43027b8478053bd28d518fd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_277c4ccaa43027b8478053bd28d518fd"}, "created_at": 1764018435.0338933, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_6_sales_TOTAL_FEES_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_277c4ccaa43027b8478053bd28d518fd\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_column_277c4ccaa43027b8478053bd28d518fd.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_FEES_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES_RAW", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_FEE_RAW.aaa792c161": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_PLATFORM_FEE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_PLATFORM_FEE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_FEE_RAW.aaa792c161", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_PLATFORM_FEE_RAW"], "alias": "seaport_1_6_sales_PLATFORM_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.038509, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_PLATFORM_FEE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_PLATFORM_FEE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere PLATFORM_FEE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_FEE_RAW", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.8a6b8eb72c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "PLATFORM_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_8545fe8eaf657fda7464bbb29f81e5ac.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.8a6b8eb72c", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT"], "alias": "seaport_1_6_sales_PLATFORM_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8545fe8eaf657fda7464bbb29f81e5ac", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_8545fe8eaf657fda7464bbb29f81e5ac"}, "created_at": 1764018435.0405576, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_6_sales_PLATFORM_FEE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8545fe8eaf657fda7464bbb29f81e5ac\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_column_8545fe8eaf657fda7464bbb29f81e5ac.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'PLATFORM_FEE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_FEE_RAW", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_CREATOR_FEE_RAW.60fe2808f3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CREATOR_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_CREATOR_FEE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_CREATOR_FEE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_CREATOR_FEE_RAW.60fe2808f3", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_CREATOR_FEE_RAW"], "alias": "seaport_1_6_sales_CREATOR_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.0450268, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_CREATOR_FEE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_CREATOR_FEE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere CREATOR_FEE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATOR_FEE_RAW", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.8cde9117f4": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "CREATOR_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_CREATOR_FEE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_76af02164d582891b5a55f38b27b1e70.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.8cde9117f4", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_CREATOR_FEE_RAW__NUMBER__FLOAT"], "alias": "seaport_1_6_sales_CREATOR_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_76af02164d582891b5a55f38b27b1e70", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_76af02164d582891b5a55f38b27b1e70"}, "created_at": 1764018435.0473173, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_6_sales_CREATOR_FEE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_76af02164d582891b5a55f38b27b1e70\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_column_76af02164d582891b5a55f38b27b1e70.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'CREATOR_FEE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATOR_FEE_RAW", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_TX_FEE.9b8567b583": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_TX_FEE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_TX_FEE.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_TX_FEE.9b8567b583", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_TX_FEE"], "alias": "seaport_1_6_sales_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.051768, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_TX_FEE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_TX_FEE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere TX_FEE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TX_FEE__NUMBER__FLOAT.5854e80011": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TX_FEE__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_89ba0e169a5450de191af0336af57465.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TX_FEE__NUMBER__FLOAT.5854e80011", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TX_FEE__NUMBER__FLOAT"], "alias": "seaport_1_6_sales_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_89ba0e169a5450de191af0336af57465", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_89ba0e169a5450de191af0336af57465"}, "created_at": 1764018435.053802, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_6_sales_TX_FEE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_89ba0e169a5450de191af0336af57465\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_column_89ba0e169a5450de191af0336af57465.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_FEE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_NFT_LOG_ID.c4b2be44be": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NFT_LOG_ID", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_NFT_LOG_ID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_NFT_LOG_ID.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_NFT_LOG_ID.c4b2be44be", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_NFT_LOG_ID"], "alias": "seaport_1_6_sales_NFT_LOG_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.0585299, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_NFT_LOG_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_NFT_LOG_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere NFT_LOG_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_LOG_ID", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales__INSERTED_TIMESTAMP.7aa84213a2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales__INSERTED_TIMESTAMP.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales__INSERTED_TIMESTAMP.7aa84213a2", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales__INSERTED_TIMESTAMP"], "alias": "seaport_1_6_sales", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.060555, "relation_name": "polygon.not_null_silver.seaport_1_6_sales", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__seaport_1_6_sales__INSERTED_TIMESTAMP__day__1.fef81231f9": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__seaport_1_6_sales__INSERTED_TIMESTAMP__day__1", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_row_va_cf1f9690e2bb4b38d6f2652750b3906f.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__seaport_1_6_sales__INSERTED_TIMESTAMP__day__1.fef81231f9", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_row_values_to_have_recent_data_silver__seaport_1_6_sales__INSERTED_TIMESTAMP__day__1"], "alias": "seaport_1_6_sales", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_cf1f9690e2bb4b38d6f2652750b3906f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_cf1f9690e2bb4b38d6f2652750b3906f"}, "created_at": 1764018435.0625722, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver.seaport_1_6_sales", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_cf1f9690e2bb4b38d6f2652750b3906f\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_row_va_cf1f9690e2bb4b38d6f2652750b3906f.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver.seaport_1_6_sales\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c4b8b65b03": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_0b622cd7b43d2ad6b5f9d0d0f5b34563.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c4b8b65b03", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "seaport_1_6_sales", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0b622cd7b43d2ad6b5f9d0d0f5b34563", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_0b622cd7b43d2ad6b5f9d0d0f5b34563"}, "created_at": 1764018435.0699382, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_6_sales", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0b622cd7b43d2ad6b5f9d0d0f5b34563\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_column_0b622cd7b43d2ad6b5f9d0d0f5b34563.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS.be5f62774c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS.be5f62774c", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS"], "alias": "seaport_1_6_sales_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.0745378, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.aa4bb5848c": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_2af6de9fbbf1b9cb03ec9f4a8c928e33.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.aa4bb5848c", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_6_sales_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2af6de9fbbf1b9cb03ec9f4a8c928e33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_2af6de9fbbf1b9cb03ec9f4a8c928e33"}, "created_at": 1764018435.0765443, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_6_sales_ORIGIN_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2af6de9fbbf1b9cb03ec9f4a8c928e33\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_column_2af6de9fbbf1b9cb03ec9f4a8c928e33.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_6_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS.c02c8c62a8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS.c02c8c62a8", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS"], "alias": "seaport_1_6_sales_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.0815895, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_ORIGIN_TO_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere ORIGIN_TO_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.d8be899441": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_20e424e27332ad6fefa3832e8d3c12ff.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.d8be899441", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_6_sales_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_20e424e27332ad6fefa3832e8d3c12ff", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_20e424e27332ad6fefa3832e8d3c12ff"}, "created_at": 1764018435.0836172, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_6_sales_ORIGIN_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_20e424e27332ad6fefa3832e8d3c12ff\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_column_20e424e27332ad6fefa3832e8d3c12ff.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_6_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE.11f4cb34d8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE.11f4cb34d8", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE"], "alias": "seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.0886984, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.e30720c0a3": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_3351d7e02ea1ea10e21e8084345eab78.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.e30720c0a3", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_"], "alias": "seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3351d7e02ea1ea10e21e8084345eab78", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3351d7e02ea1ea10e21e8084345eab78"}, "created_at": 1764018435.0907135, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3351d7e02ea1ea10e21e8084345eab78\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_column_3351d7e02ea1ea10e21e8084345eab78.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FUNCTION_SIGNATURE, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_6_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_EVENT_TYPE.8b8c5fa13c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_TYPE", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_EVENT_TYPE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_EVENT_TYPE.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_EVENT_TYPE.8b8c5fa13c", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_EVENT_TYPE"], "alias": "seaport_1_6_sales_EVENT_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.0967834, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_EVENT_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_EVENT_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere EVENT_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_TYPE", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_6_sales_EVENT_TYPE__bid_won__sale.47081ac1d1": {"test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["bid_won", "sale"], "column_name": "EVENT_TYPE", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_set_silver", "name": "dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_6_sales_EVENT_TYPE__bid_won__sale", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_ab6aaada3f7fb3122be9572f8218c43f.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_6_sales_EVENT_TYPE__bid_won__sale.47081ac1d1", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_6_sales_EVENT_TYPE__bid_won__sale"], "alias": "seaport_1_6_sales_EVENT_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ab6aaada3f7fb3122be9572f8218c43f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_ab6aaada3f7fb3122be9572f8218c43f"}, "created_at": 1764018435.0988114, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_set_silver.seaport_1_6_sales_EVENT_TYPE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ab6aaada3f7fb3122be9572f8218c43f\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_expectations_expect_column_ab6aaada3f7fb3122be9572f8218c43f.sql", "compiled": true, "compiled_code": "\n\nwith all_values as (\n\n select\n EVENT_TYPE as value_field\n\n from polygon.silver.seaport_1_6_sales\n \n\n),\nset_values as (\n\n select\n cast('bid_won' as TEXT) as value_field\n union all\n select\n cast('sale' as TEXT) as value_field\n \n \n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_TYPE", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__seaport_1_6_sales_INPUT_DATA.32f10c63e5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INPUT_DATA", "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_6_sales_INPUT_DATA", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_6_sales_INPUT_DATA.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_6_sales_INPUT_DATA.32f10c63e5", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_6_sales_INPUT_DATA"], "alias": "seaport_1_6_sales_INPUT_DATA", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.1042397, "relation_name": "polygon.not_null_silver.seaport_1_6_sales_INPUT_DATA", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/not_null_silver__seaport_1_6_sales_INPUT_DATA.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_6_sales\nwhere INPUT_DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INPUT_DATA", "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_6_sales_nft_log_id.ac3a041a56": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["nft_log_id"], "model": "{{ get_where_subquery(ref('silver__seaport_1_6_sales')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__seaport_1_6_sales_nft_log_id", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_utils_unique_combination_o_26dcc8bc13d2930c377fa1df9fd60cd9.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_6_sales.yml", "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_6_sales_nft_log_id.ac3a041a56", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_utils_unique_combination_of_columns_silver__seaport_1_6_sales_nft_log_id"], "alias": "seaport_1_6_sales_nft_log_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_26dcc8bc13d2930c377fa1df9fd60cd9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_26dcc8bc13d2930c377fa1df9fd60cd9"}, "created_at": 1764018435.106587, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.seaport_1_6_sales_nft_log_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_26dcc8bc13d2930c377fa1df9fd60cd9\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_6_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_6_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_6_sales.yml/dbt_utils_unique_combination_o_26dcc8bc13d2930c377fa1df9fd60cd9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n nft_log_id\n from polygon.silver.seaport_1_6_sales\n group by nft_log_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__seaport_1_6_sales", "attached_node": "model.polygon_models.silver__seaport_1_6_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_BLOCK_NUMBER.afa8a4e8f3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_BLOCK_NUMBER", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_BLOCK_NUMBER.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_BLOCK_NUMBER.afa8a4e8f3", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_BLOCK_NUMBER"], "alias": "tofunft_sales_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.1140418, "relation_name": "polygon.not_null_silver.tofunft_sales_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_BLOCK_NUMBER__NUMBER__FLOAT.2efc5278e8": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_21e76aa7feccb0cc50ffb7df751d272a.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_BLOCK_NUMBER__NUMBER__FLOAT.2efc5278e8", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "tofunft_sales_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_21e76aa7feccb0cc50ffb7df751d272a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_21e76aa7feccb0cc50ffb7df751d272a"}, "created_at": 1764018435.1163595, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.tofunft_sales_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_21e76aa7feccb0cc50ffb7df751d272a\") }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/dbt_expectations_expect_column_21e76aa7feccb0cc50ffb7df751d272a.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_TX_GROUPING' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRUNC_GROUPING' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('USER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIGNER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEE_RATE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROYALTY_RATE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEE_RECEIVER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROYALTY_RECEIVER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUNDLE_ARRAY_SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('KIND' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATUS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_RAW_TRACES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NET_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_RAW_LOGS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_BLOCK_TIMESTAMP.7f084f3df1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_BLOCK_TIMESTAMP.7f084f3df1", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_BLOCK_TIMESTAMP"], "alias": "tofunft_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.1209795, "relation_name": "polygon.not_null_silver.tofunft_sales_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.030006fed4": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_15e6c1448f99e7ddd4aafba1133f01a3.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.030006fed4", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "tofunft_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_15e6c1448f99e7ddd4aafba1133f01a3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_15e6c1448f99e7ddd4aafba1133f01a3"}, "created_at": 1764018435.1230364, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.tofunft_sales_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_15e6c1448f99e7ddd4aafba1133f01a3\") }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/dbt_expectations_expect_column_15e6c1448f99e7ddd4aafba1133f01a3.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_TX_GROUPING' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRUNC_GROUPING' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('USER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIGNER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEE_RATE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROYALTY_RATE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEE_RECEIVER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROYALTY_RECEIVER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUNDLE_ARRAY_SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('KIND' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATUS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_RAW_TRACES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NET_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_RAW_LOGS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_TX_HASH.d00c52e95b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_TX_HASH", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_TX_HASH.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_TX_HASH.d00c52e95b", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_TX_HASH"], "alias": "tofunft_sales_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.127777, "relation_name": "polygon.not_null_silver.tofunft_sales_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_TX_HASH__0_xX_0_9a_fA_F_.07ff7d8529": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_27559716c08d9c3a7dd3972bda0823c2.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_TX_HASH__0_xX_0_9a_fA_F_.07ff7d8529", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "tofunft_sales_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_27559716c08d9c3a7dd3972bda0823c2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_27559716c08d9c3a7dd3972bda0823c2"}, "created_at": 1764018435.1298175, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.tofunft_sales_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_27559716c08d9c3a7dd3972bda0823c2\") }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/dbt_expectations_expect_column_27559716c08d9c3a7dd3972bda0823c2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.tofunft_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_PLATFORM_ADDRESS.d680990b3f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_PLATFORM_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_PLATFORM_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_PLATFORM_ADDRESS.d680990b3f", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_PLATFORM_ADDRESS"], "alias": "tofunft_sales_PLATFORM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.134957, "relation_name": "polygon.not_null_silver.tofunft_sales_PLATFORM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_PLATFORM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere PLATFORM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_ADDRESS", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.e3fe1c4346": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "PLATFORM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_5d0baa429a23a2f6126bb84c72ba20e9.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.e3fe1c4346", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "tofunft_sales_PLATFORM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5d0baa429a23a2f6126bb84c72ba20e9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_5d0baa429a23a2f6126bb84c72ba20e9"}, "created_at": 1764018435.136985, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.tofunft_sales_PLATFORM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5d0baa429a23a2f6126bb84c72ba20e9\") }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/dbt_expectations_expect_column_5d0baa429a23a2f6126bb84c72ba20e9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(PLATFORM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.tofunft_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_ADDRESS", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_SELLER_ADDRESS.2623b7e06f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SELLER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_SELLER_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_SELLER_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_SELLER_ADDRESS.2623b7e06f", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_SELLER_ADDRESS"], "alias": "tofunft_sales_SELLER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.142097, "relation_name": "polygon.not_null_silver.tofunft_sales_SELLER_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_SELLER_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere SELLER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SELLER_ADDRESS", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.4ade570dee": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "SELLER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_5f0fa615f011722ef0ddeb5464a3b84b.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.4ade570dee", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "tofunft_sales_SELLER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5f0fa615f011722ef0ddeb5464a3b84b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_5f0fa615f011722ef0ddeb5464a3b84b"}, "created_at": 1764018435.1441274, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.tofunft_sales_SELLER_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5f0fa615f011722ef0ddeb5464a3b84b\") }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/dbt_expectations_expect_column_5f0fa615f011722ef0ddeb5464a3b84b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(SELLER_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.tofunft_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SELLER_ADDRESS", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_BUYER_ADDRESS.e1bb974f14": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BUYER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_BUYER_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_BUYER_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_BUYER_ADDRESS.e1bb974f14", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_BUYER_ADDRESS"], "alias": "tofunft_sales_BUYER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.149192, "relation_name": "polygon.not_null_silver.tofunft_sales_BUYER_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_BUYER_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere BUYER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BUYER_ADDRESS", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4b40cff5db": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "BUYER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_cb35e4d8d098744bc8b212fe952e408c.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4b40cff5db", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "tofunft_sales_BUYER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_cb35e4d8d098744bc8b212fe952e408c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_cb35e4d8d098744bc8b212fe952e408c"}, "created_at": 1764018435.151235, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.tofunft_sales_BUYER_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_cb35e4d8d098744bc8b212fe952e408c\") }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/dbt_expectations_expect_column_cb35e4d8d098744bc8b212fe952e408c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(BUYER_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.tofunft_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BUYER_ADDRESS", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_NFT_ADDRESS.56fa9c4a2e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NFT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_NFT_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_NFT_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_NFT_ADDRESS.56fa9c4a2e", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_NFT_ADDRESS"], "alias": "tofunft_sales_NFT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.1561563, "relation_name": "polygon.not_null_silver.tofunft_sales_NFT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_NFT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere NFT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_ADDRESS", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.a542b4ea96": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "NFT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_56cdd3d9c36c2576aa2ff74c02139f8e.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.a542b4ea96", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "tofunft_sales_NFT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_56cdd3d9c36c2576aa2ff74c02139f8e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_56cdd3d9c36c2576aa2ff74c02139f8e"}, "created_at": 1764018435.1584184, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.tofunft_sales_NFT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_56cdd3d9c36c2576aa2ff74c02139f8e\") }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/dbt_expectations_expect_column_56cdd3d9c36c2576aa2ff74c02139f8e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(NFT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.tofunft_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_ADDRESS", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_TOKENID.dbc3abbfb8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKENID", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_TOKENID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_TOKENID.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_TOKENID.dbc3abbfb8", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_TOKENID"], "alias": "tofunft_sales_TOKENID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.1632504, "relation_name": "polygon.not_null_silver.tofunft_sales_TOKENID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_TOKENID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere TOKENID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKENID", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_CURRENCY_ADDRESS.415669b9b3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CURRENCY_ADDRESS", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_CURRENCY_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_CURRENCY_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_CURRENCY_ADDRESS.415669b9b3", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_CURRENCY_ADDRESS"], "alias": "tofunft_sales_CURRENCY_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.1655598, "relation_name": "polygon.not_null_silver.tofunft_sales_CURRENCY_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_CURRENCY_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere CURRENCY_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CURRENCY_ADDRESS", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_TOTAL_PRICE_RAW.ebe1a4900d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_PRICE_RAW", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_TOTAL_PRICE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_TOTAL_PRICE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_TOTAL_PRICE_RAW.ebe1a4900d", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_TOTAL_PRICE_RAW"], "alias": "tofunft_sales_TOTAL_PRICE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.167619, "relation_name": "polygon.not_null_silver.tofunft_sales_TOTAL_PRICE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_TOTAL_PRICE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere TOTAL_PRICE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_PRICE_RAW", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.394b29750a": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TOTAL_PRICE_RAW", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_a17086d91766b41ea80a93879c16f32d.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.394b29750a", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT"], "alias": "tofunft_sales_TOTAL_PRICE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a17086d91766b41ea80a93879c16f32d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_a17086d91766b41ea80a93879c16f32d"}, "created_at": 1764018435.1696353, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.tofunft_sales_TOTAL_PRICE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a17086d91766b41ea80a93879c16f32d\") }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/dbt_expectations_expect_column_a17086d91766b41ea80a93879c16f32d.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_TX_GROUPING' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRUNC_GROUPING' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('USER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIGNER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEE_RATE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROYALTY_RATE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEE_RECEIVER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROYALTY_RECEIVER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUNDLE_ARRAY_SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('KIND' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATUS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_RAW_TRACES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NET_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_RAW_LOGS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_PRICE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_PRICE_RAW", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_TOTAL_FEES_RAW.ea6fd23ad5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_FEES_RAW", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_TOTAL_FEES_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_TOTAL_FEES_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_TOTAL_FEES_RAW.ea6fd23ad5", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_TOTAL_FEES_RAW"], "alias": "tofunft_sales_TOTAL_FEES_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.1741726, "relation_name": "polygon.not_null_silver.tofunft_sales_TOTAL_FEES_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_TOTAL_FEES_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere TOTAL_FEES_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES_RAW", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.b0c431b629": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TOTAL_FEES_RAW", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TOTAL_FEES_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_ad4a73bc8bf7a40f9616557d41d37a4b.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.b0c431b629", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TOTAL_FEES_RAW__NUMBER__FLOAT"], "alias": "tofunft_sales_TOTAL_FEES_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ad4a73bc8bf7a40f9616557d41d37a4b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_ad4a73bc8bf7a40f9616557d41d37a4b"}, "created_at": 1764018435.1764696, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.tofunft_sales_TOTAL_FEES_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ad4a73bc8bf7a40f9616557d41d37a4b\") }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/dbt_expectations_expect_column_ad4a73bc8bf7a40f9616557d41d37a4b.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_TX_GROUPING' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRUNC_GROUPING' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('USER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIGNER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEE_RATE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROYALTY_RATE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEE_RECEIVER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROYALTY_RECEIVER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUNDLE_ARRAY_SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('KIND' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATUS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_RAW_TRACES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NET_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_RAW_LOGS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_FEES_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES_RAW", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_PLATFORM_FEE_RAW.07e68bea2e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_PLATFORM_FEE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_PLATFORM_FEE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_PLATFORM_FEE_RAW.07e68bea2e", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_PLATFORM_FEE_RAW"], "alias": "tofunft_sales_PLATFORM_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.180916, "relation_name": "polygon.not_null_silver.tofunft_sales_PLATFORM_FEE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_PLATFORM_FEE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere PLATFORM_FEE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_FEE_RAW", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.ee9c014f0f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "PLATFORM_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_65d099b810cfdad32ecb6954a73bb640.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.ee9c014f0f", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT"], "alias": "tofunft_sales_PLATFORM_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_65d099b810cfdad32ecb6954a73bb640", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_65d099b810cfdad32ecb6954a73bb640"}, "created_at": 1764018435.1829772, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.tofunft_sales_PLATFORM_FEE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_65d099b810cfdad32ecb6954a73bb640\") }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/dbt_expectations_expect_column_65d099b810cfdad32ecb6954a73bb640.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_TX_GROUPING' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRUNC_GROUPING' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('USER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIGNER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEE_RATE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROYALTY_RATE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEE_RECEIVER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROYALTY_RECEIVER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUNDLE_ARRAY_SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('KIND' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATUS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_RAW_TRACES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NET_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_RAW_LOGS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'PLATFORM_FEE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_FEE_RAW", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_CREATOR_FEE_RAW.2acaf124dc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CREATOR_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_CREATOR_FEE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_CREATOR_FEE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_CREATOR_FEE_RAW.2acaf124dc", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_CREATOR_FEE_RAW"], "alias": "tofunft_sales_CREATOR_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.1876578, "relation_name": "polygon.not_null_silver.tofunft_sales_CREATOR_FEE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_CREATOR_FEE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere CREATOR_FEE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATOR_FEE_RAW", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.338ac91ecd": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "CREATOR_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_CREATOR_FEE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_b6fbed080a93f7a33cbbdf57c886f377.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.338ac91ecd", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_CREATOR_FEE_RAW__NUMBER__FLOAT"], "alias": "tofunft_sales_CREATOR_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b6fbed080a93f7a33cbbdf57c886f377", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b6fbed080a93f7a33cbbdf57c886f377"}, "created_at": 1764018435.1896813, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.tofunft_sales_CREATOR_FEE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b6fbed080a93f7a33cbbdf57c886f377\") }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/dbt_expectations_expect_column_b6fbed080a93f7a33cbbdf57c886f377.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_TX_GROUPING' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRUNC_GROUPING' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('USER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIGNER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEE_RATE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROYALTY_RATE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEE_RECEIVER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROYALTY_RECEIVER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUNDLE_ARRAY_SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('KIND' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATUS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_RAW_TRACES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NET_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_RAW_LOGS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'CREATOR_FEE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATOR_FEE_RAW", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_TX_FEE.911a502933": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_TX_FEE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_TX_FEE.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_TX_FEE.911a502933", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_TX_FEE"], "alias": "tofunft_sales_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.1944268, "relation_name": "polygon.not_null_silver.tofunft_sales_TX_FEE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_TX_FEE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere TX_FEE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TX_FEE__NUMBER__FLOAT.2e849c3a94": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TX_FEE__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_578bd7cdda0295bba2dd0d6ef4ce7117.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TX_FEE__NUMBER__FLOAT.2e849c3a94", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TX_FEE__NUMBER__FLOAT"], "alias": "tofunft_sales_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_578bd7cdda0295bba2dd0d6ef4ce7117", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_578bd7cdda0295bba2dd0d6ef4ce7117"}, "created_at": 1764018435.19647, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.tofunft_sales_TX_FEE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_578bd7cdda0295bba2dd0d6ef4ce7117\") }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/dbt_expectations_expect_column_578bd7cdda0295bba2dd0d6ef4ce7117.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_TX_GROUPING' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRUNC_GROUPING' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('USER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIGNER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEE_RATE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROYALTY_RATE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEE_RECEIVER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROYALTY_RECEIVER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUNDLE_ARRAY_SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('KIND' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATUS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_RAW_TRACES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NET_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_RAW_LOGS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_FEE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_NFT_LOG_ID.5be70a9545": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NFT_LOG_ID", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_NFT_LOG_ID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_NFT_LOG_ID.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_NFT_LOG_ID.5be70a9545", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_NFT_LOG_ID"], "alias": "tofunft_sales_NFT_LOG_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.2009552, "relation_name": "polygon.not_null_silver.tofunft_sales_NFT_LOG_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_NFT_LOG_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere NFT_LOG_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_LOG_ID", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales__INSERTED_TIMESTAMP.99cb218d68": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales__INSERTED_TIMESTAMP.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales__INSERTED_TIMESTAMP.99cb218d68", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales__INSERTED_TIMESTAMP"], "alias": "tofunft_sales", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.2038414, "relation_name": "polygon.not_null_silver.tofunft_sales", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.eafbf3d59d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_ca2a881c2fe98e9ec8d45e067f7d2060.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.eafbf3d59d", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "tofunft_sales", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ca2a881c2fe98e9ec8d45e067f7d2060", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_ca2a881c2fe98e9ec8d45e067f7d2060"}, "created_at": 1764018435.2058666, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.tofunft_sales", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ca2a881c2fe98e9ec8d45e067f7d2060\") }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/dbt_expectations_expect_column_ca2a881c2fe98e9ec8d45e067f7d2060.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_TX_GROUPING' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRUNC_GROUPING' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('USER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIGNER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CALLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEE_RATE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROYALTY_RATE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEE_RECEIVER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROYALTY_RECEIVER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUNDLE_ARRAY_SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('KIND' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATUS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_RAW_TRACES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NET_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_RAW_LOGS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_FROM_ADDRESS.0e7cafbf22": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_FROM_ADDRESS.0e7cafbf22", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_ORIGIN_FROM_ADDRESS"], "alias": "tofunft_sales_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.2103596, "relation_name": "polygon.not_null_silver.tofunft_sales_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_ORIGIN_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.ad1193ebee": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_0bdb68d7cbf0d2aa348f0797bec92a5c.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.ad1193ebee", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "tofunft_sales_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0bdb68d7cbf0d2aa348f0797bec92a5c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_0bdb68d7cbf0d2aa348f0797bec92a5c"}, "created_at": 1764018435.2126706, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.tofunft_sales_ORIGIN_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0bdb68d7cbf0d2aa348f0797bec92a5c\") }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/dbt_expectations_expect_column_0bdb68d7cbf0d2aa348f0797bec92a5c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.tofunft_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_TO_ADDRESS.6fe92c8681": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_ORIGIN_TO_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_ORIGIN_TO_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_TO_ADDRESS.6fe92c8681", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_ORIGIN_TO_ADDRESS"], "alias": "tofunft_sales_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.2174723, "relation_name": "polygon.not_null_silver.tofunft_sales_ORIGIN_TO_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_ORIGIN_TO_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere ORIGIN_TO_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.f3b5a3d941": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_d66cdcaf551d72ff508e7f850a71e362.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.f3b5a3d941", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "tofunft_sales_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d66cdcaf551d72ff508e7f850a71e362", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d66cdcaf551d72ff508e7f850a71e362"}, "created_at": 1764018435.2194698, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.tofunft_sales_ORIGIN_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d66cdcaf551d72ff508e7f850a71e362\") }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/dbt_expectations_expect_column_d66cdcaf551d72ff508e7f850a71e362.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.tofunft_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE.ebd6d32cdd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE.ebd6d32cdd", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE"], "alias": "tofunft_sales_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.2244856, "relation_name": "polygon.not_null_silver.tofunft_sales_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.266e7a9bab": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_651ff3741e5a36f5274037ade029a5d7.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.266e7a9bab", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_"], "alias": "tofunft_sales_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_651ff3741e5a36f5274037ade029a5d7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_651ff3741e5a36f5274037ade029a5d7"}, "created_at": 1764018435.2265165, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.tofunft_sales_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_651ff3741e5a36f5274037ade029a5d7\") }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/dbt_expectations_expect_column_651ff3741e5a36f5274037ade029a5d7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FUNCTION_SIGNATURE, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.tofunft_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_EVENT_TYPE.0b1cc9cc57": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_TYPE", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_EVENT_TYPE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_EVENT_TYPE.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_EVENT_TYPE.0b1cc9cc57", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_EVENT_TYPE"], "alias": "tofunft_sales_EVENT_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.2316325, "relation_name": "polygon.not_null_silver.tofunft_sales_EVENT_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_EVENT_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere EVENT_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_TYPE", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__tofunft_sales_EVENT_TYPE__bid_won__sale.2c30cdcd41": {"test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["bid_won", "sale"], "column_name": "EVENT_TYPE", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_set_silver", "name": "dbt_expectations_expect_column_values_to_be_in_set_silver__tofunft_sales_EVENT_TYPE__bid_won__sale", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_886a1c96c91316f853200b6da800ac6a.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__tofunft_sales_EVENT_TYPE__bid_won__sale.2c30cdcd41", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_set_silver__tofunft_sales_EVENT_TYPE__bid_won__sale"], "alias": "tofunft_sales_EVENT_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_886a1c96c91316f853200b6da800ac6a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_886a1c96c91316f853200b6da800ac6a"}, "created_at": 1764018435.233727, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_set_silver.tofunft_sales_EVENT_TYPE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_886a1c96c91316f853200b6da800ac6a\") }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/dbt_expectations_expect_column_886a1c96c91316f853200b6da800ac6a.sql", "compiled": true, "compiled_code": "\n\nwith all_values as (\n\n select\n EVENT_TYPE as value_field\n\n from polygon.silver.tofunft_sales\n \n\n),\nset_values as (\n\n select\n cast('bid_won' as TEXT) as value_field\n union all\n select\n cast('sale' as TEXT) as value_field\n \n \n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_TYPE", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__tofunft_sales_INPUT_DATA.358e16915b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INPUT_DATA", "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__tofunft_sales_INPUT_DATA", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__tofunft_sales_INPUT_DATA.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.not_null_silver__tofunft_sales_INPUT_DATA.358e16915b", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__tofunft_sales_INPUT_DATA"], "alias": "tofunft_sales_INPUT_DATA", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.2392766, "relation_name": "polygon.not_null_silver.tofunft_sales_INPUT_DATA", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/not_null_silver__tofunft_sales_INPUT_DATA.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.tofunft_sales\nwhere INPUT_DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INPUT_DATA", "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__tofunft_sales_nft_log_id.628c88944c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["nft_log_id"], "model": "{{ get_where_subquery(ref('silver__tofunft_sales')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__tofunft_sales_nft_log_id", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_utils_unique_combination_o_4fc5658570d01ad1c73b3e485438cad4.sql", "original_file_path": "models/silver/NFT/sales/silver__tofunft_sales.yml", "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__tofunft_sales_nft_log_id.628c88944c", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_utils_unique_combination_of_columns_silver__tofunft_sales_nft_log_id"], "alias": "tofunft_sales_nft_log_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4fc5658570d01ad1c73b3e485438cad4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_4fc5658570d01ad1c73b3e485438cad4"}, "created_at": 1764018435.2413282, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.tofunft_sales_nft_log_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4fc5658570d01ad1c73b3e485438cad4\") }}", "language": "sql", "refs": [{"name": "silver__tofunft_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__tofunft_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__tofunft_sales.yml/dbt_utils_unique_combination_o_4fc5658570d01ad1c73b3e485438cad4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n nft_log_id\n from polygon.silver.tofunft_sales\n group by nft_log_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__tofunft_sales", "attached_node": "model.polygon_models.silver__tofunft_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_BLOCK_NUMBER.c4c18714b1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_BLOCK_NUMBER", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_BLOCK_NUMBER.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_BLOCK_NUMBER.c4c18714b1", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_BLOCK_NUMBER"], "alias": "seaport_1_5_sales_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.2489712, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_BLOCK_NUMBER__NUMBER__FLOAT.5fd14b6024": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_b95efef8fbc32450148e3897475f0413.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_BLOCK_NUMBER__NUMBER__FLOAT.5fd14b6024", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "seaport_1_5_sales_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b95efef8fbc32450148e3897475f0413", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b95efef8fbc32450148e3897475f0413"}, "created_at": 1764018435.2510197, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_5_sales_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b95efef8fbc32450148e3897475f0413\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_expectations_expect_column_b95efef8fbc32450148e3897475f0413.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_BLOCK_TIMESTAMP.0e3cfc73a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_BLOCK_TIMESTAMP.0e3cfc73a7", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_BLOCK_TIMESTAMP"], "alias": "seaport_1_5_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.255675, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.6246cb2672": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_3f596e92bfa0b6abad46d72e23f98363.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.6246cb2672", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "seaport_1_5_sales_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3f596e92bfa0b6abad46d72e23f98363", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3f596e92bfa0b6abad46d72e23f98363"}, "created_at": 1764018435.2576768, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_5_sales_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3f596e92bfa0b6abad46d72e23f98363\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_expectations_expect_column_3f596e92bfa0b6abad46d72e23f98363.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_TX_HASH.e332a4e2f2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_TX_HASH", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_TX_HASH.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_TX_HASH.e332a4e2f2", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_TX_HASH"], "alias": "seaport_1_5_sales_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.2623463, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_TX_HASH__0_xX_0_9a_fA_F_.3c3779d6bb": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_5c6c74b95f66d08e0a097cfa62c6cda2.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_TX_HASH__0_xX_0_9a_fA_F_.3c3779d6bb", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "seaport_1_5_sales_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5c6c74b95f66d08e0a097cfa62c6cda2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_5c6c74b95f66d08e0a097cfa62c6cda2"}, "created_at": 1764018435.2643661, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_5_sales_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5c6c74b95f66d08e0a097cfa62c6cda2\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_expectations_expect_column_5c6c74b95f66d08e0a097cfa62c6cda2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_5_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_ADDRESS.df87d38f26": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_PLATFORM_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_PLATFORM_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_ADDRESS.df87d38f26", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_PLATFORM_ADDRESS"], "alias": "seaport_1_5_sales_PLATFORM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.2693715, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_PLATFORM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_PLATFORM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere PLATFORM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_ADDRESS", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.28cf427125": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "PLATFORM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_8d9359e83c313356d5cbaa8dedc17092.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.28cf427125", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_5_sales_PLATFORM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8d9359e83c313356d5cbaa8dedc17092", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_8d9359e83c313356d5cbaa8dedc17092"}, "created_at": 1764018435.2714214, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_5_sales_PLATFORM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8d9359e83c313356d5cbaa8dedc17092\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_expectations_expect_column_8d9359e83c313356d5cbaa8dedc17092.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(PLATFORM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_5_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_ADDRESS", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_NAME.2cdf43e2a0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_NAME", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_PLATFORM_NAME", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_PLATFORM_NAME.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_NAME.2cdf43e2a0", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_PLATFORM_NAME"], "alias": "seaport_1_5_sales_PLATFORM_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.276204, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_PLATFORM_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_PLATFORM_NAME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere PLATFORM_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_NAME", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_5_sales_PLATFORM_NAME__opensea.16c4e7cfc1": {"test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["opensea"], "column_name": "PLATFORM_NAME", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_set_silver", "name": "dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_5_sales_PLATFORM_NAME__opensea", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_9d155d00ba7b759ee2fdf812380fb2d3.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_5_sales_PLATFORM_NAME__opensea.16c4e7cfc1", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_5_sales_PLATFORM_NAME__opensea"], "alias": "seaport_1_5_sales_PLATFORM_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9d155d00ba7b759ee2fdf812380fb2d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9d155d00ba7b759ee2fdf812380fb2d3"}, "created_at": 1764018435.2784784, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_set_silver.seaport_1_5_sales_PLATFORM_NAME", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9d155d00ba7b759ee2fdf812380fb2d3\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_expectations_expect_column_9d155d00ba7b759ee2fdf812380fb2d3.sql", "compiled": true, "compiled_code": "\n\nwith all_values as (\n\n select\n PLATFORM_NAME as value_field\n\n from polygon.silver.seaport_1_5_sales\n \n\n),\nset_values as (\n\n select\n cast('opensea' as TEXT) as value_field\n \n \n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_NAME", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_SELLER_ADDRESS.48bbb8263d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SELLER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_SELLER_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_SELLER_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_SELLER_ADDRESS.48bbb8263d", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_SELLER_ADDRESS"], "alias": "seaport_1_5_sales_SELLER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.283361, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_SELLER_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_SELLER_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere SELLER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SELLER_ADDRESS", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.224af0bd4c": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "SELLER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_4498f08d14a1c6b8ce03357256cfbc6d.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.224af0bd4c", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_5_sales_SELLER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4498f08d14a1c6b8ce03357256cfbc6d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_4498f08d14a1c6b8ce03357256cfbc6d"}, "created_at": 1764018435.2853608, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_5_sales_SELLER_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4498f08d14a1c6b8ce03357256cfbc6d\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_expectations_expect_column_4498f08d14a1c6b8ce03357256cfbc6d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(SELLER_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_5_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SELLER_ADDRESS", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_BUYER_ADDRESS.5a3e4fa745": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BUYER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_BUYER_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_BUYER_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_BUYER_ADDRESS.5a3e4fa745", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_BUYER_ADDRESS"], "alias": "seaport_1_5_sales_BUYER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.2903788, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_BUYER_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_BUYER_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere BUYER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BUYER_ADDRESS", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4cd6e3b69f": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "BUYER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_17aaad3142723cc21042c97a7de21a86.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4cd6e3b69f", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_5_sales_BUYER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_17aaad3142723cc21042c97a7de21a86", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_17aaad3142723cc21042c97a7de21a86"}, "created_at": 1764018435.2924168, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_5_sales_BUYER_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_17aaad3142723cc21042c97a7de21a86\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_expectations_expect_column_17aaad3142723cc21042c97a7de21a86.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(BUYER_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_5_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BUYER_ADDRESS", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_NFT_ADDRESS.f813b4d9e7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NFT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_NFT_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_NFT_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_NFT_ADDRESS.f813b4d9e7", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_NFT_ADDRESS"], "alias": "seaport_1_5_sales_NFT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.2974052, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_NFT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_NFT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere NFT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_ADDRESS", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.99fc2c7c14": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "NFT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_2a069c4587ccf175f42b01893f1a78e4.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.99fc2c7c14", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_5_sales_NFT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2a069c4587ccf175f42b01893f1a78e4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_2a069c4587ccf175f42b01893f1a78e4"}, "created_at": 1764018435.299434, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_5_sales_NFT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2a069c4587ccf175f42b01893f1a78e4\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_expectations_expect_column_2a069c4587ccf175f42b01893f1a78e4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(NFT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_5_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_ADDRESS", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_TOKENID.f690e73e38": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKENID", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_TOKENID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_TOKENID.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_TOKENID.f690e73e38", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_TOKENID"], "alias": "seaport_1_5_sales_TOKENID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.305218, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_TOKENID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_TOKENID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere TOKENID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKENID", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_CURRENCY_ADDRESS.dbcea46a1f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CURRENCY_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_CURRENCY_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_CURRENCY_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_CURRENCY_ADDRESS.dbcea46a1f", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_CURRENCY_ADDRESS"], "alias": "seaport_1_5_sales_CURRENCY_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "total_price_raw > 0", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "where": "total_price_raw > 0"}, "created_at": 1764018435.3072405, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_CURRENCY_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"total_price_raw > 0\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_CURRENCY_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver.seaport_1_5_sales where total_price_raw > 0) dbt_subquery\nwhere CURRENCY_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CURRENCY_ADDRESS", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_TOTAL_PRICE_RAW.46ad0b4d7a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_PRICE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_TOTAL_PRICE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_TOTAL_PRICE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_TOTAL_PRICE_RAW.46ad0b4d7a", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_TOTAL_PRICE_RAW"], "alias": "seaport_1_5_sales_TOTAL_PRICE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.3091912, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_TOTAL_PRICE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_TOTAL_PRICE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere TOTAL_PRICE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_PRICE_RAW", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.b4f6fa2d3d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TOTAL_PRICE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_aa805977b3d905cf7a7e078b56201240.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.b4f6fa2d3d", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT"], "alias": "seaport_1_5_sales_TOTAL_PRICE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_aa805977b3d905cf7a7e078b56201240", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_aa805977b3d905cf7a7e078b56201240"}, "created_at": 1764018435.3111706, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_5_sales_TOTAL_PRICE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_aa805977b3d905cf7a7e078b56201240\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_expectations_expect_column_aa805977b3d905cf7a7e078b56201240.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_PRICE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_PRICE_RAW", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_TOTAL_FEES_RAW.b8f34e40c8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_FEES_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_TOTAL_FEES_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_TOTAL_FEES_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_TOTAL_FEES_RAW.b8f34e40c8", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_TOTAL_FEES_RAW"], "alias": "seaport_1_5_sales_TOTAL_FEES_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.3159168, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_TOTAL_FEES_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_TOTAL_FEES_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere TOTAL_FEES_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES_RAW", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.5721ea6b45": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TOTAL_FEES_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TOTAL_FEES_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_002c15697f092e32dfee9db72286d1c0.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.5721ea6b45", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TOTAL_FEES_RAW__NUMBER__FLOAT"], "alias": "seaport_1_5_sales_TOTAL_FEES_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_002c15697f092e32dfee9db72286d1c0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_002c15697f092e32dfee9db72286d1c0"}, "created_at": 1764018435.3179348, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_5_sales_TOTAL_FEES_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_002c15697f092e32dfee9db72286d1c0\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_expectations_expect_column_002c15697f092e32dfee9db72286d1c0.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_FEES_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES_RAW", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_FEE_RAW.87b23c30ad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_PLATFORM_FEE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_PLATFORM_FEE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_FEE_RAW.87b23c30ad", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_PLATFORM_FEE_RAW"], "alias": "seaport_1_5_sales_PLATFORM_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.3226464, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_PLATFORM_FEE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_PLATFORM_FEE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere PLATFORM_FEE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_FEE_RAW", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.b6d1df5615": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "PLATFORM_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_59c161810ac65ab4bd24f775545bbf34.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.b6d1df5615", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT"], "alias": "seaport_1_5_sales_PLATFORM_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_59c161810ac65ab4bd24f775545bbf34", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_59c161810ac65ab4bd24f775545bbf34"}, "created_at": 1764018435.3247063, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_5_sales_PLATFORM_FEE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_59c161810ac65ab4bd24f775545bbf34\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_expectations_expect_column_59c161810ac65ab4bd24f775545bbf34.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'PLATFORM_FEE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM_FEE_RAW", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_CREATOR_FEE_RAW.abf009e067": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CREATOR_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_CREATOR_FEE_RAW", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_CREATOR_FEE_RAW.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_CREATOR_FEE_RAW.abf009e067", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_CREATOR_FEE_RAW"], "alias": "seaport_1_5_sales_CREATOR_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.3292015, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_CREATOR_FEE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_CREATOR_FEE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere CREATOR_FEE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATOR_FEE_RAW", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.e6a47f2796": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "CREATOR_FEE_RAW", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_CREATOR_FEE_RAW__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_fef2b6f02959bd3104f2b98110a56990.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.e6a47f2796", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_CREATOR_FEE_RAW__NUMBER__FLOAT"], "alias": "seaport_1_5_sales_CREATOR_FEE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_fef2b6f02959bd3104f2b98110a56990", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_fef2b6f02959bd3104f2b98110a56990"}, "created_at": 1764018435.331507, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_5_sales_CREATOR_FEE_RAW", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_fef2b6f02959bd3104f2b98110a56990\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_expectations_expect_column_fef2b6f02959bd3104f2b98110a56990.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'CREATOR_FEE_RAW'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATOR_FEE_RAW", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_TX_FEE.289ce03033": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_TX_FEE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_TX_FEE.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_TX_FEE.289ce03033", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_TX_FEE"], "alias": "seaport_1_5_sales_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.3359554, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_TX_FEE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_TX_FEE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere TX_FEE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TX_FEE__NUMBER__FLOAT.ee212825cc": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TX_FEE__NUMBER__FLOAT", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_fb89410e6451a6cbc579f1d9ec1e7351.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TX_FEE__NUMBER__FLOAT.ee212825cc", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TX_FEE__NUMBER__FLOAT"], "alias": "seaport_1_5_sales_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_fb89410e6451a6cbc579f1d9ec1e7351", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_fb89410e6451a6cbc579f1d9ec1e7351"}, "created_at": 1764018435.3379703, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_5_sales_TX_FEE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_fb89410e6451a6cbc579f1d9ec1e7351\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_expectations_expect_column_fb89410e6451a6cbc579f1d9ec1e7351.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_FEE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_NFT_LOG_ID.aa0757e4d2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NFT_LOG_ID", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_NFT_LOG_ID", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_NFT_LOG_ID.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_NFT_LOG_ID.aa0757e4d2", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_NFT_LOG_ID"], "alias": "seaport_1_5_sales_NFT_LOG_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.3426402, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_NFT_LOG_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_NFT_LOG_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere NFT_LOG_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NFT_LOG_ID", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales__INSERTED_TIMESTAMP.ca71885856": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales__INSERTED_TIMESTAMP.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales__INSERTED_TIMESTAMP.ca71885856", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales__INSERTED_TIMESTAMP"], "alias": "seaport_1_5_sales", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.3446555, "relation_name": "polygon.not_null_silver.seaport_1_5_sales", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9516659c33": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_d96cffd50a578f831107efc68c2d7a79.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9516659c33", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "seaport_1_5_sales", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d96cffd50a578f831107efc68c2d7a79", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d96cffd50a578f831107efc68c2d7a79"}, "created_at": 1764018435.3466437, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.seaport_1_5_sales", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d96cffd50a578f831107efc68c2d7a79\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_expectations_expect_column_d96cffd50a578f831107efc68c2d7a79.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_EXCHANGE_VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER_LENGTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELLER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORDERHASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BUYER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SALE_CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRADE_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRICE_ESTIMATED' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ZONE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TYPE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS_TEMP' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERC1155_VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_PRICE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_FEE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_OUTPUT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONSIDERATION' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OFFER' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NFT_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS.0b88cca2bc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS.0b88cca2bc", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS"], "alias": "seaport_1_5_sales_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.351357, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.5e09839047": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_f4a3a757f5b3c2ec3dcfce0d2fcc76c3.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.5e09839047", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_5_sales_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f4a3a757f5b3c2ec3dcfce0d2fcc76c3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f4a3a757f5b3c2ec3dcfce0d2fcc76c3"}, "created_at": 1764018435.3533828, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_5_sales_ORIGIN_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f4a3a757f5b3c2ec3dcfce0d2fcc76c3\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_expectations_expect_column_f4a3a757f5b3c2ec3dcfce0d2fcc76c3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_5_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS.d459ebe228": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS.d459ebe228", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS"], "alias": "seaport_1_5_sales_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.3585274, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_ORIGIN_TO_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere ORIGIN_TO_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.fe4a91e952": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_dd22c126cb1a817c6fcdeaadd2521c48.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.fe4a91e952", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "seaport_1_5_sales_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_dd22c126cb1a817c6fcdeaadd2521c48", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_dd22c126cb1a817c6fcdeaadd2521c48"}, "created_at": 1764018435.3605747, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_5_sales_ORIGIN_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_dd22c126cb1a817c6fcdeaadd2521c48\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_expectations_expect_column_dd22c126cb1a817c6fcdeaadd2521c48.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_5_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE.9ca019a30f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE.9ca019a30f", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE"], "alias": "seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.3657331, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.a1eee69661": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_ae2599c6771a5167ef28ced731514e19.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.a1eee69661", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_"], "alias": "seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ae2599c6771a5167ef28ced731514e19", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_ae2599c6771a5167ef28ced731514e19"}, "created_at": 1764018435.3677502, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ae2599c6771a5167ef28ced731514e19\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_expectations_expect_column_ae2599c6771a5167ef28ced731514e19.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FUNCTION_SIGNATURE, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.seaport_1_5_sales\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_EVENT_TYPE.754547c445": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_TYPE", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_EVENT_TYPE", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_EVENT_TYPE.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_EVENT_TYPE.754547c445", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_EVENT_TYPE"], "alias": "seaport_1_5_sales_EVENT_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.3725765, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_EVENT_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_EVENT_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere EVENT_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_TYPE", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_5_sales_EVENT_TYPE__bid_won__sale.3afc0ac436": {"test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["bid_won", "sale"], "column_name": "EVENT_TYPE", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_set_silver", "name": "dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_5_sales_EVENT_TYPE__bid_won__sale", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_expectations_expect_column_e28e2f6a810d4572e93138181b9901cc.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_5_sales_EVENT_TYPE__bid_won__sale.3afc0ac436", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_5_sales_EVENT_TYPE__bid_won__sale"], "alias": "seaport_1_5_sales_EVENT_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e28e2f6a810d4572e93138181b9901cc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e28e2f6a810d4572e93138181b9901cc"}, "created_at": 1764018435.3748112, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_set_silver.seaport_1_5_sales_EVENT_TYPE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e28e2f6a810d4572e93138181b9901cc\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_expectations_expect_column_e28e2f6a810d4572e93138181b9901cc.sql", "compiled": true, "compiled_code": "\n\nwith all_values as (\n\n select\n EVENT_TYPE as value_field\n\n from polygon.silver.seaport_1_5_sales\n \n\n),\nset_values as (\n\n select\n cast('bid_won' as TEXT) as value_field\n union all\n select\n cast('sale' as TEXT) as value_field\n \n \n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_TYPE", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.not_null_silver__seaport_1_5_sales_INPUT_DATA.eecd421993": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INPUT_DATA", "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__seaport_1_5_sales_INPUT_DATA", "resource_type": "test", "package_name": "polygon_models", "path": "not_null_silver__seaport_1_5_sales_INPUT_DATA.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.not_null_silver__seaport_1_5_sales_INPUT_DATA.eecd421993", "fqn": ["polygon_models", "silver", "NFT", "sales", "not_null_silver__seaport_1_5_sales_INPUT_DATA"], "alias": "seaport_1_5_sales_INPUT_DATA", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.3800077, "relation_name": "polygon.not_null_silver.seaport_1_5_sales_INPUT_DATA", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/not_null_silver__seaport_1_5_sales_INPUT_DATA.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.seaport_1_5_sales\nwhere INPUT_DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INPUT_DATA", "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_5_sales_nft_log_id.abea905342": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["nft_log_id"], "model": "{{ get_where_subquery(ref('silver__seaport_1_5_sales')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__seaport_1_5_sales_nft_log_id", "resource_type": "test", "package_name": "polygon_models", "path": "dbt_utils_unique_combination_o_18656f6963c9fd386e431792b2f8fa11.sql", "original_file_path": "models/silver/NFT/sales/silver__seaport_1_5_sales.yml", "unique_id": "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_5_sales_nft_log_id.abea905342", "fqn": ["polygon_models", "silver", "NFT", "sales", "dbt_utils_unique_combination_of_columns_silver__seaport_1_5_sales_nft_log_id"], "alias": "seaport_1_5_sales_nft_log_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_18656f6963c9fd386e431792b2f8fa11", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_18656f6963c9fd386e431792b2f8fa11"}, "created_at": 1764018435.3822846, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.seaport_1_5_sales_nft_log_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_18656f6963c9fd386e431792b2f8fa11\") }}", "language": "sql", "refs": [{"name": "silver__seaport_1_5_sales", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.polygon_models.silver__seaport_1_5_sales"]}, "compiled_path": "target/compiled/polygon_models/models/silver/NFT/sales/silver__seaport_1_5_sales.yml/dbt_utils_unique_combination_o_18656f6963c9fd386e431792b2f8fa11.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n nft_log_id\n from polygon.silver.seaport_1_5_sales\n group by nft_log_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__seaport_1_5_sales", "attached_node": "model.polygon_models.silver__seaport_1_5_sales"}, "test.livequery_models.test_transpose__get_status_200.8721d94682": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/ens/ens-records-by-name' , {'chain_id': 'ethereum','ens_names': 'vitalik.eth'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('transpose__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_transpose", "name": "test_transpose__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_transpose__get_status_200.sql", "original_file_path": "models/deploy/marketplace/transpose/transpose__.yml", "unique_id": "test.livequery_models.test_transpose__get_status_200.8721d94682", "fqn": ["livequery_models", "deploy", "marketplace", "transpose", "test_transpose__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.5693295, "relation_name": "polygon.test_transpose.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "transpose__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.transpose__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/transpose/transpose__.yml/test_transpose__get_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__transpose__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'transpose' as schema_\n) ,\ntest AS\n(\n SELECT\n 'transpose.get' AS test_name\n ,['/ens/ens-records-by-name' , {'chain_id': 'ethereum','ens_names': 'vitalik.eth'}] as parameters\n ,polygon.transpose.get('/ens/ens-records-by-name' , {'chain_id': 'ethereum','ens_names': 'vitalik.eth'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.transpose.get('/ens/ens-records-by-name' , {'chain_id': 'ethereum','ens_names': 'vitalik.eth'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.transpose.get('/ens/ens-records-by-name' , {'chain_id': 'ethereum','ens_names': 'vitalik.eth'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.transpose__", "sql": " __dbt__cte__transpose__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'transpose' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.transpose__", "attached_node": "model.livequery_models.transpose__"}, "test.livequery_models.test_credmark_utils__get_status_200.d1548e1f6e": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v1/tokens/1/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' , { 'blockNumber': 17767007 }\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('credmark_utils__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_credmark_utils", "name": "test_credmark_utils__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_credmark_utils__get_status_200.sql", "original_file_path": "models/deploy/marketplace/credmark/credmark_utils__.yml", "unique_id": "test.livequery_models.test_credmark_utils__get_status_200.d1548e1f6e", "fqn": ["livequery_models", "deploy", "marketplace", "credmark", "test_credmark_utils__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.5845342, "relation_name": "polygon.test_credmark_utils.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "credmark_utils__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.credmark_utils__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/credmark/credmark_utils__.yml/test_credmark_utils__get_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__credmark_utils__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'credmark_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'credmark_utils.get' AS test_name\n ,['/v1/tokens/1/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' , { 'blockNumber': 17767007 }] as parameters\n ,polygon.credmark_utils.get('/v1/tokens/1/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' , { 'blockNumber': 17767007 }) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.credmark_utils.get('/v1/tokens/1/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' , { 'blockNumber': 17767007 })\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.credmark_utils.get('/v1/tokens/1/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' , { 'blockNumber': 17767007 })\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.credmark_utils__", "sql": " __dbt__cte__credmark_utils__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'credmark_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.credmark_utils__", "attached_node": "model.livequery_models.credmark_utils__"}, "test.livequery_models.test_opensea__get_collection_stats_status_200.bdf3d1d191": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/api/v2/collections/cryptopunks/stats' , {}\n", "assertions": ["result:status_code = 200", "result:error IS NULL", "result:data IS NOT NULL", "result:data:total IS NOT NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('opensea__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_opensea", "name": "test_opensea__get_collection_stats_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_opensea__get_collection_stats_status_200.sql", "original_file_path": "models/deploy/marketplace/opensea/opensea__.yml", "unique_id": "test.livequery_models.test_opensea__get_collection_stats_status_200.bdf3d1d191", "fqn": ["livequery_models", "deploy", "marketplace", "opensea", "test_opensea__get_collection_stats_status_200"], "alias": "get_collection_stats_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.591685, "relation_name": "polygon.test_opensea.get_collection_stats_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "opensea__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.opensea__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/opensea/opensea__.yml/test_opensea__get_collection_stats_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__opensea__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'opensea' as schema_\n) ,\ntest AS\n(\n SELECT\n 'opensea.get' AS test_name\n ,['/api/v2/collections/cryptopunks/stats' , {}] as parameters\n ,polygon.opensea.get('/api/v2/collections/cryptopunks/stats' , {}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.opensea.get('/api/v2/collections/cryptopunks/stats' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.opensea.get('/api/v2/collections/cryptopunks/stats' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:data IS NOT NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.opensea.get('/api/v2/collections/cryptopunks/stats' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:data IS NOT NULL\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:data:total IS NOT NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.opensea.get('/api/v2/collections/cryptopunks/stats' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:data:total IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.opensea__", "sql": " __dbt__cte__opensea__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'opensea' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.opensea__", "attached_node": "model.livequery_models.opensea__"}, "test.livequery_models.test_stakingrewards__query_status_200.144a35304b": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'query': '{\n assets(where: {symbols: [\"ETH\"]}, limit: 1) {\n name\n slug\n description\n symbol\n }\n }',\n 'variables': {}\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "query", "model": "{{ get_where_subquery(ref('stakingrewards__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_stakingrewards", "name": "test_stakingrewards__query_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_stakingrewards__query_status_200.sql", "original_file_path": "models/deploy/marketplace/stakingrewards/stakingrewards__ .yml", "unique_id": "test.livequery_models.test_stakingrewards__query_status_200.144a35304b", "fqn": ["livequery_models", "deploy", "marketplace", "stakingrewards", "test_stakingrewards__query_status_200"], "alias": "query_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.6010692, "relation_name": "polygon.test_stakingrewards.query_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stakingrewards__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.stakingrewards__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/stakingrewards/stakingrewards__ .yml/test_stakingrewards__query_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__stakingrewards__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'stakingrewards' as schema_\n) ,\ntest AS\n(\n SELECT\n 'stakingrewards.query' AS test_name\n ,[{\n 'query': '{\n assets(where: {symbols: [\"ETH\"]}, limit: 1) {\n name\n slug\n description\n symbol\n }\n }',\n 'variables': {}\n}] as parameters\n ,polygon.stakingrewards.query({\n 'query': '{\n assets(where: {symbols: [\"ETH\"]}, limit: 1) {\n name\n slug\n description\n symbol\n }\n }',\n 'variables': {}\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.stakingrewards.query({\n 'query': '{\n assets(where: {symbols: [\"ETH\"]}, limit: 1) {\n name\n slug\n description\n symbol\n }\n }',\n 'variables': {}\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.stakingrewards.query({\n 'query': '{\n assets(where: {symbols: [\"ETH\"]}, limit: 1) {\n name\n slug\n description\n symbol\n }\n }',\n 'variables': {}\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.stakingrewards__", "sql": " __dbt__cte__stakingrewards__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'stakingrewards' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "query", "file_key_name": "models.stakingrewards__", "attached_node": "model.livequery_models.stakingrewards__"}, "test.livequery_models.test_subquery__graphql_status_200.b25433a976": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'subquery-mainnet', {\n 'query': '{\n _pois(first: 5) {\n nodes {\n id\n chainBlockHash\n hash\n parentHash\n createdAt\n operationHashRoot\n nodeId\n updatedAt\n }\n }\n }'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "graphql", "model": "{{ get_where_subquery(ref('subquery__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_subquery", "name": "test_subquery__graphql_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_subquery__graphql_status_200.sql", "original_file_path": "models/deploy/marketplace/subquery/subquery__.yml", "unique_id": "test.livequery_models.test_subquery__graphql_status_200.b25433a976", "fqn": ["livequery_models", "deploy", "marketplace", "subquery", "test_subquery__graphql_status_200"], "alias": "graphql_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.6082194, "relation_name": "polygon.test_subquery.graphql_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "subquery__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.subquery__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/subquery/subquery__.yml/test_subquery__graphql_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__subquery__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'subquery' as schema_\n) ,\ntest AS\n(\n SELECT\n 'subquery.graphql' AS test_name\n ,['subquery-mainnet', {\n 'query': '{\n _pois(first: 5) {\n nodes {\n id\n chainBlockHash\n hash\n parentHash\n createdAt\n operationHashRoot\n nodeId\n updatedAt\n }\n }\n }'\n}] as parameters\n ,polygon.subquery.graphql('subquery-mainnet', {\n 'query': '{\n _pois(first: 5) {\n nodes {\n id\n chainBlockHash\n hash\n parentHash\n createdAt\n operationHashRoot\n nodeId\n updatedAt\n }\n }\n }'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.subquery.graphql('subquery-mainnet', {\n 'query': '{\n _pois(first: 5) {\n nodes {\n id\n chainBlockHash\n hash\n parentHash\n createdAt\n operationHashRoot\n nodeId\n updatedAt\n }\n }\n }'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.subquery.graphql('subquery-mainnet', {\n 'query': '{\n _pois(first: 5) {\n nodes {\n id\n chainBlockHash\n hash\n parentHash\n createdAt\n operationHashRoot\n nodeId\n updatedAt\n }\n }\n }'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.subquery__", "sql": " __dbt__cte__subquery__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'subquery' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "graphql", "file_key_name": "models.subquery__", "attached_node": "model.livequery_models.subquery__"}, "test.livequery_models.test_topshot__graphql_status_200.fb93e3b220": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'query': '\n query {\n getMintedMoment (momentId: 5) {\n data {\n id\n }\n }\n }\n}',\n 'variables': '{}'\n}\n", "assertions": ["result:status_code = 200"], "column_name": "graphql", "model": "{{ get_where_subquery(ref('topshot__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_topshot", "name": "test_topshot__graphql_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_topshot__graphql_status_200.sql", "original_file_path": "models/deploy/marketplace/topshot/topshot__.yml", "unique_id": "test.livequery_models.test_topshot__graphql_status_200.fb93e3b220", "fqn": ["livequery_models", "deploy", "marketplace", "topshot", "test_topshot__graphql_status_200"], "alias": "graphql_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.615233, "relation_name": "polygon.test_topshot.graphql_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "topshot__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.topshot__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/topshot/topshot__.yml/test_topshot__graphql_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__topshot__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'topshot' as schema_\n) ,\ntest AS\n(\n SELECT\n 'topshot.graphql' AS test_name\n ,[{\n 'query': '\n query {\n getMintedMoment (momentId: 5) {\n data {\n id\n }\n }\n }\n}',\n 'variables': '{}'\n}] as parameters\n ,polygon.topshot.graphql({\n 'query': '\n query {\n getMintedMoment (momentId: 5) {\n data {\n id\n }\n }\n }\n}',\n 'variables': '{}'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.topshot.graphql({\n 'query': '\n query {\n getMintedMoment (momentId: 5) {\n data {\n id\n }\n }\n }\n}',\n 'variables': '{}'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.topshot__", "sql": " __dbt__cte__topshot__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'topshot' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "graphql", "file_key_name": "models.topshot__", "attached_node": "model.livequery_models.topshot__"}, "test.livequery_models.test_allday__graphql_status_200.8cfd62f9a1": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'query': '{\n searchPlays(input: {filters: {byFlowIDs: [\"1666\"]}}){\n plays {\n id\n flowID\n metadata {\n description\n playerID\n playTypeV2\n classification\n week\n season\n playerFullName\n playerPosition\n playerDraftTeam\n gameDate\n teamName\n }\n }\n }',\n 'variables': '{}'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "graphql", "model": "{{ get_where_subquery(ref('allday__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_allday", "name": "test_allday__graphql_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_allday__graphql_status_200.sql", "original_file_path": "models/deploy/marketplace/allday/allday__.yml", "unique_id": "test.livequery_models.test_allday__graphql_status_200.8cfd62f9a1", "fqn": ["livequery_models", "deploy", "marketplace", "allday", "test_allday__graphql_status_200"], "alias": "graphql_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.6218786, "relation_name": "polygon.test_allday.graphql_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "allday__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.allday__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/allday/allday__.yml/test_allday__graphql_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__allday__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'allday' as schema_\n) ,\ntest AS\n(\n SELECT\n 'allday.graphql' AS test_name\n ,[{\n 'query': '{\n searchPlays(input: {filters: {byFlowIDs: [\"1666\"]}}){\n plays {\n id\n flowID\n metadata {\n description\n playerID\n playTypeV2\n classification\n week\n season\n playerFullName\n playerPosition\n playerDraftTeam\n gameDate\n teamName\n }\n }\n }',\n 'variables': '{}'\n}] as parameters\n ,polygon.allday.graphql({\n 'query': '{\n searchPlays(input: {filters: {byFlowIDs: [\"1666\"]}}){\n plays {\n id\n flowID\n metadata {\n description\n playerID\n playTypeV2\n classification\n week\n season\n playerFullName\n playerPosition\n playerDraftTeam\n gameDate\n teamName\n }\n }\n }',\n 'variables': '{}'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.allday.graphql({\n 'query': '{\n searchPlays(input: {filters: {byFlowIDs: [\"1666\"]}}){\n plays {\n id\n flowID\n metadata {\n description\n playerID\n playTypeV2\n classification\n week\n season\n playerFullName\n playerPosition\n playerDraftTeam\n gameDate\n teamName\n }\n }\n }',\n 'variables': '{}'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.allday.graphql({\n 'query': '{\n searchPlays(input: {filters: {byFlowIDs: [\"1666\"]}}){\n plays {\n id\n flowID\n metadata {\n description\n playerID\n playTypeV2\n classification\n week\n season\n playerFullName\n playerPosition\n playerDraftTeam\n gameDate\n teamName\n }\n }\n }',\n 'variables': '{}'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.allday__", "sql": " __dbt__cte__allday__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'allday' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "graphql", "file_key_name": "models.allday__", "attached_node": "model.livequery_models.allday__"}, "test.livequery_models.test_coingecko__get_status_200.047f15c956": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/api/v3/simple/price' , {'ids': '0x', 'vs_currencies': 'btc,usd,eth'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('coingecko__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_coingecko", "name": "test_coingecko__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_coingecko__get_status_200.sql", "original_file_path": "models/deploy/marketplace/coingecko/coingecko__.yml", "unique_id": "test.livequery_models.test_coingecko__get_status_200.047f15c956", "fqn": ["livequery_models", "deploy", "marketplace", "coingecko", "test_coingecko__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.6289907, "relation_name": "polygon.test_coingecko.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "coingecko__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.coingecko__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/coingecko/coingecko__.yml/test_coingecko__get_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__coingecko__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'coingecko' as schema_\n) ,\ntest AS\n(\n SELECT\n 'coingecko.get' AS test_name\n ,['/api/v3/simple/price' , {'ids': '0x', 'vs_currencies': 'btc,usd,eth'}] as parameters\n ,polygon.coingecko.get('/api/v3/simple/price' , {'ids': '0x', 'vs_currencies': 'btc,usd,eth'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.coingecko.get('/api/v3/simple/price' , {'ids': '0x', 'vs_currencies': 'btc,usd,eth'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.coingecko.get('/api/v3/simple/price' , {'ids': '0x', 'vs_currencies': 'btc,usd,eth'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.coingecko__", "sql": " __dbt__cte__coingecko__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'coingecko' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.coingecko__", "attached_node": "model.livequery_models.coingecko__"}, "test.livequery_models.test_slack__webhook_send_simple.ee0011caae": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://httpbin.org/post', {'text': 'Hello from Livequery!'}\n", "assertions": ["result:status_code = 200", "result:data.json.text = 'Hello from Livequery!'", "result IS NOT NULL"], "column_name": "webhook_send", "model": "{{ get_where_subquery(ref('slack__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack", "name": "test_slack__webhook_send_simple", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack__webhook_send_simple.sql", "original_file_path": "models/deploy/marketplace/slack/slack__.yml", "unique_id": "test.livequery_models.test_slack__webhook_send_simple.ee0011caae", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack__webhook_send_simple"], "alias": "webhook_send_simple", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.6373038, "relation_name": "polygon.test_slack.webhook_send_simple", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack__.yml/test_slack__webhook_send_simple.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n), __dbt__cte__slack__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__slack_utils__slack_utils\nSELECT 'slack' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack.webhook_send' AS test_name\n ,['https://httpbin.org/post', {'text': 'Hello from Livequery!'}] as parameters\n ,polygon.slack.webhook_send('https://httpbin.org/post', {'text': 'Hello from Livequery!'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.slack.webhook_send('https://httpbin.org/post', {'text': 'Hello from Livequery!'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:data.json.text = 'Hello from Livequery!'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.slack.webhook_send('https://httpbin.org/post', {'text': 'Hello from Livequery!'})\n;$$ AS sql\n FROM test\n WHERE NOT result:data.json.text = 'Hello from Livequery!'\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result IS NOT NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.slack.webhook_send('https://httpbin.org/post', {'text': 'Hello from Livequery!'})\n;$$ AS sql\n FROM test\n WHERE NOT result IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}, {"id": "model.livequery_models.slack__", "sql": " __dbt__cte__slack__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__slack_utils__slack_utils\nSELECT 'slack' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "webhook_send", "file_key_name": "models.slack__", "attached_node": "model.livequery_models.slack__"}, "test.livequery_models.test_slack__webhook_send_rich.488499c36a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://httpbin.org/post', {\n 'text': 'Pipeline completed!',\n 'username': 'dbt Bot',\n 'icon_emoji': ':bar_chart:',\n 'attachments': [\n {\n 'color': '#36a64f',\n 'title': 'Success',\n 'fields': [\n {'title': 'Models', 'value': '5', 'short': true},\n {'title': 'Failed', 'value': '0', 'short': true}\n ]\n }\n ]\n}\n", "assertions": ["result:status_code = 200", "result:data.json.text = 'Pipeline completed!'", "result:data.json.username = 'dbt Bot'", "result IS NOT NULL"], "column_name": "webhook_send", "model": "{{ get_where_subquery(ref('slack__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack", "name": "test_slack__webhook_send_rich", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack__webhook_send_rich.sql", "original_file_path": "models/deploy/marketplace/slack/slack__.yml", "unique_id": "test.livequery_models.test_slack__webhook_send_rich.488499c36a", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack__webhook_send_rich"], "alias": "webhook_send_rich", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.6447902, "relation_name": "polygon.test_slack.webhook_send_rich", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack__.yml/test_slack__webhook_send_rich.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n), __dbt__cte__slack__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__slack_utils__slack_utils\nSELECT 'slack' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack.webhook_send' AS test_name\n ,['https://httpbin.org/post', {\n 'text': 'Pipeline completed!',\n 'username': 'dbt Bot',\n 'icon_emoji': ':bar_chart:',\n 'attachments': [\n {\n 'color': '#36a64f',\n 'title': 'Success',\n 'fields': [\n {'title': 'Models', 'value': '5', 'short': true},\n {'title': 'Failed', 'value': '0', 'short': true}\n ]\n }\n ]\n}] as parameters\n ,polygon.slack.webhook_send('https://httpbin.org/post', {\n 'text': 'Pipeline completed!',\n 'username': 'dbt Bot',\n 'icon_emoji': ':bar_chart:',\n 'attachments': [\n {\n 'color': '#36a64f',\n 'title': 'Success',\n 'fields': [\n {'title': 'Models', 'value': '5', 'short': true},\n {'title': 'Failed', 'value': '0', 'short': true}\n ]\n }\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.slack.webhook_send('https://httpbin.org/post', {\n 'text': 'Pipeline completed!',\n 'username': 'dbt Bot',\n 'icon_emoji': ':bar_chart:',\n 'attachments': [\n {\n 'color': '#36a64f',\n 'title': 'Success',\n 'fields': [\n {'title': 'Models', 'value': '5', 'short': true},\n {'title': 'Failed', 'value': '0', 'short': true}\n ]\n }\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:data.json.text = 'Pipeline completed!'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.slack.webhook_send('https://httpbin.org/post', {\n 'text': 'Pipeline completed!',\n 'username': 'dbt Bot',\n 'icon_emoji': ':bar_chart:',\n 'attachments': [\n {\n 'color': '#36a64f',\n 'title': 'Success',\n 'fields': [\n {'title': 'Models', 'value': '5', 'short': true},\n {'title': 'Failed', 'value': '0', 'short': true}\n ]\n }\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:data.json.text = 'Pipeline completed!'\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:data.json.username = 'dbt Bot'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.slack.webhook_send('https://httpbin.org/post', {\n 'text': 'Pipeline completed!',\n 'username': 'dbt Bot',\n 'icon_emoji': ':bar_chart:',\n 'attachments': [\n {\n 'color': '#36a64f',\n 'title': 'Success',\n 'fields': [\n {'title': 'Models', 'value': '5', 'short': true},\n {'title': 'Failed', 'value': '0', 'short': true}\n ]\n }\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:data.json.username = 'dbt Bot'\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result IS NOT NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.slack.webhook_send('https://httpbin.org/post', {\n 'text': 'Pipeline completed!',\n 'username': 'dbt Bot',\n 'icon_emoji': ':bar_chart:',\n 'attachments': [\n {\n 'color': '#36a64f',\n 'title': 'Success',\n 'fields': [\n {'title': 'Models', 'value': '5', 'short': true},\n {'title': 'Failed', 'value': '0', 'short': true}\n ]\n }\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}, {"id": "model.livequery_models.slack__", "sql": " __dbt__cte__slack__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__slack_utils__slack_utils\nSELECT 'slack' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "webhook_send", "file_key_name": "models.slack__", "attached_node": "model.livequery_models.slack__"}, "test.livequery_models.test_slack__post_message_simple.0751f090c1": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'C1234567890', {'text': 'Hello from Livequery!'}\n", "assertions": ["result IS NOT NULL"], "column_name": "post_message", "model": "{{ get_where_subquery(ref('slack__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack", "name": "test_slack__post_message_simple", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack__post_message_simple.sql", "original_file_path": "models/deploy/marketplace/slack/slack__.yml", "unique_id": "test.livequery_models.test_slack__post_message_simple.0751f090c1", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack__post_message_simple"], "alias": "post_message_simple", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.6532774, "relation_name": "polygon.test_slack.post_message_simple", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack__.yml/test_slack__post_message_simple.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n), __dbt__cte__slack__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__slack_utils__slack_utils\nSELECT 'slack' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack.post_message' AS test_name\n ,['C1234567890', {'text': 'Hello from Livequery!'}] as parameters\n ,polygon.slack.post_message('C1234567890', {'text': 'Hello from Livequery!'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result IS NOT NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.slack.post_message('C1234567890', {'text': 'Hello from Livequery!'})\n;$$ AS sql\n FROM test\n WHERE NOT result IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}, {"id": "model.livequery_models.slack__", "sql": " __dbt__cte__slack__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__slack_utils__slack_utils\nSELECT 'slack' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_message", "file_key_name": "models.slack__", "attached_node": "model.livequery_models.slack__"}, "test.livequery_models.test_slack__post_message_blocks.904b39bace": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'C1234567890', {\n 'text': 'Pipeline completed!',\n 'blocks': [\n {\n 'type': 'header',\n 'text': {\n 'type': 'plain_text',\n 'text': ':white_check_mark: Pipeline Success'\n }\n },\n {\n 'type': 'section',\n 'fields': [\n {'type': 'mrkdwn', 'text': '*Repository:*\\nFlipsideCrypto/my-repo'},\n {'type': 'mrkdwn', 'text': '*Duration:*\\n15m 30s'}\n ]\n }\n ]\n}\n", "assertions": ["result IS NOT NULL"], "column_name": "post_message", "model": "{{ get_where_subquery(ref('slack__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack", "name": "test_slack__post_message_blocks", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack__post_message_blocks.sql", "original_file_path": "models/deploy/marketplace/slack/slack__.yml", "unique_id": "test.livequery_models.test_slack__post_message_blocks.904b39bace", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack__post_message_blocks"], "alias": "post_message_blocks", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.6589794, "relation_name": "polygon.test_slack.post_message_blocks", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack__.yml/test_slack__post_message_blocks.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n), __dbt__cte__slack__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__slack_utils__slack_utils\nSELECT 'slack' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack.post_message' AS test_name\n ,['C1234567890', {\n 'text': 'Pipeline completed!',\n 'blocks': [\n {\n 'type': 'header',\n 'text': {\n 'type': 'plain_text',\n 'text': ':white_check_mark: Pipeline Success'\n }\n },\n {\n 'type': 'section',\n 'fields': [\n {'type': 'mrkdwn', 'text': '*Repository:*\\nFlipsideCrypto/my-repo'},\n {'type': 'mrkdwn', 'text': '*Duration:*\\n15m 30s'}\n ]\n }\n ]\n}] as parameters\n ,polygon.slack.post_message('C1234567890', {\n 'text': 'Pipeline completed!',\n 'blocks': [\n {\n 'type': 'header',\n 'text': {\n 'type': 'plain_text',\n 'text': ':white_check_mark: Pipeline Success'\n }\n },\n {\n 'type': 'section',\n 'fields': [\n {'type': 'mrkdwn', 'text': '*Repository:*\\nFlipsideCrypto/my-repo'},\n {'type': 'mrkdwn', 'text': '*Duration:*\\n15m 30s'}\n ]\n }\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result IS NOT NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.slack.post_message('C1234567890', {\n 'text': 'Pipeline completed!',\n 'blocks': [\n {\n 'type': 'header',\n 'text': {\n 'type': 'plain_text',\n 'text': ':white_check_mark: Pipeline Success'\n }\n },\n {\n 'type': 'section',\n 'fields': [\n {'type': 'mrkdwn', 'text': '*Repository:*\\nFlipsideCrypto/my-repo'},\n {'type': 'mrkdwn', 'text': '*Duration:*\\n15m 30s'}\n ]\n }\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}, {"id": "model.livequery_models.slack__", "sql": " __dbt__cte__slack__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__slack_utils__slack_utils\nSELECT 'slack' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_message", "file_key_name": "models.slack__", "attached_node": "model.livequery_models.slack__"}, "test.livequery_models.test_slack__post_reply_simple.a734331ab3": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'C1234567890', '1234567890.123456', {'text': 'Thread reply from Livequery!'}\n", "assertions": ["result IS NOT NULL"], "column_name": "post_reply", "model": "{{ get_where_subquery(ref('slack__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack", "name": "test_slack__post_reply_simple", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack__post_reply_simple.sql", "original_file_path": "models/deploy/marketplace/slack/slack__.yml", "unique_id": "test.livequery_models.test_slack__post_reply_simple.a734331ab3", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack__post_reply_simple"], "alias": "post_reply_simple", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.6653705, "relation_name": "polygon.test_slack.post_reply_simple", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack__.yml/test_slack__post_reply_simple.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n), __dbt__cte__slack__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__slack_utils__slack_utils\nSELECT 'slack' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack.post_reply' AS test_name\n ,['C1234567890', '1234567890.123456', {'text': 'Thread reply from Livequery!'}] as parameters\n ,polygon.slack.post_reply('C1234567890', '1234567890.123456', {'text': 'Thread reply from Livequery!'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result IS NOT NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.slack.post_reply('C1234567890', '1234567890.123456', {'text': 'Thread reply from Livequery!'})\n;$$ AS sql\n FROM test\n WHERE NOT result IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}, {"id": "model.livequery_models.slack__", "sql": " __dbt__cte__slack__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__slack_utils__slack_utils\nSELECT 'slack' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_reply", "file_key_name": "models.slack__", "attached_node": "model.livequery_models.slack__"}, "test.livequery_models.test_slack__webhook_send_complex_payload.5c2206d9c2": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://httpbin.org/post', {\n 'text': 'Complex test message',\n 'username': 'Test Bot',\n 'icon_emoji': ':test_tube:',\n 'blocks': [\n {\n 'type': 'header',\n 'text': {\n 'type': 'plain_text',\n 'text': '\ud83e\uddea Test Results'\n }\n },\n {\n 'type': 'section',\n 'text': {\n 'type': 'mrkdwn',\n 'text': '*All tests passed!* \u2705'\n }\n }\n ],\n 'attachments': [\n {\n 'color': '#36a64f',\n 'blocks': []\n }\n ]\n}\n", "assertions": ["result:status_code = 200", "result:data.json.text = 'Complex test message'", "result:data.json.username = 'Test Bot'", "result IS NOT NULL"], "column_name": "webhook_send", "model": "{{ get_where_subquery(ref('slack__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack", "name": "test_slack__webhook_send_complex_payload", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack__webhook_send_complex_payload.sql", "original_file_path": "models/deploy/marketplace/slack/slack__.yml", "unique_id": "test.livequery_models.test_slack__webhook_send_complex_payload.5c2206d9c2", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack__webhook_send_complex_payload"], "alias": "webhook_send_complex_payload", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.6711411, "relation_name": "polygon.test_slack.webhook_send_complex_payload", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack__.yml/test_slack__webhook_send_complex_payload.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n), __dbt__cte__slack__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__slack_utils__slack_utils\nSELECT 'slack' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack.webhook_send' AS test_name\n ,['https://httpbin.org/post', {\n 'text': 'Complex test message',\n 'username': 'Test Bot',\n 'icon_emoji': ':test_tube:',\n 'blocks': [\n {\n 'type': 'header',\n 'text': {\n 'type': 'plain_text',\n 'text': '\ud83e\uddea Test Results'\n }\n },\n {\n 'type': 'section',\n 'text': {\n 'type': 'mrkdwn',\n 'text': '*All tests passed!* \u2705'\n }\n }\n ],\n 'attachments': [\n {\n 'color': '#36a64f',\n 'blocks': []\n }\n ]\n}] as parameters\n ,polygon.slack.webhook_send('https://httpbin.org/post', {\n 'text': 'Complex test message',\n 'username': 'Test Bot',\n 'icon_emoji': ':test_tube:',\n 'blocks': [\n {\n 'type': 'header',\n 'text': {\n 'type': 'plain_text',\n 'text': '\ud83e\uddea Test Results'\n }\n },\n {\n 'type': 'section',\n 'text': {\n 'type': 'mrkdwn',\n 'text': '*All tests passed!* \u2705'\n }\n }\n ],\n 'attachments': [\n {\n 'color': '#36a64f',\n 'blocks': []\n }\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.slack.webhook_send('https://httpbin.org/post', {\n 'text': 'Complex test message',\n 'username': 'Test Bot',\n 'icon_emoji': ':test_tube:',\n 'blocks': [\n {\n 'type': 'header',\n 'text': {\n 'type': 'plain_text',\n 'text': '\ud83e\uddea Test Results'\n }\n },\n {\n 'type': 'section',\n 'text': {\n 'type': 'mrkdwn',\n 'text': '*All tests passed!* \u2705'\n }\n }\n ],\n 'attachments': [\n {\n 'color': '#36a64f',\n 'blocks': []\n }\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:data.json.text = 'Complex test message'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.slack.webhook_send('https://httpbin.org/post', {\n 'text': 'Complex test message',\n 'username': 'Test Bot',\n 'icon_emoji': ':test_tube:',\n 'blocks': [\n {\n 'type': 'header',\n 'text': {\n 'type': 'plain_text',\n 'text': '\ud83e\uddea Test Results'\n }\n },\n {\n 'type': 'section',\n 'text': {\n 'type': 'mrkdwn',\n 'text': '*All tests passed!* \u2705'\n }\n }\n ],\n 'attachments': [\n {\n 'color': '#36a64f',\n 'blocks': []\n }\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:data.json.text = 'Complex test message'\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:data.json.username = 'Test Bot'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.slack.webhook_send('https://httpbin.org/post', {\n 'text': 'Complex test message',\n 'username': 'Test Bot',\n 'icon_emoji': ':test_tube:',\n 'blocks': [\n {\n 'type': 'header',\n 'text': {\n 'type': 'plain_text',\n 'text': '\ud83e\uddea Test Results'\n }\n },\n {\n 'type': 'section',\n 'text': {\n 'type': 'mrkdwn',\n 'text': '*All tests passed!* \u2705'\n }\n }\n ],\n 'attachments': [\n {\n 'color': '#36a64f',\n 'blocks': []\n }\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:data.json.username = 'Test Bot'\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result IS NOT NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.slack.webhook_send('https://httpbin.org/post', {\n 'text': 'Complex test message',\n 'username': 'Test Bot',\n 'icon_emoji': ':test_tube:',\n 'blocks': [\n {\n 'type': 'header',\n 'text': {\n 'type': 'plain_text',\n 'text': '\ud83e\uddea Test Results'\n }\n },\n {\n 'type': 'section',\n 'text': {\n 'type': 'mrkdwn',\n 'text': '*All tests passed!* \u2705'\n }\n }\n ],\n 'attachments': [\n {\n 'color': '#36a64f',\n 'blocks': []\n }\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}, {"id": "model.livequery_models.slack__", "sql": " __dbt__cte__slack__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__slack_utils__slack_utils\nSELECT 'slack' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "webhook_send", "file_key_name": "models.slack__", "attached_node": "model.livequery_models.slack__"}, "test.livequery_models.test_slack_utils__post_webhook_httpbin.de5573cb7a": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'https://httpbin.org/post', {'text': 'Test message from Livequery'}\n", "assertions": ["result:status_code = 200", "result:data.json.text = 'Test message from Livequery'", "result IS NOT NULL"], "column_name": "post_webhook", "model": "{{ get_where_subquery(ref('slack_utils__slack_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack_utils", "name": "test_slack_utils__post_webhook_httpbin", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack_utils__post_webhook_httpbin.sql", "original_file_path": "models/deploy/marketplace/slack/slack_utils__slack_utils.yml", "unique_id": "test.livequery_models.test_slack_utils__post_webhook_httpbin.de5573cb7a", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack_utils__post_webhook_httpbin"], "alias": "post_webhook_httpbin", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.684299, "relation_name": "polygon.test_slack_utils.post_webhook_httpbin", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack_utils__slack_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack_utils__slack_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack_utils__slack_utils.yml/test_slack_utils__post_webhook_httpbin.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack_utils.post_webhook' AS test_name\n ,['https://httpbin.org/post', {'text': 'Test message from Livequery'}] as parameters\n ,polygon.slack_utils.post_webhook('https://httpbin.org/post', {'text': 'Test message from Livequery'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SELECT polygon.slack_utils.post_webhook('https://httpbin.org/post', {'text': 'Test message from Livequery'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:data.json.text = 'Test message from Livequery'$$ AS assertion,\n $$SELECT polygon.slack_utils.post_webhook('https://httpbin.org/post', {'text': 'Test message from Livequery'})\n;$$ AS sql\n FROM test\n WHERE NOT result:data.json.text = 'Test message from Livequery'\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result IS NOT NULL$$ AS assertion,\n $$SELECT polygon.slack_utils.post_webhook('https://httpbin.org/post', {'text': 'Test message from Livequery'})\n;$$ AS sql\n FROM test\n WHERE NOT result IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_webhook", "file_key_name": "models.slack_utils__slack_utils", "attached_node": "model.livequery_models.slack_utils__slack_utils"}, "test.livequery_models.test_slack_utils__post_webhook_invalid_url.aed389ddc9": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'https://httpbin.org/status/404', {'text': 'Test message'}\n", "assertions": ["result:status_code = 404", "result IS NOT NULL"], "column_name": "post_webhook", "model": "{{ get_where_subquery(ref('slack_utils__slack_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack_utils", "name": "test_slack_utils__post_webhook_invalid_url", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack_utils__post_webhook_invalid_url.sql", "original_file_path": "models/deploy/marketplace/slack/slack_utils__slack_utils.yml", "unique_id": "test.livequery_models.test_slack_utils__post_webhook_invalid_url.aed389ddc9", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack_utils__post_webhook_invalid_url"], "alias": "post_webhook_invalid_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.6950135, "relation_name": "polygon.test_slack_utils.post_webhook_invalid_url", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack_utils__slack_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack_utils__slack_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack_utils__slack_utils.yml/test_slack_utils__post_webhook_invalid_url.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack_utils.post_webhook' AS test_name\n ,['https://httpbin.org/status/404', {'text': 'Test message'}] as parameters\n ,polygon.slack_utils.post_webhook('https://httpbin.org/status/404', {'text': 'Test message'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 404$$ AS assertion,\n $$SELECT polygon.slack_utils.post_webhook('https://httpbin.org/status/404', {'text': 'Test message'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 404\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result IS NOT NULL$$ AS assertion,\n $$SELECT polygon.slack_utils.post_webhook('https://httpbin.org/status/404', {'text': 'Test message'})\n;$$ AS sql\n FROM test\n WHERE NOT result IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_webhook", "file_key_name": "models.slack_utils__slack_utils", "attached_node": "model.livequery_models.slack_utils__slack_utils"}, "test.livequery_models.test_slack_utils__post_webhook_null_payload.8b4db9f76e": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX', NULL\n", "assertions": ["result:ok = false", "result:error = 'payload is required'"], "column_name": "post_webhook", "model": "{{ get_where_subquery(ref('slack_utils__slack_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack_utils", "name": "test_slack_utils__post_webhook_null_payload", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack_utils__post_webhook_null_payload.sql", "original_file_path": "models/deploy/marketplace/slack/slack_utils__slack_utils.yml", "unique_id": "test.livequery_models.test_slack_utils__post_webhook_null_payload.8b4db9f76e", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack_utils__post_webhook_null_payload"], "alias": "post_webhook_null_payload", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.7006116, "relation_name": "polygon.test_slack_utils.post_webhook_null_payload", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack_utils__slack_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack_utils__slack_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack_utils__slack_utils.yml/test_slack_utils__post_webhook_null_payload.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack_utils.post_webhook' AS test_name\n ,['https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX', NULL] as parameters\n ,polygon.slack_utils.post_webhook('https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX', NULL) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:ok = false$$ AS assertion,\n $$SELECT polygon.slack_utils.post_webhook('https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX', NULL)\n;$$ AS sql\n FROM test\n WHERE NOT result:ok = false\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error = 'payload is required'$$ AS assertion,\n $$SELECT polygon.slack_utils.post_webhook('https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX', NULL)\n;$$ AS sql\n FROM test\n WHERE NOT result:error = 'payload is required'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_webhook", "file_key_name": "models.slack_utils__slack_utils", "attached_node": "model.livequery_models.slack_utils__slack_utils"}, "test.livequery_models.test_slack_utils__post_message_httpbin.faac84e2cd": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'C1234567890', {'text': 'Test message from Livequery'}\n", "assertions": ["result:status_code = 200", "result:data.json.text = 'Test message from Livequery'", "result IS NOT NULL"], "column_name": "post_message", "model": "{{ get_where_subquery(ref('slack_utils__slack_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack_utils", "name": "test_slack_utils__post_message_httpbin", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack_utils__post_message_httpbin.sql", "original_file_path": "models/deploy/marketplace/slack/slack_utils__slack_utils.yml", "unique_id": "test.livequery_models.test_slack_utils__post_message_httpbin.faac84e2cd", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack_utils__post_message_httpbin"], "alias": "post_message_httpbin", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.706221, "relation_name": "polygon.test_slack_utils.post_message_httpbin", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack_utils__slack_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack_utils__slack_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack_utils__slack_utils.yml/test_slack_utils__post_message_httpbin.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack_utils.post_message' AS test_name\n ,['C1234567890', {'text': 'Test message from Livequery'}] as parameters\n ,polygon.slack_utils.post_message('C1234567890', {'text': 'Test message from Livequery'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SELECT polygon.slack_utils.post_message('C1234567890', {'text': 'Test message from Livequery'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:data.json.text = 'Test message from Livequery'$$ AS assertion,\n $$SELECT polygon.slack_utils.post_message('C1234567890', {'text': 'Test message from Livequery'})\n;$$ AS sql\n FROM test\n WHERE NOT result:data.json.text = 'Test message from Livequery'\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result IS NOT NULL$$ AS assertion,\n $$SELECT polygon.slack_utils.post_message('C1234567890', {'text': 'Test message from Livequery'})\n;$$ AS sql\n FROM test\n WHERE NOT result IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_message", "file_key_name": "models.slack_utils__slack_utils", "attached_node": "model.livequery_models.slack_utils__slack_utils"}, "test.livequery_models.test_slack_utils__post_message_auth_error.ca1392a817": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'C1234567890', {'text': 'Test message'}\n", "assertions": ["result:status_code = 200", "result IS NOT NULL"], "column_name": "post_message", "model": "{{ get_where_subquery(ref('slack_utils__slack_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack_utils", "name": "test_slack_utils__post_message_auth_error", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack_utils__post_message_auth_error.sql", "original_file_path": "models/deploy/marketplace/slack/slack_utils__slack_utils.yml", "unique_id": "test.livequery_models.test_slack_utils__post_message_auth_error.ca1392a817", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack_utils__post_message_auth_error"], "alias": "post_message_auth_error", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.7113168, "relation_name": "polygon.test_slack_utils.post_message_auth_error", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack_utils__slack_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack_utils__slack_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack_utils__slack_utils.yml/test_slack_utils__post_message_auth_error.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack_utils.post_message' AS test_name\n ,['C1234567890', {'text': 'Test message'}] as parameters\n ,polygon.slack_utils.post_message('C1234567890', {'text': 'Test message'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SELECT polygon.slack_utils.post_message('C1234567890', {'text': 'Test message'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result IS NOT NULL$$ AS assertion,\n $$SELECT polygon.slack_utils.post_message('C1234567890', {'text': 'Test message'})\n;$$ AS sql\n FROM test\n WHERE NOT result IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_message", "file_key_name": "models.slack_utils__slack_utils", "attached_node": "model.livequery_models.slack_utils__slack_utils"}, "test.livequery_models.test_slack_utils__post_reply_httpbin.c787547840": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'C1234567890', '1234567890.123456', {'text': 'Test reply from Livequery'}\n", "assertions": ["result:status_code = 200", "result:data.json.text = 'Test reply from Livequery'", "result IS NOT NULL"], "column_name": "post_reply", "model": "{{ get_where_subquery(ref('slack_utils__slack_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack_utils", "name": "test_slack_utils__post_reply_httpbin", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack_utils__post_reply_httpbin.sql", "original_file_path": "models/deploy/marketplace/slack/slack_utils__slack_utils.yml", "unique_id": "test.livequery_models.test_slack_utils__post_reply_httpbin.c787547840", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack_utils__post_reply_httpbin"], "alias": "post_reply_httpbin", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.7163668, "relation_name": "polygon.test_slack_utils.post_reply_httpbin", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack_utils__slack_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack_utils__slack_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack_utils__slack_utils.yml/test_slack_utils__post_reply_httpbin.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack_utils.post_reply' AS test_name\n ,['C1234567890', '1234567890.123456', {'text': 'Test reply from Livequery'}] as parameters\n ,polygon.slack_utils.post_reply('C1234567890', '1234567890.123456', {'text': 'Test reply from Livequery'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SELECT polygon.slack_utils.post_reply('C1234567890', '1234567890.123456', {'text': 'Test reply from Livequery'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:data.json.text = 'Test reply from Livequery'$$ AS assertion,\n $$SELECT polygon.slack_utils.post_reply('C1234567890', '1234567890.123456', {'text': 'Test reply from Livequery'})\n;$$ AS sql\n FROM test\n WHERE NOT result:data.json.text = 'Test reply from Livequery'\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result IS NOT NULL$$ AS assertion,\n $$SELECT polygon.slack_utils.post_reply('C1234567890', '1234567890.123456', {'text': 'Test reply from Livequery'})\n;$$ AS sql\n FROM test\n WHERE NOT result IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_reply", "file_key_name": "models.slack_utils__slack_utils", "attached_node": "model.livequery_models.slack_utils__slack_utils"}, "test.livequery_models.test_slack_utils__validate_webhook_url_valid.6420f9435d": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX'\n", "assertions": ["result = true"], "column_name": "validate_webhook_url", "model": "{{ get_where_subquery(ref('slack_utils__slack_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack_utils", "name": "test_slack_utils__validate_webhook_url_valid", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack_utils__validate_webhook_url_valid.sql", "original_file_path": "models/deploy/marketplace/slack/slack_utils__slack_utils.yml", "unique_id": "test.livequery_models.test_slack_utils__validate_webhook_url_valid.6420f9435d", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack_utils__validate_webhook_url_valid"], "alias": "validate_webhook_url_valid", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.7216203, "relation_name": "polygon.test_slack_utils.validate_webhook_url_valid", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack_utils__slack_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack_utils__slack_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack_utils__slack_utils.yml/test_slack_utils__validate_webhook_url_valid.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack_utils.validate_webhook_url' AS test_name\n ,['https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX'] as parameters\n ,polygon.slack_utils.validate_webhook_url('https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = true$$ AS assertion,\n $$SELECT polygon.slack_utils.validate_webhook_url('https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX')\n;$$ AS sql\n FROM test\n WHERE NOT result = true\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "validate_webhook_url", "file_key_name": "models.slack_utils__slack_utils", "attached_node": "model.livequery_models.slack_utils__slack_utils"}, "test.livequery_models.test_slack_utils__validate_webhook_url_invalid.3576e28c54": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'https://invalid-url.com/webhook'\n", "assertions": ["result = false"], "column_name": "validate_webhook_url", "model": "{{ get_where_subquery(ref('slack_utils__slack_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack_utils", "name": "test_slack_utils__validate_webhook_url_invalid", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack_utils__validate_webhook_url_invalid.sql", "original_file_path": "models/deploy/marketplace/slack/slack_utils__slack_utils.yml", "unique_id": "test.livequery_models.test_slack_utils__validate_webhook_url_invalid.3576e28c54", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack_utils__validate_webhook_url_invalid"], "alias": "validate_webhook_url_invalid", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.727222, "relation_name": "polygon.test_slack_utils.validate_webhook_url_invalid", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack_utils__slack_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack_utils__slack_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack_utils__slack_utils.yml/test_slack_utils__validate_webhook_url_invalid.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack_utils.validate_webhook_url' AS test_name\n ,['https://invalid-url.com/webhook'] as parameters\n ,polygon.slack_utils.validate_webhook_url('https://invalid-url.com/webhook') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = false$$ AS assertion,\n $$SELECT polygon.slack_utils.validate_webhook_url('https://invalid-url.com/webhook')\n;$$ AS sql\n FROM test\n WHERE NOT result = false\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "validate_webhook_url", "file_key_name": "models.slack_utils__slack_utils", "attached_node": "model.livequery_models.slack_utils__slack_utils"}, "test.livequery_models.test_slack_utils__validate_channel_id.3c2bddfcc4": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'C1234567890'\n", "assertions": ["result = true"], "column_name": "validate_channel", "model": "{{ get_where_subquery(ref('slack_utils__slack_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack_utils", "name": "test_slack_utils__validate_channel_id", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack_utils__validate_channel_id.sql", "original_file_path": "models/deploy/marketplace/slack/slack_utils__slack_utils.yml", "unique_id": "test.livequery_models.test_slack_utils__validate_channel_id.3c2bddfcc4", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack_utils__validate_channel_id"], "alias": "validate_channel_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.7326467, "relation_name": "polygon.test_slack_utils.validate_channel_id", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack_utils__slack_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack_utils__slack_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack_utils__slack_utils.yml/test_slack_utils__validate_channel_id.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack_utils.validate_channel' AS test_name\n ,['C1234567890'] as parameters\n ,polygon.slack_utils.validate_channel('C1234567890') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = true$$ AS assertion,\n $$SELECT polygon.slack_utils.validate_channel('C1234567890')\n;$$ AS sql\n FROM test\n WHERE NOT result = true\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "validate_channel", "file_key_name": "models.slack_utils__slack_utils", "attached_node": "model.livequery_models.slack_utils__slack_utils"}, "test.livequery_models.test_slack_utils__validate_channel_name.ee330f32dc": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'#general'\n", "assertions": ["result = false"], "column_name": "validate_channel", "model": "{{ get_where_subquery(ref('slack_utils__slack_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack_utils", "name": "test_slack_utils__validate_channel_name", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack_utils__validate_channel_name.sql", "original_file_path": "models/deploy/marketplace/slack/slack_utils__slack_utils.yml", "unique_id": "test.livequery_models.test_slack_utils__validate_channel_name.ee330f32dc", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack_utils__validate_channel_name"], "alias": "validate_channel_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.7376852, "relation_name": "polygon.test_slack_utils.validate_channel_name", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack_utils__slack_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack_utils__slack_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack_utils__slack_utils.yml/test_slack_utils__validate_channel_name.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack_utils.validate_channel' AS test_name\n ,['#general'] as parameters\n ,polygon.slack_utils.validate_channel('#general') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = false$$ AS assertion,\n $$SELECT polygon.slack_utils.validate_channel('#general')\n;$$ AS sql\n FROM test\n WHERE NOT result = false\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "validate_channel", "file_key_name": "models.slack_utils__slack_utils", "attached_node": "model.livequery_models.slack_utils__slack_utils"}, "test.livequery_models.test_slack_utils__validate_channel_dm.e73977329f": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'D1234567890'\n", "assertions": ["result = true"], "column_name": "validate_channel", "model": "{{ get_where_subquery(ref('slack_utils__slack_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack_utils", "name": "test_slack_utils__validate_channel_dm", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack_utils__validate_channel_dm.sql", "original_file_path": "models/deploy/marketplace/slack/slack_utils__slack_utils.yml", "unique_id": "test.livequery_models.test_slack_utils__validate_channel_dm.e73977329f", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack_utils__validate_channel_dm"], "alias": "validate_channel_dm", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.7425363, "relation_name": "polygon.test_slack_utils.validate_channel_dm", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack_utils__slack_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack_utils__slack_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack_utils__slack_utils.yml/test_slack_utils__validate_channel_dm.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack_utils.validate_channel' AS test_name\n ,['D1234567890'] as parameters\n ,polygon.slack_utils.validate_channel('D1234567890') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = true$$ AS assertion,\n $$SELECT polygon.slack_utils.validate_channel('D1234567890')\n;$$ AS sql\n FROM test\n WHERE NOT result = true\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "validate_channel", "file_key_name": "models.slack_utils__slack_utils", "attached_node": "model.livequery_models.slack_utils__slack_utils"}, "test.livequery_models.test_slack_utils__validate_channel_group.481cbe7e68": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'G1234567890'\n", "assertions": ["result = true"], "column_name": "validate_channel", "model": "{{ get_where_subquery(ref('slack_utils__slack_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack_utils", "name": "test_slack_utils__validate_channel_group", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack_utils__validate_channel_group.sql", "original_file_path": "models/deploy/marketplace/slack/slack_utils__slack_utils.yml", "unique_id": "test.livequery_models.test_slack_utils__validate_channel_group.481cbe7e68", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack_utils__validate_channel_group"], "alias": "validate_channel_group", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.747564, "relation_name": "polygon.test_slack_utils.validate_channel_group", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack_utils__slack_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack_utils__slack_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack_utils__slack_utils.yml/test_slack_utils__validate_channel_group.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack_utils.validate_channel' AS test_name\n ,['G1234567890'] as parameters\n ,polygon.slack_utils.validate_channel('G1234567890') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = true$$ AS assertion,\n $$SELECT polygon.slack_utils.validate_channel('G1234567890')\n;$$ AS sql\n FROM test\n WHERE NOT result = true\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "validate_channel", "file_key_name": "models.slack_utils__slack_utils", "attached_node": "model.livequery_models.slack_utils__slack_utils"}, "test.livequery_models.test_slack_utils__validate_channel_invalid.2df37ed1b8": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'invalid-channel'\n", "assertions": ["result = false"], "column_name": "validate_channel", "model": "{{ get_where_subquery(ref('slack_utils__slack_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack_utils", "name": "test_slack_utils__validate_channel_invalid", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack_utils__validate_channel_invalid.sql", "original_file_path": "models/deploy/marketplace/slack/slack_utils__slack_utils.yml", "unique_id": "test.livequery_models.test_slack_utils__validate_channel_invalid.2df37ed1b8", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack_utils__validate_channel_invalid"], "alias": "validate_channel_invalid", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.752579, "relation_name": "polygon.test_slack_utils.validate_channel_invalid", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack_utils__slack_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack_utils__slack_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack_utils__slack_utils.yml/test_slack_utils__validate_channel_invalid.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack_utils.validate_channel' AS test_name\n ,['invalid-channel'] as parameters\n ,polygon.slack_utils.validate_channel('invalid-channel') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = false$$ AS assertion,\n $$SELECT polygon.slack_utils.validate_channel('invalid-channel')\n;$$ AS sql\n FROM test\n WHERE NOT result = false\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "validate_channel", "file_key_name": "models.slack_utils__slack_utils", "attached_node": "model.livequery_models.slack_utils__slack_utils"}, "test.livequery_models.test_slack_utils__validate_channel_null.23eeea530c": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "NULL\n", "assertions": ["result = false"], "column_name": "validate_channel", "model": "{{ get_where_subquery(ref('slack_utils__slack_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack_utils", "name": "test_slack_utils__validate_channel_null", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack_utils__validate_channel_null.sql", "original_file_path": "models/deploy/marketplace/slack/slack_utils__slack_utils.yml", "unique_id": "test.livequery_models.test_slack_utils__validate_channel_null.23eeea530c", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack_utils__validate_channel_null"], "alias": "validate_channel_null", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.7574306, "relation_name": "polygon.test_slack_utils.validate_channel_null", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack_utils__slack_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack_utils__slack_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack_utils__slack_utils.yml/test_slack_utils__validate_channel_null.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack_utils.validate_channel' AS test_name\n ,[NULL] as parameters\n ,polygon.slack_utils.validate_channel(NULL) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = false$$ AS assertion,\n $$SELECT polygon.slack_utils.validate_channel(NULL)\n;$$ AS sql\n FROM test\n WHERE NOT result = false\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "validate_channel", "file_key_name": "models.slack_utils__slack_utils", "attached_node": "model.livequery_models.slack_utils__slack_utils"}, "test.livequery_models.test_slack_utils__validate_channel_empty.7935ed3012": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "''\n", "assertions": ["result = false"], "column_name": "validate_channel", "model": "{{ get_where_subquery(ref('slack_utils__slack_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_slack_utils", "name": "test_slack_utils__validate_channel_empty", "resource_type": "test", "package_name": "livequery_models", "path": "test_slack_utils__validate_channel_empty.sql", "original_file_path": "models/deploy/marketplace/slack/slack_utils__slack_utils.yml", "unique_id": "test.livequery_models.test_slack_utils__validate_channel_empty.7935ed3012", "fqn": ["livequery_models", "deploy", "marketplace", "slack", "test_slack_utils__validate_channel_empty"], "alias": "validate_channel_empty", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.763097, "relation_name": "polygon.test_slack_utils.validate_channel_empty", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "slack_utils__slack_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.slack_utils__slack_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/slack/slack_utils__slack_utils.yml/test_slack_utils__validate_channel_empty.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'slack_utils.validate_channel' AS test_name\n ,[''] as parameters\n ,polygon.slack_utils.validate_channel('') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = false$$ AS assertion,\n $$SELECT polygon.slack_utils.validate_channel('')\n;$$ AS sql\n FROM test\n WHERE NOT result = false\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.slack_utils__slack_utils", "sql": " __dbt__cte__slack_utils__slack_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'slack_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "validate_channel", "file_key_name": "models.slack_utils__slack_utils", "attached_node": "model.livequery_models.slack_utils__slack_utils"}, "test.livequery_models.test_dapplooker__get_chart_status_202.4fedf28822": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'a68cc6dd-1bc1-40ca-aaf8-b5155785f0b4'\n", "assertions": ["result:status_code between 200 and 299"], "column_name": "get_chart", "model": "{{ get_where_subquery(ref('dapplooker__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_dapplooker", "name": "test_dapplooker__get_chart_status_202", "resource_type": "test", "package_name": "livequery_models", "path": "test_dapplooker__get_chart_status_202.sql", "original_file_path": "models/deploy/marketplace/dapplooker/dapplooker__.yml", "unique_id": "test.livequery_models.test_dapplooker__get_chart_status_202.4fedf28822", "fqn": ["livequery_models", "deploy", "marketplace", "dapplooker", "test_dapplooker__get_chart_status_202"], "alias": "get_chart_status_202", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.769207, "relation_name": "polygon.test_dapplooker.get_chart_status_202", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "dapplooker__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.dapplooker__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/dapplooker/dapplooker__.yml/test_dapplooker__get_chart_status_202.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__dapplooker__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'dapplooker' as schema_\n) ,\ntest AS\n(\n SELECT\n 'dapplooker.get_chart' AS test_name\n ,['a68cc6dd-1bc1-40ca-aaf8-b5155785f0b4'] as parameters\n ,polygon.dapplooker.get_chart('a68cc6dd-1bc1-40ca-aaf8-b5155785f0b4') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code between 200 and 299$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.dapplooker.get_chart('a68cc6dd-1bc1-40ca-aaf8-b5155785f0b4')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code between 200 and 299\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.dapplooker__", "sql": " __dbt__cte__dapplooker__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'dapplooker' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_chart", "file_key_name": "models.dapplooker__", "attached_node": "model.livequery_models.dapplooker__"}, "test.livequery_models.test_claude__post_messages_only_one_message.ff8a12fc1b": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[{'role': 'user', 'content': 'Hello, how are you?'}]\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "post_messages", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_claude", "name": "test_claude__post_messages_only_one_message", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__post_messages_only_one_message.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__post_messages_only_one_message.ff8a12fc1b", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__post_messages_only_one_message"], "alias": "post_messages_only_one_message", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.7800262, "relation_name": "polygon.test_claude.post_messages_only_one_message", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__post_messages_only_one_message.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__claude_utils__claude_utils\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'claude.post_messages' AS test_name\n ,[[{'role': 'user', 'content': 'Hello, how are you?'}]] as parameters\n ,polygon.claude.post_messages([{'role': 'user', 'content': 'Hello, how are you?'}]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude.post_messages([{'role': 'user', 'content': 'Hello, how are you?'}])\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude.post_messages([{'role': 'user', 'content': 'Hello, how are you?'}])\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude_utils__claude_utils", "sql": " __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__claude_utils__claude_utils\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_messages", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude__post_messages_with_model.7b5774fbf2": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}], 1024\n", "assertions": ["result:status_code = 200"], "column_name": "post_messages", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_claude", "name": "test_claude__post_messages_with_model", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__post_messages_with_model.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__post_messages_with_model.7b5774fbf2", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__post_messages_with_model"], "alias": "post_messages_with_model", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.7862236, "relation_name": "polygon.test_claude.post_messages_with_model", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__post_messages_with_model.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__claude_utils__claude_utils\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'claude.post_messages' AS test_name\n ,['claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}], 1024] as parameters\n ,polygon.claude.post_messages('claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}], 1024) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude.post_messages('claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}], 1024)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude_utils__claude_utils", "sql": " __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__claude_utils__claude_utils\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_messages", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude__post_messages_with_all_params.0917a032d2": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}], 1024, 0.5, 10, 0.95, 'You are a helpful assistant.'\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "post_messages", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_claude", "name": "test_claude__post_messages_with_all_params", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__post_messages_with_all_params.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__post_messages_with_all_params.0917a032d2", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__post_messages_with_all_params"], "alias": "post_messages_with_all_params", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.7919927, "relation_name": "polygon.test_claude.post_messages_with_all_params", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__post_messages_with_all_params.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__claude_utils__claude_utils\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'claude.post_messages' AS test_name\n ,['claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}], 1024, 0.5, 10, 0.95, 'You are a helpful assistant.'] as parameters\n ,polygon.claude.post_messages('claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}], 1024, 0.5, 10, 0.95, 'You are a helpful assistant.') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude.post_messages('claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}], 1024, 0.5, 10, 0.95, 'You are a helpful assistant.')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude.post_messages('claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}], 1024, 0.5, 10, 0.95, 'You are a helpful assistant.')\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude_utils__claude_utils", "sql": " __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__claude_utils__claude_utils\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_messages", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude__count_message_tokens.f5bafb2bce": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}]\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "count_message_tokens", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_claude", "name": "test_claude__count_message_tokens", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__count_message_tokens.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__count_message_tokens.f5bafb2bce", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__count_message_tokens"], "alias": "count_message_tokens", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.798087, "relation_name": "polygon.test_claude.count_message_tokens", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__count_message_tokens.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__claude_utils__claude_utils\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'claude.count_message_tokens' AS test_name\n ,['claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}]] as parameters\n ,polygon.claude.count_message_tokens('claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude.count_message_tokens('claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}])\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude.count_message_tokens('claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}])\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude_utils__claude_utils", "sql": " __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__claude_utils__claude_utils\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "count_message_tokens", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude__list_models.8516d777c7": {"test_metadata": {"name": "test_udf", "kwargs": {"assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "list_models", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_claude", "name": "test_claude__list_models", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__list_models.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__list_models.8516d777c7", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__list_models"], "alias": "list_models", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.8044074, "relation_name": "polygon.test_claude.list_models", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__list_models.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__claude_utils__claude_utils\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'claude.list_models' AS test_name\n ,[] as parameters\n ,polygon.claude.list_models() AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude.list_models()\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude.list_models()\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude_utils__claude_utils", "sql": " __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__claude_utils__claude_utils\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "list_models", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude__get_model.1f65c29a92": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'claude-3-5-sonnet-20241022'\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_model", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_claude", "name": "test_claude__get_model", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__get_model.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__get_model.1f65c29a92", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__get_model"], "alias": "get_model", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.8103287, "relation_name": "polygon.test_claude.get_model", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__get_model.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__claude_utils__claude_utils\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'claude.get_model' AS test_name\n ,['claude-3-5-sonnet-20241022'] as parameters\n ,polygon.claude.get_model('claude-3-5-sonnet-20241022') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude.get_model('claude-3-5-sonnet-20241022')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude.get_model('claude-3-5-sonnet-20241022')\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude_utils__claude_utils", "sql": " __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__claude_utils__claude_utils\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_model", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude__post_messages_batch.63bf2a363f": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'requests': [\n {\n 'custom_id': 'test_1',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 100,\n 'messages': [{'role': 'user', 'content': 'Say hello'}]\n }\n },\n {\n 'custom_id': 'test_2',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 100,\n 'messages': [{'role': 'user', 'content': 'Say goodbye'}]\n }\n }\n ]\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL", "result:data:id IS NOT NULL", "result:data:type = 'message_batch'"], "column_name": "post_messages_batch", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_claude", "name": "test_claude__post_messages_batch", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__post_messages_batch.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__post_messages_batch.63bf2a363f", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__post_messages_batch"], "alias": "post_messages_batch", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.8163888, "relation_name": "polygon.test_claude.post_messages_batch", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__post_messages_batch.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__claude_utils__claude_utils\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'claude.post_messages_batch' AS test_name\n ,[{\n 'requests': [\n {\n 'custom_id': 'test_1',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 100,\n 'messages': [{'role': 'user', 'content': 'Say hello'}]\n }\n },\n {\n 'custom_id': 'test_2',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 100,\n 'messages': [{'role': 'user', 'content': 'Say goodbye'}]\n }\n }\n ]\n}] as parameters\n ,polygon.claude.post_messages_batch({\n 'requests': [\n {\n 'custom_id': 'test_1',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 100,\n 'messages': [{'role': 'user', 'content': 'Say hello'}]\n }\n },\n {\n 'custom_id': 'test_2',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 100,\n 'messages': [{'role': 'user', 'content': 'Say goodbye'}]\n }\n }\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude.post_messages_batch({\n 'requests': [\n {\n 'custom_id': 'test_1',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 100,\n 'messages': [{'role': 'user', 'content': 'Say hello'}]\n }\n },\n {\n 'custom_id': 'test_2',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 100,\n 'messages': [{'role': 'user', 'content': 'Say goodbye'}]\n }\n }\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude.post_messages_batch({\n 'requests': [\n {\n 'custom_id': 'test_1',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 100,\n 'messages': [{'role': 'user', 'content': 'Say hello'}]\n }\n },\n {\n 'custom_id': 'test_2',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 100,\n 'messages': [{'role': 'user', 'content': 'Say goodbye'}]\n }\n }\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:data:id IS NOT NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude.post_messages_batch({\n 'requests': [\n {\n 'custom_id': 'test_1',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 100,\n 'messages': [{'role': 'user', 'content': 'Say hello'}]\n }\n },\n {\n 'custom_id': 'test_2',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 100,\n 'messages': [{'role': 'user', 'content': 'Say goodbye'}]\n }\n }\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:data:id IS NOT NULL\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:data:type = 'message_batch'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude.post_messages_batch({\n 'requests': [\n {\n 'custom_id': 'test_1',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 100,\n 'messages': [{'role': 'user', 'content': 'Say hello'}]\n }\n },\n {\n 'custom_id': 'test_2',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 100,\n 'messages': [{'role': 'user', 'content': 'Say goodbye'}]\n }\n }\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:data:type = 'message_batch'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude_utils__claude_utils", "sql": " __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__claude_utils__claude_utils\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_messages_batch", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude__list_message_batches.df27ad85b6": {"test_metadata": {"name": "test_udf", "kwargs": {"assertions": ["result:status_code = 200", "result:error IS NULL", "result:data IS NOT NULL"], "column_name": "list_message_batches", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_claude", "name": "test_claude__list_message_batches", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__list_message_batches.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__list_message_batches.df27ad85b6", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__list_message_batches"], "alias": "list_message_batches", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.8246002, "relation_name": "polygon.test_claude.list_message_batches", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__list_message_batches.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__claude_utils__claude_utils\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'claude.list_message_batches' AS test_name\n ,[] as parameters\n ,polygon.claude.list_message_batches() AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude.list_message_batches()\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude.list_message_batches()\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:data IS NOT NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude.list_message_batches()\n;$$ AS sql\n FROM test\n WHERE NOT result:data IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude_utils__claude_utils", "sql": " __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__claude_utils__claude_utils\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "list_message_batches", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude_utils__post_api_status_200.fe926b326c": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v1/messages' , {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'Hello, how are you?'}]\n }\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "post_api", "model": "{{ get_where_subquery(ref('claude_utils__claude_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_claude_utils", "name": "test_claude_utils__post_api_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude_utils__post_api_status_200.sql", "original_file_path": "models/deploy/marketplace/claude/claude_utils__claude_utils.yml", "unique_id": "test.livequery_models.test_claude_utils__post_api_status_200.fe926b326c", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude_utils__post_api_status_200"], "alias": "post_api_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.8547907, "relation_name": "polygon.test_claude_utils.post_api_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude_utils__claude_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude_utils__claude_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude_utils__claude_utils.yml/test_claude_utils__post_api_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'claude_utils.post_api' AS test_name\n ,['/v1/messages' , {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'Hello, how are you?'}]\n }] as parameters\n ,polygon.claude_utils.post_api('/v1/messages' , {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'Hello, how are you?'}]\n }) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude_utils.post_api('/v1/messages' , {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'Hello, how are you?'}]\n })\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.claude_utils.post_api('/v1/messages' , {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'Hello, how are you?'}]\n })\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude_utils__claude_utils", "sql": " __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_api", "file_key_name": "models.claude_utils__claude_utils", "attached_node": "model.livequery_models.claude_utils__claude_utils"}, "test.livequery_models.test_strangelove__get_status_200.0a58865924": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://api.strange.love/cosmoshub/mainnet/rpc/block_by_hash' , {\n 'blockHash': '0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('strangelove__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_strangelove", "name": "test_strangelove__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_strangelove__get_status_200.sql", "original_file_path": "models/deploy/marketplace/strangelove/strangelove__.yml", "unique_id": "test.livequery_models.test_strangelove__get_status_200.0a58865924", "fqn": ["livequery_models", "deploy", "marketplace", "strangelove", "test_strangelove__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.8619447, "relation_name": "polygon.test_strangelove.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "strangelove__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.strangelove__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/strangelove/strangelove__.yml/test_strangelove__get_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__strangelove__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'strangelove' as schema_\n) ,\ntest AS\n(\n SELECT\n 'strangelove.get' AS test_name\n ,['https://api.strange.love/cosmoshub/mainnet/rpc/block_by_hash' , {\n 'blockHash': '0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED'\n}] as parameters\n ,polygon.strangelove.get('https://api.strange.love/cosmoshub/mainnet/rpc/block_by_hash' , {\n 'blockHash': '0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.strangelove.get('https://api.strange.love/cosmoshub/mainnet/rpc/block_by_hash' , {\n 'blockHash': '0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.strangelove.get('https://api.strange.love/cosmoshub/mainnet/rpc/block_by_hash' , {\n 'blockHash': '0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.strangelove__", "sql": " __dbt__cte__strangelove__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'strangelove' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.strangelove__", "attached_node": "model.livequery_models.strangelove__"}, "test.livequery_models.test_fred__get_series_status_200.51822e30ca": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'series_id': 'CORESTICKM679SFRBATL',\n 'file_type': 'json'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_series", "model": "{{ get_where_subquery(ref('fred__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_fred", "name": "test_fred__get_series_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_fred__get_series_status_200.sql", "original_file_path": "models/deploy/marketplace/fred/fred__.yml", "unique_id": "test.livequery_models.test_fred__get_series_status_200.51822e30ca", "fqn": ["livequery_models", "deploy", "marketplace", "fred", "test_fred__get_series_status_200"], "alias": "get_series_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.8699627, "relation_name": "polygon.test_fred.get_series_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "fred__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.fred__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/fred/fred__.yml/test_fred__get_series_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__fred__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'fred' as schema_\n) ,\ntest AS\n(\n SELECT\n 'fred.get_series' AS test_name\n ,[{\n 'series_id': 'CORESTICKM679SFRBATL',\n 'file_type': 'json'\n}] as parameters\n ,polygon.fred.get_series({\n 'series_id': 'CORESTICKM679SFRBATL',\n 'file_type': 'json'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.fred.get_series({\n 'series_id': 'CORESTICKM679SFRBATL',\n 'file_type': 'json'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.fred.get_series({\n 'series_id': 'CORESTICKM679SFRBATL',\n 'file_type': 'json'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.fred__", "sql": " __dbt__cte__fred__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'fred' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_series", "file_key_name": "models.fred__", "attached_node": "model.livequery_models.fred__"}, "test.livequery_models.test_espn__get_status_200.b4f84cc829": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard' , {}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('espn__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_espn", "name": "test_espn__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_espn__get_status_200.sql", "original_file_path": "models/deploy/marketplace/espn/espn__.yml", "unique_id": "test.livequery_models.test_espn__get_status_200.b4f84cc829", "fqn": ["livequery_models", "deploy", "marketplace", "espn", "test_espn__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.8769205, "relation_name": "polygon.test_espn.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "espn__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.espn__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/espn/espn__.yml/test_espn__get_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__espn__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'espn' as schema_\n) ,\ntest AS\n(\n SELECT\n 'espn.get' AS test_name\n ,['http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard' , {}] as parameters\n ,polygon.espn.get('http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard' , {}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.espn.get('http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.espn.get('http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.espn__", "sql": " __dbt__cte__espn__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'espn' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.espn__", "attached_node": "model.livequery_models.espn__"}, "test.livequery_models.test_solscan_public_api_get__get_status_200.388381be71": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/chaininfo' , {}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "public_api_get", "model": "{{ get_where_subquery(ref('solscan__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_solscan_public_api_get", "name": "test_solscan_public_api_get__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_solscan_public_api_get__get_status_200.sql", "original_file_path": "models/deploy/marketplace/solscan/solscan__.yml", "unique_id": "test.livequery_models.test_solscan_public_api_get__get_status_200.388381be71", "fqn": ["livequery_models", "deploy", "marketplace", "solscan", "test_solscan_public_api_get__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.8842618, "relation_name": "polygon.test_solscan_public_api_get.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "solscan__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.solscan__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/solscan/solscan__.yml/test_solscan_public_api_get__get_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__solscan__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'solscan' as schema_\n) ,\ntest AS\n(\n SELECT\n 'solscan.public_api_get' AS test_name\n ,['/chaininfo' , {}] as parameters\n ,polygon.solscan.public_api_get('/chaininfo' , {}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.solscan.public_api_get('/chaininfo' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.solscan.public_api_get('/chaininfo' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.solscan__", "sql": " __dbt__cte__solscan__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'solscan' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "public_api_get", "file_key_name": "models.solscan__", "attached_node": "model.livequery_models.solscan__"}, "test.livequery_models.test_dappradar__get_status_200.979ea475dc": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v2/defi/chains' , {}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('dappradar__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_dappradar", "name": "test_dappradar__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_dappradar__get_status_200.sql", "original_file_path": "models/deploy/marketplace/dappradar/dappradar__.yml", "unique_id": "test.livequery_models.test_dappradar__get_status_200.979ea475dc", "fqn": ["livequery_models", "deploy", "marketplace", "dappradar", "test_dappradar__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.8909864, "relation_name": "polygon.test_dappradar.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "dappradar__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.dappradar__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/dappradar/dappradar__.yml/test_dappradar__get_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__dappradar__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'dappradar' as schema_\n) ,\ntest AS\n(\n SELECT\n 'dappradar.get' AS test_name\n ,['/v2/defi/chains' , {}] as parameters\n ,polygon.dappradar.get('/v2/defi/chains' , {}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.dappradar.get('/v2/defi/chains' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.dappradar.get('/v2/defi/chains' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.dappradar__", "sql": " __dbt__cte__dappradar__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'dappradar' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.dappradar__", "attached_node": "model.livequery_models.dappradar__"}, "test.livequery_models.test_covalent__get_status_200.bb43bb7f69": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v1/1/block_v2/5000000/' , {}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('covalent__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_covalent", "name": "test_covalent__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_covalent__get_status_200.sql", "original_file_path": "models/deploy/marketplace/covalent/covalent__.yml", "unique_id": "test.livequery_models.test_covalent__get_status_200.bb43bb7f69", "fqn": ["livequery_models", "deploy", "marketplace", "covalent", "test_covalent__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.8979392, "relation_name": "polygon.test_covalent.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "covalent__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.covalent__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/covalent/covalent__.yml/test_covalent__get_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__covalent__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'covalent' as schema_\n) ,\ntest AS\n(\n SELECT\n 'covalent.get' AS test_name\n ,['/v1/1/block_v2/5000000/' , {}] as parameters\n ,polygon.covalent.get('/v1/1/block_v2/5000000/' , {}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.covalent.get('/v1/1/block_v2/5000000/' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.covalent.get('/v1/1/block_v2/5000000/' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.covalent__", "sql": " __dbt__cte__covalent__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'covalent' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.covalent__", "attached_node": "model.livequery_models.covalent__"}, "test.livequery_models.test_deepnftvalue__get_status_200.49fba544bb": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v1/collections' , {'limit': 5}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('deepnftvalue__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_deepnftvalue", "name": "test_deepnftvalue__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_deepnftvalue__get_status_200.sql", "original_file_path": "models/deploy/marketplace/deepnftvalue/deepnftvalue__.yml", "unique_id": "test.livequery_models.test_deepnftvalue__get_status_200.49fba544bb", "fqn": ["livequery_models", "deploy", "marketplace", "deepnftvalue", "test_deepnftvalue__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.9049864, "relation_name": "polygon.test_deepnftvalue.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "deepnftvalue__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.deepnftvalue__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/deepnftvalue/deepnftvalue__.yml/test_deepnftvalue__get_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__deepnftvalue__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'deepnftvalue' as schema_\n) ,\ntest AS\n(\n SELECT\n 'deepnftvalue.get' AS test_name\n ,['/v1/collections' , {'limit': 5}] as parameters\n ,polygon.deepnftvalue.get('/v1/collections' , {'limit': 5}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.deepnftvalue.get('/v1/collections' , {'limit': 5})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.deepnftvalue.get('/v1/collections' , {'limit': 5})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.deepnftvalue__", "sql": " __dbt__cte__deepnftvalue__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'deepnftvalue' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.deepnftvalue__", "attached_node": "model.livequery_models.deepnftvalue__"}, "test.livequery_models.test_github_utils__octocat_status_200.7a9c72f57f": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"assertions": ["result:status_code = 200", "result:error IS NULL", "result:data IS NOT NULL"], "column_name": "octocat", "model": "{{ get_where_subquery(ref('github_utils__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_utils", "name": "test_github_utils__octocat_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_utils__octocat_status_200.sql", "original_file_path": "models/deploy/marketplace/github/github_utils__github_utils.yml", "unique_id": "test.livequery_models.test_github_utils__octocat_status_200.7a9c72f57f", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_utils__octocat_status_200"], "alias": "octocat_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.913208, "relation_name": "polygon.test_github_utils.octocat_status_200", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_utils__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_utils__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_utils__github_utils.yml/test_github_utils__octocat_status_200.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'github_utils.octocat' AS test_name\n ,[] as parameters\n ,polygon.github_utils.octocat() AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SELECT polygon.github_utils.octocat()\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SELECT polygon.github_utils.octocat()\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:data IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_utils.octocat()\n;$$ AS sql\n FROM test\n WHERE NOT result:data IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "octocat", "file_key_name": "models.github_utils__github_utils", "attached_node": "model.livequery_models.github_utils__github_utils"}, "test.livequery_models.test_github_utils__headers_format.bf75978db7": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"assertions": ["result IS NOT NULL", "LENGTH(result) > 50", "CONTAINS(result, 'Authorization')", "CONTAINS(result, 'X-GitHub-Api-Version')", "CONTAINS(result, 'Accept')"], "column_name": "headers", "model": "{{ get_where_subquery(ref('github_utils__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_utils", "name": "test_github_utils__headers_format", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_utils__headers_format.sql", "original_file_path": "models/deploy/marketplace/github/github_utils__github_utils.yml", "unique_id": "test.livequery_models.test_github_utils__headers_format.bf75978db7", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_utils__headers_format"], "alias": "headers_format", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.91792, "relation_name": "polygon.test_github_utils.headers_format", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_utils__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_utils__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_utils__github_utils.yml/test_github_utils__headers_format.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'github_utils.headers' AS test_name\n ,[] as parameters\n ,polygon.github_utils.headers() AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_utils.headers()\n;$$ AS sql\n FROM test\n WHERE NOT result IS NOT NULL\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$LENGTH(result) > 50$$ AS assertion,\n $$SELECT polygon.github_utils.headers()\n;$$ AS sql\n FROM test\n WHERE NOT LENGTH(result) > 50\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CONTAINS(result, 'Authorization')$$ AS assertion,\n $$SELECT polygon.github_utils.headers()\n;$$ AS sql\n FROM test\n WHERE NOT CONTAINS(result, 'Authorization')\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CONTAINS(result, 'X-GitHub-Api-Version')$$ AS assertion,\n $$SELECT polygon.github_utils.headers()\n;$$ AS sql\n FROM test\n WHERE NOT CONTAINS(result, 'X-GitHub-Api-Version')\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CONTAINS(result, 'Accept')$$ AS assertion,\n $$SELECT polygon.github_utils.headers()\n;$$ AS sql\n FROM test\n WHERE NOT CONTAINS(result, 'Accept')\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "headers", "file_key_name": "models.github_utils__github_utils", "attached_node": "model.livequery_models.github_utils__github_utils"}, "test.livequery_models.test_github_utils__post_invalid_route.f060700fd1": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'invalid/test/route', {'test': 'data'}\n", "assertions": ["result:status_code = 404", "result IS NOT NULL"], "column_name": "post_api", "model": "{{ get_where_subquery(ref('github_utils__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_utils", "name": "test_github_utils__post_invalid_route", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_utils__post_invalid_route.sql", "original_file_path": "models/deploy/marketplace/github/github_utils__github_utils.yml", "unique_id": "test.livequery_models.test_github_utils__post_invalid_route.f060700fd1", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_utils__post_invalid_route"], "alias": "post_invalid_route", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.9241066, "relation_name": "polygon.test_github_utils.post_invalid_route", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_utils__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_utils__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_utils__github_utils.yml/test_github_utils__post_invalid_route.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'github_utils.post_api' AS test_name\n ,['invalid/test/route', {'test': 'data'}] as parameters\n ,polygon.github_utils.post_api('invalid/test/route', {'test': 'data'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 404$$ AS assertion,\n $$SELECT polygon.github_utils.post_api('invalid/test/route', {'test': 'data'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 404\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_utils.post_api('invalid/test/route', {'test': 'data'})\n;$$ AS sql\n FROM test\n WHERE NOT result IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_api", "file_key_name": "models.github_utils__github_utils", "attached_node": "model.livequery_models.github_utils__github_utils"}, "test.livequery_models.test_github_utils__put_invalid_route.d361d590cf": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'invalid/test/route', {'test': 'data'}\n", "assertions": ["result:status_code = 404", "result IS NOT NULL"], "column_name": "put_api", "model": "{{ get_where_subquery(ref('github_utils__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_utils", "name": "test_github_utils__put_invalid_route", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_utils__put_invalid_route.sql", "original_file_path": "models/deploy/marketplace/github/github_utils__github_utils.yml", "unique_id": "test.livequery_models.test_github_utils__put_invalid_route.d361d590cf", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_utils__put_invalid_route"], "alias": "put_invalid_route", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.9289806, "relation_name": "polygon.test_github_utils.put_invalid_route", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_utils__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_utils__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_utils__github_utils.yml/test_github_utils__put_invalid_route.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'github_utils.put_api' AS test_name\n ,['invalid/test/route', {'test': 'data'}] as parameters\n ,polygon.github_utils.put_api('invalid/test/route', {'test': 'data'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 404$$ AS assertion,\n $$SELECT polygon.github_utils.put_api('invalid/test/route', {'test': 'data'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 404\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_utils.put_api('invalid/test/route', {'test': 'data'})\n;$$ AS sql\n FROM test\n WHERE NOT result IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "put_api", "file_key_name": "models.github_utils__github_utils", "attached_node": "model.livequery_models.github_utils__github_utils"}, "test.livequery_models.test_github_actions__workflows_with_query.6ac4a8b3f9": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', {'per_page': 5}\n", "assertions": ["result:workflows IS NOT NULL", "result:total_count IS NOT NULL"], "column_name": "workflows", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__workflows_with_query", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__workflows_with_query.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__workflows_with_query.6ac4a8b3f9", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__workflows_with_query"], "alias": "workflows_with_query", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.9403064, "relation_name": "polygon.test_github_actions.workflows_with_query", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__workflows_with_query.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n) ,\ntest AS\n(\n SELECT\n 'github_actions.workflows' AS test_name\n ,['FlipsideCrypto', 'admin-models', {'per_page': 5}] as parameters\n ,polygon.github_actions.workflows('FlipsideCrypto', 'admin-models', {'per_page': 5}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:workflows IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_actions.workflows('FlipsideCrypto', 'admin-models', {'per_page': 5})\n;$$ AS sql\n FROM test\n WHERE NOT result:workflows IS NOT NULL\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:total_count IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_actions.workflows('FlipsideCrypto', 'admin-models', {'per_page': 5})\n;$$ AS sql\n FROM test\n WHERE NOT result:total_count IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "workflows", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__workflows_simple.c1eaeaca38": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'FlipsideCrypto', 'admin-models'\n", "assertions": ["result:workflows IS NOT NULL", "result:total_count IS NOT NULL"], "column_name": "workflows", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__workflows_simple", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__workflows_simple.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__workflows_simple.c1eaeaca38", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__workflows_simple"], "alias": "workflows_simple", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.946033, "relation_name": "polygon.test_github_actions.workflows_simple", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__workflows_simple.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n) ,\ntest AS\n(\n SELECT\n 'github_actions.workflows' AS test_name\n ,['FlipsideCrypto', 'admin-models'] as parameters\n ,polygon.github_actions.workflows('FlipsideCrypto', 'admin-models') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:workflows IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_actions.workflows('FlipsideCrypto', 'admin-models')\n;$$ AS sql\n FROM test\n WHERE NOT result:workflows IS NOT NULL\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:total_count IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_actions.workflows('FlipsideCrypto', 'admin-models')\n;$$ AS sql\n FROM test\n WHERE NOT result:total_count IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "workflows", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__runs_with_query.c134c002ca": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', {'per_page': 10, 'status': 'completed'}\n", "assertions": ["result:workflow_runs IS NOT NULL", "result:total_count IS NOT NULL"], "column_name": "runs", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__runs_with_query", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__runs_with_query.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__runs_with_query.c134c002ca", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__runs_with_query"], "alias": "runs_with_query", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.9508815, "relation_name": "polygon.test_github_actions.runs_with_query", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__runs_with_query.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n) ,\ntest AS\n(\n SELECT\n 'github_actions.runs' AS test_name\n ,['FlipsideCrypto', 'admin-models', {'per_page': 10, 'status': 'completed'}] as parameters\n ,polygon.github_actions.runs('FlipsideCrypto', 'admin-models', {'per_page': 10, 'status': 'completed'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:workflow_runs IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_actions.runs('FlipsideCrypto', 'admin-models', {'per_page': 10, 'status': 'completed'})\n;$$ AS sql\n FROM test\n WHERE NOT result:workflow_runs IS NOT NULL\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:total_count IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_actions.runs('FlipsideCrypto', 'admin-models', {'per_page': 10, 'status': 'completed'})\n;$$ AS sql\n FROM test\n WHERE NOT result:total_count IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "runs", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__runs_simple.fb19fd1022": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'FlipsideCrypto', 'admin-models'\n", "assertions": ["result:workflow_runs IS NOT NULL", "result:total_count IS NOT NULL"], "column_name": "runs", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__runs_simple", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__runs_simple.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__runs_simple.fb19fd1022", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__runs_simple"], "alias": "runs_simple", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.9563205, "relation_name": "polygon.test_github_actions.runs_simple", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__runs_simple.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n) ,\ntest AS\n(\n SELECT\n 'github_actions.runs' AS test_name\n ,['FlipsideCrypto', 'admin-models'] as parameters\n ,polygon.github_actions.runs('FlipsideCrypto', 'admin-models') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:workflow_runs IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_actions.runs('FlipsideCrypto', 'admin-models')\n;$$ AS sql\n FROM test\n WHERE NOT result:workflow_runs IS NOT NULL\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:total_count IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_actions.runs('FlipsideCrypto', 'admin-models')\n;$$ AS sql\n FROM test\n WHERE NOT result:total_count IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "runs", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__workflow_runs_with_query.2cc7cb1189": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml', {'per_page': 5}\n", "assertions": ["result:workflow_runs IS NOT NULL", "result:total_count IS NOT NULL"], "column_name": "workflow_runs", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__workflow_runs_with_query", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__workflow_runs_with_query.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__workflow_runs_with_query.2cc7cb1189", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__workflow_runs_with_query"], "alias": "workflow_runs_with_query", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.961668, "relation_name": "polygon.test_github_actions.workflow_runs_with_query", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__workflow_runs_with_query.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n) ,\ntest AS\n(\n SELECT\n 'github_actions.workflow_runs' AS test_name\n ,['FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml', {'per_page': 5}] as parameters\n ,polygon.github_actions.workflow_runs('FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml', {'per_page': 5}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:workflow_runs IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_actions.workflow_runs('FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml', {'per_page': 5})\n;$$ AS sql\n FROM test\n WHERE NOT result:workflow_runs IS NOT NULL\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:total_count IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_actions.workflow_runs('FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml', {'per_page': 5})\n;$$ AS sql\n FROM test\n WHERE NOT result:total_count IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "workflow_runs", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__workflow_runs_simple.3fae7a0ed4": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml'\n", "assertions": ["result:workflow_runs IS NOT NULL", "result:total_count IS NOT NULL"], "column_name": "workflow_runs", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__workflow_runs_simple", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__workflow_runs_simple.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__workflow_runs_simple.3fae7a0ed4", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__workflow_runs_simple"], "alias": "workflow_runs_simple", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.966537, "relation_name": "polygon.test_github_actions.workflow_runs_simple", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__workflow_runs_simple.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n) ,\ntest AS\n(\n SELECT\n 'github_actions.workflow_runs' AS test_name\n ,['FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml'] as parameters\n ,polygon.github_actions.workflow_runs('FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:workflow_runs IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_actions.workflow_runs('FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml')\n;$$ AS sql\n FROM test\n WHERE NOT result:workflow_runs IS NOT NULL\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:total_count IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_actions.workflow_runs('FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml')\n;$$ AS sql\n FROM test\n WHERE NOT result:total_count IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "workflow_runs", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__workflow_dispatches_with_body.d94154911b": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', 'test-workflow.yml', {'ref': 'main', 'inputs': {'debug': 'true'}}\n", "assertions": ["result IS NOT NULL"], "column_name": "workflow_dispatches", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__workflow_dispatches_with_body", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__workflow_dispatches_with_body.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__workflow_dispatches_with_body.d94154911b", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__workflow_dispatches_with_body"], "alias": "workflow_dispatches_with_body", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.9717164, "relation_name": "polygon.test_github_actions.workflow_dispatches_with_body", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__workflow_dispatches_with_body.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n) ,\ntest AS\n(\n SELECT\n 'github_actions.workflow_dispatches' AS test_name\n ,['FlipsideCrypto', 'admin-models', 'test-workflow.yml', {'ref': 'main', 'inputs': {'debug': 'true'}}] as parameters\n ,polygon.github_actions.workflow_dispatches('FlipsideCrypto', 'admin-models', 'test-workflow.yml', {'ref': 'main', 'inputs': {'debug': 'true'}}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_actions.workflow_dispatches('FlipsideCrypto', 'admin-models', 'test-workflow.yml', {'ref': 'main', 'inputs': {'debug': 'true'}})\n;$$ AS sql\n FROM test\n WHERE NOT result IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "workflow_dispatches", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__workflow_dispatches_simple.81f75f9435": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', 'test-workflow.yml'\n", "assertions": ["result IS NOT NULL"], "column_name": "workflow_dispatches", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__workflow_dispatches_simple", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__workflow_dispatches_simple.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__workflow_dispatches_simple.81f75f9435", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__workflow_dispatches_simple"], "alias": "workflow_dispatches_simple", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.9767244, "relation_name": "polygon.test_github_actions.workflow_dispatches_simple", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__workflow_dispatches_simple.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n) ,\ntest AS\n(\n SELECT\n 'github_actions.workflow_dispatches' AS test_name\n ,['FlipsideCrypto', 'admin-models', 'test-workflow.yml'] as parameters\n ,polygon.github_actions.workflow_dispatches('FlipsideCrypto', 'admin-models', 'test-workflow.yml') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_actions.workflow_dispatches('FlipsideCrypto', 'admin-models', 'test-workflow.yml')\n;$$ AS sql\n FROM test\n WHERE NOT result IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "workflow_dispatches", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__workflow_enable.0b608e8267": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', 'test-workflow.yml'\n", "assertions": ["result IS NOT NULL"], "column_name": "workflow_enable", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__workflow_enable", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__workflow_enable.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__workflow_enable.0b608e8267", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__workflow_enable"], "alias": "workflow_enable", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.981626, "relation_name": "polygon.test_github_actions.workflow_enable", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__workflow_enable.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n) ,\ntest AS\n(\n SELECT\n 'github_actions.workflow_enable' AS test_name\n ,['FlipsideCrypto', 'admin-models', 'test-workflow.yml'] as parameters\n ,polygon.github_actions.workflow_enable('FlipsideCrypto', 'admin-models', 'test-workflow.yml') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_actions.workflow_enable('FlipsideCrypto', 'admin-models', 'test-workflow.yml')\n;$$ AS sql\n FROM test\n WHERE NOT result IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "workflow_enable", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__workflow_disable.aefa4786d2": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', 'test-workflow.yml'\n", "assertions": ["result IS NOT NULL"], "column_name": "workflow_disable", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__workflow_disable", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__workflow_disable.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__workflow_disable.aefa4786d2", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__workflow_disable"], "alias": "workflow_disable", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.986322, "relation_name": "polygon.test_github_actions.workflow_disable", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__workflow_disable.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n) ,\ntest AS\n(\n SELECT\n 'github_actions.workflow_disable' AS test_name\n ,['FlipsideCrypto', 'admin-models', 'test-workflow.yml'] as parameters\n ,polygon.github_actions.workflow_disable('FlipsideCrypto', 'admin-models', 'test-workflow.yml') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result IS NOT NULL$$ AS assertion,\n $$SELECT polygon.github_actions.workflow_disable('FlipsideCrypto', 'admin-models', 'test-workflow.yml')\n;$$ AS sql\n FROM test\n WHERE NOT result IS NOT NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "workflow_disable", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__workflow_run_logs.9a9822b746": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', '12345678'\n", "assertions": ["result IS NULL"], "column_name": "workflow_run_logs", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__workflow_run_logs", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__workflow_run_logs.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__workflow_run_logs.9a9822b746", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__workflow_run_logs"], "alias": "workflow_run_logs", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.9910595, "relation_name": "polygon.test_github_actions.workflow_run_logs", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__workflow_run_logs.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n) ,\ntest AS\n(\n SELECT\n 'github_actions.workflow_run_logs' AS test_name\n ,['FlipsideCrypto', 'admin-models', '12345678'] as parameters\n ,polygon.github_actions.workflow_run_logs('FlipsideCrypto', 'admin-models', '12345678') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result IS NULL$$ AS assertion,\n $$SELECT polygon.github_actions.workflow_run_logs('FlipsideCrypto', 'admin-models', '12345678')\n;$$ AS sql\n FROM test\n WHERE NOT result IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "workflow_run_logs", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__job_logs.5a2d0a3c80": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', '87654321'\n", "assertions": ["result IS NULL"], "column_name": "job_logs", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__job_logs", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__job_logs.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__job_logs.5a2d0a3c80", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__job_logs"], "alias": "job_logs", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018435.9962528, "relation_name": "polygon.test_github_actions.job_logs", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__job_logs.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n) ,\ntest AS\n(\n SELECT\n 'github_actions.job_logs' AS test_name\n ,['FlipsideCrypto', 'admin-models', '87654321'] as parameters\n ,polygon.github_actions.job_logs('FlipsideCrypto', 'admin-models', '87654321') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result IS NULL$$ AS assertion,\n $$SELECT polygon.github_actions.job_logs('FlipsideCrypto', 'admin-models', '87654321')\n;$$ AS sql\n FROM test\n WHERE NOT result IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_logs", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__workflow_run_jobs_with_query.4a098421bd": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', '12345678', {'filter': 'latest'}\n", "assertions": ["result:jobs IS NULL", "result:total_count IS NULL"], "column_name": "workflow_run_jobs", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__workflow_run_jobs_with_query", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__workflow_run_jobs_with_query.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__workflow_run_jobs_with_query.4a098421bd", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__workflow_run_jobs_with_query"], "alias": "workflow_run_jobs_with_query", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.0013297, "relation_name": "polygon.test_github_actions.workflow_run_jobs_with_query", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__workflow_run_jobs_with_query.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n) ,\ntest AS\n(\n SELECT\n 'github_actions.workflow_run_jobs' AS test_name\n ,['FlipsideCrypto', 'admin-models', '12345678', {'filter': 'latest'}] as parameters\n ,polygon.github_actions.workflow_run_jobs('FlipsideCrypto', 'admin-models', '12345678', {'filter': 'latest'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:jobs IS NULL$$ AS assertion,\n $$SELECT polygon.github_actions.workflow_run_jobs('FlipsideCrypto', 'admin-models', '12345678', {'filter': 'latest'})\n;$$ AS sql\n FROM test\n WHERE NOT result:jobs IS NULL\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:total_count IS NULL$$ AS assertion,\n $$SELECT polygon.github_actions.workflow_run_jobs('FlipsideCrypto', 'admin-models', '12345678', {'filter': 'latest'})\n;$$ AS sql\n FROM test\n WHERE NOT result:total_count IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "workflow_run_jobs", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__workflow_run_jobs_simple.3f673e1432": {"test_metadata": {"name": "test_udf_without_context", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', '12345678'\n", "assertions": ["result:jobs IS NULL", "result:total_count IS NULL"], "column_name": "workflow_run_jobs", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__workflow_run_jobs_simple", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__workflow_run_jobs_simple.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__workflow_run_jobs_simple.3f673e1432", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__workflow_run_jobs_simple"], "alias": "workflow_run_jobs_simple", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.0070825, "relation_name": "polygon.test_github_actions.workflow_run_jobs_simple", "raw_code": "{{ test_test_udf_without_context(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf_without_context", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__workflow_run_jobs_simple.sql", "compiled": true, "compiled_code": "\n \nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n) ,\ntest AS\n(\n SELECT\n 'github_actions.workflow_run_jobs' AS test_name\n ,['FlipsideCrypto', 'admin-models', '12345678'] as parameters\n ,polygon.github_actions.workflow_run_jobs('FlipsideCrypto', 'admin-models', '12345678') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:jobs IS NULL$$ AS assertion,\n $$SELECT polygon.github_actions.workflow_run_jobs('FlipsideCrypto', 'admin-models', '12345678')\n;$$ AS sql\n FROM test\n WHERE NOT result:jobs IS NULL\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:total_count IS NULL$$ AS assertion,\n $$SELECT polygon.github_actions.workflow_run_jobs('FlipsideCrypto', 'admin-models', '12345678')\n;$$ AS sql\n FROM test\n WHERE NOT result:total_count IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "workflow_run_jobs", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__tf_workflows_with_query.55c801e96a": {"test_metadata": {"name": "test_udtf", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', {'per_page': 3}\n", "assertions": ["row_count >= 0"], "column_name": "tf_workflows", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__tf_workflows_with_query", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__tf_workflows_with_query.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__tf_workflows_with_query.55c801e96a", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__tf_workflows_with_query"], "alias": "tf_workflows_with_query", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.0115597, "relation_name": "polygon.test_github_actions.tf_workflows_with_query", "raw_code": "{{ test_test_udtf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udtf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__tf_workflows_with_query.sql", "compiled": true, "compiled_code": "WITH __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n), base_test_data AS\n (\n SELECT\n 'github_actions.tf_workflows' AS test_name\n ,['FlipsideCrypto', 'admin-models', {'per_page': 3}] as parameters\n ,COUNT(*) OVER () AS row_count\n FROM TABLE(github_actions.tf_workflows('FlipsideCrypto', 'admin-models', {'per_page': 3})) t\n LIMIT 1\n )\n\n \n SELECT\n test_name,\n parameters,\n $$row_count >= 0$$ AS assertion,\n $$SELECT * FROM TABLE(github_actions.tf_workflows('FlipsideCrypto', 'admin-models', {'per_page': 3}))$$ AS sql\n FROM base_test_data\n WHERE NOT (row_count >= 0)\n \n \n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "tf_workflows", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__tf_workflows_simple.e309afa5b7": {"test_metadata": {"name": "test_udtf", "kwargs": {"args": "'FlipsideCrypto', 'admin-models'\n", "assertions": ["row_count >= 0"], "column_name": "tf_workflows", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__tf_workflows_simple", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__tf_workflows_simple.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__tf_workflows_simple.e309afa5b7", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__tf_workflows_simple"], "alias": "tf_workflows_simple", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.0205147, "relation_name": "polygon.test_github_actions.tf_workflows_simple", "raw_code": "{{ test_test_udtf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udtf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__tf_workflows_simple.sql", "compiled": true, "compiled_code": "WITH __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n), base_test_data AS\n (\n SELECT\n 'github_actions.tf_workflows' AS test_name\n ,['FlipsideCrypto', 'admin-models'] as parameters\n ,COUNT(*) OVER () AS row_count\n FROM TABLE(github_actions.tf_workflows('FlipsideCrypto', 'admin-models')) t\n LIMIT 1\n )\n\n \n SELECT\n test_name,\n parameters,\n $$row_count >= 0$$ AS assertion,\n $$SELECT * FROM TABLE(github_actions.tf_workflows('FlipsideCrypto', 'admin-models'))$$ AS sql\n FROM base_test_data\n WHERE NOT (row_count >= 0)\n \n \n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "tf_workflows", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__tf_runs_with_query.1164bd17ab": {"test_metadata": {"name": "test_udtf", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', {'per_page': 5, 'status': 'completed'}\n", "assertions": ["row_count >= 0"], "column_name": "tf_runs", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__tf_runs_with_query", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__tf_runs_with_query.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__tf_runs_with_query.1164bd17ab", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__tf_runs_with_query"], "alias": "tf_runs_with_query", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.0252807, "relation_name": "polygon.test_github_actions.tf_runs_with_query", "raw_code": "{{ test_test_udtf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udtf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__tf_runs_with_query.sql", "compiled": true, "compiled_code": "WITH __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n), base_test_data AS\n (\n SELECT\n 'github_actions.tf_runs' AS test_name\n ,['FlipsideCrypto', 'admin-models', {'per_page': 5, 'status': 'completed'}] as parameters\n ,COUNT(*) OVER () AS row_count\n FROM TABLE(github_actions.tf_runs('FlipsideCrypto', 'admin-models', {'per_page': 5, 'status': 'completed'})) t\n LIMIT 1\n )\n\n \n SELECT\n test_name,\n parameters,\n $$row_count >= 0$$ AS assertion,\n $$SELECT * FROM TABLE(github_actions.tf_runs('FlipsideCrypto', 'admin-models', {'per_page': 5, 'status': 'completed'}))$$ AS sql\n FROM base_test_data\n WHERE NOT (row_count >= 0)\n \n \n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "tf_runs", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__tf_runs_simple.e5cbf35e89": {"test_metadata": {"name": "test_udtf", "kwargs": {"args": "'FlipsideCrypto', 'admin-models'\n", "assertions": ["row_count >= 0"], "column_name": "tf_runs", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__tf_runs_simple", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__tf_runs_simple.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__tf_runs_simple.e5cbf35e89", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__tf_runs_simple"], "alias": "tf_runs_simple", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.0301132, "relation_name": "polygon.test_github_actions.tf_runs_simple", "raw_code": "{{ test_test_udtf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udtf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__tf_runs_simple.sql", "compiled": true, "compiled_code": "WITH __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n), base_test_data AS\n (\n SELECT\n 'github_actions.tf_runs' AS test_name\n ,['FlipsideCrypto', 'admin-models'] as parameters\n ,COUNT(*) OVER () AS row_count\n FROM TABLE(github_actions.tf_runs('FlipsideCrypto', 'admin-models')) t\n LIMIT 1\n )\n\n \n SELECT\n test_name,\n parameters,\n $$row_count >= 0$$ AS assertion,\n $$SELECT * FROM TABLE(github_actions.tf_runs('FlipsideCrypto', 'admin-models'))$$ AS sql\n FROM base_test_data\n WHERE NOT (row_count >= 0)\n \n \n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "tf_runs", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__tf_workflow_runs_with_query.4108f0ee5c": {"test_metadata": {"name": "test_udtf", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml', {'per_page': 3}\n", "assertions": ["row_count >= 0"], "column_name": "tf_workflow_runs", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__tf_workflow_runs_with_query", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__tf_workflow_runs_with_query.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__tf_workflow_runs_with_query.4108f0ee5c", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__tf_workflow_runs_with_query"], "alias": "tf_workflow_runs_with_query", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.0348296, "relation_name": "polygon.test_github_actions.tf_workflow_runs_with_query", "raw_code": "{{ test_test_udtf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udtf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__tf_workflow_runs_with_query.sql", "compiled": true, "compiled_code": "WITH __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n), base_test_data AS\n (\n SELECT\n 'github_actions.tf_workflow_runs' AS test_name\n ,['FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml', {'per_page': 3}] as parameters\n ,COUNT(*) OVER () AS row_count\n FROM TABLE(github_actions.tf_workflow_runs('FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml', {'per_page': 3})) t\n LIMIT 1\n )\n\n \n SELECT\n test_name,\n parameters,\n $$row_count >= 0$$ AS assertion,\n $$SELECT * FROM TABLE(github_actions.tf_workflow_runs('FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml', {'per_page': 3}))$$ AS sql\n FROM base_test_data\n WHERE NOT (row_count >= 0)\n \n \n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "tf_workflow_runs", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__tf_workflow_runs_simple.2677ffd8e8": {"test_metadata": {"name": "test_udtf", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml'\n", "assertions": ["row_count >= 0"], "column_name": "tf_workflow_runs", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__tf_workflow_runs_simple", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__tf_workflow_runs_simple.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__tf_workflow_runs_simple.2677ffd8e8", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__tf_workflow_runs_simple"], "alias": "tf_workflow_runs_simple", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.039821, "relation_name": "polygon.test_github_actions.tf_workflow_runs_simple", "raw_code": "{{ test_test_udtf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udtf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__tf_workflow_runs_simple.sql", "compiled": true, "compiled_code": "WITH __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n), base_test_data AS\n (\n SELECT\n 'github_actions.tf_workflow_runs' AS test_name\n ,['FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml'] as parameters\n ,COUNT(*) OVER () AS row_count\n FROM TABLE(github_actions.tf_workflow_runs('FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml')) t\n LIMIT 1\n )\n\n \n SELECT\n test_name,\n parameters,\n $$row_count >= 0$$ AS assertion,\n $$SELECT * FROM TABLE(github_actions.tf_workflow_runs('FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml'))$$ AS sql\n FROM base_test_data\n WHERE NOT (row_count >= 0)\n \n \n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "tf_workflow_runs", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__tf_workflow_run_jobs_with_query.b6002abbe4": {"test_metadata": {"name": "test_udtf", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', '12345678', {'filter': 'latest'}\n", "assertions": ["row_count >= 0"], "column_name": "tf_workflow_run_jobs", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__tf_workflow_run_jobs_with_query", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__tf_workflow_run_jobs_with_query.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__tf_workflow_run_jobs_with_query.b6002abbe4", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__tf_workflow_run_jobs_with_query"], "alias": "tf_workflow_run_jobs_with_query", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.0442631, "relation_name": "polygon.test_github_actions.tf_workflow_run_jobs_with_query", "raw_code": "{{ test_test_udtf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udtf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__tf_workflow_run_jobs_with_query.sql", "compiled": true, "compiled_code": "WITH __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n), base_test_data AS\n (\n SELECT\n 'github_actions.tf_workflow_run_jobs' AS test_name\n ,['FlipsideCrypto', 'admin-models', '12345678', {'filter': 'latest'}] as parameters\n ,COUNT(*) OVER () AS row_count\n FROM TABLE(github_actions.tf_workflow_run_jobs('FlipsideCrypto', 'admin-models', '12345678', {'filter': 'latest'})) t\n LIMIT 1\n )\n\n \n SELECT\n test_name,\n parameters,\n $$row_count >= 0$$ AS assertion,\n $$SELECT * FROM TABLE(github_actions.tf_workflow_run_jobs('FlipsideCrypto', 'admin-models', '12345678', {'filter': 'latest'}))$$ AS sql\n FROM base_test_data\n WHERE NOT (row_count >= 0)\n \n \n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "tf_workflow_run_jobs", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__tf_workflow_run_jobs_simple.ddea8e10f5": {"test_metadata": {"name": "test_udtf", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', '12345678'\n", "assertions": ["row_count >= 0"], "column_name": "tf_workflow_run_jobs", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__tf_workflow_run_jobs_simple", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__tf_workflow_run_jobs_simple.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__tf_workflow_run_jobs_simple.ddea8e10f5", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__tf_workflow_run_jobs_simple"], "alias": "tf_workflow_run_jobs_simple", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.0488844, "relation_name": "polygon.test_github_actions.tf_workflow_run_jobs_simple", "raw_code": "{{ test_test_udtf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udtf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__tf_workflow_run_jobs_simple.sql", "compiled": true, "compiled_code": "WITH __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n), base_test_data AS\n (\n SELECT\n 'github_actions.tf_workflow_run_jobs' AS test_name\n ,['FlipsideCrypto', 'admin-models', '12345678'] as parameters\n ,COUNT(*) OVER () AS row_count\n FROM TABLE(github_actions.tf_workflow_run_jobs('FlipsideCrypto', 'admin-models', '12345678')) t\n LIMIT 1\n )\n\n \n SELECT\n test_name,\n parameters,\n $$row_count >= 0$$ AS assertion,\n $$SELECT * FROM TABLE(github_actions.tf_workflow_run_jobs('FlipsideCrypto', 'admin-models', '12345678'))$$ AS sql\n FROM base_test_data\n WHERE NOT (row_count >= 0)\n \n \n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "tf_workflow_run_jobs", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__tf_failed_jobs_with_logs.f99b7e9705": {"test_metadata": {"name": "test_udtf", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', '12345678'\n", "assertions": ["row_count >= 0"], "column_name": "tf_failed_jobs_with_logs", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__tf_failed_jobs_with_logs", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__tf_failed_jobs_with_logs.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__tf_failed_jobs_with_logs.f99b7e9705", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__tf_failed_jobs_with_logs"], "alias": "tf_failed_jobs_with_logs", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.0532465, "relation_name": "polygon.test_github_actions.tf_failed_jobs_with_logs", "raw_code": "{{ test_test_udtf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udtf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__tf_failed_jobs_with_logs.sql", "compiled": true, "compiled_code": "WITH __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n), base_test_data AS\n (\n SELECT\n 'github_actions.tf_failed_jobs_with_logs' AS test_name\n ,['FlipsideCrypto', 'admin-models', '12345678'] as parameters\n ,COUNT(*) OVER () AS row_count\n FROM TABLE(github_actions.tf_failed_jobs_with_logs('FlipsideCrypto', 'admin-models', '12345678')) t\n LIMIT 1\n )\n\n \n SELECT\n test_name,\n parameters,\n $$row_count >= 0$$ AS assertion,\n $$SELECT * FROM TABLE(github_actions.tf_failed_jobs_with_logs('FlipsideCrypto', 'admin-models', '12345678'))$$ AS sql\n FROM base_test_data\n WHERE NOT (row_count >= 0)\n \n \n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "tf_failed_jobs_with_logs", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__tf_failure_analysis_with_ai_cortex.f6b67b3893": {"test_metadata": {"name": "test_udtf", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', '12345678', 'cortex', 'mistral-large', ''\n", "assertions": ["row_count >= 0"], "column_name": "tf_failure_analysis_with_ai", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__tf_failure_analysis_with_ai_cortex", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__tf_failure_analysis_with_ai_cortex.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__tf_failure_analysis_with_ai_cortex.f6b67b3893", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__tf_failure_analysis_with_ai_cortex"], "alias": "tf_failure_analysis_with_ai_cortex", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.058564, "relation_name": "polygon.test_github_actions.tf_failure_analysis_with_ai_cortex", "raw_code": "{{ test_test_udtf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udtf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__tf_failure_analysis_with_ai_cortex.sql", "compiled": true, "compiled_code": "WITH __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n), base_test_data AS\n (\n SELECT\n 'github_actions.tf_failure_analysis_with_ai' AS test_name\n ,['FlipsideCrypto', 'admin-models', '12345678', 'cortex', 'mistral-large', ''] as parameters\n ,COUNT(*) OVER () AS row_count\n FROM TABLE(github_actions.tf_failure_analysis_with_ai('FlipsideCrypto', 'admin-models', '12345678', 'cortex', 'mistral-large', '')) t\n LIMIT 1\n )\n\n \n SELECT\n test_name,\n parameters,\n $$row_count >= 0$$ AS assertion,\n $$SELECT * FROM TABLE(github_actions.tf_failure_analysis_with_ai('FlipsideCrypto', 'admin-models', '12345678', 'cortex', 'mistral-large', ''))$$ AS sql\n FROM base_test_data\n WHERE NOT (row_count >= 0)\n \n \n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "tf_failure_analysis_with_ai", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__tf_failure_analysis_with_ai_custom_prompt.9412c58df0": {"test_metadata": {"name": "test_udtf", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', '12345678', 'cortex', 'mistral-7b', 'Analyze these failures and provide concise recommendations:'\n", "assertions": ["row_count >= 0"], "column_name": "tf_failure_analysis_with_ai", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__tf_failure_analysis_with_ai_custom_prompt", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__tf_failure_analysis_with_ai_custom_prompt.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__tf_failure_analysis_with_ai_custom_prompt.9412c58df0", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__tf_failure_analysis_with_ai_custom_prompt"], "alias": "tf_failure_analysis_with_ai_custom_prompt", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.0635185, "relation_name": "polygon.test_github_actions.tf_failure_analysis_with_ai_custom_prompt", "raw_code": "{{ test_test_udtf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udtf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__tf_failure_analysis_with_ai_custom_prompt.sql", "compiled": true, "compiled_code": "WITH __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n), base_test_data AS\n (\n SELECT\n 'github_actions.tf_failure_analysis_with_ai' AS test_name\n ,['FlipsideCrypto', 'admin-models', '12345678', 'cortex', 'mistral-7b', 'Analyze these failures and provide concise recommendations:'] as parameters\n ,COUNT(*) OVER () AS row_count\n FROM TABLE(github_actions.tf_failure_analysis_with_ai('FlipsideCrypto', 'admin-models', '12345678', 'cortex', 'mistral-7b', 'Analyze these failures and provide concise recommendations:')) t\n LIMIT 1\n )\n\n \n SELECT\n test_name,\n parameters,\n $$row_count >= 0$$ AS assertion,\n $$SELECT * FROM TABLE(github_actions.tf_failure_analysis_with_ai('FlipsideCrypto', 'admin-models', '12345678', 'cortex', 'mistral-7b', 'Analyze these failures and provide concise recommendations:'))$$ AS sql\n FROM base_test_data\n WHERE NOT (row_count >= 0)\n \n \n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "tf_failure_analysis_with_ai", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__tf_failure_analysis_with_ai_default.f6378c5240": {"test_metadata": {"name": "test_udtf", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', '12345678'\n", "assertions": ["row_count >= 0"], "column_name": "tf_failure_analysis_with_ai", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_github_actions", "name": "test_github_actions__tf_failure_analysis_with_ai_default", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__tf_failure_analysis_with_ai_default.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__tf_failure_analysis_with_ai_default.f6378c5240", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__tf_failure_analysis_with_ai_default"], "alias": "tf_failure_analysis_with_ai_default", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.0682547, "relation_name": "polygon.test_github_actions.tf_failure_analysis_with_ai_default", "raw_code": "{{ test_test_udtf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udtf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__tf_failure_analysis_with_ai_default.sql", "compiled": true, "compiled_code": "WITH __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n), base_test_data AS\n (\n SELECT\n 'github_actions.tf_failure_analysis_with_ai' AS test_name\n ,['FlipsideCrypto', 'admin-models', '12345678'] as parameters\n ,COUNT(*) OVER () AS row_count\n FROM TABLE(github_actions.tf_failure_analysis_with_ai('FlipsideCrypto', 'admin-models', '12345678')) t\n LIMIT 1\n )\n\n \n SELECT\n test_name,\n parameters,\n $$row_count >= 0$$ AS assertion,\n $$SELECT * FROM TABLE(github_actions.tf_failure_analysis_with_ai('FlipsideCrypto', 'admin-models', '12345678'))$$ AS sql\n FROM base_test_data\n WHERE NOT (row_count >= 0)\n \n \n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "tf_failure_analysis_with_ai", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_nftscan__get_status_200.33868e0f0d": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://restapi.nftscan.com/api/v2/account/own/0xca1257ade6f4fa6c6834fdc42e030be6c0f5a813' , {'erc_type': 'erc721'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('nftscan__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_nftscan", "name": "test_nftscan__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_nftscan__get_status_200.sql", "original_file_path": "models/deploy/marketplace/nftscan/nftscan__.yml", "unique_id": "test.livequery_models.test_nftscan__get_status_200.33868e0f0d", "fqn": ["livequery_models", "deploy", "marketplace", "nftscan", "test_nftscan__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.0737126, "relation_name": "polygon.test_nftscan.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "nftscan__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.nftscan__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/nftscan/nftscan__.yml/test_nftscan__get_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__nftscan__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'nftscan' as schema_\n) ,\ntest AS\n(\n SELECT\n 'nftscan.get' AS test_name\n ,['https://restapi.nftscan.com/api/v2/account/own/0xca1257ade6f4fa6c6834fdc42e030be6c0f5a813' , {'erc_type': 'erc721'}] as parameters\n ,polygon.nftscan.get('https://restapi.nftscan.com/api/v2/account/own/0xca1257ade6f4fa6c6834fdc42e030be6c0f5a813' , {'erc_type': 'erc721'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.nftscan.get('https://restapi.nftscan.com/api/v2/account/own/0xca1257ade6f4fa6c6834fdc42e030be6c0f5a813' , {'erc_type': 'erc721'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.nftscan.get('https://restapi.nftscan.com/api/v2/account/own/0xca1257ade6f4fa6c6834fdc42e030be6c0f5a813' , {'erc_type': 'erc721'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.nftscan__", "sql": " __dbt__cte__nftscan__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'nftscan' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.nftscan__", "attached_node": "model.livequery_models.nftscan__"}, "test.livequery_models.test_chainbase_utils__get_status_200.07b6733652": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v1/nft/metadata' , {\n 'chain_id': 1,\n 'contract_address': '0xed5af388653567af2f388e6224dc7c4b3241c544',\n 'token_id': 1\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('chainbase_utils__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_chainbase_utils", "name": "test_chainbase_utils__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_chainbase_utils__get_status_200.sql", "original_file_path": "models/deploy/marketplace/chainbase/chainbase_utils__.yml", "unique_id": "test.livequery_models.test_chainbase_utils__get_status_200.07b6733652", "fqn": ["livequery_models", "deploy", "marketplace", "chainbase", "test_chainbase_utils__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.08061, "relation_name": "polygon.test_chainbase_utils.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "chainbase_utils__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.chainbase_utils__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/chainbase/chainbase_utils__.yml/test_chainbase_utils__get_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__chainbase_utils__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'chainbase_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'chainbase_utils.get' AS test_name\n ,['/v1/nft/metadata' , {\n 'chain_id': 1,\n 'contract_address': '0xed5af388653567af2f388e6224dc7c4b3241c544',\n 'token_id': 1\n}] as parameters\n ,polygon.chainbase_utils.get('/v1/nft/metadata' , {\n 'chain_id': 1,\n 'contract_address': '0xed5af388653567af2f388e6224dc7c4b3241c544',\n 'token_id': 1\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.chainbase_utils.get('/v1/nft/metadata' , {\n 'chain_id': 1,\n 'contract_address': '0xed5af388653567af2f388e6224dc7c4b3241c544',\n 'token_id': 1\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.chainbase_utils.get('/v1/nft/metadata' , {\n 'chain_id': 1,\n 'contract_address': '0xed5af388653567af2f388e6224dc7c4b3241c544',\n 'token_id': 1\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.chainbase_utils__", "sql": " __dbt__cte__chainbase_utils__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'chainbase_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.chainbase_utils__", "attached_node": "model.livequery_models.chainbase_utils__"}, "test.livequery_models.test_snapshot__query_status_200.35a2cffb40": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'query': '{\n space(id: \"snapshot.dcl.eth\") {\n id\n name\n members\n }\n }',\n 'variables': {}\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "query", "model": "{{ get_where_subquery(ref('snapshot__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_snapshot", "name": "test_snapshot__query_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_snapshot__query_status_200.sql", "original_file_path": "models/deploy/marketplace/snapshot/snapshot__ .yml", "unique_id": "test.livequery_models.test_snapshot__query_status_200.35a2cffb40", "fqn": ["livequery_models", "deploy", "marketplace", "snapshot", "test_snapshot__query_status_200"], "alias": "query_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.087796, "relation_name": "polygon.test_snapshot.query_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapshot__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.snapshot__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/snapshot/snapshot__ .yml/test_snapshot__query_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__snapshot__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'snapshot' as schema_\n) ,\ntest AS\n(\n SELECT\n 'snapshot.query' AS test_name\n ,[{\n 'query': '{\n space(id: \"snapshot.dcl.eth\") {\n id\n name\n members\n }\n }',\n 'variables': {}\n}] as parameters\n ,polygon.snapshot.query({\n 'query': '{\n space(id: \"snapshot.dcl.eth\") {\n id\n name\n members\n }\n }',\n 'variables': {}\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.snapshot.query({\n 'query': '{\n space(id: \"snapshot.dcl.eth\") {\n id\n name\n members\n }\n }',\n 'variables': {}\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.snapshot.query({\n 'query': '{\n space(id: \"snapshot.dcl.eth\") {\n id\n name\n members\n }\n }',\n 'variables': {}\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.snapshot__", "sql": " __dbt__cte__snapshot__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'snapshot' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "query", "file_key_name": "models.snapshot__", "attached_node": "model.livequery_models.snapshot__"}, "test.livequery_models.test_reservoir__get_status_200.cb905ea233": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/tokens/floor/v1' , {'collection': '0x8d04a8c79ceb0889bdd12acdf3fa9d207ed3ff63'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('reservoir__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_reservoir", "name": "test_reservoir__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_reservoir__get_status_200.sql", "original_file_path": "models/deploy/marketplace/reservoir/reservoir__.yml", "unique_id": "test.livequery_models.test_reservoir__get_status_200.cb905ea233", "fqn": ["livequery_models", "deploy", "marketplace", "reservoir", "test_reservoir__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.095057, "relation_name": "polygon.test_reservoir.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reservoir__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.reservoir__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/reservoir/reservoir__.yml/test_reservoir__get_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__reservoir__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'reservoir' as schema_\n) ,\ntest AS\n(\n SELECT\n 'reservoir.get' AS test_name\n ,['/tokens/floor/v1' , {'collection': '0x8d04a8c79ceb0889bdd12acdf3fa9d207ed3ff63'}] as parameters\n ,polygon.reservoir.get('/tokens/floor/v1' , {'collection': '0x8d04a8c79ceb0889bdd12acdf3fa9d207ed3ff63'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.reservoir.get('/tokens/floor/v1' , {'collection': '0x8d04a8c79ceb0889bdd12acdf3fa9d207ed3ff63'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.reservoir.get('/tokens/floor/v1' , {'collection': '0x8d04a8c79ceb0889bdd12acdf3fa9d207ed3ff63'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.reservoir__", "sql": " __dbt__cte__reservoir__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'reservoir' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.reservoir__", "attached_node": "model.livequery_models.reservoir__"}, "test.livequery_models.test_defillama__get_status_200.95a3be7633": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/categories' , {}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('defillama__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_defillama", "name": "test_defillama__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_defillama__get_status_200.sql", "original_file_path": "models/deploy/marketplace/defillama/defillama__.yml", "unique_id": "test.livequery_models.test_defillama__get_status_200.95a3be7633", "fqn": ["livequery_models", "deploy", "marketplace", "defillama", "test_defillama__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.10218, "relation_name": "polygon.test_defillama.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defillama__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.defillama__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/defillama/defillama__.yml/test_defillama__get_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__defillama__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'defillama' as schema_\n) ,\ntest AS\n(\n SELECT\n 'defillama.get' AS test_name\n ,['/categories' , {}] as parameters\n ,polygon.defillama.get('/categories' , {}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.defillama.get('/categories' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.defillama.get('/categories' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.defillama__", "sql": " __dbt__cte__defillama__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'defillama' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.defillama__", "attached_node": "model.livequery_models.defillama__"}, "test.livequery_models.test_bitquery__graphql_status_200.11917beb18": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'query': '{\n ethereum( network: bsc ) {\n dexTrades(\n options: {limit: 1}\n baseCurrency: {is: \"0x6679eB24F59dFe111864AEc72B443d1Da666B360\"}\n quoteCurrency: {is: \"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c\"}\n ) {\n buyAmount\n buyAmountInUsd: buyAmount(in: USD)\n buyCurrency {\n symbol\n address\n }\n sellAmount\n sellCurrency {\n symbol\n address\n }\n tradeAmount(in: USD)\n }\n }\n }',\n 'variables': '{}'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "graphql", "model": "{{ get_where_subquery(ref('bitquery__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_bitquery", "name": "test_bitquery__graphql_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_bitquery__graphql_status_200.sql", "original_file_path": "models/deploy/marketplace/bitquery/bitquery__.yml", "unique_id": "test.livequery_models.test_bitquery__graphql_status_200.11917beb18", "fqn": ["livequery_models", "deploy", "marketplace", "bitquery", "test_bitquery__graphql_status_200"], "alias": "graphql_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.1092777, "relation_name": "polygon.test_bitquery.graphql_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bitquery__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.bitquery__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/bitquery/bitquery__.yml/test_bitquery__graphql_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__bitquery__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'bitquery' as schema_\n) ,\ntest AS\n(\n SELECT\n 'bitquery.graphql' AS test_name\n ,[{\n 'query': '{\n ethereum( network: bsc ) {\n dexTrades(\n options: {limit: 1}\n baseCurrency: {is: \"0x6679eB24F59dFe111864AEc72B443d1Da666B360\"}\n quoteCurrency: {is: \"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c\"}\n ) {\n buyAmount\n buyAmountInUsd: buyAmount(in: USD)\n buyCurrency {\n symbol\n address\n }\n sellAmount\n sellCurrency {\n symbol\n address\n }\n tradeAmount(in: USD)\n }\n }\n }',\n 'variables': '{}'\n}] as parameters\n ,polygon.bitquery.graphql({\n 'query': '{\n ethereum( network: bsc ) {\n dexTrades(\n options: {limit: 1}\n baseCurrency: {is: \"0x6679eB24F59dFe111864AEc72B443d1Da666B360\"}\n quoteCurrency: {is: \"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c\"}\n ) {\n buyAmount\n buyAmountInUsd: buyAmount(in: USD)\n buyCurrency {\n symbol\n address\n }\n sellAmount\n sellCurrency {\n symbol\n address\n }\n tradeAmount(in: USD)\n }\n }\n }',\n 'variables': '{}'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.bitquery.graphql({\n 'query': '{\n ethereum( network: bsc ) {\n dexTrades(\n options: {limit: 1}\n baseCurrency: {is: \"0x6679eB24F59dFe111864AEc72B443d1Da666B360\"}\n quoteCurrency: {is: \"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c\"}\n ) {\n buyAmount\n buyAmountInUsd: buyAmount(in: USD)\n buyCurrency {\n symbol\n address\n }\n sellAmount\n sellCurrency {\n symbol\n address\n }\n tradeAmount(in: USD)\n }\n }\n }',\n 'variables': '{}'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.bitquery.graphql({\n 'query': '{\n ethereum( network: bsc ) {\n dexTrades(\n options: {limit: 1}\n baseCurrency: {is: \"0x6679eB24F59dFe111864AEc72B443d1Da666B360\"}\n quoteCurrency: {is: \"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c\"}\n ) {\n buyAmount\n buyAmountInUsd: buyAmount(in: USD)\n buyCurrency {\n symbol\n address\n }\n sellAmount\n sellCurrency {\n symbol\n address\n }\n tradeAmount(in: USD)\n }\n }\n }',\n 'variables': '{}'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.bitquery__", "sql": " __dbt__cte__bitquery__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'bitquery' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "graphql", "file_key_name": "models.bitquery__", "attached_node": "model.livequery_models.bitquery__"}, "test.livequery_models.test_helius_apis__token_metadata_status_200.c2bafa3fb0": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , {\n 'mintAccounts': [\n 'BAAzgRGWY2v5AJBNZNFd2abiRXAUo56UxywKEjoCZW2',\n '8s6kQUZfdm7GSaThAcsmSs56wMinXrbk6SdNVngutrz5'\n ],\n 'includeOffChain': true\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "token_metadata", "model": "{{ get_where_subquery(ref('helius_apis__helius_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_helius_apis", "name": "test_helius_apis__token_metadata_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_apis__token_metadata_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_apis__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_apis__token_metadata_status_200.c2bafa3fb0", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_apis__token_metadata_status_200"], "alias": "token_metadata_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.1175473, "relation_name": "polygon.test_helius_apis.token_metadata_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_apis__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_apis__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_apis__helius_utils.yml/test_helius_apis__token_metadata_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_apis__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_apis' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'helius_apis.token_metadata' AS test_name\n ,['mainnet' , {\n 'mintAccounts': [\n 'BAAzgRGWY2v5AJBNZNFd2abiRXAUo56UxywKEjoCZW2',\n '8s6kQUZfdm7GSaThAcsmSs56wMinXrbk6SdNVngutrz5'\n ],\n 'includeOffChain': true\n}] as parameters\n ,polygon.helius_apis.token_metadata('mainnet' , {\n 'mintAccounts': [\n 'BAAzgRGWY2v5AJBNZNFd2abiRXAUo56UxywKEjoCZW2',\n '8s6kQUZfdm7GSaThAcsmSs56wMinXrbk6SdNVngutrz5'\n ],\n 'includeOffChain': true\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_apis.token_metadata('mainnet' , {\n 'mintAccounts': [\n 'BAAzgRGWY2v5AJBNZNFd2abiRXAUo56UxywKEjoCZW2',\n '8s6kQUZfdm7GSaThAcsmSs56wMinXrbk6SdNVngutrz5'\n ],\n 'includeOffChain': true\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_apis.token_metadata('mainnet' , {\n 'mintAccounts': [\n 'BAAzgRGWY2v5AJBNZNFd2abiRXAUo56UxywKEjoCZW2',\n '8s6kQUZfdm7GSaThAcsmSs56wMinXrbk6SdNVngutrz5'\n ],\n 'includeOffChain': true\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_apis__helius_utils", "sql": " __dbt__cte__helius_apis__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_apis' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "token_metadata", "file_key_name": "models.helius_apis__helius_utils", "attached_node": "model.livequery_models.helius_apis__helius_utils"}, "test.livequery_models.test_helius_apis__balances_status_200.d668884644": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , '231B38ZpsbtrWbsBEjSXfjVj9JT2XyuNXy4f98V5NXxg'\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "balances", "model": "{{ get_where_subquery(ref('helius_apis__helius_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_helius_apis", "name": "test_helius_apis__balances_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_apis__balances_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_apis__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_apis__balances_status_200.d668884644", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_apis__balances_status_200"], "alias": "balances_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.1236877, "relation_name": "polygon.test_helius_apis.balances_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_apis__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_apis__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_apis__helius_utils.yml/test_helius_apis__balances_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_apis__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_apis' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'helius_apis.balances' AS test_name\n ,['mainnet' , '231B38ZpsbtrWbsBEjSXfjVj9JT2XyuNXy4f98V5NXxg'] as parameters\n ,polygon.helius_apis.balances('mainnet' , '231B38ZpsbtrWbsBEjSXfjVj9JT2XyuNXy4f98V5NXxg') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_apis.balances('mainnet' , '231B38ZpsbtrWbsBEjSXfjVj9JT2XyuNXy4f98V5NXxg')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_apis.balances('mainnet' , '231B38ZpsbtrWbsBEjSXfjVj9JT2XyuNXy4f98V5NXxg')\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_apis__helius_utils", "sql": " __dbt__cte__helius_apis__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_apis' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "balances", "file_key_name": "models.helius_apis__helius_utils", "attached_node": "model.livequery_models.helius_apis__helius_utils"}, "test.livequery_models.test_helius_apis__parse_transactions_status_200.71053900da": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , [\n '5u5S6yWN5wJkEDr3hKeqF3Y8nWcyWaZDboEnpfUuAw1zcvbvevs58rEfCpN6VkfxaS4N8RCMkBcyhxBFs3eoL4U4',\n '2bWLiRSA8GCh7UNEpiZdgsh2BMxZwKawk8ND4Z3iWrqDZE6JQk69n9WoCU9rKDrgWHw6qV25g8UBMJYddRJRHR9v'\n]\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "parse_transactions", "model": "{{ get_where_subquery(ref('helius_apis__helius_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_helius_apis", "name": "test_helius_apis__parse_transactions_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_apis__parse_transactions_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_apis__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_apis__parse_transactions_status_200.71053900da", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_apis__parse_transactions_status_200"], "alias": "parse_transactions_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.1300337, "relation_name": "polygon.test_helius_apis.parse_transactions_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_apis__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_apis__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_apis__helius_utils.yml/test_helius_apis__parse_transactions_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_apis__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_apis' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'helius_apis.parse_transactions' AS test_name\n ,['mainnet' , [\n '5u5S6yWN5wJkEDr3hKeqF3Y8nWcyWaZDboEnpfUuAw1zcvbvevs58rEfCpN6VkfxaS4N8RCMkBcyhxBFs3eoL4U4',\n '2bWLiRSA8GCh7UNEpiZdgsh2BMxZwKawk8ND4Z3iWrqDZE6JQk69n9WoCU9rKDrgWHw6qV25g8UBMJYddRJRHR9v'\n]] as parameters\n ,polygon.helius_apis.parse_transactions('mainnet' , [\n '5u5S6yWN5wJkEDr3hKeqF3Y8nWcyWaZDboEnpfUuAw1zcvbvevs58rEfCpN6VkfxaS4N8RCMkBcyhxBFs3eoL4U4',\n '2bWLiRSA8GCh7UNEpiZdgsh2BMxZwKawk8ND4Z3iWrqDZE6JQk69n9WoCU9rKDrgWHw6qV25g8UBMJYddRJRHR9v'\n]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_apis.parse_transactions('mainnet' , [\n '5u5S6yWN5wJkEDr3hKeqF3Y8nWcyWaZDboEnpfUuAw1zcvbvevs58rEfCpN6VkfxaS4N8RCMkBcyhxBFs3eoL4U4',\n '2bWLiRSA8GCh7UNEpiZdgsh2BMxZwKawk8ND4Z3iWrqDZE6JQk69n9WoCU9rKDrgWHw6qV25g8UBMJYddRJRHR9v'\n])\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_apis.parse_transactions('mainnet' , [\n '5u5S6yWN5wJkEDr3hKeqF3Y8nWcyWaZDboEnpfUuAw1zcvbvevs58rEfCpN6VkfxaS4N8RCMkBcyhxBFs3eoL4U4',\n '2bWLiRSA8GCh7UNEpiZdgsh2BMxZwKawk8ND4Z3iWrqDZE6JQk69n9WoCU9rKDrgWHw6qV25g8UBMJYddRJRHR9v'\n])\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_apis__helius_utils", "sql": " __dbt__cte__helius_apis__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_apis' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "parse_transactions", "file_key_name": "models.helius_apis__helius_utils", "attached_node": "model.livequery_models.helius_apis__helius_utils"}, "test.livequery_models.test_helius_das__get_asset_status_200.3e65208714": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , {\n 'id': 'F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_asset", "model": "{{ get_where_subquery(ref('helius_das__helius_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_helius_das", "name": "test_helius_das__get_asset_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_das__get_asset_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_das__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_das__get_asset_status_200.3e65208714", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_das__get_asset_status_200"], "alias": "get_asset_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.1401796, "relation_name": "polygon.test_helius_das.get_asset_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_das__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_das__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_das__helius_utils.yml/test_helius_das__get_asset_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'helius_das.get_asset' AS test_name\n ,['mainnet' , {\n 'id': 'F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk'\n}] as parameters\n ,polygon.helius_das.get_asset('mainnet' , {\n 'id': 'F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_das.get_asset('mainnet' , {\n 'id': 'F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_das.get_asset('mainnet' , {\n 'id': 'F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_das__helius_utils", "sql": " __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_asset", "file_key_name": "models.helius_das__helius_utils", "attached_node": "model.livequery_models.helius_das__helius_utils"}, "test.livequery_models.test_helius_das__get_signatures_for_asset_status_200.529a6b605d": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , {\n 'id': 'FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC',\n 'page': 1, -- Starts at 1\n 'limit': 1000 -- Limit 1000 per request.\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_signatures_for_asset", "model": "{{ get_where_subquery(ref('helius_das__helius_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_helius_das", "name": "test_helius_das__get_signatures_for_asset_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_das__get_signatures_for_asset_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_das__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_das__get_signatures_for_asset_status_200.529a6b605d", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_das__get_signatures_for_asset_status_200"], "alias": "get_signatures_for_asset_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.1464498, "relation_name": "polygon.test_helius_das.get_signatures_for_asset_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_das__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_das__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_das__helius_utils.yml/test_helius_das__get_signatures_for_asset_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'helius_das.get_signatures_for_asset' AS test_name\n ,['mainnet' , {\n 'id': 'FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC',\n 'page': 1, -- Starts at 1\n 'limit': 1000 -- Limit 1000 per request.\n}] as parameters\n ,polygon.helius_das.get_signatures_for_asset('mainnet' , {\n 'id': 'FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC',\n 'page': 1, -- Starts at 1\n 'limit': 1000 -- Limit 1000 per request.\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_das.get_signatures_for_asset('mainnet' , {\n 'id': 'FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC',\n 'page': 1, -- Starts at 1\n 'limit': 1000 -- Limit 1000 per request.\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_das.get_signatures_for_asset('mainnet' , {\n 'id': 'FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC',\n 'page': 1, -- Starts at 1\n 'limit': 1000 -- Limit 1000 per request.\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_das__helius_utils", "sql": " __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_signatures_for_asset", "file_key_name": "models.helius_das__helius_utils", "attached_node": "model.livequery_models.helius_das__helius_utils"}, "test.livequery_models.test_helius_das__search_assets_status_200.2373c30616": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , {\n 'ownerAddress': '2k5AXX4guW9XwRQ1AKCpAuUqgWDpQpwFfpVFh3hnm2Ha',\n 'compressed': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "search_assets", "model": "{{ get_where_subquery(ref('helius_das__helius_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_helius_das", "name": "test_helius_das__search_assets_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_das__search_assets_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_das__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_das__search_assets_status_200.2373c30616", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_das__search_assets_status_200"], "alias": "search_assets_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.1526961, "relation_name": "polygon.test_helius_das.search_assets_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_das__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_das__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_das__helius_utils.yml/test_helius_das__search_assets_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'helius_das.search_assets' AS test_name\n ,['mainnet' , {\n 'ownerAddress': '2k5AXX4guW9XwRQ1AKCpAuUqgWDpQpwFfpVFh3hnm2Ha',\n 'compressed': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}] as parameters\n ,polygon.helius_das.search_assets('mainnet' , {\n 'ownerAddress': '2k5AXX4guW9XwRQ1AKCpAuUqgWDpQpwFfpVFh3hnm2Ha',\n 'compressed': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_das.search_assets('mainnet' , {\n 'ownerAddress': '2k5AXX4guW9XwRQ1AKCpAuUqgWDpQpwFfpVFh3hnm2Ha',\n 'compressed': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_das.search_assets('mainnet' , {\n 'ownerAddress': '2k5AXX4guW9XwRQ1AKCpAuUqgWDpQpwFfpVFh3hnm2Ha',\n 'compressed': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_das__helius_utils", "sql": " __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "search_assets", "file_key_name": "models.helius_das__helius_utils", "attached_node": "model.livequery_models.helius_das__helius_utils"}, "test.livequery_models.test_helius_das__get_asset_proof_status_200.2ed48f9fe3": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , {\n 'id': 'Bu1DEKeawy7txbnCEJE4BU3BKLXaNAKCYcHR4XhndGss'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_asset_proof", "model": "{{ get_where_subquery(ref('helius_das__helius_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_helius_das", "name": "test_helius_das__get_asset_proof_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_das__get_asset_proof_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_das__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_das__get_asset_proof_status_200.2ed48f9fe3", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_das__get_asset_proof_status_200"], "alias": "get_asset_proof_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.158792, "relation_name": "polygon.test_helius_das.get_asset_proof_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_das__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_das__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_das__helius_utils.yml/test_helius_das__get_asset_proof_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'helius_das.get_asset_proof' AS test_name\n ,['mainnet' , {\n 'id': 'Bu1DEKeawy7txbnCEJE4BU3BKLXaNAKCYcHR4XhndGss'\n}] as parameters\n ,polygon.helius_das.get_asset_proof('mainnet' , {\n 'id': 'Bu1DEKeawy7txbnCEJE4BU3BKLXaNAKCYcHR4XhndGss'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_das.get_asset_proof('mainnet' , {\n 'id': 'Bu1DEKeawy7txbnCEJE4BU3BKLXaNAKCYcHR4XhndGss'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_das.get_asset_proof('mainnet' , {\n 'id': 'Bu1DEKeawy7txbnCEJE4BU3BKLXaNAKCYcHR4XhndGss'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_das__helius_utils", "sql": " __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_asset_proof", "file_key_name": "models.helius_das__helius_utils", "attached_node": "model.livequery_models.helius_das__helius_utils"}, "test.livequery_models.test_helius_das__get_assets_by_owner_status_200.6f2f1ef95c": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , {\n 'ownerAddress': '86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_assets_by_owner", "model": "{{ get_where_subquery(ref('helius_das__helius_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_helius_das", "name": "test_helius_das__get_assets_by_owner_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_das__get_assets_by_owner_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_das__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_das__get_assets_by_owner_status_200.6f2f1ef95c", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_das__get_assets_by_owner_status_200"], "alias": "get_assets_by_owner_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.1658497, "relation_name": "polygon.test_helius_das.get_assets_by_owner_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_das__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_das__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_das__helius_utils.yml/test_helius_das__get_assets_by_owner_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'helius_das.get_assets_by_owner' AS test_name\n ,['mainnet' , {\n 'ownerAddress': '86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}] as parameters\n ,polygon.helius_das.get_assets_by_owner('mainnet' , {\n 'ownerAddress': '86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_das.get_assets_by_owner('mainnet' , {\n 'ownerAddress': '86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_das.get_assets_by_owner('mainnet' , {\n 'ownerAddress': '86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_das__helius_utils", "sql": " __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_assets_by_owner", "file_key_name": "models.helius_das__helius_utils", "attached_node": "model.livequery_models.helius_das__helius_utils"}, "test.livequery_models.test_helius_das__get_assets_by_authority_status_200.c9ac02b165": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , {\n 'authorityAddress': '2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_assets_by_authority", "model": "{{ get_where_subquery(ref('helius_das__helius_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_helius_das", "name": "test_helius_das__get_assets_by_authority_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_das__get_assets_by_authority_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_das__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_das__get_assets_by_authority_status_200.c9ac02b165", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_das__get_assets_by_authority_status_200"], "alias": "get_assets_by_authority_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.172167, "relation_name": "polygon.test_helius_das.get_assets_by_authority_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_das__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_das__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_das__helius_utils.yml/test_helius_das__get_assets_by_authority_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'helius_das.get_assets_by_authority' AS test_name\n ,['mainnet' , {\n 'authorityAddress': '2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}] as parameters\n ,polygon.helius_das.get_assets_by_authority('mainnet' , {\n 'authorityAddress': '2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_das.get_assets_by_authority('mainnet' , {\n 'authorityAddress': '2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_das.get_assets_by_authority('mainnet' , {\n 'authorityAddress': '2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_das__helius_utils", "sql": " __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_assets_by_authority", "file_key_name": "models.helius_das__helius_utils", "attached_node": "model.livequery_models.helius_das__helius_utils"}, "test.livequery_models.test_helius_das__get_assets_by_creator_status_200.e8cb071d3a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , {\n 'creatorAddress': 'D3XrkNZz6wx6cofot7Zohsf2KSsu2ArngNk8VqU9cTY3',\n 'onlyVerified': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_assets_by_creator", "model": "{{ get_where_subquery(ref('helius_das__helius_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_helius_das", "name": "test_helius_das__get_assets_by_creator_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_das__get_assets_by_creator_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_das__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_das__get_assets_by_creator_status_200.e8cb071d3a", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_das__get_assets_by_creator_status_200"], "alias": "get_assets_by_creator_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.1782444, "relation_name": "polygon.test_helius_das.get_assets_by_creator_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_das__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_das__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_das__helius_utils.yml/test_helius_das__get_assets_by_creator_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'helius_das.get_assets_by_creator' AS test_name\n ,['mainnet' , {\n 'creatorAddress': 'D3XrkNZz6wx6cofot7Zohsf2KSsu2ArngNk8VqU9cTY3',\n 'onlyVerified': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}] as parameters\n ,polygon.helius_das.get_assets_by_creator('mainnet' , {\n 'creatorAddress': 'D3XrkNZz6wx6cofot7Zohsf2KSsu2ArngNk8VqU9cTY3',\n 'onlyVerified': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_das.get_assets_by_creator('mainnet' , {\n 'creatorAddress': 'D3XrkNZz6wx6cofot7Zohsf2KSsu2ArngNk8VqU9cTY3',\n 'onlyVerified': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_das.get_assets_by_creator('mainnet' , {\n 'creatorAddress': 'D3XrkNZz6wx6cofot7Zohsf2KSsu2ArngNk8VqU9cTY3',\n 'onlyVerified': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_das__helius_utils", "sql": " __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_assets_by_creator", "file_key_name": "models.helius_das__helius_utils", "attached_node": "model.livequery_models.helius_das__helius_utils"}, "test.livequery_models.test_helius_das__get_assets_by_group_status_200.fe5813195d": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , {\n 'groupKey': 'collection',\n 'groupValue': 'J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w',\n 'page': 1,\n 'limit': 1000\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_assets_by_group", "model": "{{ get_where_subquery(ref('helius_das__helius_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_helius_das", "name": "test_helius_das__get_assets_by_group_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_das__get_assets_by_group_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_das__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_das__get_assets_by_group_status_200.fe5813195d", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_das__get_assets_by_group_status_200"], "alias": "get_assets_by_group_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.1844974, "relation_name": "polygon.test_helius_das.get_assets_by_group_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_das__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_das__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_das__helius_utils.yml/test_helius_das__get_assets_by_group_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'helius_das.get_assets_by_group' AS test_name\n ,['mainnet' , {\n 'groupKey': 'collection',\n 'groupValue': 'J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w',\n 'page': 1,\n 'limit': 1000\n}] as parameters\n ,polygon.helius_das.get_assets_by_group('mainnet' , {\n 'groupKey': 'collection',\n 'groupValue': 'J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w',\n 'page': 1,\n 'limit': 1000\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_das.get_assets_by_group('mainnet' , {\n 'groupKey': 'collection',\n 'groupValue': 'J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w',\n 'page': 1,\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.helius_das.get_assets_by_group('mainnet' , {\n 'groupKey': 'collection',\n 'groupValue': 'J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w',\n 'page': 1,\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_das__helius_utils", "sql": " __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_assets_by_group", "file_key_name": "models.helius_das__helius_utils", "attached_node": "model.livequery_models.helius_das__helius_utils"}, "test.livequery_models.test_playgrounds__query_subgraph_status_200_liquidity_pools.dfcb23f707": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n liquidityPools(first: 200, orderBy: totalValueLockedUSD, orderDirection: desc) {\n id\n totalLiquidity\n name\n inputTokens {\n id\n symbol\n }\n }\n }',\n 'variables': {}\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "query_subgraph", "model": "{{ get_where_subquery(ref('playgrounds__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_playgrounds", "name": "test_playgrounds__query_subgraph_status_200_liquidity_pools", "resource_type": "test", "package_name": "livequery_models", "path": "test_playgrounds__query_subgraph_status_200_liquidity_pools.sql", "original_file_path": "models/deploy/marketplace/playgrounds/playgrounds__.yml", "unique_id": "test.livequery_models.test_playgrounds__query_subgraph_status_200_liquidity_pools.dfcb23f707", "fqn": ["livequery_models", "deploy", "marketplace", "playgrounds", "test_playgrounds__query_subgraph_status_200_liquidity_pools"], "alias": "query_subgraph_status_200_liquidity_pools", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.1920233, "relation_name": "polygon.test_playgrounds.query_subgraph_status_200_liquidity_pools", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "playgrounds__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.playgrounds__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/playgrounds/playgrounds__.yml/test_playgrounds__query_subgraph_status_200_liquidity_pools.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__playgrounds__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'playgrounds' as schema_\n) ,\ntest AS\n(\n SELECT\n 'playgrounds.query_subgraph' AS test_name\n ,['ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n liquidityPools(first: 200, orderBy: totalValueLockedUSD, orderDirection: desc) {\n id\n totalLiquidity\n name\n inputTokens {\n id\n symbol\n }\n }\n }',\n 'variables': {}\n}] as parameters\n ,polygon.playgrounds.query_subgraph('ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n liquidityPools(first: 200, orderBy: totalValueLockedUSD, orderDirection: desc) {\n id\n totalLiquidity\n name\n inputTokens {\n id\n symbol\n }\n }\n }',\n 'variables': {}\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.playgrounds.query_subgraph('ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n liquidityPools(first: 200, orderBy: totalValueLockedUSD, orderDirection: desc) {\n id\n totalLiquidity\n name\n inputTokens {\n id\n symbol\n }\n }\n }',\n 'variables': {}\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.playgrounds.query_subgraph('ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n liquidityPools(first: 200, orderBy: totalValueLockedUSD, orderDirection: desc) {\n id\n totalLiquidity\n name\n inputTokens {\n id\n symbol\n }\n }\n }',\n 'variables': {}\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.playgrounds__", "sql": " __dbt__cte__playgrounds__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'playgrounds' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "query_subgraph", "file_key_name": "models.playgrounds__", "attached_node": "model.livequery_models.playgrounds__"}, "test.livequery_models.test_playgrounds__query_subgraph_status_200_total_pool_count.86c8b9c6ee": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n protocols {\n name\n totalPoolCount\n }\n }',\n 'variables': {}\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "query_subgraph", "model": "{{ get_where_subquery(ref('playgrounds__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_playgrounds", "name": "test_playgrounds__query_subgraph_status_200_total_pool_count", "resource_type": "test", "package_name": "livequery_models", "path": "test_playgrounds__query_subgraph_status_200_total_pool_count.sql", "original_file_path": "models/deploy/marketplace/playgrounds/playgrounds__.yml", "unique_id": "test.livequery_models.test_playgrounds__query_subgraph_status_200_total_pool_count.86c8b9c6ee", "fqn": ["livequery_models", "deploy", "marketplace", "playgrounds", "test_playgrounds__query_subgraph_status_200_total_pool_count"], "alias": "query_subgraph_status_200_total_pool_count", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.1982281, "relation_name": "polygon.test_playgrounds.query_subgraph_status_200_total_pool_count", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "playgrounds__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.playgrounds__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/playgrounds/playgrounds__.yml/test_playgrounds__query_subgraph_status_200_total_pool_count.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__playgrounds__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'playgrounds' as schema_\n) ,\ntest AS\n(\n SELECT\n 'playgrounds.query_subgraph' AS test_name\n ,['ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n protocols {\n name\n totalPoolCount\n }\n }',\n 'variables': {}\n}] as parameters\n ,polygon.playgrounds.query_subgraph('ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n protocols {\n name\n totalPoolCount\n }\n }',\n 'variables': {}\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.playgrounds.query_subgraph('ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n protocols {\n name\n totalPoolCount\n }\n }',\n 'variables': {}\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.playgrounds.query_subgraph('ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n protocols {\n name\n totalPoolCount\n }\n }',\n 'variables': {}\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.playgrounds__", "sql": " __dbt__cte__playgrounds__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'playgrounds' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "query_subgraph", "file_key_name": "models.playgrounds__", "attached_node": "model.livequery_models.playgrounds__"}, "test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_status_200.94f0e0082e": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'wallet': 'DcTmx4VLcf5euAB17nynax7g55xuB3XKBDyz1pudMcjW',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "fetch_nfts", "model": "{{ get_where_subquery(ref('quicknode_solana_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_solana_nfts", "name": "test_quicknode_solana_nfts__fetch_nfts_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_solana_nfts__fetch_nfts_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_solana_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_status_200.94f0e0082e", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_solana_nfts__fetch_nfts_status_200"], "alias": "fetch_nfts_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.2063015, "relation_name": "polygon.test_quicknode_solana_nfts.fetch_nfts_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_solana_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_solana_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_solana_nfts__quicknode_utils.yml/test_quicknode_solana_nfts__fetch_nfts_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_solana_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_solana_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_solana_nfts.fetch_nfts' AS test_name\n ,[{\n 'wallet': 'DcTmx4VLcf5euAB17nynax7g55xuB3XKBDyz1pudMcjW',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n}] as parameters\n ,polygon.quicknode_solana_nfts.fetch_nfts({\n 'wallet': 'DcTmx4VLcf5euAB17nynax7g55xuB3XKBDyz1pudMcjW',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_solana_nfts.fetch_nfts({\n 'wallet': 'DcTmx4VLcf5euAB17nynax7g55xuB3XKBDyz1pudMcjW',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_solana_nfts.fetch_nfts({\n 'wallet': 'DcTmx4VLcf5euAB17nynax7g55xuB3XKBDyz1pudMcjW',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_solana_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_solana_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_solana_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fetch_nfts", "file_key_name": "models.quicknode_solana_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_solana_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_by_creator_status_200.70f38f0e31": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'creator': 'DznU28LgherhU2JwC2db3KmAeWPqoF9Yx2aVtNUudW6R',\n 'page': 1,\n 'perPage': 3\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "fetch_nfts_by_creator", "model": "{{ get_where_subquery(ref('quicknode_solana_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_solana_nfts", "name": "test_quicknode_solana_nfts__fetch_nfts_by_creator_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_solana_nfts__fetch_nfts_by_creator_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_solana_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_by_creator_status_200.70f38f0e31", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_solana_nfts__fetch_nfts_by_creator_status_200"], "alias": "fetch_nfts_by_creator_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.2126627, "relation_name": "polygon.test_quicknode_solana_nfts.fetch_nfts_by_creator_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_solana_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_solana_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_solana_nfts__quicknode_utils.yml/test_quicknode_solana_nfts__fetch_nfts_by_creator_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_solana_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_solana_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_solana_nfts.fetch_nfts_by_creator' AS test_name\n ,[{\n 'creator': 'DznU28LgherhU2JwC2db3KmAeWPqoF9Yx2aVtNUudW6R',\n 'page': 1,\n 'perPage': 3\n}] as parameters\n ,polygon.quicknode_solana_nfts.fetch_nfts_by_creator({\n 'creator': 'DznU28LgherhU2JwC2db3KmAeWPqoF9Yx2aVtNUudW6R',\n 'page': 1,\n 'perPage': 3\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_solana_nfts.fetch_nfts_by_creator({\n 'creator': 'DznU28LgherhU2JwC2db3KmAeWPqoF9Yx2aVtNUudW6R',\n 'page': 1,\n 'perPage': 3\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_solana_nfts.fetch_nfts_by_creator({\n 'creator': 'DznU28LgherhU2JwC2db3KmAeWPqoF9Yx2aVtNUudW6R',\n 'page': 1,\n 'perPage': 3\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_solana_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_solana_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_solana_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fetch_nfts_by_creator", "file_key_name": "models.quicknode_solana_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_solana_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_contract_address_status_200.529daa7446": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_token_metadata_by_contract_address", "model": "{{ get_where_subquery(ref('quicknode_polygon_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_polygon_tokens", "name": "test_quicknode_polygon_tokens__get_token_metadata_by_contract_address_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_tokens__get_token_metadata_by_contract_address_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_contract_address_status_200.529daa7446", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_tokens__get_token_metadata_by_contract_address_status_200"], "alias": "get_token_metadata_by_contract_address_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.2218032, "relation_name": "polygon.test_quicknode_polygon_tokens.get_token_metadata_by_contract_address_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml/test_quicknode_polygon_tokens__get_token_metadata_by_contract_address_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_polygon_tokens.get_token_metadata_by_contract_address' AS test_name\n ,[{\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n}] as parameters\n ,polygon.quicknode_polygon_tokens.get_token_metadata_by_contract_address({\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_tokens.get_token_metadata_by_contract_address({\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_tokens.get_token_metadata_by_contract_address({\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_token_metadata_by_contract_address", "file_key_name": "models.quicknode_polygon_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_symbol_status_200.d60e37734e": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'symbol': 'USDC'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_token_metadata_by_symbol", "model": "{{ get_where_subquery(ref('quicknode_polygon_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_polygon_tokens", "name": "test_quicknode_polygon_tokens__get_token_metadata_by_symbol_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_tokens__get_token_metadata_by_symbol_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_symbol_status_200.d60e37734e", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_tokens__get_token_metadata_by_symbol_status_200"], "alias": "get_token_metadata_by_symbol_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.228125, "relation_name": "polygon.test_quicknode_polygon_tokens.get_token_metadata_by_symbol_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml/test_quicknode_polygon_tokens__get_token_metadata_by_symbol_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_polygon_tokens.get_token_metadata_by_symbol' AS test_name\n ,[{\n 'symbol': 'USDC'\n}] as parameters\n ,polygon.quicknode_polygon_tokens.get_token_metadata_by_symbol({\n 'symbol': 'USDC'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_tokens.get_token_metadata_by_symbol({\n 'symbol': 'USDC'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_tokens.get_token_metadata_by_symbol({\n 'symbol': 'USDC'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_token_metadata_by_symbol", "file_key_name": "models.quicknode_polygon_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_tokens__get_transactions_by_address_status_200.194093aade": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_transactions_by_address", "model": "{{ get_where_subquery(ref('quicknode_polygon_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_polygon_tokens", "name": "test_quicknode_polygon_tokens__get_transactions_by_address_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_tokens__get_transactions_by_address_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_tokens__get_transactions_by_address_status_200.194093aade", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_tokens__get_transactions_by_address_status_200"], "alias": "get_transactions_by_address_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.2344677, "relation_name": "polygon.test_quicknode_polygon_tokens.get_transactions_by_address_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml/test_quicknode_polygon_tokens__get_transactions_by_address_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_polygon_tokens.get_transactions_by_address' AS test_name\n ,[{\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n}] as parameters\n ,polygon.quicknode_polygon_tokens.get_transactions_by_address({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_tokens.get_transactions_by_address({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_tokens.get_transactions_by_address({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_transactions_by_address", "file_key_name": "models.quicknode_polygon_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_balance_status_200.2bffddb733": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_wallet_token_balance", "model": "{{ get_where_subquery(ref('quicknode_polygon_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_polygon_tokens", "name": "test_quicknode_polygon_tokens__get_wallet_token_balance_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_tokens__get_wallet_token_balance_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_balance_status_200.2bffddb733", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_tokens__get_wallet_token_balance_status_200"], "alias": "get_wallet_token_balance_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.2406087, "relation_name": "polygon.test_quicknode_polygon_tokens.get_wallet_token_balance_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml/test_quicknode_polygon_tokens__get_wallet_token_balance_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_polygon_tokens.get_wallet_token_balance' AS test_name\n ,[{\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n}] as parameters\n ,polygon.quicknode_polygon_tokens.get_wallet_token_balance({\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_tokens.get_wallet_token_balance({\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_tokens.get_wallet_token_balance({\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_wallet_token_balance", "file_key_name": "models.quicknode_polygon_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_transactions_status_200.57669f1a96": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_wallet_token_transactions", "model": "{{ get_where_subquery(ref('quicknode_polygon_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_polygon_tokens", "name": "test_quicknode_polygon_tokens__get_wallet_token_transactions_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_tokens__get_wallet_token_transactions_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_transactions_status_200.57669f1a96", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_tokens__get_wallet_token_transactions_status_200"], "alias": "get_wallet_token_transactions_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.246915, "relation_name": "polygon.test_quicknode_polygon_tokens.get_wallet_token_transactions_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml/test_quicknode_polygon_tokens__get_wallet_token_transactions_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_polygon_tokens.get_wallet_token_transactions' AS test_name\n ,[{\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n}] as parameters\n ,polygon.quicknode_polygon_tokens.get_wallet_token_transactions({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_tokens.get_wallet_token_transactions({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_tokens.get_wallet_token_transactions({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_wallet_token_transactions", "file_key_name": "models.quicknode_polygon_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nft_collection_details_status_200.5a3e5bd53e": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "fetch_nft_collection_details", "model": "{{ get_where_subquery(ref('quicknode_ethereum_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_ethereum_nfts", "name": "test_quicknode_ethereum_nfts__fetch_nft_collection_details_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_nfts__fetch_nft_collection_details_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nft_collection_details_status_200.5a3e5bd53e", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_nfts__fetch_nft_collection_details_status_200"], "alias": "fetch_nft_collection_details_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.2555854, "relation_name": "polygon.test_quicknode_ethereum_nfts.fetch_nft_collection_details_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml/test_quicknode_ethereum_nfts__fetch_nft_collection_details_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_ethereum_nfts.fetch_nft_collection_details' AS test_name\n ,[{\n 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n}] as parameters\n ,polygon.quicknode_ethereum_nfts.fetch_nft_collection_details({\n 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_nfts.fetch_nft_collection_details({\n 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_nfts.fetch_nft_collection_details({\n 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fetch_nft_collection_details", "file_key_name": "models.quicknode_ethereum_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_status_200.e34b6fbe64": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "fetch_nfts", "model": "{{ get_where_subquery(ref('quicknode_ethereum_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_ethereum_nfts", "name": "test_quicknode_ethereum_nfts__fetch_nfts_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_nfts__fetch_nfts_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_status_200.e34b6fbe64", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_nfts__fetch_nfts_status_200"], "alias": "fetch_nfts_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.2619333, "relation_name": "polygon.test_quicknode_ethereum_nfts.fetch_nfts_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml/test_quicknode_ethereum_nfts__fetch_nfts_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_ethereum_nfts.fetch_nfts' AS test_name\n ,[{\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n}] as parameters\n ,polygon.quicknode_ethereum_nfts.fetch_nfts({\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_nfts.fetch_nfts({\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_nfts.fetch_nfts({\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fetch_nfts", "file_key_name": "models.quicknode_ethereum_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_by_collection_status_200.ba7f5aeceb": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "fetch_nfts_by_collection", "model": "{{ get_where_subquery(ref('quicknode_ethereum_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_ethereum_nfts", "name": "test_quicknode_ethereum_nfts__fetch_nfts_by_collection_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_nfts__fetch_nfts_by_collection_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_by_collection_status_200.ba7f5aeceb", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_nfts__fetch_nfts_by_collection_status_200"], "alias": "fetch_nfts_by_collection_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.267978, "relation_name": "polygon.test_quicknode_ethereum_nfts.fetch_nfts_by_collection_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml/test_quicknode_ethereum_nfts__fetch_nfts_by_collection_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_ethereum_nfts.fetch_nfts_by_collection' AS test_name\n ,[{\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n}] as parameters\n ,polygon.quicknode_ethereum_nfts.fetch_nfts_by_collection({\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_nfts.fetch_nfts_by_collection({\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_nfts.fetch_nfts_by_collection({\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fetch_nfts_by_collection", "file_key_name": "models.quicknode_ethereum_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_nfts__get_transfers_by_nft_status_200.2e5143d642": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 }\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_transfers_by_nft", "model": "{{ get_where_subquery(ref('quicknode_ethereum_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_ethereum_nfts", "name": "test_quicknode_ethereum_nfts__get_transfers_by_nft_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_nfts__get_transfers_by_nft_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_nfts__get_transfers_by_nft_status_200.2e5143d642", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_nfts__get_transfers_by_nft_status_200"], "alias": "get_transfers_by_nft_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.2751255, "relation_name": "polygon.test_quicknode_ethereum_nfts.get_transfers_by_nft_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml/test_quicknode_ethereum_nfts__get_transfers_by_nft_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_ethereum_nfts.get_transfers_by_nft' AS test_name\n ,[{ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 }] as parameters\n ,polygon.quicknode_ethereum_nfts.get_transfers_by_nft({ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 }) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_nfts.get_transfers_by_nft({ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 })\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_nfts.get_transfers_by_nft({ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 })\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_transfers_by_nft", "file_key_name": "models.quicknode_ethereum_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_nfts__verify_nfts_owner_status_200.34afbca510": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "verify_nfts_owner", "model": "{{ get_where_subquery(ref('quicknode_ethereum_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_ethereum_nfts", "name": "test_quicknode_ethereum_nfts__verify_nfts_owner_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_nfts__verify_nfts_owner_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_nfts__verify_nfts_owner_status_200.34afbca510", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_nfts__verify_nfts_owner_status_200"], "alias": "verify_nfts_owner_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.2815049, "relation_name": "polygon.test_quicknode_ethereum_nfts.verify_nfts_owner_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml/test_quicknode_ethereum_nfts__verify_nfts_owner_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_ethereum_nfts.verify_nfts_owner' AS test_name\n ,[{ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n}] as parameters\n ,polygon.quicknode_ethereum_nfts.verify_nfts_owner({ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_nfts.verify_nfts_owner({ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_nfts.verify_nfts_owner({ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "verify_nfts_owner", "file_key_name": "models.quicknode_ethereum_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_nfts__fetch_nft_collection_details_status_200.b69737052b": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{ 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "fetch_nft_collection_details", "model": "{{ get_where_subquery(ref('quicknode_polygon_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_polygon_nfts", "name": "test_quicknode_polygon_nfts__fetch_nft_collection_details_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_nfts__fetch_nft_collection_details_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_nfts__fetch_nft_collection_details_status_200.b69737052b", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_nfts__fetch_nft_collection_details_status_200"], "alias": "fetch_nft_collection_details_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.2890384, "relation_name": "polygon.test_quicknode_polygon_nfts.fetch_nft_collection_details_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml/test_quicknode_polygon_nfts__fetch_nft_collection_details_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_polygon_nfts.fetch_nft_collection_details' AS test_name\n ,[{ 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n}] as parameters\n ,polygon.quicknode_polygon_nfts.fetch_nft_collection_details({ 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_nfts.fetch_nft_collection_details({ 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_nfts.fetch_nft_collection_details({ 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fetch_nft_collection_details", "file_key_name": "models.quicknode_polygon_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_status_200.2d1f2ae9d6": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "fetch_nfts", "model": "{{ get_where_subquery(ref('quicknode_polygon_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_polygon_nfts", "name": "test_quicknode_polygon_nfts__fetch_nfts_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_nfts__fetch_nfts_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_status_200.2d1f2ae9d6", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_nfts__fetch_nfts_status_200"], "alias": "fetch_nfts_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.2950952, "relation_name": "polygon.test_quicknode_polygon_nfts.fetch_nfts_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml/test_quicknode_polygon_nfts__fetch_nfts_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_polygon_nfts.fetch_nfts' AS test_name\n ,[{\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n}] as parameters\n ,polygon.quicknode_polygon_nfts.fetch_nfts({\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_nfts.fetch_nfts({\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_nfts.fetch_nfts({\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fetch_nfts", "file_key_name": "models.quicknode_polygon_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_by_collection_status_200.8286191e06": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "fetch_nfts_by_collection", "model": "{{ get_where_subquery(ref('quicknode_polygon_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_polygon_nfts", "name": "test_quicknode_polygon_nfts__fetch_nfts_by_collection_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_nfts__fetch_nfts_by_collection_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_by_collection_status_200.8286191e06", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_nfts__fetch_nfts_by_collection_status_200"], "alias": "fetch_nfts_by_collection_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.3010259, "relation_name": "polygon.test_quicknode_polygon_nfts.fetch_nfts_by_collection_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml/test_quicknode_polygon_nfts__fetch_nfts_by_collection_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_polygon_nfts.fetch_nfts_by_collection' AS test_name\n ,[{\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n}] as parameters\n ,polygon.quicknode_polygon_nfts.fetch_nfts_by_collection({\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_nfts.fetch_nfts_by_collection({\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_nfts.fetch_nfts_by_collection({\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fetch_nfts_by_collection", "file_key_name": "models.quicknode_polygon_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_nfts__get_transfers_by_nft_status_200.2f6ba1e185": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 }\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_transfers_by_nft", "model": "{{ get_where_subquery(ref('quicknode_polygon_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_polygon_nfts", "name": "test_quicknode_polygon_nfts__get_transfers_by_nft_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_nfts__get_transfers_by_nft_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_nfts__get_transfers_by_nft_status_200.2f6ba1e185", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_nfts__get_transfers_by_nft_status_200"], "alias": "get_transfers_by_nft_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.3069844, "relation_name": "polygon.test_quicknode_polygon_nfts.get_transfers_by_nft_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml/test_quicknode_polygon_nfts__get_transfers_by_nft_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_polygon_nfts.get_transfers_by_nft' AS test_name\n ,[{ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 }] as parameters\n ,polygon.quicknode_polygon_nfts.get_transfers_by_nft({ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 }) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_nfts.get_transfers_by_nft({ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 })\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_nfts.get_transfers_by_nft({ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 })\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_transfers_by_nft", "file_key_name": "models.quicknode_polygon_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_nfts__verify_nfts_owner_status_200.e87bb12c13": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "verify_nfts_owner", "model": "{{ get_where_subquery(ref('quicknode_polygon_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_polygon_nfts", "name": "test_quicknode_polygon_nfts__verify_nfts_owner_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_nfts__verify_nfts_owner_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_nfts__verify_nfts_owner_status_200.e87bb12c13", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_nfts__verify_nfts_owner_status_200"], "alias": "verify_nfts_owner_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.3126812, "relation_name": "polygon.test_quicknode_polygon_nfts.verify_nfts_owner_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml/test_quicknode_polygon_nfts__verify_nfts_owner_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_polygon_nfts.verify_nfts_owner' AS test_name\n ,[{ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n}] as parameters\n ,polygon.quicknode_polygon_nfts.verify_nfts_owner({ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_nfts.verify_nfts_owner({ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_polygon_nfts.verify_nfts_owner({ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "verify_nfts_owner", "file_key_name": "models.quicknode_polygon_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_contract_address_status_200.3d5c91f8e2": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_token_metadata_by_contract_address", "model": "{{ get_where_subquery(ref('quicknode_ethereum_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_ethereum_tokens", "name": "test_quicknode_ethereum_tokens__get_token_metadata_by_contract_address_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_tokens__get_token_metadata_by_contract_address_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_contract_address_status_200.3d5c91f8e2", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_tokens__get_token_metadata_by_contract_address_status_200"], "alias": "get_token_metadata_by_contract_address_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.3197315, "relation_name": "polygon.test_quicknode_ethereum_tokens.get_token_metadata_by_contract_address_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml/test_quicknode_ethereum_tokens__get_token_metadata_by_contract_address_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_ethereum_tokens.get_token_metadata_by_contract_address' AS test_name\n ,[{\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n}] as parameters\n ,polygon.quicknode_ethereum_tokens.get_token_metadata_by_contract_address({\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_tokens.get_token_metadata_by_contract_address({\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_tokens.get_token_metadata_by_contract_address({\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_token_metadata_by_contract_address", "file_key_name": "models.quicknode_ethereum_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_symbol_status_200.c34c43a92d": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'symbol': 'USDC'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_token_metadata_by_symbol", "model": "{{ get_where_subquery(ref('quicknode_ethereum_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_ethereum_tokens", "name": "test_quicknode_ethereum_tokens__get_token_metadata_by_symbol_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_tokens__get_token_metadata_by_symbol_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_symbol_status_200.c34c43a92d", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_tokens__get_token_metadata_by_symbol_status_200"], "alias": "get_token_metadata_by_symbol_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.3256874, "relation_name": "polygon.test_quicknode_ethereum_tokens.get_token_metadata_by_symbol_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml/test_quicknode_ethereum_tokens__get_token_metadata_by_symbol_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_ethereum_tokens.get_token_metadata_by_symbol' AS test_name\n ,[{\n 'symbol': 'USDC'\n}] as parameters\n ,polygon.quicknode_ethereum_tokens.get_token_metadata_by_symbol({\n 'symbol': 'USDC'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_tokens.get_token_metadata_by_symbol({\n 'symbol': 'USDC'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_tokens.get_token_metadata_by_symbol({\n 'symbol': 'USDC'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_token_metadata_by_symbol", "file_key_name": "models.quicknode_ethereum_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_tokens__get_transactions_by_address_status_200.29d4ecb431": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_transactions_by_address", "model": "{{ get_where_subquery(ref('quicknode_ethereum_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_ethereum_tokens", "name": "test_quicknode_ethereum_tokens__get_transactions_by_address_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_tokens__get_transactions_by_address_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_tokens__get_transactions_by_address_status_200.29d4ecb431", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_tokens__get_transactions_by_address_status_200"], "alias": "get_transactions_by_address_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.3313901, "relation_name": "polygon.test_quicknode_ethereum_tokens.get_transactions_by_address_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml/test_quicknode_ethereum_tokens__get_transactions_by_address_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_ethereum_tokens.get_transactions_by_address' AS test_name\n ,[{\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n}] as parameters\n ,polygon.quicknode_ethereum_tokens.get_transactions_by_address({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_tokens.get_transactions_by_address({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_tokens.get_transactions_by_address({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_transactions_by_address", "file_key_name": "models.quicknode_ethereum_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_balance_status_200.9cda095850": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_wallet_token_balance", "model": "{{ get_where_subquery(ref('quicknode_ethereum_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_ethereum_tokens", "name": "test_quicknode_ethereum_tokens__get_wallet_token_balance_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_tokens__get_wallet_token_balance_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_balance_status_200.9cda095850", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_tokens__get_wallet_token_balance_status_200"], "alias": "get_wallet_token_balance_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.3372478, "relation_name": "polygon.test_quicknode_ethereum_tokens.get_wallet_token_balance_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml/test_quicknode_ethereum_tokens__get_wallet_token_balance_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_ethereum_tokens.get_wallet_token_balance' AS test_name\n ,[{\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n}] as parameters\n ,polygon.quicknode_ethereum_tokens.get_wallet_token_balance({\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_tokens.get_wallet_token_balance({\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_tokens.get_wallet_token_balance({\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_wallet_token_balance", "file_key_name": "models.quicknode_ethereum_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_transactions_status_200.990e59cd6c": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_wallet_token_transactions", "model": "{{ get_where_subquery(ref('quicknode_ethereum_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_quicknode_ethereum_tokens", "name": "test_quicknode_ethereum_tokens__get_wallet_token_transactions_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_tokens__get_wallet_token_transactions_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_transactions_status_200.990e59cd6c", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_tokens__get_wallet_token_transactions_status_200"], "alias": "get_wallet_token_transactions_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.3428855, "relation_name": "polygon.test_quicknode_ethereum_tokens.get_wallet_token_transactions_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml/test_quicknode_ethereum_tokens__get_wallet_token_transactions_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'quicknode_ethereum_tokens.get_wallet_token_transactions' AS test_name\n ,[{\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n}] as parameters\n ,polygon.quicknode_ethereum_tokens.get_wallet_token_transactions({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_tokens.get_wallet_token_transactions({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.quicknode_ethereum_tokens.get_wallet_token_transactions({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_wallet_token_transactions", "file_key_name": "models.quicknode_ethereum_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"}, "test.livequery_models.test_footprint_utils__get_status_200_v2_protocol_info.4d260facf4": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v3/protocol/getProtocolStatsHistory' , {\n 'chain': 'Polygon',\n 'protocol_slug': 'planet-ix',\n 'start_time': '2023-07-01',\n 'end_time': '2023-07-25'\n }\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('footprint_utils__footprint_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_footprint_utils", "name": "test_footprint_utils__get_status_200_v2_protocol_info", "resource_type": "test", "package_name": "livequery_models", "path": "test_footprint_utils__get_status_200_v2_protocol_info.sql", "original_file_path": "models/deploy/marketplace/footprint/footprint_utils__footprint_utils.yml", "unique_id": "test.livequery_models.test_footprint_utils__get_status_200_v2_protocol_info.4d260facf4", "fqn": ["livequery_models", "deploy", "marketplace", "footprint", "test_footprint_utils__get_status_200_v2_protocol_info"], "alias": "get_status_200_v2_protocol_info", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.349555, "relation_name": "polygon.test_footprint_utils.get_status_200_v2_protocol_info", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "footprint_utils__footprint_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.footprint_utils__footprint_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/footprint/footprint_utils__footprint_utils.yml/test_footprint_utils__get_status_200_v2_protocol_info.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__footprint_utils__footprint_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'footprint_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'footprint_utils.get' AS test_name\n ,['/v3/protocol/getProtocolStatsHistory' , {\n 'chain': 'Polygon',\n 'protocol_slug': 'planet-ix',\n 'start_time': '2023-07-01',\n 'end_time': '2023-07-25'\n }] as parameters\n ,polygon.footprint_utils.get('/v3/protocol/getProtocolStatsHistory' , {\n 'chain': 'Polygon',\n 'protocol_slug': 'planet-ix',\n 'start_time': '2023-07-01',\n 'end_time': '2023-07-25'\n }) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.footprint_utils.get('/v3/protocol/getProtocolStatsHistory' , {\n 'chain': 'Polygon',\n 'protocol_slug': 'planet-ix',\n 'start_time': '2023-07-01',\n 'end_time': '2023-07-25'\n })\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.footprint_utils.get('/v3/protocol/getProtocolStatsHistory' , {\n 'chain': 'Polygon',\n 'protocol_slug': 'planet-ix',\n 'start_time': '2023-07-01',\n 'end_time': '2023-07-25'\n })\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.footprint_utils__footprint_utils", "sql": " __dbt__cte__footprint_utils__footprint_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'footprint_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.footprint_utils__footprint_utils", "attached_node": "model.livequery_models.footprint_utils__footprint_utils"}, "test.livequery_models.test_cmc__get_status_200.1e44de8c9e": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v2/cryptocurrency/ohlcv/historical' , {'interval': 'hourly', 'time_period': 'hourly', 'time_start': DATE_PART('EPOCH_SECOND', DATEADD('hour', -2, CURRENT_TIMESTAMP())), 'time_end': DATE_PART('EPOCH_SECOND', DATEADD('hour', -1, CURRENT_TIMESTAMP())), 'id': '15478,15479'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('cmc__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_cmc", "name": "test_cmc__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_cmc__get_status_200.sql", "original_file_path": "models/deploy/marketplace/cmc/cmc__.yml", "unique_id": "test.livequery_models.test_cmc__get_status_200.1e44de8c9e", "fqn": ["livequery_models", "deploy", "marketplace", "cmc", "test_cmc__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.3565855, "relation_name": "polygon.test_cmc.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "cmc__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.cmc__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/cmc/cmc__.yml/test_cmc__get_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__cmc__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'cmc' as schema_\n) ,\ntest AS\n(\n SELECT\n 'cmc.get' AS test_name\n ,['/v2/cryptocurrency/ohlcv/historical' , {'interval': 'hourly', 'time_period': 'hourly', 'time_start': DATE_PART('EPOCH_SECOND', DATEADD('hour', -2, CURRENT_TIMESTAMP())), 'time_end': DATE_PART('EPOCH_SECOND', DATEADD('hour', -1, CURRENT_TIMESTAMP())), 'id': '15478,15479'}] as parameters\n ,polygon.cmc.get('/v2/cryptocurrency/ohlcv/historical' , {'interval': 'hourly', 'time_period': 'hourly', 'time_start': DATE_PART('EPOCH_SECOND', DATEADD('hour', -2, CURRENT_TIMESTAMP())), 'time_end': DATE_PART('EPOCH_SECOND', DATEADD('hour', -1, CURRENT_TIMESTAMP())), 'id': '15478,15479'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.cmc.get('/v2/cryptocurrency/ohlcv/historical' , {'interval': 'hourly', 'time_period': 'hourly', 'time_start': DATE_PART('EPOCH_SECOND', DATEADD('hour', -2, CURRENT_TIMESTAMP())), 'time_end': DATE_PART('EPOCH_SECOND', DATEADD('hour', -1, CURRENT_TIMESTAMP())), 'id': '15478,15479'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.cmc.get('/v2/cryptocurrency/ohlcv/historical' , {'interval': 'hourly', 'time_period': 'hourly', 'time_start': DATE_PART('EPOCH_SECOND', DATEADD('hour', -2, CURRENT_TIMESTAMP())), 'time_end': DATE_PART('EPOCH_SECOND', DATEADD('hour', -1, CURRENT_TIMESTAMP())), 'id': '15478,15479'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.cmc__", "sql": " __dbt__cte__cmc__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'cmc' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.cmc__", "attached_node": "model.livequery_models.cmc__"}, "test.livequery_models.test_apilayer__get_status_200.f739b0d36b": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/odds/sports' , {'all': 'true'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('apilayer__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_apilayer", "name": "test_apilayer__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_apilayer__get_status_200.sql", "original_file_path": "models/deploy/marketplace/apilayer/apilayer__.yml", "unique_id": "test.livequery_models.test_apilayer__get_status_200.f739b0d36b", "fqn": ["livequery_models", "deploy", "marketplace", "apilayer", "test_apilayer__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.3637424, "relation_name": "polygon.test_apilayer.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apilayer__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.apilayer__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/apilayer/apilayer__.yml/test_apilayer__get_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__apilayer__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'apilayer' as schema_\n) ,\ntest AS\n(\n SELECT\n 'apilayer.get' AS test_name\n ,['/odds/sports' , {'all': 'true'}] as parameters\n ,polygon.apilayer.get('/odds/sports' , {'all': 'true'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.apilayer.get('/odds/sports' , {'all': 'true'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.apilayer.get('/odds/sports' , {'all': 'true'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.apilayer__", "sql": " __dbt__cte__apilayer__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'apilayer' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.apilayer__", "attached_node": "model.livequery_models.apilayer__"}, "test.livequery_models.test_alchemy_tokens__get_token_allowance_status_200.65ce803e24": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', [{'contract': '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', 'owner': '0xf1a726210550c306a9964b251cbcd3fa5ecb275d', 'spender': '0xdef1c0ded9bec7f1a1670819833240f027b25eff'}]\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_token_allowance", "model": "{{ get_where_subquery(ref('alchemy_tokens__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_tokens", "name": "test_alchemy_tokens__get_token_allowance_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_tokens__get_token_allowance_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_tokens__get_token_allowance_status_200.65ce803e24", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_tokens__get_token_allowance_status_200"], "alias": "get_token_allowance_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.3719435, "relation_name": "polygon.test_alchemy_tokens.get_token_allowance_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_tokens__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_tokens__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.yml/test_alchemy_tokens__get_token_allowance_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_tokens__alchemy_utils as (\n\nSELECT 'alchemy_tokens' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_tokens.get_token_allowance' AS test_name\n ,['eth-mainnet', [{'contract': '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', 'owner': '0xf1a726210550c306a9964b251cbcd3fa5ecb275d', 'spender': '0xdef1c0ded9bec7f1a1670819833240f027b25eff'}]] as parameters\n ,polygon.alchemy_tokens.get_token_allowance('eth-mainnet', [{'contract': '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', 'owner': '0xf1a726210550c306a9964b251cbcd3fa5ecb275d', 'spender': '0xdef1c0ded9bec7f1a1670819833240f027b25eff'}]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_tokens.get_token_allowance('eth-mainnet', [{'contract': '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', 'owner': '0xf1a726210550c306a9964b251cbcd3fa5ecb275d', 'spender': '0xdef1c0ded9bec7f1a1670819833240f027b25eff'}])\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_tokens.get_token_allowance('eth-mainnet', [{'contract': '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', 'owner': '0xf1a726210550c306a9964b251cbcd3fa5ecb275d', 'spender': '0xdef1c0ded9bec7f1a1670819833240f027b25eff'}])\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_tokens__alchemy_utils", "sql": " __dbt__cte__alchemy_tokens__alchemy_utils as (\n\nSELECT 'alchemy_tokens' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_token_allowance", "file_key_name": "models.alchemy_tokens__alchemy_utils", "attached_node": "model.livequery_models.alchemy_tokens__alchemy_utils"}, "test.livequery_models.test_alchemy_tokens__get_token_balances_status_200.bdaa3fdabb": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', ['0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5', 'erc20']\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_token_balances", "model": "{{ get_where_subquery(ref('alchemy_tokens__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_tokens", "name": "test_alchemy_tokens__get_token_balances_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_tokens__get_token_balances_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_tokens__get_token_balances_status_200.bdaa3fdabb", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_tokens__get_token_balances_status_200"], "alias": "get_token_balances_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.3779507, "relation_name": "polygon.test_alchemy_tokens.get_token_balances_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_tokens__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_tokens__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.yml/test_alchemy_tokens__get_token_balances_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_tokens__alchemy_utils as (\n\nSELECT 'alchemy_tokens' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_tokens.get_token_balances' AS test_name\n ,['eth-mainnet', ['0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5', 'erc20']] as parameters\n ,polygon.alchemy_tokens.get_token_balances('eth-mainnet', ['0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5', 'erc20']) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_tokens.get_token_balances('eth-mainnet', ['0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5', 'erc20'])\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_tokens.get_token_balances('eth-mainnet', ['0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5', 'erc20'])\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_tokens__alchemy_utils", "sql": " __dbt__cte__alchemy_tokens__alchemy_utils as (\n\nSELECT 'alchemy_tokens' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_token_balances", "file_key_name": "models.alchemy_tokens__alchemy_utils", "attached_node": "model.livequery_models.alchemy_tokens__alchemy_utils"}, "test.livequery_models.test_alchemy_tokens__get_token_metadata_status_200.ff08820c76": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', ['0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48']\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_token_metadata", "model": "{{ get_where_subquery(ref('alchemy_tokens__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_tokens", "name": "test_alchemy_tokens__get_token_metadata_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_tokens__get_token_metadata_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_tokens__get_token_metadata_status_200.ff08820c76", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_tokens__get_token_metadata_status_200"], "alias": "get_token_metadata_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.3848073, "relation_name": "polygon.test_alchemy_tokens.get_token_metadata_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_tokens__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_tokens__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.yml/test_alchemy_tokens__get_token_metadata_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_tokens__alchemy_utils as (\n\nSELECT 'alchemy_tokens' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_tokens.get_token_metadata' AS test_name\n ,['eth-mainnet', ['0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48']] as parameters\n ,polygon.alchemy_tokens.get_token_metadata('eth-mainnet', ['0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48']) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_tokens.get_token_metadata('eth-mainnet', ['0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'])\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_tokens.get_token_metadata('eth-mainnet', ['0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'])\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_tokens__alchemy_utils", "sql": " __dbt__cte__alchemy_tokens__alchemy_utils as (\n\nSELECT 'alchemy_tokens' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_token_metadata", "file_key_name": "models.alchemy_tokens__alchemy_utils", "attached_node": "model.livequery_models.alchemy_tokens__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_nfts_status_200.34e3001576": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'owner': '0x4a9318F375937B56045E5a548e7E66AEA61Dd610'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_nfts", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_nfts_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_nfts_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_nfts_status_200.34e3001576", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_nfts_status_200"], "alias": "get_nfts_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.4001033, "relation_name": "polygon.test_alchemy_nfts.get_nfts_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_nfts_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.get_nfts' AS test_name\n ,['eth-mainnet', {'owner': '0x4a9318F375937B56045E5a548e7E66AEA61Dd610'}] as parameters\n ,polygon.alchemy_nfts.get_nfts('eth-mainnet', {'owner': '0x4a9318F375937B56045E5a548e7E66AEA61Dd610'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_nfts('eth-mainnet', {'owner': '0x4a9318F375937B56045E5a548e7E66AEA61Dd610'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_nfts('eth-mainnet', {'owner': '0x4a9318F375937B56045E5a548e7E66AEA61Dd610'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_nfts", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_owners_for_token_status_200.c534c2579d": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_owners_for_token", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_owners_for_token_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_owners_for_token_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_owners_for_token_status_200.c534c2579d", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_owners_for_token_status_200"], "alias": "get_owners_for_token_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.4064598, "relation_name": "polygon.test_alchemy_nfts.get_owners_for_token_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_owners_for_token_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.get_owners_for_token' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}] as parameters\n ,polygon.alchemy_nfts.get_owners_for_token('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_owners_for_token('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_owners_for_token('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_owners_for_token", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_owners_for_collection_status_200.3cdb9f0962": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withTokenBalances': True}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_owners_for_collection", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_owners_for_collection_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_owners_for_collection_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_owners_for_collection_status_200.3cdb9f0962", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_owners_for_collection_status_200"], "alias": "get_owners_for_collection_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.412773, "relation_name": "polygon.test_alchemy_nfts.get_owners_for_collection_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_owners_for_collection_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.get_owners_for_collection' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withTokenBalances': True}] as parameters\n ,polygon.alchemy_nfts.get_owners_for_collection('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withTokenBalances': True}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_owners_for_collection('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withTokenBalances': True})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_owners_for_collection('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withTokenBalances': True})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_owners_for_collection", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__is_holder_of_collection_status_200.d94f7ae355": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'wallet': '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "is_holder_of_collection", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__is_holder_of_collection_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__is_holder_of_collection_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__is_holder_of_collection_status_200.d94f7ae355", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__is_holder_of_collection_status_200"], "alias": "is_holder_of_collection_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.4188738, "relation_name": "polygon.test_alchemy_nfts.is_holder_of_collection_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__is_holder_of_collection_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.is_holder_of_collection' AS test_name\n ,['eth-mainnet', {'wallet': '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}] as parameters\n ,polygon.alchemy_nfts.is_holder_of_collection('eth-mainnet', {'wallet': '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.is_holder_of_collection('eth-mainnet', {'wallet': '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.is_holder_of_collection('eth-mainnet', {'wallet': '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "is_holder_of_collection", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_contracts_for_owner_status_200.29e9e60296": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'owner': 'vitalik.eth', 'pageSize': 100, 'page': 1}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_contracts_for_owner", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_contracts_for_owner_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_contracts_for_owner_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_contracts_for_owner_status_200.29e9e60296", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_contracts_for_owner_status_200"], "alias": "get_contracts_for_owner_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.4251745, "relation_name": "polygon.test_alchemy_nfts.get_contracts_for_owner_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_contracts_for_owner_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.get_contracts_for_owner' AS test_name\n ,['eth-mainnet', {'owner': 'vitalik.eth', 'pageSize': 100, 'page': 1}] as parameters\n ,polygon.alchemy_nfts.get_contracts_for_owner('eth-mainnet', {'owner': 'vitalik.eth', 'pageSize': 100, 'page': 1}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_contracts_for_owner('eth-mainnet', {'owner': 'vitalik.eth', 'pageSize': 100, 'page': 1})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_contracts_for_owner('eth-mainnet', {'owner': 'vitalik.eth', 'pageSize': 100, 'page': 1})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_contracts_for_owner", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_nft_metadata_status_200.aad531a83a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_nft_metadata", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_nft_metadata_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_nft_metadata_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_nft_metadata_status_200.aad531a83a", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_nft_metadata_status_200"], "alias": "get_nft_metadata_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.4314537, "relation_name": "polygon.test_alchemy_nfts.get_nft_metadata_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_nft_metadata_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.get_nft_metadata' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}] as parameters\n ,polygon.alchemy_nfts.get_nft_metadata('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_nft_metadata('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_nft_metadata('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_nft_metadata", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_nft_metadata_batch_status_200.44d0ef0140": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'tokens': [{'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}, {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 43}]}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_nft_metadata_batch", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_nft_metadata_batch_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_nft_metadata_batch_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_nft_metadata_batch_status_200.44d0ef0140", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_nft_metadata_batch_status_200"], "alias": "get_nft_metadata_batch_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.4371388, "relation_name": "polygon.test_alchemy_nfts.get_nft_metadata_batch_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_nft_metadata_batch_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.get_nft_metadata_batch' AS test_name\n ,['eth-mainnet', {'tokens': [{'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}, {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 43}]}] as parameters\n ,polygon.alchemy_nfts.get_nft_metadata_batch('eth-mainnet', {'tokens': [{'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}, {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 43}]}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_nft_metadata_batch('eth-mainnet', {'tokens': [{'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}, {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 43}]})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_nft_metadata_batch('eth-mainnet', {'tokens': [{'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}, {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 43}]})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_nft_metadata_batch", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_contract_metadata_status_200.0a9337a17a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_contract_metadata", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_contract_metadata_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_contract_metadata_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_contract_metadata_status_200.0a9337a17a", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_contract_metadata_status_200"], "alias": "get_contract_metadata_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.4434016, "relation_name": "polygon.test_alchemy_nfts.get_contract_metadata_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_contract_metadata_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.get_contract_metadata' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}] as parameters\n ,polygon.alchemy_nfts.get_contract_metadata('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_contract_metadata('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_contract_metadata('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_contract_metadata", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_contract_metadata_batch_status_200.78a02ffe28": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddresses': ['0xe785E82358879F061BC3dcAC6f0444462D4b5330', '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d']}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_contract_metadata_batch", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_contract_metadata_batch_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_contract_metadata_batch_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_contract_metadata_batch_status_200.78a02ffe28", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_contract_metadata_batch_status_200"], "alias": "get_contract_metadata_batch_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.4497204, "relation_name": "polygon.test_alchemy_nfts.get_contract_metadata_batch_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_contract_metadata_batch_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.get_contract_metadata_batch' AS test_name\n ,['eth-mainnet', {'contractAddresses': ['0xe785E82358879F061BC3dcAC6f0444462D4b5330', '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d']}] as parameters\n ,polygon.alchemy_nfts.get_contract_metadata_batch('eth-mainnet', {'contractAddresses': ['0xe785E82358879F061BC3dcAC6f0444462D4b5330', '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d']}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_contract_metadata_batch('eth-mainnet', {'contractAddresses': ['0xe785E82358879F061BC3dcAC6f0444462D4b5330', '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d']})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_contract_metadata_batch('eth-mainnet', {'contractAddresses': ['0xe785E82358879F061BC3dcAC6f0444462D4b5330', '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d']})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_contract_metadata_batch", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__invalidate_contract_status_200.1ac32b4945": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "invalidate_contract", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__invalidate_contract_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__invalidate_contract_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__invalidate_contract_status_200.1ac32b4945", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__invalidate_contract_status_200"], "alias": "invalidate_contract_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.4557872, "relation_name": "polygon.test_alchemy_nfts.invalidate_contract_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__invalidate_contract_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.invalidate_contract' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}] as parameters\n ,polygon.alchemy_nfts.invalidate_contract('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.invalidate_contract('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.invalidate_contract('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "invalidate_contract", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__reingest_contract_status_200.3c2c45fd00": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "reingest_contract", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__reingest_contract_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__reingest_contract_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__reingest_contract_status_200.3c2c45fd00", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__reingest_contract_status_200"], "alias": "reingest_contract_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.4618711, "relation_name": "polygon.test_alchemy_nfts.reingest_contract_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__reingest_contract_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.reingest_contract' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}] as parameters\n ,polygon.alchemy_nfts.reingest_contract('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.reingest_contract('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.reingest_contract('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "reingest_contract", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__search_contract_metadata_status_200.1e97937b32": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'query': 'bored'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "search_contract_metadata", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__search_contract_metadata_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__search_contract_metadata_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__search_contract_metadata_status_200.1e97937b32", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__search_contract_metadata_status_200"], "alias": "search_contract_metadata_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.4675412, "relation_name": "polygon.test_alchemy_nfts.search_contract_metadata_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__search_contract_metadata_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.search_contract_metadata' AS test_name\n ,['eth-mainnet', {'query': 'bored'}] as parameters\n ,polygon.alchemy_nfts.search_contract_metadata('eth-mainnet', {'query': 'bored'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.search_contract_metadata('eth-mainnet', {'query': 'bored'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.search_contract_metadata('eth-mainnet', {'query': 'bored'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "search_contract_metadata", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_nfts_for_collection_status_200.f7ff9b5ee5": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withMetadata': True}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_nfts_for_collection", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_nfts_for_collection_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_nfts_for_collection_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_nfts_for_collection_status_200.f7ff9b5ee5", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_nfts_for_collection_status_200"], "alias": "get_nfts_for_collection_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.473876, "relation_name": "polygon.test_alchemy_nfts.get_nfts_for_collection_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_nfts_for_collection_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.get_nfts_for_collection' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withMetadata': True}] as parameters\n ,polygon.alchemy_nfts.get_nfts_for_collection('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withMetadata': True}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_nfts_for_collection('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withMetadata': True})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_nfts_for_collection('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withMetadata': True})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_nfts_for_collection", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_spam_contracts_status_200.b9dfb4e306": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_spam_contracts", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_spam_contracts_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_spam_contracts_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_spam_contracts_status_200.b9dfb4e306", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_spam_contracts_status_200"], "alias": "get_spam_contracts_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.4801044, "relation_name": "polygon.test_alchemy_nfts.get_spam_contracts_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_spam_contracts_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.get_spam_contracts' AS test_name\n ,['eth-mainnet', {}] as parameters\n ,polygon.alchemy_nfts.get_spam_contracts('eth-mainnet', {}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_spam_contracts('eth-mainnet', {})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_spam_contracts('eth-mainnet', {})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_spam_contracts", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__is_spam_contract_status_200.91af21989f": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "is_spam_contract", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__is_spam_contract_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__is_spam_contract_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__is_spam_contract_status_200.91af21989f", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__is_spam_contract_status_200"], "alias": "is_spam_contract_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.48777, "relation_name": "polygon.test_alchemy_nfts.is_spam_contract_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__is_spam_contract_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.is_spam_contract' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}] as parameters\n ,polygon.alchemy_nfts.is_spam_contract('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.is_spam_contract('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.is_spam_contract('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "is_spam_contract", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__is_airdrop_status_200.58ce4f1bdc": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "is_airdrop", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__is_airdrop_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__is_airdrop_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__is_airdrop_status_200.58ce4f1bdc", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__is_airdrop_status_200"], "alias": "is_airdrop_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.4935057, "relation_name": "polygon.test_alchemy_nfts.is_airdrop_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__is_airdrop_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.is_airdrop' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}] as parameters\n ,polygon.alchemy_nfts.is_airdrop('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.is_airdrop('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.is_airdrop('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "is_airdrop", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_floor_price_status_200.f2125d71e4": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_floor_price", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_floor_price_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_floor_price_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_floor_price_status_200.f2125d71e4", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_floor_price_status_200"], "alias": "get_floor_price_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.505443, "relation_name": "polygon.test_alchemy_nfts.get_floor_price_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_floor_price_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.get_floor_price' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'}] as parameters\n ,polygon.alchemy_nfts.get_floor_price('eth-mainnet', {'contractAddress': '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_floor_price('eth-mainnet', {'contractAddress': '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_floor_price('eth-mainnet', {'contractAddress': '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_floor_price", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_nft_sales_status_200.223f727f9f": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'fromBlock': 0, 'toBlock': 'latest', 'order': 'asc', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_nft_sales", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_nft_sales_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_nft_sales_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_nft_sales_status_200.223f727f9f", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_nft_sales_status_200"], "alias": "get_nft_sales_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.511746, "relation_name": "polygon.test_alchemy_nfts.get_nft_sales_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_nft_sales_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.get_nft_sales' AS test_name\n ,['eth-mainnet', {'fromBlock': 0, 'toBlock': 'latest', 'order': 'asc', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}] as parameters\n ,polygon.alchemy_nfts.get_nft_sales('eth-mainnet', {'fromBlock': 0, 'toBlock': 'latest', 'order': 'asc', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_nft_sales('eth-mainnet', {'fromBlock': 0, 'toBlock': 'latest', 'order': 'asc', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.get_nft_sales('eth-mainnet', {'fromBlock': 0, 'toBlock': 'latest', 'order': 'asc', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_nft_sales", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__compute_rarity_status_200.942425aa31": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'tokenId': 3603, 'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "compute_rarity", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__compute_rarity_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__compute_rarity_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__compute_rarity_status_200.942425aa31", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__compute_rarity_status_200"], "alias": "compute_rarity_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.5180714, "relation_name": "polygon.test_alchemy_nfts.compute_rarity_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__compute_rarity_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.compute_rarity' AS test_name\n ,['eth-mainnet', {'tokenId': 3603, 'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'}] as parameters\n ,polygon.alchemy_nfts.compute_rarity('eth-mainnet', {'tokenId': 3603, 'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.compute_rarity('eth-mainnet', {'tokenId': 3603, 'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.compute_rarity('eth-mainnet', {'tokenId': 3603, 'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "compute_rarity", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__summarize_nft_attributes_status_200.99d7f57e35": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "summarize_nft_attributes", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__summarize_nft_attributes_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__summarize_nft_attributes_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__summarize_nft_attributes_status_200.99d7f57e35", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__summarize_nft_attributes_status_200"], "alias": "summarize_nft_attributes_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.5244682, "relation_name": "polygon.test_alchemy_nfts.summarize_nft_attributes_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__summarize_nft_attributes_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_nfts.summarize_nft_attributes' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'}] as parameters\n ,polygon.alchemy_nfts.summarize_nft_attributes('eth-mainnet', {'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.summarize_nft_attributes('eth-mainnet', {'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_nfts.summarize_nft_attributes('eth-mainnet', {'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "summarize_nft_attributes", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_transfers__get_asset_transfers_status_200.f1f3f416e4": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', [{'fromBlock': '0x0', 'toBlock': 'latest', 'toAddress': '0x5c43B1eD97e52d009611D89b74fA829FE4ac56b1', 'category': ['external'], 'withMetadata': True, 'excludeZeroValue': True}]\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_asset_transfers", "model": "{{ get_where_subquery(ref('alchemy_transfers__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_transfers", "name": "test_alchemy_transfers__get_asset_transfers_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_transfers__get_asset_transfers_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_transfers__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_transfers__get_asset_transfers_status_200.f1f3f416e4", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_transfers__get_asset_transfers_status_200"], "alias": "get_asset_transfers_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.5317163, "relation_name": "polygon.test_alchemy_transfers.get_asset_transfers_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_transfers__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_transfers__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_transfers__alchemy_utils.yml/test_alchemy_transfers__get_asset_transfers_status_200.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_transfers__alchemy_utils as (\n\nSELECT 'alchemy_transfers' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'alchemy_transfers.get_asset_transfers' AS test_name\n ,['eth-mainnet', [{'fromBlock': '0x0', 'toBlock': 'latest', 'toAddress': '0x5c43B1eD97e52d009611D89b74fA829FE4ac56b1', 'category': ['external'], 'withMetadata': True, 'excludeZeroValue': True}]] as parameters\n ,polygon.alchemy_transfers.get_asset_transfers('eth-mainnet', [{'fromBlock': '0x0', 'toBlock': 'latest', 'toAddress': '0x5c43B1eD97e52d009611D89b74fA829FE4ac56b1', 'category': ['external'], 'withMetadata': True, 'excludeZeroValue': True}]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_transfers.get_asset_transfers('eth-mainnet', [{'fromBlock': '0x0', 'toBlock': 'latest', 'toAddress': '0x5c43B1eD97e52d009611D89b74fA829FE4ac56b1', 'category': ['external'], 'withMetadata': True, 'excludeZeroValue': True}])\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.alchemy_transfers.get_asset_transfers('eth-mainnet', [{'fromBlock': '0x0', 'toBlock': 'latest', 'toAddress': '0x5c43B1eD97e52d009611D89b74fA829FE4ac56b1', 'category': ['external'], 'withMetadata': True, 'excludeZeroValue': True}])\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_transfers__alchemy_utils", "sql": " __dbt__cte__alchemy_transfers__alchemy_utils as (\n\nSELECT 'alchemy_transfers' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_asset_transfers", "file_key_name": "models.alchemy_transfers__alchemy_utils", "attached_node": "model.livequery_models.alchemy_transfers__alchemy_utils"}, "test.livequery_models.test__live_udf_api_batched_post_data_object.a3001533fa": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'GET',\n'https://httpbin.org/get',\n{'Content-Type': 'application/json'},\n{'param1': 'value1', 'param2': 'value2'},\n''\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.args is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.args:param1 = 'value1' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.args:param2 = 'value2' ELSE true END"], "column_name": "udf_api_batched", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_batched_post_data_object", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_batched_post_data_object.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_batched_post_data_object.a3001533fa", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_batched_post_data_object"], "alias": "live_udf_api_batched_post_data_object", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.5547695, "relation_name": "polygon.test.live_udf_api_batched_post_data_object", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_batched_post_data_object.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_batched' AS test_name\n ,['GET',\n'https://httpbin.org/get',\n{'Content-Type': 'application/json'},\n{'param1': 'value1', 'param2': 'value2'},\n''] as parameters\n ,polygon.live.udf_api_batched('GET',\n'https://httpbin.org/get',\n{'Content-Type': 'application/json'},\n{'param1': 'value1', 'param2': 'value2'},\n'') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_batched('GET',\n'https://httpbin.org/get',\n{'Content-Type': 'application/json'},\n{'param1': 'value1', 'param2': 'value2'},\n'')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.args is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_batched('GET',\n'https://httpbin.org/get',\n{'Content-Type': 'application/json'},\n{'param1': 'value1', 'param2': 'value2'},\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.args is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.args:param1 = 'value1' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_batched('GET',\n'https://httpbin.org/get',\n{'Content-Type': 'application/json'},\n{'param1': 'value1', 'param2': 'value2'},\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.args:param1 = 'value1' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.args:param2 = 'value2' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_batched('GET',\n'https://httpbin.org/get',\n{'Content-Type': 'application/json'},\n{'param1': 'value1', 'param2': 'value2'},\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.args:param2 = 'value2' ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_batched", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_batched_post_jsonrpc_ethereum_batch.aa4ed0976f": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n''\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:result = '0x1' ELSE true END"], "column_name": "udf_api_batched", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_batched_post_jsonrpc_ethereum_batch", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_batched_post_jsonrpc_ethereum_batch.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_batched_post_jsonrpc_ethereum_batch.aa4ed0976f", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_batched_post_jsonrpc_ethereum_batch"], "alias": "live_udf_api_batched_post_jsonrpc_ethereum_batch", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.5635326, "relation_name": "polygon.test.live_udf_api_batched_post_jsonrpc_ethereum_batch", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_batched_post_jsonrpc_ethereum_batch.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_batched' AS test_name\n ,['POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n''] as parameters\n ,polygon.live.udf_api_batched('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n'') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_batched('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_batched('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_batched('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_batched('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_batched('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_batched('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:result = '0x1' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_batched('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:result = '0x1' ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_batched", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_batched_post_jsonrpc_solana.7027aa9022": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n''\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.id = 1 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.result is not null ELSE true END"], "column_name": "udf_api_batched", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_batched_post_jsonrpc_solana", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_batched_post_jsonrpc_solana.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_batched_post_jsonrpc_solana.7027aa9022", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_batched_post_jsonrpc_solana"], "alias": "live_udf_api_batched_post_jsonrpc_solana", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.5746667, "relation_name": "polygon.test.live_udf_api_batched_post_jsonrpc_solana", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_batched_post_jsonrpc_solana.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_batched' AS test_name\n ,['POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n''] as parameters\n ,polygon.live.udf_api_batched('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_batched('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_batched('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.id = 1 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_batched('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.id = 1 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.result is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_batched('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.result is not null ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_batched", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_post_data_object.f511b76342": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://httpbin.org/post', {'foo': 'bar'}\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.json is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.json = OBJECT_CONSTRUCT('foo', 'bar') ELSE true END"], "column_name": "udf_api", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_post_data_object", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_post_data_object.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_post_data_object.f511b76342", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_post_data_object"], "alias": "live_udf_api_post_data_object", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.583187, "relation_name": "polygon.test.live_udf_api_post_data_object", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_post_data_object.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api' AS test_name\n ,['https://httpbin.org/post', {'foo': 'bar'}] as parameters\n ,polygon.live.udf_api('https://httpbin.org/post', {'foo': 'bar'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('https://httpbin.org/post', {'foo': 'bar'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('https://httpbin.org/post', {'foo': 'bar'})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json = OBJECT_CONSTRUCT('foo', 'bar') ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('https://httpbin.org/post', {'foo': 'bar'})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json = OBJECT_CONSTRUCT('foo', 'bar') ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_post_data_array.e6efede8c7": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://httpbin.org/post', ['foo', 'bar']\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.json is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.json = ARRAY_CONSTRUCT('foo', 'bar') ELSE true END"], "column_name": "udf_api", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_post_data_array", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_post_data_array.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_post_data_array.e6efede8c7", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_post_data_array"], "alias": "live_udf_api_post_data_array", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.5909414, "relation_name": "polygon.test.live_udf_api_post_data_array", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_post_data_array.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api' AS test_name\n ,['https://httpbin.org/post', ['foo', 'bar']] as parameters\n ,polygon.live.udf_api('https://httpbin.org/post', ['foo', 'bar']) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('https://httpbin.org/post', ['foo', 'bar'])\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('https://httpbin.org/post', ['foo', 'bar'])\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json = ARRAY_CONSTRUCT('foo', 'bar') ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('https://httpbin.org/post', ['foo', 'bar'])\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json = ARRAY_CONSTRUCT('foo', 'bar') ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_post_data_string.4024bc8c29": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://httpbin.org/post', 'foo'::VARIANT\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.json is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.json = 'foo' ELSE true END"], "column_name": "udf_api", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_post_data_string", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_post_data_string.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_post_data_string.4024bc8c29", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_post_data_string"], "alias": "live_udf_api_post_data_string", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.5979357, "relation_name": "polygon.test.live_udf_api_post_data_string", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_post_data_string.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api' AS test_name\n ,['https://httpbin.org/post', 'foo'::VARIANT] as parameters\n ,polygon.live.udf_api('https://httpbin.org/post', 'foo'::VARIANT) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('https://httpbin.org/post', 'foo'::VARIANT)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('https://httpbin.org/post', 'foo'::VARIANT)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json = 'foo' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('https://httpbin.org/post', 'foo'::VARIANT)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json = 'foo' ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_get_method.7f6dfcd143": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://httpbin.org/get'\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.url = 'https://httpbin.org/get' ELSE true END"], "column_name": "udf_api", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_get_method", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_get_method.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_get_method.7f6dfcd143", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_get_method"], "alias": "live_udf_api_get_method", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.605873, "relation_name": "polygon.test.live_udf_api_get_method", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_get_method.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api' AS test_name\n ,['https://httpbin.org/get'] as parameters\n ,polygon.live.udf_api('https://httpbin.org/get') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('https://httpbin.org/get')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.url = 'https://httpbin.org/get' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('https://httpbin.org/get')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.url = 'https://httpbin.org/get' ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_get_with_params.b0e789f509": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'}\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.args is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.args:param1 = 'value1' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.args:param2 = 'value2' ELSE true END"], "column_name": "udf_api", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_get_with_params", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_get_with_params.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_get_with_params.b0e789f509", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_get_with_params"], "alias": "live_udf_api_get_with_params", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.6125689, "relation_name": "polygon.test.live_udf_api_get_with_params", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_get_with_params.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api' AS test_name\n ,['GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'}] as parameters\n ,polygon.live.udf_api('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.args is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.args is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.args:param1 = 'value1' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.args:param1 = 'value1' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.args:param2 = 'value2' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.args:param2 = 'value2' ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_post_batch_jsonrpc.6afc146ed1": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n}\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.json:jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.json:id = 1 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.json:method = 'batch' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.json:params is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.json:params[0]:id = 1 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.json:params[1]:id = 2 ELSE true END"], "column_name": "udf_api", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_post_batch_jsonrpc", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_post_batch_jsonrpc.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_post_batch_jsonrpc.6afc146ed1", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_post_batch_jsonrpc"], "alias": "live_udf_api_post_batch_jsonrpc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.6199992, "relation_name": "polygon.test.live_udf_api_post_batch_jsonrpc", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_post_batch_jsonrpc.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api' AS test_name\n ,['https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n}] as parameters\n ,polygon.live.udf_api('https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json:jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json:jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json:id = 1 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json:id = 1 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json:method = 'batch' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json:method = 'batch' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json:params is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json:params is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json:params[0]:id = 1 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json:params[0]:id = 1 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json:params[1]:id = 2 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json:params[1]:id = 2 ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_post_jsonrpc_solana.b20463bfb3": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n''\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.id = 1 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.result is not null ELSE true END"], "column_name": "udf_api", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_post_jsonrpc_solana", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_post_jsonrpc_solana.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_post_jsonrpc_solana.b20463bfb3", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_post_jsonrpc_solana"], "alias": "live_udf_api_post_jsonrpc_solana", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.6322725, "relation_name": "polygon.test.live_udf_api_post_jsonrpc_solana", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_post_jsonrpc_solana.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api' AS test_name\n ,['POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n''] as parameters\n ,polygon.live.udf_api('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.id = 1 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.id = 1 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.result is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.result is not null ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_post_jsonrpc_solana_batch.9386763d93": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\n''\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:result is not null ELSE true END"], "column_name": "udf_api", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_post_jsonrpc_solana_batch", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_post_jsonrpc_solana_batch.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_post_jsonrpc_solana_batch.9386763d93", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_post_jsonrpc_solana_batch"], "alias": "live_udf_api_post_jsonrpc_solana_batch", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.6396325, "relation_name": "polygon.test.live_udf_api_post_jsonrpc_solana_batch", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_post_jsonrpc_solana_batch.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api' AS test_name\n ,['POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\n''] as parameters\n ,polygon.live.udf_api('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\n'') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:result is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:result is not null ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_post_jsonrpc_ethereum_batch.3c9cd0b4df": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n''\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:result = '0x1' ELSE true END"], "column_name": "udf_api", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_post_jsonrpc_ethereum_batch", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_post_jsonrpc_ethereum_batch.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_post_jsonrpc_ethereum_batch.3c9cd0b4df", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_post_jsonrpc_ethereum_batch"], "alias": "live_udf_api_post_jsonrpc_ethereum_batch", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.6495304, "relation_name": "polygon.test.live_udf_api_post_jsonrpc_ethereum_batch", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_post_jsonrpc_ethereum_batch.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api' AS test_name\n ,['POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n''] as parameters\n ,polygon.live.udf_api('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n'') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:result = '0x1' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\n'')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:result = '0x1' ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_post_data_object_sync.071fa239ad": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://httpbin.org/post', {'foo': 'bar'}\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.json is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.json = OBJECT_CONSTRUCT('foo', 'bar') ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_post_data_object_sync", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_post_data_object_sync.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_post_data_object_sync.071fa239ad", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_post_data_object_sync"], "alias": "live_udf_api_v2_post_data_object_sync", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.6586163, "relation_name": "polygon.test.live_udf_api_v2_post_data_object_sync", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_post_data_object_sync.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['https://httpbin.org/post', {'foo': 'bar'}] as parameters\n ,polygon.live.udf_api_v2('https://httpbin.org/post', {'foo': 'bar'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/post', {'foo': 'bar'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/post', {'foo': 'bar'})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json = OBJECT_CONSTRUCT('foo', 'bar') ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/post', {'foo': 'bar'})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json = OBJECT_CONSTRUCT('foo', 'bar') ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_post_data_array_sync.b8411aa263": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://httpbin.org/post', ['foo', 'bar']\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.json is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.json = ARRAY_CONSTRUCT('foo', 'bar') ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_post_data_array_sync", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_post_data_array_sync.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_post_data_array_sync.b8411aa263", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_post_data_array_sync"], "alias": "live_udf_api_v2_post_data_array_sync", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.6650627, "relation_name": "polygon.test.live_udf_api_v2_post_data_array_sync", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_post_data_array_sync.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['https://httpbin.org/post', ['foo', 'bar']] as parameters\n ,polygon.live.udf_api_v2('https://httpbin.org/post', ['foo', 'bar']) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/post', ['foo', 'bar'])\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/post', ['foo', 'bar'])\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json = ARRAY_CONSTRUCT('foo', 'bar') ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/post', ['foo', 'bar'])\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json = ARRAY_CONSTRUCT('foo', 'bar') ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_post_data_string_sync.fe8f3757c8": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://httpbin.org/post', 'foo'::VARIANT\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.json is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.json = 'foo' ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_post_data_string_sync", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_post_data_string_sync.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_post_data_string_sync.fe8f3757c8", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_post_data_string_sync"], "alias": "live_udf_api_v2_post_data_string_sync", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.6718361, "relation_name": "polygon.test.live_udf_api_v2_post_data_string_sync", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_post_data_string_sync.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['https://httpbin.org/post', 'foo'::VARIANT] as parameters\n ,polygon.live.udf_api_v2('https://httpbin.org/post', 'foo'::VARIANT) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/post', 'foo'::VARIANT)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/post', 'foo'::VARIANT)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json = 'foo' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/post', 'foo'::VARIANT)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json = 'foo' ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_get_method_sync.8122eddb3f": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://httpbin.org/get'\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.url = 'https://httpbin.org/get' ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_get_method_sync", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_get_method_sync.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_get_method_sync.8122eddb3f", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_get_method_sync"], "alias": "live_udf_api_v2_get_method_sync", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.6782298, "relation_name": "polygon.test.live_udf_api_v2_get_method_sync", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_get_method_sync.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['https://httpbin.org/get'] as parameters\n ,polygon.live.udf_api_v2('https://httpbin.org/get') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/get')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.url = 'https://httpbin.org/get' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/get')\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.url = 'https://httpbin.org/get' ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_post_batch_jsonrpc_sync.b36bc00504": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n}\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.json:jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.json:id = 1 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.json:method = 'batch' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.json:params is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.json:params[0]:id = 1 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.json:params[1]:id = 2 ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_post_batch_jsonrpc_sync", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_post_batch_jsonrpc_sync.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_post_batch_jsonrpc_sync.b36bc00504", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_post_batch_jsonrpc_sync"], "alias": "live_udf_api_v2_post_batch_jsonrpc_sync", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.684351, "relation_name": "polygon.test.live_udf_api_v2_post_batch_jsonrpc_sync", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_post_batch_jsonrpc_sync.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n}] as parameters\n ,polygon.live.udf_api_v2('https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json:jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json:jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json:id = 1 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json:id = 1 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json:method = 'batch' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json:method = 'batch' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json:params is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json:params is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json:params[0]:id = 1 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json:params[0]:id = 1 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.json:params[1]:id = 2 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/post', {\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'batch',\n 'params': [\n {'id': 1, 'method': 'method1', 'params': {'param1': 'value1'}},\n {'id': 2, 'method': 'method2', 'params': {'param2': 'value2'}}\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.json:params[1]:id = 2 ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_get_with_params_sync.147b3736ae": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'}, FALSE\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.args is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.args:param1 = 'value1' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.args:param2 = 'value2' ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_get_with_params_sync", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_get_with_params_sync.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_get_with_params_sync.147b3736ae", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_get_with_params_sync"], "alias": "live_udf_api_v2_get_with_params_sync", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.6937945, "relation_name": "polygon.test.live_udf_api_v2_get_with_params_sync", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_get_with_params_sync.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'}, FALSE] as parameters\n ,polygon.live.udf_api_v2('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'}, FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'}, FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.args is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'}, FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.args is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.args:param1 = 'value1' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'}, FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.args:param1 = 'value1' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.args:param2 = 'value2' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'}, FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.args:param2 = 'value2' ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_sync.59f97e4649": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\nFALSE\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.id = 1 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.result is not null ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_post_jsonrpc_solana_sync", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_post_jsonrpc_solana_sync.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_sync.59f97e4649", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_post_jsonrpc_solana_sync"], "alias": "live_udf_api_v2_post_jsonrpc_solana_sync", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.7012975, "relation_name": "polygon.test.live_udf_api_v2_post_jsonrpc_solana_sync", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_post_jsonrpc_solana_sync.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\nFALSE] as parameters\n ,polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\nFALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\nFALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\nFALSE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.id = 1 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\nFALSE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.id = 1 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.result is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\nFALSE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.result is not null ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_batch_sync.cb3ec63e3a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nFALSE\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:result is not null ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_post_jsonrpc_solana_batch_sync", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_post_jsonrpc_solana_batch_sync.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_batch_sync.cb3ec63e3a", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_post_jsonrpc_solana_batch_sync"], "alias": "live_udf_api_v2_post_jsonrpc_solana_batch_sync", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.708906, "relation_name": "polygon.test.live_udf_api_v2_post_jsonrpc_solana_batch_sync", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_post_jsonrpc_solana_batch_sync.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nFALSE] as parameters\n ,polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nFALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nFALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nFALSE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nFALSE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nFALSE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nFALSE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nFALSE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:result is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nFALSE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:result is not null ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_ethereum_batch_sync.71d7b6dbb6": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nFALSE\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:result = '0x1' ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_post_jsonrpc_ethereum_batch_sync", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_post_jsonrpc_ethereum_batch_sync.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_ethereum_batch_sync.71d7b6dbb6", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_post_jsonrpc_ethereum_batch_sync"], "alias": "live_udf_api_v2_post_jsonrpc_ethereum_batch_sync", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.7180617, "relation_name": "polygon.test.live_udf_api_v2_post_jsonrpc_ethereum_batch_sync", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_post_jsonrpc_ethereum_batch_sync.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nFALSE] as parameters\n ,polygon.live.udf_api_v2('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nFALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nFALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nFALSE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nFALSE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nFALSE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nFALSE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nFALSE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:result = '0x1' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nFALSE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:result = '0x1' ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_get_with_params_async.b056833455": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'}, TRUE\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.args is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.args:param1 = 'value1' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.args:param2 = 'value2' ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_get_with_params_async", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_get_with_params_async.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_get_with_params_async.b056833455", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_get_with_params_async"], "alias": "live_udf_api_v2_get_with_params_async", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.7272606, "relation_name": "polygon.test.live_udf_api_v2_get_with_params_async", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_get_with_params_async.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'}, TRUE] as parameters\n ,polygon.live.udf_api_v2('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'}, TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'}, TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.args is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'}, TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.args is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.args:param1 = 'value1' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'}, TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.args:param1 = 'value1' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.args:param2 = 'value2' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1', 'param2': 'value2'}, TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.args:param2 = 'value2' ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_async.a018ed6e96": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\nTRUE\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.id = 1 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.result is not null ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_post_jsonrpc_solana_async", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_post_jsonrpc_solana_async.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_async.a018ed6e96", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_post_jsonrpc_solana_async"], "alias": "live_udf_api_v2_post_jsonrpc_solana_async", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.7345362, "relation_name": "polygon.test.live_udf_api_v2_post_jsonrpc_solana_async", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_post_jsonrpc_solana_async.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\nTRUE] as parameters\n ,polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\nTRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\nTRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\nTRUE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.id = 1 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\nTRUE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.id = 1 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.result is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\nTRUE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.result is not null ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_batch_async.7f045a7b4a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nTRUE\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:result is not null ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_post_jsonrpc_solana_batch_async", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_post_jsonrpc_solana_batch_async.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_batch_async.7f045a7b4a", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_post_jsonrpc_solana_batch_async"], "alias": "live_udf_api_v2_post_jsonrpc_solana_batch_async", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.7428067, "relation_name": "polygon.test.live_udf_api_v2_post_jsonrpc_solana_batch_async", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_post_jsonrpc_solana_batch_async.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nTRUE] as parameters\n ,polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nTRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nTRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nTRUE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nTRUE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nTRUE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nTRUE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nTRUE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:result is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'getVersion'},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'getVersion'}\n],\nTRUE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:result is not null ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_ethereum_batch_async.95f5f5b561": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nTRUE\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data[1]:result = '0x1' ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_post_jsonrpc_ethereum_batch_async", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_post_jsonrpc_ethereum_batch_async.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_ethereum_batch_async.95f5f5b561", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_post_jsonrpc_ethereum_batch_async"], "alias": "live_udf_api_v2_post_jsonrpc_ethereum_batch_async", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.7522466, "relation_name": "polygon.test.live_udf_api_v2_post_jsonrpc_ethereum_batch_async", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_post_jsonrpc_ethereum_batch_async.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nTRUE] as parameters\n ,polygon.live.udf_api_v2('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nTRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nTRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nTRUE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nTRUE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:id = 1 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nTRUE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[0]:result is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nTRUE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nTRUE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:id = 2 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data[1]:result = '0x1' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://ethereum-rpc.publicnode.com',\n{'Content-Type': 'application/json'},\n[\n {'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []},\n {'jsonrpc': '2.0', 'id': 2, 'method': 'eth_chainId', 'params': []}\n],\nTRUE)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data[1]:result = '0x1' ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_get_with_headers_is_async_true.cfc2645199": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://httpbin.org/get', {'Content-Type': 'application/json'}, '', true\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.url = 'https://httpbin.org/get' ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_get_with_headers_is_async_true", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_get_with_headers_is_async_true.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_get_with_headers_is_async_true.cfc2645199", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_get_with_headers_is_async_true"], "alias": "live_udf_api_v2_get_with_headers_is_async_true", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.7614768, "relation_name": "polygon.test.live_udf_api_v2_get_with_headers_is_async_true", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_get_with_headers_is_async_true.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['https://httpbin.org/get', {'Content-Type': 'application/json'}, '', true] as parameters\n ,polygon.live.udf_api_v2('https://httpbin.org/get', {'Content-Type': 'application/json'}, '', true) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/get', {'Content-Type': 'application/json'}, '', true)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.url = 'https://httpbin.org/get' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/get', {'Content-Type': 'application/json'}, '', true)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.url = 'https://httpbin.org/get' ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_get_with_headers_is_async_false.e9e1befac4": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://httpbin.org/get', {'Content-Type': 'application/json'}, '', false\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.url = 'https://httpbin.org/get' ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_get_with_headers_is_async_false", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_get_with_headers_is_async_false.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_get_with_headers_is_async_false.e9e1befac4", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_get_with_headers_is_async_false"], "alias": "live_udf_api_v2_get_with_headers_is_async_false", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.768042, "relation_name": "polygon.test.live_udf_api_v2_get_with_headers_is_async_false", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_get_with_headers_is_async_false.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['https://httpbin.org/get', {'Content-Type': 'application/json'}, '', false] as parameters\n ,polygon.live.udf_api_v2('https://httpbin.org/get', {'Content-Type': 'application/json'}, '', false) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/get', {'Content-Type': 'application/json'}, '', false)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.url = 'https://httpbin.org/get' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('https://httpbin.org/get', {'Content-Type': 'application/json'}, '', false)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.url = 'https://httpbin.org/get' ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_full_signature_is_async_true.604199ea45": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1'}, '', true\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.args is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.args:param1 = 'value1' ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_full_signature_is_async_true", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_full_signature_is_async_true.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_full_signature_is_async_true.604199ea45", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_full_signature_is_async_true"], "alias": "live_udf_api_v2_full_signature_is_async_true", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.77465, "relation_name": "polygon.test.live_udf_api_v2_full_signature_is_async_true", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_full_signature_is_async_true.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1'}, '', true] as parameters\n ,polygon.live.udf_api_v2('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1'}, '', true) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1'}, '', true)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.args is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1'}, '', true)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.args is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.args:param1 = 'value1' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1'}, '', true)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.args:param1 = 'value1' ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_full_signature_is_async_false.0b97d59b38": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1'}, '', false\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.args is not null ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.args:param1 = 'value1' ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_full_signature_is_async_false", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_full_signature_is_async_false.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_full_signature_is_async_false.0b97d59b38", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_full_signature_is_async_false"], "alias": "live_udf_api_v2_full_signature_is_async_false", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.7815733, "relation_name": "polygon.test.live_udf_api_v2_full_signature_is_async_false", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_full_signature_is_async_false.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1'}, '', false] as parameters\n ,polygon.live.udf_api_v2('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1'}, '', false) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1'}, '', false)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.args is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1'}, '', false)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.args is not null ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.args:param1 = 'value1' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('GET', 'https://httpbin.org/get', {'Content-Type': 'application/json'}, {'param1': 'value1'}, '', false)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.args:param1 = 'value1' ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_is_async_true.81e24f5936": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'',\ntrue\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.id = 1 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.result is not null ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_post_jsonrpc_is_async_true", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_post_jsonrpc_is_async_true.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_is_async_true.81e24f5936", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_post_jsonrpc_is_async_true"], "alias": "live_udf_api_v2_post_jsonrpc_is_async_true", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.7886634, "relation_name": "polygon.test.live_udf_api_v2_post_jsonrpc_is_async_true", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_post_jsonrpc_is_async_true.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'',\ntrue] as parameters\n ,polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'',\ntrue) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'',\ntrue)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'',\ntrue)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.id = 1 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'',\ntrue)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.id = 1 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.result is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'',\ntrue)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.result is not null ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_is_async_false.e9d84deb2e": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'',\nfalse\n", "assertions": ["result:status_code IN (200, 502, 503)", "CASE WHEN result:status_code = 200 THEN result:data.jsonrpc = '2.0' ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.id = 1 ELSE true END", "CASE WHEN result:status_code = 200 THEN result:data.result is not null ELSE true END"], "column_name": "udf_api_v2", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__live_udf_api_v2_post_jsonrpc_is_async_false", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_v2_post_jsonrpc_is_async_false.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_is_async_false.e9d84deb2e", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_v2_post_jsonrpc_is_async_false"], "alias": "live_udf_api_v2_post_jsonrpc_is_async_false", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.7961903, "relation_name": "polygon.test.live_udf_api_v2_post_jsonrpc_is_async_false", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_v2_post_jsonrpc_is_async_false.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api_v2' AS test_name\n ,['POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'',\nfalse] as parameters\n ,polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'',\nfalse) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code IN (200, 502, 503)$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'',\nfalse)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code IN (200, 502, 503)\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.jsonrpc = '2.0' ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'',\nfalse)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.jsonrpc = '2.0' ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.id = 1 ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'',\nfalse)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.id = 1 ELSE true END\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$CASE WHEN result:status_code = 200 THEN result:data.result is not null ELSE true END$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.live.udf_api_v2('POST',\n'https://api.mainnet-beta.solana.com',\n{'Content-Type': 'application/json'},\n{\n 'jsonrpc': '2.0',\n 'id': 1,\n 'method': 'getVersion'\n},\n'',\nfalse)\n;$$ AS sql\n FROM test\n WHERE NOT CASE WHEN result:status_code = 200 THEN result:data.result is not null ELSE true END\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api_v2", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test___utils_udf_introspect.79bd27a18b": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'hello'", "assertions": ["result = 'hello'"], "column_name": "udf_introspect", "model": "{{ get_where_subquery(ref('_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test___utils_udf_introspect", "resource_type": "test", "package_name": "livequery_models", "path": "test___utils_udf_introspect.sql", "original_file_path": "models/deploy/core/_utils.yml", "unique_id": "test.livequery_models.test___utils_udf_introspect.79bd27a18b", "fqn": ["livequery_models", "deploy", "core", "test___utils_udf_introspect"], "alias": "_utils_udf_introspect", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.8046794, "relation_name": "polygon.test._utils_udf_introspect", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models._utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/_utils.yml/test___utils_udf_introspect.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n '_utils.udf_introspect' AS test_name\n ,['hello'] as parameters\n ,polygon._utils.udf_introspect('hello') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'hello'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon._utils.udf_introspect('hello')\n;$$ AS sql\n FROM test\n WHERE NOT result = 'hello'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_introspect", "file_key_name": "models._utils", "attached_node": "model.livequery_models._utils"}, "test.livequery_models.test__utils_udf_json_rpc_call.0b87c6050e": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'foo', [], 1", "assertions": ["result = {\n 'jsonrpc': '2.0',\n 'method': 'foo',\n 'params': [],\n 'id': '1'\n}\n"], "column_name": "udf_json_rpc_call", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_json_rpc_call", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_json_rpc_call.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_json_rpc_call.0b87c6050e", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_json_rpc_call"], "alias": "utils_udf_json_rpc_call", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.8148358, "relation_name": "polygon.test.utils_udf_json_rpc_call", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_json_rpc_call.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_json_rpc_call' AS test_name\n ,['foo', [], 1] as parameters\n ,polygon.utils.udf_json_rpc_call('foo', [], 1) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = {\n 'jsonrpc': '2.0',\n 'method': 'foo',\n 'params': [],\n 'id': '1'\n}$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_json_rpc_call('foo', [], 1)\n;$$ AS sql\n FROM test\n WHERE NOT result = {\n 'jsonrpc': '2.0',\n 'method': 'foo',\n 'params': [],\n 'id': '1'\n}\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_json_rpc_call", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_true_1.3bf42c4e1b": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'a':'b'}, TRUE\n", "assertions": ["result = 'a=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_dict_true_1", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_true_1.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_true_1.3bf42c4e1b", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_true_1"], "alias": "utils_udf_urlencode_dict_true_1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.8207624, "relation_name": "polygon.test.utils_udf_urlencode_dict_true_1", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_true_1.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'a':'b'}, TRUE] as parameters\n ,polygon.utils.udf_urlencode({'a':'b'}, TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode({'a':'b'}, TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_true_2.764afd6db8": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'a':'a', 'b':'b'}, TRUE\n", "assertions": ["result = 'a=a&b=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_dict_true_2", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_true_2.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_true_2.764afd6db8", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_true_2"], "alias": "utils_udf_urlencode_dict_true_2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.8269184, "relation_name": "polygon.test.utils_udf_urlencode_dict_true_2", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_true_2.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'a':'a', 'b':'b'}, TRUE] as parameters\n ,polygon.utils.udf_urlencode({'a':'a', 'b':'b'}, TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=a&b=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode({'a':'a', 'b':'b'}, TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=a&b=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_true_space.11f0932fc3": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'space': 'abc 123'}, TRUE\n", "assertions": ["result = 'space=abc+123'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_dict_true_space", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_true_space.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_true_space.11f0932fc3", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_true_space"], "alias": "utils_udf_urlencode_dict_true_space", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.8330362, "relation_name": "polygon.test.utils_udf_urlencode_dict_true_space", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_true_space.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'space': 'abc 123'}, TRUE] as parameters\n ,polygon.utils.udf_urlencode({'space': 'abc 123'}, TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'space=abc+123'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode({'space': 'abc 123'}, TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'space=abc+123'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_true_special.4eef6cb355": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'special!': ' !@#$,+\"'}, TRUE\n", "assertions": ["result = 'special%21=+%21%40%23%24%2C%2B%22'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_dict_true_special", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_true_special.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_true_special.4eef6cb355", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_true_special"], "alias": "utils_udf_urlencode_dict_true_special", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.8390818, "relation_name": "polygon.test.utils_udf_urlencode_dict_true_special", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_true_special.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'special!': ' !@#$,+\"'}, TRUE] as parameters\n ,polygon.utils.udf_urlencode({'special!': ' !@#$,+\"'}, TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'special%21=+%21%40%23%24%2C%2B%22'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode({'special!': ' !@#$,+\"'}, TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'special%21=+%21%40%23%24%2C%2B%22'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_true_array.614d53ca8a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'array': [0, 1, 2]}, TRUE\n", "assertions": ["result = 'array=0&array=1&array=2'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_dict_true_array", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_true_array.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_true_array.614d53ca8a", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_true_array"], "alias": "utils_udf_urlencode_dict_true_array", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.8449771, "relation_name": "polygon.test.utils_udf_urlencode_dict_true_array", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_true_array.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'array': [0, 1, 2]}, TRUE] as parameters\n ,polygon.utils.udf_urlencode({'array': [0, 1, 2]}, TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'array=0&array=1&array=2'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode({'array': [0, 1, 2]}, TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'array=0&array=1&array=2'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_false_1.e2e07ad77a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'a':'b'}, FALSE\n", "assertions": ["result = 'a=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_dict_false_1", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_false_1.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_false_1.e2e07ad77a", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_false_1"], "alias": "utils_udf_urlencode_dict_false_1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.8510592, "relation_name": "polygon.test.utils_udf_urlencode_dict_false_1", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_false_1.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'a':'b'}, FALSE] as parameters\n ,polygon.utils.udf_urlencode({'a':'b'}, FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode({'a':'b'}, FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_false_2.58739709ab": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'a':'b', 'b':'b'}, FALSE\n", "assertions": ["result = 'a=b&b=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_dict_false_2", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_false_2.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_false_2.58739709ab", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_false_2"], "alias": "utils_udf_urlencode_dict_false_2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.8576646, "relation_name": "polygon.test.utils_udf_urlencode_dict_false_2", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_false_2.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'a':'b', 'b':'b'}, FALSE] as parameters\n ,polygon.utils.udf_urlencode({'a':'b', 'b':'b'}, FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=b&b=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode({'a':'b', 'b':'b'}, FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=b&b=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_false_space.1167d3f089": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'space': 'abc 123'}, FALSE\n", "assertions": ["result = 'space=abc+123'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_dict_false_space", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_false_space.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_false_space.1167d3f089", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_false_space"], "alias": "utils_udf_urlencode_dict_false_space", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.8637648, "relation_name": "polygon.test.utils_udf_urlencode_dict_false_space", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_false_space.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'space': 'abc 123'}, FALSE] as parameters\n ,polygon.utils.udf_urlencode({'space': 'abc 123'}, FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'space=abc+123'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode({'space': 'abc 123'}, FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'space=abc+123'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_false_special.0cd3cb5826": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'special!': ' !@#$,+\"'}, FALSE\n", "assertions": ["result = 'special%21=+%21%40%23%24%2C%2B%22'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_dict_false_special", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_false_special.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_false_special.0cd3cb5826", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_false_special"], "alias": "utils_udf_urlencode_dict_false_special", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.8693068, "relation_name": "polygon.test.utils_udf_urlencode_dict_false_special", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_false_special.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'special!': ' !@#$,+\"'}, FALSE] as parameters\n ,polygon.utils.udf_urlencode({'special!': ' !@#$,+\"'}, FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'special%21=+%21%40%23%24%2C%2B%22'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode({'special!': ' !@#$,+\"'}, FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'special%21=+%21%40%23%24%2C%2B%22'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_false_array.9524cea2e8": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'array': [0, 1, 2]}, FALSE\n", "assertions": ["result = 'array=%5B0%2C+1%2C+2%5D'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_dict_false_array", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_false_array.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_false_array.9524cea2e8", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_false_array"], "alias": "utils_udf_urlencode_dict_false_array", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.8750546, "relation_name": "polygon.test.utils_udf_urlencode_dict_false_array", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_false_array.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'array': [0, 1, 2]}, FALSE] as parameters\n ,polygon.utils.udf_urlencode({'array': [0, 1, 2]}, FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'array=%5B0%2C+1%2C+2%5D'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode({'array': [0, 1, 2]}, FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'array=%5B0%2C+1%2C+2%5D'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_1.1d75f92e0e": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'a':'b'}\n", "assertions": ["result = 'a=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_dict_1", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_1.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_1.1d75f92e0e", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_1"], "alias": "utils_udf_urlencode_dict_1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.8811667, "relation_name": "polygon.test.utils_udf_urlencode_dict_1", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_1.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'a':'b'}] as parameters\n ,polygon.utils.udf_urlencode({'a':'b'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode({'a':'b'})\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_2.60da312d8c": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'a':'b', 'b':'b'}\n", "assertions": ["result = 'a=b&b=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_dict_2", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_2.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_2.60da312d8c", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_2"], "alias": "utils_udf_urlencode_dict_2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.8866496, "relation_name": "polygon.test.utils_udf_urlencode_dict_2", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_2.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'a':'b', 'b':'b'}] as parameters\n ,polygon.utils.udf_urlencode({'a':'b', 'b':'b'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=b&b=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode({'a':'b', 'b':'b'})\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=b&b=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_space.d5e1917fd6": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'space': 'abc 123'}\n", "assertions": ["result = 'space=abc+123'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_dict_space", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_space.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_space.d5e1917fd6", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_space"], "alias": "utils_udf_urlencode_dict_space", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.8924625, "relation_name": "polygon.test.utils_udf_urlencode_dict_space", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_space.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'space': 'abc 123'}] as parameters\n ,polygon.utils.udf_urlencode({'space': 'abc 123'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'space=abc+123'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode({'space': 'abc 123'})\n;$$ AS sql\n FROM test\n WHERE NOT result = 'space=abc+123'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_special.6f25d30fd9": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'special!': ' !@#$,+\"'}\n", "assertions": ["result = 'special%21=+%21%40%23%24%2C%2B%22'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_dict_special", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_special.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_special.6f25d30fd9", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_special"], "alias": "utils_udf_urlencode_dict_special", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.8981826, "relation_name": "polygon.test.utils_udf_urlencode_dict_special", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_special.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'special!': ' !@#$,+\"'}] as parameters\n ,polygon.utils.udf_urlencode({'special!': ' !@#$,+\"'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'special%21=+%21%40%23%24%2C%2B%22'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode({'special!': ' !@#$,+\"'})\n;$$ AS sql\n FROM test\n WHERE NOT result = 'special%21=+%21%40%23%24%2C%2B%22'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_array.25f6af5cf8": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'array': [0, 1, 2]}\n", "assertions": ["result = 'array=%5B0%2C+1%2C+2%5D'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_dict_array", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_array.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_array.25f6af5cf8", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_array"], "alias": "utils_udf_urlencode_dict_array", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.9037154, "relation_name": "polygon.test.utils_udf_urlencode_dict_array", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_array.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'array': [0, 1, 2]}] as parameters\n ,polygon.utils.udf_urlencode({'array': [0, 1, 2]}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'array=%5B0%2C+1%2C+2%5D'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode({'array': [0, 1, 2]})\n;$$ AS sql\n FROM test\n WHERE NOT result = 'array=%5B0%2C+1%2C+2%5D'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_true_1.f1dc90fd5d": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['a', 'b']], TRUE\n", "assertions": ["result = 'a=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_array_true_1", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_true_1.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_true_1.f1dc90fd5d", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_true_1"], "alias": "utils_udf_urlencode_array_true_1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.9095204, "relation_name": "polygon.test.utils_udf_urlencode_array_true_1", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_true_1.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['a', 'b']], TRUE] as parameters\n ,polygon.utils.udf_urlencode([['a', 'b']], TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode([['a', 'b']], TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_true_2.4c09ca3de2": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['a', 'a'], ['b', 'b']], TRUE\n", "assertions": ["result = 'a=a&b=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_array_true_2", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_true_2.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_true_2.4c09ca3de2", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_true_2"], "alias": "utils_udf_urlencode_array_true_2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.9152408, "relation_name": "polygon.test.utils_udf_urlencode_array_true_2", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_true_2.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['a', 'a'], ['b', 'b']], TRUE] as parameters\n ,polygon.utils.udf_urlencode([['a', 'a'], ['b', 'b']], TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=a&b=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode([['a', 'a'], ['b', 'b']], TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=a&b=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_true_space.c150fa3544": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['space', 'abc 123']], TRUE\n", "assertions": ["result = 'space=abc+123'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_array_true_space", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_true_space.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_true_space.c150fa3544", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_true_space"], "alias": "utils_udf_urlencode_array_true_space", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.9206998, "relation_name": "polygon.test.utils_udf_urlencode_array_true_space", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_true_space.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['space', 'abc 123']], TRUE] as parameters\n ,polygon.utils.udf_urlencode([['space', 'abc 123']], TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'space=abc+123'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode([['space', 'abc 123']], TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'space=abc+123'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_true_special.14abbd82f3": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['special!', ' !@#$,+\"']], TRUE\n", "assertions": ["result = 'special%21=+%21%40%23%24%2C%2B%22'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_array_true_special", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_true_special.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_true_special.14abbd82f3", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_true_special"], "alias": "utils_udf_urlencode_array_true_special", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.9264097, "relation_name": "polygon.test.utils_udf_urlencode_array_true_special", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_true_special.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['special!', ' !@#$,+\"']], TRUE] as parameters\n ,polygon.utils.udf_urlencode([['special!', ' !@#$,+\"']], TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'special%21=+%21%40%23%24%2C%2B%22'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode([['special!', ' !@#$,+\"']], TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'special%21=+%21%40%23%24%2C%2B%22'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_true_array.559475a80a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['array', [0, 1, 2]]], TRUE\n", "assertions": ["result = 'array=0&array=1&array=2'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_array_true_array", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_true_array.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_true_array.559475a80a", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_true_array"], "alias": "utils_udf_urlencode_array_true_array", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.932094, "relation_name": "polygon.test.utils_udf_urlencode_array_true_array", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_true_array.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['array', [0, 1, 2]]], TRUE] as parameters\n ,polygon.utils.udf_urlencode([['array', [0, 1, 2]]], TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'array=0&array=1&array=2'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode([['array', [0, 1, 2]]], TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'array=0&array=1&array=2'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_false_1.ffe0d93235": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['a', 'b']], FALSE\n", "assertions": ["result = 'a=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_array_false_1", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_false_1.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_false_1.ffe0d93235", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_false_1"], "alias": "utils_udf_urlencode_array_false_1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.9375675, "relation_name": "polygon.test.utils_udf_urlencode_array_false_1", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_false_1.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['a', 'b']], FALSE] as parameters\n ,polygon.utils.udf_urlencode([['a', 'b']], FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode([['a', 'b']], FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_false_2.f6e4d9a06a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['a', 'a'], ['b', 'b']], FALSE\n", "assertions": ["result = 'a=a&b=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_array_false_2", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_false_2.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_false_2.f6e4d9a06a", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_false_2"], "alias": "utils_udf_urlencode_array_false_2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.9433072, "relation_name": "polygon.test.utils_udf_urlencode_array_false_2", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_false_2.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['a', 'a'], ['b', 'b']], FALSE] as parameters\n ,polygon.utils.udf_urlencode([['a', 'a'], ['b', 'b']], FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=a&b=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode([['a', 'a'], ['b', 'b']], FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=a&b=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_false_space.c46a422a10": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['space', 'abc 123']], FALSE\n", "assertions": ["result = 'space=abc+123'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_array_false_space", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_false_space.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_false_space.c46a422a10", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_false_space"], "alias": "utils_udf_urlencode_array_false_space", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.948969, "relation_name": "polygon.test.utils_udf_urlencode_array_false_space", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_false_space.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['space', 'abc 123']], FALSE] as parameters\n ,polygon.utils.udf_urlencode([['space', 'abc 123']], FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'space=abc+123'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode([['space', 'abc 123']], FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'space=abc+123'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_false_special.ad3b4ce496": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['special!', ' !@#$,+\"']], FALSE\n", "assertions": ["result = 'special%21=+%21%40%23%24%2C%2B%22'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_array_false_special", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_false_special.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_false_special.ad3b4ce496", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_false_special"], "alias": "utils_udf_urlencode_array_false_special", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.9545164, "relation_name": "polygon.test.utils_udf_urlencode_array_false_special", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_false_special.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['special!', ' !@#$,+\"']], FALSE] as parameters\n ,polygon.utils.udf_urlencode([['special!', ' !@#$,+\"']], FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'special%21=+%21%40%23%24%2C%2B%22'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode([['special!', ' !@#$,+\"']], FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'special%21=+%21%40%23%24%2C%2B%22'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_false_array.979bfafd11": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['array', [0, 1, 2]]], FALSE\n", "assertions": ["result = 'array=%5B0%2C+1%2C+2%5D'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_array_false_array", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_false_array.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_false_array.979bfafd11", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_false_array"], "alias": "utils_udf_urlencode_array_false_array", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.961196, "relation_name": "polygon.test.utils_udf_urlencode_array_false_array", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_false_array.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['array', [0, 1, 2]]], FALSE] as parameters\n ,polygon.utils.udf_urlencode([['array', [0, 1, 2]]], FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'array=%5B0%2C+1%2C+2%5D'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode([['array', [0, 1, 2]]], FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'array=%5B0%2C+1%2C+2%5D'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_1.bae96ece17": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['a', 'b']]\n", "assertions": ["result = 'a=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_array_1", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_1.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_1.bae96ece17", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_1"], "alias": "utils_udf_urlencode_array_1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.9667883, "relation_name": "polygon.test.utils_udf_urlencode_array_1", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_1.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['a', 'b']]] as parameters\n ,polygon.utils.udf_urlencode([['a', 'b']]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode([['a', 'b']])\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_2.ff2898d4a2": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['a', 'a'], ['b', 'b']]\n", "assertions": ["result = 'a=a&b=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_array_2", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_2.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_2.ff2898d4a2", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_2"], "alias": "utils_udf_urlencode_array_2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.9725306, "relation_name": "polygon.test.utils_udf_urlencode_array_2", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_2.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['a', 'a'], ['b', 'b']]] as parameters\n ,polygon.utils.udf_urlencode([['a', 'a'], ['b', 'b']]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=a&b=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode([['a', 'a'], ['b', 'b']])\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=a&b=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_space.67b6f51498": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['space', 'abc 123']]\n", "assertions": ["result = 'space=abc+123'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_array_space", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_space.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_space.67b6f51498", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_space"], "alias": "utils_udf_urlencode_array_space", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.9779499, "relation_name": "polygon.test.utils_udf_urlencode_array_space", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_space.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['space', 'abc 123']]] as parameters\n ,polygon.utils.udf_urlencode([['space', 'abc 123']]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'space=abc+123'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode([['space', 'abc 123']])\n;$$ AS sql\n FROM test\n WHERE NOT result = 'space=abc+123'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_special.746423269a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['special!', ' !@#$,+\"']]\n", "assertions": ["result = 'special%21=+%21%40%23%24%2C%2B%22'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_array_special", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_special.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_special.746423269a", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_special"], "alias": "utils_udf_urlencode_array_special", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.9835968, "relation_name": "polygon.test.utils_udf_urlencode_array_special", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_special.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['special!', ' !@#$,+\"']]] as parameters\n ,polygon.utils.udf_urlencode([['special!', ' !@#$,+\"']]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'special%21=+%21%40%23%24%2C%2B%22'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode([['special!', ' !@#$,+\"']])\n;$$ AS sql\n FROM test\n WHERE NOT result = 'special%21=+%21%40%23%24%2C%2B%22'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_array.3d05dcb6a9": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['array', [0, 1, 2]]]\n", "assertions": ["result = 'array=%5B0%2C+1%2C+2%5D'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_urlencode_array_array", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_array.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_array.3d05dcb6a9", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_array"], "alias": "utils_udf_urlencode_array_array", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.989263, "relation_name": "polygon.test.utils_udf_urlencode_array_array", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_array.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['array', [0, 1, 2]]]] as parameters\n ,polygon.utils.udf_urlencode([['array', [0, 1, 2]]]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'array=%5B0%2C+1%2C+2%5D'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_urlencode([['array', [0, 1, 2]]])\n;$$ AS sql\n FROM test\n WHERE NOT result = 'array=%5B0%2C+1%2C+2%5D'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_int_to_binary.46856460db": {"test_metadata": {"name": "test_udf", "kwargs": {"args": 123456789, "assertions": ["result = '111010110111100110100010101'"], "column_name": "udf_int_to_binary", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_int_to_binary", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_int_to_binary.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_int_to_binary.46856460db", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_int_to_binary"], "alias": "utils_udf_int_to_binary", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018436.9947073, "relation_name": "polygon.test.utils_udf_int_to_binary", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_int_to_binary.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_int_to_binary' AS test_name\n ,[123456789] as parameters\n ,polygon.utils.udf_int_to_binary(123456789) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = '111010110111100110100010101'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_int_to_binary(123456789)\n;$$ AS sql\n FROM test\n WHERE NOT result = '111010110111100110100010101'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_int_to_binary", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_int_to_binary_large_number.feba996e3b": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'123456789123456789123456789123456789123456789'", "assertions": ["result = '101100010010011011011100101001111010001001110011010111111101111101010111011001001101000001111110001010100001011011010000100000001000101111100010101'"], "column_name": "udf_int_to_binary", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_int_to_binary_large_number", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_int_to_binary_large_number.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_int_to_binary_large_number.feba996e3b", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_int_to_binary_large_number"], "alias": "utils_udf_int_to_binary_large_number", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.000419, "relation_name": "polygon.test.utils_udf_int_to_binary_large_number", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_int_to_binary_large_number.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_int_to_binary' AS test_name\n ,['123456789123456789123456789123456789123456789'] as parameters\n ,polygon.utils.udf_int_to_binary('123456789123456789123456789123456789123456789') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = '101100010010011011011100101001111010001001110011010111111101111101010111011001001101000001111110001010100001011011010000100000001000101111100010101'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_int_to_binary('123456789123456789123456789123456789123456789')\n;$$ AS sql\n FROM test\n WHERE NOT result = '101100010010011011011100101001111010001001110011010111111101111101010111011001001101000001111110001010100001011011010000100000001000101111100010101'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_int_to_binary", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_binary_to_int.907b20f381": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "111010110111100110100010101", "assertions": ["result = '123456789'"], "column_name": "udf_binary_to_int", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_binary_to_int", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_binary_to_int.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_binary_to_int.907b20f381", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_binary_to_int"], "alias": "utils_udf_binary_to_int", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.0064538, "relation_name": "polygon.test.utils_udf_binary_to_int", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_binary_to_int.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_binary_to_int' AS test_name\n ,[111010110111100110100010101] as parameters\n ,polygon.utils.udf_binary_to_int(111010110111100110100010101) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = '123456789'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_binary_to_int(111010110111100110100010101)\n;$$ AS sql\n FROM test\n WHERE NOT result = '123456789'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_binary_to_int", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_binary_to_int_large_number.926bff44e9": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'110110110100110110100101110101100110100000101111100010101'", "assertions": ["result = '123456789123456789'"], "column_name": "udf_binary_to_int", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_binary_to_int_large_number", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_binary_to_int_large_number.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_binary_to_int_large_number.926bff44e9", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_binary_to_int_large_number"], "alias": "utils_udf_binary_to_int_large_number", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.0121882, "relation_name": "polygon.test.utils_udf_binary_to_int_large_number", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_binary_to_int_large_number.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_binary_to_int' AS test_name\n ,['110110110100110110100101110101100110100000101111100010101'] as parameters\n ,polygon.utils.udf_binary_to_int('110110110100110110100101110101100110100000101111100010101') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = '123456789123456789'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_binary_to_int('110110110100110110100101110101100110100000101111100010101')\n;$$ AS sql\n FROM test\n WHERE NOT result = '123456789123456789'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_binary_to_int", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_evm_decode_log.b6fedb07e9": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': false,\n 'name': 'nonce',\n 'type': 'uint256'\n }\n ],\n 'name': 'NonceChanged',\n 'type': 'event'\n}::variant, {\n 'address': '0x55032650b14df07b85bf18a3a3ec8e0af2e028d5',\n 'data': '0x000000000000000000000000000000000000000000000000000000000000279c',\n 'topics': [\n '0x7220970e1f1f12864ecccd8942690a837c7a8dd45d158cb891eb45a8a69134aa'\n ]\n}::variant\n", "assertions": ["result = [\n {\n 'address': '0x55032650b14df07b85bF18A3a3eC8E0Af2e028d5',\n 'data': [\n {\n 'decoded': true,\n 'name': 'nonce',\n 'type': 'uint256',\n 'value': 10140\n }\n ],\n 'decoded': true,\n 'name': 'NonceChanged'\n }\n]"], "column_name": "udf_evm_decode_log", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test", "name": "test__utils_udf_evm_decode_log", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_evm_decode_log.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_evm_decode_log.b6fedb07e9", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_evm_decode_log"], "alias": "utils_udf_evm_decode_log", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.0183728, "relation_name": "polygon.test.utils_udf_evm_decode_log", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_evm_decode_log.sql", "compiled": true, "compiled_code": "\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_evm_decode_log' AS test_name\n ,[{\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': false,\n 'name': 'nonce',\n 'type': 'uint256'\n }\n ],\n 'name': 'NonceChanged',\n 'type': 'event'\n}::variant, {\n 'address': '0x55032650b14df07b85bf18a3a3ec8e0af2e028d5',\n 'data': '0x000000000000000000000000000000000000000000000000000000000000279c',\n 'topics': [\n '0x7220970e1f1f12864ecccd8942690a837c7a8dd45d158cb891eb45a8a69134aa'\n ]\n}::variant] as parameters\n ,polygon.utils.udf_evm_decode_log({\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': false,\n 'name': 'nonce',\n 'type': 'uint256'\n }\n ],\n 'name': 'NonceChanged',\n 'type': 'event'\n}::variant, {\n 'address': '0x55032650b14df07b85bf18a3a3ec8e0af2e028d5',\n 'data': '0x000000000000000000000000000000000000000000000000000000000000279c',\n 'topics': [\n '0x7220970e1f1f12864ecccd8942690a837c7a8dd45d158cb891eb45a8a69134aa'\n ]\n}::variant) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = [\n {\n 'address': '0x55032650b14df07b85bF18A3a3eC8E0Af2e028d5',\n 'data': [\n {\n 'decoded': true,\n 'name': 'nonce',\n 'type': 'uint256',\n 'value': 10140\n }\n ],\n 'decoded': true,\n 'name': 'NonceChanged'\n }\n]$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT polygon.utils.udf_evm_decode_log({\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': false,\n 'name': 'nonce',\n 'type': 'uint256'\n }\n ],\n 'name': 'NonceChanged',\n 'type': 'event'\n}::variant, {\n 'address': '0x55032650b14df07b85bf18a3a3ec8e0af2e028d5',\n 'data': '0x000000000000000000000000000000000000000000000000000000000000279c',\n 'topics': [\n '0x7220970e1f1f12864ecccd8942690a837c7a8dd45d158cb891eb45a8a69134aa'\n ]\n}::variant)\n;$$ AS sql\n FROM test\n WHERE NOT result = [\n {\n 'address': '0x55032650b14df07b85bF18A3a3eC8E0Af2e028d5',\n 'data': [\n {\n 'decoded': true,\n 'name': 'nonce',\n 'type': 'uint256',\n 'value': 10140\n }\n ],\n 'decoded': true,\n 'name': 'NonceChanged'\n }\n]\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_evm_decode_log", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__verified_abis_recent_CONTRACT_ADDRESS.788bba3ee1": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS"], "model": "{{ get_where_subquery(ref('test_silver__verified_abis_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__verified_abis_recent_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_e42167c23a64c422170e603b493ace45.sql", "original_file_path": "models/decoder_package/abis/silver/tests/verified_abis/test_silver__verified_abis_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__verified_abis_recent_CONTRACT_ADDRESS.788bba3ee1", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "verified_abis", "dbt_utils_unique_combination_of_columns_test_silver__verified_abis_recent_CONTRACT_ADDRESS"], "alias": "verified_abis_recent_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e42167c23a64c422170e603b493ace45", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e42167c23a64c422170e603b493ace45", "store_failures": true}, "created_at": 1764018437.254622, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.verified_abis_recent_CONTRACT_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e42167c23a64c422170e603b493ace45\") }}", "language": "sql", "refs": [{"name": "test_silver__verified_abis_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__verified_abis_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/verified_abis/test_silver__verified_abis_recent.yml/dbt_utils_unique_combination_o_e42167c23a64c422170e603b493ace45.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS\n from polygon.test_silver.verified_abis_recent\n group by CONTRACT_ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__verified_abis_recent", "attached_node": "model.fsc_evm.test_silver__verified_abis_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__verified_abis_full_CONTRACT_ADDRESS.15e49a38cc": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS"], "model": "{{ get_where_subquery(ref('test_silver__verified_abis_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__verified_abis_full_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_c814bcc6178fef8bd40a8a115a330551.sql", "original_file_path": "models/decoder_package/abis/silver/tests/verified_abis/test_silver__verified_abis_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__verified_abis_full_CONTRACT_ADDRESS.15e49a38cc", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "verified_abis", "dbt_utils_unique_combination_of_columns_test_silver__verified_abis_full_CONTRACT_ADDRESS"], "alias": "verified_abis_full_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c814bcc6178fef8bd40a8a115a330551", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c814bcc6178fef8bd40a8a115a330551", "store_failures": true}, "created_at": 1764018437.2602105, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.verified_abis_full_CONTRACT_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c814bcc6178fef8bd40a8a115a330551\") }}", "language": "sql", "refs": [{"name": "test_silver__verified_abis_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__verified_abis_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/verified_abis/test_silver__verified_abis_full.yml/dbt_utils_unique_combination_o_c814bcc6178fef8bd40a8a115a330551.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS\n from polygon.test_silver.verified_abis_full\n group by CONTRACT_ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__verified_abis_full", "attached_node": "model.fsc_evm.test_silver__verified_abis_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__user_verified_abis_recent_ID.053fe12111": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ID"], "model": "{{ get_where_subquery(ref('test_silver__user_verified_abis_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__user_verified_abis_recent_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_ee73a3e622f12ae279db1c223838acba.sql", "original_file_path": "models/decoder_package/abis/silver/tests/user_verified_abis/test_silver__user_verified_abis_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__user_verified_abis_recent_ID.053fe12111", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "user_verified_abis", "dbt_utils_unique_combination_of_columns_test_silver__user_verified_abis_recent_ID"], "alias": "user_verified_abis_recent_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ee73a3e622f12ae279db1c223838acba", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ee73a3e622f12ae279db1c223838acba", "store_failures": true}, "created_at": 1764018437.2657135, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.user_verified_abis_recent_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ee73a3e622f12ae279db1c223838acba\") }}", "language": "sql", "refs": [{"name": "test_silver__user_verified_abis_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__user_verified_abis_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/user_verified_abis/test_silver__user_verified_abis_recent.yml/dbt_utils_unique_combination_o_ee73a3e622f12ae279db1c223838acba.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ID\n from polygon.test_silver.user_verified_abis_recent\n group by ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__user_verified_abis_recent", "attached_node": "model.fsc_evm.test_silver__user_verified_abis_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__user_verified_abis_full_ID.8832906bf1": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ID"], "model": "{{ get_where_subquery(ref('test_silver__user_verified_abis_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__user_verified_abis_full_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_0002c8287872b8b5fd1d7a49dbfa415c.sql", "original_file_path": "models/decoder_package/abis/silver/tests/user_verified_abis/test_silver__user_verified_abis_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__user_verified_abis_full_ID.8832906bf1", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "user_verified_abis", "dbt_utils_unique_combination_of_columns_test_silver__user_verified_abis_full_ID"], "alias": "user_verified_abis_full_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0002c8287872b8b5fd1d7a49dbfa415c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0002c8287872b8b5fd1d7a49dbfa415c", "store_failures": true}, "created_at": 1764018437.2711475, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.user_verified_abis_full_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0002c8287872b8b5fd1d7a49dbfa415c\") }}", "language": "sql", "refs": [{"name": "test_silver__user_verified_abis_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__user_verified_abis_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/user_verified_abis/test_silver__user_verified_abis_full.yml/dbt_utils_unique_combination_o_0002c8287872b8b5fd1d7a49dbfa415c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ID\n from polygon.test_silver.user_verified_abis_full\n group by ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__user_verified_abis_full", "attached_node": "model.fsc_evm.test_silver__user_verified_abis_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__bytecode_abis_full_CONTRACT_ADDRESS__ABI_HASH.111a1fed7f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS", "ABI_HASH"], "model": "{{ get_where_subquery(ref('test_silver__bytecode_abis_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__bytecode_abis_full_CONTRACT_ADDRESS__ABI_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_00defd498ae611295a1d02f127c4be9e.sql", "original_file_path": "models/decoder_package/abis/silver/tests/bytecode_abis/test_silver__bytecode_abis_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__bytecode_abis_full_CONTRACT_ADDRESS__ABI_HASH.111a1fed7f", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "bytecode_abis", "dbt_utils_unique_combination_of_columns_test_silver__bytecode_abis_full_CONTRACT_ADDRESS__ABI_HASH"], "alias": "bytecode_abis_full_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_00defd498ae611295a1d02f127c4be9e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_00defd498ae611295a1d02f127c4be9e", "store_failures": true}, "created_at": 1764018437.276594, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.bytecode_abis_full_CONTRACT_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_00defd498ae611295a1d02f127c4be9e\") }}", "language": "sql", "refs": [{"name": "test_silver__bytecode_abis_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__bytecode_abis_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/bytecode_abis/test_silver__bytecode_abis_full.yml/dbt_utils_unique_combination_o_00defd498ae611295a1d02f127c4be9e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS, ABI_HASH\n from polygon.test_silver.bytecode_abis_full\n group by CONTRACT_ADDRESS, ABI_HASH\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__bytecode_abis_full", "attached_node": "model.fsc_evm.test_silver__bytecode_abis_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__bytecode_abis_recent_CONTRACT_ADDRESS__ABI_HASH.eab02f6812": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS", "ABI_HASH"], "model": "{{ get_where_subquery(ref('test_silver__bytecode_abis_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__bytecode_abis_recent_CONTRACT_ADDRESS__ABI_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_b79ed5e9bde005293e671567e63fdea4.sql", "original_file_path": "models/decoder_package/abis/silver/tests/bytecode_abis/test_silver__bytecode_abis_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__bytecode_abis_recent_CONTRACT_ADDRESS__ABI_HASH.eab02f6812", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "bytecode_abis", "dbt_utils_unique_combination_of_columns_test_silver__bytecode_abis_recent_CONTRACT_ADDRESS__ABI_HASH"], "alias": "bytecode_abis_recent_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b79ed5e9bde005293e671567e63fdea4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b79ed5e9bde005293e671567e63fdea4", "store_failures": true}, "created_at": 1764018437.2822454, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.bytecode_abis_recent_CONTRACT_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b79ed5e9bde005293e671567e63fdea4\") }}", "language": "sql", "refs": [{"name": "test_silver__bytecode_abis_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__bytecode_abis_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/bytecode_abis/test_silver__bytecode_abis_recent.yml/dbt_utils_unique_combination_o_b79ed5e9bde005293e671567e63fdea4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS, ABI_HASH\n from polygon.test_silver.bytecode_abis_recent\n group by CONTRACT_ADDRESS, ABI_HASH\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__bytecode_abis_recent", "attached_node": "model.fsc_evm.test_silver__bytecode_abis_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__abis_full_CONTRACT_ADDRESS.6bc2b660ff": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS"], "model": "{{ get_where_subquery(ref('test_silver__abis_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__abis_full_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_52d744845709b9da6d651caf6833af44.sql", "original_file_path": "models/decoder_package/abis/silver/tests/abis/test_silver__abis_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__abis_full_CONTRACT_ADDRESS.6bc2b660ff", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "abis", "dbt_utils_unique_combination_of_columns_test_silver__abis_full_CONTRACT_ADDRESS"], "alias": "abis_full_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_52d744845709b9da6d651caf6833af44", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_52d744845709b9da6d651caf6833af44", "store_failures": true}, "created_at": 1764018437.2881117, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.abis_full_CONTRACT_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_52d744845709b9da6d651caf6833af44\") }}", "language": "sql", "refs": [{"name": "test_silver__abis_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__abis_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/abis/test_silver__abis_full.yml/dbt_utils_unique_combination_o_52d744845709b9da6d651caf6833af44.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS\n from polygon.test_silver.abis_full\n group by CONTRACT_ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__abis_full", "attached_node": "model.fsc_evm.test_silver__abis_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__abis_recent_CONTRACT_ADDRESS.136d8d9ae5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS"], "model": "{{ get_where_subquery(ref('test_silver__abis_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__abis_recent_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_91b686bcd7a41026c3d65274f180f97a.sql", "original_file_path": "models/decoder_package/abis/silver/tests/abis/test_silver__abis_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__abis_recent_CONTRACT_ADDRESS.136d8d9ae5", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "abis", "dbt_utils_unique_combination_of_columns_test_silver__abis_recent_CONTRACT_ADDRESS"], "alias": "abis_recent_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_91b686bcd7a41026c3d65274f180f97a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_91b686bcd7a41026c3d65274f180f97a", "store_failures": true}, "created_at": 1764018437.293526, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.abis_recent_CONTRACT_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_91b686bcd7a41026c3d65274f180f97a\") }}", "language": "sql", "refs": [{"name": "test_silver__abis_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__abis_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/abis/test_silver__abis_recent.yml/dbt_utils_unique_combination_o_91b686bcd7a41026c3d65274f180f97a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS\n from polygon.test_silver.abis_recent\n group by CONTRACT_ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__abis_recent", "attached_node": "model.fsc_evm.test_silver__abis_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__complete_event_abis_full_PARENT_CONTRACT_ADDRESS__EVENT_SIGNATURE__START_BLOCK.81837f99b9": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["PARENT_CONTRACT_ADDRESS", "EVENT_SIGNATURE", "START_BLOCK"], "model": "{{ get_where_subquery(ref('test_silver__complete_event_abis_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__complete_event_abis_full_PARENT_CONTRACT_ADDRESS__EVENT_SIGNATURE__START_BLOCK", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_fed8912d7f5af97d995d58d20506cc80.sql", "original_file_path": "models/decoder_package/abis/silver/tests/event_abis/test_silver__complete_event_abis_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__complete_event_abis_full_PARENT_CONTRACT_ADDRESS__EVENT_SIGNATURE__START_BLOCK.81837f99b9", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "event_abis", "dbt_utils_unique_combination_of_columns_test_silver__complete_event_abis_full_PARENT_CONTRACT_ADDRESS__EVENT_SIGNATURE__START_BLOCK"], "alias": "complete_event_abis_full_PARENT_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fed8912d7f5af97d995d58d20506cc80", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fed8912d7f5af97d995d58d20506cc80", "store_failures": true}, "created_at": 1764018437.2987816, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.complete_event_abis_full_PARENT_CONTRACT_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fed8912d7f5af97d995d58d20506cc80\") }}", "language": "sql", "refs": [{"name": "test_silver__complete_event_abis_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__complete_event_abis_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/event_abis/test_silver__complete_event_abis_full.yml/dbt_utils_unique_combination_o_fed8912d7f5af97d995d58d20506cc80.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n PARENT_CONTRACT_ADDRESS, EVENT_SIGNATURE, START_BLOCK\n from polygon.test_silver.complete_event_abis_full\n group by PARENT_CONTRACT_ADDRESS, EVENT_SIGNATURE, START_BLOCK\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__complete_event_abis_full", "attached_node": "model.fsc_evm.test_silver__complete_event_abis_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__complete_event_abis_recent_PARENT_CONTRACT_ADDRESS__EVENT_SIGNATURE__START_BLOCK.f72f3b769f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["PARENT_CONTRACT_ADDRESS", "EVENT_SIGNATURE", "START_BLOCK"], "model": "{{ get_where_subquery(ref('test_silver__complete_event_abis_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__complete_event_abis_recent_PARENT_CONTRACT_ADDRESS__EVENT_SIGNATURE__START_BLOCK", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_600214942ddfca131fa71682cf348ae2.sql", "original_file_path": "models/decoder_package/abis/silver/tests/event_abis/test_silver__complete_event_abis_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__complete_event_abis_recent_PARENT_CONTRACT_ADDRESS__EVENT_SIGNATURE__START_BLOCK.f72f3b769f", "fqn": ["fsc_evm", "decoder_package", "abis", "silver", "tests", "event_abis", "dbt_utils_unique_combination_of_columns_test_silver__complete_event_abis_recent_PARENT_CONTRACT_ADDRESS__EVENT_SIGNATURE__START_BLOCK"], "alias": "complete_event_abis_recent_PARENT_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_600214942ddfca131fa71682cf348ae2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_600214942ddfca131fa71682cf348ae2", "store_failures": true}, "created_at": 1764018437.3053532, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.complete_event_abis_recent_PARENT_CONTRACT_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_600214942ddfca131fa71682cf348ae2\") }}", "language": "sql", "refs": [{"name": "test_silver__complete_event_abis_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__complete_event_abis_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/silver/tests/event_abis/test_silver__complete_event_abis_recent.yml/dbt_utils_unique_combination_o_600214942ddfca131fa71682cf348ae2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n PARENT_CONTRACT_ADDRESS, EVENT_SIGNATURE, START_BLOCK\n from polygon.test_silver.complete_event_abis_recent\n group by PARENT_CONTRACT_ADDRESS, EVENT_SIGNATURE, START_BLOCK\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__complete_event_abis_recent", "attached_node": "model.fsc_evm.test_silver__complete_event_abis_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__dim_contract_abis_recent_CONTRACT_ADDRESS.4dc01d4661": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS"], "model": "{{ get_where_subquery(ref('test_gold__dim_contract_abis_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__dim_contract_abis_recent_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_2891ade7f787c8b5e678831a221cc5a4.sql", "original_file_path": "models/decoder_package/abis/gold/tests/test_gold__dim_contract_abis_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__dim_contract_abis_recent_CONTRACT_ADDRESS.4dc01d4661", "fqn": ["fsc_evm", "decoder_package", "abis", "gold", "tests", "dbt_utils_unique_combination_of_columns_test_gold__dim_contract_abis_recent_CONTRACT_ADDRESS"], "alias": "dim_contract_abis_recent_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2891ade7f787c8b5e678831a221cc5a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2891ade7f787c8b5e678831a221cc5a4", "store_failures": true}, "created_at": 1764018437.312525, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.dim_contract_abis_recent_CONTRACT_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2891ade7f787c8b5e678831a221cc5a4\") }}", "language": "sql", "refs": [{"name": "test_gold__dim_contract_abis_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__dim_contract_abis_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/gold/tests/test_gold__dim_contract_abis_recent.yml/dbt_utils_unique_combination_o_2891ade7f787c8b5e678831a221cc5a4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS\n from polygon.test_gold.dim_contract_abis_recent\n group by CONTRACT_ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__dim_contract_abis_recent", "attached_node": "model.fsc_evm.test_gold__dim_contract_abis_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__dim_contract_abis_full_CONTRACT_ADDRESS.fca68d5e2f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS"], "model": "{{ get_where_subquery(ref('test_gold__dim_contract_abis_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__dim_contract_abis_full_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_869c2b086264ef011b8553cedc092d25.sql", "original_file_path": "models/decoder_package/abis/gold/tests/test_gold__dim_contract_abis_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__dim_contract_abis_full_CONTRACT_ADDRESS.fca68d5e2f", "fqn": ["fsc_evm", "decoder_package", "abis", "gold", "tests", "dbt_utils_unique_combination_of_columns_test_gold__dim_contract_abis_full_CONTRACT_ADDRESS"], "alias": "dim_contract_abis_full_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_869c2b086264ef011b8553cedc092d25", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_869c2b086264ef011b8553cedc092d25", "store_failures": true}, "created_at": 1764018437.3180146, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.dim_contract_abis_full_CONTRACT_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_869c2b086264ef011b8553cedc092d25\") }}", "language": "sql", "refs": [{"name": "test_gold__dim_contract_abis_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__dim_contract_abis_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/abis/gold/tests/test_gold__dim_contract_abis_full.yml/dbt_utils_unique_combination_o_869c2b086264ef011b8553cedc092d25.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS\n from polygon.test_gold.dim_contract_abis_full\n group by CONTRACT_ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__dim_contract_abis_full", "attached_node": "model.fsc_evm.test_gold__dim_contract_abis_full"}, "test.fsc_evm.not_null_test_silver__decoded_logs_full_BLOCK_NUMBER.56f1e895c0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__decoded_logs_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__decoded_logs_full_BLOCK_NUMBER.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_full_BLOCK_NUMBER.56f1e895c0", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "not_null_test_silver__decoded_logs_full_BLOCK_NUMBER"], "alias": "decoded_logs_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.324365, "relation_name": "polygon.not_null_test_silver.decoded_logs_full_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml/not_null_test_silver__decoded_logs_full_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.decoded_logs_full\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_silver__decoded_logs_full", "attached_node": "model.fsc_evm.test_silver__decoded_logs_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_BLOCK_NUMBER__NUMBER__FLOAT.76675adfdf": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_f761cccdc8239269555d4d9c50d90c34.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_BLOCK_NUMBER__NUMBER__FLOAT.76675adfdf", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "decoded_logs_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f761cccdc8239269555d4d9c50d90c34", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f761cccdc8239269555d4d9c50d90c34", "store_failures": true}, "created_at": 1764018437.326481, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.decoded_logs_full_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f761cccdc8239269555d4d9c50d90c34\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml/dbt_expectations_expect_column_f761cccdc8239269555d4d9c50d90c34.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_DATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFORMED' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_FLAT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_silver__decoded_logs_full", "attached_node": "model.fsc_evm.test_silver__decoded_logs_full"}, "test.fsc_evm.not_null_test_silver__decoded_logs_full_TX_HASH.9bc0884cbc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__decoded_logs_full_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__decoded_logs_full_TX_HASH.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_full_TX_HASH.9bc0884cbc", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "not_null_test_silver__decoded_logs_full_TX_HASH"], "alias": "decoded_logs_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.3311832, "relation_name": "polygon.not_null_test_silver.decoded_logs_full_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml/not_null_test_silver__decoded_logs_full_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.decoded_logs_full\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_silver__decoded_logs_full", "attached_node": "model.fsc_evm.test_silver__decoded_logs_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_full_TX_HASH__0_xX_0_9a_fA_F_.abdf44d14a": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_full_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_10d127d1937ee818ec626d6ce726bc91.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_full_TX_HASH__0_xX_0_9a_fA_F_.abdf44d14a", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_full_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "decoded_logs_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_10d127d1937ee818ec626d6ce726bc91", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_10d127d1937ee818ec626d6ce726bc91", "store_failures": true}, "created_at": 1764018437.3333726, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_silver.decoded_logs_full_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_10d127d1937ee818ec626d6ce726bc91\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml/dbt_expectations_expect_column_10d127d1937ee818ec626d6ce726bc91.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_silver.decoded_logs_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_silver__decoded_logs_full", "attached_node": "model.fsc_evm.test_silver__decoded_logs_full"}, "test.fsc_evm.not_null_test_silver__decoded_logs_full_EVENT_INDEX.d402882c82": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__decoded_logs_full_EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__decoded_logs_full_EVENT_INDEX.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_full_EVENT_INDEX.d402882c82", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "not_null_test_silver__decoded_logs_full_EVENT_INDEX"], "alias": "decoded_logs_full_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.338422, "relation_name": "polygon.not_null_test_silver.decoded_logs_full_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml/not_null_test_silver__decoded_logs_full_EVENT_INDEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.decoded_logs_full\nwhere EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.test_silver__decoded_logs_full", "attached_node": "model.fsc_evm.test_silver__decoded_logs_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_EVENT_INDEX__NUMBER__FLOAT.f03fc2121b": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_EVENT_INDEX__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_9a5662f2659564f67eb3495d695d4a09.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_EVENT_INDEX__NUMBER__FLOAT.f03fc2121b", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_EVENT_INDEX__NUMBER__FLOAT"], "alias": "decoded_logs_full_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9a5662f2659564f67eb3495d695d4a09", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_9a5662f2659564f67eb3495d695d4a09", "store_failures": true}, "created_at": 1764018437.3405101, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.decoded_logs_full_EVENT_INDEX", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9a5662f2659564f67eb3495d695d4a09\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml/dbt_expectations_expect_column_9a5662f2659564f67eb3495d695d4a09.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_DATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFORMED' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_FLAT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'EVENT_INDEX'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.test_silver__decoded_logs_full", "attached_node": "model.fsc_evm.test_silver__decoded_logs_full"}, "test.fsc_evm.not_null_test_silver__decoded_logs_full_CONTRACT_ADDRESS.38ce06a72b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__decoded_logs_full_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__decoded_logs_full_CONTRACT_ADDRESS.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_full_CONTRACT_ADDRESS.38ce06a72b", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "not_null_test_silver__decoded_logs_full_CONTRACT_ADDRESS"], "alias": "decoded_logs_full_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.345031, "relation_name": "polygon.not_null_test_silver.decoded_logs_full_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml/not_null_test_silver__decoded_logs_full_CONTRACT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.decoded_logs_full\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_silver__decoded_logs_full", "attached_node": "model.fsc_evm.test_silver__decoded_logs_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.11ad7f4a46": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_167243c3072e4cb68852b5d884711a53.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.11ad7f4a46", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "decoded_logs_full_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_167243c3072e4cb68852b5d884711a53", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_167243c3072e4cb68852b5d884711a53", "store_failures": true}, "created_at": 1764018437.3473804, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_silver.decoded_logs_full_CONTRACT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_167243c3072e4cb68852b5d884711a53\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml/dbt_expectations_expect_column_167243c3072e4cb68852b5d884711a53.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_silver.decoded_logs_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_silver__decoded_logs_full", "attached_node": "model.fsc_evm.test_silver__decoded_logs_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_EVENT_NAME__STRING__VARCHAR.d6989542d6": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "EVENT_NAME", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_EVENT_NAME__STRING__VARCHAR", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_4a0eb454e40b0a36984c46dc0af53e94.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_EVENT_NAME__STRING__VARCHAR.d6989542d6", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_EVENT_NAME__STRING__VARCHAR"], "alias": "decoded_logs_full_EVENT_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4a0eb454e40b0a36984c46dc0af53e94", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_4a0eb454e40b0a36984c46dc0af53e94", "store_failures": true}, "created_at": 1764018437.3522305, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.decoded_logs_full_EVENT_NAME", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4a0eb454e40b0a36984c46dc0af53e94\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml/dbt_expectations_expect_column_4a0eb454e40b0a36984c46dc0af53e94.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_DATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFORMED' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_FLAT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'EVENT_NAME'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_NAME", "file_key_name": "models.test_silver__decoded_logs_full", "attached_node": "model.fsc_evm.test_silver__decoded_logs_full"}, "test.fsc_evm.not_null_test_silver__decoded_logs_full_INSERTED_TIMESTAMP.947b1ded8c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__decoded_logs_full_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__decoded_logs_full_INSERTED_TIMESTAMP.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_full_INSERTED_TIMESTAMP.947b1ded8c", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "not_null_test_silver__decoded_logs_full_INSERTED_TIMESTAMP"], "alias": "decoded_logs_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.357761, "relation_name": "polygon.not_null_test_silver.decoded_logs_full_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml/not_null_test_silver__decoded_logs_full_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.decoded_logs_full\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__decoded_logs_full", "attached_node": "model.fsc_evm.test_silver__decoded_logs_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_full_INSERTED_TIMESTAMP__hour__2.6d11a12f63": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_full_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_da7ad8ab35047070d9fef7b652abd136.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_full_INSERTED_TIMESTAMP__hour__2.6d11a12f63", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_full_INSERTED_TIMESTAMP__hour__2"], "alias": "decoded_logs_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_da7ad8ab35047070d9fef7b652abd136", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_da7ad8ab35047070d9fef7b652abd136", "store_failures": true}, "created_at": 1764018437.359886, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.decoded_logs_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_da7ad8ab35047070d9fef7b652abd136\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml/dbt_expectations_expect_row_va_da7ad8ab35047070d9fef7b652abd136.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.decoded_logs_full\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__decoded_logs_full", "attached_node": "model.fsc_evm.test_silver__decoded_logs_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.6468c94ec8": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_e2eb031ae5165c73a5ea24d4241b6a80.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.6468c94ec8", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "decoded_logs_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e2eb031ae5165c73a5ea24d4241b6a80", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_e2eb031ae5165c73a5ea24d4241b6a80", "store_failures": true}, "created_at": 1764018437.367576, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.decoded_logs_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e2eb031ae5165c73a5ea24d4241b6a80\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml/dbt_expectations_expect_column_e2eb031ae5165c73a5ea24d4241b6a80.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_DATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFORMED' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_FLAT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__decoded_logs_full", "attached_node": "model.fsc_evm.test_silver__decoded_logs_full"}, "test.fsc_evm.not_null_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP.80dc3c0d89": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP.80dc3c0d89", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "not_null_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP"], "alias": "decoded_logs_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.3722725, "relation_name": "polygon.not_null_test_silver.decoded_logs_full_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml/not_null_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.decoded_logs_full\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__decoded_logs_full", "attached_node": "model.fsc_evm.test_silver__decoded_logs_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP__hour__2.23d29858c5": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_1962148ec543da64bf6bee9f0ee66b4f.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP__hour__2.23d29858c5", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP__hour__2"], "alias": "decoded_logs_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_1962148ec543da64bf6bee9f0ee66b4f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_1962148ec543da64bf6bee9f0ee66b4f", "store_failures": true}, "created_at": 1764018437.3743885, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.decoded_logs_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_1962148ec543da64bf6bee9f0ee66b4f\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml/dbt_expectations_expect_row_va_1962148ec543da64bf6bee9f0ee66b4f.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.decoded_logs_full\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__decoded_logs_full", "attached_node": "model.fsc_evm.test_silver__decoded_logs_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.a1e69a24d9": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_6dde5ae27d5fffa1d2208deec0b2b37a.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.a1e69a24d9", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "decoded_logs_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_6dde5ae27d5fffa1d2208deec0b2b37a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_6dde5ae27d5fffa1d2208deec0b2b37a", "store_failures": true}, "created_at": 1764018437.3823378, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.decoded_logs_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_6dde5ae27d5fffa1d2208deec0b2b37a\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml/dbt_expectations_expect_column_6dde5ae27d5fffa1d2208deec0b2b37a.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_DATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFORMED' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_FLAT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'MODIFIED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__decoded_logs_full", "attached_node": "model.fsc_evm.test_silver__decoded_logs_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__decoded_logs_full_DECODED_LOGS_ID.537938d81c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["DECODED_LOGS_ID"], "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__decoded_logs_full_DECODED_LOGS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_7940b8a40c128fbd26cbc9bcade020b6.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__decoded_logs_full_DECODED_LOGS_ID.537938d81c", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_utils_unique_combination_of_columns_test_silver__decoded_logs_full_DECODED_LOGS_ID"], "alias": "decoded_logs_full_DECODED_LOGS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7940b8a40c128fbd26cbc9bcade020b6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7940b8a40c128fbd26cbc9bcade020b6", "store_failures": true}, "created_at": 1764018437.3870225, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.decoded_logs_full_DECODED_LOGS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7940b8a40c128fbd26cbc9bcade020b6\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_full.yml/dbt_utils_unique_combination_o_7940b8a40c128fbd26cbc9bcade020b6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n DECODED_LOGS_ID\n from polygon.test_silver.decoded_logs_full\n group by DECODED_LOGS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__decoded_logs_full", "attached_node": "model.fsc_evm.test_silver__decoded_logs_full"}, "test.fsc_evm.not_null_test_silver__decoded_logs_recent_BLOCK_NUMBER.c8ab501b30": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__decoded_logs_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__decoded_logs_recent_BLOCK_NUMBER.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_recent_BLOCK_NUMBER.c8ab501b30", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "not_null_test_silver__decoded_logs_recent_BLOCK_NUMBER"], "alias": "decoded_logs_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.3937411, "relation_name": "polygon.not_null_test_silver.decoded_logs_recent_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml/not_null_test_silver__decoded_logs_recent_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.decoded_logs_recent\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_silver__decoded_logs_recent", "attached_node": "model.fsc_evm.test_silver__decoded_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_BLOCK_NUMBER__NUMBER__FLOAT.7feb70f478": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_e31b11c461e60af429f0398c011f1388.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_BLOCK_NUMBER__NUMBER__FLOAT.7feb70f478", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "decoded_logs_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e31b11c461e60af429f0398c011f1388", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_e31b11c461e60af429f0398c011f1388", "store_failures": true}, "created_at": 1764018437.3958828, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.decoded_logs_recent_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e31b11c461e60af429f0398c011f1388\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml/dbt_expectations_expect_column_e31b11c461e60af429f0398c011f1388.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_DATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFORMED' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_FLAT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_silver__decoded_logs_recent", "attached_node": "model.fsc_evm.test_silver__decoded_logs_recent"}, "test.fsc_evm.not_null_test_silver__decoded_logs_recent_TX_HASH.6dfd6d6fcb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__decoded_logs_recent_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__decoded_logs_recent_TX_HASH.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_recent_TX_HASH.6dfd6d6fcb", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "not_null_test_silver__decoded_logs_recent_TX_HASH"], "alias": "decoded_logs_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.4004786, "relation_name": "polygon.not_null_test_silver.decoded_logs_recent_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml/not_null_test_silver__decoded_logs_recent_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.decoded_logs_recent\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_silver__decoded_logs_recent", "attached_node": "model.fsc_evm.test_silver__decoded_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_recent_TX_HASH__0_xX_0_9a_fA_F_.994fffe1a9": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_recent_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_69b8b98aca19a6c31296ec30f5d8dca2.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_recent_TX_HASH__0_xX_0_9a_fA_F_.994fffe1a9", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_recent_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "decoded_logs_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_69b8b98aca19a6c31296ec30f5d8dca2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_69b8b98aca19a6c31296ec30f5d8dca2", "store_failures": true}, "created_at": 1764018437.402842, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_silver.decoded_logs_recent_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_69b8b98aca19a6c31296ec30f5d8dca2\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml/dbt_expectations_expect_column_69b8b98aca19a6c31296ec30f5d8dca2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_silver.decoded_logs_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_silver__decoded_logs_recent", "attached_node": "model.fsc_evm.test_silver__decoded_logs_recent"}, "test.fsc_evm.not_null_test_silver__decoded_logs_recent_EVENT_INDEX.a1b3a9a86b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__decoded_logs_recent_EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__decoded_logs_recent_EVENT_INDEX.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_recent_EVENT_INDEX.a1b3a9a86b", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "not_null_test_silver__decoded_logs_recent_EVENT_INDEX"], "alias": "decoded_logs_recent_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.4077957, "relation_name": "polygon.not_null_test_silver.decoded_logs_recent_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml/not_null_test_silver__decoded_logs_recent_EVENT_INDEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.decoded_logs_recent\nwhere EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.test_silver__decoded_logs_recent", "attached_node": "model.fsc_evm.test_silver__decoded_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_EVENT_INDEX__NUMBER__FLOAT.722a3594c3": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_EVENT_INDEX__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_50cbc60944e6ed64367771cadf3f0e69.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_EVENT_INDEX__NUMBER__FLOAT.722a3594c3", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_EVENT_INDEX__NUMBER__FLOAT"], "alias": "decoded_logs_recent_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_50cbc60944e6ed64367771cadf3f0e69", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_50cbc60944e6ed64367771cadf3f0e69", "store_failures": true}, "created_at": 1764018437.4099157, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.decoded_logs_recent_EVENT_INDEX", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_50cbc60944e6ed64367771cadf3f0e69\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml/dbt_expectations_expect_column_50cbc60944e6ed64367771cadf3f0e69.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_DATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFORMED' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_FLAT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'EVENT_INDEX'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.test_silver__decoded_logs_recent", "attached_node": "model.fsc_evm.test_silver__decoded_logs_recent"}, "test.fsc_evm.not_null_test_silver__decoded_logs_recent_CONTRACT_ADDRESS.4a09b257d3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__decoded_logs_recent_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__decoded_logs_recent_CONTRACT_ADDRESS.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_recent_CONTRACT_ADDRESS.4a09b257d3", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "not_null_test_silver__decoded_logs_recent_CONTRACT_ADDRESS"], "alias": "decoded_logs_recent_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.4146528, "relation_name": "polygon.not_null_test_silver.decoded_logs_recent_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml/not_null_test_silver__decoded_logs_recent_CONTRACT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.decoded_logs_recent\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_silver__decoded_logs_recent", "attached_node": "model.fsc_evm.test_silver__decoded_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.585a24330b": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_3d1f5dcf193b5b92be831ad6c751bdf7.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.585a24330b", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "decoded_logs_recent_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3d1f5dcf193b5b92be831ad6c751bdf7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3d1f5dcf193b5b92be831ad6c751bdf7", "store_failures": true}, "created_at": 1764018437.4167652, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_silver.decoded_logs_recent_CONTRACT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3d1f5dcf193b5b92be831ad6c751bdf7\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml/dbt_expectations_expect_column_3d1f5dcf193b5b92be831ad6c751bdf7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_silver.decoded_logs_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_silver__decoded_logs_recent", "attached_node": "model.fsc_evm.test_silver__decoded_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_EVENT_NAME__STRING__VARCHAR.4459c81b7f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "EVENT_NAME", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_EVENT_NAME__STRING__VARCHAR", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_734d4b290550d70a3d68adf5eec60726.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_EVENT_NAME__STRING__VARCHAR.4459c81b7f", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_EVENT_NAME__STRING__VARCHAR"], "alias": "decoded_logs_recent_EVENT_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_734d4b290550d70a3d68adf5eec60726", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_734d4b290550d70a3d68adf5eec60726", "store_failures": true}, "created_at": 1764018437.422123, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.decoded_logs_recent_EVENT_NAME", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_734d4b290550d70a3d68adf5eec60726\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml/dbt_expectations_expect_column_734d4b290550d70a3d68adf5eec60726.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_DATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFORMED' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_FLAT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'EVENT_NAME'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_NAME", "file_key_name": "models.test_silver__decoded_logs_recent", "attached_node": "model.fsc_evm.test_silver__decoded_logs_recent"}, "test.fsc_evm.not_null_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP.33bd9eb14a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP.33bd9eb14a", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "not_null_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP"], "alias": "decoded_logs_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.4275575, "relation_name": "polygon.not_null_test_silver.decoded_logs_recent_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml/not_null_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.decoded_logs_recent\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__decoded_logs_recent", "attached_node": "model.fsc_evm.test_silver__decoded_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP__hour__2.24ba46645f": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_b6ee9665afb89813afe9fabef59917e7.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP__hour__2.24ba46645f", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP__hour__2"], "alias": "decoded_logs_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_b6ee9665afb89813afe9fabef59917e7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_b6ee9665afb89813afe9fabef59917e7", "store_failures": true}, "created_at": 1764018437.4297874, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.decoded_logs_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_b6ee9665afb89813afe9fabef59917e7\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml/dbt_expectations_expect_row_va_b6ee9665afb89813afe9fabef59917e7.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.decoded_logs_recent\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__decoded_logs_recent", "attached_node": "model.fsc_evm.test_silver__decoded_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b467671a96": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_b6659dadc5463c8513024939a2fbff0e.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b467671a96", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "decoded_logs_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b6659dadc5463c8513024939a2fbff0e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b6659dadc5463c8513024939a2fbff0e", "store_failures": true}, "created_at": 1764018437.4382646, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.decoded_logs_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b6659dadc5463c8513024939a2fbff0e\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml/dbt_expectations_expect_column_b6659dadc5463c8513024939a2fbff0e.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_DATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFORMED' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_FLAT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__decoded_logs_recent", "attached_node": "model.fsc_evm.test_silver__decoded_logs_recent"}, "test.fsc_evm.not_null_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP.2bbb0bb170": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP.2bbb0bb170", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "not_null_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP"], "alias": "decoded_logs_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.4437833, "relation_name": "polygon.not_null_test_silver.decoded_logs_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml/not_null_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.decoded_logs_recent\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__decoded_logs_recent", "attached_node": "model.fsc_evm.test_silver__decoded_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP__hour__2.4e95ef6f32": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_e1ad74ec56fe52bb15bffafefda98323.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP__hour__2.4e95ef6f32", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP__hour__2"], "alias": "decoded_logs_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_e1ad74ec56fe52bb15bffafefda98323", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_e1ad74ec56fe52bb15bffafefda98323", "store_failures": true}, "created_at": 1764018437.4463809, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.decoded_logs_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_e1ad74ec56fe52bb15bffafefda98323\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml/dbt_expectations_expect_row_va_e1ad74ec56fe52bb15bffafefda98323.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.decoded_logs_recent\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__decoded_logs_recent", "attached_node": "model.fsc_evm.test_silver__decoded_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.76e468aa1e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_6c7c5d3591bc1f149e0affd64dc2c9d9.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.76e468aa1e", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "decoded_logs_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_6c7c5d3591bc1f149e0affd64dc2c9d9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_6c7c5d3591bc1f149e0affd64dc2c9d9", "store_failures": true}, "created_at": 1764018437.453901, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.decoded_logs_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_6c7c5d3591bc1f149e0affd64dc2c9d9\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml/dbt_expectations_expect_column_6c7c5d3591bc1f149e0affd64dc2c9d9.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_DATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFORMED' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_FLAT' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'MODIFIED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__decoded_logs_recent", "attached_node": "model.fsc_evm.test_silver__decoded_logs_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__decoded_logs_recent_DECODED_LOGS_ID.2bf95e427e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["DECODED_LOGS_ID"], "model": "{{ get_where_subquery(ref('test_silver__decoded_logs_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__decoded_logs_recent_DECODED_LOGS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_19933e701247b05d32be48982daebc63.sql", "original_file_path": "models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__decoded_logs_recent_DECODED_LOGS_ID.2bf95e427e", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "silver", "tests", "dbt_utils_unique_combination_of_columns_test_silver__decoded_logs_recent_DECODED_LOGS_ID"], "alias": "decoded_logs_recent_DECODED_LOGS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_19933e701247b05d32be48982daebc63", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_19933e701247b05d32be48982daebc63", "store_failures": true}, "created_at": 1764018437.4584143, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.decoded_logs_recent_DECODED_LOGS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_19933e701247b05d32be48982daebc63\") }}", "language": "sql", "refs": [{"name": "test_silver__decoded_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__decoded_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/silver/tests/test_silver__decoded_logs_recent.yml/dbt_utils_unique_combination_o_19933e701247b05d32be48982daebc63.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n DECODED_LOGS_ID\n from polygon.test_silver.decoded_logs_recent\n group by DECODED_LOGS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__decoded_logs_recent", "attached_node": "model.fsc_evm.test_silver__decoded_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_BLOCK_NUMBER.306b0da6a0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_full_BLOCK_NUMBER.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_BLOCK_NUMBER.306b0da6a0", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_BLOCK_NUMBER"], "alias": "ez_decoded_event_logs_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.4707177, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_event_logs_full_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP.9672b7c6fa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP.9672b7c6fa", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP"], "alias": "ez_decoded_event_logs_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.4729197, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP__hour__2.7139c09429": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_b4ea578461feaa768ee073cbc9887345.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP__hour__2.7139c09429", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP__hour__2"], "alias": "ez_decoded_event_logs_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_b4ea578461feaa768ee073cbc9887345", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_b4ea578461feaa768ee073cbc9887345", "store_failures": true}, "created_at": 1764018437.4750037, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_decoded_event_logs_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_b4ea578461feaa768ee073cbc9887345\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/dbt_expectations_expect_row_va_b4ea578461feaa768ee073cbc9887345.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.ez_decoded_event_logs_full\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.0db12ac511": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_a909463dbb9755d4e2d245aaac5cefff.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.0db12ac511", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "ez_decoded_event_logs_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a909463dbb9755d4e2d245aaac5cefff", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_a909463dbb9755d4e2d245aaac5cefff", "store_failures": true}, "created_at": 1764018437.4831665, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_decoded_event_logs_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a909463dbb9755d4e2d245aaac5cefff\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/dbt_expectations_expect_column_a909463dbb9755d4e2d245aaac5cefff.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_0' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_1' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_2' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_3' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FULL_DECODED_LOG' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_DECODED_EVENT_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_HASH.3a5ade2127": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_full_TX_HASH.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_HASH.3a5ade2127", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_TX_HASH"], "alias": "ez_decoded_event_logs_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.4877152, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_event_logs_full_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_POSITION.1f5c16c4dd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_full_TX_POSITION.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_POSITION.1f5c16c4dd", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_TX_POSITION"], "alias": "ez_decoded_event_logs_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.4898171, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_event_logs_full_TX_POSITION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere TX_POSITION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_INDEX.db8d2710d0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_full_EVENT_INDEX.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_INDEX.db8d2710d0", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_EVENT_INDEX"], "alias": "ez_decoded_event_logs_full_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.4922054, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_event_logs_full_EVENT_INDEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_CONTRACT_ADDRESS.8ee97e9829": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_full_CONTRACT_ADDRESS.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_CONTRACT_ADDRESS.8ee97e9829", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_CONTRACT_ADDRESS"], "alias": "ez_decoded_event_logs_full_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.4943159, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_event_logs_full_CONTRACT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TOPICS.03f5444318": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOPICS", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_TOPICS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_full_TOPICS.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TOPICS.03f5444318", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_TOPICS"], "alias": "ez_decoded_event_logs_full_TOPICS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.4964023, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_TOPICS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_event_logs_full_TOPICS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere TOPICS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOPICS", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TOPIC_0.852a0e07f6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOPIC_0", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_TOPIC_0", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_full_TOPIC_0.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TOPIC_0.852a0e07f6", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_TOPIC_0"], "alias": "ez_decoded_event_logs_full_TOPIC_0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.498486, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_TOPIC_0", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_event_logs_full_TOPIC_0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere TOPIC_0 is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOPIC_0", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_DATA.4c46b98652": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DATA", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_DATA", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_full_DATA.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_DATA.4c46b98652", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_DATA"], "alias": "ez_decoded_event_logs_full_DATA", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.5005412, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_DATA", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_event_logs_full_DATA.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DATA", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_REMOVED.c806d11add": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_REMOVED", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_EVENT_REMOVED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_full_EVENT_REMOVED.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_REMOVED.c806d11add", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_EVENT_REMOVED"], "alias": "ez_decoded_event_logs_full_EVENT_REMOVED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.502602, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_EVENT_REMOVED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_event_logs_full_EVENT_REMOVED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere EVENT_REMOVED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_REMOVED", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_ORIGIN_FROM_ADDRESS.3db9f8fabd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_d67e6fe6da97082de1f4f56eb17c68b2.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_ORIGIN_FROM_ADDRESS.3db9f8fabd", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_ORIGIN_FROM_ADDRESS"], "alias": "ez_decoded_event_logs_full_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_decoded_d67e6fe6da97082de1f4f56eb17c68b2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_decoded_d67e6fe6da97082de1f4f56eb17c68b2", "store_failures": true}, "created_at": 1764018437.5049713, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_decoded_d67e6fe6da97082de1f4f56eb17c68b2\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_d67e6fe6da97082de1f4f56eb17c68b2.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_ORIGIN_FUNCTION_SIGNATURE.d94e4328a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_4b108fde93b89c3431c85d65467d4f13.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_ORIGIN_FUNCTION_SIGNATURE.d94e4328a7", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_ORIGIN_FUNCTION_SIGNATURE"], "alias": "ez_decoded_event_logs_full_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_decoded_4b108fde93b89c3431c85d65467d4f13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_decoded_4b108fde93b89c3431c85d65467d4f13", "store_failures": true}, "created_at": 1764018437.5070603, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_decoded_4b108fde93b89c3431c85d65467d4f13\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_4b108fde93b89c3431c85d65467d4f13.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_SUCCEEDED.ac8e3e83cb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_TX_SUCCEEDED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_full_TX_SUCCEEDED.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_SUCCEEDED.ac8e3e83cb", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_TX_SUCCEEDED"], "alias": "ez_decoded_event_logs_full_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.509143, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_TX_SUCCEEDED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_event_logs_full_TX_SUCCEEDED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_SUCCEEDED", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_NAME.a9a7c84d87": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_NAME", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_EVENT_NAME", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_full_EVENT_NAME.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_NAME.a9a7c84d87", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_EVENT_NAME"], "alias": "ez_decoded_event_logs_full_EVENT_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.5112436, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_EVENT_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_event_logs_full_EVENT_NAME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere EVENT_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_NAME", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_FULL_DECODED_LOG.7265873d57": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FULL_DECODED_LOG", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_FULL_DECODED_LOG", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_full_FULL_DECODED_LOG.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_FULL_DECODED_LOG.7265873d57", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_FULL_DECODED_LOG"], "alias": "ez_decoded_event_logs_full_FULL_DECODED_LOG", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.5133147, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_FULL_DECODED_LOG", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_event_logs_full_FULL_DECODED_LOG.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere FULL_DECODED_LOG is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FULL_DECODED_LOG", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_DECODED_LOG.2f64537edd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DECODED_LOG", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_DECODED_LOG", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_full_DECODED_LOG.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_DECODED_LOG.2f64537edd", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_DECODED_LOG"], "alias": "ez_decoded_event_logs_full_DECODED_LOG", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.5153873, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_DECODED_LOG", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_event_logs_full_DECODED_LOG.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere DECODED_LOG is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DECODED_LOG", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID.6d0c115405": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EZ_DECODED_EVENT_LOGS_ID", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_1e126da56b402ec1053a09310b590a69.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID.6d0c115405", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID"], "alias": "ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_decoded_1e126da56b402ec1053a09310b590a69", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_decoded_1e126da56b402ec1053a09310b590a69", "store_failures": true}, "created_at": 1764018437.5175028, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_decoded_1e126da56b402ec1053a09310b590a69\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_1e126da56b402ec1053a09310b590a69.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere EZ_DECODED_EVENT_LOGS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EZ_DECODED_EVENT_LOGS_ID", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP.51f3049a5d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_36533c4dea1b7966b4177f09f37a90d9.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP.51f3049a5d", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP"], "alias": "ez_decoded_event_logs_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_decoded_36533c4dea1b7966b4177f09f37a90d9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_decoded_36533c4dea1b7966b4177f09f37a90d9", "store_failures": true}, "created_at": 1764018437.5198736, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_decoded_36533c4dea1b7966b4177f09f37a90d9\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_36533c4dea1b7966b4177f09f37a90d9.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP__hour__2.ffec548ee5": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_0b293934e366fd93f8cc41af1ebd11ea.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP__hour__2.ffec548ee5", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP__hour__2"], "alias": "ez_decoded_event_logs_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_0b293934e366fd93f8cc41af1ebd11ea", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_0b293934e366fd93f8cc41af1ebd11ea", "store_failures": true}, "created_at": 1764018437.5219657, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_decoded_event_logs_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_0b293934e366fd93f8cc41af1ebd11ea\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/dbt_expectations_expect_row_va_0b293934e366fd93f8cc41af1ebd11ea.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.ez_decoded_event_logs_full\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.5c1c155df0": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_c74310e4d3d20a316e281a2bcf7f0d86.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.5c1c155df0", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "ez_decoded_event_logs_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c74310e4d3d20a316e281a2bcf7f0d86", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c74310e4d3d20a316e281a2bcf7f0d86", "store_failures": true}, "created_at": 1764018437.5295122, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_decoded_event_logs_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c74310e4d3d20a316e281a2bcf7f0d86\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/dbt_expectations_expect_column_c74310e4d3d20a316e281a2bcf7f0d86.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_0' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_1' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_2' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_3' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FULL_DECODED_LOG' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_DECODED_EVENT_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP.73cd55cf8f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_b905ddaa777205ef016992bfbb1f567e.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP.73cd55cf8f", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP"], "alias": "ez_decoded_event_logs_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_decoded_b905ddaa777205ef016992bfbb1f567e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_decoded_b905ddaa777205ef016992bfbb1f567e", "store_failures": true}, "created_at": 1764018437.5343094, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_full_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_decoded_b905ddaa777205ef016992bfbb1f567e\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/not_null_test_gold__ez_decoded_b905ddaa777205ef016992bfbb1f567e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_full\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP__hour__2.88cff525bb": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_8eb6a512d0f293073fa0135ba3af2567.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP__hour__2.88cff525bb", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP__hour__2"], "alias": "ez_decoded_event_logs_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_8eb6a512d0f293073fa0135ba3af2567", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_8eb6a512d0f293073fa0135ba3af2567", "store_failures": true}, "created_at": 1764018437.5364158, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_decoded_event_logs_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_8eb6a512d0f293073fa0135ba3af2567\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/dbt_expectations_expect_row_va_8eb6a512d0f293073fa0135ba3af2567.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.ez_decoded_event_logs_full\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3b4c0128b9": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_1aa5644c4422bd426cf791214f3c135a.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3b4c0128b9", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "ez_decoded_event_logs_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1aa5644c4422bd426cf791214f3c135a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_1aa5644c4422bd426cf791214f3c135a", "store_failures": true}, "created_at": 1764018437.5437164, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_decoded_event_logs_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1aa5644c4422bd426cf791214f3c135a\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/dbt_expectations_expect_column_1aa5644c4422bd426cf791214f3c135a.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_0' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_1' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_2' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_3' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FULL_DECODED_LOG' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_DECODED_EVENT_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'MODIFIED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID.c654ef3a67": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["EZ_DECODED_EVENT_LOGS_ID"], "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_fb96ec9a9e3c1ecf1c6bd9d5ed41a16c.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID.c654ef3a67", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "dbt_utils_unique_combination_of_columns_test_gold__ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID"], "alias": "ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fb96ec9a9e3c1ecf1c6bd9d5ed41a16c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fb96ec9a9e3c1ecf1c6bd9d5ed41a16c", "store_failures": true}, "created_at": 1764018437.548263, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fb96ec9a9e3c1ecf1c6bd9d5ed41a16c\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/dbt_utils_unique_combination_o_fb96ec9a9e3c1ecf1c6bd9d5ed41a16c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n EZ_DECODED_EVENT_LOGS_ID\n from polygon.test_gold.ez_decoded_event_logs_full\n group by EZ_DECODED_EVENT_LOGS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.decoded_logs_exist_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_.2508ca290d": {"test_metadata": {"name": "decoded_logs_exist", "kwargs": {"fact_logs_model": "ref('test_gold__fact_event_logs_full')", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "decoded_logs_exist_test_gold", "name": "decoded_logs_exist_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_", "resource_type": "test", "package_name": "fsc_evm", "path": "decoded_logs_exist_test_gold___d9913bf7fe4a675982d3026113f7a383.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.decoded_logs_exist_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_.2508ca290d", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "decoded_logs_exist_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_"], "alias": "ez_decoded_event_logs_full_ref_test_gold", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "decoded_logs_exist_test_gold___d9913bf7fe4a675982d3026113f7a383", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "decoded_logs_exist_test_gold___d9913bf7fe4a675982d3026113f7a383", "store_failures": true}, "created_at": 1764018437.5531309, "relation_name": "polygon.decoded_logs_exist_test_gold.ez_decoded_event_logs_full_ref_test_gold", "raw_code": "{{ test_decoded_logs_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"decoded_logs_exist_test_gold___d9913bf7fe4a675982d3026113f7a383\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}, {"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_decoded_logs_exist", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full", "model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/decoded_logs_exist_test_gold___d9913bf7fe4a675982d3026113f7a383.sql", "compiled": true, "compiled_code": "\nSELECT\n d.block_number,\n d.ez_decoded_event_logs_id\nFROM\n polygon.test_gold.ez_decoded_event_logs_full\n d\nWHERE\n NOT EXISTS (\n SELECT\n 1\n FROM\n polygon.test_gold.fact_event_logs_full\n l\n WHERE\n d.ez_decoded_event_logs_id = l.fact_event_logs_id\n AND d.contract_address = l.contract_address\n AND d.topics [0] :: STRING = l.topics [0] :: STRING\n ) \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.find_missing_decoded_logs_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_.8f9f593cec": {"test_metadata": {"name": "find_missing_decoded_logs", "kwargs": {"fact_logs_model": "ref('test_gold__fact_event_logs_full')", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "find_missing_decoded_logs_test_gold", "name": "find_missing_decoded_logs_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_", "resource_type": "test", "package_name": "fsc_evm", "path": "find_missing_decoded_logs_test_8606d3519d21d3e4b750476e6e697372.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml", "unique_id": "test.fsc_evm.find_missing_decoded_logs_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_.8f9f593cec", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "find_missing_decoded_logs_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_"], "alias": "ez_decoded_event_logs_full_ref_test_gold", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "find_missing_decoded_logs_test_8606d3519d21d3e4b750476e6e697372", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "find_missing_decoded_logs_test_8606d3519d21d3e4b750476e6e697372", "store_failures": true}, "created_at": 1764018437.5592637, "relation_name": "polygon.find_missing_decoded_logs_test_gold.ez_decoded_event_logs_full_ref_test_gold", "raw_code": "{{ test_find_missing_decoded_logs(**_dbt_generic_test_kwargs) }}{{ config(alias=\"find_missing_decoded_logs_test_8606d3519d21d3e4b750476e6e697372\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}, {"name": "test_gold__ez_decoded_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_find_missing_decoded_logs", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full", "model.fsc_evm.test_gold__ez_decoded_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_full.yml/find_missing_decoded_logs_test_8606d3519d21d3e4b750476e6e697372.sql", "compiled": true, "compiled_code": "\n\n\n\nSELECT\n l.block_number,\n l.fact_event_logs_id\nFROM\n polygon.test_gold.fact_event_logs_full\n l\n LEFT JOIN polygon.test_gold.ez_decoded_event_logs_full\n d\n ON d.ez_decoded_event_logs_id = l.fact_event_logs_id\nWHERE\n l.tx_succeeded\n AND l.contract_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n AND l.topics [0] :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' -- Transfer\n AND d.ez_decoded_event_logs_id IS NULL\n AND l.block_timestamp < (SELECT MAX(block_timestamp) - INTERVAL '2 hours' FROM polygon.test_gold.fact_event_logs_full)\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_decoded_event_logs_full", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_full"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_NUMBER.884d6d2b35": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_NUMBER.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_NUMBER.884d6d2b35", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_NUMBER"], "alias": "ez_decoded_event_logs_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.6097748, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP.de99ef8ef5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_5a550a60569392d41a1d1a9fa4a02f8c.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP.de99ef8ef5", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP"], "alias": "ez_decoded_event_logs_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_decoded_5a550a60569392d41a1d1a9fa4a02f8c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_decoded_5a550a60569392d41a1d1a9fa4a02f8c", "store_failures": true}, "created_at": 1764018437.6122646, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_decoded_5a550a60569392d41a1d1a9fa4a02f8c\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_5a550a60569392d41a1d1a9fa4a02f8c.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP__hour__2.94ca90acca": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_09707186dc8dca081fdfbb8a1410c8f7.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP__hour__2.94ca90acca", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP__hour__2"], "alias": "ez_decoded_event_logs_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_09707186dc8dca081fdfbb8a1410c8f7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_09707186dc8dca081fdfbb8a1410c8f7", "store_failures": true}, "created_at": 1764018437.614413, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_decoded_event_logs_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_09707186dc8dca081fdfbb8a1410c8f7\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/dbt_expectations_expect_row_va_09707186dc8dca081fdfbb8a1410c8f7.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.ez_decoded_event_logs_recent\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3f16df36a6": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_f4f61d22f387fa9433fbb31fe8e9c9f2.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3f16df36a6", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "ez_decoded_event_logs_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f4f61d22f387fa9433fbb31fe8e9c9f2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f4f61d22f387fa9433fbb31fe8e9c9f2", "store_failures": true}, "created_at": 1764018437.6222556, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_decoded_event_logs_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f4f61d22f387fa9433fbb31fe8e9c9f2\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/dbt_expectations_expect_column_f4f61d22f387fa9433fbb31fe8e9c9f2.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_0' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_1' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_2' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_3' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FULL_DECODED_LOG' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_DECODED_EVENT_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_HASH.7d31037652": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_recent_TX_HASH.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_HASH.7d31037652", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_TX_HASH"], "alias": "ez_decoded_event_logs_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.6272163, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_event_logs_recent_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_POSITION.84f236ac88": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_recent_TX_POSITION.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_POSITION.84f236ac88", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_TX_POSITION"], "alias": "ez_decoded_event_logs_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.62936, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_event_logs_recent_TX_POSITION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere TX_POSITION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_INDEX.cd56f89c46": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_recent_EVENT_INDEX.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_INDEX.cd56f89c46", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_EVENT_INDEX"], "alias": "ez_decoded_event_logs_recent_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.6314816, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_event_logs_recent_EVENT_INDEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_CONTRACT_ADDRESS.447bc5cf3b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_6f5caa4b46f1a4dc654f3fd94f5418f7.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_CONTRACT_ADDRESS.447bc5cf3b", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_CONTRACT_ADDRESS"], "alias": "ez_decoded_event_logs_recent_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_decoded_6f5caa4b46f1a4dc654f3fd94f5418f7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_decoded_6f5caa4b46f1a4dc654f3fd94f5418f7", "store_failures": true}, "created_at": 1764018437.6335552, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_decoded_6f5caa4b46f1a4dc654f3fd94f5418f7\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_6f5caa4b46f1a4dc654f3fd94f5418f7.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TOPICS.599ba528df": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOPICS", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_TOPICS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_recent_TOPICS.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TOPICS.599ba528df", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_TOPICS"], "alias": "ez_decoded_event_logs_recent_TOPICS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.6356647, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_TOPICS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_event_logs_recent_TOPICS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere TOPICS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOPICS", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TOPIC_0.ddb723fd73": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOPIC_0", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_TOPIC_0", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_recent_TOPIC_0.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TOPIC_0.ddb723fd73", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_TOPIC_0"], "alias": "ez_decoded_event_logs_recent_TOPIC_0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.637748, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_TOPIC_0", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_event_logs_recent_TOPIC_0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere TOPIC_0 is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOPIC_0", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_DATA.4dbf00dd37": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DATA", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_DATA", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_recent_DATA.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_DATA.4dbf00dd37", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_DATA"], "alias": "ez_decoded_event_logs_recent_DATA", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.6398113, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_DATA", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_event_logs_recent_DATA.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DATA", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_REMOVED.83b01d4a77": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_REMOVED", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_EVENT_REMOVED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_recent_EVENT_REMOVED.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_REMOVED.83b01d4a77", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_EVENT_REMOVED"], "alias": "ez_decoded_event_logs_recent_EVENT_REMOVED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.6422057, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_EVENT_REMOVED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_event_logs_recent_EVENT_REMOVED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere EVENT_REMOVED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_REMOVED", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_ORIGIN_FROM_ADDRESS.66479f9f70": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_baa85c45a8d1da1848881364bfe817af.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_ORIGIN_FROM_ADDRESS.66479f9f70", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_ORIGIN_FROM_ADDRESS"], "alias": "ez_decoded_event_logs_recent_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_decoded_baa85c45a8d1da1848881364bfe817af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_decoded_baa85c45a8d1da1848881364bfe817af", "store_failures": true}, "created_at": 1764018437.6442816, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_decoded_baa85c45a8d1da1848881364bfe817af\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_baa85c45a8d1da1848881364bfe817af.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE.861f210c46": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_ce4fc40853ad104ddc045e9acb83ce27.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE.861f210c46", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE"], "alias": "ez_decoded_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_decoded_ce4fc40853ad104ddc045e9acb83ce27", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_decoded_ce4fc40853ad104ddc045e9acb83ce27", "store_failures": true}, "created_at": 1764018437.6463542, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_decoded_ce4fc40853ad104ddc045e9acb83ce27\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_ce4fc40853ad104ddc045e9acb83ce27.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_SUCCEEDED.453d880cda": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_TX_SUCCEEDED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_recent_TX_SUCCEEDED.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_SUCCEEDED.453d880cda", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_TX_SUCCEEDED"], "alias": "ez_decoded_event_logs_recent_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.6484163, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_TX_SUCCEEDED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_event_logs_recent_TX_SUCCEEDED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_SUCCEEDED", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_NAME.b876563dc0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_NAME", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_EVENT_NAME", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_recent_EVENT_NAME.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_NAME.b876563dc0", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_EVENT_NAME"], "alias": "ez_decoded_event_logs_recent_EVENT_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.6505134, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_EVENT_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_event_logs_recent_EVENT_NAME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere EVENT_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_NAME", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_FULL_DECODED_LOG.8ee9749eea": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FULL_DECODED_LOG", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_FULL_DECODED_LOG", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_765eb85b1aee6068f6501e4fba96e604.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_FULL_DECODED_LOG.8ee9749eea", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_FULL_DECODED_LOG"], "alias": "ez_decoded_event_logs_recent_FULL_DECODED_LOG", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_decoded_765eb85b1aee6068f6501e4fba96e604", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_decoded_765eb85b1aee6068f6501e4fba96e604", "store_failures": true}, "created_at": 1764018437.6525853, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_FULL_DECODED_LOG", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_decoded_765eb85b1aee6068f6501e4fba96e604\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_765eb85b1aee6068f6501e4fba96e604.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere FULL_DECODED_LOG is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FULL_DECODED_LOG", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_DECODED_LOG.13e8c88a61": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DECODED_LOG", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_DECODED_LOG", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_event_logs_recent_DECODED_LOG.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_DECODED_LOG.13e8c88a61", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_DECODED_LOG"], "alias": "ez_decoded_event_logs_recent_DECODED_LOG", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.654987, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_DECODED_LOG", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_event_logs_recent_DECODED_LOG.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere DECODED_LOG is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DECODED_LOG", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID.45c5e0316f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EZ_DECODED_EVENT_LOGS_ID", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_c5cdeaf61434f5588309f1d23b4b608e.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID.45c5e0316f", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID"], "alias": "ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_decoded_c5cdeaf61434f5588309f1d23b4b608e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_decoded_c5cdeaf61434f5588309f1d23b4b608e", "store_failures": true}, "created_at": 1764018437.6571834, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_decoded_c5cdeaf61434f5588309f1d23b4b608e\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_c5cdeaf61434f5588309f1d23b4b608e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere EZ_DECODED_EVENT_LOGS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EZ_DECODED_EVENT_LOGS_ID", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP.1571060655": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_e5bc49b43ca9935a3f8fec876a512d31.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP.1571060655", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP"], "alias": "ez_decoded_event_logs_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_decoded_e5bc49b43ca9935a3f8fec876a512d31", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_decoded_e5bc49b43ca9935a3f8fec876a512d31", "store_failures": true}, "created_at": 1764018437.6592894, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_decoded_e5bc49b43ca9935a3f8fec876a512d31\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_e5bc49b43ca9935a3f8fec876a512d31.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP__hour__2.1af0e5a39c": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_8b147253bac44e8687ff6afaeb9a2336.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP__hour__2.1af0e5a39c", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP__hour__2"], "alias": "ez_decoded_event_logs_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_8b147253bac44e8687ff6afaeb9a2336", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_8b147253bac44e8687ff6afaeb9a2336", "store_failures": true}, "created_at": 1764018437.6614227, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_decoded_event_logs_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_8b147253bac44e8687ff6afaeb9a2336\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/dbt_expectations_expect_row_va_8b147253bac44e8687ff6afaeb9a2336.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.ez_decoded_event_logs_recent\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.8c6610e7ff": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_9d4c2261adabbf6f25f823221c352036.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.8c6610e7ff", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "ez_decoded_event_logs_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9d4c2261adabbf6f25f823221c352036", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_9d4c2261adabbf6f25f823221c352036", "store_failures": true}, "created_at": 1764018437.6693134, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_decoded_event_logs_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9d4c2261adabbf6f25f823221c352036\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/dbt_expectations_expect_column_9d4c2261adabbf6f25f823221c352036.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_0' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_1' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_2' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_3' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FULL_DECODED_LOG' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_DECODED_EVENT_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP.5dc86f315d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_decoded_057a14ec063431aed492b4de67bbcecc.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP.5dc86f315d", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "not_null_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP"], "alias": "ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_decoded_057a14ec063431aed492b4de67bbcecc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_decoded_057a14ec063431aed492b4de67bbcecc", "store_failures": true}, "created_at": 1764018437.6742494, "relation_name": "polygon.not_null_test_gold.ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_decoded_057a14ec063431aed492b4de67bbcecc\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/not_null_test_gold__ez_decoded_057a14ec063431aed492b4de67bbcecc.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_decoded_event_logs_recent\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP__hour__2.67b262c997": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_8d566363928d3fd73c100954c0013eaf.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP__hour__2.67b262c997", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP__hour__2"], "alias": "ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_8d566363928d3fd73c100954c0013eaf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_8d566363928d3fd73c100954c0013eaf", "store_failures": true}, "created_at": 1764018437.6763635, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_8d566363928d3fd73c100954c0013eaf\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/dbt_expectations_expect_row_va_8d566363928d3fd73c100954c0013eaf.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.ez_decoded_event_logs_recent\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d286ab4bf8": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_bb30ca1b8b012fb8b61a049393e99b1b.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d286ab4bf8", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_bb30ca1b8b012fb8b61a049393e99b1b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_bb30ca1b8b012fb8b61a049393e99b1b", "store_failures": true}, "created_at": 1764018437.6840742, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_bb30ca1b8b012fb8b61a049393e99b1b\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/dbt_expectations_expect_column_bb30ca1b8b012fb8b61a049393e99b1b.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_0' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_1' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_2' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_3' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FULL_DECODED_LOG' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECODED_LOG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_DECODED_EVENT_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'MODIFIED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID.17989a1b4f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["EZ_DECODED_EVENT_LOGS_ID"], "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_1e41661ff5d046cc2e50c2e54f8c5f35.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID.17989a1b4f", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "dbt_utils_unique_combination_of_columns_test_gold__ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID"], "alias": "ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1e41661ff5d046cc2e50c2e54f8c5f35", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1e41661ff5d046cc2e50c2e54f8c5f35", "store_failures": true}, "created_at": 1764018437.6892338, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1e41661ff5d046cc2e50c2e54f8c5f35\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/dbt_utils_unique_combination_o_1e41661ff5d046cc2e50c2e54f8c5f35.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n EZ_DECODED_EVENT_LOGS_ID\n from polygon.test_gold.ez_decoded_event_logs_recent\n group by EZ_DECODED_EVENT_LOGS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.decoded_logs_exist_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_.e2d790a075": {"test_metadata": {"name": "decoded_logs_exist", "kwargs": {"fact_logs_model": "ref('test_gold__fact_event_logs_recent')", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "decoded_logs_exist_test_gold", "name": "decoded_logs_exist_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_", "resource_type": "test", "package_name": "fsc_evm", "path": "decoded_logs_exist_test_gold___61879f4b309659d3b14e8e58d23137a0.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.decoded_logs_exist_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_.e2d790a075", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "decoded_logs_exist_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_"], "alias": "ez_decoded_event_logs_recent_ref_test_gold", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "decoded_logs_exist_test_gold___61879f4b309659d3b14e8e58d23137a0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "decoded_logs_exist_test_gold___61879f4b309659d3b14e8e58d23137a0", "store_failures": true}, "created_at": 1764018437.6943114, "relation_name": "polygon.decoded_logs_exist_test_gold.ez_decoded_event_logs_recent_ref_test_gold", "raw_code": "{{ test_decoded_logs_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"decoded_logs_exist_test_gold___61879f4b309659d3b14e8e58d23137a0\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}, {"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_decoded_logs_exist", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent", "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/decoded_logs_exist_test_gold___61879f4b309659d3b14e8e58d23137a0.sql", "compiled": true, "compiled_code": "\nSELECT\n d.block_number,\n d.ez_decoded_event_logs_id\nFROM\n polygon.test_gold.ez_decoded_event_logs_recent\n d\nWHERE\n NOT EXISTS (\n SELECT\n 1\n FROM\n polygon.test_gold.fact_event_logs_recent\n l\n WHERE\n d.ez_decoded_event_logs_id = l.fact_event_logs_id\n AND d.contract_address = l.contract_address\n AND d.topics [0] :: STRING = l.topics [0] :: STRING\n ) \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.find_missing_decoded_logs_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_.995b3759d0": {"test_metadata": {"name": "find_missing_decoded_logs", "kwargs": {"fact_logs_model": "ref('test_gold__fact_event_logs_recent')", "model": "{{ get_where_subquery(ref('test_gold__ez_decoded_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "find_missing_decoded_logs_test_gold", "name": "find_missing_decoded_logs_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_", "resource_type": "test", "package_name": "fsc_evm", "path": "find_missing_decoded_logs_test_fdd9e1cd2f5e9d238a633aaeb40db1dd.sql", "original_file_path": "models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml", "unique_id": "test.fsc_evm.find_missing_decoded_logs_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_.995b3759d0", "fqn": ["fsc_evm", "decoder_package", "decoded_logs", "gold", "tests", "find_missing_decoded_logs_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_"], "alias": "ez_decoded_event_logs_recent_ref_test_gold", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "find_missing_decoded_logs_test_fdd9e1cd2f5e9d238a633aaeb40db1dd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "find_missing_decoded_logs_test_fdd9e1cd2f5e9d238a633aaeb40db1dd", "store_failures": true}, "created_at": 1764018437.6998932, "relation_name": "polygon.find_missing_decoded_logs_test_gold.ez_decoded_event_logs_recent_ref_test_gold", "raw_code": "{{ test_find_missing_decoded_logs(**_dbt_generic_test_kwargs) }}{{ config(alias=\"find_missing_decoded_logs_test_fdd9e1cd2f5e9d238a633aaeb40db1dd\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}, {"name": "test_gold__ez_decoded_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_find_missing_decoded_logs", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent", "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/decoder_package/decoded_logs/gold/tests/test_gold__ez_decoded_event_logs_recent.yml/find_missing_decoded_logs_test_fdd9e1cd2f5e9d238a633aaeb40db1dd.sql", "compiled": true, "compiled_code": "\n\n\n\nSELECT\n l.block_number,\n l.fact_event_logs_id\nFROM\n polygon.test_gold.fact_event_logs_recent\n l\n LEFT JOIN polygon.test_gold.ez_decoded_event_logs_recent\n d\n ON d.ez_decoded_event_logs_id = l.fact_event_logs_id\nWHERE\n l.tx_succeeded\n AND l.contract_address = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'\n AND l.topics [0] :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' -- Transfer\n AND d.ez_decoded_event_logs_id IS NULL\n AND l.block_timestamp < (SELECT MAX(block_timestamp) - INTERVAL '2 hours' FROM polygon.test_gold.fact_event_logs_recent)\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_decoded_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__ez_decoded_event_logs_recent"}, "test.fsc_evm.not_null_admin__fact_variables_PROJECT.b2ca5d3a9e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROJECT", "model": "{{ get_where_subquery(ref('admin__fact_variables')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_admin", "name": "not_null_admin__fact_variables_PROJECT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_admin__fact_variables_PROJECT.sql", "original_file_path": "models/main_package/admin/admin__fact_variables.yml", "unique_id": "test.fsc_evm.not_null_admin__fact_variables_PROJECT.b2ca5d3a9e", "fqn": ["fsc_evm", "main_package", "admin", "not_null_admin__fact_variables_PROJECT"], "alias": "fact_variables_PROJECT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.7524135, "relation_name": "polygon.not_null_admin.fact_variables_PROJECT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "admin__fact_variables", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__fact_variables"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__fact_variables.yml/not_null_admin__fact_variables_PROJECT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.admin.fact_variables\nwhere PROJECT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROJECT", "file_key_name": "models.admin__fact_variables", "attached_node": "model.fsc_evm.admin__fact_variables"}, "test.fsc_evm.not_null_admin__fact_variables_KEY.d5252aea36": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "KEY", "model": "{{ get_where_subquery(ref('admin__fact_variables')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_admin", "name": "not_null_admin__fact_variables_KEY", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_admin__fact_variables_KEY.sql", "original_file_path": "models/main_package/admin/admin__fact_variables.yml", "unique_id": "test.fsc_evm.not_null_admin__fact_variables_KEY.d5252aea36", "fqn": ["fsc_evm", "main_package", "admin", "not_null_admin__fact_variables_KEY"], "alias": "fact_variables_KEY", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.755393, "relation_name": "polygon.not_null_admin.fact_variables_KEY", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "admin__fact_variables", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__fact_variables"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__fact_variables.yml/not_null_admin__fact_variables_KEY.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.admin.fact_variables\nwhere KEY is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "KEY", "file_key_name": "models.admin__fact_variables", "attached_node": "model.fsc_evm.admin__fact_variables"}, "test.fsc_evm.not_null_admin__fact_variables_VALUE.80c7190528": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VALUE", "model": "{{ get_where_subquery(ref('admin__fact_variables')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_admin", "name": "not_null_admin__fact_variables_VALUE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_admin__fact_variables_VALUE.sql", "original_file_path": "models/main_package/admin/admin__fact_variables.yml", "unique_id": "test.fsc_evm.not_null_admin__fact_variables_VALUE.80c7190528", "fqn": ["fsc_evm", "main_package", "admin", "not_null_admin__fact_variables_VALUE"], "alias": "fact_variables_VALUE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.7575812, "relation_name": "polygon.not_null_admin.fact_variables_VALUE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "admin__fact_variables", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__fact_variables"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__fact_variables.yml/not_null_admin__fact_variables_VALUE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.admin.fact_variables\nwhere VALUE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VALUE", "file_key_name": "models.admin__fact_variables", "attached_node": "model.fsc_evm.admin__fact_variables"}, "test.fsc_evm.not_null_admin__fact_variables_FACT_VARIABLES_ID.c6bac6e9b3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FACT_VARIABLES_ID", "model": "{{ get_where_subquery(ref('admin__fact_variables')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_admin", "name": "not_null_admin__fact_variables_FACT_VARIABLES_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_admin__fact_variables_FACT_VARIABLES_ID.sql", "original_file_path": "models/main_package/admin/admin__fact_variables.yml", "unique_id": "test.fsc_evm.not_null_admin__fact_variables_FACT_VARIABLES_ID.c6bac6e9b3", "fqn": ["fsc_evm", "main_package", "admin", "not_null_admin__fact_variables_FACT_VARIABLES_ID"], "alias": "fact_variables_FACT_VARIABLES_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.759713, "relation_name": "polygon.not_null_admin.fact_variables_FACT_VARIABLES_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "admin__fact_variables", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__fact_variables"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__fact_variables.yml/not_null_admin__fact_variables_FACT_VARIABLES_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.admin.fact_variables\nwhere FACT_VARIABLES_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FACT_VARIABLES_ID", "file_key_name": "models.admin__fact_variables", "attached_node": "model.fsc_evm.admin__fact_variables"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__fact_variables_FACT_VARIABLES_ID.28a6685d8c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["FACT_VARIABLES_ID"], "model": "{{ get_where_subquery(ref('admin__fact_variables')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_admin", "name": "dbt_utils_unique_combination_of_columns_admin__fact_variables_FACT_VARIABLES_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_243874a615197ee1ac82e85be0891a8f.sql", "original_file_path": "models/main_package/admin/admin__fact_variables.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__fact_variables_FACT_VARIABLES_ID.28a6685d8c", "fqn": ["fsc_evm", "main_package", "admin", "dbt_utils_unique_combination_of_columns_admin__fact_variables_FACT_VARIABLES_ID"], "alias": "fact_variables_FACT_VARIABLES_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_243874a615197ee1ac82e85be0891a8f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_243874a615197ee1ac82e85be0891a8f", "store_failures": true}, "created_at": 1764018437.7618973, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_admin.fact_variables_FACT_VARIABLES_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_243874a615197ee1ac82e85be0891a8f\") }}", "language": "sql", "refs": [{"name": "admin__fact_variables", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__fact_variables"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__fact_variables.yml/dbt_utils_unique_combination_o_243874a615197ee1ac82e85be0891a8f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n FACT_VARIABLES_ID\n from polygon.admin.fact_variables\n group by FACT_VARIABLES_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.admin__fact_variables", "attached_node": "model.fsc_evm.admin__fact_variables"}, "test.fsc_evm.not_null_admin__dim_variables_KEY.ad438e63ea": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "KEY", "model": "{{ get_where_subquery(ref('admin__dim_variables')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_admin", "name": "not_null_admin__dim_variables_KEY", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_admin__dim_variables_KEY.sql", "original_file_path": "models/main_package/admin/admin__dim_variables.yml", "unique_id": "test.fsc_evm.not_null_admin__dim_variables_KEY.ad438e63ea", "fqn": ["fsc_evm", "main_package", "admin", "not_null_admin__dim_variables_KEY"], "alias": "dim_variables_KEY", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.768926, "relation_name": "polygon.not_null_admin.dim_variables_KEY", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "admin__dim_variables", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__dim_variables"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__dim_variables.yml/not_null_admin__dim_variables_KEY.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.admin.dim_variables\nwhere KEY is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "KEY", "file_key_name": "models.admin__dim_variables", "attached_node": "model.fsc_evm.admin__dim_variables"}, "test.fsc_evm.not_null_admin__dim_variables_DEFAULT_VALUE.5be079ad3d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DEFAULT_VALUE", "model": "{{ get_where_subquery(ref('admin__dim_variables')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_admin", "name": "not_null_admin__dim_variables_DEFAULT_VALUE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_admin__dim_variables_DEFAULT_VALUE.sql", "original_file_path": "models/main_package/admin/admin__dim_variables.yml", "unique_id": "test.fsc_evm.not_null_admin__dim_variables_DEFAULT_VALUE.5be079ad3d", "fqn": ["fsc_evm", "main_package", "admin", "not_null_admin__dim_variables_DEFAULT_VALUE"], "alias": "dim_variables_DEFAULT_VALUE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.771087, "relation_name": "polygon.not_null_admin.dim_variables_DEFAULT_VALUE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "admin__dim_variables", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__dim_variables"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__dim_variables.yml/not_null_admin__dim_variables_DEFAULT_VALUE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.admin.dim_variables\nwhere DEFAULT_VALUE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DEFAULT_VALUE", "file_key_name": "models.admin__dim_variables", "attached_node": "model.fsc_evm.admin__dim_variables"}, "test.fsc_evm.not_null_admin__dim_variables_DEFAULT_TYPE.ec8ae8bee2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DEFAULT_TYPE", "model": "{{ get_where_subquery(ref('admin__dim_variables')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_admin", "name": "not_null_admin__dim_variables_DEFAULT_TYPE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_admin__dim_variables_DEFAULT_TYPE.sql", "original_file_path": "models/main_package/admin/admin__dim_variables.yml", "unique_id": "test.fsc_evm.not_null_admin__dim_variables_DEFAULT_TYPE.ec8ae8bee2", "fqn": ["fsc_evm", "main_package", "admin", "not_null_admin__dim_variables_DEFAULT_TYPE"], "alias": "dim_variables_DEFAULT_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.7736242, "relation_name": "polygon.not_null_admin.dim_variables_DEFAULT_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "admin__dim_variables", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__dim_variables"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__dim_variables.yml/not_null_admin__dim_variables_DEFAULT_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.admin.dim_variables\nwhere DEFAULT_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DEFAULT_TYPE", "file_key_name": "models.admin__dim_variables", "attached_node": "model.fsc_evm.admin__dim_variables"}, "test.fsc_evm.not_null_admin__dim_variables_DIM_VARIABLES_ID.f1639e77e6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DIM_VARIABLES_ID", "model": "{{ get_where_subquery(ref('admin__dim_variables')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_admin", "name": "not_null_admin__dim_variables_DIM_VARIABLES_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_admin__dim_variables_DIM_VARIABLES_ID.sql", "original_file_path": "models/main_package/admin/admin__dim_variables.yml", "unique_id": "test.fsc_evm.not_null_admin__dim_variables_DIM_VARIABLES_ID.f1639e77e6", "fqn": ["fsc_evm", "main_package", "admin", "not_null_admin__dim_variables_DIM_VARIABLES_ID"], "alias": "dim_variables_DIM_VARIABLES_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.775729, "relation_name": "polygon.not_null_admin.dim_variables_DIM_VARIABLES_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "admin__dim_variables", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__dim_variables"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__dim_variables.yml/not_null_admin__dim_variables_DIM_VARIABLES_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.admin.dim_variables\nwhere DIM_VARIABLES_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DIM_VARIABLES_ID", "file_key_name": "models.admin__dim_variables", "attached_node": "model.fsc_evm.admin__dim_variables"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__dim_variables_DIM_VARIABLES_ID.9de48d7fec": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["DIM_VARIABLES_ID"], "model": "{{ get_where_subquery(ref('admin__dim_variables')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_admin", "name": "dbt_utils_unique_combination_of_columns_admin__dim_variables_DIM_VARIABLES_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_719bc4e121c3465d9e9b862b4117abee.sql", "original_file_path": "models/main_package/admin/admin__dim_variables.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__dim_variables_DIM_VARIABLES_ID.9de48d7fec", "fqn": ["fsc_evm", "main_package", "admin", "dbt_utils_unique_combination_of_columns_admin__dim_variables_DIM_VARIABLES_ID"], "alias": "dim_variables_DIM_VARIABLES_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_719bc4e121c3465d9e9b862b4117abee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_719bc4e121c3465d9e9b862b4117abee", "store_failures": true}, "created_at": 1764018437.7778702, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_admin.dim_variables_DIM_VARIABLES_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_719bc4e121c3465d9e9b862b4117abee\") }}", "language": "sql", "refs": [{"name": "admin__dim_variables", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__dim_variables"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__dim_variables.yml/dbt_utils_unique_combination_o_719bc4e121c3465d9e9b862b4117abee.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n DIM_VARIABLES_ID\n from polygon.admin.dim_variables\n group by DIM_VARIABLES_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.admin__dim_variables", "attached_node": "model.fsc_evm.admin__dim_variables"}, "test.fsc_evm.not_null_admin__ez_variables_PROJECT.59fd01d4c5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROJECT", "model": "{{ get_where_subquery(ref('admin__ez_variables')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_admin", "name": "not_null_admin__ez_variables_PROJECT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_admin__ez_variables_PROJECT.sql", "original_file_path": "models/main_package/admin/admin__ez_variables.yml", "unique_id": "test.fsc_evm.not_null_admin__ez_variables_PROJECT.59fd01d4c5", "fqn": ["fsc_evm", "main_package", "admin", "not_null_admin__ez_variables_PROJECT"], "alias": "ez_variables_PROJECT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.7844849, "relation_name": "polygon.not_null_admin.ez_variables_PROJECT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "admin__ez_variables", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__ez_variables"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__ez_variables.yml/not_null_admin__ez_variables_PROJECT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.admin.ez_variables\nwhere PROJECT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROJECT", "file_key_name": "models.admin__ez_variables", "attached_node": "model.fsc_evm.admin__ez_variables"}, "test.fsc_evm.not_null_admin__ez_variables_KEY.4fc63e44ee": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "KEY", "model": "{{ get_where_subquery(ref('admin__ez_variables')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_admin", "name": "not_null_admin__ez_variables_KEY", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_admin__ez_variables_KEY.sql", "original_file_path": "models/main_package/admin/admin__ez_variables.yml", "unique_id": "test.fsc_evm.not_null_admin__ez_variables_KEY.4fc63e44ee", "fqn": ["fsc_evm", "main_package", "admin", "not_null_admin__ez_variables_KEY"], "alias": "ez_variables_KEY", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.7866337, "relation_name": "polygon.not_null_admin.ez_variables_KEY", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "admin__ez_variables", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__ez_variables"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__ez_variables.yml/not_null_admin__ez_variables_KEY.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.admin.ez_variables\nwhere KEY is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "KEY", "file_key_name": "models.admin__ez_variables", "attached_node": "model.fsc_evm.admin__ez_variables"}, "test.fsc_evm.not_null_admin__ez_variables_VALUE.72a144dfd6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VALUE", "model": "{{ get_where_subquery(ref('admin__ez_variables')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_admin", "name": "not_null_admin__ez_variables_VALUE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_admin__ez_variables_VALUE.sql", "original_file_path": "models/main_package/admin/admin__ez_variables.yml", "unique_id": "test.fsc_evm.not_null_admin__ez_variables_VALUE.72a144dfd6", "fqn": ["fsc_evm", "main_package", "admin", "not_null_admin__ez_variables_VALUE"], "alias": "ez_variables_VALUE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.7887535, "relation_name": "polygon.not_null_admin.ez_variables_VALUE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "admin__ez_variables", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__ez_variables"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__ez_variables.yml/not_null_admin__ez_variables_VALUE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.admin.ez_variables\nwhere VALUE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VALUE", "file_key_name": "models.admin__ez_variables", "attached_node": "model.fsc_evm.admin__ez_variables"}, "test.fsc_evm.not_null_admin__ez_variables_DEFAULT_VALUE.262d6c41bd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DEFAULT_VALUE", "model": "{{ get_where_subquery(ref('admin__ez_variables')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_admin", "name": "not_null_admin__ez_variables_DEFAULT_VALUE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_admin__ez_variables_DEFAULT_VALUE.sql", "original_file_path": "models/main_package/admin/admin__ez_variables.yml", "unique_id": "test.fsc_evm.not_null_admin__ez_variables_DEFAULT_VALUE.262d6c41bd", "fqn": ["fsc_evm", "main_package", "admin", "not_null_admin__ez_variables_DEFAULT_VALUE"], "alias": "ez_variables_DEFAULT_VALUE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.7908487, "relation_name": "polygon.not_null_admin.ez_variables_DEFAULT_VALUE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "admin__ez_variables", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__ez_variables"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__ez_variables.yml/not_null_admin__ez_variables_DEFAULT_VALUE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.admin.ez_variables\nwhere DEFAULT_VALUE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DEFAULT_VALUE", "file_key_name": "models.admin__ez_variables", "attached_node": "model.fsc_evm.admin__ez_variables"}, "test.fsc_evm.not_null_admin__ez_variables_DEFAULT_TYPE.341521dabe": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DEFAULT_TYPE", "model": "{{ get_where_subquery(ref('admin__ez_variables')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_admin", "name": "not_null_admin__ez_variables_DEFAULT_TYPE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_admin__ez_variables_DEFAULT_TYPE.sql", "original_file_path": "models/main_package/admin/admin__ez_variables.yml", "unique_id": "test.fsc_evm.not_null_admin__ez_variables_DEFAULT_TYPE.341521dabe", "fqn": ["fsc_evm", "main_package", "admin", "not_null_admin__ez_variables_DEFAULT_TYPE"], "alias": "ez_variables_DEFAULT_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.7929323, "relation_name": "polygon.not_null_admin.ez_variables_DEFAULT_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "admin__ez_variables", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__ez_variables"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__ez_variables.yml/not_null_admin__ez_variables_DEFAULT_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.admin.ez_variables\nwhere DEFAULT_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DEFAULT_TYPE", "file_key_name": "models.admin__ez_variables", "attached_node": "model.fsc_evm.admin__ez_variables"}, "test.fsc_evm.not_null_admin__ez_variables_EZ_VARIABLES_ID.1d9b2c9591": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EZ_VARIABLES_ID", "model": "{{ get_where_subquery(ref('admin__ez_variables')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_admin", "name": "not_null_admin__ez_variables_EZ_VARIABLES_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_admin__ez_variables_EZ_VARIABLES_ID.sql", "original_file_path": "models/main_package/admin/admin__ez_variables.yml", "unique_id": "test.fsc_evm.not_null_admin__ez_variables_EZ_VARIABLES_ID.1d9b2c9591", "fqn": ["fsc_evm", "main_package", "admin", "not_null_admin__ez_variables_EZ_VARIABLES_ID"], "alias": "ez_variables_EZ_VARIABLES_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.7950532, "relation_name": "polygon.not_null_admin.ez_variables_EZ_VARIABLES_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "admin__ez_variables", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__ez_variables"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__ez_variables.yml/not_null_admin__ez_variables_EZ_VARIABLES_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.admin.ez_variables\nwhere EZ_VARIABLES_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EZ_VARIABLES_ID", "file_key_name": "models.admin__ez_variables", "attached_node": "model.fsc_evm.admin__ez_variables"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__ez_variables_EZ_VARIABLES_ID.3ed824ce43": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["EZ_VARIABLES_ID"], "model": "{{ get_where_subquery(ref('admin__ez_variables')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_admin", "name": "dbt_utils_unique_combination_of_columns_admin__ez_variables_EZ_VARIABLES_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_14b962ad00591e182398611e6108bfde.sql", "original_file_path": "models/main_package/admin/admin__ez_variables.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__ez_variables_EZ_VARIABLES_ID.3ed824ce43", "fqn": ["fsc_evm", "main_package", "admin", "dbt_utils_unique_combination_of_columns_admin__ez_variables_EZ_VARIABLES_ID"], "alias": "ez_variables_EZ_VARIABLES_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_14b962ad00591e182398611e6108bfde", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_14b962ad00591e182398611e6108bfde", "store_failures": true}, "created_at": 1764018437.7973983, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_admin.ez_variables_EZ_VARIABLES_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_14b962ad00591e182398611e6108bfde\") }}", "language": "sql", "refs": [{"name": "admin__ez_variables", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__ez_variables"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__ez_variables.yml/dbt_utils_unique_combination_o_14b962ad00591e182398611e6108bfde.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n EZ_VARIABLES_ID\n from polygon.admin.ez_variables\n group by EZ_VARIABLES_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.admin__ez_variables", "attached_node": "model.fsc_evm.admin__ez_variables"}, "test.fsc_evm.not_null_admin__number_sequence__ID.1f1a84eef0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_ID", "model": "{{ get_where_subquery(ref('admin__number_sequence')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_admin", "name": "not_null_admin__number_sequence__ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_admin__number_sequence__ID.sql", "original_file_path": "models/main_package/admin/admin__number_sequence.yml", "unique_id": "test.fsc_evm.not_null_admin__number_sequence__ID.1f1a84eef0", "fqn": ["fsc_evm", "main_package", "admin", "not_null_admin__number_sequence__ID"], "alias": "number_sequence", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.803234, "relation_name": "polygon.not_null_admin.number_sequence", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "admin__number_sequence", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__number_sequence"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__number_sequence.yml/not_null_admin__number_sequence__ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.admin.number_sequence\nwhere _ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_ID", "file_key_name": "models.admin__number_sequence", "attached_node": "model.fsc_evm.admin__number_sequence"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__number_sequence__ID.e4808fe515": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_ID"], "model": "{{ get_where_subquery(ref('admin__number_sequence')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_admin", "name": "dbt_utils_unique_combination_of_columns_admin__number_sequence__ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_472c7f2f67a41501edbdd0806eb8d5c8.sql", "original_file_path": "models/main_package/admin/admin__number_sequence.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__number_sequence__ID.e4808fe515", "fqn": ["fsc_evm", "main_package", "admin", "dbt_utils_unique_combination_of_columns_admin__number_sequence__ID"], "alias": "number_sequence", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_472c7f2f67a41501edbdd0806eb8d5c8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_472c7f2f67a41501edbdd0806eb8d5c8", "store_failures": true}, "created_at": 1764018437.8053534, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_admin.number_sequence", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_472c7f2f67a41501edbdd0806eb8d5c8\") }}", "language": "sql", "refs": [{"name": "admin__number_sequence", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.admin__number_sequence"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/admin/admin__number_sequence.yml/dbt_utils_unique_combination_o_472c7f2f67a41501edbdd0806eb8d5c8.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _ID\n from polygon.admin.number_sequence\n group by _ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.admin__number_sequence", "attached_node": "model.fsc_evm.admin__number_sequence"}, "test.fsc_evm.not_null_silver__labels_BLOCKCHAIN.4d07b6112c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('silver__labels')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__labels_BLOCKCHAIN", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__labels_BLOCKCHAIN.sql", "original_file_path": "models/main_package/labels/silver/silver__labels.yml", "unique_id": "test.fsc_evm.not_null_silver__labels_BLOCKCHAIN.4d07b6112c", "fqn": ["fsc_evm", "main_package", "labels", "silver", "not_null_silver__labels_BLOCKCHAIN"], "alias": "labels_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "not _is_deleted", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "not _is_deleted", "store_failures": true}, "created_at": 1764018437.8143132, "relation_name": "polygon.not_null_silver.labels_BLOCKCHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"not _is_deleted\") }}", "language": "sql", "refs": [{"name": "silver__labels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__labels"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/labels/silver/silver__labels.yml/not_null_silver__labels_BLOCKCHAIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver.labels where not _is_deleted) dbt_subquery\nwhere BLOCKCHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKCHAIN", "file_key_name": "models.silver__labels", "attached_node": "model.fsc_evm.silver__labels"}, "test.fsc_evm.not_null_silver__labels_CREATOR.5f7302f7be": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CREATOR", "model": "{{ get_where_subquery(ref('silver__labels')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__labels_CREATOR", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__labels_CREATOR.sql", "original_file_path": "models/main_package/labels/silver/silver__labels.yml", "unique_id": "test.fsc_evm.not_null_silver__labels_CREATOR.5f7302f7be", "fqn": ["fsc_evm", "main_package", "labels", "silver", "not_null_silver__labels_CREATOR"], "alias": "labels_CREATOR", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "not _is_deleted", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "not _is_deleted", "store_failures": true}, "created_at": 1764018437.816446, "relation_name": "polygon.not_null_silver.labels_CREATOR", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"not _is_deleted\") }}", "language": "sql", "refs": [{"name": "silver__labels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__labels"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/labels/silver/silver__labels.yml/not_null_silver__labels_CREATOR.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver.labels where not _is_deleted) dbt_subquery\nwhere CREATOR is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATOR", "file_key_name": "models.silver__labels", "attached_node": "model.fsc_evm.silver__labels"}, "test.fsc_evm.not_null_silver__labels_ADDRESS.88df57a9e0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('silver__labels')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__labels_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__labels_ADDRESS.sql", "original_file_path": "models/main_package/labels/silver/silver__labels.yml", "unique_id": "test.fsc_evm.not_null_silver__labels_ADDRESS.88df57a9e0", "fqn": ["fsc_evm", "main_package", "labels", "silver", "not_null_silver__labels_ADDRESS"], "alias": "labels_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "not _is_deleted", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "not _is_deleted", "store_failures": true}, "created_at": 1764018437.8185332, "relation_name": "polygon.not_null_silver.labels_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"not _is_deleted\") }}", "language": "sql", "refs": [{"name": "silver__labels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__labels"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/labels/silver/silver__labels.yml/not_null_silver__labels_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver.labels where not _is_deleted) dbt_subquery\nwhere ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.silver__labels", "attached_node": "model.fsc_evm.silver__labels"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__labels_ADDRESS__0_xX_0_9a_fA_F_.4d2099651b": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('silver__labels')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__labels_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_959924cae66cab7b8824afd5b89fd9ca.sql", "original_file_path": "models/main_package/labels/silver/silver__labels.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__labels_ADDRESS__0_xX_0_9a_fA_F_.4d2099651b", "fqn": ["fsc_evm", "main_package", "labels", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__labels_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "labels_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_959924cae66cab7b8824afd5b89fd9ca", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_959924cae66cab7b8824afd5b89fd9ca", "store_failures": true}, "created_at": 1764018437.8206108, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.labels_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_959924cae66cab7b8824afd5b89fd9ca\") }}", "language": "sql", "refs": [{"name": "silver__labels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__labels"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/labels/silver/silver__labels.yml/dbt_expectations_expect_column_959924cae66cab7b8824afd5b89fd9ca.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.labels\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.silver__labels", "attached_node": "model.fsc_evm.silver__labels"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_ADDRESS_NAME__STRING__VARCHAR.b440cff40f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "ADDRESS_NAME", "model": "{{ get_where_subquery(ref('silver__labels')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_ADDRESS_NAME__STRING__VARCHAR", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_51ec6840f2645527107ffccef734e682.sql", "original_file_path": "models/main_package/labels/silver/silver__labels.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_ADDRESS_NAME__STRING__VARCHAR.b440cff40f", "fqn": ["fsc_evm", "main_package", "labels", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_ADDRESS_NAME__STRING__VARCHAR"], "alias": "labels_ADDRESS_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_51ec6840f2645527107ffccef734e682", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_51ec6840f2645527107ffccef734e682", "store_failures": true}, "created_at": 1764018437.8257408, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.labels_ADDRESS_NAME", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_51ec6840f2645527107ffccef734e682\") }}", "language": "sql", "refs": [{"name": "silver__labels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__labels"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/labels/silver/silver__labels.yml/dbt_expectations_expect_column_51ec6840f2645527107ffccef734e682.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('SYSTEM_CREATED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERT_DATE' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_IS_DELETED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABELS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'ADDRESS_NAME'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS_NAME", "file_key_name": "models.silver__labels", "attached_node": "model.fsc_evm.silver__labels"}, "test.fsc_evm.not_null_silver__labels_LABEL_TYPE.3b980ae2db": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LABEL_TYPE", "model": "{{ get_where_subquery(ref('silver__labels')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__labels_LABEL_TYPE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__labels_LABEL_TYPE.sql", "original_file_path": "models/main_package/labels/silver/silver__labels.yml", "unique_id": "test.fsc_evm.not_null_silver__labels_LABEL_TYPE.3b980ae2db", "fqn": ["fsc_evm", "main_package", "labels", "silver", "not_null_silver__labels_LABEL_TYPE"], "alias": "labels_LABEL_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "not _is_deleted", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "not _is_deleted", "store_failures": true}, "created_at": 1764018437.8303056, "relation_name": "polygon.not_null_silver.labels_LABEL_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"not _is_deleted\") }}", "language": "sql", "refs": [{"name": "silver__labels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__labels"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/labels/silver/silver__labels.yml/not_null_silver__labels_LABEL_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver.labels where not _is_deleted) dbt_subquery\nwhere LABEL_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "LABEL_TYPE", "file_key_name": "models.silver__labels", "attached_node": "model.fsc_evm.silver__labels"}, "test.fsc_evm.not_null_silver__labels_LABEL_SUBTYPE.01346344a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LABEL_SUBTYPE", "model": "{{ get_where_subquery(ref('silver__labels')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__labels_LABEL_SUBTYPE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__labels_LABEL_SUBTYPE.sql", "original_file_path": "models/main_package/labels/silver/silver__labels.yml", "unique_id": "test.fsc_evm.not_null_silver__labels_LABEL_SUBTYPE.01346344a7", "fqn": ["fsc_evm", "main_package", "labels", "silver", "not_null_silver__labels_LABEL_SUBTYPE"], "alias": "labels_LABEL_SUBTYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "not _is_deleted", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "not _is_deleted", "store_failures": true}, "created_at": 1764018437.8326519, "relation_name": "polygon.not_null_silver.labels_LABEL_SUBTYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"not _is_deleted\") }}", "language": "sql", "refs": [{"name": "silver__labels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__labels"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/labels/silver/silver__labels.yml/not_null_silver__labels_LABEL_SUBTYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver.labels where not _is_deleted) dbt_subquery\nwhere LABEL_SUBTYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "LABEL_SUBTYPE", "file_key_name": "models.silver__labels", "attached_node": "model.fsc_evm.silver__labels"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_LABEL_SUBTYPE__STRING__VARCHAR.c6eb320168": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "LABEL_SUBTYPE", "model": "{{ get_where_subquery(ref('silver__labels')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_LABEL_SUBTYPE__STRING__VARCHAR", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_66181c6810dd4795dcf2a40a4b8aceda.sql", "original_file_path": "models/main_package/labels/silver/silver__labels.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_LABEL_SUBTYPE__STRING__VARCHAR.c6eb320168", "fqn": ["fsc_evm", "main_package", "labels", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_LABEL_SUBTYPE__STRING__VARCHAR"], "alias": "labels_LABEL_SUBTYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_66181c6810dd4795dcf2a40a4b8aceda", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_66181c6810dd4795dcf2a40a4b8aceda", "store_failures": true}, "created_at": 1764018437.8347502, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.labels_LABEL_SUBTYPE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_66181c6810dd4795dcf2a40a4b8aceda\") }}", "language": "sql", "refs": [{"name": "silver__labels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__labels"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/labels/silver/silver__labels.yml/dbt_expectations_expect_column_66181c6810dd4795dcf2a40a4b8aceda.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('SYSTEM_CREATED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERT_DATE' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_IS_DELETED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABELS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'LABEL_SUBTYPE'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "LABEL_SUBTYPE", "file_key_name": "models.silver__labels", "attached_node": "model.fsc_evm.silver__labels"}, "test.fsc_evm.not_null_silver__labels_PROJECT_NAME.c87a158893": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROJECT_NAME", "model": "{{ get_where_subquery(ref('silver__labels')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__labels_PROJECT_NAME", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__labels_PROJECT_NAME.sql", "original_file_path": "models/main_package/labels/silver/silver__labels.yml", "unique_id": "test.fsc_evm.not_null_silver__labels_PROJECT_NAME.c87a158893", "fqn": ["fsc_evm", "main_package", "labels", "silver", "not_null_silver__labels_PROJECT_NAME"], "alias": "labels_PROJECT_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "not _is_deleted", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "not _is_deleted", "store_failures": true}, "created_at": 1764018437.8392427, "relation_name": "polygon.not_null_silver.labels_PROJECT_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"not _is_deleted\") }}", "language": "sql", "refs": [{"name": "silver__labels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__labels"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/labels/silver/silver__labels.yml/not_null_silver__labels_PROJECT_NAME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver.labels where not _is_deleted) dbt_subquery\nwhere PROJECT_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROJECT_NAME", "file_key_name": "models.silver__labels", "attached_node": "model.fsc_evm.silver__labels"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_PROJECT_NAME__STRING__VARCHAR.81fdcfbdf9": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "PROJECT_NAME", "model": "{{ get_where_subquery(ref('silver__labels')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_PROJECT_NAME__STRING__VARCHAR", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_78ce05cc22129cbe8409615340bcd370.sql", "original_file_path": "models/main_package/labels/silver/silver__labels.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_PROJECT_NAME__STRING__VARCHAR.81fdcfbdf9", "fqn": ["fsc_evm", "main_package", "labels", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_PROJECT_NAME__STRING__VARCHAR"], "alias": "labels_PROJECT_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_78ce05cc22129cbe8409615340bcd370", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_78ce05cc22129cbe8409615340bcd370", "store_failures": true}, "created_at": 1764018437.841605, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.labels_PROJECT_NAME", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_78ce05cc22129cbe8409615340bcd370\") }}", "language": "sql", "refs": [{"name": "silver__labels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__labels"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/labels/silver/silver__labels.yml/dbt_expectations_expect_column_78ce05cc22129cbe8409615340bcd370.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('SYSTEM_CREATED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERT_DATE' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_IS_DELETED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABELS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'PROJECT_NAME'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROJECT_NAME", "file_key_name": "models.silver__labels", "attached_node": "model.fsc_evm.silver__labels"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__labels_BLOCKCHAIN__CREATOR__ADDRESS.8355a7dbdd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BLOCKCHAIN", "CREATOR", "ADDRESS"], "model": "{{ get_where_subquery(ref('silver__labels')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__labels_BLOCKCHAIN__CREATOR__ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_4decd0d8ab6d2e8a84c39e4e28d89f5c.sql", "original_file_path": "models/main_package/labels/silver/silver__labels.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__labels_BLOCKCHAIN__CREATOR__ADDRESS.8355a7dbdd", "fqn": ["fsc_evm", "main_package", "labels", "silver", "dbt_utils_unique_combination_of_columns_silver__labels_BLOCKCHAIN__CREATOR__ADDRESS"], "alias": "labels_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4decd0d8ab6d2e8a84c39e4e28d89f5c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "not _is_deleted", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "not _is_deleted", "alias": "dbt_utils_unique_combination_o_4decd0d8ab6d2e8a84c39e4e28d89f5c", "store_failures": true}, "created_at": 1764018437.8461485, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.labels_BLOCKCHAIN", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(where=\"not _is_deleted\",alias=\"dbt_utils_unique_combination_o_4decd0d8ab6d2e8a84c39e4e28d89f5c\") }}", "language": "sql", "refs": [{"name": "silver__labels", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__labels"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/labels/silver/silver__labels.yml/dbt_utils_unique_combination_o_4decd0d8ab6d2e8a84c39e4e28d89f5c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n BLOCKCHAIN, CREATOR, ADDRESS\n from (select * from polygon.silver.labels where not _is_deleted) dbt_subquery\n group by BLOCKCHAIN, CREATOR, ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__labels", "attached_node": "model.fsc_evm.silver__labels"}, "test.fsc_evm.not_null_test_silver__traces_recent_BLOCK_NUMBER.77a4699f36": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__traces_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__traces_recent_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__traces_recent_BLOCK_NUMBER.77a4699f36", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "not_null_test_silver__traces_recent_BLOCK_NUMBER"], "alias": "traces_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.854561, "relation_name": "polygon.not_null_test_silver.traces_recent_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml/not_null_test_silver__traces_recent_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.traces_recent\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_silver__traces_recent", "attached_node": "model.fsc_evm.test_silver__traces_recent"}, "test.fsc_evm.not_null_test_silver__traces_recent_TX_POSITION.92be43f8d5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_silver__traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__traces_recent_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__traces_recent_TX_POSITION.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__traces_recent_TX_POSITION.92be43f8d5", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "not_null_test_silver__traces_recent_TX_POSITION"], "alias": "traces_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.8567302, "relation_name": "polygon.not_null_test_silver.traces_recent_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml/not_null_test_silver__traces_recent_TX_POSITION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.traces_recent\nwhere TX_POSITION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_silver__traces_recent", "attached_node": "model.fsc_evm.test_silver__traces_recent"}, "test.fsc_evm.not_null_test_silver__traces_recent_TRACE_ADDRESS.7c6de48691": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRACE_ADDRESS", "model": "{{ get_where_subquery(ref('test_silver__traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__traces_recent_TRACE_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__traces_recent_TRACE_ADDRESS.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__traces_recent_TRACE_ADDRESS.7c6de48691", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "not_null_test_silver__traces_recent_TRACE_ADDRESS"], "alias": "traces_recent_TRACE_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.8589392, "relation_name": "polygon.not_null_test_silver.traces_recent_TRACE_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml/not_null_test_silver__traces_recent_TRACE_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.traces_recent\nwhere TRACE_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRACE_ADDRESS", "file_key_name": "models.test_silver__traces_recent", "attached_node": "model.fsc_evm.test_silver__traces_recent"}, "test.fsc_evm.not_null_test_silver__traces_recent_TRACE_JSON.904b3c8953": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRACE_JSON", "model": "{{ get_where_subquery(ref('test_silver__traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__traces_recent_TRACE_JSON", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__traces_recent_TRACE_JSON.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__traces_recent_TRACE_JSON.904b3c8953", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "not_null_test_silver__traces_recent_TRACE_JSON"], "alias": "traces_recent_TRACE_JSON", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.8613153, "relation_name": "polygon.not_null_test_silver.traces_recent_TRACE_JSON", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml/not_null_test_silver__traces_recent_TRACE_JSON.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.traces_recent\nwhere TRACE_JSON is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRACE_JSON", "file_key_name": "models.test_silver__traces_recent", "attached_node": "model.fsc_evm.test_silver__traces_recent"}, "test.fsc_evm.not_null_test_silver__traces_recent__INSERTED_TIMESTAMP.29dedb5f0f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__traces_recent__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__traces_recent__INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__traces_recent__INSERTED_TIMESTAMP.29dedb5f0f", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "not_null_test_silver__traces_recent__INSERTED_TIMESTAMP"], "alias": "traces_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.8634565, "relation_name": "polygon.not_null_test_silver.traces_recent", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml/not_null_test_silver__traces_recent__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.traces_recent\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__traces_recent", "attached_node": "model.fsc_evm.test_silver__traces_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent__INSERTED_TIMESTAMP__hour__2.bd68103a61": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__traces_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent__INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_b4b2ad69d11e3bceec63c8a7c9c44a6a.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent__INSERTED_TIMESTAMP__hour__2.bd68103a61", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent__INSERTED_TIMESTAMP__hour__2"], "alias": "traces_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_b4b2ad69d11e3bceec63c8a7c9c44a6a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_b4b2ad69d11e3bceec63c8a7c9c44a6a", "store_failures": true}, "created_at": 1764018437.865549, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.traces_recent", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_b4b2ad69d11e3bceec63c8a7c9c44a6a\") }}", "language": "sql", "refs": [{"name": "test_silver__traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml/dbt_expectations_expect_row_va_b4b2ad69d11e3bceec63c8a7c9c44a6a.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.traces_recent\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__traces_recent", "attached_node": "model.fsc_evm.test_silver__traces_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.bc16a42d4e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__traces_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_6e12ba4aab18fd803703f0ec7351fea4.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.bc16a42d4e", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "traces_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_6e12ba4aab18fd803703f0ec7351fea4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_6e12ba4aab18fd803703f0ec7351fea4", "store_failures": true}, "created_at": 1764018437.8731341, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.traces_recent", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_6e12ba4aab18fd803703f0ec7351fea4\") }}", "language": "sql", "refs": [{"name": "test_silver__traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml/dbt_expectations_expect_column_6e12ba4aab18fd803703f0ec7351fea4.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS_ARRAY' as TEXT) as relation_column,\n cast('ARRAY' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__traces_recent", "attached_node": "model.fsc_evm.test_silver__traces_recent"}, "test.fsc_evm.not_null_test_silver__traces_recent_INSERTED_TIMESTAMP.4f0efcf34b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__traces_recent_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__traces_recent_INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__traces_recent_INSERTED_TIMESTAMP.4f0efcf34b", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "not_null_test_silver__traces_recent_INSERTED_TIMESTAMP"], "alias": "traces_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.877882, "relation_name": "polygon.not_null_test_silver.traces_recent_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml/not_null_test_silver__traces_recent_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.traces_recent\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__traces_recent", "attached_node": "model.fsc_evm.test_silver__traces_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent_INSERTED_TIMESTAMP__hour__2.a4ba5cf674": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__traces_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_d656b140a3f1df7a99ca514e75109636.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent_INSERTED_TIMESTAMP__hour__2.a4ba5cf674", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent_INSERTED_TIMESTAMP__hour__2"], "alias": "traces_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_d656b140a3f1df7a99ca514e75109636", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_d656b140a3f1df7a99ca514e75109636", "store_failures": true}, "created_at": 1764018437.8800595, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.traces_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_d656b140a3f1df7a99ca514e75109636\") }}", "language": "sql", "refs": [{"name": "test_silver__traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml/dbt_expectations_expect_row_va_d656b140a3f1df7a99ca514e75109636.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.traces_recent\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__traces_recent", "attached_node": "model.fsc_evm.test_silver__traces_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.78e1fb01e0": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__traces_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_dd3fc0629473658997beea0be5845ea1.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.78e1fb01e0", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "traces_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_dd3fc0629473658997beea0be5845ea1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_dd3fc0629473658997beea0be5845ea1", "store_failures": true}, "created_at": 1764018437.887989, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.traces_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_dd3fc0629473658997beea0be5845ea1\") }}", "language": "sql", "refs": [{"name": "test_silver__traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml/dbt_expectations_expect_column_dd3fc0629473658997beea0be5845ea1.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS_ARRAY' as TEXT) as relation_column,\n cast('ARRAY' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__traces_recent", "attached_node": "model.fsc_evm.test_silver__traces_recent"}, "test.fsc_evm.not_null_test_silver__traces_recent_MODIFIED_TIMESTAMP.c50eaa6905": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__traces_recent_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__traces_recent_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__traces_recent_MODIFIED_TIMESTAMP.c50eaa6905", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "not_null_test_silver__traces_recent_MODIFIED_TIMESTAMP"], "alias": "traces_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.8927448, "relation_name": "polygon.not_null_test_silver.traces_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml/not_null_test_silver__traces_recent_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.traces_recent\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__traces_recent", "attached_node": "model.fsc_evm.test_silver__traces_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent_MODIFIED_TIMESTAMP__hour__2.f7eb4af9c0": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__traces_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_2a783f8ebd84c97bc969092a6ea9edf9.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent_MODIFIED_TIMESTAMP__hour__2.f7eb4af9c0", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent_MODIFIED_TIMESTAMP__hour__2"], "alias": "traces_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_2a783f8ebd84c97bc969092a6ea9edf9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_2a783f8ebd84c97bc969092a6ea9edf9", "store_failures": true}, "created_at": 1764018437.8948717, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.traces_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_2a783f8ebd84c97bc969092a6ea9edf9\") }}", "language": "sql", "refs": [{"name": "test_silver__traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml/dbt_expectations_expect_row_va_2a783f8ebd84c97bc969092a6ea9edf9.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.traces_recent\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__traces_recent", "attached_node": "model.fsc_evm.test_silver__traces_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.640b8be095": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__traces_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_3efdbb4f5262175db70cf5e623b25e69.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.640b8be095", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "traces_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3efdbb4f5262175db70cf5e623b25e69", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3efdbb4f5262175db70cf5e623b25e69", "store_failures": true}, "created_at": 1764018437.9021726, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.traces_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3efdbb4f5262175db70cf5e623b25e69\") }}", "language": "sql", "refs": [{"name": "test_silver__traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml/dbt_expectations_expect_column_3efdbb4f5262175db70cf5e623b25e69.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS_ARRAY' as TEXT) as relation_column,\n cast('ARRAY' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'MODIFIED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__traces_recent", "attached_node": "model.fsc_evm.test_silver__traces_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__traces_recent_TRACES_ID.f53f7f25ae": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["TRACES_ID"], "model": "{{ get_where_subquery(ref('test_silver__traces_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__traces_recent_TRACES_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_fdf6d4ad292fce1e4295888779a0a48f.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__traces_recent_TRACES_ID.f53f7f25ae", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "dbt_utils_unique_combination_of_columns_test_silver__traces_recent_TRACES_ID"], "alias": "traces_recent_TRACES_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fdf6d4ad292fce1e4295888779a0a48f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fdf6d4ad292fce1e4295888779a0a48f", "store_failures": true}, "created_at": 1764018437.9067721, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.traces_recent_TRACES_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fdf6d4ad292fce1e4295888779a0a48f\") }}", "language": "sql", "refs": [{"name": "test_silver__traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_recent.yml/dbt_utils_unique_combination_o_fdf6d4ad292fce1e4295888779a0a48f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n TRACES_ID\n from polygon.test_silver.traces_recent\n group by TRACES_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__traces_recent", "attached_node": "model.fsc_evm.test_silver__traces_recent"}, "test.fsc_evm.not_null_test_silver__traces_full_BLOCK_NUMBER.ab8fe90ce8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__traces_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__traces_full_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__traces_full_BLOCK_NUMBER.ab8fe90ce8", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "not_null_test_silver__traces_full_BLOCK_NUMBER"], "alias": "traces_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.9134958, "relation_name": "polygon.not_null_test_silver.traces_full_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_full.yml/not_null_test_silver__traces_full_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.traces_full\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_silver__traces_full", "attached_node": "model.fsc_evm.test_silver__traces_full"}, "test.fsc_evm.not_null_test_silver__traces_full_TX_POSITION.663fe545e9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_silver__traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__traces_full_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__traces_full_TX_POSITION.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__traces_full_TX_POSITION.663fe545e9", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "not_null_test_silver__traces_full_TX_POSITION"], "alias": "traces_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.915629, "relation_name": "polygon.not_null_test_silver.traces_full_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_full.yml/not_null_test_silver__traces_full_TX_POSITION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.traces_full\nwhere TX_POSITION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_silver__traces_full", "attached_node": "model.fsc_evm.test_silver__traces_full"}, "test.fsc_evm.not_null_test_silver__traces_full_TRACE_ADDRESS.91648874f9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRACE_ADDRESS", "model": "{{ get_where_subquery(ref('test_silver__traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__traces_full_TRACE_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__traces_full_TRACE_ADDRESS.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__traces_full_TRACE_ADDRESS.91648874f9", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "not_null_test_silver__traces_full_TRACE_ADDRESS"], "alias": "traces_full_TRACE_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.9177225, "relation_name": "polygon.not_null_test_silver.traces_full_TRACE_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_full.yml/not_null_test_silver__traces_full_TRACE_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.traces_full\nwhere TRACE_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRACE_ADDRESS", "file_key_name": "models.test_silver__traces_full", "attached_node": "model.fsc_evm.test_silver__traces_full"}, "test.fsc_evm.not_null_test_silver__traces_full_TRACE_JSON.2c7accaa84": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRACE_JSON", "model": "{{ get_where_subquery(ref('test_silver__traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__traces_full_TRACE_JSON", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__traces_full_TRACE_JSON.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__traces_full_TRACE_JSON.2c7accaa84", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "not_null_test_silver__traces_full_TRACE_JSON"], "alias": "traces_full_TRACE_JSON", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.9201207, "relation_name": "polygon.not_null_test_silver.traces_full_TRACE_JSON", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_full.yml/not_null_test_silver__traces_full_TRACE_JSON.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.traces_full\nwhere TRACE_JSON is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRACE_JSON", "file_key_name": "models.test_silver__traces_full", "attached_node": "model.fsc_evm.test_silver__traces_full"}, "test.fsc_evm.not_null_test_silver__traces_full__INSERTED_TIMESTAMP.c33692687a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__traces_full__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__traces_full__INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__traces_full__INSERTED_TIMESTAMP.c33692687a", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "not_null_test_silver__traces_full__INSERTED_TIMESTAMP"], "alias": "traces_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.9223597, "relation_name": "polygon.not_null_test_silver.traces_full", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_full.yml/not_null_test_silver__traces_full__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.traces_full\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__traces_full", "attached_node": "model.fsc_evm.test_silver__traces_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full__INSERTED_TIMESTAMP__hour__2.8beb22e4b2": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__traces_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full__INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_1b6ebe76879c9c0ff46d3f33daf80ebd.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full__INSERTED_TIMESTAMP__hour__2.8beb22e4b2", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full__INSERTED_TIMESTAMP__hour__2"], "alias": "traces_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_1b6ebe76879c9c0ff46d3f33daf80ebd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_1b6ebe76879c9c0ff46d3f33daf80ebd", "store_failures": true}, "created_at": 1764018437.924506, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.traces_full", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_1b6ebe76879c9c0ff46d3f33daf80ebd\") }}", "language": "sql", "refs": [{"name": "test_silver__traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_full.yml/dbt_expectations_expect_row_va_1b6ebe76879c9c0ff46d3f33daf80ebd.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.traces_full\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__traces_full", "attached_node": "model.fsc_evm.test_silver__traces_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.10c3de9ee1": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__traces_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_8fe2147b2421fcd32e56a3e123d1f47d.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.10c3de9ee1", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "traces_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8fe2147b2421fcd32e56a3e123d1f47d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_8fe2147b2421fcd32e56a3e123d1f47d", "store_failures": true}, "created_at": 1764018437.9320962, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.traces_full", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8fe2147b2421fcd32e56a3e123d1f47d\") }}", "language": "sql", "refs": [{"name": "test_silver__traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_full.yml/dbt_expectations_expect_column_8fe2147b2421fcd32e56a3e123d1f47d.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS_ARRAY' as TEXT) as relation_column,\n cast('ARRAY' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__traces_full", "attached_node": "model.fsc_evm.test_silver__traces_full"}, "test.fsc_evm.not_null_test_silver__traces_full_INSERTED_TIMESTAMP.ab90de5f2b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__traces_full_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__traces_full_INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__traces_full_INSERTED_TIMESTAMP.ab90de5f2b", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "not_null_test_silver__traces_full_INSERTED_TIMESTAMP"], "alias": "traces_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.9369159, "relation_name": "polygon.not_null_test_silver.traces_full_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_full.yml/not_null_test_silver__traces_full_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.traces_full\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__traces_full", "attached_node": "model.fsc_evm.test_silver__traces_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full_INSERTED_TIMESTAMP__hour__2.316bf2d6b0": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__traces_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_aef1c18b7fa2d0c4cc8d2282fcf8ffb5.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full_INSERTED_TIMESTAMP__hour__2.316bf2d6b0", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full_INSERTED_TIMESTAMP__hour__2"], "alias": "traces_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_aef1c18b7fa2d0c4cc8d2282fcf8ffb5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_aef1c18b7fa2d0c4cc8d2282fcf8ffb5", "store_failures": true}, "created_at": 1764018437.939049, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.traces_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_aef1c18b7fa2d0c4cc8d2282fcf8ffb5\") }}", "language": "sql", "refs": [{"name": "test_silver__traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_full.yml/dbt_expectations_expect_row_va_aef1c18b7fa2d0c4cc8d2282fcf8ffb5.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.traces_full\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__traces_full", "attached_node": "model.fsc_evm.test_silver__traces_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.254ed0fd41": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__traces_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_3c108efafd81cdded1cdbc433096d5c0.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.254ed0fd41", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "traces_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3c108efafd81cdded1cdbc433096d5c0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3c108efafd81cdded1cdbc433096d5c0", "store_failures": true}, "created_at": 1764018437.9464211, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.traces_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3c108efafd81cdded1cdbc433096d5c0\") }}", "language": "sql", "refs": [{"name": "test_silver__traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_full.yml/dbt_expectations_expect_column_3c108efafd81cdded1cdbc433096d5c0.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS_ARRAY' as TEXT) as relation_column,\n cast('ARRAY' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__traces_full", "attached_node": "model.fsc_evm.test_silver__traces_full"}, "test.fsc_evm.not_null_test_silver__traces_full_MODIFIED_TIMESTAMP.73532cff85": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__traces_full_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__traces_full_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__traces_full_MODIFIED_TIMESTAMP.73532cff85", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "not_null_test_silver__traces_full_MODIFIED_TIMESTAMP"], "alias": "traces_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.9511855, "relation_name": "polygon.not_null_test_silver.traces_full_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_full.yml/not_null_test_silver__traces_full_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.traces_full\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__traces_full", "attached_node": "model.fsc_evm.test_silver__traces_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full_MODIFIED_TIMESTAMP__hour__2.d8baad76f3": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__traces_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_a5a219853a7c2c96a7320ec554a90948.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full_MODIFIED_TIMESTAMP__hour__2.d8baad76f3", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full_MODIFIED_TIMESTAMP__hour__2"], "alias": "traces_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_a5a219853a7c2c96a7320ec554a90948", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_a5a219853a7c2c96a7320ec554a90948", "store_failures": true}, "created_at": 1764018437.9533002, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.traces_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_a5a219853a7c2c96a7320ec554a90948\") }}", "language": "sql", "refs": [{"name": "test_silver__traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_full.yml/dbt_expectations_expect_row_va_a5a219853a7c2c96a7320ec554a90948.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.traces_full\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__traces_full", "attached_node": "model.fsc_evm.test_silver__traces_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.691866e8c0": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__traces_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_85f671c4026efc2c5d8d727596787a43.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.691866e8c0", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "traces_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_85f671c4026efc2c5d8d727596787a43", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_85f671c4026efc2c5d8d727596787a43", "store_failures": true}, "created_at": 1764018437.960554, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.traces_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_85f671c4026efc2c5d8d727596787a43\") }}", "language": "sql", "refs": [{"name": "test_silver__traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_full.yml/dbt_expectations_expect_column_85f671c4026efc2c5d8d727596787a43.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS_ARRAY' as TEXT) as relation_column,\n cast('ARRAY' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_JSON' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'MODIFIED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__traces_full", "attached_node": "model.fsc_evm.test_silver__traces_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__traces_full_TRACES_ID.9083101264": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["TRACES_ID"], "model": "{{ get_where_subquery(ref('test_silver__traces_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__traces_full_TRACES_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_a2bd8a12df71334c34da0949be8115d6.sql", "original_file_path": "models/main_package/core/silver/tests/traces/test_silver__traces_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__traces_full_TRACES_ID.9083101264", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "traces", "dbt_utils_unique_combination_of_columns_test_silver__traces_full_TRACES_ID"], "alias": "traces_full_TRACES_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a2bd8a12df71334c34da0949be8115d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a2bd8a12df71334c34da0949be8115d6", "store_failures": true}, "created_at": 1764018437.965098, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.traces_full_TRACES_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a2bd8a12df71334c34da0949be8115d6\") }}", "language": "sql", "refs": [{"name": "test_silver__traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/traces/test_silver__traces_full.yml/dbt_utils_unique_combination_o_a2bd8a12df71334c34da0949be8115d6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n TRACES_ID\n from polygon.test_silver.traces_full\n group by TRACES_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__traces_full", "attached_node": "model.fsc_evm.test_silver__traces_full"}, "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_BLOCK_NUMBER.4357645cb7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__confirm_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__confirm_blocks_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__confirm_blocks_recent_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_BLOCK_NUMBER.4357645cb7", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "confirm_blocks", "not_null_test_silver__confirm_blocks_recent_BLOCK_NUMBER"], "alias": "confirm_blocks_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.9713302, "relation_name": "polygon.not_null_test_silver.confirm_blocks_recent_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__confirm_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__confirm_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_recent.yml/not_null_test_silver__confirm_blocks_recent_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.confirm_blocks_recent\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_silver__confirm_blocks_recent", "attached_node": "model.fsc_evm.test_silver__confirm_blocks_recent"}, "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_TX_HASH.7f8b64f808": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_silver__confirm_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__confirm_blocks_recent_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__confirm_blocks_recent_TX_HASH.sql", "original_file_path": "models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_TX_HASH.7f8b64f808", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "confirm_blocks", "not_null_test_silver__confirm_blocks_recent_TX_HASH"], "alias": "confirm_blocks_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.9734657, "relation_name": "polygon.not_null_test_silver.confirm_blocks_recent_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__confirm_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__confirm_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_recent.yml/not_null_test_silver__confirm_blocks_recent_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.confirm_blocks_recent\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_silver__confirm_blocks_recent", "attached_node": "model.fsc_evm.test_silver__confirm_blocks_recent"}, "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP.673cf1e88f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__confirm_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP.673cf1e88f", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "confirm_blocks", "not_null_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP"], "alias": "confirm_blocks_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.9755235, "relation_name": "polygon.not_null_test_silver.confirm_blocks_recent_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__confirm_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__confirm_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_recent.yml/not_null_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.confirm_blocks_recent\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__confirm_blocks_recent", "attached_node": "model.fsc_evm.test_silver__confirm_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP__hour__8.7a2d73b21b": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 8, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__confirm_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP__hour__8", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_dcb9d059cc5c88d24e8d7984a4d53fc3.sql", "original_file_path": "models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP__hour__8.7a2d73b21b", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "confirm_blocks", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP__hour__8"], "alias": "confirm_blocks_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_dcb9d059cc5c88d24e8d7984a4d53fc3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_dcb9d059cc5c88d24e8d7984a4d53fc3", "store_failures": true}, "created_at": 1764018437.97789, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.confirm_blocks_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_dcb9d059cc5c88d24e8d7984a4d53fc3\") }}", "language": "sql", "refs": [{"name": "test_silver__confirm_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__confirm_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_recent.yml/dbt_expectations_expect_row_va_dcb9d059cc5c88d24e8d7984a4d53fc3.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.confirm_blocks_recent\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -8,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__confirm_blocks_recent", "attached_node": "model.fsc_evm.test_silver__confirm_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.6f365bb04d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__confirm_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_47e688abd6c7e4a97f0323d80b627833.sql", "original_file_path": "models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.6f365bb04d", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "confirm_blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "confirm_blocks_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_47e688abd6c7e4a97f0323d80b627833", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_47e688abd6c7e4a97f0323d80b627833", "store_failures": true}, "created_at": 1764018437.9859536, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.confirm_blocks_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_47e688abd6c7e4a97f0323d80b627833\") }}", "language": "sql", "refs": [{"name": "test_silver__confirm_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__confirm_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_recent.yml/dbt_expectations_expect_column_47e688abd6c7e4a97f0323d80b627833.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONFIRM_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__confirm_blocks_recent", "attached_node": "model.fsc_evm.test_silver__confirm_blocks_recent"}, "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID.ec8360ef95": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONFIRM_BLOCKS_ID", "model": "{{ get_where_subquery(ref('test_silver__confirm_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID.sql", "original_file_path": "models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID.ec8360ef95", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "confirm_blocks", "not_null_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID"], "alias": "confirm_blocks_recent_CONFIRM_BLOCKS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.9904637, "relation_name": "polygon.not_null_test_silver.confirm_blocks_recent_CONFIRM_BLOCKS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__confirm_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__confirm_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_recent.yml/not_null_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.confirm_blocks_recent\nwhere CONFIRM_BLOCKS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONFIRM_BLOCKS_ID", "file_key_name": "models.test_silver__confirm_blocks_recent", "attached_node": "model.fsc_evm.test_silver__confirm_blocks_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID.078268d9c9": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONFIRM_BLOCKS_ID"], "model": "{{ get_where_subquery(ref('test_silver__confirm_blocks_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_26111e8c03ed42de34b9eccd653ec893.sql", "original_file_path": "models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID.078268d9c9", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "confirm_blocks", "dbt_utils_unique_combination_of_columns_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID"], "alias": "confirm_blocks_recent_CONFIRM_BLOCKS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_26111e8c03ed42de34b9eccd653ec893", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_26111e8c03ed42de34b9eccd653ec893", "store_failures": true}, "created_at": 1764018437.9928231, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.confirm_blocks_recent_CONFIRM_BLOCKS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_26111e8c03ed42de34b9eccd653ec893\") }}", "language": "sql", "refs": [{"name": "test_silver__confirm_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__confirm_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_recent.yml/dbt_utils_unique_combination_o_26111e8c03ed42de34b9eccd653ec893.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONFIRM_BLOCKS_ID\n from polygon.test_silver.confirm_blocks_recent\n group by CONFIRM_BLOCKS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__confirm_blocks_recent", "attached_node": "model.fsc_evm.test_silver__confirm_blocks_recent"}, "test.fsc_evm.not_null_test_silver__confirm_blocks_full_BLOCK_NUMBER.acad1c43e7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__confirm_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__confirm_blocks_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__confirm_blocks_full_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__confirm_blocks_full_BLOCK_NUMBER.acad1c43e7", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "confirm_blocks", "not_null_test_silver__confirm_blocks_full_BLOCK_NUMBER"], "alias": "confirm_blocks_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018437.9985425, "relation_name": "polygon.not_null_test_silver.confirm_blocks_full_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__confirm_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__confirm_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_full.yml/not_null_test_silver__confirm_blocks_full_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.confirm_blocks_full\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_silver__confirm_blocks_full", "attached_node": "model.fsc_evm.test_silver__confirm_blocks_full"}, "test.fsc_evm.not_null_test_silver__confirm_blocks_full_TX_HASH.670ec66eec": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_silver__confirm_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__confirm_blocks_full_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__confirm_blocks_full_TX_HASH.sql", "original_file_path": "models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__confirm_blocks_full_TX_HASH.670ec66eec", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "confirm_blocks", "not_null_test_silver__confirm_blocks_full_TX_HASH"], "alias": "confirm_blocks_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.0006654, "relation_name": "polygon.not_null_test_silver.confirm_blocks_full_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__confirm_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__confirm_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_full.yml/not_null_test_silver__confirm_blocks_full_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.confirm_blocks_full\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_silver__confirm_blocks_full", "attached_node": "model.fsc_evm.test_silver__confirm_blocks_full"}, "test.fsc_evm.not_null_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP.6a2a4b0667": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__confirm_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP.6a2a4b0667", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "confirm_blocks", "not_null_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP"], "alias": "confirm_blocks_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.0030792, "relation_name": "polygon.not_null_test_silver.confirm_blocks_full_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__confirm_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__confirm_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_full.yml/not_null_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.confirm_blocks_full\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__confirm_blocks_full", "attached_node": "model.fsc_evm.test_silver__confirm_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP__hour__8.64521c931b": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 8, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__confirm_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP__hour__8", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_a11db9e0b0908e2bdd3828811d374c1d.sql", "original_file_path": "models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP__hour__8.64521c931b", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "confirm_blocks", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP__hour__8"], "alias": "confirm_blocks_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_a11db9e0b0908e2bdd3828811d374c1d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_a11db9e0b0908e2bdd3828811d374c1d", "store_failures": true}, "created_at": 1764018438.005195, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.confirm_blocks_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_a11db9e0b0908e2bdd3828811d374c1d\") }}", "language": "sql", "refs": [{"name": "test_silver__confirm_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__confirm_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_full.yml/dbt_expectations_expect_row_va_a11db9e0b0908e2bdd3828811d374c1d.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.confirm_blocks_full\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -8,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__confirm_blocks_full", "attached_node": "model.fsc_evm.test_silver__confirm_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b66a5f5fde": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__confirm_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_c91f28ddc65385d11abf1581f42ffe13.sql", "original_file_path": "models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b66a5f5fde", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "confirm_blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "confirm_blocks_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c91f28ddc65385d11abf1581f42ffe13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c91f28ddc65385d11abf1581f42ffe13", "store_failures": true}, "created_at": 1764018438.0126083, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.confirm_blocks_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c91f28ddc65385d11abf1581f42ffe13\") }}", "language": "sql", "refs": [{"name": "test_silver__confirm_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__confirm_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_full.yml/dbt_expectations_expect_column_c91f28ddc65385d11abf1581f42ffe13.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONFIRM_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__confirm_blocks_full", "attached_node": "model.fsc_evm.test_silver__confirm_blocks_full"}, "test.fsc_evm.not_null_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID.6dbbf2334b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONFIRM_BLOCKS_ID", "model": "{{ get_where_subquery(ref('test_silver__confirm_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID.sql", "original_file_path": "models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID.6dbbf2334b", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "confirm_blocks", "not_null_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID"], "alias": "confirm_blocks_full_CONFIRM_BLOCKS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.0172143, "relation_name": "polygon.not_null_test_silver.confirm_blocks_full_CONFIRM_BLOCKS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__confirm_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__confirm_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_full.yml/not_null_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.confirm_blocks_full\nwhere CONFIRM_BLOCKS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONFIRM_BLOCKS_ID", "file_key_name": "models.test_silver__confirm_blocks_full", "attached_node": "model.fsc_evm.test_silver__confirm_blocks_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID.7a1d987054": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONFIRM_BLOCKS_ID"], "model": "{{ get_where_subquery(ref('test_silver__confirm_blocks_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_1a69cd3128ef5f8039390cd83d496e02.sql", "original_file_path": "models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID.7a1d987054", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "confirm_blocks", "dbt_utils_unique_combination_of_columns_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID"], "alias": "confirm_blocks_full_CONFIRM_BLOCKS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a69cd3128ef5f8039390cd83d496e02", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a69cd3128ef5f8039390cd83d496e02", "store_failures": true}, "created_at": 1764018438.019646, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.confirm_blocks_full_CONFIRM_BLOCKS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a69cd3128ef5f8039390cd83d496e02\") }}", "language": "sql", "refs": [{"name": "test_silver__confirm_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__confirm_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/confirm_blocks/test_silver__confirm_blocks_full.yml/dbt_utils_unique_combination_o_1a69cd3128ef5f8039390cd83d496e02.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONFIRM_BLOCKS_ID\n from polygon.test_silver.confirm_blocks_full\n group by CONFIRM_BLOCKS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__confirm_blocks_full", "attached_node": "model.fsc_evm.test_silver__confirm_blocks_full"}, "test.fsc_evm.not_null_test_silver__blocks_recent_BLOCK_NUMBER.cec2c84102": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__blocks_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__blocks_recent_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__blocks_recent_BLOCK_NUMBER.cec2c84102", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "not_null_test_silver__blocks_recent_BLOCK_NUMBER"], "alias": "blocks_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.0259564, "relation_name": "polygon.not_null_test_silver.blocks_recent_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml/not_null_test_silver__blocks_recent_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.blocks_recent\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_silver__blocks_recent", "attached_node": "model.fsc_evm.test_silver__blocks_recent"}, "test.fsc_evm.not_null_test_silver__blocks_recent_BLOCK_JSON.aabd0a98d5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_JSON", "model": "{{ get_where_subquery(ref('test_silver__blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__blocks_recent_BLOCK_JSON", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__blocks_recent_BLOCK_JSON.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__blocks_recent_BLOCK_JSON.aabd0a98d5", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "not_null_test_silver__blocks_recent_BLOCK_JSON"], "alias": "blocks_recent_BLOCK_JSON", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.028326, "relation_name": "polygon.not_null_test_silver.blocks_recent_BLOCK_JSON", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml/not_null_test_silver__blocks_recent_BLOCK_JSON.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.blocks_recent\nwhere BLOCK_JSON is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_JSON", "file_key_name": "models.test_silver__blocks_recent", "attached_node": "model.fsc_evm.test_silver__blocks_recent"}, "test.fsc_evm.not_null_test_silver__blocks_recent__INSERTED_TIMESTAMP.071a17cc08": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__blocks_recent__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__blocks_recent__INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__blocks_recent__INSERTED_TIMESTAMP.071a17cc08", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "not_null_test_silver__blocks_recent__INSERTED_TIMESTAMP"], "alias": "blocks_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.0304456, "relation_name": "polygon.not_null_test_silver.blocks_recent", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml/not_null_test_silver__blocks_recent__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.blocks_recent\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__blocks_recent", "attached_node": "model.fsc_evm.test_silver__blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent__INSERTED_TIMESTAMP__hour__2.fb61245227": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent__INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_1be1fde44827b0b1d47f222006b93b8b.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent__INSERTED_TIMESTAMP__hour__2.fb61245227", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent__INSERTED_TIMESTAMP__hour__2"], "alias": "blocks_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_1be1fde44827b0b1d47f222006b93b8b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_1be1fde44827b0b1d47f222006b93b8b", "store_failures": true}, "created_at": 1764018438.032557, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.blocks_recent", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_1be1fde44827b0b1d47f222006b93b8b\") }}", "language": "sql", "refs": [{"name": "test_silver__blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml/dbt_expectations_expect_row_va_1be1fde44827b0b1d47f222006b93b8b.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.blocks_recent\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__blocks_recent", "attached_node": "model.fsc_evm.test_silver__blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e3a06da0df": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_00a3e01899c8f0e2689ec0a55f866f48.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e3a06da0df", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "blocks_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_00a3e01899c8f0e2689ec0a55f866f48", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_00a3e01899c8f0e2689ec0a55f866f48", "store_failures": true}, "created_at": 1764018438.0398326, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.blocks_recent", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_00a3e01899c8f0e2689ec0a55f866f48\") }}", "language": "sql", "refs": [{"name": "test_silver__blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml/dbt_expectations_expect_column_00a3e01899c8f0e2689ec0a55f866f48.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__blocks_recent", "attached_node": "model.fsc_evm.test_silver__blocks_recent"}, "test.fsc_evm.not_null_test_silver__blocks_recent_INSERTED_TIMESTAMP.0004e5d07b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__blocks_recent_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__blocks_recent_INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__blocks_recent_INSERTED_TIMESTAMP.0004e5d07b", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "not_null_test_silver__blocks_recent_INSERTED_TIMESTAMP"], "alias": "blocks_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.044642, "relation_name": "polygon.not_null_test_silver.blocks_recent_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml/not_null_test_silver__blocks_recent_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.blocks_recent\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__blocks_recent", "attached_node": "model.fsc_evm.test_silver__blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent_INSERTED_TIMESTAMP__hour__2.5a605c6511": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_990ea7cec8f8e1703c1c62b9ea0be3c0.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent_INSERTED_TIMESTAMP__hour__2.5a605c6511", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent_INSERTED_TIMESTAMP__hour__2"], "alias": "blocks_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_990ea7cec8f8e1703c1c62b9ea0be3c0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_990ea7cec8f8e1703c1c62b9ea0be3c0", "store_failures": true}, "created_at": 1764018438.0467436, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.blocks_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_990ea7cec8f8e1703c1c62b9ea0be3c0\") }}", "language": "sql", "refs": [{"name": "test_silver__blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml/dbt_expectations_expect_row_va_990ea7cec8f8e1703c1c62b9ea0be3c0.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.blocks_recent\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__blocks_recent", "attached_node": "model.fsc_evm.test_silver__blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.8f37f2afc2": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_8ad17c22b679b5c9ed14f09c103e723f.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.8f37f2afc2", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "blocks_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8ad17c22b679b5c9ed14f09c103e723f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_8ad17c22b679b5c9ed14f09c103e723f", "store_failures": true}, "created_at": 1764018438.0540948, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.blocks_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8ad17c22b679b5c9ed14f09c103e723f\") }}", "language": "sql", "refs": [{"name": "test_silver__blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml/dbt_expectations_expect_column_8ad17c22b679b5c9ed14f09c103e723f.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__blocks_recent", "attached_node": "model.fsc_evm.test_silver__blocks_recent"}, "test.fsc_evm.not_null_test_silver__blocks_recent_MODIFIED_TIMESTAMP.d5c1fe9610": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__blocks_recent_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__blocks_recent_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__blocks_recent_MODIFIED_TIMESTAMP.d5c1fe9610", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "not_null_test_silver__blocks_recent_MODIFIED_TIMESTAMP"], "alias": "blocks_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.058614, "relation_name": "polygon.not_null_test_silver.blocks_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml/not_null_test_silver__blocks_recent_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.blocks_recent\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__blocks_recent", "attached_node": "model.fsc_evm.test_silver__blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent_MODIFIED_TIMESTAMP__hour__2.f4efbc4d10": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_31367be4d446aaded11d6f4c4c83f031.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent_MODIFIED_TIMESTAMP__hour__2.f4efbc4d10", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent_MODIFIED_TIMESTAMP__hour__2"], "alias": "blocks_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_31367be4d446aaded11d6f4c4c83f031", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_31367be4d446aaded11d6f4c4c83f031", "store_failures": true}, "created_at": 1764018438.0610173, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.blocks_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_31367be4d446aaded11d6f4c4c83f031\") }}", "language": "sql", "refs": [{"name": "test_silver__blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml/dbt_expectations_expect_row_va_31367be4d446aaded11d6f4c4c83f031.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.blocks_recent\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__blocks_recent", "attached_node": "model.fsc_evm.test_silver__blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.53bf4df35e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_9b05d31e5baf5d8bc3c648eab190cee1.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.53bf4df35e", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "blocks_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9b05d31e5baf5d8bc3c648eab190cee1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_9b05d31e5baf5d8bc3c648eab190cee1", "store_failures": true}, "created_at": 1764018438.0682316, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.blocks_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9b05d31e5baf5d8bc3c648eab190cee1\") }}", "language": "sql", "refs": [{"name": "test_silver__blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml/dbt_expectations_expect_column_9b05d31e5baf5d8bc3c648eab190cee1.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'MODIFIED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__blocks_recent", "attached_node": "model.fsc_evm.test_silver__blocks_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__blocks_recent_BLOCK_NUMBER.0239d065a4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BLOCK_NUMBER"], "model": "{{ get_where_subquery(ref('test_silver__blocks_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__blocks_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_8a2182020e7aeedd5271089c9a9681e1.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__blocks_recent_BLOCK_NUMBER.0239d065a4", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "dbt_utils_unique_combination_of_columns_test_silver__blocks_recent_BLOCK_NUMBER"], "alias": "blocks_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8a2182020e7aeedd5271089c9a9681e1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8a2182020e7aeedd5271089c9a9681e1", "store_failures": true}, "created_at": 1764018438.0727446, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.blocks_recent_BLOCK_NUMBER", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8a2182020e7aeedd5271089c9a9681e1\") }}", "language": "sql", "refs": [{"name": "test_silver__blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml/dbt_utils_unique_combination_o_8a2182020e7aeedd5271089c9a9681e1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n BLOCK_NUMBER\n from polygon.test_silver.blocks_recent\n group by BLOCK_NUMBER\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__blocks_recent", "attached_node": "model.fsc_evm.test_silver__blocks_recent"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__blocks_recent_BLOCK_NUMBER.a11e2bbd58": {"test_metadata": {"name": "sequence_gaps", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__blocks_recent')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_sequence_gaps_test_silver", "name": "fsc_evm_sequence_gaps_test_silver__blocks_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_sequence_gaps_test_silver__blocks_recent_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml", "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__blocks_recent_BLOCK_NUMBER.a11e2bbd58", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "fsc_evm_sequence_gaps_test_silver__blocks_recent_BLOCK_NUMBER"], "alias": "blocks_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "error", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": ">10"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"severity": "error", "error_if": ">10", "store_failures": true}, "created_at": 1764018438.078238, "relation_name": "polygon.fsc_evm_sequence_gaps_test_silver.blocks_recent_BLOCK_NUMBER", "raw_code": "{{ fsc_evm.test_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(severity=\"error\",error_if=\">10\") }}", "language": "sql", "refs": [{"name": "test_silver__blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_recent.yml/fsc_evm_sequence_gaps_test_silver__blocks_recent_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n\n\nWITH source AS (\n SELECT\n \n BLOCK_NUMBER,\n LAG(\n BLOCK_NUMBER,\n 1\n ) over (\n \n ORDER BY\n BLOCK_NUMBER ASC\n ) AS prev_BLOCK_NUMBER\n FROM\n polygon.test_silver.blocks_recent\n)\nSELECT\n \n prev_BLOCK_NUMBER,\n BLOCK_NUMBER,\n BLOCK_NUMBER - prev_BLOCK_NUMBER\n - 1 AS gap\nFROM\n source\nWHERE\n BLOCK_NUMBER - prev_BLOCK_NUMBER <> 1\n\n AND BLOCK_NUMBER NOT IN (\n SELECT block_number :: INT + 1\n FROM observability.exclusion_list\n UNION ALL\n SELECT block_number :: INT - 1\n FROM observability.exclusion_list\n )\n\nORDER BY\n gap DESC \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__blocks_recent", "attached_node": "model.fsc_evm.test_silver__blocks_recent"}, "test.fsc_evm.not_null_test_silver__blocks_full_BLOCK_NUMBER.3b7e4315a5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__blocks_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__blocks_full_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__blocks_full_BLOCK_NUMBER.3b7e4315a5", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "not_null_test_silver__blocks_full_BLOCK_NUMBER"], "alias": "blocks_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.1299124, "relation_name": "polygon.not_null_test_silver.blocks_full_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml/not_null_test_silver__blocks_full_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.blocks_full\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_silver__blocks_full", "attached_node": "model.fsc_evm.test_silver__blocks_full"}, "test.fsc_evm.not_null_test_silver__blocks_full_BLOCK_JSON.0bc7eee26e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_JSON", "model": "{{ get_where_subquery(ref('test_silver__blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__blocks_full_BLOCK_JSON", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__blocks_full_BLOCK_JSON.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__blocks_full_BLOCK_JSON.0bc7eee26e", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "not_null_test_silver__blocks_full_BLOCK_JSON"], "alias": "blocks_full_BLOCK_JSON", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.1321452, "relation_name": "polygon.not_null_test_silver.blocks_full_BLOCK_JSON", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml/not_null_test_silver__blocks_full_BLOCK_JSON.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.blocks_full\nwhere BLOCK_JSON is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_JSON", "file_key_name": "models.test_silver__blocks_full", "attached_node": "model.fsc_evm.test_silver__blocks_full"}, "test.fsc_evm.not_null_test_silver__blocks_full__INSERTED_TIMESTAMP.1d36f7af40": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__blocks_full__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__blocks_full__INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__blocks_full__INSERTED_TIMESTAMP.1d36f7af40", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "not_null_test_silver__blocks_full__INSERTED_TIMESTAMP"], "alias": "blocks_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.1342957, "relation_name": "polygon.not_null_test_silver.blocks_full", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml/not_null_test_silver__blocks_full__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.blocks_full\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__blocks_full", "attached_node": "model.fsc_evm.test_silver__blocks_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full__INSERTED_TIMESTAMP__hour__2.00b41ab86e": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full__INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_0479f1259a601ca9311f129530eaec65.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full__INSERTED_TIMESTAMP__hour__2.00b41ab86e", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full__INSERTED_TIMESTAMP__hour__2"], "alias": "blocks_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_0479f1259a601ca9311f129530eaec65", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_0479f1259a601ca9311f129530eaec65", "store_failures": true}, "created_at": 1764018438.1364238, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.blocks_full", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_0479f1259a601ca9311f129530eaec65\") }}", "language": "sql", "refs": [{"name": "test_silver__blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml/dbt_expectations_expect_row_va_0479f1259a601ca9311f129530eaec65.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.blocks_full\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__blocks_full", "attached_node": "model.fsc_evm.test_silver__blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.f23f93c193": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_0bc2668a5a306df80a95ab3f8aaba11e.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.f23f93c193", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "blocks_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0bc2668a5a306df80a95ab3f8aaba11e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0bc2668a5a306df80a95ab3f8aaba11e", "store_failures": true}, "created_at": 1764018438.1440794, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.blocks_full", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0bc2668a5a306df80a95ab3f8aaba11e\") }}", "language": "sql", "refs": [{"name": "test_silver__blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml/dbt_expectations_expect_column_0bc2668a5a306df80a95ab3f8aaba11e.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__blocks_full", "attached_node": "model.fsc_evm.test_silver__blocks_full"}, "test.fsc_evm.not_null_test_silver__blocks_full_INSERTED_TIMESTAMP.37557f958c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__blocks_full_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__blocks_full_INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__blocks_full_INSERTED_TIMESTAMP.37557f958c", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "not_null_test_silver__blocks_full_INSERTED_TIMESTAMP"], "alias": "blocks_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.1489608, "relation_name": "polygon.not_null_test_silver.blocks_full_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml/not_null_test_silver__blocks_full_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.blocks_full\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__blocks_full", "attached_node": "model.fsc_evm.test_silver__blocks_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full_INSERTED_TIMESTAMP__hour__2.cf055b5ea3": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_328e04fa27cb05649a23b3a7f09f6be9.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full_INSERTED_TIMESTAMP__hour__2.cf055b5ea3", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full_INSERTED_TIMESTAMP__hour__2"], "alias": "blocks_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_328e04fa27cb05649a23b3a7f09f6be9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_328e04fa27cb05649a23b3a7f09f6be9", "store_failures": true}, "created_at": 1764018438.1512113, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.blocks_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_328e04fa27cb05649a23b3a7f09f6be9\") }}", "language": "sql", "refs": [{"name": "test_silver__blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml/dbt_expectations_expect_row_va_328e04fa27cb05649a23b3a7f09f6be9.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.blocks_full\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__blocks_full", "attached_node": "model.fsc_evm.test_silver__blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4d5ee11ce4": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_df92c63fb592501e5f168bcabc3619c0.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4d5ee11ce4", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "blocks_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_df92c63fb592501e5f168bcabc3619c0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_df92c63fb592501e5f168bcabc3619c0", "store_failures": true}, "created_at": 1764018438.1586814, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.blocks_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_df92c63fb592501e5f168bcabc3619c0\") }}", "language": "sql", "refs": [{"name": "test_silver__blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml/dbt_expectations_expect_column_df92c63fb592501e5f168bcabc3619c0.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__blocks_full", "attached_node": "model.fsc_evm.test_silver__blocks_full"}, "test.fsc_evm.not_null_test_silver__blocks_full_MODIFIED_TIMESTAMP.463b450a84": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__blocks_full_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__blocks_full_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__blocks_full_MODIFIED_TIMESTAMP.463b450a84", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "not_null_test_silver__blocks_full_MODIFIED_TIMESTAMP"], "alias": "blocks_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.1634922, "relation_name": "polygon.not_null_test_silver.blocks_full_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml/not_null_test_silver__blocks_full_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.blocks_full\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__blocks_full", "attached_node": "model.fsc_evm.test_silver__blocks_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full_MODIFIED_TIMESTAMP__hour__2.ba9359c374": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_163018ae227e19c4216b21225d4e9d3c.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full_MODIFIED_TIMESTAMP__hour__2.ba9359c374", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full_MODIFIED_TIMESTAMP__hour__2"], "alias": "blocks_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_163018ae227e19c4216b21225d4e9d3c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_163018ae227e19c4216b21225d4e9d3c", "store_failures": true}, "created_at": 1764018438.1656384, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.blocks_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_163018ae227e19c4216b21225d4e9d3c\") }}", "language": "sql", "refs": [{"name": "test_silver__blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml/dbt_expectations_expect_row_va_163018ae227e19c4216b21225d4e9d3c.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.blocks_full\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__blocks_full", "attached_node": "model.fsc_evm.test_silver__blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.22abd38316": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_59f991532d8ed90628ac851cdc845e66.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.22abd38316", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "blocks_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_59f991532d8ed90628ac851cdc845e66", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_59f991532d8ed90628ac851cdc845e66", "store_failures": true}, "created_at": 1764018438.1729028, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.blocks_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_59f991532d8ed90628ac851cdc845e66\") }}", "language": "sql", "refs": [{"name": "test_silver__blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml/dbt_expectations_expect_column_59f991532d8ed90628ac851cdc845e66.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'MODIFIED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__blocks_full", "attached_node": "model.fsc_evm.test_silver__blocks_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__blocks_full_BLOCK_NUMBER.be5f891d6b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BLOCK_NUMBER"], "model": "{{ get_where_subquery(ref('test_silver__blocks_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__blocks_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_c67ce7e83bd8a407d493fe48f7f82b53.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__blocks_full_BLOCK_NUMBER.be5f891d6b", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "dbt_utils_unique_combination_of_columns_test_silver__blocks_full_BLOCK_NUMBER"], "alias": "blocks_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c67ce7e83bd8a407d493fe48f7f82b53", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c67ce7e83bd8a407d493fe48f7f82b53", "store_failures": true}, "created_at": 1764018438.1774862, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.blocks_full_BLOCK_NUMBER", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c67ce7e83bd8a407d493fe48f7f82b53\") }}", "language": "sql", "refs": [{"name": "test_silver__blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml/dbt_utils_unique_combination_o_c67ce7e83bd8a407d493fe48f7f82b53.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n BLOCK_NUMBER\n from polygon.test_silver.blocks_full\n group by BLOCK_NUMBER\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__blocks_full", "attached_node": "model.fsc_evm.test_silver__blocks_full"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__blocks_full_BLOCK_NUMBER.67e6cd85ce": {"test_metadata": {"name": "sequence_gaps", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__blocks_full')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_sequence_gaps_test_silver", "name": "fsc_evm_sequence_gaps_test_silver__blocks_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_sequence_gaps_test_silver__blocks_full_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml", "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__blocks_full_BLOCK_NUMBER.67e6cd85ce", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "blocks", "fsc_evm_sequence_gaps_test_silver__blocks_full_BLOCK_NUMBER"], "alias": "blocks_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "error", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": ">10"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"severity": "error", "error_if": ">10", "store_failures": true}, "created_at": 1764018438.1824477, "relation_name": "polygon.fsc_evm_sequence_gaps_test_silver.blocks_full_BLOCK_NUMBER", "raw_code": "{{ fsc_evm.test_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(severity=\"error\",error_if=\">10\") }}", "language": "sql", "refs": [{"name": "test_silver__blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/blocks/test_silver__blocks_full.yml/fsc_evm_sequence_gaps_test_silver__blocks_full_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n\n\nWITH source AS (\n SELECT\n \n BLOCK_NUMBER,\n LAG(\n BLOCK_NUMBER,\n 1\n ) over (\n \n ORDER BY\n BLOCK_NUMBER ASC\n ) AS prev_BLOCK_NUMBER\n FROM\n polygon.test_silver.blocks_full\n)\nSELECT\n \n prev_BLOCK_NUMBER,\n BLOCK_NUMBER,\n BLOCK_NUMBER - prev_BLOCK_NUMBER\n - 1 AS gap\nFROM\n source\nWHERE\n BLOCK_NUMBER - prev_BLOCK_NUMBER <> 1\n\n AND BLOCK_NUMBER NOT IN (\n SELECT block_number :: INT + 1\n FROM observability.exclusion_list\n UNION ALL\n SELECT block_number :: INT - 1\n FROM observability.exclusion_list\n )\n\nORDER BY\n gap DESC \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__blocks_full", "attached_node": "model.fsc_evm.test_silver__blocks_full"}, "test.fsc_evm.not_null_test_silver__contracts_recent_CONTRACT_ADDRESS.037aff5161": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_silver__contracts_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__contracts_recent_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__contracts_recent_CONTRACT_ADDRESS.sql", "original_file_path": "models/main_package/core/silver/tests/contracts/test_silver__contracts_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__contracts_recent_CONTRACT_ADDRESS.037aff5161", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "contracts", "not_null_test_silver__contracts_recent_CONTRACT_ADDRESS"], "alias": "contracts_recent_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.2287786, "relation_name": "polygon.not_null_test_silver.contracts_recent_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__contracts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__contracts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/contracts/test_silver__contracts_recent.yml/not_null_test_silver__contracts_recent_CONTRACT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.contracts_recent\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_silver__contracts_recent", "attached_node": "model.fsc_evm.test_silver__contracts_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__contracts_recent_CONTRACT_ADDRESS.86e2c4e62c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS"], "model": "{{ get_where_subquery(ref('test_silver__contracts_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__contracts_recent_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_55188de9fa5bba780749c539d6a162fa.sql", "original_file_path": "models/main_package/core/silver/tests/contracts/test_silver__contracts_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__contracts_recent_CONTRACT_ADDRESS.86e2c4e62c", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "contracts", "dbt_utils_unique_combination_of_columns_test_silver__contracts_recent_CONTRACT_ADDRESS"], "alias": "contracts_recent_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_55188de9fa5bba780749c539d6a162fa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_55188de9fa5bba780749c539d6a162fa", "store_failures": true}, "created_at": 1764018438.2310405, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.contracts_recent_CONTRACT_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_55188de9fa5bba780749c539d6a162fa\") }}", "language": "sql", "refs": [{"name": "test_silver__contracts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__contracts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/contracts/test_silver__contracts_recent.yml/dbt_utils_unique_combination_o_55188de9fa5bba780749c539d6a162fa.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS\n from polygon.test_silver.contracts_recent\n group by CONTRACT_ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__contracts_recent", "attached_node": "model.fsc_evm.test_silver__contracts_recent"}, "test.fsc_evm.not_null_test_silver__contracts_full_CONTRACT_ADDRESS.1e6edb77c6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_silver__contracts_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__contracts_full_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__contracts_full_CONTRACT_ADDRESS.sql", "original_file_path": "models/main_package/core/silver/tests/contracts/test_silver__contracts_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__contracts_full_CONTRACT_ADDRESS.1e6edb77c6", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "contracts", "not_null_test_silver__contracts_full_CONTRACT_ADDRESS"], "alias": "contracts_full_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.2369895, "relation_name": "polygon.not_null_test_silver.contracts_full_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__contracts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__contracts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/contracts/test_silver__contracts_full.yml/not_null_test_silver__contracts_full_CONTRACT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.contracts_full\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_silver__contracts_full", "attached_node": "model.fsc_evm.test_silver__contracts_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__contracts_full_CONTRACT_ADDRESS.0763359ca5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS"], "model": "{{ get_where_subquery(ref('test_silver__contracts_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__contracts_full_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_67f6460bac8f75e7228fd31f7f50b37f.sql", "original_file_path": "models/main_package/core/silver/tests/contracts/test_silver__contracts_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__contracts_full_CONTRACT_ADDRESS.0763359ca5", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "contracts", "dbt_utils_unique_combination_of_columns_test_silver__contracts_full_CONTRACT_ADDRESS"], "alias": "contracts_full_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_67f6460bac8f75e7228fd31f7f50b37f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_67f6460bac8f75e7228fd31f7f50b37f", "store_failures": true}, "created_at": 1764018438.2391858, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.contracts_full_CONTRACT_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_67f6460bac8f75e7228fd31f7f50b37f\") }}", "language": "sql", "refs": [{"name": "test_silver__contracts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__contracts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/contracts/test_silver__contracts_full.yml/dbt_utils_unique_combination_o_67f6460bac8f75e7228fd31f7f50b37f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS\n from polygon.test_silver.contracts_full\n group by CONTRACT_ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__contracts_full", "attached_node": "model.fsc_evm.test_silver__contracts_full"}, "test.fsc_evm.not_null_test_silver__created_contracts_full_BLOCK_TIMESTAMP.656e8a5526": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__created_contracts_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__created_contracts_full_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__created_contracts_full_BLOCK_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__created_contracts_full_BLOCK_TIMESTAMP.656e8a5526", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "created_contracts", "not_null_test_silver__created_contracts_full_BLOCK_TIMESTAMP"], "alias": "created_contracts_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.2451718, "relation_name": "polygon.not_null_test_silver.created_contracts_full_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__created_contracts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__created_contracts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_full.yml/not_null_test_silver__created_contracts_full_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.created_contracts_full\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_silver__created_contracts_full", "attached_node": "model.fsc_evm.test_silver__created_contracts_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_full_BLOCK_TIMESTAMP__day__1.47c627b66b": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__created_contracts_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_full_BLOCK_TIMESTAMP__day__1", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_33ea461368741399a5f3b87142b3209b.sql", "original_file_path": "models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_full_BLOCK_TIMESTAMP__day__1.47c627b66b", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "created_contracts", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_full_BLOCK_TIMESTAMP__day__1"], "alias": "created_contracts_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_33ea461368741399a5f3b87142b3209b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_33ea461368741399a5f3b87142b3209b", "store_failures": true}, "created_at": 1764018438.2473526, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.created_contracts_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_33ea461368741399a5f3b87142b3209b\") }}", "language": "sql", "refs": [{"name": "test_silver__created_contracts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__created_contracts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_full.yml/dbt_expectations_expect_row_va_33ea461368741399a5f3b87142b3209b.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.created_contracts_full\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_silver__created_contracts_full", "attached_node": "model.fsc_evm.test_silver__created_contracts_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_full_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.3cf23748a5": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ", "TIMESTAMP_LTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__created_contracts_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_full_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_d1f97ec025701cc6e94a947e1529c7bb.sql", "original_file_path": "models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_full_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.3cf23748a5", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "created_contracts", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_full_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ"], "alias": "created_contracts_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d1f97ec025701cc6e94a947e1529c7bb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d1f97ec025701cc6e94a947e1529c7bb", "store_failures": true}, "created_at": 1764018438.2550077, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.created_contracts_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d1f97ec025701cc6e94a947e1529c7bb\") }}", "language": "sql", "refs": [{"name": "test_silver__created_contracts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__created_contracts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_full.yml/dbt_expectations_expect_column_d1f97ec025701cc6e94a947e1529c7bb.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATED_CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATED_CONTRACT_INPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATED_CONTRACTS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ', 'TIMESTAMP_LTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_silver__created_contracts_full", "attached_node": "model.fsc_evm.test_silver__created_contracts_full"}, "test.fsc_evm.not_null_test_silver__created_contracts_full__INSERTED_TIMESTAMP.c6b7aec473": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__created_contracts_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__created_contracts_full__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__created__f5e8d0a609464648886843ce00fb8e6c.sql", "original_file_path": "models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__created_contracts_full__INSERTED_TIMESTAMP.c6b7aec473", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "created_contracts", "not_null_test_silver__created_contracts_full__INSERTED_TIMESTAMP"], "alias": "created_contracts_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_silver__created__f5e8d0a609464648886843ce00fb8e6c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_silver__created__f5e8d0a609464648886843ce00fb8e6c", "store_failures": true}, "created_at": 1764018438.2602296, "relation_name": "polygon.not_null_test_silver.created_contracts_full", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_silver__created__f5e8d0a609464648886843ce00fb8e6c\") }}", "language": "sql", "refs": [{"name": "test_silver__created_contracts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__created_contracts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_full.yml/not_null_test_silver__created__f5e8d0a609464648886843ce00fb8e6c.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.created_contracts_full\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__created_contracts_full", "attached_node": "model.fsc_evm.test_silver__created_contracts_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_full__INSERTED_TIMESTAMP__day__1.f18b9fe607": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__created_contracts_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_full__INSERTED_TIMESTAMP__day__1", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_6234911e9834e5c3396d3605bb9c309a.sql", "original_file_path": "models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_full__INSERTED_TIMESTAMP__day__1.f18b9fe607", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "created_contracts", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_full__INSERTED_TIMESTAMP__day__1"], "alias": "created_contracts_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_6234911e9834e5c3396d3605bb9c309a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_6234911e9834e5c3396d3605bb9c309a", "store_failures": true}, "created_at": 1764018438.2623572, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.created_contracts_full", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_6234911e9834e5c3396d3605bb9c309a\") }}", "language": "sql", "refs": [{"name": "test_silver__created_contracts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__created_contracts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_full.yml/dbt_expectations_expect_row_va_6234911e9834e5c3396d3605bb9c309a.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.created_contracts_full\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__created_contracts_full", "attached_node": "model.fsc_evm.test_silver__created_contracts_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_full__INSERTED_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.8c87acbb48": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ", "TIMESTAMP_LTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__created_contracts_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_full__INSERTED_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_b632255b75f6920887bd585b2a8f6f43.sql", "original_file_path": "models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_full__INSERTED_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.8c87acbb48", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "created_contracts", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_full__INSERTED_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ"], "alias": "created_contracts_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b632255b75f6920887bd585b2a8f6f43", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b632255b75f6920887bd585b2a8f6f43", "store_failures": true}, "created_at": 1764018438.2697828, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.created_contracts_full", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b632255b75f6920887bd585b2a8f6f43\") }}", "language": "sql", "refs": [{"name": "test_silver__created_contracts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__created_contracts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_full.yml/dbt_expectations_expect_column_b632255b75f6920887bd585b2a8f6f43.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATED_CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATED_CONTRACT_INPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATED_CONTRACTS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ', 'TIMESTAMP_LTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__created_contracts_full", "attached_node": "model.fsc_evm.test_silver__created_contracts_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__created_contracts_full_created_contract_address.e21b0009b3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["created_contract_address"], "model": "{{ get_where_subquery(ref('test_silver__created_contracts_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__created_contracts_full_created_contract_address", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_a2cf7d084a79bb2749ea2e6e75b9b6ce.sql", "original_file_path": "models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__created_contracts_full_created_contract_address.e21b0009b3", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "created_contracts", "dbt_utils_unique_combination_of_columns_test_silver__created_contracts_full_created_contract_address"], "alias": "created_contracts_full_created_contract_address", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a2cf7d084a79bb2749ea2e6e75b9b6ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a2cf7d084a79bb2749ea2e6e75b9b6ce", "store_failures": true}, "created_at": 1764018438.2745667, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.created_contracts_full_created_contract_address", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a2cf7d084a79bb2749ea2e6e75b9b6ce\") }}", "language": "sql", "refs": [{"name": "test_silver__created_contracts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__created_contracts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_full.yml/dbt_utils_unique_combination_o_a2cf7d084a79bb2749ea2e6e75b9b6ce.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n created_contract_address\n from polygon.test_silver.created_contracts_full\n group by created_contract_address\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__created_contracts_full", "attached_node": "model.fsc_evm.test_silver__created_contracts_full"}, "test.fsc_evm.not_null_test_silver__created_contracts_recent_BLOCK_TIMESTAMP.734876c6a9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__created_contracts_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__created_contracts_recent_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__created_contracts_recent_BLOCK_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__created_contracts_recent_BLOCK_TIMESTAMP.734876c6a9", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "created_contracts", "not_null_test_silver__created_contracts_recent_BLOCK_TIMESTAMP"], "alias": "created_contracts_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.2806115, "relation_name": "polygon.not_null_test_silver.created_contracts_recent_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__created_contracts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__created_contracts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_recent.yml/not_null_test_silver__created_contracts_recent_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.created_contracts_recent\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_silver__created_contracts_recent", "attached_node": "model.fsc_evm.test_silver__created_contracts_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_recent_BLOCK_TIMESTAMP__day__1.0c68c9f927": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__created_contracts_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_recent_BLOCK_TIMESTAMP__day__1", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_3e9369f87ad54ad4213e06b506035175.sql", "original_file_path": "models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_recent_BLOCK_TIMESTAMP__day__1.0c68c9f927", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "created_contracts", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_recent_BLOCK_TIMESTAMP__day__1"], "alias": "created_contracts_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_3e9369f87ad54ad4213e06b506035175", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_3e9369f87ad54ad4213e06b506035175", "store_failures": true}, "created_at": 1764018438.283104, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.created_contracts_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_3e9369f87ad54ad4213e06b506035175\") }}", "language": "sql", "refs": [{"name": "test_silver__created_contracts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__created_contracts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_recent.yml/dbt_expectations_expect_row_va_3e9369f87ad54ad4213e06b506035175.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.created_contracts_recent\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_silver__created_contracts_recent", "attached_node": "model.fsc_evm.test_silver__created_contracts_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_recent_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.3661419d77": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ", "TIMESTAMP_LTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__created_contracts_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_recent_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_4956a1ea125f2c79345a25de454bada6.sql", "original_file_path": "models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_recent_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.3661419d77", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "created_contracts", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_recent_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ"], "alias": "created_contracts_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4956a1ea125f2c79345a25de454bada6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_4956a1ea125f2c79345a25de454bada6", "store_failures": true}, "created_at": 1764018438.29043, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.created_contracts_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4956a1ea125f2c79345a25de454bada6\") }}", "language": "sql", "refs": [{"name": "test_silver__created_contracts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__created_contracts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_recent.yml/dbt_expectations_expect_column_4956a1ea125f2c79345a25de454bada6.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATED_CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATED_CONTRACT_INPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATED_CONTRACTS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ', 'TIMESTAMP_LTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_silver__created_contracts_recent", "attached_node": "model.fsc_evm.test_silver__created_contracts_recent"}, "test.fsc_evm.not_null_test_silver__created_contracts_recent__INSERTED_TIMESTAMP.f3206a6f1a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__created_contracts_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__created_contracts_recent__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__created__1a803d2b3452f9109b5138b18b6a6b8c.sql", "original_file_path": "models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__created_contracts_recent__INSERTED_TIMESTAMP.f3206a6f1a", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "created_contracts", "not_null_test_silver__created_contracts_recent__INSERTED_TIMESTAMP"], "alias": "created_contracts_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_silver__created__1a803d2b3452f9109b5138b18b6a6b8c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_silver__created__1a803d2b3452f9109b5138b18b6a6b8c", "store_failures": true}, "created_at": 1764018438.2950428, "relation_name": "polygon.not_null_test_silver.created_contracts_recent", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_silver__created__1a803d2b3452f9109b5138b18b6a6b8c\") }}", "language": "sql", "refs": [{"name": "test_silver__created_contracts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__created_contracts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_recent.yml/not_null_test_silver__created__1a803d2b3452f9109b5138b18b6a6b8c.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.created_contracts_recent\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__created_contracts_recent", "attached_node": "model.fsc_evm.test_silver__created_contracts_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_recent__INSERTED_TIMESTAMP__day__1.ca46deddf6": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__created_contracts_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_recent__INSERTED_TIMESTAMP__day__1", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_23912b909ef733604e936294ffcc61ae.sql", "original_file_path": "models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_recent__INSERTED_TIMESTAMP__day__1.ca46deddf6", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "created_contracts", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_recent__INSERTED_TIMESTAMP__day__1"], "alias": "created_contracts_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_23912b909ef733604e936294ffcc61ae", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_23912b909ef733604e936294ffcc61ae", "store_failures": true}, "created_at": 1764018438.2971823, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.created_contracts_recent", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_23912b909ef733604e936294ffcc61ae\") }}", "language": "sql", "refs": [{"name": "test_silver__created_contracts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__created_contracts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_recent.yml/dbt_expectations_expect_row_va_23912b909ef733604e936294ffcc61ae.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.created_contracts_recent\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__created_contracts_recent", "attached_node": "model.fsc_evm.test_silver__created_contracts_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_recent__INSERTED_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.f0ec5f4645": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ", "TIMESTAMP_LTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__created_contracts_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_recent__INSERTED_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_acd9e71e005f5609837376257d0606d9.sql", "original_file_path": "models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_recent__INSERTED_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.f0ec5f4645", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "created_contracts", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_recent__INSERTED_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ"], "alias": "created_contracts_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_acd9e71e005f5609837376257d0606d9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_acd9e71e005f5609837376257d0606d9", "store_failures": true}, "created_at": 1764018438.3046727, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.created_contracts_recent", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_acd9e71e005f5609837376257d0606d9\") }}", "language": "sql", "refs": [{"name": "test_silver__created_contracts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__created_contracts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_recent.yml/dbt_expectations_expect_column_acd9e71e005f5609837376257d0606d9.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATED_CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATED_CONTRACT_INPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATED_CONTRACTS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ', 'TIMESTAMP_LTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__created_contracts_recent", "attached_node": "model.fsc_evm.test_silver__created_contracts_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__created_contracts_recent_created_contract_address.5c757b7d79": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["created_contract_address"], "model": "{{ get_where_subquery(ref('test_silver__created_contracts_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__created_contracts_recent_created_contract_address", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_1a570829ad2361e1e242bc8b9312964c.sql", "original_file_path": "models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__created_contracts_recent_created_contract_address.5c757b7d79", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "created_contracts", "dbt_utils_unique_combination_of_columns_test_silver__created_contracts_recent_created_contract_address"], "alias": "created_contracts_recent_created_contract_address", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a570829ad2361e1e242bc8b9312964c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a570829ad2361e1e242bc8b9312964c", "store_failures": true}, "created_at": 1764018438.309201, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.created_contracts_recent_created_contract_address", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a570829ad2361e1e242bc8b9312964c\") }}", "language": "sql", "refs": [{"name": "test_silver__created_contracts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__created_contracts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/created_contracts/test_silver__created_contracts_recent.yml/dbt_utils_unique_combination_o_1a570829ad2361e1e242bc8b9312964c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n created_contract_address\n from polygon.test_silver.created_contracts_recent\n group by created_contract_address\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__created_contracts_recent", "attached_node": "model.fsc_evm.test_silver__created_contracts_recent"}, "test.fsc_evm.not_null_test_silver__receipts_full_BLOCK_NUMBER.b8318adb18": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__receipts_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__receipts_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__receipts_full_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__receipts_full_BLOCK_NUMBER.b8318adb18", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "not_null_test_silver__receipts_full_BLOCK_NUMBER"], "alias": "receipts_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.315601, "relation_name": "polygon.not_null_test_silver.receipts_full_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__receipts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml/not_null_test_silver__receipts_full_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.receipts_full\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_silver__receipts_full", "attached_node": "model.fsc_evm.test_silver__receipts_full"}, "test.fsc_evm.not_null_test_silver__receipts_full_RECEIPTS_JSON.60e73b67be": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "RECEIPTS_JSON", "model": "{{ get_where_subquery(ref('test_silver__receipts_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__receipts_full_RECEIPTS_JSON", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__receipts_full_RECEIPTS_JSON.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__receipts_full_RECEIPTS_JSON.60e73b67be", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "not_null_test_silver__receipts_full_RECEIPTS_JSON"], "alias": "receipts_full_RECEIPTS_JSON", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.3177137, "relation_name": "polygon.not_null_test_silver.receipts_full_RECEIPTS_JSON", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__receipts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml/not_null_test_silver__receipts_full_RECEIPTS_JSON.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.receipts_full\nwhere RECEIPTS_JSON is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "RECEIPTS_JSON", "file_key_name": "models.test_silver__receipts_full", "attached_node": "model.fsc_evm.test_silver__receipts_full"}, "test.fsc_evm.not_null_test_silver__receipts_full__INSERTED_TIMESTAMP.daab58d3d3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__receipts_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__receipts_full__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__receipts_full__INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__receipts_full__INSERTED_TIMESTAMP.daab58d3d3", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "not_null_test_silver__receipts_full__INSERTED_TIMESTAMP"], "alias": "receipts_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.3198085, "relation_name": "polygon.not_null_test_silver.receipts_full", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__receipts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml/not_null_test_silver__receipts_full__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.receipts_full\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__receipts_full", "attached_node": "model.fsc_evm.test_silver__receipts_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full__INSERTED_TIMESTAMP__hour__2.4c5fd60675": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__receipts_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full__INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_b78b70101a6d734b35df65855f4eaf23.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full__INSERTED_TIMESTAMP__hour__2.4c5fd60675", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full__INSERTED_TIMESTAMP__hour__2"], "alias": "receipts_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_b78b70101a6d734b35df65855f4eaf23", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_b78b70101a6d734b35df65855f4eaf23", "store_failures": true}, "created_at": 1764018438.3219252, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.receipts_full", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_b78b70101a6d734b35df65855f4eaf23\") }}", "language": "sql", "refs": [{"name": "test_silver__receipts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml/dbt_expectations_expect_row_va_b78b70101a6d734b35df65855f4eaf23.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.receipts_full\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__receipts_full", "attached_node": "model.fsc_evm.test_silver__receipts_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.63454383b5": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__receipts_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_38fb7cec35442879ac941d2bdbb69101.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.63454383b5", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "receipts_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_38fb7cec35442879ac941d2bdbb69101", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_38fb7cec35442879ac941d2bdbb69101", "store_failures": true}, "created_at": 1764018438.3296034, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.receipts_full", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_38fb7cec35442879ac941d2bdbb69101\") }}", "language": "sql", "refs": [{"name": "test_silver__receipts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml/dbt_expectations_expect_column_38fb7cec35442879ac941d2bdbb69101.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ARRAY_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__receipts_full", "attached_node": "model.fsc_evm.test_silver__receipts_full"}, "test.fsc_evm.not_null_test_silver__receipts_full_INSERTED_TIMESTAMP.eba05ceee3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__receipts_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__receipts_full_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__receipts_full_INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__receipts_full_INSERTED_TIMESTAMP.eba05ceee3", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "not_null_test_silver__receipts_full_INSERTED_TIMESTAMP"], "alias": "receipts_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.3343034, "relation_name": "polygon.not_null_test_silver.receipts_full_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__receipts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml/not_null_test_silver__receipts_full_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.receipts_full\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__receipts_full", "attached_node": "model.fsc_evm.test_silver__receipts_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full_INSERTED_TIMESTAMP__hour__2.efed27386e": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__receipts_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_834e16d5cf0bed299fbdd50b0d0e6d55.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full_INSERTED_TIMESTAMP__hour__2.efed27386e", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full_INSERTED_TIMESTAMP__hour__2"], "alias": "receipts_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_834e16d5cf0bed299fbdd50b0d0e6d55", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_834e16d5cf0bed299fbdd50b0d0e6d55", "store_failures": true}, "created_at": 1764018438.3364203, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.receipts_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_834e16d5cf0bed299fbdd50b0d0e6d55\") }}", "language": "sql", "refs": [{"name": "test_silver__receipts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml/dbt_expectations_expect_row_va_834e16d5cf0bed299fbdd50b0d0e6d55.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.receipts_full\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__receipts_full", "attached_node": "model.fsc_evm.test_silver__receipts_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.f626a67c39": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__receipts_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_a3d3f2c43bba1778a33c1aa29896c780.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.f626a67c39", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "receipts_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a3d3f2c43bba1778a33c1aa29896c780", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_a3d3f2c43bba1778a33c1aa29896c780", "store_failures": true}, "created_at": 1764018438.3438313, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.receipts_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a3d3f2c43bba1778a33c1aa29896c780\") }}", "language": "sql", "refs": [{"name": "test_silver__receipts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml/dbt_expectations_expect_column_a3d3f2c43bba1778a33c1aa29896c780.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ARRAY_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__receipts_full", "attached_node": "model.fsc_evm.test_silver__receipts_full"}, "test.fsc_evm.not_null_test_silver__receipts_full_MODIFIED_TIMESTAMP.23b69b4875": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__receipts_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__receipts_full_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__receipts_full_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__receipts_full_MODIFIED_TIMESTAMP.23b69b4875", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "not_null_test_silver__receipts_full_MODIFIED_TIMESTAMP"], "alias": "receipts_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.3485565, "relation_name": "polygon.not_null_test_silver.receipts_full_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__receipts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml/not_null_test_silver__receipts_full_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.receipts_full\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__receipts_full", "attached_node": "model.fsc_evm.test_silver__receipts_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full_MODIFIED_TIMESTAMP__hour__2.89a13f7252": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__receipts_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_1da5bdb26fbcfa7b1f4328a6826483c8.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full_MODIFIED_TIMESTAMP__hour__2.89a13f7252", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full_MODIFIED_TIMESTAMP__hour__2"], "alias": "receipts_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_1da5bdb26fbcfa7b1f4328a6826483c8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_1da5bdb26fbcfa7b1f4328a6826483c8", "store_failures": true}, "created_at": 1764018438.350682, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.receipts_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_1da5bdb26fbcfa7b1f4328a6826483c8\") }}", "language": "sql", "refs": [{"name": "test_silver__receipts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml/dbt_expectations_expect_row_va_1da5bdb26fbcfa7b1f4328a6826483c8.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.receipts_full\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__receipts_full", "attached_node": "model.fsc_evm.test_silver__receipts_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c6d76da598": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__receipts_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_f701ec1cf9ec97151899606ec68dad73.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c6d76da598", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "receipts_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f701ec1cf9ec97151899606ec68dad73", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f701ec1cf9ec97151899606ec68dad73", "store_failures": true}, "created_at": 1764018438.3589213, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.receipts_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f701ec1cf9ec97151899606ec68dad73\") }}", "language": "sql", "refs": [{"name": "test_silver__receipts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml/dbt_expectations_expect_column_f701ec1cf9ec97151899606ec68dad73.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ARRAY_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'MODIFIED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__receipts_full", "attached_node": "model.fsc_evm.test_silver__receipts_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__receipts_full_RECEIPTS_ID.443fd400ca": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["RECEIPTS_ID"], "model": "{{ get_where_subquery(ref('test_silver__receipts_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__receipts_full_RECEIPTS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_3284186fc3e5c5da02f5ee53c9a816af.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__receipts_full_RECEIPTS_ID.443fd400ca", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "dbt_utils_unique_combination_of_columns_test_silver__receipts_full_RECEIPTS_ID"], "alias": "receipts_full_RECEIPTS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3284186fc3e5c5da02f5ee53c9a816af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3284186fc3e5c5da02f5ee53c9a816af", "store_failures": true}, "created_at": 1764018438.3636527, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.receipts_full_RECEIPTS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3284186fc3e5c5da02f5ee53c9a816af\") }}", "language": "sql", "refs": [{"name": "test_silver__receipts_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_full.yml/dbt_utils_unique_combination_o_3284186fc3e5c5da02f5ee53c9a816af.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n RECEIPTS_ID\n from polygon.test_silver.receipts_full\n group by RECEIPTS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__receipts_full", "attached_node": "model.fsc_evm.test_silver__receipts_full"}, "test.fsc_evm.not_null_test_silver__receipts_recent_BLOCK_NUMBER.a025315ae3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__receipts_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__receipts_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__receipts_recent_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__receipts_recent_BLOCK_NUMBER.a025315ae3", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "not_null_test_silver__receipts_recent_BLOCK_NUMBER"], "alias": "receipts_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.3702028, "relation_name": "polygon.not_null_test_silver.receipts_recent_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__receipts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml/not_null_test_silver__receipts_recent_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.receipts_recent\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_silver__receipts_recent", "attached_node": "model.fsc_evm.test_silver__receipts_recent"}, "test.fsc_evm.not_null_test_silver__receipts_recent_RECEIPTS_JSON.edca36b9ab": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "RECEIPTS_JSON", "model": "{{ get_where_subquery(ref('test_silver__receipts_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__receipts_recent_RECEIPTS_JSON", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__receipts_recent_RECEIPTS_JSON.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__receipts_recent_RECEIPTS_JSON.edca36b9ab", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "not_null_test_silver__receipts_recent_RECEIPTS_JSON"], "alias": "receipts_recent_RECEIPTS_JSON", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.3723633, "relation_name": "polygon.not_null_test_silver.receipts_recent_RECEIPTS_JSON", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__receipts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml/not_null_test_silver__receipts_recent_RECEIPTS_JSON.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.receipts_recent\nwhere RECEIPTS_JSON is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "RECEIPTS_JSON", "file_key_name": "models.test_silver__receipts_recent", "attached_node": "model.fsc_evm.test_silver__receipts_recent"}, "test.fsc_evm.not_null_test_silver__receipts_recent__INSERTED_TIMESTAMP.3caff14157": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__receipts_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__receipts_recent__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__receipts_recent__INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__receipts_recent__INSERTED_TIMESTAMP.3caff14157", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "not_null_test_silver__receipts_recent__INSERTED_TIMESTAMP"], "alias": "receipts_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.3744752, "relation_name": "polygon.not_null_test_silver.receipts_recent", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__receipts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml/not_null_test_silver__receipts_recent__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.receipts_recent\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__receipts_recent", "attached_node": "model.fsc_evm.test_silver__receipts_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent__INSERTED_TIMESTAMP__hour__2.33483a04fc": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__receipts_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent__INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_52f8d5289fddb5d6345031fb0e4487fd.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent__INSERTED_TIMESTAMP__hour__2.33483a04fc", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent__INSERTED_TIMESTAMP__hour__2"], "alias": "receipts_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_52f8d5289fddb5d6345031fb0e4487fd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_52f8d5289fddb5d6345031fb0e4487fd", "store_failures": true}, "created_at": 1764018438.3765829, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.receipts_recent", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_52f8d5289fddb5d6345031fb0e4487fd\") }}", "language": "sql", "refs": [{"name": "test_silver__receipts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml/dbt_expectations_expect_row_va_52f8d5289fddb5d6345031fb0e4487fd.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.receipts_recent\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__receipts_recent", "attached_node": "model.fsc_evm.test_silver__receipts_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7652c2220b": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__receipts_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_0f7a07ab40900ee4d8686466ae2d5e86.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7652c2220b", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "receipts_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0f7a07ab40900ee4d8686466ae2d5e86", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0f7a07ab40900ee4d8686466ae2d5e86", "store_failures": true}, "created_at": 1764018438.3840623, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.receipts_recent", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0f7a07ab40900ee4d8686466ae2d5e86\") }}", "language": "sql", "refs": [{"name": "test_silver__receipts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml/dbt_expectations_expect_column_0f7a07ab40900ee4d8686466ae2d5e86.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ARRAY_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__receipts_recent", "attached_node": "model.fsc_evm.test_silver__receipts_recent"}, "test.fsc_evm.not_null_test_silver__receipts_recent_INSERTED_TIMESTAMP.30ae8bca8d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__receipts_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__receipts_recent_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__receipts_recent_INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__receipts_recent_INSERTED_TIMESTAMP.30ae8bca8d", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "not_null_test_silver__receipts_recent_INSERTED_TIMESTAMP"], "alias": "receipts_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.3889403, "relation_name": "polygon.not_null_test_silver.receipts_recent_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__receipts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml/not_null_test_silver__receipts_recent_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.receipts_recent\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__receipts_recent", "attached_node": "model.fsc_evm.test_silver__receipts_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent_INSERTED_TIMESTAMP__hour__2.c1b0f8737b": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__receipts_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_61cc6c7006b68ad42e81a3e944b5dc0f.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent_INSERTED_TIMESTAMP__hour__2.c1b0f8737b", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent_INSERTED_TIMESTAMP__hour__2"], "alias": "receipts_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_61cc6c7006b68ad42e81a3e944b5dc0f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_61cc6c7006b68ad42e81a3e944b5dc0f", "store_failures": true}, "created_at": 1764018438.3911028, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.receipts_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_61cc6c7006b68ad42e81a3e944b5dc0f\") }}", "language": "sql", "refs": [{"name": "test_silver__receipts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml/dbt_expectations_expect_row_va_61cc6c7006b68ad42e81a3e944b5dc0f.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.receipts_recent\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__receipts_recent", "attached_node": "model.fsc_evm.test_silver__receipts_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.baec638420": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__receipts_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_0fffd412404e455a699681a9ccb91b9c.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.baec638420", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "receipts_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0fffd412404e455a699681a9ccb91b9c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0fffd412404e455a699681a9ccb91b9c", "store_failures": true}, "created_at": 1764018438.3985124, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.receipts_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0fffd412404e455a699681a9ccb91b9c\") }}", "language": "sql", "refs": [{"name": "test_silver__receipts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml/dbt_expectations_expect_column_0fffd412404e455a699681a9ccb91b9c.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ARRAY_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__receipts_recent", "attached_node": "model.fsc_evm.test_silver__receipts_recent"}, "test.fsc_evm.not_null_test_silver__receipts_recent_MODIFIED_TIMESTAMP.4d91715550": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__receipts_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__receipts_recent_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__receipts_recent_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__receipts_recent_MODIFIED_TIMESTAMP.4d91715550", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "not_null_test_silver__receipts_recent_MODIFIED_TIMESTAMP"], "alias": "receipts_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.4033551, "relation_name": "polygon.not_null_test_silver.receipts_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__receipts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml/not_null_test_silver__receipts_recent_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.receipts_recent\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__receipts_recent", "attached_node": "model.fsc_evm.test_silver__receipts_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent_MODIFIED_TIMESTAMP__hour__2.30705ba06a": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__receipts_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_2c2bbfe2b55b3588dc1d35595b81aebb.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent_MODIFIED_TIMESTAMP__hour__2.30705ba06a", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent_MODIFIED_TIMESTAMP__hour__2"], "alias": "receipts_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_2c2bbfe2b55b3588dc1d35595b81aebb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_2c2bbfe2b55b3588dc1d35595b81aebb", "store_failures": true}, "created_at": 1764018438.4054875, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.receipts_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_2c2bbfe2b55b3588dc1d35595b81aebb\") }}", "language": "sql", "refs": [{"name": "test_silver__receipts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml/dbt_expectations_expect_row_va_2c2bbfe2b55b3588dc1d35595b81aebb.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.receipts_recent\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__receipts_recent", "attached_node": "model.fsc_evm.test_silver__receipts_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.1cbb56fb12": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__receipts_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_d317508bca89dd28f48a8fbd2555505c.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.1cbb56fb12", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "receipts_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d317508bca89dd28f48a8fbd2555505c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d317508bca89dd28f48a8fbd2555505c", "store_failures": true}, "created_at": 1764018438.4129512, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.receipts_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d317508bca89dd28f48a8fbd2555505c\") }}", "language": "sql", "refs": [{"name": "test_silver__receipts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml/dbt_expectations_expect_column_d317508bca89dd28f48a8fbd2555505c.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ARRAY_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'MODIFIED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__receipts_recent", "attached_node": "model.fsc_evm.test_silver__receipts_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__receipts_recent_RECEIPTS_ID.72c2ba1bb5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["RECEIPTS_ID"], "model": "{{ get_where_subquery(ref('test_silver__receipts_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__receipts_recent_RECEIPTS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_693878800a64f4a1888326440ce41a78.sql", "original_file_path": "models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__receipts_recent_RECEIPTS_ID.72c2ba1bb5", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "receipts", "dbt_utils_unique_combination_of_columns_test_silver__receipts_recent_RECEIPTS_ID"], "alias": "receipts_recent_RECEIPTS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_693878800a64f4a1888326440ce41a78", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_693878800a64f4a1888326440ce41a78", "store_failures": true}, "created_at": 1764018438.417703, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.receipts_recent_RECEIPTS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_693878800a64f4a1888326440ce41a78\") }}", "language": "sql", "refs": [{"name": "test_silver__receipts_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__receipts_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/receipts/test_silver__receipts_recent.yml/dbt_utils_unique_combination_o_693878800a64f4a1888326440ce41a78.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n RECEIPTS_ID\n from polygon.test_silver.receipts_recent\n group by RECEIPTS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__receipts_recent", "attached_node": "model.fsc_evm.test_silver__receipts_recent"}, "test.fsc_evm.not_null_test_silver__transactions_recent_BLOCK_NUMBER.de7069ea97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__transactions_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__transactions_recent_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__transactions_recent_BLOCK_NUMBER.de7069ea97", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "not_null_test_silver__transactions_recent_BLOCK_NUMBER"], "alias": "transactions_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.4241517, "relation_name": "polygon.not_null_test_silver.transactions_recent_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml/not_null_test_silver__transactions_recent_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.transactions_recent\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_silver__transactions_recent", "attached_node": "model.fsc_evm.test_silver__transactions_recent"}, "test.fsc_evm.not_null_test_silver__transactions_recent_TX_POSITION.bf77824ca2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_silver__transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__transactions_recent_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__transactions_recent_TX_POSITION.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__transactions_recent_TX_POSITION.bf77824ca2", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "not_null_test_silver__transactions_recent_TX_POSITION"], "alias": "transactions_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.4265568, "relation_name": "polygon.not_null_test_silver.transactions_recent_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml/not_null_test_silver__transactions_recent_TX_POSITION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.transactions_recent\nwhere TX_POSITION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_silver__transactions_recent", "attached_node": "model.fsc_evm.test_silver__transactions_recent"}, "test.fsc_evm.not_null_test_silver__transactions_recent_TRANSACTION_JSON.fd6c02a4c1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRANSACTION_JSON", "model": "{{ get_where_subquery(ref('test_silver__transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__transactions_recent_TRANSACTION_JSON", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__transactions_recent_TRANSACTION_JSON.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__transactions_recent_TRANSACTION_JSON.fd6c02a4c1", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "not_null_test_silver__transactions_recent_TRANSACTION_JSON"], "alias": "transactions_recent_TRANSACTION_JSON", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.4287035, "relation_name": "polygon.not_null_test_silver.transactions_recent_TRANSACTION_JSON", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml/not_null_test_silver__transactions_recent_TRANSACTION_JSON.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.transactions_recent\nwhere TRANSACTION_JSON is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRANSACTION_JSON", "file_key_name": "models.test_silver__transactions_recent", "attached_node": "model.fsc_evm.test_silver__transactions_recent"}, "test.fsc_evm.not_null_test_silver__transactions_recent__INSERTED_TIMESTAMP.88fde180fc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__transactions_recent__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__transactions_recent__INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__transactions_recent__INSERTED_TIMESTAMP.88fde180fc", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "not_null_test_silver__transactions_recent__INSERTED_TIMESTAMP"], "alias": "transactions_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.4307685, "relation_name": "polygon.not_null_test_silver.transactions_recent", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml/not_null_test_silver__transactions_recent__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.transactions_recent\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__transactions_recent", "attached_node": "model.fsc_evm.test_silver__transactions_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent__INSERTED_TIMESTAMP__hour__2.e62a731dc8": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__transactions_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent__INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_7268d59426d4640f856557fb5b536f99.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent__INSERTED_TIMESTAMP__hour__2.e62a731dc8", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent__INSERTED_TIMESTAMP__hour__2"], "alias": "transactions_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_7268d59426d4640f856557fb5b536f99", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_7268d59426d4640f856557fb5b536f99", "store_failures": true}, "created_at": 1764018438.4328856, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.transactions_recent", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_7268d59426d4640f856557fb5b536f99\") }}", "language": "sql", "refs": [{"name": "test_silver__transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml/dbt_expectations_expect_row_va_7268d59426d4640f856557fb5b536f99.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.transactions_recent\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__transactions_recent", "attached_node": "model.fsc_evm.test_silver__transactions_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.dadf3a2ece": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__transactions_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_ff2a0bdf1c6ef2e0b5a36d40704d559e.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.dadf3a2ece", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "transactions_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ff2a0bdf1c6ef2e0b5a36d40704d559e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_ff2a0bdf1c6ef2e0b5a36d40704d559e", "store_failures": true}, "created_at": 1764018438.4402459, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.transactions_recent", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ff2a0bdf1c6ef2e0b5a36d40704d559e\") }}", "language": "sql", "refs": [{"name": "test_silver__transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml/dbt_expectations_expect_column_ff2a0bdf1c6ef2e0b5a36d40704d559e.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__transactions_recent", "attached_node": "model.fsc_evm.test_silver__transactions_recent"}, "test.fsc_evm.not_null_test_silver__transactions_recent_INSERTED_TIMESTAMP.ca4e4a608d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__transactions_recent_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__transactions_recent_INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__transactions_recent_INSERTED_TIMESTAMP.ca4e4a608d", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "not_null_test_silver__transactions_recent_INSERTED_TIMESTAMP"], "alias": "transactions_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.4450915, "relation_name": "polygon.not_null_test_silver.transactions_recent_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml/not_null_test_silver__transactions_recent_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.transactions_recent\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__transactions_recent", "attached_node": "model.fsc_evm.test_silver__transactions_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent_INSERTED_TIMESTAMP__hour__2.17e59f939c": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__transactions_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_623546f14bfc14d78403da294c2d8127.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent_INSERTED_TIMESTAMP__hour__2.17e59f939c", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent_INSERTED_TIMESTAMP__hour__2"], "alias": "transactions_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_623546f14bfc14d78403da294c2d8127", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_623546f14bfc14d78403da294c2d8127", "store_failures": true}, "created_at": 1764018438.4472241, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.transactions_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_623546f14bfc14d78403da294c2d8127\") }}", "language": "sql", "refs": [{"name": "test_silver__transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml/dbt_expectations_expect_row_va_623546f14bfc14d78403da294c2d8127.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.transactions_recent\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__transactions_recent", "attached_node": "model.fsc_evm.test_silver__transactions_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.9fe6abc15c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__transactions_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_d86e70afda220e1bfff4f838040cc2c5.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.9fe6abc15c", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "transactions_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d86e70afda220e1bfff4f838040cc2c5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d86e70afda220e1bfff4f838040cc2c5", "store_failures": true}, "created_at": 1764018438.4553516, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.transactions_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d86e70afda220e1bfff4f838040cc2c5\") }}", "language": "sql", "refs": [{"name": "test_silver__transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml/dbt_expectations_expect_column_d86e70afda220e1bfff4f838040cc2c5.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__transactions_recent", "attached_node": "model.fsc_evm.test_silver__transactions_recent"}, "test.fsc_evm.not_null_test_silver__transactions_recent_MODIFIED_TIMESTAMP.6a9e4ad896": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__transactions_recent_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__transactions_recent_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__transactions_recent_MODIFIED_TIMESTAMP.6a9e4ad896", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "not_null_test_silver__transactions_recent_MODIFIED_TIMESTAMP"], "alias": "transactions_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.4600496, "relation_name": "polygon.not_null_test_silver.transactions_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml/not_null_test_silver__transactions_recent_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.transactions_recent\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__transactions_recent", "attached_node": "model.fsc_evm.test_silver__transactions_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent_MODIFIED_TIMESTAMP__hour__2.0fc697aad1": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__transactions_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_e6618024b59a26cb62f0c43b86a9ab93.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent_MODIFIED_TIMESTAMP__hour__2.0fc697aad1", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent_MODIFIED_TIMESTAMP__hour__2"], "alias": "transactions_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_e6618024b59a26cb62f0c43b86a9ab93", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_e6618024b59a26cb62f0c43b86a9ab93", "store_failures": true}, "created_at": 1764018438.4621885, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.transactions_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_e6618024b59a26cb62f0c43b86a9ab93\") }}", "language": "sql", "refs": [{"name": "test_silver__transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml/dbt_expectations_expect_row_va_e6618024b59a26cb62f0c43b86a9ab93.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.transactions_recent\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__transactions_recent", "attached_node": "model.fsc_evm.test_silver__transactions_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.9d61391097": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__transactions_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_c8fd4669736c85df352162c50d8d5f3d.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.9d61391097", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "transactions_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c8fd4669736c85df352162c50d8d5f3d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c8fd4669736c85df352162c50d8d5f3d", "store_failures": true}, "created_at": 1764018438.4695306, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.transactions_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c8fd4669736c85df352162c50d8d5f3d\") }}", "language": "sql", "refs": [{"name": "test_silver__transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml/dbt_expectations_expect_column_c8fd4669736c85df352162c50d8d5f3d.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'MODIFIED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__transactions_recent", "attached_node": "model.fsc_evm.test_silver__transactions_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__transactions_recent_TRANSACTIONS_ID.7c9f74baa9": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["TRANSACTIONS_ID"], "model": "{{ get_where_subquery(ref('test_silver__transactions_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__transactions_recent_TRANSACTIONS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_8d7125d5b9c954f4c6e1296e55c33d08.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__transactions_recent_TRANSACTIONS_ID.7c9f74baa9", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "dbt_utils_unique_combination_of_columns_test_silver__transactions_recent_TRANSACTIONS_ID"], "alias": "transactions_recent_TRANSACTIONS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8d7125d5b9c954f4c6e1296e55c33d08", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8d7125d5b9c954f4c6e1296e55c33d08", "store_failures": true}, "created_at": 1764018438.4743452, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.transactions_recent_TRANSACTIONS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8d7125d5b9c954f4c6e1296e55c33d08\") }}", "language": "sql", "refs": [{"name": "test_silver__transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml/dbt_utils_unique_combination_o_8d7125d5b9c954f4c6e1296e55c33d08.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n TRANSACTIONS_ID\n from polygon.test_silver.transactions_recent\n group by TRANSACTIONS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__transactions_recent", "attached_node": "model.fsc_evm.test_silver__transactions_recent"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__transactions_recent_TX_POSITION__BLOCK_NUMBER.3be96c2d1d": {"test_metadata": {"name": "sequence_gaps", "kwargs": {"partition_by": ["BLOCK_NUMBER"], "column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_silver__transactions_recent')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_sequence_gaps_test_silver", "name": "fsc_evm_sequence_gaps_test_silver__transactions_recent_TX_POSITION__BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_sequence_gaps_test_sil_b99c63dcd1088f0ebbe1e50e46685b82.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml", "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__transactions_recent_TX_POSITION__BLOCK_NUMBER.3be96c2d1d", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "fsc_evm_sequence_gaps_test_silver__transactions_recent_TX_POSITION__BLOCK_NUMBER"], "alias": "transactions_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "fsc_evm_sequence_gaps_test_sil_b99c63dcd1088f0ebbe1e50e46685b82", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "fsc_evm_sequence_gaps_test_sil_b99c63dcd1088f0ebbe1e50e46685b82", "store_failures": true}, "created_at": 1764018438.4793475, "relation_name": "polygon.fsc_evm_sequence_gaps_test_silver.transactions_recent_TX_POSITION", "raw_code": "{{ fsc_evm.test_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(alias=\"fsc_evm_sequence_gaps_test_sil_b99c63dcd1088f0ebbe1e50e46685b82\") }}", "language": "sql", "refs": [{"name": "test_silver__transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_recent.yml/fsc_evm_sequence_gaps_test_sil_b99c63dcd1088f0ebbe1e50e46685b82.sql", "compiled": true, "compiled_code": "\n\n\nWITH source AS (\n SELECT\n BLOCK_NUMBER,\n TX_POSITION,\n LAG(\n TX_POSITION,\n 1\n ) over (\n PARTITION BY BLOCK_NUMBER\n ORDER BY\n TX_POSITION ASC\n ) AS prev_TX_POSITION\n FROM\n polygon.test_silver.transactions_recent\n)\nSELECT\n BLOCK_NUMBER,\n prev_TX_POSITION,\n TX_POSITION,\n TX_POSITION - prev_TX_POSITION\n - 1 AS gap\nFROM\n source\nWHERE\n TX_POSITION - prev_TX_POSITION <> 1\n\nORDER BY\n gap DESC \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__transactions_recent", "attached_node": "model.fsc_evm.test_silver__transactions_recent"}, "test.fsc_evm.not_null_test_silver__transactions_full_BLOCK_NUMBER.10f008705d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__transactions_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__transactions_full_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__transactions_full_BLOCK_NUMBER.10f008705d", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "not_null_test_silver__transactions_full_BLOCK_NUMBER"], "alias": "transactions_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.5263808, "relation_name": "polygon.not_null_test_silver.transactions_full_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml/not_null_test_silver__transactions_full_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.transactions_full\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_silver__transactions_full", "attached_node": "model.fsc_evm.test_silver__transactions_full"}, "test.fsc_evm.not_null_test_silver__transactions_full_TX_POSITION.0f91433ce2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_silver__transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__transactions_full_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__transactions_full_TX_POSITION.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__transactions_full_TX_POSITION.0f91433ce2", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "not_null_test_silver__transactions_full_TX_POSITION"], "alias": "transactions_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.5285914, "relation_name": "polygon.not_null_test_silver.transactions_full_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml/not_null_test_silver__transactions_full_TX_POSITION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.transactions_full\nwhere TX_POSITION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_silver__transactions_full", "attached_node": "model.fsc_evm.test_silver__transactions_full"}, "test.fsc_evm.not_null_test_silver__transactions_full_TRANSACTION_JSON.5c28fd61a2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRANSACTION_JSON", "model": "{{ get_where_subquery(ref('test_silver__transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__transactions_full_TRANSACTION_JSON", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__transactions_full_TRANSACTION_JSON.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__transactions_full_TRANSACTION_JSON.5c28fd61a2", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "not_null_test_silver__transactions_full_TRANSACTION_JSON"], "alias": "transactions_full_TRANSACTION_JSON", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.5307193, "relation_name": "polygon.not_null_test_silver.transactions_full_TRANSACTION_JSON", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml/not_null_test_silver__transactions_full_TRANSACTION_JSON.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.transactions_full\nwhere TRANSACTION_JSON is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRANSACTION_JSON", "file_key_name": "models.test_silver__transactions_full", "attached_node": "model.fsc_evm.test_silver__transactions_full"}, "test.fsc_evm.not_null_test_silver__transactions_full__INSERTED_TIMESTAMP.e767bd3e15": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__transactions_full__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__transactions_full__INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__transactions_full__INSERTED_TIMESTAMP.e767bd3e15", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "not_null_test_silver__transactions_full__INSERTED_TIMESTAMP"], "alias": "transactions_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.5328712, "relation_name": "polygon.not_null_test_silver.transactions_full", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml/not_null_test_silver__transactions_full__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.transactions_full\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__transactions_full", "attached_node": "model.fsc_evm.test_silver__transactions_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full__INSERTED_TIMESTAMP__hour__2.461c571e72": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__transactions_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full__INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_e578b79d56e88927d6091e394a1e4a9f.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full__INSERTED_TIMESTAMP__hour__2.461c571e72", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full__INSERTED_TIMESTAMP__hour__2"], "alias": "transactions_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_e578b79d56e88927d6091e394a1e4a9f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_e578b79d56e88927d6091e394a1e4a9f", "store_failures": true}, "created_at": 1764018438.5349913, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.transactions_full", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_e578b79d56e88927d6091e394a1e4a9f\") }}", "language": "sql", "refs": [{"name": "test_silver__transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml/dbt_expectations_expect_row_va_e578b79d56e88927d6091e394a1e4a9f.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.transactions_full\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__transactions_full", "attached_node": "model.fsc_evm.test_silver__transactions_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.dce86b4eb0": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__transactions_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_d01cc98f46599d4ae2ab28733110c962.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.dce86b4eb0", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "transactions_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d01cc98f46599d4ae2ab28733110c962", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d01cc98f46599d4ae2ab28733110c962", "store_failures": true}, "created_at": 1764018438.542662, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.transactions_full", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d01cc98f46599d4ae2ab28733110c962\") }}", "language": "sql", "refs": [{"name": "test_silver__transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml/dbt_expectations_expect_column_d01cc98f46599d4ae2ab28733110c962.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__transactions_full", "attached_node": "model.fsc_evm.test_silver__transactions_full"}, "test.fsc_evm.not_null_test_silver__transactions_full_INSERTED_TIMESTAMP.ca671e00f0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__transactions_full_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__transactions_full_INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__transactions_full_INSERTED_TIMESTAMP.ca671e00f0", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "not_null_test_silver__transactions_full_INSERTED_TIMESTAMP"], "alias": "transactions_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.5474496, "relation_name": "polygon.not_null_test_silver.transactions_full_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml/not_null_test_silver__transactions_full_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.transactions_full\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__transactions_full", "attached_node": "model.fsc_evm.test_silver__transactions_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full_INSERTED_TIMESTAMP__hour__2.e9cf80dd1c": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__transactions_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_7f4abc7d045b124aaab5b31a95690e0e.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full_INSERTED_TIMESTAMP__hour__2.e9cf80dd1c", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full_INSERTED_TIMESTAMP__hour__2"], "alias": "transactions_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_7f4abc7d045b124aaab5b31a95690e0e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_7f4abc7d045b124aaab5b31a95690e0e", "store_failures": true}, "created_at": 1764018438.549561, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.transactions_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_7f4abc7d045b124aaab5b31a95690e0e\") }}", "language": "sql", "refs": [{"name": "test_silver__transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml/dbt_expectations_expect_row_va_7f4abc7d045b124aaab5b31a95690e0e.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.transactions_full\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__transactions_full", "attached_node": "model.fsc_evm.test_silver__transactions_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.46c3120d2d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__transactions_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_c9751501843479f7dcb7a292cb7e33c8.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.46c3120d2d", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "transactions_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c9751501843479f7dcb7a292cb7e33c8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c9751501843479f7dcb7a292cb7e33c8", "store_failures": true}, "created_at": 1764018438.5569708, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.transactions_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c9751501843479f7dcb7a292cb7e33c8\") }}", "language": "sql", "refs": [{"name": "test_silver__transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml/dbt_expectations_expect_column_c9751501843479f7dcb7a292cb7e33c8.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__transactions_full", "attached_node": "model.fsc_evm.test_silver__transactions_full"}, "test.fsc_evm.not_null_test_silver__transactions_full_MODIFIED_TIMESTAMP.8ce00858b9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__transactions_full_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__transactions_full_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__transactions_full_MODIFIED_TIMESTAMP.8ce00858b9", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "not_null_test_silver__transactions_full_MODIFIED_TIMESTAMP"], "alias": "transactions_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.5617135, "relation_name": "polygon.not_null_test_silver.transactions_full_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml/not_null_test_silver__transactions_full_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_silver.transactions_full\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__transactions_full", "attached_node": "model.fsc_evm.test_silver__transactions_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full_MODIFIED_TIMESTAMP__hour__2.fd041d9a4a": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__transactions_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_2e2ec55c0cb73e3f76874d67181dca97.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full_MODIFIED_TIMESTAMP__hour__2.fd041d9a4a", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full_MODIFIED_TIMESTAMP__hour__2"], "alias": "transactions_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_2e2ec55c0cb73e3f76874d67181dca97", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_2e2ec55c0cb73e3f76874d67181dca97", "store_failures": true}, "created_at": 1764018438.5638838, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.transactions_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_2e2ec55c0cb73e3f76874d67181dca97\") }}", "language": "sql", "refs": [{"name": "test_silver__transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml/dbt_expectations_expect_row_va_2e2ec55c0cb73e3f76874d67181dca97.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_silver.transactions_full\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__transactions_full", "attached_node": "model.fsc_evm.test_silver__transactions_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d1737769ad": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__transactions_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_75cbe90f48e21448416c4cf7382ee582.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d1737769ad", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "transactions_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_75cbe90f48e21448416c4cf7382ee582", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_75cbe90f48e21448416c4cf7382ee582", "store_failures": true}, "created_at": 1764018438.5714018, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.transactions_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_75cbe90f48e21448416c4cf7382ee582\") }}", "language": "sql", "refs": [{"name": "test_silver__transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml/dbt_expectations_expect_column_75cbe90f48e21448416c4cf7382ee582.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_JSON' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_LTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'MODIFIED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__transactions_full", "attached_node": "model.fsc_evm.test_silver__transactions_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__transactions_full_TRANSACTIONS_ID.b3643be5d1": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["TRANSACTIONS_ID"], "model": "{{ get_where_subquery(ref('test_silver__transactions_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__transactions_full_TRANSACTIONS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_9e8bfb395c29349b7972dace9c9abdb2.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__transactions_full_TRANSACTIONS_ID.b3643be5d1", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "dbt_utils_unique_combination_of_columns_test_silver__transactions_full_TRANSACTIONS_ID"], "alias": "transactions_full_TRANSACTIONS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9e8bfb395c29349b7972dace9c9abdb2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9e8bfb395c29349b7972dace9c9abdb2", "store_failures": true}, "created_at": 1764018438.5762181, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.transactions_full_TRANSACTIONS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9e8bfb395c29349b7972dace9c9abdb2\") }}", "language": "sql", "refs": [{"name": "test_silver__transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml/dbt_utils_unique_combination_o_9e8bfb395c29349b7972dace9c9abdb2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n TRANSACTIONS_ID\n from polygon.test_silver.transactions_full\n group by TRANSACTIONS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__transactions_full", "attached_node": "model.fsc_evm.test_silver__transactions_full"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__transactions_full_TX_POSITION__BLOCK_NUMBER.a64778c1c0": {"test_metadata": {"name": "sequence_gaps", "kwargs": {"partition_by": ["BLOCK_NUMBER"], "column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_silver__transactions_full')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_sequence_gaps_test_silver", "name": "fsc_evm_sequence_gaps_test_silver__transactions_full_TX_POSITION__BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_sequence_gaps_test_sil_7d1257cb982bccf5c490b17ef3131a22.sql", "original_file_path": "models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml", "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__transactions_full_TX_POSITION__BLOCK_NUMBER.a64778c1c0", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "transactions", "fsc_evm_sequence_gaps_test_silver__transactions_full_TX_POSITION__BLOCK_NUMBER"], "alias": "transactions_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "fsc_evm_sequence_gaps_test_sil_7d1257cb982bccf5c490b17ef3131a22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "fsc_evm_sequence_gaps_test_sil_7d1257cb982bccf5c490b17ef3131a22", "store_failures": true}, "created_at": 1764018438.5808272, "relation_name": "polygon.fsc_evm_sequence_gaps_test_silver.transactions_full_TX_POSITION", "raw_code": "{{ fsc_evm.test_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(alias=\"fsc_evm_sequence_gaps_test_sil_7d1257cb982bccf5c490b17ef3131a22\") }}", "language": "sql", "refs": [{"name": "test_silver__transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/transactions/test_silver__transactions_full.yml/fsc_evm_sequence_gaps_test_sil_7d1257cb982bccf5c490b17ef3131a22.sql", "compiled": true, "compiled_code": "\n\n\nWITH source AS (\n SELECT\n BLOCK_NUMBER,\n TX_POSITION,\n LAG(\n TX_POSITION,\n 1\n ) over (\n PARTITION BY BLOCK_NUMBER\n ORDER BY\n TX_POSITION ASC\n ) AS prev_TX_POSITION\n FROM\n polygon.test_silver.transactions_full\n)\nSELECT\n BLOCK_NUMBER,\n prev_TX_POSITION,\n TX_POSITION,\n TX_POSITION - prev_TX_POSITION\n - 1 AS gap\nFROM\n source\nWHERE\n TX_POSITION - prev_TX_POSITION <> 1\n\nORDER BY\n gap DESC \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__transactions_full", "attached_node": "model.fsc_evm.test_silver__transactions_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__proxies_full__ID.bab8372ca0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_ID"], "model": "{{ get_where_subquery(ref('test_silver__proxies_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__proxies_full__ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_bc9c8330ef26426f61e32bbb419918af.sql", "original_file_path": "models/main_package/core/silver/tests/proxies/test_silver__proxies_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__proxies_full__ID.bab8372ca0", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "proxies", "dbt_utils_unique_combination_of_columns_test_silver__proxies_full__ID"], "alias": "proxies_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bc9c8330ef26426f61e32bbb419918af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bc9c8330ef26426f61e32bbb419918af", "store_failures": true}, "created_at": 1764018438.6275156, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.proxies_full", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bc9c8330ef26426f61e32bbb419918af\") }}", "language": "sql", "refs": [{"name": "test_silver__proxies_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__proxies_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/proxies/test_silver__proxies_full.yml/dbt_utils_unique_combination_o_bc9c8330ef26426f61e32bbb419918af.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _ID\n from polygon.test_silver.proxies_full\n group by _ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__proxies_full", "attached_node": "model.fsc_evm.test_silver__proxies_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__proxies_recent__ID.0c4929fb5b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_ID"], "model": "{{ get_where_subquery(ref('test_silver__proxies_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__proxies_recent__ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_4e259be74a9343a8638631854bd17f0c.sql", "original_file_path": "models/main_package/core/silver/tests/proxies/test_silver__proxies_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__proxies_recent__ID.0c4929fb5b", "fqn": ["fsc_evm", "main_package", "core", "silver", "tests", "proxies", "dbt_utils_unique_combination_of_columns_test_silver__proxies_recent__ID"], "alias": "proxies_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4e259be74a9343a8638631854bd17f0c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4e259be74a9343a8638631854bd17f0c", "store_failures": true}, "created_at": 1764018438.6337585, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.proxies_recent", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4e259be74a9343a8638631854bd17f0c\") }}", "language": "sql", "refs": [{"name": "test_silver__proxies_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_silver__proxies_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/silver/tests/proxies/test_silver__proxies_recent.yml/dbt_utils_unique_combination_o_4e259be74a9343a8638631854bd17f0c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _ID\n from polygon.test_silver.proxies_recent\n group by _ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__proxies_recent", "attached_node": "model.fsc_evm.test_silver__proxies_recent"}, "test.fsc_evm.not_null_streamline__get_chainhead_BLOCK_NUMBER.504ea108a4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('streamline__get_chainhead')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_streamline", "name": "not_null_streamline__get_chainhead_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_streamline__get_chainhead_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/streamline/streamline__get_chainhead.yml", "unique_id": "test.fsc_evm.not_null_streamline__get_chainhead_BLOCK_NUMBER.504ea108a4", "fqn": ["fsc_evm", "main_package", "core", "streamline", "not_null_streamline__get_chainhead_BLOCK_NUMBER"], "alias": "get_chainhead_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.6396053, "relation_name": "polygon.not_null_streamline.get_chainhead_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "streamline__get_chainhead", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.fsc_evm.streamline__get_chainhead"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.streamline__get_chainhead", "attached_node": "model.fsc_evm.streamline__get_chainhead"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_BLOCK_NUMBER.d457327d7c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_BLOCK_NUMBER.d457327d7c", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_BLOCK_NUMBER"], "alias": "fact_traces_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.6822736, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_BLOCK_NUMBER__NUMBER__FLOAT.31727446c1": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_a63caa81f87845a023edbe89647c2f0b.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_BLOCK_NUMBER__NUMBER__FLOAT.31727446c1", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "fact_traces_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a63caa81f87845a023edbe89647c2f0b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_a63caa81f87845a023edbe89647c2f0b", "store_failures": true}, "created_at": 1764018438.6846976, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_traces_recent_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a63caa81f87845a023edbe89647c2f0b\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/dbt_expectations_expect_column_a63caa81f87845a023edbe89647c2f0b.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OUTPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SUB_TRACES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_HEX' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERROR_REASON' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('REVERT_REASON' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_TRACES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_BLOCK_TIMESTAMP.cda64f37d1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_BLOCK_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_BLOCK_TIMESTAMP.cda64f37d1", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_BLOCK_TIMESTAMP"], "alias": "fact_traces_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.6897776, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_BLOCK_TIMESTAMP__hour__2.d62edf20de": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_BLOCK_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_e5d944bd8c720ba1ca047e5c5b45e194.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_BLOCK_TIMESTAMP__hour__2.d62edf20de", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_BLOCK_TIMESTAMP__hour__2"], "alias": "fact_traces_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_e5d944bd8c720ba1ca047e5c5b45e194", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_e5d944bd8c720ba1ca047e5c5b45e194", "store_failures": true}, "created_at": 1764018438.692454, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_traces_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_e5d944bd8c720ba1ca047e5c5b45e194\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/dbt_expectations_expect_row_va_e5d944bd8c720ba1ca047e5c5b45e194.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_traces_recent\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3a97986c59": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_1b6dfae3f797fb597fa0eebf07369bf6.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3a97986c59", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "fact_traces_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1b6dfae3f797fb597fa0eebf07369bf6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_1b6dfae3f797fb597fa0eebf07369bf6", "store_failures": true}, "created_at": 1764018438.6999345, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_traces_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1b6dfae3f797fb597fa0eebf07369bf6\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/dbt_expectations_expect_column_1b6dfae3f797fb597fa0eebf07369bf6.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OUTPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SUB_TRACES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_HEX' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERROR_REASON' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('REVERT_REASON' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_TRACES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_HASH.fdd1a78f2f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_TX_HASH.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_HASH.fdd1a78f2f", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_TX_HASH"], "alias": "fact_traces_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.7045403, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_TX_HASH__0_xX_0_9a_fA_F_.f88bea7ab6": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_3727ddcab1452e890b6c184a1fcad7ea.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_TX_HASH__0_xX_0_9a_fA_F_.f88bea7ab6", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "fact_traces_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3727ddcab1452e890b6c184a1fcad7ea", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3727ddcab1452e890b6c184a1fcad7ea", "store_failures": true}, "created_at": 1764018438.707439, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_traces_recent_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3727ddcab1452e890b6c184a1fcad7ea\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/dbt_expectations_expect_column_3727ddcab1452e890b6c184a1fcad7ea.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_traces_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_POSITION.cd5aab01f0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_TX_POSITION.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_POSITION.cd5aab01f0", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_TX_POSITION"], "alias": "fact_traces_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.7123585, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_TX_POSITION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere TX_POSITION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_TX_POSITION__NUMBER__FLOAT.81ee6df17c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_TX_POSITION__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_543f4a6e430e767b7752e001f706debd.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_TX_POSITION__NUMBER__FLOAT.81ee6df17c", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_TX_POSITION__NUMBER__FLOAT"], "alias": "fact_traces_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_543f4a6e430e767b7752e001f706debd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_543f4a6e430e767b7752e001f706debd", "store_failures": true}, "created_at": 1764018438.7144365, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_traces_recent_TX_POSITION", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_543f4a6e430e767b7752e001f706debd\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/dbt_expectations_expect_column_543f4a6e430e767b7752e001f706debd.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OUTPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SUB_TRACES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_HEX' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERROR_REASON' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('REVERT_REASON' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_TRACES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_POSITION'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_INDEX.00c0917eec": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRACE_INDEX", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_TRACE_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_TRACE_INDEX.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_INDEX.00c0917eec", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_TRACE_INDEX"], "alias": "fact_traces_recent_TRACE_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.7192042, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_TRACE_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_TRACE_INDEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere TRACE_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRACE_INDEX", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_TRACE_INDEX__NUMBER__FLOAT.0fb959327e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TRACE_INDEX", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_TRACE_INDEX__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_9ac9f67d7caa24ce9977c709a9db80c3.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_TRACE_INDEX__NUMBER__FLOAT.0fb959327e", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_TRACE_INDEX__NUMBER__FLOAT"], "alias": "fact_traces_recent_TRACE_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9ac9f67d7caa24ce9977c709a9db80c3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_9ac9f67d7caa24ce9977c709a9db80c3", "store_failures": true}, "created_at": 1764018438.7213418, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_traces_recent_TRACE_INDEX", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9ac9f67d7caa24ce9977c709a9db80c3\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/dbt_expectations_expect_column_9ac9f67d7caa24ce9977c709a9db80c3.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OUTPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SUB_TRACES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_HEX' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERROR_REASON' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('REVERT_REASON' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_TRACES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TRACE_INDEX'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRACE_INDEX", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_FROM_ADDRESS.e42c02340f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_FROM_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_FROM_ADDRESS.e42c02340f", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_FROM_ADDRESS"], "alias": "fact_traces_recent_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "TYPE <> 'SELFDESTRUCT'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "TYPE <> 'SELFDESTRUCT'", "store_failures": true}, "created_at": 1764018438.7264597, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"TYPE <> 'SELFDESTRUCT'\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.test_gold.fact_traces_recent where TYPE <> 'SELFDESTRUCT') dbt_subquery\nwhere FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FROM_ADDRESS", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.6f01aa59cb": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_67adefc46be6f6fb8ac456fb241fccb3.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.6f01aa59cb", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "fact_traces_recent_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_67adefc46be6f6fb8ac456fb241fccb3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN'", "alias": "dbt_expectations_expect_column_67adefc46be6f6fb8ac456fb241fccb3", "store_failures": true}, "created_at": 1764018438.7289426, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_traces_recent_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(where=\"FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN'\",alias=\"dbt_expectations_expect_column_67adefc46be6f6fb8ac456fb241fccb3\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/dbt_expectations_expect_column_67adefc46be6f6fb8ac456fb241fccb3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from (select * from polygon.test_gold.fact_traces_recent where FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN') dbt_subquery\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FROM_ADDRESS", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.ffc328a26e": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TO_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_64af2983840007b2760cbbf75f36743d.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.ffc328a26e", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "fact_traces_recent_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_64af2983840007b2760cbbf75f36743d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "TO_ADDRESS IS NOT NULL", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "TO_ADDRESS IS NOT NULL", "alias": "dbt_expectations_expect_column_64af2983840007b2760cbbf75f36743d", "store_failures": true}, "created_at": 1764018438.734492, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_traces_recent_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(where=\"TO_ADDRESS IS NOT NULL\",alias=\"dbt_expectations_expect_column_64af2983840007b2760cbbf75f36743d\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/dbt_expectations_expect_column_64af2983840007b2760cbbf75f36743d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from (select * from polygon.test_gold.fact_traces_recent where TO_ADDRESS IS NOT NULL) dbt_subquery\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TO_ADDRESS", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_INPUT.b4e1faa8be": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INPUT", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_INPUT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_INPUT.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_INPUT.b4e1faa8be", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_INPUT"], "alias": "fact_traces_recent_INPUT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "TYPE <> 'SELFDESTRUCT'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "TYPE <> 'SELFDESTRUCT'", "store_failures": true}, "created_at": 1764018438.739624, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_INPUT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"TYPE <> 'SELFDESTRUCT'\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_INPUT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.test_gold.fact_traces_recent where TYPE <> 'SELFDESTRUCT') dbt_subquery\nwhere INPUT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INPUT", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_TYPE.d15c335bcb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TYPE", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_TYPE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_TYPE.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_TYPE.d15c335bcb", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_TYPE"], "alias": "fact_traces_recent_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.7417488, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TYPE", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_ADDRESS.86ed5a1d98": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRACE_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_TRACE_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_TRACE_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_ADDRESS.86ed5a1d98", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_TRACE_ADDRESS"], "alias": "fact_traces_recent_TRACE_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.7438288, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_TRACE_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_TRACE_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere TRACE_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRACE_ADDRESS", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_SUB_TRACES.4cb72b9d8c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SUB_TRACES", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_SUB_TRACES", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_SUB_TRACES.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_SUB_TRACES.4cb72b9d8c", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_SUB_TRACES"], "alias": "fact_traces_recent_SUB_TRACES", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.7459326, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_SUB_TRACES", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_SUB_TRACES.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere SUB_TRACES is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SUB_TRACES", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE.8b0bc69a85": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VALUE", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_VALUE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_VALUE.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE.8b0bc69a85", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_VALUE"], "alias": "fact_traces_recent_VALUE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.7480133, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_VALUE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_VALUE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere VALUE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VALUE", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_PRECISE_RAW.0c0dcc217b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VALUE_PRECISE_RAW", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_VALUE_PRECISE_RAW", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_VALUE_PRECISE_RAW.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_PRECISE_RAW.0c0dcc217b", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_VALUE_PRECISE_RAW"], "alias": "fact_traces_recent_VALUE_PRECISE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.7500765, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_VALUE_PRECISE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_VALUE_PRECISE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere VALUE_PRECISE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VALUE_PRECISE_RAW", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_PRECISE.d873ec7feb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VALUE_PRECISE", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_VALUE_PRECISE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_VALUE_PRECISE.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_PRECISE.d873ec7feb", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_VALUE_PRECISE"], "alias": "fact_traces_recent_VALUE_PRECISE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.7524693, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_VALUE_PRECISE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_VALUE_PRECISE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere VALUE_PRECISE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VALUE_PRECISE", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_HEX.7a2a3e4634": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VALUE_HEX", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_VALUE_HEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_VALUE_HEX.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_HEX.7a2a3e4634", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_VALUE_HEX"], "alias": "fact_traces_recent_VALUE_HEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.7546291, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_VALUE_HEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_VALUE_HEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere VALUE_HEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VALUE_HEX", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_ORIGIN_FROM_ADDRESS.bc94384fb7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_ORIGIN_FROM_ADDRESS.bc94384fb7", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_ORIGIN_FROM_ADDRESS"], "alias": "fact_traces_recent_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.7566884, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_ORIGIN_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_ORIGIN_FUNCTION_SIGNATURE.f967f0e608": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_trace_7a09348fc38e75871b2092d2fa014414.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_ORIGIN_FUNCTION_SIGNATURE.f967f0e608", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_ORIGIN_FUNCTION_SIGNATURE"], "alias": "fact_traces_recent_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__fact_trace_7a09348fc38e75871b2092d2fa014414", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__fact_trace_7a09348fc38e75871b2092d2fa014414", "store_failures": true}, "created_at": 1764018438.7587597, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__fact_trace_7a09348fc38e75871b2092d2fa014414\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_trace_7a09348fc38e75871b2092d2fa014414.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_SUCCEEDED.9a3cc510bc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRACE_SUCCEEDED", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_TRACE_SUCCEEDED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_TRACE_SUCCEEDED.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_SUCCEEDED.9a3cc510bc", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_TRACE_SUCCEEDED"], "alias": "fact_traces_recent_TRACE_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.76081, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_TRACE_SUCCEEDED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_TRACE_SUCCEEDED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere TRACE_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRACE_SUCCEEDED", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_SUCCEEDED.e488b18268": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_TX_SUCCEEDED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_TX_SUCCEEDED.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_SUCCEEDED.e488b18268", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_TX_SUCCEEDED"], "alias": "fact_traces_recent_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.7629063, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_TX_SUCCEEDED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_TX_SUCCEEDED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_SUCCEEDED", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_FACT_TRACES_ID.5ec564f014": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FACT_TRACES_ID", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_FACT_TRACES_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_FACT_TRACES_ID.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_FACT_TRACES_ID.5ec564f014", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_FACT_TRACES_ID"], "alias": "fact_traces_recent_FACT_TRACES_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.7652764, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_FACT_TRACES_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_FACT_TRACES_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere FACT_TRACES_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FACT_TRACES_ID", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_INSERTED_TIMESTAMP.fe2de85a12": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_INSERTED_TIMESTAMP.fe2de85a12", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_INSERTED_TIMESTAMP"], "alias": "fact_traces_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.7673793, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_INSERTED_TIMESTAMP__hour__2.6a5297f507": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_4f7fc751db05fc5141d84438c6d7b95a.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_INSERTED_TIMESTAMP__hour__2.6a5297f507", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_INSERTED_TIMESTAMP__hour__2"], "alias": "fact_traces_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_4f7fc751db05fc5141d84438c6d7b95a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_4f7fc751db05fc5141d84438c6d7b95a", "store_failures": true}, "created_at": 1764018438.769467, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_traces_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_4f7fc751db05fc5141d84438c6d7b95a\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/dbt_expectations_expect_row_va_4f7fc751db05fc5141d84438c6d7b95a.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_traces_recent\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP.7dd9cf25d3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP.7dd9cf25d3", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP"], "alias": "fact_traces_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.7770846, "relation_name": "polygon.not_null_test_gold.fact_traces_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/not_null_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_recent\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP__hour__2.d8b7ffcaca": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_688f8ce827b884f5e79df6e2d80f5358.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP__hour__2.d8b7ffcaca", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP__hour__2"], "alias": "fact_traces_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_688f8ce827b884f5e79df6e2d80f5358", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_688f8ce827b884f5e79df6e2d80f5358", "store_failures": true}, "created_at": 1764018438.7792888, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_traces_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_688f8ce827b884f5e79df6e2d80f5358\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/dbt_expectations_expect_row_va_688f8ce827b884f5e79df6e2d80f5358.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_traces_recent\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_traces_recent_TX_HASH__TRACE_INDEX.4487675007": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["TX_HASH", "TRACE_INDEX"], "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__fact_traces_recent_TX_HASH__TRACE_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_2992cb20aadcb60842e6cf9e07f9a3d9.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_traces_recent_TX_HASH__TRACE_INDEX.4487675007", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_utils_unique_combination_of_columns_test_gold__fact_traces_recent_TX_HASH__TRACE_INDEX"], "alias": "fact_traces_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2992cb20aadcb60842e6cf9e07f9a3d9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2992cb20aadcb60842e6cf9e07f9a3d9", "store_failures": true}, "created_at": 1764018438.7866857, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.fact_traces_recent_TX_HASH", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2992cb20aadcb60842e6cf9e07f9a3d9\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/dbt_utils_unique_combination_o_2992cb20aadcb60842e6cf9e07f9a3d9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n TX_HASH, TRACE_INDEX\n from polygon.test_gold.fact_traces_recent\n group by TX_HASH, TRACE_INDEX\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_traces_recent_TRACE_INDEX__TX_HASH.6c15fc0c52": {"test_metadata": {"name": "sequence_gaps", "kwargs": {"partition_by": ["TX_HASH"], "column_name": "TRACE_INDEX", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_sequence_gaps_test_gold", "name": "fsc_evm_sequence_gaps_test_gold__fact_traces_recent_TRACE_INDEX__TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_sequence_gaps_test_gol_10289a55b8baa775bdd6104fe00f84fb.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_traces_recent_TRACE_INDEX__TX_HASH.6c15fc0c52", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "fsc_evm_sequence_gaps_test_gold__fact_traces_recent_TRACE_INDEX__TX_HASH"], "alias": "fact_traces_recent_TRACE_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "fsc_evm_sequence_gaps_test_gol_10289a55b8baa775bdd6104fe00f84fb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "TX_HASH IS NOT NULL", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "TX_HASH IS NOT NULL", "alias": "fsc_evm_sequence_gaps_test_gol_10289a55b8baa775bdd6104fe00f84fb", "store_failures": true}, "created_at": 1764018438.7918644, "relation_name": "polygon.fsc_evm_sequence_gaps_test_gold.fact_traces_recent_TRACE_INDEX", "raw_code": "{{ fsc_evm.test_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(where=\"TX_HASH IS NOT NULL\",alias=\"fsc_evm_sequence_gaps_test_gol_10289a55b8baa775bdd6104fe00f84fb\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/fsc_evm_sequence_gaps_test_gol_10289a55b8baa775bdd6104fe00f84fb.sql", "compiled": true, "compiled_code": "\n\n\nWITH source AS (\n SELECT\n TX_HASH,\n TRACE_INDEX,\n LAG(\n TRACE_INDEX,\n 1\n ) over (\n PARTITION BY TX_HASH\n ORDER BY\n TRACE_INDEX ASC\n ) AS prev_TRACE_INDEX\n FROM\n (select * from polygon.test_gold.fact_traces_recent where TX_HASH IS NOT NULL) dbt_subquery\n)\nSELECT\n TX_HASH,\n prev_TRACE_INDEX,\n TRACE_INDEX,\n TRACE_INDEX - prev_TRACE_INDEX\n - 1 AS gap\nFROM\n source\nWHERE\n TRACE_INDEX - prev_TRACE_INDEX <> 1\n\nORDER BY\n gap DESC \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.txs_have_traces_test_gold__fact_traces_recent_ref_test_gold__fact_transactions_recent_.5b2a8b5ca4": {"test_metadata": {"name": "txs_have_traces", "kwargs": {"transactions_model": "ref('test_gold__fact_transactions_recent')", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "txs_have_traces_test_gold", "name": "txs_have_traces_test_gold__fact_traces_recent_ref_test_gold__fact_transactions_recent_", "resource_type": "test", "package_name": "fsc_evm", "path": "txs_have_traces_test_gold__fac_9dcf2a8f2be4036bb210b2a6f45bd40d.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml", "unique_id": "test.fsc_evm.txs_have_traces_test_gold__fact_traces_recent_ref_test_gold__fact_transactions_recent_.5b2a8b5ca4", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "txs_have_traces_test_gold__fact_traces_recent_ref_test_gold__fact_transactions_recent_"], "alias": "fact_traces_recent_ref_test_gold", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "txs_have_traces_test_gold__fac_9dcf2a8f2be4036bb210b2a6f45bd40d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "txs_have_traces_test_gold__fac_9dcf2a8f2be4036bb210b2a6f45bd40d", "store_failures": true}, "created_at": 1764018438.8362193, "relation_name": "polygon.txs_have_traces_test_gold.fact_traces_recent_ref_test_gold", "raw_code": "{{ test_txs_have_traces(**_dbt_generic_test_kwargs) }}{{ config(alias=\"txs_have_traces_test_gold__fac_9dcf2a8f2be4036bb210b2a6f45bd40d\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}, {"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_txs_have_traces", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent", "model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_recent.yml/txs_have_traces_test_gold__fac_9dcf2a8f2be4036bb210b2a6f45bd40d.sql", "compiled": true, "compiled_code": "\n\n\n\nWITH txs_with_traces AS (\n\nSELECT\n block_number,\n tx_hash,\n tx_position\nFROM\n polygon.test_gold.fact_transactions_recent\n txs\n LEFT JOIN polygon.test_gold.fact_traces_recent\n tr USING (\n block_number,\n tx_hash,\n tx_position\n )\nWHERE\n (\n tr.tx_hash IS NULL\n OR tr.tx_position IS NULL\n OR tr.block_number IS NULL\n )\n AND txs.from_address <> '0x0000000000000000000000000000000000000000'\n AND txs.to_address <> '0x0000000000000000000000000000000000000000' \n \n \n)\n\nSELECT\n *\nFROM\n txs_with_traces\nWHERE\n (\n SELECT\n COUNT(DISTINCT block_number) >= 0\n FROM\n txs_with_traces\n )\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_traces_recent", "attached_node": "model.fsc_evm.test_gold__fact_traces_recent"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_BLOCK_NUMBER.ef072a7cea": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_BLOCK_NUMBER.ef072a7cea", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_BLOCK_NUMBER"], "alias": "fact_traces_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.8869932, "relation_name": "polygon.not_null_test_gold.fact_traces_full_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_BLOCK_NUMBER__NUMBER__FLOAT.065c833ed1": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_999f1fe722cd31eb8494b1a4c6c7105b.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_BLOCK_NUMBER__NUMBER__FLOAT.065c833ed1", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "fact_traces_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_999f1fe722cd31eb8494b1a4c6c7105b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_999f1fe722cd31eb8494b1a4c6c7105b", "store_failures": true}, "created_at": 1764018438.8891804, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_traces_full_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_999f1fe722cd31eb8494b1a4c6c7105b\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/dbt_expectations_expect_column_999f1fe722cd31eb8494b1a4c6c7105b.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OUTPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SUB_TRACES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_HEX' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERROR_REASON' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('REVERT_REASON' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_TRACES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_BLOCK_TIMESTAMP.f598b4bc90": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_BLOCK_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_BLOCK_TIMESTAMP.f598b4bc90", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_BLOCK_TIMESTAMP"], "alias": "fact_traces_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.8941233, "relation_name": "polygon.not_null_test_gold.fact_traces_full_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_BLOCK_TIMESTAMP__hour__2.6b827e0d56": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_BLOCK_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_a77e88d0b4ff274468fdc22aff1f4a4b.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_BLOCK_TIMESTAMP__hour__2.6b827e0d56", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_BLOCK_TIMESTAMP__hour__2"], "alias": "fact_traces_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_a77e88d0b4ff274468fdc22aff1f4a4b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_a77e88d0b4ff274468fdc22aff1f4a4b", "store_failures": true}, "created_at": 1764018438.8962884, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_traces_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_a77e88d0b4ff274468fdc22aff1f4a4b\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/dbt_expectations_expect_row_va_a77e88d0b4ff274468fdc22aff1f4a4b.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_traces_full\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4682c97f81": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_f974178da0bc231ff60d9f667d624cae.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4682c97f81", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "fact_traces_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f974178da0bc231ff60d9f667d624cae", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f974178da0bc231ff60d9f667d624cae", "store_failures": true}, "created_at": 1764018438.9037457, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_traces_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f974178da0bc231ff60d9f667d624cae\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/dbt_expectations_expect_column_f974178da0bc231ff60d9f667d624cae.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OUTPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SUB_TRACES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_HEX' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERROR_REASON' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('REVERT_REASON' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_TRACES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_HASH.7af5bb693e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_TX_HASH.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_HASH.7af5bb693e", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_TX_HASH"], "alias": "fact_traces_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.908529, "relation_name": "polygon.not_null_test_gold.fact_traces_full_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_TX_HASH__0_xX_0_9a_fA_F_.a50cc790b3": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_ef7b017c1072aec75a2f95ee2696dbde.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_TX_HASH__0_xX_0_9a_fA_F_.a50cc790b3", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "fact_traces_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ef7b017c1072aec75a2f95ee2696dbde", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_ef7b017c1072aec75a2f95ee2696dbde", "store_failures": true}, "created_at": 1764018438.9106247, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_traces_full_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ef7b017c1072aec75a2f95ee2696dbde\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/dbt_expectations_expect_column_ef7b017c1072aec75a2f95ee2696dbde.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_traces_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_POSITION.d76ba851b9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_TX_POSITION.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_POSITION.d76ba851b9", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_TX_POSITION"], "alias": "fact_traces_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.915905, "relation_name": "polygon.not_null_test_gold.fact_traces_full_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_TX_POSITION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere TX_POSITION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_TX_POSITION__NUMBER__FLOAT.6c3cd6ac49": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_TX_POSITION__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_ce5fdb01d28d013f902f0c103fb033aa.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_TX_POSITION__NUMBER__FLOAT.6c3cd6ac49", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_TX_POSITION__NUMBER__FLOAT"], "alias": "fact_traces_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ce5fdb01d28d013f902f0c103fb033aa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_ce5fdb01d28d013f902f0c103fb033aa", "store_failures": true}, "created_at": 1764018438.9180586, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_traces_full_TX_POSITION", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ce5fdb01d28d013f902f0c103fb033aa\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/dbt_expectations_expect_column_ce5fdb01d28d013f902f0c103fb033aa.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OUTPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SUB_TRACES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_HEX' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERROR_REASON' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('REVERT_REASON' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_TRACES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_POSITION'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_INDEX.0ec0ee0f92": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRACE_INDEX", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_TRACE_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_TRACE_INDEX.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_INDEX.0ec0ee0f92", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_TRACE_INDEX"], "alias": "fact_traces_full_TRACE_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.9225938, "relation_name": "polygon.not_null_test_gold.fact_traces_full_TRACE_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_TRACE_INDEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere TRACE_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRACE_INDEX", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_TRACE_INDEX__NUMBER__FLOAT.fbac1ab3f2": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TRACE_INDEX", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_TRACE_INDEX__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_8268be29266dc2e3cf06a0fe7e5b4cb7.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_TRACE_INDEX__NUMBER__FLOAT.fbac1ab3f2", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_TRACE_INDEX__NUMBER__FLOAT"], "alias": "fact_traces_full_TRACE_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8268be29266dc2e3cf06a0fe7e5b4cb7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_8268be29266dc2e3cf06a0fe7e5b4cb7", "store_failures": true}, "created_at": 1764018438.925102, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_traces_full_TRACE_INDEX", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8268be29266dc2e3cf06a0fe7e5b4cb7\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/dbt_expectations_expect_column_8268be29266dc2e3cf06a0fe7e5b4cb7.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('OUTPUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SUB_TRACES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_HEX' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ERROR_REASON' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('REVERT_REASON' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_TRACES_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TRACE_INDEX'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRACE_INDEX", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_FROM_ADDRESS.527a050b74": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_FROM_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_FROM_ADDRESS.527a050b74", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_FROM_ADDRESS"], "alias": "fact_traces_full_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "TYPE <> 'SELFDESTRUCT'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "TYPE <> 'SELFDESTRUCT'", "store_failures": true}, "created_at": 1764018438.9296486, "relation_name": "polygon.not_null_test_gold.fact_traces_full_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"TYPE <> 'SELFDESTRUCT'\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.test_gold.fact_traces_full where TYPE <> 'SELFDESTRUCT') dbt_subquery\nwhere FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FROM_ADDRESS", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.7b65729d3c": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_fa51c182735e89d7d21c731d821d5f94.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.7b65729d3c", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "fact_traces_full_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_fa51c182735e89d7d21c731d821d5f94", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN'", "alias": "dbt_expectations_expect_column_fa51c182735e89d7d21c731d821d5f94", "store_failures": true}, "created_at": 1764018438.9317987, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_traces_full_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(where=\"FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN'\",alias=\"dbt_expectations_expect_column_fa51c182735e89d7d21c731d821d5f94\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/dbt_expectations_expect_column_fa51c182735e89d7d21c731d821d5f94.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from (select * from polygon.test_gold.fact_traces_full where FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN') dbt_subquery\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FROM_ADDRESS", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_TO_ADDRESS__0_xX_0_9a_fA_F_.f8d47ec7e6": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TO_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_02a872588b4b090412dd9158cc8f06fb.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_TO_ADDRESS__0_xX_0_9a_fA_F_.f8d47ec7e6", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "fact_traces_full_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_02a872588b4b090412dd9158cc8f06fb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "TO_ADDRESS IS NOT NULL", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "TO_ADDRESS IS NOT NULL", "alias": "dbt_expectations_expect_column_02a872588b4b090412dd9158cc8f06fb", "store_failures": true}, "created_at": 1764018438.9369895, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_traces_full_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(where=\"TO_ADDRESS IS NOT NULL\",alias=\"dbt_expectations_expect_column_02a872588b4b090412dd9158cc8f06fb\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/dbt_expectations_expect_column_02a872588b4b090412dd9158cc8f06fb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from (select * from polygon.test_gold.fact_traces_full where TO_ADDRESS IS NOT NULL) dbt_subquery\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TO_ADDRESS", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_INPUT.72da83c733": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INPUT", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_INPUT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_INPUT.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_INPUT.72da83c733", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_INPUT"], "alias": "fact_traces_full_INPUT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "TYPE <> 'SELFDESTRUCT'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "TYPE <> 'SELFDESTRUCT'", "store_failures": true}, "created_at": 1764018438.9422553, "relation_name": "polygon.not_null_test_gold.fact_traces_full_INPUT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"TYPE <> 'SELFDESTRUCT'\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_INPUT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.test_gold.fact_traces_full where TYPE <> 'SELFDESTRUCT') dbt_subquery\nwhere INPUT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INPUT", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_TYPE.dd106bd70a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TYPE", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_TYPE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_TYPE.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_TYPE.dd106bd70a", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_TYPE"], "alias": "fact_traces_full_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.9443786, "relation_name": "polygon.not_null_test_gold.fact_traces_full_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TYPE", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_ADDRESS.daabd36c03": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRACE_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_TRACE_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_TRACE_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_ADDRESS.daabd36c03", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_TRACE_ADDRESS"], "alias": "fact_traces_full_TRACE_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.9464955, "relation_name": "polygon.not_null_test_gold.fact_traces_full_TRACE_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_TRACE_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere TRACE_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRACE_ADDRESS", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_SUB_TRACES.0335817c13": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SUB_TRACES", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_SUB_TRACES", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_SUB_TRACES.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_SUB_TRACES.0335817c13", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_SUB_TRACES"], "alias": "fact_traces_full_SUB_TRACES", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.9485707, "relation_name": "polygon.not_null_test_gold.fact_traces_full_SUB_TRACES", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_SUB_TRACES.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere SUB_TRACES is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SUB_TRACES", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE.a5c2d5cb74": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VALUE", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_VALUE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_VALUE.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE.a5c2d5cb74", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_VALUE"], "alias": "fact_traces_full_VALUE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.950664, "relation_name": "polygon.not_null_test_gold.fact_traces_full_VALUE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_VALUE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere VALUE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VALUE", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_PRECISE_RAW.d1e83172a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VALUE_PRECISE_RAW", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_VALUE_PRECISE_RAW", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_VALUE_PRECISE_RAW.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_PRECISE_RAW.d1e83172a7", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_VALUE_PRECISE_RAW"], "alias": "fact_traces_full_VALUE_PRECISE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.952736, "relation_name": "polygon.not_null_test_gold.fact_traces_full_VALUE_PRECISE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_VALUE_PRECISE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere VALUE_PRECISE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VALUE_PRECISE_RAW", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_PRECISE.f5a509ff49": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VALUE_PRECISE", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_VALUE_PRECISE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_VALUE_PRECISE.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_PRECISE.f5a509ff49", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_VALUE_PRECISE"], "alias": "fact_traces_full_VALUE_PRECISE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.9551196, "relation_name": "polygon.not_null_test_gold.fact_traces_full_VALUE_PRECISE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_VALUE_PRECISE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere VALUE_PRECISE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VALUE_PRECISE", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_HEX.1a5a1ee8a5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VALUE_HEX", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_VALUE_HEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_VALUE_HEX.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_HEX.1a5a1ee8a5", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_VALUE_HEX"], "alias": "fact_traces_full_VALUE_HEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.9571934, "relation_name": "polygon.not_null_test_gold.fact_traces_full_VALUE_HEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_VALUE_HEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere VALUE_HEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VALUE_HEX", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_ORIGIN_FROM_ADDRESS.8987e52474": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_ORIGIN_FROM_ADDRESS.8987e52474", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_ORIGIN_FROM_ADDRESS"], "alias": "fact_traces_full_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.959266, "relation_name": "polygon.not_null_test_gold.fact_traces_full_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_ORIGIN_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_ORIGIN_FUNCTION_SIGNATURE.d3332ad3dd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_ORIGIN_FUNCTION_SIGNATURE.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_ORIGIN_FUNCTION_SIGNATURE.d3332ad3dd", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_ORIGIN_FUNCTION_SIGNATURE"], "alias": "fact_traces_full_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.9613538, "relation_name": "polygon.not_null_test_gold.fact_traces_full_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_ORIGIN_FUNCTION_SIGNATURE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_SUCCEEDED.3fd972f5b7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRACE_SUCCEEDED", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_TRACE_SUCCEEDED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_TRACE_SUCCEEDED.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_SUCCEEDED.3fd972f5b7", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_TRACE_SUCCEEDED"], "alias": "fact_traces_full_TRACE_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.9634042, "relation_name": "polygon.not_null_test_gold.fact_traces_full_TRACE_SUCCEEDED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_TRACE_SUCCEEDED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere TRACE_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRACE_SUCCEEDED", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_SUCCEEDED.217432b07d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_TX_SUCCEEDED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_TX_SUCCEEDED.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_SUCCEEDED.217432b07d", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_TX_SUCCEEDED"], "alias": "fact_traces_full_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.9654593, "relation_name": "polygon.not_null_test_gold.fact_traces_full_TX_SUCCEEDED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_TX_SUCCEEDED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_SUCCEEDED", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_FACT_TRACES_ID.abf9596ec6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FACT_TRACES_ID", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_FACT_TRACES_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_FACT_TRACES_ID.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_FACT_TRACES_ID.abf9596ec6", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_FACT_TRACES_ID"], "alias": "fact_traces_full_FACT_TRACES_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.9677851, "relation_name": "polygon.not_null_test_gold.fact_traces_full_FACT_TRACES_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_FACT_TRACES_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere FACT_TRACES_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FACT_TRACES_ID", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_INSERTED_TIMESTAMP.b2ca0ceed2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_INSERTED_TIMESTAMP.b2ca0ceed2", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_INSERTED_TIMESTAMP"], "alias": "fact_traces_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.9698427, "relation_name": "polygon.not_null_test_gold.fact_traces_full_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_INSERTED_TIMESTAMP__hour__2.eae85b300c": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_02e1b108e1592de71e24bc0769d40b4f.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_INSERTED_TIMESTAMP__hour__2.eae85b300c", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_INSERTED_TIMESTAMP__hour__2"], "alias": "fact_traces_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_02e1b108e1592de71e24bc0769d40b4f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_02e1b108e1592de71e24bc0769d40b4f", "store_failures": true}, "created_at": 1764018438.9719367, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_traces_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_02e1b108e1592de71e24bc0769d40b4f\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/dbt_expectations_expect_row_va_02e1b108e1592de71e24bc0769d40b4f.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_traces_full\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__fact_traces_full_MODIFIED_TIMESTAMP.3f799b0371": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_traces_full_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_traces_full_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_traces_full_MODIFIED_TIMESTAMP.3f799b0371", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "not_null_test_gold__fact_traces_full_MODIFIED_TIMESTAMP"], "alias": "fact_traces_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018438.979645, "relation_name": "polygon.not_null_test_gold.fact_traces_full_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/not_null_test_gold__fact_traces_full_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_traces_full\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_MODIFIED_TIMESTAMP__hour__2.d9cadbf789": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_1b5fcbebdd9169acc8b5b44ee592216e.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_MODIFIED_TIMESTAMP__hour__2.d9cadbf789", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_MODIFIED_TIMESTAMP__hour__2"], "alias": "fact_traces_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_1b5fcbebdd9169acc8b5b44ee592216e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_1b5fcbebdd9169acc8b5b44ee592216e", "store_failures": true}, "created_at": 1764018438.9818323, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_traces_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_1b5fcbebdd9169acc8b5b44ee592216e\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/dbt_expectations_expect_row_va_1b5fcbebdd9169acc8b5b44ee592216e.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_traces_full\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_traces_full_TX_HASH__TRACE_INDEX.7f6d6a8ebe": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["TX_HASH", "TRACE_INDEX"], "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__fact_traces_full_TX_HASH__TRACE_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_569b689640ad62236ec31ea5de999945.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_traces_full_TX_HASH__TRACE_INDEX.7f6d6a8ebe", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "dbt_utils_unique_combination_of_columns_test_gold__fact_traces_full_TX_HASH__TRACE_INDEX"], "alias": "fact_traces_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_569b689640ad62236ec31ea5de999945", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_569b689640ad62236ec31ea5de999945", "store_failures": true}, "created_at": 1764018438.9894035, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.fact_traces_full_TX_HASH", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_569b689640ad62236ec31ea5de999945\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/dbt_utils_unique_combination_o_569b689640ad62236ec31ea5de999945.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n TX_HASH, TRACE_INDEX\n from polygon.test_gold.fact_traces_full\n group by TX_HASH, TRACE_INDEX\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_traces_full_TRACE_INDEX__TX_HASH.4c79dbc511": {"test_metadata": {"name": "sequence_gaps", "kwargs": {"partition_by": ["TX_HASH"], "column_name": "TRACE_INDEX", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_sequence_gaps_test_gold", "name": "fsc_evm_sequence_gaps_test_gold__fact_traces_full_TRACE_INDEX__TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_sequence_gaps_test_gol_60d6d5bc589484316fd592abbf84c62b.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_traces_full_TRACE_INDEX__TX_HASH.4c79dbc511", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "fsc_evm_sequence_gaps_test_gold__fact_traces_full_TRACE_INDEX__TX_HASH"], "alias": "fact_traces_full_TRACE_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "fsc_evm_sequence_gaps_test_gol_60d6d5bc589484316fd592abbf84c62b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "BLOCK_TIMESTAMP < CURRENT_DATE - 1 AND TX_HASH IS NOT NULL", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "BLOCK_TIMESTAMP < CURRENT_DATE - 1 AND TX_HASH IS NOT NULL", "alias": "fsc_evm_sequence_gaps_test_gol_60d6d5bc589484316fd592abbf84c62b", "store_failures": true}, "created_at": 1764018438.9954617, "relation_name": "polygon.fsc_evm_sequence_gaps_test_gold.fact_traces_full_TRACE_INDEX", "raw_code": "{{ fsc_evm.test_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(where=\"BLOCK_TIMESTAMP < CURRENT_DATE - 1 AND TX_HASH IS NOT NULL\",alias=\"fsc_evm_sequence_gaps_test_gol_60d6d5bc589484316fd592abbf84c62b\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/fsc_evm_sequence_gaps_test_gol_60d6d5bc589484316fd592abbf84c62b.sql", "compiled": true, "compiled_code": "\n\n\nWITH source AS (\n SELECT\n TX_HASH,\n TRACE_INDEX,\n LAG(\n TRACE_INDEX,\n 1\n ) over (\n PARTITION BY TX_HASH\n ORDER BY\n TRACE_INDEX ASC\n ) AS prev_TRACE_INDEX\n FROM\n (select * from polygon.test_gold.fact_traces_full where BLOCK_TIMESTAMP < CURRENT_DATE - 1 AND TX_HASH IS NOT NULL) dbt_subquery\n)\nSELECT\n TX_HASH,\n prev_TRACE_INDEX,\n TRACE_INDEX,\n TRACE_INDEX - prev_TRACE_INDEX\n - 1 AS gap\nFROM\n source\nWHERE\n TRACE_INDEX - prev_TRACE_INDEX <> 1\n\nORDER BY\n gap DESC \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.txs_have_traces_test_gold__fact_traces_full_ref_test_gold__fact_transactions_full_.1c3ecccef2": {"test_metadata": {"name": "txs_have_traces", "kwargs": {"transactions_model": "ref('test_gold__fact_transactions_full')", "model": "{{ get_where_subquery(ref('test_gold__fact_traces_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "txs_have_traces_test_gold", "name": "txs_have_traces_test_gold__fact_traces_full_ref_test_gold__fact_transactions_full_", "resource_type": "test", "package_name": "fsc_evm", "path": "txs_have_traces_test_gold__fac_a4364fad744c60160042b3da6535d812.sql", "original_file_path": "models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml", "unique_id": "test.fsc_evm.txs_have_traces_test_gold__fact_traces_full_ref_test_gold__fact_transactions_full_.1c3ecccef2", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "traces", "txs_have_traces_test_gold__fact_traces_full_ref_test_gold__fact_transactions_full_"], "alias": "fact_traces_full_ref_test_gold", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "txs_have_traces_test_gold__fac_a4364fad744c60160042b3da6535d812", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "txs_have_traces_test_gold__fac_a4364fad744c60160042b3da6535d812", "store_failures": true}, "created_at": 1764018439.0404665, "relation_name": "polygon.txs_have_traces_test_gold.fact_traces_full_ref_test_gold", "raw_code": "{{ test_txs_have_traces(**_dbt_generic_test_kwargs) }}{{ config(alias=\"txs_have_traces_test_gold__fac_a4364fad744c60160042b3da6535d812\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}, {"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_txs_have_traces", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full", "model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/traces/test_gold__fact_traces_full.yml/txs_have_traces_test_gold__fac_a4364fad744c60160042b3da6535d812.sql", "compiled": true, "compiled_code": "\n\n\n\nWITH txs_with_traces AS (\n\nSELECT\n block_number,\n tx_hash,\n tx_position\nFROM\n polygon.test_gold.fact_transactions_full\n txs\n LEFT JOIN polygon.test_gold.fact_traces_full\n tr USING (\n block_number,\n tx_hash,\n tx_position\n )\nWHERE\n (\n tr.tx_hash IS NULL\n OR tr.tx_position IS NULL\n OR tr.block_number IS NULL\n )\n AND txs.from_address <> '0x0000000000000000000000000000000000000000'\n AND txs.to_address <> '0x0000000000000000000000000000000000000000' \n \n \n)\n\nSELECT\n *\nFROM\n txs_with_traces\nWHERE\n (\n SELECT\n COUNT(DISTINCT block_number) >= 0\n FROM\n txs_with_traces\n )\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_traces_full", "attached_node": "model.fsc_evm.test_gold__fact_traces_full"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_BLOCK_NUMBER.ab8d5d8e4c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_transfers_recent_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_BLOCK_NUMBER.ab8d5d8e4c", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_recent_BLOCK_NUMBER"], "alias": "ez_token_transfers_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.0878723, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_recent_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/not_null_test_gold__ez_token_transfers_recent_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_recent\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.4d67ac0920": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_7322b2287e658a29a7a91ff2b3a3db60.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.4d67ac0920", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "ez_token_transfers_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7322b2287e658a29a7a91ff2b3a3db60", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_7322b2287e658a29a7a91ff2b3a3db60", "store_failures": true}, "created_at": 1764018439.0904179, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_token_transfers_recent_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7322b2287e658a29a7a91ff2b3a3db60\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/dbt_expectations_expect_column_7322b2287e658a29a7a91ff2b3a3db60.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_STANDARD' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_IS_VERIFIED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECIMALS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_AMOUNT_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_TOKEN_TRANSFERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP.f39a6a04de": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP.f39a6a04de", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP"], "alias": "ez_token_transfers_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.0951946, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_recent_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/not_null_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_recent\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP__hour__3.cb9fd0826a": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 3, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP__hour__3", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_22bdc47ac73d672405268458b815a929.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP__hour__3.cb9fd0826a", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP__hour__3"], "alias": "ez_token_transfers_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_22bdc47ac73d672405268458b815a929", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_22bdc47ac73d672405268458b815a929", "store_failures": true}, "created_at": 1764018439.0978012, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_token_transfers_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_22bdc47ac73d672405268458b815a929\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/dbt_expectations_expect_row_va_22bdc47ac73d672405268458b815a929.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.ez_token_transfers_recent\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.cbfe040895": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ", "TIMESTAMP_LTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_b7ff8eb43b19fe0f67258010ca0784dd.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.cbfe040895", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ"], "alias": "ez_token_transfers_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b7ff8eb43b19fe0f67258010ca0784dd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b7ff8eb43b19fe0f67258010ca0784dd", "store_failures": true}, "created_at": 1764018439.1056054, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_token_transfers_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b7ff8eb43b19fe0f67258010ca0784dd\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/dbt_expectations_expect_column_b7ff8eb43b19fe0f67258010ca0784dd.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_STANDARD' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_IS_VERIFIED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECIMALS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_AMOUNT_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_TOKEN_TRANSFERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ', 'TIMESTAMP_LTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_TX_HASH.d65cfc264e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_recent_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_transfers_recent_TX_HASH.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_TX_HASH.d65cfc264e", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_recent_TX_HASH"], "alias": "ez_token_transfers_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.1102347, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_recent_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/not_null_test_gold__ez_token_transfers_recent_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_recent\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.403a0d410c": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_58bae5833ee99657dbacb8063867a51a.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.403a0d410c", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "ez_token_transfers_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_58bae5833ee99657dbacb8063867a51a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_58bae5833ee99657dbacb8063867a51a", "store_failures": true}, "created_at": 1764018439.112397, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_token_transfers_recent_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_58bae5833ee99657dbacb8063867a51a\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/dbt_expectations_expect_column_58bae5833ee99657dbacb8063867a51a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_token_transfers_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS.a4658e804e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS.a4658e804e", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS"], "alias": "ez_token_transfers_recent_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.1176054, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_recent_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/not_null_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_recent\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.53adf4570d": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_32e711206d33dee0b7dcd19e5e22a585.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.53adf4570d", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_token_transfers_recent_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_32e711206d33dee0b7dcd19e5e22a585", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_32e711206d33dee0b7dcd19e5e22a585", "store_failures": true}, "created_at": 1764018439.1197686, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_token_transfers_recent_CONTRACT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_32e711206d33dee0b7dcd19e5e22a585\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/dbt_expectations_expect_column_32e711206d33dee0b7dcd19e5e22a585.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_token_transfers_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_FROM_ADDRESS.2c69eb9d6a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_recent_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_transfers_recent_FROM_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_FROM_ADDRESS.2c69eb9d6a", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_recent_FROM_ADDRESS"], "alias": "ez_token_transfers_recent_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.125328, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_recent_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/not_null_test_gold__ez_token_transfers_recent_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_recent\nwhere FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FROM_ADDRESS", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.a5a0db81dc": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_579579e42cc525f97ef2b869523887ca.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.a5a0db81dc", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_token_transfers_recent_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_579579e42cc525f97ef2b869523887ca", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_579579e42cc525f97ef2b869523887ca", "store_failures": true}, "created_at": 1764018439.1275246, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_token_transfers_recent_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_579579e42cc525f97ef2b869523887ca\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/dbt_expectations_expect_column_579579e42cc525f97ef2b869523887ca.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_token_transfers_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FROM_ADDRESS", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_TO_ADDRESS.a5feb6a9bf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TO_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_recent_TO_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_transfers_recent_TO_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_TO_ADDRESS.a5feb6a9bf", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_recent_TO_ADDRESS"], "alias": "ez_token_transfers_recent_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.1335518, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_recent_TO_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/not_null_test_gold__ez_token_transfers_recent_TO_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_recent\nwhere TO_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TO_ADDRESS", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.cd3a28165e": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TO_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_20e4e86d9c5090e75899b84d7aae9a3a.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.cd3a28165e", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_token_transfers_recent_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_20e4e86d9c5090e75899b84d7aae9a3a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_20e4e86d9c5090e75899b84d7aae9a3a", "store_failures": true}, "created_at": 1764018439.1360831, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_token_transfers_recent_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_20e4e86d9c5090e75899b84d7aae9a3a\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/dbt_expectations_expect_column_20e4e86d9c5090e75899b84d7aae9a3a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_token_transfers_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TO_ADDRESS", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_RAW_AMOUNT.62229d27e9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "RAW_AMOUNT", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_recent_RAW_AMOUNT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_transfers_recent_RAW_AMOUNT.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_RAW_AMOUNT.62229d27e9", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_recent_RAW_AMOUNT"], "alias": "ez_token_transfers_recent_RAW_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.1422787, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_recent_RAW_AMOUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/not_null_test_gold__ez_token_transfers_recent_RAW_AMOUNT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_recent\nwhere RAW_AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "RAW_AMOUNT", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_RAW_AMOUNT__NUMBER__FLOAT.0ce022106e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "RAW_AMOUNT", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_RAW_AMOUNT__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_9caf6b4750adb2bf8679d222733c521c.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_RAW_AMOUNT__NUMBER__FLOAT.0ce022106e", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_RAW_AMOUNT__NUMBER__FLOAT"], "alias": "ez_token_transfers_recent_RAW_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9caf6b4750adb2bf8679d222733c521c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_9caf6b4750adb2bf8679d222733c521c", "store_failures": true}, "created_at": 1764018439.1446283, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_token_transfers_recent_RAW_AMOUNT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9caf6b4750adb2bf8679d222733c521c\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/dbt_expectations_expect_column_9caf6b4750adb2bf8679d222733c521c.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_STANDARD' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_IS_VERIFIED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECIMALS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_AMOUNT_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_TOKEN_TRANSFERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'RAW_AMOUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "RAW_AMOUNT", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID.e204f7c6ee": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EZ_TOKEN_TRANSFERS_ID", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_t_b935cbf9164babe0661f62ef604a08cf.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID.e204f7c6ee", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID"], "alias": "ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_token_t_b935cbf9164babe0661f62ef604a08cf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_token_t_b935cbf9164babe0661f62ef604a08cf", "store_failures": true}, "created_at": 1764018439.1499104, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_token_t_b935cbf9164babe0661f62ef604a08cf\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/not_null_test_gold__ez_token_t_b935cbf9164babe0661f62ef604a08cf.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_recent\nwhere EZ_TOKEN_TRANSFERS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EZ_TOKEN_TRANSFERS_ID", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_ORIGIN_FUNCTION_SIGNATURE.ee7a08f37f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_recent_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_t_aecdac1ba638e899231c8990b583886d.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_ORIGIN_FUNCTION_SIGNATURE.ee7a08f37f", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_recent_ORIGIN_FUNCTION_SIGNATURE"], "alias": "ez_token_transfers_recent_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_token_t_aecdac1ba638e899231c8990b583886d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_token_t_aecdac1ba638e899231c8990b583886d", "store_failures": true}, "created_at": 1764018439.1524186, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_recent_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_token_t_aecdac1ba638e899231c8990b583886d\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/not_null_test_gold__ez_token_t_aecdac1ba638e899231c8990b583886d.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_recent\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_ORIGIN_FROM_ADDRESS.c65a204117": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_recent_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_t_4df8d43a865b59f93cae00476c9a79d0.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_ORIGIN_FROM_ADDRESS.c65a204117", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_recent_ORIGIN_FROM_ADDRESS"], "alias": "ez_token_transfers_recent_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_token_t_4df8d43a865b59f93cae00476c9a79d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_token_t_4df8d43a865b59f93cae00476c9a79d0", "store_failures": true}, "created_at": 1764018439.1546104, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_recent_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_token_t_4df8d43a865b59f93cae00476c9a79d0\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/not_null_test_gold__ez_token_t_4df8d43a865b59f93cae00476c9a79d0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_recent\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.85e49c2533": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_0114451fb5be083caa2fd6fff9f98cde.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.85e49c2533", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_token_transfers_recent_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0114451fb5be083caa2fd6fff9f98cde", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0114451fb5be083caa2fd6fff9f98cde", "store_failures": true}, "created_at": 1764018439.1567943, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_token_transfers_recent_ORIGIN_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0114451fb5be083caa2fd6fff9f98cde\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/dbt_expectations_expect_column_0114451fb5be083caa2fd6fff9f98cde.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_token_transfers_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.f542f4cc0f": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_53cf61979667caf7fe38431d8b6c8a18.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.f542f4cc0f", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_token_transfers_recent_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_53cf61979667caf7fe38431d8b6c8a18", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_53cf61979667caf7fe38431d8b6c8a18", "store_failures": true}, "created_at": 1764018439.1627617, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_token_transfers_recent_ORIGIN_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_53cf61979667caf7fe38431d8b6c8a18\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/dbt_expectations_expect_column_53cf61979667caf7fe38431d8b6c8a18.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_token_transfers_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID.36d8d8661a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["EZ_TOKEN_TRANSFERS_ID"], "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_02b7956e4b364da1022e83c05ae05a0e.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID.36d8d8661a", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_utils_unique_combination_of_columns_test_gold__ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID"], "alias": "ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_02b7956e4b364da1022e83c05ae05a0e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_02b7956e4b364da1022e83c05ae05a0e", "store_failures": true}, "created_at": 1764018439.1681628, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_02b7956e4b364da1022e83c05ae05a0e\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_recent.yml/dbt_utils_unique_combination_o_02b7956e4b364da1022e83c05ae05a0e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n EZ_TOKEN_TRANSFERS_ID\n from polygon.test_gold.ez_token_transfers_recent\n group by EZ_TOKEN_TRANSFERS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_token_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_recent"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_BLOCK_NUMBER.c281a15c7c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_transfers_full_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_BLOCK_NUMBER.c281a15c7c", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_full_BLOCK_NUMBER"], "alias": "ez_token_transfers_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.1759129, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_full_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/not_null_test_gold__ez_token_transfers_full_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_full\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.cf7a275c18": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_aa9d26cdf923dde3dddbc808a0f4ff40.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.cf7a275c18", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "ez_token_transfers_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_aa9d26cdf923dde3dddbc808a0f4ff40", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_aa9d26cdf923dde3dddbc808a0f4ff40", "store_failures": true}, "created_at": 1764018439.1780856, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_token_transfers_full_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_aa9d26cdf923dde3dddbc808a0f4ff40\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/dbt_expectations_expect_column_aa9d26cdf923dde3dddbc808a0f4ff40.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_STANDARD' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_IS_VERIFIED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECIMALS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_AMOUNT_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_TOKEN_TRANSFERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP.3015447008": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP.3015447008", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP"], "alias": "ez_token_transfers_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.1830592, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_full_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/not_null_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_full\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP__hour__3.186f75bd44": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 3, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP__hour__3", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_7ea4dee114c087957e804d6e035de212.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP__hour__3.186f75bd44", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP__hour__3"], "alias": "ez_token_transfers_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_7ea4dee114c087957e804d6e035de212", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_7ea4dee114c087957e804d6e035de212", "store_failures": true}, "created_at": 1764018439.1852846, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_token_transfers_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_7ea4dee114c087957e804d6e035de212\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/dbt_expectations_expect_row_va_7ea4dee114c087957e804d6e035de212.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.ez_token_transfers_full\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.5025592820": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ", "TIMESTAMP_LTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_529f2796ee696f9ac38c027622ed8bcf.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.5025592820", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ"], "alias": "ez_token_transfers_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_529f2796ee696f9ac38c027622ed8bcf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_529f2796ee696f9ac38c027622ed8bcf", "store_failures": true}, "created_at": 1764018439.1933415, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_token_transfers_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_529f2796ee696f9ac38c027622ed8bcf\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/dbt_expectations_expect_column_529f2796ee696f9ac38c027622ed8bcf.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_STANDARD' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_IS_VERIFIED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECIMALS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_AMOUNT_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_TOKEN_TRANSFERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ', 'TIMESTAMP_LTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_TX_HASH.bf35dc7aec": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_full_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_transfers_full_TX_HASH.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_TX_HASH.bf35dc7aec", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_full_TX_HASH"], "alias": "ez_token_transfers_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.1987154, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_full_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/not_null_test_gold__ez_token_transfers_full_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_full\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.dde3475101": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_8fd92657c3dcf85d9a62dfb472a38d6a.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.dde3475101", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "ez_token_transfers_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8fd92657c3dcf85d9a62dfb472a38d6a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_8fd92657c3dcf85d9a62dfb472a38d6a", "store_failures": true}, "created_at": 1764018439.2010424, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_token_transfers_full_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8fd92657c3dcf85d9a62dfb472a38d6a\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/dbt_expectations_expect_column_8fd92657c3dcf85d9a62dfb472a38d6a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_token_transfers_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS.8384cb648a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS.8384cb648a", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS"], "alias": "ez_token_transfers_full_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.2067993, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_full_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/not_null_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_full\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.f04c6eba97": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_03120d0e2003b00e1b3c3328c97cdb5d.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.f04c6eba97", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_token_transfers_full_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_03120d0e2003b00e1b3c3328c97cdb5d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_03120d0e2003b00e1b3c3328c97cdb5d", "store_failures": true}, "created_at": 1764018439.2090557, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_token_transfers_full_CONTRACT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_03120d0e2003b00e1b3c3328c97cdb5d\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/dbt_expectations_expect_column_03120d0e2003b00e1b3c3328c97cdb5d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_token_transfers_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_FROM_ADDRESS.f2cd4b35a9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_full_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_transfers_full_FROM_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_FROM_ADDRESS.f2cd4b35a9", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_full_FROM_ADDRESS"], "alias": "ez_token_transfers_full_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.2148407, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_full_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/not_null_test_gold__ez_token_transfers_full_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_full\nwhere FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FROM_ADDRESS", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.c61b6f0c34": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_dbf27ba943a06c39d78a1b67dc1dde13.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.c61b6f0c34", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_token_transfers_full_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_dbf27ba943a06c39d78a1b67dc1dde13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_dbf27ba943a06c39d78a1b67dc1dde13", "store_failures": true}, "created_at": 1764018439.2170572, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_token_transfers_full_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_dbf27ba943a06c39d78a1b67dc1dde13\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/dbt_expectations_expect_column_dbf27ba943a06c39d78a1b67dc1dde13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_token_transfers_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FROM_ADDRESS", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_TO_ADDRESS.50fe049e34": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TO_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_full_TO_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_transfers_full_TO_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_TO_ADDRESS.50fe049e34", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_full_TO_ADDRESS"], "alias": "ez_token_transfers_full_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.2227466, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_full_TO_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/not_null_test_gold__ez_token_transfers_full_TO_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_full\nwhere TO_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TO_ADDRESS", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_TO_ADDRESS__0_xX_0_9a_fA_F_.4e9427647b": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TO_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_5419520ce8ad3ae01f53b6f1a36c273e.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_TO_ADDRESS__0_xX_0_9a_fA_F_.4e9427647b", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_token_transfers_full_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5419520ce8ad3ae01f53b6f1a36c273e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_5419520ce8ad3ae01f53b6f1a36c273e", "store_failures": true}, "created_at": 1764018439.224989, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_token_transfers_full_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5419520ce8ad3ae01f53b6f1a36c273e\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/dbt_expectations_expect_column_5419520ce8ad3ae01f53b6f1a36c273e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_token_transfers_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TO_ADDRESS", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_RAW_AMOUNT.ca974f9bde": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "RAW_AMOUNT", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_full_RAW_AMOUNT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_transfers_full_RAW_AMOUNT.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_RAW_AMOUNT.ca974f9bde", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_full_RAW_AMOUNT"], "alias": "ez_token_transfers_full_RAW_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.2306507, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_full_RAW_AMOUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/not_null_test_gold__ez_token_transfers_full_RAW_AMOUNT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_full\nwhere RAW_AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "RAW_AMOUNT", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_RAW_AMOUNT__NUMBER__FLOAT.e29960d304": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "RAW_AMOUNT", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_RAW_AMOUNT__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_e638f4f0c82fdd4baa1810f0c19da7fc.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_RAW_AMOUNT__NUMBER__FLOAT.e29960d304", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_RAW_AMOUNT__NUMBER__FLOAT"], "alias": "ez_token_transfers_full_RAW_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e638f4f0c82fdd4baa1810f0c19da7fc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_e638f4f0c82fdd4baa1810f0c19da7fc", "store_failures": true}, "created_at": 1764018439.2328732, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_token_transfers_full_RAW_AMOUNT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e638f4f0c82fdd4baa1810f0c19da7fc\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/dbt_expectations_expect_column_e638f4f0c82fdd4baa1810f0c19da7fc.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_STANDARD' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_IS_VERIFIED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECIMALS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_AMOUNT_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_TOKEN_TRANSFERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'RAW_AMOUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "RAW_AMOUNT", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID.dbb70e1221": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EZ_TOKEN_TRANSFERS_ID", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_t_726a6d1abd898df2274574e6cdf12928.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID.dbb70e1221", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID"], "alias": "ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_token_t_726a6d1abd898df2274574e6cdf12928", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_token_t_726a6d1abd898df2274574e6cdf12928", "store_failures": true}, "created_at": 1764018439.2378006, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_token_t_726a6d1abd898df2274574e6cdf12928\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/not_null_test_gold__ez_token_t_726a6d1abd898df2274574e6cdf12928.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_full\nwhere EZ_TOKEN_TRANSFERS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EZ_TOKEN_TRANSFERS_ID", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_ORIGIN_FUNCTION_SIGNATURE.de76042d6e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_full_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_t_c9a2bebcdb0d029564f0328615cc135c.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_ORIGIN_FUNCTION_SIGNATURE.de76042d6e", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_full_ORIGIN_FUNCTION_SIGNATURE"], "alias": "ez_token_transfers_full_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_token_t_c9a2bebcdb0d029564f0328615cc135c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_token_t_c9a2bebcdb0d029564f0328615cc135c", "store_failures": true}, "created_at": 1764018439.2399788, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_full_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_token_t_c9a2bebcdb0d029564f0328615cc135c\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/not_null_test_gold__ez_token_t_c9a2bebcdb0d029564f0328615cc135c.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_full\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS.95a4909c44": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS.95a4909c44", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "not_null_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS"], "alias": "ez_token_transfers_full_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.24243, "relation_name": "polygon.not_null_test_gold.ez_token_transfers_full_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/not_null_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_token_transfers_full\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.0056122d14": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_5c0e48742d56139a469cc686e5c69eff.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.0056122d14", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_token_transfers_full_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5c0e48742d56139a469cc686e5c69eff", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_5c0e48742d56139a469cc686e5c69eff", "store_failures": true}, "created_at": 1764018439.2445562, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_token_transfers_full_ORIGIN_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5c0e48742d56139a469cc686e5c69eff\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/dbt_expectations_expect_column_5c0e48742d56139a469cc686e5c69eff.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_token_transfers_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.e48a268383": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_d776d5c872a4ee65ca6c232209f70a1d.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.e48a268383", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_token_transfers_full_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d776d5c872a4ee65ca6c232209f70a1d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d776d5c872a4ee65ca6c232209f70a1d", "store_failures": true}, "created_at": 1764018439.2508128, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_token_transfers_full_ORIGIN_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d776d5c872a4ee65ca6c232209f70a1d\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/dbt_expectations_expect_column_d776d5c872a4ee65ca6c232209f70a1d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_token_transfers_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID.b52f0fec49": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["EZ_TOKEN_TRANSFERS_ID"], "model": "{{ get_where_subquery(ref('test_gold__ez_token_transfers_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_8a0fdb2793aa89a957770b7ac4acd3c0.sql", "original_file_path": "models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID.b52f0fec49", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_token_transfers", "dbt_utils_unique_combination_of_columns_test_gold__ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID"], "alias": "ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8a0fdb2793aa89a957770b7ac4acd3c0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8a0fdb2793aa89a957770b7ac4acd3c0", "store_failures": true}, "created_at": 1764018439.2565415, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8a0fdb2793aa89a957770b7ac4acd3c0\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_token_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_token_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_token_transfers/test_gold__ez_token_transfers_full.yml/dbt_utils_unique_combination_o_8a0fdb2793aa89a957770b7ac4acd3c0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n EZ_TOKEN_TRANSFERS_ID\n from polygon.test_gold.ez_token_transfers_full\n group by EZ_TOKEN_TRANSFERS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_token_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_token_transfers_full"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_BLOCK_NUMBER.76acdf0f28": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_full_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_BLOCK_NUMBER.76acdf0f28", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_full_BLOCK_NUMBER"], "alias": "fact_event_logs_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.264233, "relation_name": "polygon.not_null_test_gold.fact_event_logs_full_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/not_null_test_gold__fact_event_logs_full_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_full\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_BLOCK_NUMBER__NUMBER.8148040748": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_BLOCK_NUMBER__NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_aa9cce9090b02aeca710fe53d08f997d.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_BLOCK_NUMBER__NUMBER.8148040748", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_BLOCK_NUMBER__NUMBER"], "alias": "fact_event_logs_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_aa9cce9090b02aeca710fe53d08f997d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_aa9cce9090b02aeca710fe53d08f997d", "store_failures": true}, "created_at": 1764018439.2664936, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_event_logs_full_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_aa9cce9090b02aeca710fe53d08f997d\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/dbt_expectations_expect_column_aa9cce9090b02aeca710fe53d08f997d.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_0' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_1' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_2' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_3' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_EVENT_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP.32a4782af7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP.32a4782af7", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP"], "alias": "fact_event_logs_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.2717288, "relation_name": "polygon.not_null_test_gold.fact_event_logs_full_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/not_null_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_full\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP__hour__2.677cfb4387": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_309c47e6cd256e89d26b475b25da36ca.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP__hour__2.677cfb4387", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP__hour__2"], "alias": "fact_event_logs_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_309c47e6cd256e89d26b475b25da36ca", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_309c47e6cd256e89d26b475b25da36ca", "store_failures": true}, "created_at": 1764018439.2739997, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_event_logs_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_309c47e6cd256e89d26b475b25da36ca\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/dbt_expectations_expect_row_va_309c47e6cd256e89d26b475b25da36ca.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_event_logs_full\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.461cb228ca": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_03a87266c013daf1e00b808bac7f50f6.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.461cb228ca", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "fact_event_logs_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_03a87266c013daf1e00b808bac7f50f6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_03a87266c013daf1e00b808bac7f50f6", "store_failures": true}, "created_at": 1764018439.2831745, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_event_logs_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_03a87266c013daf1e00b808bac7f50f6\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/dbt_expectations_expect_column_03a87266c013daf1e00b808bac7f50f6.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_0' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_1' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_2' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_3' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_EVENT_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_HASH.e76669565b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_full_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_full_TX_HASH.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_HASH.e76669565b", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_full_TX_HASH"], "alias": "fact_event_logs_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.2885747, "relation_name": "polygon.not_null_test_gold.fact_event_logs_full_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/not_null_test_gold__fact_event_logs_full_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_full\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_TX_HASH__0_xX_0_9a_fA_F_.13ee5cd65b": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_99aa5a4cac774361fd4aaaa0c3eabc03.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_TX_HASH__0_xX_0_9a_fA_F_.13ee5cd65b", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "fact_event_logs_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_99aa5a4cac774361fd4aaaa0c3eabc03", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_99aa5a4cac774361fd4aaaa0c3eabc03", "store_failures": true}, "created_at": 1764018439.2908227, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_event_logs_full_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_99aa5a4cac774361fd4aaaa0c3eabc03\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/dbt_expectations_expect_column_99aa5a4cac774361fd4aaaa0c3eabc03.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_event_logs_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.fsc_utils_tx_block_count_test_gold__fact_event_logs_full_TX_HASH.b31311d808": {"test_metadata": {"name": "tx_block_count", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": "fsc_utils"}, "database": "polygon", "schema": "fsc_utils_tx_block_count_test_gold", "name": "fsc_utils_tx_block_count_test_gold__fact_event_logs_full_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_utils_tx_block_count_test__f288de0c68f06d84409b9537dbba3a83.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.fsc_utils_tx_block_count_test_gold__fact_event_logs_full_TX_HASH.b31311d808", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "fsc_utils_tx_block_count_test_gold__fact_event_logs_full_TX_HASH"], "alias": "fact_event_logs_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "fsc_utils_tx_block_count_test__f288de0c68f06d84409b9537dbba3a83", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "error", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!=0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"severity": "error", "error_if": "!=0", "alias": "fsc_utils_tx_block_count_test__f288de0c68f06d84409b9537dbba3a83", "store_failures": true}, "created_at": 1764018439.2969189, "relation_name": "polygon.fsc_utils_tx_block_count_test_gold.fact_event_logs_full_TX_HASH", "raw_code": "{{ fsc_utils.test_tx_block_count(**_dbt_generic_test_kwargs) }}{{ config(severity=\"error\",error_if=\"!=0\",alias=\"fsc_utils_tx_block_count_test__f288de0c68f06d84409b9537dbba3a83\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_utils.test_tx_block_count", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/fsc_utils_tx_block_count_test__f288de0c68f06d84409b9537dbba3a83.sql", "compiled": true, "compiled_code": "\n\nSELECT \n TX_HASH, \n COUNT(DISTINCT block_number) AS num_blocks\nFROM\n polygon.test_gold.fact_event_logs_full\nGROUP BY TX_HASH\nHAVING num_blocks > 1\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_POSITION.2791b096bd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_full_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_full_TX_POSITION.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_POSITION.2791b096bd", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_full_TX_POSITION"], "alias": "fact_event_logs_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.30303, "relation_name": "polygon.not_null_test_gold.fact_event_logs_full_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/not_null_test_gold__fact_event_logs_full_TX_POSITION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_full\nwhere TX_POSITION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_TX_POSITION__NUMBER__FLOAT.1244edc76e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_TX_POSITION__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_0efaff813b10f54403736a220fa2edd7.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_TX_POSITION__NUMBER__FLOAT.1244edc76e", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_TX_POSITION__NUMBER__FLOAT"], "alias": "fact_event_logs_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0efaff813b10f54403736a220fa2edd7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0efaff813b10f54403736a220fa2edd7", "store_failures": true}, "created_at": 1764018439.3055816, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_event_logs_full_TX_POSITION", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0efaff813b10f54403736a220fa2edd7\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/dbt_expectations_expect_column_0efaff813b10f54403736a220fa2edd7.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_0' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_1' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_2' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_3' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_EVENT_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_POSITION'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_EVENT_INDEX.c6e1f7c07f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_full_EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_full_EVENT_INDEX.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_EVENT_INDEX.c6e1f7c07f", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_full_EVENT_INDEX"], "alias": "fact_event_logs_full_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.3104522, "relation_name": "polygon.not_null_test_gold.fact_event_logs_full_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/not_null_test_gold__fact_event_logs_full_EVENT_INDEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_full\nwhere EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_EVENT_INDEX__NUMBER__FLOAT.ba4706e35d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_EVENT_INDEX__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_0f2d587e4810b4097de3166ccb8e46f9.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_EVENT_INDEX__NUMBER__FLOAT.ba4706e35d", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_EVENT_INDEX__NUMBER__FLOAT"], "alias": "fact_event_logs_full_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0f2d587e4810b4097de3166ccb8e46f9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0f2d587e4810b4097de3166ccb8e46f9", "store_failures": true}, "created_at": 1764018439.3126328, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_event_logs_full_EVENT_INDEX", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0f2d587e4810b4097de3166ccb8e46f9\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/dbt_expectations_expect_column_0f2d587e4810b4097de3166ccb8e46f9.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_0' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_1' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_2' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_3' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_EVENT_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'EVENT_INDEX'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_CONTRACT_ADDRESS.d7ef6c7fb1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_full_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_full_CONTRACT_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_CONTRACT_ADDRESS.d7ef6c7fb1", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_full_CONTRACT_ADDRESS"], "alias": "fact_event_logs_full_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.3177469, "relation_name": "polygon.not_null_test_gold.fact_event_logs_full_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/not_null_test_gold__fact_event_logs_full_CONTRACT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_full\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.e11ba68261": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_da3d70a78297f130823d33cbf52a2dba.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.e11ba68261", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "fact_event_logs_full_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_da3d70a78297f130823d33cbf52a2dba", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_da3d70a78297f130823d33cbf52a2dba", "store_failures": true}, "created_at": 1764018439.3199606, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_event_logs_full_CONTRACT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_da3d70a78297f130823d33cbf52a2dba\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/dbt_expectations_expect_column_da3d70a78297f130823d33cbf52a2dba.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_event_logs_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TOPICS.c0ac9e4c8a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOPICS", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_full_TOPICS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_full_TOPICS.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TOPICS.c0ac9e4c8a", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_full_TOPICS"], "alias": "fact_event_logs_full_TOPICS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.325591, "relation_name": "polygon.not_null_test_gold.fact_event_logs_full_TOPICS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/not_null_test_gold__fact_event_logs_full_TOPICS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_full\nwhere TOPICS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOPICS", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_DATA.d22b95cbe2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DATA", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_full_DATA", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_full_DATA.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_DATA.d22b95cbe2", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_full_DATA"], "alias": "fact_event_logs_full_DATA", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.3277743, "relation_name": "polygon.not_null_test_gold.fact_event_logs_full_DATA", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/not_null_test_gold__fact_event_logs_full_DATA.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_full\nwhere DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DATA", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_EVENT_REMOVED.3234e54d57": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_REMOVED", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_full_EVENT_REMOVED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_full_EVENT_REMOVED.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_EVENT_REMOVED.3234e54d57", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_full_EVENT_REMOVED"], "alias": "fact_event_logs_full_EVENT_REMOVED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.3299422, "relation_name": "polygon.not_null_test_gold.fact_event_logs_full_EVENT_REMOVED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/not_null_test_gold__fact_event_logs_full_EVENT_REMOVED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_full\nwhere EVENT_REMOVED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_REMOVED", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS.3bc67218ac": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS.3bc67218ac", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS"], "alias": "fact_event_logs_full_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.3320847, "relation_name": "polygon.not_null_test_gold.fact_event_logs_full_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/not_null_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_full\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.eb95035ba4": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_b18f73e41b0b1e82852c48c82061510b.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.eb95035ba4", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "fact_event_logs_full_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b18f73e41b0b1e82852c48c82061510b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b18f73e41b0b1e82852c48c82061510b", "store_failures": true}, "created_at": 1764018439.3342314, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_event_logs_full_ORIGIN_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b18f73e41b0b1e82852c48c82061510b\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/dbt_expectations_expect_column_b18f73e41b0b1e82852c48c82061510b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_event_logs_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.356e5b7689": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_ae3fcd335efa267bc522067cbae6e36a.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.356e5b7689", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "fact_event_logs_full_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ae3fcd335efa267bc522067cbae6e36a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_ae3fcd335efa267bc522067cbae6e36a", "store_failures": true}, "created_at": 1764018439.3400578, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_event_logs_full_ORIGIN_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ae3fcd335efa267bc522067cbae6e36a\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/dbt_expectations_expect_column_ae3fcd335efa267bc522067cbae6e36a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_event_logs_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_ORIGIN_FUNCTION_SIGNATURE.81cc4e99fd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_full_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_4d31e6eafd11841cf03cfc0834ebe6cf.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_ORIGIN_FUNCTION_SIGNATURE.81cc4e99fd", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_full_ORIGIN_FUNCTION_SIGNATURE"], "alias": "fact_event_logs_full_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__fact_event_4d31e6eafd11841cf03cfc0834ebe6cf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__fact_event_4d31e6eafd11841cf03cfc0834ebe6cf", "store_failures": true}, "created_at": 1764018439.3456388, "relation_name": "polygon.not_null_test_gold.fact_event_logs_full_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__fact_event_4d31e6eafd11841cf03cfc0834ebe6cf\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/not_null_test_gold__fact_event_4d31e6eafd11841cf03cfc0834ebe6cf.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_full\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_SUCCEEDED.a552892b92": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_full_TX_SUCCEEDED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_full_TX_SUCCEEDED.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_SUCCEEDED.a552892b92", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_full_TX_SUCCEEDED"], "alias": "fact_event_logs_full_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.3478332, "relation_name": "polygon.not_null_test_gold.fact_event_logs_full_TX_SUCCEEDED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/not_null_test_gold__fact_event_logs_full_TX_SUCCEEDED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_full\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_SUCCEEDED", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_FACT_EVENT_LOGS_ID.f7cadc54a4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FACT_EVENT_LOGS_ID", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_full_FACT_EVENT_LOGS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_full_FACT_EVENT_LOGS_ID.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_FACT_EVENT_LOGS_ID.f7cadc54a4", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_full_FACT_EVENT_LOGS_ID"], "alias": "fact_event_logs_full_FACT_EVENT_LOGS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.350022, "relation_name": "polygon.not_null_test_gold.fact_event_logs_full_FACT_EVENT_LOGS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/not_null_test_gold__fact_event_logs_full_FACT_EVENT_LOGS_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_full\nwhere FACT_EVENT_LOGS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FACT_EVENT_LOGS_ID", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP.0653b623df": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP.0653b623df", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP"], "alias": "fact_event_logs_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.3521867, "relation_name": "polygon.not_null_test_gold.fact_event_logs_full_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/not_null_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_full\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP__hour__2.66cacb203e": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_b1bd828ed7cbff257ca044b4cde0d7a7.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP__hour__2.66cacb203e", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP__hour__2"], "alias": "fact_event_logs_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_b1bd828ed7cbff257ca044b4cde0d7a7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_b1bd828ed7cbff257ca044b4cde0d7a7", "store_failures": true}, "created_at": 1764018439.3543456, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_event_logs_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_b1bd828ed7cbff257ca044b4cde0d7a7\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/dbt_expectations_expect_row_va_b1bd828ed7cbff257ca044b4cde0d7a7.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_event_logs_full\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP.bd570cee7b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP.bd570cee7b", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP"], "alias": "fact_event_logs_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.362998, "relation_name": "polygon.not_null_test_gold.fact_event_logs_full_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/not_null_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_full\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP__hour__2.9ae1d3b725": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_69f5c528e63a1b203909127b0b9b83a6.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP__hour__2.9ae1d3b725", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP__hour__2"], "alias": "fact_event_logs_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_69f5c528e63a1b203909127b0b9b83a6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_69f5c528e63a1b203909127b0b9b83a6", "store_failures": true}, "created_at": 1764018439.3654253, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_event_logs_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_69f5c528e63a1b203909127b0b9b83a6\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/dbt_expectations_expect_row_va_69f5c528e63a1b203909127b0b9b83a6.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_event_logs_full\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_event_logs_full_TX_HASH__EVENT_INDEX.164d9b638c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["TX_HASH", "EVENT_INDEX"], "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__fact_event_logs_full_TX_HASH__EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_3a1b413d197a256dbfe630d1ed18df65.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_event_logs_full_TX_HASH__EVENT_INDEX.164d9b638c", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_utils_unique_combination_of_columns_test_gold__fact_event_logs_full_TX_HASH__EVENT_INDEX"], "alias": "fact_event_logs_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3a1b413d197a256dbfe630d1ed18df65", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3a1b413d197a256dbfe630d1ed18df65", "store_failures": true}, "created_at": 1764018439.3732455, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.fact_event_logs_full_TX_HASH", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3a1b413d197a256dbfe630d1ed18df65\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/dbt_utils_unique_combination_o_3a1b413d197a256dbfe630d1ed18df65.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n TX_HASH, EVENT_INDEX\n from polygon.test_gold.fact_event_logs_full\n group by TX_HASH, EVENT_INDEX\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_event_logs_full_EVENT_INDEX__BLOCK_NUMBER.13a5a78e6f": {"test_metadata": {"name": "sequence_gaps", "kwargs": {"partition_by": ["BLOCK_NUMBER"], "column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_sequence_gaps_test_gold", "name": "fsc_evm_sequence_gaps_test_gold__fact_event_logs_full_EVENT_INDEX__BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_sequence_gaps_test_gol_a7e1b36c6cc65c50552054f86f4ba18d.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_event_logs_full_EVENT_INDEX__BLOCK_NUMBER.13a5a78e6f", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "fsc_evm_sequence_gaps_test_gold__fact_event_logs_full_EVENT_INDEX__BLOCK_NUMBER"], "alias": "fact_event_logs_full_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "fsc_evm_sequence_gaps_test_gol_a7e1b36c6cc65c50552054f86f4ba18d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "BLOCK_TIMESTAMP < CURRENT_DATE - 1", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "BLOCK_TIMESTAMP < CURRENT_DATE - 1", "alias": "fsc_evm_sequence_gaps_test_gol_a7e1b36c6cc65c50552054f86f4ba18d", "store_failures": true}, "created_at": 1764018439.3786335, "relation_name": "polygon.fsc_evm_sequence_gaps_test_gold.fact_event_logs_full_EVENT_INDEX", "raw_code": "{{ fsc_evm.test_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(where=\"BLOCK_TIMESTAMP < CURRENT_DATE - 1\",alias=\"fsc_evm_sequence_gaps_test_gol_a7e1b36c6cc65c50552054f86f4ba18d\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/fsc_evm_sequence_gaps_test_gol_a7e1b36c6cc65c50552054f86f4ba18d.sql", "compiled": true, "compiled_code": "\n\n\nWITH source AS (\n SELECT\n BLOCK_NUMBER,\n EVENT_INDEX,\n LAG(\n EVENT_INDEX,\n 1\n ) over (\n PARTITION BY BLOCK_NUMBER\n ORDER BY\n EVENT_INDEX ASC\n ) AS prev_EVENT_INDEX\n FROM\n (select * from polygon.test_gold.fact_event_logs_full where BLOCK_TIMESTAMP < CURRENT_DATE - 1) dbt_subquery\n)\nSELECT\n BLOCK_NUMBER,\n prev_EVENT_INDEX,\n EVENT_INDEX,\n EVENT_INDEX - prev_EVENT_INDEX\n - 1 AS gap\nFROM\n source\nWHERE\n EVENT_INDEX - prev_EVENT_INDEX <> 1\n\nORDER BY\n gap DESC \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.events_match_txs_test_gold__fact_event_logs_full_ref_test_gold__fact_transactions_full_.5a7952a816": {"test_metadata": {"name": "events_match_txs", "kwargs": {"transactions_model": "ref('test_gold__fact_transactions_full')", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "events_match_txs_test_gold", "name": "events_match_txs_test_gold__fact_event_logs_full_ref_test_gold__fact_transactions_full_", "resource_type": "test", "package_name": "fsc_evm", "path": "events_match_txs_test_gold__fa_6c3458284552a0b1221262fd15d26add.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml", "unique_id": "test.fsc_evm.events_match_txs_test_gold__fact_event_logs_full_ref_test_gold__fact_transactions_full_.5a7952a816", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "events_match_txs_test_gold__fact_event_logs_full_ref_test_gold__fact_transactions_full_"], "alias": "fact_event_logs_full_ref_test_gold", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "events_match_txs_test_gold__fa_6c3458284552a0b1221262fd15d26add", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "events_match_txs_test_gold__fa_6c3458284552a0b1221262fd15d26add", "store_failures": true}, "created_at": 1764018439.425294, "relation_name": "polygon.events_match_txs_test_gold.fact_event_logs_full_ref_test_gold", "raw_code": "{{ test_events_match_txs(**_dbt_generic_test_kwargs) }}{{ config(alias=\"events_match_txs_test_gold__fa_6c3458284552a0b1221262fd15d26add\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}, {"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_events_match_txs", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full", "model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_full.yml/events_match_txs_test_gold__fa_6c3458284552a0b1221262fd15d26add.sql", "compiled": true, "compiled_code": "\nWITH logs AS (\n SELECT\n DISTINCT block_number,\n tx_hash,\n tx_position\n FROM\n polygon.test_gold.fact_event_logs_full\n),\nmissing_transactions AS (\n SELECT\n logs.block_number,\n logs.tx_hash,\n logs.tx_position\n FROM\n logs\n LEFT JOIN polygon.test_gold.fact_transactions_full\n txs USING (\n block_number,\n tx_hash,\n tx_position\n )\n WHERE\n txs.tx_hash IS NULL\n OR txs.tx_position IS NULL\n OR txs.block_number IS NULL\n)\nSELECT\n *\nFROM\n missing_transactions \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_event_logs_full", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_full"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_BLOCK_NUMBER.175fc10a23": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_recent_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_BLOCK_NUMBER.175fc10a23", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_recent_BLOCK_NUMBER"], "alias": "fact_event_logs_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.4353516, "relation_name": "polygon.not_null_test_gold.fact_event_logs_recent_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/not_null_test_gold__fact_event_logs_recent_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_recent\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_BLOCK_NUMBER__NUMBER.f023a7fa38": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_BLOCK_NUMBER__NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_90cdf4cceaadaa03a4a91b067b3cee2c.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_BLOCK_NUMBER__NUMBER.f023a7fa38", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_BLOCK_NUMBER__NUMBER"], "alias": "fact_event_logs_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_90cdf4cceaadaa03a4a91b067b3cee2c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_90cdf4cceaadaa03a4a91b067b3cee2c", "store_failures": true}, "created_at": 1764018439.4376972, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_event_logs_recent_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_90cdf4cceaadaa03a4a91b067b3cee2c\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/dbt_expectations_expect_column_90cdf4cceaadaa03a4a91b067b3cee2c.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_0' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_1' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_2' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_3' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_EVENT_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP.01f36159ef": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP.01f36159ef", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP"], "alias": "fact_event_logs_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.4427881, "relation_name": "polygon.not_null_test_gold.fact_event_logs_recent_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/not_null_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_recent\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP__hour__2.bca2ba239f": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_a82759cae72f2b922a2c03f0afbdc31c.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP__hour__2.bca2ba239f", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP__hour__2"], "alias": "fact_event_logs_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_a82759cae72f2b922a2c03f0afbdc31c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_a82759cae72f2b922a2c03f0afbdc31c", "store_failures": true}, "created_at": 1764018439.4450476, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_event_logs_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_a82759cae72f2b922a2c03f0afbdc31c\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/dbt_expectations_expect_row_va_a82759cae72f2b922a2c03f0afbdc31c.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_event_logs_recent\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7806b0df5f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_1e1c38764b9854bbe50be23ce2e145f0.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7806b0df5f", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "fact_event_logs_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1e1c38764b9854bbe50be23ce2e145f0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_1e1c38764b9854bbe50be23ce2e145f0", "store_failures": true}, "created_at": 1764018439.4532657, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_event_logs_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1e1c38764b9854bbe50be23ce2e145f0\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/dbt_expectations_expect_column_1e1c38764b9854bbe50be23ce2e145f0.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_0' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_1' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_2' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_3' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_EVENT_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_HASH.7aaa319baa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_recent_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_recent_TX_HASH.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_HASH.7aaa319baa", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_recent_TX_HASH"], "alias": "fact_event_logs_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.4583218, "relation_name": "polygon.not_null_test_gold.fact_event_logs_recent_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/not_null_test_gold__fact_event_logs_recent_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_recent\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_TX_HASH__0_xX_0_9a_fA_F_.d7f102a501": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_4ed82b773a8dee697f781bdb938ec7b0.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_TX_HASH__0_xX_0_9a_fA_F_.d7f102a501", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "fact_event_logs_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4ed82b773a8dee697f781bdb938ec7b0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_4ed82b773a8dee697f781bdb938ec7b0", "store_failures": true}, "created_at": 1764018439.4605331, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_event_logs_recent_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4ed82b773a8dee697f781bdb938ec7b0\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/dbt_expectations_expect_column_4ed82b773a8dee697f781bdb938ec7b0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_event_logs_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.fsc_utils_tx_block_count_test_gold__fact_event_logs_recent_TX_HASH.4d9f53b085": {"test_metadata": {"name": "tx_block_count", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": "fsc_utils"}, "database": "polygon", "schema": "fsc_utils_tx_block_count_test_gold", "name": "fsc_utils_tx_block_count_test_gold__fact_event_logs_recent_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_utils_tx_block_count_test__af453eb2f24ddee80a7f3ae7d8331656.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.fsc_utils_tx_block_count_test_gold__fact_event_logs_recent_TX_HASH.4d9f53b085", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "fsc_utils_tx_block_count_test_gold__fact_event_logs_recent_TX_HASH"], "alias": "fact_event_logs_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "fsc_utils_tx_block_count_test__af453eb2f24ddee80a7f3ae7d8331656", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "error", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!=0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"severity": "error", "error_if": "!=0", "alias": "fsc_utils_tx_block_count_test__af453eb2f24ddee80a7f3ae7d8331656", "store_failures": true}, "created_at": 1764018439.4661803, "relation_name": "polygon.fsc_utils_tx_block_count_test_gold.fact_event_logs_recent_TX_HASH", "raw_code": "{{ fsc_utils.test_tx_block_count(**_dbt_generic_test_kwargs) }}{{ config(severity=\"error\",error_if=\"!=0\",alias=\"fsc_utils_tx_block_count_test__af453eb2f24ddee80a7f3ae7d8331656\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_utils.test_tx_block_count", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/fsc_utils_tx_block_count_test__af453eb2f24ddee80a7f3ae7d8331656.sql", "compiled": true, "compiled_code": "\n\nSELECT \n TX_HASH, \n COUNT(DISTINCT block_number) AS num_blocks\nFROM\n polygon.test_gold.fact_event_logs_recent\nGROUP BY TX_HASH\nHAVING num_blocks > 1\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_POSITION.6b3cf4b320": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_recent_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_recent_TX_POSITION.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_POSITION.6b3cf4b320", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_recent_TX_POSITION"], "alias": "fact_event_logs_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.471577, "relation_name": "polygon.not_null_test_gold.fact_event_logs_recent_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/not_null_test_gold__fact_event_logs_recent_TX_POSITION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_recent\nwhere TX_POSITION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_TX_POSITION__NUMBER__FLOAT.400e138c88": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_TX_POSITION__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_27d3a1bc986add30116311c75ac21252.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_TX_POSITION__NUMBER__FLOAT.400e138c88", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_TX_POSITION__NUMBER__FLOAT"], "alias": "fact_event_logs_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_27d3a1bc986add30116311c75ac21252", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_27d3a1bc986add30116311c75ac21252", "store_failures": true}, "created_at": 1764018439.4739087, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_event_logs_recent_TX_POSITION", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_27d3a1bc986add30116311c75ac21252\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/dbt_expectations_expect_column_27d3a1bc986add30116311c75ac21252.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_0' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_1' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_2' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_3' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_EVENT_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_POSITION'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_EVENT_INDEX.bebac92256": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_recent_EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_recent_EVENT_INDEX.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_EVENT_INDEX.bebac92256", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_recent_EVENT_INDEX"], "alias": "fact_event_logs_recent_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.4790003, "relation_name": "polygon.not_null_test_gold.fact_event_logs_recent_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/not_null_test_gold__fact_event_logs_recent_EVENT_INDEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_recent\nwhere EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_EVENT_INDEX__NUMBER__FLOAT.4b5e283568": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_EVENT_INDEX__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_b81ab6fbb6249bb1f676a3ab365191db.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_EVENT_INDEX__NUMBER__FLOAT.4b5e283568", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_EVENT_INDEX__NUMBER__FLOAT"], "alias": "fact_event_logs_recent_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b81ab6fbb6249bb1f676a3ab365191db", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b81ab6fbb6249bb1f676a3ab365191db", "store_failures": true}, "created_at": 1764018439.4816387, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_event_logs_recent_EVENT_INDEX", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b81ab6fbb6249bb1f676a3ab365191db\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/dbt_expectations_expect_column_b81ab6fbb6249bb1f676a3ab365191db.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPICS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_0' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_1' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_2' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOPIC_3' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_REMOVED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_EVENT_LOGS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'EVENT_INDEX'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS.b4d519e230": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS.b4d519e230", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS"], "alias": "fact_event_logs_recent_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.4867587, "relation_name": "polygon.not_null_test_gold.fact_event_logs_recent_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/not_null_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_recent\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.3d58ac3aa0": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_d803d02345ea8ef035fb27db4b8a8941.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.3d58ac3aa0", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "fact_event_logs_recent_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d803d02345ea8ef035fb27db4b8a8941", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d803d02345ea8ef035fb27db4b8a8941", "store_failures": true}, "created_at": 1764018439.4889634, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_event_logs_recent_CONTRACT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d803d02345ea8ef035fb27db4b8a8941\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/dbt_expectations_expect_column_d803d02345ea8ef035fb27db4b8a8941.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_event_logs_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TOPICS.9f5c99369f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOPICS", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_recent_TOPICS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_recent_TOPICS.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TOPICS.9f5c99369f", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_recent_TOPICS"], "alias": "fact_event_logs_recent_TOPICS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.4946334, "relation_name": "polygon.not_null_test_gold.fact_event_logs_recent_TOPICS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/not_null_test_gold__fact_event_logs_recent_TOPICS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_recent\nwhere TOPICS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOPICS", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_DATA.297d8e5e96": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DATA", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_recent_DATA", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_recent_DATA.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_DATA.297d8e5e96", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_recent_DATA"], "alias": "fact_event_logs_recent_DATA", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.4968414, "relation_name": "polygon.not_null_test_gold.fact_event_logs_recent_DATA", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/not_null_test_gold__fact_event_logs_recent_DATA.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_recent\nwhere DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DATA", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_EVENT_REMOVED.c575d9ca64": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_REMOVED", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_recent_EVENT_REMOVED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_recent_EVENT_REMOVED.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_EVENT_REMOVED.c575d9ca64", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_recent_EVENT_REMOVED"], "alias": "fact_event_logs_recent_EVENT_REMOVED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.4990246, "relation_name": "polygon.not_null_test_gold.fact_event_logs_recent_EVENT_REMOVED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/not_null_test_gold__fact_event_logs_recent_EVENT_REMOVED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_recent\nwhere EVENT_REMOVED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_REMOVED", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS.bc086d9e05": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS.bc086d9e05", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS"], "alias": "fact_event_logs_recent_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.5011902, "relation_name": "polygon.not_null_test_gold.fact_event_logs_recent_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/not_null_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_recent\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.dbd110b4d3": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_f384398062e75c6d32bebe3d53a58810.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.dbd110b4d3", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "fact_event_logs_recent_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f384398062e75c6d32bebe3d53a58810", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f384398062e75c6d32bebe3d53a58810", "store_failures": true}, "created_at": 1764018439.5036283, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_event_logs_recent_ORIGIN_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f384398062e75c6d32bebe3d53a58810\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/dbt_expectations_expect_column_f384398062e75c6d32bebe3d53a58810.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_event_logs_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.be409440dd": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ORIGIN_TO_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_c6e62eb0dc22baac8a1877a216229e49.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.be409440dd", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "fact_event_logs_recent_ORIGIN_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c6e62eb0dc22baac8a1877a216229e49", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c6e62eb0dc22baac8a1877a216229e49", "store_failures": true}, "created_at": 1764018439.509134, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_event_logs_recent_ORIGIN_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c6e62eb0dc22baac8a1877a216229e49\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/dbt_expectations_expect_column_c6e62eb0dc22baac8a1877a216229e49.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ORIGIN_TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_event_logs_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_TO_ADDRESS", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE.c81a26b80c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_3dce941725ccd541dadb8b5b56ad1a9b.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE.c81a26b80c", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE"], "alias": "fact_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__fact_event_3dce941725ccd541dadb8b5b56ad1a9b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__fact_event_3dce941725ccd541dadb8b5b56ad1a9b", "store_failures": true}, "created_at": 1764018439.5146766, "relation_name": "polygon.not_null_test_gold.fact_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__fact_event_3dce941725ccd541dadb8b5b56ad1a9b\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/not_null_test_gold__fact_event_3dce941725ccd541dadb8b5b56ad1a9b.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_recent\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_SUCCEEDED.66bec17605": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_recent_TX_SUCCEEDED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_recent_TX_SUCCEEDED.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_SUCCEEDED.66bec17605", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_recent_TX_SUCCEEDED"], "alias": "fact_event_logs_recent_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.516824, "relation_name": "polygon.not_null_test_gold.fact_event_logs_recent_TX_SUCCEEDED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/not_null_test_gold__fact_event_logs_recent_TX_SUCCEEDED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_recent\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_SUCCEEDED", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_FACT_EVENT_LOGS_ID.91901e9d78": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FACT_EVENT_LOGS_ID", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_recent_FACT_EVENT_LOGS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_recent_FACT_EVENT_LOGS_ID.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_FACT_EVENT_LOGS_ID.91901e9d78", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_recent_FACT_EVENT_LOGS_ID"], "alias": "fact_event_logs_recent_FACT_EVENT_LOGS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.5189772, "relation_name": "polygon.not_null_test_gold.fact_event_logs_recent_FACT_EVENT_LOGS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/not_null_test_gold__fact_event_logs_recent_FACT_EVENT_LOGS_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_recent\nwhere FACT_EVENT_LOGS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FACT_EVENT_LOGS_ID", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP.c8bd425490": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP.c8bd425490", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP"], "alias": "fact_event_logs_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.5213244, "relation_name": "polygon.not_null_test_gold.fact_event_logs_recent_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/not_null_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_recent\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP__hour__2.509d7d2de4": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_131b23aedbc8257ff761b8947eb50955.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP__hour__2.509d7d2de4", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP__hour__2"], "alias": "fact_event_logs_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_131b23aedbc8257ff761b8947eb50955", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_131b23aedbc8257ff761b8947eb50955", "store_failures": true}, "created_at": 1764018439.5238335, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_event_logs_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_131b23aedbc8257ff761b8947eb50955\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/dbt_expectations_expect_row_va_131b23aedbc8257ff761b8947eb50955.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_event_logs_recent\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP.85e778caed": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP.85e778caed", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "not_null_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP"], "alias": "fact_event_logs_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.5373893, "relation_name": "polygon.not_null_test_gold.fact_event_logs_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/not_null_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_event_logs_recent\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP__hour__2.742de25dd6": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_c283ce96d590f5d44754bda0e03fd476.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP__hour__2.742de25dd6", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP__hour__2"], "alias": "fact_event_logs_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_c283ce96d590f5d44754bda0e03fd476", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_c283ce96d590f5d44754bda0e03fd476", "store_failures": true}, "created_at": 1764018439.539819, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_event_logs_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_c283ce96d590f5d44754bda0e03fd476\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/dbt_expectations_expect_row_va_c283ce96d590f5d44754bda0e03fd476.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_event_logs_recent\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_event_logs_recent_TX_HASH__EVENT_INDEX.63ec130f07": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["TX_HASH", "EVENT_INDEX"], "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__fact_event_logs_recent_TX_HASH__EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_83b992c7eeb6dc85a3e269b2b7ec32a2.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_event_logs_recent_TX_HASH__EVENT_INDEX.63ec130f07", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "dbt_utils_unique_combination_of_columns_test_gold__fact_event_logs_recent_TX_HASH__EVENT_INDEX"], "alias": "fact_event_logs_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_83b992c7eeb6dc85a3e269b2b7ec32a2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_83b992c7eeb6dc85a3e269b2b7ec32a2", "store_failures": true}, "created_at": 1764018439.5492983, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.fact_event_logs_recent_TX_HASH", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_83b992c7eeb6dc85a3e269b2b7ec32a2\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/dbt_utils_unique_combination_o_83b992c7eeb6dc85a3e269b2b7ec32a2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n TX_HASH, EVENT_INDEX\n from polygon.test_gold.fact_event_logs_recent\n group by TX_HASH, EVENT_INDEX\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_event_logs_recent_EVENT_INDEX__BLOCK_NUMBER.3d7998b618": {"test_metadata": {"name": "sequence_gaps", "kwargs": {"partition_by": ["BLOCK_NUMBER"], "column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_sequence_gaps_test_gold", "name": "fsc_evm_sequence_gaps_test_gold__fact_event_logs_recent_EVENT_INDEX__BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_sequence_gaps_test_gol_5b5ee7646f5350f28f09766e63bad3a4.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_event_logs_recent_EVENT_INDEX__BLOCK_NUMBER.3d7998b618", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "fsc_evm_sequence_gaps_test_gold__fact_event_logs_recent_EVENT_INDEX__BLOCK_NUMBER"], "alias": "fact_event_logs_recent_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "fsc_evm_sequence_gaps_test_gol_5b5ee7646f5350f28f09766e63bad3a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "fsc_evm_sequence_gaps_test_gol_5b5ee7646f5350f28f09766e63bad3a4", "store_failures": true}, "created_at": 1764018439.5550926, "relation_name": "polygon.fsc_evm_sequence_gaps_test_gold.fact_event_logs_recent_EVENT_INDEX", "raw_code": "{{ fsc_evm.test_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(alias=\"fsc_evm_sequence_gaps_test_gol_5b5ee7646f5350f28f09766e63bad3a4\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/fsc_evm_sequence_gaps_test_gol_5b5ee7646f5350f28f09766e63bad3a4.sql", "compiled": true, "compiled_code": "\n\n\nWITH source AS (\n SELECT\n BLOCK_NUMBER,\n EVENT_INDEX,\n LAG(\n EVENT_INDEX,\n 1\n ) over (\n PARTITION BY BLOCK_NUMBER\n ORDER BY\n EVENT_INDEX ASC\n ) AS prev_EVENT_INDEX\n FROM\n polygon.test_gold.fact_event_logs_recent\n)\nSELECT\n BLOCK_NUMBER,\n prev_EVENT_INDEX,\n EVENT_INDEX,\n EVENT_INDEX - prev_EVENT_INDEX\n - 1 AS gap\nFROM\n source\nWHERE\n EVENT_INDEX - prev_EVENT_INDEX <> 1\n\nORDER BY\n gap DESC \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.events_match_txs_test_gold__fact_event_logs_recent_ref_test_gold__fact_transactions_recent_.3f449de1cd": {"test_metadata": {"name": "events_match_txs", "kwargs": {"transactions_model": "ref('test_gold__fact_transactions_recent')", "model": "{{ get_where_subquery(ref('test_gold__fact_event_logs_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "events_match_txs_test_gold", "name": "events_match_txs_test_gold__fact_event_logs_recent_ref_test_gold__fact_transactions_recent_", "resource_type": "test", "package_name": "fsc_evm", "path": "events_match_txs_test_gold__fa_480a7f9258c45385b3c81fec97db7e07.sql", "original_file_path": "models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml", "unique_id": "test.fsc_evm.events_match_txs_test_gold__fact_event_logs_recent_ref_test_gold__fact_transactions_recent_.3f449de1cd", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "event_logs", "events_match_txs_test_gold__fact_event_logs_recent_ref_test_gold__fact_transactions_recent_"], "alias": "fact_event_logs_recent_ref_test_gold", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "events_match_txs_test_gold__fa_480a7f9258c45385b3c81fec97db7e07", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "events_match_txs_test_gold__fa_480a7f9258c45385b3c81fec97db7e07", "store_failures": true}, "created_at": 1764018439.6010654, "relation_name": "polygon.events_match_txs_test_gold.fact_event_logs_recent_ref_test_gold", "raw_code": "{{ test_events_match_txs(**_dbt_generic_test_kwargs) }}{{ config(alias=\"events_match_txs_test_gold__fa_480a7f9258c45385b3c81fec97db7e07\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}, {"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_events_match_txs", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent", "model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/event_logs/test_gold__fact_event_logs_recent.yml/events_match_txs_test_gold__fa_480a7f9258c45385b3c81fec97db7e07.sql", "compiled": true, "compiled_code": "\nWITH logs AS (\n SELECT\n DISTINCT block_number,\n tx_hash,\n tx_position\n FROM\n polygon.test_gold.fact_event_logs_recent\n),\nmissing_transactions AS (\n SELECT\n logs.block_number,\n logs.tx_hash,\n logs.tx_position\n FROM\n logs\n LEFT JOIN polygon.test_gold.fact_transactions_recent\n txs USING (\n block_number,\n tx_hash,\n tx_position\n )\n WHERE\n txs.tx_hash IS NULL\n OR txs.tx_position IS NULL\n OR txs.block_number IS NULL\n)\nSELECT\n *\nFROM\n missing_transactions \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_event_logs_recent", "attached_node": "model.fsc_evm.test_gold__fact_event_logs_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_NUMBER.9061fb0407": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_NUMBER.9061fb0407", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_BLOCK_NUMBER"], "alias": "fact_blocks_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.610281, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_BLOCK_NUMBER__NUMBER__FLOAT.a0aef7af7c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_269e10493ca0b37b3af810daf5fa57bb.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_BLOCK_NUMBER__NUMBER__FLOAT.a0aef7af7c", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "fact_blocks_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_269e10493ca0b37b3af810daf5fa57bb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_269e10493ca0b37b3af810daf5fa57bb", "store_failures": true}, "created_at": 1764018439.6125956, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_recent_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_269e10493ca0b37b3af810daf5fa57bb\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_269e10493ca0b37b3af810daf5fa57bb.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_HASH.fc40219b9b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_BLOCK_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_BLOCK_HASH.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_HASH.fc40219b9b", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_BLOCK_HASH"], "alias": "fact_blocks_recent_BLOCK_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.6177905, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_BLOCK_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_BLOCK_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere BLOCK_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_HASH", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_BLOCK_HASH__0_xX_0_9a_fA_F_.44301d7b7c": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "BLOCK_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_BLOCK_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_a819c59a933a6f36763f5669843ca07e.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_BLOCK_HASH__0_xX_0_9a_fA_F_.44301d7b7c", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_BLOCK_HASH__0_xX_0_9a_fA_F_"], "alias": "fact_blocks_recent_BLOCK_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a819c59a933a6f36763f5669843ca07e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_a819c59a933a6f36763f5669843ca07e", "store_failures": true}, "created_at": 1764018439.6199977, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_blocks_recent_BLOCK_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a819c59a933a6f36763f5669843ca07e\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_a819c59a933a6f36763f5669843ca07e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(BLOCK_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_blocks_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_HASH", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP.94fcac91b2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP.94fcac91b2", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP"], "alias": "fact_blocks_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.6255121, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.a84c388c6a": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_014f5c12e4f14daab72c1d3557eb3e9b.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.a84c388c6a", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "fact_blocks_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_014f5c12e4f14daab72c1d3557eb3e9b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_014f5c12e4f14daab72c1d3557eb3e9b", "store_failures": true}, "created_at": 1764018439.62771, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_014f5c12e4f14daab72c1d3557eb3e9b\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_014f5c12e4f14daab72c1d3557eb3e9b.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP__hour__2.4589bd9103": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_8294429f4d697fbf80da898c6c4c43aa.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP__hour__2.4589bd9103", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP__hour__2"], "alias": "fact_blocks_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_8294429f4d697fbf80da898c6c4c43aa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_8294429f4d697fbf80da898c6c4c43aa", "store_failures": true}, "created_at": 1764018439.632511, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_blocks_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_8294429f4d697fbf80da898c6c4c43aa\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_row_va_8294429f4d697fbf80da898c6c4c43aa.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_blocks_recent\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_NETWORK.34f87743f3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NETWORK", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_NETWORK", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_NETWORK.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_NETWORK.34f87743f3", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_NETWORK"], "alias": "fact_blocks_recent_NETWORK", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.64031, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_NETWORK", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_NETWORK.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere NETWORK is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NETWORK", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_NETWORK___a_zA_Z0_9__.9b67337d7a": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "^[a-zA-Z0-9_]+$", "column_name": "NETWORK", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_NETWORK___a_zA_Z0_9__", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_b52f0e918f896a0976354005454aaabc.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_NETWORK___a_zA_Z0_9__.9b67337d7a", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_NETWORK___a_zA_Z0_9__"], "alias": "fact_blocks_recent_NETWORK", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b52f0e918f896a0976354005454aaabc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b52f0e918f896a0976354005454aaabc", "store_failures": true}, "created_at": 1764018439.6424828, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_blocks_recent_NETWORK", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b52f0e918f896a0976354005454aaabc\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_b52f0e918f896a0976354005454aaabc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(NETWORK, '^[a-zA-Z0-9_]+$', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_blocks_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NETWORK", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_TX_COUNT.2ab3789a46": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_COUNT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_TX_COUNT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_TX_COUNT.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_TX_COUNT.2ab3789a46", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_TX_COUNT"], "alias": "fact_blocks_recent_TX_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.6482592, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_TX_COUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_TX_COUNT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere TX_COUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_COUNT", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_TX_COUNT__NUMBER__FLOAT.be245b701f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_COUNT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_TX_COUNT__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_9dc314483af3d30e530d95a1f9317d45.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_TX_COUNT__NUMBER__FLOAT.be245b701f", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_TX_COUNT__NUMBER__FLOAT"], "alias": "fact_blocks_recent_TX_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9dc314483af3d30e530d95a1f9317d45", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_9dc314483af3d30e530d95a1f9317d45", "store_failures": true}, "created_at": 1764018439.6504812, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_recent_TX_COUNT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9dc314483af3d30e530d95a1f9317d45\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_9dc314483af3d30e530d95a1f9317d45.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_COUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_COUNT", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_SIZE.e3303070ef": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SIZE", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_SIZE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_SIZE.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_SIZE.e3303070ef", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_SIZE"], "alias": "fact_blocks_recent_SIZE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.655426, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_SIZE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_SIZE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere SIZE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SIZE", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_SIZE__NUMBER__FLOAT.b9716a702f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "SIZE", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_SIZE__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_3d8033aa86bc9028c92d7c23bb2350ab.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_SIZE__NUMBER__FLOAT.b9716a702f", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_SIZE__NUMBER__FLOAT"], "alias": "fact_blocks_recent_SIZE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3d8033aa86bc9028c92d7c23bb2350ab", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3d8033aa86bc9028c92d7c23bb2350ab", "store_failures": true}, "created_at": 1764018439.657909, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_recent_SIZE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3d8033aa86bc9028c92d7c23bb2350ab\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_3d8033aa86bc9028c92d7c23bb2350ab.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'SIZE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SIZE", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_MINER.a44712730d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MINER", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_MINER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_MINER.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_MINER.a44712730d", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_MINER"], "alias": "fact_blocks_recent_MINER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.6629014, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_MINER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_MINER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere MINER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MINER", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_MINER__0_xX_0_9a_fA_F_.81a710571a": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "MINER", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_MINER__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_3b7305c987295acd460e068647ed5f31.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_MINER__0_xX_0_9a_fA_F_.81a710571a", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_MINER__0_xX_0_9a_fA_F_"], "alias": "fact_blocks_recent_MINER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3b7305c987295acd460e068647ed5f31", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3b7305c987295acd460e068647ed5f31", "store_failures": true}, "created_at": 1764018439.665058, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_blocks_recent_MINER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3b7305c987295acd460e068647ed5f31\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_3b7305c987295acd460e068647ed5f31.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(MINER, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_blocks_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MINER", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_EXTRA_DATA.c1204d1482": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EXTRA_DATA", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_EXTRA_DATA", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_EXTRA_DATA.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_EXTRA_DATA.c1204d1482", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_EXTRA_DATA"], "alias": "fact_blocks_recent_EXTRA_DATA", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.6705053, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_EXTRA_DATA", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_EXTRA_DATA.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere EXTRA_DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EXTRA_DATA", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_PARENT_HASH.339dcfcc3c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PARENT_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_PARENT_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_PARENT_HASH.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_PARENT_HASH.339dcfcc3c", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_PARENT_HASH"], "alias": "fact_blocks_recent_PARENT_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.6726444, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_PARENT_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_PARENT_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere PARENT_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PARENT_HASH", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_PARENT_HASH__0_xX_0_9a_fA_F_.6b67f778c4": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "PARENT_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_PARENT_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_a8db1f6e39286e1b3036b4fd9a622ba9.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_PARENT_HASH__0_xX_0_9a_fA_F_.6b67f778c4", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_PARENT_HASH__0_xX_0_9a_fA_F_"], "alias": "fact_blocks_recent_PARENT_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a8db1f6e39286e1b3036b4fd9a622ba9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_a8db1f6e39286e1b3036b4fd9a622ba9", "store_failures": true}, "created_at": 1764018439.6748655, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_blocks_recent_PARENT_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a8db1f6e39286e1b3036b4fd9a622ba9\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_a8db1f6e39286e1b3036b4fd9a622ba9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(PARENT_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_blocks_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PARENT_HASH", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_GAS_USED__NUMBER__FLOAT.6540d38a1f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "GAS_USED", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_GAS_USED__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_71a5c3fb96b8237857315fc3ecc2159e.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_GAS_USED__NUMBER__FLOAT.6540d38a1f", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_GAS_USED__NUMBER__FLOAT"], "alias": "fact_blocks_recent_GAS_USED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_71a5c3fb96b8237857315fc3ecc2159e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_71a5c3fb96b8237857315fc3ecc2159e", "store_failures": true}, "created_at": 1764018439.6803472, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_recent_GAS_USED", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_71a5c3fb96b8237857315fc3ecc2159e\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_71a5c3fb96b8237857315fc3ecc2159e.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'GAS_USED'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "GAS_USED", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_GAS_LIMIT.f49dbdd7e1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "GAS_LIMIT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_GAS_LIMIT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_GAS_LIMIT.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_GAS_LIMIT.f49dbdd7e1", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_GAS_LIMIT"], "alias": "fact_blocks_recent_GAS_LIMIT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.6862092, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_GAS_LIMIT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_GAS_LIMIT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere GAS_LIMIT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "GAS_LIMIT", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_GAS_LIMIT__NUMBER__FLOAT.a04528bc5d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "GAS_LIMIT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_GAS_LIMIT__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_bed5f81fdd58d1094d1c491b03349d38.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_GAS_LIMIT__NUMBER__FLOAT.a04528bc5d", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_GAS_LIMIT__NUMBER__FLOAT"], "alias": "fact_blocks_recent_GAS_LIMIT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_bed5f81fdd58d1094d1c491b03349d38", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_bed5f81fdd58d1094d1c491b03349d38", "store_failures": true}, "created_at": 1764018439.688329, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_recent_GAS_LIMIT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_bed5f81fdd58d1094d1c491b03349d38\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_bed5f81fdd58d1094d1c491b03349d38.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'GAS_LIMIT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "GAS_LIMIT", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_DIFFICULTY__NUMBER__FLOAT.3dbebb71ca": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "DIFFICULTY", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_DIFFICULTY__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_736da48c046ec8bcce7735410f2acad5.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_DIFFICULTY__NUMBER__FLOAT.3dbebb71ca", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_DIFFICULTY__NUMBER__FLOAT"], "alias": "fact_blocks_recent_DIFFICULTY", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_736da48c046ec8bcce7735410f2acad5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_736da48c046ec8bcce7735410f2acad5", "store_failures": true}, "created_at": 1764018439.6931813, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_recent_DIFFICULTY", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_736da48c046ec8bcce7735410f2acad5\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_736da48c046ec8bcce7735410f2acad5.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'DIFFICULTY'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DIFFICULTY", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_SHA3_UNCLES.0d2fae6c58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SHA3_UNCLES", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_SHA3_UNCLES", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_SHA3_UNCLES.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_SHA3_UNCLES.0d2fae6c58", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_SHA3_UNCLES"], "alias": "fact_blocks_recent_SHA3_UNCLES", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.698162, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_SHA3_UNCLES", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_SHA3_UNCLES.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere SHA3_UNCLES is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SHA3_UNCLES", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_UNCLE_BLOCKS.3393af752e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "UNCLE_BLOCKS", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_UNCLE_BLOCKS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_UNCLE_BLOCKS.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_UNCLE_BLOCKS.3393af752e", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_UNCLE_BLOCKS"], "alias": "fact_blocks_recent_UNCLE_BLOCKS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.7002878, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_UNCLE_BLOCKS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_UNCLE_BLOCKS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere UNCLE_BLOCKS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "UNCLE_BLOCKS", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_NONCE__NUMBER__FLOAT.1083444a52": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "NONCE", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_NONCE__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_0bd4c33ada7eb209136ebd2e727df1ed.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_NONCE__NUMBER__FLOAT.1083444a52", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_NONCE__NUMBER__FLOAT"], "alias": "fact_blocks_recent_NONCE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0bd4c33ada7eb209136ebd2e727df1ed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0bd4c33ada7eb209136ebd2e727df1ed", "store_failures": true}, "created_at": 1764018439.7024252, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_recent_NONCE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0bd4c33ada7eb209136ebd2e727df1ed\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_0bd4c33ada7eb209136ebd2e727df1ed.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'NONCE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NONCE", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_RECEIPTS_ROOT.dc843e4165": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "RECEIPTS_ROOT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_RECEIPTS_ROOT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_RECEIPTS_ROOT.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_RECEIPTS_ROOT.dc843e4165", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_RECEIPTS_ROOT"], "alias": "fact_blocks_recent_RECEIPTS_ROOT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.7074685, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_RECEIPTS_ROOT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_RECEIPTS_ROOT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere RECEIPTS_ROOT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "RECEIPTS_ROOT", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.77793690bd": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "RECEIPTS_ROOT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_RECEIPTS_ROOT__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_a9068bf78daa135f86df76693aa3212d.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.77793690bd", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_RECEIPTS_ROOT__0_xX_0_9a_fA_F_"], "alias": "fact_blocks_recent_RECEIPTS_ROOT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a9068bf78daa135f86df76693aa3212d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_a9068bf78daa135f86df76693aa3212d", "store_failures": true}, "created_at": 1764018439.7096002, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_blocks_recent_RECEIPTS_ROOT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a9068bf78daa135f86df76693aa3212d\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_a9068bf78daa135f86df76693aa3212d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(RECEIPTS_ROOT, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_blocks_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "RECEIPTS_ROOT", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_STATE_ROOT.da47dabf27": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "STATE_ROOT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_STATE_ROOT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_STATE_ROOT.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_STATE_ROOT.da47dabf27", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_STATE_ROOT"], "alias": "fact_blocks_recent_STATE_ROOT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.7150373, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_STATE_ROOT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_STATE_ROOT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere STATE_ROOT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "STATE_ROOT", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_STATE_ROOT__0_xX_0_9a_fA_F_.467353aa70": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "STATE_ROOT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_STATE_ROOT__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_4489550497de7d33d194af17e796b249.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_STATE_ROOT__0_xX_0_9a_fA_F_.467353aa70", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_STATE_ROOT__0_xX_0_9a_fA_F_"], "alias": "fact_blocks_recent_STATE_ROOT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4489550497de7d33d194af17e796b249", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_4489550497de7d33d194af17e796b249", "store_failures": true}, "created_at": 1764018439.7171907, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_blocks_recent_STATE_ROOT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4489550497de7d33d194af17e796b249\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_4489550497de7d33d194af17e796b249.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(STATE_ROOT, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_blocks_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "STATE_ROOT", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT.566be08af9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRANSACTIONS_ROOT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT.566be08af9", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT"], "alias": "fact_blocks_recent_TRANSACTIONS_ROOT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.7225776, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_TRANSACTIONS_ROOT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere TRANSACTIONS_ROOT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRANSACTIONS_ROOT", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT__0_xX_0_9a_fA_F_.47d739e923": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TRANSACTIONS_ROOT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_d79b5f9dc48274344aaeafa3e0c6cc15.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT__0_xX_0_9a_fA_F_.47d739e923", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT__0_xX_0_9a_fA_F_"], "alias": "fact_blocks_recent_TRANSACTIONS_ROOT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d79b5f9dc48274344aaeafa3e0c6cc15", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d79b5f9dc48274344aaeafa3e0c6cc15", "store_failures": true}, "created_at": 1764018439.7247734, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_blocks_recent_TRANSACTIONS_ROOT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d79b5f9dc48274344aaeafa3e0c6cc15\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_d79b5f9dc48274344aaeafa3e0c6cc15.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TRANSACTIONS_ROOT, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_blocks_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRANSACTIONS_ROOT", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_LOGS_BLOOM.633277005e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LOGS_BLOOM", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_LOGS_BLOOM", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_LOGS_BLOOM.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_LOGS_BLOOM.633277005e", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_LOGS_BLOOM"], "alias": "fact_blocks_recent_LOGS_BLOOM", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.730181, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_LOGS_BLOOM", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_LOGS_BLOOM.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere LOGS_BLOOM is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "LOGS_BLOOM", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_LOGS_BLOOM__0_xX_0_9a_fA_F_.f5af8d2584": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "LOGS_BLOOM", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_LOGS_BLOOM__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_bc0aadf93ac5befc6dc35d09f4a3342e.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_LOGS_BLOOM__0_xX_0_9a_fA_F_.f5af8d2584", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_LOGS_BLOOM__0_xX_0_9a_fA_F_"], "alias": "fact_blocks_recent_LOGS_BLOOM", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_bc0aadf93ac5befc6dc35d09f4a3342e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_bc0aadf93ac5befc6dc35d09f4a3342e", "store_failures": true}, "created_at": 1764018439.7323596, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_blocks_recent_LOGS_BLOOM", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_bc0aadf93ac5befc6dc35d09f4a3342e\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_bc0aadf93ac5befc6dc35d09f4a3342e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(LOGS_BLOOM, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_blocks_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "LOGS_BLOOM", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_FACT_BLOCKS_ID.a71e6bc73d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FACT_BLOCKS_ID", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_FACT_BLOCKS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_FACT_BLOCKS_ID.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_FACT_BLOCKS_ID.a71e6bc73d", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_FACT_BLOCKS_ID"], "alias": "fact_blocks_recent_FACT_BLOCKS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.737397, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_FACT_BLOCKS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_FACT_BLOCKS_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere FACT_BLOCKS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FACT_BLOCKS_ID", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_unique_test_gold__fact_blocks_recent_FACT_BLOCKS_ID.d5e1fb66c7": {"test_metadata": {"name": "expect_column_values_to_be_unique", "kwargs": {"column_name": "FACT_BLOCKS_ID", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_unique_test_gold", "name": "dbt_expectations_expect_column_values_to_be_unique_test_gold__fact_blocks_recent_FACT_BLOCKS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_d7de0c8050d520e54372adde50c3f756.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_unique_test_gold__fact_blocks_recent_FACT_BLOCKS_ID.d5e1fb66c7", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_unique_test_gold__fact_blocks_recent_FACT_BLOCKS_ID"], "alias": "fact_blocks_recent_FACT_BLOCKS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d7de0c8050d520e54372adde50c3f756", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d7de0c8050d520e54372adde50c3f756", "store_failures": true}, "created_at": 1764018439.739762, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_unique_test_gold.fact_blocks_recent_FACT_BLOCKS_ID", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d7de0c8050d520e54372adde50c3f756\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_unique", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_d7de0c8050d520e54372adde50c3f756.sql", "compiled": true, "compiled_code": "\n\n\n\n\nwith validation_errors as (\n\n select\n FACT_BLOCKS_ID\n from polygon.test_gold.fact_blocks_recent\n where\n 1=1\n and \n not (\n FACT_BLOCKS_ID is null\n \n )\n\n\n \n group by\n FACT_BLOCKS_ID\n having count(*) > 1\n\n)\nselect * from validation_errors\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FACT_BLOCKS_ID", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP.38071aedba": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP.38071aedba", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP"], "alias": "fact_blocks_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.7574625, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP__hour__2.92c0a04348": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_4babf11920774e2d3b875779e870f3d7.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP__hour__2.92c0a04348", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP__hour__2"], "alias": "fact_blocks_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_4babf11920774e2d3b875779e870f3d7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_4babf11920774e2d3b875779e870f3d7", "store_failures": true}, "created_at": 1764018439.7597017, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_blocks_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_4babf11920774e2d3b875779e870f3d7\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_row_va_4babf11920774e2d3b875779e870f3d7.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_blocks_recent\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3aed81ccad": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_244462f452212fcb76b440ea108d3ab2.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3aed81ccad", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "fact_blocks_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_244462f452212fcb76b440ea108d3ab2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_244462f452212fcb76b440ea108d3ab2", "store_failures": true}, "created_at": 1764018439.7674773, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_244462f452212fcb76b440ea108d3ab2\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_244462f452212fcb76b440ea108d3ab2.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP.97bc7f13ae": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP.97bc7f13ae", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP"], "alias": "fact_blocks_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.7724721, "relation_name": "polygon.not_null_test_gold.fact_blocks_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/not_null_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_recent\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP__hour__2.253aae44aa": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_a276920317610a2a42e5d5187ae2bf32.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP__hour__2.253aae44aa", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP__hour__2"], "alias": "fact_blocks_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_a276920317610a2a42e5d5187ae2bf32", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_a276920317610a2a42e5d5187ae2bf32", "store_failures": true}, "created_at": 1764018439.7746162, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_blocks_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_a276920317610a2a42e5d5187ae2bf32\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_row_va_a276920317610a2a42e5d5187ae2bf32.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_blocks_recent\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b67cb105f5": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_0d8ec51055680fb798df8775b7de2493.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b67cb105f5", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "fact_blocks_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0d8ec51055680fb798df8775b7de2493", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0d8ec51055680fb798df8775b7de2493", "store_failures": true}, "created_at": 1764018439.7824755, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0d8ec51055680fb798df8775b7de2493\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_expectations_expect_column_0d8ec51055680fb798df8775b7de2493.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'MODIFIED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_blocks_recent_BLOCK_NUMBER.e708e85fee": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BLOCK_NUMBER"], "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__fact_blocks_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_6e3778c4203981e39bdde758a58e22e1.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_blocks_recent_BLOCK_NUMBER.e708e85fee", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_utils_unique_combination_of_columns_test_gold__fact_blocks_recent_BLOCK_NUMBER"], "alias": "fact_blocks_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6e3778c4203981e39bdde758a58e22e1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6e3778c4203981e39bdde758a58e22e1", "store_failures": true}, "created_at": 1764018439.787588, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.fact_blocks_recent_BLOCK_NUMBER", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6e3778c4203981e39bdde758a58e22e1\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/dbt_utils_unique_combination_o_6e3778c4203981e39bdde758a58e22e1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n BLOCK_NUMBER\n from polygon.test_gold.fact_blocks_recent\n group by BLOCK_NUMBER\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_blocks_recent_BLOCK_NUMBER.a1a1f456ae": {"test_metadata": {"name": "sequence_gaps", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_recent')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_sequence_gaps_test_gold", "name": "fsc_evm_sequence_gaps_test_gold__fact_blocks_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_sequence_gaps_test_gol_dfcf72274489e5a325a0fa3eae4b45f2.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml", "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_blocks_recent_BLOCK_NUMBER.a1a1f456ae", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "fsc_evm_sequence_gaps_test_gold__fact_blocks_recent_BLOCK_NUMBER"], "alias": "fact_blocks_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "fsc_evm_sequence_gaps_test_gol_dfcf72274489e5a325a0fa3eae4b45f2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "error", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": ">10"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"severity": "error", "error_if": ">10", "alias": "fsc_evm_sequence_gaps_test_gol_dfcf72274489e5a325a0fa3eae4b45f2", "store_failures": true}, "created_at": 1764018439.7924654, "relation_name": "polygon.fsc_evm_sequence_gaps_test_gold.fact_blocks_recent_BLOCK_NUMBER", "raw_code": "{{ fsc_evm.test_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(severity=\"error\",error_if=\">10\",alias=\"fsc_evm_sequence_gaps_test_gol_dfcf72274489e5a325a0fa3eae4b45f2\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_recent.yml/fsc_evm_sequence_gaps_test_gol_dfcf72274489e5a325a0fa3eae4b45f2.sql", "compiled": true, "compiled_code": "\n\n\nWITH source AS (\n SELECT\n \n BLOCK_NUMBER,\n LAG(\n BLOCK_NUMBER,\n 1\n ) over (\n \n ORDER BY\n BLOCK_NUMBER ASC\n ) AS prev_BLOCK_NUMBER\n FROM\n polygon.test_gold.fact_blocks_recent\n)\nSELECT\n \n prev_BLOCK_NUMBER,\n BLOCK_NUMBER,\n BLOCK_NUMBER - prev_BLOCK_NUMBER\n - 1 AS gap\nFROM\n source\nWHERE\n BLOCK_NUMBER - prev_BLOCK_NUMBER <> 1\n\n AND BLOCK_NUMBER NOT IN (\n SELECT block_number :: INT + 1\n FROM observability.exclusion_list\n UNION ALL\n SELECT block_number :: INT - 1\n FROM observability.exclusion_list\n )\n\nORDER BY\n gap DESC \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_blocks_recent", "attached_node": "model.fsc_evm.test_gold__fact_blocks_recent"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_NUMBER.f3098a994a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_NUMBER.f3098a994a", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_BLOCK_NUMBER"], "alias": "fact_blocks_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.841342, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_BLOCK_NUMBER__NUMBER__FLOAT.a26946ebdc": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_823c2faef4e26f42dc027dce3c8715aa.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_BLOCK_NUMBER__NUMBER__FLOAT.a26946ebdc", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "fact_blocks_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_823c2faef4e26f42dc027dce3c8715aa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_823c2faef4e26f42dc027dce3c8715aa", "store_failures": true}, "created_at": 1764018439.843581, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_full_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_823c2faef4e26f42dc027dce3c8715aa\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_823c2faef4e26f42dc027dce3c8715aa.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_HASH.8dee9b8914": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_BLOCK_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_BLOCK_HASH.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_HASH.8dee9b8914", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_BLOCK_HASH"], "alias": "fact_blocks_full_BLOCK_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.8484097, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_BLOCK_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_BLOCK_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere BLOCK_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_HASH", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_BLOCK_HASH__0_xX_0_9a_fA_F_.f2f5d9dc2f": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "BLOCK_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_BLOCK_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_81a7022e991caf080fb5c7baec567539.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_BLOCK_HASH__0_xX_0_9a_fA_F_.f2f5d9dc2f", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_BLOCK_HASH__0_xX_0_9a_fA_F_"], "alias": "fact_blocks_full_BLOCK_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_81a7022e991caf080fb5c7baec567539", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_81a7022e991caf080fb5c7baec567539", "store_failures": true}, "created_at": 1764018439.8507512, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_blocks_full_BLOCK_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_81a7022e991caf080fb5c7baec567539\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_81a7022e991caf080fb5c7baec567539.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(BLOCK_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_blocks_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_HASH", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_TIMESTAMP.3a590c964b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_BLOCK_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_TIMESTAMP.3a590c964b", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_BLOCK_TIMESTAMP"], "alias": "fact_blocks_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.8557482, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.65dfa2ec4d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_f218da7a4b09ff0950967545045550a2.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.65dfa2ec4d", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "fact_blocks_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f218da7a4b09ff0950967545045550a2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f218da7a4b09ff0950967545045550a2", "store_failures": true}, "created_at": 1764018439.8581471, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f218da7a4b09ff0950967545045550a2\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_f218da7a4b09ff0950967545045550a2.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_BLOCK_TIMESTAMP__hour__2.4d38c1199d": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_BLOCK_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_1537b7f15be42fd043025414619450a3.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_BLOCK_TIMESTAMP__hour__2.4d38c1199d", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_BLOCK_TIMESTAMP__hour__2"], "alias": "fact_blocks_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_1537b7f15be42fd043025414619450a3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_1537b7f15be42fd043025414619450a3", "store_failures": true}, "created_at": 1764018439.8627582, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_blocks_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_1537b7f15be42fd043025414619450a3\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_row_va_1537b7f15be42fd043025414619450a3.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_blocks_full\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_NETWORK.f4601bdcec": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NETWORK", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_NETWORK", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_NETWORK.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_NETWORK.f4601bdcec", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_NETWORK"], "alias": "fact_blocks_full_NETWORK", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.8701549, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_NETWORK", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_NETWORK.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere NETWORK is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NETWORK", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_NETWORK___a_zA_Z0_9__.c5c8f0a0cc": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "^[a-zA-Z0-9_]+$", "column_name": "NETWORK", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_NETWORK___a_zA_Z0_9__", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_f8b01f230a61b9135b3e892724aebd5d.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_NETWORK___a_zA_Z0_9__.c5c8f0a0cc", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_NETWORK___a_zA_Z0_9__"], "alias": "fact_blocks_full_NETWORK", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f8b01f230a61b9135b3e892724aebd5d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f8b01f230a61b9135b3e892724aebd5d", "store_failures": true}, "created_at": 1764018439.8722417, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_blocks_full_NETWORK", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f8b01f230a61b9135b3e892724aebd5d\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_f8b01f230a61b9135b3e892724aebd5d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(NETWORK, '^[a-zA-Z0-9_]+$', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_blocks_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NETWORK", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_TX_COUNT.ea1dabd60a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_COUNT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_TX_COUNT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_TX_COUNT.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_TX_COUNT.ea1dabd60a", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_TX_COUNT"], "alias": "fact_blocks_full_TX_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.8773167, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_TX_COUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_TX_COUNT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere TX_COUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_COUNT", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_TX_COUNT__NUMBER__FLOAT.ba256986bd": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_COUNT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_TX_COUNT__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_40ee2ab6ac5af5746d6369d7a36f189f.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_TX_COUNT__NUMBER__FLOAT.ba256986bd", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_TX_COUNT__NUMBER__FLOAT"], "alias": "fact_blocks_full_TX_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_40ee2ab6ac5af5746d6369d7a36f189f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_40ee2ab6ac5af5746d6369d7a36f189f", "store_failures": true}, "created_at": 1764018439.8794844, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_full_TX_COUNT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_40ee2ab6ac5af5746d6369d7a36f189f\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_40ee2ab6ac5af5746d6369d7a36f189f.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_COUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_COUNT", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_SIZE.7f5752ed31": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SIZE", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_SIZE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_SIZE.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_SIZE.7f5752ed31", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_SIZE"], "alias": "fact_blocks_full_SIZE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.884216, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_SIZE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_SIZE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere SIZE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SIZE", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_SIZE__NUMBER__FLOAT.a537b42b6c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "SIZE", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_SIZE__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_d969b8f178da28c6a581d4d95a948a0f.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_SIZE__NUMBER__FLOAT.a537b42b6c", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_SIZE__NUMBER__FLOAT"], "alias": "fact_blocks_full_SIZE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d969b8f178da28c6a581d4d95a948a0f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d969b8f178da28c6a581d4d95a948a0f", "store_failures": true}, "created_at": 1764018439.886319, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_full_SIZE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d969b8f178da28c6a581d4d95a948a0f\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_d969b8f178da28c6a581d4d95a948a0f.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'SIZE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SIZE", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_MINER.8de6a9c8f5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MINER", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_MINER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_MINER.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_MINER.8de6a9c8f5", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_MINER"], "alias": "fact_blocks_full_MINER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.8910606, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_MINER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_MINER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere MINER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MINER", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_MINER__0_xX_0_9a_fA_F_.dc25f4c8de": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "MINER", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_MINER__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_8fe845bf3253f082aa29e8906eb31237.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_MINER__0_xX_0_9a_fA_F_.dc25f4c8de", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_MINER__0_xX_0_9a_fA_F_"], "alias": "fact_blocks_full_MINER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8fe845bf3253f082aa29e8906eb31237", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_8fe845bf3253f082aa29e8906eb31237", "store_failures": true}, "created_at": 1764018439.8931608, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_blocks_full_MINER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8fe845bf3253f082aa29e8906eb31237\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_8fe845bf3253f082aa29e8906eb31237.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(MINER, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_blocks_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MINER", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_EXTRA_DATA.f2257373c4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EXTRA_DATA", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_EXTRA_DATA", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_EXTRA_DATA.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_EXTRA_DATA.f2257373c4", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_EXTRA_DATA"], "alias": "fact_blocks_full_EXTRA_DATA", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.8981028, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_EXTRA_DATA", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_EXTRA_DATA.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere EXTRA_DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EXTRA_DATA", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_PARENT_HASH.7c8b3fff47": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PARENT_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_PARENT_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_PARENT_HASH.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_PARENT_HASH.7c8b3fff47", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_PARENT_HASH"], "alias": "fact_blocks_full_PARENT_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.900435, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_PARENT_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_PARENT_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere PARENT_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PARENT_HASH", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_PARENT_HASH__0_xX_0_9a_fA_F_.68e75bb757": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "PARENT_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_PARENT_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_ec1f989be0288f20b8d4b6f89a236c26.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_PARENT_HASH__0_xX_0_9a_fA_F_.68e75bb757", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_PARENT_HASH__0_xX_0_9a_fA_F_"], "alias": "fact_blocks_full_PARENT_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ec1f989be0288f20b8d4b6f89a236c26", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_ec1f989be0288f20b8d4b6f89a236c26", "store_failures": true}, "created_at": 1764018439.9025216, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_blocks_full_PARENT_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ec1f989be0288f20b8d4b6f89a236c26\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_ec1f989be0288f20b8d4b6f89a236c26.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(PARENT_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_blocks_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PARENT_HASH", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_GAS_USED__NUMBER__FLOAT.c2e16f1869": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "GAS_USED", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_GAS_USED__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_7257490fa00726f6684963a5c4601358.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_GAS_USED__NUMBER__FLOAT.c2e16f1869", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_GAS_USED__NUMBER__FLOAT"], "alias": "fact_blocks_full_GAS_USED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7257490fa00726f6684963a5c4601358", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_7257490fa00726f6684963a5c4601358", "store_failures": true}, "created_at": 1764018439.9076006, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_full_GAS_USED", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7257490fa00726f6684963a5c4601358\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_7257490fa00726f6684963a5c4601358.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'GAS_USED'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "GAS_USED", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_GAS_LIMIT.f2dbecd61f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "GAS_LIMIT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_GAS_LIMIT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_GAS_LIMIT.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_GAS_LIMIT.f2dbecd61f", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_GAS_LIMIT"], "alias": "fact_blocks_full_GAS_LIMIT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.9121678, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_GAS_LIMIT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_GAS_LIMIT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere GAS_LIMIT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "GAS_LIMIT", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_GAS_LIMIT__NUMBER__FLOAT.bdee5c4523": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "GAS_LIMIT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_GAS_LIMIT__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_b9e0c1eb185b2353ccc2a3835ae171a1.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_GAS_LIMIT__NUMBER__FLOAT.bdee5c4523", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_GAS_LIMIT__NUMBER__FLOAT"], "alias": "fact_blocks_full_GAS_LIMIT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b9e0c1eb185b2353ccc2a3835ae171a1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b9e0c1eb185b2353ccc2a3835ae171a1", "store_failures": true}, "created_at": 1764018439.9142992, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_full_GAS_LIMIT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b9e0c1eb185b2353ccc2a3835ae171a1\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_b9e0c1eb185b2353ccc2a3835ae171a1.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'GAS_LIMIT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "GAS_LIMIT", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_DIFFICULTY__NUMBER__FLOAT.4197d7bd8c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "DIFFICULTY", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_DIFFICULTY__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_38b3ee1ec7ee49097871a344b589fe6f.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_DIFFICULTY__NUMBER__FLOAT.4197d7bd8c", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_DIFFICULTY__NUMBER__FLOAT"], "alias": "fact_blocks_full_DIFFICULTY", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_38b3ee1ec7ee49097871a344b589fe6f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_38b3ee1ec7ee49097871a344b589fe6f", "store_failures": true}, "created_at": 1764018439.918993, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_full_DIFFICULTY", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_38b3ee1ec7ee49097871a344b589fe6f\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_38b3ee1ec7ee49097871a344b589fe6f.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'DIFFICULTY'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DIFFICULTY", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_SHA3_UNCLES.eec76f65cc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SHA3_UNCLES", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_SHA3_UNCLES", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_SHA3_UNCLES.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_SHA3_UNCLES.eec76f65cc", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_SHA3_UNCLES"], "alias": "fact_blocks_full_SHA3_UNCLES", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.9235, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_SHA3_UNCLES", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_SHA3_UNCLES.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere SHA3_UNCLES is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SHA3_UNCLES", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_UNCLE_BLOCKS.9b8edf4bfd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "UNCLE_BLOCKS", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_UNCLE_BLOCKS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_UNCLE_BLOCKS.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_UNCLE_BLOCKS.9b8edf4bfd", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_UNCLE_BLOCKS"], "alias": "fact_blocks_full_UNCLE_BLOCKS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.9258466, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_UNCLE_BLOCKS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_UNCLE_BLOCKS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere UNCLE_BLOCKS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "UNCLE_BLOCKS", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_NONCE__NUMBER__FLOAT.74da207967": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "NONCE", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_NONCE__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_c2de92e447fec6c831f422b58c2db1f0.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_NONCE__NUMBER__FLOAT.74da207967", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_NONCE__NUMBER__FLOAT"], "alias": "fact_blocks_full_NONCE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c2de92e447fec6c831f422b58c2db1f0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c2de92e447fec6c831f422b58c2db1f0", "store_failures": true}, "created_at": 1764018439.927981, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_full_NONCE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c2de92e447fec6c831f422b58c2db1f0\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_c2de92e447fec6c831f422b58c2db1f0.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'NONCE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NONCE", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_RECEIPTS_ROOT.6eb806e5a4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "RECEIPTS_ROOT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_RECEIPTS_ROOT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_RECEIPTS_ROOT.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_RECEIPTS_ROOT.6eb806e5a4", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_RECEIPTS_ROOT"], "alias": "fact_blocks_full_RECEIPTS_ROOT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.9325175, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_RECEIPTS_ROOT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_RECEIPTS_ROOT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere RECEIPTS_ROOT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "RECEIPTS_ROOT", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.2a0915d40b": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "RECEIPTS_ROOT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_RECEIPTS_ROOT__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_8136239179edd2c8e334e4d114073835.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.2a0915d40b", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_RECEIPTS_ROOT__0_xX_0_9a_fA_F_"], "alias": "fact_blocks_full_RECEIPTS_ROOT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8136239179edd2c8e334e4d114073835", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_8136239179edd2c8e334e4d114073835", "store_failures": true}, "created_at": 1764018439.935442, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_blocks_full_RECEIPTS_ROOT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8136239179edd2c8e334e4d114073835\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_8136239179edd2c8e334e4d114073835.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(RECEIPTS_ROOT, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_blocks_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "RECEIPTS_ROOT", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_STATE_ROOT.1c61a48d97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "STATE_ROOT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_STATE_ROOT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_STATE_ROOT.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_STATE_ROOT.1c61a48d97", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_STATE_ROOT"], "alias": "fact_blocks_full_STATE_ROOT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.940359, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_STATE_ROOT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_STATE_ROOT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere STATE_ROOT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "STATE_ROOT", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_STATE_ROOT__0_xX_0_9a_fA_F_.62e12dc84f": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "STATE_ROOT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_STATE_ROOT__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_37f641f8c8c8787b94cf1a28a7a55a1e.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_STATE_ROOT__0_xX_0_9a_fA_F_.62e12dc84f", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_STATE_ROOT__0_xX_0_9a_fA_F_"], "alias": "fact_blocks_full_STATE_ROOT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_37f641f8c8c8787b94cf1a28a7a55a1e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_37f641f8c8c8787b94cf1a28a7a55a1e", "store_failures": true}, "created_at": 1764018439.9424636, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_blocks_full_STATE_ROOT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_37f641f8c8c8787b94cf1a28a7a55a1e\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_37f641f8c8c8787b94cf1a28a7a55a1e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(STATE_ROOT, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_blocks_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "STATE_ROOT", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_TRANSACTIONS_ROOT.53175038a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRANSACTIONS_ROOT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_TRANSACTIONS_ROOT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_TRANSACTIONS_ROOT.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_TRANSACTIONS_ROOT.53175038a7", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_TRANSACTIONS_ROOT"], "alias": "fact_blocks_full_TRANSACTIONS_ROOT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.9475472, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_TRANSACTIONS_ROOT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_TRANSACTIONS_ROOT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere TRANSACTIONS_ROOT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRANSACTIONS_ROOT", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_TRANSACTIONS_ROOT__0_xX_0_9a_fA_F_.8d1b61bce1": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TRANSACTIONS_ROOT", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_TRANSACTIONS_ROOT__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_101b489b12fb6d1eed4d75ec0733b3f6.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_TRANSACTIONS_ROOT__0_xX_0_9a_fA_F_.8d1b61bce1", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_TRANSACTIONS_ROOT__0_xX_0_9a_fA_F_"], "alias": "fact_blocks_full_TRANSACTIONS_ROOT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_101b489b12fb6d1eed4d75ec0733b3f6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_101b489b12fb6d1eed4d75ec0733b3f6", "store_failures": true}, "created_at": 1764018439.9496677, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_blocks_full_TRANSACTIONS_ROOT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_101b489b12fb6d1eed4d75ec0733b3f6\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_101b489b12fb6d1eed4d75ec0733b3f6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TRANSACTIONS_ROOT, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_blocks_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRANSACTIONS_ROOT", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_LOGS_BLOOM.490b2e508d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LOGS_BLOOM", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_LOGS_BLOOM", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_LOGS_BLOOM.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_LOGS_BLOOM.490b2e508d", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_LOGS_BLOOM"], "alias": "fact_blocks_full_LOGS_BLOOM", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.954783, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_LOGS_BLOOM", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_LOGS_BLOOM.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere LOGS_BLOOM is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "LOGS_BLOOM", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_LOGS_BLOOM__0_xX_0_9a_fA_F_.73ad80f09c": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "LOGS_BLOOM", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_LOGS_BLOOM__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_df0340ccdb1fa5868ced14d4b56b67a2.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_LOGS_BLOOM__0_xX_0_9a_fA_F_.73ad80f09c", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_LOGS_BLOOM__0_xX_0_9a_fA_F_"], "alias": "fact_blocks_full_LOGS_BLOOM", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_df0340ccdb1fa5868ced14d4b56b67a2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_df0340ccdb1fa5868ced14d4b56b67a2", "store_failures": true}, "created_at": 1764018439.9569669, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_blocks_full_LOGS_BLOOM", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_df0340ccdb1fa5868ced14d4b56b67a2\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_df0340ccdb1fa5868ced14d4b56b67a2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(LOGS_BLOOM, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_blocks_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "LOGS_BLOOM", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_FACT_BLOCKS_ID.0ff5f55ac4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FACT_BLOCKS_ID", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_FACT_BLOCKS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_FACT_BLOCKS_ID.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_FACT_BLOCKS_ID.0ff5f55ac4", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_FACT_BLOCKS_ID"], "alias": "fact_blocks_full_FACT_BLOCKS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.962059, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_FACT_BLOCKS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_FACT_BLOCKS_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere FACT_BLOCKS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FACT_BLOCKS_ID", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_unique_test_gold__fact_blocks_full_FACT_BLOCKS_ID.484aaf9b82": {"test_metadata": {"name": "expect_column_values_to_be_unique", "kwargs": {"column_name": "FACT_BLOCKS_ID", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_unique_test_gold", "name": "dbt_expectations_expect_column_values_to_be_unique_test_gold__fact_blocks_full_FACT_BLOCKS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_883db6ac42daf39cb6957ea5b8b99901.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_unique_test_gold__fact_blocks_full_FACT_BLOCKS_ID.484aaf9b82", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_unique_test_gold__fact_blocks_full_FACT_BLOCKS_ID"], "alias": "fact_blocks_full_FACT_BLOCKS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_883db6ac42daf39cb6957ea5b8b99901", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_883db6ac42daf39cb6957ea5b8b99901", "store_failures": true}, "created_at": 1764018439.9641376, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_unique_test_gold.fact_blocks_full_FACT_BLOCKS_ID", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_883db6ac42daf39cb6957ea5b8b99901\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_unique", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_883db6ac42daf39cb6957ea5b8b99901.sql", "compiled": true, "compiled_code": "\n\n\n\n\nwith validation_errors as (\n\n select\n FACT_BLOCKS_ID\n from polygon.test_gold.fact_blocks_full\n where\n 1=1\n and \n not (\n FACT_BLOCKS_ID is null\n \n )\n\n\n \n group by\n FACT_BLOCKS_ID\n having count(*) > 1\n\n)\nselect * from validation_errors\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FACT_BLOCKS_ID", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_INSERTED_TIMESTAMP.48b29759a8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_INSERTED_TIMESTAMP.48b29759a8", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_INSERTED_TIMESTAMP"], "alias": "fact_blocks_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.9690313, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_INSERTED_TIMESTAMP__hour__2.3cb43deaa6": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_8cbe5c8c6189f8998aa868410a314e4d.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_INSERTED_TIMESTAMP__hour__2.3cb43deaa6", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_INSERTED_TIMESTAMP__hour__2"], "alias": "fact_blocks_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_8cbe5c8c6189f8998aa868410a314e4d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_8cbe5c8c6189f8998aa868410a314e4d", "store_failures": true}, "created_at": 1764018439.9711587, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_blocks_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_8cbe5c8c6189f8998aa868410a314e4d\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_row_va_8cbe5c8c6189f8998aa868410a314e4d.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_blocks_full\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e8c1190abb": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_2fc95ae4d17675d99094bef75b90bbbc.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e8c1190abb", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "fact_blocks_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2fc95ae4d17675d99094bef75b90bbbc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_2fc95ae4d17675d99094bef75b90bbbc", "store_failures": true}, "created_at": 1764018439.9785013, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2fc95ae4d17675d99094bef75b90bbbc\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_2fc95ae4d17675d99094bef75b90bbbc.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP.3996175adf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP.3996175adf", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "not_null_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP"], "alias": "fact_blocks_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018439.9833047, "relation_name": "polygon.not_null_test_gold.fact_blocks_full_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/not_null_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_blocks_full\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP__hour__2.d75178fa1c": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_1a05deb6a6018ce1d480fcc424f45d4a.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP__hour__2.d75178fa1c", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP__hour__2"], "alias": "fact_blocks_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_1a05deb6a6018ce1d480fcc424f45d4a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_1a05deb6a6018ce1d480fcc424f45d4a", "store_failures": true}, "created_at": 1764018439.98546, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_blocks_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_1a05deb6a6018ce1d480fcc424f45d4a\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_row_va_1a05deb6a6018ce1d480fcc424f45d4a.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_blocks_full\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.04ccc1e679": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_64fcb55ff89f507ea5cc624730ab5ed5.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.04ccc1e679", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "fact_blocks_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_64fcb55ff89f507ea5cc624730ab5ed5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_64fcb55ff89f507ea5cc624730ab5ed5", "store_failures": true}, "created_at": 1764018439.992909, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_blocks_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_64fcb55ff89f507ea5cc624730ab5ed5\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_expectations_expect_column_64fcb55ff89f507ea5cc624730ab5ed5.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MIX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXTRA_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_FEE_PER_GAS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DIFFICULTY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHA3_UNCLES' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNCLE_BLOCKS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIPTS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STATE_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTIONS_ROOT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGS_BLOOM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_BLOCKS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'MODIFIED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_blocks_full_BLOCK_NUMBER.b470c9b0e0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BLOCK_NUMBER"], "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__fact_blocks_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_46ca73ed0c6db225f701c5a7cddc1887.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_blocks_full_BLOCK_NUMBER.b470c9b0e0", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "dbt_utils_unique_combination_of_columns_test_gold__fact_blocks_full_BLOCK_NUMBER"], "alias": "fact_blocks_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_46ca73ed0c6db225f701c5a7cddc1887", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_46ca73ed0c6db225f701c5a7cddc1887", "store_failures": true}, "created_at": 1764018439.997552, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.fact_blocks_full_BLOCK_NUMBER", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_46ca73ed0c6db225f701c5a7cddc1887\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/dbt_utils_unique_combination_o_46ca73ed0c6db225f701c5a7cddc1887.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n BLOCK_NUMBER\n from polygon.test_gold.fact_blocks_full\n group by BLOCK_NUMBER\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_blocks_full_BLOCK_NUMBER.6f6c66623c": {"test_metadata": {"name": "sequence_gaps", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__fact_blocks_full')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_sequence_gaps_test_gold", "name": "fsc_evm_sequence_gaps_test_gold__fact_blocks_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_sequence_gaps_test_gold__fact_blocks_full_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml", "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_blocks_full_BLOCK_NUMBER.6f6c66623c", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "blocks", "fsc_evm_sequence_gaps_test_gold__fact_blocks_full_BLOCK_NUMBER"], "alias": "fact_blocks_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "BLOCK_TIMESTAMP < CURRENT_DATE - 1", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "BLOCK_TIMESTAMP < CURRENT_DATE - 1", "store_failures": true}, "created_at": 1764018440.002444, "relation_name": "polygon.fsc_evm_sequence_gaps_test_gold.fact_blocks_full_BLOCK_NUMBER", "raw_code": "{{ fsc_evm.test_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(where=\"BLOCK_TIMESTAMP < CURRENT_DATE - 1\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/blocks/test_gold__fact_blocks_full.yml/fsc_evm_sequence_gaps_test_gold__fact_blocks_full_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n\n\nWITH source AS (\n SELECT\n \n BLOCK_NUMBER,\n LAG(\n BLOCK_NUMBER,\n 1\n ) over (\n \n ORDER BY\n BLOCK_NUMBER ASC\n ) AS prev_BLOCK_NUMBER\n FROM\n (select * from polygon.test_gold.fact_blocks_full where BLOCK_TIMESTAMP < CURRENT_DATE - 1) dbt_subquery\n)\nSELECT\n \n prev_BLOCK_NUMBER,\n BLOCK_NUMBER,\n BLOCK_NUMBER - prev_BLOCK_NUMBER\n - 1 AS gap\nFROM\n source\nWHERE\n BLOCK_NUMBER - prev_BLOCK_NUMBER <> 1\n\n AND BLOCK_NUMBER NOT IN (\n SELECT block_number :: INT + 1\n FROM observability.exclusion_list\n UNION ALL\n SELECT block_number :: INT - 1\n FROM observability.exclusion_list\n )\n\nORDER BY\n gap DESC \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_blocks_full", "attached_node": "model.fsc_evm.test_gold__fact_blocks_full"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_BLOCK_NUMBER.3da7a0c428": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_native_transfers_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_native_transfers_full_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_BLOCK_NUMBER.3da7a0c428", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "not_null_test_gold__ez_native_transfers_full_BLOCK_NUMBER"], "alias": "ez_native_transfers_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.049782, "relation_name": "polygon.not_null_test_gold.ez_native_transfers_full_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml/not_null_test_gold__ez_native_transfers_full_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_native_transfers_full\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__ez_native_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.bce0936e10": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_efb8249a9efb67276e0bb3a74b628a46.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.bce0936e10", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "ez_native_transfers_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_efb8249a9efb67276e0bb3a74b628a46", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_efb8249a9efb67276e0bb3a74b628a46", "store_failures": true}, "created_at": 1764018440.0521004, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_native_transfers_full_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_efb8249a9efb67276e0bb3a74b628a46\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml/dbt_expectations_expect_column_efb8249a9efb67276e0bb3a74b628a46.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_NATIVE_TRANSFERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__ez_native_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_full"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP.9bff42bf90": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP.9bff42bf90", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "not_null_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP"], "alias": "ez_native_transfers_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.0574079, "relation_name": "polygon.not_null_test_gold.ez_native_transfers_full_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml/not_null_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_native_transfers_full\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_native_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP__hour__3.21a3a75c8f": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 3, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP__hour__3", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_8a3c76a35489c22d2cc8fc5844245b47.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP__hour__3.21a3a75c8f", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP__hour__3"], "alias": "ez_native_transfers_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_8a3c76a35489c22d2cc8fc5844245b47", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_8a3c76a35489c22d2cc8fc5844245b47", "store_failures": true}, "created_at": 1764018440.0595791, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_native_transfers_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_8a3c76a35489c22d2cc8fc5844245b47\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml/dbt_expectations_expect_row_va_8a3c76a35489c22d2cc8fc5844245b47.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.ez_native_transfers_full\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_native_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b52e7b4dcf": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_73a1346eac6ff84f85a1e5a56c262b71.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b52e7b4dcf", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "ez_native_transfers_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_73a1346eac6ff84f85a1e5a56c262b71", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_73a1346eac6ff84f85a1e5a56c262b71", "store_failures": true}, "created_at": 1764018440.0673733, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_native_transfers_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_73a1346eac6ff84f85a1e5a56c262b71\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml/dbt_expectations_expect_column_73a1346eac6ff84f85a1e5a56c262b71.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_NATIVE_TRANSFERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_native_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_full"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_TX_HASH.e069256b19": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_native_transfers_full_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_native_transfers_full_TX_HASH.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_TX_HASH.e069256b19", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "not_null_test_gold__ez_native_transfers_full_TX_HASH"], "alias": "ez_native_transfers_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.07282, "relation_name": "polygon.not_null_test_gold.ez_native_transfers_full_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml/not_null_test_gold__ez_native_transfers_full_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_native_transfers_full\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__ez_native_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_native_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.15293d5591": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_native_transfers_full_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_36d9e73376e51ae910332939da7ceb51.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_native_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.15293d5591", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_native_transfers_full_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "ez_native_transfers_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_36d9e73376e51ae910332939da7ceb51", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_36d9e73376e51ae910332939da7ceb51", "store_failures": true}, "created_at": 1764018440.075022, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_native_transfers_full_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_36d9e73376e51ae910332939da7ceb51\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml/dbt_expectations_expect_column_36d9e73376e51ae910332939da7ceb51.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_native_transfers_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__ez_native_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_full"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_FROM_ADDRESS.f1de7fc788": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_native_transfers_full_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_native_transfers_full_FROM_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_FROM_ADDRESS.f1de7fc788", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "not_null_test_gold__ez_native_transfers_full_FROM_ADDRESS"], "alias": "ez_native_transfers_full_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.0804992, "relation_name": "polygon.not_null_test_gold.ez_native_transfers_full_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml/not_null_test_gold__ez_native_transfers_full_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_native_transfers_full\nwhere FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FROM_ADDRESS", "file_key_name": "models.test_gold__ez_native_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_full"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_AMOUNT.b8f4300dc9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_native_transfers_full_AMOUNT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_native_transfers_full_AMOUNT.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_AMOUNT.b8f4300dc9", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "not_null_test_gold__ez_native_transfers_full_AMOUNT"], "alias": "ez_native_transfers_full_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.0826874, "relation_name": "polygon.not_null_test_gold.ez_native_transfers_full_AMOUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml/not_null_test_gold__ez_native_transfers_full_AMOUNT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_native_transfers_full\nwhere AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT", "file_key_name": "models.test_gold__ez_native_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_AMOUNT__NUMBER__FLOAT.7c64e2a5d0": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_AMOUNT__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_f2d202dcfea331f68781989223d49636.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_AMOUNT__NUMBER__FLOAT.7c64e2a5d0", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_AMOUNT__NUMBER__FLOAT"], "alias": "ez_native_transfers_full_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f2d202dcfea331f68781989223d49636", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f2d202dcfea331f68781989223d49636", "store_failures": true}, "created_at": 1764018440.0848246, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_native_transfers_full_AMOUNT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f2d202dcfea331f68781989223d49636\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml/dbt_expectations_expect_column_f2d202dcfea331f68781989223d49636.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_NATIVE_TRANSFERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'AMOUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT", "file_key_name": "models.test_gold__ez_native_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_native_transfers_full_EZ_NATIVE_TRANSFERS_ID.8e978e6b17": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["EZ_NATIVE_TRANSFERS_ID"], "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__ez_native_transfers_full_EZ_NATIVE_TRANSFERS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_bab8ba8d2be2ccf38420c229ac4ac9a0.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_native_transfers_full_EZ_NATIVE_TRANSFERS_ID.8e978e6b17", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "dbt_utils_unique_combination_of_columns_test_gold__ez_native_transfers_full_EZ_NATIVE_TRANSFERS_ID"], "alias": "ez_native_transfers_full_EZ_NATIVE_TRANSFERS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bab8ba8d2be2ccf38420c229ac4ac9a0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bab8ba8d2be2ccf38420c229ac4ac9a0", "store_failures": true}, "created_at": 1764018440.0897753, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.ez_native_transfers_full_EZ_NATIVE_TRANSFERS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bab8ba8d2be2ccf38420c229ac4ac9a0\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_full.yml/dbt_utils_unique_combination_o_bab8ba8d2be2ccf38420c229ac4ac9a0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n EZ_NATIVE_TRANSFERS_ID\n from polygon.test_gold.ez_native_transfers_full\n group by EZ_NATIVE_TRANSFERS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_native_transfers_full", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_full"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_BLOCK_NUMBER.277bef24ac": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_native_transfers_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_native_transfers_recent_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_BLOCK_NUMBER.277bef24ac", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "not_null_test_gold__ez_native_transfers_recent_BLOCK_NUMBER"], "alias": "ez_native_transfers_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.0962503, "relation_name": "polygon.not_null_test_gold.ez_native_transfers_recent_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml/not_null_test_gold__ez_native_transfers_recent_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_native_transfers_recent\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__ez_native_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.81a99604c2": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_10b5cc452d672cc8981a56b86dc5603b.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.81a99604c2", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "ez_native_transfers_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_10b5cc452d672cc8981a56b86dc5603b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_10b5cc452d672cc8981a56b86dc5603b", "store_failures": true}, "created_at": 1764018440.098674, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_native_transfers_recent_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_10b5cc452d672cc8981a56b86dc5603b\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml/dbt_expectations_expect_column_10b5cc452d672cc8981a56b86dc5603b.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_NATIVE_TRANSFERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__ez_native_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_recent"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP.3873d5cdc6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP.3873d5cdc6", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "not_null_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP"], "alias": "ez_native_transfers_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.1036043, "relation_name": "polygon.not_null_test_gold.ez_native_transfers_recent_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml/not_null_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_native_transfers_recent\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_native_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP__hour__3.06e5f301c9": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 3, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP__hour__3", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_8c517cea4238bd1ee085222a8699ca5a.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP__hour__3.06e5f301c9", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP__hour__3"], "alias": "ez_native_transfers_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_8c517cea4238bd1ee085222a8699ca5a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_8c517cea4238bd1ee085222a8699ca5a", "store_failures": true}, "created_at": 1764018440.1057289, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_native_transfers_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_8c517cea4238bd1ee085222a8699ca5a\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml/dbt_expectations_expect_row_va_8c517cea4238bd1ee085222a8699ca5a.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.ez_native_transfers_recent\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_native_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c85b3e577e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_e19173008c8da961262bf490c0d5e7a7.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c85b3e577e", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "ez_native_transfers_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e19173008c8da961262bf490c0d5e7a7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_e19173008c8da961262bf490c0d5e7a7", "store_failures": true}, "created_at": 1764018440.113229, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_native_transfers_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e19173008c8da961262bf490c0d5e7a7\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml/dbt_expectations_expect_column_e19173008c8da961262bf490c0d5e7a7.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_NATIVE_TRANSFERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_native_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_recent"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_TX_HASH.9e5afe0aff": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_native_transfers_recent_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_native_transfers_recent_TX_HASH.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_TX_HASH.9e5afe0aff", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "not_null_test_gold__ez_native_transfers_recent_TX_HASH"], "alias": "ez_native_transfers_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.1180675, "relation_name": "polygon.not_null_test_gold.ez_native_transfers_recent_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml/not_null_test_gold__ez_native_transfers_recent_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_native_transfers_recent\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__ez_native_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_native_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.b4ae42a72b": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_native_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_1338646763eca4fbcb98b3d59a7a84a4.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_native_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.b4ae42a72b", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_native_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "ez_native_transfers_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1338646763eca4fbcb98b3d59a7a84a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_1338646763eca4fbcb98b3d59a7a84a4", "store_failures": true}, "created_at": 1764018440.1201837, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_native_transfers_recent_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1338646763eca4fbcb98b3d59a7a84a4\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml/dbt_expectations_expect_column_1338646763eca4fbcb98b3d59a7a84a4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_native_transfers_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__ez_native_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_recent"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_FROM_ADDRESS.6bea14a19a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_native_transfers_recent_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_native_transfers_recent_FROM_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_FROM_ADDRESS.6bea14a19a", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "not_null_test_gold__ez_native_transfers_recent_FROM_ADDRESS"], "alias": "ez_native_transfers_recent_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.1255481, "relation_name": "polygon.not_null_test_gold.ez_native_transfers_recent_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml/not_null_test_gold__ez_native_transfers_recent_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_native_transfers_recent\nwhere FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FROM_ADDRESS", "file_key_name": "models.test_gold__ez_native_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_recent"}, "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_AMOUNT.962946cb51": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_native_transfers_recent_AMOUNT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_native_transfers_recent_AMOUNT.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_AMOUNT.962946cb51", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "not_null_test_gold__ez_native_transfers_recent_AMOUNT"], "alias": "ez_native_transfers_recent_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.1276455, "relation_name": "polygon.not_null_test_gold.ez_native_transfers_recent_AMOUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml/not_null_test_gold__ez_native_transfers_recent_AMOUNT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_native_transfers_recent\nwhere AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT", "file_key_name": "models.test_gold__ez_native_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_AMOUNT__NUMBER__FLOAT.b3aafcb7e6": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_AMOUNT__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_20e26d57d9f249d8d8a18b74629bc2e8.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_AMOUNT__NUMBER__FLOAT.b3aafcb7e6", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_AMOUNT__NUMBER__FLOAT"], "alias": "ez_native_transfers_recent_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_20e26d57d9f249d8d8a18b74629bc2e8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_20e26d57d9f249d8d8a18b74629bc2e8", "store_failures": true}, "created_at": 1764018440.1297197, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_native_transfers_recent_AMOUNT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_20e26d57d9f249d8d8a18b74629bc2e8\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml/dbt_expectations_expect_column_20e26d57d9f249d8d8a18b74629bc2e8.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRACE_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_NATIVE_TRANSFERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'AMOUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT", "file_key_name": "models.test_gold__ez_native_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_native_transfers_recent_EZ_NATIVE_TRANSFERS_ID.c7c417aa6a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["EZ_NATIVE_TRANSFERS_ID"], "model": "{{ get_where_subquery(ref('test_gold__ez_native_transfers_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__ez_native_transfers_recent_EZ_NATIVE_TRANSFERS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_007c51f480f0d65ddfcb61320499bf41.sql", "original_file_path": "models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_native_transfers_recent_EZ_NATIVE_TRANSFERS_ID.c7c417aa6a", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "ez_native_transfers", "dbt_utils_unique_combination_of_columns_test_gold__ez_native_transfers_recent_EZ_NATIVE_TRANSFERS_ID"], "alias": "ez_native_transfers_recent_EZ_NATIVE_TRANSFERS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_007c51f480f0d65ddfcb61320499bf41", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_007c51f480f0d65ddfcb61320499bf41", "store_failures": true}, "created_at": 1764018440.1347272, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.ez_native_transfers_recent_EZ_NATIVE_TRANSFERS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_007c51f480f0d65ddfcb61320499bf41\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_native_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_native_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/ez_native_transfers/test_gold__ez_native_transfers_recent.yml/dbt_utils_unique_combination_o_007c51f480f0d65ddfcb61320499bf41.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n EZ_NATIVE_TRANSFERS_ID\n from polygon.test_gold.ez_native_transfers_recent\n group by EZ_NATIVE_TRANSFERS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_native_transfers_recent", "attached_node": "model.fsc_evm.test_gold__ez_native_transfers_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_BLOCK_NUMBER.a56487d0d2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_BLOCK_NUMBER.a56487d0d2", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_BLOCK_NUMBER"], "alias": "fact_transactions_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.1426206, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_BLOCK_NUMBER__NUMBER__FLOAT.5d89afa477": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_34a365f2192aca59b97cb208b2e7627a.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_BLOCK_NUMBER__NUMBER__FLOAT.5d89afa477", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "fact_transactions_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_34a365f2192aca59b97cb208b2e7627a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_34a365f2192aca59b97cb208b2e7627a", "store_failures": true}, "created_at": 1764018440.1447854, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_transactions_recent_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_34a365f2192aca59b97cb208b2e7627a\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/dbt_expectations_expect_column_34a365f2192aca59b97cb208b2e7627a.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('EFFECTIVE_GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CUMULATIVE_GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAX_FEE_PER_GAS' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAX_PRIORITY_FEE_PER_GAS' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('Y_PARITY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCESS_LIST' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('R' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('S' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('V' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_TRANSACTIONS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP.0dfa5d9bbc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP.0dfa5d9bbc", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP"], "alias": "fact_transactions_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.1494162, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.cffc3ef224": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_331f0f8877535bf635e26c37abe02010.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.cffc3ef224", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "fact_transactions_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_331f0f8877535bf635e26c37abe02010", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_331f0f8877535bf635e26c37abe02010", "store_failures": true}, "created_at": 1764018440.151783, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_transactions_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_331f0f8877535bf635e26c37abe02010\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/dbt_expectations_expect_column_331f0f8877535bf635e26c37abe02010.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('EFFECTIVE_GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CUMULATIVE_GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAX_FEE_PER_GAS' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAX_PRIORITY_FEE_PER_GAS' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('Y_PARITY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCESS_LIST' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('R' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('S' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('V' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_TRANSACTIONS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP__hour__2.e7899727e4": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_6f79ec30b322f5f5d7ddef43ba441367.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP__hour__2.e7899727e4", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP__hour__2"], "alias": "fact_transactions_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_6f79ec30b322f5f5d7ddef43ba441367", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_6f79ec30b322f5f5d7ddef43ba441367", "store_failures": true}, "created_at": 1764018440.156317, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_transactions_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_6f79ec30b322f5f5d7ddef43ba441367\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/dbt_expectations_expect_row_va_6f79ec30b322f5f5d7ddef43ba441367.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_transactions_recent\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_HASH.2562021784": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_TX_HASH.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_HASH.2562021784", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_TX_HASH"], "alias": "fact_transactions_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.1640399, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_TX_HASH__0_xX_0_9a_fA_F_.6c5a3d3af9": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_eadae1c5a96c6b7e31311a8c4c40f84b.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_TX_HASH__0_xX_0_9a_fA_F_.6c5a3d3af9", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "fact_transactions_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_eadae1c5a96c6b7e31311a8c4c40f84b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_eadae1c5a96c6b7e31311a8c4c40f84b", "store_failures": true}, "created_at": 1764018440.166186, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_transactions_recent_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_eadae1c5a96c6b7e31311a8c4c40f84b\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/dbt_expectations_expect_column_eadae1c5a96c6b7e31311a8c4c40f84b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_transactions_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_FROM_ADDRESS.f6687a1d92": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_FROM_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_FROM_ADDRESS.f6687a1d92", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_FROM_ADDRESS"], "alias": "fact_transactions_recent_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.1716177, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FROM_ADDRESS", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.9235dce9b7": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_a253b4c0aeb72434378c4cdf54b337bc.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.9235dce9b7", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "fact_transactions_recent_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a253b4c0aeb72434378c4cdf54b337bc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_a253b4c0aeb72434378c4cdf54b337bc", "store_failures": true}, "created_at": 1764018440.173716, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_transactions_recent_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a253b4c0aeb72434378c4cdf54b337bc\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/dbt_expectations_expect_column_a253b4c0aeb72434378c4cdf54b337bc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_transactions_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FROM_ADDRESS", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.cc531991fa": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TO_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_2b321ffc9c93316a23db58e415191742.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.cc531991fa", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "fact_transactions_recent_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2b321ffc9c93316a23db58e415191742", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "TO_ADDRESS IS NOT NULL", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "TO_ADDRESS IS NOT NULL", "alias": "dbt_expectations_expect_column_2b321ffc9c93316a23db58e415191742", "store_failures": true}, "created_at": 1764018440.1797807, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_transactions_recent_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(where=\"TO_ADDRESS IS NOT NULL\",alias=\"dbt_expectations_expect_column_2b321ffc9c93316a23db58e415191742\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/dbt_expectations_expect_column_2b321ffc9c93316a23db58e415191742.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from (select * from polygon.test_gold.fact_transactions_recent where TO_ADDRESS IS NOT NULL) dbt_subquery\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TO_ADDRESS", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_ORIGIN_FUNCTION_SIGNATURE.55dc566734": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_trans_e5e834721df086107a6f45cee540d961.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_ORIGIN_FUNCTION_SIGNATURE.55dc566734", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_ORIGIN_FUNCTION_SIGNATURE"], "alias": "fact_transactions_recent_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__fact_trans_e5e834721df086107a6f45cee540d961", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__fact_trans_e5e834721df086107a6f45cee540d961", "store_failures": true}, "created_at": 1764018440.1849296, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__fact_trans_e5e834721df086107a6f45cee540d961\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_trans_e5e834721df086107a6f45cee540d961.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE.e5b387a31d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VALUE", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_VALUE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_VALUE.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE.e5b387a31d", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_VALUE"], "alias": "fact_transactions_recent_VALUE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.186993, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_VALUE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_VALUE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere VALUE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VALUE", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE_PRECISE_RAW.5cee0b299e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VALUE_PRECISE_RAW", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_VALUE_PRECISE_RAW", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_VALUE_PRECISE_RAW.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE_PRECISE_RAW.5cee0b299e", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_VALUE_PRECISE_RAW"], "alias": "fact_transactions_recent_VALUE_PRECISE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.189016, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_VALUE_PRECISE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_VALUE_PRECISE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere VALUE_PRECISE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VALUE_PRECISE_RAW", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE_PRECISE.3b69d58f94": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VALUE_PRECISE", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_VALUE_PRECISE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_VALUE_PRECISE.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE_PRECISE.3b69d58f94", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_VALUE_PRECISE"], "alias": "fact_transactions_recent_VALUE_PRECISE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.19103, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_VALUE_PRECISE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_VALUE_PRECISE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere VALUE_PRECISE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VALUE_PRECISE", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_FEE.fa909d23b7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_TX_FEE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_TX_FEE.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_FEE.fa909d23b7", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_TX_FEE"], "alias": "fact_transactions_recent_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.193075, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_TX_FEE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_TX_FEE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere TX_FEE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_FEE_PRECISE.1ca90b56ab": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_FEE_PRECISE", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_TX_FEE_PRECISE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_TX_FEE_PRECISE.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_FEE_PRECISE.1ca90b56ab", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_TX_FEE_PRECISE"], "alias": "fact_transactions_recent_TX_FEE_PRECISE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.1951292, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_TX_FEE_PRECISE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_TX_FEE_PRECISE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere TX_FEE_PRECISE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE_PRECISE", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_SUCCEEDED.8ed2d84f45": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_TX_SUCCEEDED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_TX_SUCCEEDED.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_SUCCEEDED.8ed2d84f45", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_TX_SUCCEEDED"], "alias": "fact_transactions_recent_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.1975102, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_TX_SUCCEEDED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_TX_SUCCEEDED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_SUCCEEDED", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_TYPE.9ffebdfc52": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_TYPE", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_TX_TYPE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_TX_TYPE.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_TYPE.9ffebdfc52", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_TX_TYPE"], "alias": "fact_transactions_recent_TX_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.1995904, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_TX_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_TX_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere TX_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_TYPE", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_NONCE.151663a822": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NONCE", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_NONCE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_NONCE.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_NONCE.151663a822", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_NONCE"], "alias": "fact_transactions_recent_NONCE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.201683, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_NONCE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_NONCE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere NONCE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NONCE", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_POSITION.459ccef5c1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_TX_POSITION.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_POSITION.459ccef5c1", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_TX_POSITION"], "alias": "fact_transactions_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.203746, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_TX_POSITION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere TX_POSITION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_TX_POSITION__NUMBER__FLOAT.4b5af30d3b": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_TX_POSITION__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_4d6ee1a6284cff078dfe9eb33974c102.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_TX_POSITION__NUMBER__FLOAT.4b5af30d3b", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_TX_POSITION__NUMBER__FLOAT"], "alias": "fact_transactions_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4d6ee1a6284cff078dfe9eb33974c102", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_4d6ee1a6284cff078dfe9eb33974c102", "store_failures": true}, "created_at": 1764018440.2058432, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_transactions_recent_TX_POSITION", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4d6ee1a6284cff078dfe9eb33974c102\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/dbt_expectations_expect_column_4d6ee1a6284cff078dfe9eb33974c102.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('EFFECTIVE_GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CUMULATIVE_GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAX_FEE_PER_GAS' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAX_PRIORITY_FEE_PER_GAS' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('Y_PARITY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCESS_LIST' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('R' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('S' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('V' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_TRANSACTIONS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_POSITION'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_INPUT_DATA.0c71a3add2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INPUT_DATA", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_INPUT_DATA", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_INPUT_DATA.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_INPUT_DATA.0c71a3add2", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_INPUT_DATA"], "alias": "fact_transactions_recent_INPUT_DATA", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.2110105, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_INPUT_DATA", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_INPUT_DATA.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere INPUT_DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INPUT_DATA", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_GAS_LIMIT.0570943628": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "GAS_LIMIT", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_GAS_LIMIT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_GAS_LIMIT.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_GAS_LIMIT.0570943628", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_GAS_LIMIT"], "alias": "fact_transactions_recent_GAS_LIMIT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.213167, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_GAS_LIMIT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_GAS_LIMIT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere GAS_LIMIT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "GAS_LIMIT", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_CUMULATIVE_GAS_USED.53f3097347": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CUMULATIVE_GAS_USED", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_CUMULATIVE_GAS_USED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_trans_97edddd527a6075b96423045c5d8595f.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_CUMULATIVE_GAS_USED.53f3097347", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_CUMULATIVE_GAS_USED"], "alias": "fact_transactions_recent_CUMULATIVE_GAS_USED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__fact_trans_97edddd527a6075b96423045c5d8595f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__fact_trans_97edddd527a6075b96423045c5d8595f", "store_failures": true}, "created_at": 1764018440.2153196, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_CUMULATIVE_GAS_USED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__fact_trans_97edddd527a6075b96423045c5d8595f\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_trans_97edddd527a6075b96423045c5d8595f.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere CUMULATIVE_GAS_USED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CUMULATIVE_GAS_USED", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_R.25ff796006": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "R", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_R", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_R.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_R.25ff796006", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_R"], "alias": "fact_transactions_recent_R", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.217411, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_R", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_R.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere R is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "R", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_S.415d28f531": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "S", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_S", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_S.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_S.415d28f531", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_S"], "alias": "fact_transactions_recent_S", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.2194777, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_S", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_S.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere S is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "S", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_V.c6c8b50102": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "V", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_V", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_V.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_V.c6c8b50102", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_V"], "alias": "fact_transactions_recent_V", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.2218783, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_V", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_V.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere V is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "V", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_FACT_TRANSACTIONS_ID.e7b3d89825": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FACT_TRANSACTIONS_ID", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_FACT_TRANSACTIONS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_trans_7301f01548ea248ece17a63a7c9ee8d9.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_FACT_TRANSACTIONS_ID.e7b3d89825", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_FACT_TRANSACTIONS_ID"], "alias": "fact_transactions_recent_FACT_TRANSACTIONS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__fact_trans_7301f01548ea248ece17a63a7c9ee8d9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__fact_trans_7301f01548ea248ece17a63a7c9ee8d9", "store_failures": true}, "created_at": 1764018440.2239838, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_FACT_TRANSACTIONS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__fact_trans_7301f01548ea248ece17a63a7c9ee8d9\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_trans_7301f01548ea248ece17a63a7c9ee8d9.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere FACT_TRANSACTIONS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FACT_TRANSACTIONS_ID", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP.12f51bf377": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP.12f51bf377", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP"], "alias": "fact_transactions_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.2260962, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP__hour__2.81da35ef44": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_b61a3af152035a8f3ae801595ceb7c53.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP__hour__2.81da35ef44", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP__hour__2"], "alias": "fact_transactions_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_b61a3af152035a8f3ae801595ceb7c53", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_b61a3af152035a8f3ae801595ceb7c53", "store_failures": true}, "created_at": 1764018440.2282195, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_transactions_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_b61a3af152035a8f3ae801595ceb7c53\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/dbt_expectations_expect_row_va_b61a3af152035a8f3ae801595ceb7c53.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_transactions_recent\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP.82fda9d680": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP.82fda9d680", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP"], "alias": "fact_transactions_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.236042, "relation_name": "polygon.not_null_test_gold.fact_transactions_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/not_null_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_recent\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP__hour__2.68cd5b81d5": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_f8b56f7612e3484e779b4d8581fd86b3.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP__hour__2.68cd5b81d5", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP__hour__2"], "alias": "fact_transactions_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_f8b56f7612e3484e779b4d8581fd86b3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_f8b56f7612e3484e779b4d8581fd86b3", "store_failures": true}, "created_at": 1764018440.2381656, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_transactions_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_f8b56f7612e3484e779b4d8581fd86b3\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/dbt_expectations_expect_row_va_f8b56f7612e3484e779b4d8581fd86b3.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_transactions_recent\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_transactions_recent_TX_HASH.07b6bc79fa": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["TX_HASH"], "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__fact_transactions_recent_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_26123e65483a6fbfc89045a0907a6e9d.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_transactions_recent_TX_HASH.07b6bc79fa", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_utils_unique_combination_of_columns_test_gold__fact_transactions_recent_TX_HASH"], "alias": "fact_transactions_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_26123e65483a6fbfc89045a0907a6e9d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_26123e65483a6fbfc89045a0907a6e9d", "store_failures": true}, "created_at": 1764018440.2458124, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.fact_transactions_recent_TX_HASH", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_26123e65483a6fbfc89045a0907a6e9d\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/dbt_utils_unique_combination_o_26123e65483a6fbfc89045a0907a6e9d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n TX_HASH\n from polygon.test_gold.fact_transactions_recent\n group by TX_HASH\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_transactions_recent_TX_POSITION__BLOCK_NUMBER.dadcf142a0": {"test_metadata": {"name": "sequence_gaps", "kwargs": {"partition_by": ["BLOCK_NUMBER"], "column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_sequence_gaps_test_gold", "name": "fsc_evm_sequence_gaps_test_gold__fact_transactions_recent_TX_POSITION__BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_sequence_gaps_test_gol_38194860c0ea29db2378fa73a50c5378.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_transactions_recent_TX_POSITION__BLOCK_NUMBER.dadcf142a0", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "fsc_evm_sequence_gaps_test_gold__fact_transactions_recent_TX_POSITION__BLOCK_NUMBER"], "alias": "fact_transactions_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "fsc_evm_sequence_gaps_test_gol_38194860c0ea29db2378fa73a50c5378", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "fsc_evm_sequence_gaps_test_gol_38194860c0ea29db2378fa73a50c5378", "store_failures": true}, "created_at": 1764018440.2507482, "relation_name": "polygon.fsc_evm_sequence_gaps_test_gold.fact_transactions_recent_TX_POSITION", "raw_code": "{{ fsc_evm.test_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(alias=\"fsc_evm_sequence_gaps_test_gol_38194860c0ea29db2378fa73a50c5378\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/fsc_evm_sequence_gaps_test_gol_38194860c0ea29db2378fa73a50c5378.sql", "compiled": true, "compiled_code": "\n\n\nWITH source AS (\n SELECT\n BLOCK_NUMBER,\n TX_POSITION,\n LAG(\n TX_POSITION,\n 1\n ) over (\n PARTITION BY BLOCK_NUMBER\n ORDER BY\n TX_POSITION ASC\n ) AS prev_TX_POSITION\n FROM\n polygon.test_gold.fact_transactions_recent\n)\nSELECT\n BLOCK_NUMBER,\n prev_TX_POSITION,\n TX_POSITION,\n TX_POSITION - prev_TX_POSITION\n - 1 AS gap\nFROM\n source\nWHERE\n TX_POSITION - prev_TX_POSITION <> 1\n\nORDER BY\n gap DESC \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.txs_match_blocks_test_gold__fact_transactions_recent_ref_test_gold__fact_blocks_recent_.788e86d48f": {"test_metadata": {"name": "txs_match_blocks", "kwargs": {"blocks_model": "ref('test_gold__fact_blocks_recent')", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "txs_match_blocks_test_gold", "name": "txs_match_blocks_test_gold__fact_transactions_recent_ref_test_gold__fact_blocks_recent_", "resource_type": "test", "package_name": "fsc_evm", "path": "txs_match_blocks_test_gold__fa_86d8bf6535b8f439fcf373338a619faf.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml", "unique_id": "test.fsc_evm.txs_match_blocks_test_gold__fact_transactions_recent_ref_test_gold__fact_blocks_recent_.788e86d48f", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "txs_match_blocks_test_gold__fact_transactions_recent_ref_test_gold__fact_blocks_recent_"], "alias": "fact_transactions_recent_ref_test_gold", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "txs_match_blocks_test_gold__fa_86d8bf6535b8f439fcf373338a619faf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "txs_match_blocks_test_gold__fa_86d8bf6535b8f439fcf373338a619faf", "store_failures": true}, "created_at": 1764018440.2958813, "relation_name": "polygon.txs_match_blocks_test_gold.fact_transactions_recent_ref_test_gold", "raw_code": "{{ test_txs_match_blocks(**_dbt_generic_test_kwargs) }}{{ config(alias=\"txs_match_blocks_test_gold__fa_86d8bf6535b8f439fcf373338a619faf\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_recent", "package": null, "version": null}, {"name": "test_gold__fact_transactions_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_txs_match_blocks", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_recent", "model.fsc_evm.test_gold__fact_transactions_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_recent.yml/txs_match_blocks_test_gold__fa_86d8bf6535b8f439fcf373338a619faf.sql", "compiled": true, "compiled_code": "\nWITH count_txs AS (\n SELECT\n block_number,\n COUNT(*) AS record_count\n FROM\n polygon.test_gold.fact_transactions_recent\n GROUP BY\n ALL\n),\nblock_txs AS (\n SELECT\n block_number,\n tx_count AS expected_count\n FROM\n polygon.test_gold.fact_blocks_recent\n)\nSELECT\n block_number,\n record_count AS actual_count,\n expected_count\nFROM\n block_txs\n LEFT JOIN count_txs USING (block_number)\nWHERE\n (record_count != expected_count\n OR expected_count IS NULL)\n AND block_number != 0\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_transactions_recent", "attached_node": "model.fsc_evm.test_gold__fact_transactions_recent"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_BLOCK_NUMBER.d91075d3e5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_BLOCK_NUMBER.d91075d3e5", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_BLOCK_NUMBER"], "alias": "fact_transactions_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3051176, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_BLOCK_NUMBER__NUMBER__FLOAT.f75d3f5f2b": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_d0f6e497d7f1d745fbf1022afabf4615.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_BLOCK_NUMBER__NUMBER__FLOAT.f75d3f5f2b", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "fact_transactions_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d0f6e497d7f1d745fbf1022afabf4615", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d0f6e497d7f1d745fbf1022afabf4615", "store_failures": true}, "created_at": 1764018440.3072536, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_transactions_full_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d0f6e497d7f1d745fbf1022afabf4615\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/dbt_expectations_expect_column_d0f6e497d7f1d745fbf1022afabf4615.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('EFFECTIVE_GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CUMULATIVE_GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAX_FEE_PER_GAS' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAX_PRIORITY_FEE_PER_GAS' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('Y_PARITY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCESS_LIST' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('R' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('S' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('V' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_TRANSACTIONS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_BLOCK_TIMESTAMP.20e3f64edd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_BLOCK_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_BLOCK_TIMESTAMP.20e3f64edd", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_BLOCK_TIMESTAMP"], "alias": "fact_transactions_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3120449, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e339fe42ef": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_55a6796a4a9be592d14534d1338b3964.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e339fe42ef", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "fact_transactions_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_55a6796a4a9be592d14534d1338b3964", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_55a6796a4a9be592d14534d1338b3964", "store_failures": true}, "created_at": 1764018440.3141599, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_transactions_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_55a6796a4a9be592d14534d1338b3964\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/dbt_expectations_expect_column_55a6796a4a9be592d14534d1338b3964.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('EFFECTIVE_GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CUMULATIVE_GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAX_FEE_PER_GAS' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAX_PRIORITY_FEE_PER_GAS' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('Y_PARITY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCESS_LIST' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('R' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('S' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('V' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_TRANSACTIONS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_BLOCK_TIMESTAMP__hour__2.b2b7b2723b": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_BLOCK_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_48d7dfc9938487305d3956d8344dda5d.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_BLOCK_TIMESTAMP__hour__2.b2b7b2723b", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_BLOCK_TIMESTAMP__hour__2"], "alias": "fact_transactions_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_48d7dfc9938487305d3956d8344dda5d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_48d7dfc9938487305d3956d8344dda5d", "store_failures": true}, "created_at": 1764018440.3189647, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_transactions_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_48d7dfc9938487305d3956d8344dda5d\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/dbt_expectations_expect_row_va_48d7dfc9938487305d3956d8344dda5d.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_transactions_full\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_HASH.7a79eff2d8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_TX_HASH.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_HASH.7a79eff2d8", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_TX_HASH"], "alias": "fact_transactions_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3266308, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_TX_HASH__0_xX_0_9a_fA_F_.60bef77cff": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_c59f5976145ea8481410e9a05d7c889c.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_TX_HASH__0_xX_0_9a_fA_F_.60bef77cff", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "fact_transactions_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c59f5976145ea8481410e9a05d7c889c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c59f5976145ea8481410e9a05d7c889c", "store_failures": true}, "created_at": 1764018440.328737, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_transactions_full_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c59f5976145ea8481410e9a05d7c889c\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/dbt_expectations_expect_column_c59f5976145ea8481410e9a05d7c889c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_transactions_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_FROM_ADDRESS.ad4c8e2694": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_FROM_ADDRESS.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_FROM_ADDRESS.ad4c8e2694", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_FROM_ADDRESS"], "alias": "fact_transactions_full_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3340142, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FROM_ADDRESS", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.8794e23ba3": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_57b7af5fa511902bab51a9a3e01d2ec1.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.8794e23ba3", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "fact_transactions_full_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_57b7af5fa511902bab51a9a3e01d2ec1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_57b7af5fa511902bab51a9a3e01d2ec1", "store_failures": true}, "created_at": 1764018440.3361309, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_transactions_full_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_57b7af5fa511902bab51a9a3e01d2ec1\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/dbt_expectations_expect_column_57b7af5fa511902bab51a9a3e01d2ec1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.fact_transactions_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FROM_ADDRESS", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_TO_ADDRESS__0_xX_0_9a_fA_F_.bd70190cf6": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TO_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_6ee3d6a86abcc4c377ab0cb204f25811.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_TO_ADDRESS__0_xX_0_9a_fA_F_.bd70190cf6", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "fact_transactions_full_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_6ee3d6a86abcc4c377ab0cb204f25811", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "TO_ADDRESS IS NOT NULL", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "TO_ADDRESS IS NOT NULL", "alias": "dbt_expectations_expect_column_6ee3d6a86abcc4c377ab0cb204f25811", "store_failures": true}, "created_at": 1764018440.3412993, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.fact_transactions_full_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(where=\"TO_ADDRESS IS NOT NULL\",alias=\"dbt_expectations_expect_column_6ee3d6a86abcc4c377ab0cb204f25811\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/dbt_expectations_expect_column_6ee3d6a86abcc4c377ab0cb204f25811.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from (select * from polygon.test_gold.fact_transactions_full where TO_ADDRESS IS NOT NULL) dbt_subquery\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TO_ADDRESS", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_ORIGIN_FUNCTION_SIGNATURE.c97ff6fa70": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_trans_c46ef660a7125ba2d7ffc92b526f491a.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_ORIGIN_FUNCTION_SIGNATURE.c97ff6fa70", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_ORIGIN_FUNCTION_SIGNATURE"], "alias": "fact_transactions_full_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__fact_trans_c46ef660a7125ba2d7ffc92b526f491a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__fact_trans_c46ef660a7125ba2d7ffc92b526f491a", "store_failures": true}, "created_at": 1764018440.346263, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__fact_trans_c46ef660a7125ba2d7ffc92b526f491a\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_trans_c46ef660a7125ba2d7ffc92b526f491a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE.fcb488bf96": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VALUE", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_VALUE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_VALUE.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE.fcb488bf96", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_VALUE"], "alias": "fact_transactions_full_VALUE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3483791, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_VALUE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_VALUE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere VALUE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VALUE", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE_PRECISE_RAW.14c29d688d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VALUE_PRECISE_RAW", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_VALUE_PRECISE_RAW", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_VALUE_PRECISE_RAW.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE_PRECISE_RAW.14c29d688d", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_VALUE_PRECISE_RAW"], "alias": "fact_transactions_full_VALUE_PRECISE_RAW", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3507457, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_VALUE_PRECISE_RAW", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_VALUE_PRECISE_RAW.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere VALUE_PRECISE_RAW is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VALUE_PRECISE_RAW", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE_PRECISE.59f993bcda": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VALUE_PRECISE", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_VALUE_PRECISE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_VALUE_PRECISE.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE_PRECISE.59f993bcda", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_VALUE_PRECISE"], "alias": "fact_transactions_full_VALUE_PRECISE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3528466, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_VALUE_PRECISE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_VALUE_PRECISE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere VALUE_PRECISE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VALUE_PRECISE", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_FEE.f5351603f2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_FEE", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_TX_FEE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_TX_FEE.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_FEE.f5351603f2", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_TX_FEE"], "alias": "fact_transactions_full_TX_FEE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.354924, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_TX_FEE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_TX_FEE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere TX_FEE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_FEE_PRECISE.161ef1c3a1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_FEE_PRECISE", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_TX_FEE_PRECISE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_TX_FEE_PRECISE.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_FEE_PRECISE.161ef1c3a1", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_TX_FEE_PRECISE"], "alias": "fact_transactions_full_TX_FEE_PRECISE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3570247, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_TX_FEE_PRECISE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_TX_FEE_PRECISE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere TX_FEE_PRECISE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_FEE_PRECISE", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_SUCCEEDED.0932db54b6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_TX_SUCCEEDED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_TX_SUCCEEDED.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_SUCCEEDED.0932db54b6", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_TX_SUCCEEDED"], "alias": "fact_transactions_full_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.359175, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_TX_SUCCEEDED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_TX_SUCCEEDED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_SUCCEEDED", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_TYPE.9c605a5a95": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_TYPE", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_TX_TYPE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_TX_TYPE.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_TYPE.9c605a5a95", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_TX_TYPE"], "alias": "fact_transactions_full_TX_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3612802, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_TX_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_TX_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere TX_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_TYPE", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_NONCE.ea08f1a1ba": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NONCE", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_NONCE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_NONCE.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_NONCE.ea08f1a1ba", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_NONCE"], "alias": "fact_transactions_full_NONCE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3637617, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_NONCE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_NONCE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere NONCE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NONCE", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_POSITION.fa8e858e99": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_TX_POSITION.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_POSITION.fa8e858e99", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_TX_POSITION"], "alias": "fact_transactions_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3658836, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_TX_POSITION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere TX_POSITION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_TX_POSITION__NUMBER__FLOAT.473e47a660": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_TX_POSITION__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_b299c3dc479c2ec747c499d1b56232e3.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_TX_POSITION__NUMBER__FLOAT.473e47a660", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_TX_POSITION__NUMBER__FLOAT"], "alias": "fact_transactions_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b299c3dc479c2ec747c499d1b56232e3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b299c3dc479c2ec747c499d1b56232e3", "store_failures": true}, "created_at": 1764018440.3679895, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.fact_transactions_full_TX_POSITION", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b299c3dc479c2ec747c499d1b56232e3\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/dbt_expectations_expect_column_b299c3dc479c2ec747c499d1b56232e3.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE_RAW' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_FEE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_TYPE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NONCE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INPUT_DATA' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('EFFECTIVE_GAS_PRICE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_LIMIT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CUMULATIVE_GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAX_FEE_PER_GAS' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAX_PRIORITY_FEE_PER_GAS' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('Y_PARITY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCESS_LIST' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('R' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('S' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('V' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FACT_TRANSACTIONS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_POSITION'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_INPUT_DATA.388b4be0ae": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INPUT_DATA", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_INPUT_DATA", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_INPUT_DATA.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_INPUT_DATA.388b4be0ae", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_INPUT_DATA"], "alias": "fact_transactions_full_INPUT_DATA", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3729086, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_INPUT_DATA", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_INPUT_DATA.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere INPUT_DATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INPUT_DATA", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_GAS_LIMIT.5c5592b6ac": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "GAS_LIMIT", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_GAS_LIMIT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_GAS_LIMIT.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_GAS_LIMIT.5c5592b6ac", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_GAS_LIMIT"], "alias": "fact_transactions_full_GAS_LIMIT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3753026, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_GAS_LIMIT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_GAS_LIMIT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere GAS_LIMIT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "GAS_LIMIT", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_CUMULATIVE_GAS_USED.88f6b855e0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CUMULATIVE_GAS_USED", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_CUMULATIVE_GAS_USED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_CUMULATIVE_GAS_USED.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_CUMULATIVE_GAS_USED.88f6b855e0", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_CUMULATIVE_GAS_USED"], "alias": "fact_transactions_full_CUMULATIVE_GAS_USED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3774254, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_CUMULATIVE_GAS_USED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_CUMULATIVE_GAS_USED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere CUMULATIVE_GAS_USED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CUMULATIVE_GAS_USED", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_R.1699801aae": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "R", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_R", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_R.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_R.1699801aae", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_R"], "alias": "fact_transactions_full_R", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3795142, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_R", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_R.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere R is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "R", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_S.cff5ed8cca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "S", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_S", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_S.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_S.cff5ed8cca", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_S"], "alias": "fact_transactions_full_S", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3815713, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_S", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_S.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere S is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "S", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_V.a647e39488": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "V", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_V", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_V.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_V.a647e39488", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_V"], "alias": "fact_transactions_full_V", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3836467, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_V", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_V.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere V is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "V", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_FACT_TRANSACTIONS_ID.a9bd9374e2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FACT_TRANSACTIONS_ID", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_FACT_TRANSACTIONS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_FACT_TRANSACTIONS_ID.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_FACT_TRANSACTIONS_ID.a9bd9374e2", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_FACT_TRANSACTIONS_ID"], "alias": "fact_transactions_full_FACT_TRANSACTIONS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3857124, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_FACT_TRANSACTIONS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_FACT_TRANSACTIONS_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere FACT_TRANSACTIONS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FACT_TRANSACTIONS_ID", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_INSERTED_TIMESTAMP.645083145d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_INSERTED_TIMESTAMP.645083145d", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_INSERTED_TIMESTAMP"], "alias": "fact_transactions_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.388261, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_INSERTED_TIMESTAMP__hour__2.9f370ce025": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_4449359aac8daf3b8a71ba263ec203e0.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_INSERTED_TIMESTAMP__hour__2.9f370ce025", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_INSERTED_TIMESTAMP__hour__2"], "alias": "fact_transactions_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_4449359aac8daf3b8a71ba263ec203e0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_4449359aac8daf3b8a71ba263ec203e0", "store_failures": true}, "created_at": 1764018440.3903792, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_transactions_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_4449359aac8daf3b8a71ba263ec203e0\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/dbt_expectations_expect_row_va_4449359aac8daf3b8a71ba263ec203e0.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_transactions_full\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP.a6ef34b987": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP.a6ef34b987", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "not_null_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP"], "alias": "fact_transactions_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.3981264, "relation_name": "polygon.not_null_test_gold.fact_transactions_full_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/not_null_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.fact_transactions_full\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP__hour__2.bd49713839": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_1f1793c995b2a0b198d160d6459b88d5.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP__hour__2.bd49713839", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP__hour__2"], "alias": "fact_transactions_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_1f1793c995b2a0b198d160d6459b88d5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_1f1793c995b2a0b198d160d6459b88d5", "store_failures": true}, "created_at": 1764018440.4002137, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.fact_transactions_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_1f1793c995b2a0b198d160d6459b88d5\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/dbt_expectations_expect_row_va_1f1793c995b2a0b198d160d6459b88d5.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.fact_transactions_full\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_transactions_full_TX_HASH.ac75b8c705": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["TX_HASH"], "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__fact_transactions_full_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_3521faf6e2d7e64caaaec718c328a491.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_transactions_full_TX_HASH.ac75b8c705", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "dbt_utils_unique_combination_of_columns_test_gold__fact_transactions_full_TX_HASH"], "alias": "fact_transactions_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3521faf6e2d7e64caaaec718c328a491", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3521faf6e2d7e64caaaec718c328a491", "store_failures": true}, "created_at": 1764018440.4076078, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.fact_transactions_full_TX_HASH", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3521faf6e2d7e64caaaec718c328a491\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/dbt_utils_unique_combination_o_3521faf6e2d7e64caaaec718c328a491.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n TX_HASH\n from polygon.test_gold.fact_transactions_full\n group by TX_HASH\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_transactions_full_TX_POSITION__BLOCK_NUMBER.edeb24d95d": {"test_metadata": {"name": "sequence_gaps", "kwargs": {"partition_by": ["BLOCK_NUMBER"], "column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_sequence_gaps_test_gold", "name": "fsc_evm_sequence_gaps_test_gold__fact_transactions_full_TX_POSITION__BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_sequence_gaps_test_gol_509055f88bd887442aed15f79d9c29c0.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_transactions_full_TX_POSITION__BLOCK_NUMBER.edeb24d95d", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "fsc_evm_sequence_gaps_test_gold__fact_transactions_full_TX_POSITION__BLOCK_NUMBER"], "alias": "fact_transactions_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "fsc_evm_sequence_gaps_test_gol_509055f88bd887442aed15f79d9c29c0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "BLOCK_TIMESTAMP < CURRENT_DATE - 1", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "BLOCK_TIMESTAMP < CURRENT_DATE - 1", "alias": "fsc_evm_sequence_gaps_test_gol_509055f88bd887442aed15f79d9c29c0", "store_failures": true}, "created_at": 1764018440.4125316, "relation_name": "polygon.fsc_evm_sequence_gaps_test_gold.fact_transactions_full_TX_POSITION", "raw_code": "{{ fsc_evm.test_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(where=\"BLOCK_TIMESTAMP < CURRENT_DATE - 1\",alias=\"fsc_evm_sequence_gaps_test_gol_509055f88bd887442aed15f79d9c29c0\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/fsc_evm_sequence_gaps_test_gol_509055f88bd887442aed15f79d9c29c0.sql", "compiled": true, "compiled_code": "\n\n\nWITH source AS (\n SELECT\n BLOCK_NUMBER,\n TX_POSITION,\n LAG(\n TX_POSITION,\n 1\n ) over (\n PARTITION BY BLOCK_NUMBER\n ORDER BY\n TX_POSITION ASC\n ) AS prev_TX_POSITION\n FROM\n (select * from polygon.test_gold.fact_transactions_full where BLOCK_TIMESTAMP < CURRENT_DATE - 1) dbt_subquery\n)\nSELECT\n BLOCK_NUMBER,\n prev_TX_POSITION,\n TX_POSITION,\n TX_POSITION - prev_TX_POSITION\n - 1 AS gap\nFROM\n source\nWHERE\n TX_POSITION - prev_TX_POSITION <> 1\n\nORDER BY\n gap DESC \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.txs_match_blocks_test_gold__fact_transactions_full_ref_test_gold__fact_blocks_full_.d3390d5b0e": {"test_metadata": {"name": "txs_match_blocks", "kwargs": {"blocks_model": "ref('test_gold__fact_blocks_full')", "model": "{{ get_where_subquery(ref('test_gold__fact_transactions_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "txs_match_blocks_test_gold", "name": "txs_match_blocks_test_gold__fact_transactions_full_ref_test_gold__fact_blocks_full_", "resource_type": "test", "package_name": "fsc_evm", "path": "txs_match_blocks_test_gold__fa_e43a49c84b5130a981446d413282c3af.sql", "original_file_path": "models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml", "unique_id": "test.fsc_evm.txs_match_blocks_test_gold__fact_transactions_full_ref_test_gold__fact_blocks_full_.d3390d5b0e", "fqn": ["fsc_evm", "main_package", "core", "gold", "tests", "transactions", "txs_match_blocks_test_gold__fact_transactions_full_ref_test_gold__fact_blocks_full_"], "alias": "fact_transactions_full_ref_test_gold", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "txs_match_blocks_test_gold__fa_e43a49c84b5130a981446d413282c3af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "txs_match_blocks_test_gold__fa_e43a49c84b5130a981446d413282c3af", "store_failures": true}, "created_at": 1764018440.4577074, "relation_name": "polygon.txs_match_blocks_test_gold.fact_transactions_full_ref_test_gold", "raw_code": "{{ test_txs_match_blocks(**_dbt_generic_test_kwargs) }}{{ config(alias=\"txs_match_blocks_test_gold__fa_e43a49c84b5130a981446d413282c3af\") }}", "language": "sql", "refs": [{"name": "test_gold__fact_blocks_full", "package": null, "version": null}, {"name": "test_gold__fact_transactions_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_txs_match_blocks", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_blocks_full", "model.fsc_evm.test_gold__fact_transactions_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/gold/tests/transactions/test_gold__fact_transactions_full.yml/txs_match_blocks_test_gold__fa_e43a49c84b5130a981446d413282c3af.sql", "compiled": true, "compiled_code": "\nWITH count_txs AS (\n SELECT\n block_number,\n COUNT(*) AS record_count\n FROM\n polygon.test_gold.fact_transactions_full\n GROUP BY\n ALL\n),\nblock_txs AS (\n SELECT\n block_number,\n tx_count AS expected_count\n FROM\n polygon.test_gold.fact_blocks_full\n)\nSELECT\n block_number,\n record_count AS actual_count,\n expected_count\nFROM\n block_txs\n LEFT JOIN count_txs USING (block_number)\nWHERE\n (record_count != expected_count\n OR expected_count IS NULL)\n AND block_number != 0\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__fact_transactions_full", "attached_node": "model.fsc_evm.test_gold__fact_transactions_full"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_BLOCK_NUMBER.5a3535bb1a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_full_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_BLOCK_NUMBER.5a3535bb1a", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_full_BLOCK_NUMBER"], "alias": "ez_nft_transfers_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.4691727, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_full_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/not_null_test_nft__ez_nft_transfers_full_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_full\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.5ec4aef06a": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_nft", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_67e50dbf01e74d0ea45b0b2dd2d2d826.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.5ec4aef06a", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "ez_nft_transfers_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_67e50dbf01e74d0ea45b0b2dd2d2d826", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_67e50dbf01e74d0ea45b0b2dd2d2d826", "store_failures": true}, "created_at": 1764018440.471836, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft.ez_nft_transfers_full_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_67e50dbf01e74d0ea45b0b2dd2d2d826\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/dbt_expectations_expect_column_67e50dbf01e74d0ea45b0b2dd2d2d826.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_MINT' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('QUANTITY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_STANDARD' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_NFT_TRANSFERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP.580b67cb8c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP.580b67cb8c", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP"], "alias": "ez_nft_transfers_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.4765935, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_full_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/not_null_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_full\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP__hour__3.2ad48fb9bf": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 3, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_nft", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP__hour__3", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_94c6ed1911a31e3c659d15ec139e6f3e.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP__hour__3.2ad48fb9bf", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP__hour__3"], "alias": "ez_nft_transfers_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_94c6ed1911a31e3c659d15ec139e6f3e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_94c6ed1911a31e3c659d15ec139e6f3e", "store_failures": true}, "created_at": 1764018440.478764, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_nft.ez_nft_transfers_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_94c6ed1911a31e3c659d15ec139e6f3e\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/dbt_expectations_expect_row_va_94c6ed1911a31e3c659d15ec139e6f3e.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_nft.ez_nft_transfers_full\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.945acce1de": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_nft", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_eae8e4ea8f19795d36fc5e3642efd34a.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.945acce1de", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "ez_nft_transfers_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_eae8e4ea8f19795d36fc5e3642efd34a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_eae8e4ea8f19795d36fc5e3642efd34a", "store_failures": true}, "created_at": 1764018440.486427, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft.ez_nft_transfers_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_eae8e4ea8f19795d36fc5e3642efd34a\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/dbt_expectations_expect_column_eae8e4ea8f19795d36fc5e3642efd34a.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_MINT' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('QUANTITY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_STANDARD' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_NFT_TRANSFERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TX_HASH.66e383a70b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_full_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_full_TX_HASH.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TX_HASH.66e383a70b", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_full_TX_HASH"], "alias": "ez_nft_transfers_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.491342, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_full_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/not_null_test_nft__ez_nft_transfers_full_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_full\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.523ec38237": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_nft", "name": "dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_c76299c501e4547ec1b6e00d009ccd6f.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.523ec38237", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "ez_nft_transfers_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c76299c501e4547ec1b6e00d009ccd6f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c76299c501e4547ec1b6e00d009ccd6f", "store_failures": true}, "created_at": 1764018440.4934878, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_nft.ez_nft_transfers_full_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c76299c501e4547ec1b6e00d009ccd6f\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/dbt_expectations_expect_column_c76299c501e4547ec1b6e00d009ccd6f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_nft.ez_nft_transfers_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_EVENT_INDEX.85b975cd1b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_full_EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_full_EVENT_INDEX.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_EVENT_INDEX.85b975cd1b", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_full_EVENT_INDEX"], "alias": "ez_nft_transfers_full_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.4987004, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_full_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/not_null_test_nft__ez_nft_transfers_full_EVENT_INDEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_full\nwhere EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_INTRA_EVENT_INDEX.d4991df060": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INTRA_EVENT_INDEX", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_full_INTRA_EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_full_INTRA_EVENT_INDEX.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_INTRA_EVENT_INDEX.d4991df060", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_full_INTRA_EVENT_INDEX"], "alias": "ez_nft_transfers_full_INTRA_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.50083, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_full_INTRA_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/not_null_test_nft__ez_nft_transfers_full_INTRA_EVENT_INDEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_full\nwhere INTRA_EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INTRA_EVENT_INDEX", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS.35c96ffef7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS.35c96ffef7", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS"], "alias": "ez_nft_transfers_full_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.502979, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_full_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/not_null_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_full\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.c7f3997422": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_nft", "name": "dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_429e02f2db94d846c196d7d31006eee1.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.c7f3997422", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_nft_transfers_full_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_429e02f2db94d846c196d7d31006eee1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_429e02f2db94d846c196d7d31006eee1", "store_failures": true}, "created_at": 1764018440.505103, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_nft.ez_nft_transfers_full_CONTRACT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_429e02f2db94d846c196d7d31006eee1\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/dbt_expectations_expect_column_429e02f2db94d846c196d7d31006eee1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_nft.ez_nft_transfers_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_FROM_ADDRESS.fe828e0f8e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_full_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_full_FROM_ADDRESS.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_FROM_ADDRESS.fe828e0f8e", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_full_FROM_ADDRESS"], "alias": "ez_nft_transfers_full_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.510418, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_full_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/not_null_test_nft__ez_nft_transfers_full_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_full\nwhere FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FROM_ADDRESS", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.ceafcdaa5b": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_nft", "name": "dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_61fd248a263e9190bdf58fbf1bccfb40.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.ceafcdaa5b", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_nft_transfers_full_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_61fd248a263e9190bdf58fbf1bccfb40", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_61fd248a263e9190bdf58fbf1bccfb40", "store_failures": true}, "created_at": 1764018440.5125635, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_nft.ez_nft_transfers_full_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_61fd248a263e9190bdf58fbf1bccfb40\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/dbt_expectations_expect_column_61fd248a263e9190bdf58fbf1bccfb40.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_nft.ez_nft_transfers_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FROM_ADDRESS", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TO_ADDRESS.a5fba0294c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TO_ADDRESS", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_full_TO_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_full_TO_ADDRESS.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TO_ADDRESS.a5fba0294c", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_full_TO_ADDRESS"], "alias": "ez_nft_transfers_full_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.5178087, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_full_TO_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/not_null_test_nft__ez_nft_transfers_full_TO_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_full\nwhere TO_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TO_ADDRESS", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_TO_ADDRESS__0_xX_0_9a_fA_F_.5c28de3d46": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TO_ADDRESS", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_nft", "name": "dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_1e6959bf8912e751ef1071c16419f4ef.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_TO_ADDRESS__0_xX_0_9a_fA_F_.5c28de3d46", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_nft_transfers_full_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1e6959bf8912e751ef1071c16419f4ef", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_1e6959bf8912e751ef1071c16419f4ef", "store_failures": true}, "created_at": 1764018440.519993, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_nft.ez_nft_transfers_full_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1e6959bf8912e751ef1071c16419f4ef\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/dbt_expectations_expect_column_1e6959bf8912e751ef1071c16419f4ef.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_nft.ez_nft_transfers_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TO_ADDRESS", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TOKEN_ID.74258e963a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_ID", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_full_TOKEN_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_full_TOKEN_ID.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TOKEN_ID.74258e963a", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_full_TOKEN_ID"], "alias": "ez_nft_transfers_full_TOKEN_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.525249, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_full_TOKEN_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/not_null_test_nft__ez_nft_transfers_full_TOKEN_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_full\nwhere TOKEN_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ID", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID.1c01304059": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EZ_NFT_TRANSFERS_ID", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID.1c01304059", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID"], "alias": "ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.5274053, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/not_null_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_full\nwhere EZ_NFT_TRANSFERS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EZ_NFT_TRANSFERS_ID", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_full_INSERTED_TIMESTAMP__hour__3.af9feb5290": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 3, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_nft", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_full_INSERTED_TIMESTAMP__hour__3", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_955f86d390b611836af1b0a9bcc7f246.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_full_INSERTED_TIMESTAMP__hour__3.af9feb5290", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_full_INSERTED_TIMESTAMP__hour__3"], "alias": "ez_nft_transfers_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_955f86d390b611836af1b0a9bcc7f246", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_955f86d390b611836af1b0a9bcc7f246", "store_failures": true}, "created_at": 1764018440.5295417, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_nft.ez_nft_transfers_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_955f86d390b611836af1b0a9bcc7f246\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/dbt_expectations_expect_row_va_955f86d390b611836af1b0a9bcc7f246.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_nft.ez_nft_transfers_full\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.499658c9bc": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_nft", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_c17b4d50e9c4e9d90663b34c3d6a479d.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.499658c9bc", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "ez_nft_transfers_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c17b4d50e9c4e9d90663b34c3d6a479d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c17b4d50e9c4e9d90663b34c3d6a479d", "store_failures": true}, "created_at": 1764018440.5372846, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft.ez_nft_transfers_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c17b4d50e9c4e9d90663b34c3d6a479d\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/dbt_expectations_expect_column_c17b4d50e9c4e9d90663b34c3d6a479d.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_MINT' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('QUANTITY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_STANDARD' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_NFT_TRANSFERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID.aa63995b75": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["EZ_NFT_TRANSFERS_ID"], "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_nft", "name": "dbt_utils_unique_combination_of_columns_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_fe2e931972ffd02f97412158ab05f28d.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID.aa63995b75", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_utils_unique_combination_of_columns_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID"], "alias": "ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fe2e931972ffd02f97412158ab05f28d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fe2e931972ffd02f97412158ab05f28d", "store_failures": true}, "created_at": 1764018440.5422516, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_nft.ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fe2e931972ffd02f97412158ab05f28d\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_full"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_full.yml/dbt_utils_unique_combination_o_fe2e931972ffd02f97412158ab05f28d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n EZ_NFT_TRANSFERS_ID\n from polygon.test_nft.ez_nft_transfers_full\n group by EZ_NFT_TRANSFERS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_nft__ez_nft_transfers_full", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_full"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER.c391cc6a96": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER.c391cc6a96", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER"], "alias": "ez_nft_transfers_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.5491393, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_recent_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/not_null_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_recent\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.59a9a57567": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_nft", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_98bcc46585b9c29d2c052ab8c0a4da11.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.59a9a57567", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "ez_nft_transfers_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_98bcc46585b9c29d2c052ab8c0a4da11", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_98bcc46585b9c29d2c052ab8c0a4da11", "store_failures": true}, "created_at": 1764018440.5513215, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft.ez_nft_transfers_recent_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_98bcc46585b9c29d2c052ab8c0a4da11\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/dbt_expectations_expect_column_98bcc46585b9c29d2c052ab8c0a4da11.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_MINT' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('QUANTITY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_STANDARD' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_NFT_TRANSFERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP.cb878cc127": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP.cb878cc127", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP"], "alias": "ez_nft_transfers_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.555885, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_recent_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/not_null_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_recent\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP__hour__3.2d99fe0ba2": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 3, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_nft", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP__hour__3", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_cf214fc812375779ff7bd1d3a1d96eaa.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP__hour__3.2d99fe0ba2", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP__hour__3"], "alias": "ez_nft_transfers_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_cf214fc812375779ff7bd1d3a1d96eaa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_cf214fc812375779ff7bd1d3a1d96eaa", "store_failures": true}, "created_at": 1764018440.558013, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_nft.ez_nft_transfers_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_cf214fc812375779ff7bd1d3a1d96eaa\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/dbt_expectations_expect_row_va_cf214fc812375779ff7bd1d3a1d96eaa.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_nft.ez_nft_transfers_recent\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.01bb3ad3bd": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_nft", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_3b3129ca70a76873b1deb0f840c851b7.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.01bb3ad3bd", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "ez_nft_transfers_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3b3129ca70a76873b1deb0f840c851b7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3b3129ca70a76873b1deb0f840c851b7", "store_failures": true}, "created_at": 1764018440.5656848, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft.ez_nft_transfers_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3b3129ca70a76873b1deb0f840c851b7\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/dbt_expectations_expect_column_3b3129ca70a76873b1deb0f840c851b7.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_MINT' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('QUANTITY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_STANDARD' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_NFT_TRANSFERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TX_HASH.336555c4d6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_recent_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_recent_TX_HASH.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TX_HASH.336555c4d6", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_recent_TX_HASH"], "alias": "ez_nft_transfers_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.570312, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_recent_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/not_null_test_nft__ez_nft_transfers_recent_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_recent\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.7dfd5b1d49": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_nft", "name": "dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_4a4b481cc1cae01b3824f28709a7bdc2.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.7dfd5b1d49", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "ez_nft_transfers_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4a4b481cc1cae01b3824f28709a7bdc2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_4a4b481cc1cae01b3824f28709a7bdc2", "store_failures": true}, "created_at": 1764018440.5724537, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_nft.ez_nft_transfers_recent_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4a4b481cc1cae01b3824f28709a7bdc2\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/dbt_expectations_expect_column_4a4b481cc1cae01b3824f28709a7bdc2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_nft.ez_nft_transfers_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_EVENT_INDEX.ea83d8365e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_recent_EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_recent_EVENT_INDEX.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_EVENT_INDEX.ea83d8365e", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_recent_EVENT_INDEX"], "alias": "ez_nft_transfers_recent_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.5783315, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_recent_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/not_null_test_nft__ez_nft_transfers_recent_EVENT_INDEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_recent\nwhere EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_INTRA_EVENT_INDEX.025edfde6b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INTRA_EVENT_INDEX", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_recent_INTRA_EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_recent_INTRA_EVENT_INDEX.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_INTRA_EVENT_INDEX.025edfde6b", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_recent_INTRA_EVENT_INDEX"], "alias": "ez_nft_transfers_recent_INTRA_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.5804126, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_recent_INTRA_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/not_null_test_nft__ez_nft_transfers_recent_INTRA_EVENT_INDEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_recent\nwhere INTRA_EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INTRA_EVENT_INDEX", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS.7f5d57c7b9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS.7f5d57c7b9", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS"], "alias": "ez_nft_transfers_recent_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.5824955, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_recent_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/not_null_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_recent\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.e901b29df2": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_nft", "name": "dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_73d31427dae5e0da7479de631d7e3334.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.e901b29df2", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_nft_transfers_recent_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_73d31427dae5e0da7479de631d7e3334", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_73d31427dae5e0da7479de631d7e3334", "store_failures": true}, "created_at": 1764018440.5846434, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_nft.ez_nft_transfers_recent_CONTRACT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_73d31427dae5e0da7479de631d7e3334\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/dbt_expectations_expect_column_73d31427dae5e0da7479de631d7e3334.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_nft.ez_nft_transfers_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_FROM_ADDRESS.983881c27c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_recent_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_recent_FROM_ADDRESS.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_FROM_ADDRESS.983881c27c", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_recent_FROM_ADDRESS"], "alias": "ez_nft_transfers_recent_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.5898728, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_recent_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/not_null_test_nft__ez_nft_transfers_recent_FROM_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_recent\nwhere FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FROM_ADDRESS", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.3e8e3c0838": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "FROM_ADDRESS", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_nft", "name": "dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_6836b17a3e3cfe5f288c3b4279916d31.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.3e8e3c0838", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_nft_transfers_recent_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_6836b17a3e3cfe5f288c3b4279916d31", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_6836b17a3e3cfe5f288c3b4279916d31", "store_failures": true}, "created_at": 1764018440.5920155, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_nft.ez_nft_transfers_recent_FROM_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_6836b17a3e3cfe5f288c3b4279916d31\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/dbt_expectations_expect_column_6836b17a3e3cfe5f288c3b4279916d31.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(FROM_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_nft.ez_nft_transfers_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FROM_ADDRESS", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TO_ADDRESS.ce1e8d5dfe": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TO_ADDRESS", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_recent_TO_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_recent_TO_ADDRESS.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TO_ADDRESS.ce1e8d5dfe", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_recent_TO_ADDRESS"], "alias": "ez_nft_transfers_recent_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.597173, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_recent_TO_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/not_null_test_nft__ez_nft_transfers_recent_TO_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_recent\nwhere TO_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TO_ADDRESS", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.76a34d263a": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TO_ADDRESS", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_nft", "name": "dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_TO_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_5de0972446969036d93d0853d59b8d50.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.76a34d263a", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_TO_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_nft_transfers_recent_TO_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5de0972446969036d93d0853d59b8d50", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_5de0972446969036d93d0853d59b8d50", "store_failures": true}, "created_at": 1764018440.59926, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_nft.ez_nft_transfers_recent_TO_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5de0972446969036d93d0853d59b8d50\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/dbt_expectations_expect_column_5de0972446969036d93d0853d59b8d50.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TO_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_nft.ez_nft_transfers_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TO_ADDRESS", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TOKEN_ID.8827c1fad9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_ID", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_recent_TOKEN_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_recent_TOKEN_ID.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TOKEN_ID.8827c1fad9", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_recent_TOKEN_ID"], "alias": "ez_nft_transfers_recent_TOKEN_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.6043932, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_recent_TOKEN_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/not_null_test_nft__ez_nft_transfers_recent_TOKEN_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_recent\nwhere TOKEN_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ID", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID.071c327c9c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EZ_NFT_TRANSFERS_ID", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_nft", "name": "not_null_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID.071c327c9c", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "not_null_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID"], "alias": "ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.6064901, "relation_name": "polygon.not_null_test_nft.ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/not_null_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_nft.ez_nft_transfers_recent\nwhere EZ_NFT_TRANSFERS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EZ_NFT_TRANSFERS_ID", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_recent_INSERTED_TIMESTAMP__hour__3.285e6fec43": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 3, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_nft", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_recent_INSERTED_TIMESTAMP__hour__3", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_78908eb24754920f1fada892cc46b83e.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_recent_INSERTED_TIMESTAMP__hour__3.285e6fec43", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_recent_INSERTED_TIMESTAMP__hour__3"], "alias": "ez_nft_transfers_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_78908eb24754920f1fada892cc46b83e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_78908eb24754920f1fada892cc46b83e", "store_failures": true}, "created_at": 1764018440.6086028, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_nft.ez_nft_transfers_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_78908eb24754920f1fada892cc46b83e\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/dbt_expectations_expect_row_va_78908eb24754920f1fada892cc46b83e.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.test_nft.ez_nft_transfers_recent\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n hour,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7988c079e5": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_nft", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_754f58aa65d4d7b8b83caa8f16aca044.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7988c079e5", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "ez_nft_transfers_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_754f58aa65d4d7b8b83caa8f16aca044", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_754f58aa65d4d7b8b83caa8f16aca044", "store_failures": true}, "created_at": 1764018440.6161997, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft.ez_nft_transfers_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_754f58aa65d4d7b8b83caa8f16aca044\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/dbt_expectations_expect_column_754f58aa65d4d7b8b83caa8f16aca044.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_POSITION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INTRA_EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_MINT' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('QUANTITY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_STANDARD' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_NFT_TRANSFERS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID.815336f0e0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["EZ_NFT_TRANSFERS_ID"], "model": "{{ get_where_subquery(ref('test_nft__ez_nft_transfers_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_nft", "name": "dbt_utils_unique_combination_of_columns_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_f961740554d0eecc31489a79e837dd30.sql", "original_file_path": "models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID.815336f0e0", "fqn": ["fsc_evm", "main_package", "core", "nft", "tests", "dbt_utils_unique_combination_of_columns_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID"], "alias": "ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f961740554d0eecc31489a79e837dd30", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f961740554d0eecc31489a79e837dd30", "store_failures": true}, "created_at": 1764018440.6210446, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_nft.ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f961740554d0eecc31489a79e837dd30\") }}", "language": "sql", "refs": [{"name": "test_nft__ez_nft_transfers_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/core/nft/tests/test_nft__ez_nft_transfers_recent.yml/dbt_utils_unique_combination_o_f961740554d0eecc31489a79e837dd30.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n EZ_NFT_TRANSFERS_ID\n from polygon.test_nft.ez_nft_transfers_recent\n group by EZ_NFT_TRANSFERS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_nft__ez_nft_transfers_recent", "attached_node": "model.fsc_evm.test_nft__ez_nft_transfers_recent"}, "test.fsc_evm.not_null_observability__transactions_TEST_TIMESTAMP.fcbece1b9f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TEST_TIMESTAMP", "model": "{{ get_where_subquery(ref('observability__transactions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_observability", "name": "not_null_observability__transactions_TEST_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_observability__transactions_TEST_TIMESTAMP.sql", "original_file_path": "models/main_package/observability/observability__transactions.yml", "unique_id": "test.fsc_evm.not_null_observability__transactions_TEST_TIMESTAMP.fcbece1b9f", "fqn": ["fsc_evm", "main_package", "observability", "not_null_observability__transactions_TEST_TIMESTAMP"], "alias": "transactions_TEST_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.6272166, "relation_name": "polygon.not_null_observability.transactions_TEST_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "observability__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.observability__transactions"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/observability/observability__transactions.yml/not_null_observability__transactions_TEST_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.observability.transactions\nwhere TEST_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TEST_TIMESTAMP", "file_key_name": "models.observability__transactions", "attached_node": "model.fsc_evm.observability__transactions"}, "test.fsc_evm.accepted_values_recent_row_observability__transactions_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.eb2fcab8d1": {"test_metadata": {"name": "accepted_values_recent_row", "kwargs": {"value": 0, "timestamp_column": "TEST_TIMESTAMP", "context_column": "MISSING_LIST", "column_name": "BLOCKS_IMPACTED_COUNT", "model": "{{ get_where_subquery(ref('observability__transactions')) }}"}, "namespace": null}, "database": "polygon", "schema": "accepted_values_recent_row_observability", "name": "accepted_values_recent_row_observability__transactions_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0", "resource_type": "test", "package_name": "fsc_evm", "path": "accepted_values_recent_row_obs_16cde85746052aebed51a4a7fd26a9f4.sql", "original_file_path": "models/main_package/observability/observability__transactions.yml", "unique_id": "test.fsc_evm.accepted_values_recent_row_observability__transactions_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.eb2fcab8d1", "fqn": ["fsc_evm", "main_package", "observability", "accepted_values_recent_row_observability__transactions_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0"], "alias": "transactions_BLOCKS_IMPACTED_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_recent_row_obs_16cde85746052aebed51a4a7fd26a9f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_recent_row_obs_16cde85746052aebed51a4a7fd26a9f4", "store_failures": true}, "created_at": 1764018440.6296687, "relation_name": "polygon.accepted_values_recent_row_observability.transactions_BLOCKS_IMPACTED_COUNT", "raw_code": "{{ test_accepted_values_recent_row(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_recent_row_obs_16cde85746052aebed51a4a7fd26a9f4\") }}", "language": "sql", "refs": [{"name": "observability__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_accepted_values_recent_row", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.observability__transactions"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/observability/observability__transactions.yml/accepted_values_recent_row_obs_16cde85746052aebed51a4a7fd26a9f4.sql", "compiled": true, "compiled_code": "\n\nSELECT\n BLOCKS_IMPACTED_COUNT,\n MISSING_LIST\nFROM\n polygon.observability.transactions\nWHERE\n TEST_TIMESTAMP = (\n SELECT\n MAX(\n TEST_TIMESTAMP\n )\n FROM\n polygon.observability.transactions\n )\n AND BLOCKS_IMPACTED_COUNT <> 0\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKS_IMPACTED_COUNT", "file_key_name": "models.observability__transactions", "attached_node": "model.fsc_evm.observability__transactions"}, "test.fsc_evm.not_null_observability__logs_TEST_TIMESTAMP.a8140bb427": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TEST_TIMESTAMP", "model": "{{ get_where_subquery(ref('observability__logs')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_observability", "name": "not_null_observability__logs_TEST_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_observability__logs_TEST_TIMESTAMP.sql", "original_file_path": "models/main_package/observability/observability__logs.yml", "unique_id": "test.fsc_evm.not_null_observability__logs_TEST_TIMESTAMP.a8140bb427", "fqn": ["fsc_evm", "main_package", "observability", "not_null_observability__logs_TEST_TIMESTAMP"], "alias": "logs_TEST_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.6369562, "relation_name": "polygon.not_null_observability.logs_TEST_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "observability__logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.observability__logs"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/observability/observability__logs.yml/not_null_observability__logs_TEST_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.observability.logs\nwhere TEST_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TEST_TIMESTAMP", "file_key_name": "models.observability__logs", "attached_node": "model.fsc_evm.observability__logs"}, "test.fsc_evm.accepted_values_recent_row_observability__logs_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.33a0e6880c": {"test_metadata": {"name": "accepted_values_recent_row", "kwargs": {"value": 0, "timestamp_column": "TEST_TIMESTAMP", "context_column": "MISSING_LIST", "column_name": "BLOCKS_IMPACTED_COUNT", "model": "{{ get_where_subquery(ref('observability__logs')) }}"}, "namespace": null}, "database": "polygon", "schema": "accepted_values_recent_row_observability", "name": "accepted_values_recent_row_observability__logs_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0", "resource_type": "test", "package_name": "fsc_evm", "path": "accepted_values_recent_row_obs_bdad4436c950deedd80c769aa84679f8.sql", "original_file_path": "models/main_package/observability/observability__logs.yml", "unique_id": "test.fsc_evm.accepted_values_recent_row_observability__logs_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.33a0e6880c", "fqn": ["fsc_evm", "main_package", "observability", "accepted_values_recent_row_observability__logs_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0"], "alias": "logs_BLOCKS_IMPACTED_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_recent_row_obs_bdad4436c950deedd80c769aa84679f8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_recent_row_obs_bdad4436c950deedd80c769aa84679f8", "store_failures": true}, "created_at": 1764018440.6393797, "relation_name": "polygon.accepted_values_recent_row_observability.logs_BLOCKS_IMPACTED_COUNT", "raw_code": "{{ test_accepted_values_recent_row(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_recent_row_obs_bdad4436c950deedd80c769aa84679f8\") }}", "language": "sql", "refs": [{"name": "observability__logs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_accepted_values_recent_row", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.observability__logs"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/observability/observability__logs.yml/accepted_values_recent_row_obs_bdad4436c950deedd80c769aa84679f8.sql", "compiled": true, "compiled_code": "\n\nSELECT\n BLOCKS_IMPACTED_COUNT,\n MISSING_LIST\nFROM\n polygon.observability.logs\nWHERE\n TEST_TIMESTAMP = (\n SELECT\n MAX(\n TEST_TIMESTAMP\n )\n FROM\n polygon.observability.logs\n )\n AND BLOCKS_IMPACTED_COUNT <> 0\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKS_IMPACTED_COUNT", "file_key_name": "models.observability__logs", "attached_node": "model.fsc_evm.observability__logs"}, "test.fsc_evm.not_null_observability__traces_TEST_TIMESTAMP.4b6fefc2cc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TEST_TIMESTAMP", "model": "{{ get_where_subquery(ref('observability__traces')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_observability", "name": "not_null_observability__traces_TEST_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_observability__traces_TEST_TIMESTAMP.sql", "original_file_path": "models/main_package/observability/observability__traces.yml", "unique_id": "test.fsc_evm.not_null_observability__traces_TEST_TIMESTAMP.4b6fefc2cc", "fqn": ["fsc_evm", "main_package", "observability", "not_null_observability__traces_TEST_TIMESTAMP"], "alias": "traces_TEST_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.6447027, "relation_name": "polygon.not_null_observability.traces_TEST_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "observability__traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.observability__traces"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/observability/observability__traces.yml/not_null_observability__traces_TEST_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.observability.traces\nwhere TEST_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TEST_TIMESTAMP", "file_key_name": "models.observability__traces", "attached_node": "model.fsc_evm.observability__traces"}, "test.fsc_evm.accepted_values_recent_row_observability__traces_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.a009465ad0": {"test_metadata": {"name": "accepted_values_recent_row", "kwargs": {"value": 0, "timestamp_column": "TEST_TIMESTAMP", "context_column": "MISSING_LIST", "column_name": "BLOCKS_IMPACTED_COUNT", "model": "{{ get_where_subquery(ref('observability__traces')) }}"}, "namespace": null}, "database": "polygon", "schema": "accepted_values_recent_row_observability", "name": "accepted_values_recent_row_observability__traces_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0", "resource_type": "test", "package_name": "fsc_evm", "path": "accepted_values_recent_row_obs_6c37772413ddd838104aba321aeb0974.sql", "original_file_path": "models/main_package/observability/observability__traces.yml", "unique_id": "test.fsc_evm.accepted_values_recent_row_observability__traces_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.a009465ad0", "fqn": ["fsc_evm", "main_package", "observability", "accepted_values_recent_row_observability__traces_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0"], "alias": "traces_BLOCKS_IMPACTED_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_recent_row_obs_6c37772413ddd838104aba321aeb0974", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_recent_row_obs_6c37772413ddd838104aba321aeb0974", "store_failures": true}, "created_at": 1764018440.6468344, "relation_name": "polygon.accepted_values_recent_row_observability.traces_BLOCKS_IMPACTED_COUNT", "raw_code": "{{ test_accepted_values_recent_row(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_recent_row_obs_6c37772413ddd838104aba321aeb0974\") }}", "language": "sql", "refs": [{"name": "observability__traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_accepted_values_recent_row", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.observability__traces"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/observability/observability__traces.yml/accepted_values_recent_row_obs_6c37772413ddd838104aba321aeb0974.sql", "compiled": true, "compiled_code": "\n\nSELECT\n BLOCKS_IMPACTED_COUNT,\n MISSING_LIST\nFROM\n polygon.observability.traces\nWHERE\n TEST_TIMESTAMP = (\n SELECT\n MAX(\n TEST_TIMESTAMP\n )\n FROM\n polygon.observability.traces\n )\n AND BLOCKS_IMPACTED_COUNT <> 0\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKS_IMPACTED_COUNT", "file_key_name": "models.observability__traces", "attached_node": "model.fsc_evm.observability__traces"}, "test.fsc_evm.not_null_observability__blocks_TEST_TIMESTAMP.6047fc0ddc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TEST_TIMESTAMP", "model": "{{ get_where_subquery(ref('observability__blocks')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_observability", "name": "not_null_observability__blocks_TEST_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_observability__blocks_TEST_TIMESTAMP.sql", "original_file_path": "models/main_package/observability/observability__blocks.yml", "unique_id": "test.fsc_evm.not_null_observability__blocks_TEST_TIMESTAMP.6047fc0ddc", "fqn": ["fsc_evm", "main_package", "observability", "not_null_observability__blocks_TEST_TIMESTAMP"], "alias": "blocks_TEST_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.6524327, "relation_name": "polygon.not_null_observability.blocks_TEST_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "observability__blocks", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.observability__blocks"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/observability/observability__blocks.yml/not_null_observability__blocks_TEST_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.observability.blocks\nwhere TEST_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TEST_TIMESTAMP", "file_key_name": "models.observability__blocks", "attached_node": "model.fsc_evm.observability__blocks"}, "test.fsc_evm.accepted_values_recent_row_observability__blocks_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.d058a90f3b": {"test_metadata": {"name": "accepted_values_recent_row", "kwargs": {"value": 0, "timestamp_column": "TEST_TIMESTAMP", "context_column": "MISSING_LIST", "column_name": "BLOCKS_IMPACTED_COUNT", "model": "{{ get_where_subquery(ref('observability__blocks')) }}"}, "namespace": null}, "database": "polygon", "schema": "accepted_values_recent_row_observability", "name": "accepted_values_recent_row_observability__blocks_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0", "resource_type": "test", "package_name": "fsc_evm", "path": "accepted_values_recent_row_obs_bd9c6e4bbaacfa15e20adf4fb3719850.sql", "original_file_path": "models/main_package/observability/observability__blocks.yml", "unique_id": "test.fsc_evm.accepted_values_recent_row_observability__blocks_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.d058a90f3b", "fqn": ["fsc_evm", "main_package", "observability", "accepted_values_recent_row_observability__blocks_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0"], "alias": "blocks_BLOCKS_IMPACTED_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_recent_row_obs_bd9c6e4bbaacfa15e20adf4fb3719850", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_recent_row_obs_bd9c6e4bbaacfa15e20adf4fb3719850", "store_failures": true}, "created_at": 1764018440.6545587, "relation_name": "polygon.accepted_values_recent_row_observability.blocks_BLOCKS_IMPACTED_COUNT", "raw_code": "{{ test_accepted_values_recent_row(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_recent_row_obs_bd9c6e4bbaacfa15e20adf4fb3719850\") }}", "language": "sql", "refs": [{"name": "observability__blocks", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_accepted_values_recent_row", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.observability__blocks"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/observability/observability__blocks.yml/accepted_values_recent_row_obs_bd9c6e4bbaacfa15e20adf4fb3719850.sql", "compiled": true, "compiled_code": "\n\nSELECT\n BLOCKS_IMPACTED_COUNT,\n MISSING_LIST\nFROM\n polygon.observability.blocks\nWHERE\n TEST_TIMESTAMP = (\n SELECT\n MAX(\n TEST_TIMESTAMP\n )\n FROM\n polygon.observability.blocks\n )\n AND BLOCKS_IMPACTED_COUNT <> 0\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKS_IMPACTED_COUNT", "file_key_name": "models.observability__blocks", "attached_node": "model.fsc_evm.observability__blocks"}, "test.fsc_evm.not_null_observability__receipts_TEST_TIMESTAMP.c023aec11f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TEST_TIMESTAMP", "model": "{{ get_where_subquery(ref('observability__receipts')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_observability", "name": "not_null_observability__receipts_TEST_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_observability__receipts_TEST_TIMESTAMP.sql", "original_file_path": "models/main_package/observability/observability__receipts.yml", "unique_id": "test.fsc_evm.not_null_observability__receipts_TEST_TIMESTAMP.c023aec11f", "fqn": ["fsc_evm", "main_package", "observability", "not_null_observability__receipts_TEST_TIMESTAMP"], "alias": "receipts_TEST_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.6601257, "relation_name": "polygon.not_null_observability.receipts_TEST_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "observability__receipts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.observability__receipts"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/observability/observability__receipts.yml/not_null_observability__receipts_TEST_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.observability.receipts\nwhere TEST_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TEST_TIMESTAMP", "file_key_name": "models.observability__receipts", "attached_node": "model.fsc_evm.observability__receipts"}, "test.fsc_evm.accepted_values_recent_row_observability__receipts_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.3c8361f4b6": {"test_metadata": {"name": "accepted_values_recent_row", "kwargs": {"value": 0, "timestamp_column": "TEST_TIMESTAMP", "context_column": "MISSING_LIST", "column_name": "BLOCKS_IMPACTED_COUNT", "model": "{{ get_where_subquery(ref('observability__receipts')) }}"}, "namespace": null}, "database": "polygon", "schema": "accepted_values_recent_row_observability", "name": "accepted_values_recent_row_observability__receipts_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0", "resource_type": "test", "package_name": "fsc_evm", "path": "accepted_values_recent_row_obs_09b631d9544f6c08eac3c11eada380a6.sql", "original_file_path": "models/main_package/observability/observability__receipts.yml", "unique_id": "test.fsc_evm.accepted_values_recent_row_observability__receipts_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.3c8361f4b6", "fqn": ["fsc_evm", "main_package", "observability", "accepted_values_recent_row_observability__receipts_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0"], "alias": "receipts_BLOCKS_IMPACTED_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_recent_row_obs_09b631d9544f6c08eac3c11eada380a6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_recent_row_obs_09b631d9544f6c08eac3c11eada380a6", "store_failures": true}, "created_at": 1764018440.6622813, "relation_name": "polygon.accepted_values_recent_row_observability.receipts_BLOCKS_IMPACTED_COUNT", "raw_code": "{{ test_accepted_values_recent_row(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_recent_row_obs_09b631d9544f6c08eac3c11eada380a6\") }}", "language": "sql", "refs": [{"name": "observability__receipts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_accepted_values_recent_row", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.observability__receipts"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/observability/observability__receipts.yml/accepted_values_recent_row_obs_09b631d9544f6c08eac3c11eada380a6.sql", "compiled": true, "compiled_code": "\n\nSELECT\n BLOCKS_IMPACTED_COUNT,\n MISSING_LIST\nFROM\n polygon.observability.receipts\nWHERE\n TEST_TIMESTAMP = (\n SELECT\n MAX(\n TEST_TIMESTAMP\n )\n FROM\n polygon.observability.receipts\n )\n AND BLOCKS_IMPACTED_COUNT <> 0\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKS_IMPACTED_COUNT", "file_key_name": "models.observability__receipts", "attached_node": "model.fsc_evm.observability__receipts"}, "test.fsc_evm.not_null_silver__complete_native_asset_metadata_PROVIDER.2f310e1236": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROVIDER", "model": "{{ get_where_subquery(ref('silver__complete_native_asset_metadata')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_native_asset_metadata_PROVIDER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_native_asset_metadata_PROVIDER.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_native_asset_metadata.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_native_asset_metadata_PROVIDER.2f310e1236", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_native_asset_metadata_PROVIDER"], "alias": "complete_native_asset_metadata_PROVIDER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.668901, "relation_name": "polygon.not_null_silver.complete_native_asset_metadata_PROVIDER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_native_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_native_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_native_asset_metadata.yml/not_null_silver__complete_native_asset_metadata_PROVIDER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_native_asset_metadata\nwhere PROVIDER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROVIDER", "file_key_name": "models.silver__complete_native_asset_metadata", "attached_node": "model.fsc_evm.silver__complete_native_asset_metadata"}, "test.fsc_evm.not_null_silver__complete_native_asset_metadata_SYMBOL.ff109ff1ee": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SYMBOL", "model": "{{ get_where_subquery(ref('silver__complete_native_asset_metadata')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_native_asset_metadata_SYMBOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_native_asset_metadata_SYMBOL.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_native_asset_metadata.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_native_asset_metadata_SYMBOL.ff109ff1ee", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_native_asset_metadata_SYMBOL"], "alias": "complete_native_asset_metadata_SYMBOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.6710594, "relation_name": "polygon.not_null_silver.complete_native_asset_metadata_SYMBOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_native_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_native_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_native_asset_metadata.yml/not_null_silver__complete_native_asset_metadata_SYMBOL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_native_asset_metadata\nwhere SYMBOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SYMBOL", "file_key_name": "models.silver__complete_native_asset_metadata", "attached_node": "model.fsc_evm.silver__complete_native_asset_metadata"}, "test.fsc_evm.not_null_silver__complete_native_asset_metadata_BLOCKCHAIN.fea8f73c16": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('silver__complete_native_asset_metadata')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_native_asset_metadata_BLOCKCHAIN", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_native_asset_metadata_BLOCKCHAIN.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_native_asset_metadata.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_native_asset_metadata_BLOCKCHAIN.fea8f73c16", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_native_asset_metadata_BLOCKCHAIN"], "alias": "complete_native_asset_metadata_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.673164, "relation_name": "polygon.not_null_silver.complete_native_asset_metadata_BLOCKCHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_native_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_native_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_native_asset_metadata.yml/not_null_silver__complete_native_asset_metadata_BLOCKCHAIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_native_asset_metadata\nwhere BLOCKCHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKCHAIN", "file_key_name": "models.silver__complete_native_asset_metadata", "attached_node": "model.fsc_evm.silver__complete_native_asset_metadata"}, "test.fsc_evm.not_null_silver__complete_native_asset_metadata_MODIFIED_TIMESTAMP.c6bcef6cb9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__complete_native_asset_metadata')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_native_asset_metadata_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_nati_d2f3fe77f692011191790a57b3a4752e.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_native_asset_metadata.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_native_asset_metadata_MODIFIED_TIMESTAMP.c6bcef6cb9", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_native_asset_metadata_MODIFIED_TIMESTAMP"], "alias": "complete_native_asset_metadata_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver__complete_nati_d2f3fe77f692011191790a57b3a4752e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver__complete_nati_d2f3fe77f692011191790a57b3a4752e", "store_failures": true}, "created_at": 1764018440.6752517, "relation_name": "polygon.not_null_silver.complete_native_asset_metadata_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver__complete_nati_d2f3fe77f692011191790a57b3a4752e\") }}", "language": "sql", "refs": [{"name": "silver__complete_native_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_native_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_native_asset_metadata.yml/not_null_silver__complete_nati_d2f3fe77f692011191790a57b3a4752e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_native_asset_metadata\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver__complete_native_asset_metadata", "attached_node": "model.fsc_evm.silver__complete_native_asset_metadata"}, "test.fsc_evm.unique_silver__complete_native_asset_metadata_COMPLETE_NATIVE_ASSET_METADATA_ID.d98ec00bc9": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "COMPLETE_NATIVE_ASSET_METADATA_ID", "model": "{{ get_where_subquery(ref('silver__complete_native_asset_metadata')) }}"}, "namespace": null}, "database": "polygon", "schema": "unique_silver", "name": "unique_silver__complete_native_asset_metadata_COMPLETE_NATIVE_ASSET_METADATA_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "unique_silver__complete_native_4dfb7f708a7304a034cad59a3300dc38.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_native_asset_metadata.yml", "unique_id": "test.fsc_evm.unique_silver__complete_native_asset_metadata_COMPLETE_NATIVE_ASSET_METADATA_ID.d98ec00bc9", "fqn": ["fsc_evm", "main_package", "prices", "silver", "unique_silver__complete_native_asset_metadata_COMPLETE_NATIVE_ASSET_METADATA_ID"], "alias": "complete_native_asset_metadata_COMPLETE_NATIVE_ASSET_METADATA_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_silver__complete_native_4dfb7f708a7304a034cad59a3300dc38", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_silver__complete_native_4dfb7f708a7304a034cad59a3300dc38", "store_failures": true}, "created_at": 1764018440.6773894, "relation_name": "polygon.unique_silver.complete_native_asset_metadata_COMPLETE_NATIVE_ASSET_METADATA_ID", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_silver__complete_native_4dfb7f708a7304a034cad59a3300dc38\") }}", "language": "sql", "refs": [{"name": "silver__complete_native_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_native_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_native_asset_metadata.yml/unique_silver__complete_native_4dfb7f708a7304a034cad59a3300dc38.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n COMPLETE_NATIVE_ASSET_METADATA_ID as unique_field,\n count(*) as n_records\n\nfrom polygon.silver.complete_native_asset_metadata\nwhere COMPLETE_NATIVE_ASSET_METADATA_ID is not null\ngroup by COMPLETE_NATIVE_ASSET_METADATA_ID\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "COMPLETE_NATIVE_ASSET_METADATA_ID", "file_key_name": "models.silver__complete_native_asset_metadata", "attached_node": "model.fsc_evm.silver__complete_native_asset_metadata"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_native_asset_metadata_SYMBOL.6c5f561373": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["SYMBOL"], "model": "{{ get_where_subquery(ref('silver__complete_native_asset_metadata')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__complete_native_asset_metadata_SYMBOL", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_dc0e0e90cc6872ee08ea2ad556afa7af.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_native_asset_metadata.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_native_asset_metadata_SYMBOL.6c5f561373", "fqn": ["fsc_evm", "main_package", "prices", "silver", "dbt_utils_unique_combination_of_columns_silver__complete_native_asset_metadata_SYMBOL"], "alias": "complete_native_asset_metadata_SYMBOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dc0e0e90cc6872ee08ea2ad556afa7af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dc0e0e90cc6872ee08ea2ad556afa7af", "store_failures": true}, "created_at": 1764018440.6794696, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.complete_native_asset_metadata_SYMBOL", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dc0e0e90cc6872ee08ea2ad556afa7af\") }}", "language": "sql", "refs": [{"name": "silver__complete_native_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_native_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_native_asset_metadata.yml/dbt_utils_unique_combination_o_dc0e0e90cc6872ee08ea2ad556afa7af.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n SYMBOL\n from polygon.silver.complete_native_asset_metadata\n group by SYMBOL\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__complete_native_asset_metadata", "attached_node": "model.fsc_evm.silver__complete_native_asset_metadata"}, "test.fsc_evm.not_null_silver__complete_provider_prices_PROVIDER.982c1dc287": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROVIDER", "model": "{{ get_where_subquery(ref('silver__complete_provider_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_provider_prices_PROVIDER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_provider_prices_PROVIDER.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_provider_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_provider_prices_PROVIDER.982c1dc287", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_provider_prices_PROVIDER"], "alias": "complete_provider_prices_PROVIDER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.6867385, "relation_name": "polygon.not_null_silver.complete_provider_prices_PROVIDER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_provider_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_provider_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_provider_prices.yml/not_null_silver__complete_provider_prices_PROVIDER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_provider_prices\nwhere PROVIDER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROVIDER", "file_key_name": "models.silver__complete_provider_prices", "attached_node": "model.fsc_evm.silver__complete_provider_prices"}, "test.fsc_evm.not_null_silver__complete_provider_prices_ASSET_ID.a10e7dad30": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ASSET_ID", "model": "{{ get_where_subquery(ref('silver__complete_provider_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_provider_prices_ASSET_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_provider_prices_ASSET_ID.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_provider_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_provider_prices_ASSET_ID.a10e7dad30", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_provider_prices_ASSET_ID"], "alias": "complete_provider_prices_ASSET_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.6888773, "relation_name": "polygon.not_null_silver.complete_provider_prices_ASSET_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_provider_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_provider_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_provider_prices.yml/not_null_silver__complete_provider_prices_ASSET_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_provider_prices\nwhere ASSET_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ASSET_ID", "file_key_name": "models.silver__complete_provider_prices", "attached_node": "model.fsc_evm.silver__complete_provider_prices"}, "test.fsc_evm.not_null_silver__complete_provider_prices_RECORDED_HOUR.73c3cfdf0d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "RECORDED_HOUR", "model": "{{ get_where_subquery(ref('silver__complete_provider_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_provider_prices_RECORDED_HOUR", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_provider_prices_RECORDED_HOUR.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_provider_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_provider_prices_RECORDED_HOUR.73c3cfdf0d", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_provider_prices_RECORDED_HOUR"], "alias": "complete_provider_prices_RECORDED_HOUR", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.69205, "relation_name": "polygon.not_null_silver.complete_provider_prices_RECORDED_HOUR", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_provider_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_provider_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_provider_prices.yml/not_null_silver__complete_provider_prices_RECORDED_HOUR.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_provider_prices\nwhere RECORDED_HOUR is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "RECORDED_HOUR", "file_key_name": "models.silver__complete_provider_prices", "attached_node": "model.fsc_evm.silver__complete_provider_prices"}, "test.fsc_evm.not_null_silver__complete_provider_prices_MODIFIED_TIMESTAMP.b205ba003b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__complete_provider_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_provider_prices_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_provider_prices_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_provider_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_provider_prices_MODIFIED_TIMESTAMP.b205ba003b", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_provider_prices_MODIFIED_TIMESTAMP"], "alias": "complete_provider_prices_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.6941855, "relation_name": "polygon.not_null_silver.complete_provider_prices_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_provider_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_provider_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_provider_prices.yml/not_null_silver__complete_provider_prices_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_provider_prices\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver__complete_provider_prices", "attached_node": "model.fsc_evm.silver__complete_provider_prices"}, "test.fsc_evm.unique_silver__complete_provider_prices_COMPLETE_PROVIDER_PRICES_ID.52bf8dd406": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "COMPLETE_PROVIDER_PRICES_ID", "model": "{{ get_where_subquery(ref('silver__complete_provider_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "unique_silver", "name": "unique_silver__complete_provider_prices_COMPLETE_PROVIDER_PRICES_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "unique_silver__complete_provid_f49d76afb82b6b1245838eaac0e62f56.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_provider_prices.yml", "unique_id": "test.fsc_evm.unique_silver__complete_provider_prices_COMPLETE_PROVIDER_PRICES_ID.52bf8dd406", "fqn": ["fsc_evm", "main_package", "prices", "silver", "unique_silver__complete_provider_prices_COMPLETE_PROVIDER_PRICES_ID"], "alias": "complete_provider_prices_COMPLETE_PROVIDER_PRICES_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_silver__complete_provid_f49d76afb82b6b1245838eaac0e62f56", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_silver__complete_provid_f49d76afb82b6b1245838eaac0e62f56", "store_failures": true}, "created_at": 1764018440.6962478, "relation_name": "polygon.unique_silver.complete_provider_prices_COMPLETE_PROVIDER_PRICES_ID", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_silver__complete_provid_f49d76afb82b6b1245838eaac0e62f56\") }}", "language": "sql", "refs": [{"name": "silver__complete_provider_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_provider_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_provider_prices.yml/unique_silver__complete_provid_f49d76afb82b6b1245838eaac0e62f56.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n COMPLETE_PROVIDER_PRICES_ID as unique_field,\n count(*) as n_records\n\nfrom polygon.silver.complete_provider_prices\nwhere COMPLETE_PROVIDER_PRICES_ID is not null\ngroup by COMPLETE_PROVIDER_PRICES_ID\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "COMPLETE_PROVIDER_PRICES_ID", "file_key_name": "models.silver__complete_provider_prices", "attached_node": "model.fsc_evm.silver__complete_provider_prices"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_provider_prices_ASSET_ID__RECORDED_HOUR__PROVIDER.6e3c3ab2b1": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ASSET_ID", "RECORDED_HOUR", "PROVIDER"], "model": "{{ get_where_subquery(ref('silver__complete_provider_prices')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__complete_provider_prices_ASSET_ID__RECORDED_HOUR__PROVIDER", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_e54004aaffd15b013a71f54fe378969e.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_provider_prices.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_provider_prices_ASSET_ID__RECORDED_HOUR__PROVIDER.6e3c3ab2b1", "fqn": ["fsc_evm", "main_package", "prices", "silver", "dbt_utils_unique_combination_of_columns_silver__complete_provider_prices_ASSET_ID__RECORDED_HOUR__PROVIDER"], "alias": "complete_provider_prices_ASSET_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e54004aaffd15b013a71f54fe378969e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e54004aaffd15b013a71f54fe378969e", "store_failures": true}, "created_at": 1764018440.6984105, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.complete_provider_prices_ASSET_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e54004aaffd15b013a71f54fe378969e\") }}", "language": "sql", "refs": [{"name": "silver__complete_provider_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_provider_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_provider_prices.yml/dbt_utils_unique_combination_o_e54004aaffd15b013a71f54fe378969e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ASSET_ID, RECORDED_HOUR, PROVIDER\n from polygon.silver.complete_provider_prices\n group by ASSET_ID, RECORDED_HOUR, PROVIDER\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__complete_provider_prices", "attached_node": "model.fsc_evm.silver__complete_provider_prices"}, "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_PROVIDER.b0c689d31b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROVIDER", "model": "{{ get_where_subquery(ref('silver__complete_provider_asset_metadata')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_provider_asset_metadata_PROVIDER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_provider_asset_metadata_PROVIDER.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_provider_asset_metadata.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_PROVIDER.b0c689d31b", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_provider_asset_metadata_PROVIDER"], "alias": "complete_provider_asset_metadata_PROVIDER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.705001, "relation_name": "polygon.not_null_silver.complete_provider_asset_metadata_PROVIDER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_provider_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_provider_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_provider_asset_metadata.yml/not_null_silver__complete_provider_asset_metadata_PROVIDER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_provider_asset_metadata\nwhere PROVIDER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROVIDER", "file_key_name": "models.silver__complete_provider_asset_metadata", "attached_node": "model.fsc_evm.silver__complete_provider_asset_metadata"}, "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_ASSET_ID.b4b221e9f2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ASSET_ID", "model": "{{ get_where_subquery(ref('silver__complete_provider_asset_metadata')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_provider_asset_metadata_ASSET_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_provider_asset_metadata_ASSET_ID.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_provider_asset_metadata.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_ASSET_ID.b4b221e9f2", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_provider_asset_metadata_ASSET_ID"], "alias": "complete_provider_asset_metadata_ASSET_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7071404, "relation_name": "polygon.not_null_silver.complete_provider_asset_metadata_ASSET_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_provider_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_provider_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_provider_asset_metadata.yml/not_null_silver__complete_provider_asset_metadata_ASSET_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_provider_asset_metadata\nwhere ASSET_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ASSET_ID", "file_key_name": "models.silver__complete_provider_asset_metadata", "attached_node": "model.fsc_evm.silver__complete_provider_asset_metadata"}, "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_MODIFIED_TIMESTAMP.47fee02027": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__complete_provider_asset_metadata')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_provider_asset_metadata_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_prov_fa4fe74558b3df7164164432a6615ed8.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_provider_asset_metadata.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_MODIFIED_TIMESTAMP.47fee02027", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_provider_asset_metadata_MODIFIED_TIMESTAMP"], "alias": "complete_provider_asset_metadata_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver__complete_prov_fa4fe74558b3df7164164432a6615ed8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver__complete_prov_fa4fe74558b3df7164164432a6615ed8", "store_failures": true}, "created_at": 1764018440.709233, "relation_name": "polygon.not_null_silver.complete_provider_asset_metadata_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver__complete_prov_fa4fe74558b3df7164164432a6615ed8\") }}", "language": "sql", "refs": [{"name": "silver__complete_provider_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_provider_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_provider_asset_metadata.yml/not_null_silver__complete_prov_fa4fe74558b3df7164164432a6615ed8.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_provider_asset_metadata\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver__complete_provider_asset_metadata", "attached_node": "model.fsc_evm.silver__complete_provider_asset_metadata"}, "test.fsc_evm.unique_silver__complete_provider_asset_metadata_COMPLETE_PROVIDER_ASSET_METADATA_ID.945e90b882": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "COMPLETE_PROVIDER_ASSET_METADATA_ID", "model": "{{ get_where_subquery(ref('silver__complete_provider_asset_metadata')) }}"}, "namespace": null}, "database": "polygon", "schema": "unique_silver", "name": "unique_silver__complete_provider_asset_metadata_COMPLETE_PROVIDER_ASSET_METADATA_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "unique_silver__complete_provid_3e03a9f981544feb398db50a0a29cdc7.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_provider_asset_metadata.yml", "unique_id": "test.fsc_evm.unique_silver__complete_provider_asset_metadata_COMPLETE_PROVIDER_ASSET_METADATA_ID.945e90b882", "fqn": ["fsc_evm", "main_package", "prices", "silver", "unique_silver__complete_provider_asset_metadata_COMPLETE_PROVIDER_ASSET_METADATA_ID"], "alias": "complete_provider_asset_metadata_COMPLETE_PROVIDER_ASSET_METADATA_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_silver__complete_provid_3e03a9f981544feb398db50a0a29cdc7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_silver__complete_provid_3e03a9f981544feb398db50a0a29cdc7", "store_failures": true}, "created_at": 1764018440.7113018, "relation_name": "polygon.unique_silver.complete_provider_asset_metadata_COMPLETE_PROVIDER_ASSET_METADATA_ID", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_silver__complete_provid_3e03a9f981544feb398db50a0a29cdc7\") }}", "language": "sql", "refs": [{"name": "silver__complete_provider_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_provider_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_provider_asset_metadata.yml/unique_silver__complete_provid_3e03a9f981544feb398db50a0a29cdc7.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n COMPLETE_PROVIDER_ASSET_METADATA_ID as unique_field,\n count(*) as n_records\n\nfrom polygon.silver.complete_provider_asset_metadata\nwhere COMPLETE_PROVIDER_ASSET_METADATA_ID is not null\ngroup by COMPLETE_PROVIDER_ASSET_METADATA_ID\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "COMPLETE_PROVIDER_ASSET_METADATA_ID", "file_key_name": "models.silver__complete_provider_asset_metadata", "attached_node": "model.fsc_evm.silver__complete_provider_asset_metadata"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_provider_asset_metadata_ASSET_ID__TOKEN_ADDRESS__NAME__SYMBOL__PLATFORM__PLATFORM_ID__PROVIDER.e355e7b6b2": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ASSET_ID", "TOKEN_ADDRESS", "NAME", "SYMBOL", "PLATFORM", "PLATFORM_ID", "PROVIDER"], "model": "{{ get_where_subquery(ref('silver__complete_provider_asset_metadata')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__complete_provider_asset_metadata_ASSET_ID__TOKEN_ADDRESS__NAME__SYMBOL__PLATFORM__PLATFORM_ID__PROVIDER", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_e4eef7b7bb8906d97bd9258750290d97.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_provider_asset_metadata.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_provider_asset_metadata_ASSET_ID__TOKEN_ADDRESS__NAME__SYMBOL__PLATFORM__PLATFORM_ID__PROVIDER.e355e7b6b2", "fqn": ["fsc_evm", "main_package", "prices", "silver", "dbt_utils_unique_combination_of_columns_silver__complete_provider_asset_metadata_ASSET_ID__TOKEN_ADDRESS__NAME__SYMBOL__PLATFORM__PLATFORM_ID__PROVIDER"], "alias": "complete_provider_asset_metadata_ASSET_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e4eef7b7bb8906d97bd9258750290d97", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e4eef7b7bb8906d97bd9258750290d97", "store_failures": true}, "created_at": 1764018440.7133858, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.complete_provider_asset_metadata_ASSET_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e4eef7b7bb8906d97bd9258750290d97\") }}", "language": "sql", "refs": [{"name": "silver__complete_provider_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_provider_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_provider_asset_metadata.yml/dbt_utils_unique_combination_o_e4eef7b7bb8906d97bd9258750290d97.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ASSET_ID, TOKEN_ADDRESS, NAME, SYMBOL, PLATFORM, PLATFORM_ID, PROVIDER\n from polygon.silver.complete_provider_asset_metadata\n group by ASSET_ID, TOKEN_ADDRESS, NAME, SYMBOL, PLATFORM, PLATFORM_ID, PROVIDER\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__complete_provider_asset_metadata", "attached_node": "model.fsc_evm.silver__complete_provider_asset_metadata"}, "test.fsc_evm.not_null_silver__complete_token_asset_metadata_PROVIDER.0d1d2c6852": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROVIDER", "model": "{{ get_where_subquery(ref('silver__complete_token_asset_metadata')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_token_asset_metadata_PROVIDER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_token_asset_metadata_PROVIDER.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_asset_metadata.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_token_asset_metadata_PROVIDER.0d1d2c6852", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_token_asset_metadata_PROVIDER"], "alias": "complete_token_asset_metadata_PROVIDER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7214258, "relation_name": "polygon.not_null_silver.complete_token_asset_metadata_PROVIDER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_token_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_token_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_asset_metadata.yml/not_null_silver__complete_token_asset_metadata_PROVIDER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_token_asset_metadata\nwhere PROVIDER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROVIDER", "file_key_name": "models.silver__complete_token_asset_metadata", "attached_node": "model.fsc_evm.silver__complete_token_asset_metadata"}, "test.fsc_evm.not_null_silver__complete_token_asset_metadata_TOKEN_ADDRESS.06a52e0e67": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_ADDRESS", "model": "{{ get_where_subquery(ref('silver__complete_token_asset_metadata')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_token_asset_metadata_TOKEN_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_token_asset_metadata_TOKEN_ADDRESS.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_asset_metadata.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_token_asset_metadata_TOKEN_ADDRESS.06a52e0e67", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_token_asset_metadata_TOKEN_ADDRESS"], "alias": "complete_token_asset_metadata_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7238154, "relation_name": "polygon.not_null_silver.complete_token_asset_metadata_TOKEN_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_token_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_token_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_asset_metadata.yml/not_null_silver__complete_token_asset_metadata_TOKEN_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_token_asset_metadata\nwhere TOKEN_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ADDRESS", "file_key_name": "models.silver__complete_token_asset_metadata", "attached_node": "model.fsc_evm.silver__complete_token_asset_metadata"}, "test.fsc_evm.not_null_silver__complete_token_asset_metadata_BLOCKCHAIN.3791975c91": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('silver__complete_token_asset_metadata')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_token_asset_metadata_BLOCKCHAIN", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_token_asset_metadata_BLOCKCHAIN.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_asset_metadata.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_token_asset_metadata_BLOCKCHAIN.3791975c91", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_token_asset_metadata_BLOCKCHAIN"], "alias": "complete_token_asset_metadata_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.725927, "relation_name": "polygon.not_null_silver.complete_token_asset_metadata_BLOCKCHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_token_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_token_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_asset_metadata.yml/not_null_silver__complete_token_asset_metadata_BLOCKCHAIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_token_asset_metadata\nwhere BLOCKCHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKCHAIN", "file_key_name": "models.silver__complete_token_asset_metadata", "attached_node": "model.fsc_evm.silver__complete_token_asset_metadata"}, "test.fsc_evm.not_null_silver__complete_token_asset_metadata_BLOCKCHAIN_ID.fe8350a322": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN_ID", "model": "{{ get_where_subquery(ref('silver__complete_token_asset_metadata')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_token_asset_metadata_BLOCKCHAIN_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_token_asset_metadata_BLOCKCHAIN_ID.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_asset_metadata.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_token_asset_metadata_BLOCKCHAIN_ID.fe8350a322", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_token_asset_metadata_BLOCKCHAIN_ID"], "alias": "complete_token_asset_metadata_BLOCKCHAIN_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7279813, "relation_name": "polygon.not_null_silver.complete_token_asset_metadata_BLOCKCHAIN_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_token_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_token_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_asset_metadata.yml/not_null_silver__complete_token_asset_metadata_BLOCKCHAIN_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_token_asset_metadata\nwhere BLOCKCHAIN_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKCHAIN_ID", "file_key_name": "models.silver__complete_token_asset_metadata", "attached_node": "model.fsc_evm.silver__complete_token_asset_metadata"}, "test.fsc_evm.not_null_silver__complete_token_asset_metadata_MODIFIED_TIMESTAMP.58ef7db480": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__complete_token_asset_metadata')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_token_asset_metadata_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_toke_502d28fe7759d5565101adc7372ac059.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_asset_metadata.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_token_asset_metadata_MODIFIED_TIMESTAMP.58ef7db480", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_token_asset_metadata_MODIFIED_TIMESTAMP"], "alias": "complete_token_asset_metadata_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver__complete_toke_502d28fe7759d5565101adc7372ac059", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver__complete_toke_502d28fe7759d5565101adc7372ac059", "store_failures": true}, "created_at": 1764018440.7300568, "relation_name": "polygon.not_null_silver.complete_token_asset_metadata_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver__complete_toke_502d28fe7759d5565101adc7372ac059\") }}", "language": "sql", "refs": [{"name": "silver__complete_token_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_token_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_asset_metadata.yml/not_null_silver__complete_toke_502d28fe7759d5565101adc7372ac059.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_token_asset_metadata\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver__complete_token_asset_metadata", "attached_node": "model.fsc_evm.silver__complete_token_asset_metadata"}, "test.fsc_evm.unique_silver__complete_token_asset_metadata_COMPLETE_TOKEN_ASSET_METADATA_ID.99f9227588": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "COMPLETE_TOKEN_ASSET_METADATA_ID", "model": "{{ get_where_subquery(ref('silver__complete_token_asset_metadata')) }}"}, "namespace": null}, "database": "polygon", "schema": "unique_silver", "name": "unique_silver__complete_token_asset_metadata_COMPLETE_TOKEN_ASSET_METADATA_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "unique_silver__complete_token__7b9913fd69873ddd6c6a5040164278f9.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_asset_metadata.yml", "unique_id": "test.fsc_evm.unique_silver__complete_token_asset_metadata_COMPLETE_TOKEN_ASSET_METADATA_ID.99f9227588", "fqn": ["fsc_evm", "main_package", "prices", "silver", "unique_silver__complete_token_asset_metadata_COMPLETE_TOKEN_ASSET_METADATA_ID"], "alias": "complete_token_asset_metadata_COMPLETE_TOKEN_ASSET_METADATA_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_silver__complete_token__7b9913fd69873ddd6c6a5040164278f9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_silver__complete_token__7b9913fd69873ddd6c6a5040164278f9", "store_failures": true}, "created_at": 1764018440.7321086, "relation_name": "polygon.unique_silver.complete_token_asset_metadata_COMPLETE_TOKEN_ASSET_METADATA_ID", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_silver__complete_token__7b9913fd69873ddd6c6a5040164278f9\") }}", "language": "sql", "refs": [{"name": "silver__complete_token_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_token_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_asset_metadata.yml/unique_silver__complete_token__7b9913fd69873ddd6c6a5040164278f9.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n COMPLETE_TOKEN_ASSET_METADATA_ID as unique_field,\n count(*) as n_records\n\nfrom polygon.silver.complete_token_asset_metadata\nwhere COMPLETE_TOKEN_ASSET_METADATA_ID is not null\ngroup by COMPLETE_TOKEN_ASSET_METADATA_ID\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "COMPLETE_TOKEN_ASSET_METADATA_ID", "file_key_name": "models.silver__complete_token_asset_metadata", "attached_node": "model.fsc_evm.silver__complete_token_asset_metadata"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_token_asset_metadata_TOKEN_ADDRESS__BLOCKCHAIN.d3d6b2a62b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["TOKEN_ADDRESS", "BLOCKCHAIN"], "model": "{{ get_where_subquery(ref('silver__complete_token_asset_metadata')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__complete_token_asset_metadata_TOKEN_ADDRESS__BLOCKCHAIN", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_2b99a7915412110c9378f9c81ab44458.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_asset_metadata.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_token_asset_metadata_TOKEN_ADDRESS__BLOCKCHAIN.d3d6b2a62b", "fqn": ["fsc_evm", "main_package", "prices", "silver", "dbt_utils_unique_combination_of_columns_silver__complete_token_asset_metadata_TOKEN_ADDRESS__BLOCKCHAIN"], "alias": "complete_token_asset_metadata_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2b99a7915412110c9378f9c81ab44458", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2b99a7915412110c9378f9c81ab44458", "store_failures": true}, "created_at": 1764018440.734221, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.complete_token_asset_metadata_TOKEN_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2b99a7915412110c9378f9c81ab44458\") }}", "language": "sql", "refs": [{"name": "silver__complete_token_asset_metadata", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_token_asset_metadata"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_asset_metadata.yml/dbt_utils_unique_combination_o_2b99a7915412110c9378f9c81ab44458.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n TOKEN_ADDRESS, BLOCKCHAIN\n from polygon.silver.complete_token_asset_metadata\n group by TOKEN_ADDRESS, BLOCKCHAIN\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__complete_token_asset_metadata", "attached_node": "model.fsc_evm.silver__complete_token_asset_metadata"}, "test.fsc_evm.not_null_silver__complete_native_prices_HOUR.84672fd317": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "HOUR", "model": "{{ get_where_subquery(ref('silver__complete_native_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_native_prices_HOUR", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_native_prices_HOUR.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_native_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_native_prices_HOUR.84672fd317", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_native_prices_HOUR"], "alias": "complete_native_prices_HOUR", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7420907, "relation_name": "polygon.not_null_silver.complete_native_prices_HOUR", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_native_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_native_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_native_prices.yml/not_null_silver__complete_native_prices_HOUR.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_native_prices\nwhere HOUR is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "HOUR", "file_key_name": "models.silver__complete_native_prices", "attached_node": "model.fsc_evm.silver__complete_native_prices"}, "test.fsc_evm.not_null_silver__complete_native_prices_SYMBOL.640aa16109": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SYMBOL", "model": "{{ get_where_subquery(ref('silver__complete_native_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_native_prices_SYMBOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_native_prices_SYMBOL.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_native_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_native_prices_SYMBOL.640aa16109", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_native_prices_SYMBOL"], "alias": "complete_native_prices_SYMBOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.74421, "relation_name": "polygon.not_null_silver.complete_native_prices_SYMBOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_native_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_native_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_native_prices.yml/not_null_silver__complete_native_prices_SYMBOL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_native_prices\nwhere SYMBOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SYMBOL", "file_key_name": "models.silver__complete_native_prices", "attached_node": "model.fsc_evm.silver__complete_native_prices"}, "test.fsc_evm.not_null_silver__complete_native_prices_BLOCKCHAIN.3557f90197": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('silver__complete_native_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_native_prices_BLOCKCHAIN", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_native_prices_BLOCKCHAIN.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_native_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_native_prices_BLOCKCHAIN.3557f90197", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_native_prices_BLOCKCHAIN"], "alias": "complete_native_prices_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.746306, "relation_name": "polygon.not_null_silver.complete_native_prices_BLOCKCHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_native_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_native_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_native_prices.yml/not_null_silver__complete_native_prices_BLOCKCHAIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_native_prices\nwhere BLOCKCHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKCHAIN", "file_key_name": "models.silver__complete_native_prices", "attached_node": "model.fsc_evm.silver__complete_native_prices"}, "test.fsc_evm.not_null_silver__complete_native_prices_PROVIDER.391be2433a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROVIDER", "model": "{{ get_where_subquery(ref('silver__complete_native_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_native_prices_PROVIDER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_native_prices_PROVIDER.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_native_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_native_prices_PROVIDER.391be2433a", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_native_prices_PROVIDER"], "alias": "complete_native_prices_PROVIDER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7486768, "relation_name": "polygon.not_null_silver.complete_native_prices_PROVIDER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_native_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_native_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_native_prices.yml/not_null_silver__complete_native_prices_PROVIDER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_native_prices\nwhere PROVIDER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROVIDER", "file_key_name": "models.silver__complete_native_prices", "attached_node": "model.fsc_evm.silver__complete_native_prices"}, "test.fsc_evm.not_null_silver__complete_native_prices_PRICE.5d22b3dfe0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PRICE", "model": "{{ get_where_subquery(ref('silver__complete_native_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_native_prices_PRICE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_native_prices_PRICE.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_native_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_native_prices_PRICE.5d22b3dfe0", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_native_prices_PRICE"], "alias": "complete_native_prices_PRICE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7507856, "relation_name": "polygon.not_null_silver.complete_native_prices_PRICE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_native_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_native_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_native_prices.yml/not_null_silver__complete_native_prices_PRICE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_native_prices\nwhere PRICE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PRICE", "file_key_name": "models.silver__complete_native_prices", "attached_node": "model.fsc_evm.silver__complete_native_prices"}, "test.fsc_evm.not_null_silver__complete_native_prices_IS_IMPUTED.9b41704925": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "IS_IMPUTED", "model": "{{ get_where_subquery(ref('silver__complete_native_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_native_prices_IS_IMPUTED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_native_prices_IS_IMPUTED.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_native_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_native_prices_IS_IMPUTED.9b41704925", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_native_prices_IS_IMPUTED"], "alias": "complete_native_prices_IS_IMPUTED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7528956, "relation_name": "polygon.not_null_silver.complete_native_prices_IS_IMPUTED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_native_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_native_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_native_prices.yml/not_null_silver__complete_native_prices_IS_IMPUTED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_native_prices\nwhere IS_IMPUTED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "IS_IMPUTED", "file_key_name": "models.silver__complete_native_prices", "attached_node": "model.fsc_evm.silver__complete_native_prices"}, "test.fsc_evm.not_null_silver__complete_native_prices__INSERTED_TIMESTAMP.030d747f3c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__complete_native_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_native_prices__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_native_prices__INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_native_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_native_prices__INSERTED_TIMESTAMP.030d747f3c", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_native_prices__INSERTED_TIMESTAMP"], "alias": "complete_native_prices", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7549736, "relation_name": "polygon.not_null_silver.complete_native_prices", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_native_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_native_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_native_prices.yml/not_null_silver__complete_native_prices__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_native_prices\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__complete_native_prices", "attached_node": "model.fsc_evm.silver__complete_native_prices"}, "test.fsc_evm.not_null_silver__complete_native_prices_MODIFIED_TIMESTAMP.595acedfe2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__complete_native_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_native_prices_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_native_prices_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_native_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_native_prices_MODIFIED_TIMESTAMP.595acedfe2", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_native_prices_MODIFIED_TIMESTAMP"], "alias": "complete_native_prices_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.757051, "relation_name": "polygon.not_null_silver.complete_native_prices_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_native_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_native_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_native_prices.yml/not_null_silver__complete_native_prices_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_native_prices\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver__complete_native_prices", "attached_node": "model.fsc_evm.silver__complete_native_prices"}, "test.fsc_evm.unique_silver__complete_native_prices_COMPLETE_NATIVE_PRICES_ID.6e5981548b": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "COMPLETE_NATIVE_PRICES_ID", "model": "{{ get_where_subquery(ref('silver__complete_native_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "unique_silver", "name": "unique_silver__complete_native_prices_COMPLETE_NATIVE_PRICES_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "unique_silver__complete_native_prices_COMPLETE_NATIVE_PRICES_ID.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_native_prices.yml", "unique_id": "test.fsc_evm.unique_silver__complete_native_prices_COMPLETE_NATIVE_PRICES_ID.6e5981548b", "fqn": ["fsc_evm", "main_package", "prices", "silver", "unique_silver__complete_native_prices_COMPLETE_NATIVE_PRICES_ID"], "alias": "complete_native_prices_COMPLETE_NATIVE_PRICES_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7591739, "relation_name": "polygon.unique_silver.complete_native_prices_COMPLETE_NATIVE_PRICES_ID", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_native_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_native_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_native_prices.yml/unique_silver__complete_native_prices_COMPLETE_NATIVE_PRICES_ID.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n COMPLETE_NATIVE_PRICES_ID as unique_field,\n count(*) as n_records\n\nfrom polygon.silver.complete_native_prices\nwhere COMPLETE_NATIVE_PRICES_ID is not null\ngroup by COMPLETE_NATIVE_PRICES_ID\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "COMPLETE_NATIVE_PRICES_ID", "file_key_name": "models.silver__complete_native_prices", "attached_node": "model.fsc_evm.silver__complete_native_prices"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_native_prices_HOUR__SYMBOL.9742f3d916": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["HOUR", "SYMBOL"], "model": "{{ get_where_subquery(ref('silver__complete_native_prices')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__complete_native_prices_HOUR__SYMBOL", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_53833e2ea0f1a4b7218f7850d394c7a6.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_native_prices.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_native_prices_HOUR__SYMBOL.9742f3d916", "fqn": ["fsc_evm", "main_package", "prices", "silver", "dbt_utils_unique_combination_of_columns_silver__complete_native_prices_HOUR__SYMBOL"], "alias": "complete_native_prices_HOUR", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_53833e2ea0f1a4b7218f7850d394c7a6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_53833e2ea0f1a4b7218f7850d394c7a6", "store_failures": true}, "created_at": 1764018440.7615438, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.complete_native_prices_HOUR", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_53833e2ea0f1a4b7218f7850d394c7a6\") }}", "language": "sql", "refs": [{"name": "silver__complete_native_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_native_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_native_prices.yml/dbt_utils_unique_combination_o_53833e2ea0f1a4b7218f7850d394c7a6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n HOUR, SYMBOL\n from polygon.silver.complete_native_prices\n group by HOUR, SYMBOL\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__complete_native_prices", "attached_node": "model.fsc_evm.silver__complete_native_prices"}, "test.fsc_evm.not_null_silver__complete_token_prices_HOUR.d5f4cd597b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "HOUR", "model": "{{ get_where_subquery(ref('silver__complete_token_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_token_prices_HOUR", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_token_prices_HOUR.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_token_prices_HOUR.d5f4cd597b", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_token_prices_HOUR"], "alias": "complete_token_prices_HOUR", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7684312, "relation_name": "polygon.not_null_silver.complete_token_prices_HOUR", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_token_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_token_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_prices.yml/not_null_silver__complete_token_prices_HOUR.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_token_prices\nwhere HOUR is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "HOUR", "file_key_name": "models.silver__complete_token_prices", "attached_node": "model.fsc_evm.silver__complete_token_prices"}, "test.fsc_evm.not_null_silver__complete_token_prices_TOKEN_ADDRESS.7e03ade9df": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_ADDRESS", "model": "{{ get_where_subquery(ref('silver__complete_token_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_token_prices_TOKEN_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_token_prices_TOKEN_ADDRESS.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_token_prices_TOKEN_ADDRESS.7e03ade9df", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_token_prices_TOKEN_ADDRESS"], "alias": "complete_token_prices_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7707934, "relation_name": "polygon.not_null_silver.complete_token_prices_TOKEN_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_token_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_token_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_prices.yml/not_null_silver__complete_token_prices_TOKEN_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_token_prices\nwhere TOKEN_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ADDRESS", "file_key_name": "models.silver__complete_token_prices", "attached_node": "model.fsc_evm.silver__complete_token_prices"}, "test.fsc_evm.not_null_silver__complete_token_prices_BLOCKCHAIN.ada1620192": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('silver__complete_token_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_token_prices_BLOCKCHAIN", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_token_prices_BLOCKCHAIN.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_token_prices_BLOCKCHAIN.ada1620192", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_token_prices_BLOCKCHAIN"], "alias": "complete_token_prices_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7729602, "relation_name": "polygon.not_null_silver.complete_token_prices_BLOCKCHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_token_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_token_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_prices.yml/not_null_silver__complete_token_prices_BLOCKCHAIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_token_prices\nwhere BLOCKCHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKCHAIN", "file_key_name": "models.silver__complete_token_prices", "attached_node": "model.fsc_evm.silver__complete_token_prices"}, "test.fsc_evm.not_null_silver__complete_token_prices_BLOCKCHAIN_ID.6aac0fa10e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN_ID", "model": "{{ get_where_subquery(ref('silver__complete_token_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_token_prices_BLOCKCHAIN_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_token_prices_BLOCKCHAIN_ID.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_token_prices_BLOCKCHAIN_ID.6aac0fa10e", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_token_prices_BLOCKCHAIN_ID"], "alias": "complete_token_prices_BLOCKCHAIN_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7750182, "relation_name": "polygon.not_null_silver.complete_token_prices_BLOCKCHAIN_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_token_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_token_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_prices.yml/not_null_silver__complete_token_prices_BLOCKCHAIN_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_token_prices\nwhere BLOCKCHAIN_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKCHAIN_ID", "file_key_name": "models.silver__complete_token_prices", "attached_node": "model.fsc_evm.silver__complete_token_prices"}, "test.fsc_evm.not_null_silver__complete_token_prices_PROVIDER.d7e55cb9a3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROVIDER", "model": "{{ get_where_subquery(ref('silver__complete_token_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_token_prices_PROVIDER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_token_prices_PROVIDER.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_token_prices_PROVIDER.d7e55cb9a3", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_token_prices_PROVIDER"], "alias": "complete_token_prices_PROVIDER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7770646, "relation_name": "polygon.not_null_silver.complete_token_prices_PROVIDER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_token_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_token_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_prices.yml/not_null_silver__complete_token_prices_PROVIDER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_token_prices\nwhere PROVIDER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROVIDER", "file_key_name": "models.silver__complete_token_prices", "attached_node": "model.fsc_evm.silver__complete_token_prices"}, "test.fsc_evm.not_null_silver__complete_token_prices_PRICE.9b78fa1dae": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PRICE", "model": "{{ get_where_subquery(ref('silver__complete_token_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_token_prices_PRICE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_token_prices_PRICE.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_token_prices_PRICE.9b78fa1dae", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_token_prices_PRICE"], "alias": "complete_token_prices_PRICE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7792761, "relation_name": "polygon.not_null_silver.complete_token_prices_PRICE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_token_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_token_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_prices.yml/not_null_silver__complete_token_prices_PRICE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_token_prices\nwhere PRICE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PRICE", "file_key_name": "models.silver__complete_token_prices", "attached_node": "model.fsc_evm.silver__complete_token_prices"}, "test.fsc_evm.not_null_silver__complete_token_prices_IS_IMPUTED.8a84f91c9e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "IS_IMPUTED", "model": "{{ get_where_subquery(ref('silver__complete_token_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_token_prices_IS_IMPUTED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_token_prices_IS_IMPUTED.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_token_prices_IS_IMPUTED.8a84f91c9e", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_token_prices_IS_IMPUTED"], "alias": "complete_token_prices_IS_IMPUTED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.781418, "relation_name": "polygon.not_null_silver.complete_token_prices_IS_IMPUTED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_token_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_token_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_prices.yml/not_null_silver__complete_token_prices_IS_IMPUTED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_token_prices\nwhere IS_IMPUTED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "IS_IMPUTED", "file_key_name": "models.silver__complete_token_prices", "attached_node": "model.fsc_evm.silver__complete_token_prices"}, "test.fsc_evm.not_null_silver__complete_token_prices__INSERTED_TIMESTAMP.90a2d67d90": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__complete_token_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_token_prices__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_token_prices__INSERTED_TIMESTAMP.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_token_prices__INSERTED_TIMESTAMP.90a2d67d90", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_token_prices__INSERTED_TIMESTAMP"], "alias": "complete_token_prices", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7835054, "relation_name": "polygon.not_null_silver.complete_token_prices", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_token_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_token_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_prices.yml/not_null_silver__complete_token_prices__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_token_prices\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__complete_token_prices", "attached_node": "model.fsc_evm.silver__complete_token_prices"}, "test.fsc_evm.not_null_silver__complete_token_prices_MODIFIED_TIMESTAMP.74882978f6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__complete_token_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__complete_token_prices_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__complete_token_prices_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_prices.yml", "unique_id": "test.fsc_evm.not_null_silver__complete_token_prices_MODIFIED_TIMESTAMP.74882978f6", "fqn": ["fsc_evm", "main_package", "prices", "silver", "not_null_silver__complete_token_prices_MODIFIED_TIMESTAMP"], "alias": "complete_token_prices_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7859247, "relation_name": "polygon.not_null_silver.complete_token_prices_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_token_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_token_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_prices.yml/not_null_silver__complete_token_prices_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.complete_token_prices\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver__complete_token_prices", "attached_node": "model.fsc_evm.silver__complete_token_prices"}, "test.fsc_evm.unique_silver__complete_token_prices_COMPLETE_TOKEN_PRICES_ID.c4ea6e2a79": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "COMPLETE_TOKEN_PRICES_ID", "model": "{{ get_where_subquery(ref('silver__complete_token_prices')) }}"}, "namespace": null}, "database": "polygon", "schema": "unique_silver", "name": "unique_silver__complete_token_prices_COMPLETE_TOKEN_PRICES_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "unique_silver__complete_token_prices_COMPLETE_TOKEN_PRICES_ID.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_prices.yml", "unique_id": "test.fsc_evm.unique_silver__complete_token_prices_COMPLETE_TOKEN_PRICES_ID.c4ea6e2a79", "fqn": ["fsc_evm", "main_package", "prices", "silver", "unique_silver__complete_token_prices_COMPLETE_TOKEN_PRICES_ID"], "alias": "complete_token_prices_COMPLETE_TOKEN_PRICES_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.7880077, "relation_name": "polygon.unique_silver.complete_token_prices_COMPLETE_TOKEN_PRICES_ID", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__complete_token_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_token_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_prices.yml/unique_silver__complete_token_prices_COMPLETE_TOKEN_PRICES_ID.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n COMPLETE_TOKEN_PRICES_ID as unique_field,\n count(*) as n_records\n\nfrom polygon.silver.complete_token_prices\nwhere COMPLETE_TOKEN_PRICES_ID is not null\ngroup by COMPLETE_TOKEN_PRICES_ID\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "COMPLETE_TOKEN_PRICES_ID", "file_key_name": "models.silver__complete_token_prices", "attached_node": "model.fsc_evm.silver__complete_token_prices"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_token_prices_HOUR__TOKEN_ADDRESS__BLOCKCHAIN.dde8fc55cf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["HOUR", "TOKEN_ADDRESS", "BLOCKCHAIN"], "model": "{{ get_where_subquery(ref('silver__complete_token_prices')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__complete_token_prices_HOUR__TOKEN_ADDRESS__BLOCKCHAIN", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_6bfe3f301137c8d74abbdbcf73c8cef9.sql", "original_file_path": "models/main_package/prices/silver/silver__complete_token_prices.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_token_prices_HOUR__TOKEN_ADDRESS__BLOCKCHAIN.dde8fc55cf", "fqn": ["fsc_evm", "main_package", "prices", "silver", "dbt_utils_unique_combination_of_columns_silver__complete_token_prices_HOUR__TOKEN_ADDRESS__BLOCKCHAIN"], "alias": "complete_token_prices_HOUR", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6bfe3f301137c8d74abbdbcf73c8cef9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6bfe3f301137c8d74abbdbcf73c8cef9", "store_failures": true}, "created_at": 1764018440.790121, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.complete_token_prices_HOUR", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6bfe3f301137c8d74abbdbcf73c8cef9\") }}", "language": "sql", "refs": [{"name": "silver__complete_token_prices", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__complete_token_prices"]}, "compiled_path": "target/compiled/fsc_evm/models/main_package/prices/silver/silver__complete_token_prices.yml/dbt_utils_unique_combination_o_6bfe3f301137c8d74abbdbcf73c8cef9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n HOUR, TOKEN_ADDRESS, BLOCKCHAIN\n from polygon.silver.complete_token_prices\n group by HOUR, TOKEN_ADDRESS, BLOCKCHAIN\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__complete_token_prices", "attached_node": "model.fsc_evm.silver__complete_token_prices"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BLOCK_NUMBER.d8e5a4d173": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__complete_bridge_activity_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__complete_bridge_activity_BLOCK_NUMBER.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BLOCK_NUMBER.d8e5a4d173", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "not_null_silver_bridge__complete_bridge_activity_BLOCK_NUMBER"], "alias": "complete_bridge_activity_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.8160777, "relation_name": "polygon.not_null_silver_bridge.complete_bridge_activity_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/not_null_silver_bridge__complete_bridge_activity_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.complete_bridge_activity\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BLOCK_TIMESTAMP.27eecb602c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__complete_bridge_activity_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__comple_0a96e7686a7ba9d7f967cc564e2790bd.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BLOCK_TIMESTAMP.27eecb602c", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "not_null_silver_bridge__complete_bridge_activity_BLOCK_TIMESTAMP"], "alias": "complete_bridge_activity_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_bridge__comple_0a96e7686a7ba9d7f967cc564e2790bd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_bridge__comple_0a96e7686a7ba9d7f967cc564e2790bd", "store_failures": true}, "created_at": 1764018440.8191824, "relation_name": "polygon.not_null_silver_bridge.complete_bridge_activity_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_bridge__comple_0a96e7686a7ba9d7f967cc564e2790bd\") }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/not_null_silver_bridge__comple_0a96e7686a7ba9d7f967cc564e2790bd.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.complete_bridge_activity\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TX_HASH.befc121de7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__complete_bridge_activity_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__complete_bridge_activity_TX_HASH.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TX_HASH.befc121de7", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "not_null_silver_bridge__complete_bridge_activity_TX_HASH"], "alias": "complete_bridge_activity_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.82126, "relation_name": "polygon.not_null_silver_bridge.complete_bridge_activity_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/not_null_silver_bridge__complete_bridge_activity_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.complete_bridge_activity\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_TX_HASH__0_xX_0_9a_fA_F_.eea93a120e": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_bridge", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_b4ceda55a09cefadefd97254672ef641.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_TX_HASH__0_xX_0_9a_fA_F_.eea93a120e", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "complete_bridge_activity_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b4ceda55a09cefadefd97254672ef641", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b4ceda55a09cefadefd97254672ef641", "store_failures": true}, "created_at": 1764018440.8233862, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_bridge.complete_bridge_activity_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b4ceda55a09cefadefd97254672ef641\") }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/dbt_expectations_expect_column_b4ceda55a09cefadefd97254672ef641.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_bridge.complete_bridge_activity\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS.fb3df4392d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BRIDGE_ADDRESS", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS.fb3df4392d", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "not_null_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS"], "alias": "complete_bridge_activity_BRIDGE_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.828904, "relation_name": "polygon.not_null_silver_bridge.complete_bridge_activity_BRIDGE_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/not_null_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.complete_bridge_activity\nwhere BRIDGE_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BRIDGE_ADDRESS", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS__0_xX_0_9a_fA_F_.25648fcf6b": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "BRIDGE_ADDRESS", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_bridge", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_3f9851b57eff2048a6ccc7f34ee1b111.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS__0_xX_0_9a_fA_F_.25648fcf6b", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "complete_bridge_activity_BRIDGE_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3f9851b57eff2048a6ccc7f34ee1b111", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3f9851b57eff2048a6ccc7f34ee1b111", "store_failures": true}, "created_at": 1764018440.830992, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_bridge.complete_bridge_activity_BRIDGE_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3f9851b57eff2048a6ccc7f34ee1b111\") }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/dbt_expectations_expect_column_3f9851b57eff2048a6ccc7f34ee1b111.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(BRIDGE_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_bridge.complete_bridge_activity\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BRIDGE_ADDRESS", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_DESTINATION_CHAIN_RECEIVER.73ef2ee307": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DESTINATION_CHAIN_RECEIVER", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__complete_bridge_activity_DESTINATION_CHAIN_RECEIVER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__comple_499f9efa6efeb5375ed9f1f023118ba0.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_DESTINATION_CHAIN_RECEIVER.73ef2ee307", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "not_null_silver_bridge__complete_bridge_activity_DESTINATION_CHAIN_RECEIVER"], "alias": "complete_bridge_activity_DESTINATION_CHAIN_RECEIVER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_bridge__comple_499f9efa6efeb5375ed9f1f023118ba0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_bridge__comple_499f9efa6efeb5375ed9f1f023118ba0", "store_failures": true}, "created_at": 1764018440.8363283, "relation_name": "polygon.not_null_silver_bridge.complete_bridge_activity_DESTINATION_CHAIN_RECEIVER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_bridge__comple_499f9efa6efeb5375ed9f1f023118ba0\") }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/not_null_silver_bridge__comple_499f9efa6efeb5375ed9f1f023118ba0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.complete_bridge_activity\nwhere DESTINATION_CHAIN_RECEIVER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DESTINATION_CHAIN_RECEIVER", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_SENDER.64ca378992": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SENDER", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__complete_bridge_activity_SENDER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__complete_bridge_activity_SENDER.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_SENDER.64ca378992", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "not_null_silver_bridge__complete_bridge_activity_SENDER"], "alias": "complete_bridge_activity_SENDER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.8384225, "relation_name": "polygon.not_null_silver_bridge.complete_bridge_activity_SENDER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/not_null_silver_bridge__complete_bridge_activity_SENDER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.complete_bridge_activity\nwhere SENDER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SENDER", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_SENDER__0_xX_0_9a_fA_F_.45e7cc2df2": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "SENDER", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_bridge", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_SENDER__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_ca32d1c2400ea7023e49738a7de0f616.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_SENDER__0_xX_0_9a_fA_F_.45e7cc2df2", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_SENDER__0_xX_0_9a_fA_F_"], "alias": "complete_bridge_activity_SENDER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ca32d1c2400ea7023e49738a7de0f616", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_ca32d1c2400ea7023e49738a7de0f616", "store_failures": true}, "created_at": 1764018440.8405113, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_bridge.complete_bridge_activity_SENDER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ca32d1c2400ea7023e49738a7de0f616\") }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/dbt_expectations_expect_column_ca32d1c2400ea7023e49738a7de0f616.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(SENDER, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_bridge.complete_bridge_activity\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SENDER", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_RECEIVER.a37b06afd8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "RECEIVER", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__complete_bridge_activity_RECEIVER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__complete_bridge_activity_RECEIVER.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_RECEIVER.a37b06afd8", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "not_null_silver_bridge__complete_bridge_activity_RECEIVER"], "alias": "complete_bridge_activity_RECEIVER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.845932, "relation_name": "polygon.not_null_silver_bridge.complete_bridge_activity_RECEIVER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/not_null_silver_bridge__complete_bridge_activity_RECEIVER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.complete_bridge_activity\nwhere RECEIVER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "RECEIVER", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_RECEIVER__0_xX_0_9a_fA_F_.2465acf0d7": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "RECEIVER", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_bridge", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_RECEIVER__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_800508c31b5773653bf4b33d876c0765.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_RECEIVER__0_xX_0_9a_fA_F_.2465acf0d7", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_RECEIVER__0_xX_0_9a_fA_F_"], "alias": "complete_bridge_activity_RECEIVER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_800508c31b5773653bf4b33d876c0765", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_800508c31b5773653bf4b33d876c0765", "store_failures": true}, "created_at": 1764018440.848016, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_bridge.complete_bridge_activity_RECEIVER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_800508c31b5773653bf4b33d876c0765\") }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/dbt_expectations_expect_column_800508c31b5773653bf4b33d876c0765.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(RECEIVER, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_bridge.complete_bridge_activity\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "RECEIVER", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_AMOUNT_UNADJ.f05776f272": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_UNADJ", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__complete_bridge_activity_AMOUNT_UNADJ", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__complete_bridge_activity_AMOUNT_UNADJ.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_AMOUNT_UNADJ.f05776f272", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "not_null_silver_bridge__complete_bridge_activity_AMOUNT_UNADJ"], "alias": "complete_bridge_activity_AMOUNT_UNADJ", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.8534336, "relation_name": "polygon.not_null_silver_bridge.complete_bridge_activity_AMOUNT_UNADJ", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/not_null_silver_bridge__complete_bridge_activity_AMOUNT_UNADJ.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.complete_bridge_activity\nwhere AMOUNT_UNADJ is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_UNADJ", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS.07fa5639c8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_ADDRESS", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS.07fa5639c8", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "not_null_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS"], "alias": "complete_bridge_activity_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.8556232, "relation_name": "polygon.not_null_silver_bridge.complete_bridge_activity_TOKEN_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/not_null_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.complete_bridge_activity\nwhere TOKEN_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ADDRESS", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.fc73bfce91": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TOKEN_ADDRESS", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_bridge", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_890bee1f0a56d02128b8e8ab414be0e7.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.fc73bfce91", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "complete_bridge_activity_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_890bee1f0a56d02128b8e8ab414be0e7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_890bee1f0a56d02128b8e8ab414be0e7", "store_failures": true}, "created_at": 1764018440.8577483, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_bridge.complete_bridge_activity_TOKEN_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_890bee1f0a56d02128b8e8ab414be0e7\") }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/dbt_expectations_expect_column_890bee1f0a56d02128b8e8ab414be0e7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TOKEN_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_bridge.complete_bridge_activity\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ADDRESS", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_PLATFORM.2c7a290a2a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__complete_bridge_activity_PLATFORM", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__complete_bridge_activity_PLATFORM.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_PLATFORM.2c7a290a2a", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "not_null_silver_bridge__complete_bridge_activity_PLATFORM"], "alias": "complete_bridge_activity_PLATFORM", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.8633833, "relation_name": "polygon.not_null_silver_bridge.complete_bridge_activity_PLATFORM", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/not_null_silver_bridge__complete_bridge_activity_PLATFORM.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.complete_bridge_activity\nwhere PLATFORM is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_PROTOCOL.a6cfc199ee": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROTOCOL", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__complete_bridge_activity_PROTOCOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__complete_bridge_activity_PROTOCOL.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_PROTOCOL.a6cfc199ee", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "not_null_silver_bridge__complete_bridge_activity_PROTOCOL"], "alias": "complete_bridge_activity_PROTOCOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.8655715, "relation_name": "polygon.not_null_silver_bridge.complete_bridge_activity_PROTOCOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/not_null_silver_bridge__complete_bridge_activity_PROTOCOL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.complete_bridge_activity\nwhere PROTOCOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROTOCOL", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_VERSION.7818ca0d4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VERSION", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__complete_bridge_activity_VERSION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__complete_bridge_activity_VERSION.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_VERSION.7818ca0d4e", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "not_null_silver_bridge__complete_bridge_activity_VERSION"], "alias": "complete_bridge_activity_VERSION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.8677168, "relation_name": "polygon.not_null_silver_bridge.complete_bridge_activity_VERSION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/not_null_silver_bridge__complete_bridge_activity_VERSION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.complete_bridge_activity\nwhere VERSION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VERSION", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TYPE.37341141f3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TYPE", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__complete_bridge_activity_TYPE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__complete_bridge_activity_TYPE.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TYPE.37341141f3", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "not_null_silver_bridge__complete_bridge_activity_TYPE"], "alias": "complete_bridge_activity_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.869807, "relation_name": "polygon.not_null_silver_bridge.complete_bridge_activity_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/not_null_silver_bridge__complete_bridge_activity_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.complete_bridge_activity\nwhere TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TYPE", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_bridge__complete_bridge_activity_MODIFIED_TIMESTAMP__day__3.1fb2addfd1": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 3, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver_bridge", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver_bridge__complete_bridge_activity_MODIFIED_TIMESTAMP__day__3", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_95b43bb8f67a86dcc1417b3b710c9b88.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_bridge__complete_bridge_activity_MODIFIED_TIMESTAMP__day__3.1fb2addfd1", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver_bridge__complete_bridge_activity_MODIFIED_TIMESTAMP__day__3"], "alias": "complete_bridge_activity_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_95b43bb8f67a86dcc1417b3b710c9b88", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_95b43bb8f67a86dcc1417b3b710c9b88", "store_failures": true}, "created_at": 1764018440.8719282, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver_bridge.complete_bridge_activity_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_95b43bb8f67a86dcc1417b3b710c9b88\") }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/dbt_expectations_expect_row_va_95b43bb8f67a86dcc1417b3b710c9b88.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver_bridge.complete_bridge_activity\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__complete_bridge_activity__ID.3d98f8a8be": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_ID"], "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_bridge", "name": "dbt_utils_unique_combination_of_columns_silver_bridge__complete_bridge_activity__ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_c902d7b6660aae4988fd9eb3652068da.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__complete_bridge_activity__ID.3d98f8a8be", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "dbt_utils_unique_combination_of_columns_silver_bridge__complete_bridge_activity__ID"], "alias": "complete_bridge_activity", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c902d7b6660aae4988fd9eb3652068da", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c902d7b6660aae4988fd9eb3652068da", "store_failures": true}, "created_at": 1764018440.879975, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_bridge.complete_bridge_activity", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c902d7b6660aae4988fd9eb3652068da\") }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/dbt_utils_unique_combination_o_c902d7b6660aae4988fd9eb3652068da.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _ID\n from polygon.silver_bridge.complete_bridge_activity\n group by _ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.curated_recency_defi_silver_bridge__complete_bridge_activity_bridge.a2b41e22b2": {"test_metadata": {"name": "curated_recency_defi", "kwargs": {"type": "bridge", "model": "{{ get_where_subquery(ref('silver_bridge__complete_bridge_activity')) }}"}, "namespace": null}, "database": "polygon", "schema": "curated_recency_defi_silver_bridge", "name": "curated_recency_defi_silver_bridge__complete_bridge_activity_bridge", "resource_type": "test", "package_name": "fsc_evm", "path": "curated_recency_defi_silver_br_cd593fa0a5e408674a17ee038bf6bf89.sql", "original_file_path": "models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml", "unique_id": "test.fsc_evm.curated_recency_defi_silver_bridge__complete_bridge_activity_bridge.a2b41e22b2", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "curated_recency_defi_silver_bridge__complete_bridge_activity_bridge"], "alias": "complete_bridge_activity_bridge", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "curated_recency_defi_silver_br_cd593fa0a5e408674a17ee038bf6bf89", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "curated_recency_defi_silver_br_cd593fa0a5e408674a17ee038bf6bf89", "store_failures": true}, "created_at": 1764018440.8850698, "relation_name": "polygon.curated_recency_defi_silver_bridge.complete_bridge_activity_bridge", "raw_code": "{{ test_curated_recency_defi(**_dbt_generic_test_kwargs) }}{{ config(alias=\"curated_recency_defi_silver_br_cd593fa0a5e408674a17ee038bf6bf89\") }}", "language": "sql", "refs": [{"name": "silver_bridge__complete_bridge_activity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_curated_recency_defi", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__complete_bridge_activity"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/silver_bridge__complete_bridge_activity.yml/curated_recency_defi_silver_br_cd593fa0a5e408674a17ee038bf6bf89.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH source AS (\n SELECT\n platform,\n MAX(block_timestamp) AS latest_timestamp,\n SYSDATE() AS sys_ts,\n DATEADD('day', -30, SYSDATE()) AS threshold_ts,\n COUNT(\n CASE\n WHEN block_timestamp >= threshold_ts THEN 1 \n END) AS current_period_evt,\n CEIL(\n (\n COUNT(\n CASE\n WHEN block_timestamp >= DATEADD('day', -180, SYSDATE())\n AND block_timestamp < threshold_ts THEN 1\n END\n ) / 150.0\n ) * 30\n ) AS rolling_avg_evt,\n CASE\n WHEN rolling_avg_evt = 0 THEN 0\n ELSE ROUND((current_period_evt / rolling_avg_evt) * 100, 2)\n END AS percent_delta,\n 'bridge' AS type\n FROM\n polygon.silver_bridge.complete_bridge_activity\n GROUP BY\n 1\n )\n SELECT\n platform,\n latest_timestamp,\n sys_ts,\n threshold_ts,\n current_period_evt,\n rolling_avg_evt,\n percent_delta,\n type\n FROM\n source\n WHERE\n (latest_timestamp < threshold_ts \n OR (percent_delta < 10 AND percent_delta <> 0))\n \n AND platform NOT IN ('hop-v1', 'multichain-v7', 'symbiosis-v1', 'across-v1')\n \n-- failure to meet threshold requires manual review to determine if\n-- the protocol has newly deployed contracts, stale contracts, etc.\n-- if this is the case, the test should not apply to the relevant model(s)\n-- percent_delta shows current period performance vs rolling average\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_bridge__complete_bridge_activity", "attached_node": "model.fsc_evm.silver_bridge__complete_bridge_activity"}, "test.fsc_evm.not_null_silver_bridge__everclear_reads_INTENT_ID.86864cebca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INTENT_ID", "model": "{{ get_where_subquery(ref('silver_bridge__everclear_reads')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__everclear_reads_INTENT_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__everclear_reads_INTENT_ID.sql", "original_file_path": "models/curated_package/defi/bridge/silver/everclear/silver_bridge__everclear_reads.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__everclear_reads_INTENT_ID.86864cebca", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "everclear", "not_null_silver_bridge__everclear_reads_INTENT_ID"], "alias": "everclear_reads_INTENT_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.9379072, "relation_name": "polygon.not_null_silver_bridge.everclear_reads_INTENT_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_bridge__everclear_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__everclear_reads"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/everclear/silver_bridge__everclear_reads.yml/not_null_silver_bridge__everclear_reads_INTENT_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.everclear_reads\nwhere INTENT_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INTENT_ID", "file_key_name": "models.silver_bridge__everclear_reads", "attached_node": "model.fsc_evm.silver_bridge__everclear_reads"}, "test.fsc_evm.not_null_silver_bridge__everclear_reads_STATUS.25271faad7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "STATUS", "model": "{{ get_where_subquery(ref('silver_bridge__everclear_reads')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__everclear_reads_STATUS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__everclear_reads_STATUS.sql", "original_file_path": "models/curated_package/defi/bridge/silver/everclear/silver_bridge__everclear_reads.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__everclear_reads_STATUS.25271faad7", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "everclear", "not_null_silver_bridge__everclear_reads_STATUS"], "alias": "everclear_reads_STATUS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.9401793, "relation_name": "polygon.not_null_silver_bridge.everclear_reads_STATUS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_bridge__everclear_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__everclear_reads"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/everclear/silver_bridge__everclear_reads.yml/not_null_silver_bridge__everclear_reads_STATUS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.everclear_reads\nwhere STATUS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "STATUS", "file_key_name": "models.silver_bridge__everclear_reads", "attached_node": "model.fsc_evm.silver_bridge__everclear_reads"}, "test.fsc_evm.not_null_silver_bridge__everclear_reads_OUTPUT_ASSET.506d895537": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "OUTPUT_ASSET", "model": "{{ get_where_subquery(ref('silver_bridge__everclear_reads')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__everclear_reads_OUTPUT_ASSET", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__everclear_reads_OUTPUT_ASSET.sql", "original_file_path": "models/curated_package/defi/bridge/silver/everclear/silver_bridge__everclear_reads.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__everclear_reads_OUTPUT_ASSET.506d895537", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "everclear", "not_null_silver_bridge__everclear_reads_OUTPUT_ASSET"], "alias": "everclear_reads_OUTPUT_ASSET", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "status = 'SETTLED_AND_COMPLETED'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "status = 'SETTLED_AND_COMPLETED'", "store_failures": true}, "created_at": 1764018440.9427257, "relation_name": "polygon.not_null_silver_bridge.everclear_reads_OUTPUT_ASSET", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"status = 'SETTLED_AND_COMPLETED'\") }}", "language": "sql", "refs": [{"name": "silver_bridge__everclear_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__everclear_reads"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/everclear/silver_bridge__everclear_reads.yml/not_null_silver_bridge__everclear_reads_OUTPUT_ASSET.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_bridge.everclear_reads where status = 'SETTLED_AND_COMPLETED') dbt_subquery\nwhere OUTPUT_ASSET is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "OUTPUT_ASSET", "file_key_name": "models.silver_bridge__everclear_reads", "attached_node": "model.fsc_evm.silver_bridge__everclear_reads"}, "test.fsc_evm.not_null_silver_bridge__everclear_reads_DESTINATION_CHAIN_ID.708d1c3ec8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DESTINATION_CHAIN_ID", "model": "{{ get_where_subquery(ref('silver_bridge__everclear_reads')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__everclear_reads_DESTINATION_CHAIN_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__everclear_reads_DESTINATION_CHAIN_ID.sql", "original_file_path": "models/curated_package/defi/bridge/silver/everclear/silver_bridge__everclear_reads.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__everclear_reads_DESTINATION_CHAIN_ID.708d1c3ec8", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "everclear", "not_null_silver_bridge__everclear_reads_DESTINATION_CHAIN_ID"], "alias": "everclear_reads_DESTINATION_CHAIN_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "status = 'SETTLED_AND_COMPLETED'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "status = 'SETTLED_AND_COMPLETED'", "store_failures": true}, "created_at": 1764018440.944885, "relation_name": "polygon.not_null_silver_bridge.everclear_reads_DESTINATION_CHAIN_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"status = 'SETTLED_AND_COMPLETED'\") }}", "language": "sql", "refs": [{"name": "silver_bridge__everclear_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__everclear_reads"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/everclear/silver_bridge__everclear_reads.yml/not_null_silver_bridge__everclear_reads_DESTINATION_CHAIN_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_bridge.everclear_reads where status = 'SETTLED_AND_COMPLETED') dbt_subquery\nwhere DESTINATION_CHAIN_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DESTINATION_CHAIN_ID", "file_key_name": "models.silver_bridge__everclear_reads", "attached_node": "model.fsc_evm.silver_bridge__everclear_reads"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__everclear_reads_INTENT_ID.0dee46a33d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["INTENT_ID"], "model": "{{ get_where_subquery(ref('silver_bridge__everclear_reads')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_bridge", "name": "dbt_utils_unique_combination_of_columns_silver_bridge__everclear_reads_INTENT_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_5072508e123d7e77f082b89145595c76.sql", "original_file_path": "models/curated_package/defi/bridge/silver/everclear/silver_bridge__everclear_reads.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__everclear_reads_INTENT_ID.0dee46a33d", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "everclear", "dbt_utils_unique_combination_of_columns_silver_bridge__everclear_reads_INTENT_ID"], "alias": "everclear_reads_INTENT_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5072508e123d7e77f082b89145595c76", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5072508e123d7e77f082b89145595c76", "store_failures": true}, "created_at": 1764018440.9470165, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_bridge.everclear_reads_INTENT_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5072508e123d7e77f082b89145595c76\") }}", "language": "sql", "refs": [{"name": "silver_bridge__everclear_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__everclear_reads"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/everclear/silver_bridge__everclear_reads.yml/dbt_utils_unique_combination_o_5072508e123d7e77f082b89145595c76.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n INTENT_ID\n from polygon.silver_bridge.everclear_reads\n group by INTENT_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_bridge__everclear_reads", "attached_node": "model.fsc_evm.silver_bridge__everclear_reads"}, "test.fsc_evm.not_null_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS.b245762efd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMM_WRAPPER_ADDRESS", "model": "{{ get_where_subquery(ref('silver_bridge__hop_ammwrapper')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS.sql", "original_file_path": "models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_ammwrapper.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS.b245762efd", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "hop", "l2", "not_null_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS"], "alias": "hop_ammwrapper_AMM_WRAPPER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.9535544, "relation_name": "polygon.not_null_silver_bridge.hop_ammwrapper_AMM_WRAPPER_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_bridge__hop_ammwrapper", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__hop_ammwrapper"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_ammwrapper.yml/not_null_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.hop_ammwrapper\nwhere AMM_WRAPPER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMM_WRAPPER_ADDRESS", "file_key_name": "models.silver_bridge__hop_ammwrapper", "attached_node": "model.fsc_evm.silver_bridge__hop_ammwrapper"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS__0_xX_0_9a_fA_F_.84556e1744": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "AMM_WRAPPER_ADDRESS", "model": "{{ get_where_subquery(ref('silver_bridge__hop_ammwrapper')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_bridge", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_bf2eb0b6a09a9a9679d142dfd7a16dc0.sql", "original_file_path": "models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_ammwrapper.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS__0_xX_0_9a_fA_F_.84556e1744", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "hop", "l2", "dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "hop_ammwrapper_AMM_WRAPPER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_bf2eb0b6a09a9a9679d142dfd7a16dc0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_bf2eb0b6a09a9a9679d142dfd7a16dc0", "store_failures": true}, "created_at": 1764018440.955731, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_bridge.hop_ammwrapper_AMM_WRAPPER_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_bf2eb0b6a09a9a9679d142dfd7a16dc0\") }}", "language": "sql", "refs": [{"name": "silver_bridge__hop_ammwrapper", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__hop_ammwrapper"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_ammwrapper.yml/dbt_expectations_expect_column_bf2eb0b6a09a9a9679d142dfd7a16dc0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(AMM_WRAPPER_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_bridge.hop_ammwrapper\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMM_WRAPPER_ADDRESS", "file_key_name": "models.silver_bridge__hop_ammwrapper", "attached_node": "model.fsc_evm.silver_bridge__hop_ammwrapper"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_ammwrapper_CONTRACT_ADDRESS.aea7fc3d3b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS"], "model": "{{ get_where_subquery(ref('silver_bridge__hop_ammwrapper')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_bridge", "name": "dbt_utils_unique_combination_of_columns_silver_bridge__hop_ammwrapper_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_866662184f6785a29fd342a6f5bd28bf.sql", "original_file_path": "models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_ammwrapper.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_ammwrapper_CONTRACT_ADDRESS.aea7fc3d3b", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "hop", "l2", "dbt_utils_unique_combination_of_columns_silver_bridge__hop_ammwrapper_CONTRACT_ADDRESS"], "alias": "hop_ammwrapper_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_866662184f6785a29fd342a6f5bd28bf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_866662184f6785a29fd342a6f5bd28bf", "store_failures": true}, "created_at": 1764018440.9610546, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_bridge.hop_ammwrapper_CONTRACT_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_866662184f6785a29fd342a6f5bd28bf\") }}", "language": "sql", "refs": [{"name": "silver_bridge__hop_ammwrapper", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__hop_ammwrapper"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_ammwrapper.yml/dbt_utils_unique_combination_o_866662184f6785a29fd342a6f5bd28bf.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS\n from polygon.silver_bridge.hop_ammwrapper\n group by CONTRACT_ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_bridge__hop_ammwrapper", "attached_node": "model.fsc_evm.silver_bridge__hop_ammwrapper"}, "test.fsc_evm.not_null_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS.ec64401112": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_ADDRESS", "model": "{{ get_where_subquery(ref('silver_bridge__hop_l2canonicaltoken')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS.sql", "original_file_path": "models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_l2canonicaltoken.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS.ec64401112", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "hop", "l2", "not_null_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS"], "alias": "hop_l2canonicaltoken_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.966615, "relation_name": "polygon.not_null_silver_bridge.hop_l2canonicaltoken_TOKEN_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_bridge__hop_l2canonicaltoken", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__hop_l2canonicaltoken"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_l2canonicaltoken.yml/not_null_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.hop_l2canonicaltoken\nwhere TOKEN_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ADDRESS", "file_key_name": "models.silver_bridge__hop_l2canonicaltoken", "attached_node": "model.fsc_evm.silver_bridge__hop_l2canonicaltoken"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.804453d554": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TOKEN_ADDRESS", "model": "{{ get_where_subquery(ref('silver_bridge__hop_l2canonicaltoken')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_bridge", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_3c12d476ffe67031f9518df9c8deaecb.sql", "original_file_path": "models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_l2canonicaltoken.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.804453d554", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "hop", "l2", "dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "hop_l2canonicaltoken_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3c12d476ffe67031f9518df9c8deaecb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3c12d476ffe67031f9518df9c8deaecb", "store_failures": true}, "created_at": 1764018440.969311, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_bridge.hop_l2canonicaltoken_TOKEN_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3c12d476ffe67031f9518df9c8deaecb\") }}", "language": "sql", "refs": [{"name": "silver_bridge__hop_l2canonicaltoken", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__hop_l2canonicaltoken"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_l2canonicaltoken.yml/dbt_expectations_expect_column_3c12d476ffe67031f9518df9c8deaecb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TOKEN_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_bridge.hop_l2canonicaltoken\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ADDRESS", "file_key_name": "models.silver_bridge__hop_l2canonicaltoken", "attached_node": "model.fsc_evm.silver_bridge__hop_l2canonicaltoken"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_l2canonicaltoken_CONTRACT_ADDRESS.b7a0e00f9b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS"], "model": "{{ get_where_subquery(ref('silver_bridge__hop_l2canonicaltoken')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_bridge", "name": "dbt_utils_unique_combination_of_columns_silver_bridge__hop_l2canonicaltoken_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_e05a199cff4c830e01fb5490cd7ccdad.sql", "original_file_path": "models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_l2canonicaltoken.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_l2canonicaltoken_CONTRACT_ADDRESS.b7a0e00f9b", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "hop", "l2", "dbt_utils_unique_combination_of_columns_silver_bridge__hop_l2canonicaltoken_CONTRACT_ADDRESS"], "alias": "hop_l2canonicaltoken_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e05a199cff4c830e01fb5490cd7ccdad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e05a199cff4c830e01fb5490cd7ccdad", "store_failures": true}, "created_at": 1764018440.9744332, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_bridge.hop_l2canonicaltoken_CONTRACT_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e05a199cff4c830e01fb5490cd7ccdad\") }}", "language": "sql", "refs": [{"name": "silver_bridge__hop_l2canonicaltoken", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__hop_l2canonicaltoken"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/hop/l2/silver_bridge__hop_l2canonicaltoken.yml/dbt_utils_unique_combination_o_e05a199cff4c830e01fb5490cd7ccdad.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS\n from polygon.silver_bridge.hop_l2canonicaltoken\n group by CONTRACT_ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_bridge__hop_l2canonicaltoken", "attached_node": "model.fsc_evm.silver_bridge__hop_l2canonicaltoken"}, "test.fsc_evm.not_null_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS.e94f2ba3f9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_ADDRESS", "model": "{{ get_where_subquery(ref('silver_bridge__hop_l1canonicaltoken')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS.sql", "original_file_path": "models/curated_package/defi/bridge/silver/hop/l1/silver_bridge__hop_l1canonicaltoken.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS.e94f2ba3f9", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "hop", "l1", "not_null_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS"], "alias": "hop_l1canonicaltoken_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.980455, "relation_name": "polygon.not_null_silver_bridge.hop_l1canonicaltoken_TOKEN_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_bridge__hop_l1canonicaltoken", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__hop_l1canonicaltoken"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/hop/l1/silver_bridge__hop_l1canonicaltoken.yml/not_null_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.hop_l1canonicaltoken\nwhere TOKEN_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ADDRESS", "file_key_name": "models.silver_bridge__hop_l1canonicaltoken", "attached_node": "model.fsc_evm.silver_bridge__hop_l1canonicaltoken"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.23850b9de7": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TOKEN_ADDRESS", "model": "{{ get_where_subquery(ref('silver_bridge__hop_l1canonicaltoken')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_bridge", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_2d69bea8c4f6673210a4a8bad2c3ba63.sql", "original_file_path": "models/curated_package/defi/bridge/silver/hop/l1/silver_bridge__hop_l1canonicaltoken.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.23850b9de7", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "hop", "l1", "dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "hop_l1canonicaltoken_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2d69bea8c4f6673210a4a8bad2c3ba63", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_2d69bea8c4f6673210a4a8bad2c3ba63", "store_failures": true}, "created_at": 1764018440.9826202, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_bridge.hop_l1canonicaltoken_TOKEN_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2d69bea8c4f6673210a4a8bad2c3ba63\") }}", "language": "sql", "refs": [{"name": "silver_bridge__hop_l1canonicaltoken", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__hop_l1canonicaltoken"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/hop/l1/silver_bridge__hop_l1canonicaltoken.yml/dbt_expectations_expect_column_2d69bea8c4f6673210a4a8bad2c3ba63.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TOKEN_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_bridge.hop_l1canonicaltoken\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ADDRESS", "file_key_name": "models.silver_bridge__hop_l1canonicaltoken", "attached_node": "model.fsc_evm.silver_bridge__hop_l1canonicaltoken"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_l1canonicaltoken_CONTRACT_ADDRESS.1a0299fdf6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS"], "model": "{{ get_where_subquery(ref('silver_bridge__hop_l1canonicaltoken')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_bridge", "name": "dbt_utils_unique_combination_of_columns_silver_bridge__hop_l1canonicaltoken_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_fe5f1bbfa93ae1d16e77b81facd90e65.sql", "original_file_path": "models/curated_package/defi/bridge/silver/hop/l1/silver_bridge__hop_l1canonicaltoken.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_l1canonicaltoken_CONTRACT_ADDRESS.1a0299fdf6", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "hop", "l1", "dbt_utils_unique_combination_of_columns_silver_bridge__hop_l1canonicaltoken_CONTRACT_ADDRESS"], "alias": "hop_l1canonicaltoken_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fe5f1bbfa93ae1d16e77b81facd90e65", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fe5f1bbfa93ae1d16e77b81facd90e65", "store_failures": true}, "created_at": 1764018440.9881203, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_bridge.hop_l1canonicaltoken_CONTRACT_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fe5f1bbfa93ae1d16e77b81facd90e65\") }}", "language": "sql", "refs": [{"name": "silver_bridge__hop_l1canonicaltoken", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__hop_l1canonicaltoken"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/hop/l1/silver_bridge__hop_l1canonicaltoken.yml/dbt_utils_unique_combination_o_fe5f1bbfa93ae1d16e77b81facd90e65.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS\n from polygon.silver_bridge.hop_l1canonicaltoken\n group by CONTRACT_ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_bridge__hop_l1canonicaltoken", "attached_node": "model.fsc_evm.silver_bridge__hop_l1canonicaltoken"}, "test.fsc_evm.not_null_silver_bridge__stargate_createpool_TOKEN_ADDRESS.02394ab2ae": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_ADDRESS", "model": "{{ get_where_subquery(ref('silver_bridge__stargate_createpool')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_bridge", "name": "not_null_silver_bridge__stargate_createpool_TOKEN_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_bridge__stargate_createpool_TOKEN_ADDRESS.sql", "original_file_path": "models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_createpool.yml", "unique_id": "test.fsc_evm.not_null_silver_bridge__stargate_createpool_TOKEN_ADDRESS.02394ab2ae", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "stargate", "not_null_silver_bridge__stargate_createpool_TOKEN_ADDRESS"], "alias": "stargate_createpool_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018440.9939723, "relation_name": "polygon.not_null_silver_bridge.stargate_createpool_TOKEN_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_bridge__stargate_createpool", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__stargate_createpool"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_createpool.yml/not_null_silver_bridge__stargate_createpool_TOKEN_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_bridge.stargate_createpool\nwhere TOKEN_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ADDRESS", "file_key_name": "models.silver_bridge__stargate_createpool", "attached_node": "model.fsc_evm.silver_bridge__stargate_createpool"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__stargate_createpool_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.9b63c4ca5e": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TOKEN_ADDRESS", "model": "{{ get_where_subquery(ref('silver_bridge__stargate_createpool')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_bridge", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_bridge__stargate_createpool_TOKEN_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_9c773d033f8060c645bf4504763896b9.sql", "original_file_path": "models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_createpool.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__stargate_createpool_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.9b63c4ca5e", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "stargate", "dbt_expectations_expect_column_values_to_match_regex_silver_bridge__stargate_createpool_TOKEN_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "stargate_createpool_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9c773d033f8060c645bf4504763896b9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_9c773d033f8060c645bf4504763896b9", "store_failures": true}, "created_at": 1764018440.9960918, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_bridge.stargate_createpool_TOKEN_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9c773d033f8060c645bf4504763896b9\") }}", "language": "sql", "refs": [{"name": "silver_bridge__stargate_createpool", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__stargate_createpool"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_createpool.yml/dbt_expectations_expect_column_9c773d033f8060c645bf4504763896b9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TOKEN_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_bridge.stargate_createpool\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ADDRESS", "file_key_name": "models.silver_bridge__stargate_createpool", "attached_node": "model.fsc_evm.silver_bridge__stargate_createpool"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__stargate_createpool_POOL_ADDRESS.9e0053c2c5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["POOL_ADDRESS"], "model": "{{ get_where_subquery(ref('silver_bridge__stargate_createpool')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_bridge", "name": "dbt_utils_unique_combination_of_columns_silver_bridge__stargate_createpool_POOL_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_98e2a2a44d0d25395d4c8d73232395e6.sql", "original_file_path": "models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_createpool.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__stargate_createpool_POOL_ADDRESS.9e0053c2c5", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "stargate", "dbt_utils_unique_combination_of_columns_silver_bridge__stargate_createpool_POOL_ADDRESS"], "alias": "stargate_createpool_POOL_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_98e2a2a44d0d25395d4c8d73232395e6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_98e2a2a44d0d25395d4c8d73232395e6", "store_failures": true}, "created_at": 1764018441.0011659, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_bridge.stargate_createpool_POOL_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_98e2a2a44d0d25395d4c8d73232395e6\") }}", "language": "sql", "refs": [{"name": "silver_bridge__stargate_createpool", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__stargate_createpool"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/stargate/silver_bridge__stargate_createpool.yml/dbt_utils_unique_combination_o_98e2a2a44d0d25395d4c8d73232395e6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n POOL_ADDRESS\n from polygon.silver_bridge.stargate_createpool\n group by POOL_ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_bridge__stargate_createpool", "attached_node": "model.fsc_evm.silver_bridge__stargate_createpool"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__layerzero_v2_token_reads_CONTRACT_ADDRESS.cbdeb639b6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS"], "model": "{{ get_where_subquery(ref('silver_bridge__layerzero_v2_token_reads')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_bridge", "name": "dbt_utils_unique_combination_of_columns_silver_bridge__layerzero_v2_token_reads_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_e639b5ce080c0c6aa9d31e8eb09f1551.sql", "original_file_path": "models/curated_package/defi/bridge/silver/layerzero/silver_bridge__layerzero_v2_token_reads.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__layerzero_v2_token_reads_CONTRACT_ADDRESS.cbdeb639b6", "fqn": ["fsc_evm", "curated_package", "defi", "bridge", "silver", "layerzero", "dbt_utils_unique_combination_of_columns_silver_bridge__layerzero_v2_token_reads_CONTRACT_ADDRESS"], "alias": "layerzero_v2_token_reads_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e639b5ce080c0c6aa9d31e8eb09f1551", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e639b5ce080c0c6aa9d31e8eb09f1551", "store_failures": true}, "created_at": 1764018441.007019, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_bridge.layerzero_v2_token_reads_CONTRACT_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e639b5ce080c0c6aa9d31e8eb09f1551\") }}", "language": "sql", "refs": [{"name": "silver_bridge__layerzero_v2_token_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_bridge__layerzero_v2_token_reads"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/bridge/silver/layerzero/silver_bridge__layerzero_v2_token_reads.yml/dbt_utils_unique_combination_o_e639b5ce080c0c6aa9d31e8eb09f1551.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONTRACT_ADDRESS\n from polygon.silver_bridge.layerzero_v2_token_reads\n group by CONTRACT_ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_bridge__layerzero_v2_token_reads", "attached_node": "model.fsc_evm.silver_bridge__layerzero_v2_token_reads"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__stablecoin_reads_stablecoin_reads_id.ee158051a5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["stablecoin_reads_id"], "model": "{{ get_where_subquery(ref('silver__stablecoin_reads')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__stablecoin_reads_stablecoin_reads_id", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_7e699f5447b9b7fbea509c61d1ea4871.sql", "original_file_path": "models/curated_package/defi/stablecoins/reads/silver/silver__stablecoin_reads.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__stablecoin_reads_stablecoin_reads_id.ee158051a5", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "reads", "silver", "dbt_utils_unique_combination_of_columns_silver__stablecoin_reads_stablecoin_reads_id"], "alias": "stablecoin_reads_stablecoin_reads_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7e699f5447b9b7fbea509c61d1ea4871", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7e699f5447b9b7fbea509c61d1ea4871", "store_failures": true}, "created_at": 1764018441.0149105, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.stablecoin_reads_stablecoin_reads_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7e699f5447b9b7fbea509c61d1ea4871\") }}", "language": "sql", "refs": [{"name": "silver__stablecoin_reads", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__stablecoin_reads"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/reads/silver/silver__stablecoin_reads.yml/dbt_utils_unique_combination_o_7e699f5447b9b7fbea509c61d1ea4871.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n stablecoin_reads_id\n from polygon.silver.stablecoin_reads\n group by stablecoin_reads_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__stablecoin_reads", "attached_node": "model.fsc_evm.silver__stablecoin_reads"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__mint_burn_stablecoins_mint_burn_id.2ec1abace1": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["stablecoins_mint_burn_id"], "model": "{{ get_where_subquery(ref('silver_stablecoins__mint_burn')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_stablecoins", "name": "dbt_utils_unique_combination_of_columns_silver_stablecoins__mint_burn_stablecoins_mint_burn_id", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_cc73396dc76b4d946ce8e3cddd695e62.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__mint_burn.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__mint_burn_stablecoins_mint_burn_id.2ec1abace1", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "dbt_utils_unique_combination_of_columns_silver_stablecoins__mint_burn_stablecoins_mint_burn_id"], "alias": "mint_burn_stablecoins_mint_burn_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cc73396dc76b4d946ce8e3cddd695e62", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cc73396dc76b4d946ce8e3cddd695e62", "store_failures": true}, "created_at": 1764018441.0207813, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_stablecoins.mint_burn_stablecoins_mint_burn_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cc73396dc76b4d946ce8e3cddd695e62\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__mint_burn", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__mint_burn"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__mint_burn.yml/dbt_utils_unique_combination_o_cc73396dc76b4d946ce8e3cddd695e62.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n stablecoins_mint_burn_id\n from polygon.silver_stablecoins.mint_burn\n group by stablecoins_mint_burn_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_stablecoins__mint_burn", "attached_node": "model.fsc_evm.silver_stablecoins__mint_burn"}, "test.fsc_evm.not_null_silver_stablecoins__supply_complete_BLOCK_DATE.ed7dfaf66b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_complete_BLOCK_DATE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__supply_complete_BLOCK_DATE.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_complete_BLOCK_DATE.ed7dfaf66b", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_complete_BLOCK_DATE"], "alias": "supply_complete_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.0321538, "relation_name": "polygon.not_null_silver_stablecoins.supply_complete_BLOCK_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/not_null_silver_stablecoins__supply_complete_BLOCK_DATE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_complete\nwhere BLOCK_DATE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_complete_BLOCK_DATE__day__2.b3d5b9ee35": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_complete_BLOCK_DATE__day__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_de5a2cf202956addb987c313b2c61244.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_complete_BLOCK_DATE__day__2.b3d5b9ee35", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_complete_BLOCK_DATE__day__2"], "alias": "supply_complete_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_de5a2cf202956addb987c313b2c61244", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_de5a2cf202956addb987c313b2c61244", "store_failures": true}, "created_at": 1764018441.0344265, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins.supply_complete_BLOCK_DATE", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_de5a2cf202956addb987c313b2c61244\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/dbt_expectations_expect_row_va_de5a2cf202956addb987c313b2c61244.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_DATE as timestamp_ntz)) as max_timestamp\n from\n polygon.silver_stablecoins.supply_complete\n where\n -- to exclude erroneous future dates\n cast(BLOCK_DATE as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.not_null_silver_stablecoins__supply_complete_CONTRACT_ADDRESS.664480f344": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_complete_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__supply_complete_CONTRACT_ADDRESS.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_complete_CONTRACT_ADDRESS.664480f344", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_complete_CONTRACT_ADDRESS"], "alias": "supply_complete_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.0421872, "relation_name": "polygon.not_null_silver_stablecoins.supply_complete_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/not_null_silver_stablecoins__supply_complete_CONTRACT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_complete\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.not_null_silver_stablecoins__supply_complete_SYMBOL.e0e7468746": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SYMBOL", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_complete_SYMBOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__supply_complete_SYMBOL.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_complete_SYMBOL.e0e7468746", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_complete_SYMBOL"], "alias": "supply_complete_SYMBOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.0443125, "relation_name": "polygon.not_null_silver_stablecoins.supply_complete_SYMBOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/not_null_silver_stablecoins__supply_complete_SYMBOL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_complete\nwhere SYMBOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SYMBOL", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.not_null_silver_stablecoins__supply_complete_NAME.6a279f0ecb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NAME", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_complete_NAME", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__supply_complete_NAME.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_complete_NAME.6a279f0ecb", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_complete_NAME"], "alias": "supply_complete_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.0466137, "relation_name": "polygon.not_null_silver_stablecoins.supply_complete_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/not_null_silver_stablecoins__supply_complete_NAME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_complete\nwhere NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NAME", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.not_null_silver_stablecoins__supply_complete_DECIMALS.5a014a45ab": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DECIMALS", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_complete_DECIMALS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__supply_complete_DECIMALS.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_complete_DECIMALS.5a014a45ab", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_complete_DECIMALS"], "alias": "supply_complete_DECIMALS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.04871, "relation_name": "polygon.not_null_silver_stablecoins.supply_complete_DECIMALS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/not_null_silver_stablecoins__supply_complete_DECIMALS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_complete\nwhere DECIMALS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DECIMALS", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.not_null_silver_stablecoins__supply_complete_TOTAL_SUPPLY.2fbe775ba2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_SUPPLY", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_complete_TOTAL_SUPPLY", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__supply_complete_TOTAL_SUPPLY.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_complete_TOTAL_SUPPLY.2fbe775ba2", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_complete_TOTAL_SUPPLY"], "alias": "supply_complete_TOTAL_SUPPLY", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.0507648, "relation_name": "polygon.not_null_silver_stablecoins.supply_complete_TOTAL_SUPPLY", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/not_null_silver_stablecoins__supply_complete_TOTAL_SUPPLY.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_complete\nwhere TOTAL_SUPPLY is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_SUPPLY", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_BLACKLISTED.4950715b85": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_BLACKLISTED", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_complete_AMOUNT_BLACKLISTED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__supply_complete_AMOUNT_BLACKLISTED.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_BLACKLISTED.4950715b85", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_complete_AMOUNT_BLACKLISTED"], "alias": "supply_complete_AMOUNT_BLACKLISTED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.052835, "relation_name": "polygon.not_null_silver_stablecoins.supply_complete_AMOUNT_BLACKLISTED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/not_null_silver_stablecoins__supply_complete_AMOUNT_BLACKLISTED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_complete\nwhere AMOUNT_BLACKLISTED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_BLACKLISTED", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_CEX.e2827b3341": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_IN_CEX", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_complete_AMOUNT_IN_CEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__supply_complete_AMOUNT_IN_CEX.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_CEX.e2827b3341", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_complete_AMOUNT_IN_CEX"], "alias": "supply_complete_AMOUNT_IN_CEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.0549207, "relation_name": "polygon.not_null_silver_stablecoins.supply_complete_AMOUNT_IN_CEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/not_null_silver_stablecoins__supply_complete_AMOUNT_IN_CEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_complete\nwhere AMOUNT_IN_CEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_IN_CEX", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_BRIDGES.ff0025ecd7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_IN_BRIDGES", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_complete_AMOUNT_IN_BRIDGES", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__supply_complete_AMOUNT_IN_BRIDGES.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_BRIDGES.ff0025ecd7", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_complete_AMOUNT_IN_BRIDGES"], "alias": "supply_complete_AMOUNT_IN_BRIDGES", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.0569937, "relation_name": "polygon.not_null_silver_stablecoins.supply_complete_AMOUNT_IN_BRIDGES", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/not_null_silver_stablecoins__supply_complete_AMOUNT_IN_BRIDGES.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_complete\nwhere AMOUNT_IN_BRIDGES is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_IN_BRIDGES", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_DEX_LIQUIDITY_POOLS.25808a6407": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_IN_DEX_LIQUIDITY_POOLS", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_complete_AMOUNT_IN_DEX_LIQUIDITY_POOLS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__s_1ab4a461e03a92314543271b079df93e.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_DEX_LIQUIDITY_POOLS.25808a6407", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_complete_AMOUNT_IN_DEX_LIQUIDITY_POOLS"], "alias": "supply_complete_AMOUNT_IN_DEX_LIQUIDITY_POOLS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_stablecoins__s_1ab4a461e03a92314543271b079df93e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_stablecoins__s_1ab4a461e03a92314543271b079df93e", "store_failures": true}, "created_at": 1764018441.0590627, "relation_name": "polygon.not_null_silver_stablecoins.supply_complete_AMOUNT_IN_DEX_LIQUIDITY_POOLS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_stablecoins__s_1ab4a461e03a92314543271b079df93e\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/not_null_silver_stablecoins__s_1ab4a461e03a92314543271b079df93e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_complete\nwhere AMOUNT_IN_DEX_LIQUIDITY_POOLS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_IN_DEX_LIQUIDITY_POOLS", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_LENDING_POOLS.d8292a8a7e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_IN_LENDING_POOLS", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_complete_AMOUNT_IN_LENDING_POOLS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__s_a0ae7dc994e25b6d582aceb63e8dfbd0.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_LENDING_POOLS.d8292a8a7e", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_complete_AMOUNT_IN_LENDING_POOLS"], "alias": "supply_complete_AMOUNT_IN_LENDING_POOLS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_stablecoins__s_a0ae7dc994e25b6d582aceb63e8dfbd0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_stablecoins__s_a0ae7dc994e25b6d582aceb63e8dfbd0", "store_failures": true}, "created_at": 1764018441.0613987, "relation_name": "polygon.not_null_silver_stablecoins.supply_complete_AMOUNT_IN_LENDING_POOLS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_stablecoins__s_a0ae7dc994e25b6d582aceb63e8dfbd0\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/not_null_silver_stablecoins__s_a0ae7dc994e25b6d582aceb63e8dfbd0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_complete\nwhere AMOUNT_IN_LENDING_POOLS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_IN_LENDING_POOLS", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_CONTRACTS.4bf4ba9824": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_IN_CONTRACTS", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_complete_AMOUNT_IN_CONTRACTS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__s_d4bdbc87b9f8f70d4e486dc945b238c5.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_CONTRACTS.4bf4ba9824", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_complete_AMOUNT_IN_CONTRACTS"], "alias": "supply_complete_AMOUNT_IN_CONTRACTS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_stablecoins__s_d4bdbc87b9f8f70d4e486dc945b238c5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_stablecoins__s_d4bdbc87b9f8f70d4e486dc945b238c5", "store_failures": true}, "created_at": 1764018441.0635638, "relation_name": "polygon.not_null_silver_stablecoins.supply_complete_AMOUNT_IN_CONTRACTS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_stablecoins__s_d4bdbc87b9f8f70d4e486dc945b238c5\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/not_null_silver_stablecoins__s_d4bdbc87b9f8f70d4e486dc945b238c5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_complete\nwhere AMOUNT_IN_CONTRACTS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_IN_CONTRACTS", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_MINTED.0638b516b5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_MINTED", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_complete_AMOUNT_MINTED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__supply_complete_AMOUNT_MINTED.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_MINTED.0638b516b5", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_complete_AMOUNT_MINTED"], "alias": "supply_complete_AMOUNT_MINTED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.0656404, "relation_name": "polygon.not_null_silver_stablecoins.supply_complete_AMOUNT_MINTED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/not_null_silver_stablecoins__supply_complete_AMOUNT_MINTED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_complete\nwhere AMOUNT_MINTED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_MINTED", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_BURNED.0c51968320": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_BURNED", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_complete_AMOUNT_BURNED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__supply_complete_AMOUNT_BURNED.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_BURNED.0c51968320", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_complete_AMOUNT_BURNED"], "alias": "supply_complete_AMOUNT_BURNED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.067727, "relation_name": "polygon.not_null_silver_stablecoins.supply_complete_AMOUNT_BURNED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/not_null_silver_stablecoins__supply_complete_AMOUNT_BURNED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_complete\nwhere AMOUNT_BURNED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_BURNED", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_TRANSFERRED.97c658f5c2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_TRANSFERRED", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_complete_AMOUNT_TRANSFERRED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__supply_complete_AMOUNT_TRANSFERRED.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_TRANSFERRED.97c658f5c2", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_complete_AMOUNT_TRANSFERRED"], "alias": "supply_complete_AMOUNT_TRANSFERRED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.0697923, "relation_name": "polygon.not_null_silver_stablecoins.supply_complete_AMOUNT_TRANSFERRED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/not_null_silver_stablecoins__supply_complete_AMOUNT_TRANSFERRED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_complete\nwhere AMOUNT_TRANSFERRED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_TRANSFERRED", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.not_null_silver_stablecoins__supply_complete_INSERTED_TIMESTAMP.de284952d2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_complete_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__supply_complete_INSERTED_TIMESTAMP.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_complete_INSERTED_TIMESTAMP.de284952d2", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_complete_INSERTED_TIMESTAMP"], "alias": "supply_complete_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.07194, "relation_name": "polygon.not_null_silver_stablecoins.supply_complete_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/not_null_silver_stablecoins__supply_complete_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_complete\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.not_null_silver_stablecoins__supply_complete_MODIFIED_TIMESTAMP.007e68c2c3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_complete_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__supply_complete_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_complete_MODIFIED_TIMESTAMP.007e68c2c3", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_complete_MODIFIED_TIMESTAMP"], "alias": "supply_complete_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.0752404, "relation_name": "polygon.not_null_silver_stablecoins.supply_complete_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/not_null_silver_stablecoins__supply_complete_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_complete\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_complete_MODIFIED_TIMESTAMP__day__1.9995e5dcd1": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_complete_MODIFIED_TIMESTAMP__day__1", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_a61e097620c6b4c4ea0a0098e9e60ffb.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_complete_MODIFIED_TIMESTAMP__day__1.9995e5dcd1", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_complete_MODIFIED_TIMESTAMP__day__1"], "alias": "supply_complete_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_a61e097620c6b4c4ea0a0098e9e60ffb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_a61e097620c6b4c4ea0a0098e9e60ffb", "store_failures": true}, "created_at": 1764018441.0774066, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins.supply_complete_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_a61e097620c6b4c4ea0a0098e9e60ffb\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/dbt_expectations_expect_row_va_a61e097620c6b4c4ea0a0098e9e60ffb.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver_stablecoins.supply_complete\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.not_null_silver_stablecoins__supply_complete_STABLECOINS_SUPPLY_COMPLETE_ID.996719e8a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "STABLECOINS_SUPPLY_COMPLETE_ID", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_complete_STABLECOINS_SUPPLY_COMPLETE_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__s_649d115fc774691ce1c17ba725e235ca.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_complete_STABLECOINS_SUPPLY_COMPLETE_ID.996719e8a7", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_complete_STABLECOINS_SUPPLY_COMPLETE_ID"], "alias": "supply_complete_STABLECOINS_SUPPLY_COMPLETE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_stablecoins__s_649d115fc774691ce1c17ba725e235ca", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_stablecoins__s_649d115fc774691ce1c17ba725e235ca", "store_failures": true}, "created_at": 1764018441.0855682, "relation_name": "polygon.not_null_silver_stablecoins.supply_complete_STABLECOINS_SUPPLY_COMPLETE_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_stablecoins__s_649d115fc774691ce1c17ba725e235ca\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/not_null_silver_stablecoins__s_649d115fc774691ce1c17ba725e235ca.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_complete\nwhere STABLECOINS_SUPPLY_COMPLETE_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "STABLECOINS_SUPPLY_COMPLETE_ID", "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_complete_stablecoins_supply_complete_id.7db1f368e4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["stablecoins_supply_complete_id"], "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_complete')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_stablecoins", "name": "dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_complete_stablecoins_supply_complete_id", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_9979e018fe10ecca67ce84c90e20b893.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_complete_stablecoins_supply_complete_id.7db1f368e4", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_complete_stablecoins_supply_complete_id"], "alias": "supply_complete_stablecoins_supply_complete_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9979e018fe10ecca67ce84c90e20b893", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9979e018fe10ecca67ce84c90e20b893", "store_failures": true}, "created_at": 1764018441.0877857, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_stablecoins.supply_complete_stablecoins_supply_complete_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9979e018fe10ecca67ce84c90e20b893\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_complete"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_complete.yml/dbt_utils_unique_combination_o_9979e018fe10ecca67ce84c90e20b893.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n stablecoins_supply_complete_id\n from polygon.silver_stablecoins.supply_complete\n group by stablecoins_supply_complete_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_stablecoins__supply_complete", "attached_node": "model.fsc_evm.silver_stablecoins__supply_complete"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__transfers_stablecoins_transfers_id.f9414fd971": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["stablecoins_transfers_id"], "model": "{{ get_where_subquery(ref('silver_stablecoins__transfers')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_stablecoins", "name": "dbt_utils_unique_combination_of_columns_silver_stablecoins__transfers_stablecoins_transfers_id", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_45a517dbe241bf7496810d87fa178628.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__transfers.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__transfers_stablecoins_transfers_id.f9414fd971", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "dbt_utils_unique_combination_of_columns_silver_stablecoins__transfers_stablecoins_transfers_id"], "alias": "transfers_stablecoins_transfers_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_45a517dbe241bf7496810d87fa178628", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_45a517dbe241bf7496810d87fa178628", "store_failures": true}, "created_at": 1764018441.0946457, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_stablecoins.transfers_stablecoins_transfers_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_45a517dbe241bf7496810d87fa178628\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__transfers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__transfers"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__transfers.yml/dbt_utils_unique_combination_o_45a517dbe241bf7496810d87fa178628.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n stablecoins_transfers_id\n from polygon.silver_stablecoins.transfers\n group by stablecoins_transfers_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_stablecoins__transfers", "attached_node": "model.fsc_evm.silver_stablecoins__transfers"}, "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_BLOCK_DATE.b46d73803f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_by_address_imputed')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_by_address_imputed_BLOCK_DATE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__s_6717517c824a983f783ba85ec4dd8766.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_BLOCK_DATE.b46d73803f", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_by_address_imputed_BLOCK_DATE"], "alias": "supply_by_address_imputed_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_stablecoins__s_6717517c824a983f783ba85ec4dd8766", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_stablecoins__s_6717517c824a983f783ba85ec4dd8766", "store_failures": true}, "created_at": 1764018441.102564, "relation_name": "polygon.not_null_silver_stablecoins.supply_by_address_imputed_BLOCK_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_stablecoins__s_6717517c824a983f783ba85ec4dd8766\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_by_address_imputed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml/not_null_silver_stablecoins__s_6717517c824a983f783ba85ec4dd8766.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_by_address_imputed\nwhere BLOCK_DATE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.silver_stablecoins__supply_by_address_imputed", "attached_node": "model.fsc_evm.silver_stablecoins__supply_by_address_imputed"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_by_address_imputed_BLOCK_DATE__day__2.99639b993f": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_by_address_imputed')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_by_address_imputed_BLOCK_DATE__day__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_db83887885614b61bf65844f2d317613.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_by_address_imputed_BLOCK_DATE__day__2.99639b993f", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_by_address_imputed_BLOCK_DATE__day__2"], "alias": "supply_by_address_imputed_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_db83887885614b61bf65844f2d317613", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_db83887885614b61bf65844f2d317613", "store_failures": true}, "created_at": 1764018441.104834, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins.supply_by_address_imputed_BLOCK_DATE", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_db83887885614b61bf65844f2d317613\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_by_address_imputed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml/dbt_expectations_expect_row_va_db83887885614b61bf65844f2d317613.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_DATE as timestamp_ntz)) as max_timestamp\n from\n polygon.silver_stablecoins.supply_by_address_imputed\n where\n -- to exclude erroneous future dates\n cast(BLOCK_DATE as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.silver_stablecoins__supply_by_address_imputed", "attached_node": "model.fsc_evm.silver_stablecoins__supply_by_address_imputed"}, "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_ADDRESS.e5bb6dbc9b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_by_address_imputed')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_by_address_imputed_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__supply_by_address_imputed_ADDRESS.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_ADDRESS.e5bb6dbc9b", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_by_address_imputed_ADDRESS"], "alias": "supply_by_address_imputed_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.1127915, "relation_name": "polygon.not_null_silver_stablecoins.supply_by_address_imputed_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_by_address_imputed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml/not_null_silver_stablecoins__supply_by_address_imputed_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_by_address_imputed\nwhere ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.silver_stablecoins__supply_by_address_imputed", "attached_node": "model.fsc_evm.silver_stablecoins__supply_by_address_imputed"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_stablecoins__supply_by_address_imputed_ADDRESS__0_xX_0_9a_fA_F_.574260a865": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_by_address_imputed')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_stablecoins", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_stablecoins__supply_by_address_imputed_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_ba917faa83cca35bb6c1fee1533bdd0b.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_stablecoins__supply_by_address_imputed_ADDRESS__0_xX_0_9a_fA_F_.574260a865", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver_stablecoins__supply_by_address_imputed_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "supply_by_address_imputed_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ba917faa83cca35bb6c1fee1533bdd0b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_ba917faa83cca35bb6c1fee1533bdd0b", "store_failures": true}, "created_at": 1764018441.114948, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_stablecoins.supply_by_address_imputed_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ba917faa83cca35bb6c1fee1533bdd0b\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_by_address_imputed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml/dbt_expectations_expect_column_ba917faa83cca35bb6c1fee1533bdd0b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_stablecoins.supply_by_address_imputed\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.silver_stablecoins__supply_by_address_imputed", "attached_node": "model.fsc_evm.silver_stablecoins__supply_by_address_imputed"}, "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_CONTRACT_ADDRESS.a15a535fb3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_by_address_imputed')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_by_address_imputed_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__s_6fce243ab7f27d247a3ab21b82e45751.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_CONTRACT_ADDRESS.a15a535fb3", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_by_address_imputed_CONTRACT_ADDRESS"], "alias": "supply_by_address_imputed_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_stablecoins__s_6fce243ab7f27d247a3ab21b82e45751", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_stablecoins__s_6fce243ab7f27d247a3ab21b82e45751", "store_failures": true}, "created_at": 1764018441.120526, "relation_name": "polygon.not_null_silver_stablecoins.supply_by_address_imputed_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_stablecoins__s_6fce243ab7f27d247a3ab21b82e45751\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_by_address_imputed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml/not_null_silver_stablecoins__s_6fce243ab7f27d247a3ab21b82e45751.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_by_address_imputed\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_stablecoins__supply_by_address_imputed", "attached_node": "model.fsc_evm.silver_stablecoins__supply_by_address_imputed"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_stablecoins__supply_by_address_imputed_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.3453b3e118": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_by_address_imputed')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_stablecoins", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_stablecoins__supply_by_address_imputed_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_6060990944b062289a3c47f42b2395df.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_stablecoins__supply_by_address_imputed_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.3453b3e118", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver_stablecoins__supply_by_address_imputed_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "supply_by_address_imputed_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_6060990944b062289a3c47f42b2395df", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_6060990944b062289a3c47f42b2395df", "store_failures": true}, "created_at": 1764018441.1226776, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_stablecoins.supply_by_address_imputed_CONTRACT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_6060990944b062289a3c47f42b2395df\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_by_address_imputed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml/dbt_expectations_expect_column_6060990944b062289a3c47f42b2395df.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_stablecoins.supply_by_address_imputed\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_stablecoins__supply_by_address_imputed", "attached_node": "model.fsc_evm.silver_stablecoins__supply_by_address_imputed"}, "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_BALANCE.c6c3131107": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BALANCE", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_by_address_imputed')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_by_address_imputed_BALANCE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__supply_by_address_imputed_BALANCE.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_BALANCE.c6c3131107", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_by_address_imputed_BALANCE"], "alias": "supply_by_address_imputed_BALANCE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.1282096, "relation_name": "polygon.not_null_silver_stablecoins.supply_by_address_imputed_BALANCE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_by_address_imputed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml/not_null_silver_stablecoins__supply_by_address_imputed_BALANCE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_by_address_imputed\nwhere BALANCE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BALANCE", "file_key_name": "models.silver_stablecoins__supply_by_address_imputed", "attached_node": "model.fsc_evm.silver_stablecoins__supply_by_address_imputed"}, "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_IS_IMPUTED.ec0da0785e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "IS_IMPUTED", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_by_address_imputed')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_by_address_imputed_IS_IMPUTED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__s_4423f7bc4f598ee596cb947359afd786.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_IS_IMPUTED.ec0da0785e", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_by_address_imputed_IS_IMPUTED"], "alias": "supply_by_address_imputed_IS_IMPUTED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_stablecoins__s_4423f7bc4f598ee596cb947359afd786", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_stablecoins__s_4423f7bc4f598ee596cb947359afd786", "store_failures": true}, "created_at": 1764018441.1303682, "relation_name": "polygon.not_null_silver_stablecoins.supply_by_address_imputed_IS_IMPUTED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_stablecoins__s_4423f7bc4f598ee596cb947359afd786\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_by_address_imputed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml/not_null_silver_stablecoins__s_4423f7bc4f598ee596cb947359afd786.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_by_address_imputed\nwhere IS_IMPUTED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "IS_IMPUTED", "file_key_name": "models.silver_stablecoins__supply_by_address_imputed", "attached_node": "model.fsc_evm.silver_stablecoins__supply_by_address_imputed"}, "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_MODIFIED_TIMESTAMP.b90ac8efba": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_by_address_imputed')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_by_address_imputed_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__s_1ee05af64a4afa46066da989e823bd2c.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_MODIFIED_TIMESTAMP.b90ac8efba", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_by_address_imputed_MODIFIED_TIMESTAMP"], "alias": "supply_by_address_imputed_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_stablecoins__s_1ee05af64a4afa46066da989e823bd2c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_stablecoins__s_1ee05af64a4afa46066da989e823bd2c", "store_failures": true}, "created_at": 1764018441.1325681, "relation_name": "polygon.not_null_silver_stablecoins.supply_by_address_imputed_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_stablecoins__s_1ee05af64a4afa46066da989e823bd2c\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_by_address_imputed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml/not_null_silver_stablecoins__s_1ee05af64a4afa46066da989e823bd2c.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_by_address_imputed\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver_stablecoins__supply_by_address_imputed", "attached_node": "model.fsc_evm.silver_stablecoins__supply_by_address_imputed"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_by_address_imputed_MODIFIED_TIMESTAMP__day__1.830f5971c9": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_by_address_imputed')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_by_address_imputed_MODIFIED_TIMESTAMP__day__1", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_0db6cf9310c13b7edc892596b8523dd0.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_by_address_imputed_MODIFIED_TIMESTAMP__day__1.830f5971c9", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_by_address_imputed_MODIFIED_TIMESTAMP__day__1"], "alias": "supply_by_address_imputed_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_0db6cf9310c13b7edc892596b8523dd0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_0db6cf9310c13b7edc892596b8523dd0", "store_failures": true}, "created_at": 1764018441.1347742, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins.supply_by_address_imputed_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_0db6cf9310c13b7edc892596b8523dd0\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_by_address_imputed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml/dbt_expectations_expect_row_va_0db6cf9310c13b7edc892596b8523dd0.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver_stablecoins.supply_by_address_imputed\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver_stablecoins__supply_by_address_imputed", "attached_node": "model.fsc_evm.silver_stablecoins__supply_by_address_imputed"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_by_address_imputed_stablecoins_supply_by_address_imputed_id.b6861618a0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["stablecoins_supply_by_address_imputed_id"], "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_by_address_imputed')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_stablecoins", "name": "dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_by_address_imputed_stablecoins_supply_by_address_imputed_id", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_e4e3c925bbdb53724582d8ada5059aa3.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_by_address_imputed_stablecoins_supply_by_address_imputed_id.b6861618a0", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_by_address_imputed_stablecoins_supply_by_address_imputed_id"], "alias": "supply_by_address_imputed_stablecoins_supply_by_address_imputed_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e4e3c925bbdb53724582d8ada5059aa3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e4e3c925bbdb53724582d8ada5059aa3", "store_failures": true}, "created_at": 1764018441.1429708, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_stablecoins.supply_by_address_imputed_stablecoins_supply_by_address_imputed_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e4e3c925bbdb53724582d8ada5059aa3\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_by_address_imputed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml/dbt_utils_unique_combination_o_e4e3c925bbdb53724582d8ada5059aa3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n stablecoins_supply_by_address_imputed_id\n from polygon.silver_stablecoins.supply_by_address_imputed\n group by stablecoins_supply_by_address_imputed_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_stablecoins__supply_by_address_imputed", "attached_node": "model.fsc_evm.silver_stablecoins__supply_by_address_imputed"}, "test.fsc_evm.stablecoins_is_imputed_false_silver_stablecoins__supply_by_address_imputed_.59751490c5": {"test_metadata": {"name": "stablecoins_is_imputed_false", "kwargs": {"model": "{{ get_where_subquery(ref('silver_stablecoins__supply_by_address_imputed')) }}"}, "namespace": null}, "database": "polygon", "schema": "stablecoins_is_imputed_false_silver_stablecoins", "name": "stablecoins_is_imputed_false_silver_stablecoins__supply_by_address_imputed_", "resource_type": "test", "package_name": "fsc_evm", "path": "stablecoins_is_imputed_false_s_3ff9e034ee02d314e9a492e77495521d.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml", "unique_id": "test.fsc_evm.stablecoins_is_imputed_false_silver_stablecoins__supply_by_address_imputed_.59751490c5", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "stablecoins_is_imputed_false_silver_stablecoins__supply_by_address_imputed_"], "alias": "supply_by_address_imputed_", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "stablecoins_is_imputed_false_s_3ff9e034ee02d314e9a492e77495521d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "stablecoins_is_imputed_false_s_3ff9e034ee02d314e9a492e77495521d", "store_failures": true}, "created_at": 1764018441.148766, "relation_name": "polygon.stablecoins_is_imputed_false_silver_stablecoins.supply_by_address_imputed_", "raw_code": "{{ test_stablecoins_is_imputed_false(**_dbt_generic_test_kwargs) }}{{ config(alias=\"stablecoins_is_imputed_false_s_3ff9e034ee02d314e9a492e77495521d\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_by_address_imputed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_stablecoins_is_imputed_false", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml/stablecoins_is_imputed_false_s_3ff9e034ee02d314e9a492e77495521d.sql", "compiled": true, "compiled_code": "\n\nWITH active_pairs AS (\n SELECT DISTINCT\n contract_address,\n address\n FROM\n polygon.silver_stablecoins.supply_by_address_imputed\n WHERE\n block_date >= DATEADD('day', -7, SYSDATE())\n AND not is_imputed\n),\nfirst_records AS (\n SELECT\n m.contract_address,\n m.address,\n m.is_imputed,\n ROW_NUMBER() OVER (\n PARTITION BY m.contract_address, m.address\n ORDER BY m.block_date ASC\n ) AS row_num\n FROM polygon.silver_stablecoins.supply_by_address_imputed m\n INNER JOIN active_pairs a\n ON m.contract_address = a.contract_address\n AND m.address = a.address\n)\nSELECT\n contract_address,\n address,\n is_imputed\nFROM first_records\nWHERE row_num = 1\n AND is_imputed\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_stablecoins__supply_by_address_imputed", "attached_node": "model.fsc_evm.silver_stablecoins__supply_by_address_imputed"}, "test.fsc_evm.stablecoins_date_gaps_silver_stablecoins__supply_by_address_imputed_.dcbef61e36": {"test_metadata": {"name": "stablecoins_date_gaps", "kwargs": {"model": "{{ get_where_subquery(ref('silver_stablecoins__supply_by_address_imputed')) }}"}, "namespace": null}, "database": "polygon", "schema": "stablecoins_date_gaps_silver_stablecoins", "name": "stablecoins_date_gaps_silver_stablecoins__supply_by_address_imputed_", "resource_type": "test", "package_name": "fsc_evm", "path": "stablecoins_date_gaps_silver_s_2153e5de1a08405fd4a5558c86feab1a.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml", "unique_id": "test.fsc_evm.stablecoins_date_gaps_silver_stablecoins__supply_by_address_imputed_.dcbef61e36", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "stablecoins_date_gaps_silver_stablecoins__supply_by_address_imputed_"], "alias": "supply_by_address_imputed_", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "stablecoins_date_gaps_silver_s_2153e5de1a08405fd4a5558c86feab1a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "stablecoins_date_gaps_silver_s_2153e5de1a08405fd4a5558c86feab1a", "store_failures": true}, "created_at": 1764018441.1548295, "relation_name": "polygon.stablecoins_date_gaps_silver_stablecoins.supply_by_address_imputed_", "raw_code": "{{ test_stablecoins_date_gaps(**_dbt_generic_test_kwargs) }}{{ config(alias=\"stablecoins_date_gaps_silver_s_2153e5de1a08405fd4a5558c86feab1a\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_by_address_imputed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_stablecoins_date_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address_imputed.yml/stablecoins_date_gaps_silver_s_2153e5de1a08405fd4a5558c86feab1a.sql", "compiled": true, "compiled_code": "\n\nWITH recent_data AS (\n SELECT\n contract_address,\n address,\n block_date\n FROM\n polygon.silver_stablecoins.supply_by_address_imputed\n WHERE\n block_date >= DATEADD('day', -7, SYSDATE())\n),\nsource AS (\n SELECT\n contract_address,\n address,\n block_date,\n LAG(block_date, 1) OVER (\n PARTITION BY contract_address, address\n ORDER BY block_date ASC\n ) AS prev_block_date\n FROM\n recent_data\n)\nSELECT\n contract_address,\n address,\n prev_block_date,\n block_date,\n DATEDIFF(day, prev_block_date, block_date) - 1 AS gap_days\nFROM\n source\nWHERE\n DATEDIFF(day, prev_block_date, block_date) > 1\nORDER BY\n gap_days DESC\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_stablecoins__supply_by_address_imputed", "attached_node": "model.fsc_evm.silver_stablecoins__supply_by_address_imputed"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_by_address_stablecoins_supply_by_address_id.0a3c5366e4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["stablecoins_supply_by_address_id"], "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_by_address')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_stablecoins", "name": "dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_by_address_stablecoins_supply_by_address_id", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_553a88e3f60c47f6fe276061591f4e5f.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_by_address_stablecoins_supply_by_address_id.0a3c5366e4", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_by_address_stablecoins_supply_by_address_id"], "alias": "supply_by_address_stablecoins_supply_by_address_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_553a88e3f60c47f6fe276061591f4e5f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_553a88e3f60c47f6fe276061591f4e5f", "store_failures": true}, "created_at": 1764018441.1619573, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_stablecoins.supply_by_address_stablecoins_supply_by_address_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_553a88e3f60c47f6fe276061591f4e5f\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_by_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_by_address"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_by_address.yml/dbt_utils_unique_combination_o_553a88e3f60c47f6fe276061591f4e5f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n stablecoins_supply_by_address_id\n from polygon.silver_stablecoins.supply_by_address\n group by stablecoins_supply_by_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_stablecoins__supply_by_address", "attached_node": "model.fsc_evm.silver_stablecoins__supply_by_address"}, "test.fsc_evm.not_null_silver_stablecoins__supply_contracts_list_ADDRESS.de076cd955": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_contracts_list')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_contracts_list_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__supply_contracts_list_ADDRESS.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_contracts_list.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_contracts_list_ADDRESS.de076cd955", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_contracts_list_ADDRESS"], "alias": "supply_contracts_list_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.1686609, "relation_name": "polygon.not_null_silver_stablecoins.supply_contracts_list_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_contracts_list", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_contracts_list"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_contracts_list.yml/not_null_silver_stablecoins__supply_contracts_list_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_contracts_list\nwhere ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.silver_stablecoins__supply_contracts_list", "attached_node": "model.fsc_evm.silver_stablecoins__supply_contracts_list"}, "test.fsc_evm.not_null_silver_stablecoins__supply_contracts_list_CONTRACT_TYPE.b41e882fd8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_TYPE", "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_contracts_list')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stablecoins", "name": "not_null_silver_stablecoins__supply_contracts_list_CONTRACT_TYPE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stablecoins__s_9fca728d78467f756551a357f39d0ea9.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_contracts_list.yml", "unique_id": "test.fsc_evm.not_null_silver_stablecoins__supply_contracts_list_CONTRACT_TYPE.b41e882fd8", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "not_null_silver_stablecoins__supply_contracts_list_CONTRACT_TYPE"], "alias": "supply_contracts_list_CONTRACT_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_stablecoins__s_9fca728d78467f756551a357f39d0ea9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_stablecoins__s_9fca728d78467f756551a357f39d0ea9", "store_failures": true}, "created_at": 1764018441.1709197, "relation_name": "polygon.not_null_silver_stablecoins.supply_contracts_list_CONTRACT_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_stablecoins__s_9fca728d78467f756551a357f39d0ea9\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_contracts_list", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_contracts_list"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_contracts_list.yml/not_null_silver_stablecoins__s_9fca728d78467f756551a357f39d0ea9.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stablecoins.supply_contracts_list\nwhere CONTRACT_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_TYPE", "file_key_name": "models.silver_stablecoins__supply_contracts_list", "attached_node": "model.fsc_evm.silver_stablecoins__supply_contracts_list"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_contracts_list_stablecoins_supply_contracts_list_id.973738f72f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["stablecoins_supply_contracts_list_id"], "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_contracts_list')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_stablecoins", "name": "dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_contracts_list_stablecoins_supply_contracts_list_id", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_b69f13a656133731e45ae266b5d9c24e.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_contracts_list.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_contracts_list_stablecoins_supply_contracts_list_id.973738f72f", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_contracts_list_stablecoins_supply_contracts_list_id"], "alias": "supply_contracts_list_stablecoins_supply_contracts_list_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b69f13a656133731e45ae266b5d9c24e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b69f13a656133731e45ae266b5d9c24e", "store_failures": true}, "created_at": 1764018441.1731155, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_stablecoins.supply_contracts_list_stablecoins_supply_contracts_list_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b69f13a656133731e45ae266b5d9c24e\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_contracts_list", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_contracts_list"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_contracts_list.yml/dbt_utils_unique_combination_o_b69f13a656133731e45ae266b5d9c24e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n stablecoins_supply_contracts_list_id\n from polygon.silver_stablecoins.supply_contracts_list\n group by stablecoins_supply_contracts_list_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_stablecoins__supply_contracts_list", "attached_node": "model.fsc_evm.silver_stablecoins__supply_contracts_list"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_contracts_stablecoins_supply_contracts_id.a378bd36a0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["stablecoins_supply_contracts_id"], "model": "{{ get_where_subquery(ref('silver_stablecoins__supply_contracts')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_stablecoins", "name": "dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_contracts_stablecoins_supply_contracts_id", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_76e9fd4694219510c1fe496d81bdd43d.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_contracts.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_contracts_stablecoins_supply_contracts_id.a378bd36a0", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_contracts_stablecoins_supply_contracts_id"], "alias": "supply_contracts_stablecoins_supply_contracts_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_76e9fd4694219510c1fe496d81bdd43d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_76e9fd4694219510c1fe496d81bdd43d", "store_failures": true}, "created_at": 1764018441.179681, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_stablecoins.supply_contracts_stablecoins_supply_contracts_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_76e9fd4694219510c1fe496d81bdd43d\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__supply_contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__supply_contracts"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__supply_contracts.yml/dbt_utils_unique_combination_o_76e9fd4694219510c1fe496d81bdd43d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n stablecoins_supply_contracts_id\n from polygon.silver_stablecoins.supply_contracts\n group by stablecoins_supply_contracts_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_stablecoins__supply_contracts", "attached_node": "model.fsc_evm.silver_stablecoins__supply_contracts"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__address_blacklist_stablecoins_address_blacklist_id.007b38ff2a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["stablecoins_address_blacklist_id"], "model": "{{ get_where_subquery(ref('silver_stablecoins__address_blacklist')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_stablecoins", "name": "dbt_utils_unique_combination_of_columns_silver_stablecoins__address_blacklist_stablecoins_address_blacklist_id", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_219953bfb2ab165db658392c74edb084.sql", "original_file_path": "models/curated_package/defi/stablecoins/silver/silver_stablecoins__address_blacklist.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__address_blacklist_stablecoins_address_blacklist_id.007b38ff2a", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "silver", "dbt_utils_unique_combination_of_columns_silver_stablecoins__address_blacklist_stablecoins_address_blacklist_id"], "alias": "address_blacklist_stablecoins_address_blacklist_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_219953bfb2ab165db658392c74edb084", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_219953bfb2ab165db658392c74edb084", "store_failures": true}, "created_at": 1764018441.1870074, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_stablecoins.address_blacklist_stablecoins_address_blacklist_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_219953bfb2ab165db658392c74edb084\") }}", "language": "sql", "refs": [{"name": "silver_stablecoins__address_blacklist", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stablecoins__address_blacklist"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/silver/silver_stablecoins__address_blacklist.yml/dbt_utils_unique_combination_o_219953bfb2ab165db658392c74edb084.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n stablecoins_address_blacklist_id\n from polygon.silver_stablecoins.address_blacklist\n group by stablecoins_address_blacklist_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_stablecoins__address_blacklist", "attached_node": "model.fsc_evm.silver_stablecoins__address_blacklist"}, "test.fsc_evm.not_null_defi__dim_stablecoins_CONTRACT_ADDRESS.6d61399207": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('defi__dim_stablecoins')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_defi", "name": "not_null_defi__dim_stablecoins_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_defi__dim_stablecoins_CONTRACT_ADDRESS.sql", "original_file_path": "models/curated_package/defi/stablecoins/gold/defi__dim_stablecoins.yml", "unique_id": "test.fsc_evm.not_null_defi__dim_stablecoins_CONTRACT_ADDRESS.6d61399207", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "gold", "not_null_defi__dim_stablecoins_CONTRACT_ADDRESS"], "alias": "dim_stablecoins_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.1940565, "relation_name": "polygon.not_null_defi.dim_stablecoins_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defi__dim_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.defi__dim_stablecoins"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/gold/defi__dim_stablecoins.yml/not_null_defi__dim_stablecoins_CONTRACT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.defi.dim_stablecoins\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.defi__dim_stablecoins", "attached_node": "model.fsc_evm.defi__dim_stablecoins"}, "test.fsc_evm.not_null_defi__dim_stablecoins_SYMBOL.5791bb4cff": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SYMBOL", "model": "{{ get_where_subquery(ref('defi__dim_stablecoins')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_defi", "name": "not_null_defi__dim_stablecoins_SYMBOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_defi__dim_stablecoins_SYMBOL.sql", "original_file_path": "models/curated_package/defi/stablecoins/gold/defi__dim_stablecoins.yml", "unique_id": "test.fsc_evm.not_null_defi__dim_stablecoins_SYMBOL.5791bb4cff", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "gold", "not_null_defi__dim_stablecoins_SYMBOL"], "alias": "dim_stablecoins_SYMBOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.1961617, "relation_name": "polygon.not_null_defi.dim_stablecoins_SYMBOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defi__dim_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.defi__dim_stablecoins"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/gold/defi__dim_stablecoins.yml/not_null_defi__dim_stablecoins_SYMBOL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.defi.dim_stablecoins\nwhere SYMBOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SYMBOL", "file_key_name": "models.defi__dim_stablecoins", "attached_node": "model.fsc_evm.defi__dim_stablecoins"}, "test.fsc_evm.not_null_defi__dim_stablecoins_NAME.b868d0a1a6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NAME", "model": "{{ get_where_subquery(ref('defi__dim_stablecoins')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_defi", "name": "not_null_defi__dim_stablecoins_NAME", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_defi__dim_stablecoins_NAME.sql", "original_file_path": "models/curated_package/defi/stablecoins/gold/defi__dim_stablecoins.yml", "unique_id": "test.fsc_evm.not_null_defi__dim_stablecoins_NAME.b868d0a1a6", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "gold", "not_null_defi__dim_stablecoins_NAME"], "alias": "dim_stablecoins_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.1982644, "relation_name": "polygon.not_null_defi.dim_stablecoins_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defi__dim_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.defi__dim_stablecoins"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/gold/defi__dim_stablecoins.yml/not_null_defi__dim_stablecoins_NAME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.defi.dim_stablecoins\nwhere NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NAME", "file_key_name": "models.defi__dim_stablecoins", "attached_node": "model.fsc_evm.defi__dim_stablecoins"}, "test.fsc_evm.not_null_defi__dim_stablecoins_LABEL.b477c86b09": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LABEL", "model": "{{ get_where_subquery(ref('defi__dim_stablecoins')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_defi", "name": "not_null_defi__dim_stablecoins_LABEL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_defi__dim_stablecoins_LABEL.sql", "original_file_path": "models/curated_package/defi/stablecoins/gold/defi__dim_stablecoins.yml", "unique_id": "test.fsc_evm.not_null_defi__dim_stablecoins_LABEL.b477c86b09", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "gold", "not_null_defi__dim_stablecoins_LABEL"], "alias": "dim_stablecoins_LABEL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.2003324, "relation_name": "polygon.not_null_defi.dim_stablecoins_LABEL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defi__dim_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.defi__dim_stablecoins"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/gold/defi__dim_stablecoins.yml/not_null_defi__dim_stablecoins_LABEL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.defi.dim_stablecoins\nwhere LABEL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "LABEL", "file_key_name": "models.defi__dim_stablecoins", "attached_node": "model.fsc_evm.defi__dim_stablecoins"}, "test.fsc_evm.not_null_defi__dim_stablecoins_DECIMALS.121acb907b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DECIMALS", "model": "{{ get_where_subquery(ref('defi__dim_stablecoins')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_defi", "name": "not_null_defi__dim_stablecoins_DECIMALS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_defi__dim_stablecoins_DECIMALS.sql", "original_file_path": "models/curated_package/defi/stablecoins/gold/defi__dim_stablecoins.yml", "unique_id": "test.fsc_evm.not_null_defi__dim_stablecoins_DECIMALS.121acb907b", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "gold", "not_null_defi__dim_stablecoins_DECIMALS"], "alias": "dim_stablecoins_DECIMALS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.2024188, "relation_name": "polygon.not_null_defi.dim_stablecoins_DECIMALS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defi__dim_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.defi__dim_stablecoins"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/gold/defi__dim_stablecoins.yml/not_null_defi__dim_stablecoins_DECIMALS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.defi.dim_stablecoins\nwhere DECIMALS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DECIMALS", "file_key_name": "models.defi__dim_stablecoins", "attached_node": "model.fsc_evm.defi__dim_stablecoins"}, "test.fsc_evm.not_null_defi__dim_stablecoins_IS_VERIFIED.0b8de40713": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "IS_VERIFIED", "model": "{{ get_where_subquery(ref('defi__dim_stablecoins')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_defi", "name": "not_null_defi__dim_stablecoins_IS_VERIFIED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_defi__dim_stablecoins_IS_VERIFIED.sql", "original_file_path": "models/curated_package/defi/stablecoins/gold/defi__dim_stablecoins.yml", "unique_id": "test.fsc_evm.not_null_defi__dim_stablecoins_IS_VERIFIED.0b8de40713", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "gold", "not_null_defi__dim_stablecoins_IS_VERIFIED"], "alias": "dim_stablecoins_IS_VERIFIED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.2047877, "relation_name": "polygon.not_null_defi.dim_stablecoins_IS_VERIFIED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defi__dim_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.defi__dim_stablecoins"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/gold/defi__dim_stablecoins.yml/not_null_defi__dim_stablecoins_IS_VERIFIED.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.defi.dim_stablecoins\nwhere IS_VERIFIED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "IS_VERIFIED", "file_key_name": "models.defi__dim_stablecoins", "attached_node": "model.fsc_evm.defi__dim_stablecoins"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_defi__dim_stablecoins_dim_stablecoins_id.a7f96dedfc": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["dim_stablecoins_id"], "model": "{{ get_where_subquery(ref('defi__dim_stablecoins')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_defi", "name": "dbt_utils_unique_combination_of_columns_defi__dim_stablecoins_dim_stablecoins_id", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_10bd1fa93546ef5c49539f904ed96e17.sql", "original_file_path": "models/curated_package/defi/stablecoins/gold/defi__dim_stablecoins.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_defi__dim_stablecoins_dim_stablecoins_id.a7f96dedfc", "fqn": ["fsc_evm", "curated_package", "defi", "stablecoins", "gold", "dbt_utils_unique_combination_of_columns_defi__dim_stablecoins_dim_stablecoins_id"], "alias": "dim_stablecoins_dim_stablecoins_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_10bd1fa93546ef5c49539f904ed96e17", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_10bd1fa93546ef5c49539f904ed96e17", "store_failures": true}, "created_at": 1764018441.2069294, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_defi.dim_stablecoins_dim_stablecoins_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_10bd1fa93546ef5c49539f904ed96e17\") }}", "language": "sql", "refs": [{"name": "defi__dim_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.defi__dim_stablecoins"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/stablecoins/gold/defi__dim_stablecoins.yml/dbt_utils_unique_combination_o_10bd1fa93546ef5c49539f904ed96e17.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n dim_stablecoins_id\n from polygon.defi.dim_stablecoins\n group by dim_stablecoins_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.defi__dim_stablecoins", "attached_node": "model.fsc_evm.defi__dim_stablecoins"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_BLOCK_NUMBER.3cc45619ac": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__691e42c3c78a6fe1b76a5a01bcb263ce.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_BLOCK_NUMBER.3cc45619ac", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_BLOCK_NUMBER"], "alias": "complete_dex_liquidity_pool_actions_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__691e42c3c78a6fe1b76a5a01bcb263ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__691e42c3c78a6fe1b76a5a01bcb263ce", "store_failures": true}, "created_at": 1764018441.2190526, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__691e42c3c78a6fe1b76a5a01bcb263ce\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete__691e42c3c78a6fe1b76a5a01bcb263ce.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_BLOCK_TIMESTAMP.1cad889870": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__5441676aab9526b3c9bd79436fdc39ac.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_BLOCK_TIMESTAMP.1cad889870", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_BLOCK_TIMESTAMP"], "alias": "complete_dex_liquidity_pool_actions_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__5441676aab9526b3c9bd79436fdc39ac", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__5441676aab9526b3c9bd79436fdc39ac", "store_failures": true}, "created_at": 1764018441.221451, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__5441676aab9526b3c9bd79436fdc39ac\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete__5441676aab9526b3c9bd79436fdc39ac.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TX_HASH.44650e24c5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__0f06f760860b6c776514d79945914209.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TX_HASH.44650e24c5", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_TX_HASH"], "alias": "complete_dex_liquidity_pool_actions_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__0f06f760860b6c776514d79945914209", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__0f06f760860b6c776514d79945914209", "store_failures": true}, "created_at": 1764018441.223572, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__0f06f760860b6c776514d79945914209\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete__0f06f760860b6c776514d79945914209.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_EVENT_INDEX.83e4f1880e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__95768d9a880e7a5c9b62c2ab6ca0ccd5.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_EVENT_INDEX.83e4f1880e", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_EVENT_INDEX"], "alias": "complete_dex_liquidity_pool_actions_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__95768d9a880e7a5c9b62c2ab6ca0ccd5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__95768d9a880e7a5c9b62c2ab6ca0ccd5", "store_failures": true}, "created_at": 1764018441.2256577, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__95768d9a880e7a5c9b62c2ab6ca0ccd5\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete__95768d9a880e7a5c9b62c2ab6ca0ccd5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_EVENT_NAME.52809d123e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_NAME", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_EVENT_NAME", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__2052e21d205cf942dc07860a143647b4.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_EVENT_NAME.52809d123e", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_EVENT_NAME"], "alias": "complete_dex_liquidity_pool_actions_EVENT_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__2052e21d205cf942dc07860a143647b4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__2052e21d205cf942dc07860a143647b4", "store_failures": true}, "created_at": 1764018441.2277315, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_EVENT_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__2052e21d205cf942dc07860a143647b4\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete__2052e21d205cf942dc07860a143647b4.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere EVENT_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_NAME", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER.db4674616c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LIQUIDITY_PROVIDER", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__4107d94d200bfa7a1aa4d27016521872.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER.db4674616c", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER"], "alias": "complete_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__4107d94d200bfa7a1aa4d27016521872", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__4107d94d200bfa7a1aa4d27016521872", "store_failures": true}, "created_at": 1764018441.2297983, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__4107d94d200bfa7a1aa4d27016521872\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete__4107d94d200bfa7a1aa4d27016521872.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere LIQUIDITY_PROVIDER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "LIQUIDITY_PROVIDER", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_SENDER.2834260b51": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SENDER", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_SENDER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_liquidity_pool_actions_SENDER.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_SENDER.2834260b51", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_SENDER"], "alias": "complete_dex_liquidity_pool_actions_SENDER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.2319257, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_SENDER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete_dex_liquidity_pool_actions_SENDER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere SENDER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SENDER", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_RECEIVER.465bf44ee5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "RECEIVER", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_RECEIVER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__0a3f15f996210428ae521a412dff61a5.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_RECEIVER.465bf44ee5", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_RECEIVER"], "alias": "complete_dex_liquidity_pool_actions_RECEIVER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__0a3f15f996210428ae521a412dff61a5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__0a3f15f996210428ae521a412dff61a5", "store_failures": true}, "created_at": 1764018441.2340083, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_RECEIVER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__0a3f15f996210428ae521a412dff61a5\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete__0a3f15f996210428ae521a412dff61a5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere RECEIVER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "RECEIVER", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_POOL_ADDRESS.8eeb6ff26e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "POOL_ADDRESS", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_POOL_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__3598c8937016ec91784d1d2ea0ff09c3.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_POOL_ADDRESS.8eeb6ff26e", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_POOL_ADDRESS"], "alias": "complete_dex_liquidity_pool_actions_POOL_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__3598c8937016ec91784d1d2ea0ff09c3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__3598c8937016ec91784d1d2ea0ff09c3", "store_failures": true}, "created_at": 1764018441.2364118, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_POOL_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__3598c8937016ec91784d1d2ea0ff09c3\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete__3598c8937016ec91784d1d2ea0ff09c3.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere POOL_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "POOL_ADDRESS", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pool_actions_POOL_ADDRESS__0_xX_0_9a_fA_F_.77b6c92f58": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "POOL_ADDRESS", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_dex", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pool_actions_POOL_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_282e1dc1b54068398403237da99892fa.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pool_actions_POOL_ADDRESS__0_xX_0_9a_fA_F_.77b6c92f58", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pool_actions_POOL_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "complete_dex_liquidity_pool_actions_POOL_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_282e1dc1b54068398403237da99892fa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_282e1dc1b54068398403237da99892fa", "store_failures": true}, "created_at": 1764018441.2384844, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_dex.complete_dex_liquidity_pool_actions_POOL_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_282e1dc1b54068398403237da99892fa\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/dbt_expectations_expect_column_282e1dc1b54068398403237da99892fa.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(POOL_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_dex.complete_dex_liquidity_pool_actions\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "POOL_ADDRESS", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS_UNADJ.bdfa9321f4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNTS_UNADJ", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS_UNADJ", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__9428ceeaffbfab0b265514c9835aeaf4.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS_UNADJ.bdfa9321f4", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS_UNADJ"], "alias": "complete_dex_liquidity_pool_actions_AMOUNTS_UNADJ", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__9428ceeaffbfab0b265514c9835aeaf4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__9428ceeaffbfab0b265514c9835aeaf4", "store_failures": true}, "created_at": 1764018441.244108, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_AMOUNTS_UNADJ", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__9428ceeaffbfab0b265514c9835aeaf4\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete__9428ceeaffbfab0b265514c9835aeaf4.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere AMOUNTS_UNADJ is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNTS_UNADJ", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS.c774024072": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNTS", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__a25e9f70d8624078a64cdcabb5b03d72.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS.c774024072", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS"], "alias": "complete_dex_liquidity_pool_actions_AMOUNTS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__a25e9f70d8624078a64cdcabb5b03d72", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__a25e9f70d8624078a64cdcabb5b03d72", "store_failures": true}, "created_at": 1764018441.2462258, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_AMOUNTS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__a25e9f70d8624078a64cdcabb5b03d72\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete__a25e9f70d8624078a64cdcabb5b03d72.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere AMOUNTS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNTS", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS_USD.a60fa0a531": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNTS_USD", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS_USD", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__fa7ab0477549491abe08c0c4f14bca91.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS_USD.a60fa0a531", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS_USD"], "alias": "complete_dex_liquidity_pool_actions_AMOUNTS_USD", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__fa7ab0477549491abe08c0c4f14bca91", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__fa7ab0477549491abe08c0c4f14bca91", "store_failures": true}, "created_at": 1764018441.2483582, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_AMOUNTS_USD", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__fa7ab0477549491abe08c0c4f14bca91\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete__fa7ab0477549491abe08c0c4f14bca91.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere AMOUNTS_USD is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNTS_USD", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS.fd4087fc87": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKENS", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS.fd4087fc87", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS"], "alias": "complete_dex_liquidity_pool_actions_TOKENS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.2504625, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_TOKENS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere TOKENS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKENS", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_SYMBOLS.34cfc0a3e6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SYMBOLS", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_SYMBOLS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__b0e38d78f2ef68b1bf17055d2a178a0e.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_SYMBOLS.34cfc0a3e6", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_SYMBOLS"], "alias": "complete_dex_liquidity_pool_actions_SYMBOLS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__b0e38d78f2ef68b1bf17055d2a178a0e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__b0e38d78f2ef68b1bf17055d2a178a0e", "store_failures": true}, "created_at": 1764018441.2525628, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_SYMBOLS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__b0e38d78f2ef68b1bf17055d2a178a0e\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete__b0e38d78f2ef68b1bf17055d2a178a0e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere SYMBOLS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SYMBOLS", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_DECIMALS.fde79b4576": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DECIMALS", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_DECIMALS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__8fe6eed387af516878479d611c9f59e6.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_DECIMALS.fde79b4576", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_DECIMALS"], "alias": "complete_dex_liquidity_pool_actions_DECIMALS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__8fe6eed387af516878479d611c9f59e6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__8fe6eed387af516878479d611c9f59e6", "store_failures": true}, "created_at": 1764018441.2546215, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_DECIMALS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__8fe6eed387af516878479d611c9f59e6\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete__8fe6eed387af516878479d611c9f59e6.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere DECIMALS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DECIMALS", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS_IS_VERIFIED.d38e3bdb59": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKENS_IS_VERIFIED", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS_IS_VERIFIED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__02144d7f781e9c9f2dacf9510e1204ce.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS_IS_VERIFIED.d38e3bdb59", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS_IS_VERIFIED"], "alias": "complete_dex_liquidity_pool_actions_TOKENS_IS_VERIFIED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__02144d7f781e9c9f2dacf9510e1204ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__02144d7f781e9c9f2dacf9510e1204ce", "store_failures": true}, "created_at": 1764018441.2570028, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_TOKENS_IS_VERIFIED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__02144d7f781e9c9f2dacf9510e1204ce\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete__02144d7f781e9c9f2dacf9510e1204ce.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere TOKENS_IS_VERIFIED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKENS_IS_VERIFIED", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_PLATFORM.129bb6aeb5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_PLATFORM", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__60de21455536641b863ffb8ff5750398.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_PLATFORM.129bb6aeb5", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_PLATFORM"], "alias": "complete_dex_liquidity_pool_actions_PLATFORM", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__60de21455536641b863ffb8ff5750398", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__60de21455536641b863ffb8ff5750398", "store_failures": true}, "created_at": 1764018441.259096, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_PLATFORM", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__60de21455536641b863ffb8ff5750398\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete__60de21455536641b863ffb8ff5750398.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere PLATFORM is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_PROTOCOL.c9300839eb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROTOCOL", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_PROTOCOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__47e0ce82d319eac0d0283d292c67463d.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_PROTOCOL.c9300839eb", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_PROTOCOL"], "alias": "complete_dex_liquidity_pool_actions_PROTOCOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__47e0ce82d319eac0d0283d292c67463d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__47e0ce82d319eac0d0283d292c67463d", "store_failures": true}, "created_at": 1764018441.261173, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_PROTOCOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__47e0ce82d319eac0d0283d292c67463d\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete__47e0ce82d319eac0d0283d292c67463d.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere PROTOCOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROTOCOL", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_VERSION.b6b10368ee": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VERSION", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_VERSION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__d9573333b959e818bbcf934dc7f9e50b.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_VERSION.b6b10368ee", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_VERSION"], "alias": "complete_dex_liquidity_pool_actions_VERSION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__d9573333b959e818bbcf934dc7f9e50b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__d9573333b959e818bbcf934dc7f9e50b", "store_failures": true}, "created_at": 1764018441.263272, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_VERSION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__d9573333b959e818bbcf934dc7f9e50b\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete__d9573333b959e818bbcf934dc7f9e50b.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere VERSION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VERSION", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TYPE.40d8e6018e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TYPE", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_TYPE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_liquidity_pool_actions_TYPE.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TYPE.40d8e6018e", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_TYPE"], "alias": "complete_dex_liquidity_pool_actions_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.2653792, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete_dex_liquidity_pool_actions_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TYPE", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP.f31fa88748": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__3680d4a0b59baee355f7770f9cc45da4.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP.f31fa88748", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP"], "alias": "complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__3680d4a0b59baee355f7770f9cc45da4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__3680d4a0b59baee355f7770f9cc45da4", "store_failures": true}, "created_at": 1764018441.267464, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__3680d4a0b59baee355f7770f9cc45da4\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/not_null_silver_dex__complete__3680d4a0b59baee355f7770f9cc45da4.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pool_actions\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP__day__3.7ae7a49b3e": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 3, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver_dex", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP__day__3", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_b550c261a0427386ab60bab56f3802b4.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP__day__3.7ae7a49b3e", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP__day__3"], "alias": "complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_b550c261a0427386ab60bab56f3802b4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_b550c261a0427386ab60bab56f3802b4", "store_failures": true}, "created_at": 1764018441.2695365, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex.complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_b550c261a0427386ab60bab56f3802b4\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/dbt_expectations_expect_row_va_b550c261a0427386ab60bab56f3802b4.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_liquidity_pool_actions__ID.ddef6289c9": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_ID"], "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_dex", "name": "dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_liquidity_pool_actions__ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_2136d50d06eeeb8842cf3395b7ff7072.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_liquidity_pool_actions__ID.ddef6289c9", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_liquidity_pool_actions__ID"], "alias": "complete_dex_liquidity_pool_actions", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2136d50d06eeeb8842cf3395b7ff7072", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2136d50d06eeeb8842cf3395b7ff7072", "store_failures": true}, "created_at": 1764018441.2778287, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_dex.complete_dex_liquidity_pool_actions", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2136d50d06eeeb8842cf3395b7ff7072\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/dbt_utils_unique_combination_o_2136d50d06eeeb8842cf3395b7ff7072.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _ID\n from polygon.silver_dex.complete_dex_liquidity_pool_actions\n group by _ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.curated_recency_defi_silver_dex__complete_dex_liquidity_pool_actions_dex_lp_actions.362cf81572": {"test_metadata": {"name": "curated_recency_defi", "kwargs": {"type": "dex_lp_actions", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "curated_recency_defi_silver_dex", "name": "curated_recency_defi_silver_dex__complete_dex_liquidity_pool_actions_dex_lp_actions", "resource_type": "test", "package_name": "fsc_evm", "path": "curated_recency_defi_silver_de_5c3a67e8b5c3bc863aa9b10a1106964c.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.curated_recency_defi_silver_dex__complete_dex_liquidity_pool_actions_dex_lp_actions.362cf81572", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "curated_recency_defi_silver_dex__complete_dex_liquidity_pool_actions_dex_lp_actions"], "alias": "complete_dex_liquidity_pool_actions_dex_lp_actions", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "curated_recency_defi_silver_de_5c3a67e8b5c3bc863aa9b10a1106964c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "curated_recency_defi_silver_de_5c3a67e8b5c3bc863aa9b10a1106964c", "store_failures": true}, "created_at": 1764018441.2828014, "relation_name": "polygon.curated_recency_defi_silver_dex.complete_dex_liquidity_pool_actions_dex_lp_actions", "raw_code": "{{ test_curated_recency_defi(**_dbt_generic_test_kwargs) }}{{ config(alias=\"curated_recency_defi_silver_de_5c3a67e8b5c3bc863aa9b10a1106964c\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_curated_recency_defi", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pool_actions.yml/curated_recency_defi_silver_de_5c3a67e8b5c3bc863aa9b10a1106964c.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH source AS (\n SELECT\n platform,\n MAX(block_timestamp) AS latest_timestamp,\n SYSDATE() AS sys_ts,\n DATEADD('day', -30, SYSDATE()) AS threshold_ts,\n COUNT(\n CASE\n WHEN block_timestamp >= threshold_ts THEN 1 \n END) AS current_period_evt,\n CEIL(\n (\n COUNT(\n CASE\n WHEN block_timestamp >= DATEADD('day', -180, SYSDATE())\n AND block_timestamp < threshold_ts THEN 1\n END\n ) / 150.0\n ) * 30\n ) AS rolling_avg_evt,\n CASE\n WHEN rolling_avg_evt = 0 THEN 0\n ELSE ROUND((current_period_evt / rolling_avg_evt) * 100, 2)\n END AS percent_delta,\n 'dex_lp_actions' AS type\n FROM\n polygon.silver_dex.complete_dex_liquidity_pool_actions\n GROUP BY\n 1\n )\n SELECT\n platform,\n latest_timestamp,\n sys_ts,\n threshold_ts,\n current_period_evt,\n rolling_avg_evt,\n percent_delta,\n type\n FROM\n source\n WHERE\n (latest_timestamp < threshold_ts \n OR (percent_delta < 10 AND percent_delta <> 0))\n \n AND platform NOT IN ('kyberswap-v2', 'curve-v1')\n \n-- failure to meet threshold requires manual review to determine if\n-- the protocol has newly deployed contracts, stale contracts, etc.\n-- if this is the case, the test should not apply to the relevant model(s)\n-- percent_delta shows current period performance vs rolling average\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_dex__complete_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_BLOCK_NUMBER.17ae3af028": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_swaps_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_swaps_BLOCK_NUMBER.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_BLOCK_NUMBER.17ae3af028", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_swaps_BLOCK_NUMBER"], "alias": "complete_dex_swaps_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.3328438, "relation_name": "polygon.not_null_silver_dex.complete_dex_swaps_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/not_null_silver_dex__complete_dex_swaps_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_swaps\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_BLOCK_TIMESTAMP.16acbec13e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_swaps_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_swaps_BLOCK_TIMESTAMP.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_BLOCK_TIMESTAMP.16acbec13e", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_swaps_BLOCK_TIMESTAMP"], "alias": "complete_dex_swaps_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.3351097, "relation_name": "polygon.not_null_silver_dex.complete_dex_swaps_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/not_null_silver_dex__complete_dex_swaps_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_swaps\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TX_HASH.338d50a54c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_swaps_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_swaps_TX_HASH.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TX_HASH.338d50a54c", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_swaps_TX_HASH"], "alias": "complete_dex_swaps_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.337253, "relation_name": "polygon.not_null_silver_dex.complete_dex_swaps_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/not_null_silver_dex__complete_dex_swaps_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_swaps\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TX_HASH__0_xX_0_9a_fA_F_.f7c909191d": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_dex", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_c63e2ed3b9d7b75702cf58dd45cf0e53.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TX_HASH__0_xX_0_9a_fA_F_.f7c909191d", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "complete_dex_swaps_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c63e2ed3b9d7b75702cf58dd45cf0e53", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c63e2ed3b9d7b75702cf58dd45cf0e53", "store_failures": true}, "created_at": 1764018441.339325, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_dex.complete_dex_swaps_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c63e2ed3b9d7b75702cf58dd45cf0e53\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/dbt_expectations_expect_column_c63e2ed3b9d7b75702cf58dd45cf0e53.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_HASH, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_dex.complete_dex_swaps\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS.8c4b42fef8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS.8c4b42fef8", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS"], "alias": "complete_dex_swaps_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.3449967, "relation_name": "polygon.not_null_silver_dex.complete_dex_swaps_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/not_null_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_swaps\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.be6db6029d": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_dex", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_2db93f4c4998745692b5cff9ba4c2a25.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.be6db6029d", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "complete_dex_swaps_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2db93f4c4998745692b5cff9ba4c2a25", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_2db93f4c4998745692b5cff9ba4c2a25", "store_failures": true}, "created_at": 1764018441.3471253, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_dex.complete_dex_swaps_CONTRACT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2db93f4c4998745692b5cff9ba4c2a25\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/dbt_expectations_expect_column_2db93f4c4998745692b5cff9ba4c2a25.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_dex.complete_dex_swaps\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_AMOUNT_IN.3df36cb722": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_IN", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_swaps_AMOUNT_IN", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_swaps_AMOUNT_IN.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_AMOUNT_IN.3df36cb722", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_swaps_AMOUNT_IN"], "alias": "complete_dex_swaps_AMOUNT_IN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.3527513, "relation_name": "polygon.not_null_silver_dex.complete_dex_swaps_AMOUNT_IN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/not_null_silver_dex__complete_dex_swaps_AMOUNT_IN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_swaps\nwhere AMOUNT_IN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_IN", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_AMOUNT_OUT.d33197318a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_OUT", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_swaps_AMOUNT_OUT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_swaps_AMOUNT_OUT.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_AMOUNT_OUT.d33197318a", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_swaps_AMOUNT_OUT"], "alias": "complete_dex_swaps_AMOUNT_OUT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.3549411, "relation_name": "polygon.not_null_silver_dex.complete_dex_swaps_AMOUNT_OUT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/not_null_silver_dex__complete_dex_swaps_AMOUNT_OUT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_swaps\nwhere AMOUNT_OUT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_OUT", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TOKEN_IN__0_xX_0_9a_fA_F_.790e194383": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TOKEN_IN", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_dex", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TOKEN_IN__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_cb78f3ad7a12224248f4fda04f8d546c.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TOKEN_IN__0_xX_0_9a_fA_F_.790e194383", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TOKEN_IN__0_xX_0_9a_fA_F_"], "alias": "complete_dex_swaps_TOKEN_IN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_cb78f3ad7a12224248f4fda04f8d546c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_cb78f3ad7a12224248f4fda04f8d546c", "store_failures": true}, "created_at": 1764018441.357083, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_dex.complete_dex_swaps_TOKEN_IN", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_cb78f3ad7a12224248f4fda04f8d546c\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/dbt_expectations_expect_column_cb78f3ad7a12224248f4fda04f8d546c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TOKEN_IN, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_dex.complete_dex_swaps\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_IN", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TOKEN_OUT__0_xX_0_9a_fA_F_.ae14302936": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TOKEN_OUT", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_dex", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TOKEN_OUT__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_57aafa453f6dc333422a612caa0766c0.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TOKEN_OUT__0_xX_0_9a_fA_F_.ae14302936", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TOKEN_OUT__0_xX_0_9a_fA_F_"], "alias": "complete_dex_swaps_TOKEN_OUT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_57aafa453f6dc333422a612caa0766c0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_57aafa453f6dc333422a612caa0766c0", "store_failures": true}, "created_at": 1764018441.3628936, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_dex.complete_dex_swaps_TOKEN_OUT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_57aafa453f6dc333422a612caa0766c0\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/dbt_expectations_expect_column_57aafa453f6dc333422a612caa0766c0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TOKEN_OUT, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_dex.complete_dex_swaps\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_OUT", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_SENDER__0_xX_0_9a_fA_F_.58a39f68d2": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "SENDER", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_dex", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_SENDER__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_e222b49ecaee980b5cde76c99c0e216f.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_SENDER__0_xX_0_9a_fA_F_.58a39f68d2", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_SENDER__0_xX_0_9a_fA_F_"], "alias": "complete_dex_swaps_SENDER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e222b49ecaee980b5cde76c99c0e216f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_e222b49ecaee980b5cde76c99c0e216f", "store_failures": true}, "created_at": 1764018441.368437, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_dex.complete_dex_swaps_SENDER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e222b49ecaee980b5cde76c99c0e216f\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/dbt_expectations_expect_column_e222b49ecaee980b5cde76c99c0e216f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(SENDER, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_dex.complete_dex_swaps\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SENDER", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TX_TO.2085271b93": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_TO", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_swaps_TX_TO", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_swaps_TX_TO.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TX_TO.2085271b93", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_swaps_TX_TO"], "alias": "complete_dex_swaps_TX_TO", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.3737168, "relation_name": "polygon.not_null_silver_dex.complete_dex_swaps_TX_TO", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/not_null_silver_dex__complete_dex_swaps_TX_TO.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_swaps\nwhere TX_TO is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_TO", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TX_TO__0_xX_0_9a_fA_F_.03c82421e1": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_TO", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_dex", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TX_TO__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_0122819ac0e674b4149710f442aaf541.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TX_TO__0_xX_0_9a_fA_F_.03c82421e1", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TX_TO__0_xX_0_9a_fA_F_"], "alias": "complete_dex_swaps_TX_TO", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0122819ac0e674b4149710f442aaf541", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0122819ac0e674b4149710f442aaf541", "store_failures": true}, "created_at": 1764018441.3761923, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_dex.complete_dex_swaps_TX_TO", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0122819ac0e674b4149710f442aaf541\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/dbt_expectations_expect_column_0122819ac0e674b4149710f442aaf541.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TX_TO, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_dex.complete_dex_swaps\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_TO", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_PLATFORM.be3e105587": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_swaps_PLATFORM", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_swaps_PLATFORM.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_PLATFORM.be3e105587", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_swaps_PLATFORM"], "alias": "complete_dex_swaps_PLATFORM", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.381402, "relation_name": "polygon.not_null_silver_dex.complete_dex_swaps_PLATFORM", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/not_null_silver_dex__complete_dex_swaps_PLATFORM.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_swaps\nwhere PLATFORM is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_PROTOCOL.3df038aacb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROTOCOL", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_swaps_PROTOCOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_swaps_PROTOCOL.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_PROTOCOL.3df038aacb", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_swaps_PROTOCOL"], "alias": "complete_dex_swaps_PROTOCOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.3835158, "relation_name": "polygon.not_null_silver_dex.complete_dex_swaps_PROTOCOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/not_null_silver_dex__complete_dex_swaps_PROTOCOL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_swaps\nwhere PROTOCOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROTOCOL", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_VERSION.302623d7a3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VERSION", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_swaps_VERSION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_swaps_VERSION.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_VERSION.302623d7a3", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_swaps_VERSION"], "alias": "complete_dex_swaps_VERSION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.3858647, "relation_name": "polygon.not_null_silver_dex.complete_dex_swaps_VERSION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/not_null_silver_dex__complete_dex_swaps_VERSION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_swaps\nwhere VERSION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VERSION", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TYPE.c008585f12": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TYPE", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_swaps_TYPE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_swaps_TYPE.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TYPE.c008585f12", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_swaps_TYPE"], "alias": "complete_dex_swaps_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.3879566, "relation_name": "polygon.not_null_silver_dex.complete_dex_swaps_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/not_null_silver_dex__complete_dex_swaps_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_swaps\nwhere TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TYPE", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP.4c29ced501": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP.4c29ced501", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP"], "alias": "complete_dex_swaps_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.3900409, "relation_name": "polygon.not_null_silver_dex.complete_dex_swaps_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/not_null_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_swaps\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP__day__3.ecc8ffb7ad": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 3, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver_dex", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP__day__3", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_26154ecea1f46127d8e2cdfb2631c9f7.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP__day__3.ecc8ffb7ad", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP__day__3"], "alias": "complete_dex_swaps_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_26154ecea1f46127d8e2cdfb2631c9f7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_26154ecea1f46127d8e2cdfb2631c9f7", "store_failures": true}, "created_at": 1764018441.3921301, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex.complete_dex_swaps_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_26154ecea1f46127d8e2cdfb2631c9f7\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/dbt_expectations_expect_row_va_26154ecea1f46127d8e2cdfb2631c9f7.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver_dex.complete_dex_swaps\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_swaps__LOG_ID.ba65a2d85c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_LOG_ID"], "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_dex", "name": "dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_swaps__LOG_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_f59a48687c596c5a404bb4e51077817a.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_swaps__LOG_ID.ba65a2d85c", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_swaps__LOG_ID"], "alias": "complete_dex_swaps", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f59a48687c596c5a404bb4e51077817a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f59a48687c596c5a404bb4e51077817a", "store_failures": true}, "created_at": 1764018441.400176, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_dex.complete_dex_swaps", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f59a48687c596c5a404bb4e51077817a\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/dbt_utils_unique_combination_o_f59a48687c596c5a404bb4e51077817a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _LOG_ID\n from polygon.silver_dex.complete_dex_swaps\n group by _LOG_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.curated_recency_defi_silver_dex__complete_dex_swaps_dex_swaps.5916f6c88e": {"test_metadata": {"name": "curated_recency_defi", "kwargs": {"type": "dex_swaps", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_swaps')) }}"}, "namespace": null}, "database": "polygon", "schema": "curated_recency_defi_silver_dex", "name": "curated_recency_defi_silver_dex__complete_dex_swaps_dex_swaps", "resource_type": "test", "package_name": "fsc_evm", "path": "curated_recency_defi_silver_dex__complete_dex_swaps_dex_swaps.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml", "unique_id": "test.fsc_evm.curated_recency_defi_silver_dex__complete_dex_swaps_dex_swaps.5916f6c88e", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "curated_recency_defi_silver_dex__complete_dex_swaps_dex_swaps"], "alias": "complete_dex_swaps_dex_swaps", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.4053204, "relation_name": "polygon.curated_recency_defi_silver_dex.complete_dex_swaps_dex_swaps", "raw_code": "{{ test_curated_recency_defi(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_swaps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_curated_recency_defi", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_swaps"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_swaps.yml/curated_recency_defi_silver_dex__complete_dex_swaps_dex_swaps.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH source AS (\n SELECT\n platform,\n MAX(block_timestamp) AS latest_timestamp,\n SYSDATE() AS sys_ts,\n DATEADD('day', -30, SYSDATE()) AS threshold_ts,\n COUNT(\n CASE\n WHEN block_timestamp >= threshold_ts THEN 1 \n END) AS current_period_evt,\n CEIL(\n (\n COUNT(\n CASE\n WHEN block_timestamp >= DATEADD('day', -180, SYSDATE())\n AND block_timestamp < threshold_ts THEN 1\n END\n ) / 150.0\n ) * 30\n ) AS rolling_avg_evt,\n CASE\n WHEN rolling_avg_evt = 0 THEN 0\n ELSE ROUND((current_period_evt / rolling_avg_evt) * 100, 2)\n END AS percent_delta,\n 'dex_swaps' AS type\n FROM\n polygon.silver_dex.complete_dex_swaps\n GROUP BY\n 1\n )\n SELECT\n platform,\n latest_timestamp,\n sys_ts,\n threshold_ts,\n current_period_evt,\n rolling_avg_evt,\n percent_delta,\n type\n FROM\n source\n WHERE\n (latest_timestamp < threshold_ts \n OR (percent_delta < 10 AND percent_delta <> 0))\n \n AND platform NOT IN ('woofi-v1', 'hashflow-v1')\n \n-- failure to meet threshold requires manual review to determine if\n-- the protocol has newly deployed contracts, stale contracts, etc.\n-- if this is the case, the test should not apply to the relevant model(s)\n-- percent_delta shows current period performance vs rolling average\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_dex__complete_dex_swaps", "attached_node": "model.fsc_evm.silver_dex__complete_dex_swaps"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_NUMBER.5b1552ab5e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pools')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_NUMBER.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_NUMBER.5b1552ab5e", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_NUMBER"], "alias": "complete_dex_liquidity_pools_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.452475, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pools_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml/not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pools\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver_dex__complete_dex_liquidity_pools", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_TIMESTAMP.b982bd6907": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pools')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__3345f03a8f7db5ba2e43574d1a6fbaa5.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_TIMESTAMP.b982bd6907", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_TIMESTAMP"], "alias": "complete_dex_liquidity_pools_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__3345f03a8f7db5ba2e43574d1a6fbaa5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__3345f03a8f7db5ba2e43574d1a6fbaa5", "store_failures": true}, "created_at": 1764018441.4547465, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pools_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__3345f03a8f7db5ba2e43574d1a6fbaa5\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml/not_null_silver_dex__complete__3345f03a8f7db5ba2e43574d1a6fbaa5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pools\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_dex__complete_dex_liquidity_pools", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_TX_HASH.92b7a24d0d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pools')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pools_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_liquidity_pools_TX_HASH.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_TX_HASH.92b7a24d0d", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pools_TX_HASH"], "alias": "complete_dex_liquidity_pools_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.456875, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pools_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml/not_null_silver_dex__complete_dex_liquidity_pools_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pools\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver_dex__complete_dex_liquidity_pools", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_CONTRACT_ADDRESS.52ef84763a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pools')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pools_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__6e3ef9c2d9ddf23b44d4b56abea59cc8.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_CONTRACT_ADDRESS.52ef84763a", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pools_CONTRACT_ADDRESS"], "alias": "complete_dex_liquidity_pools_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__6e3ef9c2d9ddf23b44d4b56abea59cc8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__6e3ef9c2d9ddf23b44d4b56abea59cc8", "store_failures": true}, "created_at": 1764018441.459333, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pools_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__6e3ef9c2d9ddf23b44d4b56abea59cc8\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml/not_null_silver_dex__complete__6e3ef9c2d9ddf23b44d4b56abea59cc8.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pools\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_dex__complete_dex_liquidity_pools", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pools_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.dc69988db3": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pools')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_dex", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pools_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_0418262ef39404a534884706993f384d.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pools_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.dc69988db3", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pools_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "complete_dex_liquidity_pools_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0418262ef39404a534884706993f384d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0418262ef39404a534884706993f384d", "store_failures": true}, "created_at": 1764018441.461411, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_dex.complete_dex_liquidity_pools_CONTRACT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0418262ef39404a534884706993f384d\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml/dbt_expectations_expect_column_0418262ef39404a534884706993f384d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_dex.complete_dex_liquidity_pools\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_dex__complete_dex_liquidity_pools", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS.03eefde7c0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "POOL_ADDRESS", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pools')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS.03eefde7c0", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS"], "alias": "complete_dex_liquidity_pools_POOL_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.4670205, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pools_POOL_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml/not_null_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pools\nwhere POOL_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "POOL_ADDRESS", "file_key_name": "models.silver_dex__complete_dex_liquidity_pools", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS__0_xX_0_9a_fA_F_.531aeb2798": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "POOL_ADDRESS", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pools')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_dex", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_0b7b84dd3c14fa443d92b96a7824e510.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS__0_xX_0_9a_fA_F_.531aeb2798", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "complete_dex_liquidity_pools_POOL_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0b7b84dd3c14fa443d92b96a7824e510", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0b7b84dd3c14fa443d92b96a7824e510", "store_failures": true}, "created_at": 1764018441.469112, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_dex.complete_dex_liquidity_pools_POOL_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0b7b84dd3c14fa443d92b96a7824e510\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml/dbt_expectations_expect_column_0b7b84dd3c14fa443d92b96a7824e510.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(POOL_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_dex.complete_dex_liquidity_pools\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "POOL_ADDRESS", "file_key_name": "models.silver_dex__complete_dex_liquidity_pools", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_PLATFORM.dfa0956636": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pools')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pools_PLATFORM", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_liquidity_pools_PLATFORM.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_PLATFORM.dfa0956636", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pools_PLATFORM"], "alias": "complete_dex_liquidity_pools_PLATFORM", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.4742043, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pools_PLATFORM", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml/not_null_silver_dex__complete_dex_liquidity_pools_PLATFORM.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pools\nwhere PLATFORM is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM", "file_key_name": "models.silver_dex__complete_dex_liquidity_pools", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_PROTOCOL.a63c90c2a0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROTOCOL", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pools')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pools_PROTOCOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_liquidity_pools_PROTOCOL.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_PROTOCOL.a63c90c2a0", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pools_PROTOCOL"], "alias": "complete_dex_liquidity_pools_PROTOCOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.4765716, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pools_PROTOCOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml/not_null_silver_dex__complete_dex_liquidity_pools_PROTOCOL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pools\nwhere PROTOCOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROTOCOL", "file_key_name": "models.silver_dex__complete_dex_liquidity_pools", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_VERSION.5eef91934c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VERSION", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pools')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pools_VERSION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_liquidity_pools_VERSION.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_VERSION.5eef91934c", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pools_VERSION"], "alias": "complete_dex_liquidity_pools_VERSION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.478683, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pools_VERSION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml/not_null_silver_dex__complete_dex_liquidity_pools_VERSION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pools\nwhere VERSION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VERSION", "file_key_name": "models.silver_dex__complete_dex_liquidity_pools", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_TYPE.41453fccf7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TYPE", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pools')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pools_TYPE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete_dex_liquidity_pools_TYPE.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_TYPE.41453fccf7", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pools_TYPE"], "alias": "complete_dex_liquidity_pools_TYPE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.4808884, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pools_TYPE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml/not_null_silver_dex__complete_dex_liquidity_pools_TYPE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pools\nwhere TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TYPE", "file_key_name": "models.silver_dex__complete_dex_liquidity_pools", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"}, "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_MODIFIED_TIMESTAMP.d34d6a1858": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pools')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__complete_dex_liquidity_pools_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__complete__ab736cd19eb9ec9f0479c0e9aa7c1885.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_MODIFIED_TIMESTAMP.d34d6a1858", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "not_null_silver_dex__complete_dex_liquidity_pools_MODIFIED_TIMESTAMP"], "alias": "complete_dex_liquidity_pools_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_dex__complete__ab736cd19eb9ec9f0479c0e9aa7c1885", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_dex__complete__ab736cd19eb9ec9f0479c0e9aa7c1885", "store_failures": true}, "created_at": 1764018441.4830208, "relation_name": "polygon.not_null_silver_dex.complete_dex_liquidity_pools_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_dex__complete__ab736cd19eb9ec9f0479c0e9aa7c1885\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml/not_null_silver_dex__complete__ab736cd19eb9ec9f0479c0e9aa7c1885.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.complete_dex_liquidity_pools\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver_dex__complete_dex_liquidity_pools", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_liquidity_pools_MODIFIED_TIMESTAMP__day__30.3fd9adc88e": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 30, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pools')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver_dex", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_liquidity_pools_MODIFIED_TIMESTAMP__day__30", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_4f0d423210fb4eb790ef4611af30145c.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_liquidity_pools_MODIFIED_TIMESTAMP__day__30.3fd9adc88e", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_liquidity_pools_MODIFIED_TIMESTAMP__day__30"], "alias": "complete_dex_liquidity_pools_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_4f0d423210fb4eb790ef4611af30145c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_4f0d423210fb4eb790ef4611af30145c", "store_failures": true}, "created_at": 1764018441.4850926, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex.complete_dex_liquidity_pools_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_4f0d423210fb4eb790ef4611af30145c\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml/dbt_expectations_expect_row_va_4f0d423210fb4eb790ef4611af30145c.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver_dex.complete_dex_liquidity_pools\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -30,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver_dex__complete_dex_liquidity_pools", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_liquidity_pools__ID.b4429d9fea": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_ID"], "model": "{{ get_where_subquery(ref('silver_dex__complete_dex_liquidity_pools')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_dex", "name": "dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_liquidity_pools__ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_5f2b523d2873a351d9b5dbca59ca58af.sql", "original_file_path": "models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_liquidity_pools__ID.b4429d9fea", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_liquidity_pools__ID"], "alias": "complete_dex_liquidity_pools", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5f2b523d2873a351d9b5dbca59ca58af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5f2b523d2873a351d9b5dbca59ca58af", "store_failures": true}, "created_at": 1764018441.4933453, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_dex.complete_dex_liquidity_pools", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5f2b523d2873a351d9b5dbca59ca58af\") }}", "language": "sql", "refs": [{"name": "silver_dex__complete_dex_liquidity_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/silver_dex__complete_dex_liquidity_pools.yml/dbt_utils_unique_combination_o_5f2b523d2873a351d9b5dbca59ca58af.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _ID\n from polygon.silver_dex.complete_dex_liquidity_pools\n group by _ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_dex__complete_dex_liquidity_pools", "attached_node": "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__balancer_pools_POOL_ADDRESS.2719d33e20": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["POOL_ADDRESS"], "model": "{{ get_where_subquery(ref('silver_dex__balancer_pools')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_dex", "name": "dbt_utils_unique_combination_of_columns_silver_dex__balancer_pools_POOL_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_083f8da40cf2549b308a4d03dd519293.sql", "original_file_path": "models/curated_package/defi/dex/silver/balancer/silver_dex__balancer_pools.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__balancer_pools_POOL_ADDRESS.2719d33e20", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "balancer", "dbt_utils_unique_combination_of_columns_silver_dex__balancer_pools_POOL_ADDRESS"], "alias": "balancer_pools_POOL_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_083f8da40cf2549b308a4d03dd519293", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_083f8da40cf2549b308a4d03dd519293", "store_failures": true}, "created_at": 1764018441.4992754, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_dex.balancer_pools_POOL_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_083f8da40cf2549b308a4d03dd519293\") }}", "language": "sql", "refs": [{"name": "silver_dex__balancer_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__balancer_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/balancer/silver_dex__balancer_pools.yml/dbt_utils_unique_combination_o_083f8da40cf2549b308a4d03dd519293.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n POOL_ADDRESS\n from polygon.silver_dex.balancer_pools\n group by POOL_ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_dex__balancer_pools", "attached_node": "model.fsc_evm.silver_dex__balancer_pools"}, "test.fsc_evm.not_null_silver_dex__curve_pools_POOL_ADDRESS.d71b87d177": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "POOL_ADDRESS", "model": "{{ get_where_subquery(ref('silver_dex__curve_pools')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__curve_pools_POOL_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__curve_pools_POOL_ADDRESS.sql", "original_file_path": "models/curated_package/defi/dex/silver/curve/silver_dex__curve_pools.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__curve_pools_POOL_ADDRESS.d71b87d177", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "curve", "not_null_silver_dex__curve_pools_POOL_ADDRESS"], "alias": "curve_pools_POOL_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.5052364, "relation_name": "polygon.not_null_silver_dex.curve_pools_POOL_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__curve_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__curve_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/curve/silver_dex__curve_pools.yml/not_null_silver_dex__curve_pools_POOL_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.curve_pools\nwhere POOL_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "POOL_ADDRESS", "file_key_name": "models.silver_dex__curve_pools", "attached_node": "model.fsc_evm.silver_dex__curve_pools"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__curve_pools_POOL_ADDRESS__0_xX_0_9a_fA_F_.185fa9348a": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "POOL_ADDRESS", "model": "{{ get_where_subquery(ref('silver_dex__curve_pools')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_dex", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_dex__curve_pools_POOL_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_d2eff0fd4df990bf40761551efdca591.sql", "original_file_path": "models/curated_package/defi/dex/silver/curve/silver_dex__curve_pools.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__curve_pools_POOL_ADDRESS__0_xX_0_9a_fA_F_.185fa9348a", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "curve", "dbt_expectations_expect_column_values_to_match_regex_silver_dex__curve_pools_POOL_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "curve_pools_POOL_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d2eff0fd4df990bf40761551efdca591", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d2eff0fd4df990bf40761551efdca591", "store_failures": true}, "created_at": 1764018441.5074053, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_dex.curve_pools_POOL_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d2eff0fd4df990bf40761551efdca591\") }}", "language": "sql", "refs": [{"name": "silver_dex__curve_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__curve_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/curve/silver_dex__curve_pools.yml/dbt_expectations_expect_column_d2eff0fd4df990bf40761551efdca591.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(POOL_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_dex.curve_pools\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "POOL_ADDRESS", "file_key_name": "models.silver_dex__curve_pools", "attached_node": "model.fsc_evm.silver_dex__curve_pools"}, "test.fsc_evm.not_null_silver_dex__curve_pools_TOKEN_ADDRESS.27eb2fea68": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_ADDRESS", "model": "{{ get_where_subquery(ref('silver_dex__curve_pools')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_dex", "name": "not_null_silver_dex__curve_pools_TOKEN_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_dex__curve_pools_TOKEN_ADDRESS.sql", "original_file_path": "models/curated_package/defi/dex/silver/curve/silver_dex__curve_pools.yml", "unique_id": "test.fsc_evm.not_null_silver_dex__curve_pools_TOKEN_ADDRESS.27eb2fea68", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "curve", "not_null_silver_dex__curve_pools_TOKEN_ADDRESS"], "alias": "curve_pools_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.5123634, "relation_name": "polygon.not_null_silver_dex.curve_pools_TOKEN_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_dex__curve_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__curve_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/curve/silver_dex__curve_pools.yml/not_null_silver_dex__curve_pools_TOKEN_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_dex.curve_pools\nwhere TOKEN_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ADDRESS", "file_key_name": "models.silver_dex__curve_pools", "attached_node": "model.fsc_evm.silver_dex__curve_pools"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__curve_pools_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.7ffaec64f4": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TOKEN_ADDRESS", "model": "{{ get_where_subquery(ref('silver_dex__curve_pools')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver_dex", "name": "dbt_expectations_expect_column_values_to_match_regex_silver_dex__curve_pools_TOKEN_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_a1e0429da5025fa07af81cee239ef0fc.sql", "original_file_path": "models/curated_package/defi/dex/silver/curve/silver_dex__curve_pools.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__curve_pools_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.7ffaec64f4", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "curve", "dbt_expectations_expect_column_values_to_match_regex_silver_dex__curve_pools_TOKEN_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "curve_pools_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a1e0429da5025fa07af81cee239ef0fc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_a1e0429da5025fa07af81cee239ef0fc", "store_failures": true}, "created_at": 1764018441.5147176, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver_dex.curve_pools_TOKEN_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a1e0429da5025fa07af81cee239ef0fc\") }}", "language": "sql", "refs": [{"name": "silver_dex__curve_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__curve_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/curve/silver_dex__curve_pools.yml/dbt_expectations_expect_column_a1e0429da5025fa07af81cee239ef0fc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(TOKEN_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver_dex.curve_pools\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ADDRESS", "file_key_name": "models.silver_dex__curve_pools", "attached_node": "model.fsc_evm.silver_dex__curve_pools"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__curve_pools_POOL_ID.16e66dab1a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["POOL_ID"], "model": "{{ get_where_subquery(ref('silver_dex__curve_pools')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_dex", "name": "dbt_utils_unique_combination_of_columns_silver_dex__curve_pools_POOL_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_94e7c51d1000f63ceb4a8088a36da76a.sql", "original_file_path": "models/curated_package/defi/dex/silver/curve/silver_dex__curve_pools.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__curve_pools_POOL_ID.16e66dab1a", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "silver", "curve", "dbt_utils_unique_combination_of_columns_silver_dex__curve_pools_POOL_ID"], "alias": "curve_pools_POOL_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_94e7c51d1000f63ceb4a8088a36da76a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_94e7c51d1000f63ceb4a8088a36da76a", "store_failures": true}, "created_at": 1764018441.5196526, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_dex.curve_pools_POOL_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_94e7c51d1000f63ceb4a8088a36da76a\") }}", "language": "sql", "refs": [{"name": "silver_dex__curve_pools", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_dex__curve_pools"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/silver/curve/silver_dex__curve_pools.yml/dbt_utils_unique_combination_o_94e7c51d1000f63ceb4a8088a36da76a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n POOL_ID\n from polygon.silver_dex.curve_pools\n group by POOL_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_dex__curve_pools", "attached_node": "model.fsc_evm.silver_dex__curve_pools"}, "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_BLOCK_TIMESTAMP.aa08bbc5bb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('defi__ez_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_defi", "name": "not_null_defi__ez_dex_liquidity_pool_actions_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_defi__ez_dex_liquidity_pool_actions_BLOCK_TIMESTAMP.sql", "original_file_path": "models/curated_package/defi/dex/gold/defi__ez_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_BLOCK_TIMESTAMP.aa08bbc5bb", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "gold", "not_null_defi__ez_dex_liquidity_pool_actions_BLOCK_TIMESTAMP"], "alias": "ez_dex_liquidity_pool_actions_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.535998, "relation_name": "polygon.not_null_defi.ez_dex_liquidity_pool_actions_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defi__ez_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.defi__ez_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/gold/defi__ez_dex_liquidity_pool_actions.yml/not_null_defi__ez_dex_liquidity_pool_actions_BLOCK_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.defi.ez_dex_liquidity_pool_actions\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.defi__ez_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.defi__ez_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER.1b554aa4ee": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LIQUIDITY_PROVIDER", "model": "{{ get_where_subquery(ref('defi__ez_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_defi", "name": "not_null_defi__ez_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_defi__ez_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER.sql", "original_file_path": "models/curated_package/defi/dex/gold/defi__ez_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER.1b554aa4ee", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "gold", "not_null_defi__ez_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER"], "alias": "ez_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.5384002, "relation_name": "polygon.not_null_defi.ez_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defi__ez_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.defi__ez_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/gold/defi__ez_dex_liquidity_pool_actions.yml/not_null_defi__ez_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.defi.ez_dex_liquidity_pool_actions\nwhere LIQUIDITY_PROVIDER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "LIQUIDITY_PROVIDER", "file_key_name": "models.defi__ez_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.defi__ez_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_TOKEN_ADDRESS.f9d0db5e6d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_ADDRESS", "model": "{{ get_where_subquery(ref('defi__ez_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_defi", "name": "not_null_defi__ez_dex_liquidity_pool_actions_TOKEN_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_defi__ez_dex_liquidity_pool_actions_TOKEN_ADDRESS.sql", "original_file_path": "models/curated_package/defi/dex/gold/defi__ez_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_TOKEN_ADDRESS.f9d0db5e6d", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "gold", "not_null_defi__ez_dex_liquidity_pool_actions_TOKEN_ADDRESS"], "alias": "ez_dex_liquidity_pool_actions_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.5405977, "relation_name": "polygon.not_null_defi.ez_dex_liquidity_pool_actions_TOKEN_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defi__ez_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.defi__ez_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/gold/defi__ez_dex_liquidity_pool_actions.yml/not_null_defi__ez_dex_liquidity_pool_actions_TOKEN_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.defi.ez_dex_liquidity_pool_actions\nwhere TOKEN_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ADDRESS", "file_key_name": "models.defi__ez_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.defi__ez_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_AMOUNT_UNADJ.9e24d6b1ba": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_UNADJ", "model": "{{ get_where_subquery(ref('defi__ez_dex_liquidity_pool_actions')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_defi", "name": "not_null_defi__ez_dex_liquidity_pool_actions_AMOUNT_UNADJ", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_defi__ez_dex_liquidity_pool_actions_AMOUNT_UNADJ.sql", "original_file_path": "models/curated_package/defi/dex/gold/defi__ez_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_AMOUNT_UNADJ.9e24d6b1ba", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "gold", "not_null_defi__ez_dex_liquidity_pool_actions_AMOUNT_UNADJ"], "alias": "ez_dex_liquidity_pool_actions_AMOUNT_UNADJ", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.5427532, "relation_name": "polygon.not_null_defi.ez_dex_liquidity_pool_actions_AMOUNT_UNADJ", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defi__ez_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.defi__ez_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/gold/defi__ez_dex_liquidity_pool_actions.yml/not_null_defi__ez_dex_liquidity_pool_actions_AMOUNT_UNADJ.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.defi.ez_dex_liquidity_pool_actions\nwhere AMOUNT_UNADJ is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_UNADJ", "file_key_name": "models.defi__ez_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.defi__ez_dex_liquidity_pool_actions"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_defi__ez_dex_liquidity_pool_actions_ez_dex_liquidity_pool_actions_id.83a111c26f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ez_dex_liquidity_pool_actions_id"], "model": "{{ get_where_subquery(ref('defi__ez_dex_liquidity_pool_actions')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_defi", "name": "dbt_utils_unique_combination_of_columns_defi__ez_dex_liquidity_pool_actions_ez_dex_liquidity_pool_actions_id", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_b718f5d5f21ee4120aecef44e43aa74b.sql", "original_file_path": "models/curated_package/defi/dex/gold/defi__ez_dex_liquidity_pool_actions.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_defi__ez_dex_liquidity_pool_actions_ez_dex_liquidity_pool_actions_id.83a111c26f", "fqn": ["fsc_evm", "curated_package", "defi", "dex", "gold", "dbt_utils_unique_combination_of_columns_defi__ez_dex_liquidity_pool_actions_ez_dex_liquidity_pool_actions_id"], "alias": "ez_dex_liquidity_pool_actions_ez_dex_liquidity_pool_actions_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b718f5d5f21ee4120aecef44e43aa74b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b718f5d5f21ee4120aecef44e43aa74b", "store_failures": true}, "created_at": 1764018441.5448942, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_defi.ez_dex_liquidity_pool_actions_ez_dex_liquidity_pool_actions_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b718f5d5f21ee4120aecef44e43aa74b\") }}", "language": "sql", "refs": [{"name": "defi__ez_dex_liquidity_pool_actions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.defi__ez_dex_liquidity_pool_actions"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/dex/gold/defi__ez_dex_liquidity_pool_actions.yml/dbt_utils_unique_combination_o_b718f5d5f21ee4120aecef44e43aa74b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ez_dex_liquidity_pool_actions_id\n from polygon.defi.ez_dex_liquidity_pool_actions\n group by ez_dex_liquidity_pool_actions_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.defi__ez_dex_liquidity_pool_actions", "attached_node": "model.fsc_evm.defi__ez_dex_liquidity_pool_actions"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TX_HASH.63627cc126": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_borrows_TX_HASH.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TX_HASH.63627cc126", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_TX_HASH"], "alias": "complete_lending_borrows_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.5546405, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__complete_lending_borrows_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_borrows\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BLOCK_NUMBER.09147e3ec0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_borrows_BLOCK_NUMBER.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BLOCK_NUMBER.09147e3ec0", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_BLOCK_NUMBER"], "alias": "complete_lending_borrows_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.5571344, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__complete_lending_borrows_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_borrows\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BLOCK_TIMESTAMP.d5aef20d26": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_39fa80cacd0c62f5e1263e11ecc569a3.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BLOCK_TIMESTAMP.d5aef20d26", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_BLOCK_TIMESTAMP"], "alias": "complete_lending_borrows_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_39fa80cacd0c62f5e1263e11ecc569a3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_39fa80cacd0c62f5e1263e11ecc569a3", "store_failures": true}, "created_at": 1764018441.5592828, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_39fa80cacd0c62f5e1263e11ecc569a3\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__compl_39fa80cacd0c62f5e1263e11ecc569a3.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_borrows\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_borrows_BLOCK_TIMESTAMP__day__3.91c4dcedc7": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 3, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver_lending", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_borrows_BLOCK_TIMESTAMP__day__3", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_1077a7981032834abfb5cbd11245546b.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_borrows_BLOCK_TIMESTAMP__day__3.91c4dcedc7", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_borrows_BLOCK_TIMESTAMP__day__3"], "alias": "complete_lending_borrows_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_1077a7981032834abfb5cbd11245546b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_1077a7981032834abfb5cbd11245546b", "store_failures": true}, "created_at": 1764018441.561423, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending.complete_lending_borrows_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_1077a7981032834abfb5cbd11245546b\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/dbt_expectations_expect_row_va_1077a7981032834abfb5cbd11245546b.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver_lending.complete_lending_borrows\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_EVENT_INDEX.702306f3d9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_borrows_EVENT_INDEX.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_EVENT_INDEX.702306f3d9", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_EVENT_INDEX"], "alias": "complete_lending_borrows_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "PLATFORM <> 'morpho-v1'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "PLATFORM <> 'morpho-v1'", "store_failures": true}, "created_at": 1764018441.5699394, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"PLATFORM <> 'morpho-v1'\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__complete_lending_borrows_EVENT_INDEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_borrows where PLATFORM <> 'morpho-v1') dbt_subquery\nwhere EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_ORIGIN_FROM_ADDRESS.3c02ef2628": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_d4ad2dd8d3e9d7a589ae145adfdb2959.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_ORIGIN_FROM_ADDRESS.3c02ef2628", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_ORIGIN_FROM_ADDRESS"], "alias": "complete_lending_borrows_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_d4ad2dd8d3e9d7a589ae145adfdb2959", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_d4ad2dd8d3e9d7a589ae145adfdb2959", "store_failures": true}, "created_at": 1764018441.5722058, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_d4ad2dd8d3e9d7a589ae145adfdb2959\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__compl_d4ad2dd8d3e9d7a589ae145adfdb2959.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_borrows\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_ORIGIN_FUNCTION_SIGNATURE.b43268ea6c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_f9d03e85892f553c97358d42b963bef1.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_ORIGIN_FUNCTION_SIGNATURE.b43268ea6c", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_ORIGIN_FUNCTION_SIGNATURE"], "alias": "complete_lending_borrows_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_f9d03e85892f553c97358d42b963bef1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_f9d03e85892f553c97358d42b963bef1", "store_failures": true}, "created_at": 1764018441.574348, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_f9d03e85892f553c97358d42b963bef1\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__compl_f9d03e85892f553c97358d42b963bef1.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_borrows\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_CONTRACT_ADDRESS.c32c5ad863": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_94bb90bd2bd7f15f60a7b85b644b1574.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_CONTRACT_ADDRESS.c32c5ad863", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_CONTRACT_ADDRESS"], "alias": "complete_lending_borrows_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_94bb90bd2bd7f15f60a7b85b644b1574", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_94bb90bd2bd7f15f60a7b85b644b1574", "store_failures": true}, "created_at": 1764018441.5767417, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_94bb90bd2bd7f15f60a7b85b644b1574\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__compl_94bb90bd2bd7f15f60a7b85b644b1574.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_borrows\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_EVENT_NAME.c17f59a2a8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_NAME", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_EVENT_NAME", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_borrows_EVENT_NAME.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_EVENT_NAME.c17f59a2a8", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_EVENT_NAME"], "alias": "complete_lending_borrows_EVENT_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.5788379, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_EVENT_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__complete_lending_borrows_EVENT_NAME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_borrows\nwhere EVENT_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_NAME", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BORROWER.887a479a91": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BORROWER", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_BORROWER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_borrows_BORROWER.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BORROWER.887a479a91", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_BORROWER"], "alias": "complete_lending_borrows_BORROWER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.5809567, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_BORROWER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__complete_lending_borrows_BORROWER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_borrows\nwhere BORROWER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BORROWER", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PROTOCOL_MARKET.2cdfbbc5f5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROTOCOL_MARKET", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_PROTOCOL_MARKET", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_6652a46ed1d7ed2148e5b98cfbb33471.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PROTOCOL_MARKET.2cdfbbc5f5", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_PROTOCOL_MARKET"], "alias": "complete_lending_borrows_PROTOCOL_MARKET", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_6652a46ed1d7ed2148e5b98cfbb33471", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_6652a46ed1d7ed2148e5b98cfbb33471", "store_failures": true}, "created_at": 1764018441.5830746, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_PROTOCOL_MARKET", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_6652a46ed1d7ed2148e5b98cfbb33471\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__compl_6652a46ed1d7ed2148e5b98cfbb33471.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_borrows\nwhere PROTOCOL_MARKET is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROTOCOL_MARKET", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TOKEN_ADDRESS.d31d215fbe": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_ADDRESS", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_TOKEN_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_borrows_TOKEN_ADDRESS.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TOKEN_ADDRESS.d31d215fbe", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_TOKEN_ADDRESS"], "alias": "complete_lending_borrows_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.5852344, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_TOKEN_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__complete_lending_borrows_TOKEN_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_borrows\nwhere TOKEN_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ADDRESS", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TOKEN_SYMBOL.d074b06159": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_SYMBOL", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_TOKEN_SYMBOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_borrows_TOKEN_SYMBOL.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TOKEN_SYMBOL.d074b06159", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_TOKEN_SYMBOL"], "alias": "complete_lending_borrows_TOKEN_SYMBOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "store_failures": true}, "created_at": 1764018441.5878446, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_TOKEN_SYMBOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"_inserted_timestamp < SYSDATE() - INTERVAL '7 days'\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__complete_lending_borrows_TOKEN_SYMBOL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_borrows where _inserted_timestamp < SYSDATE() - INTERVAL '7 days') dbt_subquery\nwhere TOKEN_SYMBOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_SYMBOL", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_AMOUNT_UNADJ.7747f27c90": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_UNADJ", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_AMOUNT_UNADJ", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_borrows_AMOUNT_UNADJ.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_AMOUNT_UNADJ.7747f27c90", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_AMOUNT_UNADJ"], "alias": "complete_lending_borrows_AMOUNT_UNADJ", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.5902643, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_AMOUNT_UNADJ", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__complete_lending_borrows_AMOUNT_UNADJ.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_borrows\nwhere AMOUNT_UNADJ is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_UNADJ", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_AMOUNT.e580c2d507": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_AMOUNT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_borrows_AMOUNT.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_AMOUNT.e580c2d507", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_AMOUNT"], "alias": "complete_lending_borrows_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "store_failures": true}, "created_at": 1764018441.5924792, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_AMOUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"_inserted_timestamp < SYSDATE() - INTERVAL '7 days'\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__complete_lending_borrows_AMOUNT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_borrows where _inserted_timestamp < SYSDATE() - INTERVAL '7 days') dbt_subquery\nwhere AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_borrows_AMOUNT_USD__decimal__float.647d646b83": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["decimal", "float"], "column_name": "AMOUNT_USD", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_borrows_AMOUNT_USD__decimal__float", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_bb8c59049e9457d67a0f544b67bbc2d1.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_borrows_AMOUNT_USD__decimal__float.647d646b83", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_borrows_AMOUNT_USD__decimal__float"], "alias": "complete_lending_borrows_AMOUNT_USD", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_bb8c59049e9457d67a0f544b67bbc2d1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_bb8c59049e9457d67a0f544b67bbc2d1", "store_failures": true}, "created_at": 1764018441.5946014, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending.complete_lending_borrows_AMOUNT_USD", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_bb8c59049e9457d67a0f544b67bbc2d1\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/dbt_expectations_expect_column_bb8c59049e9457d67a0f544b67bbc2d1.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_MARKET' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BORROWER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_UNADJ' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('COMPLETE_LENDING_BORROWS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'AMOUNT_USD'\n and\n relation_column_type not in ('DECIMAL', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_USD", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PLATFORM.f7ad06b21d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_PLATFORM", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_borrows_PLATFORM.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PLATFORM.f7ad06b21d", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_PLATFORM"], "alias": "complete_lending_borrows_PLATFORM", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.6012702, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_PLATFORM", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__complete_lending_borrows_PLATFORM.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_borrows\nwhere PLATFORM is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PROTOCOL.258dc320a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROTOCOL", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_PROTOCOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_borrows_PROTOCOL.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PROTOCOL.258dc320a7", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_PROTOCOL"], "alias": "complete_lending_borrows_PROTOCOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.603386, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_PROTOCOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__complete_lending_borrows_PROTOCOL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_borrows\nwhere PROTOCOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROTOCOL", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_VERSION.bb6550ca9c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VERSION", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_VERSION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_borrows_VERSION.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_VERSION.bb6550ca9c", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_VERSION"], "alias": "complete_lending_borrows_VERSION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.6054628, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_VERSION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__complete_lending_borrows_VERSION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_borrows\nwhere VERSION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VERSION", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_COMPLETE_LENDING_BORROWS_ID.c10561dd4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "COMPLETE_LENDING_BORROWS_ID", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_COMPLETE_LENDING_BORROWS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_8017d090b469a1a0fc7966ea71e8532f.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_COMPLETE_LENDING_BORROWS_ID.c10561dd4e", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_COMPLETE_LENDING_BORROWS_ID"], "alias": "complete_lending_borrows_COMPLETE_LENDING_BORROWS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_8017d090b469a1a0fc7966ea71e8532f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_8017d090b469a1a0fc7966ea71e8532f", "store_failures": true}, "created_at": 1764018441.6075535, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_COMPLETE_LENDING_BORROWS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_8017d090b469a1a0fc7966ea71e8532f\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__compl_8017d090b469a1a0fc7966ea71e8532f.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_borrows\nwhere COMPLETE_LENDING_BORROWS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "COMPLETE_LENDING_BORROWS_ID", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_INSERTED_TIMESTAMP.8c1b12d962": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_aac8fa42ee0b65be6a833e3200532efb.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_INSERTED_TIMESTAMP.8c1b12d962", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_INSERTED_TIMESTAMP"], "alias": "complete_lending_borrows_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_aac8fa42ee0b65be6a833e3200532efb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_aac8fa42ee0b65be6a833e3200532efb", "store_failures": true}, "created_at": 1764018441.609636, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_aac8fa42ee0b65be6a833e3200532efb\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__compl_aac8fa42ee0b65be6a833e3200532efb.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_borrows\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_MODIFIED_TIMESTAMP.4e7d059a7d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_borrows_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_57f3b9ebdf1b9815f6748d51b6d75100.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_MODIFIED_TIMESTAMP.4e7d059a7d", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_borrows_MODIFIED_TIMESTAMP"], "alias": "complete_lending_borrows_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_57f3b9ebdf1b9815f6748d51b6d75100", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_57f3b9ebdf1b9815f6748d51b6d75100", "store_failures": true}, "created_at": 1764018441.6117408, "relation_name": "polygon.not_null_silver_lending.complete_lending_borrows_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_57f3b9ebdf1b9815f6748d51b6d75100\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/not_null_silver_lending__compl_57f3b9ebdf1b9815f6748d51b6d75100.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_borrows\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_borrows__log_id.2a9a480e32": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_log_id"], "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_lending", "name": "dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_borrows__log_id", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_8eabe2d7ee55c7f579f04b04ea810cda.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_borrows__log_id.2a9a480e32", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_borrows__log_id"], "alias": "complete_lending_borrows", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8eabe2d7ee55c7f579f04b04ea810cda", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8eabe2d7ee55c7f579f04b04ea810cda", "store_failures": true}, "created_at": 1764018441.6141872, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_lending.complete_lending_borrows", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8eabe2d7ee55c7f579f04b04ea810cda\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/dbt_utils_unique_combination_o_8eabe2d7ee55c7f579f04b04ea810cda.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _log_id\n from polygon.silver_lending.complete_lending_borrows\n group by _log_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_borrows_7_5__60__lending.bd75ba3a44": {"test_metadata": {"name": "curated_recency_defi", "kwargs": {"threshold_days": 60, "percent_delta_threshold": 7.5, "type": "lending", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_borrows')) }}"}, "namespace": null}, "database": "polygon", "schema": "curated_recency_defi_silver_lending", "name": "curated_recency_defi_silver_lending__complete_lending_borrows_7_5__60__lending", "resource_type": "test", "package_name": "fsc_evm", "path": "curated_recency_defi_silver_le_4ce8482bd5926c609c5666592107bc16.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml", "unique_id": "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_borrows_7_5__60__lending.bd75ba3a44", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "curated_recency_defi_silver_lending__complete_lending_borrows_7_5__60__lending"], "alias": "complete_lending_borrows_7_5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "curated_recency_defi_silver_le_4ce8482bd5926c609c5666592107bc16", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "curated_recency_defi_silver_le_4ce8482bd5926c609c5666592107bc16", "store_failures": true}, "created_at": 1764018441.6196883, "relation_name": "polygon.curated_recency_defi_silver_lending.complete_lending_borrows_7_5", "raw_code": "{{ test_curated_recency_defi(**_dbt_generic_test_kwargs) }}{{ config(alias=\"curated_recency_defi_silver_le_4ce8482bd5926c609c5666592107bc16\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_borrows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_curated_recency_defi", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_borrows"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_borrows.yml/curated_recency_defi_silver_le_4ce8482bd5926c609c5666592107bc16.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH source AS (\n SELECT\n platform,\n MAX(block_timestamp) AS latest_timestamp,\n SYSDATE() AS sys_ts,\n DATEADD('day', -60, SYSDATE()) AS threshold_ts,\n COUNT(\n CASE\n WHEN block_timestamp >= threshold_ts THEN 1 \n END) AS current_period_evt,\n CEIL(\n (\n COUNT(\n CASE\n WHEN block_timestamp >= DATEADD('day', -180, SYSDATE())\n AND block_timestamp < threshold_ts THEN 1\n END\n ) / 150.0\n ) * 30\n ) AS rolling_avg_evt,\n CASE\n WHEN rolling_avg_evt = 0 THEN 0\n ELSE ROUND((current_period_evt / rolling_avg_evt) * 100, 2)\n END AS percent_delta,\n 'lending' AS type\n FROM\n polygon.silver_lending.complete_lending_borrows\n GROUP BY\n 1\n )\n SELECT\n platform,\n latest_timestamp,\n sys_ts,\n threshold_ts,\n current_period_evt,\n rolling_avg_evt,\n percent_delta,\n type\n FROM\n source\n WHERE\n (latest_timestamp < threshold_ts \n OR (percent_delta < 7.5 AND percent_delta <> 0))\n \n AND platform NOT IN ('aave-v2')\n \n-- failure to meet threshold requires manual review to determine if\n-- the protocol has newly deployed contracts, stale contracts, etc.\n-- if this is the case, the test should not apply to the relevant model(s)\n-- percent_delta shows current period performance vs rolling average\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_lending__complete_lending_borrows", "attached_node": "model.fsc_evm.silver_lending__complete_lending_borrows"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TX_HASH.ce8de9e71f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_withdraws_TX_HASH.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TX_HASH.ce8de9e71f", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_TX_HASH"], "alias": "complete_lending_withdraws_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.6691942, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__complete_lending_withdraws_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_withdraws\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_BLOCK_NUMBER.a12c696749": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_485493e15a299c6f57317bfe37ee29dd.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_BLOCK_NUMBER.a12c696749", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_BLOCK_NUMBER"], "alias": "complete_lending_withdraws_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_485493e15a299c6f57317bfe37ee29dd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_485493e15a299c6f57317bfe37ee29dd", "store_failures": true}, "created_at": 1764018441.6714377, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_485493e15a299c6f57317bfe37ee29dd\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__compl_485493e15a299c6f57317bfe37ee29dd.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_withdraws\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_BLOCK_TIMESTAMP.15d8c8cba4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_19900834713818450b87246e284cf917.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_BLOCK_TIMESTAMP.15d8c8cba4", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_BLOCK_TIMESTAMP"], "alias": "complete_lending_withdraws_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_19900834713818450b87246e284cf917", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_19900834713818450b87246e284cf917", "store_failures": true}, "created_at": 1764018441.6735408, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_19900834713818450b87246e284cf917\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__compl_19900834713818450b87246e284cf917.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_withdraws\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_withdraws_BLOCK_TIMESTAMP__day__3.1d64634b58": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 3, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver_lending", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_withdraws_BLOCK_TIMESTAMP__day__3", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_dbd6d3b0722ff1e66246bf3c2da168c9.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_withdraws_BLOCK_TIMESTAMP__day__3.1d64634b58", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_withdraws_BLOCK_TIMESTAMP__day__3"], "alias": "complete_lending_withdraws_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_dbd6d3b0722ff1e66246bf3c2da168c9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_dbd6d3b0722ff1e66246bf3c2da168c9", "store_failures": true}, "created_at": 1764018441.6756232, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending.complete_lending_withdraws_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_dbd6d3b0722ff1e66246bf3c2da168c9\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/dbt_expectations_expect_row_va_dbd6d3b0722ff1e66246bf3c2da168c9.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver_lending.complete_lending_withdraws\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_EVENT_INDEX.4e0de8f75f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_withdraws_EVENT_INDEX.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_EVENT_INDEX.4e0de8f75f", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_EVENT_INDEX"], "alias": "complete_lending_withdraws_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "PLATFORM <> 'morpho-v1'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "PLATFORM <> 'morpho-v1'", "store_failures": true}, "created_at": 1764018441.683531, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"PLATFORM <> 'morpho-v1'\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__complete_lending_withdraws_EVENT_INDEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_withdraws where PLATFORM <> 'morpho-v1') dbt_subquery\nwhere EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_ORIGIN_FROM_ADDRESS.a3d18bde4b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_332f15dcea8d7f0c448e4ccc1370546a.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_ORIGIN_FROM_ADDRESS.a3d18bde4b", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_ORIGIN_FROM_ADDRESS"], "alias": "complete_lending_withdraws_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_332f15dcea8d7f0c448e4ccc1370546a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_332f15dcea8d7f0c448e4ccc1370546a", "store_failures": true}, "created_at": 1764018441.6858883, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_332f15dcea8d7f0c448e4ccc1370546a\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__compl_332f15dcea8d7f0c448e4ccc1370546a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_withdraws\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_ORIGIN_FUNCTION_SIGNATURE.1dc2890452": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_5f958f21ddb3c67b565b11a4465d9ee2.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_ORIGIN_FUNCTION_SIGNATURE.1dc2890452", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_ORIGIN_FUNCTION_SIGNATURE"], "alias": "complete_lending_withdraws_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_5f958f21ddb3c67b565b11a4465d9ee2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_5f958f21ddb3c67b565b11a4465d9ee2", "store_failures": true}, "created_at": 1764018441.688107, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_5f958f21ddb3c67b565b11a4465d9ee2\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__compl_5f958f21ddb3c67b565b11a4465d9ee2.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_withdraws\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_CONTRACT_ADDRESS.2a2bdaa803": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_97869f40fcd997e9474ebecdd076f083.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_CONTRACT_ADDRESS.2a2bdaa803", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_CONTRACT_ADDRESS"], "alias": "complete_lending_withdraws_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_97869f40fcd997e9474ebecdd076f083", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_97869f40fcd997e9474ebecdd076f083", "store_failures": true}, "created_at": 1764018441.690242, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_97869f40fcd997e9474ebecdd076f083\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__compl_97869f40fcd997e9474ebecdd076f083.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_withdraws\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_EVENT_NAME.5db024623b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_NAME", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_EVENT_NAME", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_withdraws_EVENT_NAME.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_EVENT_NAME.5db024623b", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_EVENT_NAME"], "alias": "complete_lending_withdraws_EVENT_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.692373, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_EVENT_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__complete_lending_withdraws_EVENT_NAME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_withdraws\nwhere EVENT_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_NAME", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PROTOCOL_MARKET.6642e840fc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROTOCOL_MARKET", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_PROTOCOL_MARKET", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_12675d2701c23b25c375cff0bb233f7f.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PROTOCOL_MARKET.6642e840fc", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_PROTOCOL_MARKET"], "alias": "complete_lending_withdraws_PROTOCOL_MARKET", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_12675d2701c23b25c375cff0bb233f7f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_12675d2701c23b25c375cff0bb233f7f", "store_failures": true}, "created_at": 1764018441.6946204, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_PROTOCOL_MARKET", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_12675d2701c23b25c375cff0bb233f7f\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__compl_12675d2701c23b25c375cff0bb233f7f.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_withdraws\nwhere PROTOCOL_MARKET is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROTOCOL_MARKET", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_DEPOSITOR.aa4643edf2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DEPOSITOR", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_DEPOSITOR", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_withdraws_DEPOSITOR.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_DEPOSITOR.aa4643edf2", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_DEPOSITOR"], "alias": "complete_lending_withdraws_DEPOSITOR", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.6967115, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_DEPOSITOR", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__complete_lending_withdraws_DEPOSITOR.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_withdraws\nwhere DEPOSITOR is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DEPOSITOR", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TOKEN_ADDRESS.261f8cbdbe": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_ADDRESS", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_TOKEN_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_0fb284419b84cde0cf711c5cf4c5c5de.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TOKEN_ADDRESS.261f8cbdbe", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_TOKEN_ADDRESS"], "alias": "complete_lending_withdraws_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_0fb284419b84cde0cf711c5cf4c5c5de", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_0fb284419b84cde0cf711c5cf4c5c5de", "store_failures": true}, "created_at": 1764018441.6988058, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_TOKEN_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_0fb284419b84cde0cf711c5cf4c5c5de\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__compl_0fb284419b84cde0cf711c5cf4c5c5de.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_withdraws\nwhere TOKEN_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ADDRESS", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TOKEN_SYMBOL.d60b5cda5a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_SYMBOL", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_TOKEN_SYMBOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_fb0ace29bec7eaeb16c0a721b4003160.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TOKEN_SYMBOL.d60b5cda5a", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_TOKEN_SYMBOL"], "alias": "complete_lending_withdraws_TOKEN_SYMBOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_fb0ace29bec7eaeb16c0a721b4003160", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_fb0ace29bec7eaeb16c0a721b4003160", "where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "store_failures": true}, "created_at": 1764018441.7012963, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_TOKEN_SYMBOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"_inserted_timestamp < SYSDATE() - INTERVAL '7 days'\",alias=\"not_null_silver_lending__compl_fb0ace29bec7eaeb16c0a721b4003160\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__compl_fb0ace29bec7eaeb16c0a721b4003160.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_withdraws where _inserted_timestamp < SYSDATE() - INTERVAL '7 days') dbt_subquery\nwhere TOKEN_SYMBOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_SYMBOL", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_AMOUNT_UNADJ.5b85a0643a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_UNADJ", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_AMOUNT_UNADJ", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_b1b777253ff45f7a02838047b4abfe2f.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_AMOUNT_UNADJ.5b85a0643a", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_AMOUNT_UNADJ"], "alias": "complete_lending_withdraws_AMOUNT_UNADJ", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_b1b777253ff45f7a02838047b4abfe2f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_b1b777253ff45f7a02838047b4abfe2f", "store_failures": true}, "created_at": 1764018441.7034297, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_AMOUNT_UNADJ", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_b1b777253ff45f7a02838047b4abfe2f\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__compl_b1b777253ff45f7a02838047b4abfe2f.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_withdraws\nwhere AMOUNT_UNADJ is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_UNADJ", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_AMOUNT.ef1dc64c3e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_AMOUNT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_withdraws_AMOUNT.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_AMOUNT.ef1dc64c3e", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_AMOUNT"], "alias": "complete_lending_withdraws_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "store_failures": true}, "created_at": 1764018441.7055311, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_AMOUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"_inserted_timestamp < SYSDATE() - INTERVAL '7 days'\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__complete_lending_withdraws_AMOUNT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_withdraws where _inserted_timestamp < SYSDATE() - INTERVAL '7 days') dbt_subquery\nwhere AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_withdraws_AMOUNT_USD__decimal__float.c62808382c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["decimal", "float"], "column_name": "AMOUNT_USD", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_withdraws_AMOUNT_USD__decimal__float", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_0bb7d0ca294ee265ca986fec4703a576.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_withdraws_AMOUNT_USD__decimal__float.c62808382c", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_withdraws_AMOUNT_USD__decimal__float"], "alias": "complete_lending_withdraws_AMOUNT_USD", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0bb7d0ca294ee265ca986fec4703a576", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0bb7d0ca294ee265ca986fec4703a576", "store_failures": true}, "created_at": 1764018441.7076967, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending.complete_lending_withdraws_AMOUNT_USD", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0bb7d0ca294ee265ca986fec4703a576\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/dbt_expectations_expect_column_0bb7d0ca294ee265ca986fec4703a576.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_MARKET' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_UNADJ' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('COMPLETE_LENDING_WITHDRAWS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'AMOUNT_USD'\n and\n relation_column_type not in ('DECIMAL', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_USD", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PLATFORM.e9a5a0f900": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_PLATFORM", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_withdraws_PLATFORM.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PLATFORM.e9a5a0f900", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_PLATFORM"], "alias": "complete_lending_withdraws_PLATFORM", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.7131622, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_PLATFORM", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__complete_lending_withdraws_PLATFORM.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_withdraws\nwhere PLATFORM is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PROTOCOL.a8b7ac43d6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROTOCOL", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_PROTOCOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_withdraws_PROTOCOL.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PROTOCOL.a8b7ac43d6", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_PROTOCOL"], "alias": "complete_lending_withdraws_PROTOCOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.7153265, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_PROTOCOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__complete_lending_withdraws_PROTOCOL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_withdraws\nwhere PROTOCOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROTOCOL", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_VERSION.fcaf60d697": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VERSION", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_VERSION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_withdraws_VERSION.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_VERSION.fcaf60d697", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_VERSION"], "alias": "complete_lending_withdraws_VERSION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.7174516, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_VERSION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__complete_lending_withdraws_VERSION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_withdraws\nwhere VERSION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VERSION", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_COMPLETE_LENDING_WITHDRAWS_ID.681b4aa48b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "COMPLETE_LENDING_WITHDRAWS_ID", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_COMPLETE_LENDING_WITHDRAWS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_18ebaf826578aa8dcf5d02664fbe8da1.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_COMPLETE_LENDING_WITHDRAWS_ID.681b4aa48b", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_COMPLETE_LENDING_WITHDRAWS_ID"], "alias": "complete_lending_withdraws_COMPLETE_LENDING_WITHDRAWS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_18ebaf826578aa8dcf5d02664fbe8da1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_18ebaf826578aa8dcf5d02664fbe8da1", "store_failures": true}, "created_at": 1764018441.719586, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_COMPLETE_LENDING_WITHDRAWS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_18ebaf826578aa8dcf5d02664fbe8da1\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__compl_18ebaf826578aa8dcf5d02664fbe8da1.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_withdraws\nwhere COMPLETE_LENDING_WITHDRAWS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "COMPLETE_LENDING_WITHDRAWS_ID", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_INSERTED_TIMESTAMP.561d35461f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_0ec37240914aaaf446caf3c049bafb0e.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_INSERTED_TIMESTAMP.561d35461f", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_INSERTED_TIMESTAMP"], "alias": "complete_lending_withdraws_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_0ec37240914aaaf446caf3c049bafb0e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_0ec37240914aaaf446caf3c049bafb0e", "store_failures": true}, "created_at": 1764018441.7216742, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_0ec37240914aaaf446caf3c049bafb0e\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__compl_0ec37240914aaaf446caf3c049bafb0e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_withdraws\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_MODIFIED_TIMESTAMP.c3e30f98e5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_withdraws_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_9f017da74954fa054482f20b3c1627d1.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_MODIFIED_TIMESTAMP.c3e30f98e5", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_withdraws_MODIFIED_TIMESTAMP"], "alias": "complete_lending_withdraws_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_9f017da74954fa054482f20b3c1627d1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_9f017da74954fa054482f20b3c1627d1", "store_failures": true}, "created_at": 1764018441.7237546, "relation_name": "polygon.not_null_silver_lending.complete_lending_withdraws_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_9f017da74954fa054482f20b3c1627d1\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/not_null_silver_lending__compl_9f017da74954fa054482f20b3c1627d1.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_withdraws\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_withdraws__LOG_ID.7cfc5aa030": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_LOG_ID"], "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_lending", "name": "dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_withdraws__LOG_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_8a0edd12c40a39dba2cf3950e704654f.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_withdraws__LOG_ID.7cfc5aa030", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_withdraws__LOG_ID"], "alias": "complete_lending_withdraws", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8a0edd12c40a39dba2cf3950e704654f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8a0edd12c40a39dba2cf3950e704654f", "store_failures": true}, "created_at": 1764018441.726153, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_lending.complete_lending_withdraws", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8a0edd12c40a39dba2cf3950e704654f\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/dbt_utils_unique_combination_o_8a0edd12c40a39dba2cf3950e704654f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _LOG_ID\n from polygon.silver_lending.complete_lending_withdraws\n group by _LOG_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_withdraws_7_5__60__lending.23f1446d50": {"test_metadata": {"name": "curated_recency_defi", "kwargs": {"threshold_days": 60, "percent_delta_threshold": 7.5, "type": "lending", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_withdraws')) }}"}, "namespace": null}, "database": "polygon", "schema": "curated_recency_defi_silver_lending", "name": "curated_recency_defi_silver_lending__complete_lending_withdraws_7_5__60__lending", "resource_type": "test", "package_name": "fsc_evm", "path": "curated_recency_defi_silver_le_b84f4548d92158e37f1cfa7e1bfb2f61.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml", "unique_id": "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_withdraws_7_5__60__lending.23f1446d50", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "curated_recency_defi_silver_lending__complete_lending_withdraws_7_5__60__lending"], "alias": "complete_lending_withdraws_7_5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "curated_recency_defi_silver_le_b84f4548d92158e37f1cfa7e1bfb2f61", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "curated_recency_defi_silver_le_b84f4548d92158e37f1cfa7e1bfb2f61", "store_failures": true}, "created_at": 1764018441.731262, "relation_name": "polygon.curated_recency_defi_silver_lending.complete_lending_withdraws_7_5", "raw_code": "{{ test_curated_recency_defi(**_dbt_generic_test_kwargs) }}{{ config(alias=\"curated_recency_defi_silver_le_b84f4548d92158e37f1cfa7e1bfb2f61\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_withdraws", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_curated_recency_defi", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_withdraws"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_withdraws.yml/curated_recency_defi_silver_le_b84f4548d92158e37f1cfa7e1bfb2f61.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH source AS (\n SELECT\n platform,\n MAX(block_timestamp) AS latest_timestamp,\n SYSDATE() AS sys_ts,\n DATEADD('day', -60, SYSDATE()) AS threshold_ts,\n COUNT(\n CASE\n WHEN block_timestamp >= threshold_ts THEN 1 \n END) AS current_period_evt,\n CEIL(\n (\n COUNT(\n CASE\n WHEN block_timestamp >= DATEADD('day', -180, SYSDATE())\n AND block_timestamp < threshold_ts THEN 1\n END\n ) / 150.0\n ) * 30\n ) AS rolling_avg_evt,\n CASE\n WHEN rolling_avg_evt = 0 THEN 0\n ELSE ROUND((current_period_evt / rolling_avg_evt) * 100, 2)\n END AS percent_delta,\n 'lending' AS type\n FROM\n polygon.silver_lending.complete_lending_withdraws\n GROUP BY\n 1\n )\n SELECT\n platform,\n latest_timestamp,\n sys_ts,\n threshold_ts,\n current_period_evt,\n rolling_avg_evt,\n percent_delta,\n type\n FROM\n source\n WHERE\n (latest_timestamp < threshold_ts \n OR (percent_delta < 7.5 AND percent_delta <> 0))\n \n AND platform NOT IN ('aave-v2')\n \n-- failure to meet threshold requires manual review to determine if\n-- the protocol has newly deployed contracts, stale contracts, etc.\n-- if this is the case, the test should not apply to the relevant model(s)\n-- percent_delta shows current period performance vs rolling average\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_lending__complete_lending_withdraws", "attached_node": "model.fsc_evm.silver_lending__complete_lending_withdraws"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TX_HASH.d3201d95e2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_flashloans_TX_HASH.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TX_HASH.d3201d95e2", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_TX_HASH"], "alias": "complete_lending_flashloans_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.7830398, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__complete_lending_flashloans_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_BLOCK_NUMBER.2c9a0f6061": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_ecf2a2439d0f91304bd03a369aa9dc80.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_BLOCK_NUMBER.2c9a0f6061", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_BLOCK_NUMBER"], "alias": "complete_lending_flashloans_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_ecf2a2439d0f91304bd03a369aa9dc80", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_ecf2a2439d0f91304bd03a369aa9dc80", "store_failures": true}, "created_at": 1764018441.785374, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_ecf2a2439d0f91304bd03a369aa9dc80\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__compl_ecf2a2439d0f91304bd03a369aa9dc80.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_BLOCK_TIMESTAMP.1a905291e9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_8605e8fd0ed0a1b14f617be53adc6506.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_BLOCK_TIMESTAMP.1a905291e9", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_BLOCK_TIMESTAMP"], "alias": "complete_lending_flashloans_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_8605e8fd0ed0a1b14f617be53adc6506", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_8605e8fd0ed0a1b14f617be53adc6506", "store_failures": true}, "created_at": 1764018441.7876315, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_8605e8fd0ed0a1b14f617be53adc6506\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__compl_8605e8fd0ed0a1b14f617be53adc6506.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_flashloans_BLOCK_TIMESTAMP__day__14.c97c4e6a21": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 14, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver_lending", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_flashloans_BLOCK_TIMESTAMP__day__14", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_d3a8395e6f3f3f3de980d5c986ebf8b0.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_flashloans_BLOCK_TIMESTAMP__day__14.c97c4e6a21", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_flashloans_BLOCK_TIMESTAMP__day__14"], "alias": "complete_lending_flashloans_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_d3a8395e6f3f3f3de980d5c986ebf8b0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_d3a8395e6f3f3f3de980d5c986ebf8b0", "store_failures": true}, "created_at": 1764018441.7897167, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending.complete_lending_flashloans_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_d3a8395e6f3f3f3de980d5c986ebf8b0\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/dbt_expectations_expect_row_va_d3a8395e6f3f3f3de980d5c986ebf8b0.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver_lending.complete_lending_flashloans\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -14,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_EVENT_INDEX.d256b8467f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_7c894a70fc315a002ecc760107860058.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_EVENT_INDEX.d256b8467f", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_EVENT_INDEX"], "alias": "complete_lending_flashloans_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_7c894a70fc315a002ecc760107860058", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "PLATFORM <> 'morpho-v1'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_7c894a70fc315a002ecc760107860058", "where": "PLATFORM <> 'morpho-v1'", "store_failures": true}, "created_at": 1764018441.7976425, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"PLATFORM <> 'morpho-v1'\",alias=\"not_null_silver_lending__compl_7c894a70fc315a002ecc760107860058\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__compl_7c894a70fc315a002ecc760107860058.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_flashloans where PLATFORM <> 'morpho-v1') dbt_subquery\nwhere EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_ORIGIN_FROM_ADDRESS.9104eb297b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_461214cb91bc28dd7e7c3766bcf5ba6e.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_ORIGIN_FROM_ADDRESS.9104eb297b", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_ORIGIN_FROM_ADDRESS"], "alias": "complete_lending_flashloans_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_461214cb91bc28dd7e7c3766bcf5ba6e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_461214cb91bc28dd7e7c3766bcf5ba6e", "store_failures": true}, "created_at": 1764018441.7997622, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_461214cb91bc28dd7e7c3766bcf5ba6e\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__compl_461214cb91bc28dd7e7c3766bcf5ba6e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_ORIGIN_FUNCTION_SIGNATURE.8ad33ea363": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_312c51b956bc70443c30a35c6209906b.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_ORIGIN_FUNCTION_SIGNATURE.8ad33ea363", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_ORIGIN_FUNCTION_SIGNATURE"], "alias": "complete_lending_flashloans_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_312c51b956bc70443c30a35c6209906b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_312c51b956bc70443c30a35c6209906b", "store_failures": true}, "created_at": 1764018441.801894, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_312c51b956bc70443c30a35c6209906b\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__compl_312c51b956bc70443c30a35c6209906b.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_CONTRACT_ADDRESS.d2763e9c60": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_a2f96813e0a799d82a09e6147df625da.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_CONTRACT_ADDRESS.d2763e9c60", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_CONTRACT_ADDRESS"], "alias": "complete_lending_flashloans_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_a2f96813e0a799d82a09e6147df625da", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_a2f96813e0a799d82a09e6147df625da", "store_failures": true}, "created_at": 1764018441.8040164, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_a2f96813e0a799d82a09e6147df625da\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__compl_a2f96813e0a799d82a09e6147df625da.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_EVENT_NAME.36bdd6ecae": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_NAME", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_EVENT_NAME", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_flashloans_EVENT_NAME.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_EVENT_NAME.36bdd6ecae", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_EVENT_NAME"], "alias": "complete_lending_flashloans_EVENT_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.8061025, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_EVENT_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__complete_lending_flashloans_EVENT_NAME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere EVENT_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_NAME", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PROTOCOL_MARKET.fba78b0f77": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROTOCOL_MARKET", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_PROTOCOL_MARKET", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_697235a58d486392c84cce5addfbe0a3.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PROTOCOL_MARKET.fba78b0f77", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_PROTOCOL_MARKET"], "alias": "complete_lending_flashloans_PROTOCOL_MARKET", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_697235a58d486392c84cce5addfbe0a3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_697235a58d486392c84cce5addfbe0a3", "store_failures": true}, "created_at": 1764018441.8085294, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_PROTOCOL_MARKET", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_697235a58d486392c84cce5addfbe0a3\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__compl_697235a58d486392c84cce5addfbe0a3.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere PROTOCOL_MARKET is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROTOCOL_MARKET", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_INITIATOR.bb1dc79f33": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INITIATOR", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_INITIATOR", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_flashloans_INITIATOR.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_INITIATOR.bb1dc79f33", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_INITIATOR"], "alias": "complete_lending_flashloans_INITIATOR", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.8106298, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_INITIATOR", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__complete_lending_flashloans_INITIATOR.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere INITIATOR is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INITIATOR", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TARGET.f29f9844aa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TARGET", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_TARGET", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_flashloans_TARGET.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TARGET.f29f9844aa", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_TARGET"], "alias": "complete_lending_flashloans_TARGET", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "PLATFORM <> 'morpho-v1'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "PLATFORM <> 'morpho-v1'", "store_failures": true}, "created_at": 1764018441.8127253, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_TARGET", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"PLATFORM <> 'morpho-v1'\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__complete_lending_flashloans_TARGET.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_flashloans where PLATFORM <> 'morpho-v1') dbt_subquery\nwhere TARGET is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TARGET", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TOKEN_ADDRESS.cfb727a837": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_ADDRESS", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_TOKEN_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_fb471615b5fdee75e8b12286b3c184e2.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TOKEN_ADDRESS.cfb727a837", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_TOKEN_ADDRESS"], "alias": "complete_lending_flashloans_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_fb471615b5fdee75e8b12286b3c184e2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_fb471615b5fdee75e8b12286b3c184e2", "store_failures": true}, "created_at": 1764018441.814819, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_TOKEN_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_fb471615b5fdee75e8b12286b3c184e2\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__compl_fb471615b5fdee75e8b12286b3c184e2.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere TOKEN_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ADDRESS", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TOKEN_SYMBOL.893469d047": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_SYMBOL", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_TOKEN_SYMBOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_8d76b4df19927ae8eb8fc51d3d72e86e.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TOKEN_SYMBOL.893469d047", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_TOKEN_SYMBOL"], "alias": "complete_lending_flashloans_TOKEN_SYMBOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_8d76b4df19927ae8eb8fc51d3d72e86e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_8d76b4df19927ae8eb8fc51d3d72e86e", "store_failures": true}, "created_at": 1764018441.8169172, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_TOKEN_SYMBOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_8d76b4df19927ae8eb8fc51d3d72e86e\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__compl_8d76b4df19927ae8eb8fc51d3d72e86e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere TOKEN_SYMBOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_SYMBOL", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_FLASHLOAN_AMOUNT_UNADJ.50ea108e62": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FLASHLOAN_AMOUNT_UNADJ", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_FLASHLOAN_AMOUNT_UNADJ", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_6753b4b32278d4839565535f6e6aea27.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_FLASHLOAN_AMOUNT_UNADJ.50ea108e62", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_FLASHLOAN_AMOUNT_UNADJ"], "alias": "complete_lending_flashloans_FLASHLOAN_AMOUNT_UNADJ", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_6753b4b32278d4839565535f6e6aea27", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_6753b4b32278d4839565535f6e6aea27", "store_failures": true}, "created_at": 1764018441.8190193, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_FLASHLOAN_AMOUNT_UNADJ", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_6753b4b32278d4839565535f6e6aea27\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__compl_6753b4b32278d4839565535f6e6aea27.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere FLASHLOAN_AMOUNT_UNADJ is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FLASHLOAN_AMOUNT_UNADJ", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_FLASHLOAN_AMOUNT.feaeeedf41": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FLASHLOAN_AMOUNT", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_FLASHLOAN_AMOUNT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_c84494afd9629f7f0075795a70dbb083.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_FLASHLOAN_AMOUNT.feaeeedf41", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_FLASHLOAN_AMOUNT"], "alias": "complete_lending_flashloans_FLASHLOAN_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_c84494afd9629f7f0075795a70dbb083", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_c84494afd9629f7f0075795a70dbb083", "store_failures": true}, "created_at": 1764018441.8213956, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_FLASHLOAN_AMOUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_c84494afd9629f7f0075795a70dbb083\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__compl_c84494afd9629f7f0075795a70dbb083.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere FLASHLOAN_AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FLASHLOAN_AMOUNT", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PREMIUM_AMOUNT_UNADJ.9afaa927d7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PREMIUM_AMOUNT_UNADJ", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_PREMIUM_AMOUNT_UNADJ", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_278207a9596e3270e1b566608dc77a80.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PREMIUM_AMOUNT_UNADJ.9afaa927d7", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_PREMIUM_AMOUNT_UNADJ"], "alias": "complete_lending_flashloans_PREMIUM_AMOUNT_UNADJ", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_278207a9596e3270e1b566608dc77a80", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "PLATFORM <> 'morpho-v1'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_278207a9596e3270e1b566608dc77a80", "where": "PLATFORM <> 'morpho-v1'", "store_failures": true}, "created_at": 1764018441.823534, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_PREMIUM_AMOUNT_UNADJ", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"PLATFORM <> 'morpho-v1'\",alias=\"not_null_silver_lending__compl_278207a9596e3270e1b566608dc77a80\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__compl_278207a9596e3270e1b566608dc77a80.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_flashloans where PLATFORM <> 'morpho-v1') dbt_subquery\nwhere PREMIUM_AMOUNT_UNADJ is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PREMIUM_AMOUNT_UNADJ", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PREMIUM_AMOUNT.e9f3cbad34": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PREMIUM_AMOUNT", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_PREMIUM_AMOUNT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_af42b4c4447d9cb3ffcee9ce8fbceda3.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PREMIUM_AMOUNT.e9f3cbad34", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_PREMIUM_AMOUNT"], "alias": "complete_lending_flashloans_PREMIUM_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_af42b4c4447d9cb3ffcee9ce8fbceda3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "PLATFORM <> 'morpho-v1'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_af42b4c4447d9cb3ffcee9ce8fbceda3", "where": "PLATFORM <> 'morpho-v1'", "store_failures": true}, "created_at": 1764018441.825647, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_PREMIUM_AMOUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"PLATFORM <> 'morpho-v1'\",alias=\"not_null_silver_lending__compl_af42b4c4447d9cb3ffcee9ce8fbceda3\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__compl_af42b4c4447d9cb3ffcee9ce8fbceda3.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_flashloans where PLATFORM <> 'morpho-v1') dbt_subquery\nwhere PREMIUM_AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PREMIUM_AMOUNT", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PLATFORM.56c21f121c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_PLATFORM", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_flashloans_PLATFORM.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PLATFORM.56c21f121c", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_PLATFORM"], "alias": "complete_lending_flashloans_PLATFORM", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.8277194, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_PLATFORM", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__complete_lending_flashloans_PLATFORM.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere PLATFORM is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PROTOCOL.a5f672795f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROTOCOL", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_PROTOCOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_flashloans_PROTOCOL.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PROTOCOL.a5f672795f", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_PROTOCOL"], "alias": "complete_lending_flashloans_PROTOCOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.8298094, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_PROTOCOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__complete_lending_flashloans_PROTOCOL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere PROTOCOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROTOCOL", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_VERSION.46458e3611": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VERSION", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_VERSION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_flashloans_VERSION.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_VERSION.46458e3611", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_VERSION"], "alias": "complete_lending_flashloans_VERSION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.8319137, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_VERSION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__complete_lending_flashloans_VERSION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere VERSION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VERSION", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_COMPLETE_LENDING_FLASHLOANS_ID.f37672ef97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "COMPLETE_LENDING_FLASHLOANS_ID", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_COMPLETE_LENDING_FLASHLOANS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_fc949f6165603223b3fd7383f3111736.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_COMPLETE_LENDING_FLASHLOANS_ID.f37672ef97", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_COMPLETE_LENDING_FLASHLOANS_ID"], "alias": "complete_lending_flashloans_COMPLETE_LENDING_FLASHLOANS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_fc949f6165603223b3fd7383f3111736", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_fc949f6165603223b3fd7383f3111736", "store_failures": true}, "created_at": 1764018441.8339884, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_COMPLETE_LENDING_FLASHLOANS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_fc949f6165603223b3fd7383f3111736\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__compl_fc949f6165603223b3fd7383f3111736.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere COMPLETE_LENDING_FLASHLOANS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "COMPLETE_LENDING_FLASHLOANS_ID", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_INSERTED_TIMESTAMP.a267ad91be": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_589f47a314c03cdf5678ad69220ae09f.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_INSERTED_TIMESTAMP.a267ad91be", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_INSERTED_TIMESTAMP"], "alias": "complete_lending_flashloans_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_589f47a314c03cdf5678ad69220ae09f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_589f47a314c03cdf5678ad69220ae09f", "store_failures": true}, "created_at": 1764018441.8363354, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_589f47a314c03cdf5678ad69220ae09f\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__compl_589f47a314c03cdf5678ad69220ae09f.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_MODIFIED_TIMESTAMP.c7ad718c6f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_flashloans_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_808824d7ff21ed2cea74958f8d039498.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_MODIFIED_TIMESTAMP.c7ad718c6f", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_flashloans_MODIFIED_TIMESTAMP"], "alias": "complete_lending_flashloans_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_808824d7ff21ed2cea74958f8d039498", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_808824d7ff21ed2cea74958f8d039498", "store_failures": true}, "created_at": 1764018441.838412, "relation_name": "polygon.not_null_silver_lending.complete_lending_flashloans_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_808824d7ff21ed2cea74958f8d039498\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/not_null_silver_lending__compl_808824d7ff21ed2cea74958f8d039498.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_flashloans\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_flashloans__LOG_ID.b5e2ccc546": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_LOG_ID"], "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_lending", "name": "dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_flashloans__LOG_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_41046fc9f2da7a53a613c3157a49333d.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_flashloans__LOG_ID.b5e2ccc546", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_flashloans__LOG_ID"], "alias": "complete_lending_flashloans", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_41046fc9f2da7a53a613c3157a49333d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_41046fc9f2da7a53a613c3157a49333d", "store_failures": true}, "created_at": 1764018441.8404799, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_lending.complete_lending_flashloans", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_41046fc9f2da7a53a613c3157a49333d\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/dbt_utils_unique_combination_o_41046fc9f2da7a53a613c3157a49333d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _LOG_ID\n from polygon.silver_lending.complete_lending_flashloans\n group by _LOG_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_flashloans_7_5__60__lending.1d85b045e9": {"test_metadata": {"name": "curated_recency_defi", "kwargs": {"threshold_days": 60, "percent_delta_threshold": 7.5, "type": "lending", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_flashloans')) }}"}, "namespace": null}, "database": "polygon", "schema": "curated_recency_defi_silver_lending", "name": "curated_recency_defi_silver_lending__complete_lending_flashloans_7_5__60__lending", "resource_type": "test", "package_name": "fsc_evm", "path": "curated_recency_defi_silver_le_7ea7f5f03a7d0ee5ec2173d7f0fbcb04.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml", "unique_id": "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_flashloans_7_5__60__lending.1d85b045e9", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "curated_recency_defi_silver_lending__complete_lending_flashloans_7_5__60__lending"], "alias": "complete_lending_flashloans_7_5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "curated_recency_defi_silver_le_7ea7f5f03a7d0ee5ec2173d7f0fbcb04", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "curated_recency_defi_silver_le_7ea7f5f03a7d0ee5ec2173d7f0fbcb04", "store_failures": true}, "created_at": 1764018441.8459523, "relation_name": "polygon.curated_recency_defi_silver_lending.complete_lending_flashloans_7_5", "raw_code": "{{ test_curated_recency_defi(**_dbt_generic_test_kwargs) }}{{ config(alias=\"curated_recency_defi_silver_le_7ea7f5f03a7d0ee5ec2173d7f0fbcb04\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_flashloans", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_curated_recency_defi", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_flashloans"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_flashloans.yml/curated_recency_defi_silver_le_7ea7f5f03a7d0ee5ec2173d7f0fbcb04.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH source AS (\n SELECT\n platform,\n MAX(block_timestamp) AS latest_timestamp,\n SYSDATE() AS sys_ts,\n DATEADD('day', -60, SYSDATE()) AS threshold_ts,\n COUNT(\n CASE\n WHEN block_timestamp >= threshold_ts THEN 1 \n END) AS current_period_evt,\n CEIL(\n (\n COUNT(\n CASE\n WHEN block_timestamp >= DATEADD('day', -180, SYSDATE())\n AND block_timestamp < threshold_ts THEN 1\n END\n ) / 150.0\n ) * 30\n ) AS rolling_avg_evt,\n CASE\n WHEN rolling_avg_evt = 0 THEN 0\n ELSE ROUND((current_period_evt / rolling_avg_evt) * 100, 2)\n END AS percent_delta,\n 'lending' AS type\n FROM\n polygon.silver_lending.complete_lending_flashloans\n GROUP BY\n 1\n )\n SELECT\n platform,\n latest_timestamp,\n sys_ts,\n threshold_ts,\n current_period_evt,\n rolling_avg_evt,\n percent_delta,\n type\n FROM\n source\n WHERE\n (latest_timestamp < threshold_ts \n OR (percent_delta < 7.5 AND percent_delta <> 0))\n \n AND platform NOT IN ('aave-v2')\n \n-- failure to meet threshold requires manual review to determine if\n-- the protocol has newly deployed contracts, stale contracts, etc.\n-- if this is the case, the test should not apply to the relevant model(s)\n-- percent_delta shows current period performance vs rolling average\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_lending__complete_lending_flashloans", "attached_node": "model.fsc_evm.silver_lending__complete_lending_flashloans"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TX_HASH.159d87490e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_repayments_TX_HASH.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TX_HASH.159d87490e", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_TX_HASH"], "alias": "complete_lending_repayments_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.8947754, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__complete_lending_repayments_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_repayments\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BLOCK_NUMBER.3b1396e922": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_b6bf65118671437593cc36bf91e4037f.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BLOCK_NUMBER.3b1396e922", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_BLOCK_NUMBER"], "alias": "complete_lending_repayments_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_b6bf65118671437593cc36bf91e4037f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_b6bf65118671437593cc36bf91e4037f", "store_failures": true}, "created_at": 1764018441.8971908, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_b6bf65118671437593cc36bf91e4037f\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__compl_b6bf65118671437593cc36bf91e4037f.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_repayments\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BLOCK_TIMESTAMP.dadda51bf9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_3fda669bfdd5fca330384039fad98297.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BLOCK_TIMESTAMP.dadda51bf9", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_BLOCK_TIMESTAMP"], "alias": "complete_lending_repayments_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_3fda669bfdd5fca330384039fad98297", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_3fda669bfdd5fca330384039fad98297", "store_failures": true}, "created_at": 1764018441.8997014, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_3fda669bfdd5fca330384039fad98297\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__compl_3fda669bfdd5fca330384039fad98297.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_repayments\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_repayments_BLOCK_TIMESTAMP__day__3.1330d20e3b": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 3, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver_lending", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_repayments_BLOCK_TIMESTAMP__day__3", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_87d1372b75935f6eb7f6f9231f9ff6d1.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_repayments_BLOCK_TIMESTAMP__day__3.1330d20e3b", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_repayments_BLOCK_TIMESTAMP__day__3"], "alias": "complete_lending_repayments_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_87d1372b75935f6eb7f6f9231f9ff6d1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_87d1372b75935f6eb7f6f9231f9ff6d1", "store_failures": true}, "created_at": 1764018441.9019172, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending.complete_lending_repayments_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_87d1372b75935f6eb7f6f9231f9ff6d1\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/dbt_expectations_expect_row_va_87d1372b75935f6eb7f6f9231f9ff6d1.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver_lending.complete_lending_repayments\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_EVENT_INDEX.b08f854af1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_8c14ec8788d5b2e0938f7bee266dbbf2.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_EVENT_INDEX.b08f854af1", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_EVENT_INDEX"], "alias": "complete_lending_repayments_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_8c14ec8788d5b2e0938f7bee266dbbf2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "PLATFORM <> 'morpho-v1'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_8c14ec8788d5b2e0938f7bee266dbbf2", "where": "PLATFORM <> 'morpho-v1'", "store_failures": true}, "created_at": 1764018441.9098225, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"PLATFORM <> 'morpho-v1'\",alias=\"not_null_silver_lending__compl_8c14ec8788d5b2e0938f7bee266dbbf2\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__compl_8c14ec8788d5b2e0938f7bee266dbbf2.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_repayments where PLATFORM <> 'morpho-v1') dbt_subquery\nwhere EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_ORIGIN_FROM_ADDRESS.a45605a93c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_11ec018b631077189c68ed40dabe2cb1.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_ORIGIN_FROM_ADDRESS.a45605a93c", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_ORIGIN_FROM_ADDRESS"], "alias": "complete_lending_repayments_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_11ec018b631077189c68ed40dabe2cb1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_11ec018b631077189c68ed40dabe2cb1", "store_failures": true}, "created_at": 1764018441.9120767, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_11ec018b631077189c68ed40dabe2cb1\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__compl_11ec018b631077189c68ed40dabe2cb1.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_repayments\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_ORIGIN_FUNCTION_SIGNATURE.7cdb59008b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_415be5e8cbb8f101442cec0016ae5c86.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_ORIGIN_FUNCTION_SIGNATURE.7cdb59008b", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_ORIGIN_FUNCTION_SIGNATURE"], "alias": "complete_lending_repayments_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_415be5e8cbb8f101442cec0016ae5c86", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_415be5e8cbb8f101442cec0016ae5c86", "store_failures": true}, "created_at": 1764018441.9142425, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_415be5e8cbb8f101442cec0016ae5c86\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__compl_415be5e8cbb8f101442cec0016ae5c86.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_repayments\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_CONTRACT_ADDRESS.e8659c0cd4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_367fe9291a108441b75140b45561d7b7.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_CONTRACT_ADDRESS.e8659c0cd4", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_CONTRACT_ADDRESS"], "alias": "complete_lending_repayments_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_367fe9291a108441b75140b45561d7b7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_367fe9291a108441b75140b45561d7b7", "store_failures": true}, "created_at": 1764018441.916357, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_367fe9291a108441b75140b45561d7b7\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__compl_367fe9291a108441b75140b45561d7b7.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_repayments\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_EVENT_NAME.17e71ddee7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_NAME", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_EVENT_NAME", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_repayments_EVENT_NAME.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_EVENT_NAME.17e71ddee7", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_EVENT_NAME"], "alias": "complete_lending_repayments_EVENT_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.9184382, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_EVENT_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__complete_lending_repayments_EVENT_NAME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_repayments\nwhere EVENT_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_NAME", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PROTOCOL_MARKET.5ba1c58d76": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROTOCOL_MARKET", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_PROTOCOL_MARKET", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_e96547a4ba5f3e7ee5b4635ab950f876.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PROTOCOL_MARKET.5ba1c58d76", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_PROTOCOL_MARKET"], "alias": "complete_lending_repayments_PROTOCOL_MARKET", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_e96547a4ba5f3e7ee5b4635ab950f876", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_e96547a4ba5f3e7ee5b4635ab950f876", "store_failures": true}, "created_at": 1764018441.9208307, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_PROTOCOL_MARKET", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_e96547a4ba5f3e7ee5b4635ab950f876\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__compl_e96547a4ba5f3e7ee5b4635ab950f876.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_repayments\nwhere PROTOCOL_MARKET is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROTOCOL_MARKET", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PAYER.5181266d52": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PAYER", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_PAYER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_repayments_PAYER.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PAYER.5181266d52", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_PAYER"], "alias": "complete_lending_repayments_PAYER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "PROTOCOL <> 'silo'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "PROTOCOL <> 'silo'", "store_failures": true}, "created_at": 1764018441.9234512, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_PAYER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"PROTOCOL <> 'silo'\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__complete_lending_repayments_PAYER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_repayments where PROTOCOL <> 'silo') dbt_subquery\nwhere PAYER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PAYER", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BORROWER.067b19b1ce": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BORROWER", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_BORROWER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_repayments_BORROWER.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BORROWER.067b19b1ce", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_BORROWER"], "alias": "complete_lending_repayments_BORROWER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.9255464, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_BORROWER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__complete_lending_repayments_BORROWER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_repayments\nwhere BORROWER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BORROWER", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TOKEN_ADDRESS.1000bb4b6f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_ADDRESS", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_TOKEN_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_64fec5195cdf37c963fd815cfd065f40.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TOKEN_ADDRESS.1000bb4b6f", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_TOKEN_ADDRESS"], "alias": "complete_lending_repayments_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_64fec5195cdf37c963fd815cfd065f40", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_64fec5195cdf37c963fd815cfd065f40", "store_failures": true}, "created_at": 1764018441.9276485, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_TOKEN_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_64fec5195cdf37c963fd815cfd065f40\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__compl_64fec5195cdf37c963fd815cfd065f40.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_repayments\nwhere TOKEN_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ADDRESS", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TOKEN_SYMBOL.442e650dd5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_SYMBOL", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_TOKEN_SYMBOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_b4a330d6696c04fa2e4182787f66769d.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TOKEN_SYMBOL.442e650dd5", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_TOKEN_SYMBOL"], "alias": "complete_lending_repayments_TOKEN_SYMBOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_b4a330d6696c04fa2e4182787f66769d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_b4a330d6696c04fa2e4182787f66769d", "where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "store_failures": true}, "created_at": 1764018441.9297454, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_TOKEN_SYMBOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"_inserted_timestamp < SYSDATE() - INTERVAL '7 days'\",alias=\"not_null_silver_lending__compl_b4a330d6696c04fa2e4182787f66769d\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__compl_b4a330d6696c04fa2e4182787f66769d.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_repayments where _inserted_timestamp < SYSDATE() - INTERVAL '7 days') dbt_subquery\nwhere TOKEN_SYMBOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_SYMBOL", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_AMOUNT_UNADJ.c408d0ba21": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_UNADJ", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_AMOUNT_UNADJ", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_cbe35a3a6810dd2ead25efc40f24be25.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_AMOUNT_UNADJ.c408d0ba21", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_AMOUNT_UNADJ"], "alias": "complete_lending_repayments_AMOUNT_UNADJ", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_cbe35a3a6810dd2ead25efc40f24be25", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_cbe35a3a6810dd2ead25efc40f24be25", "store_failures": true}, "created_at": 1764018441.9318044, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_AMOUNT_UNADJ", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_cbe35a3a6810dd2ead25efc40f24be25\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__compl_cbe35a3a6810dd2ead25efc40f24be25.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_repayments\nwhere AMOUNT_UNADJ is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_UNADJ", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_AMOUNT.1c26a3f24d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_AMOUNT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_repayments_AMOUNT.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_AMOUNT.1c26a3f24d", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_AMOUNT"], "alias": "complete_lending_repayments_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "store_failures": true}, "created_at": 1764018441.9342687, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_AMOUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"_inserted_timestamp < SYSDATE() - INTERVAL '7 days'\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__complete_lending_repayments_AMOUNT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_repayments where _inserted_timestamp < SYSDATE() - INTERVAL '7 days') dbt_subquery\nwhere AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_repayments_AMOUNT_USD__decimal__float.3538351555": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["decimal", "float"], "column_name": "AMOUNT_USD", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_repayments_AMOUNT_USD__decimal__float", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_ba32eb3b6712f1bc5d0234c50eae60db.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_repayments_AMOUNT_USD__decimal__float.3538351555", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_repayments_AMOUNT_USD__decimal__float"], "alias": "complete_lending_repayments_AMOUNT_USD", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ba32eb3b6712f1bc5d0234c50eae60db", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_ba32eb3b6712f1bc5d0234c50eae60db", "store_failures": true}, "created_at": 1764018441.9363663, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending.complete_lending_repayments_AMOUNT_USD", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ba32eb3b6712f1bc5d0234c50eae60db\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/dbt_expectations_expect_column_ba32eb3b6712f1bc5d0234c50eae60db.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_MARKET' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PAYER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BORROWER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_UNADJ' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('COMPLETE_LENDING_REPAYMENTS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'AMOUNT_USD'\n and\n relation_column_type not in ('DECIMAL', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_USD", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PLATFORM.c28ef22806": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_PLATFORM", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_repayments_PLATFORM.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PLATFORM.c28ef22806", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_PLATFORM"], "alias": "complete_lending_repayments_PLATFORM", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.9416013, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_PLATFORM", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__complete_lending_repayments_PLATFORM.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_repayments\nwhere PLATFORM is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PROTOCOL.3c56422288": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROTOCOL", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_PROTOCOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_repayments_PROTOCOL.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PROTOCOL.3c56422288", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_PROTOCOL"], "alias": "complete_lending_repayments_PROTOCOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.9441142, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_PROTOCOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__complete_lending_repayments_PROTOCOL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_repayments\nwhere PROTOCOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROTOCOL", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_VERSION.3fd0d1f3d6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VERSION", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_VERSION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_repayments_VERSION.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_VERSION.3fd0d1f3d6", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_VERSION"], "alias": "complete_lending_repayments_VERSION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018441.9463148, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_VERSION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__complete_lending_repayments_VERSION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_repayments\nwhere VERSION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VERSION", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_COMPLETE_LENDING_REPAYMENTS_ID.fa12632511": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "COMPLETE_LENDING_REPAYMENTS_ID", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_COMPLETE_LENDING_REPAYMENTS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_6dac1af25b7651047e876e17e3491e03.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_COMPLETE_LENDING_REPAYMENTS_ID.fa12632511", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_COMPLETE_LENDING_REPAYMENTS_ID"], "alias": "complete_lending_repayments_COMPLETE_LENDING_REPAYMENTS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_6dac1af25b7651047e876e17e3491e03", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_6dac1af25b7651047e876e17e3491e03", "store_failures": true}, "created_at": 1764018441.9484684, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_COMPLETE_LENDING_REPAYMENTS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_6dac1af25b7651047e876e17e3491e03\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__compl_6dac1af25b7651047e876e17e3491e03.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_repayments\nwhere COMPLETE_LENDING_REPAYMENTS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "COMPLETE_LENDING_REPAYMENTS_ID", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_INSERTED_TIMESTAMP.3f4ae6523c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_b6232436bb45627efd26900d72395153.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_INSERTED_TIMESTAMP.3f4ae6523c", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_INSERTED_TIMESTAMP"], "alias": "complete_lending_repayments_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_b6232436bb45627efd26900d72395153", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_b6232436bb45627efd26900d72395153", "store_failures": true}, "created_at": 1764018441.9506123, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_b6232436bb45627efd26900d72395153\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__compl_b6232436bb45627efd26900d72395153.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_repayments\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_MODIFIED_TIMESTAMP.3b537129ff": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_repayments_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_f29283e82d3ad996a08ab8465b6c0457.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_MODIFIED_TIMESTAMP.3b537129ff", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_repayments_MODIFIED_TIMESTAMP"], "alias": "complete_lending_repayments_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_f29283e82d3ad996a08ab8465b6c0457", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_f29283e82d3ad996a08ab8465b6c0457", "store_failures": true}, "created_at": 1764018441.9527252, "relation_name": "polygon.not_null_silver_lending.complete_lending_repayments_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_f29283e82d3ad996a08ab8465b6c0457\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/not_null_silver_lending__compl_f29283e82d3ad996a08ab8465b6c0457.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_repayments\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_repayments__LOG_ID.dade94b28d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_LOG_ID"], "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_lending", "name": "dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_repayments__LOG_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_1e20e0bc88884816f23438b38210dfa6.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_repayments__LOG_ID.dade94b28d", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_repayments__LOG_ID"], "alias": "complete_lending_repayments", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1e20e0bc88884816f23438b38210dfa6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1e20e0bc88884816f23438b38210dfa6", "store_failures": true}, "created_at": 1764018441.9549012, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_lending.complete_lending_repayments", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1e20e0bc88884816f23438b38210dfa6\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/dbt_utils_unique_combination_o_1e20e0bc88884816f23438b38210dfa6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _LOG_ID\n from polygon.silver_lending.complete_lending_repayments\n group by _LOG_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_repayments_7_5__60__lending.dc63c75a4a": {"test_metadata": {"name": "curated_recency_defi", "kwargs": {"threshold_days": 60, "percent_delta_threshold": 7.5, "type": "lending", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_repayments')) }}"}, "namespace": null}, "database": "polygon", "schema": "curated_recency_defi_silver_lending", "name": "curated_recency_defi_silver_lending__complete_lending_repayments_7_5__60__lending", "resource_type": "test", "package_name": "fsc_evm", "path": "curated_recency_defi_silver_le_7a741a1f74187f8c7a1ae9fe215e5b4e.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml", "unique_id": "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_repayments_7_5__60__lending.dc63c75a4a", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "curated_recency_defi_silver_lending__complete_lending_repayments_7_5__60__lending"], "alias": "complete_lending_repayments_7_5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "curated_recency_defi_silver_le_7a741a1f74187f8c7a1ae9fe215e5b4e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "curated_recency_defi_silver_le_7a741a1f74187f8c7a1ae9fe215e5b4e", "store_failures": true}, "created_at": 1764018441.9605536, "relation_name": "polygon.curated_recency_defi_silver_lending.complete_lending_repayments_7_5", "raw_code": "{{ test_curated_recency_defi(**_dbt_generic_test_kwargs) }}{{ config(alias=\"curated_recency_defi_silver_le_7a741a1f74187f8c7a1ae9fe215e5b4e\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_repayments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_curated_recency_defi", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_repayments"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_repayments.yml/curated_recency_defi_silver_le_7a741a1f74187f8c7a1ae9fe215e5b4e.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH source AS (\n SELECT\n platform,\n MAX(block_timestamp) AS latest_timestamp,\n SYSDATE() AS sys_ts,\n DATEADD('day', -60, SYSDATE()) AS threshold_ts,\n COUNT(\n CASE\n WHEN block_timestamp >= threshold_ts THEN 1 \n END) AS current_period_evt,\n CEIL(\n (\n COUNT(\n CASE\n WHEN block_timestamp >= DATEADD('day', -180, SYSDATE())\n AND block_timestamp < threshold_ts THEN 1\n END\n ) / 150.0\n ) * 30\n ) AS rolling_avg_evt,\n CASE\n WHEN rolling_avg_evt = 0 THEN 0\n ELSE ROUND((current_period_evt / rolling_avg_evt) * 100, 2)\n END AS percent_delta,\n 'lending' AS type\n FROM\n polygon.silver_lending.complete_lending_repayments\n GROUP BY\n 1\n )\n SELECT\n platform,\n latest_timestamp,\n sys_ts,\n threshold_ts,\n current_period_evt,\n rolling_avg_evt,\n percent_delta,\n type\n FROM\n source\n WHERE\n (latest_timestamp < threshold_ts \n OR (percent_delta < 7.5 AND percent_delta <> 0))\n \n AND platform NOT IN ('aave-v2')\n \n-- failure to meet threshold requires manual review to determine if\n-- the protocol has newly deployed contracts, stale contracts, etc.\n-- if this is the case, the test should not apply to the relevant model(s)\n-- percent_delta shows current period performance vs rolling average\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_lending__complete_lending_repayments", "attached_node": "model.fsc_evm.silver_lending__complete_lending_repayments"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TX_HASH.1770f89dd4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_deposits_TX_HASH.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TX_HASH.1770f89dd4", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_TX_HASH"], "alias": "complete_lending_deposits_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.0097404, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__complete_lending_deposits_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_deposits\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_BLOCK_NUMBER.764f80cddc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_deposits_BLOCK_NUMBER.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_BLOCK_NUMBER.764f80cddc", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_BLOCK_NUMBER"], "alias": "complete_lending_deposits_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.0124779, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__complete_lending_deposits_BLOCK_NUMBER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_deposits\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_BLOCK_TIMESTAMP.4ee6d5cde6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_6c44c19dda9621e8a8e977263e41aff5.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_BLOCK_TIMESTAMP.4ee6d5cde6", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_BLOCK_TIMESTAMP"], "alias": "complete_lending_deposits_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_6c44c19dda9621e8a8e977263e41aff5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_6c44c19dda9621e8a8e977263e41aff5", "store_failures": true}, "created_at": 1764018442.0148687, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_6c44c19dda9621e8a8e977263e41aff5\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__compl_6c44c19dda9621e8a8e977263e41aff5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_deposits\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_deposits_BLOCK_TIMESTAMP__day__3.b5e1187f23": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 3, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver_lending", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_deposits_BLOCK_TIMESTAMP__day__3", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_718f7eaba9204245b67259c5002df534.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_deposits_BLOCK_TIMESTAMP__day__3.b5e1187f23", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_deposits_BLOCK_TIMESTAMP__day__3"], "alias": "complete_lending_deposits_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_718f7eaba9204245b67259c5002df534", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_718f7eaba9204245b67259c5002df534", "store_failures": true}, "created_at": 1764018442.0171425, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending.complete_lending_deposits_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_718f7eaba9204245b67259c5002df534\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/dbt_expectations_expect_row_va_718f7eaba9204245b67259c5002df534.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver_lending.complete_lending_deposits\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_EVENT_INDEX.af4200573a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_deposits_EVENT_INDEX.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_EVENT_INDEX.af4200573a", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_EVENT_INDEX"], "alias": "complete_lending_deposits_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "PLATFORM <> 'morpho-v1'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "PLATFORM <> 'morpho-v1'", "store_failures": true}, "created_at": 1764018442.0255466, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"PLATFORM <> 'morpho-v1'\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__complete_lending_deposits_EVENT_INDEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_deposits where PLATFORM <> 'morpho-v1') dbt_subquery\nwhere EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_ORIGIN_FROM_ADDRESS.2d42cefc88": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_9c446646e7ae628484e9e818e3d8affd.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_ORIGIN_FROM_ADDRESS.2d42cefc88", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_ORIGIN_FROM_ADDRESS"], "alias": "complete_lending_deposits_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_9c446646e7ae628484e9e818e3d8affd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_9c446646e7ae628484e9e818e3d8affd", "store_failures": true}, "created_at": 1764018442.0278087, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_9c446646e7ae628484e9e818e3d8affd\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__compl_9c446646e7ae628484e9e818e3d8affd.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_deposits\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_ORIGIN_FUNCTION_SIGNATURE.4f15a4f4b6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_d1efce8a2ed118f43ddaf3b0ec07689a.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_ORIGIN_FUNCTION_SIGNATURE.4f15a4f4b6", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_ORIGIN_FUNCTION_SIGNATURE"], "alias": "complete_lending_deposits_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_d1efce8a2ed118f43ddaf3b0ec07689a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_d1efce8a2ed118f43ddaf3b0ec07689a", "store_failures": true}, "created_at": 1764018442.030025, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_d1efce8a2ed118f43ddaf3b0ec07689a\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__compl_d1efce8a2ed118f43ddaf3b0ec07689a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_deposits\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_CONTRACT_ADDRESS.7df8e73c73": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_770ada402586ff734837ab5f5055b894.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_CONTRACT_ADDRESS.7df8e73c73", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_CONTRACT_ADDRESS"], "alias": "complete_lending_deposits_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_770ada402586ff734837ab5f5055b894", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_770ada402586ff734837ab5f5055b894", "store_failures": true}, "created_at": 1764018442.0322146, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_770ada402586ff734837ab5f5055b894\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__compl_770ada402586ff734837ab5f5055b894.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_deposits\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_EVENT_NAME.074448c2ba": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_NAME", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_EVENT_NAME", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_deposits_EVENT_NAME.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_EVENT_NAME.074448c2ba", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_EVENT_NAME"], "alias": "complete_lending_deposits_EVENT_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.0347009, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_EVENT_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__complete_lending_deposits_EVENT_NAME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_deposits\nwhere EVENT_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_NAME", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PROTOCOL_MARKET.f548930cd7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROTOCOL_MARKET", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_PROTOCOL_MARKET", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_a3b600bcd583f29d91aad94febe69923.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PROTOCOL_MARKET.f548930cd7", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_PROTOCOL_MARKET"], "alias": "complete_lending_deposits_PROTOCOL_MARKET", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_a3b600bcd583f29d91aad94febe69923", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_a3b600bcd583f29d91aad94febe69923", "store_failures": true}, "created_at": 1764018442.036891, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_PROTOCOL_MARKET", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_a3b600bcd583f29d91aad94febe69923\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__compl_a3b600bcd583f29d91aad94febe69923.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_deposits\nwhere PROTOCOL_MARKET is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROTOCOL_MARKET", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_DEPOSITOR.1491427a24": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DEPOSITOR", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_DEPOSITOR", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_deposits_DEPOSITOR.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_DEPOSITOR.1491427a24", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_DEPOSITOR"], "alias": "complete_lending_deposits_DEPOSITOR", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.0390635, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_DEPOSITOR", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__complete_lending_deposits_DEPOSITOR.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_deposits\nwhere DEPOSITOR is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DEPOSITOR", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TOKEN_ADDRESS.87dd541bc0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_ADDRESS", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_TOKEN_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_a92da6dda9e270fa79ace8fef0928435.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TOKEN_ADDRESS.87dd541bc0", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_TOKEN_ADDRESS"], "alias": "complete_lending_deposits_TOKEN_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_a92da6dda9e270fa79ace8fef0928435", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_a92da6dda9e270fa79ace8fef0928435", "store_failures": true}, "created_at": 1764018442.041241, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_TOKEN_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_a92da6dda9e270fa79ace8fef0928435\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__compl_a92da6dda9e270fa79ace8fef0928435.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_deposits\nwhere TOKEN_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_ADDRESS", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TOKEN_SYMBOL.63347a63f2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOKEN_SYMBOL", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_TOKEN_SYMBOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_deposits_TOKEN_SYMBOL.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TOKEN_SYMBOL.63347a63f2", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_TOKEN_SYMBOL"], "alias": "complete_lending_deposits_TOKEN_SYMBOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "store_failures": true}, "created_at": 1764018442.0433595, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_TOKEN_SYMBOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"_inserted_timestamp < SYSDATE() - INTERVAL '7 days'\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__complete_lending_deposits_TOKEN_SYMBOL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_deposits where _inserted_timestamp < SYSDATE() - INTERVAL '7 days') dbt_subquery\nwhere TOKEN_SYMBOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOKEN_SYMBOL", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_AMOUNT_UNADJ.08e5e86a62": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT_UNADJ", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_AMOUNT_UNADJ", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_deposits_AMOUNT_UNADJ.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_AMOUNT_UNADJ.08e5e86a62", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_AMOUNT_UNADJ"], "alias": "complete_lending_deposits_AMOUNT_UNADJ", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.045467, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_AMOUNT_UNADJ", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__complete_lending_deposits_AMOUNT_UNADJ.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_deposits\nwhere AMOUNT_UNADJ is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_UNADJ", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_AMOUNT.dd3698ee3b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_AMOUNT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_deposits_AMOUNT.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_AMOUNT.dd3698ee3b", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_AMOUNT"], "alias": "complete_lending_deposits_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "store_failures": true}, "created_at": 1764018442.0480194, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_AMOUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"_inserted_timestamp < SYSDATE() - INTERVAL '7 days'\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__complete_lending_deposits_AMOUNT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_deposits where _inserted_timestamp < SYSDATE() - INTERVAL '7 days') dbt_subquery\nwhere AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_deposits_AMOUNT_USD__decimal__float.1e0c6d9d32": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["decimal", "float"], "column_name": "AMOUNT_USD", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_deposits_AMOUNT_USD__decimal__float", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_fb0d812e93318dbef286c16bbae45a84.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_deposits_AMOUNT_USD__decimal__float.1e0c6d9d32", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_deposits_AMOUNT_USD__decimal__float"], "alias": "complete_lending_deposits_AMOUNT_USD", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_fb0d812e93318dbef286c16bbae45a84", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_fb0d812e93318dbef286c16bbae45a84", "store_failures": true}, "created_at": 1764018442.0501525, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending.complete_lending_deposits_AMOUNT_USD", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_fb0d812e93318dbef286c16bbae45a84\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/dbt_expectations_expect_column_fb0d812e93318dbef286c16bbae45a84.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TX_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FROM_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_TO_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ORIGIN_FUNCTION_SIGNATURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EVENT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_MARKET' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_UNADJ' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PLATFORM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VERSION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_LOG_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('COMPLETE_LENDING_DEPOSITS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'AMOUNT_USD'\n and\n relation_column_type not in ('DECIMAL', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AMOUNT_USD", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PLATFORM.e82777c8c0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_PLATFORM", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_deposits_PLATFORM.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PLATFORM.e82777c8c0", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_PLATFORM"], "alias": "complete_lending_deposits_PLATFORM", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.0555882, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_PLATFORM", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__complete_lending_deposits_PLATFORM.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_deposits\nwhere PLATFORM is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PROTOCOL.6cf1f64077": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROTOCOL", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_PROTOCOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_deposits_PROTOCOL.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PROTOCOL.6cf1f64077", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_PROTOCOL"], "alias": "complete_lending_deposits_PROTOCOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.057882, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_PROTOCOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__complete_lending_deposits_PROTOCOL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_deposits\nwhere PROTOCOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROTOCOL", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_VERSION.eade855a3f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VERSION", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_VERSION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_deposits_VERSION.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_VERSION.eade855a3f", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_VERSION"], "alias": "complete_lending_deposits_VERSION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.0605457, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_VERSION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__complete_lending_deposits_VERSION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_deposits\nwhere VERSION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VERSION", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_COMPLETE_LENDING_DEPOSITS_ID.f63e8f436e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "COMPLETE_LENDING_DEPOSITS_ID", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_COMPLETE_LENDING_DEPOSITS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_a6cb5877f98233e7a53dd28f8b744d5d.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_COMPLETE_LENDING_DEPOSITS_ID.f63e8f436e", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_COMPLETE_LENDING_DEPOSITS_ID"], "alias": "complete_lending_deposits_COMPLETE_LENDING_DEPOSITS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_a6cb5877f98233e7a53dd28f8b744d5d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_a6cb5877f98233e7a53dd28f8b744d5d", "store_failures": true}, "created_at": 1764018442.0627887, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_COMPLETE_LENDING_DEPOSITS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_a6cb5877f98233e7a53dd28f8b744d5d\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__compl_a6cb5877f98233e7a53dd28f8b744d5d.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_deposits\nwhere COMPLETE_LENDING_DEPOSITS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "COMPLETE_LENDING_DEPOSITS_ID", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_INSERTED_TIMESTAMP.481e29ad06": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_3feef596327aba344fdbe4746c2ff3ff.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_INSERTED_TIMESTAMP.481e29ad06", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_INSERTED_TIMESTAMP"], "alias": "complete_lending_deposits_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_3feef596327aba344fdbe4746c2ff3ff", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_3feef596327aba344fdbe4746c2ff3ff", "store_failures": true}, "created_at": 1764018442.0650287, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_3feef596327aba344fdbe4746c2ff3ff\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__compl_3feef596327aba344fdbe4746c2ff3ff.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_deposits\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_MODIFIED_TIMESTAMP.316ea9612f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_deposits_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_bc9105b4d2ecbbdf27cdcd1bb9c659f7.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_MODIFIED_TIMESTAMP.316ea9612f", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_deposits_MODIFIED_TIMESTAMP"], "alias": "complete_lending_deposits_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_bc9105b4d2ecbbdf27cdcd1bb9c659f7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_bc9105b4d2ecbbdf27cdcd1bb9c659f7", "store_failures": true}, "created_at": 1764018442.067202, "relation_name": "polygon.not_null_silver_lending.complete_lending_deposits_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_bc9105b4d2ecbbdf27cdcd1bb9c659f7\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/not_null_silver_lending__compl_bc9105b4d2ecbbdf27cdcd1bb9c659f7.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_deposits\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_deposits__LOG_ID.81d0e3df59": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_LOG_ID"], "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_lending", "name": "dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_deposits__LOG_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_7c4796bd852dc7e897b5bbfcf0ae380e.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_deposits__LOG_ID.81d0e3df59", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_deposits__LOG_ID"], "alias": "complete_lending_deposits", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7c4796bd852dc7e897b5bbfcf0ae380e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7c4796bd852dc7e897b5bbfcf0ae380e", "store_failures": true}, "created_at": 1764018442.0694191, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_lending.complete_lending_deposits", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7c4796bd852dc7e897b5bbfcf0ae380e\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/dbt_utils_unique_combination_o_7c4796bd852dc7e897b5bbfcf0ae380e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _LOG_ID\n from polygon.silver_lending.complete_lending_deposits\n group by _LOG_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_deposits_7_5__60__lending.f47558e889": {"test_metadata": {"name": "curated_recency_defi", "kwargs": {"threshold_days": 60, "percent_delta_threshold": 7.5, "type": "lending", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_deposits')) }}"}, "namespace": null}, "database": "polygon", "schema": "curated_recency_defi_silver_lending", "name": "curated_recency_defi_silver_lending__complete_lending_deposits_7_5__60__lending", "resource_type": "test", "package_name": "fsc_evm", "path": "curated_recency_defi_silver_le_0b2d7f1bcd33953e0e7cfa4108cfe5f0.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml", "unique_id": "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_deposits_7_5__60__lending.f47558e889", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "curated_recency_defi_silver_lending__complete_lending_deposits_7_5__60__lending"], "alias": "complete_lending_deposits_7_5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "curated_recency_defi_silver_le_0b2d7f1bcd33953e0e7cfa4108cfe5f0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "curated_recency_defi_silver_le_0b2d7f1bcd33953e0e7cfa4108cfe5f0", "store_failures": true}, "created_at": 1764018442.0750842, "relation_name": "polygon.curated_recency_defi_silver_lending.complete_lending_deposits_7_5", "raw_code": "{{ test_curated_recency_defi(**_dbt_generic_test_kwargs) }}{{ config(alias=\"curated_recency_defi_silver_le_0b2d7f1bcd33953e0e7cfa4108cfe5f0\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_deposits", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_curated_recency_defi", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_deposits"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_deposits.yml/curated_recency_defi_silver_le_0b2d7f1bcd33953e0e7cfa4108cfe5f0.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH source AS (\n SELECT\n platform,\n MAX(block_timestamp) AS latest_timestamp,\n SYSDATE() AS sys_ts,\n DATEADD('day', -60, SYSDATE()) AS threshold_ts,\n COUNT(\n CASE\n WHEN block_timestamp >= threshold_ts THEN 1 \n END) AS current_period_evt,\n CEIL(\n (\n COUNT(\n CASE\n WHEN block_timestamp >= DATEADD('day', -180, SYSDATE())\n AND block_timestamp < threshold_ts THEN 1\n END\n ) / 150.0\n ) * 30\n ) AS rolling_avg_evt,\n CASE\n WHEN rolling_avg_evt = 0 THEN 0\n ELSE ROUND((current_period_evt / rolling_avg_evt) * 100, 2)\n END AS percent_delta,\n 'lending' AS type\n FROM\n polygon.silver_lending.complete_lending_deposits\n GROUP BY\n 1\n )\n SELECT\n platform,\n latest_timestamp,\n sys_ts,\n threshold_ts,\n current_period_evt,\n rolling_avg_evt,\n percent_delta,\n type\n FROM\n source\n WHERE\n (latest_timestamp < threshold_ts \n OR (percent_delta < 7.5 AND percent_delta <> 0))\n \n AND platform NOT IN ('aave-v2')\n \n-- failure to meet threshold requires manual review to determine if\n-- the protocol has newly deployed contracts, stale contracts, etc.\n-- if this is the case, the test should not apply to the relevant model(s)\n-- percent_delta shows current period performance vs rolling average\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_lending__complete_lending_deposits", "attached_node": "model.fsc_evm.silver_lending__complete_lending_deposits"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_TX_HASH.bce1515589": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_liquidations_TX_HASH.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_TX_HASH.bce1515589", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_TX_HASH"], "alias": "complete_lending_liquidations_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.1289897, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__complete_lending_liquidations_TX_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere TX_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BLOCK_NUMBER.15a69776e9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_ff67f898081ed7fe0026551e1516d0b6.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BLOCK_NUMBER.15a69776e9", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_BLOCK_NUMBER"], "alias": "complete_lending_liquidations_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_ff67f898081ed7fe0026551e1516d0b6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_ff67f898081ed7fe0026551e1516d0b6", "store_failures": true}, "created_at": 1764018442.1315248, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_ff67f898081ed7fe0026551e1516d0b6\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__compl_ff67f898081ed7fe0026551e1516d0b6.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere BLOCK_NUMBER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BLOCK_TIMESTAMP.c70c659e0d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_54a861414ac3cc02610083806c11ff8c.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BLOCK_TIMESTAMP.c70c659e0d", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_BLOCK_TIMESTAMP"], "alias": "complete_lending_liquidations_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_54a861414ac3cc02610083806c11ff8c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_54a861414ac3cc02610083806c11ff8c", "store_failures": true}, "created_at": 1764018442.133879, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_54a861414ac3cc02610083806c11ff8c\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__compl_54a861414ac3cc02610083806c11ff8c.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_liquidations_BLOCK_TIMESTAMP__day__30.161c04de84": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 30, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver_lending", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_liquidations_BLOCK_TIMESTAMP__day__30", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_3809049febb8c9e9ac881fa46ab3eb30.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_liquidations_BLOCK_TIMESTAMP__day__30.161c04de84", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_liquidations_BLOCK_TIMESTAMP__day__30"], "alias": "complete_lending_liquidations_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_3809049febb8c9e9ac881fa46ab3eb30", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_3809049febb8c9e9ac881fa46ab3eb30", "store_failures": true}, "created_at": 1764018442.136325, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending.complete_lending_liquidations_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_3809049febb8c9e9ac881fa46ab3eb30\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/dbt_expectations_expect_row_va_3809049febb8c9e9ac881fa46ab3eb30.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver_lending.complete_lending_liquidations\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -30,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_EVENT_INDEX.84fd3e9ae9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_INDEX", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_EVENT_INDEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_aeb932647d0bb352727781470e398fd6.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_EVENT_INDEX.84fd3e9ae9", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_EVENT_INDEX"], "alias": "complete_lending_liquidations_EVENT_INDEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_aeb932647d0bb352727781470e398fd6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "PLATFORM <> 'morpho-v1'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_aeb932647d0bb352727781470e398fd6", "where": "PLATFORM <> 'morpho-v1'", "store_failures": true}, "created_at": 1764018442.1443052, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_EVENT_INDEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"PLATFORM <> 'morpho-v1'\",alias=\"not_null_silver_lending__compl_aeb932647d0bb352727781470e398fd6\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__compl_aeb932647d0bb352727781470e398fd6.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_liquidations where PLATFORM <> 'morpho-v1') dbt_subquery\nwhere EVENT_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_INDEX", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_ORIGIN_FROM_ADDRESS.192f3d0364": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FROM_ADDRESS", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_ORIGIN_FROM_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_8f3c4e0218e3fba02de14c57c97c7870.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_ORIGIN_FROM_ADDRESS.192f3d0364", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_ORIGIN_FROM_ADDRESS"], "alias": "complete_lending_liquidations_ORIGIN_FROM_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_8f3c4e0218e3fba02de14c57c97c7870", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_8f3c4e0218e3fba02de14c57c97c7870", "store_failures": true}, "created_at": 1764018442.1464376, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_ORIGIN_FROM_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_8f3c4e0218e3fba02de14c57c97c7870\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__compl_8f3c4e0218e3fba02de14c57c97c7870.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere ORIGIN_FROM_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FROM_ADDRESS", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_ORIGIN_FUNCTION_SIGNATURE.140b44b00f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ORIGIN_FUNCTION_SIGNATURE", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_ORIGIN_FUNCTION_SIGNATURE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_faab505386224a86dc9d4423eab84758.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_ORIGIN_FUNCTION_SIGNATURE.140b44b00f", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_ORIGIN_FUNCTION_SIGNATURE"], "alias": "complete_lending_liquidations_ORIGIN_FUNCTION_SIGNATURE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_faab505386224a86dc9d4423eab84758", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_faab505386224a86dc9d4423eab84758", "store_failures": true}, "created_at": 1764018442.1485589, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_ORIGIN_FUNCTION_SIGNATURE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_faab505386224a86dc9d4423eab84758\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__compl_faab505386224a86dc9d4423eab84758.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere ORIGIN_FUNCTION_SIGNATURE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ORIGIN_FUNCTION_SIGNATURE", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_CONTRACT_ADDRESS.808d802f1a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_84c3df3c67bb6feb4919e1251cbe47d8.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_CONTRACT_ADDRESS.808d802f1a", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_CONTRACT_ADDRESS"], "alias": "complete_lending_liquidations_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_84c3df3c67bb6feb4919e1251cbe47d8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_84c3df3c67bb6feb4919e1251cbe47d8", "store_failures": true}, "created_at": 1764018442.1506684, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_84c3df3c67bb6feb4919e1251cbe47d8\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__compl_84c3df3c67bb6feb4919e1251cbe47d8.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_EVENT_NAME.5630b24be5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EVENT_NAME", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_EVENT_NAME", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_b7265f0617941ab52bdf47ee3b3bee95.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_EVENT_NAME.5630b24be5", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_EVENT_NAME"], "alias": "complete_lending_liquidations_EVENT_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_b7265f0617941ab52bdf47ee3b3bee95", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_b7265f0617941ab52bdf47ee3b3bee95", "store_failures": true}, "created_at": 1764018442.1527593, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_EVENT_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_b7265f0617941ab52bdf47ee3b3bee95\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__compl_b7265f0617941ab52bdf47ee3b3bee95.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere EVENT_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EVENT_NAME", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATOR.32624d91f1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LIQUIDATOR", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_LIQUIDATOR", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_103dd6a041c2537beefcfb1d690351d5.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATOR.32624d91f1", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_LIQUIDATOR"], "alias": "complete_lending_liquidations_LIQUIDATOR", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_103dd6a041c2537beefcfb1d690351d5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_103dd6a041c2537beefcfb1d690351d5", "store_failures": true}, "created_at": 1764018442.1548784, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_LIQUIDATOR", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_103dd6a041c2537beefcfb1d690351d5\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__compl_103dd6a041c2537beefcfb1d690351d5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere LIQUIDATOR is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "LIQUIDATOR", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BORROWER.38440419c2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BORROWER", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_BORROWER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_liquidations_BORROWER.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BORROWER.38440419c2", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_BORROWER"], "alias": "complete_lending_liquidations_BORROWER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.157353, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_BORROWER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__complete_lending_liquidations_BORROWER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere BORROWER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BORROWER", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PROTOCOL_MARKET.6f332e4392": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROTOCOL_MARKET", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_PROTOCOL_MARKET", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_71f6175dcc914b2a5026d7a88a95f4cc.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PROTOCOL_MARKET.6f332e4392", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_PROTOCOL_MARKET"], "alias": "complete_lending_liquidations_PROTOCOL_MARKET", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_71f6175dcc914b2a5026d7a88a95f4cc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_71f6175dcc914b2a5026d7a88a95f4cc", "store_failures": true}, "created_at": 1764018442.159434, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_PROTOCOL_MARKET", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_71f6175dcc914b2a5026d7a88a95f4cc\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__compl_71f6175dcc914b2a5026d7a88a95f4cc.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere PROTOCOL_MARKET is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROTOCOL_MARKET", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COLLATERAL_TOKEN.3c78777798": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "COLLATERAL_TOKEN", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_COLLATERAL_TOKEN", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_4fa72bcc6e3289e79b7af114047b83d5.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COLLATERAL_TOKEN.3c78777798", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_COLLATERAL_TOKEN"], "alias": "complete_lending_liquidations_COLLATERAL_TOKEN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_4fa72bcc6e3289e79b7af114047b83d5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_4fa72bcc6e3289e79b7af114047b83d5", "store_failures": true}, "created_at": 1764018442.1615255, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_COLLATERAL_TOKEN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_4fa72bcc6e3289e79b7af114047b83d5\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__compl_4fa72bcc6e3289e79b7af114047b83d5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere COLLATERAL_TOKEN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "COLLATERAL_TOKEN", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COLLATERAL_TOKEN_SYMBOL.d8f85827c6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "COLLATERAL_TOKEN_SYMBOL", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_COLLATERAL_TOKEN_SYMBOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_32509b2039eeafcf36451b38b9fcccb3.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COLLATERAL_TOKEN_SYMBOL.d8f85827c6", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_COLLATERAL_TOKEN_SYMBOL"], "alias": "complete_lending_liquidations_COLLATERAL_TOKEN_SYMBOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_32509b2039eeafcf36451b38b9fcccb3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_32509b2039eeafcf36451b38b9fcccb3", "where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "store_failures": true}, "created_at": 1764018442.1636999, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_COLLATERAL_TOKEN_SYMBOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"_inserted_timestamp < SYSDATE() - INTERVAL '7 days'\",alias=\"not_null_silver_lending__compl_32509b2039eeafcf36451b38b9fcccb3\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__compl_32509b2039eeafcf36451b38b9fcccb3.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_liquidations where _inserted_timestamp < SYSDATE() - INTERVAL '7 days') dbt_subquery\nwhere COLLATERAL_TOKEN_SYMBOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "COLLATERAL_TOKEN_SYMBOL", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATED_AMOUNT_UNADJ.23b2f7c305": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LIQUIDATED_AMOUNT_UNADJ", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_LIQUIDATED_AMOUNT_UNADJ", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_b18169d2d9d244739c9d98690918015c.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATED_AMOUNT_UNADJ.23b2f7c305", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_LIQUIDATED_AMOUNT_UNADJ"], "alias": "complete_lending_liquidations_LIQUIDATED_AMOUNT_UNADJ", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_b18169d2d9d244739c9d98690918015c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_b18169d2d9d244739c9d98690918015c", "store_failures": true}, "created_at": 1764018442.1658087, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_LIQUIDATED_AMOUNT_UNADJ", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_b18169d2d9d244739c9d98690918015c\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__compl_b18169d2d9d244739c9d98690918015c.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere LIQUIDATED_AMOUNT_UNADJ is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "LIQUIDATED_AMOUNT_UNADJ", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATED_AMOUNT.295ac3ed83": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LIQUIDATED_AMOUNT", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_LIQUIDATED_AMOUNT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_fbe2c4231cca2d52e71adefdce34cbcd.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATED_AMOUNT.295ac3ed83", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_LIQUIDATED_AMOUNT"], "alias": "complete_lending_liquidations_LIQUIDATED_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_fbe2c4231cca2d52e71adefdce34cbcd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_fbe2c4231cca2d52e71adefdce34cbcd", "where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "store_failures": true}, "created_at": 1764018442.1679184, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_LIQUIDATED_AMOUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"_inserted_timestamp < SYSDATE() - INTERVAL '7 days'\",alias=\"not_null_silver_lending__compl_fbe2c4231cca2d52e71adefdce34cbcd\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__compl_fbe2c4231cca2d52e71adefdce34cbcd.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_liquidations where _inserted_timestamp < SYSDATE() - INTERVAL '7 days') dbt_subquery\nwhere LIQUIDATED_AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "LIQUIDATED_AMOUNT", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_DEBT_TOKEN.378987156e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DEBT_TOKEN", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_DEBT_TOKEN", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_502d6f34efc7a0af3a4803612e421589.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_DEBT_TOKEN.378987156e", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_DEBT_TOKEN"], "alias": "complete_lending_liquidations_DEBT_TOKEN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_502d6f34efc7a0af3a4803612e421589", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_502d6f34efc7a0af3a4803612e421589", "store_failures": true}, "created_at": 1764018442.1707723, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_DEBT_TOKEN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_502d6f34efc7a0af3a4803612e421589\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__compl_502d6f34efc7a0af3a4803612e421589.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere DEBT_TOKEN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DEBT_TOKEN", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_DEBT_TOKEN_SYMBOL.31aa114cf8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DEBT_TOKEN_SYMBOL", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_DEBT_TOKEN_SYMBOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_43560498f0e327cf362dd7f1177843cb.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_DEBT_TOKEN_SYMBOL.31aa114cf8", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_DEBT_TOKEN_SYMBOL"], "alias": "complete_lending_liquidations_DEBT_TOKEN_SYMBOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_43560498f0e327cf362dd7f1177843cb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_43560498f0e327cf362dd7f1177843cb", "where": "_inserted_timestamp < SYSDATE() - INTERVAL '7 days'", "store_failures": true}, "created_at": 1764018442.1728985, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_DEBT_TOKEN_SYMBOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"_inserted_timestamp < SYSDATE() - INTERVAL '7 days'\",alias=\"not_null_silver_lending__compl_43560498f0e327cf362dd7f1177843cb\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__compl_43560498f0e327cf362dd7f1177843cb.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from polygon.silver_lending.complete_lending_liquidations where _inserted_timestamp < SYSDATE() - INTERVAL '7 days') dbt_subquery\nwhere DEBT_TOKEN_SYMBOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DEBT_TOKEN_SYMBOL", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PLATFORM.80ec31452a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PLATFORM", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_PLATFORM", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_liquidations_PLATFORM.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PLATFORM.80ec31452a", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_PLATFORM"], "alias": "complete_lending_liquidations_PLATFORM", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.1749704, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_PLATFORM", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__complete_lending_liquidations_PLATFORM.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere PLATFORM is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PLATFORM", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PROTOCOL.16dcb68655": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROTOCOL", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_PROTOCOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_liquidations_PROTOCOL.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PROTOCOL.16dcb68655", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_PROTOCOL"], "alias": "complete_lending_liquidations_PROTOCOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.1770763, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_PROTOCOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__complete_lending_liquidations_PROTOCOL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere PROTOCOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROTOCOL", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_VERSION.927431b428": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VERSION", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_VERSION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__complete_lending_liquidations_VERSION.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_VERSION.927431b428", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_VERSION"], "alias": "complete_lending_liquidations_VERSION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.1791584, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_VERSION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__complete_lending_liquidations_VERSION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere VERSION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VERSION", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COMPLETE_LENDING_LIQUIDATIONS_ID.69cd6455c6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_COMPLETE_LENDING_LIQUIDATIONS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_b7c455f39cdba75ee373c2dd876ba79a.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COMPLETE_LENDING_LIQUIDATIONS_ID.69cd6455c6", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_COMPLETE_LENDING_LIQUIDATIONS_ID"], "alias": "complete_lending_liquidations_COMPLETE_LENDING_LIQUIDATIONS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_b7c455f39cdba75ee373c2dd876ba79a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_b7c455f39cdba75ee373c2dd876ba79a", "store_failures": true}, "created_at": 1764018442.1812375, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_COMPLETE_LENDING_LIQUIDATIONS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_b7c455f39cdba75ee373c2dd876ba79a\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__compl_b7c455f39cdba75ee373c2dd876ba79a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere COMPLETE_LENDING_LIQUIDATIONS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "COMPLETE_LENDING_LIQUIDATIONS_ID", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_INSERTED_TIMESTAMP.9b2342b392": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_760ddd6e742b9b7af1f943350dbb7ab4.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_INSERTED_TIMESTAMP.9b2342b392", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_INSERTED_TIMESTAMP"], "alias": "complete_lending_liquidations_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_760ddd6e742b9b7af1f943350dbb7ab4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_760ddd6e742b9b7af1f943350dbb7ab4", "store_failures": true}, "created_at": 1764018442.1836014, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_760ddd6e742b9b7af1f943350dbb7ab4\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__compl_760ddd6e742b9b7af1f943350dbb7ab4.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_MODIFIED_TIMESTAMP.8c86e0f317": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_lending", "name": "not_null_silver_lending__complete_lending_liquidations_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_lending__compl_9771dae1ab556391aeef76b25f29db34.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_MODIFIED_TIMESTAMP.8c86e0f317", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "not_null_silver_lending__complete_lending_liquidations_MODIFIED_TIMESTAMP"], "alias": "complete_lending_liquidations_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_lending__compl_9771dae1ab556391aeef76b25f29db34", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_lending__compl_9771dae1ab556391aeef76b25f29db34", "store_failures": true}, "created_at": 1764018442.1857185, "relation_name": "polygon.not_null_silver_lending.complete_lending_liquidations_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_lending__compl_9771dae1ab556391aeef76b25f29db34\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/not_null_silver_lending__compl_9771dae1ab556391aeef76b25f29db34.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_lending.complete_lending_liquidations\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_liquidations__LOG_ID.7cbbbc2f23": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_LOG_ID"], "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_lending", "name": "dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_liquidations__LOG_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_494b231d4b587b27f0b52ef34221b71e.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_liquidations__LOG_ID.7cbbbc2f23", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_liquidations__LOG_ID"], "alias": "complete_lending_liquidations", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_494b231d4b587b27f0b52ef34221b71e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_494b231d4b587b27f0b52ef34221b71e", "store_failures": true}, "created_at": 1764018442.1878235, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_lending.complete_lending_liquidations", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_494b231d4b587b27f0b52ef34221b71e\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/dbt_utils_unique_combination_o_494b231d4b587b27f0b52ef34221b71e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _LOG_ID\n from polygon.silver_lending.complete_lending_liquidations\n group by _LOG_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_liquidations_7_5__90__lending.9c7fe9d27d": {"test_metadata": {"name": "curated_recency_defi", "kwargs": {"threshold_days": 90, "percent_delta_threshold": 7.5, "type": "lending", "model": "{{ get_where_subquery(ref('silver_lending__complete_lending_liquidations')) }}"}, "namespace": null}, "database": "polygon", "schema": "curated_recency_defi_silver_lending", "name": "curated_recency_defi_silver_lending__complete_lending_liquidations_7_5__90__lending", "resource_type": "test", "package_name": "fsc_evm", "path": "curated_recency_defi_silver_le_a761249ec54a62c18e796289351c64ce.sql", "original_file_path": "models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml", "unique_id": "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_liquidations_7_5__90__lending.9c7fe9d27d", "fqn": ["fsc_evm", "curated_package", "defi", "lending", "silver", "complete_lending", "curated_recency_defi_silver_lending__complete_lending_liquidations_7_5__90__lending"], "alias": "complete_lending_liquidations_7_5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "curated_recency_defi_silver_le_a761249ec54a62c18e796289351c64ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "curated_recency_defi_silver_le_a761249ec54a62c18e796289351c64ce", "store_failures": true}, "created_at": 1764018442.1932685, "relation_name": "polygon.curated_recency_defi_silver_lending.complete_lending_liquidations_7_5", "raw_code": "{{ test_curated_recency_defi(**_dbt_generic_test_kwargs) }}{{ config(alias=\"curated_recency_defi_silver_le_a761249ec54a62c18e796289351c64ce\") }}", "language": "sql", "refs": [{"name": "silver_lending__complete_lending_liquidations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_curated_recency_defi", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_lending__complete_lending_liquidations"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/defi/lending/silver/complete_lending/silver_lending__complete_lending_liquidations.yml/curated_recency_defi_silver_le_a761249ec54a62c18e796289351c64ce.sql", "compiled": true, "compiled_code": "\n\n\n\n\nWITH source AS (\n SELECT\n platform,\n MAX(block_timestamp) AS latest_timestamp,\n SYSDATE() AS sys_ts,\n DATEADD('day', -90, SYSDATE()) AS threshold_ts,\n COUNT(\n CASE\n WHEN block_timestamp >= threshold_ts THEN 1 \n END) AS current_period_evt,\n CEIL(\n (\n COUNT(\n CASE\n WHEN block_timestamp >= DATEADD('day', -180, SYSDATE())\n AND block_timestamp < threshold_ts THEN 1\n END\n ) / 150.0\n ) * 30\n ) AS rolling_avg_evt,\n CASE\n WHEN rolling_avg_evt = 0 THEN 0\n ELSE ROUND((current_period_evt / rolling_avg_evt) * 100, 2)\n END AS percent_delta,\n 'lending' AS type\n FROM\n polygon.silver_lending.complete_lending_liquidations\n GROUP BY\n 1\n )\n SELECT\n platform,\n latest_timestamp,\n sys_ts,\n threshold_ts,\n current_period_evt,\n rolling_avg_evt,\n percent_delta,\n type\n FROM\n source\n WHERE\n (latest_timestamp < threshold_ts \n OR (percent_delta < 7.5 AND percent_delta <> 0))\n \n AND platform NOT IN ('aave-v2')\n \n-- failure to meet threshold requires manual review to determine if\n-- the protocol has newly deployed contracts, stale contracts, etc.\n-- if this is the case, the test should not apply to the relevant model(s)\n-- percent_delta shows current period performance vs rolling average\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_lending__complete_lending_liquidations", "attached_node": "model.fsc_evm.silver_lending__complete_lending_liquidations"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR.efdb4b7e98": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP_HOUR", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stats", "name": "not_null_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR.efdb4b7e98", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "not_null_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR"], "alias": "core_metrics_hourly_BLOCK_TIMESTAMP_HOUR", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.2670887, "relation_name": "polygon.not_null_silver_stats.core_metrics_hourly_BLOCK_TIMESTAMP_HOUR", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/not_null_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stats.core_metrics_hourly\nwhere BLOCK_TIMESTAMP_HOUR is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP_HOUR", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR__TIMESTAMP_LTZ__TIMESTAMP_NTZ.5239671c2c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP_HOUR", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_7015e09721c7e27db55b77cd103a804c.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR__TIMESTAMP_LTZ__TIMESTAMP_NTZ.5239671c2c", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "core_metrics_hourly_BLOCK_TIMESTAMP_HOUR", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7015e09721c7e27db55b77cd103a804c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_7015e09721c7e27db55b77cd103a804c", "store_failures": true}, "created_at": 1764018442.269507, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats.core_metrics_hourly_BLOCK_TIMESTAMP_HOUR", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7015e09721c7e27db55b77cd103a804c\") }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/dbt_expectations_expect_column_7015e09721c7e27db55b77cd103a804c.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP_HOUR' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MIN' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MAX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_SUCCESS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_FAILED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_FROM_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_TO_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CORE_METRICS_HOURLY_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_TIMESTAMP_HOUR'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP_HOUR", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN.dcaaf4d14f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER_MIN", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stats", "name": "not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN.dcaaf4d14f", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN"], "alias": "core_metrics_hourly_BLOCK_NUMBER_MIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.2747083, "relation_name": "polygon.not_null_silver_stats.core_metrics_hourly_BLOCK_NUMBER_MIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stats.core_metrics_hourly\nwhere BLOCK_NUMBER_MIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER_MIN", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN__NUMBER__FLOAT.6733ed950e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER_MIN", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_284ce4b37a02e034f3270d6cf85f39b8.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN__NUMBER__FLOAT.6733ed950e", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN__NUMBER__FLOAT"], "alias": "core_metrics_hourly_BLOCK_NUMBER_MIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_284ce4b37a02e034f3270d6cf85f39b8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_284ce4b37a02e034f3270d6cf85f39b8", "store_failures": true}, "created_at": 1764018442.2768104, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats.core_metrics_hourly_BLOCK_NUMBER_MIN", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_284ce4b37a02e034f3270d6cf85f39b8\") }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/dbt_expectations_expect_column_284ce4b37a02e034f3270d6cf85f39b8.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP_HOUR' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MIN' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MAX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_SUCCESS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_FAILED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_FROM_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_TO_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CORE_METRICS_HOURLY_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER_MIN'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER_MIN", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX.60803e14ca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER_MAX", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stats", "name": "not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX.60803e14ca", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX"], "alias": "core_metrics_hourly_BLOCK_NUMBER_MAX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.2817852, "relation_name": "polygon.not_null_silver_stats.core_metrics_hourly_BLOCK_NUMBER_MAX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stats.core_metrics_hourly\nwhere BLOCK_NUMBER_MAX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER_MAX", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX__NUMBER__FLOAT.5f8ab0b092": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER_MAX", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_3e17396277ec4d93fe2e50b12e2d26cd.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX__NUMBER__FLOAT.5f8ab0b092", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX__NUMBER__FLOAT"], "alias": "core_metrics_hourly_BLOCK_NUMBER_MAX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3e17396277ec4d93fe2e50b12e2d26cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3e17396277ec4d93fe2e50b12e2d26cd", "store_failures": true}, "created_at": 1764018442.283986, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats.core_metrics_hourly_BLOCK_NUMBER_MAX", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3e17396277ec4d93fe2e50b12e2d26cd\") }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/dbt_expectations_expect_column_3e17396277ec4d93fe2e50b12e2d26cd.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP_HOUR' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MIN' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MAX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_SUCCESS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_FAILED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_FROM_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_TO_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CORE_METRICS_HOURLY_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_NUMBER_MAX'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER_MAX", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_COUNT.f303fa842b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_COUNT", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stats", "name": "not_null_silver_stats__core_metrics_hourly_BLOCK_COUNT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stats__core_metrics_hourly_BLOCK_COUNT.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_COUNT.f303fa842b", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "not_null_silver_stats__core_metrics_hourly_BLOCK_COUNT"], "alias": "core_metrics_hourly_BLOCK_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.2887936, "relation_name": "polygon.not_null_silver_stats.core_metrics_hourly_BLOCK_COUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/not_null_silver_stats__core_metrics_hourly_BLOCK_COUNT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stats.core_metrics_hourly\nwhere BLOCK_COUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_COUNT", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_COUNT__NUMBER__FLOAT.39578be186": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_COUNT", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_COUNT__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_87060c6cf8b732a7a8df63cc5fd5cfd4.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_COUNT__NUMBER__FLOAT.39578be186", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_COUNT__NUMBER__FLOAT"], "alias": "core_metrics_hourly_BLOCK_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_87060c6cf8b732a7a8df63cc5fd5cfd4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_87060c6cf8b732a7a8df63cc5fd5cfd4", "store_failures": true}, "created_at": 1764018442.2912285, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats.core_metrics_hourly_BLOCK_COUNT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_87060c6cf8b732a7a8df63cc5fd5cfd4\") }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/dbt_expectations_expect_column_87060c6cf8b732a7a8df63cc5fd5cfd4.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP_HOUR' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MIN' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MAX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_SUCCESS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_FAILED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_FROM_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_TO_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CORE_METRICS_HOURLY_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_COUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_COUNT", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT.866f191153": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRANSACTION_COUNT", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stats", "name": "not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT.866f191153", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT"], "alias": "core_metrics_hourly_TRANSACTION_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.2958126, "relation_name": "polygon.not_null_silver_stats.core_metrics_hourly_TRANSACTION_COUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stats.core_metrics_hourly\nwhere TRANSACTION_COUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRANSACTION_COUNT", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT__NUMBER__FLOAT.5a8e6e8880": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TRANSACTION_COUNT", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_38ec3ccc685cccd018097c3f145dc04e.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT__NUMBER__FLOAT.5a8e6e8880", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT__NUMBER__FLOAT"], "alias": "core_metrics_hourly_TRANSACTION_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_38ec3ccc685cccd018097c3f145dc04e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_38ec3ccc685cccd018097c3f145dc04e", "store_failures": true}, "created_at": 1764018442.2979436, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats.core_metrics_hourly_TRANSACTION_COUNT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_38ec3ccc685cccd018097c3f145dc04e\") }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/dbt_expectations_expect_column_38ec3ccc685cccd018097c3f145dc04e.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP_HOUR' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MIN' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MAX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_SUCCESS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_FAILED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_FROM_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_TO_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CORE_METRICS_HOURLY_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TRANSACTION_COUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRANSACTION_COUNT", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_SUCCESS.5b82a449dd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRANSACTION_COUNT_SUCCESS", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stats", "name": "not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_SUCCESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stats__core_me_e9b00ef99fc6ea74d437ae3b63b5c63e.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_SUCCESS.5b82a449dd", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_SUCCESS"], "alias": "core_metrics_hourly_TRANSACTION_COUNT_SUCCESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_stats__core_me_e9b00ef99fc6ea74d437ae3b63b5c63e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_stats__core_me_e9b00ef99fc6ea74d437ae3b63b5c63e", "store_failures": true}, "created_at": 1764018442.3027487, "relation_name": "polygon.not_null_silver_stats.core_metrics_hourly_TRANSACTION_COUNT_SUCCESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_stats__core_me_e9b00ef99fc6ea74d437ae3b63b5c63e\") }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/not_null_silver_stats__core_me_e9b00ef99fc6ea74d437ae3b63b5c63e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stats.core_metrics_hourly\nwhere TRANSACTION_COUNT_SUCCESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRANSACTION_COUNT_SUCCESS", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_SUCCESS__NUMBER__FLOAT.c5d0b2cc33": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TRANSACTION_COUNT_SUCCESS", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_SUCCESS__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_559f31cf8562db50983ff70a416112db.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_SUCCESS__NUMBER__FLOAT.c5d0b2cc33", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_SUCCESS__NUMBER__FLOAT"], "alias": "core_metrics_hourly_TRANSACTION_COUNT_SUCCESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_559f31cf8562db50983ff70a416112db", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_559f31cf8562db50983ff70a416112db", "store_failures": true}, "created_at": 1764018442.304883, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats.core_metrics_hourly_TRANSACTION_COUNT_SUCCESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_559f31cf8562db50983ff70a416112db\") }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/dbt_expectations_expect_column_559f31cf8562db50983ff70a416112db.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP_HOUR' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MIN' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MAX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_SUCCESS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_FAILED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_FROM_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_TO_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CORE_METRICS_HOURLY_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TRANSACTION_COUNT_SUCCESS'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRANSACTION_COUNT_SUCCESS", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_FAILED.4fe1d21e07": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRANSACTION_COUNT_FAILED", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stats", "name": "not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_FAILED", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stats__core_me_340f848aaa40e25d2c02248da9e484c7.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_FAILED.4fe1d21e07", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_FAILED"], "alias": "core_metrics_hourly_TRANSACTION_COUNT_FAILED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver_stats__core_me_340f848aaa40e25d2c02248da9e484c7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver_stats__core_me_340f848aaa40e25d2c02248da9e484c7", "store_failures": true}, "created_at": 1764018442.3101842, "relation_name": "polygon.not_null_silver_stats.core_metrics_hourly_TRANSACTION_COUNT_FAILED", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver_stats__core_me_340f848aaa40e25d2c02248da9e484c7\") }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/not_null_silver_stats__core_me_340f848aaa40e25d2c02248da9e484c7.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stats.core_metrics_hourly\nwhere TRANSACTION_COUNT_FAILED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRANSACTION_COUNT_FAILED", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_FAILED__NUMBER__FLOAT.5f9df371b1": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TRANSACTION_COUNT_FAILED", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_FAILED__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_d4b40f346b91ed15287fa1b3b77fb812.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_FAILED__NUMBER__FLOAT.5f9df371b1", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_FAILED__NUMBER__FLOAT"], "alias": "core_metrics_hourly_TRANSACTION_COUNT_FAILED", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d4b40f346b91ed15287fa1b3b77fb812", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d4b40f346b91ed15287fa1b3b77fb812", "store_failures": true}, "created_at": 1764018442.3123405, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats.core_metrics_hourly_TRANSACTION_COUNT_FAILED", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d4b40f346b91ed15287fa1b3b77fb812\") }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/dbt_expectations_expect_column_d4b40f346b91ed15287fa1b3b77fb812.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP_HOUR' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MIN' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MAX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_SUCCESS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_FAILED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_FROM_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_TO_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CORE_METRICS_HOURLY_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TRANSACTION_COUNT_FAILED'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TRANSACTION_COUNT_FAILED", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT.1e73e0a934": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "UNIQUE_FROM_COUNT", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stats", "name": "not_null_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT.1e73e0a934", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "not_null_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT"], "alias": "core_metrics_hourly_UNIQUE_FROM_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.317004, "relation_name": "polygon.not_null_silver_stats.core_metrics_hourly_UNIQUE_FROM_COUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/not_null_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stats.core_metrics_hourly\nwhere UNIQUE_FROM_COUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "UNIQUE_FROM_COUNT", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT__NUMBER__FLOAT.225f59bd1e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "UNIQUE_FROM_COUNT", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_b3fadd8eba961e59d6310a6a774690fd.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT__NUMBER__FLOAT.225f59bd1e", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT__NUMBER__FLOAT"], "alias": "core_metrics_hourly_UNIQUE_FROM_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b3fadd8eba961e59d6310a6a774690fd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b3fadd8eba961e59d6310a6a774690fd", "store_failures": true}, "created_at": 1764018442.3194551, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats.core_metrics_hourly_UNIQUE_FROM_COUNT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b3fadd8eba961e59d6310a6a774690fd\") }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/dbt_expectations_expect_column_b3fadd8eba961e59d6310a6a774690fd.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP_HOUR' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MIN' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MAX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_SUCCESS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_FAILED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_FROM_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_TO_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CORE_METRICS_HOURLY_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'UNIQUE_FROM_COUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "UNIQUE_FROM_COUNT", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT.d64e239e23": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "UNIQUE_TO_COUNT", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stats", "name": "not_null_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT.d64e239e23", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "not_null_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT"], "alias": "core_metrics_hourly_UNIQUE_TO_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.3240893, "relation_name": "polygon.not_null_silver_stats.core_metrics_hourly_UNIQUE_TO_COUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/not_null_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stats.core_metrics_hourly\nwhere UNIQUE_TO_COUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "UNIQUE_TO_COUNT", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT__NUMBER__FLOAT.4cd5081b32": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "UNIQUE_TO_COUNT", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_0af8d35ca7aef46bf8d5baf13bc3b68c.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT__NUMBER__FLOAT.4cd5081b32", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT__NUMBER__FLOAT"], "alias": "core_metrics_hourly_UNIQUE_TO_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0af8d35ca7aef46bf8d5baf13bc3b68c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0af8d35ca7aef46bf8d5baf13bc3b68c", "store_failures": true}, "created_at": 1764018442.3262017, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats.core_metrics_hourly_UNIQUE_TO_COUNT", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0af8d35ca7aef46bf8d5baf13bc3b68c\") }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/dbt_expectations_expect_column_0af8d35ca7aef46bf8d5baf13bc3b68c.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP_HOUR' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MIN' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MAX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_SUCCESS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_FAILED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_FROM_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_TO_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CORE_METRICS_HOURLY_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'UNIQUE_TO_COUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "UNIQUE_TO_COUNT", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TOTAL_FEES.558b8cb0c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_FEES", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver_stats", "name": "not_null_silver_stats__core_metrics_hourly_TOTAL_FEES", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver_stats__core_metrics_hourly_TOTAL_FEES.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TOTAL_FEES.558b8cb0c7", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "not_null_silver_stats__core_metrics_hourly_TOTAL_FEES"], "alias": "core_metrics_hourly_TOTAL_FEES", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.3310337, "relation_name": "polygon.not_null_silver_stats.core_metrics_hourly_TOTAL_FEES", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/not_null_silver_stats__core_metrics_hourly_TOTAL_FEES.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver_stats.core_metrics_hourly\nwhere TOTAL_FEES is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TOTAL_FEES__DECIMAL__FLOAT__NUMBER.ada34dd6db": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["DECIMAL", "FLOAT", "NUMBER"], "column_name": "TOTAL_FEES", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TOTAL_FEES__DECIMAL__FLOAT__NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_d58577ff63990d3053a2133fc7f9acda.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TOTAL_FEES__DECIMAL__FLOAT__NUMBER.ada34dd6db", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TOTAL_FEES__DECIMAL__FLOAT__NUMBER"], "alias": "core_metrics_hourly_TOTAL_FEES", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d58577ff63990d3053a2133fc7f9acda", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d58577ff63990d3053a2133fc7f9acda", "store_failures": true}, "created_at": 1764018442.3331795, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats.core_metrics_hourly_TOTAL_FEES", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d58577ff63990d3053a2133fc7f9acda\") }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/dbt_expectations_expect_column_d58577ff63990d3053a2133fc7f9acda.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_TIMESTAMP_HOUR' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MIN' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_NUMBER_MAX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_SUCCESS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSACTION_COUNT_FAILED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_FROM_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_TO_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_FEES' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('CORE_METRICS_HOURLY_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_FEES'\n and\n relation_column_type not in ('DECIMAL', 'FLOAT', 'NUMBER')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_FEES", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stats__core_metrics_hourly__INSERTED_TIMESTAMP__day__1.874a5937d5": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver_stats", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver_stats__core_metrics_hourly__INSERTED_TIMESTAMP__day__1", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_56a2a6ad0e294fe99284b9241be2e6db.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stats__core_metrics_hourly__INSERTED_TIMESTAMP__day__1.874a5937d5", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver_stats__core_metrics_hourly__INSERTED_TIMESTAMP__day__1"], "alias": "core_metrics_hourly", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_56a2a6ad0e294fe99284b9241be2e6db", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_56a2a6ad0e294fe99284b9241be2e6db", "store_failures": true}, "created_at": 1764018442.3380873, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver_stats.core_metrics_hourly", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_56a2a6ad0e294fe99284b9241be2e6db\") }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/dbt_expectations_expect_row_va_56a2a6ad0e294fe99284b9241be2e6db.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver_stats.core_metrics_hourly\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR.0797e73b88": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BLOCK_TIMESTAMP_HOUR"], "model": "{{ get_where_subquery(ref('silver_stats__core_metrics_hourly')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver_stats", "name": "dbt_utils_unique_combination_of_columns_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_79034807350e88d26ae38552c59ff923.sql", "original_file_path": "models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR.0797e73b88", "fqn": ["fsc_evm", "curated_package", "stats", "silver", "dbt_utils_unique_combination_of_columns_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR"], "alias": "core_metrics_hourly_BLOCK_TIMESTAMP_HOUR", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_79034807350e88d26ae38552c59ff923", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_79034807350e88d26ae38552c59ff923", "store_failures": true}, "created_at": 1764018442.3454826, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver_stats.core_metrics_hourly_BLOCK_TIMESTAMP_HOUR", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_79034807350e88d26ae38552c59ff923\") }}", "language": "sql", "refs": [{"name": "silver_stats__core_metrics_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver_stats__core_metrics_hourly"]}, "compiled_path": "target/compiled/fsc_evm/models/curated_package/stats/silver/silver_stats__core_metrics_hourly.yml/dbt_utils_unique_combination_o_79034807350e88d26ae38552c59ff923.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n BLOCK_TIMESTAMP_HOUR\n from polygon.silver_stats.core_metrics_hourly\n group by BLOCK_TIMESTAMP_HOUR\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver_stats__core_metrics_hourly", "attached_node": "model.fsc_evm.silver_stats__core_metrics_hourly"}, "test.fsc_evm.not_null_silver__balances_erc20_daily_BLOCK_DATE.b0c7b4b5bc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('silver__balances_erc20_daily')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__balances_erc20_daily_BLOCK_DATE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__balances_erc20_daily_BLOCK_DATE.sql", "original_file_path": "models/balances_package/erc20/silver/silver__balances_erc20_daily.yml", "unique_id": "test.fsc_evm.not_null_silver__balances_erc20_daily_BLOCK_DATE.b0c7b4b5bc", "fqn": ["fsc_evm", "balances_package", "erc20", "silver", "not_null_silver__balances_erc20_daily_BLOCK_DATE"], "alias": "balances_erc20_daily_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.3839312, "relation_name": "polygon.not_null_silver.balances_erc20_daily_BLOCK_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balances_erc20_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__balances_erc20_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/silver/silver__balances_erc20_daily.yml/not_null_silver__balances_erc20_daily_BLOCK_DATE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.balances_erc20_daily\nwhere BLOCK_DATE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.silver__balances_erc20_daily", "attached_node": "model.fsc_evm.silver__balances_erc20_daily"}, "test.fsc_evm.not_null_silver__balances_erc20_daily_ADDRESS.d149b58851": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('silver__balances_erc20_daily')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__balances_erc20_daily_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__balances_erc20_daily_ADDRESS.sql", "original_file_path": "models/balances_package/erc20/silver/silver__balances_erc20_daily.yml", "unique_id": "test.fsc_evm.not_null_silver__balances_erc20_daily_ADDRESS.d149b58851", "fqn": ["fsc_evm", "balances_package", "erc20", "silver", "not_null_silver__balances_erc20_daily_ADDRESS"], "alias": "balances_erc20_daily_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.3862095, "relation_name": "polygon.not_null_silver.balances_erc20_daily_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balances_erc20_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__balances_erc20_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/silver/silver__balances_erc20_daily.yml/not_null_silver__balances_erc20_daily_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.balances_erc20_daily\nwhere ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.silver__balances_erc20_daily", "attached_node": "model.fsc_evm.silver__balances_erc20_daily"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_erc20_daily_ADDRESS__0_xX_0_9a_fA_F_.a753ef793c": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('silver__balances_erc20_daily')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__balances_erc20_daily_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_41091ebd8ee893687af5c59e36d3e89b.sql", "original_file_path": "models/balances_package/erc20/silver/silver__balances_erc20_daily.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_erc20_daily_ADDRESS__0_xX_0_9a_fA_F_.a753ef793c", "fqn": ["fsc_evm", "balances_package", "erc20", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__balances_erc20_daily_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "balances_erc20_daily_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_41091ebd8ee893687af5c59e36d3e89b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_41091ebd8ee893687af5c59e36d3e89b", "store_failures": true}, "created_at": 1764018442.3883321, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.balances_erc20_daily_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_41091ebd8ee893687af5c59e36d3e89b\") }}", "language": "sql", "refs": [{"name": "silver__balances_erc20_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__balances_erc20_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/silver/silver__balances_erc20_daily.yml/dbt_expectations_expect_column_41091ebd8ee893687af5c59e36d3e89b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.balances_erc20_daily\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.silver__balances_erc20_daily", "attached_node": "model.fsc_evm.silver__balances_erc20_daily"}, "test.fsc_evm.not_null_silver__balances_erc20_daily_CONTRACT_ADDRESS.43c650bfd7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__balances_erc20_daily')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__balances_erc20_daily_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__balances_erc20_daily_CONTRACT_ADDRESS.sql", "original_file_path": "models/balances_package/erc20/silver/silver__balances_erc20_daily.yml", "unique_id": "test.fsc_evm.not_null_silver__balances_erc20_daily_CONTRACT_ADDRESS.43c650bfd7", "fqn": ["fsc_evm", "balances_package", "erc20", "silver", "not_null_silver__balances_erc20_daily_CONTRACT_ADDRESS"], "alias": "balances_erc20_daily_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.3936405, "relation_name": "polygon.not_null_silver.balances_erc20_daily_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balances_erc20_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__balances_erc20_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/silver/silver__balances_erc20_daily.yml/not_null_silver__balances_erc20_daily_CONTRACT_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.balances_erc20_daily\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver__balances_erc20_daily", "attached_node": "model.fsc_evm.silver__balances_erc20_daily"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_erc20_daily_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.c31e06bdbd": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__balances_erc20_daily')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__balances_erc20_daily_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_8cb7cd1cdf7dcf3c20c8914b4cf4b393.sql", "original_file_path": "models/balances_package/erc20/silver/silver__balances_erc20_daily.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_erc20_daily_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.c31e06bdbd", "fqn": ["fsc_evm", "balances_package", "erc20", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__balances_erc20_daily_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "balances_erc20_daily_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8cb7cd1cdf7dcf3c20c8914b4cf4b393", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_8cb7cd1cdf7dcf3c20c8914b4cf4b393", "store_failures": true}, "created_at": 1764018442.3957472, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.balances_erc20_daily_CONTRACT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8cb7cd1cdf7dcf3c20c8914b4cf4b393\") }}", "language": "sql", "refs": [{"name": "silver__balances_erc20_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__balances_erc20_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/silver/silver__balances_erc20_daily.yml/dbt_expectations_expect_column_8cb7cd1cdf7dcf3c20c8914b4cf4b393.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.balances_erc20_daily\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver__balances_erc20_daily", "attached_node": "model.fsc_evm.silver__balances_erc20_daily"}, "test.fsc_evm.not_null_silver__balances_erc20_daily_BALANCE_HEX.4b0eb04af8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BALANCE_HEX", "model": "{{ get_where_subquery(ref('silver__balances_erc20_daily')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__balances_erc20_daily_BALANCE_HEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__balances_erc20_daily_BALANCE_HEX.sql", "original_file_path": "models/balances_package/erc20/silver/silver__balances_erc20_daily.yml", "unique_id": "test.fsc_evm.not_null_silver__balances_erc20_daily_BALANCE_HEX.4b0eb04af8", "fqn": ["fsc_evm", "balances_package", "erc20", "silver", "not_null_silver__balances_erc20_daily_BALANCE_HEX"], "alias": "balances_erc20_daily_BALANCE_HEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.4014258, "relation_name": "polygon.not_null_silver.balances_erc20_daily_BALANCE_HEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balances_erc20_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__balances_erc20_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/silver/silver__balances_erc20_daily.yml/not_null_silver__balances_erc20_daily_BALANCE_HEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.balances_erc20_daily\nwhere BALANCE_HEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BALANCE_HEX", "file_key_name": "models.silver__balances_erc20_daily", "attached_node": "model.fsc_evm.silver__balances_erc20_daily"}, "test.fsc_evm.not_null_silver__balances_erc20_daily__INSERTED_TIMESTAMP.30b89c0c1d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__balances_erc20_daily')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__balances_erc20_daily__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__balances_erc20_daily__INSERTED_TIMESTAMP.sql", "original_file_path": "models/balances_package/erc20/silver/silver__balances_erc20_daily.yml", "unique_id": "test.fsc_evm.not_null_silver__balances_erc20_daily__INSERTED_TIMESTAMP.30b89c0c1d", "fqn": ["fsc_evm", "balances_package", "erc20", "silver", "not_null_silver__balances_erc20_daily__INSERTED_TIMESTAMP"], "alias": "balances_erc20_daily", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.4035347, "relation_name": "polygon.not_null_silver.balances_erc20_daily", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balances_erc20_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__balances_erc20_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/silver/silver__balances_erc20_daily.yml/not_null_silver__balances_erc20_daily__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.balances_erc20_daily\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__balances_erc20_daily", "attached_node": "model.fsc_evm.silver__balances_erc20_daily"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver__balances_erc20_daily__INSERTED_TIMESTAMP__day__2.2e99af10ca": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__balances_erc20_daily')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__balances_erc20_daily__INSERTED_TIMESTAMP__day__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_918e5f681070f3b05e7131fc7590db8e.sql", "original_file_path": "models/balances_package/erc20/silver/silver__balances_erc20_daily.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver__balances_erc20_daily__INSERTED_TIMESTAMP__day__2.2e99af10ca", "fqn": ["fsc_evm", "balances_package", "erc20", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__balances_erc20_daily__INSERTED_TIMESTAMP__day__2"], "alias": "balances_erc20_daily", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_918e5f681070f3b05e7131fc7590db8e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_918e5f681070f3b05e7131fc7590db8e", "store_failures": true}, "created_at": 1764018442.4055953, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver.balances_erc20_daily", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_918e5f681070f3b05e7131fc7590db8e\") }}", "language": "sql", "refs": [{"name": "silver__balances_erc20_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__balances_erc20_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/silver/silver__balances_erc20_daily.yml/dbt_expectations_expect_row_va_918e5f681070f3b05e7131fc7590db8e.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver.balances_erc20_daily\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__balances_erc20_daily", "attached_node": "model.fsc_evm.silver__balances_erc20_daily"}, "test.fsc_evm.not_null_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID.aebeb06687": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BALANCES_ERC20_DAILY_ID", "model": "{{ get_where_subquery(ref('silver__balances_erc20_daily')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID.sql", "original_file_path": "models/balances_package/erc20/silver/silver__balances_erc20_daily.yml", "unique_id": "test.fsc_evm.not_null_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID.aebeb06687", "fqn": ["fsc_evm", "balances_package", "erc20", "silver", "not_null_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID"], "alias": "balances_erc20_daily_BALANCES_ERC20_DAILY_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.413258, "relation_name": "polygon.not_null_silver.balances_erc20_daily_BALANCES_ERC20_DAILY_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balances_erc20_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__balances_erc20_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/silver/silver__balances_erc20_daily.yml/not_null_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.balances_erc20_daily\nwhere BALANCES_ERC20_DAILY_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BALANCES_ERC20_DAILY_ID", "file_key_name": "models.silver__balances_erc20_daily", "attached_node": "model.fsc_evm.silver__balances_erc20_daily"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID.f7783664d9": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BALANCES_ERC20_DAILY_ID"], "model": "{{ get_where_subquery(ref('silver__balances_erc20_daily')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_c94767393366d9c0348cff4fc51e3e37.sql", "original_file_path": "models/balances_package/erc20/silver/silver__balances_erc20_daily.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID.f7783664d9", "fqn": ["fsc_evm", "balances_package", "erc20", "silver", "dbt_utils_unique_combination_of_columns_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID"], "alias": "balances_erc20_daily_BALANCES_ERC20_DAILY_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c94767393366d9c0348cff4fc51e3e37", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c94767393366d9c0348cff4fc51e3e37", "store_failures": true}, "created_at": 1764018442.41537, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.balances_erc20_daily_BALANCES_ERC20_DAILY_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c94767393366d9c0348cff4fc51e3e37\") }}", "language": "sql", "refs": [{"name": "silver__balances_erc20_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__balances_erc20_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/silver/silver__balances_erc20_daily.yml/dbt_utils_unique_combination_o_c94767393366d9c0348cff4fc51e3e37.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n BALANCES_ERC20_DAILY_ID\n from polygon.silver.balances_erc20_daily\n group by BALANCES_ERC20_DAILY_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__balances_erc20_daily", "attached_node": "model.fsc_evm.silver__balances_erc20_daily"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE.23211ae498": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE.23211ae498", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "not_null_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE"], "alias": "ez_balances_erc20_daily_recent_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.424328, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_daily_recent_BLOCK_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml/not_null_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_balances_erc20_daily_recent\nwhere BLOCK_DATE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.test_gold__ez_balances_erc20_daily_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE__day__2.8b5344e6a7": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE__day__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_86ce44287ce0b249042be89e6c89d2d3.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE__day__2.8b5344e6a7", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE__day__2"], "alias": "ez_balances_erc20_daily_recent_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_86ce44287ce0b249042be89e6c89d2d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_86ce44287ce0b249042be89e6c89d2d3", "store_failures": true}, "created_at": 1764018442.4265032, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_balances_erc20_daily_recent_BLOCK_DATE", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_86ce44287ce0b249042be89e6c89d2d3\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml/dbt_expectations_expect_row_va_86ce44287ce0b249042be89e6c89d2d3.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_DATE as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.ez_balances_erc20_daily_recent\n where\n -- to exclude erroneous future dates\n cast(BLOCK_DATE as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.test_gold__ez_balances_erc20_daily_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_ADDRESS.d54ed6a481": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_daily_recent_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_daily_recent_ADDRESS.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_ADDRESS.d54ed6a481", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "not_null_test_gold__ez_balances_erc20_daily_recent_ADDRESS"], "alias": "ez_balances_erc20_daily_recent_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.4343536, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_daily_recent_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml/not_null_test_gold__ez_balances_erc20_daily_recent_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_balances_erc20_daily_recent\nwhere ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.test_gold__ez_balances_erc20_daily_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_recent_ADDRESS__0_xX_0_9a_fA_F_.2358d27b0b": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_recent_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_c247f1a9441ca06172f3240e5b2d79a8.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_recent_ADDRESS__0_xX_0_9a_fA_F_.2358d27b0b", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_recent_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_balances_erc20_daily_recent_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c247f1a9441ca06172f3240e5b2d79a8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c247f1a9441ca06172f3240e5b2d79a8", "store_failures": true}, "created_at": 1764018442.4364924, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_balances_erc20_daily_recent_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c247f1a9441ca06172f3240e5b2d79a8\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml/dbt_expectations_expect_column_c247f1a9441ca06172f3240e5b2d79a8.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_balances_erc20_daily_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.test_gold__ez_balances_erc20_daily_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_DECIMALS.cf741a0564": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DECIMALS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_daily_recent_DECIMALS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_daily_recent_DECIMALS.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_DECIMALS.cf741a0564", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "not_null_test_gold__ez_balances_erc20_daily_recent_DECIMALS"], "alias": "ez_balances_erc20_daily_recent_DECIMALS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.4419544, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_daily_recent_DECIMALS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml/not_null_test_gold__ez_balances_erc20_daily_recent_DECIMALS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_balances_erc20_daily_recent\nwhere DECIMALS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DECIMALS", "file_key_name": "models.test_gold__ez_balances_erc20_daily_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_SYMBOL.664ff4bcfa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SYMBOL", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_daily_recent_SYMBOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_daily_recent_SYMBOL.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_SYMBOL.664ff4bcfa", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "not_null_test_gold__ez_balances_erc20_daily_recent_SYMBOL"], "alias": "ez_balances_erc20_daily_recent_SYMBOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.444082, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_daily_recent_SYMBOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml/not_null_test_gold__ez_balances_erc20_daily_recent_SYMBOL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_balances_erc20_daily_recent\nwhere SYMBOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SYMBOL", "file_key_name": "models.test_gold__ez_balances_erc20_daily_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_CONTRACT_ADDRESS.572c2ff2c0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_daily_recent_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balance_a2663579a815eaed32ed8decb668884e.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_CONTRACT_ADDRESS.572c2ff2c0", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "not_null_test_gold__ez_balances_erc20_daily_recent_CONTRACT_ADDRESS"], "alias": "ez_balances_erc20_daily_recent_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_balance_a2663579a815eaed32ed8decb668884e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_balance_a2663579a815eaed32ed8decb668884e", "store_failures": true}, "created_at": 1764018442.4461796, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_daily_recent_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_balance_a2663579a815eaed32ed8decb668884e\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml/not_null_test_gold__ez_balance_a2663579a815eaed32ed8decb668884e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_balances_erc20_daily_recent\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_gold__ez_balances_erc20_daily_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2789060087": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_f9d1ee1478b3e184b439a2ae8826d93e.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2789060087", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_balances_erc20_daily_recent_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f9d1ee1478b3e184b439a2ae8826d93e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f9d1ee1478b3e184b439a2ae8826d93e", "store_failures": true}, "created_at": 1764018442.448275, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_balances_erc20_daily_recent_CONTRACT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f9d1ee1478b3e184b439a2ae8826d93e\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml/dbt_expectations_expect_column_f9d1ee1478b3e184b439a2ae8826d93e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_balances_erc20_daily_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_gold__ez_balances_erc20_daily_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_daily_recent_BALANCE__NUMBER__FLOAT.ad56fe9d44": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BALANCE", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_daily_recent_BALANCE__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_0e4f088f453c95a547759c7491fb9ed6.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_daily_recent_BALANCE__NUMBER__FLOAT.ad56fe9d44", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_daily_recent_BALANCE__NUMBER__FLOAT"], "alias": "ez_balances_erc20_daily_recent_BALANCE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0e4f088f453c95a547759c7491fb9ed6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0e4f088f453c95a547759c7491fb9ed6", "store_failures": true}, "created_at": 1764018442.4539356, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_balances_erc20_daily_recent_BALANCE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0e4f088f453c95a547759c7491fb9ed6\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml/dbt_expectations_expect_column_0e4f088f453c95a547759c7491fb9ed6.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_DATE' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECIMALS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE_HEX' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_BALANCES_ERC20_DAILY_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BALANCE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BALANCE", "file_key_name": "models.test_gold__ez_balances_erc20_daily_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID.5275f2f741": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EZ_BALANCES_ERC20_DAILY_ID", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balance_bd5f3b692c0a3594fab2a039ac64452e.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID.5275f2f741", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "not_null_test_gold__ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID"], "alias": "ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_balance_bd5f3b692c0a3594fab2a039ac64452e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_balance_bd5f3b692c0a3594fab2a039ac64452e", "store_failures": true}, "created_at": 1764018442.458645, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_balance_bd5f3b692c0a3594fab2a039ac64452e\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml/not_null_test_gold__ez_balance_bd5f3b692c0a3594fab2a039ac64452e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_balances_erc20_daily_recent\nwhere EZ_BALANCES_ERC20_DAILY_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EZ_BALANCES_ERC20_DAILY_ID", "file_key_name": "models.test_gold__ez_balances_erc20_daily_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID.203984c885": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["EZ_BALANCES_ERC20_DAILY_ID"], "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_6409f7a7b9bbd1bc32694514a14469a4.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID.203984c885", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID"], "alias": "ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6409f7a7b9bbd1bc32694514a14469a4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6409f7a7b9bbd1bc32694514a14469a4", "store_failures": true}, "created_at": 1764018442.461161, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6409f7a7b9bbd1bc32694514a14469a4\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_recent.yml/dbt_utils_unique_combination_o_6409f7a7b9bbd1bc32694514a14469a4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n EZ_BALANCES_ERC20_DAILY_ID\n from polygon.test_gold.ez_balances_erc20_daily_recent\n group by EZ_BALANCES_ERC20_DAILY_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_balances_erc20_daily_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE.87397d3b88": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE.87397d3b88", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "not_null_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE"], "alias": "ez_balances_erc20_daily_full_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.467479, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_daily_full_BLOCK_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml/not_null_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_balances_erc20_daily_full\nwhere BLOCK_DATE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.test_gold__ez_balances_erc20_daily_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE__day__2.3411cdaa78": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE__day__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_700181d61a6f3f3eebfa856268096bdf.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE__day__2.3411cdaa78", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE__day__2"], "alias": "ez_balances_erc20_daily_full_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_700181d61a6f3f3eebfa856268096bdf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_700181d61a6f3f3eebfa856268096bdf", "store_failures": true}, "created_at": 1764018442.4696586, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_balances_erc20_daily_full_BLOCK_DATE", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_700181d61a6f3f3eebfa856268096bdf\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml/dbt_expectations_expect_row_va_700181d61a6f3f3eebfa856268096bdf.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_DATE as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.ez_balances_erc20_daily_full\n where\n -- to exclude erroneous future dates\n cast(BLOCK_DATE as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.test_gold__ez_balances_erc20_daily_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_ADDRESS.df7ff69350": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_daily_full_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_daily_full_ADDRESS.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_ADDRESS.df7ff69350", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "not_null_test_gold__ez_balances_erc20_daily_full_ADDRESS"], "alias": "ez_balances_erc20_daily_full_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.477589, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_daily_full_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml/not_null_test_gold__ez_balances_erc20_daily_full_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_balances_erc20_daily_full\nwhere ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.test_gold__ez_balances_erc20_daily_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_full_ADDRESS__0_xX_0_9a_fA_F_.8b0fdb4db0": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_full_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_27ea82cba588480be35f64aa117dfd85.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_full_ADDRESS__0_xX_0_9a_fA_F_.8b0fdb4db0", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_full_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_balances_erc20_daily_full_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_27ea82cba588480be35f64aa117dfd85", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_27ea82cba588480be35f64aa117dfd85", "store_failures": true}, "created_at": 1764018442.4797187, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_balances_erc20_daily_full_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_27ea82cba588480be35f64aa117dfd85\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml/dbt_expectations_expect_column_27ea82cba588480be35f64aa117dfd85.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_balances_erc20_daily_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.test_gold__ez_balances_erc20_daily_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_DECIMALS.f902f9987b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DECIMALS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_daily_full_DECIMALS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_daily_full_DECIMALS.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_DECIMALS.f902f9987b", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "not_null_test_gold__ez_balances_erc20_daily_full_DECIMALS"], "alias": "ez_balances_erc20_daily_full_DECIMALS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.4851635, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_daily_full_DECIMALS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml/not_null_test_gold__ez_balances_erc20_daily_full_DECIMALS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_balances_erc20_daily_full\nwhere DECIMALS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DECIMALS", "file_key_name": "models.test_gold__ez_balances_erc20_daily_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_SYMBOL.8859925617": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SYMBOL", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_daily_full_SYMBOL", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_daily_full_SYMBOL.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_SYMBOL.8859925617", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "not_null_test_gold__ez_balances_erc20_daily_full_SYMBOL"], "alias": "ez_balances_erc20_daily_full_SYMBOL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.4873216, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_daily_full_SYMBOL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml/not_null_test_gold__ez_balances_erc20_daily_full_SYMBOL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_balances_erc20_daily_full\nwhere SYMBOL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SYMBOL", "file_key_name": "models.test_gold__ez_balances_erc20_daily_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_CONTRACT_ADDRESS.a29ab93899": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_daily_full_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balance_0f62138c1429d247e02996cabe23765a.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_CONTRACT_ADDRESS.a29ab93899", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "not_null_test_gold__ez_balances_erc20_daily_full_CONTRACT_ADDRESS"], "alias": "ez_balances_erc20_daily_full_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_balance_0f62138c1429d247e02996cabe23765a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_balance_0f62138c1429d247e02996cabe23765a", "store_failures": true}, "created_at": 1764018442.489421, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_daily_full_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_balance_0f62138c1429d247e02996cabe23765a\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml/not_null_test_gold__ez_balance_0f62138c1429d247e02996cabe23765a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_balances_erc20_daily_full\nwhere CONTRACT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_gold__ez_balances_erc20_daily_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.6539ed403f": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_c278052c17a4622adb406f7f68331cb7.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.6539ed403f", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_balances_erc20_daily_full_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c278052c17a4622adb406f7f68331cb7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c278052c17a4622adb406f7f68331cb7", "store_failures": true}, "created_at": 1764018442.4914868, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_balances_erc20_daily_full_CONTRACT_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c278052c17a4622adb406f7f68331cb7\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml/dbt_expectations_expect_column_c278052c17a4622adb406f7f68331cb7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(CONTRACT_ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_balances_erc20_daily_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_gold__ez_balances_erc20_daily_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_daily_full_BALANCE__NUMBER__FLOAT.ea1e0b7809": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BALANCE", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_daily_full_BALANCE__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_b7544078a4c0ed53da2b6082ca395b33.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_daily_full_BALANCE__NUMBER__FLOAT.ea1e0b7809", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_daily_full_BALANCE__NUMBER__FLOAT"], "alias": "ez_balances_erc20_daily_full_BALANCE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b7544078a4c0ed53da2b6082ca395b33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b7544078a4c0ed53da2b6082ca395b33", "store_failures": true}, "created_at": 1764018442.497016, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_balances_erc20_daily_full_BALANCE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b7544078a4c0ed53da2b6082ca395b33\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml/dbt_expectations_expect_column_b7544078a4c0ed53da2b6082ca395b33.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_DATE' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CONTRACT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECIMALS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE_HEX' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_BALANCES_ERC20_DAILY_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BALANCE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BALANCE", "file_key_name": "models.test_gold__ez_balances_erc20_daily_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID.e0d083a055": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EZ_BALANCES_ERC20_DAILY_ID", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balance_b28f123c2c884fdf116f59605eab9fe7.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID.e0d083a055", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "not_null_test_gold__ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID"], "alias": "ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_balance_b28f123c2c884fdf116f59605eab9fe7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_balance_b28f123c2c884fdf116f59605eab9fe7", "store_failures": true}, "created_at": 1764018442.502895, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_balance_b28f123c2c884fdf116f59605eab9fe7\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml/not_null_test_gold__ez_balance_b28f123c2c884fdf116f59605eab9fe7.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_balances_erc20_daily_full\nwhere EZ_BALANCES_ERC20_DAILY_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EZ_BALANCES_ERC20_DAILY_ID", "file_key_name": "models.test_gold__ez_balances_erc20_daily_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID.1ac9a12106": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["EZ_BALANCES_ERC20_DAILY_ID"], "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_daily_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_252611854f28a510178363124dbbd8c3.sql", "original_file_path": "models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID.1ac9a12106", "fqn": ["fsc_evm", "balances_package", "erc20", "gold", "tests", "erc20", "dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID"], "alias": "ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_252611854f28a510178363124dbbd8c3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_252611854f28a510178363124dbbd8c3", "store_failures": true}, "created_at": 1764018442.5050573, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_252611854f28a510178363124dbbd8c3\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_daily_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/erc20/gold/tests/erc20/test_gold__ez_balances_erc20_daily_full.yml/dbt_utils_unique_combination_o_252611854f28a510178363124dbbd8c3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n EZ_BALANCES_ERC20_DAILY_ID\n from polygon.test_gold.ez_balances_erc20_daily_full\n group by EZ_BALANCES_ERC20_DAILY_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_balances_erc20_daily_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_daily_full"}, "test.fsc_evm.not_null_silver__balances_native_daily_BLOCK_DATE.5a051df8c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('silver__balances_native_daily')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__balances_native_daily_BLOCK_DATE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__balances_native_daily_BLOCK_DATE.sql", "original_file_path": "models/balances_package/native/silver/silver__balances_native_daily.yml", "unique_id": "test.fsc_evm.not_null_silver__balances_native_daily_BLOCK_DATE.5a051df8c7", "fqn": ["fsc_evm", "balances_package", "native", "silver", "not_null_silver__balances_native_daily_BLOCK_DATE"], "alias": "balances_native_daily_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.5113559, "relation_name": "polygon.not_null_silver.balances_native_daily_BLOCK_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balances_native_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__balances_native_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/silver/silver__balances_native_daily.yml/not_null_silver__balances_native_daily_BLOCK_DATE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.balances_native_daily\nwhere BLOCK_DATE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.silver__balances_native_daily", "attached_node": "model.fsc_evm.silver__balances_native_daily"}, "test.fsc_evm.not_null_silver__balances_native_daily_ADDRESS.525dc24b09": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('silver__balances_native_daily')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__balances_native_daily_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__balances_native_daily_ADDRESS.sql", "original_file_path": "models/balances_package/native/silver/silver__balances_native_daily.yml", "unique_id": "test.fsc_evm.not_null_silver__balances_native_daily_ADDRESS.525dc24b09", "fqn": ["fsc_evm", "balances_package", "native", "silver", "not_null_silver__balances_native_daily_ADDRESS"], "alias": "balances_native_daily_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.5137758, "relation_name": "polygon.not_null_silver.balances_native_daily_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balances_native_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__balances_native_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/silver/silver__balances_native_daily.yml/not_null_silver__balances_native_daily_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.balances_native_daily\nwhere ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.silver__balances_native_daily", "attached_node": "model.fsc_evm.silver__balances_native_daily"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_native_daily_ADDRESS__0_xX_0_9a_fA_F_.8a750d62a3": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('silver__balances_native_daily')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__balances_native_daily_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_ddd74a151ac8e01603e144066cc923da.sql", "original_file_path": "models/balances_package/native/silver/silver__balances_native_daily.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_native_daily_ADDRESS__0_xX_0_9a_fA_F_.8a750d62a3", "fqn": ["fsc_evm", "balances_package", "native", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__balances_native_daily_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "balances_native_daily_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ddd74a151ac8e01603e144066cc923da", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_ddd74a151ac8e01603e144066cc923da", "store_failures": true}, "created_at": 1764018442.5158315, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_silver.balances_native_daily_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ddd74a151ac8e01603e144066cc923da\") }}", "language": "sql", "refs": [{"name": "silver__balances_native_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__balances_native_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/silver/silver__balances_native_daily.yml/dbt_expectations_expect_column_ddd74a151ac8e01603e144066cc923da.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.silver.balances_native_daily\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.silver__balances_native_daily", "attached_node": "model.fsc_evm.silver__balances_native_daily"}, "test.fsc_evm.not_null_silver__balances_native_daily_BALANCE_HEX.ddd4dba7b9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BALANCE_HEX", "model": "{{ get_where_subquery(ref('silver__balances_native_daily')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__balances_native_daily_BALANCE_HEX", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__balances_native_daily_BALANCE_HEX.sql", "original_file_path": "models/balances_package/native/silver/silver__balances_native_daily.yml", "unique_id": "test.fsc_evm.not_null_silver__balances_native_daily_BALANCE_HEX.ddd4dba7b9", "fqn": ["fsc_evm", "balances_package", "native", "silver", "not_null_silver__balances_native_daily_BALANCE_HEX"], "alias": "balances_native_daily_BALANCE_HEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.5208766, "relation_name": "polygon.not_null_silver.balances_native_daily_BALANCE_HEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balances_native_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__balances_native_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/silver/silver__balances_native_daily.yml/not_null_silver__balances_native_daily_BALANCE_HEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.balances_native_daily\nwhere BALANCE_HEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BALANCE_HEX", "file_key_name": "models.silver__balances_native_daily", "attached_node": "model.fsc_evm.silver__balances_native_daily"}, "test.fsc_evm.not_null_silver__balances_native_daily__INSERTED_TIMESTAMP.ce964e9219": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__balances_native_daily')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__balances_native_daily__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__balances_native_daily__INSERTED_TIMESTAMP.sql", "original_file_path": "models/balances_package/native/silver/silver__balances_native_daily.yml", "unique_id": "test.fsc_evm.not_null_silver__balances_native_daily__INSERTED_TIMESTAMP.ce964e9219", "fqn": ["fsc_evm", "balances_package", "native", "silver", "not_null_silver__balances_native_daily__INSERTED_TIMESTAMP"], "alias": "balances_native_daily", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.523226, "relation_name": "polygon.not_null_silver.balances_native_daily", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balances_native_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__balances_native_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/silver/silver__balances_native_daily.yml/not_null_silver__balances_native_daily__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.balances_native_daily\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__balances_native_daily", "attached_node": "model.fsc_evm.silver__balances_native_daily"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver__balances_native_daily__INSERTED_TIMESTAMP__day__2.0117687deb": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__balances_native_daily')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__balances_native_daily__INSERTED_TIMESTAMP__day__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_eafb0ac4c8f952ab03b4af9b1926a41b.sql", "original_file_path": "models/balances_package/native/silver/silver__balances_native_daily.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver__balances_native_daily__INSERTED_TIMESTAMP__day__2.0117687deb", "fqn": ["fsc_evm", "balances_package", "native", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__balances_native_daily__INSERTED_TIMESTAMP__day__2"], "alias": "balances_native_daily", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_eafb0ac4c8f952ab03b4af9b1926a41b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_eafb0ac4c8f952ab03b4af9b1926a41b", "store_failures": true}, "created_at": 1764018442.5253131, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_silver.balances_native_daily", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_eafb0ac4c8f952ab03b4af9b1926a41b\") }}", "language": "sql", "refs": [{"name": "silver__balances_native_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__balances_native_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/silver/silver__balances_native_daily.yml/dbt_expectations_expect_row_va_eafb0ac4c8f952ab03b4af9b1926a41b.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n polygon.silver.balances_native_daily\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__balances_native_daily", "attached_node": "model.fsc_evm.silver__balances_native_daily"}, "test.fsc_evm.not_null_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID.96649214c0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BALANCES_NATIVE_DAILY_ID", "model": "{{ get_where_subquery(ref('silver__balances_native_daily')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID.sql", "original_file_path": "models/balances_package/native/silver/silver__balances_native_daily.yml", "unique_id": "test.fsc_evm.not_null_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID.96649214c0", "fqn": ["fsc_evm", "balances_package", "native", "silver", "not_null_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID"], "alias": "balances_native_daily_BALANCES_NATIVE_DAILY_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.5329897, "relation_name": "polygon.not_null_silver.balances_native_daily_BALANCES_NATIVE_DAILY_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balances_native_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__balances_native_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/silver/silver__balances_native_daily.yml/not_null_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.silver.balances_native_daily\nwhere BALANCES_NATIVE_DAILY_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BALANCES_NATIVE_DAILY_ID", "file_key_name": "models.silver__balances_native_daily", "attached_node": "model.fsc_evm.silver__balances_native_daily"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID.1832bc6fd4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BALANCES_NATIVE_DAILY_ID"], "model": "{{ get_where_subquery(ref('silver__balances_native_daily')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_76878c734c78b945aa1f4f863d96a801.sql", "original_file_path": "models/balances_package/native/silver/silver__balances_native_daily.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID.1832bc6fd4", "fqn": ["fsc_evm", "balances_package", "native", "silver", "dbt_utils_unique_combination_of_columns_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID"], "alias": "balances_native_daily_BALANCES_NATIVE_DAILY_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_76878c734c78b945aa1f4f863d96a801", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_76878c734c78b945aa1f4f863d96a801", "store_failures": true}, "created_at": 1764018442.5350873, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.balances_native_daily_BALANCES_NATIVE_DAILY_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_76878c734c78b945aa1f4f863d96a801\") }}", "language": "sql", "refs": [{"name": "silver__balances_native_daily", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.silver__balances_native_daily"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/silver/silver__balances_native_daily.yml/dbt_utils_unique_combination_o_76878c734c78b945aa1f4f863d96a801.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n BALANCES_NATIVE_DAILY_ID\n from polygon.silver.balances_native_daily\n group by BALANCES_NATIVE_DAILY_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__balances_native_daily", "attached_node": "model.fsc_evm.silver__balances_native_daily"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_BLOCK_DATE.43b712db10": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_daily_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_daily_full_BLOCK_DATE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_native_daily_full_BLOCK_DATE.sql", "original_file_path": "models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_BLOCK_DATE.43b712db10", "fqn": ["fsc_evm", "balances_package", "native", "gold", "tests", "native", "not_null_test_gold__ez_balances_native_daily_full_BLOCK_DATE"], "alias": "ez_balances_native_daily_full_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.5427918, "relation_name": "polygon.not_null_test_gold.ez_balances_native_daily_full_BLOCK_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_daily_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_native_daily_full"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_full.yml/not_null_test_gold__ez_balances_native_daily_full_BLOCK_DATE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_balances_native_daily_full\nwhere BLOCK_DATE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.test_gold__ez_balances_native_daily_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_daily_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_daily_full_BLOCK_DATE__day__2.be6f628721": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_daily_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_daily_full_BLOCK_DATE__day__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_6603916503420d90b3602d07a02cdcee.sql", "original_file_path": "models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_daily_full_BLOCK_DATE__day__2.be6f628721", "fqn": ["fsc_evm", "balances_package", "native", "gold", "tests", "native", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_daily_full_BLOCK_DATE__day__2"], "alias": "ez_balances_native_daily_full_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_6603916503420d90b3602d07a02cdcee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_6603916503420d90b3602d07a02cdcee", "store_failures": true}, "created_at": 1764018442.5450308, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_balances_native_daily_full_BLOCK_DATE", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_6603916503420d90b3602d07a02cdcee\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_daily_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_native_daily_full"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_full.yml/dbt_expectations_expect_row_va_6603916503420d90b3602d07a02cdcee.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_DATE as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.ez_balances_native_daily_full\n where\n -- to exclude erroneous future dates\n cast(BLOCK_DATE as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.test_gold__ez_balances_native_daily_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_daily_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_ADDRESS.52d628c90f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_daily_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_daily_full_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_native_daily_full_ADDRESS.sql", "original_file_path": "models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_ADDRESS.52d628c90f", "fqn": ["fsc_evm", "balances_package", "native", "gold", "tests", "native", "not_null_test_gold__ez_balances_native_daily_full_ADDRESS"], "alias": "ez_balances_native_daily_full_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.5527465, "relation_name": "polygon.not_null_test_gold.ez_balances_native_daily_full_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_daily_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_native_daily_full"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_full.yml/not_null_test_gold__ez_balances_native_daily_full_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_balances_native_daily_full\nwhere ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.test_gold__ez_balances_native_daily_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_daily_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_daily_full_ADDRESS__0_xX_0_9a_fA_F_.a9916d6faa": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_daily_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_daily_full_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_d87e402d716ff13ca551596ec5449419.sql", "original_file_path": "models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_daily_full_ADDRESS__0_xX_0_9a_fA_F_.a9916d6faa", "fqn": ["fsc_evm", "balances_package", "native", "gold", "tests", "native", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_daily_full_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_balances_native_daily_full_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d87e402d716ff13ca551596ec5449419", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d87e402d716ff13ca551596ec5449419", "store_failures": true}, "created_at": 1764018442.554911, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_balances_native_daily_full_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d87e402d716ff13ca551596ec5449419\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_daily_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_native_daily_full"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_full.yml/dbt_expectations_expect_column_d87e402d716ff13ca551596ec5449419.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_balances_native_daily_full\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.test_gold__ez_balances_native_daily_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_daily_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_daily_full_BALANCE__NUMBER__FLOAT.49679eb8e0": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BALANCE", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_daily_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_daily_full_BALANCE__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_71c47db6a19ce23f876b1f0dc671ca30.sql", "original_file_path": "models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_daily_full_BALANCE__NUMBER__FLOAT.49679eb8e0", "fqn": ["fsc_evm", "balances_package", "native", "gold", "tests", "native", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_daily_full_BALANCE__NUMBER__FLOAT"], "alias": "ez_balances_native_daily_full_BALANCE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_71c47db6a19ce23f876b1f0dc671ca30", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_71c47db6a19ce23f876b1f0dc671ca30", "store_failures": true}, "created_at": 1764018442.5602398, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_balances_native_daily_full_BALANCE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_71c47db6a19ce23f876b1f0dc671ca30\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_daily_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_native_daily_full"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_full.yml/dbt_expectations_expect_column_71c47db6a19ce23f876b1f0dc671ca30.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_DATE' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECIMALS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE_HEX' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_BALANCES_NATIVE_DAILY_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BALANCE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BALANCE", "file_key_name": "models.test_gold__ez_balances_native_daily_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_daily_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID.fa62d2d951": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EZ_BALANCES_NATIVE_DAILY_ID", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_daily_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balance_eaa64cd7141af4abd5a3578259d01801.sql", "original_file_path": "models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID.fa62d2d951", "fqn": ["fsc_evm", "balances_package", "native", "gold", "tests", "native", "not_null_test_gold__ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID"], "alias": "ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_balance_eaa64cd7141af4abd5a3578259d01801", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_balance_eaa64cd7141af4abd5a3578259d01801", "store_failures": true}, "created_at": 1764018442.5651336, "relation_name": "polygon.not_null_test_gold.ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_balance_eaa64cd7141af4abd5a3578259d01801\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_daily_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_native_daily_full"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_full.yml/not_null_test_gold__ez_balance_eaa64cd7141af4abd5a3578259d01801.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_balances_native_daily_full\nwhere EZ_BALANCES_NATIVE_DAILY_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EZ_BALANCES_NATIVE_DAILY_ID", "file_key_name": "models.test_gold__ez_balances_native_daily_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_daily_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID.8dc83ace95": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["EZ_BALANCES_NATIVE_DAILY_ID"], "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_daily_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_6fec5a2ebcab6bf864177d72a56182f9.sql", "original_file_path": "models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID.8dc83ace95", "fqn": ["fsc_evm", "balances_package", "native", "gold", "tests", "native", "dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID"], "alias": "ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6fec5a2ebcab6bf864177d72a56182f9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6fec5a2ebcab6bf864177d72a56182f9", "store_failures": true}, "created_at": 1764018442.5672863, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6fec5a2ebcab6bf864177d72a56182f9\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_daily_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_native_daily_full"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_full.yml/dbt_utils_unique_combination_o_6fec5a2ebcab6bf864177d72a56182f9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n EZ_BALANCES_NATIVE_DAILY_ID\n from polygon.test_gold.ez_balances_native_daily_full\n group by EZ_BALANCES_NATIVE_DAILY_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_balances_native_daily_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_daily_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_BLOCK_DATE.d5648e9d19": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_daily_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_daily_recent_BLOCK_DATE", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_native_daily_recent_BLOCK_DATE.sql", "original_file_path": "models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_BLOCK_DATE.d5648e9d19", "fqn": ["fsc_evm", "balances_package", "native", "gold", "tests", "native", "not_null_test_gold__ez_balances_native_daily_recent_BLOCK_DATE"], "alias": "ez_balances_native_daily_recent_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.5735338, "relation_name": "polygon.not_null_test_gold.ez_balances_native_daily_recent_BLOCK_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_daily_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_native_daily_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_recent.yml/not_null_test_gold__ez_balances_native_daily_recent_BLOCK_DATE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_balances_native_daily_recent\nwhere BLOCK_DATE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.test_gold__ez_balances_native_daily_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_daily_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_daily_recent_BLOCK_DATE__day__2.77859fb708": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_daily_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_daily_recent_BLOCK_DATE__day__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_088f1a69882a5a7ae6a26d1b43fb5fe1.sql", "original_file_path": "models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_daily_recent_BLOCK_DATE__day__2.77859fb708", "fqn": ["fsc_evm", "balances_package", "native", "gold", "tests", "native", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_daily_recent_BLOCK_DATE__day__2"], "alias": "ez_balances_native_daily_recent_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_088f1a69882a5a7ae6a26d1b43fb5fe1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_088f1a69882a5a7ae6a26d1b43fb5fe1", "store_failures": true}, "created_at": 1764018442.575692, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_balances_native_daily_recent_BLOCK_DATE", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_088f1a69882a5a7ae6a26d1b43fb5fe1\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_daily_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_native_daily_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_recent.yml/dbt_expectations_expect_row_va_088f1a69882a5a7ae6a26d1b43fb5fe1.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_DATE as timestamp_ntz)) as max_timestamp\n from\n polygon.test_gold.ez_balances_native_daily_recent\n where\n -- to exclude erroneous future dates\n cast(BLOCK_DATE as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.test_gold__ez_balances_native_daily_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_daily_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_ADDRESS.a22493476f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_daily_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_daily_recent_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_native_daily_recent_ADDRESS.sql", "original_file_path": "models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_ADDRESS.a22493476f", "fqn": ["fsc_evm", "balances_package", "native", "gold", "tests", "native", "not_null_test_gold__ez_balances_native_daily_recent_ADDRESS"], "alias": "ez_balances_native_daily_recent_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.5833433, "relation_name": "polygon.not_null_test_gold.ez_balances_native_daily_recent_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_daily_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_native_daily_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_recent.yml/not_null_test_gold__ez_balances_native_daily_recent_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_balances_native_daily_recent\nwhere ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.test_gold__ez_balances_native_daily_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_daily_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_daily_recent_ADDRESS__0_xX_0_9a_fA_F_.f9166aacd7": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_daily_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_daily_recent_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_b0ce2e02b05142d921dea18914ecb877.sql", "original_file_path": "models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_daily_recent_ADDRESS__0_xX_0_9a_fA_F_.f9166aacd7", "fqn": ["fsc_evm", "balances_package", "native", "gold", "tests", "native", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_daily_recent_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_balances_native_daily_recent_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b0ce2e02b05142d921dea18914ecb877", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b0ce2e02b05142d921dea18914ecb877", "store_failures": true}, "created_at": 1764018442.5855165, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_balances_native_daily_recent_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b0ce2e02b05142d921dea18914ecb877\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_daily_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_native_daily_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_recent.yml/dbt_expectations_expect_column_b0ce2e02b05142d921dea18914ecb877.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(ADDRESS, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from polygon.test_gold.ez_balances_native_daily_recent\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.test_gold__ez_balances_native_daily_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_daily_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_daily_recent_BALANCE__NUMBER__FLOAT.ceee5e0cc7": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BALANCE", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_daily_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_daily_recent_BALANCE__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_e865478b64be9a39f01224fbaddf130a.sql", "original_file_path": "models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_daily_recent_BALANCE__NUMBER__FLOAT.ceee5e0cc7", "fqn": ["fsc_evm", "balances_package", "native", "gold", "tests", "native", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_daily_recent_BALANCE__NUMBER__FLOAT"], "alias": "ez_balances_native_daily_recent_BALANCE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e865478b64be9a39f01224fbaddf130a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_e865478b64be9a39f01224fbaddf130a", "store_failures": true}, "created_at": 1764018442.5908332, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_balances_native_daily_recent_BALANCE", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e865478b64be9a39f01224fbaddf130a\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_daily_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_native_daily_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_recent.yml/dbt_expectations_expect_column_e865478b64be9a39f01224fbaddf130a.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_DATE' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DECIMALS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE_HEX' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE_RAW' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE_PRECISE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('BALANCE_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('EZ_BALANCES_NATIVE_DAILY_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BALANCE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BALANCE", "file_key_name": "models.test_gold__ez_balances_native_daily_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_daily_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID.04c28bc46d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EZ_BALANCES_NATIVE_DAILY_ID", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_daily_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balance_6bfaf719f2ee18f570accf4e38b4dab8.sql", "original_file_path": "models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID.04c28bc46d", "fqn": ["fsc_evm", "balances_package", "native", "gold", "tests", "native", "not_null_test_gold__ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID"], "alias": "ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_test_gold__ez_balance_6bfaf719f2ee18f570accf4e38b4dab8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_balance_6bfaf719f2ee18f570accf4e38b4dab8", "store_failures": true}, "created_at": 1764018442.5957973, "relation_name": "polygon.not_null_test_gold.ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_balance_6bfaf719f2ee18f570accf4e38b4dab8\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_daily_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_native_daily_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_recent.yml/not_null_test_gold__ez_balance_6bfaf719f2ee18f570accf4e38b4dab8.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom polygon.test_gold.ez_balances_native_daily_recent\nwhere EZ_BALANCES_NATIVE_DAILY_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EZ_BALANCES_NATIVE_DAILY_ID", "file_key_name": "models.test_gold__ez_balances_native_daily_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_daily_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID.6d38a75605": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["EZ_BALANCES_NATIVE_DAILY_ID"], "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_daily_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_183cbe830a4e4be50d56749da503208d.sql", "original_file_path": "models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID.6d38a75605", "fqn": ["fsc_evm", "balances_package", "native", "gold", "tests", "native", "dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID"], "alias": "ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_183cbe830a4e4be50d56749da503208d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_183cbe830a4e4be50d56749da503208d", "store_failures": true}, "created_at": 1764018442.5980268, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_183cbe830a4e4be50d56749da503208d\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_daily_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__ez_balances_native_daily_recent"]}, "compiled_path": "target/compiled/fsc_evm/models/balances_package/native/gold/tests/native/test_gold__ez_balances_native_daily_recent.yml/dbt_utils_unique_combination_o_183cbe830a4e4be50d56749da503208d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n EZ_BALANCES_NATIVE_DAILY_ID\n from polygon.test_gold.ez_balances_native_daily_recent\n group by EZ_BALANCES_NATIVE_DAILY_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_balances_native_daily_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_daily_recent"}, "test.fsc_evm.not_null_silver__balance_slots_CONTRACT_ADDRESS.aeee79acb5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__balance_slots')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__balance_slots_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__balance_slots_CONTRACT_ADDRESS.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__balance_slots.yml", "unique_id": "test.fsc_evm.not_null_silver__balance_slots_CONTRACT_ADDRESS.aeee79acb5", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "not_null_silver__balance_slots_CONTRACT_ADDRESS"], "alias": "balance_slots_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.6065462, "relation_name": "polygon.not_null_silver.balance_slots_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balance_slots", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.silver__balance_slots", "attached_node": "model.fsc_evm.silver__balance_slots"}, "test.fsc_evm.not_null_silver__balance_slots_SLOT_NUMBER_ARRAY.8ffb8e8b33": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SLOT_NUMBER_ARRAY", "model": "{{ get_where_subquery(ref('silver__balance_slots')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__balance_slots_SLOT_NUMBER_ARRAY", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__balance_slots_SLOT_NUMBER_ARRAY.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__balance_slots.yml", "unique_id": "test.fsc_evm.not_null_silver__balance_slots_SLOT_NUMBER_ARRAY.8ffb8e8b33", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "not_null_silver__balance_slots_SLOT_NUMBER_ARRAY"], "alias": "balance_slots_SLOT_NUMBER_ARRAY", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.6088064, "relation_name": "polygon.not_null_silver.balance_slots_SLOT_NUMBER_ARRAY", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balance_slots", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SLOT_NUMBER_ARRAY", "file_key_name": "models.silver__balance_slots", "attached_node": "model.fsc_evm.silver__balance_slots"}, "test.fsc_evm.not_null_silver__balance_slots_NUM_SLOTS.7e3d263768": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NUM_SLOTS", "model": "{{ get_where_subquery(ref('silver__balance_slots')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__balance_slots_NUM_SLOTS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__balance_slots_NUM_SLOTS.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__balance_slots.yml", "unique_id": "test.fsc_evm.not_null_silver__balance_slots_NUM_SLOTS.7e3d263768", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "not_null_silver__balance_slots_NUM_SLOTS"], "alias": "balance_slots_NUM_SLOTS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.6109571, "relation_name": "polygon.not_null_silver.balance_slots_NUM_SLOTS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balance_slots", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NUM_SLOTS", "file_key_name": "models.silver__balance_slots", "attached_node": "model.fsc_evm.silver__balance_slots"}, "test.fsc_evm.accepted_values_silver__balance_slots_NUM_SLOTS__1.d1652f3bdb": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": [1], "column_name": "NUM_SLOTS", "model": "{{ get_where_subquery(ref('silver__balance_slots')) }}"}, "namespace": null}, "database": "polygon", "schema": "accepted_values_silver", "name": "accepted_values_silver__balance_slots_NUM_SLOTS__1", "resource_type": "test", "package_name": "fsc_evm", "path": "accepted_values_silver__balance_slots_NUM_SLOTS__1.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__balance_slots.yml", "unique_id": "test.fsc_evm.accepted_values_silver__balance_slots_NUM_SLOTS__1.d1652f3bdb", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "accepted_values_silver__balance_slots_NUM_SLOTS__1"], "alias": "balance_slots_NUM_SLOTS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.6131706, "relation_name": "polygon.accepted_values_silver.balance_slots_NUM_SLOTS", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balance_slots", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "NUM_SLOTS", "file_key_name": "models.silver__balance_slots", "attached_node": "model.fsc_evm.silver__balance_slots"}, "test.fsc_evm.not_null_silver__balance_slots_BALANCE_SLOTS_ID.c2db519283": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BALANCE_SLOTS_ID", "model": "{{ get_where_subquery(ref('silver__balance_slots')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__balance_slots_BALANCE_SLOTS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__balance_slots_BALANCE_SLOTS_ID.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__balance_slots.yml", "unique_id": "test.fsc_evm.not_null_silver__balance_slots_BALANCE_SLOTS_ID.c2db519283", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "not_null_silver__balance_slots_BALANCE_SLOTS_ID"], "alias": "balance_slots_BALANCE_SLOTS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.6225364, "relation_name": "polygon.not_null_silver.balance_slots_BALANCE_SLOTS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balance_slots", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BALANCE_SLOTS_ID", "file_key_name": "models.silver__balance_slots", "attached_node": "model.fsc_evm.silver__balance_slots"}, "test.fsc_evm.not_null_silver__balance_slots_INSERTED_TIMESTAMP.94d7789126": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__balance_slots')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__balance_slots_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__balance_slots_INSERTED_TIMESTAMP.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__balance_slots.yml", "unique_id": "test.fsc_evm.not_null_silver__balance_slots_INSERTED_TIMESTAMP.94d7789126", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "not_null_silver__balance_slots_INSERTED_TIMESTAMP"], "alias": "balance_slots_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.624706, "relation_name": "polygon.not_null_silver.balance_slots_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balance_slots", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.silver__balance_slots", "attached_node": "model.fsc_evm.silver__balance_slots"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__balance_slots_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.23b4d3c9d5": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__balance_slots')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__balance_slots_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_170fe2a6de96e5ceaa15d0df26a303fe.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__balance_slots.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__balance_slots_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.23b4d3c9d5", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__balance_slots_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "balance_slots_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_170fe2a6de96e5ceaa15d0df26a303fe", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_170fe2a6de96e5ceaa15d0df26a303fe", "store_failures": true}, "created_at": 1764018442.6268253, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.balance_slots_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_170fe2a6de96e5ceaa15d0df26a303fe\") }}", "language": "sql", "refs": [{"name": "silver__balance_slots", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.silver__balance_slots", "attached_node": "model.fsc_evm.silver__balance_slots"}, "test.fsc_evm.not_null_silver__balance_slots_MODIFIED_TIMESTAMP.ca66040357": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__balance_slots')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__balance_slots_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__balance_slots_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__balance_slots.yml", "unique_id": "test.fsc_evm.not_null_silver__balance_slots_MODIFIED_TIMESTAMP.ca66040357", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "not_null_silver__balance_slots_MODIFIED_TIMESTAMP"], "alias": "balance_slots_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.6321797, "relation_name": "polygon.not_null_silver.balance_slots_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balance_slots", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver__balance_slots", "attached_node": "model.fsc_evm.silver__balance_slots"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__balance_slots_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.73dee8e57b": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__balance_slots')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__balance_slots_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_c91d36278b19a4f83670783f58582b6b.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__balance_slots.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__balance_slots_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.73dee8e57b", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__balance_slots_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "balance_slots_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_c91d36278b19a4f83670783f58582b6b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c91d36278b19a4f83670783f58582b6b", "store_failures": true}, "created_at": 1764018442.6343071, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.balance_slots_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c91d36278b19a4f83670783f58582b6b\") }}", "language": "sql", "refs": [{"name": "silver__balance_slots", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver__balance_slots", "attached_node": "model.fsc_evm.silver__balance_slots"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__balance_slots_CONTRACT_ADDRESS.ed2308e967": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONTRACT_ADDRESS"], "model": "{{ get_where_subquery(ref('silver__balance_slots')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__balance_slots_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_87e47b100bf0d08b8e7e527ea38d8c88.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__balance_slots.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__balance_slots_CONTRACT_ADDRESS.ed2308e967", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "dbt_utils_unique_combination_of_columns_silver__balance_slots_CONTRACT_ADDRESS"], "alias": "balance_slots_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_87e47b100bf0d08b8e7e527ea38d8c88", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_87e47b100bf0d08b8e7e527ea38d8c88", "store_failures": true}, "created_at": 1764018442.6391714, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.balance_slots_CONTRACT_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_87e47b100bf0d08b8e7e527ea38d8c88\") }}", "language": "sql", "refs": [{"name": "silver__balance_slots", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__balance_slots", "attached_node": "model.fsc_evm.silver__balance_slots"}, "test.fsc_evm.fsc_evm_missing_balance_slots_silver__balance_slots_.86886d322f": {"test_metadata": {"name": "missing_balance_slots", "kwargs": {"model": "{{ get_where_subquery(ref('silver__balance_slots')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_missing_balance_slots_silver", "name": "fsc_evm_missing_balance_slots_silver__balance_slots_", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_missing_balance_slots_silver__balance_slots_.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__balance_slots.yml", "unique_id": "test.fsc_evm.fsc_evm_missing_balance_slots_silver__balance_slots_.86886d322f", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "fsc_evm_missing_balance_slots_silver__balance_slots_"], "alias": "balance_slots_", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.6441813, "relation_name": "polygon.fsc_evm_missing_balance_slots_silver.balance_slots_", "raw_code": "{{ fsc_evm.test_missing_balance_slots(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__balance_slots", "package": null, "version": null}, {"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "silver__balance_slots", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_missing_balance_slots", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.price__ez_asset_metadata"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__balance_slots", "attached_node": "model.fsc_evm.silver__balance_slots"}, "test.fsc_evm.not_null_silver__storage_keys_ADDRESS.be8c9c1392": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('silver__storage_keys')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__storage_keys_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__storage_keys_ADDRESS.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__storage_keys.yml", "unique_id": "test.fsc_evm.not_null_silver__storage_keys_ADDRESS.be8c9c1392", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "not_null_silver__storage_keys_ADDRESS"], "alias": "storage_keys_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.6522634, "relation_name": "polygon.not_null_silver.storage_keys_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__storage_keys", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.silver__storage_keys", "attached_node": "model.fsc_evm.silver__storage_keys"}, "test.fsc_evm.not_null_silver__storage_keys_SLOT_NUMBER.4e1362119c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SLOT_NUMBER", "model": "{{ get_where_subquery(ref('silver__storage_keys')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__storage_keys_SLOT_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__storage_keys_SLOT_NUMBER.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__storage_keys.yml", "unique_id": "test.fsc_evm.not_null_silver__storage_keys_SLOT_NUMBER.4e1362119c", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "not_null_silver__storage_keys_SLOT_NUMBER"], "alias": "storage_keys_SLOT_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.654417, "relation_name": "polygon.not_null_silver.storage_keys_SLOT_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__storage_keys", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SLOT_NUMBER", "file_key_name": "models.silver__storage_keys", "attached_node": "model.fsc_evm.silver__storage_keys"}, "test.fsc_evm.not_null_silver__storage_keys_STORAGE_KEY.8fb10f3cb4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "STORAGE_KEY", "model": "{{ get_where_subquery(ref('silver__storage_keys')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__storage_keys_STORAGE_KEY", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__storage_keys_STORAGE_KEY.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__storage_keys.yml", "unique_id": "test.fsc_evm.not_null_silver__storage_keys_STORAGE_KEY.8fb10f3cb4", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "not_null_silver__storage_keys_STORAGE_KEY"], "alias": "storage_keys_STORAGE_KEY", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.6564958, "relation_name": "polygon.not_null_silver.storage_keys_STORAGE_KEY", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__storage_keys", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "STORAGE_KEY", "file_key_name": "models.silver__storage_keys", "attached_node": "model.fsc_evm.silver__storage_keys"}, "test.fsc_evm.not_null_silver__storage_keys_STORAGE_KEYS_ID.b4e852b122": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "STORAGE_KEYS_ID", "model": "{{ get_where_subquery(ref('silver__storage_keys')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__storage_keys_STORAGE_KEYS_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__storage_keys_STORAGE_KEYS_ID.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__storage_keys.yml", "unique_id": "test.fsc_evm.not_null_silver__storage_keys_STORAGE_KEYS_ID.b4e852b122", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "not_null_silver__storage_keys_STORAGE_KEYS_ID"], "alias": "storage_keys_STORAGE_KEYS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.658567, "relation_name": "polygon.not_null_silver.storage_keys_STORAGE_KEYS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__storage_keys", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "STORAGE_KEYS_ID", "file_key_name": "models.silver__storage_keys", "attached_node": "model.fsc_evm.silver__storage_keys"}, "test.fsc_evm.not_null_silver__storage_keys_INSERTED_TIMESTAMP.fa570e218f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__storage_keys')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__storage_keys_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__storage_keys_INSERTED_TIMESTAMP.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__storage_keys.yml", "unique_id": "test.fsc_evm.not_null_silver__storage_keys_INSERTED_TIMESTAMP.fa570e218f", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "not_null_silver__storage_keys_INSERTED_TIMESTAMP"], "alias": "storage_keys_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.6610134, "relation_name": "polygon.not_null_silver.storage_keys_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__storage_keys", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.silver__storage_keys", "attached_node": "model.fsc_evm.silver__storage_keys"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__storage_keys_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.763dacf694": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__storage_keys')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__storage_keys_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_c1f34cea7dcf7e38223776633986c91a.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__storage_keys.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__storage_keys_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.763dacf694", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__storage_keys_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "storage_keys_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_c1f34cea7dcf7e38223776633986c91a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c1f34cea7dcf7e38223776633986c91a", "store_failures": true}, "created_at": 1764018442.663224, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.storage_keys_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c1f34cea7dcf7e38223776633986c91a\") }}", "language": "sql", "refs": [{"name": "silver__storage_keys", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.silver__storage_keys", "attached_node": "model.fsc_evm.silver__storage_keys"}, "test.fsc_evm.not_null_silver__storage_keys_MODIFIED_TIMESTAMP.2ee7197f25": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__storage_keys')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_silver", "name": "not_null_silver__storage_keys_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_silver__storage_keys_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__storage_keys.yml", "unique_id": "test.fsc_evm.not_null_silver__storage_keys_MODIFIED_TIMESTAMP.2ee7197f25", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "not_null_silver__storage_keys_MODIFIED_TIMESTAMP"], "alias": "storage_keys_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.6683352, "relation_name": "polygon.not_null_silver.storage_keys_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__storage_keys", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver__storage_keys", "attached_node": "model.fsc_evm.silver__storage_keys"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__storage_keys_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.2c2aee5ddc": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__storage_keys')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__storage_keys_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_34a8010fa92325408838052c9f3b76db.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__storage_keys.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__storage_keys_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.2c2aee5ddc", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__storage_keys_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "storage_keys_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_34a8010fa92325408838052c9f3b76db", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_34a8010fa92325408838052c9f3b76db", "store_failures": true}, "created_at": 1764018442.6704588, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_silver.storage_keys_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_34a8010fa92325408838052c9f3b76db\") }}", "language": "sql", "refs": [{"name": "silver__storage_keys", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.silver__storage_keys", "attached_node": "model.fsc_evm.silver__storage_keys"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__storage_keys_ADDRESS__SLOT_NUMBER.184cfaefb5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ADDRESS", "SLOT_NUMBER"], "model": "{{ get_where_subquery(ref('silver__storage_keys')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__storage_keys_ADDRESS__SLOT_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_8cde6cd15d0123b5e0b23d0bab1b21c6.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__storage_keys.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__storage_keys_ADDRESS__SLOT_NUMBER.184cfaefb5", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "dbt_utils_unique_combination_of_columns_silver__storage_keys_ADDRESS__SLOT_NUMBER"], "alias": "storage_keys_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_8cde6cd15d0123b5e0b23d0bab1b21c6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8cde6cd15d0123b5e0b23d0bab1b21c6", "store_failures": true}, "created_at": 1764018442.6755412, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_silver.storage_keys_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8cde6cd15d0123b5e0b23d0bab1b21c6\") }}", "language": "sql", "refs": [{"name": "silver__storage_keys", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__storage_keys", "attached_node": "model.fsc_evm.silver__storage_keys"}, "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_BLOCK_NUMBER.d08ad74001": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_storage_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tracer_storage_recent_BLOCK_NUMBER.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_BLOCK_NUMBER.d08ad74001", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "not_null_test_silver__state_tracer_storage_recent_BLOCK_NUMBER"], "alias": "state_tracer_storage_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.682106, "relation_name": "polygon.not_null_test_silver.state_tracer_storage_recent_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_silver__state_tracer_storage_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_recent"}, "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_TX_POSITION.8b0a16a17d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_storage_recent_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tracer_storage_recent_TX_POSITION.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_TX_POSITION.8b0a16a17d", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "not_null_test_silver__state_tracer_storage_recent_TX_POSITION"], "alias": "state_tracer_storage_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.6842825, "relation_name": "polygon.not_null_test_silver.state_tracer_storage_recent_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_silver__state_tracer_storage_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_recent"}, "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_CONTRACT_ADDRESS.d32f8002bf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_storage_recent_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tr_6d9cc47a0ab53a7d10f4a24ec6c499c9.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_CONTRACT_ADDRESS.d32f8002bf", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "not_null_test_silver__state_tracer_storage_recent_CONTRACT_ADDRESS"], "alias": "state_tracer_storage_recent_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_silver__state_tr_6d9cc47a0ab53a7d10f4a24ec6c499c9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_silver__state_tr_6d9cc47a0ab53a7d10f4a24ec6c499c9", "store_failures": true}, "created_at": 1764018442.6863823, "relation_name": "polygon.not_null_test_silver.state_tracer_storage_recent_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_silver__state_tr_6d9cc47a0ab53a7d10f4a24ec6c499c9\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_silver__state_tracer_storage_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_recent"}, "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_STORAGE_KEY.2a10e3dd0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "STORAGE_KEY", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_storage_recent_STORAGE_KEY", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tracer_storage_recent_STORAGE_KEY.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_STORAGE_KEY.2a10e3dd0b", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "not_null_test_silver__state_tracer_storage_recent_STORAGE_KEY"], "alias": "state_tracer_storage_recent_STORAGE_KEY", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.6884828, "relation_name": "polygon.not_null_test_silver.state_tracer_storage_recent_STORAGE_KEY", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "STORAGE_KEY", "file_key_name": "models.test_silver__state_tracer_storage_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_recent"}, "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent__INSERTED_TIMESTAMP.6181a9e7b3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_storage_recent__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tr_6da1edf93006ba95490b06a0e4e55833.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent__INSERTED_TIMESTAMP.6181a9e7b3", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "not_null_test_silver__state_tracer_storage_recent__INSERTED_TIMESTAMP"], "alias": "state_tracer_storage_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_silver__state_tr_6da1edf93006ba95490b06a0e4e55833", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_silver__state_tr_6da1edf93006ba95490b06a0e4e55833", "store_failures": true}, "created_at": 1764018442.6905568, "relation_name": "polygon.not_null_test_silver.state_tracer_storage_recent", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_silver__state_tr_6da1edf93006ba95490b06a0e4e55833\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_storage_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_recent__INSERTED_TIMESTAMP__hour__2.b554e4f428": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_recent__INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_736e56a77259d6b885748cd728d2374f.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_recent__INSERTED_TIMESTAMP__hour__2.b554e4f428", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_recent__INSERTED_TIMESTAMP__hour__2"], "alias": "state_tracer_storage_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_736e56a77259d6b885748cd728d2374f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_736e56a77259d6b885748cd728d2374f", "store_failures": true}, "created_at": 1764018442.693103, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.state_tracer_storage_recent", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_736e56a77259d6b885748cd728d2374f\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_storage_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.872559bae8": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_3f436c4cdf385a85016c8ae2ae4ba451.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.872559bae8", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "state_tracer_storage_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_3f436c4cdf385a85016c8ae2ae4ba451", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3f436c4cdf385a85016c8ae2ae4ba451", "store_failures": true}, "created_at": 1764018442.7008677, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.state_tracer_storage_recent", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3f436c4cdf385a85016c8ae2ae4ba451\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_storage_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_recent"}, "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_INSERTED_TIMESTAMP.37f1906b5e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_storage_recent_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tr_5517587d3980068c45781099e7e20cc3.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_INSERTED_TIMESTAMP.37f1906b5e", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "not_null_test_silver__state_tracer_storage_recent_INSERTED_TIMESTAMP"], "alias": "state_tracer_storage_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_silver__state_tr_5517587d3980068c45781099e7e20cc3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_silver__state_tr_5517587d3980068c45781099e7e20cc3", "store_failures": true}, "created_at": 1764018442.7058322, "relation_name": "polygon.not_null_test_silver.state_tracer_storage_recent_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_silver__state_tr_5517587d3980068c45781099e7e20cc3\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_storage_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_recent_INSERTED_TIMESTAMP__hour__2.c03b6ae83d": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_recent_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_3f61d8363a8914219b5c90c0d4d77f8a.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_recent_INSERTED_TIMESTAMP__hour__2.c03b6ae83d", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_recent_INSERTED_TIMESTAMP__hour__2"], "alias": "state_tracer_storage_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_3f61d8363a8914219b5c90c0d4d77f8a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_3f61d8363a8914219b5c90c0d4d77f8a", "store_failures": true}, "created_at": 1764018442.7082798, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.state_tracer_storage_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_3f61d8363a8914219b5c90c0d4d77f8a\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_storage_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.683d2e792b": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_4315bd0e865667f9187639568b1282af.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.683d2e792b", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "state_tracer_storage_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_4315bd0e865667f9187639568b1282af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_4315bd0e865667f9187639568b1282af", "store_failures": true}, "created_at": 1764018442.7157202, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.state_tracer_storage_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4315bd0e865667f9187639568b1282af\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_storage_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_recent"}, "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_MODIFIED_TIMESTAMP.20bb673731": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_storage_recent_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tr_4a1de8facc439f54cfeaa402d8949544.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_MODIFIED_TIMESTAMP.20bb673731", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "not_null_test_silver__state_tracer_storage_recent_MODIFIED_TIMESTAMP"], "alias": "state_tracer_storage_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_silver__state_tr_4a1de8facc439f54cfeaa402d8949544", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_silver__state_tr_4a1de8facc439f54cfeaa402d8949544", "store_failures": true}, "created_at": 1764018442.720531, "relation_name": "polygon.not_null_test_silver.state_tracer_storage_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_silver__state_tr_4a1de8facc439f54cfeaa402d8949544\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_storage_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_recent_MODIFIED_TIMESTAMP__hour__2.bbb5e0e0d4": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_recent_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_5fae4d9d03df38c99197f6cc857f06a5.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_recent_MODIFIED_TIMESTAMP__hour__2.bbb5e0e0d4", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_recent_MODIFIED_TIMESTAMP__hour__2"], "alias": "state_tracer_storage_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_5fae4d9d03df38c99197f6cc857f06a5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_5fae4d9d03df38c99197f6cc857f06a5", "store_failures": true}, "created_at": 1764018442.7226768, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.state_tracer_storage_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_5fae4d9d03df38c99197f6cc857f06a5\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_storage_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.61f2d74d31": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_bee5b8278fa430fa442eafeeec7db6b2.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.61f2d74d31", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "state_tracer_storage_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_bee5b8278fa430fa442eafeeec7db6b2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_bee5b8278fa430fa442eafeeec7db6b2", "store_failures": true}, "created_at": 1764018442.7315428, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.state_tracer_storage_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_bee5b8278fa430fa442eafeeec7db6b2\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_storage_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__state_tracer_storage_recent_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__STORAGE_KEY.d9bb4970ed": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BLOCK_NUMBER", "TX_POSITION", "CONTRACT_ADDRESS", "STORAGE_KEY"], "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__state_tracer_storage_recent_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__STORAGE_KEY", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_e360ae3fe4d8d51b57d7f8112b3a960e.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__state_tracer_storage_recent_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__STORAGE_KEY.d9bb4970ed", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "dbt_utils_unique_combination_of_columns_test_silver__state_tracer_storage_recent_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__STORAGE_KEY"], "alias": "state_tracer_storage_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_e360ae3fe4d8d51b57d7f8112b3a960e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e360ae3fe4d8d51b57d7f8112b3a960e", "store_failures": true}, "created_at": 1764018442.7362502, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.state_tracer_storage_recent_BLOCK_NUMBER", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e360ae3fe4d8d51b57d7f8112b3a960e\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__state_tracer_storage_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_recent"}, "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_storage_recent_BLOCK_NUMBER.c0f6ce209d": {"test_metadata": {"name": "balances_sequence_gaps", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_recent')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_balances_sequence_gaps_test_silver", "name": "fsc_evm_balances_sequence_gaps_test_silver__state_tracer_storage_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_balances_sequence_gaps_178a46551c3c0e497f6b06dd59691417.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_recent.yml", "unique_id": "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_storage_recent_BLOCK_NUMBER.c0f6ce209d", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "fsc_evm_balances_sequence_gaps_test_silver__state_tracer_storage_recent_BLOCK_NUMBER"], "alias": "state_tracer_storage_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "fsc_evm_balances_sequence_gaps_178a46551c3c0e497f6b06dd59691417", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "fsc_evm_balances_sequence_gaps_178a46551c3c0e497f6b06dd59691417", "store_failures": true}, "created_at": 1764018442.7411463, "relation_name": "polygon.fsc_evm_balances_sequence_gaps_test_silver.state_tracer_storage_recent_BLOCK_NUMBER", "raw_code": "{{ fsc_evm.test_balances_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(alias=\"fsc_evm_balances_sequence_gaps_178a46551c3c0e497f6b06dd59691417\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_balances_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__state_tracer_storage_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_recent"}, "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_BLOCK_NUMBER.4fa04f5f10": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_storage_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tracer_storage_full_BLOCK_NUMBER.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_BLOCK_NUMBER.4fa04f5f10", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "not_null_test_silver__state_tracer_storage_full_BLOCK_NUMBER"], "alias": "state_tracer_storage_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.7931058, "relation_name": "polygon.not_null_test_silver.state_tracer_storage_full_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_silver__state_tracer_storage_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_full"}, "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_TX_POSITION.8744f447b5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_storage_full_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tracer_storage_full_TX_POSITION.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_TX_POSITION.8744f447b5", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "not_null_test_silver__state_tracer_storage_full_TX_POSITION"], "alias": "state_tracer_storage_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.7956972, "relation_name": "polygon.not_null_test_silver.state_tracer_storage_full_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_silver__state_tracer_storage_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_full"}, "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_CONTRACT_ADDRESS.e5f17ac295": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_ADDRESS", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_storage_full_CONTRACT_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tr_58f7319d96c2267f0295f113be25215e.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_CONTRACT_ADDRESS.e5f17ac295", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "not_null_test_silver__state_tracer_storage_full_CONTRACT_ADDRESS"], "alias": "state_tracer_storage_full_CONTRACT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_silver__state_tr_58f7319d96c2267f0295f113be25215e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_silver__state_tr_58f7319d96c2267f0295f113be25215e", "store_failures": true}, "created_at": 1764018442.7979202, "relation_name": "polygon.not_null_test_silver.state_tracer_storage_full_CONTRACT_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_silver__state_tr_58f7319d96c2267f0295f113be25215e\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_ADDRESS", "file_key_name": "models.test_silver__state_tracer_storage_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_full"}, "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_STORAGE_KEY.cd101ace2c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "STORAGE_KEY", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_storage_full_STORAGE_KEY", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tracer_storage_full_STORAGE_KEY.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_STORAGE_KEY.cd101ace2c", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "not_null_test_silver__state_tracer_storage_full_STORAGE_KEY"], "alias": "state_tracer_storage_full_STORAGE_KEY", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.800075, "relation_name": "polygon.not_null_test_silver.state_tracer_storage_full_STORAGE_KEY", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "STORAGE_KEY", "file_key_name": "models.test_silver__state_tracer_storage_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_full"}, "test.fsc_evm.not_null_test_silver__state_tracer_storage_full__INSERTED_TIMESTAMP.4e98fa72be": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_storage_full__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tr_aadb71532014231bcbd37e3e6c46e736.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_storage_full__INSERTED_TIMESTAMP.4e98fa72be", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "not_null_test_silver__state_tracer_storage_full__INSERTED_TIMESTAMP"], "alias": "state_tracer_storage_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_silver__state_tr_aadb71532014231bcbd37e3e6c46e736", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_silver__state_tr_aadb71532014231bcbd37e3e6c46e736", "store_failures": true}, "created_at": 1764018442.8022602, "relation_name": "polygon.not_null_test_silver.state_tracer_storage_full", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_silver__state_tr_aadb71532014231bcbd37e3e6c46e736\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_storage_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_full__INSERTED_TIMESTAMP__hour__2.f2cf720a38": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_full__INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_ca406656e81eeb8f76f07ae2223c35e6.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_full__INSERTED_TIMESTAMP__hour__2.f2cf720a38", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_full__INSERTED_TIMESTAMP__hour__2"], "alias": "state_tracer_storage_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_ca406656e81eeb8f76f07ae2223c35e6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_ca406656e81eeb8f76f07ae2223c35e6", "store_failures": true}, "created_at": 1764018442.8044286, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.state_tracer_storage_full", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_ca406656e81eeb8f76f07ae2223c35e6\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_storage_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.ba4d82a7f4": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_5c4a4f7b9a69af41f1949e15f61553f0.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.ba4d82a7f4", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "state_tracer_storage_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_5c4a4f7b9a69af41f1949e15f61553f0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_5c4a4f7b9a69af41f1949e15f61553f0", "store_failures": true}, "created_at": 1764018442.8130074, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.state_tracer_storage_full", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5c4a4f7b9a69af41f1949e15f61553f0\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_storage_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_full"}, "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_INSERTED_TIMESTAMP.910eeb5ef0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_storage_full_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tr_9f19d3b123ef46c7c3d1547b347990a8.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_INSERTED_TIMESTAMP.910eeb5ef0", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "not_null_test_silver__state_tracer_storage_full_INSERTED_TIMESTAMP"], "alias": "state_tracer_storage_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_silver__state_tr_9f19d3b123ef46c7c3d1547b347990a8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_silver__state_tr_9f19d3b123ef46c7c3d1547b347990a8", "store_failures": true}, "created_at": 1764018442.8185015, "relation_name": "polygon.not_null_test_silver.state_tracer_storage_full_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_silver__state_tr_9f19d3b123ef46c7c3d1547b347990a8\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_storage_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_full_INSERTED_TIMESTAMP__hour__2.c9809f0d87": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_full_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_10a62d8034b9ad82721f9a2e97e46251.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_full_INSERTED_TIMESTAMP__hour__2.c9809f0d87", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_full_INSERTED_TIMESTAMP__hour__2"], "alias": "state_tracer_storage_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_10a62d8034b9ad82721f9a2e97e46251", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_10a62d8034b9ad82721f9a2e97e46251", "store_failures": true}, "created_at": 1764018442.8207128, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.state_tracer_storage_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_10a62d8034b9ad82721f9a2e97e46251\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_storage_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3560af35cf": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_8e7ad567a06bf105bdba10a5cb5da62b.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3560af35cf", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "state_tracer_storage_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_8e7ad567a06bf105bdba10a5cb5da62b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_8e7ad567a06bf105bdba10a5cb5da62b", "store_failures": true}, "created_at": 1764018442.8288147, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.state_tracer_storage_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8e7ad567a06bf105bdba10a5cb5da62b\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_storage_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_full"}, "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_MODIFIED_TIMESTAMP.6efadb8966": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_storage_full_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tr_9182699d74c0c5a4f5d918a2619c26c8.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_MODIFIED_TIMESTAMP.6efadb8966", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "not_null_test_silver__state_tracer_storage_full_MODIFIED_TIMESTAMP"], "alias": "state_tracer_storage_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_silver__state_tr_9182699d74c0c5a4f5d918a2619c26c8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_silver__state_tr_9182699d74c0c5a4f5d918a2619c26c8", "store_failures": true}, "created_at": 1764018442.833959, "relation_name": "polygon.not_null_test_silver.state_tracer_storage_full_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_silver__state_tr_9182699d74c0c5a4f5d918a2619c26c8\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_storage_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_full_MODIFIED_TIMESTAMP__hour__2.06d1f3fa82": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_full_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_34a1322f96f76e23571ff2fd619e20bf.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_full_MODIFIED_TIMESTAMP__hour__2.06d1f3fa82", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_full_MODIFIED_TIMESTAMP__hour__2"], "alias": "state_tracer_storage_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_34a1322f96f76e23571ff2fd619e20bf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_34a1322f96f76e23571ff2fd619e20bf", "store_failures": true}, "created_at": 1764018442.836141, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.state_tracer_storage_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_34a1322f96f76e23571ff2fd619e20bf\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_storage_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3309bc50fc": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_b7ec6c151387a86a4b9d697290706df3.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3309bc50fc", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "state_tracer_storage_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_b7ec6c151387a86a4b9d697290706df3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b7ec6c151387a86a4b9d697290706df3", "store_failures": true}, "created_at": 1764018442.843926, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.state_tracer_storage_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b7ec6c151387a86a4b9d697290706df3\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_storage_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__state_tracer_storage_full_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__STORAGE_KEY.5b2da4ccec": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BLOCK_NUMBER", "TX_POSITION", "CONTRACT_ADDRESS", "STORAGE_KEY"], "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__state_tracer_storage_full_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__STORAGE_KEY", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_56567f06052709794b52ff90ceec96e1.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__state_tracer_storage_full_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__STORAGE_KEY.5b2da4ccec", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "dbt_utils_unique_combination_of_columns_test_silver__state_tracer_storage_full_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__STORAGE_KEY"], "alias": "state_tracer_storage_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_56567f06052709794b52ff90ceec96e1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_56567f06052709794b52ff90ceec96e1", "store_failures": true}, "created_at": 1764018442.849194, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.state_tracer_storage_full_BLOCK_NUMBER", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_56567f06052709794b52ff90ceec96e1\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__state_tracer_storage_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_full"}, "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_storage_full_BLOCK_NUMBER.220d9edbf2": {"test_metadata": {"name": "balances_sequence_gaps", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_storage_full')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_balances_sequence_gaps_test_silver", "name": "fsc_evm_balances_sequence_gaps_test_silver__state_tracer_storage_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_balances_sequence_gaps_213497d925ddc6de1eaa26c3e8c851d2.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_full.yml", "unique_id": "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_storage_full_BLOCK_NUMBER.220d9edbf2", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "fsc_evm_balances_sequence_gaps_test_silver__state_tracer_storage_full_BLOCK_NUMBER"], "alias": "state_tracer_storage_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "fsc_evm_balances_sequence_gaps_213497d925ddc6de1eaa26c3e8c851d2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "fsc_evm_balances_sequence_gaps_213497d925ddc6de1eaa26c3e8c851d2", "store_failures": true}, "created_at": 1764018442.8542814, "relation_name": "polygon.fsc_evm_balances_sequence_gaps_test_silver.state_tracer_storage_full_BLOCK_NUMBER", "raw_code": "{{ fsc_evm.test_balances_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(alias=\"fsc_evm_balances_sequence_gaps_213497d925ddc6de1eaa26c3e8c851d2\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_storage_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_balances_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__state_tracer_storage_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_storage_full"}, "test.fsc_evm.not_null_test_silver__state_tracer_native_full_BLOCK_NUMBER.daf64e7195": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_native_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tracer_native_full_BLOCK_NUMBER.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_native_full_BLOCK_NUMBER.daf64e7195", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "not_null_test_silver__state_tracer_native_full_BLOCK_NUMBER"], "alias": "state_tracer_native_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.9026983, "relation_name": "polygon.not_null_test_silver.state_tracer_native_full_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_silver__state_tracer_native_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_full"}, "test.fsc_evm.not_null_test_silver__state_tracer_native_full_TX_POSITION.5341ec1824": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_native_full_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tracer_native_full_TX_POSITION.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_native_full_TX_POSITION.5341ec1824", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "not_null_test_silver__state_tracer_native_full_TX_POSITION"], "alias": "state_tracer_native_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018442.905029, "relation_name": "polygon.not_null_test_silver.state_tracer_native_full_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_silver__state_tracer_native_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_full"}, "test.fsc_evm.not_null_test_silver__state_tracer_native_full__INSERTED_TIMESTAMP.34cabd03ea": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_native_full__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tr_e8eb7bd9fe2592018985e97362fa1670.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_native_full__INSERTED_TIMESTAMP.34cabd03ea", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "not_null_test_silver__state_tracer_native_full__INSERTED_TIMESTAMP"], "alias": "state_tracer_native_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_silver__state_tr_e8eb7bd9fe2592018985e97362fa1670", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_silver__state_tr_e8eb7bd9fe2592018985e97362fa1670", "store_failures": true}, "created_at": 1764018442.907194, "relation_name": "polygon.not_null_test_silver.state_tracer_native_full", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_silver__state_tr_e8eb7bd9fe2592018985e97362fa1670\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_native_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_full__INSERTED_TIMESTAMP__hour__2.04c0ea8b3a": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_full__INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_ee84f8e8e5cde32dd2eeba0148afd211.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_full__INSERTED_TIMESTAMP__hour__2.04c0ea8b3a", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_full__INSERTED_TIMESTAMP__hour__2"], "alias": "state_tracer_native_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_ee84f8e8e5cde32dd2eeba0148afd211", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_ee84f8e8e5cde32dd2eeba0148afd211", "store_failures": true}, "created_at": 1764018442.9093742, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.state_tracer_native_full", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_ee84f8e8e5cde32dd2eeba0148afd211\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_native_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b8f83a9d60": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_8990118f284e1036ade8e5203d141770.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b8f83a9d60", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "state_tracer_native_full", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_8990118f284e1036ade8e5203d141770", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_8990118f284e1036ade8e5203d141770", "store_failures": true}, "created_at": 1764018442.917446, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.state_tracer_native_full", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8990118f284e1036ade8e5203d141770\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_native_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_full"}, "test.fsc_evm.not_null_test_silver__state_tracer_native_full_INSERTED_TIMESTAMP.73148f4c9f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_native_full_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tr_b4620186dabfc47bddf11689e3dcbf7e.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_native_full_INSERTED_TIMESTAMP.73148f4c9f", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "not_null_test_silver__state_tracer_native_full_INSERTED_TIMESTAMP"], "alias": "state_tracer_native_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_silver__state_tr_b4620186dabfc47bddf11689e3dcbf7e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_silver__state_tr_b4620186dabfc47bddf11689e3dcbf7e", "store_failures": true}, "created_at": 1764018442.9225388, "relation_name": "polygon.not_null_test_silver.state_tracer_native_full_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_silver__state_tr_b4620186dabfc47bddf11689e3dcbf7e\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_native_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_full_INSERTED_TIMESTAMP__hour__2.27a287b0ff": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_full_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_4caa23ca6e52c5ea633a0552418416b8.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_full_INSERTED_TIMESTAMP__hour__2.27a287b0ff", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_full_INSERTED_TIMESTAMP__hour__2"], "alias": "state_tracer_native_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_4caa23ca6e52c5ea633a0552418416b8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_4caa23ca6e52c5ea633a0552418416b8", "store_failures": true}, "created_at": 1764018442.9246933, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.state_tracer_native_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_4caa23ca6e52c5ea633a0552418416b8\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_native_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e31b64f564": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_707e0133935dd427e23c7c7ee9985e6f.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e31b64f564", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "state_tracer_native_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_707e0133935dd427e23c7c7ee9985e6f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_707e0133935dd427e23c7c7ee9985e6f", "store_failures": true}, "created_at": 1764018442.932527, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.state_tracer_native_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_707e0133935dd427e23c7c7ee9985e6f\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_native_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_full"}, "test.fsc_evm.not_null_test_silver__state_tracer_native_full_MODIFIED_TIMESTAMP.039ad648bc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_native_full_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tr_e2f59e7f3bbc9d1e96ca88555ba50742.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_full.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_native_full_MODIFIED_TIMESTAMP.039ad648bc", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "not_null_test_silver__state_tracer_native_full_MODIFIED_TIMESTAMP"], "alias": "state_tracer_native_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_silver__state_tr_e2f59e7f3bbc9d1e96ca88555ba50742", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_silver__state_tr_e2f59e7f3bbc9d1e96ca88555ba50742", "store_failures": true}, "created_at": 1764018442.9377413, "relation_name": "polygon.not_null_test_silver.state_tracer_native_full_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_silver__state_tr_e2f59e7f3bbc9d1e96ca88555ba50742\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_native_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_full_MODIFIED_TIMESTAMP__hour__2.60b5f18488": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_full_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_7d80662467596d28489e1791e4c43a52.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_full_MODIFIED_TIMESTAMP__hour__2.60b5f18488", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_full_MODIFIED_TIMESTAMP__hour__2"], "alias": "state_tracer_native_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_7d80662467596d28489e1791e4c43a52", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_7d80662467596d28489e1791e4c43a52", "store_failures": true}, "created_at": 1764018442.9399788, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.state_tracer_native_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_7d80662467596d28489e1791e4c43a52\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_native_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c60bdcf3c5": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_0e3c97c36d019736903d5d4d657a50c1.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c60bdcf3c5", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "state_tracer_native_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_0e3c97c36d019736903d5d4d657a50c1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0e3c97c36d019736903d5d4d657a50c1", "store_failures": true}, "created_at": 1764018442.9477909, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.state_tracer_native_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0e3c97c36d019736903d5d4d657a50c1\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_native_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__state_tracer_native_full_BLOCK_NUMBER__TX_POSITION__ADDRESS.330497f8b0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BLOCK_NUMBER", "TX_POSITION", "ADDRESS"], "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__state_tracer_native_full_BLOCK_NUMBER__TX_POSITION__ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_09e0fd1d336c1de9d368ea5f54b94cb1.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__state_tracer_native_full_BLOCK_NUMBER__TX_POSITION__ADDRESS.330497f8b0", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "dbt_utils_unique_combination_of_columns_test_silver__state_tracer_native_full_BLOCK_NUMBER__TX_POSITION__ADDRESS"], "alias": "state_tracer_native_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_09e0fd1d336c1de9d368ea5f54b94cb1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_09e0fd1d336c1de9d368ea5f54b94cb1", "store_failures": true}, "created_at": 1764018442.9526534, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.state_tracer_native_full_BLOCK_NUMBER", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_09e0fd1d336c1de9d368ea5f54b94cb1\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__state_tracer_native_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_full"}, "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_full_BLOCK_NUMBER.6b2d336770": {"test_metadata": {"name": "balances_sequence_gaps", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_full')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_balances_sequence_gaps_test_silver", "name": "fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_balances_sequence_gaps_bb6025b9d5bddda534a5cbf0201972b4.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_full.yml", "unique_id": "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_full_BLOCK_NUMBER.6b2d336770", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_full_BLOCK_NUMBER"], "alias": "state_tracer_native_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "fsc_evm_balances_sequence_gaps_bb6025b9d5bddda534a5cbf0201972b4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "fsc_evm_balances_sequence_gaps_bb6025b9d5bddda534a5cbf0201972b4", "store_failures": true}, "created_at": 1764018442.9575624, "relation_name": "polygon.fsc_evm_balances_sequence_gaps_test_silver.state_tracer_native_full_BLOCK_NUMBER", "raw_code": "{{ fsc_evm.test_balances_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(alias=\"fsc_evm_balances_sequence_gaps_bb6025b9d5bddda534a5cbf0201972b4\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_balances_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__state_tracer_native_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_full"}, "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_full_TX_POSITION__BLOCK_NUMBER.9593e60f66": {"test_metadata": {"name": "balances_sequence_gaps", "kwargs": {"partition_by": ["BLOCK_NUMBER"], "column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_full')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_balances_sequence_gaps_test_silver", "name": "fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_full_TX_POSITION__BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_balances_sequence_gaps_1464f961882a01fbf93b66eda18b39f5.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_full.yml", "unique_id": "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_full_TX_POSITION__BLOCK_NUMBER.9593e60f66", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_full_TX_POSITION__BLOCK_NUMBER"], "alias": "state_tracer_native_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "fsc_evm_balances_sequence_gaps_1464f961882a01fbf93b66eda18b39f5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "fsc_evm_balances_sequence_gaps_1464f961882a01fbf93b66eda18b39f5", "store_failures": true}, "created_at": 1764018443.0030677, "relation_name": "polygon.fsc_evm_balances_sequence_gaps_test_silver.state_tracer_native_full_TX_POSITION", "raw_code": "{{ fsc_evm.test_balances_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(alias=\"fsc_evm_balances_sequence_gaps_1464f961882a01fbf93b66eda18b39f5\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_balances_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__state_tracer_native_full", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_full"}, "test.fsc_evm.not_null_test_silver__state_tracer_native_recent_BLOCK_NUMBER.2bfc175262": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_native_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tracer_native_recent_BLOCK_NUMBER.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_native_recent_BLOCK_NUMBER.2bfc175262", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "not_null_test_silver__state_tracer_native_recent_BLOCK_NUMBER"], "alias": "state_tracer_native_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.0513468, "relation_name": "polygon.not_null_test_silver.state_tracer_native_recent_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_silver__state_tracer_native_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_recent"}, "test.fsc_evm.not_null_test_silver__state_tracer_native_recent_TX_POSITION.fba367afc8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_native_recent_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tracer_native_recent_TX_POSITION.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_native_recent_TX_POSITION.fba367afc8", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "not_null_test_silver__state_tracer_native_recent_TX_POSITION"], "alias": "state_tracer_native_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.0536807, "relation_name": "polygon.not_null_test_silver.state_tracer_native_recent_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_silver__state_tracer_native_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_recent"}, "test.fsc_evm.not_null_test_silver__state_tracer_native_recent__INSERTED_TIMESTAMP.2d0e2d2228": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_native_recent__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tr_ab3f8b9eef0876c8c8179f68d7b15014.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_native_recent__INSERTED_TIMESTAMP.2d0e2d2228", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "not_null_test_silver__state_tracer_native_recent__INSERTED_TIMESTAMP"], "alias": "state_tracer_native_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_silver__state_tr_ab3f8b9eef0876c8c8179f68d7b15014", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_silver__state_tr_ab3f8b9eef0876c8c8179f68d7b15014", "store_failures": true}, "created_at": 1764018443.055899, "relation_name": "polygon.not_null_test_silver.state_tracer_native_recent", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_silver__state_tr_ab3f8b9eef0876c8c8179f68d7b15014\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_native_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_recent__INSERTED_TIMESTAMP__hour__2.4575f489b2": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_recent__INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_07ba92a1f3c21ad3a42e6091e4a285f3.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_recent__INSERTED_TIMESTAMP__hour__2.4575f489b2", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_recent__INSERTED_TIMESTAMP__hour__2"], "alias": "state_tracer_native_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_07ba92a1f3c21ad3a42e6091e4a285f3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_07ba92a1f3c21ad3a42e6091e4a285f3", "store_failures": true}, "created_at": 1764018443.0580635, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.state_tracer_native_recent", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_07ba92a1f3c21ad3a42e6091e4a285f3\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_native_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.03278afbbf": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_688555dc7045dff761bf78f5b7747555.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.03278afbbf", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "state_tracer_native_recent", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_688555dc7045dff761bf78f5b7747555", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_688555dc7045dff761bf78f5b7747555", "store_failures": true}, "created_at": 1764018443.0660424, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.state_tracer_native_recent", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_688555dc7045dff761bf78f5b7747555\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_native_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_recent"}, "test.fsc_evm.not_null_test_silver__state_tracer_native_recent_INSERTED_TIMESTAMP.bc0a242834": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_native_recent_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tr_b6d45b9d9b7c529f784c162aa6c3a4f9.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_native_recent_INSERTED_TIMESTAMP.bc0a242834", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "not_null_test_silver__state_tracer_native_recent_INSERTED_TIMESTAMP"], "alias": "state_tracer_native_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_silver__state_tr_b6d45b9d9b7c529f784c162aa6c3a4f9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_silver__state_tr_b6d45b9d9b7c529f784c162aa6c3a4f9", "store_failures": true}, "created_at": 1764018443.0710976, "relation_name": "polygon.not_null_test_silver.state_tracer_native_recent_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_silver__state_tr_b6d45b9d9b7c529f784c162aa6c3a4f9\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_native_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_recent_INSERTED_TIMESTAMP__hour__2.1e5bd49352": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_recent_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_1abbfb841ad4ad0ac2a8482d68ff5664.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_recent_INSERTED_TIMESTAMP__hour__2.1e5bd49352", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_recent_INSERTED_TIMESTAMP__hour__2"], "alias": "state_tracer_native_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_1abbfb841ad4ad0ac2a8482d68ff5664", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_1abbfb841ad4ad0ac2a8482d68ff5664", "store_failures": true}, "created_at": 1764018443.0732882, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.state_tracer_native_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_1abbfb841ad4ad0ac2a8482d68ff5664\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_native_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b6f1e27615": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_ff75e6d9ac09eacf0eb7f8e16b606165.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b6f1e27615", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "state_tracer_native_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_ff75e6d9ac09eacf0eb7f8e16b606165", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_ff75e6d9ac09eacf0eb7f8e16b606165", "store_failures": true}, "created_at": 1764018443.0814579, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.state_tracer_native_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ff75e6d9ac09eacf0eb7f8e16b606165\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_native_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_recent"}, "test.fsc_evm.not_null_test_silver__state_tracer_native_recent_MODIFIED_TIMESTAMP.4bc7f2d4b2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_silver", "name": "not_null_test_silver__state_tracer_native_recent_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_silver__state_tr_c61bece67f22218a1bf5c07a477b60ea.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_recent.yml", "unique_id": "test.fsc_evm.not_null_test_silver__state_tracer_native_recent_MODIFIED_TIMESTAMP.4bc7f2d4b2", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "not_null_test_silver__state_tracer_native_recent_MODIFIED_TIMESTAMP"], "alias": "state_tracer_native_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_silver__state_tr_c61bece67f22218a1bf5c07a477b60ea", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_silver__state_tr_c61bece67f22218a1bf5c07a477b60ea", "store_failures": true}, "created_at": 1764018443.0867815, "relation_name": "polygon.not_null_test_silver.state_tracer_native_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_silver__state_tr_c61bece67f22218a1bf5c07a477b60ea\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_native_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_recent_MODIFIED_TIMESTAMP__hour__2.3488f1550e": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_recent_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_12c8ab221c419d898356e94b5b13f17f.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_recent_MODIFIED_TIMESTAMP__hour__2.3488f1550e", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_recent_MODIFIED_TIMESTAMP__hour__2"], "alias": "state_tracer_native_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_12c8ab221c419d898356e94b5b13f17f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_12c8ab221c419d898356e94b5b13f17f", "store_failures": true}, "created_at": 1764018443.089053, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_silver.state_tracer_native_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_12c8ab221c419d898356e94b5b13f17f\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_native_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.492d86899e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_52b83ba4e7f0c12e178ba779005acf03.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.492d86899e", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "state_tracer_native_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_52b83ba4e7f0c12e178ba779005acf03", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_52b83ba4e7f0c12e178ba779005acf03", "store_failures": true}, "created_at": 1764018443.0967827, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver.state_tracer_native_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_52b83ba4e7f0c12e178ba779005acf03\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_silver__state_tracer_native_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__state_tracer_native_recent_BLOCK_NUMBER__TX_POSITION__ADDRESS.a268df025f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BLOCK_NUMBER", "TX_POSITION", "ADDRESS"], "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_silver", "name": "dbt_utils_unique_combination_of_columns_test_silver__state_tracer_native_recent_BLOCK_NUMBER__TX_POSITION__ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_90c5d2cbb8771d21a9c2b6c0493fde84.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__state_tracer_native_recent_BLOCK_NUMBER__TX_POSITION__ADDRESS.a268df025f", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "dbt_utils_unique_combination_of_columns_test_silver__state_tracer_native_recent_BLOCK_NUMBER__TX_POSITION__ADDRESS"], "alias": "state_tracer_native_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_90c5d2cbb8771d21a9c2b6c0493fde84", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_90c5d2cbb8771d21a9c2b6c0493fde84", "store_failures": true}, "created_at": 1764018443.1017962, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_silver.state_tracer_native_recent_BLOCK_NUMBER", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_90c5d2cbb8771d21a9c2b6c0493fde84\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__state_tracer_native_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_recent"}, "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_recent_BLOCK_NUMBER.ab121f4b57": {"test_metadata": {"name": "balances_sequence_gaps", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_recent')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_balances_sequence_gaps_test_silver", "name": "fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_balances_sequence_gaps_9d4e0ec10b0803c28bedf364a4ab1755.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_recent.yml", "unique_id": "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_recent_BLOCK_NUMBER.ab121f4b57", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_recent_BLOCK_NUMBER"], "alias": "state_tracer_native_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "fsc_evm_balances_sequence_gaps_9d4e0ec10b0803c28bedf364a4ab1755", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "fsc_evm_balances_sequence_gaps_9d4e0ec10b0803c28bedf364a4ab1755", "store_failures": true}, "created_at": 1764018443.106996, "relation_name": "polygon.fsc_evm_balances_sequence_gaps_test_silver.state_tracer_native_recent_BLOCK_NUMBER", "raw_code": "{{ fsc_evm.test_balances_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(alias=\"fsc_evm_balances_sequence_gaps_9d4e0ec10b0803c28bedf364a4ab1755\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_balances_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__state_tracer_native_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_recent"}, "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_recent_TX_POSITION__BLOCK_NUMBER.a836b23d74": {"test_metadata": {"name": "balances_sequence_gaps", "kwargs": {"partition_by": ["BLOCK_NUMBER"], "column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_silver__state_tracer_native_recent')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_balances_sequence_gaps_test_silver", "name": "fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_recent_TX_POSITION__BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_balances_sequence_gaps_0abb82c4082fc784883b3030deca7554.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_recent.yml", "unique_id": "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_recent_TX_POSITION__BLOCK_NUMBER.a836b23d74", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_recent_TX_POSITION__BLOCK_NUMBER"], "alias": "state_tracer_native_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "fsc_evm_balances_sequence_gaps_0abb82c4082fc784883b3030deca7554", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "fsc_evm_balances_sequence_gaps_0abb82c4082fc784883b3030deca7554", "store_failures": true}, "created_at": 1764018443.1525354, "relation_name": "polygon.fsc_evm_balances_sequence_gaps_test_silver.state_tracer_native_recent_TX_POSITION", "raw_code": "{{ fsc_evm.test_balances_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(alias=\"fsc_evm_balances_sequence_gaps_0abb82c4082fc784883b3030deca7554\") }}", "language": "sql", "refs": [{"name": "test_silver__state_tracer_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_balances_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_silver__state_tracer_native_recent", "attached_node": "model.fsc_evm.test_silver__state_tracer_native_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER.91728a0792": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER.91728a0792", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "not_null_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER"], "alias": "ez_balances_erc20_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.2098114, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_recent_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__ez_balances_erc20_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER__NUMBER__FLOAT.0a468bc5ad": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_4feb4d5a5e71d6e5be529882d0d92f34.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER__NUMBER__FLOAT.0a468bc5ad", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "ez_balances_erc20_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_4feb4d5a5e71d6e5be529882d0d92f34", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_4feb4d5a5e71d6e5be529882d0d92f34", "store_failures": true}, "created_at": 1764018443.212255, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_balances_erc20_recent_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4feb4d5a5e71d6e5be529882d0d92f34\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__ez_balances_erc20_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP.48e1d419bd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP.48e1d419bd", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "not_null_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP"], "alias": "ez_balances_erc20_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.217516, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_recent_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_erc20_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.ed24300667": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_e8736a7e6e5dd6077220e01ab8094c64.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.ed24300667", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "ez_balances_erc20_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_e8736a7e6e5dd6077220e01ab8094c64", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_e8736a7e6e5dd6077220e01ab8094c64", "store_failures": true}, "created_at": 1764018443.2197115, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_balances_erc20_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e8736a7e6e5dd6077220e01ab8094c64\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_erc20_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP__hour__2.040296e80e": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_3667dbe85863a6bde04093691dcd9eda.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP__hour__2.040296e80e", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP__hour__2"], "alias": "ez_balances_erc20_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_3667dbe85863a6bde04093691dcd9eda", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_3667dbe85863a6bde04093691dcd9eda", "store_failures": true}, "created_at": 1764018443.2247112, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_balances_erc20_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_3667dbe85863a6bde04093691dcd9eda\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_erc20_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_TX_HASH.757946cbca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_recent_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_recent_TX_HASH.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_TX_HASH.757946cbca", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "not_null_test_gold__ez_balances_erc20_recent_TX_HASH"], "alias": "ez_balances_erc20_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.2322798, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_recent_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__ez_balances_erc20_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_recent_TX_HASH__0_xX_0_9a_fA_F_.1302569002": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_recent_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_ac2bb912e63f11f5d5c75e60865ad802.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_recent_TX_HASH__0_xX_0_9a_fA_F_.1302569002", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_recent_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "ez_balances_erc20_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_ac2bb912e63f11f5d5c75e60865ad802", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_ac2bb912e63f11f5d5c75e60865ad802", "store_failures": true}, "created_at": 1764018443.2344291, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_balances_erc20_recent_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ac2bb912e63f11f5d5c75e60865ad802\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__ez_balances_erc20_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_ADDRESS.01c3206f30": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_recent_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_recent_ADDRESS.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_ADDRESS.01c3206f30", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "not_null_test_gold__ez_balances_erc20_recent_ADDRESS"], "alias": "ez_balances_erc20_recent_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.2397609, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_recent_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.test_gold__ez_balances_erc20_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_recent_ADDRESS__0_xX_0_9a_fA_F_.a3068d5b83": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_recent_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_b322cda132f7a3e10cf3c8edafb81903.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_recent_ADDRESS__0_xX_0_9a_fA_F_.a3068d5b83", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_recent_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_balances_erc20_recent_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_b322cda132f7a3e10cf3c8edafb81903", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b322cda132f7a3e10cf3c8edafb81903", "store_failures": true}, "created_at": 1764018443.2418828, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_balances_erc20_recent_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b322cda132f7a3e10cf3c8edafb81903\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.test_gold__ez_balances_erc20_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_TX_POSITION.1b521e9d0f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_recent_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_recent_TX_POSITION.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_TX_POSITION.1b521e9d0f", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "not_null_test_gold__ez_balances_erc20_recent_TX_POSITION"], "alias": "ez_balances_erc20_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.2475686, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_recent_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__ez_balances_erc20_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_recent_TX_POSITION__NUMBER__FLOAT.71f811a2f8": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_recent_TX_POSITION__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_256ad3fb1e8753552816a9db962482f5.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_recent_TX_POSITION__NUMBER__FLOAT.71f811a2f8", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_recent_TX_POSITION__NUMBER__FLOAT"], "alias": "ez_balances_erc20_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_256ad3fb1e8753552816a9db962482f5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_256ad3fb1e8753552816a9db962482f5", "store_failures": true}, "created_at": 1764018443.2496874, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_balances_erc20_recent_TX_POSITION", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_256ad3fb1e8753552816a9db962482f5\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__ez_balances_erc20_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_EZ_BALANCES_ERC20_ID.c51646cddb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EZ_BALANCES_ERC20_ID", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_recent_EZ_BALANCES_ERC20_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balance_b3bde26c6cc97f14ed505503ca3916c5.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_EZ_BALANCES_ERC20_ID.c51646cddb", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "not_null_test_gold__ez_balances_erc20_recent_EZ_BALANCES_ERC20_ID"], "alias": "ez_balances_erc20_recent_EZ_BALANCES_ERC20_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_gold__ez_balance_b3bde26c6cc97f14ed505503ca3916c5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_balance_b3bde26c6cc97f14ed505503ca3916c5", "store_failures": true}, "created_at": 1764018443.254417, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_recent_EZ_BALANCES_ERC20_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_balance_b3bde26c6cc97f14ed505503ca3916c5\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EZ_BALANCES_ERC20_ID", "file_key_name": "models.test_gold__ez_balances_erc20_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_INSERTED_TIMESTAMP.c66b3702e2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_recent_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_recent_INSERTED_TIMESTAMP.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_INSERTED_TIMESTAMP.c66b3702e2", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "not_null_test_gold__ez_balances_erc20_recent_INSERTED_TIMESTAMP"], "alias": "ez_balances_erc20_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.2568483, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_recent_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_erc20_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_recent_INSERTED_TIMESTAMP__hour__2.276c7a9819": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_recent_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_d3413159c8a496d4e180f44a5f26e0f3.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_recent_INSERTED_TIMESTAMP__hour__2.276c7a9819", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_recent_INSERTED_TIMESTAMP__hour__2"], "alias": "ez_balances_erc20_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_d3413159c8a496d4e180f44a5f26e0f3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_d3413159c8a496d4e180f44a5f26e0f3", "store_failures": true}, "created_at": 1764018443.2590277, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_balances_erc20_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_d3413159c8a496d4e180f44a5f26e0f3\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_erc20_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_MODIFIED_TIMESTAMP.ec71871087": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_recent_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_recent_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_MODIFIED_TIMESTAMP.ec71871087", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "not_null_test_gold__ez_balances_erc20_recent_MODIFIED_TIMESTAMP"], "alias": "ez_balances_erc20_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.2667382, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_erc20_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_recent_MODIFIED_TIMESTAMP__hour__2.2b6d777c36": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_recent_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_4734a7bcb0e5b3fc12ff421e680ea899.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_recent_MODIFIED_TIMESTAMP__hour__2.2b6d777c36", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_recent_MODIFIED_TIMESTAMP__hour__2"], "alias": "ez_balances_erc20_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_4734a7bcb0e5b3fc12ff421e680ea899", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_4734a7bcb0e5b3fc12ff421e680ea899", "store_failures": true}, "created_at": 1764018443.2688704, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_balances_erc20_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_4734a7bcb0e5b3fc12ff421e680ea899\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_erc20_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__ADDRESS.2a065e63fe": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BLOCK_NUMBER", "TX_POSITION", "CONTRACT_ADDRESS", "ADDRESS"], "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_ae00477178abfea8703ef26f160e7b0e.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__ADDRESS.2a065e63fe", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__ADDRESS"], "alias": "ez_balances_erc20_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_ae00477178abfea8703ef26f160e7b0e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ae00477178abfea8703ef26f160e7b0e", "store_failures": true}, "created_at": 1764018443.2764516, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.ez_balances_erc20_recent_BLOCK_NUMBER", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ae00477178abfea8703ef26f160e7b0e\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_balances_erc20_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_recent"}, "test.fsc_evm.fsc_evm_balances_diffs_erc20_test_gold__ez_balances_erc20_recent_test_gold__fact_event_logs_recent.f2764760a2": {"test_metadata": {"name": "balances_diffs_erc20", "kwargs": {"test_model": "test_gold__fact_event_logs_recent", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_recent')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_balances_diffs_erc20_test_gold", "name": "fsc_evm_balances_diffs_erc20_test_gold__ez_balances_erc20_recent_test_gold__fact_event_logs_recent", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_balances_diffs_erc20_t_301f7bd6f11e2c0f7b3791b390bf04b9.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "unique_id": "test.fsc_evm.fsc_evm_balances_diffs_erc20_test_gold__ez_balances_erc20_recent_test_gold__fact_event_logs_recent.f2764760a2", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "fsc_evm_balances_diffs_erc20_test_gold__ez_balances_erc20_recent_test_gold__fact_event_logs_recent"], "alias": "ez_balances_erc20_recent_test_gold", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "fsc_evm_balances_diffs_erc20_t_301f7bd6f11e2c0f7b3791b390bf04b9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "fsc_evm_balances_diffs_erc20_t_301f7bd6f11e2c0f7b3791b390bf04b9", "store_failures": true}, "created_at": 1764018443.2815592, "relation_name": "polygon.fsc_evm_balances_diffs_erc20_test_gold.ez_balances_erc20_recent_test_gold", "raw_code": "{{ fsc_evm.test_balances_diffs_erc20(**_dbt_generic_test_kwargs) }}{{ config(alias=\"fsc_evm_balances_diffs_erc20_t_301f7bd6f11e2c0f7b3791b390bf04b9\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}, {"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_balances_diffs_erc20", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_recent"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_balances_erc20_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_BLOCK_NUMBER.c55cc91d12": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_full_BLOCK_NUMBER.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_BLOCK_NUMBER.c55cc91d12", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "not_null_test_gold__ez_balances_erc20_full_BLOCK_NUMBER"], "alias": "ez_balances_erc20_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.2891347, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_full_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__ez_balances_erc20_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_full_BLOCK_NUMBER__NUMBER__FLOAT.1d0ad6dc52": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_full_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_c960fc6750bb632a50e97135ecb2eb22.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_full_BLOCK_NUMBER__NUMBER__FLOAT.1d0ad6dc52", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_full_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "ez_balances_erc20_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_c960fc6750bb632a50e97135ecb2eb22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c960fc6750bb632a50e97135ecb2eb22", "store_failures": true}, "created_at": 1764018443.291597, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_balances_erc20_full_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c960fc6750bb632a50e97135ecb2eb22\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__ez_balances_erc20_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP.3724f36b86": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP.3724f36b86", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "not_null_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP"], "alias": "ez_balances_erc20_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.296325, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_full_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_erc20_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.424615ee6c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_6fe5b5c4fe941da9a6758c9cd6c30800.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.424615ee6c", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "ez_balances_erc20_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_6fe5b5c4fe941da9a6758c9cd6c30800", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_6fe5b5c4fe941da9a6758c9cd6c30800", "store_failures": true}, "created_at": 1764018443.2985015, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_balances_erc20_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_6fe5b5c4fe941da9a6758c9cd6c30800\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_erc20_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP__hour__2.d79a65793c": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_eda6d0f5aa52a1a590ca4a67f3d37ffb.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP__hour__2.d79a65793c", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP__hour__2"], "alias": "ez_balances_erc20_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_eda6d0f5aa52a1a590ca4a67f3d37ffb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_eda6d0f5aa52a1a590ca4a67f3d37ffb", "store_failures": true}, "created_at": 1764018443.3035166, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_balances_erc20_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_eda6d0f5aa52a1a590ca4a67f3d37ffb\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_erc20_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_TX_HASH.4d0de34061": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_full_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_full_TX_HASH.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_TX_HASH.4d0de34061", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "not_null_test_gold__ez_balances_erc20_full_TX_HASH"], "alias": "ez_balances_erc20_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.311206, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_full_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__ez_balances_erc20_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_full_TX_HASH__0_xX_0_9a_fA_F_.6913d3d9ac": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_full_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_dfdf60545dbf61024e44665986620c81.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_full_TX_HASH__0_xX_0_9a_fA_F_.6913d3d9ac", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_full_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "ez_balances_erc20_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_dfdf60545dbf61024e44665986620c81", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_dfdf60545dbf61024e44665986620c81", "store_failures": true}, "created_at": 1764018443.3133495, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_balances_erc20_full_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_dfdf60545dbf61024e44665986620c81\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__ez_balances_erc20_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_ADDRESS.da38330a62": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_full_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_full_ADDRESS.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_ADDRESS.da38330a62", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "not_null_test_gold__ez_balances_erc20_full_ADDRESS"], "alias": "ez_balances_erc20_full_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.3187249, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_full_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.test_gold__ez_balances_erc20_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_full_ADDRESS__0_xX_0_9a_fA_F_.643110edff": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_full_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_ebf7659f91169612e22f3f160973797e.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_full_ADDRESS__0_xX_0_9a_fA_F_.643110edff", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_full_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_balances_erc20_full_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_ebf7659f91169612e22f3f160973797e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_ebf7659f91169612e22f3f160973797e", "store_failures": true}, "created_at": 1764018443.3208768, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_balances_erc20_full_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ebf7659f91169612e22f3f160973797e\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.test_gold__ez_balances_erc20_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_TX_POSITION.3fc340221c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_full_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_full_TX_POSITION.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_TX_POSITION.3fc340221c", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "not_null_test_gold__ez_balances_erc20_full_TX_POSITION"], "alias": "ez_balances_erc20_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.3261294, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_full_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__ez_balances_erc20_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_full_TX_POSITION__NUMBER__FLOAT.3d8227ec9a": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_full_TX_POSITION__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_965704110cfd2c36e374463da35675bc.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_full_TX_POSITION__NUMBER__FLOAT.3d8227ec9a", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_full_TX_POSITION__NUMBER__FLOAT"], "alias": "ez_balances_erc20_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_965704110cfd2c36e374463da35675bc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_965704110cfd2c36e374463da35675bc", "store_failures": true}, "created_at": 1764018443.3282688, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_balances_erc20_full_TX_POSITION", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_965704110cfd2c36e374463da35675bc\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__ez_balances_erc20_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_EZ_BALANCES_ERC20_ID.310cb37ed7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EZ_BALANCES_ERC20_ID", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_full_EZ_BALANCES_ERC20_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_full_EZ_BALANCES_ERC20_ID.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_EZ_BALANCES_ERC20_ID.310cb37ed7", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "not_null_test_gold__ez_balances_erc20_full_EZ_BALANCES_ERC20_ID"], "alias": "ez_balances_erc20_full_EZ_BALANCES_ERC20_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.333312, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_full_EZ_BALANCES_ERC20_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EZ_BALANCES_ERC20_ID", "file_key_name": "models.test_gold__ez_balances_erc20_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_INSERTED_TIMESTAMP.a5d2e2f414": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_full_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_full_INSERTED_TIMESTAMP.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_INSERTED_TIMESTAMP.a5d2e2f414", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "not_null_test_gold__ez_balances_erc20_full_INSERTED_TIMESTAMP"], "alias": "ez_balances_erc20_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.3354588, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_full_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_erc20_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_full_INSERTED_TIMESTAMP__hour__2.0eb14d6cc6": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_full_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_01af800e4728a6354139128d0d931c1d.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_full_INSERTED_TIMESTAMP__hour__2.0eb14d6cc6", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_full_INSERTED_TIMESTAMP__hour__2"], "alias": "ez_balances_erc20_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_01af800e4728a6354139128d0d931c1d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_01af800e4728a6354139128d0d931c1d", "store_failures": true}, "created_at": 1764018443.3376195, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_balances_erc20_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_01af800e4728a6354139128d0d931c1d\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_erc20_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_MODIFIED_TIMESTAMP.0da7826eef": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_erc20_full_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_erc20_full_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_MODIFIED_TIMESTAMP.0da7826eef", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "not_null_test_gold__ez_balances_erc20_full_MODIFIED_TIMESTAMP"], "alias": "ez_balances_erc20_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.3455422, "relation_name": "polygon.not_null_test_gold.ez_balances_erc20_full_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_erc20_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_full_MODIFIED_TIMESTAMP__hour__2.0966e4b584": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_full_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_ad8608ce19ebd7970ce61e092629b477.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_full_MODIFIED_TIMESTAMP__hour__2.0966e4b584", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_full_MODIFIED_TIMESTAMP__hour__2"], "alias": "ez_balances_erc20_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_ad8608ce19ebd7970ce61e092629b477", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_ad8608ce19ebd7970ce61e092629b477", "store_failures": true}, "created_at": 1764018443.34772, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_balances_erc20_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_ad8608ce19ebd7970ce61e092629b477\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_erc20_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_full_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__ADDRESS.852442981e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BLOCK_NUMBER", "TX_POSITION", "CONTRACT_ADDRESS", "ADDRESS"], "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_full_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_193645dea6a19c4487daf71cba451201.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_full_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__ADDRESS.852442981e", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_full_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__ADDRESS"], "alias": "ez_balances_erc20_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_193645dea6a19c4487daf71cba451201", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_193645dea6a19c4487daf71cba451201", "store_failures": true}, "created_at": 1764018443.3564095, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.ez_balances_erc20_full_BLOCK_NUMBER", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_193645dea6a19c4487daf71cba451201\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_balances_erc20_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_full"}, "test.fsc_evm.fsc_evm_balances_diffs_erc20_test_gold__ez_balances_erc20_full_test_gold__fact_event_logs_full.be7375fc73": {"test_metadata": {"name": "balances_diffs_erc20", "kwargs": {"test_model": "test_gold__fact_event_logs_full", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_erc20_full')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_balances_diffs_erc20_test_gold", "name": "fsc_evm_balances_diffs_erc20_test_gold__ez_balances_erc20_full_test_gold__fact_event_logs_full", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_balances_diffs_erc20_t_001bf5e905010c29ad0f50937c36a8c4.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "unique_id": "test.fsc_evm.fsc_evm_balances_diffs_erc20_test_gold__ez_balances_erc20_full_test_gold__fact_event_logs_full.be7375fc73", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "fsc_evm_balances_diffs_erc20_test_gold__ez_balances_erc20_full_test_gold__fact_event_logs_full"], "alias": "ez_balances_erc20_full_test_gold", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "fsc_evm_balances_diffs_erc20_t_001bf5e905010c29ad0f50937c36a8c4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "BLOCK_TIMESTAMP < CURRENT_DATE - 1", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "BLOCK_TIMESTAMP < CURRENT_DATE - 1", "alias": "fsc_evm_balances_diffs_erc20_t_001bf5e905010c29ad0f50937c36a8c4", "store_failures": true}, "created_at": 1764018443.3616717, "relation_name": "polygon.fsc_evm_balances_diffs_erc20_test_gold.ez_balances_erc20_full_test_gold", "raw_code": "{{ fsc_evm.test_balances_diffs_erc20(**_dbt_generic_test_kwargs) }}{{ config(where=\"BLOCK_TIMESTAMP < CURRENT_DATE - 1\",alias=\"fsc_evm_balances_diffs_erc20_t_001bf5e905010c29ad0f50937c36a8c4\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_full", "package": null, "version": null}, {"name": "test_gold__fact_event_logs_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_balances_diffs_erc20", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_event_logs_full"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_balances_erc20_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_erc20_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_full_BLOCK_NUMBER.69acacc211": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_full_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_native_full_BLOCK_NUMBER.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_full_BLOCK_NUMBER.69acacc211", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "not_null_test_gold__ez_balances_native_full_BLOCK_NUMBER"], "alias": "ez_balances_native_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.368656, "relation_name": "polygon.not_null_test_gold.ez_balances_native_full_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_full_BLOCK_NUMBER__NUMBER__FLOAT.50f7d50bdc": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_full_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_5990f8fd22cdc0919ddd8aa2b39e61f0.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_full_BLOCK_NUMBER__NUMBER__FLOAT.50f7d50bdc", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_full_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "ez_balances_native_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_5990f8fd22cdc0919ddd8aa2b39e61f0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_5990f8fd22cdc0919ddd8aa2b39e61f0", "store_failures": true}, "created_at": 1764018443.370919, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_balances_native_full_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5990f8fd22cdc0919ddd8aa2b39e61f0\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP.3a9afd0178": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP.3a9afd0178", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "not_null_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP"], "alias": "ez_balances_native_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.3755949, "relation_name": "polygon.not_null_test_gold.ez_balances_native_full_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.8d9f8e6ebf": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_5c874d2d36c1834ccd5d301112e1b187.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.8d9f8e6ebf", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "ez_balances_native_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_5c874d2d36c1834ccd5d301112e1b187", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_5c874d2d36c1834ccd5d301112e1b187", "store_failures": true}, "created_at": 1764018443.3777647, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_balances_native_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5c874d2d36c1834ccd5d301112e1b187\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP__hour__2.b107d29c9d": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_551d1cac0d57dc31c74985f0735175d1.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP__hour__2.b107d29c9d", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP__hour__2"], "alias": "ez_balances_native_full_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_551d1cac0d57dc31c74985f0735175d1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_551d1cac0d57dc31c74985f0735175d1", "store_failures": true}, "created_at": 1764018443.3829293, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_balances_native_full_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_551d1cac0d57dc31c74985f0735175d1\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_full_TX_HASH.2fe69fafd5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_full_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_native_full_TX_HASH.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_full_TX_HASH.2fe69fafd5", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "not_null_test_gold__ez_balances_native_full_TX_HASH"], "alias": "ez_balances_native_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.3905344, "relation_name": "polygon.not_null_test_gold.ez_balances_native_full_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_full_TX_HASH__0_xX_0_9a_fA_F_.d53f17ab0b": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_full_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_b8da65f4a2157bfab14ab3ba5b39f8c2.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_full_TX_HASH__0_xX_0_9a_fA_F_.d53f17ab0b", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_full_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "ez_balances_native_full_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_b8da65f4a2157bfab14ab3ba5b39f8c2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b8da65f4a2157bfab14ab3ba5b39f8c2", "store_failures": true}, "created_at": 1764018443.3926866, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_balances_native_full_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b8da65f4a2157bfab14ab3ba5b39f8c2\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_full_ADDRESS.35672de358": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_full_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_native_full_ADDRESS.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_full_ADDRESS.35672de358", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "not_null_test_gold__ez_balances_native_full_ADDRESS"], "alias": "ez_balances_native_full_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.398093, "relation_name": "polygon.not_null_test_gold.ez_balances_native_full_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_full_ADDRESS__0_xX_0_9a_fA_F_.05d87677be": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_full_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_673931080487bf014703c50847df941b.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_full_ADDRESS__0_xX_0_9a_fA_F_.05d87677be", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_full_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_balances_native_full_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_673931080487bf014703c50847df941b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_673931080487bf014703c50847df941b", "store_failures": true}, "created_at": 1764018443.4002767, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_balances_native_full_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_673931080487bf014703c50847df941b\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_full_TX_POSITION.da1b5f4519": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_full_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_native_full_TX_POSITION.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_full_TX_POSITION.da1b5f4519", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "not_null_test_gold__ez_balances_native_full_TX_POSITION"], "alias": "ez_balances_native_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.4055808, "relation_name": "polygon.not_null_test_gold.ez_balances_native_full_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_full_TX_POSITION__NUMBER__FLOAT.3f4aad2a67": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_full_TX_POSITION__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_6a220fc199af543a456344d2c97cd050.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_full_TX_POSITION__NUMBER__FLOAT.3f4aad2a67", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_full_TX_POSITION__NUMBER__FLOAT"], "alias": "ez_balances_native_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_6a220fc199af543a456344d2c97cd050", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_6a220fc199af543a456344d2c97cd050", "store_failures": true}, "created_at": 1764018443.4077268, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_balances_native_full_TX_POSITION", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_6a220fc199af543a456344d2c97cd050\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_full_EZ_BALANCES_NATIVE_ID.46bcbcafba": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EZ_BALANCES_NATIVE_ID", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_full_EZ_BALANCES_NATIVE_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balance_d3a5a7ba002d4e7e6a4c7562a245dac2.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_full_EZ_BALANCES_NATIVE_ID.46bcbcafba", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "not_null_test_gold__ez_balances_native_full_EZ_BALANCES_NATIVE_ID"], "alias": "ez_balances_native_full_EZ_BALANCES_NATIVE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_gold__ez_balance_d3a5a7ba002d4e7e6a4c7562a245dac2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_balance_d3a5a7ba002d4e7e6a4c7562a245dac2", "store_failures": true}, "created_at": 1764018443.4128284, "relation_name": "polygon.not_null_test_gold.ez_balances_native_full_EZ_BALANCES_NATIVE_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_balance_d3a5a7ba002d4e7e6a4c7562a245dac2\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EZ_BALANCES_NATIVE_ID", "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_full_INSERTED_TIMESTAMP.c453dab808": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_full_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_native_full_INSERTED_TIMESTAMP.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_full_INSERTED_TIMESTAMP.c453dab808", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "not_null_test_gold__ez_balances_native_full_INSERTED_TIMESTAMP"], "alias": "ez_balances_native_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.4150946, "relation_name": "polygon.not_null_test_gold.ez_balances_native_full_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_full_INSERTED_TIMESTAMP__hour__2.d78909c1b0": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_full_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_fc182aba7f502ad7fb719a85c558392c.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_full_INSERTED_TIMESTAMP__hour__2.d78909c1b0", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_full_INSERTED_TIMESTAMP__hour__2"], "alias": "ez_balances_native_full_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_fc182aba7f502ad7fb719a85c558392c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_fc182aba7f502ad7fb719a85c558392c", "store_failures": true}, "created_at": 1764018443.4172873, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_balances_native_full_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_fc182aba7f502ad7fb719a85c558392c\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_full_MODIFIED_TIMESTAMP.dbf568fac5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_full_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_native_full_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_full_MODIFIED_TIMESTAMP.dbf568fac5", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "not_null_test_gold__ez_balances_native_full_MODIFIED_TIMESTAMP"], "alias": "ez_balances_native_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.4252315, "relation_name": "polygon.not_null_test_gold.ez_balances_native_full_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_full_MODIFIED_TIMESTAMP__hour__2.1b9b9b6a83": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_full_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_fae8ac852deb0524489935d0ae9cee89.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_full_MODIFIED_TIMESTAMP__hour__2.1b9b9b6a83", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_full_MODIFIED_TIMESTAMP__hour__2"], "alias": "ez_balances_native_full_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_fae8ac852deb0524489935d0ae9cee89", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_fae8ac852deb0524489935d0ae9cee89", "store_failures": true}, "created_at": 1764018443.4274116, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_balances_native_full_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_fae8ac852deb0524489935d0ae9cee89\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_full_BLOCK_NUMBER__TX_POSITION__ADDRESS.8cc136bf0e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BLOCK_NUMBER", "TX_POSITION", "ADDRESS"], "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_full_BLOCK_NUMBER__TX_POSITION__ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_5314cb0ef167fcf73a217118440a3d8a.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_full_BLOCK_NUMBER__TX_POSITION__ADDRESS.8cc136bf0e", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_full_BLOCK_NUMBER__TX_POSITION__ADDRESS"], "alias": "ez_balances_native_full_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_5314cb0ef167fcf73a217118440a3d8a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5314cb0ef167fcf73a217118440a3d8a", "store_failures": true}, "created_at": 1764018443.4351966, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.ez_balances_native_full_BLOCK_NUMBER", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5314cb0ef167fcf73a217118440a3d8a\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_gold__ez_balances_native_full_TX_POSITION__BLOCK_NUMBER.89b997452e": {"test_metadata": {"name": "balances_sequence_gaps", "kwargs": {"partition_by": ["BLOCK_NUMBER"], "column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_balances_sequence_gaps_test_gold", "name": "fsc_evm_balances_sequence_gaps_test_gold__ez_balances_native_full_TX_POSITION__BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_balances_sequence_gaps_35e375a4deb7799c39e4edb1a37dbda9.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_gold__ez_balances_native_full_TX_POSITION__BLOCK_NUMBER.89b997452e", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "fsc_evm_balances_sequence_gaps_test_gold__ez_balances_native_full_TX_POSITION__BLOCK_NUMBER"], "alias": "ez_balances_native_full_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "fsc_evm_balances_sequence_gaps_35e375a4deb7799c39e4edb1a37dbda9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "BLOCK_TIMESTAMP < CURRENT_DATE - 1", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "BLOCK_TIMESTAMP < CURRENT_DATE - 1", "alias": "fsc_evm_balances_sequence_gaps_35e375a4deb7799c39e4edb1a37dbda9", "store_failures": true}, "created_at": 1764018443.4404247, "relation_name": "polygon.fsc_evm_balances_sequence_gaps_test_gold.ez_balances_native_full_TX_POSITION", "raw_code": "{{ fsc_evm.test_balances_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(where=\"BLOCK_TIMESTAMP < CURRENT_DATE - 1\",alias=\"fsc_evm_balances_sequence_gaps_35e375a4deb7799c39e4edb1a37dbda9\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_balances_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.fsc_evm_balances_diffs_native_test_gold__ez_balances_native_full_test_gold__fact_traces_full.6565b471ec": {"test_metadata": {"name": "balances_diffs_native", "kwargs": {"test_model": "test_gold__fact_traces_full", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_full')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_balances_diffs_native_test_gold", "name": "fsc_evm_balances_diffs_native_test_gold__ez_balances_native_full_test_gold__fact_traces_full", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_balances_diffs_native__e685ed0ae01b6158ef53f665432bca7e.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "unique_id": "test.fsc_evm.fsc_evm_balances_diffs_native_test_gold__ez_balances_native_full_test_gold__fact_traces_full.6565b471ec", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "fsc_evm_balances_diffs_native_test_gold__ez_balances_native_full_test_gold__fact_traces_full"], "alias": "ez_balances_native_full_test_gold", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "fsc_evm_balances_diffs_native__e685ed0ae01b6158ef53f665432bca7e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "BLOCK_TIMESTAMP < CURRENT_DATE - 1", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"where": "BLOCK_TIMESTAMP < CURRENT_DATE - 1", "alias": "fsc_evm_balances_diffs_native__e685ed0ae01b6158ef53f665432bca7e", "store_failures": true}, "created_at": 1764018443.485983, "relation_name": "polygon.fsc_evm_balances_diffs_native_test_gold.ez_balances_native_full_test_gold", "raw_code": "{{ fsc_evm.test_balances_diffs_native(**_dbt_generic_test_kwargs) }}{{ config(where=\"BLOCK_TIMESTAMP < CURRENT_DATE - 1\",alias=\"fsc_evm_balances_diffs_native__e685ed0ae01b6158ef53f665432bca7e\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_full", "package": null, "version": null}, {"name": "test_gold__fact_traces_full", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_balances_diffs_native", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_full"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_balances_native_full", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_full"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_BLOCK_NUMBER.1bb4e6b131": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_recent_BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_native_recent_BLOCK_NUMBER.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_BLOCK_NUMBER.1bb4e6b131", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "not_null_test_gold__ez_balances_native_recent_BLOCK_NUMBER"], "alias": "ez_balances_native_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.5365152, "relation_name": "polygon.not_null_test_gold.ez_balances_native_recent_BLOCK_NUMBER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_recent_BLOCK_NUMBER__NUMBER__FLOAT.45ff1eef76": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_NUMBER", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_recent_BLOCK_NUMBER__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_0b40001fdc967ba80edb39283feb5f7f.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_recent_BLOCK_NUMBER__NUMBER__FLOAT.45ff1eef76", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_recent_BLOCK_NUMBER__NUMBER__FLOAT"], "alias": "ez_balances_native_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_0b40001fdc967ba80edb39283feb5f7f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0b40001fdc967ba80edb39283feb5f7f", "store_failures": true}, "created_at": 1764018443.5389028, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_balances_native_recent_BLOCK_NUMBER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0b40001fdc967ba80edb39283feb5f7f\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_NUMBER", "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP.a3cf870526": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP.a3cf870526", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "not_null_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP"], "alias": "ez_balances_native_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.544036, "relation_name": "polygon.not_null_test_gold.ez_balances_native_recent_BLOCK_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.65f6fbec2e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_858708b08e4acd32960a7d5b0d72d5c2.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.65f6fbec2e", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "ez_balances_native_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_858708b08e4acd32960a7d5b0d72d5c2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_858708b08e4acd32960a7d5b0d72d5c2", "store_failures": true}, "created_at": 1764018443.546498, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_balances_native_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_858708b08e4acd32960a7d5b0d72d5c2\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP__hour__2.ff27d2f37e": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_a2153fb4ac1887d7ed1df1246d291c33.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP__hour__2.ff27d2f37e", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP__hour__2"], "alias": "ez_balances_native_recent_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_a2153fb4ac1887d7ed1df1246d291c33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_a2153fb4ac1887d7ed1df1246d291c33", "store_failures": true}, "created_at": 1764018443.5513625, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_balances_native_recent_BLOCK_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_a2153fb4ac1887d7ed1df1246d291c33\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_TX_HASH.bf6b15d88b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_recent_TX_HASH", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_native_recent_TX_HASH.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_TX_HASH.bf6b15d88b", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "not_null_test_gold__ez_balances_native_recent_TX_HASH"], "alias": "ez_balances_native_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.5590954, "relation_name": "polygon.not_null_test_gold.ez_balances_native_recent_TX_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_recent_TX_HASH__0_xX_0_9a_fA_F_.b62fa9c239": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "TX_HASH", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_recent_TX_HASH__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_f56501090d783c1ab63a1812cd9242d2.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_recent_TX_HASH__0_xX_0_9a_fA_F_.b62fa9c239", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_recent_TX_HASH__0_xX_0_9a_fA_F_"], "alias": "ez_balances_native_recent_TX_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_f56501090d783c1ab63a1812cd9242d2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f56501090d783c1ab63a1812cd9242d2", "store_failures": true}, "created_at": 1764018443.561307, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_balances_native_recent_TX_HASH", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f56501090d783c1ab63a1812cd9242d2\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_HASH", "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_ADDRESS.41beaf4325": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_recent_ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_native_recent_ADDRESS.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_ADDRESS.41beaf4325", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "not_null_test_gold__ez_balances_native_recent_ADDRESS"], "alias": "ez_balances_native_recent_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.566725, "relation_name": "polygon.not_null_test_gold.ez_balances_native_recent_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_recent_ADDRESS__0_xX_0_9a_fA_F_.40465d0c34": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_match_regex_test_gold", "name": "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_recent_ADDRESS__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_a4d6164d7abed7c6567917f3117434e9.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_recent_ADDRESS__0_xX_0_9a_fA_F_.40465d0c34", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_recent_ADDRESS__0_xX_0_9a_fA_F_"], "alias": "ez_balances_native_recent_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_a4d6164d7abed7c6567917f3117434e9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_a4d6164d7abed7c6567917f3117434e9", "store_failures": true}, "created_at": 1764018443.568847, "relation_name": "polygon.dbt_expectations_expect_column_values_to_match_regex_test_gold.ez_balances_native_recent_ADDRESS", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a4d6164d7abed7c6567917f3117434e9\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_TX_POSITION.f56998ca13": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_recent_TX_POSITION", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balances_native_recent_TX_POSITION.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_TX_POSITION.f56998ca13", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "not_null_test_gold__ez_balances_native_recent_TX_POSITION"], "alias": "ez_balances_native_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1764018443.5742111, "relation_name": "polygon.not_null_test_gold.ez_balances_native_recent_TX_POSITION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}, "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_recent_TX_POSITION__NUMBER__FLOAT.5051e242ac": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_recent_TX_POSITION__NUMBER__FLOAT", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_column_a2c555a029f08364fbb8ff484521796e.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_recent_TX_POSITION__NUMBER__FLOAT.5051e242ac", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_recent_TX_POSITION__NUMBER__FLOAT"], "alias": "ez_balances_native_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_column_a2c555a029f08364fbb8ff484521796e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_a2c555a029f08364fbb8ff484521796e", "store_failures": true}, "created_at": 1764018443.5763812, "relation_name": "polygon.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold.ez_balances_native_recent_TX_POSITION", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a2c555a029f08364fbb8ff484521796e\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_POSITION", "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_EZ_BALANCES_NATIVE_ID.ee66cf61ae": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "EZ_BALANCES_NATIVE_ID", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_recent_EZ_BALANCES_NATIVE_ID", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balance_1851ee85940b178328ebb4420cf14982.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_EZ_BALANCES_NATIVE_ID.ee66cf61ae", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "not_null_test_gold__ez_balances_native_recent_EZ_BALANCES_NATIVE_ID"], "alias": "ez_balances_native_recent_EZ_BALANCES_NATIVE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_gold__ez_balance_1851ee85940b178328ebb4420cf14982", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_balance_1851ee85940b178328ebb4420cf14982", "store_failures": true}, "created_at": 1764018443.5814326, "relation_name": "polygon.not_null_test_gold.ez_balances_native_recent_EZ_BALANCES_NATIVE_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_balance_1851ee85940b178328ebb4420cf14982\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "EZ_BALANCES_NATIVE_ID", "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_INSERTED_TIMESTAMP.8be1294764": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_recent_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balance_4e362477a4148caf442bfc7d7adbdfc7.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_INSERTED_TIMESTAMP.8be1294764", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "not_null_test_gold__ez_balances_native_recent_INSERTED_TIMESTAMP"], "alias": "ez_balances_native_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_gold__ez_balance_4e362477a4148caf442bfc7d7adbdfc7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_balance_4e362477a4148caf442bfc7d7adbdfc7", "store_failures": true}, "created_at": 1764018443.5835686, "relation_name": "polygon.not_null_test_gold.ez_balances_native_recent_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_balance_4e362477a4148caf442bfc7d7adbdfc7\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_recent_INSERTED_TIMESTAMP__hour__2.94be8de4d7": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_recent_INSERTED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_0129ac32d3f8697293c3a3932d596e53.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_recent_INSERTED_TIMESTAMP__hour__2.94be8de4d7", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_recent_INSERTED_TIMESTAMP__hour__2"], "alias": "ez_balances_native_recent_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_0129ac32d3f8697293c3a3932d596e53", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_0129ac32d3f8697293c3a3932d596e53", "store_failures": true}, "created_at": 1764018443.5857124, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_balances_native_recent_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_0129ac32d3f8697293c3a3932d596e53\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}, "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_MODIFIED_TIMESTAMP.594af9f4e9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": null}, "database": "polygon", "schema": "not_null_test_gold", "name": "not_null_test_gold__ez_balances_native_recent_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "fsc_evm", "path": "not_null_test_gold__ez_balance_136b9075c5160d6fd3c0c0cf10cc0dd1.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_MODIFIED_TIMESTAMP.594af9f4e9", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "not_null_test_gold__ez_balances_native_recent_MODIFIED_TIMESTAMP"], "alias": "ez_balances_native_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_test_gold__ez_balance_136b9075c5160d6fd3c0c0cf10cc0dd1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_test_gold__ez_balance_136b9075c5160d6fd3c0c0cf10cc0dd1", "store_failures": true}, "created_at": 1764018443.5938184, "relation_name": "polygon.not_null_test_gold.ez_balances_native_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_test_gold__ez_balance_136b9075c5160d6fd3c0c0cf10cc0dd1\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}, "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_recent_MODIFIED_TIMESTAMP__hour__2.0362addb52": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "hour", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": "dbt_expectations"}, "database": "polygon", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold", "name": "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_recent_MODIFIED_TIMESTAMP__hour__2", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_expectations_expect_row_va_3a41684315d3ec4d92cf2f2157370158.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_recent_MODIFIED_TIMESTAMP__hour__2.0362addb52", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_recent_MODIFIED_TIMESTAMP__hour__2"], "alias": "ez_balances_native_recent_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_3a41684315d3ec4d92cf2f2157370158", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_3a41684315d3ec4d92cf2f2157370158", "store_failures": true}, "created_at": 1764018443.5960772, "relation_name": "polygon.dbt_expectations_expect_row_values_to_have_recent_data_test_gold.ez_balances_native_recent_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_3a41684315d3ec4d92cf2f2157370158\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}, "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_recent_BLOCK_NUMBER__TX_POSITION__ADDRESS.10abe1b512": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BLOCK_NUMBER", "TX_POSITION", "ADDRESS"], "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": "dbt_utils"}, "database": "polygon", "schema": "dbt_utils_unique_combination_of_columns_test_gold", "name": "dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_recent_BLOCK_NUMBER__TX_POSITION__ADDRESS", "resource_type": "test", "package_name": "fsc_evm", "path": "dbt_utils_unique_combination_o_d951ecac5fdf044dce75a1dbd91c790d.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_recent_BLOCK_NUMBER__TX_POSITION__ADDRESS.10abe1b512", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_recent_BLOCK_NUMBER__TX_POSITION__ADDRESS"], "alias": "ez_balances_native_recent_BLOCK_NUMBER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_d951ecac5fdf044dce75a1dbd91c790d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d951ecac5fdf044dce75a1dbd91c790d", "store_failures": true}, "created_at": 1764018443.6041932, "relation_name": "polygon.dbt_utils_unique_combination_of_columns_test_gold.ez_balances_native_recent_BLOCK_NUMBER", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d951ecac5fdf044dce75a1dbd91c790d\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}, "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_gold__ez_balances_native_recent_TX_POSITION__BLOCK_NUMBER.d26a1aa27f": {"test_metadata": {"name": "balances_sequence_gaps", "kwargs": {"partition_by": ["BLOCK_NUMBER"], "column_name": "TX_POSITION", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_balances_sequence_gaps_test_gold", "name": "fsc_evm_balances_sequence_gaps_test_gold__ez_balances_native_recent_TX_POSITION__BLOCK_NUMBER", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_balances_sequence_gaps_e4d69bf451d802c9ef3ab3a846cc735a.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_gold__ez_balances_native_recent_TX_POSITION__BLOCK_NUMBER.d26a1aa27f", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "fsc_evm_balances_sequence_gaps_test_gold__ez_balances_native_recent_TX_POSITION__BLOCK_NUMBER"], "alias": "ez_balances_native_recent_TX_POSITION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "fsc_evm_balances_sequence_gaps_e4d69bf451d802c9ef3ab3a846cc735a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "fsc_evm_balances_sequence_gaps_e4d69bf451d802c9ef3ab3a846cc735a", "store_failures": true}, "created_at": 1764018443.6096392, "relation_name": "polygon.fsc_evm_balances_sequence_gaps_test_gold.ez_balances_native_recent_TX_POSITION", "raw_code": "{{ fsc_evm.test_balances_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(alias=\"fsc_evm_balances_sequence_gaps_e4d69bf451d802c9ef3ab3a846cc735a\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_balances_sequence_gaps", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}, "test.fsc_evm.fsc_evm_balances_diffs_native_test_gold__ez_balances_native_recent_test_gold__fact_traces_recent.b9139d7c14": {"test_metadata": {"name": "balances_diffs_native", "kwargs": {"test_model": "test_gold__fact_traces_recent", "model": "{{ get_where_subquery(ref('test_gold__ez_balances_native_recent')) }}"}, "namespace": "fsc_evm"}, "database": "polygon", "schema": "fsc_evm_balances_diffs_native_test_gold", "name": "fsc_evm_balances_diffs_native_test_gold__ez_balances_native_recent_test_gold__fact_traces_recent", "resource_type": "test", "package_name": "fsc_evm", "path": "fsc_evm_balances_diffs_native__273402d8a58899e2c3b909443dd03450.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "unique_id": "test.fsc_evm.fsc_evm_balances_diffs_native_test_gold__ez_balances_native_recent_test_gold__fact_traces_recent.b9139d7c14", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "fsc_evm_balances_diffs_native_test_gold__ez_balances_native_recent_test_gold__fact_traces_recent"], "alias": "ez_balances_native_recent_test_gold", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "fsc_evm_balances_diffs_native__273402d8a58899e2c3b909443dd03450", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "fsc_evm_balances_diffs_native__273402d8a58899e2c3b909443dd03450", "store_failures": true}, "created_at": 1764018443.6550794, "relation_name": "polygon.fsc_evm_balances_diffs_native_test_gold.ez_balances_native_recent_test_gold", "raw_code": "{{ fsc_evm.test_balances_diffs_native(**_dbt_generic_test_kwargs) }}{{ config(alias=\"fsc_evm_balances_diffs_native__273402d8a58899e2c3b909443dd03450\") }}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}, {"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.test_balances_diffs_native", "macro.fsc_evm.get_where_subquery"], "nodes": ["model.fsc_evm.test_gold__fact_traces_recent"]}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.test_gold__ez_balances_native_recent", "attached_node": "model.fsc_evm.test_gold__ez_balances_native_recent"}}, "sources": {"source.polygon_models.bronze_streamline.receipts": {"database": "streamline", "schema": "POLYGON", "name": "receipts", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.bronze_streamline.receipts", "fqn": ["polygon_models", "bronze_streamline", "receipts"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "receipts", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.POLYGON.receipts", "created_at": 1764018443.7132156}, "source.polygon_models.bronze_streamline.blocks": {"database": "streamline", "schema": "POLYGON", "name": "blocks", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.bronze_streamline.blocks", "fqn": ["polygon_models", "bronze_streamline", "blocks"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "blocks", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.POLYGON.blocks", "created_at": 1764018443.7134938}, "source.polygon_models.bronze_streamline.transactions": {"database": "streamline", "schema": "POLYGON", "name": "transactions", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.bronze_streamline.transactions", "fqn": ["polygon_models", "bronze_streamline", "transactions"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "transactions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.POLYGON.transactions", "created_at": 1764018443.7136817}, "source.polygon_models.bronze_streamline.traces": {"database": "streamline", "schema": "POLYGON", "name": "traces", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.bronze_streamline.traces", "fqn": ["polygon_models", "bronze_streamline", "traces"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "traces", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.POLYGON.traces", "created_at": 1764018443.7138474}, "source.polygon_models.bronze_streamline.decoded_logs": {"database": "streamline", "schema": "POLYGON", "name": "decoded_logs", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.bronze_streamline.decoded_logs", "fqn": ["polygon_models", "bronze_streamline", "decoded_logs"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "decoded_logs", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.POLYGON.decoded_logs", "created_at": 1764018443.714027}, "source.polygon_models.bronze_streamline.confirm_blocks": {"database": "streamline", "schema": "POLYGON", "name": "confirm_blocks", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.bronze_streamline.confirm_blocks", "fqn": ["polygon_models", "bronze_streamline", "confirm_blocks"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "confirm_blocks", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.POLYGON.confirm_blocks", "created_at": 1764018443.7141812}, "source.polygon_models.bronze_streamline.contract_abis": {"database": "streamline", "schema": "POLYGON", "name": "contract_abis", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.bronze_streamline.contract_abis", "fqn": ["polygon_models", "bronze_streamline", "contract_abis"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "contract_abis", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.POLYGON.contract_abis", "created_at": 1764018443.7143319}, "source.polygon_models.bronze_streamline.token_reads": {"database": "streamline", "schema": "POLYGON", "name": "token_reads", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.bronze_streamline.token_reads", "fqn": ["polygon_models", "bronze_streamline", "token_reads"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "token_reads", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.POLYGON.token_reads", "created_at": 1764018443.7144806}, "source.polygon_models.bronze_streamline.balances_erc20": {"database": "streamline", "schema": "POLYGON", "name": "balances_erc20", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.bronze_streamline.balances_erc20", "fqn": ["polygon_models", "bronze_streamline", "balances_erc20"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "balances_erc20", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.POLYGON.balances_erc20", "created_at": 1764018443.7146301}, "source.polygon_models.bronze_streamline.balances_native": {"database": "streamline", "schema": "POLYGON", "name": "balances_native", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.bronze_streamline.balances_native", "fqn": ["polygon_models", "bronze_streamline", "balances_native"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "balances_native", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.POLYGON.balances_native", "created_at": 1764018443.7147796}, "source.polygon_models.bronze_streamline.state_tracer": {"database": "streamline", "schema": "POLYGON", "name": "state_tracer", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.bronze_streamline.state_tracer", "fqn": ["polygon_models", "bronze_streamline", "state_tracer"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "state_tracer", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.POLYGON.state_tracer", "created_at": 1764018443.7149467}, "source.polygon_models.bronze_streamline.stablecoin_reads": {"database": "streamline", "schema": "POLYGON", "name": "stablecoin_reads", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.bronze_streamline.stablecoin_reads", "fqn": ["polygon_models", "bronze_streamline", "stablecoin_reads"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "stablecoin_reads", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.POLYGON.stablecoin_reads", "created_at": 1764018443.715113}, "source.polygon_models.crosschain_silver.near_address_encoded": {"database": "CROSSCHAIN", "schema": "silver", "name": "near_address_encoded", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.crosschain_silver.near_address_encoded", "fqn": ["polygon_models", "crosschain_silver", "near_address_encoded"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "near_address_encoded", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "CROSSCHAIN.silver.near_address_encoded", "created_at": 1764018443.7152622}, "source.polygon_models.crosschain_silver.labels_combined": {"database": "CROSSCHAIN", "schema": "silver", "name": "labels_combined", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.crosschain_silver.labels_combined", "fqn": ["polygon_models", "crosschain_silver", "labels_combined"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "labels_combined", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "CROSSCHAIN.silver.labels_combined", "created_at": 1764018443.7154083}, "source.polygon_models.crosschain_silver.complete_provider_asset_metadata": {"database": "CROSSCHAIN", "schema": "silver", "name": "complete_provider_asset_metadata", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.crosschain_silver.complete_provider_asset_metadata", "fqn": ["polygon_models", "crosschain_silver", "complete_provider_asset_metadata"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "complete_provider_asset_metadata", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "CROSSCHAIN.silver.complete_provider_asset_metadata", "created_at": 1764018443.7155545}, "source.polygon_models.crosschain_silver.complete_native_asset_metadata": {"database": "CROSSCHAIN", "schema": "silver", "name": "complete_native_asset_metadata", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.crosschain_silver.complete_native_asset_metadata", "fqn": ["polygon_models", "crosschain_silver", "complete_native_asset_metadata"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "complete_native_asset_metadata", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "CROSSCHAIN.silver.complete_native_asset_metadata", "created_at": 1764018443.7157197}, "source.polygon_models.crosschain_silver.complete_native_prices": {"database": "CROSSCHAIN", "schema": "silver", "name": "complete_native_prices", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.crosschain_silver.complete_native_prices", "fqn": ["polygon_models", "crosschain_silver", "complete_native_prices"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "complete_native_prices", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "CROSSCHAIN.silver.complete_native_prices", "created_at": 1764018443.7158768}, "source.polygon_models.crosschain_silver.complete_provider_prices": {"database": "CROSSCHAIN", "schema": "silver", "name": "complete_provider_prices", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.crosschain_silver.complete_provider_prices", "fqn": ["polygon_models", "crosschain_silver", "complete_provider_prices"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "complete_provider_prices", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "CROSSCHAIN.silver.complete_provider_prices", "created_at": 1764018443.7160258}, "source.polygon_models.crosschain_silver.complete_token_asset_metadata": {"database": "CROSSCHAIN", "schema": "silver", "name": "complete_token_asset_metadata", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.crosschain_silver.complete_token_asset_metadata", "fqn": ["polygon_models", "crosschain_silver", "complete_token_asset_metadata"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "complete_token_asset_metadata", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "CROSSCHAIN.silver.complete_token_asset_metadata", "created_at": 1764018443.7161703}, "source.polygon_models.crosschain_silver.complete_token_prices": {"database": "CROSSCHAIN", "schema": "silver", "name": "complete_token_prices", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.crosschain_silver.complete_token_prices", "fqn": ["polygon_models", "crosschain_silver", "complete_token_prices"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "complete_token_prices", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "CROSSCHAIN.silver.complete_token_prices", "created_at": 1764018443.7163124}, "source.polygon_models.crosschain_silver.tokens_stablecoins": {"database": "CROSSCHAIN", "schema": "silver", "name": "tokens_stablecoins", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.crosschain_silver.tokens_stablecoins", "fqn": ["polygon_models", "crosschain_silver", "tokens_stablecoins"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "tokens_stablecoins", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "CROSSCHAIN.silver.tokens_stablecoins", "created_at": 1764018443.7164538}, "source.polygon_models.crosschain_gold.dim_dates": {"database": "crosschain", "schema": "core", "name": "dim_dates", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.crosschain_gold.dim_dates", "fqn": ["polygon_models", "crosschain_gold", "dim_dates"], "source_name": "crosschain_gold", "source_description": "", "loader": "", "identifier": "dim_dates", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.core.dim_dates", "created_at": 1764018443.716599}, "source.polygon_models.crosschain_public.user_abis": {"database": "crosschain", "schema": "bronze_public", "name": "user_abis", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.crosschain_public.user_abis", "fqn": ["polygon_models", "crosschain_public", "user_abis"], "source_name": "crosschain_public", "source_description": "", "loader": "", "identifier": "user_abis", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.bronze_public.user_abis", "created_at": 1764018443.7167442}, "source.polygon_models.complete_streamline.complete_contract_abis": {"database": "polygon", "schema": "streamline", "name": "complete_contract_abis", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.complete_streamline.complete_contract_abis", "fqn": ["polygon_models", "complete_streamline", "complete_contract_abis"], "source_name": "complete_streamline", "source_description": "", "loader": "", "identifier": "complete_contract_abis", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.complete_contract_abis", "created_at": 1764018443.7169046}, "source.polygon_models.github_actions.workflows": {"database": "polygon", "schema": "github_actions", "name": "workflows", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.github_actions.workflows", "fqn": ["polygon_models", "github_actions", "workflows"], "source_name": "github_actions", "source_description": "", "loader": "", "identifier": "workflows", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.github_actions.workflows", "created_at": 1764018443.7170556}, "source.polygon_models.external_gold_defillama.dim_chains": {"database": "external", "schema": "defillama", "name": "dim_chains", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.external_gold_defillama.dim_chains", "fqn": ["polygon_models", "external_gold_defillama", "dim_chains"], "source_name": "external_gold_defillama", "source_description": "", "loader": "", "identifier": "dim_chains", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "external.defillama.dim_chains", "created_at": 1764018443.717202}, "source.polygon_models.external_polymarket.dim_markets": {"database": "external", "schema": "polymarket", "name": "dim_markets", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.external_polymarket.dim_markets", "fqn": ["polygon_models", "external_polymarket", "dim_markets"], "source_name": "external_polymarket", "source_description": "", "loader": "", "identifier": "dim_markets", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "external.polymarket.dim_markets", "created_at": 1764018443.717361}, "source.polygon_models.abis_silver.verified_abis": {"database": "polygon", "schema": "silver", "name": "verified_abis", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.abis_silver.verified_abis", "fqn": ["polygon_models", "abis_silver", "verified_abis"], "source_name": "abis_silver", "source_description": "", "loader": "", "identifier": "verified_abis", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.silver.verified_abis", "created_at": 1764018443.7175057}, "source.polygon_models.abis_silver.complete_event_abis": {"database": "polygon", "schema": "silver", "name": "complete_event_abis", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.abis_silver.complete_event_abis", "fqn": ["polygon_models", "abis_silver", "complete_event_abis"], "source_name": "abis_silver", "source_description": "", "loader": "", "identifier": "complete_event_abis", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.silver.complete_event_abis", "created_at": 1764018443.7176492}, "source.polygon_models.fsc_evm_admin._master_keys": {"database": "FSC_EVM", "schema": "admin", "name": "_master_keys", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.fsc_evm_admin._master_keys", "fqn": ["polygon_models", "fsc_evm_admin", "_master_keys"], "source_name": "fsc_evm_admin", "source_description": "", "loader": "", "identifier": "_master_keys", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "FSC_EVM.admin._master_keys", "created_at": 1764018443.717793}, "source.polygon_models.fsc_evm_admin.rpc_node_logs": {"database": "FSC_EVM", "schema": "admin", "name": "rpc_node_logs", "resource_type": "source", "package_name": "polygon_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.polygon_models.fsc_evm_admin.rpc_node_logs", "fqn": ["polygon_models", "fsc_evm_admin", "rpc_node_logs"], "source_name": "fsc_evm_admin", "source_description": "", "loader": "", "identifier": "rpc_node_logs", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "FSC_EVM.admin.rpc_node_logs", "created_at": 1764018443.7179701}, "source.livequery_models.crosschain.dim_date_hours": {"database": "crosschain_dev", "schema": "core", "name": "dim_date_hours", "resource_type": "source", "package_name": "livequery_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.livequery_models.crosschain.dim_date_hours", "fqn": ["livequery_models", "crosschain", "dim_date_hours"], "source_name": "crosschain", "source_description": "", "loader": "", "identifier": "dim_date_hours", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain_dev.core.dim_date_hours", "created_at": 1764018443.7181385}, "source.livequery_models.crosschain.dim_contracts": {"database": "crosschain_dev", "schema": "core", "name": "dim_contracts", "resource_type": "source", "package_name": "livequery_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.livequery_models.crosschain.dim_contracts", "fqn": ["livequery_models", "crosschain", "dim_contracts"], "source_name": "crosschain", "source_description": "", "loader": "", "identifier": "dim_contracts", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain_dev.core.dim_contracts", "created_at": 1764018443.7182994}, "source.livequery_models.crosschain.dim_evm_event_abis": {"database": "crosschain_dev", "schema": "core", "name": "dim_evm_event_abis", "resource_type": "source", "package_name": "livequery_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.livequery_models.crosschain.dim_evm_event_abis", "fqn": ["livequery_models", "crosschain", "dim_evm_event_abis"], "source_name": "crosschain", "source_description": "", "loader": "", "identifier": "dim_evm_event_abis", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain_dev.core.dim_evm_event_abis", "created_at": 1764018443.7184582}, "source.livequery_models.ethereum_core.fact_event_logs": {"database": "ethereum_dev", "schema": "core", "name": "fact_event_logs", "resource_type": "source", "package_name": "livequery_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.livequery_models.ethereum_core.fact_event_logs", "fqn": ["livequery_models", "ethereum_core", "fact_event_logs"], "source_name": "ethereum_core", "source_description": "", "loader": "", "identifier": "fact_event_logs", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ethereum_dev.core.fact_event_logs", "created_at": 1764018443.718621}, "source.livequery_models.ethereum_core.ez_decoded_event_logs": {"database": "ethereum_dev", "schema": "core", "name": "ez_decoded_event_logs", "resource_type": "source", "package_name": "livequery_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.livequery_models.ethereum_core.ez_decoded_event_logs", "fqn": ["livequery_models", "ethereum_core", "ez_decoded_event_logs"], "source_name": "ethereum_core", "source_description": "", "loader": "", "identifier": "ez_decoded_event_logs", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ethereum_dev.core.ez_decoded_event_logs", "created_at": 1764018443.718781}, "source.fsc_evm.snowflake_account_usage.complete_task_graphs": {"database": "snowflake", "schema": "account_usage", "name": "complete_task_graphs", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.snowflake_account_usage.complete_task_graphs", "fqn": ["fsc_evm", "snowflake_account_usage", "complete_task_graphs"], "source_name": "snowflake_account_usage", "source_description": "", "loader": "", "identifier": "complete_task_graphs", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "snowflake.account_usage.complete_task_graphs", "created_at": 1764018443.7189617}, "source.fsc_evm.github_actions.workflows": {"database": "polygon", "schema": "github_actions", "name": "workflows", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.github_actions.workflows", "fqn": ["fsc_evm", "github_actions", "workflows"], "source_name": "github_actions", "source_description": "", "loader": "", "identifier": "workflows", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.github_actions.workflows", "created_at": 1764018443.7192352}, "source.fsc_evm.bronze_streamline.blocks": {"database": "polygon", "schema": "streamline", "name": "blocks", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.blocks", "fqn": ["fsc_evm", "bronze_streamline", "blocks"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "blocks", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.blocks", "created_at": 1764018443.7194033}, "source.fsc_evm.bronze_streamline.blocks_v2": {"database": "polygon", "schema": "streamline", "name": "blocks_v2", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.blocks_v2", "fqn": ["fsc_evm", "bronze_streamline", "blocks_v2"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "blocks_v2", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.blocks_v2", "created_at": 1764018443.719578}, "source.fsc_evm.bronze_streamline.transactions": {"database": "polygon", "schema": "streamline", "name": "transactions", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.transactions", "fqn": ["fsc_evm", "bronze_streamline", "transactions"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "transactions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.transactions", "created_at": 1764018443.71974}, "source.fsc_evm.bronze_streamline.transactions_v2": {"database": "polygon", "schema": "streamline", "name": "transactions_v2", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.transactions_v2", "fqn": ["fsc_evm", "bronze_streamline", "transactions_v2"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "transactions_v2", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.transactions_v2", "created_at": 1764018443.7199173}, "source.fsc_evm.bronze_streamline.receipts_by_hash": {"database": "polygon", "schema": "streamline", "name": "receipts_by_hash", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.receipts_by_hash", "fqn": ["fsc_evm", "bronze_streamline", "receipts_by_hash"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "receipts_by_hash", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.receipts_by_hash", "created_at": 1764018443.7200882}, "source.fsc_evm.bronze_streamline.receipts": {"database": "polygon", "schema": "streamline", "name": "receipts", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.receipts", "fqn": ["fsc_evm", "bronze_streamline", "receipts"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "receipts", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.receipts", "created_at": 1764018443.7202618}, "source.fsc_evm.bronze_streamline.receipts_v2": {"database": "polygon", "schema": "streamline", "name": "receipts_v2", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.receipts_v2", "fqn": ["fsc_evm", "bronze_streamline", "receipts_v2"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "receipts_v2", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.receipts_v2", "created_at": 1764018443.7204254}, "source.fsc_evm.bronze_streamline.traces": {"database": "polygon", "schema": "streamline", "name": "traces", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.traces", "fqn": ["fsc_evm", "bronze_streamline", "traces"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "traces", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.traces", "created_at": 1764018443.7205858}, "source.fsc_evm.bronze_streamline.traces_v2": {"database": "polygon", "schema": "streamline", "name": "traces_v2", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.traces_v2", "fqn": ["fsc_evm", "bronze_streamline", "traces_v2"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "traces_v2", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.traces_v2", "created_at": 1764018443.7207503}, "source.fsc_evm.bronze_streamline.debug_traceblockbynumber": {"database": "polygon", "schema": "streamline", "name": "debug_traceblockbynumber", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.debug_traceblockbynumber", "fqn": ["fsc_evm", "bronze_streamline", "debug_traceblockbynumber"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "debug_traceblockbynumber", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.debug_traceblockbynumber", "created_at": 1764018443.720932}, "source.fsc_evm.bronze_streamline.confirm_blocks": {"database": "polygon", "schema": "streamline", "name": "confirm_blocks", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.confirm_blocks", "fqn": ["fsc_evm", "bronze_streamline", "confirm_blocks"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "confirm_blocks", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.confirm_blocks", "created_at": 1764018443.7210975}, "source.fsc_evm.bronze_streamline.confirm_blocks_v2": {"database": "polygon", "schema": "streamline", "name": "confirm_blocks_v2", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.confirm_blocks_v2", "fqn": ["fsc_evm", "bronze_streamline", "confirm_blocks_v2"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "confirm_blocks_v2", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.confirm_blocks_v2", "created_at": 1764018443.7212613}, "source.fsc_evm.bronze_streamline.decoded_logs": {"database": "polygon", "schema": "streamline", "name": "decoded_logs", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.decoded_logs", "fqn": ["fsc_evm", "bronze_streamline", "decoded_logs"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "decoded_logs", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.decoded_logs", "created_at": 1764018443.7214315}, "source.fsc_evm.bronze_streamline.decoded_logs_v2": {"database": "polygon", "schema": "streamline", "name": "decoded_logs_v2", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.decoded_logs_v2", "fqn": ["fsc_evm", "bronze_streamline", "decoded_logs_v2"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "decoded_logs_v2", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.decoded_logs_v2", "created_at": 1764018443.721596}, "source.fsc_evm.bronze_streamline.decoded_traces": {"database": "polygon", "schema": "streamline", "name": "decoded_traces", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.decoded_traces", "fqn": ["fsc_evm", "bronze_streamline", "decoded_traces"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "decoded_traces", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.decoded_traces", "created_at": 1764018443.7217762}, "source.fsc_evm.bronze_streamline.decoded_traces_v2": {"database": "polygon", "schema": "streamline", "name": "decoded_traces_v2", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.decoded_traces_v2", "fqn": ["fsc_evm", "bronze_streamline", "decoded_traces_v2"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "decoded_traces_v2", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.decoded_traces_v2", "created_at": 1764018443.7219565}, "source.fsc_evm.bronze_streamline.contract_abis": {"database": "polygon", "schema": "streamline", "name": "contract_abis", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.contract_abis", "fqn": ["fsc_evm", "bronze_streamline", "contract_abis"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "contract_abis", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.contract_abis", "created_at": 1764018443.722122}, "source.fsc_evm.bronze_streamline.contract_abis_v2": {"database": "polygon", "schema": "streamline", "name": "contract_abis_v2", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.contract_abis_v2", "fqn": ["fsc_evm", "bronze_streamline", "contract_abis_v2"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "contract_abis_v2", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.contract_abis_v2", "created_at": 1764018443.7222843}, "source.fsc_evm.bronze_streamline.beacon_blocks": {"database": "polygon", "schema": "streamline", "name": "beacon_blocks", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.beacon_blocks", "fqn": ["fsc_evm", "bronze_streamline", "beacon_blocks"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "beacon_blocks", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.beacon_blocks", "created_at": 1764018443.7224708}, "source.fsc_evm.bronze_streamline.beacon_blocks_v2": {"database": "polygon", "schema": "streamline", "name": "beacon_blocks_v2", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.beacon_blocks_v2", "fqn": ["fsc_evm", "bronze_streamline", "beacon_blocks_v2"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "beacon_blocks_v2", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.beacon_blocks_v2", "created_at": 1764018443.722632}, "source.fsc_evm.bronze_streamline.beacon_validators": {"database": "polygon", "schema": "streamline", "name": "beacon_validators", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.beacon_validators", "fqn": ["fsc_evm", "bronze_streamline", "beacon_validators"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "beacon_validators", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.beacon_validators", "created_at": 1764018443.7227938}, "source.fsc_evm.bronze_streamline.beacon_validators_v2": {"database": "polygon", "schema": "streamline", "name": "beacon_validators_v2", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.beacon_validators_v2", "fqn": ["fsc_evm", "bronze_streamline", "beacon_validators_v2"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "beacon_validators_v2", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.beacon_validators_v2", "created_at": 1764018443.7229762}, "source.fsc_evm.bronze_streamline.reads": {"database": "polygon", "schema": "streamline", "name": "reads", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.reads", "fqn": ["fsc_evm", "bronze_streamline", "reads"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "reads", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.reads", "created_at": 1764018443.7231426}, "source.fsc_evm.bronze_streamline.reads_v2": {"database": "polygon", "schema": "streamline", "name": "reads_v2", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.reads_v2", "fqn": ["fsc_evm", "bronze_streamline", "reads_v2"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "reads_v2", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.reads_v2", "created_at": 1764018443.7233047}, "source.fsc_evm.bronze_streamline.state_tracer": {"database": "polygon", "schema": "streamline", "name": "state_tracer", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.state_tracer", "fqn": ["fsc_evm", "bronze_streamline", "state_tracer"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "state_tracer", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.state_tracer", "created_at": 1764018443.723466}, "source.fsc_evm.bronze_streamline.token_reads": {"database": "polygon", "schema": "streamline", "name": "token_reads", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.token_reads", "fqn": ["fsc_evm", "bronze_streamline", "token_reads"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "token_reads", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.token_reads", "created_at": 1764018443.7236252}, "source.fsc_evm.bronze_streamline.balances_erc20": {"database": "polygon", "schema": "streamline", "name": "balances_erc20", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.balances_erc20", "fqn": ["fsc_evm", "bronze_streamline", "balances_erc20"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "balances_erc20", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.balances_erc20", "created_at": 1764018443.7237883}, "source.fsc_evm.bronze_streamline.balances_native": {"database": "polygon", "schema": "streamline", "name": "balances_native", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.balances_native", "fqn": ["fsc_evm", "bronze_streamline", "balances_native"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "balances_native", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.balances_native", "created_at": 1764018443.7239797}, "source.fsc_evm.bronze_streamline.stablecoin_reads": {"database": "polygon", "schema": "streamline", "name": "stablecoin_reads", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.bronze_streamline.stablecoin_reads", "fqn": ["fsc_evm", "bronze_streamline", "stablecoin_reads"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "stablecoin_reads", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.stablecoin_reads", "created_at": 1764018443.7241428}, "source.fsc_evm.complete_streamline.complete_contract_abis": {"database": "polygon", "schema": "streamline", "name": "complete_contract_abis", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.complete_streamline.complete_contract_abis", "fqn": ["fsc_evm", "complete_streamline", "complete_contract_abis"], "source_name": "complete_streamline", "source_description": "", "loader": "", "identifier": "complete_contract_abis", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.streamline.complete_contract_abis", "created_at": 1764018443.7243056}, "source.fsc_evm.crosschain_silver.labels_combined": {"database": "CROSSCHAIN", "schema": "silver", "name": "labels_combined", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_silver.labels_combined", "fqn": ["fsc_evm", "crosschain_silver", "labels_combined"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "labels_combined", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "CROSSCHAIN.silver.labels_combined", "created_at": 1764018443.7244692}, "source.fsc_evm.crosschain_silver.complete_provider_asset_metadata": {"database": "CROSSCHAIN", "schema": "silver", "name": "complete_provider_asset_metadata", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_silver.complete_provider_asset_metadata", "fqn": ["fsc_evm", "crosschain_silver", "complete_provider_asset_metadata"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "complete_provider_asset_metadata", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "CROSSCHAIN.silver.complete_provider_asset_metadata", "created_at": 1764018443.724628}, "source.fsc_evm.crosschain_silver.complete_native_asset_metadata": {"database": "CROSSCHAIN", "schema": "silver", "name": "complete_native_asset_metadata", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_silver.complete_native_asset_metadata", "fqn": ["fsc_evm", "crosschain_silver", "complete_native_asset_metadata"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "complete_native_asset_metadata", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "CROSSCHAIN.silver.complete_native_asset_metadata", "created_at": 1764018443.724799}, "source.fsc_evm.crosschain_silver.complete_native_prices": {"database": "CROSSCHAIN", "schema": "silver", "name": "complete_native_prices", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_silver.complete_native_prices", "fqn": ["fsc_evm", "crosschain_silver", "complete_native_prices"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "complete_native_prices", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "CROSSCHAIN.silver.complete_native_prices", "created_at": 1764018443.7249973}, "source.fsc_evm.crosschain_silver.complete_provider_prices": {"database": "CROSSCHAIN", "schema": "silver", "name": "complete_provider_prices", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_silver.complete_provider_prices", "fqn": ["fsc_evm", "crosschain_silver", "complete_provider_prices"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "complete_provider_prices", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "CROSSCHAIN.silver.complete_provider_prices", "created_at": 1764018443.725167}, "source.fsc_evm.crosschain_silver.complete_token_asset_metadata": {"database": "CROSSCHAIN", "schema": "silver", "name": "complete_token_asset_metadata", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_silver.complete_token_asset_metadata", "fqn": ["fsc_evm", "crosschain_silver", "complete_token_asset_metadata"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "complete_token_asset_metadata", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "CROSSCHAIN.silver.complete_token_asset_metadata", "created_at": 1764018443.7253292}, "source.fsc_evm.crosschain_silver.complete_token_prices": {"database": "CROSSCHAIN", "schema": "silver", "name": "complete_token_prices", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_silver.complete_token_prices", "fqn": ["fsc_evm", "crosschain_silver", "complete_token_prices"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "complete_token_prices", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "CROSSCHAIN.silver.complete_token_prices", "created_at": 1764018443.725491}, "source.fsc_evm.crosschain_silver.near_address_encoded": {"database": "CROSSCHAIN", "schema": "silver", "name": "near_address_encoded", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_silver.near_address_encoded", "fqn": ["fsc_evm", "crosschain_silver", "near_address_encoded"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "near_address_encoded", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "CROSSCHAIN.silver.near_address_encoded", "created_at": 1764018443.7256515}, "source.fsc_evm.crosschain_silver.tokens_stablecoins": {"database": "CROSSCHAIN", "schema": "silver", "name": "tokens_stablecoins", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_silver.tokens_stablecoins", "fqn": ["fsc_evm", "crosschain_silver", "tokens_stablecoins"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "tokens_stablecoins", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "CROSSCHAIN.silver.tokens_stablecoins", "created_at": 1764018443.7258132}, "source.fsc_evm.crosschain_public.user_abis": {"database": "crosschain", "schema": "bronze_public", "name": "user_abis", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_public.user_abis", "fqn": ["fsc_evm", "crosschain_public", "user_abis"], "source_name": "crosschain_public", "source_description": "", "loader": "", "identifier": "user_abis", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.bronze_public.user_abis", "created_at": 1764018443.7259963}, "source.fsc_evm.crosschain_gold.dim_dates": {"database": "crosschain", "schema": "core", "name": "dim_dates", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_gold.dim_dates", "fqn": ["fsc_evm", "crosschain_gold", "dim_dates"], "source_name": "crosschain_gold", "source_description": "", "loader": "", "identifier": "dim_dates", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.core.dim_dates", "created_at": 1764018443.726207}, "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_allowlist": {"database": "crosschain", "schema": "chain_stats", "name": "ez_arbitrum_allowlist", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_allowlist", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_arbitrum_allowlist"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_arbitrum_allowlist", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_arbitrum_allowlist", "created_at": 1764018443.726375}, "source.fsc_evm.crosschain_chain_stats.ez_avalanche_allowlist": {"database": "crosschain", "schema": "chain_stats", "name": "ez_avalanche_allowlist", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_avalanche_allowlist", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_avalanche_allowlist"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_avalanche_allowlist", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_avalanche_allowlist", "created_at": 1764018443.7265384}, "source.fsc_evm.crosschain_chain_stats.ez_base_allowlist": {"database": "crosschain", "schema": "chain_stats", "name": "ez_base_allowlist", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_base_allowlist", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_base_allowlist"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_base_allowlist", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_base_allowlist", "created_at": 1764018443.7266972}, "source.fsc_evm.crosschain_chain_stats.ez_bob_allowlist": {"database": "crosschain", "schema": "chain_stats", "name": "ez_bob_allowlist", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_bob_allowlist", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_bob_allowlist"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_bob_allowlist", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_bob_allowlist", "created_at": 1764018443.72688}, "source.fsc_evm.crosschain_chain_stats.ez_boba_allowlist": {"database": "crosschain", "schema": "chain_stats", "name": "ez_boba_allowlist", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_boba_allowlist", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_boba_allowlist"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_boba_allowlist", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_boba_allowlist", "created_at": 1764018443.7270467}, "source.fsc_evm.crosschain_chain_stats.ez_bsc_allowlist": {"database": "crosschain", "schema": "chain_stats", "name": "ez_bsc_allowlist", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_bsc_allowlist", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_bsc_allowlist"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_bsc_allowlist", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_bsc_allowlist", "created_at": 1764018443.7272108}, "source.fsc_evm.crosschain_chain_stats.ez_ethereum_allowlist": {"database": "crosschain", "schema": "chain_stats", "name": "ez_ethereum_allowlist", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_ethereum_allowlist", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_ethereum_allowlist"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_ethereum_allowlist", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_ethereum_allowlist", "created_at": 1764018443.7273731}, "source.fsc_evm.crosschain_chain_stats.ez_ink_allowlist": {"database": "crosschain", "schema": "chain_stats", "name": "ez_ink_allowlist", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_ink_allowlist", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_ink_allowlist"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_ink_allowlist", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_ink_allowlist", "created_at": 1764018443.727539}, "source.fsc_evm.crosschain_chain_stats.ez_optimism_allowlist": {"database": "crosschain", "schema": "chain_stats", "name": "ez_optimism_allowlist", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_optimism_allowlist", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_optimism_allowlist"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_optimism_allowlist", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_optimism_allowlist", "created_at": 1764018443.7277017}, "source.fsc_evm.crosschain_chain_stats.ez_polygon_allowlist": {"database": "crosschain", "schema": "chain_stats", "name": "ez_polygon_allowlist", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_polygon_allowlist", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_polygon_allowlist"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_polygon_allowlist", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_polygon_allowlist", "created_at": 1764018443.7278771}, "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_address_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_arbitrum_address_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_address_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_arbitrum_address_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_arbitrum_address_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_arbitrum_address_metrics", "created_at": 1764018443.728044}, "source.fsc_evm.crosschain_chain_stats.ez_avalanche_address_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_avalanche_address_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_avalanche_address_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_avalanche_address_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_avalanche_address_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_avalanche_address_metrics", "created_at": 1764018443.7282043}, "source.fsc_evm.crosschain_chain_stats.ez_base_address_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_base_address_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_base_address_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_base_address_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_base_address_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_base_address_metrics", "created_at": 1764018443.7283669}, "source.fsc_evm.crosschain_chain_stats.ez_bob_address_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_bob_address_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_bob_address_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_bob_address_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_bob_address_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_bob_address_metrics", "created_at": 1764018443.728539}, "source.fsc_evm.crosschain_chain_stats.ez_boba_address_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_boba_address_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_boba_address_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_boba_address_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_boba_address_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_boba_address_metrics", "created_at": 1764018443.7286983}, "source.fsc_evm.crosschain_chain_stats.ez_bsc_address_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_bsc_address_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_bsc_address_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_bsc_address_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_bsc_address_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_bsc_address_metrics", "created_at": 1764018443.7288713}, "source.fsc_evm.crosschain_chain_stats.ez_ethereum_address_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_ethereum_address_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_ethereum_address_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_ethereum_address_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_ethereum_address_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_ethereum_address_metrics", "created_at": 1764018443.7290568}, "source.fsc_evm.crosschain_chain_stats.ez_ink_address_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_ink_address_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_ink_address_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_ink_address_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_ink_address_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_ink_address_metrics", "created_at": 1764018443.7292218}, "source.fsc_evm.crosschain_chain_stats.ez_optimism_address_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_optimism_address_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_optimism_address_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_optimism_address_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_optimism_address_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_optimism_address_metrics", "created_at": 1764018443.7293868}, "source.fsc_evm.crosschain_chain_stats.ez_polygon_address_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_polygon_address_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_polygon_address_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_polygon_address_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_polygon_address_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_polygon_address_metrics", "created_at": 1764018443.7295485}, "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_metrics_daily": {"database": "crosschain", "schema": "chain_stats", "name": "ez_arbitrum_metrics_daily", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_metrics_daily", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_arbitrum_metrics_daily"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_arbitrum_metrics_daily", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_arbitrum_metrics_daily", "created_at": 1764018443.7297108}, "source.fsc_evm.crosschain_chain_stats.ez_avalanche_metrics_daily": {"database": "crosschain", "schema": "chain_stats", "name": "ez_avalanche_metrics_daily", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_avalanche_metrics_daily", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_avalanche_metrics_daily"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_avalanche_metrics_daily", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_avalanche_metrics_daily", "created_at": 1764018443.7298875}, "source.fsc_evm.crosschain_chain_stats.ez_base_metrics_daily": {"database": "crosschain", "schema": "chain_stats", "name": "ez_base_metrics_daily", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_base_metrics_daily", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_base_metrics_daily"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_base_metrics_daily", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_base_metrics_daily", "created_at": 1764018443.730054}, "source.fsc_evm.crosschain_chain_stats.ez_bob_metrics_daily": {"database": "crosschain", "schema": "chain_stats", "name": "ez_bob_metrics_daily", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_bob_metrics_daily", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_bob_metrics_daily"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_bob_metrics_daily", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_bob_metrics_daily", "created_at": 1764018443.7302127}, "source.fsc_evm.crosschain_chain_stats.ez_boba_metrics_daily": {"database": "crosschain", "schema": "chain_stats", "name": "ez_boba_metrics_daily", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_boba_metrics_daily", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_boba_metrics_daily"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_boba_metrics_daily", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_boba_metrics_daily", "created_at": 1764018443.7303774}, "source.fsc_evm.crosschain_chain_stats.ez_bsc_metrics_daily": {"database": "crosschain", "schema": "chain_stats", "name": "ez_bsc_metrics_daily", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_bsc_metrics_daily", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_bsc_metrics_daily"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_bsc_metrics_daily", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_bsc_metrics_daily", "created_at": 1764018443.7305434}, "source.fsc_evm.crosschain_chain_stats.ez_ethereum_metrics_daily": {"database": "crosschain", "schema": "chain_stats", "name": "ez_ethereum_metrics_daily", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_ethereum_metrics_daily", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_ethereum_metrics_daily"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_ethereum_metrics_daily", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_ethereum_metrics_daily", "created_at": 1764018443.730717}, "source.fsc_evm.crosschain_chain_stats.ez_ink_metrics_daily": {"database": "crosschain", "schema": "chain_stats", "name": "ez_ink_metrics_daily", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_ink_metrics_daily", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_ink_metrics_daily"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_ink_metrics_daily", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_ink_metrics_daily", "created_at": 1764018443.7308965}, "source.fsc_evm.crosschain_chain_stats.ez_optimism_metrics_daily": {"database": "crosschain", "schema": "chain_stats", "name": "ez_optimism_metrics_daily", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_optimism_metrics_daily", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_optimism_metrics_daily"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_optimism_metrics_daily", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_optimism_metrics_daily", "created_at": 1764018443.731061}, "source.fsc_evm.crosschain_chain_stats.ez_polygon_metrics_daily": {"database": "crosschain", "schema": "chain_stats", "name": "ez_polygon_metrics_daily", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_polygon_metrics_daily", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_polygon_metrics_daily"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_polygon_metrics_daily", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_polygon_metrics_daily", "created_at": 1764018443.7312438}, "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_protocol_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_arbitrum_protocol_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_protocol_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_arbitrum_protocol_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_arbitrum_protocol_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_arbitrum_protocol_metrics", "created_at": 1764018443.7314038}, "source.fsc_evm.crosschain_chain_stats.ez_avalanche_protocol_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_avalanche_protocol_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_avalanche_protocol_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_avalanche_protocol_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_avalanche_protocol_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_avalanche_protocol_metrics", "created_at": 1764018443.7315643}, "source.fsc_evm.crosschain_chain_stats.ez_base_protocol_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_base_protocol_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_base_protocol_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_base_protocol_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_base_protocol_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_base_protocol_metrics", "created_at": 1764018443.7317293}, "source.fsc_evm.crosschain_chain_stats.ez_bob_protocol_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_bob_protocol_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_bob_protocol_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_bob_protocol_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_bob_protocol_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_bob_protocol_metrics", "created_at": 1764018443.7319093}, "source.fsc_evm.crosschain_chain_stats.ez_boba_protocol_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_boba_protocol_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_boba_protocol_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_boba_protocol_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_boba_protocol_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_boba_protocol_metrics", "created_at": 1764018443.7320755}, "source.fsc_evm.crosschain_chain_stats.ez_bsc_protocol_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_bsc_protocol_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_bsc_protocol_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_bsc_protocol_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_bsc_protocol_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_bsc_protocol_metrics", "created_at": 1764018443.7322383}, "source.fsc_evm.crosschain_chain_stats.ez_ethereum_protocol_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_ethereum_protocol_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_ethereum_protocol_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_ethereum_protocol_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_ethereum_protocol_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_ethereum_protocol_metrics", "created_at": 1764018443.7324054}, "source.fsc_evm.crosschain_chain_stats.ez_ink_protocol_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_ink_protocol_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_ink_protocol_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_ink_protocol_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_ink_protocol_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_ink_protocol_metrics", "created_at": 1764018443.732568}, "source.fsc_evm.crosschain_chain_stats.ez_optimism_protocol_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_optimism_protocol_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_optimism_protocol_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_optimism_protocol_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_optimism_protocol_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_optimism_protocol_metrics", "created_at": 1764018443.7327268}, "source.fsc_evm.crosschain_chain_stats.ez_polygon_protocol_metrics": {"database": "crosschain", "schema": "chain_stats", "name": "ez_polygon_protocol_metrics", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.crosschain_chain_stats.ez_polygon_protocol_metrics", "fqn": ["fsc_evm", "crosschain_chain_stats", "ez_polygon_protocol_metrics"], "source_name": "crosschain_chain_stats", "source_description": "", "loader": "", "identifier": "ez_polygon_protocol_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.chain_stats.ez_polygon_protocol_metrics", "created_at": 1764018443.7329047}, "source.fsc_evm.abis_silver.verified_abis": {"database": "polygon", "schema": "silver", "name": "verified_abis", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.abis_silver.verified_abis", "fqn": ["fsc_evm", "abis_silver", "verified_abis"], "source_name": "abis_silver", "source_description": "", "loader": "", "identifier": "verified_abis", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.silver.verified_abis", "created_at": 1764018443.733099}, "source.fsc_evm.abis_silver.complete_event_abis": {"database": "polygon", "schema": "silver", "name": "complete_event_abis", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.abis_silver.complete_event_abis", "fqn": ["fsc_evm", "abis_silver", "complete_event_abis"], "source_name": "abis_silver", "source_description": "", "loader": "", "identifier": "complete_event_abis", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "polygon.silver.complete_event_abis", "created_at": 1764018443.7332582}, "source.fsc_evm.data_science_silver.evm_event_sigs": {"database": "datascience", "schema": "silver", "name": "evm_event_sigs", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.data_science_silver.evm_event_sigs", "fqn": ["fsc_evm", "data_science_silver", "evm_event_sigs"], "source_name": "data_science_silver", "source_description": "", "loader": "", "identifier": "evm_event_sigs", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "datascience.silver.evm_event_sigs", "created_at": 1764018443.733431}, "source.fsc_evm.data_science_silver.evm_known_event_names": {"database": "datascience", "schema": "silver", "name": "evm_known_event_names", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.data_science_silver.evm_known_event_names", "fqn": ["fsc_evm", "data_science_silver", "evm_known_event_names"], "source_name": "data_science_silver", "source_description": "", "loader": "", "identifier": "evm_known_event_names", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "datascience.silver.evm_known_event_names", "created_at": 1764018443.733589}, "source.fsc_evm.data_science_silver.evm_known_event_sigs": {"database": "datascience", "schema": "silver", "name": "evm_known_event_sigs", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.data_science_silver.evm_known_event_sigs", "fqn": ["fsc_evm", "data_science_silver", "evm_known_event_sigs"], "source_name": "data_science_silver", "source_description": "", "loader": "", "identifier": "evm_known_event_sigs", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "datascience.silver.evm_known_event_sigs", "created_at": 1764018443.7337477}, "source.fsc_evm.data_science_silver.evm_wrapped_assets": {"database": "datascience", "schema": "silver", "name": "evm_wrapped_assets", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.data_science_silver.evm_wrapped_assets", "fqn": ["fsc_evm", "data_science_silver", "evm_wrapped_assets"], "source_name": "data_science_silver", "source_description": "", "loader": "", "identifier": "evm_wrapped_assets", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "datascience.silver.evm_wrapped_assets", "created_at": 1764018443.7339206}, "source.fsc_evm.data_science_silver.dates": {"database": "datascience", "schema": "silver", "name": "dates", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.data_science_silver.dates", "fqn": ["fsc_evm", "data_science_silver", "dates"], "source_name": "data_science_silver", "source_description": "", "loader": "", "identifier": "dates", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "datascience.silver.dates", "created_at": 1764018443.734082}, "source.fsc_evm.data_science_silver.scoring_activity_categories": {"database": "datascience", "schema": "silver", "name": "scoring_activity_categories", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.data_science_silver.scoring_activity_categories", "fqn": ["fsc_evm", "data_science_silver", "scoring_activity_categories"], "source_name": "data_science_silver", "source_description": "", "loader": "", "identifier": "scoring_activity_categories", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "datascience.silver.scoring_activity_categories", "created_at": 1764018443.7342408}, "source.fsc_evm.fsc_evm_admin._master_keys": {"database": "FSC_EVM", "schema": "admin", "name": "_master_keys", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.fsc_evm_admin._master_keys", "fqn": ["fsc_evm", "fsc_evm_admin", "_master_keys"], "source_name": "fsc_evm_admin", "source_description": "", "loader": "", "identifier": "_master_keys", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "FSC_EVM.admin._master_keys", "created_at": 1764018443.7344027}, "source.fsc_evm.fsc_evm_admin.rpc_node_logs": {"database": "FSC_EVM", "schema": "admin", "name": "rpc_node_logs", "resource_type": "source", "package_name": "fsc_evm", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.fsc_evm.fsc_evm_admin.rpc_node_logs", "fqn": ["fsc_evm", "fsc_evm_admin", "rpc_node_logs"], "source_name": "fsc_evm_admin", "source_description": "", "loader": "", "identifier": "rpc_node_logs", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "FSC_EVM.admin.rpc_node_logs", "created_at": 1764018443.73456}}, "macros": {"macro.polygon_models.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/custom_naming_macros.sql", "original_file_path": "macros/custom_naming_macros.sql", "unique_id": "macro.polygon_models.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {% set node_name = node.name %}\n {% set split_name = node_name.split('__') %}\n {{ split_name[0] | trim }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.2698855, "supported_languages": null}, "macro.polygon_models.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/custom_naming_macros.sql", "original_file_path": "macros/custom_naming_macros.sql", "unique_id": "macro.polygon_models.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% set node_name = node.name %}\n {% set split_name = node_name.split('__') %}\n {{ split_name[1] | trim }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.270553, "supported_languages": null}, "macro.polygon_models.create_udfs": {"name": "create_udfs", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/create_udfs.sql", "original_file_path": "macros/create_udfs.sql", "unique_id": "macro.polygon_models.create_udfs", "macro_sql": "{% macro create_udfs() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\", false) %}\n {% set sql %}\n CREATE schema if NOT EXISTS silver;\n {% endset %}\n {% do run_query(sql) %}\n {{- fsc_utils.create_udfs() -}}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.fsc_utils.create_udfs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.2714005, "supported_languages": null}, "macro.polygon_models.db_comment": {"name": "db_comment", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/db_comment.sql", "original_file_path": "macros/db_comment.sql", "unique_id": "macro.polygon_models.db_comment", "macro_sql": "{% macro db_comment() %}\n {% set query %}\nSELECT\n TO_DATE(MIN(block_timestamp))\nFROM\n silver.blocks {% endset %}\n {% set results = run_query(query) %}\n {% set results_list = results.columns [0].values() [0].strftime('%Y-%m-%d') %}\n {% set sql %}\n COMMENT\n ON database polygon IS 'Lite Mode dataset with recent data only. Min block_timestamp: {{ results_list }} \ud83c\udf31 ' {% endset %}\n {% do run_query(sql) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.272661, "supported_languages": null}, "macro.polygon_models.apply_grants_by_schema": {"name": "apply_grants_by_schema", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/grants.sql", "original_file_path": "macros/grants.sql", "unique_id": "macro.polygon_models.apply_grants_by_schema", "macro_sql": "{% macro apply_grants_by_schema(schema) %}\n{#\n Generates SQL to grant permissions to roles for a given schema.\n This gets run automatically when a deployment is made to prod.\n\n This can be manually run to grant permissions to a new schema:\n `dbt run-operation apply_grants_by_schema --args '{\"schema\": \"my_schema\"}'`\n #}\n {%- set outer = namespace(sql=\"\") -%}\n {% for role in fromyaml(var(\"ROLES\")) %}\n {% set sql -%}\n {% if schema.startswith(\"_\") %}\n REVOKE USAGE ON SCHEMA {{ target.database }}.{{ schema }} FROM {{ role }};\n REVOKE USAGE ON ALL FUNCTIONS IN SCHEMA {{ target.database }}.{{ schema }} FROM {{ role }};\n {%- else -%}\n GRANT USAGE ON SCHEMA {{ target.database }}.{{ schema }} TO {{ role }};\n GRANT USAGE ON ALL FUNCTIONS IN SCHEMA {{ target.database }}.{{ schema }} TO {{ role }};\n\n GRANT SELECT ON ALL TABLES IN SCHEMA {{ target.database }}.{{ schema }} TO {{ role }};\n GRANT SELECT ON ALL VIEWS IN SCHEMA {{ target.database }}.{{ schema }} TO {{ role }};\n {%- endif -%}\n {%- endset -%}\n {%- set outer.sql = outer.sql ~ sql -%}\n {%- endfor -%}\n {{ outer.sql }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.2760139, "supported_languages": null}, "macro.polygon_models.apply_grants_to_all_schema": {"name": "apply_grants_to_all_schema", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/grants.sql", "original_file_path": "macros/grants.sql", "unique_id": "macro.polygon_models.apply_grants_to_all_schema", "macro_sql": "{% macro apply_grants_to_all_schema() %}\n{#\n Run SQL to grant permissions to roles for all schemas.\n This is useful for when a new role is created and needs to be granted access to all schemas.\n This is not used in the normal grant process.\n\n `dbt run-operation apply_grants_to_all_schema`\n #}\n {% if execute and target.name == \"prod\" %}\n {% set sql_get_schema %}\n SELECT SCHEMA_NAME\n FROM {{ target.database }}.INFORMATION_SCHEMA.SCHEMATA\n WHERE SCHEMA_NAME NOT IN ('PUBLIC', 'INFORMATION_SCHEMA')\n {%- endset -%}\n {%- set results = run_query(sql_get_schema) -%}\n {% set sql_apply_grants %}\n {%- for schema in results.columns[0].values() -%}\n {{ apply_grants_by_schema(schema) }}\n {%- endfor -%}\n {%- endset -%}\n {% do log(sql_apply_grants, true) %}\n {% do run_query(sql_apply_grants) %}\n {%- endif -%}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.polygon_models.apply_grants_by_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.2773466, "supported_languages": null}, "macro.polygon_models.run_sp_create_prod_clone": {"name": "run_sp_create_prod_clone", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/run_sp_create_prod_clone.sql", "original_file_path": "macros/run_sp_create_prod_clone.sql", "unique_id": "macro.polygon_models.run_sp_create_prod_clone", "macro_sql": "{% macro run_sp_create_prod_clone() %}\n {% set clone_query %}\n call polygon._internal.create_prod_clone(\n 'polygon',\n 'polygon_dev',\n 'internal_dev'\n );\n{% endset %}\n {% do run_query(clone_query) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.2778811, "supported_languages": null}, "macro.polygon_models.create_sps": {"name": "create_sps", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/create_sps.sql", "original_file_path": "macros/create_sps.sql", "unique_id": "macro.polygon_models.create_sps", "macro_sql": "{% macro create_sps() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\n {% if target.database == 'POLYGON' %}\n CREATE schema IF NOT EXISTS _internal;\n {{ sp_create_prod_clone('_internal') }};\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.polygon_models.sp_create_prod_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.2786133, "supported_languages": null}, "macro.polygon_models.sp_create_prod_clone": {"name": "sp_create_prod_clone", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/sp_create_prod_clone.sql", "original_file_path": "macros/sp_create_prod_clone.sql", "unique_id": "macro.polygon_models.sp_create_prod_clone", "macro_sql": "{% macro sp_create_prod_clone(target_schema) -%}\n\ncreate or replace procedure {{ target_schema }}.create_prod_clone(source_db_name string, destination_db_name string, role_name string)\nreturns boolean \nlanguage javascript\nexecute as caller\nas\n$$\n snowflake.execute({sqlText: `BEGIN TRANSACTION;`});\n try {\n snowflake.execute({sqlText: `CREATE OR REPLACE DATABASE ${DESTINATION_DB_NAME} CLONE ${SOURCE_DB_NAME}`});\n snowflake.execute({sqlText: `DROP SCHEMA IF EXISTS ${DESTINATION_DB_NAME}._INTERNAL`}); /* this only needs to be in prod */\n snowflake.execute({sqlText: `GRANT USAGE ON DATABASE ${DESTINATION_DB_NAME} TO AWS_LAMBDA_POLYGON_API`}); \n\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL SCHEMAS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL FUNCTIONS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL PROCEDURES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL VIEWS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL STAGES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL TABLES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE FUNCTIONS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE PROCEDURES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE VIEWS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE STAGES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE TABLES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT USAGE ON ALL STAGES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE AWS_LAMBDA_POLYGON_API;`}); \n\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`})\n\n var existing_tags = snowflake.execute({sqlText: `SHOW TAGS IN DATABASE ${DESTINATION_DB_NAME};`});\n while (existing_tags.next()) {\n var schema = existing_tags.getColumnValue(4);\n var tag_name = existing_tags.getColumnValue(2)\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON TAG ${DESTINATION_DB_NAME}.${schema}.${tag_name} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`});\n }\n\n snowflake.execute({sqlText: `COMMIT;`});\n } catch (err) {\n snowflake.execute({sqlText: `ROLLBACK;`});\n throw(err);\n }\n\n return true\n$$\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.2796457, "supported_languages": null}, "macro.polygon_models.apply_meta_as_tags": {"name": "apply_meta_as_tags", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.polygon_models.apply_meta_as_tags", "macro_sql": "{% macro apply_meta_as_tags(results) %}\n {% if var(\"UPDATE_SNOWFLAKE_TAGS\") %}\n {{ log('apply_meta_as_tags', info=False) }}\n {{ log(results, info=False) }}\n {% if execute %}\n\n {%- set tags_by_schema = {} -%}\n {% for res in results -%}\n {% if res.node.meta.database_tags %}\n\n {%- set model_database = res.node.database -%}\n {%- set model_schema = res.node.schema -%}\n {%- set model_schema_full = model_database+'.'+model_schema -%}\n {%- set model_alias = res.node.alias -%}\n\n {% if model_schema_full not in tags_by_schema.keys() %}\n {{ log('need to fetch tags for schema '+model_schema_full, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n show tags in {{model_database}}.{{model_schema}}\n {%- endcall -%}\n {%- set _ = tags_by_schema.update({model_schema_full: load_result('main')['table'].columns.get('name').values()|list}) -%}\n {{ log('Added tags to cache', info=False) }}\n {% else %}\n {{ log('already have tag info for schema', info=False) }}\n {% endif %}\n\n {%- set current_tags_in_schema = tags_by_schema[model_schema_full] -%}\n {{ log('current_tags_in_schema:', info=False) }}\n {{ log(current_tags_in_schema, info=False) }}\n {{ log(\"========== Processing tags for \"+model_schema_full+\".\"+model_alias+\" ==========\", info=False) }}\n\n {% set line -%}\n node: {{ res.node.unique_id }}; status: {{ res.status }} (message: {{ res.message }})\n node full: {{ res.node}}\n meta: {{ res.node.meta}}\n materialized: {{ res.node.config.materialized }}\n {%- endset %}\n {{ log(line, info=False) }}\n\n {%- call statement('main', fetch_result=True) -%}\n select LEVEL,UPPER(TAG_NAME) as TAG_NAME,TAG_VALUE from table(information_schema.tag_references_all_columns('{{model_schema}}.{{model_alias}}', 'table'))\n {%- endcall -%}\n {%- set existing_tags_for_table = load_result('main')['data'] -%}\n {{ log('Existing tags for table:', info=False) }}\n {{ log(existing_tags_for_table, info=False) }}\n\n {{ log('--', info=False) }}\n {% for table_tag in res.node.meta.database_tags.table %}\n\n {{ create_tag_if_missing(current_tags_in_schema,table_tag|upper) }}\n {% set desired_tag_value = res.node.meta.database_tags.table[table_tag] %}\n\n {{set_table_tag_value_if_different(model_schema,model_alias,table_tag,desired_tag_value,existing_tags_for_table)}}\n {% endfor %}\n {{ log(\"========== Finished processing tags for \"+model_alias+\" ==========\", info=False) }}\n {% endif %}\n {% endfor %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.polygon_models.create_tag_if_missing", "macro.polygon_models.set_table_tag_value_if_different"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.2991347, "supported_languages": null}, "macro.polygon_models.create_tag_if_missing": {"name": "create_tag_if_missing", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.polygon_models.create_tag_if_missing", "macro_sql": "{% macro create_tag_if_missing(all_tag_names,table_tag) %}\n\t{% if table_tag not in all_tag_names %}\n\t\t{{ log('Creating missing tag '+table_tag, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n create tag if not exists silver.{{table_tag}}\n {%- endcall -%}\n\t\t{{ log(load_result('main').data, info=False) }}\n\t{% else %}\n\t\t{{ log('Tag already exists: '+table_tag, info=False) }}\n\t{% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3002741, "supported_languages": null}, "macro.polygon_models.set_table_tag_value_if_different": {"name": "set_table_tag_value_if_different", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.polygon_models.set_table_tag_value_if_different", "macro_sql": "{% macro set_table_tag_value_if_different(model_schema,table_name,tag_name,desired_tag_value,existing_tags) %}\n {{ log('Ensuring tag '+tag_name+' has value '+desired_tag_value+' at table level', info=False) }}\n {%- set existing_tag_for_table = existing_tags|selectattr('0','equalto','TABLE')|selectattr('1','equalto',tag_name|upper)|list -%}\n {{ log('Filtered tags for table:', info=False) }}\n {{ log(existing_tag_for_table[0], info=False) }}\n {% if existing_tag_for_table|length > 0 and existing_tag_for_table[0][2]==desired_tag_value %}\n {{ log('Correct tag value already exists', info=False) }}\n {% else %}\n {{ log('Setting tag value for '+tag_name+' to value '+desired_tag_value, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n alter table {{model_schema}}.{{table_name}} set tag {{tag_name}} = '{{desired_tag_value}}'\n {%- endcall -%}\n {{ log(load_result('main').data, info=False) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3025417, "supported_languages": null}, "macro.polygon_models.set_column_tag_value_if_different": {"name": "set_column_tag_value_if_different", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.polygon_models.set_column_tag_value_if_different", "macro_sql": "{% macro set_column_tag_value_if_different(table_name,column_name,tag_name,desired_tag_value,existing_tags) %}\n {{ log('Ensuring tag '+tag_name+' has value '+desired_tag_value+' at column level', info=False) }}\n {%- set existing_tag_for_column = existing_tags|selectattr('0','equalto','COLUMN')|selectattr('1','equalto',tag_name|upper)|list -%}\n {{ log('Filtered tags for column:', info=False) }}\n {{ log(existing_tag_for_column[0], info=False) }}\n {% if existing_tag_for_column|length > 0 and existing_tag_for_column[0][2]==desired_tag_value %}\n {{ log('Correct tag value already exists', info=False) }}\n {% else %}\n {{ log('Setting tag value for '+tag_name+' to value '+desired_tag_value, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n alter table {{table_name}} modify column {{column_name}} set tag {{tag_name}} = '{{desired_tag_value}}'\n {%- endcall -%}\n {{ log(load_result('main').data, info=False) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3049335, "supported_languages": null}, "macro.polygon_models.set_database_tag_value": {"name": "set_database_tag_value", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.polygon_models.set_database_tag_value", "macro_sql": "{% macro set_database_tag_value(tag_name,tag_value) %}\n {% set query %}\n create tag if not exists silver.{{tag_name}}\n {% endset %}\n {% do run_query(query) %}\n {% set query %}\n alter database {{target.database}} set tag {{target.database}}.silver.{{tag_name}} = '{{tag_value}}'\n {% endset %}\n {% do run_query(query) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3057668, "supported_languages": null}, "macro.polygon_models.set_schema_tag_value": {"name": "set_schema_tag_value", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.polygon_models.set_schema_tag_value", "macro_sql": "{% macro set_schema_tag_value(target_schema,tag_name,tag_value) %}\n {% set query %}\n create tag if not exists silver.{{tag_name}}\n {% endset %}\n {% do run_query(query) %}\n {% set query %}\n alter schema {{target.database}}.{{target_schema}} set tag {{target.database}}.silver.{{tag_name}} = '{{tag_value}}'\n {% endset %}\n {% do run_query(query) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.306678, "supported_languages": null}, "macro.polygon_models.add_database_or_schema_tags": {"name": "add_database_or_schema_tags", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/tags/add_database_or_schema_tags.sql", "original_file_path": "macros/tags/add_database_or_schema_tags.sql", "unique_id": "macro.polygon_models.add_database_or_schema_tags", "macro_sql": "{% macro add_database_or_schema_tags() %}\n {{ set_database_tag_value('BLOCKCHAIN_NAME','POLYGON') }}\n {{ set_database_tag_value('BLOCKCHAIN_TYPE','EVM') }}\n{% endmacro %}", "depends_on": {"macros": ["macro.polygon_models.set_database_tag_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3072245, "supported_languages": null}, "macro.polygon_models.drop_function": {"name": "drop_function", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/streamline/manage_udfs.sql", "original_file_path": "macros/streamline/manage_udfs.sql", "unique_id": "macro.polygon_models.drop_function", "macro_sql": "{% macro drop_function(\n func_name,\n signature\n ) %}\n DROP FUNCTION IF EXISTS {{ func_name }}({{ compile_signature(signature, drop_ = True) }});\n{% endmacro %}", "depends_on": {"macros": ["macro.polygon_models.compile_signature"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3125143, "supported_languages": null}, "macro.polygon_models.construct_api_route": {"name": "construct_api_route", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/streamline/manage_udfs.sql", "original_file_path": "macros/streamline/manage_udfs.sql", "unique_id": "macro.polygon_models.construct_api_route", "macro_sql": "\n\n{%- macro construct_api_route(route) -%}\n 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}{{ route }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3128707, "supported_languages": null}, "macro.polygon_models.compile_signature": {"name": "compile_signature", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/streamline/manage_udfs.sql", "original_file_path": "macros/streamline/manage_udfs.sql", "unique_id": "macro.polygon_models.compile_signature", "macro_sql": "{%- macro compile_signature(\n params,\n drop_ = False\n ) -%}\n {% for p in params -%}\n {%- set name = p.0 -%}\n {%- set data_type = p.1 -%}\n {% if drop_ %}\n {{ data_type -}}\n {% else %}\n {{ name ~ \" \" ~ data_type -}}\n {%- endif -%}\n {%-if not loop.last -%},\n {%- endif -%}\n {% endfor -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3137586, "supported_languages": null}, "macro.polygon_models.create_sql_function": {"name": "create_sql_function", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/streamline/manage_udfs.sql", "original_file_path": "macros/streamline/manage_udfs.sql", "unique_id": "macro.polygon_models.create_sql_function", "macro_sql": "{% macro create_sql_function(\n name_,\n signature,\n return_type,\n sql_,\n api_integration = none,\n options = none,\n func_type = none\n ) %}\n CREATE OR REPLACE {{ func_type }} FUNCTION {{ name_ }}(\n {{- compile_signature(signature) }}\n )\n COPY GRANTS\n RETURNS {{ return_type }}\n {% if options -%}\n {{ options }}\n {% endif %}\n {%- if api_integration -%}\n api_integration = {{ api_integration }}\n AS {{ construct_api_route(sql_) ~ \";\" }}\n {% else -%}\n AS\n $$\n {{ sql_ }}\n $$;\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.polygon_models.compile_signature", "macro.polygon_models.construct_api_route"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3148367, "supported_languages": null}, "macro.polygon_models.create_or_drop_function_from_config": {"name": "create_or_drop_function_from_config", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/streamline/manage_udfs.sql", "original_file_path": "macros/streamline/manage_udfs.sql", "unique_id": "macro.polygon_models.create_or_drop_function_from_config", "macro_sql": "{%- macro create_or_drop_function_from_config(\n config,\n drop_ = False\n ) -%}\n {% set name_ = config [\"name\"] %}\n {% set signature = config [\"signature\"] %}\n {% set return_type = config [\"return_type\"] if config [\"return_type\"] is string else config [\"return_type\"][0] %}\n {% set sql_ = config [\"sql\"] %}\n {% set options = config [\"options\"] %}\n {% set api_integration = config [\"api_integration\"] %}\n {% set func_type = config [\"func_type\"] %}\n\n {% if not drop_ -%}\n {{ create_sql_function(\n name_ = name_,\n signature = signature,\n return_type = return_type,\n sql_ = sql_,\n options = options,\n api_integration = api_integration,\n func_type = func_type\n ) }}\n {%- else -%}\n {{ drop_function(\n name_,\n signature = signature,\n ) }}\n {%- endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.polygon_models.create_sql_function", "macro.polygon_models.drop_function"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3167882, "supported_languages": null}, "macro.polygon_models.crud_udfs": {"name": "crud_udfs", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/streamline/manage_udfs.sql", "original_file_path": "macros/streamline/manage_udfs.sql", "unique_id": "macro.polygon_models.crud_udfs", "macro_sql": "{% macro crud_udfs(config_func, schema, drop_) %}\n{#\n Generate create or drop statements for a list of udf configs for a given schema\n\n config_func: function that returns a list of udf configs\n drop_: whether to drop or create the udfs\n #}\n {% set udfs = fromyaml(config_func())%}\n {%- for udf in udfs -%}\n {% if udf[\"name\"].split(\".\") | first == schema %}\n CREATE SCHEMA IF NOT EXISTS {{ schema }};\n {{- create_or_drop_function_from_config(udf, drop_=drop_) -}}\n {%- endif -%}\n {%- endfor -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.polygon_models.create_or_drop_function_from_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.317705, "supported_languages": null}, "macro.polygon_models.crud_udfs_by_chain": {"name": "crud_udfs_by_chain", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/streamline/manage_udfs.sql", "original_file_path": "macros/streamline/manage_udfs.sql", "unique_id": "macro.polygon_models.crud_udfs_by_chain", "macro_sql": "{% macro crud_udfs_by_chain(config_func, blockchain, network, drop_) %}\n{#\n Generate create or drop statements for a list of udf configs for a given blockchain and network\n\n config_func: function that returns a list of udf configs\n blockchain: blockchain name\n network: network name\n drop_: whether to drop or create the udfs\n #}\n {% set schema = blockchain if not network else blockchain ~ \"_\" ~ network %}\n CREATE SCHEMA IF NOT EXISTS {{ schema }};\n {%- set configs = fromyaml(config_func(blockchain, network)) if network else fromyaml(config_func(schema, blockchain)) -%}\n {%- for udf in configs -%}\n {{- create_or_drop_function_from_config(udf, drop_=drop_) -}}\n {%- endfor -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.polygon_models.create_or_drop_function_from_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3187802, "supported_languages": null}, "macro.polygon_models.crud_udfs_by_marketplace": {"name": "crud_udfs_by_marketplace", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/streamline/manage_udfs.sql", "original_file_path": "macros/streamline/manage_udfs.sql", "unique_id": "macro.polygon_models.crud_udfs_by_marketplace", "macro_sql": "{% macro crud_udfs_by_marketplace(config_func, schema, utility_schema, drop_) %}\n{#\n Generate create or drop statements for a list of udf configs for a given blockchain and network\n\n config_func: function that returns a list of udf configs\n schema: schema name\n utility_schema: utility schema name\n #}\n CREATE SCHEMA IF NOT EXISTS {{ schema }};\n {%- set configs = fromyaml(config_func(schema, utility_schema)) if utility_schema else fromyaml(config_func(schema, schema)) -%}\n {%- for udf in configs -%}\n {{- create_or_drop_function_from_config(udf, drop_=drop_) -}}\n {%- endfor -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.polygon_models.create_or_drop_function_from_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3196652, "supported_languages": null}, "macro.polygon_models.crud_marketplace_udfs": {"name": "crud_marketplace_udfs", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/streamline/manage_udfs.sql", "original_file_path": "macros/streamline/manage_udfs.sql", "unique_id": "macro.polygon_models.crud_marketplace_udfs", "macro_sql": "{% macro crud_marketplace_udfs(config_func, schemaName, base_api_schema_name, drop_) %}\n{#\n Generate create or drop statements for a list of udf configs for a given schema and api\n\n config_func: function that returns a list of udf configs\n schemaName: the target schema to build the udfs\n base_api_schema_name: the schema that contains base api functions\n drop_: whether to drop or create the udfs\n #}\n {%- set udfs = fromyaml(config_func(schemaName, base_api_schema_name)) -%}\n {%- for udf in udfs -%}\n {{- create_or_drop_function_from_config(udf, drop_=drop_) -}}\n {%- endfor -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.polygon_models.create_or_drop_function_from_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3203542, "supported_languages": null}, "macro.polygon_models.ephemeral_deploy_core": {"name": "ephemeral_deploy_core", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/streamline/manage_udfs.sql", "original_file_path": "macros/streamline/manage_udfs.sql", "unique_id": "macro.polygon_models.ephemeral_deploy_core", "macro_sql": "{% macro ephemeral_deploy_core(config) %}\n{#\n This macro is used to deploy functions using ephemeral models.\n It should only be used within an ephemeral model.\n #}\n {% if execute and (var(\"UPDATE_UDFS_AND_SPS\") or var(\"DROP_UDFS_AND_SPS\")) and model.unique_id in selected_resources %}\n {% set sql %}\n {{- crud_udfs(config, this.schema, var(\"DROP_UDFS_AND_SPS\")) -}}\n {%- endset -%}\n {%- if var(\"DROP_UDFS_AND_SPS\") -%}\n {%- do log(\"Drop core udfs: \" ~ this.database ~ \".\" ~ this.schema, true) -%}\n {%- else -%}\n {%- do log(\"Deploy core udfs: \" ~ this.database ~ \".\" ~ this.schema, true) -%}\n {%- endif -%}\n {%- do run_query(sql ~ apply_grants_by_schema(this.schema)) -%}\n {%- endif -%}\n SELECT '{{ model.schema }}' as schema_\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.polygon_models.crud_udfs", "macro.dbt.run_query", "macro.polygon_models.apply_grants_by_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3219652, "supported_languages": null}, "macro.polygon_models.ephemeral_deploy": {"name": "ephemeral_deploy", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/streamline/manage_udfs.sql", "original_file_path": "macros/streamline/manage_udfs.sql", "unique_id": "macro.polygon_models.ephemeral_deploy", "macro_sql": "{% macro ephemeral_deploy(configs) %}\n{#\n This macro is used to deploy functions using ephemeral models.\n It should only be used within an ephemeral model.\n #}\n {%- set blockchain = this.schema -%}\n {%- set network = this.identifier -%}\n {% set schema = blockchain ~ \"_\" ~ network %}\n {% if execute and (var(\"UPDATE_UDFS_AND_SPS\") or var(\"DROP_UDFS_AND_SPS\")) and model.unique_id in selected_resources %}\n {% set sql %}\n {% for config in configs %}\n {{- crud_udfs_by_chain(config, blockchain, network, var(\"DROP_UDFS_AND_SPS\")) -}}\n {%- endfor -%}\n {%- endset -%}\n {%- if var(\"DROP_UDFS_AND_SPS\") -%}\n {%- do log(\"Drop partner udfs: \" ~ this.database ~ \".\" ~ schema, true) -%}\n {%- else -%}\n {%- do log(\"Deploy partner udfs: \" ~ this.database ~ \".\" ~ schema, true) -%}\n {%- endif -%}\n {%- do run_query(sql ~ apply_grants_by_schema(schema)) -%}\n {%- endif -%}\n SELECT '{{ model.schema }}' as schema_\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.polygon_models.crud_udfs_by_chain", "macro.dbt.run_query", "macro.polygon_models.apply_grants_by_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3243904, "supported_languages": null}, "macro.polygon_models.ephemeral_deploy_marketplace": {"name": "ephemeral_deploy_marketplace", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/streamline/manage_udfs.sql", "original_file_path": "macros/streamline/manage_udfs.sql", "unique_id": "macro.polygon_models.ephemeral_deploy_marketplace", "macro_sql": "{% macro ephemeral_deploy_marketplace(configs) %}\n{#\n This macro is used to deploy functions using ephemeral models.\n It should only be used within an ephemeral model.\n #}\n {%- set schema = this.schema -%}\n {%- set utility_schema = this.identifier -%}\n {% if execute and (var(\"UPDATE_UDFS_AND_SPS\") or var(\"DROP_UDFS_AND_SPS\")) and model.unique_id in selected_resources %}\n {% set sql %}\n {% for config in configs %}\n {{- crud_udfs_by_marketplace(config, schema, utility_schema, var(\"DROP_UDFS_AND_SPS\")) -}}\n {%- endfor -%}\n {%- endset -%}\n {%- if var(\"DROP_UDFS_AND_SPS\") -%}\n {%- do log(\"Drop marketplace udfs: \" ~ this.database ~ \".\" ~ schema, true) -%}\n {%- else -%}\n {%- do log(\"Deploy marketplace udfs: \" ~ this.database ~ \".\" ~ schema, true) -%}\n {%- endif -%}\n {%- do run_query(sql ~ apply_grants_by_schema(schema)) -%}\n {%- endif -%}\n SELECT '{{ model.schema }}' as schema_\n{%- endmacro -%}", "depends_on": {"macros": ["macro.polygon_models.crud_udfs_by_marketplace", "macro.dbt.run_query", "macro.polygon_models.apply_grants_by_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3263147, "supported_languages": null}, "macro.polygon_models.create_udtf_get_base_table": {"name": "create_udtf_get_base_table", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/streamline/get_base_table_udft.sql", "original_file_path": "macros/streamline/get_base_table_udft.sql", "unique_id": "macro.polygon_models.create_udtf_get_base_table", "macro_sql": "{% macro create_udtf_get_base_table(schema) %}\ncreate or replace function {{ schema }}.udtf_get_base_table(max_height integer)\nreturns table (height number)\nas\n$$\n with base as (\n select\n row_number() over (\n order by\n seq4()\n ) as id\n from\n table(generator(rowcount => 100000000))\n )\nselect\n id as height\nfrom\n base\nwhere\n id <= max_height\n$$\n;\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3267474, "supported_languages": null}, "macro.polygon_models.sql_live_rpc_call": {"name": "sql_live_rpc_call", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/streamline/utils.sql", "original_file_path": "macros/streamline/utils.sql", "unique_id": "macro.polygon_models.sql_live_rpc_call", "macro_sql": "{% macro sql_live_rpc_call(method, params, blockchain, network) %}\n{#\n Helper macro to call a JSON RPC method on a live node.\n\n Parameters:\n method (string): The JSON RPC method to call.\n params (string): The JSON RPC parameters to pass to the method.\n blockchain (string): The blockchain to call the method on.\n network (string): The network to call the method on.\n Returns:\n string: The SQL to call the method.\n #}\n WITH result as (\n SELECT\n live.udf_api(\n '{endpoint}'\n ,utils.udf_json_rpc_call({{ method }}, {{ params }})\n ,concat_ws('/', 'integration', _utils.udf_provider(), {{ blockchain }}, {{ network }})\n )::VARIANT:data AS data\n )\n SELECT\n COALESCE(data:result, {'error':data:error})\n FROM result\n{% endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3274407, "supported_languages": null}, "macro.polygon_models.base_test_udf": {"name": "base_test_udf", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/tests/udfs.sql", "original_file_path": "macros/tests/udfs.sql", "unique_id": "macro.polygon_models.base_test_udf", "macro_sql": "{% macro base_test_udf(model, udf, args, assertions) %}\n{#\n Generates a test for a UDF.\n #}\n{% if execute %}\n {%- set context -%}\n SET LIVEQUERY_CONTEXT = '{\"userId\":\"{{ var(\"STUDIO_TEST_USER_ID\") }}\"}';\n {%- endset -%}\n {%- do run_query(context) -%}\n{%- endif -%}\n{%- set call -%}\n{{ target.database }}.{{ udf }}({{ args }})\n{%- endset -%}\n,\ntest AS\n(\n SELECT\n '{{ udf }}' AS test_name\n ,[{{ args }}] as parameters\n ,{{ call }} AS result\n)\n {% for assertion in assertions %}\n SELECT\n test_name,\n parameters,\n result,\n $${{ assertion }}$$ AS assertion,\n $${{ context ~ \"\\n\" }}SELECT {{ call ~ \"\\n\" }};$$ AS sql\n FROM test\n WHERE NOT {{ assertion }}\n {%- if not loop.last -%}\n UNION ALL\n {%- endif -%}\n {%- endfor -%}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3294842, "supported_languages": null}, "macro.polygon_models.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/dbt/get_merge_sql.sql", "original_file_path": "macros/dbt/get_merge_sql.sql", "unique_id": "macro.polygon_models.get_merge_sql", "macro_sql": "{% macro get_merge_sql(\n target,\n source,\n unique_key,\n dest_columns,\n incremental_predicates\n ) -%}\n {% set predicate_override = \"\" %}\n {% if incremental_predicates [0] == \"dynamic_range\" %}\n -- run some queries to dynamically determine the min + max of this 'input_column' in the new data\n {% set input_column = incremental_predicates [1] %}\n {% set get_limits_query %}\n SELECT\n MIN(\n {{ input_column }}\n ) AS lower_limit,\n MAX(\n {{ input_column }}\n ) AS upper_limit\n FROM\n {{ source }}\n\n {% endset %}\n {% set limits = run_query(get_limits_query) [0] %}\n {% set lower_limit,\n upper_limit = limits [0],\n limits [1] %}\n -- use those calculated min + max values to limit 'target' scan, to only the days with new data\n {% set predicate_override %}\n dbt_internal_dest.{{ input_column }} BETWEEN '{{ lower_limit }}'\n AND '{{ upper_limit }}' {% endset %}\n {% endif %}\n\n {% set predicates = [predicate_override] if predicate_override else incremental_predicates %}\n -- standard merge from here\n {% set merge_sql = dbt.get_merge_sql(\n target,\n source,\n unique_key,\n dest_columns,\n predicates\n ) %}\n {{ return(merge_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.332268, "supported_languages": null}, "macro.polygon_models.dbt_snowflake_get_tmp_relation_type": {"name": "dbt_snowflake_get_tmp_relation_type", "resource_type": "macro", "package_name": "polygon_models", "path": "macros/dbt/get_tmp_relation_type.sql", "original_file_path": "macros/dbt/get_tmp_relation_type.sql", "unique_id": "macro.polygon_models.dbt_snowflake_get_tmp_relation_type", "macro_sql": "{% macro dbt_snowflake_get_tmp_relation_type(\n strategy,\n unique_key,\n language\n ) %}\n -- always table\n {{ return('table') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3326643, "supported_languages": null}, "macro.polygon_models.test_test_udf": {"name": "test_test_udf", "resource_type": "macro", "package_name": "polygon_models", "path": "tests/generic/test_udf.sql", "original_file_path": "tests/generic/test_udf.sql", "unique_id": "macro.polygon_models.test_test_udf", "macro_sql": "{% test test_udf(model, column_name, args, assertions) %}\n {#\n This is a generic test for UDFs.\n The udfs are deployed using ephemeral models, so we need to\n use the ephemeral model name to get the udf name.\n #}\n {%- set schema = model | replace(\"__dbt__cte__\", \"\") -%}\n {%- set schema = schema.split(\"__\") | first -%}\n {%- set udf = schema ~ \".\" ~ column_name -%}\n\n {{ base_test_udf(model, udf, args, assertions) }}\n{% endtest %}", "depends_on": {"macros": ["macro.polygon_models.base_test_udf"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3336995, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_catalog": {"name": "snowflake__get_catalog", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_catalog", "macro_sql": "{% macro snowflake__get_catalog(information_schema, schemas) -%}\n\n {% set query %}\n with tables as (\n {{ snowflake__get_catalog_tables_sql(information_schema) }}\n {{ snowflake__get_catalog_schemas_where_clause_sql(schemas) }}\n ),\n columns as (\n {{ snowflake__get_catalog_columns_sql(information_schema) }}\n {{ snowflake__get_catalog_schemas_where_clause_sql(schemas) }}\n )\n {{ snowflake__get_catalog_results_sql() }}\n {%- endset -%}\n\n {{ return(run_query(query)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_catalog_tables_sql", "macro.dbt_snowflake.snowflake__get_catalog_schemas_where_clause_sql", "macro.dbt_snowflake.snowflake__get_catalog_columns_sql", "macro.dbt_snowflake.snowflake__get_catalog_results_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3394077, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_catalog_relations": {"name": "snowflake__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_catalog_relations", "macro_sql": "{% macro snowflake__get_catalog_relations(information_schema, relations) -%}\n\n {% set query %}\n with tables as (\n {{ snowflake__get_catalog_tables_sql(information_schema) }}\n {{ snowflake__get_catalog_relations_where_clause_sql(relations) }}\n ),\n columns as (\n {{ snowflake__get_catalog_columns_sql(information_schema) }}\n {{ snowflake__get_catalog_relations_where_clause_sql(relations) }}\n )\n {{ snowflake__get_catalog_results_sql() }}\n {%- endset -%}\n\n {{ return(run_query(query)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_catalog_tables_sql", "macro.dbt_snowflake.snowflake__get_catalog_relations_where_clause_sql", "macro.dbt_snowflake.snowflake__get_catalog_columns_sql", "macro.dbt_snowflake.snowflake__get_catalog_results_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3402147, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_catalog_tables_sql": {"name": "snowflake__get_catalog_tables_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_catalog_tables_sql", "macro_sql": "{% macro snowflake__get_catalog_tables_sql(information_schema) -%}\n select\n table_catalog as \"table_database\",\n table_schema as \"table_schema\",\n table_name as \"table_name\",\n case\n when is_dynamic = 'YES' and table_type = 'BASE TABLE' THEN 'DYNAMIC TABLE'\n else table_type\n end as \"table_type\",\n comment as \"table_comment\",\n\n -- note: this is the _role_ that owns the table\n table_owner as \"table_owner\",\n\n 'Clustering Key' as \"stats:clustering_key:label\",\n clustering_key as \"stats:clustering_key:value\",\n 'The key used to cluster this table' as \"stats:clustering_key:description\",\n (clustering_key is not null) as \"stats:clustering_key:include\",\n\n 'Row Count' as \"stats:row_count:label\",\n row_count as \"stats:row_count:value\",\n 'An approximate count of rows in this table' as \"stats:row_count:description\",\n (row_count is not null) as \"stats:row_count:include\",\n\n 'Approximate Size' as \"stats:bytes:label\",\n bytes as \"stats:bytes:value\",\n 'Approximate size of the table as reported by Snowflake' as \"stats:bytes:description\",\n (bytes is not null) as \"stats:bytes:include\",\n\n 'Last Modified' as \"stats:last_modified:label\",\n to_varchar(convert_timezone('UTC', last_altered), 'yyyy-mm-dd HH24:MI'||'UTC') as \"stats:last_modified:value\",\n 'The timestamp for last update/change' as \"stats:last_modified:description\",\n (last_altered is not null and table_type='BASE TABLE') as \"stats:last_modified:include\"\n from {{ information_schema }}.tables\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.340578, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_catalog_columns_sql": {"name": "snowflake__get_catalog_columns_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_catalog_columns_sql", "macro_sql": "{% macro snowflake__get_catalog_columns_sql(information_schema) -%}\n select\n table_catalog as \"table_database\",\n table_schema as \"table_schema\",\n table_name as \"table_name\",\n\n column_name as \"column_name\",\n ordinal_position as \"column_index\",\n data_type as \"column_type\",\n comment as \"column_comment\"\n from {{ information_schema }}.columns\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3408234, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_catalog_results_sql": {"name": "snowflake__get_catalog_results_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_catalog_results_sql", "macro_sql": "{% macro snowflake__get_catalog_results_sql() -%}\n select *\n from tables\n join columns using (\"table_database\", \"table_schema\", \"table_name\")\n order by \"column_index\"\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3410354, "supported_languages": null}, "macro.dbt_snowflake.snowflake__catalog_equals": {"name": "snowflake__catalog_equals", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_snowflake.snowflake__catalog_equals", "macro_sql": "{% macro snowflake__catalog_equals(field, value) %}\n \"{{ field }}\" ilike '{{ value }}' and upper(\"{{ field }}\") = upper('{{ value }}')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3413923, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_catalog_schemas_where_clause_sql": {"name": "snowflake__get_catalog_schemas_where_clause_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_catalog_schemas_where_clause_sql", "macro_sql": "{% macro snowflake__get_catalog_schemas_where_clause_sql(schemas) -%}\n where ({%- for schema in schemas -%}\n ({{ snowflake__catalog_equals('table_schema', schema) }}){%- if not loop.last %} or {% endif -%}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__catalog_equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3419507, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_catalog_relations_where_clause_sql": {"name": "snowflake__get_catalog_relations_where_clause_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_catalog_relations_where_clause_sql", "macro_sql": "{% macro snowflake__get_catalog_relations_where_clause_sql(relations) -%}\n where (\n {%- for relation in relations -%}\n {% if relation.schema and relation.identifier %}\n (\n {{ snowflake__catalog_equals('table_schema', relation.schema) }}\n and {{ snowflake__catalog_equals('table_name', relation.identifier) }}\n )\n {% elif relation.schema %}\n (\n {{ snowflake__catalog_equals('table_schema', relation.schema) }}\n )\n {% else %}\n {% do exceptions.raise_compiler_error(\n '`get_catalog_relations` requires a list of relations, each with a schema'\n ) %}\n {% endif %}\n\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__catalog_equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.343149, "supported_languages": null}, "macro.dbt_snowflake.get_column_comment_sql": {"name": "get_column_comment_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.get_column_comment_sql", "macro_sql": "{% macro get_column_comment_sql(column_name, column_dict) -%}\n {% if (column_name|upper in column_dict) -%}\n {% set matched_column = column_name|upper -%}\n {% elif (column_name|lower in column_dict) -%}\n {% set matched_column = column_name|lower -%}\n {% elif (column_name in column_dict) -%}\n {% set matched_column = column_name -%}\n {% else -%}\n {% set matched_column = None -%}\n {% endif -%}\n {% if matched_column -%}\n {{ adapter.quote(column_name) }} COMMENT $${{ column_dict[matched_column]['description'] | replace('$', '[$]') }}$$\n {%- else -%}\n {{ adapter.quote(column_name) }} COMMENT $$$$\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.358053, "supported_languages": null}, "macro.dbt_snowflake.get_persist_docs_column_list": {"name": "get_persist_docs_column_list", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.get_persist_docs_column_list", "macro_sql": "{% macro get_persist_docs_column_list(model_columns, query_columns) %}\n(\n {% for column_name in query_columns %}\n {{ get_column_comment_sql(column_name, model_columns) }}\n {{- \", \" if not loop.last else \"\" }}\n {% endfor %}\n)\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.get_column_comment_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3587513, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_columns_in_relation": {"name": "snowflake__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_columns_in_relation", "macro_sql": "{% macro snowflake__get_columns_in_relation(relation) -%}\n {%- set sql -%}\n describe table {{ relation }}\n {%- endset -%}\n {%- set result = run_query(sql) -%}\n\n {% set maximum = 10000 %}\n {% if (result | length) >= maximum %}\n {% set msg %}\n Too many columns in relation {{ relation }}! dbt can only get\n information about relations with fewer than {{ maximum }} columns.\n {% endset %}\n {% do exceptions.raise_compiler_error(msg) %}\n {% endif %}\n\n {% set columns = [] %}\n {% for row in result %}\n {% do columns.append(api.Column.from_description(row['name'], row['type'])) %}\n {% endfor %}\n {% do return(columns) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3603745, "supported_languages": null}, "macro.dbt_snowflake.snowflake__list_schemas": {"name": "snowflake__list_schemas", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__list_schemas", "macro_sql": "{% macro snowflake__list_schemas(database) -%}\n {# 10k limit from here: https://docs.snowflake.net/manuals/sql-reference/sql/show-schemas.html#usage-notes #}\n {% set maximum = 10000 %}\n {% set sql -%}\n show terse schemas in database {{ database }}\n limit {{ maximum }}\n {%- endset %}\n {% set result = run_query(sql) %}\n {% if (result | length) >= maximum %}\n {% set msg %}\n Too many schemas in database {{ database }}! dbt can only get\n information about databases with fewer than {{ maximum }} schemas.\n {% endset %}\n {% do exceptions.raise_compiler_error(msg) %}\n {% endif %}\n {{ return(result) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3615494, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_paginated_relations_array": {"name": "snowflake__get_paginated_relations_array", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_paginated_relations_array", "macro_sql": "{% macro snowflake__get_paginated_relations_array(max_iter, max_results_per_iter, max_total_results, schema_relation, watermark) %}\n\n {% set paginated_relations = [] %}\n\n {% for _ in range(0, max_iter) %}\n\n {%- set paginated_sql -%}\n show objects in {{ schema_relation }} limit {{ max_results_per_iter }} from '{{ watermark.table_name }}'\n {%- endset -%}\n\n {%- set paginated_result = run_query(paginated_sql) %}\n {%- set paginated_n = (paginated_result | length) -%}\n\n {#\n terminating condition: if there are 0 records in the result we reached\n the end exactly on the previous iteration\n #}\n {%- if paginated_n == 0 -%}\n {%- break -%}\n {%- endif -%}\n\n {#\n terminating condition: At some point the user needs to be reasonable with how\n many objects are contained in their schemas. Since there was already\n one iteration before attempting pagination, loop.index == max_iter means\n the limit has been surpassed.\n #}\n\n {%- if loop.index == max_iter -%}\n {%- set msg -%}\n dbt will list a maximum of {{ max_total_results }} objects in schema {{ schema_relation }}.\n Your schema exceeds this limit. Please contact support@getdbt.com for troubleshooting tips,\n or review and reduce the number of objects contained.\n {%- endset -%}\n\n {% do exceptions.raise_compiler_error(msg) %}\n {%- endif -%}\n\n {%- do paginated_relations.append(paginated_result) -%}\n {% set watermark.table_name = paginated_result.columns[1].values()[-1] %}\n\n {#\n terminating condition: paginated_n < max_results_per_iter means we reached the end\n #}\n {%- if paginated_n < max_results_per_iter -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n\n {{ return(paginated_relations) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3637333, "supported_languages": null}, "macro.dbt_snowflake.snowflake__list_relations_without_caching": {"name": "snowflake__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__list_relations_without_caching", "macro_sql": "{% macro snowflake__list_relations_without_caching(schema_relation, max_iter=10, max_results_per_iter=10000) %}\n\n {%- set max_total_results = max_results_per_iter * max_iter -%}\n\n {%- set sql -%}\n show objects in {{ schema_relation }} limit {{ max_results_per_iter }}\n {%- endset -%}\n\n {%- set result = run_query(sql) -%}\n\n {%- set n = (result | length) -%}\n {%- set watermark = namespace(table_name=result.columns[1].values()[-1]) -%}\n {%- set paginated = namespace(result=[]) -%}\n\n {% if n >= max_results_per_iter %}\n\n {% set paginated.result = snowflake__get_paginated_relations_array(\n max_iter,\n max_results_per_iter,\n max_total_results,\n schema_relation,\n watermark\n )\n %}\n\n {% endif %}\n\n {%- set all_results_array = [result] + paginated.result -%}\n {%- set result = result.merge(all_results_array) -%}\n {%- do return(result) -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt_snowflake.snowflake__get_paginated_relations_array"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3656504, "supported_languages": null}, "macro.dbt_snowflake.snowflake__check_schema_exists": {"name": "snowflake__check_schema_exists", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__check_schema_exists", "macro_sql": "{% macro snowflake__check_schema_exists(information_schema, schema) -%}\n {% call statement('check_schema_exists', fetch_result=True) -%}\n select count(*)\n from {{ information_schema }}.schemata\n where upper(schema_name) = upper('{{ schema }}')\n and upper(catalog_name) = upper('{{ information_schema.database }}')\n {%- endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3663373, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_column_type": {"name": "snowflake__alter_column_type", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__alter_column_type", "macro_sql": "{% macro snowflake__alter_column_type(relation, column_name, new_column_type) -%}\n {% call statement('alter_column_type') %}\n alter table {{ relation }} alter {{ adapter.quote(column_name) }} set data type {{ new_column_type }};\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3668892, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_relation_comment": {"name": "snowflake__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__alter_relation_comment", "macro_sql": "{% macro snowflake__alter_relation_comment(relation, relation_comment) -%}\n {%- if relation.is_dynamic_table -%}\n {%- set relation_type = 'dynamic table' -%}\n {%- else -%}\n {%- set relation_type = relation.type -%}\n {%- endif -%}\n comment on {{ relation_type }} {{ relation }} IS $${{ relation_comment | replace('$', '[$]') }}$$;\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.367585, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_column_comment": {"name": "snowflake__alter_column_comment", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__alter_column_comment", "macro_sql": "{% macro snowflake__alter_column_comment(relation, column_dict) -%}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% if relation.is_dynamic_table -%}\n {% set relation_type = \"table\" %}\n {% else -%}\n {% set relation_type = relation.type %}\n {% endif %}\n alter {{ relation_type }} {{ relation }} alter\n {% for column_name in existing_columns if (column_name in existing_columns) or (column_name|lower in existing_columns) %}\n {{ get_column_comment_sql(column_name, column_dict) }} {{- ',' if not loop.last else ';' }}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.get_column_comment_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.36898, "supported_languages": null}, "macro.dbt_snowflake.get_current_query_tag": {"name": "get_current_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.get_current_query_tag", "macro_sql": "{% macro get_current_query_tag() -%}\n {{ return(run_query(\"show parameters like 'query_tag' in session\").rows[0]['value']) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3693588, "supported_languages": null}, "macro.dbt_snowflake.set_query_tag": {"name": "set_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.set_query_tag", "macro_sql": "{% macro set_query_tag() -%}\n {{ return(adapter.dispatch('set_query_tag', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake_query_tags.default__set_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.369693, "supported_languages": null}, "macro.dbt_snowflake.snowflake__set_query_tag": {"name": "snowflake__set_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__set_query_tag", "macro_sql": "{% macro snowflake__set_query_tag() -%}\n {% set new_query_tag = config.get('query_tag') %}\n {% if new_query_tag %}\n {% set original_query_tag = get_current_query_tag() %}\n {{ log(\"Setting query_tag to '\" ~ new_query_tag ~ \"'. Will reset to '\" ~ original_query_tag ~ \"' after materialization.\") }}\n {% do run_query(\"alter session set query_tag = '{}'\".format(new_query_tag)) %}\n {{ return(original_query_tag)}}\n {% endif %}\n {{ return(none)}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.get_current_query_tag", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3706937, "supported_languages": null}, "macro.dbt_snowflake.unset_query_tag": {"name": "unset_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.unset_query_tag", "macro_sql": "{% macro unset_query_tag(original_query_tag) -%}\n {{ return(adapter.dispatch('unset_query_tag', 'dbt')(original_query_tag)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake_query_tags.default__unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3711061, "supported_languages": null}, "macro.dbt_snowflake.snowflake__unset_query_tag": {"name": "snowflake__unset_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__unset_query_tag", "macro_sql": "{% macro snowflake__unset_query_tag(original_query_tag) -%}\n {% set new_query_tag = config.get('query_tag') %}\n {% if new_query_tag %}\n {% if original_query_tag %}\n {{ log(\"Resetting query_tag to '\" ~ original_query_tag ~ \"'.\") }}\n {% do run_query(\"alter session set query_tag = '{}'\".format(original_query_tag)) %}\n {% else %}\n {{ log(\"No original query_tag, unsetting parameter.\") }}\n {% do run_query(\"alter session unset query_tag\") %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3721435, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_relation_add_remove_columns": {"name": "snowflake__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__alter_relation_add_remove_columns", "macro_sql": "{% macro snowflake__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if relation.is_dynamic_table -%}\n {% set relation_type = \"dynamic table\" %}\n {% else -%}\n {% set relation_type = relation.type %}\n {% endif %}\n\n {% if add_columns %}\n\n {% set sql -%}\n alter {{ relation_type }} {{ relation }} add column\n {% for column in add_columns %}\n {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n {% endif %}\n\n {% if remove_columns %}\n\n {% set sql -%}\n alter {{ relation_type }} {{ relation }} drop column\n {% for column in remove_columns %}\n {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3741913, "supported_languages": null}, "macro.dbt_snowflake.snowflake_dml_explicit_transaction": {"name": "snowflake_dml_explicit_transaction", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake_dml_explicit_transaction", "macro_sql": "{% macro snowflake_dml_explicit_transaction(dml) %}\n {#\n Use this macro to wrap all INSERT, MERGE, UPDATE, DELETE, and TRUNCATE\n statements before passing them into run_query(), or calling in the 'main' statement\n of a materialization\n #}\n {% set dml_transaction -%}\n begin;\n {{ dml }};\n commit;\n {%- endset %}\n\n {% do return(dml_transaction) %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3746455, "supported_languages": null}, "macro.dbt_snowflake.snowflake__truncate_relation": {"name": "snowflake__truncate_relation", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__truncate_relation", "macro_sql": "{% macro snowflake__truncate_relation(relation) -%}\n {% set truncate_dml %}\n truncate table {{ relation }}\n {% endset %}\n {% call statement('truncate_relation') -%}\n {{ snowflake_dml_explicit_transaction(truncate_dml) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3751888, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_relation_last_modified": {"name": "snowflake__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/metadata.sql", "original_file_path": "macros/metadata.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_relation_last_modified", "macro_sql": "{% macro snowflake__get_relation_last_modified(information_schema, relations) -%}\n\n {%- call statement('last_modified', fetch_result=True) -%}\n select table_schema as schema,\n table_name as identifier,\n last_altered as last_modified,\n {{ current_timestamp() }} as snapshotted_at\n from {{ information_schema }}.tables\n where (\n {%- for relation in relations -%}\n (upper(table_schema) = upper('{{ relation.schema }}') and\n upper(table_name) = upper('{{ relation.identifier }}')){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n {%- endcall -%}\n\n {{ return(load_result('last_modified')) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3765256, "supported_languages": null}, "macro.dbt_snowflake.snowflake__copy_grants": {"name": "snowflake__copy_grants", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/apply_grants.sql", "original_file_path": "macros/apply_grants.sql", "unique_id": "macro.dbt_snowflake.snowflake__copy_grants", "macro_sql": "{% macro snowflake__copy_grants() %}\n {% set copy_grants = config.get('copy_grants', False) %}\n {{ return(copy_grants) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3771043, "supported_languages": null}, "macro.dbt_snowflake.snowflake__support_multiple_grantees_per_dcl_statement": {"name": "snowflake__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/apply_grants.sql", "original_file_path": "macros/apply_grants.sql", "unique_id": "macro.dbt_snowflake.snowflake__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro snowflake__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(False) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3773458, "supported_languages": null}, "macro.dbt_snowflake.materialization_snapshot_snowflake": {"name": "materialization_snapshot_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "unique_id": "macro.dbt_snowflake.materialization_snapshot_snowflake", "macro_sql": "{% materialization snapshot, adapter='snowflake' %}\n {% set original_query_tag = set_query_tag() %}\n {% set relations = materialization_snapshot_default() %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {{ return(relations) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.materialization_snapshot_default", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3780792, "supported_languages": ["sql"]}, "macro.dbt_snowflake.materialization_table_snowflake": {"name": "materialization_table_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_snowflake.materialization_table_snowflake", "macro_sql": "{% materialization table, adapter='snowflake', supported_languages=['sql', 'python']%}\n\n {% set original_query_tag = set_query_tag() %}\n\n {%- set identifier = model['alias'] -%}\n {%- set language = model['language'] -%}\n\n {% set grant_config = config.get('grants') %}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier,\n schema=schema,\n database=database, type='table') -%}\n\n {{ run_hooks(pre_hooks) }}\n\n {#-- Drop the relation if it was a view to \"convert\" it in a table. This may lead to\n -- downtime, but it should be a relatively infrequent occurrence #}\n {% if old_relation is not none and not old_relation.is_table %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ drop_relation_if_exists(old_relation) }}\n {% endif %}\n\n {% call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3823156, "supported_languages": ["sql", "python"]}, "macro.dbt_snowflake.py_write_table": {"name": "py_write_table", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_snowflake.py_write_table", "macro_sql": "{% macro py_write_table(compiled_code, target_relation, temporary=False, table_type=none) %}\n{#- The following logic is only for backwards-compatiblity with deprecated `temporary` parameter -#}\n{% if table_type is not none %}\n {#- Just use the table_type as-is -#}\n{% elif temporary -%}\n {#- Case 1 when the deprecated `temporary` parameter is used without the replacement `table_type` parameter -#}\n {%- set table_type = \"temporary\" -%}\n{% else %}\n {#- Case 2 when the deprecated `temporary` parameter is used without the replacement `table_type` parameter -#}\n {#- Snowflake treats \"\" as meaning \"permanent\" -#}\n {%- set table_type = \"\" -%}\n{%- endif %}\n{{ compiled_code }}\ndef materialize(session, df, target_relation):\n # make sure pandas exists\n import importlib.util\n package_name = 'pandas'\n if importlib.util.find_spec(package_name):\n import pandas\n if isinstance(df, pandas.core.frame.DataFrame):\n session.use_database(target_relation.database)\n session.use_schema(target_relation.schema)\n # session.write_pandas does not have overwrite function\n df = session.createDataFrame(df)\n {% set target_relation_name = resolve_model_name(target_relation) %}\n df.write.mode(\"overwrite\").save_as_table('{{ target_relation_name }}', table_type='{{table_type}}')\n\ndef main(session):\n dbt = dbtObj(session.table)\n df = model(dbt, session)\n materialize(session, df, dbt.this)\n return \"OK\"\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3833666, "supported_languages": null}, "macro.dbt_snowflake.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_snowflake.py_script_comment", "macro_sql": "{% macro py_script_comment()%}\n# To run this in snowsight, you need to select entry point to be main\n# And you may have to modify the return type to text to get the result back\n# def main(session):\n# dbt = dbtObj(session.table)\n# df = model(dbt, session)\n# return df.collect()\n\n# to run this in local notebook, you need to create a session following examples https://github.com/Snowflake-Labs/sfguide-getting-started-snowpark-python\n# then you can do the following to run model\n# dbt = dbtObj(session.table)\n# df = model(dbt, session)\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3835917, "supported_languages": null}, "macro.dbt_snowflake.materialization_test_snowflake": {"name": "materialization_test_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/test.sql", "original_file_path": "macros/materializations/test.sql", "unique_id": "macro.dbt_snowflake.materialization_test_snowflake", "macro_sql": "{%- materialization test, adapter='snowflake' -%}\n\n {% set original_query_tag = set_query_tag() %}\n {% set relations = materialization_test_default() %}\n {% do unset_query_tag(original_query_tag) %}\n {{ return(relations) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.materialization_test_default", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3843222, "supported_languages": ["sql"]}, "macro.dbt_snowflake.materialization_dynamic_table_snowflake": {"name": "materialization_dynamic_table_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table.sql", "original_file_path": "macros/materializations/dynamic_table.sql", "unique_id": "macro.dbt_snowflake.materialization_dynamic_table_snowflake", "macro_sql": "{% materialization dynamic_table, adapter='snowflake' %}\n\n {% set query_tag = set_query_tag() %}\n\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.DynamicTable) %}\n\n {{ run_hooks(pre_hooks) }}\n\n {% set build_sql = dynamic_table_get_build_sql(existing_relation, target_relation) %}\n\n {% if build_sql == '' %}\n {{ dynamic_table_execute_no_op(target_relation) }}\n {% else %}\n {{ dynamic_table_execute_build_sql(build_sql, existing_relation, target_relation) }}\n {% endif %}\n\n {{ run_hooks(post_hooks) }}\n\n {% do unset_query_tag(query_tag) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.load_cached_relation", "macro.dbt.run_hooks", "macro.dbt_snowflake.dynamic_table_get_build_sql", "macro.dbt_snowflake.dynamic_table_execute_no_op", "macro.dbt_snowflake.dynamic_table_execute_build_sql", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3899682, "supported_languages": ["sql"]}, "macro.dbt_snowflake.dynamic_table_get_build_sql": {"name": "dynamic_table_get_build_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table.sql", "original_file_path": "macros/materializations/dynamic_table.sql", "unique_id": "macro.dbt_snowflake.dynamic_table_get_build_sql", "macro_sql": "{% macro dynamic_table_get_build_sql(existing_relation, target_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_dynamic_table %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = snowflake__get_dynamic_table_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"No configuration changes were identified on: `\" ~ target_relation ~ \"`. Continuing.\") }}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = snowflake__get_alter_dynamic_table_as_sql(existing_relation, configuration_changes, target_relation, sql) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'continue', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario: `\" ~ on_configuration_change ~ \"`\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_sql", "macro.dbt.get_replace_sql", "macro.dbt_snowflake.snowflake__get_dynamic_table_configuration_changes", "macro.dbt_snowflake.snowflake__get_alter_dynamic_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3929417, "supported_languages": null}, "macro.dbt_snowflake.dynamic_table_execute_no_op": {"name": "dynamic_table_execute_no_op", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table.sql", "original_file_path": "macros/materializations/dynamic_table.sql", "unique_id": "macro.dbt_snowflake.dynamic_table_execute_no_op", "macro_sql": "{% macro dynamic_table_execute_no_op(relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3934293, "supported_languages": null}, "macro.dbt_snowflake.dynamic_table_execute_build_sql": {"name": "dynamic_table_execute_build_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table.sql", "original_file_path": "macros/materializations/dynamic_table.sql", "unique_id": "macro.dbt_snowflake.dynamic_table_execute_build_sql", "macro_sql": "{% macro dynamic_table_execute_build_sql(build_sql, existing_relation, target_relation) %}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3944721, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_dynamic_table_configuration_changes": {"name": "snowflake__get_dynamic_table_configuration_changes", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table.sql", "original_file_path": "macros/materializations/dynamic_table.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_dynamic_table_configuration_changes", "macro_sql": "{% macro snowflake__get_dynamic_table_configuration_changes(existing_relation, new_config) -%}\n {% set _existing_dynamic_table = snowflake__describe_dynamic_table(existing_relation) %}\n {% set _configuration_changes = existing_relation.dynamic_table_config_changeset(_existing_dynamic_table, new_config) %}\n {% do return(_configuration_changes) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__describe_dynamic_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3950813, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_merge_sql": {"name": "snowflake__get_merge_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/merge.sql", "original_file_path": "macros/materializations/merge.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_merge_sql", "macro_sql": "{% macro snowflake__get_merge_sql(target, source_sql, unique_key, dest_columns, incremental_predicates) -%}\n\n {#\n Workaround for Snowflake not being happy with a merge on a constant-false predicate.\n When no unique_key is provided, this macro will do a regular insert. If a unique_key\n is provided, then this macro will do a proper merge instead.\n #}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute='name')) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {%- set dml -%}\n {%- if unique_key is none -%}\n\n {{ sql_header if sql_header is not none }}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source_sql }}\n )\n\n {%- else -%}\n\n {{ default__get_merge_sql(target, source_sql, unique_key, dest_columns, incremental_predicates) }}\n\n {%- endif -%}\n {%- endset -%}\n\n {% do return(snowflake_dml_explicit_transaction(dml)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.default__get_merge_sql", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.397586, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_delete_insert_merge_sql": {"name": "snowflake__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/merge.sql", "original_file_path": "macros/materializations/merge.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_delete_insert_merge_sql", "macro_sql": "{% macro snowflake__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) %}\n {% set dml = default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) %}\n {% do return(snowflake_dml_explicit_transaction(dml)) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3982306, "supported_languages": null}, "macro.dbt_snowflake.snowflake__snapshot_merge_sql": {"name": "snowflake__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/merge.sql", "original_file_path": "macros/materializations/merge.sql", "unique_id": "macro.dbt_snowflake.snowflake__snapshot_merge_sql", "macro_sql": "{% macro snowflake__snapshot_merge_sql(target, source, insert_cols) %}\n {% set dml = default__snapshot_merge_sql(target, source, insert_cols) %}\n {% do return(snowflake_dml_explicit_transaction(dml)) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_merge_sql", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3987565, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_incremental_append_sql": {"name": "snowflake__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/merge.sql", "original_file_path": "macros/materializations/merge.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_incremental_append_sql", "macro_sql": "{% macro snowflake__get_incremental_append_sql(get_incremental_append_sql) %}\n {% set dml = default__get_incremental_append_sql(get_incremental_append_sql) %}\n {% do return(snowflake_dml_explicit_transaction(dml)) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3992596, "supported_languages": null}, "macro.dbt_snowflake.snowflake__can_clone_table": {"name": "snowflake__can_clone_table", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/clone.sql", "original_file_path": "macros/materializations/clone.sql", "unique_id": "macro.dbt_snowflake.snowflake__can_clone_table", "macro_sql": "{% macro snowflake__can_clone_table() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.3997242, "supported_languages": null}, "macro.dbt_snowflake.snowflake__create_or_replace_clone": {"name": "snowflake__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/clone.sql", "original_file_path": "macros/materializations/clone.sql", "unique_id": "macro.dbt_snowflake.snowflake__create_or_replace_clone", "macro_sql": "{% macro snowflake__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace\n {{ \"transient\" if config.get(\"transient\", true) }}\n table {{ this_relation }}\n clone {{ defer_relation }}\n {{ \"copy grants\" if config.get(\"copy_grants\", false) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4003348, "supported_languages": null}, "macro.dbt_snowflake.materialization_view_snowflake": {"name": "materialization_view_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "unique_id": "macro.dbt_snowflake.materialization_view_snowflake", "macro_sql": "{% materialization view, adapter='snowflake' -%}\n\n {% set original_query_tag = set_query_tag() %}\n {% set to_return = snowflake__create_or_replace_view() %}\n\n {% set target_relation = this.incorporate(type='view') %}\n\n {% do persist_docs(target_relation, model, for_columns=false) %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {% do return(to_return) %}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt_snowflake.snowflake__create_or_replace_view", "macro.dbt.persist_docs", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4014425, "supported_languages": ["sql"]}, "macro.dbt_snowflake.dbt_snowflake_get_tmp_relation_type": {"name": "dbt_snowflake_get_tmp_relation_type", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_snowflake.dbt_snowflake_get_tmp_relation_type", "macro_sql": "{% macro dbt_snowflake_get_tmp_relation_type(strategy, unique_key, language) %}\n{%- set tmp_relation_type = config.get('tmp_relation_type') -%}\n /* {#\n High-level principles:\n If we are running multiple statements (DELETE + INSERT),\n and we want to guarantee identical inputs to both statements,\n then we must first save the model query results as a temporary table\n (which presumably comes with a performance cost).\n If we are running a single statement (MERGE or INSERT alone),\n we _may_ save the model query definition as a view instead,\n for (presumably) faster overall incremental processing.\n\n Low-level specifics:\n If an invalid option is specified, then we will raise an\n excpetion with corresponding message.\n\n Languages other than SQL (like Python) will use a temporary table.\n With the default strategy of merge, the user may choose between a temporary\n table and view (defaulting to view).\n\n The append strategy can use a view because it will run a single INSERT statement.\n\n When unique_key is none, the delete+insert strategy can use a view beacuse a\n single INSERT statement is run with no DELETES as part of the statement.\n Otherwise, play it safe by using a temporary table.\n #} */\n\n {% if language == \"python\" and tmp_relation_type is not none %}\n {% do exceptions.raise_compiler_error(\n \"Python models currently only support 'table' for tmp_relation_type but \"\n ~ tmp_relation_type ~ \" was specified.\"\n ) %}\n {% endif %}\n\n {% if strategy == \"delete+insert\" and tmp_relation_type is not none and tmp_relation_type != \"table\" and unique_key is not none %}\n {% do exceptions.raise_compiler_error(\n \"In order to maintain consistent results when `unique_key` is not none,\n the `delete+insert` strategy only supports `table` for `tmp_relation_type` but \"\n ~ tmp_relation_type ~ \" was specified.\"\n )\n %}\n {% endif %}\n\n {% if language != \"sql\" %}\n {{ return(\"table\") }}\n {% elif tmp_relation_type == \"table\" %}\n {{ return(\"table\") }}\n {% elif tmp_relation_type == \"view\" %}\n {{ return(\"view\") }}\n {% elif strategy in (\"default\", \"merge\", \"append\") %}\n {{ return(\"view\") }}\n {% elif strategy == \"delete+insert\" and unique_key is none %}\n {{ return(\"view\") }}\n {% else %}\n {{ return(\"table\") }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4060695, "supported_languages": null}, "macro.dbt_snowflake.materialization_incremental_snowflake": {"name": "materialization_incremental_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_snowflake.materialization_incremental_snowflake", "macro_sql": "{% materialization incremental, adapter='snowflake', supported_languages=['sql', 'python'] -%}\n\n {% set original_query_tag = set_query_tag() %}\n\n {#-- Set vars --#}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n {%- set language = model['language'] -%}\n {% set target_relation = this %}\n {% set existing_relation = load_relation(this) %}\n\n {#-- The temp relation will be a view (faster) or temp table, depending on upsert/merge strategy --#}\n {%- set unique_key = config.get('unique_key') -%}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set tmp_relation_type = dbt_snowflake_get_tmp_relation_type(incremental_strategy, unique_key, language) %}\n {% set tmp_relation = make_temp_relation(this).incorporate(type=tmp_relation_type) %}\n\n {% set grant_config = config.get('grants') %}\n\n {% set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') %}\n\n {{ run_hooks(pre_hooks) }}\n\n {% if existing_relation is none %}\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% elif existing_relation.is_view %}\n {#-- Can't overwrite a view with a table - we must drop --#}\n {{ log(\"Dropping relation \" ~ target_relation ~ \" because it is a view and this model is a table.\") }}\n {% do adapter.drop_relation(existing_relation) %}\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n {% elif full_refresh_mode %}\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% else %}\n {#-- Create the temp relation, either as a view or as a temp table --#}\n {% if tmp_relation_type == 'view' %}\n {%- call statement('create_tmp_relation') -%}\n {{ snowflake__create_view_as_with_temp_flag(tmp_relation, compiled_code, True) }}\n {%- endcall -%}\n {% else %}\n {%- call statement('create_tmp_relation', language=language) -%}\n {{ create_table_as(True, tmp_relation, compiled_code, language) }}\n {%- endcall -%}\n {% endif %}\n\n {% do adapter.expand_target_column_types(\n from_relation=tmp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, tmp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': tmp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n\n {%- call statement('main') -%}\n {{ strategy_sql_macro_func(strategy_arg_dict) }}\n {%- endcall -%}\n {% endif %}\n\n {% do drop_relation_if_exists(tmp_relation) %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set target_relation = target_relation.incorporate(type='table') %}\n\n {% set should_revoke =\n should_revoke(existing_relation.is_table, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.should_full_refresh", "macro.dbt.load_relation", "macro.dbt_snowflake.dbt_snowflake_get_tmp_relation_type", "macro.dbt.make_temp_relation", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt_snowflake.snowflake__create_view_as_with_temp_flag", "macro.dbt.process_schema_changes", "macro.dbt.drop_relation_if_exists", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4133537, "supported_languages": ["sql", "python"]}, "macro.dbt_snowflake.snowflake__get_incremental_default_sql": {"name": "snowflake__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_incremental_default_sql", "macro_sql": "{% macro snowflake__get_incremental_default_sql(arg_dict) %}\n {{ return(get_incremental_merge_sql(arg_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4137144, "supported_languages": null}, "macro.dbt_snowflake.snowflake__load_csv_rows": {"name": "snowflake__load_csv_rows", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "unique_id": "macro.dbt_snowflake.snowflake__load_csv_rows", "macro_sql": "{% macro snowflake__load_csv_rows(model, agate_table) %}\n {% set batch_size = get_batch_size() %}\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n %s\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query('BEGIN', auto_begin=False) %}\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n {% do adapter.add_query('COMMIT', auto_begin=False) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4177399, "supported_languages": null}, "macro.dbt_snowflake.materialization_seed_snowflake": {"name": "materialization_seed_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "unique_id": "macro.dbt_snowflake.materialization_seed_snowflake", "macro_sql": "{% materialization seed, adapter='snowflake' %}\n {% set original_query_tag = set_query_tag() %}\n\n {% set relations = materialization_seed_default() %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {{ return(relations) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.materialization_seed_default", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4183834, "supported_languages": ["sql"]}, "macro.dbt_snowflake.snowflake__current_timestamp": {"name": "snowflake__current_timestamp", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_snowflake.snowflake__current_timestamp", "macro_sql": "{% macro snowflake__current_timestamp() -%}\n convert_timezone('UTC', current_timestamp())\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.418928, "supported_languages": null}, "macro.dbt_snowflake.snowflake__snapshot_string_as_time": {"name": "snowflake__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_snowflake.snowflake__snapshot_string_as_time", "macro_sql": "{% macro snowflake__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"to_timestamp_ntz('\" ~ timestamp ~ \"')\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4193048, "supported_languages": null}, "macro.dbt_snowflake.snowflake__snapshot_get_time": {"name": "snowflake__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_snowflake.snowflake__snapshot_get_time", "macro_sql": "{% macro snowflake__snapshot_get_time() -%}\n to_timestamp_ntz({{ current_timestamp() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4195325, "supported_languages": null}, "macro.dbt_snowflake.snowflake__current_timestamp_backcompat": {"name": "snowflake__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_snowflake.snowflake__current_timestamp_backcompat", "macro_sql": "{% macro snowflake__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4197605, "supported_languages": null}, "macro.dbt_snowflake.snowflake__current_timestamp_in_utc_backcompat": {"name": "snowflake__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_snowflake.snowflake__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro snowflake__current_timestamp_in_utc_backcompat() %}\n convert_timezone('UTC', {{ snowflake__current_timestamp_backcompat() }})::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp_backcompat", "macro.dbt_expectations.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.420066, "supported_languages": null}, "macro.dbt_snowflake.snowflake__array_construct": {"name": "snowflake__array_construct", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt_snowflake.snowflake__array_construct", "macro_sql": "{% macro snowflake__array_construct(inputs, data_type) -%}\n array_construct( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4204452, "supported_languages": null}, "macro.dbt_snowflake.snowflake__escape_single_quotes": {"name": "snowflake__escape_single_quotes", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt_snowflake.snowflake__escape_single_quotes", "macro_sql": "{% macro snowflake__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4208283, "supported_languages": null}, "macro.dbt_snowflake.snowflake__right": {"name": "snowflake__right", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt_snowflake.snowflake__right", "macro_sql": "{% macro snowflake__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0\n then ''\n else\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n end\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4212983, "supported_languages": null}, "macro.dbt_snowflake.snowflake__safe_cast": {"name": "snowflake__safe_cast", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt_snowflake.snowflake__safe_cast", "macro_sql": "{% macro snowflake__safe_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4216478, "supported_languages": null}, "macro.dbt_snowflake.snowflake__bool_or": {"name": "snowflake__bool_or", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt_snowflake.snowflake__bool_or", "macro_sql": "{% macro snowflake__bool_or(expression) -%}\n\n boolor_agg({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4219432, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_create_sql": {"name": "snowflake__get_create_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_create_sql", "macro_sql": "{% macro snowflake__get_create_sql(relation, sql) %}\n\n {% if relation.is_dynamic_table %}\n {{ snowflake__get_create_dynamic_table_as_sql(relation, sql) }}\n\n {% else %}\n {{ default__get_create_sql(relation, sql) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_create_dynamic_table_as_sql", "macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.422629, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_replace_sql": {"name": "snowflake__get_replace_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_replace_sql", "macro_sql": "{% macro snowflake__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {% if existing_relation.is_dynamic_table and target_relation.is_dynamic_table %}\n {{ snowflake__get_replace_dynamic_table_sql(target_relation, sql) }}\n\n {% else %}\n {{ default__get_replace_sql(existing_relation, target_relation, sql) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_replace_dynamic_table_sql", "macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.423449, "supported_languages": null}, "macro.dbt_snowflake.snowflake__rename_relation": {"name": "snowflake__rename_relation", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt_snowflake.snowflake__rename_relation", "macro_sql": "{% macro snowflake__rename_relation(from_relation, to_relation) -%}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ to_relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4239867, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_drop_sql": {"name": "snowflake__get_drop_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_drop_sql", "macro_sql": "{% macro snowflake__get_drop_sql(relation) %}\n\n {% if relation.is_dynamic_table %}\n {{ snowflake__get_drop_dynamic_table_sql(relation) }}\n\n {% else %}\n {{ default__get_drop_sql(relation) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_drop_dynamic_table_sql", "macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4246154, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_create_dynamic_table_as_sql": {"name": "snowflake__get_create_dynamic_table_as_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/dynamic_table/create.sql", "original_file_path": "macros/relations/dynamic_table/create.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_create_dynamic_table_as_sql", "macro_sql": "{% macro snowflake__get_create_dynamic_table_as_sql(relation, sql) -%}\n\n create dynamic table {{ relation }}\n target_lag = '{{ config.get(\"target_lag\") }}'\n warehouse = {{ config.get(\"snowflake_warehouse\") }}\n as (\n {{ sql }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4252706, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_replace_dynamic_table_sql": {"name": "snowflake__get_replace_dynamic_table_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/dynamic_table/replace.sql", "original_file_path": "macros/relations/dynamic_table/replace.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_replace_dynamic_table_sql", "macro_sql": "{% macro snowflake__get_replace_dynamic_table_sql(relation, sql) %}\n\n create or replace dynamic table {{ relation }}\n target_lag = '{{ config.get(\"target_lag\") }}'\n warehouse = {{ config.get(\"snowflake_warehouse\") }}\n as (\n {{ sql }}\n )\n ;\n {{ snowflake__refresh_dynamic_table(relation) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__refresh_dynamic_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.426019, "supported_languages": null}, "macro.dbt_snowflake.snowflake__describe_dynamic_table": {"name": "snowflake__describe_dynamic_table", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/dynamic_table/describe.sql", "original_file_path": "macros/relations/dynamic_table/describe.sql", "unique_id": "macro.dbt_snowflake.snowflake__describe_dynamic_table", "macro_sql": "{% macro snowflake__describe_dynamic_table(relation) %}\n {%- set _dynamic_table_sql -%}\n show dynamic tables\n like '{{ relation.identifier }}'\n in schema {{ relation.database }}.{{ relation.schema }}\n ;\n select\n \"name\",\n \"schema_name\",\n \"database_name\",\n \"text\",\n \"target_lag\",\n \"warehouse\"\n from table(result_scan(last_query_id()))\n {%- endset %}\n {% set _dynamic_table = run_query(_dynamic_table_sql) %}\n\n {% do return({'dynamic_table': _dynamic_table}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4271455, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_alter_dynamic_table_as_sql": {"name": "snowflake__get_alter_dynamic_table_as_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/dynamic_table/alter.sql", "original_file_path": "macros/relations/dynamic_table/alter.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_alter_dynamic_table_as_sql", "macro_sql": "{% macro snowflake__get_alter_dynamic_table_as_sql(\n existing_relation,\n configuration_changes,\n target_relation,\n sql\n) -%}\n {{- log('Applying ALTER to: ' ~ existing_relation) -}}\n\n {% if configuration_changes.requires_full_refresh %}\n {{- get_replace_sql(existing_relation, target_relation, sql) -}}\n\n {% else %}\n\n {%- set target_lag = configuration_changes.target_lag -%}\n {%- if target_lag -%}{{- log('Applying UPDATE TARGET_LAG to: ' ~ existing_relation) -}}{%- endif -%}\n {%- set snowflake_warehouse = configuration_changes.snowflake_warehouse -%}\n {%- if snowflake_warehouse -%}{{- log('Applying UPDATE WAREHOUSE to: ' ~ existing_relation) -}}{%- endif -%}\n\n alter dynamic table {{ existing_relation }} set\n {% if target_lag %}target_lag = '{{ target_lag.context }}'{% endif %}\n {% if snowflake_warehouse %}warehouse = {{ snowflake_warehouse.context }}{% endif %}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4292147, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_drop_dynamic_table_sql": {"name": "snowflake__get_drop_dynamic_table_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/dynamic_table/drop.sql", "original_file_path": "macros/relations/dynamic_table/drop.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_drop_dynamic_table_sql", "macro_sql": "{% macro snowflake__get_drop_dynamic_table_sql(relation) %}\n drop dynamic table if exists {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4295056, "supported_languages": null}, "macro.dbt_snowflake.snowflake__refresh_dynamic_table": {"name": "snowflake__refresh_dynamic_table", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/dynamic_table/refresh.sql", "original_file_path": "macros/relations/dynamic_table/refresh.sql", "unique_id": "macro.dbt_snowflake.snowflake__refresh_dynamic_table", "macro_sql": "{% macro snowflake__refresh_dynamic_table(relation) -%}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n\n alter dynamic table {{ relation }} refresh\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4299402, "supported_languages": null}, "macro.dbt_snowflake.snowflake__create_view_as_with_temp_flag": {"name": "snowflake__create_view_as_with_temp_flag", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt_snowflake.snowflake__create_view_as_with_temp_flag", "macro_sql": "{% macro snowflake__create_view_as_with_temp_flag(relation, sql, is_temporary=False) -%}\n {%- set secure = config.get('secure', default=false) -%}\n {%- set copy_grants = config.get('copy_grants', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create or replace {% if secure -%}\n secure\n {%- endif %} {% if is_temporary -%}\n temporary\n {%- endif %} view {{ relation }}\n {% if config.persist_column_docs() -%}\n {% set model_columns = model.columns %}\n {% set query_columns = get_columns_in_query(sql) %}\n {{ get_persist_docs_column_list(model_columns, query_columns) }}\n\n {%- endif %}\n {%- set contract_config = config.get('contract') -%}\n {%- if contract_config.enforced -%}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n {% if copy_grants -%} copy grants {%- endif %} as (\n {{ sql }}\n );\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query", "macro.dbt_snowflake.get_persist_docs_column_list", "macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4332132, "supported_languages": null}, "macro.dbt_snowflake.snowflake__create_view_as": {"name": "snowflake__create_view_as", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt_snowflake.snowflake__create_view_as", "macro_sql": "{% macro snowflake__create_view_as(relation, sql) -%}\n {{ snowflake__create_view_as_with_temp_flag(relation, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_view_as_with_temp_flag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4335437, "supported_languages": null}, "macro.dbt_snowflake.snowflake__create_or_replace_view": {"name": "snowflake__create_or_replace_view", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt_snowflake.snowflake__create_or_replace_view", "macro_sql": "{% macro snowflake__create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and not old_relation.is_view -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4358823, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_replace_view_sql": {"name": "snowflake__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_replace_view_sql", "macro_sql": "{% macro snowflake__get_replace_view_sql(relation, sql) %}\n {{ snowflake__create_view_as(relation, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4362793, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_rename_view_sql": {"name": "snowflake__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_rename_view_sql", "macro_sql": "{%- macro snowflake__get_rename_view_sql(relation, new_name) -%}\n alter view {{ relation }} rename to {{ new_name }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4366286, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_drop_view_sql": {"name": "snowflake__get_drop_view_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_drop_view_sql", "macro_sql": "{% macro snowflake__get_drop_view_sql(relation) %}\n drop view if exists {{ relation }} cascade\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4369204, "supported_languages": null}, "macro.dbt_snowflake.snowflake__create_table_as": {"name": "snowflake__create_table_as", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt_snowflake.snowflake__create_table_as", "macro_sql": "{% macro snowflake__create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {%- set transient = config.get('transient', default=true) -%}\n\n {% if temporary -%}\n {%- set table_type = \"temporary\" -%}\n {%- elif transient -%}\n {%- set table_type = \"transient\" -%}\n {%- else -%}\n {%- set table_type = \"\" -%}\n {%- endif %}\n\n {%- if language == 'sql' -%}\n {%- set cluster_by_keys = config.get('cluster_by', default=none) -%}\n {%- set enable_automatic_clustering = config.get('automatic_clustering', default=false) -%}\n {%- set copy_grants = config.get('copy_grants', default=false) -%}\n\n {%- if cluster_by_keys is not none and cluster_by_keys is string -%}\n {%- set cluster_by_keys = [cluster_by_keys] -%}\n {%- endif -%}\n {%- if cluster_by_keys is not none -%}\n {%- set cluster_by_string = cluster_by_keys|join(\", \")-%}\n {% else %}\n {%- set cluster_by_string = none -%}\n {%- endif -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace {{ table_type }} table {{ relation }}\n {%- set contract_config = config.get('contract') -%}\n {%- if contract_config.enforced -%}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {% set compiled_code = get_select_subquery(compiled_code) %}\n {% endif %}\n {% if copy_grants and not temporary -%} copy grants {%- endif %} as\n (\n {%- if cluster_by_string is not none -%}\n select * from (\n {{ compiled_code }}\n ) order by ({{ cluster_by_string }})\n {%- else -%}\n {{ compiled_code }}\n {%- endif %}\n );\n {% if cluster_by_string is not none and not temporary -%}\n alter table {{relation}} cluster by ({{cluster_by_string}});\n {%- endif -%}\n {% if enable_automatic_clustering and cluster_by_string is not none and not temporary -%}\n alter table {{relation}} resume recluster;\n {%- endif -%}\n\n {%- elif language == 'python' -%}\n {{ py_write_table(compiled_code=compiled_code, target_relation=relation, table_type=table_type) }}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"snowflake__create_table_as macro didn't get supported language, it got %s\" % language) %}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery", "macro.dbt_snowflake.py_write_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.443982, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_replace_table_sql": {"name": "snowflake__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_replace_table_sql", "macro_sql": "{% macro snowflake__get_replace_table_sql(relation, sql) %}\n {{ snowflake__create_table_as(False, relation, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4444463, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_rename_table_sql": {"name": "snowflake__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_rename_table_sql", "macro_sql": "{%- macro snowflake__get_rename_table_sql(relation, new_name) -%}\n alter table {{ relation }} rename to {{ new_name }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4447994, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_drop_table_sql": {"name": "snowflake__get_drop_table_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_drop_table_sql", "macro_sql": "{% macro snowflake__get_drop_table_sql(relation) %}\n drop table if exists {{ relation }} cascade\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4451218, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4477403, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4480813, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4497697, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4506361, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4519432, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4529204, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.453085, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4551756, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4555774, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4559026, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4562168, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.456508, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.45721, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4578314, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4586115, "supported_languages": null}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.464272, "supported_languages": ["sql"]}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4695148, "supported_languages": ["sql"]}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4769697, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4777575, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4782815, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.480964, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4814484, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4828227, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.48409, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4926467, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4961197, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4966605, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4987633, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.4993312, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5006688, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.503382, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5045455, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5059626, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5064652, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5079687, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.509497, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5100262, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5104094, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5110302, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5114188, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5120573, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5124676, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5130358, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5134141, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5137334, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5144517, "supported_languages": null}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.522659, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5252433, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5278149, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.529608, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5394552, "supported_languages": ["sql"]}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5401742, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.540498, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {% if target_relation and defer_relation and target_relation == defer_relation %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation) }}\n {% else %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endif %}\n\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5469835, "supported_languages": ["sql"]}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5475001, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5477483, "supported_languages": null}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5546975, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5566049, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5571082, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5581417, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5585356, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5588174, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5591705, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5594194, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5597527, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5600376, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5610433, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5615425, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5641398, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5702949, "supported_languages": ["sql"]}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5811768, "supported_languages": ["sql"]}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.586678, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5873163, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5876653, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5878856, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5881958, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.588438, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.588884, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5906816, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5911243, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5916524, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5925522, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5984895, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5990007, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.5994952, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.600979, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6013253, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6016965, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.604663, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6074915, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6083255, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6088963, "supported_languages": null}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6141148, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6150036, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6156423, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.616361, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6171734, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6176598, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6179469, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.618389, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6185508, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6192207, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6197753, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6201038, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.620744, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6211085, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6216092, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6218398, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.62238, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6228223, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6234016, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6236992, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6249683, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.626218, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6267061, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6274855, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6280694, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.62835, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.62911, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.629609, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6301587, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6304467, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6321235, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.632447, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6327753, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6331143, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.633444, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6338987, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6342418, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6346054, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.634967, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6352932, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6356268, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6359503, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6362839, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6365817, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6371908, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6374838, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6380432, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6383283, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.639283, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.639635, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6401196, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6406865, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6409953, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.641639, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6420205, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.642503, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.642988, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6435735, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6439028, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6445622, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6449177, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6453571, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6455326, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6460357, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6462631, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6473827, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.648274, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.648778, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6490183, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6503935, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6513114, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.651707, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6528294, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6533766, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6535943, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6546028, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.655552, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6562378, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6567984, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.658211, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6607842, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6620939, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6630144, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.663438, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.66405, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.66477, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6653287, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6665306, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.66732, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6676917, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.668125, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6685548, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.669187, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.669615, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6702676, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6708348, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6713848, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6716938, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.67224, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6725395, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6731057, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6734223, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6745517, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.674961, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.67555, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6758883, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.676412, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6766315, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.677251, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6775372, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6793163, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6795866, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6808288, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6811924, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6814756, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6841285, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6849344, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6856346, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6864307, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6867607, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6871557, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6880374, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6895041, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6898067, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6921525, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.692578, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6930623, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6936193, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.693952, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6944776, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.694704, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6962013, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6965857, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6976388, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.6991336, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7001638, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7005584, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7009504, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.701486, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7018144, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7024386, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7027571, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7032912, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7035127, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7046244, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7052486, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7057295, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7063785, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.707154, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.707974, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7087212, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7092845, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7102308, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7109313, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7115374, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7144186, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7156203, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7162488, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.719216, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7217197, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7233095, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7237918, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.72688, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7272382, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7276955, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.728305, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7287948, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7294574, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7298472, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.730232, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7307296, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.732046, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7325232, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7328231, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7372484, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7377822, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7382214, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7387564, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.739156, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7394774, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7398362, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7403555, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.740945, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7416987, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.742139, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.742488, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.74283, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.743172, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.743599, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7439857, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7448661, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7451875, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7459226, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7461538, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7465115, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.746671, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7470372, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_snowflake.snowflake__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7473826, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7480936, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7484818, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.748817, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7492378, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7500274, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7509034, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header -%}\n {{ sql_header }}\n {%- endif -%}\n {%- if limit is not none -%}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n {%- else -%}\n {{ compiled_code }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.751908, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "{% macro get_limit_subquery_sql(sql, limit) %}\n {{ adapter.dispatch('get_limit_subquery_sql', 'dbt')(sql, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.752301, "supported_languages": null}, "macro.dbt.default__get_limit_subquery_sql": {"name": "default__get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_subquery_sql", "macro_sql": "{% macro default__get_limit_subquery_sql(sql, limit) %}\n select *\n from (\n {{ sql }}\n ) as model_limit_subq\n limit {{ limit }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7525845, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.753153, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7537224, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7552226, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7555137, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7558422, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7568474, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.757259, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7575462, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7579086, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7582026, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7609854, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.761233, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7615747, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.761817, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7626066, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7630508, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.763273, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7637424, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7641568, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7646213, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.765039, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7654986, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.767084, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.767477, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7680073, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7684705, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7708719, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.774377, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7747145, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.775379, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7758222, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.77627, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.776647, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7790978, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7798378, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7802334, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7809646, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.781433, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.782681, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7832162, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.785032, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7862637, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7866218, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7870622, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7874205, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7879827, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.788971, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7899132, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7903907, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7911186, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7916925, "supported_languages": null}, "macro.livequery_models.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/custom_naming_macros.sql", "original_file_path": "macros/custom_naming_macros.sql", "unique_id": "macro.livequery_models.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {% set node_name = node.name %}\n {% set split_name = node_name.split('__') %}\n {{ split_name[0] | trim }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7925098, "supported_languages": null}, "macro.livequery_models.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/custom_naming_macros.sql", "original_file_path": "macros/custom_naming_macros.sql", "unique_id": "macro.livequery_models.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% set node_name = node.name %}\n {% set split_name = node_name.split('__') %}\n {{ split_name[1] | trim }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.793105, "supported_languages": null}, "macro.livequery_models.apply_grants_by_schema": {"name": "apply_grants_by_schema", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/grants.sql", "original_file_path": "macros/grants.sql", "unique_id": "macro.livequery_models.apply_grants_by_schema", "macro_sql": "{% macro apply_grants_by_schema(schema) %}\n{#\n Generates SQL to grant permissions to roles for a given schema.\n This gets run automatically when a deployment is made to prod.\n\n This can be manually run to grant permissions to a new schema:\n `dbt run-operation apply_grants_by_schema --args '{\"schema\": \"my_schema\"}'`\n #}\n {%- set outer = namespace(sql=\"\") -%}\n {% for role in fromyaml(var(\"ROLES\")) %}\n {% set sql -%}\n {% if schema.startswith(\"_\") %}\n REVOKE USAGE ON SCHEMA {{ target.database }}.{{ schema }} FROM {{ role }};\n REVOKE USAGE ON ALL FUNCTIONS IN SCHEMA {{ target.database }}.{{ schema }} FROM {{ role }};\n {%- else -%}\n GRANT USAGE ON SCHEMA {{ target.database }}.{{ schema }} TO {{ role }};\n GRANT USAGE ON ALL FUNCTIONS IN SCHEMA {{ target.database }}.{{ schema }} TO {{ role }};\n\n GRANT SELECT ON ALL TABLES IN SCHEMA {{ target.database }}.{{ schema }} TO {{ role }};\n GRANT SELECT ON ALL VIEWS IN SCHEMA {{ target.database }}.{{ schema }} TO {{ role }};\n {%- endif -%}\n {%- endset -%}\n {%- set outer.sql = outer.sql ~ sql -%}\n {%- endfor -%}\n {{ outer.sql }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.79642, "supported_languages": null}, "macro.livequery_models.apply_grants_to_all_schema": {"name": "apply_grants_to_all_schema", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/grants.sql", "original_file_path": "macros/grants.sql", "unique_id": "macro.livequery_models.apply_grants_to_all_schema", "macro_sql": "{% macro apply_grants_to_all_schema() %}\n{#\n Run SQL to grant permissions to roles for all schemas.\n This is useful for when a new role is created and needs to be granted access to all schemas.\n This is not used in the normal grant process.\n\n `dbt run-operation apply_grants_to_all_schema`\n #}\n {% if execute and target.name in (\"prod\", \"hosted\",) %}\n {% set sql_get_schema %}\n SELECT SCHEMA_NAME\n FROM {{ target.database }}.INFORMATION_SCHEMA.SCHEMATA\n WHERE SCHEMA_NAME NOT IN ('PUBLIC', 'INFORMATION_SCHEMA')\n {%- endset -%}\n {%- set results = run_query(sql_get_schema) -%}\n {% set sql_apply_grants %}\n {%- for schema in results.columns[0].values() -%}\n {{ apply_grants_by_schema(schema) }}\n {%- endfor -%}\n {%- endset -%}\n {% do log(sql_apply_grants, true) %}\n {% do run_query(sql_apply_grants) %}\n {%- endif -%}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.livequery_models.apply_grants_by_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.79783, "supported_languages": null}, "macro.livequery_models.run_sp_create_prod_clone": {"name": "run_sp_create_prod_clone", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/run_sp_create_prod_clone.sql", "original_file_path": "macros/run_sp_create_prod_clone.sql", "unique_id": "macro.livequery_models.run_sp_create_prod_clone", "macro_sql": "{% macro run_sp_create_prod_clone() %}\n {% set clone_query %}\n call livequery._internal.create_prod_clone(\n 'livequery',\n 'livequery_dev',\n 'livequery_dev_owner'\n );\n{% endset %}\n {% do run_query(clone_query) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7983308, "supported_languages": null}, "macro.livequery_models.create_sps": {"name": "create_sps", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/create_sps.sql", "original_file_path": "macros/create_sps.sql", "unique_id": "macro.livequery_models.create_sps", "macro_sql": "{% macro create_sps() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\n {% if target.database == 'LIVEQUERY' %}\n CREATE schema IF NOT EXISTS _internal;\n {{ sp_create_prod_clone('_internal') }};\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.sp_create_prod_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.7990553, "supported_languages": null}, "macro.livequery_models.sp_create_prod_clone": {"name": "sp_create_prod_clone", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/sp_create_prod_clone.sql", "original_file_path": "macros/sp_create_prod_clone.sql", "unique_id": "macro.livequery_models.sp_create_prod_clone", "macro_sql": "{% macro sp_create_prod_clone(target_schema) -%}\n\ncreate or replace procedure {{ target_schema }}.create_prod_clone(source_db_name string, destination_db_name string, role_name string)\nreturns boolean \nlanguage javascript\nexecute as caller\nas\n$$\n snowflake.execute({sqlText: `BEGIN TRANSACTION;`});\n try {\n snowflake.execute({sqlText: `CREATE OR REPLACE DATABASE ${DESTINATION_DB_NAME} CLONE ${SOURCE_DB_NAME}`});\n snowflake.execute({sqlText: `DROP SCHEMA IF EXISTS ${DESTINATION_DB_NAME}._INTERNAL`}); /* this only needs to be in prod */\n\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL SCHEMAS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL FUNCTIONS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL PROCEDURES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL VIEWS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL STAGES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL TABLES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE FUNCTIONS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE PROCEDURES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE VIEWS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE STAGES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE TABLES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`})\n\n var existing_tags = snowflake.execute({sqlText: `SHOW TAGS IN DATABASE ${DESTINATION_DB_NAME};`});\n while (existing_tags.next()) {\n var schema = existing_tags.getColumnValue(4);\n var tag_name = existing_tags.getColumnValue(2)\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON TAG ${DESTINATION_DB_NAME}.${schema}.${tag_name} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`});\n }\n\n snowflake.execute({sqlText: `COMMIT;`});\n } catch (err) {\n snowflake.execute({sqlText: `ROLLBACK;`});\n throw(err);\n }\n\n return true\n$$\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.800018, "supported_languages": null}, "macro.livequery_models.set_query_tag": {"name": "set_query_tag", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/custom_query_tag.sql", "original_file_path": "macros/custom_query_tag.sql", "unique_id": "macro.livequery_models.set_query_tag", "macro_sql": "{% macro set_query_tag() -%}\n {% set new_json = {\"repo\":project_name, \"object\":this.table, \"profile\":target.profile_name, \"env\":target.name, \"existing_tag\":get_current_query_tag() } %}\n{% set new_query_tag = tojson(new_json) | as_text %}\n {% if new_query_tag %}\n {% set original_query_tag = get_current_query_tag() %}\n {{ log(\"Setting query_tag to '\" ~ new_query_tag ~ \"'. Will reset to '\" ~ original_query_tag ~ \"' after materialization.\") }}\n {% do run_query(\"alter session set query_tag = '{}'\".format(new_query_tag)) %}\n {{ return(original_query_tag)}}\n {% endif %}\n {{ return(none)}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.get_current_query_tag", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.8017259, "supported_languages": null}, "macro.livequery_models.failed_gha_slack_alert": {"name": "failed_gha_slack_alert", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/alerts/slack_alert.sql", "original_file_path": "macros/alerts/slack_alert.sql", "unique_id": "macro.livequery_models.failed_gha_slack_alert", "macro_sql": "{% macro failed_gha_slack_alert() %}\n\n {# Get parameters from vars #}\n {%- set owner = var('owner') -%}\n {%- set repo = var('repo') -%}\n {%- set run_id = var('run_id') -%}\n {%- set slack_channel = var('slack_channel', none) -%}\n {%- set enable_ai_analysis = var('enable_ai_analysis', true) -%}\n {%- set ai_provider = var('ai_provider', 'cortex') -%}\n {%- set model_name = var('model_name', 'mistral-large') -%}\n {%- set ai_prompt = var('ai_prompt', '') -%}\n {%- set enable_auto_threading = var('enable_auto_threading', false) -%}\n {%- set bot_secret_name = var('bot_secret_name', 'intelligence') -%}\n {%- set webhook_secret_name = var('webhook_secret_name', none) -%}\n {%- set username = var('username', 'GitHub Actions Bot') -%}\n {%- set icon_emoji = var('icon_emoji', ':github:') -%}\n {%- set icon_url = var('icon_url', none) -%}\n\n {%- set webhook_url = env_var('SLACK_WEBHOOK_URL', '') -%}\n {%- set use_webhook = webhook_url != '' and webhook_secret_name -%}\n\n\n {# Check if we have a valid slack channel #}\n {%- if slack_channel -%}\n {{ log(\"Using bot token method with channel: \" ~ slack_channel, true) }}\n {%- set use_webhook = false -%}\n {%- elif not use_webhook -%}\n {{ log(\"Error: Either SLACK_WEBHOOK_URL with webhook_secret_name or slack_channel must be provided\", true) }}\n {{ return(\"\") }}\n {%- endif -%}\n\n {%- if enable_ai_analysis -%}\n {# Get failure data with AI analysis #}\n {% set failure_query %}\n SELECT\n run_id,\n ai_analysis,\n total_failures,\n failure_metadata\n FROM TABLE(github_actions.tf_failure_analysis_with_ai('{{ owner }}', '{{ repo }}', '{{ run_id }}', '{{ ai_provider }}', '{{ model_name }}', '{{ ai_prompt }}'))\n {% endset %}\n\n {%- set failure_results = run_query(failure_query) -%}\n {%- set failure_data = failure_results.rows[0] if failure_results.rows else [] -%}\n\n {%- if failure_data -%}\n {%- set total_failures = failure_data[2] -%}\n {%- set ai_analysis = failure_data[1] -%}\n {%- set failure_metadata = fromjson(failure_data[3]) if failure_data[3] else [] -%}\n {%- else -%}\n {%- set total_failures = 0 -%}\n {%- set ai_analysis = none -%}\n {%- set failure_metadata = [] -%}\n {%- endif -%}\n {%- else -%}\n {# Get basic failure data without AI #}\n {% set basic_query %}\n SELECT\n COUNT(*) as total_failures,\n MAX(workflow_name) as workflow_name,\n ARRAY_AGG(OBJECT_CONSTRUCT(\n 'workflow_name', workflow_name,\n 'job_name', job_name,\n 'job_id', job_id,\n 'job_url', job_url,\n 'logs_preview', ARRAY_TO_STRING(failed_step_logs, '\\n')\n )) as failure_metadata\n FROM TABLE(github_actions.tf_failed_jobs_with_logs('{{ owner }}', '{{ repo }}', '{{ run_id }}'))\n {% endset %}\n\n {%- set basic_results = run_query(basic_query) -%}\n {%- set basic_data = basic_results.rows[0] if basic_results.rows else [] -%}\n\n {%- if basic_data -%}\n {%- set total_failures = basic_data[0] -%}\n {%- set ai_analysis = none -%}\n {%- set failure_metadata = fromjson(basic_data[2]) if basic_data[2] else [] -%}\n {%- else -%}\n {%- set total_failures = 0 -%}\n {%- set ai_analysis = none -%}\n {%- set failure_metadata = [] -%}\n {%- endif -%}\n {%- endif -%}\n\n {# Extract workflow name #}\n {%- set workflow_name = failure_metadata[0].workflow_name if failure_metadata else repo -%}\n\n {# Build Slack message #}\n {%- if total_failures == 0 -%}\n {# Success message #}\n {%- set message_blocks = [\n {\n 'type': 'header',\n 'text': {'type': 'plain_text', 'text': '\u2705 ' ~ workflow_name ~ ' - Success'}\n },\n {\n 'type': 'section',\n 'fields': [\n {'type': 'mrkdwn', 'text': '*Run ID:* ' ~ run_id},\n {'type': 'mrkdwn', 'text': '*Workflow:* ' ~ workflow_name},\n {'type': 'mrkdwn', 'text': '*Status:* Success'}\n ]\n },\n {\n 'type': 'actions',\n 'elements': [{\n 'type': 'button',\n 'text': {'type': 'plain_text', 'text': 'View Workflow'},\n 'url': 'https://github.com/' ~ owner ~ '/' ~ repo ~ '/actions/runs/' ~ run_id,\n 'style': 'primary'\n }]\n }\n ] -%}\n\n {%- set message_payload = {\n 'text': '\u2705 GitHub Actions Success: ' ~ repo,\n 'attachments': [{\n 'color': '#36a64f',\n 'blocks': message_blocks\n }]\n } -%}\n\n {# Add customization for success messages at root level #}\n {%- if username and username != 'none' -%}\n {%- do message_payload.update({'username': username}) -%}\n {%- endif -%}\n {%- if icon_url and icon_url != 'none' and icon_url != '' -%}\n {%- do message_payload.update({'icon_url': icon_url}) -%}\n {%- elif icon_emoji and icon_emoji != 'none' -%}\n {%- do message_payload.update({'icon_emoji': icon_emoji}) -%}\n {%- endif -%}\n {%- else -%}\n {# Failure message #}\n {%- set message_blocks = [\n {\n 'type': 'header',\n 'text': {'type': 'plain_text', 'text': ':red_circle: ' ~ workflow_name ~ ' - Failed'}\n },\n {\n 'type': 'section',\n 'fields': [\n {'type': 'mrkdwn', 'text': '*Run ID:* ' ~ run_id},\n {'type': 'mrkdwn', 'text': '*Workflow:* ' ~ workflow_name},\n {'type': 'mrkdwn', 'text': '*Failed Jobs:* ' ~ total_failures}\n ]\n }\n ] -%}\n\n {# Add AI analysis if available #}\n {%- if enable_ai_analysis and ai_analysis -%}\n {%- do message_blocks.append({\n 'type': 'section',\n 'text': {\n 'type': 'mrkdwn',\n 'text': '*\ud83e\udd16 AI Analysis:*\\n' ~ ai_analysis[:2900]\n }\n }) -%}\n {%- endif -%}\n\n {# Add action button #}\n {%- do message_blocks.append({\n 'type': 'actions',\n 'elements': [{\n 'type': 'button',\n 'text': {'type': 'plain_text', 'text': 'View Workflow'},\n 'url': 'https://github.com/' ~ owner ~ '/' ~ repo ~ '/actions/runs/' ~ run_id,\n 'style': 'danger'\n }]\n }) -%}\n\n {%- set message_payload = {\n 'text': '\u274c GitHub Actions Failed: ' ~ repo,\n 'attachments': [{\n 'color': '#d63638',\n 'blocks': message_blocks\n }]\n } -%}\n\n {# Add customization for failure messages at root level #}\n {%- if username and username != 'none' -%}\n {%- do message_payload.update({'username': username}) -%}\n {%- endif -%}\n {%- if icon_url and icon_url != 'none' and icon_url != '' -%}\n {%- do message_payload.update({'icon_url': icon_url}) -%}\n {%- elif icon_emoji and icon_emoji != 'none' -%}\n {%- do message_payload.update({'icon_emoji': icon_emoji}) -%}\n {%- endif -%}\n {%- endif -%}\n\n {# Send message #}\n {%- if use_webhook -%}\n {% set send_query %}\n SELECT slack_utils.post_webhook('{{ webhook_secret_name }}', PARSE_JSON($${{ message_payload | tojson }}$$)) as result\n {% endset %}\n {%- else -%}\n {% set send_query %}\n SELECT slack.post_message('{{ slack_channel }}', PARSE_JSON($${{ message_payload | tojson }}$$), '{{ bot_secret_name }}') as result\n {% endset %}\n {%- endif -%}\n\n {%- set result = run_query(send_query) -%}\n {{ log(\"Main message sent successfully\", true) }}\n\n {# Handle threading for failures #}\n {%- if enable_auto_threading and total_failures > 0 and not use_webhook and slack_channel -%}\n {%- set main_response = fromjson(result.rows[0][0]) -%}\n {%- set main_thread_ts = main_response.ts or (main_response.data and main_response.data.ts) -%}\n\n {{ log(\"Starting threading with \" ~ failure_metadata|length ~ \" jobs\", true) }}\n\n {%- for job_meta in failure_metadata -%}\n {%- set job_name = job_meta.job_name -%}\n {%- set job_url = job_meta.job_url -%}\n {%- set logs_preview = job_meta.logs_preview -%}\n\n {# Post job summary in thread #}\n {%- set job_summary = {\n 'text': 'Job Details: ' ~ job_name,\n 'attachments': [{\n 'color': '#d63638',\n 'blocks': [\n {\n 'type': 'section',\n 'fields': [\n {'type': 'mrkdwn', 'text': '*Job:* ' ~ job_name},\n {'type': 'mrkdwn', 'text': '*Status:* failure'}\n ]\n },\n {\n 'type': 'actions',\n 'elements': [{\n 'type': 'button',\n 'text': {'type': 'plain_text', 'text': 'View Job'},\n 'url': job_url,\n 'style': 'danger'\n }]\n }\n ]\n }]\n } -%}\n\n {# Add customization to thread messages #}\n {%- if username and username != 'none' -%}\n {%- do job_summary.update({'username': username}) -%}\n {%- endif -%}\n {%- if icon_url and icon_url != 'none' and icon_url != '' -%}\n {%- do job_summary.update({'icon_url': icon_url}) -%}\n {%- elif icon_emoji and icon_emoji != 'none' -%}\n {%- do job_summary.update({'icon_emoji': icon_emoji}) -%}\n {%- endif -%}\n\n {% set job_thread_query %}\n SELECT slack.post_reply('{{ slack_channel }}', '{{ main_thread_ts }}', PARSE_JSON($${{ job_summary | tojson }}$$), '{{ bot_secret_name }}') as result\n {% endset %}\n\n {%- set job_result = run_query(job_thread_query) -%}\n\n {# Post logs as additional thread replies if available - split long logs #}\n {%- if logs_preview and logs_preview != '' -%}\n {%- set max_chunk_size = 2900 -%}\n {%- set log_chunks = [] -%}\n \n {# Split logs into chunks #}\n {%- for i in range(0, logs_preview|length, max_chunk_size) -%}\n {%- set chunk = logs_preview[i:i+max_chunk_size] -%}\n {%- do log_chunks.append(chunk) -%}\n {%- endfor -%}\n \n {# Send each chunk as a separate thread message #}\n {%- for chunk_idx in range(log_chunks|length) -%}\n {%- set chunk = log_chunks[chunk_idx] -%}\n {%- set chunk_header = '' -%}\n \n {# Add chunk header if multiple chunks #}\n {%- if log_chunks|length > 1 -%}\n {%- set chunk_header = '\ud83d\udccb Logs (' ~ (chunk_idx + 1) ~ '/' ~ log_chunks|length ~ '):\\n' -%}\n {%- else -%}\n {%- set chunk_header = '\ud83d\udccb Logs:\\n' -%}\n {%- endif -%}\n \n {%- set log_message = {'text': chunk_header ~ '```\\n' ~ chunk ~ '\\n```'} -%}\n\n {# Add customization to log thread messages #}\n {%- if username and username != 'none' -%}\n {%- do log_message.update({'username': username}) -%}\n {%- endif -%}\n {%- if icon_url and icon_url != 'none' and icon_url != '' -%}\n {%- do log_message.update({'icon_url': icon_url}) -%}\n {%- elif icon_emoji and icon_emoji != 'none' -%}\n {%- do log_message.update({'icon_emoji': icon_emoji}) -%}\n {%- endif -%}\n\n {% set log_thread_query %}\n SELECT slack.post_reply('{{ slack_channel }}', '{{ main_thread_ts }}', PARSE_JSON($${{ log_message | tojson }}$$), '{{ bot_secret_name }}') as result\n {% endset %}\n\n {%- set log_result = run_query(log_thread_query) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {{ log(\"Posted thread for job: \" ~ job_name, true) }}\n {%- endfor -%}\n\n {{ log(\"Threading completed for \" ~ failure_metadata|length ~ \" jobs\", true) }}\n {%- else -%}\n {{ log(\"Message sent: \" ~ result.rows[0][0] if result.rows else \"No response\", true) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.8288434, "supported_languages": null}, "macro.livequery_models.get_rendered_model": {"name": "get_rendered_model", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/utils/udf_utils/render.sql", "original_file_path": "macros/utils/udf_utils/render.sql", "unique_id": "macro.livequery_models.get_rendered_model", "macro_sql": "{% macro get_rendered_model(package_name, model_name, schema, blockchain, network) %}\n {# \n This macro retrieves and renders a specified model from the graph.\n\n Args:\n package_name (str): The name of the package containing the model.\n model_name (str): The name of the model to be rendered.\n schema (str): The schema to be used.\n blockchain (str): The blockchain to be used.\n network (str): The network to be used.\n\n Returns:\n str: The rendered SQL of the specified model.\n #}\n {% if execute %}\n {{ log(\"=== Starting get_rendered_model ===\", info=True) }}\n {# Use a list to store the node to avoid scope issues #}\n {%- set nodes = [] -%}\n {{ log(\"Looking for node: \" ~ package_name ~ \".\" ~ model_name, info=True) }}\n {%- for node in graph.nodes.values() -%}\n {%- if node.package_name == package_name and node.name == model_name -%}\n {{ log(\"Found target node: \" ~ node.unique_id, info=True) }}\n {%- do nodes.append(node) -%}\n {%- endif -%}\n {%- endfor -%}\n\n {%- if nodes | length == 0 -%}\n {{ log(\"No target node found!\", info=True) }}\n {{ return('') }}\n {%- endif -%}\n\n {%- set target_node = nodes[0] -%}\n {{ log(\"Processing node: \" ~ target_node.unique_id, info=True) }}\n {{ log(\"Dependencies:\\n\\t\\t\" ~ (target_node.depends_on.nodes | pprint).replace(\"\\n\", \"\\n\\t\\t\"), info=True) }}\n\n {# First render all dependency CTEs #}\n {%- set ctes = [] -%}\n {%- for dep_id in target_node.depends_on.nodes -%}\n {{ log(\"Processing dependency: \" ~ dep_id, info=True) }}\n {%- set dep_node = graph.nodes[dep_id] -%}\n\n {%- set rendered_sql = render(dep_node.raw_code) | trim -%}\n\n {%- if rendered_sql -%}\n {%- set cte_sql -%}\n__dbt__cte__{{ dep_node.name }} AS (\n {{ rendered_sql }}\n)\n {%- endset -%}\n {%- do ctes.append(cte_sql) -%}\n {%- endif -%}\n {%- endfor -%}\n\n {{ log(\"Number of CTEs generated: \" ~ ctes | length, info=True) }}\n\n {# Combine CTEs with main query #}\n {%- set final_sql -%}\nWITH {{ ctes | join(',\\n\\n') }}\n\n{{ render(target_node.raw_code) }}\n {%- endset -%}\n\n {{ log(\"=== End get_rendered_model ===\\n\\n\" , info=True) }}\n\n {{ return(final_sql) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.8340142, "supported_languages": null}, "macro.livequery_models.config_evm_rpc_primitives": {"name": "config_evm_rpc_primitives", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_primitives.yaml.sql", "original_file_path": "macros/evm/evm_primitives.yaml.sql", "unique_id": "macro.livequery_models.config_evm_rpc_primitives", "macro_sql": "{%- macro config_evm_rpc_primitives(blockchain, network) -%}\n{#-\n Generates a set of UDFs that call the Ethereum JSON RPC API\n\n - rpc: Executes an RPC call on the {{ blockchain }} blockchain\n - eth_call: Executes a new message call immediately without creating a transaction on the block chain\n - eth_getLogs: Returns an array of all logs matching filter with given address\n - eth_getBalance: Returns the balance of the account of given address\n\n -#}\n{% set schema = blockchain ~ \"_\" ~ network -%}\n\n- name: {{ schema -}}.udf_rpc\n signature:\n - [method, STRING, RPC method to call]\n - [parameters, VARIANT, Parameters to pass to the RPC method]\n return_type: [VARIANT, The return value of the RPC method]\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Executes an RPC call on the {{ blockchain }} blockchain.$$\n sql: |\n SELECT live.udf_rpc('{{ blockchain }}', '{{ network }}', method, parameters)\n\n- name: {{ schema -}}.udf_rpc_eth_call\n signature:\n - [transaction, OBJECT, The transaction object]\n - [block_or_tag, STRING, The block number or tag to execute the call on]\n return_type: [VARIANT, The return value of the executed contract code]\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Executes a new message call immediately without creating a transaction on the block chain.$$\n sql: |\n SELECT {{ schema -}}.udf_rpc('eth_call', [transaction, block_or_tag])\n\n- name: {{ schema -}}.udf_rpc_eth_get_logs\n signature:\n - [filter, OBJECT, The filter object]\n return_type: [VARIANT, An array of all logs matching filter with given address]\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns an array of all logs matching filter with given address.$$\n sql: |\n SELECT {{ schema -}}.udf_rpc('eth_getLogs', [filter])\n\n- name: {{ schema -}}.udf_rpc_eth_get_balance\n signature:\n - [address, STRING, The address to get the balance of]\n - [block_or_tag, STRING, The block number or tag to execute the call on]\n return_type: [VARIANT, The balance of the account of given address]\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the balance of the account of given address.$$\n sql: |\n SELECT {{ schema -}}.udf_rpc('eth_getBalance', [address, block_or_tag])\n\n- name: {{ schema -}}.udf_get_token_balance\n signature:\n - [wallet_address, STRING, The address to get the balance of]\n - [token_address, STRING, The token to get the balance of]\n return_type: [STRING, The balance of the account of given address]\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the balance of the wallet of given token address at the latest block.$$\n sql: |\n SELECT utils.udf_hex_to_int({{ schema -}}.udf_rpc_eth_call(object_construct_keep_null('from', null, 'to', token_address, 'data', concat('0x70a08231',LPAD(REPLACE(wallet_address, '0x', ''), 64, 0))),'latest')::string)\n\n- name: {{ schema -}}.udf_get_token_balance\n signature:\n - [wallet_address, STRING, The address to get the balance of]\n - [token_address, STRING, The token to get the balance of]\n - [block_number, INTEGER, The block number to retrieve the balance at]\n return_type: [STRING, The balance of the account of given address]\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the balance of the wallet of given token address at the given block.$$\n sql: |\n SELECT utils.udf_hex_to_int({{schema}}.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', concat('0x70a08231',LPAD(REPLACE(wallet_address, '0x', ''), 64, 0))), CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX'))))::STRING)\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.8372672, "supported_languages": null}, "macro.livequery_models.evm_live_view_latest_block_height": {"name": "evm_live_view_latest_block_height", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_latest_block_height", "macro_sql": "{% macro evm_live_view_latest_block_height(schema, blockchain, network) %}\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', []) as result,\n utils.udf_hex_to_int(result)::integer AS latest_block_height,\n COALESCE(\n block_height,\n latest_block_height\n ) AS min_height,\n iff(\n COALESCE(to_latest, false),\n latest_block_height,\n min_height\n ) AS max_height\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.950841, "supported_languages": null}, "macro.livequery_models.evm_live_view_target_blocks": {"name": "evm_live_view_target_blocks", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_target_blocks", "macro_sql": "{% macro evm_live_view_target_blocks(schema, blockchain, network, batch_size=10) %}\n WITH heights AS (\n {{ evm_live_view_latest_block_height(schema, blockchain, network) | indent(4) -}}\n ),\n block_spine AS (\n SELECT\n ROW_NUMBER() OVER (\n ORDER BY\n NULL\n ) - 1 + COALESCE(block_height, latest_block_height)::integer AS block_number,\n min_height,\n IFF(\n COALESCE(to_latest, false),\n block_height,\n min_height\n ) AS max_height,\n latest_block_height\n FROM\n TABLE(generator(ROWCOUNT => 1000)),\n heights qualify block_number BETWEEN min_height\n AND max_height\n )\n\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number) / {{ batch_size }}) AS batch_id,\n block_number,\n latest_block_height\n FROM block_spine\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_latest_block_height"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9514875, "supported_languages": null}, "macro.livequery_models.evm_batch_udf_api": {"name": "evm_batch_udf_api", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_batch_udf_api", "macro_sql": "{% macro evm_batch_udf_api(blockchain, network) %}\n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), '{{ blockchain }}', '{{ network }}')\n )::VARIANT:data::ARRAY AS data\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9518037, "supported_languages": null}, "macro.livequery_models.evm_live_view_bronze_blocks": {"name": "evm_live_view_bronze_blocks", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_bronze_blocks", "macro_sql": "{% macro evm_live_view_bronze_blocks(schema, blockchain, network, table_name) %}\nWITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockByNumber',\n [utils.udf_int_to_hex(block_number), true]\n )\n ) AS params\n FROM\n {{ table_name }}\n GROUP BY batch_id\n), result as (\n SELECT\n {{ evm_batch_udf_api(blockchain, network) }}\n FROM blocks_agg\n)\n, flattened as (\n SELECT\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n)\n\nSELECT\n utils.udf_hex_to_int(result:number::STRING)::INT AS block_number,\n result as data\nFROM flattened\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_batch_udf_api"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9523046, "supported_languages": null}, "macro.livequery_models.evm_live_view_bronze_receipts": {"name": "evm_live_view_bronze_receipts", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_bronze_receipts", "macro_sql": "{% macro evm_live_view_bronze_receipts(schema, blockchain, network, table_name) %}\nWITH blocks_agg AS (\n SELECT\n batch_id,\n latest_block_height,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockReceipts',\n [utils.udf_int_to_hex(block_number)]\n )\n ) AS params\n FROM\n {{ table_name }}\n GROUP BY 1,2\n),\n\nget_batch_result AS (\n SELECT\n latest_block_height,\n {{ evm_batch_udf_api(blockchain, network) }}\n FROM blocks_agg\n)\n\nSELECT\n latest_block_height,\n utils.udf_hex_to_int(w.value:blockNumber::STRING)::INT AS block_number,\n w.value AS DATA\nFROM\n (SELECT\n latest_block_height,\n v.value:result AS DATA\n FROM get_batch_result,\n LATERAL FLATTEN(data) v), LATERAL FLATTEN(data) w\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_batch_udf_api"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9527643, "supported_languages": null}, "macro.livequery_models.evm_live_view_bronze_logs": {"name": "evm_live_view_bronze_logs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_bronze_logs", "macro_sql": "{% macro evm_live_view_bronze_logs(table_name) %}\nSELECT\n r.block_number,\n v.value\nFROM\n {{ table_name }} AS r,\n lateral flatten(r.data:logs) v\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9530125, "supported_languages": null}, "macro.livequery_models.evm_live_view_bronze_transactions": {"name": "evm_live_view_bronze_transactions", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_bronze_transactions", "macro_sql": "{% macro evm_live_view_bronze_transactions(table_name) %}\nSELECT\n block_number,\n v.value as DATA\nFROM\n {{ table_name }} AS r,\n lateral flatten(r.data:transactions) v\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.953242, "supported_languages": null}, "macro.livequery_models.evm_live_view_bronze_traces": {"name": "evm_live_view_bronze_traces", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_bronze_traces", "macro_sql": "{% macro evm_live_view_bronze_traces(schema, blockchain, network, table_name)%}\nWITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'debug_traceBlockByNumber',\n [utils.udf_int_to_hex(s.block_number), {'tracer': 'callTracer'}],\n s.block_number -- to put block_number in the id to retrieve the block numberlater\n )\n ) AS params\n FROM\n {{ table_name }} s\n GROUP BY batch_id\n), result as (\n SELECT\n {{ evm_batch_udf_api(blockchain, network) }}\n FROM blocks_agg\n), flattened as (\n SELECT\n value:id::INT AS block_number,\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n)\n\nSELECT\n s.block_number,\n v.index::INT AS tx_position, -- mimic's streamline's logic to add tx_position\n v.value:result AS full_traces,\n SYSDATE() AS _inserted_timestamp\nFROM flattened s,\nLATERAL FLATTEN(input => result) v\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_batch_udf_api"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9536989, "supported_languages": null}, "macro.livequery_models.evm_live_view_bronze_token_balances": {"name": "evm_live_view_bronze_token_balances", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_bronze_token_balances", "macro_sql": "{% macro evm_live_view_bronze_token_balances(schema, blockchain, network, table_name) %}\nWITH block_spine AS (\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number, address, contract_address) / 10) AS batch_id,\n block_number,\n address,\n contract_address\n FROM\n {{ table_name }}\n),\nblocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_call',\n ARRAY_CONSTRUCT(\n OBJECT_CONSTRUCT(\n 'to',\n contract_address,\n 'data',\n CONCAT(\n '0x70a08231000000000000000000000000',\n SUBSTR(\n address,\n 3\n )\n )\n ),\n utils.udf_int_to_hex(block_number)\n ),\n CONCAT(\n block_number,\n '-',\n address,\n '-',\n contract_address\n )\n )\n ) AS params\n FROM\n block_spine\n GROUP BY batch_id\n), result as (\n SELECT\n {{ evm_batch_udf_api(blockchain, network) }}\n FROM blocks_agg\n)\n\nSELECT\n SPLIT(value:id::STRING, '-')[0]::INT AS block_number,\n SPLIT(value:id::STRING, '-')[1]::STRING AS address,\n SPLIT(value:id::STRING, '-')[2]::STRING AS contract_address,\n COALESCE(value:result, {'error':value:error}) AS DATA\nFROM result, LATERAL FLATTEN(input => result.data) v\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_batch_udf_api"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9542253, "supported_languages": null}, "macro.livequery_models.evm_live_view_bronze_eth_balances": {"name": "evm_live_view_bronze_eth_balances", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_bronze_eth_balances", "macro_sql": "{% macro evm_live_view_bronze_eth_balances(schema, blockchain, network, table_name) %}\nWITH block_spine AS (\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number, address) / 10) AS batch_id,\n block_number,\n address\n FROM\n {{ table_name }}\n),\nblocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBalance',\n ARRAY_CONSTRUCT(address, utils.udf_int_to_hex(block_number)),\n CONCAT(\n block_number,\n '-',\n address\n )\n )\n ) AS params\n FROM\n block_spine\n GROUP BY batch_id\n), result as (\n SELECT\n {{ evm_batch_udf_api(blockchain, network) }}\n FROM blocks_agg\n)\n\nSELECT\n SPLIT(value:id::STRING, '-')[0]::INT AS block_number,\n SPLIT(value:id::STRING, '-')[1]::STRING AS address,\n COALESCE(value:result, {'error':value:error}) AS DATA\nFROM result, LATERAL FLATTEN(input => result.data) v\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_batch_udf_api"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9546802, "supported_languages": null}, "macro.livequery_models.evm_live_view_silver_blocks": {"name": "evm_live_view_silver_blocks", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_silver_blocks", "macro_sql": "{% macro evm_live_view_silver_blocks(table_name) %}\nSELECT\n block_number,\n utils.udf_hex_to_int(DATA:timestamp::STRING)::TIMESTAMP AS block_timestamp,\n utils.udf_hex_to_int(DATA:baseFeePerGas::STRING)::INT AS base_fee_per_gas,\n utils.udf_hex_to_int(DATA:difficulty::STRING)::INT AS difficulty,\n DATA:extraData::STRING AS extra_data,\n utils.udf_hex_to_int(DATA:gasLimit::STRING)::INT AS gas_limit,\n utils.udf_hex_to_int(DATA:gasUsed::STRING)::INT AS gas_used,\n DATA:hash::STRING AS HASH,\n DATA:logsBloom::STRING AS logs_bloom,\n DATA:miner::STRING AS miner,\n utils.udf_hex_to_int(DATA:nonce::STRING)::INT AS nonce,\n utils.udf_hex_to_int(DATA:number::STRING)::INT AS NUMBER,\n DATA:parentHash::STRING AS parent_hash,\n DATA:receiptsRoot::STRING AS receipts_root,\n DATA:sha3Uncles::STRING AS sha3_uncles,\n utils.udf_hex_to_int(DATA:size::STRING)::INT AS SIZE,\n DATA:stateRoot::STRING AS state_root,\n utils.udf_hex_to_int(DATA:totalDifficulty::STRING)::INT AS total_difficulty,\n ARRAY_SIZE(DATA:transactions) AS tx_count,\n DATA:transactionsRoot::STRING AS transactions_root,\n DATA:uncles AS uncles,\n DATA:withdrawals AS withdrawals,\n DATA:withdrawalsRoot::STRING AS withdrawals_root,\n md5(\n CAST(\n COALESCE(\n CAST(block_number AS TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) AS TEXT\n )\n ) AS blocks_id,\n utils.udf_hex_to_int(DATA:blobGasUsed::STRING)::INT AS blob_gas_used,\n utils.udf_hex_to_int(DATA:excessBlobGas::STRING)::INT AS excess_blob_gas\nFROM\n {{ table_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9550426, "supported_languages": null}, "macro.livequery_models.evm_live_view_silver_receipts": {"name": "evm_live_view_silver_receipts", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_silver_receipts", "macro_sql": "{% macro evm_live_view_silver_receipts(table_name) %}\nSELECT\n latest_block_height,\n block_number,\n DATA :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(DATA :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(DATA :cumulativeGasUsed::STRING)::INT AS cumulative_gas_used,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT / pow(10, 9) AS effective_gas_price,\n DATA :from::STRING AS from_address,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS gas_used,\n DATA :logs AS logs,\n DATA :logsBloom::STRING AS logs_bloom,\n utils.udf_hex_to_int(DATA :status::STRING)::INT AS status,\n CASE\n WHEN status = 1 THEN TRUE\n ELSE FALSE\n END AS tx_success,\n CASE\n WHEN status = 1 THEN 'SUCCESS'\n ELSE 'FAIL'\n END AS tx_status,\n DATA :to::STRING AS to_address1,\n CASE\n WHEN to_address1 = '' THEN NULL\n ELSE to_address1\n END AS to_address,\n DATA :transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(DATA :transactionIndex::STRING)::INT AS POSITION,\n utils.udf_hex_to_int(DATA :type::STRING)::INT AS TYPE,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT AS blob_gas_price,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS blob_gas_used\nFROM\n {{ table_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9553633, "supported_languages": null}, "macro.livequery_models.evm_live_view_silver_logs": {"name": "evm_live_view_silver_logs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_silver_logs", "macro_sql": "{% macro evm_live_view_silver_logs(silver_receipts, silver_transactions) %}\nSELECT\n r.block_number,\n txs.block_timestamp,\n r.tx_hash,\n txs.origin_function_signature,\n r.from_address AS origin_from_address,\n r.to_address AS origin_to_address,\n utils.udf_hex_to_int(v.VALUE :logIndex::STRING)::INT AS event_index,\n v.VALUE :address::STRING AS contract_address,\n v.VALUE :blockHash::STRING AS block_hash,\n v.VALUE :data::STRING AS DATA,\n v.VALUE :removed::BOOLEAN AS event_removed,\n v.VALUE :topics AS topics,\n r.tx_status,\n CASE\n WHEN txs.block_timestamp IS NULL\n OR txs.origin_function_signature IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\nFROM\n {{ silver_receipts }} AS r\n LEFT JOIN {{ silver_transactions }} AS txs on txs.tx_hash = r.tx_hash,\n lateral flatten(r.logs) v\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9556983, "supported_languages": null}, "macro.livequery_models.evm_live_view_silver_transactions": {"name": "evm_live_view_silver_transactions", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_silver_transactions", "macro_sql": "{% macro evm_live_view_silver_transactions(bronze_transactions, silver_blocks, silver_receipts) %}\nSELECT\n A.block_number AS block_number,\n A.data :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(A.data :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(A.data :chainId::STRING)::INT AS chain_id,\n A.data :from::STRING AS from_address,\n utils.udf_hex_to_int(A.data :gas::STRING)::INT AS gas,\n utils.udf_hex_to_int(A.data :gasPrice::STRING)::INT / pow(10, 9) AS gas_price,\n A.data :hash::STRING AS tx_hash,\n A.data :input::STRING AS input_data,\n SUBSTR(input_data, 1, 10) AS origin_function_signature,\n utils.udf_hex_to_int(A.data :maxFeePerGas::STRING)::INT / pow(10, 9) AS max_fee_per_gas,\n utils.udf_hex_to_int(\n A.data :maxPriorityFeePerGas::STRING\n )::INT / pow(10, 9) AS max_priority_fee_per_gas,\n utils.udf_hex_to_int(A.data :nonce::STRING)::INT AS nonce,\n A.data :r::STRING AS r,\n A.data :s::STRING AS s,\n A.data :to::STRING AS to_address1,\n utils.udf_hex_to_int(A.data :transactionIndex::STRING)::INT AS POSITION,\n A.data :type::STRING AS TYPE,\n A.data :v::STRING AS v,\n utils.udf_hex_to_int(A.data :value::STRING) AS value_precise_raw,\n value_precise_raw * power(10, -18) AS value_precise,\n value_precise::FLOAT AS VALUE,\n A.data :accessList AS access_list,\n A.data,\n A.data: blobVersionedHashes::ARRAY AS blob_versioned_hashes,\n utils.udf_hex_to_int(A.data: maxFeePerGas::STRING)::INT AS max_fee_per_blob_gas,\n block_timestamp,\n CASE\n WHEN block_timestamp IS NULL\n OR tx_status IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\n r.gas_used,\n tx_success,\n tx_status,\n cumulative_gas_used,\n effective_gas_price,\n utils.udf_hex_to_int(A.data :gasPrice) * power(10, -18) * r.gas_used AS tx_fee_precise,\n COALESCE(tx_fee_precise::FLOAT, 0) AS tx_fee,\n r.type as tx_type,\n r.blob_gas_used,\n r.blob_gas_price,\nFROM\n {{ bronze_transactions }} AS A\n LEFT JOIN {{ silver_blocks }} AS b on b.block_number = A.block_number\n LEFT JOIN {{ silver_receipts }} AS r on r.tx_hash = A.data :hash::STRING\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.956234, "supported_languages": null}, "macro.livequery_models.evm_live_view_silver_traces": {"name": "evm_live_view_silver_traces", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_silver_traces", "macro_sql": "{% macro evm_live_view_silver_traces(raw_traces) %}\nflatten_traces AS (\n SELECT\n block_number,\n tx_position,\n IFF(\n path IN (\n 'result',\n 'result.value',\n 'result.type',\n 'result.to',\n 'result.input',\n 'result.gasUsed',\n 'result.gas',\n 'result.from',\n 'result.output',\n 'result.error',\n 'result.revertReason',\n 'gasUsed',\n 'gas',\n 'type',\n 'to',\n 'from',\n 'value',\n 'input',\n 'error',\n 'output',\n 'revertReason'\n ),\n 'ORIGIN',\n REGEXP_REPLACE(REGEXP_REPLACE(path, '[^0-9]+', '_'), '^_|_$', '')\n ) AS trace_address,\n _inserted_timestamp,\n OBJECT_AGG(\n key,\n VALUE\n ) AS trace_json,\n CASE\n WHEN trace_address = 'ORIGIN' THEN NULL\n WHEN POSITION(\n '_' IN trace_address\n ) = 0 THEN 'ORIGIN'\n ELSE REGEXP_REPLACE(\n trace_address,\n '_[0-9]+$',\n '',\n 1,\n 1\n )\n END AS parent_trace_address,\n SPLIT(\n trace_address,\n '_'\n ) AS str_array\n FROM\n {{ raw_traces }},\n TABLE(\n FLATTEN(\n input => PARSE_JSON(full_traces),\n recursive => TRUE\n )\n ) f\n WHERE\n f.index IS NULL\n AND f.key != 'calls'\n AND f.path != 'result'\n GROUP BY\n block_number,\n tx_position,\n trace_address,\n _inserted_timestamp\n),\nsub_traces AS (\n SELECT\n block_number,\n tx_position,\n parent_trace_address,\n COUNT(*) AS sub_traces\n FROM\n flatten_traces\n GROUP BY\n block_number,\n tx_position,\n parent_trace_address\n),\nnum_array AS (\n SELECT\n block_number,\n tx_position,\n trace_address,\n ARRAY_AGG(flat_value) AS num_array\n FROM\n (\n SELECT\n block_number,\n tx_position,\n trace_address,\n IFF(\n VALUE :: STRING = 'ORIGIN',\n -1,\n VALUE :: INT\n ) AS flat_value\n FROM\n flatten_traces,\n LATERAL FLATTEN (\n input => str_array\n )\n )\n GROUP BY\n block_number,\n tx_position,\n trace_address\n),\ncleaned_traces AS (\n SELECT\n b.block_number,\n b.tx_position,\n b.trace_address,\n IFNULL(\n sub_traces,\n 0\n ) AS sub_traces,\n num_array,\n ROW_NUMBER() over (\n PARTITION BY b.block_number,\n b.tx_position\n ORDER BY\n num_array ASC\n ) - 1 AS trace_index,\n trace_json,\n b._inserted_timestamp\n FROM\n flatten_traces b\n LEFT JOIN sub_traces s\n ON b.block_number = s.block_number\n AND b.tx_position = s.tx_position\n AND b.trace_address = s.parent_trace_address\n JOIN num_array n\n ON b.block_number = n.block_number\n AND b.tx_position = n.tx_position\n AND b.trace_address = n.trace_address\n),\nfinal_traces AS (\n SELECT\n tx_position,\n trace_index,\n block_number,\n trace_address,\n trace_json :error :: STRING AS error_reason,\n trace_json :from :: STRING AS from_address,\n trace_json :to :: STRING AS to_address,\n IFNULL(\n utils.udf_hex_to_int(\n trace_json :value :: STRING\n ),\n '0'\n ) AS eth_value_precise_raw,\n ethereum.utils.udf_decimal_adjust(\n eth_value_precise_raw,\n 18\n ) AS eth_value_precise,\n eth_value_precise :: FLOAT AS eth_value,\n utils.udf_hex_to_int(\n trace_json :gas :: STRING\n ) :: INT AS gas,\n utils.udf_hex_to_int(\n trace_json :gasUsed :: STRING\n ) :: INT AS gas_used,\n trace_json :input :: STRING AS input,\n trace_json :output :: STRING AS output,\n trace_json :type :: STRING AS TYPE,\n concat_ws(\n '_',\n TYPE,\n trace_address\n ) AS identifier,\n concat_ws(\n '-',\n block_number,\n tx_position,\n identifier\n ) AS _call_id,\n _inserted_timestamp,\n trace_json AS DATA,\n sub_traces\n FROM\n cleaned_traces\n),\nnew_records AS (\n SELECT\n f.block_number,\n t.tx_hash,\n t.block_timestamp,\n t.tx_status,\n f.tx_position,\n f.trace_index,\n f.from_address,\n f.to_address,\n f.eth_value_precise_raw,\n f.eth_value_precise,\n f.eth_value,\n f.gas,\n f.gas_used,\n f.input,\n f.output,\n f.type,\n f.identifier,\n f.sub_traces,\n f.error_reason,\n IFF(\n f.error_reason IS NULL,\n 'SUCCESS',\n 'FAIL'\n ) AS trace_status,\n f.data,\n IFF(\n t.tx_hash IS NULL\n OR t.block_timestamp IS NULL\n OR t.tx_status IS NULL,\n TRUE,\n FALSE\n ) AS is_pending,\n f._call_id,\n f._inserted_timestamp\n FROM\n final_traces f\n LEFT OUTER JOIN transactions t\n ON f.tx_position = t.position\n AND f.block_number = t.block_number\n),\ntraces_final AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n tx_status,\n tx_position,\n trace_index,\n from_address,\n to_address,\n eth_value_precise_raw,\n eth_value_precise,\n eth_value,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n identifier,\n sub_traces,\n error_reason,\n trace_status,\n DATA,\n is_pending,\n _call_id,\n _inserted_timestamp\n FROM\n new_records\n)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.957013, "supported_languages": null}, "macro.livequery_models.evm_live_view_silver_token_balances": {"name": "evm_live_view_silver_token_balances", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_silver_token_balances", "macro_sql": "{% macro evm_live_view_silver_token_balances(schema, blockchain, network) %}\nWITH silver_logs AS (\n SELECT\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 42)) AS address1,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 42)) AS address2,\n l.contract_address,\n l.block_timestamp,\n l.block_number\n FROM\n (\n {{ evm_live_view_fact_event_logs(schema, blockchain, network) | indent(4) -}}\n ) l\n WHERE\n (\n l.topics [0] :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n OR (\n l.topics [0] :: STRING = '0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65'\n AND l.contract_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n )\n OR (\n l.topics [0] :: STRING = '0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c'\n AND l.contract_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n )\n )\n),\n\ntransfers AS (\n SELECT\n DISTINCT block_number,\n block_timestamp,\n contract_address,\n address1 AS address\n FROM\n silver_logs\n WHERE\n address1 IS NOT NULL\n AND address1 <> '0x0000000000000000000000000000000000000000'\n UNION\n SELECT\n DISTINCT block_number,\n block_timestamp,\n contract_address,\n address2 AS address\n FROM\n silver_logs\n WHERE\n address2 IS NOT NULL\n AND address2 <> '0x0000000000000000000000000000000000000000'\n),\n\nbalances AS (\n {{ evm_live_view_bronze_token_balances(schema, blockchain, network, 'transfers') | indent(4) -}}\n)\n\nSELECT\n b.block_number,\n block_timestamp,\n address,\n contract_address,\n IFF(DATA :: STRING = '{}', NULL, DATA :: STRING) AS casted_data,\n CASE\n WHEN\n LENGTH(\n casted_data\n ) <= 4300\n AND casted_data IS NOT NULL THEN LEFT(casted_data, 66)\n ELSE NULL\n END\n AS hex_balance,\n TRY_TO_NUMBER(\n CASE\n WHEN LENGTH(\n hex_balance\n ) <= 4300\n AND hex_balance IS NOT NULL THEN utils.udf_hex_to_int(hex_balance)\n ELSE NULL\n END\n ) AS balance,\n SYSDATE() AS _inserted_timestamp,\n cast(\n coalesce(\n cast(block_number as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' ||\n coalesce(\n cast(address as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' ||\n coalesce(\n cast(contract_address as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n ) AS id,\n id AS token_balances_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM balances b\nLEFT JOIN (\n SELECT DISTINCT block_number, block_timestamp FROM transfers\n) USING (block_number)\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_fact_event_logs", "macro.livequery_models.evm_live_view_bronze_token_balances"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9580045, "supported_languages": null}, "macro.livequery_models.evm_live_view_silver_eth_balances": {"name": "evm_live_view_silver_eth_balances", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_silver_eth_balances", "macro_sql": "{% macro evm_live_view_silver_eth_balances(schema, blockchain, network) %}\nWITH silver_traces AS (\n SELECT\n block_timestamp,\n block_number,\n from_address,\n to_address\n FROM\n (\n {{ evm_live_view_fact_traces(schema, blockchain, network) | indent(4) -}}\n ) l\n WHERE\n VALUE > 0 -- VALUE is the amount of ETH transferred\n AND trace_status = 'SUCCESS'\n AND tx_status = 'SUCCESS'\n),\n\nstacked AS (\n SELECT\n DISTINCT block_number,\n block_timestamp,\n from_address AS address\n FROM\n silver_traces\n WHERE\n from_address IS NOT NULL\n AND from_address <> '0x0000000000000000000000000000000000000000'\n UNION\n SELECT\n DISTINCT block_number,\n block_timestamp,\n to_address AS address\n FROM\n silver_traces\n WHERE\n to_address IS NOT NULL\n AND to_address <> '0x0000000000000000000000000000000000000000'\n),\n\neth_balances AS (\n {{ evm_live_view_bronze_eth_balances(schema, blockchain, network, 'stacked') | indent(4) -}}\n)\n\nSELECT\n block_number,\n block_timestamp,\n address,\n IFF(DATA :: STRING = '{}', NULL, DATA :: STRING) AS casted_data,\n CASE\n WHEN casted_data IS NOT NULL THEN casted_data\n ELSE NULL\n END\n AS hex_balance,\n TRY_TO_NUMBER(\n CASE\n WHEN hex_balance IS NOT NULL THEN utils.udf_hex_to_int(hex_balance)\n ELSE NULL\n END\n ) AS balance,\n SYSDATE() AS _inserted_timestamp,\n cast(\n coalesce(\n cast(block_number as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' ||\n coalesce(\n cast(address as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n ) AS id,\n id AS eth_balances_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM eth_balances\nLEFT JOIN (\n SELECT DISTINCT block_number, block_timestamp FROM stacked\n) USING (block_number)\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_fact_traces", "macro.livequery_models.evm_live_view_bronze_eth_balances"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9587758, "supported_languages": null}, "macro.livequery_models.evm_live_view_fact_blocks": {"name": "evm_live_view_fact_blocks", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_fact_blocks", "macro_sql": "{% macro evm_live_view_fact_blocks(schema, blockchain, network) %}\nWITH spine AS (\n {{ evm_live_view_target_blocks(schema, blockchain, network) | indent(4) -}}\n ),\n raw_block_txs AS (\n {{ evm_live_view_bronze_blocks(schema, blockchain, network, 'spine') | indent(4) -}}\n ),\n silver_blocks AS (\n {{ evm_live_view_silver_blocks('raw_block_txs') | indent(4) -}}\n )\n select\n block_number,\n block_timestamp,\n '{{ network }}' AS network,\n '{{ blockchain }}' AS blockchain,\n tx_count,\n difficulty,\n total_difficulty,\n extra_data,\n gas_limit,\n gas_used,\n HASH,\n parent_hash,\n miner,\n nonce,\n receipts_root,\n sha3_uncles,\n SIZE,\n uncles AS uncle_blocks,\n OBJECT_CONSTRUCT(\n 'baseFeePerGas',\n base_fee_per_gas,\n 'difficulty',\n difficulty,\n 'extraData',\n extra_data,\n 'gasLimit',\n gas_limit,\n 'gasUsed',\n gas_used,\n 'hash',\n HASH,\n 'logsBloom',\n logs_bloom,\n 'miner',\n miner,\n 'nonce',\n nonce,\n 'number',\n NUMBER,\n 'parentHash',\n parent_hash,\n 'receiptsRoot',\n receipts_root,\n 'sha3Uncles',\n sha3_uncles,\n 'size',\n SIZE,\n 'stateRoot',\n state_root,\n 'timestamp',\n block_timestamp,\n 'totalDifficulty',\n total_difficulty,\n 'transactionsRoot',\n transactions_root,\n 'uncles',\n uncles,\n 'excessBlobGas',\n excess_blob_gas,\n 'blobGasUsed',\n blob_gas_used\n ) AS block_header_json,\n excess_blob_gas,\n blob_gas_used,\n block_number::STRING AS fact_blocks_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n withdrawals,\n withdrawals_root\n from silver_blocks\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_target_blocks", "macro.livequery_models.evm_live_view_bronze_blocks", "macro.livequery_models.evm_live_view_silver_blocks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.959758, "supported_languages": null}, "macro.livequery_models.evm_live_view_fact_event_logs": {"name": "evm_live_view_fact_event_logs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_fact_event_logs", "macro_sql": "{% macro evm_live_view_fact_event_logs(schema, blockchain, network) %}\nWITH spine AS (\n {{ evm_live_view_target_blocks(schema, blockchain, network, 5) | indent(4) -}}\n),\nraw_block_txs AS (\n {{ evm_live_view_bronze_blocks(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_receipts AS (\n {{ evm_live_view_bronze_receipts(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_logs AS (\n {{ evm_live_view_bronze_logs('raw_receipts') | indent(4) -}}\n),\nraw_transactions AS (\n {{ evm_live_view_bronze_transactions('raw_block_txs') | indent(4) -}}\n),\nblocks AS (\n {{ evm_live_view_silver_blocks('raw_block_txs') | indent(4) -}}\n),\nreceipts AS (\n {{ evm_live_view_silver_receipts('raw_receipts') | indent(4) -}}\n),\ntransactions AS (\n {{ evm_live_view_silver_transactions('raw_transactions', 'blocks', 'receipts') | indent(4) -}}\n),\nlogs AS (\n {{ evm_live_view_silver_logs('receipts', 'transactions') | indent(4) -}}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n topics,\n DATA,\n event_removed,\n tx_status,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' || coalesce(\n cast(event_index as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) AS fact_event_logs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM logs\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_target_blocks", "macro.livequery_models.evm_live_view_bronze_blocks", "macro.livequery_models.evm_live_view_bronze_receipts", "macro.livequery_models.evm_live_view_bronze_logs", "macro.livequery_models.evm_live_view_bronze_transactions", "macro.livequery_models.evm_live_view_silver_blocks", "macro.livequery_models.evm_live_view_silver_receipts", "macro.livequery_models.evm_live_view_silver_transactions", "macro.livequery_models.evm_live_view_silver_logs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9615672, "supported_languages": null}, "macro.livequery_models.evm_live_view_fact_decoded_event_logs": {"name": "evm_live_view_fact_decoded_event_logs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_fact_decoded_event_logs", "macro_sql": "{% macro evm_live_view_fact_decoded_event_logs(schema, blockchain, network) %}\nWITH _ez_decoded_event_logs AS (\n {{ evm_live_view_ez_decoded_event_logs(schema, blockchain, network) | indent(4) -}}\n)\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n event_name,\n decoded_log,\n full_decoded_log,\n fact_decoded_event_logs_id,\n inserted_timestamp,\n modified_timestamp\nFROM _ez_decoded_event_logs\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_ez_decoded_event_logs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9620268, "supported_languages": null}, "macro.livequery_models.evm_live_view_fact_transactions": {"name": "evm_live_view_fact_transactions", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_fact_transactions", "macro_sql": "{% macro evm_live_view_fact_transactions(schema, blockchain, network) %}\n\nWITH spine AS (\n {{ evm_live_view_target_blocks(schema, blockchain, network, 5) | indent(4) -}}\n),\nraw_receipts AS (\n {{ evm_live_view_bronze_receipts(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_block_txs AS (\n {{ evm_live_view_bronze_blocks(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_transactions AS (\n {{ evm_live_view_bronze_transactions('raw_block_txs') | indent(4) -}}\n),\nblocks AS (\n {{ evm_live_view_silver_blocks('raw_block_txs') | indent(4) -}}\n),\nreceipts AS (\n {{ evm_live_view_silver_receipts('raw_receipts') | indent(4) -}}\n),\ntransactions AS (\n {{ evm_live_view_silver_transactions('raw_transactions', 'blocks', 'receipts') | indent(4) -}}\n)\nSELECT\n block_number,\n block_timestamp,\n block_hash,\n tx_hash,\n nonce,\n POSITION,\n origin_function_signature,\n from_address,\n to_address1 as to_address,\n VALUE,\n value_precise_raw,\n value_precise::STRING as value_precise,\n tx_fee,\n tx_fee_precise::STRING as tx_fee_precise,\n gas_price,\n gas AS gas_limit,\n gas_used,\n cumulative_gas_used,\n input_data,\n tx_status AS status,\n effective_gas_price,\n max_fee_per_gas,\n max_priority_fee_per_gas,\n r,\n s,\n v,\n tx_type,\n chain_id,\n blob_versioned_hashes,\n max_fee_per_blob_gas,\n blob_gas_used,\n blob_gas_price,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) AS fact_transactions_id,\n SYSDATE() inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n transactions\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_target_blocks", "macro.livequery_models.evm_live_view_bronze_receipts", "macro.livequery_models.evm_live_view_bronze_blocks", "macro.livequery_models.evm_live_view_bronze_transactions", "macro.livequery_models.evm_live_view_silver_blocks", "macro.livequery_models.evm_live_view_silver_receipts", "macro.livequery_models.evm_live_view_silver_transactions"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.963538, "supported_languages": null}, "macro.livequery_models.evm_live_view_fact_traces": {"name": "evm_live_view_fact_traces", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_fact_traces", "macro_sql": "{% macro evm_live_view_fact_traces(schema, blockchain, network) %}\nWITH spine AS (\n {{ evm_live_view_target_blocks(schema, blockchain, network) | indent(4) -}}\n),\nraw_receipts AS (\n {{ evm_live_view_bronze_receipts(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_block_txs AS (\n {{ evm_live_view_bronze_blocks(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_transactions AS (\n {{ evm_live_view_bronze_transactions('raw_block_txs') | indent(4) -}}\n),\nblocks AS (\n {{ evm_live_view_silver_blocks('raw_block_txs') | indent(4) -}}\n),\nreceipts AS (\n {{ evm_live_view_silver_receipts('raw_receipts') | indent(4) -}}\n),\ntransactions AS (\n {{ evm_live_view_silver_transactions('raw_transactions', 'blocks', 'receipts') | indent(4) -}}\n),\nraw_traces AS (\n {{ evm_live_view_bronze_traces(schema, blockchain, network, 'spine') | indent(4) -}}\n),\n\n{{ evm_live_view_silver_traces('raw_traces') | indent(4) -}}\n\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n from_address,\n to_address,\n eth_value AS VALUE,\n eth_value_precise_raw AS value_precise_raw,\n eth_value_precise AS value_precise,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n identifier,\n DATA,\n tx_status,\n sub_traces,\n trace_status,\n error_reason,\n trace_index,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' || coalesce(\n cast(trace_index as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) as fact_traces_id,\n COALESCE(\n _inserted_timestamp,\n '2000-01-01'\n ) AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM traces_final\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_target_blocks", "macro.livequery_models.evm_live_view_bronze_receipts", "macro.livequery_models.evm_live_view_bronze_blocks", "macro.livequery_models.evm_live_view_bronze_transactions", "macro.livequery_models.evm_live_view_silver_blocks", "macro.livequery_models.evm_live_view_silver_receipts", "macro.livequery_models.evm_live_view_silver_transactions", "macro.livequery_models.evm_live_view_bronze_traces", "macro.livequery_models.evm_live_view_silver_traces"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.965372, "supported_languages": null}, "macro.livequery_models.evm_live_view_fact_decoded_traces": {"name": "evm_live_view_fact_decoded_traces", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_fact_decoded_traces", "macro_sql": "{% macro evm_live_view_fact_decoded_traces(schema, blockchain, network) %}\nWITH spine AS (\n {{ evm_live_view_target_blocks(schema, blockchain, network, 5) | indent(4) -}}\n),\nraw_receipts AS (\n {{ evm_live_view_bronze_receipts(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_block_txs AS (\n {{ evm_live_view_bronze_blocks(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_transactions AS (\n {{ evm_live_view_bronze_transactions('raw_block_txs') | indent(4) -}}\n),\nblocks AS (\n {{ evm_live_view_silver_blocks('raw_block_txs') | indent(4) -}}\n),\nreceipts AS (\n {{ evm_live_view_silver_receipts('raw_receipts') | indent(4) -}}\n),\ntransactions AS (\n {{ evm_live_view_silver_transactions('raw_transactions', 'blocks', 'receipts') | indent(4) -}}\n),\nraw_traces AS (\n {{ evm_live_view_bronze_traces(schema, blockchain, network, 'spine') | indent(4) -}}\n),\n\n{{ evm_live_view_silver_traces('raw_traces') | indent(4) -}}\n,\n\ndecoded_traces AS (\n SELECT\n t.block_number,\n t.tx_hash,\n t.block_timestamp,\n t.tx_status,\n t.tx_position,\n t.trace_index,\n t.from_address,\n t.to_address,\n t.eth_value AS VALUE,\n t.eth_value_precise_raw AS value_precise_raw,\n t.eth_value_precise AS value_precise,\n t.gas,\n t.gas_used,\n t.TYPE AS TYPE,\n t.identifier,\n t.sub_traces,\n t.error_reason,\n t.trace_status,\n A.abi AS abi,\n A.function_name AS function_name,\n CASE\n WHEN TYPE = 'DELEGATECALL' THEN from_address\n ELSE to_address\n END AS abi_address,\n t.input AS input,\n COALESCE(\n t.output,\n '0x'\n ) AS output,\n OBJECT_CONSTRUCT('input', input, 'output', output, 'function_name', function_name) AS function_data,\n utils.udf_evm_decode_trace(abi, function_data)[0] AS decoded_data\n FROM traces_final t\n INNER JOIN {{ blockchain }}.SILVER.COMPLETE_FUNCTION_ABIS A\n ON A.parent_contract_address = abi_address\n AND LEFT(\n t.input,\n 10\n ) = LEFT(\n A.function_signature,\n 10\n )\n AND t.block_number BETWEEN A.start_block\n AND A.end_block\n AND t.block_number IS NOT NULL\n\n)\n\nSELECT\n block_number,\n tx_hash,\n block_timestamp,\n tx_status,\n tx_position,\n trace_index,\n from_address,\n to_address,\n VALUE,\n value_precise_raw,\n value_precise,\n gas,\n gas_used,\n TYPE,\n identifier,\n sub_traces,\n error_reason,\n trace_status,\n input,\n output,\n decoded_data :function_name :: STRING AS function_name,\n decoded_data :decoded_input_data AS decoded_input_data,\n decoded_data :decoded_output_data AS decoded_output_data,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' || coalesce(\n cast(trace_index as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) AS fact_decoded_traces_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM decoded_traces\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_target_blocks", "macro.livequery_models.evm_live_view_bronze_receipts", "macro.livequery_models.evm_live_view_bronze_blocks", "macro.livequery_models.evm_live_view_bronze_transactions", "macro.livequery_models.evm_live_view_silver_blocks", "macro.livequery_models.evm_live_view_silver_receipts", "macro.livequery_models.evm_live_view_silver_transactions", "macro.livequery_models.evm_live_view_bronze_traces", "macro.livequery_models.evm_live_view_silver_traces"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9673922, "supported_languages": null}, "macro.livequery_models.evm_live_view_fact_token_balances": {"name": "evm_live_view_fact_token_balances", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_fact_token_balances", "macro_sql": "{% macro evm_live_view_fact_token_balances(schema, blockchain, network) %}\nWITH silver_token_balances AS (\n {{ evm_live_view_silver_token_balances(schema, blockchain, network) | indent(4) -}}\n)\n\nSELECT\n block_number,\n block_timestamp,\n address AS user_address,\n contract_address,\n balance,\n token_balances_id AS fact_token_balances_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n silver_token_balances\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_silver_token_balances"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9678276, "supported_languages": null}, "macro.livequery_models.evm_live_view_fact_eth_balances": {"name": "evm_live_view_fact_eth_balances", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_fact_eth_balances", "macro_sql": "{% macro evm_live_view_fact_eth_balances(schema, blockchain, network) %}\nWITH silver_eth_balances AS (\n {{ evm_live_view_silver_eth_balances(schema, blockchain, network) | indent(4) -}}\n)\n\nSELECT\n block_number,\n block_timestamp,\n address AS user_address,\n balance,\n eth_balances_id AS fact_eth_balances_id,\n inserted_timestamp,\n modified_timestamp\nFROM silver_eth_balances\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_silver_eth_balances"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9682693, "supported_languages": null}, "macro.livequery_models.evm_live_view_ez_decoded_event_logs": {"name": "evm_live_view_ez_decoded_event_logs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_ez_decoded_event_logs", "macro_sql": "{% macro evm_live_view_ez_decoded_event_logs(schema, blockchain, network) %}\nWITH _fact_event_logs AS (\n {{ evm_live_view_fact_event_logs(schema, blockchain, network) | indent(4) -}}\n),\n\n_silver_decoded_logs AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n topics,\n DATA,\n contract_address,\n OBJECT_CONSTRUCT('topics', topics, 'data', data, 'address', contract_address) AS event_data,\n abi,\n utils.udf_evm_decode_log(abi, event_data)[0] AS decoded_data,\n event_removed,\n decoded_data:name::string AS event_name,\n {{ blockchain }}.utils.udf_transform_logs(decoded_data) AS transformed,\n _log_id,\n inserted_timestamp,\n tx_status\n FROM\n _fact_event_logs\n JOIN\n {{ blockchain }}.core.dim_contract_abis\n USING\n (contract_address)\n WHERE\n tx_status = 'SUCCESS'\n),\n\n_flatten_logs AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.decoded_data,\n b.transformed,\n b._log_id,\n b.inserted_timestamp,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value :name = '' THEN CONCAT(\n 'anonymous_',\n v.index\n )\n ELSE v.value :name\n END,\n v.value :value\n ) AS decoded_flat\n FROM\n _silver_decoded_logs b,\n LATERAL FLATTEN(\n input => b.transformed :data\n ) v\n GROUP BY\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.decoded_data,\n b.transformed,\n b._log_id,\n b.inserted_timestamp\n)\n\nSELECT\n block_number,\n C.block_timestamp,\n B.tx_hash,\n B.event_index,\n B.contract_address,\n D.name AS contract_name,\n B.event_name,\n B.decoded_flat AS decoded_log,\n B.decoded_data AS full_decoded_log,\n C.origin_function_signature,\n C.origin_from_address,\n C.origin_to_address,\n C.topics,\n C.DATA,\n C.event_removed,\n C.tx_status,\n md5(_log_id) AS fact_decoded_event_logs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM _flatten_logs AS B\nLEFT JOIN _silver_decoded_logs AS C USING (block_number, _log_id)\nLEFT JOIN {{ blockchain }}.core.dim_contracts AS D\n ON B.contract_address = D.address\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_fact_event_logs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.969029, "supported_languages": null}, "macro.livequery_models.evm_live_view_ez_token_transfers": {"name": "evm_live_view_ez_token_transfers", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_ez_token_transfers", "macro_sql": "{% macro evm_live_view_ez_token_transfers(schema, blockchain, network) %}\nWITH fact_logs AS (\n {{ evm_live_view_fact_event_logs(schema, blockchain, network) | indent(4) -}}\n)\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address::STRING AS contract_address,\n CONCAT('0x', SUBSTR(topics [1], 27, 40))::STRING AS from_address,\n CONCAT('0x', SUBSTR(topics [2], 27, 40))::STRING AS to_address,\n utils.udf_hex_to_int(SUBSTR(DATA, 3, 64)) AS raw_amount_precise,\n raw_amount_precise::FLOAT AS raw_amount,\n IFF(\n C.decimals IS NOT NULL,\n raw_amount_precise * power(10, C.decimals * -1),\n NULL\n ) AS amount_precise,\n amount_precise::FLOAT AS amount,\n IFF(\n C.decimals IS NOT NULL\n AND price IS NOT NULL,\n amount * price,\n NULL\n ) AS amount_usd,\n C.decimals AS decimals,\n C.symbol AS symbol,\n price AS token_price,\n CASE\n WHEN C.decimals IS NULL THEN 'false'\n ELSE 'true'\n END AS has_decimal,\n CASE\n WHEN price IS NULL THEN 'false'\n ELSE 'true'\n END AS has_price,\n _log_id,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' || coalesce(\n cast(event_index as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) as ez_token_transfers_id,\n SYSDATE() AS _inserted_timestamp,\n sysdate() as inserted_timestamp,\n sysdate() as modified_timestamp\nFROM\n fact_logs l\n LEFT JOIN {{ blockchain }}.price.EZ_PRICES_HOURLY p ON l.contract_address = p.token_address\n AND DATE_TRUNC('hour', l.block_timestamp) = HOUR\n LEFT JOIN {{ blockchain }}.core.DIM_CONTRACTS C ON l.contract_address = C.address\nWHERE\n topics [0]::STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND tx_status = 'SUCCESS'\n and raw_amount IS NOT NULL\n AND to_address IS NOT NULL\nAND from_address IS NOT NULL\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_fact_event_logs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.969667, "supported_languages": null}, "macro.livequery_models.evm_live_view_ez_native_transfers": {"name": "evm_live_view_ez_native_transfers", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_ez_native_transfers", "macro_sql": "{% macro evm_live_view_ez_native_transfers(schema, blockchain, network) %}\nWITH spine AS (\n {{ evm_live_view_target_blocks(schema, blockchain, network) | indent(4) -}}\n),\nraw_receipts AS (\n {{ evm_live_view_bronze_receipts(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_block_txs AS (\n {{ evm_live_view_bronze_blocks(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_transactions AS (\n {{ evm_live_view_bronze_transactions('raw_block_txs') | indent(4) -}}\n),\nblocks AS (\n {{ evm_live_view_silver_blocks('raw_block_txs') | indent(4) -}}\n),\nreceipts AS (\n {{ evm_live_view_silver_receipts('raw_receipts') | indent(4) -}}\n),\ntransactions AS (\n {{ evm_live_view_silver_transactions('raw_transactions', 'blocks', 'receipts') | indent(4) -}}\n),\nraw_traces AS (\n {{ evm_live_view_bronze_traces(schema, blockchain, network, 'spine') | indent(4) -}}\n),\n{{ evm_live_view_silver_traces('raw_traces') | indent(4) -}}\n,\neth_base AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n identifier,\n from_address,\n to_address,\n eth_value AS amount,\n _call_id,\n _inserted_timestamp,\n eth_value_precise_raw AS amount_precise_raw,\n eth_value_precise AS amount_precise,\n tx_position,\n trace_index\n FROM\n traces_final\n WHERE\n eth_value > 0\n AND tx_status = 'SUCCESS'\n AND trace_status = 'SUCCESS'\n AND TYPE NOT IN (\n 'DELEGATECALL',\n 'STATICCALL'\n )\n),\ntx_table AS (\n SELECT\n block_number,\n tx_hash,\n from_address AS origin_from_address,\n to_address1 AS origin_to_address,\n origin_function_signature\n FROM\n transactions\n WHERE\n tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n eth_base\n )\n),\nnative_transfers AS (\n SELECT\n e.tx_hash,\n e.block_number,\n e.block_timestamp,\n e.identifier,\n t.origin_from_address,\n t.origin_to_address,\n t.origin_function_signature,\n e.from_address,\n e.to_address,\n e.amount,\n e.amount_precise_raw,\n e.amount_precise,\n ROUND(\n e.amount * p.price,\n 2\n ) AS amount_usd,\n e._call_id,\n e._inserted_timestamp,\n e.tx_position,\n e.trace_index,\n md5(\n cast(\n coalesce(cast(e.tx_hash as TEXT), '_dbt_utils_surrogate_key_null_')\n || '-' || coalesce(cast(e.trace_index as TEXT), '_dbt_utils_surrogate_key_null_')\n as TEXT\n )\n ) as native_transfers_id,\n SYSDATE() as inserted_timestamp,\n SYSDATE() as modified_timestamp\n FROM\n eth_base e\n JOIN tx_table t ON e.tx_hash = t.tx_hash AND e.block_number = t.block_number\n LEFT JOIN {{ blockchain }}.PRICE.EZ_PRICES_HOURLY p\n ON DATE_TRUNC('hour', e.block_timestamp) = p.HOUR\n AND p.token_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' -- WETH address\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n tx_position,\n trace_index,\n identifier AS trace_type,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n from_address AS trace_from_address,\n to_address AS trace_to_address,\n amount,\n amount_precise_raw,\n amount_precise,\n amount_usd,\n COALESCE(\n native_transfers_id,\n md5(\n cast(\n coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_')\n || '-' || coalesce(cast(trace_index as TEXT), '_dbt_utils_surrogate_key_null_')\n as TEXT\n )\n )\n ) AS ez_native_transfers_id,\n COALESCE(\n inserted_timestamp,\n '2000-01-01'\n ) AS inserted_timestamp,\n COALESCE(\n modified_timestamp,\n '2000-01-01'\n ) AS modified_timestamp\nFROM\n native_transfers\nQUALIFY (ROW_NUMBER() OVER (\n PARTITION BY block_number, tx_position, trace_index\n ORDER BY _inserted_timestamp DESC\n)) = 1\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_target_blocks", "macro.livequery_models.evm_live_view_bronze_receipts", "macro.livequery_models.evm_live_view_bronze_blocks", "macro.livequery_models.evm_live_view_bronze_transactions", "macro.livequery_models.evm_live_view_silver_blocks", "macro.livequery_models.evm_live_view_silver_receipts", "macro.livequery_models.evm_live_view_silver_transactions", "macro.livequery_models.evm_live_view_bronze_traces", "macro.livequery_models.evm_live_view_silver_traces"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018290.9717302, "supported_languages": null}, "macro.livequery_models.config_evm_high_level_abstractions": {"name": "config_evm_high_level_abstractions", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm.yaml.sql", "original_file_path": "macros/evm/evm.yaml.sql", "unique_id": "macro.livequery_models.config_evm_high_level_abstractions", "macro_sql": "{% macro config_evm_high_level_abstractions(blockchain, network) -%}\n{#\n This macro is used to generate the high level abstractions for an EVM\n blockchain.\n #}\n{% set schema = blockchain ~ \"_\" ~ network %}\n- name: {{ schema -}}.tf_latest_native_balance\n signature:\n - [wallet, STRING, The address to get the balance of at the latest block]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, symbol STRING, raw_balance STRING, balance FLOAT)\"\n - |\n The table has the following columns:\n * `blockchain` - The blockchain\n * `network` - The network\n * `wallet_address` - The wallet address\n * `symbol` - The symbol of the native asset\n * `raw_balance` - The unadjusted native asset balance\n * `balance` - The adjusted native asset balance\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the native asset balance at the latest block for a given address.$$\n sql: |\n {{ evm_latest_native_balance_string(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_native_balance\n signature:\n - [wallets, ARRAY, An array of addresses string to get the balance of at the latest block]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, symbol STRING, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the native asset balances at the latest block for given addresses.$$\n sql: |\n {{ evm_latest_native_balance_array(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_token_balance\n signature:\n - [wallet, STRING, The address to get the balance of at the latest block]\n - [token, STRING, The address of the token to get the balance of]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balance at the latest block for a given address and token address. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_latest_token_balance_ss(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_token_balance\n signature:\n - [wallet, STRING, The address to get the balance of at the latest block]\n - [tokens, ARRAY, An array of address strings of the tokens to get the balance of]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances at the latest block for a given address and multiple token addresses. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_latest_token_balance_sa(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_token_balance\n signature:\n - [wallets, ARRAY, An array of addresses string to get the balance of at the latest block]\n - [token, STRING, The address of the token to get the balance of]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances at the latest block for multiple addresses and a single token address. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_latest_token_balance_as(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_token_balance\n signature:\n - [wallets, ARRAY, An array of addresses string to get the balance of at the latest block]\n - [tokens, ARRAY, An array of address strings of the tokens to get the balance of]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances at the latest block for multiple addresses and multiple token addresses. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_latest_token_balance_aa(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_token_balance\n signature:\n - [wallet, STRING, The address to get the balance of at the input block]\n - [token, STRING, The address of the token to get the balance of]\n - [block_number, INTEGER, The block number to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balance for a given address and token address at a specific block. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_historical_token_balance_ssi(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_token_balance\n signature:\n - [wallet, STRING, The address to get the balance of at the input block]\n - [token, STRING, The address of the token to get the balance of]\n - [block_numbers, ARRAY, The block numbers to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances for a given address and token address at multiple specific blocks. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_historical_token_balance_ssa(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_token_balance\n signature:\n - [wallets, ARRAY, The addresses to get the balance of at the input block]\n - [token, STRING, The address of the token to get the balance of]\n - [block_number, INTEGER, The block number to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances for multiple addresses and a given token addresses at a specific block. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_historical_token_balance_asi(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_token_balance\n signature:\n - [wallet, STRING, The address to get the balance of at the input block]\n - [tokens, ARRAY, An array of address strings of the tokens to get the balance of]\n - [block_number, INTEGER, The block number to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances for a given address and multiple token addresses at a specific block. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_historical_token_balance_sai(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_token_balance\n signature:\n - [wallet, STRING, The address to get the balance of at the input block]\n - [tokens, ARRAY, An array of address strings of the tokens to get the balance of]\n - [block_numbers, ARRAY, The block numbers to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances for a given address and multiple token addresses at multiple specific blocks. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_historical_token_balance_saa(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_token_balance\n signature:\n - [wallets, ARRAY, An array of address strings to get the balance of at the input block]\n - [tokens, ARRAY, An array of address strings of the tokens to get the balance of]\n - [block_number, INTEGER, The block number to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances for multiple addresses and multiple token addresses at a specific block. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_historical_token_balance_aai(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_token_balance\n signature:\n - [wallets, ARRAY, An array of address strings to get the balance of at the input block]\n - [tokens, ARRAY, An array of address strings of the tokens to get the balance of]\n - [block_numbers, ARRAY, The block numbers to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances for multiple addresses and multiple token addresses at multiple specific blocks. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_historical_token_balance_aaa(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_native_balance\n signature:\n - [wallet, STRING, The address to get the balance of at the input block]\n - [block_number, INTEGER, The block number to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the native asset balance for a given address at a specific block.$$\n sql: |\n {{ evm_historical_native_balance_si(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_native_balance\n signature:\n - [wallet, STRING, The address to get the balance of at the input block]\n - [block_numbers, ARRAY, The block numbers to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the native asset balances for a given address at multiple specific blocks.$$\n sql: |\n {{ evm_historical_native_balance_sa(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_native_balance\n signature:\n - [wallets, ARRAY, An array of address strings to get the balance of at the input block]\n - [block_number, INTEGER, The block number to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the native asset balances for multiple addresses at a specific block.$$\n sql: |\n {{ evm_historical_native_balance_ai(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_native_balance\n signature:\n - [wallets, ARRAY, An array of address strings to get the balance of at the input block]\n - [block_numbers, ARRAY, The block numbers to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the native asset balances for multiple addresses at multiple specific blocks.$$\n sql: |\n {{ evm_historical_native_balance_aa(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_contract_events\n signature:\n - [address, STRING, The address of the contract to get the events of]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, contract_address STRING, event_topics ARRAY, event_data STRING)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the latest events emitted by a contract in the last 100 blocks.$$\n sql: |\n {{ evm_latest_contract_events_s(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_contract_events\n signature:\n - [address, STRING, The address of the contract to get the events of]\n - [lookback, INTEGER, The number of blocks to look back. Please note there are RPC limitations on this method.]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, contract_address STRING, event_topics ARRAY, event_data STRING)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the latest events emitted by a contract within the last `lookback` blocks. *Please note there are RPC limitations on this method.*$$\n sql: |\n {{ evm_latest_contract_events_si(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_contract_events\n signature:\n - [addresses, ARRAY, The addresses of the contracts to get the events of]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, contract_address STRING, event_topics ARRAY, event_data STRING)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the latest events emitted by multiple contracts in the last 100 blocks.$$\n sql: |\n {{ evm_latest_contract_events_a(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_contract_events\n signature:\n - [addresses, ARRAY, The addresses of the contracts to get the events of]\n - [lookback, INTEGER, The number of blocks to look back. Please note there are RPC limitations on this method.]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, contract_address STRING, event_topics ARRAY, event_data STRING)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the latest events emitted by multiple contracts within the last `lookback` blocks. *Please note there are RPC limitations on this method.*$$\n sql: |\n {{ evm_latest_contract_events_ai(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_contract_events_decoded\n signature:\n - [address, STRING, The address of the contract to get the decoded events of]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, event_name STRING, contract_address STRING, event_topics ARRAY, event_data STRING, decoded_data OBJECT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$RReturns the latest decoded events emitted by a contract in the last 100 blocks. Submit missing ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/).$$\n sql: |\n {{ evm_latest_contract_events_decoded_s(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_contract_events_decoded\n signature:\n - [addresses, ARRAY, The addresses of the contracts to get the decoded events of]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, event_name STRING, contract_address STRING, event_topics ARRAY, event_data STRING, decoded_data OBJECT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the latest decoded events emitted by multiple contracts in the last 100 blocks. Submit missing ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/).$$\n sql: |\n {{ evm_latest_contract_events_decoded_a(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_contract_events_decoded\n signature:\n - [address, STRING, The address of the contract to get the decoded events of]\n - [lookback, INTEGER, The number of blocks to look back. Please note there are RPC limitations on this method.]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, event_name STRING, contract_address STRING, event_topics ARRAY, event_data STRING, decoded_data OBJECT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the latest decoded events emitted by a contract within the last `lookback` blocks. Submit missing ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/). *Please note there are RPC limitations on this method.*$$\n sql: |\n {{ evm_latest_contract_events_decoded_si(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_contract_events_decoded\n signature:\n - [addresses, ARRAY, The addresses of the contracts to get the decoded events of]\n - [lookback, INTEGER, The number of blocks to look back. Please note there are RPC limitations on this method.]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, event_name STRING, contract_address STRING, event_topics ARRAY, event_data STRING, decoded_data OBJECT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the latest decoded events emitted by multiple contracts within the last `lookback` blocks. Submit missing ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/). *Please note there are RPC limitations on this method.* $$\n sql: |\n {{ evm_latest_contract_events_decoded_ai(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_fact_blocks\n signature:\n - [block_height, INTEGER, The start block height to get the blocks from]\n - [to_latest, BOOLEAN, Whether to continue fetching blocks until the latest block or not]\n return_type:\n - \"TABLE(block_number INTEGER, block_timestamp TIMESTAMP_NTZ, network STRING, blockchain STRING, tx_count INTEGER, difficulty INTEGER, total_difficulty INTEGER, extra_data STRING, gas_limit INTEGER, gas_used INTEGER, hash STRING, parent_hash STRING, miner STRING, nonce INTEGER, receipts_root STRING, sha3_uncles STRING, size INTEGER, uncle_blocks VARIANT, block_header_json OBJECT, excess_blob_gas INTEGER, blob_gas_used INTEGER, fact_blocks_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ, withdrawals VARIANT, withdrawals_root STRING)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the block data for a given block height. If to_latest is true, it will continue fetching blocks until the latest block. Otherwise, it will fetch blocks until the block height is reached.$$\n sql: |\n {{ evm_live_view_fact_blocks(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_fact_event_logs\n signature:\n - [block_height, INTEGER, The start block height to get the logs from]\n - [to_latest, BOOLEAN, Whether to continue fetching logs until the latest block or not]\n return_type:\n - \"TABLE(block_number INTEGER, block_timestamp TIMESTAMP_NTZ, tx_hash STRING, origin_function_signature STRING, origin_from_address STRING, origin_to_address STRING, event_index INTEGER, contract_address STRING, topics VARIANT, data STRING, event_removed BOOLEAN, tx_status STRING, _log_id STRING, fact_event_logs_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the logs for a given block height. If to_latest is true, it will continue fetching logs until the latest block. Otherwise, it will fetch logs until the block height is reached.$$\n sql: |\n {{ evm_live_view_fact_event_logs(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_fact_decoded_event_logs\n signature:\n - [block_height, INTEGER, The start block height to get the logs from]\n - [to_latest, BOOLEAN, Whether to continue fetching logs until the latest block or not]\n return_type:\n - \"TABLE(block_number INTEGER, block_timestamp TIMESTAMP_NTZ, tx_hash STRING, event_index INTEGER, contract_address STRING, event_name STRING, decoded_log OBJECT, full_decoded_log VARIANT, fact_decoded_event_logs_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the decoded event logs data for a given block height. If to_latest is true, it will continue fetching blocks until the latest block. Otherwise, it will fetch blocks until the block height is reached.$$\n sql: |\n {{ evm_live_view_fact_decoded_event_logs(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_fact_decoded_traces\n signature:\n - [block_height, INTEGER, The start block height to get the logs from]\n - [to_latest, BOOLEAN, Whether to continue fetching logs until the latest block or not]\n return_type:\n - \"TABLE(block_number INTEGER, tx_hash STRING, block_timestamp TIMESTAMP_NTZ, tx_status STRING, tx_position INTEGER, trace_index INTEGER, from_address STRING, to_address STRING, VALUE FLOAT, value_precise_raw STRING, value_precise STRING, gas INTEGER, gas_used INTEGER, TYPE STRING, identifier STRING, sub_traces INTEGER, error_reason STRING, trace_status STRING, input STRING, output STRING, function_name STRING, decoded_input_data VARIANT, decoded_output_data VARIANT, fact_decoded_traces_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the decoded traces data for a given block height. If to_latest is true,\n it will continue fetching blocks until the latest block. Otherwise,\n it will fetch blocks until the block height is reached.$$\n sql: |\n {{ evm_live_view_fact_decoded_traces(schema,\n blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_fact_traces\n signature:\n - [block_height, INTEGER, The start block height to get the transfers from]\n - [to_latest, BOOLEAN, Whether to continue fetching transfers until the latest block or not]\n return_type:\n - \"TABLE(tx_hash STRING, block_number NUMBER, block_timestamp TIMESTAMP_NTZ(9), from_address STRING, to_address STRING, value FLOAT, value_precise_raw STRING, value_precise STRING, gas NUMBER, gas_used NUMBER, input STRING, output STRING, TYPE STRING, identifier STRING, DATA OBJECT, tx_status STRING, sub_traces NUMBER, trace_status STRING, error_reason STRING, trace_index NUMBER, fact_traces_id STRING, inserted_timestamp TIMESTAMP_NTZ(9), modified_timestamp TIMESTAMP_NTZ(9))\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the traces for a given block height. If to_latest is true, it will continue fetching traces until the latest block. Otherwise, it will fetch traces until the block height is reached.$$\n sql: |\n {{ evm_live_view_fact_traces(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_fact_transactions\n signature:\n - [block_height, INTEGER, The start block height to get the transfers from]\n - [to_latest, BOOLEAN, Whether to continue fetching transfers until the latest block or not]\n return_type:\n - \"TABLE(block_number NUMBER, block_timestamp TIMESTAMP_NTZ, block_hash STRING, tx_hash STRING, nonce NUMBER, POSITION NUMBER, origin_function_signature STRING, from_address STRING, to_address STRING, VALUE FLOAT, value_precise_raw STRING, value_precise STRING, tx_fee FLOAT, tx_fee_precise STRING, gas_price FLOAT, gas_limit NUMBER, gas_used NUMBER, cumulative_gas_used NUMBER, input_data STRING, status STRING, effective_gas_price FLOAT, max_fee_per_gas FLOAT, max_priority_fee_per_gas FLOAT, r STRING, s STRING, v STRING, tx_type NUMBER, chain_id NUMBER, blob_versioned_hashes ARRAY, max_fee_per_blob_gas NUMBER, blob_gas_used NUMBER, blob_gas_price NUMBER, fact_transactions_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the transactions for a given block height. If to_latest is true, it will continue fetching transactions until the latest block. Otherwise, it will fetch transactions until the block height is reached.$$\n sql: |\n {{ evm_live_view_fact_transactions(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_fact_token_balances\n signature:\n - [block_height, INTEGER, The start block height to get the transfers from]\n - [to_latest, BOOLEAN, Whether to continue fetching transfers until the latest block or not]\n return_type:\n - \"TABLE(block_number NUMBER, block_timestamp TIMESTAMP_NTZ, address STRING, contract_address STRING, balance NUMBER(38,0), fact_token_balances_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances for a given block height. If to_latest is true, it will continue fetching transactions until the latest block. Otherwise, it will fetch transactions until the block height is reached.$$\n sql: |\n {{ evm_live_view_fact_token_balances(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_fact_eth_balances\n signature:\n - [block_height, INTEGER, The start block height to get the transfers from]\n - [to_latest, BOOLEAN, Whether to continue fetching transfers until the latest block or not]\n return_type:\n - \"TABLE(block_number NUMBER, block_timestamp TIMESTAMP_NTZ, address STRING, balance NUMBER(38,0), fact_eth_balances_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the eth balances for a given block height. If to_latest is true, it will continue fetching transactions until the latest block. Otherwise, it will fetch transactions until the block height is reached.$$\n sql: |\n {{ evm_live_view_fact_eth_balances(schema, blockchain, network) | indent(4) -}}\n\n\n- name: {{ schema -}}.tf_ez_decoded_event_logs\n signature:\n - [block_height, INTEGER, The start block height to get the logs from]\n - [to_latest, BOOLEAN, Whether to continue fetching logs until the latest block or not]\n return_type:\n - \"TABLE(block_number INTEGER, block_timestamp TIMESTAMP_NTZ, tx_hash STRING, event_index INTEGER, contract_address STRING, contract_name STRING, event_name STRING, decoded_log OBJECT, full_decoded_log VARIANT, origin_function_signature STRING, origin_from_address STRING, origin_to_address STRING, topics VARIANT, data STRING, event_removed BOOLEAN, tx_status STRING, ez_decoded_event_logs_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the ez decoded event logs data for a given block height. If to_latest is true, it will continue fetching blocks until the latest block. Otherwise, it will fetch blocks until the block height is reached.$$\n sql: |\n {{ evm_live_view_ez_decoded_event_logs(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_ez_native_transfers\n signature:\n - [block_height, INTEGER, The start block height to get the transfers from]\n - [to_latest, BOOLEAN, Whether to continue fetching transfers until the latest block or not]\n return_type:\n - \"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))\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the native transfers for a given block height. If to_latest is true, it will continue fetching transfers until the latest block. Otherwise, it will fetch transfers until the block height is reached.$$\n sql: |\n {{ evm_live_view_ez_native_transfers(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_ez_token_transfers\n signature:\n - [block_height, INTEGER, The start block height to get the transfers from]\n - [to_latest, BOOLEAN, Whether to continue fetching transfers until the latest block or not]\n return_type:\n - \"TABLE(block_number INTEGER, block_timestamp TIMESTAMP_NTZ, tx_hash STRING, event_index INTEGER, origin_function_signature STRING, origin_from_address STRING, origin_to_address STRING, contract_address STRING, from_address STRING, to_address STRING, raw_amount_precise STRING, raw_amount FLOAT, amount_precise FLOAT, amount FLOAT, amount_usd FLOAT, decimals INTEGER, symbol STRING, token_price FLOAT, has_decimal STRING, has_price STRING, _log_id STRING, ez_token_transfers_id STRING, _inserted_timestamp TIMESTAMP_NTZ, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token transfers for a given block height. If to_latest is true, it will continue fetching transfers until the latest block. Otherwise, it will fetch transfers until the block height is reached.$$\n sql: |\n {{ evm_live_view_ez_token_transfers(schema, blockchain, network) | indent(4) -}}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.livequery_models.evm_latest_native_balance_string", "macro.livequery_models.evm_latest_native_balance_array", "macro.livequery_models.evm_latest_token_balance_ss", "macro.livequery_models.evm_latest_token_balance_sa", "macro.livequery_models.evm_latest_token_balance_as", "macro.livequery_models.evm_latest_token_balance_aa", "macro.livequery_models.evm_historical_token_balance_ssi", "macro.livequery_models.evm_historical_token_balance_ssa", "macro.livequery_models.evm_historical_token_balance_asi", "macro.livequery_models.evm_historical_token_balance_sai", "macro.livequery_models.evm_historical_token_balance_saa", "macro.livequery_models.evm_historical_token_balance_aai", "macro.livequery_models.evm_historical_token_balance_aaa", "macro.livequery_models.evm_historical_native_balance_si", "macro.livequery_models.evm_historical_native_balance_sa", "macro.livequery_models.evm_historical_native_balance_ai", "macro.livequery_models.evm_historical_native_balance_aa", "macro.livequery_models.evm_latest_contract_events_s", "macro.livequery_models.evm_latest_contract_events_si", "macro.livequery_models.evm_latest_contract_events_a", "macro.livequery_models.evm_latest_contract_events_ai", "macro.livequery_models.evm_latest_contract_events_decoded_s", "macro.livequery_models.evm_latest_contract_events_decoded_a", "macro.livequery_models.evm_latest_contract_events_decoded_si", "macro.livequery_models.evm_latest_contract_events_decoded_ai", "macro.livequery_models.evm_live_view_fact_blocks", "macro.livequery_models.evm_live_view_fact_event_logs", "macro.livequery_models.evm_live_view_fact_decoded_event_logs", "macro.livequery_models.evm_live_view_fact_decoded_traces", "macro.livequery_models.evm_live_view_fact_traces", "macro.livequery_models.evm_live_view_fact_transactions", "macro.livequery_models.evm_live_view_fact_token_balances", "macro.livequery_models.evm_live_view_fact_eth_balances", "macro.livequery_models.evm_live_view_ez_decoded_event_logs", "macro.livequery_models.evm_live_view_ez_native_transfers", "macro.livequery_models.evm_live_view_ez_token_transfers"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.050812, "supported_languages": null}, "macro.livequery_models.config_eth_high_level_abstractions": {"name": "config_eth_high_level_abstractions", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm.yaml.sql", "original_file_path": "macros/evm/evm.yaml.sql", "unique_id": "macro.livequery_models.config_eth_high_level_abstractions", "macro_sql": "{% macro config_eth_high_level_abstractions(blockchain, network) -%}\n{#\n This macro is used to generate high level abstractions for Ethereum mainnet only.\n#}\n{% set schema = blockchain ~ \"_\" ~ network %}\n- name: {{ schema -}}.tf_all_contract_events\n signature:\n - [address, STRING, The address of the contracts to get the events of]\n - [min_block, INTEGER, The minimum block number to get the events from]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, contract_address STRING, event_topics ARRAY, event_data STRING)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the events emitted by a contract from a specific block to the latest block.$$\n sql: |\n {{ evm_contract_events(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_all_contract_events_decoded\n signature:\n - [address, STRING, The address of the contracts to get the events of]\n - [min_block, INTEGER, The minimum block number to get the events from]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, event_name STRING, contract_address STRING, event_topics ARRAY, event_data STRING, decoded_data OBJECT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the decoded events emitted by a contract from a specific block to the latest block. Submit missing ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/).$$\n sql: |\n {{ evm_contract_events_decoded(schema, blockchain, network) | indent(4) -}}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.livequery_models.evm_contract_events", "macro.livequery_models.evm_contract_events_decoded"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.0518155, "supported_languages": null}, "macro.livequery_models.evm_latest_native_balance_string": {"name": "evm_latest_native_balance_string", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_native_balance_string", "macro_sql": "{% macro evm_latest_native_balance_string(schema, blockchain, network) %}\nwith base as (select lower(wallet) AS wallet_address)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n symbol,\n utils.udf_hex_to_int({{schema}}.udf_rpc_eth_get_balance(wallet_address,'latest')::string) AS raw_balance,\n (raw_balance / POW(10,18))::float AS balance\nFROM base\nLEFT JOIN {{ ref('_evm__native_symbol_map') }}\non '{{blockchain}}' = blockchain\nand '{{network}}' = network\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2584326, "supported_languages": null}, "macro.livequery_models.evm_latest_native_balance_array": {"name": "evm_latest_native_balance_array", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_native_balance_array", "macro_sql": "{% macro evm_latest_native_balance_array(schema, blockchain, network) %}\nWITH address_inputs AS (\n SELECT wallets AS wallet_array\n),\nflat_addresses AS (\n SELECT lower(value::string) AS wallet_address\n FROM address_inputs a,\n LATERAL FLATTEN(input => a.wallet_array)\n),\nnode_call AS (\n SELECT wallet_address,\n {{schema}}.udf_rpc_eth_get_balance(wallet_address,'latest')::string AS hex_balance\n FROM flat_addresses\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n symbol,\n utils.udf_hex_to_int(hex_balance) AS raw_balance,\n (raw_balance / POW(10,18))::FLOAT AS balance\nFROM node_call\nLEFT JOIN {{ ref('_evm__native_symbol_map') }}\non '{{blockchain}}' = blockchain\nand '{{network}}' = network\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.259046, "supported_languages": null}, "macro.livequery_models.evm_latest_token_balance_ss": {"name": "evm_latest_token_balance_ss", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_token_balance_ss", "macro_sql": "{% macro evm_latest_token_balance_ss(schema, blockchain, network) %}\nWITH inputs AS (\n SELECT\n lower(token) AS token_address,\n lower(wallet) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, 0)\n ) AS DATA\n),\nnode_call AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n {{schema}}.udf_rpc_eth_call(object_construct_keep_null('from', null, 'to', token_address, 'data', data),'latest')::string AS eth_call,\n utils.udf_hex_to_int(eth_call::string) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n and blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n raw_balance,\n balance\nFROM node_call\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2595897, "supported_languages": null}, "macro.livequery_models.evm_latest_token_balance_sa": {"name": "evm_latest_token_balance_sa", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_token_balance_sa", "macro_sql": "{% macro evm_latest_token_balance_sa(schema, blockchain, network) %}\nWITH inputs AS (\n SELECT tokens, wallet\n),\nflat_rows AS (\n SELECT\n lower(value::string) AS token_address,\n lower(wallet::string) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, 0)\n ) AS DATA\n FROM inputs,\n LATERAL FLATTEN(input => tokens)\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n {{schema}}.udf_rpc_eth_call(object_construct_keep_null('from', null, 'to', token_address, 'data', data),'latest')::string AS eth_call,\n utils.udf_hex_to_int(eth_call::string) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n flat_rows\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n and blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2601686, "supported_languages": null}, "macro.livequery_models.evm_latest_token_balance_as": {"name": "evm_latest_token_balance_as", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_token_balance_as", "macro_sql": "{% macro evm_latest_token_balance_as(schema, blockchain, network) %}\nWITH inputs AS (\n SELECT token, wallets\n),\nflat_rows AS (\n SELECT\n lower(value::string) AS wallet_address,\n lower(token::string) AS token_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, 0)\n ) AS DATA\n FROM inputs,\n LATERAL FLATTEN(input => wallets)\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n {{schema}}.udf_rpc_eth_call(object_construct_keep_null('from', null, 'to', token_address, 'data', data),'latest')::string AS eth_call,\n utils.udf_hex_to_int(eth_call::string) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n flat_rows\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n and blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2607105, "supported_languages": null}, "macro.livequery_models.evm_latest_token_balance_aa": {"name": "evm_latest_token_balance_aa", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_token_balance_aa", "macro_sql": "{% macro evm_latest_token_balance_aa(schema, blockchain, network) %}\nWITH inputs AS (\n SELECT tokens, wallets\n),\nflat_rows AS (\n SELECT\n lower(tokens.VALUE::STRING) AS token_address,\n lower(wallets.VALUE::STRING) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, 0)\n ) AS DATA\n FROM\n inputs,\n LATERAL FLATTEN(input => tokens) tokens,\n LATERAL FLATTEN(input => wallets) wallets\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n {{schema}}.udf_rpc_eth_call(object_construct_keep_null('from', null, 'to', token_address, 'data', data),'latest')::string AS eth_call,\n utils.udf_hex_to_int(eth_call::string) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n flat_rows\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n and blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2612936, "supported_languages": null}, "macro.livequery_models.evm_historical_token_balance_ssi": {"name": "evm_historical_token_balance_ssi", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_token_balance_ssi", "macro_sql": "{% macro evm_historical_token_balance_ssi(schema, blockchain, network) %}\nWITH inputs AS (\n SELECT\n LOWER(token) AS token_address,\n LOWER(wallet) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, 0)\n ) AS data,\n block_number\n), final AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n block_number,\n {{schema}}.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n AND blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2618499, "supported_languages": null}, "macro.livequery_models.evm_historical_token_balance_ssa": {"name": "evm_historical_token_balance_ssa", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_token_balance_ssa", "macro_sql": "{% macro evm_historical_token_balance_ssa(schema, blockchain, network) %}\nWITH block_inputs AS (\n SELECT block_numbers\n),\nblocks AS (\n SELECT value::INTEGER AS block_number\n FROM block_inputs,\n LATERAL FLATTEN(input => block_numbers)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n LOWER(wallet) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, 0)\n ) AS data\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n blocks.block_number,\n {{schema}}.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(blocks.block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n CROSS JOIN blocks\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n AND blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2624285, "supported_languages": null}, "macro.livequery_models.evm_historical_token_balance_asi": {"name": "evm_historical_token_balance_asi", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_token_balance_asi", "macro_sql": "{% macro evm_historical_token_balance_asi(schema, blockchain, network) %}\nWITH wallet_inputs AS (\n SELECT wallets\n),\nwallets AS (\n SELECT lower(value::STRING) AS wallet\n FROM wallet_inputs,\n LATERAL FLATTEN(input => wallets)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n wallet,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet, '0x', ''), 64, 0)\n ) AS data\n FROM wallets\n),\nfinal AS (\n SELECT\n wallet AS wallet_address,\n token_address,\n symbol,\n block_number,\n {{schema}}.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n AND blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2630205, "supported_languages": null}, "macro.livequery_models.evm_historical_token_balance_asa": {"name": "evm_historical_token_balance_asa", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_token_balance_asa", "macro_sql": "{% macro evm_historical_token_balance_asa(schema, blockchain, network) %}\nWITH block_inputs AS (\n SELECT block_numbers\n),\nblocks AS (\n SELECT value::INTEGER AS block_number\n FROM block_inputs,\n LATERAL FLATTEN(input => block_numbers)\n),\nwallet_inputs AS (\n SELECT wallets\n),\nwallets AS (\n SELECT lower(value::STRING) AS wallet\n FROM wallet_inputs,\n LATERAL FLATTEN(input => wallets)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n wallet,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet, '0x', ''), 64, '0')\n ) AS data\n FROM wallets\n),\nfinal AS (\n SELECT\n wallet AS wallet_address,\n token_address,\n symbol,\n blocks.block_number,\n {{schema}}.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(blocks.block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n CROSS JOIN blocks\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n AND blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2636013, "supported_languages": null}, "macro.livequery_models.evm_historical_token_balance_sai": {"name": "evm_historical_token_balance_sai", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_token_balance_sai", "macro_sql": "{% macro evm_historical_token_balance_sai(schema, blockchain, network) %}\nWITH token_inputs AS (\n SELECT tokens\n),\ntokens AS (\n SELECT value::STRING AS token\n FROM token_inputs,\n LATERAL FLATTEN(input => tokens)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n LOWER(wallet) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, '0')\n ) AS data\n FROM\n tokens\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n block_number,\n {{schema}}.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n AND blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2641954, "supported_languages": null}, "macro.livequery_models.evm_historical_token_balance_saa": {"name": "evm_historical_token_balance_saa", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_token_balance_saa", "macro_sql": "{% macro evm_historical_token_balance_saa(schema, blockchain, network) %}\nWITH block_inputs AS (\n SELECT block_numbers\n),\nblocks AS (\n SELECT value::INTEGER AS block_number\n FROM block_inputs,\n LATERAL FLATTEN(input => block_numbers)\n),\ntoken_inputs AS (\n SELECT tokens\n),\ntokens AS (\n SELECT value::STRING AS token\n FROM token_inputs,\n LATERAL FLATTEN(input => tokens)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n LOWER(wallet) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, '0')\n ) AS data\n FROM\n tokens\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n blocks.block_number,\n {{schema}}.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(blocks.block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n CROSS JOIN blocks\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n AND blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2647688, "supported_languages": null}, "macro.livequery_models.evm_historical_token_balance_aai": {"name": "evm_historical_token_balance_aai", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_token_balance_aai", "macro_sql": "{% macro evm_historical_token_balance_aai(schema, blockchain, network) %}\nWITH token_inputs AS (\n SELECT tokens\n),\ntokens AS (\n SELECT value::STRING AS token\n FROM token_inputs,\n LATERAL FLATTEN(input => tokens)\n),\nwallet_inputs AS (\n SELECT wallets\n),\nwallets AS (\n SELECT lower(value::STRING) AS wallet\n FROM wallet_inputs,\n LATERAL FLATTEN(input => wallets)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n wallet AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, '0')\n ) AS data\n FROM\n tokens,\n wallets\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n block_number,\n {{schema}}.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n AND blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2653534, "supported_languages": null}, "macro.livequery_models.evm_historical_token_balance_aaa": {"name": "evm_historical_token_balance_aaa", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_token_balance_aaa", "macro_sql": "{% macro evm_historical_token_balance_aaa(schema, blockchain, network) %}\nWITH block_inputs AS (\n SELECT block_numbers\n),\nblocks AS (\n SELECT value::INTEGER AS block_number\n FROM block_inputs,\n LATERAL FLATTEN(input => block_numbers)\n),\nwallet_inputs AS (\n SELECT wallets\n),\nwallets AS (\n SELECT lower(value::STRING) AS wallet\n FROM wallet_inputs,\n LATERAL FLATTEN(input => wallets)\n),\ntoken_inputs AS (\n SELECT tokens\n),\ntokens AS (\n SELECT value::STRING AS token\n FROM token_inputs,\n LATERAL FLATTEN(input => tokens)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n wallet AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, '0')\n ) AS data\n FROM\n wallets,\n tokens\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n blocks.block_number,\n {{schema}}.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(blocks.block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n CROSS JOIN blocks\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n AND blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.265964, "supported_languages": null}, "macro.livequery_models.evm_historical_native_balance_si": {"name": "evm_historical_native_balance_si", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_native_balance_si", "macro_sql": "{% macro evm_historical_native_balance_si(schema, blockchain, network) %}\nwith base as (select lower(wallet) AS wallet_address, CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX'))) as hex_block)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n symbol,\n block_number,\n utils.udf_hex_to_int({{schema}}.udf_rpc_eth_get_balance(wallet_address,hex_block)::string) AS raw_balance,\n (raw_balance / POW(10,18))::float AS balance\nFROM base\nLEFT JOIN {{ ref('_evm__native_symbol_map') }}\non '{{blockchain}}' = blockchain\nand '{{network}}' = network\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2664876, "supported_languages": null}, "macro.livequery_models.evm_historical_native_balance_sa": {"name": "evm_historical_native_balance_sa", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_native_balance_sa", "macro_sql": "{% macro evm_historical_native_balance_sa(schema, blockchain, network) %}\nWITH block_inputs AS (\n SELECT block_numbers\n),\nblocks AS (\n SELECT value::INTEGER AS block_number\n FROM block_inputs,\n LATERAL FLATTEN(input => block_numbers)\n),\ninputs AS (\n SELECT\n wallet AS wallet_address,\n block_number,\n utils.udf_hex_to_int({{schema}}.udf_rpc_eth_get_balance(wallet, CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX')))))::STRING AS raw_balance\n FROM blocks\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n symbol,\n block_number,\n raw_balance,\n (raw_balance::int / pow(10,18)) ::float as balance\nFROM inputs\nLEFT JOIN {{ ref('_evm__native_symbol_map') }}\non '{{blockchain}}' = blockchain\nand '{{network}}' = network\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2670596, "supported_languages": null}, "macro.livequery_models.evm_historical_native_balance_ai": {"name": "evm_historical_native_balance_ai", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_native_balance_ai", "macro_sql": "{% macro evm_historical_native_balance_ai(schema, blockchain, network) %}\nWITH wallet_inputs AS (\n SELECT wallets\n),\nflat_wallets AS (\n SELECT lower(value::string) AS wallet\n FROM wallet_inputs,\n LATERAL FLATTEN(input => wallets)\n),\ninputs AS (\n SELECT\n wallet AS wallet_address,\n block_number,\n utils.udf_hex_to_int({{schema}}.udf_rpc_eth_get_balance(wallet, CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX')))))::STRING AS raw_balance\n FROM flat_wallets\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n symbol,\n block_number,\n raw_balance,\n (raw_balance::int / pow(10,18)) ::float as balance\nFROM inputs\nLEFT JOIN {{ ref('_evm__native_symbol_map') }}\non '{{blockchain}}' = blockchain\nand '{{network}}' = network\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2677212, "supported_languages": null}, "macro.livequery_models.evm_historical_native_balance_aa": {"name": "evm_historical_native_balance_aa", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_native_balance_aa", "macro_sql": "{% macro evm_historical_native_balance_aa(schema, blockchain, network) %}\n WITH inputs AS (\n SELECT wallets, block_numbers\n ),\n flat_wallets AS (\n SELECT lower(wallet.value::STRING) AS wallet, block.value::INTEGER AS block_number\n FROM inputs,\n LATERAL FLATTEN(input => wallets) wallet,\n LATERAL FLATTEN(input => block_numbers) block\n ),\n final AS (\n SELECT\n wallet AS wallet_address,\n block_number,\n utils.udf_hex_to_int({{schema}}.udf_rpc_eth_get_balance(wallet, CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX')))))::STRING AS raw_balance\n FROM flat_wallets\n )\n SELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n symbol,\n block_number,\n raw_balance,\n (raw_balance::int / pow(10,18))::float as balance\n FROM final\n LEFT JOIN {{ ref('_evm__native_symbol_map') }}\n on '{{blockchain}}' = blockchain\n and '{{network}}' = network\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2683096, "supported_languages": null}, "macro.livequery_models.evm_latest_contract_events_s": {"name": "evm_latest_contract_events_s", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_contract_events_s", "macro_sql": "{% macro evm_latest_contract_events_s(schema, blockchain, network) %}\n WITH chainhead AS (\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - 100, 'XXXXXXXXXX'))) AS from_block_hex\n ),\n node_call AS (\n SELECT\n lower(address) AS contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM chainhead\n ),\n node_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n )\n SELECT\n case\n when REGEXP_LIKE(contract_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n tx_hash,\n block_number,\n event_index,\n contract_address,\n event_topics,\n event_data\n FROM node_flat\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.268794, "supported_languages": null}, "macro.livequery_models.evm_latest_contract_events_si": {"name": "evm_latest_contract_events_si", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_contract_events_si", "macro_sql": "{% macro evm_latest_contract_events_si(schema, blockchain, network) %}\n WITH chainhead AS (\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - lookback, 'XXXXXXXXXX'))) AS from_block_hex\n ),\n node_call AS (\n SELECT\n lower(address) AS contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM chainhead\n ),\n node_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n )\n SELECT\n case\n when REGEXP_LIKE(contract_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(lookback)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n tx_hash,\n block_number,\n event_index,\n contract_address,\n event_topics,\n event_data\n FROM node_flat\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.269305, "supported_languages": null}, "macro.livequery_models.evm_latest_contract_events_a": {"name": "evm_latest_contract_events_a", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_contract_events_a", "macro_sql": "{% macro evm_latest_contract_events_a(schema, blockchain, network) %}\n WITH chainhead AS (\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - 100, 'XXXXXXXXXX'))) AS from_block_hex\n ),\n node_call AS (\n SELECT\n lower(address) AS contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM (\n SELECT value::STRING AS address\n FROM LATERAL FLATTEN(input => addresses)\n ) inputs, chainhead\n ),\n node_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n )\n SELECT\n case\n when REGEXP_LIKE(contract_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n tx_hash,\n block_number,\n event_index,\n contract_address,\n event_topics,\n event_data\n FROM node_flat\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2697954, "supported_languages": null}, "macro.livequery_models.evm_latest_contract_events_ai": {"name": "evm_latest_contract_events_ai", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_contract_events_ai", "macro_sql": "{% macro evm_latest_contract_events_ai(schema, blockchain, network) %}\n WITH chainhead AS (\n SELECT\n {{schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - lookback, 'XXXXXXXXXX'))) AS from_block_hex\n ),\n node_call AS (\n SELECT\n lower(address) AS contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM (\n SELECT value::STRING AS address\n FROM LATERAL FLATTEN(input => addresses)\n ) inputs, chainhead\n ),\n node_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n )\n SELECT\n case\n when REGEXP_LIKE(contract_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(lookback)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n tx_hash,\n block_number,\n event_index,\n contract_address,\n event_topics,\n event_data\n FROM node_flat\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2703142, "supported_languages": null}, "macro.livequery_models.evm_latest_contract_events_decoded_s": {"name": "evm_latest_contract_events_decoded_s", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_contract_events_decoded_s", "macro_sql": "{% macro evm_latest_contract_events_decoded_s(schema, blockchain, network) %}\nWITH inputs AS (\n SELECT lower(address::STRING) AS contract_address\n),\nchainhead AS (\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - 100, 'XXXXXXXXXX'))) AS from_block_hex\n),\nabis AS (\n SELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi\n FROM inputs\n JOIN {{ ref('_evm__abi_map') }}\n ON lower(contract_address) = parent_contract_address\n AND blockchain = '{{blockchain}}'\n QUALIFY ROW_NUMBER() OVER (PARTITION BY contract_address, event_name ORDER BY end_block DESC) = 1\n),\nnode_call AS (\n SELECT\n inputs.contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', inputs.contract_address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM inputs\n JOIN chainhead ON 1=1\n),\nnode_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n),\ndecode_logs AS (\n SELECT\n contract_address,\n block_number,\n tx_hash,\n tx_index,\n event_index,\n event_removed,\n event_data,\n event_topics,\n utils.udf_evm_decode_log(\n abi,\n OBJECT_CONSTRUCT(\n 'topics',\n event_topics,\n 'data',\n event_data,\n 'address',\n contract_address\n )\n )[0] AS decoded_data,\n decoded_data:name::STRING AS event_name,\n utils.udf_evm_transform_log(decoded_data) AS transformed\n FROM node_flat\n JOIN abis\n ON contract_address = parent_contract_address\n AND event_topics[0]::STRING = event_signature\n),\nfinal AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value:name = '' THEN CONCAT('anonymous_', v.index)\n ELSE v.value:name\n END,\n v.value:value\n ) AS decoded_flat\n FROM decode_logs b,\n LATERAL FLATTEN(input => transformed:data) v\n GROUP BY\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed\n)\nSELECT\n case\n when REGEXP_LIKE(n.contract_address, '^0x([a-fA-F0-9]{40})$') then 'Success'\n when f.event_name is null then 'Error - Contract ABI Not Found, submit ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/)'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n n.tx_hash,\n n.block_number,\n n.event_index,\n f.event_name,\n n.contract_address,\n n.event_topics,\n n.event_data,\n f.decoded_flat AS decoded_data\nFROM node_flat n\nleft join final f\non n.block_number = f.block_number\nand n.tx_hash = f.tx_hash\nand n.event_index = f.event_index\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2711108, "supported_languages": null}, "macro.livequery_models.evm_latest_contract_events_decoded_si": {"name": "evm_latest_contract_events_decoded_si", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_contract_events_decoded_si", "macro_sql": "{% macro evm_latest_contract_events_decoded_si(schema, blockchain, network) %}\nWITH inputs AS (\n SELECT lower(address::STRING) AS contract_address\n),\nchainhead AS (\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - lookback, 'XXXXXXXXXX'))) AS from_block_hex,\n lookback\n),\nabis AS (\n SELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi\n FROM inputs\n JOIN {{ ref('_evm__abi_map') }}\n ON lower(contract_address) = parent_contract_address\n AND blockchain = '{{blockchain}}'\n QUALIFY ROW_NUMBER() OVER (PARTITION BY contract_address, event_name ORDER BY end_block DESC) = 1\n),\nnode_call AS (\n SELECT\n inputs.contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', inputs.contract_address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs,\n lookback\n FROM inputs\n JOIN chainhead ON 1=1\n),\nnode_flat AS (\n SELECT\n contract_address,\n lookback,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n),\ndecode_logs AS (\n SELECT\n contract_address,\n block_number,\n tx_hash,\n tx_index,\n event_index,\n event_removed,\n event_data,\n event_topics,\n utils.udf_evm_decode_log(\n abi,\n OBJECT_CONSTRUCT(\n 'topics',\n event_topics,\n 'data',\n event_data,\n 'address',\n contract_address\n )\n )[0] AS decoded_data,\n decoded_data:name::STRING AS event_name,\n utils.udf_evm_transform_log(decoded_data) AS transformed\n FROM node_flat\n JOIN abis\n ON contract_address = parent_contract_address\n AND event_topics[0]::STRING = event_signature\n),\nfinal AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value:name = '' THEN CONCAT('anonymous_', v.index)\n ELSE v.value:name\n END,\n v.value:value\n ) AS decoded_flat\n FROM decode_logs b,\n LATERAL FLATTEN(input => transformed:data) v\n GROUP BY\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed\n)\nSELECT\n case\n when REGEXP_LIKE(n.contract_address, '^0x([a-fA-F0-9]{40})$') and is_integer(n.lookback) then 'Success'\n when f.event_name is null then 'Error - Contract ABI Not Found, submit ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/)'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n n.tx_hash,\n n.block_number,\n n.event_index,\n f.event_name,\n n.contract_address,\n n.event_topics,\n n.event_data,\n f.decoded_flat AS decoded_data\nFROM node_flat n\nleft join final f\non n.block_number = f.block_number\nand n.tx_hash = f.tx_hash\nand n.event_index = f.event_index\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2719421, "supported_languages": null}, "macro.livequery_models.evm_latest_contract_events_decoded_a": {"name": "evm_latest_contract_events_decoded_a", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_contract_events_decoded_a", "macro_sql": "{% macro evm_latest_contract_events_decoded_a(schema, blockchain, network) %}\nWITH base AS (SELECT addresses),\ninputs AS (\n SELECT lower(value::STRING) AS contract_address\n FROM base, LATERAL FLATTEN(input => addresses)\n),\nchainhead AS (\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - 100, 'XXXXXXXXXX'))) AS from_block_hex\n),\nabis AS (\n SELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi\n FROM inputs\n JOIN {{ ref('_evm__abi_map') }}\n ON lower(contract_address) = parent_contract_address\n AND blockchain = '{{blockchain}}'\n QUALIFY ROW_NUMBER() OVER (PARTITION BY contract_address, event_name ORDER BY end_block DESC) = 1\n),\nnode_call AS (\n SELECT\n inputs.contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', inputs.contract_address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM inputs\n JOIN chainhead ON 1=1\n),\nnode_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n),\ndecode_logs AS (\n SELECT\n contract_address,\n block_number,\n tx_hash,\n tx_index,\n event_index,\n event_removed,\n event_data,\n event_topics,\n utils.udf_evm_decode_log(\n abi,\n OBJECT_CONSTRUCT(\n 'topics',\n event_topics,\n 'data',\n event_data,\n 'address',\n contract_address\n )\n )[0] AS decoded_data,\n decoded_data:name::STRING AS event_name,\n utils.udf_evm_transform_log(decoded_data) AS transformed\n FROM node_flat\n JOIN abis\n ON contract_address = parent_contract_address\n AND event_topics[0]::STRING = event_signature\n),\nfinal AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value:name = '' THEN CONCAT('anonymous_', v.index)\n ELSE v.value:name\n END,\n v.value:value\n ) AS decoded_flat\n FROM decode_logs b,\n LATERAL FLATTEN(input => transformed:data) v\n GROUP BY\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed\n)\nSELECT\n case\n when REGEXP_LIKE(n.contract_address, '^0x([a-fA-F0-9]{40})$') then 'Success'\n when f.event_name is null then 'Error - Contract ABI Not Found, submit ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/)'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n n.tx_hash,\n n.block_number,\n n.event_index,\n f.event_name,\n n.contract_address,\n n.event_topics,\n n.event_data,\n f.decoded_flat AS decoded_data\nFROM node_flat n\nleft join final f\non n.block_number = f.block_number\nand n.tx_hash = f.tx_hash\nand n.event_index = f.event_index\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2727296, "supported_languages": null}, "macro.livequery_models.evm_latest_contract_events_decoded_ai": {"name": "evm_latest_contract_events_decoded_ai", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_contract_events_decoded_ai", "macro_sql": "{% macro evm_latest_contract_events_decoded_ai(schema, blockchain, network) %}\nWITH base AS (SELECT addresses),\ninputs AS (\n SELECT lower(value::STRING) AS contract_address\n FROM base, LATERAL FLATTEN(input => addresses)\n),\nchainhead AS (\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - lookback, 'XXXXXXXXXX'))) AS from_block_hex,\n lookback\n),\nabis AS (\n SELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi\n FROM inputs\n JOIN {{ ref('_evm__abi_map') }}\n ON lower(contract_address) = parent_contract_address\n AND blockchain = '{{blockchain}}'\n QUALIFY ROW_NUMBER() OVER (PARTITION BY contract_address, event_name ORDER BY end_block DESC) = 1\n),\nnode_call AS (\n SELECT\n inputs.contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', inputs.contract_address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs,\n lookback\n FROM inputs\n JOIN chainhead ON 1=1\n),\nnode_flat AS (\n SELECT\n contract_address,\n lookback,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n),\ndecode_logs AS (\n SELECT\n contract_address,\n block_number,\n tx_hash,\n tx_index,\n event_index,\n event_removed,\n event_data,\n event_topics,\n utils.udf_evm_decode_log(\n abi,\n OBJECT_CONSTRUCT(\n 'topics',\n event_topics,\n 'data',\n event_data,\n 'address',\n contract_address\n )\n )[0] AS decoded_data,\n decoded_data:name::STRING AS event_name,\n utils.udf_evm_transform_log(decoded_data) AS transformed\n FROM node_flat\n JOIN abis\n ON contract_address = parent_contract_address\n AND event_topics[0]::STRING = event_signature\n),\nfinal AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value:name = '' THEN CONCAT('anonymous_', v.index)\n ELSE v.value:name\n END,\n v.value:value\n ) AS decoded_flat\n FROM decode_logs b,\n LATERAL FLATTEN(input => transformed:data) v\n GROUP BY\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed\n)\nSELECT\n case\n when REGEXP_LIKE(n.contract_address, '^0x([a-fA-F0-9]{40})$') and is_integer(n.lookback) then 'Success'\n when f.event_name is null then 'Error - Contract ABI Not Found, submit ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/)'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n n.tx_hash,\n n.block_number,\n n.event_index,\n f.event_name,\n n.contract_address,\n n.event_topics,\n n.event_data,\n f.decoded_flat AS decoded_data\nFROM node_flat n\nleft join final f\non n.block_number = f.block_number\nand n.tx_hash = f.tx_hash\nand n.event_index = f.event_index\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.273539, "supported_languages": null}, "macro.livequery_models.evm_contract_events": {"name": "evm_contract_events", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_contract_events", "macro_sql": "{% macro evm_contract_events(schema, blockchain, network) %}\n WITH chainhead AS (\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - 200, 'XXXXXXXXXX'))) AS from_block_hex,\n utils.udf_hex_to_int(chainhead_hex) - 200 as min_block_no\n ),\n node_call AS (\n SELECT\n lower(address) AS contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM chainhead\n ),\n node_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n )\n SELECT\n case\n when REGEXP_LIKE(contract_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n tx_hash,\n block_number,\n event_index,\n contract_address,\n event_topics,\n event_data\n FROM node_flat\n UNION ALL\n SELECT\n 'Success' as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n tx_hash,\n block_number,\n event_index,\n contract_address,\n topics as event_topics,\n data as event_data\n from {{ ref('_eth__logs') }}\n where contract_address = (select contract_address from node_call)\n and block_number >= min_block\n and block_number <= (select min_block_no from chainhead)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2742374, "supported_languages": null}, "macro.livequery_models.evm_contract_events_decoded": {"name": "evm_contract_events_decoded", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_contract_events_decoded", "macro_sql": "{% macro evm_contract_events_decoded(schema, blockchain, network) %}\nWITH inputs AS (\n SELECT lower(address::STRING) AS contract_address\n),\nchainhead AS (\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - 400, 'XXXXXXXXXX'))) AS from_block_hex,\n utils.udf_hex_to_int(chainhead_hex) - 400 as min_block_no\n),\nabis AS (\n SELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi\n FROM inputs\n JOIN {{ ref('_evm__abi_map') }}\n ON lower(contract_address) = parent_contract_address\n AND blockchain = '{{blockchain}}'\n QUALIFY ROW_NUMBER() OVER (PARTITION BY contract_address, event_name ORDER BY end_block DESC) = 1\n),\nnode_call AS (\n SELECT\n inputs.contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', inputs.contract_address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM inputs\n JOIN chainhead ON 1=1\n),\nnode_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n),\ndecode_logs AS (\n SELECT\n contract_address,\n block_number,\n tx_hash,\n tx_index,\n event_index,\n event_removed,\n event_data,\n event_topics,\n utils.udf_evm_decode_log(\n abi,\n OBJECT_CONSTRUCT(\n 'topics',\n event_topics,\n 'data',\n event_data,\n 'address',\n contract_address\n )\n )[0] AS decoded_data,\n decoded_data:name::STRING AS event_name,\n utils.udf_evm_transform_log(decoded_data) AS transformed\n FROM node_flat\n JOIN abis\n ON contract_address = parent_contract_address\n AND event_topics[0]::STRING = event_signature\n),\nfinal AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value:name = '' THEN CONCAT('anonymous_', v.index)\n ELSE v.value:name\n END,\n v.value:value\n ) AS decoded_flat\n FROM decode_logs b,\n LATERAL FLATTEN(input => transformed:data) v\n GROUP BY\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed\n)\nSELECT\n case\n when REGEXP_LIKE(n.contract_address, '^0x([a-fA-F0-9]{40})$') and is_integer(min_block) then 'Success'\n when f.event_name is null then 'Error - Contract ABI Not Found, submit ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/)'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n n.tx_hash,\n n.block_number,\n n.event_index,\n f.event_name,\n n.contract_address,\n n.event_topics,\n n.event_data,\n f.decoded_flat AS decoded_data\nFROM node_flat n\nleft join final f\non n.block_number = f.block_number\nand n.tx_hash = f.tx_hash\nand n.event_index = f.event_index\nunion all\nselect\n 'Success' as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n tx_hash,\n block_number,\n event_index,\n event_name,\n contract_address,\n topics as event_topics,\n data as event_data,\n decoded_log as decoded_data\nfrom {{ ref('_eth__decoded_logs') }}\n where contract_address = (select contract_address from inputs)\n and block_number >= min_block\n and block_number <= (select min_block_no from chainhead)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2752554, "supported_languages": null}, "macro.livequery_models.config_transpose_udfs": {"name": "config_transpose_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/transpose/udfs.yaml.sql", "original_file_path": "macros/marketplace/transpose/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_transpose_udfs", "macro_sql": "{% macro config_transpose_udfs(schema_name = \"transpose\", utils_schema_name=\"transpose_utils\") -%}\n{#\n This macro is used to generate the Transpose Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Transpose API. [Transpose docs here](https://docs.transpose.io/rest/overview/).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.transpose.io', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'X-API-KEY': '{API_KEY}'},\n {},\n '_FSC_SYS/TRANSPOSE'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Transpose API. [Transpose docs here](https://docs.transpose.io/rest/overview/).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://api.transpose.io', PATH),\n {'X-API-KEY': '{API_KEY}'},\n BODY,\n '_FSC_SYS/TRANSPOSE'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2760534, "supported_languages": null}, "macro.livequery_models.config_credmark_utils_udfs": {"name": "config_credmark_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/credmark/util_udfs.sql", "original_file_path": "macros/marketplace/credmark/util_udfs.sql", "unique_id": "macro.livequery_models.config_credmark_utils_udfs", "macro_sql": "{% macro config_credmark_utils_udfs(schema_name = \"credmark_utils\", utils_schema_name=\"credmark_utils\") -%}\n{#\n This macro is used to generate the Credmark base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Credmark API.$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat(\n 'https://gateway.credmark.com', PATH, '?',\n utils.udf_object_to_url_query_string(QUERY_ARGS)\n ),\n {'Authorization': 'Bearer {API_KEY}'},\n {},\n '_FSC_SYS/CREDMARK'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Credmark API.$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n concat('https://gateway.credmark.com', PATH),\n {'Authorization': 'Bearer {API_KEY}'},\n BODY,\n '_FSC_SYS/CREDMARK'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.276775, "supported_languages": null}, "macro.livequery_models.config_opensea_udfs": {"name": "config_opensea_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/opensea/udfs.yaml.sql", "original_file_path": "macros/marketplace/opensea/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_opensea_udfs", "macro_sql": "{% macro config_opensea_udfs(schema_name = \"opensea\", utils_schema_name=\"opensea_utils\") -%}\n{#\n This macro is used to generate the OpenSea Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the OpenSea API. [OpenSea docs here](https://docs.opensea.io/reference/api-overview).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.opensea.io', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'X-API-KEY': '{API_KEY}'},\n {},\n '_FSC_SYS/OPENSEA'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the OpenSea API. [OpenSea docs here](https://docs.opensea.io/reference/api-overview).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n concat('https://api.opensea.io', PATH),\n {'X-API-KEY': '{API_KEY}'},\n BODY,\n '_FSC_SYS/OPENSEA'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2775066, "supported_languages": null}, "macro.livequery_models.config_stakingrewards_udfs": {"name": "config_stakingrewards_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/stakingrewards/udfs.yaml.sql", "original_file_path": "macros/marketplace/stakingrewards/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_stakingrewards_udfs", "macro_sql": "{% macro config_stakingrewards_udfs(schema_name = \"stakingrewards\", utils_schema_name=\"stakingrewards_utils\") -%}\n{#\n This macro is used to generate the StakingRewards Base endpoints\n #}\n\n- name: {{ schema_name -}}.query\n signature:\n - [QUERY, OBJECT, The GraphQL query]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a Graphql Query to the StakingRewards API. [StakingRewards docs here](https://api-docs.stakingrewards.com/api-docs/get-started/quick-start-guide).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n 'https://api.stakingrewards.com/public/query',\n {'X-API-KEY': '{API_KEY}'},\n QUERY,\n '_FSC_SYS/STAKINGREWARDS'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2780316, "supported_languages": null}, "macro.livequery_models.config_subquery_udfs": {"name": "config_subquery_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/subquery/udfs.yaml.sql", "original_file_path": "macros/marketplace/subquery/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_subquery_udfs", "macro_sql": "{% macro config_subquery_udfs(schema_name = \"subquery\", utils_schema_name = \"subquery_utils\") -%}\n{#\n This macro is used to generate the Subquery Calls\n #}\n- name: {{ schema_name -}}.graphql\n signature:\n - [PROJECT, STRING, The sub-query project name]\n - [QUERY, OBJECT, The graphql query]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Query a SubQuery Project [SubQuery docs here](https://explorer.subquery.network/subquery/subquery/kepler-network).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n concat('https://api.subquery.network/sq/subquery/', PROJECT),\n {},\n QUERY\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2785385, "supported_languages": null}, "macro.livequery_models.config_topshot_udfs": {"name": "config_topshot_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/topshot/topshot.graphql.sql", "original_file_path": "macros/marketplace/topshot/topshot.graphql.sql", "unique_id": "macro.livequery_models.config_topshot_udfs", "macro_sql": "{% macro config_topshot_udfs(schema_name = \"topshot\", utils_schema_name = \"topshot_utils\") -%}\n{#\n This macro is used to generate the Topshot calls\n #}\n\n- name: {{ schema_name -}}.graphql\n signature:\n - [QUERY, OBJECT, The GraphQL query]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Run a graphql query on TopShot.$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n 'https://public-api.nbatopshot.com/graphql',\n {'User-Agent': 'Flipside_Flow_metadata/0.1','Accept-Encoding': 'gzip', 'Content-Type': 'application/json', 'Accept': 'application/json','Connection': 'keep-alive'},\n QUERY,\n '_FSC_SYS/TOPSHOT'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2790756, "supported_languages": null}, "macro.livequery_models.config_allday_udfs": {"name": "config_allday_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/allday/allday.graphql.sql", "original_file_path": "macros/marketplace/allday/allday.graphql.sql", "unique_id": "macro.livequery_models.config_allday_udfs", "macro_sql": "{% macro config_allday_udfs(schema_name = \"allday\", utils_schema_name = \"allday_utils\") -%}\n{#\n This macro is used to generate the AllDay calls\n #}\n\n- name: {{ schema_name -}}.graphql\n signature:\n - [QUERY, OBJECT, The GraphQL query]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Run a graphql query on AllDay.$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n CONCAT('https://nflallday.com/consumer/graphql?query=', utils.udf_object_to_url_query_string(QUERY)),\n {'User-Agent': 'Flipside_Flow_metadata/0.1','Accept-Encoding': 'gzip', 'Content-Type': 'application/json', 'Accept': 'application/json','Connection': 'keep-alive'},\n {},\n '_FSC_SYS/ALLDAY'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2795873, "supported_languages": null}, "macro.livequery_models.config_coingecko_udfs": {"name": "config_coingecko_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/coingecko/udfs.yaml.sql", "original_file_path": "macros/marketplace/coingecko/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_coingecko_udfs", "macro_sql": "{% macro config_coingecko_udfs(schema_name = \"coingecko\", utils_schema_name=\"coingecko_utils\") -%}\n{#\n This macro is used to generate the Coingecko Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the CoinGecko API. [CoinGecko docs here](https://apiguide.coingecko.com/getting-started/introduction).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://pro-api.coingecko.com', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'x-cg-pro-api-key': '{API_KEY}'},\n {},\n '_FSC_SYS/COINGECKO'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path after '/api' starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the CoinGecko API. [CoinGecko docs here](https://apiguide.coingecko.com/getting-started/introduction).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://pro-api.coingecko.com', PATH),\n {'x-cg-pro-api-key': '{API_KEY}'},\n BODY,\n '_FSC_SYS/COINGECKO'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2803314, "supported_languages": null}, "macro.livequery_models.config_slack_utils_udfs": {"name": "config_slack_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/slack/utils_udfs.yaml.sql", "original_file_path": "macros/marketplace/slack/utils_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_slack_utils_udfs", "macro_sql": "{% macro config_slack_utils_udfs(schema_name = \"slack_utils\", utils_schema_name = \"slack_utils\") -%}\n{#\n This macro is used to generate API calls to Slack API endpoints\n #}\n- name: {{ schema_name }}.post_webhook\n signature:\n - [WEBHOOK_SECRET_NAME, STRING, \"Name of webhook secret in vault (e.g., 'alerts', 'notifications')\"]\n - [PAYLOAD, OBJECT, Complete Slack message payload according to Slack API spec]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$Send a message to Slack via webhook. User provides secret name for webhook URL stored in vault.$$\n sql: |\n SELECT CASE\n WHEN WEBHOOK_SECRET_NAME IS NULL OR WEBHOOK_SECRET_NAME = '' THEN\n OBJECT_CONSTRUCT('ok', false, 'error', 'webhook_secret_name is required')\n WHEN PAYLOAD IS NULL THEN\n OBJECT_CONSTRUCT('ok', false, 'error', 'payload is required')\n ELSE\n {% set v2_exists = is_udf_api_v2_compatible() %}\n {% if v2_exists -%}\n live.udf_api_v2(\n 'POST',\n '{WEBHOOK_URL}',\n OBJECT_CONSTRUCT('Content-Type', 'application/json'),\n PAYLOAD,\n IFF(_utils.udf_whoami() <> CURRENT_USER(),\n '_FSC_SYS/SLACK/' || WEBHOOK_SECRET_NAME,\n 'Vault/prod/data_platform/slack/' || WEBHOOK_SECRET_NAME),\n TRUE\n )\n {%- else -%}\n live.udf_api(\n 'POST',\n '{WEBHOOK_URL}',\n OBJECT_CONSTRUCT('Content-Type', 'application/json'),\n PAYLOAD,\n IFF(_utils.udf_whoami() <> CURRENT_USER(),\n '_FSC_SYS/SLACK/' || WEBHOOK_SECRET_NAME,\n 'Vault/prod/data_platform/slack/' || WEBHOOK_SECRET_NAME)\n )\n {%- endif %}\n END as response\n\n- name: {{ schema_name }}.post_message\n signature:\n - [CHANNEL, STRING, \"Slack channel ID (e.g. 'C1234567890')\"]\n - [PAYLOAD, OBJECT, Message payload according to Slack chat.postMessage API spec]\n - [BOT_SECRET_NAME, STRING, \"Name of bot token secret in vault (optional, default: 'intelligence')\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$Send a message to Slack via Web API chat.postMessage with custom bot token. User provides complete payload according to Slack API spec.$$\n sql: |\n SELECT CASE\n WHEN CHANNEL IS NULL OR CHANNEL = '' THEN\n OBJECT_CONSTRUCT('ok', false, 'error', 'channel is required')\n WHEN PAYLOAD IS NULL THEN\n OBJECT_CONSTRUCT('ok', false, 'error', 'payload is required')\n ELSE\n {% set v2_exists = is_udf_api_v2_compatible() %}\n {% if v2_exists -%}\n live.udf_api_v2(\n 'POST',\n 'https://slack.com/api/chat.postMessage',\n OBJECT_CONSTRUCT(\n 'Authorization', 'Bearer {BOT_TOKEN}',\n 'Content-Type', 'application/json'\n ),\n OBJECT_INSERT(PAYLOAD, 'channel', CHANNEL),\n IFF(_utils.udf_whoami() <> CURRENT_USER(),\n '_FSC_SYS/SLACK/' || COALESCE(BOT_SECRET_NAME, 'intelligence'),\n 'Vault/prod/data_platform/slack/' || COALESCE(BOT_SECRET_NAME, 'intelligence')),\n TRUE\n )\n {%- else -%}\n live.udf_api(\n 'POST',\n 'https://slack.com/api/chat.postMessage',\n OBJECT_CONSTRUCT(\n 'Authorization', 'Bearer {BOT_TOKEN}',\n 'Content-Type', 'application/json'\n ),\n OBJECT_INSERT(PAYLOAD, 'channel', CHANNEL),\n IFF(_utils.udf_whoami() <> CURRENT_USER(),\n '_FSC_SYS/SLACK/' || COALESCE(BOT_SECRET_NAME, 'intelligence'),\n 'Vault/prod/data_platform/slack/' || COALESCE(BOT_SECRET_NAME, 'intelligence'))\n )\n {%- endif %}\n END as response\n\n- name: {{ schema_name }}.post_message\n signature:\n - [CHANNEL, STRING, \"Slack channel ID (e.g. 'C1234567890')\"]\n - [PAYLOAD, OBJECT, Message payload according to Slack chat.postMessage API spec]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$Send a message to Slack via Web API chat.postMessage. User provides complete payload according to Slack API spec.$$\n sql: |\n SELECT {{ schema_name }}.post_message(\n CHANNEL,\n PAYLOAD,\n 'intelligence'\n ) as response\n\n- name: {{ schema_name }}.post_reply\n signature:\n - [CHANNEL, STRING, \"Slack channel ID (e.g. 'C1234567890')\"]\n - [THREAD_TS, STRING, Parent message timestamp for threading]\n - [PAYLOAD, OBJECT, Message payload according to Slack chat.postMessage API spec]\n - [BOT_SECRET_NAME, STRING, \"Name of bot token secret in vault (optional, default: 'intelligence')\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$Send a threaded reply to Slack via Web API with custom bot token. User provides complete payload according to Slack API spec.$$\n sql: |\n SELECT CASE\n WHEN CHANNEL IS NULL OR CHANNEL = '' THEN\n OBJECT_CONSTRUCT('ok', false, 'error', 'channel is required')\n WHEN THREAD_TS IS NULL OR THREAD_TS = '' THEN\n OBJECT_CONSTRUCT('ok', false, 'error', 'thread_ts is required')\n WHEN PAYLOAD IS NULL THEN\n OBJECT_CONSTRUCT('ok', false, 'error', 'payload is required')\n ELSE\n {% set v2_exists = is_udf_api_v2_compatible() %}\n {% if v2_exists -%}\n live.udf_api_v2(\n 'POST',\n 'https://slack.com/api/chat.postMessage',\n OBJECT_CONSTRUCT(\n 'Authorization', 'Bearer {BOT_TOKEN}',\n 'Content-Type', 'application/json'\n ),\n OBJECT_INSERT(\n OBJECT_INSERT(PAYLOAD, 'channel', CHANNEL),\n 'thread_ts', THREAD_TS\n ),\n IFF(_utils.udf_whoami() <> CURRENT_USER(),\n '_FSC_SYS/SLACK/' || COALESCE(BOT_SECRET_NAME, 'intelligence'),\n 'Vault/prod/data_platform/slack/' || COALESCE(BOT_SECRET_NAME, 'intelligence')),\n TRUE\n )\n {%- else -%}\n live.udf_api(\n 'POST',\n 'https://slack.com/api/chat.postMessage',\n OBJECT_CONSTRUCT(\n 'Authorization', 'Bearer {BOT_TOKEN}',\n 'Content-Type', 'application/json'\n ),\n OBJECT_INSERT(\n OBJECT_INSERT(PAYLOAD, 'channel', CHANNEL),\n 'thread_ts', THREAD_TS\n ),\n IFF(_utils.udf_whoami() <> CURRENT_USER(),\n '_FSC_SYS/SLACK/' || COALESCE(BOT_SECRET_NAME, 'intelligence'),\n 'Vault/prod/data_platform/slack/' || COALESCE(BOT_SECRET_NAME, 'intelligence'))\n )\n {%- endif %}\n END as response\n\n- name: {{ schema_name }}.post_reply\n signature:\n - [CHANNEL, STRING, \"Slack channel ID (e.g. 'C1234567890')\"]\n - [THREAD_TS, STRING, Parent message timestamp for threading]\n - [PAYLOAD, OBJECT, Message payload according to Slack chat.postMessage API spec]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$Send a threaded reply to Slack via Web API. User provides complete payload according to Slack API spec.$$\n sql: |\n SELECT {{ schema_name }}.post_reply(\n CHANNEL,\n THREAD_TS,\n PAYLOAD,\n 'intelligence'\n ) as response\n\n- name: {{ schema_name }}.validate_webhook_url\n signature:\n - [WEBHOOK_URL, STRING, Webhook URL to validate]\n return_type:\n - \"BOOLEAN\"\n options: |\n COMMENT = $$Validate if a string is a proper Slack webhook URL format.$$\n sql: |\n SELECT WEBHOOK_URL IS NOT NULL\n AND STARTSWITH(WEBHOOK_URL, 'https://hooks.slack.com/services/')\n AND LENGTH(WEBHOOK_URL) > 50\n\n- name: {{ schema_name }}.validate_bot_token\n signature:\n - [BOT_TOKEN, STRING, Bot token to validate]\n return_type:\n - \"BOOLEAN\"\n options: |\n COMMENT = $$Validate if a string is a proper Slack bot token format.$$\n sql: |\n SELECT BOT_TOKEN IS NOT NULL\n AND STARTSWITH(BOT_TOKEN, 'xoxb-')\n AND LENGTH(BOT_TOKEN) > 20\n\n- name: {{ schema_name }}.validate_channel\n signature:\n - [CHANNEL, STRING, \"Channel ID to validate\"]\n return_type:\n - \"BOOLEAN\"\n options: |\n COMMENT = $$Validate if a string is a proper Slack channel ID format (API requires IDs, not names).$$\n sql: |\n SELECT CHANNEL IS NOT NULL\n AND LENGTH(CHANNEL) > 0\n AND (\n STARTSWITH(CHANNEL, 'C') OR -- Public channel ID\n STARTSWITH(CHANNEL, 'D') OR -- Direct message ID\n STARTSWITH(CHANNEL, 'G') -- Private channel/group ID\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.is_udf_api_v2_compatible"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2866023, "supported_languages": null}, "macro.livequery_models.config_slack_messaging_udfs": {"name": "config_slack_messaging_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/slack/messaging_udfs.yaml.sql", "original_file_path": "macros/marketplace/slack/messaging_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_slack_messaging_udfs", "macro_sql": "{% macro config_slack_messaging_udfs(schema_name = \"slack\", utils_schema_name = \"slack_utils\") -%}\n{#\n This macro is used to generate API calls to Slack API endpoints\n#}\n\n{# Slack Webhook Messages #}\n- name: {{ schema_name }}.webhook_send\n signature:\n - [WEBHOOK_SECRET_NAME, STRING, \"Name of webhook secret in vault (e.g., 'alerts', 'notifications')\"]\n - [PAYLOAD, OBJECT, Complete Slack message payload according to Slack API spec]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = 'Send a message to Slack via webhook [API docs: Webhooks](https://api.slack.com/messaging/webhooks)'\n sql: |\n SELECT slack_utils.post_webhook(\n WEBHOOK_SECRET_NAME,\n PAYLOAD\n ) as response\n\n{# Slack Web API Messages #}\n- name: {{ schema_name }}.post_message\n signature:\n - [CHANNEL, STRING, \"Slack channel ID (e.g. 'C1234567890')\"]\n - [PAYLOAD, OBJECT, Message payload according to Slack chat.postMessage API spec]\n - [BOT_SECRET_NAME, STRING, \"Name of bot token secret in vault (optional, default: 'intelligence')\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = 'Send a message to Slack via Web API with custom bot token [API docs: chat.postMessage](https://api.slack.com/methods/chat.postMessage)'\n sql: |\n SELECT slack_utils.post_message(\n CHANNEL,\n PAYLOAD,\n COALESCE(BOT_SECRET_NAME, 'intelligence')\n ) as response\n\n- name: {{ schema_name }}.post_message\n signature:\n - [CHANNEL, STRING, \"Slack channel ID (e.g. 'C1234567890')\"]\n - [PAYLOAD, OBJECT, Message payload according to Slack chat.postMessage API spec]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = 'Send a message to Slack via Web API [API docs: chat.postMessage](https://api.slack.com/methods/chat.postMessage)'\n sql: |\n SELECT {{ schema_name }}.post_message(\n CHANNEL,\n PAYLOAD,\n 'intelligence'\n ) as response\n\n- name: {{ schema_name }}.post_reply\n signature:\n - [CHANNEL, STRING, \"Slack channel ID (e.g. 'C1234567890')\"]\n - [THREAD_TS, STRING, Parent message timestamp for threading]\n - [PAYLOAD, OBJECT, Message payload according to Slack chat.postMessage API spec]\n - [BOT_SECRET_NAME, STRING, \"Name of bot token secret in vault (optional, default: 'intelligence')\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = 'Send a threaded reply to Slack via Web API with custom bot token [API docs: chat.postMessage](https://api.slack.com/methods/chat.postMessage)'\n sql: |\n SELECT slack_utils.post_reply(\n CHANNEL,\n THREAD_TS,\n PAYLOAD,\n COALESCE(BOT_SECRET_NAME, 'intelligence')\n ) as response\n\n\n- name: {{ schema_name }}.post_reply\n signature:\n - [CHANNEL, STRING, \"Slack channel ID (e.g. 'C1234567890')\"]\n - [THREAD_TS, STRING, Parent message timestamp for threading]\n - [PAYLOAD, OBJECT, Message payload according to Slack chat.postMessage API spec]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = 'Send a threaded reply to Slack via Web API [API docs: chat.postMessage](https://api.slack.com/methods/chat.postMessage)'\n sql: |\n SELECT {{ schema_name }}.post_reply(\n CHANNEL,\n THREAD_TS,\n PAYLOAD,\n 'intelligence'\n ) as response\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2886007, "supported_languages": null}, "macro.livequery_models.config_dapplooker_udfs": {"name": "config_dapplooker_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/dapplooker/udfs.yaml.sql", "original_file_path": "macros/marketplace/dapplooker/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_dapplooker_udfs", "macro_sql": "{% macro config_dapplooker_udfs(schema_name = \"dapplooker\", utils_schema_name = \"dapplooker_utils\") -%}\n{#\n This macro is used to generate the DappLooker endpoints\n #}\n\n- name: {{ schema_name -}}.get_chart\n signature:\n - [CHART_ID, STRING, The UUID of the chart]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns the chart data. [DappLooker docs here](https://github.com/dapplooker/dapplooker-sdk).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.dapplooker.com/chart/', CHART_ID, '?api_key={API_KEY}&output_format=json'),\n {},\n {},\n '_FSC_SYS/DAPPLOOKER'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2891314, "supported_languages": null}, "macro.livequery_models.claude_get_api_call": {"name": "claude_get_api_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/claude/claude_config_utils.sql", "original_file_path": "macros/marketplace/claude/claude_config_utils.sql", "unique_id": "macro.livequery_models.claude_get_api_call", "macro_sql": "{% macro claude_get_api_call(schema_name, api_path) %}\nSELECT {{ schema_name }}.get(\n '{{ api_path }}'\n) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2896526, "supported_languages": null}, "macro.livequery_models.claude_post_api_call": {"name": "claude_post_api_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/claude/claude_config_utils.sql", "original_file_path": "macros/marketplace/claude/claude_config_utils.sql", "unique_id": "macro.livequery_models.claude_post_api_call", "macro_sql": "{% macro claude_post_api_call(schema_name, api_path, body) %}\nSELECT {{ schema_name }}.post(\n '{{ api_path }}',\n {{ body }}\n) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2900047, "supported_languages": null}, "macro.livequery_models.claude_delete_api_call": {"name": "claude_delete_api_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/claude/claude_config_utils.sql", "original_file_path": "macros/marketplace/claude/claude_config_utils.sql", "unique_id": "macro.livequery_models.claude_delete_api_call", "macro_sql": "{% macro claude_delete_api_call(schema_name, api_path) %}\nSELECT {{ schema_name }}.delete_method(\n '{{ api_path }}'\n) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2902813, "supported_languages": null}, "macro.livequery_models.config_claude_models_udfs": {"name": "config_claude_models_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/claude/models_udfs.yaml.sql", "original_file_path": "macros/marketplace/claude/models_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_claude_models_udfs", "macro_sql": "{% macro config_claude_models_udfs(schema_name = \"claude\", utils_schema_name = \"claude_utils\") -%}\n{#\n This macro is used to generate API calls to Claude API endpoints\n #}\n\n{# Claude API Models #}\n- name: {{ schema_name -}}.list_models\n signature: []\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$List available Claude models [API docs: List Models](https://docs.anthropic.com/claude/reference/models_get)$$\n sql: |\n SELECT claude_utils.get_api(\n '/v1/models'\n ) as response\n\n- name: {{ schema_name -}}.get_model\n signature:\n - [MODEL, STRING, The model name to get details for (e.g. 'claude-3-opus-20240229')]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get details for a specific Claude model [API docs: Get Model](https://docs.anthropic.com/claude/reference/models_retrieve)$$\n sql: |\n SELECT claude_utils.get_api(\n CONCAT('/v1/models/', MODEL)\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2910414, "supported_languages": null}, "macro.livequery_models.config_claude_utils_udfs": {"name": "config_claude_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/claude/util_udfs.yaml.sql", "original_file_path": "macros/marketplace/claude/util_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_claude_utils_udfs", "macro_sql": "{% macro config_claude_utils_udfs(schema_name = \"claude_utils\", utils_schema_name = \"claude_utils\") -%}\n{#\n This macro is used to generate API calls to Claude API endpoints\n #}\n- name: {{ schema_name -}}.post_api\n signature:\n - [PATH, STRING, The API endpoint path]\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Make calls to Claude API [API docs: Claude](https://docs.anthropic.com/claude/reference/getting-started-with-the-api)$$\n sql: |\n SELECT\n {% set v2_exists = is_udf_api_v2_compatible() %}\n {% if v2_exists -%}\n live.udf_api_v2(\n 'POST',\n CONCAT('https://api.anthropic.com', PATH),\n {\n 'anthropic-version': '2023-06-01',\n 'x-api-key': '{API_KEY}',\n 'content-type': 'application/json'\n },\n BODY,\n IFF(_utils.udf_whoami() <> CURRENT_USER(),\n '_FSC_SYS/CLAUDE',\n 'Vault/prod/data_platform/claude'\n ),\n TRUE\n )\n {%- else -%}\n live.udf_api(\n 'POST',\n CONCAT('https://api.anthropic.com', PATH),\n {\n 'anthropic-version': '2023-06-01',\n 'x-api-key': '{API_KEY}',\n 'content-type': 'application/json'\n },\n BODY,\n IFF(_utils.udf_whoami() <> CURRENT_USER(),\n '_FSC_SYS/CLAUDE',\n 'Vault/prod/data_platform/claude'\n )\n )\n {%- endif %}\n as response\n\n- name: {{ schema_name -}}.get_api\n signature:\n - [PATH, STRING, The API endpoint path]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Make GET requests to Claude API [API docs: Get](https://docs.anthropic.com/claude/reference/get)$$\n sql: |\n SELECT\n {% set v2_exists = is_udf_api_v2_compatible() %}\n {% if v2_exists -%}\n live.udf_api_v2(\n 'GET',\n CONCAT('https://api.anthropic.com', PATH),\n {\n 'anthropic-version': '2023-06-01',\n 'x-api-key': '{API_KEY}',\n 'content-type': 'application/json'\n },\n NULL,\n IFF(_utils.udf_whoami() <> CURRENT_USER(),\n '_FSC_SYS/CLAUDE',\n 'Vault/prod/data_platform/claude'\n ),\n TRUE\n )\n {%- else -%}\n live.udf_api(\n 'GET',\n CONCAT('https://api.anthropic.com', PATH),\n {\n 'anthropic-version': '2023-06-01',\n 'x-api-key': '{API_KEY}',\n 'content-type': 'application/json'\n },\n NULL,\n IFF(_utils.udf_whoami() <> CURRENT_USER(),\n '_FSC_SYS/CLAUDE',\n 'Vault/prod/data_platform/claude'\n )\n )\n {%- endif %}\n as response\n\n- name: {{ schema_name -}}.delete_method\n signature:\n - [PATH, STRING, The API endpoint path]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Make DELETE requests to Claude API [API docs: Delete](https://docs.anthropic.com/claude/reference/delete)$$\n sql: |\n SELECT\n {% set v2_exists = is_udf_api_v2_compatible() %}\n {% if v2_exists -%}\n live.udf_api_v2(\n 'DELETE',\n CONCAT('https://api.anthropic.com', PATH),\n {\n 'anthropic-version': '2023-06-01',\n 'x-api-key': '{API_KEY}',\n 'content-type': 'application/json'\n },\n NULL,\n IFF(_utils.udf_whoami() <> CURRENT_USER(),\n '_FSC_SYS/CLAUDE',\n 'Vault/prod/data_platform/claude'\n ),\n TRUE\n )\n {%- else -%}\n live.udf_api(\n 'DELETE',\n CONCAT('https://api.anthropic.com', PATH),\n {\n 'anthropic-version': '2023-06-01',\n 'x-api-key': '{API_KEY}',\n 'content-type': 'application/json'\n },\n NULL,\n IFF(_utils.udf_whoami() <> CURRENT_USER(),\n '_FSC_SYS/CLAUDE',\n 'Vault/prod/data_platform/claude'\n )\n )\n {%- endif %}\n as response\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.is_udf_api_v2_compatible"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2940006, "supported_languages": null}, "macro.livequery_models.config_claude_messages_batch_udfs": {"name": "config_claude_messages_batch_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/claude/messages_batch_udfs.yaml.sql", "original_file_path": "macros/marketplace/claude/messages_batch_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_claude_messages_batch_udfs", "macro_sql": "{% macro config_claude_messages_batch_udfs(schema_name = \"claude\", utils_schema_name = \"claude_utils\") -%}\n{#\n This macro is used to generate API calls to Claude API endpoints\n #}\n\n{# Claude API Messages Batch #}\n- name: {{ schema_name -}}.post_messages_batch\n signature:\n - [MESSAGES, OBJECT, Object of array of message objects]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Send a batch of messages to Claude and get responses [API docs: Messages Batch](https://docs.anthropic.com/en/api/creating-message-batches)$$\n sql: |\n SELECT claude_utils.post_api(\n '/v1/messages/batches',\n MESSAGES\n ) as response\n\n{# Claude API Messages Batch Operations #}\n- name: {{ schema_name -}}.get_message_batch\n signature:\n - [MESSAGE_BATCH_ID, STRING, ID of the Message Batch to retrieve]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Retrieve details of a specific Message Batch [API docs: Retrieve Message Batch](https://docs.anthropic.com/en/api/retrieving-message-batches)$$\n sql: |\n SELECT claude_utils.get_api(\n CONCAT('/v1/messages/batches/', MESSAGE_BATCH_ID)\n ) as response\n\n- name: {{ schema_name -}}.get_message_batch_results\n signature:\n - [MESSAGE_BATCH_ID, STRING, ID of the Message Batch to retrieve results for]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Retrieve results of a Message Batch [API docs: Retrieve Message Batch Results](https://docs.anthropic.com/en/api/retrieving-message-batches)$$\n sql: |\n SELECT claude_utils.get_api(\n CONCAT('/v1/messages/batches/', MESSAGE_BATCH_ID, '/results')\n ) as response\n\n- name: {{ schema_name -}}.list_message_batches\n signature: []\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$List all Message Batches [API docs: List Message Batches](https://docs.anthropic.com/en/api/retrieving-message-batches)$$\n sql: |\n SELECT claude_utils.get_api(\n '/v1/messages/batches'\n ) as response\n\n- name: {{ schema_name -}}.list_message_batches_with_before\n signature:\n - [BEFORE_ID, STRING, ID of the Message Batch to start listing from]\n - [LIMIT, INTEGER, Maximum number of Message Batches to return]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$List all Message Batches [API docs: List Message Batches](https://docs.anthropic.com/en/api/retrieving-message-batches)$$\n sql: |\n SELECT claude_utils.get_api(\n CONCAT('/v1/messages/batches',\n '?before_id=', COALESCE(BEFORE_ID, ''),\n '&limit=', COALESCE(LIMIT::STRING, '')\n )\n ) as response\n\n- name: {{ schema_name -}}.list_message_batches_with_after\n signature:\n - [AFTER_ID, STRING, ID of the Message Batch to start listing from]\n - [LIMIT, INTEGER, Maximum number of Message Batches to return]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$List all Message Batches [API docs: List Message Batches](https://docs.anthropic.com/en/api/retrieving-message-batches)$$\n sql: |\n SELECT claude_utils.get_api(\n CONCAT('/v1/messages/batches',\n '?after_id=', COALESCE(AFTER_ID, ''),\n '&limit=', COALESCE(LIMIT::STRING, '')\n )\n ) as response\n- name: {{ schema_name -}}.cancel_message_batch\n signature:\n - [MESSAGE_BATCH_ID, STRING, ID of the Message Batch to cancel]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Cancel a Message Batch [API docs: Cancel Message Batch](https://docs.anthropic.com/en/api/retrieving-message-batches)$$\n sql: |\n SELECT claude_utils.post_api(\n CONCAT('/v1/messages/batches/', MESSAGE_BATCH_ID, '/cancel'),\n {}\n ) as response\n\n- name: {{ schema_name -}}.delete_message_batch\n signature:\n - [MESSAGE_BATCH_ID, STRING, ID of the Message Batch to delete]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Delete a Message Batch [API docs: Delete Message Batch](https://docs.anthropic.com/en/api/retrieving-message-batches)$$\n sql: |\n SELECT claude_utils.delete_method(\n CONCAT('/v1/messages/batches/', MESSAGE_BATCH_ID)\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.296606, "supported_languages": null}, "macro.livequery_models.config_claude_messages_udfs": {"name": "config_claude_messages_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/claude/messages_udfs.yaml.sql", "original_file_path": "macros/marketplace/claude/messages_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_claude_messages_udfs", "macro_sql": "{% macro config_claude_messages_udfs(schema_name = \"claude\", utils_schema_name = \"claude_utils\") -%}\n{#\n This macro is used to generate API calls to Claude API endpoints\n #}\n\n{# Claude API Messages #}\n- name: {{ schema_name -}}.post_messages\n signature:\n - [MESSAGES, ARRAY, Array of message objects]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Send a message to Claude and get a response [API docs: Messages](https://docs.anthropic.com/claude/reference/messages_post)$$\n sql: |\n SELECT claude_utils.post_api(\n '/v1/messages',\n {\n 'model': 'claude-3-5-sonnet-20241022',\n 'messages': MESSAGES,\n 'max_tokens': 4096\n }\n ) as response\n\n- name: {{ schema_name -}}.post_messages\n signature:\n - [MODEL, STRING, The model to use (e.g. 'claude-3-opus-20240229')]\n - [MESSAGES, ARRAY, Array of message objects]\n - [MAX_TOKENS, INTEGER, Maximum number of tokens to generate]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Send a message to Claude and get a response [API docs: Messages](https://docs.anthropic.com/claude/reference/messages_post)$$\n sql: |\n SELECT claude_utils.post_api(\n '/v1/messages',\n {\n 'model': COALESCE(MODEL, 'claude-3-5-sonnet-20241022'),\n 'messages': MESSAGES,\n 'max_tokens': COALESCE(MAX_TOKENS, 1024)\n }\n ) as response\n\n- name: {{ schema_name -}}.post_messages\n signature:\n - [MODEL, STRING, The model to use (e.g. 'claude-3-opus-20240229')]\n - [MESSAGES, ARRAY, Array of message objects]\n - [MAX_TOKENS, INTEGER, Maximum number of tokens to generate]\n - [TEMPERATURE, FLOAT, Temperature for sampling (0-1)]\n - [TOP_K, INTEGER, Top K for sampling]\n - [TOP_P, FLOAT, Top P for sampling]\n - [SYSTEM, STRING, System prompt to use]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Send a message to Claude and get a response [API docs: Messages](https://docs.anthropic.com/claude/reference/messages_post)$$\n sql: |\n SELECT claude_utils.post_api(\n '/v1/messages',\n {\n 'model': MODEL,\n 'messages': MESSAGES,\n 'max_tokens': MAX_TOKENS,\n 'temperature': TEMPERATURE,\n 'top_k': TOP_K,\n 'top_p': TOP_P,\n 'system': SYSTEM\n }\n ) as response\n\n- name: {{ schema_name -}}.count_message_tokens\n signature:\n - [MODEL, STRING, The model to use (e.g. 'claude-3-5-sonnet-20241022')]\n - [MESSAGES, ARRAY, Array of message objects]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Count tokens in a message array before sending to Claude [API docs: Count Tokens](https://docs.anthropic.com/claude/reference/counting-tokens)$$\n sql: |\n SELECT claude_utils.post_api(\n '/v1/messages/count_tokens',\n {\n 'model': COALESCE(MODEL, 'claude-3-5-sonnet-20241022'),\n 'messages': MESSAGES\n }\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2982366, "supported_languages": null}, "macro.livequery_models.config_strangelove_udfs": {"name": "config_strangelove_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/strangelove/udfs.yaml.sql", "original_file_path": "macros/marketplace/strangelove/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_strangelove_udfs", "macro_sql": "{% macro config_strangelove_udfs(schema_name = \"strangelove\", utils_schema_name = \"strangelove_utils\") -%}\n{#\n This macro is used to generate the Subquery Calls\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [URL, STRING, The url to issue a get request to]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Issue a GET request to a Strangelove Endpoint [Strangelove docs here](https://voyager.strange.love/docs/cosmoshub/mainnet#/).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat(\n URL, '?',\n utils.udf_object_to_url_query_string(QUERY_ARGS)\n ),\n {'x-apikey': '{API_KEY}'},\n {},\n '_FSC_SYS/STRANGELOVE'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [URL, STRING, The url to issue a post request to]\n - [QUERY, OBJECT, The body of the request]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Issue a POST request to a Strangelove Endpoint [Strangelove docs here](https://voyager.strange.love/docs/cosmoshub/mainnet#/).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n URL,\n {'x-apikey': '{API_KEY}'},\n QUERY,\n '_FSC_SYS/STRANGELOVE'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.299009, "supported_languages": null}, "macro.livequery_models.config_dune_udfs": {"name": "config_dune_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/dune/udfs.yaml.sql", "original_file_path": "macros/marketplace/dune/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_dune_udfs", "macro_sql": "{% macro config_dune_udfs(schema_name = \"dune\", utils_schema_name=\"dune_utils\") -%}\n{#\n This macro is used to generate the Dune Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Dune API. [Dune docs here](https://dune.com/docs/api/api-reference/authentication/).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.dune.com', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'x-dune-api-key': '{API_KEY}'},\n {},\n '_FSC_SYS/DUNE'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Dune API. [Dune docs here](https://dune.com/docs/api/api-reference/authentication/).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://api.dune.com', PATH),\n {'x-dune-api-key': '{API_KEY}'},\n BODY,\n '_FSC_SYS/DUNE'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.2997437, "supported_languages": null}, "macro.livequery_models.config_fred_udfs": {"name": "config_fred_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/fred/udfs.yaml.sql", "original_file_path": "macros/marketplace/fred/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_fred_udfs", "macro_sql": "{% macro config_fred_udfs(schema_name = \"fred\", utils_schema_name = \"fred_utils\") -%}\n{#\n This macro is used to generate the FRED Calls\n #}\n- name: {{ schema_name -}}.get_series\n signature:\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get a FRED series [FRED docs here](https://fred.stlouisfed.org/docs/api/fred/series.html).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.stlouisfed.org/fred/series/observations?api_key={API_KEY}&', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {},\n {},\n '_FSC_SYS/FRED'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3002756, "supported_languages": null}, "macro.livequery_models.config_espn_udfs": {"name": "config_espn_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/espn/udfs.yaml.sql", "original_file_path": "macros/marketplace/espn/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_espn_udfs", "macro_sql": "{% macro config_espn_udfs(schema_name = \"espn\", utils_schema_name=\"espn_utils\") -%}\n{#\n This macro is used to generate the ESPN Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [URL, STRING, The full url including the path]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the ESPN API. [ESPN docs here](https://gist.github.com/akeaswaran/b48b02f1c94f873c6655e7129910fc3b#file-espn-api-docs-md).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat(URL, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {},\n {}\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [URL, STRING, The full url]\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the ESPN API. [ESPN docs here](https://gist.github.com/akeaswaran/b48b02f1c94f873c6655e7129910fc3b#file-espn-api-docs-md).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n URL,\n {},\n BODY\n ) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3009882, "supported_languages": null}, "macro.livequery_models.config_solscan_udfs": {"name": "config_solscan_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/solscan/udfs.yaml.sql", "original_file_path": "macros/marketplace/solscan/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_solscan_udfs", "macro_sql": "{% macro config_solscan_udfs(schema_name = \"solscan\", utils_schema_name=\"solscan_utils\") -%}\n{#\n This macro is used to generate the Solscan Base endpoints\n #}\n\n- name: {{ schema_name -}}.pro_api_get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Private Solscan API. [Solscan docs here](https://pro-api.solscan.io/pro-api-docs/v1.0).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://pro-api.solscan.io', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'token': '{API_KEY}'},\n {},\n '_FSC_SYS/SOLSCAN'\n ) as response\n\n- name: {{ schema_name -}}.pro_api_post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Private Solscan API. [Solscan docs here](https://pro-api.solscan.io/pro-api-docs/v1.0).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://pro-api.solscan.io', PATH),\n {'token': '{API_KEY}'},\n BODY,\n '_FSC_SYS/SOLSCAN'\n ) as response\n\n- name: {{ schema_name -}}.public_api_get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Public Solscan API. [Solscan docs here](https://public-api.solscan.io/docs/#/).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://public-api.solscan.io', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'token': '{API_KEY}'},\n {},\n '_FSC_SYS/SOLSCAN'\n ) as response\n\n- name: {{ schema_name -}}.public_api_post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Public Solscan API. [Solscan docs here](https://public-api.solscan.io/docs/#/).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://public-api.solscan.io', PATH),\n {'token': '{API_KEY}'},\n BODY,\n '_FSC_SYS/SOLSCAN'\n ) as response\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3022752, "supported_languages": null}, "macro.livequery_models.config_dappradar_udfs": {"name": "config_dappradar_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/dappradar/udfs.yaml.sql", "original_file_path": "macros/marketplace/dappradar/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_dappradar_udfs", "macro_sql": "{% macro config_dappradar_udfs(schema_name = \"dappradar\", utils_schema_name=\"dappradar_utils\") -%}\n{#\n This macro is used to generate the DappRadar Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the DappRadar API. [DappRadar docs here](https://api-docs.dappradar.com/#section/Introduction).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://apis.dappradar.com', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'X-API-KEY': '{API_KEY}'},\n {},\n '_FSC_SYS/DAPPRADAR'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the DappRadar API. [DappRadar docs here](https://api-docs.dappradar.com/#section/Introduction).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://apis.dappradar.com', PATH),\n {'X-API-KEY': '{API_KEY}'},\n BODY,\n '_FSC_SYS/DAPPRADAR'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3030522, "supported_languages": null}, "macro.livequery_models.config_covalent_udfs": {"name": "config_covalent_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/covalent/udfs.yaml.sql", "original_file_path": "macros/marketplace/covalent/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_covalent_udfs", "macro_sql": "{% macro config_covalent_udfs(schema_name = \"covalent\", utils_schema_name=\"covalent_utils\") -%}\n{#\n This macro is used to generate the Covalent Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Covalent API. [Covalent docs here](https://www.covalenthq.com/docs/unified-api/).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.covalenthq.com', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'Authorization': 'Bearer {API_KEY}'},\n {},\n '_FSC_SYS/COVALENT'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Covalent API. [Covalent docs here](https://www.covalenthq.com/docs/unified-api/).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://api.covalenthq.com', PATH),\n {'Authorization': 'Bearer {API_KEY}'},\n BODY,\n '_FSC_SYS/COVALENT'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3037903, "supported_languages": null}, "macro.livequery_models.config_deepnftvalue_udfs": {"name": "config_deepnftvalue_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/deepnftvalue/udfs.yaml.sql", "original_file_path": "macros/marketplace/deepnftvalue/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_deepnftvalue_udfs", "macro_sql": "{% macro config_deepnftvalue_udfs(schema_name = \"deepnftvalue\", utils_schema_name=\"deepnftvalue_utils\") -%}\n{#\n This macro is used to generate the DeepNftValue Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the DeepNftValue API. [DeepNftValue docs here](https://deepnftvalue.readme.io/reference/getting-started-with-deepnftvalue-api).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.deepnftvalue.com', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'Authorization': 'Token {API_KEY}'},\n {},\n '_FSC_SYS/DEEPNFTVALUE'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the DeepNftValue API. [DeepNftValue docs here](https://deepnftvalue.readme.io/reference/getting-started-with-deepnftvalue-api).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://api.deepnftvalue.com', PATH),\n {'Authorization': 'Token {API_KEY}'},\n BODY,\n '_FSC_SYS/DEEPNFTVALUE'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3045647, "supported_languages": null}, "macro.livequery_models.config_github_actions_udtfs": {"name": "config_github_actions_udtfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/github/actions_udtfs.yml.sql", "original_file_path": "macros/marketplace/github/actions_udtfs.yml.sql", "unique_id": "macro.livequery_models.config_github_actions_udtfs", "macro_sql": "{% macro config_github_actions_udtfs(schema_name = \"github_actions\", utils_schema_name = \"github_utils\") -%}\n{#\n This macro is used to generate the Github API Calls\n #}\n- name: {{ schema_name -}}.tf_workflows\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [query, \"OBJECT\"]\n return_type:\n - \"TABLE(id INTEGER, badge_url STRING, created_at TIMESTAMP, html_url STRING, name STRING, node_id STRING, path STRING, state STRING, updated_at TIMESTAMP, url STRING)\"\n options: |\n COMMENT = $$[List repository workflows](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#list-repository-workflows).$$\n sql: |\n WITH workflows AS\n (\n SELECT\n github_actions.workflows(OWNER, REPO, QUERY) AS response\n )\n SELECT\n value:id::INTEGER AS id\n ,value:badge_url::STRING AS badge_url\n ,value:created_at::TIMESTAMP AS created_at\n ,value:html_url::STRING AS html_url\n ,value:name::STRING AS name\n ,value:node_id::STRING AS node_id\n ,value:path::STRING AS path\n ,value:state::STRING AS state\n ,value:updated_at::TIMESTAMP AS updated_at\n ,value:url::STRING AS url\n FROM workflows, LATERAL FLATTEN( input=> response:workflows)\n- name: {{ schema_name -}}.tf_workflows\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n return_type:\n - \"TABLE(id INTEGER, badge_url STRING, created_at TIMESTAMP, html_url STRING, name STRING, node_id STRING, path STRING, state STRING, updated_at TIMESTAMP, url STRING)\"\n options: |\n COMMENT = $$[List repository workflows](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#list-repository-workflows).$$\n sql: |\n SELECT *\n FROM TABLE({{ schema_name -}}.tf_workflows(owner, repo, {}))\n\n- name: {{ schema_name -}}.tf_runs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [query, \"OBJECT\"]\n return_type:\n - \"TABLE(id NUMBER, name STRING, node_id STRING, check_suite_id NUMBER, check_suite_node_id STRING, head_branch STRING, head_sha STRING, run_number NUMBER, event STRING, display_title STRING, status STRING, conclusion STRING, workflow_id NUMBER, url STRING, html_url STRING, pull_requests STRING, created_at TIMESTAMP, updated_at TIMESTAMP, actor OBJECT, run_attempt STRING, run_started_at TIMESTAMP, triggering_actor OBJECT, jobs_url STRING, logs_url STRING, check_suite_url STRING, artifacts_url STRING, cancel_url STRING, rerun_url STRING, workflow_url STRING, head_commit OBJECT, repository OBJECT, head_repository OBJECT)\"\n options: |\n COMMENT = $$Lists all workflow runs for a repository. You can use query parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository).$$\n\n sql: |\n WITH response AS\n (\n SELECT\n github_actions.runs(OWNER, REPO, QUERY) AS response\n )\n SELECT\n value:id::NUMBER AS id\n ,value:name::STRING AS name\n ,value:node_id::STRING AS node_id\n ,value:check_suite_id::NUMBER AS check_suite_id\n ,value:check_suite_node_id::STRING AS check_suite_node_id\n ,value:head_branch::STRING AS head_branch\n ,value:head_sha::STRING AS head_sha\n ,value:run_number::NUMBER AS run_number\n ,value:event::STRING AS event\n ,value:display_title::STRING AS display_title\n ,value:status::STRING AS status\n ,value:conclusion::STRING AS conclusion\n ,value:workflow_id::NUMBER AS workflow_id\n ,value:url::STRING AS url\n ,value:html_url::STRING AS html_url\n ,value:pull_requests::STRING AS pull_requests\n ,value:created_at::TIMESTAMP AS created_at\n ,value:updated_at::TIMESTAMP AS updated_at\n ,value:actor::OBJECT AS actor\n ,value:run_attempt::STRING AS run_attempt\n ,value:run_started_at::TIMESTAMP AS run_started_at\n ,value:triggering_actor::OBJECT AS triggering_actor\n ,value:jobs_url::STRING AS jobs_url\n ,value:logs_url::STRING AS logs_url\n ,value:check_suite_url::STRING AS check_suite_url\n ,value:artifacts_url::STRING AS artifacts_url\n ,value:cancel_url::STRING AS cancel_url\n ,value:rerun_url::STRING AS rerun_url\n ,value:workflow_url::STRING AS workflow_url\n ,value:head_commit::OBJECT AS head_commit\n ,value:repository::OBJECT AS repository\n ,value:head_repository::OBJECT AS head_repository\n FROM response, LATERAL FLATTEN( input=> response:workflow_runs)\n- name: {{ schema_name -}}.tf_runs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n return_type:\n - \"TABLE(id NUMBER, name STRING, node_id STRING, check_suite_id NUMBER, check_suite_node_id STRING, head_branch STRING, head_sha STRING, run_number NUMBER, event STRING, display_title STRING, status STRING, conclusion STRING, workflow_id NUMBER, url STRING, html_url STRING, pull_requests STRING, created_at TIMESTAMP, updated_at TIMESTAMP, actor OBJECT, run_attempt STRING, run_started_at TIMESTAMP, triggering_actor OBJECT, jobs_url STRING, logs_url STRING, check_suite_url STRING, artifacts_url STRING, cancel_url STRING, rerun_url STRING, workflow_url STRING, head_commit OBJECT, repository OBJECT, head_repository OBJECT)\"\n options: |\n COMMENT = $$Lists all workflow runs for a repository. You can use query parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository).$$\n sql: |\n SELECT *\n FROM TABLE({{ schema_name -}}.tf_runs(owner, repo, {}))\n\n- name: {{ schema_name -}}.tf_workflow_runs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [workflkow_id, \"TEXT\"]\n - [query, \"OBJECT\"]\n return_type:\n - \"TABLE(id NUMBER, name STRING, node_id STRING, check_suite_id NUMBER, check_suite_node_id STRING, head_branch STRING, head_sha STRING, run_number NUMBER, event STRING, display_title STRING, status STRING, conclusion STRING, workflow_id NUMBER, url STRING, html_url STRING, pull_requests STRING, created_at TIMESTAMP, updated_at TIMESTAMP, actor OBJECT, run_attempt STRING, run_started_at TIMESTAMP, triggering_actor OBJECT, jobs_url STRING, logs_url STRING, check_suite_url STRING, artifacts_url STRING, cancel_url STRING, rerun_url STRING, workflow_url STRING, head_commit OBJECT, repository OBJECT, head_repository OBJECT)\"\n options: |\n COMMENT = $$Lists all workflow runs for a repository. You can use query parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository).$$\n sql: |\n WITH response AS\n (\n SELECT\n github_actions.workflow_runs(OWNER, REPO, WORKFLKOW_ID, QUERY) AS response\n )\n SELECT\n value:id::NUMBER AS id\n ,value:name::STRING AS name\n ,value:node_id::STRING AS node_id\n ,value:check_suite_id::NUMBER AS check_suite_id\n ,value:check_suite_node_id::STRING AS check_suite_node_id\n ,value:head_branch::STRING AS head_branch\n ,value:head_sha::STRING AS head_sha\n ,value:run_number::NUMBER AS run_number\n ,value:event::STRING AS event\n ,value:display_title::STRING AS display_title\n ,value:status::STRING AS status\n ,value:conclusion::STRING AS conclusion\n ,value:workflow_id::NUMBER AS workflow_id\n ,value:url::STRING AS url\n ,value:html_url::STRING AS html_url\n ,value:pull_requests::STRING AS pull_requests\n ,value:created_at::TIMESTAMP AS created_at\n ,value:updated_at::TIMESTAMP AS updated_at\n ,value:actor::OBJECT AS actor\n ,value:run_attempt::STRING AS run_attempt\n ,value:run_started_at::TIMESTAMP AS run_started_at\n ,value:triggering_actor::OBJECT AS triggering_actor\n ,value:jobs_url::STRING AS jobs_url\n ,value:logs_url::STRING AS logs_url\n ,value:check_suite_url::STRING AS check_suite_url\n ,value:artifacts_url::STRING AS artifacts_url\n ,value:cancel_url::STRING AS cancel_url\n ,value:rerun_url::STRING AS rerun_url\n ,value:workflow_url::STRING AS workflow_url\n ,value:head_commit::OBJECT AS head_commit\n ,value:repository::OBJECT AS repository\n ,value:head_repository::OBJECT AS head_repository\n FROM response, LATERAL FLATTEN( input=> response:workflow_runs)\n- name: {{ schema_name -}}.tf_workflow_runs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [workflkow_id, \"TEXT\"]\n return_type:\n - \"TABLE(id NUMBER, name STRING, node_id STRING, check_suite_id NUMBER, check_suite_node_id STRING, head_branch STRING, head_sha STRING, run_number NUMBER, event STRING, display_title STRING, status STRING, conclusion STRING, workflow_id NUMBER, url STRING, html_url STRING, pull_requests STRING, created_at TIMESTAMP, updated_at TIMESTAMP, actor OBJECT, run_attempt STRING, run_started_at TIMESTAMP, triggering_actor OBJECT, jobs_url STRING, logs_url STRING, check_suite_url STRING, artifacts_url STRING, cancel_url STRING, rerun_url STRING, workflow_url STRING, head_commit OBJECT, repository OBJECT, head_repository OBJECT)\"\n options: |\n COMMENT = $$Lists all workflow runs for a repository. You can use query parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository).$$\n sql: |\n SELECT *\n FROM TABLE({{ schema_name -}}.tf_workflow_runs(owner, repo, WORKFLKOW_ID, {}))\n\n- name: {{ schema_name -}}.tf_workflow_run_jobs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [run_id, \"TEXT\"]\n - [query, \"OBJECT\"]\n return_type:\n - \"TABLE(id NUMBER, run_id NUMBER, workflow_name STRING, head_branch STRING, run_url STRING, run_attempt NUMBER, node_id STRING, head_sha STRING, url STRING, html_url STRING, status STRING, conclusion STRING, created_at TIMESTAMP, started_at TIMESTAMP, completed_at TIMESTAMP, name STRING, check_run_url STRING, labels VARIANT, runner_id NUMBER, runner_name STRING, runner_group_id NUMBER, runner_group_name STRING, steps VARIANT)\"\n options: |\n COMMENT = $$Lists jobs for a workflow run as a table. [Docs](https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#list-jobs-for-a-workflow-run).$$\n sql: |\n WITH response AS\n (\n SELECT\n github_actions.workflow_run_jobs(OWNER, REPO, RUN_ID, QUERY) AS response\n )\n SELECT\n value:id::NUMBER AS id\n ,value:run_id::NUMBER AS run_id\n ,value:workflow_name::STRING AS workflow_name\n ,value:head_branch::STRING AS head_branch\n ,value:run_url::STRING AS run_url\n ,value:run_attempt::NUMBER AS run_attempt\n ,value:node_id::STRING AS node_id\n ,value:head_sha::STRING AS head_sha\n ,value:url::STRING AS url\n ,value:html_url::STRING AS html_url\n ,value:status::STRING AS status\n ,value:conclusion::STRING AS conclusion\n ,value:created_at::TIMESTAMP AS created_at\n ,value:started_at::TIMESTAMP AS started_at\n ,value:completed_at::TIMESTAMP AS completed_at\n ,value:name::STRING AS name\n ,value:check_run_url::STRING AS check_run_url\n ,value:labels::VARIANT AS labels\n ,value:runner_id::NUMBER AS runner_id\n ,value:runner_name::STRING AS runner_name\n ,value:runner_group_id::NUMBER AS runner_group_id\n ,value:runner_group_name::STRING AS runner_group_name\n ,value:steps::VARIANT AS steps\n FROM response, LATERAL FLATTEN( input=> response:jobs)\n\n- name: {{ schema_name -}}.tf_workflow_run_jobs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [run_id, \"TEXT\"]\n return_type:\n - \"TABLE(id NUMBER, run_id NUMBER, workflow_name STRING, head_branch STRING, run_url STRING, run_attempt NUMBER, node_id STRING, head_sha STRING, url STRING, html_url STRING, status STRING, conclusion STRING, created_at TIMESTAMP, started_at TIMESTAMP, completed_at TIMESTAMP, name STRING, check_run_url STRING, labels VARIANT, runner_id NUMBER, runner_name STRING, runner_group_id NUMBER, runner_group_name STRING, steps VARIANT)\"\n options: |\n COMMENT = $$Lists jobs for a workflow run as a table. [Docs](https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#list-jobs-for-a-workflow-run).$$\n sql: |\n SELECT *\n FROM TABLE({{ schema_name -}}.tf_workflow_run_jobs(owner, repo, run_id, {}))\n\n- name: {{ schema_name -}}.tf_failed_jobs_with_logs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [run_id, \"TEXT\"]\n return_type:\n - \"TABLE(run_id STRING, job_id NUMBER, job_name STRING, job_status STRING, job_conclusion STRING, job_url STRING, workflow_name STRING, failed_steps VARIANT, logs TEXT, failed_step_logs ARRAY)\"\n options: |\n COMMENT = $$Gets failed jobs for a workflow run with their complete logs. Combines job info with log content for analysis.$$\n sql: |\n WITH failed_jobs AS (\n SELECT\n run_id::STRING AS run_id,\n id AS job_id,\n name AS job_name,\n status AS job_status,\n conclusion AS job_conclusion,\n html_url AS job_url,\n workflow_name,\n steps AS failed_steps,\n {{ schema_name -}}.job_logs(owner, repo, job_id::TEXT) AS logs\n FROM TABLE({{ schema_name -}}.tf_workflow_run_jobs(owner, repo, run_id))\n WHERE conclusion = 'failure'\n ),\n error_sections AS (\n SELECT\n run_id,\n job_id,\n job_name,\n job_status,\n job_conclusion,\n job_url,\n workflow_name,\n failed_steps,\n logs,\n ARRAY_AGG(section.value) AS failed_step_logs\n FROM failed_jobs,\n LATERAL FLATTEN(INPUT => SPLIT(logs, '##[group]')) section\n WHERE CONTAINS(section.value, '##[error]')\n GROUP BY run_id, job_id, job_name, job_status, job_conclusion, job_url, workflow_name, failed_steps, logs\n )\n SELECT\n run_id,\n job_id,\n job_name,\n job_status,\n job_conclusion,\n job_url,\n workflow_name,\n failed_steps,\n logs,\n COALESCE(failed_step_logs, ARRAY_CONSTRUCT()) AS failed_step_logs\n FROM failed_jobs\n LEFT JOIN error_sections USING (run_id, job_id)\n\n- name: {{ schema_name -}}.tf_failure_analysis_with_ai\n signature:\n - [owner, \"TEXT\", \"GitHub repository owner/organization name\"]\n - [repo, \"TEXT\", \"GitHub repository name\"]\n - [run_id, \"TEXT\", \"GitHub Actions run ID to analyze\"]\n - [ai_provider, \"TEXT\", \"AI provider to use: 'cortex' (Snowflake built-in AI)\"]\n - [model_name, \"STRING\", \"Model name (required): 'mistral-large', 'mistral-7b', 'llama2-70b-chat', 'mixtral-8x7b'\"]\n - [ai_prompt, \"STRING\", \"Custom AI analysis prompt. Leave empty to use default failure analysis prompt.\"]\n return_type:\n - \"TABLE(run_id STRING, ai_analysis STRING, total_failures NUMBER, failure_metadata ARRAY)\"\n options: |\n COMMENT = $$Gets GitHub Actions failure analysis using Snowflake Cortex AI with custom prompts for Slack notifications.$$\n sql: |\n WITH failure_data AS (\n SELECT\n run_id,\n COUNT(*) as total_failures,\n ARRAY_AGG(OBJECT_CONSTRUCT(\n 'workflow_name', workflow_name,\n 'run_id', run_id,\n 'job_name', job_name,\n 'job_id', job_id,\n 'job_url', job_url,\n 'error_sections', ARRAY_SIZE(failed_step_logs),\n 'logs_preview', ARRAY_TO_STRING(failed_step_logs, '\\n')\n )) as failure_metadata,\n LISTAGG(\n CONCAT(\n 'Workflow: ', workflow_name, '\\n',\n 'Job: ', job_name, '\\n',\n 'Job ID: ', job_id, '\\n',\n 'Run ID: ', run_id, '\\n',\n 'Error: ', ARRAY_TO_STRING(failed_step_logs, '\\n')\n ),\n '\\n\\n---\\n\\n'\n ) WITHIN GROUP (ORDER BY job_name) as job_details\n FROM TABLE({{ schema_name -}}.tf_failed_jobs_with_logs(owner, repo, run_id))\n GROUP BY run_id\n )\n SELECT\n run_id::STRING,\n snowflake.cortex.complete(\n model_name,\n CONCAT(\n COALESCE(\n NULLIF(ai_prompt, ''),\n 'Analyze these GitHub Actions failures and provide:\\n1. Common failure patterns\\n2. Root cause analysis\\n3. Prioritized action items\\n\\nKeep it concise with 1-2 sentences per section in markdown format.\\n\\n'\n ),\n job_details\n )\n ) as ai_analysis,\n total_failures,\n failure_metadata\n FROM failure_data\n\n- name: {{ schema_name -}}.tf_failure_analysis_with_ai\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [run_id, \"TEXT\"]\n return_type:\n - \"TABLE(run_id STRING, ai_analysis STRING, total_failures NUMBER, failure_metadata ARRAY)\"\n options: |\n COMMENT = $$Gets GitHub Actions failure analysis with default AI provider (cortex) for Slack notifications.$$\n sql: |\n SELECT * FROM TABLE({{ schema_name -}}.tf_failure_analysis_with_ai(owner, repo, run_id, 'cortex', 'mistral-large', ''))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3178313, "supported_languages": null}, "macro.livequery_models.config_github_actions_udfs": {"name": "config_github_actions_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/github/actions_udfs.yaml.sql", "original_file_path": "macros/marketplace/github/actions_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_github_actions_udfs", "macro_sql": "{% macro config_github_actions_udfs(schema_name = \"github_actions\", utils_schema_name = \"github_utils\") -%}\n{#\n This macro is used to generate the Github API Calls\n #}\n- name: {{ schema_name -}}.workflows\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [query, \"OBJECT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$[List repository workflows](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#list-repository-workflows).$$\n sql: |\n SELECT\n {{ utils_schema_name }}.get_api(\n CONCAT_WS('/', 'repos', owner, repo, 'actions/workflows'),\n query\n ):data::OBJECT\n- name: {{ schema_name -}}.workflows\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$[List repository workflows](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#list-repository-workflows).$$\n sql: |\n SELECT\n {{ schema_name -}}.workflows(owner, repo, {})\n\n- name: {{ schema_name -}}.runs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [query, \"OBJECT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$Lists all workflow runs for a repository. You can use query parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository).$$\n sql: |\n SELECT\n {{ utils_schema_name }}.get_api(\n CONCAT_WS('/', 'repos', owner, repo, 'actions/runs'),\n query\n ):data::OBJECT\n- name: {{ schema_name -}}.runs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$Lists all workflow runs for a repository. You can use query parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository).$$\n sql: |\n SELECT\n {{ schema_name -}}.runs(owner, repo, {})\n\n- name: {{ schema_name -}}.workflow_runs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [workflow_id, \"TEXT\"]\n - [query, \"OBJECT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$List all workflow runs for a workflow. You can replace workflow_id with the workflow file name. You can use query parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow).$$\n sql: |\n SELECT\n {{ utils_schema_name }}.get_api(\n CONCAT_WS('/', 'repos', owner, repo, 'actions/workflows', workflow_id, 'runs'),\n query\n ):data::OBJECT\n- name: {{ schema_name -}}.workflow_runs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [workflow_id, \"TEXT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$List all workflow runs for a workflow. You can replace workflow_id with the workflow file name. You can use query parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow).$$\n sql: |\n SELECT\n {{ schema_name -}}.workflow_runs(owner, repo, workflow_id, {})\n\n- name: {{ schema_name -}}.workflow_dispatches\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [workflow_id, \"TEXT\"]\n - [body, \"OBJECT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$You can use this endpoint to manually trigger a GitHub Actions workflow run. You can replace workflow_id with the workflow file name. For example, you could use main.yaml. [Docs](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event).$$\n sql: |\n SELECT\n {{ utils_schema_name }}.post_api(\n CONCAT_WS('/', 'repos', owner, repo, 'actions/workflows', workflow_id, 'dispatches'),\n COALESCE(body, {'ref': 'main'})::OBJECT\n )::OBJECT\n\n- name: {{ schema_name -}}.workflow_dispatches\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [workflow_id, \"TEXT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$You can use this endpoint to manually trigger a GitHub Actions workflow run. You can replace workflow_id with the workflow file name. For example, you could use main.yaml. [Docs](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event).$$\n sql: |\n SELECT\n {{ schema_name -}}.workflow_dispatches(owner, repo, workflow_id, NULL)\n\n- name: {{ schema_name -}}.workflow_enable\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [workflow_id, \"TEXT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$Enables a workflow. You can replace workflow_id with the workflow file name. For example, you could use main.yaml. [Docs](https://docs.github.com/en/rest/reference/actions#enable-a-workflow).$$\n sql: |\n SELECT\n {{ utils_schema_name }}.put_api(\n CONCAT_WS('/', 'repos', owner, repo, 'actions/workflows', workflow_id, 'enable'),\n {}\n )::OBJECT\n- name: {{ schema_name -}}.workflow_disable\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [workflow_id, \"TEXT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$Disables a workflow. You can replace workflow_id with the workflow file name. For example, you could use main.yaml. [Docs](https://docs.github.com/en/rest/reference/actions#disable-a-workflow).$$\n sql: |\n SELECT\n {{ utils_schema_name }}.put_api(\n CONCAT_WS('/', 'repos', owner, repo, 'actions/workflows', workflow_id, 'disable'),\n {}\n )::OBJECT\n\n- name: {{ schema_name -}}.workflow_run_logs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [run_id, \"TEXT\"]\n return_type:\n - \"TEXT\"\n options: |\n COMMENT = $$Download workflow run logs as a ZIP archive. Gets a redirect URL to the actual log archive. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#download-workflow-run-logs).$$\n sql: |\n SELECT\n {{ utils_schema_name }}.get_api(\n CONCAT_WS('/', 'repos', owner, repo, 'actions/runs', run_id, 'logs'),\n {}\n ):data::TEXT\n\n- name: {{ schema_name -}}.job_logs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [job_id, \"TEXT\"]\n return_type:\n - \"TEXT\"\n options: |\n COMMENT = $$Download job logs. Gets the plain text logs for a specific job. [Docs](https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#download-job-logs-for-a-workflow-run).$$\n sql: |\n SELECT\n {{ utils_schema_name }}.get_api(\n CONCAT_WS('/', 'repos', owner, repo, 'actions/jobs', job_id, 'logs'),\n {}\n ):data::TEXT\n\n- name: {{ schema_name -}}.workflow_run_jobs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [run_id, \"TEXT\"]\n - [query, \"OBJECT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$Lists jobs for a workflow run. [Docs](https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#list-jobs-for-a-workflow-run).$$\n sql: |\n SELECT\n {{ utils_schema_name }}.get_api(\n CONCAT_WS('/', 'repos', owner, repo, 'actions/runs', run_id, 'jobs'),\n query\n ):data::OBJECT\n- name: {{ schema_name -}}.workflow_run_jobs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [run_id, \"TEXT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$Lists jobs for a workflow run. [Docs](https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#list-jobs-for-a-workflow-run).$$\n sql: |\n SELECT\n {{ schema_name -}}.workflow_run_jobs(owner, repo, run_id, {})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3271368, "supported_languages": null}, "macro.livequery_models.config_github_utils_udfs": {"name": "config_github_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/github/utils_udfs.yaml.sql", "original_file_path": "macros/marketplace/github/utils_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_github_utils_udfs", "macro_sql": "{% macro config_github_utils_udfs(schema_name = \"github_utils\", utils_schema_name = \"github_utils\") -%}\n{#\n This macro is used to generate the Github API Calls\n #}\n- name: {{ schema_name -}}.octocat\n signature:\n - []\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Verify token [Authenticating to the REST API](https://docs.github.com/en/rest/overview/authenticating-to-the-rest-api?apiVersion=2022-11-28).$$\n sql: |\n SELECT\n {% set v2_exists = is_udf_api_v2_compatible() %}\n {% if v2_exists -%}\n live.udf_api_v2(\n 'GET',\n 'https://api.github.com/octocat',\n {'Authorization': 'Bearer {TOKEN}', 'X-GitHub-Api-Version': '2022-11-28'},\n {},\n IFF(_utils.udf_whoami() <> CURRENT_USER(), '_FSC_SYS/GITHUB', 'Vault/github/api'),\n TRUE\n )\n {%- else -%}\n live.udf_api(\n 'GET',\n 'https://api.github.com/octocat',\n {'Authorization': 'Bearer {TOKEN}', 'X-GitHub-Api-Version': '2022-11-28'},\n {},\n IFF(_utils.udf_whoami() <> CURRENT_USER(), '_FSC_SYS/GITHUB', 'Vault/github/api')\n )\n {%- endif %}\n as response\n\n- name: {{ schema_name -}}.headers\n signature: []\n return_type:\n - \"TEXT\"\n options: |\n NOT NULL\n IMMUTABLE\n MEMOIZABLE\n sql: |\n SELECT '{\"Authorization\": \"Bearer {TOKEN}\",\n \"X-GitHub-Api-Version\": \"2022-11-28\",\n \"Accept\": \"application/vnd.github+json\"\n }'\n\n- name: {{ schema_name -}}.get_api\n signature:\n - [route, \"TEXT\"]\n - [query, \"OBJECT\"]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$List all workflow runs for a workflow. You can replace workflow_id with the workflow file name. You can use parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow).$$\n sql: |\n SELECT\n {% set v2_exists = is_udf_api_v2_compatible() %}\n {% if v2_exists -%}\n live.udf_api_v2(\n 'GET',\n CONCAT_WS('/', 'https://api.github.com', route || '?') || utils.udf_urlencode(query),\n PARSE_JSON({{ schema_name -}}.headers()),\n {},\n IFF(_utils.udf_whoami() <> CURRENT_USER(), '_FSC_SYS/GITHUB', 'Vault/github/api'),\n TRUE\n )\n {%- else -%}\n live.udf_api(\n 'GET',\n CONCAT_WS('/', 'https://api.github.com', route || '?') || utils.udf_urlencode(query),\n PARSE_JSON({{ schema_name -}}.headers()),\n {},\n IFF(_utils.udf_whoami() <> CURRENT_USER(), '_FSC_SYS/GITHUB', 'Vault/github/api')\n )\n {%- endif %}\n as response\n- name: {{ schema_name -}}.post_api\n signature:\n - [route, \"TEXT\"]\n - [data, \"OBJECT\"]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$List all workflow runs for a workflow. You can replace workflow_id with the workflow file name. You can use parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow).$$\n sql: |\n SELECT\n {% set v2_exists = is_udf_api_v2_compatible() %}\n {% if v2_exists -%}\n live.udf_api_v2(\n 'POST',\n CONCAT_WS('/', 'https://api.github.com', route),\n PARSE_JSON({{ schema_name -}}.headers()),\n data,\n IFF(_utils.udf_whoami() <> CURRENT_USER(), '_FSC_SYS/GITHUB', 'Vault/github/api'),\n TRUE\n )\n {%- else -%}\n live.udf_api(\n 'POST',\n CONCAT_WS('/', 'https://api.github.com', route),\n PARSE_JSON({{ schema_name -}}.headers()),\n data,\n IFF(_utils.udf_whoami() <> CURRENT_USER(), '_FSC_SYS/GITHUB', 'Vault/github/api')\n )\n {%- endif %}\n as response\n- name: {{ schema_name -}}.put_api\n signature:\n - [route, \"TEXT\"]\n - [data, \"OBJECT\"]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$List all workflow runs for a workflow. You can replace workflow_id with the workflow file name. You can use parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow).$$\n sql: |\n SELECT\n {% set v2_exists = is_udf_api_v2_compatible() %}\n {% if v2_exists -%}\n live.udf_api_v2(\n 'PUT',\n CONCAT_WS('/', 'https://api.github.com', route),\n PARSE_JSON({{ schema_name -}}.headers()),\n data,\n IFF(_utils.udf_whoami() <> CURRENT_USER(), '_FSC_SYS/GITHUB', 'Vault/github/api'),\n TRUE\n )\n {%- else -%}\n live.udf_api(\n 'PUT',\n CONCAT_WS('/', 'https://api.github.com', route),\n PARSE_JSON({{ schema_name -}}.headers()),\n data,\n IFF(_utils.udf_whoami() <> CURRENT_USER(), '_FSC_SYS/GITHUB', 'Vault/github/api')\n )\n {%- endif %}\n as response\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.is_udf_api_v2_compatible"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3315027, "supported_languages": null}, "macro.livequery_models.config_nftscan_udfs": {"name": "config_nftscan_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/nftscan/udfs.yaml.sql", "original_file_path": "macros/marketplace/nftscan/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_nftscan_udfs", "macro_sql": "{% macro config_nftscan_udfs(schema_name = \"nftscan\", utils_schema_name=\"nftscan_utils\") -%}\n{#\n This macro is used to generate the NFTScan Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [URL, STRING, The full url including the path]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the NFTScan API. [NFTScan docs here](https://docs.nftscan.com/guides/Overview/1).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat(URL, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'X-API-KEY': '{API_KEY}'},\n {},\n '_FSC_SYS/NFTSCAN'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [URL, STRING, The full url]\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the NFTScan API. [NFTScan docs here](https://docs.nftscan.com/guides/Overview/1).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n URL,\n {'X-API-KEY': '{API_KEY}'},\n BODY,\n '_FSC_SYS/NFTSCAN'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3322515, "supported_languages": null}, "macro.livequery_models.config_chainbase_utils_udfs": {"name": "config_chainbase_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/chainbase/util_udfs.yaml.sql", "original_file_path": "macros/marketplace/chainbase/util_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_chainbase_utils_udfs", "macro_sql": "{% macro config_chainbase_utils_udfs(schema_name = \"chainbase_utils\", utils_schema_name=\"chainbase_utils\") -%}\n{#\n This macro is used to generate the alchemy base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Chainbase API. [Chainbase Docs](https://docs.chainbase.com/reference/supported-chains)$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat(\n 'https://api.chainbase.online', PATH, '?',\n utils.udf_object_to_url_query_string(QUERY_ARGS)\n ),\n {'x-api-key': '{API_KEY}'},\n {},\n '_FSC_SYS/CHAINBASE'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Chainbase API. [Chainbase Docs](https://docs.chainbase.com/reference/supported-chains)$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n concat('https://api.chainbase.online', PATH),\n {'x-api-key': '{API_KEY}'},\n BODY,\n '_FSC_SYS/CHAINBASE'\n ) as response\n\n- name: {{ schema_name -}}.rpc\n signature:\n - [METHOD, STRING, The RPC method to call]\n - [PARAMS, ARRAY, The RPC Params arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue an RPC call to Chainbase. [Chainbase Docs](https://docs.chainbase.com/reference/supported-chains)$$\n sql: |\n SELECT live.udf_api(\n 'POST',\n concat('https://api.chainbase.online'),\n {'x-api-key': '{API_KEY}'},\n {'id': 1,'jsonrpc': '2.0','method': METHOD,'params': PARAMS},\n '_FSC_SYS/CHAINBASE') as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3332546, "supported_languages": null}, "macro.livequery_models.config_snapshot_udfs": {"name": "config_snapshot_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/snapshot/udfs.yaml.sql", "original_file_path": "macros/marketplace/snapshot/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_snapshot_udfs", "macro_sql": "{% macro config_snapshot_udfs(schema_name = \"snapshot\", utils_schema_name=\"snapshot_utils\") -%}\n{#\n This macro is used to generate the Snapshot Base endpoints\n #}\n\n- name: {{ schema_name -}}.query\n signature:\n - [QUERY, OBJECT, The GraphQL query]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a Graphql Query to the Snapshot API. [Snapshot docs here](https://docs.snapshot.org/tools/api).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n 'https://hub.snapshot.org/graphql',\n {},\n QUERY\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.333742, "supported_languages": null}, "macro.livequery_models.config_reservoir_udfs": {"name": "config_reservoir_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/reservoir/udfs.yaml.sql", "original_file_path": "macros/marketplace/reservoir/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_reservoir_udfs", "macro_sql": "{% macro config_reservoir_udfs(schema_name = \"reservoir\", utils_schema_name=\"reservoir_utils\") -%}\n{#\n This macro is used to generate the Reservoir Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Reservoir NFT Data API. [Reservoir docs here](https://docs.reservoir.tools/reference/nft-data-overview).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.reservoir.tools', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'x-api-key': '{API_KEY}'},\n NULL,\n '_FSC_SYS/RESERVOIR'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Reservoir NFT Data API. [Reservoir docs here](https://docs.reservoir.tools/reference/nft-data-overview).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n concat('https://api.reservoir.tools', PATH),\n {'x-api-key': '{API_KEY}'},\n BODY,\n '_FSC_SYS/RESERVOIR'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.334487, "supported_languages": null}, "macro.livequery_models.config_defillama_udfs": {"name": "config_defillama_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/defillama/udfs.yaml.sql", "original_file_path": "macros/marketplace/defillama/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_defillama_udfs", "macro_sql": "{% macro config_defillama_udfs(schema_name = \"defillama\", utils_schema_name=\"defillama_utils\") -%}\n{#\n This macro is used to generate the Defillama endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Defillama API. [Defillama docs here](https://defillama.com/docs/api).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.llama.fi', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'Accept': '*/*', 'User-Agent': 'livequery/1.0 (Snowflake)', 'Host':'api.llama.fi', 'Connection': 'keep-alive'},\n NULL,\n IFF(ARRAY_CONTAINS('api_key'::VARIANT, OBJECT_KEYS(QUERY_ARGS)), '_FSC_SYS/DEFILLAMA', '')\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3350453, "supported_languages": null}, "macro.livequery_models.config_bitquery_udfs": {"name": "config_bitquery_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/bitquery/udfs.yaml.sql", "original_file_path": "macros/marketplace/bitquery/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_bitquery_udfs", "macro_sql": "{% macro config_bitquery_udfs(schema_name = \"bitquery\", utils_schema_name = \"bitquery_utils\") -%}\n{#\n This macro is used to generate the BitQuery calls\n #}\n\n- name: {{ schema_name -}}.graphql\n signature:\n - [QUERY, OBJECT, The GraphQL query]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Run a graphql query on BitQuery [BitQuery docs here](https://docs.bitquery.io/docs/start/first-query/).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n 'https://graphql.bitquery.io',\n {'X-API-KEY': '{API_KEY}'},\n QUERY,\n '_FSC_SYS/BITQUERY'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3355372, "supported_languages": null}, "macro.livequery_models.config_helius_apis_udfs": {"name": "config_helius_apis_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/helius/apis_udfs.yaml.sql", "original_file_path": "macros/marketplace/helius/apis_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_helius_apis_udfs", "macro_sql": "{% macro config_helius_apis_udfs(schema_name = \"helius_apis\", utils_schema_name = \"helius_utils\") -%}\n{#\n This macro is used to generate the Helius API endpoints\n #}\n\n- name: {{ schema_name -}}.token_metadata\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [BODY, OBJECT, The body of the API request]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns metadata for a list of given token mint addresses. [Helius docs here](https://docs.helius.xyz/solana-apis/token-metadata-api).$$\n sql: {{ helius_post_call(utils_schema_name, '/v0/token-metadata') | trim }}\n\n- name: {{ schema_name -}}.balances\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [ADDRESS, STRING, The address to retrieve balances for]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns the native Solana balance (in lamports) and all token balances for a given address. [Helius docs here](https://docs.helius.xyz/solana-apis/balances-api).$$\n sql: |\n SELECT\n {% set v2_exists = is_udf_api_v2_compatible() %}\n {% if v2_exists -%}\n live.udf_api_v2(\n 'GET',\n CASE\n WHEN NETWORK = 'devnet' THEN\n concat('https://api-devnet.helius.xyz/v0/addresses/', ADDRESS, '/balances?api-key={API_KEY}')\n ELSE\n concat('https://api.helius.xyz/v0/addresses/', ADDRESS, '/balances?api-key={API_KEY}')\n END,\n {'fsc-quantum-execution-mode': 'async'},\n {},\n '_FSC_SYS/HELIUS',\n TRUE\n )\n {%- else -%}\n live.udf_api(\n 'GET',\n CASE\n WHEN NETWORK = 'devnet' THEN\n concat('https://api-devnet.helius.xyz/v0/addresses/', ADDRESS, '/balances?api-key={API_KEY}')\n ELSE\n concat('https://api.helius.xyz/v0/addresses/', ADDRESS, '/balances?api-key={API_KEY}')\n END,\n {},\n {},\n '_FSC_SYS/HELIUS'\n )\n {%- endif %}\n as response\n\n- name: {{ schema_name -}}.parse_transactions\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [TRANSACTIONS, ARRAY, An array of transaction signatures]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns an array of enriched, human-readable transactions of the given transaction signatures. Up to 100 transactions per call. [Helius docs here](https://docs.helius.xyz/solana-apis/enhanced-transactions-api/parse-transaction-s).$$\n sql: |\n SELECT {{ utils_schema_name -}}.post_api(NETWORK, '/v0/transactions', {'transactions': TRANSACTIONS}) as response\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.helius_post_call", "macro.livequery_models.is_udf_api_v2_compatible"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3372934, "supported_languages": null}, "macro.livequery_models.config_helius_utils_udfs": {"name": "config_helius_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/helius/util_udfs.yaml.sql", "original_file_path": "macros/marketplace/helius/util_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_helius_utils_udfs", "macro_sql": "{% macro config_helius_utils_udfs(schema = \"helius_utils\", utils_schema_name=\"helius_utils\") -%}\n{#\n This macro is used to generate the Helius base endpoints\n #}\n\n- name: {{ schema_name }}.get_api\n signature:\n - [NETWORK, STRING, The network 'devnet' or 'mainnet']\n - [PATH, STRING, The API path starting with '/']\n - [QUERY_PARAMS, OBJECT, The query parameters]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue an HTTP GET request to Helius.$$\n sql: |\n SELECT\n {% set v2_exists = is_udf_api_v2_compatible() %}\n {% if v2_exists -%}\n live.udf_api_v2(\n 'GET',\n CASE\n WHEN NETWORK = 'devnet' THEN\n concat('https://api-devnet.helius.xyz', PATH, '?api-key={API_KEY}&', utils.udf_object_to_url_query_string(QUERY_PARAMS))\n ELSE\n concat('https://api.helius.xyz', PATH, '?api-key={API_KEY}&', utils.udf_object_to_url_query_string(QUERY_PARAMS))\n END,\n {'fsc-quantum-execution-mode': 'async'},\n {},\n '_FSC_SYS/HELIUS',\n TRUE\n )\n {%- else -%}\n live.udf_api(\n 'GET',\n CASE\n WHEN NETWORK = 'devnet' THEN\n concat('https://api-devnet.helius.xyz', PATH, '?api-key={API_KEY}&', utils.udf_object_to_url_query_string(QUERY_PARAMS))\n ELSE\n concat('https://api.helius.xyz', PATH, '?api-key={API_KEY}&', utils.udf_object_to_url_query_string(QUERY_PARAMS))\n END,\n {},\n {},\n '_FSC_SYS/HELIUS'\n )\n {%- endif %}\n as response\n\n- name: {{ schema_name }}.post_api\n signature:\n - [NETWORK, STRING, The network 'devnet' or 'mainnet']\n - [PATH, STRING, The API path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue an HTTP POST request to Helius.$$\n sql: |\n SELECT\n {% set v2_exists = is_udf_api_v2_compatible() %}\n {% if v2_exists -%}\n live.udf_api_v2(\n 'POST',\n CASE\n WHEN NETWORK = 'devnet' THEN\n concat('https://api-devnet.helius.xyz', PATH, '?api-key={API_KEY}')\n ELSE\n concat('https://api.helius.xyz', PATH, '?api-key={API_KEY}')\n END,\n {'fsc-quantum-execution-mode': 'async'},\n BODY,\n '_FSC_SYS/HELIUS',\n TRUE\n )\n {%- else -%}\n live.udf_api(\n 'POST',\n CASE\n WHEN NETWORK = 'devnet' THEN\n concat('https://api-devnet.helius.xyz', PATH, '?api-key={API_KEY}')\n ELSE\n concat('https://api.helius.xyz', PATH, '?api-key={API_KEY}')\n END,\n {},\n BODY,\n '_FSC_SYS/HELIUS'\n )\n {%- endif %}\n as response\n\n- name: {{ schema_name }}.rpc\n signature:\n - [NETWORK, STRING, The network 'devnet' or 'mainnet']\n - [METHOD, STRING, The RPC method to call]\n - [PARAMS, OBJECT, The RPC Params arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue an RPC call to Helius.$$\n sql: |\n SELECT\n {% set v2_exists = is_udf_api_v2_compatible() %}\n {% if v2_exists -%}\n live.udf_api_v2(\n 'POST',\n CASE\n WHEN NETWORK = 'devnet' THEN\n 'https://devnet.helius-rpc.com?api-key={API_KEY}'\n ELSE\n 'https://mainnet.helius-rpc.com?api-key={API_KEY}'\n END,\n {'fsc-quantum-execution-mode': 'async'},\n {'id': 1,'jsonrpc': '2.0','method': METHOD,'params': PARAMS},\n '_FSC_SYS/HELIUS',\n TRUE\n )\n {%- else -%}\n live.udf_api(\n 'POST',\n CASE\n WHEN NETWORK = 'devnet' THEN\n 'https://devnet.helius-rpc.com?api-key={API_KEY}'\n ELSE\n 'https://mainnet.helius-rpc.com?api-key={API_KEY}'\n END,\n {},\n {'id': 1,'jsonrpc': '2.0','method': METHOD,'params': PARAMS},\n '_FSC_SYS/HELIUS'\n )\n {%- endif %}\n as response\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.is_udf_api_v2_compatible"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3401785, "supported_languages": null}, "macro.livequery_models.helius_rpc_call": {"name": "helius_rpc_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/helius/helius_config_utils.sql", "original_file_path": "macros/marketplace/helius/helius_config_utils.sql", "unique_id": "macro.livequery_models.helius_rpc_call", "macro_sql": "{% macro helius_rpc_call(schema_name, method) %}\nSELECT {{ schema_name -}}.rpc(NETWORK, '{{method}}', PARAMS) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3406742, "supported_languages": null}, "macro.livequery_models.helius_get_call": {"name": "helius_get_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/helius/helius_config_utils.sql", "original_file_path": "macros/marketplace/helius/helius_config_utils.sql", "unique_id": "macro.livequery_models.helius_get_call", "macro_sql": "{% macro helius_get_call(schema_name, path) %}\nSELECT {{ schema_name -}}.get_api(NETWORK, '{{path}}', QUERY_PARAMS) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3409986, "supported_languages": null}, "macro.livequery_models.helius_post_call": {"name": "helius_post_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/helius/helius_config_utils.sql", "original_file_path": "macros/marketplace/helius/helius_config_utils.sql", "unique_id": "macro.livequery_models.helius_post_call", "macro_sql": "{% macro helius_post_call(schema_name, path) %}\nSELECT {{ schema_name -}}.post_api(NETWORK, '{{path}}', BODY) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3412752, "supported_languages": null}, "macro.livequery_models.config_helius_das_udfs": {"name": "config_helius_das_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/helius/das_udfs.yaml.sql", "original_file_path": "macros/marketplace/helius/das_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_helius_das_udfs", "macro_sql": "{% macro config_helius_das_udfs(schema_name = \"helius_das\", utils_schema_name = \"helius_utils\") -%}\n{#\n This macro is used to generate the Helius DAS endpoints\n #}\n\n- name: {{ schema_name -}}.get_asset\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [PARAMS, OBJECT, The RPC Params argument]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get an asset by its ID. [Helius docs here](https://docs.helius.xyz/solana-compression/digital-asset-standard-das-api/get-asset).$$\n sql: {{ helius_rpc_call(utils_schema_name, 'getAsset') | trim }}\n\n- name: {{ schema_name -}}.get_signatures_for_asset\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [PARAMS, OBJECT, The RPC Params argument]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get a list of transaction signatures related to a compressed asset. [Helius docs here](https://docs.helius.xyz/solana-compression/digital-asset-standard-das-api/get-signatures-for-asset).$$\n sql: {{ helius_rpc_call(utils_schema_name, 'getSignaturesForAsset') | trim }}\n\n- name: {{ schema_name -}}.search_assets\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [PARAMS, OBJECT, The RPC Params argument]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Search for assets by a variety of parameters. [Helius docs here](https://docs.helius.xyz/solana-compression/digital-asset-standard-das-api/search-assets).$$\n sql: {{ helius_rpc_call(utils_schema_name, 'searchAssets') | trim }}\n\n- name: {{ schema_name -}}.get_asset_proof\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [PARAMS, OBJECT, The RPC Params argument]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get a merkle proof for a compressed asset by its ID. [Helius docs here](https://docs.helius.xyz/solana-compression/digital-asset-standard-das-api/get-asset-proof).$$\n sql: {{ helius_rpc_call(utils_schema_name, 'getAssetProof') | trim }}\n\n- name: {{ schema_name -}}.get_assets_by_owner\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [PARAMS, OBJECT, The RPC Params argument]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get a list of assets owned by an address. [Helius docs here](https://docs.helius.xyz/solana-compression/digital-asset-standard-das-api/get-assets-by-owner).$$\n sql: {{ helius_rpc_call(utils_schema_name, 'getAssetsByOwner') | trim }}\n\n- name: {{ schema_name -}}.get_assets_by_authority\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [PARAMS, OBJECT, The RPC Params argument]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get a list of assets with a specific authority. [Helius docs here](https://docs.helius.xyz/solana-compression/digital-asset-standard-das-api/get-assets-by-authority).$$\n sql: {{ helius_rpc_call(utils_schema_name, 'getAssetsByAuthority') | trim }}\n\n- name: {{ schema_name -}}.get_assets_by_creator\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [PARAMS, OBJECT, The RPC Params argument]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get a list of assets created by an address. [Helius docs here](https://docs.helius.xyz/solana-compression/digital-asset-standard-das-api/get-assets-by-creator).$$\n sql: {{ helius_rpc_call(utils_schema_name, 'getAssetsByCreator') | trim }}\n\n- name: {{ schema_name -}}.get_assets_by_group\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [PARAMS, OBJECT, The RPC Params argument]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get a list of assets by a group key and value. [Helius docs here](https://docs.helius.xyz/solana-compression/digital-asset-standard-das-api/get-assets-by-group).$$\n sql: {{ helius_rpc_call(utils_schema_name, 'getAssetsByGroup') | trim }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.helius_rpc_call"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3453474, "supported_languages": null}, "macro.livequery_models.config_playgrounds_udfs": {"name": "config_playgrounds_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/playgrounds/udfs.yaml.sql", "original_file_path": "macros/marketplace/playgrounds/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_playgrounds_udfs", "macro_sql": "{% macro config_playgrounds_udfs(schema_name = \"playgrounds\", utils_schema_name = \"playgrounds_utils\") -%}\n{#\n This macro is used to generate the Playgrounds calls\n #}\n\n- name: {{ schema_name -}}.query_subgraph\n signature:\n - [SUBGRAPH_ID, STRING, The ID of the Subgraph]\n - [QUERY, OBJECT, The GraphQL query]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Query a subgraph via the Playgrounds Proxy [Playgrounds docs here](https://docs.playgrounds.network/api/subgraph-proxy/).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n concat('https://api.playgrounds.network/v1/proxy/subgraphs/id/', SUBGRAPH_ID),\n {'Playgrounds-Api-Key': '{API_KEY}', 'Content-Type': 'application/json'},\n QUERY,\n '_FSC_SYS/PLAYGROUNDS'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3459308, "supported_languages": null}, "macro.livequery_models.config_zettablock_udfs": {"name": "config_zettablock_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/zettablock/udfs.yaml.sql", "original_file_path": "macros/marketplace/zettablock/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_zettablock_udfs", "macro_sql": "{% macro config_zettablock_udfs(schema_name = \"zettablock\", utils_schema_name=\"zettablock_utils\") -%}\n{#\n This macro is used to generate the Zettablock Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Zettablock API. [Zettablock docs here](https://docs.zettablock.com/reference/api-intro).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.zettablock.com', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'Authorization': 'Bearer {API_KEY}'},\n {},\n '_FSC_SYS/ZETTABLOCK'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Zettablock API. [Zettablock docs here](https://docs.zettablock.com/reference/api-intro).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://api.zettablock.com', PATH),\n {'Authorization': 'Bearer {API_KEY}'},\n BODY,\n '_FSC_SYS/ZETTABLOCK'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3466744, "supported_languages": null}, "macro.livequery_models.config_quicknode_polygon_tokens_udfs": {"name": "config_quicknode_polygon_tokens_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/quicknode/polygon_token_udfs.yaml.sql", "original_file_path": "macros/marketplace/quicknode/polygon_token_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_quicknode_polygon_tokens_udfs", "macro_sql": "{% macro config_quicknode_polygon_tokens_udfs(schema_name = \"quicknode_polygon_tokens\", utils_schema_name = \"quicknode_utils\") -%}\n{#\n This macro is used to generate the QuickNode Polygon Token endpoints\n #}\n\n- name: {{ schema_name -}}.get_token_metadata_by_contract_address\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns token details for specified contract. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_getTokenMetadataByContractAddress_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_getTokenMetadataByContractAddress') | trim }}\n\n- name: {{ schema_name -}}.get_token_metadata_by_symbol\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns token details for specified token symbol. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_getTokenMetadataBySymbol_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_getTokenMetadataBySymbol') | trim }}\n\n- name: {{ schema_name -}}.get_transactions_by_address\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns transactions within a specified wallet address. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_getTransactionsByAddress_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_getTransactionsByAddress') | trim }}\n\n- name: {{ schema_name -}}.get_wallet_token_balance\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns ERC-20 tokens and token balances within a wallet. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_getWalletTokenBalance_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_getWalletTokenBalance') | trim }}\n\n- name: {{ schema_name -}}.get_wallet_token_transactions\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns transfers of a specified token within a specified wallet address. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_getWalletTokenTransactions_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_getWalletTokenTransactions') | trim }}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.quicknode_polygon_mainnet_rpc_call"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.3489046, "supported_languages": null}, "macro.livequery_models.config_quicknode_ethereum_nfts_udfs": {"name": "config_quicknode_ethereum_nfts_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/quicknode/ethereum_nft_udfs.yaml.sql", "original_file_path": "macros/marketplace/quicknode/ethereum_nft_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_quicknode_ethereum_nfts_udfs", "macro_sql": "{% macro config_quicknode_ethereum_nfts_udfs(schema_name = \"quicknode_ethereum_nfts\", utils_schema_name = \"quicknode_utils\") -%}\n{#\n This macro is used to generate the QuickNode Ethereum NFT endpoints\n #}\n\n- name: {{ schema_name -}}.fetch_nft_collection_details\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns collection details for specified contracts. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_fetchNFTCollectionDetails_v2).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_fetchNFTCollectionDetails') | trim }}\n\n- name: {{ schema_name -}}.fetch_nfts\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns aggregated data on NFTs for a given wallet. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_fetchNFTs).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_fetchNFTs') | trim }}\n\n- name: {{ schema_name -}}.fetch_nfts_by_collection\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns aggregated data on NFTs within a given collection. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_fetchNFTsByCollection_v2).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_fetchNFTsByCollection') | trim }}\n\n- name: {{ schema_name -}}.get_transfers_by_nft\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns transfers by given NFT. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_getTransfersByNFT_v2).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_getTransfersByNFT') | trim }}\n\n- name: {{ schema_name -}}.verify_nfts_owner\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Confirms ownership of specified NFTs for a given wallet. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_verifyNFTsOwner_v2).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_verifyNFTsOwner') | trim }}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.quicknode_ethereum_mainnet_rpc_call"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4136288, "supported_languages": null}, "macro.livequery_models.config_quicknode_utils_udfs": {"name": "config_quicknode_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/quicknode/util_udfs.yaml.sql", "original_file_path": "macros/marketplace/quicknode/util_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_quicknode_utils_udfs", "macro_sql": "{% macro config_quicknode_utils_udfs(schema_name = \"quicknode_utils\", utils_schema_name=\"quicknode_utils\") -%}\n{#\n This macro is used to generate the QuickNode base endpoints/RPC calls\n #}\n\n- name: {{ schema_name -}}.ethereum_mainnet_rpc\n signature:\n - [METHOD, STRING, The RPC method to call]\n - [PARAMS, OBJECT, The RPC Params arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue an Ethereum RPC call to QuickNode.$$\n sql: |\n SELECT live.udf_api(\n 'POST',\n '{ethereum-mainnet}',\n {},\n {'id': 1,'jsonrpc': '2.0','method': METHOD,'params': [PARAMS]},\n '_FSC_SYS/QUICKNODE'\n ) as response\n\n- name: {{ schema_name -}}.polygon_mainnet_rpc\n signature:\n - [METHOD, STRING, The RPC method to call]\n - [PARAMS, OBJECT, The RPC Params arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a Polygon RPC call to QuickNode.$$\n sql: |\n SELECT live.udf_api(\n 'POST',\n '{polygon-matic}',\n {},\n {'id': 1,'jsonrpc': '2.0','method': METHOD,'params': [PARAMS]},\n '_FSC_SYS/QUICKNODE'\n ) as response\n\n- name: {{ schema_name -}}.solana_mainnet_rpc\n signature:\n - [METHOD, STRING, The RPC method to call]\n - [PARAMS, OBJECT, The RPC Params arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a Solana RPC call to QuickNode.$$\n sql: |\n SELECT live.udf_api(\n 'POST',\n '{solana-solana-mainnet}',\n {},\n {'id': 1,'jsonrpc': '2.0','method': METHOD,'params': PARAMS},\n '_FSC_SYS/QUICKNODE'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.414692, "supported_languages": null}, "macro.livequery_models.config_quicknode_polygon_nfts_udfs": {"name": "config_quicknode_polygon_nfts_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/quicknode/polygon_nft_udfs.yaml.sql", "original_file_path": "macros/marketplace/quicknode/polygon_nft_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_quicknode_polygon_nfts_udfs", "macro_sql": "{% macro config_quicknode_polygon_nfts_udfs(schema_name = \"quicknode_polygon_nfts\", utils_schema_name = \"quicknode_utils\") -%}\n{#\n This macro is used to generate the QuickNode Polygon NFT endpoints\n #}\n\n- name: {{ schema_name -}}.fetch_nft_collection_details\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns collection details for specified contracts. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_fetchNFTCollectionDetails_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_fetchNFTCollectionDetails') | trim }}\n\n- name: {{ schema_name -}}.fetch_nfts\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns aggregated data on NFTs for a given wallet. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_fetchNFTs_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_fetchNFTs') | trim }}\n\n- name: {{ schema_name -}}.fetch_nfts_by_collection\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns aggregated data on NFTs within a given collection. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_fetchNFTsByCollection_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_fetchNFTsByCollection') | trim }}\n\n- name: {{ schema_name -}}.get_transfers_by_nft\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns transfers by given NFT. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_getTransfersByNFT_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_getTransfersByNFT') | trim }}\n\n- name: {{ schema_name -}}.verify_nfts_owner\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Confirms ownership of specified NFTs for a given wallet. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_verifyNFTsOwner_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_verifyNFTsOwner') | trim }}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.quicknode_polygon_mainnet_rpc_call"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4169197, "supported_languages": null}, "macro.livequery_models.quicknode_ethereum_mainnet_rpc_call": {"name": "quicknode_ethereum_mainnet_rpc_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/quicknode/quicknode_config_utils.sql", "original_file_path": "macros/marketplace/quicknode/quicknode_config_utils.sql", "unique_id": "macro.livequery_models.quicknode_ethereum_mainnet_rpc_call", "macro_sql": "{% macro quicknode_ethereum_mainnet_rpc_call(schema_name, method) %}\nSELECT {{ schema_name -}}.ethereum_mainnet_rpc('{{method}}', PARAMS) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4174712, "supported_languages": null}, "macro.livequery_models.quicknode_polygon_mainnet_rpc_call": {"name": "quicknode_polygon_mainnet_rpc_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/quicknode/quicknode_config_utils.sql", "original_file_path": "macros/marketplace/quicknode/quicknode_config_utils.sql", "unique_id": "macro.livequery_models.quicknode_polygon_mainnet_rpc_call", "macro_sql": "{% macro quicknode_polygon_mainnet_rpc_call(schema_name, method) %}\nSELECT {{ schema_name -}}.polygon_mainnet_rpc('{{method}}', PARAMS) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4177737, "supported_languages": null}, "macro.livequery_models.quicknode_solana_mainnet_rpc_call": {"name": "quicknode_solana_mainnet_rpc_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/quicknode/quicknode_config_utils.sql", "original_file_path": "macros/marketplace/quicknode/quicknode_config_utils.sql", "unique_id": "macro.livequery_models.quicknode_solana_mainnet_rpc_call", "macro_sql": "{% macro quicknode_solana_mainnet_rpc_call(schema_name, method) %}\nSELECT {{ schema_name -}}.solana_mainnet_rpc('{{method}}', PARAMS) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4180772, "supported_languages": null}, "macro.livequery_models.config_quicknode_solana_nfts_udfs": {"name": "config_quicknode_solana_nfts_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/quicknode/solana_nft_udfs.yaml.sql", "original_file_path": "macros/marketplace/quicknode/solana_nft_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_quicknode_solana_nfts_udfs", "macro_sql": "{% macro config_quicknode_solana_nfts_udfs(schema_name = \"quicknode_solana_nfts\", utils_schema_name = \"quicknode_utils\") -%}\n{#\n This macro is used to generate the QuickNode Solana NFT endpoints\n #}\n\n- name: {{ schema_name -}}.fetch_nfts\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns aggregated data on NFTs for a given wallet. [QuickNode docs here](https://www.quicknode.com/docs/solana/qn_fetchNFTs).$$\n sql: {{ quicknode_solana_mainnet_rpc_call(utils_schema_name, 'qn_fetchNFTs') | trim }}\n\n- name: {{ schema_name -}}.fetch_nfts_by_creator\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns aggregated data on NFTs that have been created by an address. [QuickNode docs here](https://www.quicknode.com/docs/solana/qn_fetchNFTsByCreator).$$\n sql: {{ quicknode_solana_mainnet_rpc_call(utils_schema_name, 'qn_fetchNFTsByCreator') | trim }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.quicknode_solana_mainnet_rpc_call"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4190528, "supported_languages": null}, "macro.livequery_models.config_quicknode_ethereum_tokens_udfs": {"name": "config_quicknode_ethereum_tokens_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/quicknode/ethereum_token_udfs.yaml.sql", "original_file_path": "macros/marketplace/quicknode/ethereum_token_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_quicknode_ethereum_tokens_udfs", "macro_sql": "{% macro config_quicknode_ethereum_tokens_udfs(schema_name = \"quicknode_ethereum_tokens\", utils_schema_name = \"quicknode_utils\") -%}\n{#\n This macro is used to generate the QuickNode Ethereum Token endpoints\n #}\n\n- name: {{ schema_name -}}.get_token_metadata_by_contract_address\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns token details for specified contract. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_getTokenMetadataByContractAddress_v2).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_getTokenMetadataByContractAddress') | trim }}\n\n- name: {{ schema_name -}}.get_token_metadata_by_symbol\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns token details for specified token symbol. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_getTokenMetadataBySymbol_v2).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_getTokenMetadataBySymbol') | trim }}\n\n- name: {{ schema_name -}}.get_transactions_by_address\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns transactions within a specified wallet address. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_getTransactionsByAddress_v2).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_getTransactionsByAddress') | trim }}\n\n- name: {{ schema_name -}}.get_wallet_token_balance\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns ERC-20 tokens and token balances within a wallet. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_getWalletTokenBalance_v2).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_getWalletTokenBalance') | trim }}\n\n- name: {{ schema_name -}}.get_wallet_token_transactions\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns transfers of a specified token within a specified wallet address. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_getWalletTokenTransactions_v2).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_getWalletTokenTransactions') | trim }}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.quicknode_ethereum_mainnet_rpc_call"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4213033, "supported_languages": null}, "macro.livequery_models.config_footprint_utils_udfs": {"name": "config_footprint_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/footprint/util_udfs.yaml.sql", "original_file_path": "macros/marketplace/footprint/util_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_footprint_utils_udfs", "macro_sql": "{% macro config_footprint_utils_udfs(schema_name = \"footprint_utils\", utils_schema_name=\"footprint_utils\") -%}\n{#\n This macro is used to generate the Footprint base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, ARRAY, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Footprint API.$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat(\n 'https://api.footprint.network/api', PATH, '?',\n utils.udf_urlencode(QUERY_ARGS, TRUE)\n ),\n {'api-key': '{API_KEY}'},\n {},\n '_FSC_SYS/FOOTPRINT'\n ) as response\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Footprint API.$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat(\n 'https://api.footprint.network/api', PATH, '?',\n utils.udf_urlencode(QUERY_ARGS, TRUE)\n ),\n {'api-key': '{API_KEY}'},\n {},\n '_FSC_SYS/FOOTPRINT'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Footprint API.$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n concat('https://api.footprint.network/api', PATH),\n {'api-key': '{API_KEY}'},\n BODY,\n '_FSC_SYS/FOOTPRINT'\n ) as response\n\n\n- name: {{ schema_name -}}.rpc\n signature:\n - [METHOD, STRING, The RPC method to call]\n - [PARAMS, ARRAY, The RPC Params arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue an RPC call to Footprint.$$\n sql: |\n SELECT live.udf_api(\n 'POST',\n concat('https://api.footprint.network/api'),\n {'api-key': '{API_KEY}'},\n {'id': 1,'jsonrpc': '2.0','method': METHOD,'params': PARAMS},\n '_FSC_SYS/FOOTPRINT') as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4225397, "supported_languages": null}, "macro.livequery_models.footprint_get_api_call": {"name": "footprint_get_api_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/footprint/footprint_config_utils.sql", "original_file_path": "macros/marketplace/footprint/footprint_config_utils.sql", "unique_id": "macro.livequery_models.footprint_get_api_call", "macro_sql": "{% macro footprint_get_api_call(schema_name, api_path) %}\nSELECT {{ schema_name -}}.get('/{{api_path}}', QUERY_PARAMS) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4230113, "supported_languages": null}, "macro.livequery_models.footprint_post_api_call": {"name": "footprint_post_api_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/footprint/footprint_config_utils.sql", "original_file_path": "macros/marketplace/footprint/footprint_config_utils.sql", "unique_id": "macro.livequery_models.footprint_post_api_call", "macro_sql": "{% macro footprint_post_api_call(schema_name, api_path) %}\nSELECT {{ schema_name -}}.post('/{{api_path}}', BODY) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4232943, "supported_languages": null}, "macro.livequery_models.config_cmc_udfs": {"name": "config_cmc_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/cmc/udfs.yaml.sql", "original_file_path": "macros/marketplace/cmc/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_cmc_udfs", "macro_sql": "{% macro config_cmc_udfs(schema_name = \"cmc\", utils_schema_name=\"cmc_utils\") -%}\n{#\n This macro is used to generate the CoinmarketCap Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the CoinmarketCap API. [CoinmarketCap docs here](https://coinmarketcap.com/api/documentation/v1/).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://pro-api.coinmarketcap.com', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'X-CMC_PRO_API_KEY': '{API_KEY}'},\n NULL,\n '_FSC_SYS/CMC'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the CoinmarketCap API. [CoinmarketCap docs here](https://coinmarketcap.com/api/documentation/v1/).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://pro-api.coinmarketcap.com', PATH),\n {'X-CMC_PRO_API_KEY': '{API_KEY}'},\n BODY,\n '_FSC_SYS/CMC'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4240468, "supported_languages": null}, "macro.livequery_models.config_binance_udfs": {"name": "config_binance_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/binance/udfs.yaml.sql", "original_file_path": "macros/marketplace/binance/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_binance_udfs", "macro_sql": "{% macro config_binance_udfs(schema_name = \"binance\", utils_schema_name=\"binance_utils\") -%}\n{#\n This macro is used to generate the Binance Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [URL, STRING, The full url including the path]\n - [QUERY_ARGS, ARRAY, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Binance API. [Binance docs here](https://binance-docs.github.io/apidocs/spot/en/#api-key-setup).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat(URL, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'X-MBX-APIKEY': '{API_KEY}'},\n {},\n '_FSC_SYS/BINANCE'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [URL, STRING, The full url]\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Binance API. [Binance docs here](https://binance-docs.github.io/apidocs/spot/en/#api-key-setup).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n URL,\n {'X-MBX-APIKEY': '{API_KEY}'},\n BODY,\n '_FSC_SYS/BINANCE'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.424758, "supported_languages": null}, "macro.livequery_models.config_apilayer_udfs": {"name": "config_apilayer_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/apilayer/udfs.yaml.sql", "original_file_path": "macros/marketplace/apilayer/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_apilayer_udfs", "macro_sql": "{% macro config_apilayer_udfs(schema_name = \"apilayer\", utils_schema_name=\"apilayer_utils\") -%}\n{#\n This macro is used to generate the ApiLayer Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the ApiLayer API. [ApiLayer docs here](https://apilayer.com/docs/article/getting-started).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.apilayer.com', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'apikey': '{API_KEY}'},\n NULL,\n '_FSC_SYS/APILAYER'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the ApiLayer API. [ApiLayer docs here](https://apilayer.com/docs/article/getting-started).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://api.apilayer.com', PATH),\n {'apikey': '{API_KEY}'},\n BODY,\n '_FSC_SYS/APILAYER'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.425493, "supported_languages": null}, "macro.livequery_models.config_zapper_udfs": {"name": "config_zapper_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/zapper/udfs.yaml.sql", "original_file_path": "macros/marketplace/zapper/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_zapper_udfs", "macro_sql": "{% macro config_zapper_udfs(schema_name = \"zapper\", utils_schema_name=\"zapper_utils\") -%}\n{#\n This macro is used to generate the Zapper Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Zapper API. [Zapper docs here](https://studio.zapper.xyz/docs/apis/getting-started).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.zapper.xyz', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'Authorization': 'Basic {API_KEY}'},\n {},\n '_FSC_SYS/ZAPPER'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Zapper API. [Zapper docs here](https://studio.zapper.xyz/docs/apis/getting-started).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://api.zapper.xyz', PATH),\n {'Authorization': 'Basic {API_KEY}'},\n BODY,\n '_FSC_SYS/ZAPPER'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4262373, "supported_languages": null}, "macro.livequery_models.config_alchemy_utils_udfs": {"name": "config_alchemy_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/alchemy/util_udfs.yaml.sql", "original_file_path": "macros/marketplace/alchemy/util_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_alchemy_utils_udfs", "macro_sql": "{% macro config_alchemy_utils_udfs(schema_name = \"alchemy_utils\", utils_schema_name=\"alchemy_utils\") -%}\n{#\n This macro is used to generate the alchemy base endpoints\n #}\n\n- name: {{ schema_name }}.nfts_get\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Alchemy NFT API.$$\n sql: |\n SELECT\n {% set v2_exists = is_udf_api_v2_compatible() %}\n {% if v2_exists -%}\n live.udf_api_v2(\n 'GET',\n concat(\n 'https://', NETWORK,'.g.alchemy.com/nft/v2/{',NETWORK,'}', PATH, '?',\n utils.udf_object_to_url_query_string(QUERY_ARGS)\n ),\n {'fsc-quantum-execution-mode': 'async'},\n {},\n '_FSC_SYS/ALCHEMY',\n TRUE\n )\n {%- else -%}\n live.udf_api(\n 'GET',\n concat(\n 'https://', NETWORK,'.g.alchemy.com/nft/v2/{',NETWORK,'}', PATH, '?',\n utils.udf_object_to_url_query_string(QUERY_ARGS)\n ),\n {},\n {},\n '_FSC_SYS/ALCHEMY'\n )\n {%- endif %}\n as response\n\n- name: {{ schema_name }}.nfts_get\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [VERSION, STRING, The version of the API to use]\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Alchemy NFT API.$$\n sql: |\n SELECT\n {% set v2_exists = is_udf_api_v2_compatible() %}\n {% if v2_exists -%}\n live.udf_api_v2(\n 'GET',\n concat(\n 'https://', NETWORK,'.g.alchemy.com/nft/', VERSION, '/{',NETWORK,'}', PATH, '?',\n utils.udf_object_to_url_query_string(QUERY_ARGS)\n ),\n {'fsc-quantum-execution-mode': 'async'},\n {},\n '_FSC_SYS/ALCHEMY',\n TRUE\n )\n {%- else -%}\n live.udf_api(\n 'GET',\n concat(\n 'https://', NETWORK,'.g.alchemy.com/nft/', VERSION, '/{',NETWORK,'}', PATH, '?',\n utils.udf_object_to_url_query_string(QUERY_ARGS)\n ),\n {},\n {},\n '_FSC_SYS/ALCHEMY'\n )\n {%- endif %}\n as response\n\n- name: {{ schema_name }}.nfts_post\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Alchemy NFT API.$$\n sql: |\n SELECT\n {% set v2_exists = is_udf_api_v2_compatible() %}\n {% if v2_exists -%}\n live.udf_api_v2(\n 'POST',\n concat('https://', NETWORK,'.g.alchemy.com/nft/v2/{',NETWORK,'}', PATH),\n {'fsc-quantum-execution-mode': 'async'},\n BODY,\n '_FSC_SYS/ALCHEMY',\n TRUE\n )\n {%- else -%}\n live.udf_api(\n 'POST',\n concat('https://', NETWORK,'.g.alchemy.com/nft/v2/{',NETWORK,'}', PATH),\n {},\n BODY,\n '_FSC_SYS/ALCHEMY'\n )\n {%- endif %}\n as response\n\n- name: {{ schema_name }}.rpc\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [METHOD, STRING, The RPC method to call]\n - [PARAMS, ARRAY, The RPC Params arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue an RPC call to Alchemy.$$\n sql: |\n SELECT\n {% set v2_exists = is_udf_api_v2_compatible() %}\n {% if v2_exists -%}\n live.udf_api_v2(\n 'POST',\n concat('https://', NETWORK,'.g.alchemy.com/v2/{',NETWORK,'}'),\n {'fsc-quantum-execution-mode': 'async'},\n {'id': 1,'jsonrpc': '2.0','method': METHOD,'params': PARAMS},\n '_FSC_SYS/ALCHEMY',\n TRUE\n )\n {%- else -%}\n live.udf_api(\n 'POST',\n concat('https://', NETWORK,'.g.alchemy.com/v2/{',NETWORK,'}'),\n {},\n {'id': 1,'jsonrpc': '2.0','method': METHOD,'params': PARAMS},\n '_FSC_SYS/ALCHEMY'\n )\n {%- endif %}\n as response\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.is_udf_api_v2_compatible"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4297383, "supported_languages": null}, "macro.livequery_models.config_alchemy_nfts_udfs": {"name": "config_alchemy_nfts_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/alchemy/nft_udfs.yaml.sql", "original_file_path": "macros/marketplace/alchemy/nft_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_alchemy_nfts_udfs", "macro_sql": "{% macro config_alchemy_nfts_udfs(schema_name = \"alchemy_nfts\", utils_schema_name = \"alchemy_utils\") -%}\n{#\n This macro is used to generate the alchemy nft endpoints\n #}\n\n- name: {{ schema_name -}}.get_nfts\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Gets all NFTs currently owned by a given address. [Alchemy docs here](https://docs.alchemy.com/reference/getnfts).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getNFTs') | trim }}\n\n- name: {{ schema_name -}}.get_owners_for_token\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get the owner(s) for a token. [Alchemy docs here](https://docs.alchemy.com/reference/getownersfortoken).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getOwnersForToken') | trim }}\n\n- name: {{ schema_name -}}.get_owners_for_collection\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Gets all owners for a given NFT contract. [Alchemy docs here](https://docs.alchemy.com/reference/getownersforcollection).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getOwnersForCollection') | trim }}\n\n- name: {{ schema_name -}}.is_holder_of_collection\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Checks whether a wallet holds a NFT in a given collection. [Alchemy docs here](https://docs.alchemy.com/reference/isholderofcollection).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'isHolderOfCollection') | trim }}\n\n- name: {{ schema_name -}}.get_contracts_for_owner\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Gets all NFT contracts held by an owner address. [Alchemy docs here](https://docs.alchemy.com/reference/getcontractsforowner).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getContractsForOwner') | trim }}\n\n- name: {{ schema_name -}}.get_nft_metadata\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Gets the metadata associated with a given NFT. [Alchemy docs here](https://docs.alchemy.com/reference/getnftmetadata).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getNFTMetadata') | trim }}\n\n- name: {{ schema_name -}}.get_nft_metadata_batch\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [BODY, OBJECT, JSON Body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Gets the metadata associated with up to 100 given NFT contracts. [Alchemy docs here](https://docs.alchemy.com/reference/getnftmetadatabatch).$$\n sql: {{ alchemy_nft_post_api_call(utils_schema_name, 'getNFTMetadataBatch') | trim }}\n\n- name: {{ schema_name -}}.get_contract_metadata\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Queries NFT high-level collection/contract level information. [Alchemy docs here](https://docs.alchemy.com/reference/getcontractmetadata).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getContractMetadata') | trim }}\n\n- name: {{ schema_name -}}.get_contract_metadata_batch\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [BODY, OBJECT, JSON Body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Gets the metadata associated with the given list of contract addresses. [Alchemy docs here](https://docs.alchemy.com/reference/getcontractmetadatabatch).$$\n sql: {{ alchemy_nft_post_api_call(utils_schema_name, 'getContractMetadataBatch') | trim }}\n\n- name: {{ schema_name -}}.invalidate_contract\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Marks all cached tokens for the particular contract as stale. So the next time the endpoint is queried it fetches live data instead of fetching from cache. [Alchemy docs here](https://docs.alchemy.com/reference/invalidatecontract).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'invalidateContract') | trim }}\n\n- name: {{ schema_name -}}.reingest_contract\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Triggers metadata refresh for an entire NFT collection and refreshes stale metadata after a collection reveal/collection changes. [Alchemy docs here](https://docs.alchemy.com/reference/reingestcontract).$$\n sql: {{ alchemy_nft_get_api_call_version(utils_schema_name, 'invalidateContract', 'v3') | trim }}\n\n- name: {{ schema_name -}}.search_contract_metadata\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Search for a keyword across metadata of all ERC-721 and ERC-1155 smart contracts. [Alchemy docs here](https://docs.alchemy.com/reference/searchcontractmetadata).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'searchContractMetadata') | trim }}\n\n- name: {{ schema_name -}}.get_nfts_for_collection\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Gets all NFTs for a given NFT contract. [Alchemy docs here](https://docs.alchemy.com/reference/getnftsforcollection).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getNFTsForCollection') | trim }}\n\n- name: {{ schema_name -}}.get_spam_contracts\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns a list of all spam contracts marked by Alchemy. [Alchemy docs here](https://docs.alchemy.com/reference/getspamcontracts).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getSpamContracts') | trim }}\n\n- name: {{ schema_name -}}.is_spam_contract\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns whether a contract is marked as spam or not by Alchemy. [Alchemy docs here](https://docs.alchemy.com/reference/isspamcontract).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'isSpamContract') | trim }}\n\n- name: {{ schema_name -}}.is_airdrop\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns whether a token is marked as an airdrop or not. Airdrops are defined as NFTs that were minted to a user address in a transaction sent by a different address. [Alchemy docs here](https://docs.alchemy.com/reference/isairdrop).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'isAirdrop') | trim }}\n\n- name: {{ schema_name -}}.report_spam\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Report a particular address to our APIs if you think it is spam. [Alchemy docs here](https://docs.alchemy.com/reference/reportspam).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'reportSpam') | trim }}\n\n- name: {{ schema_name -}}.get_floor_price\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns the floor prices of a NFT collection by marketplace. [Alchemy docs here](https://docs.alchemy.com/reference/getfloorprice).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getFloorPrice') | trim }}\n\n- name: {{ schema_name -}}.get_nft_sales\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Gets NFT sales that have happened through on-chain marketplaces. [Alchemy docs here](https://docs.alchemy.com/reference/getnftsales).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getNFTSales') | trim }}\n\n- name: {{ schema_name -}}.compute_rarity\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Computes the rarity of each attribute of an NFT. [Alchemy docs here](https://docs.alchemy.com/reference/computerarity).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'computeRarity') | trim }}\n\n- name: {{ schema_name -}}.summarize_nft_attributes\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Generate a summary of attribute prevalence for an NFT collection. [Alchemy docs here](https://docs.alchemy.com/reference/summarizenftattributes).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'summarizeNFTAttributes') | trim }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.alchemy_nft_get_api_call", "macro.livequery_models.alchemy_nft_post_api_call", "macro.livequery_models.alchemy_nft_get_api_call_version"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4461737, "supported_languages": null}, "macro.livequery_models.alchemy_nft_get_api_call": {"name": "alchemy_nft_get_api_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/alchemy/alchemy_config_utils.sql", "original_file_path": "macros/marketplace/alchemy/alchemy_config_utils.sql", "unique_id": "macro.livequery_models.alchemy_nft_get_api_call", "macro_sql": "{% macro alchemy_nft_get_api_call(schema_name, api_path) %}\nSELECT {{ schema_name -}}.nfts_get(NETWORK, '/{{api_path}}', QUERY_ARGS) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.446836, "supported_languages": null}, "macro.livequery_models.alchemy_nft_get_api_call_version": {"name": "alchemy_nft_get_api_call_version", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/alchemy/alchemy_config_utils.sql", "original_file_path": "macros/marketplace/alchemy/alchemy_config_utils.sql", "unique_id": "macro.livequery_models.alchemy_nft_get_api_call_version", "macro_sql": "{% macro alchemy_nft_get_api_call_version(schema_name, api_path, version) %}\nSELECT {{ schema_name -}}.nfts_get(NETWORK, '{{version}}', '/{{api_path}}', QUERY_ARGS) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.447203, "supported_languages": null}, "macro.livequery_models.alchemy_nft_post_api_call": {"name": "alchemy_nft_post_api_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/alchemy/alchemy_config_utils.sql", "original_file_path": "macros/marketplace/alchemy/alchemy_config_utils.sql", "unique_id": "macro.livequery_models.alchemy_nft_post_api_call", "macro_sql": "{% macro alchemy_nft_post_api_call(schema_name, api_path) %}\nSELECT {{ schema_name -}}.nfts_post(NETWORK, '/{{api_path}}', BODY) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4474843, "supported_languages": null}, "macro.livequery_models.alchemy_rpc_call": {"name": "alchemy_rpc_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/alchemy/alchemy_config_utils.sql", "original_file_path": "macros/marketplace/alchemy/alchemy_config_utils.sql", "unique_id": "macro.livequery_models.alchemy_rpc_call", "macro_sql": "{% macro alchemy_rpc_call(schema_name, method) %}\nSELECT {{ schema_name -}}.rpc(NETWORK, '{{method}}', PARAMS) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.447769, "supported_languages": null}, "macro.livequery_models.config_alchemy_transfers_udfs": {"name": "config_alchemy_transfers_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/alchemy/transfers_udfs.yaml.sql", "original_file_path": "macros/marketplace/alchemy/transfers_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_alchemy_transfers_udfs", "macro_sql": "{% macro config_alchemy_transfers_udfs(schema_name = \"alchemy_transfers\", utils_schema_name = \"alchemy_utils\") -%}\n{#\n This macro is used to generate the alchemy transfers endpoints\n #}\n\n- name: {{ schema_name -}}.get_asset_transfers\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [PARAMS, ARRAY, Array of JSON param objects for RPC request]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$The Transfers API allows you to easily fetch historical transactions for any address across Ethereum and supported L2s including Polygon, Arbitrum, and Optimism. [Alchemy docs here](https://docs.alchemy.com/reference/alchemy-getassettransfers).$$\n sql: {{alchemy_rpc_call(utils_schema_name, \"alchemy_getAssetTransfers\") | trim}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.alchemy_rpc_call"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4484742, "supported_languages": null}, "macro.livequery_models.config_alchemy_tokens_udfs": {"name": "config_alchemy_tokens_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/alchemy/token_udfs.yaml.sql", "original_file_path": "macros/marketplace/alchemy/token_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_alchemy_tokens_udfs", "macro_sql": "{% macro config_alchemy_tokens_udfs(schema_name = \"alchemy_tokens\", utils_schema_name = \"alchemy_utils\") -%}\n{#\n This macro is used to generate the alchemy token endpoints\n #}\n\n- name: {{ schema_name -}}.get_token_allowance\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [PARAMS, ARRAY, Array of JSON param objects for RPC request]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns the amount which the spender is allowed to withdraw from the owner. [Alchemy docs here](https://docs.alchemy.com/reference/alchemy-gettokenallowance).$$\n sql: {{alchemy_rpc_call(utils_schema_name, \"alchemy_getTokenAllowance\") | trim}}\n\n- name: {{ schema_name -}}.get_token_balances\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [PARAMS, ARRAY, Array of JSON param objects for RPC request]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns ERC20 token balances for all tokens the given address has ever transacted in with. Optionally accepts a list of contracts. [Alchemy docs here](https://docs.alchemy.com/reference/alchemy-gettokenbalances).$$\n sql: {{alchemy_rpc_call(utils_schema_name, \"alchemy_getTokenBalances\") | trim}}\n\n- name: {{ schema_name -}}.get_token_metadata\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [PARAMS, ARRAY, Array of JSON param objects for RPC request]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns metadata (name, symbol, decimals, logo) for a given token contract address. [Alchemy docs here](https://docs.alchemy.com/reference/alchemy-gettokenmetadata).$$\n sql: {{alchemy_rpc_call(utils_schema_name, \"alchemy_getTokenMetadata\") | trim}}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.alchemy_rpc_call"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4498978, "supported_languages": null}, "macro.livequery_models.config_chainstack_udfs": {"name": "config_chainstack_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/chainstack/udfs.yaml.sql", "original_file_path": "macros/marketplace/chainstack/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_chainstack_udfs", "macro_sql": "{% macro config_chainstack_udfs(schema_name = \"chainstack\", utils_schema_name=\"chainstack_utils\") -%}\n{#\n This macro is used to generate the Chainstack Base api endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Chainstack API. [Chainstack docs here](https://docs.chainstack.com/reference/blockchain-apis).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.chainstack.com', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'authorization': 'Bearer {API_KEY}'},\n {},\n '_FSC_SYS/CHAINSTACK'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Chainstack API. [Chainstack docs here](https://docs.chainstack.com/reference/blockchain-apis).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://api.chainstack.com', PATH),\n {'authorization': 'Bearer {API_KEY}'},\n BODY,\n '_FSC_SYS/CHAINSTACK'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4506564, "supported_languages": null}, "macro.livequery_models.config_blockpour_utils_udfs": {"name": "config_blockpour_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/blockpour/util_udfs.yaml.sql", "original_file_path": "macros/marketplace/blockpour/util_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_blockpour_utils_udfs", "macro_sql": "{% macro config_blockpour_utils_udfs(schema_name = \"blockpour_utils\", utils_schema_name=\"blockpour_utils\") -%}\n{#\n This macro is used to generate the Blockpour base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Blockpour API.$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat(\n 'https://services.blockpour.com/api', PATH, '?',\n utils.udf_object_to_url_query_string(QUERY_ARGS)\n ),\n {'api-key': '{API_KEY}'},\n {},\n '_FSC_SYS/BLOCKPOUR'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the BlockPour API.$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n concat('https://services.blockpour.com/api', PATH),\n {'api-key': '{API_KEY}'},\n BODY,\n '_FSC_SYS/BLOCKPOUR'\n ) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4513826, "supported_languages": null}, "macro.livequery_models.apply_meta_as_tags": {"name": "apply_meta_as_tags", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.livequery_models.apply_meta_as_tags", "macro_sql": "{% macro apply_meta_as_tags(results) %}\n {% if var(\"UPDATE_SNOWFLAKE_TAGS\") %}\n {{ log('apply_meta_as_tags', info=False) }}\n {{ log(results, info=False) }}\n {% if execute %}\n\n {%- set tags_by_schema = {} -%}\n {% for res in results -%}\n {% if res.node.meta.database_tags %}\n\n {%- set model_database = res.node.database -%}\n {%- set model_schema = res.node.schema -%}\n {%- set model_schema_full = model_database+'.'+model_schema -%}\n {%- set model_alias = res.node.alias -%}\n\n {% if model_schema_full not in tags_by_schema.keys() %}\n {{ log('need to fetch tags for schema '+model_schema_full, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n show tags in {{model_database}}.{{model_schema}}\n {%- endcall -%}\n {%- set _ = tags_by_schema.update({model_schema_full: load_result('main')['table'].columns.get('name').values()|list}) -%}\n {{ log('Added tags to cache', info=False) }}\n {% else %}\n {{ log('already have tag info for schema', info=False) }}\n {% endif %}\n\n {%- set current_tags_in_schema = tags_by_schema[model_schema_full] -%}\n {{ log('current_tags_in_schema:', info=False) }}\n {{ log(current_tags_in_schema, info=False) }}\n {{ log(\"========== Processing tags for \"+model_schema_full+\".\"+model_alias+\" ==========\", info=False) }}\n\n {% set line -%}\n node: {{ res.node.unique_id }}; status: {{ res.status }} (message: {{ res.message }})\n node full: {{ res.node}}\n meta: {{ res.node.meta}}\n materialized: {{ res.node.config.materialized }}\n {%- endset %}\n {{ log(line, info=False) }}\n\n {%- call statement('main', fetch_result=True) -%}\n select LEVEL,UPPER(TAG_NAME) as TAG_NAME,TAG_VALUE from table(information_schema.tag_references_all_columns('{{model_schema}}.{{model_alias}}', 'table'))\n {%- endcall -%}\n {%- set existing_tags_for_table = load_result('main')['data'] -%}\n {{ log('Existing tags for table:', info=False) }}\n {{ log(existing_tags_for_table, info=False) }}\n\n {{ log('--', info=False) }}\n {% for table_tag in res.node.meta.database_tags.table %}\n\n {{ create_tag_if_missing(current_tags_in_schema,table_tag|upper) }}\n {% set desired_tag_value = res.node.meta.database_tags.table[table_tag] %}\n\n {{set_table_tag_value_if_different(model_schema,model_alias,table_tag,desired_tag_value,existing_tags_for_table)}}\n {% endfor %}\n {{ log(\"========== Finished processing tags for \"+model_alias+\" ==========\", info=False) }}\n {% endif %}\n {% endfor %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.livequery_models.create_tag_if_missing", "macro.livequery_models.set_table_tag_value_if_different"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4701986, "supported_languages": null}, "macro.livequery_models.create_tag_if_missing": {"name": "create_tag_if_missing", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.livequery_models.create_tag_if_missing", "macro_sql": "{% macro create_tag_if_missing(all_tag_names,table_tag) %}\n\t{% if table_tag not in all_tag_names %}\n\t\t{{ log('Creating missing tag '+table_tag, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n create tag if not exists silver.{{table_tag}}\n {%- endcall -%}\n\t\t{{ log(load_result('main').data, info=False) }}\n\t{% else %}\n\t\t{{ log('Tag already exists: '+table_tag, info=False) }}\n\t{% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4713361, "supported_languages": null}, "macro.livequery_models.set_table_tag_value_if_different": {"name": "set_table_tag_value_if_different", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.livequery_models.set_table_tag_value_if_different", "macro_sql": "{% macro set_table_tag_value_if_different(model_schema,table_name,tag_name,desired_tag_value,existing_tags) %}\n {{ log('Ensuring tag '+tag_name+' has value '+desired_tag_value+' at table level', info=False) }}\n {%- set existing_tag_for_table = existing_tags|selectattr('0','equalto','TABLE')|selectattr('1','equalto',tag_name|upper)|list -%}\n {{ log('Filtered tags for table:', info=False) }}\n {{ log(existing_tag_for_table[0], info=False) }}\n {% if existing_tag_for_table|length > 0 and existing_tag_for_table[0][2]==desired_tag_value %}\n {{ log('Correct tag value already exists', info=False) }}\n {% else %}\n {{ log('Setting tag value for '+tag_name+' to value '+desired_tag_value, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n alter table {{model_schema}}.{{table_name}} set tag {{tag_name}} = '{{desired_tag_value}}'\n {%- endcall -%}\n {{ log(load_result('main').data, info=False) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4735777, "supported_languages": null}, "macro.livequery_models.set_column_tag_value_if_different": {"name": "set_column_tag_value_if_different", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.livequery_models.set_column_tag_value_if_different", "macro_sql": "{% macro set_column_tag_value_if_different(table_name,column_name,tag_name,desired_tag_value,existing_tags) %}\n {{ log('Ensuring tag '+tag_name+' has value '+desired_tag_value+' at column level', info=False) }}\n {%- set existing_tag_for_column = existing_tags|selectattr('0','equalto','COLUMN')|selectattr('1','equalto',tag_name|upper)|list -%}\n {{ log('Filtered tags for column:', info=False) }}\n {{ log(existing_tag_for_column[0], info=False) }}\n {% if existing_tag_for_column|length > 0 and existing_tag_for_column[0][2]==desired_tag_value %}\n {{ log('Correct tag value already exists', info=False) }}\n {% else %}\n {{ log('Setting tag value for '+tag_name+' to value '+desired_tag_value, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n alter table {{table_name}} modify column {{column_name}} set tag {{tag_name}} = '{{desired_tag_value}}'\n {%- endcall -%}\n {{ log(load_result('main').data, info=False) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4757993, "supported_languages": null}, "macro.livequery_models.set_database_tag_value": {"name": "set_database_tag_value", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.livequery_models.set_database_tag_value", "macro_sql": "{% macro set_database_tag_value(tag_name,tag_value) %}\n {% set query %}\n create tag if not exists silver.{{tag_name}}\n {% endset %}\n {% do run_query(query) %}\n {% set query %}\n alter database {{target.database}} set tag {{target.database}}.silver.{{tag_name}} = '{{tag_value}}'\n {% endset %}\n {% do run_query(query) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4766524, "supported_languages": null}, "macro.livequery_models.set_schema_tag_value": {"name": "set_schema_tag_value", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.livequery_models.set_schema_tag_value", "macro_sql": "{% macro set_schema_tag_value(target_schema,tag_name,tag_value) %}\n {% set query %}\n create tag if not exists silver.{{tag_name}}\n {% endset %}\n {% do run_query(query) %}\n {% set query %}\n alter schema {{target.database}}.{{target_schema}} set tag {{target.database}}.silver.{{tag_name}} = '{{tag_value}}'\n {% endset %}\n {% do run_query(query) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.477533, "supported_languages": null}, "macro.livequery_models.add_database_or_schema_tags": {"name": "add_database_or_schema_tags", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/tags/add_database_or_schema_tags.sql", "original_file_path": "macros/tags/add_database_or_schema_tags.sql", "unique_id": "macro.livequery_models.add_database_or_schema_tags", "macro_sql": "{% macro add_database_or_schema_tags() %}\n {{ set_database_tag_value('BLOCKCHAIN_NAME','LIVEQUERY') }}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.set_database_tag_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4779203, "supported_languages": null}, "macro.livequery_models.create_s3_express_external_access_integration": {"name": "create_s3_express_external_access_integration", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/external_access_integrations.sql", "original_file_path": "macros/livequery/external_access_integrations.sql", "unique_id": "macro.livequery_models.create_s3_express_external_access_integration", "macro_sql": "{% macro create_s3_express_external_access_integration() %}\n {% set network_rule_sql %}\n CREATE NETWORK RULE IF NOT EXISTS s3_express_network_rule\n MODE = EGRESS\n TYPE = HOST_PORT\n VALUE_LIST = (\n '*.s3express-use1-az4.us-east-1.amazonaws.com:443',\n '*.s3express-use1-az5.us-east-1.amazonaws.com:443',\n '*.s3express-use1-az6.us-east-1.amazonaws.com:443'\n )\n {% endset %}\n\n {% set external_access_sql %}\n CREATE EXTERNAL ACCESS INTEGRATION IF NOT EXISTS s3_express_external_access_integration\n ALLOWED_NETWORK_RULES = (s3_express_network_rule)\n ENABLED = true\n {% endset %}\n\n {% do run_query(use_schema_sql) %}\n {% do run_query(network_rule_sql) %}\n {% do run_query(external_access_sql) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4788377, "supported_languages": null}, "macro.livequery_models.drop_function": {"name": "drop_function", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.drop_function", "macro_sql": "{% macro drop_function(\n func_name,\n signature\n ) %}\n DROP FUNCTION IF EXISTS {{ func_name }}({{ compile_signature(signature, drop_ = True) }});\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.compile_signature"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4879775, "supported_languages": null}, "macro.livequery_models.construct_api_route": {"name": "construct_api_route", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.construct_api_route", "macro_sql": "\n\n{%- macro construct_api_route(route) -%}\n 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}{{ route }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4883163, "supported_languages": null}, "macro.livequery_models.compile_signature": {"name": "compile_signature", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.compile_signature", "macro_sql": "{%- macro compile_signature(\n params,\n drop_ = False\n ) -%}\n {% for p in params -%}\n {%- set name = p.0 -%}\n {%- set data_type = p.1 -%}\n {% if drop_ %}\n {{ data_type -}}\n {% else %}\n {{ name ~ \" \" ~ data_type -}}\n {%- endif -%}\n {%-if not loop.last -%},\n {%- endif -%}\n {% endfor -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4892206, "supported_languages": null}, "macro.livequery_models.format_headers": {"name": "format_headers", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.format_headers", "macro_sql": "{%- macro format_headers(headers) -%}\n {%- if headers -%}\n {%- if headers is mapping -%}\n {%- set header_items = [] -%}\n {%- for key, value in headers.items() -%}\n {%- set _ = header_items.append(\"'\" ~ key ~ \"' = '\" ~ value ~ \"'\") -%}\n {%- endfor -%}\n HEADERS = (\n {{ header_items | join(',\\n ') }}\n)\n {%- elif headers is iterable -%}\n {%- set header_items = [] -%}\n {%- for item in headers -%}\n {%- if item is mapping -%}\n {%- for key, value in item.items() -%}\n {%- set _ = header_items.append(\"'\" ~ key ~ \"' = '\" ~ value ~ \"'\") -%}\n {%- endfor -%}\n {%- endif -%}\n {%- endfor -%}\n HEADERS = (\n {{ header_items | join(',\\n ') }}\n)\n {%- endif -%}\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4910648, "supported_languages": null}, "macro.livequery_models.create_sql_function": {"name": "create_sql_function", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.create_sql_function", "macro_sql": "{% macro create_sql_function(\n name_,\n signature,\n return_type,\n sql_,\n api_integration = none,\n options = none,\n func_type = none,\n max_batch_rows = none,\n headers = none\n ) %}\n CREATE OR REPLACE {{ func_type }} FUNCTION {{ name_ }}(\n {{- livequery_models.compile_signature(signature) }}\n )\n COPY GRANTS\n RETURNS {{ return_type }}\n {% if options -%}\n {{ options }}\n {% endif %}\n {%- if api_integration -%}\n api_integration = {{ api_integration -}}\n {%- if max_batch_rows -%}\n {{ \"\\n max_batch_rows = \" ~ max_batch_rows -}}\n {%- endif -%}\n {%- if headers -%}\n {{ \"\\n\" ~ livequery_models.format_headers(headers) -}}\n {%- endif -%}\n {{ \"\\n AS \" ~ livequery_models.construct_api_route(sql_) ~ \";\" -}}\n {%- else -%}\n AS\n $$\n {{ sql_ }}\n $$;\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.livequery_models.compile_signature", "macro.livequery_models.format_headers", "macro.livequery_models.construct_api_route"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.492633, "supported_languages": null}, "macro.livequery_models.create_or_drop_function_from_config": {"name": "create_or_drop_function_from_config", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.create_or_drop_function_from_config", "macro_sql": "{%- macro create_or_drop_function_from_config(\n config,\n drop_ = False\n ) -%}\n {% set name_ = config [\"name\"] %}\n {% set signature = config [\"signature\"] %}\n {% set return_type = config [\"return_type\"] if config [\"return_type\"] is string else config [\"return_type\"][0] %}\n {% set sql_ = config [\"sql\"] %}\n {% set options = config [\"options\"] %}\n {% set api_integration = config [\"api_integration\"] %}\n {% set func_type = config [\"func_type\"] %}\n {% set max_batch_rows = config [\"max_batch_rows\"] %}\n {% set headers = config [\"headers\"] %}\n {% if not drop_ -%}\n {{ livequery_models.create_sql_function(\n name_ = name_,\n signature = signature,\n return_type = return_type,\n sql_ = sql_,\n options = options,\n api_integration = api_integration,\n max_batch_rows = max_batch_rows,\n func_type = func_type,\n headers = headers\n ) }}\n {%- else -%}\n {{ drop_function(\n name_,\n signature = signature,\n ) }}\n {%- endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.create_sql_function", "macro.livequery_models.drop_function"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4949174, "supported_languages": null}, "macro.livequery_models.crud_udfs": {"name": "crud_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.crud_udfs", "macro_sql": "{% macro crud_udfs(config_func, schema, drop_) %}\n{#\n Generate create or drop statements for a list of udf configs for a given schema\n\n config_func: function that returns a list of udf configs\n drop_: whether to drop or create the udfs\n #}\n {% set udfs = fromyaml(config_func())%}\n {%- for udf in udfs -%}\n {% if udf[\"name\"].split(\".\") | first == schema %}\n CREATE SCHEMA IF NOT EXISTS {{ schema }};\n {{- create_or_drop_function_from_config(udf, drop_=drop_) -}}\n {%- endif -%}\n {%- endfor -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.livequery_models.create_or_drop_function_from_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4958205, "supported_languages": null}, "macro.livequery_models.crud_udfs_by_chain": {"name": "crud_udfs_by_chain", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.crud_udfs_by_chain", "macro_sql": "{% macro crud_udfs_by_chain(config_func, blockchain, network, drop_) %}\n{#\n Generate create or drop statements for a list of udf configs for a given blockchain and network\n\n config_func: function that returns a list of udf configs\n blockchain: blockchain name\n network: network name\n drop_: whether to drop or create the udfs\n #}\n {% set schema = blockchain if not network else blockchain ~ \"_\" ~ network %}\n CREATE SCHEMA IF NOT EXISTS {{ schema }};\n {%- set configs = fromyaml(config_func(blockchain, network)) if network else fromyaml(config_func(schema, blockchain)) -%}\n {%- for udf in configs -%}\n {{- livequery_models.create_or_drop_function_from_config(udf, drop_=drop_) -}}\n {%- endfor -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.livequery_models.create_or_drop_function_from_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4969368, "supported_languages": null}, "macro.livequery_models.crud_udfs_by_marketplace": {"name": "crud_udfs_by_marketplace", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.crud_udfs_by_marketplace", "macro_sql": "{% macro crud_udfs_by_marketplace(config_func, schema, utility_schema, drop_) %}\n{#\n Generate create or drop statements for a list of udf configs for a given blockchain and network\n\n config_func: function that returns a list of udf configs\n schema: schema name\n utility_schema: utility schema name\n #}\n CREATE SCHEMA IF NOT EXISTS {{ schema }};\n {%- set configs = fromyaml(config_func(schema, utility_schema)) if utility_schema else fromyaml(config_func(schema, schema)) -%}\n {%- for udf in configs -%}\n {{- create_or_drop_function_from_config(udf, drop_=drop_) -}}\n {%- endfor -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.livequery_models.create_or_drop_function_from_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4978123, "supported_languages": null}, "macro.livequery_models.crud_marketplace_udfs": {"name": "crud_marketplace_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.crud_marketplace_udfs", "macro_sql": "{% macro crud_marketplace_udfs(config_func, schemaName, base_api_schema_name, drop_) %}\n{#\n Generate create or drop statements for a list of udf configs for a given schema and api\n\n config_func: function that returns a list of udf configs\n schemaName: the target schema to build the udfs\n base_api_schema_name: the schema that contains base api functions\n drop_: whether to drop or create the udfs\n #}\n {%- set udfs = fromyaml(config_func(schemaName, base_api_schema_name)) -%}\n {%- for udf in udfs -%}\n {{- create_or_drop_function_from_config(udf, drop_=drop_) -}}\n {%- endfor -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.livequery_models.create_or_drop_function_from_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.4984937, "supported_languages": null}, "macro.livequery_models.ephemeral_deploy_core": {"name": "ephemeral_deploy_core", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.ephemeral_deploy_core", "macro_sql": "{% macro ephemeral_deploy_core(config) %}\n{#\n This macro is used to deploy functions using ephemeral models.\n It should only be used within an ephemeral model.\n #}\n {% if execute and (var(\"UPDATE_UDFS_AND_SPS\") or var(\"DROP_UDFS_AND_SPS\")) and model.unique_id in selected_resources %}\n {% set sql %}\n {{- livequery_models.crud_udfs(config, this.schema, var(\"DROP_UDFS_AND_SPS\")) -}}\n {%- endset -%}\n {%- if var(\"DROP_UDFS_AND_SPS\") -%}\n {%- do log(\"Drop core udfs: \" ~ this.database ~ \".\" ~ this.schema, true) -%}\n {%- else -%}\n {%- do log(\"Deploy core udfs: \" ~ this.database ~ \".\" ~ this.schema, true) -%}\n {%- endif -%}\n {%- do run_query(sql ~ livequery_models.apply_grants_by_schema(this.schema)) -%}\n {%- endif -%}\n SELECT '{{ model.schema }}' as schema_\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.livequery_models.crud_udfs", "macro.dbt.run_query", "macro.livequery_models.apply_grants_by_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5002663, "supported_languages": null}, "macro.livequery_models.ephemeral_deploy": {"name": "ephemeral_deploy", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.ephemeral_deploy", "macro_sql": "{% macro ephemeral_deploy(configs) %}\n{#\n This macro is used to deploy functions using ephemeral models.\n It should only be used within an ephemeral model.\n #}\n {%- set blockchain = this.schema -%}\n {%- set network = this.identifier -%}\n {% set schema = blockchain ~ \"_\" ~ network %}\n {% if execute and (var(\"UPDATE_UDFS_AND_SPS\") or var(\"DROP_UDFS_AND_SPS\")) and model.unique_id in selected_resources %}\n {% set sql %}\n {% for config in configs %}\n {{- livequery_models.crud_udfs_by_chain(config, blockchain, network, var(\"DROP_UDFS_AND_SPS\")) -}}\n {%- endfor -%}\n {%- endset -%}\n {%- if var(\"DROP_UDFS_AND_SPS\") -%}\n {%- do log(\"Drop partner udfs: \" ~ this.database ~ \".\" ~ schema, true) -%}\n {%- else -%}\n {%- do log(\"Deploy partner udfs: \" ~ this.database ~ \".\" ~ schema, true) -%}\n {%- endif -%}\n {%- do run_query(sql ~ livequery_models.apply_grants_by_schema(schema)) -%}\n {%- endif -%}\n SELECT '{{ model.schema }}' as schema_\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.livequery_models.crud_udfs_by_chain", "macro.dbt.run_query", "macro.livequery_models.apply_grants_by_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5023255, "supported_languages": null}, "macro.livequery_models.ephemeral_deploy_marketplace": {"name": "ephemeral_deploy_marketplace", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.ephemeral_deploy_marketplace", "macro_sql": "{% macro ephemeral_deploy_marketplace(configs) %}\n{#\n This macro is used to deploy functions using ephemeral models.\n It should only be used within an ephemeral model.\n #}\n {%- set schema = this.schema -%}\n {%- set utility_schema = this.identifier -%}\n {% if execute and (var(\"UPDATE_UDFS_AND_SPS\") or var(\"DROP_UDFS_AND_SPS\")) and model.unique_id in selected_resources %}\n {% set sql %}\n {% for config in configs %}\n {{- crud_udfs_by_marketplace(config, schema, utility_schema, var(\"DROP_UDFS_AND_SPS\")) -}}\n {%- endfor -%}\n {%- endset -%}\n {%- if var(\"DROP_UDFS_AND_SPS\") -%}\n {%- do log(\"Drop marketplace udfs: \" ~ this.database ~ \".\" ~ schema, true) -%}\n {%- else -%}\n {%- do log(\"Deploy marketplace udfs: \" ~ this.database ~ \".\" ~ schema, true) -%}\n {%- endif -%}\n {%- do run_query(sql ~ livequery_models.apply_grants_by_schema(schema)) -%}\n {%- endif -%}\n SELECT '{{ model.schema }}' as schema_\n{%- endmacro -%}", "depends_on": {"macros": ["macro.livequery_models.crud_udfs_by_marketplace", "macro.dbt.run_query", "macro.livequery_models.apply_grants_by_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5042136, "supported_languages": null}, "macro.livequery_models.get_streamline_stack_version": {"name": "get_streamline_stack_version", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/udf_compatibility.sql", "original_file_path": "macros/livequery/udf_compatibility.sql", "unique_id": "macro.livequery_models.get_streamline_stack_version", "macro_sql": "{% macro get_streamline_stack_version() -%}\n{# Determine the environment based on target.name #}\n{% if target.name == 'dev' %}\n {% set env = 'stg' %}\n{% elif target.name == 'prod' %}\n {% set env = 'prod' %}\n{% else %}\n {% set env = 'stg' %}\n{% endif %}\n\n{# Extract database prefix if it follows pattern _ #}\n{% set database_parts = target.database.split('_') %}\n{% if database_parts|length > 1 and database_parts[-1].lower() == target.name.lower() %}\n {% set database_prefix = database_parts[:-1]|join('_') %}\n{% else %}\n {% set database_prefix = target.database %}\n{% endif %}\n\n\n{% set streamline_stack_version_query %}\n SELECT\n TAGS:streamline_runtime_version::STRING as runtime_version,\n TAGS:streamline_infrastructure_version::STRING as infrastructure_version\n FROM TABLE(STREAMLINE.AWS.CLOUDFORMATION_DESCRIBE_STACKS('{{ env }}', '{{ database_prefix.lower() }}-api-{{ env }}'));\n{% endset %}\n\n{% if execute %}\n {% set result = run_query(streamline_stack_version_query) %}\n {% if result.rows|length > 0 %}\n {% set runtime_version = result.rows[0][0] %}\n {% set infrastructure_version = result.rows[0][1] %}\n {% set streamline_stack_version = {'runtime_version': runtime_version, 'infrastructure_version': infrastructure_version} %}\n {% else %}\n {% set streamline_stack_version = {'runtime_version': false, 'infrastructure_version': false} %}\n {% endif %}\n{% else %}\n {% set streamline_stack_version = {'runtime_version': false, 'infrastructure_version': false} %}\n{% endif %}\n\n{{ return(streamline_stack_version) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5087905, "supported_languages": null}, "macro.livequery_models.is_udf_api_v2_compatible": {"name": "is_udf_api_v2_compatible", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/udf_compatibility.sql", "original_file_path": "macros/livequery/udf_compatibility.sql", "unique_id": "macro.livequery_models.is_udf_api_v2_compatible", "macro_sql": "{% macro is_udf_api_v2_compatible() -%}\n{% set versions = get_streamline_stack_version() %}\n\n{% if execute and versions.runtime_version %}\n {# Extract version number from runtime_version string (e.g., \"v3.1.2\" -> \"3.1.2\") #}\n {% set version_str = versions.runtime_version.replace('v', '') %}\n {% set version_parts = version_str.split('.') %}\n\n {# Convert to comparable format: major.minor.patch #}\n {% set major = version_parts[0] | int %}\n {% set minor = version_parts[1] | int if version_parts|length > 1 else 0 %}\n {% set patch = version_parts[2] | int if version_parts|length > 2 else 0 %}\n\n {# Check if version is >= 3.0.0 #}\n {% set is_compatible = major >= 3 %}\n{% else %}\n {% set is_compatible = false %}\n{% endif %}\n\n{{ return(is_compatible) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.livequery_models.get_streamline_stack_version"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5105758, "supported_languages": null}, "macro.livequery_models.create_aws_ethereum_api": {"name": "create_aws_ethereum_api", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/api_integrations.sql", "original_file_path": "macros/livequery/api_integrations.sql", "unique_id": "macro.livequery_models.create_aws_ethereum_api", "macro_sql": "{% macro create_aws_ethereum_api() %}\n {% if target.name == \"prod\" %}\n {% set sql %}\n CREATE api integration IF NOT EXISTS aws_ethereum_api api_provider = aws_api_gateway api_aws_role_arn = 'arn:aws:iam::661245089684:role/snowflake-api-ethereum' api_allowed_prefixes = (\n 'https://e03pt6v501.execute-api.us-east-1.amazonaws.com/prod/',\n 'https://mryeusnrob.execute-api.us-east-1.amazonaws.com/dev/'\n ) enabled = TRUE;\n{% endset %}\n {% do run_query(sql) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.511364, "supported_languages": null}, "macro.livequery_models.create_udf_introspect": {"name": "create_udf_introspect", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/streamline_udfs.sql", "original_file_path": "macros/livequery/streamline_udfs.sql", "unique_id": "macro.livequery_models.create_udf_introspect", "macro_sql": "{% macro create_udf_introspect(\n drop_ = False\n ) %}\n {% set name_ = 'silver.udf_introspect' %}\n {% set signature = [('json', 'variant')] %}\n {% set return_type = 'text' %}\n {% set sql_ = construct_api_route(\"introspect\") %}\n {% if not drop_ %}\n {{ create_sql_function(\n name_ = name_,\n signature = signature,\n return_type = return_type,\n sql_ = sql_,\n api_integration = var(\"API_INTEGRATION\")\n ) }}\n {% else %}\n {{ drop_function(\n name_,\n signature = signature,\n ) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.construct_api_route", "macro.livequery_models.create_sql_function", "macro.livequery_models.drop_function"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5130453, "supported_languages": null}, "macro.livequery_models.sql_live_rpc_call": {"name": "sql_live_rpc_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/utils.sql", "original_file_path": "macros/livequery/utils.sql", "unique_id": "macro.livequery_models.sql_live_rpc_call", "macro_sql": "{% macro sql_live_rpc_call(method, params, blockchain, network) %}\n{#\n Helper macro to call a JSON RPC method on a live node.\n\n Parameters:\n method (string): The JSON RPC method to call.\n params (array): The JSON RPC parameters to pass to the method.\n blockchain (string): The blockchain to call the method on.\n network (string): The network to call the method on.\n Returns:\n string: The SQL to call the method.\n #}\n WITH result as (\n SELECT\n live.udf_api(\n '{endpoint}'\n ,utils.udf_json_rpc_call({{ method }}, {{ params }})\n ,concat_ws('/', 'integration', _utils.udf_provider(), '{{ blockchain }}', '{{ network }}')\n )::VARIANT:data AS data\n )\n SELECT\n COALESCE(data:result, {'error':data:error})\n FROM result\n{% endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5137336, "supported_languages": null}, "macro.livequery_models.config_core__utils": {"name": "config_core__utils", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/_utils.yaml.sql", "original_file_path": "macros/core/_utils.yaml.sql", "unique_id": "macro.livequery_models.config_core__utils", "macro_sql": "{% macro config_core__utils(schema=\"_utils\") %}\n\n- name: {{ schema }}.udf_introspect\n signature:\n - [echo, STRING]\n func_type: SECURE EXTERNAL\n return_type: TEXT\n api_integration: '{{ var(\"API_INTEGRATION\") }}'\n sql: introspect\n\n- name: {{ schema }}.udf_user_tier\n signature: []\n func_type: SECURE\n return_type: TEXT\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n MEMOIZABLE\n sql: |\n SELECT\n COALESCE(PARSE_JSON(GETVARIABLE('LIVEQUERY_CONTEXT')):userTier::STRING, 'community')\n\n- name: {{ schema }}.udf_provider\n signature: []\n func_type: SECURE\n return_type: TEXT\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n MEMOIZABLE\n sql: |\n SELECT\n COALESCE(PARSE_JSON(GETVARIABLE('LIVEQUERY_CONTEXT')):provider::STRING, 'quicknode')\n\n- name: {{ schema }}.udf_whoami\n signature: []\n func_type: SECURE\n return_type: TEXT\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n MEMOIZABLE\n sql: |\n SELECT\n COALESCE(PARSE_JSON(GETVARIABLE('LIVEQUERY_CONTEXT')):userId::STRING, CURRENT_USER())\n\n- name: {{ schema }}.udf_register_secret\n signature:\n - [request_id, STRING]\n - [user_id, STRING]\n - [key, STRING]\n return_type: OBJECT\n func_type: SECURE EXTERNAL\n api_integration: '{{ var(\"API_INTEGRATION\") }}'\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n sql: secret/register\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5150034, "supported_languages": null}, "macro.livequery_models.config_core_secrets": {"name": "config_core_secrets", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/secrets.yaml.sql", "original_file_path": "macros/core/secrets.yaml.sql", "unique_id": "macro.livequery_models.config_core_secrets", "macro_sql": "{% macro config_core_secrets(schema=\"secrets\") %}\n\n\n- name: {{ schema }}.udf_register_secret\n signature:\n - [request_id, STRING]\n - [key, STRING]\n func_type: SECURE\n return_type: OBJECT\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n COMMENT = $$ Registers a secret with the given request ID and key. $$\n sql: |\n SELECT\n _utils.UDF_REGISTER_SECRET(REQUEST_ID, _utils.UDF_WHOAMI(), KEY)\n\n- name: {{ schema }}.udf_get_secret\n signature:\n - [name, STRING]\n func_type: SECURE\n return_type: OBJECT\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n COMMENT = $$ Returns the secret value for the given secret name. $$\n sql: |\n SELECT\n live.udf_api(\n CONCAT_WS('/', {{ construct_api_route(\"secret\") }}, _utils.UDF_WHOAMI(), NAME)\n ):data::OBJECT\n\n- name: {{ schema }}.udf_get_secrets\n signature: []\n func_type: SECURE\n return_type: OBJECT\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n COMMENT = $$ Returns all secrets for the current user. $$\n sql: |\n SELECT\n {{ schema }}.udf_get_secret('')\n\n- name: {{ schema }}.udf_create_secret\n signature:\n - [name, STRING]\n - [secret, OBJECT]\n func_type: SECURE\n return_type: [INTEGER, the HTTP status code - 200 indicates success]\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n COMMENT = $$ Creates a new secret with the given name and value. $$\n sql: |\n SELECT\n live.udf_api(\n CONCAT_WS('/', {{ construct_api_route(\"secret\") }}, _utils.UDF_WHOAMI(), NAME),\n SECRET\n ):status_code::INTEGER\n\n- name: {{ schema }}.udf_delete_secret\n signature:\n - [name, STRING]\n func_type: SECURE\n return_type: [INTEGER, the HTTP status code - 200 indicates success]\n options: |\n NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n COMMENT = $$ Deletes the secret with the given name. $$\n sql: |\n SELECT\n live.udf_api(\n 'DELETE',\n CONCAT_WS('/', {{ construct_api_route(\"secret\") }}, _utils.UDF_WHOAMI(), NAME),\n {},\n {},\n ''\n ):status_code::INTEGER\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.construct_api_route"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5168107, "supported_languages": null}, "macro.livequery_models.config_core_live": {"name": "config_core_live", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/live.yaml.sql", "original_file_path": "macros/core/live.yaml.sql", "unique_id": "macro.livequery_models.config_core_live", "macro_sql": "{% macro config_core_live(schema=\"live\") %}\n\n- name: {{ schema }}.udf_api_batched\n signature:\n - [method, STRING]\n - [url, STRING]\n - [headers, OBJECT]\n - [data, VARIANT]\n - [secret_name, STRING]\n return_type: VARIANT\n options: |\n VOLATILE\n sql: |\n SELECT\n _live.UDF_API(\n method,\n url,\n headers,\n data,\n _utils.UDF_WHOAMI(),\n secret_name\n )\n\n- name: {{ schema }}.udf_api\n signature:\n - [method, STRING]\n - [url, STRING]\n - [headers, OBJECT]\n - [data, VARIANT]\n - [secret_name, STRING]\n return_type: VARIANT\n options: |\n VOLATILE\n sql: |\n SELECT\n _live.UDF_API(\n method,\n url,\n headers,\n data,\n _utils.UDF_WHOAMI(),\n secret_name\n )\n\n- name: {{ schema }}.udf_api\n signature:\n - [method, STRING]\n - [url, STRING]\n - [headers, OBJECT]\n - [data, VARIANT]\n return_type: VARIANT\n options: |\n VOLATILE\n sql: |\n SELECT\n _live.UDF_API(\n method,\n url,\n headers,\n data,\n _utils.UDF_WHOAMI(),\n ''\n )\n- name: {{ schema }}.udf_api\n signature:\n - [url, STRING]\n - [data, VARIANT]\n return_type: VARIANT\n options: |\n VOLATILE\n sql: |\n SELECT\n _live.UDF_API(\n 'POST',\n url,\n {'Content-Type': 'application/json'},\n data,\n _utils.UDF_WHOAMI(),\n ''\n )\n- name: {{ schema }}.udf_api\n signature:\n - [url, STRING]\n - [data, VARIANT]\n - [secret_name, STRING]\n return_type: VARIANT\n options: |\n VOLATILE\n sql: |\n SELECT\n _live.UDF_API(\n 'POST',\n url,\n {'Content-Type': 'application/json'},\n data,\n _utils.UDF_WHOAMI(),\n secret_name\n )\n- name: {{ schema }}.udf_api\n signature:\n - [url, STRING]\n return_type: VARIANT\n options: |\n VOLATILE\n sql: |\n SELECT\n _live.UDF_API(\n 'GET',\n url,\n {},\n NULL,\n _utils.UDF_WHOAMI(),\n ''\n )\n- name: {{ schema }}.udf_api\n signature:\n - [url, STRING]\n - [secret_name, STRING]\n return_type: VARIANT\n options: |\n VOLATILE\n sql: |\n SELECT\n _live.UDF_API(\n 'GET',\n url,\n {},\n {},\n _utils.UDF_WHOAMI(),\n secret_name\n )\n\n- name: {{ schema }}.udf_rpc\n signature:\n - [blockchain, STRING]\n - [network, STRING]\n - [method, STRING]\n - [parameters, VARIANT]\n return_type: VARIANT\n options: |\n VOLATILE\n COMMENT = $$Executes an JSON RPC call on a blockchain.$$\n sql: |\n {{ sql_live_rpc_call(\"method\", \"parameters\", \"blockchain\", \"network\") | indent(4) -}}\n\n- name: {{ schema }}.udf_allow_list\n signature: []\n return_type: ARRAY\n func_type: EXTERNAL\n api_integration: '{{ var(\"API_INTEGRATION\") }}'\n options: |\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns a list of allowed domains.$$\n sql: allowed\n\n{% if is_udf_api_v2_compatible() %}\n- name: {{ schema }}.udf_api_v2\n signature:\n - [url, STRING]\n - [headers, OBJECT]\n - [secret_name, STRING]\n - [is_async, BOOLEAN]\n return_type: VARIANT\n options: |\n VOLATILE\n COMMENT = $$Executes an LiveQuery Sync or Async External Function.$$\n sql: |\n SELECT\n CASE is_async\n WHEN TRUE\n THEN\n utils.udf_redirect_s3_presigned_url(\n _live.udf_api_async(\n 'GET', URL, HEADERS, {}, _utils.UDF_WHOAMI(), SECRET_NAME\n ):s3_presigned_url :: STRING\n ):data[0][1]\n ELSE\n _live.udf_api_sync(\n 'GET', URL, HEADERS, {}, _utils.UDF_WHOAMI(), SECRET_NAME\n )\n END\n\n- name: {{ schema }}.udf_api_v2\n signature:\n - [method, STRING]\n - [url, STRING]\n - [headers, OBJECT]\n - [data, VARIANT]\n - [secret_name, STRING]\n - [is_async, BOOLEAN]\n return_type: VARIANT\n options: |\n VOLATILE\n COMMENT = $$Executes an LiveQuery Sync or Async External Function.$$\n sql: |\n SELECT\n CASE is_async\n WHEN TRUE\n THEN\n utils.udf_redirect_s3_presigned_url(\n _live.udf_api_async(\n METHOD, URL, HEADERS, DATA, _utils.UDF_WHOAMI(), SECRET_NAME\n ):s3_presigned_url :: STRING\n ):data[0][1]\n ELSE\n _live.udf_api_sync(\n METHOD, URL, HEADERS, DATA, _utils.UDF_WHOAMI(), SECRET_NAME\n )\n END\n\n- name: {{ schema }}.udf_api_v2\n signature:\n - [method, STRING]\n - [url, STRING]\n - [headers, OBJECT]\n - [data, VARIANT]\n - [is_async, BOOLEAN]\n return_type: VARIANT\n options: |\n VOLATILE\n COMMENT = $$Executes an LiveQuery Sync or Async External Function.$$\n sql: |\n SELECT\n CASE is_async\n WHEN TRUE\n THEN\n utils.udf_redirect_s3_presigned_url(\n _live.udf_api_async(\n METHOD, URL, HEADERS, DATA, _utils.UDF_WHOAMI(), ''\n ):s3_presigned_url :: STRING\n ):data[0][1]\n ELSE\n _live.udf_api_sync(\n METHOD, URL, HEADERS, DATA, _utils.UDF_WHOAMI(), ''\n )\n END\n\n- name: {{ schema }}.udf_api_v2\n signature:\n - [url, STRING]\n - [data, VARIANT]\n return_type: VARIANT\n options: |\n VOLATILE\n COMMENT = $$Executes a Quick Post LiveQuery Sync External Function.$$\n sql: |\n SELECT\n _live.udf_api_sync(\n 'POST',\n url,\n {'Content-Type': 'application/json'},\n data,\n _utils.UDF_WHOAMI(),\n ''\n )\n\n- name: {{ schema }}.udf_api_v2\n signature:\n - [url, STRING]\n - [data, VARIANT]\n - [is_async, BOOLEAN]\n return_type: VARIANT\n options: |\n VOLATILE\n COMMENT = $$Executes an LiveQuery Sync or Async External Function.$$\n sql: |\n SELECT\n CASE is_async\n WHEN TRUE\n THEN\n utils.udf_redirect_s3_presigned_url(\n _live.udf_api_async(\n 'GET', URL, {'Content-Type': 'application/json'}, data, _utils.UDF_WHOAMI(), ''\n ):s3_presigned_url :: STRING\n ):data[0][1]\n ELSE\n _live.udf_api_sync(\n 'GET', URL, {'Content-Type': 'application/json'}, data, _utils.UDF_WHOAMI(), ''\n )\n END\n\n- name: {{ schema }}.udf_api_v2\n signature:\n - [url, STRING]\n - [data, VARIANT]\n - [secret_name, STRING]\n return_type: VARIANT\n options: |\n VOLATILE\n COMMENT = $$Executes a Quick Post LiveQuery Sync External Function.$$\n sql: |\n SELECT\n _live.udf_api_sync(\n 'POST',\n url,\n {'Content-Type': 'application/json'},\n data,\n _utils.UDF_WHOAMI(),\n secret_name\n )\n\n- name: {{ schema }}.udf_api_v2\n signature:\n - [url, STRING]\n - [data, VARIANT]\n - [secret_name, STRING]\n - [is_async, BOOLEAN]\n return_type: VARIANT\n options: |\n VOLATILE\n COMMENT = $$Executes an LiveQuery Sync or Async External Function.$$\n sql: |\n SELECT\n CASE is_async\n WHEN TRUE\n THEN\n utils.udf_redirect_s3_presigned_url(\n _live.udf_api_async(\n 'GET', URL, {'Content-Type': 'application/json'}, data, _utils.UDF_WHOAMI(), secret_name\n ):s3_presigned_url :: STRING\n ):data[0][1]\n ELSE\n _live.udf_api_sync(\n 'GET', URL, {'Content-Type': 'application/json'}, data, _utils.UDF_WHOAMI(), secret_name\n )\n END\n\n- name: {{ schema }}.udf_api_v2\n signature:\n - [url, STRING]\n return_type: VARIANT\n options: |\n VOLATILE\n COMMENT = $$Executes a Quick GET LiveQuery Sync External Function.$$\n sql: |\n SELECT\n _live.udf_api_sync(\n 'GET',\n url,\n {},\n NULL,\n _utils.UDF_WHOAMI(),\n ''\n )\n\n- name: {{ schema }}.udf_api_v2\n signature:\n - [url, STRING]\n - [is_async, BOOLEAN]\n return_type: VARIANT\n options: |\n VOLATILE\n COMMENT = $$Executes an LiveQuery Sync or Async External Function.$$\n sql: |\n SELECT\n CASE is_async\n WHEN TRUE\n THEN\n utils.udf_redirect_s3_presigned_url(\n _live.udf_api_async(\n 'GET', URL, {'Content-Type': 'application/json'}, {}, _utils.UDF_WHOAMI(), ''\n ):s3_presigned_url :: STRING\n ):data[0][1]\n ELSE\n _live.udf_api_sync(\n 'GET', URL, {'Content-Type': 'application/json'}, {}, _utils.UDF_WHOAMI(), ''\n )\n END\n\n- name: {{ schema }}.udf_api_v2\n signature:\n - [url, STRING]\n - [secret_name, STRING]\n return_type: VARIANT\n options: |\n VOLATILE\n COMMENT = $$Executes a Quick GET LiveQuery Sync External Function.$$\n sql: |\n SELECT\n _live.udf_api_sync(\n 'GET',\n url,\n {},\n {},\n _utils.UDF_WHOAMI(),\n secret_name\n )\n\n- name: {{ schema }}.udf_api_v2\n signature:\n - [url, STRING]\n - [secret_name, STRING]\n - [is_async, BOOLEAN]\n return_type: VARIANT\n options: |\n VOLATILE\n COMMENT = $$Executes an LiveQuery Sync or Async External Function.$$\n sql: |\n SELECT\n CASE is_async\n WHEN TRUE\n THEN\n utils.udf_redirect_s3_presigned_url(\n _live.udf_api_async(\n 'GET', URL, {'Content-Type': 'application/json'}, {}, _utils.UDF_WHOAMI(), secret_name\n ):s3_presigned_url :: STRING\n ):data[0][1]\n ELSE\n _live.udf_api_sync(\n 'GET', URL, {'Content-Type': 'application/json'}, {}, _utils.UDF_WHOAMI(), secret_name\n )\n END\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.sql_live_rpc_call", "macro.livequery_models.is_udf_api_v2_compatible"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5272377, "supported_languages": null}, "macro.livequery_models.sql_udf_json_rpc_call": {"name": "sql_udf_json_rpc_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.sql", "original_file_path": "macros/core/functions.sql", "unique_id": "macro.livequery_models.sql_udf_json_rpc_call", "macro_sql": "{% macro sql_udf_json_rpc_call(use_default_id=True ) %}\n SELECT IFF(method IS NULL or params IS NULL,\n NULL,\n {\n 'jsonrpc': '2.0',\n 'method': method,\n 'params': params\n {% if use_default_id %}\n , 'id': hash(method, params)::string\n {% else %}\n , 'id': id\n {% endif %}\n }\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5277789, "supported_languages": null}, "macro.livequery_models.python_hex_to_int": {"name": "python_hex_to_int", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.python_hex_to_int", "macro_sql": "{% macro python_hex_to_int() %}\ndef hex_to_int(hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int('200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('0x200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int(NULL);\n >> NULL\n \"\"\"\n try:\n return str(int(hex, 16)) if hex and hex != \"0x\" else None\n except:\n return None\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5309737, "supported_languages": null}, "macro.livequery_models.python_udf_hex_to_int_with_encoding": {"name": "python_udf_hex_to_int_with_encoding", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.python_udf_hex_to_int_with_encoding", "macro_sql": "{% macro python_udf_hex_to_int_with_encoding() %}\ndef hex_to_int(encoding, hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int('hex', '200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('hex', '0x200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('hex', NULL);\n >> NULL\n hex_to_int('s2c', 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffe5b83acf');\n >> -440911153\n \"\"\"\n try:\n if not hex:\n return None\n if encoding.lower() == 's2c':\n if hex[0:2].lower() != '0x':\n hex = f'0x{hex}'\n\n bits = len(hex[2:]) * 4\n value = int(hex, 0)\n if value & (1 << (bits - 1)):\n value -= 1 << bits\n return str(value)\n else:\n return str(int(hex, 16))\n except:\n return None\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.531224, "supported_languages": null}, "macro.livequery_models.create_udf_keccak256": {"name": "create_udf_keccak256", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.create_udf_keccak256", "macro_sql": "{% macro create_udf_keccak256() %}\nfrom Crypto.Hash import keccak\n\ndef udf_encode(event_name):\n keccak_hash = keccak.new(digest_bits=256)\n keccak_hash.update(event_name.encode('utf-8'))\n return '0x' + keccak_hash.hexdigest()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5314004, "supported_languages": null}, "macro.livequery_models.create_udf_evm_text_signature": {"name": "create_udf_evm_text_signature", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.create_udf_evm_text_signature", "macro_sql": "{% macro create_udf_evm_text_signature() %}\n\ndef get_simplified_signature(abi):\n def generate_signature(inputs):\n signature_parts = []\n for input_data in inputs:\n if 'components' in input_data:\n component_signature_parts = []\n components = input_data['components']\n component_signature_parts.extend(generate_signature(components))\n component_signature_parts[-1] = component_signature_parts[-1].rstrip(\",\")\n if input_data['type'].endswith('[]'):\n signature_parts.append(\"(\" + \"\".join(component_signature_parts) + \")[],\")\n else:\n signature_parts.append(\"(\" + \"\".join(component_signature_parts) + \"),\")\n else:\n signature_parts.append(input_data['type'].replace('enum ', '').replace(' payable', '') + \",\")\n return signature_parts\n\n signature_parts = [abi['name'] + \"(\"]\n signature_parts.extend(generate_signature(abi['inputs']))\n signature_parts[-1] = signature_parts[-1].rstrip(\",\") + \")\"\n return \"\".join(signature_parts)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5316458, "supported_languages": null}, "macro.livequery_models.python_object_to_url_query_string": {"name": "python_object_to_url_query_string", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.python_object_to_url_query_string", "macro_sql": "{% macro python_object_to_url_query_string() %}\nfrom urllib.parse import urlencode\n\ndef object_to_url_query_string(query, doseq=False):\n {# return type(query) #}\n if isinstance(query, dict):\n return urlencode(query, doseq)\n return urlencode([tuple(i) for i in query], doseq)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5318425, "supported_languages": null}, "macro.livequery_models.python_udf_evm_transform_log": {"name": "python_udf_evm_transform_log", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.python_udf_evm_transform_log", "macro_sql": "{% macro python_udf_evm_transform_log(schema) %}\nfrom copy import deepcopy\n\ndef transform_event(event: dict):\n new_event = deepcopy(event)\n if new_event.get(\"components\"):\n components = new_event.get(\"components\")\n for iy, y in enumerate(new_event[\"value\"]):\n for i, c in enumerate(components):\n y[i] = {\"value\": y[i], **c}\n new_event[\"value\"][iy] = {z[\"name\"]: z[\"value\"] for z in y}\n return new_event\n else:\n return event\n\n\ndef transform(events: list):\n try:\n results = [\n transform_event(event) if event[\"decoded\"] else event\n for event in events[\"data\"]\n ]\n events[\"data\"] = results\n return events\n except:\n return events\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5321064, "supported_languages": null}, "macro.livequery_models.create_udf_base58_to_hex": {"name": "create_udf_base58_to_hex", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.create_udf_base58_to_hex", "macro_sql": "{% macro create_udf_base58_to_hex() %}\n\ndef transform_base58_to_hex(base58):\n if base58 is None:\n return 'Invalid input'\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n base_count = len(ALPHABET)\n\n num = 0\n leading_zeros = 0\n\n for char in base58:\n if char == '1':\n leading_zeros += 1\n else:\n break\n\n for char in base58:\n num *= base_count\n if char in ALPHABET:\n num += ALPHABET.index(char)\n else:\n return 'Invalid character in input'\n\n hex_string = hex(num)[2:]\n\n if len(hex_string) % 2 != 0:\n hex_string = '0' + hex_string\n\n hex_leading_zeros = '00' * leading_zeros\n\n return '0x' + hex_leading_zeros + hex_string\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5323288, "supported_languages": null}, "macro.livequery_models.create_udf_hex_to_base58": {"name": "create_udf_hex_to_base58", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.create_udf_hex_to_base58", "macro_sql": "{% macro create_udf_hex_to_base58() %}\n\ndef transform_hex_to_base58(hex):\n if hex is None or not hex.startswith('0x'):\n return 'Invalid input'\n\n hex = hex[2:]\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n byte_array = bytes.fromhex(hex)\n num = int.from_bytes(byte_array, 'big')\n\n encoded = ''\n while num > 0:\n num, remainder = divmod(num, 58)\n encoded = ALPHABET[remainder] + encoded\n\n for byte in byte_array:\n if byte == 0:\n encoded = '1' + encoded\n else:\n break\n\n return encoded\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5325346, "supported_languages": null}, "macro.livequery_models.create_udf_hex_to_bech32": {"name": "create_udf_hex_to_bech32", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.create_udf_hex_to_bech32", "macro_sql": "{% macro create_udf_hex_to_bech32() %}\n\ndef transform_hex_to_bech32(hex, hrp=''):\n CHARSET = \"qpzry9x8gf2tvdw0s3jn54khce6mua7l\"\n\n def bech32_polymod(values):\n generator = [0x3b6a57b2, 0x26508e6d, 0x1ea119fa, 0x3d4233dd, 0x2a1462b3]\n checksum = 1\n for value in values:\n top = checksum >> 25\n checksum = ((checksum & 0x1ffffff) << 5) ^ value\n for i in range(5):\n checksum ^= generator[i] if ((top >> i) & 1) else 0\n return checksum\n\n def bech32_hrp_expand(hrp):\n return [ord(x) >> 5 for x in hrp] + [0] + [ord(x) & 31 for x in hrp]\n\n def bech32_create_checksum(hrp, data):\n values = bech32_hrp_expand(hrp) + data\n polymod = bech32_polymod(values + [0, 0, 0, 0, 0, 0]) ^ 1\n return [(polymod >> 5 * (5 - i)) & 31 for i in range(6)]\n\n def bech32_convertbits(data, from_bits, to_bits, pad=True):\n acc = 0\n bits = 0\n ret = []\n maxv = (1 << to_bits) - 1\n max_acc = (1 << (from_bits + to_bits - 1)) - 1\n for value in data:\n acc = ((acc << from_bits) | value) & max_acc\n bits += from_bits\n while bits >= to_bits:\n bits -= to_bits\n ret.append((acc >> bits) & maxv)\n if pad and bits:\n ret.append((acc << (to_bits - bits)) & maxv)\n return ret\n\n if hex is None or not hex.startswith('0x'):\n return 'Invalid input'\n\n hex = hex[2:]\n\n data = bytes.fromhex(hex)\n data5bit = bech32_convertbits(list(data), 8, 5)\n\n if data5bit is None:\n return 'Data conversion failed'\n\n checksum = bech32_create_checksum(hrp, data5bit)\n\n return hrp + '1' + ''.join([CHARSET[d] for d in data5bit + checksum])\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5328476, "supported_languages": null}, "macro.livequery_models.create_udf_int_to_binary": {"name": "create_udf_int_to_binary", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.create_udf_int_to_binary", "macro_sql": "{% macro create_udf_int_to_binary() %}\n\ndef int_to_binary(num):\n num = int(num)\n is_negative = num < 0\n if is_negative:\n num = -num\n\n binary_string = bin(num)[2:]\n\n if is_negative:\n inverted_string = \"\".join(\"1\" if bit == \"0\" else \"0\" for bit in binary_string)\n\n carry = 1\n result = \"\"\n for i in range(len(inverted_string) - 1, -1, -1):\n if inverted_string[i] == \"1\" and carry == 1:\n result = \"0\" + result\n elif inverted_string[i] == \"0\" and carry == 1:\n result = \"1\" + result\n carry = 0\n else:\n result = inverted_string[i] + result\n\n binary_string = result\n\n return binary_string\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5332124, "supported_languages": null}, "macro.livequery_models.create_udf_binary_to_int": {"name": "create_udf_binary_to_int", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.create_udf_binary_to_int", "macro_sql": "{% macro create_udf_binary_to_int() %}\n\ndef binary_to_int(binary):\n\n for char in binary:\n if char not in \"01\":\n raise ValueError(\"Input string must be a valid binary string.\")\n\n integer = 0\n\n for i, digit in enumerate(binary[::-1]):\n digit_int = int(digit)\n\n integer += digit_int * 2**i\n\n return str(integer)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5333986, "supported_languages": null}, "macro.livequery_models.create_udf_redirect_s3_presigned_url": {"name": "create_udf_redirect_s3_presigned_url", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.create_udf_redirect_s3_presigned_url", "macro_sql": "{% macro create_udf_redirect_s3_presigned_url() %}\n import requests\n import json\n import gzip\n import io\n\n def process_request(url):\n resp = requests.get(url)\n content = resp.content\n\n # Decompress if URL contains .json.gz\n if '.json.gz' in url:\n try:\n # Decompress the gzipped content\n with gzip.GzipFile(fileobj=io.BytesIO(content), mode='rb') as f:\n content = f.read()\n except Exception as e:\n return {\"error\": \"Failed to decompress gzip data\", \"message\": str(e)}\n\n # Try to parse as JSON\n try:\n text_content = content.decode('utf-8')\n return json.loads(text_content)\n except (json.JSONDecodeError, UnicodeDecodeError):\n # If not JSON or not valid UTF-8, return as string or base64\n try:\n # Try to return as string if its valid text\n return content.decode('utf-8')\n except UnicodeDecodeError:\n # For binary data, return base64\n import base64\n return base64.b64encode(content).decode('ascii')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5336537, "supported_languages": null}, "macro.livequery_models.config_core__live": {"name": "config_core__live", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/_live.yaml.sql", "original_file_path": "macros/core/_live.yaml.sql", "unique_id": "macro.livequery_models.config_core__live", "macro_sql": "{% macro config_core__live(schema=\"_live\") %}\n\n- name: {{ schema }}.udf_api_batched\n signature:\n - [method, STRING]\n - [url, STRING]\n - [headers, OBJECT]\n - [DATA, VARIANT]\n - [user_id, STRING]\n - [SECRET, STRING]\n return_type: VARIANT\n func_type: EXTERNAL\n api_integration: '{{ var(\"API_INTEGRATION\") }}'\n max_batch_rows: '{{ var(\"MAX_BATCH_ROWS\") }}'\n options: |\n NOT NULL\n sql: udf_api\n\n- name: {{ schema }}.udf_api\n signature:\n - [method, STRING]\n - [url, STRING]\n - [headers, OBJECT]\n - [DATA, VARIANT]\n - [user_id, STRING]\n - [SECRET, STRING]\n return_type: VARIANT\n func_type: EXTERNAL\n api_integration: '{{ var(\"API_INTEGRATION\") }}'\n options: |\n NOT NULL\n sql: udf_api\n\n{% if is_udf_api_v2_compatible() %}\n- name: {{ schema }}.udf_api_sync\n signature:\n - [method, STRING]\n - [url, STRING]\n - [headers, OBJECT]\n - [DATA, VARIANT]\n - [user_id, STRING]\n - [SECRET, STRING]\n return_type: VARIANT\n func_type: EXTERNAL\n api_integration: '{{ var(\"API_INTEGRATION\") }}'\n max_batch_rows: '1'\n headers:\n - 'fsc-quantum-execution-mode': 'sync'\n options: |\n NOT NULL\n sql: 'v2/udf_api'\n\n- name: {{ schema }}.udf_api_async\n signature:\n - [method, STRING]\n - [url, STRING]\n - [headers, OBJECT]\n - [DATA, VARIANT]\n - [user_id, STRING]\n - [SECRET, STRING]\n return_type: VARIANT\n func_type: EXTERNAL\n api_integration: '{{ var(\"API_INTEGRATION\") }}'\n max_batch_rows: '1'\n headers:\n - 'fsc-quantum-execution-mode': 'async'\n options: |\n NOT NULL\n sql: 'v2/udf_api'\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.is_udf_api_v2_compatible"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5354872, "supported_languages": null}, "macro.livequery_models.config_core_utils": {"name": "config_core_utils", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/utils.yaml.sql", "original_file_path": "macros/core/utils.yaml.sql", "unique_id": "macro.livequery_models.config_core_utils", "macro_sql": "{% macro config_core_utils(schema=\"utils\") %}\n\n\n- name: {{ schema }}.udf_register_secret\n signature:\n - [request_id, STRING]\n - [key, STRING]\n func_type: SECURE\n return_type: OBJECT\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n SELECT\n _utils.UDF_REGISTER_SECRET(REQUEST_ID, _utils.UDF_WHOAMI(), KEY)\n\n- name: {{ schema }}.udf_hex_to_int\n signature:\n - [hex, STRING]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE PYTHON\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n RUNTIME_VERSION = '3.10'\n HANDLER = 'hex_to_int'\n sql: |\n {{ python_hex_to_int() | indent(4) }}\n- name: {{ schema }}.udf_hex_to_int\n signature:\n - [encoding, STRING]\n - [hex, STRING]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE PYTHON\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n RUNTIME_VERSION = '3.10'\n HANDLER = 'hex_to_int'\n sql: |\n {{ python_udf_hex_to_int_with_encoding() | indent(4) }}\n- name: {{ schema }}.udf_evm_text_signature\n signature:\n - [abi, VARIANT]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.10'\n HANDLER = 'get_simplified_signature'\n sql: |\n {{ create_udf_evm_text_signature() | indent(4) }}\n- name: {{ schema }}.udf_keccak256\n signature:\n - [event_name, VARCHAR(255)]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.10'\n PACKAGES = ('pycryptodome==3.15.0')\n HANDLER = 'udf_encode'\n sql: |\n {{ create_udf_keccak256() | indent(4) }}\n- name: {{ schema }}.udf_hex_to_string\n signature:\n - [hex, STRING]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n SELECT\n LTRIM(regexp_replace(\n try_hex_decode_string(hex),\n '[\\x00-\\x1F\\x7F-\\x9F\\xAD]', '', 1))\n- name: {{ schema }}.udf_int_to_hex\n signature:\n - [int, INTEGER]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n select CONCAT('0x', TRIM(TO_CHAR(int, 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')))\n\n- name: {{ schema }}.udf_json_rpc_call\n signature:\n - [method, STRING]\n - [params, ARRAY]\n return_type: OBJECT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n {{ sql_udf_json_rpc_call() }}\n- name: {{ schema }}.udf_json_rpc_call\n signature:\n - [method, STRING]\n - [params, OBJECT]\n return_type: OBJECT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n {{ sql_udf_json_rpc_call() }}\n- name: {{ schema }}.udf_json_rpc_call\n signature:\n - [method, STRING]\n - [params, OBJECT]\n - [id, STRING]\n return_type: OBJECT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n {{ sql_udf_json_rpc_call(False) }}\n- name: {{ schema }}.udf_json_rpc_call\n signature:\n - [method, STRING]\n - [params, ARRAY]\n - [id, STRING]\n return_type: OBJECT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n {{ sql_udf_json_rpc_call(False) }}\n\n- name: {{ schema }}.udf_urlencode\n signature:\n - [query, OBJECT]\n - [doseq, BOOLEAN]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE PYTHON\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n RUNTIME_VERSION = '3.10'\n COMMENT=$$Pthon (function)[https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlencode] to convert an object to a URL query string.$$\n HANDLER = 'object_to_url_query_string'\n sql: |\n {{ python_object_to_url_query_string() | indent(4) }}\n- name: {{ schema }}.udf_urlencode\n signature:\n - [query, ARRAY]\n - [doseq, BOOLEAN]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE PYTHON\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n RUNTIME_VERSION = '3.10'\n COMMENT=$$Pthon (function)[https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlencode] to convert an array to a URL query string.$$\n HANDLER = 'object_to_url_query_string'\n sql: |\n {{ python_object_to_url_query_string() | indent(4) }}\n- name: {{ schema }}.udf_urlencode\n signature:\n - [query, ARRAY]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n SELECT {{ schema }}.udf_urlencode(query, FALSE)\n- name: {{ schema }}.udf_urlencode\n signature:\n - [query, OBJECT]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n SELECT {{ schema }}.udf_urlencode(query, FALSE)\n- name: {{ schema }}.udf_object_to_url_query_string\n signature:\n - [object, OBJECT]\n return_type: TEXT\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: SELECT utils.udf_urlencode(object, FALSE)\n\n- name: {{ schema }}.udf_evm_transform_log\n signature:\n - [decoded, VARIANT]\n return_type: VARIANT\n options: |\n NULL\n LANGUAGE PYTHON\n IMMUTABLE\n RUNTIME_VERSION = '3.10'\n HANDLER = 'transform'\n sql: |\n {{ python_udf_evm_transform_log() | indent(4) }}\n\n- name: {{ schema }}.udf_evm_decode_log\n signature:\n - [abi, ARRAY]\n - [data, OBJECT]\n return_type: ARRAY\n func_type: EXTERNAL\n api_integration: '{{ var(\"API_INTEGRATION\") }}'\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n sql: evm/decode/log\n- name: {{ schema }}.udf_evm_decode_log\n signature:\n - [abi, OBJECT]\n - [data, OBJECT]\n return_type: ARRAY\n func_type: EXTERNAL\n api_integration: '{{ var(\"API_INTEGRATION\") }}'\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n sql: evm/decode/log\n\n- name: {{ schema }}.udf_evm_decode_trace\n signature:\n - [abi, OBJECT]\n - [data, OBJECT]\n return_type: ARRAY\n func_type: EXTERNAL\n api_integration: '{{ var(\"API_INTEGRATION\") }}'\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n sql: evm/decode/trace\n\n- name: {{ schema }}.udf_base58_to_hex\n signature:\n - [base58, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.10'\n HANDLER = 'transform_base58_to_hex'\n sql: |\n {{ create_udf_base58_to_hex() | indent(4) }}\n\n- name: {{ schema }}.udf_hex_to_base58\n signature:\n - [hex, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.10'\n HANDLER = 'transform_hex_to_base58'\n sql: |\n {{ create_udf_hex_to_base58() | indent(4) }}\n\n- name: {{ schema }}.udf_hex_to_bech32\n signature:\n - [hex, STRING]\n - [hrp, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.10'\n HANDLER = 'transform_hex_to_bech32'\n sql: |\n {{ create_udf_hex_to_bech32() | indent(4) }}\n\n- name: {{ schema }}.udf_int_to_binary\n signature:\n - [num, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.10'\n HANDLER = 'int_to_binary'\n sql: |\n {{ create_udf_int_to_binary() | indent(4) }}\n\n- name: {{ schema }}.udf_binary_to_int\n signature:\n - [binary, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.10'\n HANDLER = 'binary_to_int'\n sql: |\n {{ create_udf_binary_to_int() | indent(4) }}\n\n- name: {{ schema }}.udf_redirect_s3_presigned_url\n signature:\n - [url, STRING]\n return_type: VARIANT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.10'\n HANDLER = 'process_request'\n EXTERNAL_ACCESS_INTEGRATIONS = (S3_EXPRESS_EXTERNAL_ACCESS_INTEGRATION)\n PACKAGES = ('requests')\n sql: |\n {{ create_udf_redirect_s3_presigned_url() | indent(4) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.python_hex_to_int", "macro.livequery_models.python_udf_hex_to_int_with_encoding", "macro.livequery_models.create_udf_evm_text_signature", "macro.livequery_models.create_udf_keccak256", "macro.livequery_models.sql_udf_json_rpc_call", "macro.livequery_models.python_object_to_url_query_string", "macro.livequery_models.python_udf_evm_transform_log", "macro.livequery_models.create_udf_base58_to_hex", "macro.livequery_models.create_udf_hex_to_base58", "macro.livequery_models.create_udf_hex_to_bech32", "macro.livequery_models.create_udf_int_to_binary", "macro.livequery_models.create_udf_binary_to_int", "macro.livequery_models.create_udf_redirect_s3_presigned_url"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5500767, "supported_languages": null}, "macro.livequery_models.base_test_udtf": {"name": "base_test_udtf", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/tests/udtfs.sql", "original_file_path": "macros/tests/udtfs.sql", "unique_id": "macro.livequery_models.base_test_udtf", "macro_sql": "{% macro base_test_udtf(model, udf, args, assertions) %}\n{#\n Generates a test for a User-Defined Table Function (UDTF).\n Unlike scalar UDFs, UDTFs return a table of results.\n #}\n{%- set call -%}\nSELECT * FROM TABLE({{ udf }}({{ args }}))\n{%- endset -%}\n\nWITH test AS\n(\n SELECT\n '{{ udf }}' AS test_name\n ,[{{ args }}] as parameters\n ,t.*\n FROM TABLE({{ udf }}({{ args }})) t\n)\n\n{% for assertion in assertions %}\nSELECT\n test_name,\n parameters,\n $${{ assertion }}$$ AS assertion,\n $${{ call }}$$ AS sql\nFROM test\nWHERE NOT {{ assertion }}\n{%- if not loop.last %}\nUNION ALL\n{%- endif -%}\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5514355, "supported_languages": null}, "macro.livequery_models.base_test_udf": {"name": "base_test_udf", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/tests/udfs.sql", "original_file_path": "macros/tests/udfs.sql", "unique_id": "macro.livequery_models.base_test_udf", "macro_sql": "{% macro base_test_udf(model, udf, args, assertions) %}\n{#\n Generates a test for a UDF.\n #}\n{% if execute %}\n {%- set context -%}\n SET LIVEQUERY_CONTEXT = '{\"userId\":\"{{ var(\"STUDIO_TEST_USER_ID\") }}\"}';\n {%- endset -%}\n {%- do run_query(context) -%}\n{%- endif -%}\n{%- set call -%}\n{{ target.database }}.{{ udf }}({{ args }})\n{%- endset -%}\n,\ntest AS\n(\n SELECT\n '{{ udf }}' AS test_name\n ,[{{ args }}] as parameters\n ,{{ call }} AS result\n)\n {% for assertion in assertions %}\n SELECT\n test_name,\n parameters,\n result,\n $${{ assertion }}$$ AS assertion,\n $${{ context ~ \"\\n\" }}SELECT {{ call ~ \"\\n\" }};$$ AS sql\n FROM test\n WHERE NOT {{ assertion }}\n {%- if not loop.last %}\n UNION ALL\n {%- endif -%}\n {%- endfor -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5538187, "supported_languages": null}, "macro.livequery_models.base_test_udf_without_context": {"name": "base_test_udf_without_context", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/tests/udfs.sql", "original_file_path": "macros/tests/udfs.sql", "unique_id": "macro.livequery_models.base_test_udf_without_context", "macro_sql": "{% macro base_test_udf_without_context(model, udf, args, assertions) %}\n{#\n Generates a test for a UDF without setting LIVEQUERY_CONTEXT.\n #}\n{%- set call -%}\n{{ target.database }}.{{ udf }}({{ args }})\n{%- endset -%}\n,\ntest AS\n(\n SELECT\n '{{ udf }}' AS test_name\n ,[{{ args }}] as parameters\n ,{{ call }} AS result\n)\n {% for assertion in assertions %}\n SELECT\n test_name,\n parameters,\n result,\n $${{ assertion }}$$ AS assertion,\n $$SELECT {{ call ~ \"\\n\" }};$$ AS sql\n FROM test\n WHERE NOT {{ assertion }}\n {%- if not loop.last %}\n UNION ALL\n {%- endif -%}\n {%- endfor -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5548658, "supported_languages": null}, "macro.livequery_models.test_test_udf": {"name": "test_test_udf", "resource_type": "macro", "package_name": "livequery_models", "path": "tests/generic/test_udf.sql", "original_file_path": "tests/generic/test_udf.sql", "unique_id": "macro.livequery_models.test_test_udf", "macro_sql": "{% test test_udf(model, column_name, args, assertions) %}\n {#\n This is a generic test for UDFs.\n The udfs are deployed using ephemeral models, so we need to\n use the ephemeral model name to get the udf name.\n #}\n {%- set schema = model | replace(\"__dbt__cte__\", \"\") -%}\n {%- set schema = schema.split(\"__\") | first -%}\n {%- set udf = schema ~ \".\" ~ column_name -%}\n\n {{ base_test_udf(model, udf, args, assertions) }}\n{% endtest %}", "depends_on": {"macros": ["macro.livequery_models.base_test_udf"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5560524, "supported_languages": null}, "macro.livequery_models.test_test_udf_without_context": {"name": "test_test_udf_without_context", "resource_type": "macro", "package_name": "livequery_models", "path": "tests/generic/test_udf.sql", "original_file_path": "tests/generic/test_udf.sql", "unique_id": "macro.livequery_models.test_test_udf_without_context", "macro_sql": "{% test test_udf_without_context(model, column_name, args, assertions) %}\n {#\n This is a generic test for UDFs without setting LIVEQUERY_CONTEXT.\n The udfs are deployed using ephemeral models, so we need to\n use the ephemeral model name to get the udf name.\n #}\n {%- set schema = model | replace(\"__dbt__cte__\", \"\") -%}\n {%- set schema = schema.split(\"__\") | first -%}\n {%- set udf = schema ~ \".\" ~ column_name -%}\n\n {{ base_test_udf_without_context(model, udf, args, assertions) }}\n{% endtest %}", "depends_on": {"macros": ["macro.livequery_models.base_test_udf_without_context"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5569108, "supported_languages": null}, "macro.livequery_models.test_test_udtf": {"name": "test_test_udtf", "resource_type": "macro", "package_name": "livequery_models", "path": "tests/generic/test_udtf.sql", "original_file_path": "tests/generic/test_udtf.sql", "unique_id": "macro.livequery_models.test_test_udtf", "macro_sql": "{% test test_udtf(model, column_name, args, assertions) %}\n {%- set schema = model | replace(\"__dbt__cte__\", \"\") -%}\n {%- set schema = schema.split(\"__\") | first -%}\n {%- set udf = schema ~ \".\" ~ column_name -%}\n\n WITH base_test_data AS\n (\n SELECT\n '{{ udf }}' AS test_name\n ,[{{ args }}] as parameters\n ,COUNT(*) OVER () AS row_count\n FROM TABLE({{ udf }}({{ args }})) t\n LIMIT 1\n )\n\n {% for assertion in assertions %}\n SELECT\n test_name,\n parameters,\n $${{ assertion }}$$ AS assertion,\n $$SELECT * FROM TABLE({{ udf }}({{ args }}))$$ AS sql\n FROM base_test_data\n WHERE NOT ({{ assertion }})\n {% if not loop.last %}\n UNION ALL\n {% endif %}\n {% endfor %}\n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.558663, "supported_languages": null}, "macro.fsc_utils.dynamic_range_predicate": {"name": "dynamic_range_predicate", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/dynamic_range_predicate.sql", "original_file_path": "macros/dynamic_range_predicate.sql", "unique_id": "macro.fsc_utils.dynamic_range_predicate", "macro_sql": "{% macro dynamic_range_predicate(source, predicate_column, output_alias=\"\") -%}\n {% set supported_data_types = [\"INTEGER\",\"DATE\"] %}\n {% set predicate_column_data_type_query %}\n SELECT typeof({{predicate_column}}::variant)\n FROM {{ source }}\n WHERE {{predicate_column}} IS NOT NULL\n LIMIT 1;\n {% endset %}\n {% set predicate_column_data_type_result = run_query(predicate_column_data_type_query) %}\n {% if predicate_column_data_type_result.rows|length == 0 %}\n {{ return('1=1') }}\n {% endif %}\n {% set predicate_column_data_type = predicate_column_data_type_result.columns[0].values()[0] %}\n \n\n {% if predicate_column_data_type not in supported_data_types %}\n {{ exceptions.raise_compiler_error(\"Data type of \"~ predicate_column_data_type ~\" is not supported, use one of \"~ supported_data_types ~\" column instead\") }}\n {% endif %}\n\n {% set get_start_end_query %}\n SELECT\n MIN(\n {{ predicate_column }}\n ) AS full_range_start,\n MAX(\n {{ predicate_column }}\n ) AS full_range_end\n FROM\n {{ source }}\n {% endset %}\n {% set start_end_results = run_query(get_start_end_query).columns %}\n {% set start_preciate_value = start_end_results[0].values()[0] %}\n {% set end_predicate_value = start_end_results[1].values()[0] %}\n\n {% set get_limits_query %}\n WITH block_range AS (\n {% if predicate_column_data_type == \"INTEGER\" %}\n SELECT \n SEQ4() + {{ start_preciate_value }} as predicate_value\n FROM \n TABLE(GENERATOR(rowcount => {{ end_predicate_value - start_preciate_value }}+1))\n {% else %}\n SELECT\n date_day as predicate_value\n FROM\n crosschain.core.dim_dates\n WHERE\n date_day BETWEEN '{{ start_preciate_value }}' AND '{{ end_predicate_value }}'\n {% endif %}\n ),\n partition_block_counts AS (\n SELECT\n b.predicate_value,\n COUNT(r.{{ predicate_column }}) AS count_in_window\n FROM\n block_range b\n LEFT OUTER JOIN {{ source }}\n r\n ON r.{{ predicate_column }} = b.predicate_value\n GROUP BY\n 1\n ),\n range_groupings AS (\n SELECT\n predicate_value,\n count_in_window,\n conditional_change_event(\n count_in_window > 0\n ) over (\n ORDER BY\n predicate_value\n ) AS group_val\n FROM\n partition_block_counts\n ),\n contiguous_ranges AS (\n SELECT\n MIN(predicate_value) AS start_value,\n MAX(predicate_value) AS end_value\n FROM\n range_groupings\n WHERE\n count_in_window > 0\n GROUP BY\n group_val\n ),\n between_stmts AS (\n SELECT\n CONCAT(\n '{{ output_alias~\".\" if output_alias else \"\" }}',\n '{{ predicate_column }} between \\'',\n start_value,\n '\\' and \\'',\n end_value,\n '\\''\n ) AS b\n FROM\n contiguous_ranges\n )\n SELECT\n CONCAT('(', LISTAGG(b, ' OR '), ')')\n FROM\n between_stmts \n {% endset %}\n \n {% set between_stmts = run_query(get_limits_query).columns[0].values()[0] %}\n\n {% if between_stmts != '()' %}\n /* in case empty update array */\n {% set predicate_override = between_stmts %}\n {% else %}\n {% set predicate_override = '1=1' %}\n /* need to have something or it will error since it expects at least 1 predicate */\n {% endif %}\n\n {{ return(predicate_override) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5680923, "supported_languages": null}, "macro.fsc_utils.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/custom_naming_macros.sql", "original_file_path": "macros/custom_naming_macros.sql", "unique_id": "macro.fsc_utils.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {% set node_name = node.name %}\n {% set split_name = node_name.split('__') %}\n {{ split_name[0] | trim }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.568933, "supported_languages": null}, "macro.fsc_utils.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/custom_naming_macros.sql", "original_file_path": "macros/custom_naming_macros.sql", "unique_id": "macro.fsc_utils.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% set node_name = node.name %}\n {% set split_name = node_name.split('__') %}\n {{ split_name[1] | trim }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5695236, "supported_languages": null}, "macro.fsc_utils.create_gha_tasks": {"name": "create_gha_tasks", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/workflow_tasks.sql", "original_file_path": "macros/workflow_tasks.sql", "unique_id": "macro.fsc_utils.create_gha_tasks", "macro_sql": "{% macro create_gha_tasks() %}\n {% set query %}\nSELECT\n task_name,\n workflow_name,\n workflow_schedule\nFROM\n {{ ref('github_actions__tasks') }}\n\n {% endset %}\n {% set results = run_query(query) %}\n {% if execute and results is not none %}\n {% set results_list = results.rows %}\n {% else %}\n {% set results_list = [] %}\n {% endif %}\n\n {% set prod_db = target.database.lower().replace(\n '_dev',\n ''\n ) %}\n {% for result in results_list %}\n {% set task_name = result [0] %}\n {% set workflow_name = result [1] %}\n {% set workflow_schedule = result [2] %}\n {% set sql %}\n EXECUTE IMMEDIATE 'CREATE OR REPLACE TASK github_actions.{{ task_name }} WAREHOUSE = DBT_CLOUD SCHEDULE = \\'USING CRON {{ workflow_schedule }} UTC\\' COMMENT = \\'Task to trigger {{ workflow_name }}.yml workflow according to {{ workflow_schedule }}\\' AS DECLARE rs resultset; output string; BEGIN rs := (SELECT github_actions.workflow_dispatches(\\'FlipsideCrypto\\', \\'{{ prod_db }}-models\\', \\'{{ workflow_name }}.yml\\', NULL):status_code::int AS status_code); SELECT LISTAGG($1, \\';\\') INTO :output FROM TABLE(result_scan(LAST_QUERY_ID())) LIMIT 1; CALL SYSTEM$SET_RETURN_VALUE(:output); END;' {% endset %}\n {% do run_query(sql) %}\n {% if var(\"START_GHA_TASKS\") %}\n {% if target.database.lower() == prod_db %}\n {% set sql %}\n ALTER task github_actions.{{ task_name }}\n resume;\n{% endset %}\n {% do run_query(sql) %}\n {% endif %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5809212, "supported_languages": null}, "macro.fsc_utils.gha_tasks_view": {"name": "gha_tasks_view", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/workflow_tasks.sql", "original_file_path": "macros/workflow_tasks.sql", "unique_id": "macro.fsc_utils.gha_tasks_view", "macro_sql": "{% macro gha_tasks_view() %}\nSELECT\n workflow_name,\n concat_ws(\n '_',\n 'TRIGGER',\n UPPER(workflow_name)\n ) AS task_name,\n workflow_schedule\nFROM\n {{ source(\n 'github_actions',\n 'workflows'\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5812526, "supported_languages": null}, "macro.fsc_utils.gha_task_history_view": {"name": "gha_task_history_view", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/workflow_tasks.sql", "original_file_path": "macros/workflow_tasks.sql", "unique_id": "macro.fsc_utils.gha_task_history_view", "macro_sql": "{% macro gha_task_history_view() %}\n {% set query %}\nSELECT\n DISTINCT task_name\nFROM\n {{ ref('github_actions__tasks') }}\n\n {% endset %}\n {% set results = run_query(query) %}\n {% if execute and results is not none %}\n {% set results_list = results.rows %}\n {% else %}\n {% set results_list = [] %}\n {% endif %}\n\n WITH task_history_data AS (\n SELECT\n *\n FROM\n ({% for result in results_list %}\n SELECT\n NAME AS task_name, completed_time, return_value, state, database_name, schema_name, scheduled_time, query_start_time\n FROM\n TABLE(information_schema.task_history(scheduled_time_range_start => DATEADD('hour', -24, CURRENT_TIMESTAMP()), task_name => '{{ result[0]}}')) {% if not loop.last %}\n UNION ALL\n {% endif %}\n {% endfor %}) AS subquery\n WHERE\n database_name = '{{ target.database }}'\n AND schema_name = 'GITHUB_ACTIONS')\n SELECT\n *\n FROM\n task_history_data\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5826187, "supported_languages": null}, "macro.fsc_utils.gha_task_schedule_view": {"name": "gha_task_schedule_view", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/workflow_tasks.sql", "original_file_path": "macros/workflow_tasks.sql", "unique_id": "macro.fsc_utils.gha_task_schedule_view", "macro_sql": "{% macro gha_task_schedule_view() %}\n WITH base AS (\n SELECT\n w.workflow_name AS workflow_name,\n w.workflow_schedule AS workflow_schedule,\n w.task_name AS task_name,\n t.timestamp AS scheduled_time\n FROM\n {{ ref('github_actions__tasks') }} AS w\n CROSS JOIN TABLE(\n utils.udf_cron_to_prior_timestamps(\n w.workflow_name,\n w.workflow_schedule\n )\n ) AS t\n )\nSELECT\n task_name,\n workflow_name,\n workflow_schedule,\n scheduled_time\nFROM\n base\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5829606, "supported_languages": null}, "macro.fsc_utils.gha_task_performance_view": {"name": "gha_task_performance_view", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/workflow_tasks.sql", "original_file_path": "macros/workflow_tasks.sql", "unique_id": "macro.fsc_utils.gha_task_performance_view", "macro_sql": "{% macro gha_task_performance_view() %}\nSELECT\n s.task_name,\n s.workflow_name,\n s.scheduled_time,\n h.return_value\nFROM\n {{ ref('github_actions__task_schedule') }}\n s\n LEFT JOIN {{ ref('github_actions__task_history') }}\n h\n ON s.task_name = h.task_name\n AND TO_TIMESTAMP_NTZ(\n s.scheduled_time\n ) BETWEEN TO_TIMESTAMP_NTZ(DATEADD(MINUTE, -1, h.scheduled_time))\n AND TO_TIMESTAMP_NTZ(DATEADD(MINUTE, 1, h.scheduled_time))\n AND TRY_TO_NUMBER(\n h.return_value\n ) BETWEEN 200\n AND 299\n AND h.state = 'SUCCEEDED'\nORDER BY\n task_name,\n scheduled_time\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5833492, "supported_languages": null}, "macro.fsc_utils.gha_task_current_status_view": {"name": "gha_task_current_status_view", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/workflow_tasks.sql", "original_file_path": "macros/workflow_tasks.sql", "unique_id": "macro.fsc_utils.gha_task_current_status_view", "macro_sql": "{% macro gha_task_current_status_view() %}\n WITH base AS (\n SELECT\n task_name,\n workflow_name,\n scheduled_time,\n return_value,\n return_value IS NOT NULL AS was_successful\n FROM\n {{ ref('github_actions__task_performance') }}\n qualify ROW_NUMBER() over (\n PARTITION BY task_name\n ORDER BY\n scheduled_time DESC\n ) <= 2\n )\nSELECT\n task_name,\n workflow_name,\n MAX(scheduled_time) AS recent_scheduled_time,\n MIN(scheduled_time) AS prior_scheduled_time,\n SUM(IFF(return_value = 204, 1, 0)) AS successes,\n successes > 0 AS pipeline_active\nFROM\n base\nGROUP BY\n task_name,\n workflow_name\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5836706, "supported_languages": null}, "macro.fsc_utils.alter_gha_task": {"name": "alter_gha_task", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/workflow_tasks.sql", "original_file_path": "macros/workflow_tasks.sql", "unique_id": "macro.fsc_utils.alter_gha_task", "macro_sql": "{% macro alter_gha_task(\n task_name,\n task_action\n ) %}\n {% set sql %}\n EXECUTE IMMEDIATE 'ALTER TASK IF EXISTS github_actions.{{ task_name }} {{ task_action }};' {% endset %}\n {% do run_query(sql) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5841882, "supported_languages": null}, "macro.fsc_utils.create_streamline_udfs": {"name": "create_streamline_udfs", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/create_streamline_udfs.sql", "original_file_path": "macros/create_streamline_udfs.sql", "unique_id": "macro.fsc_utils.create_streamline_udfs", "macro_sql": "{% macro create_streamline_udfs() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\n {% do run_query(\"CREATE SCHEMA IF NOT EXISTS streamline\") %}\n \n {{ create_udf_bulk_rest_api_v2() }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.fsc_utils.create_udf_bulk_rest_api_v2"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.58503, "supported_languages": null}, "macro.fsc_utils.create_evm_streamline_udfs": {"name": "create_evm_streamline_udfs", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/create_streamline_udfs.sql", "original_file_path": "macros/create_streamline_udfs.sql", "unique_id": "macro.fsc_utils.create_evm_streamline_udfs", "macro_sql": "{% macro create_evm_streamline_udfs() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\n {% do run_query(\"CREATE SCHEMA IF NOT EXISTS streamline\") %}\n \n {{ create_udf_bulk_rest_api_v2() }}\n {{ create_udf_bulk_decode_logs() }}\n {{ create_udf_bulk_decode_traces() }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.fsc_utils.create_udf_bulk_rest_api_v2", "macro.fsc_utils.create_udf_bulk_decode_logs", "macro.fsc_utils.create_udf_bulk_decode_traces"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.585623, "supported_languages": null}, "macro.fsc_utils.create_udfs": {"name": "create_udfs", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/create_udfs.sql", "original_file_path": "macros/create_udfs.sql", "unique_id": "macro.fsc_utils.create_udfs", "macro_sql": "{% macro create_udfs(drop_=False,schema=\"utils\") %}\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\n {% set name %}\n {{- fsc_utils.udf_configs(schema) -}}\n {% endset %}\n {% set udfs = fromyaml(name) %}\n {% set sql %}\n CREATE schema if NOT EXISTS {{ schema }};\n {%- for udf in udfs -%}\n {{- fsc_utils.create_or_drop_function_from_config(udf, drop_=drop_) -}}\n {% endfor %}\n {% endset %}\n {% do run_query(sql) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_utils.udf_configs", "macro.fsc_utils.create_or_drop_function_from_config", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.587203, "supported_languages": null}, "macro.fsc_utils.get_ancestors": {"name": "get_ancestors", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/datashares.sql", "original_file_path": "macros/datashares.sql", "unique_id": "macro.fsc_utils.get_ancestors", "macro_sql": "{%- macro get_ancestors(node, include_depth=false, exclude_source=false) -%}\n{#\n Return a list of ancestors for a node in a DAG.\n #}\n {%- for dep in node.depends_on.nodes | unique | list recursive %}\n {% if dep.startswith(\"model.\") and \"bronze__\" not in dep %}\n \"{{- loop.depth0 ~ '-'if include_depth else '' }}{{node.config.materialized }}-{{ dep -}}\",\n {{- loop(graph.nodes[dep].depends_on.nodes) -}}\n {% elif not exclude_source %}\n \"{{- loop.depth0 ~ '-'if include_depth else '' }}{{node.config.materialized }}-{{ dep -}}\",\n {%- endif -%}\n {%- endfor %}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5926635, "supported_languages": null}, "macro.fsc_utils.get_view_ddl": {"name": "get_view_ddl", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/datashares.sql", "original_file_path": "macros/datashares.sql", "unique_id": "macro.fsc_utils.get_view_ddl", "macro_sql": "{% macro get_view_ddl() %}\n{#\n Return a dictionary of view names and their DDL statements.\n The DDL statements are escaped to be used in a Snowflake query.\n The dictionary is converted to JSON to be used in a dbt macro..\n #}\n {% if execute %}\n {% set query %}\n SELECT\n CONCAT_WS('.', TABLE_SCHEMA, TABLE_NAME) as VIEW_NAME,\n VIEW_DEFINITION\n FROM {{target.database}}.INFORMATION_SCHEMA.VIEWS\n WHERE TABLE_SCHEMA NOT IN ('INFORMATION_SCHEMA', 'STREAMLINE')\n AND TABLE_SCHEMA NOT LIKE 'TEST_%'\n {%- endset -%}\n {%- set results = run_query(query) -%}\n {% set ddl = {} %}\n {% for key, value in results.rows %}\n {%- do ddl.update({key: value|replace(\"$$\", \"\\$\\$\")}) -%}\n {%- endfor -%}\n {{- tojson(ddl) -}}\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5940068, "supported_languages": null}, "macro.fsc_utils.replace_database_references": {"name": "replace_database_references", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/datashares.sql", "original_file_path": "macros/datashares.sql", "unique_id": "macro.fsc_utils.replace_database_references", "macro_sql": "{% macro replace_database_references(references_to_replace, ddl) %}\n{#\n Return the DDL statement for a view with the references replaced.\n All items in references_to_replace are replaced with __NEW__,\n while all remaining references to the database are replaced with __SOURCE__.\n\n references_to_replace: a list of references to replace with __NEW__\n ddl: the DDL statement to be replaced\n\n#}\n {% set re = modules.re %}\n {% set outer = namespace(replaced=ddl) %}\n {% for key in references_to_replace %}\n {%- set original = re.compile(\"\\\\b\" ~ target.database ~ \".\" ~ key ~ \"\\\\b\", re.IGNORECASE) -%}\n {%- set replacement = \"__NEW__\" ~ \".\" ~ key -%}\n {% set outer.replaced = original.sub(replacement, outer.replaced) %}\n {%- endfor -%}\n {%- set original = re.compile(\"\\\\b\" ~ target.database ~ \".\" ~ \"\\\\b\", re.IGNORECASE) -%}\n {% set outer.replaced = original.sub(\"__SOURCE__.\", outer.replaced) %}\n {{- outer.replaced -}}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5957017, "supported_languages": null}, "macro.fsc_utils.generate_view_ddl": {"name": "generate_view_ddl", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/datashares.sql", "original_file_path": "macros/datashares.sql", "unique_id": "macro.fsc_utils.generate_view_ddl", "macro_sql": "{% macro generate_view_ddl(dag, schema) %}\n{#\n Return a list of DDL statements for views in a DAG.\n\n dag: a DAG of views\n schema: schemas to create schema DDL for\n #}\n {%- set ddl = fromjson(fsc_utils.get_view_ddl()) -%}\n {%- set created = {} -%}\n {%- set final_text = [] -%}\n {%- for view, deps in dag.items() -%}\n {%- for d in deps -%}\n {%- set table_name = d.split(\".\")[-1].replace(\"__\", \".\").upper() -%}\n {%- if ddl.get(table_name) and table_name not in created -%}\n {%- set replaced = fsc_utils.replace_database_references(ddl.keys(), ddl[table_name]) -%}\n {%- do final_text.append(replaced) -%}\n {%- do created.update({table_name:true}) -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {%- set schema_ddl = [] -%}\n {%- for s in schema -%}\n {%- do schema_ddl.append(\"CREATE SCHEMA IF NOT EXISTS __NEW__.\" ~ s ~ \";\") -%}\n {%- endfor -%}\n {{- toyaml(schema_ddl + final_text) -}}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fsc_utils.get_view_ddl", "macro.fsc_utils.replace_database_references"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.5980039, "supported_languages": null}, "macro.fsc_utils.generate_dag_and_schemas": {"name": "generate_dag_and_schemas", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/datashares.sql", "original_file_path": "macros/datashares.sql", "unique_id": "macro.fsc_utils.generate_dag_and_schemas", "macro_sql": "{% macro generate_dag_and_schemas(node_paths, materializations) %}\n{#\n Return a DAG of views and a list of schemas to create.\n\n node_paths: a list of node paths to include in the DAG\n materializations: a list of materializations to include in the DAG\n #}\n {%- set dag = {} -%}\n {%- set schema = [] -%}\n {%- for key, value in graph.nodes.items() -%}\n {%\n if value.refs\n and set(value.fqn).intersection(node_paths)\n and value.config.materialized in materializations\n and value.config.enabled\n and not value.sources\n and not key.endswith(\"_create_gold\")\n -%}\n {%- set name = value.schema + \".\" + value.alias -%}\n {%- set _result = fromyaml(\"[\" ~ fsc_utils.get_ancestors(value, exclude_source=true)[:-1] ~ \"]\") -%}\n {% if _result -%}\n {%- do _result.insert(0, key) -%}\n {%- do dag.update({name.upper() : _result | reverse|list}) -%}\n {% for d in _result -%}\n {%- if d.split(\".\")[-1].split(\"__\")[0] not in schema -%}\n {%- do schema.append(d.split(\".\")[-1].split(\"__\")[0]) -%}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {%- do dag.update({name.upper() : [key] }) -%}\n {%- if value.schema not in schema -%}\n {%- do schema.append(value.schema) -%}\n {%- endif -%}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- set final = {\"dag\": dag, \"schema\": schema} -%}\n {{- tojson(final) -}}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fsc_utils.get_ancestors"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6015272, "supported_languages": null}, "macro.fsc_utils.generate_table_views_ddl": {"name": "generate_table_views_ddl", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/datashares.sql", "original_file_path": "macros/datashares.sql", "unique_id": "macro.fsc_utils.generate_table_views_ddl", "macro_sql": "{% macro generate_table_views_ddl(tables, schema) %}\n{#\n Return a list of DDL statements for views of tables from a list.\n\n tables: a list of tables to create views for\n schema: schemas to create schema DDL for\n #}\n {%- set schema_ddl = [] -%}\n {%- set view_ddl = [] -%}\n {% for s in schema %}\n {%- do schema_ddl.append(\"CREATE SCHEMA IF NOT EXISTS __NEW__.\" ~ s ~ \";\") -%}\n {%- endfor -%}\n {% for table in tables %}\n {%- do view_ddl.append(\"CREATE OR REPLACE VIEW __NEW__.\" ~ table ~ \" copy grants AS SELECT * FROM \" ~ \"__SOURCE__.\" ~ table ~\";\") -%}\n {%- endfor -%}\n {{- toyaml(schema_ddl + view_ddl) -}}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6026454, "supported_languages": null}, "macro.fsc_utils.generate_datashare_ddl": {"name": "generate_datashare_ddl", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/datashares.sql", "original_file_path": "macros/datashares.sql", "unique_id": "macro.fsc_utils.generate_datashare_ddl", "macro_sql": "{% macro generate_datashare_ddl() %}\n{#\n generate DDL for datashare\n\n Return: DDL for datashare\n #}\n {%- set gold_views = fromjson(fsc_utils.generate_dag_and_schemas([\"gold\"], [\"view\"])) -%}\n {%- set gold_views_ddl = fromyaml(fsc_utils.generate_view_ddl(gold_views[\"dag\"], gold_views[\"schema\"])) -%}\n {%- set gold_tables = fromjson(fsc_utils.generate_dag_and_schemas([\"gold\"], [\"incremental\", \"table\"])) -%}\n {%- set gold_tables_ddl = fromyaml(fsc_utils.generate_table_views_ddl(gold_tables[\"dag\"].keys(), gold_tables[\"schema\"])) -%}\n {%- set combined_ddl = gold_views_ddl + gold_tables_ddl -%}\n {%- do combined_ddl.insert(0, \"CREATE DATABASE IF NOT EXISTS __NEW__;\") -%}\n {{- \"BEGIN\\n\" ~ (combined_ddl | join(\"\\n\")) ~ \"\\nEND\" -}}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fsc_utils.generate_dag_and_schemas", "macro.fsc_utils.generate_view_ddl", "macro.fsc_utils.generate_table_views_ddl"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6043422, "supported_languages": null}, "macro.fsc_utils.generate_datashare_udf_ddl": {"name": "generate_datashare_udf_ddl", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/datashares.sql", "original_file_path": "macros/datashares.sql", "unique_id": "macro.fsc_utils.generate_datashare_udf_ddl", "macro_sql": "{% macro generate_datashare_udf_ddl() %}\n{#\n generate UDF DDL for datashare\n\n Return: UDF DDL for datashare\n #}\n {%- set schema = \"UTILS\" -%}\n {%- set udfs = fromyaml(fsc_utils.udf_configs(schema)) -%}\n {%- set combined_ddl = [] -%}\n {%- for udf in udfs -%}\n {% set name_ = udf [\"name\"] %}\n {% set signature = udf [\"signature\"] %}\n {% set return_type = udf [\"return_type\"] %}\n {% set sql_ = udf [\"sql\"] %}\n {% set options = udf [\"options\"] %}\n {% set api_integration = udf [\"api_integration\"] %}\n {% set func_type = udf [\"func_type\"] %}\n {% set exclude_from_datashare = udf.get(\"exclude_from_datashare\",False) %}\n {% if not exclude_from_datashare %}\n {%- set udf_ddl = fsc_utils.create_sql_function(\n name_ = name_,\n signature = signature,\n return_type = return_type,\n sql_ = sql_,\n options = options,\n api_integration = api_integration,\n func_type = func_type\n ).replace(\"\\\\\",\"\\\\\\\\\").replace(\"'\",\"\\\\'\") -%}\n {%- do combined_ddl.append(udf_ddl) -%} \n {% endif %} \n {% endfor %}\n {%- do combined_ddl.insert(0, \"CREATE DATABASE IF NOT EXISTS __NEW__;\") -%}\n {%- do combined_ddl.insert(1, \"USE DATABASE __NEW__;\") -%}\n {%- do combined_ddl.insert(2, \"CREATE SCHEMA IF NOT EXISTS \"~schema~\";\") -%}\n {{- \"'BEGIN','\" ~ (combined_ddl | join(\"','\")) ~ \"','END'\" -}}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.fsc_utils.udf_configs", "macro.fsc_utils.create_sql_function"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6073904, "supported_languages": null}, "macro.fsc_utils.get_query_tag": {"name": "get_query_tag", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/custom_query_tag.sql", "original_file_path": "macros/custom_query_tag.sql", "unique_id": "macro.fsc_utils.get_query_tag", "macro_sql": "{% macro get_query_tag() %}\n {# Get the full path of the model #}\n {% set model_path = model.path | string %}\n {% set folder_path = '/'.join(model_path.split('/')[:-1]) %}\n \n {# Get core folders from vars #}\n {% set core_folders = var('core_folders') %}\n \n {# Initialize is_core and check each path pattern #}\n {% set ns = namespace(is_core=false) %}\n \n {% for folder in core_folders %}\n {% if folder in folder_path %}\n {% set ns.is_core = true %}\n {% endif %}\n {% endfor %}\n \n {# Build the JSON query tag #}\n {% set tag_dict = {\n \"project\": project_name,\n \"model\": model.name,\n \"model_type\": \"core\" if ns.is_core else \"non_core\",\n \"invocation_id\": invocation_id,\n \"dbt_tags\": config.get('tags', [])\n } %}\n \n {% set query_tag = tojson(tag_dict) %}\n \n {# Return the properly escaped string #}\n {{ return(\"'\" ~ query_tag ~ \"'\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.609973, "supported_languages": null}, "macro.fsc_utils.set_query_tag": {"name": "set_query_tag", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/custom_query_tag.sql", "original_file_path": "macros/custom_query_tag.sql", "unique_id": "macro.fsc_utils.set_query_tag", "macro_sql": "{% macro set_query_tag() %}\n {% set tag = fsc_utils.get_query_tag() %}\n {% do run_query(\"alter session set query_tag = \" ~ tag) %}\n {{ return(\"\") }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_utils.get_query_tag", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6105034, "supported_languages": null}, "macro.fsc_utils.udf_configs": {"name": "udf_configs", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/configs.yaml.sql", "original_file_path": "macros/streamline/configs.yaml.sql", "unique_id": "macro.fsc_utils.udf_configs", "macro_sql": "{% macro udf_configs(schema) %}\n\n{#\n UTILITY SCHEMA\n#}\n\n- name: {{ schema }}.udf_hex_to_int\n signature:\n - [hex, STRING]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE PYTHON\n STRICT IMMUTABLE\n RUNTIME_VERSION = '3.9'\n HANDLER = 'hex_to_int'\n sql: |\n {{ fsc_utils.python_hex_to_int() | indent(4) }}\n- name: {{ schema }}.udf_hex_to_int\n signature:\n - [encoding, STRING]\n - [hex, STRING]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE PYTHON\n STRICT IMMUTABLE\n RUNTIME_VERSION = '3.9'\n HANDLER = 'hex_to_int'\n sql: |\n {{ fsc_utils.python_udf_hex_to_int_with_encoding() | indent(4) }}\n\n- name: {{ schema }}.udf_hex_to_string\n signature:\n - [hex, STRING]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE SQL\n STRICT IMMUTABLE\n sql: |\n SELECT\n LTRIM(regexp_replace(\n try_hex_decode_string(hex),\n '[\\x00-\\x1F\\x7F-\\x9F\\xAD]', '', 1))\n\n- name: {{ schema }}.udf_json_rpc_call\n signature:\n - [method, STRING]\n - [params, ARRAY]\n return_type: OBJECT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n {{ fsc_utils.sql_udf_json_rpc_call() }}\n exclude_from_datashare: true\n- name: {{ schema }}.udf_json_rpc_call\n signature:\n - [method, STRING]\n - [params, OBJECT]\n return_type: OBJECT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n {{ fsc_utils.sql_udf_json_rpc_call() }}\n exclude_from_datashare: true\n- name: {{ schema }}.udf_json_rpc_call\n signature:\n - [method, STRING]\n - [params, OBJECT]\n - [id, STRING]\n return_type: OBJECT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n {{ fsc_utils.sql_udf_json_rpc_call(False) }}\n exclude_from_datashare: true\n- name: {{ schema }}.udf_json_rpc_call\n signature:\n - [method, STRING]\n - [params, ARRAY]\n - [id, STRING]\n return_type: OBJECT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n {{ fsc_utils.sql_udf_json_rpc_call(False) }}\n exclude_from_datashare: true\n\n- name: {{ schema }}.udf_evm_text_signature\n signature:\n - [abi, VARIANT]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.9'\n HANDLER = 'get_simplified_signature'\n sql: |\n {{ fsc_utils.create_udf_evm_text_signature() | indent(4) }}\n\n- name: {{ schema }}.udf_keccak256\n signature:\n - [event_name, VARCHAR(255)]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.9'\n PACKAGES = ('pycryptodome==3.15.0')\n HANDLER = 'udf_encode'\n sql: |\n {{ fsc_utils.create_udf_keccak256() | indent(4) }}\n\n- name: {{ schema }}.udf_decimal_adjust\n signature:\n - [input, string]\n - [adjustment, int]\n return_type: VARCHAR\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.9'\n HANDLER = 'custom_divide'\n sql: |\n {{ fsc_utils.create_udf_decimal_adjust() | indent(4) }}\n\n- name: {{ schema }}.udf_cron_to_prior_timestamps\n signature:\n - [workflow_name, STRING]\n - [workflow_schedule, STRING]\n return_type: TABLE(workflow_name STRING, workflow_schedule STRING, timestamp TIMESTAMP_NTZ)\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.9'\n PACKAGES = ('croniter')\n HANDLER = 'TimestampGenerator'\n sql: |\n {{ fsc_utils.create_udf_cron_to_prior_timestamps() | indent(4) }}\n\n- name: {{ schema }}.udf_transform_logs\n signature:\n - [decoded, VARIANT]\n return_type: VARIANT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.9'\n HANDLER = 'transform'\n sql: |\n {{ fsc_utils.create_udf_transform_logs() | indent(4) }}\n\n- name: {{ schema }}.udf_base58_to_hex\n signature:\n - [base58, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.9'\n HANDLER = 'transform_base58_to_hex'\n sql: |\n {{ fsc_utils.create_udf_base58_to_hex() | indent(4) }}\n\n- name: {{ schema }}.udf_hex_to_base58\n signature:\n - [input, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.9'\n HANDLER = 'transform_hex_to_base58'\n sql: |\n {{ fsc_utils.create_udf_hex_to_base58() | indent(4) }}\n\n- name: {{ schema }}.udf_hex_to_bech32\n signature:\n - [input, STRING]\n - [hrp, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.9'\n HANDLER = 'transform_hex_to_bech32'\n sql: |\n {{ fsc_utils.create_udf_hex_to_bech32() | indent(4) }}\n\n- name: {{ schema }}.udf_hex_to_algorand\n signature:\n - [input, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.9'\n HANDLER = 'transform_hex_to_algorand'\n sql: |\n {{ fsc_utils.create_udf_hex_to_algorand() | indent(4) }}\n\n- name: {{ schema }}.udf_hex_to_tezos\n signature:\n - [input, STRING]\n - [prefix, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.9'\n HANDLER = 'transform_hex_to_tezos'\n sql: |\n {{ fsc_utils.create_udf_hex_to_tezos() | indent(4) }}\n\n- name: {{ schema }}.udf_detect_overflowed_responses\n signature:\n - [file_url, STRING]\n - [index_cols, ARRAY]\n return_type: ARRAY\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.11'\n COMMENT = 'Detect overflowed responses larger than 16MB'\n PACKAGES = ('snowflake-snowpark-python', 'pandas')\n HANDLER = 'main'\n sql: |\n {{ fsc_utils.create_udf_detect_overflowed_responses() | indent(4) }}\n\n- name: {{ schema }}.udtf_flatten_overflowed_responses\n signature:\n - [file_url, STRING]\n - [index_cols, ARRAY]\n - [index_vals, ARRAY]\n return_type: |\n table(\n index_vals ARRAY,\n block_number NUMBER,\n metadata OBJECT,\n seq NUMBER,\n key STRING,\n path STRING,\n index NUMBER,\n value_ VARIANT\n )\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.11'\n COMMENT = 'Flatten rows from a JSON file with overflowed responses larger than 16MB'\n PACKAGES = ('snowflake-snowpark-python', 'pandas', 'simplejson', 'numpy')\n HANDLER = 'FlattenRows'\n sql: |\n {{ fsc_utils.create_udtf_flatten_overflowed_responses() | indent(4) }}\n\n- name: {{ schema }}.udf_stablecoin_data_parse\n signature:\n - [peggeddata_content, STRING]\n return_type: |\n TABLE (\n id STRING,\n name STRING,\n address STRING,\n symbol STRING,\n onCoinGecko BOOLEAN,\n gecko_id STRING,\n cmcId STRING,\n pegType STRING,\n pegMechanism STRING,\n priceSource STRING,\n deadFrom STRING,\n delisted BOOLEAN,\n deprecated BOOLEAN,\n doublecounted BOOLEAN\n )\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.10'\n HANDLER = 'udf_stablecoin_data_parse'\n sql: |\n {{ fsc_utils.create_udf_stablecoin_data_parse() | indent(4) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_utils.python_hex_to_int", "macro.fsc_utils.python_udf_hex_to_int_with_encoding", "macro.fsc_utils.sql_udf_json_rpc_call", "macro.fsc_utils.create_udf_evm_text_signature", "macro.fsc_utils.create_udf_keccak256", "macro.fsc_utils.create_udf_decimal_adjust", "macro.fsc_utils.create_udf_cron_to_prior_timestamps", "macro.fsc_utils.create_udf_transform_logs", "macro.fsc_utils.create_udf_base58_to_hex", "macro.fsc_utils.create_udf_hex_to_base58", "macro.fsc_utils.create_udf_hex_to_bech32", "macro.fsc_utils.create_udf_hex_to_algorand", "macro.fsc_utils.create_udf_hex_to_tezos", "macro.fsc_utils.create_udf_detect_overflowed_responses", "macro.fsc_utils.create_udtf_flatten_overflowed_responses", "macro.fsc_utils.create_udf_stablecoin_data_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.623582, "supported_languages": null}, "macro.fsc_utils.test_sequence_gaps": {"name": "test_sequence_gaps", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/tests.sql", "original_file_path": "macros/streamline/tests.sql", "unique_id": "macro.fsc_utils.test_sequence_gaps", "macro_sql": "{% test sequence_gaps(\n model,\n partition_by,\n column_name\n) %}\n{%- set partition_sql = partition_by | join(\", \") -%}\n{%- set previous_column = \"prev_\" ~ column_name -%}\nWITH source AS (\n SELECT\n {{ partition_sql + \",\" if partition_sql }}\n {{ column_name }},\n LAG(\n {{ column_name }},\n 1\n ) over (\n {{ \"PARTITION BY \" ~ partition_sql if partition_sql }}\n ORDER BY\n {{ column_name }} ASC\n ) AS {{ previous_column }}\n FROM\n {{ model }}\n)\nSELECT\n {{ partition_sql + \",\" if partition_sql }}\n {{ previous_column }},\n {{ column_name }},\n {{ column_name }} - {{ previous_column }}\n - 1 AS gap\nFROM\n source\nWHERE\n {{ column_name }} - {{ previous_column }} <> 1\nORDER BY\n gap DESC \n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6278372, "supported_languages": null}, "macro.fsc_utils.test_tx_block_count": {"name": "test_tx_block_count", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/tests.sql", "original_file_path": "macros/streamline/tests.sql", "unique_id": "macro.fsc_utils.test_tx_block_count", "macro_sql": "{% test tx_block_count(\n model,\n column_name\n) %}\n\nSELECT \n {{ column_name }}, \n COUNT(DISTINCT block_number) AS num_blocks\nFROM\n {{ model }}\nGROUP BY {{ column_name }}\nHAVING num_blocks > 1\n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6282046, "supported_languages": null}, "macro.fsc_utils.tx_gaps": {"name": "tx_gaps", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/tests.sql", "original_file_path": "macros/streamline/tests.sql", "unique_id": "macro.fsc_utils.tx_gaps", "macro_sql": "{% macro tx_gaps(\n model\n ) %}\n WITH block_base AS (\n SELECT\n block_number,\n tx_count\n FROM\n {{ ref('test_silver__blocks_full') }}\n ),\n model_name AS (\n SELECT\n block_number,\n COUNT(\n DISTINCT tx_hash\n ) AS model_tx_count\n FROM\n {{ model }}\n GROUP BY\n block_number\n )\nSELECT\n block_base.block_number,\n tx_count,\n model_name.block_number AS model_block_number,\n model_tx_count\nFROM\n block_base\n LEFT JOIN model_name\n ON block_base.block_number = model_name.block_number\nWHERE\n (\n tx_count <> model_tx_count\n )\n OR (\n model_tx_count IS NULL\n AND tx_count <> 0\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6285849, "supported_languages": null}, "macro.fsc_utils.recent_tx_gaps": {"name": "recent_tx_gaps", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/tests.sql", "original_file_path": "macros/streamline/tests.sql", "unique_id": "macro.fsc_utils.recent_tx_gaps", "macro_sql": "{% macro recent_tx_gaps(\n model\n ) %}\n WITH block_base AS (\n SELECT\n block_number,\n tx_count\n FROM\n {{ ref('test_silver__blocks_recent') }}\n ),\n model_name AS (\n SELECT\n block_number,\n COUNT(\n DISTINCT tx_hash\n ) AS model_tx_count\n FROM\n {{ model }}\n GROUP BY\n block_number\n )\nSELECT\n block_base.block_number,\n tx_count,\n model_name.block_number AS model_block_number,\n model_tx_count\nFROM\n block_base\n LEFT JOIN model_name\n ON block_base.block_number = model_name.block_number\nWHERE\n (\n tx_count <> model_tx_count\n )\n OR (\n model_tx_count IS NULL\n AND tx_count <> 0\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.628985, "supported_languages": null}, "macro.fsc_utils.test_recent_decoded_logs_match": {"name": "test_recent_decoded_logs_match", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/tests.sql", "original_file_path": "macros/streamline/tests.sql", "unique_id": "macro.fsc_utils.test_recent_decoded_logs_match", "macro_sql": "{% test recent_decoded_logs_match(\n model\n) %}\nSELECT\n block_number,\n _log_id\nFROM\n {{ model }}\n d\nWHERE\n NOT EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__logs') }}\n l\n WHERE\n d.block_number = l.block_number\n AND d.tx_hash = l.tx_hash\n AND d.event_index = l.event_index\n AND d.contract_address = l.contract_address\n AND d.topics [0] :: STRING = l.topics [0] :: STRING\n ) \n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6293404, "supported_languages": null}, "macro.fsc_utils.sql_udf_json_rpc_call": {"name": "sql_udf_json_rpc_call", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.sql", "original_file_path": "macros/streamline/functions.sql", "unique_id": "macro.fsc_utils.sql_udf_json_rpc_call", "macro_sql": "{% macro sql_udf_json_rpc_call(use_default_id=True ) %}\n SELECT IFF(method IS NULL or params IS NULL,\n NULL,\n {\n 'jsonrpc': '2.0',\n 'method': method,\n 'params': params\n {% if use_default_id %}\n , 'id': hash(method, params)::string\n {% else %}\n , 'id': id\n {% endif %}\n }\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6299229, "supported_languages": null}, "macro.fsc_utils.python_hex_to_int": {"name": "python_hex_to_int", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.python_hex_to_int", "macro_sql": "{% macro python_hex_to_int() %}\ndef hex_to_int(hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int('200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('0x200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int(NULL);\n >> NULL\n \"\"\"\n return (str(int(hex, 16)) if hex and hex != \"0x\" else None)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6615953, "supported_languages": null}, "macro.fsc_utils.python_udf_hex_to_int_with_encoding": {"name": "python_udf_hex_to_int_with_encoding", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.python_udf_hex_to_int_with_encoding", "macro_sql": "{% macro python_udf_hex_to_int_with_encoding() %}\ndef hex_to_int(encoding, hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int('hex', '200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('hex', '0x200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('hex', NULL);\n >> NULL\n hex_to_int('s2c', 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffe5b83acf');\n >> -440911153\n \"\"\"\n if not hex:\n return None\n if encoding.lower() == 's2c':\n if hex[0:2].lower() != '0x':\n hex = f'0x{hex}'\n\n bits = len(hex[2:])*4\n value = int(hex, 0)\n if value & (1 << (bits-1)):\n value -= 1 << bits\n return str(value)\n else:\n return str(int(hex, 16))\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6618495, "supported_languages": null}, "macro.fsc_utils.create_udf_keccak256": {"name": "create_udf_keccak256", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_keccak256", "macro_sql": "{% macro create_udf_keccak256() %}\nfrom Crypto.Hash import keccak\n\ndef udf_encode(event_name):\n keccak_hash = keccak.new(digest_bits=256)\n keccak_hash.update(event_name.encode('utf-8'))\n return '0x' + keccak_hash.hexdigest()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6620507, "supported_languages": null}, "macro.fsc_utils.create_udf_evm_text_signature": {"name": "create_udf_evm_text_signature", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_evm_text_signature", "macro_sql": "{% macro create_udf_evm_text_signature() %}\n\ndef get_simplified_signature(abi):\n def generate_signature(inputs):\n signature_parts = []\n for input_data in inputs:\n if 'components' in input_data:\n component_signature_parts = []\n components = input_data['components']\n component_signature_parts.extend(generate_signature(components))\n component_signature_parts[-1] = component_signature_parts[-1].rstrip(\",\")\n if input_data['type'].endswith('[]'):\n signature_parts.append(\"(\" + \"\".join(component_signature_parts) + \")[],\")\n else:\n signature_parts.append(\"(\" + \"\".join(component_signature_parts) + \"),\")\n else:\n signature_parts.append(input_data['type'].replace('enum ', '').replace(' payable', '') + \",\")\n return signature_parts\n\n signature_parts = [abi['name'] + \"(\"]\n signature_parts.extend(generate_signature(abi['inputs']))\n signature_parts[-1] = signature_parts[-1].rstrip(\",\") + \")\"\n return \"\".join(signature_parts)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6622984, "supported_languages": null}, "macro.fsc_utils.create_udf_decimal_adjust": {"name": "create_udf_decimal_adjust", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_decimal_adjust", "macro_sql": "{% macro create_udf_decimal_adjust() %}\n\nfrom decimal import Decimal, ROUND_DOWN\n\ndef custom_divide(input, adjustment):\n try:\n if adjustment is None or input is None:\n return None\n\n # Perform the division using Decimal type\n result = Decimal(input) / pow(10, Decimal(adjustment))\n\n # Determine the number of decimal places in the result\n decimal_places = max(0, -result.as_tuple().exponent)\n\n # Convert the result to a string representation without scientific notation and with dynamic decimal precision\n result_str = \"{:.{prec}f}\".format(result, prec=decimal_places)\n\n return result_str\n except Exception as e:\n return None\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6625123, "supported_languages": null}, "macro.fsc_utils.create_udf_cron_to_prior_timestamps": {"name": "create_udf_cron_to_prior_timestamps", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_cron_to_prior_timestamps", "macro_sql": "{% macro create_udf_cron_to_prior_timestamps() %}\nimport croniter\nimport datetime\n\nclass TimestampGenerator:\n\n def __init__(self):\n pass\n\n def process(self, workflow_name, workflow_schedule):\n for timestamp in self.generate_timestamps(workflow_name, workflow_schedule):\n yield (workflow_name, workflow_schedule, timestamp)\n\n def generate_timestamps(self, workflow_name, workflow_schedule):\n # Create a cron iterator object\n cron = croniter.croniter(workflow_schedule)\n\n # Generate timestamps for the prev 10 runs\n timestamps = []\n for i in range(10):\n prev_run = cron.get_prev(datetime.datetime)\n timestamps.append(prev_run)\n\n return timestamps\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6627474, "supported_languages": null}, "macro.fsc_utils.create_udf_transform_logs": {"name": "create_udf_transform_logs", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_transform_logs", "macro_sql": "{% macro create_udf_transform_logs() %}\n\nfrom copy import deepcopy\n\ndef transform_tuple(components: list, values: list):\n transformed_values = []\n for i, component in enumerate(components):\n if i < len(values):\n if component[\"type\"] == \"tuple\":\n transformed_values.append({\"value\": transform_tuple(component[\"components\"], values[i]), **component})\n elif component[\"type\"] == \"tuple[]\":\n if not values[i]:\n transformed_values.append({\"value\": [], **component})\n continue\n sub_values = [transform_tuple(component[\"components\"], v) for v in values[i]]\n transformed_values.append({\"value\": sub_values, **component})\n else:\n transformed_values.append({\"value\": values[i], **component})\n return {item[\"name\"]: item[\"value\"] for item in transformed_values}\n\ndef transform_event(event: dict):\n new_event = deepcopy(event)\n if new_event.get(\"components\"):\n components = new_event.get(\"components\")\n\n if not new_event[\"value\"]:\n return new_event\n\n if isinstance(new_event[\"value\"][0], list):\n result_list = []\n for value_set in new_event[\"value\"]:\n result_list.append(transform_tuple(components, value_set))\n new_event[\"value\"] = result_list\n\n else:\n new_event[\"value\"] = transform_tuple(components, new_event[\"value\"])\n\n return new_event\n\n else:\n return event\n\ndef transform(events: dict):\n try:\n results = [\n transform_event(event) if event.get(\"decoded\") else event\n for event in events[\"data\"]\n ]\n events[\"data\"] = results\n return events\n except:\n return events\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6632736, "supported_languages": null}, "macro.fsc_utils.create_udf_base58_to_hex": {"name": "create_udf_base58_to_hex", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_base58_to_hex", "macro_sql": "{% macro create_udf_base58_to_hex() %}\n\ndef transform_base58_to_hex(base58):\n if base58 is None:\n return 'Invalid input'\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n base_count = len(ALPHABET)\n\n num = 0\n leading_zeros = 0\n\n for char in base58:\n if char == '1':\n leading_zeros += 1\n else:\n break\n\n for char in base58:\n num *= base_count\n if char in ALPHABET:\n num += ALPHABET.index(char)\n else:\n return 'Invalid character in input'\n\n hex_string = hex(num)[2:]\n\n if len(hex_string) % 2 != 0:\n hex_string = '0' + hex_string\n\n hex_leading_zeros = '00' * leading_zeros\n\n return '0x' + hex_leading_zeros + hex_string\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6635008, "supported_languages": null}, "macro.fsc_utils.create_udf_hex_to_base58": {"name": "create_udf_hex_to_base58", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_hex_to_base58", "macro_sql": "{% macro create_udf_hex_to_base58() %}\n\ndef transform_hex_to_base58(input):\n if input is None or not input.startswith('0x'):\n return 'Invalid input'\n\n input = input[2:]\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n byte_array = bytes.fromhex(input)\n num = int.from_bytes(byte_array, 'big')\n\n encoded = ''\n while num > 0:\n num, remainder = divmod(num, 58)\n encoded = ALPHABET[remainder] + encoded\n\n for byte in byte_array:\n if byte == 0:\n encoded = '1' + encoded\n else:\n break\n\n return encoded\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.663707, "supported_languages": null}, "macro.fsc_utils.create_udf_hex_to_bech32": {"name": "create_udf_hex_to_bech32", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_hex_to_bech32", "macro_sql": "{% macro create_udf_hex_to_bech32() %}\n\ndef transform_hex_to_bech32(input, hrp=''):\n CHARSET = \"qpzry9x8gf2tvdw0s3jn54khce6mua7l\"\n\n def bech32_polymod(values):\n generator = [0x3b6a57b2, 0x26508e6d, 0x1ea119fa, 0x3d4233dd, 0x2a1462b3]\n checksum = 1\n for value in values:\n top = checksum >> 25\n checksum = ((checksum & 0x1ffffff) << 5) ^ value\n for i in range(5):\n checksum ^= generator[i] if ((top >> i) & 1) else 0\n return checksum\n\n def bech32_hrp_expand(hrp):\n return [ord(x) >> 5 for x in hrp] + [0] + [ord(x) & 31 for x in hrp]\n\n def bech32_create_checksum(hrp, data):\n values = bech32_hrp_expand(hrp) + data\n polymod = bech32_polymod(values + [0, 0, 0, 0, 0, 0]) ^ 1\n return [(polymod >> 5 * (5 - i)) & 31 for i in range(6)]\n\n def bech32_convertbits(data, from_bits, to_bits, pad=True):\n acc = 0\n bits = 0\n ret = []\n maxv = (1 << to_bits) - 1\n max_acc = (1 << (from_bits + to_bits - 1)) - 1\n for value in data:\n acc = ((acc << from_bits) | value) & max_acc\n bits += from_bits\n while bits >= to_bits:\n bits -= to_bits\n ret.append((acc >> bits) & maxv)\n if pad and bits:\n ret.append((acc << (to_bits - bits)) & maxv)\n return ret\n\n if input is None or not input.startswith('0x'):\n return 'Invalid input'\n\n input = input[2:]\n\n data = bytes.fromhex(input)\n data5bit = bech32_convertbits(list(data), 8, 5)\n\n if data5bit is None:\n return 'Data conversion failed'\n\n checksum = bech32_create_checksum(hrp, data5bit)\n\n return hrp + '1' + ''.join([CHARSET[d] for d in data5bit + checksum])\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6640325, "supported_languages": null}, "macro.fsc_utils.create_udf_hex_to_algorand": {"name": "create_udf_hex_to_algorand", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_hex_to_algorand", "macro_sql": "{% macro create_udf_hex_to_algorand() %}\n\nimport hashlib\nimport base64\n\ndef transform_hex_to_algorand(input):\n if input is None or not input.startswith('0x'):\n return 'Invalid input'\n\n input = input[2:]\n public_key_bytes = bytearray.fromhex(input)\n\n sha512_256_hash = hashlib.new('sha512_256', public_key_bytes).digest()\n\n checksum = sha512_256_hash[-4:]\n\n algorand_address = base64.b32encode(public_key_bytes + checksum).decode('utf-8').rstrip('=')\n\n return algorand_address\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6642327, "supported_languages": null}, "macro.fsc_utils.create_udf_hex_to_tezos": {"name": "create_udf_hex_to_tezos", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_hex_to_tezos", "macro_sql": "{% macro create_udf_hex_to_tezos() %}\n\nimport hashlib\n\ndef transform_hex_to_tezos(input, prefix):\n if input is None or not input.startswith('0x'):\n return 'Invalid input'\n\n input = input[2:]\n\n if len(input) != 40:\n return 'Invalid length'\n\n hash_bytes = bytes.fromhex(input)\n\n prefixes = {\n 'tz1': '06a19f', # Ed25519\n 'tz2': '06a1a1', # Secp256k1\n 'tz3': '06a1a4' # P-256\n }\n\n if prefix not in prefixes:\n return 'Invalid prefix: Must be tz1, tz2, or tz3'\n\n prefix_bytes = bytes.fromhex(prefixes[prefix])\n\n prefixed_hash = prefix_bytes + hash_bytes\n\n checksum = hashlib.sha256(hashlib.sha256(prefixed_hash).digest()).digest()[:4]\n\n full_hash = prefixed_hash + checksum\n\n tezos_address = transform_hex_to_base58(full_hash.hex())\n\n return tezos_address\n\ndef transform_hex_to_base58(input):\n if input is None:\n return None\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n byte_array = bytes.fromhex(input)\n num = int.from_bytes(byte_array, 'big')\n\n encoded = ''\n while num > 0:\n num, remainder = divmod(num, 58)\n encoded = ALPHABET[remainder] + encoded\n\n for byte in byte_array:\n if byte == 0:\n encoded = '1' + encoded\n else:\n break\n\n return encoded\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6644995, "supported_languages": null}, "macro.fsc_utils.create_udf_detect_overflowed_responses": {"name": "create_udf_detect_overflowed_responses", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_detect_overflowed_responses", "macro_sql": "{% macro create_udf_detect_overflowed_responses() %}\n\nimport pandas as pd\nfrom snowflake.snowpark.files import SnowflakeFile\n\nVARCHAR_MAX = 16_777_216\ndef main(file_url, index_cols):\n with SnowflakeFile.open(file_url, 'rb') as f:\n df = pd.read_json(f, lines=True, compression='gzip')\n data_length = df[\"data\"].astype(str).apply(len)\n return df[data_length > VARCHAR_MAX][index_cols].values.tolist()\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6647038, "supported_languages": null}, "macro.fsc_utils.create_udtf_flatten_overflowed_responses": {"name": "create_udtf_flatten_overflowed_responses", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udtf_flatten_overflowed_responses", "macro_sql": "{% macro create_udtf_flatten_overflowed_responses() %}\n\nimport logging\nimport simplejson as json\n\nimport numpy as np\nimport pandas as pd\nfrom snowflake.snowpark.files import SnowflakeFile\n\nVARCHAR_MAX = 16_777_216\n\nlogger = logging.getLogger(\"udtf_flatten_overflowed_responses\")\n\nclass Flatten:\n \"\"\"\n Recursive function to flatten a nested JSON file\n \"\"\"\n\n def __init__(self, mode: str, exploded_key: list) -> None:\n self.mode = mode\n self.exploded_key = exploded_key\n\n def _flatten_response(\n self,\n response_key: str,\n responses: str,\n block_number: int,\n metadata: dict,\n seq_index: int = 0,\n path: str = \"\",\n ):\n \"\"\"\n Example:\n\n input: {\"a\":1, \"b\":[77,88], \"c\": {\"d\":\"X\"}}\n\n output:\n - SEQ: A unique sequence number associated with the input record; the sequence is not guaranteed to be gap-free or ordered in any particular way.\n - KEY: For maps or objects, this column contains the key to the exploded value.\n - PATH: The path to the element within a data structure which needs to be flattened.\n - INDEX: The index of the element, if it is an array; otherwise NULL.\n - VALUE_: The value of the element of the flattened array/object.\n\n \"\"\"\n exploded_data = []\n if self.mode == \"array\":\n check_mode = isinstance(responses, list)\n elif self.mode == \"dict\":\n check_mode = isinstance(responses, dict)\n elif self.mode == \"both\":\n check_mode = isinstance(responses, list) or isinstance(responses, dict)\n\n if check_mode:\n if isinstance(responses, dict):\n looped_keys = responses.keys()\n for key in looped_keys:\n next_path = f\"{path}.{key}\" if path else key\n index = None\n exploded_data.append(\n {\n \"block_number\": block_number,\n \"metadata\": metadata,\n \"seq\": seq_index,\n \"key\": key,\n \"path\": next_path,\n \"index\": index,\n \"value_\": responses[key],\n }\n )\n exploded_data.extend(\n self._flatten_response(\n key,\n responses[key],\n block_number,\n metadata,\n seq_index,\n next_path,\n )\n )\n\n elif isinstance(responses, list):\n looped_keys = range(len(responses))\n if response_key in self.exploded_key or len(self.exploded_key) == 0:\n for item_i, item in enumerate(responses):\n if response_key == \"result\":\n seq_index += 1\n index = item_i\n exploded_data.append(\n {\n \"block_number\": block_number,\n \"metadata\": metadata,\n \"seq\": seq_index,\n \"key\": None,\n \"path\": f\"{path}[{item_i}]\",\n \"index\": index,\n \"value_\": item,\n }\n )\n exploded_data.extend(\n self._flatten_response(\n item_i,\n item,\n block_number,\n metadata,\n seq_index,\n f\"{path}[{item_i}]\",\n )\n )\n\n return exploded_data\n\nclass FlattenRows:\n \"\"\"\n Recursive function to flatten a given JSON file from Snowflake stage\n \"\"\"\n def process(self, file_url: str, index_cols: list, index_vals: list):\n with SnowflakeFile.open(file_url, 'rb') as f:\n df = pd.read_json(f, lines=True, compression='gzip')\n\n df.set_index(index_cols, inplace=True, drop=False)\n df = df.loc[index_vals]\n\n flattener = Flatten(mode=\"both\", exploded_key=[])\n\n df[\"value_\"] = df.apply(\n lambda x: flattener._flatten_response(\n block_number=x[\"block_number\"], metadata=x[\"metadata\"], responses=x[\"data\"], response_key=None\n ),\n axis=\"columns\",\n )\n df[\"value_\"] = df[\"value_\"].apply(pd.DataFrame.from_records)\n df[\"index_cols\"] = df.index\n df = df[[\"index_cols\", \"value_\"]]\n flattened = pd.concat(\n df[\"value_\"].values.tolist(), keys=df[\"index_cols\"].values.tolist()\n ).droplevel(-1)\n\n cleansed = flattened.replace({np.nan: None})\n\n overflow = cleansed[\"value_\"].astype(str).apply(len) > VARCHAR_MAX\n\n cleansed.loc[overflow, [\"value_\"]] = None\n temp_index_cols = list(range(len(index_cols)))\n cleansed = cleansed.reset_index(names=temp_index_cols, drop=False)\n cleansed[\"index_cols\"] = cleansed[temp_index_cols].apply(list, axis=1)\n cleansed.drop(columns=temp_index_cols, inplace=True, errors=\"ignore\")\n return list(cleansed[np.roll(cleansed.columns.values, 1).tolist()].itertuples(index=False, name=None))\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6653626, "supported_languages": null}, "macro.fsc_utils.create_udf_stablecoin_data_parse": {"name": "create_udf_stablecoin_data_parse", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_stablecoin_data_parse", "macro_sql": "{% macro create_udf_stablecoin_data_parse() %}\nimport re\n\nclass udf_stablecoin_data_parse:\n def process(self, peggeddata_content):\n \"\"\"Main parsing function\"\"\"\n \n def extract_field_value(obj_text, field_name):\n \"\"\"Extract field value from object text using regex patterns\"\"\"\n \n # Handle different field patterns\n patterns = [\n rf'{field_name}\\s*:\\s*\"([^\"]*)\"',\n rf\"{field_name}\\s*:\\s*'([^']*)'\",\n rf'{field_name}\\s*:\\s*`([^`]*)`',\n rf'{field_name}\\s*:\\s*(true|false|null|undefined)',\n rf'{field_name}\\s*:\\s*([^,}}\\n]+)'\n ]\n \n for pattern in patterns:\n match = re.search(pattern, obj_text, re.IGNORECASE | re.DOTALL)\n if match:\n value = match.group(1).strip()\n \n # Clean up the value\n value = re.sub(r'[,}}\\n]', '', value).strip()\n \n if value.lower() in ('null', 'undefined', ''):\n return None\n \n # Handle boolean values\n if value.lower() == 'true':\n return True\n if value.lower() == 'false':\n return False\n \n return value\n \n return None\n\n def convert_value(value, expected_type):\n \"\"\"Convert value to appropriate type\"\"\"\n if value is None:\n return None\n \n if expected_type == 'BOOLEAN':\n if isinstance(value, bool):\n return value\n if isinstance(value, str):\n lower = value.lower()\n if lower == 'true':\n return True\n if lower == 'false':\n return False\n return None\n \n return str(value) if value is not None else None\n\n try:\n # Find the main array content - make the regex non-greedy but capture everything\n array_match = re.search(r'export\\s+default\\s*\\[(.*)\\];?\\s*$', peggeddata_content, re.DOTALL)\n if not array_match:\n raise Exception('Could not find exported array in peggedData content')\n \n array_content = array_match.group(1).strip()\n \n # Use a simpler regex-based approach to split objects\n # Remove comments and clean up the array content first\n # Instead of removing line comments entirely, just remove the // markers but keep the content\n clean_content = re.sub(r'^\\s*//\\s*', '', array_content, flags=re.MULTILINE) # Remove // at start of lines\n clean_content = re.sub(r'\\n\\s*//\\s*', '\\n', clean_content) # Remove // from middle of lines\n # Instead of removing block comments entirely, just remove the comment markers but keep the content\n clean_content = re.sub(r'/\\*', '', clean_content) # Remove opening block comment markers\n clean_content = re.sub(r'\\*/', '', clean_content) # Remove closing block comment markers\n \n # Find all objects using regex - look for {...} patterns\n # This is more reliable than manual parsing\n object_pattern = r'\\{[^{}]*(?:\\{[^{}]*\\}[^{}]*)*\\}'\n matches = re.finditer(object_pattern, clean_content, re.DOTALL)\n \n objects = []\n for match in matches:\n obj_text = match.group(0).strip()\n if obj_text and len(obj_text) > 10: # Filter out small matches\n objects.append(obj_text)\n \n # If the simple regex didn't work, try a more complex nested approach\n if not objects:\n # More complex regex for nested objects\n nested_pattern = r'\\{(?:[^{}]|(?:\\{[^{}]*\\}))*\\}'\n nested_matches = re.findall(nested_pattern, clean_content, re.DOTALL)\n objects = [obj.strip() for obj in nested_matches if len(obj.strip()) > 20]\n \n # Still no objects? Try manual parsing with better logic\n if not objects:\n objects = []\n current_object = ''\n brace_count = 0\n in_string = False\n string_char = ''\n i = 0\n \n while i < len(clean_content):\n char = clean_content[i]\n \n # Handle string literals\n if not in_string and char in ('\"', \"'\", '`'):\n in_string = True\n string_char = char\n elif in_string and char == string_char:\n # Check if it's escaped\n if i > 0 and clean_content[i-1] != '\\\\':\n in_string = False\n string_char = ''\n \n # Handle braces only when not in string\n if not in_string:\n if char == '{':\n if brace_count == 0:\n current_object = '{' # Start new object\n else:\n current_object += char\n brace_count += 1\n elif char == '}':\n current_object += char\n brace_count -= 1\n if brace_count == 0 and current_object.strip():\n # Complete object found\n objects.append(current_object.strip())\n current_object = ''\n elif brace_count > 0:\n current_object += char\n else:\n if brace_count > 0:\n current_object += char\n \n i += 1\n \n if not objects:\n # Last resort: try splitting on id: pattern\n id_splits = re.split(r'\\n\\s*id:\\s*[\"\\']', clean_content)\n if len(id_splits) > 1:\n objects = []\n for i, part in enumerate(id_splits[1:], 1): # Skip first empty part\n # Try to reconstruct the object\n obj_start = clean_content.find(f'id:', clean_content.find(part))\n if obj_start > 0:\n # Look backwards for opening brace\n brace_start = clean_content.rfind('{', 0, obj_start)\n if brace_start >= 0:\n # Look forward for matching closing brace\n brace_count = 0\n for j in range(brace_start, len(clean_content)):\n if clean_content[j] == '{':\n brace_count += 1\n elif clean_content[j] == '}':\n brace_count -= 1\n if brace_count == 0:\n obj_text = clean_content[brace_start:j+1].strip()\n if len(obj_text) > 20:\n objects.append(obj_text)\n break\n \n if not objects:\n raise Exception(f'No objects found after all parsing attempts. Sample content: {clean_content[:500]}...')\n \n # Process each object and extract the required fields\n for i, obj_text in enumerate(objects):\n try:\n data = {\n 'id': extract_field_value(obj_text, 'id'),\n 'name': extract_field_value(obj_text, 'name'),\n 'address': extract_field_value(obj_text, 'address'),\n 'symbol': extract_field_value(obj_text, 'symbol'),\n 'onCoinGecko': extract_field_value(obj_text, 'onCoinGecko'),\n 'gecko_id': extract_field_value(obj_text, 'gecko_id'),\n 'cmcId': extract_field_value(obj_text, 'cmcId'),\n 'pegType': extract_field_value(obj_text, 'pegType'),\n 'pegMechanism': extract_field_value(obj_text, 'pegMechanism'),\n 'priceSource': extract_field_value(obj_text, 'priceSource'),\n 'deadFrom': extract_field_value(obj_text, 'deadFrom'),\n 'delisted': extract_field_value(obj_text, 'delisted'),\n 'deprecated': extract_field_value(obj_text, 'deprecated'),\n 'doublecounted': extract_field_value(obj_text, 'doublecounted')\n }\n \n # Only include objects that have at least id and name\n if data['id'] and data['name']:\n yield (\n convert_value(data['id'], 'STRING'),\n convert_value(data['name'], 'STRING'),\n convert_value(data['address'], 'STRING'),\n convert_value(data['symbol'], 'STRING'),\n convert_value(data['onCoinGecko'], 'BOOLEAN'),\n convert_value(data['gecko_id'], 'STRING'),\n convert_value(data['cmcId'], 'STRING'),\n convert_value(data['pegType'], 'STRING'),\n convert_value(data['pegMechanism'], 'STRING'),\n convert_value(data['priceSource'], 'STRING'),\n convert_value(data['deadFrom'], 'STRING'),\n convert_value(data['delisted'], 'BOOLEAN'),\n convert_value(data['deprecated'], 'BOOLEAN'),\n convert_value(data['doublecounted'], 'BOOLEAN')\n )\n \n except Exception as obj_error:\n # Skip malformed objects but continue processing\n continue\n \n except Exception as error:\n raise Exception(f'Error parsing peggedData content: {str(error)}')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6664374, "supported_languages": null}, "macro.fsc_utils.create_udf_bulk_rest_api_v2": {"name": "create_udf_bulk_rest_api_v2", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/udfs.sql", "original_file_path": "macros/streamline/udfs.sql", "unique_id": "macro.fsc_utils.create_udf_bulk_rest_api_v2", "macro_sql": "{% macro create_udf_bulk_rest_api_v2() %} \n {{ log(\"Creating udf udf_bulk_rest_api for target:\" ~ target.name ~ \", schema: \" ~ target.schema ~ \", DB: \" ~ target.database, info=True) }}\n {{ log(\"role:\" ~ target.role ~ \", user:\" ~ target.user, info=True) }}\n\n {% set sql %}\n CREATE OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_rest_api_v2(json object) returns array api_integration = \n {% if target.name == \"prod\" %} \n {{ log(\"Creating prod udf_bulk_rest_api_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}udf_bulk_rest_api'\n {% elif target.name == \"dev\" %}\n {{ log(\"Creating dev udf_bulk_rest_api_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}udf_bulk_rest_api'\n {% elif target.name == \"sbx\" %}\n {{ log(\"Creating stg udf_bulk_rest_api_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}udf_bulk_rest_api'\n {% else %}\n {{ log(\"Creating default (dev) udf_bulk_rest_api_v2\", info=True) }}\n {{ var(\"config\")[\"dev\"][\"API_INTEGRATION\"] }} AS 'https://{{ var(\"config\")[\"dev\"][\"EXTERNAL_FUNCTION_URI\"] | lower }}udf_bulk_rest_api'\n {% endif %};\n {% endset %}\n {{ log(sql, info=True) }}\n {% do adapter.execute(sql) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6750088, "supported_languages": null}, "macro.fsc_utils.create_udf_bulk_decode_logs": {"name": "create_udf_bulk_decode_logs", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/udfs.sql", "original_file_path": "macros/streamline/udfs.sql", "unique_id": "macro.fsc_utils.create_udf_bulk_decode_logs", "macro_sql": "{% macro create_udf_bulk_decode_logs() %} \n {{ log(\"Creating udf udf_bulk_decode_logs_v2 for target:\" ~ target.name ~ \", schema: \" ~ target.schema ~ \", DB: \" ~ target.database, info=True) }}\n {{ log(\"role:\" ~ target.role ~ \", user:\" ~ target.user, info=True) }}\n\n {% set sql %}\n CREATE OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_decode_logs_v2(json object) returns array api_integration = \n {% if target.name == \"prod\" %} \n {{ log(\"Creating prod udf_bulk_decode_logs_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}bulk_decode_logs'\n {% elif target.name == \"dev\" %}\n {{ log(\"Creating dev udf_bulk_decode_logs_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}bulk_decode_logs'\n {% elif target.name == \"sbx\" %}\n {{ log(\"Creating stg udf_bulk_decode_logs_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}bulk_decode_logs'\n {% else %}\n {{ log(\"Creating default (dev) udf_bulk_decode_logs_v2\", info=True) }}\n {{ var(\"config\")[\"dev\"][\"API_INTEGRATION\"] }} AS 'https://{{ var(\"config\")[\"dev\"][\"EXTERNAL_FUNCTION_URI\"] | lower }}bulk_decode_logs'\n {% endif %};\n {% endset %}\n {{ log(sql, info=True) }}\n {% do adapter.execute(sql) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6779916, "supported_languages": null}, "macro.fsc_utils.create_udf_bulk_decode_traces": {"name": "create_udf_bulk_decode_traces", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/udfs.sql", "original_file_path": "macros/streamline/udfs.sql", "unique_id": "macro.fsc_utils.create_udf_bulk_decode_traces", "macro_sql": "{% macro create_udf_bulk_decode_traces() %} \n {{ log(\"Creating udf udf_bulk_decode_traces_v2 for target:\" ~ target.name ~ \", schema: \" ~ target.schema ~ \", DB: \" ~ target.database, info=True) }}\n {{ log(\"role:\" ~ target.role ~ \", user:\" ~ target.user, info=True) }}\n\n {% set sql %}\n CREATE OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_decode_traces_v2(json object) returns array api_integration = \n {% if target.name == \"prod\" %} \n {{ log(\"Creating prod udf_bulk_decode_traces_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}bulk_decode_traces'\n {% elif target.name == \"dev\" %}\n {{ log(\"Creating dev udf_bulk_decode_traces_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}bulk_decode_traces'\n {% elif target.name == \"sbx\" %}\n {{ log(\"Creating stg udf_bulk_decode_traces_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}bulk_decode_traces'\n {% else %}\n {{ log(\"Creating default (dev) udf_bulk_decode_traces_v2\", info=True) }}\n {{ var(\"config\")[\"dev\"][\"API_INTEGRATION\"] }} AS 'https://{{ var(\"config\")[\"dev\"][\"EXTERNAL_FUNCTION_URI\"] | lower }}bulk_decode_traces'\n {% endif %};\n {% endset %}\n {{ log(sql, info=True) }}\n {% do adapter.execute(sql) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6808686, "supported_languages": null}, "macro.fsc_utils.decode_logs_history": {"name": "decode_logs_history", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/models.sql", "original_file_path": "macros/streamline/models.sql", "unique_id": "macro.fsc_utils.decode_logs_history", "macro_sql": "{% macro decode_logs_history(\n start,\n stop\n ) %}\n WITH look_back AS (\n SELECT\n block_number\n FROM\n {{ ref(\"_max_block_by_date\") }}\n qualify ROW_NUMBER() over (\n ORDER BY\n block_number DESC\n ) = 1\n )\nSELECT\n l.block_number,\n l._log_id,\n A.abi AS abi,\n OBJECT_CONSTRUCT(\n 'topics',\n l.topics,\n 'data',\n l.data,\n 'address',\n l.contract_address\n ) AS DATA\nFROM\n {{ ref(\"silver__logs\") }}\n l\n INNER JOIN {{ ref(\"silver__complete_event_abis\") }} A\n ON A.parent_contract_address = l.contract_address\n AND A.event_signature = l.topics[0]:: STRING\n AND l.block_number BETWEEN A.start_block\n AND A.end_block\nWHERE\n (\n l.block_number BETWEEN {{ start }}\n AND {{ stop }}\n )\n AND l.block_number <= (\n SELECT\n block_number\n FROM\n look_back\n )\n AND _log_id NOT IN (\n SELECT\n _log_id\n FROM\n {{ ref(\"streamline__complete_decode_logs\") }}\n WHERE\n (\n block_number BETWEEN {{ start }}\n AND {{ stop }}\n )\n AND block_number <= (\n SELECT\n block_number\n FROM\n look_back\n )\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.685154, "supported_languages": null}, "macro.fsc_utils.block_reorg": {"name": "block_reorg", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/models.sql", "original_file_path": "macros/streamline/models.sql", "unique_id": "macro.fsc_utils.block_reorg", "macro_sql": "{% macro block_reorg(reorg_model_list, hours) %}\n {% set models = reorg_model_list.split(\",\") %}\n {% for model in models %}\n {% set sql %}\n DELETE FROM\n {{ ref(model) }} t\n WHERE\n t._inserted_timestamp > DATEADD(\n 'hour',\n -{{ hours }},\n SYSDATE()\n )\n AND NOT EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__transactions') }}\n s\n WHERE s.block_number = t.block_number\n AND s.tx_hash = t.tx_hash\n );\n {% endset %}\n {% do run_query(sql) %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6860657, "supported_languages": null}, "macro.fsc_utils.streamline_external_table_query_v2": {"name": "streamline_external_table_query_v2", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/models.sql", "original_file_path": "macros/streamline/models.sql", "unique_id": "macro.fsc_utils.streamline_external_table_query_v2", "macro_sql": "{% macro streamline_external_table_query_v2(\n model,\n partition_function\n ) %}\n WITH meta AS (\n SELECT\n job_created_time AS _inserted_timestamp,\n file_name,\n {{ partition_function }} AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => '{{ source( \"bronze_streamline\", model) }}')\n ) A\n )\n SELECT\n s.*,\n b.file_name,\n _inserted_timestamp\n FROM\n {{ source(\n \"bronze_streamline\",\n model\n ) }}\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n WHERE\n b.partition_key = s.partition_key\n AND DATA :error IS NULL\n AND DATA is not null\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6866083, "supported_languages": null}, "macro.fsc_utils.streamline_external_table_FR_query_v2": {"name": "streamline_external_table_FR_query_v2", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/models.sql", "original_file_path": "macros/streamline/models.sql", "unique_id": "macro.fsc_utils.streamline_external_table_FR_query_v2", "macro_sql": "{% macro streamline_external_table_FR_query_v2(\n model,\n partition_function\n ) %}\n WITH meta AS (\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n {{ partition_function }} AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => '{{ source( \"bronze_streamline\", model) }}'\n )\n ) A\n )\nSELECT\n s.*,\n b.file_name,\n _inserted_timestamp\nFROM\n {{ source(\n \"bronze_streamline\",\n model\n ) }}\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\nWHERE\n b.partition_key = s.partition_key\n AND DATA :error IS NULL\n AND DATA is not null\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6871552, "supported_languages": null}, "macro.fsc_utils.drop_function": {"name": "drop_function", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/utils.sql", "original_file_path": "macros/streamline/utils.sql", "unique_id": "macro.fsc_utils.drop_function", "macro_sql": "{% macro drop_function(\n func_name,\n signature\n ) %}\n DROP FUNCTION IF EXISTS {{ func_name }}({{ fsc_utils.compile_signature(signature, drop_ = True) }});\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_utils.compile_signature"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6963603, "supported_languages": null}, "macro.fsc_utils.construct_api_route": {"name": "construct_api_route", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/utils.sql", "original_file_path": "macros/streamline/utils.sql", "unique_id": "macro.fsc_utils.construct_api_route", "macro_sql": "\n\n{%- macro construct_api_route(route) -%}\n 'https://{{ var(\"REST_API_ID_PROD\") if target.name == \"prod\" else var(\"REST_API_ID_DEV\") }}.execute-api.{{ var( aws_region, \"us-east-1\" ) }}.amazonaws.com/{{ target.name }}/{{ route }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.697012, "supported_languages": null}, "macro.fsc_utils.compile_signature": {"name": "compile_signature", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/utils.sql", "original_file_path": "macros/streamline/utils.sql", "unique_id": "macro.fsc_utils.compile_signature", "macro_sql": "{%- macro compile_signature(\n params,\n drop_ = False\n ) -%}\n {% for name,\n data_type in params -%}\n {% if drop_ %}\n {{ data_type -}}\n {% else %}\n {{ name ~ \" \" ~ data_type -}}\n {% endif -%}\n {%-if not loop.last -%},\n {%- endif -%}\n {% endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6977372, "supported_languages": null}, "macro.fsc_utils.create_sql_function": {"name": "create_sql_function", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/utils.sql", "original_file_path": "macros/streamline/utils.sql", "unique_id": "macro.fsc_utils.create_sql_function", "macro_sql": "{% macro create_sql_function(\n name_,\n signature,\n return_type,\n sql_,\n api_integration = none,\n options = none,\n func_type = none\n ) %}\n CREATE OR REPLACE {{ func_type }} FUNCTION {{ name_ }}(\n {{- fsc_utils.compile_signature(signature) }}\n )\n COPY GRANTS\n RETURNS {{ return_type }}\n {% if options -%}\n {{ options }}\n {% endif %}\n {%- if api_integration -%}\n api_integration = {{ api_integration }}\n AS {{ fsc_utils.construct_api_route(sql_) ~ \";\" }}\n {% else -%}\n AS\n $$\n {{ sql_ }}\n $$;\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fsc_utils.compile_signature", "macro.fsc_utils.construct_api_route"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.6988194, "supported_languages": null}, "macro.fsc_utils.create_or_drop_function_from_config": {"name": "create_or_drop_function_from_config", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/utils.sql", "original_file_path": "macros/streamline/utils.sql", "unique_id": "macro.fsc_utils.create_or_drop_function_from_config", "macro_sql": "{%- macro create_or_drop_function_from_config(\n config,\n drop_ = False\n ) -%}\n {% set name_ = config [\"name\"] %}\n {% set signature = config [\"signature\"] %}\n {% set return_type = config [\"return_type\"] %}\n {% set sql_ = config [\"sql\"] %}\n {% set options = config [\"options\"] %}\n {% set api_integration = config [\"api_integration\"] %}\n {% set func_type = config [\"func_type\"] %}\n\n {% if not drop_ -%}\n {{ fsc_utils.create_sql_function(\n name_ = name_,\n signature = signature,\n return_type = return_type,\n sql_ = sql_,\n options = options,\n api_integration = api_integration,\n func_type = func_type\n ) }}\n {%- else -%}\n {{ fsc_utils.drop_function(\n name_,\n signature = signature,\n ) }}\n {%- endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_utils.create_sql_function", "macro.fsc_utils.drop_function"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.700595, "supported_languages": null}, "macro.fsc_utils.if_data_call_function_v2": {"name": "if_data_call_function_v2", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/utils.sql", "original_file_path": "macros/streamline/utils.sql", "unique_id": "macro.fsc_utils.if_data_call_function_v2", "macro_sql": "{% macro if_data_call_function_v2(\n func,\n target,\n params\n ) %}\n {% if var(\n \"STREAMLINE_INVOKE_STREAMS\"\n ) %}\n {% if execute %}\n {{ log(\n \"Running macro `if_data_call_function`: Calling udf \" ~ func ~ \" with params: \\n\" ~ params | tojson(indent=2) ~ \"\\n on \" ~ target,\n True\n ) }}\n {% endif %}\n SELECT\n {{ func }}( parse_json($${{ params | tojson }}$$) )\n WHERE\n EXISTS(\n SELECT\n 1\n FROM\n {{ target }}\n LIMIT\n 1\n )\n {% else %}\n {% if execute %}\n {{ log(\n \"Running macro `if_data_call_function`: NOOP\",\n False\n ) }}\n {% endif %}\n SELECT\n NULL\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.701799, "supported_languages": null}, "macro.fsc_utils.if_data_call_wait": {"name": "if_data_call_wait", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/utils.sql", "original_file_path": "macros/streamline/utils.sql", "unique_id": "macro.fsc_utils.if_data_call_wait", "macro_sql": "{% macro if_data_call_wait() %}\n {% if var(\n \"STREAMLINE_INVOKE_STREAMS\"\n ) %}\n {% set query %}\n SELECT\n 1\n WHERE\n EXISTS(\n SELECT\n 1\n FROM\n {{ model.schema ~ \".\" ~ model.alias }}\n LIMIT\n 1\n ) {% endset %}\n {% if execute %}\n {% set results = run_query(\n query\n ) %}\n {% if results %}\n {{ log(\n \"Waiting...\",\n info = True\n ) }}\n\n {% set wait_query %}\n SELECT\n system$wait(\n {{ var(\n \"WAIT\",\n 400\n ) }}\n ) {% endset %}\n {% do run_query(wait_query) %}\n {% else %}\n SELECT\n NULL;\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7032256, "supported_languages": null}, "macro.fsc_utils.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/dbt/get_merge.sql", "original_file_path": "macros/dbt/get_merge.sql", "unique_id": "macro.fsc_utils.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {% set predicate_override = \"\" %}\n {% if incremental_predicates[0] == \"dynamic_range_predicate\" %}\n -- run some queries to dynamically determine the min + max of this 'date_column' in the new data\n {% set predicate_override = fsc_utils.dynamic_range_predicate(source, incremental_predicates[1], \"DBT_INTERNAL_DEST\") %}\n {% endif %}\n {% set predicates = [predicate_override] if predicate_override else incremental_predicates %}\n -- standard merge from here\n {% set merge_sql = dbt.get_merge_sql(target, source, unique_key, dest_columns, predicates) %}\n {{ return(merge_sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_utils.dynamic_range_predicate", "macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7048023, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7058024, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.70661, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7074032, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7081804, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7094924, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.711359, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7124887, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7134607, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7145932, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7153068, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7164512, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.718173, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7193162, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7206733, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.721584, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7222257, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7237427, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7256708, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7265341, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.727502, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7323766, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.735657, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7366319, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7373445, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7390983, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7412486, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7425601, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.744454, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7453432, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7463396, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.747794, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7500813, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.750935, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.752285, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7529132, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7535806, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7543302, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7552867, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7571428, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7590446, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7609422, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7641017, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.snowflake__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.765392, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7658415, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7662776, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7666829, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7670658, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7674317, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.768365, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7699265, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.snowflake__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.77217, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7731423, "supported_languages": null}, "macro.dbt_utils.redshift__width_bucket": {"name": "redshift__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.redshift__width_bucket", "macro_sql": "{% macro redshift__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is exactly at the bucket edge\n case\n when\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }} %\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7741504, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7745717, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7767105, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7805636, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7813873, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7818916, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7826169, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7838762, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7845328, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7852604, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.785833, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7861362, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7873058, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.788558, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7890506, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7897916, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7911112, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7929718, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7954705, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7962542, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.797904, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7989848, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.7997155, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8008943, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8021092, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8038936, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.808593, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.815865, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.817635, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8182313, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8194177, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8211403, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8217552, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8224852, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8245604, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8275282, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8284013, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{% if var('surrogate_key_treat_nulls_as_empty_strings', False) %}\n {% set default_null_value = \"\" %}\n{% else %}\n {% set default_null_value = '_dbt_utils_surrogate_key_null_'%}\n{% endif %}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.829786, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8307185, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8322868, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.default__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.832983, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.833277, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.833565, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.834136, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8346636, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.835474, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8362148, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8376117, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8385193, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.838929, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8400307, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8405683, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8409276, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8421922, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8431308, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8436818, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8441136, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8446195, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.845028, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8466413, "supported_languages": null}, "macro.dbt_snowflake_query_tags.set_query_tag": {"name": "set_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake_query_tags", "path": "macros/query_tags.sql", "original_file_path": "macros/query_tags.sql", "unique_id": "macro.dbt_snowflake_query_tags.set_query_tag", "macro_sql": "{% macro set_query_tag(extra = {}) -%}\n {{ return(adapter.dispatch('set_query_tag', 'dbt_snowflake_query_tags')(extra=extra)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake_query_tags.default__set_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8484254, "supported_languages": null}, "macro.dbt_snowflake_query_tags.default__set_query_tag": {"name": "default__set_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake_query_tags", "path": "macros/query_tags.sql", "original_file_path": "macros/query_tags.sql", "unique_id": "macro.dbt_snowflake_query_tags.default__set_query_tag", "macro_sql": "{% macro default__set_query_tag(extra = {}) -%}\n {# Get session level query tag #}\n {% set original_query_tag = get_current_query_tag() %}\n {% set original_query_tag_parsed = {} %}\n\n {% if original_query_tag %}\n {% if fromjson(original_query_tag) is mapping %}\n {% set original_query_tag_parsed = fromjson(original_query_tag) %}\n {% endif %}\n {% endif %}\n\n {# The env_vars_to_query_tag_list should contain an environment variables list to construct query tag dict #}\n {% set env_var_query_tags = {} %}\n {% if var('env_vars_to_query_tag_list', '') %} {# Get a list of env vars from env_vars_to_query_tag_list variable to add additional query tags #}\n {% for k in var('env_vars_to_query_tag_list') %}\n {% set v = env_var(k, '') %}\n {% do env_var_query_tags.update({k.lower(): v}) if v %}\n {% endfor %}\n {% endif %}\n\n {# Start with any model-configured dict #}\n {% set query_tag = config.get('query_tag', default={}) %}\n\n {# Handle the case where the query tag is a dict but quoted. This is required for Fusion. #}\n {% if query_tag is string and fromjson(query_tag[1:-1]) is mapping %}\n {% set query_tag = fromjson(query_tag[1:-1]) %}\n {% endif %}\n\n {% if query_tag is not mapping %}\n {% do log(\"dbt-snowflake-query-tags warning: the query_tag config value of '{}' is not a mapping type, so is being ignored. If you'd like to add additional query tag information, use a mapping type instead, or remove it to avoid this message.\".format(query_tag), True) %}\n {% set query_tag = {} %} {# If the user has set the query tag config as a non mapping type, start fresh #}\n {% endif %}\n\n {% do query_tag.update(original_query_tag_parsed) %}\n {% do query_tag.update(env_var_query_tags) %}\n {% do query_tag.update(extra) %}\n\n {%- do query_tag.update(\n app='dbt',\n dbt_snowflake_query_tags_version='2.5.0',\n ) -%}\n\n {% if thread_id %}\n {%- do query_tag.update(\n thread_id=thread_id\n ) -%}\n {% endif %}\n\n\n {# We have to bring is_incremental through here because its not available in the comment context #}\n {% if model.resource_type == 'model' %}\n {%- do query_tag.update(\n is_incremental=is_incremental()\n ) -%}\n {% endif %}\n\n {% set query_tag_json = tojson(query_tag) %}\n {{ log(\"Setting query_tag to '\" ~ query_tag_json ~ \"'. Will reset to '\" ~ original_query_tag ~ \"' after materialization.\") }}\n {% do run_query(\"alter session set query_tag = '{}'\".format(query_tag_json)) %}\n {{ return(original_query_tag)}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.get_current_query_tag", "macro.dbt.is_incremental", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8530285, "supported_languages": null}, "macro.dbt_snowflake_query_tags.unset_query_tag": {"name": "unset_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake_query_tags", "path": "macros/query_tags.sql", "original_file_path": "macros/query_tags.sql", "unique_id": "macro.dbt_snowflake_query_tags.unset_query_tag", "macro_sql": "{% macro unset_query_tag(original_query_tag) -%}\n {{ return(adapter.dispatch('unset_query_tag', 'dbt_snowflake_query_tags')(original_query_tag)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake_query_tags.default__unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8534698, "supported_languages": null}, "macro.dbt_snowflake_query_tags.default__unset_query_tag": {"name": "default__unset_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake_query_tags", "path": "macros/query_tags.sql", "original_file_path": "macros/query_tags.sql", "unique_id": "macro.dbt_snowflake_query_tags.default__unset_query_tag", "macro_sql": "{% macro default__unset_query_tag(original_query_tag) -%}\n {% if original_query_tag %}\n {{ log(\"Resetting query_tag to '\" ~ original_query_tag ~ \"'.\") }}\n {% do run_query(\"alter session set query_tag = '{}'\".format(original_query_tag)) %}\n {% else %}\n {{ log(\"No original query_tag, unsetting parameter.\") }}\n {% do run_query(\"alter session unset query_tag\") %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8542764, "supported_languages": null}, "macro.dbt_snowflake_query_tags.get_query_comment": {"name": "get_query_comment", "resource_type": "macro", "package_name": "dbt_snowflake_query_tags", "path": "macros/query_comment.sql", "original_file_path": "macros/query_comment.sql", "unique_id": "macro.dbt_snowflake_query_tags.get_query_comment", "macro_sql": "{% macro get_query_comment(node, extra = {}) %}\n {%- set comment_dict = extra -%}\n {%- do comment_dict.update(\n app='dbt',\n dbt_snowflake_query_tags_version='2.5.0',\n dbt_version=dbt_version,\n project_name=project_name,\n target_name=target.name,\n target_database=target.database,\n target_schema=target.schema,\n invocation_id=invocation_id,\n run_started_at=run_started_at.astimezone(modules.pytz.utc).isoformat(),\n full_refresh=flags.FULL_REFRESH,\n which=flags.WHICH,\n ) -%}\n\n {%- if node is not none -%}\n {%- do comment_dict.update(\n node_name=node.name,\n node_alias=node.alias,\n node_package_name=node.package_name,\n node_original_file_path=node.original_file_path,\n node_database=node.database,\n node_schema=node.schema,\n node_id=node.unique_id,\n node_resource_type=node.resource_type,\n node_meta=node.config.meta,\n node_tags=node.tags,\n ) -%}\n\n {%- if flags.INVOCATION_COMMAND -%}\n {%- do comment_dict.update(\n invocation_command=flags.INVOCATION_COMMAND\n ) -%}\n {%- endif -%}\n\n {%- if node.resource_type != ('seed') -%} {# Otherwise this throws an error saying 'Seeds cannot depend on other nodes.' #}\n {%- if node.refs is defined -%}\n {% set refs = [] %}\n {% for ref in node.refs %}\n {%- if (dbt_version.split('.')[0] | int > 1)\n or (dbt_version.split('.')[0] | int == 1 and dbt_version.split('.')[1] | int >= 5) -%}\n {%- do refs.append(ref.name) -%}\n {%- else -%}\n {%- do refs.append(ref[0]) -%}\n {%- endif -%}\n {% endfor %}\n {%- do comment_dict.update(\n node_refs=refs | unique | list\n ) -%}\n {%- endif -%}\n {%- endif -%}\n {%- if node.resource_type == 'model' -%}\n {%- do comment_dict.update(\n materialized=node.config.materialized,\n ) -%}\n {%- endif -%}\n\n {%- if node.raw_code is not none and local_md5 -%}\n {%- do comment_dict.update({\n \"raw_code_hash\": local_md5(node.raw_code)\n }) -%}\n {%- endif -%}\n {%- endif -%}\n\n {%- if env_var('DBT_CLOUD_PROJECT_ID', False) -%}\n {%- do comment_dict.update(\n dbt_cloud_project_id=env_var('DBT_CLOUD_PROJECT_ID')\n ) -%}\n {%- endif -%}\n\n {%- if env_var('DBT_CLOUD_JOB_ID', False) -%}\n {%- do comment_dict.update(\n dbt_cloud_job_id=env_var('DBT_CLOUD_JOB_ID')\n ) -%}\n {%- endif -%}\n\n {%- if env_var('DBT_CLOUD_RUN_ID', False) -%}\n {%- do comment_dict.update(\n dbt_cloud_run_id=env_var('DBT_CLOUD_RUN_ID')\n ) -%}\n {%- endif -%}\n\n {%- if env_var('DBT_CLOUD_RUN_REASON_CATEGORY', False) -%}\n {%- do comment_dict.update(\n dbt_cloud_run_reason_category=env_var('DBT_CLOUD_RUN_REASON_CATEGORY')\n ) -%}\n {%- endif -%}\n\n {%- if env_var('DBT_CLOUD_RUN_REASON', False) -%}\n {%- do comment_dict.update(\n dbt_cloud_run_reason=env_var('DBT_CLOUD_RUN_REASON')\n ) -%}\n {%- endif -%}\n\n {{ return(tojson(comment_dict)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8622594, "supported_languages": null}, "macro.fsc_evm.streamline_decoded_traces_requests": {"name": "streamline_decoded_traces_requests", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/decoder_package/streamline/streamline_requests_decoder.sql", "original_file_path": "macros/decoder_package/streamline/streamline_requests_decoder.sql", "unique_id": "macro.fsc_evm.streamline_decoded_traces_requests", "macro_sql": "{% macro streamline_decoded_traces_requests(\n start,\n stop,\n model_type,\n testing_limit\n ) %}\n WITH look_back AS (\n SELECT\n block_number\n FROM\n {{ ref(\"_24_hour_lookback\") }}\n )\nSELECT\n t.block_number,\n t.tx_hash,\n t.trace_index,\n concat_ws(\n '-',\n t.block_number,\n t.tx_position,\n concat(t.type,'_',t.trace_address)\n ) as _call_id,\n A.abi AS abi,\n A.function_name AS function_name,\n CASE\n WHEN TYPE = 'DELEGATECALL' THEN from_address\n ELSE to_address\n END AS abi_address,\n t.input AS input,\n COALESCE(\n t.output,\n '0x'\n ) AS output\nFROM\n {{ ref(\"core__fact_traces\") }}\n t\n INNER JOIN {{ ref(\"silver__complete_function_abis\") }} A\n ON A.parent_contract_address = abi_address\n AND LEFT(\n t.input,\n 10\n ) = LEFT(\n A.function_signature,\n 10\n )\n AND t.block_number BETWEEN A.start_block\n AND A.end_block\nWHERE\n {% if model_type == 'realtime' %}\n t.block_number >= (\n SELECT\n block_number\n FROM\n look_back\n )\n AND t.block_number IS NOT NULL\n AND t.block_timestamp >= DATEADD('day', -2, CURRENT_DATE())\n AND _call_id NOT IN (\n SELECT\n _call_id\n FROM\n {{ ref(\"streamline__decoded_traces_complete\") }}\n WHERE\n block_number >= (\n SELECT\n block_number\n FROM\n look_back\n )\n AND _inserted_timestamp >= DATEADD('day', -2, CURRENT_DATE())) {% elif model_type == 'history' %}\n (\n t.block_number BETWEEN {{ start }}\n AND {{ stop }}\n )\n AND t.block_number < (\n SELECT\n block_number\n FROM\n look_back\n )\n AND t.block_number IS NOT NULL\n AND _call_id NOT IN (\n SELECT\n _call_id\n FROM\n {{ ref(\"streamline__decoded_traces_complete\") }}\n WHERE\n (\n block_number BETWEEN {{ start }}\n AND {{ stop }}\n )\n AND block_number < (\n SELECT\n block_number\n FROM\n look_back\n )\n )\n {% endif %}\n {% if testing_limit is not none %}\n LIMIT {{ testing_limit }} \n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.865438, "supported_languages": null}, "macro.fsc_evm.decoded_logs_history": {"name": "decoded_logs_history", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/decoder_package/streamline/decoded_logs_history.sql", "original_file_path": "macros/decoder_package/streamline/decoded_logs_history.sql", "unique_id": "macro.fsc_evm.decoded_logs_history", "macro_sql": "{% macro decoded_logs_history(backfill_mode=false) %}\n\n {% set vars = return_vars() %}\n\n {%- set params = {\n \"sql_limit\": vars.DECODER_SL_DECODED_LOGS_HISTORY_SQL_LIMIT,\n \"producer_batch_size\": vars.DECODER_SL_DECODED_LOGS_HISTORY_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.DECODER_SL_DECODED_LOGS_HISTORY_WORKER_BATCH_SIZE\n } -%}\n\n {% set wait_time = vars.DECODER_SL_DECODED_LOGS_HISTORY_WAIT_SECONDS %}\n\n {% set find_months_query %}\n SELECT \n DISTINCT date_trunc('month', block_timestamp)::date as month\n FROM {{ ref('core__fact_blocks') }}\n ORDER BY month ASC\n {% endset %}\n\n {% set results = run_query(find_months_query) %}\n\n {% if execute %}\n {% set months = results.columns[0].values() %}\n \n {% for month in months %}\n {% set view_name = 'decoded_logs_history_' ~ month.strftime('%Y_%m') %}\n \n {% set create_view_query %}\n create or replace view streamline.{{view_name}} as (\n WITH target_blocks AS (\n SELECT \n block_number\n FROM {{ ref('core__fact_blocks') }}\n WHERE date_trunc('month', block_timestamp) = '{{month}}'::timestamp\n ),\n new_abis AS (\n SELECT \n abi,\n parent_contract_address,\n event_signature,\n start_block,\n end_block\n FROM {{ ref('silver__complete_event_abis') }} \n {% if not backfill_mode %}\n WHERE inserted_timestamp > dateadd('day', -30, sysdate())\n {% endif %}\n ),\n existing_logs_to_exclude AS (\n SELECT _log_id\n FROM {{ ref('streamline__decoded_logs_complete') }} l\n INNER JOIN target_blocks b using (block_number)\n ),\n candidate_logs AS (\n SELECT \n l.block_number,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n l.topics,\n l.data,\n concat(l.tx_hash::string, '-', l.event_index::string) as _log_id\n FROM target_blocks b\n INNER JOIN {{ ref('core__fact_event_logs') }} l using (block_number)\n WHERE date_trunc('month', l.block_timestamp) = '{{month}}'::timestamp and l.tx_succeeded\n )\n SELECT\n l.block_number,\n l._log_id,\n A.abi,\n OBJECT_CONSTRUCT(\n 'topics', l.topics,\n 'data', l.data,\n 'address', l.contract_address\n ) AS data\n FROM candidate_logs l\n INNER JOIN new_abis A\n ON A.parent_contract_address = l.contract_address\n AND A.event_signature = l.topics[0]::STRING\n AND l.block_number BETWEEN A.start_block AND A.end_block\n WHERE NOT EXISTS (\n SELECT 1 \n FROM existing_logs_to_exclude e \n WHERE e._log_id = l._log_id\n )\n LIMIT {{ params.sql_limit }}\n )\n {% endset %}\n\n {# Create the view #}\n {% do run_query(create_view_query) %}\n {{ log(\"Created view for month \" ~ month.strftime('%Y-%m'), info=True) }}\n\n {% if var(\"STREAMLINE_INVOKE_STREAMS\", false) %}\n {# Check if rows exist first #}\n {% set check_rows_query %}\n SELECT EXISTS(SELECT 1 FROM streamline.{{view_name}} LIMIT 1)\n {% endset %}\n \n {% set results = run_query(check_rows_query) %}\n {% set has_rows = results.columns[0].values()[0] %}\n\n {% if has_rows %}\n {# Invoke streamline, if rows exist to decode #}\n {% set decode_query %}\n SELECT\n streamline.udf_bulk_decode_logs_v2(\n PARSE_JSON(\n $${ \"external_table\": \"decoded_logs\",\n \"producer_batch_size\": {{ params.producer_batch_size }},\n \"sql_limit\": {{ params.sql_limit }},\n \"sql_source\": \"{{view_name}}\",\n \"worker_batch_size\": {{ params.worker_batch_size }} }$$\n )\n );\n {% endset %}\n\n {% do run_query(decode_query) %}\n {{ log(\"Triggered decoding for month \" ~ month.strftime('%Y-%m'), info=True) }}\n\n {# Call wait since we actually did some decoding #}\n {% do run_query(\"call system$wait(\" ~ wait_time ~ \")\") %}\n {{ log(\"Completed wait after decoding for month \" ~ month.strftime('%Y-%m'), info=True) }}\n {% else %}\n {{ log(\"No rows to decode for month \" ~ month.strftime('%Y-%m'), info=True) }}\n {% endif %}\n {% endif %}\n \n {% endfor %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8733532, "supported_languages": null}, "macro.fsc_evm.run_decoded_logs_history": {"name": "run_decoded_logs_history", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/decoder_package/streamline/run_decoded_logs_history.sql", "original_file_path": "macros/decoder_package/streamline/run_decoded_logs_history.sql", "unique_id": "macro.fsc_evm.run_decoded_logs_history", "macro_sql": "{% macro run_decoded_logs_history() %}\n\n{% set vars = return_vars() %}\n\n{% set check_for_new_user_abis_query %}\n select 1\n from {{ ref('silver__user_verified_abis') }}\n where _inserted_timestamp::date = sysdate()::date\n and dayname(sysdate()) <> 'Sat'\n{% endset %}\n\n{% set results = run_query(check_for_new_user_abis_query) %}\n\n{% if execute %}\n {% set new_user_abis = results.columns[0].values()[0] %}\n \n {% if new_user_abis %}\n {% set invoke_workflow_query %}\n SELECT\n github_actions.workflow_dispatches(\n 'FlipsideCrypto',\n '{{ vars.GLOBAL_PROJECT_NAME.lower() }}' || '-models',\n 'dbt_run_streamline_decoder_history.yml',\n NULL\n )\n {% endset %}\n \n {% do run_query(invoke_workflow_query) %}\n {% endif %}\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8752482, "supported_languages": null}, "macro.fsc_evm.streamline_external_table_query_decoder": {"name": "streamline_external_table_query_decoder", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/decoder_package/bronze/streamline_external_table_queries_decoder.sql", "original_file_path": "macros/decoder_package/bronze/streamline_external_table_queries_decoder.sql", "unique_id": "macro.fsc_evm.streamline_external_table_query_decoder", "macro_sql": "{% macro streamline_external_table_query_decoder(\n source_name,\n source_version=''\n ) %}\n \n {% if source_version != '' %}\n {% set source_version = '_' ~ source_version.lower() %}\n {% endif %}\n \n WITH meta AS (\n SELECT\n job_created_time AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 6), '_', 1) AS INTEGER) AS _partition_by_block_number,\n TO_DATE(\n concat_ws('-', SPLIT_PART(file_name, '/', 3), SPLIT_PART(file_name, '/', 4), SPLIT_PART(file_name, '/', 5))\n ) AS _partition_by_created_date\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => '{{ source( \"bronze_streamline\", source_name ~ source_version) }}')\n ) A\n )\n SELECT\n block_number,\n id :: STRING AS id,\n DATA,\n metadata,\n b.file_name,\n _inserted_timestamp,\n s._partition_by_block_number AS _partition_by_block_number,\n s._partition_by_created_date AS _partition_by_created_date\n FROM\n {{ source(\n \"bronze_streamline\",\n source_name ~ source_version\n ) }}\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b._partition_by_block_number = s._partition_by_block_number\n AND b._partition_by_created_date = s._partition_by_created_date\n WHERE\n b._partition_by_block_number = s._partition_by_block_number\n AND b._partition_by_created_date = s._partition_by_created_date\n AND s._partition_by_created_date >= DATEADD('day', -2, CURRENT_TIMESTAMP())\n AND DATA :error IS NULL\n AND DATA IS NOT NULL\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.877604, "supported_languages": null}, "macro.fsc_evm.streamline_external_table_query_decoder_fr": {"name": "streamline_external_table_query_decoder_fr", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/decoder_package/bronze/streamline_external_table_queries_decoder.sql", "original_file_path": "macros/decoder_package/bronze/streamline_external_table_queries_decoder.sql", "unique_id": "macro.fsc_evm.streamline_external_table_query_decoder_fr", "macro_sql": "{% macro streamline_external_table_query_decoder_fr(\n source_name,\n source_version=''\n ) %}\n \n {% if source_version != '' %}\n {% set source_version = '_' ~ source_version.lower() %}\n {% endif %} \n \n WITH meta AS (\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 6), '_', 1) AS INTEGER) AS _partition_by_block_number,\n TO_DATE(\n concat_ws('-', SPLIT_PART(file_name, '/', 3), SPLIT_PART(file_name, '/', 4), SPLIT_PART(file_name, '/', 5))\n ) AS _partition_by_created_date\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => '{{ source( \"bronze_streamline\", source_name ~ source_version) }}'\n )\n ) A\n )\nSELECT\n block_number,\n id :: STRING AS id,\n DATA,\n metadata,\n b.file_name,\n _inserted_timestamp,\n s._partition_by_block_number AS _partition_by_block_number,\n s._partition_by_created_date AS _partition_by_created_date\nFROM\n {{ source(\n \"bronze_streamline\",\n source_name ~ source_version\n ) }}\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b._partition_by_block_number = s._partition_by_block_number\n AND b._partition_by_created_date = s._partition_by_created_date\nWHERE\n b._partition_by_block_number = s._partition_by_block_number\n AND b._partition_by_created_date = s._partition_by_created_date\n AND DATA :error IS NULL\n AND DATA IS NOT NULL\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8785126, "supported_languages": null}, "macro.fsc_evm.test_find_missing_decoded_logs": {"name": "test_find_missing_decoded_logs", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/decoder_package/tests/find_missing_decoded_logs.sql", "original_file_path": "macros/decoder_package/tests/find_missing_decoded_logs.sql", "unique_id": "macro.fsc_evm.test_find_missing_decoded_logs", "macro_sql": "{% test find_missing_decoded_logs(model, fact_logs_model, wrapped_asset_address) %}\n\n{% set vars = return_vars() %}\n\nSELECT\n l.block_number,\n l.fact_event_logs_id\nFROM\n {{ fact_logs_model }}\n l\n LEFT JOIN {{ model }}\n d\n ON d.ez_decoded_event_logs_id = l.fact_event_logs_id\nWHERE\n l.tx_succeeded\n AND l.contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n AND l.topics [0] :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' -- Transfer\n AND d.ez_decoded_event_logs_id IS NULL\n AND l.block_timestamp < (SELECT MAX(block_timestamp) - INTERVAL '2 hours' FROM {{ fact_logs_model }})\n{% endtest %}", "depends_on": {"macros": ["macro.fsc_evm.return_vars"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.879306, "supported_languages": null}, "macro.fsc_evm.test_decoded_logs_exist": {"name": "test_decoded_logs_exist", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/decoder_package/tests/decoded_logs_exist.sql", "original_file_path": "macros/decoder_package/tests/decoded_logs_exist.sql", "unique_id": "macro.fsc_evm.test_decoded_logs_exist", "macro_sql": "{% test decoded_logs_exist(model, fact_logs_model) %}\nSELECT\n d.block_number,\n d.ez_decoded_event_logs_id\nFROM\n {{ model }}\n d\nWHERE\n NOT EXISTS (\n SELECT\n 1\n FROM\n {{ fact_logs_model }}\n l\n WHERE\n d.ez_decoded_event_logs_id = l.fact_event_logs_id\n AND d.contract_address = l.contract_address\n AND d.topics [0] :: STRING = l.topics [0] :: STRING\n ) \n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8797739, "supported_languages": null}, "macro.fsc_evm.streamline_external_table_query": {"name": "streamline_external_table_query", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/main_package/bronze/streamline_external_table_queries.sql", "original_file_path": "macros/main_package/bronze/streamline_external_table_queries.sql", "unique_id": "macro.fsc_evm.streamline_external_table_query", "macro_sql": "{% macro streamline_external_table_query(\n source_name,\n source_version='',\n partition_function=\"CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER)\",\n error_code=false,\n balances=false,\n block_number=true,\n tx_hash=false,\n contract_address=false,\n data_not_null=true\n ) %}\n\n {% if source_version != '' %}\n {% set source_version = '_' ~ source_version.lower() %}\n {% endif %}\n\n WITH meta AS (\n SELECT\n job_created_time AS _inserted_timestamp,\n file_name,\n {{ partition_function }} AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => '{{ source( \"bronze_streamline\", source_name ~ source_version) }}')\n ) A\n )\n SELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n {% if balances %}, --for balances\n r.block_timestamp :: TIMESTAMP AS block_timestamp\n {% endif %}\n\n {% if block_number %}, --for streamline 2.0+\n COALESCE(\n s.value :\"BLOCK_NUMBER\" :: STRING,\n s.metadata :request :\"data\" :id :: STRING,\n PARSE_JSON(\n s.metadata :request :\"data\"\n ) :id :: STRING\n ) :: INT AS block_number\n {% endif %}\n\n {% if contract_address %}, --for contract_abis\n COALESCE(\n VALUE :\"CONTRACT_ADDRESS\",\n VALUE :\"contract_address\"\n ) :: STRING AS contract_address\n {% endif %}\n\n {% if tx_hash %}, --for receipts_by_hash\n s.value :\"TX_HASH\" :: STRING AS tx_hash\n {% endif %}\n FROM\n {{ source(\n \"bronze_streamline\",\n source_name ~ source_version\n ) }}\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n\n {% if balances %}\n JOIN {{ ref('_block_ranges') }}\n r\n ON r.block_number = COALESCE(\n s.value :\"BLOCK_NUMBER\" :: INT,\n s.value :\"block_number\" :: INT\n )\n {% endif %}\n WHERE\n b.partition_key = s.partition_key\n {% if data_not_null %}\n {% if error_code %}\n AND DATA :error :code IS NULL\n {% else %}\n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n {% endif %}\n AND DATA IS NOT NULL\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8864284, "supported_languages": null}, "macro.fsc_evm.streamline_external_table_query_fr": {"name": "streamline_external_table_query_fr", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/main_package/bronze/streamline_external_table_queries.sql", "original_file_path": "macros/main_package/bronze/streamline_external_table_queries.sql", "unique_id": "macro.fsc_evm.streamline_external_table_query_fr", "macro_sql": "{% macro streamline_external_table_query_fr(\n source_name,\n source_version='',\n partition_function=\"CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER)\",\n partition_join_key='partition_key',\n error_code=false,\n balances=false,\n block_number=true,\n tx_hash=false,\n contract_address=false,\n data_not_null=true\n ) %}\n\n {% if source_version != '' %}\n {% set source_version = '_' ~ source_version.lower() %}\n {% endif %}\n \n WITH meta AS (\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n {{ partition_function }} AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => '{{ source( \"bronze_streamline\", source_name ~ source_version) }}'\n )\n ) A\n )\nSELECT\n s.*,\n b.file_name,\n b._inserted_timestamp\n\n {% if balances %}, --for balances\n r.block_timestamp :: TIMESTAMP AS block_timestamp\n{% endif %}\n\n{% if block_number %}, --for streamline 2.0+\n COALESCE(\n s.value :\"BLOCK_NUMBER\" :: STRING,\n s.value :\"block_number\" :: STRING,\n s.metadata :request :\"data\" :id :: STRING,\n PARSE_JSON(\n s.metadata :request :\"data\"\n ) :id :: STRING\n ) :: INT AS block_number\n{% endif %}\n\n{% if contract_address %}, --for contract_abis\n COALESCE(\n VALUE :\"CONTRACT_ADDRESS\",\n VALUE :\"contract_address\"\n ) :: STRING AS contract_address\n{% endif %}\n\n{% if tx_hash %}, --for receipts_by_hash\n s.value :\"TX_HASH\" :: STRING AS tx_hash\n{% endif %}\nFROM\n {{ source(\n \"bronze_streamline\",\n source_name ~ source_version\n ) }}\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.{{ partition_join_key }}\n\n {% if balances %}\n JOIN {{ ref('_block_ranges') }}\n r\n ON r.block_number = COALESCE(\n s.value :\"BLOCK_NUMBER\" :: INT,\n s.value :\"block_number\" :: INT\n )\n {% endif %}\nWHERE\n b.partition_key = s.{{ partition_join_key }}\n {% if data_not_null %}\n {% if error_code %}\n AND DATA :error :code IS NULL\n {% else %}\n AND (DATA :error IS NULL OR DATA :error :: STRING IS NULL)\n {% endif %}\n AND DATA IS NOT NULL\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8887763, "supported_languages": null}, "macro.fsc_evm.test_txs_have_traces": {"name": "test_txs_have_traces", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/main_package/tests/txs_have_traces.sql", "original_file_path": "macros/main_package/tests/txs_have_traces.sql", "unique_id": "macro.fsc_evm.test_txs_have_traces", "macro_sql": "{% test txs_have_traces(\n model,\n transactions_model\n) %}\n\n{% set vars = return_vars() %}\n\nWITH txs_with_traces AS (\n\nSELECT\n block_number,\n tx_hash,\n tx_position\nFROM\n {{ transactions_model }}\n txs\n LEFT JOIN {{ model }}\n tr USING (\n block_number,\n tx_hash,\n tx_position\n )\nWHERE\n (\n tr.tx_hash IS NULL\n OR tr.tx_position IS NULL\n OR tr.block_number IS NULL\n )\n AND txs.from_address <> '0x0000000000000000000000000000000000000000'\n AND txs.to_address <> '0x0000000000000000000000000000000000000000' \n {% if vars.GLOBAL_PROJECT_NAME == 'arbitrum' %}\n AND txs.to_address <> '0x000000000000000000000000000000000000006e'\n AND txs.block_number > 22207817\n {% endif %}\n {% if vars.GLOBAL_PROJECT_NAME == 'boba' %}\n AND txs.block_number > 1041894\n {% endif %}\n)\n\nSELECT\n *\nFROM\n txs_with_traces\nWHERE\n (\n SELECT\n COUNT(DISTINCT block_number) >= {{ vars.MAIN_CORE_GOLD_TRACES_TEST_ERROR_THRESHOLD }}\n FROM\n txs_with_traces\n )\n\n{% endtest %}", "depends_on": {"macros": ["macro.fsc_evm.return_vars"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.890108, "supported_languages": null}, "macro.fsc_evm.test_sequence_gaps": {"name": "test_sequence_gaps", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/main_package/tests/sequence_gaps.sql", "original_file_path": "macros/main_package/tests/sequence_gaps.sql", "unique_id": "macro.fsc_evm.test_sequence_gaps", "macro_sql": "{% test sequence_gaps(\n model,\n partition_by,\n column_name\n) %}\n{%- set partition_sql = partition_by | join(\", \") -%}\n{%- set previous_column = \"prev_\" ~ column_name -%}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\nWITH source AS (\n SELECT\n {{ partition_sql + \",\" if partition_sql }}\n {{ column_name }},\n LAG(\n {{ column_name }},\n 1\n ) over (\n {{ \"PARTITION BY \" ~ partition_sql if partition_sql }}\n ORDER BY\n {{ column_name }} ASC\n ) AS {{ previous_column }}\n FROM\n {{ model }}\n)\nSELECT\n {{ partition_sql + \",\" if partition_sql }}\n {{ previous_column }},\n {{ column_name }},\n {{ column_name }} - {{ previous_column }}\n - 1 AS gap\nFROM\n source\nWHERE\n {{ column_name }} - {{ previous_column }} <> 1\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED and column_name | lower == 'block_number' %}\n AND {{ column_name }} NOT IN (\n SELECT block_number :: INT + 1\n FROM observability.exclusion_list\n UNION ALL\n SELECT block_number :: INT - 1\n FROM observability.exclusion_list\n )\n{% endif %}\nORDER BY\n gap DESC \n{% endtest %}", "depends_on": {"macros": ["macro.fsc_evm.return_vars"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.89255, "supported_languages": null}, "macro.fsc_evm.test_events_match_txs": {"name": "test_events_match_txs", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/main_package/tests/events_match_txs.sql", "original_file_path": "macros/main_package/tests/events_match_txs.sql", "unique_id": "macro.fsc_evm.test_events_match_txs", "macro_sql": "{% test events_match_txs(\n model,\n transactions_model\n) %}\nWITH logs AS (\n SELECT\n DISTINCT block_number,\n tx_hash,\n tx_position\n FROM\n {{ model }}\n),\nmissing_transactions AS (\n SELECT\n logs.block_number,\n logs.tx_hash,\n logs.tx_position\n FROM\n logs\n LEFT JOIN {{ transactions_model }}\n txs USING (\n block_number,\n tx_hash,\n tx_position\n )\n WHERE\n txs.tx_hash IS NULL\n OR txs.tx_position IS NULL\n OR txs.block_number IS NULL\n)\nSELECT\n *\nFROM\n missing_transactions \n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.893103, "supported_languages": null}, "macro.fsc_evm.test_txs_match_blocks": {"name": "test_txs_match_blocks", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/main_package/tests/txs_match_blocks.sql", "original_file_path": "macros/main_package/tests/txs_match_blocks.sql", "unique_id": "macro.fsc_evm.test_txs_match_blocks", "macro_sql": "{% test txs_match_blocks(\n model,\n blocks_model\n) %}\nWITH count_txs AS (\n SELECT\n block_number,\n COUNT(*) AS record_count\n FROM\n {{ model }}\n GROUP BY\n ALL\n),\nblock_txs AS (\n SELECT\n block_number,\n tx_count AS expected_count\n FROM\n {{ blocks_model }}\n)\nSELECT\n block_number,\n record_count AS actual_count,\n expected_count\nFROM\n block_txs\n LEFT JOIN count_txs USING (block_number)\nWHERE\n (record_count != expected_count\n OR expected_count IS NULL)\n AND block_number != 0\n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8936, "supported_languages": null}, "macro.fsc_evm.unverify_stablecoins": {"name": "unverify_stablecoins", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/curated_package/unverify_stablecoins.sql", "original_file_path": "macros/curated_package/unverify_stablecoins.sql", "unique_id": "macro.fsc_evm.unverify_stablecoins", "macro_sql": "{% macro unverify_stablecoins() %}\n {% if var('HEAL_MODEL', false) and is_incremental() %}\n DELETE FROM {{ this }} \n WHERE contract_address NOT IN (\n SELECT token_address\n FROM {{ ref('price__ez_asset_metadata') }}\n WHERE\n is_verified\n AND asset_id IS NOT NULL\n AND token_address IS NOT NULL\n );\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.is_incremental"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8943453, "supported_languages": null}, "macro.fsc_evm.curated_contract_mapping": {"name": "curated_contract_mapping", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/curated_package/curated_contract_mapping.sql", "original_file_path": "macros/curated_package/curated_contract_mapping.sql", "unique_id": "macro.fsc_evm.curated_contract_mapping", "macro_sql": "{% macro curated_contract_mapping(contract_mapping_dict) %}\n SELECT * FROM VALUES\n {% set all_contracts = [] %}\n {% for protocol, versions in contract_mapping_dict.items() %}\n {% for version, version_info in versions.items() %}\n {% for type, type_info in version_info.items() %}\n {% if type_info is string %}\n {% set _ = all_contracts.append((type_info, protocol, version, type)) %}\n {% else %}\n {% for contract_address in type_info %}\n {% set _ = all_contracts.append((contract_address, protocol, version, type)) %}\n {% endfor %}\n {% endif %}\n {% endfor %}\n {% endfor %}\n {% endfor %}\n {% for contract_tuple in all_contracts %}\n ('{{ contract_tuple[0] }}', '{{ contract_tuple[1] }}', '{{ contract_tuple[2] }}', '{{ contract_tuple[3] }}')\n {%- if not loop.last -%},{%- endif %}\n {% endfor %}\n AS t(contract_address, protocol, version, type)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8972712, "supported_languages": null}, "macro.fsc_evm.remove_test_tokens": {"name": "remove_test_tokens", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/curated_package/remove_test_tokens.sql", "original_file_path": "macros/curated_package/remove_test_tokens.sql", "unique_id": "macro.fsc_evm.remove_test_tokens", "macro_sql": "{% macro remove_test_tokens() %}\n {% if var('HEAL_MODEL', false) %}\n {% if model.name == 'silver_lending__complete_lending_liquidations' %}\n DELETE FROM {{ this }}\n WHERE (collateral_token NOT IN (\n SELECT contract_address\n FROM {{ ref('silver__relevant_contracts') }}\n WHERE total_event_count > 250\n )\n OR debt_token NOT IN (\n SELECT contract_address\n FROM {{ ref('silver__relevant_contracts') }}\n WHERE total_event_count > 250\n ));\n {% else %}\n DELETE FROM {{ this }}\n WHERE token_address NOT IN (\n SELECT contract_address\n FROM {{ ref('silver__relevant_contracts') }}\n WHERE total_event_count > 250\n );\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8985739, "supported_languages": null}, "macro.fsc_evm.test_stablecoins_is_imputed_false": {"name": "test_stablecoins_is_imputed_false", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/curated_package/tests/stablecoins_imputed.sql", "original_file_path": "macros/curated_package/tests/stablecoins_imputed.sql", "unique_id": "macro.fsc_evm.test_stablecoins_is_imputed_false", "macro_sql": "{% test stablecoins_is_imputed_false(model, lookback_days=7) %}\n\nWITH active_pairs AS (\n SELECT DISTINCT\n contract_address,\n address\n FROM\n {{ model }}\n WHERE\n block_date >= DATEADD('day', -{{ lookback_days }}, SYSDATE())\n AND not is_imputed\n),\nfirst_records AS (\n SELECT\n m.contract_address,\n m.address,\n m.is_imputed,\n ROW_NUMBER() OVER (\n PARTITION BY m.contract_address, m.address\n ORDER BY m.block_date ASC\n ) AS row_num\n FROM {{ model }} m\n INNER JOIN active_pairs a\n ON m.contract_address = a.contract_address\n AND m.address = a.address\n)\nSELECT\n contract_address,\n address,\n is_imputed\nFROM first_records\nWHERE row_num = 1\n AND is_imputed\n\n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.8992524, "supported_languages": null}, "macro.fsc_evm.test_curated_recency_defi": {"name": "test_curated_recency_defi", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/curated_package/tests/curated_recency.sql", "original_file_path": "macros/curated_package/tests/curated_recency.sql", "unique_id": "macro.fsc_evm.test_curated_recency_defi", "macro_sql": "{% test curated_recency_defi(\n model,\n threshold_days=30,\n percent_delta_threshold=10,\n type=''\n) %}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\nWITH source AS (\n SELECT\n platform,\n MAX(block_timestamp) AS latest_timestamp,\n SYSDATE() AS sys_ts,\n DATEADD('day', -{{ threshold_days }}, SYSDATE()) AS threshold_ts,\n COUNT(\n CASE\n WHEN block_timestamp >= threshold_ts THEN 1 \n END) AS current_period_evt,\n CEIL(\n (\n COUNT(\n CASE\n WHEN block_timestamp >= DATEADD('day', -180, SYSDATE())\n AND block_timestamp < threshold_ts THEN 1\n END\n ) / 150.0\n ) * 30\n ) AS rolling_avg_evt,\n CASE\n WHEN rolling_avg_evt = 0 THEN 0\n ELSE ROUND((current_period_evt / rolling_avg_evt) * 100, 2)\n END AS percent_delta,\n '{{ type }}' AS type\n FROM\n {{ model }}\n GROUP BY\n 1\n )\n SELECT\n platform,\n latest_timestamp,\n sys_ts,\n threshold_ts,\n current_period_evt,\n rolling_avg_evt,\n percent_delta,\n type\n FROM\n source\n WHERE\n (latest_timestamp < threshold_ts \n OR (percent_delta < {{ percent_delta_threshold }} AND percent_delta <> 0))\n {% if type == 'dex_swaps' %}\n AND platform NOT IN ('{{ vars.CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST | join(\"', '\") }}')\n {% elif type == 'dex_lp_actions' %}\n AND platform NOT IN ('{{ vars.CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST | join(\"', '\") }}')\n {% elif type == 'bridge' %}\n AND platform NOT IN ('{{ vars.CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST | join(\"', '\") }}')\n {% elif type == 'lending' %}\n AND platform NOT IN ('{{ vars.CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST | join(\"', '\") }}')\n {% endif %}\n-- failure to meet threshold requires manual review to determine if\n-- the protocol has newly deployed contracts, stale contracts, etc.\n-- if this is the case, the test should not apply to the relevant model(s)\n-- percent_delta shows current period performance vs rolling average\n{% endtest %}", "depends_on": {"macros": ["macro.fsc_evm.return_vars"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.9018126, "supported_languages": null}, "macro.fsc_evm.test_stablecoins_date_gaps": {"name": "test_stablecoins_date_gaps", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/curated_package/tests/stablecoins_date_gaps.sql", "original_file_path": "macros/curated_package/tests/stablecoins_date_gaps.sql", "unique_id": "macro.fsc_evm.test_stablecoins_date_gaps", "macro_sql": "{% test stablecoins_date_gaps(model, lookback_days=7) %}\n\nWITH recent_data AS (\n SELECT\n contract_address,\n address,\n block_date\n FROM\n {{ model }}\n WHERE\n block_date >= DATEADD('day', -{{ lookback_days }}, SYSDATE())\n),\nsource AS (\n SELECT\n contract_address,\n address,\n block_date,\n LAG(block_date, 1) OVER (\n PARTITION BY contract_address, address\n ORDER BY block_date ASC\n ) AS prev_block_date\n FROM\n recent_data\n)\nSELECT\n contract_address,\n address,\n prev_block_date,\n block_date,\n DATEDIFF(day, prev_block_date, block_date) - 1 AS gap_days\nFROM\n source\nWHERE\n DATEDIFF(day, prev_block_date, block_date) > 1\nORDER BY\n gap_days DESC\n\n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.9024236, "supported_languages": null}, "macro.fsc_evm.create_udf_mapping_slot": {"name": "create_udf_mapping_slot", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/balances_package/create_udf_mapping_slot.sql", "original_file_path": "macros/balances_package/create_udf_mapping_slot.sql", "unique_id": "macro.fsc_evm.create_udf_mapping_slot", "macro_sql": "{% macro create_udf_mapping_slot() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\", false) and execute %}\n {% set create_udf_sql %}\n CREATE OR REPLACE FUNCTION {{target.database}}.UTILS.UDF_MAPPING_SLOT(\n address_hex VARCHAR, \n slot_index INT\n )\n RETURNS VARCHAR\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.9'\n PACKAGES = ('pycryptodome==3.15.0')\n HANDLER = 'compute_slot'\n AS '\nfrom Crypto.Hash import keccak\n\ndef compute_slot(address_hex, slot_index):\n # Remove \"0x\" if present\n if address_hex.startswith(\"0x\"):\n address_hex = address_hex[2:]\n \n # Pad address to 32 bytes (64 hex chars)\n padded_address = address_hex.rjust(64, \"0\")\n \n # Convert slot index to hex and pad to 32 bytes\n slot_hex = hex(slot_index)[2:].rjust(64, \"0\")\n \n # Concatenate as raw bytes\n combined = bytes.fromhex(padded_address + slot_hex)\n\n # Hash with keccak256\n keccak_hash = keccak.new(digest_bits=256)\n keccak_hash.update(combined)\n \n return \"0x\" + keccak_hash.hexdigest()\n ';\n {% endset %}\n\n {% do run_query(create_udf_sql) %}\n {{ log(\"Created UDF_MAPPING_SLOT function \", info=true) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.9036894, "supported_languages": null}, "macro.fsc_evm.unverify_balances": {"name": "unverify_balances", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/balances_package/unverify_balances.sql", "original_file_path": "macros/balances_package/unverify_balances.sql", "unique_id": "macro.fsc_evm.unverify_balances", "macro_sql": "{% macro unverify_balances() %}\n{% set vars = return_vars() %}\n {% if var('HEAL_MODEL', false) and is_incremental() %}\n {% if model.name == 'balances__ez_balances_erc20' %}\n DELETE FROM {{ this }} \n WHERE contract_address NOT IN (\n SELECT contract_address \n FROM {{ ref('silver__balance_slots') }}\n WHERE slot_number IS NOT NULL \n AND num_slots = 1\n );\n {% else %}\n DELETE FROM {{ this }} t\n WHERE NOT EXISTS (\n SELECT 1\n FROM {{ ref('price__ez_asset_metadata') }} m\n WHERE\n m.token_address = t.contract_address\n AND m.is_verified\n AND m.asset_id IS NOT NULL\n AND m.token_address IS NOT NULL\n )\n OR EXISTS (\n SELECT 1\n FROM {{ ref('silver__balances_erc20_override') }} o\n WHERE o.contract_address = t.contract_address\n AND o.blockchain = '{{ vars.GLOBAL_PROJECT_NAME }}'\n );\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.is_incremental"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.90547, "supported_languages": null}, "macro.fsc_evm.test_balances_sequence_gaps": {"name": "test_balances_sequence_gaps", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/balances_package/tests/balances_sequence_gaps.sql", "original_file_path": "macros/balances_package/tests/balances_sequence_gaps.sql", "unique_id": "macro.fsc_evm.test_balances_sequence_gaps", "macro_sql": "{% test balances_sequence_gaps(\n model,\n partition_by,\n column_name\n) %}\n{%- set partition_sql = partition_by | join(\", \") -%}\n{%- set previous_column = \"prev_\" ~ column_name -%}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\nWITH source AS (\n SELECT\n {{ partition_sql + \",\" if partition_sql }}\n {{ column_name }},\n LAG(\n {{ column_name }},\n 1\n ) over (\n {{ \"PARTITION BY \" ~ partition_sql if partition_sql }}\n ORDER BY\n {{ column_name }} ASC\n ) AS {{ previous_column }}\n FROM\n {{ model }}\n)\nSELECT\n {{ partition_sql + \",\" if partition_sql }}\n {{ previous_column }},\n {{ column_name }},\n {{ column_name }} - {{ previous_column }}\n - 1 AS gap\nFROM\n source\nWHERE\n {{ column_name }} - {{ previous_column }} <> 1\n AND gap > 0\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED and column_name | lower == 'block_number' %}\n AND {{ column_name }} NOT IN (\n SELECT block_number :: INT + 1\n FROM observability.exclusion_list\n UNION ALL\n SELECT block_number :: INT - 1\n FROM observability.exclusion_list\n )\n{% endif %}\nORDER BY\n gap DESC \n{% endtest %}", "depends_on": {"macros": ["macro.fsc_evm.return_vars"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.9079661, "supported_languages": null}, "macro.fsc_evm.test_missing_balance_slots": {"name": "test_missing_balance_slots", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/balances_package/tests/missing_balance_slots.sql", "original_file_path": "macros/balances_package/tests/missing_balance_slots.sql", "unique_id": "macro.fsc_evm.test_missing_balance_slots", "macro_sql": "{% test missing_balance_slots(\n model\n) %}\nSELECT\n token_address,\n slot_number,\n num_slots\nFROM\n {{ ref('price__ez_asset_metadata') }}\n v\n LEFT JOIN {{ ref('silver__balance_slots') }}\n s\n ON v.token_address = s.contract_address\nWHERE\n slot_number IS NULL\n AND is_verified\n AND asset_id IS NOT NULL\n AND token_address IS NOT NULL \n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.908494, "supported_languages": null}, "macro.fsc_evm.test_balances_diffs_native": {"name": "test_balances_diffs_native", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/balances_package/tests/balances_diffs.sql", "original_file_path": "macros/balances_package/tests/balances_diffs.sql", "unique_id": "macro.fsc_evm.test_balances_diffs_native", "macro_sql": "{% test balances_diffs_native(\n model,\n test_model\n) %}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\nWITH source AS (\n SELECT\n block_number,\n LAG(block_number, 1) over (\n PARTITION BY address\n ORDER BY\n block_number,\n tx_position ASC\n ) AS prev_block_number,\n tx_position,\n address,\n pre_balance_raw,\n pre_balance_precise,\n LAG(\n post_balance_precise,\n 1\n ) over (\n PARTITION BY address\n ORDER BY\n block_number,\n tx_position ASC\n ) AS prev_post_balance_precise\n FROM\n {{ model }}\n)\nSELECT\n s.block_number,\n prev_block_number,\n t.block_number AS missing_block_number,\n s.tx_position,\n s.address,\n pre_balance_raw,\n pre_balance_precise,\n prev_post_balance_precise,\n pre_balance_precise - prev_post_balance_precise AS diff\nFROM\n source s\n LEFT JOIN {{ ref(test_model) }} t \n ON t.block_number > s.prev_block_number AND t.block_number < s.block_number\n AND (\n from_address = s.address\n OR to_address = s.address\n OR origin_from_address = s.address\n OR origin_to_address = s.address\n )\nWHERE\n diff <> 0\n AND diff IS NOT NULL \n AND t.block_number IS NOT NULL\n {% if vars.BALANCES_EXCLUSION_LIST_ENABLED %}\n AND address NOT IN (\n SELECT\n DISTINCT address\n FROM\n silver.validator_addresses\n )\n {% endif %}\n\n {% endtest %}", "depends_on": {"macros": ["macro.fsc_evm.return_vars"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.9102466, "supported_languages": null}, "macro.fsc_evm.test_balances_diffs_erc20": {"name": "test_balances_diffs_erc20", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/balances_package/tests/balances_diffs.sql", "original_file_path": "macros/balances_package/tests/balances_diffs.sql", "unique_id": "macro.fsc_evm.test_balances_diffs_erc20", "macro_sql": "{% test balances_diffs_erc20(\n model,\n test_model\n ) %}\n WITH source AS (\n SELECT\n block_number,\n LAG(block_number, 1) over (\n PARTITION BY address,\n contract_address\n ORDER BY\n block_number,\n tx_position ASC\n ) AS prev_block_number,\n tx_position,\n address,\n contract_address,\n pre_balance_raw,\n pre_balance_precise,\n LAG(\n post_balance_precise,\n 1\n ) over (\n PARTITION BY address,\n contract_address\n ORDER BY\n block_number,\n tx_position ASC\n ) AS prev_post_balance_precise\n FROM\n {{ model }}\n )\nSELECT\n s.block_number,\n prev_block_number,\n t.block_number AS missing_block_number,\n s.tx_position,\n address,\n s.contract_address,\n pre_balance_raw,\n pre_balance_precise,\n prev_post_balance_precise,\n pre_balance_precise - prev_post_balance_precise AS diff\nFROM\n source s \n LEFT JOIN {{ ref(test_model) }} t \n ON t.block_number > s.prev_block_number AND t.block_number < s.block_number\n AND (\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) :: STRING = s.address\n OR CONCAT('0x', SUBSTR(topic_2, 27, 40)) :: STRING = s.address\n )\nWHERE\n diff <> 0\n AND diff IS NOT NULL \n AND t.block_number IS NOT NULL\n {% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.910701, "supported_languages": null}, "macro.fsc_evm.vars_config": {"name": "vars_config", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/get_vars.sql", "original_file_path": "macros/global/variables/get_vars.sql", "unique_id": "macro.fsc_evm.vars_config", "macro_sql": "{% macro vars_config(all_projects=false) %}\n {# Retrieves variable configurations and values from project-specific macros.\n When all_projects=True, gets variables from all projects.\n Otherwise, gets variables only for the current project based on target database. #}\n \n {# Initialize empty dictionary for all variables #}\n {% set target_vars = {} %}\n \n {# Determine current project based on database name #}\n {% set target_db = target.database.lower() | replace('_dev', '') %}\n \n {% if all_projects %}\n {# Get all macro names in the context #}\n {% set all_macros = context.keys() %}\n \n {# Filter for project variable macros (those ending with _vars) #}\n {% for macro_name in all_macros %}\n {% if macro_name.endswith('_vars') %}\n {# Extract project name from macro name #}\n {% set project_name = macro_name.replace('_vars', '') %}\n \n {# Call the project macro and add to target_vars #}\n {% set project_config = context[macro_name]() %}\n \n {# Only include if the result is a mapping #}\n {% if project_config is mapping %}\n {% do target_vars.update({project_name: project_config}) %}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% else %}\n {# Construct the macro name for this project #}\n {% set project_macro = target_db ~ '_vars' %}\n \n {# Try to call the macro directly #}\n {% if context.get(project_macro) is not none %}\n {% set project_config = context[project_macro]() %}\n {% do target_vars.update({target_db: project_config}) %}\n {% endif %}\n {% endif %}\n \n {{ return(target_vars) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.918933, "supported_languages": null}, "macro.fsc_evm.flatten_vars": {"name": "flatten_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/get_vars.sql", "original_file_path": "macros/global/variables/get_vars.sql", "unique_id": "macro.fsc_evm.flatten_vars", "macro_sql": "{% macro flatten_vars() %}\n {# Converts the nested variable structure from vars_config() into a flat list of dictionaries.\n Each dictionary contains project, key, parent_key, value properties. #}\n \n {# Get the nested structure from vars_config() #}\n {% set nested_vars = vars_config() %}\n \n {# Convert the nested structure to the flat format expected by get_var() #}\n {% set flat_vars = [] %}\n \n {% for project, vars in nested_vars.items() %}\n {% for key, value in vars.items() %}\n {% if value is mapping %}\n {# Handle nested mappings (where parent_key is not none) #}\n {% for subkey, subvalue in value.items() %}\n {% do flat_vars.append({\n 'project': project,\n 'key': subkey,\n 'parent_key': key,\n 'value': subvalue\n }) %}\n {% endfor %}\n {% else %}\n {% do flat_vars.append({\n 'project': project,\n 'key': key,\n 'parent_key': none,\n 'value': value\n }) %}\n {% endif %}\n {% endfor %}\n {% endfor %}\n \n {{ return(flat_vars) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_evm.vars_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.920944, "supported_languages": null}, "macro.fsc_evm.write_vars": {"name": "write_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/get_vars.sql", "original_file_path": "macros/global/variables/get_vars.sql", "unique_id": "macro.fsc_evm.write_vars", "macro_sql": "{% macro write_vars(variable_key, default) %}\n {# Logs variable information to the terminal and a table in the database.\n Dependent on WRITE_VARS_ENABLED and execute flags. #}\n\n {% if var('WRITE_VARS_ENABLED', false) and execute %}\n {% set package = variable_key.split('_')[0] %}\n {% set category = variable_key.split('_')[1] %}\n \n {# Determine the data type of the default value #} \n {% if default is not none %}\n {% if default is string %}\n {% set default_type = 'STRING' %}\n {% set default_value = '\\'\\'' ~ default ~ '\\'\\'' %}\n {% elif default is number %}\n {% set default_type = 'NUMBER' %}\n {% set default_value = default %}\n {% elif default is boolean %}\n {% set default_type = 'BOOLEAN' %}\n {% set default_value = default %}\n {% elif default is mapping %}\n {% set default_type = 'OBJECT' %}\n {% set default_value = default | tojson %}\n {% elif default is sequence and default is not string %}\n {% set default_type = 'ARRAY' %}\n {% set default_value = default | tojson %}\n {% elif default is iterable and default is not string %}\n {% set default_type = 'ITERABLE' %}\n {% set default_value = 'ITERABLE' %}\n {% else %}\n {% set default_type = 'UNKNOWN' %}\n {% set default_value = 'UNKNOWN' %}\n {% endif %}\n {% else %}\n {% set default_type = none %}\n {% set default_value = none %}\n {% endif %}\n \n {% set log_query %}\n CREATE TABLE IF NOT EXISTS {{target.database}}.admin._master_keys (\n package STRING,\n category STRING,\n variable_key STRING,\n default_value STRING,\n default_type STRING,\n _inserted_timestamp TIMESTAMP_NTZ DEFAULT SYSDATE()\n );\n \n INSERT INTO {{target.database}}.admin._master_keys (\n package, \n category, \n variable_key, \n default_value,\n default_type\n )\n VALUES (\n '{{ package }}', \n '{{ category }}', \n '{{ variable_key }}', \n '{{ default_value }}',\n '{{ default_type }}'\n );\n {% endset %}\n {% do run_query(log_query) %}\n \n {# Update terminal logs to include type information #}\n {% do log(package ~ \"|\" ~ category ~ \"|\" ~ variable_key ~ \"|\" ~ default_value ~ \"|\" ~ default_type, info=True) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.9251137, "supported_languages": null}, "macro.fsc_evm.get_var": {"name": "get_var", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/get_vars.sql", "original_file_path": "macros/global/variables/get_vars.sql", "unique_id": "macro.fsc_evm.get_var", "macro_sql": "{% macro get_var(variable_key, default=none) %}\n {# Retrieves a variable by key from either dbt's built-in var() function or from project configs.\n Handles type conversion for strings, numbers, booleans, arrays, and JSON objects.\n Returns the default value if the variable is not found. #}\n\n {# Log variable info if enabled #}\n {% do write_vars(variable_key, default) %}\n\n {# Check if variable exists in dbt's built-in var() function. If it does, return the value. #}\n {% if var(variable_key, none) is not none %}\n {{ return(var(variable_key)) }}\n {% endif %}\n\n {# Get flattened variables from the config file #}\n {% set all_vars = flatten_vars() %}\n \n {% if execute %}\n {# Filter variables based on the requested key #}\n {% set filtered_vars = [] %}\n {% for var_item in all_vars %}\n {% if (var_item.key == variable_key or var_item.parent_key == variable_key) %}\n {% do filtered_vars.append(var_item) %}\n {% endif %}\n {% endfor %}\n \n {# If no results found, return the default value #}\n {% if filtered_vars | length == 0 %}\n {{ return(default) }}\n {% endif %}\n\n {% set first_var = filtered_vars[0] %}\n {% set parent_key = first_var.parent_key %}\n {% set value = first_var.value %}\n \n {# Check if this is a simple variable (no parent key) or a mapping (has parent key) #}\n {% if parent_key is none or parent_key == '' %}\n {# Infer data type from value #}\n {% if value is string %}\n {% if value.startswith('[') and value.endswith(']') %}\n {# For array type, parse and convert values to appropriate types #}\n {% set array_values = value.strip('[]').split(',') %}\n {% set converted_array = [] %}\n {% for val in array_values %}\n {% set stripped_val = val.strip() %}\n {% if stripped_val.isdigit() %}\n {% do converted_array.append(stripped_val | int) %}\n {% elif stripped_val.replace('.','',1).isdigit() %}\n {% do converted_array.append(stripped_val | float) %}\n {% elif stripped_val.lower() in ['true', 'false'] %}\n {% do converted_array.append(stripped_val.lower() == 'true') %}\n {% else %}\n {% do converted_array.append(stripped_val) %}\n {% endif %}\n {% endfor %}\n {{ return(converted_array) }}\n {% elif value.startswith('{') and value.endswith('}') and ':' in value %}\n {# For JSON, VARIANT, OBJECT #}\n {{ return(fromjson(value)) }}\n {% elif value.isdigit() %}\n {{ return(value | int) }}\n {% elif value.replace('.','',1).isdigit() %}\n {{ return(value | float) }}\n {% elif value.lower() in ['true', 'false'] %}\n {{ return(value.lower() == 'true') }}\n {% else %}\n {{ return(value) }}\n {% endif %}\n {% else %}\n {# If value is already a non-string type (int, bool, etc.) #}\n {{ return(value) }}\n {% endif %}\n {% else %}\n {# For variables with a parent_key, build a dictionary of all child values #}\n {% set mapping = {} %}\n {% for var_item in filtered_vars %}\n {# key: value pairings based on parent_key #}\n {% do mapping.update({var_item.key: var_item.value}) %} \n {% endfor %}\n {{ return(mapping) }}\n {% endif %}\n {% else %}\n {{ return(default) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_evm.write_vars", "macro.fsc_evm.flatten_vars", "macro.dbt.replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.9321263, "supported_languages": null}, "macro.fsc_evm.return_vars": {"name": "return_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/return_vars.sql", "original_file_path": "macros/global/variables/return_vars.sql", "unique_id": "macro.fsc_evm.return_vars", "macro_sql": "{% macro return_vars() %}\n {# This macro sets and returns all configurable variables used throughout the project,\n organizing them by category (Global, Bronze, Silver, Streamline, Decoder etc.) with default values.\n IMPORTANT: Only call get_var() once per variable #}\n \n {# Set all variables on the namespace #}\n {% set ns = namespace() %}\n \n {# Set Variables and Default Values, organized by category #}\n \n {# Global Variables #}\n {% set ns.GLOBAL_PROJECT_NAME = get_var('GLOBAL_PROJECT_NAME', '') %}\n {% set ns.GLOBAL_NODE_PROVIDER = get_var('GLOBAL_NODE_PROVIDER', '') %}\n {% set ns.GLOBAL_NODE_URL = get_var('GLOBAL_NODE_URL', '{Service}/{Authentication}') %}\n {% set ns.GLOBAL_NATIVE_ASSET_SYMBOL = get_var('GLOBAL_NATIVE_ASSET_SYMBOL', '') %}\n {% set ns.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS = get_var('GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS', '') %}\n {% set ns.GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL = get_var('GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL', '') %}\n {% set ns.GLOBAL_MAX_SEQUENCE_NUMBER = get_var('GLOBAL_MAX_SEQUENCE_NUMBER', 1000000000) %}\n {% set ns.GLOBAL_NODE_VAULT_PATH = get_var('GLOBAL_NODE_VAULT_PATH', '') %}\n {% set ns.GLOBAL_NETWORK = get_var('GLOBAL_NETWORK', 'mainnet') %}\n {% set ns.GLOBAL_START_BLOCK = get_var('GLOBAL_START_BLOCK', 0) %}\n\n {% set ns.GLOBAL_BRONZE_FR_ENABLED = none if get_var('GLOBAL_BRONZE_FR_ENABLED', false) else false %} {# Sets to none if true, still requires --full-refresh, otherwise will use incremental #}\n {% set ns.GLOBAL_SILVER_FR_ENABLED = none if get_var('GLOBAL_SILVER_FR_ENABLED', false) else false %} \n {% set ns.GLOBAL_GOLD_FR_ENABLED = none if get_var('GLOBAL_GOLD_FR_ENABLED', false) else false %} \n {% set ns.GLOBAL_STREAMLINE_FR_ENABLED = none if get_var('GLOBAL_STREAMLINE_FR_ENABLED', false) else false %} \n {% set ns.GLOBAL_NEW_BUILD_ENABLED = get_var('GLOBAL_NEW_BUILD_ENABLED', false) %}\n\n {% set ns.GLOBAL_CHANGE_TRACKING_ENABLED = get_var('GLOBAL_CHANGE_TRACKING_ENABLED', false) %}\n \n {# Main GHA Workflow Variables #}\n {% set ns.MAIN_GHA_STREAMLINE_CHAINHEAD_CRON = get_var('MAIN_GHA_STREAMLINE_CHAINHEAD_CRON', '0,30 * * * *') %}\n {% set ns.MAIN_GHA_SCHEDULED_MAIN_CRON = get_var('MAIN_GHA_SCHEDULED_MAIN_CRON', none) %}\n {% set ns.MAIN_GHA_SCHEDULED_CURATED_CRON = get_var('MAIN_GHA_SCHEDULED_CURATED_CRON', none) %}\n {% set ns.MAIN_GHA_SCHEDULED_ABIS_CRON = get_var('MAIN_GHA_SCHEDULED_ABIS_CRON', none) %}\n {% set ns.MAIN_GHA_SCHEDULED_SCORES_CRON = get_var('MAIN_GHA_SCHEDULED_SCORES_CRON', none) %}\n {% set ns.MAIN_GHA_TEST_DAILY_CRON = get_var('MAIN_GHA_TEST_DAILY_CRON', none) %}\n {% set ns.MAIN_GHA_TEST_INTRADAY_CRON = get_var('MAIN_GHA_TEST_INTRADAY_CRON', none) %}\n {% set ns.MAIN_GHA_TEST_MONTHLY_CRON = get_var('MAIN_GHA_TEST_MONTHLY_CRON', none) %}\n {% set ns.MAIN_GHA_HEAL_MODELS_CRON = get_var('MAIN_GHA_HEAL_MODELS_CRON', none) %}\n {% set ns.MAIN_GHA_FULL_OBSERVABILITY_CRON = get_var('MAIN_GHA_FULL_OBSERVABILITY_CRON', none) %}\n {% set ns.MAIN_GHA_DEV_REFRESH_CRON = get_var('MAIN_GHA_DEV_REFRESH_CRON', none) %}\n {% set ns.MAIN_GHA_STREAMLINE_DECODER_HISTORY_CRON = get_var('MAIN_GHA_STREAMLINE_DECODER_HISTORY_CRON', none) %}\n\n {# Custom GHA Workflow Variables #}\n {% set ns.CUSTOM_GHA_STREAMLINE_DEXALOT_CHAINHEAD_CRON = get_var('CUSTOM_GHA_STREAMLINE_DEXALOT_CHAINHEAD_CRON', none) %}\n {% set ns.CUSTOM_GHA_SCHEDULED_DEXALOT_MAIN_CRON = get_var('CUSTOM_GHA_SCHEDULED_DEXALOT_MAIN_CRON', none) %}\n {% set ns.CUSTOM_GHA_TEST_BEACON_CRON = get_var('CUSTOM_GHA_TEST_BEACON_CRON', none) %}\n {% set ns.CUSTOM_GHA_STREAMLINE_READS_CRON = get_var('CUSTOM_GHA_STREAMLINE_READS_CRON', none) %}\n {% set ns.CUSTOM_GHA_STREAMLINE_BEACON_CRON = get_var('CUSTOM_GHA_STREAMLINE_BEACON_CRON', none) %}\n {% set ns.CUSTOM_GHA_SCHEDULED_BEACON_CRON = get_var('CUSTOM_GHA_SCHEDULED_BEACON_CRON', none) %}\n {% set ns.CUSTOM_GHA_NFT_READS_CRON = get_var('CUSTOM_GHA_NFT_READS_CRON', none) %}\n {% set ns.CUSTOM_GHA_NFT_LIST_CRON = get_var('CUSTOM_GHA_NFT_LIST_CRON', none) %}\n\n {# Core Variables #}\n {% set ns.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED = get_var('MAIN_CORE_RECEIPTS_BY_HASH_ENABLED', false) %}\n\n {% set ns.MAIN_CORE_TRACES_ARB_MODE = ns.GLOBAL_PROJECT_NAME.upper() == 'ARBITRUM' %}\n {% set ns.MAIN_CORE_TRACES_SEI_MODE = ns.GLOBAL_PROJECT_NAME.upper() == 'SEI' %}\n {% set ns.MAIN_CORE_TRACES_KAIA_MODE = ns.GLOBAL_PROJECT_NAME.upper() == 'KAIA' %}\n\n {# Core Bronze Variables #}\n {% set ns.MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED = get_var('MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED', false) %}\n {% set ns.MAIN_CORE_BRONZE_TOKEN_READS_LIMIT = get_var('MAIN_CORE_BRONZE_TOKEN_READS_LIMIT', 50) %}\n {% set ns.MAIN_CORE_BRONZE_TOKEN_READS_BATCHED_ENABLED = get_var('MAIN_CORE_BRONZE_TOKEN_READS_BATCHED_ENABLED', false) %}\n\n {# Core Silver Variables #}\n {% set ns.MAIN_CORE_SILVER_RECEIPTS_UNIQUE_KEY = 'tx_hash' if ns.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED else 'block_number' %}\n {% set ns.MAIN_CORE_SILVER_RECEIPTS_SOURCE_NAME = 'RECEIPTS_BY_HASH' if ns.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED else 'RECEIPTS' %}\n {% set ns.MAIN_CORE_SILVER_RECEIPTS_POST_HOOK = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(tx_hash, block_number)\" if ns.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED else \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(array_index, block_number)\" %}\n\n {% set ns.MAIN_CORE_SILVER_CONFIRM_BLOCKS_FULL_RELOAD_ENABLED = get_var('MAIN_CORE_SILVER_CONFIRM_BLOCKS_FULL_RELOAD_ENABLED', false) %}\n\n {% set ns.MAIN_CORE_SILVER_TRACES_FULL_RELOAD_ENABLED = get_var('MAIN_CORE_SILVER_TRACES_FULL_RELOAD_ENABLED', false) %}\n {% set ns.MAIN_CORE_SILVER_TRACES_FR_MAX_BLOCK = get_var('MAIN_CORE_SILVER_TRACES_FR_MAX_BLOCK', 1000000) %}\n {% set ns.MAIN_CORE_SILVER_TRACES_FULL_RELOAD_BLOCKS_PER_RUN = get_var('MAIN_CORE_SILVER_TRACES_FULL_RELOAD_BLOCKS_PER_RUN', 1000000) %}\n {% set ns.MAIN_CORE_SILVER_TRACES_PARTITION_KEY_ENABLED = get_var('MAIN_CORE_SILVER_TRACES_PARTITION_KEY_ENABLED', true) %}\n\n {# Core Gold Variables #}\n {% set ns.MAIN_CORE_GOLD_FACT_TRANSACTIONS_UNIQUE_KEY = 'tx_hash' if ns.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED else 'block_number' %}\n {% set ns.MAIN_CORE_GOLD_EZ_NATIVE_TRANSFERS_UNIQUE_KEY = 'tx_hash' if ns.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED else 'block_number' %}\n {% set ns.MAIN_CORE_GOLD_EZ_NATIVE_TRANSFERS_PRICES_START_DATE = get_var('MAIN_CORE_GOLD_EZ_NATIVE_TRANSFERS_PRICES_START_DATE','2024-01-01') %}\n\n {% set ns.MAIN_CORE_GOLD_FACT_EVENT_LOGS_UNIQUE_KEY = 'tx_hash' if ns.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED else 'block_number' %}\n\n {% set ns.MAIN_CORE_GOLD_TRACES_FULL_RELOAD_ENABLED = get_var('MAIN_CORE_GOLD_TRACES_FULL_RELOAD_ENABLED', false) %}\n {% set ns.MAIN_CORE_GOLD_TRACES_FR_MAX_BLOCK = get_var('MAIN_CORE_GOLD_TRACES_FR_MAX_BLOCK', 1000000) %}\n {% set ns.MAIN_CORE_GOLD_TRACES_FULL_RELOAD_BLOCKS_PER_RUN = get_var('MAIN_CORE_GOLD_TRACES_FULL_RELOAD_BLOCKS_PER_RUN', 1000000) %}\n {% set ns.MAIN_CORE_GOLD_TRACES_TX_STATUS_ENABLED = get_var('MAIN_CORE_GOLD_TRACES_TX_STATUS_ENABLED', false) %}\n {% set ns.MAIN_CORE_GOLD_TRACES_SCHEMA_NAME = get_var('MAIN_CORE_GOLD_TRACES_SCHEMA_NAME', 'silver') %}\n {% if ns.MAIN_CORE_RECEIPTS_BY_HASH_ENABLED %}\n {% if ns.MAIN_CORE_TRACES_SEI_MODE %}\n {% set ns.MAIN_CORE_GOLD_TRACES_UNIQUE_KEY = \"concat(block_number, '-', tx_hash)\" %}\n {% else %}\n {% set ns.MAIN_CORE_GOLD_TRACES_UNIQUE_KEY = \"concat(block_number, '-', tx_position)\" %}\n {% endif %}\n {% else %}\n {% set ns.MAIN_CORE_GOLD_TRACES_UNIQUE_KEY = \"block_number\" %}\n {% endif %}\n\n {# Main Streamline Variables #}\n {% set ns.MAIN_SL_BLOCKS_PER_HOUR = get_var('MAIN_SL_BLOCKS_PER_HOUR', 1) %}\n {% set ns.MAIN_SL_TRANSACTIONS_PER_BLOCK = get_var('MAIN_SL_TRANSACTIONS_PER_BLOCK', 1) %}\n {% set ns.MAIN_SL_TESTING_LIMIT = get_var('MAIN_SL_TESTING_LIMIT', none) %}\n {% set ns.MAIN_SL_NEW_BUILD_ENABLED = get_var('MAIN_SL_NEW_BUILD_ENABLED', false) %}\n {% set ns.MAIN_SL_CHAINHEAD_DELAY_MINUTES = get_var('MAIN_SL_CHAINHEAD_DELAY_MINUTES', 3) %}\n {% set ns.MAIN_SL_BLOCK_LOOKBACK_ENABLED = get_var('MAIN_SL_BLOCK_LOOKBACK_ENABLED', true) %}\n\n {# Main Test Variables #}\n {% set ns.MAIN_CORE_GOLD_TRACES_TEST_ERROR_THRESHOLD = get_var('MAIN_CORE_GOLD_TRACES_TEST_ERROR_THRESHOLD', 0) %}\n \n {# SL Blocks Transactions Variables #}\n {% set ns.MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_SQL_LIMIT = get_var('MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_SQL_LIMIT', 2 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_PRODUCER_BATCH_SIZE = get_var('MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_PRODUCER_BATCH_SIZE', 2 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_WORKER_BATCH_SIZE = get_var('MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_WORKER_BATCH_SIZE', ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_ASYNC_CONCURRENT_REQUESTS = get_var('MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_ASYNC_CONCURRENT_REQUESTS', 100) %}\n \n {% set ns.MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_SQL_LIMIT = get_var('MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_SQL_LIMIT', 1000 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_PRODUCER_BATCH_SIZE = get_var('MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_PRODUCER_BATCH_SIZE', 10 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_WORKER_BATCH_SIZE = get_var('MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_WORKER_BATCH_SIZE', ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_ASYNC_CONCURRENT_REQUESTS = get_var('MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_ASYNC_CONCURRENT_REQUESTS', 10) %}\n \n {# SL Receipts Variables #}\n {% set ns.MAIN_SL_RECEIPTS_REALTIME_SQL_LIMIT = get_var('MAIN_SL_RECEIPTS_REALTIME_SQL_LIMIT', 2 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_RECEIPTS_REALTIME_PRODUCER_BATCH_SIZE = get_var('MAIN_SL_RECEIPTS_REALTIME_PRODUCER_BATCH_SIZE', 2 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_RECEIPTS_REALTIME_WORKER_BATCH_SIZE = get_var('MAIN_SL_RECEIPTS_REALTIME_WORKER_BATCH_SIZE', ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_RECEIPTS_REALTIME_ASYNC_CONCURRENT_REQUESTS = get_var('MAIN_SL_RECEIPTS_REALTIME_ASYNC_CONCURRENT_REQUESTS', 100) %}\n \n {% set ns.MAIN_SL_RECEIPTS_HISTORY_SQL_LIMIT = get_var('MAIN_SL_RECEIPTS_HISTORY_SQL_LIMIT', 1000 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_RECEIPTS_HISTORY_PRODUCER_BATCH_SIZE = get_var('MAIN_SL_RECEIPTS_HISTORY_PRODUCER_BATCH_SIZE', 10 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_RECEIPTS_HISTORY_WORKER_BATCH_SIZE = get_var('MAIN_SL_RECEIPTS_HISTORY_WORKER_BATCH_SIZE', ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_RECEIPTS_HISTORY_ASYNC_CONCURRENT_REQUESTS = get_var('MAIN_SL_RECEIPTS_HISTORY_ASYNC_CONCURRENT_REQUESTS', 10) %}\n \n {# SL Receipts By Hash Variables #}\n {% set ns.MAIN_SL_RECEIPTS_BY_HASH_REALTIME_SQL_LIMIT = get_var('MAIN_SL_RECEIPTS_BY_HASH_REALTIME_SQL_LIMIT', 2 * ns.MAIN_SL_BLOCKS_PER_HOUR * ns.MAIN_SL_TRANSACTIONS_PER_BLOCK) %}\n {% set ns.MAIN_SL_RECEIPTS_BY_HASH_REALTIME_PRODUCER_BATCH_SIZE = get_var('MAIN_SL_RECEIPTS_BY_HASH_REALTIME_PRODUCER_BATCH_SIZE', 2 * ns.MAIN_SL_BLOCKS_PER_HOUR * ns.MAIN_SL_TRANSACTIONS_PER_BLOCK) %}\n {% set ns.MAIN_SL_RECEIPTS_BY_HASH_REALTIME_WORKER_BATCH_SIZE = get_var('MAIN_SL_RECEIPTS_BY_HASH_REALTIME_WORKER_BATCH_SIZE', ns.MAIN_SL_BLOCKS_PER_HOUR * ns.MAIN_SL_TRANSACTIONS_PER_BLOCK) %}\n {% set ns.MAIN_SL_RECEIPTS_BY_HASH_REALTIME_ASYNC_CONCURRENT_REQUESTS = get_var('MAIN_SL_RECEIPTS_BY_HASH_REALTIME_ASYNC_CONCURRENT_REQUESTS', 100) %}\n {% set ns.MAIN_SL_RECEIPTS_BY_HASH_REALTIME_TXNS_MODEL_ENABLED = get_var('MAIN_SL_RECEIPTS_BY_HASH_REALTIME_TXNS_MODEL_ENABLED', true) %}\n \n {% set ns.MAIN_SL_RECEIPTS_BY_HASH_HISTORY_SQL_LIMIT = get_var('MAIN_SL_RECEIPTS_BY_HASH_HISTORY_SQL_LIMIT', 1000 * ns.MAIN_SL_BLOCKS_PER_HOUR * ns.MAIN_SL_TRANSACTIONS_PER_BLOCK) %}\n {% set ns.MAIN_SL_RECEIPTS_BY_HASH_HISTORY_PRODUCER_BATCH_SIZE = get_var('MAIN_SL_RECEIPTS_BY_HASH_HISTORY_PRODUCER_BATCH_SIZE', 10 * ns.MAIN_SL_BLOCKS_PER_HOUR * ns.MAIN_SL_TRANSACTIONS_PER_BLOCK) %}\n {% set ns.MAIN_SL_RECEIPTS_BY_HASH_HISTORY_WORKER_BATCH_SIZE = get_var('MAIN_SL_RECEIPTS_BY_HASH_HISTORY_WORKER_BATCH_SIZE', ns.MAIN_SL_BLOCKS_PER_HOUR * ns.MAIN_SL_TRANSACTIONS_PER_BLOCK) %}\n {% set ns.MAIN_SL_RECEIPTS_BY_HASH_HISTORY_ASYNC_CONCURRENT_REQUESTS = get_var('MAIN_SL_RECEIPTS_BY_HASH_HISTORY_ASYNC_CONCURRENT_REQUESTS', 10) %}\n \n {# SL Traces Variables #}\n {% set ns.MAIN_SL_TRACES_REALTIME_SQL_LIMIT = get_var('MAIN_SL_TRACES_REALTIME_SQL_LIMIT', 2 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_TRACES_REALTIME_PRODUCER_BATCH_SIZE = get_var('MAIN_SL_TRACES_REALTIME_PRODUCER_BATCH_SIZE', 2 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_TRACES_REALTIME_WORKER_BATCH_SIZE = get_var('MAIN_SL_TRACES_REALTIME_WORKER_BATCH_SIZE', ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_TRACES_REALTIME_ASYNC_CONCURRENT_REQUESTS = get_var('MAIN_SL_TRACES_REALTIME_ASYNC_CONCURRENT_REQUESTS', 100) %}\n {% set ns.MAIN_SL_TRACES_REALTIME_REQUEST_START_BLOCK = get_var('MAIN_SL_TRACES_REALTIME_REQUEST_START_BLOCK', none) %}\n \n {% set ns.MAIN_SL_TRACES_HISTORY_SQL_LIMIT = get_var('MAIN_SL_TRACES_HISTORY_SQL_LIMIT', 1000 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_TRACES_HISTORY_PRODUCER_BATCH_SIZE = get_var('MAIN_SL_TRACES_HISTORY_PRODUCER_BATCH_SIZE', 10 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_TRACES_HISTORY_WORKER_BATCH_SIZE = get_var('MAIN_SL_TRACES_HISTORY_WORKER_BATCH_SIZE', ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_TRACES_HISTORY_ASYNC_CONCURRENT_REQUESTS = get_var('MAIN_SL_TRACES_HISTORY_ASYNC_CONCURRENT_REQUESTS', 10) %}\n {% set ns.MAIN_SL_TRACES_HISTORY_REQUEST_START_BLOCK = get_var('MAIN_SL_TRACES_HISTORY_REQUEST_START_BLOCK', none) %}\n \n {# SL Confirm Blocks Variables #}\n {% set ns.MAIN_SL_CONFIRM_BLOCKS_REALTIME_SQL_LIMIT = get_var('MAIN_SL_CONFIRM_BLOCKS_REALTIME_SQL_LIMIT', 2 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_CONFIRM_BLOCKS_REALTIME_PRODUCER_BATCH_SIZE = get_var('MAIN_SL_CONFIRM_BLOCKS_REALTIME_PRODUCER_BATCH_SIZE', 2 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_CONFIRM_BLOCKS_REALTIME_WORKER_BATCH_SIZE = get_var('MAIN_SL_CONFIRM_BLOCKS_REALTIME_WORKER_BATCH_SIZE', ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_CONFIRM_BLOCKS_REALTIME_ASYNC_CONCURRENT_REQUESTS = get_var('MAIN_SL_CONFIRM_BLOCKS_REALTIME_ASYNC_CONCURRENT_REQUESTS', 100) %}\n \n {% set ns.MAIN_SL_CONFIRM_BLOCKS_HISTORY_SQL_LIMIT = get_var('MAIN_SL_CONFIRM_BLOCKS_HISTORY_SQL_LIMIT', 1000 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_CONFIRM_BLOCKS_HISTORY_PRODUCER_BATCH_SIZE = get_var('MAIN_SL_CONFIRM_BLOCKS_HISTORY_PRODUCER_BATCH_SIZE', 10 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_CONFIRM_BLOCKS_HISTORY_WORKER_BATCH_SIZE = get_var('MAIN_SL_CONFIRM_BLOCKS_HISTORY_WORKER_BATCH_SIZE', ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.MAIN_SL_CONFIRM_BLOCKS_HISTORY_ASYNC_CONCURRENT_REQUESTS = get_var('MAIN_SL_CONFIRM_BLOCKS_HISTORY_ASYNC_CONCURRENT_REQUESTS', 10) %}\n\n {# SL Decoder Variables #}\n {% set ns.DECODER_SL_TESTING_LIMIT = get_var('DECODER_SL_TESTING_LIMIT', none) %}\n {% set ns.DECODER_SL_NEW_BUILD_ENABLED = get_var('DECODER_SL_NEW_BUILD_ENABLED', false) %}\n\n {# SL Decoded Logs Variables #}\n {% set ns.DECODER_SL_DECODED_LOGS_REALTIME_EXTERNAL_TABLE = get_var('DECODER_SL_DECODED_LOGS_REALTIME_EXTERNAL_TABLE', 'decoded_logs') %}\n {% set ns.DECODER_SL_DECODED_LOGS_REALTIME_SQL_LIMIT = get_var('DECODER_SL_DECODED_LOGS_REALTIME_SQL_LIMIT', 10000000) %}\n {% set ns.DECODER_SL_DECODED_LOGS_REALTIME_PRODUCER_BATCH_SIZE = get_var('DECODER_SL_DECODED_LOGS_REALTIME_PRODUCER_BATCH_SIZE', 5000000) %}\n {% set ns.DECODER_SL_DECODED_LOGS_REALTIME_WORKER_BATCH_SIZE = get_var('DECODER_SL_DECODED_LOGS_REALTIME_WORKER_BATCH_SIZE', 50000) %}\n\n {% set ns.DECODER_SL_DECODED_LOGS_HISTORY_EXTERNAL_TABLE = get_var('DECODER_SL_DECODED_LOGS_HISTORY_EXTERNAL_TABLE', 'decoded_logs_history') %}\n {% set ns.DECODER_SL_DECODED_LOGS_HISTORY_SQL_LIMIT = get_var('DECODER_SL_DECODED_LOGS_HISTORY_SQL_LIMIT', 10000000) %}\n {% set ns.DECODER_SL_DECODED_LOGS_HISTORY_PRODUCER_BATCH_SIZE = get_var('DECODER_SL_DECODED_LOGS_HISTORY_PRODUCER_BATCH_SIZE', 5000000) %}\n {% set ns.DECODER_SL_DECODED_LOGS_HISTORY_WORKER_BATCH_SIZE = get_var('DECODER_SL_DECODED_LOGS_HISTORY_WORKER_BATCH_SIZE', 50000) %}\n {% set ns.DECODER_SL_DECODED_LOGS_HISTORY_WAIT_SECONDS = get_var('DECODER_SL_DECODED_LOGS_HISTORY_WAIT_SECONDS', 60) %}\n\n {# SL Contract ABIs Variables #}\n {% set ns.DECODER_SL_CONTRACT_ABIS_REALTIME_SQL_LIMIT = get_var('DECODER_SL_CONTRACT_ABIS_REALTIME_SQL_LIMIT', 100) %}\n {% set ns.DECODER_SL_CONTRACT_ABIS_REALTIME_PRODUCER_BATCH_SIZE = get_var('DECODER_SL_CONTRACT_ABIS_REALTIME_PRODUCER_BATCH_SIZE', 1) %}\n {% set ns.DECODER_SL_CONTRACT_ABIS_REALTIME_WORKER_BATCH_SIZE = get_var('DECODER_SL_CONTRACT_ABIS_REALTIME_WORKER_BATCH_SIZE', 1) %}\n {% set ns.DECODER_SL_CONTRACT_ABIS_REALTIME_ASYNC_CONCURRENT_REQUESTS = get_var('DECODER_SL_CONTRACT_ABIS_REALTIME_ASYNC_CONCURRENT_REQUESTS', 1) %}\n {% set ns.DECODER_SL_CONTRACT_ABIS_INTERACTION_COUNT = get_var('DECODER_SL_CONTRACT_ABIS_INTERACTION_COUNT', 50) %}\n {% set ns.DECODER_SL_CONTRACT_ABIS_EXPLORER_URL = get_var('DECODER_SL_CONTRACT_ABIS_EXPLORER_URL', '') %}\n {% set ns.DECODER_SL_CONTRACT_ABIS_EXPLORER_URL_SUFFIX = get_var('DECODER_SL_CONTRACT_ABIS_EXPLORER_URL_SUFFIX', '') %}\n {% set ns.DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH = get_var('DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH', '') %}\n {% set ns.DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED = get_var('DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED', false) %}\n\n {# ABIs Silver Variables #}\n {% set ns.DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME = get_var('DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME', '') %}\n {% set ns.DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED = get_var('DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED', false) %}\n {% set ns.DECODER_SILVER_CONTRACT_ABIS_RESULT_ENABLED = get_var('DECODER_SILVER_CONTRACT_ABIS_RESULT_ENABLED', false) %}\n\n {# SL Balances Variables #}\n {% set ns.BALANCES_SL_TESTING_LIMIT = get_var('BALANCES_SL_TESTING_LIMIT', none) %}\n {% set ns.BALANCES_SL_NEW_BUILD_ENABLED = get_var('BALANCES_SL_NEW_BUILD_ENABLED', false) %}\n {% set ns.BALANCES_SL_START_DATE = get_var('BALANCES_SL_START_DATE', '2025-06-10') %}\n {% set ns.BALANCES_SL_DAILY_REALTIME_LOOKBACK_DAYS = get_var('BALANCES_SL_DAILY_REALTIME_LOOKBACK_DAYS', -4) %}\n\n {% set ns.BALANCES_SL_ERC20_DAILY_REALTIME_SQL_LIMIT = get_var('BALANCES_SL_ERC20_DAILY_REALTIME_SQL_LIMIT', 12000000) %}\n {% set ns.BALANCES_SL_ERC20_DAILY_REALTIME_PRODUCER_BATCH_SIZE = get_var('BALANCES_SL_ERC20_DAILY_REALTIME_PRODUCER_BATCH_SIZE', 240000) %}\n {% set ns.BALANCES_SL_ERC20_DAILY_REALTIME_WORKER_BATCH_SIZE = get_var('BALANCES_SL_ERC20_DAILY_REALTIME_WORKER_BATCH_SIZE', 60000) %}\n {% set ns.BALANCES_SL_ERC20_DAILY_REALTIME_ASYNC_CONCURRENT_REQUESTS = get_var('BALANCES_SL_ERC20_DAILY_REALTIME_ASYNC_CONCURRENT_REQUESTS', 10) %}\n\n {% set ns.BALANCES_SL_ERC20_DAILY_HISTORY_SQL_LIMIT = get_var('BALANCES_SL_ERC20_DAILY_HISTORY_SQL_LIMIT', 12000000) %}\n {% set ns.BALANCES_SL_ERC20_DAILY_HISTORY_PRODUCER_BATCH_SIZE = get_var('BALANCES_SL_ERC20_DAILY_HISTORY_PRODUCER_BATCH_SIZE', 600000) %}\n {% set ns.BALANCES_SL_ERC20_DAILY_HISTORY_WORKER_BATCH_SIZE = get_var('BALANCES_SL_ERC20_DAILY_HISTORY_WORKER_BATCH_SIZE', 60000) %}\n {% set ns.BALANCES_SL_ERC20_DAILY_HISTORY_ASYNC_CONCURRENT_REQUESTS = get_var('BALANCES_SL_ERC20_DAILY_HISTORY_ASYNC_CONCURRENT_REQUESTS', 10) %}\n\n {% set ns.BALANCES_SL_NATIVE_DAILY_REALTIME_SQL_LIMIT = get_var('BALANCES_SL_NATIVE_DAILY_REALTIME_SQL_LIMIT', 12000000) %}\n {% set ns.BALANCES_SL_NATIVE_DAILY_REALTIME_PRODUCER_BATCH_SIZE = get_var('BALANCES_SL_NATIVE_DAILY_REALTIME_PRODUCER_BATCH_SIZE', 240000) %}\n {% set ns.BALANCES_SL_NATIVE_DAILY_REALTIME_WORKER_BATCH_SIZE = get_var('BALANCES_SL_NATIVE_DAILY_REALTIME_WORKER_BATCH_SIZE', 60000) %}\n {% set ns.BALANCES_SL_NATIVE_DAILY_REALTIME_ASYNC_CONCURRENT_REQUESTS = get_var('BALANCES_SL_NATIVE_DAILY_REALTIME_ASYNC_CONCURRENT_REQUESTS', 10) %}\n\n {% set ns.BALANCES_SL_NATIVE_DAILY_HISTORY_SQL_LIMIT = get_var('BALANCES_SL_NATIVE_DAILY_HISTORY_SQL_LIMIT', 12000000) %}\n {% set ns.BALANCES_SL_NATIVE_DAILY_HISTORY_PRODUCER_BATCH_SIZE = get_var('BALANCES_SL_NATIVE_DAILY_HISTORY_PRODUCER_BATCH_SIZE', 600000) %}\n {% set ns.BALANCES_SL_NATIVE_DAILY_HISTORY_WORKER_BATCH_SIZE = get_var('BALANCES_SL_NATIVE_DAILY_HISTORY_WORKER_BATCH_SIZE', 60000) %}\n {% set ns.BALANCES_SL_NATIVE_DAILY_HISTORY_ASYNC_CONCURRENT_REQUESTS = get_var('BALANCES_SL_NATIVE_DAILY_HISTORY_ASYNC_CONCURRENT_REQUESTS', 10) %}\n\n {% set ns.BALANCES_SL_STATE_TRACER_REALTIME_SQL_LIMIT = get_var('BALANCES_SL_STATE_TRACER_REALTIME_SQL_LIMIT', 2 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.BALANCES_SL_STATE_TRACER_REALTIME_PRODUCER_BATCH_SIZE = get_var('BALANCES_SL_STATE_TRACER_REALTIME_PRODUCER_BATCH_SIZE', 2 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.BALANCES_SL_STATE_TRACER_REALTIME_WORKER_BATCH_SIZE = get_var('BALANCES_SL_STATE_TRACER_REALTIME_WORKER_BATCH_SIZE', ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.BALANCES_SL_STATE_TRACER_REALTIME_ASYNC_CONCURRENT_REQUESTS = get_var('BALANCES_SL_STATE_TRACER_REALTIME_ASYNC_CONCURRENT_REQUESTS', 100) %}\n \n {% set ns.BALANCES_SL_STATE_TRACER_HISTORY_SQL_LIMIT = get_var('BALANCES_SL_STATE_TRACER_HISTORY_SQL_LIMIT', 1000 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.BALANCES_SL_STATE_TRACER_HISTORY_PRODUCER_BATCH_SIZE = get_var('BALANCES_SL_STATE_TRACER_HISTORY_PRODUCER_BATCH_SIZE', 10 * ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.BALANCES_SL_STATE_TRACER_HISTORY_WORKER_BATCH_SIZE = get_var('BALANCES_SL_STATE_TRACER_HISTORY_WORKER_BATCH_SIZE', ns.MAIN_SL_BLOCKS_PER_HOUR) %}\n {% set ns.BALANCES_SL_STATE_TRACER_HISTORY_ASYNC_CONCURRENT_REQUESTS = get_var('BALANCES_SL_STATE_TRACER_HISTORY_ASYNC_CONCURRENT_REQUESTS', 10) %}\n\n {# Balances State Tracer Silver Variables #}\n {% set ns.BALANCES_EXCLUSION_LIST_ENABLED = get_var('BALANCES_EXCLUSION_LIST_ENABLED', false) %}\n {% set ns.BALANCES_VALIDATOR_CONTRACT_ADDRESS = get_var('BALANCES_VALIDATOR_CONTRACT_ADDRESS', '') %}\n {% set ns.BALANCES_SILVER_STATE_TRACER_FULL_RELOAD_ENABLED = get_var('BALANCES_SILVER_STATE_TRACER_FULL_RELOAD_ENABLED', false) %}\n {% set ns.BALANCES_SILVER_STATE_TRACER_FR_MAX_BLOCK = get_var('BALANCES_SILVER_STATE_TRACER_FR_MAX_BLOCK', 800000) %}\n {% set ns.BALANCES_SILVER_STATE_TRACER_FULL_RELOAD_BLOCKS_PER_RUN = get_var('BALANCES_SILVER_STATE_TRACER_FULL_RELOAD_BLOCKS_PER_RUN', 800000) %}\n\n {# SL Token Reads Variables #}\n {% set ns.MAIN_SL_TOKEN_READS_BRONZE_TABLE_ENABLED = get_var('MAIN_SL_TOKEN_READS_BRONZE_TABLE_ENABLED', false) %}\n {% set ns.MAIN_SL_TOKEN_READS_CONTRACT_LIMIT = get_var('MAIN_SL_TOKEN_READS_CONTRACT_LIMIT', 1000) %}\n {% set ns.MAIN_SL_TOKEN_READS_REALTIME_SQL_LIMIT = get_var('MAIN_SL_TOKEN_READS_REALTIME_SQL_LIMIT', 3000) %}\n {% set ns.MAIN_SL_TOKEN_READS_REALTIME_PRODUCER_BATCH_SIZE = get_var('MAIN_SL_TOKEN_READS_REALTIME_PRODUCER_BATCH_SIZE', 1500) %}\n {% set ns.MAIN_SL_TOKEN_READS_REALTIME_WORKER_BATCH_SIZE = get_var('MAIN_SL_TOKEN_READS_REALTIME_WORKER_BATCH_SIZE', 500) %}\n {% set ns.MAIN_SL_TOKEN_READS_REALTIME_ASYNC_CONCURRENT_REQUESTS = get_var('MAIN_SL_TOKEN_READS_REALTIME_ASYNC_CONCURRENT_REQUESTS', 5) %}\n \n {# Observability Variables #}\n {% set ns.MAIN_OBSERV_FULL_TEST_ENABLED = get_var('MAIN_OBSERV_FULL_TEST_ENABLED', false) %}\n {% set ns.MAIN_OBSERV_EXCLUSION_LIST_ENABLED = get_var('MAIN_OBSERV_EXCLUSION_LIST_ENABLED', false) %}\n \n {# Prices Variables #}\n {% set ns.MAIN_PRICES_NATIVE_SYMBOLS = get_var('MAIN_PRICES_NATIVE_SYMBOLS', '') %}\n {% set ns.MAIN_PRICES_NATIVE_BLOCKCHAINS = get_var('MAIN_PRICES_NATIVE_BLOCKCHAINS', ns.GLOBAL_PROJECT_NAME.lower()) %}\n {% set ns.MAIN_PRICES_PROVIDER_PLATFORMS = get_var('MAIN_PRICES_PROVIDER_PLATFORMS', '') %}\n {% set ns.MAIN_PRICES_TOKEN_ADDRESSES = get_var('MAIN_PRICES_TOKEN_ADDRESSES', none) %}\n {% set ns.MAIN_PRICES_TOKEN_BLOCKCHAINS = get_var('MAIN_PRICES_TOKEN_BLOCKCHAINS', ns.GLOBAL_PROJECT_NAME.lower()) %}\n\n {# Labels Variables #}\n {% set ns.MAIN_LABELS_BLOCKCHAINS = get_var('MAIN_LABELS_BLOCKCHAINS', ns.GLOBAL_PROJECT_NAME.lower()) %}\n\n {# Scores Variables #}\n {% set ns.SCORES_FULL_RELOAD_ENABLED = get_var('SCORES_FULL_RELOAD_ENABLED', false) %}\n {% set ns.SCORES_LIMIT_DAYS = get_var('SCORES_LIMIT_DAYS', 30) %}\n \n {# NFT Variables #}\n\n {# Curated Variables #}\n {% set ns.CURATED_COMPLETE_LOOKBACK_HOURS = get_var('CURATED_COMPLETE_LOOKBACK_HOURS', '4 hours') %}\n {% set ns.CURATED_LOOKBACK_HOURS = get_var('CURATED_LOOKBACK_HOURS', '12 hours') %}\n {% set ns.CURATED_LOOKBACK_DAYS = get_var('CURATED_LOOKBACK_DAYS', '7 days') %}\n {% set ns.CURATED_FR_MODELS = get_var('CURATED_FR_MODELS', []) %}\n {% set ns.CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST = get_var('CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST', []) %}\n {% set ns.CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST = get_var('CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST', []) %}\n {% set ns.CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST = get_var('CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST', []) %}\n {% set ns.CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST = get_var('CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST', []) %}\n\n {# SL Stablecoin Reads Variables #}\n {% set ns.CURATED_SL_STABLECOIN_READS_REALTIME_SQL_LIMIT = get_var('CURATED_SL_STABLECOIN_READS_REALTIME_SQL_LIMIT', 3000) %}\n {% set ns.CURATED_SL_STABLECOIN_READS_REALTIME_PRODUCER_BATCH_SIZE = get_var('CURATED_SL_STABLECOIN_READS_REALTIME_PRODUCER_BATCH_SIZE', 1500) %}\n {% set ns.CURATED_SL_STABLECOIN_READS_REALTIME_WORKER_BATCH_SIZE = get_var('CURATED_SL_STABLECOIN_READS_REALTIME_WORKER_BATCH_SIZE', 500) %}\n {% set ns.CURATED_SL_STABLECOIN_READS_REALTIME_ASYNC_CONCURRENT_REQUESTS = get_var('CURATED_SL_STABLECOIN_READS_REALTIME_ASYNC_CONCURRENT_REQUESTS', 5) %}\n\n {% set ns.CURATED_SL_STABLECOIN_READS_HISTORY_SQL_LIMIT = get_var('CURATED_SL_STABLECOIN_READS_HISTORY_SQL_LIMIT', 20000) %}\n {% set ns.CURATED_SL_STABLECOIN_READS_HISTORY_PRODUCER_BATCH_SIZE = get_var('CURATED_SL_STABLECOIN_READS_HISTORY_PRODUCER_BATCH_SIZE', 1500) %}\n {% set ns.CURATED_SL_STABLECOIN_READS_HISTORY_WORKER_BATCH_SIZE = get_var('CURATED_SL_STABLECOIN_READS_HISTORY_WORKER_BATCH_SIZE', 500) %}\n {% set ns.CURATED_SL_STABLECOIN_READS_HISTORY_ASYNC_CONCURRENT_REQUESTS = get_var('CURATED_SL_STABLECOIN_READS_HISTORY_ASYNC_CONCURRENT_REQUESTS', 5) %}\n\n {# Curated Bridge Variables #}\n {% set ns.CURATED_DEFI_BRIDGE_CONTRACT_MAPPING = get_var('CURATED_DEFI_BRIDGE_CONTRACT_MAPPING', {}) %}\n {% set ns.CURATED_DEFI_BRIDGE_ALLBRIDGE_SOURCE_CHAIN = get_var('CURATED_DEFI_BRIDGE_ALLBRIDGE_SOURCE_CHAIN', '') %}\n {% set ns.CURATED_DEFI_BRIDGE_HOP_L1_CONTRACTS = get_var('CURATED_DEFI_BRIDGE_HOP_L1_CONTRACTS', []) %}\n {% set ns.CURATED_DEFI_BRIDGE_HOP_BRIDGE_CONTRACT = get_var('CURATED_DEFI_BRIDGE_HOP_BRIDGE_CONTRACT', '') %}\n {% set ns.CURATED_DEFI_BRIDGE_HOP_TOKEN_CONTRACT = get_var('CURATED_DEFI_BRIDGE_HOP_TOKEN_CONTRACT', '') %}\n\n {# Curated DEX Variables #}\n {% set ns.CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING = get_var('CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING', {}) %}\n {% set ns.CURATED_DEFI_DEX_DEXALOT_DEST_CHAIN_ID = get_var('CURATED_DEFI_DEX_DEXALOT_DEST_CHAIN_ID', 0) %}\n\n {# Curated Lending Variables #}\n {% set ns.CURATED_DEFI_LENDING_CONTRACT_MAPPING = get_var('CURATED_DEFI_LENDING_CONTRACT_MAPPING', {}) %}\n \n {# Return the entire namespace as a dictionary #}\n {{ return(ns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_evm.get_var"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.9785464, "supported_languages": null}, "macro.fsc_evm.set_dynamic_fields": {"name": "set_dynamic_fields", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/dynamic_gold_models/set_dynamic_fields.sql", "original_file_path": "macros/global/variables/dynamic_gold_models/set_dynamic_fields.sql", "unique_id": "macro.fsc_evm.set_dynamic_fields", "macro_sql": "{% macro set_dynamic_fields(gold_model) %}\n {# Define all fields to check #}\n {% set all_fields = [\n {'gold_model': 'fact_blocks', 'field': 'baseFeePerGas', 'source': 'blocks_fields'},\n {'gold_model': 'fact_blocks', 'field': 'totalDifficulty', 'source': 'blocks_fields'},\n {'gold_model': 'fact_blocks', 'field': 'mixHash', 'source': 'blocks_fields'},\n {'gold_model': 'fact_blocks', 'field': 'blobGasUsed', 'source': 'blocks_fields'},\n {'gold_model': 'fact_blocks', 'field': 'excessBlobGas', 'source': 'blocks_fields'},\n {'gold_model': 'fact_blocks', 'field': 'parentBeaconBlockRoot', 'source': 'blocks_fields'},\n {'gold_model': 'fact_blocks', 'field': 'withdrawals', 'source': 'blocks_fields'},\n {'gold_model': 'fact_blocks', 'field': 'withdrawalsRoot', 'source': 'blocks_fields'},\n {'gold_model': 'fact_blocks', 'field': 'sendCount', 'source': 'blocks_fields'},\n {'gold_model': 'fact_blocks', 'field': 'sendRoot', 'source': 'blocks_fields'},\n {'gold_model': 'fact_blocks', 'field': 'author', 'source': 'blocks_fields'},\n {'gold_model': 'fact_blocks', 'field': 'requestsHash', 'source': 'blocks_fields'},\n {'gold_model': 'fact_blocks', 'field': 'blockGasCost', 'source': 'blocks_fields'},\n {'gold_model': 'fact_blocks', 'field': 'extDataHash', 'source': 'blocks_fields'},\n {'gold_model': 'fact_blocks', 'field': 'extDataGasUsed', 'source': 'blocks_fields'},\n {'gold_model': 'fact_blocks', 'field': 'blockExtraData', 'source': 'blocks_fields'},\n {'gold_model': 'fact_blocks', 'field': 'milliTimestamp', 'source': 'blocks_fields'},\n {'gold_model': 'fact_transactions', 'field': 'accessList', 'source': 'transactions_fields'},\n {'gold_model': 'fact_transactions', 'field': 'maxFeePerGas', 'source': 'transactions_fields'},\n {'gold_model': 'fact_transactions', 'field': 'maxPriorityFeePerGas', 'source': 'transactions_fields'},\n {'gold_model': 'fact_transactions', 'field': 'sourceHash', 'source': 'transactions_fields'},\n {'gold_model': 'fact_transactions', 'field': 'mint', 'source': 'transactions_fields'},\n {'gold_model': 'fact_transactions', 'field': 'ethValue', 'source': 'transactions_fields'},\n {'gold_model': 'fact_transactions', 'field': 'blobVersionedHashes', 'source': 'transactions_fields'},\n {'gold_model': 'fact_transactions', 'field': 'maxFeePerBlobGas', 'source': 'transactions_fields'},\n {'gold_model': 'fact_transactions', 'field': 'yParity', 'source': 'transactions_fields'},\n {'gold_model': 'fact_transactions', 'field': 'authorizationList', 'source': 'transactions_fields'},\n {'gold_model': 'fact_transactions', 'field': 'l1Fee', 'source': 'receipts_fields'},\n {'gold_model': 'fact_transactions', 'field': 'l1FeeScalar', 'source': 'receipts_fields'},\n {'gold_model': 'fact_transactions', 'field': 'l1GasUsed', 'source': 'receipts_fields'},\n {'gold_model': 'fact_transactions', 'field': 'l1GasPrice', 'source': 'receipts_fields'},\n {'gold_model': 'fact_transactions', 'field': 'l1BaseFeeScalar', 'source': 'receipts_fields'},\n {'gold_model': 'fact_transactions', 'field': 'l1BlobBaseFee', 'source': 'receipts_fields'},\n {'gold_model': 'fact_transactions', 'field': 'l1BlobBaseFeeScalar', 'source': 'receipts_fields'},\n {'gold_model': 'fact_transactions', 'field': 'gasUsedForL1', 'source': 'receipts_fields'},\n {'gold_model': 'fact_transactions', 'field': 'l1BlockNumber', 'source': 'receipts_fields'},\n {'gold_model': 'fact_transactions', 'field': 'blobGasUsed', 'source': 'receipts_fields'},\n {'gold_model': 'fact_transactions', 'field': 'blobGasPrice', 'source': 'receipts_fields'},\n {'gold_model': 'fact_transactions', 'field': 'tokenRatio', 'source': 'receipts_fields'},\n {'gold_model': 'fact_transactions', 'field': 'timeboosted', 'source': 'receipts_fields'},\n {'gold_model': 'fact_transactions', 'field': 'operatorFeeScalar', 'source': 'receipts_fields'},\n {'gold_model': 'fact_transactions', 'field': 'operatorFeeConstant', 'source': 'receipts_fields'}\n ] %}\n \n {# Filter fields based on the specified gold_model #}\n {% set fields_to_check = [] %}\n {% for item in all_fields %}\n {% if item.gold_model == gold_model %}\n {% do fields_to_check.append(item) %}\n {% endif %}\n {% endfor %}\n \n {# Make this query explicit to avoid case issues - define the field alias with quotes #}\n {% set rpc_settings_query %}\n SELECT \n {% for item in fields_to_check %}\n array_contains('{{ item.field }}'::VARIANT, {{ item.source }}) as \"{{ item.field }}\" {% if not loop.last %},{% endif %}\n {% endfor %}\n FROM {{ ref('admin__fact_rpc_details') }}\n LIMIT 1\n {% endset %}\n\n {% set results = run_query(rpc_settings_query) %}\n \n {% if execute %}\n \n {# Create return dictionary directly from column values #}\n {% set return_dict = {} %}\n \n {% if results.rows | length > 0 %}\n {% set row = results.rows[0] %}\n \n {# Directly map from column names to values #}\n {% for i in range(results.column_names | length) %}\n {% set col_name = results.column_names[i] %}\n {% set col_value = row[col_name] %}\n {% do return_dict.update({col_name: col_value}) %}\n {% endfor %}\n {% else %}\n {# No rows returned, set all fields to false #}\n {% for field in fields_to_check %}\n {% do return_dict.update({field.field: false}) %}\n {% endfor %}\n {% endif %}\n \n {# Return the constructed dictionary #}\n {% do return(return_dict) %}\n {% else %}\n {# In parsing mode, return empty dict #}\n {% do return({}) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.9956355, "supported_languages": null}, "macro.fsc_evm.call_sample_rpc_node": {"name": "call_sample_rpc_node", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/dynamic_gold_models/call_sample_rpc_node.sql", "original_file_path": "macros/global/variables/dynamic_gold_models/call_sample_rpc_node.sql", "unique_id": "macro.fsc_evm.call_sample_rpc_node", "macro_sql": "{% macro call_sample_rpc_node(\n blockchain=none,\n node_provider=none,\n network=none,\n random_block_sample_size=none,\n vault_path_override=none,\n node_url_override=none,\n exclude_traces=true\n) %}\n\n{% set vars = return_vars() %}\n{% set global_project_name = vars.GLOBAL_PROJECT_NAME.lower() %}\n{% set global_node_provider = vars.GLOBAL_NODE_PROVIDER.lower() %}\n\n{% set target_db = 'fsc_evm_dev' if target.name != 'prod' else 'fsc_evm' %}\n\n{% set query %}\nCALL {{ target_db }}.admin.sample_rpc_node(\n BLOCKCHAIN => {% if blockchain is not none %}\n '{{ blockchain }}'\n {% else %}\n '{{ global_project_name }}'\n {% endif %},\n NODE_PROVIDER => {% if node_provider is not none %}\n '{{ node_provider }}'\n {% else %}\n '{{ global_node_provider }}'\n {% endif %}\n {% if network is not none %},\n NETWORK => '{{ network }}'\n {% endif %}\n {% if random_block_sample_size is not none %},\n RANDOM_BLOCK_SAMPLE_SIZE => {{ random_block_sample_size }}\n {% endif %}\n {% if vault_path_override is not none %},\n VAULT_PATH_OVERRIDE => '{{ vault_path_override }}'\n {% endif %}\n {% if node_url_override is not none %},\n NODE_URL_OVERRIDE => '{{ node_url_override }}'\n {% endif %}\n {% if exclude_traces is not none %},\n EXCLUDE_TRACES => {{ exclude_traces }}\n {% endif %}\n)\n{% endset %}\n\n{% do run_query(query) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018291.9995518, "supported_languages": null}, "macro.fsc_evm.create_sample_rpc_node_sp": {"name": "create_sample_rpc_node_sp", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/dynamic_gold_models/create_sample_rpc_node_sp.sql", "original_file_path": "macros/global/variables/dynamic_gold_models/create_sample_rpc_node_sp.sql", "unique_id": "macro.fsc_evm.create_sample_rpc_node_sp", "macro_sql": "{% macro create_sample_rpc_node_sp() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\", false) %}\n {% if target.database.lower() in ['fsc_evm', 'fsc_evm_dev'] %}\n\n {% set create_admin_schema_sql %}\n create schema if not exists admin;\n {% endset %}\n\n {% do run_query(create_admin_schema_sql) %}\n\n {% set create_admin_logs_table_sql %}\n create table if not exists admin.rpc_node_logs (\n log_id number autoincrement,\n inserted_at timestamp_ntz default sysdate(),\n blockchain string,\n network string,\n receipts_by_block boolean,\n blocks_per_hour number,\n result variant,\n blocks_fields array,\n transactions_fields array,\n receipts_fields array,\n traces_fields array,\n primary key (log_id)\n );\n {% endset %}\n\n {% do run_query(create_admin_logs_table_sql) %}\n\n {% set sp_compatibility_check_sql %}\n\n CREATE OR REPLACE PROCEDURE admin.sample_rpc_node(\n BLOCKCHAIN STRING,\n NODE_PROVIDER STRING,\n NETWORK STRING DEFAULT 'mainnet',\n RANDOM_BLOCK_SAMPLE_SIZE NUMBER DEFAULT 50,\n VAULT_PATH_OVERRIDE STRING DEFAULT NULL,\n NODE_URL_OVERRIDE STRING DEFAULT NULL,\n EXCLUDE_TRACES BOOLEAN DEFAULT TRUE\n )\n RETURNS VARIANT\n LANGUAGE SQL\n AS\n $$\n DECLARE\n result VARIANT;\n create_table_stmt STRING;\n BEGIN\n -- Original logic to get the result, update to generic LQ when available\n result := (\n WITH node_provider_details as (\n SELECT\n CASE\n WHEN :VAULT_PATH_OVERRIDE IS NOT NULL then :VAULT_PATH_OVERRIDE\n WHEN lower(:NODE_PROVIDER) IN ('drpc') then 'Vault/prod/evm/drpc'\n WHEN lower(:NODE_PROVIDER) IN ('quicknode') then 'Vault/prod/evm/quicknode/' || :BLOCKCHAIN || '/' || :NETWORK\n END as vault_path,\n CASE\n WHEN :NODE_URL_OVERRIDE IS NOT NULL then :NODE_URL_OVERRIDE\n WHEN lower(:NODE_PROVIDER) IN ('drpc') and lower(:NETWORK) = 'mainnet' then 'https://lb.drpc.org/ogrpc?network=' || :BLOCKCHAIN || '&dkey={KEY}'\n WHEN lower(:NODE_PROVIDER) IN ('drpc') and lower(:NETWORK) <> 'mainnet' then 'https://lb.drpc.org/ogrpc?network=' || :BLOCKCHAIN || '-' || :NETWORK || '&dkey={KEY}'\n WHEN lower(:NODE_PROVIDER) IN ('quicknode') then '{URL}'\n END as node_url\n ),\n chainhead AS (\n SELECT utils.udf_hex_to_int(\n live.udf_api(\n 'POST',\n node_url,\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'LiveQuery'\n ),\n OBJECT_CONSTRUCT(\n 'id', 1,\n 'jsonrpc', '2.0',\n 'method', 'eth_blockNumber',\n 'params', ARRAY_CONSTRUCT()\n ),\n vault_path\n ):data:result::string\n )::int as block_number\n FROM node_provider_details\n ),\n recent_blocks AS (\n SELECT \n chainhead.block_number - seq4() as block_num\n FROM chainhead, TABLE(GENERATOR(ROWCOUNT => 10))\n WHERE chainhead.block_number - seq4() > 0\n ),\n random_blocks AS (\n SELECT \n MOD(ABS(RANDOM()), (SELECT block_number FROM chainhead)) + 1 as block_num\n FROM TABLE(GENERATOR(ROWCOUNT => :RANDOM_BLOCK_SAMPLE_SIZE))\n WHERE block_num > 0\n ),\n random_numbers AS (\n SELECT block_num as random_num FROM recent_blocks\n UNION ALL\n SELECT block_num as random_num FROM random_blocks\n ),\n block_range as (\n SELECT array_agg(random_num) as block_range FROM random_numbers\n ),\n sample_receipts AS (\n SELECT \n random_num as block_number,\n live.udf_api(\n 'POST',\n node_url,\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'LiveQuery'\n ),\n OBJECT_CONSTRUCT(\n 'id', random_num,\n 'jsonrpc', '2.0',\n 'method', 'eth_getBlockReceipts',\n 'params', ARRAY_CONSTRUCT(utils.udf_int_to_hex(random_num))\n ),\n vault_path\n ):data:result as response\n FROM random_numbers\n JOIN node_provider_details ON 1=1\n ),\n sample_blocks AS (\n SELECT \n random_num as block_number,\n live.udf_api(\n 'POST',\n node_url,\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'LiveQuery'\n ),\n OBJECT_CONSTRUCT(\n 'id', random_num,\n 'jsonrpc', '2.0',\n 'method', 'eth_getBlockByNumber',\n 'params', ARRAY_CONSTRUCT(utils.udf_int_to_hex(random_num), true)\n ),\n vault_path\n ):data:result as response\n FROM random_numbers\n JOIN node_provider_details ON 1=1\n ),\n sample_traces AS (\n SELECT \n random_num as block_number,\n IFF(NOT :EXCLUDE_TRACES,\n live.udf_api(\n 'POST',\n node_url,\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'LiveQuery'\n ),\n OBJECT_CONSTRUCT(\n 'id', random_num,\n 'jsonrpc', '2.0',\n 'method', 'debug_traceBlockByNumber',\n 'params', ARRAY_CONSTRUCT(\n utils.udf_int_to_hex(random_num),\n OBJECT_CONSTRUCT('tracer', 'callTracer', 'timeout', '120s')\n )\n ),\n vault_path\n ):data:result,\n NULL\n ) as response\n FROM random_numbers\n JOIN node_provider_details ON 1=1\n ),\n receipt_fields AS (\n SELECT ARRAY_AGG(DISTINCT field_names.value::string) as fields\n FROM sample_receipts,\n LATERAL FLATTEN(input => response) as receipts,\n LATERAL FLATTEN(input => OBJECT_KEYS(receipts.value)) as field_names\n WHERE response is not null\n ),\n blocks_payload AS (\n SELECT ARRAY_AGG(DISTINCT field_names.value::string) as fields\n FROM sample_blocks,\n LATERAL FLATTEN(input => OBJECT_KEYS(response)) as field_names\n WHERE response is not null\n ),\n transactions_payload AS (\n SELECT ARRAY_AGG(DISTINCT field_names.value::string) as fields\n FROM sample_blocks,\n LATERAL FLATTEN(input => response:transactions) as txs,\n LATERAL FLATTEN(input => OBJECT_KEYS(txs.value)) as field_names\n WHERE response:transactions is not null\n ),\n trace_fields AS (\n SELECT ARRAY_AGG(DISTINCT key) as fields\n FROM sample_traces txs,\n TABLE(FLATTEN(\n input => PARSE_JSON(txs.response),\n recursive => TRUE\n )) f\n WHERE f.index IS NULL\n AND f.key != 'calls'\n AND f.path != 'result'\n ),\n block_timestamps AS (\n SELECT \n block_number,\n utils.udf_hex_to_int(response:timestamp::string)::number as unix_timestamp\n FROM sample_blocks\n WHERE response is not null\n qualify row_number() over (order by block_number desc) in (1,20)\n ),\n min_max_blocks AS (\n SELECT \n MIN(block_number) as min_block,\n MAX(block_number) as max_block\n FROM block_timestamps\n ),\n min_max_timestamps AS (\n SELECT \n b1.unix_timestamp as min_timestamp,\n b2.unix_timestamp as max_timestamp,\n mm.min_block,\n mm.max_block\n FROM min_max_blocks mm\n JOIN block_timestamps b1 ON b1.block_number = mm.min_block\n JOIN block_timestamps b2 ON b2.block_number = mm.max_block\n ),\n block_time_analysis AS (\n SELECT \n min_block,\n max_block,\n min_timestamp,\n max_timestamp,\n div0(max_timestamp - min_timestamp,max_block - min_block) as avg_block_time_seconds,\n ceil(div0(3600,div0(max_timestamp - min_timestamp, max_block - min_block))) as blocks_per_hour\n FROM min_max_timestamps\n ),\n compatibility_check AS (\n SELECT \n chainhead.block_number,\n (SELECT COUNT(*) > 0 FROM sample_receipts WHERE response is not null) as supports_receipts,\n (SELECT COUNT(*) > 0 FROM sample_blocks WHERE response is not null) as supports_blocks,\n (SELECT COUNT(*) > 0 FROM sample_traces WHERE response is not null) as supports_traces,\n block_range,\n r.fields as receipt_fields,\n b.fields as blocks_fields,\n t.fields as transactions_fields,\n tr.fields as trace_fields,\n bta.avg_block_time_seconds,\n bta.blocks_per_hour\n FROM chainhead\n JOIN block_range ON 1=1\n LEFT JOIN receipt_fields r ON 1=1\n LEFT JOIN blocks_payload b ON 1=1\n LEFT JOIN transactions_payload t ON 1=1\n LEFT JOIN trace_fields tr ON 1=1\n LEFT JOIN block_time_analysis bta ON 1=1\n )\n SELECT \n OBJECT_CONSTRUCT(\n 'blockchain', :BLOCKCHAIN,\n 'network', :NETWORK,\n 'node_provider', :NODE_PROVIDER,\n 'chainhead_block', block_number,\n 'eth_getBlockReceipts_supported', supports_receipts,\n 'eth_getBlockByNumber_supported', supports_blocks,\n 'debug_traceBlockByNumber_supported', supports_traces,\n 'range_tested', block_range,\n 'receipts_fields', receipt_fields,\n 'blocks_fields', blocks_fields,\n 'txs_fields', transactions_fields,\n 'traces_fields', trace_fields,\n 'avg_block_time_seconds', avg_block_time_seconds,\n 'blocks_per_hour', blocks_per_hour::float\n )\n FROM compatibility_check\n );\n\n -- Log the result\n INSERT INTO admin.rpc_node_logs (\n BLOCKCHAIN,\n NETWORK,\n RECEIPTS_BY_BLOCK,\n BLOCKS_PER_HOUR,\n RESULT,\n BLOCKS_FIELDS,\n TRANSACTIONS_FIELDS,\n RECEIPTS_FIELDS,\n TRACES_FIELDS\n )\n SELECT \n :BLOCKCHAIN,\n :NETWORK,\n :result:eth_getBlockReceipts_supported::boolean,\n :result:blocks_per_hour::float,\n :result,\n :result:blocks_fields::array,\n :result:txs_fields::array,\n :result:receipts_fields::array,\n :result:traces_fields::array\n FROM (SELECT :result as result);\n\n RETURN result;\n\n EXCEPTION\n WHEN OTHER THEN\n -- Create error result\n result := OBJECT_CONSTRUCT(\n 'blockchain', :BLOCKCHAIN,\n 'network', :NETWORK,\n 'node_provider', :NODE_PROVIDER,\n 'error', 'Procedure execution failed: ' || SQLERRM\n );\n \n -- Log the error result\n INSERT INTO admin.rpc_node_logs (\n BLOCKCHAIN,\n NETWORK,\n RECEIPTS_BY_BLOCK,\n BLOCKS_PER_HOUR,\n RESULT,\n BLOCKS_FIELDS,\n TRANSACTIONS_FIELDS,\n RECEIPTS_FIELDS,\n TRACES_FIELDS\n )\n SELECT \n :BLOCKCHAIN,\n :NETWORK,\n NULL, -- For error cases, we set RECEIPTS_BY_BLOCK to NULL\n NULL, -- For error cases, we set BLOCKS_PER_HOUR to NULL\n :result,\n NULL, -- Arrays will be NULL for error cases\n NULL,\n NULL,\n NULL\n FROM (SELECT :result as result);\n \n RETURN result;\n END;\n $$;\n {% endset %}\n\n {% do run_query(sp_compatibility_check_sql) %}\n {% set permissions_sql %}\n grant usage on schema admin to internal_dev;\n grant usage on procedure admin.sample_rpc_node(string, string, string, number, string, string, boolean) to role internal_dev;\n grant usage on schema admin to dbt_cloud_fsc_evm;\n grant usage on procedure admin.sample_rpc_node(string, string, string, number, string, string, boolean) to role dbt_cloud_fsc_evm;\n {% endset %}\n\n {% do run_query(permissions_sql) %}\n\n {{ log(\"Created stored procedure: admin.sample_rpc_node\", info=True) }}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.0144784, "supported_languages": null}, "macro.fsc_evm.blast_vars": {"name": "blast_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/blast_vars.sql", "original_file_path": "macros/global/variables/project_vars/blast_vars.sql", "unique_id": "macro.fsc_evm.blast_vars", "macro_sql": "{% macro blast_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'blast',\n 'GLOBAL_NODE_PROVIDER': 'quicknode',\n 'GLOBAL_NODE_VAULT_PATH': 'Vault/prod/blast/quicknode/mainnet',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0x4300000000000000000000000000000000000004',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'WETH',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'ETH',\n 'MAIN_SL_BLOCKS_PER_HOUR': 1800,\n 'MAIN_PRICES_NATIVE_SYMBOLS': 'ETH',\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS': 'ethereum',\n 'MAIN_PRICES_PROVIDER_PLATFORMS': 'Blast',\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME': 'blastscan',\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED': true,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL': 'https://api.blastscan.io/api?module=contract&action=getabi&address=',\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH': 'Vault/prod/block_explorers/blast_scan',\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED': true\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.0160735, "supported_languages": null}, "macro.fsc_evm.mantle_vars": {"name": "mantle_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/mantle_vars.sql", "original_file_path": "macros/global/variables/project_vars/mantle_vars.sql", "unique_id": "macro.fsc_evm.mantle_vars", "macro_sql": "{% macro mantle_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'mantle',\n 'GLOBAL_NODE_PROVIDER': 'quicknode',\n 'GLOBAL_NODE_VAULT_PATH': 'Vault/prod/mantle/quicknode/mainnet',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'WMNT',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'MNT',\n 'MAIN_SL_BLOCKS_PER_HOUR': 1800,\n 'MAIN_PRICES_NATIVE_SYMBOLS': ['ETH', 'MNT'],\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS': ['ethereum', 'mantle'],\n 'MAIN_PRICES_PROVIDER_PLATFORMS': ['mantle', 'Mantle'],\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME': 'MantleScan',\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED': true,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL': 'https://api.mantlescan.xyz/api?module=contract&action=getabi&address=',\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH': 'Vault/prod/block_explorers/mantle_scan',\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED': true,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON': '24,54 * * * *',\n 'MAIN_GHA_SCHEDULED_SCORES_CRON': '5 5 * * *',\n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING': {\n 'layerzero': {\n 'v2': {\n 'bridge': '0x1a44076050125825900e736c501f859c50fe728c'\n }\n },\n 'stargate': {\n 'v2': {\n 'bridge': '0x41b491285a4f888f9f636cec8a363ab9770a0aef'\n }\n }\n }\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.0185044, "supported_languages": null}, "macro.fsc_evm.swell_vars": {"name": "swell_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/swell_vars.sql", "original_file_path": "macros/global/variables/project_vars/swell_vars.sql", "unique_id": "macro.fsc_evm.swell_vars", "macro_sql": "{% macro swell_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'swell',\n 'GLOBAL_NODE_PROVIDER': 'drpc',\n 'GLOBAL_NODE_URL': 'https://lb.drpc.org/ogrpc?network=swell&dkey={KEY}',\n 'GLOBAL_NODE_VAULT_PATH': 'Vault/prod/evm/drpc',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0x4200000000000000000000000000000000000006',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'WETH',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'ETH',\n 'MAIN_SL_BLOCKS_PER_HOUR': 1800,\n 'MAIN_PRICES_NATIVE_SYMBOLS': 'ETH',\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS': 'ethereum',\n 'MAIN_PRICES_PROVIDER_PLATFORMS': 'Swell',\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME': 'SwellExplorer',\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL': 'https://explorer.swellnetwork.io/api/v2/smart-contracts/',\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED': true,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON': '17,47 * * * *',\n 'MAIN_GHA_SCHEDULED_SCORES_CRON': '30 5 * * *'\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.0201337, "supported_languages": null}, "macro.fsc_evm.ethereum_vars": {"name": "ethereum_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/ethereum_vars.sql", "original_file_path": "macros/global/variables/project_vars/ethereum_vars.sql", "unique_id": "macro.fsc_evm.ethereum_vars", "macro_sql": "{% macro ethereum_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'ethereum',\n 'GLOBAL_NODE_PROVIDER': 'quicknode',\n 'GLOBAL_NODE_VAULT_PATH': 'Vault/prod/evm/quicknode/ethereum/mainnet',\n 'GLOBAL_NODE_URL': '{URL}',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'WETH',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'ETH',\n 'MAIN_SL_BLOCKS_PER_HOUR': 300,\n 'MAIN_PRICES_NATIVE_SYMBOLS': 'ETH',\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS': 'ethereum',\n 'MAIN_PRICES_PROVIDER_PLATFORMS': 'Ethereum',\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME': 'etherscan',\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED': true,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL': 'https://api.etherscan.io/api?module=contract&action=getabi&address=',\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH': 'Vault/prod/ethereum/block_explorers/etherscan',\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON': '0,30 * * * *',\n 'MAIN_GHA_SCHEDULED_SCORES_CRON': '40 5 * * *',\n 'CUSTOM_GHA_TEST_BEACON_CRON': '5 9 * * *',\n 'CUSTOM_GHA_STREAMLINE_READS_CRON': '40 1-23/2 * * *',\n 'CUSTOM_GHA_STREAMLINE_BEACON_CRON': '55 */1 * * *',\n 'CUSTOM_GHA_SCHEDULED_BEACON_CRON': '10 */2 * * *',\n 'CUSTOM_GHA_NFT_READS_CRON': '0 * * * *',\n 'CUSTOM_GHA_NFT_LIST_CRON': '0 0,12 * * *',\n 'MAIN_OBSERV_EXCLUSION_LIST_ENABLED': true,\n 'MAIN_SL_TOKEN_READS_BRONZE_TABLE_ENABLED': true,\n 'CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST': ['silo-v1','aave-v1','flux-v1','aave-v2','aave-v2.1','sturdy-v1','silo-v2'],\n 'CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST': ['hashflow-v1','pancakeswap-v2','synthetix-v1'],\n 'CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST': ['kyberswap-v2'],\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST': ['ronin_axie_bridge-v1','multichain-v7','symbiosis-v1','axie_infinity-v2','across-v1','near_rainbow_bridge-v1','hop-v1'],\n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING': {\n 'uniswap': {\n 'v2': {\n 'uni_v2_pair_created': '0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f'\n },\n 'v3': {\n 'uni_v3_pool_created': '0x1f98431c8ad98523631ae4a59f267346ea31f984'\n },\n 'v4': {\n 'factory': '0x000000000004444c5dc75cb358380d2e3de08a90'\n }\n },\n 'sushiswap': {\n 'v1': {\n 'uni_v2_pair_created': '0xc0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac'\n }\n },\n 'fraxswap': {\n 'v1': {\n 'uni_v2_pair_created': ['0xb076b06f669e682609fb4a8c6646d2619717be4b',\n '0x43ec799eadd63848443e2347c49f5f52e8fe0f6f']\n }\n },\n 'kyberswap': {\n 'v1': {\n 'dynamic': '0x833e4083b7ae46cea85695c4f7ed25cdad8886de',\n 'static': '0x1c758af0688502e49140230f6b0ebd376d429be5'\n },\n 'v2': {\n 'elastic': '0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a'\n }\n },\n 'dodo': {\n 'v1': {\n 'deployer': ['0x5e5a7b76462e4bdf83aa98795644281bdba80b88',\n '0x17dbfa501f2f376d092fa69d3223a09bba4efdf7'],\n 'dodo_birth': ['0xbd337924f000dceb119153d4d3b1744b22364d25',\n '0xe1b5d7a770cb1b40c859a52696e7e3dd1c57b0ba',\n '0x3a97247df274a17c59a3bd12735ea3fcdfb49950'],\n 'proxy': ['0x91e1c84ba8786b1fae2570202f0126c0b88f6ec7',\n '0x9b64c81ba54ea51e1f6b7fefb3cff8aa6f1e2a09',\n '0xe6aafa1c45d9d0c64686c1f1d17b9fe9c7dab05b',\n '0xe55154d09265b18ac7cdac6e646672a5460389a1']\n },\n 'v2': {\n 'new_pool': ['0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8',\n '0x5336ede8f971339f6c0e304c66ba16f1296a2fbe',\n '0x6b4fa0bc61eddc928e0df9c7f01e407bfcd3e5ef',\n '0xb5dc5e183c2acf02ab879a8569ab4edaf147d537',\n '0x6fddb76c93299d985f4d3fc7ac468f9a168577a4',\n '0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13',\n '0x72d220ce168c4f361dd4dee5d826a01ad8598f6c']\n }\n },\n 'hashflow': {\n 'v1': {\n 'create': ['0x63ae536fec0b57bdeb1fd6a893191b4239f61bff',\n '0xc11a1e6fde432df9467d6d1a5454b54a63b86c8c',\n '0x596d32f9b7c1f2e73f5071c66b5e336e27d00da4']\n },\n 'v3': {\n 'create_pool': '0xde828fdc3f497f16416d1bb645261c7c6a62dab5'\n }\n },\n 'woofi': {\n 'v2': {\n 'woo_router_swap': ['0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7',\n '0x044c08639bd59beb4f6ec52c0da6cd47283534e8']\n }\n },\n 'curve': {\n 'v1': {\n 'deployer': ['0x7eeac6cddbd1d0b8af061742d41877d7f707289a',\n '0xf18056bbd320e96a48e3fbf8bc061322531aac99',\n '0xc447fcaf1def19a583f97b3620627bf69c05b5fb',\n '0xb9fc157394af804a3578134a6585c0dc9cc990d4',\n '0xfd6f33a0509ec67defc500755322abd9df1bd5b8',\n '0xbf7d65d769e82e7b862df338223263ba33f72623',\n '0xa6df4fcb1ca559155a678e9aff5de3f210c0ff84',\n '0x0959158b6040d32d04c301a72cbfd6b39e21c9ae',\n '0x745748bcfd8f9c2de519a71d789be8a63dd7d66c',\n '0x3e0139ce3533a42a7d342841aee69ab2bfee1d51',\n '0xbabe61887f1de2713c6f97e567623453d3c79f67',\n '0x7f7abe23fc1ad4884b726229ceaafb1179e9c9cf',\n '0x4f8846ae9380b90d2e71d5e3d042dff3e7ebb40d',\n '0x0c0e5f2ff0ff18a3be9b835635039256dc4b4963']\n }\n },\n 'balancer': {\n 'v1': {\n 'vault': '0xba12222222228d8ba445958a75a0704d566bf2c8'\n }\n },\n 'maverick': {\n 'v1': {\n 'swap': ['0x4faf448121bf2985b991c0261dd356a9803b3cae',\n '0xa5ebd82503c72299073657957f41b9cea6c0a43a']\n }\n },\n 'pancakeswap': {\n 'v1': {\n 'uni_v2_pair_created': '0x1097053fd2ea711dad45caccc45eff7548fcb362'\n },\n 'v2': {\n 'mm_router': '0x9ca2a439810524250e543ba8fb6e88578af242bc'\n },\n 'v3': {\n 'factory': '0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865'\n }\n },\n 'shibaswap': {\n 'v1': {\n 'uni_v2_pair_created': '0x115934131916c8b277dd010ee02de363c09d037c'\n }\n },\n 'synthetix': {\n 'v1': {\n 'synth_exchange': ['0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f',\n '0xc011a72400e58ecd99ee497cf89e3775d4bd732f']\n }\n },\n 'trader_joe': {\n 'v2.1': {\n 'lb_pair_created': '0xdc8d77b69155c7e68a95a4fb0f06a71ff90b943a'\n }\n },\n 'verse': {\n 'v1': {\n 'uni_v2_pair_created': '0xee3e9e46e34a27dc755a63e2849c9913ee1a06e2'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING': {\n 'across': {\n 'v1': {\n 'funds_deposited': '0x5c7bcd6e7de5423a257d81b442095a1a6ced35c5'\n },\n 'v3': {\n 'funds_deposited': '0x5c7bcd6e7de5423a257d81b442095a1a6ced35c5'\n }\n },\n 'allbridge': {\n 'v1': {\n 'sent': '0xbbbd1bbb4f9b936c3604906d7592a644071de884'\n },\n 'v2': {\n 'tokens_sent': '0x609c690e8f7d68a59885c9132e812eebdaaf0c9e',\n 'lp': ['0x7dbf07ad92ed4e26d5511b4f285508ebf174135d',\n '0xa7062bba94c91d565ae33b893ab5dfaf1fc57c4d']\n }\n },\n 'axelar': {\n 'v1': {\n 'gateway': '0x4f4495243837681061c4743b74b3eedf548d56a5',\n 'gas_service': '0x2d5d7d31f671f86c782533cc367f14109a082712',\n 'squid_router': '0xce16f69375520ab01377ce7b88f5ba8c48f8d666',\n 'burn': '0x0000000000000000000000000000000000000000'\n }\n },\n 'chainlink_ccip': {\n 'v1': {\n 'router': '0x80226fc0ee2b096224eeac085bb9a8cba1146f7d'\n }\n },\n 'circle_cctp': {\n 'v1': {\n 'deposit': '0xbd3fa81b58ba92a82136038b25adec7066af3155'\n },\n 'v2': {\n 'deposit': '0x28b5a0e9c621a5badaa536219b3a228c8168cf5d'\n }\n },\n 'celer_cbridge': {\n 'v1': {\n 'bridge': '0x5427fefa711eff984124bfbb1ab6fbf5e3da1820'\n }\n },\n 'dln_debridge': {\n 'v1': {\n 'source': '0xef4fb24ad0916217251f553c0596f8edc630eb66'\n }\n },\n 'everclear': {\n 'v1': {\n 'bridge': '0xa05a3380889115bf313f1db9d5f335157be4d816'\n }\n },\n 'eywa': {\n 'v1': {\n 'portal': ['0xece9cf6a8f2768a3b8b65060925b646afeaa5167',\n '0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe',\n '0xbf0b5d561b986809924f88099c4ff0e6bcce60c9']\n }\n },\n 'layerzero': {\n 'v2': {\n 'bridge': '0x1a44076050125825900e736c501f859c50fe728c'\n }\n },\n 'meson': {\n 'v1': {\n 'bridge': '0x25ab3efd52e6470681ce037cd546dc60726948d3'\n }\n },\n 'multichain': {\n 'v7': {\n 'router': ['0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3',\n '0x93251f98acb0c83904320737aec091bce287f8f5']\n }\n },\n 'stargate': {\n 'v1': {\n 'factory': '0x06d538690af257da524f25d0cd52fd85b1c2173e',\n 'bridge': '0x296f55f8fb28e498b858d0bcda06d955b2cb3f97'\n },\n 'v2': {\n 'bridge': '0x6d6620efa72948c5f68a3c8646d58c00d3f4a980'\n }\n },\n 'symbiosis': {\n 'v1': {\n 'bridge': ['0xb80fdaa74dda763a8a158ba85798d373a5e84d84',\n '0xb8f275fbf7a959f4bce59999a2ef122a099e81a8']\n }\n },\n 'synapse': {\n 'v1': {\n 'token_bridge': '0x2796317b0ff8538f253012862c06787adfb8ceb6',\n 'token_bridge_swap': '0x2796317b0ff8538f253012862c06787adfb8ceb6'\n }\n },\n 'wormhole': {\n 'v1': {\n 'token_bridge': '0x3ee18b2214aff97000d974cf647e7c347e8fa585'\n }\n },\n 'axie_infinity': {\n 'v2': {\n 'deposit_requested': '0x64192819ac13ef72bf6b5ae239ac672b43a9af08'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_ALLBRIDGE_SOURCE_CHAIN': 'ethereum mainnet',\n 'CURATED_DEFI_BRIDGE_HOP_L1_CONTRACTS': ['0xb8901acb165ed027e32754e0ffe830802919727f',\n '0x236fe0ffa7118505f2a1c35a039f6a219308b1a7'],\n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING': {\n 'flux': {\n 'v1': {\n 'comp_v2_origin_from_address': '0x690043fb6826f9d9381c56f43971f4f044bce3aa'\n }\n },\n 'strike': {\n 'v1': {\n 'comp_v2_origin_from_address': '0x752dfb1c709eea4621c8e95f48f3d0b6dde5d126'\n }\n },\n 'compound': {\n 'v2': {\n 'comp_v2_origin_from_address': ['0x54a37d93e57c5da659f508069cf65a381b61e189',\n '0x96fa6acfc5f683db191234c74d315e5d732b07c0',\n '0xa7ff0d561cd15ed525e31bbe0af3fe34ac2059f6',\n '0x2b384212edc04ae8bb41738d05ba20e33277bf33',\n '0x5f32db4e59165e2745496a456eaab10a03dd38be',\n '0x3cafceed09e25951c33046699d07d7761eb3ed4f',\n '0x18c8f1222083997405f2e482338a4650ac02e1d6',\n '0xfe83af639f769ead20bad76067abc120245a06a9',\n '0xa8f4514e4db0ce95e30142cc8baa5e6c921e16a5']\n },\n 'v3': {\n 'comp_v3_origin_from_address': ['0x343715fa797b8e9fe48b9efab4b54f01ca860e78', '0x2501713a67a3dedde090e42759088a7ef37d4eab']\n }\n },\n 'fraxlend': {\n 'v1': {\n 'fraxlend_origin_from_address': ['0xcbc616d595d38483e6adc45c7e426f44bf230928',\n '0x381e2495e683868f693aa5b1414f712f21d34b40',\n '0x05fb8ec3c41da95b26fcb85503daf8b89b89a935',\n '0xf4e1d185666a624099298fcc42c50ba662dc7e52',\n '0x31562ae726afebe25417df01bedc72ef489f45b3',\n '0xdb3388e770f49a604e11f1a2084b39279492a61f',\n '0x6e74053a3798e0fc9a9775f7995316b27f21c4d2']\n }\n },\n 'radiant': {\n 'v2': {\n 'aave_treasury': '0x28e395a54a64284dba39652921cd99924f4e3797',\n 'aave_version_address': '0xa950974f64aa33f27f6c5e017eee93bf7588ed07'\n }\n },\n 'spark': {\n 'v1': {\n 'aave_treasury': '0xb137e7d16564c81ae2b0c8ee6b55de81dd46ece5',\n 'aave_version_address': '0xc13e21b648a5ee794902342038ff3adab66be987'\n }\n },\n 'sturdy': {\n 'v1': {\n 'aave_treasury': '0xfd1d36995d76c0f75bbe4637c84c06e4a68bbb3a',\n 'aave_version_address': ['0xa422ca380bd70eef876292839222159e41aaee17','0x9f72dc67cec672bb99e3d02cbea0a21536a2b657']\n }\n },\n 'aave': {\n 'v3': {\n 'aave_treasury': '0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c',\n 'aave_version_address': '0x87870bca3f3fd6335c3f4ce8392d69350b4fa4e2'\n },\n 'v2': {\n 'aave_pool_addresses': ['0x311bb771e4f8952e6da169b425e7e92d6ac45756',\n '0x4e1c7865e7be78a7748724fa0409e88dc14e67aa']\n },\n 'v2.1': {\n 'aave_pool_addresses': '0x23a875ede3f1030138701683e42e9b16a7f87768'\n },\n 'v1': {\n 'aave_pool_addresses': [\n '0x1e70af20976b2c7e72fdc8016bcdffded12f3464',\n '0x4965f6fa20fe9728decf5165016fc338a5a85abf',\n '0xed2ebe33a237d2e2ba8bbea210616ee3d10b92db'\n ]\n }\n },\n 'euler': {\n 'v1': {\n 'euler_origin_to_address': '0x29a56a1b8214d9cf7c5561811750d5cbdb45cc8e'\n }\n },\n 'silo': {\n 'v1': {\n 'silo_factory': '0xb7d391192080674281baab8b3083154a5f64cd0a',\n 'silo_tokens_factory': '0x0e37df413f97fc198a84a21bc463c41b516ad622',\n },\n 'v2': {\n 'silo_factory': '0x4d919cecfd4793c0d47866c8d0a02a0950737589',\n 'silo_tokens_factory': '0x7ed1160719ab280760faa0ba26cf13139904cba5',\n }\n },\n 'morpho': {\n 'v1': {\n 'morpho_blue_address': '0xbbbbbbbbbb9cc5e90e3b3af64bdaf62c37eeffcb'\n }\n }\n }\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.0625358, "supported_languages": null}, "macro.fsc_evm.arbitrum_vars": {"name": "arbitrum_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/arbitrum_vars.sql", "original_file_path": "macros/global/variables/project_vars/arbitrum_vars.sql", "unique_id": "macro.fsc_evm.arbitrum_vars", "macro_sql": "{% macro arbitrum_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'arbitrum',\n 'GLOBAL_NODE_PROVIDER': 'quicknode',\n 'GLOBAL_NODE_VAULT_PATH': 'Vault/prod/evm/quicknode/arbitrum/mainnet',\n 'GLOBAL_NODE_URL': '{URL}',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0x82af49447d8a07e3bd95bd0d56f35241523fbab1',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'WETH',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'ETH',\n 'MAIN_SL_BLOCKS_PER_HOUR': 14200,\n 'MAIN_PRICES_NATIVE_SYMBOLS': 'ETH',\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS': 'ethereum',\n 'MAIN_PRICES_PROVIDER_PLATFORMS': 'Arbitrum',\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME': 'arbiscan',\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED': true,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL': 'https://api.arbiscan.io/api?module=contract&action=getabi&address=',\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH': 'Vault/prod/block_explorers/arbitrum_scan',\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED': true,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON': '5,35 * * * *',\n 'MAIN_GHA_SCHEDULED_SCORES_CRON': '5 5 * * *',\n 'MAIN_CORE_TRACES_ARB_MODE': true,\n 'MAIN_OBSERV_EXCLUSION_LIST_ENABLED': true,\n 'CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST': ['radiant-v2','radiant-v1'],\n 'CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST': ['hashflow-v1','gmx-v1','woofi-v3','woofi-v1'],\n 'CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST': ['trader_joe-v2','kyberswap-v1','kyberswap-v2','zyberswap-v2','fraxswap-v1'],\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST': ['hyperliquid-v1','across-v1','multichain-v7','symbiosis-v1','hop-v1'],\n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING': {\n 'uniswap': {\n 'v2': {\n 'uni_v2_pair_created': '0xf1d7cc64fb4452f05c498126312ebe29f30fbcf9'\n },\n 'v3': {\n 'uni_v3_pool_created': '0x1f98431c8ad98523631ae4a59f267346ea31f984'\n }\n },\n 'sushiswap': {\n 'v1': {\n 'uni_v2_pair_created': '0xc35dadb65012ec5796536bd9864ed8773abc74c4'\n },\n 'v2': {\n 'uni_v3_pool_created': '0x1af415a1eba07a4986a52b6f2e7de7003d82231e'\n }\n },\n 'fraxswap': {\n 'v1': {\n 'uni_v2_pair_created': ['0x5ca135cb8527d76e932f34b5145575f9d8cbe08e',\n '0x8374a74a728f06bea6b7259c68aa7bbb732bfead']\n }\n },\n 'kyberswap': {\n 'v1': {\n 'dynamic': '0xd9bfe9979e9ca4b2fe84ba5d4cf963bbcb376974',\n 'static': '0x1c758af0688502e49140230f6b0ebd376d429be5'\n },\n 'v2': {\n 'elastic': ['0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a',\n '0xc7a590291e07b9fe9e64b86c58fd8fc764308c4a']\n }\n },\n 'dodo': {\n 'v1': {\n 'dodo_birth': '0xbcc3401e16c25eaf4d3fed632ce3288503883b1f',\n 'proxy': '0xd5a7e197bace1f3b26e2760321d6ce06ad07281a'\n },\n 'v2': {\n 'new_pool': ['0xa6cf3d163358af376ec5e8b7cc5e102a05fde63d',\n '0xddb13e6dd168e1a68dc2285cb212078ae10394a9',\n '0x7b07164ecfaf0f0d85dfc062bc205a4674c75aa0',\n '0x1506b54a1c0ea1b2f4a84866ec5776f7f6e7f0b1',\n '0x9340e3296121507318874ce9c04afb4492af0284',\n '0xc8fe2440744dcd733246a4db14093664defd5a53',\n '0xda4c4411c55b0785e501332354a036c04833b72b'],\n 'proxy': '0x8ab2d334ce64b50be9ab04184f7ccba2a6bb6391'\n }\n },\n 'hashflow': {\n 'v1': {\n 'create': ['0xe43632337d3f9a52ffd098fe71a57cc5961c041f',\n '0x63ae536fec0b57bdeb1fd6a893191b4239f61bff',\n '0x75fb2ab4d5b0de8b1a1acdc9124887d35d459084']\n },\n 'v3': {\n 'create_pool': '0xde828fdc3f497f16416d1bb645261c7c6a62dab5'\n }\n },\n 'woofi': {\n 'v1': {\n 'woo_swap': ['0x39d361e66798155813b907a70d6c2e3fdafb0877',\n '0xc04362cf21e6285e295240e30c056511df224cf4',\n '0x86b1742a1d7c963d3e8985829d722725316abf0a',\n '0xeff23b4be1091b53205e35f3afcd9c7182bf3062',\n '0xb89a33227876aef02a7ebd594af9973aece2f521',\n '0x8693f9701d6db361fe9cc15bc455ef4366e39ae0',\n '0x1f79f8a65e02f8a137ce7f79c038cc44332df448',\n '0xed9e3f98bbed560e66b89aac922e29d4596a9642']\n },\n 'v2': {\n 'woo_router_swap': ['0xcdfd61a8303beb5c8dd2a6d02df8d228ce15b9f3',\n '0x9aed3a8896a85fe9a8cac52c9b402d092b629a30',\n '0xd2635bc7e4e4f63b2892ed80d0b0f9dff7eda899',\n '0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7']\n },\n 'v3': {\n 'woo_router_swap': '0xb130a49065178465931d4f887056328cea5d723f'\n }\n },\n 'curve': {\n 'v1': {\n 'deployer': ['0x7eeac6cddbd1d0b8af061742d41877d7f707289a',\n '0x745748bcfd8f9c2de519a71d789be8a63dd7d66c',\n '0xbabe61887f1de2713c6f97e567623453d3c79f67',\n '0xb17b674d9c5cb2e441f8e196a2f048a81355d031']\n }\n },\n 'balancer': {\n 'v1': {\n 'vault': '0xba12222222228d8ba445958a75a0704d566bf2c8'\n }\n },\n 'dexalot': {\n 'v1': {\n 'swap_executed': '0x010224949cca211fb5ddfedd28dc8bf9d2990368'\n }\n },\n 'gmx': {\n 'v1': {\n 'swap': '0x489ee077994b6658eafa855c308275ead8097c4a'\n },\n 'v2': {\n 'swap': '0xc8ee91a54287db53897056e12d9819156d3822fb'\n }\n },\n 'ramses': {\n 'v2': {\n 'uni_v3_pool_created': '0xaa2cd7477c451e703f3b9ba5663334914763edf8'\n }\n },\n 'sparta': {\n 'v1': {\n 'uni_v2_pair_created': '0xfe8ec10fe07a6a6f4a2584f8cd9fe232930eaf55'\n }\n },\n 'trader_joe': {\n 'v1': {\n 'uni_v2_pair_created': '0xae4ec9901c3076d0ddbe76a520f9e90a6227acb7'\n },\n 'v2': {\n 'lb_pair_created': '0x1886d09c9ade0c5db822d85d21678db67b6c2982'\n },\n 'v2.1': {\n 'lb_pair_created': ['0x8e42f2f4101563bf679975178e880fd87d3efd4e',\n '0xee0616a2deaa5331e2047bc61e0b588195a49cea',\n '0x8597db3ba8de6baadeda8cba4dac653e24a0e57b']\n },\n 'v2.2': {\n 'lb_pair_created': '0xb43120c4745967fa9b93e79c149e66b0f2d6fe0c'\n }\n },\n 'camelot': {\n 'v1': {\n 'uni_v2_pair_created': '0x6eccab422d763ac031210895c81787e87b43a652'\n },\n 'v2': {\n 'pool': ['0xd490f2f6990c0291597fd1247651b4e0dcf684dd',\n '0x1a3c9b1d2f0529d97f2afc5136cc23e58f1fd35b']\n }\n },\n 'maverick': {\n 'v2': {\n 'factory': '0x0a7e848aca42d879ef06507fca0e7b33a0a63c1e'\n }\n },\n 'pancakeswap': {\n 'v3': {\n 'factory': '0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865'\n }\n },\n 'zyberswap': {\n 'v1': {\n 'uni_v2_pair_created': '0xac2ee06a14c52570ef3b9812ed240bce359772e7'\n },\n 'v2': {\n 'pool': '0x9c2abd632771b433e5e7507bcaa41ca3b25d8544'\n }\n },\n },\n 'CURATED_DEFI_DEX_DEXALOT_DEST_CHAIN_ID': 42161,\n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING': {\n 'across': {\n 'v1': {\n 'funds_deposited': '0xe35e9842fceaca96570b734083f4a58e8f7c5f2a'\n },\n 'v3': {\n 'funds_deposited': '0xe35e9842fceaca96570b734083f4a58e8f7c5f2a'\n }\n },\n 'allbridge': {\n 'v2': {\n 'tokens_sent': '0x9ce3447b58d58e8602b7306316a5ff011b92d189',\n 'lp': ['0x47235cb71107cc66b12af6f8b8a9260ea38472c7','0x690e66fc0f8be8964d40e55ede6aebdfcb8a21df']\n }\n },\n 'axelar': {\n 'v1': {\n 'gateway': '0xe432150cce91c13a887f7d836923d5597add8e31',\n 'gas_service': '0x2d5d7d31f671f86c782533cc367f14109a082712',\n 'squid_router': '0xce16f69375520ab01377ce7b88f5ba8c48f8d666',\n 'burn': '0x0000000000000000000000000000000000000000'\n }\n },\n 'chainlink_ccip': {\n 'v1': {\n 'router': '0x141fa059441e0ca23ce184b6a78bafd2a517dde8'\n }\n },\n 'circle_cctp': {\n 'v1': {\n 'deposit': '0x19330d10d9cc8751218eaf51e8885d058642e08a'\n },\n 'v2': {\n 'deposit': '0x28b5a0e9c621a5badaa536219b3a228c8168cf5d'\n }\n },\n 'celer_cbridge': {\n 'v1': {\n 'bridge': ['0xdd90e5e87a2081dcf0391920868ebc2ffb81a1af',\n '0x1619de6b6b20ed217a58d00f37b9d47c7663feca']\n }\n },\n 'dln_debridge': {\n 'v1': {\n 'source': '0xef4fb24ad0916217251f553c0596f8edc630eb66'\n }\n },\n 'everclear': {\n 'v1': {\n 'bridge': '0xa05a3380889115bf313f1db9d5f335157be4d816'\n }\n },\n 'eywa': {\n 'v2': {\n 'portal': ['0xece9cf6a8f2768a3b8b65060925b646afeaa5167',\n '0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe',\n '0xbf0b5d561b986809924f88099c4ff0e6bcce60c9']\n }\n },\n 'hyperliquid': {\n 'v1': {\n 'bridge': '0xc67e9efdb8a66a4b91b1f3731c75f500130373a4',\n 'token': '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8'\n },\n 'v2': {\n 'bridge': '0x2df1c51e09aecf9cacb7bc98cb1742757f163df7',\n 'token': '0xaf88d065e77c8cc2239327c5edb3a432268e5831'\n }\n },\n 'layerzero': {\n 'v2': {\n 'bridge': '0x1a44076050125825900e736c501f859c50fe728c'\n }\n },\n 'meson': {\n 'v1': {\n 'bridge': '0x25ab3efd52e6470681ce037cd546dc60726948d3'\n }\n },\n 'multichain': {\n 'v7': {\n 'router': '0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3'\n }\n },\n 'stargate': {\n 'v1': {\n 'factory': '0x55bdb4164d28fbaf0898e0ef14a589ac09ac9970',\n 'bridge': '0x352d8275aae3e0c2404d9f68f6cee084b5beb3dd'\n },\n 'v2': {\n 'bridge': '0x19cfce47ed54a88614648dc3f19a5980097007dd'\n }\n },\n 'symbiosis': {\n 'v1': {\n 'bridge': ['0x0425841529882628880fbd228ac90606e0c2e09a',\n '0x01a3c8e513b758ebb011f7afaf6c37616c9c24d9']\n }\n },\n 'synapse': {\n 'v1': {\n 'token_bridge': '0x6f4e8eba4d337f874ab57478acc2cb5bacdc19c9',\n 'token_bridge_swap': '0x6f4e8eba4d337f874ab57478acc2cb5bacdc19c9'\n }\n },\n 'wormhole': {\n 'v1': {\n 'token_bridge': '0x0b2402144bb366a632d14b83f244d2e0e21bd39c'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_HOP_BRIDGE_CONTRACT': '0x25fb92e505f752f730cad0bd4fa17ece4a384266',\n 'CURATED_DEFI_BRIDGE_HOP_TOKEN_CONTRACT': '0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc',\n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING': {\n 'dforce': {\n 'v1': {\n 'comp_v2_origin_from_address': [\n '0x70a0d319c76b0a99be5e8cd2685219aea9406845',\n '0x655284bebcc6e1dffd098ec538750d43b57bc743',\n '0xde6d6f23aabbdc9469c8907ece7c379f98e4cb75'\n ]\n }\n },\n 'compound': {\n 'v3': {\n 'comp_v3_origin_from_address': ['0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915', '0x2501713a67a3dedde090e42759088a7ef37d4eab']\n }\n },\n 'radiant': {\n 'v1': {\n 'aave_version_address': '0x2032b9a8e9f7e76768ca9271003d3e43e1616b1f'\n },\n 'v2': {\n 'aave_version_address': '0xf4b1486dd74d07706052a33d31d7c0aafd0659e1'\n }\n },\n 'aave': {\n 'v3': {\n 'aave_version_address': '0x794a61358d6845594f94dc1db02a252b5b4814ad'\n }\n },\n 'morpho': {\n 'v1': {\n 'morpho_blue_address': '0x6c247b1f6182318877311737bac0844baa518f5e'\n }\n },\n 'silo': {\n 'v2': {\n 'silo_factory': '0x4166487056a922d784b073d4d928a516b074b719',\n 'silo_tokens_factory': '0xe067b967a36a136084eb9df0149dde64f01ea7d1',\n }\n },\n 'lodestar': {\n 'v1': {\n 'comp_v2_origin_from_address': '0x0f01756bc6183994d90773c8f22e3f44355ffa0e'\n }\n }\n }\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.0988698, "supported_languages": null}, "macro.fsc_evm.fsc_evm_vars": {"name": "fsc_evm_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/fsc_evm_vars.sql", "original_file_path": "macros/global/variables/project_vars/fsc_evm_vars.sql", "unique_id": "macro.fsc_evm.fsc_evm_vars", "macro_sql": "{% macro fsc_evm_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'fsc_evm'\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.0994875, "supported_languages": null}, "macro.fsc_evm.bsc_vars": {"name": "bsc_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/bsc_vars.sql", "original_file_path": "macros/global/variables/project_vars/bsc_vars.sql", "unique_id": "macro.fsc_evm.bsc_vars", "macro_sql": "{% macro bsc_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'bsc',\n 'GLOBAL_NODE_PROVIDER': 'quicknode',\n 'GLOBAL_NODE_VAULT_PATH': 'Vault/prod/evm/quicknode/bsc/mainnet',\n 'GLOBAL_NODE_URL': '{URL}',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'WBNB',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'BNB',\n 'MAIN_SL_BLOCKS_PER_HOUR': 4800,\n 'MAIN_PRICES_NATIVE_SYMBOLS': 'BNB',\n 'MAIN_PRICES_PROVIDER_PLATFORMS': ['BNB','BNB Smart Chain (BEP20)'],\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME': 'bscscan',\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED': true,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL': 'https://api.bscscan.com/api?module=contract&action=getabi&address=',\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH': 'Vault/prod/block_explorers/bsc_scan',\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED': true,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON': '15,45 * * * *',\n 'MAIN_GHA_SCHEDULED_SCORES_CRON': '30 5 * * *',\n 'MAIN_SL_TRACES_REALTIME_PRODUCER_BATCH_SIZE': 4800,\n 'MAIN_SL_TRACES_REALTIME_WORKER_BATCH_SIZE': 600,\n 'MAIN_SL_TRACES_REALTIME_ASYNC_CONCURRENT_REQUESTS': 50,\n 'CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST': ['radiant-v2','kinza-v1'],\n 'CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST': ['level_finance-v1','hashflow-v1','woofi-v1'],\n 'CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST': ['fraxswap-v1','trader_joe-v1','trader_joe-v2','kyberswap-v1','kyberswap-v2'],\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST': ['symbiosis-v1'],\n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING': {\n 'uniswap': {\n 'v2': {\n 'uni_v2_pair_created': '0x8909dc15e40173ff4699343b6eb8132c65e18ec6'\n },\n 'v3': {\n 'uni_v3_pool_created': '0xdb1d10011ad0ff90774d0c6bb92e5c5c8b4461f7'\n }\n },\n 'sushiswap': {\n 'v1': {\n 'uni_v2_pair_created': '0xc35dadb65012ec5796536bd9864ed8773abc74c4'\n }\n },\n 'fraxswap': {\n 'v1': {\n 'uni_v2_pair_created': ['0x5ca135cb8527d76e932f34b5145575f9d8cbe08e',\n '0xf89e6ca06121b6d4370f4b196ae458e8b969a011']\n }\n },\n 'kyberswap': {\n 'v1': {\n 'dynamic': '0x878dfe971d44e9122048308301f540910bbd934c',\n 'static': '0x1c758af0688502e49140230f6b0ebd376d429be5'\n },\n 'v2': {\n 'elastic': '0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a'\n }\n },\n 'dodo': {\n 'v1': {\n 'dodo_birth': '0xca459456a45e300aa7ef447dbb60f87cccb42828',\n 'proxy': ['0x8e4842d0570c85ba3805a9508dce7c6a458359d0',\n '0x0596908263ef2724fbfbcafa1c983fcd7a629038',\n '0x165ba87e882208100672b6c56f477ee42502c820',\n '0xab623fbcaeb522046185051911209f5b2c2a2e1f']\n },\n 'v2': {\n 'new_pool': ['0xafe0a75dffb395eaabd0a7e1bbbd0b11f8609eef',\n '0xd9cac3d964327e47399aebd8e1e6dcc4c251daae',\n '0x0fb9815938ad069bf90e14fe6c596c514bede767',\n '0x790b4a80fb1094589a3c0efc8740aa9b0c1733fb']\n }\n },\n 'hashflow': {\n 'v1': {\n 'create': ['0x63ae536fec0b57bdeb1fd6a893191b4239f61bff',\n '0xa98242820ebf3a405d265ccd22a4ea8f64afb281',\n '0xb5574750a786a37e300a916974ecd63f93fc6754']\n },\n 'v3': {\n 'create_pool': '0xde828fdc3f497f16416d1bb645261c7c6a62dab5'\n }\n },\n 'woofi': {\n 'v1': {\n 'woo_swap': ['0xbf365ce9cfcb2d5855521985e351ba3bcf77fd3f',\n '0x2217c57c91e3c6c55a90b4ca280f532d65590559']\n },\n 'v2': {\n 'woo_router_swap': ['0xc90bfe9951a4efbf20aca5ecd9966b2bf8a01294',\n '0x4f4fd4290c9bb49764701803af6445c5b03e8f06',\n '0xcef5be73ae943b77f9bc08859367d923c030a269',\n '0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7'],\n 'woo_swap': ['0x59de3b49314bf5067719364a2cb43e8525ab93fa',\n '0xec054126922a9a1918435c9072c32f1b60cb2b90',\n '0xed9e3f98bbed560e66b89aac922e29d4596a9642']\n }\n },\n 'biswap': {\n 'v1': {\n 'uni_v2_pair_created': '0x858e3312ed3a876947ea49d572a7c42de08af7ee'\n }\n },\n 'trader_joe': {\n 'v1': {\n 'uni_v2_pair_created': '0x4f8bdc85e3eec5b9de67097c3f59b6db025d9986'\n },\n 'v2': {\n 'lb_pair_created': '0x43646a8e839b2f2766392c1bf8f60f6e587b6960'\n },\n 'v2.1': {\n 'lb_pair_created': '0x8e42f2f4101563bf679975178e880fd87d3efd4e'\n }\n },\n 'level_finance': {\n 'v1': {\n 'router': '0xa5abfb56a78d2bd4689b25b8a77fd49bb0675874'\n }\n },\n 'pancakeswap': {\n 'v1': {\n 'uni_v2_pair_created': '0xbcfccbde45ce874adcb698cc183debcf17952812'\n },\n 'v2': {\n 'uni_v2_pair_created': ['0xca143ce32fe78f1f7019d7d551a6402fc5350c73',\n '0x7b13d1d2a1fa28b16862ebac6e3c52fa9c8d753e',\n '0x1f830fb91094a0e87c0a80150aa0af3805456090'],\n 'mm_router': '0xfeacb05b373f1a08e68235ba7fc92636b92ced01',\n 'ss_factory_1': '0x36bbb126e75351c0dfb651e39b38fe0bc436ffd2',\n 'ss_factory_2': '0x25a55f9f2279a54951133d503490342b50e5cd15'\n },\n 'v3': {\n 'factory': '0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING': {\n 'across': {\n 'v3': {\n 'funds_deposited': '0x4e8e101924ede233c13e2d8622dc8aed2872d505'\n }\n },\n 'allbridge': {\n 'v1': {\n 'sent': '0xbbbd1bbb4f9b936c3604906d7592a644071de884'\n },\n 'v2': {\n 'tokens_sent': '0x3c4fa639c8d7e65c603145adad8bd12f2358312f',\n 'lp': ['0xf833afa46fcd100e62365a0fdb0734b7c4537811',\n '0x8033d5b454ee4758e4bd1d37a49009c1a81d8b10']\n }\n },\n 'axelar': {\n 'v1': {\n 'gateway': '0x304acf330bbe08d1e512eefaa92f6a57871fd895',\n 'gas_service': '0x2d5d7d31f671f86c782533cc367f14109a082712',\n 'squid_router': '0xce16f69375520ab01377ce7b88f5ba8c48f8d666',\n 'burn': '0x0000000000000000000000000000000000000000'\n }\n },\n 'chainlink_ccip': {\n 'v1': {\n 'router': '0x34b03cb9086d7d758ac55af71584f81a598759fe'\n }\n },\n 'celer_cbridge': {\n 'v1': {\n 'bridge': ['0x5d96d4287d1ff115ee50fac0526cf43ecf79bfc6',\n '0x9b36f165bab9ebe611d491180418d8de4b8f3a1f',\n '0x265b25e22bcd7f10a5bd6e6410f10537cc7567e8',\n '0xdd90e5e87a2081dcf0391920868ebc2ffb81a1af']\n }\n },\n 'dln_debridge': {\n 'v1': {\n 'source': '0xef4fb24ad0916217251f553c0596f8edc630eb66'\n }\n },\n 'everclear': {\n 'v1': {\n 'bridge': '0xa05a3380889115bf313f1db9d5f335157be4d816'\n }\n },\n 'eywa': {\n 'v2': {\n 'portal': ['0xece9cf6a8f2768a3b8b65060925b646afeaa5167',\n '0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe',\n '0xbf0b5d561b986809924f88099c4ff0e6bcce60c9']\n }\n },\n 'layerzero': {\n 'v2': {\n 'bridge': '0x1a44076050125825900e736c501f859c50fe728c'\n }\n },\n 'meson': {\n 'v1': {\n 'bridge': '0x25ab3efd52e6470681ce037cd546dc60726948d3'\n }\n },\n 'stargate': {\n 'v1': {\n 'factory': '0xe7ec689f432f29383f217e36e680b5c855051f25',\n 'bridge': '0x6694340fc020c5e6b96567843da2df01b2ce1eb6'\n },\n 'v2': {\n 'bridge': '0x6e3d884c96d640526f273c61dfcf08915ebd7e2b'\n }\n },\n 'symbiosis': {\n 'v1': {\n 'bridge': ['0xb91d3060c90aac7c4c706aef2b37997b3b2a1dcf',\n '0x5aa5f7f84ed0e5db0a4a85c3947ea16b53352fd4']\n }\n },\n 'synapse': {\n 'v1': {\n 'token_bridge': ['0x0efc29e196da2e81afe96edd041bedcdf9e74893',\n '0xd123f70ae324d34a9e76b67a27bf77593ba8749f'],\n 'token_bridge_swap': ['0x0efc29e196da2e81afe96edd041bedcdf9e74893',\n '0xd123f70ae324d34a9e76b67a27bf77593ba8749f']\n }\n },\n 'wormhole': {\n 'v1': {\n 'token_bridge': '0xb6f6d86a8f9879a9c87f643768d9efc38c1da6e7'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_ALLBRIDGE_SOURCE_CHAIN': 'bnb smart chain mainnet',\n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING': {\n 'venus': {\n 'v1': {\n 'comp_v2_origin_from_address': ['0x1ca3ac3686071be692be7f1fbecd668641476d7e',\n '0x55a9f5374af30e3045fb491f1da3c2e8a74d168d','0x7bf1fe2c42e79dba813bf5026b7720935a55ec5f']\n }\n },\n 'dforce': {\n 'v1': {\n 'comp_v2_origin_from_address': '0x4375c89af5b4af46791b05810c4b795a0470207f'\n }\n },\n 'radiant': {\n 'v2': {\n 'aave_version_address': '0xd50cf00b6e600dd036ba8ef475677d816d6c4281'\n }\n },\n 'aave': {\n 'v3': {\n 'aave_version_address': '0x6807dc923806fe8fd134338eabca509979a7e0cb'\n }\n },\n 'kinza': {\n 'v1': {\n 'aave_version_address': '0xcb0620b181140e57d1c0d8b724cde623ca963c8c'\n }\n },\n 'euler': {\n 'v1': {\n 'euler_origin_to_address': '0x7f53e2755eb3c43824e162f7f6f087832b9c9df6'\n }\n },\n 'morpho': {\n 'v1': {\n 'morpho_blue_address': '0x01b0bd309aa75547f7a37ad7b1219a898e67a83a'\n }\n }\n }\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.1263068, "supported_languages": null}, "macro.fsc_evm.avalanche_vars": {"name": "avalanche_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/avalanche_vars.sql", "original_file_path": "macros/global/variables/project_vars/avalanche_vars.sql", "unique_id": "macro.fsc_evm.avalanche_vars", "macro_sql": "{% macro avalanche_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'avalanche',\n 'GLOBAL_NODE_PROVIDER': 'quicknode',\n 'GLOBAL_NODE_VAULT_PATH': 'Vault/prod/evm/quicknode/avalanche/mainnet',\n 'GLOBAL_NODE_URL': '{URL}',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'WAVAX',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'AVAX',\n 'MAIN_SL_BLOCKS_PER_HOUR': 1800,\n 'MAIN_PRICES_NATIVE_SYMBOLS': 'AVAX',\n 'MAIN_PRICES_PROVIDER_PLATFORMS': ['Avalanche', 'Avalanche C-Chain'],\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME': 'snowtrace',\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED': true,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL': 'https://api.routescan.io/v2/network/mainnet/evm/43114/etherscan/api?module=contract&action=getabi&address=',\n 'DECODER_SL_CONTRACT_ABIS_REALTIME_PRODUCER_BATCH_SIZE': 50,\n 'DECODER_SL_CONTRACT_ABIS_REALTIME_WORKER_BATCH_SIZE': 50,\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED': true,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON': '10,40 * * * *',\n 'MAIN_GHA_SCHEDULED_SCORES_CRON': '10 5 * * *',\n 'CUSTOM_GHA_STREAMLINE_DEXALOT_CHAINHEAD_CRON': '50 * * * *',\n 'CUSTOM_GHA_SCHEDULED_DEXALOT_MAIN_CRON': '5 * * * *',\n 'CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST': ['aave-v2'],\n 'CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST': ['gmx-v1','hashflow-v1','woofi-v1'],\n 'CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST': ['pharaoh-v1','kyberswap-v2','curve-v1','uniswap-v2','kyberswap-v1','fraxswap-v1'],\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST': ['symbiosis-v1','multichain-v7','allbridge-v1'],\n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING': {\n 'arena_trade': {\n 'v1': {\n 'uni_v2_pair_created': '0xf16784dcaf838a3e16bef7711a62d12413c39bd1'\n }\n },\n 'curve': {\n 'v1': {\n 'deployer': ['0x7eeac6cddbd1d0b8af061742d41877d7f707289a',\n '0x745748bcfd8f9c2de519a71d789be8a63dd7d66c',\n '0xbabe61887f1de2713c6f97e567623453d3c79f67',\n '0xb17b674d9c5cb2e441f8e196a2f048a81355d031']\n }\n },\n 'balancer': {\n 'v1': {\n 'vault': '0xba12222222228d8ba445958a75a0704d566bf2c8'\n }\n },\n 'dexalot': {\n 'v1': {\n 'swap_executed': '0xeed3c159f3a96ab8d41c8b9ca49ee1e5071a7cdd'\n }\n },\n 'fraxswap': {\n 'v1': {\n 'uni_v2_pair_created': ['0x5ca135cb8527d76e932f34b5145575f9d8cbe08e',\n '0xf77ca9b635898980fb219b4f4605c50e4ba58aff']\n }\n },\n 'hashflow': {\n 'v1': {\n 'create': ['0x05fb0089bec6d00b2f01f4096eb0e0488c79cd91',\n '0x7677bf119654d1fbcb46cb9014949bf16180b6ae']\n },\n 'v3': {\n 'create_pool': '0xde828fdc3f497f16416d1bb645261c7c6a62dab5'\n }\n },\n 'kyberswap': {\n 'v1': {\n 'dynamic': '0x10908c875d865c66f271f5d3949848971c9595c9',\n 'static': '0x1c758af0688502e49140230f6b0ebd376d429be5'\n },\n 'v2': {\n 'elastic': '0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a'\n }\n },\n 'sushiswap': {\n 'v1': {\n 'uni_v2_pair_created': '0xc35dadb65012ec5796536bd9864ed8773abc74c4'\n }\n },\n 'uniswap': {\n 'v2': {\n 'uni_v2_pair_created': '0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c'\n },\n 'v3': {\n 'uni_v3_pool_created': '0x740b1c1de25031c31ff4fc9a62f554a55cdc1bad'\n }\n },\n 'woofi': {\n 'v1': {\n 'woo_router_swap': '0x5aa6a4e96a9129562e2fc06660d07feddaaf7854',\n 'woo_swap': ['0xf8ce0d043891b62c55380fb1efbfb4f186153d96',\n '0x1df3009c57a8b143c6246149f00b090bce3b8f88',\n '0x3b3e4b4741e91af52d0e9ad8660573e951c88524',\n '0xed9e3f98bbed560e66b89aac922e29d4596a9642']\n },\n 'v2': {\n 'woo_router_swap': ['0xc22fbb3133df781e6c25ea6acebe2d2bb8cea2f9',\n '0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7']\n }\n },\n 'pangolin': {\n 'v1': {\n 'uni_v2_pair_created': '0xefa94de7a4656d787667c749f7e1223d71e9fd88'\n }\n },\n 'gmx': {\n 'v1': {\n 'swap': '0x9ab2de34a33fb459b538c43f251eb825645e8595'\n }\n },\n 'pharaoh': {\n 'v1': {\n 'swap': '0xaaa16c016bf556fcd620328f0759252e29b1ab57'\n },\n 'v2': {\n 'uni_v3_pool_created': '0xaaa32926fce6be95ea2c51cb4fcb60836d320c42'\n }\n },\n 'platypus': {\n 'v1': {\n 'deployer': '0x416a7989a964c9ed60257b064efc3a30fe6bf2ee'\n }\n },\n 'trader_joe': {\n 'v1': {\n 'uni_v2_pair_created': '0x9ad6c38be94206ca50bb0d90783181662f0cfa10'\n },\n 'v2': {\n 'lb_pair_created': '0x6e77932a92582f504ff6c4bdbcef7da6c198aeef'\n },\n 'v2.1': {\n 'lb_pair_created': '0x8e42f2f4101563bf679975178e880fd87d3efd4e'\n },\n 'v2.2': {\n 'lb_pair_created': '0xb43120c4745967fa9b93e79c149e66b0f2d6fe0c'\n }\n }\n },\n 'CURATED_DEFI_DEX_DEXALOT_DEST_CHAIN_ID': 43114,\n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING': {\n 'allbridge': {\n 'v1': {\n 'sent': '0xbbbd1bbb4f9b936c3604906d7592a644071de884'\n },\n 'v2': {\n 'tokens_sent': '0x9068e1c28941d0a680197cc03be8afe27ccaeea9',\n 'lp': ['0x2d2f460d7a1e7a4fcc4ddab599451480728b5784','0xe827352a0552ffc835c181ab5bf1d7794038ec9f']\n }\n },\n 'axelar': {\n 'v1': {\n 'gateway': '0x5029c0eff6c34351a0cec334542cdb22c7928f78',\n 'gas_service': '0x2d5d7d31f671f86c782533cc367f14109a082712',\n 'squid_router': '0xce16f69375520ab01377ce7b88f5ba8c48f8d666',\n 'burn': '0x0000000000000000000000000000000000000000'\n }\n },\n 'chainlink_ccip': {\n 'v1': {\n 'router': '0xf4c7e640eda248ef95972845a62bdc74237805db'\n }\n },\n 'celer_cbridge': {\n 'v1': {\n 'bridge': ['0xbb7684cc5408f4dd0921e5c2cadd547b8f1ad573',\n '0x9b36f165bab9ebe611d491180418d8de4b8f3a1f',\n '0xef3c714c9425a8f3697a9c969dc1af30ba82e5d4']\n }\n },\n 'circle_cctp': {\n 'v1': {\n 'deposit': '0x6b25532e1060ce10cc3b0a99e5683b91bfde6982'\n },\n 'v2': {\n 'deposit': '0x28b5a0e9c621a5badaa536219b3a228c8168cf5d'\n }\n },\n 'dln_debridge': {\n 'v1': {\n 'source': '0xef4fb24ad0916217251f553c0596f8edc630eb66'\n }\n },\n 'everclear': {\n 'v1': {\n 'bridge': '0x9aa2ecad5c77dfcb4f34893993f313ec4a370460'\n }\n },\n 'eywa': {\n 'v1': {\n 'portal': ['0xece9cf6a8f2768a3b8b65060925b646afeaa5167',\n '0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe',\n '0xbf0b5d561b986809924f88099c4ff0e6bcce60c9']\n }\n },\n 'layerzero': {\n 'v2': {\n 'bridge': '0x1a44076050125825900e736c501f859c50fe728c'\n }\n },\n 'meson': {\n 'v1': {\n 'bridge': '0x25ab3efd52e6470681ce037cd546dc60726948d3'\n }\n },\n 'multichain': {\n 'v7': {\n 'router': '0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3'\n }\n },\n 'stargate': {\n 'v1': {\n 'factory': '0x808d7c71ad2ba3fa531b068a2417c63106bc0949',\n 'bridge': '0x9d1b1669c73b033dfe47ae5a0164ab96df25b944'\n },\n 'v2': {\n 'bridge': '0x17e450be3ba9557f2378e20d64ad417e59ef9a34'\n }\n },\n 'symbiosis': {\n 'v1': {\n 'bridge': '0xe75c7e85fe6add07077467064ad15847e6ba9877'\n }\n },\n 'synapse': {\n 'v1': {\n 'token_bridge': ['0xc4133e23c783af2c732c06677b98b905b5c65c46',\n '0xc05e61d0e7a63d27546389b7ad62fdff5a91aace'],\n 'token_bridge_swap': '0xc05e61d0e7a63d27546389b7ad62fdff5a91aace'\n }\n },\n 'wormhole': {\n 'v1': {\n 'token_bridge': '0x0e082f06ff657d94310cb8ce8b0d9a04541d8052'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_ALLBRIDGE_SOURCE_CHAIN': 'avalanche c-chain',\n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING': {\n 'benqi': {\n 'v1': {\n 'comp_v2_origin_from_address': ['0x5423819b3b5bb38b0e9e9e59f22f9034e2d8819b',\n '0x0df1a01ade3cd67ccc11d89f2859a0de514cd679',\n '0xf799c20563218190424c3aec6022ce9faf588eb7',\n '0x0cf89de760b234b82e475d609a6de8ec48c68677',\n '0xfb45e03b83ad113cd0d4e697354a6a9be6decc55']\n }\n },\n 'joe_lend': {\n 'v1': {\n 'comp_v2_origin_from_address': ['0x5d3e4c0fe11e0ae4c32f0ff74b4544c49538ac61',\n '0x72c5456d731fdd9d3480f997226a631231de61cc']\n }\n },\n 'aave': {\n 'v3': {\n 'aave_version_address': '0x794a61358d6845594f94dc1db02a252b5b4814ad'\n },\n 'v2': {\n 'aave_version_address': '0x4f01aed16d97e3ab5ab2b501154dc9bb0f1a5a2c'\n }\n },\n 'euler': {\n 'v1': {\n 'euler_origin_to_address': '0x7f53e2755eb3c43824e162f7f6f087832b9c9df6'\n }\n }\n }\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.1490822, "supported_languages": null}, "macro.fsc_evm.core_vars": {"name": "core_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/core_vars.sql", "original_file_path": "macros/global/variables/project_vars/core_vars.sql", "unique_id": "macro.fsc_evm.core_vars", "macro_sql": "{% macro core_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'core',\n 'GLOBAL_NODE_PROVIDER': 'drpc',\n 'GLOBAL_NODE_URL': 'https://lb.drpc.org/ogrpc?network=core&dkey={KEY}',\n 'GLOBAL_NODE_VAULT_PATH': 'Vault/prod/evm/drpc',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0x40375c92d9faf44d2f9db9bd9ba41a3317a2404f',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'WCORE',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'CORE',\n 'MAIN_SL_BLOCKS_PER_HOUR': 1200,\n 'MAIN_SL_TRANSACTIONS_PER_BLOCK': 50,\n 'MAIN_CORE_RECEIPTS_BY_HASH_ENABLED': true,\n 'MAIN_PRICES_NATIVE_SYMBOLS': 'CORE',\n 'MAIN_PRICES_PROVIDER_PLATFORMS': [\"Core\", \"core\"],\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON': '23,53 * * * *',\n 'MAIN_GHA_SCHEDULED_SCORES_CRON': '35 5 * * *',\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME': 'CoreScan',\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL': 'https://openapi.coredao.org/api?module=contract&action=getabi&address=',\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH': 'Vault/prod/block_explorers/core_scan',\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED': true,\n 'MAIN_OBSERV_EXCLUSION_LIST_ENABLED': true,\n 'MAIN_SL_TOKEN_READS_BRONZE_TABLE_ENABLED': true,\n 'MAIN_CORE_GOLD_TRACES_TEST_ERROR_THRESHOLD': 10,\n 'BALANCES_SL_STATE_TRACER_REALTIME_SQL_LIMIT': 4800,\n 'BALANCES_EXCLUSION_LIST_ENABLED': true,\n 'BALANCES_VALIDATOR_CONTRACT_ADDRESS': ['0x0000000000000000000000000000000000001000','0x0000000000000000000000000000000000001010','0x0000000000000000000000000000000000001007','0x0000000000000000000000000000000000001002'],\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST': ['meson-v1','symbiosis-v1'],\n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING': {\n 'sushiswap': {\n 'v2': {\n 'uni_v3_pool_created': '0xc35dadb65012ec5796536bd9864ed8773abc74c4'\n }\n },\n 'corex': {\n 'v1': {\n 'uni_v3_pool_created': '0x526190295afb6b8736b14e4b42744fbd95203a3a'\n }\n },\n 'bitflux': {\n 'v1': {\n 'create': ['0xa18481c844c1b7e707adaf67a6394f2b37f0705b',\n '0x5a65012ac60e8a22fd191c288c87a25dcbeef1c4',\n '0xfceb33c1e5cba985175ac4488e338dc4f0dd2a1f']\n }\n },\n 'glyph': {\n 'v4': {\n 'pool_created': '0x74efe55bea4988e7d92d03efd8ddb8bf8b7bd597'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING': {\n 'layerzero': {\n 'v2': {\n 'bridge': '0x1a44076050125825900e736c501f859c50fe728c'\n }\n },\n 'meson': {\n 'v1': {\n 'bridge': '0x25ab3efd52e6470681ce037cd546dc60726948d3'\n }\n },\n 'stargate': {\n 'v2': {\n 'bridge': '0xaf54be5b6eec24d6bfacf1cce4eaf680a8239398'\n }\n },\n 'symbiosis': {\n 'v1': {\n 'bridge': '0x292fc50e4eb66c3f6514b9e402dbc25961824d62'\n }\n },\n 'gaszip_lz': {\n 'v2': {\n 'send_deposits': '0x26da582889f59eaae9da1f063be0140cd93e6a4f',\n 'packet_sent': '0x1a44076050125825900e736c501f859c50fe728c',\n 'send_uln': '0x0bcac336466ef7f1e0b5c184aab2867c108331af'\n }\n }\n },\n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING': {\n 'colend': {\n 'v1': {\n 'aave_v3_treasury': ['0x5a3e71b6d8e0ce3d568d3c9b089b6a31a3f43501','0xe88d2aebe73f15f2b7d5e4a77694a3fe74c7de74']\n }\n },\n 'summer_money': {\n 'v1': {\n 'comp_v2_origin_from_address': '0x5c85a7ae2b6d29c38cdf360553f8acbc4e684c31'\n }\n }\n }\n } %}\n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.155497, "supported_languages": null}, "macro.fsc_evm.ronin_vars": {"name": "ronin_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/ronin_vars.sql", "original_file_path": "macros/global/variables/project_vars/ronin_vars.sql", "unique_id": "macro.fsc_evm.ronin_vars", "macro_sql": "{% macro ronin_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'ronin',\n 'GLOBAL_NODE_PROVIDER': 'tatum',\n 'GLOBAL_NODE_VAULT_PATH': 'Vault/prod/evm/tatum/ronin/mainnet',\n 'GLOBAL_NODE_URL': \"{URL}\",\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0xe514d9deb7966c8be0ca922de8a064264ea6bcd4',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'WRON',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'RON',\n 'GLOBAL_START_BLOCK': 38633701,\n 'MAIN_SL_BLOCKS_PER_HOUR': 1200,\n 'MAIN_SL_TRANSACTIONS_PER_BLOCK': 50,\n 'MAIN_PRICES_NATIVE_SYMBOLS': 'RON',\n 'MAIN_PRICES_PROVIDER_PLATFORMS': 'ronin',\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME': 'RoninChain',\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL': 'https://explorer-kintsugi.roninchain.com/v2/2020/contract/',\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL_SUFFIX': '/abi',\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED': true,\n 'MAIN_SL_CHAINHEAD_DELAY_MINUTES': 6,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON': '19,49 * * * *',\n 'MAIN_GHA_SCHEDULED_SCORES_CRON': '20 5 * * *',\n 'MAIN_OBSERV_EXCLUSION_LIST_ENABLED': true\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.1588323, "supported_languages": null}, "macro.fsc_evm.bob_vars": {"name": "bob_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/bob_vars.sql", "original_file_path": "macros/global/variables/project_vars/bob_vars.sql", "unique_id": "macro.fsc_evm.bob_vars", "macro_sql": "{% macro bob_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'bob',\n 'GLOBAL_NODE_PROVIDER': 'drpc',\n 'GLOBAL_NODE_URL': 'https://lb.drpc.org/ogrpc?network=bob&dkey={KEY}',\n 'GLOBAL_NODE_VAULT_PATH': 'Vault/prod/evm/drpc',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0x4200000000000000000000000000000000000006',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'WETH',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'ETH',\n 'MAIN_SL_BLOCKS_PER_HOUR': 1800,\n 'MAIN_PRICES_NATIVE_SYMBOLS': 'ETH',\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS': 'ethereum',\n 'MAIN_PRICES_PROVIDER_PLATFORMS': 'bob-network',\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME': 'GoBOB',\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL': 'https://explorer-bob-mainnet-0.t.conduit.xyz/api/v2/smart-contracts/',\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED': true,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON': '21,51 * * * *',\n 'MAIN_GHA_SCHEDULED_SCORES_CRON': '20 5 * * *',\n 'DECODER_SL_CONTRACT_ABIS_REALTIME_PRODUCER_BATCH_SIZE': 50,\n 'DECODER_SL_CONTRACT_ABIS_REALTIME_WORKER_BATCH_SIZE': 50,\n 'BALANCES_SL_START_DATE': '2024-01-01',\n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING': {\n 'uniswap': {\n 'v3': {\n 'uni_v3_pool_created': '0xcb2436774c3e191c85056d248ef4260ce5f27a9d'\n }\n },\n 'velodrome': {\n 'v2': {\n 'factory': '0x31832f2a97fd20664d76cc421207669b55ce4bc0'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING': {\n 'dln_debridge': {\n 'v1': {\n 'source': '0xef4fb24ad0916217251f553c0596f8edc630eb66'\n }\n },\n 'layerzero': {\n 'v2': {\n 'bridge': '0x1a44076050125825900e736c501f859c50fe728c'\n }\n },\n 'l2_standard_bridge': {\n 'v1': {\n 'bridge': '0x4200000000000000000000000000000000000010'\n }\n },\n 'meson': {\n 'v1': {\n 'bridge': '0x25ab3efd52e6470681ce037cd546dc60726948d3'\n }\n }\n },\n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING': {\n 'segment_finance': {\n 'v1': {\n 'comp_v2_origin_from_address': '0xac5694794e95ab182c363ee37f604bfd4cc14bbd'\n }\n },\n 'shoebill_finance': {\n 'v1': {\n 'comp_v2_origin_from_address': '0xcff0e961d0dec9dadf8587f66f158738e1366264'\n }\n },\n 'euler': {\n 'v1': {\n 'euler_origin_to_address': '0x046a9837a61d6b6263f54f4e27ee072ba4bdc7e4'\n }\n },\n 'layerbank': {\n 'v1': {\n 'comp_v2_origin_from_address': '0x561064e20290d9cb371b631a86634ae39b462279'\n }\n }\n }\n\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.1684244, "supported_languages": null}, "macro.fsc_evm.scroll_vars": {"name": "scroll_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/scroll_vars.sql", "original_file_path": "macros/global/variables/project_vars/scroll_vars.sql", "unique_id": "macro.fsc_evm.scroll_vars", "macro_sql": "{% macro scroll_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'scroll',\n 'GLOBAL_NODE_PROVIDER': 'quicknode',\n 'GLOBAL_NODE_URL': '{URL}',\n 'GLOBAL_NODE_VAULT_PATH': 'Vault/prod/evm/quicknode/scroll/mainnet',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0x5300000000000000000000000000000000000004',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'WETH',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'ETH',\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON': '12,42 * * * *',\n 'MAIN_GHA_SCHEDULED_SCORES_CRON': '25 5 * * *',\n 'MAIN_SL_BLOCKS_PER_HOUR': 1200,\n 'MAIN_PRICES_NATIVE_SYMBOLS': ['ETH', 'SCROLL'],\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS': ['ethereum', 'scroll'],\n 'MAIN_PRICES_PROVIDER_PLATFORMS': ['scroll', 'Scroll'],\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME': 'ScrollScan',\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED': true,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL': 'https://api.scrollscan.com/api?module=contract&action=getabi&address=',\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH': 'Vault/prod/block_explorers/scroll_scan',\n 'MAIN_OBSERV_EXCLUSION_LIST_ENABLED': true\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.1716087, "supported_languages": null}, "macro.fsc_evm.polygon_vars": {"name": "polygon_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/polygon_vars.sql", "original_file_path": "macros/global/variables/project_vars/polygon_vars.sql", "unique_id": "macro.fsc_evm.polygon_vars", "macro_sql": "{% macro polygon_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'polygon',\n 'GLOBAL_NODE_PROVIDER': 'quicknode',\n 'GLOBAL_NODE_VAULT_PATH': 'Vault/prod/evm/quicknode/polygon/mainnet',\n 'GLOBAL_NODE_URL': '{URL}',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'WPOL',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'POL',\n 'MAIN_SL_BLOCKS_PER_HOUR': 1700,\n 'MAIN_PRICES_NATIVE_SYMBOLS': ['MATIC','POL'],\n 'MAIN_PRICES_PROVIDER_PLATFORMS': 'Polygon',\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME': 'polygonscan',\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED': true,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL': 'https://api.polygonscan.com/api?module=contract&action=getabi&address=',\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH': 'Vault/prod/block_explorers/polygon_scan',\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED': true,\n 'MAIN_SL_CHAINHEAD_DELAY_MINUTES': 10,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON': '25,55 * * * *',\n 'MAIN_GHA_SCHEDULED_SCORES_CRON': '15 5 * * *',\n 'MAIN_CORE_BRONZE_TOKEN_READS_LIMIT': 30,\n 'MAIN_CORE_BRONZE_TOKEN_READS_BATCHED_ENABLED': true,\n 'MAIN_OBSERV_EXCLUSION_LIST_ENABLED': true,\n 'CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST': ['aave-v2'],\n 'CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST': ['woofi-v1','hashflow-v1'],\n 'CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST': ['kyberswap-v2','curve-v1'],\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST': ['hop-v1','multichain-v7','symbiosis-v1','across-v1'],\n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING': {\n 'uniswap': {\n 'v2': {\n 'uni_v2_pair_created': '0x9e5a52f57b3038f1b8eee45f28b3c1967e22799c'\n },\n 'v3': {\n 'uni_v3_pool_created': '0x1f98431c8ad98523631ae4a59f267346ea31f984'\n }\n },\n 'sushiswap': {\n 'v1': {\n 'uni_v2_pair_created': '0xc35dadb65012ec5796536bd9864ed8773abc74c4'\n }\n },\n 'quickswap': {\n 'v1': {\n 'uni_v2_pair_created': '0x5757371414417b8c6caad45baef941abc7d3ab32'\n },\n 'v2': {\n 'pool': '0x411b0facc3489691f28ad58c47006af5e3ab3a28'\n }\n },\n 'fraxswap': {\n 'v1': {\n 'uni_v2_pair_created': ['0xc2544a32872a91f4a553b404c6950e89de901fdb',\n '0x54f454d747e037da288db568d4121117eab34e79']\n }\n },\n 'kyberswap': {\n 'v1': {\n 'dynamic': '0x5f1fe642060b5b9658c15721ea22e982643c095c',\n 'static': '0x1c758af0688502e49140230f6b0ebd376d429be5'\n },\n 'v2': {\n 'elastic': '0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a'\n }\n },\n 'dodo': {\n 'v1': {\n 'dodo_birth': '0x357c5e9cfa8b834edcef7c7aabd8f9db09119d11',\n 'proxy': ['0xdbfaf391c37339c903503495395ad7d6b096e192',\n '0x6c30be15d88462b788dea7c6a860a2ccaf7b2670']\n },\n 'v2': {\n 'new_pool': ['0x95e887adf9eaa22cc1c6e3cb7f07adc95b4b25a8',\n '0xd24153244066f0afa9415563bfc7ba248bfb7a51',\n '0x43c49f8dd240e1545f147211ec9f917376ac1e87',\n '0x79887f65f83bdf15bcc8736b5e5bcdb48fb8fe13']\n }\n },\n 'hashflow': {\n 'v1': {\n 'create': ['0x63ae536fec0b57bdeb1fd6a893191b4239f61bff',\n '0x336bfba2c4d7bda5e1f83069d0a95509ecd5d2b5',\n '0x9817a71ca8e309d654ee7e1999577bce6e6fd9ac']\n },\n 'v3': {\n 'create_pool': '0xde828fdc3f497f16416d1bb645261c7c6a62dab5'\n }\n },\n 'woofi': {\n 'v1': {\n 'woo_router_swap': ['0x9d1a92e601db0901e69bd810029f2c14bcca3128',\n '0x817eb46d60762442da3d931ff51a30334ca39b74'],\n 'woo_swap': ['0x7081a38158bd050ae4a86e38e0225bc281887d7e',\n '0x7400b665c8f4f3a951a99f1ee9872efb8778723d',\n '0xed9e3f98bbed560e66b89aac922e29d4596a9642']\n },\n 'v2': {\n 'woo_router_swap': '0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7'\n }\n },\n 'curve': {\n 'v1': {\n 'deployer': ['0x7eeac6cddbd1d0b8af061742d41877d7f707289a',\n '0xbabe61887f1de2713c6f97e567623453d3c79f67',\n '0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee',\n '0xe5de15a9c9bbedb4f5ec13b131e61245f2983a69']\n }\n },\n 'balancer': {\n 'v1': {\n 'vault': '0xba12222222228d8ba445958a75a0704d566bf2c8'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING': {\n 'across': {\n 'v1': {\n 'funds_deposited': '0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096'\n },\n 'v3': {\n 'funds_deposited': '0x9295ee1d8c5b022be115a2ad3c30c72e34e7f096'\n }\n },\n 'allbridge': {\n 'v1': {\n 'sent': '0xbbbd1bbb4f9b936c3604906d7592a644071de884'\n },\n 'v2': {\n 'tokens_sent': '0x7775d63836987f444e2f14aa0fa2602204d7d3e0',\n 'lp': ['0x0394c4f17738a10096510832beab89a9dd090791',\n '0x4c42dfdbb8ad654b42f66e0bd4dbdc71b52eb0a6',\n '0x58cc621c62b0aa9babfae5651202a932279437da']\n }\n },\n 'axelar': {\n 'v1': {\n 'gateway': '0x6f015f16de9fc8791b234ef68d486d2bf203fba8',\n 'gas_service': '0x2d5d7d31f671f86c782533cc367f14109a082712',\n 'squid_router': '0xce16f69375520ab01377ce7b88f5ba8c48f8d666',\n 'burn': '0x0000000000000000000000000000000000000000'\n }\n },\n 'chainlink_ccip': {\n 'v1': {\n 'router': '0x849c5ed5a80f5b408dd4969b78c2c8fdf0565bfe'\n }\n },\n 'circle_cctp': {\n 'v1': {\n 'deposit': '0x9daf8c91aefae50b9c0e69629d3f6ca40ca3b3fe'\n },\n 'v2': {\n 'deposit': '0x28b5a0e9c621a5badaa536219b3a228c8168cf5d'\n }\n },\n 'celer_cbridge': {\n 'v1': {\n 'bridge': ['0x88dcdc47d2f83a99cf0000fdf667a468bb958a78',\n '0xa251c4691c1ffd7d9b128874c023427513d8ac5c',\n '0xb5df797468e6e8f2cb293cd6e32939366e0f8733',\n '0x02745032d2aeccdc90310d6cca32cb82c7e149dd',\n '0xf5c6825015280cdfd0b56903f9f8b5a2233476f5']\n }\n },\n 'dln_debridge': {\n 'v1': {\n 'source': '0xef4fb24ad0916217251f553c0596f8edc630eb66'\n }\n },\n 'everclear': {\n 'v1': {\n 'bridge': '0x7189c59e245135696bfd2906b56607755f84f3fd'\n }\n },\n 'eywa': {\n 'v1': {\n 'portal': ['0xece9cf6a8f2768a3b8b65060925b646afeaa5167',\n '0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe',\n '0xbf0b5d561b986809924f88099c4ff0e6bcce60c9'\n ]\n }\n },\n 'layerzero': {\n 'v2': {\n 'bridge': '0x1a44076050125825900e736c501f859c50fe728c'\n }\n },\n 'meson': {\n 'v1': {\n 'bridge': '0x25ab3efd52e6470681ce037cd546dc60726948d3'\n }\n },\n 'multichain': {\n 'v7': {\n 'router': '0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3'\n }\n },\n 'stargate': {\n 'v1': {\n 'factory': '0x808d7c71ad2ba3fa531b068a2417c63106bc0949',\n 'bridge': '0x9d1b1669c73b033dfe47ae5a0164ab96df25b944'\n },\n 'v2': {\n 'bridge': '0x6ce9bf8cdab780416ad1fd87b318a077d2f50eac'\n }\n },\n 'symbiosis': {\n 'v1': {\n 'bridge': ['0xb8f275fbf7a959f4bce59999a2ef122a099e81a8',\n '0x3338be49a5f60e2593337919f9ad7098e9a7dd7e']\n }\n },\n 'synapse': {\n 'v1': {\n 'token_bridge': ['0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280',\n '0x2119a5c9279a13ec0de5e30d572b316f1cfca567',\n '0x0efc29e196da2e81afe96edd041bedcdf9e74893',\n '0x5f06745ee8a2001198a379bafbd0361475f3cfc3',\n '0x7103a324f423b8a4d4cc1c4f2d5b374af4f0bab5'],\n 'token_bridge_swap': ['0x8f5bbb2bb8c2ee94639e55d5f41de9b4839c1280',\n '0x0efc29e196da2e81afe96edd041bedcdf9e74893']\n }\n },\n 'wormhole': {\n 'v1': {\n 'token_bridge': '0x5a58505a96d1dbf8df91cb21b54419fc36e93fde'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_ALLBRIDGE_SOURCE_CHAIN': 'polygon mainnet',\n 'CURATED_DEFI_BRIDGE_HOP_BRIDGE_CONTRACT': '0x58c61aee5ed3d748a1467085ed2650b697a66234',\n 'CURATED_DEFI_BRIDGE_HOP_TOKEN_CONTRACT': '0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc',\n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING': {\n 'compound': {\n 'v3': {\n 'comp_v3_origin_from_address': ['0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915', '0x2501713a67a3dedde090e42759088a7ef37d4eab']\n }\n },\n 'aave': {\n 'v3': {\n 'aave_treasury': '0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c',\n 'aave_version_address': '0x794a61358d6845594f94dc1db02a252b5b4814ad'\n },\n 'v2': {\n 'aave_treasury': '0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c',\n 'aave_version_address': '0x8dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf'\n }\n },\n 'morpho': {\n 'v1': {\n 'morpho_blue_address': '0x1bf0c2541f820e775182832f06c0b7fc27a25f67'\n }\n }\n }\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.1956441, "supported_languages": null}, "macro.fsc_evm.somnia_vars": {"name": "somnia_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/somnia_vars.sql", "original_file_path": "macros/global/variables/project_vars/somnia_vars.sql", "unique_id": "macro.fsc_evm.somnia_vars", "macro_sql": "{% macro somnia_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'somnia',\n 'GLOBAL_NODE_PROVIDER': 'flipside',\n 'GLOBAL_NODE_URL': \"{URL}\",\n 'GLOBAL_NODE_VAULT_PATH': 'vault/prod/evm/flipside/somnia/mainnet',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0x046ede9564a72571df6f5e44d0405360c0f4dcab',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'WSOMI',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'SOMI',\n 'MAIN_SL_BLOCKS_PER_HOUR': 36000,\n 'MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_PRODUCER_BATCH_SIZE': 36000,\n 'MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_WORKER_BATCH_SIZE': 360,\n 'MAIN_SL_BLOCKS_TRANSACTIONS_REALTIME_ASYNC_CONCURRENT_REQUESTS': 25,\n 'MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_PRODUCER_BATCH_SIZE': 36000,\n 'MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_WORKER_BATCH_SIZE': 360,\n 'MAIN_SL_BLOCKS_TRANSACTIONS_HISTORY_ASYNC_CONCURRENT_REQUESTS': 25,\n 'MAIN_SL_RECEIPTS_REALTIME_PRODUCER_BATCH_SIZE': 36000,\n 'MAIN_SL_RECEIPTS_REALTIME_WORKER_BATCH_SIZE': 360,\n 'MAIN_SL_RECEIPTS_REALTIME_ASYNC_CONCURRENT_REQUESTS': 25,\n 'MAIN_SL_RECEIPTS_HISTORY_PRODUCER_BATCH_SIZE': 36000,\n 'MAIN_SL_RECEIPTS_HISTORY_WORKER_BATCH_SIZE': 360,\n 'MAIN_SL_RECEIPTS_HISTORY_ASYNC_CONCURRENT_REQUESTS': 25,\n 'MAIN_SL_TRACES_REALTIME_PRODUCER_BATCH_SIZE': 36000,\n 'MAIN_SL_TRACES_REALTIME_WORKER_BATCH_SIZE': 360,\n 'MAIN_SL_TRACES_REALTIME_ASYNC_CONCURRENT_REQUESTS': 25,\n 'MAIN_SL_TRACES_HISTORY_PRODUCER_BATCH_SIZE': 36000,\n 'MAIN_SL_TRACES_HISTORY_WORKER_BATCH_SIZE': 360,\n 'MAIN_SL_TRACES_HISTORY_ASYNC_CONCURRENT_REQUESTS': 25,\n 'MAIN_SL_CONFIRM_BLOCKS_REALTIME_PRODUCER_BATCH_SIZE': 36000,\n 'MAIN_SL_CONFIRM_BLOCKS_REALTIME_WORKER_BATCH_SIZE': 360,\n 'MAIN_SL_CONFIRM_BLOCKS_REALTIME_ASYNC_CONCURRENT_REQUESTS': 25,\n 'MAIN_SL_CONFIRM_BLOCKS_HISTORY_PRODUCER_BATCH_SIZE': 36000,\n 'MAIN_SL_CONFIRM_BLOCKS_HISTORY_WORKER_BATCH_SIZE': 360,\n 'MAIN_SL_CONFIRM_BLOCKS_HISTORY_ASYNC_CONCURRENT_REQUESTS': 25,\n 'MAIN_PRICES_NATIVE_SYMBOLS': 'SOMI',\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS': 'somnia',\n 'MAIN_PRICES_PROVIDER_PLATFORMS': 'somnia',\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME': 'somnia',\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL': 'https://mainnet.somnia.w3us.site/api/v2/smart-contracts/',\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON': '9,39 * * * *',\n 'MAIN_GHA_SCHEDULED_SCORES_CRON': '50 5 * * *',\n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING': {\n 'quickswap': {\n 'v4': {\n 'pool': '0x0ccff3d02a3a200263ec4e0fdb5e60a56721b8ae'\n }\n },\n 'somnex': {\n 'v2': {\n 'uni_v2_pair_created': '0xafd71143fb155058e96527b07695d93223747ed1'\n },\n 'v3': {\n 'uni_v3_pool_created': '0xdd594374a0fa18cd074ed61288f392ed1ccbaffd'\n }\n },\n 'somnia_exchange': {\n 'v2': {\n 'uni_v2_pair_created': '0x6c4853c97b981aa848c2b56f160a73a46b5dccd4'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING': {\n 'layerzero': {\n 'v2': {\n 'bridge': '0x6f475642a6e85809b1c36fa62763669b1b48dd5b'\n }\n },\n 'stargate': {\n 'v2': {\n 'bridge': '0x78add880a697070c1e765ac44d65323a0dcce913'\n }\n }\n }\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.2027602, "supported_languages": null}, "macro.fsc_evm.base_vars": {"name": "base_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/base_vars.sql", "original_file_path": "macros/global/variables/project_vars/base_vars.sql", "unique_id": "macro.fsc_evm.base_vars", "macro_sql": "{% macro base_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'base',\n 'GLOBAL_NODE_PROVIDER': 'quicknode',\n 'GLOBAL_NODE_URL': '{URL}',\n 'GLOBAL_NODE_VAULT_PATH': 'Vault/prod/evm/quicknode/base/mainnet',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0x4200000000000000000000000000000000000006',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'WETH',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'ETH',\n 'MAIN_SL_BLOCKS_PER_HOUR': 1800,\n 'MAIN_PRICES_NATIVE_SYMBOLS': 'ETH',\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS': 'ethereum',\n 'MAIN_PRICES_PROVIDER_PLATFORMS': ['base', 'Base'],\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME': 'basescan',\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED': true,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL': 'https://api.basescan.org/api?module=contract&action=getabi&address=',\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH': 'Vault/prod/block_explorers/base_scan',\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED': true,\n 'MAIN_SL_TRACES_REALTIME_PRODUCER_BATCH_SIZE': 900,\n 'MAIN_SL_TRACES_REALTIME_WORKER_BATCH_SIZE': 450,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON': '15,45 * * * *',\n 'MAIN_GHA_SCHEDULED_SCORES_CRON': '15 5 * * *',\n 'BALANCES_SL_ERC20_DAILY_HISTORY_PRODUCER_BATCH_SIZE': 120000,\n 'BALANCES_SL_ERC20_DAILY_HISTORY_WORKER_BATCH_SIZE': 60000,\n 'BALANCES_SL_NATIVE_DAILY_HISTORY_PRODUCER_BATCH_SIZE': 120000,\n 'BALANCES_SL_NATIVE_DAILY_HISTORY_WORKER_BATCH_SIZE': 60000,\n 'BALANCES_SL_ERC20_DAILY_REALTIME_PRODUCER_BATCH_SIZE': 450000,\n 'BALANCES_SL_ERC20_DAILY_REALTIME_WORKER_BATCH_SIZE': 45000,\n 'BALANCES_SL_ERC20_DAILY_REALTIME_ASYNC_CONCURRENT_REQUESTS': 5,\n 'BALANCES_SL_NATIVE_DAILY_REALTIME_PRODUCER_BATCH_SIZE': 450000,\n 'BALANCES_SL_NATIVE_DAILY_REALTIME_WORKER_BATCH_SIZE': 45000,\n 'BALANCES_SL_NATIVE_DAILY_REALTIME_ASYNC_CONCURRENT_REQUESTS': 5,\n 'CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST': ['seamless-v1'],\n 'CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST': ['woofi-v3','woofi-v1','voodoo-v1'],\n 'CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST': ['balancer-v1'],\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST': ['symbiosis-v1','hop-v1','across-v1'],\n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING': {\n 'uniswap': {\n 'v2': {\n 'uni_v2_pair_created': '0x8909dc15e40173ff4699343b6eb8132c65e18ec6'\n },\n 'v3': {\n 'uni_v3_pool_created': '0x33128a8fc17869897dce68ed026d694621f6fdfd'\n }\n },\n 'sushiswap': {\n 'v2': {\n 'uni_v3_pool_created': '0xc35dadb65012ec5796536bd9864ed8773abc74c4'\n }\n },\n 'woofi': {\n 'v1': {\n 'woo_swap': ['0x39d361e66798155813b907a70d6c2e3fdafb0877',\n '0xc04362cf21e6285e295240e30c056511df224cf4',\n '0x86b1742a1d7c963d3e8985829d722725316abf0a',\n '0xeff23b4be1091b53205e35f3afcd9c7182bf3062',\n '0xb89a33227876aef02a7ebd594af9973aece2f521',\n '0x8693f9701d6db361fe9cc15bc455ef4366e39ae0',\n '0xb130a49065178465931d4f887056328cea5d723f',\n '0xed9e3f98bbed560e66b89aac922e29d4596a9642']\n },\n 'v2': {\n 'woo_router_swap': ['0xcdfd61a8303beb5c8dd2a6d02df8d228ce15b9f3',\n '0x9aed3a8896a85fe9a8cac52c9b402d092b629a30',\n '0xd2635bc7e4e4f63b2892ed80d0b0f9dff7eda899',\n '0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7']\n },\n 'v3': {\n 'woo_router_swap': '0x27425e9fb6a9a625e8484cfd9620851d1fa322e5'\n }\n },\n 'curve': {\n 'v1': {\n 'deployer': ['0xa5961898870943c68037f6848d2d866ed2016bcb',\n '0x3093f9b57a428f3eb6285a589cb35bea6e78c336',\n '0x5ef72230578b3e399e6c6f4f6360edf95e83bbfd']\n }\n },\n 'balancer': {\n 'v1': {\n 'vault': '0xba12222222228d8ba445958a75a0704d566bf2c8'\n }\n },\n 'alienbase': {\n 'v1': {\n 'uni_v2_pair_created': '0x3e84d913803b02a4a7f027165e8ca42c14c0fde7'\n }\n },\n 'baseswap': {\n 'v1': {\n 'uni_v2_pair_created': '0xfda619b6d20975be80a10332cd39b9a4b0faa8bb'\n },\n 'v2': {\n 'uni_v3_pool_created': '0x38015d05f4fec8afe15d7cc0386a126574e8077b'\n }\n },\n 'dexalot': {\n 'v1': {\n 'swap_executed': '0x1fd108cf42a59c635bd4703b8dbc8a741ff834be'\n }\n },\n 'swapbased': {\n 'v1': {\n 'uni_v2_pair_created': '0x04c9f118d21e8b767d2e50c946f0cc9f6c367300'\n }\n },\n 'maverick': {\n 'v1': {\n 'swap': '0xb2855783a346735e4aae0c1eb894def861fa9b45'\n },\n 'v2': {\n 'factory': '0x0a7e848aca42d879ef06507fca0e7b33a0a63c1e'\n }\n },\n 'pancakeswap': {\n 'v3': {\n 'factory': '0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865'\n }\n },\n 'voodoo': {\n 'v1': {\n 'vault': '0x4f188afdc40e6d2ddddf5fd1b2df7aef7da52f50'\n }\n },\n 'dackieswap': {\n 'v1': {\n 'factory': '0x3d237ac6d2f425d2e890cc99198818cc1fa48870'\n }\n },\n 'aerodrome': {\n 'v1': {\n 'factory': '0x420dd381b31aef6683db6b902084cb0ffece40da'\n },\n 'v2': {\n 'superchain_slipstream': '0x5e7bb104d84c7cb9b682aac2f3d509f5f406809a'\n }\n }\n },\n 'CURATED_DEFI_DEX_DEXALOT_DEST_CHAIN_ID': 8453,\n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING': {\n 'across': {\n 'v1': {\n 'funds_deposited': '0x09aea4b2242abc8bb4bb78d537a67a245a7bec64'\n },\n 'v3': {\n 'funds_deposited': '0x09aea4b2242abc8bb4bb78d537a67a245a7bec64'\n }\n },\n 'allbridge': {\n 'v2': {\n 'tokens_sent': '0x001e3f136c2f804854581da55ad7660a2b35def7',\n 'lp': '0xda6bb1ec3baba68b26bea0508d6f81c9ec5e96d5'\n }\n },\n 'axelar': {\n 'v1': {\n 'gateway': '0xe432150cce91c13a887f7d836923d5597add8e31',\n 'gas_service': '0x2d5d7d31f671f86c782533cc367f14109a082712',\n 'squid_router': '0xce16f69375520ab01377ce7b88f5ba8c48f8d666',\n 'burn': '0x0000000000000000000000000000000000000000'\n }\n },\n 'chainlink_ccip': {\n 'v1': {\n 'router': '0x881e3a65b4d4a04dd529061dd0071cf975f58bcd'\n }\n },\n 'circle_cctp': {\n 'v1': {\n 'deposit': '0x1682ae6375c4e4a97e4b583bc394c861a46d8962'\n },\n 'v2': {\n 'deposit': '0x28b5a0e9c621a5badaa536219b3a228c8168cf5d'\n }\n },\n 'celer_cbridge': {\n 'v1': {\n 'bridge': '0x7d43aabc515c356145049227cee54b608342c0ad'\n }\n },\n 'dln_debridge': {\n 'v1': {\n 'source': '0xef4fb24ad0916217251f553c0596f8edc630eb66'\n }\n },\n 'everclear': {\n 'v1': {\n 'bridge': '0xa05a3380889115bf313f1db9d5f335157be4d816'\n }\n },\n 'layerzero': {\n 'v2': {\n 'bridge': '0x1a44076050125825900e736c501f859c50fe728c'\n }\n },\n 'l2_standard_bridge': {\n 'v1': {\n 'bridge': '0x4200000000000000000000000000000000000010'\n }\n },\n 'meson': {\n 'v1': {\n 'bridge': '0x25ab3efd52e6470681ce037cd546dc60726948d3'\n }\n },\n 'stargate': {\n 'v1': {\n 'factory': '0xaf5191b0de278c7286d6c7cc6ab6bb8a73ba2cd6',\n 'bridge': '0xaf54be5b6eec24d6bfacf1cce4eaf680a8239398'\n },\n 'v2': {\n 'bridge': '0x5634c4a5fed09819e3c46d86a965dd9447d86e47'\n }\n },\n 'symbiosis': {\n 'v1': {\n 'bridge': '0xee981b2459331ad268cc63ce6167b446af4161f8'\n }\n },\n 'synapse': {\n 'v1': {\n 'token_bridge': '0xf07d1c752fab503e47fef309bf14fbdd3e867089',\n 'token_bridge_swap': '0xf07d1c752fab503e47fef309bf14fbdd3e867089'\n }\n },\n 'wormhole': {\n 'v1': {\n 'token_bridge': '0x8d2de8d2f73f1f4cab472ac9a881c9b123c79627'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_HOP_BRIDGE_CONTRACT': '0xe22d2bedb3eca35e6397e0c6d62857094aa26f52',\n 'CURATED_DEFI_BRIDGE_HOP_TOKEN_CONTRACT': '0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc',\n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING': {\n 'sonne': {\n 'v1': {\n 'comp_v2_origin_from_address': '0xfb59ce8986943163f14c590755b29db2998f2322'\n }\n },\n 'compound': {\n 'v3': {\n 'comp_v3_origin_from_address': ['0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915', '0x2501713a67a3dedde090e42759088a7ef37d4eab']\n }\n },\n 'aave': {\n 'v3': {\n 'aave_version_address': '0xa238dd80c259a72e81d7e4664a9801593f98d1c5'\n },\n },\n 'radiant': {\n 'v2': {\n 'aave_version_address': '0x30798cfe2cca822321ceed7e6085e633aabc492f'\n },\n },\n 'euler': {\n 'v1': {\n 'euler_origin_to_address': '0x7f321498a801a191a93c840750ed637149ddf8d0'\n },\n },\n 'granary': {\n 'v1': {\n 'aave_version_address': '0xb702ce183b4e1faa574834715e5d4a6378d0eed3'\n },\n },\n 'seamless': {\n 'v1': {\n 'aave_version_address': '0x8f44fd754285aa6a2b8b9b97739b79746e0475a7'\n },\n },\n 'morpho': {\n 'v1': {\n 'morpho_blue_address': '0xbbbbbbbbbb9cc5e90e3b3af64bdaf62c37eeffcb'\n }\n },\n 'moonwell': {\n 'v1': {\n 'comp_v2_origin_from_address': ['0x5c000728eb8a4c7f6e78495da2900b0370adb1ed',\n '0xc3f9774af21a030ab785cb45510ba9edc9d0c8cd',\n '0xc84065601e39a623d75dfddd278346b9778d8943',\n '0x0f23882f0a4bf32d4cb1e70c3831747b83dd2287',\n '0x29b28b0ff5b6b26448f3ac02cd209539626d96ab',\n '0x10b83c88e88910cd5293324800d1a6e751004be5',\n '0x3073fcad986fbe9f94cc6caa44f76c12e34516d4']\n }\n }\n }\n\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.239048, "supported_languages": null}, "macro.fsc_evm.boba_vars": {"name": "boba_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/boba_vars.sql", "original_file_path": "macros/global/variables/project_vars/boba_vars.sql", "unique_id": "macro.fsc_evm.boba_vars", "macro_sql": "{% macro boba_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'boba',\n 'GLOBAL_NODE_PROVIDER': 'drpc',\n 'GLOBAL_NODE_URL': 'https://lb.drpc.org/ogrpc?network=boba-eth&dkey={KEY}',\n 'GLOBAL_NODE_VAULT_PATH': 'Vault/prod/evm/drpc',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'WETH',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'ETH',\n 'MAIN_SL_BLOCKS_PER_HOUR': 1800,\n 'MAIN_PRICES_NATIVE_SYMBOLS': 'ETH',\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS': 'ethereum',\n 'MAIN_PRICES_PROVIDER_PLATFORMS': ['boba network', 'boba'],\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME': 'routescan',\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED': true,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL': 'https://api.routescan.io/v2/network/mainnet/evm/288/etherscan/api?module=contract&action=getabi&address=',\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED': true,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON': '3,33 * * * *',\n 'MAIN_GHA_SCHEDULED_SCORES_CRON': '25 5 * * *',\n 'DECODER_SL_CONTRACT_ABIS_REALTIME_PRODUCER_BATCH_SIZE': 50,\n 'DECODER_SL_CONTRACT_ABIS_REALTIME_WORKER_BATCH_SIZE': 50,\n 'MAIN_OBSERV_EXCLUSION_LIST_ENABLED': true,\n 'CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST': ['uniswap-v3','sushiswap-v1','sushiswap-v2'],\n 'CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST': ['uniswap-v3','sushiswap-v1','sushiswap-v2'],\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST': ['celer_cbridge-v1','symbiosis-v1','synapse-v1','l2_standard_bridge-v1'],\n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING': {\n 'uniswap': {\n 'v3': {\n 'uni_v3_pool_created': '0xffcd7aed9c627e82a765c3247d562239507f6f1b'\n }\n },\n 'sushiswap': {\n 'v1': {\n 'uni_v2_pair_created': '0xc35dadb65012ec5796536bd9864ed8773abc74c4'\n },\n 'v2': {\n 'uni_v3_pool_created': '0x0be808376ecb75a5cf9bb6d237d16cd37893d904'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING': {\n 'celer_cbridge': {\n 'v1': {\n 'bridge': '0x841ce48f9446c8e281d3f1444cb859b4a6d0738c'\n }\n },\n 'l2_standard_bridge': {\n 'v1': {\n 'bridge': '0x4200000000000000000000000000000000000010'\n }\n },\n 'symbiosis': {\n 'v1': {\n 'bridge': '0xb8f275fbf7a959f4bce59999a2ef122a099e81a8'\n }\n },\n 'synapse': {\n 'v1': {\n 'token_bridge': '0x432036208d2717394d2614d6697c46df3ed69540',\n 'token_bridge_swap': '0x432036208d2717394d2614d6697c46df3ed69540'\n }\n }\n }\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.2455869, "supported_languages": null}, "macro.fsc_evm.kaia_vars": {"name": "kaia_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/kaia_vars.sql", "original_file_path": "macros/global/variables/project_vars/kaia_vars.sql", "unique_id": "macro.fsc_evm.kaia_vars", "macro_sql": "{% macro kaia_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'kaia'\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.2464817, "supported_languages": null}, "macro.fsc_evm.monad_vars": {"name": "monad_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/monad_vars.sql", "original_file_path": "macros/global/variables/project_vars/monad_vars.sql", "unique_id": "macro.fsc_evm.monad_vars", "macro_sql": "{% macro monad_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'monad',\n 'GLOBAL_NODE_PROVIDER': 'quicknode',\n 'GLOBAL_NODE_URL': \"{URL}\",\n 'GLOBAL_NODE_VAULT_PATH': 'Vault/prod/evm/quicknode/monad/mainnet',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0x3a704ad3e4784b935ae029171adcf57ee7988198',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'WMON',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'MON',\n 'MAIN_SL_BLOCKS_PER_HOUR': 10000,\n 'MAIN_PRICES_NATIVE_SYMBOLS': 'MON',\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS': 'monad',\n 'MAIN_PRICES_PROVIDER_PLATFORMS': 'monad',\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON': '24,54 * * * *',\n 'BALANCES_SL_DAILY_REALTIME_LOOKBACK_DAYS': -2,\n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING': {\n 'uniswap': {\n 'v2': {\n 'uni_v2_pair_created': '0x182a927119d56008d921126764bf884221b10f59'\n },\n 'v3': {\n 'uni_v3_pool_created': '0x204faca1764b154221e35c0d20abb3c525710498'\n },\n 'v4': {\n 'factory': '0x188d586ddcf52439676ca21a244753fa19f9ea8e'\n }\n },\n 'pancakeswap': {\n 'v2': {\n 'uni_v2_pair_created': '0x02a84c1b3bbd7401a5f7fa98a384ebc70bb5749e'\n },\n 'v3': {\n 'factory': '0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865'\n }\n },\n 'curve': {\n 'v1': {\n 'deployer': [\n '0x8271e06e5887fe5ba05234f5315c19f3ec90e8ad',\n '0x6e28493348446503db04a49621d8e6c9a40015fb',\n '0xe7fbd704b938cb8fe26313c3464d4b7b7348c88c'\n ]\n }\n },\n 'octoswap': {\n 'v1': {\n 'uni_v2_pair_created': '0xce104732685b9d7b2f07a09d828f6b19786cda32'\n },\n 'v2': {\n 'uni_v3_pool_created': '0x30db57a29acf3641dfc3885af2e5f1f5a408d9cb'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING': {\n 'layerzero': {\n 'v2': {\n 'bridge': '0x6f475642a6e85809b1c36fa62763669b1b48dd5b'\n }\n },\n 'axelar': {\n 'v1': {\n 'gateway': '0xe432150cce91c13a887f7d836923d5597add8e31',\n 'gas_service': '0xbe406f0189a0b4cf3a05c286473d23791dd44cc6'\n }\n },\n 'wormhole': {\n 'v1': {\n 'token_bridge': '0x0b2719cda2f10595369e6673cea3ee2edfa13ba7'\n }\n },\n 'circle_cctp': {\n 'v2': {\n 'deposit': '0x28b5a0e9c621a5badaa536219b3a228c8168cf5d'\n }\n },\n 'chainlink_ccip': {\n 'v1': {\n 'router': '0x33566fe5976aaa420f3d5c64996641fc3858cadb'\n }\n },\n 'dln_debridge': {\n 'v1': {\n 'source': '0xef4fb24ad0916217251f553c0596f8edc630eb66'\n }\n }\n }\n } %}\n \n {{ return(vars) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.2529933, "supported_languages": null}, "macro.fsc_evm.gnosis_vars": {"name": "gnosis_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/gnosis_vars.sql", "original_file_path": "macros/global/variables/project_vars/gnosis_vars.sql", "unique_id": "macro.fsc_evm.gnosis_vars", "macro_sql": "{% macro gnosis_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'gnosis',\n 'GLOBAL_NODE_PROVIDER': 'quicknode',\n 'GLOBAL_NODE_VAULT_PATH': 'Vault/prod/evm/quicknode/gnosis/mainnet',\n 'GLOBAL_NODE_URL': '{URL}',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0xe91d153e0b41518a2ce8dd3d7944fa863463a97d',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'XDAI',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'XDAI',\n 'MAIN_CORE_BRONZE_BLOCKS_ERROR_CODE_ENABLED': true,\n 'MAIN_SL_BLOCKS_PER_HOUR': 1200,\n 'MAIN_PRICES_NATIVE_SYMBOLS': ['XDAI'],\n 'MAIN_PRICES_PROVIDER_PLATFORMS': ['Gnosis','Gnosis Chain'],\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME': 'gnosisscan',\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED': true,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL': 'https://api.gnosisscan.io/api?module=contract&action=getabi&address=',\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH': 'Vault/prod/block_explorers/gnosis_scan',\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED': true,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON': '25,55 * * * *',\n 'MAIN_GHA_SCHEDULED_SCORES_CRON': '45 5 * * *',\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST': ['hop-v1','celer_cbridge-v1','layerzero-v2'],\n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING': {\n 'curve': {\n 'v1': {\n 'deployer': ['0x7eeac6cddbd1d0b8af061742d41877d7f707289a',\n '0xcbaf0a32f5a16b326f00607421857f68fc72e508',\n '0xd25fcbb7b6021cf83122fcd65be88a045d5f961c',\n '0xd19baeadc667cf2015e395f2b08668ef120f41f5']\n }\n },\n 'balancer': {\n 'v1': {\n 'vault': '0xba12222222228d8ba445958a75a0704d566bf2c8'\n }\n },\n 'sushiswap': {\n 'v1': {\n 'uni_v2_pair_created': '0xc35dadb65012ec5796536bd9864ed8773abc74c4'\n }\n },\n 'honeyswap': {\n 'v1': {\n 'uni_v2_pair_created': '0xa818b4f111ccac7aa31d0bcc0806d64f2e0737d7'\n }\n },\n 'swapr': {\n 'v1': {\n 'uni_v2_pair_created': '0x5d48c95adffd4b40c1aaadc4e08fc44117e02179'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING': {\n 'chainlink_ccip': {\n 'v1': {\n 'router': '0x4aad6071085df840abd9baf1697d5d5992bdadce'\n }\n },\n 'celer_cbridge': {\n 'v1': {\n 'bridge': '0x3795c36e7d12a8c252a20c5a7b455f7c57b60283'\n }\n },\n 'layerzero': {\n 'v2': {\n 'bridge': '0x1a44076050125825900e736c501f859c50fe728c'\n }\n },\n 'meson': {\n 'v1': {\n 'bridge': '0x25ab3efd52e6470681ce037cd546dc60726948d3'\n }\n },\n 'stargate': {\n 'v2': {\n 'bridge': '0xaf368c91793cb22739386dfcbbb2f1a9e4bcbebf'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_HOP_BRIDGE_CONTRACT': '0x6f03052743cd99ce1b29265e377e320cd24eb632',\n 'CURATED_DEFI_BRIDGE_HOP_TOKEN_CONTRACT': '0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc',\n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING': {\n 'aave': {\n 'v3': {\n 'aave_version_address': '0xb50201558b00496a145fe76f7424749556e326d8'\n },\n },\n 'spark': {\n 'v1': {\n 'aave_version_address': '0x2dae5307c5e3fd1cf5a72cb6f698f915860607e0'\n },\n },\n 'realt': {\n 'v3': {\n 'aave_version_address': ['0x5b8d36de471880ee21936f328aab2383a280cb2a',\n '0xfb9b496519fca8473fba1af0850b6b8f476bfdb3']\n },\n }\n }\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.259645, "supported_languages": null}, "macro.fsc_evm.optimism_vars": {"name": "optimism_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/optimism_vars.sql", "original_file_path": "macros/global/variables/project_vars/optimism_vars.sql", "unique_id": "macro.fsc_evm.optimism_vars", "macro_sql": "{% macro optimism_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'optimism',\n 'GLOBAL_NODE_PROVIDER': 'quicknode',\n 'GLOBAL_NODE_VAULT_PATH': 'Vault/prod/evm/quicknode/optimism/mainnet',\n 'GLOBAL_NODE_URL': '{URL}',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0x4200000000000000000000000000000000000006',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'WETH',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'ETH',\n 'MAIN_SL_BLOCKS_PER_HOUR': 1800,\n 'MAIN_PRICES_NATIVE_SYMBOLS': 'ETH',\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS': 'ethereum',\n 'MAIN_PRICES_PROVIDER_PLATFORMS': ['Optimism','optimistic-ethereum'],\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME': 'opscan',\n 'DECODER_SILVER_CONTRACT_ABIS_ETHERSCAN_ENABLED': true,\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL': 'https://api-optimistic.etherscan.io/api?module=contract&action=getabi&address=',\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_VAULT_PATH': 'Vault/prod/block_explorers/optimism_scan',\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED': true,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON': '20,50 * * * *',\n 'MAIN_GHA_SCHEDULED_SCORES_CRON': '10 5 * * *',\n 'MAIN_OBSERV_EXCLUSION_LIST_ENABLED': true,\n 'CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST': ['granary-v1','sonne-v1'],\n 'CURATED_DEFI_DEX_SWAPS_RECENCY_EXCLUSION_LIST': ['woofi-v1','hashflow-v1'],\n 'CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST': ['fraxswap-v1','kyberswap-v2','sushiswap-v1','uniswap-v2'],\n 'CURATED_DEFI_BRIDGE_RECENCY_EXCLUSION_LIST': ['eywa-v1','across-v1','meson-v1','symbiosis-v1','multichain-v7','hop-v1'],\n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING': {\n 'uniswap': {\n 'v2': {\n 'uni_v2_pair_created': '0x0c3c1c532f1e39edf36be9fe0be1410313e074bf'\n },\n 'v3': {\n 'uni_v3_pool_created': '0x1f98431c8ad98523631ae4a59f267346ea31f984'\n }\n },\n 'sushiswap': {\n 'v1': {\n 'deploy_pool': ['0xcaabdd9cf4b61813d4a52f980d6bc1b713fe66f5',\n '0x1b02da8cb0d097eb8d57a175b88c7d8b47997506']\n }\n },\n 'fraxswap': {\n 'v1': {\n 'uni_v2_pair_created': '0x67a1412d2d6cbf211bb71f8e851b4393b491b10f'\n }\n },\n 'kyberswap': {\n 'v1': {\n 'static': '0x1c758af0688502e49140230f6b0ebd376d429be5'\n },\n 'v2': {\n 'elastic': '0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a'\n }\n },\n 'dodo': {\n 'v1': {\n 'proxy': '0xdd0951b69bc0cf9d39111e5037685fb573204c86'\n },\n 'v2': {\n 'deployer': '0x386a28709a31532d4f68b06fd28a27e4ea378364',\n 'new_pool': ['0xdb9c53f2ced34875685b607c97a61a65da2f30a8',\n '0x1f83858cd6d0ae7a08ab1fd977c06dabece6d711',\n '0x2b800dc6270726f7e2266ce8cd5a3f8436fe0b40'],\n 'proxy': '0x169ae3d5acc90f0895790f6321ee81cb040e8a6b'\n }\n },\n 'hashflow': {\n 'v1': {\n 'create': ['0x246d44b1221e44930b207a1a7e235b616c465158',\n '0x63ae536fec0b57bdeb1fd6a893191b4239f61bff']\n },\n 'v3': {\n 'create_pool': '0x6d551f4d999fac0984eb75b2b230ba7e7651bde7'\n }\n },\n 'woofi': {\n 'v1': {\n 'woo_router_swap': '0xeaf1ac8e89ea0ae13e0f03634a4ff23502527024',\n 'woo_swap': ['0xeaf1ac8e89ea0ae13e0f03634a4ff23502527024',\n '0xed9e3f98bbed560e66b89aac922e29d4596a9642']\n },\n 'v2': {\n 'woo_router_swap': '0x4c4af8dbc524681930a27b2f1af5bcc8062e6fb7'\n }\n },\n 'curve': {\n 'v1': {\n 'deployer': ['0x2db0e83599a91b508ac268a6197b8b14f5e72840',\n '0x7eeac6cddbd1d0b8af061742d41877d7f707289a',\n '0x745748bcfd8f9c2de519a71d789be8a63dd7d66c']\n }\n },\n 'beethoven_x': {\n 'v1': {\n 'vault': '0xba12222222228d8ba445958a75a0704d566bf2c8'\n }\n },\n 'synthetix': {\n 'v1': {\n 'synth_exchange': '0x8700daec35af8ff88c16bdf0418774cb3d7599b4'\n }\n },\n 'velodrome': {\n 'v1': {\n 'pair_created': '0x25cbddb98b35ab1ff77413456b31ec81a6b6b746'\n },\n 'v2': {\n 'factory': '0xf1046053aa5682b4f9a81b5481394da16be5ff5a',\n 'converter': '0x585af0b397ac42dbef7f18395426bf878634f18d'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING': {\n 'across': {\n 'v1': {\n 'funds_deposited': '0x6f26bf09b1c792e3228e5467807a900a503c0281'\n },\n 'v3': {\n 'funds_deposited': '0x6f26bf09b1c792e3228e5467807a900a503c0281'\n }\n },\n 'allbridge': {\n 'v2': {\n 'tokens_sent': '0x97e5bf5068ea6a9604ee25851e6c9780ff50d5ab',\n 'lp': ['0xb24a05d54fcacfe1fc00c59209470d4cafb0deea','0x3b96f88b2b9eb87964b852874d41b633e0f1f68f']\n }\n },\n 'axelar': {\n 'v1': {\n 'gateway': ['0xe19bb3b98f7727c520c757b8a00753eb47358b14',\n '0xe432150cce91c13a887f7d836923d5597add8e31'],\n 'gas_service': '0x2d5d7d31f671f86c782533cc367f14109a082712',\n 'squid_router': '0xce16f69375520ab01377ce7b88f5ba8c48f8d666',\n 'burn': '0x0000000000000000000000000000000000000000'\n }\n },\n 'chainlink_ccip': {\n 'v1': {\n 'router': '0x3206695cae29952f4b0c22a169725a865bc8ce0f'\n }\n },\n 'circle_cctp': {\n 'v1': {\n 'deposit': '0x2b4069517957735be00cee0fadae88a26365528f'\n },\n 'v2': {\n 'deposit': '0x28b5a0e9c621a5badaa536219b3a228c8168cf5d'\n }\n },\n 'celer_cbridge': {\n 'v1': {\n 'bridge': '0x9d39fc627a6d9d9f8c831c16995b209548cc3401'\n }\n },\n 'dln_debridge': {\n 'v1': {\n 'source': '0xef4fb24ad0916217251f553c0596f8edc630eb66'\n }\n },\n 'everclear': {\n 'v1': {\n 'bridge': '0xa05a3380889115bf313f1db9d5f335157be4d816'\n }\n },\n 'eywa': {\n 'v1': {\n 'portal': ['0xece9cf6a8f2768a3b8b65060925b646afeaa5167',\n '0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe',\n '0xbf0b5d561b986809924f88099c4ff0e6bcce60c9']\n }\n },\n 'layerzero': {\n 'v2': {\n 'bridge': '0x1a44076050125825900e736c501f859c50fe728c'\n }\n },\n 'l2_standard_bridge': {\n 'v1': {\n 'bridge': '0x4200000000000000000000000000000000000010'\n }\n },\n 'meson': {\n 'v1': {\n 'bridge': '0x25ab3efd52e6470681ce037cd546dc60726948d3'\n }\n },\n 'multichain': {\n 'v7': {\n 'router': '0x1633d66ca91ce4d81f63ea047b7b19beb92df7f3'\n }\n },\n 'stargate': {\n 'v1': {\n 'factory': '0xe3b53af74a4bf62ae5511055290838050bf764df',\n 'bridge': '0x701a95707a0290ac8b90b3719e8ee5b210360883'\n },\n 'v2': {\n 'bridge': '0xf1fcb4cbd57b67d683972a59b6a7b1e2e8bf27e6'\n }\n },\n 'symbiosis': {\n 'v1': {\n 'bridge': '0x292fc50e4eb66c3f6514b9e402dbc25961824d62'\n }\n },\n 'synapse': {\n 'v1': {\n 'token_bridge': '0xaf41a65f786339e7911f4acdad6bd49426f2dc6b',\n 'token_bridge_swap': '0xaf41a65f786339e7911f4acdad6bd49426f2dc6b'\n }\n },\n 'wormhole': {\n 'v1': {\n 'token_bridge': '0x1d68124e65fafc907325e3edbf8c4d84499daa8b'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_HOP_BRIDGE_CONTRACT': '0x03d7f750777ec48d39d080b020d83eb2cb4e3547',\n 'CURATED_DEFI_BRIDGE_HOP_TOKEN_CONTRACT': '0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc',\n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING': {\n 'moonwell': {\n 'v1': {\n 'comp_v2_origin_from_address': ['0x5c000728eb8a4c7f6e78495da2900b0370adb1ed',\n '0xc3f9774af21a030ab785cb45510ba9edc9d0c8cd',\n '0xc84065601e39a623d75dfddd278346b9778d8943',\n '0x0f23882f0a4bf32d4cb1e70c3831747b83dd2287',\n '0x29b28b0ff5b6b26448f3ac02cd209539626d96ab',\n '0x10b83c88e88910cd5293324800d1a6e751004be5',\n '0x3073fcad986fbe9f94cc6caa44f76c12e34516d4']\n }\n },\n 'sonne': {\n 'v1': {\n 'comp_v2_origin_from_address': '0xfb59ce8986943163f14c590755b29db2998f2322'\n }\n },\n 'compound': {\n 'v3': {\n 'comp_v3_origin_from_address': ['0x6103db328d4864dc16bd2f0ee1b9a92e3f87f915', '0x2501713a67a3dedde090e42759088a7ef37d4eab']\n }\n },\n 'granary': {\n 'v1': {\n 'aave_version_address': '0x8fd4af47e4e63d1d2d45582c3286b4bd9bb95dfe'\n }\n },\n 'aave': {\n 'v3': {\n 'aave_version_address': '0x794a61358d6845594f94dc1db02a252b5b4814ad'\n }\n },\n 'morpho': {\n 'v1': {\n 'morpho_blue_address': '0xce95afbb8ea029495c66020883f87aae8864af92'\n }\n }\n }\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.2904544, "supported_languages": null}, "macro.fsc_evm.ink_vars": {"name": "ink_vars", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/variables/project_vars/ink_vars.sql", "original_file_path": "macros/global/variables/project_vars/ink_vars.sql", "unique_id": "macro.fsc_evm.ink_vars", "macro_sql": "{% macro ink_vars() %}\n {% set vars = {\n 'GLOBAL_PROJECT_NAME': 'ink',\n 'GLOBAL_NODE_PROVIDER': 'quicknode',\n 'GLOBAL_NODE_URL': \"{URL}\",\n 'GLOBAL_NODE_VAULT_PATH': 'Vault/prod/evm/quicknode/ink/mainnet',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS': '0x4200000000000000000000000000000000000006',\n 'GLOBAL_WRAPPED_NATIVE_ASSET_SYMBOL': 'WETH',\n 'GLOBAL_NATIVE_ASSET_SYMBOL': 'ETH',\n 'MAIN_SL_BLOCKS_PER_HOUR': 3600,\n 'MAIN_PRICES_NATIVE_SYMBOLS': 'ETH',\n 'MAIN_PRICES_NATIVE_BLOCKCHAINS': 'ethereum',\n 'MAIN_PRICES_PROVIDER_PLATFORMS': 'ink',\n 'DECODER_SILVER_CONTRACT_ABIS_EXPLORER_NAME': 'InkOnChain',\n 'DECODER_SL_CONTRACT_ABIS_EXPLORER_URL': 'https://explorer.inkonchain.com/api/v2/smart-contracts/',\n 'DECODER_SL_CONTRACT_ABIS_BRONZE_TABLE_ENABLED': true,\n 'MAIN_GHA_STREAMLINE_CHAINHEAD_CRON': '9,39 * * * *',\n 'MAIN_GHA_SCHEDULED_SCORES_CRON': '50 5 * * *',\n 'CURATED_DEFI_LENDING_RECENCY_EXCLUSION_LIST': ['morpho-v1'],\n 'CURATED_DEFI_DEX_LP_ACTIONS_RECENCY_EXCLUSION_LIST': ['squidswap-v1'],\n 'CURATED_DEFI_DEX_SWAPS_CONTRACT_MAPPING': {\n 'uniswap': {\n 'v2': {\n 'uni_v2_pair_created': ['0x458c5d5b75ccba22651d2c5b61cb1ea1e0b0f95d', '0xfe57a6ba1951f69ae2ed4abe23e0f095df500c04']\n },\n 'v3': {\n 'uni_v3_pool_created': '0x640887a9ba3a9c53ed27d0f7e8246a4f933f3424'\n }\n },\n 'camelot': {\n 'v2': {\n 'uni_v2_pair_created': '0x31832f2a97fd20664d76cc421207669b55ce4bc0'\n }\n },\n 'squidswap': {\n 'v1': {\n 'uni_v2_pair_created': '0x63b54dbbd2dabf89d5c536746e534711f6094199'\n }\n },\n 'inkswap': {\n 'v1': {\n 'uni_v2_pair_created': '0xbd5b41358a6601924f1fd708af1535a671f530a9'\n }\n },\n 'velodrome': {\n 'v2': {\n 'factory': '0x31832f2a97fd20664d76cc421207669b55ce4bc0'\n },\n 'v3': {\n 'superchain_slipstream': '0x04625b046c69577efc40e6c0bb83cdbafab5a55f'\n }\n }\n },\n 'CURATED_DEFI_BRIDGE_CONTRACT_MAPPING': {\n 'across': {\n 'v3': {\n 'funds_deposited': '0xef684c38f94f48775959ecf2012d7e864ffb9dd4'\n }\n },\n 'everclear': {\n 'v1': {\n 'bridge': '0xa05a3380889115bf313f1db9d5f335157be4d816'\n }\n },\n 'layerzero': {\n 'v2': {\n 'bridge': '0xca29f3a6f966cb2fc0de625f8f325c0c46dbe958'\n }\n },\n 'l2_standard_bridge': {\n 'v1': {\n 'bridge': '0x4200000000000000000000000000000000000010'\n }\n },\n 'stargate': {\n 'v2': {\n 'bridge': '0x45f1a95a4d3f3836523f5c83673c797f4d4d263b'\n }\n }\n },\n 'CURATED_DEFI_LENDING_CONTRACT_MAPPING': {\n 'shroomy': {\n 'v1': {\n 'aave_version_address': '0x70c88e98578bc521a799de0b1c65a2b12d6f99e4'\n }\n },\n 'tydro': {\n 'v1': {\n 'aave_version_address': '0x2816cf15f6d2a220e789aa011d5ee4eb6c47feba'\n }\n },\n 'morpho': {\n 'v1': {\n 'morpho_blue_address': '0x857f3eefe8cbda3bc49367c996cd664a880d3042'\n }\n }\n }\n } %}\n \n {{ return(vars) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.2977772, "supported_languages": null}, "macro.fsc_evm.run_fsc_evm_dispatch_workflow": {"name": "run_fsc_evm_dispatch_workflow", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/github_actions/run_fsc_evm_dispatch_workflow.sql", "original_file_path": "macros/global/github_actions/run_fsc_evm_dispatch_workflow.sql", "unique_id": "macro.fsc_evm.run_fsc_evm_dispatch_workflow", "macro_sql": "{% macro run_fsc_evm_dispatch_workflow(workflow_name, input_repos, command=none) %}\n {% set repo_array %}\n ARRAY_CONSTRUCT(\n {%- for repo in input_repos -%}\n '{{ repo }}'\n {%- if not loop.last -%},{%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% set query %}\n CALL utils.dispatch_workflow(\n '{{ workflow_name }}',\n {{ repo_array }},\n {% if command %}\n '{{ command }}'\n {% else %}\n NULL\n {% endif %}\n )\n {% endset %}\n\n {% do log(\"Dispatching workflow: \" ~ workflow_name, info=true) %}\n {% do log(\"Target repos: \" ~ input_repos | join(\", \"), info=true) %}\n \n {% set results = run_query(query) %}\n \n {% if execute %}\n {% set dispatch_results = results.columns[0].values()[0] %}\n {% do log(\"Dispatch results: \" ~ dispatch_results, info=true) %}\n {% endif %}\n\n {{ return(query) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3006365, "supported_languages": null}, "macro.fsc_evm.create_workflow_table": {"name": "create_workflow_table", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/github_actions/workflow_tasks.sql", "original_file_path": "macros/global/github_actions/workflow_tasks.sql", "unique_id": "macro.fsc_evm.create_workflow_table", "macro_sql": "{% macro create_workflow_table(workflow_values) %}\n {# Intended to be called via the make deploy_gha_workflows_table command in the Makefile #}\n {% set create_schema_sql %}\n CREATE SCHEMA IF NOT EXISTS github_actions;\n {% endset %}\n {% do run_query(create_schema_sql) %}\n \n {% set update_table_sql %}\n CREATE OR REPLACE TABLE {{target.database}}.github_actions.workflows AS \n WITH source_data AS (\n SELECT column1 as workflow_name \n FROM VALUES \n {{ workflow_values }}\n ) \n SELECT \n workflow_name, \n SYSDATE() as inserted_at \n FROM source_data;\n {% endset %}\n {% do run_query(update_table_sql) %}\n \n {% set prod_db = target.database.lower().replace('_dev', '') %}\n {% set grant_sql %}\n GRANT USAGE ON SCHEMA {{target.database}}.github_actions TO ROLE INTERNAL_DEV;\n GRANT USAGE ON SCHEMA {{target.database}}.github_actions TO ROLE DBT_CLOUD_{{ prod_db }};\n \n GRANT SELECT ON TABLE {{target.database}}.github_actions.workflows TO ROLE INTERNAL_DEV;\n GRANT SELECT ON TABLE {{target.database}}.github_actions.workflows TO ROLE DBT_CLOUD_{{ prod_db }};\n {% endset %}\n {% do run_query(grant_sql) %}\n \n {% do log(\"Table github_actions.workflows updated successfully with grants applied.\", info=True) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.306465, "supported_languages": null}, "macro.fsc_evm.create_gha_tasks": {"name": "create_gha_tasks", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/github_actions/workflow_tasks.sql", "original_file_path": "macros/global/github_actions/workflow_tasks.sql", "unique_id": "macro.fsc_evm.create_gha_tasks", "macro_sql": "{% macro create_gha_tasks() %}\n {% set query %}\n SELECT\n task_name,\n workflow_name,\n cron_schedule\n FROM\n {{ ref('github_actions__workflow_schedule') }}\n {% endset %}\n {% set results = run_query(query) %}\n {% if execute and results is not none %}\n {% set results_list = results.rows %}\n {% else %}\n {% set results_list = [] %}\n {% endif %}\n\n {% set prod_db = target.database.lower().replace('_dev', '') %}\n \n {% set created_tasks = [] %}\n \n {% for result in results_list %}\n {% set task_name = result[0] %}\n {% set workflow_name = result[1] %}\n {% set cron_schedule = result[2] %}\n \n {% do log(\"Task: \" ~ task_name ~ \", Schedule: \" ~ cron_schedule, info=true) %}\n \n {% set sql %}\n EXECUTE IMMEDIATE 'CREATE OR REPLACE TASK github_actions.{{ task_name }} WAREHOUSE = DBT_CLOUD SCHEDULE = ''USING CRON {{ cron_schedule }} UTC'' COMMENT = ''Task to trigger {{ workflow_name }}.yml workflow according to {{ cron_schedule }}'' AS DECLARE rs resultset; output string; BEGIN rs := (SELECT github_actions.workflow_dispatches(''FlipsideCrypto'', ''{{ prod_db }}-models'', ''{{ workflow_name }}.yml'', NULL):status_code::int AS status_code); SELECT LISTAGG($1, '';'') INTO :output FROM TABLE(result_scan(LAST_QUERY_ID())) LIMIT 1; CALL SYSTEM$SET_RETURN_VALUE(:output); END;'\n {% endset %}\n \n {% do run_query(sql) %}\n {% do created_tasks.append(task_name) %}\n {% endfor %}\n \n {# Optionally, resume tasks if the variable is set #}\n {% if var('RESUME_GHA_TASKS', false) %}\n {% do log(\"Tasks created in RESUME state. Use var RESUME_GHA_TASKS: false to automatically suspend them.\", info=true) %}\n {% for task_name in created_tasks %}\n {% set resume_task_sql %}\n ALTER TASK github_actions.{{ task_name }} RESUME;\n {% endset %}\n {% do run_query(resume_task_sql) %}\n {% do log(\"Resumed task: \" ~ task_name, info=true) %}\n {% endfor %}\n {% else %}\n {% do log(\"Tasks created in SUSPENDED state. Use var RESUME_GHA_TASKS: true to automatically resume them.\", info=true) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.310209, "supported_languages": null}, "macro.fsc_evm.alter_gha_tasks": {"name": "alter_gha_tasks", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/github_actions/workflow_tasks.sql", "original_file_path": "macros/global/github_actions/workflow_tasks.sql", "unique_id": "macro.fsc_evm.alter_gha_tasks", "macro_sql": "{% macro alter_gha_tasks(\n task_names,\n task_action\n ) %}\n {% set task_list = task_names.split(',') %}\n {% for task_name in task_list %}\n {% set task_name = task_name.strip() %}\n {% set sql %}\n EXECUTE IMMEDIATE 'ALTER TASK IF EXISTS github_actions.{{ task_name }} {{ task_action }};' \n {% endset %}\n {% do run_query(sql) %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3111565, "supported_languages": null}, "macro.fsc_evm.alter_all_gha_tasks": {"name": "alter_all_gha_tasks", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/github_actions/workflow_tasks.sql", "original_file_path": "macros/global/github_actions/workflow_tasks.sql", "unique_id": "macro.fsc_evm.alter_all_gha_tasks", "macro_sql": "{% macro alter_all_gha_tasks(task_action) %}\n {% set query %}\n SELECT\n task_name\n FROM\n {{ ref('github_actions__workflow_schedule') }}\n {% endset %}\n {% set results = run_query(query) %}\n {% if execute and results is not none %}\n {% set results_list = results.rows %}\n {% else %}\n {% set results_list = [] %}\n {% endif %}\n\n {% for result in results_list %}\n {% set task_name = result[0] %}\n {% set sql %}\n EXECUTE IMMEDIATE 'ALTER TASK IF EXISTS github_actions.{{ task_name }} {{ task_action }};' \n {% endset %}\n {% do run_query(sql) %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3125815, "supported_languages": null}, "macro.fsc_evm.drop_github_actions_schema": {"name": "drop_github_actions_schema", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/github_actions/drop_github_actions_schema.sql", "original_file_path": "macros/global/github_actions/drop_github_actions_schema.sql", "unique_id": "macro.fsc_evm.drop_github_actions_schema", "macro_sql": "{% macro drop_github_actions_schema() %}\n\n {% set show_tasks_query %}\n SHOW TASKS IN SCHEMA {{ target.database }}.github_actions;\n {% endset %}\n \n {% set results = run_query(show_tasks_query) %}\n \n {% if execute %}\n {% for task in results %}\n {% set drop_task_sql %}\n DROP TASK IF EXISTS {{ target.database }}.github_actions.{{ task[1] }};\n {% endset %}\n {% do run_query(drop_task_sql) %}\n {% do log(\"Dropped task '\" ~ task[1] ~ \"'\", info=true) %}\n {% endfor %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3142455, "supported_languages": null}, "macro.fsc_evm.generate_workflow_schedules": {"name": "generate_workflow_schedules", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/github_actions/generate_workflow_schedules.sql", "original_file_path": "macros/global/github_actions/generate_workflow_schedules.sql", "unique_id": "macro.fsc_evm.generate_workflow_schedules", "macro_sql": "{% macro generate_workflow_schedules(chainhead_schedule) %}\n\n{# Get all variables from return_vars #}\n{% set vars = return_vars() %}\n\n{# Parse chainhead schedule with safety checks #}\n{% set chainhead_components = chainhead_schedule.split(' ') %}\n{% set chainhead_minutes = chainhead_components[0] if chainhead_components|length > 0 else '0' %}\n{% set chainhead_minutes_list = chainhead_minutes.split(',') | map('int') | list %}\n{% set max_chainhead_minute = chainhead_minutes_list | max if chainhead_minutes_list|length > 0 else 0 %}\n\n{# Generate a repo_id based on database name length to ensure unique schedules #}\n{% set db_name = target.database %}\n{% set repo_id = db_name|length % 12 %}\n\n{# Helper function for root offset, in minutes #}\n{% set root_offset = {} %}\n{% for offset in range(0, 60) %}\n {% do root_offset.update({offset: ((max_chainhead_minute + offset) % 60) | string}) %}\n{% endfor %}\n\n{# Schedule templates with complete cron format #}\n{% set schedule_templates = {\n 'hourly': '{minute} * * * *',\n 'every_4_hours': '{minute} */4 * * *',\n 'daily': '{minute} {hour} * * *',\n 'weekly': '{minute} {hour} * * {day}',\n 'monthly': '{minute} {hour} 28 * *'\n} %}\n\n{# Define workflow definitions #}\n{% set workflow_definitions = [\n {'name': 'dbt_run_streamline_chainhead', 'cadence': 'root', 'root_schedule': chainhead_schedule},\n {'name': 'dbt_run_scheduled_main', 'cadence': 'hourly', 'root_offset': 15},\n {'name': 'dbt_run_scheduled_decoder', 'cadence': 'hourly', 'root_offset': 40},\n {'name': 'dbt_run_scheduled_curated', 'cadence': 'every_4_hours', 'root_offset': 30},\n {'name': 'dbt_run_scheduled_curated_daily', 'cadence': 'daily', 'root_offset': 45, 'hour': 2},\n {'name': 'dbt_run_scheduled_abis', 'cadence': 'daily', 'root_offset': 20, 'hour': 1},\n {'name': 'dbt_run_scheduled_scores', 'cadence': 'daily', 'root_offset': 35, 'hour': 1},\n {'name': 'dbt_test_daily', 'cadence': 'daily', 'root_offset': 50, 'hour': 3},\n {'name': 'dbt_test_intraday', 'cadence': 'every_4_hours', 'root_offset': 50},\n {'name': 'dbt_test_monthly', 'cadence': 'monthly', 'root_offset': 20, 'hour': 1},\n {'name': 'dbt_run_heal_models', 'cadence': 'weekly', 'root_offset': 45, 'hour': 6, 'day': 0},\n {'name': 'dbt_run_full_observability', 'cadence': 'monthly', 'root_offset': 25, 'hour': 2},\n {'name': 'dbt_run_dev_refresh', 'cadence': 'weekly', 'root_offset': 40, 'hour': 7, 'day': 1},\n {'name': 'dbt_run_streamline_decoder_history', 'cadence': 'weekly', 'root_offset': 30, 'hour': 3, 'day': 6},\n {'name': 'dbt_run_streamline_balances_history', 'cadence': 'weekly', 'root_offset': 45, 'hour': 9, 'day': 0},\n {'name': 'dbt_run_streamline_reads_history', 'cadence': 'weekly', 'root_offset': 45, 'hour': 7, 'day': 0},\n {'name': 'dbt_run_streamline_dexalot_chainhead', 'cadence': 'custom'},\n {'name': 'dbt_run_scheduled_dexalot_main', 'cadence': 'custom'},\n {'name': 'dbt_test_beacon', 'cadence': 'custom'},\n {'name': 'dbt_run_streamline_reads', 'cadence': 'custom'},\n {'name': 'dbt_run_streamline_beacon', 'cadence': 'custom'},\n {'name': 'dbt_run_scheduled_beacon', 'cadence': 'custom'},\n {'name': 'dbt_run_nft_reads', 'cadence': 'custom'},\n {'name': 'dbt_run_nft_list', 'cadence': 'custom'}\n] %}\n\n{# Generate all workflow schedules #}\n{% for workflow in workflow_definitions %}\n\n{# Extract workflow name to create variable name for override #}\n{% set workflow_name = workflow.name %}\n{% if workflow_name.startswith('dbt_run') %}\n {% set workflow_name = workflow_name[8:] %}\n{% elif workflow_name.startswith('dbt_test') %}\n {% set workflow_name = workflow_name[4:] %}\n{% endif %}\n\n{# Create variable name for override functionality, which matches variable names set in return_vars() #}\n{% if workflow.cadence == 'custom' %}\n {% set override_cron_var = 'CUSTOM_GHA_' + workflow_name.upper() + '_CRON' %}\n{% else %}\n {% set override_cron_var = 'MAIN_GHA_' + workflow_name.upper() + '_CRON' %}\n{% endif %}\n\n{# Helper variables for template replacement #}\n{% set template = schedule_templates[workflow.cadence] %}\n{% set minute_val = root_offset[workflow.root_offset] %}\n{% set hour_val = (workflow.get('hour', 0) + repo_id) % 24 %}\n{% set day_val = workflow.get('day', 0) %}\n\n SELECT \n '{{ workflow.name }}' AS workflow_name,\n {% if workflow.cadence == 'root' %}\n '{{ workflow.root_schedule }}'\n {% elif workflow.cadence == 'custom' %}\n '{{ vars[override_cron_var] }}'\n {% else %}\n {% if vars[override_cron_var] is defined and vars[override_cron_var] is not none %}\n '{{ vars[override_cron_var] }}'\n {% elif workflow.cadence == 'hourly' or workflow.cadence == 'every_4_hours' %}\n '{{ template.replace(\"{minute}\", minute_val) }}'\n {% elif workflow.cadence == 'daily' or workflow.cadence == 'monthly' %}\n '{{ template.replace(\"{minute}\", minute_val).replace(\"{hour}\", hour_val | string) }}'\n {% elif workflow.cadence == 'weekly' %}\n '{{ template.replace(\"{minute}\", minute_val).replace(\"{hour}\", hour_val | string).replace(\"{day}\", day_val | string) }}'\n {% endif %}\n {% endif %} AS cron_schedule,\n '{{ workflow.cadence }}' AS cadence\n \n {% if not loop.last %}\n UNION ALL\n {% endif %}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3289132, "supported_languages": null}, "macro.fsc_evm.create_fsc_evm_dispatch_workflow": {"name": "create_fsc_evm_dispatch_workflow", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/github_actions/create_fsc_evm_dispatch_workflow.sql", "original_file_path": "macros/global/github_actions/create_fsc_evm_dispatch_workflow.sql", "unique_id": "macro.fsc_evm.create_fsc_evm_dispatch_workflow", "macro_sql": "{% macro create_fsc_evm_dispatch_workflow() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\", false) and target.database.lower() in ['fsc_evm', 'fsc_evm_dev'] %}\n {% set dispatch_workflow_sql %}\n CREATE OR REPLACE PROCEDURE utils.dispatch_workflow(\n workflow_name STRING, -- e.g. 'dbt_run_adhoc'\n input_repos ARRAY, -- e.g. ARRAY_CONSTRUCT('mantle') or ARRAY_CONSTRUCT('all')\n command STRING DEFAULT NULL -- only used when workflow_name = 'dbt_run_adhoc'\n )\n RETURNS ARRAY\n LANGUAGE SQL\n AS\n $$\n DECLARE\n repo_names ARRAY;\n body_params OBJECT;\n results ARRAY;\n first_element STRING;\n repo_count INTEGER;\n workflow_name_with_suffix STRING;\n BEGIN\n -- Add .yml suffix to workflow name\n workflow_name_with_suffix := workflow_name || '.yml';\n\n -- Determine repo list and append -models suffix\n repo_count := ARRAY_SIZE(input_repos);\n first_element := LOWER(input_repos[0]);\n\n -- If the input is 'all', get all active repos from the repos table\n IF (repo_count = 1 AND first_element = 'all') THEN\n SELECT ARRAY_AGG(DISTINCT github_repo) INTO repo_names\n FROM admin.repos\n WHERE is_active = TRUE;\n ELSE\n -- Append -models to each repo name\n repo_names := (\n SELECT ARRAY_AGG(VALUE || '-models')\n FROM TABLE(FLATTEN(input => :input_repos))\n );\n END IF;\n\n -- Conditionally build input payload\n IF (workflow_name_with_suffix = 'dbt_run_adhoc.yml' AND command IS NOT NULL) THEN\n body_params := OBJECT_CONSTRUCT(\n 'ref', 'main',\n 'inputs', OBJECT_CONSTRUCT(\n 'dbt_command', command\n )\n );\n ELSE\n body_params := OBJECT_CONSTRUCT(\n 'ref', 'main',\n 'inputs', OBJECT_CONSTRUCT()\n );\n END IF;\n\n -- Dispatch workflow per repo\n results := (\n SELECT ARRAY_AGG(OBJECT_CONSTRUCT(\n 'repo', repo,\n 'workflow', :workflow_name_with_suffix,\n 'status', CASE \n WHEN response:status_code = 204 THEN 'success'\n ELSE 'failed'\n END,\n 'status_code', response:status_code\n ))\n FROM (\n SELECT \n VALUE as repo,\n github_actions.workflow_dispatches(\n 'FlipsideCrypto',\n VALUE,\n :workflow_name_with_suffix,\n :body_params\n ) as response\n FROM TABLE(FLATTEN(input => :repo_names))\n )\n );\n\n RETURN results;\n END;\n $$;\n\n {% endset %}\n {% do run_query(dispatch_workflow_sql) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3310218, "supported_languages": null}, "macro.fsc_evm.create_fsc_evm_gha_udfs": {"name": "create_fsc_evm_gha_udfs", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/github_actions/create_fsc_evm_gha_udfs.sql", "original_file_path": "macros/global/github_actions/create_fsc_evm_gha_udfs.sql", "unique_id": "macro.fsc_evm.create_fsc_evm_gha_udfs", "macro_sql": "{% macro create_fsc_evm_gha_udfs() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\", false) and target.database.lower() in ['fsc_evm', 'fsc_evm_dev'] %}\n\n {% set create_github_utils_schema %}\n CREATE SCHEMA IF NOT EXISTS GITHUB_UTILS;\n {% endset %}\n {% do run_query(create_github_utils_schema) %}\n\n\n {% set create_github_utils_headers %}\n CREATE OR REPLACE FUNCTION GITHUB_UTILS.HEADERS()\n RETURNS VARCHAR\n LANGUAGE SQL\n IMMUTABLE\n MEMOIZABLE AS '\n SELECT ''{\"Authorization\": \"Bearer {TOKEN}\",\n \"X-GitHub-Api-Version\": \"2022-11-28\",\n \"Accept\": \"application/vnd.github+json\"}''\n\n ';\n {% endset %}\n {% do run_query(create_github_utils_headers) %}\n\n {% set post_sql %}\n CREATE OR REPLACE FUNCTION GITHUB_UTILS.POST(\"ROUTE\" VARCHAR, \"DATA\" OBJECT)\n RETURNS VARIANT\n LANGUAGE SQL\n COMMENT='List all workflow runs for a workflow. You can replace workflow_id with the workflow file name. You can use parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow).'\n AS '\n SELECT\n live.udf_api(\n ''POST'',\n CONCAT_WS(''/'', ''https://api.github.com'', route),\n PARSE_JSON(github_utils.headers()),\n data,\n IFF(_utils.udf_whoami() <> CURRENT_USER(), ''_FSC_SYS/GITHUB'', ''vault/github/api'')\n )\n ';\n {% endset %}\n {% do run_query(post_sql) %}\n\n {% set dispatch_workflow_sql %}\n CREATE OR REPLACE FUNCTION GITHUB_ACTIONS.WORKFLOW_DISPATCHES(\"OWNER\" VARCHAR, \"REPO\" VARCHAR, \"WORKFLOW_ID\" VARCHAR, \"BODY\" OBJECT)\n RETURNS OBJECT\n LANGUAGE SQL\n COMMENT='You can use this endpoint to manually trigger a GitHub Actions workflow run. You can replace workflow_id with the workflow file name. For example, you could use main.yaml. [Docs](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event).'\n AS '\n SELECT\n github_utils.POST(\n CONCAT_WS(''/'', ''repos'', owner, repo, ''actions/workflows'', workflow_id, ''dispatches''),\n COALESCE(body, {''ref'': ''main''})::OBJECT\n )::OBJECT\n ';\n {% endset %}\n {% do run_query(dispatch_workflow_sql) %}\n\n {% set dispatch_workflow_sql_overload %}\n CREATE OR REPLACE FUNCTION GITHUB_ACTIONS.WORKFLOW_DISPATCHES(\"OWNER\" VARCHAR, \"REPO\" VARCHAR, \"WORKFLOW_ID\" VARCHAR)\n RETURNS OBJECT\n LANGUAGE SQL\n COMMENT='You can use this endpoint to manually trigger a GitHub Actions workflow run. You can replace workflow_id with the workflow file name. For example, you could use main.yaml. [Docs](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event).'\n AS '\n SELECT\n github_actions.workflow_dispatches(owner, repo, workflow_id, NULL)\n ';\n {% endset %}\n {% do run_query(dispatch_workflow_sql_overload) %}\n\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3343587, "supported_languages": null}, "macro.fsc_evm.apply_meta_as_tags": {"name": "apply_meta_as_tags", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/tags/snowflake_tagging.sql", "original_file_path": "macros/global/tags/snowflake_tagging.sql", "unique_id": "macro.fsc_evm.apply_meta_as_tags", "macro_sql": "{% macro apply_meta_as_tags(results) %}\n {% if var(\"UPDATE_SNOWFLAKE_TAGS\", false) %}\n {{ log('apply_meta_as_tags', info=False) }}\n {{ log(results, info=False) }}\n {% if execute %}\n\n {%- set tags_by_schema = {} -%}\n {% for res in results -%}\n {% if res.node.meta.database_tags %}\n\n {%- set model_database = res.node.database -%}\n {%- set model_schema = res.node.schema -%}\n {%- set model_schema_full = model_database+'.'+model_schema -%}\n {%- set model_alias = res.node.alias -%}\n\n {% if model_schema_full not in tags_by_schema.keys() %}\n {{ log('need to fetch tags for schema '+model_schema_full, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n show tags in {{model_database}}.{{model_schema}}\n {%- endcall -%}\n {%- set _ = tags_by_schema.update({model_schema_full: load_result('main')['table'].columns.get('name').values()|list}) -%}\n {{ log('Added tags to cache', info=False) }}\n {% else %}\n {{ log('already have tag info for schema', info=False) }}\n {% endif %}\n\n {%- set current_tags_in_schema = tags_by_schema[model_schema_full] -%}\n {{ log('current_tags_in_schema:', info=False) }}\n {{ log(current_tags_in_schema, info=False) }}\n {{ log(\"========== Processing tags for \"+model_schema_full+\".\"+model_alias+\" ==========\", info=False) }}\n\n {% set line -%}\n node: {{ res.node.unique_id }}; status: {{ res.status }} (message: {{ res.message }})\n node full: {{ res.node}}\n meta: {{ res.node.meta}}\n materialized: {{ res.node.config.materialized }}\n {%- endset %}\n {{ log(line, info=False) }}\n\n {%- call statement('main', fetch_result=True) -%}\n select LEVEL,UPPER(TAG_NAME) as TAG_NAME,TAG_VALUE from table(information_schema.tag_references_all_columns('{{model_schema}}.{{model_alias}}', 'table'))\n {%- endcall -%}\n {%- set existing_tags_for_table = load_result('main')['data'] -%}\n {{ log('Existing tags for table:', info=False) }}\n {{ log(existing_tags_for_table, info=False) }}\n\n {{ log('--', info=False) }}\n {% for table_tag in res.node.meta.database_tags.table %}\n\n {{ fsc_evm.create_tag_if_missing(current_tags_in_schema,table_tag|upper) }}\n {% set desired_tag_value = res.node.meta.database_tags.table[table_tag] %}\n\n {{ fsc_evm.set_table_tag_value_if_different(model_schema,model_alias,table_tag,desired_tag_value,existing_tags_for_table)}}\n {% endfor %}\n {{ log(\"========== Finished processing tags for \"+model_alias+\" ==========\", info=False) }}\n {% endif %}\n {% endfor %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.fsc_evm.create_tag_if_missing", "macro.fsc_evm.set_table_tag_value_if_different"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3533256, "supported_languages": null}, "macro.fsc_evm.create_tag_if_missing": {"name": "create_tag_if_missing", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/tags/snowflake_tagging.sql", "original_file_path": "macros/global/tags/snowflake_tagging.sql", "unique_id": "macro.fsc_evm.create_tag_if_missing", "macro_sql": "{% macro create_tag_if_missing(all_tag_names,table_tag) %}\n\t{% if table_tag not in all_tag_names %}\n\t\t{{ log('Creating missing tag '+table_tag, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n create tag if not exists silver.{{table_tag}}\n {%- endcall -%}\n\t\t{{ log(load_result('main').data, info=False) }}\n\t{% else %}\n\t\t{{ log('Tag already exists: '+table_tag, info=False) }}\n\t{% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3544712, "supported_languages": null}, "macro.fsc_evm.set_table_tag_value_if_different": {"name": "set_table_tag_value_if_different", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/tags/snowflake_tagging.sql", "original_file_path": "macros/global/tags/snowflake_tagging.sql", "unique_id": "macro.fsc_evm.set_table_tag_value_if_different", "macro_sql": "{% macro set_table_tag_value_if_different(model_schema,table_name,tag_name,desired_tag_value,existing_tags) %}\n {{ log('Ensuring tag '+tag_name+' has value '+desired_tag_value+' at table level', info=False) }}\n {%- set existing_tag_for_table = existing_tags|selectattr('0','equalto','TABLE')|selectattr('1','equalto',tag_name|upper)|list -%}\n {{ log('Filtered tags for table:', info=False) }}\n {{ log(existing_tag_for_table[0], info=False) }}\n {% if existing_tag_for_table|length > 0 and existing_tag_for_table[0][2]==desired_tag_value %}\n {{ log('Correct tag value already exists', info=False) }}\n {% else %}\n {{ log('Setting tag value for '+tag_name+' to value '+desired_tag_value, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n alter table {{model_schema}}.{{table_name}} set tag {{tag_name}} = '{{desired_tag_value}}'\n {%- endcall -%}\n {{ log(load_result('main').data, info=False) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3566833, "supported_languages": null}, "macro.fsc_evm.set_column_tag_value_if_different": {"name": "set_column_tag_value_if_different", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/tags/snowflake_tagging.sql", "original_file_path": "macros/global/tags/snowflake_tagging.sql", "unique_id": "macro.fsc_evm.set_column_tag_value_if_different", "macro_sql": "{% macro set_column_tag_value_if_different(table_name,column_name,tag_name,desired_tag_value,existing_tags) %}\n {{ log('Ensuring tag '+tag_name+' has value '+desired_tag_value+' at column level', info=False) }}\n {%- set existing_tag_for_column = existing_tags|selectattr('0','equalto','COLUMN')|selectattr('1','equalto',tag_name|upper)|list -%}\n {{ log('Filtered tags for column:', info=False) }}\n {{ log(existing_tag_for_column[0], info=False) }}\n {% if existing_tag_for_column|length > 0 and existing_tag_for_column[0][2]==desired_tag_value %}\n {{ log('Correct tag value already exists', info=False) }}\n {% else %}\n {{ log('Setting tag value for '+tag_name+' to value '+desired_tag_value, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n alter table {{table_name}} modify column {{column_name}} set tag {{tag_name}} = '{{desired_tag_value}}'\n {%- endcall -%}\n {{ log(load_result('main').data, info=False) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3588326, "supported_languages": null}, "macro.fsc_evm.set_database_tag_value": {"name": "set_database_tag_value", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/tags/snowflake_tagging.sql", "original_file_path": "macros/global/tags/snowflake_tagging.sql", "unique_id": "macro.fsc_evm.set_database_tag_value", "macro_sql": "{% macro set_database_tag_value(tag_name,tag_value) %}\n {% set query %}\n create tag if not exists silver.{{tag_name}}\n {% endset %}\n {% do run_query(query) %}\n {% set query %}\n alter database {{target.database}} set tag {{target.database}}.silver.{{tag_name}} = '{{tag_value}}'\n {% endset %}\n {% do run_query(query) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3596609, "supported_languages": null}, "macro.fsc_evm.set_schema_tag_value": {"name": "set_schema_tag_value", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/tags/snowflake_tagging.sql", "original_file_path": "macros/global/tags/snowflake_tagging.sql", "unique_id": "macro.fsc_evm.set_schema_tag_value", "macro_sql": "{% macro set_schema_tag_value(target_schema,tag_name,tag_value) %}\n {% set query %}\n create tag if not exists silver.{{tag_name}}\n {% endset %}\n {% do run_query(query) %}\n {% set query %}\n alter schema {{target.database}}.{{target_schema}} set tag {{target.database}}.silver.{{tag_name}} = '{{tag_value}}'\n {% endset %}\n {% do run_query(query) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3605428, "supported_languages": null}, "macro.fsc_evm.add_database_or_schema_tags": {"name": "add_database_or_schema_tags", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/tags/add_database_or_schema_tags.sql", "original_file_path": "macros/global/tags/add_database_or_schema_tags.sql", "unique_id": "macro.fsc_evm.add_database_or_schema_tags", "macro_sql": "{% macro add_database_or_schema_tags() %}\n {% set prod_db_name = (target.database | replace('_dev', '') | upper) %}\n {{ set_database_tag_value('BLOCKCHAIN_NAME', prod_db_name) }}\n {{ set_database_tag_value('BLOCKCHAIN_TYPE','EVM') }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_evm.set_database_tag_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.361319, "supported_languages": null}, "macro.fsc_evm.livequery_grants": {"name": "livequery_grants", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/livequery/livequery_grants.sql", "original_file_path": "macros/global/livequery/livequery_grants.sql", "unique_id": "macro.fsc_evm.livequery_grants", "macro_sql": "{% macro livequery_grants() %}\n\n{% set vars = return_vars() %}\n{% set target_db = target.database | upper %}\n{% set project = vars.GLOBAL_PROJECT_NAME | upper %}\n\n {% if var(\"UPDATE_UDFS_AND_SPS\", false) %}\n\n {% do run_query(\"GRANT USAGE ON SCHEMA \" ~ target_db ~ \"._live TO AWS_LAMBDA_\" ~ project ~ \"_API;\") %}\n {% do run_query(\"GRANT USAGE ON ALL FUNCTIONS IN SCHEMA \" ~ target_db ~ \"._live TO AWS_LAMBDA_\" ~ project ~ \"_API;\") %}\n {{ log(\"Permissions granted to role AWS_LAMBDA_\" ~ project ~ \"_API for schema \" ~ target_db ~ \"._live\", info=True) }}\n\n {% do run_query(\"GRANT USAGE ON SCHEMA \" ~ target_db ~ \"._live TO DBT_CLOUD_\" ~ project ~ \";\") %}\n {% do run_query(\"GRANT USAGE ON ALL FUNCTIONS IN SCHEMA \" ~ target_db ~ \"._live TO DBT_CLOUD_\" ~ project ~ \";\") %}\n {{ log(\"Permissions granted to role DBT_CLOUD_\" ~ project ~ \" for schema \" ~ target_db ~ \"._live\", info=True) }}\n\n {% do run_query(\"GRANT USAGE ON SCHEMA \" ~ target_db ~ \"._live TO INTERNAL_DEV;\") %}\n {% do run_query(\"GRANT USAGE ON ALL FUNCTIONS IN SCHEMA \" ~ target_db ~ \"._live TO INTERNAL_DEV;\") %}\n {{ log(\"Permissions granted to role INTERNAL_DEV for schema \" ~ target_db ~ \"._live\", info=True) }}\n\n {% do run_query(\"GRANT USAGE ON SCHEMA \" ~ target_db ~ \"._utils TO AWS_LAMBDA_\" ~ project ~ \"_API;\") %}\n {% do run_query(\"GRANT USAGE ON ALL FUNCTIONS IN SCHEMA \" ~ target_db ~ \"._utils TO AWS_LAMBDA_\" ~ project ~ \"_API;\") %}\n {{ log(\"Permissions granted to role AWS_LAMBDA_\" ~ project ~ \"_API for schema \" ~ target_db ~ \"._utils\", info=True) }}\n\n {% do run_query(\"GRANT USAGE ON SCHEMA \" ~ target_db ~ \"._utils TO DBT_CLOUD_\" ~ project ~ \";\") %}\n {% do run_query(\"GRANT USAGE ON ALL FUNCTIONS IN SCHEMA \" ~ target_db ~ \"._utils TO DBT_CLOUD_\" ~ project ~ \";\") %}\n {{ log(\"Permissions granted to role DBT_CLOUD_\" ~ project ~ \" for schema \" ~ target_db ~ \"._utils\", info=True) }}\n\n {% do run_query(\"GRANT USAGE ON SCHEMA \" ~ target_db ~ \"._utils TO INTERNAL_DEV;\") %}\n {% do run_query(\"GRANT USAGE ON ALL FUNCTIONS IN SCHEMA \" ~ target_db ~ \"._utils TO INTERNAL_DEV;\") %}\n {{ log(\"Permissions granted to role INTERNAL_DEV for schema \" ~ target_db ~ \"._utils\", info=True) }}\n \n {% else %}\n {{ log(\"Error: Permission grants unsuccessful.\", info=True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3675413, "supported_languages": null}, "macro.fsc_evm.drop_livequery_schemas": {"name": "drop_livequery_schemas", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/livequery/livequery_grants.sql", "original_file_path": "macros/global/livequery/livequery_grants.sql", "unique_id": "macro.fsc_evm.drop_livequery_schemas", "macro_sql": "{% macro drop_livequery_schemas() %}\n\n{% set target_db = target.database | upper %}\n\n{% if var(\"UPDATE_UDFS_AND_SPS\", false) %}\n\n {% do run_query(\"DROP SCHEMA IF EXISTS \" ~ target_db ~ \"._LIVE;\") %}\n {% do run_query(\"DROP SCHEMA IF EXISTS \" ~ target_db ~ \"._UTILS;\") %}\n {% do run_query(\"DROP SCHEMA IF EXISTS \" ~ target_db ~ \".LIVE;\") %}\n {% do run_query(\"DROP SCHEMA IF EXISTS \" ~ target_db ~ \".UTILS;\") %}\n {{ log(\"Schemas dropped successfully.\", info=True) }}\n\n{% else %}\n {{ log(\"Error: DROP SCHEMA unsuccessful.\", info=True) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.369036, "supported_languages": null}, "macro.fsc_evm.create_fsc_evm_livequery": {"name": "create_fsc_evm_livequery", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/livequery/create_fsc_evm_livequery.sql", "original_file_path": "macros/global/livequery/create_fsc_evm_livequery.sql", "unique_id": "macro.fsc_evm.create_fsc_evm_livequery", "macro_sql": "{% macro create_fsc_evm_livequery() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\", false) and target.database.lower() in ['fsc_evm', 'fsc_evm_dev'] %}\n\n {% set drop_schemas_sql %}\n DROP SCHEMA IF EXISTS _LIVE;\n DROP SCHEMA IF EXISTS _UTILS;\n DROP SCHEMA IF EXISTS LIVE;\n DROP SCHEMA IF EXISTS UTILS;\n {% endset %}\n {% do run_query(drop_schemas_sql) %}\n\n {% set create_schemas_sql %}\n CREATE SCHEMA IF NOT EXISTS _LIVE;\n CREATE SCHEMA IF NOT EXISTS _UTILS;\n CREATE SCHEMA IF NOT EXISTS LIVE;\n CREATE SCHEMA IF NOT EXISTS UTILS;\n {% endset %}\n {% do run_query(create_schemas_sql) %}\n\n {% if target.name == 'prod' %}\n {% set create_internal_live %}\n CREATE OR REPLACE EXTERNAL FUNCTION _LIVE.UDF_API(\n \"METHOD\" VARCHAR(16777216),\n \"URL\" VARCHAR(16777216),\n \"HEADERS\" OBJECT,\n \"DATA\" VARIANT,\n \"USER_ID\" VARCHAR(16777216),\n \"SECRET\" VARCHAR(16777216)\n )\n RETURNS VARIANT\n API_INTEGRATION = \"AWS_EVM_API_PROD_V2\"\n AS 'https://rjh2boxrr2.execute-api.us-east-1.amazonaws.com/prod/udf_api';\n {% endset %}\n {% else %}\n {% set create_internal_live %}\n CREATE OR REPLACE EXTERNAL FUNCTION _LIVE.UDF_API(\n \"METHOD\" VARCHAR(16777216),\n \"URL\" VARCHAR(16777216),\n \"HEADERS\" OBJECT,\n \"DATA\" VARIANT,\n \"USER_ID\" VARCHAR(16777216),\n \"SECRET\" VARCHAR(16777216)\n )\n RETURNS VARIANT\n API_INTEGRATION = \"AWS_EVM_API_STG_V2\"\n AS 'https://n7mq5wo54j.execute-api.us-east-1.amazonaws.com/stg/udf_api';\n {% endset %}\n {% endif %}\n\n {% set create_whoami_sql %}\n CREATE OR REPLACE SECURE FUNCTION _UTILS.UDF_WHOAMI()\n RETURNS VARCHAR(16777216)\n LANGUAGE SQL\n STRICT\n IMMUTABLE\n MEMOIZABLE\n AS '\n SELECT COALESCE(\n PARSE_JSON(GETVARIABLE(''LIVEQUERY_CONTEXT'')):userId::STRING,\n CURRENT_USER()\n )\n ';\n {% endset %}\n\n {% set create_udf_api_sql %}\n -- Standard API call with method, url, headers, and data\n CREATE OR REPLACE FUNCTION LIVE.UDF_API(\n \"METHOD\" VARCHAR(16777216),\n \"URL\" VARCHAR(16777216),\n \"HEADERS\" OBJECT,\n \"DATA\" VARIANT\n )\n RETURNS VARIANT\n LANGUAGE SQL\n AS '\n SELECT _live.UDF_API(\n method,\n url,\n headers,\n data,\n _utils.UDF_WHOAMI(),\n ''''\n )\n ';\n\n -- API call with secret name\n CREATE OR REPLACE FUNCTION LIVE.UDF_API(\n \"METHOD\" VARCHAR(16777216),\n \"URL\" VARCHAR(16777216),\n \"HEADERS\" OBJECT,\n \"DATA\" VARIANT,\n \"SECRET_NAME\" VARCHAR(16777216)\n )\n RETURNS VARIANT\n LANGUAGE SQL\n AS '\n SELECT _live.UDF_API(\n method,\n url,\n headers,\n data,\n _utils.UDF_WHOAMI(),\n secret_name\n )\n ';\n\n -- Simple GET request\n CREATE OR REPLACE FUNCTION LIVE.UDF_API(\n \"URL\" VARCHAR(16777216)\n )\n RETURNS VARIANT\n LANGUAGE SQL\n AS '\n SELECT _live.UDF_API(\n ''GET'',\n url,\n {},\n {},\n _utils.UDF_WHOAMI(),\n ''''\n )\n ';\n\n -- POST request with data\n CREATE OR REPLACE FUNCTION LIVE.UDF_API(\n \"URL\" VARCHAR(16777216),\n \"DATA\" VARIANT\n )\n RETURNS VARIANT\n LANGUAGE SQL\n AS '\n SELECT _live.UDF_API(\n ''POST'',\n url,\n {''Content-Type'': ''application/json''},\n data,\n _utils.UDF_WHOAMI(),\n ''''\n )\n ';\n\n -- POST request with data and secret\n CREATE OR REPLACE FUNCTION LIVE.UDF_API(\n \"URL\" VARCHAR(16777216),\n \"DATA\" VARIANT,\n \"SECRET_NAME\" VARCHAR(16777216)\n )\n RETURNS VARIANT\n LANGUAGE SQL\n AS '\n SELECT _live.UDF_API(\n ''POST'',\n url,\n {''Content-Type'': ''application/json''},\n data,\n _utils.UDF_WHOAMI(),\n secret_name\n )\n ';\n\n -- GET request with secret\n CREATE OR REPLACE FUNCTION LIVE.UDF_API(\n \"URL\" VARCHAR(16777216),\n \"SECRET_NAME\" VARCHAR(16777216)\n )\n RETURNS VARIANT\n LANGUAGE SQL\n AS '\n SELECT _live.UDF_API(\n ''GET'',\n url,\n {},\n {},\n _utils.UDF_WHOAMI(),\n secret_name\n )\n ';\n {% endset %}\n\n {% set create_utils_sql %}\n -- Hex to int conversion with encoding\n CREATE OR REPLACE FUNCTION UTILS.UDF_HEX_TO_INT(\n \"ENCODING\" VARCHAR(16777216),\n \"HEX\" VARCHAR(16777216)\n )\n RETURNS VARCHAR(16777216)\n LANGUAGE PYTHON\n STRICT\n IMMUTABLE\n RUNTIME_VERSION = '3.9'\n HANDLER = 'hex_to_int'\n AS '\ndef hex_to_int(encoding, hex) -> str:\n if not hex:\n return None\n if encoding.lower() == ''s2c'':\n if hex[0:2].lower() != ''0x'':\n hex = f''0x{hex}''\n\n bits = len(hex[2:])*4\n value = int(hex, 0)\n if value & (1 << (bits-1)):\n value -= 1 << bits\n return str(value)\n else:\n return str(int(hex, 16))\n ';\n\n -- Simple hex to int conversion\n CREATE OR REPLACE FUNCTION UTILS.UDF_HEX_TO_INT(\n \"HEX\" VARCHAR(16777216)\n )\n RETURNS VARCHAR(16777216)\n LANGUAGE PYTHON\n STRICT\n IMMUTABLE\n RUNTIME_VERSION = '3.9'\n HANDLER = 'hex_to_int'\n AS '\ndef hex_to_int(hex) -> str:\n return (str(int(hex, 16)) if hex and hex != \"0x\" else None)\n ';\n\n -- Int to hex conversion\n CREATE OR REPLACE FUNCTION UTILS.UDF_INT_TO_HEX(\n \"INT\" NUMBER(38,0)\n )\n RETURNS VARCHAR(16777216)\n LANGUAGE SQL\n STRICT\n IMMUTABLE\n AS '\n SELECT CONCAT(''0x'', TRIM(TO_CHAR(int, ''XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'')))\n ';\n {% endset %}\n\n {% set permissions_sql %}\n GRANT USAGE on SCHEMA _LIVE to INTERNAL_DEV;\n GRANT USAGE ON ALL FUNCTIONS IN SCHEMA _LIVE TO INTERNAL_DEV; \n GRANT USAGE on SCHEMA _UTILS to INTERNAL_DEV;\n GRANT USAGE ON ALL FUNCTIONS IN SCHEMA _UTILS TO INTERNAL_DEV; \n GRANT USAGE on SCHEMA LIVE to INTERNAL_DEV;\n GRANT USAGE ON ALL FUNCTIONS IN SCHEMA LIVE TO INTERNAL_DEV; \n GRANT USAGE on SCHEMA UTILS to INTERNAL_DEV;\n GRANT USAGE ON ALL FUNCTIONS IN SCHEMA UTILS TO INTERNAL_DEV; \n GRANT USAGE on SCHEMA _LIVE to DBT_CLOUD_FSC_EVM;\n GRANT USAGE ON ALL FUNCTIONS IN SCHEMA _LIVE TO DBT_CLOUD_FSC_EVM; \n GRANT USAGE on SCHEMA _UTILS to DBT_CLOUD_FSC_EVM;\n GRANT USAGE ON ALL FUNCTIONS IN SCHEMA _UTILS TO DBT_CLOUD_FSC_EVM; \n GRANT USAGE on SCHEMA LIVE to DBT_CLOUD_FSC_EVM;\n GRANT USAGE ON ALL FUNCTIONS IN SCHEMA LIVE TO DBT_CLOUD_FSC_EVM; \n GRANT USAGE on SCHEMA UTILS to DBT_CLOUD_FSC_EVM;\n GRANT USAGE ON ALL FUNCTIONS IN SCHEMA UTILS TO DBT_CLOUD_FSC_EVM; \n {% endset %}\n\n {% do run_query(create_internal_live) %}\n {% do run_query(create_whoami_sql) %}\n {% do run_query(create_udf_api_sql) %}\n {% do run_query(create_utils_sql) %}\n {% do run_query(permissions_sql) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3790677, "supported_languages": null}, "macro.fsc_evm.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/utilities/custom_naming_macros.sql", "original_file_path": "macros/global/utilities/custom_naming_macros.sql", "unique_id": "macro.fsc_evm.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {% set node_name = node.name %}\n {% set split_name = node_name.split('__') %}\n {{ split_name[0] | trim }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3798842, "supported_languages": null}, "macro.fsc_evm.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/utilities/custom_naming_macros.sql", "original_file_path": "macros/global/utilities/custom_naming_macros.sql", "unique_id": "macro.fsc_evm.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% set node_name = node.name %}\n {% set split_name = node_name.split('__') %}\n {{ split_name[1] | trim }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3804634, "supported_languages": null}, "macro.fsc_evm.log_model_details": {"name": "log_model_details", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/utilities/logging.sql", "original_file_path": "macros/global/utilities/logging.sql", "unique_id": "macro.fsc_evm.log_model_details", "macro_sql": "{% macro log_model_details() %}\n\n{%- if execute -%}\n/* \nDBT Model Config:\n{{ model.config | tojson(indent=2) }}\n*/\n \n/*\nRaw Code:\n{{ model.raw_code }}\n*/\n{%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3810227, "supported_languages": null}, "macro.fsc_evm.release_chain": {"name": "release_chain", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/utilities/release_chain.sql", "original_file_path": "macros/global/utilities/release_chain.sql", "unique_id": "macro.fsc_evm.release_chain", "macro_sql": "{% macro release_chain(schema_name, role_name) %}\n\n{% set prod_db_name = (target.database | replace('_dev', '') | upper) %}\n\n {% if target.database | upper == prod_db_name and target.name == 'prod' %}\n {% do run_query(\"GRANT USAGE ON DATABASE \" ~ prod_db_name ~ \" TO ROLE \" ~ role_name ~ \";\") %}\n {% do run_query(\"GRANT USAGE ON SCHEMA \" ~ prod_db_name ~ \".\" ~ schema_name ~ \" TO ROLE \" ~ role_name ~ \";\") %}\n {% do run_query(\"GRANT SELECT ON ALL TABLES IN SCHEMA \" ~ prod_db_name ~ \".\" ~ schema_name ~ \" TO ROLE \" ~ role_name ~ \";\") %}\n {% do run_query(\"GRANT SELECT ON ALL VIEWS IN SCHEMA \" ~ prod_db_name ~ \".\" ~ schema_name ~ \" TO ROLE \" ~ role_name ~ \";\") %}\n {% do run_query(\"GRANT SELECT ON FUTURE TABLES IN SCHEMA \" ~ schema_name ~ \" TO ROLE \" ~ role_name ~ \";\") %}\n {% do run_query(\"GRANT SELECT ON FUTURE VIEWS IN SCHEMA \" ~ schema_name ~ \" TO ROLE \" ~ role_name ~ \";\") %}\n {{ log(\"Permissions granted to role \" ~ role_name ~ \" for schema \" ~ schema_name, info=True) }}\n {% else %}\n {{ log(\"Not granting SELECT on future tables and views in schema \" ~ schema_name ~ \" to role \" ~ role_name ~ \" because target is not prod\", info=True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.383963, "supported_languages": null}, "macro.fsc_evm.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/tests/dynamic_tests.sql", "original_file_path": "macros/global/tests/dynamic_tests.sql", "unique_id": "macro.fsc_evm.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {%- set where = config.get('where') -%}\n \n {%- set interval_vars = namespace(\n interval_type = none,\n interval_value = none\n ) -%}\n \n {% set intervals = {\n 'minutes': var('minutes', none),\n 'hours': var('hours', none), \n 'days': var('days', none),\n 'weeks': var('weeks', none),\n 'months': var('months', none),\n 'years': var('years', none)\n } %}\n \n {% for type, value in intervals.items() %}\n {% if value is not none %}\n {% set interval_vars.interval_type = type[:-1] %}\n {% set interval_vars.interval_value = value %}\n {% break %}\n {% endif %}\n {% endfor %}\n \n {% if 'dbt_expectations_expect_column_values_to_be_in_type_list' in this | string %}\n {% do return(relation) %}\n {% endif %}\n\n {%- set ts_vars = namespace(\n timestamp_column = none,\n filter_condition = none\n ) -%}\n\n {% if where %}\n {% if \"__timestamp_filter__\" in where %}\n {% set columns = adapter.get_columns_in_relation(relation) %}\n {% set column_names = columns | map(attribute='name') | list %}\n\n {% for column in columns %}\n {% if column.name == 'MODIFIED_TIMESTAMP' %}\n {% set ts_vars.timestamp_column = 'MODIFIED_TIMESTAMP' %}\n {% break %}\n {% endif %}\n {% endfor %}\n\n {% if not ts_vars.timestamp_column %}\n {% for column in columns %}\n {% if column.name == '_INSERTED_TIMESTAMP' %}\n {% set ts_vars.timestamp_column = '_INSERTED_TIMESTAMP' %}\n {% break %}\n {% endif %}\n {% endfor %}\n {% endif %}\n\n {% if not ts_vars.timestamp_column %}\n {% for column in columns %}\n {% if column.name == 'BLOCK_TIMESTAMP' %}\n {% set ts_vars.timestamp_column = 'BLOCK_TIMESTAMP' %}\n {% break %}\n {% endif %}\n {% endfor %}\n {% endif %}\n\n {% if ts_vars.timestamp_column is not none %}\n {% set ts_vars.filter_condition = ts_vars.timestamp_column ~ \" >= dateadd(\" ~ \n interval_vars.interval_type ~ \", -\" ~ \n interval_vars.interval_value ~ \", current_timestamp())\" %}\n {% set where = where | replace(\"__timestamp_filter__\", ts_vars.filter_condition) %}\n {% endif %}\n {% endif %}\n \n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3930237, "supported_languages": null}, "macro.fsc_evm.test_accepted_values_recent_row": {"name": "test_accepted_values_recent_row", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/tests/test_accepted_values_recent_row.sql", "original_file_path": "macros/global/tests/test_accepted_values_recent_row.sql", "unique_id": "macro.fsc_evm.test_accepted_values_recent_row", "macro_sql": "{% test accepted_values_recent_row(\n model,\n column_name,\n context_column,\n value,\n timestamp_column\n) %}\n\nSELECT\n {{ column_name }},\n {{ context_column }}\nFROM\n {{ model }}\nWHERE\n {{ timestamp_column }} = (\n SELECT\n MAX(\n {{ timestamp_column }}\n )\n FROM\n {{ model }}\n )\n AND {{ column_name }} <> {{ value }}\n\n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.3939111, "supported_languages": null}, "macro.fsc_evm.create_evm_streamline_udfs": {"name": "create_evm_streamline_udfs", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/functions/streamline/create_evm_streamline_udfs.sql", "original_file_path": "macros/global/functions/streamline/create_evm_streamline_udfs.sql", "unique_id": "macro.fsc_evm.create_evm_streamline_udfs", "macro_sql": "{% macro create_evm_streamline_udfs() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\n {% do run_query(\"CREATE SCHEMA IF NOT EXISTS streamline\") %}\n \n {{ create_udf_bulk_rest_api_v2() }}\n {{ create_udf_bulk_decode_logs() }}\n {{ create_udf_bulk_decode_traces() }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.fsc_evm.create_udf_bulk_rest_api_v2", "macro.fsc_evm.create_udf_bulk_decode_logs", "macro.fsc_evm.create_udf_bulk_decode_traces"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.394676, "supported_languages": null}, "macro.fsc_evm.create_udf_bulk_rest_api_v2": {"name": "create_udf_bulk_rest_api_v2", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/functions/streamline/streamline_udfs.sql", "original_file_path": "macros/global/functions/streamline/streamline_udfs.sql", "unique_id": "macro.fsc_evm.create_udf_bulk_rest_api_v2", "macro_sql": "{% macro create_udf_bulk_rest_api_v2() %} \n {{ log(\"Creating udf udf_bulk_rest_api for target:\" ~ target.name ~ \", schema: \" ~ target.schema ~ \", DB: \" ~ target.database, info=True) }}\n {{ log(\"role:\" ~ target.role ~ \", user:\" ~ target.user, info=True) }}\n\n {% set sql %}\n CREATE OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_rest_api_v2(json object) returns array api_integration = \n {% if target.name == \"prod\" %} \n {{ log(\"Creating prod udf_bulk_rest_api_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}udf_bulk_rest_api'\n {% elif target.name == \"dev\" %}\n {{ log(\"Creating dev udf_bulk_rest_api_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}udf_bulk_rest_api'\n {% elif target.name == \"sbx\" %}\n {{ log(\"Creating stg udf_bulk_rest_api_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}udf_bulk_rest_api'\n {% else %}\n {{ log(\"Creating default (dev) udf_bulk_rest_api_v2\", info=True) }}\n {{ var(\"config\")[\"dev\"][\"API_INTEGRATION\"] }} AS 'https://{{ var(\"config\")[\"dev\"][\"EXTERNAL_FUNCTION_URI\"] | lower }}udf_bulk_rest_api'\n {% endif %};\n {% endset %}\n {{ log(sql, info=True) }}\n {% do adapter.execute(sql) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4029143, "supported_languages": null}, "macro.fsc_evm.create_udf_bulk_decode_logs": {"name": "create_udf_bulk_decode_logs", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/functions/streamline/streamline_udfs.sql", "original_file_path": "macros/global/functions/streamline/streamline_udfs.sql", "unique_id": "macro.fsc_evm.create_udf_bulk_decode_logs", "macro_sql": "{% macro create_udf_bulk_decode_logs() %} \n {{ log(\"Creating udf udf_bulk_decode_logs_v2 for target:\" ~ target.name ~ \", schema: \" ~ target.schema ~ \", DB: \" ~ target.database, info=True) }}\n {{ log(\"role:\" ~ target.role ~ \", user:\" ~ target.user, info=True) }}\n\n {% set sql %}\n CREATE OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_decode_logs_v2(json object) returns array api_integration = \n {% if target.name == \"prod\" %} \n {{ log(\"Creating prod udf_bulk_decode_logs_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}bulk_decode_logs'\n {% elif target.name == \"dev\" %}\n {{ log(\"Creating dev udf_bulk_decode_logs_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}bulk_decode_logs'\n {% elif target.name == \"sbx\" %}\n {{ log(\"Creating stg udf_bulk_decode_logs_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}bulk_decode_logs'\n {% else %}\n {{ log(\"Creating default (dev) udf_bulk_decode_logs_v2\", info=True) }}\n {{ var(\"config\")[\"dev\"][\"API_INTEGRATION\"] }} AS 'https://{{ var(\"config\")[\"dev\"][\"EXTERNAL_FUNCTION_URI\"] | lower }}bulk_decode_logs'\n {% endif %};\n {% endset %}\n {{ log(sql, info=True) }}\n {% do adapter.execute(sql) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.405815, "supported_languages": null}, "macro.fsc_evm.create_udf_bulk_decode_traces": {"name": "create_udf_bulk_decode_traces", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/functions/streamline/streamline_udfs.sql", "original_file_path": "macros/global/functions/streamline/streamline_udfs.sql", "unique_id": "macro.fsc_evm.create_udf_bulk_decode_traces", "macro_sql": "{% macro create_udf_bulk_decode_traces() %} \n {{ log(\"Creating udf udf_bulk_decode_traces_v2 for target:\" ~ target.name ~ \", schema: \" ~ target.schema ~ \", DB: \" ~ target.database, info=True) }}\n {{ log(\"role:\" ~ target.role ~ \", user:\" ~ target.user, info=True) }}\n\n {% set sql %}\n CREATE OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_decode_traces_v2(json object) returns array api_integration = \n {% if target.name == \"prod\" %} \n {{ log(\"Creating prod udf_bulk_decode_traces_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}bulk_decode_traces'\n {% elif target.name == \"dev\" %}\n {{ log(\"Creating dev udf_bulk_decode_traces_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}bulk_decode_traces'\n {% elif target.name == \"sbx\" %}\n {{ log(\"Creating stg udf_bulk_decode_traces_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}bulk_decode_traces'\n {% else %}\n {{ log(\"Creating default (dev) udf_bulk_decode_traces_v2\", info=True) }}\n {{ var(\"config\")[\"dev\"][\"API_INTEGRATION\"] }} AS 'https://{{ var(\"config\")[\"dev\"][\"EXTERNAL_FUNCTION_URI\"] | lower }}bulk_decode_traces'\n {% endif %};\n {% endset %}\n {{ log(sql, info=True) }}\n {% do adapter.execute(sql) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.408612, "supported_languages": null}, "macro.fsc_evm.create_udfs": {"name": "create_udfs", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/functions/general/create_udfs.sql", "original_file_path": "macros/global/functions/general/create_udfs.sql", "unique_id": "macro.fsc_evm.create_udfs", "macro_sql": "{% macro create_udfs() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\", false) %}\n {% set sql %}\n CREATE schema if NOT EXISTS silver;\n {% endset %}\n {% do run_query(sql) %}\n {{- fsc_utils.create_udfs() -}}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.fsc_utils.create_udfs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4094088, "supported_languages": null}, "macro.fsc_evm.run_sp_create_prod_clone": {"name": "run_sp_create_prod_clone", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/functions/general/run_sp_create_prod_clone.sql", "original_file_path": "macros/global/functions/general/run_sp_create_prod_clone.sql", "unique_id": "macro.fsc_evm.run_sp_create_prod_clone", "macro_sql": "{% macro run_sp_create_prod_clone() %}\n {% set prod_db_name = (target.database | replace('_dev', '') | upper) %}\n {% set dev_suffix = var('DEV_DATABASE_SUFFIX', '_DEV') %}\n {% set clone_role = var('CLONE_ROLE', 'internal_dev') %}\n\n {% set clone_query %}\n call {{ prod_db_name }}._internal.create_prod_clone(\n '{{ prod_db_name }}',\n '{{ prod_db_name }}{{ dev_suffix }}',\n '{{ clone_role }}'\n );\n {% endset %}\n {% do run_query(clone_query) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4107978, "supported_languages": null}, "macro.fsc_evm.block_reorg": {"name": "block_reorg", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/functions/general/block_reorg.sql", "original_file_path": "macros/global/functions/general/block_reorg.sql", "unique_id": "macro.fsc_evm.block_reorg", "macro_sql": "{% macro block_reorg(reorg_model_list, hours) %}\n {% if reorg_model_list %}\n {% set models = reorg_model_list.split(\",\") %}\n {% else %}\n {# Default: get downstream models of core__fact_event_logs, excluding the event logs model itself #}\n {% set target_model_name = 'core__fact_event_logs' %}\n {% set target_unique_id = 'model.fsc_evm.core__fact_event_logs' %}\n \n {# Get all downstream models of core__fact_event_logs #}\n {% set model_nodes = [] %}\n {% for node in graph.nodes.values() %}\n {% if node.resource_type == 'model' and node.config.materialized != 'ephemeral' %}\n {# Check if this node depends on core__fact_event_logs #}\n {% if target_unique_id in node.depends_on.nodes %}\n {% set model_nodes = model_nodes.append(node.name) %}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set models = model_nodes %}\n {{ log(\"Found \" ~ models | length ~ \" downstream models of \" ~ target_model_name, info=true) }}\n {% endif %}\n \n {% for model in models %}\n {% set relation = ref(model) %}\n \n {# Check if this is a table (not a view) #}\n {% set relation_type = adapter.get_relation(database=relation.database, schema=relation.schema, identifier=relation.identifier) %}\n {% if relation_type and relation_type.type != 'table' %}\n {{ log(\"\u26a0\ufe0f Skipping \" ~ model ~ \" - not a table (type: \" ~ relation_type.type ~ \")\", info=true) }}\n {% continue %}\n {% endif %}\n \n {% set columns = adapter.get_columns_in_relation(relation) %}\n {% set column_names = columns | map(attribute='name') | map('lower') | list %}\n \n {% if '_inserted_timestamp' in column_names %}\n {% set timestamp_col = '_inserted_timestamp' %}\n {% elif 'modified_timestamp' in column_names %}\n {% set timestamp_col = 'modified_timestamp' %}\n {% else %}\n {{ log(\"\u26a0\ufe0f Skipping \" ~ model ~ \" - no timestamp column found\", info=true) }}\n {% continue %}\n {% endif %}\n \n {# Check if required columns exist for reorg logic #}\n {% if 'block_number' not in column_names or 'tx_hash' not in column_names %}\n {{ log(\"\u26a0\ufe0f Skipping \" ~ model ~ \" - missing block_number or tx_hash columns\", info=true) }}\n {% continue %}\n {% endif %}\n \n {# First, count how many rows will be deleted #}\n {% set count_sql %}\n SELECT COUNT(*) as row_count\n FROM {{ relation }} t\n left join {{ ref('silver__confirm_blocks') }} cb using (block_number, tx_hash)\n where t.block_timestamp between dateadd('day',-10,sysdate()) and dateadd('hour',-12,sysdate()) \n and cb.tx_hash is null;\n {% endset %}\n \n {% set count_result = run_query(count_sql) %}\n {% set rows_to_delete = count_result.columns[0].values()[0] %}\n \n {% if rows_to_delete > 0 %}\n {% set sql %}\n DELETE FROM {{ relation }} t\n WHERE t.block_timestamp between dateadd('day',-10,sysdate()) and dateadd('hour',-12,sysdate())\n AND NOT EXISTS (\n SELECT 1 FROM {{ ref('silver__confirm_blocks') }} cb \n WHERE cb.block_number = t.block_number \n AND cb.tx_hash = t.tx_hash\n );\n {% endset %}\n {% do run_query(sql) %}\n {{ log(\"\u2705 DELETED \" ~ rows_to_delete ~ \" rows from \" ~ model, info=true) }}\n {% else %}\n {{ log(\"\u2139\ufe0f No rows to delete from \" ~ model, info=true) }}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4182055, "supported_languages": null}, "macro.fsc_evm.create_sps": {"name": "create_sps", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/functions/general/create_sps.sql", "original_file_path": "macros/global/functions/general/create_sps.sql", "unique_id": "macro.fsc_evm.create_sps", "macro_sql": "{% macro create_sps() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\", false) %}\n {% set prod_db_name = (target.database | replace('_dev', '') | upper) %}\n {% if target.database | upper == prod_db_name and target.name == 'prod' %}\n {% set schema_name = var(\"SPS_SCHEMA_NAME\", '_internal') %}\n {% do run_query(\"CREATE SCHEMA IF NOT EXISTS \" ~ schema_name) %}\n \n {% set sp_create_prod_clone_sql %}\n create or replace procedure {{ schema_name }}.create_prod_clone(source_db_name string, destination_db_name string, role_name string)\n returns boolean \n language javascript\n execute as caller\n as\n $$\n snowflake.execute({sqlText: `BEGIN TRANSACTION;`});\n try {\n snowflake.execute({sqlText: `CREATE OR REPLACE DATABASE ${DESTINATION_DB_NAME} CLONE ${SOURCE_DB_NAME}`});\n snowflake.execute({sqlText: `DROP SCHEMA IF EXISTS ${DESTINATION_DB_NAME}._INTERNAL`}); /* this only needs to be in prod */\n\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL SCHEMAS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL FUNCTIONS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL PROCEDURES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL VIEWS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL STAGES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL TABLES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE FUNCTIONS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE PROCEDURES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE VIEWS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE STAGES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE TABLES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`})\n\n var existing_tags = snowflake.execute({sqlText: `SHOW TAGS IN DATABASE ${DESTINATION_DB_NAME};`});\n while (existing_tags.next()) {\n var schema = existing_tags.getColumnValue(4);\n var tag_name = existing_tags.getColumnValue(2)\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON TAG ${DESTINATION_DB_NAME}.${schema}.${tag_name} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`});\n }\n\n snowflake.execute({sqlText: `COMMIT;`});\n } catch (err) {\n snowflake.execute({sqlText: `ROLLBACK;`});\n throw(err);\n }\n\n return true\n $$\n {% endset %}\n\n {% do run_query(sp_create_prod_clone_sql) %}\n {{ log(\"Created stored procedure: \" ~ schema_name ~ \".create_prod_clone\", info=True) }}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.42177, "supported_languages": null}, "macro.fsc_evm.enable_change_tracking": {"name": "enable_change_tracking", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/snowflake/change_tracking.sql", "original_file_path": "macros/global/snowflake/change_tracking.sql", "unique_id": "macro.fsc_evm.enable_change_tracking", "macro_sql": "{% macro enable_change_tracking() %}\n\n{# Get variables #}\n{% set vars = return_vars() %}\n\n {% if 'exclude_change_tracking' not in config.get('tags') and vars.GLOBAL_CHANGE_TRACKING_ENABLED %}\n {% if config.get('materialized') == 'view' %}\n ALTER VIEW {{ this }} SET CHANGE_TRACKING = TRUE;\n {% else %}\n ALTER TABLE {{ this }} SET CHANGE_TRACKING = TRUE;\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_evm.return_vars"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4228697, "supported_languages": null}, "macro.fsc_evm.standard_predicate": {"name": "standard_predicate", "resource_type": "macro", "package_name": "fsc_evm", "path": "macros/global/dbt/incremental_predicates.sql", "original_file_path": "macros/global/dbt/incremental_predicates.sql", "unique_id": "macro.fsc_evm.standard_predicate", "macro_sql": "{% macro standard_predicate(\n input_column = 'block_number'\n ) -%}\n {%- set database_name = target.database -%}\n {%- set schema_name = generate_schema_name(\n node = model\n ) -%}\n {%- set table_name = generate_alias_name(\n node = model\n ) -%}\n {%- set tmp_table_name = table_name ~ '__dbt_tmp' -%}\n {%- set full_table_name = database_name ~ '.' ~ schema_name ~ '.' ~ table_name -%}\n {%- set full_tmp_table_name = database_name ~ '.' ~ schema_name ~ '.' ~ tmp_table_name -%}\n {{ full_table_name }}.{{ input_column }} >= (\n SELECT\n MIN(\n {{ input_column }}\n )\n FROM\n {{ full_tmp_table_name }}\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.fsc_evm.generate_schema_name", "macro.fsc_evm.generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4244099, "supported_languages": null}, "macro.dbt_expectations.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.type_timestamp", "macro_sql": "\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_expectations')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_expectations.snowflake__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4251366, "supported_languages": null}, "macro.dbt_expectations.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() -%}\n timestamp\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.425301, "supported_languages": null}, "macro.dbt_expectations.snowflake__type_timestamp": {"name": "snowflake__type_timestamp", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() -%}\n timestamp_ntz\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.425458, "supported_languages": null}, "macro.dbt_expectations.postgres__type_timestamp": {"name": "postgres__type_timestamp", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.postgres__type_timestamp", "macro_sql": "{% macro postgres__type_timestamp() -%}\n timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4256167, "supported_languages": null}, "macro.dbt_expectations.type_datetime": {"name": "type_datetime", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.type_datetime", "macro_sql": "{% macro type_datetime() -%}\n {{ return(adapter.dispatch('type_datetime', 'dbt_expectations')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.snowflake__type_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4259603, "supported_languages": null}, "macro.dbt_expectations.default__type_datetime": {"name": "default__type_datetime", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.default__type_datetime", "macro_sql": "{% macro default__type_datetime() -%}\n datetime\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4261189, "supported_languages": null}, "macro.dbt_expectations.snowflake__type_datetime": {"name": "snowflake__type_datetime", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.snowflake__type_datetime", "macro_sql": "{% macro snowflake__type_datetime() -%}\n timestamp_ntz\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4262764, "supported_languages": null}, "macro.dbt_expectations.postgres__type_datetime": {"name": "postgres__type_datetime", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.postgres__type_datetime", "macro_sql": "{% macro postgres__type_datetime() -%}\n timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4264276, "supported_languages": null}, "macro.dbt_expectations.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/groupby.sql", "original_file_path": "macros/utils/groupby.sql", "unique_id": "macro.dbt_expectations.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_expectations')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4269812, "supported_languages": null}, "macro.dbt_expectations.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/groupby.sql", "original_file_path": "macros/utils/groupby.sql", "unique_id": "macro.dbt_expectations.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }}\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4274914, "supported_languages": null}, "macro.dbt_expectations.log_natural": {"name": "log_natural", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "unique_id": "macro.dbt_expectations.log_natural", "macro_sql": "{% macro log_natural(x) -%}\n {{ adapter.dispatch('log_natural', 'dbt_expectations') (x) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.snowflake__log_natural"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4280436, "supported_languages": null}, "macro.dbt_expectations.default__log_natural": {"name": "default__log_natural", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "unique_id": "macro.dbt_expectations.default__log_natural", "macro_sql": "{% macro default__log_natural(x) -%}\n\n ln({{ x }})\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4282637, "supported_languages": null}, "macro.dbt_expectations.bigquery__log_natural": {"name": "bigquery__log_natural", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "unique_id": "macro.dbt_expectations.bigquery__log_natural", "macro_sql": "{% macro bigquery__log_natural(x) -%}\n\n ln({{ x }})\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4284747, "supported_languages": null}, "macro.dbt_expectations.snowflake__log_natural": {"name": "snowflake__log_natural", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "unique_id": "macro.dbt_expectations.snowflake__log_natural", "macro_sql": "{% macro snowflake__log_natural(x) -%}\n\n ln({{ x }})\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4286842, "supported_languages": null}, "macro.dbt_expectations.median": {"name": "median", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/median.sql", "original_file_path": "macros/math/median.sql", "unique_id": "macro.dbt_expectations.median", "macro_sql": "{% macro median(field) %}\n{{ dbt_expectations.percentile_cont(field, 0.5) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.percentile_cont"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4290981, "supported_languages": null}, "macro.dbt_expectations.percentile_cont": {"name": "percentile_cont", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "unique_id": "macro.dbt_expectations.percentile_cont", "macro_sql": "{% macro percentile_cont(field, quantile, partition=None) %}\n {{ adapter.dispatch('quantile', 'dbt_expectations') (field, quantile, partition) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.default__quantile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4300299, "supported_languages": null}, "macro.dbt_expectations.default__quantile": {"name": "default__quantile", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "unique_id": "macro.dbt_expectations.default__quantile", "macro_sql": "{% macro default__quantile(field, quantile, partition) -%}\n percentile_cont({{ quantile }}) within group (order by {{ field }})\n {%- if partition %}over(partition by {{ partition }}){% endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.430463, "supported_languages": null}, "macro.dbt_expectations.bigquery__quantile": {"name": "bigquery__quantile", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "unique_id": "macro.dbt_expectations.bigquery__quantile", "macro_sql": "{% macro bigquery__quantile(field, quantile, partition) -%}\n percentile_cont({{ field }}, {{ quantile }})\n over({%- if partition %}partition by {{ partition }}{% endif -%})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4309263, "supported_languages": null}, "macro.dbt_expectations.rand": {"name": "rand", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "unique_id": "macro.dbt_expectations.rand", "macro_sql": "{% macro rand() -%}\n {{ adapter.dispatch('rand', 'dbt_expectations') () }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.snowflake__rand"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4314861, "supported_languages": null}, "macro.dbt_expectations.default__rand": {"name": "default__rand", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "unique_id": "macro.dbt_expectations.default__rand", "macro_sql": "{% macro default__rand() -%}\n\n rand()\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.431645, "supported_languages": null}, "macro.dbt_expectations.bigquery__rand": {"name": "bigquery__rand", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "unique_id": "macro.dbt_expectations.bigquery__rand", "macro_sql": "{% macro bigquery__rand() -%}\n\n rand()\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4317994, "supported_languages": null}, "macro.dbt_expectations.snowflake__rand": {"name": "snowflake__rand", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "unique_id": "macro.dbt_expectations.snowflake__rand", "macro_sql": "{% macro snowflake__rand(seed) -%}\n\n uniform(0::float, 1::float, random())\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4320014, "supported_languages": null}, "macro.dbt_expectations.postgres__rand": {"name": "postgres__rand", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "unique_id": "macro.dbt_expectations.postgres__rand", "macro_sql": "{% macro postgres__rand() -%}\n\n random()\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4321625, "supported_languages": null}, "macro.dbt_expectations.redshift__rand": {"name": "redshift__rand", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "unique_id": "macro.dbt_expectations.redshift__rand", "macro_sql": "{% macro redshift__rand() -%}\n\n random()\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4323156, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_column_count_to_equal_other_table": {"name": "test_expect_table_column_count_to_equal_other_table", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal_other_table.sql", "unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_equal_other_table", "macro_sql": "{%- test expect_table_column_count_to_equal_other_table(model, compare_model) -%}\n{%- if execute -%}\n{%- set number_columns = (adapter.get_columns_in_relation(model) | length) -%}\n{%- set compare_number_columns = (adapter.get_columns_in_relation(compare_model) | length) -%}\nwith test_data as (\n\n select\n {{ number_columns }} as number_columns,\n {{ compare_number_columns }} as compare_number_columns\n\n)\nselect *\nfrom test_data\nwhere\n number_columns != compare_number_columns\n{%- endif -%}\n{%- endtest -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4332547, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_contain_set": {"name": "test_expect_table_columns_to_contain_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_contain_set.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_contain_set.sql", "unique_id": "macro.dbt_expectations.test_expect_table_columns_to_contain_set", "macro_sql": "{%- test expect_table_columns_to_contain_set(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select cast('{{ col_name }}' as {{ dbt.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select cast('{{ col_name }}' as {{ dbt.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n select *\n from\n input_columns i\n left join\n relation_columns r on r.relation_column = i.input_column\n where\n -- catch any column in input list that is not in the list of table columns\n r.relation_column is null\n{%- endif -%}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4354506, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table_times_factor": {"name": "test_expect_table_row_count_to_equal_other_table_times_factor", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table_times_factor.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table_times_factor.sql", "unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table_times_factor", "macro_sql": "{%- test expect_table_row_count_to_equal_other_table_times_factor(model,\n compare_model,\n factor,\n group_by=None,\n compare_group_by=None,\n row_condition=None,\n compare_row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_table_row_count_to_equal_other_table_times_factor',\n 'dbt_expectations') (model,\n compare_model,\n factor,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table_times_factor"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4372633, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table_times_factor": {"name": "default__test_expect_table_row_count_to_equal_other_table_times_factor", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table_times_factor.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table_times_factor.sql", "unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table_times_factor", "macro_sql": "\n\n{%- macro default__test_expect_table_row_count_to_equal_other_table_times_factor(model,\n compare_model,\n factor,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition\n ) -%}\n\n{{ dbt_expectations.test_expect_table_row_count_to_equal_other_table(model,\n compare_model,\n group_by=group_by,\n compare_group_by=compare_group_by,\n factor=factor,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4379096, "supported_languages": null}, "macro.dbt_expectations._list_intersect": {"name": "_list_intersect", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/_list_intersect.sql", "original_file_path": "macros/schema_tests/table_shape/_list_intersect.sql", "unique_id": "macro.dbt_expectations._list_intersect", "macro_sql": "{%- macro _list_intersect(list1, list2) -%}\n{%- set matching_items = [] -%}\n{%- for itm in list1 -%}\n {%- if itm in list2 -%}\n {%- do matching_items.append(itm) -%}\n {%- endif -%}\n{%- endfor -%}\n{%- do return(matching_items) -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4387505, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_column_count_to_be_between": {"name": "test_expect_table_column_count_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_column_count_to_be_between.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_column_count_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_be_between", "macro_sql": "{%- test expect_table_column_count_to_be_between(model,\n min_value=None,\n max_value=None\n ) -%}\n{%- if min_value is none and max_value is none -%}\n{{ exceptions.raise_compiler_error(\n \"You have to provide either a min_value, max_value or both.\"\n) }}\n{%- endif -%}\n{%- if execute -%}\n{%- set number_actual_columns = (adapter.get_columns_in_relation(model) | length) -%}\n\n{%- set expression %}\n( 1=1\n{%- if min_value %} and number_actual_columns >= min_value{% endif %}\n{%- if max_value %} and number_actual_columns <= max_value{% endif %}\n)\n{% endset -%}\n\nwith test_data as (\n\n select\n {{ number_actual_columns }} as number_actual_columns,\n {{ min_value if min_value else 0 }} as min_value,\n {{ max_value if max_value else 0 }} as max_value\n\n)\nselect *\nfrom test_data\nwhere\n not {{ expression }}\n{%- endif -%}\n{%- endtest -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4406343, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_be_between": {"name": "test_expect_table_row_count_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_be_between.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_be_between", "macro_sql": "{%- test expect_table_row_count_to_be_between(model,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) -%}\n {{ adapter.dispatch('test_expect_table_row_count_to_be_between',\n 'dbt_expectations') (model,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_be_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.442102, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_be_between": {"name": "default__test_expect_table_row_count_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_be_between.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_be_between.sql", "unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_be_between", "macro_sql": "\n\n{%- macro default__test_expect_table_row_count_to_be_between(model,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\n ) -%}\n{% set expression %}\ncount(*)\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4428115, "supported_languages": null}, "macro.dbt_expectations.test_expect_row_values_to_have_recent_data": {"name": "test_expect_row_values_to_have_recent_data", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "unique_id": "macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro_sql": "{% test expect_row_values_to_have_recent_data(model,\n column_name,\n datepart,\n interval,\n row_condition=None) %}\n\n {{ adapter.dispatch('test_expect_row_values_to_have_recent_data', 'dbt_expectations') (model,\n column_name,\n datepart,\n interval,\n row_condition) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.444604, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data": {"name": "default__test_expect_row_values_to_have_recent_data", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "unique_id": "macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data", "macro_sql": "{% macro default__test_expect_row_values_to_have_recent_data(model, column_name, datepart, interval, row_condition) %}\n{%- set default_start_date = '1970-01-01' -%}\nwith max_recency as (\n\n select max(cast({{ column_name }} as {{ dbt_expectations.type_timestamp() }})) as max_timestamp\n from\n {{ model }}\n where\n -- to exclude erroneous future dates\n cast({{ column_name }} as {{ dbt_expectations.type_timestamp() }}) <= {{ dbt_date.now() }}\n {% if row_condition %}\n and {{ row_condition }}\n {% endif %}\n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('{{ default_start_date }}' as {{ dbt_expectations.type_timestamp() }}))\n <\n cast({{ dbt.dateadd(datepart, interval * -1, dbt_date.now()) }} as {{ dbt_expectations.type_timestamp() }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp", "macro.dbt_date.now", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4460092, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table": {"name": "test_expect_table_row_count_to_equal_other_table", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table.sql", "unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table", "macro_sql": "{%- test expect_table_row_count_to_equal_other_table(model,\n compare_model,\n group_by=None,\n compare_group_by=None,\n factor=1,\n row_condition=None,\n compare_row_condition=None\n ) -%}\n\n {{ adapter.dispatch('test_expect_table_row_count_to_equal_other_table',\n 'dbt_expectations') (model,\n compare_model,\n group_by,\n compare_group_by,\n factor,\n row_condition,\n compare_row_condition\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4476779, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table": {"name": "default__test_expect_table_row_count_to_equal_other_table", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table.sql", "unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table", "macro_sql": "\n\n{%- macro default__test_expect_table_row_count_to_equal_other_table(model,\n compare_model,\n group_by,\n compare_group_by,\n factor,\n row_condition,\n compare_row_condition\n ) -%}\n{{ dbt_expectations.test_equal_expression(model, \"count(*)\",\n compare_model=compare_model,\n compare_expression=\"count(*) * \" + factor|string,\n group_by=group_by,\n compare_group_by=compare_group_by,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.448418, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_aggregation_to_equal_other_table": {"name": "test_expect_table_aggregation_to_equal_other_table", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_aggregation_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_aggregation_to_equal_other_table.sql", "unique_id": "macro.dbt_expectations.test_expect_table_aggregation_to_equal_other_table", "macro_sql": "{%- test expect_table_aggregation_to_equal_other_table(model,\n expression,\n compare_model,\n compare_expression=None,\n group_by=None,\n compare_group_by=None,\n row_condition=None,\n compare_row_condition=None,\n tolerance=0.0,\n tolerance_percent=None\n ) -%}\n\n\n{{ dbt_expectations.test_equal_expression(\n model,\n expression=expression,\n compare_model=compare_model,\n compare_expression=compare_expression,\n group_by=group_by,\n compare_group_by=compare_group_by,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition,\n tolerance=tolerance,\n tolerance_percent=tolerance_percent\n) }}\n\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4496112, "supported_languages": null}, "macro.dbt_expectations._get_column_list": {"name": "_get_column_list", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/_get_column_list.sql", "original_file_path": "macros/schema_tests/table_shape/_get_column_list.sql", "unique_id": "macro.dbt_expectations._get_column_list", "macro_sql": "{%- macro _get_column_list(model, transform=\"upper\") -%}\n{%- set relation_columns = adapter.get_columns_in_relation(model) -%}\n{%- set relation_column_names = relation_columns | map(attribute=\"name\") | map(transform) | list -%}\n{%- do return(relation_column_names) -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4503946, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_match_ordered_list": {"name": "test_expect_table_columns_to_match_ordered_list", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_match_ordered_list.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_match_ordered_list.sql", "unique_id": "macro.dbt_expectations.test_expect_table_columns_to_match_ordered_list", "macro_sql": "{%- test expect_table_columns_to_match_ordered_list(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select\n {{ loop.index }} as relation_column_idx,\n cast('{{ col_name }}' as {{ dbt.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select\n {{ loop.index }} as input_column_idx,\n cast('{{ col_name }}' as {{ dbt.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n select *\n from\n relation_columns r\n full outer join\n input_columns i on r.relation_column = i.input_column and r.relation_column_idx = i.input_column_idx\n where\n -- catch any column in input list that is not in the sequence of table columns\n -- or any table column that is not in the input sequence\n r.relation_column is null or\n i.input_column is null\n\n{%- endif -%}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4529886, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_to_exist": {"name": "test_expect_column_to_exist", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_column_to_exist.sql", "original_file_path": "macros/schema_tests/table_shape/expect_column_to_exist.sql", "unique_id": "macro.dbt_expectations.test_expect_column_to_exist", "macro_sql": "{%- test expect_column_to_exist(model, column_name, column_index=None, transform=\"upper\") -%}\n{%- if execute -%}\n\n {%- set column_name = column_name | map(transform) | join -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n\n {%- set matching_column_index = relation_column_names.index(column_name) if column_name in relation_column_names else -1 %}\n\n {%- if column_index -%}\n\n {%- set column_index_0 = column_index - 1 if column_index > 0 else 0 -%}\n\n {%- set column_index_matches = true if matching_column_index == column_index_0 else false %}\n\n {%- else -%}\n\n {%- set column_index_matches = true -%}\n\n {%- endif %}\n\n with test_data as (\n\n select\n cast('{{ column_name }}' as {{ dbt.type_string() }}) as column_name,\n {{ matching_column_index }} as matching_column_index,\n {{ column_index_matches }} as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)\n\n{%- endif -%}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.455279, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_equal": {"name": "test_expect_table_row_count_to_equal", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal", "macro_sql": "{%- test expect_table_row_count_to_equal(model,\n value,\n group_by=None,\n row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_table_row_count_to_equal',\n 'dbt_expectations') (model,\n value,\n group_by,\n row_condition\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_equal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4564188, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_equal": {"name": "default__test_expect_table_row_count_to_equal", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_equal", "macro_sql": "\n\n\n\n{%- macro default__test_expect_table_row_count_to_equal(model,\n value,\n group_by,\n row_condition\n ) -%}\n{% set expression %}\ncount(*) = {{ value }}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition)\n }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4570312, "supported_languages": null}, "macro.dbt_expectations.test_expect_grouped_row_values_to_have_recent_data": {"name": "test_expect_grouped_row_values_to_have_recent_data", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "unique_id": "macro.dbt_expectations.test_expect_grouped_row_values_to_have_recent_data", "macro_sql": "{% test expect_grouped_row_values_to_have_recent_data(model,\n group_by,\n timestamp_column,\n datepart,\n interval,\n row_condition=None) %}\n\n {{ adapter.dispatch('test_expect_grouped_row_values_to_have_recent_data', 'dbt_expectations') (model,\n group_by,\n timestamp_column,\n datepart,\n interval,\n row_condition) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4606633, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data": {"name": "default__test_expect_grouped_row_values_to_have_recent_data", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "unique_id": "macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data", "macro_sql": "{% macro default__test_expect_grouped_row_values_to_have_recent_data(model,\n group_by,\n timestamp_column,\n datepart,\n interval,\n row_condition) %}\nwith latest_grouped_timestamps as (\n\n select\n {{ group_by | join(\",\") ~ \",\" if group_by }}\n max(1) as join_key,\n max(cast({{ timestamp_column }} as {{ dbt_expectations.type_timestamp() }})) as latest_timestamp_column\n from\n {{ model }}\n where\n -- to exclude erroneous future dates\n cast({{ timestamp_column }} as {{ dbt_expectations.type_timestamp() }}) <= {{ dbt_date.now() }}\n {% if row_condition %}\n and {{ row_condition }}\n {% endif %}\n\n {% if group_by -%}\n {{ dbt_expectations.group_by(group_by | length) }}\n {%- endif %}\n),\ntotal_row_counts as (\n\n select\n {{ group_by | join(\",\") ~ \",\" if group_by }}\n max(1) as join_key,\n count(*) as row_count\n from\n latest_grouped_timestamps\n {% if group_by -%}\n {{ dbt_expectations.group_by(group_by | length) }}\n {%- endif %}\n\n\n),\noutdated_grouped_timestamps as (\n\n select *\n from\n latest_grouped_timestamps\n where\n -- are the max timestamps per group older than the specified cutoff?\n latest_timestamp_column <\n cast(\n {{ dbt.dateadd(datepart, interval * -1, dbt_date.now()) }}\n as {{ dbt_expectations.type_timestamp() }}\n )\n\n),\nvalidation_errors as (\n\n select\n r.row_count,\n t.*\n from\n total_row_counts r\n left join\n outdated_grouped_timestamps t\n on\n {% for g in group_by %}\n r.{{ g }} = t.{{ g }} and\n {% endfor %}\n r.join_key = t.join_key\n where\n -- fail if either no rows were returned due to row_condition,\n -- or the recency test returned failed rows\n r.row_count = 0\n or\n t.join_key is not null\n\n)\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp", "macro.dbt_date.now", "macro.dbt_expectations.group_by", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.462773, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_match_set": {"name": "test_expect_table_columns_to_match_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_match_set.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_match_set.sql", "unique_id": "macro.dbt_expectations.test_expect_table_columns_to_match_set", "macro_sql": "{%- test expect_table_columns_to_match_set(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select cast('{{ col_name }}' as {{ dbt.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select cast('{{ col_name }}' as {{ dbt.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n select *\n from\n relation_columns r\n full outer join\n input_columns i on r.relation_column = i.input_column\n where\n -- catch any column in input list that is not in the list of table columns\n -- or any table column that is not in the input list\n r.relation_column is null or\n i.input_column is null\n\n{%- endif -%}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4650493, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_not_contain_set": {"name": "test_expect_table_columns_to_not_contain_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_not_contain_set.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_not_contain_set.sql", "unique_id": "macro.dbt_expectations.test_expect_table_columns_to_not_contain_set", "macro_sql": "{%- test expect_table_columns_to_not_contain_set(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select cast('{{ col_name }}' as {{ dbt.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select cast('{{ col_name }}' as {{ dbt.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n -- catch any column in input list that is in the list of table columns\n select *\n from\n input_columns i\n inner join\n relation_columns r on r.relation_column = i.input_column\n\n{%- endif -%}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.467188, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_column_count_to_equal": {"name": "test_expect_table_column_count_to_equal", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal.sql", "unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_equal", "macro_sql": "{%- test expect_table_column_count_to_equal(model, value) -%}\n{%- if execute -%}\n{%- set number_actual_columns = (adapter.get_columns_in_relation(model) | length) -%}\nwith test_data as (\n\n select\n {{ number_actual_columns }} as number_actual_columns,\n {{ value }} as value\n\n)\nselect *\nfrom test_data\nwhere\n number_actual_columns != value\n{%- endif -%}\n{%- endtest -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4679112, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_be_null": {"name": "test_expect_column_values_to_not_be_null", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_null.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_null.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_be_null", "macro_sql": "{% test expect_column_values_to_not_be_null(model, column_name, row_condition=None) %}\n\n{% set expression = column_name ~ \" is not null\" %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4687219, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_between": {"name": "test_expect_column_values_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_between.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_between", "macro_sql": "{% test expect_column_values_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n row_condition=None,\n strictly=False\n ) %}\n\n{% set expression %}\n{{ column_name }}\n{% endset %}\n\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=None,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.470052, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_null": {"name": "test_expect_column_values_to_be_null", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_null.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_null.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_null", "macro_sql": "{% test expect_column_values_to_be_null(model, column_name, row_condition=None) %}\n\n{% set expression = column_name ~ \" is null\" %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4708757, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_of_type": {"name": "test_expect_column_values_to_be_of_type", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_of_type.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_of_type.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_of_type", "macro_sql": "{%- test expect_column_values_to_be_of_type(model, column_name, column_type) -%}\n{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(model, column_name, [column_type]) }}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4713254, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_in_set": {"name": "test_expect_column_values_to_be_in_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_set.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_set.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro_sql": "{% test expect_column_values_to_be_in_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n cast('{{ value }}' as {{ dbt.type_string() }})\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4731047, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_unique": {"name": "test_expect_column_values_to_be_unique", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_unique.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_unique.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_unique", "macro_sql": "{% test expect_column_values_to_be_unique(model, column_name, row_condition=None) %}\n{{ dbt_expectations.test_expect_compound_columns_to_be_unique(model, [column_name], row_condition=row_condition) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_compound_columns_to_be_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4736147, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_be_in_set": {"name": "test_expect_column_values_to_not_be_in_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_in_set.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_in_set.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_be_in_set", "macro_sql": "{% test expect_column_values_to_not_be_in_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n cast('{{ value }}' as {{ dbt.type_string() }})\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n),\nvalidation_errors as (\n -- values from the model that match the set\n select\n v.value_field\n from\n all_values v\n join\n set_values s on v.value_field = s.value_field\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.475256, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_decreasing": {"name": "test_expect_column_values_to_be_decreasing", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_decreasing.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_decreasing.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_decreasing", "macro_sql": "{% test expect_column_values_to_be_decreasing(model, column_name,\n sort_column=None,\n strictly=True,\n row_condition=None,\n group_by=None) %}\n\n{%- set sort_column = column_name if not sort_column else sort_column -%}\n{%- set operator = \"<\" if strictly else \"<=\" %}\nwith all_values as (\n\n select\n {{ sort_column }} as sort_column,\n {%- if group_by -%}\n {{ group_by | join(\", \") }},\n {%- endif %}\n {{ column_name }} as value_field\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nadd_lag_values as (\n\n select\n sort_column,\n value_field,\n lag(value_field) over\n {%- if not group_by -%}\n (order by sort_column)\n {%- else -%}\n (partition by {{ group_by | join(\", \") }} order by sort_column)\n {%- endif %} as value_field_lag\n from\n all_values\n\n),\nvalidation_errors as (\n\n select\n *\n from\n add_lag_values\n where\n value_field_lag is not null\n and\n not (value_field {{ operator }} value_field_lag)\n\n)\nselect *\nfrom validation_errors\n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4774346, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_have_consistent_casing": {"name": "test_expect_column_values_to_have_consistent_casing", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_have_consistent_casing.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_have_consistent_casing.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_have_consistent_casing", "macro_sql": "{% test expect_column_values_to_have_consistent_casing(model, column_name, display_inconsistent_columns=False) %}\n\nwith test_data as (\n\n select\n distinct {{ column_name }} as distinct_values\n from\n {{ model }}\n\n ),\n {% if display_inconsistent_columns %}\n validation_errors as (\n\n select\n lower(distinct_values) as inconsistent_columns,\n count(distinct_values) as set_count_case_insensitive\n from\n test_data\n group by 1\n having\n count(distinct_values) > 1\n\n )\n select * from validation_errors\n {% else %}\n validation_errors as (\n\n select\n count(1) as set_count,\n count(distinct lower(distinct_values)) as set_count_case_insensitive\n from\n test_data\n\n )\n select *\n from\n validation_errors\n where\n set_count != set_count_case_insensitive\n {% endif %}\n {%- endtest -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.478225, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_increasing": {"name": "test_expect_column_values_to_be_increasing", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_increasing.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_increasing.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_increasing", "macro_sql": "{% test expect_column_values_to_be_increasing(model, column_name,\n sort_column=None,\n strictly=True,\n row_condition=None,\n group_by=None) %}\n\n{%- set sort_column = column_name if not sort_column else sort_column -%}\n{%- set operator = \">\" if strictly else \">=\" -%}\nwith all_values as (\n\n select\n {{ sort_column }} as sort_column,\n {%- if group_by -%}\n {{ group_by | join(\", \") }},\n {%- endif %}\n {{ column_name }} as value_field\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nadd_lag_values as (\n\n select\n sort_column,\n {%- if group_by -%}\n {{ group_by | join(\", \") }},\n {%- endif %}\n value_field,\n lag(value_field) over\n {%- if not group_by -%}\n (order by sort_column)\n {%- else -%}\n (partition by {{ group_by | join(\", \") }} order by sort_column)\n {%- endif %} as value_field_lag\n from\n all_values\n\n),\nvalidation_errors as (\n select\n *\n from\n add_lag_values\n where\n value_field_lag is not null\n and\n not (value_field {{ operator }} value_field_lag)\n\n)\nselect *\nfrom validation_errors\n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.480713, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_in_type_list": {"name": "test_expect_column_values_to_be_in_type_list", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_type_list.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_type_list.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro_sql": "{%- test expect_column_values_to_be_in_type_list(model, column_name, column_type_list) -%}\n{%- if execute -%}\n\n {%- set column_name = column_name | upper -%}\n {%- set columns_in_relation = adapter.get_columns_in_relation(model) -%}\n {%- set column_type_list = column_type_list| map(\"upper\") | list -%}\n with relation_columns as (\n\n {% for column in columns_in_relation %}\n select\n cast('{{ column.name | upper }}' as {{ dbt.type_string() }}) as relation_column,\n cast('{{ column.dtype | upper }}' as {{ dbt.type_string() }}) as relation_column_type\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '{{ column_name }}'\n and\n relation_column_type not in ('{{ column_type_list | join(\"', '\") }}')\n\n )\n select *\n from test_data\n\n{%- endif -%}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4826992, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_regex": {"name": "test_expect_column_values_to_match_regex", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro_sql": "{% test expect_column_values_to_match_regex(model, column_name,\n regex,\n row_condition=None,\n is_raw=False\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw) }} > 0\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.483885, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_value_lengths_to_equal": {"name": "test_expect_column_value_lengths_to_equal", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_equal.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_equal.sql", "unique_id": "macro.dbt_expectations.test_expect_column_value_lengths_to_equal", "macro_sql": "{% test expect_column_value_lengths_to_equal(model, column_name,\n value,\n row_condition=None\n ) %}\n\n{% set expression = length(column_name) ~ \" = \" ~ value %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.length", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4848094, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_regex_list": {"name": "test_expect_column_values_to_match_regex_list", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex_list.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_regex_list", "macro_sql": "{% test expect_column_values_to_match_regex_list(model, column_name,\n regex_list,\n match_on=\"any\",\n row_condition=None,\n is_raw=False\n ) %}\n\n{% set expression %}\n {% for regex in regex_list %}\n {{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw) }} > 0\n {%- if not loop.last %}\n {{ \" and \" if match_on == \"all\" else \" or \"}}\n {% endif -%}\n {% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4866827, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern": {"name": "test_expect_column_values_to_not_match_like_pattern", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern", "macro_sql": "{% test expect_column_values_to_not_match_like_pattern(model, column_name,\n like_pattern,\n row_condition=None\n ) %}\n\n{% set expression = dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=False) %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4876602, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_value_lengths_to_be_between": {"name": "test_expect_column_value_lengths_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_be_between.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_value_lengths_to_be_between", "macro_sql": "{% test expect_column_value_lengths_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\n{{ length(column_name) }}\n{% endset %}\n\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=None,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.length", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4890442, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern_list": {"name": "test_expect_column_values_to_not_match_like_pattern_list", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern_list.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern_list", "macro_sql": "{% test expect_column_values_to_not_match_like_pattern_list(model, column_name,\n like_pattern_list,\n match_on=\"any\",\n row_condition=None\n ) %}\n\n{% set expression %}\n {% for like_pattern in like_pattern_list %}\n {{ dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=False) }}\n {%- if not loop.last %}\n {{ \" and \" if match_on == \"all\" else \" or \"}}\n {% endif -%}\n {% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4908688, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_regex": {"name": "test_expect_column_values_to_not_match_regex", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_regex", "macro_sql": "{% test expect_column_values_to_not_match_regex(model, column_name,\n regex,\n row_condition=None,\n is_raw=False\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw) }} = 0\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4920838, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern_list": {"name": "test_expect_column_values_to_match_like_pattern_list", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern_list.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern_list", "macro_sql": "{% test expect_column_values_to_match_like_pattern_list(model, column_name,\n like_pattern_list,\n match_on=\"any\",\n row_condition=None\n ) %}\n\n{% set expression %}\n {% for like_pattern in like_pattern_list %}\n {{ dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=True) }}\n {%- if not loop.last %}\n {{ \" and \" if match_on == \"all\" else \" or \"}}\n {% endif -%}\n {% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4939187, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_regex_list": {"name": "test_expect_column_values_to_not_match_regex_list", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex_list.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_regex_list", "macro_sql": "{% test expect_column_values_to_not_match_regex_list(model, column_name,\n regex_list,\n match_on=\"any\",\n row_condition=None,\n is_raw=False\n ) %}\n\n{% set expression %}\n{% for regex in regex_list %}\n{{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw) }} = 0\n{%- if not loop.last %}\n{{ \" and \" if match_on == \"all\" else \" or \"}}\n{% endif -%}\n{% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4957988, "supported_languages": null}, "macro.dbt_expectations._get_like_pattern_expression": {"name": "_get_like_pattern_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/_get_like_pattern_expression.sql", "original_file_path": "macros/schema_tests/string_matching/_get_like_pattern_expression.sql", "unique_id": "macro.dbt_expectations._get_like_pattern_expression", "macro_sql": "{% macro _get_like_pattern_expression(column_name, like_pattern, positive) %}\n{{ column_name }} {{ \"not\" if not positive else \"\" }} like '{{ like_pattern }}'\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4963248, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern": {"name": "test_expect_column_values_to_match_like_pattern", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern", "macro_sql": "{% test expect_column_values_to_match_like_pattern(model, column_name,\n like_pattern,\n row_condition=None\n ) %}\n\n{% set expression = dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=True) %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4973092, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_be_less_than": {"name": "test_expect_column_distinct_count_to_be_less_than", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_less_than.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_less_than.sql", "unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_be_less_than", "macro_sql": "{% test expect_column_distinct_count_to_be_less_than(model,\n column_name,\n value,\n group_by=None,\n row_condition=None\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }}) < {{ value }}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition)\n }}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.4983811, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_proportion_of_unique_values_to_be_between": {"name": "test_expect_column_proportion_of_unique_values_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_proportion_of_unique_values_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_proportion_of_unique_values_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_proportion_of_unique_values_to_be_between", "macro_sql": "{% test expect_column_proportion_of_unique_values_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }})/count({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5000129, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_unique_value_count_to_be_between": {"name": "test_expect_column_unique_value_count_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_unique_value_count_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_unique_value_count_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_unique_value_count_to_be_between", "macro_sql": "{% test expect_column_unique_value_count_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5014243, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_mean_to_be_between": {"name": "test_expect_column_mean_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_mean_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_mean_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_mean_to_be_between", "macro_sql": "{% test expect_column_mean_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\navg({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.502809, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_values_to_be_in_set": {"name": "test_expect_column_distinct_values_to_be_in_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_be_in_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_be_in_set.sql", "unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_be_in_set", "macro_sql": "{% test expect_column_distinct_values_to_be_in_set(model,\n column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n unique_set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.504441, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_min_to_be_between": {"name": "test_expect_column_min_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_min_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_min_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_min_to_be_between", "macro_sql": "{% test expect_column_min_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\nmin({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5058234, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_sum_to_be_between": {"name": "test_expect_column_sum_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_sum_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_sum_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_sum_to_be_between", "macro_sql": "{% test expect_column_sum_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\nsum({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5072064, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_median_to_be_between": {"name": "test_expect_column_median_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_median_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_median_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_median_to_be_between", "macro_sql": "{% test expect_column_median_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.median(column_name) }}\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.median", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.508634, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_max_to_be_between": {"name": "test_expect_column_max_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_max_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_max_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_max_to_be_between", "macro_sql": "{% test expect_column_max_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\nmax({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5100079, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_be_greater_than": {"name": "test_expect_column_distinct_count_to_be_greater_than", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_greater_than.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_greater_than.sql", "unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_be_greater_than", "macro_sql": "{% test expect_column_distinct_count_to_be_greater_than(model,\n column_name,\n value,\n group_by=None,\n row_condition=None\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }}) > {{ value }}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition)\n }}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5111032, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_equal": {"name": "test_expect_column_distinct_count_to_equal", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal.sql", "unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_equal", "macro_sql": "{% test expect_column_distinct_count_to_equal(model,\n column_name,\n value,\n group_by=None,\n row_condition=None\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }}) = {{ value }}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition)\n }}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5121708, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_quantile_values_to_be_between": {"name": "test_expect_column_quantile_values_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_quantile_values_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_quantile_values_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_quantile_values_to_be_between", "macro_sql": "{% test expect_column_quantile_values_to_be_between(model, column_name,\n quantile,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.percentile_cont(column_name, quantile) }}\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.percentile_cont", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5136864, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_equal_other_table": {"name": "test_expect_column_distinct_count_to_equal_other_table", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal_other_table.sql", "unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_equal_other_table", "macro_sql": "{% test expect_column_distinct_count_to_equal_other_table(model,\n compare_model,\n column_name,\n compare_column_name,\n row_condition=None,\n compare_row_condition=None\n ) %}\n{%- set expression -%}\ncount(distinct {{ column_name }})\n{%- endset -%}\n{%- set compare_expression -%}\n{%- if compare_column_name -%}\ncount(distinct {{ compare_column_name }})\n{%- else -%}\n{{ expression }}\n{%- endif -%}\n{%- endset -%}\n{{ dbt_expectations.test_equal_expression(\n model,\n expression=expression,\n compare_model=compare_model,\n compare_expression=compare_expression,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.515109, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_most_common_value_to_be_in_set": {"name": "test_expect_column_most_common_value_to_be_in_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "unique_id": "macro.dbt_expectations.test_expect_column_most_common_value_to_be_in_set", "macro_sql": "{% test expect_column_most_common_value_to_be_in_set(model,\n column_name,\n value_set,\n top_n,\n quote_values=True,\n data_type=\"decimal\",\n row_condition=None\n ) -%}\n\n {{ adapter.dispatch('test_expect_column_most_common_value_to_be_in_set', 'dbt_expectations') (\n model, column_name, value_set, top_n, quote_values, data_type, row_condition\n ) }}\n\n{%- endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5178676, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set": {"name": "default__test_expect_column_most_common_value_to_be_in_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "unique_id": "macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set", "macro_sql": "{% macro default__test_expect_column_most_common_value_to_be_in_set(model,\n column_name,\n value_set,\n top_n,\n quote_values,\n data_type,\n row_condition\n ) %}\n\nwith value_counts as (\n\n select\n {% if quote_values -%}\n {{ column_name }}\n {%- else -%}\n cast({{ column_name }} as {{ data_type }})\n {%- endif %} as value_field,\n count(*) as value_count\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n group by {% if quote_values -%}\n {{ column_name }}\n {%- else -%}\n cast({{ column_name }} as {{ data_type }})\n {%- endif %}\n\n),\nvalue_counts_ranked as (\n\n select\n *,\n row_number() over(order by value_count desc) as value_count_rank\n from\n value_counts\n\n),\nvalue_count_top_n as (\n\n select\n value_field\n from\n value_counts_ranked\n where\n value_count_rank = {{ top_n }}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n cast({{ value }} as {{ data_type }})\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n value_field\n from\n value_count_top_n\n where\n value_field not in (select value_field from unique_set_values)\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5194755, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_values_to_contain_set": {"name": "test_expect_column_distinct_values_to_contain_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_contain_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_contain_set.sql", "unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_contain_set", "macro_sql": "{% test expect_column_distinct_values_to_contain_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n -- values in set that are not in the list of values from the model\n select\n s.value_field\n from\n unique_set_values s\n left join\n all_values v on s.value_field = v.value_field\n where\n v.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5211394, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_values_to_equal_set": {"name": "test_expect_column_distinct_values_to_equal_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_equal_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_equal_set.sql", "unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_equal_set", "macro_sql": "{% test expect_column_distinct_values_to_equal_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select distinct\n {{ column_name }} as column_value\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n\n select\n *\n from\n all_values v\n full outer join\n unique_set_values s on v.column_value = s.value_field\n where\n v.column_value is null or\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5227675, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_stdev_to_be_between": {"name": "test_expect_column_stdev_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_stdev_to_be_between", "macro_sql": "{% test expect_column_stdev_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) -%}\n {{ adapter.dispatch('test_expect_column_stdev_to_be_between', 'dbt_expectations') (\n model, column_name,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\n ) }}\n{%- endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_stdev_to_be_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5248995, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_stdev_to_be_between": {"name": "default__test_expect_column_stdev_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "unique_id": "macro.dbt_expectations.default__test_expect_column_stdev_to_be_between", "macro_sql": "{% macro default__test_expect_column_stdev_to_be_between(\n model, column_name,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\n ) %}\n\n{% set expression %}\nstddev({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5259373, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_pair_values_to_be_in_set": {"name": "test_expect_column_pair_values_to_be_in_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_in_set.sql", "original_file_path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_in_set.sql", "unique_id": "macro.dbt_expectations.test_expect_column_pair_values_to_be_in_set", "macro_sql": "{% test expect_column_pair_values_to_be_in_set(model,\n column_A,\n column_B,\n value_pairs_set,\n row_condition=None\n ) %}\n\n{% set expression %}\n{% for pair in value_pairs_set %}\n{%- if (pair | length) == 2 %}\n({{ column_A }} = {{ pair[0] }} and {{ column_B }} = {{ pair[1] }}){% if not loop.last %} or {% endif %}\n{% else %}\n{{ exceptions.raise_compiler_error(\n \"`value_pairs_set` argument for expect_column_pair_values_to_be_in_set test cannot have more than 2 item per element.\n Got: '\" ~ pair ~ \"'.'\"\n ) }}\n{% endif %}\n{% endfor %}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5284405, "supported_languages": null}, "macro.dbt_expectations.test_expect_multicolumn_sum_to_equal": {"name": "test_expect_multicolumn_sum_to_equal", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/multi-column/expect_multicolumn_sum_to_equal.sql", "original_file_path": "macros/schema_tests/multi-column/expect_multicolumn_sum_to_equal.sql", "unique_id": "macro.dbt_expectations.test_expect_multicolumn_sum_to_equal", "macro_sql": "{% test expect_multicolumn_sum_to_equal(model,\n column_list,\n sum_total,\n group_by=None,\n row_condition=None\n ) %}\n\n{% set expression %}\n{% for column in column_list %}\nsum({{ column }}){% if not loop.last %} + {% endif %}\n{% endfor %} = {{ sum_total }}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5300515, "supported_languages": null}, "macro.dbt_expectations.test_expect_compound_columns_to_be_unique": {"name": "test_expect_compound_columns_to_be_unique", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/multi-column/expect_compound_columns_to_be_unique.sql", "original_file_path": "macros/schema_tests/multi-column/expect_compound_columns_to_be_unique.sql", "unique_id": "macro.dbt_expectations.test_expect_compound_columns_to_be_unique", "macro_sql": "{% test expect_compound_columns_to_be_unique(model,\n column_list,\n quote_columns=False,\n ignore_row_if=\"all_values_are_missing\",\n row_condition=None\n ) %}\n{% if not column_list %}\n {{ exceptions.raise_compiler_error(\n \"`column_list` must be specified as a list of columns. Got: '\" ~ column_list ~\"'.'\"\n ) }}\n{% endif %}\n\n{% if not quote_columns %}\n {%- set columns=column_list %}\n{% elif quote_columns %}\n {%- set columns=[] %}\n {% for column in column_list -%}\n {% set columns = columns.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for expect_compound_columns_to_be_unique test must be one of [True, False] Got: '\" ~ quote_columns ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set row_condition_ext -%}\n\n {%- if row_condition %}\n {{ row_condition }} and\n {% endif -%}\n\n {{ dbt_expectations.ignore_row_if_expression(ignore_row_if, columns) }}\n\n{%- endset -%}\n\nwith validation_errors as (\n\n select\n {% for column in columns -%}\n {{ column }}{% if not loop.last %},{% endif %}\n {%- endfor %}\n from {{ model }}\n where\n 1=1\n {%- if row_condition_ext %}\n and {{ row_condition_ext }}\n {% endif %}\n group by\n {% for column in columns -%}\n {{ column }}{% if not loop.last %},{% endif %}\n {%- endfor %}\n having count(*) > 1\n\n)\nselect * from validation_errors\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5337968, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_pair_values_A_to_be_greater_than_B": {"name": "test_expect_column_pair_values_A_to_be_greater_than_B", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/multi-column/expect_column_pair_values_A_to_be_greater_than_B.sql", "original_file_path": "macros/schema_tests/multi-column/expect_column_pair_values_A_to_be_greater_than_B.sql", "unique_id": "macro.dbt_expectations.test_expect_column_pair_values_A_to_be_greater_than_B", "macro_sql": "{% test expect_column_pair_values_A_to_be_greater_than_B(model,\n column_A,\n column_B,\n or_equal=False,\n row_condition=None\n ) %}\n\n{% set operator = \">=\" if or_equal else \">\" %}\n{% set expression = column_A ~ \" \" ~ operator ~ \" \" ~ column_B %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.535144, "supported_languages": null}, "macro.dbt_expectations.test_expect_select_column_values_to_be_unique_within_record": {"name": "test_expect_select_column_values_to_be_unique_within_record", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "original_file_path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "unique_id": "macro.dbt_expectations.test_expect_select_column_values_to_be_unique_within_record", "macro_sql": "{% test expect_select_column_values_to_be_unique_within_record(model,\n column_list,\n quote_columns=False,\n ignore_row_if=\"all_values_are_missing\",\n row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_select_column_values_to_be_unique_within_record', 'dbt_expectations') (model, column_list, quote_columns, ignore_row_if, row_condition) }}\n{%- endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5373547, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record": {"name": "default__test_expect_select_column_values_to_be_unique_within_record", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "original_file_path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "unique_id": "macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record", "macro_sql": "{% macro default__test_expect_select_column_values_to_be_unique_within_record(model,\n column_list,\n quote_columns,\n ignore_row_if,\n row_condition\n ) %}\n\n{% if not quote_columns %}\n {%- set columns=column_list %}\n{% elif quote_columns %}\n {%- set columns=[] %}\n {% for column in column_list -%}\n {% set columns = columns.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote_columns ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set row_condition_ext -%}\n\n {%- if row_condition %}\n {{ row_condition }} and\n {% endif -%}\n\n {{ dbt_expectations.ignore_row_if_expression(ignore_row_if, columns) }}\n\n{%- endset -%}\n\nwith column_values as (\n\n select\n row_number() over(order by 1) as row_index,\n {% for column in columns -%}\n {{ column }}{% if not loop.last %},{% endif %}\n {%- endfor %}\n from {{ model }}\n where\n 1=1\n {%- if row_condition_ext %}\n and {{ row_condition_ext }}\n {% endif %}\n\n),\nunpivot_columns as (\n\n {% for column in columns %}\n select row_index, '{{ column }}' as column_name, {{ column }} as column_value from column_values\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n),\nvalidation_errors as (\n\n select\n row_index,\n count(distinct column_value) as column_values\n from unpivot_columns\n group by 1\n having count(distinct column_value) < {{ columns | length }}\n\n)\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.539646, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_pair_values_to_be_equal": {"name": "test_expect_column_pair_values_to_be_equal", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_equal.sql", "original_file_path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_equal.sql", "unique_id": "macro.dbt_expectations.test_expect_column_pair_values_to_be_equal", "macro_sql": "{% test expect_column_pair_values_to_be_equal(model,\n column_A,\n column_B,\n row_condition=None\n ) %}\n\n{% set operator = \"=\" %}\n{% set expression = column_A ~ \" \" ~ operator ~ \" \" ~ column_B %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5408318, "supported_languages": null}, "macro.dbt_expectations.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "unique_id": "macro.dbt_expectations.test_expression_is_true", "macro_sql": "{% test expression_is_true(model,\n expression,\n test_condition=\"= true\",\n group_by_columns=None,\n row_condition=None\n ) %}\n\n {{ dbt_expectations.expression_is_true(model, expression, test_condition, group_by_columns, row_condition) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5423698, "supported_languages": null}, "macro.dbt_expectations.expression_is_true": {"name": "expression_is_true", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "unique_id": "macro.dbt_expectations.expression_is_true", "macro_sql": "{% macro expression_is_true(model,\n expression,\n test_condition=\"= true\",\n group_by_columns=None,\n row_condition=None\n ) %}\n {{ adapter.dispatch('expression_is_true', 'dbt_expectations') (model, expression, test_condition, group_by_columns, row_condition) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.default__expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5429883, "supported_languages": null}, "macro.dbt_expectations.default__expression_is_true": {"name": "default__expression_is_true", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "unique_id": "macro.dbt_expectations.default__expression_is_true", "macro_sql": "{% macro default__expression_is_true(model, expression, test_condition, group_by_columns, row_condition) -%}\nwith grouped_expression as (\n select\n {% if group_by_columns %}\n {% for group_by_column in group_by_columns -%}\n {{ group_by_column }} as col_{{ loop.index }},\n {% endfor -%}\n {% endif %}\n {{ dbt_expectations.truth_expression(expression) }}\n from {{ model }}\n {%- if row_condition %}\n where\n {{ row_condition }}\n {% endif %}\n {% if group_by_columns %}\n group by\n {% for group_by_column in group_by_columns -%}\n {{ group_by_column }}{% if not loop.last %},{% endif %}\n {% endfor %}\n {% endif %}\n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression {{ test_condition }})\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro -%}", "depends_on": {"macros": ["macro.dbt_expectations.truth_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5442848, "supported_languages": null}, "macro.dbt_expectations.truth_expression": {"name": "truth_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/_truth_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_truth_expression.sql", "unique_id": "macro.dbt_expectations.truth_expression", "macro_sql": "{% macro truth_expression(expression) %}\n {{ adapter.dispatch('truth_expression', 'dbt_expectations') (expression) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.default__truth_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.54476, "supported_languages": null}, "macro.dbt_expectations.default__truth_expression": {"name": "default__truth_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/_truth_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_truth_expression.sql", "unique_id": "macro.dbt_expectations.default__truth_expression", "macro_sql": "{% macro default__truth_expression(expression) %}\n {{ expression }} as expression\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.544994, "supported_languages": null}, "macro.dbt_expectations.ignore_row_if_expression": {"name": "ignore_row_if_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "unique_id": "macro.dbt_expectations.ignore_row_if_expression", "macro_sql": "{% macro ignore_row_if_expression(ignore_row_if, columns) %}\n {{ adapter.dispatch('ignore_row_if_expression', 'dbt_expectations') (ignore_row_if, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.default__ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5457964, "supported_languages": null}, "macro.dbt_expectations.default__ignore_row_if_expression": {"name": "default__ignore_row_if_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "unique_id": "macro.dbt_expectations.default__ignore_row_if_expression", "macro_sql": "{% macro default__ignore_row_if_expression(ignore_row_if, columns) %}\n {%- set ignore_row_if_values = [\"all_values_are_missing\", \"any_value_is_missing\"] -%}\n {% if ignore_row_if not in ignore_row_if_values %}\n {{ exceptions.raise_compiler_error(\n \"`ignore_row_if` must be one of \" ~ (ignore_row_if_values | join(\", \")) ~ \". Got: '\" ~ ignore_row_if ~\"'.'\"\n ) }}\n {% endif %}\n\n {%- set op = \"and\" if ignore_row_if == \"all_values_are_missing\" else \"or\" -%}\n not (\n {% for column in columns -%}\n {{ column }} is null{% if not loop.last %} {{ op }} {% endif %}\n {% endfor %}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5470538, "supported_languages": null}, "macro.dbt_expectations.test_expression_between": {"name": "test_expression_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/expression_between.sql", "original_file_path": "macros/schema_tests/_generalized/expression_between.sql", "unique_id": "macro.dbt_expectations.test_expression_between", "macro_sql": "{% test expression_between(model,\n expression,\n min_value=None,\n max_value=None,\n group_by_columns=None,\n row_condition=None,\n strictly=False\n ) %}\n\n {{ dbt_expectations.expression_between(model, expression, min_value, max_value, group_by_columns, row_condition, strictly) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.548946, "supported_languages": null}, "macro.dbt_expectations.expression_between": {"name": "expression_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/expression_between.sql", "original_file_path": "macros/schema_tests/_generalized/expression_between.sql", "unique_id": "macro.dbt_expectations.expression_between", "macro_sql": "{% macro expression_between(model,\n expression,\n min_value,\n max_value,\n group_by_columns,\n row_condition,\n strictly\n ) %}\n\n{%- if min_value is none and max_value is none -%}\n{{ exceptions.raise_compiler_error(\n \"You have to provide either a min_value, max_value or both.\"\n) }}\n{%- endif -%}\n\n{%- set strict_operator = \"\" if strictly else \"=\" -%}\n\n{% set expression_min_max %}\n( 1=1\n{%- if min_value is not none %} and {{ expression | trim }} >{{ strict_operator }} {{ min_value }}{% endif %}\n{%- if max_value is not none %} and {{ expression | trim }} <{{ strict_operator }} {{ max_value }}{% endif %}\n)\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression_min_max,\n group_by_columns=group_by_columns,\n row_condition=row_condition)\n }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5505893, "supported_languages": null}, "macro.dbt_expectations.get_select": {"name": "get_select", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "unique_id": "macro.dbt_expectations.get_select", "macro_sql": "{% macro get_select(model, expression, row_condition, group_by) -%}\n {{ adapter.dispatch('get_select', 'dbt_expectations') (model, expression, row_condition, group_by) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.default__get_select"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5578132, "supported_languages": null}, "macro.dbt_expectations.default__get_select": {"name": "default__get_select", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "unique_id": "macro.dbt_expectations.default__get_select", "macro_sql": "\n\n{%- macro default__get_select(model, expression, row_condition, group_by) %}\n select\n {% if group_by %}\n {% for g in group_by -%}\n {{ g }} as col_{{ loop.index }},\n {% endfor -%}\n {% endif %}\n {{ expression }} as expression\n from\n {{ model }}\n {%- if row_condition %}\n where\n {{ row_condition }}\n {% endif %}\n {% if group_by %}\n group by\n {% for g in group_by -%}\n {{ loop.index }}{% if not loop.last %},{% endif %}\n {% endfor %}\n {% endif %}\n{% endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5590198, "supported_languages": null}, "macro.dbt_expectations.test_equal_expression": {"name": "test_equal_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "unique_id": "macro.dbt_expectations.test_equal_expression", "macro_sql": "{% test equal_expression(model, expression,\n compare_model=None,\n compare_expression=None,\n group_by=None,\n compare_group_by=None,\n row_condition=None,\n compare_row_condition=None,\n tolerance=0.0,\n tolerance_percent=None\n ) -%}\n\n {{ adapter.dispatch('test_equal_expression', 'dbt_expectations') (\n model,\n expression,\n compare_model,\n compare_expression,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition,\n tolerance,\n tolerance_percent) }}\n{%- endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5600023, "supported_languages": null}, "macro.dbt_expectations.default__test_equal_expression": {"name": "default__test_equal_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "unique_id": "macro.dbt_expectations.default__test_equal_expression", "macro_sql": "\n\n{%- macro default__test_equal_expression(\n model,\n expression,\n compare_model,\n compare_expression,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition,\n tolerance,\n tolerance_percent) -%}\n\n {%- set compare_model = model if not compare_model else compare_model -%}\n {%- set compare_expression = expression if not compare_expression else compare_expression -%}\n {%- set compare_row_condition = row_condition if not compare_row_condition else compare_row_condition -%}\n {%- set compare_group_by = group_by if not compare_group_by else compare_group_by -%}\n\n {%- set n_cols = (group_by|length) if group_by else 0 %}\n with a as (\n {{ dbt_expectations.get_select(model, expression, row_condition, group_by) }}\n ),\n b as (\n {{ dbt_expectations.get_select(compare_model, compare_expression, compare_row_condition, compare_group_by) }}\n ),\n final as (\n\n select\n {% for i in range(1, n_cols + 1) -%}\n coalesce(a.col_{{ i }}, b.col_{{ i }}) as col_{{ i }},\n {% endfor %}\n a.expression,\n b.expression as compare_expression,\n abs(coalesce(a.expression, 0) - coalesce(b.expression, 0)) as expression_difference,\n abs(coalesce(a.expression, 0) - coalesce(b.expression, 0))/\n nullif(a.expression * 1.0, 0) as expression_difference_percent\n from\n {% if n_cols > 0 %}\n a\n full outer join\n b on\n {% for i in range(1, n_cols + 1) -%}\n a.col_{{ i }} = b.col_{{ i }} {% if not loop.last %}and{% endif %}\n {% endfor -%}\n {% else %}\n a cross join b\n {% endif %}\n )\n -- DEBUG:\n -- select * from final\n select\n *\n from final\n where\n {% if tolerance_percent %}\n expression_difference_percent > {{ tolerance_percent }}\n {% else %}\n expression_difference > {{ tolerance }}\n {% endif %}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_expectations.get_select"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5626187, "supported_languages": null}, "macro.dbt_expectations._get_metric_expression": {"name": "_get_metric_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "unique_id": "macro.dbt_expectations._get_metric_expression", "macro_sql": "{%- macro _get_metric_expression(metric_column, take_logs) -%}\n\n{%- if take_logs %}\n{%- set expr = \"nullif(\" ~ metric_column ~ \", 0)\" -%}\ncoalesce({{ dbt_expectations.log_natural(expr) }}, 0)\n{%- else -%}\ncoalesce({{ metric_column }}, 0)\n{%- endif %}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_expectations.log_natural"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5687053, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_within_n_moving_stdevs": {"name": "test_expect_column_values_to_be_within_n_moving_stdevs", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_within_n_moving_stdevs", "macro_sql": "{% test expect_column_values_to_be_within_n_moving_stdevs(model,\n column_name,\n date_column_name,\n group_by=None,\n period='day',\n lookback_periods=1,\n trend_periods=7,\n test_periods=14,\n sigma_threshold=3,\n sigma_threshold_upper=None,\n sigma_threshold_lower=None,\n take_diffs=true,\n take_logs=true\n ) -%}\n {{ adapter.dispatch('test_expect_column_values_to_be_within_n_moving_stdevs', 'dbt_expectations') (model,\n column_name,\n date_column_name,\n group_by,\n period,\n lookback_periods,\n trend_periods,\n test_periods,\n sigma_threshold,\n sigma_threshold_upper,\n sigma_threshold_lower,\n take_diffs,\n take_logs\n ) }}\n{%- endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.56982, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs": {"name": "default__test_expect_column_values_to_be_within_n_moving_stdevs", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "unique_id": "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs", "macro_sql": "{% macro default__test_expect_column_values_to_be_within_n_moving_stdevs(model,\n column_name,\n date_column_name,\n group_by,\n period,\n lookback_periods,\n trend_periods,\n test_periods,\n sigma_threshold,\n sigma_threshold_upper,\n sigma_threshold_lower,\n take_diffs,\n take_logs\n ) %}\n\n{%- set sigma_threshold_upper = sigma_threshold_upper if sigma_threshold_upper else sigma_threshold -%}\n{%- set sigma_threshold_lower = sigma_threshold_lower if sigma_threshold_lower else -1 * sigma_threshold -%}\n{%- set partition_by = \"partition by \" ~ (group_by | join(\",\")) if group_by -%}\n{%- set group_by_length = (group_by | length ) if group_by else 0 -%}\n\nwith metric_values as (\n\n with grouped_metric_values as (\n\n select\n {{ dbt.date_trunc(period, date_column_name) }} as metric_period,\n {{ group_by | join(\",\") ~ \",\" if group_by }}\n sum({{ column_name }}) as agg_metric_value\n from\n {{ model }}\n {{ dbt_expectations.group_by(1 + group_by_length) }}\n\n )\n {%- if take_diffs %}\n , grouped_metric_values_with_priors as (\n\n select\n *,\n lag(agg_metric_value, {{ lookback_periods }}) over(\n {{ partition_by }}\n order by metric_period) as prior_agg_metric_value\n from\n grouped_metric_values d\n\n )\n select\n *,\n {{ dbt_expectations._get_metric_expression(\"agg_metric_value\", take_logs) }}\n -\n {{ dbt_expectations._get_metric_expression(\"prior_agg_metric_value\", take_logs) }}\n as metric_test_value\n from\n grouped_metric_values_with_priors d\n\n {%- else %}\n\n select\n *,\n {{ dbt_expectations._get_metric_expression(\"agg_metric_value\", take_logs) }}\n as metric_test_value\n from\n grouped_metric_values\n\n {%- endif %}\n\n),\nmetric_moving_calcs as (\n\n select\n *,\n avg(metric_test_value)\n over({{ partition_by }}\n order by metric_period rows\n between {{ trend_periods }} preceding and 1 preceding) as metric_test_rolling_average,\n stddev(metric_test_value)\n over({{ partition_by }}\n order by metric_period rows\n between {{ trend_periods }} preceding and 1 preceding) as metric_test_rolling_stddev\n from\n metric_values\n\n),\nmetric_sigma as (\n\n select\n *,\n (metric_test_value - metric_test_rolling_average) as metric_test_delta,\n (metric_test_value - metric_test_rolling_average)/\n nullif(metric_test_rolling_stddev, 0) as metric_test_sigma\n from\n metric_moving_calcs\n\n)\nselect\n *\nfrom\n metric_sigma\nwhere\n\n metric_period >= cast(\n {{ dbt.dateadd(period, -test_periods, dbt.date_trunc(period, dbt_date.now())) }}\n as {{ dbt_expectations.type_timestamp() }})\n and\n metric_period < {{ dbt.date_trunc(period, dbt_date.now()) }}\n and\n\n not (\n metric_test_sigma >= {{ sigma_threshold_lower }} and\n metric_test_sigma <= {{ sigma_threshold_upper }}\n )\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt_expectations.group_by", "macro.dbt_expectations._get_metric_expression", "macro.dbt.dateadd", "macro.dbt_date.now", "macro.dbt_expectations.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5729127, "supported_languages": null}, "macro.dbt_expectations.test_expect_row_values_to_have_data_for_every_n_datepart": {"name": "test_expect_row_values_to_have_data_for_every_n_datepart", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/distributional/expect_row_values_to_have_data_for_every_n_datepart.sql", "original_file_path": "macros/schema_tests/distributional/expect_row_values_to_have_data_for_every_n_datepart.sql", "unique_id": "macro.dbt_expectations.test_expect_row_values_to_have_data_for_every_n_datepart", "macro_sql": "{%- test expect_row_values_to_have_data_for_every_n_datepart(model,\n date_col,\n date_part=\"day\",\n interval=None,\n row_condition=None,\n exclusion_condition=None,\n test_start_date=None,\n test_end_date=None) -%}\n{% if not execute %}\n {{ return('') }}\n{% endif %}\n\n{% if not test_start_date or not test_end_date %}\n {% set sql %}\n\n select\n min({{ date_col }}) as start_{{ date_part }},\n max({{ date_col }}) as end_{{ date_part }}\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n {% endset %}\n\n {%- set dr = run_query(sql) -%}\n {%- set db_start_date = dr.columns[0].values()[0].strftime('%Y-%m-%d') -%}\n {%- set db_end_date = dr.columns[1].values()[0].strftime('%Y-%m-%d') -%}\n\n{% endif %}\n\n{% if not test_start_date %}\n{% set start_date = db_start_date %}\n{% else %}\n{% set start_date = test_start_date %}\n{% endif %}\n\n\n{% if not test_end_date %}\n{% set end_date = db_end_date %}\n{% else %}\n{% set end_date = test_end_date %}\n{% endif %}\nwith base_dates as (\n\n {{ dbt_date.get_base_dates(start_date=start_date, end_date=end_date, datepart=date_part) }}\n {% if interval %}\n {#\n Filter the date spine created above down to the interval granularity using a modulo operation.\n The number of date_parts after the start_date divided by the integer interval will produce no remainder for the desired intervals,\n e.g. for 2-day interval from a starting Jan 1, 2020:\n params: start_date = '2020-01-01', date_part = 'day', interval = 2\n date spine created above: [2020-01-01, 2020-01-02, 2020-01-03, 2020-01-04, 2020-01-05, ...]\n The first parameter to the `mod` function would be the number of days between the start_date and the spine date, i.e. [0, 1, 2, 3, 4 ...]\n The second parameter to the `mod` function would be the integer interval, i.e. 2\n This modulo operation produces the following remainders: [0, 1, 0, 1, 0, ...]\n Filtering the spine only where this remainder == 0 will return a spine with every other day as desired, i.e. [2020-01-01, 2020-01-03, 2020-01-05, ...]\n #}\n where mod(\n cast({{ dbt.datediff(\"'\" ~ start_date ~ \"'\", 'date_' ~ date_part, date_part) }} as {{ dbt.type_int() }}),\n cast({{interval}} as {{ dbt.type_int() }})\n ) = 0\n {% endif %}\n\n),\nmodel_data as (\n\n select\n {% if not interval %}\n\n cast({{ dbt.date_trunc(date_part, date_col) }} as {{ dbt_expectations.type_datetime() }}) as date_{{ date_part }},\n\n {% else %}\n {#\n Use a modulo operator to determine the number of intervals that a date_col is away from the interval-date spine\n and subtracts that amount to effectively slice each date_col record into its corresponding spine bucket,\n e.g. given a date_col of with records [2020-01-01, 2020-01-02, 2020-01-03, 2020-01-11, 2020-01-12]\n if we want to slice these dates into their 2-day buckets starting Jan 1, 2020 (start_date = '2020-01-01', date_part='day', interval=2),\n the modulo operation described above will produce these remainders: [0, 1, 0, 0, 1]\n subtracting that number of days from the observations will produce records [2020-01-01, 2020-01-01, 2020-01-03, 2020-01-11, 2020-01-11],\n all of which align with records from the interval-date spine\n #}\n {{ dbt.dateadd(\n date_part,\n \"mod(\n cast(\" ~ dbt.datediff(\"'\" ~ start_date ~ \"'\", date_col, date_part) ~ \" as \" ~ dbt.type_int() ~ \" ),\n cast(\" ~ interval ~ \" as \" ~ dbt.type_int() ~ \" )\n ) * (-1)\",\n \"cast( \" ~ dbt.date_trunc(date_part, date_col) ~ \" as \" ~ dbt_expectations.type_datetime() ~ \")\"\n )}} as date_{{ date_part }},\n\n {% endif %}\n\n count(*) as row_cnt\n from\n {{ model }} f\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n group by\n date_{{date_part}}\n\n),\n\nfinal as (\n\n select\n cast(d.date_{{ date_part }} as {{ dbt_expectations.type_datetime() }}) as date_{{ date_part }},\n case when f.date_{{ date_part }} is null then true else false end as is_missing,\n coalesce(f.row_cnt, 0) as row_cnt\n from\n base_dates d\n left join\n model_data f on cast(d.date_{{ date_part }} as {{ dbt_expectations.type_datetime() }}) = f.date_{{ date_part }}\n)\nselect\n *\nfrom final\nwhere row_cnt = 0\n{% if exclusion_condition %}\n and {{ exclusion_condition }}\n{% endif %}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt_date.get_base_dates", "macro.dbt.datediff", "macro.dbt.type_int", "macro.dbt.date_trunc", "macro.dbt_expectations.type_datetime", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.580333, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_within_n_stdevs": {"name": "test_expect_column_values_to_be_within_n_stdevs", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_within_n_stdevs", "macro_sql": "{% test expect_column_values_to_be_within_n_stdevs(model,\n column_name,\n group_by=None,\n sigma_threshold=3\n ) -%}\n {{\n adapter.dispatch('test_expect_column_values_to_be_within_n_stdevs', 'dbt_expectations') (\n model, column_name, group_by, sigma_threshold\n )\n }}\n{%- endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5818298, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs": {"name": "default__test_expect_column_values_to_be_within_n_stdevs", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "unique_id": "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs", "macro_sql": "{% macro default__test_expect_column_values_to_be_within_n_stdevs(model,\n column_name,\n group_by,\n sigma_threshold\n ) %}\n\nwith metric_values as (\n\n select\n {{ group_by | join(\",\") ~ \",\" if group_by }}\n sum({{ column_name }}) as {{ column_name }}\n from\n {{ model }}\n {% if group_by -%}\n {{ dbt_expectations.group_by(group_by | length) }}\n {%- endif %}\n\n),\nmetric_values_with_statistics as (\n\n select\n *,\n avg({{ column_name }}) over() as {{ column_name }}_average,\n stddev({{ column_name }}) over() as {{ column_name }}_stddev\n from\n metric_values\n\n),\nmetric_values_z_scores as (\n\n select\n *,\n ({{ column_name }} - {{ column_name }}_average)/\n nullif({{ column_name }}_stddev, 0) as {{ column_name }}_sigma\n from\n metric_values_with_statistics\n\n)\nselect\n *\nfrom\n metric_values_z_scores\nwhere\n abs({{ column_name }}_sigma) > {{ sigma_threshold }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.583053, "supported_languages": null}, "macro.dbt_expectations.regexp_instr": {"name": "regexp_instr", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations.regexp_instr", "macro_sql": "{% macro regexp_instr(source_value, regexp, position=1, occurrence=1, is_raw=False) %}\n\n {{ adapter.dispatch('regexp_instr', 'dbt_expectations')(\n source_value, regexp, position, occurrence, is_raw\n ) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.snowflake__regexp_instr"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5842242, "supported_languages": null}, "macro.dbt_expectations.default__regexp_instr": {"name": "default__regexp_instr", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations.default__regexp_instr", "macro_sql": "{% macro default__regexp_instr(source_value, regexp, position, occurrence, is_raw) %}\nregexp_instr({{ source_value }}, '{{ regexp }}', {{ position }}, {{ occurrence }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5846374, "supported_languages": null}, "macro.dbt_expectations.snowflake__regexp_instr": {"name": "snowflake__regexp_instr", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations.snowflake__regexp_instr", "macro_sql": "{% macro snowflake__regexp_instr(source_value, regexp, position, occurrence, is_raw) %}\n{%- set regexp = \"$$\" ~ regexp ~ \"$$\" if is_raw else \"'\" ~ regexp ~ \"'\" -%}\nregexp_instr({{ source_value }}, {{ regexp }}, {{ position }}, {{ occurrence }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5852795, "supported_languages": null}, "macro.dbt_expectations.bigquery__regexp_instr": {"name": "bigquery__regexp_instr", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations.bigquery__regexp_instr", "macro_sql": "{% macro bigquery__regexp_instr(source_value, regexp, position, occurrence, is_raw) %}\n{%- set regexp = \"r'\" ~ regexp ~ \"'\" if is_raw else \"'\" ~ regexp ~ \"'\" -%}\nregexp_instr({{ source_value }}, {{ regexp }}, {{ position }}, {{ occurrence }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5859172, "supported_languages": null}, "macro.dbt_expectations.postgres__regexp_instr": {"name": "postgres__regexp_instr", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations.postgres__regexp_instr", "macro_sql": "{% macro postgres__regexp_instr(source_value, regexp, position, occurrence, is_raw) %}\narray_length((select regexp_matches({{ source_value }}, '{{ regexp }}')), 1)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5862532, "supported_languages": null}, "macro.dbt_expectations.redshift__regexp_instr": {"name": "redshift__regexp_instr", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations.redshift__regexp_instr", "macro_sql": "{% macro redshift__regexp_instr(source_value, regexp, position, occurrence, is_raw) %}\nregexp_instr({{ source_value }}, '{{ regexp }}', {{ position }}, {{ occurrence }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5866737, "supported_languages": null}, "macro.dbt_external_tables.spark__get_external_build_plan": {"name": "spark__get_external_build_plan", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/spark/get_external_build_plan.sql", "original_file_path": "macros/plugins/spark/get_external_build_plan.sql", "unique_id": "macro.dbt_external_tables.spark__get_external_build_plan", "macro_sql": "{% macro spark__get_external_build_plan(source_node) %}\n\n {% set build_plan = [] %}\n\n {% set old_relation = adapter.get_relation(\n database = none,\n schema = source_node.schema,\n identifier = source_node.identifier\n ) %}\n\n {% set create_or_replace = (old_relation is none or var('ext_full_refresh', false)) %}\n\n {% if create_or_replace %}\n {% set build_plan = build_plan + [\n dbt_external_tables.dropif(source_node), \n dbt_external_tables.create_external_table(source_node)\n ] %}\n {% else %}\n {% set build_plan = build_plan + dbt_external_tables.refresh_external_table(source_node) %}\n {% endif %}\n\n {% set recover_partitions = dbt_external_tables.recover_partitions(source_node) %}\n {% if recover_partitions %}\n {% set build_plan = build_plan + [\n recover_partitions\n ] %}\n {% endif %}\n\n {% do return(build_plan) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.dropif", "macro.dbt_external_tables.create_external_table", "macro.dbt_external_tables.refresh_external_table", "macro.dbt_external_tables.recover_partitions"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.588958, "supported_languages": null}, "macro.dbt_external_tables.spark__refresh_external_table": {"name": "spark__refresh_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/spark/refresh_external_table.sql", "original_file_path": "macros/plugins/spark/refresh_external_table.sql", "unique_id": "macro.dbt_external_tables.spark__refresh_external_table", "macro_sql": "{% macro spark__refresh_external_table(source_node) %}\n \n {% set refresh %}\n refresh table {{source(source_node.source_name, source_node.name)}}\n {% endset %}\n \n {% do return([refresh]) %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5896173, "supported_languages": null}, "macro.dbt_external_tables.spark__create_external_table": {"name": "spark__create_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/spark/create_external_table.sql", "original_file_path": "macros/plugins/spark/create_external_table.sql", "unique_id": "macro.dbt_external_tables.spark__create_external_table", "macro_sql": "{% macro spark__create_external_table(source_node) %}\n\n {%- set columns = source_node.columns.values() -%}\n {%- set external = source_node.external -%}\n {%- set partitions = external.partitions -%}\n {%- set options = external.options -%}\n\n{# https://spark.apache.org/docs/latest/sql-data-sources-hive-tables.html #}\n create table {{source(source_node.source_name, source_node.name)}} \n {%- if columns|length > 0 %} (\n {% for column in columns %}\n {{column.name}} {{column.data_type}}\n {{- ',' if not loop.last -}}\n {% endfor %}\n ) {% endif -%}\n {% if external.using %} using {{external.using}} {%- endif %}\n {% if options -%} options (\n {%- for key, value in options.items() -%}\n '{{ key }}' = '{{value}}' {{- ', \\n' if not loop.last -}}\n {%- endfor -%}\n ) {%- endif %}\n {% if partitions -%} partitioned by (\n {%- for partition in partitions -%}\n {{partition.name}} {{partition.data_type}}{{', ' if not loop.last}}\n {%- endfor -%}\n ) {%- endif %}\n {% if external.row_format -%} row format {{external.row_format}} {%- endif %}\n {% if external.file_format -%} stored as {{external.file_format}} {%- endif %}\n {% if external.location -%} location '{{external.location}}' {%- endif %}\n {% if external.table_properties -%} tblproperties {{ external.table_properties }} {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.593677, "supported_languages": null}, "macro.dbt_external_tables.spark__dropif": {"name": "spark__dropif", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/spark/helpers/dropif.sql", "original_file_path": "macros/plugins/spark/helpers/dropif.sql", "unique_id": "macro.dbt_external_tables.spark__dropif", "macro_sql": "{% macro spark__dropif(node) %}\n \n {% set ddl %}\n drop table if exists {{source(node.source_name, node.name)}}\n {% endset %}\n \n {{return(ddl)}}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.594312, "supported_languages": null}, "macro.dbt_external_tables.spark__recover_partitions": {"name": "spark__recover_partitions", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/spark/helpers/recover_partitions.sql", "original_file_path": "macros/plugins/spark/helpers/recover_partitions.sql", "unique_id": "macro.dbt_external_tables.spark__recover_partitions", "macro_sql": "{% macro spark__recover_partitions(source_node) %}\n {# https://docs.databricks.com/sql/language-manual/sql-ref-syntax-ddl-alter-table.html #}\n\n {%- if source_node.external.partitions and source_node.external.using and source_node.external.using|lower != 'delta' -%}\n {% set ddl %}\n ALTER TABLE {{ source(source_node.source_name, source_node.name) }} RECOVER PARTITIONS\n {% endset %}\n {%- else -%}\n {% set ddl = none %}\n {%- endif -%}\n\n {{return(ddl)}}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5955894, "supported_languages": null}, "macro.dbt_external_tables.recover_partitions": {"name": "recover_partitions", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/spark/helpers/recover_partitions.sql", "original_file_path": "macros/plugins/spark/helpers/recover_partitions.sql", "unique_id": "macro.dbt_external_tables.recover_partitions", "macro_sql": "{% macro recover_partitions(source_node) %}\n {{ return(adapter.dispatch('recover_partitions', 'dbt_external_tables')(source_node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.default__recover_partitions"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5959954, "supported_languages": null}, "macro.dbt_external_tables.default__recover_partitions": {"name": "default__recover_partitions", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/spark/helpers/recover_partitions.sql", "original_file_path": "macros/plugins/spark/helpers/recover_partitions.sql", "unique_id": "macro.dbt_external_tables.default__recover_partitions", "macro_sql": "{% macro default__recover_partitions(source_node) %}\n /*{# \n We're dispatching this macro so that users can override it if required on other adapters\n but this will work for spark/databricks. \n #}*/\n\n {{ exceptions.raise_not_implemented('recover_partitions macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5963647, "supported_languages": null}, "macro.dbt_external_tables.redshift__get_external_build_plan": {"name": "redshift__get_external_build_plan", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/get_external_build_plan.sql", "original_file_path": "macros/plugins/redshift/get_external_build_plan.sql", "unique_id": "macro.dbt_external_tables.redshift__get_external_build_plan", "macro_sql": "{% macro redshift__get_external_build_plan(source_node) %}\n\n {% set build_plan = [] %}\n \n {% set create_or_replace = (var('ext_full_refresh', false) or not redshift_is_ext_tbl(source_node)) %}\n \n {% if create_or_replace %}\n\n {% set build_plan = [\n dbt_external_tables.dropif(source_node),\n dbt_external_tables.create_external_table(source_node)\n ] + dbt_external_tables.refresh_external_table(source_node) \n %}\n \n {% else %}\n \n {% set build_plan = dbt_external_tables.refresh_external_table(source_node) %}\n \n {% endif %}\n \n {% do return(build_plan) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.redshift_is_ext_tbl", "macro.dbt_external_tables.dropif", "macro.dbt_external_tables.create_external_table", "macro.dbt_external_tables.refresh_external_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.5978675, "supported_languages": null}, "macro.dbt_external_tables.redshift__refresh_external_table": {"name": "redshift__refresh_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/refresh_external_table.sql", "original_file_path": "macros/plugins/redshift/refresh_external_table.sql", "unique_id": "macro.dbt_external_tables.redshift__refresh_external_table", "macro_sql": "{% macro redshift__refresh_external_table(source_node) %}\n\n {%- set partitions = source_node.external.get('partitions',[]) -%}\n\n {%- if partitions -%}\n \n {%- set part_len = partitions|length -%}\n \n {%- set get_partitions_sql -%}\n \n select * from\n \n {%- for partition in partitions %} (\n \n {%- set part_num = loop.index -%}\n \n {%- if partition.vals.macro -%}\n {%- set vals = dbt_external_tables.render_from_context(partition.vals.macro, **partition.vals.args) -%}\n {%- elif partition.vals is string -%}\n {%- set vals = [partition.vals] -%}\n {%- else -%}\n {%- set vals = partition.vals -%}\n {%- endif -%}\n \n {%- for val in vals %}\n \n select\n '\"{{ partition.name }}\"' as name_{{ part_num }},\n '\"{{ val }}\"' as val_{{ part_num }},\n '\"{{ dbt_external_tables.render_from_context(partition.path_macro, partition.name, val) }}\"' as path_{{ part_num }}\n \n {{ 'union all' if not loop.last else ') ' }}\n \n {%- endfor -%}\n \n {{ 'cross join' if not loop.last }}\n \n {%- endfor -%}\n \n {%- endset -%}\n \n {%- set finals = [] -%}\n \n {%- if execute -%}\n {%- set results = run_query(get_partitions_sql) -%}\n {%- for row in results -%}\n \n {%- set partition_parts = [] -%}\n {%- set path_parts = [] -%}\n \n {%- for i in range(0, part_len) -%}\n {%- do partition_parts.append({\n 'name': row[i * 3][1:-1],\n 'value': row[i * 3 + 1][1:-1]\n }) -%}\n {%- do path_parts.append(row[i * 3 + 2][1:-1]) -%}\n {%- endfor -%}\n \n {%- set construct = {\n 'partition_by': partition_parts,\n 'path': path_parts | join('/')\n } -%}\n \n {% do finals.append(construct) %}\n {%- endfor -%}\n {%- endif -%}\n \n {%- set ddl = dbt_external_tables.redshift_alter_table_add_partitions(source_node, finals) -%}\n {{ return(ddl) }}\n \n {% else %}\n \n {% do return([]) %}\n \n {% endif %}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.render_from_context", "macro.dbt.run_query", "macro.dbt_external_tables.redshift_alter_table_add_partitions"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.60558, "supported_languages": null}, "macro.dbt_external_tables.redshift__create_external_table": {"name": "redshift__create_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/create_external_table.sql", "original_file_path": "macros/plugins/redshift/create_external_table.sql", "unique_id": "macro.dbt_external_tables.redshift__create_external_table", "macro_sql": "{% macro redshift__create_external_table(source_node) %}\n\n {%- set columns = source_node.columns.values() -%}\n {%- set external = source_node.external -%}\n {%- set partitions = external.partitions -%}\n\n{# https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_TABLE.html #}\n{# This assumes you have already created an external schema #}\n\n create external table {{source(source_node.source_name, source_node.name)}} (\n {% for column in columns %}\n {{adapter.quote(column.name)}} {{column.data_type}}\n {{- ',' if not loop.last -}}\n {% endfor %}\n )\n {% if partitions -%} partitioned by (\n {%- for partition in partitions -%}\n {{adapter.quote(partition.name)}} {{partition.data_type}}{{', ' if not loop.last}}\n {%- endfor -%}\n ) {%- endif %}\n {% if external.row_format -%} row format {{external.row_format}} {%- endif %}\n {% if external.file_format -%} stored as {{external.file_format}} {%- endif %}\n {% if external.location -%} location '{{external.location}}' {%- endif %}\n {% if external.table_properties -%} table properties {{external.table_properties}} {%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6084626, "supported_languages": null}, "macro.dbt_external_tables.render_from_context": {"name": "render_from_context", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/helpers/render_macro.sql", "original_file_path": "macros/plugins/redshift/helpers/render_macro.sql", "unique_id": "macro.dbt_external_tables.render_from_context", "macro_sql": "{% macro render_from_context(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called by macro '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n \n {{ return(package_context[name](*varargs, **kwargs)) }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6105514, "supported_languages": null}, "macro.dbt_external_tables.redshift__dropif": {"name": "redshift__dropif", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/helpers/dropif.sql", "original_file_path": "macros/plugins/redshift/helpers/dropif.sql", "unique_id": "macro.dbt_external_tables.redshift__dropif", "macro_sql": "{% macro redshift__dropif(node) %}\n \n {% set ddl %}\n drop table if exists {{source(node.source_name, node.name)}} cascade\n {% endset %}\n \n {{return(ddl)}}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6111703, "supported_languages": null}, "macro.dbt_external_tables.redshift__exit_transaction": {"name": "redshift__exit_transaction", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/helpers/transaction.sql", "original_file_path": "macros/plugins/redshift/helpers/transaction.sql", "unique_id": "macro.dbt_external_tables.redshift__exit_transaction", "macro_sql": "{% macro redshift__exit_transaction() %}\n {{ return('begin; commit;') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.611487, "supported_languages": null}, "macro.dbt_external_tables.year_month_day": {"name": "year_month_day", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/helpers/paths.sql", "original_file_path": "macros/plugins/redshift/helpers/paths.sql", "unique_id": "macro.dbt_external_tables.year_month_day", "macro_sql": "{% macro year_month_day(name, value) %}\n {% set path = value.replace('-','/') %}\n {{return(path)}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6121445, "supported_languages": null}, "macro.dbt_external_tables.key_value": {"name": "key_value", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/helpers/paths.sql", "original_file_path": "macros/plugins/redshift/helpers/paths.sql", "unique_id": "macro.dbt_external_tables.key_value", "macro_sql": "{% macro key_value(name, value) %}\n {% set path = name ~ '=' ~ value %}\n {{return(path)}}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6125512, "supported_languages": null}, "macro.dbt_external_tables.value_only": {"name": "value_only", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/helpers/paths.sql", "original_file_path": "macros/plugins/redshift/helpers/paths.sql", "unique_id": "macro.dbt_external_tables.value_only", "macro_sql": "{% macro value_only(name, value) %}\n {% set path = value %}\n {{return(path)}}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6129308, "supported_languages": null}, "macro.dbt_external_tables.redshift_alter_table_add_partitions": {"name": "redshift_alter_table_add_partitions", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/helpers/add_partitions.sql", "original_file_path": "macros/plugins/redshift/helpers/add_partitions.sql", "unique_id": "macro.dbt_external_tables.redshift_alter_table_add_partitions", "macro_sql": "{% macro redshift_alter_table_add_partitions(source_node, partitions) %}\n\n {{ log(\"Generating ADD PARTITION statement for partition set between \" \n ~ partitions[0]['path'] ~ \" and \" ~ (partitions|last)['path']) }}\n\n {% set ddl = [] %}\n \n {% if partitions|length > 0 %}\n \n {% set alter_table_add %}\n alter table {{source(source_node.source_name, source_node.name)}} add if not exists \n {% endset %}\n \n {%- set alters -%}\n\n {{ alter_table_add }}\n\n {%- for partition in partitions -%}\n\n {%- if loop.index0 != 0 and loop.index0 % 100 == 0 -%}\n\n ; {{ alter_table_add }}\n\n {%- endif -%}\n\n partition ({%- for part in partition.partition_by -%}{{ part.name }}='{{ part.value }}'{{', ' if not loop.last}}{%- endfor -%})\n location '{{ source_node.external.location }}/{{ partition.path }}/'\n\n {% endfor -%}\n \n {%- endset -%}\n \n {% set ddl = ddl + alters.split(';') %}\n\n {% else %}\n\n {{ log(\"No partitions to be added\") }}\n\n {% endif %}\n \n {% do return(ddl) %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6161058, "supported_languages": null}, "macro.dbt_external_tables.redshift_is_ext_tbl": {"name": "redshift_is_ext_tbl", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/helpers/is_ext_tbl.sql", "original_file_path": "macros/plugins/redshift/helpers/is_ext_tbl.sql", "unique_id": "macro.dbt_external_tables.redshift_is_ext_tbl", "macro_sql": "{% macro redshift_is_ext_tbl(node) %}\n\n {% set existing_relation = load_relation(node) %}\n \n {# external tables don't appear in information_schema.tables,\n so dbt doesn't cache them #}\n {% if existing_relation is none %}\n\n {% set find_ext_tbl %}\n \n select count(*) from svv_external_tables\n where schemaname = '{{node.schema}}'\n and tablename = '{{node.identifier}}'\n \n {% endset %}\n \n {% if execute %}\n {% set result = run_query(find_ext_tbl)[0][0] %}\n {% else %}\n {% set result = 0 %}\n {% endif %}\n\n {% set is_ext_tbl = (result > 0) %}\n {% do return(is_ext_tbl) %}\n \n {% else %}\n \n {% do return(false) %}\n \n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_relation", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6180234, "supported_languages": null}, "macro.dbt_external_tables.sqlserver__get_external_build_plan": {"name": "sqlserver__get_external_build_plan", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/sqlserver/get_external_build_plan.sql", "original_file_path": "macros/plugins/sqlserver/get_external_build_plan.sql", "unique_id": "macro.dbt_external_tables.sqlserver__get_external_build_plan", "macro_sql": "{% macro sqlserver__get_external_build_plan(source_node) %}\n\n {% set build_plan = [] %}\n\n {% set old_relation = adapter.get_relation(\n database = source_node.database,\n schema = source_node.schema,\n identifier = source_node.identifier\n ) %}\n\n {% set create_or_replace = (old_relation is none or var('ext_full_refresh', false)) %}\n\n {% if create_or_replace %}\n {% set build_plan = build_plan + [ \n dbt_external_tables.dropif(source_node), \n dbt_external_tables.create_external_table(source_node)\n ] %}\n {% else %}\n {% set build_plan = build_plan + dbt_external_tables.refresh_external_table(source_node) %}\n {% endif %}\n {% do return(build_plan) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.dropif", "macro.dbt_external_tables.create_external_table", "macro.dbt_external_tables.refresh_external_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6197565, "supported_languages": null}, "macro.dbt_external_tables.sqlserver__create_external_table": {"name": "sqlserver__create_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/sqlserver/create_external_table.sql", "original_file_path": "macros/plugins/sqlserver/create_external_table.sql", "unique_id": "macro.dbt_external_tables.sqlserver__create_external_table", "macro_sql": "{% macro sqlserver__create_external_table(source_node) %}\n\n {%- set columns = source_node.columns.values() -%}\n {%- set external = source_node.external -%}\n\n {% if external.ansi_nulls is true -%} SET ANSI_NULLS ON; {%- endif %}\n {% if external.quoted_identifier is true -%} SET QUOTED_IDENTIFIER ON; {%- endif %}\n\n create external table {{source(source_node.source_name, source_node.name)}} (\n {% for column in columns %}\n {# TODO set nullity based on schema tests?? #}\n {%- set nullity = 'NOT NULL' if 'not_null' in columns.tests else 'NULL'-%}\n {{adapter.quote(column.name)}} {{column.data_type}} {{nullity}}\n {{- ',' if not loop.last -}}\n {% endfor %}\n )\n WITH (\n {# remove keys that are None (i.e. not defined for a given source) #}\n {%- for key, value in external.items() if value is not none and key not in ['ansi_nulls', 'quoted_identifier'] -%}\n {{key}} = \n {%- if key in [\"location\", \"schema_name\", \"object_name\"] -%}\n '{{value}}'\n {% elif key in [\"data_source\",\"file_format\"] -%}\n [{{value}}]\n {% else -%}\n {{value}}\n {%- endif -%}\n {{- ',' if not loop.last -}}\n {%- endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6227741, "supported_languages": null}, "macro.dbt_external_tables.sqlserver__dropif": {"name": "sqlserver__dropif", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/sqlserver/helpers/dropif.sql", "original_file_path": "macros/plugins/sqlserver/helpers/dropif.sql", "unique_id": "macro.dbt_external_tables.sqlserver__dropif", "macro_sql": "{% macro sqlserver__dropif(node) %}\n \n {% set ddl %}\n if object_id ('{{source(node.source_name, node.name)}}') is not null\n begin\n drop external table {{source(node.source_name, node.name)}}\n end\n {% endset %}\n \n {{return(ddl)}}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6235547, "supported_languages": null}, "macro.dbt_external_tables.snowflake__get_external_build_plan": {"name": "snowflake__get_external_build_plan", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/snowflake/get_external_build_plan.sql", "original_file_path": "macros/plugins/snowflake/get_external_build_plan.sql", "unique_id": "macro.dbt_external_tables.snowflake__get_external_build_plan", "macro_sql": "{% macro snowflake__get_external_build_plan(source_node) %}\n\n {% set build_plan = [] %}\n \n {% set old_relation = adapter.get_relation(\n database = source_node.database,\n schema = source_node.schema,\n identifier = source_node.identifier\n ) %}\n \n {% set create_or_replace = (old_relation is none or var('ext_full_refresh', false)) %}\n\n {% if source_node.external.get('snowpipe', none) is not none %}\n \n {% if create_or_replace %}\n {% set build_plan = build_plan + [\n dbt_external_tables.snowflake_create_empty_table(source_node),\n dbt_external_tables.snowflake_get_copy_sql(source_node, explicit_transaction=true),\n dbt_external_tables.snowflake_create_snowpipe(source_node)\n ] %}\n {% else %}\n {% set build_plan = build_plan + dbt_external_tables.snowflake_refresh_snowpipe(source_node) %}\n {% endif %}\n \n {% else %}\n \n {% if create_or_replace %}\n {% set build_plan = build_plan + [dbt_external_tables.create_external_table(source_node)] %}\n {% else %}\n {% set build_plan = build_plan + dbt_external_tables.refresh_external_table(source_node) %}\n {% endif %}\n \n {% endif %}\n\n {% do return(build_plan) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.snowflake_create_empty_table", "macro.dbt_external_tables.snowflake_get_copy_sql", "macro.dbt_external_tables.snowflake_create_snowpipe", "macro.dbt_external_tables.snowflake_refresh_snowpipe", "macro.dbt_external_tables.create_external_table", "macro.dbt_external_tables.refresh_external_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6266718, "supported_languages": null}, "macro.dbt_external_tables.snowflake__refresh_external_table": {"name": "snowflake__refresh_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/snowflake/refresh_external_table.sql", "original_file_path": "macros/plugins/snowflake/refresh_external_table.sql", "unique_id": "macro.dbt_external_tables.snowflake__refresh_external_table", "macro_sql": "{% macro snowflake__refresh_external_table(source_node) %}\n\n {% set external = source_node.external %}\n {% set snowpipe = source_node.external.get('snowpipe', none) %}\n \n {% set auto_refresh = external.get('auto_refresh', false) %}\n {% set partitions = external.get('partitions', none) %}\n \n {% set manual_refresh = (partitions and not auto_refresh) %}\n \n {% if manual_refresh %}\n\n {% set ddl %}\n begin;\n alter external table {{source(source_node.source_name, source_node.name)}} refresh;\n commit;\n {% endset %}\n \n {% do return([ddl]) %}\n \n {% else %}\n \n {% do return([]) %}\n \n {% endif %}\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6286356, "supported_languages": null}, "macro.dbt_external_tables.snowflake__create_external_table": {"name": "snowflake__create_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/snowflake/create_external_table.sql", "original_file_path": "macros/plugins/snowflake/create_external_table.sql", "unique_id": "macro.dbt_external_tables.snowflake__create_external_table", "macro_sql": "{% macro snowflake__create_external_table(source_node) %}\n\n {%- set columns = source_node.columns.values() -%}\n {%- set external = source_node.external -%}\n {%- set partitions = external.partitions -%}\n\n {%- set is_csv = dbt_external_tables.is_csv(external.file_format) -%}\n\n{# https://docs.snowflake.net/manuals/sql-reference/sql/create-external-table.html #}\n{# This assumes you have already created an external stage #}\n create or replace external table {{source(source_node.source_name, source_node.name)}}\n {%- if columns or partitions -%}\n (\n {%- if partitions -%}{%- for partition in partitions %}\n {{partition.name}} {{partition.data_type}} as {{partition.expression}}{{- ',' if not loop.last or columns|length > 0 -}}\n {%- endfor -%}{%- endif -%}\n {%- for column in columns %}\n {%- set column_quoted = adapter.quote(column.name) if column.quote else column.name %}\n {%- set col_expression -%}\n {%- set col_id = 'value:c' ~ loop.index if is_csv else 'value:' ~ column_quoted -%}\n (case when is_null_value({{col_id}}) or lower({{col_id}}) = 'null' then null else {{col_id}} end)\n {%- endset %}\n {{column_quoted}} {{column.data_type}} as ({{col_expression}}::{{column.data_type}})\n {{- ',' if not loop.last -}}\n {% endfor %}\n )\n {%- endif -%}\n {% if partitions %} partition by ({{partitions|map(attribute='name')|join(', ')}}) {% endif %}\n location = {{external.location}} {# stage #}\n {% if external.auto_refresh in (true, false) -%}\n auto_refresh = {{external.auto_refresh}}\n {%- endif %}\n {% if external.pattern -%} pattern = '{{external.pattern}}' {%- endif %}\n {% if external.integration -%} integration = '{{external.integration}}' {%- endif %}\n file_format = {{external.file_format}}\n {% if external.table_format -%} table_format = '{{external.table_format}}' {%- endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.is_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6334443, "supported_languages": null}, "macro.dbt_external_tables.is_csv": {"name": "is_csv", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/snowflake/helpers/is_csv.sql", "original_file_path": "macros/plugins/snowflake/helpers/is_csv.sql", "unique_id": "macro.dbt_external_tables.is_csv", "macro_sql": "{% macro is_csv(file_format) %}\n\n{# From https://docs.snowflake.net/manuals/sql-reference/sql/create-external-table.html:\n\nImportant: The external table does not inherit the file format, if any, in the \nstage definition. You must explicitly specify any file format options for the \nexternal table using the FILE_FORMAT parameter.\n\nNote: FORMAT_NAME and TYPE are mutually exclusive; to avoid unintended behavior, \nyou should only specify one or the other when creating an external table.\n\n#}\n\n {% set ff_ltrimmed = file_format|lower|replace(' ','') %}\n\n {% if 'type=' in ff_ltrimmed %}\n \n {% if 'type=csv' in ff_ltrimmed %}\n\n {{return(true)}}\n\n {% else %}\n\n {{return(false)}}\n \n {% endif %}\n \n {% else %}\n \n {% set ff_standardized = ff_ltrimmed\n | replace('(','') | replace(')','')\n | replace('format_name=','') %}\n {% set fqn = ff_standardized.split('.') %}\n \n {% if fqn | length == 3 %}\n {% set ff_database, ff_schema, ff_identifier = fqn[0], fqn[1], fqn[2] %}\n {% elif fqn | length == 2 %}\n {% set ff_database, ff_schema, ff_identifier = target.database, fqn[0], fqn[1] %}\n {% else %}\n {% set ff_database, ff_schema, ff_identifier = target.database, target.schema, fqn[0] %}\n {% endif %}\n \n {% call statement('get_file_format', fetch_result = True) %}\n show file formats in {{ff_database}}.{{ff_schema}}\n {% endcall %}\n \n {% set ffs = load_result('get_file_format').table %}\n \n {% for ff in ffs %}\n \n {% if ff['name']|lower == ff_identifier and ff['type']|lower == 'csv' %}\n \n {{return(true)}}\n \n {% endif %}\n \n {% endfor %}\n \n {{return(false)}} \n \n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.638357, "supported_languages": null}, "macro.dbt_external_tables.snowflake_get_copy_sql": {"name": "snowflake_get_copy_sql", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/snowflake/snowpipe/get_copy_sql.sql", "original_file_path": "macros/plugins/snowflake/snowpipe/get_copy_sql.sql", "unique_id": "macro.dbt_external_tables.snowflake_get_copy_sql", "macro_sql": "{% macro snowflake_get_copy_sql(source_node, explicit_transaction=false) %}\n{# This assumes you have already created an external stage #}\n\n {%- set columns = source_node.columns.values() -%}\n {%- set external = source_node.external -%}\n {%- set is_csv = dbt_external_tables.is_csv(external.file_format) %}\n {%- set copy_options = external.snowpipe.get('copy_options', none) -%}\n \n {%- if explicit_transaction -%} begin; {%- endif %}\n \n copy into {{source(source_node.source_name, source_node.name)}}\n from ( \n select\n {% if columns|length == 0 %}\n $1::variant as value,\n {% else -%}\n {%- for column in columns -%}\n {%- set col_expression -%}\n {%- if is_csv -%}nullif(${{loop.index}},''){# special case: get columns by ordinal position #}\n {%- else -%}nullif($1:{{column.name}},''){# standard behavior: get columns by name #}\n {%- endif -%}\n {%- endset -%}\n {{col_expression}}::{{column.data_type}} as {{column.name}},\n {% endfor -%}\n {% endif %}\n metadata$filename::varchar as metadata_filename,\n metadata$file_row_number::bigint as metadata_file_row_number,\n current_timestamp::timestamp as _dbt_copied_at\n from {{external.location}} {# stage #}\n )\n file_format = {{external.file_format}}\n {% if external.pattern -%} pattern = '{{external.pattern}}' {%- endif %}\n {% if copy_options %} {{copy_options}} {% endif %};\n \n {% if explicit_transaction -%} commit; {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.is_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6414075, "supported_languages": null}, "macro.dbt_external_tables.snowflake_refresh_snowpipe": {"name": "snowflake_refresh_snowpipe", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/snowflake/snowpipe/refresh_snowpipe.sql", "original_file_path": "macros/plugins/snowflake/snowpipe/refresh_snowpipe.sql", "unique_id": "macro.dbt_external_tables.snowflake_refresh_snowpipe", "macro_sql": "{% macro snowflake_refresh_snowpipe(source_node) %}\n\n {% set snowpipe = source_node.external.snowpipe %}\n {% set auto_ingest = snowpipe.get('auto_ingest', false) if snowpipe is mapping %}\n \n {% if auto_ingest is true %}\n \n {% do return([]) %}\n \n {% else %}\n \n {% set ddl %}\n alter pipe {{source(source_node.source_name, source_node.name)}} refresh\n {% endset %}\n \n {{ return([ddl]) }}\n \n {% endif %}\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6428273, "supported_languages": null}, "macro.dbt_external_tables.snowflake_create_snowpipe": {"name": "snowflake_create_snowpipe", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/snowflake/snowpipe/create_snowpipe.sql", "original_file_path": "macros/plugins/snowflake/snowpipe/create_snowpipe.sql", "unique_id": "macro.dbt_external_tables.snowflake_create_snowpipe", "macro_sql": "{% macro snowflake_create_snowpipe(source_node) %}\n\n {%- set external = source_node.external -%}\n {%- set snowpipe = external.snowpipe -%}\n\n{# https://docs.snowflake.com/en/sql-reference/sql/create-pipe.html #}\n create or replace pipe {{source(source_node.source_name, source_node.name)}}\n {% if snowpipe.auto_ingest -%} auto_ingest = {{snowpipe.auto_ingest}} {%- endif %}\n {% if snowpipe.aws_sns_topic -%} aws_sns_topic = '{{snowpipe.aws_sns_topic}}' {%- endif %}\n {% if snowpipe.integration -%} integration = '{{snowpipe.integration}}' {%- endif %}\n {% if snowpipe.error_integration -%} error_integration = '{{snowpipe.error_integration}}' {%- endif %}\n as {{ dbt_external_tables.snowflake_get_copy_sql(source_node) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.snowflake_get_copy_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6444738, "supported_languages": null}, "macro.dbt_external_tables.snowflake_create_empty_table": {"name": "snowflake_create_empty_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/snowflake/snowpipe/create_empty_table.sql", "original_file_path": "macros/plugins/snowflake/snowpipe/create_empty_table.sql", "unique_id": "macro.dbt_external_tables.snowflake_create_empty_table", "macro_sql": "{% macro snowflake_create_empty_table(source_node) %}\n\n {%- set columns = source_node.columns.values() %}\n\n create or replace table {{source(source_node.source_name, source_node.name)}} (\n {% if columns|length == 0 %}\n value variant,\n {% else -%}\n {%- for column in columns -%}\n {{column.name}} {{column.data_type}},\n {% endfor -%}\n {% endif %}\n metadata_filename varchar,\n metadata_file_row_number bigint,\n _dbt_copied_at timestamp\n );\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.645629, "supported_languages": null}, "macro.dbt_external_tables.bigquery__get_external_build_plan": {"name": "bigquery__get_external_build_plan", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/bigquery/get_external_build_plan.sql", "original_file_path": "macros/plugins/bigquery/get_external_build_plan.sql", "unique_id": "macro.dbt_external_tables.bigquery__get_external_build_plan", "macro_sql": "{% macro bigquery__get_external_build_plan(source_node) %}\n\n {% set build_plan = [] %}\n \n {% set old_relation = adapter.get_relation(\n database = source_node.database,\n schema = source_node.schema,\n identifier = source_node.identifier\n ) %}\n \n {% set create_or_replace = (old_relation is none or var('ext_full_refresh', false)) %}\n\n {% if create_or_replace %}\n {% set build_plan = build_plan + [dbt_external_tables.create_external_table(source_node)] %}\n {% else %}\n {% set build_plan = build_plan + dbt_external_tables.refresh_external_table(source_node) %}\n {% endif %}\n\n {% do return(build_plan) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.create_external_table", "macro.dbt_external_tables.refresh_external_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.647297, "supported_languages": null}, "macro.dbt_external_tables.bigquery__create_external_table": {"name": "bigquery__create_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/bigquery/create_external_table.sql", "original_file_path": "macros/plugins/bigquery/create_external_table.sql", "unique_id": "macro.dbt_external_tables.bigquery__create_external_table", "macro_sql": "{% macro bigquery__create_external_table(source_node) %}\n\n {%- set columns = source_node.columns.values() -%}\n {%- set external = source_node.external -%}\n {%- set partitions = external.partitions -%}\n {%- set options = external.options -%}\n \n {%- set uris = [] -%}\n {%- if options is mapping and options.get('uris', none) -%}\n {%- set uris = external.options.get('uris') -%}\n {%- else -%}\n {%- set uris = [external.location] -%}\n {%- endif -%}\n\n create or replace external table {{source(source_node.source_name, source_node.name)}}\n {%- if columns -%}(\n {% for column in columns %}\n {%- set column_quoted = adapter.quote(column.name) if column.quote else column.name %}\n {{column_quoted}} {{column.data_type}} {{- ',' if not loop.last -}}\n {%- endfor -%}\n )\n {% endif %}\n {% if options and options.get('hive_partition_uri_prefix', none) %}\n with partition columns {%- if partitions %} (\n {%- for partition in partitions %}\n {{partition.name}} {{partition.data_type}}{{',' if not loop.last}}\n {%- endfor -%}\n ) {% endif -%}\n {% endif %}\n options (\n uris = [{%- for uri in uris -%} '{{uri}}' {{- \",\" if not loop.last}} {%- endfor -%}]\n {%- if options is mapping -%}\n {%- for key, value in options.items() if key != 'uris' %}\n {%- if value is string -%}\n , {{key}} = '{{value}}'\n {%- else -%}\n , {{key}} = {{value}}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.65253, "supported_languages": null}, "macro.dbt_external_tables.get_external_build_plan": {"name": "get_external_build_plan", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/get_external_build_plan.sql", "original_file_path": "macros/common/get_external_build_plan.sql", "unique_id": "macro.dbt_external_tables.get_external_build_plan", "macro_sql": "{% macro get_external_build_plan(source_node) %}\n {{ return(adapter.dispatch('get_external_build_plan', 'dbt_external_tables')(source_node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.snowflake__get_external_build_plan"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6531024, "supported_languages": null}, "macro.dbt_external_tables.default__get_external_build_plan": {"name": "default__get_external_build_plan", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/get_external_build_plan.sql", "original_file_path": "macros/common/get_external_build_plan.sql", "unique_id": "macro.dbt_external_tables.default__get_external_build_plan", "macro_sql": "{% macro default__get_external_build_plan(source_node) %}\n {{ exceptions.raise_compiler_error(\"Staging external sources is not implemented for the default adapter\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6533983, "supported_languages": null}, "macro.dbt_external_tables.stage_external_sources": {"name": "stage_external_sources", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/stage_external_sources.sql", "original_file_path": "macros/common/stage_external_sources.sql", "unique_id": "macro.dbt_external_tables.stage_external_sources", "macro_sql": "{% macro stage_external_sources(select=none) %}\n\n {% set sources_to_stage = [] %}\n \n {% set source_nodes = graph.sources.values() if graph.sources else [] %}\n \n {% for node in source_nodes %}\n {% if node.external %}\n \n {% if select %}\n \n {% for src in select.split(' ') %}\n \n {% if '.' in src %}\n {% set src_s = src.split('.') %}\n {% if src_s[0] == node.source_name and src_s[1] == node.name %}\n {% do sources_to_stage.append(node) %}\n {% endif %}\n {% else %}\n {% if src == node.source_name %}\n {% do sources_to_stage.append(node) %}\n {% endif %}\n {% endif %}\n \n {% endfor %}\n \n {% else %}\n \n {% do sources_to_stage.append(node) %}\n \n {% endif %}\n {% endif %}\n \n {% endfor %}\n \n {% if sources_to_stage|length == 0 %}\n {% do log('No external sources selected', info = true) %}\n {% endif %}\n \n {% for node in sources_to_stage %}\n\n {% set loop_label = loop.index ~ ' of ' ~ loop.length %}\n\n {% do log(loop_label ~ ' START external source ' ~ node.schema ~ '.' ~ node.identifier, info = true) -%}\n \n {% set run_queue = dbt_external_tables.get_external_build_plan(node) %}\n \n {% do log(loop_label ~ ' SKIP', info = true) if run_queue == [] %}\n {% set width = flags.PRINTER_WIDTH %}\n \n {% for q in run_queue %}\n \n {% set q_msg = q|replace('\\n','')|replace('begin;','')|trim %}\n {% set q_log = q_msg[:width] ~ '... ' if q_msg|length > width else q_msg %}\n \n {% do log(loop_label ~ ' (' ~ loop.index ~ ') ' ~ q_log, info = true) %}\n {% set exit_txn = dbt_external_tables.exit_transaction() %}\n \n {% call statement('runner', fetch_result = True, auto_begin = False) %}\n {{ exit_txn }} {{ q }}\n {% endcall %}\n \n {% set runner = load_result('runner') %}\n {% set log_msg = runner['response'] if 'response' in runner.keys() else runner['status'] %}\n {% do log(loop_label ~ ' (' ~ loop.index ~ ') ' ~ log_msg, info = true) %}\n \n {% endfor %}\n \n {% endfor %}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.get_external_build_plan", "macro.dbt_external_tables.exit_transaction", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.662681, "supported_languages": null}, "macro.dbt_external_tables.refresh_external_table": {"name": "refresh_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/refresh_external_table.sql", "original_file_path": "macros/common/refresh_external_table.sql", "unique_id": "macro.dbt_external_tables.refresh_external_table", "macro_sql": "{% macro refresh_external_table(source_node) %}\n {{ return(adapter.dispatch('refresh_external_table', 'dbt_external_tables')(source_node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.snowflake__refresh_external_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6632564, "supported_languages": null}, "macro.dbt_external_tables.default__refresh_external_table": {"name": "default__refresh_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/refresh_external_table.sql", "original_file_path": "macros/common/refresh_external_table.sql", "unique_id": "macro.dbt_external_tables.default__refresh_external_table", "macro_sql": "{% macro default__refresh_external_table(source_node) %}\n {% do return([]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6635427, "supported_languages": null}, "macro.dbt_external_tables.create_external_table": {"name": "create_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/create_external_table.sql", "original_file_path": "macros/common/create_external_table.sql", "unique_id": "macro.dbt_external_tables.create_external_table", "macro_sql": "{% macro create_external_table(source_node) %}\n {{ adapter.dispatch('create_external_table', 'dbt_external_tables')(source_node) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.snowflake__create_external_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6640534, "supported_languages": null}, "macro.dbt_external_tables.default__create_external_table": {"name": "default__create_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/create_external_table.sql", "original_file_path": "macros/common/create_external_table.sql", "unique_id": "macro.dbt_external_tables.default__create_external_table", "macro_sql": "{% macro default__create_external_table(source_node) %}\n {{ exceptions.raise_compiler_error(\"External table creation is not implemented for the default adapter\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6643288, "supported_languages": null}, "macro.dbt_external_tables.dropif": {"name": "dropif", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/helpers/dropif.sql", "original_file_path": "macros/common/helpers/dropif.sql", "unique_id": "macro.dbt_external_tables.dropif", "macro_sql": "{% macro dropif(node) %}\n {{ adapter.dispatch('dropif', 'dbt_external_tables')(node) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.default__dropif"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6648054, "supported_languages": null}, "macro.dbt_external_tables.default__dropif": {"name": "default__dropif", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/helpers/dropif.sql", "original_file_path": "macros/common/helpers/dropif.sql", "unique_id": "macro.dbt_external_tables.default__dropif", "macro_sql": "{% macro default__dropif() %}\n {{ exceptions.raise_compiler_error(\n \"Dropping external tables is not implemented for the default adapter\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6651196, "supported_languages": null}, "macro.dbt_external_tables.exit_transaction": {"name": "exit_transaction", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/helpers/transaction.sql", "original_file_path": "macros/common/helpers/transaction.sql", "unique_id": "macro.dbt_external_tables.exit_transaction", "macro_sql": "{% macro exit_transaction() %}\n {{ return(adapter.dispatch('exit_transaction', 'dbt_external_tables')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.default__exit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6655753, "supported_languages": null}, "macro.dbt_external_tables.default__exit_transaction": {"name": "default__exit_transaction", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/helpers/transaction.sql", "original_file_path": "macros/common/helpers/transaction.sql", "unique_id": "macro.dbt_external_tables.default__exit_transaction", "macro_sql": "{% macro default__exit_transaction() %}\n {{ return('') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6658127, "supported_languages": null}, "macro.dbt_date.get_date_dimension": {"name": "get_date_dimension", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "unique_id": "macro.dbt_date.get_date_dimension", "macro_sql": "{% macro get_date_dimension(start_date, end_date) %}\n {{ adapter.dispatch('get_date_dimension', 'dbt_date') (start_date, end_date) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_date_dimension"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6778772, "supported_languages": null}, "macro.dbt_date.default__get_date_dimension": {"name": "default__get_date_dimension", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "unique_id": "macro.dbt_date.default__get_date_dimension", "macro_sql": "{% macro default__get_date_dimension(start_date, end_date) %}\nwith base_dates as (\n {{ dbt_date.get_base_dates(start_date, end_date) }}\n),\ndates_with_prior_year_dates as (\n\n select\n cast(d.date_day as date) as date_day,\n cast({{ dbt.dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ dbt.dateadd('day', -364 , 'd.date_day') }} as date) as prior_year_over_year_date_day\n from\n \tbase_dates d\n\n)\nselect\n d.date_day,\n {{ dbt_date.yesterday('d.date_day') }} as prior_date_day,\n {{ dbt_date.tomorrow('d.date_day') }} as next_date_day,\n d.prior_year_date_day as prior_year_date_day,\n d.prior_year_over_year_date_day,\n {{ dbt_date.day_of_week('d.date_day', isoweek=false) }} as day_of_week,\n {{ dbt_date.day_of_week('d.date_day', isoweek=true) }} as day_of_week_iso,\n {{ dbt_date.day_name('d.date_day', short=false) }} as day_of_week_name,\n {{ dbt_date.day_name('d.date_day', short=true) }} as day_of_week_name_short,\n {{ dbt_date.day_of_month('d.date_day') }} as day_of_month,\n {{ dbt_date.day_of_year('d.date_day') }} as day_of_year,\n\n {{ dbt_date.week_start('d.date_day') }} as week_start_date,\n {{ dbt_date.week_end('d.date_day') }} as week_end_date,\n {{ dbt_date.week_start('d.prior_year_over_year_date_day') }} as prior_year_week_start_date,\n {{ dbt_date.week_end('d.prior_year_over_year_date_day') }} as prior_year_week_end_date,\n {{ dbt_date.week_of_year('d.date_day') }} as week_of_year,\n\n {{ dbt_date.iso_week_start('d.date_day') }} as iso_week_start_date,\n {{ dbt_date.iso_week_end('d.date_day') }} as iso_week_end_date,\n {{ dbt_date.iso_week_start('d.prior_year_over_year_date_day') }} as prior_year_iso_week_start_date,\n {{ dbt_date.iso_week_end('d.prior_year_over_year_date_day') }} as prior_year_iso_week_end_date,\n {{ dbt_date.iso_week_of_year('d.date_day') }} as iso_week_of_year,\n\n {{ dbt_date.week_of_year('d.prior_year_over_year_date_day') }} as prior_year_week_of_year,\n {{ dbt_date.iso_week_of_year('d.prior_year_over_year_date_day') }} as prior_year_iso_week_of_year,\n\n cast({{ dbt_date.date_part('month', 'd.date_day') }} as {{ dbt.type_int() }}) as month_of_year,\n {{ dbt_date.month_name('d.date_day', short=false) }} as month_name,\n {{ dbt_date.month_name('d.date_day', short=true) }} as month_name_short,\n\n cast({{ dbt.date_trunc('month', 'd.date_day') }} as date) as month_start_date,\n cast({{ last_day('d.date_day', 'month') }} as date) as month_end_date,\n\n cast({{ dbt.date_trunc('month', 'd.prior_year_date_day') }} as date) as prior_year_month_start_date,\n cast({{ last_day('d.prior_year_date_day', 'month') }} as date) as prior_year_month_end_date,\n\n cast({{ dbt_date.date_part('quarter', 'd.date_day') }} as {{ dbt.type_int() }}) as quarter_of_year,\n cast({{ dbt.date_trunc('quarter', 'd.date_day') }} as date) as quarter_start_date,\n cast({{ last_day('d.date_day', 'quarter') }} as date) as quarter_end_date,\n\n cast({{ dbt_date.date_part('year', 'd.date_day') }} as {{ dbt.type_int() }}) as year_number,\n cast({{ dbt.date_trunc('year', 'd.date_day') }} as date) as year_start_date,\n cast({{ last_day('d.date_day', 'year') }} as date) as year_end_date\nfrom\n dates_with_prior_year_dates d\norder by 1\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt.dateadd", "macro.dbt_date.yesterday", "macro.dbt_date.tomorrow", "macro.dbt_date.day_of_week", "macro.dbt_date.day_name", "macro.dbt_date.day_of_month", "macro.dbt_date.day_of_year", "macro.dbt_date.week_start", "macro.dbt_date.week_end", "macro.dbt_date.week_of_year", "macro.dbt_date.iso_week_start", "macro.dbt_date.iso_week_end", "macro.dbt_date.iso_week_of_year", "macro.dbt_date.date_part", "macro.dbt.type_int", "macro.dbt_date.month_name", "macro.dbt.date_trunc", "macro.dbt.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6825528, "supported_languages": null}, "macro.dbt_date.postgres__get_date_dimension": {"name": "postgres__get_date_dimension", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "unique_id": "macro.dbt_date.postgres__get_date_dimension", "macro_sql": "{% macro postgres__get_date_dimension(start_date, end_date) %}\nwith base_dates as (\n {{ dbt_date.get_base_dates(start_date, end_date) }}\n),\ndates_with_prior_year_dates as (\n\n select\n cast(d.date_day as date) as date_day,\n cast({{ dbt.dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ dbt.dateadd('day', -364 , 'd.date_day') }} as date) as prior_year_over_year_date_day\n from\n \tbase_dates d\n\n)\nselect\n d.date_day,\n {{ dbt_date.yesterday('d.date_day') }} as prior_date_day,\n {{ dbt_date.tomorrow('d.date_day') }} as next_date_day,\n d.prior_year_date_day as prior_year_date_day,\n d.prior_year_over_year_date_day,\n {{ dbt_date.day_of_week('d.date_day', isoweek=true) }} as day_of_week,\n\n {{ dbt_date.day_name('d.date_day', short=false) }} as day_of_week_name,\n {{ dbt_date.day_name('d.date_day', short=true) }} as day_of_week_name_short,\n {{ dbt_date.day_of_month('d.date_day') }} as day_of_month,\n {{ dbt_date.day_of_year('d.date_day') }} as day_of_year,\n\n {{ dbt_date.week_start('d.date_day') }} as week_start_date,\n {{ dbt_date.week_end('d.date_day') }} as week_end_date,\n {{ dbt_date.week_start('d.prior_year_over_year_date_day') }} as prior_year_week_start_date,\n {{ dbt_date.week_end('d.prior_year_over_year_date_day') }} as prior_year_week_end_date,\n {{ dbt_date.week_of_year('d.date_day') }} as week_of_year,\n\n {{ dbt_date.iso_week_start('d.date_day') }} as iso_week_start_date,\n {{ dbt_date.iso_week_end('d.date_day') }} as iso_week_end_date,\n {{ dbt_date.iso_week_start('d.prior_year_over_year_date_day') }} as prior_year_iso_week_start_date,\n {{ dbt_date.iso_week_end('d.prior_year_over_year_date_day') }} as prior_year_iso_week_end_date,\n {{ dbt_date.iso_week_of_year('d.date_day') }} as iso_week_of_year,\n\n {{ dbt_date.week_of_year('d.prior_year_over_year_date_day') }} as prior_year_week_of_year,\n {{ dbt_date.iso_week_of_year('d.prior_year_over_year_date_day') }} as prior_year_iso_week_of_year,\n\n cast({{ dbt_date.date_part('month', 'd.date_day') }} as {{ dbt.type_int() }}) as month_of_year,\n {{ dbt_date.month_name('d.date_day', short=false) }} as month_name,\n {{ dbt_date.month_name('d.date_day', short=true) }} as month_name_short,\n\n cast({{ dbt.date_trunc('month', 'd.date_day') }} as date) as month_start_date,\n cast({{ last_day('d.date_day', 'month') }} as date) as month_end_date,\n\n cast({{ dbt.date_trunc('month', 'd.prior_year_date_day') }} as date) as prior_year_month_start_date,\n cast({{ last_day('d.prior_year_date_day', 'month') }} as date) as prior_year_month_end_date,\n\n cast({{ dbt_date.date_part('quarter', 'd.date_day') }} as {{ dbt.type_int() }}) as quarter_of_year,\n cast({{ dbt.date_trunc('quarter', 'd.date_day') }} as date) as quarter_start_date,\n {# last_day does not support quarter because postgresql does not support quarter interval. #}\n cast({{dbt.dateadd('day', '-1', dbt.dateadd('month', '3', dbt.date_trunc('quarter', 'd.date_day')))}} as date) as quarter_end_date,\n\n cast({{ dbt_date.date_part('year', 'd.date_day') }} as {{ dbt.type_int() }}) as year_number,\n cast({{ dbt.date_trunc('year', 'd.date_day') }} as date) as year_start_date,\n cast({{ last_day('d.date_day', 'year') }} as date) as year_end_date\nfrom\n dates_with_prior_year_dates d\norder by 1\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt.dateadd", "macro.dbt_date.yesterday", "macro.dbt_date.tomorrow", "macro.dbt_date.day_of_week", "macro.dbt_date.day_name", "macro.dbt_date.day_of_month", "macro.dbt_date.day_of_year", "macro.dbt_date.week_start", "macro.dbt_date.week_end", "macro.dbt_date.week_of_year", "macro.dbt_date.iso_week_start", "macro.dbt_date.iso_week_end", "macro.dbt_date.iso_week_of_year", "macro.dbt_date.date_part", "macro.dbt.type_int", "macro.dbt_date.month_name", "macro.dbt.date_trunc", "macro.dbt.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6872563, "supported_languages": null}, "macro.dbt_date.get_base_dates": {"name": "get_base_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "unique_id": "macro.dbt_date.get_base_dates", "macro_sql": "{% macro get_base_dates(start_date=None, end_date=None, n_dateparts=None, datepart=\"day\") %}\n {{ adapter.dispatch('get_base_dates', 'dbt_date') (start_date, end_date, n_dateparts, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_base_dates"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.688982, "supported_languages": null}, "macro.dbt_date.default__get_base_dates": {"name": "default__get_base_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "unique_id": "macro.dbt_date.default__get_base_dates", "macro_sql": "{% macro default__get_base_dates(start_date, end_date, n_dateparts, datepart) %}\n\n{%- if start_date and end_date -%}\n{%- set start_date=\"cast('\" ~ start_date ~ \"' as \" ~ dbt.type_timestamp() ~ \")\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as \" ~ dbt.type_timestamp() ~ \")\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt.dateadd(datepart, -1 * n_dateparts, dbt_date.today()) -%}\n{%- set end_date = dbt_date.tomorrow() -%}\n{%- endif -%}\n\nwith date_spine as\n(\n\n {{ dbt_date.date_spine(\n datepart=datepart,\n start_date=start_date,\n end_date=end_date,\n )\n }}\n\n)\nselect\n cast(d.date_{{ datepart }} as {{ dbt.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_date.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6905694, "supported_languages": null}, "macro.dbt_date.bigquery__get_base_dates": {"name": "bigquery__get_base_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "unique_id": "macro.dbt_date.bigquery__get_base_dates", "macro_sql": "{% macro bigquery__get_base_dates(start_date, end_date, n_dateparts, datepart) %}\n\n{%- if start_date and end_date -%}\n{%- set start_date=\"cast('\" ~ start_date ~ \"' as date )\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as date )\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt.dateadd(datepart, -1 * n_dateparts, dbt_date.today()) -%}\n{%- set end_date = dbt_date.tomorrow() -%}\n{%- endif -%}\n\nwith date_spine as\n(\n\n {{ dbt_date.date_spine(\n datepart=datepart,\n start_date=start_date,\n end_date=end_date,\n )\n }}\n\n)\nselect\n cast(d.date_{{ datepart }} as {{ dbt.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_date.date_spine", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6919959, "supported_languages": null}, "macro.dbt_date.from_unixtimestamp": {"name": "from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.from_unixtimestamp", "macro_sql": "{%- macro from_unixtimestamp(epochs, format=\"seconds\") -%}\n {{ adapter.dispatch('from_unixtimestamp', 'dbt_date') (epochs, format) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.snowflake__from_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.693944, "supported_languages": null}, "macro.dbt_date.default__from_unixtimestamp": {"name": "default__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.default__from_unixtimestamp", "macro_sql": "\n\n{%- macro default__from_unixtimestamp(epochs, format=\"seconds\") -%}\n {%- if format != \"seconds\" -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n to_timestamp({{ epochs }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6944857, "supported_languages": null}, "macro.dbt_date.postgres__from_unixtimestamp": {"name": "postgres__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.postgres__from_unixtimestamp", "macro_sql": "\n\n{%- macro postgres__from_unixtimestamp(epochs, format=\"seconds\") -%}\n {%- if format != \"seconds\" -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n cast(to_timestamp({{ epochs }}) at time zone 'UTC' as timestamp)\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6950521, "supported_languages": null}, "macro.dbt_date.snowflake__from_unixtimestamp": {"name": "snowflake__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.snowflake__from_unixtimestamp", "macro_sql": "\n\n{%- macro snowflake__from_unixtimestamp(epochs, format) -%}\n {%- if format == \"seconds\" -%}\n {%- set scale = 0 -%}\n {%- elif format == \"milliseconds\" -%}\n {%- set scale = 3 -%}\n {%- elif format == \"microseconds\" -%}\n {%- set scale = 6 -%}\n {%- else -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n to_timestamp_ntz({{ epochs }}, {{ scale }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6960497, "supported_languages": null}, "macro.dbt_date.bigquery__from_unixtimestamp": {"name": "bigquery__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.bigquery__from_unixtimestamp", "macro_sql": "\n\n{%- macro bigquery__from_unixtimestamp(epochs, format) -%}\n {%- if format == \"seconds\" -%}\n timestamp_seconds({{ epochs }})\n {%- elif format == \"milliseconds\" -%}\n timestamp_millis({{ epochs }})\n {%- elif format == \"microseconds\" -%}\n timestamp_micros({{ epochs }})\n {%- else -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6968453, "supported_languages": null}, "macro.dbt_date.iso_week_end": {"name": "iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date.iso_week_end", "macro_sql": "{%- macro iso_week_end(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('iso_week_end', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6977196, "supported_languages": null}, "macro.dbt_date._iso_week_end": {"name": "_iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date._iso_week_end", "macro_sql": "{%- macro _iso_week_end(date, week_type) -%}\n{%- set dt = dbt_date.iso_week_start(date) -%}\n{{ dbt_date.n_days_away(6, dt) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.iso_week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.6981804, "supported_languages": null}, "macro.dbt_date.default__iso_week_end": {"name": "default__iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date.default__iso_week_end", "macro_sql": "\n\n{%- macro default__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'isoweek') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.698469, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_end": {"name": "snowflake__iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date.snowflake__iso_week_end", "macro_sql": "\n\n{%- macro snowflake__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'weekiso') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.698757, "supported_languages": null}, "macro.dbt_date.n_months_away": {"name": "n_months_away", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_months_away.sql", "original_file_path": "macros/calendar_date/n_months_away.sql", "unique_id": "macro.dbt_date.n_months_away", "macro_sql": "{%- macro n_months_away(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('month',\n dbt.dateadd('month', n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.699473, "supported_languages": null}, "macro.dbt_date.iso_week_start": {"name": "iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.iso_week_start", "macro_sql": "{%- macro iso_week_start(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('iso_week_start', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.700402, "supported_languages": null}, "macro.dbt_date._iso_week_start": {"name": "_iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date._iso_week_start", "macro_sql": "{%- macro _iso_week_start(date, week_type) -%}\ncast({{ dbt.date_trunc(week_type, date) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7007234, "supported_languages": null}, "macro.dbt_date.default__iso_week_start": {"name": "default__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.default__iso_week_start", "macro_sql": "\n\n{%- macro default__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'isoweek') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7010388, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_start": {"name": "snowflake__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.snowflake__iso_week_start", "macro_sql": "\n\n{%- macro snowflake__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7013197, "supported_languages": null}, "macro.dbt_date.postgres__iso_week_start": {"name": "postgres__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.postgres__iso_week_start", "macro_sql": "\n\n{%- macro postgres__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7016048, "supported_languages": null}, "macro.dbt_date.next_month_name": {"name": "next_month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_month_name.sql", "original_file_path": "macros/calendar_date/next_month_name.sql", "unique_id": "macro.dbt_date.next_month_name", "macro_sql": "{%- macro next_month_name(short=True, tz=None) -%}\n{{ dbt_date.month_name(dbt_date.next_month(tz), short=short) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.month_name", "macro.dbt_date.next_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7021012, "supported_languages": null}, "macro.dbt_date.week_of_year": {"name": "week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "unique_id": "macro.dbt_date.week_of_year", "macro_sql": "{%- macro week_of_year(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('week_of_year', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7030969, "supported_languages": null}, "macro.dbt_date.default__week_of_year": {"name": "default__week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "unique_id": "macro.dbt_date.default__week_of_year", "macro_sql": "{%- macro default__week_of_year(date) -%}\ncast({{ dbt_date.date_part('week', date) }} as {{ dbt.type_int() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7035031, "supported_languages": null}, "macro.dbt_date.postgres__week_of_year": {"name": "postgres__week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "unique_id": "macro.dbt_date.postgres__week_of_year", "macro_sql": "\n\n{%- macro postgres__week_of_year(date) -%}\n{# postgresql 'week' returns isoweek. Use to_char instead.\n WW = the first week starts on the first day of the year #}\ncast(to_char({{ date }}, 'WW') as {{ dbt.type_int() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7038095, "supported_languages": null}, "macro.dbt_date.week_start": {"name": "week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.week_start", "macro_sql": "{%- macro week_start(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('week_start', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7048004, "supported_languages": null}, "macro.dbt_date.default__week_start": {"name": "default__week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.default__week_start", "macro_sql": "{%- macro default__week_start(date) -%}\ncast({{ dbt.date_trunc('week', date) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7051365, "supported_languages": null}, "macro.dbt_date.snowflake__week_start": {"name": "snowflake__week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.snowflake__week_start", "macro_sql": "\n\n{%- macro snowflake__week_start(date) -%}\n {#\n Get the day of week offset: e.g. if the date is a Sunday,\n dbt_date.day_of_week returns 1, so we subtract 1 to get a 0 offset\n #}\n {% set off_set = dbt_date.day_of_week(date, isoweek=False) ~ \" - 1\" %}\n cast({{ dbt.dateadd(\"day\", \"-1 * (\" ~ off_set ~ \")\", date) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.day_of_week", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7057276, "supported_languages": null}, "macro.dbt_date.postgres__week_start": {"name": "postgres__week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.postgres__week_start", "macro_sql": "\n\n{%- macro postgres__week_start(date) -%}\n-- Sunday as week start date\ncast({{ dbt.dateadd('day', -1, dbt.date_trunc('week', dbt.dateadd('day', 1, date))) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7062912, "supported_languages": null}, "macro.dbt_date.iso_week_of_year": {"name": "iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.iso_week_of_year", "macro_sql": "{%- macro iso_week_of_year(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('iso_week_of_year', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7073095, "supported_languages": null}, "macro.dbt_date._iso_week_of_year": {"name": "_iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date._iso_week_of_year", "macro_sql": "{%- macro _iso_week_of_year(date, week_type) -%}\ncast({{ dbt_date.date_part(week_type, date) }} as {{ dbt.type_int() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7077038, "supported_languages": null}, "macro.dbt_date.default__iso_week_of_year": {"name": "default__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.default__iso_week_of_year", "macro_sql": "\n\n{%- macro default__iso_week_of_year(date) -%}\n{{ dbt_date._iso_week_of_year(date, 'isoweek') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7080076, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_of_year": {"name": "snowflake__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.snowflake__iso_week_of_year", "macro_sql": "\n\n{%- macro snowflake__iso_week_of_year(date) -%}\n{{ dbt_date._iso_week_of_year(date, 'weekiso') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7082913, "supported_languages": null}, "macro.dbt_date.postgres__iso_week_of_year": {"name": "postgres__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.postgres__iso_week_of_year", "macro_sql": "\n\n{%- macro postgres__iso_week_of_year(date) -%}\n-- postgresql week is isoweek, the first week of a year containing January 4 of that year.\n{{ dbt_date._iso_week_of_year(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7085884, "supported_languages": null}, "macro.dbt_date.next_month_number": {"name": "next_month_number", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_month_number.sql", "original_file_path": "macros/calendar_date/next_month_number.sql", "unique_id": "macro.dbt_date.next_month_number", "macro_sql": "{%- macro next_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.next_month(tz)) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_date.next_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7090504, "supported_languages": null}, "macro.dbt_date.today": {"name": "today", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/today.sql", "original_file_path": "macros/calendar_date/today.sql", "unique_id": "macro.dbt_date.today", "macro_sql": "{%- macro today(tz=None) -%}\ncast({{ dbt_date.now(tz) }} as date)\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7094033, "supported_languages": null}, "macro.dbt_date.n_weeks_ago": {"name": "n_weeks_ago", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_weeks_ago.sql", "original_file_path": "macros/calendar_date/n_weeks_ago.sql", "unique_id": "macro.dbt_date.n_weeks_ago", "macro_sql": "{%- macro n_weeks_ago(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('week',\n dbt.dateadd('week', -1 * n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.710148, "supported_languages": null}, "macro.dbt_date.n_days_away": {"name": "n_days_away", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_days_away.sql", "original_file_path": "macros/calendar_date/n_days_away.sql", "unique_id": "macro.dbt_date.n_days_away", "macro_sql": "{%- macro n_days_away(n, date=None, tz=None) -%}\n{{ dbt_date.n_days_ago(-1 * n, date, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7106314, "supported_languages": null}, "macro.dbt_date.last_month_number": {"name": "last_month_number", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_month_number.sql", "original_file_path": "macros/calendar_date/last_month_number.sql", "unique_id": "macro.dbt_date.last_month_number", "macro_sql": "{%- macro last_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.last_month(tz)) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_date.last_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7110744, "supported_languages": null}, "macro.dbt_date.now": {"name": "now", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/now.sql", "original_file_path": "macros/calendar_date/now.sql", "unique_id": "macro.dbt_date.now", "macro_sql": "{%- macro now(tz=None) -%}\n{{ dbt_date.convert_timezone(dbt.current_timestamp(), tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.convert_timezone", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7114692, "supported_languages": null}, "macro.dbt_date.next_week": {"name": "next_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_week.sql", "original_file_path": "macros/calendar_date/next_week.sql", "unique_id": "macro.dbt_date.next_week", "macro_sql": "{%- macro next_week(tz=None) -%}\n{{ dbt_date.n_weeks_away(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_weeks_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7118318, "supported_languages": null}, "macro.dbt_date.round_timestamp": {"name": "round_timestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/round_timestamp.sql", "original_file_path": "macros/calendar_date/round_timestamp.sql", "unique_id": "macro.dbt_date.round_timestamp", "macro_sql": "{% macro round_timestamp(timestamp) %}\n {{ dbt.date_trunc(\"day\", dbt.dateadd(\"hour\", 12, timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7123325, "supported_languages": null}, "macro.dbt_date.next_month": {"name": "next_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_month.sql", "original_file_path": "macros/calendar_date/next_month.sql", "unique_id": "macro.dbt_date.next_month", "macro_sql": "{%- macro next_month(tz=None) -%}\n{{ dbt_date.n_months_away(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_months_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.71269, "supported_languages": null}, "macro.dbt_date.n_days_ago": {"name": "n_days_ago", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_days_ago.sql", "original_file_path": "macros/calendar_date/n_days_ago.sql", "unique_id": "macro.dbt_date.n_days_ago", "macro_sql": "{%- macro n_days_ago(n, date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{%- set n = n|int -%}\ncast({{ dbt.dateadd('day', -1 * n, dt) }} as date)\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.713651, "supported_languages": null}, "macro.dbt_date.n_weeks_away": {"name": "n_weeks_away", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_weeks_away.sql", "original_file_path": "macros/calendar_date/n_weeks_away.sql", "unique_id": "macro.dbt_date.n_weeks_away", "macro_sql": "{%- macro n_weeks_away(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('week',\n dbt.dateadd('week', n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7143536, "supported_languages": null}, "macro.dbt_date.periods_since": {"name": "periods_since", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/periods_since.sql", "original_file_path": "macros/calendar_date/periods_since.sql", "unique_id": "macro.dbt_date.periods_since", "macro_sql": "{%- macro periods_since(date_col, period_name='day', tz=None) -%}\n{{ dbt.datediff(date_col, dbt_date.now(tz), period_name) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7148848, "supported_languages": null}, "macro.dbt_date.day_of_week": {"name": "day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.day_of_week", "macro_sql": "{%- macro day_of_week(date, isoweek=true) -%}\n{{ adapter.dispatch('day_of_week', 'dbt_date') (date, isoweek) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.snowflake__day_of_week"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.717592, "supported_languages": null}, "macro.dbt_date.default__day_of_week": {"name": "default__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.default__day_of_week", "macro_sql": "\n\n{%- macro default__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('dayofweek', date) -%}\n\n {%- if isoweek -%}\n case\n -- Shift start of week from Sunday (0) to Monday (1)\n when {{ dow }} = 0 then 7\n else {{ dow }}\n end\n {%- else -%}\n {{ dow }} + 1\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7182164, "supported_languages": null}, "macro.dbt_date.snowflake__day_of_week": {"name": "snowflake__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.snowflake__day_of_week", "macro_sql": "\n\n{%- macro snowflake__day_of_week(date, isoweek) -%}\n\n {%- if isoweek -%}\n {%- set dow_part = 'dayofweekiso' -%}\n {{ dbt_date.date_part(dow_part, date) }}\n {%- else -%}\n {%- set dow_part = 'dayofweek' -%}\n case\n when {{ dbt_date.date_part(dow_part, date) }} = 7 then 1\n else {{ dbt_date.date_part(dow_part, date) }} + 1\n end\n {%- endif -%}\n\n\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.719062, "supported_languages": null}, "macro.dbt_date.bigquery__day_of_week": {"name": "bigquery__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.bigquery__day_of_week", "macro_sql": "\n\n{%- macro bigquery__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('dayofweek', date) -%}\n\n {%- if isoweek -%}\n case\n -- Shift start of week from Sunday (1) to Monday (2)\n when {{ dow }} = 1 then 7\n else {{ dow }} - 1\n end\n {%- else -%}\n {{ dow }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7196527, "supported_languages": null}, "macro.dbt_date.postgres__day_of_week": {"name": "postgres__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.postgres__day_of_week", "macro_sql": "\n\n\n{%- macro postgres__day_of_week(date, isoweek) -%}\n\n {%- if isoweek -%}\n {%- set dow_part = 'isodow' -%}\n -- Monday(1) to Sunday (7)\n cast({{ dbt_date.date_part(dow_part, date) }} as {{ dbt.type_int() }})\n {%- else -%}\n {%- set dow_part = 'dow' -%}\n -- Sunday(1) to Saturday (7)\n cast({{ dbt_date.date_part(dow_part, date) }} + 1 as {{ dbt.type_int() }})\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.720536, "supported_languages": null}, "macro.dbt_date.redshift__day_of_week": {"name": "redshift__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.redshift__day_of_week", "macro_sql": "\n\n\n{%- macro redshift__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('dayofweek', date) -%}\n\n {%- if isoweek -%}\n case\n -- Shift start of week from Sunday (0) to Monday (1)\n when {{ dow }} = 0 then 7\n else cast({{ dow }} as {{ dbt.type_bigint() }})\n end\n {%- else -%}\n cast({{ dow }} + 1 as {{ dbt.type_bigint() }})\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.721321, "supported_languages": null}, "macro.dbt_date.n_months_ago": {"name": "n_months_ago", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_months_ago.sql", "original_file_path": "macros/calendar_date/n_months_ago.sql", "unique_id": "macro.dbt_date.n_months_ago", "macro_sql": "{%- macro n_months_ago(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('month',\n dbt.dateadd('month', -1 * n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7220652, "supported_languages": null}, "macro.dbt_date.tomorrow": {"name": "tomorrow", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/tomorrow.sql", "original_file_path": "macros/calendar_date/tomorrow.sql", "unique_id": "macro.dbt_date.tomorrow", "macro_sql": "{%- macro tomorrow(date=None, tz=None) -%}\n{{ dbt_date.n_days_away(1, date, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7225108, "supported_languages": null}, "macro.dbt_date.day_of_year": {"name": "day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.day_of_year", "macro_sql": "{%- macro day_of_year(date) -%}\n{{ adapter.dispatch('day_of_year', 'dbt_date') (date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__day_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.723144, "supported_languages": null}, "macro.dbt_date.default__day_of_year": {"name": "default__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.default__day_of_year", "macro_sql": "\n\n{%- macro default__day_of_year(date) -%}\n {{ dbt_date.date_part('dayofyear', date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7234488, "supported_languages": null}, "macro.dbt_date.postgres__day_of_year": {"name": "postgres__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.postgres__day_of_year", "macro_sql": "\n\n{%- macro postgres__day_of_year(date) -%}\n {{ dbt_date.date_part('doy', date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.723737, "supported_languages": null}, "macro.dbt_date.redshift__day_of_year": {"name": "redshift__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.redshift__day_of_year", "macro_sql": "\n\n{%- macro redshift__day_of_year(date) -%}\n cast({{ dbt_date.date_part('dayofyear', date) }} as {{ dbt.type_bigint() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.724132, "supported_languages": null}, "macro.dbt_date.last_month_name": {"name": "last_month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_month_name.sql", "original_file_path": "macros/calendar_date/last_month_name.sql", "unique_id": "macro.dbt_date.last_month_name", "macro_sql": "{%- macro last_month_name(short=True, tz=None) -%}\n{{ dbt_date.month_name(dbt_date.last_month(tz), short=short) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.month_name", "macro.dbt_date.last_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7246053, "supported_languages": null}, "macro.dbt_date.yesterday": {"name": "yesterday", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/yesterday.sql", "original_file_path": "macros/calendar_date/yesterday.sql", "unique_id": "macro.dbt_date.yesterday", "macro_sql": "{%- macro yesterday(date=None, tz=None) -%}\n{{ dbt_date.n_days_ago(1, date, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7250595, "supported_languages": null}, "macro.dbt_date.last_week": {"name": "last_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_week.sql", "original_file_path": "macros/calendar_date/last_week.sql", "unique_id": "macro.dbt_date.last_week", "macro_sql": "{%- macro last_week(tz=None) -%}\n{{ dbt_date.n_weeks_ago(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_weeks_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7254155, "supported_languages": null}, "macro.dbt_date.week_end": {"name": "week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.week_end", "macro_sql": "{%- macro week_end(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('week_end', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7262838, "supported_languages": null}, "macro.dbt_date.default__week_end": {"name": "default__week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.default__week_end", "macro_sql": "{%- macro default__week_end(date) -%}\n{{ last_day(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.72667, "supported_languages": null}, "macro.dbt_date.snowflake__week_end": {"name": "snowflake__week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.snowflake__week_end", "macro_sql": "\n\n{%- macro snowflake__week_end(date) -%}\n{%- set dt = dbt_date.week_start(date) -%}\n{{ dbt_date.n_days_away(6, dt) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7270997, "supported_languages": null}, "macro.dbt_date.postgres__week_end": {"name": "postgres__week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.postgres__week_end", "macro_sql": "\n\n{%- macro postgres__week_end(date) -%}\n{%- set dt = dbt_date.week_start(date) -%}\n{{ dbt_date.n_days_away(6, dt) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7275102, "supported_languages": null}, "macro.dbt_date.last_month": {"name": "last_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_month.sql", "original_file_path": "macros/calendar_date/last_month.sql", "unique_id": "macro.dbt_date.last_month", "macro_sql": "{%- macro last_month(tz=None) -%}\n{{ dbt_date.n_months_ago(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_months_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7278948, "supported_languages": null}, "macro.dbt_date.day_of_month": {"name": "day_of_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_month.sql", "original_file_path": "macros/calendar_date/day_of_month.sql", "unique_id": "macro.dbt_date.day_of_month", "macro_sql": "{%- macro day_of_month(date) -%}\n{{ dbt_date.date_part('day', date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7283087, "supported_languages": null}, "macro.dbt_date.redshift__day_of_month": {"name": "redshift__day_of_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_month.sql", "original_file_path": "macros/calendar_date/day_of_month.sql", "unique_id": "macro.dbt_date.redshift__day_of_month", "macro_sql": "\n\n{%- macro redshift__day_of_month(date) -%}\ncast({{ dbt_date.date_part('day', date) }} as {{ dbt.type_bigint() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7286882, "supported_languages": null}, "macro.dbt_date.month_name": {"name": "month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.month_name", "macro_sql": "{%- macro month_name(date, short=True) -%}\n {{ adapter.dispatch('month_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.snowflake__month_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7295623, "supported_languages": null}, "macro.dbt_date.default__month_name": {"name": "default__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.default__month_name", "macro_sql": "\n\n{%- macro default__month_name(date, short) -%}\n{%- set f = 'MON' if short else 'MONTH' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7299948, "supported_languages": null}, "macro.dbt_date.bigquery__month_name": {"name": "bigquery__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.bigquery__month_name", "macro_sql": "\n\n{%- macro bigquery__month_name(date, short) -%}\n{%- set f = '%b' if short else '%B' -%}\n format_date('{{ f }}', cast({{ date }} as date))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7304199, "supported_languages": null}, "macro.dbt_date.snowflake__month_name": {"name": "snowflake__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.snowflake__month_name", "macro_sql": "\n\n{%- macro snowflake__month_name(date, short) -%}\n{%- set f = 'MON' if short else 'MMMM' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7308252, "supported_languages": null}, "macro.dbt_date.postgres__month_name": {"name": "postgres__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.postgres__month_name", "macro_sql": "\n\n{%- macro postgres__month_name(date, short) -%}\n{# FM = Fill mode, which suppresses padding blanks #}\n{%- set f = 'FMMon' if short else 'FMMonth' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7312596, "supported_languages": null}, "macro.dbt_date.convert_timezone": {"name": "convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.convert_timezone", "macro_sql": "{%- macro convert_timezone(column, target_tz=None, source_tz=None) -%}\n{%- set source_tz = \"UTC\" if not source_tz else source_tz -%}\n{%- set target_tz = var(\"dbt_date:time_zone\") if not target_tz else target_tz -%}\n{{ adapter.dispatch('convert_timezone', 'dbt_date') (column, target_tz, source_tz) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.default__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.732964, "supported_languages": null}, "macro.dbt_date.default__convert_timezone": {"name": "default__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.default__convert_timezone", "macro_sql": "{% macro default__convert_timezone(column, target_tz, source_tz) -%}\nconvert_timezone('{{ source_tz }}', '{{ target_tz }}',\n cast({{ column }} as {{ dbt.type_timestamp() }})\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7334182, "supported_languages": null}, "macro.dbt_date.bigquery__convert_timezone": {"name": "bigquery__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.bigquery__convert_timezone", "macro_sql": "{%- macro bigquery__convert_timezone(column, target_tz, source_tz=None) -%}\ntimestamp(datetime({{ column }}, '{{ target_tz}}'))\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7337327, "supported_languages": null}, "macro.dbt_date.spark__convert_timezone": {"name": "spark__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.spark__convert_timezone", "macro_sql": "{%- macro spark__convert_timezone(column, target_tz, source_tz) -%}\nfrom_utc_timestamp(\n to_utc_timestamp({{ column }}, '{{ source_tz }}'),\n '{{ target_tz }}'\n )\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7340858, "supported_languages": null}, "macro.dbt_date.postgres__convert_timezone": {"name": "postgres__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.postgres__convert_timezone", "macro_sql": "{% macro postgres__convert_timezone(column, target_tz, source_tz) -%}\ncast(\n cast({{ column }} as {{ dbt.type_timestamp() }})\n at time zone '{{ source_tz }}' at time zone '{{ target_tz }}' as {{ dbt.type_timestamp() }}\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7345686, "supported_languages": null}, "macro.dbt_date.redshift__convert_timezone": {"name": "redshift__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.redshift__convert_timezone", "macro_sql": "{%- macro redshift__convert_timezone(column, target_tz, source_tz) -%}\n{{ return(dbt_date.default__convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.default__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7349687, "supported_languages": null}, "macro.dbt_date.day_name": {"name": "day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.day_name", "macro_sql": "{%- macro day_name(date, short=True) -%}\n {{ adapter.dispatch('day_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.snowflake__day_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7360892, "supported_languages": null}, "macro.dbt_date.default__day_name": {"name": "default__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.default__day_name", "macro_sql": "\n\n{%- macro default__day_name(date, short) -%}\n{%- set f = 'Dy' if short else 'Day' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7365105, "supported_languages": null}, "macro.dbt_date.snowflake__day_name": {"name": "snowflake__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.snowflake__day_name", "macro_sql": "\n\n{%- macro snowflake__day_name(date, short) -%}\n {%- if short -%}\n dayname({{ date }})\n {%- else -%}\n -- long version not implemented on Snowflake so we're doing it manually :/\n case dayname({{ date }})\n when 'Mon' then 'Monday'\n when 'Tue' then 'Tuesday'\n when 'Wed' then 'Wednesday'\n when 'Thu' then 'Thursday'\n when 'Fri' then 'Friday'\n when 'Sat' then 'Saturday'\n when 'Sun' then 'Sunday'\n end\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7370596, "supported_languages": null}, "macro.dbt_date.bigquery__day_name": {"name": "bigquery__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.bigquery__day_name", "macro_sql": "\n\n{%- macro bigquery__day_name(date, short) -%}\n{%- set f = '%a' if short else '%A' -%}\n format_date('{{ f }}', cast({{ date }} as date))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7374697, "supported_languages": null}, "macro.dbt_date.postgres__day_name": {"name": "postgres__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.postgres__day_name", "macro_sql": "\n\n{%- macro postgres__day_name(date, short) -%}\n{# FM = Fill mode, which suppresses padding blanks #}\n{%- set f = 'FMDy' if short else 'FMDay' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7379081, "supported_languages": null}, "macro.dbt_date.date_part": {"name": "date_part", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "unique_id": "macro.dbt_date.date_part", "macro_sql": "{% macro date_part(datepart, date) -%}\n {{ adapter.dispatch('date_part', 'dbt_date') (datepart, date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7384748, "supported_languages": null}, "macro.dbt_date.default__date_part": {"name": "default__date_part", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "unique_id": "macro.dbt_date.default__date_part", "macro_sql": "{% macro default__date_part(datepart, date) -%}\n date_part('{{ datepart }}', {{ date }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.738748, "supported_languages": null}, "macro.dbt_date.bigquery__date_part": {"name": "bigquery__date_part", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "unique_id": "macro.dbt_date.bigquery__date_part", "macro_sql": "{% macro bigquery__date_part(datepart, date) -%}\n extract({{ datepart }} from {{ date }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7390382, "supported_languages": null}, "macro.dbt_date.to_unixtimestamp": {"name": "to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.to_unixtimestamp", "macro_sql": "{%- macro to_unixtimestamp(timestamp) -%}\n {{ adapter.dispatch('to_unixtimestamp', 'dbt_date') (timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.snowflake__to_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7396083, "supported_languages": null}, "macro.dbt_date.default__to_unixtimestamp": {"name": "default__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.default__to_unixtimestamp", "macro_sql": "\n\n{%- macro default__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch', timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7399077, "supported_languages": null}, "macro.dbt_date.snowflake__to_unixtimestamp": {"name": "snowflake__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.snowflake__to_unixtimestamp", "macro_sql": "\n\n{%- macro snowflake__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch_seconds', timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7401993, "supported_languages": null}, "macro.dbt_date.bigquery__to_unixtimestamp": {"name": "bigquery__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.bigquery__to_unixtimestamp", "macro_sql": "\n\n{%- macro bigquery__to_unixtimestamp(timestamp) -%}\n unix_seconds({{ timestamp }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7404134, "supported_languages": null}, "macro.dbt_date.get_fiscal_periods": {"name": "get_fiscal_periods", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/fiscal_date/get_fiscal_periods.sql", "original_file_path": "macros/fiscal_date/get_fiscal_periods.sql", "unique_id": "macro.dbt_date.get_fiscal_periods", "macro_sql": "{% macro get_fiscal_periods(dates, year_end_month, week_start_day, shift_year=1) %}\n{#\nThis macro requires you to pass in a ref to a date dimension, created via\ndbt_date.get_date_dimension()s\n#}\nwith fscl_year_dates_for_periods as (\n {{ dbt_date.get_fiscal_year_dates(dates, year_end_month, week_start_day, shift_year) }}\n),\nfscl_year_w13 as (\n\n select\n f.*,\n -- We count the weeks in a 13 week period\n -- and separate the 4-5-4 week sequences\n mod(cast(\n (f.fiscal_week_of_year-1) as {{ dbt.type_int() }}\n ), 13) as w13_number,\n -- Chop weeks into 13 week merch quarters\n cast(\n least(\n floor((f.fiscal_week_of_year-1)/13.0)\n , 3)\n as {{ dbt.type_int() }}) as quarter_number\n from\n fscl_year_dates_for_periods f\n\n),\nfscl_periods as (\n\n select\n f.date_day,\n f.fiscal_year_number,\n f.week_start_date,\n f.week_end_date,\n f.fiscal_week_of_year,\n case\n -- we move week 53 into the 3rd period of the quarter\n when f.fiscal_week_of_year = 53 then 3\n when f.w13_number between 0 and 3 then 1\n when f.w13_number between 4 and 8 then 2\n when f.w13_number between 9 and 12 then 3\n end as period_of_quarter,\n f.quarter_number\n from\n fscl_year_w13 f\n\n),\nfscl_periods_quarters as (\n\n select\n f.*,\n cast((\n (f.quarter_number * 3) + f.period_of_quarter\n ) as {{ dbt.type_int() }}) as fiscal_period_number\n from\n fscl_periods f\n\n)\nselect\n date_day,\n fiscal_year_number,\n week_start_date,\n week_end_date,\n fiscal_week_of_year,\n dense_rank() over(partition by fiscal_period_number order by fiscal_week_of_year) as fiscal_week_of_period,\n fiscal_period_number,\n quarter_number+1 as fiscal_quarter_number,\n period_of_quarter as fiscal_period_of_quarter\nfrom\n fscl_periods_quarters\norder by 1,2\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_fiscal_year_dates", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7419033, "supported_languages": null}, "macro.dbt_date.get_fiscal_year_dates": {"name": "get_fiscal_year_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/fiscal_date/get_fiscal_year_dates.sql", "original_file_path": "macros/fiscal_date/get_fiscal_year_dates.sql", "unique_id": "macro.dbt_date.get_fiscal_year_dates", "macro_sql": "{% macro get_fiscal_year_dates(dates, year_end_month=12, week_start_day=1, shift_year=1) %}\n{{ adapter.dispatch('get_fiscal_year_dates', 'dbt_date') (dates, year_end_month, week_start_day, shift_year) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_fiscal_year_dates"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.744299, "supported_languages": null}, "macro.dbt_date.default__get_fiscal_year_dates": {"name": "default__get_fiscal_year_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/fiscal_date/get_fiscal_year_dates.sql", "original_file_path": "macros/fiscal_date/get_fiscal_year_dates.sql", "unique_id": "macro.dbt_date.default__get_fiscal_year_dates", "macro_sql": "{% macro default__get_fiscal_year_dates(dates, year_end_month, week_start_day, shift_year) %}\n-- this gets all the dates within a fiscal year\n-- determined by the given year-end-month\n-- ending on the saturday closest to that month's end date\nwith date_dimension as (\n select * from {{ dates }}\n),\nyear_month_end as (\n\n select\n d.year_number - {{ shift_year }} as fiscal_year_number,\n d.month_end_date\n from\n date_dimension d\n where\n d.month_of_year = {{ year_end_month }}\n group by 1,2\n\n),\nweeks as (\n\n select\n d.year_number,\n d.month_of_year,\n d.date_day as week_start_date,\n cast({{ dbt.dateadd('day', 6, 'd.date_day') }} as date) as week_end_date\n from\n date_dimension d\n where\n d.day_of_week = {{ week_start_day }}\n\n),\n-- get all the weeks that start in the month the year ends\nyear_week_ends as (\n\n select\n d.year_number - {{ shift_year }} as fiscal_year_number,\n d.week_end_date\n from\n weeks d\n where\n d.month_of_year = {{ year_end_month }}\n group by\n 1,2\n\n),\n-- then calculate which Saturday is closest to month end\nweeks_at_month_end as (\n\n select\n d.fiscal_year_number,\n d.week_end_date,\n m.month_end_date,\n rank() over\n (partition by d.fiscal_year_number\n order by\n abs({{ dbt.datediff('d.week_end_date', 'm.month_end_date', 'day') }})\n\n ) as closest_to_month_end\n from\n year_week_ends d\n join\n year_month_end m on d.fiscal_year_number = m.fiscal_year_number\n),\nfiscal_year_range as (\n\n select\n w.fiscal_year_number,\n cast(\n {{ dbt.dateadd('day', 1,\n 'lag(w.week_end_date) over(order by w.week_end_date)') }}\n as date) as fiscal_year_start_date,\n w.week_end_date as fiscal_year_end_date\n from\n weeks_at_month_end w\n where\n w.closest_to_month_end = 1\n\n),\nfiscal_year_dates as (\n\n select\n d.date_day,\n m.fiscal_year_number,\n m.fiscal_year_start_date,\n m.fiscal_year_end_date,\n w.week_start_date,\n w.week_end_date,\n -- we reset the weeks of the year starting with the merch year start date\n dense_rank()\n over(\n partition by m.fiscal_year_number\n order by w.week_start_date\n ) as fiscal_week_of_year\n from\n date_dimension d\n join\n fiscal_year_range m on d.date_day between m.fiscal_year_start_date and m.fiscal_year_end_date\n join\n weeks w on d.date_day between w.week_start_date and w.week_end_date\n\n)\nselect * from fiscal_year_dates order by 1\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7454815, "supported_languages": null}, "macro.dbt_date.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_date')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.746685, "supported_languages": null}, "macro.dbt_date.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7479453, "supported_languages": null}, "macro.dbt_date.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_date')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7484107, "supported_languages": null}, "macro.dbt_date.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{\n dbt_date.generate_series(\n dbt_date.get_intervals_between(start_date, end_date, datepart)\n )\n }}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.generate_series", "macro.dbt_date.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.749157, "supported_languages": null}, "macro.dbt_date.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_date')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7505503, "supported_languages": null}, "macro.dbt_date.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7515624, "supported_languages": null}, "macro.dbt_date.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_date')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7519948, "supported_languages": null}, "macro.dbt_date.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_date.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1764018292.7530909, "supported_languages": null}}, "docs": {"doc.polygon_models.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "polygon_models", "path": "__overview__.md", "original_file_path": "models/__overview__.md", "unique_id": "doc.polygon_models.__overview__", "block_contents": "# Welcome to the Flipside Crypto Polygon Models Documentation!\n\n## **What does this documentation cover?**\nThe documentation included here details the design of the Polygon tables and views available via [Flipside Crypto.](https://flipsidecrypto.xyz/) For more information on how these models are built, please see [the github repository.](https://github.com/FlipsideCrypto/polygon-models)\n\n## **How do I use these docs?**\nThe easiest way to navigate this documentation is to use the Quick Links below. These links will take you to the documentation for each table, which contains a description, a list of the columns, and other helpful information.\n\nIf you are experienced with dbt docs, feel free to use the sidebar to navigate the documentation, as well as explore the relationships between tables and the logic building them.\n\nThere is more information on how to use dbt docs in the last section of this document.\n\n## **Quick Links to Table Documentation**\n\n**Click on the links below to jump to the documentation for each schema.**\n\n### Core Tables\n\n**Dimensional Tables**\n- [dim_contracts](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.core__dim_contracts)\n- [dim_contract_abis](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.core__dim_contract_abis)\n- [dim_labels](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.core__dim_labels)\n\n**Fact Tables:**\n- [fact_blocks](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.core__fact_blocks)\n- [fact_transactions](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.core__fact_transactions)\n- [fact_event_logs](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.core__fact_event_logs)\n- [fact_traces](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.core__fact_traces)\n\n**Convenience Tables:**\n- [ez_decoded_event_logs](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.core__ez_decoded_event_logs)\n- [ez_native_transfers](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.core__ez_native_transfers)\n- [ez_token_transfers](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.core__ez_token_transfers)\n\n### Price Tables (polygon.price)\n- [dim_asset_metadata](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.price__dim_asset_metadata)\n- [fact_prices_ohlc_hourly](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.price__fact_prices_ohlc_hourly)\n- [ez_asset_metadata](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.price__ez_asset_metadata)\n- [ez_prices_hourly](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.price__ez_prices_hourly)\n\n### DeFi Tables (polygon.defi)\n- [ez_bridge_activity](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.defi__ez_bridge_activity)\n- [ez_dex_swaps](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.defi__ez_dex_swaps)\n- [dim_dex_liquidity_pools](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.defi__dim_dex_liquidity_pools)\n- [ez_lending_borrows](https://flipsidecrypto.github.io/polygon-models/#!/model/model.polygon_models.defi__ez_lending_borrows) \n- [ez_lending_deposits](https://flipsidecrypto.github.io/polygon-models/#!/model/model.polygon_models.defi__ez_lending_deposits)\n- [ez_lending_flashloans](https://flipsidecrypto.github.io/polygon-models/#!/model/model.polygon_models.defi__ez_lending_flashloans)\n- [ez_lending_liquidations](https://flipsidecrypto.github.io/polygon-models/#!/model/model.polygon_models.defi__ez_lending_liquidations)\n- [ez_lending_repayments](https://flipsidecrypto.github.io/polygon-models/#!/model/model.polygon_models.defi__ez_lending_repayments)\n- [ez_lending_withdraws](https://flipsidecrypto.github.io/polygon-models/#!/model/model.polygon_models.defi__ez_lending_withdraws)\n\n### NFT Tables (polygon.nft)\n- [ez_nft_transfers](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.nft__ez_nft_transfers)\n- [ez_nft_sales](https://flipsidecrypto.github.io/polygon-models/#!/model/model.polygon_models.nft__ez_nft_sales)\n\n### Stats Tables (polygon.stats)\n- [ez_core_metrics_hourly](https://flipsidecrypto.github.io/polygon-models/#!/model/model.fsc_evm.stats__ez_core_metrics_hourly)\n\n## **Helpful User-Defined Functions (UDFs)**\n\nUDFs are custom functions built by the Flipside team that can be used in your queries to make your life easier. \n\nPlease visit [LiveQuery Functions Overview](https://flipsidecrypto.github.io/livequery-models/#!/overview) for a full list of helpful UDFs.\n\n## **Data Model Overview**\n\nThe Polygon models are built a few different ways, but the core fact tables are built using three layers of sql models: **bronze, silver, and gold (or core).**\n\n- Bronze: Data is loaded in from the source as a view\n- Silver: All necessary parsing, filtering, de-duping, and other transformations are done here\n- Gold (or core): Final views and tables that are available publicly\n\nThe dimension tables are sourced from a variety of on-chain and off-chain sources.\n\nConvenience views (denoted ez_) are a combination of different fact and dimension tables. These views are built to make it easier to query the data.\n\nNOTE: Polygon is currently operating in it's Testnet phase. Flipside will provide Mainnet data tables once Polygon Mainnet is deployed. \n\n## **Using dbt docs**\n### Navigation\n\nYou can use the ```Project``` and ```Database``` navigation tabs on the left side of the window to explore the models in the project.\n\n### Database Tab\n\nThis view shows relations (tables and views) grouped into database schemas. Note that ephemeral models are *not* shown in this interface, as they do not exist in the datapolygon.\n\n### Graph Exploration\n\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the Expand button at the top-right of this lineage pane, you'll be able to see all of the models that are used to build, or are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the ```--models``` and ```--exclude``` model selection syntax to filter the models in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n\n### **More information**\n- [Flipside](https://flipsidecrypto.xyz/)\n- [Velocity](https://app.flipsidecrypto.com/velocity?nav=Discover)\n- [Tutorials](https://docs.flipsidecrypto.com/our-data/tutorials)\n- [Github](https://github.com/FlipsideCrypto/polygon-models)\n- [What is dbt?](https://docs.getdbt.com/docs/introduction)"}, "doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.livequery_models.__livequery_models__": {"name": "__livequery_models__", "resource_type": "doc", "package_name": "livequery_models", "path": "doc_descriptions/general/__overview__.md", "original_file_path": "models/doc_descriptions/general/__overview__.md", "unique_id": "doc.livequery_models.__livequery_models__", "block_contents": "# Welcome to the Flipside Crypto LiveQuery Models Documentation!\n\n## **What does this documentation cover?**\nThe documentation included here details the design of the LiveQuery functions available via [Flipside Crypto](https://flipsidecrypto.xyz/). For more information on how these functions are built, please see [the github repository.](https://github.com/FlipsideCrypto/livequery-models)\n\n### **Overview of Available Functions**\n\n#### **UTILS Functions**\n\n- `livequery.utils.hex_to_int`: Use this UDF to transform any hex string to integer\n ```\n ex: Curve Swaps\n\n SELECT\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n livequery.utils.hex_to_int(segmented_data [1] :: STRING) :: INTEGER AS tokens_sold\n FROM\n optimism.core.fact_event_logs\n WHERE\n topics [0] :: STRING IN (\n '0x8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd97140',\n '0xd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b'\n )\n ```\n- `livequery.utils.hex_encode_function` (coming soon)(Function VARCHAR): Use this UDF to hex encode any string\n ```\n ex: Decimals Function Signature\n\n SELECT\n `decimals` AS function_name,\n livequery.utils.hex_encode_function(`decimals()`) :: STRING AS text_sig,\n LEFT(text_sig,10) AS function_sig,\n '0x313ce567' AS expected_sig\n ```\n- `livequery.utils.evm_decode_logs` (coming soon)\n- `livequery.utils.udf_register_secret`\n\n#### **LIVE Functions & Examples**\n\n- `livequery.live.udf_api`(Method STRING, URL STRING, Headers OBJECT, Data OBJECT): Use this UDF to make a GET or POST request on any API\n ```\n ex: Defillama GET request -> working with the output (JSON flatten)\n\n WITH chain_base AS (\n SELECT\n livequery.live.udf_api(\n 'GET','https://api.llama.fi/chains',{},{}\n ) AS read\n )\n\n SELECT\n VALUE:chainId::STRING AS chain_id,\n VALUE:name::STRING AS chain,\n VALUE:tokenSymbol::STRING AS token_symbol\n FROM chain_base,\n LATERAL FLATTEN (input=> read:data)\n\n ex: Solana Token Metadata\n\n SELECT\n livequery.live.udf_api(\n 'GET',\n 'https://public-api.solscan.io/token/meta?tokenAddress=SPraYi59a21jEhqvPBbWuwmjA4vdTaSLbiRTefcHJSR',\n { },\n { }\n );\n\n ex: Running with multiple token addresses at the same time\n\n WITH solana_addresses AS (\n SELECT\n 'SPraYi59a21jEhqvPBbWuwmjA4vdTaSLbiRTefcHJSR' AS address\n UNION\n SELECT\n '4KbzSz2VF1LCvEaw8viq1335VgWzNjMd8rwQMsCkKHip'\n )\n SELECT\n livequery.live.udf_api(\n 'GET',\n concat(\n 'https://public-api.solscan.io/token/meta?tokenAddress=',\n address\n ),\n { },\n { }\n )\n FROM\n solana_addresses;\n\n ex: Hit Quicknode (see instructions below for how to register an API Key with Flipside securely)\n\n SELECT\n livequery.live.udf_api(\n 'POST',\n concat(\n 'http://sample-endpoint-name.network.quiknode.pro/',\n '{my_key}'\n ),\n {},\n { 'method' :'eth_blockNumber',\n 'params' :[],\n 'id' :1,\n 'jsonrpc' :'2.0' },\n 'quicknode'\n );\n ```\n\n##### **Registering and Using LiveQuery Credentials to Query Quicknode**\nWith LiveQuery you can safely store encrypted credentials, such as an API key, with Flipside, and query blockchain nodes directly via our SQL interface. Here\u2019s how:\n1. Sign up for a free [Quicknode API Account](https://www.quicknode.com/core-api)\n2. Navigate to ***Endpoints*** on the left hand side then click the ***Get Started*** tab and ***Copy*** the HTTP Provider Endpoint. Do not adjust the Setup or Security parameters.\n3. Visit [Ephit](https://science.flipsidecrypto.xyz/ephit) to obtain an Ephemeral query that will securely link your API Endpoint to Flipside's backend. This will allow you to refer to the URL securely in our application without referencing it or exposing keys directly.\n4. Fill out the form and click ***Submit this Credential***\n5. Paste the provided query into [Flipside](https://flipside.new) and query your node directly in the app with your submitted Credential (`{my_key}`).\n\n##### **API Endpoints available for use with LiveQuery:**\nPlease visit the Flipside discord or open a ticket for questions, concerns or more information.\n\n- Snapshot: [https://hub.snapshot.org/graphql](https://docs.snapshot.org/graphql-api)\n- Defillama: [https://api.llama.fi/](https://defillama.com/docs/api)\n- Defillama: [https://yields.llama.fi/](https://defillama.com/docs/api)\n- Defillama: [https://stablecoins.llama.fi/](https://defillama.com/docs/api)\n- Defillama: [https://bridges.llama.fi/](https://defillama.com/docs/api)\n- Defillama: [https://coins.llama.fi/](https://defillama.com/docs/api)\n- zkSync: [https://api.zksync.io/api/v0.2/](https://docs.zksync.io/apiv02-docs/)\n- DeepNFT Value: [https://api.deepnftvalue.com/v1](https://deepnftvalue.readme.io/reference/getting-started-with-deepnftvalue-api)\n- Zapper: [https://api.zapper.fi/v2/](https://api.zapper.fi/api/static/index.html#/Apps/AppsController_getApps)\n- Helius: [https://api.helius.xyz](https://docs.helius.xyz/introduction/why-helius)\n- Stargaze Name Service: [https://rest.stargaze-apis.com](https://github.com/public-awesome/names/blob/main/API.md)\n\n## **Using dbt docs**\n### Navigation\n\nYou can use the ```Project``` and ```Database``` navigation tabs on the left side of the window to explore the models in the project.\n\n### Database Tab\n\nThis view shows relations (tables and views) grouped into database schemas. Note that ephemeral models are *not* shown in this interface, as they do not exist in the database.\n\n### Graph Exploration\n\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the Expand button at the top-right of this lineage pane, you'll be able to see all of the models that are used to build, or are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the ```--models``` and ```--exclude``` model selection syntax to filter the models in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n### **More information**\n- [Flipside](https://flipsidecrypto.xyz/)\n- [Velocity](https://app.flipsidecrypto.com/velocity?nav=Discover)\n- [Tutorials](https://docs.flipsidecrypto.com/our-data/tutorials)\n- [Github](https://github.com/FlipsideCrypto/external-models)\n- [What is dbt?](https://docs.getdbt.com/docs/introduction)"}, "doc.fsc_evm.general_block_number": {"name": "general_block_number", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/general.md", "original_file_path": "models/doc_descriptions/general.md", "unique_id": "doc.fsc_evm.general_block_number", "block_contents": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "doc.fsc_evm.general_tx_hash": {"name": "general_tx_hash", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/general.md", "original_file_path": "models/doc_descriptions/general.md", "unique_id": "doc.fsc_evm.general_tx_hash", "block_contents": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "doc.fsc_evm.general_block_timestamp": {"name": "general_block_timestamp", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/general.md", "original_file_path": "models/doc_descriptions/general.md", "unique_id": "doc.fsc_evm.general_block_timestamp", "block_contents": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "doc.fsc_evm.general_from_address": {"name": "general_from_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/general.md", "original_file_path": "models/doc_descriptions/general.md", "unique_id": "doc.fsc_evm.general_from_address", "block_contents": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "doc.fsc_evm.general_to_address": {"name": "general_to_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/general.md", "original_file_path": "models/doc_descriptions/general.md", "unique_id": "doc.fsc_evm.general_to_address", "block_contents": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "doc.fsc_evm.general_pk": {"name": "general_pk", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/general.md", "original_file_path": "models/doc_descriptions/general.md", "unique_id": "doc.fsc_evm.general_pk", "block_contents": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "doc.fsc_evm.general_inserted_timestamp": {"name": "general_inserted_timestamp", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/general.md", "original_file_path": "models/doc_descriptions/general.md", "unique_id": "doc.fsc_evm.general_inserted_timestamp", "block_contents": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "doc.fsc_evm.general_modified_timestamp": {"name": "general_modified_timestamp", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/general.md", "original_file_path": "models/doc_descriptions/general.md", "unique_id": "doc.fsc_evm.general_modified_timestamp", "block_contents": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}, "doc.fsc_evm.general_value_precise_raw": {"name": "general_value_precise_raw", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/general.md", "original_file_path": "models/doc_descriptions/general.md", "unique_id": "doc.fsc_evm.general_value_precise_raw", "block_contents": "String representation of numeric values preserving exact precision without any adjustments.\n\n**Format**: VARCHAR containing numeric string\n**Purpose**: Prevents floating-point precision loss due to snowflake limitations\n**Contains**: Raw blockchain values (usually in smallest unit)\n\n**Example Values**:\n- \"1000000000000000000\" = 1 ETH in Wei\n- \"50000000\" = 50 USDC (6 decimals)\n\n**Usage**:\n```sql\n-- Exact value comparisons\nWHERE value_precise_raw = '1000000000000000000'\n\n-- Conversion with precision\nCAST(value_precise_raw AS NUMERIC(38,0)) / POW(10, 18) AS value_decimal\n```"}, "doc.fsc_evm.general_value_precise": {"name": "general_value_precise", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/general.md", "original_file_path": "models/doc_descriptions/general.md", "unique_id": "doc.fsc_evm.general_value_precise", "block_contents": "String representation of numeric values adjusted for human readability while maintaining precision.\n\n**Format**: VARCHAR containing decimal string\n**Adjustments**: Converted from smallest unit to standard unit\n**Purpose**: Human-readable values without precision loss\n\n**Example Values**:\n- \"1.0\" = 1 ETH (converted from Wei)\n- \"50.0\" = 50 USDC (converted from 6 decimal places)\n\n**Best Practices**:\n```sql\n-- Safe numeric operations\nCAST(value_precise AS NUMERIC(38,18))\n\n-- Filtering large values\nWHERE CAST(value_precise AS NUMERIC(38,18)) > 1000\n\n-- Aggregations\nSUM(CAST(value_precise AS NUMERIC(38,18))) AS total_value\n```"}, "doc.fsc_evm.general_value_hex": {"name": "general_value_hex", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/general.md", "original_file_path": "models/doc_descriptions/general.md", "unique_id": "doc.fsc_evm.general_value_hex", "block_contents": "Hexadecimal representation of transaction values as provided by the blockchain RPC.\n\n**Format**: 0x-prefixed hex string\n**Example**: \"0xde0b6b3a7640000\" = 1 ETH in Wei\n\n**Use Cases**:\n- Debugging RPC responses\n- Verifying data transformations\n- Handling special encoding cases\n\n**Conversion Example**:\n- Hex to decimal (conceptual - use built-in conversions)\n- 0xde0b6b3a7640000 = 1000000000000000000 Wei = 1 ETH\n\n**Note**: Most queries should use value or value_precise fields instead."}, "doc.fsc_evm.general_origin_function_signature": {"name": "general_origin_function_signature", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/general.md", "original_file_path": "models/doc_descriptions/general.md", "unique_id": "doc.fsc_evm.general_origin_function_signature", "block_contents": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "doc.fsc_evm.general_tx_position": {"name": "general_tx_position", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/general.md", "original_file_path": "models/doc_descriptions/general.md", "unique_id": "doc.fsc_evm.general_tx_position", "block_contents": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering"}, "doc.fsc_evm.general_value": {"name": "general_value", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/general.md", "original_file_path": "models/doc_descriptions/general.md", "unique_id": "doc.fsc_evm.general_value", "block_contents": "Amount of native tokens transferred, in token units (not Wei).\n\n**Key Points**:\n- 0 for most contract interactions\n- >0 for native token transfers or payable functions\n- Already converted from Wei (divided by 1e18)\n- Use value_precise for exact amounts\n\n**Example Query**:\n```sql\n-- Daily native token transfer volume\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n SUM(value) AS total_transferred,\n COUNT(*) AS transfer_count\nFROM .core.fact_transactions\nWHERE value > 0 AND tx_succeeded\nGROUP BY 1;\n```"}, "doc.fsc_evm.general_tx_succeeded": {"name": "general_tx_succeeded", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/general.md", "original_file_path": "models/doc_descriptions/general.md", "unique_id": "doc.fsc_evm.general_tx_succeeded", "block_contents": "Boolean indicator of transaction success.\n\n**Values**:\n- TRUE: Transaction executed successfully\n- FALSE: Transaction failed/reverted"}, "doc.fsc_evm.general_event_index": {"name": "general_event_index", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/general.md", "original_file_path": "models/doc_descriptions/general.md", "unique_id": "doc.fsc_evm.general_event_index", "block_contents": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "doc.fsc_evm.general_contract_address": {"name": "general_contract_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/general.md", "original_file_path": "models/doc_descriptions/general.md", "unique_id": "doc.fsc_evm.general_contract_address", "block_contents": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events"}, "doc.fsc_evm.general_event_name": {"name": "general_event_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/general.md", "original_file_path": "models/doc_descriptions/general.md", "unique_id": "doc.fsc_evm.general_event_name", "block_contents": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```"}, "doc.fsc_evm.dim_labels_table_doc": {"name": "dim_labels_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/labels/dim_labels.md", "original_file_path": "models/doc_descriptions/labels/dim_labels.md", "unique_id": "doc.fsc_evm.dim_labels_table_doc", "block_contents": "## What\n\nThe labels table is a critical dimension for blockchain analysis, providing one-to-one address identifiers that transform opaque addresses into recognizable entities. Labels are categorized into types (cex, dex, defi, etc.) and subtypes (hot_wallet, treasury, etc.) to enable sophisticated filtering and analysis.\n\n## Key Use Cases\n\n- Track centralized exchange flows (deposits, withdrawals, hot/cold wallet movements)\n- Analyze DeFi protocol usage and cross-protocol interactions\n- Monitor whale and institutional wallet activities\n- Identify token contracts and their movements\n- Assess labeling coverage for active addresses\n- Create entity-based transaction flow analysis\n\n## Important Relationships\n\n- **Join with fact_transactions**: Identify exchange flows, protocol usage\n- **Join with ez_token_transfers**: Track token movements by entity type\n- **Join with dim_contracts**: Combine with contract metadata\n\n## Commonly-used Fields\n\n- `address`: Primary key for joining with transaction tables\n- `label_type`: High-level category (cex, dex, defi, token, etc.)\n- `label_subtype`: Specific categorization within type (hot_wallet, pool, etc.)\n- `project_name`: Protocol or entity name\n- `address_name`: Most specific, granular label\n- `blockchain`: Network identifier for multi-chain queries\n\n## Sample Queries\n\n**Exchange Flow Analysis**\n```sql\n-- Track CEX inflows and outflows\nWITH cex_addresses AS (\n SELECT DISTINCT address\n FROM .core.dim_labels\n WHERE label_type = 'cex'\n AND label_subtype IN ('hot_wallet', 'deposit')\n)\nSELECT \n DATE_TRUNC('day', t.block_timestamp) AS day,\n CASE \n WHEN t.to_address IN (SELECT address FROM cex_addresses) THEN 'CEX Inflow'\n WHEN t.from_address IN (SELECT address FROM cex_addresses) THEN 'CEX Outflow'\n END AS flow_direction,\n COUNT(*) AS transaction_count,\n SUM(t.value) AS total_native_value,\n COUNT(DISTINCT t.from_address) AS unique_users\nFROM .fact.fact_transactions t\nWHERE (t.to_address IN (SELECT address FROM cex_addresses)\n OR t.from_address IN (SELECT address FROM cex_addresses))\n AND t.block_timestamp >= CURRENT_DATE - 30\n AND t.value > 0\nGROUP BY 1, 2\nORDER BY 1 DESC, 2;\n```\n\n**Protocol Usage Ranking**\n```sql\n-- Top DeFi protocols by unique users\nSELECT \n l.project_name,\n l.label_type,\n COUNT(DISTINCT t.from_address) AS unique_users,\n COUNT(*) AS total_interactions,\n SUM(t.tx_fee) AS total_fees_paid\nFROM .fact.fact_transactions t\nJOIN .core.dim_labels l ON t.to_address = l.address\nWHERE l.label_type IN ('defi', 'dex')\n AND t.block_timestamp >= CURRENT_DATE - 7\n AND t.tx_status = 'SUCCESS'\nGROUP BY 1, 2\nORDER BY 3 DESC\nLIMIT 20;\n```\n\n**Whale Wallet Tracking**\n```sql\n-- Monitor large holder activities\nWITH whale_activity AS (\n SELECT \n l.address,\n l.address_name,\n l.label_type,\n COUNT(*) AS tx_count,\n SUM(CASE WHEN t.from_address = l.address THEN 1 ELSE 0 END) AS outgoing_tx,\n SUM(CASE WHEN t.to_address = l.address THEN 1 ELSE 0 END) AS incoming_tx,\n SUM(CASE WHEN t.from_address = l.address THEN t.value ELSE 0 END) AS value_sent,\n SUM(CASE WHEN t.to_address = l.address THEN t.value ELSE 0 END) AS value_received\n FROM .core.dim_labels l\n JOIN .fact.fact_transactions t \n ON l.address IN (t.from_address, t.to_address)\n WHERE l.label_type IN ('whale', 'institution', 'fund')\n AND t.block_timestamp >= CURRENT_DATE - 1\n GROUP BY 1, 2, 3\n)\nSELECT \n *,\n value_received - value_sent AS net_flow\nFROM whale_activity\nWHERE tx_count > 10\nORDER BY ABS(net_flow) DESC;\n```\n\n**Cross-Protocol Interactions**\n```sql\n-- Find addresses interacting with multiple protocols\nWITH user_protocols AS (\n SELECT \n t.from_address AS user_address,\n l.project_name,\n l.label_type,\n COUNT(*) AS interactions\n FROM .fact.fact_transactions t\n JOIN .core.dim_labels l ON t.to_address = l.address\n WHERE l.label_type IN ('defi', 'dex', 'nft')\n AND t.block_timestamp >= CURRENT_DATE - 30\n GROUP BY 1, 2, 3\n)\nSELECT \n user_address,\n COUNT(DISTINCT project_name) AS protocols_used,\n SUM(interactions) AS total_interactions,\n ARRAY_AGG(DISTINCT project_name) AS protocol_list\nFROM user_protocols\nGROUP BY 1\nHAVING COUNT(DISTINCT project_name) >= 5\nORDER BY 2 DESC\nLIMIT 100;\n```\n \n**Label Coverage Analysis**\n```sql\n-- Assess labeling coverage for active addresses\nWITH active_addresses AS (\n SELECT DISTINCT address, address_count\n FROM (\n SELECT to_address AS address, COUNT(*) AS address_count\n FROM .fact.fact_transactions\n WHERE block_timestamp >= CURRENT_DATE - 7\n GROUP BY 1\n HAVING COUNT(*) > 100\n )\n)\nSELECT \n CASE WHEN l.address IS NOT NULL THEN 'Labeled' ELSE 'Unlabeled' END AS status,\n COUNT(*) AS address_count,\n SUM(a.address_count) AS total_transactions\nFROM active_addresses a\nLEFT JOIN .core.dim_labels l ON a.address = l.address\nGROUP BY 1;\n```"}, "doc.fsc_evm.dim_labels_label": {"name": "dim_labels_label", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/labels/dim_labels.md", "original_file_path": "models/doc_descriptions/labels/dim_labels.md", "unique_id": "doc.fsc_evm.dim_labels_label", "block_contents": "High-level label identifying the general entity or wallet type. Often combines project_name with label_subtype.\n\nExample: 'Binance Hot Wallet'"}, "doc.fsc_evm.dim_labels_label_address": {"name": "dim_labels_label_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/labels/dim_labels.md", "original_file_path": "models/doc_descriptions/labels/dim_labels.md", "unique_id": "doc.fsc_evm.dim_labels_label_address", "block_contents": "The blockchain address (0x format) that this label describes. Lowercase hex string used as primary key for joining.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "doc.fsc_evm.dim_labels_address_name": {"name": "dim_labels_address_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/labels/dim_labels.md", "original_file_path": "models/doc_descriptions/labels/dim_labels.md", "unique_id": "doc.fsc_evm.dim_labels_address_name", "block_contents": "The most specific, granular label for this address. Provides maximum detail for precise identification.\n\nExample: 'Binance 14'"}, "doc.fsc_evm.dim_labels_blockchain": {"name": "dim_labels_blockchain", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/labels/dim_labels.md", "original_file_path": "models/doc_descriptions/labels/dim_labels.md", "unique_id": "doc.fsc_evm.dim_labels_blockchain", "block_contents": "The blockchain network for this label. Required for multi-chain label queries.\n\nExample: 'ethereum'"}, "doc.fsc_evm.dim_labels_creator": {"name": "dim_labels_creator", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/labels/dim_labels.md", "original_file_path": "models/doc_descriptions/labels/dim_labels.md", "unique_id": "doc.fsc_evm.dim_labels_creator", "block_contents": "The source or creator of this label entry. Labels from verified sources may be more reliable.\n\nExample: 'flipside'"}, "doc.fsc_evm.dim_labels_subtype": {"name": "dim_labels_subtype", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/labels/dim_labels.md", "original_file_path": "models/doc_descriptions/labels/dim_labels.md", "unique_id": "doc.fsc_evm.dim_labels_subtype", "block_contents": "Specific categorization within the label type. Used for detailed filtering within broader categories.\n\nExample: 'hot_wallet'"}, "doc.fsc_evm.dim_labels_label_type": {"name": "dim_labels_label_type", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/labels/dim_labels.md", "original_file_path": "models/doc_descriptions/labels/dim_labels.md", "unique_id": "doc.fsc_evm.dim_labels_label_type", "block_contents": "High-level category describing the address's primary function. Core types include cex, dex, defi, token, nft, bridge, games, whale, institution, and l2.\n\nExample: 'cex'"}, "doc.fsc_evm.evm_swaps_amount0_adjusted": {"name": "evm_swaps_amount0_adjusted", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_swaps_amount0_adjusted", "block_contents": "The delta of the token0 balance of the pool, decimal adjusted."}, "doc.fsc_evm.evm_swaps_amount0_usd": {"name": "evm_swaps_amount0_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_swaps_amount0_usd", "block_contents": "The delta of the token0 balance of the pool, converted to USD"}, "doc.fsc_evm.evm_swaps_amount1_adjusted": {"name": "evm_swaps_amount1_adjusted", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_swaps_amount1_adjusted", "block_contents": "The delta of the token1 balance of the pool, decimal adjusted."}, "doc.fsc_evm.evm_swaps_amount1_usd": {"name": "evm_swaps_amount1_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_swaps_amount1_usd", "block_contents": "The delta of the token1 balance of the pool, converted to USD"}, "doc.fsc_evm.evm_all_liquidity": {"name": "evm_all_liquidity", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_all_liquidity", "block_contents": "The liquidity of the pool."}, "doc.fsc_evm.evm_all_liquidity_adjusted": {"name": "evm_all_liquidity_adjusted", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_all_liquidity_adjusted", "block_contents": "The liquidity of the pool, decimal adjusted."}, "doc.fsc_evm.evm_positions_liquidity_provider": {"name": "evm_positions_liquidity_provider", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_liquidity_provider", "block_contents": "The address of the LP"}, "doc.fsc_evm.evm_positions_nf_position_manager_address": {"name": "evm_positions_nf_position_manager_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_nf_position_manager_address", "block_contents": "The address of the peripheral nf position manager contract, if used."}, "doc.fsc_evm.evm_positions_nf_token_id": {"name": "evm_positions_nf_token_id", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_nf_token_id", "block_contents": "The id of the NFT associated with the liquidity position"}, "doc.fsc_evm.evm_all_pool_address": {"name": "evm_all_pool_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_all_pool_address", "block_contents": "The contract address of the pool"}, "doc.fsc_evm.evm_all_pool_name": {"name": "evm_all_pool_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_all_pool_name", "block_contents": "The contract label/name of the pool"}, "doc.fsc_evm.evm_swaps_price_0_1": {"name": "evm_swaps_price_0_1", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_swaps_price_0_1", "block_contents": "The amount of token0 per token1 that the swap occurred at"}, "doc.fsc_evm.evm_swaps_price_1_0": {"name": "evm_swaps_price_1_0", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_swaps_price_1_0", "block_contents": "The amount of token1 per token0 that the swap occurred at"}, "doc.fsc_evm.evm_positions_price_lower_0_1": {"name": "evm_positions_price_lower_0_1", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_price_lower_0_1", "block_contents": "Lower bound of the liquidity position represented as token 0 per token 1"}, "doc.fsc_evm.evm_positions_price_lower_0_1_usd": {"name": "evm_positions_price_lower_0_1_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_price_lower_0_1_usd", "block_contents": "Lower bound of the liquidity position represented as token 0 per token 1, converted to USD"}, "doc.fsc_evm.evm_positions_price_lower_1_0": {"name": "evm_positions_price_lower_1_0", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_price_lower_1_0", "block_contents": "Lower bound of the liquidity position represented as token 1 per token 0"}, "doc.fsc_evm.evm_positions_price_lower_1_0_usd": {"name": "evm_positions_price_lower_1_0_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_price_lower_1_0_usd", "block_contents": "Lower bound of the liquidity position represented as token 1 per token 0, converted to USD"}, "doc.fsc_evm.evm_positions_price_upper_0_1": {"name": "evm_positions_price_upper_0_1", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_price_upper_0_1", "block_contents": "Upper bound of the liquidity position represented as token 0 per token 1"}, "doc.fsc_evm.evm_positions_price_upper_0_1_usd": {"name": "evm_positions_price_upper_0_1_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_price_upper_0_1_usd", "block_contents": "Upper bound of the liquidity position represented as token 0 per token 1, converted to USD"}, "doc.fsc_evm.evm_positions_price_upper_1_0": {"name": "evm_positions_price_upper_1_0", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_price_upper_1_0", "block_contents": "pper bound of the liquidity position represented as token 1 per token 0"}, "doc.fsc_evm.evm_positions_price_upper_1_0_usd": {"name": "evm_positions_price_upper_1_0_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_price_upper_1_0_usd", "block_contents": "Upper bound of the liquidity position represented as token 1 per token 0, converted to USD"}, "doc.fsc_evm.evm_positions_tick_lower": {"name": "evm_positions_tick_lower", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_tick_lower", "block_contents": "Lower tick of the liquidity position"}, "doc.fsc_evm.evm_positions_tick_upper": {"name": "evm_positions_tick_upper", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_tick_upper", "block_contents": "Upper tick of the liquidity position"}, "doc.fsc_evm.evm_all_token0_address": {"name": "evm_all_token0_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_all_token0_address", "block_contents": "Contract address of token 0"}, "doc.fsc_evm.evm_all_token0_decimals": {"name": "evm_all_token0_decimals", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_all_token0_decimals", "block_contents": "Decimal adjustment of token0"}, "doc.fsc_evm.evm_all_token0_name": {"name": "evm_all_token0_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_all_token0_name", "block_contents": "Name of token0"}, "doc.fsc_evm.evm_all_token0_price": {"name": "evm_all_token0_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_all_token0_price", "block_contents": "Price of token0"}, "doc.fsc_evm.evm_all_token0_symbol": {"name": "evm_all_token0_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_all_token0_symbol", "block_contents": "Symbol of token0"}, "doc.fsc_evm.evm_all_token1_address": {"name": "evm_all_token1_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_all_token1_address", "block_contents": "Address of token1"}, "doc.fsc_evm.evm_all_token1_decimals": {"name": "evm_all_token1_decimals", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_all_token1_decimals", "block_contents": "Decimal adjustment of token1"}, "doc.fsc_evm.evm_all_token1_name": {"name": "evm_all_token1_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_all_token1_name", "block_contents": "Name of token1"}, "doc.fsc_evm.evm_all_token1_price": {"name": "evm_all_token1_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_all_token1_price", "block_contents": "Price of token1"}, "doc.fsc_evm.evm_all_token1_symbol": {"name": "evm_all_token1_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_all_token1_symbol", "block_contents": "Symbol of token1"}, "doc.fsc_evm.evm_lp_actions_action": {"name": "evm_lp_actions_action", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_lp_actions_action", "block_contents": "The type of lp action, either INCREASE_LIQUIDITY (mint) or DECREASE_LIQUIDITY (burn)"}, "doc.fsc_evm.evm_lp_actions_table_doc": {"name": "evm_lp_actions_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_lp_actions_table_doc", "block_contents": "Use this table to track increases and decreases to positions by liquidity providers (LPs) over time. Whenever a Pool Burn or Mint event is triggered on a position a record is appended to this table."}, "doc.fsc_evm.evm_pool_stats_fee_growth_global0_x128": {"name": "evm_pool_stats_fee_growth_global0_x128", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pool_stats_fee_growth_global0_x128", "block_contents": "The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool"}, "doc.fsc_evm.evm_pool_stats_fee_growth_global1_x128": {"name": "evm_pool_stats_fee_growth_global1_x128", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pool_stats_fee_growth_global1_x128", "block_contents": "The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool"}, "doc.fsc_evm.evm_pool_stats_protocol_fees_token0_adjusted": {"name": "evm_pool_stats_protocol_fees_token0_adjusted", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pool_stats_protocol_fees_token0_adjusted", "block_contents": "The amount of token0 owed to the protocol, decimal adjusted"}, "doc.fsc_evm.evm_pool_stats_protocol_fees_token1_adjusted": {"name": "evm_pool_stats_protocol_fees_token1_adjusted", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pool_stats_protocol_fees_token1_adjusted", "block_contents": "The amount of token1 owed to the protocol, decimal adjusted"}, "doc.fsc_evm.evm_pool_stats_table_doc": {"name": "evm_pool_stats_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pool_stats_table_doc", "block_contents": "Statistics for each pool, appened each time a transaction triggers a Pool Event (i.e. 'Initialize', 'Mint', 'Collect', 'Burn', 'Swap', 'Flash', 'IncreaseObservationCardinalityNext', 'SetFeeProtocol', 'CollectProtocol', etc.). \n\nA new record is appended each time this occurs. These stats are read from the Pool contract state leveraging Flipside's fully archival Ethereum cluster."}, "doc.fsc_evm.evm_pool_stats_tick": {"name": "evm_pool_stats_tick", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pool_stats_tick", "block_contents": "The tick of the pool according to the last tick transitions that was run."}, "doc.fsc_evm.evm_pool_stats_token0_balance": {"name": "evm_pool_stats_token0_balance", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pool_stats_token0_balance", "block_contents": "The balance of token0 locked in the pool contract as of this block."}, "doc.fsc_evm.evm_pool_stats_token0_balance_adjusted": {"name": "evm_pool_stats_token0_balance_adjusted", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pool_stats_token0_balance_adjusted", "block_contents": "The balance of token0 locked in the pool contract as of this block, decimal adjusted."}, "doc.fsc_evm.evm_pool_stats_token0_balance_usd": {"name": "evm_pool_stats_token0_balance_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pool_stats_token0_balance_usd", "block_contents": "The balance of token0 locked in the pool contract as of this block in USD."}, "doc.fsc_evm.evm_pool_stats_token1_balance": {"name": "evm_pool_stats_token1_balance", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pool_stats_token1_balance", "block_contents": "The balance of token1 locked in the pool contract as of this block."}, "doc.fsc_evm.evm_pool_stats_token1_balance_adjusted": {"name": "evm_pool_stats_token1_balance_adjusted", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pool_stats_token1_balance_adjusted", "block_contents": "The balance of token1 locked in the pool contract as of this block, decimal adjusted."}, "doc.fsc_evm.evm_pool_stats_token1_balance_usd": {"name": "evm_pool_stats_token1_balance_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pool_stats_token1_balance_usd", "block_contents": "The balance of token1 locked in the pool contract as of this block in USD."}, "doc.fsc_evm.evm_pool_stats_unlocked": {"name": "evm_pool_stats_unlocked", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pool_stats_unlocked", "block_contents": "Whether the pool is currently locked to reentrancy"}, "doc.fsc_evm.evm_pool_stats_virtual_liquidity_adjusted": {"name": "evm_pool_stats_virtual_liquidity_adjusted", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pool_stats_virtual_liquidity_adjusted", "block_contents": "The virtual liquidity of the pool"}, "doc.fsc_evm.evm_pool_stats_virtual_reserves_token0_adjusted": {"name": "evm_pool_stats_virtual_reserves_token0_adjusted", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pool_stats_virtual_reserves_token0_adjusted", "block_contents": "The virtual reserves of token0, decimal adjusted, in the pool."}, "doc.fsc_evm.evm_pool_stats_virtual_reserves_token0_usd": {"name": "evm_pool_stats_virtual_reserves_token0_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pool_stats_virtual_reserves_token0_usd", "block_contents": "The virtual reserves of token0, converted to USD."}, "doc.fsc_evm.evm_pool_stats_virtual_reserves_token1_adjusted": {"name": "evm_pool_stats_virtual_reserves_token1_adjusted", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pool_stats_virtual_reserves_token1_adjusted", "block_contents": "The virtual reserves of token1, decimal adjusted, in the pool."}, "doc.fsc_evm.evm_pool_stats_virtual_reserves_token1_usd": {"name": "evm_pool_stats_virtual_reserves_token1_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pool_stats_virtual_reserves_token1_usd", "block_contents": "The virtual reserves of token1, converted to USD."}, "doc.fsc_evm.evm_pools_factory_address": {"name": "evm_pools_factory_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pools_factory_address", "block_contents": "The address of the UniswapV3 factory that initialized this Pool."}, "doc.fsc_evm.evm_pools_fee": {"name": "evm_pools_fee", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pools_fee", "block_contents": "The swapping fee of the pool. Liquidity providers initially created pools at three fee levels: 0.05%, 0.30%, and 1%, though more fee levels have been added by UNI governance."}, "doc.fsc_evm.evm_pools_fee_percent": {"name": "evm_pools_fee_percent", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pools_fee_percent", "block_contents": "The fee expressed as a decimal percentage"}, "doc.fsc_evm.evm_pools_init_price_1_0": {"name": "evm_pools_init_price_1_0", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pools_init_price_1_0", "block_contents": "The initial price of the Pool (converted from sqrtPriceX96)."}, "doc.fsc_evm.evm_pools_init_price_1_0_usd": {"name": "evm_pools_init_price_1_0_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pools_init_price_1_0_usd", "block_contents": "The initial price of the Pool (converted from sqrtPriceX96) in USD."}, "doc.fsc_evm.evm_pools_init_tick": {"name": "evm_pools_init_tick", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pools_init_tick", "block_contents": "The initial tick of the Pool"}, "doc.fsc_evm.evm_pools_table_doc": {"name": "evm_pools_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pools_table_doc", "block_contents": "Pool records are appended to this table whenever a PoolCreated event is emitted by the UniswapV3 Factory Contract."}, "doc.fsc_evm.evm_pools_tick_spacing": {"name": "evm_pools_tick_spacing", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_pools_tick_spacing", "block_contents": "The minimum number of ticks allowed between each tick."}, "doc.fsc_evm.evm_position_collected_fees_table_doc": {"name": "evm_position_collected_fees_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_position_collected_fees_table_doc", "block_contents": "Fees collected by a Liquidity Provider (LP) on their position. In V3 fees are accrued and collected in each token within the pair. When a pool Collect event is emitted a new record is appended to this table. If a Burn event is emitted in the same transaction as the Collect event the amount of the burn is subtracted from the Collect event token1 and token0 amounts. This allows us to arrive solely at the swap fees collected."}, "doc.fsc_evm.evm_positions_collected_fees_event_index": {"name": "evm_positions_collected_fees_event_index", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_collected_fees_event_index", "block_contents": "Event index pertains to the grouping of individual events together. Withing one event index there could be multiple messages that take place and this would be the key to tie them together."}, "doc.fsc_evm.evm_positions_collected_fees_price_lower": {"name": "evm_positions_collected_fees_price_lower", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_collected_fees_price_lower", "block_contents": "Lower bound of the liquidity position represented as token 1 per token 0."}, "doc.fsc_evm.evm_positions_collected_fees_price_lower_usd": {"name": "evm_positions_collected_fees_price_lower_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_collected_fees_price_lower_usd", "block_contents": "Lower bound of the liquidity position represented as token 1 per token 0, converted to USD."}, "doc.fsc_evm.evm_positions_collected_fees_price_upper": {"name": "evm_positions_collected_fees_price_upper", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_collected_fees_price_upper", "block_contents": "Upper bound of the liquidity position represented as token 1 per token 0."}, "doc.fsc_evm.evm_positions_collected_fees_price_upper_usd": {"name": "evm_positions_collected_fees_price_upper_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_collected_fees_price_upper_usd", "block_contents": "Upper bound of the liquidity position represented as token 1 per token 0, converted to USD."}, "doc.fsc_evm.evm_positions_fee_growth_inside0_last_x128": {"name": "evm_positions_fee_growth_inside0_last_x128", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_fee_growth_inside0_last_x128", "block_contents": "The fee growth of token0 as of the last action on the individual position."}, "doc.fsc_evm.evm_positions_fee_growth_inside1_last_x128": {"name": "evm_positions_fee_growth_inside1_last_x128", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_fee_growth_inside1_last_x128", "block_contents": "The fee growth of token1 as of the last action on the individual position."}, "doc.fsc_evm.evm_positions_fee_percent": {"name": "evm_positions_fee_percent", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_fee_percent", "block_contents": "Percent of fees"}, "doc.fsc_evm.evm_positions_is_active": {"name": "evm_positions_is_active", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_is_active", "block_contents": "Is the position currently active? When a position is closed this is set to false."}, "doc.fsc_evm.evm_positions_table_doc": {"name": "evm_positions_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_table_doc", "block_contents": "Positions opened by liquidity providers at a specific tick range (tick_lower, tick_upper). Whenever an event is emitted related to a position a new record is added to this table with the latest state of the position."}, "doc.fsc_evm.evm_positions_token_owed0_adjusted": {"name": "evm_positions_token_owed0_adjusted", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_token_owed0_adjusted", "block_contents": "The uncollected amount of token0 owed to the position as of the last computation."}, "doc.fsc_evm.evm_positions_tokens_owed0_usd": {"name": "evm_positions_tokens_owed0_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_tokens_owed0_usd", "block_contents": "The uncollected amount of token0 owed to the position as of the last computation, converted to USD."}, "doc.fsc_evm.evm_positions_token_owed1_adjusted": {"name": "evm_positions_token_owed1_adjusted", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_token_owed1_adjusted", "block_contents": "The uncollected amount of token1 owed to the position as of the last computation."}, "doc.fsc_evm.evm_positions_tokens_owed1_usd": {"name": "evm_positions_tokens_owed1_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_positions_tokens_owed1_usd", "block_contents": "The uncollected amount of token1 owed to the position as of the last computation, converted to USD."}, "doc.fsc_evm.evm_swaps_log_index": {"name": "evm_swaps_log_index", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_swaps_log_index", "block_contents": "Log index pertains to the grouping of individual events together. Withing one log index there could be multiple events that take place and this would be the key to tie them together."}, "doc.fsc_evm.evm_swaps_price": {"name": "evm_swaps_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_swaps_price", "block_contents": "Price of swap"}, "doc.fsc_evm.evm_swaps_recipient": {"name": "evm_swaps_recipient", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_swaps_recipient", "block_contents": "The address that received the output of the swap"}, "doc.fsc_evm.evm_swaps_sender": {"name": "evm_swaps_sender", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_swaps_sender", "block_contents": "The address that initiated the swap call, and that received the callback"}, "doc.fsc_evm.evm_swaps_sqrt_price_x96": {"name": "evm_swaps_sqrt_price_x96", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_swaps_sqrt_price_x96", "block_contents": "Original swap price before conversion"}, "doc.fsc_evm.evm_swaps_table_doc": {"name": "evm_swaps_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_swaps_table_doc", "block_contents": "All swaps that occur on V3 pools."}, "doc.fsc_evm.evm_swaps_tick": {"name": "evm_swaps_tick", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/uniswap_v3.md", "original_file_path": "models/doc_descriptions/protocols/uniswap_v3.md", "unique_id": "doc.fsc_evm.evm_swaps_tick", "block_contents": "The log base 1.0001 of the price of the pool after the swap"}, "doc.fsc_evm.maker_ilk": {"name": "maker_ilk", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_ilk", "block_contents": "The collateral type of the CDP."}, "doc.fsc_evm.maker_urn_address": {"name": "maker_urn_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_urn_address", "block_contents": "A specific CDP."}, "doc.fsc_evm.maker_art": {"name": "maker_art", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_art", "block_contents": "Normalized outstanding stablecoin debt."}, "doc.fsc_evm.maker_ink": {"name": "maker_ink", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_ink", "block_contents": "Collateral balance."}, "doc.fsc_evm.maker_tab": {"name": "maker_tab", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_tab", "block_contents": "Total dai wanted from the auction / total dai to be raised (in flip auction)"}, "doc.fsc_evm.maker_id": {"name": "maker_id", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_id", "block_contents": "ID of the auction in the Flipper"}, "doc.fsc_evm.maker_cdp": {"name": "maker_cdp", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_cdp", "block_contents": "The CDP vault number."}, "doc.fsc_evm.maker_fact_cat_bite": {"name": "maker_fact_cat_bite", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_cat_bite", "block_contents": "The Cat is the system's liquidation agent: it enables keepers to mark positions as unsafe and send them to be auctioned."}, "doc.fsc_evm.maker_fact_vat_file": {"name": "maker_fact_vat_file", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_vat_file", "block_contents": "Admin function to modify the system parameters."}, "doc.fsc_evm.maker_fact_vat_flux": {"name": "maker_fact_vat_flux", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_vat_flux", "block_contents": "Transfers of internal collateral balance of collateral type ilk within Vat from src to dst address."}, "doc.fsc_evm.maker_fact_vat_fold": {"name": "maker_fact_vat_fold", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_vat_fold", "block_contents": "Fold increases rate of a collateral type i to proportionally increase the outstanding debt of all its vaults, typically to assess the stability fee. It also increases the dai balance of address u to add a surplus to the Vow contract."}, "doc.fsc_evm.maker_rate": {"name": "maker_rate", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_rate", "block_contents": "Stablecoin debt multiplier (accumulated stability fees)"}, "doc.fsc_evm.maker_fact_vat_fork": {"name": "maker_fact_vat_fork", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_vat_fork", "block_contents": "Moves locked collateral and/or outstanding debt from one vault src to another vault dst by dink and dart amounts.\n\nThis is a public function that can be called by an address that is authorized by both src and dst vaults."}, "doc.fsc_evm.maker_vat_fork_dink": {"name": "maker_vat_fork_dink", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_vat_fork_dink", "block_contents": "Amount of collateral to exchange."}, "doc.fsc_evm.maker_vat_fork_dart": {"name": "maker_vat_fork_dart", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_vat_fork_dart", "block_contents": "Amount of stablecoin debt to exchange."}, "doc.fsc_evm.maker_vat_frob_dink": {"name": "maker_vat_frob_dink", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_vat_frob_dink", "block_contents": "Change in collateral."}, "doc.fsc_evm.maker_vat_frob_dart": {"name": "maker_vat_frob_dart", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_vat_frob_dart", "block_contents": "Change in debt."}, "doc.fsc_evm.maker_fact_vat_frob": {"name": "maker_fact_vat_frob", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_vat_frob", "block_contents": "Manipulates the locked collateral and outstanding debt balance of a vault u with collateral balance from address v and dai balance of address w\n\nPositive dink and dart values add to the existing balances while negative value subtract from them."}, "doc.fsc_evm.maker_fact_vat_move": {"name": "maker_fact_vat_move", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_vat_move", "block_contents": "Used to transfer internal dai balance of user within Vat to another address."}, "doc.fsc_evm.maker_rad": {"name": "maker_rad", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_rad", "block_contents": "DAI amount."}, "doc.fsc_evm.maker_fact_vat_slip": {"name": "maker_fact_vat_slip", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_vat_slip", "block_contents": "Used to modify the internal collateral balance of a collateral type within Vat."}, "doc.fsc_evm.maker_fact_pot_exit": {"name": "maker_fact_pot_exit", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_pot_exit", "block_contents": "Used when users want to \"exit\" their Dai from the Pot."}, "doc.fsc_evm.maker_fact_pot_join": {"name": "maker_fact_pot_join", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_pot_join", "block_contents": "Used when users want to join their Dai to the Pot."}, "doc.fsc_evm.maker_fact_vat_suck": {"name": "maker_fact_vat_suck", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_vat_suck", "block_contents": "Generates dai on address u and accounted as bad debt on address v without opening a vault."}, "doc.fsc_evm.maker_fact_urns": {"name": "maker_fact_urns", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_urns", "block_contents": "Urn addresses are read by calling the urns function on the CDP manager contract for each created vault."}, "doc.fsc_evm.maker_fact_dog_bark": {"name": "maker_fact_dog_bark", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_dog_bark", "block_contents": "This is the v1 liquidation function. Recent liquidations use the Cat contract."}, "doc.fsc_evm.maker_fact_dai_join_join": {"name": "maker_fact_dai_join_join", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_dai_join_join", "block_contents": "Enters collateral into the system."}, "doc.fsc_evm.maker_fact_dai_join_exit": {"name": "maker_fact_dai_join_exit", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_dai_join_exit", "block_contents": "Removes collateral into the system."}, "doc.fsc_evm.maker_fact_cdp_newcdp": {"name": "maker_fact_cdp_newcdp", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_cdp_newcdp", "block_contents": "Creates a new CDP."}, "doc.fsc_evm.maker_fact_cdp_move": {"name": "maker_fact_cdp_move", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_cdp_move", "block_contents": "Transfers of DAI from the cdp address to a dst address."}, "doc.fsc_evm.maker_fact_cdp_frob": {"name": "maker_fact_cdp_frob", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_cdp_frob", "block_contents": "Modifications of the collateral and debt balance of a CDP."}, "doc.fsc_evm.maker_fact_cdp_flux": {"name": "maker_fact_cdp_flux", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/maker.md", "original_file_path": "models/doc_descriptions/protocols/maker.md", "unique_id": "doc.fsc_evm.maker_fact_cdp_flux", "block_contents": "Wad amounts of CDP collateral from the cdp address to a dst address."}, "doc.fsc_evm.evm_all_ctoken": {"name": "evm_all_ctoken", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_all_ctoken", "block_contents": "Address of the Compound token."}, "doc.fsc_evm.evm_all_ctoken_symbol": {"name": "evm_all_ctoken_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_all_ctoken_symbol", "block_contents": "Symbol of the Compound token."}, "doc.fsc_evm.evm_borrows_borrower": {"name": "evm_borrows_borrower", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_borrows_borrower", "block_contents": "Address that initiated a borrow event."}, "doc.fsc_evm.evm_borrows_contract_address": {"name": "evm_borrows_contract_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_borrows_contract_address", "block_contents": "Address of borrowed token."}, "doc.fsc_evm.evm_borrows_contract_symbol": {"name": "evm_borrows_contract_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_borrows_contract_symbol", "block_contents": "Symbol of borrowed token."}, "doc.fsc_evm.evm_borrows_loan_amount": {"name": "evm_borrows_loan_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_borrows_loan_amount", "block_contents": "Native amount of borrow (decimal adjusted)."}, "doc.fsc_evm.evm_borrows_loan_amount_usd": {"name": "evm_borrows_loan_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_borrows_loan_amount_usd", "block_contents": "The equivalent borrow amount in USD. Note this is computed by taking the average hourly price around the time of the tx event."}, "doc.fsc_evm.evm_borrows_table_doc": {"name": "evm_borrows_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_borrows_table_doc", "block_contents": "Borrows exist within the compound schema, as compound.ez_borrows"}, "doc.fsc_evm.evm_comp_asset_table_doc": {"name": "evm_comp_asset_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_comp_asset_table_doc", "block_contents": "Contains details, such as decimals, name, and other relevant contract metadata for Compound assets."}, "doc.fsc_evm.evm_comp_ctoken_decimals": {"name": "evm_comp_ctoken_decimals", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_comp_ctoken_decimals", "block_contents": "The cToken decimals."}, "doc.fsc_evm.evm_comp_ctoken_name": {"name": "evm_comp_ctoken_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_comp_ctoken_name", "block_contents": "The cToken name."}, "doc.fsc_evm.evm_comp_ctoken_symbol": {"name": "evm_comp_ctoken_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_comp_ctoken_symbol", "block_contents": "The cToken symbol."}, "doc.fsc_evm.evm_comp_redeemer": {"name": "evm_comp_redeemer", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_comp_redeemer", "block_contents": "Address of the redeemer."}, "doc.fsc_evm.evm_comp_underlying": {"name": "evm_comp_underlying", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_comp_underlying", "block_contents": "The underlying asset for the cToken."}, "doc.fsc_evm.evm_comp_underlying_decimals": {"name": "evm_comp_underlying_decimals", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_comp_underlying_decimals", "block_contents": "The underlying asset decimals."}, "doc.fsc_evm.evm_comp_underlying_name": {"name": "evm_comp_underlying_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_comp_underlying_name", "block_contents": "The underlying asset name."}, "doc.fsc_evm.evm_comp_underlying_symbol": {"name": "evm_comp_underlying_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_comp_underlying_symbol", "block_contents": "The underlying asset symbol."}, "doc.fsc_evm.evm_deposits_issued_ctokens": {"name": "evm_deposits_issued_ctokens", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_deposits_issued_ctokens", "block_contents": "Amount of cToken issued for providing liquidity."}, "doc.fsc_evm.evm_deposits_supplied_base_asset": {"name": "evm_deposits_supplied_base_asset", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_deposits_supplied_base_asset", "block_contents": "Native amount provided as liquidity (decimal adjusted)."}, "doc.fsc_evm.evm_deposits_supplied_base_asset_usd": {"name": "evm_deposits_supplied_base_asset_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_deposits_supplied_base_asset_usd", "block_contents": "The equivalent liquidity amount in USD. Note this is computed by taking the average hourly price around the time of the tx event."}, "doc.fsc_evm.evm_deposits_supplied_contract_addr": {"name": "evm_deposits_supplied_contract_addr", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_deposits_supplied_contract_addr", "block_contents": "Address of token provided liquidity for."}, "doc.fsc_evm.evm_deposits_supplied_symbol": {"name": "evm_deposits_supplied_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_deposits_supplied_symbol", "block_contents": "Symbol of token provided liquidity for."}, "doc.fsc_evm.evm_deposits_supplier": {"name": "evm_deposits_supplier", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_deposits_supplier", "block_contents": "Address of liquidity provider."}, "doc.fsc_evm.evm_deposits_table_doc": {"name": "evm_deposits_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_deposits_table_doc", "block_contents": "Deposits exist within the compound schema, as compound.ez_deposits"}, "doc.fsc_evm.evm_liquidations_ctokens_seized": {"name": "evm_liquidations_ctokens_seized", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_liquidations_ctokens_seized", "block_contents": "cToken collateral held by the insolvent borrower that is taken by the liquidator."}, "doc.fsc_evm.evm_liquidations_liquidation_amount": {"name": "evm_liquidations_liquidation_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_liquidations_liquidation_amount", "block_contents": "Native amount liquidated (decimal adjusted)."}, "doc.fsc_evm.evm_liquidations_liquidation_contract_address": {"name": "evm_liquidations_liquidation_contract_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_liquidations_liquidation_contract_address", "block_contents": "Address of liquidated token."}, "doc.fsc_evm.evm_liquidations_liquidation_contract_symbol": {"name": "evm_liquidations_liquidation_contract_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_liquidations_liquidation_contract_symbol", "block_contents": "Symbol of liquidated token."}, "doc.fsc_evm.evm_liquidations_liquidations_amount_usd": {"name": "evm_liquidations_liquidations_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_liquidations_liquidations_amount_usd", "block_contents": "The equivalent liquidated amount in USD. Note this is computed by taking the average hourly price around the time of the tx event."}, "doc.fsc_evm.evm_liquidations_liquidator": {"name": "evm_liquidations_liquidator", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_liquidations_liquidator", "block_contents": "Address that got liquidated."}, "doc.fsc_evm.evm_liquidations_table_doc": {"name": "evm_liquidations_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_liquidations_table_doc", "block_contents": "Liquidations exist within the compound schema, as compound.ez_liquidations"}, "doc.fsc_evm.evm_market_stats_underlying_contract": {"name": "evm_market_stats_underlying_contract", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_underlying_contract", "block_contents": "Address of the underlying token the market serves (i.e. USDC)."}, "doc.fsc_evm.evm_market_stats_block_hour": {"name": "evm_market_stats_block_hour", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_block_hour", "block_contents": "Market stats are aggregated by hour in UTC. date_trunc(\u2018hour\u2019,block_timestamp) for joins on other tables."}, "doc.fsc_evm.evm_market_stats_borrow_apy": {"name": "evm_market_stats_borrow_apy", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_borrow_apy", "block_contents": "The borrower\u2019s APY in terms of the underlying asset. It depends on the exchange rate between the cToken/underlying token (cUSDC/USDC). This is interest paid by the borrower on their loan."}, "doc.fsc_evm.evm_market_stats_borrows_token_amount": {"name": "evm_market_stats_borrows_token_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_borrows_token_amount", "block_contents": "Amount borrowed from the market."}, "doc.fsc_evm.evm_market_stats_borrows_usd": {"name": "evm_market_stats_borrows_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_borrows_usd", "block_contents": "Borrows converted to USD values as of the hour recorded."}, "doc.fsc_evm.evm_market_stats_comp_apy_borrow": {"name": "evm_market_stats_comp_apy_borrow", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_comp_apy_borrow", "block_contents": "The APY one can expect based on COMP governance tokens distributed (which in turn can be staked elsewhere, or used in voting)."}, "doc.fsc_evm.evm_market_stats_comp_apy_supply": {"name": "evm_market_stats_comp_apy_supply", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_comp_apy_supply", "block_contents": "The APY one can expect based on COMP governance tokens distributed (which in turn can be staked elsewhere, or used in voting)."}, "doc.fsc_evm.evm_market_stats_comp_price": {"name": "evm_market_stats_comp_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_comp_price", "block_contents": "The price of the COMP governance token."}, "doc.fsc_evm.evm_market_stats_comp_speed": {"name": "evm_market_stats_comp_speed", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_comp_speed", "block_contents": "COMP is a governance token distributed equally to both suppliers and borrowers (the idea being the users of the protocol are also the ones who should be able to vote on governance actions). Comp speed controls the rate at which comp is distributed to users of the market, per block."}, "doc.fsc_evm.evm_market_stats_comp_speed_usd": {"name": "evm_market_stats_comp_speed_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_comp_speed_usd", "block_contents": "Comp distributed to markets converted to USD."}, "doc.fsc_evm.evm_market_stats_contract_name": {"name": "evm_market_stats_contract_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_contract_name", "block_contents": "market/cToken name"}, "doc.fsc_evm.evm_market_stats_ctoken_price": {"name": "evm_market_stats_ctoken_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_ctoken_price", "block_contents": "Price of the cToken (i.e. cUSDC)."}, "doc.fsc_evm.evm_market_stats_reserves_token_amount": {"name": "evm_market_stats_reserves_token_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_reserves_token_amount", "block_contents": "Reserves are amounts set aside by the market that can be used/affected by governance actions through proposals voted on by COMP holders."}, "doc.fsc_evm.evm_market_stats_reserves_usd": {"name": "evm_market_stats_reserves_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_reserves_usd", "block_contents": "Reserves converted to USD values as of the hour recorded."}, "doc.fsc_evm.evm_market_stats_supply_apy": {"name": "evm_market_stats_supply_apy", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_supply_apy", "block_contents": "The supplier\u2019s APY in terms of the underlying asset. It depends on the exchange rate between the cToken/underlying token (cUSDC/USDC). This is interest paid to the supplier for their stake."}, "doc.fsc_evm.evm_market_stats_supply_token_amount": {"name": "evm_market_stats_supply_token_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_supply_token_amount", "block_contents": "Amount (in terms of the cToken) supplied to the market through suppliers."}, "doc.fsc_evm.evm_market_stats_supply_usd": {"name": "evm_market_stats_supply_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_supply_usd", "block_contents": "Supply converted to USD values as of the hour recorded."}, "doc.fsc_evm.evm_market_stats_table_doc": {"name": "evm_market_stats_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_table_doc", "block_contents": "Market Stats exist within the compound schema, as compound.ez_market_stats"}, "doc.fsc_evm.evm_market_stats_token_price": {"name": "evm_market_stats_token_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_token_price", "block_contents": "Price of the underlying token (i.e. USDC)."}, "doc.fsc_evm.evm_market_stats_underlying_symbol": {"name": "evm_market_stats_underlying_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_market_stats_underlying_symbol", "block_contents": "Symbol of the underlying token the market serves."}, "doc.fsc_evm.evm_redemptions_received_amount": {"name": "evm_redemptions_received_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_redemptions_received_amount", "block_contents": "Native amount provided as liquidity (decimal adjusted)."}, "doc.fsc_evm.evm_redemptions_received_amount_usd": {"name": "evm_redemptions_received_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_redemptions_received_amount_usd", "block_contents": "The equivalent liquidity amount in USD. Note this is computed by taking the average hourly price around the time of the tx event."}, "doc.fsc_evm.evm_redemptions_received_contract_address": {"name": "evm_redemptions_received_contract_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_redemptions_received_contract_address", "block_contents": "Address of token refunded as part of the redemption."}, "doc.fsc_evm.evm_redemptions_received_contract_symbol": {"name": "evm_redemptions_received_contract_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_redemptions_received_contract_symbol", "block_contents": "Symbol of token refunded as part of the redemption."}, "doc.fsc_evm.evm_redemptions_redeemed_ctoken": {"name": "evm_redemptions_redeemed_ctoken", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_redemptions_redeemed_ctoken", "block_contents": "cToken deposited to redeem"}, "doc.fsc_evm.evm_redemptions_table_doc": {"name": "evm_redemptions_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_redemptions_table_doc", "block_contents": "Redemptions exist within the compound schema, as compound.ez_redemptions"}, "doc.fsc_evm.evm_repayments_payer": {"name": "evm_repayments_payer", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_repayments_payer", "block_contents": "Address of user that paid out the loan"}, "doc.fsc_evm.evm_repayments_repay_contract_address": {"name": "evm_repayments_repay_contract_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_repayments_repay_contract_address", "block_contents": "Address of token refunded as part of the redemption"}, "doc.fsc_evm.evm_repayments_repay_contract_symbol": {"name": "evm_repayments_repay_contract_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_repayments_repay_contract_symbol", "block_contents": "Symbol of token refunded as part of the redemption"}, "doc.fsc_evm.evm_repayments_repayed_amount": {"name": "evm_repayments_repayed_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_repayments_repayed_amount", "block_contents": "Native amount repaid on loan (decimal adjusted)"}, "doc.fsc_evm.evm_repayments_repayed_amount_usd": {"name": "evm_repayments_repayed_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_repayments_repayed_amount_usd", "block_contents": "The equivalent repaid amount in USD. Note this is computed by taking the average hourly price around the time of the tx event"}, "doc.fsc_evm.evm_repayments_table_doc": {"name": "evm_repayments_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/compound.md", "original_file_path": "models/doc_descriptions/protocols/compound.md", "unique_id": "doc.fsc_evm.evm_repayments_table_doc", "block_contents": "Repayments exist within the compound schema, as compound.ez_repayments"}, "doc.fsc_evm.evm_blitz_dim_products": {"name": "evm_blitz_dim_products", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_dim_products", "block_contents": "All available Blitz products, these are automatically added as they are released on chain."}, "doc.fsc_evm.evm_blitz_liquidations": {"name": "evm_blitz_liquidations", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_liquidations", "block_contents": "All Blitz liquidations. Once an account\u2019s maintenance margin reaches $0, the account is eligible for liquidation. Liquidation events happen one by one, with the riskiest positions being liquidated first. Liquidations are based on the oracle price."}, "doc.fsc_evm.evm_blitz_perp_trades": {"name": "evm_blitz_perp_trades", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_perp_trades", "block_contents": "Blitz perpetuals are derivative contracts on an underlying spot asset. On Blitz, all perpetual contracts trade against USDC."}, "doc.fsc_evm.evm_blitz_spot_trades": {"name": "evm_blitz_spot_trades", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_spot_trades", "block_contents": "Blitz\u2019s spot markets allow you to buy or sell listed crypto assets paired with USD-denominated stablecoins."}, "doc.fsc_evm.evm_blitz_clearing_house_events": {"name": "evm_blitz_clearing_house_events", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_clearing_house_events", "block_contents": "Blitz\u2019s on-chain clearinghouse operates as the hub combining perpetual and spot markets, collateral, and risk calculations into a single integrated system. The events in this table track when a wallet either deposits or withdraws from the clearinghouse contract."}, "doc.fsc_evm.evm_blitz_account_stats": {"name": "evm_blitz_account_stats", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_account_stats", "block_contents": "Subaccount level table showing aggregated total activity across the Blitz exchange."}, "doc.fsc_evm.evm_blitz_market_stats": {"name": "evm_blitz_market_stats", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_market_stats", "block_contents": "Orderbook level market stats based on a combination of on-chain data and data from Blitz's ticker V2 API which includes 24-hour pricing and volume information on each market pair available on Blitz."}, "doc.fsc_evm.evm_blitz_market_depth": {"name": "evm_blitz_market_depth", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_market_depth", "block_contents": "Liquidity data taken from Blitz's Orderbook API, showing amount of liquidity at each price level."}, "doc.fsc_evm.evm_blitz_staking": {"name": "evm_blitz_staking", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_staking", "block_contents": "All staking actions taken with the VRTX staking contract."}, "doc.fsc_evm.evm_blitz_edge_trades": {"name": "evm_blitz_edge_trades", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_edge_trades", "block_contents": "All edge trades paired with the associated trader/subaccount."}, "doc.fsc_evm.evm_blitz_symbol": {"name": "evm_blitz_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_symbol", "block_contents": "The specific Blitz product symbol, if it is a futures product it will have a -PERP suffix."}, "doc.fsc_evm.evm_blitz_digest": {"name": "evm_blitz_digest", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_digest", "block_contents": "The identifier for a specific trade, this can be split across two or more base deltas in order to fill the entire amount of the trade."}, "doc.fsc_evm.evm_blitz_trader": {"name": "evm_blitz_trader", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_trader", "block_contents": "The wallet address of the trader, there can be multiple subaccounts associated with a trader."}, "doc.fsc_evm.evm_blitz_subaccount": {"name": "evm_blitz_subaccount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_subaccount", "block_contents": "Independent Blitz account of trader with its own margin, balance, positions, and trades. Any wallet can open an arbitrary number of these. Risk is not carried over from subaccount to subaccount."}, "doc.fsc_evm.evm_blitz_trade_type": {"name": "evm_blitz_trade_type", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_trade_type", "block_contents": "They type of trade taken, long/short for perps or buy/sell for spot."}, "doc.fsc_evm.evm_blitz_expiration": {"name": "evm_blitz_expiration", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_expiration", "block_contents": "Time after which the order should automatically be cancelled, as a timestamp in seconds after the unix epoch, converted to datetime."}, "doc.fsc_evm.evm_blitz_order_type": {"name": "evm_blitz_order_type", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_order_type", "block_contents": "Decode from raw expiration number to binary then converted back to int from the most significant two bits: \n0 \u21d2 Default order, where it will attempt to take from the book and then become a resting limit order if there is quantity remaining\n1 \u21d2 Immediate-or-cancel order, which is the same as a default order except it doesn\u2019t become a resting limit order\n2 \u21d2 Fill-or-kill order, which is the same as an IOC order except either the entire order has to be filled or none of it.\n3 \u21d2 Post-only order, where the order is not allowed to take from the book. An error is returned if the order would cross the bid ask spread."}, "doc.fsc_evm.evm_blitz_market_reduce_flag": {"name": "evm_blitz_market_reduce_flag", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_market_reduce_flag", "block_contents": "A reduce-only is an order that will either close or reduce your position. The reduce-only flag can only be set on IOC or FOK order types. Send a reduce-only order by setting the 3rd most significant bit on the expiration field."}, "doc.fsc_evm.evm_blitz_nonce": {"name": "evm_blitz_nonce", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_nonce", "block_contents": "Number used to differentiate between the same order multiple times, and a user trying to place an order with the same parameters twice. Represented as a string."}, "doc.fsc_evm.evm_blitz_is_taker": {"name": "evm_blitz_is_taker", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_is_taker", "block_contents": "Boolean representing if the trader was the taker or maker."}, "doc.fsc_evm.evm_blitz_price_amount_unadj": {"name": "evm_blitz_price_amount_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_price_amount_unadj", "block_contents": "The price amount that the trade was executed at."}, "doc.fsc_evm.evm_blitz_price_amount": {"name": "evm_blitz_price_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_price_amount", "block_contents": "The price amount that the trade was executed at, decimal adjusted. All amounts and prices are adjusted 18 decimals points regardless of underlying asset contract."}, "doc.fsc_evm.evm_blitz_amount_unadj": {"name": "evm_blitz_amount_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_amount_unadj", "block_contents": "The total size of the trade in units of the asset being traded."}, "doc.fsc_evm.evm_blitz_amount": {"name": "evm_blitz_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_amount", "block_contents": "The total size of the trade in units of the asset being traded across one digest, decimal adjusted. All amounts and prices are adjusted 18 decimals points regardless of underlying asset contract."}, "doc.fsc_evm.evm_blitz_amount_usd": {"name": "evm_blitz_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_amount_usd", "block_contents": "The size of the trade in USD. Base Delta multiplied by the price amount."}, "doc.fsc_evm.evm_blitz_fee_amount_unadj": {"name": "evm_blitz_fee_amount_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_fee_amount_unadj", "block_contents": "The fees on the trade."}, "doc.fsc_evm.evm_blitz_fee_amount": {"name": "evm_blitz_fee_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_fee_amount", "block_contents": "The fees on the trade, decimal adjusted. All amounts and prices are adjusted 18 decimals points regardless of underlying asset contract."}, "doc.fsc_evm.evm_blitz_base_delta_amount_unadj": {"name": "evm_blitz_base_delta_amount_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_base_delta_amount_unadj", "block_contents": "Represents the net change in the total quantity of orders at a particular price level, the sum of these across the same digest is equal to the amount. This is the first currency listed in the pair and acts as the reference point for the exchange rate, in this case the crypto asset trading against USDC."}, "doc.fsc_evm.evm_blitz_base_delta_amount": {"name": "evm_blitz_base_delta_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_base_delta_amount", "block_contents": "Represents the net change in the total quantity of orders at a particular price level, decimal adjusted. All amounts and prices are adjusted 18 decimals points regardless of underlying asset contract. The sum of these across the same digest is equal to the amount. This is the first currency listed in the pair and acts as the reference point for the exchange rate, in this case the crypto asset trading against USDC."}, "doc.fsc_evm.evm_blitz_quote_delta_amount_unadj": {"name": "evm_blitz_quote_delta_amount_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_quote_delta_amount_unadj", "block_contents": "A positive value is an increase in spread and a negative value is a decrease in spread. Quote is currency used to express the value of the base currency. It's often the more well-known or stable currency in the pair. In this case, USDC."}, "doc.fsc_evm.evm_blitz_quote_delta_amount": {"name": "evm_blitz_quote_delta_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_quote_delta_amount", "block_contents": "The net change in the best bid and best ask prices in the order book, decimal adjusted. All amounts and prices are adjusted 18 decimals points regardless of underlying asset contract. A positive value is an increase in spread and a negative value is a decrease in spread. Quote is currency used to express the value of the base currency. It's often the more well-known or stable currency in the pair. In this case, USDC."}, "doc.fsc_evm.evm_blitz_health_group": {"name": "evm_blitz_health_group", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_health_group", "block_contents": "The spot / perp product pair of health group i where health_groups[i][0] is the spot product_id and health_groups[i][1] is the perp product_id. Additionally, it is possible for a health group to only have either a spot or perp product, in which case, the product that doesn\u2019t exist is set to 0."}, "doc.fsc_evm.evm_blitz_health_group_symbol": {"name": "evm_blitz_health_group_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_health_group_symbol", "block_contents": "The token symbol represented by the specific health group. For example WBTC and BTC-PERP is BTC."}, "doc.fsc_evm.evm_blitz_amount_quote_unadj": {"name": "evm_blitz_amount_quote_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_amount_quote_unadj", "block_contents": "To liquidate a position, there must be a payment (transfer) between the liquidator and the position holder. This done in the quote currency, USDC. Payments are signed as positive, meaning you received the USDC, or negative, meaning you paid. For perpetual liquidations, users should expect to see a (+) USDC payment. They will see a (-) USDC payment for borrowers since they need to pay the user for buying their borrow."}, "doc.fsc_evm.evm_blitz_amount_quote": {"name": "evm_blitz_amount_quote", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_amount_quote", "block_contents": "To liquidate a position, there must be a payment (transfer) between the liquidator and the position holder. This done in the quote currency, USDC. Payments are signed as positive, meaning you received the USDC, or negative, meaning you paid. For perpetual liquidations, users should expect to see a (+) USDC payment. They will see a (-) USDC payment for borrowers since they need to pay the user for buying their borrow. All amounts and prices are adjusted 18 decimals points regardless of underlying asset contract."}, "doc.fsc_evm.evm_blitz_book_address": {"name": "evm_blitz_book_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_book_address", "block_contents": "The contract address associated with each product, this is where all fill orders are published to the chain."}, "doc.fsc_evm.evm_blitz_product_type": {"name": "evm_blitz_product_type", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_product_type", "block_contents": "The type of product, either spot or perpetual futures."}, "doc.fsc_evm.evm_blitz_product_id": {"name": "evm_blitz_product_id", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_product_id", "block_contents": "The unique id of each product. Evens are perp products and odds are spot products."}, "doc.fsc_evm.evm_blitz_ticker_id": {"name": "evm_blitz_ticker_id", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_ticker_id", "block_contents": "Identifier of a ticker with delimiter to separate base/target."}, "doc.fsc_evm.evm_blitz_name": {"name": "evm_blitz_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_name", "block_contents": "The name of the product"}, "doc.fsc_evm.evm_blitz_token_address": {"name": "evm_blitz_token_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_token_address", "block_contents": "The underlying asset token address deposited or withdrawn from the clearinghouse contract."}, "doc.fsc_evm.evm_blitz_amount_usd_ch": {"name": "evm_blitz_amount_usd_ch", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_amount_usd_ch", "block_contents": "The size of deposit or withdraw in USD."}, "doc.fsc_evm.evm_blitz_product_id_liq": {"name": "evm_blitz_product_id_liq", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_product_id_liq", "block_contents": "The product to liquidate as well as the liquidation mode:\nPerp Liquidation: Any valid perp product_id with is_encode_spread set to false. \nSpot Liquidation: Any valid spot product_id with is_encode_spread set to false. \nSpread Liquidation: If there are perp and spot positions in different directions, liquidate both at the same time. is_encode_spread must be set to true.\n\nIf it is a spread liquidation this column will show the perp product_id, for both ids refer to the spread_product_ids array."}, "doc.fsc_evm.evm_blitz_is_encode_spread": {"name": "evm_blitz_is_encode_spread", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_is_encode_spread", "block_contents": "Indicates whether product_id encodes both a spot and perp product_id for spread_liquidation."}, "doc.fsc_evm.evm_blitz_decoded_spread_product_ids": {"name": "evm_blitz_decoded_spread_product_ids", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_decoded_spread_product_ids", "block_contents": "Array of product_ids that have been decoded from binary. Only available when is_encode_spread is true."}, "doc.fsc_evm.evm_blitz_first_trade_timestamp": {"name": "evm_blitz_first_trade_timestamp", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_first_trade_timestamp", "block_contents": "The block timestamp of this subaccounts first trade."}, "doc.fsc_evm.evm_blitz_last_trade_timestamp": {"name": "evm_blitz_last_trade_timestamp", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_last_trade_timestamp", "block_contents": "The block timestamp of this subaccounts most recent trade."}, "doc.fsc_evm.evm_blitz_account_age": {"name": "evm_blitz_account_age", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_account_age", "block_contents": "The age of the account in days."}, "doc.fsc_evm.evm_blitz_trade_count": {"name": "evm_blitz_trade_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_trade_count", "block_contents": "The total amount of trades executed by the account"}, "doc.fsc_evm.evm_blitz_trade_count_rank": {"name": "evm_blitz_trade_count_rank", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_trade_count_rank", "block_contents": "The rank against all accounts based on trade count volume."}, "doc.fsc_evm.evm_blitz_trade_count_24h": {"name": "evm_blitz_trade_count_24h", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_trade_count_24h", "block_contents": "The total amount of trades made in the last 24 hours."}, "doc.fsc_evm.evm_blitz_trade_count_rank_24h": {"name": "evm_blitz_trade_count_rank_24h", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_trade_count_rank_24h", "block_contents": "The rank against all accounts based on trade count volume in the last 24 hours."}, "doc.fsc_evm.evm_blitz_perp_trade_count": {"name": "evm_blitz_perp_trade_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_perp_trade_count", "block_contents": "The total amount of perpetual trades executed by the account"}, "doc.fsc_evm.evm_blitz_spot_trade_count": {"name": "evm_blitz_spot_trade_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_spot_trade_count", "block_contents": "The total amount of spot trades executed by the account"}, "doc.fsc_evm.evm_blitz_long_count": {"name": "evm_blitz_long_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_long_count", "block_contents": "The total amount of buys/longs on the account."}, "doc.fsc_evm.evm_blitz_short_count": {"name": "evm_blitz_short_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_short_count", "block_contents": "The total amount of sell/shorts on the account."}, "doc.fsc_evm.evm_blitz_total_usd_volume": {"name": "evm_blitz_total_usd_volume", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_total_usd_volume", "block_contents": "The total USD denominated volume of the account."}, "doc.fsc_evm.evm_blitz_total_usd_volume_24h": {"name": "evm_blitz_total_usd_volume_24h", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_total_usd_volume_24h", "block_contents": "The total USD denominated volume of the account in the last 24 hours."}, "doc.fsc_evm.evm_blitz_total_usd_volume_rank_24h": {"name": "evm_blitz_total_usd_volume_rank_24h", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_total_usd_volume_rank_24h", "block_contents": "The rank against all accounts based on the total USD denominated volume of the account in the last 24 hours."}, "doc.fsc_evm.evm_blitz_total_usd_volume_rank": {"name": "evm_blitz_total_usd_volume_rank", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_total_usd_volume_rank", "block_contents": "The rank against all accounts based on total usd volume on the account."}, "doc.fsc_evm.evm_blitz_avg_usd_trade_size": {"name": "evm_blitz_avg_usd_trade_size", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_avg_usd_trade_size", "block_contents": "The average trade size in USD."}, "doc.fsc_evm.evm_blitz_total_fee_amount": {"name": "evm_blitz_total_fee_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_total_fee_amount", "block_contents": "The total amount of trading fees paid by the account."}, "doc.fsc_evm.evm_blitz_total_base_delta_amount": {"name": "evm_blitz_total_base_delta_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_total_base_delta_amount", "block_contents": "The total base delta amount of the account."}, "doc.fsc_evm.evm_blitz_total_quote_delta_amount": {"name": "evm_blitz_total_quote_delta_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_total_quote_delta_amount", "block_contents": "The total quote delta amount of the account."}, "doc.fsc_evm.evm_blitz_total_liquidation_amount": {"name": "evm_blitz_total_liquidation_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_total_liquidation_amount", "block_contents": "The total liquidation amount of the account."}, "doc.fsc_evm.evm_blitz_total_liquidation_count": {"name": "evm_blitz_total_liquidation_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_total_liquidation_count", "block_contents": "The total count of liquidation accounts on the account."}, "doc.fsc_evm.evm_blitz_orderbook_side": {"name": "evm_blitz_orderbook_side", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_orderbook_side", "block_contents": "Designates the bid or ask side of the orderbook price."}, "doc.fsc_evm.evm_blitz_orderbook_volume": {"name": "evm_blitz_orderbook_volume", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_orderbook_volume", "block_contents": "The quantity for each bid/ask order at the given price level."}, "doc.fsc_evm.evm_blitz_orderbook_price": {"name": "evm_blitz_orderbook_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_orderbook_price", "block_contents": "The price level for each bid/ask order."}, "doc.fsc_evm.evm_blitz_orderbook_round_price_0_01": {"name": "evm_blitz_orderbook_round_price_0_01", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_orderbook_round_price_0_01", "block_contents": "The price level for each bid/ask order, rounded to nearest cent."}, "doc.fsc_evm.evm_blitz_orderbook_round_price_0_1": {"name": "evm_blitz_orderbook_round_price_0_1", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_orderbook_round_price_0_1", "block_contents": "The price level for each bid/ask order, rounded to nearest ten cents."}, "doc.fsc_evm.evm_blitz_orderbook_round_price_1": {"name": "evm_blitz_orderbook_round_price_1", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_orderbook_round_price_1", "block_contents": "The price level for each bid/ask order, rounded to nearest dollar."}, "doc.fsc_evm.evm_blitz_orderbook_round_price_10": {"name": "evm_blitz_orderbook_round_price_10", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_orderbook_round_price_10", "block_contents": "The price level for each bid/ask order, rounded to nearest 10 dollars."}, "doc.fsc_evm.evm_blitz_orderbook_round_price_100": {"name": "evm_blitz_orderbook_round_price_100", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_orderbook_round_price_100", "block_contents": "The price level for each bid/ask order, rounded to nearest 100 dollars."}, "doc.fsc_evm.evm_blitz_hour": {"name": "evm_blitz_hour", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_hour", "block_contents": "The hour in which the stats table data was pull and inserted into the table."}, "doc.fsc_evm.evm_blitz_distinct_sequencer_batches": {"name": "evm_blitz_distinct_sequencer_batches", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_distinct_sequencer_batches", "block_contents": "The amount of sequencer transactions that included this product in the last hour."}, "doc.fsc_evm.evm_blitz_trader_count": {"name": "evm_blitz_trader_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_trader_count", "block_contents": "The distinct traders in the last hour, based on a distinct count of wallet addresses."}, "doc.fsc_evm.evm_blitz_subaccount_count": {"name": "evm_blitz_subaccount_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_subaccount_count", "block_contents": "The distinct traders in the last hour, based on a distinct count of subaccount."}, "doc.fsc_evm.evm_blitz_total_trade_count": {"name": "evm_blitz_total_trade_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_total_trade_count", "block_contents": "The total number of trades on Blitz in the last hour."}, "doc.fsc_evm.evm_blitz_contract_price": {"name": "evm_blitz_contract_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_contract_price", "block_contents": "The price of the contract when the data was inserted into the table."}, "doc.fsc_evm.evm_blitz_base_volume_24h": {"name": "evm_blitz_base_volume_24h", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_base_volume_24h", "block_contents": "The 24 hour trading volume for the pair (unit in base)."}, "doc.fsc_evm.evm_blitz_quote_volume_24h": {"name": "evm_blitz_quote_volume_24h", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_quote_volume_24h", "block_contents": "The 24 hour trading volume for the pair (unit in quote)."}, "doc.fsc_evm.evm_blitz_funding_rate": {"name": "evm_blitz_funding_rate", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_funding_rate", "block_contents": "Current 24hr funding rate. Can compute hourly funding rate dividing by 24.\n\nA funding rate is a mechanism used to ensure that the price of a perp contract tracks the underlying asset's price as closely as possible.\n\nPositive funding rates reflect the perpetual trading at a premium to the underlying asset\u2019s price."}, "doc.fsc_evm.evm_blitz_index_price": {"name": "evm_blitz_index_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_index_price", "block_contents": "Last calculated index price for underlying of contract."}, "doc.fsc_evm.evm_blitz_last_price": {"name": "evm_blitz_last_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_last_price", "block_contents": "Last transacted price of base currency based on given quote currency."}, "doc.fsc_evm.evm_blitz_mark_price": {"name": "evm_blitz_mark_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_mark_price", "block_contents": "The calculated fair value of the contract, independent of the last traded price on the specific exchange."}, "doc.fsc_evm.evm_blitz_next_funding_rate": {"name": "evm_blitz_next_funding_rate", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_next_funding_rate", "block_contents": "Timestamp of the next funding rate change, specific to hour the data was pulled from the API."}, "doc.fsc_evm.evm_blitz_open_interest": {"name": "evm_blitz_open_interest", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_open_interest", "block_contents": "The open interest of the contract for the hour that the data was pulled. Open interest (OI) refers to the total number of outstanding derivative contracts (e.g., futures or options) that are currently held by market participants and have not yet been settled"}, "doc.fsc_evm.evm_blitz_open_interest_usd": {"name": "evm_blitz_open_interest_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_open_interest_usd", "block_contents": "The open interest of the contract for the hour that the data was pulled, denominated in USD. Open interest (OI) refers to the total number of outstanding derivative contracts (e.g., futures or options) that are currently held by market participants and have not yet been settled"}, "doc.fsc_evm.evm_blitz_quote_currency": {"name": "evm_blitz_quote_currency", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_quote_currency", "block_contents": "Symbol of the target asset."}, "doc.fsc_evm.evm_blitz_stake_action": {"name": "evm_blitz_stake_action", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/blitz.md", "original_file_path": "models/doc_descriptions/protocols/blitz.md", "unique_id": "doc.fsc_evm.evm_blitz_stake_action", "block_contents": "The staking action with the VRTX staking address"}, "doc.fsc_evm.op_pool_address": {"name": "op_pool_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/velodrome.md", "original_file_path": "models/doc_descriptions/protocols/velodrome.md", "unique_id": "doc.fsc_evm.op_pool_address", "block_contents": "The address of the Velodrome liquidity pool."}, "doc.fsc_evm.op_pool_name": {"name": "op_pool_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/velodrome.md", "original_file_path": "models/doc_descriptions/protocols/velodrome.md", "unique_id": "doc.fsc_evm.op_pool_name", "block_contents": "The name of the Velodrome liquidity pool."}, "doc.fsc_evm.op_pool_type": {"name": "op_pool_type", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/velodrome.md", "original_file_path": "models/doc_descriptions/protocols/velodrome.md", "unique_id": "doc.fsc_evm.op_pool_type", "block_contents": "The type of liquidity pool, either stable or volatile. Stable pools are designed for assets which have little to no volatility. Volatile pools are designed for assets with high price volatility, and use a generic AMM formula."}, "doc.fsc_evm.op_token0_address": {"name": "op_token0_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/velodrome.md", "original_file_path": "models/doc_descriptions/protocols/velodrome.md", "unique_id": "doc.fsc_evm.op_token0_address", "block_contents": "The address of token0 in the pool."}, "doc.fsc_evm.op_token0_symbol": {"name": "op_token0_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/velodrome.md", "original_file_path": "models/doc_descriptions/protocols/velodrome.md", "unique_id": "doc.fsc_evm.op_token0_symbol", "block_contents": "The symbol of token0 in the pool."}, "doc.fsc_evm.op_token1_address": {"name": "op_token1_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/velodrome.md", "original_file_path": "models/doc_descriptions/protocols/velodrome.md", "unique_id": "doc.fsc_evm.op_token1_address", "block_contents": "The address of token1 in the pool."}, "doc.fsc_evm.op_token1_symbol": {"name": "op_token1_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/velodrome.md", "original_file_path": "models/doc_descriptions/protocols/velodrome.md", "unique_id": "doc.fsc_evm.op_token1_symbol", "block_contents": "The symbol of token1 in the pool."}, "doc.fsc_evm.velo_claimed_table_doc": {"name": "velo_claimed_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/velodrome.md", "original_file_path": "models/doc_descriptions/protocols/velodrome.md", "unique_id": "doc.fsc_evm.velo_claimed_table_doc", "block_contents": "This table contains details about claimed rewards on Velodrome. Rewards are paid to VELO lockers, LP token stakers, and veVELO voters. Please use the `reward_type` column to analyze the different types of claimed rewards.\n\n`venft_distribution` -> paid to VELO lockers\n`lp_reward` -> paid to LP token stakers\n`voter_rewards` -> paid to locked VELO votes"}, "doc.fsc_evm.evm_aave_borrows_table_doc": {"name": "evm_aave_borrows_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_borrows_table_doc", "block_contents": "Aave.ez_borrows contains transactions where users borrowed assets via the Aave protocol. In order to borrow assets, a user must first deposit their preferred asset and amount as collateral. Borrowers can choose either a stable or variable borrow rate. For more information, see column descriptions."}, "doc.fsc_evm.evm_aave_deposits_table_doc": {"name": "evm_aave_deposits_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_deposits_table_doc", "block_contents": "Aave.ez_deposits contains transactions where users deposited into the Aave protocol. A user deposits their preferred asset and amount. After depositing, users earn passive income based on the market borrowing demand. Additionally, depositing allows users to borrow by using their deposited assets as a collateral. Any interest earned by depositing funds helps offset the interest rate accumulated by borrowing."}, "doc.fsc_evm.evm_aave_flashloans_table_doc": {"name": "evm_aave_flashloans_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_flashloans_table_doc", "block_contents": "Aave.ez_flashloans contains flash loan transactions where a borrower executes an\nundercollateralised, one-block liquidity loan. Flash loans are a feature designed for developers, due to the technical knowledge required to execute one. Flash Loans allow you to borrow any available amount of assets without providing any collateral, as long as the liquidity is returned to the protocol within one block transaction."}, "doc.fsc_evm.evm_aave_liquidations_table_doc": {"name": "evm_aave_liquidations_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_liquidations_table_doc", "block_contents": "Aave.ez_liquidatons contains transactions in which a borrower's collateral asset is liquidated. Liquidations occur when a borrower's health factor goes below 1 due to their collateral value not properly covering their loan/debt value. This might happen when the collateral decreases in value or the borrowed debt increases in value against each other. This collateral vs loan value ratio is shown in the health factor. In a liquidation, up to 50% of a borrower's debt is repaid and that value + liquidation fee is taken from the collateral available, so after a liquidation the amount liquidated from one's debt is repaid."}, "doc.fsc_evm.evm_aave_market_stats_table_doc": {"name": "evm_aave_market_stats_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_market_stats_table_doc", "block_contents": "Aave.ez_market_stats details market statistics for Aave markets by block hour. These include reserves, token addresses, token prices, borrow and supply rates, the utilization rate, and total supplies of liquidity and debt tokens. For more information, see column descriptions."}, "doc.fsc_evm.evm_aave_proposals_table_doc": {"name": "evm_aave_proposals_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_proposals_table_doc", "block_contents": "Aave.ez_proposals contains transactions in which Aave improvement proposals are submitted for governance voting. AAVE and/or stkAAVE token holders receive governance powers. Proposal power gives access to creating and sustaining a proposal."}, "doc.fsc_evm.evm_aave_repayments_table_doc": {"name": "evm_aave_repayments_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_repayments_table_doc", "block_contents": "Aave.ez_repayments contains transactions in which a borrower repays their loan (debt). Loans are repaid in the same asset borrowed, plus accrued interest. Borrowers can also use their collateral to repay in version 2 of Aave Protocol. Borrowers can pay back their loan based on the USD price as they can borrow any of the available stable coins (USDC, DAI, USDT, etc.)."}, "doc.fsc_evm.evm_aave_votes_table_doc": {"name": "evm_aave_votes_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_votes_table_doc", "block_contents": "Aave.ez_votes contains Aave governance voting transactions. AAVE and/or stkAAVE token holders receive governance powers proportionally to the sum of their balance. Voting power is used to vote for or against existing proposals."}, "doc.fsc_evm.evm_aave_withdraws_table_doc": {"name": "evm_aave_withdraws_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_withdraws_table_doc", "block_contents": "Aave.ez_withdraws contains transactions in which a user withdraws liquidity from the Aave protocol. Users can use their \u201caTokens\" as liquidity without withdrawing. They need to make sure there is enough liquidity (not borrowed) in order to withdraw, if this is not the case, users need to wait for more liquidity from depositors or borrowers repaying."}, "doc.fsc_evm.evm_aave_borrow_rate_mode": {"name": "evm_aave_borrow_rate_mode", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_borrow_rate_mode", "block_contents": "The rate mode the user is swapping from. Stable: 1, Variable: 2. Borrowers can switch between the stable and variable rate at any time. Stable rates act as a fixed rate in the short-term, but can be re-balanced in the long-term in response to changes in market conditions. The variable rate is the rate based on the offer and demand in Aave. The stable rate, as its name indicates, will remain pretty stable and its the best option to plan how much interest you will have to pay. The variable rate will change over time and could be the optimal rate depending on market conditions."}, "doc.fsc_evm.evm_aave_borrow_rate_stable": {"name": "evm_aave_borrow_rate_stable", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_borrow_rate_stable", "block_contents": "The stable interest rate for borrowing assets."}, "doc.fsc_evm.evm_aave_borrow_rate_variable": {"name": "evm_aave_borrow_rate_variable", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_borrow_rate_variable", "block_contents": "The variable interest rate for borrowing assets."}, "doc.fsc_evm.evm_aave_collateral_aave_token": {"name": "evm_aave_collateral_aave_token", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_collateral_aave_token", "block_contents": "The Aave interest bearing token that's burned when a liquidation occurs."}, "doc.fsc_evm.evm_aave_collateral_asset": {"name": "evm_aave_collateral_asset", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_collateral_asset", "block_contents": "The asset provided as collateral, which can be liquidated."}, "doc.fsc_evm.evm_aave_data_provider": {"name": "evm_aave_data_provider", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_data_provider", "block_contents": "The Aave protocol data provider contract address."}, "doc.fsc_evm.evm_aave_debt_aave_token": {"name": "evm_aave_debt_aave_token", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_debt_aave_token", "block_contents": "The interest bearing Aave token representing the debt."}, "doc.fsc_evm.evm_aave_debt_asset": {"name": "evm_aave_debt_asset", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_debt_asset", "block_contents": "The debt asset, which the user borrowed."}, "doc.fsc_evm.evm_aave_debt_to_cover_amount": {"name": "evm_aave_debt_to_cover_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_debt_to_cover_amount", "block_contents": "The amount of debt the user must cover."}, "doc.fsc_evm.evm_aave_debt_to_cover_amount_usd": {"name": "evm_aave_debt_to_cover_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_debt_to_cover_amount_usd", "block_contents": "The amount of debt the user must cover, valued in USD."}, "doc.fsc_evm.evm_aave_depositor_address": {"name": "evm_aave_depositor_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_depositor_address", "block_contents": "The depositor's address."}, "doc.fsc_evm.evm_aave_end_voting_period": {"name": "evm_aave_end_voting_period", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_end_voting_period", "block_contents": "The block number in which the voting period ends."}, "doc.fsc_evm.evm_aave_flashloan_amount": {"name": "evm_aave_flashloan_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_flashloan_amount", "block_contents": "The amount of assets flash loaned."}, "doc.fsc_evm.evm_aave_flashloan_amount_usd": {"name": "evm_aave_flashloan_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_flashloan_amount_usd", "block_contents": "The value of the flash loan amount, in USD."}, "doc.fsc_evm.evm_aave_governance_contract": {"name": "evm_aave_governance_contract", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_governance_contract", "block_contents": "The governance contract address."}, "doc.fsc_evm.evm_aave_initiator_address": {"name": "evm_aave_initiator_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_initiator_address", "block_contents": "The address that initiated the flash loan."}, "doc.fsc_evm.evm_aave_issued_tokens": {"name": "evm_aave_issued_tokens", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_issued_tokens", "block_contents": "The amount of tokens that the user is depositing."}, "doc.fsc_evm.evm_aave_lending_pool_contract": {"name": "evm_aave_lending_pool_contract", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_lending_pool_contract", "block_contents": "The address of the lending pool. This changes based on the Aave version."}, "doc.fsc_evm.evm_aave_liquidated_amount": {"name": "evm_aave_liquidated_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_liquidated_amount", "block_contents": "The amount of asset liquidated."}, "doc.fsc_evm.evm_aave_liquidated_amount_usd": {"name": "evm_aave_liquidated_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_liquidated_amount_usd", "block_contents": "The value of the liquidated asset, in USD."}, "doc.fsc_evm.evm_aave_liquidator": {"name": "evm_aave_liquidator", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_liquidator", "block_contents": "The address that initiated the liquidation call."}, "doc.fsc_evm.evm_aave_market": {"name": "evm_aave_market", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_market", "block_contents": "The asset contract for the applicable Aave market."}, "doc.fsc_evm.evm_aave_payer": {"name": "evm_aave_payer", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_payer", "block_contents": "The address that initiated the repayment."}, "doc.fsc_evm.evm_aave_premium_amount": {"name": "evm_aave_premium_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_premium_amount", "block_contents": "The flash loan fee, currently 0.09%, changeable via the normal governance process."}, "doc.fsc_evm.evm_aave_premium_amount_usd": {"name": "evm_aave_premium_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_premium_amount_usd", "block_contents": "The flash loan fee, valued in USD."}, "doc.fsc_evm.evm_aave_proposal_id": {"name": "evm_aave_proposal_id", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_proposal_id", "block_contents": "The unique ID representing a proposal."}, "doc.fsc_evm.evm_aave_proposal_tx": {"name": "evm_aave_proposal_tx", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_proposal_tx", "block_contents": "The transaction confirming a proposal submission."}, "doc.fsc_evm.evm_aave_proposer": {"name": "evm_aave_proposer", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_proposer", "block_contents": "The user's address that submitted the proposal."}, "doc.fsc_evm.evm_aave_repayed_tokens": {"name": "evm_aave_repayed_tokens", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_repayed_tokens", "block_contents": "The amount of tokens repaid."}, "doc.fsc_evm.evm_aave_repayed_usd": {"name": "evm_aave_repayed_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_repayed_usd", "block_contents": "The value of repaid tokens, in USD."}, "doc.fsc_evm.evm_aave_stable_debt_token_address": {"name": "evm_aave_stable_debt_token_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_stable_debt_token_address", "block_contents": "Debt tokens are interest-accruing tokens that are minted and burned on borrow and repay, representing a debt to the protocol with a stable interest rate."}, "doc.fsc_evm.evm_aave_start_voting_period": {"name": "evm_aave_start_voting_period", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_start_voting_period", "block_contents": "The block number in which the voting period begins."}, "doc.fsc_evm.evm_aave_status": {"name": "evm_aave_status", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_status", "block_contents": "The proposal's status."}, "doc.fsc_evm.evm_aave_supplied_usd": {"name": "evm_aave_supplied_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_supplied_usd", "block_contents": "The value of the asset in USD that the user is depositing."}, "doc.fsc_evm.evm_aave_supply_rate": {"name": "evm_aave_supply_rate", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_supply_rate", "block_contents": "The interest rate for supplying assets to the protocol."}, "doc.fsc_evm.evm_aave_support": {"name": "evm_aave_support", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_support", "block_contents": "A value indicating their vote (For: true, Against: false)."}, "doc.fsc_evm.evm_aave_target_address": {"name": "evm_aave_target_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_target_address", "block_contents": "The address receiving the flash loan."}, "doc.fsc_evm.evm_aave_targets": {"name": "evm_aave_targets", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_targets", "block_contents": "List of the targeted addresses by proposal transactions."}, "doc.fsc_evm.evm_aave_token": {"name": "evm_aave_token", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_token", "block_contents": "The Aave interest bearing token contract."}, "doc.fsc_evm.evm_aave_total_liquidity_token": {"name": "evm_aave_total_liquidity_token", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_total_liquidity_token", "block_contents": "The total supply of liquidity tokens."}, "doc.fsc_evm.evm_aave_total_liquidity_usd": {"name": "evm_aave_total_liquidity_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_total_liquidity_usd", "block_contents": "The total value of liquidity tokens, in USD."}, "doc.fsc_evm.evm_aave_total_stable_debt_token": {"name": "evm_aave_total_stable_debt_token", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_total_stable_debt_token", "block_contents": "The total supply of debt tokens, representing a debt to the protocol with a stable interest rate."}, "doc.fsc_evm.evm_aave_total_stable_debt_usd": {"name": "evm_aave_total_stable_debt_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_total_stable_debt_usd", "block_contents": "The total USD value of debt tokens, representing a debt to the protocol with a stable interest rate."}, "doc.fsc_evm.evm_aave_total_variable_debt_token": {"name": "evm_aave_total_variable_debt_token", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_total_variable_debt_token", "block_contents": "The total supply of debt tokens, representing a debt to the protocol with a variable interest rate."}, "doc.fsc_evm.evm_aave_total_variable_debt_usd": {"name": "evm_aave_total_variable_debt_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_total_variable_debt_usd", "block_contents": "The total USD value of debt tokens, representing a debt to the protocol with a variable interest rate."}, "doc.fsc_evm.evm_aave_utilization_rate": {"name": "evm_aave_utilization_rate", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_utilization_rate", "block_contents": "The percentage of assets loaned out."}, "doc.fsc_evm.evm_aave_variable_debt_token_address": {"name": "evm_aave_variable_debt_token_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_variable_debt_token_address", "block_contents": "Debt tokens are interest-accruing tokens that are minted and burned on borrow and repay, representing a debt to the protocol with a variable interest rate."}, "doc.fsc_evm.evm_aave_version": {"name": "evm_aave_version", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_version", "block_contents": "The contract version of Aave. Example: Aave AMM, Aave v1, Aave v2"}, "doc.fsc_evm.evm_aave_voter": {"name": "evm_aave_voter", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_voter", "block_contents": "The voter's address."}, "doc.fsc_evm.evm_aave_voting_power": {"name": "evm_aave_voting_power", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_voting_power", "block_contents": "The voter's voting power proportional to the sum of their balance of AAVE and/or stkAAVE."}, "doc.fsc_evm.evm_aave_withdrawn_tokens": {"name": "evm_aave_withdrawn_tokens", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_withdrawn_tokens", "block_contents": "The amount of tokens withdrawn."}, "doc.fsc_evm.evm_aave_withdrawn_usd": {"name": "evm_aave_withdrawn_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_aave_withdrawn_usd", "block_contents": "The value of withdrawn tokens, in USD."}, "doc.fsc_evm.evm_stkaave_rate_supply": {"name": "evm_stkaave_rate_supply", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_stkaave_rate_supply", "block_contents": "The stkAAVE rate for supplying assets to the protocol."}, "doc.fsc_evm.evm_stkaave_rate_variable_borrow": {"name": "evm_stkaave_rate_variable_borrow", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_stkaave_rate_variable_borrow", "block_contents": "The stkAAVE variable rate for borrowing assets."}, "doc.fsc_evm.evm_borrow_amount_usd": {"name": "evm_borrow_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_borrow_amount_usd", "block_contents": "The meaning depends on the action:\nBorrow: The amount of the asset in USD that the user is borrowing or\nRepay: The amount of the asset in USD that the user is repaying\nAdd collateral: The amount of collateral in USD that the user is depositing\nRemove collateral: The amount of collateral in USD that the user is withdrawing"}, "doc.fsc_evm.evm_borrow_amount": {"name": "evm_borrow_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/protocols/aave.md", "original_file_path": "models/doc_descriptions/protocols/aave.md", "unique_id": "doc.fsc_evm.evm_borrow_amount", "block_contents": "The meaning depends on the action:\nBorrow: The amount of the asset that the user is borrowing or\nRepay: The amount of the asset that the user is repaying\nAdd collateral: The amount of collateral that the user is depositing\nRemove collateral: The amount of collateral that the user is withdrawing"}, "doc.fsc_evm.ez_balances_erc20_daily_table_doc": {"name": "ez_balances_erc20_daily_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "original_file_path": "models/doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_daily_table_doc", "block_contents": "## What\n\nThis table provides daily ERC20 token balance snapshots for verified token contracts by making direct `balanceOf` contract calls at the end of each day. **Important**: This table only includes a balance record for a given address and token on days when that address had transfer activity for that token. Balances are not rolled forward for every address-token pair every day. This means if an address holds a token but has no transfer activity on a given day, no balance record will be created for that day. This provides an efficient way to track token holdings across all verified ERC20 tokens with decimal adjustments and USD valuations where available. Historical ERC20 balances data available, starting from `2025-06-10`.\n\n## Key Use Cases\n\n- Daily portfolio tracking and balance monitoring for ERC20 tokens\n- Historical balance analysis and trend identification\n- Token holder distribution analysis at daily granularity\n- Wallet balance snapshots for reporting and analytics\n- Cross-token balance comparisons and concentration analysis\n- Token supply distribution monitoring over time\n- Daily balance-based yield and return calculations\n\n## Important Relationships\n\n- **Join with fact_blocks**: Use `block_number` for block metadata and timestamps\n- **Join with dim_labels**: Use `address` for entity identification and categorization\n- **Join with dim_contracts**: Use `contract_address` for token contract details\n- **Join with ez_prices_hourly**: USD valuations already included but can be refreshed\n- **Join with ez_balances_native_daily**: Compare with native token daily balances\n- **Join with ez_token_transfers**: Compare daily balances with transfer activity\n\n## Commonly-used Fields\n\n- `address`: The account address holding the token balance\n- `contract_address`: The ERC20 token contract address\n- `symbol`: Token symbol (USDC, WETH, etc.)\n- `balance`: Token balance at end of day, decimal adjusted to standard units\n- `balance_usd`: USD value of the token balance at end of day\n- `balance_raw`: Raw balance in smallest token unit (wei equivalent)\n- `balance_precise`: Precise decimal-adjusted balance as string\n- `decimals`: Number of decimal places for the token\n- `block_date`: The date for which this balance snapshot was taken\n\n## Sample queries\n\n**Daily Token Holdings by Address**\n```sql\nSELECT \n block_date,\n address,\n symbol,\n balance,\n balance_usd,\n contract_address\nFROM .balances.ez_balances_erc20_daily\nWHERE address = LOWER('0x1234567890123456789012345678901234567890')\n AND block_date >= CURRENT_DATE - 30\n AND balance > 0\nORDER BY block_date DESC, balance_usd DESC;\n```\n\n**Token Holder Count Trends**\n```sql\nSELECT \n block_date,\n symbol,\n contract_address,\n COUNT(DISTINCT address) AS holder_count,\n SUM(balance) AS total_supply_tracked,\n AVG(balance) AS avg_balance,\n MEDIAN(balance) AS median_balance\nFROM .balances.ez_balances_erc20_daily\nWHERE block_date >= CURRENT_DATE - 90\n AND balance > 0\n AND symbol IS NOT NULL\nGROUP BY 1, 2, 3\nORDER BY 1 DESC, holder_count DESC;\n```\n\n**Portfolio Value Evolution**\n```sql\n-- Track portfolio value changes over time for specific addresses\nSELECT \n block_date,\n address,\n COUNT(DISTINCT contract_address) AS token_count,\n SUM(balance_usd) AS total_portfolio_usd,\n STRING_AGG(\n CASE WHEN balance_usd > 100 \n THEN symbol || ': $' || ROUND(balance_usd, 2) \n END, ', '\n ) AS major_holdings\nFROM .balances.ez_balances_erc20_daily\nWHERE address IN (\n SELECT DISTINCT address \n FROM .balances.ez_balances_erc20_daily \n WHERE balance_usd > 10000\n LIMIT 100\n)\n AND block_date >= CURRENT_DATE - 30\n AND balance > 0\nGROUP BY 1, 2\nHAVING total_portfolio_usd > 1000\nORDER BY 1 DESC, total_portfolio_usd DESC;\n```\n\n**Token Distribution Analysis**\n```sql\n-- Analyze token concentration and distribution patterns\nSELECT \n symbol,\n contract_address,\n block_date,\n COUNT(DISTINCT address) AS total_holders,\n COUNT(DISTINCT CASE WHEN balance >= 1000 THEN address END) AS holders_1k_plus,\n COUNT(DISTINCT CASE WHEN balance >= 10000 THEN address END) AS holders_10k_plus,\n MAX(balance) AS max_balance,\n PERCENTILE_CONT(0.95) WITHIN GROUP (ORDER BY balance) AS p95_balance,\n PERCENTILE_CONT(0.50) WITHIN GROUP (ORDER BY balance) AS median_balance\nFROM .balances.ez_balances_erc20_daily\nWHERE block_date = CURRENT_DATE - 1\n AND balance > 0\n AND symbol IS NOT NULL\nGROUP BY 1, 2, 3\nHAVING total_holders >= 100\nORDER BY total_holders DESC\nLIMIT 50;\n```\n\n**Daily Balance Changes**\n```sql\n-- Compare daily balances to identify significant changes\nWITH daily_changes AS (\n SELECT \n address,\n contract_address,\n symbol,\n block_date,\n balance,\n balance_usd,\n LAG(balance) OVER (\n PARTITION BY address, contract_address \n ORDER BY block_date\n ) AS prev_balance,\n LAG(balance_usd) OVER (\n PARTITION BY address, contract_address \n ORDER BY block_date\n ) AS prev_balance_usd\n FROM .balances.ez_balances_erc20_daily\n WHERE block_date >= CURRENT_DATE - 7\n AND balance > 0\n)\nSELECT \n block_date,\n address,\n symbol,\n balance,\n prev_balance,\n balance - prev_balance AS balance_change,\n balance_usd - prev_balance_usd AS balance_change_usd,\n CASE \n WHEN prev_balance > 0 \n THEN ((balance - prev_balance) / prev_balance) * 100 \n ELSE NULL \n END AS pct_change\nFROM daily_changes\nWHERE ABS(balance_change_usd) > 1000\n AND prev_balance IS NOT NULL\nORDER BY ABS(balance_change_usd) DESC\nLIMIT 100;\n```"}, "doc.fsc_evm.ez_balances_erc20_daily_block_date": {"name": "ez_balances_erc20_daily_block_date", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "original_file_path": "models/doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_daily_block_date", "block_contents": "The date for which this balance snapshot represents the end-of-day token balance.\n\nExample: '2025-07-04'"}, "doc.fsc_evm.ez_balances_erc20_daily_address": {"name": "ez_balances_erc20_daily_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "original_file_path": "models/doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_daily_address", "block_contents": "The account address whose token balance is recorded in this daily snapshot.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "doc.fsc_evm.ez_balances_erc20_daily_contract_address": {"name": "ez_balances_erc20_daily_contract_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "original_file_path": "models/doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_daily_contract_address", "block_contents": "The ERC20 token contract address for which the balance is recorded.\n\nExample: '0xa0b86a33e6eb88b4d81b15e4e60c8a5b776e3b7a'"}, "doc.fsc_evm.ez_balances_erc20_daily_decimals": {"name": "ez_balances_erc20_daily_decimals", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "original_file_path": "models/doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_daily_decimals", "block_contents": "Number of decimal places for the token, used for proper decimal adjustment in balance calculations.\n\nExample: 6"}, "doc.fsc_evm.ez_balances_erc20_daily_symbol": {"name": "ez_balances_erc20_daily_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "original_file_path": "models/doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_daily_symbol", "block_contents": "The token symbol for the ERC20 token.\n\nExample: 'USDC'"}, "doc.fsc_evm.ez_balances_erc20_daily_balance_hex": {"name": "ez_balances_erc20_daily_balance_hex", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "original_file_path": "models/doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_daily_balance_hex", "block_contents": "Hexadecimal representation of the token balance as returned by the balanceOf contract call.\n\nExample: '0x3b9aca00'"}, "doc.fsc_evm.ez_balances_erc20_daily_balance_raw": {"name": "ez_balances_erc20_daily_balance_raw", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "original_file_path": "models/doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_daily_balance_raw", "block_contents": "Token balance in the smallest unit (wei equivalent) without decimal adjustment, as returned by the contract.\n\nExample: 1000000000"}, "doc.fsc_evm.ez_balances_erc20_daily_balance_precise": {"name": "ez_balances_erc20_daily_balance_precise", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "original_file_path": "models/doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_daily_balance_precise", "block_contents": "Token balance with proper decimal adjustment, returned as a string to preserve precision.\n\nExample: '1000.000000'"}, "doc.fsc_evm.ez_balances_erc20_daily_balance": {"name": "ez_balances_erc20_daily_balance", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "original_file_path": "models/doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_daily_balance", "block_contents": "Token balance with decimal adjustment converted to a float for easier mathematical operations.\n\nExample: 1000.0"}, "doc.fsc_evm.ez_balances_erc20_daily_balance_usd": {"name": "ez_balances_erc20_daily_balance_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "original_file_path": "models/doc_descriptions/balances/erc20/ez_balances_erc20_daily.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_daily_balance_usd", "block_contents": "USD value of the token balance at the end of the day, calculated using hourly price data.\n\nExample: 1000.50"}, "doc.fsc_evm.ez_balances_native_daily_table_doc": {"name": "ez_balances_native_daily_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/native/ez_balances_native_daily.md", "original_file_path": "models/doc_descriptions/balances/native/ez_balances_native_daily.md", "unique_id": "doc.fsc_evm.ez_balances_native_daily_table_doc", "block_contents": "## What\n\nThis table provides daily native asset balance snapshots (ETH, AVAX, BNB, etc.) by making direct `eth_getBalance` RPC calls at the end of each day. **Important**: This table only includes a balance record for a given address on days when that address had native asset activity. Balances are not rolled forward for every address every day. This means if an address holds native assets but has no activity on a given day, no balance record will be created for that day. This provides an efficient way to track native asset holdings with decimal adjustments and USD valuations where available. Historical native balances data available, starting from `2025-06-10`.\n\n## Key Use Cases\n\n- Daily portfolio tracking and native asset balance monitoring\n- Historical native asset balance analysis and trend identification\n- Whale tracking and large holder distribution analysis\n- Daily balance snapshots for reporting and analytics\n- Native asset concentration analysis across addresses\n- Daily balance-based yield and return calculations for native assets\n- End-of-day balance reconciliation and accounting\n\n## Important Relationships\n\n- **Join with fact_blocks**: Use `block_number` for block metadata and timestamps\n- **Join with dim_labels**: Use `address` for entity identification and categorization\n- **Join with ez_prices_hourly**: USD valuations already included but can be refreshed\n- **Join with ez_balances_erc20_daily**: Compare with ERC20 token daily balances\n- **Join with ez_native_transfers**: Compare daily balances with transfer activity\n- **Join with core__fact_traces**: Analyze native asset movement patterns\n\n## Commonly-used Fields\n\n- `address`: The account address holding the native asset balance\n- `balance`: Native asset balance at end of day, decimal adjusted to standard units\n- `balance_usd`: USD value of the native asset balance at end of day\n- `balance_raw`: Raw balance in smallest unit (Wei) without decimal adjustment\n- `balance_precise`: Precise decimal-adjusted balance as string\n- `balance_hex`: Hexadecimal balance as returned by eth_getBalance\n- `decimals`: Number of decimal places (always 18 for native assets)\n- `block_date`: The date for which this balance snapshot was taken\n\n## Sample queries\n\n**Daily Native Asset Holdings by Address**\n```sql\nSELECT \n block_date,\n address,\n balance,\n balance_usd,\n LAG(balance) OVER (\n PARTITION BY address \n ORDER BY block_date\n ) AS prev_balance,\n balance - LAG(balance) OVER (\n PARTITION BY address \n ORDER BY block_date\n ) AS daily_change\nFROM .balances.ez_balances_native_daily\nWHERE address = LOWER('0x1234567890123456789012345678901234567890')\n AND block_date >= CURRENT_DATE - 30\n AND balance > 0\nORDER BY block_date DESC;\n```\n\n**Native Asset Holder Distribution Trends**\n```sql\nSELECT \n block_date,\n COUNT(DISTINCT address) AS total_holders,\n COUNT(DISTINCT CASE WHEN balance >= 1 THEN address END) AS holders_1_plus,\n COUNT(DISTINCT CASE WHEN balance >= 10 THEN address END) AS holders_10_plus,\n COUNT(DISTINCT CASE WHEN balance >= 100 THEN address END) AS holders_100_plus,\n COUNT(DISTINCT CASE WHEN balance >= 1000 THEN address END) AS holders_1000_plus,\n SUM(balance) AS total_native_tracked,\n AVG(balance) AS avg_balance,\n MEDIAN(balance) AS median_balance,\n MAX(balance) AS max_balance\nFROM .balances.ez_balances_native_daily\nWHERE block_date >= CURRENT_DATE - 90\n AND balance > 0\nGROUP BY 1\nORDER BY 1 DESC;\n```\n\n**Whale Activity Monitoring**\n```sql\n-- Track large native asset holders and their balance changes\nWITH whale_balances AS (\n SELECT \n address,\n block_date,\n balance,\n balance_usd,\n LAG(balance) OVER (\n PARTITION BY address \n ORDER BY block_date\n ) AS prev_balance,\n LAG(balance_usd) OVER (\n PARTITION BY address \n ORDER BY block_date\n ) AS prev_balance_usd\n FROM .balances.ez_balances_native_daily\n WHERE balance >= 1000 -- Focus on large holders\n AND block_date >= CURRENT_DATE - 7\n),\nwhale_changes AS (\n SELECT \n *,\n balance - prev_balance AS balance_change,\n balance_usd - prev_balance_usd AS balance_change_usd,\n CASE \n WHEN prev_balance > 0 \n THEN ((balance - prev_balance) / prev_balance) * 100 \n ELSE NULL \n END AS pct_change\n FROM whale_balances\n WHERE prev_balance IS NOT NULL\n)\nSELECT \n block_date,\n address,\n balance,\n balance_change,\n balance_change_usd,\n pct_change,\n CASE \n WHEN balance_change > 100 THEN 'Large Increase'\n WHEN balance_change > 10 THEN 'Moderate Increase'\n WHEN balance_change < -100 THEN 'Large Decrease'\n WHEN balance_change < -10 THEN 'Moderate Decrease'\n ELSE 'Stable'\n END AS change_category\nFROM whale_changes\nWHERE ABS(balance_change) > 5 -- Only show meaningful changes\nORDER BY ABS(balance_change_usd) DESC\nLIMIT 100;\n```\n\n**Daily Balance Distribution Analysis**\n```sql\n-- Analyze the distribution of native asset balances\nSELECT \n block_date,\n CASE \n WHEN balance < 0.001 THEN 'Dust (<0.001)'\n WHEN balance < 0.01 THEN 'Very Small (0.001-0.01)'\n WHEN balance < 0.1 THEN 'Small (0.01-0.1)'\n WHEN balance < 1 THEN 'Medium (0.1-1)'\n WHEN balance < 10 THEN 'Large (1-10)'\n WHEN balance < 100 THEN 'Very Large (10-100)'\n WHEN balance < 1000 THEN 'Whale (100-1000)'\n ELSE 'Super Whale (1000+)'\n END AS balance_category,\n COUNT(DISTINCT address) AS address_count,\n SUM(balance) AS total_balance,\n SUM(balance_usd) AS total_balance_usd,\n AVG(balance) AS avg_balance,\n PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY balance) AS median_balance\nFROM .balances.ez_balances_native_daily\nWHERE block_date = CURRENT_DATE - 1\n AND balance > 0\nGROUP BY 1, 2\nORDER BY 1 DESC, \n CASE balance_category\n WHEN 'Dust (<0.001)' THEN 1\n WHEN 'Very Small (0.001-0.01)' THEN 2\n WHEN 'Small (0.01-0.1)' THEN 3\n WHEN 'Medium (0.1-1)' THEN 4\n WHEN 'Large (1-10)' THEN 5\n WHEN 'Very Large (10-100)' THEN 6\n WHEN 'Whale (100-1000)' THEN 7\n WHEN 'Super Whale (1000+)' THEN 8\n END;\n```\n\n**Portfolio Value Evolution**\n```sql\n-- Track total portfolio value changes for top holders\nSELECT \n block_date,\n COUNT(DISTINCT address) AS tracked_addresses,\n SUM(balance_usd) AS total_portfolio_value,\n AVG(balance_usd) AS avg_portfolio_value,\n SUM(balance) AS total_native_balance,\n LAG(SUM(balance_usd)) OVER (ORDER BY block_date) AS prev_total_value,\n (SUM(balance_usd) - LAG(SUM(balance_usd)) OVER (ORDER BY block_date)) AS daily_value_change,\n CASE \n WHEN LAG(SUM(balance_usd)) OVER (ORDER BY block_date) > 0\n THEN ((SUM(balance_usd) - LAG(SUM(balance_usd)) OVER (ORDER BY block_date)) / LAG(SUM(balance_usd)) OVER (ORDER BY block_date)) * 100\n ELSE NULL\n END AS daily_pct_change\nFROM .balances.ez_balances_native_daily\nWHERE block_date >= CURRENT_DATE - 30\n AND balance_usd >= 10000 -- Focus on significant holders\nGROUP BY 1\nORDER BY 1 DESC;\n```"}, "doc.fsc_evm.ez_balances_native_daily_block_date": {"name": "ez_balances_native_daily_block_date", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/native/ez_balances_native_daily.md", "original_file_path": "models/doc_descriptions/balances/native/ez_balances_native_daily.md", "unique_id": "doc.fsc_evm.ez_balances_native_daily_block_date", "block_contents": "The date for which this balance snapshot represents the end-of-day native asset balance.\n\nExample: '2023-12-15'"}, "doc.fsc_evm.ez_balances_native_daily_address": {"name": "ez_balances_native_daily_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/native/ez_balances_native_daily.md", "original_file_path": "models/doc_descriptions/balances/native/ez_balances_native_daily.md", "unique_id": "doc.fsc_evm.ez_balances_native_daily_address", "block_contents": "The account address whose native asset balance is recorded in this daily snapshot.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "doc.fsc_evm.ez_balances_native_daily_decimals": {"name": "ez_balances_native_daily_decimals", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/native/ez_balances_native_daily.md", "original_file_path": "models/doc_descriptions/balances/native/ez_balances_native_daily.md", "unique_id": "doc.fsc_evm.ez_balances_native_daily_decimals", "block_contents": "Number of decimal places for the native asset. Typically 18 for native EVM assets (ETH, AVAX, BNB, etc.).\n\nExample: 18"}, "doc.fsc_evm.ez_balances_native_daily_balance_hex": {"name": "ez_balances_native_daily_balance_hex", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/native/ez_balances_native_daily.md", "original_file_path": "models/doc_descriptions/balances/native/ez_balances_native_daily.md", "unique_id": "doc.fsc_evm.ez_balances_native_daily_balance_hex", "block_contents": "Hexadecimal representation of the native asset balance as returned by the eth_getBalance RPC call.\n\nExample: '0x3b9aca00'"}, "doc.fsc_evm.ez_balances_native_daily_balance_raw": {"name": "ez_balances_native_daily_balance_raw", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/native/ez_balances_native_daily.md", "original_file_path": "models/doc_descriptions/balances/native/ez_balances_native_daily.md", "unique_id": "doc.fsc_evm.ez_balances_native_daily_balance_raw", "block_contents": "Native asset balance in the smallest unit (Wei) without decimal adjustment, as returned by eth_getBalance.\n\nExample: 1000000000000000000"}, "doc.fsc_evm.ez_balances_native_daily_balance_precise": {"name": "ez_balances_native_daily_balance_precise", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/native/ez_balances_native_daily.md", "original_file_path": "models/doc_descriptions/balances/native/ez_balances_native_daily.md", "unique_id": "doc.fsc_evm.ez_balances_native_daily_balance_precise", "block_contents": "Native asset balance with proper decimal adjustment, returned as a string to preserve precision.\n\nExample: '1.000000000000000000'"}, "doc.fsc_evm.ez_balances_native_daily_balance": {"name": "ez_balances_native_daily_balance", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/native/ez_balances_native_daily.md", "original_file_path": "models/doc_descriptions/balances/native/ez_balances_native_daily.md", "unique_id": "doc.fsc_evm.ez_balances_native_daily_balance", "block_contents": "Native asset balance with decimal adjustment converted to a float for easier mathematical operations.\n\nExample: 1.0"}, "doc.fsc_evm.ez_balances_native_daily_balance_usd": {"name": "ez_balances_native_daily_balance_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/native/ez_balances_native_daily.md", "original_file_path": "models/doc_descriptions/balances/native/ez_balances_native_daily.md", "unique_id": "doc.fsc_evm.ez_balances_native_daily_balance_usd", "block_contents": "USD value of the native asset balance at the end of the day, calculated using hourly price data.\n\nExample: 2500.75"}, "doc.fsc_evm.ez_balances_erc20_table_doc": {"name": "ez_balances_erc20_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_table_doc", "block_contents": "## What\n\nThis table tracks ERC20 token balance changes at the transaction level by capturing pre- and post-transaction states from contract storage slots. It uses state tracer data to show exactly how each address's token balance changed during transaction execution for verified ERC20 tokens, including decimal adjustments and USD valuations, where available, for comprehensive token balance analysis. This data set includes both successful and failed transactions, as state may change regardless.\n\n## Key Use Cases\n\n- Tracking ERC20 token balance changes at transaction granularity\n- Analyzing token balance impacts of DeFi interactions and trades\n- Monitoring large token balance changes and whale activity\n- Calculating precise token balance evolution over time\n- Identifying addresses with significant token holdings\n- Debugging smart contract effects on token balances\n- Analyzing token distribution and concentration metrics\n\n## Important Relationships\n\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Join with fact_blocks**: Use `block_number` for block metadata\n- **Join with dim_labels**: Use `address` for entity identification\n- **Join with dim_contracts**: Use `contract_address` for token contract details\n- **Join with ez_token_transfers**: Compare balance changes to transfer events\n- **Join with ez_prices_hourly**: USD valuations already included but can be refreshed\n- **Join with ez_balances_native**: Compare with native token balance changes\n\n## Commonly-used Fields\n\n- `address`: The account whose token balance changed\n- `contract_address`: The ERC20 token contract address\n- `symbol`: Token symbol (USDC, WETH, etc.)\n- `pre_balance`: Token balance before the transaction\n- `post_balance`: Token balance after the transaction\n- `net_balance`: The change in token balance (post - pre)\n- `pre_balance_usd` / `post_balance_usd`: USD values at time of transaction\n- `decimals`: Number of decimal places for the token\n- `tx_hash`: Transaction that caused the balance change\n\n## Sample queries\n\n**Daily ERC20 Token Balance Changes**\n```sql\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n symbol,\n COUNT(*) AS balance_changes,\n COUNT(DISTINCT address) AS unique_holders,\n SUM(ABS(net_balance)) AS total_balance_moved,\n SUM(net_balance) AS net_balance_change\nFROM .balances.ez_balances_erc20\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND net_balance != 0\n AND symbol IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, total_balance_moved DESC;\n```\n\n**Token Holder Balance Evolution**\n```sql\n-- Track how a specific address's token balances changed over time\nSELECT \n block_timestamp,\n tx_hash,\n contract_address,\n symbol,\n pre_balance,\n post_balance,\n net_balance,\n pre_balance_usd,\n post_balance_usd\nFROM .balances.ez_balances_erc20\nWHERE address = LOWER('0x1234567890123456789012345678901234567890')\n AND block_timestamp >= CURRENT_DATE - 30\n AND net_balance != 0\nORDER BY block_timestamp DESC;\n```\n\n**DeFi Protocol Token Impact Analysis**\n```sql\n-- Analyze how DeFi interactions affect token balances\nSELECT \n t.to_address AS protocol_address,\n b.symbol,\n COUNT(*) AS balance_changes,\n COUNT(DISTINCT b.address) AS unique_users,\n SUM(CASE WHEN b.net_balance > 0 THEN b.net_balance ELSE 0 END) AS total_gains,\n SUM(CASE WHEN b.net_balance < 0 THEN ABS(b.net_balance) ELSE 0 END) AS total_losses\nFROM .balances.ez_balances_erc20 b\nJOIN .core.fact_transactions t USING (tx_hash)\nWHERE b.net_balance != 0\n AND t.to_address IN (SELECT address FROM dim_contracts)\n AND b.block_timestamp >= CURRENT_DATE - 7\n AND b.symbol IS NOT NULL\nGROUP BY 1, 2\nHAVING COUNT(*) > 10\nORDER BY total_gains + total_losses DESC\nLIMIT 50;\n```\n\n**Token Balance Distribution by Token**\n```sql\n-- Analyze current token holders and their balances\nSELECT \n contract_address,\n symbol,\n COUNT(DISTINCT address) AS holder_count,\n SUM(post_balance) AS total_supply_tracked,\n AVG(post_balance) AS avg_balance,\n MAX(post_balance) AS max_balance\nFROM .balances.ez_balances_erc20\nWHERE block_timestamp >= CURRENT_DATE - 1\n AND post_balance > 0\n AND symbol IS NOT NULL\nGROUP BY 1, 2\nORDER BY holder_count DESC\nLIMIT 50;\n```"}, "doc.fsc_evm.ez_balances_erc20_contract_address": {"name": "ez_balances_erc20_contract_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_contract_address", "block_contents": "The ERC20 token contract address whose balance changed in this transaction.\n\nExample: '0xa0b86a33e6eb88b4d81b15e4e60c8a5b776e3b7a'"}, "doc.fsc_evm.ez_balances_erc20_symbol": {"name": "ez_balances_erc20_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_symbol", "block_contents": "The token symbol for the ERC20 token.\n\nExample: 'USDC'"}, "doc.fsc_evm.ez_balances_erc20_address": {"name": "ez_balances_erc20_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_address", "block_contents": "The account address whose token balance changed in this transaction.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "doc.fsc_evm.ez_balances_erc20_slot_number": {"name": "ez_balances_erc20_slot_number", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_slot_number", "block_contents": "The storage slot number used to track balances for this ERC20 token contract.\n\nExample: 0"}, "doc.fsc_evm.ez_balances_erc20_decimals": {"name": "ez_balances_erc20_decimals", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_decimals", "block_contents": "Number of decimal places for the token, used for proper decimal adjustment.\n\nExample: 6"}, "doc.fsc_evm.ez_balances_erc20_tx_succeeded": {"name": "ez_balances_erc20_tx_succeeded", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_tx_succeeded", "block_contents": "Boolean indicator of whether the transaction that caused this balance change was successful.\n\nExample: true"}, "doc.fsc_evm.ez_balances_erc20_pre_balance": {"name": "ez_balances_erc20_pre_balance", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_pre_balance", "block_contents": "Token balance before the transaction execution, decimal adjusted to standard units.\n\nExample: 1000.50"}, "doc.fsc_evm.ez_balances_erc20_post_balance": {"name": "ez_balances_erc20_post_balance", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_post_balance", "block_contents": "Token balance after the transaction execution, decimal adjusted to standard units.\n\nExample: 750.25"}, "doc.fsc_evm.ez_balances_erc20_net_balance": {"name": "ez_balances_erc20_net_balance", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_net_balance", "block_contents": "The change in token balance (post_balance - pre_balance).\n\nExample: -250.25"}, "doc.fsc_evm.ez_balances_erc20_pre_balance_usd": {"name": "ez_balances_erc20_pre_balance_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_pre_balance_usd", "block_contents": "USD value of the pre-transaction token balance at the time of the transaction.\n\nExample: 1000.50"}, "doc.fsc_evm.ez_balances_erc20_post_balance_usd": {"name": "ez_balances_erc20_post_balance_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_post_balance_usd", "block_contents": "USD value of the post-transaction token balance at the time of the transaction.\n\nExample: 750.25"}, "doc.fsc_evm.ez_balances_erc20_pre_balance_precise": {"name": "ez_balances_erc20_pre_balance_precise", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_pre_balance_precise", "block_contents": "Token balance before transaction, decimal adjusted, returned as a string to preserve precision.\n\nExample: '1000.500000'"}, "doc.fsc_evm.ez_balances_erc20_post_balance_precise": {"name": "ez_balances_erc20_post_balance_precise", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_post_balance_precise", "block_contents": "Token balance after transaction, decimal adjusted, returned as a string to preserve precision.\n\nExample: '750.250000'"}, "doc.fsc_evm.ez_balances_erc20_pre_balance_raw": {"name": "ez_balances_erc20_pre_balance_raw", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_pre_balance_raw", "block_contents": "Token balance before transaction in smallest unit, no decimal adjustment.\n\nExample: 1000500000"}, "doc.fsc_evm.ez_balances_erc20_post_balance_raw": {"name": "ez_balances_erc20_post_balance_raw", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_post_balance_raw", "block_contents": "Token balance after transaction in smallest unit, no decimal adjustment.\n\nExample: 750250000"}, "doc.fsc_evm.ez_balances_erc20_net_balance_raw": {"name": "ez_balances_erc20_net_balance_raw", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_net_balance_raw", "block_contents": "The change in token balance in smallest unit.\n\nExample: -250250000"}, "doc.fsc_evm.ez_balances_erc20_pre_balance_hex": {"name": "ez_balances_erc20_pre_balance_hex", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_pre_balance_hex", "block_contents": "Hexadecimal representation of the pre-transaction balance as stored in the contract's storage slot.\n\nExample: '0x3b9aca00'"}, "doc.fsc_evm.ez_balances_erc20_post_balance_hex": {"name": "ez_balances_erc20_post_balance_hex", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_erc20.md", "unique_id": "doc.fsc_evm.ez_balances_erc20_post_balance_hex", "block_contents": "Hexadecimal representation of the post-transaction balance as stored in the contract's storage slot.\n\nExample: '0x2cb417800'"}, "doc.fsc_evm.ez_balances_native_table_doc": {"name": "ez_balances_native_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_native.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_native.md", "unique_id": "doc.fsc_evm.ez_balances_native_table_doc", "block_contents": "## What\n\nThis table tracks native asset balance changes (ETH, AVAX, BNB, etc.) at the transaction level by capturing pre- and post-transaction states. It uses state tracer data to show exactly how each address's native asset balance changed during transaction execution, including decimal adjustments and USD valuations, where available, for comprehensive balance analysis. This data set includes both successful and failed transactions, as state may change regardless.\n\n## Key Use Cases\n\n- Tracking native asset balance changes at transaction granularity\n- Analyzing balance impacts of smart contract interactions\n- Monitoring large balance changes and whale activity\n- Calculating precise balance evolution over time\n- Identifying addresses with significant native asset holdings\n- Debugging transaction effects on account balances\n\n## Important Relationships\n\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Join with fact_blocks**: Use `block_number` for block metadata\n- **Join with dim_labels**: Use `address` for entity identification\n- **Join with ez_native_transfers**: Compare balance changes to transfer amounts\n- **Join with ez_prices_hourly**: USD valuations already included but can be refreshed\n\n## Commonly-used Fields\n\n- `address`: The account whose balance changed\n- `pre_balance`: Native asset balance before the transaction\n- `post_balance`: Native asset balance after the transaction\n- `net_balance`: The change in balance (post - pre)\n- `pre_balance_usd` / `post_balance_usd`: USD values at time of transaction\n- `tx_hash`: Transaction that caused the balance change\n- `block_timestamp`: When the balance change occurred\n\n## Sample queries\n\n**Daily Native Asset Balance Changes**\n```sql\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n COUNT(*) AS balance_changes,\n COUNT(DISTINCT address) AS unique_addresses,\n SUM(ABS(net_balance)) AS total_balance_moved,\n SUM(CASE WHEN net_balance > 0 THEN net_balance ELSE 0 END) AS total_increases,\n SUM(CASE WHEN net_balance < 0 THEN ABS(net_balance) ELSE 0 END) AS total_decreases\nFROM .balances.ez_balances_native\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND net_balance != 0\nGROUP BY 1\nORDER BY 1 DESC;\n```\n\n**Address Balance Evolution**\n```sql\n-- Track how a specific address's balance changed over time\nSELECT \n block_timestamp,\n tx_hash,\n pre_balance,\n post_balance,\n net_balance,\n pre_balance_usd,\n post_balance_usd,\n SUM(net_balance) OVER (\n PARTITION BY address \n ORDER BY block_number, tx_position \n ROWS UNBOUNDED PRECEDING\n ) AS running_balance_change\nFROM .balances.ez_balances_native\nWHERE address = LOWER('0x1234567890123456789012345678901234567890')\n AND block_timestamp >= CURRENT_DATE - 30\nORDER BY block_timestamp DESC;\n```\n\n**Smart Contract Balance Impact Analysis**\n```sql\n-- Analyze how smart contract interactions affect user balances\nWITH contract_interactions AS (\n SELECT \n b.address,\n b.tx_hash,\n b.net_balance,\n b.block_timestamp,\n t.to_address AS contract_interacted\n FROM .balances.ez_balances_native b\n JOIN .core.fact_transactions t USING (tx_hash)\n WHERE b.net_balance != 0\n AND t.to_address IN (SELECT address FROM dim_contracts)\n AND b.block_timestamp >= CURRENT_DATE - 7\n)\nSELECT \n contract_interacted,\n dc.name AS contract_name,\n COUNT(*) AS balance_changes,\n COUNT(DISTINCT address) AS unique_users,\n SUM(CASE WHEN net_balance > 0 THEN net_balance ELSE 0 END) AS total_gains,\n SUM(CASE WHEN net_balance < 0 THEN ABS(net_balance) ELSE 0 END) AS total_losses,\n AVG(ABS(net_balance)) AS avg_balance_change\nFROM contract_interactions c\nLEFT JOIN .core.dim_contracts dc ON c.contract_interacted = dc.address\nGROUP BY 1, 2\nHAVING COUNT(*) > 10\nORDER BY total_gains + total_losses DESC\nLIMIT 50;\n```\n\n**Balance Change Distribution**\n```sql\n-- Analyze the distribution of balance changes by magnitude\nSELECT \n CASE \n WHEN ABS(net_balance) < 0.01 THEN 'Dust (<0.01)'\n WHEN ABS(net_balance) < 0.1 THEN 'Small (0.01-0.1)'\n WHEN ABS(net_balance) < 1 THEN 'Medium (0.1-1)'\n WHEN ABS(net_balance) < 10 THEN 'Large (1-10)'\n WHEN ABS(net_balance) < 100 THEN 'Very Large (10-100)'\n ELSE 'Whale (100+)'\n END AS balance_change_category,\n COUNT(*) AS change_count,\n COUNT(DISTINCT address) AS unique_addresses,\n SUM(ABS(net_balance)) AS total_volume,\n AVG(ABS(net_balance)) AS avg_magnitude\nFROM .balances.ez_balances_native\nWHERE block_timestamp >= CURRENT_DATE - 1\n AND net_balance != 0\nGROUP BY 1\nORDER BY \n CASE balance_change_category\n WHEN 'Dust (<0.01)' THEN 1\n WHEN 'Small (0.01-0.1)' THEN 2\n WHEN 'Medium (0.1-1)' THEN 3\n WHEN 'Large (1-10)' THEN 4\n WHEN 'Very Large (10-100)' THEN 5\n WHEN 'Whale (100+)' THEN 6\n END;\n```"}, "doc.fsc_evm.ez_balances_native_address": {"name": "ez_balances_native_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_native.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_native.md", "unique_id": "doc.fsc_evm.ez_balances_native_address", "block_contents": "The address whose native asset balance changed in this transaction.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "doc.fsc_evm.ez_balances_native_pre_balance": {"name": "ez_balances_native_pre_balance", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_native.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_native.md", "unique_id": "doc.fsc_evm.ez_balances_native_pre_balance", "block_contents": "Native asset balance before the transaction execution, decimal adjusted to standard units.\n\nExample: 15.75"}, "doc.fsc_evm.ez_balances_native_post_balance": {"name": "ez_balances_native_post_balance", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_native.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_native.md", "unique_id": "doc.fsc_evm.ez_balances_native_post_balance", "block_contents": "Native asset balance after the transaction execution, decimal adjusted to standard units.\n\nExample: 12.25"}, "doc.fsc_evm.ez_balances_native_net_balance": {"name": "ez_balances_native_net_balance", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_native.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_native.md", "unique_id": "doc.fsc_evm.ez_balances_native_net_balance", "block_contents": "The change in native asset balance (post_balance - pre_balance).\n\nExample: -3.5"}, "doc.fsc_evm.ez_balances_native_pre_balance_usd": {"name": "ez_balances_native_pre_balance_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_native.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_native.md", "unique_id": "doc.fsc_evm.ez_balances_native_pre_balance_usd", "block_contents": "USD value of the pre-transaction balance at the time of the transaction.\n\nExample: 39375.00"}, "doc.fsc_evm.ez_balances_native_post_balance_usd": {"name": "ez_balances_native_post_balance_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_native.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_native.md", "unique_id": "doc.fsc_evm.ez_balances_native_post_balance_usd", "block_contents": "USD value of the post-transaction balance at the time of the transaction.\n\nExample: 30625.00"}, "doc.fsc_evm.ez_balances_native_pre_balance_precise": {"name": "ez_balances_native_pre_balance_precise", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_native.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_native.md", "unique_id": "doc.fsc_evm.ez_balances_native_pre_balance_precise", "block_contents": "Native asset balance before transaction, decimal adjusted, returned as a string to preserve precision.\n\nExample: '15.750000000000000000'"}, "doc.fsc_evm.ez_balances_native_post_balance_precise": {"name": "ez_balances_native_post_balance_precise", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_native.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_native.md", "unique_id": "doc.fsc_evm.ez_balances_native_post_balance_precise", "block_contents": "Native asset balance after transaction, decimal adjusted, returned as a string to preserve precision.\n\nExample: '12.250000000000000000'"}, "doc.fsc_evm.ez_balances_native_pre_balance_raw": {"name": "ez_balances_native_pre_balance_raw", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_native.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_native.md", "unique_id": "doc.fsc_evm.ez_balances_native_pre_balance_raw", "block_contents": "Native asset balance before transaction in smallest unit (Wei), no decimal adjustment.\n\nExample: 15750000000000000000"}, "doc.fsc_evm.ez_balances_native_post_balance_raw": {"name": "ez_balances_native_post_balance_raw", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_native.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_native.md", "unique_id": "doc.fsc_evm.ez_balances_native_post_balance_raw", "block_contents": "Native asset balance after transaction in smallest unit (Wei), no decimal adjustment.\n\nExample: 12250000000000000000"}, "doc.fsc_evm.ez_balances_native_net_balance_raw": {"name": "ez_balances_native_net_balance_raw", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_native.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_native.md", "unique_id": "doc.fsc_evm.ez_balances_native_net_balance_raw", "block_contents": "The change in native asset balance in smallest unit (Wei).\n\nExample: -3500000000000000000"}, "doc.fsc_evm.ez_balances_native_pre_balance_hex": {"name": "ez_balances_native_pre_balance_hex", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_native.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_native.md", "unique_id": "doc.fsc_evm.ez_balances_native_pre_balance_hex", "block_contents": "Hexadecimal representation of the pre-transaction balance as returned by the blockchain RPC.\n\nExample: '0xda475abf0000000'"}, "doc.fsc_evm.ez_balances_native_post_balance_hex": {"name": "ez_balances_native_post_balance_hex", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_native.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_native.md", "unique_id": "doc.fsc_evm.ez_balances_native_post_balance_hex", "block_contents": "Hexadecimal representation of the post-transaction balance as returned by the blockchain RPC.\n\nExample: '0xaa87bee5380000'"}, "doc.fsc_evm.ez_balances_native_pre_nonce": {"name": "ez_balances_native_pre_nonce", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_native.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_native.md", "unique_id": "doc.fsc_evm.ez_balances_native_pre_nonce", "block_contents": "Account nonce value before the transaction execution.\n\nExample: 42"}, "doc.fsc_evm.ez_balances_native_post_nonce": {"name": "ez_balances_native_post_nonce", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_native.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_native.md", "unique_id": "doc.fsc_evm.ez_balances_native_post_nonce", "block_contents": "Account nonce value after the transaction execution. May be null.\n\nExample: 43"}, "doc.fsc_evm.ez_balances_native_decimals": {"name": "ez_balances_native_decimals", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/balances/state_tracer/ez_balances_native.md", "original_file_path": "models/doc_descriptions/balances/state_tracer/ez_balances_native.md", "unique_id": "doc.fsc_evm.ez_balances_native_decimals", "block_contents": "Number of decimal places for the native asset. Typically 18 for native assets.\n\nExample: 18"}, "doc.fsc_evm.ez_liquid_staking_deposits_table_doc": {"name": "ez_liquid_staking_deposits_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/ez_liquid_staking.md", "unique_id": "doc.fsc_evm.ez_liquid_staking_deposits_table_doc", "block_contents": "## What\n\nThis table provides comprehensive tracking of liquid staking deposits across major liquid staking derivative (LSD) protocols on Ethereum. It captures when users stake ETH and receive liquid staking tokens in return, enabling analysis of staking adoption, protocol market share, and capital flows into the liquid staking ecosystem.\n\n## Key Use Cases\n\n- Tracking liquid staking adoption and growth trends\n- Analyzing protocol market share and competitive dynamics\n- Understanding staker behavior and deposit patterns\n- Monitoring large deposits and whale activity\n- Calculating exchange rates between ETH and LSD tokens\n\n## Important Relationships\n\n- Links to `core.fact_event_logs` via `tx_hash` and `event_index`\n- Joins with `ez_liquid_staking_withdrawals` for full lifecycle tracking\n- References `core.dim_contracts` for protocol metadata\n- Connects to `price.ez_prices_hourly` for USD conversions\n\n## Commonly-used Fields\n\n- `staker`: Address performing the staking action\n- `platform`: Liquid staking protocol name\n- `eth_amount`: Amount of ETH staked\n- `token_amount`: LSD tokens received\n- `token_symbol`: Symbol of the LSD token (stETH, rETH, etc.)\n- `block_timestamp`: When the deposit occurred\n\n## Sample queries\n\n```sql\n-- Daily liquid staking deposits by protocol\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(DISTINCT tx_hash) AS deposit_txns,\n COUNT(DISTINCT staker) AS unique_stakers,\n SUM(eth_amount) AS eth_staked,\n SUM(eth_amount_usd) AS usd_staked,\n AVG(eth_amount) AS avg_stake_size\nFROM defi.ez_liquid_staking_deposits\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND eth_amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 6 DESC;\n\n-- Protocol market share analysis\nWITH protocol_totals AS (\n SELECT \n platform,\n SUM(eth_amount) AS total_eth_staked,\n COUNT(DISTINCT staker) AS unique_stakers,\n COUNT(*) AS total_deposits\n FROM defi.ez_liquid_staking_deposits\n WHERE block_timestamp >= CURRENT_DATE - 90\n AND eth_amount IS NOT NULL\n GROUP BY platform\n)\nSELECT \n platform,\n total_eth_staked,\n total_eth_staked * 100.0 / SUM(total_eth_staked) OVER () AS market_share_pct,\n unique_stakers,\n total_deposits,\n total_eth_staked / total_deposits AS avg_deposit_size\nFROM protocol_totals\nORDER BY total_eth_staked DESC;\n\n-- Staker behavior patterns\nWITH staker_activity AS (\n SELECT \n staker,\n COUNT(DISTINCT platform) AS protocols_used,\n COUNT(*) AS total_deposits,\n SUM(eth_amount) AS total_eth_staked,\n MIN(block_timestamp) AS first_stake,\n MAX(block_timestamp) AS last_stake,\n COUNT(DISTINCT DATE_TRUNC('month', block_timestamp)) AS active_months\n FROM defi.ez_liquid_staking_deposits\n WHERE eth_amount IS NOT NULL\n GROUP BY staker\n)\nSELECT \n CASE \n WHEN total_eth_staked < 1 THEN '< 1 ETH'\n WHEN total_eth_staked < 10 THEN '1-10 ETH'\n WHEN total_eth_staked < 32 THEN '10-32 ETH'\n WHEN total_eth_staked < 100 THEN '32-100 ETH'\n ELSE '100+ ETH'\n END AS staker_tier,\n COUNT(*) AS staker_count,\n AVG(total_deposits) AS avg_deposits_per_staker,\n AVG(protocols_used) AS avg_protocols_used,\n SUM(total_eth_staked) AS tier_total_eth\nFROM staker_activity\nGROUP BY staker_tier\nORDER BY MIN(total_eth_staked);\n\n-- Exchange rate analysis (token received per ETH)\nSELECT \n platform,\n token_symbol,\n DATE_TRUNC('day', block_timestamp) AS date,\n AVG(token_amount / NULLIF(eth_amount, 0)) AS avg_exchange_rate,\n MIN(token_amount / NULLIF(eth_amount, 0)) AS min_rate,\n MAX(token_amount / NULLIF(eth_amount, 0)) AS max_rate,\n COUNT(*) AS sample_size\nFROM defi.ez_liquid_staking_deposits\nWHERE eth_amount > 0 \n AND token_amount > 0\n AND block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1, 2, 3\nORDER BY 1, 3 DESC;\n\n-- Large deposits monitoring (whale activity)\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n staker,\n eth_amount,\n eth_amount_usd,\n token_symbol,\n token_amount,\n token_amount / NULLIF(eth_amount, 0) AS exchange_rate\nFROM defi.ez_liquid_staking_deposits\nWHERE eth_amount >= 100\n AND block_timestamp >= CURRENT_DATE - 7\nORDER BY eth_amount DESC;\n\n-- Weekly staking momentum\nWITH weekly_deposits AS (\n SELECT \n DATE_TRUNC('week', block_timestamp) AS week,\n platform,\n SUM(eth_amount) AS weekly_eth_staked,\n COUNT(DISTINCT staker) AS unique_stakers\n FROM defi.ez_liquid_staking_deposits\n WHERE block_timestamp >= CURRENT_DATE - 84\n AND eth_amount IS NOT NULL\n GROUP BY 1, 2\n)\nSELECT \n week,\n platform,\n weekly_eth_staked,\n LAG(weekly_eth_staked) OVER (PARTITION BY platform ORDER BY week) AS prev_week_eth,\n (weekly_eth_staked / NULLIF(LAG(weekly_eth_staked) OVER (PARTITION BY platform ORDER BY week), 0) - 1) * 100 AS week_over_week_pct,\n unique_stakers\nFROM weekly_deposits\nORDER BY week DESC, weekly_eth_staked DESC;\n```"}, "doc.fsc_evm.ez_liquid_staking_withdrawals_table_doc": {"name": "ez_liquid_staking_withdrawals_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/ez_liquid_staking.md", "unique_id": "doc.fsc_evm.ez_liquid_staking_withdrawals_table_doc", "block_contents": "## What\n\nThis table tracks liquid staking withdrawals/unstaking events across major LSD protocols. It captures when users burn their liquid staking tokens to reclaim ETH, providing insights into unstaking patterns, liquidity needs, and protocol exit flows.\n\n## Key Use Cases\n\n- Monitoring withdrawal volumes and exit liquidity\n- Analyzing net staking flows (deposits minus withdrawals)\n- Understanding staker holding periods and behavior\n- Detecting large withdrawals and de-risking events\n- Tracking exchange rates at withdrawal time\n\n## Important Relationships\n\n- Links to `ez_liquid_staking_deposits` for position lifecycle analysis\n- Connects to `core.fact_event_logs` for transaction details\n- References withdrawal queue contracts for protocols with exit delays\n- Uses `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `staker`: Address performing the unstaking\n- `platform`: Liquid staking protocol name\n- `eth_amount`: Amount of ETH received\n- `token_amount`: LSD tokens burned\n- `token_symbol`: Symbol of the LSD token\n- `block_timestamp`: When withdrawal occurred\n\n## Sample queries\n\n```sql\n-- Daily withdrawal patterns by protocol\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(*) AS withdrawal_txns,\n COUNT(DISTINCT staker) AS unique_unstakers,\n SUM(eth_amount) AS eth_withdrawn,\n SUM(eth_amount_usd) AS usd_withdrawn,\n AVG(eth_amount) AS avg_withdrawal_size\nFROM defi.ez_liquid_staking_withdrawals\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND eth_amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 5 DESC;\n\n-- Net staking flows (deposits vs withdrawals)\nWITH daily_deposits AS (\n SELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n SUM(eth_amount) AS eth_deposited,\n COUNT(DISTINCT staker) AS depositors\n FROM defi.ez_liquid_staking_deposits\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND eth_amount IS NOT NULL\n GROUP BY 1, 2\n),\ndaily_withdrawals AS (\n SELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n SUM(eth_amount) AS eth_withdrawn,\n COUNT(DISTINCT staker) AS withdrawers\n FROM defi.ez_liquid_staking_withdrawals\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND eth_amount IS NOT NULL\n GROUP BY 1, 2\n)\nSELECT \n COALESCE(d.date, w.date) AS date,\n COALESCE(d.platform, w.platform) AS platform,\n COALESCE(d.eth_deposited, 0) AS eth_deposited,\n COALESCE(w.eth_withdrawn, 0) AS eth_withdrawn,\n COALESCE(d.eth_deposited, 0) - COALESCE(w.eth_withdrawn, 0) AS net_eth_flow,\n COALESCE(d.depositors, 0) AS depositors,\n COALESCE(w.withdrawers, 0) AS withdrawers\nFROM daily_deposits d\nFULL OUTER JOIN daily_withdrawals w \n ON d.date = w.date AND d.platform = w.platform\nORDER BY date DESC, ABS(net_eth_flow) DESC;\n\n-- Staker holding period analysis\nWITH staker_lifecycle AS (\n SELECT \n d.staker,\n d.platform,\n d.block_timestamp AS deposit_time,\n MIN(w.block_timestamp) AS withdrawal_time,\n d.eth_amount AS deposit_amount,\n d.token_amount AS tokens_received\n FROM defi.ez_liquid_staking_deposits d\n LEFT JOIN defi.ez_liquid_staking_withdrawals w\n ON d.staker = w.staker \n AND d.platform = w.platform\n AND d.token_address = w.token_address\n AND w.block_timestamp > d.block_timestamp\n WHERE d.eth_amount IS NOT NULL\n GROUP BY 1, 2, 3, 5, 6\n)\nSELECT \n platform,\n COUNT(CASE WHEN withdrawal_time IS NOT NULL THEN 1 END) AS completed_cycles,\n COUNT(CASE WHEN withdrawal_time IS NULL THEN 1 END) AS still_staking,\n AVG(CASE \n WHEN withdrawal_time IS NOT NULL \n THEN EXTRACT(EPOCH FROM (withdrawal_time - deposit_time)) / 86400 \n END) AS avg_holding_days,\n PERCENTILE_CONT(0.5) WITHIN GROUP (\n ORDER BY CASE \n WHEN withdrawal_time IS NOT NULL \n THEN EXTRACT(EPOCH FROM (withdrawal_time - deposit_time)) / 86400 \n END\n ) AS median_holding_days\nFROM staker_lifecycle\nWHERE deposit_time >= CURRENT_DATE - 365\nGROUP BY platform\nORDER BY completed_cycles DESC;\n\n-- Exchange rate at withdrawal (profit/loss analysis)\nSELECT \n platform,\n token_symbol,\n DATE_TRUNC('week', block_timestamp) AS week,\n AVG(eth_amount / NULLIF(token_amount, 0)) AS avg_redemption_rate,\n MIN(eth_amount / NULLIF(token_amount, 0)) AS min_rate,\n MAX(eth_amount / NULLIF(token_amount, 0)) AS max_rate,\n COUNT(*) AS withdrawals\nFROM defi.ez_liquid_staking_withdrawals\nWHERE token_amount > 0 \n AND eth_amount > 0\n AND block_timestamp >= CURRENT_DATE - 90\nGROUP BY 1, 2, 3\nORDER BY 1, 3 DESC;\n\n-- Large withdrawals monitoring (potential de-risking)\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n staker,\n eth_amount,\n eth_amount_usd,\n token_symbol,\n token_amount,\n eth_amount / NULLIF(token_amount, 0) AS redemption_rate\nFROM defi.ez_liquid_staking_withdrawals\nWHERE eth_amount >= 100\n AND block_timestamp >= CURRENT_DATE - 3\nORDER BY eth_amount DESC;\n\n-- Withdrawal pressure indicators\nWITH hourly_flows AS (\n SELECT \n DATE_TRUNC('hour', block_timestamp) AS hour,\n platform,\n SUM(eth_amount) AS hourly_withdrawals,\n COUNT(*) AS withdrawal_count,\n COUNT(DISTINCT staker) AS unique_withdrawers\n FROM defi.ez_liquid_staking_withdrawals\n WHERE block_timestamp >= CURRENT_DATE - 7\n AND eth_amount IS NOT NULL\n GROUP BY 1, 2\n)\nSELECT \n platform,\n MAX(hourly_withdrawals) AS peak_hourly_withdrawal,\n AVG(hourly_withdrawals) AS avg_hourly_withdrawal,\n MAX(withdrawal_count) AS peak_withdrawal_count,\n STDDEV(hourly_withdrawals) AS withdrawal_volatility\nFROM hourly_flows\nGROUP BY platform\nHAVING MAX(hourly_withdrawals) > 100\nORDER BY peak_hourly_withdrawal DESC;\n```"}, "doc.fsc_evm.ez_liquid_staking_staker": {"name": "ez_liquid_staking_staker", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/ez_liquid_staking.md", "unique_id": "doc.fsc_evm.ez_liquid_staking_staker", "block_contents": "The address performing the staking or unstaking action.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "doc.fsc_evm.ez_liquid_staking_platform": {"name": "ez_liquid_staking_platform", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/ez_liquid_staking.md", "unique_id": "doc.fsc_evm.ez_liquid_staking_platform", "block_contents": "The liquid staking protocol processing the transaction.\n\nExample: 'lido'"}, "doc.fsc_evm.ez_liquid_staking_token_symbol": {"name": "ez_liquid_staking_token_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/ez_liquid_staking.md", "unique_id": "doc.fsc_evm.ez_liquid_staking_token_symbol", "block_contents": "The symbol of the liquid staking derivative token.\n\nExample: 'stETH'"}, "doc.fsc_evm.ez_liquid_staking_token_address": {"name": "ez_liquid_staking_token_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/ez_liquid_staking.md", "unique_id": "doc.fsc_evm.ez_liquid_staking_token_address", "block_contents": "The contract address of the liquid staking token.\n\nExample: '0xae7ab96520de3a18e5e111b5eaab095312d7fe84'"}, "doc.fsc_evm.ez_liquid_staking_eth_amount_unadj": {"name": "ez_liquid_staking_eth_amount_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/ez_liquid_staking.md", "unique_id": "doc.fsc_evm.ez_liquid_staking_eth_amount_unadj", "block_contents": "The raw amount of ETH without decimal adjustment.\n\nExample: 1000000000000000000"}, "doc.fsc_evm.ez_liquid_staking_eth_amount": {"name": "ez_liquid_staking_eth_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/ez_liquid_staking.md", "unique_id": "doc.fsc_evm.ez_liquid_staking_eth_amount", "block_contents": "The decimal-adjusted amount of ETH staked or withdrawn.\n\nExample: 1.0"}, "doc.fsc_evm.ez_liquid_staking_eth_amount_usd": {"name": "ez_liquid_staking_eth_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/ez_liquid_staking.md", "unique_id": "doc.fsc_evm.ez_liquid_staking_eth_amount_usd", "block_contents": "The USD value of ETH staked or withdrawn.\n\nExample: 2500.50"}, "doc.fsc_evm.ez_liquid_staking_token_amount_unadj": {"name": "ez_liquid_staking_token_amount_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/ez_liquid_staking.md", "unique_id": "doc.fsc_evm.ez_liquid_staking_token_amount_unadj", "block_contents": "The raw amount of liquid staking tokens without decimal adjustment.\n\nExample: 999500000000000000"}, "doc.fsc_evm.ez_liquid_staking_token_amount": {"name": "ez_liquid_staking_token_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/ez_liquid_staking.md", "unique_id": "doc.fsc_evm.ez_liquid_staking_token_amount", "block_contents": "The decimal-adjusted amount of liquid staking tokens minted or burned.\n\nExample: 0.9995"}, "doc.fsc_evm.ez_liquid_staking_token_amount_usd": {"name": "ez_liquid_staking_token_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/ez_liquid_staking.md", "unique_id": "doc.fsc_evm.ez_liquid_staking_token_amount_usd", "block_contents": "The USD value of liquid staking tokens minted or burned.\n\nExample: 2498.75"}, "doc.fsc_evm.dim_stablecoins_table_doc": {"name": "dim_stablecoins_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/dim_stablecoins.md", "original_file_path": "models/doc_descriptions/defi/dim_stablecoins.md", "unique_id": "doc.fsc_evm.dim_stablecoins_table_doc", "block_contents": "## What\n\nThis table provides a dimensional view of verified stablecoins across EVM-compatible blockchains. It consolidates stablecoin metadata from various sources to create a unified reference table for identifying and analyzing stablecoin tokens.\n\n## Key Use Cases\n\n- Identifying stablecoin tokens in transaction and event data\n- Filtering DeFi activities to stablecoin-only transactions\n- Analyzing stablecoin adoption and distribution\n- Tracking verified stablecoin contracts across chains\n- Building stablecoin-specific metrics and dashboards\n\n## Important Relationships\n\n- **Join with defi.ez_stablecoins_supply**: Use `contract_address` for supply metrics\n\n## Commonly-used Fields\n\n- `contract_address`: Unique stablecoin token contract address\n- `symbol`: Token symbol (e.g., USDC, USDT, DAI)\n- `name`: Full token name\n- `label`: Combined symbol and name, as a stablecoin unique identifier\n- `decimals`: Number of decimal places for the token\n- `is_verified`: Verification status\n\n## Sample queries\n\n```sql\n-- Get unique stablecoins\nSELECT \n label AS stablecoin,\n COUNT(*) AS token_count\nFROM .defi.dim_stablecoins\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Get all USDC variants\nSELECT \n contract_address,\n symbol,\n name,\n decimals\nFROM .defi.dim_stablecoins\nWHERE symbol LIKE '%USDC%'\nORDER BY symbol;\n\n-- Check if specific address is a stablecoin\nSELECT \n contract_address,\n label,\n decimals\nFROM .defi.dim_stablecoins\nWHERE contract_address = LOWER('0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48');\n```"}, "doc.fsc_evm.dim_stablecoins_contract_address": {"name": "dim_stablecoins_contract_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/dim_stablecoins.md", "original_file_path": "models/doc_descriptions/defi/dim_stablecoins.md", "unique_id": "doc.fsc_evm.dim_stablecoins_contract_address", "block_contents": "The unique smart contract address of the stablecoin token.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "doc.fsc_evm.dim_stablecoins_symbol": {"name": "dim_stablecoins_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/dim_stablecoins.md", "original_file_path": "models/doc_descriptions/defi/dim_stablecoins.md", "unique_id": "doc.fsc_evm.dim_stablecoins_symbol", "block_contents": "The symbol identifier for the stablecoin token.\n\nExample: 'USDC'"}, "doc.fsc_evm.dim_stablecoins_name": {"name": "dim_stablecoins_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/dim_stablecoins.md", "original_file_path": "models/doc_descriptions/defi/dim_stablecoins.md", "unique_id": "doc.fsc_evm.dim_stablecoins_name", "block_contents": "The full name of the stablecoin token.\n\nExample: 'USD Coin'"}, "doc.fsc_evm.dim_stablecoins_label": {"name": "dim_stablecoins_label", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/dim_stablecoins.md", "original_file_path": "models/doc_descriptions/defi/dim_stablecoins.md", "unique_id": "doc.fsc_evm.dim_stablecoins_label", "block_contents": "A combined display label containing both symbol and name.\n\nExample: 'USDC: USD Coin'"}, "doc.fsc_evm.dim_stablecoins_decimals": {"name": "dim_stablecoins_decimals", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/dim_stablecoins.md", "original_file_path": "models/doc_descriptions/defi/dim_stablecoins.md", "unique_id": "doc.fsc_evm.dim_stablecoins_decimals", "block_contents": "The number of decimal places used by the token contract.\n\nExample: 6"}, "doc.fsc_evm.dim_stablecoins_is_verified": {"name": "dim_stablecoins_is_verified", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/dim_stablecoins.md", "original_file_path": "models/doc_descriptions/defi/dim_stablecoins.md", "unique_id": "doc.fsc_evm.dim_stablecoins_is_verified", "block_contents": "Indicates whether the stablecoin is verified by the Flipside team.\n\nExample: true"}, "doc.fsc_evm.ez_dex_swaps_table_doc": {"name": "ez_dex_swaps_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_table_doc", "block_contents": "## What\n\nThis table provides a comprehensive view of token swap events across major decentralized exchanges (DEXs) on EVM blockchains. It standardizes swap data from different DEX protocols into a unified format, enabling cross-DEX analysis and DeFi trading insights.\n\n## Key Use Cases\n\n- Analyzing DEX trading volumes and market share\n- Tracking token pair liquidity and trading activity\n- Detecting arbitrage opportunities across protocols\n- Monitoring whale trades and unusual swap patterns\n- Calculating slippage and price impact of trades\n\n## Important Relationships\n\n- **Join with dim_dex_liquidity_pools**: Get pool metadata and token details\n- **Join with fact_event_logs**: Access raw swap events\n- **Join with ez_prices_hourly**: Verify token prices\n\n## Commonly-used Fields\n\n- `platform`: DEX protocol (uniswap_v2, curve, etc.)\n- `sender`: Address initiating the swap\n- `token_in`/`token_out`: Token addresses being swapped\n- `amount_in`/`amount_out`: Decimal-adjusted swap amounts\n- `amount_in_usd`/`amount_out_usd`: USD values at swap time\n- `pool_address`: Liquidity pool where swap occurred\n\n## Sample queries\n\n```sql\n-- Daily swap volume by DEX platform\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(*) AS swap_count,\n COUNT(DISTINCT sender) AS unique_traders,\n COUNT(DISTINCT pool_address) AS active_pools,\n SUM(amount_in_usd) AS total_volume_usd,\n AVG(amount_in_usd) AS avg_swap_size_usd,\n PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY amount_in_usd) AS median_swap_usd\nFROM .defi.ez_dex_swaps\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_in_usd IS NOT NULL\n AND amount_in_usd > 0\nGROUP BY 1, 2\nORDER BY 1 DESC, 6 DESC;\n\n-- Most active trading pairs\nWITH pair_volume AS (\n SELECT \n LEAST(token_in, token_out) AS token_a,\n GREATEST(token_in, token_out) AS token_b,\n LEAST(symbol_in, symbol_out) AS symbol_a,\n GREATEST(symbol_in, symbol_out) AS symbol_b,\n COUNT(*) AS swap_count,\n SUM(amount_in_usd) AS volume_usd,\n COUNT(DISTINCT sender) AS unique_traders,\n COUNT(DISTINCT DATE(block_timestamp)) AS active_days\n FROM .defi.ez_dex_swaps\n WHERE block_timestamp >= CURRENT_DATE - 7\n AND amount_in_usd IS NOT NULL\n GROUP BY 1, 2, 3, 4\n)\nSELECT \n symbol_a || '/' || symbol_b AS pair,\n swap_count,\n volume_usd,\n unique_traders,\n active_days,\n volume_usd / swap_count AS avg_swap_size\nFROM pair_volume\nWHERE volume_usd > 100000\nORDER BY volume_usd DESC\nLIMIT 50;\n\n-- Price discrepancies across DEXs for same token pairs\nWITH recent_swaps AS (\n SELECT \n block_timestamp,\n platform,\n token_in,\n token_out,\n symbol_in,\n symbol_out,\n amount_in,\n amount_out,\n amount_in_usd / NULLIF(amount_in, 0) AS price_in_usd,\n amount_out_usd / NULLIF(amount_out, 0) AS price_out_usd,\n -- Calculate implied exchange rate\n amount_out / NULLIF(amount_in, 0) AS exchange_rate\n FROM .defi.ez_dex_swaps\n WHERE block_timestamp >= CURRENT_TIMESTAMP - INTERVAL '1 hour'\n AND amount_in > 0 \n AND amount_out > 0\n AND amount_in_usd IS NOT NULL\n),\nprice_comparison AS (\n SELECT \n DATE_TRUNC('minute', block_timestamp) AS minute,\n token_in,\n token_out,\n symbol_in || '->' || symbol_out AS pair,\n platform,\n AVG(exchange_rate) AS avg_rate,\n COUNT(*) AS swap_count\n FROM recent_swaps\n GROUP BY 1, 2, 3, 4, 5\n)\nSELECT \n p1.minute,\n p1.pair,\n p1.platform AS platform_1,\n p2.platform AS platform_2,\n p1.avg_rate AS rate_1,\n p2.avg_rate AS rate_2,\n ABS(p1.avg_rate - p2.avg_rate) / LEAST(p1.avg_rate, p2.avg_rate) * 100 AS price_diff_pct\nFROM price_comparison p1\nJOIN price_comparison p2\n ON p1.minute = p2.minute\n AND p1.token_in = p2.token_in\n AND p1.token_out = p2.token_out\n AND p1.platform < p2.platform\nWHERE price_diff_pct > 1 -- More than 1% difference\nORDER BY p1.minute DESC, price_diff_pct DESC;\n\n-- Large swaps by size and impact\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n sender,\n symbol_in || ' -> ' || symbol_out AS swap_pair,\n amount_in,\n amount_in_usd,\n amount_out,\n amount_out_usd,\n ABS(amount_in_usd - amount_out_usd) / NULLIF(amount_in_usd, 0) * 100 AS slippage_pct\nFROM .defi.ez_dex_swaps\nWHERE block_timestamp >= CURRENT_DATE - 1\n AND amount_in_usd > 100000 -- Swaps over $100k\nORDER BY amount_in_usd DESC\nLIMIT 100;\n\n-- Platform market share by volume\nWITH platform_stats AS (\n SELECT \n platform,\n SUM(amount_in_usd) AS total_volume,\n COUNT(*) AS total_swaps,\n COUNT(DISTINCT sender) AS unique_users,\n COUNT(DISTINCT pool_address) AS unique_pools\n FROM .defi.ez_dex_swaps\n WHERE block_timestamp >= CURRENT_DATE - 7\n AND amount_in_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n platform,\n total_volume,\n ROUND(100.0 * total_volume / SUM(total_volume) OVER (), 2) AS market_share_pct,\n total_swaps,\n unique_users,\n unique_pools,\n total_volume / NULLIF(total_swaps, 0) AS avg_swap_size\nFROM platform_stats\nORDER BY total_volume DESC;\n```"}, "doc.fsc_evm.dim_dex_lp_table_doc": {"name": "dim_dex_lp_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.dim_dex_lp_table_doc", "block_contents": "## What\n\nThis dimensional table contains comprehensive metadata for all DEX liquidity pools across supported protocols. It provides essential information about pool composition, token pairs, and configuration needed for analyzing liquidity provision and pool performance.\n\n## Key Use Cases\n\n- Finding all pools containing specific tokens\n- Tracking new pool deployments\n- Analyzing pool configurations and fee structures\n- Identifying trading pairs across different protocols\n- Monitoring factory contract deployments\n\n## Important Relationships\n\n- **Join with ez_dex_swaps**: Use `pool_address` to get swap activity\n- **Join with dim_contracts**: Use token addresses for additional metadata\n- **Self-join**: Find all pools with common tokens\n\n## Commonly-used Fields\n\n- `pool_address`: Unique identifier for the liquidity pool\n- `platform`: DEX protocol (uniswap_v3, curve, etc.)\n- `pool_name`: Human-readable pool identifier\n- `tokens`: JSON with token0 and token1 addresses\n- `symbols`: JSON with token0 and token1 symbols\n- `creation_time`: When pool was deployed\n\n## Sample queries\n\n```sql\n-- Find all pools containing USDC\nSELECT \n pool_address,\n pool_name,\n platform,\n creation_time,\n CASE \n WHEN tokens:token0::string = LOWER('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48') THEN \n symbols:token1::string\n ELSE \n symbols:token0::string\n END AS paired_token\nFROM .defi.dim_dex_liquidity_pools\nWHERE LOWER('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48') IN (\n tokens:token0::string,\n tokens:token1::string\n)\nORDER BY creation_time DESC;\n\n-- Recently created liquidity pools\nSELECT \n platform,\n pool_address,\n pool_name,\n creation_time,\n creation_tx,\n symbols:token0::string || '/' || symbols:token1::string AS pair,\n factory_address\nFROM .defi.dim_dex_liquidity_pools\nWHERE creation_time >= CURRENT_DATE - 7\nORDER BY creation_time DESC\nLIMIT 100;\n\n-- Extract token information from JSON fields\nSELECT \n pool_address,\n tokens:token0::string AS token0_address,\n tokens:token1::string AS token1_address,\n symbols:token0::string AS token0_symbol,\n symbols:token1::string AS token1_symbol,\n decimals:token0::integer AS token0_decimals,\n decimals:token1::integer AS token1_decimals\nFROM .defi.dim_dex_liquidity_pools\nWHERE platform = 'uniswap_v3';\n```"}, "doc.fsc_evm.ez_dex_swaps_amount_in": {"name": "ez_dex_swaps_amount_in", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_amount_in", "block_contents": "The decimal-adjusted quantity of tokens provided by the trader in the swap.\n\nExample: 1000.5"}, "doc.fsc_evm.ez_dex_swaps_amount_in_usd": {"name": "ez_dex_swaps_amount_in_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_amount_in_usd", "block_contents": "USD value of tokens provided in the swap at time of transaction.\n\nExample: 1500.75"}, "doc.fsc_evm.ez_dex_swaps_amount_out": {"name": "ez_dex_swaps_amount_out", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_amount_out", "block_contents": "The decimal-adjusted quantity of tokens received by the trader from the swap.\n\nExample: 0.65"}, "doc.fsc_evm.ez_dex_swaps_sender": {"name": "ez_dex_swaps_sender", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_sender", "block_contents": "The address that initiated the swap transaction.\n\nExample: '0x7a250d5630b4cf539739df2c5dacb4c659f2488d'"}, "doc.fsc_evm.ez_dex_swaps_to": {"name": "ez_dex_swaps_to", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_to", "block_contents": "The recipient address of the swapped tokens.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "doc.fsc_evm.ez_dex_swaps_platform": {"name": "ez_dex_swaps_platform", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_platform", "block_contents": "The DEX protocol where the swap occurred.\n\nExample: 'uniswap_v3'"}, "doc.fsc_evm.ez_dex_swaps_pool_address": {"name": "ez_dex_swaps_pool_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_pool_address", "block_contents": "The liquidity pool contract address where the swap executed.\n\nExample: '0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8'"}, "doc.fsc_evm.ez_dex_swaps_amount_in_unadj": {"name": "ez_dex_swaps_amount_in_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_amount_in_unadj", "block_contents": "The raw, non-decimal adjusted amount of tokens provided in the swap.\n\nExample: 1000500000"}, "doc.fsc_evm.ez_dex_swaps_amount_out_unadj": {"name": "ez_dex_swaps_amount_out_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_amount_out_unadj", "block_contents": "The raw, non-decimal adjusted amount of tokens received from the swap.\n\nExample: 650000000000000000"}, "doc.fsc_evm.ez_dex_swaps_amount_out_usd": {"name": "ez_dex_swaps_amount_out_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_amount_out_usd", "block_contents": "USD value of tokens received from the swap at time of transaction.\n\nExample: 1498.25"}, "doc.fsc_evm.ez_dex_swaps_symbol_in": {"name": "ez_dex_swaps_symbol_in", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_symbol_in", "block_contents": "The ticker symbol of the token being sold/swapped from.\n\nExample: 'USDC'"}, "doc.fsc_evm.ez_dex_swaps_symbol_out": {"name": "ez_dex_swaps_symbol_out", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_symbol_out", "block_contents": "The ticker symbol of the token being bought/received.\n\nExample: 'WETH'"}, "doc.fsc_evm.ez_dex_swaps_token_in": {"name": "ez_dex_swaps_token_in", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_token_in", "block_contents": "The contract address of the token being sold in the swap.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "doc.fsc_evm.ez_dex_swaps_token_out": {"name": "ez_dex_swaps_token_out", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_token_out", "block_contents": "The contract address of the token being received from the swap.\n\nExample: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'"}, "doc.fsc_evm.ez_dex_swaps_creation_block": {"name": "ez_dex_swaps_creation_block", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_creation_block", "block_contents": "The block number when the liquidity pool was first created.\n\nExample: 12369739"}, "doc.fsc_evm.ez_dex_swaps_creation_time": {"name": "ez_dex_swaps_creation_time", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_creation_time", "block_contents": "The timestamp when the liquidity pool was deployed.\n\nExample: '2021-05-05 12:34:56.000'"}, "doc.fsc_evm.ez_dex_swaps_creation_tx": {"name": "ez_dex_swaps_creation_tx", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_creation_tx", "block_contents": "The transaction hash that deployed this liquidity pool.\n\nExample: '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'"}, "doc.fsc_evm.ez_dex_swaps_factory_address": {"name": "ez_dex_swaps_factory_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_factory_address", "block_contents": "The factory contract that deployed this liquidity pool.\n\nExample: '0x1f98431c8ad98523631ae4a59f267346ea31f984'"}, "doc.fsc_evm.ez_dex_swaps_pool_name": {"name": "ez_dex_swaps_pool_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_pool_name", "block_contents": "Human-readable name for the liquidity pool.\n\nExample: 'WETH/USDC 0.05%'"}, "doc.fsc_evm.ez_dex_swaps_decimals": {"name": "ez_dex_swaps_decimals", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_decimals", "block_contents": "JSON object containing decimal places for each token in the pool.\n\nExample: {\"token0\": 18, \"token1\": 6}"}, "doc.fsc_evm.ez_dex_swaps_symbols": {"name": "ez_dex_swaps_symbols", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_symbols", "block_contents": "JSON object containing token symbols for the pool pair.\n\nExample: {\"token0\": \"WETH\", \"token1\": \"USDC\"}"}, "doc.fsc_evm.ez_dex_swaps_tokens": {"name": "ez_dex_swaps_tokens", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_tokens", "block_contents": "JSON object containing token contract addresses in the pool.\n\nExample: {\"token0\": \"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2\", \"token1\": \"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\"}"}, "doc.fsc_evm.ez_dex_swaps_token_in_is_verified": {"name": "ez_dex_swaps_token_in_is_verified", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_token_in_is_verified", "block_contents": "Whether the token in the swap is verified.\n\nExample: true"}, "doc.fsc_evm.ez_dex_swaps_token_out_is_verified": {"name": "ez_dex_swaps_token_out_is_verified", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_token_out_is_verified", "block_contents": "Whether the token out of the swap is verified.\n\nExample: true"}, "doc.fsc_evm.ez_dex_swaps_protocol_version": {"name": "ez_dex_swaps_protocol_version", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_protocol_version", "block_contents": "The version of the protocol used for the swap.\n\nExample: 'v3'"}, "doc.fsc_evm.ez_dex_swaps_protocol": {"name": "ez_dex_swaps_protocol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_protocol", "block_contents": "The protocol used for the swap. This is the clean name of the protocol, not the platform, without the version.\n\nExample: 'uniswap'"}, "doc.fsc_evm.ez_dex_swaps_contract_address": {"name": "ez_dex_swaps_contract_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_swaps.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_swaps.md", "unique_id": "doc.fsc_evm.ez_dex_swaps_contract_address", "block_contents": "The contract address of the swap. This is the address of the contract that executed the swap, often a pool contract.\n\nExample: '0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8'"}, "doc.fsc_evm.ez_stablecoins_supply_table_doc": {"name": "ez_stablecoins_supply_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_stablecoins_supply.md", "original_file_path": "models/doc_descriptions/defi/ez_stablecoins_supply.md", "unique_id": "doc.fsc_evm.ez_stablecoins_supply_table_doc", "block_contents": "## What\n\nThis table provides daily supply metrics for verified stablecoins across EVM-compatible blockchains. It tracks total supply, mint/burn activity, and distribution across various DeFi protocols and platforms. Historical data available, starting from `2025-06-10`.\n\n## Key Use Cases\n\n- Tracking stablecoin supply growth and contraction over time\n- Analyzing stablecoin distribution and TVL across DeFi protocols\n- Monitoring mint and burn events for supply changes\n- Identifying stablecoin liquidity concentration in specific venues\n- Building supply-based metrics and charts\n\n## Important Relationships\n\n- **Join with defi.dim_stablecoins**: Use `contract_address` for stablecoin metadata\n- **Join with price.ez_prices_hourly**: Use `contract_address` for price data\n\n## Commonly-used Fields\n\n- `block_date`: Date of the supply snapshot\n- `contract_address`: Stablecoin token contract address\n- `symbol`: Token symbol (e.g., USDC, USDT, DAI)\n- `total_supply`: Total supply of the stablecoin, based on direct `totalSupply` contract functions calls\n- `amount_minted`: Cumulative amount minted\n- `amount_burned`: Cumulative amount burned\n- `amount_in_bridges`: Amount held in Bridge vaults\n- `amount_in_dex_liquidity_pools`: Amount held in DEX liquidity pools\n- `amount_in_lending_pools`: Amount deposited in lending protocols\n- `amount_in_cex`: Amount held in centralized exchange addresses\n\n## Sample queries\n\n```sql\n-- Latest supply metrics by stablecoin\nSELECT \n label AS stablecoin,\n total_supply,\n amount_in_dex_liquidity_pools,\n amount_in_lending_pools\nFROM .defi.ez_stablecoins_supply\nWHERE block_date = CURRENT_DATE - 1\nORDER BY total_supply DESC;\n\n-- Daily supply changes for a specific stablecoin\nSELECT \n block_date,\n symbol,\n total_supply,\n amount_minted - LAG(amount_minted) OVER (PARTITION BY contract_address ORDER BY block_date) AS daily_minted,\n amount_burned - LAG(amount_burned) OVER (PARTITION BY contract_address ORDER BY block_date) AS daily_burned\nFROM .defi.ez_stablecoins_supply\nWHERE symbol = 'USDC'\n AND block_date >= CURRENT_DATE - 30\nORDER BY block_date DESC;\n\n-- Stablecoin distribution analysis\nSELECT \n block_date,\n label AS stablecoin,\n amount_in_bridges / NULLIF(total_supply, 0) AS pct_in_bridge,\n amount_in_dex_liquidity_pools / NULLIF(total_supply, 0) AS pct_in_dex,\n amount_in_lending_pools / NULLIF(total_supply, 0) AS pct_in_lending,\n amount_in_cex / NULLIF(total_supply, 0) AS pct_in_cex\nFROM .defi.ez_stablecoins_supply\nWHERE block_date = CURRENT_DATE - 1\n AND total_supply > 0\nORDER BY total_supply DESC;\n```"}, "doc.fsc_evm.ez_stablecoins_supply_block_date": {"name": "ez_stablecoins_supply_block_date", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_stablecoins_supply.md", "original_file_path": "models/doc_descriptions/defi/ez_stablecoins_supply.md", "unique_id": "doc.fsc_evm.ez_stablecoins_supply_block_date", "block_contents": "The date of the daily supply snapshot. This corresponds with the MAX block_number from the previous day.\n\nExample: '2025-06-10'"}, "doc.fsc_evm.ez_stablecoins_supply_contract_address": {"name": "ez_stablecoins_supply_contract_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_stablecoins_supply.md", "original_file_path": "models/doc_descriptions/defi/ez_stablecoins_supply.md", "unique_id": "doc.fsc_evm.ez_stablecoins_supply_contract_address", "block_contents": "The smart contract address of the stablecoin token.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "doc.fsc_evm.ez_stablecoins_supply_symbol": {"name": "ez_stablecoins_supply_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_stablecoins_supply.md", "original_file_path": "models/doc_descriptions/defi/ez_stablecoins_supply.md", "unique_id": "doc.fsc_evm.ez_stablecoins_supply_symbol", "block_contents": "The symbol identifier for the stablecoin token.\n\nExample: 'USDC'"}, "doc.fsc_evm.ez_stablecoins_supply_name": {"name": "ez_stablecoins_supply_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_stablecoins_supply.md", "original_file_path": "models/doc_descriptions/defi/ez_stablecoins_supply.md", "unique_id": "doc.fsc_evm.ez_stablecoins_supply_name", "block_contents": "The full name of the stablecoin token.\n\nExample: 'USD Coin'"}, "doc.fsc_evm.ez_stablecoins_supply_label": {"name": "ez_stablecoins_supply_label", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_stablecoins_supply.md", "original_file_path": "models/doc_descriptions/defi/ez_stablecoins_supply.md", "unique_id": "doc.fsc_evm.ez_stablecoins_supply_label", "block_contents": "A combined display label containing both symbol and name, as a stablecoin unique identifier.\n\nExample: 'USDC: USD Coin'"}, "doc.fsc_evm.ez_stablecoins_supply_decimals": {"name": "ez_stablecoins_supply_decimals", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_stablecoins_supply.md", "original_file_path": "models/doc_descriptions/defi/ez_stablecoins_supply.md", "unique_id": "doc.fsc_evm.ez_stablecoins_supply_decimals", "block_contents": "The number of decimal places used by the token contract.\n\nExample: 6"}, "doc.fsc_evm.ez_stablecoins_supply_total_supply": {"name": "ez_stablecoins_supply_total_supply", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_stablecoins_supply.md", "original_file_path": "models/doc_descriptions/defi/ez_stablecoins_supply.md", "unique_id": "doc.fsc_evm.ez_stablecoins_supply_total_supply", "block_contents": "The total supply of the stablecoin on this blockchain as of the block_date, directly derived from `totalSupply` contract function calls.\n\nExample: 1500000000"}, "doc.fsc_evm.ez_stablecoins_supply_amount_minted": {"name": "ez_stablecoins_supply_amount_minted", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_stablecoins_supply.md", "original_file_path": "models/doc_descriptions/defi/ez_stablecoins_supply.md", "unique_id": "doc.fsc_evm.ez_stablecoins_supply_amount_minted", "block_contents": "The amount of tokens minted daily.\n\nExample: 2000000000"}, "doc.fsc_evm.ez_stablecoins_supply_amount_burned": {"name": "ez_stablecoins_supply_amount_burned", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_stablecoins_supply.md", "original_file_path": "models/doc_descriptions/defi/ez_stablecoins_supply.md", "unique_id": "doc.fsc_evm.ez_stablecoins_supply_amount_burned", "block_contents": "The amount of tokens burned daily.\n\nExample: 500000000"}, "doc.fsc_evm.ez_stablecoins_supply_amount_transferred": {"name": "ez_stablecoins_supply_amount_transferred", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_stablecoins_supply.md", "original_file_path": "models/doc_descriptions/defi/ez_stablecoins_supply.md", "unique_id": "doc.fsc_evm.ez_stablecoins_supply_amount_transferred", "block_contents": "The amount of tokens transferred daily.\n\nExample: 10000000000"}, "doc.fsc_evm.ez_stablecoins_supply_amount_blacklisted": {"name": "ez_stablecoins_supply_amount_blacklisted", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_stablecoins_supply.md", "original_file_path": "models/doc_descriptions/defi/ez_stablecoins_supply.md", "unique_id": "doc.fsc_evm.ez_stablecoins_supply_amount_blacklisted", "block_contents": "The total amount of tokens held in blacklisted addresses.\n\nExample: 1000000"}, "doc.fsc_evm.ez_stablecoins_supply_amount_in_cex": {"name": "ez_stablecoins_supply_amount_in_cex", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_stablecoins_supply.md", "original_file_path": "models/doc_descriptions/defi/ez_stablecoins_supply.md", "unique_id": "doc.fsc_evm.ez_stablecoins_supply_amount_in_cex", "block_contents": "The amount of tokens held in centralized exchange addresses.\n\nExample: 300000000"}, "doc.fsc_evm.ez_stablecoins_supply_amount_in_bridges": {"name": "ez_stablecoins_supply_amount_in_bridges", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_stablecoins_supply.md", "original_file_path": "models/doc_descriptions/defi/ez_stablecoins_supply.md", "unique_id": "doc.fsc_evm.ez_stablecoins_supply_amount_in_bridges", "block_contents": "The amount of tokens held in bridge vaults and contracts.\n\nExample: 50000000"}, "doc.fsc_evm.ez_stablecoins_supply_amount_in_dex_liquidity_pools": {"name": "ez_stablecoins_supply_amount_in_dex_liquidity_pools", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_stablecoins_supply.md", "original_file_path": "models/doc_descriptions/defi/ez_stablecoins_supply.md", "unique_id": "doc.fsc_evm.ez_stablecoins_supply_amount_in_dex_liquidity_pools", "block_contents": "The amount of tokens deposited in decentralized exchange liquidity pools.\n\nExample: 200000000"}, "doc.fsc_evm.ez_stablecoins_supply_amount_in_lending_pools": {"name": "ez_stablecoins_supply_amount_in_lending_pools", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_stablecoins_supply.md", "original_file_path": "models/doc_descriptions/defi/ez_stablecoins_supply.md", "unique_id": "doc.fsc_evm.ez_stablecoins_supply_amount_in_lending_pools", "block_contents": "The amount of tokens deposited in lending protocol pools.\n\nExample: 150000000"}, "doc.fsc_evm.ez_stablecoins_supply_amount_in_contracts": {"name": "ez_stablecoins_supply_amount_in_contracts", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_stablecoins_supply.md", "original_file_path": "models/doc_descriptions/defi/ez_stablecoins_supply.md", "unique_id": "doc.fsc_evm.ez_stablecoins_supply_amount_in_contracts", "block_contents": "The amount of tokens held in all contracts (including other categorized contracts).\n\nExample: 100000000"}, "doc.fsc_evm.ez_lending_mcp_context": {"name": "ez_lending_mcp_context", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_mcp_context", "block_contents": "# Lending Tables MCP Context\n\n## Table Overview\n- **EZ_LENDING_BORROWS**: User borrowing transactions across lending protocols\n- **EZ_LENDING_DEPOSITS**: User deposit transactions (collateral provision)\n- **EZ_LENDING_WITHDRAWS**: User withdrawal transactions (collateral removal)\n- **EZ_LENDING_REPAYMENTS**: User repayment transactions (debt settlement)\n- **EZ_LENDING_LIQUIDATIONS**: Liquidation events (collateral seizure for debt)\n- **EZ_LENDING_FLASHLOANS**: Flash loan transactions (borrow-repay in single tx)\n\n## Critical Join Relationships\n\n### Valid Token-Based Joins\n- `deposits.token_address` \u2194 `withdraws.token_address` (same collateral asset)\n- `borrows.token_address` \u2194 `repayments.token_address` (same borrowed asset)\n\n### Invalid Token-Based Joins\n- `borrows.token_address` \u2194 `deposits.token_address` (borrowed \u2260 collateral)\n- `borrows.token_address` \u2194 `withdraws.token_address` (borrowed \u2260 collateral)\n\n### User-Based Joins\n- `deposits.depositor` \u2194 `withdraws.depositor` (same user)\n- `borrows.borrower` \u2194 `repayments.borrower` (same user)\n- `liquidations.borrower` \u2194 `borrows.borrower` (liquidated user)\n- `liquidations.liquidator` \u2194 `flashloans.initiator` (liquidator activity)\n\n## Column Mappings\n\n### User Identifiers\n| Table | User Column | Description |\n|-------|-------------|-------------|\n| EZ_LENDING_BORROWS | `borrower` | Address that borrowed assets |\n| EZ_LENDING_DEPOSITS | `depositor` | Address that provided collateral |\n| EZ_LENDING_WITHDRAWS | `depositor` | Address that withdrew collateral |\n| EZ_LENDING_REPAYMENTS | `borrower` | Address that repaid debt |\n| EZ_LENDING_LIQUIDATIONS | `borrower` | Address that was liquidated |\n| EZ_LENDING_LIQUIDATIONS | `liquidator` | Address that performed liquidation |\n| EZ_LENDING_FLASHLOANS | `initiator` | Address that initiated flash loan |\n\n### Asset Identifiers\n| Table | Token Columns | Description |\n|-------|--------------|-------------|\n| EZ_LENDING_BORROWS | `token_address`, `token_symbol` | Borrowed asset |\n| EZ_LENDING_DEPOSITS | `token_address`, `token_symbol` | Collateral asset |\n| EZ_LENDING_WITHDRAWS | `token_address`, `token_symbol` | Collateral asset |\n| EZ_LENDING_REPAYMENTS | `token_address`, `token_symbol` | Repaid asset |\n| EZ_LENDING_LIQUIDATIONS | `collateral_token`, `collateral_token_symbol` | Seized collateral |\n| EZ_LENDING_LIQUIDATIONS | `debt_token`, `debt_token_symbol` | Covered debt |\n| EZ_LENDING_FLASHLOANS | `flashloan_token_address`, `flashloan_token_symbol` | Flash borrowed asset |\n\n### Amount Columns\n| Table | Amount Columns | Description |\n|-------|---------------|-------------|\n| EZ_LENDING_BORROWS | `amount`, `amount_usd` | Borrowed quantity and USD value |\n| EZ_LENDING_DEPOSITS | `amount`, `amount_usd` | Deposited quantity and USD value |\n| EZ_LENDING_WITHDRAWS | `amount`, `amount_usd` | Withdrawn quantity and USD value |\n| EZ_LENDING_REPAYMENTS | `amount`, `amount_usd` | Repaid quantity and USD value |\n| EZ_LENDING_LIQUIDATIONS | `amount`, `amount_usd` | Liquidated collateral quantity and USD value |\n| EZ_LENDING_FLASHLOANS | `flashloan_amount`, `flashloan_amount_usd` | Flash borrowed quantity and USD value |\n\n### Protocol & Transaction Data\n| Column | Tables | Description |\n|--------|--------|-------------|\n| `platform` | All tables | Lending protocol (aave, compound, etc.) |\n| `block_timestamp` | All tables | Transaction timestamp |\n| `block_number` | All tables | Block number |\n| `tx_hash` | All tables | Transaction hash |\n| `event_index` | All tables | Event index within transaction |\n\n## Business Logic Rules\n\n### Lending Flow\n1. **Deposit**: User provides collateral (`deposits` table)\n2. **Borrow**: User borrows against collateral (`borrows` table)\n3. **Repay**: User repays borrowed amount (`repayments` table)\n4. **Withdraw**: User withdraws collateral (`withdraws` table)\n\n### Liquidation Triggers\n- Occurs when collateral value falls below required threshold\n- `liquidations` table captures collateral seizure events\n- Liquidator receives collateral at discount\n\n### Flash Loans\n- Borrow and repay in single transaction\n- Requires fee payment (`premium_amount`, `premium_amount_usd`)\n- Used for arbitrage, debt refinancing, or liquidation\n\n## Data Quality Notes\n\n### Null Handling\n- `amount_usd` may be NULL for tokens without price data\n- `event_index` may be NULL for trace-based transactions\n- Always use `COALESCE(amount_usd, 0)` in aggregations\n\n### Performance Considerations\n- Always filter by `block_timestamp` for large queries\n- Index on user columns (`borrower`, `depositor`) for user analysis\n- Use `token_address` for asset-specific queries\n\n### Common Platforms\n- aave, compound, maker, venus, benqi, moonwell\n- Platform names are lowercase and standardized\n\n## Analysis Patterns\n\n### User Position Analysis\n- Join deposits \u2194 withdrawals on `depositor` + `token_address`\n- Use `amount` (not `amount_usd`) for yield calculations\n- Track net position: deposits - withdrawals\n\n### Protocol Health Analysis\n- Monitor deposit/withdrawal ratios\n- Track liquidation frequency and size\n- Analyze flash loan usage patterns\n\n### Risk Analysis\n- Large withdrawals may indicate protocol stress\n- High liquidation rates suggest market volatility\n- Flash loan spikes may indicate arbitrage opportunities"}, "doc.fsc_evm.ez_lending_borrows_table_doc": {"name": "ez_lending_borrows_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_borrows_table_doc", "block_contents": "## What\n\nThis table provides a comprehensive view of borrowing transactions across all major lending protocols on EVM blockchains. It captures when users borrow assets against their deposited collateral, enabling analysis of lending market dynamics, user behavior, and protocol performance.\n\n## Key Use Cases\n\n- Tracking borrowing volumes and user activity across protocols\n- Analyzing most borrowed assets and their trends\n- Understanding user borrowing patterns and behavior\n- Monitoring protocol market share and growth\n- Calculating outstanding loan positions\n\n## Important Relationships\n\n- Links to `ez_lending_deposits` for collateral analysis\n- Joins with `ez_lending_repayments` to track loan lifecycle\n- References `ez_lending_liquidations` for risk analysis\n- Connects to `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `borrower`: Address that borrowed assets\n- `platform`: Lending protocol name\n- `token_address`/`token_symbol`: Borrowed asset details\n- `amount`/`amount_usd`: Borrowed quantity and USD value\n- `block_timestamp`: When borrow occurred\n\n## Sample queries\n\n```sql\n-- Daily borrowing volume by protocol\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(DISTINCT tx_hash) AS borrow_txns,\n COUNT(DISTINCT borrower) AS unique_borrowers,\n SUM(amount_usd) AS volume_usd\nFROM .defi.ez_lending_borrows\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 5 DESC;\n\n-- Top borrowed assets analysis\nSELECT \n token_symbol,\n token_address,\n COUNT(*) AS borrow_count,\n SUM(amount) AS total_borrowed,\n SUM(amount_usd) AS total_borrowed_usd,\n AVG(amount_usd) AS avg_borrow_size_usd\nFROM .defi.ez_lending_borrows\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND token_symbol IS NOT NULL\nGROUP BY 1, 2\nORDER BY 5 DESC\nLIMIT 20;\n\n-- Wallet Specific Borrow Analysis\nSELECT \n b.borrower,\n b.token_address AS borrowed_token_address,\n b.token_symbol AS borrowed_token_symbol,\n DATE_TRUNC('week', b.block_timestamp) AS weekly_block_timestamp,\n SUM(b.amount) AS total_borrow_amount,\n SUM(b.amount_usd) AS total_borrow_usd,\n SUM(r.amount) AS total_repayment_amount,\n SUM(r.amount_usd) AS total_repayment_usd,\n SUM(b.amount) - SUM(r.amount) AS net_borrowed_amount,\n SUM(b.amount_usd) - SUM(r.amount_usd) AS net_borrowed_usd\nFROM \n .defi.ez_lending_borrows b\nLEFT JOIN .defi.ez_lending_repayments r\n ON b.borrower = r.borrower\n AND b.token_address = r.token_address\nWHERE \n b.borrower = LOWER('')\nGROUP BY 1, 2, 3, 4\n\n-- User borrowing patterns\nWITH user_stats AS (\n SELECT \n borrower,\n COUNT(DISTINCT DATE_TRUNC('day', block_timestamp)) AS active_days,\n COUNT(DISTINCT platform) AS platforms_used,\n COUNT(DISTINCT token_address) AS assets_borrowed,\n SUM(amount_usd) AS total_borrowed_usd,\n AVG(amount_usd) AS avg_borrow_size\n FROM .defi.ez_lending_borrows\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n CASE \n WHEN total_borrowed_usd < 1000 THEN '< $1K'\n WHEN total_borrowed_usd < 10000 THEN '$1K - $10K'\n WHEN total_borrowed_usd < 100000 THEN '$10K - $100K'\n ELSE '> $100K'\n END AS borrower_tier,\n COUNT(*) AS user_count,\n AVG(active_days) AS avg_active_days,\n AVG(platforms_used) AS avg_platforms,\n AVG(total_borrowed_usd) AS avg_total_borrowed\nFROM user_stats\nGROUP BY 1\nORDER BY 5 DESC;\n\n-- Protocol market share\nWITH protocol_volume AS (\n SELECT \n platform,\n SUM(amount_usd) AS total_volume,\n COUNT(DISTINCT borrower) AS unique_users,\n COUNT(*) AS transaction_count\n FROM .defi.ez_lending_borrows\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n platform,\n total_volume,\n total_volume * 100.0 / SUM(total_volume) OVER () AS market_share_pct,\n unique_users,\n transaction_count,\n total_volume / transaction_count AS avg_borrow_size\nFROM protocol_volume\nORDER BY total_volume DESC;\n```"}, "doc.fsc_evm.ez_lending_deposits_table_doc": {"name": "ez_lending_deposits_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_deposits_table_doc", "block_contents": "## What\n\nThis table tracks all deposit transactions across lending protocols on EVM blockchains. Deposits represent users supplying liquidity to lending pools, earning yield while enabling their assets to serve as collateral for borrowing.\n\n## Key Use Cases\n\n- Calculating total value locked (TVL) by protocol\n- Analyzing deposit and withdrawal patterns\n- Tracking user liquidity provision behavior\n- Monitoring asset distribution across protocols\n- Identifying whale depositor activity\n\n## Important Relationships\n\n- Links to `ez_lending_borrows` for collateralization analysis\n- Joins with `ez_lending_withdraws` to track position lifecycle\n- References protocol-specific token contracts (aTokens, cTokens, etc.)\n- Connects to `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `depositor`: Address supplying liquidity\n- `platform`: Lending protocol name\n- `token_address`/`token_symbol`: Deposited asset details\n- `amount`/`amount_usd`: Deposit quantity and USD value\n- `block_timestamp`: When deposit occurred\n\n## Sample queries\n\n```sql\n-- Daily deposit volume and TVL calculation\nWITH daily_metrics AS (\n SELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n SUM(amount_usd) AS daily_deposits_usd,\n COUNT(DISTINCT depositor) AS unique_depositors\n FROM .defi.ez_lending_deposits\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n GROUP BY 1, 2\n),\ndaily_withdrawals AS (\n SELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n SUM(amount_usd) AS daily_withdrawals_usd\n FROM .defi.ez_lending_withdraws\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n GROUP BY 1, 2\n)\nSELECT \n m.date,\n m.platform,\n m.daily_deposits_usd,\n COALESCE(w.daily_withdrawals_usd, 0) AS daily_withdrawals_usd,\n m.daily_deposits_usd - COALESCE(w.daily_withdrawals_usd, 0) AS net_flow_usd,\n SUM(m.daily_deposits_usd - COALESCE(w.daily_withdrawals_usd, 0)) \n OVER (PARTITION BY m.platform ORDER BY m.date) AS cumulative_tvl_estimate\nFROM daily_metrics m\nLEFT JOIN daily_withdrawals w ON m.date = w.date AND m.platform = w.platform\nORDER BY m.date DESC, m.platform;\n\n-- Wallet level deposit and withdraw analysis\nSELECT \n d.depositor,\n d.token_address AS collateral_token_address,\n d.token_symbol AS collateral_token_symbol,\n DATE_TRUNC('week', d.block_timestamp) AS weekly_block_timestamp,\n SUM(d.amount) AS total_deposit_amount,\n SUM(d.amount_usd) AS total_deposit_usd,\n SUM(w.amount) AS total_withdraw_amount,\n SUM(w.amount_usd) AS total_withdraw_usd,\n SUM(d.amount) - SUM(w.amount) AS net_collateral_amount,\n SUM(d.amount_usd) - SUM(w.amount_usd) AS net_collateral_usd\nFROM \n .defi.ez_lending_deposits d\nLEFT JOIN .defi.ez_lending_withdraws w\n ON d.depositor = w.depositor\n AND d.token_address = w.token_address\nWHERE \n d.depositor = LOWER('')\nGROUP BY 1, 2, 3, 4;\n\n-- Depositor behavior analysis\nWITH depositor_activity AS (\n SELECT \n depositor,\n COUNT(DISTINCT platform) AS platforms_used,\n COUNT(DISTINCT token_address) AS unique_assets,\n SUM(amount_usd) AS total_deposited_usd,\n MAX(block_timestamp) AS last_deposit,\n MIN(block_timestamp) AS first_deposit\n FROM .defi.ez_lending_deposits\n WHERE amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n CASE \n WHEN platforms_used = 1 THEN 'Single Protocol'\n WHEN platforms_used = 2 THEN 'Two Protocols'\n ELSE 'Multi-Protocol'\n END AS user_type,\n COUNT(*) AS user_count,\n AVG(total_deposited_usd) AS avg_deposit_size,\n AVG(unique_assets) AS avg_assets_deposited,\n AVG(DATEDIFF('day', first_deposit, last_deposit)) AS avg_active_days\nFROM depositor_activity\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Asset distribution by protocol\nSELECT \n platform,\n token_symbol,\n COUNT(*) AS deposit_transactions,\n SUM(amount) AS total_amount,\n SUM(amount_usd) AS total_usd,\n SUM(amount_usd) * 100.0 / SUM(SUM(amount_usd)) OVER (PARTITION BY platform) AS pct_of_protocol\nFROM .defi.ez_lending_deposits\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n AND token_symbol IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1, 6 DESC;\n\n-- Large deposits monitoring (whale activity)\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n depositor,\n token_symbol,\n amount,\n amount_usd\nFROM .defi.ez_lending_deposits\nWHERE amount_usd > 1000000\n AND block_timestamp >= CURRENT_DATE - 7\nORDER BY amount_usd DESC;\n```"}, "doc.fsc_evm.ez_lending_flashloans_table_doc": {"name": "ez_lending_flashloans_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_flashloans_table_doc", "block_contents": "## What\n\nThis table captures flash loan transactions across lending protocols. Flash loans enable borrowing without collateral within a single transaction, provided the loan plus fees are repaid before transaction completion. This advanced DeFi primitive is primarily used for arbitrage, collateral swapping, and liquidations.\n\n## Key Use Cases\n\n- Analyzing arbitrage and MEV activity patterns\n- Tracking flash loan volume and fee revenue\n- Identifying power users and bot activity\n- Monitoring large-scale DeFi operations\n- Understanding cross-protocol composability\n\n## Important Relationships\n\n- Often precedes transactions in DEX tables for arbitrage analysis\n- Links to `ez_lending_liquidations` for liquidation strategies\n- May connect to multiple protocols within single transaction\n- References `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `initiator`: Address that triggered the flash loan\n- `platform`: Lending protocol providing the loan\n- `flashloan_token`/`flashloan_token_symbol`: Borrowed asset\n- `flashloan_amount`/`flashloan_amount_usd`: Loan size\n- `premium_amount`/`premium_amount_usd`: Fee paid\n\n## Sample queries\n\n```sql\n-- Daily flash loan volume and fees\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(*) AS flashloan_count,\n SUM(flashloan_amount_usd) AS total_volume_usd,\n SUM(premium_amount_usd) AS total_fees_usd,\n AVG(premium_amount_usd / NULLIF(flashloan_amount_usd, 0) * 100) AS avg_fee_rate_pct\nFROM .defi.ez_lending_flashloans\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND flashloan_amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 4 DESC;\n\n-- Most flash loaned assets\nSELECT \n flashloan_token_symbol,\n flashloan_token,\n COUNT(*) AS loan_count,\n SUM(flashloan_amount) AS total_amount,\n SUM(flashloan_amount_usd) AS total_volume_usd,\n AVG(flashloan_amount_usd) AS avg_loan_size_usd,\n SUM(premium_amount_usd) AS total_fees_collected\nFROM .defi.ez_lending_flashloans\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND flashloan_token_symbol IS NOT NULL\nGROUP BY 1, 2\nORDER BY 5 DESC\nLIMIT 20;\n\n-- Flash loan user analysis\nWITH flashloan_users AS (\n SELECT \n initiator,\n COUNT(*) AS flashloan_count,\n COUNT(DISTINCT DATE_TRUNC('day', block_timestamp)) AS active_days,\n COUNT(DISTINCT platform) AS protocols_used,\n SUM(flashloan_amount_usd) AS total_borrowed_usd,\n SUM(premium_amount_usd) AS total_fees_paid_usd\n FROM .defi.ez_lending_flashloans\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND flashloan_amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n CASE \n WHEN flashloan_count = 1 THEN 'One-time User'\n WHEN flashloan_count <= 10 THEN 'Occasional User'\n WHEN flashloan_count <= 100 THEN 'Regular User'\n ELSE 'Power User'\n END AS user_category,\n COUNT(*) AS user_count,\n SUM(total_borrowed_usd) AS category_volume_usd,\n AVG(total_fees_paid_usd) AS avg_fees_per_user\nFROM flashloan_users\nGROUP BY 1\nORDER BY 3 DESC;\n\n-- Large flash loans (potential arbitrage/liquidations)\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n initiator,\n target,\n flashloan_token_symbol,\n flashloan_amount_usd,\n premium_amount_usd,\n premium_amount_usd / NULLIF(flashloan_amount_usd, 0) * 100 AS fee_rate_pct\nFROM .defi.ez_lending_flashloans\nWHERE flashloan_amount_usd > 1000000\n AND block_timestamp >= CURRENT_DATE - 1\nORDER BY flashloan_amount_usd DESC;\n\n-- Wallet-specific flash loan analysis\nSELECT \n initiator,\n platform,\n flashloan_token_symbol,\n COUNT(*) AS flashloan_count,\n SUM(flashloan_amount_usd) AS total_borrowed_usd,\n SUM(premium_amount_usd) AS total_fees_paid_usd,\n AVG(premium_amount_usd / NULLIF(flashloan_amount_usd, 0) * 100) AS avg_fee_rate_pct,\n MIN(block_timestamp) AS first_flashloan,\n MAX(block_timestamp) AS last_flashloan,\n COUNT(DISTINCT DATE_TRUNC('day', block_timestamp)) AS active_days\nFROM .defi.ez_lending_flashloans\nWHERE initiator = LOWER('')\n AND block_timestamp >= CURRENT_DATE - 30\n AND flashloan_amount_usd IS NOT NULL\nGROUP BY 1, 2, 3\nORDER BY total_borrowed_usd DESC;\n```"}, "doc.fsc_evm.ez_lending_liquidations_table_doc": {"name": "ez_lending_liquidations_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_liquidations_table_doc", "block_contents": "## What\n\nThis table tracks liquidation events across lending protocols, where under-collateralized positions are forcibly closed to protect protocol solvency. Liquidations occur when a borrower's health factor drops below 1, typically due to collateral value decline or debt value increase.\n\n## Key Use Cases\n\n- Monitoring protocol health and risk levels\n- Analyzing liquidation patterns during market volatility\n- Tracking liquidator profitability and competition\n- Understanding collateral risk profiles\n- Identifying frequently liquidated borrowers\n\n## Important Relationships\n\n- Links to `ez_lending_borrows` for original loan details\n- Connects to `ez_lending_deposits` for collateral information\n- Often preceded by entries in `ez_lending_flashloans`\n- References `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `borrower`: Address that was liquidated\n- `liquidator`: Address performing the liquidation\n- `platform`: Lending protocol\n- `collateral_token`/`debt_token`: Asset pair involved\n- `amount`/`amount_usd`: Collateral seized\n\n## Sample queries\n\n```sql\n-- Daily liquidation volume and metrics\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(*) AS liquidation_count,\n COUNT(DISTINCT borrower) AS unique_borrowers_liquidated,\n SUM(amount_usd) AS total_debt_covered_usd,\n SUM(amount_usd) AS total_collateral_liquidated_usd,\n AVG(amount_usd / NULLIF(amount_usd, 0) - 1) * 100 AS avg_liquidation_bonus_pct\nFROM .defi.ez_lending_liquidations\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 5 DESC;\n\n-- Most liquidated asset pairs\nSELECT \n collateral_token,\n collateral_token_symbol,\n debt_token,\n debt_token_symbol,\n COUNT(*) AS liquidation_count,\n SUM(amount_usd) AS total_collateral_liquidated_usd,\n AVG(amount_usd) AS avg_liquidation_size_usd\nFROM .defi.ez_lending_liquidations\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND collateral_token_symbol IS NOT NULL\n AND debt_token_symbol IS NOT NULL\nGROUP BY 1, 2, 3, 4\nORDER BY 6 DESC\nLIMIT 20;\n\n-- Liquidator analysis\nWITH liquidator_stats AS (\n SELECT \n liquidator,\n COUNT(*) AS liquidations_performed,\n SUM(amount_usd) AS total_collateral_received_usd,\n FROM .defi.ez_lending_liquidations\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n CASE \n WHEN liquidations_performed = 1 THEN 'Opportunistic'\n WHEN liquidations_performed <= 10 THEN 'Active'\n WHEN liquidations_performed <= 100 THEN 'Professional'\n ELSE 'Bot/High Frequency'\n END AS liquidator_type,\n COUNT(*) AS liquidator_count,\n SUM(total_collateral_received_usd) as total_collateral_received_usd\n SUM(liquidations_performed) AS total_liquidations\nFROM liquidator_stats\nGROUP BY 1\nORDER BY 3 DESC;\n\n-- Large liquidations monitoring\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n borrower,\n liquidator,\n collateral_token_symbol,\n debt_token_symbol,\n amount_usd,\nFROM .defi.ez_lending_liquidations\nWHERE amount_usd > 10000\n AND block_timestamp >= CURRENT_DATE - 14\nORDER BY amount_usd DESC;\n\n-- Borrower liquidation history\nWITH borrower_liquidations AS (\n SELECT \n borrower,\n COUNT(*) AS times_liquidated,\n COUNT(DISTINCT DATE_TRUNC('day', block_timestamp)) AS liquidation_days,\n SUM(amount_usd) AS total_collateral_lost_usd,\n ARRAY_AGG(DISTINCT platform) AS platforms_liquidated_on\n FROM .defi.ez_lending_liquidations\n WHERE block_timestamp >= CURRENT_DATE - 90\n AND amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n times_liquidated,\n platforms_liquidated_on,\n COUNT(*) AS borrower_count,\n AVG(total_collateral_lost_usd) AS avg_loss_from_liquidation\nFROM borrower_liquidations\nGROUP BY 1, 2\nORDER BY 1, 2;\n```"}, "doc.fsc_evm.ez_lending_repayments_table_doc": {"name": "ez_lending_repayments_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_repayments_table_doc", "block_contents": "## What\n\nThis table contains loan repayment transactions across lending protocols. Repayments reduce or eliminate outstanding debt positions, with amounts including both principal and accrued interest. Understanding repayment patterns helps analyze user behavior and protocol health.\n\n## Key Use Cases\n\n- Tracking loan lifecycle and duration analysis\n- Calculating interest paid on borrowed positions\n- Understanding repayment patterns by user segment\n- Monitoring protocol revenue from interest\n- Analyzing third-party repayment activity\n\n## Important Relationships\n\n- Links to `ez_lending_borrows` for original loan details\n- Connects to `ez_lending_liquidations` (forced repayments)\n- May reference `ez_lending_deposits` for collateral release\n- Uses `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `borrower`: Address with the loan\n- `payer`: Address making the payment (may differ)\n- `platform`: Lending protocol\n- `token_address`/`token_symbol`: Repaid asset\n- `amount`/`amount_usd`: Repayment quantity\n\n## Sample queries\n\n```sql\n-- Daily repayment volume and metrics\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(*) AS repayment_count,\n COUNT(DISTINCT borrower) AS unique_borrowers,\n SUM(amount_usd) AS total_repaid_usd,\n AVG(amount_usd) AS avg_repayment_size_usd\nFROM .defi.ez_lending_repayments\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 5 DESC;\n\n-- Loan duration analysis\nWITH loan_lifecycles AS (\n SELECT \n b.borrower,\n b.platform,\n b.token_symbol,\n b.block_timestamp AS borrow_time,\n MIN(r.block_timestamp) AS first_repayment_time,\n SUM(b.amount_usd) AS borrowed_usd,\n SUM(r.amount_usd) AS total_repaid_usd\n FROM .defi.ez_lending_borrows b\n INNER JOIN .defi.ez_lending_repayments r\n ON b.borrower = r.borrower\n AND b.platform = r.platform\n AND b.token_address = r.token_address\n AND r.block_timestamp > b.block_timestamp\n WHERE b.block_timestamp >= CURRENT_DATE - 90\n AND b.amount_usd IS NOT NULL\n AND r.amount_usd IS NOT NULL\n GROUP BY 1, 2, 3, 4\n)\nSELECT \n platform,\n token_symbol,\n AVG(DATEDIFF('day', borrow_time, first_repayment_time)) AS avg_days_to_first_repayment,\n PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY DATEDIFF('day', borrow_time, first_repayment_time)) AS median_days,\n COUNT(*) AS loan_count,\n AVG(total_repaid_usd / NULLIF(borrowed_usd, 0) - 1) * 100 AS avg_interest_paid_pct\nFROM loan_lifecycles\nGROUP BY 1, 2\nHAVING COUNT(*) > 10\nORDER BY 3;\n\n-- Repayment patterns by user segment\nWITH user_repayment_stats AS (\n SELECT \n borrower,\n COUNT(*) AS repayment_count,\n SUM(amount_usd) AS total_repaid_usd,\n AVG(amount_usd) AS avg_repayment_size,\n COUNT(DISTINCT DATE_TRUNC('month', block_timestamp)) AS active_months,\n COUNT(DISTINCT token_address) AS unique_assets_repaid\n FROM .defi.ez_lending_repayments\n WHERE block_timestamp >= CURRENT_DATE - 180\n AND amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n CASE \n WHEN total_repaid_usd < 1000 THEN 'Micro (<$1K)'\n WHEN total_repaid_usd < 10000 THEN 'Small ($1K-$10K)'\n WHEN total_repaid_usd < 100000 THEN 'Medium ($10K-$100K)'\n WHEN total_repaid_usd < 1000000 THEN 'Large ($100K-$1M)'\n ELSE 'Whale (>$1M)'\n END AS borrower_segment,\n COUNT(*) AS borrower_count,\n AVG(repayment_count) AS avg_repayments_per_user,\n AVG(avg_repayment_size) AS avg_repayment_size,\n AVG(active_months) AS avg_active_months\nFROM user_repayment_stats\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Asset-specific repayment velocity\nSELECT \n token_symbol,\n platform,\n COUNT(*) AS repayment_transactions,\n COUNT(DISTINCT borrower) AS unique_repayers,\n SUM(amount_usd) AS total_usd_repaid,\n AVG(amount_usd) AS avg_repayment_usd,\n SUM(amount_usd) / COUNT(DISTINCT DATE_TRUNC('day', block_timestamp)) AS daily_velocity_usd\nFROM .defi.ez_lending_repayments\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND token_symbol IS NOT NULL\n AND amount_usd IS NOT NULL\nGROUP BY 1, 2\nHAVING COUNT(*) > 50\nORDER BY 8 DESC;\n\n-- Large repayments monitoring\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n borrower,\n payer,\n token_symbol,\n amount_usd,\n CASE WHEN borrower = payer THEN 'Self' ELSE 'Third-party' END AS repayment_type\nFROM .defi.ez_lending_repayments\nWHERE amount_usd > 500000\n AND block_timestamp >= CURRENT_DATE - 7\nORDER BY amount_usd DESC;\n```"}, "doc.fsc_evm.ez_lending_withdraws_table_doc": {"name": "ez_lending_withdraws_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_withdraws_table_doc", "block_contents": "## What\n\nThis table tracks withdrawal transactions where users remove their supplied liquidity from lending protocols. Withdrawals include the original deposit plus earned interest, subject to available liquidity in the protocol.\n\n## Key Use Cases\n\n- Monitoring liquidity flows and protocol health\n- Detecting potential bank run scenarios\n- Calculating realized yields for depositors\n- Analyzing withdrawal patterns and timing\n- Tracking large withdrawals that may impact rates\n\n## Important Relationships\n\n- Links to `ez_lending_deposits` for position lifecycle\n- Affected by `ez_lending_borrows` (reduces available liquidity)\n- Increased by `ez_lending_repayments` (adds liquidity)\n- References `price.ez_prices_hourly` for USD valuations\n\n## Commonly-used Fields\n\n- `depositor`: Address withdrawing funds\n- `platform`: Lending protocol\n- `token_address`/`token_symbol`: Withdrawn asset\n- `amount`/`amount_usd`: Withdrawal quantity including interest\n- `block_timestamp`: When withdrawal occurred\n\n## Sample queries\n\n```sql\n-- Daily withdrawal patterns\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(*) AS withdrawal_count,\n COUNT(DISTINCT depositor) AS unique_withdrawers,\n SUM(amount_usd) AS total_withdrawn_usd,\n AVG(amount_usd) AS avg_withdrawal_size_usd\nFROM .defi.ez_lending_withdraws\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 5 DESC;\n\n-- Platform liquidity analysis (deposits vs withdrawals)\nWITH platform_deposits AS (\n SELECT \n platform,\n token_address,\n token_symbol,\n COUNT(DISTINCT depositor) AS unique_depositors,\n SUM(amount) AS total_deposited_tokens,\n SUM(amount_usd) AS total_deposited_usd,\n COUNT(*) AS deposit_transactions,\n AVG(amount_usd) AS avg_deposit_size_usd\n FROM .defi.ez_lending_deposits\n WHERE block_timestamp >= CURRENT_DATE - 90\n AND amount IS NOT NULL\n GROUP BY 1, 2, 3\n),\nplatform_withdrawals AS (\n SELECT \n platform,\n token_address,\n token_symbol,\n COUNT(DISTINCT depositor) AS unique_withdrawers,\n SUM(amount) AS total_withdrawn_tokens,\n SUM(amount_usd) AS total_withdrawn_usd,\n COUNT(*) AS withdrawal_transactions,\n AVG(amount_usd) AS avg_withdrawal_size_usd\n FROM .defi.ez_lending_withdraws\n WHERE block_timestamp >= CURRENT_DATE - 90\n AND amount IS NOT NULL\n GROUP BY 1, 2, 3\n)\nSELECT \n COALESCE(d.platform, w.platform) AS platform,\n COALESCE(d.token_address, w.token_address) AS token_address,\n COALESCE(d.token_symbol, w.token_symbol) AS token_symbol,\n d.unique_depositors,\n w.unique_withdrawers,\n d.total_deposited_usd,\n w.total_withdrawn_usd,\n (d.total_deposited_usd - COALESCE(w.total_withdrawn_usd, 0)) AS net_deposits_usd,\n d.deposit_transactions,\n w.withdrawal_transactions,\n d.avg_deposit_size_usd,\n w.avg_withdrawal_size_usd\nFROM platform_deposits d\nFULL OUTER JOIN platform_withdrawals w\n ON d.platform = w.platform\n AND d.token_address = w.token_address\nWHERE COALESCE(d.total_deposited_usd, 0) > 100000\n OR COALESCE(w.total_withdrawn_usd, 0) > 100000\nORDER BY net_deposits_usd DESC;\n\n-- Liquidity stress analysis\nWITH hourly_flows AS (\n SELECT \n DATE_TRUNC('hour', block_timestamp) AS hour,\n platform,\n token_symbol,\n 0 AS deposits_usd,\n SUM(amount_usd) AS withdrawals_usd\n FROM .defi.ez_lending_withdraws\n WHERE block_timestamp >= CURRENT_DATE - 7\n AND amount_usd IS NOT NULL\n GROUP BY 1, 2, 3\n \n UNION ALL\n \n SELECT \n DATE_TRUNC('hour', block_timestamp) AS hour,\n platform,\n token_symbol,\n SUM(amount_usd) AS deposits_usd,\n 0 AS withdrawals_usd\n FROM .defi.ez_lending_deposits\n WHERE block_timestamp >= CURRENT_DATE - 7\n AND amount_usd IS NOT NULL\n GROUP BY 1, 2, 3\n)\nSELECT \n hour,\n platform,\n token_symbol,\n SUM(deposits_usd) AS hourly_deposits,\n SUM(withdrawals_usd) AS hourly_withdrawals,\n SUM(deposits_usd - withdrawals_usd) AS net_flow,\n SUM(SUM(deposits_usd - withdrawals_usd)) OVER (\n PARTITION BY platform, token_symbol \n ORDER BY hour\n ) AS cumulative_flow\nFROM hourly_flows\nGROUP BY 1, 2, 3\nHAVING SUM(withdrawals_usd) > 10000\nORDER BY 1 DESC, 6;\n\n-- Large withdrawals monitoring (potential bank run indicators)\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n depositor,\n token_symbol,\n amount AS withdrawn_tokens,\n amount_usd AS withdrawn_usd,\n LAG(amount_usd) OVER (PARTITION BY platform, token_symbol ORDER BY block_timestamp) AS prev_withdrawal_usd,\n amount_usd / NULLIF(LAG(amount_usd) OVER (PARTITION BY platform, token_symbol ORDER BY block_timestamp), 0) AS size_multiplier\nFROM .defi.ez_lending_withdraws\nWHERE amount_usd > 1000000\n AND block_timestamp >= CURRENT_DATE - 3\nORDER BY withdrawn_usd DESC;\n\n-- Withdrawal timing patterns\nSELECT \n EXTRACT(HOUR FROM block_timestamp) AS hour_of_day,\n COUNT(*) AS withdrawal_count,\n SUM(amount_usd) AS total_withdrawn_usd,\n AVG(amount_usd) AS avg_withdrawal_size\nFROM .defi.ez_lending_withdraws\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\nGROUP BY 1\nORDER BY 1;\n```"}, "doc.fsc_evm.ez_lending_platform": {"name": "ez_lending_platform", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_platform", "block_contents": "The lending protocol where the transaction occurred.\n\nExample: 'aave'"}, "doc.fsc_evm.ez_lending_borrower": {"name": "ez_lending_borrower", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_borrower", "block_contents": "The address that initiated a borrow or repayment transaction.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "doc.fsc_evm.ez_lending_amount": {"name": "ez_lending_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_amount", "block_contents": "The decimal-adjusted quantity of tokens in the transaction.\n\nExample: 1000.5"}, "doc.fsc_evm.ez_lending_amount_usd": {"name": "ez_lending_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_amount_usd", "block_contents": "The USD value of tokens at transaction time.\n\nExample: 1500.75"}, "doc.fsc_evm.ez_lending_liquidator": {"name": "ez_lending_liquidator", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_liquidator", "block_contents": "The address that performed the liquidation.\n\nExample: '0xabcdefabcdefabcdefabcdefabcdefabcdefabcd'"}, "doc.fsc_evm.ez_lending_depositor": {"name": "ez_lending_depositor", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_depositor", "block_contents": "The address that supplied liquidity to the lending protocol.\n\nExample: '0x9876543210987654321098765432109876543210'"}, "doc.fsc_evm.ez_lending_flashloan_amount_usd": {"name": "ez_lending_flashloan_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_flashloan_amount_usd", "block_contents": "The USD value of assets borrowed in a flash loan.\n\nExample: 1000000.50"}, "doc.fsc_evm.ez_lending_protocol_token": {"name": "ez_lending_protocol_token", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_protocol_token", "block_contents": "The lending protocol's receipt token issued to depositors.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'"}, "doc.fsc_evm.ez_lending_token_address": {"name": "ez_lending_token_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_token_address", "block_contents": "The contract address of the underlying asset being lent or borrowed.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "doc.fsc_evm.ez_lending_token_symbol": {"name": "ez_lending_token_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_token_symbol", "block_contents": "The ticker symbol of the asset involved in the lending transaction.\n\nExample: 'USDC'"}, "doc.fsc_evm.ez_lending_initiator": {"name": "ez_lending_initiator", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_initiator", "block_contents": "The address that triggered the flash loan execution.\n\nExample: '0x7a250d5630b4cf539739df2c5dacb4c659f2488d'"}, "doc.fsc_evm.ez_lending_target": {"name": "ez_lending_target", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_target", "block_contents": "The contract address that receives and executes the flash loan logic.\n\nExample: '0x1111111254fb6c44bac0bed2854e76f90643097d'"}, "doc.fsc_evm.ez_lending_flashloan_token": {"name": "ez_lending_flashloan_token", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_flashloan_token", "block_contents": "The contract address of the token borrowed in the flash loan.\n\nExample: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n\nThis column will be deprecated October 13th, please update to token_address."}, "doc.fsc_evm.ez_lending_flashloan_token_symbol": {"name": "ez_lending_flashloan_token_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_flashloan_token_symbol", "block_contents": "The symbol of the token borrowed in the flash loan.\n\nExample: 'WETH'\n\nThis column will be deprecated October 13th, please update to token_symbol."}, "doc.fsc_evm.ez_lending_flashloan_amount_unadj": {"name": "ez_lending_flashloan_amount_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_flashloan_amount_unadj", "block_contents": "The raw amount of tokens borrowed without decimal adjustment.\n\nExample: 1000000000000000000"}, "doc.fsc_evm.ez_lending_flashloan_amount": {"name": "ez_lending_flashloan_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_flashloan_amount", "block_contents": "The decimal-adjusted amount of tokens borrowed in the flash loan.\n\nExample: 1.0"}, "doc.fsc_evm.ez_lending_premium_amount_unadj": {"name": "ez_lending_premium_amount_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_premium_amount_unadj", "block_contents": "The raw fee amount charged for the flash loan.\n\nExample: 900000000000000"}, "doc.fsc_evm.ez_lending_premium_amount": {"name": "ez_lending_premium_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_premium_amount", "block_contents": "The decimal-adjusted fee paid for the flash loan.\n\nExample: 0.0009"}, "doc.fsc_evm.ez_lending_premium_amount_usd": {"name": "ez_lending_premium_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_premium_amount_usd", "block_contents": "The USD value of the flash loan fee.\n\nExample: 0.90"}, "doc.fsc_evm.ez_lending_collateral_token": {"name": "ez_lending_collateral_token", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_collateral_token", "block_contents": "The token contract address used as collateral in a liquidation.\n\nExample: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'"}, "doc.fsc_evm.ez_lending_collateral_token_symbol": {"name": "ez_lending_collateral_token_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_collateral_token_symbol", "block_contents": "The symbol of the asset used as collateral in liquidations.\n\nExample: 'WETH'"}, "doc.fsc_evm.ez_lending_debt_token": {"name": "ez_lending_debt_token", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_debt_token", "block_contents": "The token contract address that was borrowed and is being repaid in liquidation.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "doc.fsc_evm.ez_lending_debt_token_symbol": {"name": "ez_lending_debt_token_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_debt_token_symbol", "block_contents": "The symbol of the borrowed asset being repaid in liquidation.\n\nExample: 'USDC'"}, "doc.fsc_evm.ez_lending_amount_unadj": {"name": "ez_lending_amount_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_amount_unadj", "block_contents": "The raw amount of tokens borrowed or repaid without decimal adjustment.\n\nExample: 1000000000"}, "doc.fsc_evm.ez_lending_payer": {"name": "ez_lending_payer", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_payer", "block_contents": "The address that paid the loan or deposit.\n\nExample: '0x5555555555555555555555555555555555555555'"}, "doc.fsc_evm.ez_lending_ohlc_rates_table_doc": {"name": "ez_lending_ohlc_rates_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_ohlc_rates_table_doc", "block_contents": "## What\n\nThis table provides OHLC (Open, High, Low, Close) interest rate data for lending protocols, aggregated by day. It tracks supply, stable borrow, and variable borrow rates with forward-filling for missing data points, enabling analysis of interest rate trends and volatility across lending markets.\n\n## Key Use Cases\n\n- Analyzing interest rate trends and volatility over time\n- Comparing rates across different lending protocols and assets\n- Monitoring rate changes during market events\n- Calculating average rates for yield analysis\n- Identifying rate arbitrage opportunities\n\n## Important Relationships\n\n- Links to individual protocol interest rate models (e.g., Aave)\n- Can be joined with `ez_lending_deposits` and `ez_lending_borrows` for yield analysis\n- References `price.ez_prices_hourly` for USD valuations\n- Connects to protocol-specific token contracts\n\n## Commonly-used Fields\n\n- `day`: Date for the OHLC data\n- `protocol`/`platform`: Lending protocol details\n- `token_address`/`token_symbol`: Asset being tracked\n- `supply_rate_*`: Supply interest rate OHLC values\n- `stable_borrow_rate_*`: Stable borrow rate OHLC values\n- `variable_borrow_rate_*`: Variable borrow rate OHLC values\n\n## Sample queries\n\n```sql\n-- Daily interest rate volatility analysis\nSELECT \n day,\n protocol,\n platform,\n token_symbol,\n -- Supply rate volatility\n (supply_rate_high - supply_rate_low) / NULLIF(supply_rate_low, 0) * 100 AS supply_rate_volatility_pct,\n -- Variable borrow rate volatility\n (variable_borrow_rate_high - variable_borrow_rate_low) / NULLIF(variable_borrow_rate_low, 0) * 100 AS variable_borrow_volatility_pct,\n -- Rate spread\n variable_borrow_rate_close - supply_rate_close AS rate_spread,\n rate_updates_count\nFROM .defi.ez_ohlc_rates\nWHERE day >= CURRENT_DATE - 30\n AND token_symbol IS NOT NULL\nORDER BY day DESC, supply_rate_volatility_pct DESC;\n\n-- Protocol comparison - average rates\nSELECT \n protocol,\n platform,\n token_symbol,\n AVG(supply_rate_close) AS avg_supply_rate,\n AVG(variable_borrow_rate_close) AS avg_variable_borrow_rate,\n AVG(stable_borrow_rate_close) AS avg_stable_borrow_rate,\n AVG(variable_borrow_rate_close - supply_rate_close) AS avg_rate_spread,\n COUNT(*) AS days_with_data\nFROM .defi.ez_ohlc_rates\nWHERE day >= CURRENT_DATE - 90\n AND token_symbol IS NOT NULL\nGROUP BY 1, 2, 3\nHAVING COUNT(*) > 30\nORDER BY avg_rate_spread DESC;\n\n-- Interest rate trends over time\nWITH rate_trends AS (\n SELECT \n day,\n protocol,\n token_symbol,\n supply_rate_close,\n variable_borrow_rate_close,\n stable_borrow_rate_close,\n LAG(supply_rate_close, 7) OVER (PARTITION BY protocol, token_symbol ORDER BY day) AS supply_rate_week_ago,\n LAG(variable_borrow_rate_close, 7) OVER (PARTITION BY protocol, token_symbol ORDER BY day) AS variable_borrow_rate_week_ago\n FROM .defi.ez_ohlc_rates\n WHERE day >= CURRENT_DATE - 30\n AND token_symbol IS NOT NULL\n)\nSELECT \n day,\n protocol,\n token_symbol,\n supply_rate_close,\n (supply_rate_close - supply_rate_week_ago) / NULLIF(supply_rate_week_ago, 0) * 100 AS supply_rate_change_7d_pct,\n variable_borrow_rate_close,\n (variable_borrow_rate_close - variable_borrow_rate_week_ago) / NULLIF(variable_borrow_rate_week_ago, 0) * 100 AS variable_borrow_rate_change_7d_pct\nFROM rate_trends\nWHERE supply_rate_week_ago IS NOT NULL\nORDER BY day DESC, ABS(supply_rate_change_7d_pct) DESC;\n\n-- Most volatile interest rate assets\nSELECT \n protocol,\n platform,\n token_symbol,\n STDDEV(supply_rate_close) AS supply_rate_stddev,\n STDDEV(variable_borrow_rate_close) AS variable_borrow_rate_stddev,\n AVG(supply_rate_close) AS avg_supply_rate,\n AVG(variable_borrow_rate_close) AS avg_variable_borrow_rate,\n COUNT(*) AS days_with_data\nFROM .defi.ez_ohlc_rates\nWHERE day >= CURRENT_DATE - 90\n AND token_symbol IS NOT NULL\nGROUP BY 1, 2, 3\nHAVING COUNT(*) > 30\nORDER BY supply_rate_stddev DESC\nLIMIT 20;\n\n-- Rate update frequency analysis\nSELECT \n protocol,\n platform,\n token_symbol,\n AVG(rate_updates_count) AS avg_daily_updates,\n MAX(rate_updates_count) AS max_daily_updates,\n COUNT(*) AS days_with_data,\n SUM(rate_updates_count) AS total_updates\nFROM .defi.ez_ohlc_rates\nWHERE day >= CURRENT_DATE - 30\n AND token_symbol IS NOT NULL\nGROUP BY 1, 2, 3\nORDER BY avg_daily_updates DESC;\n\n-- Asset-specific rate analysis\nSELECT \n day,\n protocol,\n platform,\n token_symbol,\n supply_rate_open,\n supply_rate_high,\n supply_rate_low,\n supply_rate_close,\n variable_borrow_rate_open,\n variable_borrow_rate_high,\n variable_borrow_rate_low,\n variable_borrow_rate_close,\n stable_borrow_rate_open,\n stable_borrow_rate_high,\n stable_borrow_rate_low,\n stable_borrow_rate_close,\n rate_updates_count\nFROM .defi.ez_ohlc_rates\nWHERE token_symbol = 'USDC'\n AND protocol = 'aave'\n AND day >= CURRENT_DATE - 7\nORDER BY day DESC;\n```"}, "doc.fsc_evm.ez_lending_ohlc_day": {"name": "ez_lending_ohlc_day", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_ohlc_day", "block_contents": "The date for which the OHLC interest rate data is calculated (truncated to day).\n\nExample: '2024-01-15'"}, "doc.fsc_evm.ez_lending_ohlc_protocol": {"name": "ez_lending_ohlc_protocol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_ohlc_protocol", "block_contents": "The lending protocol name (e.g., Aave, Compound).\n\nExample: 'aave'"}, "doc.fsc_evm.ez_lending_ohlc_version": {"name": "ez_lending_ohlc_version", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_ohlc_version", "block_contents": "The version of the protocol (e.g., v2, v3).\n\nExample: 'v3'"}, "doc.fsc_evm.ez_lending_ohlc_supply_rate_open": {"name": "ez_lending_ohlc_supply_rate_open", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_ohlc_supply_rate_open", "block_contents": "The opening supply interest rate for the day (first rate of the day).\n\nExample: 0.045"}, "doc.fsc_evm.ez_lending_ohlc_supply_rate_high": {"name": "ez_lending_ohlc_supply_rate_high", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_ohlc_supply_rate_high", "block_contents": "The highest supply interest rate observed during the day.\n\nExample: 0.052"}, "doc.fsc_evm.ez_lending_ohlc_supply_rate_low": {"name": "ez_lending_ohlc_supply_rate_low", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_ohlc_supply_rate_low", "block_contents": "The lowest supply interest rate observed during the day.\n\nExample: 0.041"}, "doc.fsc_evm.ez_lending_ohlc_supply_rate_close": {"name": "ez_lending_ohlc_supply_rate_close", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_ohlc_supply_rate_close", "block_contents": "The closing supply interest rate for the day (last rate of the day).\n\nExample: 0.048"}, "doc.fsc_evm.ez_lending_ohlc_stable_borrow_rate_open": {"name": "ez_lending_ohlc_stable_borrow_rate_open", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_ohlc_stable_borrow_rate_open", "block_contents": "The opening stable borrow interest rate for the day (first rate of the day).\n\nExample: 0.065"}, "doc.fsc_evm.ez_lending_ohlc_stable_borrow_rate_high": {"name": "ez_lending_ohlc_stable_borrow_rate_high", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_ohlc_stable_borrow_rate_high", "block_contents": "The highest stable borrow interest rate observed during the day.\n\nExample: 0.072"}, "doc.fsc_evm.ez_lending_ohlc_stable_borrow_rate_low": {"name": "ez_lending_ohlc_stable_borrow_rate_low", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_ohlc_stable_borrow_rate_low", "block_contents": "The lowest stable borrow interest rate observed during the day.\n\nExample: 0.061"}, "doc.fsc_evm.ez_lending_ohlc_stable_borrow_rate_close": {"name": "ez_lending_ohlc_stable_borrow_rate_close", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_ohlc_stable_borrow_rate_close", "block_contents": "The closing stable borrow interest rate for the day (last rate of the day).\n\nExample: 0.068"}, "doc.fsc_evm.ez_lending_ohlc_variable_borrow_rate_open": {"name": "ez_lending_ohlc_variable_borrow_rate_open", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_ohlc_variable_borrow_rate_open", "block_contents": "The opening variable borrow interest rate for the day (first rate of the day).\n\nExample: 0.085"}, "doc.fsc_evm.ez_lending_ohlc_variable_borrow_rate_high": {"name": "ez_lending_ohlc_variable_borrow_rate_high", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_ohlc_variable_borrow_rate_high", "block_contents": "The highest variable borrow interest rate observed during the day.\n\nExample: 0.092"}, "doc.fsc_evm.ez_lending_ohlc_variable_borrow_rate_low": {"name": "ez_lending_ohlc_variable_borrow_rate_low", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_ohlc_variable_borrow_rate_low", "block_contents": "The lowest variable borrow interest rate observed during the day.\n\nExample: 0.081"}, "doc.fsc_evm.ez_lending_ohlc_variable_borrow_rate_close": {"name": "ez_lending_ohlc_variable_borrow_rate_close", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_ohlc_variable_borrow_rate_close", "block_contents": "The closing variable borrow interest rate for the day (last rate of the day).\n\nExample: 0.088"}, "doc.fsc_evm.ez_lending_ohlc_rate_updates_count": {"name": "ez_lending_ohlc_rate_updates_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_ohlc_rate_updates_count", "block_contents": "The number of rate updates that occurred during the day.\n\nExample: 24"}, "doc.fsc_evm.ez_lending_ohlc_blockchain": {"name": "ez_lending_ohlc_blockchain", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_lending.md", "original_file_path": "models/doc_descriptions/defi/ez_lending.md", "unique_id": "doc.fsc_evm.ez_lending_ohlc_blockchain", "block_contents": "The blockchain network where the data was sourced from.\n\nExample: 'ethereum'"}, "doc.fsc_evm.ez_dex_liquidity_pool_actions_table_doc": {"name": "ez_dex_liquidity_pool_actions_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "unique_id": "doc.fsc_evm.ez_dex_liquidity_pool_actions_table_doc", "block_contents": "## What\n\nThis table provides a comprehensive view of liquidity pool actions across major decentralized exchanges (DEXs) on EVM blockchains. Each row represents **one token** in a liquidity pool action. For example, if a user adds WETH and USDC to a pool, there will be 2 rows: one for WETH and one for USDC.\n\n## Key Use Cases\n\n- Analyzing liquidity provision patterns and LP behavior\n- Tracking token-specific liquidity flows\n- Monitoring large liquidity additions/removals by token\n- Calculating LP rewards and impermanent loss\n- Identifying popular tokens in liquidity pools\n\n## Important Relationships\n\n- **Join with ez_dex_swaps**: Correlate LP actions with trading activity\n- **Join with ez_prices_hourly**: Get historical token prices\n- **Self-join on ez_dex_liquidity_pool_actions_id**: Group tokens from the same action\n\n## Commonly-used Fields\n\n- `platform`: DEX protocol (uniswap-v3, uniswap-v2 etc.)\n- `event_name`: Type of action (Mint, Burn, AddLiquidity, RemoveLiquidity, Deposit, Withdraw etc.)\n- `liquidity_provider`: Address providing/removing liquidity\n- `pool_address`: Liquidity pool where action occurred\n- `token_address`: Individual token in the action\n- `amount`: Decimal-adjusted token amount\n- `amount_usd`: USD value of the token amount\n\n## Sample queries\n\n```sql\n-- Top tokens by liquidity additions (last 7 days)\nSELECT \n token_address,\n symbol,\n COUNT(DISTINCT tx_hash) AS add_count,\n SUM(amount_usd) AS total_usd_added\nFROM .defi.ez_dex_liquidity_pool_actions\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND event_name IN ('Mint', 'AddLiquidity', 'Deposit')\nGROUP BY 1, 2\nORDER BY total_usd_added DESC\nLIMIT 50;\n\n-- Largest single token liquidity actions\nSELECT \n block_timestamp,\n tx_hash,\n platform,\n pool_name,\n liquidity_provider,\n symbol,\n amount,\n amount_usd\nFROM .defi.ez_dex_liquidity_pool_actions\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND amount_usd > 0\nORDER BY amount_usd DESC\nLIMIT 100;\n\n-- Daily LP activity by platform\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(DISTINCT liquidity_provider) AS unique_lps,\n COUNT(DISTINCT pool_address) AS active_pools,\n SUM(amount_usd) AS total_volume_usd\nFROM .defi.ez_dex_liquidity_pool_actions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1, 2\nORDER BY 1 DESC, 5 DESC;\n```"}, "doc.fsc_evm.ez_dex_liquidity_pool_actions_liquidity_provider": {"name": "ez_dex_liquidity_pool_actions_liquidity_provider", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "unique_id": "doc.fsc_evm.ez_dex_liquidity_pool_actions_liquidity_provider", "block_contents": "The address that is providing or removing liquidity from the pool.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "doc.fsc_evm.ez_dex_liquidity_pool_actions_sender": {"name": "ez_dex_liquidity_pool_actions_sender", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "unique_id": "doc.fsc_evm.ez_dex_liquidity_pool_actions_sender", "block_contents": "The address that initiated the liquidity pool action function.\n\nExample: '0x7a250d5630b4cf539739df2c5dacb4c659f2488d'"}, "doc.fsc_evm.ez_dex_liquidity_pool_actions_receiver": {"name": "ez_dex_liquidity_pool_actions_receiver", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "unique_id": "doc.fsc_evm.ez_dex_liquidity_pool_actions_receiver", "block_contents": "The recipient address of the LP tokens or withdrawn assets.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "doc.fsc_evm.ez_dex_liquidity_pool_actions_token_address": {"name": "ez_dex_liquidity_pool_actions_token_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "unique_id": "doc.fsc_evm.ez_dex_liquidity_pool_actions_token_address", "block_contents": "The contract address of the individual token in this liquidity pool action.\n\nExample: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'"}, "doc.fsc_evm.ez_dex_liquidity_pool_actions_symbol": {"name": "ez_dex_liquidity_pool_actions_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "unique_id": "doc.fsc_evm.ez_dex_liquidity_pool_actions_symbol", "block_contents": "The symbol of the individual token.\n\nExample: 'WETH'"}, "doc.fsc_evm.ez_dex_liquidity_pool_actions_decimals": {"name": "ez_dex_liquidity_pool_actions_decimals", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "unique_id": "doc.fsc_evm.ez_dex_liquidity_pool_actions_decimals", "block_contents": "The number of decimal places for the individual token.\n\nExample: 18"}, "doc.fsc_evm.ez_dex_liquidity_pool_actions_amount_unadj": {"name": "ez_dex_liquidity_pool_actions_amount_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "unique_id": "doc.fsc_evm.ez_dex_liquidity_pool_actions_amount_unadj", "block_contents": "Raw, non-decimal adjusted amount of the individual token in this action.\n\nExample: 1000500000000000000000"}, "doc.fsc_evm.ez_dex_liquidity_pool_actions_amount": {"name": "ez_dex_liquidity_pool_actions_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "unique_id": "doc.fsc_evm.ez_dex_liquidity_pool_actions_amount", "block_contents": "Decimal-adjusted amount of the individual token in this action.\n\nExample: 1000.5"}, "doc.fsc_evm.ez_dex_liquidity_pool_actions_amount_usd": {"name": "ez_dex_liquidity_pool_actions_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "unique_id": "doc.fsc_evm.ez_dex_liquidity_pool_actions_amount_usd", "block_contents": "USD value of the individual token amount at the time of the transaction.\n\nExample: 1500.75"}, "doc.fsc_evm.ez_dex_liquidity_pool_actions_token_is_verified": {"name": "ez_dex_liquidity_pool_actions_token_is_verified", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "unique_id": "doc.fsc_evm.ez_dex_liquidity_pool_actions_token_is_verified", "block_contents": "Whether the individual token is verified in the Flipside token metadata.\n\nExample: true"}, "doc.fsc_evm.ez_dex_liquidity_pool_actions_platform": {"name": "ez_dex_liquidity_pool_actions_platform", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "unique_id": "doc.fsc_evm.ez_dex_liquidity_pool_actions_platform", "block_contents": "The DEX protocol and version where the liquidity action occurred.\n\nExample: 'uniswap-v3'"}, "doc.fsc_evm.ez_dex_liquidity_pool_actions_protocol": {"name": "ez_dex_liquidity_pool_actions_protocol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "unique_id": "doc.fsc_evm.ez_dex_liquidity_pool_actions_protocol", "block_contents": "The protocol used for the liquidity action. This is the clean name of the protocol without the version.\n\nExample: 'uniswap'"}, "doc.fsc_evm.ez_dex_liquidity_pool_actions_protocol_version": {"name": "ez_dex_liquidity_pool_actions_protocol_version", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "unique_id": "doc.fsc_evm.ez_dex_liquidity_pool_actions_protocol_version", "block_contents": "The version of the protocol used for the liquidity action.\n\nExample: 'v3'"}, "doc.fsc_evm.ez_dex_liquidity_pool_actions_pool_address": {"name": "ez_dex_liquidity_pool_actions_pool_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "unique_id": "doc.fsc_evm.ez_dex_liquidity_pool_actions_pool_address", "block_contents": "The liquidity pool contract address where the action occurred.\n\nExample: '0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8'"}, "doc.fsc_evm.ez_dex_liquidity_pool_actions_pool_name": {"name": "ez_dex_liquidity_pool_actions_pool_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "original_file_path": "models/doc_descriptions/defi/ez_dex_liquidity_pool_actions.md", "unique_id": "doc.fsc_evm.ez_dex_liquidity_pool_actions_pool_name", "block_contents": "Human-readable name for the liquidity pool.\n\nExample: 'WETH/USDC'"}, "doc.fsc_evm.ez_bridge_activity_table_doc": {"name": "ez_bridge_activity_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_bridge_activity.md", "original_file_path": "models/doc_descriptions/defi/ez_bridge_activity.md", "unique_id": "doc.fsc_evm.ez_bridge_activity_table_doc", "block_contents": "## What\n\nThis table provides a comprehensive view of cross-chain bridge activity across EVM-compatible blockchains. It consolidates bridge-related events from multiple sources (event_logs, traces, and transfers) to create a unified dataset for analyzing cross-chain asset movements.\n\n## Key Use Cases\n\n- Tracking cross-chain asset flows and bridge volumes\n- Analyzing user bridging behavior and patterns\n- Comparing bridge protocol market share and performance\n- Monitoring token distribution across multiple chains\n- Identifying popular bridge routes and corridors\n\n## Important Relationships\n\n- **Join with core.fact_event_logs**: Use `tx_hash` for raw event details\n- **Join with core.dim_contracts**: Use `bridge_address` or `token_address` for contract metadata\n- **Join with price.ez_prices_hourly**: For additional price validation\n- **Join with core.dim_labels**: Use sender addresses for entity identification\n\n## Commonly-used Fields\n\n- `platform`: Bridge protocol name\n- `sender`: Address sending tokens to bridge\n- `destination_chain`: Target blockchain for assets\n- `token_address`: Token being bridged\n- `amount`: Decimal-adjusted token amount\n- `amount_usd`: USD value at transaction time\n- `block_timestamp`: When bridge transaction occurred\n\n## Sample queries\n\n```sql\n-- Daily bridge volume by protocol\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform,\n COUNT(DISTINCT tx_hash) AS bridge_txns,\n SUM(amount_usd) AS volume_usd\nFROM .defi.ez_bridge_activity\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 3 DESC;\n\n-- Top bridge routes (source to destination chains)\nSELECT \n blockchain AS source_chain,\n destination_chain,\n platform,\n COUNT(*) AS transfer_count,\n SUM(amount_usd) AS total_volume_usd\nFROM .defi.ez_bridge_activity\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND destination_chain IS NOT NULL\nGROUP BY 1, 2, 3\nORDER BY 5 DESC\nLIMIT 20;\n\n-- User bridge activity analysis\nSELECT \n sender,\n COUNT(DISTINCT DATE_TRUNC('day', block_timestamp)) AS active_days,\n COUNT(DISTINCT platform) AS protocols_used,\n COUNT(DISTINCT destination_chain) AS chains_bridged_to,\n SUM(amount_usd) AS total_bridged_usd\nFROM .defi.ez_bridge_activity\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd > 100 -- Filter small transfers\nGROUP BY 1\nHAVING COUNT(*) > 5 -- Active bridgers\nORDER BY 5 DESC\nLIMIT 100;\n\n-- Token flow analysis\nSELECT \n token_symbol,\n token_address,\n blockchain AS source_chain,\n destination_chain,\n COUNT(*) AS bridge_count,\n SUM(amount) AS total_amount,\n AVG(amount_usd) AS avg_transfer_usd\nFROM .defi.ez_bridge_activity\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND token_symbol IS NOT NULL\nGROUP BY 1, 2, 3, 4\nHAVING COUNT(*) > 10\nORDER BY 5 DESC;\n\n-- Bridge protocol comparison\nWITH protocol_stats AS (\n SELECT \n platform,\n COUNT(DISTINCT sender) AS unique_users,\n COUNT(*) AS total_transfers,\n AVG(amount_usd) AS avg_transfer_size,\n PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY amount_usd) AS median_transfer_size,\n SUM(amount_usd) AS total_volume\n FROM .defi.ez_bridge_activity\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND amount_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT *\nFROM protocol_stats\nORDER BY total_volume DESC;\n```"}, "doc.fsc_evm.ez_bridge_activity_platform": {"name": "ez_bridge_activity_platform", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_bridge_activity.md", "original_file_path": "models/doc_descriptions/defi/ez_bridge_activity.md", "unique_id": "doc.fsc_evm.ez_bridge_activity_platform", "block_contents": "The protocol or application facilitating the cross-chain bridge transfer.\n\nExample: 'stargate'"}, "doc.fsc_evm.ez_bridge_activity_origin_from_address": {"name": "ez_bridge_activity_origin_from_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_bridge_activity.md", "original_file_path": "models/doc_descriptions/defi/ez_bridge_activity.md", "unique_id": "doc.fsc_evm.ez_bridge_activity_origin_from_address", "block_contents": "The address that initiated the bridge transaction, typically representing the end user.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "doc.fsc_evm.ez_bridge_activity_sender": {"name": "ez_bridge_activity_sender", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_bridge_activity.md", "original_file_path": "models/doc_descriptions/defi/ez_bridge_activity.md", "unique_id": "doc.fsc_evm.ez_bridge_activity_sender", "block_contents": "The address that directly sent tokens to the bridge contract.\n\nExample: '0xabcdefabcdefabcdefabcdefabcdefabcdefabcd'"}, "doc.fsc_evm.ez_bridge_activity_receiver": {"name": "ez_bridge_activity_receiver", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_bridge_activity.md", "original_file_path": "models/doc_descriptions/defi/ez_bridge_activity.md", "unique_id": "doc.fsc_evm.ez_bridge_activity_receiver", "block_contents": "The address designated to receive tokens on the destination chain (or on the source chain, for intermediate steps).\n\nExample: '0x9876543210987654321098765432109876543210'"}, "doc.fsc_evm.ez_bridge_activity_destination_chain_receiver": {"name": "ez_bridge_activity_destination_chain_receiver", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_bridge_activity.md", "original_file_path": "models/doc_descriptions/defi/ez_bridge_activity.md", "unique_id": "doc.fsc_evm.ez_bridge_activity_destination_chain_receiver", "block_contents": "The final recipient address on the destination blockchain.\n\nExample: '0xfedcbafedcbafedcbafedcbafedcbafedcbafed'"}, "doc.fsc_evm.ez_bridge_activity_destination_chain": {"name": "ez_bridge_activity_destination_chain", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_bridge_activity.md", "original_file_path": "models/doc_descriptions/defi/ez_bridge_activity.md", "unique_id": "doc.fsc_evm.ez_bridge_activity_destination_chain", "block_contents": "The target blockchain network for the bridged assets.\n\nExample: 'arbitrum'"}, "doc.fsc_evm.ez_bridge_activity_destination_chain_id": {"name": "ez_bridge_activity_destination_chain_id", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_bridge_activity.md", "original_file_path": "models/doc_descriptions/defi/ez_bridge_activity.md", "unique_id": "doc.fsc_evm.ez_bridge_activity_destination_chain_id", "block_contents": "The numeric identifier for the destination blockchain.\n\nExample: 42161"}, "doc.fsc_evm.ez_bridge_activity_bridge_address": {"name": "ez_bridge_activity_bridge_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_bridge_activity.md", "original_file_path": "models/doc_descriptions/defi/ez_bridge_activity.md", "unique_id": "doc.fsc_evm.ez_bridge_activity_bridge_address", "block_contents": "The smart contract address handling the bridge operation.\n\nExample: '0x296f55f8fb28e498b858d0bcda06d955b2cb3f97'"}, "doc.fsc_evm.ez_bridge_activity_token_address": {"name": "ez_bridge_activity_token_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_bridge_activity.md", "original_file_path": "models/doc_descriptions/defi/ez_bridge_activity.md", "unique_id": "doc.fsc_evm.ez_bridge_activity_token_address", "block_contents": "The contract address of the token being bridged.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "doc.fsc_evm.ez_bridge_activity_token_symbol": {"name": "ez_bridge_activity_token_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_bridge_activity.md", "original_file_path": "models/doc_descriptions/defi/ez_bridge_activity.md", "unique_id": "doc.fsc_evm.ez_bridge_activity_token_symbol", "block_contents": "The symbol identifier for the bridged token.\n\nExample: 'USDC'"}, "doc.fsc_evm.ez_bridge_activity_amount_unadj": {"name": "ez_bridge_activity_amount_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_bridge_activity.md", "original_file_path": "models/doc_descriptions/defi/ez_bridge_activity.md", "unique_id": "doc.fsc_evm.ez_bridge_activity_amount_unadj", "block_contents": "The raw token amount without decimal adjustment.\n\nExample: 1000000"}, "doc.fsc_evm.ez_bridge_activity_amount": {"name": "ez_bridge_activity_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_bridge_activity.md", "original_file_path": "models/doc_descriptions/defi/ez_bridge_activity.md", "unique_id": "doc.fsc_evm.ez_bridge_activity_amount", "block_contents": "The decimal-adjusted amount of tokens bridged.\n\nExample: 1.0"}, "doc.fsc_evm.ez_bridge_activity_amount_usd": {"name": "ez_bridge_activity_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_bridge_activity.md", "original_file_path": "models/doc_descriptions/defi/ez_bridge_activity.md", "unique_id": "doc.fsc_evm.ez_bridge_activity_amount_usd", "block_contents": "The hourly close USD value of bridged tokens at the time of the transaction.\n\nExample: 1000.50"}, "doc.fsc_evm.ez_bridge_activity_token_is_verified": {"name": "ez_bridge_activity_token_is_verified", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/ez_bridge_activity.md", "original_file_path": "models/doc_descriptions/defi/ez_bridge_activity.md", "unique_id": "doc.fsc_evm.ez_bridge_activity_token_is_verified", "block_contents": "Whether the token is verified by the Flipside team.\n\nExample: true"}, "doc.fsc_evm.evm_liquid_staking_deposits_table_doc": {"name": "evm_liquid_staking_deposits_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/liquid_staking.md", "unique_id": "doc.fsc_evm.evm_liquid_staking_deposits_table_doc", "block_contents": "This table contains liquid staking derivative deposit/stake/mint events from the ```fact_event_logs``` table on this EVM blockchain, along with other helpful columns, including an amount in USD where available. Note, this table only includes deposit/stake/mint events for protocols with live, onchain liquid staking derivative token event logs, does not directly include staking from node operators, and may not represent the complete staking picture in accordance with the Ethereum Beacon Chain."}, "doc.fsc_evm.evm_liquid_staking_withdrawals_table_doc": {"name": "evm_liquid_staking_withdrawals_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/liquid_staking.md", "unique_id": "doc.fsc_evm.evm_liquid_staking_withdrawals_table_doc", "block_contents": "This table contains liquid staking derivative withdraw/unstake/redeem/burn events from the ```fact_event_logs``` table on this EVM blockchain, along with other helpful columns, including an amount in USD where available. Note, this table only includes withdraw/unstake/redeem/burn events for protocols with live, onchain liquid staking derivative token event logs, does not directly include staking from node operators, and may not represent the complete staking picture in accordance with the Ethereum Beacon Chain."}, "doc.fsc_evm.evm_liquid_staking_contract_address": {"name": "evm_liquid_staking_contract_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/liquid_staking.md", "unique_id": "doc.fsc_evm.evm_liquid_staking_contract_address", "block_contents": "The contract that received or processed the deposit/stake/mint."}, "doc.fsc_evm.evm_staker": {"name": "evm_staker", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/liquid_staking.md", "unique_id": "doc.fsc_evm.evm_staker", "block_contents": "The address that performed the deposit/stake/mint action and received tokens in return, typically an EOA."}, "doc.fsc_evm.evm_liquid_staking_platform": {"name": "evm_liquid_staking_platform", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/liquid_staking.md", "unique_id": "doc.fsc_evm.evm_liquid_staking_platform", "block_contents": "The platform that received or processed the deposit/stake/mint."}, "doc.fsc_evm.evm_liquid_staking_token_symbol": {"name": "evm_liquid_staking_token_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/liquid_staking.md", "unique_id": "doc.fsc_evm.evm_liquid_staking_token_symbol", "block_contents": "The symbol of the liquid staking token."}, "doc.fsc_evm.evm_liquid_staking_token_address": {"name": "evm_liquid_staking_token_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/liquid_staking.md", "unique_id": "doc.fsc_evm.evm_liquid_staking_token_address", "block_contents": "The address of the liquid staking token."}, "doc.fsc_evm.evm_liquid_staking_eth_amount_unadj": {"name": "evm_liquid_staking_eth_amount_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/liquid_staking.md", "unique_id": "doc.fsc_evm.evm_liquid_staking_eth_amount_unadj", "block_contents": "The amount of the native asset, non-decimal adjusted."}, "doc.fsc_evm.evm_liquid_staking_eth_amount": {"name": "evm_liquid_staking_eth_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/liquid_staking.md", "unique_id": "doc.fsc_evm.evm_liquid_staking_eth_amount", "block_contents": "The amount of the native asset, decimal adjusted."}, "doc.fsc_evm.evm_liquid_staking_eth_amount_usd": {"name": "evm_liquid_staking_eth_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/liquid_staking.md", "unique_id": "doc.fsc_evm.evm_liquid_staking_eth_amount_usd", "block_contents": "The amount of the native asset in USD, where available."}, "doc.fsc_evm.evm_liquid_staking_token_amount_unadj": {"name": "evm_liquid_staking_token_amount_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/liquid_staking.md", "unique_id": "doc.fsc_evm.evm_liquid_staking_token_amount_unadj", "block_contents": "The amount of liquid staking tokens, non-decimal adjusted."}, "doc.fsc_evm.evm_liquid_staking_token_amount": {"name": "evm_liquid_staking_token_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/liquid_staking.md", "unique_id": "doc.fsc_evm.evm_liquid_staking_token_amount", "block_contents": "The amount of liquid staking tokens, decimal adjusted."}, "doc.fsc_evm.evm_liquid_staking_token_amount_usd": {"name": "evm_liquid_staking_token_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/defi/liquid_staking.md", "original_file_path": "models/doc_descriptions/defi/liquid_staking.md", "unique_id": "doc.fsc_evm.evm_liquid_staking_token_amount_usd", "block_contents": "The amount of liquid staking tokens in USD, where available."}, "doc.fsc_evm.ez_nft_transfers_table_doc": {"name": "ez_nft_transfers_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_transfers.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_transfers.md", "unique_id": "doc.fsc_evm.ez_nft_transfers_table_doc", "block_contents": "## What\n\nThis table contains all NFT transfer events for ERC-721 and ERC-1155 tokens on EVM blockchains. It provides a comprehensive view of NFT movements including transfers, mints, and burns, with enriched metadata for easier analysis.\n\n## Key Use Cases\n\n- Track daily NFT activity and transfer volume across collections\n- Analyze NFT minting patterns and mint timing\n- Identify popular collections by transfer activity\n- Monitor wallet NFT accumulation and trading behavior\n- Analyze ERC-1155 batch transfer patterns\n- Track current NFT holders and ownership changes\n- Detect burns and unusual transfer patterns\n\n## Important Relationships\n\n- **Join with ez_nft_sales**: Use `tx_hash` to match with sales but note that a single transaction can contain multiple sales. Do not use `event_index` to match as the `event_index` in ez_nft_transfers represent the `event_index` of the transfer and not the sale\n- **Join with dim_nft_collection_metadata**: This is only for the Ethereum blockchain. Use `contract_address` and `token_id` for metadata like traits, token id name and token id description\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n\n## Commonly-used Fields\n\n- `contract_address`: NFT collection contract address\n- `token_id`: Unique identifier of the specific NFT\n- `from_address` / `to_address`: Transfer participants (0x0 for mint/burn)\n- `is_mint`: Boolean flag for minting events\n- `token_standard`: NFT standard (erc721, erc1155, cryptopunks, legacy)\n- `nft_quantity`: Number of tokens transferred (always 1 for ERC-721)\n- `token_transfer_type`: Specific event type emitted\n\n## Sample Queries\n\n**Daily NFT Activity Overview**\n```sql\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n COUNT(*) AS total_transfers,\n COUNT(DISTINCT contract_address) AS unique_collections,\n COUNT(DISTINCT CASE WHEN is_mint THEN tx_hash END) AS mint_count,\n COUNT(DISTINCT from_address) AS unique_senders,\n COUNT(DISTINCT to_address) AS unique_receivers,\n SUM(IFF(token_standard = 'erc721', 1 , 0)) as erc721_transfer_count,\n SUM(IFF(token_standard = 'erc1155', 1 , 0)) as erc1155_transfer_count\nFROM .nft.ez_nft_transfers\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 1 DESC;\n```\n\n**Popular NFT Collections by Transfer Volume**\n```sql\nSELECT \n contract_address,\n name,\n COUNT(*) AS transfer_count,\n COUNT(DISTINCT token_id) AS unique_tokens,\n COUNT(DISTINCT from_address) AS unique_senders,\n COUNT(DISTINCT to_address) AS unique_receivers,\n SUM(CASE WHEN is_mint THEN 1 ELSE 0 END) AS mints,\n SUM(CASE WHEN to_address = '0x0000000000000000000000000000000000000000' THEN 1 ELSE 0 END) AS burns\nFROM .nft.ez_nft_transfers\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND name IS NOT NULL \nGROUP BY 1, 2\nORDER BY 3 DESC\nLIMIT 50;\n```\n\n**NFT Minting Analysis**\n```sql\nSELECT \n contract_address,\n name,\n DATE_TRUNC('hour', block_timestamp) AS mint_hour,\n COUNT(*) AS mint_count,\n COUNT(DISTINCT to_address) AS unique_minters,\n COUNT(DISTINCT token_id) as unique_token_id_count \nFROM .nft.ez_nft_transfers\nWHERE is_mint = TRUE\n AND block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2, 3\nORDER BY 4 DESC;\n```\n\n**Wallet NFT Activity**\n```sql\nWITH wallet_activity AS (\n SELECT \n address,\n SUM(received) AS nfts_received,\n SUM(sent) AS nfts_sent,\n SUM(received) - SUM(sent) AS net_change,\n COUNT(DISTINCT contract_address) AS collections_interacted\n FROM (\n SELECT to_address AS address, COUNT(*) AS received, 0 AS sent, contract_address\n FROM .nft.ez_nft_transfers\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND to_address != '0x0000000000000000000000000000000000000000'\n GROUP BY 1, 4\n \n UNION ALL\n \n SELECT from_address AS address, 0 AS received, COUNT(*) AS sent, contract_address\n FROM .nft.ez_nft_transfers\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND from_address != '0x0000000000000000000000000000000000000000'\n GROUP BY 1, 4\n )\n GROUP BY 1\n)\nSELECT * FROM wallet_activity\nWHERE collections_interacted > 5\nORDER BY net_change DESC\nLIMIT 100;\n```\n\n**ERC-1155 Single and Batch Transfer Analysis**\n```sql\nSELECT \n contract_address,\n name,\n token_transfer_type, \n COUNT(*) AS transfer_count \nFROM .nft.ez_nft_transfers\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND token_transfer_type in (\n 'erc1155_TransferSingle',\n 'erc1155_TransferBatch'\n )\nGROUP BY 1, 2, 3\nORDER BY 4 DESC;\n```\n\n**Latest holders for a given ERC-721 collection**\n```sql\nSELECT \n to_address,\n contract_address,\n token_id \nFROM .nft.ez_nft_transfers\nWHERE contract_address = '0xbd3531da5cf5857e7cfaa92426877b022e612cf8'\nQUALIFY ROW_NUMBER() OVER (PARTITION BY contract_address, token_id ORDER BY block_number DESC, event_index DESC) =1;\n```"}, "doc.fsc_evm.ez_nft_transfers_from_address": {"name": "ez_nft_transfers_from_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_transfers.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_transfers.md", "unique_id": "doc.fsc_evm.ez_nft_transfers_from_address", "block_contents": "The address sending/transferring the NFT. Special value of '0x0000000000000000000000000000000000000000' indicates minting event.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "doc.fsc_evm.ez_nft_transfers_to_address": {"name": "ez_nft_transfers_to_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_transfers.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_transfers.md", "unique_id": "doc.fsc_evm.ez_nft_transfers_to_address", "block_contents": "The address receiving the NFT. Special value of '0x0000000000000000000000000000000000000000' indicates burning event.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "doc.fsc_evm.ez_nft_transfers_token_id": {"name": "ez_nft_transfers_token_id", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_transfers.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_transfers.md", "unique_id": "doc.fsc_evm.ez_nft_transfers_token_id", "block_contents": "The unique identifier for a specific NFT within a collection. String format to handle various token_id formats.\n\nExample: '1234'"}, "doc.fsc_evm.ez_nft_transfers_intra_event_index": {"name": "ez_nft_transfers_intra_event_index", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_transfers.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_transfers.md", "unique_id": "doc.fsc_evm.ez_nft_transfers_intra_event_index", "block_contents": "Position within a batch transfer event, primarily for ERC-1155. Always starts with 1 for single transfers.\n\nExample: 1"}, "doc.fsc_evm.ez_nft_transfers_nft_quantity": {"name": "ez_nft_transfers_nft_quantity", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_transfers.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_transfers.md", "unique_id": "doc.fsc_evm.ez_nft_transfers_nft_quantity", "block_contents": "The number of NFTs transferred for this specific token_id. Always 1 for ERC-721, can be more for ERC-1155.\n\nExample: 1"}, "doc.fsc_evm.ez_nft_transfers_token_transfer_type": {"name": "ez_nft_transfers_token_transfer_type", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_transfers.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_transfers.md", "unique_id": "doc.fsc_evm.ez_nft_transfers_token_transfer_type", "block_contents": "The specific event type emitted by the contract. Values include 'erc721_Transfer', 'erc1155_TransferSingle', 'erc1155_TransferBatch', etc.\n\nExample: 'erc721_Transfer'"}, "doc.fsc_evm.ez_nft_transfers_is_mint": {"name": "ez_nft_transfers_is_mint", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_transfers.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_transfers.md", "unique_id": "doc.fsc_evm.ez_nft_transfers_is_mint", "block_contents": "Boolean flag indicating if this transfer is a minting event (from address is 0x0).\n\nExample: true"}, "doc.fsc_evm.ez_nft_transfers_contract_address": {"name": "ez_nft_transfers_contract_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_transfers.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_transfers.md", "unique_id": "doc.fsc_evm.ez_nft_transfers_contract_address", "block_contents": "The address of the contract that emitted the NFT transfer event.\n\nExample: '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'"}, "doc.fsc_evm.ez_nft_transfers_name": {"name": "ez_nft_transfers_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_transfers.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_transfers.md", "unique_id": "doc.fsc_evm.ez_nft_transfers_name", "block_contents": "The name of the NFT collection. For Ethereum only, join with nft.dim_nft_collection_metadata for token-level details.\n\nExample: 'Bored Ape Yacht Club'"}, "doc.fsc_evm.ez_nft_transfers_token_standard": {"name": "ez_nft_transfers_token_standard", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_transfers.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_transfers.md", "unique_id": "doc.fsc_evm.ez_nft_transfers_token_standard", "block_contents": "The standard of the NFT. Values include 'erc721', 'erc1155', 'cryptopunks', and 'legacy'.\n\nExample: 'erc721'"}, "doc.fsc_evm.ez_nft_sales_table_doc": {"name": "ez_nft_sales_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_table_doc", "block_contents": "## What\n\nThis table provides a comprehensive view of NFT (Non-Fungible Token) sales across all major marketplaces and platforms on EVM blockchains. It captures both direct marketplace sales and aggregator-routed transactions, enabling analysis of NFT market dynamics, collection performance, and trading patterns.\n\n## Key Use Cases\n\n- Analyze daily/weekly NFT market volume and trends by platform\n- Track top-performing NFT collections by sales count and volume\n- Monitor marketplace competition and market share analysis\n- Identify whale activity and buyer behavior patterns\n- Evaluate creator royalty enforcement across platforms\n- Assess fee structures and revenue models by marketplace\n- Track cross-platform trader behavior and platform preferences\n\n## Important Relationships\n\n- Links to `core.fact_event_logs` via `tx_hash` and `event_index`\n- Joins with `core.dim_contracts` for collection name\n- References `price.ez_prices_hourly` for currency conversions\n- Connects to token transfer tables for ownership tracking\n\n## Commonly-used Fields\n\n- `platform_name`: Marketplace where sale occurred (opensea, blur, etc.)\n- `contract_address`: NFT collection contract address\n- `token_id`: Unique identifier of the specific NFT\n- `buyer_address` / `seller_address`: Transaction participants\n- `price_usd`: Sale price converted to USD (includes fees)\n- `total_fees_usd`: Combined platform and creator fees in USD\n- `event_type`: Type of sale transaction (sale, bid_won, etc.)\n\n## Sample Queries\n\n**Daily NFT market volume by platform**\n```sql\n-- Daily NFT market volume by platform\nSELECT \n DATE_TRUNC('day', block_timestamp) AS date,\n platform_name,\n COUNT(*) as sales_count,\n COUNT(DISTINCT tx_hash) AS unique_sales_transaction_count,\n COUNT(DISTINCT buyer_address) AS unique_buyers,\n COUNT(DISTINCT contract_address) AS collections_traded,\n SUM(price_usd) AS total_volume_usd,\n AVG(price_usd) AS avg_sale_price_usd\nFROM .nft.ez_nft_sales\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND price_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 1 DESC, 7 DESC;\n```\n\n**Top selling NFT collections**\n```sql\n-- Top selling NFT collections\nSELECT \n contract_address,\n name AS collection_name,\n COUNT(*) AS sales_count,\n COUNT(DISTINCT token_id) AS unique_tokens_sold,\n COUNT(DISTINCT buyer_address) AS unique_buyers,\n SUM(price_usd) AS total_volume_usd,\n AVG(price_usd) AS avg_price_usd,\n MAX(price_usd) AS highest_sale_usd\nFROM .nft.ez_nft_sales\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND price_usd IS NOT NULL\nGROUP BY 1, 2\nORDER BY 6 DESC\nLIMIT 50;\n```\n\n**Marketplace competition analysis**\n```sql\n-- Marketplace competition analysis\nWITH platform_metrics AS (\n SELECT \n platform_name,\n COUNT(*) AS total_sales,\n SUM(price_usd) AS total_volume_usd,\n COUNT(DISTINCT buyer_address) AS unique_buyers,\n COUNT(DISTINCT seller_address) AS unique_sellers,\n AVG(platform_fee / NULLIF(price, 0) * 100) AS avg_platform_fee_pct,\n SUM(platform_fee_usd) AS total_platform_revenue_usd\n FROM .nft.ez_nft_sales\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND price_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n platform_name,\n total_sales,\n total_volume_usd,\n total_volume_usd * 100.0 / SUM(total_volume_usd) OVER () AS market_share_pct,\n unique_buyers,\n unique_sellers,\n avg_platform_fee_pct,\n total_platform_revenue_usd\nFROM platform_metrics\nORDER BY total_volume_usd DESC;\n```\n\n**Whale activity tracking**\n```sql\n-- Whale activity tracking\nWITH buyer_stats AS (\n SELECT \n buyer_address,\n COUNT(*) AS purchases,\n COUNT(DISTINCT contract_address) AS unique_collections,\n SUM(price_usd) AS total_spent_usd,\n AVG(price_usd) AS avg_purchase_price,\n MAX(price_usd) AS highest_purchase\n FROM .nft.ez_nft_sales\n WHERE block_timestamp >= CURRENT_DATE - 30\n AND price_usd IS NOT NULL\n GROUP BY 1\n)\nSELECT \n CASE \n WHEN total_spent_usd < 1000 THEN '< $1K'\n WHEN total_spent_usd < 10000 THEN '$1K - $10K'\n WHEN total_spent_usd < 100000 THEN '$10K - $100K'\n WHEN total_spent_usd < 1000000 THEN '$100K - $1M'\n ELSE '> $1M'\n END AS buyer_tier,\n COUNT(*) AS buyer_count,\n SUM(purchases) AS total_purchases,\n AVG(unique_collections) AS avg_collections_per_buyer,\n SUM(total_spent_usd) AS tier_total_spent\nFROM buyer_stats\nGROUP BY 1\nORDER BY MIN(total_spent_usd);\n```\n \n**Creator royalty analysis**\n```sql\n-- Creator royalty analysis\nSELECT \n name AS collection_name,\n contract_address,\n COUNT(*) AS sales_with_royalties,\n SUM(creator_fee) AS total_creator_fees,\n SUM(creator_fee_usd) AS total_creator_fees_usd,\n AVG(creator_fee / NULLIF(price, 0) * 100) AS avg_royalty_pct,\n SUM(creator_fee_usd) / NULLIF(SUM(price_usd), 0) * 100 AS effective_royalty_rate\nFROM .nft.ez_nft_sales\nWHERE creator_fee > 0\n AND price > 0\n AND block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1, 2\nHAVING COUNT(*) > 10\nORDER BY total_creator_fees_usd DESC\nLIMIT 100;\n```"}, "doc.fsc_evm.ez_nft_sales_event_type": {"name": "ez_nft_sales_event_type", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_event_type", "block_contents": "The specific type of NFT transaction that occurred. Common values include 'sale', 'bid_won', 'redeem', and 'mint'.\n\nExample: 'sale'"}, "doc.fsc_evm.ez_nft_sales_platform_address": {"name": "ez_nft_sales_platform_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_platform_address", "block_contents": "The smart contract address of the marketplace facilitating the sale. Platforms may have multiple contracts for different versions.\n\nExample: '0x00000000006c3852cbef3e08e8df289169ede581'"}, "doc.fsc_evm.ez_nft_sales_platform_name": {"name": "ez_nft_sales_platform_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_platform_name", "block_contents": "The marketplace or platform where the NFT sale occurred. Standardized to lowercase with no spaces.\n\nExample: 'opensea'"}, "doc.fsc_evm.ez_nft_sales_platform_exchange_version": {"name": "ez_nft_sales_platform_exchange_version", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_platform_exchange_version", "block_contents": "The version identifier of the marketplace contract. Tracks protocol versions and upgrades.\n\nExample: 'seaport_1_5'"}, "doc.fsc_evm.ez_nft_sales_aggregator_name": {"name": "ez_nft_sales_aggregator_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_aggregator_name", "block_contents": "The NFT aggregator platform that routed the transaction. NULL indicates direct platform interaction.\n\nExample: 'gem'"}, "doc.fsc_evm.ez_nft_sales_seller_address": {"name": "ez_nft_sales_seller_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_seller_address", "block_contents": "The blockchain address that sold the NFT.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "doc.fsc_evm.ez_nft_sales_buyer_address": {"name": "ez_nft_sales_buyer_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_buyer_address", "block_contents": "The blockchain address that purchased the NFT.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "doc.fsc_evm.ez_nft_sales_contract_address": {"name": "ez_nft_sales_contract_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_contract_address", "block_contents": "The smart contract address of the NFT collection. Supports ERC-721, ERC-1155, and custom implementations.\n\nExample: '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'"}, "doc.fsc_evm.ez_nft_sales_name": {"name": "ez_nft_sales_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_name", "block_contents": "The name of the NFT collection or project. May be NULL for unverified collections.\n\nExample: 'Bored Ape Yacht Club'"}, "doc.fsc_evm.ez_nft_sales_token_id": {"name": "ez_nft_sales_token_id", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_token_id", "block_contents": "The unique identifier of the specific NFT within its collection. Format is numeric string.\n\nExample: '1234'"}, "doc.fsc_evm.ez_nft_sales_quantity": {"name": "ez_nft_sales_quantity", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_quantity", "block_contents": "The number of tokens sold in the transaction. Primarily relevant for ERC-1155 tokens.\n\nExample: '1'"}, "doc.fsc_evm.ez_nft_sales_token_standard": {"name": "ez_nft_sales_token_standard", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_token_standard", "block_contents": "The technical standard implemented by the NFT contract. Common values include 'erc721', 'erc1155', 'cryptopunks', and 'legacy'.\n\nExample: 'erc721'"}, "doc.fsc_evm.ez_nft_sales_currency_symbol": {"name": "ez_nft_sales_currency_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_currency_symbol", "block_contents": "The symbol of the token used for payment.\n\nExample: 'ETH'"}, "doc.fsc_evm.ez_nft_sales_currency_address": {"name": "ez_nft_sales_currency_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_currency_address", "block_contents": "The contract address of the payment token. Shows 'ETH' for native ETH payments.\n\nExample: '0xa0b86a33e6776a1e7f9f0b8b8b8b8b8b8b8b8b8b'"}, "doc.fsc_evm.ez_nft_sales_price": {"name": "ez_nft_sales_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_price", "block_contents": "The sale price in the payment currency, including platform and creator fees. Raw price before USD conversion.\n\nExample: 2.5"}, "doc.fsc_evm.ez_nft_sales_price_usd": {"name": "ez_nft_sales_price_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_price_usd", "block_contents": "The sale price converted to USD at transaction time, including platform and creator fees. May be NULL for missing price data.\n\nExample: 4250.75"}, "doc.fsc_evm.ez_nft_sales_total_fees": {"name": "ez_nft_sales_total_fees", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_total_fees", "block_contents": "The combined platform and creator fees in the payment currency.\n\nExample: 0.125"}, "doc.fsc_evm.ez_nft_sales_platform_fee": {"name": "ez_nft_sales_platform_fee", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_platform_fee", "block_contents": "The fee charged by the marketplace in the payment currency. Typically 2-2.5% of sale price.\n\nExample: 0.05"}, "doc.fsc_evm.ez_nft_sales_creator_fee": {"name": "ez_nft_sales_creator_fee", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_creator_fee", "block_contents": "The royalty fee paid to the collection creator in the payment currency. Typically 0-10% of sale price.\n\nExample: 0.075"}, "doc.fsc_evm.ez_nft_sales_total_fees_usd": {"name": "ez_nft_sales_total_fees_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_total_fees_usd", "block_contents": "The combined platform and creator fees converted to USD.\n\nExample: 212.54"}, "doc.fsc_evm.ez_nft_sales_platform_fee_usd": {"name": "ez_nft_sales_platform_fee_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_platform_fee_usd", "block_contents": "The marketplace fee converted to USD.\n\nExample: 85.02"}, "doc.fsc_evm.ez_nft_sales_creator_fee_usd": {"name": "ez_nft_sales_creator_fee_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_creator_fee_usd", "block_contents": "The royalty fee converted to USD.\n\nExample: 127.52"}, "doc.fsc_evm.ez_nft_sales_tx_fee_usd": {"name": "ez_nft_sales_tx_fee_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/nft/ez_nft_sales.md", "original_file_path": "models/doc_descriptions/nft/ez_nft_sales.md", "unique_id": "doc.fsc_evm.ez_nft_sales_tx_fee_usd", "block_contents": "The transaction fee denominated in USD. Use only one instance per transaction to avoid overcounting.\n\nExample: 45.32"}, "doc.fsc_evm.ez_core_metrics_hourly_table_doc": {"name": "ez_core_metrics_hourly_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/stats/ez_core_metrics_hourly.md", "original_file_path": "models/doc_descriptions/stats/ez_core_metrics_hourly.md", "unique_id": "doc.fsc_evm.ez_core_metrics_hourly_table_doc", "block_contents": "## What\n\nThis aggregated table provides hourly blockchain metrics for high-level analysis and monitoring. It pre-calculates key statistics from fact_transactions to enable fast querying of network activity, gas usage patterns, and user behavior trends without scanning large transaction tables.\n\n## Key Use Cases\n\n- Network health dashboards and monitoring\n- Gas fee trend analysis and volatility tracking\n- User adoption metrics and activity patterns\n- Blockchain comparison studies across chains\n- Activity anomaly detection and congestion analysis\n- Performance optimization and capacity planning\n- Weekly/monthly growth analysis\n\n## Important Relationships\n\n- **Derived from fact_transactions**: All metrics aggregated from base transaction data\n- **Join with ez_prices_hourly**: For native token price correlation\n- **Compare across chains**: Standardized metrics enable cross-chain analysis\n\n## Commonly-used Fields\n\n- `block_timestamp_hour`: Hour boundary for aggregated metrics\n- `transaction_count`: Total transactions in the hour\n- `transaction_count_success` / `transaction_count_failed`: Success/failure counts\n- `unique_from_count`: Distinct active addresses\n- `total_fees_native` / `total_fees_usd`: Fee totals in native and USD\n- `block_count`: Number of blocks produced\n\n## Sample Queries\n\n**Network Health Dashboard Metrics**\n```sql\n-- 24-hour network health summary\nWITH hourly_stats AS (\n SELECT \n block_timestamp_hour,\n transaction_count,\n transaction_count_success,\n transaction_count_failed,\n ROUND(100.0 * transaction_count_success / NULLIF(transaction_count, 0), 2) AS success_rate,\n total_fees_native,\n total_fees_usd,\n unique_from_count AS active_users,\n block_count,\n ROUND(transaction_count::FLOAT / NULLIF(block_count, 0), 2) AS avg_tx_per_block\n FROM .stats.ez_core_metrics_hourly\n WHERE block_timestamp_hour >= CURRENT_TIMESTAMP - INTERVAL '24 hours'\n)\nSELECT \n COUNT(*) AS hours_of_data,\n SUM(transaction_count) AS total_transactions,\n AVG(success_rate) AS avg_success_rate,\n SUM(total_fees_usd) AS total_fees_usd_24h,\n SUM(active_users) AS unique_active_addresses,\n AVG(avg_tx_per_block) AS avg_tx_per_block_24h,\n MAX(transaction_count) AS peak_hourly_transactions,\n MIN(block_count) AS min_blocks_per_hour,\n MAX(block_count) AS max_blocks_per_hour\nFROM hourly_stats;\n```\n\n**Gas Fee Trends Analysis**\n```sql\n-- Daily average gas fees with volatility\nSELECT \n DATE(block_timestamp_hour) AS date,\n AVG(total_fees_native / NULLIF(transaction_count, 0)) AS avg_fee_per_tx_native,\n AVG(total_fees_usd / NULLIF(transaction_count, 0)) AS avg_fee_per_tx_usd,\n STDDEV(total_fees_usd / NULLIF(transaction_count, 0)) AS fee_volatility_usd,\n MIN(total_fees_usd / NULLIF(transaction_count, 0)) AS min_fee_per_tx_usd,\n MAX(total_fees_usd / NULLIF(transaction_count, 0)) AS max_fee_per_tx_usd,\n SUM(transaction_count) AS daily_transactions,\n SUM(total_fees_usd) AS daily_fees_usd\nFROM .stats.ez_core_metrics_hourly\nWHERE block_timestamp_hour >= CURRENT_DATE - 30\n AND transaction_count > 0\nGROUP BY 1\nORDER BY 1 DESC;\n```\n\n**User Activity Patterns**\n```sql\n-- Hourly activity patterns (UTC)\nSELECT \n EXTRACT(HOUR FROM block_timestamp_hour) AS hour_utc,\n AVG(transaction_count) AS avg_transactions,\n AVG(unique_from_count) AS avg_active_users,\n AVG(unique_to_count) AS avg_unique_recipients,\n AVG(transaction_count::FLOAT / NULLIF(unique_from_count, 0)) AS avg_tx_per_user,\n STDDEV(transaction_count) AS transaction_volatility\nFROM .stats.ez_core_metrics_hourly\nWHERE block_timestamp_hour >= CURRENT_DATE - 7\nGROUP BY 1\nORDER BY 1;\n```\n\n**Network Congestion Detection**\n```sql\n-- Identify high congestion periods\nWITH congestion_metrics AS (\n SELECT \n block_timestamp_hour,\n transaction_count,\n block_count,\n transaction_count::FLOAT / NULLIF(block_count, 0) AS tx_per_block,\n total_fees_usd / NULLIF(transaction_count, 0) AS avg_fee_usd,\n transaction_count_failed::FLOAT / NULLIF(transaction_count, 0) * 100 AS failure_rate\n FROM .stats.ez_core_metrics_hourly\n WHERE block_timestamp_hour >= CURRENT_DATE - 7\n),\npercentiles AS (\n SELECT \n PERCENTILE_CONT(0.9) WITHIN GROUP (ORDER BY tx_per_block) AS p90_tx_per_block,\n PERCENTILE_CONT(0.9) WITHIN GROUP (ORDER BY avg_fee_usd) AS p90_fee,\n PERCENTILE_CONT(0.9) WITHIN GROUP (ORDER BY failure_rate) AS p90_failure_rate\n FROM congestion_metrics\n)\nSELECT \n c.block_timestamp_hour,\n c.tx_per_block,\n c.avg_fee_usd,\n c.failure_rate,\n CASE \n WHEN c.tx_per_block > p.p90_tx_per_block \n AND c.avg_fee_usd > p.p90_fee THEN 'High Congestion'\n WHEN c.failure_rate > p.p90_failure_rate THEN 'Network Issues'\n ELSE 'Normal'\n END AS network_status\nFROM congestion_metrics c\nCROSS JOIN percentiles p\nWHERE c.tx_per_block > p.p90_tx_per_block \n OR c.avg_fee_usd > p.p90_fee\n OR c.failure_rate > p.p90_failure_rate\nORDER BY c.block_timestamp_hour DESC;\n```\n\n**Weekly Growth Metrics**\n```sql\n-- Week-over-week growth analysis\nWITH weekly_stats AS (\n SELECT \n DATE_TRUNC('week', block_timestamp_hour) AS week,\n SUM(transaction_count) AS weekly_transactions,\n COUNT(DISTINCT unique_from_count) AS unique_weekly_users,\n SUM(total_fees_usd) AS weekly_fees_usd,\n AVG(transaction_count_success::FLOAT / NULLIF(transaction_count, 0)) AS avg_success_rate\n FROM .stats.ez_core_metrics_hourly\n WHERE block_timestamp_hour >= CURRENT_DATE - 60\n GROUP BY 1\n)\nSELECT \n week,\n weekly_transactions,\n LAG(weekly_transactions) OVER (ORDER BY week) AS prev_week_transactions,\n ROUND(100.0 * (weekly_transactions - LAG(weekly_transactions) OVER (ORDER BY week)) / \n NULLIF(LAG(weekly_transactions) OVER (ORDER BY week), 0), 2) AS tx_growth_pct,\n unique_weekly_users,\n ROUND(100.0 * (unique_weekly_users - LAG(unique_weekly_users) OVER (ORDER BY week)) / \n NULLIF(LAG(unique_weekly_users) OVER (ORDER BY week), 0), 2) AS user_growth_pct,\n weekly_fees_usd,\n avg_success_rate\nFROM weekly_stats\nORDER BY week DESC;\n```"}, "doc.fsc_evm.ez_core_metrics_hourly_hour": {"name": "ez_core_metrics_hourly_hour", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/stats/ez_core_metrics_hourly.md", "original_file_path": "models/doc_descriptions/stats/ez_core_metrics_hourly.md", "unique_id": "doc.fsc_evm.ez_core_metrics_hourly_hour", "block_contents": "The hour boundary (UTC) for which metrics are aggregated. Timestamp truncated to hour boundary.\n\nExample: '2024-01-15 14:00:00.000'"}, "doc.fsc_evm.ez_core_metrics_hourly_block_number_min": {"name": "ez_core_metrics_hourly_block_number_min", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/stats/ez_core_metrics_hourly.md", "original_file_path": "models/doc_descriptions/stats/ez_core_metrics_hourly.md", "unique_id": "doc.fsc_evm.ez_core_metrics_hourly_block_number_min", "block_contents": "The lowest block number produced within this hour. Used to identify first block and calculate block ranges.\n\nExample: 18750000"}, "doc.fsc_evm.ez_core_metrics_hourly_block_number_max": {"name": "ez_core_metrics_hourly_block_number_max", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/stats/ez_core_metrics_hourly.md", "original_file_path": "models/doc_descriptions/stats/ez_core_metrics_hourly.md", "unique_id": "doc.fsc_evm.ez_core_metrics_hourly_block_number_max", "block_contents": "The highest block number produced within this hour. Used to identify last block and monitor chain tip progression.\n\nExample: 18750299"}, "doc.fsc_evm.ez_core_metrics_hourly_block_count": {"name": "ez_core_metrics_hourly_block_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/stats/ez_core_metrics_hourly.md", "original_file_path": "models/doc_descriptions/stats/ez_core_metrics_hourly.md", "unique_id": "doc.fsc_evm.ez_core_metrics_hourly_block_count", "block_contents": "Total number of blocks produced in the hour. Calculated as block_number_max - block_number_min + 1.\n\nExample: 300"}, "doc.fsc_evm.ez_core_metrics_hourly_transaction_count": {"name": "ez_core_metrics_hourly_transaction_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/stats/ez_core_metrics_hourly.md", "original_file_path": "models/doc_descriptions/stats/ez_core_metrics_hourly.md", "unique_id": "doc.fsc_evm.ez_core_metrics_hourly_transaction_count", "block_contents": "Total number of transactions included in blocks during this hour. Includes both successful and failed transactions.\n\nExample: 125000"}, "doc.fsc_evm.ez_core_metrics_hourly_count_success": {"name": "ez_core_metrics_hourly_count_success", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/stats/ez_core_metrics_hourly.md", "original_file_path": "models/doc_descriptions/stats/ez_core_metrics_hourly.md", "unique_id": "doc.fsc_evm.ez_core_metrics_hourly_count_success", "block_contents": "Number of transactions that executed successfully in the hour. Used to calculate network reliability.\n\nExample: 118750"}, "doc.fsc_evm.ez_core_metrics_hourly_transaction_count_failed": {"name": "ez_core_metrics_hourly_transaction_count_failed", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/stats/ez_core_metrics_hourly.md", "original_file_path": "models/doc_descriptions/stats/ez_core_metrics_hourly.md", "unique_id": "doc.fsc_evm.ez_core_metrics_hourly_transaction_count_failed", "block_contents": "Number of transactions that failed or reverted in the hour. Common causes include insufficient gas or contract reverts.\n\nExample: 6250"}, "doc.fsc_evm.ez_core_metrics_hourly_unique_from_count": {"name": "ez_core_metrics_hourly_unique_from_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/stats/ez_core_metrics_hourly.md", "original_file_path": "models/doc_descriptions/stats/ez_core_metrics_hourly.md", "unique_id": "doc.fsc_evm.ez_core_metrics_hourly_unique_from_count", "block_contents": "Count of distinct addresses that initiated transactions in the hour. Represents active users, not cumulative.\n\nExample: 45000"}, "doc.fsc_evm.ez_core_metrics_hourly_unique_to_count": {"name": "ez_core_metrics_hourly_unique_to_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/stats/ez_core_metrics_hourly.md", "original_file_path": "models/doc_descriptions/stats/ez_core_metrics_hourly.md", "unique_id": "doc.fsc_evm.ez_core_metrics_hourly_unique_to_count", "block_contents": "Count of distinct addresses that received transactions in the hour. Includes EOA recipients and contract addresses.\n\nExample: 52000"}, "doc.fsc_evm.ez_core_metrics_hourly_total_fees_native": {"name": "ez_core_metrics_hourly_total_fees_native", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/stats/ez_core_metrics_hourly.md", "original_file_path": "models/doc_descriptions/stats/ez_core_metrics_hourly.md", "unique_id": "doc.fsc_evm.ez_core_metrics_hourly_total_fees_native", "block_contents": "Sum of all transaction fees paid in the blockchain's native token. May have limited precision due to aggregation.\n\nExample: 125.75"}, "doc.fsc_evm.ez_core_metrics_hourly_total_fees_usd": {"name": "ez_core_metrics_hourly_total_fees_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/stats/ez_core_metrics_hourly.md", "original_file_path": "models/doc_descriptions/stats/ez_core_metrics_hourly.md", "unique_id": "doc.fsc_evm.ez_core_metrics_hourly_total_fees_usd", "block_contents": "Sum of all transaction fees paid, converted to USD using hourly native token price. Rounded to 2 decimal places.\n\nExample: 425000.50"}, "doc.fsc_evm.fact_event_logs_table_doc": {"name": "fact_event_logs_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_event_logs.md", "original_file_path": "models/doc_descriptions/core/fact_event_logs.md", "unique_id": "doc.fsc_evm.fact_event_logs_table_doc", "block_contents": "## What\n\nThis table contains raw event logs emitted by smart contracts during transaction execution. Each row represents a single event with its topics and data. Events are the primary mechanism for smart contracts to communicate state changes and must be explicitly emitted in contract code.\n\n## Key Use Cases\n\n- Tracking raw blockchain events before decoding\n- Filtering events by signature (topic_0) for specific event types\n- Analyzing contract activity patterns and event frequencies\n- Building custom event decoders for unsupported contracts\n- Monitoring specific addresses via indexed parameters\n\n## Important Relationships\n\n- **Join with ez_decoded_event_logs**: Use `tx_hash` and `event_index` for simplified decoded data\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Join with dim_contracts**: Use `contract_address` for contract metadata\n\n## Commonly-used Fields\n\n- `topic_0`: Event signature hash for filtering event types\n- `contract_address`: Smart contract that emitted the event\n- `topics`: Array of indexed parameters (max 4)\n- `data`: Hex-encoded non-indexed parameters\n- `event_index`: Sequential position within transaction\n- `tx_hash`: Transaction containing this event\n\n## Sample queries\n\n```sql\n-- Find all ERC-20 Transfer events in last 24 hours\nSELECT \n block_timestamp,\n tx_hash,\n contract_address,\n topics[1] AS from_address_padded,\n topics[2] AS to_address_padded,\n data AS amount_hex,\n event_index\nFROM .core.fact_event_logs\nWHERE topic_0 = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND ARRAY_SIZE(topics) = 3 -- ERC-20 has 3 topics\n AND block_timestamp >= CURRENT_DATE - 1\nLIMIT 100;\n\n-- Most active contracts by event count\nSELECT \n contract_address,\n COUNT(*) AS event_count,\n COUNT(DISTINCT tx_hash) AS unique_txs,\n COUNT(DISTINCT topic_0) AS unique_event_types,\n MIN(block_timestamp) AS first_seen,\n MAX(block_timestamp) AS last_seen\nFROM .core.fact_event_logs\nWHERE block_timestamp >= CURRENT_DATE - 7\nGROUP BY 1\nORDER BY 2 DESC\nLIMIT 50;\n\n-- Event patterns within transactions\nSELECT \n tx_hash,\n COUNT(*) AS events_in_tx,\n COUNT(DISTINCT contract_address) AS contracts_touched,\n ARRAY_AGG(DISTINCT topic_0) AS event_signatures\nFROM .core.fact_event_logs\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1\nHAVING COUNT(*) > 10\nORDER BY 2 DESC\nLIMIT 20;\n```"}, "doc.fsc_evm.fact_event_logs_event_index": {"name": "fact_event_logs_event_index", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_event_logs.md", "original_file_path": "models/doc_descriptions/core/fact_event_logs.md", "unique_id": "doc.fsc_evm.fact_event_logs_event_index", "block_contents": "Zero-based sequential position of the event within a transaction's execution.\n\nExample: 5"}, "doc.fsc_evm.fact_event_logs_event_removed": {"name": "fact_event_logs_event_removed", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_event_logs.md", "original_file_path": "models/doc_descriptions/core/fact_event_logs.md", "unique_id": "doc.fsc_evm.fact_event_logs_event_removed", "block_contents": "Boolean flag indicating if the event was removed due to chain reorganization.\n\nExample: false"}, "doc.fsc_evm.fact_event_logs_contract_address": {"name": "fact_event_logs_contract_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_event_logs.md", "original_file_path": "models/doc_descriptions/core/fact_event_logs.md", "unique_id": "doc.fsc_evm.fact_event_logs_contract_address", "block_contents": "Smart contract address that emitted this event.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "doc.fsc_evm.fact_event_logs_data": {"name": "fact_event_logs_data", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_event_logs.md", "original_file_path": "models/doc_descriptions/core/fact_event_logs.md", "unique_id": "doc.fsc_evm.fact_event_logs_data", "block_contents": "Hex-encoded non-indexed event parameters.\n\nExample: '0x0000000000000000000000000000000000000000000000000de0b6b3a7640000'"}, "doc.fsc_evm.fact_event_logs_topics": {"name": "fact_event_logs_topics", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_event_logs.md", "original_file_path": "models/doc_descriptions/core/fact_event_logs.md", "unique_id": "doc.fsc_evm.fact_event_logs_topics", "block_contents": "Array containing all indexed parameters of the event.\n\nExample: ['0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', '0x0000000000000000000000001234567890123456789012345678901234567890']"}, "doc.fsc_evm.fact_event_logs_topic_0": {"name": "fact_event_logs_topic_0", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_event_logs.md", "original_file_path": "models/doc_descriptions/core/fact_event_logs.md", "unique_id": "doc.fsc_evm.fact_event_logs_topic_0", "block_contents": "Event signature hash - keccak256 of the event declaration.\n\nExample: '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'"}, "doc.fsc_evm.fact_event_logs_topic_1": {"name": "fact_event_logs_topic_1", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_event_logs.md", "original_file_path": "models/doc_descriptions/core/fact_event_logs.md", "unique_id": "doc.fsc_evm.fact_event_logs_topic_1", "block_contents": "First indexed parameter of the event (if exists).\n\nExample: '0x0000000000000000000000001234567890123456789012345678901234567890'"}, "doc.fsc_evm.fact_event_logs_topic_2": {"name": "fact_event_logs_topic_2", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_event_logs.md", "original_file_path": "models/doc_descriptions/core/fact_event_logs.md", "unique_id": "doc.fsc_evm.fact_event_logs_topic_2", "block_contents": "Second indexed parameter of the event (if exists).\n\nExample: '0x000000000000000000000000abcdefabcdefabcdefabcdefabcdefabcdefabcd'"}, "doc.fsc_evm.fact_event_logs_topic_3": {"name": "fact_event_logs_topic_3", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_event_logs.md", "original_file_path": "models/doc_descriptions/core/fact_event_logs.md", "unique_id": "doc.fsc_evm.fact_event_logs_topic_3", "block_contents": "Third indexed parameter of the event (if exists).\n\nExample: '0x0000000000000000000000000000000000000000000000000000000000000001'"}, "doc.fsc_evm.dim_contract_abis_table_doc": {"name": "dim_contract_abis_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/dim_contract_abis.md", "original_file_path": "models/doc_descriptions/core/dim_contract_abis.md", "unique_id": "doc.fsc_evm.dim_contract_abis_table_doc", "block_contents": "## What\n\nThis table contains Application Binary Interfaces (ABIs) for smart contracts deployed on EVM blockchains. ABIs define the contract's functions, events, and data structures, enabling the decoding of raw blockchain data into human-readable format.\n\n## Key Use Cases\n\n- Decoding raw event logs into human-readable format\n- Identifying contract functions and their parameters\n- Enabling interaction with smart contracts programmatically\n- Analyzing contract patterns and implementations across chains\n- Supporting automated contract verification and bytecode matching\n\n## Important Relationships\n\n- **Powers ez_decoded_event_logs**: ABIs enable event decoding\n- **Join with dim_contracts**: Use `contract_address` for contract metadata\n- **Enables fact_decoded_event_logs**: Raw to decoded transformation\n\n## Commonly-used Fields\n\n- `contract_address`: The contract's blockchain address\n- `abi`: The contract's Application Binary Interface in JSON format\n- `abi_source`: The origin of the ABI data (explorer verified, user submitted, bytecode matched)\n- `bytecode`: The compiled contract code deployed on-chain\n- `created_timestamp`: When the ABI was added to the database\n\n## Sample queries\n\n**Find Contracts Without ABIs**\n```sql\n-- Identify popular contracts needing ABIs\nWITH contract_activity AS (\n SELECT \n contract_address,\n COUNT(*) AS event_count\n FROM .core.fact_event_logs\n WHERE block_timestamp >= CURRENT_DATE - 7\n GROUP BY 1\n)\nSELECT \n ca.contract_address,\n c.name AS contract_name,\n ca.event_count,\n c.created_block_timestamp\nFROM contract_activity ca\nLEFT JOIN .core.dim_contract_abis abi ON ca.contract_address = abi.contract_address\nLEFT JOIN .core.dim_contracts c ON ca.contract_address = c.address\nWHERE abi.abi IS NULL\n OR abi.abi = '[]'\nORDER BY ca.event_count DESC\nLIMIT 100;\n```\n\n**Analyze ABI Functions and Events**\n```sql\n-- Extract event signatures from ABIs\nWITH abi_events AS (\n SELECT \n contract_address,\n abi_source,\n f.value:name::string AS event_name,\n f.value:type::string AS entry_type\n FROM .core.dim_contract_abis,\n LATERAL FLATTEN(input => PARSE_JSON(abi)) f\n WHERE f.value:type::string = 'event'\n AND abi IS NOT NULL\n)\nSELECT \n event_name,\n COUNT(DISTINCT contract_address) AS contracts_with_event,\n ARRAY_AGG(DISTINCT abi_source) AS sources\nFROM abi_events\nGROUP BY 1\nORDER BY 2 DESC\nLIMIT 50;\n```\n\n**Bytecode Matching Effectiveness**\n```sql\n-- Analyze bytecode matching success\nSELECT \n DATE_TRUNC('week', created_timestamp) AS week,\n COUNT(CASE WHEN abi_source = 'bytecode_matched' THEN 1 END) AS bytecode_matched,\n COUNT(CASE WHEN abi_source = 'user_submitted' THEN 1 END) AS user_submitted,\n COUNT(CASE WHEN abi_source LIKE '%explorer%' THEN 1 END) AS explorer_verified,\n COUNT(*) AS total_new_abis\nFROM .core.dim_contract_abis\nWHERE created_timestamp >= CURRENT_DATE - 90\nGROUP BY 1\nORDER BY 1 DESC;\n```\n\n**Common Contract Patterns**\n```sql\n-- Find contracts sharing bytecode (proxy patterns, clones)\nWITH bytecode_groups AS (\n SELECT \n bytecode,\n COUNT(DISTINCT contract_address) AS contract_count,\n ARRAY_AGG(DISTINCT contract_address) AS contracts,\n MAX(abi) AS sample_abi\n FROM .core.dim_contract_abis\n WHERE bytecode IS NOT NULL\n AND LENGTH(bytecode) > 100 -- Exclude minimal contracts\n GROUP BY 1\n HAVING COUNT(DISTINCT contract_address) > 5\n)\nSELECT \n contract_count,\n ARRAY_SIZE(contracts) AS unique_addresses,\n LEFT(bytecode, 20) || '...' AS bytecode_prefix,\n CASE \n WHEN sample_abi LIKE '%proxy%' THEN 'Likely Proxy'\n WHEN sample_abi LIKE '%clone%' THEN 'Likely Clone'\n ELSE 'Standard Pattern'\n END AS pattern_type\nFROM bytecode_groups\nORDER BY contract_count DESC\nLIMIT 20;\n```"}, "doc.fsc_evm.dim_contract_abis_abi": {"name": "dim_contract_abis_abi", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/dim_contract_abis.md", "original_file_path": "models/doc_descriptions/core/dim_contract_abis.md", "unique_id": "doc.fsc_evm.dim_contract_abis_abi", "block_contents": "The contract's Application Binary Interface in JSON format, containing function and event definitions that enable interaction with the smart contract.\n\nExample: '[{\"name\":\"transfer\",\"type\":\"function\",\"inputs\":[{\"name\":\"to\",\"type\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}]}]'"}, "doc.fsc_evm.dim_contract_abis_abi_source": {"name": "dim_contract_abis_abi_source", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/dim_contract_abis.md", "original_file_path": "models/doc_descriptions/core/dim_contract_abis.md", "unique_id": "doc.fsc_evm.dim_contract_abis_abi_source", "block_contents": "The origin of the ABI data, indicating trust level and collection method.\n\nExample: 'etherscan'"}, "doc.fsc_evm.dim_contract_abis_bytecode": {"name": "dim_contract_abis_bytecode", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/dim_contract_abis.md", "original_file_path": "models/doc_descriptions/core/dim_contract_abis.md", "unique_id": "doc.fsc_evm.dim_contract_abis_bytecode", "block_contents": "The compiled contract code deployed on-chain, used for bytecode matching and identifying identical contracts.\n\nExample: '0x608060405234801561001057600080fd5b50...'"}, "doc.fsc_evm.evm_contract_reads_table_doc": {"name": "evm_contract_reads_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/contract_reads.md", "original_file_path": "models/doc_descriptions/core/contract_reads.md", "unique_id": "doc.fsc_evm.evm_contract_reads_table_doc", "block_contents": "This table contains contract reads for a variety of functions and contracts on this EVM blockchain."}, "doc.fsc_evm.evm_contract_reads_contract_address": {"name": "evm_contract_reads_contract_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/contract_reads.md", "original_file_path": "models/doc_descriptions/core/contract_reads.md", "unique_id": "doc.fsc_evm.evm_contract_reads_contract_address", "block_contents": "The address of the contract read."}, "doc.fsc_evm.evm_contract_reads_block_number": {"name": "evm_contract_reads_block_number", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/contract_reads.md", "original_file_path": "models/doc_descriptions/core/contract_reads.md", "unique_id": "doc.fsc_evm.evm_contract_reads_block_number", "block_contents": "The block number the contract address was read at."}, "doc.fsc_evm.evm_contract_reads_function_signature": {"name": "evm_contract_reads_function_signature", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/contract_reads.md", "original_file_path": "models/doc_descriptions/core/contract_reads.md", "unique_id": "doc.fsc_evm.evm_contract_reads_function_signature", "block_contents": "The function signature called by this read. See `dim_function_signatures` for text versions."}, "doc.fsc_evm.evm_contract_reads_function_input": {"name": "evm_contract_reads_function_input", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/contract_reads.md", "original_file_path": "models/doc_descriptions/core/contract_reads.md", "unique_id": "doc.fsc_evm.evm_contract_reads_function_input", "block_contents": "The function inputs called in this read, if applicable."}, "doc.fsc_evm.evm_read_output": {"name": "evm_read_output", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/contract_reads.md", "original_file_path": "models/doc_descriptions/core/contract_reads.md", "unique_id": "doc.fsc_evm.evm_read_output", "block_contents": "The return of the contract call."}, "doc.fsc_evm.evm_segmented_output": {"name": "evm_segmented_output", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/contract_reads.md", "original_file_path": "models/doc_descriptions/core/contract_reads.md", "unique_id": "doc.fsc_evm.evm_segmented_output", "block_contents": "The return of the contract call, segmented into 64 character strings."}, "doc.fsc_evm.evm_event_sig_table_doc": {"name": "evm_event_sig_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/signatures.md", "original_file_path": "models/doc_descriptions/core/signatures.md", "unique_id": "doc.fsc_evm.evm_event_sig_table_doc", "block_contents": "This table contains event signatures used to decode event data into a human-readable format on this EVM blockchain. For more details see (https://www.4byte.directory/)."}, "doc.fsc_evm.evm_function_sig_table_doc": {"name": "evm_function_sig_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/signatures.md", "original_file_path": "models/doc_descriptions/core/signatures.md", "unique_id": "doc.fsc_evm.evm_function_sig_table_doc", "block_contents": "This table contains function signatures used to decode call data into a human-readable format on this EVM blockchain. For more details see (https://www.4byte.directory/)."}, "doc.fsc_evm.evm_bytes_signature": {"name": "evm_bytes_signature", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/signatures.md", "original_file_path": "models/doc_descriptions/core/signatures.md", "unique_id": "doc.fsc_evm.evm_bytes_signature", "block_contents": "The byte signature for this function on this EVM blockchain."}, "doc.fsc_evm.evm_function_id": {"name": "evm_function_id", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/signatures.md", "original_file_path": "models/doc_descriptions/core/signatures.md", "unique_id": "doc.fsc_evm.evm_function_id", "block_contents": "The ID for this function or event signature on this EVM blockchain."}, "doc.fsc_evm.evm_hex_signature": {"name": "evm_hex_signature", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/signatures.md", "original_file_path": "models/doc_descriptions/core/signatures.md", "unique_id": "doc.fsc_evm.evm_hex_signature", "block_contents": "The hex signature for this event on this EVM blockchain."}, "doc.fsc_evm.evm_text_signature": {"name": "evm_text_signature", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/signatures.md", "original_file_path": "models/doc_descriptions/core/signatures.md", "unique_id": "doc.fsc_evm.evm_text_signature", "block_contents": "The human-readable format for this function or event on this EVM blockchain."}, "doc.fsc_evm.ez_current_balances_table_doc": {"name": "ez_current_balances_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.ez_current_balances_table_doc", "block_contents": "This table contains the current, non-zero balances for wallets on this EVM blockchain. Symbol, name, and price are joined where possible. Prices are calculated as of the last activity date and as of the most recently recorded hourly price. ERC721s are included.\n\nPlease note - the underlying data for this is large. If you want your query to run quickly, please use filters as much as possible. Using at least `last_activity_block_timestamp::date` as a filter will lead to optimal query performance."}, "doc.fsc_evm.evm_daily_balances_table_doc": {"name": "evm_daily_balances_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_daily_balances_table_doc", "block_contents": "READ THIS!\n\nTLDR - You MUST use filters when interacting with this view. At a minimum, the `balance_date` must be filtered. Use `ez_balance_diffs` if possible. Only activity 2020+ is included.\n\nThis view contains the average daily balance of every wallet, for every token, including ERC721s. Previous balances are carried forward on days without activity.\n\nThis is an absolutely massive view, which is why filters must be applied if you do not want your query to time out. Balance_date is a requirement, but other filters will also be helpful for query performance. Data before 2020 has been excluded for performance sake. Wallets with activity before Jan 1 2020 may be represented incorrectly. You can find these older records in `ez_balance_diffs`.\n\n`ez_balance_diffs` will have the best query performance of the balances tables, please use it if possible."}, "doc.fsc_evm.ez_balance_diffs_table_doc": {"name": "ez_balance_diffs_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.ez_balance_diffs_table_doc", "block_contents": "This table contains the block level balance changes for both tokens (including ERC721s) and the native asset on this EVM blockchain for all wallets and contracts. If a token or the native asset is moved, we will read the balance of the involved wallets at that block, and carry forward the previous balance into the current record. Symbol, name, and price are joined where possible. ERC721s are included. \n\nPlease note - the underlying data for this is large. If you want your query to run quickly, please use filters as much as possible. Using at least `block_timestamp::date` as a filter will lead to optimal query performance.\n\nIf you want to take this data and make it daily, you can do so with the query below. You must use a `block_timestamp::date` filter here at a minimum. Other filters will help query runtime. \n\n```sql\nWITH base_table AS (\n SELECT\n block_timestamp :: DATE AS balance_date,\n CASE\n WHEN symbol = 'ETH' THEN 'ETH'\n ELSE contract_address\n END AS contract_address,\n user_address,\n symbol,\n current_bal\n FROM\n ethereum.core.ez_balance_diffs\n WHERE\n block_timestamp :: DATE >= '' --user input \n AND user_address = '' --user input\n AND (\n contract_address = '' --user input1\n OR symbol = 'ETH'\n )\n),\nall_days AS (\n SELECT\n date_day AS balance_date\n FROM\n ethereum.core.dim_dates\n),\naddress_ranges AS (\n SELECT\n user_address,\n contract_address,\n symbol,\n MIN(\n balance_date :: DATE\n ) AS min_block_date,\n CURRENT_DATE() :: DATE AS max_block_date\n FROM\n base_table\n GROUP BY\n user_address,\n contract_address,\n symbol,\n max_block_date\n),\nall_dates AS (\n SELECT\n C.balance_date,\n A.user_address,\n A.contract_address,\n A.symbol\n FROM\n all_days C\n LEFT JOIN address_ranges A\n ON C.full_balance_date BETWEEN A.min_block_date\n AND A.max_block_date\n WHERE\n A.user_address IS NOT NULL\n),\neth_balances AS (\n SELECT\n user_address,\n contract_address,\n balance_date,\n current_bal,\n TRUE AS daily_activity\n FROM\n base_table\n),\nbalance_tmp AS (\n SELECT\n d.balance_date,\n d.user_address,\n d.contract_address,\n d.symbol,\n b.current_bal,\n b.daily_activity\n FROM\n all_dates d\n LEFT JOIN eth_balances b\n ON d.balance_date = b.balance_date\n AND d.user_address = b.user_address\n AND d.contract_address = b.contract_address\n),\nFINAL AS (\n SELECT\n balance_date,\n user_address,\n contract_address,\n symbol,\n LAST_VALUE(\n current_bal ignore nulls\n ) over(\n PARTITION BY user_address,\n contract_address\n ORDER BY\n balance_date ASC rows unbounded preceding\n ) AS balance,\n CASE\n WHEN daily_activity IS NULL THEN FALSE\n ELSE TRUE\n END AS daily_activity\n FROM\n balance_tmp\n)\nSELECT\n *\nFROM\n FINAL\nWHERE\n balance <> 0\nORDER BY\n balance_date DESC,\n contract_address\n```"}, "doc.fsc_evm.evm_has_decimal": {"name": "evm_has_decimal", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_has_decimal", "block_contents": "Whether the token has a decimal or not, either TRUE or FALSE."}, "doc.fsc_evm.evm_has_price": {"name": "evm_has_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_has_price", "block_contents": "Whether the token has an hourly price or not, either TRUE or FALSE."}, "doc.fsc_evm.evm_current_balances_last_activity_block": {"name": "evm_current_balances_last_activity_block", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_current_balances_last_activity_block", "block_contents": "The last block where this token was transferred by this address."}, "doc.fsc_evm.evm_current_balances_block_timestamp": {"name": "evm_current_balances_block_timestamp", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_current_balances_block_timestamp", "block_contents": "The last block timestamp where this token was transferred by this address."}, "doc.fsc_evm.evm_current_balances_user_address": {"name": "evm_current_balances_user_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_current_balances_user_address", "block_contents": "The wallet address holding the tokens / native asset."}, "doc.fsc_evm.evm_current_balances_contract_address": {"name": "evm_current_balances_contract_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_current_balances_contract_address", "block_contents": "The contract address of the token (null for native asset)."}, "doc.fsc_evm.evm_current_balances_current_bal_unadj": {"name": "evm_current_balances_current_bal_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_current_balances_current_bal_unadj", "block_contents": "The current token or native asset balance for this address, without a decimal adjustment."}, "doc.fsc_evm.evm_current_balances_current_bal": {"name": "evm_current_balances_current_bal", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_current_balances_current_bal", "block_contents": "The decimal adjusted current token or native asset balance."}, "doc.fsc_evm.evm_current_balances_usd_value_last_activity": {"name": "evm_current_balances_usd_value_last_activity", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_current_balances_usd_value_last_activity", "block_contents": "The value of the tokens or native asset in USD, at the time the last token activity occurred. Will be null for tokens without a decimal."}, "doc.fsc_evm.evm_current_balances_usd_value_now": {"name": "evm_current_balances_usd_value_now", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_current_balances_usd_value_now", "block_contents": "The value of the tokens or native asset in USD, as of the most recently recorded hourly price. Will be null for tokens without a decimal."}, "doc.fsc_evm.evm_current_balances_symbol": {"name": "evm_current_balances_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_current_balances_symbol", "block_contents": "The symbol of the token contract, or native asset."}, "doc.fsc_evm.evm_current_balances_token_name": {"name": "evm_current_balances_token_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_current_balances_token_name", "block_contents": "The name of the token contract, or native asset."}, "doc.fsc_evm.evm_current_balances_decimals": {"name": "evm_current_balances_decimals", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_current_balances_decimals", "block_contents": "The decimals for the token contract."}, "doc.fsc_evm.evm_current_balances_has_decimal": {"name": "evm_current_balances_has_decimal", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_current_balances_has_decimal", "block_contents": "Whether the token has a decimal or not, either TRUE or FALSE."}, "doc.fsc_evm.evm_current_balances_has_price": {"name": "evm_current_balances_has_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_current_balances_has_price", "block_contents": "Whether the token has an hourly price or not, either TRUE or FALSE."}, "doc.fsc_evm.evm_current_balances_last_recorded_price": {"name": "evm_current_balances_last_recorded_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_current_balances_last_recorded_price", "block_contents": "The timestamp of the last hourly price recorded for this token."}, "doc.fsc_evm.evm_balance_deltas_block_number": {"name": "evm_balance_deltas_block_number", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_balance_deltas_block_number", "block_contents": "Block at which the balance was read (when the transfer occurred)."}, "doc.fsc_evm.evm_balance_deltas_block_timestamp": {"name": "evm_balance_deltas_block_timestamp", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_balance_deltas_block_timestamp", "block_contents": "Block timestamp at which the balance was read (when the transfer occurred)."}, "doc.fsc_evm.evm_balance_deltas_user_address": {"name": "evm_balance_deltas_user_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_balance_deltas_user_address", "block_contents": "The wallet address holding the tokens / native asset."}, "doc.fsc_evm.evm_balance_deltas_contract_address": {"name": "evm_balance_deltas_contract_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_balance_deltas_contract_address", "block_contents": "The contract address of the token (null for native asset)."}, "doc.fsc_evm.evm_balance_deltas_prev_bal_unadj": {"name": "evm_balance_deltas_prev_bal_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_balance_deltas_prev_bal_unadj", "block_contents": "The token or native asset balance from the previously recorded record for this wallet / token, without a decimal adjustment."}, "doc.fsc_evm.evm_balance_deltas_prev_bal": {"name": "evm_balance_deltas_prev_bal", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_balance_deltas_prev_bal", "block_contents": "The decimal adjusted token or native asset balance from the previously recorded record for this wallet and token."}, "doc.fsc_evm.evm_balance_deltas_prev_bal_usd": {"name": "evm_balance_deltas_prev_bal_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_balance_deltas_prev_bal_usd", "block_contents": "Previously recorded balance in USD - this will be null for tokens without a decimal adjustment. Please note, the USD value is calculated at this block."}, "doc.fsc_evm.evm_balance_deltas_current_bal_unadj": {"name": "evm_balance_deltas_current_bal_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_balance_deltas_current_bal_unadj", "block_contents": "The token or native asset balance at the current block number, without a decimal adjustment."}, "doc.fsc_evm.evm_balance_deltas_current_bal": {"name": "evm_balance_deltas_current_bal", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_balance_deltas_current_bal", "block_contents": "The decimal adjusted token or native asset balance at the current block number."}, "doc.fsc_evm.evm_balance_deltas_current_bal_usd": {"name": "evm_balance_deltas_current_bal_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_balance_deltas_current_bal_usd", "block_contents": "The current balance in USD - this will be null for tokens without a decimal adjustment. Please note, the USD value is calculated at this block."}, "doc.fsc_evm.evm_bal_delta_unadj": {"name": "evm_bal_delta_unadj", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_bal_delta_unadj", "block_contents": "The non-decimal adjusted balance change."}, "doc.fsc_evm.evm_bal_delta": {"name": "evm_bal_delta", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_bal_delta", "block_contents": "The decimal adjusted balance change."}, "doc.fsc_evm.evm_bal_delta_usd": {"name": "evm_bal_delta_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/balances.md", "original_file_path": "models/doc_descriptions/core/balances.md", "unique_id": "doc.fsc_evm.evm_bal_delta_usd", "block_contents": "The balance change in USD, will be null for tokens without a decimal."}, "doc.fsc_evm.ez_token_transfers_table_doc": {"name": "ez_token_transfers_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_token_transfers.md", "original_file_path": "models/doc_descriptions/core/ez_token_transfers.md", "unique_id": "doc.fsc_evm.ez_token_transfers_table_doc", "block_contents": "## What\n\nThis convenience table provides a comprehensive view of all ERC-20 token transfers with enriched metadata including decimal adjustments, USD values, and token information. It simplifies token flow analysis by joining transfer events with contract details and price data.\n\n## Key Use Cases\n\n- Tracking token movements and holder activity\n- Analyzing stablecoin flows and volumes\n- Monitoring DEX token inflows and outflows\n- Detecting new token launches and adoption\n- Calculating wallet token balances from transfer history\n\n## Important Relationships\n\n- **Join with fact_event_logs**: Use `tx_hash` and `event_index` for raw event details\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Join with dim_contracts**: Use `contract_address` for token metadata\n- **Complement to ez_native_transfers**: Complete picture of value flows\n\n## Commonly-used Fields\n\n- `contract_address`: The token contract address (NOT the recipient)\n- `from_address`: Token sender address\n- `to_address`: Token recipient address\n- `amount`: Decimal-adjusted transfer amount\n- `amount_usd`: USD value at time of transfer\n- `symbol`: Token symbol (e.g., USDC, DAI)\n- `raw_amount`: Original amount without decimal adjustment\n\n## Sample queries\n\n**Top Token Transfers by USD Value**\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n symbol,\n from_address,\n to_address,\n amount,\n amount_usd,\n token_price,\n contract_address\nFROM .core.ez_token_transfers\nWHERE block_timestamp >= CURRENT_DATE - 7\n AND amount_usd > 100000 -- Over $100k\n AND has_decimal = TRUE\n AND has_price = TRUE\nORDER BY amount_usd DESC\nLIMIT 100;\n```\n\n**Daily Stablecoin Volume Analysis**\n```sql\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n symbol,\n COUNT(*) AS transfer_count,\n COUNT(DISTINCT from_address) AS unique_senders,\n SUM(amount) AS total_amount,\n SUM(amount_usd) AS total_usd,\n AVG(amount_usd) AS avg_transfer_usd\nFROM .core.ez_token_transfers\nWHERE symbol IN ('USDC', 'USDT', 'DAI', 'BUSD')\n AND block_timestamp >= CURRENT_DATE - 30\n AND has_decimal = TRUE\nGROUP BY 1, 2\nORDER BY 1 DESC, 6 DESC;\n```\n\n**DEX Token Flow Analysis**\n```sql\nWITH dex_addresses AS (\n SELECT address \n FROM .core.dim_labels \n WHERE label_type = 'dex' \n AND label_subtype IN ('pool', 'router')\n)\nSELECT \n DATE_TRUNC('hour', block_timestamp) AS hour,\n symbol,\n CASE \n WHEN from_address IN (SELECT address FROM dex_addresses) THEN 'DEX Outflow'\n WHEN to_address IN (SELECT address FROM dex_addresses) THEN 'DEX Inflow'\n END AS flow_type,\n COUNT(*) AS transfers,\n SUM(amount) AS total_amount,\n SUM(amount_usd) AS total_usd\nFROM .core.ez_token_transfers\nWHERE block_timestamp >= CURRENT_DATE - 1\n AND (from_address IN (SELECT address FROM dex_addresses)\n OR to_address IN (SELECT address FROM dex_addresses))\n AND symbol IS NOT NULL\nGROUP BY 1, 2, 3\nORDER BY 1 DESC, 6 DESC;\n```\n\n**Token Holder Activity**\n```sql\n-- Most active token senders\nSELECT \n from_address,\n COUNT(DISTINCT contract_address) AS tokens_sent,\n COUNT(DISTINCT DATE(block_timestamp)) AS active_days,\n COUNT(*) AS total_transfers,\n SUM(amount_usd) AS total_usd_sent\nFROM .core.ez_token_transfers\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND has_price = TRUE\n AND amount_usd > 10 -- Filter dust\nGROUP BY 1\nHAVING COUNT(*) > 10\nORDER BY total_usd_sent DESC\nLIMIT 100;\n```\n\n**New Token Detection**\n```sql\nWITH first_transfers AS (\n SELECT \n contract_address,\n symbol,\n MIN(block_timestamp) AS first_transfer,\n COUNT(*) AS transfer_count,\n COUNT(DISTINCT from_address) AS unique_senders,\n COUNT(DISTINCT to_address) AS unique_receivers\n FROM .core.ez_token_transfers\n WHERE block_timestamp >= CURRENT_DATE - 7\n GROUP BY 1, 2\n HAVING MIN(block_timestamp) >= CURRENT_DATE - 1\n)\nSELECT \n ft.*,\n dc.name AS token_name,\n dc.decimals\nFROM first_transfers ft\nLEFT JOIN .core.dim_contracts dc ON ft.contract_address = dc.address\nORDER BY transfer_count DESC;\n```"}, "doc.fsc_evm.ez_token_transfers_from_address": {"name": "ez_token_transfers_from_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_token_transfers.md", "original_file_path": "models/doc_descriptions/core/ez_token_transfers.md", "unique_id": "doc.fsc_evm.ez_token_transfers_from_address", "block_contents": "The from address for the token transfer. This may or may not be the same as the origin_from_address.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "doc.fsc_evm.ez_token_transfers_to_address": {"name": "ez_token_transfers_to_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_token_transfers.md", "original_file_path": "models/doc_descriptions/core/ez_token_transfers.md", "unique_id": "doc.fsc_evm.ez_token_transfers_to_address", "block_contents": "The to address for the token transfer. This may or may not be the same as the origin_to_address.\n\nExample: '0xabcdefabcdefabcdefabcdefabcdefabcdefabcd'"}, "doc.fsc_evm.ez_token_transfers_contract_address": {"name": "ez_token_transfers_contract_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_token_transfers.md", "original_file_path": "models/doc_descriptions/core/ez_token_transfers.md", "unique_id": "doc.fsc_evm.ez_token_transfers_contract_address", "block_contents": "The contract address for the token transfer.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "doc.fsc_evm.ez_token_transfers_token_standard": {"name": "ez_token_transfers_token_standard", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_token_transfers.md", "original_file_path": "models/doc_descriptions/core/ez_token_transfers.md", "unique_id": "doc.fsc_evm.ez_token_transfers_token_standard", "block_contents": "The token standard for the transfer, in this case always erc20.\n\nExample: 'erc20'"}, "doc.fsc_evm.ez_token_transfers_token_is_verified": {"name": "ez_token_transfers_token_is_verified", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_token_transfers.md", "original_file_path": "models/doc_descriptions/core/ez_token_transfers.md", "unique_id": "doc.fsc_evm.ez_token_transfers_token_is_verified", "block_contents": "Boolean flag indicating if the token is verified by the Flipside team.\n\nExample: true"}, "doc.fsc_evm.ez_token_transfers_amount": {"name": "ez_token_transfers_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_token_transfers.md", "original_file_path": "models/doc_descriptions/core/ez_token_transfers.md", "unique_id": "doc.fsc_evm.ez_token_transfers_amount", "block_contents": "Decimal-adjusted token amount for human-readable values.\n\nExample: 1000.50"}, "doc.fsc_evm.ez_token_transfers_amount_precise": {"name": "ez_token_transfers_amount_precise", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_token_transfers.md", "original_file_path": "models/doc_descriptions/core/ez_token_transfers.md", "unique_id": "doc.fsc_evm.ez_token_transfers_amount_precise", "block_contents": "String representation of decimal-adjusted amount preserving full precision.\n\nExample: '1000.500000'"}, "doc.fsc_evm.ez_token_transfers_amount_usd": {"name": "ez_token_transfers_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_token_transfers.md", "original_file_path": "models/doc_descriptions/core/ez_token_transfers.md", "unique_id": "doc.fsc_evm.ez_token_transfers_amount_usd", "block_contents": "USD value of the token transfer at transaction time.\n\nExample: 1000.50"}, "doc.fsc_evm.ez_token_transfers_raw_amount": {"name": "ez_token_transfers_raw_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_token_transfers.md", "original_file_path": "models/doc_descriptions/core/ez_token_transfers.md", "unique_id": "doc.fsc_evm.ez_token_transfers_raw_amount", "block_contents": "Original token amount without decimal adjustment.\n\nExample: 1000500000"}, "doc.fsc_evm.ez_token_transfers_raw_amount_precise": {"name": "ez_token_transfers_raw_amount_precise", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_token_transfers.md", "original_file_path": "models/doc_descriptions/core/ez_token_transfers.md", "unique_id": "doc.fsc_evm.ez_token_transfers_raw_amount_precise", "block_contents": "String representation of raw amount for precision preservation.\n\nExample: '1000500000'"}, "doc.fsc_evm.dim_contracts_table_doc": {"name": "dim_contracts_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/dim_contracts.md", "original_file_path": "models/doc_descriptions/core/dim_contracts.md", "unique_id": "doc.fsc_evm.dim_contracts_table_doc", "block_contents": "## What\n\nThis table provides comprehensive metadata for all smart contracts deployed on EVM blockchains. It includes contract names, symbols, decimals, and deployment details read directly from the blockchain.\n\n## Key Use Cases\n\n- Identifying contracts by name, symbol, or address\n- Understanding token properties (decimals, symbols)\n- Tracking contract deployment patterns and trends\n- Finding contracts deployed by specific factories or deployers\n- Filtering protocol-specific data across other tables\n\n## Important Relationships\n\n- **Join with fact_transactions**: Use `address = to_address` for contract interactions\n- **Join with fact_event_logs**: Use `address = contract_address` for contract events\n- **Join with ez_token_transfers**: Use `address = contract_address` for token movements\n\n## Commonly-used Fields\n\n- `address`: The deployed contract's blockchain address (lowercase)\n- `name`: Human-readable contract name from the name() function\n- `symbol`: Token/contract symbol from the symbol() function\n- `decimals`: Number of decimal places for token amounts\n- `creator_address`: Address that deployed this contract\n- `created_block_timestamp`: When the contract was created\n\n## Sample queries\n\n**Find All Uniswap V3 Pool Contracts**\n\n```sql\nSELECT \n address,\n name,\n created_block_number,\n created_block_timestamp,\n creator_address\nFROM .core.dim_contracts\nWHERE creator_address = LOWER('0x1F98431c8aD98523631AE4a59f267346ea31F984') -- Uniswap V3 Factory\nORDER BY created_block_number DESC\nLIMIT 100;\n```\n\n**Analyze Contract Deployment Trends**\n\n```sql\nSELECT \n DATE_TRUNC('week', created_block_timestamp) AS week,\n COUNT(*) AS contracts_deployed,\n COUNT(DISTINCT creator_address) AS unique_deployers\nFROM .core.dim_contracts\nWHERE created_block_timestamp >= CURRENT_DATE - 90\nGROUP BY 1, 2\nORDER BY 1 DESC, 3 DESC;\n```"}, "doc.fsc_evm.dim_contracts_created_block_number": {"name": "dim_contracts_created_block_number", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/dim_contracts.md", "original_file_path": "models/doc_descriptions/core/dim_contracts.md", "unique_id": "doc.fsc_evm.dim_contracts_created_block_number", "block_contents": "Block number when contract was created.\n\nExample: 17500000"}, "doc.fsc_evm.dim_contracts_created_block_timestamp": {"name": "dim_contracts_created_block_timestamp", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/dim_contracts.md", "original_file_path": "models/doc_descriptions/core/dim_contracts.md", "unique_id": "doc.fsc_evm.dim_contracts_created_block_timestamp", "block_contents": "Timestamp when contract was created.\n\nExample: 2023-06-15 14:30:00.000"}, "doc.fsc_evm.dim_contracts_address": {"name": "dim_contracts_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/dim_contracts.md", "original_file_path": "models/doc_descriptions/core/dim_contracts.md", "unique_id": "doc.fsc_evm.dim_contracts_address", "block_contents": "Unique identifier - the deployed contract's blockchain address.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "doc.fsc_evm.dim_contracts_name": {"name": "dim_contracts_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/dim_contracts.md", "original_file_path": "models/doc_descriptions/core/dim_contracts.md", "unique_id": "doc.fsc_evm.dim_contracts_name", "block_contents": "Human-readable contract name from the name() function.\n\nExample: 'USD Coin'"}, "doc.fsc_evm.dim_contracts_symbol": {"name": "dim_contracts_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/dim_contracts.md", "original_file_path": "models/doc_descriptions/core/dim_contracts.md", "unique_id": "doc.fsc_evm.dim_contracts_symbol", "block_contents": "Token/contract symbol from the symbol() function.\n\nExample: 'USDC'"}, "doc.fsc_evm.dim_contracts_creator_address": {"name": "dim_contracts_creator_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/dim_contracts.md", "original_file_path": "models/doc_descriptions/core/dim_contracts.md", "unique_id": "doc.fsc_evm.dim_contracts_creator_address", "block_contents": "Address that deployed this contract (transaction from_address).\n\nExample: '0x95ba4cf87d6723ad9c0db21737d862be80e93911'"}, "doc.fsc_evm.dim_contracts_decimals": {"name": "dim_contracts_decimals", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/dim_contracts.md", "original_file_path": "models/doc_descriptions/core/dim_contracts.md", "unique_id": "doc.fsc_evm.dim_contracts_decimals", "block_contents": "Number of decimal places for token amounts, read directly from the contract code.\n\nExample: 6"}, "doc.fsc_evm.dim_contracts_created_tx_hash": {"name": "dim_contracts_created_tx_hash", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/dim_contracts.md", "original_file_path": "models/doc_descriptions/core/dim_contracts.md", "unique_id": "doc.fsc_evm.dim_contracts_created_tx_hash", "block_contents": "Transaction hash of the contract deployment.\n\nExample: '0x4f01db1f857e711af502ad6fa8b5b3ccd9e36b5f8c8a7b2c1d3e4f5a6b7c8d9e'"}, "doc.fsc_evm.ez_decoded_traces_table_doc": {"name": "ez_decoded_traces_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_decoded_traces.md", "original_file_path": "models/doc_descriptions/core/ez_decoded_traces.md", "unique_id": "doc.fsc_evm.ez_decoded_traces_table_doc", "block_contents": "This model contains decoded data for traces on this EVM blockchain. It will not contain all records, but only those for which we have a valid ABI. If you are interested in submitting a contract for decoding, please visit [here](https://science.flipsidecrypto.xyz/abi-requestor/)."}, "doc.fsc_evm.ez_decoded_traces_function_name": {"name": "ez_decoded_traces_function_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_decoded_traces.md", "original_file_path": "models/doc_descriptions/core/ez_decoded_traces.md", "unique_id": "doc.fsc_evm.ez_decoded_traces_function_name", "block_contents": "The name of the function called in the trace."}, "doc.fsc_evm.ez_decoded_traces_decoded_input_data": {"name": "ez_decoded_traces_decoded_input_data", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_decoded_traces.md", "original_file_path": "models/doc_descriptions/core/ez_decoded_traces.md", "unique_id": "doc.fsc_evm.ez_decoded_traces_decoded_input_data", "block_contents": "Decoded input data for the trace."}, "doc.fsc_evm.ez_decoded_traces_decoded_output_data": {"name": "ez_decoded_traces_decoded_output_data", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_decoded_traces.md", "original_file_path": "models/doc_descriptions/core/ez_decoded_traces.md", "unique_id": "doc.fsc_evm.ez_decoded_traces_decoded_output_data", "block_contents": "Decoded output data for the trace."}, "doc.fsc_evm.ez_decoded_traces_full_decoded_trace": {"name": "ez_decoded_traces_full_decoded_trace", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_decoded_traces.md", "original_file_path": "models/doc_descriptions/core/ez_decoded_traces.md", "unique_id": "doc.fsc_evm.ez_decoded_traces_full_decoded_trace", "block_contents": "The full json object of the decoded trace, including both input and output data."}, "doc.fsc_evm.fact_traces_table_doc": {"name": "fact_traces_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_traces.md", "original_file_path": "models/doc_descriptions/core/fact_traces.md", "unique_id": "doc.fsc_evm.fact_traces_table_doc", "block_contents": "## What\n\nThis table contains detailed execution traces of all internal transactions within the EVM. While fact_transactions shows external calls, this table reveals the complete execution flow including contract-to-contract calls, value transfers, and computation paths.\n\n## Key Use Cases\n\n- Analyzing internal contract-to-contract calls and value transfers\n- Debugging failed transactions and understanding revert reasons\n- Tracking contract deployments (CREATE/CREATE2 operations)\n- Understanding DeFi protocol interactions and MEV analysis\n- Monitoring delegatecall patterns and proxy contract usage\n\n## Important Relationships\n\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Self-join for trace tree**: Use `tx_hash` and `trace_address` array relationships\n- **Join with fact_event_logs**: Match execution flow with events\n- **Join with dim_contracts**: Get metadata for interacting contracts\n\n## Commonly-used Fields\n\n- `trace_index`: Sequential execution order within transaction\n- `trace_address`: Array showing position in execution tree\n- `type`: Operation type (CALL, DELEGATECALL, CREATE, etc.)\n- `from_address`: Address initiating this internal call\n- `to_address`: Destination address (NULL for contract creation)\n- `value`: Native token amount transferred\n- `trace_succeeded`: Whether execution completed successfully\n\n## Sample queries\n\n```sql\n-- Analyze internal ETH transfers\nSELECT \n block_timestamp,\n tx_hash,\n trace_index,\n type,\n from_address,\n to_address,\n value,\n gas_used,\n trace_succeeded\nFROM .core.fact_traces\nWHERE value > 0\n AND type = 'CALL'\n AND trace_succeeded\n AND block_timestamp >= CURRENT_DATE - 1\nORDER BY value DESC\nLIMIT 100;\n\n-- Find failed internal transactions with reasons\nSELECT \n tx_hash,\n trace_index,\n from_address,\n to_address,\n type,\n error_reason,\n revert_reason,\n gas,\n gas_used\nFROM .core.fact_traces\nWHERE NOT trace_succeeded\n AND block_timestamp >= CURRENT_DATE - 1\n AND error_reason IS NOT NULL\nLIMIT 50;\n\n-- Trace execution depth analysis\nSELECT \n tx_hash,\n MAX(ARRAY_SIZE(trace_address)) AS max_depth,\n COUNT(*) AS total_traces,\n SUM(CASE WHEN trace_succeeded THEN 0 ELSE 1 END) AS failed_traces,\n SUM(value) AS total_value_transferred\nFROM .core.fact_traces\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1\nHAVING MAX(ARRAY_SIZE(trace_address)) > 3\nORDER BY 2 DESC;\n\n-- Contract interaction patterns\nWITH contract_calls AS (\n SELECT \n from_address AS caller,\n to_address AS callee,\n COUNT(*) AS call_count,\n SUM(value) AS total_value\n FROM .core.fact_traces\n WHERE type IN ('CALL', 'DELEGATECALL')\n AND block_timestamp >= CURRENT_DATE - 7\n GROUP BY 1, 2\n)\nSELECT * FROM contract_calls\nWHERE call_count > 100\nORDER BY call_count DESC;\n```"}, "doc.fsc_evm.fact_traces_from_address": {"name": "fact_traces_from_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_traces.md", "original_file_path": "models/doc_descriptions/core/fact_traces.md", "unique_id": "doc.fsc_evm.fact_traces_from_address", "block_contents": "Address that initiated this specific internal call.\n\nExample: '0x7a250d5630b4cf539739df2c5dacb4c659f2488d'"}, "doc.fsc_evm.fact_traces_gas": {"name": "fact_traces_gas", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_traces.md", "original_file_path": "models/doc_descriptions/core/fact_traces.md", "unique_id": "doc.fsc_evm.fact_traces_gas", "block_contents": "Gas allocated to this specific trace execution.\n\nExample: 250000"}, "doc.fsc_evm.fact_traces_gas_used": {"name": "fact_traces_gas_used", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_traces.md", "original_file_path": "models/doc_descriptions/core/fact_traces.md", "unique_id": "doc.fsc_evm.fact_traces_gas_used", "block_contents": "Actual gas consumed by this trace execution.\n\nExample: 125673"}, "doc.fsc_evm.fact_traces_trace_index": {"name": "fact_traces_trace_index", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_traces.md", "original_file_path": "models/doc_descriptions/core/fact_traces.md", "unique_id": "doc.fsc_evm.fact_traces_trace_index", "block_contents": "Sequential index of trace within the transaction's execution.\n\nExample: 3"}, "doc.fsc_evm.fact_traces_input": {"name": "fact_traces_input", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_traces.md", "original_file_path": "models/doc_descriptions/core/fact_traces.md", "unique_id": "doc.fsc_evm.fact_traces_input", "block_contents": "Hex-encoded input data for this trace (function call data).\n\nExample: '0xa9059cbb0000000000000000000000001234567890123456789012345678901234567890'"}, "doc.fsc_evm.fact_traces_output": {"name": "fact_traces_output", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_traces.md", "original_file_path": "models/doc_descriptions/core/fact_traces.md", "unique_id": "doc.fsc_evm.fact_traces_output", "block_contents": "Hex-encoded output data from trace execution.\n\nExample: '0x0000000000000000000000000000000000000000000000000000000000000001'"}, "doc.fsc_evm.fact_traces_sub_traces": {"name": "fact_traces_sub_traces", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_traces.md", "original_file_path": "models/doc_descriptions/core/fact_traces.md", "unique_id": "doc.fsc_evm.fact_traces_sub_traces", "block_contents": "Count of immediate child traces spawned by this trace.\n\nExample: 2"}, "doc.fsc_evm.fact_traces_to_address": {"name": "fact_traces_to_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_traces.md", "original_file_path": "models/doc_descriptions/core/fact_traces.md", "unique_id": "doc.fsc_evm.fact_traces_to_address", "block_contents": "Destination address for this internal call.\n\nExample: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'"}, "doc.fsc_evm.fact_traces_type": {"name": "fact_traces_type", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_traces.md", "original_file_path": "models/doc_descriptions/core/fact_traces.md", "unique_id": "doc.fsc_evm.fact_traces_type", "block_contents": "The type of EVM operation performed.\n\nExample: 'CALL'"}, "doc.fsc_evm.fact_traces_trace_succeeded": {"name": "fact_traces_trace_succeeded", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_traces.md", "original_file_path": "models/doc_descriptions/core/fact_traces.md", "unique_id": "doc.fsc_evm.fact_traces_trace_succeeded", "block_contents": "Boolean indicating if the trace executed successfully.\n\nExample: true"}, "doc.fsc_evm.fact_traces_error_reason": {"name": "fact_traces_error_reason", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_traces.md", "original_file_path": "models/doc_descriptions/core/fact_traces.md", "unique_id": "doc.fsc_evm.fact_traces_error_reason", "block_contents": "Technical reason for trace failure.\n\nExample: 'Out of gas'"}, "doc.fsc_evm.fact_traces_trace_address": {"name": "fact_traces_trace_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_traces.md", "original_file_path": "models/doc_descriptions/core/fact_traces.md", "unique_id": "doc.fsc_evm.fact_traces_trace_address", "block_contents": "Array describing the trace's position in the execution tree.\n\nExample: [0, 1, 2]"}, "doc.fsc_evm.fact_traces_revert_reason": {"name": "fact_traces_revert_reason", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_traces.md", "original_file_path": "models/doc_descriptions/core/fact_traces.md", "unique_id": "doc.fsc_evm.fact_traces_revert_reason", "block_contents": "Human-readable revert message from contract require/revert statements.\n\nExample: 'Insufficient balance'"}, "doc.fsc_evm.fact_transactions_table_doc": {"name": "fact_transactions_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_table_doc", "block_contents": "## What\n\nThis table contains comprehensive transaction-level data for EVM blockchains. Each row represents a single transaction with its execution details, gas consumption, and value transfers. This is a high-level table for analyzing on-chain activity, user behavior, and protocol interactions.\n\n## Key Use Cases\n\n- Tracking wallet activity and transaction patterns\n- Analyzing gas fee trends and optimization opportunities\n- Monitoring smart contract interactions and usage\n- Calculating transaction volumes and network revenue\n- Detecting MEV, arbitrage, and trading patterns\n\n## Important Relationships\n\n- **Join with fact_blocks**: Use `block_number` for block-level context\n- **Join with fact_traces**: Use `tx_hash` for internal transactions\n- **Join with fact_event_logs**: Use `tx_hash` for emitted events\n- **Join with ez_decoded_event_logs**: Use `tx_hash` for human-readable events\n- **Join with dim_contracts**: Use `to_address` for contract metadata\n\n## Commonly-used Fields\n\n- `tx_hash`: Unique transaction identifier\n- `from_address`: Transaction sender\n- `to_address`: Transaction recipient\n- `value`: Native token amount transferred\n- `gas_used`: Actual gas consumed\n- `gas_price`: Price per gas unit\n- `tx_fee`: Total transaction fee in native tokens\n- `block_timestamp`: When transaction was included\n\n## Sample queries\n\n```sql\n-- Daily transaction statistics by type\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n tx_type,\n COUNT(*) AS tx_count,\n COUNT(DISTINCT from_address) AS unique_senders,\n SUM(tx_fee) AS total_fees_native,\n AVG(gas_used) AS avg_gas_used,\n PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY gas_price) AS median_gas_price\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1, 2\nORDER BY 1 DESC, 3 DESC;\n\n-- High-value native token transfers\nSELECT \n tx_hash,\n block_timestamp,\n from_address,\n to_address,\n value,\n tx_fee,\n gas_used * gas_price / 1e9 AS gas_cost_gwei\nFROM .core.fact_transactions\nWHERE value > 0\n AND tx_succeeded\n AND block_timestamp >= CURRENT_DATE - 7\nORDER BY value DESC\nLIMIT 100;\n\n-- Smart contract interaction patterns\nSELECT \n to_address,\n origin_function_signature,\n COUNT(*) AS interaction_count,\n COUNT(DISTINCT from_address) AS unique_users,\n SUM(tx_fee) AS total_fees_paid\nFROM .core.fact_transactions\nWHERE to_address IN (SELECT address FROM dim_contracts)\n AND block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2\nORDER BY 3 DESC\nLIMIT 50;\n```"}, "doc.fsc_evm.fact_transactions_cumulative_gas_used": {"name": "fact_transactions_cumulative_gas_used", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_cumulative_gas_used", "block_contents": "Running total of gas consumed by all transactions up to and including this transaction within the block.\n\nExample: 1234567"}, "doc.fsc_evm.fact_transactions_tx_fee": {"name": "fact_transactions_tx_fee", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_tx_fee", "block_contents": "Total fee paid for transaction execution in native token units.\n\nExample: 0.002"}, "doc.fsc_evm.fact_transactions_tx_gas_limit": {"name": "fact_transactions_tx_gas_limit", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_tx_gas_limit", "block_contents": "Maximum gas units the sender is willing to consume for this transaction.\n\nExample: 150000"}, "doc.fsc_evm.fact_transactions_tx_gas_price": {"name": "fact_transactions_tx_gas_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_tx_gas_price", "block_contents": "Price per gas unit in Gwei (1 Gwei = 1e-9 native token).\n\nExample: 25"}, "doc.fsc_evm.fact_transactions_tx_gas_used": {"name": "fact_transactions_tx_gas_used", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_tx_gas_used", "block_contents": "Actual gas units consumed by transaction execution.\n\nExample: 89234"}, "doc.fsc_evm.fact_transactions_input_data": {"name": "fact_transactions_input_data", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_input_data", "block_contents": "Encoded data sent with the transaction, containing function calls and parameters.\n\nExample: '0xa9059cbb0000000000000000000000001234567890123456789012345678901234567890'"}, "doc.fsc_evm.fact_transactions_nonce": {"name": "fact_transactions_nonce", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_nonce", "block_contents": "Sequential counter of transactions sent by the from_address.\n\nExample: 42"}, "doc.fsc_evm.fact_transactions_effective_gas_price": {"name": "fact_transactions_effective_gas_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_effective_gas_price", "block_contents": "Actual price paid per gas unit for EIP-1559 transactions, in Gwei.\n\nExample: 23.5"}, "doc.fsc_evm.fact_transactions_max_fee_per_gas": {"name": "fact_transactions_max_fee_per_gas", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_max_fee_per_gas", "block_contents": "Maximum total fee per gas unit sender is willing to pay (EIP-1559), in Gwei.\n\nExample: 50"}, "doc.fsc_evm.fact_transactions_max_priority_fee_per_gas": {"name": "fact_transactions_max_priority_fee_per_gas", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_max_priority_fee_per_gas", "block_contents": "Maximum tip per gas unit for validator (EIP-1559), in Gwei.\n\nExample: 2"}, "doc.fsc_evm.fact_transactions_r": {"name": "fact_transactions_r", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_r", "block_contents": "R component of ECDSA signature (32 bytes).\n\nExample: '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'"}, "doc.fsc_evm.fact_transactions_s": {"name": "fact_transactions_s", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_s", "block_contents": "S component of ECDSA signature (32 bytes).\n\nExample: '0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890'"}, "doc.fsc_evm.fact_transactions_v": {"name": "fact_transactions_v", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_v", "block_contents": "Recovery identifier for ECDSA signature.\n\nExample: 27"}, "doc.fsc_evm.fact_transactions_tx_fee_precise": {"name": "fact_transactions_tx_fee_precise", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_tx_fee_precise", "block_contents": "Exact transaction fee as string to prevent floating-point precision loss.\n\nExample: '0.002345678901234567'"}, "doc.fsc_evm.fact_transactions_tx_type": {"name": "fact_transactions_tx_type", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_tx_type", "block_contents": "Transaction envelope type (EIP-2718).\n\nExample: 2"}, "doc.fsc_evm.fact_transactions_mint": {"name": "fact_transactions_mint", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_mint", "block_contents": "Minting event data for special transactions.\n\nExample: null"}, "doc.fsc_evm.fact_transactions_source_hash": {"name": "fact_transactions_source_hash", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_source_hash", "block_contents": "Hash linking L2 transactions to their L1 origin.\n\nExample: '0x9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba'"}, "doc.fsc_evm.fact_transactions_eth_value": {"name": "fact_transactions_eth_value", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_eth_value", "block_contents": "ETH value for cross-chain transactions on L2s.\n\nExample: 0.5"}, "doc.fsc_evm.fact_transactions_l1_fee_precise_raw": {"name": "fact_transactions_l1_fee_precise_raw", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_l1_fee_precise_raw", "block_contents": "Raw L1 data availability fee for L2 transactions, in Gwei.\n\nExample: 123456789"}, "doc.fsc_evm.fact_transactions_l1_fee_precise": {"name": "fact_transactions_l1_fee_precise", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_l1_fee_precise", "block_contents": "Formatted L1 fee for L2 transactions, in native token units.\n\nExample: '0.000123456789'"}, "doc.fsc_evm.fact_transactions_y_parity": {"name": "fact_transactions_y_parity", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_y_parity", "block_contents": "Y coordinate parity for signature recovery (EIP-2098).\n\nExample: 1"}, "doc.fsc_evm.fact_transactions_access_list": {"name": "fact_transactions_access_list", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_access_list", "block_contents": "Array of addresses and storage keys for optimized gas costs (EIP-2930).\n\nExample: [{\"address\": \"0x123...\", \"storageKeys\": [\"0x456...\"]}]"}, "doc.fsc_evm.fact_transactions_token_ratio": {"name": "fact_transactions_token_ratio", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_token_ratio", "block_contents": "ETH/MNT price ratio for Mantle network fee calculations.\n\nExample: 1.5"}, "doc.fsc_evm.fact_transactions_l1_base_fee_scalar": {"name": "fact_transactions_l1_base_fee_scalar", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_l1_base_fee_scalar", "block_contents": "Multiplier for L1 base fee in L2 fee calculation.\n\nExample: 1500"}, "doc.fsc_evm.fact_transactions_l1_blob_base_fee": {"name": "fact_transactions_l1_blob_base_fee", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_l1_blob_base_fee", "block_contents": "L1 blob base fee at time of L2 transaction.\n\nExample: 1"}, "doc.fsc_evm.fact_transactions_l1_blob_base_fee_scalar": {"name": "fact_transactions_l1_blob_base_fee_scalar", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_l1_blob_base_fee_scalar", "block_contents": "Multiplier for blob base fee in L2 calculations.\n\nExample: 1000"}, "doc.fsc_evm.fact_transactions_authorization_list": {"name": "fact_transactions_authorization_list", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_authorization_list", "block_contents": "EIP-7702 authorization entries for EOA delegation.\n\nExample: []"}, "doc.fsc_evm.fact_transactions_operator_fee_scalar": {"name": "fact_transactions_operator_fee_scalar", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_operator_fee_scalar", "block_contents": "OP Stack operator fee multiplier.\n\nExample: 100"}, "doc.fsc_evm.fact_transactions_operator_fee_constant": {"name": "fact_transactions_operator_fee_constant", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_operator_fee_constant", "block_contents": "OP Stack fixed operator fee component.\n\nExample: 0"}, "doc.fsc_evm.fact_transactions_timeboosted": {"name": "fact_transactions_timeboosted", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_timeboosted", "block_contents": "Arbitrum-specific priority transaction flag.\n\nExample: false"}, "doc.fsc_evm.fact_transactions_blob_versioned_hashes": {"name": "fact_transactions_blob_versioned_hashes", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_blob_versioned_hashes", "block_contents": "Array of blob commitment hashes for EIP-4844 transactions.\n\nExample: ['0x01234567890abcdef1234567890abcdef1234567890abcdef1234567890abcd']"}, "doc.fsc_evm.fact_transactions_max_fee_per_blob_gas": {"name": "fact_transactions_max_fee_per_blob_gas", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_max_fee_per_blob_gas", "block_contents": "Maximum price sender will pay per blob gas unit.\n\nExample: 3"}, "doc.fsc_evm.fact_transactions_blob_gas_price": {"name": "fact_transactions_blob_gas_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_transactions.md", "original_file_path": "models/doc_descriptions/core/fact_transactions.md", "unique_id": "doc.fsc_evm.fact_transactions_blob_gas_price", "block_contents": "Actual price paid per blob gas unit.\n\nExample: 1"}, "doc.fsc_evm.ez_native_transfers_table_doc": {"name": "ez_native_transfers_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_native_transfers.md", "original_file_path": "models/doc_descriptions/core/ez_native_transfers.md", "unique_id": "doc.fsc_evm.ez_native_transfers_table_doc", "block_contents": "## What\n\nThis convenience table tracks all native asset transfers (ETH, AVAX, MATIC, etc.) extracted from transaction traces. It provides a simplified view of value movements with decimal adjustments and USD conversions, making it easy to analyze fund flows without parsing complex trace data.\n\n## Key Use Cases\n\n- Tracking native asset movements between wallets and contracts\n- Analyzing exchange deposits and withdrawals\n- Monitoring whale movements and large transfers\n- Calculating wallet balances from transfer history\n- Identifying internal transfers within smart contract executions\n\n## Important Relationships\n\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Join with fact_traces**: Use `tx_hash` and `trace_index` for trace details\n- **Join with dim_labels**: Use addresses for entity identification\n- **Complement to ez_token_transfers**: This table for native, that for tokens\n\n## Commonly-used Fields\n\n- `from_address`: The sender of the native asset transfer\n- `to_address`: The recipient of the native asset transfer\n- `amount`: Decimal-adjusted transfer amount\n- `amount_usd`: USD value at time of transfer\n- `origin_from_address`: Original transaction sender\n- `origin_to_address`: Original transaction recipient\n- `identifier`: Trace identifier (0 for external transfers)\n\n## Sample queries\n\n**Daily Native Asset Transfer Volume**\n```sql\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n COUNT(*) AS transfer_count,\n COUNT(DISTINCT from_address) AS unique_senders,\n COUNT(DISTINCT to_address) AS unique_receivers,\n SUM(amount) AS total_amount,\n AVG(amount) AS avg_amount,\n SUM(amount_usd) AS total_usd,\n MAX(amount_usd) AS largest_transfer_usd\nFROM .core.ez_native_transfers\nWHERE block_timestamp >= CURRENT_DATE - 30\n AND amount > 0\nGROUP BY 1\nORDER BY 1 DESC;\n```\n\n**Whale Movements (Large Transfers)**\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n from_address,\n to_address,\n amount,\n amount_usd,\n origin_from_address,\n origin_to_address,\n identifier\nFROM .core.ez_native_transfers\nWHERE amount_usd > 1000000 -- Over $1M USD\n AND block_timestamp >= CURRENT_DATE - 7\nORDER BY amount_usd DESC\nLIMIT 100;\n```\n\n**Exchange Deposit/Withdrawal Patterns**\n```sql\nWITH exchange_addresses AS (\n SELECT DISTINCT address \n FROM dim_labels \n WHERE label_type = 'exchange'\n)\nSELECT \n DATE_TRUNC('hour', block_timestamp) AS hour,\n CASE \n WHEN to_address IN (SELECT address FROM exchange_addresses) THEN 'Deposit'\n WHEN from_address IN (SELECT address FROM exchange_addresses) THEN 'Withdrawal'\n END AS transfer_type,\n COUNT(*) AS transfer_count,\n SUM(amount) AS total_amount,\n SUM(amount_usd) AS total_usd\nFROM .core.ez_native_transfers\nWHERE block_timestamp >= CURRENT_DATE - 1\n AND (to_address IN (SELECT address FROM exchange_addresses)\n OR from_address IN (SELECT address FROM exchange_addresses))\nGROUP BY 1, 2\nORDER BY 1 DESC;\n```\n\n**Internal Transfer Analysis**\n```sql\n-- Compare external vs internal transfers\nSELECT \n CASE \n WHEN identifier = '0' THEN 'External Transfer'\n ELSE 'Internal Transfer'\n END AS transfer_type,\n COUNT(*) AS count,\n SUM(amount) AS total_amount,\n AVG(amount) AS avg_amount,\n SUM(amount_usd) AS total_volume_usd\nFROM .core.ez_native_transfers\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1;\n```\n\n**Smart Contract Native Asset Holdings**\n```sql\nWITH contract_balances AS (\n SELECT \n to_address AS address,\n SUM(amount) AS inflows\n FROM .core.ez_native_transfers\n WHERE to_address IN (SELECT address FROM dim_contracts)\n GROUP BY 1\n),\noutflows AS (\n SELECT \n from_address AS address,\n SUM(amount) AS outflows\n FROM .core.ez_native_transfers\n WHERE from_address IN (SELECT address FROM dim_contracts)\n GROUP BY 1\n)\nSELECT \n c.address,\n dc.name AS contract_name,\n COALESCE(c.inflows, 0) - COALESCE(o.outflows, 0) AS net_balance,\n c.inflows,\n o.outflows\nFROM contract_balances c\nLEFT JOIN outflows o ON c.address = o.address\nLEFT JOIN .core.dim_contracts dc ON c.address = dc.address\nWHERE COALESCE(c.inflows, 0) - COALESCE(o.outflows, 0) > 100 -- Over 100 native tokens\nORDER BY net_balance DESC\nLIMIT 50;\n```"}, "doc.fsc_evm.ez_native_transfers_amount_usd": {"name": "ez_native_transfers_amount_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_native_transfers.md", "original_file_path": "models/doc_descriptions/core/ez_native_transfers.md", "unique_id": "doc.fsc_evm.ez_native_transfers_amount_usd", "block_contents": "USD value of the native asset transfer at the time of the transaction.\n\nExample: 2500.50"}, "doc.fsc_evm.ez_native_transfers_amount": {"name": "ez_native_transfers_amount", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_native_transfers.md", "original_file_path": "models/doc_descriptions/core/ez_native_transfers.md", "unique_id": "doc.fsc_evm.ez_native_transfers_amount", "block_contents": "Native asset amount transferred, adjusted to standard decimal units.\n\nExample: 1.5"}, "doc.fsc_evm.ez_native_transfers_amount_precise": {"name": "ez_native_transfers_amount_precise", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_native_transfers.md", "original_file_path": "models/doc_descriptions/core/ez_native_transfers.md", "unique_id": "doc.fsc_evm.ez_native_transfers_amount_precise", "block_contents": "Native asset amount transferred, decimal adjusted, returned as a string to preserve precision.\n\nExample: '1.500000000000000000'"}, "doc.fsc_evm.ez_native_transfers_amount_precise_raw": {"name": "ez_native_transfers_amount_precise_raw", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_native_transfers.md", "original_file_path": "models/doc_descriptions/core/ez_native_transfers.md", "unique_id": "doc.fsc_evm.ez_native_transfers_amount_precise_raw", "block_contents": "Native asset amount transferred, no decimal adjustment, returned as a string to preserve precision.\n\nExample: '1500000000000000000'"}, "doc.fsc_evm.ez_native_transfers_from_address": {"name": "ez_native_transfers_from_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_native_transfers.md", "original_file_path": "models/doc_descriptions/core/ez_native_transfers.md", "unique_id": "doc.fsc_evm.ez_native_transfers_from_address", "block_contents": "The from address for the native asset transfer. This may or may not be the same as the origin_from_address.\n\nExample: '0x1234567890123456789012345678901234567890'"}, "doc.fsc_evm.ez_native_transfers_to_address": {"name": "ez_native_transfers_to_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_native_transfers.md", "original_file_path": "models/doc_descriptions/core/ez_native_transfers.md", "unique_id": "doc.fsc_evm.ez_native_transfers_to_address", "block_contents": "The to address for the native asset transfer. This may or may not be the same as the origin_to_address.\n\nExample: '0xabcdefabcdefabcdefabcdefabcdefabcdefabcd'"}, "doc.fsc_evm.fact_blocks_table_doc": {"name": "fact_blocks_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_table_doc", "block_contents": "## What\n\nThis table contains block-level data for EVM blockchains, providing a complete record of all blocks produced on the chain. Each row represents one block with its associated metadata, transactions, and gas metrics.\n\n## Key Use Cases\n\n- Analyzing gas price trends and network congestion over time\n- Tracking block production rates and miner/validator performance\n- Monitoring network upgrades and their impact (e.g., EIP-1559, EIP-4844)\n- Calculating transaction throughput and network utilization\n- Identifying uncle blocks and chain reorganizations\n\n## Important Relationships\n\n- **Join with fact_transactions**: Use `block_number` to analyze all transactions within a block\n- **Join with fact_traces**: Use `block_number` to examine internal transactions\n- **Join with fact_event_logs**: Use `block_number` to find all events emitted in a block\n\n## Commonly-used Fields\n\n- `block_number`: Sequential identifier for blocks\n- `block_timestamp`: UTC timestamp of block production\n- `gas_used`: Total gas consumed by all transactions\n- `gas_limit`: Maximum gas allowed in the block\n- `base_fee_per_gas`: Base fee for EIP-1559 chains\n- `tx_count`: Number of transactions in the block\n- `miner`: Address that received block rewards\n\n## Sample queries\n\n```sql\n-- Average gas price and utilization by hour\nSELECT \n DATE_TRUNC('hour', block_timestamp) AS hour,\n AVG(gas_used / gas_limit) AS avg_gas_utilization,\n AVG(base_fee_per_gas) AS avg_base_fee,\n COUNT(*) AS blocks_count,\n SUM(tx_count) AS total_transactions\nFROM .core.fact_blocks\nWHERE block_timestamp >= CURRENT_DATE - 7\nGROUP BY 1\nORDER BY 1 DESC;\n\n-- Identify high-value blocks by total gas used\nSELECT \n block_number,\n block_timestamp,\n tx_count,\n gas_used,\n gas_limit,\n (gas_used::FLOAT / gas_limit) AS utilization_rate,\n miner\nFROM .core.fact_blocks\nWHERE block_timestamp >= CURRENT_DATE - 1\nORDER BY gas_used DESC\nLIMIT 100;\n```"}, "doc.fsc_evm.fact_blocks_block_hash": {"name": "fact_blocks_block_hash", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_block_hash", "block_contents": "The unique 32-byte Keccak-256 hash of the block header, prefixed with '0x'.\n\nExample: '0x4e3a3754410177e6937ef1f84bba68ea139e8d1a2258c5f85db9f1cd715a1bdd'"}, "doc.fsc_evm.fact_blocks_nonce": {"name": "fact_blocks_nonce", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_nonce", "block_contents": "Proof-of-Work nonce value. For PoW chains, this demonstrates computational work. Post-merge Ethereum and PoS chains typically show 0x0000000000000000.\n\nExample: '0x0000000000000000'"}, "doc.fsc_evm.fact_blocks_difficulty": {"name": "fact_blocks_difficulty", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_difficulty", "block_contents": "Mining difficulty at block production time.\n\nExample: 0"}, "doc.fsc_evm.fact_blocks_extra_data": {"name": "fact_blocks_extra_data", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_extra_data", "block_contents": "Arbitrary data included by block producer (max 32 bytes).\n\nExample: 'Geth/v1.10.23-stable/linux-amd64/go1.18.5'"}, "doc.fsc_evm.fact_blocks_gas_limit": {"name": "fact_blocks_gas_limit", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_gas_limit", "block_contents": "Maximum gas allowed for all transactions in this block.\n\nExample: 30000000"}, "doc.fsc_evm.fact_blocks_gas_used": {"name": "fact_blocks_gas_used", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_gas_used", "block_contents": "Total gas consumed by all transactions in the block.\n\nExample: 15234567"}, "doc.fsc_evm.fact_blocks_network": {"name": "fact_blocks_network", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_network", "block_contents": "Network identifier within the blockchain (e.g., 'mainnet', 'testnet').\n\nExample: 'mainnet'"}, "doc.fsc_evm.fact_blocks_parent_hash": {"name": "fact_blocks_parent_hash", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_parent_hash", "block_contents": "Hash of the previous block (block_number - 1).\n\nExample: '0x3d7a3754410177e6937ef1f84bba68ea139e8d1a2258c5f85db9f1cd715a1bee'"}, "doc.fsc_evm.fact_blocks_receipts_root": {"name": "fact_blocks_receipts_root", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_receipts_root", "block_contents": "Merkle root of all transaction receipts in the block.\n\nExample: '0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421'"}, "doc.fsc_evm.fact_blocks_sha3_uncles": {"name": "fact_blocks_sha3_uncles", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_sha3_uncles", "block_contents": "Keccak-256 hash of uncle blocks list.\n\nExample: '0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347'"}, "doc.fsc_evm.fact_blocks_size": {"name": "fact_blocks_size", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_size", "block_contents": "Block size in bytes.\n\nExample: 125432"}, "doc.fsc_evm.fact_blocks_total_difficulty": {"name": "fact_blocks_total_difficulty", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_total_difficulty", "block_contents": "Cumulative difficulty from genesis to this block.\n\nExample: 58750000000000000000000"}, "doc.fsc_evm.fact_blocks_tx_count": {"name": "fact_blocks_tx_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_tx_count", "block_contents": "Number of transactions included in the block.\n\nExample: 142"}, "doc.fsc_evm.fact_blocks_uncle_blocks": {"name": "fact_blocks_uncle_blocks", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_uncle_blocks", "block_contents": "Array of uncle block headers (PoW only).\n\nExample: []"}, "doc.fsc_evm.fact_blocks_miner": {"name": "fact_blocks_miner", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_miner", "block_contents": "Address that received block rewards.\n\nExample: '0xea674fdde714fd979de3edf0f56aa9716b898ec8'"}, "doc.fsc_evm.fact_blocks_state_root": {"name": "fact_blocks_state_root", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_state_root", "block_contents": "Merkle root of the entire blockchain state after executing this block.\n\nExample: '0xd7f897bbebe1f8d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934'"}, "doc.fsc_evm.fact_blocks_transactions_root": {"name": "fact_blocks_transactions_root", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_transactions_root", "block_contents": "Merkle root of all transactions in the block.\n\nExample: '0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421'"}, "doc.fsc_evm.fact_blocks_logs_bloom": {"name": "fact_blocks_logs_bloom", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_logs_bloom", "block_contents": "2048-bit bloom filter containing all log addresses and topics from the block's transactions.\n\nExample: '0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'"}, "doc.fsc_evm.fact_blocks_mix_hash": {"name": "fact_blocks_mix_hash", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_mix_hash", "block_contents": "256-bit hash used in PoW mining process. Post-merge, contains prevRandao for randomness.\n\nExample: '0x0000000000000000000000000000000000000000000000000000000000000000'"}, "doc.fsc_evm.fact_blocks_base_fee_per_gas": {"name": "fact_blocks_base_fee_per_gas", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_base_fee_per_gas", "block_contents": "Base fee per gas unit in wei (EIP-1559 chains only).\n\nExample: 25000000000"}, "doc.fsc_evm.fact_blocks_blob_gas_used": {"name": "fact_blocks_blob_gas_used", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_blob_gas_used", "block_contents": "Gas consumed by blob transactions (EIP-4844, post-Dencun).\n\nExample: 131072"}, "doc.fsc_evm.fact_blocks_excess_blob_gas": {"name": "fact_blocks_excess_blob_gas", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_excess_blob_gas", "block_contents": "Excess blob gas above target, affects next block's blob base fee.\n\nExample: 262144"}, "doc.fsc_evm.fact_blocks_parent_beacon_block_root": {"name": "fact_blocks_parent_beacon_block_root", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_parent_beacon_block_root", "block_contents": "Root hash of the parent beacon chain block (post-merge Ethereum).\n\nExample: '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'"}, "doc.fsc_evm.fact_blocks_withdrawals": {"name": "fact_blocks_withdrawals", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_withdrawals", "block_contents": "Array of validator withdrawals from beacon chain.\n\nExample: [{\"index\": 1234, \"validator_index\": 5678, \"address\": \"0x123...\", \"amount\": 1000000000}]"}, "doc.fsc_evm.fact_blocks_withdrawals_root": {"name": "fact_blocks_withdrawals_root", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/fact_blocks.md", "original_file_path": "models/doc_descriptions/core/fact_blocks.md", "unique_id": "doc.fsc_evm.fact_blocks_withdrawals_root", "block_contents": "Merkle root of all withdrawals in the block.\n\nExample: '0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890'"}, "doc.fsc_evm.ez_decoded_event_logs_table_doc": {"name": "ez_decoded_event_logs_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_decoded_event_logs.md", "original_file_path": "models/doc_descriptions/core/ez_decoded_event_logs.md", "unique_id": "doc.fsc_evm.ez_decoded_event_logs_table_doc", "block_contents": "## What\n\nThis table provides human-readable decoded event data for smart contracts where ABIs are available. It transforms raw hex-encoded logs into structured JSON with named parameters and values, making blockchain data immediately queryable without manual decoding.\n\n## Key Use Cases\n\n- Analyzing token transfers and approvals without manual decoding\n- Tracking DEX swaps and liquidity events with named parameters\n- Monitoring NFT transfers and marketplace activity\n- Querying DeFi protocol interactions (lending, staking, governance)\n- Building analytics on any smart contract with available ABIs\n\n## Important Relationships\n\n- **Join with fact_event_logs**: Use `tx_hash` and `event_index` for raw event data\n- **Join with dim_contracts**: Use `contract_address` for contract metadata\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Cross-reference ez_token_transfers**: For simplified token movement data\n\n## Commonly-used Fields\n\n- `contract_address`: The smart contract that emitted the event\n- `event_name`: The event name from the contract ABI (e.g., Transfer, Swap)\n- `decoded_log`: JSON object with decoded parameter names and values\n- `contract_name`: Human-readable name of the contract\n- `block_timestamp`: When the event occurred\n- `tx_hash`: Transaction hash containing this event\n\n## Sample queries\n\n**ERC-20 Transfer Events with Proper Types**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n contract_address,\n contract_name,\n event_name,\n decoded_log:from::string AS from_address,\n decoded_log:to::string AS to_address,\n decoded_log:value::numeric AS amount,\n -- Convert to decimal (assuming 18 decimals)\n decoded_log:value::numeric / POW(10, 18) AS amount_decimal\nFROM .core.ez_decoded_event_logs\nWHERE contract_address = LOWER('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48') -- USDC\n AND event_name = 'Transfer'\n AND block_timestamp >= CURRENT_DATE - 7\n AND decoded_log:value::numeric > 1000000000 -- Over 1000 USDC\nORDER BY block_timestamp DESC;\n```\n\n**Uniswap V3 Swap Events**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n contract_address AS pool_address,\n event_name,\n decoded_log:sender::string AS sender,\n decoded_log:recipient::string AS recipient,\n decoded_log:amount0::numeric AS amount0,\n decoded_log:amount1::numeric AS amount1,\n decoded_log:sqrtPriceX96::numeric AS sqrt_price,\n decoded_log:liquidity::numeric AS liquidity,\n decoded_log:tick::integer AS tick\nFROM .core.ez_decoded_event_logs\nWHERE event_name = 'Swap'\n AND contract_address IN (\n SELECT address FROM dim_contracts \n WHERE contract_name ILIKE '%Uniswap V3%'\n )\n AND block_timestamp >= CURRENT_DATE - 1\nLIMIT 100;\n```\n\n**NFT Transfer Events (ERC-721)**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n contract_address,\n contract_name AS collection_name,\n decoded_log:from::string AS from_address,\n decoded_log:to::string AS to_address,\n decoded_log:tokenId::string AS token_id\nFROM .core.ez_decoded_event_logs\nWHERE event_name = 'Transfer'\n AND decoded_log:tokenId IS NOT NULL -- Indicates ERC-721\n AND block_timestamp >= CURRENT_DATE - 1\nORDER BY block_timestamp DESC;\n```\n\n**DeFi Protocol Events - Compound Finance**\n\n```sql\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n event_name,\n COUNT(*) AS event_count,\n COUNT(DISTINCT decoded_log:minter::string) AS unique_users\nFROM .core.ez_decoded_event_logs\nWHERE contract_name ILIKE '%compound%'\n AND event_name IN ('Mint', 'Redeem', 'Borrow', 'RepayBorrow')\n AND block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1, 2\nORDER BY 1 DESC, 3 DESC;\n```\n\n**Complex Event Analysis - DEX Aggregator Routes**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n event_name,\n decoded_log,\n ARRAY_SIZE(decoded_log:path) AS swap_hops,\n decoded_log:amountIn::numeric AS amount_in,\n decoded_log:amountOutMin::numeric AS min_amount_out\nFROM .core.ez_decoded_event_logs\nWHERE contract_address = LOWER('0x1111111254fb6c44bAC0beD2854e76F90643097d') -- 1inch\n AND event_name ILIKE '%swap%'\n AND block_timestamp >= CURRENT_DATE - 1;\n```"}, "doc.fsc_evm.ez_decoded_event_logs_contract_name": {"name": "ez_decoded_event_logs_contract_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_decoded_event_logs.md", "original_file_path": "models/doc_descriptions/core/ez_decoded_event_logs.md", "unique_id": "doc.fsc_evm.ez_decoded_event_logs_contract_name", "block_contents": "Human-readable name of the smart contract emitting the event, joined from dim_contracts.\n\nExample: 'USD Coin'"}, "doc.fsc_evm.ez_decoded_event_logs_event_name": {"name": "ez_decoded_event_logs_event_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_decoded_event_logs.md", "original_file_path": "models/doc_descriptions/core/ez_decoded_event_logs.md", "unique_id": "doc.fsc_evm.ez_decoded_event_logs_event_name", "block_contents": "The event name as defined in the contract's ABI.\n\nExample: 'Transfer'"}, "doc.fsc_evm.ez_decoded_event_logs_decoded_log": {"name": "ez_decoded_event_logs_decoded_log", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_decoded_event_logs.md", "original_file_path": "models/doc_descriptions/core/ez_decoded_event_logs.md", "unique_id": "doc.fsc_evm.ez_decoded_event_logs_decoded_log", "block_contents": "Flattened JSON object containing decoded event parameters with their values.\n\nExample: '{\"from\": \"0x123...\", \"to\": \"0x456...\", \"value\": \"1000000000000000000\"}'"}, "doc.fsc_evm.ez_decoded_event_logs_full_decoded_log": {"name": "ez_decoded_event_logs_full_decoded_log", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/core/ez_decoded_event_logs.md", "original_file_path": "models/doc_descriptions/core/ez_decoded_event_logs.md", "unique_id": "doc.fsc_evm.ez_decoded_event_logs_full_decoded_log", "block_contents": "Complete decoded event data including parameter names, values, types, and metadata.\n\nExample: '{\"event_name\": \"Transfer\", \"parameters\": [{\"name\": \"from\", \"type\": \"address\", \"value\": \"0x123...\", \"indexed\": true}]}'"}, "doc.fsc_evm.attestations_table_doc": {"name": "attestations_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/beacon_chain.md", "original_file_path": "models/doc_descriptions/governance/beacon_chain.md", "unique_id": "doc.fsc_evm.attestations_table_doc", "block_contents": "Validators are expected to create, sign, and broadcast an attestation during every epoch. Data in this table contains details around these attestations. For more info, please visit [The Ethereum Organization](https://ethereum.org/en/developers/docs/consensus-mechanisms/pos/attestations/)"}, "doc.fsc_evm.beacon_blocks_table_doc": {"name": "beacon_blocks_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/beacon_chain.md", "original_file_path": "models/doc_descriptions/governance/beacon_chain.md", "unique_id": "doc.fsc_evm.beacon_blocks_table_doc", "block_contents": "This table contains data around block formation from the consensus layer of this EVM blockchain. For more info, please visit [The Ethereum Organization](https://ethereum.org/en/developers/docs/consensus-mechanisms/pos/)"}, "doc.fsc_evm.beacon_committees_table_doc": {"name": "beacon_committees_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/beacon_chain.md", "original_file_path": "models/doc_descriptions/governance/beacon_chain.md", "unique_id": "doc.fsc_evm.beacon_committees_table_doc", "block_contents": "This table contains information about the committees of validators. For more info, please visit [The Ethereum Organization](https://ethereum.org/en/developers/docs/consensus-mechanisms/pos/)"}, "doc.fsc_evm.beacon_deposits_table_doc": {"name": "beacon_deposits_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/beacon_chain.md", "original_file_path": "models/doc_descriptions/governance/beacon_chain.md", "unique_id": "doc.fsc_evm.beacon_deposits_table_doc", "block_contents": "This table contains information about the deposits made to the beacon chain. For more info, please visit [The Ethereum Organization](https://ethereum.org/en/developers/docs/consensus-mechanisms/pos/)"}, "doc.fsc_evm.beacon_validator_balances_table_doc": {"name": "beacon_validator_balances_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/beacon_chain.md", "original_file_path": "models/doc_descriptions/governance/beacon_chain.md", "unique_id": "doc.fsc_evm.beacon_validator_balances_table_doc", "block_contents": "This table contains information about the balances of validators. For more info, please visit [The Ethereum Organization](https://ethereum.org/en/developers/docs/consensus-mechanisms/pos/)"}, "doc.fsc_evm.beacon_validators_doc": {"name": "beacon_validators_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/beacon_chain.md", "original_file_path": "models/doc_descriptions/governance/beacon_chain.md", "unique_id": "doc.fsc_evm.beacon_validators_doc", "block_contents": "This table contains information about the validators. For more info, please visit [The Ethereum Organization](https://ethereum.org/en/developers/docs/consensus-mechanisms/pos/)"}, "doc.fsc_evm.epoch_number": {"name": "epoch_number", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/beacon_chain.md", "original_file_path": "models/doc_descriptions/governance/beacon_chain.md", "unique_id": "doc.fsc_evm.epoch_number", "block_contents": "A period of 32 slots, each slot being 12 seconds, totaling 6.4 minutes."}, "doc.fsc_evm.slot_number": {"name": "slot_number", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/beacon_chain.md", "original_file_path": "models/doc_descriptions/governance/beacon_chain.md", "unique_id": "doc.fsc_evm.slot_number", "block_contents": "The Beacon Chain slot this block represents."}, "doc.fsc_evm.slot_timestamp": {"name": "slot_timestamp", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/beacon_chain.md", "original_file_path": "models/doc_descriptions/governance/beacon_chain.md", "unique_id": "doc.fsc_evm.slot_timestamp", "block_contents": "Timestamp of Beacon Chain slot."}, "doc.fsc_evm.state_id": {"name": "state_id", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/beacon_chain.md", "original_file_path": "models/doc_descriptions/governance/beacon_chain.md", "unique_id": "doc.fsc_evm.state_id", "block_contents": "The hash-tree-root of the BeaconState."}, "doc.fsc_evm.validators": {"name": "validators", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/beacon_chain.md", "original_file_path": "models/doc_descriptions/governance/beacon_chain.md", "unique_id": "doc.fsc_evm.validators", "block_contents": "Validators who have submitted their attestation and have been included by the block proposer."}, "doc.fsc_evm.ez_data_availability_table_doc": {"name": "ez_data_availability_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/l2.md", "original_file_path": "models/doc_descriptions/governance/l2.md", "unique_id": "doc.fsc_evm.ez_data_availability_table_doc", "block_contents": "This table contains the data availability submissions for various L2 chains, including Optimistic Rollups (OP Stack and Arbitrum) and ZK Rollups (Scroll)."}, "doc.fsc_evm.l2_chain": {"name": "l2_chain", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/l2.md", "original_file_path": "models/doc_descriptions/governance/l2.md", "unique_id": "doc.fsc_evm.l2_chain", "block_contents": "The name of the L2 chain."}, "doc.fsc_evm.l2_chain_category": {"name": "l2_chain_category", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/l2.md", "original_file_path": "models/doc_descriptions/governance/l2.md", "unique_id": "doc.fsc_evm.l2_chain_category", "block_contents": "The category of the L2 chain."}, "doc.fsc_evm.l2_data_availability_address": {"name": "l2_data_availability_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/l2.md", "original_file_path": "models/doc_descriptions/governance/l2.md", "unique_id": "doc.fsc_evm.l2_data_availability_address", "block_contents": "The address where the data availability submission was made to."}, "doc.fsc_evm.l2_submission_type": {"name": "l2_submission_type", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/l2.md", "original_file_path": "models/doc_descriptions/governance/l2.md", "unique_id": "doc.fsc_evm.l2_submission_type", "block_contents": "The type of the data availability submission."}, "doc.fsc_evm.l2_blob_count": {"name": "l2_blob_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/l2.md", "original_file_path": "models/doc_descriptions/governance/l2.md", "unique_id": "doc.fsc_evm.l2_blob_count", "block_contents": "The number of blobs submitted in this transaction."}, "doc.fsc_evm.l2_blob_gas_used": {"name": "l2_blob_gas_used", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/l2.md", "original_file_path": "models/doc_descriptions/governance/l2.md", "unique_id": "doc.fsc_evm.l2_blob_gas_used", "block_contents": "The total amount of blob gas used in this transaction."}, "doc.fsc_evm.l2_blob_gas_price": {"name": "l2_blob_gas_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/l2.md", "original_file_path": "models/doc_descriptions/governance/l2.md", "unique_id": "doc.fsc_evm.l2_blob_gas_price", "block_contents": "The price paid per unit of blob gas, denominated in wei."}, "doc.fsc_evm.l2_blob_fee": {"name": "l2_blob_fee", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/l2.md", "original_file_path": "models/doc_descriptions/governance/l2.md", "unique_id": "doc.fsc_evm.l2_blob_fee", "block_contents": "The total blob fee paid for this transaction, denominated in ETH."}, "doc.fsc_evm.ez_state_validation_table_doc": {"name": "ez_state_validation_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/l2.md", "original_file_path": "models/doc_descriptions/governance/l2.md", "unique_id": "doc.fsc_evm.ez_state_validation_table_doc", "block_contents": "This table contains the state validation for various L2 chains, including Optimistic Rollups (OP Stack) and Optimium (Mantle)."}, "doc.fsc_evm.l2_state_validation_address": {"name": "l2_state_validation_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/l2.md", "original_file_path": "models/doc_descriptions/governance/l2.md", "unique_id": "doc.fsc_evm.l2_state_validation_address", "block_contents": "The address where the state validation was made to."}, "doc.fsc_evm.l2_state_validation_type": {"name": "l2_state_validation_type", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/l2.md", "original_file_path": "models/doc_descriptions/governance/l2.md", "unique_id": "doc.fsc_evm.l2_state_validation_type", "block_contents": "The type of the state validation."}, "doc.fsc_evm.l2_state_validation_data": {"name": "l2_state_validation_data", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/l2.md", "original_file_path": "models/doc_descriptions/governance/l2.md", "unique_id": "doc.fsc_evm.l2_state_validation_data", "block_contents": "The data of the state validation."}, "doc.fsc_evm.l2_state_validation_data_type": {"name": "l2_state_validation_data_type", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/l2.md", "original_file_path": "models/doc_descriptions/governance/l2.md", "unique_id": "doc.fsc_evm.l2_state_validation_data_type", "block_contents": "The data type of the state validation."}, "doc.fsc_evm.l2_state_validation_data_json": {"name": "l2_state_validation_data_json", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/l2.md", "original_file_path": "models/doc_descriptions/governance/l2.md", "unique_id": "doc.fsc_evm.l2_state_validation_data_json", "block_contents": "The JSON data of the state validation based on the validation type."}, "doc.fsc_evm.evm_batch_size": {"name": "evm_batch_size", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/L1_submission_fields.md", "original_file_path": "models/doc_descriptions/governance/L1_submission_fields.md", "unique_id": "doc.fsc_evm.evm_batch_size", "block_contents": "Total transactions included within the batch on the OP stack L2 chain."}, "doc.fsc_evm.evm_max_block": {"name": "evm_max_block", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/L1_submission_fields.md", "original_file_path": "models/doc_descriptions/governance/L1_submission_fields.md", "unique_id": "doc.fsc_evm.evm_max_block", "block_contents": "The max block on the OP stack L2 chain this batch relates to."}, "doc.fsc_evm.evm_min_block": {"name": "evm_min_block", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/L1_submission_fields.md", "original_file_path": "models/doc_descriptions/governance/L1_submission_fields.md", "unique_id": "doc.fsc_evm.evm_min_block", "block_contents": "The min block on the OP stack L2 chain this batch relates to."}, "doc.fsc_evm.evm_batch_root": {"name": "evm_batch_root", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/L1_submission_fields.md", "original_file_path": "models/doc_descriptions/governance/L1_submission_fields.md", "unique_id": "doc.fsc_evm.evm_batch_root", "block_contents": "Root of the batch, either for submission or state on the OP stack L2 chain."}, "doc.fsc_evm.evm_l1_block_no": {"name": "evm_l1_block_no", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/L1_submission_fields.md", "original_file_path": "models/doc_descriptions/governance/L1_submission_fields.md", "unique_id": "doc.fsc_evm.evm_l1_block_no", "block_contents": "The Ethereum block number that contained the batch from the OP stack L2 chain."}, "doc.fsc_evm.evm_l1_block_time": {"name": "evm_l1_block_time", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/L1_submission_fields.md", "original_file_path": "models/doc_descriptions/governance/L1_submission_fields.md", "unique_id": "doc.fsc_evm.evm_l1_block_time", "block_contents": "The timestamp of the Ethereum block that contained this batch from the OP stack L2 chain."}, "doc.fsc_evm.evm_l1_fee": {"name": "evm_l1_fee", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/L1_submission_fields.md", "original_file_path": "models/doc_descriptions/governance/L1_submission_fields.md", "unique_id": "doc.fsc_evm.evm_l1_fee", "block_contents": "The L1 portion of fees paid."}, "doc.fsc_evm.evm_l1_fee_scalar": {"name": "evm_l1_fee_scalar", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/L1_submission_fields.md", "original_file_path": "models/doc_descriptions/governance/L1_submission_fields.md", "unique_id": "doc.fsc_evm.evm_l1_fee_scalar", "block_contents": "This value covers the change in L1 gas price between the time the transaction is submitted and when it is published from the OP stack L2 chain."}, "doc.fsc_evm.evm_l1_gas_price": {"name": "evm_l1_gas_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/L1_submission_fields.md", "original_file_path": "models/doc_descriptions/governance/L1_submission_fields.md", "unique_id": "doc.fsc_evm.evm_l1_gas_price", "block_contents": "The gas price for L1 transactions when the transaction was processed from the OP stack L2 chain."}, "doc.fsc_evm.evm_l1_gas_used": {"name": "evm_l1_gas_used", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/L1_submission_fields.md", "original_file_path": "models/doc_descriptions/governance/L1_submission_fields.md", "unique_id": "doc.fsc_evm.evm_l1_gas_used", "block_contents": "The gas used on L1 to publish the transaction from the OP stack L2 chain."}, "doc.fsc_evm.evm_l1_state_batch": {"name": "evm_l1_state_batch", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/L1_submission_fields.md", "original_file_path": "models/doc_descriptions/governance/L1_submission_fields.md", "unique_id": "doc.fsc_evm.evm_l1_state_batch", "block_contents": "The batch index of when this block was included in the Ethereum state root. This column will be deprecated 8/7 and will be consolidated into an array column consisting of all L1 submission details from the OP stack L2 chain."}, "doc.fsc_evm.evm_l1_state_tx_hash": {"name": "evm_l1_state_tx_hash", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/L1_submission_fields.md", "original_file_path": "models/doc_descriptions/governance/L1_submission_fields.md", "unique_id": "doc.fsc_evm.evm_l1_state_tx_hash", "block_contents": "The L1 tx hash of when this block was included in the Ethereum state root. This column will be deprecated 8/7 and will be consolidated into an array column consisting of all L1 submission details from the OP stack L2 chain."}, "doc.fsc_evm.evm_l1_sub_batch": {"name": "evm_l1_sub_batch", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/L1_submission_fields.md", "original_file_path": "models/doc_descriptions/governance/L1_submission_fields.md", "unique_id": "doc.fsc_evm.evm_l1_sub_batch", "block_contents": "The batch index of when this block was submitted to L1. This column will be deprecated 8/7 and will be consolidated into an array column consisting of all L1 submission details from the OP stack L2 chain."}, "doc.fsc_evm.evm_l1_sub_tx_hash": {"name": "evm_l1_sub_tx_hash", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/L1_submission_fields.md", "original_file_path": "models/doc_descriptions/governance/L1_submission_fields.md", "unique_id": "doc.fsc_evm.evm_l1_sub_tx_hash", "block_contents": "The L1 tx hash of when this block was submitted to L1. This column will be deprecated 8/7 and will be consolidated into an array column consisting of all L1 submission details from the OP stack L2 chain."}, "doc.fsc_evm.evm_prev_total_elements": {"name": "evm_prev_total_elements", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/L1_submission_fields.md", "original_file_path": "models/doc_descriptions/governance/L1_submission_fields.md", "unique_id": "doc.fsc_evm.evm_prev_total_elements", "block_contents": "Confirmed blocks prior to this batch on the OP stack L2 chain."}, "doc.fsc_evm.op_delegations_table_doc": {"name": "op_delegations_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/delegations.md", "original_file_path": "models/doc_descriptions/governance/delegations.md", "unique_id": "doc.fsc_evm.op_delegations_table_doc", "block_contents": "Contains all delegation transactions of OP token voting power to delegators or community members who have volunteered to play an active role in Token House governance."}, "doc.fsc_evm.delegation_to_delegate": {"name": "delegation_to_delegate", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/delegations.md", "original_file_path": "models/doc_descriptions/governance/delegations.md", "unique_id": "doc.fsc_evm.delegation_to_delegate", "block_contents": "The address of the delegate that the delegator is delegating OP tokens to. This address can be a proxy address or a smart contract."}, "doc.fsc_evm.delegation_from_delegate": {"name": "delegation_from_delegate", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/delegations.md", "original_file_path": "models/doc_descriptions/governance/delegations.md", "unique_id": "doc.fsc_evm.delegation_from_delegate", "block_contents": "The address of the delegate that the delegator is delegating OP tokens from. This address can be a proxy address or a smart contract."}, "doc.fsc_evm.delegation_delegator": {"name": "delegation_delegator", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/delegations.md", "original_file_path": "models/doc_descriptions/governance/delegations.md", "unique_id": "doc.fsc_evm.delegation_delegator", "block_contents": "The address that is delegating OP tokens."}, "doc.fsc_evm.delegation_delegation_type": {"name": "delegation_delegation_type", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/delegations.md", "original_file_path": "models/doc_descriptions/governance/delegations.md", "unique_id": "doc.fsc_evm.delegation_delegation_type", "block_contents": "The type of delegation event that is happening in the transaction."}, "doc.fsc_evm.delegation_raw_new_balance": {"name": "delegation_raw_new_balance", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/delegations.md", "original_file_path": "models/doc_descriptions/governance/delegations.md", "unique_id": "doc.fsc_evm.delegation_raw_new_balance", "block_contents": "The new amount the user has delegated after the transaction."}, "doc.fsc_evm.delegation_raw_previous_balance": {"name": "delegation_raw_previous_balance", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/governance/delegations.md", "original_file_path": "models/doc_descriptions/governance/delegations.md", "unique_id": "doc.fsc_evm.delegation_raw_previous_balance", "block_contents": "The amount of OP the user had delegated before the transaction."}, "doc.fsc_evm.ez_prices_hourly_table_doc": {"name": "ez_prices_hourly_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_hourly_table_doc", "block_contents": "## What\n\nThis curated table provides reliable hourly price data for tokens and native assets across EVM blockchains. It combines multiple data sources with quality checks to ensure accurate, consistent pricing for DeFi analytics, portfolio valuations, and historical analysis.\n\n## Key Use Cases\n\n- Calculate USD values for token transfers and transaction amounts\n- Track price volatility and market movements over time\n- Monitor stablecoin depegging events and price stability\n- Analyze native asset price trends across different blockchains\n- Perform portfolio valuations and historical price lookups\n- Create price charts and technical analysis dashboards\n- Assess price data quality and imputation rates\n\n## Important Relationships\n\n- **Join with ez_token_transfers**: Calculate transfer USD values using hourly price snapshots\n- **Join with ez_asset_metadata**: Get token details and verification status\n- **Join with dim_contracts**: Match addresses with contract metadata\n\n## Commonly-used Fields\n\n- `hour`: UTC timestamp truncated to hour for price recording\n- `token_address`: Contract address of the token (NULL for native assets)\n- `symbol`: Token ticker symbol (ETH, USDC, etc.)\n- `price`: USD price of one whole token unit\n- `is_imputed`: Flag indicating forward-filled prices due to missing data\n- `is_native`: Boolean for blockchain native currencies\n- `blockchain`: Network where the asset exists\n\n## Sample Queries\n\n**Token Price Lookup with USD Calculations**\n```sql\n-- Calculate USD value for token transfers\nSELECT \n t.block_timestamp,\n t.tx_hash,\n t.symbol,\n t.from_address,\n t.to_address,\n t.amount,\n p.price,\n t.amount * p.price AS usd_value,\n p.is_imputed\nFROM .core.ez_token_transfers t\nJOIN .price.ez_prices_hourly p\n ON t.contract_address = p.token_address\n AND DATE_TRUNC('hour', t.block_timestamp) = p.hour\nWHERE t.block_timestamp >= CURRENT_DATE - 7\n AND t.amount > 0\n AND p.price IS NOT NULL\nORDER BY usd_value DESC\nLIMIT 100;\n```\n\n**Price Volatility Analysis**\n```sql\n-- 24-hour price volatility for major tokens\nWITH price_stats AS (\n SELECT \n symbol,\n token_address,\n DATE(hour) AS date,\n MIN(price) AS daily_low,\n MAX(price) AS daily_high,\n AVG(price) AS daily_avg,\n STDDEV(price) AS daily_stddev,\n (MAX(price) - MIN(price)) / MIN(price) * 100 AS daily_range_pct\n FROM .price.ez_prices_hourly\n WHERE hour >= CURRENT_DATE - 30\n AND symbol IN ('WETH', 'USDC', 'USDT', 'WBTC', 'DAI')\n AND NOT is_imputed\n GROUP BY 1, 2, 3\n)\nSELECT \n symbol,\n AVG(daily_range_pct) AS avg_daily_volatility,\n MAX(daily_range_pct) AS max_daily_volatility,\n AVG(daily_stddev / daily_avg) * 100 AS avg_cv_pct\nFROM price_stats\nGROUP BY 1\nORDER BY 2 DESC;\n```\n\n**Native Asset Price Tracking**\n```sql\n-- Track native asset prices across chains\nSELECT \n blockchain,\n symbol,\n hour,\n price,\n price / LAG(price, 24) OVER (PARTITION BY blockchain ORDER BY hour) - 1 AS change_24h,\n price / LAG(price, 168) OVER (PARTITION BY blockchain ORDER BY hour) - 1 AS change_7d\nFROM .price.ez_prices_hourly\nWHERE is_native = TRUE\n AND hour >= CURRENT_DATE - 8\n AND hour = DATE_TRUNC('hour', CURRENT_TIMESTAMP) - INTERVAL '1 hour'\nORDER BY blockchain;\n```\n\n**Stablecoin Peg Monitoring**\n```sql\n-- Monitor stablecoin deviations from $1\nSELECT \n symbol,\n hour,\n price,\n ABS(price - 1.0) AS deviation,\n CASE \n WHEN ABS(price - 1.0) > 0.05 THEN 'Severe Depeg'\n WHEN ABS(price - 1.0) > 0.01 THEN 'Mild Depeg'\n ELSE 'Stable'\n END AS peg_status\nFROM .price.ez_prices_hourly\nWHERE symbol IN ('USDC', 'USDT', 'DAI', 'BUSD', 'FRAX', 'LUSD')\n AND hour >= CURRENT_DATE - 7\n AND ABS(price - 1.0) > 0.005\nORDER BY hour DESC, deviation DESC;\n```\n\n**Price Data Quality Check**\n```sql\n-- Analyze price data completeness and imputation rates\nSELECT \n symbol,\n COUNT(*) AS total_hours,\n SUM(CASE WHEN is_imputed THEN 1 ELSE 0 END) AS imputed_hours,\n ROUND(100.0 * SUM(CASE WHEN is_imputed THEN 1 ELSE 0 END) / COUNT(*), 2) AS imputation_rate,\n MIN(hour) AS first_price,\n MAX(hour) AS last_price,\n COUNT(DISTINCT DATE(hour)) AS days_with_data\nFROM .price.ez_prices_hourly\nWHERE hour >= CURRENT_DATE - 30\nGROUP BY 1\nHAVING COUNT(*) > 100\nORDER BY imputation_rate DESC;\n```"}, "doc.fsc_evm.dim_asset_metadata_table_doc": {"name": "dim_asset_metadata_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.dim_asset_metadata_table_doc", "block_contents": "## What\n\nThis table provides comprehensive metadata for all assets (tokens and native assets) tracked in the price schema across EVM blockchains. It includes provider, asset identifiers, names, symbols, contract addresses, blockchain, and verification status.\n\n## Key Use Cases\n\n- Join price data to asset metadata for enriched analysis\n- Cross-chain asset analysis and mapping\n- Asset discovery and verification status checking\n- Provider-specific data source analysis\n\n## Important Relationships\n\n- **Join with ez_prices_hourly**: For price time series data\n- **Join with core.dim_contracts**: For contract metadata\n\n## Commonly-used Fields\n\n- `provider`: Data source (coingecko, coinmarketcap, etc.)\n- `asset_id`: Provider-specific unique identifier\n- `blockchain`: Network identifier\n- `token_address`: Contract address (NULL for native assets)\n- `symbol`: Token ticker symbol\n- `name`: Full asset name\n\n## Sample Queries\n\n**Basic Asset Lookup**\n```sql\nSELECT *\nFROM .price.dim_asset_metadata\nWHERE blockchain = 'ethereum'\nORDER BY symbol;\n```"}, "doc.fsc_evm.fact_prices_ohlc_hourly_table_doc": {"name": "fact_prices_ohlc_hourly_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.fact_prices_ohlc_hourly_table_doc", "block_contents": "## What\n\nThis table provides hourly OHLC (Open, High, Low, Close) price data for all assets tracked in the price schema. It is designed for time series analysis, volatility studies, and historical price lookups.\n\n## Key Use Cases\n\n- Technical analysis and candlestick chart creation\n- Volatility studies and risk assessment\n- Historical price lookups and trend analysis\n- Market timing and trading analysis\n\n## Important Relationships\n\n- **Join with dim_asset_metadata**: For asset metadata\n- **Join with ez_token_transfers**: For USD value calculations\n\n## Commonly-used Fields\n\n- `hour`: UTC timestamp for the price period\n- `asset_id`: Unique identifier for the asset\n- `open`: Opening price at start of hour\n- `high`: Highest price during hour\n- `low`: Lowest price during hour\n- `close`: Closing price at end of hour\n\n## Sample Queries\n\n**OHLC Data Retrieval**\n```sql\nSELECT hour, asset_id, open, high, low, close\nFROM .price.fact_prices_ohlc_hourly\nWHERE asset_id = ''\n AND hour >= CURRENT_DATE - 30\nORDER BY hour DESC;\n```"}, "doc.fsc_evm.ez_asset_metadata_table_doc": {"name": "ez_asset_metadata_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_asset_metadata_table_doc", "block_contents": "## What\n\nThis curated dimensional table provides comprehensive metadata for tokens and native assets across EVM blockchains. It serves as the authoritative source for asset information, with quality checks and verification status to ensure reliability.\n\n## Key Use Cases\n\n- Asset discovery and verification checking\n- Cross-chain asset mapping and analysis\n- Token metadata lookup for display purposes\n- Filtering for verified or native assets only\n\n## Important Relationships\n\n- **Join with ez_prices_hourly**: For price data enrichment\n- **Join with ez_token_transfers**: For transfer metadata\n\n## Commonly-used Fields\n\n- `token_address`: Contract address (NULL for native assets)\n- `symbol`: Token ticker symbol\n- `name`: Full asset name\n- `decimals`: Token decimal places\n- `is_verified`: Flipside verification status\n- `is_native`: Native asset flag\n- `blockchain`: Network identifier\n\n## Sample Queries\n\n**Verified Asset Discovery**\n```sql\n-- Find all verified USD stablecoins\nSELECT \n blockchain,\n token_address,\n name,\n symbol,\n decimals,\n is_verified\nFROM .price.ez_asset_metadata\nWHERE is_verified = TRUE\n AND (\n symbol IN ('USDC', 'USDT', 'DAI', 'BUSD')\n OR name ILIKE '%USD%'\n OR name ILIKE '%stablecoin%'\n )\n AND is_native = FALSE\nORDER BY blockchain, symbol;\n```\n\n**Cross-Chain Asset Mapping**\n```sql\n-- Find same assets across multiple chains\nWITH asset_presence AS (\n SELECT \n symbol,\n name,\n COUNT(DISTINCT blockchain) AS chain_count,\n ARRAY_AGG(DISTINCT blockchain) AS chains,\n ARRAY_AGG(token_address) AS addresses\n FROM .price.ez_asset_metadata\n WHERE is_native = FALSE\n AND is_verified = TRUE\n GROUP BY 1, 2\n)\nSELECT * FROM asset_presence\nWHERE chain_count > 3\nORDER BY chain_count DESC, symbol;\n```\n\n**Native Asset Reference**\n```sql\n-- Get all native assets with metadata\nSELECT \n blockchain,\n symbol,\n name,\n decimals,\n CASE blockchain\n WHEN 'ethereum' THEN 'Proof of Stake'\n WHEN 'binance' THEN 'Proof of Staked Authority'\n WHEN 'polygon' THEN 'Proof of Stake'\n WHEN 'avalanche' THEN 'Avalanche Consensus'\n ELSE 'Various'\n END AS consensus_mechanism\nFROM .price.ez_asset_metadata\nWHERE is_native = TRUE\nORDER BY blockchain;\n```"}, "doc.fsc_evm.ez_prices_address": {"name": "ez_prices_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_address", "block_contents": "Contract address of the token on the blockchain. NULL for native assets (ETH, AVAX, etc.).\n\nExample: '0xa0b86a33e6776a1e7f9f0b8b8b8b8b8b8b8b8b8b'"}, "doc.fsc_evm.ez_prices_decimals": {"name": "ez_prices_decimals", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_decimals", "block_contents": "Number of decimal places for the token. Most ERC-20 tokens use 18 decimals, USDC/USDT use 6, WBTC uses 8.\n\nExample: 18"}, "doc.fsc_evm.ez_prices_hour": {"name": "ez_prices_hour", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_hour", "block_contents": "UTC timestamp truncated to the hour for price recording. Used for joining with hourly transaction data.\n\nExample: '2024-01-15 14:00:00.000'"}, "doc.fsc_evm.ez_prices_is_imputed": {"name": "ez_prices_is_imputed", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_is_imputed", "block_contents": "Boolean flag indicating if the price was forward-filled due to missing data. TRUE means price carried forward from last known value.\n\nExample: false"}, "doc.fsc_evm.ez_prices_price": {"name": "ez_prices_price", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_price", "block_contents": "USD price of one whole token unit at the recorded hour.\n\nExample: 3000.50"}, "doc.fsc_evm.ez_prices_symbol": {"name": "ez_prices_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_symbol", "block_contents": "Token ticker symbol as commonly recognized. Usually 3-5 uppercase characters.\n\nExample: 'WETH'"}, "doc.fsc_evm.ez_prices_blockchain": {"name": "ez_prices_blockchain", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_blockchain", "block_contents": "The blockchain network where the asset exists. Lowercase by convention.\n\nExample: 'ethereum'"}, "doc.fsc_evm.ez_prices_is_native": {"name": "ez_prices_is_native", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_is_native", "block_contents": "Boolean indicating if the asset is the blockchain's native currency. TRUE for ETH on Ethereum, AVAX on Avalanche, etc.\n\nExample: true"}, "doc.fsc_evm.ez_prices_is_deprecated": {"name": "ez_prices_is_deprecated", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_is_deprecated", "block_contents": "Flag indicating if the asset is no longer actively supported. TRUE for deprecated assets that may have stale prices.\n\nExample: false"}, "doc.fsc_evm.ez_prices_open": {"name": "ez_prices_open", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_open", "block_contents": "Opening price at the start of the hour in USD. First recorded price in the hour for OHLC analysis.\n\nExample: 2995.25"}, "doc.fsc_evm.ez_prices_high": {"name": "ez_prices_high", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_high", "block_contents": "Highest price reached during the hour in USD. Maximum price in the hour for volatility analysis.\n\nExample: 3005.75"}, "doc.fsc_evm.ez_prices_low": {"name": "ez_prices_low", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_low", "block_contents": "Lowest price reached during the hour in USD. Minimum price in the hour for support level analysis.\n\nExample: 2985.50"}, "doc.fsc_evm.ez_prices_close": {"name": "ez_prices_close", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_close", "block_contents": "Closing price at the end of the hour in USD. Last recorded price in the hour, commonly used for valuations.\n\nExample: 3000.50"}, "doc.fsc_evm.ez_prices_is_verified": {"name": "ez_prices_is_verified", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_is_verified", "block_contents": "Boolean indicating Flipside team verification of the asset. TRUE for manually verified assets with validated metadata.\n\nExample: true"}, "doc.fsc_evm.ez_prices_provider": {"name": "ez_prices_provider", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_provider", "block_contents": "Data source that provided the price information. Values include 'coingecko', 'coinmarketcap', 'dex_aggregated'.\n\nExample: 'coingecko'"}, "doc.fsc_evm.ez_prices_asset_id": {"name": "ez_prices_asset_id", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_asset_id", "block_contents": "Unique identifier for the asset from the price provider. Provider-specific ID format.\n\nExample: 'ethereum'"}, "doc.fsc_evm.ez_prices_name": {"name": "ez_prices_name", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_name", "block_contents": "Full name of the asset or token. More descriptive than symbol.\n\nExample: 'Wrapped Ether'"}, "doc.fsc_evm.ez_prices_blockchain_id": {"name": "ez_prices_blockchain_id", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/prices/prices.md", "original_file_path": "models/doc_descriptions/prices/prices.md", "unique_id": "doc.fsc_evm.ez_prices_blockchain_id", "block_contents": "The numeric or string identifier for the blockchain on which the asset exists. Used for cross-chain mapping.\n\nExample: '1'"}, "doc.fsc_evm.ez_metrics_daily_table_doc": {"name": "ez_metrics_daily_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_table_doc", "block_contents": "## What\n\nDaily aggregated metrics for the indicated EVM blockchain including transaction activity, fees, DEX volumes, bridge flows, CEX flows, and TVL data. All metrics are calculated at the daily level (YYYY-MM-DD format) and include both total activity and quality user activity (Flipside score >= 4)."}, "doc.fsc_evm.ez_metrics_daily_day_": {"name": "ez_metrics_daily_day_", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_day_", "block_contents": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "doc.fsc_evm.ez_metrics_daily_active_users_count": {"name": "ez_metrics_daily_active_users_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_active_users_count", "block_contents": "Number of origin_from_address (Externally Owned Accounts EOAs) that submitted a transaction"}, "doc.fsc_evm.ez_metrics_daily_active_quality_users_count": {"name": "ez_metrics_daily_active_quality_users_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_active_quality_users_count", "block_contents": "Number of EOAs with a Flipside score of 4 or higher that submitted a transaction"}, "doc.fsc_evm.ez_metrics_daily_transaction_count": {"name": "ez_metrics_daily_transaction_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_transaction_count", "block_contents": "Number of transactions submitted by any origin_from_address (EOA)"}, "doc.fsc_evm.ez_metrics_daily_quality_transaction_count": {"name": "ez_metrics_daily_quality_transaction_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_quality_transaction_count", "block_contents": "Number of transactions submitted by EOAs with a Flipside score of 4 or higher"}, "doc.fsc_evm.ez_metrics_daily_total_fees": {"name": "ez_metrics_daily_total_fees", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_total_fees", "block_contents": "Total transaction fees paid, denominated in Ether (ETH)"}, "doc.fsc_evm.ez_metrics_daily_total_fees_usd": {"name": "ez_metrics_daily_total_fees_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_total_fees_usd", "block_contents": "USD denominated total transaction fees paid (converting ETH to USD via ETH price)"}, "doc.fsc_evm.ez_metrics_daily_quality_total_fees": {"name": "ez_metrics_daily_quality_total_fees", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_quality_total_fees", "block_contents": "Total transaction fees paid by EOAs with a Flipside score of 4 or higher, denominated in Ether (ETH)"}, "doc.fsc_evm.ez_metrics_daily_quality_total_fees_usd": {"name": "ez_metrics_daily_quality_total_fees_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_quality_total_fees_usd", "block_contents": "USD denominated total transaction fees paid by EOAs with a Flipside score of 4 or higher (converting ETH to USD via ETH price)"}, "doc.fsc_evm.ez_metrics_daily_stablecoin_transfer_volume_usd": {"name": "ez_metrics_daily_stablecoin_transfer_volume_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_stablecoin_transfer_volume_usd", "block_contents": "Value of all stablecoin transfers for any reason (USD)"}, "doc.fsc_evm.ez_metrics_daily_in_unit_total_transfer_volume": {"name": "ez_metrics_daily_in_unit_total_transfer_volume", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_in_unit_total_transfer_volume", "block_contents": "Value of all token transfers of any token for any reason, denominated in ETH to reduce price effects (token price changes can be different than fundamental activity changes)"}, "doc.fsc_evm.ez_metrics_daily_total_transfer_volume_usd": {"name": "ez_metrics_daily_total_transfer_volume_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_total_transfer_volume_usd", "block_contents": "Value of all token transfers for any reason (direct, swap, liquidity deposit, staking, etc.), denominated in USD accepting price effects"}, "doc.fsc_evm.ez_metrics_daily_in_unit_quality_total_transfer_volume": {"name": "ez_metrics_daily_in_unit_quality_total_transfer_volume", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_in_unit_quality_total_transfer_volume", "block_contents": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in ETH"}, "doc.fsc_evm.ez_metrics_daily_quality_total_transfer_volume_usd": {"name": "ez_metrics_daily_quality_total_transfer_volume_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_quality_total_transfer_volume_usd", "block_contents": "Value of all token transfers FROM EOAs with a Flipside score of 4 or higher for any reason, denominated in USD"}, "doc.fsc_evm.ez_metrics_daily_cex_withdrawal_volume_usd": {"name": "ez_metrics_daily_cex_withdrawal_volume_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_cex_withdrawal_volume_usd", "block_contents": "Value of central exchange token withdrawals (USD)"}, "doc.fsc_evm.ez_metrics_daily_cex_withdrawal_tx_count": {"name": "ez_metrics_daily_cex_withdrawal_tx_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_cex_withdrawal_tx_count", "block_contents": "Number of central exchange token withdrawal transactions"}, "doc.fsc_evm.ez_metrics_daily_cex_unique_withdrawing_addresses": {"name": "ez_metrics_daily_cex_unique_withdrawing_addresses", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_cex_unique_withdrawing_addresses", "block_contents": "Number of unique addresses that withdrew from a central exchange"}, "doc.fsc_evm.ez_metrics_daily_cex_deposit_volume_usd": {"name": "ez_metrics_daily_cex_deposit_volume_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_cex_deposit_volume_usd", "block_contents": "Value of central exchange token deposits (USD)"}, "doc.fsc_evm.ez_metrics_daily_cex_deposit_tx_count": {"name": "ez_metrics_daily_cex_deposit_tx_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_cex_deposit_tx_count", "block_contents": "Number of central exchange token deposit transactions"}, "doc.fsc_evm.ez_metrics_daily_cex_unique_depositing_addresses": {"name": "ez_metrics_daily_cex_unique_depositing_addresses", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_cex_unique_depositing_addresses", "block_contents": "Number of unique addresses that deposited to a central exchange"}, "doc.fsc_evm.ez_metrics_daily_cex_net_flow_usd": {"name": "ez_metrics_daily_cex_net_flow_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_cex_net_flow_usd", "block_contents": "Net CEX flow (withdrawal_volume_usd - deposit_volume_usd). Note that if activity and price are correlated, this value can be negative even if more tokens are withdrawn than deposited"}, "doc.fsc_evm.ez_metrics_daily_chain_gross_dex_volume_usd": {"name": "ez_metrics_daily_chain_gross_dex_volume_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_chain_gross_dex_volume_usd", "block_contents": "USD value of token sell volume on Decentralized Exchanges (DEXs) protocols"}, "doc.fsc_evm.ez_metrics_daily_chain_swap_count": {"name": "ez_metrics_daily_chain_swap_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_chain_swap_count", "block_contents": "Number of swap transactions on Decentralized Exchanges (DEXs) protocols"}, "doc.fsc_evm.ez_metrics_daily_chain_swapper_count": {"name": "ez_metrics_daily_chain_swapper_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_chain_swapper_count", "block_contents": "Number of unique EOAs that have submitted a swap transaction on Decentralized Exchanges (DEXs) protocols"}, "doc.fsc_evm.ez_metrics_daily_tvl_usd": {"name": "ez_metrics_daily_tvl_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_tvl_usd", "block_contents": "Total Value Locked - USD value of tokens locked in smart contracts. INCLUDES borrowed tokens, liquid staking, and staking"}, "doc.fsc_evm.ez_metrics_daily_in_unit_tvl": {"name": "ez_metrics_daily_in_unit_tvl", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_in_unit_tvl", "block_contents": "Total Value Locked in ETH denominated terms to reduce price effects"}, "doc.fsc_evm.ez_metrics_daily_bridge_inbound_volume_usd": {"name": "ez_metrics_daily_bridge_inbound_volume_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_bridge_inbound_volume_usd", "block_contents": "Value of bridge inflows, denominated in USD"}, "doc.fsc_evm.ez_metrics_daily_bridge_inbound_addresses": {"name": "ez_metrics_daily_bridge_inbound_addresses", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_bridge_inbound_addresses", "block_contents": "Number of unique addresses receiving a bridge inflow"}, "doc.fsc_evm.ez_metrics_daily_bridge_inbound_tx_count": {"name": "ez_metrics_daily_bridge_inbound_tx_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_bridge_inbound_tx_count", "block_contents": "Number of bridge inflow transactions"}, "doc.fsc_evm.ez_metrics_daily_bridge_outbound_volume_usd": {"name": "ez_metrics_daily_bridge_outbound_volume_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_bridge_outbound_volume_usd", "block_contents": "Value of bridge outflows, denominated in USD"}, "doc.fsc_evm.ez_metrics_daily_bridge_outbound_addresses": {"name": "ez_metrics_daily_bridge_outbound_addresses", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_bridge_outbound_addresses", "block_contents": "Number of unique addresses sending a bridge outflow"}, "doc.fsc_evm.ez_metrics_daily_bridge_outbound_tx_count": {"name": "ez_metrics_daily_bridge_outbound_tx_count", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_bridge_outbound_tx_count", "block_contents": "Number of bridge outflow transactions"}, "doc.fsc_evm.ez_metrics_daily_bridge_gross_volume_usd": {"name": "ez_metrics_daily_bridge_gross_volume_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_bridge_gross_volume_usd", "block_contents": "Value of bridge outflows, denominated in USD"}, "doc.fsc_evm.ez_metrics_daily_bridge_net_inbound_usd": {"name": "ez_metrics_daily_bridge_net_inbound_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_metrics_daily.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_metrics_daily.md", "unique_id": "doc.fsc_evm.ez_metrics_daily_bridge_net_inbound_usd", "block_contents": "Value of bridge inflows minus outflows, denominated in USD. Note that if activity and price are correlated, this value can be negative even if more tokens are brought onto chain than off"}, "doc.fsc_evm.ez_allowlist_table_doc": {"name": "ez_allowlist_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_allowlist.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_allowlist.md", "unique_id": "doc.fsc_evm.ez_allowlist_table_doc", "block_contents": "## What\n\nVerified tokens for the indicated EVM blockchain. Appended with a tracks asset column that indicates ETH, BTC, USD, or is an alt coin"}, "doc.fsc_evm.ez_allowlist_blockchain": {"name": "ez_allowlist_blockchain", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_allowlist.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_allowlist.md", "unique_id": "doc.fsc_evm.ez_allowlist_blockchain", "block_contents": "The name of the blockchain\n\nExample: 'Arbitrum'"}, "doc.fsc_evm.ez_allowlist_symbol": {"name": "ez_allowlist_symbol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_allowlist.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_allowlist.md", "unique_id": "doc.fsc_evm.ez_allowlist_symbol", "block_contents": "The symbol of the token\n\nExample: 'ETH', 'BTC', 'USDC'"}, "doc.fsc_evm.ez_allowlist_tracks_asset": {"name": "ez_allowlist_tracks_asset", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_allowlist.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_allowlist.md", "unique_id": "doc.fsc_evm.ez_allowlist_tracks_asset", "block_contents": "The asset that the token tracks, which can be ETH, BTC, USD, or an alt token. This is used to indicate the primary asset that the token is associated with\n\nExample: 'ETH', 'BTC', 'USD'"}, "doc.fsc_evm.ez_protocol_metrics_table_doc": {"name": "ez_protocol_metrics_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_protocol_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_protocol_metrics.md", "unique_id": "doc.fsc_evm.ez_protocol_metrics_table_doc", "block_contents": "## What\n\nDaily aggregated protocol-level metrics for the indicated EVM blockchain including user activity, transaction counts, and token flow data. Combines protocol interaction data with Flipside scoring to distinguish between total activity and quality user activity (Flipside score >= 4). Metrics track inflows, outflows, and user engagement at the protocol level."}, "doc.fsc_evm.ez_protocol_metrics_day_": {"name": "ez_protocol_metrics_day_", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_protocol_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_protocol_metrics.md", "unique_id": "doc.fsc_evm.ez_protocol_metrics_day_", "block_contents": "The date in YYYY-MM-DD format - all stats are aggregated at the daily level"}, "doc.fsc_evm.ez_protocol_metrics_protocol": {"name": "ez_protocol_metrics_protocol", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_protocol_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_protocol_metrics.md", "unique_id": "doc.fsc_evm.ez_protocol_metrics_protocol", "block_contents": "Protocol names including versioning information (e.g. Uniswap v2, v3, etc.). Note: protocol names may not always match protocol names in other tables like dex_volume"}, "doc.fsc_evm.ez_protocol_metrics_n_users": {"name": "ez_protocol_metrics_n_users", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_protocol_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_protocol_metrics.md", "unique_id": "doc.fsc_evm.ez_protocol_metrics_n_users", "block_contents": "Number of unique addresses submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "doc.fsc_evm.ez_protocol_metrics_n_quality_users": {"name": "ez_protocol_metrics_n_quality_users", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_protocol_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_protocol_metrics.md", "unique_id": "doc.fsc_evm.ez_protocol_metrics_n_quality_users", "block_contents": "Number of unique quality addresses with Flipside score >= 4 submitting a transaction that interacts with any protocol contract. Same address can be counted across different protocols, but never more than once within a single protocol"}, "doc.fsc_evm.ez_protocol_metrics_n_transactions": {"name": "ez_protocol_metrics_n_transactions", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_protocol_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_protocol_metrics.md", "unique_id": "doc.fsc_evm.ez_protocol_metrics_n_transactions", "block_contents": "Number of unique transactions that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "doc.fsc_evm.ez_protocol_metrics_n_quality_transactions": {"name": "ez_protocol_metrics_n_quality_transactions", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_protocol_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_protocol_metrics.md", "unique_id": "doc.fsc_evm.ez_protocol_metrics_n_quality_transactions", "block_contents": "Number of unique transactions by addresses with Flipside score >= 4 that emit 1 or more events from any protocol contract. Same transaction can be counted across different protocols, but never more than once within a single protocol"}, "doc.fsc_evm.ez_protocol_metrics_usd_inflows": {"name": "ez_protocol_metrics_usd_inflows", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_protocol_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_protocol_metrics.md", "unique_id": "doc.fsc_evm.ez_protocol_metrics_usd_inflows", "block_contents": "USD value of tokens sent INTO this protocol from all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "doc.fsc_evm.ez_protocol_metrics_usd_outflows": {"name": "ez_protocol_metrics_usd_outflows", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_protocol_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_protocol_metrics.md", "unique_id": "doc.fsc_evm.ez_protocol_metrics_usd_outflows", "block_contents": "USD value of tokens sent FROM this protocol to all other addresses/protocols/contracts (excludes transfers within the same protocol)"}, "doc.fsc_evm.ez_protocol_metrics_net_usd_inflow": {"name": "ez_protocol_metrics_net_usd_inflow", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_protocol_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_protocol_metrics.md", "unique_id": "doc.fsc_evm.ez_protocol_metrics_net_usd_inflow", "block_contents": "USD inflows minus outflows. Note: Price effects may cause net USD and token-level net changes to differ in direction (rare but possible with large, fast price changes)"}, "doc.fsc_evm.ez_protocol_metrics_gross_usd_volume": {"name": "ez_protocol_metrics_gross_usd_volume", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_protocol_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_protocol_metrics.md", "unique_id": "doc.fsc_evm.ez_protocol_metrics_gross_usd_volume", "block_contents": "Total USD volume calculated as inflows plus outflows"}, "doc.fsc_evm.ez_protocol_metrics_quality_usd_inflows": {"name": "ez_protocol_metrics_quality_usd_inflows", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_protocol_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_protocol_metrics.md", "unique_id": "doc.fsc_evm.ez_protocol_metrics_quality_usd_inflows", "block_contents": "USD value of token inflows from quality addresses with Flipside score >= 4"}, "doc.fsc_evm.ez_protocol_metrics_quality_usd_outflows": {"name": "ez_protocol_metrics_quality_usd_outflows", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_protocol_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_protocol_metrics.md", "unique_id": "doc.fsc_evm.ez_protocol_metrics_quality_usd_outflows", "block_contents": "USD value of token outflows to quality addresses with Flipside score >= 4"}, "doc.fsc_evm.ez_protocol_metrics_quality_net_usd": {"name": "ez_protocol_metrics_quality_net_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_protocol_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_protocol_metrics.md", "unique_id": "doc.fsc_evm.ez_protocol_metrics_quality_net_usd", "block_contents": "Quality USD inflows minus quality USD outflows. Price effects may apply similar to net_usd_inflow"}, "doc.fsc_evm.ez_protocol_metrics_quality_gross_usd": {"name": "ez_protocol_metrics_quality_gross_usd", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_protocol_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_protocol_metrics.md", "unique_id": "doc.fsc_evm.ez_protocol_metrics_quality_gross_usd", "block_contents": "Total quality USD volume calculated as quality inflows plus quality outflows"}, "doc.fsc_evm.ez_address_metrics_table_doc": {"name": "ez_address_metrics_table_doc", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_table_doc", "block_contents": "## What\n\nUser-level aggregated metrics for the indicated EVM blockchain including transaction activity, DeFi interactions, staking behavior, NFT activity, and governance participation. Captures comprehensive on-chain behavior patterns for individual addresses across various protocol categories and activity types."}, "doc.fsc_evm.ez_address_metrics_address": {"name": "ez_address_metrics_address", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_address", "block_contents": "Unique address (wallet address) - primary identifier for all aggregated metrics\n\nExample: '0x1234567890abcdef1234567890abcdef12345678'"}, "doc.fsc_evm.ez_address_metrics_n_complex_txn": {"name": "ez_address_metrics_n_complex_txn", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_complex_txn", "block_contents": "Number of non-native-transfer transactions initiated by the user + number of bridge transactions"}, "doc.fsc_evm.ez_address_metrics_n_contracts": {"name": "ez_address_metrics_n_contracts", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_contracts", "block_contents": "The number of different contracts that the user transacts with"}, "doc.fsc_evm.ez_address_metrics_n_days_active": {"name": "ez_address_metrics_n_days_active", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_days_active", "block_contents": "Number of days with initiated transactions + CEX withdrawals + inbound bridge transfers"}, "doc.fsc_evm.ez_address_metrics_n_txn": {"name": "ez_address_metrics_n_txn", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_txn", "block_contents": "Number of transactions + CEX withdrawals + inbound bridge transfers"}, "doc.fsc_evm.ez_address_metrics_n_bridge_in": {"name": "ez_address_metrics_n_bridge_in", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_bridge_in", "block_contents": "Number of inbound bridge transfers"}, "doc.fsc_evm.ez_address_metrics_n_bridges": {"name": "ez_address_metrics_n_bridges", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_bridges", "block_contents": "Total number of bridge transactions (both inbound and outbound) executed by this address"}, "doc.fsc_evm.ez_address_metrics_n_cex_withdrawals": {"name": "ez_address_metrics_n_cex_withdrawals", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_cex_withdrawals", "block_contents": "Number of withdrawals from a centralized exchange"}, "doc.fsc_evm.ez_address_metrics_net_token_accumulate": {"name": "ez_address_metrics_net_token_accumulate", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_net_token_accumulate", "block_contents": "Number of token transfers received / (number of token transfers received + number of token transfers sent)"}, "doc.fsc_evm.ez_address_metrics_n_other_defi": {"name": "ez_address_metrics_n_other_defi", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_other_defi", "block_contents": "Any non-swap, non-LP transactions with events like borrow, lend, etc."}, "doc.fsc_evm.ez_address_metrics_n_lp_adds": {"name": "ez_address_metrics_n_lp_adds", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_lp_adds", "block_contents": "Number of non-swap transfers to a liquidity pool"}, "doc.fsc_evm.ez_address_metrics_n_lp_pools": {"name": "ez_address_metrics_n_lp_pools", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_lp_pools", "block_contents": "Number of unique liquidity pools this address has provided liquidity to"}, "doc.fsc_evm.ez_address_metrics_n_swap_tx": {"name": "ez_address_metrics_n_swap_tx", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_swap_tx", "block_contents": "Number of swaps"}, "doc.fsc_evm.ez_address_metrics_n_swaps": {"name": "ez_address_metrics_n_swaps", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_swaps", "block_contents": "Total number of individual swap operations (may differ from n_swap_tx if transactions contain multiple swaps)"}, "doc.fsc_evm.ez_address_metrics_n_tokens_traded": {"name": "ez_address_metrics_n_tokens_traded", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_tokens_traded", "block_contents": "Number of distinct tokens swapped"}, "doc.fsc_evm.ez_address_metrics_n_nft_collections": {"name": "ez_address_metrics_n_nft_collections", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_nft_collections", "block_contents": "Number of NFT contracts traded"}, "doc.fsc_evm.ez_address_metrics_n_nft_mints": {"name": "ez_address_metrics_n_nft_mints", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_nft_mints", "block_contents": "Number of NFTs minted"}, "doc.fsc_evm.ez_address_metrics_n_nft_buys": {"name": "ez_address_metrics_n_nft_buys", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_nft_buys", "block_contents": "Number of buys of any NFTs"}, "doc.fsc_evm.ez_address_metrics_n_nft_ids": {"name": "ez_address_metrics_n_nft_ids", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_nft_ids", "block_contents": "Number of distinct NFTs bought or sold"}, "doc.fsc_evm.ez_address_metrics_n_nft_lists": {"name": "ez_address_metrics_n_nft_lists", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_nft_lists", "block_contents": "Number of NFTs listed"}, "doc.fsc_evm.ez_address_metrics_n_votes": {"name": "ez_address_metrics_n_votes", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_votes", "block_contents": "Number of staking transactions (liquid stake or delegation)"}, "doc.fsc_evm.ez_address_metrics_n_stake_tx": {"name": "ez_address_metrics_n_stake_tx", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_stake_tx", "block_contents": "Number of staking transactions (liquid stake or delegation)"}, "doc.fsc_evm.ez_address_metrics_n_restakes": {"name": "ez_address_metrics_n_restakes", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_restakes", "block_contents": "Number of restakes"}, "doc.fsc_evm.ez_address_metrics_n_validators": {"name": "ez_address_metrics_n_validators", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_n_validators", "block_contents": "Number of validators staked to OR liquid stake providers"}, "doc.fsc_evm.ez_address_metrics_net_stake_accumulate": {"name": "ez_address_metrics_net_stake_accumulate", "resource_type": "doc", "package_name": "fsc_evm", "path": "doc_descriptions/chain_stats/ez_address_metrics.md", "original_file_path": "models/doc_descriptions/chain_stats/ez_address_metrics.md", "unique_id": "doc.fsc_evm.ez_address_metrics_net_stake_accumulate", "block_contents": "Number of stakes / (number of stakes + number of unstakes)"}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {"integration_tests": {"name": "integration_tests", "description": "Selector for integration tests", "definition": {"union": [{"method": "fqn", "value": "livequery_models.deploy.core._utils"}]}}}, "disabled": {"model.fsc_evm.silver__storage_keys": [{"database": "polygon", "schema": "silver", "name": "silver__storage_keys", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/silver/silver__storage_keys.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__storage_keys.sql", "unique_id": "model.fsc_evm.silver__storage_keys", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "silver__storage_keys"], "alias": "storage_keys", "checksum": {"name": "sha256", "checksum": "75cb42232d2db326c14ea2265cba78bdb91d2e6d4c960168ce03b2983c1933a6"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": ["storage_keys_id"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {"ADDRESS": {"name": "ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SLOT_NUMBER": {"name": "SLOT_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STORAGE_KEY": {"name": "STORAGE_KEY", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STORAGE_KEYS_ID": {"name": "STORAGE_KEYS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/state_tracer/silver/silver__storage_keys.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "incremental", "unique_key": ["storage_keys_id"], "incremental_strategy": "delete+insert", "full_refresh": false, "tags": ["stale"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.6512077, "config_call_dict": {"materialized": "incremental", "unique_key": ["storage_keys_id"], "incremental_strategy": "delete+insert", "full_refresh": false, "tags": ["stale"]}, "relation_name": "polygon.silver.storage_keys", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = ['storage_keys_id'],\n incremental_strategy = 'delete+insert',\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['stale']\n) }}\n\nWITH erc20_transfers AS (\n\n SELECT\n block_number,\n block_timestamp,\n tx_position,\n tx_hash,\n event_index,\n contract_address,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) :: STRING AS from_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) :: STRING AS to_address,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topic_0 = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND topic_1 IS NOT NULL\n AND topic_2 IS NOT NULL\n\n{% if is_incremental() %}\nAND modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n)\n{% endif %}\n),\nwrapped_native_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n tx_position,\n tx_hash,\n event_index,\n contract_address,\n IFF(\n topic_0 = '0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65',\n '0x' || SUBSTR(\n topic_1 :: STRING,\n 27\n ),\n '0x0000000000000000000000000000000000000000'\n ) AS from_address,\n IFF(\n topic_0 = '0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65',\n '0x0000000000000000000000000000000000000000',\n '0x' || SUBSTR(\n topic_1 :: STRING,\n 27\n )\n ) AS to_address,\n modified_timestamp\n FROM\n {{ ref('core__fact_event_logs') }}\n WHERE\n topic_0 IN (\n '0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65',\n -- withdraw\n '0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c' --deposit\n )\n\n{% if is_incremental() %}\nAND modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n)\n{% endif %}\n),\nall_addresses AS (\n SELECT\n DISTINCT from_address AS address\n FROM\n erc20_transfers\n UNION\n SELECT\n DISTINCT to_address AS address\n FROM\n erc20_transfers\n UNION\n SELECT\n DISTINCT from_address AS address\n FROM\n wrapped_native_transfers\n UNION\n SELECT\n DISTINCT to_address AS address\n FROM\n wrapped_native_transfers\n),\nfinal_storage_keys AS (\n SELECT\n A.address,\n v.slot_number,\n utils.udf_mapping_slot(\n A.address,\n v.slot_number\n ) AS storage_key\n FROM\n all_addresses A\n CROSS JOIN {{ ref('silver__balance_slots') }}\n v \n -- limits balances to verified assets only\n -- produces 1 row per address per slot, slot_number may be the same for multiple contracts\n WHERE\n A.address IS NOT NULL\n AND v.num_slots = 1\n AND v.slot_number IS NOT NULL\n)\nSELECT\n address,\n slot_number,\n storage_key,\n {{ dbt_utils.generate_surrogate_key(['address', 'slot_number']) }} AS storage_keys_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n final_storage_keys qualify (ROW_NUMBER() over (PARTITION BY address, slot_number\nORDER BY\n address)) = 1", "language": "sql", "refs": [{"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver__balance_slots", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.silver__state_tracer_storage": [{"database": "polygon", "schema": "silver", "name": "silver__state_tracer_storage", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/silver/silver__state_tracer_storage.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__state_tracer_storage.sql", "unique_id": "model.fsc_evm.silver__state_tracer_storage", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "silver__state_tracer_storage"], "alias": "state_tracer_storage", "checksum": {"name": "sha256", "checksum": "bbb880e959619c9650e7de22762adcb5ae33be2e383296e2fb728ac1bba84ddc"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": ["block_number"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["modified_timestamp::date", "partition_key"]}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "incremental", "unique_key": ["block_number"], "incremental_strategy": "delete+insert", "cluster_by": ["modified_timestamp::date", "partition_key"], "full_refresh": false, "tags": ["stale"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018426.2143657, "config_call_dict": {"materialized": "incremental", "unique_key": ["block_number"], "incremental_strategy": "delete+insert", "cluster_by": ["modified_timestamp::date", "partition_key"], "full_refresh": false, "tags": ["stale"]}, "relation_name": "polygon.silver.state_tracer_storage", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze__state_tracer') }}\n-- depends_on: {{ ref('bronze__state_tracer_fr') }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = ['block_number'],\n incremental_strategy = 'delete+insert',\n cluster_by = ['modified_timestamp::date', 'partition_key'],\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['stale']\n) }}\n\nWITH state_tracer AS (\n\n SELECT\n partition_key,\n block_number,\n array_index AS tx_position,\n DATA :txHash :: STRING AS tx_hash,\n DATA :result :pre :: variant AS pre_state_json,\n DATA :result :post :: variant AS post_state_json,\n _inserted_timestamp\n FROM\n\n{% if is_incremental() and not vars.BALANCES_SILVER_STATE_TRACER_FULL_RELOAD_ENABLED %}\n{{ ref('bronze__state_tracer') }}\nWHERE\n _inserted_timestamp > (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01' :: TIMESTAMP) AS _inserted_timestamp\n FROM\n {{ this }})\n AND DATA IS NOT NULL \n {% elif is_incremental() and vars.BALANCES_SILVER_STATE_TRACER_FULL_RELOAD_ENABLED %}\n {{ ref('bronze__state_tracer_fr') }}\n WHERE\n DATA IS NOT NULL\n AND partition_key BETWEEN (\n SELECT\n MAX(\n partition_key\n )\n FROM\n {{ this }}\n )\n AND (\n SELECT\n MAX(\n partition_key\n ) + {{ vars.BALANCES_SILVER_STATE_TRACER_FULL_RELOAD_BLOCKS_PER_RUN }}\n FROM\n {{ this }}\n )\n {% else %}\n {{ ref('bronze__state_tracer_fr') }}\n WHERE\n DATA IS NOT NULL\n AND partition_key <= {{ vars.BALANCES_SILVER_STATE_TRACER_FR_MAX_BLOCK }}\n {% endif %}\n\n qualify (ROW_NUMBER() over (PARTITION BY block_number, tx_position\n ORDER BY\n _inserted_timestamp DESC)) = 1\n ),\n pre_state AS (\n SELECT\n partition_key,\n block_number,\n tx_position,\n tx_hash,\n pre_state_json,\n pre.key AS address,\n pre.value :nonce :: bigint AS pre_nonce,\n pre.value :balance :: STRING AS pre_hex_balance,\n pre.value :storage :: variant AS pre_storage,\n _inserted_timestamp\n FROM\n state_tracer,\n LATERAL FLATTEN(\n input => pre_state_json\n ) pre\n ),\n post_state AS (\n SELECT\n partition_key,\n block_number,\n tx_position,\n tx_hash,\n post_state_json,\n post.key AS address,\n post.value :nonce :: bigint AS post_nonce,\n post.value :balance :: STRING AS post_hex_balance,\n post.value :storage :: variant AS post_storage,\n _inserted_timestamp\n FROM\n state_tracer,\n LATERAL FLATTEN(\n input => post_state_json\n ) post\n ),\nstate_tracer_final AS (\n SELECT\n pre.partition_key,\n pre.block_number,\n pre.tx_position,\n pre.tx_hash,\n pre.pre_state_json,\n post.post_state_json,\n pre.address,\n pre_nonce,\n pre_hex_balance,\n pre_storage,\n post_nonce,\n post_hex_balance,\n post_storage,\n pre._inserted_timestamp\n FROM\n pre_state pre\n LEFT JOIN post_state post USING(\n block_number,\n tx_position,\n address\n )\n),\npre_state_storage AS (\n SELECT\n partition_key,\n block_number,\n tx_position,\n tx_hash,\n pre_state_json,\n address,\n pre_storage,\n pre.key :: STRING AS storage_key,\n pre.value :: STRING AS pre_storage_value_hex,\n _inserted_timestamp\n FROM\n state_tracer_final,\n LATERAL FLATTEN(\n input => pre_storage\n ) pre\n),\npost_state_storage AS (\n SELECT\n partition_key,\n block_number,\n tx_position,\n tx_hash,\n post_state_json,\n address,\n post_storage,\n post.key :: STRING AS storage_key,\n post.value :: STRING AS post_storage_value_hex,\n _inserted_timestamp\n FROM\n state_tracer_final,\n LATERAL FLATTEN(\n input => post_storage\n ) post\n),\nstate_storage AS (\n SELECT\n COALESCE(\n pre.partition_key,\n post.partition_key\n ) AS partition_key,\n COALESCE(\n pre.block_number,\n post.block_number\n ) AS block_number,\n COALESCE(\n pre.tx_position,\n post.tx_position\n ) AS tx_position,\n COALESCE(\n pre.tx_hash,\n post.tx_hash\n ) AS tx_hash,\n COALESCE(\n pre.address,\n post.address\n ) AS contract_address,\n COALESCE(\n pre.storage_key,\n post.storage_key\n ) AS storage_key,\n COALESCE(\n pre_storage_value_hex,\n '0x0000000000000000000000000000000000000000000000000000000000000000'\n ) AS pre_storage_hex,\n COALESCE(\n post_storage_value_hex,\n '0x0000000000000000000000000000000000000000000000000000000000000000'\n ) AS post_storage_hex,\n COALESCE(\n pre._inserted_timestamp,\n post._inserted_timestamp\n ) AS _inserted_timestamp\n FROM\n pre_state_storage pre full\n OUTER JOIN post_state_storage post USING (\n block_number,\n tx_position,\n address,\n storage_key\n )\n)\nSELECT \n partition_key,\n block_number,\n tx_position,\n tx_hash,\n contract_address,\n storage_key,\n pre_storage_hex,\n post_storage_hex,\n {{ dbt_utils.generate_surrogate_key(['block_number', 'tx_position', 'contract_address', 'storage_key']) }} AS state_tracer_storage_id,\n _inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n SYSDATE() AS inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n state_storage", "language": "sql", "refs": [{"name": "bronze__state_tracer", "package": null, "version": null}, {"name": "bronze__state_tracer_fr", "package": null, "version": null}, {"name": "bronze__state_tracer_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.silver__state_tracer_native": [{"database": "polygon", "schema": "silver", "name": "silver__state_tracer_native", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/silver/silver__state_tracer_native.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__state_tracer_native.sql", "unique_id": "model.fsc_evm.silver__state_tracer_native", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "silver__state_tracer_native"], "alias": "state_tracer_native", "checksum": {"name": "sha256", "checksum": "d81b6280ba81662a84539a2166d1af173b6b39047354bf658ccffc9303cd99d5"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": ["block_number"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["modified_timestamp::date", "partition_key"]}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "incremental", "unique_key": ["block_number"], "incremental_strategy": "delete+insert", "cluster_by": ["modified_timestamp::date", "partition_key"], "full_refresh": false, "tags": ["stale"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018426.5318732, "config_call_dict": {"materialized": "incremental", "unique_key": ["block_number"], "incremental_strategy": "delete+insert", "cluster_by": ["modified_timestamp::date", "partition_key"], "full_refresh": false, "tags": ["stale"]}, "relation_name": "polygon.silver.state_tracer_native", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n-- depends_on: {{ ref('bronze__state_tracer') }}\n-- depends_on: {{ ref('bronze__state_tracer_fr') }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = ['block_number'],\n incremental_strategy = 'delete+insert',\n cluster_by = ['modified_timestamp::date', 'partition_key'],\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n tags = ['stale']\n) }}\n\nWITH state_tracer AS (\n\n SELECT\n partition_key,\n block_number,\n array_index AS tx_position,\n DATA :txHash :: STRING AS tx_hash,\n DATA :result :pre :: variant AS pre_state_json,\n DATA :result :post :: variant AS post_state_json,\n _inserted_timestamp\n FROM\n\n{% if is_incremental() and not vars.BALANCES_SILVER_STATE_TRACER_FULL_RELOAD_ENABLED %}\n{{ ref('bronze__state_tracer') }}\nWHERE\n _inserted_timestamp > (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01' :: TIMESTAMP) AS _inserted_timestamp\n FROM\n {{ this }})\n AND DATA IS NOT NULL \n {% elif is_incremental() and vars.BALANCES_SILVER_STATE_TRACER_FULL_RELOAD_ENABLED %}\n {{ ref('bronze__state_tracer_fr') }}\n WHERE\n DATA IS NOT NULL\n AND partition_key BETWEEN (\n SELECT\n MAX(\n partition_key\n )\n FROM\n {{ this }}\n )\n AND (\n SELECT\n MAX(\n partition_key\n ) + {{ vars.BALANCES_SILVER_STATE_TRACER_FULL_RELOAD_BLOCKS_PER_RUN }}\n FROM\n {{ this }}\n )\n {% else %}\n {{ ref('bronze__state_tracer_fr') }}\n WHERE\n DATA IS NOT NULL\n AND partition_key <= {{ vars.BALANCES_SILVER_STATE_TRACER_FR_MAX_BLOCK }}\n {% endif %}\n\n qualify (ROW_NUMBER() over (PARTITION BY block_number, tx_position\n ORDER BY\n _inserted_timestamp DESC)) = 1\n ),\n pre_state AS (\n SELECT\n partition_key,\n block_number,\n tx_position,\n tx_hash,\n pre_state_json,\n pre.key AS address,\n pre.value :nonce :: bigint AS pre_nonce,\n pre.value :balance :: STRING AS pre_hex_balance,\n _inserted_timestamp\n FROM\n state_tracer,\n LATERAL FLATTEN(\n input => pre_state_json\n ) pre\n ),\n post_state AS (\n SELECT\n partition_key,\n block_number,\n tx_position,\n tx_hash,\n post_state_json,\n post.key AS address,\n post.value :nonce :: bigint AS post_nonce,\n post.value :balance :: STRING AS post_hex_balance,\n _inserted_timestamp\n FROM\n state_tracer,\n LATERAL FLATTEN(\n input => post_state_json\n ) post\n )\nSELECT\n pre.partition_key,\n pre.block_number,\n pre.tx_position,\n pre.tx_hash,\n pre.address,\n pre_nonce,\n pre_hex_balance,\n post_nonce,\n post_hex_balance,\n {{ dbt_utils.generate_surrogate_key(['pre.block_number', 'pre.tx_position', 'pre.address']) }} AS state_tracer_id,\n _inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n SYSDATE() AS inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n pre_state pre\n LEFT JOIN post_state post USING(\n block_number,\n tx_position,\n address\n )", "language": "sql", "refs": [{"name": "bronze__state_tracer", "package": null, "version": null}, {"name": "bronze__state_tracer_fr", "package": null, "version": null}, {"name": "bronze__state_tracer_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.silver__balance_slots": [{"database": "polygon", "schema": "silver", "name": "silver__balance_slots", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/silver/silver__balance_slots.sql", "original_file_path": "models/balances_package/state_tracer/silver/silver__balance_slots.sql", "unique_id": "model.fsc_evm.silver__balance_slots", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "silver__balance_slots"], "alias": "balance_slots", "checksum": {"name": "sha256", "checksum": "16c80bd92cd44c52474a6409c870e065c0d80fa511f361779d5b46c0d2e8dcb9"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ unverify_balances() }}", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": ["contract_address"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {"CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SLOT_NUMBER_ARRAY": {"name": "SLOT_NUMBER_ARRAY", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NUM_SLOTS": {"name": "NUM_SLOTS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BALANCE_SLOTS_ID": {"name": "BALANCE_SLOTS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/state_tracer/silver/silver__balance_slots.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "incremental", "unique_key": ["contract_address"], "incremental_strategy": "delete+insert", "full_refresh": false, "tags": ["stale"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018442.6042721, "config_call_dict": {"materialized": "incremental", "unique_key": ["contract_address"], "incremental_strategy": "delete+insert", "full_refresh": false, "tags": ["stale"], "post-hook": ["{{ unverify_balances() }}"]}, "relation_name": "polygon.silver.balance_slots", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = ['contract_address'],\n incremental_strategy = 'delete+insert',\n full_refresh = vars.GLOBAL_SILVER_FR_ENABLED,\n post_hook = '{{ unverify_balances() }}',\n tags = ['stale']\n) }}\n\nWITH verified_assets AS (\n\n SELECT\n token_address AS contract_address\n FROM\n {{ ref('price__ez_asset_metadata') }}\n WHERE\n is_verified\n AND asset_id IS NOT NULL\n AND token_address IS NOT NULL\n),\nerc20_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n tx_position,\n tx_hash,\n event_index,\n contract_address,\n CONCAT('0x', SUBSTR(topic_1, 27, 40)) :: STRING AS from_address,\n CONCAT('0x', SUBSTR(topic_2, 27, 40)) :: STRING AS to_address,\n utils.udf_hex_to_int(SUBSTR(DATA, 3, 64)) AS raw_amount_precise,\n TRY_TO_NUMBER(raw_amount_precise) AS raw_amount,\n C.decimals,\n tx_succeeded\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN verified_assets v --limit balances to verified assets only\n USING (contract_address)\n LEFT JOIN {{ ref('core__dim_contracts') }} C\n ON l.contract_address = C.address\n AND C.decimals IS NOT NULL\n WHERE\n topic_0 = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND topic_1 IS NOT NULL\n AND topic_2 IS NOT NULL\n AND DATA IS NOT NULL\n AND raw_amount IS NOT NULL\n AND l.block_timestamp > DATEADD('day', -31, SYSDATE())\n AND l.block_timestamp < DATEADD('day', -1, SYSDATE())\n\n{% if is_incremental() %}\nAND l.modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n)\nAND l.contract_address NOT IN (\n SELECT\n DISTINCT contract_address\n FROM\n {{ this }}\n WHERE\n slot_number_array IS NOT NULL --only attempt to map again if slot is missing\n)\n{% endif %}\n\nqualify RANK() over (\n PARTITION BY l.contract_address\n ORDER BY\n block_number DESC,\n tx_position DESC\n) = 1 --latest transfers for each contract\n),\nwrapped_native_transfers AS (\n SELECT\n block_number,\n block_timestamp,\n tx_position,\n tx_hash,\n event_index,\n contract_address,\n IFF(\n topic_0 = '0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65',\n '0x' || SUBSTR(\n topic_1 :: STRING,\n 27\n ),\n '0x0000000000000000000000000000000000000000'\n ) AS from_address,\n IFF(\n topic_0 = '0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65',\n '0x0000000000000000000000000000000000000000',\n '0x' || SUBSTR(\n topic_1 :: STRING,\n 27\n )\n ) AS to_address,\n TRY_TO_NUMBER(utils.udf_hex_to_int(DATA)) AS raw_amount,\n 18 AS decimals,\n tx_succeeded\n FROM\n {{ ref('core__fact_event_logs') }}\n l\n INNER JOIN verified_assets v USING (contract_address)\n WHERE\n block_timestamp > DATEADD('day', -31, SYSDATE())\n AND block_timestamp < DATEADD('day', -1, SYSDATE())\n AND topic_0 IN (\n '0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65',\n -- withdraw\n '0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c' --deposit\n )\n\n{% if is_incremental() %}\nAND l.modified_timestamp > (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n)\nAND contract_address NOT IN (\n SELECT\n DISTINCT contract_address\n FROM\n {{ this }}\n WHERE\n slot_number_array IS NOT NULL\n)\n{% endif %}\n\nqualify RANK() over (\n PARTITION BY topic_0,\n contract_address\n ORDER BY\n block_number DESC,\n tx_position DESC\n) = 1 --latest events for each topic and contract address\n),\ntransfer_direction AS (\n SELECT\n block_number,\n tx_position,\n tx_hash,\n to_address AS address,\n contract_address,\n raw_amount,\n decimals\n FROM\n erc20_transfers\n UNION ALL\n SELECT\n block_number,\n tx_position,\n tx_hash,\n from_address AS address,\n contract_address,\n (\n -1 * raw_amount\n ) AS raw_amount,\n decimals\n FROM\n erc20_transfers\n UNION ALL\n SELECT\n block_number,\n tx_position,\n tx_hash,\n to_address AS address,\n contract_address,\n raw_amount,\n decimals\n FROM\n wrapped_native_transfers\n UNION ALL\n SELECT\n block_number,\n tx_position,\n tx_hash,\n from_address AS address,\n contract_address,\n (\n -1 * raw_amount\n ) AS raw_amount,\n decimals\n FROM\n wrapped_native_transfers\n),\ndirection_agg AS (\n SELECT\n block_number,\n tx_hash,\n tx_position,\n address,\n contract_address,\n SUM(raw_amount) AS transfer_amount,\n MAX(decimals) AS decimals\n FROM\n transfer_direction\n GROUP BY\n ALL\n),\nstate_storage AS (\n SELECT\n block_number,\n tx_position,\n tx_hash,\n contract_address,\n storage_key,\n pre_storage_hex,\n post_storage_hex\n FROM\n {{ ref('silver__state_tracer_storage') }}\n WHERE\n block_number IN (\n SELECT\n DISTINCT block_number\n FROM\n erc20_transfers\n UNION ALL\n SELECT\n DISTINCT block_number\n FROM\n wrapped_native_transfers\n ) --only include blocks with relevant transfers\n\n{% if is_incremental() %}\nAND modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP)\n FROM\n {{ this }})\n {% endif %}\n),\nnum_generator AS (\n SELECT\n ROW_NUMBER() over (\n ORDER BY\n 1 ASC\n ) - 1 AS rn\n FROM\n TABLE(GENERATOR(rowcount => 51)) {# no theoretical limit on max slots for erc20, 2-15 is common. Can reduce if needed. #}\n),\ntransfer_mapping AS (\n SELECT\n block_number,\n tx_position,\n tx_hash,\n contract_address,\n address,\n utils.udf_mapping_slot(\n address,\n rn\n ) AS storage_key,\n rn AS slot_number,\n transfer_amount,\n decimals\n FROM\n direction_agg,\n num_generator\n),\nbalances AS (\n SELECT\n block_number,\n tx_position,\n tx_hash,\n contract_address,\n address,\n storage_key,\n slot_number,\n pre_storage_hex AS pre_balance_hex,\n utils.udf_hex_to_int(pre_storage_hex) AS pre_balance_raw,\n utils.udf_decimal_adjust(\n pre_balance_raw,\n decimals\n ) AS pre_balance_precise,\n pre_balance_precise :: FLOAT AS pre_balance,\n post_storage_hex AS post_balance_hex,\n utils.udf_hex_to_int(post_storage_hex) AS post_balance_raw,\n utils.udf_decimal_adjust(\n post_balance_raw,\n decimals\n ) AS post_balance_precise,\n post_balance_precise :: FLOAT AS post_balance,\n TRY_TO_NUMBER(post_balance_raw) - TRY_TO_NUMBER(pre_balance_raw) AS net_balance_raw,\n post_balance_precise - pre_balance_precise AS net_balance,\n transfer_amount,\n decimals\n FROM\n state_storage\n INNER JOIN transfer_mapping USING (\n block_number,\n tx_position,\n contract_address,\n storage_key\n )\n WHERE\n net_balance_raw = transfer_amount\n),\nFINAL AS (\n SELECT\n contract_address,\n MAX(block_number) AS max_block_number,\n ARRAY_AGG(\n DISTINCT slot_number\n ) AS slot_number_array\n FROM\n balances\n GROUP BY\n contract_address\n)\nSELECT\n contract_address,\n max_block_number,\n slot_number_array,\n TRY_TO_NUMBER(\n slot_number_array [0] :: STRING\n ) AS slot_number,\n ARRAY_SIZE(slot_number_array) AS num_slots,\n {{ dbt_utils.generate_surrogate_key(['contract_address']) }} AS balance_slots_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL\n-- This model determines the balanceOf slot for each contract based on matching an erc20 token transfer with state data.\n-- NULL slot indicates that the contract does not have a balanceOf slot.\n-- >1 slot indicates that the contract has multiple balanceOf slots.\n-- Logic for these contracts must be handled separately (e.g. rebase tokens, wrapped assets etc.)", "language": "sql", "refs": [{"name": "price__ez_asset_metadata", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "core__dim_contracts", "package": null, "version": null}, {"name": "core__fact_event_logs", "package": null, "version": null}, {"name": "silver__state_tracer_storage", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.unverify_balances", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.silver__validator_addresses": [{"database": "polygon", "schema": "silver", "name": "silver__validator_addresses", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/silver/exclusions/silver__validator_addresses.sql", "original_file_path": "models/balances_package/state_tracer/silver/exclusions/silver__validator_addresses.sql", "unique_id": "model.fsc_evm.silver__validator_addresses", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "exclusions", "silver__validator_addresses"], "alias": "validator_addresses", "checksum": {"name": "sha256", "checksum": "6ec5fe35147fea0ecea4ee98378057a00c012fcdbef07a8d45e5e55fdca9fca9"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["address"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "incremental", "unique_key": ["address"], "incremental_strategy": "delete+insert", "tags": ["stale"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018427.3193944, "config_call_dict": {"materialized": "incremental", "unique_key": ["address"], "incremental_strategy": "delete+insert", "tags": ["stale"]}, "relation_name": "polygon.silver.validator_addresses", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = ['address'],\n incremental_strategy = 'delete+insert',\n tags = ['stale']\n) }}\n\nSELECT\n DISTINCT origin_from_address AS address,\n {{ dbt_utils.generate_surrogate_key(['address']) }} AS validator_addresses_id,\n SYSDATE() AS modified_timestamp,\n SYSDATE() AS inserted_timestamp\nFROM\n {{ ref('core__fact_traces') }}\nWHERE\n origin_function_signature = '0xf340fa01'\n AND origin_to_address IN ('{{ vars.BALANCES_VALIDATOR_CONTRACT_ADDRESS | join(\"', '\") }}')\n\n{% if is_incremental() %}\nAND modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP)\n FROM\n {{ this }})\n AND address NOT IN (\n SELECT\n DISTINCT address\n FROM\n {{ this }}\n )\n {% endif %}\n\nUNION\n\nSELECT\n DISTINCT origin_to_address AS address,\n {{ dbt_utils.generate_surrogate_key(['address']) }} AS validator_addresses_id,\n SYSDATE() AS modified_timestamp,\n SYSDATE() AS inserted_timestamp\nFROM\n {{ ref('core__fact_traces') }}\nWHERE\n origin_to_address IN ('{{ vars.BALANCES_VALIDATOR_CONTRACT_ADDRESS | join(\"', '\") }}')\n\n{% if is_incremental() %}\nAND modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP)\n FROM\n {{ this }})\n AND address NOT IN (\n SELECT\n DISTINCT address\n FROM\n {{ this }}\n )\n {% endif %}", "language": "sql", "refs": [{"name": "core__fact_traces", "package": null, "version": null}, {"name": "core__fact_traces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.test_silver__state_tracer_storage_full": [{"database": "polygon", "schema": "test_silver", "name": "test_silver__state_tracer_storage_full", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_full.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_full.sql", "unique_id": "model.fsc_evm.test_silver__state_tracer_storage_full", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "test_silver__state_tracer_storage_full"], "alias": "state_tracer_storage_full", "checksum": {"name": "sha256", "checksum": "36856910d90731f12c2d8a2fe2aa69b19ffbd435b04bcd83ad11ce814566e8cb"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "This is a view used to test all of the state tracer data.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STORAGE_KEY": {"name": "STORAGE_KEY", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "view", "tags": ["stale"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.791909, "config_call_dict": {"materialized": "view", "tags": ["stale"]}, "relation_name": "polygon.test_silver.state_tracer_storage_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['stale']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__state_tracer_storage') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "silver__state_tracer_storage", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.test_silver__state_tracer_storage_recent": [{"database": "polygon", "schema": "test_silver", "name": "test_silver__state_tracer_storage_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_recent.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_recent.sql", "unique_id": "model.fsc_evm.test_silver__state_tracer_storage_recent", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_storage", "test_silver__state_tracer_storage_recent"], "alias": "state_tracer_storage_recent", "checksum": {"name": "sha256", "checksum": "6ea35e51c3091e089e1477d91d76cb3da40768c90a69023cb9642d38fa86d11b"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "This is a view used to test the last three days of state tracer data.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STORAGE_KEY": {"name": "STORAGE_KEY", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/state_tracer/silver/tests/state_tracer_storage/test_silver__state_tracer_storage_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "view", "tags": ["stale"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.6810496, "config_call_dict": {"materialized": "view", "tags": ["stale"]}, "relation_name": "polygon.test_silver.state_tracer_storage_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['stale']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__state_tracer_storage') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "silver__state_tracer_storage", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.test_silver__state_tracer_native_recent": [{"database": "polygon", "schema": "test_silver", "name": "test_silver__state_tracer_native_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_recent.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_recent.sql", "unique_id": "model.fsc_evm.test_silver__state_tracer_native_recent", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "test_silver__state_tracer_native_recent"], "alias": "state_tracer_native_recent", "checksum": {"name": "sha256", "checksum": "c1970969d5b7412a4b22c1796f1ee3cc896ab772417c743aca747d94463001ab"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "This is a view used to test the last three days of state tracer data.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "view", "tags": ["stale"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018443.049913, "config_call_dict": {"materialized": "view", "tags": ["stale"]}, "relation_name": "polygon.test_silver.state_tracer_native_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['stale']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__state_tracer_native') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "silver__state_tracer_native", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.test_silver__state_tracer_native_full": [{"database": "polygon", "schema": "test_silver", "name": "test_silver__state_tracer_native_full", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_full.sql", "original_file_path": "models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_full.sql", "unique_id": "model.fsc_evm.test_silver__state_tracer_native_full", "fqn": ["fsc_evm", "balances_package", "state_tracer", "silver", "tests", "state_tracer_native", "test_silver__state_tracer_native_full"], "alias": "state_tracer_native_full", "checksum": {"name": "sha256", "checksum": "727a0e19b499db8d6156b39b550d0348b616b1ebe206496156c316b895639c74"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "This is a view used to test all of the state tracer data.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/state_tracer/silver/tests/state_tracer_native/test_silver__state_tracer_native_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "view", "tags": ["stale"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018442.9011354, "config_call_dict": {"materialized": "view", "tags": ["stale"]}, "relation_name": "polygon.test_silver.state_tracer_native_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['stale']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('silver__state_tracer_native') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "silver__state_tracer_native", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.streamline__state_tracer_realtime": [{"database": "polygon", "schema": "streamline", "name": "streamline__state_tracer_realtime", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/streamline/realtime/streamline__state_tracer_realtime.sql", "original_file_path": "models/balances_package/state_tracer/streamline/realtime/streamline__state_tracer_realtime.sql", "unique_id": "model.fsc_evm.streamline__state_tracer_realtime", "fqn": ["fsc_evm", "balances_package", "state_tracer", "streamline", "realtime", "streamline__state_tracer_realtime"], "alias": "state_tracer_realtime", "checksum": {"name": "sha256", "checksum": "113e9e2709d48a38def58dbaed12c5fecd0e979e0dd5f32cef25d8b187039f99"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "view", "tags": ["stale"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018428.8851993, "config_call_dict": {"materialized": "view", "tags": ["stale"]}, "relation_name": "polygon.streamline.state_tracer_realtime", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['stale']\n) }}\n\n{# Main query starts here #}\nWITH \n last_3_days AS (\n SELECT block_number\n FROM {{ ref(\"_block_lookback\") }}\n ),\n\n{# Identify blocks that need processing #}\nto_do AS (\n SELECT block_number\n FROM {{ ref(\"streamline__blocks\") }}\n WHERE \n block_number IS NOT NULL\n AND block_number >= (SELECT block_number FROM last_3_days)\n\n EXCEPT\n\n {# Exclude blocks that have already been processed #}\n SELECT block_number\n FROM {{ ref('streamline__state_tracer_complete') }}\n WHERE 1=1\n AND block_number >= (SELECT block_number FROM last_3_days)\n)\n\n{# Prepare the final list of blocks to process #}\n,ready_blocks AS (\n SELECT block_number\n FROM to_do\n {% if not vars.BALANCES_SL_NEW_BUILD_ENABLED %}\n UNION\n SELECT block_number\n FROM {{ ref(\"_missing_balances_native\") }}\n UNION\n SELECT block_number\n FROM {{ ref(\"_missing_balances_erc20\") }}\n {% endif %}\n\n {% if vars.BALANCES_SL_TESTING_LIMIT is not none %}\n ORDER BY block_number DESC\n LIMIT {{ vars.BALANCES_SL_TESTING_LIMIT }} \n {% endif %}\n)\n\n{# Generate API requests for each block #}\nSELECT\n block_number,\n ROUND(block_number, -3) AS partition_key,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'streamline'\n ),\n OBJECT_CONSTRUCT(\n 'id', block_number,\n 'jsonrpc', '2.0',\n 'method', 'debug_traceBlockByNumber',\n 'params', ARRAY_CONSTRUCT(utils.udf_int_to_hex(block_number), \n OBJECT_CONSTRUCT(\n 'tracer', 'prestateTracer', \n 'tracerConfig', OBJECT_CONSTRUCT('diffMode', TRUE),\n 'timeout', '120s'\n )\n )\n ),\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS request\nFROM\n ready_blocks\n \nORDER BY partition_key DESC, block_number DESC\n\nLIMIT {{ vars.BALANCES_SL_STATE_TRACER_REALTIME_SQL_LIMIT }}\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = {\n \"external_table\": 'state_tracer',\n \"sql_limit\": vars.BALANCES_SL_STATE_TRACER_REALTIME_SQL_LIMIT,\n \"producer_batch_size\": vars.BALANCES_SL_STATE_TRACER_REALTIME_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.BALANCES_SL_STATE_TRACER_REALTIME_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\": vars.BALANCES_SL_STATE_TRACER_REALTIME_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\": 'state_tracer_realtime',\n \"exploded_key\": tojson(['result'])\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n \n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "_block_lookback", "package": null, "version": null}, {"name": "streamline__blocks", "package": null, "version": null}, {"name": "streamline__state_tracer_complete", "package": null, "version": null}, {"name": "_missing_balances_native", "package": null, "version": null}, {"name": "_missing_balances_erc20", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.streamline__state_tracer_complete": [{"database": "polygon", "schema": "streamline", "name": "streamline__state_tracer_complete", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/streamline/complete/streamline__state_tracer_complete.sql", "original_file_path": "models/balances_package/state_tracer/streamline/complete/streamline__state_tracer_complete.sql", "unique_id": "model.fsc_evm.streamline__state_tracer_complete", "fqn": ["fsc_evm", "balances_package", "state_tracer", "streamline", "complete", "streamline__state_tracer_complete"], "alias": "state_tracer_complete", "checksum": {"name": "sha256", "checksum": "64e1362aa7f2bf295ef1c7b5e8e7a397f711e9b8557c7dab8ac58b26cd90fd90"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "block_number", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "ROUND(block_number, -3)"}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "incremental", "unique_key": "block_number", "cluster_by": "ROUND(block_number, -3)", "full_refresh": false, "tags": ["stale"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018429.2029216, "config_call_dict": {"materialized": "incremental", "unique_key": "block_number", "cluster_by": "ROUND(block_number, -3)", "full_refresh": false, "tags": ["stale"], "post-hook": ["ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)"]}, "relation_name": "polygon.streamline.state_tracer_complete", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n-- depends_on: {{ ref('bronze__state_tracer') }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = \"block_number\",\n cluster_by = \"ROUND(block_number, -3)\",\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_number)\",\n full_refresh = vars.GLOBAL_STREAMLINE_FR_ENABLED,\n tags = ['stale']\n) }}\n\n{# Main query starts here #}\nSELECT\n block_number,\n file_name,\n {{ dbt_utils.generate_surrogate_key(['block_number']) }} AS complete_state_tracer_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {% if is_incremental() %}\n {{ ref('bronze__state_tracer') }}\n WHERE\n _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01'::TIMESTAMP) AS _inserted_timestamp\n FROM\n {{ this }}\n )\n {% else %}\n {{ ref('bronze__state_tracer_fr') }}\n {% endif %}\n\nQUALIFY (ROW_NUMBER() OVER (PARTITION BY block_number ORDER BY _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__state_tracer", "package": null, "version": null}, {"name": "bronze__state_tracer_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm._missing_balances_native": [{"database": "polygon", "schema": "_missing_balances_native", "name": "_missing_balances_native", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/streamline/retry/_missing_balances_native.sql", "original_file_path": "models/balances_package/state_tracer/streamline/retry/_missing_balances_native.sql", "unique_id": "model.fsc_evm._missing_balances_native", "fqn": ["fsc_evm", "balances_package", "state_tracer", "streamline", "retry", "_missing_balances_native"], "alias": "", "checksum": {"name": "sha256", "checksum": "4b3f0c38bab3fd12bb3ee08686cfa8f14dcb3dbc700420fd3cec0680049313e5"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "ephemeral", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018429.5177784, "config_call_dict": {"materialized": "ephemeral"}, "relation_name": null, "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% if vars.BALANCES_SL_NEW_BUILD_ENABLED %}\n\n SELECT\n 0 AS block_number\n {% else %}\n \n WITH source AS (\n SELECT\n block_number,\n LAG(\n block_number,\n 1\n ) over (\n PARTITION BY address\n ORDER BY\n block_number,\n tx_position ASC\n ) AS prev_block_number,\n tx_position,\n address,\n pre_balance_raw,\n pre_balance_precise,\n LAG(\n post_balance_precise,\n 1\n ) over (\n PARTITION BY address\n ORDER BY\n block_number,\n tx_position ASC\n ) AS prev_post_balance_precise\n FROM\n {{ ref(\"test_gold__ez_balances_native_recent\") }}\n WHERE\n block_timestamp > DATEADD('day', -5, SYSDATE()) \n {% if vars.BALANCES_EXCLUSION_LIST_ENABLED %}\n AND address NOT IN (\n SELECT\n DISTINCT address\n FROM\n silver.validator_addresses\n )\n {% endif %}\n ),\n diffs AS (\n SELECT\n block_number,\n prev_block_number,\n tx_position,\n address,\n pre_balance_raw,\n pre_balance_precise,\n prev_post_balance_precise,\n pre_balance_precise - prev_post_balance_precise AS diff\n FROM\n source\n WHERE\n diff <> 0\n AND diff IS NOT NULL\n ),\n missing_native_transfers AS (\n SELECT\n t.block_number,\n t.block_timestamp,\n t.tx_position,\n t.tx_hash,\n t.trace_index,\n from_address,\n to_address,\n origin_from_address,\n origin_to_address,\n value_precise_raw,\n VALUE,\n t.tx_succeeded,\n t.trace_succeeded,\n d.address AS diff_address,\n d.prev_block_number AS diff_prev_block,\n d.block_number AS diff_block,\n d.pre_balance_raw AS expected_balance_change\n FROM\n {{ ref(\"test_gold__fact_traces_recent\") }}\n t\n INNER JOIN diffs d\n ON t.block_number > d.prev_block_number\n AND t.block_number < d.block_number\n AND (\n from_address = d.address\n OR to_address = d.address\n OR origin_from_address = d.address\n OR origin_to_address = d.address\n )\n WHERE\n t.block_timestamp > DATEADD('day', -5, SYSDATE())\n )\nSELECT\n DISTINCT block_number\nFROM\n missing_native_transfers\n{% endif %}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_native_recent", "package": null, "version": null}, {"name": "test_gold__fact_traces_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm._missing_balances_erc20": [{"database": "polygon", "schema": "_missing_balances_erc20", "name": "_missing_balances_erc20", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/streamline/retry/_missing_balances_erc20.sql", "original_file_path": "models/balances_package/state_tracer/streamline/retry/_missing_balances_erc20.sql", "unique_id": "model.fsc_evm._missing_balances_erc20", "fqn": ["fsc_evm", "balances_package", "state_tracer", "streamline", "retry", "_missing_balances_erc20"], "alias": "", "checksum": {"name": "sha256", "checksum": "eda1131b2784df5e5e71b0b8f1bcdb431459cf993886d0551577904ca1257f1d"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "ephemeral", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018429.8272882, "config_call_dict": {"materialized": "ephemeral"}, "relation_name": null, "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config(\n materialized = 'ephemeral'\n) }}\n\n{% if vars.BALANCES_SL_NEW_BUILD_ENABLED %}\n\n SELECT\n 0 AS block_number\n {% else %}\n\nWITH source AS (\n SELECT\n block_number,\n LAG(\n block_number,\n 1\n ) over (\n PARTITION BY address,\n contract_address\n ORDER BY\n block_number,\n tx_position ASC\n ) AS prev_block_number,\n tx_position,\n address,\n contract_address,\n pre_balance_raw,\n pre_balance_precise,\n LAG(\n post_balance_precise,\n 1\n ) over (\n PARTITION BY address,\n contract_address\n ORDER BY\n block_number,\n tx_position ASC\n ) AS prev_post_balance_precise\n FROM\n {{ ref(\"test_gold__ez_balances_erc20_recent\") }}\n WHERE\n block_timestamp > DATEADD('day', -5, SYSDATE())),\n diffs AS (\n SELECT\n block_number,\n prev_block_number,\n tx_position,\n address,\n contract_address,\n pre_balance_raw,\n pre_balance_precise,\n prev_post_balance_precise,\n pre_balance_precise - prev_post_balance_precise AS diff\n FROM\n source\n WHERE\n diff <> 0\n AND diff IS NOT NULL\n ),\n missing_transfers AS (\n SELECT\n l.block_number,\n l.block_timestamp,\n l.tx_position,\n l.tx_hash,\n l.event_index,\n l.contract_address,\n CONCAT('0x', SUBSTR(l.topic_1, 27, 40)) :: STRING AS from_address,\n CONCAT('0x', SUBSTR(l.topic_2, 27, 40)) :: STRING AS to_address,\n utils.udf_hex_to_int(SUBSTR(l.data, 3, 64)) AS raw_amount_precise,\n TRY_TO_NUMBER(raw_amount_precise) AS raw_amount,\n l.tx_succeeded,\n d.address AS diff_address,\n d.prev_block_number AS diff_prev_block,\n d.block_number AS diff_block,\n d.pre_balance_raw AS expected_balance_change\n FROM\n {{ ref(\"test_gold__fact_event_logs_recent\") }}\n l\n INNER JOIN diffs d\n ON l.contract_address = d.contract_address\n AND l.block_number > d.prev_block_number\n AND l.block_number < d.block_number\n AND (\n from_address = d.address\n OR to_address = d.address\n )\n WHERE\n l.block_timestamp > DATEADD('day', -5, SYSDATE())\n AND l.topic_0 = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND l.topic_1 IS NOT NULL\n AND l.topic_2 IS NOT NULL\n AND l.data IS NOT NULL\n AND raw_amount IS NOT NULL\n )\n SELECT\n DISTINCT block_number\n FROM\n missing_transfers\n {% endif %}", "language": "sql", "refs": [{"name": "test_gold__ez_balances_erc20_recent", "package": null, "version": null}, {"name": "test_gold__fact_event_logs_recent", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.streamline__state_tracer_history": [{"database": "polygon", "schema": "streamline", "name": "streamline__state_tracer_history", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/streamline/history/streamline__state_tracer_history.sql", "original_file_path": "models/balances_package/state_tracer/streamline/history/streamline__state_tracer_history.sql", "unique_id": "model.fsc_evm.streamline__state_tracer_history", "fqn": ["fsc_evm", "balances_package", "state_tracer", "streamline", "history", "streamline__state_tracer_history"], "alias": "state_tracer_history", "checksum": {"name": "sha256", "checksum": "03b8992abb4e286a6b69faef01469bbaf6be43b9e72c6eac5a1d0e202ac2e56c"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "view", "tags": ["stale"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018430.1371646, "config_call_dict": {"materialized": "view", "tags": ["stale"]}, "relation_name": "polygon.streamline.state_tracer_history", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = \"view\",\n tags = ['stale']\n) }}\n\n{# Main query starts here #}\nWITH \n last_3_days AS (\n SELECT block_number\n FROM {{ ref(\"_block_lookback\") }}\n ),\n\n{# Identify blocks that need processing #}\nto_do AS (\n SELECT block_number\n FROM {{ ref(\"streamline__blocks\") }}\n WHERE \n block_number IS NOT NULL\n AND block_number <= (SELECT block_number FROM last_3_days)\n EXCEPT\n\n {# Exclude blocks that have already been processed #}\n SELECT block_number\n FROM {{ ref('streamline__state_tracer_complete') }}\n WHERE 1=1\n AND block_number <= (SELECT block_number FROM last_3_days)\n)\n\n{# Prepare the final list of blocks to process #}\n,ready_blocks AS (\n SELECT block_number\n FROM to_do\n\n {% if vars.BALANCES_SL_TESTING_LIMIT is not none %}\n ORDER BY block_number DESC\n LIMIT {{ vars.BALANCES_SL_TESTING_LIMIT }} \n {% endif %}\n)\n\n{# Generate API requests for each block #}\nSELECT\n block_number,\n ROUND(block_number, -3) AS partition_key,\n live.udf_api(\n 'POST',\n '{{ vars.GLOBAL_NODE_URL }}',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'application/json',\n 'fsc-quantum-state', 'streamline'\n ),\n OBJECT_CONSTRUCT(\n 'id', block_number,\n 'jsonrpc', '2.0',\n 'method', 'debug_traceBlockByNumber',\n 'params', ARRAY_CONSTRUCT(utils.udf_int_to_hex(block_number), \n OBJECT_CONSTRUCT(\n 'tracer', 'prestateTracer', \n 'tracerConfig', OBJECT_CONSTRUCT('diffMode', TRUE),\n 'timeout', '120s'\n )\n )\n ),\n '{{ vars.GLOBAL_NODE_VAULT_PATH }}'\n ) AS request\nFROM\n ready_blocks\n \nORDER BY partition_key DESC, block_number DESC\n\nLIMIT {{ vars.BALANCES_SL_STATE_TRACER_HISTORY_SQL_LIMIT }}\n\n{# Streamline Function Call #}\n{% if execute %}\n {% set params = {\n \"external_table\": 'state_tracer',\n \"sql_limit\": vars.BALANCES_SL_STATE_TRACER_HISTORY_SQL_LIMIT,\n \"producer_batch_size\": vars.BALANCES_SL_STATE_TRACER_HISTORY_PRODUCER_BATCH_SIZE,\n \"worker_batch_size\": vars.BALANCES_SL_STATE_TRACER_HISTORY_WORKER_BATCH_SIZE,\n \"async_concurrent_requests\": vars.BALANCES_SL_STATE_TRACER_HISTORY_ASYNC_CONCURRENT_REQUESTS,\n \"sql_source\": 'state_tracer_history',\n \"exploded_key\": tojson(['result'])\n } %}\n\n {% set function_call_sql %}\n {{ fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = this.schema ~ \".\" ~ this.identifier,\n params = params\n ) }}\n {% endset %}\n \n {% do run_query(function_call_sql) %}\n {{ log(\"Streamline function call: \" ~ function_call_sql, info=true) }}\n{% endif %}", "language": "sql", "refs": [{"name": "_block_lookback", "package": null, "version": null}, {"name": "streamline__blocks", "package": null, "version": null}, {"name": "streamline__state_tracer_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.balances__ez_balances_native": [{"database": "polygon", "schema": "balances", "name": "balances__ez_balances_native", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/gold/balances__ez_balances_native.sql", "original_file_path": "models/balances_package/state_tracer/gold/balances__ez_balances_native.sql", "unique_id": "model.fsc_evm.balances__ez_balances_native", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "balances__ez_balances_native"], "alias": "ez_balances_native", "checksum": {"name": "sha256", "checksum": "6f92f88a84ea559264d514625b6d104b805715a63f78ca2d3207b69128903edd"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": ["block_number"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::date", "round(block_number, -3)"]}, "tags": ["stale"], "description": "{{ doc(\"ez_balances_native_table_doc\") }}", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "{{ doc(\"general_block_number\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "{{ doc(\"general_block_timestamp\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "{{ doc(\"general_tx_position\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "{{ doc(\"general_tx_hash\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "{{ doc(\"ez_balances_native_address\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRE_NONCE": {"name": "PRE_NONCE", "description": "{{ doc(\"ez_balances_native_pre_nonce\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRE_BALANCE_HEX": {"name": "PRE_BALANCE_HEX", "description": "{{ doc(\"ez_balances_native_pre_balance_hex\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRE_BALANCE_RAW": {"name": "PRE_BALANCE_RAW", "description": "{{ doc(\"ez_balances_native_pre_balance_raw\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRE_BALANCE_PRECISE": {"name": "PRE_BALANCE_PRECISE", "description": "{{ doc(\"ez_balances_native_pre_balance_precise\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRE_BALANCE": {"name": "PRE_BALANCE", "description": "{{ doc(\"ez_balances_native_pre_balance\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRE_BALANCE_USD": {"name": "PRE_BALANCE_USD", "description": "{{ doc(\"ez_balances_native_pre_balance_usd\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POST_NONCE": {"name": "POST_NONCE", "description": "{{ doc(\"ez_balances_native_post_nonce\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POST_BALANCE_HEX": {"name": "POST_BALANCE_HEX", "description": "{{ doc(\"ez_balances_native_post_balance_hex\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POST_BALANCE_RAW": {"name": "POST_BALANCE_RAW", "description": "{{ doc(\"ez_balances_native_post_balance_raw\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POST_BALANCE_PRECISE": {"name": "POST_BALANCE_PRECISE", "description": "{{ doc(\"ez_balances_native_post_balance_precise\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POST_BALANCE": {"name": "POST_BALANCE", "description": "{{ doc(\"ez_balances_native_post_balance\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POST_BALANCE_USD": {"name": "POST_BALANCE_USD", "description": "{{ doc(\"ez_balances_native_post_balance_usd\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NET_BALANCE_RAW": {"name": "NET_BALANCE_RAW", "description": "{{ doc(\"ez_balances_native_net_balance_raw\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NET_BALANCE": {"name": "NET_BALANCE", "description": "{{ doc(\"ez_balances_native_net_balance\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECIMALS": {"name": "DECIMALS", "description": "{{ doc(\"ez_balances_native_decimals\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_BALANCES_NATIVE_ID": {"name": "EZ_BALANCES_NATIVE_ID", "description": "{{ doc(\"general_pk\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "{{ doc(\"general_inserted_timestamp\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "{{ doc(\"general_modified_timestamp\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/state_tracer/gold/balances__ez_balances_native.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "incremental", "unique_key": ["block_number"], "incremental_strategy": "delete+insert", "cluster_by": ["block_timestamp::date", "round(block_number, -3)"], "full_refresh": false, "tags": ["stale"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018443.206968, "config_call_dict": {"materialized": "incremental", "unique_key": ["block_number"], "incremental_strategy": "delete+insert", "cluster_by": ["block_timestamp::date", "round(block_number, -3)"], "full_refresh": false, "tags": ["stale"]}, "relation_name": "polygon.balances.ez_balances_native", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = ['block_number'],\n incremental_strategy = 'delete+insert',\n cluster_by = ['block_timestamp::date', 'round(block_number, -3)'],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n tags = ['stale']\n) }}\n\nWITH state_tracer AS (\n\n SELECT\n block_number,\n tx_position,\n tx_hash,\n address,\n pre_nonce,\n pre_hex_balance,\n post_nonce,\n post_hex_balance\n FROM\n {{ ref('silver__state_tracer_native') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP)\n FROM\n {{ this }})\n {% endif %}\n ),\n pre_state AS (\n SELECT\n block_number,\n tx_position,\n tx_hash,\n address,\n pre_nonce AS nonce,\n pre_hex_balance AS hex_balance\n FROM\n state_tracer\n WHERE\n pre_hex_balance IS NOT NULL\n ),\n post_state AS (\n SELECT\n block_number,\n tx_position,\n tx_hash,\n address,\n post_nonce AS nonce,\n post_hex_balance AS hex_balance\n FROM\n state_tracer\n WHERE\n post_hex_balance IS NOT NULL\n ),\n balances AS (\n SELECT\n pre.block_number,\n b.block_timestamp,\n pre.tx_position,\n pre.tx_hash,\n pre.address,\n pre.nonce AS pre_nonce,\n pre.hex_balance AS pre_balance_hex,\n utils.udf_hex_to_int(\n pre.hex_balance\n ) :: bigint AS pre_balance_raw,\n utils.udf_decimal_adjust(\n pre_balance_raw,\n 18\n ) AS pre_balance_precise,\n pre_balance_precise :: FLOAT AS pre_balance,\n ROUND(pre_balance * COALESCE(p0.price, p1.price), 2) AS pre_balance_usd,\n COALESCE(\n post.nonce,\n pre.nonce\n ) AS post_nonce,\n COALESCE(\n post.hex_balance,\n pre.hex_balance\n ) AS post_balance_hex,\n utils.udf_hex_to_int(COALESCE(post.hex_balance, pre.hex_balance)) :: bigint AS post_balance_raw,\n utils.udf_decimal_adjust(\n post_balance_raw,\n 18\n ) AS post_balance_precise,\n post_balance_precise :: FLOAT AS post_balance,\n ROUND(post_balance * COALESCE(p0.price, p1.price), 2) AS post_balance_usd,\n post_balance_raw - pre_balance_raw AS net_balance_raw,\n post_balance_precise - pre_balance_precise AS net_balance,\n 18 AS decimals\n FROM\n pre_state pre\n LEFT JOIN post_state post USING(\n block_number,\n tx_position,\n address\n )\n LEFT JOIN {{ ref('core__fact_blocks') }}\n b USING(block_number)\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p0\n ON DATE_TRUNC(\n 'hour',\n b.block_timestamp\n ) = p0.hour\n AND p0.token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n LEFT JOIN {{ ref('price__ez_prices_hourly') }}\n p1\n ON DATE_TRUNC(\n 'hour',\n b.block_timestamp\n ) = p1.hour\n AND p1.is_native\n )\n\n{% if is_incremental() %},\nmissing_data AS (\n SELECT\n block_number,\n b.block_timestamp AS block_timestamp_heal,\n tx_position,\n tx_hash,\n address,\n pre_nonce,\n pre_balance_hex,\n pre_balance_raw,\n pre_balance_precise,\n pre_balance,\n ROUND(pre_balance * COALESCE(p0.price, p1.price), 2) AS pre_balance_usd_heal,\n post_nonce,\n post_balance_hex,\n post_balance_raw,\n post_balance_precise,\n post_balance,\n ROUND(post_balance * COALESCE(p0.price, p1.price), 2) AS post_balance_usd_heal,\n net_balance_raw,\n net_balance,\n 18 AS decimals_heal\n FROM\n {{ this }}\n t\n LEFT JOIN {{ ref('core__fact_blocks') }}\n b USING(block_number)\n LEFT JOIN {{ ref('price__ez_prices_hourly') }} p0\n ON DATE_TRUNC(\n 'hour',\n b.block_timestamp\n ) = p0.hour\n AND p0.token_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}'\n LEFT JOIN {{ ref('price__ez_prices_hourly') }} p1\n ON DATE_TRUNC(\n 'hour',\n b.block_timestamp\n ) = p1.hour\n AND p1.is_native\n WHERE\n (t.block_timestamp IS NULL\n OR t.pre_balance_usd IS NULL\n OR t.post_balance_usd IS NULL)\n AND COALESCE(p0.price, p1.price) IS NOT NULL\n)\n{% endif %},\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_position,\n tx_hash,\n address,\n pre_nonce,\n pre_balance_hex,\n pre_balance_raw,\n pre_balance_precise,\n pre_balance,\n pre_balance_usd,\n post_nonce,\n post_balance_hex,\n post_balance_raw,\n post_balance_precise,\n post_balance,\n post_balance_usd,\n net_balance_raw,\n net_balance,\n decimals\n FROM\n balances\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp_heal AS block_timestamp,\n tx_position,\n tx_hash,\n address,\n pre_nonce,\n pre_balance_hex,\n pre_balance_raw,\n pre_balance_precise,\n pre_balance,\n pre_balance_usd_heal AS pre_balance_usd,\n post_nonce,\n post_balance_hex,\n post_balance_raw,\n post_balance_precise,\n post_balance,\n post_balance_usd_heal AS post_balance_usd,\n net_balance_raw,\n net_balance,\n decimals_heal AS decimals\nFROM\n missing_data\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_position,\n tx_hash,\n address,\n decimals,\n pre_nonce,\n pre_balance_hex,\n pre_balance_raw,\n pre_balance_precise,\n pre_balance,\n pre_balance_usd,\n post_nonce,\n post_balance_hex,\n post_balance_raw,\n post_balance_precise,\n post_balance,\n post_balance_usd,\n net_balance_raw,\n net_balance,\n {{ dbt_utils.generate_surrogate_key(['block_number', 'tx_position', 'address']) }} AS ez_balances_native_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n FINAL qualify (ROW_NUMBER() over (PARTITION BY block_number, tx_position, address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "silver__state_tracer_native", "package": null, "version": null}, {"name": "core__fact_blocks", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.balances__ez_balances_erc20": [{"database": "polygon", "schema": "balances", "name": "balances__ez_balances_erc20", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/gold/balances__ez_balances_erc20.sql", "original_file_path": "models/balances_package/state_tracer/gold/balances__ez_balances_erc20.sql", "unique_id": "model.fsc_evm.balances__ez_balances_erc20", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "balances__ez_balances_erc20"], "alias": "ez_balances_erc20", "checksum": {"name": "sha256", "checksum": "6d93ed8c97974c2a05e71e89869f7d8a46ae7705b2effcc9c9f113b4ef65ae08"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ unverify_balances() }}", "transaction": true, "index": null}, {"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": ["block_number"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["block_timestamp::date", "round(block_number, -3)"]}, "tags": ["stale"], "description": "{{ doc(\"ez_balances_erc20_table_doc\") }}", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "{{ doc(\"general_block_number\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "{{ doc(\"general_block_timestamp\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "{{ doc(\"general_tx_position\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "{{ doc(\"general_tx_hash\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "{{ doc(\"ez_balances_erc20_tx_succeeded\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_ADDRESS": {"name": "CONTRACT_ADDRESS", "description": "{{ doc(\"ez_balances_erc20_contract_address\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECIMALS": {"name": "DECIMALS", "description": "{{ doc(\"ez_balances_erc20_decimals\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "{{ doc(\"ez_balances_erc20_symbol\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SLOT_NUMBER": {"name": "SLOT_NUMBER", "description": "{{ doc(\"ez_balances_erc20_slot_number\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "{{ doc(\"ez_balances_erc20_address\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRE_BALANCE_HEX": {"name": "PRE_BALANCE_HEX", "description": "{{ doc(\"ez_balances_erc20_pre_balance_hex\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRE_BALANCE_RAW": {"name": "PRE_BALANCE_RAW", "description": "{{ doc(\"ez_balances_erc20_pre_balance_raw\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRE_BALANCE_PRECISE": {"name": "PRE_BALANCE_PRECISE", "description": "{{ doc(\"ez_balances_erc20_pre_balance_precise\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRE_BALANCE": {"name": "PRE_BALANCE", "description": "{{ doc(\"ez_balances_erc20_pre_balance\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRE_BALANCE_USD": {"name": "PRE_BALANCE_USD", "description": "{{ doc(\"ez_balances_erc20_pre_balance_usd\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POST_BALANCE_HEX": {"name": "POST_BALANCE_HEX", "description": "{{ doc(\"ez_balances_erc20_post_balance_hex\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POST_BALANCE_RAW": {"name": "POST_BALANCE_RAW", "description": "{{ doc(\"ez_balances_erc20_post_balance_raw\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POST_BALANCE_PRECISE": {"name": "POST_BALANCE_PRECISE", "description": "{{ doc(\"ez_balances_erc20_post_balance_precise\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POST_BALANCE": {"name": "POST_BALANCE", "description": "{{ doc(\"ez_balances_erc20_post_balance\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POST_BALANCE_USD": {"name": "POST_BALANCE_USD", "description": "{{ doc(\"ez_balances_erc20_post_balance_usd\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NET_BALANCE_RAW": {"name": "NET_BALANCE_RAW", "description": "{{ doc(\"ez_balances_erc20_net_balance_raw\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NET_BALANCE": {"name": "NET_BALANCE", "description": "{{ doc(\"ez_balances_erc20_net_balance\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_BALANCES_ERC20_ID": {"name": "EZ_BALANCES_ERC20_ID", "description": "{{ doc(\"general_pk\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "{{ doc(\"general_inserted_timestamp\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "{{ doc(\"general_modified_timestamp\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/state_tracer/gold/balances__ez_balances_erc20.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "incremental", "unique_key": ["block_number"], "incremental_strategy": "delete+insert", "cluster_by": ["block_timestamp::date", "round(block_number, -3)"], "full_refresh": false, "tags": ["stale"], "post-hook": "{{ fsc_evm.enable_change_tracking() }}", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1764018443.2041392, "config_call_dict": {"materialized": "incremental", "unique_key": ["block_number"], "incremental_strategy": "delete+insert", "cluster_by": ["block_timestamp::date", "round(block_number, -3)"], "full_refresh": false, "tags": ["stale"], "post-hook": ["{{ unverify_balances() }}"]}, "relation_name": "polygon.balances.ez_balances_erc20", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n--depends_on: {{ ref('core__fact_transactions') }}\n\n{{ config (\n materialized = \"incremental\",\n unique_key = ['block_number'],\n incremental_strategy = 'delete+insert',\n cluster_by = ['block_timestamp::date', 'round(block_number, -3)'],\n full_refresh = vars.GLOBAL_GOLD_FR_ENABLED,\n post_hook = '{{ unverify_balances() }}',\n tags = ['stale']\n) }}\n\nWITH state_storage_realtime AS (\n\n SELECT\n block_number,\n tx_position,\n tx_hash,\n t.contract_address,\n storage_key,\n pre_storage_hex,\n post_storage_hex\n FROM\n {{ ref('silver__state_tracer_storage') }}\n t\n INNER JOIN {{ ref('silver__balance_slots') }}\n v --limits balances to verified assets only\n ON t.contract_address = v.contract_address\n WHERE\n slot_number IS NOT NULL\n AND num_slots = 1 --only include contracts with a single balanceOf slot\n\n{% if is_incremental() %}\nAND \n t.modified_timestamp > (\n SELECT\n COALESCE(MAX(modified_timestamp), '1970-01-01' :: TIMESTAMP)\n FROM\n {{ this }})\n {% endif %}\n),\n{% if is_incremental() and var('HEAL_MODEL',false) %}\nnew_contracts AS (\n SELECT DISTINCT contract_address\n FROM {{ ref('silver__balance_slots') }}\n WHERE contract_address NOT IN (\n SELECT DISTINCT contract_address \n FROM {{ this }}\n )\n AND slot_number IS NOT NULL\n AND num_slots = 1\n),\nstate_storage_history AS (\n\n SELECT\n block_number,\n tx_position,\n tx_hash,\n t.contract_address,\n storage_key,\n pre_storage_hex,\n post_storage_hex\n FROM\n {{ ref('silver__state_tracer_storage') }}\n t\n INNER JOIN new_contracts\n v --limits balances to verified assets only\n ON t.contract_address = v.contract_address\n),\n{% endif %}\nstate_storage AS (\n SELECT *\n FROM state_storage_realtime\n{% if is_incremental() and var('HEAL_MODEL',false) %}\n UNION\n SELECT *\n FROM state_storage_history\n{% endif %}\n),\nbalances AS (\n SELECT\n s.block_number,\n tx.block_timestamp,\n s.tx_position,\n s.tx_hash,\n tx.tx_succeeded,\n s.contract_address,\n IFF(p.decimals IS NULL AND contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}', 18, p.decimals) AS decimals_adj,\n p.symbol,\n k.address,\n s.storage_key,\n k.slot_number,\n pre_storage_hex AS pre_balance_hex,\n utils.udf_hex_to_int(pre_storage_hex) AS pre_balance_raw,\n IFF(decimals_adj IS NULL, NULL,utils.udf_decimal_adjust(\n pre_balance_raw,\n decimals_adj\n )) AS pre_balance_precise,\n pre_balance_precise :: FLOAT AS pre_balance,\n IFF(decimals_adj IS NULL, NULL, ROUND(\n pre_balance * IFF(contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}', COALESCE(p.price, p1.price), p.price)\n , 2)) AS pre_balance_usd,\n post_storage_hex AS post_balance_hex,\n utils.udf_hex_to_int(post_storage_hex) AS post_balance_raw,\n IFF(decimals_adj IS NULL, NULL,utils.udf_decimal_adjust(\n post_balance_raw,\n decimals_adj\n )) AS post_balance_precise,\n post_balance_precise :: FLOAT AS post_balance,\n IFF(decimals_adj IS NULL, NULL, ROUND(\n post_balance * IFF(contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}', COALESCE(p.price, p1.price), p.price)\n , 2)) AS post_balance_usd,\n TRY_TO_NUMBER(post_balance_raw) - TRY_TO_NUMBER(pre_balance_raw) AS net_balance_raw,\n post_balance_precise - pre_balance_precise AS net_balance\n FROM\n state_storage s\n INNER JOIN {{ ref('silver__storage_keys') }} k USING (storage_key) -- get address that the balance applies to\n LEFT JOIN {{ ref('core__fact_transactions')}} tx USING (block_number, tx_position)\n LEFT JOIN {{ ref('price__ez_prices_hourly') }} \n p\n ON s.contract_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n tx.block_timestamp\n ) = p.hour\n AND p.decimals IS NOT NULL\n LEFT JOIN {{ ref('price__ez_prices_hourly') }} p1\n ON DATE_TRUNC(\n 'hour',\n tx.block_timestamp\n ) = p1.HOUR\n AND p1.is_native\n WHERE \n COALESCE(pre_balance_hex, '0x0') <> CONCAT('0x', LPAD(SUBSTR(k.address, 3), 64, '0'))\n AND COALESCE(post_balance_hex, '0x0') <> CONCAT('0x', LPAD(SUBSTR(k.address, 3), 64, '0'))\n)\n\n{% if is_incremental() %},\nmissing_data AS (\n SELECT\n t.block_number,\n tx.block_timestamp AS block_timestamp_heal,\n t.tx_position,\n t.tx_hash,\n tx.tx_succeeded AS tx_succeeded_heal,\n t.contract_address,\n IFF(p.decimals IS NULL AND contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}', 18, p.decimals) AS decimals_heal,\n p.symbol AS symbol_heal,\n k.slot_number AS slot_number_heal,\n k.address AS address_heal,\n k.storage_key AS storage_key_heal,\n pre_balance_hex,\n pre_balance_raw,\n IFF(decimals_heal IS NULL, NULL,utils.udf_decimal_adjust(\n pre_balance_raw,\n decimals_heal\n )) AS pre_balance_precise_heal,\n pre_balance_precise_heal :: FLOAT AS pre_balance_heal,\n IFF(decimals_heal IS NULL, NULL, ROUND(\n pre_balance_heal * IFF(contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}', COALESCE(p.price, p1.price), p.price)\n , 2)) AS pre_balance_usd_heal,\n post_balance_hex,\n post_balance_raw,\n IFF(decimals_heal IS NULL, NULL,utils.udf_decimal_adjust(\n post_balance_raw,\n decimals_heal\n )) AS post_balance_precise_heal,\n post_balance_precise_heal :: FLOAT AS post_balance_heal,\n IFF(decimals_heal IS NULL, NULL, ROUND(\n post_balance_heal * IFF(contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}', COALESCE(p.price, p1.price), p.price)\n , 2)) AS post_balance_usd_heal,\n net_balance_raw,\n net_balance\n FROM\n {{ this }}\n t\n INNER JOIN {{ ref('silver__storage_keys') }} k USING (storage_key) -- get address that the balance applies to\n LEFT JOIN {{ ref('core__fact_transactions') }}\n tx USING(block_number, tx_position)\n LEFT JOIN {{ ref('price__ez_prices_hourly') }} \n p\n ON t.contract_address = p.token_address\n AND DATE_TRUNC(\n 'hour',\n tx.block_timestamp\n ) = p.hour\n AND p.decimals IS NOT NULL\n LEFT JOIN {{ ref('price__ez_prices_hourly') }} p1\n ON DATE_TRUNC(\n 'hour',\n tx.block_timestamp\n ) = p1.HOUR\n AND p1.is_native\n WHERE\n (t.block_timestamp IS NULL\n OR t.pre_balance_usd IS NULL\n OR t.post_balance_usd IS NULL)\n AND (\n p.price IS NOT NULL \n OR (contract_address = '{{ vars.GLOBAL_WRAPPED_NATIVE_ASSET_ADDRESS }}' AND p1.price IS NOT NULL)\n )\n)\n{% endif %},\nFINAL AS (\n SELECT\n block_number,\n block_timestamp,\n tx_position,\n tx_hash,\n tx_succeeded,\n contract_address,\n decimals_adj AS decimals,\n symbol,\n slot_number,\n address,\n storage_key,\n pre_balance_hex,\n pre_balance_raw,\n pre_balance_precise,\n pre_balance,\n pre_balance_usd,\n post_balance_hex,\n post_balance_raw,\n post_balance_precise,\n post_balance,\n post_balance_usd,\n net_balance_raw,\n net_balance\n FROM\n balances\n\n{% if is_incremental() %}\nUNION ALL\nSELECT\n block_number,\n block_timestamp_heal AS block_timestamp,\n tx_position,\n tx_hash,\n tx_succeeded_heal AS tx_succeeded,\n contract_address,\n decimals_heal AS decimals,\n symbol_heal AS symbol,\n slot_number_heal AS slot_number,\n address_heal AS address,\n storage_key_heal AS storage_key,\n pre_balance_hex,\n pre_balance_raw,\n pre_balance_precise_heal AS pre_balance_precise,\n pre_balance_heal AS pre_balance,\n pre_balance_usd_heal AS pre_balance_usd,\n post_balance_hex,\n post_balance_raw,\n post_balance_precise_heal AS post_balance_precise,\n post_balance_heal AS post_balance,\n post_balance_usd_heal AS post_balance_usd,\n net_balance_raw,\n net_balance\nFROM\n missing_data\n{% endif %}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_position,\n tx_hash,\n tx_succeeded,\n contract_address,\n decimals,\n symbol,\n slot_number,\n address,\n storage_key,\n pre_balance_hex,\n pre_balance_raw,\n pre_balance_precise,\n pre_balance,\n pre_balance_usd,\n post_balance_hex,\n post_balance_raw,\n post_balance_precise,\n post_balance,\n post_balance_usd,\n net_balance_raw,\n net_balance,\n {{ dbt_utils.generate_surrogate_key(['block_number', 'tx_position', 'contract_address', 'address']) }} AS ez_balances_erc20_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n FINAL qualify(ROW_NUMBER() over (PARTITION BY block_number, tx_position, address, contract_address\nORDER BY\n modified_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "core__fact_transactions", "package": null, "version": null}, {"name": "silver__state_tracer_storage", "package": null, "version": null}, {"name": "silver__balance_slots", "package": null, "version": null}, {"name": "silver__storage_keys", "package": null, "version": null}, {"name": "core__fact_transactions", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}, {"name": "price__ez_prices_hourly", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.fsc_evm.unverify_balances", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.test_gold__ez_balances_erc20_full": [{"database": "polygon", "schema": "test_gold", "name": "test_gold__ez_balances_erc20_full", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.sql", "unique_id": "model.fsc_evm.test_gold__ez_balances_erc20_full", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "test_gold__ez_balances_erc20_full"], "alias": "ez_balances_erc20_full", "checksum": {"name": "sha256", "checksum": "834e4b892e0f01d6c4c4107c4e5cd3226f128a6b418e10484cdeb84c2092bb85"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "This is a view used to test all of the gold fact balances erc20 data.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_BALANCES_ERC20_ID": {"name": "EZ_BALANCES_ERC20_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "view", "tags": ["stale"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018443.288093, "config_call_dict": {"materialized": "view", "tags": ["stale"]}, "relation_name": "polygon.test_gold.ez_balances_erc20_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['stale']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('balances__ez_balances_erc20') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "balances__ez_balances_erc20", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.test_gold__ez_balances_erc20_recent": [{"database": "polygon", "schema": "test_gold", "name": "test_gold__ez_balances_erc20_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.sql", "unique_id": "model.fsc_evm.test_gold__ez_balances_erc20_recent", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_erc20", "test_gold__ez_balances_erc20_recent"], "alias": "ez_balances_erc20_recent", "checksum": {"name": "sha256", "checksum": "bb34f9a276445edd142a5e08804c2c39bba7db832fcf4449d58c5277401b6522"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "This is a view used to test the last three days of fact balances erc20 data.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_BALANCES_ERC20_ID": {"name": "EZ_BALANCES_ERC20_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/state_tracer/gold/tests/ez_balances_erc20/test_gold__ez_balances_erc20_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "view", "tags": ["stale"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018443.2086205, "config_call_dict": {"materialized": "view", "tags": ["stale"]}, "relation_name": "polygon.test_gold.ez_balances_erc20_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['stale']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('balances__ez_balances_erc20') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "balances__ez_balances_erc20", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.test_gold__ez_balances_native_full": [{"database": "polygon", "schema": "test_gold", "name": "test_gold__ez_balances_native_full", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.sql", "unique_id": "model.fsc_evm.test_gold__ez_balances_native_full", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "test_gold__ez_balances_native_full"], "alias": "ez_balances_native_full", "checksum": {"name": "sha256", "checksum": "1c0783142c52431e01324eef9f7d570bdc75a82a254fa3e1b1bb02b761fda73f"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "This is a view used to test all of the gold fact balances native data.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_BALANCES_NATIVE_ID": {"name": "EZ_BALANCES_NATIVE_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_full.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "view", "tags": ["stale"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018443.3672636, "config_call_dict": {"materialized": "view", "tags": ["stale"]}, "relation_name": "polygon.test_gold.ez_balances_native_full", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['stale']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('balances__ez_balances_native') }}\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nWHERE\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "balances__ez_balances_native", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.test_gold__ez_balances_native_recent": [{"database": "polygon", "schema": "test_gold", "name": "test_gold__ez_balances_native_recent", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.sql", "original_file_path": "models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.sql", "unique_id": "model.fsc_evm.test_gold__ez_balances_native_recent", "fqn": ["fsc_evm", "balances_package", "state_tracer", "gold", "tests", "ez_balances_native", "test_gold__ez_balances_native_recent"], "alias": "ez_balances_native_recent", "checksum": {"name": "sha256", "checksum": "18b782eb19e3526808bb8d25bbcd81176b35ce3354f023121d7bbf4ced8ff50a"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "This is a view used to test the last three days of fact balances native data.", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_POSITION": {"name": "TX_POSITION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_BALANCES_NATIVE_ID": {"name": "EZ_BALANCES_NATIVE_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "fsc_evm://models/balances_package/state_tracer/gold/tests/ez_balances_native/test_gold__ez_balances_native_recent.yml", "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "view", "tags": ["stale"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018443.535291, "config_call_dict": {"materialized": "view", "tags": ["stale"]}, "relation_name": "polygon.test_gold.ez_balances_native_recent", "raw_code": "{# Get variables #}\n{% set vars = return_vars() %}\n\n{# Log configuration details #}\n{{ log_model_details() }}\n\n{{ config (\n materialized = \"view\",\n tags = ['stale']\n) }}\n\nSELECT\n *\nFROM\n {{ ref('balances__ez_balances_native') }}\nWHERE\n block_number > (\n SELECT\n block_number\n FROM\n {{ ref('_block_lookback') }}\n )\n{% if vars.MAIN_OBSERV_EXCLUSION_LIST_ENABLED %}\nAND\n block_number NOT IN (\n SELECT\n block_number :: INT\n FROM\n observability.exclusion_list\n )\n{% endif %}", "language": "sql", "refs": [{"name": "balances__ez_balances_native", "package": null, "version": null}, {"name": "_block_lookback", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.return_vars", "macro.fsc_evm.log_model_details", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.bronze__state_tracer": [{"database": "polygon", "schema": "bronze", "name": "bronze__state_tracer", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/bronze/bronze__state_tracer.sql", "original_file_path": "models/balances_package/state_tracer/bronze/bronze__state_tracer.sql", "unique_id": "model.fsc_evm.bronze__state_tracer", "fqn": ["fsc_evm", "balances_package", "state_tracer", "bronze", "bronze__state_tracer"], "alias": "state_tracer", "checksum": {"name": "sha256", "checksum": "dfef7d31bb099b06a2dd2c2bac9f7814f629a6c6d56f4ec13f7182de73c40cb4"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "view", "tags": ["stale"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018432.6208174, "config_call_dict": {"materialized": "view", "tags": ["stale"]}, "relation_name": "polygon.bronze.state_tracer", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['stale']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query(\n source_name = 'state_tracer'\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "state_tracer"], ["bronze_streamline", "state_tracer"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.fsc_evm.bronze__state_tracer_fr": [{"database": "polygon", "schema": "bronze", "name": "bronze__state_tracer_fr", "resource_type": "model", "package_name": "fsc_evm", "path": "balances_package/state_tracer/bronze/bronze__state_tracer_fr.sql", "original_file_path": "models/balances_package/state_tracer/bronze/bronze__state_tracer_fr.sql", "unique_id": "model.fsc_evm.bronze__state_tracer_fr", "fqn": ["fsc_evm", "balances_package", "state_tracer", "bronze", "bronze__state_tracer_fr"], "alias": "state_tracer_fr", "checksum": {"name": "sha256", "checksum": "7d5a89bb7436169161161c11c92a307aea0a57880326a9fbdaeed9a3a164ccba"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "{{ fsc_evm.enable_change_tracking() }}", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": false, "materialized": "view", "tags": ["stale"], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "post-hook": "{{ fsc_evm.enable_change_tracking() }}"}, "created_at": 1764018432.7826912, "config_call_dict": {"materialized": "view", "tags": ["stale"]}, "relation_name": "polygon.bronze.state_tracer_fr", "raw_code": "{# Log configuration details #}\n{{ log_model_details() }}\n\n{# Set up dbt configuration #}\n{{ config (\n materialized = 'view',\n tags = ['stale']\n) }}\n\n{# Main query starts here #}\n{{ streamline_external_table_query_fr(\n source_name = 'state_tracer'\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "state_tracer"], ["bronze_streamline", "state_tracer"]], "metrics": [], "depends_on": {"macros": ["macro.fsc_evm.log_model_details", "macro.fsc_evm.streamline_external_table_query_fr", "macro.fsc_evm.enable_change_tracking"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "test.livequery_models.test_claude__list_message_batches_with_before_disabled.4bdc5b9d2a": [{"test_metadata": {"name": "test_udf", "kwargs": {"args": "null, 5\n", "assertions": ["result:status_code = 200"], "column_name": "list_message_batches_with_before", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_claude", "name": "test_claude__list_message_batches_with_before_disabled", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__list_message_batches_with_before_disabled.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__list_message_batches_with_before_disabled.4bdc5b9d2a", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__list_message_batches_with_before_disabled"], "alias": "list_message_batches_with_before_disabled", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "enabled": false}, "created_at": 1764018435.8310978, "config_call_dict": {"enabled": false}, "relation_name": "polygon.test_claude.list_message_batches_with_before_disabled", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}{{ config(enabled=False) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "list_message_batches_with_before", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}], "test.livequery_models.test_claude__list_message_batches_with_after_disabled.db54df3824": [{"test_metadata": {"name": "test_udf", "kwargs": {"args": "null, 5\n", "assertions": ["result:status_code = 200"], "column_name": "list_message_batches_with_after", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_claude", "name": "test_claude__list_message_batches_with_after_disabled", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__list_message_batches_with_after_disabled.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__list_message_batches_with_after_disabled.db54df3824", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__list_message_batches_with_after_disabled"], "alias": "list_message_batches_with_after_disabled", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "enabled": false}, "created_at": 1764018435.8368018, "config_call_dict": {"enabled": false}, "relation_name": "polygon.test_claude.list_message_batches_with_after_disabled", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}{{ config(enabled=False) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "list_message_batches_with_after", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}], "test.livequery_models.test_claude__get_message_batch_disabled.8dc31b3657": [{"test_metadata": {"name": "test_udf", "kwargs": {"args": "'msgbatch_test'\n", "assertions": ["result:status_code = 404"], "column_name": "get_message_batch", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_claude", "name": "test_claude__get_message_batch_disabled", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__get_message_batch_disabled.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__get_message_batch_disabled.8dc31b3657", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__get_message_batch_disabled"], "alias": "get_message_batch_disabled", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "enabled": false}, "created_at": 1764018435.8424034, "config_call_dict": {"enabled": false}, "relation_name": "polygon.test_claude.get_message_batch_disabled", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}{{ config(enabled=False) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_message_batch", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}], "test.livequery_models.test_claude__get_message_batch_results_disabled.4b8dd0a722": [{"test_metadata": {"name": "test_udf", "kwargs": {"args": "'msgbatch_test'\n", "assertions": ["result:status_code = 404"], "column_name": "get_message_batch_results", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_claude", "name": "test_claude__get_message_batch_results_disabled", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__get_message_batch_results_disabled.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__get_message_batch_results_disabled.4b8dd0a722", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__get_message_batch_results_disabled"], "alias": "get_message_batch_results_disabled", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "enabled": false}, "created_at": 1764018435.8483229, "config_call_dict": {"enabled": false}, "relation_name": "polygon.test_claude.get_message_batch_results_disabled", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}{{ config(enabled=False) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_message_batch_results", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}], "test.livequery_models.test_alchemy_nfts__report_spam_status_200.d062a6f454": [{"test_metadata": {"name": "test_udf", "kwargs": {"args": null, "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "report_spam", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__report_spam_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__report_spam_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__report_spam_status_200.d062a6f454", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__report_spam_status_200"], "alias": "report_spam_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "enabled": false}, "created_at": 1764018436.4994364, "config_call_dict": {"enabled": false}, "relation_name": "polygon.test_alchemy_nfts.report_spam_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}{{ config(enabled=False) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "report_spam", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}], "test.livequery_models.test_blockpour_utils__get_status_200.438dcb4c49": [{"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v1/tokens/1/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', {\n 'blockNumber': 17767007\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('blockpour_utils__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_blockpour_utils", "name": "test_blockpour_utils__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_blockpour_utils__get_status_200.sql", "original_file_path": "models/deploy/marketplace/blockpour/blockpour_utils__.yml", "unique_id": "test.livequery_models.test_blockpour_utils__get_status_200.438dcb4c49", "fqn": ["livequery_models", "deploy", "marketplace", "blockpour", "test_blockpour_utils__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "enabled": false}, "created_at": 1764018436.539267, "config_call_dict": {}, "relation_name": "polygon.test_blockpour_utils.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "blockpour_utils__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.blockpour_utils__", "attached_node": "model.livequery_models.blockpour_utils__"}], "test.livequery_models.test_blockpour_utils__post_status_200.8586093b49": [{"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v1/model/run', {\n 'slug': 'price.quote',\n 'version': '1.0',\n 'chainId': 1,\n 'blockNumber': 17767016,\n 'input': {}\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "post", "model": "{{ get_where_subquery(ref('blockpour_utils__')) }}"}, "namespace": null}, "database": "polygon", "schema": "test_blockpour_utils", "name": "test_blockpour_utils__post_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_blockpour_utils__post_status_200.sql", "original_file_path": "models/deploy/marketplace/blockpour/blockpour_utils__.yml", "unique_id": "test.livequery_models.test_blockpour_utils__post_status_200.8586093b49", "fqn": ["livequery_models", "deploy", "marketplace", "blockpour", "test_blockpour_utils__post_status_200"], "alias": "post_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "enabled": false}, "created_at": 1764018436.5456262, "config_call_dict": {}, "relation_name": "polygon.test_blockpour_utils.post_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "blockpour_utils__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.fsc_evm.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post", "file_key_name": "models.blockpour_utils__", "attached_node": "model.livequery_models.blockpour_utils__"}]}, "parent_map": {"model.polygon_models.silver__polymarket_filled_orders": ["model.fsc_evm.core__fact_event_logs", "source.polygon_models.external_polymarket.dim_markets"], "model.polygon_models.silver_olas__service_event_logs": ["model.fsc_evm.core__fact_event_logs", "model.polygon_models.silver_olas__create_service_multisigs"], "model.polygon_models.silver_olas__service_registrations": ["model.fsc_evm.core__fact_event_logs", "model.polygon_models.silver_olas__create_service_multisigs"], "model.polygon_models.silver_olas__create_service_multisigs": ["model.fsc_evm.core__fact_event_logs"], "model.polygon_models.silver_olas__registry_reads": ["model.polygon_models.silver_olas__service_registrations"], "model.polygon_models.silver_olas__registry_metadata": ["model.polygon_models.silver_olas__registry_reads"], "model.polygon_models.silver_olas__registry_metadata_complete": ["model.polygon_models.silver_olas__getservice_reads", "model.polygon_models.silver_olas__registry_metadata"], "model.polygon_models.silver_olas__getservice_reads": ["model.polygon_models.silver_olas__service_registrations"], "model.polygon_models.silver__seaport_1_6_sales": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_transactions"], "model.polygon_models.silver__aggregator_list": [], "model.polygon_models.silver__seaport_1_1_sales": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_transactions"], "model.polygon_models.silver__seaport_1_5_sales": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_transactions"], "model.polygon_models.silver__tofunft_sales": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__fact_traces", "model.fsc_evm.core__fact_transactions", "model.fsc_evm.nft__ez_nft_transfers"], "model.polygon_models.silver__complete_nft_sales": ["model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver__contracts", "model.polygon_models.silver__aggregator_list", "model.polygon_models.silver__element_sales", "model.polygon_models.silver__mooar_sales", "model.polygon_models.silver__seaport_1_1_sales", "model.polygon_models.silver__seaport_1_4_sales", "model.polygon_models.silver__seaport_1_5_sales", "model.polygon_models.silver__seaport_1_6_sales", "model.polygon_models.silver__tofunft_sales"], "model.polygon_models.silver__seaport_1_4_sales": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_transactions"], "model.polygon_models.silver__element_sales": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__ez_token_transfers", "model.fsc_evm.core__fact_traces", "model.fsc_evm.core__fact_transactions"], "model.polygon_models.silver__mooar_sales": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_transactions"], "model.polygon_models.nft__ez_nft_sales": ["model.polygon_models.silver__complete_nft_sales"], "seed.polygon_models.observability__exclusion_list": [], "operation.polygon_models.polygon_models-on-run-start-0": [], "operation.polygon_models.polygon_models-on-run-start-1": [], "operation.polygon_models.polygon_models-on-run-end-0": [], "model.livequery_models.live__allow_list": ["model.livequery_models.live"], "model.livequery_models._eth__decoded_logs": ["source.livequery_models.ethereum_core.ez_decoded_event_logs"], "model.livequery_models._eth__logs": ["source.livequery_models.ethereum_core.fact_event_logs"], "model.livequery_models._evm__abi_map": ["source.livequery_models.crosschain.dim_evm_event_abis"], "model.livequery_models._evm__contracts_map": ["source.livequery_models.crosschain.dim_contracts"], "model.livequery_models._evm__native_symbol_map": [], "model.livequery_models.gnosis__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.fantom__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.ethereum__mainnet": ["model.livequery_models._eth__decoded_logs", "model.livequery_models._eth__logs", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.bsc__testnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.avalanche_c__testnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.ethereum__sepolia": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.harmony__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.avalanche_c__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.optimism__goerli": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.harmony__testnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.optimism__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.base__goerli": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.polygon__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.polygon__testnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.arbitrum_nova__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.base__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.ethereum__goerli": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.polygon_zkevm__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.celo__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.bsc__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.arbitrum_one__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.arbitrum_one__goerli": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.polygon_zkevm__testnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.transpose__": ["model.livequery_models.live"], "model.livequery_models.credmark_utils__": ["model.livequery_models.live"], "model.livequery_models.opensea__": ["model.livequery_models.live"], "model.livequery_models.stakingrewards__": ["model.livequery_models.live"], "model.livequery_models.subquery__": ["model.livequery_models.live"], "model.livequery_models.topshot__": ["model.livequery_models.live"], "model.livequery_models.allday__": ["model.livequery_models.live"], "model.livequery_models.coingecko__": ["model.livequery_models.live"], "model.livequery_models.slack_utils__slack_utils": ["model.livequery_models.live"], "model.livequery_models.slack__": ["model.livequery_models.live", "model.livequery_models.slack_utils__slack_utils"], "model.livequery_models.dapplooker__": ["model.livequery_models.live"], "model.livequery_models.claude_utils__claude_utils": ["model.livequery_models.live"], "model.livequery_models.claude__": ["model.livequery_models.claude_utils__claude_utils", "model.livequery_models.live"], "model.livequery_models.strangelove__": ["model.livequery_models.live"], "model.livequery_models.fred__": ["model.livequery_models.live"], "model.livequery_models.espn__": ["model.livequery_models.live"], "model.livequery_models.solscan__": ["model.livequery_models.live"], "model.livequery_models.dappradar__": ["model.livequery_models.live"], "model.livequery_models.covalent__": ["model.livequery_models.live"], "model.livequery_models.deepnftvalue__": ["model.livequery_models.live"], "model.livequery_models.github_utils__github_utils": ["model.livequery_models.live"], "model.livequery_models.github_actions__github_utils": ["model.livequery_models.github_utils__github_utils", "model.livequery_models.live"], "model.livequery_models.nftscan__": ["model.livequery_models.live"], "model.livequery_models.chainbase_utils__": ["model.livequery_models.live"], "model.livequery_models.snapshot__": ["model.livequery_models.live"], "model.livequery_models.reservoir__": ["model.livequery_models.live"], "model.livequery_models.defillama__": ["model.livequery_models.live"], "model.livequery_models.bitquery__": ["model.livequery_models.live"], "model.livequery_models.helius_apis__helius_utils": ["model.livequery_models.helius_utils__helius_utils", "model.livequery_models.live"], "model.livequery_models.helius_utils__helius_utils": ["model.livequery_models.live"], "model.livequery_models.helius_das__helius_utils": ["model.livequery_models.helius_utils__helius_utils", "model.livequery_models.live"], "model.livequery_models.playgrounds__": ["model.livequery_models.live"], "model.livequery_models.zettablock__": ["model.livequery_models.live"], "model.livequery_models.quicknode_polygon_tokens__quicknode_utils": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"], "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"], "model.livequery_models.quicknode_utils__quicknode_utils": ["model.livequery_models.live"], "model.livequery_models.quicknode_solana_nfts__quicknode_utils": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"], "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"], "model.livequery_models.quicknode_polygon_nfts__quicknode_utils": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"], "model.livequery_models.footprint_utils__footprint_utils": ["model.livequery_models.live"], "model.livequery_models.cmc__": ["model.livequery_models.live"], "model.livequery_models.apilayer__": ["model.livequery_models.live"], "model.livequery_models.zapper__": ["model.livequery_models.live"], "model.livequery_models.alchemy_tokens__alchemy_utils": ["model.livequery_models.alchemy_utils__alchemy_utils", "model.livequery_models.live"], "model.livequery_models.alchemy_transfers__alchemy_utils": ["model.livequery_models.alchemy_utils__alchemy_utils", "model.livequery_models.live"], "model.livequery_models.alchemy_nfts__alchemy_utils": ["model.livequery_models.alchemy_utils__alchemy_utils", "model.livequery_models.live"], "model.livequery_models.alchemy_utils__alchemy_utils": ["model.livequery_models.live"], "model.livequery_models.blockpour_utils__": ["model.livequery_models.live"], "model.livequery_models.live": ["model.livequery_models._live", "model.livequery_models._utils", "model.livequery_models.utils"], "model.livequery_models._utils": [], "model.livequery_models.secrets": ["model.livequery_models._utils", "model.livequery_models.live"], "model.livequery_models._live": [], "model.livequery_models.utils": ["model.livequery_models._utils"], "analysis.livequery_models.test_create_or_drop_function_from_config": [], "analysis.livequery_models.test_functions": [], "analysis.livequery_models.generate_test_udf_skeleton": [], "analysis.livequery_models.test_crud_udfs_in_schema": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map"], "analysis.livequery_models.test_functions_py": [], "seed.livequery_models.live__verified_api_endpoints": [], "operation.livequery_models.livequery_models-on-run-start-0": [], "operation.livequery_models.livequery_models-on-run-end-0": [], "model.fsc_utils._datashare___create_udfs": [], "model.fsc_utils._datashare___create_gold": [], "model.fsc_evm.silver__user_verified_abis": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_traces", "model.fsc_evm.silver__proxies", "source.polygon_models.crosschain_public.user_abis"], "model.fsc_evm.silver__verified_abis": ["model.fsc_evm.bronze__contract_abis", "model.fsc_evm.bronze__contract_abis_fr", "model.fsc_evm.silver__user_verified_abis"], "model.fsc_evm.silver__complete_event_abis": ["model.fsc_evm.silver__flat_event_abis", "model.fsc_evm.silver__proxies"], "model.fsc_evm.silver__flat_event_abis": ["model.fsc_evm.silver__abis"], "model.fsc_evm.silver__bytecode_abis": ["model.fsc_evm.silver__created_contracts", "model.fsc_evm.silver__verified_abis"], "model.fsc_evm.silver__abis": ["model.fsc_evm.silver__bytecode_abis", "model.fsc_evm.silver__created_contracts", "model.fsc_evm.silver__verified_abis"], "model.fsc_evm.test_silver__verified_abis_recent": ["model.fsc_evm.silver__verified_abis"], "model.fsc_evm.test_silver__verified_abis_full": ["model.fsc_evm.silver__verified_abis"], "model.fsc_evm.test_silver__user_verified_abis_recent": ["model.fsc_evm.silver__user_verified_abis"], "model.fsc_evm.test_silver__user_verified_abis_full": ["model.fsc_evm.silver__user_verified_abis"], "model.fsc_evm.test_silver__bytecode_abis_recent": ["model.fsc_evm.silver__bytecode_abis"], "model.fsc_evm.test_silver__bytecode_abis_full": ["model.fsc_evm.silver__bytecode_abis"], "model.fsc_evm.test_silver__abis_recent": ["model.fsc_evm.silver__abis"], "model.fsc_evm.test_silver__abis_full": ["model.fsc_evm.silver__abis"], "model.fsc_evm.test_silver__complete_event_abis_full": ["model.fsc_evm.silver__complete_event_abis"], "model.fsc_evm.test_silver__complete_event_abis_recent": ["model.fsc_evm.silver__complete_event_abis"], "model.fsc_evm.streamline__contract_abis_realtime": ["model.fsc_evm.silver__relevant_contracts", "model.fsc_evm.streamline__complete_contract_abis"], "model.fsc_evm.streamline__complete_contract_abis": ["model.fsc_evm.bronze__contract_abis", "model.fsc_evm.bronze__contract_abis_fr"], "model.fsc_evm._retry_abis": ["model.fsc_evm.silver__proxies", "model.fsc_evm.silver__relevant_contracts", "source.polygon_models.abis_silver.verified_abis", "source.polygon_models.complete_streamline.complete_contract_abis"], "model.fsc_evm.core__dim_contract_abis": ["model.fsc_evm.silver__abis"], "model.fsc_evm.test_gold__dim_contract_abis_full": ["model.fsc_evm.core__dim_contract_abis"], "model.fsc_evm.test_gold__dim_contract_abis_recent": ["model.fsc_evm.core__dim_contract_abis"], "model.fsc_evm.bronze__contract_abis": ["source.polygon_models.bronze_streamline.contract_abis"], "model.fsc_evm.bronze__contract_abis_fr": ["model.fsc_evm.bronze__contract_abis_fr_v2", "model.fsc_evm.bronze_api__contract_abis"], "model.fsc_evm.bronze__contract_abis_fr_v2": ["source.polygon_models.bronze_streamline.contract_abis"], "model.fsc_evm.bronze_api__contract_abis": ["model.fsc_evm._retry_abis", "model.fsc_evm.silver__relevant_contracts"], "model.fsc_evm.silver__decoded_logs": ["model.fsc_evm.bronze__decoded_logs", "model.fsc_evm.bronze__decoded_logs_fr"], "model.fsc_evm.test_silver__decoded_logs_full": ["model.fsc_evm.silver__decoded_logs"], "model.fsc_evm.test_silver__decoded_logs_recent": ["model.fsc_evm._block_lookback", "model.fsc_evm.silver__decoded_logs"], "model.fsc_evm.streamline__decoded_logs_realtime": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.streamline__decoded_logs_complete", "source.polygon_models.abis_silver.complete_event_abis"], "model.fsc_evm.streamline__decoded_logs_complete": ["model.fsc_evm.bronze__decoded_logs", "model.fsc_evm.bronze__decoded_logs_fr"], "model.fsc_evm.core__ez_decoded_event_logs": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver__decoded_logs"], "model.fsc_evm.test_gold__ez_decoded_event_logs_recent": ["model.fsc_evm._block_lookback", "model.fsc_evm.core__ez_decoded_event_logs"], "model.fsc_evm.test_gold__ez_decoded_event_logs_full": ["model.fsc_evm.core__ez_decoded_event_logs"], "model.fsc_evm.bronze__decoded_logs": ["source.polygon_models.bronze_streamline.decoded_logs"], "model.fsc_evm.bronze__decoded_logs_fr": ["source.polygon_models.bronze_streamline.decoded_logs"], "model.fsc_evm.scores__known_event_names": ["source.fsc_evm.data_science_silver.evm_known_event_names"], "model.fsc_evm.scores__scoring_activity_categories": ["source.fsc_evm.data_science_silver.scoring_activity_categories"], "model.fsc_evm.scores__target_days": ["model.fsc_evm.core__fact_blocks", "model.fsc_evm.scores__dates"], "model.fsc_evm.scores__actions_daily": ["model.fsc_evm.scores__actions"], "model.fsc_evm.scores__dates": ["source.fsc_evm.data_science_silver.dates"], "model.fsc_evm.scores__actions_agg": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.core__dim_labels", "model.fsc_evm.scores__actions_daily", "model.fsc_evm.scores__target_days"], "model.fsc_evm.scores__actions": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.core__dim_labels", "model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_traces", "model.fsc_evm.core__fact_transactions", "model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.scores__event_sigs", "model.fsc_evm.scores__known_event_names", "model.fsc_evm.scores__known_event_sigs", "model.fsc_evm.scores__scoring_activity_categories", "model.fsc_evm.scores__target_days", "model.fsc_evm.scores__wrapped_assets"], "model.fsc_evm.scores__event_sigs": ["source.fsc_evm.data_science_silver.evm_event_sigs"], "model.fsc_evm.scores__wrapped_assets": ["source.fsc_evm.data_science_silver.evm_wrapped_assets"], "model.fsc_evm.scores__known_event_sigs": ["source.fsc_evm.data_science_silver.evm_known_event_sigs"], "model.fsc_evm.admin__number_sequence": [], "model.fsc_evm.admin__fact_rpc_details": ["source.polygon_models.fsc_evm_admin.rpc_node_logs"], "model.fsc_evm.admin__dim_variables": ["source.polygon_models.fsc_evm_admin._master_keys"], "model.fsc_evm.admin__fact_variables": [], "model.fsc_evm.admin__ez_variables": ["model.fsc_evm.admin__dim_variables", "model.fsc_evm.admin__fact_variables"], "model.fsc_evm.silver__labels": ["model.fsc_evm.bronze__labels"], "model.fsc_evm.core__dim_labels": ["model.fsc_evm.silver__labels"], "model.fsc_evm.bronze__labels": ["source.polygon_models.crosschain_silver.labels_combined"], "model.fsc_evm._max_block_by_hour": ["model.fsc_evm.core__fact_blocks"], "model.fsc_evm._24_hour_lookback": ["model.fsc_evm.core__fact_blocks"], "model.fsc_evm._block_lookback": ["model.fsc_evm.core__fact_blocks"], "model.fsc_evm._max_block_by_date": ["model.fsc_evm.core__fact_blocks"], "model.fsc_evm._block_ranges": ["model.fsc_evm.core__fact_blocks"], "model.fsc_evm.github_actions__task_current": [], "model.fsc_evm.github_actions__relevant_workflows": ["source.polygon_models.github_actions.workflows"], "model.fsc_evm.github_actions__task_history": ["source.fsc_evm.snowflake_account_usage.complete_task_graphs"], "model.fsc_evm.github_actions__workflow_status": [], "model.fsc_evm.github_actions__workflow_schedule": ["model.fsc_evm.github_actions__relevant_workflows"], "model.fsc_evm.silver__traces": ["model.fsc_evm.bronze__traces", "model.fsc_evm.bronze__traces_fr"], "model.fsc_evm.silver__confirm_blocks": ["model.fsc_evm.bronze__confirm_blocks", "model.fsc_evm.bronze__confirm_blocks_fr"], "model.fsc_evm.silver__receipts": ["model.fsc_evm.bronze__receipts", "model.fsc_evm.bronze__receipts_fr"], "model.fsc_evm.silver__proxies": ["model.fsc_evm.core__fact_traces", "model.fsc_evm.silver__created_contracts"], "model.fsc_evm.silver__relevant_contracts": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_traces"], "model.fsc_evm.silver__created_contracts": ["model.fsc_evm.core__fact_traces"], "model.fsc_evm.silver__transactions": ["model.fsc_evm.bronze__transactions", "model.fsc_evm.bronze__transactions_fr"], "model.fsc_evm.silver__contracts": ["model.fsc_evm.bronze__token_reads", "model.fsc_evm.bronze__token_reads_fr"], "model.fsc_evm.silver__blocks": ["model.fsc_evm.bronze__blocks", "model.fsc_evm.bronze__blocks_fr"], "model.fsc_evm.test_silver__traces_recent": ["model.fsc_evm._block_lookback", "model.fsc_evm.silver__traces"], "model.fsc_evm.test_silver__traces_full": ["model.fsc_evm.silver__traces"], "model.fsc_evm.test_silver__confirm_blocks_recent": ["model.fsc_evm._block_lookback", "model.fsc_evm.silver__confirm_blocks"], "model.fsc_evm.test_silver__confirm_blocks_full": ["model.fsc_evm.silver__confirm_blocks"], "model.fsc_evm.test_silver__blocks_full": ["model.fsc_evm.silver__blocks"], "model.fsc_evm.test_silver__blocks_recent": ["model.fsc_evm._block_lookback", "model.fsc_evm.silver__blocks"], "model.fsc_evm.test_silver__contracts_recent": ["model.fsc_evm.silver__contracts"], "model.fsc_evm.test_silver__contracts_full": ["model.fsc_evm.silver__contracts"], "model.fsc_evm.test_silver__created_contracts_full": ["model.fsc_evm.silver__created_contracts"], "model.fsc_evm.test_silver__created_contracts_recent": ["model.fsc_evm.silver__created_contracts"], "model.fsc_evm.test_silver__receipts_full": ["model.fsc_evm.silver__receipts"], "model.fsc_evm.test_silver__receipts_recent": ["model.fsc_evm._block_lookback", "model.fsc_evm.silver__receipts"], "model.fsc_evm.test_silver__transactions_full": ["model.fsc_evm.silver__transactions"], "model.fsc_evm.test_silver__transactions_recent": ["model.fsc_evm._block_lookback", "model.fsc_evm.silver__transactions"], "model.fsc_evm.test_silver__proxies_recent": ["model.fsc_evm.silver__proxies"], "model.fsc_evm.test_silver__proxies_full": ["model.fsc_evm.silver__proxies"], "model.fsc_evm.streamline__get_chainhead": [], "model.fsc_evm.streamline__blocks": ["model.fsc_evm.admin__number_sequence", "model.fsc_evm.streamline__get_chainhead"], "model.fsc_evm.streamline__receipts_by_hash_realtime": ["model.fsc_evm._block_lookback", "model.fsc_evm._missing_receipts", "model.fsc_evm.streamline__blocks", "model.fsc_evm.streamline__receipts_by_hash_complete", "model.fsc_evm.test_gold__fact_transactions_recent"], "model.fsc_evm.streamline__traces_realtime": ["model.fsc_evm._block_lookback", "model.fsc_evm._missing_traces", "model.fsc_evm._unconfirmed_blocks", "model.fsc_evm.streamline__blocks", "model.fsc_evm.streamline__traces_complete"], "model.fsc_evm.streamline__receipts_realtime": ["model.fsc_evm._block_lookback", "model.fsc_evm._missing_receipts", "model.fsc_evm._missing_txs", "model.fsc_evm._unconfirmed_blocks", "model.fsc_evm.streamline__blocks", "model.fsc_evm.streamline__receipts_complete"], "model.fsc_evm.streamline__confirm_blocks_realtime": ["model.fsc_evm._block_lookback", "model.fsc_evm._max_block_by_hour", "model.fsc_evm._unconfirmed_blocks", "model.fsc_evm.streamline__blocks", "model.fsc_evm.streamline__confirm_blocks_complete"], "model.fsc_evm.streamline__blocks_transactions_realtime": ["model.fsc_evm._block_lookback", "model.fsc_evm._missing_txs", "model.fsc_evm._unconfirmed_blocks", "model.fsc_evm.streamline__blocks", "model.fsc_evm.streamline__blocks_complete", "model.fsc_evm.streamline__transactions_complete"], "model.fsc_evm.streamline__transactions_complete": ["model.fsc_evm.bronze__transactions", "model.fsc_evm.bronze__transactions_fr"], "model.fsc_evm.streamline__traces_complete": ["model.fsc_evm.bronze__traces", "model.fsc_evm.bronze__traces_fr"], "model.fsc_evm.streamline__confirm_blocks_complete": ["model.fsc_evm.bronze__confirm_blocks", "model.fsc_evm.bronze__confirm_blocks_fr"], "model.fsc_evm.streamline__blocks_complete": ["model.fsc_evm.bronze__blocks", "model.fsc_evm.bronze__blocks_fr"], "model.fsc_evm.streamline__receipts_complete": ["model.fsc_evm.bronze__receipts", "model.fsc_evm.bronze__receipts_fr"], "model.fsc_evm.streamline__receipts_by_hash_complete": ["model.fsc_evm.bronze__receipts_by_hash", "model.fsc_evm.bronze__receipts_by_hash_fr"], "model.fsc_evm._unconfirmed_blocks": ["model.fsc_evm.test_gold__fact_transactions_recent", "model.fsc_evm.test_silver__confirm_blocks_recent"], "model.fsc_evm._missing_traces": ["model.fsc_evm.test_gold__fact_traces_recent", "model.fsc_evm.test_gold__fact_transactions_recent"], "model.fsc_evm._missing_receipts": ["model.fsc_evm.test_gold__fact_transactions_recent"], "model.fsc_evm._missing_txs": ["model.fsc_evm.test_gold__fact_transactions_recent"], "model.fsc_evm.streamline__blocks_transactions_history": ["model.fsc_evm._block_lookback", "model.fsc_evm.streamline__blocks", "model.fsc_evm.streamline__blocks_complete", "model.fsc_evm.streamline__transactions_complete"], "model.fsc_evm.streamline__receipts_by_hash_history": ["model.fsc_evm._block_lookback", "model.fsc_evm.core__fact_transactions", "model.fsc_evm.streamline__receipts_by_hash_complete"], "model.fsc_evm.streamline__traces_history": ["model.fsc_evm._block_lookback", "model.fsc_evm.streamline__blocks", "model.fsc_evm.streamline__traces_complete"], "model.fsc_evm.streamline__confirm_blocks_history": ["model.fsc_evm._block_lookback", "model.fsc_evm._max_block_by_hour", "model.fsc_evm.streamline__blocks", "model.fsc_evm.streamline__confirm_blocks_complete"], "model.fsc_evm.streamline__receipts_history": ["model.fsc_evm._block_lookback", "model.fsc_evm.streamline__blocks", "model.fsc_evm.streamline__receipts_complete"], "model.fsc_evm.core__fact_blocks": ["model.fsc_evm.admin__fact_rpc_details", "model.fsc_evm.silver__blocks", "model.fsc_evm.silver__transactions"], "model.fsc_evm.core__ez_token_transfers": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.price__ez_prices_hourly"], "model.fsc_evm.core__ez_native_transfers": ["model.fsc_evm.core__fact_traces", "model.fsc_evm.price__ez_prices_hourly"], "model.fsc_evm.core__dim_contracts": ["model.fsc_evm.silver__contracts", "model.fsc_evm.silver__created_contracts", "model.fsc_evm.silver__relevant_contracts"], "model.fsc_evm.core__fact_event_logs": ["model.fsc_evm.core__fact_transactions", "model.fsc_evm.silver__receipts"], "model.fsc_evm.core__fact_transactions": ["model.fsc_evm.admin__fact_rpc_details", "model.fsc_evm.core__fact_blocks", "model.fsc_evm.silver__receipts", "model.fsc_evm.silver__transactions"], "model.fsc_evm.core__fact_traces": ["model.fsc_evm.core__fact_transactions", "model.fsc_evm.silver__traces"], "model.fsc_evm.test_gold__fact_traces_recent": ["model.fsc_evm._block_lookback", "model.fsc_evm.core__fact_traces"], "model.fsc_evm.test_gold__fact_traces_full": ["model.fsc_evm.core__fact_traces"], "model.fsc_evm.test_gold__ez_token_transfers_recent": ["model.fsc_evm._block_lookback", "model.fsc_evm.core__ez_token_transfers"], "model.fsc_evm.test_gold__ez_token_transfers_full": ["model.fsc_evm.core__ez_token_transfers"], "model.fsc_evm.test_gold__fact_event_logs_full": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.test_gold__fact_event_logs_recent": ["model.fsc_evm._block_lookback", "model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.test_gold__fact_blocks_full": ["model.fsc_evm.core__fact_blocks"], "model.fsc_evm.test_gold__fact_blocks_recent": ["model.fsc_evm._block_lookback", "model.fsc_evm.core__fact_blocks"], "model.fsc_evm.test_gold__ez_native_transfers_full": ["model.fsc_evm.core__ez_native_transfers"], "model.fsc_evm.test_gold__ez_native_transfers_recent": ["model.fsc_evm._block_lookback", "model.fsc_evm.core__ez_native_transfers"], "model.fsc_evm.test_gold__fact_transactions_recent": ["model.fsc_evm._block_lookback", "model.fsc_evm.core__fact_transactions"], "model.fsc_evm.test_gold__fact_transactions_full": ["model.fsc_evm.core__fact_transactions"], "model.fsc_evm.bronze__traces_fr": ["source.polygon_models.bronze_streamline.traces"], "model.fsc_evm.bronze__blocks": ["source.polygon_models.bronze_streamline.blocks"], "model.fsc_evm.bronze__confirm_blocks_fr": ["source.polygon_models.bronze_streamline.confirm_blocks"], "model.fsc_evm.bronze__receipts_by_hash": ["source.fsc_evm.bronze_streamline.receipts_by_hash"], "model.fsc_evm.bronze__receipts": ["source.polygon_models.bronze_streamline.receipts"], "model.fsc_evm.bronze__traces": ["source.polygon_models.bronze_streamline.traces"], "model.fsc_evm.bronze__receipts_by_hash_fr": ["source.fsc_evm.bronze_streamline.receipts_by_hash"], "model.fsc_evm.bronze__transactions": ["source.polygon_models.bronze_streamline.transactions"], "model.fsc_evm.bronze__receipts_fr": ["source.polygon_models.bronze_streamline.receipts"], "model.fsc_evm.bronze__transactions_fr": ["source.polygon_models.bronze_streamline.transactions"], "model.fsc_evm.bronze__confirm_blocks": ["source.polygon_models.bronze_streamline.confirm_blocks"], "model.fsc_evm.bronze__blocks_fr": ["source.polygon_models.bronze_streamline.blocks"], "model.fsc_evm.nft__ez_nft_transfers": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.test_nft__ez_nft_transfers_full": ["model.fsc_evm.nft__ez_nft_transfers"], "model.fsc_evm.test_nft__ez_nft_transfers_recent": ["model.fsc_evm._block_lookback", "model.fsc_evm.nft__ez_nft_transfers"], "model.fsc_evm.observability__receipts": ["model.fsc_evm.core__fact_blocks", "model.fsc_evm.core__fact_transactions", "model.fsc_evm.silver__receipts"], "model.fsc_evm.observability__traces": ["model.fsc_evm.core__fact_blocks", "model.fsc_evm.core__fact_traces", "model.fsc_evm.core__fact_transactions"], "model.fsc_evm.observability__blocks": ["model.fsc_evm.admin__number_sequence", "model.fsc_evm.core__fact_blocks"], "model.fsc_evm.observability__transactions": ["model.fsc_evm.core__fact_blocks", "model.fsc_evm.core__fact_transactions", "model.fsc_evm.silver__confirm_blocks"], "model.fsc_evm.observability__logs": ["model.fsc_evm.core__fact_blocks", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver__receipts"], "model.fsc_evm.streamline__token_reads_realtime": ["model.fsc_evm.core__fact_blocks", "model.fsc_evm.silver__relevant_contracts", "model.fsc_evm.streamline__token_reads_complete"], "model.fsc_evm.streamline__token_reads_complete": ["model.fsc_evm.bronze__token_reads", "model.fsc_evm.bronze__token_reads_fr"], "model.fsc_evm.bronze__token_reads_fr": ["model.fsc_evm.bronze__token_reads_fr_v2", "model.fsc_evm.bronze_api__token_reads"], "model.fsc_evm.bronze__token_reads_fr_v2": ["source.polygon_models.bronze_streamline.token_reads"], "model.fsc_evm.bronze__token_reads": ["source.polygon_models.bronze_streamline.token_reads"], "model.fsc_evm.bronze_api__token_reads": ["model.fsc_evm.silver__relevant_contracts"], "model.fsc_evm.silver__complete_provider_asset_metadata": ["model.fsc_evm.bronze__complete_provider_asset_metadata"], "model.fsc_evm.silver__complete_native_asset_metadata": ["model.fsc_evm.bronze__complete_native_asset_metadata"], "model.fsc_evm.silver__complete_provider_prices": ["model.fsc_evm.bronze__complete_provider_asset_metadata", "model.fsc_evm.bronze__complete_provider_prices"], "model.fsc_evm.silver__complete_native_prices": ["model.fsc_evm.bronze__complete_native_prices"], "model.fsc_evm.silver__complete_token_prices": ["model.fsc_evm.bronze__complete_token_prices"], "model.fsc_evm.silver__complete_token_asset_metadata": ["model.fsc_evm.bronze__complete_token_asset_metadata"], "model.fsc_evm.price__dim_asset_metadata": ["model.fsc_evm.silver__complete_provider_asset_metadata"], "model.fsc_evm.price__fact_prices_ohlc_hourly": ["model.fsc_evm.silver__complete_provider_prices"], "model.fsc_evm.price__ez_asset_metadata": ["model.fsc_evm.silver__complete_native_asset_metadata", "model.fsc_evm.silver__complete_token_asset_metadata"], "model.fsc_evm.price__ez_prices_hourly": ["model.fsc_evm.silver__complete_native_prices", "model.fsc_evm.silver__complete_token_prices"], "model.fsc_evm.bronze__complete_provider_asset_metadata": ["source.polygon_models.crosschain_silver.complete_provider_asset_metadata"], "model.fsc_evm.bronze__complete_native_asset_metadata": ["source.polygon_models.crosschain_silver.complete_native_asset_metadata"], "model.fsc_evm.bronze__complete_token_prices": ["source.polygon_models.crosschain_silver.complete_token_prices"], "model.fsc_evm.bronze__complete_token_asset_metadata": ["source.polygon_models.crosschain_silver.complete_token_asset_metadata"], "model.fsc_evm.bronze__complete_native_prices": ["source.polygon_models.crosschain_silver.complete_native_prices"], "model.fsc_evm.bronze__complete_provider_prices": ["source.polygon_models.crosschain_silver.complete_provider_prices"], "model.fsc_evm.silver_bridge__complete_bridge_activity": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver_bridge__across_fundsdeposited", "model.fsc_evm.silver_bridge__across_v3fundsdeposited", "model.fsc_evm.silver_bridge__allbridge_sent", "model.fsc_evm.silver_bridge__allbridge_tokens_sent", "model.fsc_evm.silver_bridge__avalanche_native_v2", "model.fsc_evm.silver_bridge__axelar_contractcallwithtoken", "model.fsc_evm.silver_bridge__axie_infinity_depositrequested", "model.fsc_evm.silver_bridge__ccip_send_requested", "model.fsc_evm.silver_bridge__cctp_depositforburn", "model.fsc_evm.silver_bridge__cctp_v2_depositforburn", "model.fsc_evm.silver_bridge__celer_cbridge_send", "model.fsc_evm.silver_bridge__core_bridge_unwraptoken", "model.fsc_evm.silver_bridge__dln_debridge_createdorder", "model.fsc_evm.silver_bridge__ethereum_native_bridges_transfers_out", "model.fsc_evm.silver_bridge__everclear", "model.fsc_evm.silver_bridge__eywa_requestsent", "model.fsc_evm.silver_bridge__gaszip_lz_sentdeposits", "model.fsc_evm.silver_bridge__hop_transfersent", "model.fsc_evm.silver_bridge__hop_transfersenttol2", "model.fsc_evm.silver_bridge__hyperliquid", "model.fsc_evm.silver_bridge__layerzero_v2", "model.fsc_evm.silver_bridge__meson_transfers", "model.fsc_evm.silver_bridge__multichain_v7_loganyswapout", "model.fsc_evm.silver_bridge__polygon_pos_bridge", "model.fsc_evm.silver_bridge__stargate_swap", "model.fsc_evm.silver_bridge__stargate_v2", "model.fsc_evm.silver_bridge__superchain_l2_standard_bridge", "model.fsc_evm.silver_bridge__symbiosis_synthesizerequest", "model.fsc_evm.silver_bridge__synapse_token_bridge", "model.fsc_evm.silver_bridge__synapse_tokenbridgeandswap", "model.fsc_evm.silver_bridge__wormhole_transfers", "source.polygon_models.external_gold_defillama.dim_chains"], "model.fsc_evm.silver_bridge__across_v3fundsdeposited": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_bridge__across_fundsdeposited": ["model.fsc_evm.core__ez_decoded_event_logs"], "model.fsc_evm.silver_bridge__synapse_tokenbridgeandswap": ["model.fsc_evm.core__ez_decoded_event_logs"], "model.fsc_evm.silver_bridge__synapse_token_bridge": ["model.fsc_evm.core__ez_decoded_event_logs"], "model.fsc_evm.silver_bridge__meson_transfers": ["model.fsc_evm.core__ez_native_transfers", "model.fsc_evm.core__ez_token_transfers", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_transactions", "seed.fsc_evm.silver_bridge__meson_chain_id_seed"], "model.fsc_evm.silver_bridge__everclear": ["model.fsc_evm.silver_bridge__everclear_intent_added", "model.fsc_evm.silver_bridge__everclear_reads", "seed.fsc_evm.silver_bridge__everclear_chain_seed"], "model.fsc_evm.silver_bridge__everclear_reads": ["model.fsc_evm.silver_bridge__everclear_intent_added", "seed.fsc_evm.silver_bridge__everclear_chain_seed"], "model.fsc_evm.silver_bridge__everclear_intent_added": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_traces"], "model.fsc_evm.silver_bridge__hop_transfersent": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.silver_bridge__hop_l2canonicaltoken"], "model.fsc_evm.silver_bridge__hop_l2canonicaltoken": ["model.fsc_evm.silver_bridge__hop_ammwrapper"], "model.fsc_evm.silver_bridge__hop_ammwrapper": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_bridge__hop_transfersenttol2": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.silver_bridge__hop_l1canonicaltoken"], "model.fsc_evm.silver_bridge__hop_l1canonicaltoken": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_bridge__gaszip_lz_sentdeposits": ["model.fsc_evm.core__ez_native_transfers", "model.fsc_evm.core__fact_event_logs", "seed.fsc_evm.silver_bridge__layerzero_v2_bridge_seed"], "model.fsc_evm.silver_bridge__hyperliquid": ["model.fsc_evm.core__ez_token_transfers"], "model.fsc_evm.silver_bridge__symbiosis_synthesizerequest": ["model.fsc_evm.core__ez_decoded_event_logs"], "model.fsc_evm.silver_bridge__multichain_v7_loganyswapout": ["model.fsc_evm.core__ez_decoded_event_logs"], "model.fsc_evm.silver_bridge__stargate_createpool": ["model.fsc_evm.core__fact_traces"], "model.fsc_evm.silver_bridge__stargate_v2_busrode": ["model.fsc_evm.core__fact_event_logs", "seed.fsc_evm.silver_bridge__stargate_v2_asset_seed"], "model.fsc_evm.silver_bridge__stargate_v2_busdriven": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.silver_bridge__layerzero_v2_packet", "model.fsc_evm.silver_bridge__stargate_v2_busrode"], "model.fsc_evm.silver_bridge__stargate_swap": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.silver_bridge__stargate_createpool", "seed.fsc_evm.silver_bridge__stargate_chain_id_seed"], "model.fsc_evm.silver_bridge__stargate_v2_oft": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_bridge__layerzero_v2_packet", "seed.fsc_evm.silver_bridge__stargate_v2_asset_seed"], "model.fsc_evm.silver_bridge__stargate_v2": ["model.fsc_evm.silver_bridge__stargate_v2_busdriven", "model.fsc_evm.silver_bridge__stargate_v2_oft"], "model.fsc_evm.silver_bridge__dln_debridge_createdorder": ["model.fsc_evm.core__ez_decoded_event_logs"], "model.fsc_evm.silver_bridge__ccip_send_requested": ["model.fsc_evm.core__fact_traces", "model.fsc_evm.silver_bridge__ccip_on_ramp_address"], "model.fsc_evm.silver_bridge__ccip_on_ramp_address": ["model.fsc_evm.core__ez_decoded_event_logs", "seed.fsc_evm.silver_bridge__ccip_chain_seed"], "model.fsc_evm.silver_bridge__allbridge_sent": ["model.fsc_evm.core__ez_decoded_event_logs"], "model.fsc_evm.silver_bridge__allbridge_tokens_sent": ["model.fsc_evm.core__fact_event_logs", "seed.fsc_evm.silver_bridge__allbridge_chain_id_seed"], "model.fsc_evm.silver_bridge__eywa_requestsent": ["model.fsc_evm.core__ez_decoded_event_logs"], "model.fsc_evm.silver_bridge__axelar_contractcallwithtoken": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__ez_token_transfers"], "model.fsc_evm.silver_bridge__layerzero_v2_token_reads": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_bridge__layerzero_v2": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_bridge__layerzero_v2_packet", "model.fsc_evm.silver_bridge__layerzero_v2_token_reads"], "model.fsc_evm.silver_bridge__layerzero_v2_packet": ["model.fsc_evm.core__ez_decoded_event_logs", "seed.fsc_evm.silver_bridge__layerzero_v2_bridge_seed"], "model.fsc_evm.silver_bridge__axie_infinity_depositrequested": ["model.fsc_evm.core__ez_decoded_event_logs"], "model.fsc_evm.silver_bridge__polygon_pos_bridge": ["model.fsc_evm.core__fact_traces", "model.fsc_evm.silver_bridge__polygon_pos_contracts"], "model.fsc_evm.silver_bridge__polygon_pos_contracts": ["model.fsc_evm.core__dim_contracts"], "model.fsc_evm.silver_bridge__avalanche_native_v2": ["model.fsc_evm.core__ez_token_transfers", "model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_bridge__superchain_l2_standard_bridge": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_bridge__ethereum_native_bridges_transfers_out": ["model.fsc_evm.core__ez_native_transfers", "model.fsc_evm.core__ez_token_transfers", "model.fsc_evm.core__fact_transactions", "seed.fsc_evm.silver_bridge__ethereum_native_bridges_seed"], "model.fsc_evm.silver_bridge__core_bridge_unwraptoken": ["model.fsc_evm.core__fact_event_logs", "seed.fsc_evm.silver_bridge__stargate_chain_id_seed"], "model.fsc_evm.silver_bridge__celer_cbridge_send": ["model.fsc_evm.core__ez_decoded_event_logs"], "model.fsc_evm.silver_bridge__wormhole_transfers": ["model.fsc_evm.core__ez_native_transfers", "model.fsc_evm.core__ez_token_transfers", "model.fsc_evm.core__fact_transactions", "seed.fsc_evm.silver_bridge__wormhole_chain_id_seed", "source.polygon_models.crosschain_silver.near_address_encoded"], "model.fsc_evm.silver_bridge__cctp_v2_depositforburn": ["model.fsc_evm.core__ez_decoded_event_logs", "seed.fsc_evm.silver_bridge__cctp_chain_id_seed"], "model.fsc_evm.silver_bridge__cctp_depositforburn": ["model.fsc_evm.core__fact_event_logs", "seed.fsc_evm.silver_bridge__cctp_chain_id_seed"], "model.fsc_evm.defi__ez_bridge_activity": ["model.fsc_evm.silver_bridge__complete_bridge_activity", "seed.fsc_evm.silver_bridge__standard_chain_seed"], "model.fsc_evm.silver__stablecoin_reads": ["model.fsc_evm.bronze__stablecoin_reads", "model.fsc_evm.bronze__stablecoin_reads_fr", "model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_asset_metadata"], "model.fsc_evm.streamline__stablecoin_reads_realtime": ["model.fsc_evm._max_block_by_date", "model.fsc_evm.defi__dim_stablecoins", "model.fsc_evm.streamline__stablecoin_reads_complete"], "model.fsc_evm.streamline__stablecoin_reads_complete": ["model.fsc_evm.bronze__stablecoin_reads", "model.fsc_evm.bronze__stablecoin_reads_fr"], "model.fsc_evm.streamline__stablecoin_reads_history": ["model.fsc_evm._max_block_by_date", "model.fsc_evm.defi__dim_stablecoins", "model.fsc_evm.streamline__stablecoin_reads_complete"], "model.fsc_evm.bronze__stablecoin_reads": ["source.polygon_models.bronze_streamline.stablecoin_reads"], "model.fsc_evm.bronze__stablecoin_reads_fr": ["source.polygon_models.bronze_streamline.stablecoin_reads"], "model.fsc_evm.silver_stablecoins__mint_burn": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.defi__dim_stablecoins", "model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.silver_stablecoins__supply_by_address"], "model.fsc_evm.silver_stablecoins__supply_complete": ["model.fsc_evm.defi__dim_stablecoins", "model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.silver__stablecoin_reads", "model.fsc_evm.silver_stablecoins__address_blacklist", "model.fsc_evm.silver_stablecoins__mint_burn", "model.fsc_evm.silver_stablecoins__supply_by_address_imputed", "model.fsc_evm.silver_stablecoins__supply_contracts", "model.fsc_evm.silver_stablecoins__transfers"], "model.fsc_evm.silver_stablecoins__transfers": ["model.fsc_evm.core__ez_token_transfers", "model.fsc_evm.defi__dim_stablecoins", "model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.silver_stablecoins__supply_by_address"], "model.fsc_evm.silver_stablecoins__supply_contracts": ["model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.silver_stablecoins__supply_by_address_imputed", "model.fsc_evm.silver_stablecoins__supply_contracts_list"], "model.fsc_evm.silver_stablecoins__address_blacklist": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.defi__dim_stablecoins", "model.fsc_evm.price__ez_asset_metadata"], "model.fsc_evm.silver_stablecoins__supply_contracts_list": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.core__dim_labels", "model.fsc_evm.defi__dim_dex_liquidity_pools", "model.fsc_evm.defi__ez_bridge_activity", "model.fsc_evm.defi__ez_lending_deposits", "model.fsc_evm.price__ez_asset_metadata", "seed.fsc_evm.silver_stablecoins__bridge_vault_seed"], "model.fsc_evm.silver_stablecoins__supply_by_address_imputed": ["model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.silver_stablecoins__supply_by_address", "source.polygon_models.crosschain_gold.dim_dates"], "model.fsc_evm.silver_stablecoins__supply_by_address": ["model.fsc_evm.balances__ez_balances_erc20_daily", "model.fsc_evm.defi__dim_stablecoins", "model.fsc_evm.price__ez_asset_metadata"], "model.fsc_evm.defi__ez_stablecoins_supply": ["model.fsc_evm.silver_stablecoins__supply_complete"], "model.fsc_evm.defi__dim_stablecoins": ["model.fsc_evm.price__ez_asset_metadata", "seed.fsc_evm.silver_stablecoins__stablecoins_mapping_seed", "source.polygon_models.crosschain_silver.tokens_stablecoins"], "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver_dex__aerodrome_pool_actions", "model.fsc_evm.silver_dex__balancer_pool_actions", "model.fsc_evm.silver_dex__camelot_v2_pool_actions", "model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__curve_pool_actions", "model.fsc_evm.silver_dex__dackie_pool_actions", "model.fsc_evm.silver_dex__dodo_v1_pool_actions", "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pool_actions", "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pool_actions", "model.fsc_evm.silver_dex__paircreated_evt_v2_pool_actions", "model.fsc_evm.silver_dex__pancakeswap_v3_pool_actions", "model.fsc_evm.silver_dex__pharaoh_v1_pool_actions", "model.fsc_evm.silver_dex__poolcreated_evt_v3_pool_actions", "model.fsc_evm.silver_dex__quickswap_v2_pool_actions", "model.fsc_evm.silver_dex__quickswap_v4_pool_actions", "model.fsc_evm.silver_dex__superchain_slipstream_pool_actions", "model.fsc_evm.silver_dex__sushiswap_pool_actions", "model.fsc_evm.silver_dex__trader_joe_v2_pool_actions", "model.fsc_evm.silver_dex__velodrome_v1_pool_actions", "model.fsc_evm.silver_dex__velodrome_v2_pool_actions", "model.fsc_evm.silver_dex__zyberswap_v2_pool_actions"], "model.fsc_evm.silver_dex__complete_dex_swaps": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver_dex__aerodrome_swaps", "model.fsc_evm.silver_dex__balancer_swaps", "model.fsc_evm.silver_dex__bitflux_swaps", "model.fsc_evm.silver_dex__camelot_v2_swaps", "model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__curve_swaps", "model.fsc_evm.silver_dex__dackie_swaps", "model.fsc_evm.silver_dex__dexalot_swaps", "model.fsc_evm.silver_dex__dodo_v1_swaps", "model.fsc_evm.silver_dex__dodo_v2_swaps", "model.fsc_evm.silver_dex__glyph_v4_swaps", "model.fsc_evm.silver_dex__gmx_swaps", "model.fsc_evm.silver_dex__gmx_v2_swaps", "model.fsc_evm.silver_dex__hashflow_swaps", "model.fsc_evm.silver_dex__hashflow_v3_swaps", "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_swaps", "model.fsc_evm.silver_dex__kyberswap_v1_static_swaps", "model.fsc_evm.silver_dex__kyberswap_v2_elastic_swaps", "model.fsc_evm.silver_dex__levelfi_swaps", "model.fsc_evm.silver_dex__maverick_swaps", "model.fsc_evm.silver_dex__maverick_v2_swaps", "model.fsc_evm.silver_dex__pancakeswap_v2_mm_swaps", "model.fsc_evm.silver_dex__pancakeswap_v2_ss_swaps", "model.fsc_evm.silver_dex__pancakeswap_v3_swaps", "model.fsc_evm.silver_dex__pharaoh_v1_swaps", "model.fsc_evm.silver_dex__platypus_swaps", "model.fsc_evm.silver_dex__quickswap_v2_swaps", "model.fsc_evm.silver_dex__quickswap_v4_swaps", "model.fsc_evm.silver_dex__superchain_slipstream_swaps", "model.fsc_evm.silver_dex__sushiswap_swaps", "model.fsc_evm.silver_dex__swap_evt_v2_swaps", "model.fsc_evm.silver_dex__swap_evt_v3_swaps", "model.fsc_evm.silver_dex__synthetix_swaps", "model.fsc_evm.silver_dex__trader_joe_v2_1_swaps", "model.fsc_evm.silver_dex__trader_joe_v2_swaps", "model.fsc_evm.silver_dex__uniswap_v4_swaps", "model.fsc_evm.silver_dex__velodrome_v1_swaps", "model.fsc_evm.silver_dex__velodrome_v2_swaps", "model.fsc_evm.silver_dex__voodoo_swaps", "model.fsc_evm.silver_dex__woofi_swaps", "model.fsc_evm.silver_dex__zyberswap_v2_swaps"], "model.fsc_evm.silver_dex__complete_dex_liquidity_pools": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.silver_dex__aerodrome_pools", "model.fsc_evm.silver_dex__balancer_pools", "model.fsc_evm.silver_dex__bitflux_pools", "model.fsc_evm.silver_dex__camelot_v2_pools", "model.fsc_evm.silver_dex__curve_pools", "model.fsc_evm.silver_dex__dackie_pools", "model.fsc_evm.silver_dex__dodo_v1_pools", "model.fsc_evm.silver_dex__dodo_v2_pools", "model.fsc_evm.silver_dex__glyph_v4_pools", "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pools", "model.fsc_evm.silver_dex__kyberswap_v1_static_pools", "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pools", "model.fsc_evm.silver_dex__maverick_pools", "model.fsc_evm.silver_dex__maverick_v2_pools", "model.fsc_evm.silver_dex__paircreated_evt_v2_pools", "model.fsc_evm.silver_dex__pancakeswap_v2_ss_pools", "model.fsc_evm.silver_dex__pancakeswap_v3_pools", "model.fsc_evm.silver_dex__pharaoh_v1_pools", "model.fsc_evm.silver_dex__poolcreated_evt_v3_pools", "model.fsc_evm.silver_dex__quickswap_v2_pools", "model.fsc_evm.silver_dex__quickswap_v4_pools", "model.fsc_evm.silver_dex__superchain_slipstream_pools", "model.fsc_evm.silver_dex__sushiswap_pools", "model.fsc_evm.silver_dex__trader_joe_v2_pools", "model.fsc_evm.silver_dex__uniswap_v4_pools", "model.fsc_evm.silver_dex__velodrome_v1_pools", "model.fsc_evm.silver_dex__velodrome_v2_pools", "model.fsc_evm.silver_dex__zyberswap_v2_pools"], "model.fsc_evm.silver_dex__balancer_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__balancer_pools"], "model.fsc_evm.silver_dex__balancer_pool_actions": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.silver_dex__balancer_pools"], "model.fsc_evm.silver_dex__balancer_pools": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__hashflow_v3_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__hashflow_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__hashflow_pools"], "model.fsc_evm.silver_dex__hashflow_v3_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__hashflow_v3_pools"], "model.fsc_evm.silver_dex__hashflow_pools": ["model.fsc_evm.core__fact_traces"], "model.fsc_evm.silver_dex__trader_joe_v2_1_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__trader_joe_v2_pools"], "model.fsc_evm.silver_dex__trader_joe_v2_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__trader_joe_v2_pool_actions": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.silver_dex__trader_joe_v2_pools"], "model.fsc_evm.silver_dex__trader_joe_v2_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__trader_joe_v2_pools"], "model.fsc_evm.silver_dex__superchain_slipstream_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__superchain_slipstream_pools"], "model.fsc_evm.silver_dex__superchain_slipstream_pool_actions": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__superchain_slipstream_pools"], "model.fsc_evm.silver_dex__superchain_slipstream_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__pancakeswap_v3_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__pancakeswap_v2_ss_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__pancakeswap_v3_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__pancakeswap_v3_pools"], "model.fsc_evm.silver_dex__pancakeswap_v2_mm_swaps": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__pancakeswap_v3_pool_actions": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__pancakeswap_v3_pools"], "model.fsc_evm.silver_dex__pancakeswap_v2_ss_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__pancakeswap_v2_ss_pools"], "model.fsc_evm.silver_dex__gmx_swaps": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__gmx_v2_swaps": ["model.fsc_evm.core__ez_decoded_event_logs"], "model.fsc_evm.silver_dex__velodrome_v1_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__velodrome_v1_pools"], "model.fsc_evm.silver_dex__velodrome_v2_pool_actions": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__velodrome_v2_pools"], "model.fsc_evm.silver_dex__velodrome_v1_pool_actions": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__velodrome_v1_pools"], "model.fsc_evm.silver_dex__velodrome_v1_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__velodrome_v2_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__velodrome_v2_pools"], "model.fsc_evm.silver_dex__velodrome_v2_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__pharaoh_v1_pool_actions": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__pharaoh_v1_pools"], "model.fsc_evm.silver_dex__pharaoh_v1_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__pharaoh_v1_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__pharaoh_v1_pools"], "model.fsc_evm.silver_dex__dackie_pool_actions": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__dackie_pools"], "model.fsc_evm.silver_dex__dackie_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__dackie_pools"], "model.fsc_evm.silver_dex__dackie_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__curve_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__curve_pools"], "model.fsc_evm.silver_dex__curve_pools": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.core__fact_traces", "seed.fsc_evm.silver_dex__eth_curve_pools_legacy"], "model.fsc_evm.silver_dex__curve_pool_actions": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__ez_token_transfers", "model.fsc_evm.silver_dex__curve_pools"], "model.fsc_evm.silver_dex__zyberswap_v2_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__zyberswap_v2_pools"], "model.fsc_evm.silver_dex__zyberswap_v2_pool_actions": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__zyberswap_v2_pools"], "model.fsc_evm.silver_dex__zyberswap_v2_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__aerodrome_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__aerodrome_pools"], "model.fsc_evm.silver_dex__aerodrome_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__aerodrome_pool_actions": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__aerodrome_pools"], "model.fsc_evm.silver_dex__paircreated_evt_v2_pool_actions": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__paircreated_evt_v2_pools"], "model.fsc_evm.silver_dex__poolcreated_evt_v3_pool_actions": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__poolcreated_evt_v3_pools"], "model.fsc_evm.silver_dex__swap_evt_v2_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__paircreated_evt_v2_pools"], "model.fsc_evm.silver_dex__paircreated_evt_v2_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__swap_evt_v3_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__poolcreated_evt_v3_pools"], "model.fsc_evm.silver_dex__poolcreated_evt_v3_pools": ["model.fsc_evm.core__fact_event_logs", "seed.fsc_evm.silver_dex__univ3_ovm1_legacy_pools"], "model.fsc_evm.silver_dex__levelfi_swaps": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__synthetix_swaps": ["model.fsc_evm.core__fact_event_logs", "seed.fsc_evm.silver_dex__synthetix_synths_20230404"], "model.fsc_evm.silver_dex__maverick_v2_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__maverick_v2_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__maverick_v2_pools"], "model.fsc_evm.silver_dex__maverick_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__maverick_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__maverick_pools"], "model.fsc_evm.silver_dex__sushiswap_pool_actions": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__sushiswap_pools"], "model.fsc_evm.silver_dex__sushiswap_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__sushiswap_pools"], "model.fsc_evm.silver_dex__sushiswap_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__woofi_swaps": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__quickswap_v2_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__quickswap_v2_pools"], "model.fsc_evm.silver_dex__quickswap_v4_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__quickswap_v2_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__quickswap_v4_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__quickswap_v4_pools"], "model.fsc_evm.silver_dex__quickswap_v4_pool_actions": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__quickswap_v4_pools"], "model.fsc_evm.silver_dex__quickswap_v2_pool_actions": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__quickswap_v2_pools"], "model.fsc_evm.silver_dex__bitflux_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__bitflux_pools"], "model.fsc_evm.silver_dex__bitflux_pools": ["model.fsc_evm.core__fact_traces"], "model.fsc_evm.silver_dex__platypus_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__platypus_pools"], "model.fsc_evm.silver_dex__platypus_pools": ["model.fsc_evm.core__fact_traces"], "model.fsc_evm.silver_dex__dodo_v1_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__dodo_v1_pools"], "model.fsc_evm.silver_dex__dodo_v1_pool_actions": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__dodo_v1_pools"], "model.fsc_evm.silver_dex__dodo_v1_pools": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_traces", "seed.fsc_evm.silver_dex__dodo_v1_pool_metadata"], "model.fsc_evm.silver_dex__dodo_v2_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__dodo_v2_pools"], "model.fsc_evm.silver_dex__dodo_v2_pools": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_traces"], "model.fsc_evm.silver_dex__glyph_v4_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__glyph_v4_pools"], "model.fsc_evm.silver_dex__glyph_v4_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__dexalot_swaps": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__kyberswap_v1_static_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pool_actions": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pools"], "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pools"], "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pool_actions": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pools"], "model.fsc_evm.silver_dex__kyberswap_v1_static_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__kyberswap_v1_static_pools"], "model.fsc_evm.silver_dex__kyberswap_v2_elastic_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pools"], "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__voodoo_swaps": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__uniswap_v4_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_traces", "model.fsc_evm.silver_dex__uniswap_v4_pools"], "model.fsc_evm.silver_dex__uniswap_v4_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__camelot_v2_swaps": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__camelot_v2_pools"], "model.fsc_evm.silver_dex__camelot_v2_pools": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_dex__camelot_v2_pool_actions": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_dex__camelot_v2_pools"], "model.fsc_evm.defi__ez_dex_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.defi__ez_dex_liquidity_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.defi__dim_dex_liquidity_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"], "model.fsc_evm.silver_lending__morpho_repayments": ["model.fsc_evm.core__fact_traces"], "model.fsc_evm.silver_lending__morpho_borrows": ["model.fsc_evm.core__fact_traces"], "model.fsc_evm.silver_lending__morpho_flashloans": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_lending__morpho_deposits": ["model.fsc_evm.core__fact_traces"], "model.fsc_evm.silver_lending__morpho_withdraws": ["model.fsc_evm.core__fact_traces"], "model.fsc_evm.silver_lending__morpho_liquidations": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_traces"], "model.fsc_evm.silver_lending__comp_v3_withdraws": ["model.fsc_evm.core__ez_token_transfers", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__comp_v3_asset_details"], "model.fsc_evm.silver_lending__comp_v3_liquidations": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__comp_v3_asset_details"], "model.fsc_evm.silver_lending__comp_v3_repayments": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__comp_v3_asset_details"], "model.fsc_evm.silver_lending__comp_v3_borrows": ["model.fsc_evm.core__ez_token_transfers", "model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__comp_v3_asset_details"], "model.fsc_evm.silver_lending__comp_v3_deposits": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__comp_v3_asset_details"], "model.fsc_evm.silver_lending__comp_v3_asset_details": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_lending__silo_repayments": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__silo_pools"], "model.fsc_evm.silver_lending__silo_pools": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver__contracts"], "model.fsc_evm.silver_lending__silo_borrows": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__silo_pools"], "model.fsc_evm.silver_lending__silo_withdraws": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__silo_pools"], "model.fsc_evm.silver_lending__silo_liquidations": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__silo_pools"], "model.fsc_evm.silver_lending__silo_deposits": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__silo_pools"], "model.fsc_evm.silver_lending__fraxlend_deposits": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__fraxlend_asset_details"], "model.fsc_evm.silver_lending__fraxlend_borrows": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__fraxlend_asset_details"], "model.fsc_evm.silver_lending__fraxlend_repayments": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__fraxlend_asset_details"], "model.fsc_evm.silver_lending__fraxlend_liquidations": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__fraxlend_asset_details"], "model.fsc_evm.silver_lending__fraxlend_withdraws": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__fraxlend_asset_details"], "model.fsc_evm.silver_lending__fraxlend_asset_details": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver__contracts"], "model.fsc_evm.silver_lending__aave_liquidations": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__aave_tokens"], "model.fsc_evm.silver_lending__aave_ohlc_interest_rates": ["model.fsc_evm.silver__contracts", "model.fsc_evm.silver_lending__aave_interest_rates"], "model.fsc_evm.silver_lending__aave_tokens": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_lending__aave_borrows": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__aave_tokens"], "model.fsc_evm.silver_lending__aave_flashloans": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__aave_tokens"], "model.fsc_evm.silver_lending__aave_withdraws": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__aave_tokens"], "model.fsc_evm.silver_lending__aave_repayments": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__aave_tokens"], "model.fsc_evm.silver_lending__aave_deposits": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__aave_tokens"], "model.fsc_evm.silver_lending__aave_interest_rates": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__aave_ethereum_tokens", "model.fsc_evm.silver_lending__aave_tokens"], "model.fsc_evm.silver_lending__euler_repayments": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__euler_tokens"], "model.fsc_evm.silver_lending__euler_withdraws": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__euler_tokens"], "model.fsc_evm.silver_lending__euler_tokens": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver__contracts"], "model.fsc_evm.silver_lending__euler_deposits": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__euler_tokens"], "model.fsc_evm.silver_lending__euler_borrows": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__euler_tokens"], "model.fsc_evm.silver_lending__euler_liquidations": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__euler_tokens", "model.fsc_evm.silver_lending__euler_withdraws"], "model.fsc_evm.silver_lending__aave_ethereum_flashloans": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__aave_ethereum_tokens"], "model.fsc_evm.silver_lending__aave_ethereum_withdraws": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__aave_ethereum_tokens"], "model.fsc_evm.silver_lending__aave_ethereum_liquidations": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__aave_ethereum_tokens"], "model.fsc_evm.silver_lending__aave_ethereum_deposits": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__aave_ethereum_tokens"], "model.fsc_evm.silver_lending__aave_ethereum_tokens": ["model.fsc_evm.core__fact_event_logs"], "model.fsc_evm.silver_lending__aave_ethereum_borrows": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__aave_ethereum_tokens"], "model.fsc_evm.silver_lending__aave_ethereum_repayments": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__aave_ethereum_tokens"], "model.fsc_evm.silver_lending__comp_v2_repayments": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__comp_v2_asset_details"], "model.fsc_evm.silver_lending__comp_v2_liquidations": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_traces", "model.fsc_evm.silver_lending__comp_v2_asset_details"], "model.fsc_evm.silver_lending__comp_v2_asset_details": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_traces", "model.fsc_evm.silver__contracts", "seed.fsc_evm.silver_lending__token_metadata"], "model.fsc_evm.silver_lending__comp_v2_withdraws": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__comp_v2_asset_details"], "model.fsc_evm.silver_lending__comp_v2_borrows": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__comp_v2_asset_details"], "model.fsc_evm.silver_lending__comp_v2_deposits": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.silver_lending__comp_v2_asset_details"], "model.fsc_evm.silver_lending__complete_lending_liquidations": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver__complete_token_prices", "model.fsc_evm.silver_lending__aave_ethereum_liquidations", "model.fsc_evm.silver_lending__aave_liquidations", "model.fsc_evm.silver_lending__comp_v2_liquidations", "model.fsc_evm.silver_lending__comp_v3_liquidations", "model.fsc_evm.silver_lending__euler_liquidations", "model.fsc_evm.silver_lending__fraxlend_liquidations", "model.fsc_evm.silver_lending__morpho_liquidations", "model.fsc_evm.silver_lending__silo_liquidations", "seed.fsc_evm.silver_lending__token_metadata"], "model.fsc_evm.silver_lending__complete_lending_borrows": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver__complete_token_prices", "model.fsc_evm.silver_lending__aave_borrows", "model.fsc_evm.silver_lending__aave_ethereum_borrows", "model.fsc_evm.silver_lending__comp_v2_borrows", "model.fsc_evm.silver_lending__comp_v3_borrows", "model.fsc_evm.silver_lending__euler_borrows", "model.fsc_evm.silver_lending__fraxlend_borrows", "model.fsc_evm.silver_lending__morpho_borrows", "model.fsc_evm.silver_lending__silo_borrows", "seed.fsc_evm.silver_lending__token_metadata"], "model.fsc_evm.silver_lending__complete_lending_flashloans": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver__complete_token_prices", "model.fsc_evm.silver__contracts", "model.fsc_evm.silver_lending__aave_ethereum_flashloans", "model.fsc_evm.silver_lending__aave_flashloans", "model.fsc_evm.silver_lending__morpho_flashloans", "seed.fsc_evm.silver_lending__token_metadata"], "model.fsc_evm.silver_lending__complete_lending_deposits": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver__complete_token_prices", "model.fsc_evm.silver_lending__aave_deposits", "model.fsc_evm.silver_lending__aave_ethereum_deposits", "model.fsc_evm.silver_lending__comp_v2_deposits", "model.fsc_evm.silver_lending__comp_v3_deposits", "model.fsc_evm.silver_lending__euler_deposits", "model.fsc_evm.silver_lending__fraxlend_deposits", "model.fsc_evm.silver_lending__morpho_deposits", "model.fsc_evm.silver_lending__silo_deposits", "seed.fsc_evm.silver_lending__token_metadata"], "model.fsc_evm.silver_lending__complete_lending_repayments": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver__complete_token_prices", "model.fsc_evm.silver_lending__aave_ethereum_repayments", "model.fsc_evm.silver_lending__aave_repayments", "model.fsc_evm.silver_lending__comp_v2_repayments", "model.fsc_evm.silver_lending__comp_v3_repayments", "model.fsc_evm.silver_lending__euler_repayments", "model.fsc_evm.silver_lending__fraxlend_repayments", "model.fsc_evm.silver_lending__morpho_repayments", "model.fsc_evm.silver_lending__silo_repayments", "seed.fsc_evm.silver_lending__token_metadata"], "model.fsc_evm.silver_lending__complete_lending_withdraws": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver__complete_token_prices", "model.fsc_evm.silver_lending__aave_ethereum_withdraws", "model.fsc_evm.silver_lending__aave_withdraws", "model.fsc_evm.silver_lending__comp_v2_withdraws", "model.fsc_evm.silver_lending__comp_v3_withdraws", "model.fsc_evm.silver_lending__euler_withdraws", "model.fsc_evm.silver_lending__fraxlend_withdraws", "model.fsc_evm.silver_lending__morpho_withdraws", "model.fsc_evm.silver_lending__silo_withdraws", "seed.fsc_evm.silver_lending__token_metadata"], "model.fsc_evm.defi__ez_lending_borrows": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "model.fsc_evm.defi__ez_lending_liquidations": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "model.fsc_evm.defi__ez_lending_flashloans": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "model.fsc_evm.defi__ez_lending_deposits": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "model.fsc_evm.defi__ez_lending_ohlc_rates": ["model.fsc_evm.silver_lending__aave_ohlc_interest_rates"], "model.fsc_evm.defi__ez_lending_withdraws": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "model.fsc_evm.defi__ez_lending_repayments": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "model.fsc_evm.silver_stats__core_metrics_hourly": ["model.fsc_evm.core__fact_transactions"], "model.fsc_evm.stats__ez_core_metrics_hourly": ["model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver_stats__core_metrics_hourly"], "model.fsc_evm.chain_stats__ez_address_metrics": [], "model.fsc_evm.chain_stats__ez_allowlist": [], "model.fsc_evm.chain_stats__ez_protocol_metrics": [], "model.fsc_evm.chain_stats__ez_metrics_daily": [], "model.fsc_evm.silver__balances_erc20_daily": ["model.fsc_evm.bronze__balances_erc20", "model.fsc_evm.bronze__balances_erc20_fr", "model.fsc_evm.price__ez_asset_metadata", "seed.fsc_evm.silver__balances_erc20_override"], "model.fsc_evm.streamline__balances_erc20_daily_records": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.price__ez_asset_metadata", "seed.fsc_evm.silver__balances_erc20_override"], "model.fsc_evm.streamline__balances_erc20_daily_realtime": ["model.fsc_evm.streamline__balances_erc20_daily_realtime_requests"], "model.fsc_evm.streamline__balances_erc20_daily_realtime_requests": ["model.fsc_evm._max_block_by_date", "model.fsc_evm.streamline__balances_erc20_daily_complete", "model.fsc_evm.streamline__balances_erc20_daily_records"], "model.fsc_evm.streamline__balances_erc20_daily_complete": ["model.fsc_evm.bronze__balances_erc20", "model.fsc_evm.bronze__balances_erc20_fr"], "model.fsc_evm.streamline__balances_erc20_daily_history_requests": ["model.fsc_evm._max_block_by_date", "model.fsc_evm.streamline__balances_erc20_daily_complete", "model.fsc_evm.streamline__balances_erc20_daily_records"], "model.fsc_evm.streamline__balances_erc20_daily_history": ["model.fsc_evm.streamline__balances_erc20_daily_history_requests"], "model.fsc_evm.balances__ez_balances_erc20_daily": ["model.fsc_evm.bronze__balances_erc20", "model.fsc_evm.core__dim_contracts", "model.fsc_evm.price__ez_asset_metadata", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver__balances_erc20_daily", "seed.fsc_evm.silver__balances_erc20_override"], "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent": ["model.fsc_evm._block_lookback", "model.fsc_evm.balances__ez_balances_erc20_daily"], "model.fsc_evm.test_gold__ez_balances_erc20_daily_full": ["model.fsc_evm.balances__ez_balances_erc20_daily"], "model.fsc_evm.bronze__balances_erc20": ["source.polygon_models.bronze_streamline.balances_erc20"], "model.fsc_evm.bronze__balances_erc20_fr": ["source.polygon_models.bronze_streamline.balances_erc20"], "model.fsc_evm.silver__balances_native_daily": ["model.fsc_evm.bronze__balances_native", "model.fsc_evm.bronze__balances_native_fr"], "model.fsc_evm.streamline__balances_native_daily_records": ["model.fsc_evm.core__fact_traces", "model.fsc_evm.core__fact_transactions"], "model.fsc_evm.streamline__balances_native_daily_realtime": ["model.fsc_evm.streamline__balances_native_daily_realtime_requests"], "model.fsc_evm.streamline__balances_native_daily_realtime_requests": ["model.fsc_evm._max_block_by_date", "model.fsc_evm.streamline__balances_native_daily_complete", "model.fsc_evm.streamline__balances_native_daily_records"], "model.fsc_evm.streamline__balances_native_daily_complete": ["model.fsc_evm.bronze__balances_native", "model.fsc_evm.bronze__balances_native_fr"], "model.fsc_evm.streamline__balances_native_daily_history_requests": ["model.fsc_evm._max_block_by_date", "model.fsc_evm.streamline__balances_native_daily_complete", "model.fsc_evm.streamline__balances_native_daily_records"], "model.fsc_evm.streamline__balances_native_daily_history": ["model.fsc_evm.streamline__balances_native_daily_history_requests"], "model.fsc_evm.balances__ez_balances_native_daily": ["model.fsc_evm.bronze__balances_native", "model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver__balances_native_daily"], "model.fsc_evm.test_gold__ez_balances_native_daily_full": ["model.fsc_evm.balances__ez_balances_native_daily"], "model.fsc_evm.test_gold__ez_balances_native_daily_recent": ["model.fsc_evm._block_lookback", "model.fsc_evm.balances__ez_balances_native_daily"], "model.fsc_evm.bronze__balances_native_fr": ["source.polygon_models.bronze_streamline.balances_native"], "model.fsc_evm.bronze__balances_native": ["source.polygon_models.bronze_streamline.balances_native"], "seed.fsc_evm.admin__repos": [], "seed.fsc_evm.silver__balances_erc20_override": [], "seed.fsc_evm.silver_bridge__ccip_chain_seed": [], "seed.fsc_evm.silver_bridge__cctp_chain_id_seed": [], "seed.fsc_evm.silver_bridge__allbridge_chain_id_seed": [], "seed.fsc_evm.silver_bridge__layerzero_v2_bridge_seed": [], "seed.fsc_evm.silver_bridge__everclear_chain_seed": [], "seed.fsc_evm.silver_bridge__wormhole_chain_id_seed": [], "seed.fsc_evm.silver_bridge__meson_chain_id_seed": [], "seed.fsc_evm.silver_bridge__stargate_v2_asset_seed": [], "seed.fsc_evm.silver_bridge__ethereum_native_bridges_seed": [], "seed.fsc_evm.silver_bridge__standard_chain_seed": [], "seed.fsc_evm.silver_bridge__stargate_chain_id_seed": [], "seed.fsc_evm.silver_stablecoins__bridge_vault_seed": [], "seed.fsc_evm.silver_stablecoins__stablecoins_mapping_seed": [], "seed.fsc_evm.silver_dex__univ3_ovm1_legacy_pools": [], "seed.fsc_evm.silver_dex__synthetix_synths_20230404": [], "seed.fsc_evm.silver_dex__dodo_v1_pool_metadata": [], "seed.fsc_evm.silver_dex__eth_curve_pools_legacy": [], "seed.fsc_evm.silver_lending__token_metadata": [], "test.polygon_models.not_null_silver__polymarket_filled_orders_BLOCK_NUMBER.37fef61b1d": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.not_null_silver__polymarket_filled_orders_BLOCK_TIMESTAMP.6917d6df42": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__polymarket_filled_orders_BLOCK_TIMESTAMP__day__3.566647b61b": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_FUNCTION_SIGNATURE.cb15dd5380": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS.db8de48e63": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.7b409eed52": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS.d211fba691": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.6f648aaeb4": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.not_null_silver__polymarket_filled_orders_TX_HASH.61638ba866": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_TX_HASH__0_xX_0_9a_fA_F_.99f06dfd94": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.not_null_silver__polymarket_filled_orders_EVENT_INDEX.08ca9dd7ff": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.not_null_silver__polymarket_filled_orders_EVENT_NAME.8723d6958b": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.not_null_silver__polymarket_filled_orders_CONTRACT_ADDRESS.c1a839cddb": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2a1903b370": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.not_null_silver__polymarket_filled_orders_AMOUNT_USD.07501acd40": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_AMOUNT_USD__DECIMAL__FLOAT__NUMBER.12cd4b012b": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.not_null_silver__polymarket_filled_orders_SHARES.4e8255f345": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_SHARES__DECIMAL__FLOAT__NUMBER.0ed57ee530": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.not_null_silver__polymarket_filled_orders_PRICE_PER_SHARE.bfce816c2f": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_PRICE_PER_SHARE__DECIMAL__FLOAT__NUMBER.d613cb9c05": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__polymarket_filled_orders__LOG_ID.7b6aeb1e9c": ["model.polygon_models.silver__polymarket_filled_orders"], "test.polygon_models.not_null_silver_olas__create_service_multisigs_BLOCK_NUMBER.69d215b1bf": ["model.polygon_models.silver_olas__create_service_multisigs"], "test.polygon_models.not_null_silver_olas__create_service_multisigs_BLOCK_TIMESTAMP.c337c03bc4": ["model.polygon_models.silver_olas__create_service_multisigs"], "test.polygon_models.not_null_silver_olas__create_service_multisigs_TX_HASH.cfb739aeec": ["model.polygon_models.silver_olas__create_service_multisigs"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__create_service_multisigs_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.81228daf15": ["model.polygon_models.silver_olas__create_service_multisigs"], "test.polygon_models.not_null_silver_olas__create_service_multisigs_ID.daadfeec98": ["model.polygon_models.silver_olas__create_service_multisigs"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__create_service_multisigs__LOG_ID.57c866e6e9": ["model.polygon_models.silver_olas__create_service_multisigs"], "test.polygon_models.not_null_silver_olas__service_registrations_BLOCK_NUMBER.07ad8d6819": ["model.polygon_models.silver_olas__service_registrations"], "test.polygon_models.not_null_silver_olas__service_registrations_BLOCK_TIMESTAMP.5cfbea80f9": ["model.polygon_models.silver_olas__service_registrations"], "test.polygon_models.not_null_silver_olas__service_registrations_TX_HASH.39ebb01275": ["model.polygon_models.silver_olas__service_registrations"], "test.polygon_models.not_null_silver_olas__service_registrations_OWNER_ADDRESS.60900e09bd": ["model.polygon_models.silver_olas__service_registrations"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_registrations_OWNER_ADDRESS__0_xX_0_9a_fA_F_.bdfdf5df47": ["model.polygon_models.silver_olas__service_registrations"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_registrations_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.9e4a4fa9f9": ["model.polygon_models.silver_olas__service_registrations"], "test.polygon_models.not_null_silver_olas__service_registrations_SERVICE_ID.943c28d401": ["model.polygon_models.silver_olas__service_registrations"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__service_registrations__LOG_ID.2abbc6e68b": ["model.polygon_models.silver_olas__service_registrations"], "test.polygon_models.not_null_silver_olas__service_event_logs_BLOCK_NUMBER.e49da10e6f": ["model.polygon_models.silver_olas__service_event_logs"], "test.polygon_models.not_null_silver_olas__service_event_logs_BLOCK_TIMESTAMP.f0e808ba68": ["model.polygon_models.silver_olas__service_event_logs"], "test.polygon_models.not_null_silver_olas__service_event_logs_TX_HASH.04a3422711": ["model.polygon_models.silver_olas__service_event_logs"], "test.polygon_models.not_null_silver_olas__service_event_logs_MULTISIG_ADDRESS.bcc9d7a3ca": ["model.polygon_models.silver_olas__service_event_logs"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_event_logs_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.c6b135bb12": ["model.polygon_models.silver_olas__service_event_logs"], "test.polygon_models.not_null_silver_olas__service_event_logs_SERVICE_ID.1ad8540ad5": ["model.polygon_models.silver_olas__service_event_logs"], "test.polygon_models.not_null_silver_olas__service_event_logs_DATA.e35df90e62": ["model.polygon_models.silver_olas__service_event_logs"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__service_event_logs__LOG_ID.283185ebcc": ["model.polygon_models.silver_olas__service_event_logs"], "test.polygon_models.not_null_silver_olas__getservice_reads_BLOCK_NUMBER.4525478d4f": ["model.polygon_models.silver_olas__getservice_reads"], "test.polygon_models.not_null_silver_olas__getservice_reads_FUNCTION_INPUT.abe26173ba": ["model.polygon_models.silver_olas__getservice_reads"], "test.polygon_models.not_null_silver_olas__getservice_reads_AGENT_IDS.16c637c223": ["model.polygon_models.silver_olas__getservice_reads"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__getservice_reads_GETSERVICE_READS_ID.93211253f0": ["model.polygon_models.silver_olas__getservice_reads"], "test.polygon_models.not_null_silver_olas__registry_metadata_complete_CONTRACT_ADDRESS.2a0b0f82cb": ["model.polygon_models.silver_olas__registry_metadata_complete"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_metadata_complete_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.a79fec85ad": ["model.polygon_models.silver_olas__registry_metadata_complete"], "test.polygon_models.not_null_silver_olas__registry_metadata_complete_REGISTRY_ID.d41d9793d9": ["model.polygon_models.silver_olas__registry_metadata_complete"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_metadata_complete_REGISTRY_METADATA_ID.bde925d9ef": ["model.polygon_models.silver_olas__registry_metadata_complete"], "test.polygon_models.not_null_silver_olas__registry_metadata_BLOCK_NUMBER.df505ae61e": ["model.polygon_models.silver_olas__registry_metadata"], "test.polygon_models.not_null_silver_olas__registry_metadata_CONTRACT_ADDRESS.d47b0a47dc": ["model.polygon_models.silver_olas__registry_metadata"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_metadata_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2d2a8813c5": ["model.polygon_models.silver_olas__registry_metadata"], "test.polygon_models.not_null_silver_olas__registry_metadata_REGISTRY_ID.cee5b3e691": ["model.polygon_models.silver_olas__registry_metadata"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_metadata_REGISTRY_METADATA_ID.818d85b569": ["model.polygon_models.silver_olas__registry_metadata"], "test.polygon_models.not_null_silver_olas__registry_reads_BLOCK_NUMBER.b13e2f8805": ["model.polygon_models.silver_olas__registry_reads"], "test.polygon_models.not_null_silver_olas__registry_reads_CONTRACT_ADDRESS.8aeb785480": ["model.polygon_models.silver_olas__registry_reads"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_reads_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.5dc95cdcbc": ["model.polygon_models.silver_olas__registry_reads"], "test.polygon_models.not_null_silver_olas__registry_reads_TOKEN_URI_LINK.e05085b1e1": ["model.polygon_models.silver_olas__registry_reads"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_reads_REGISTRY_READS_ID.92579c5880": ["model.polygon_models.silver_olas__registry_reads"], "test.polygon_models.not_null_silver__seaport_1_4_sales_BLOCK_NUMBER.87ef6d1a21": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_BLOCK_NUMBER__NUMBER__FLOAT.db1568242f": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_BLOCK_TIMESTAMP.64626723f1": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e5a6626a52": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_TX_HASH.76c3272674": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_TX_HASH__0_xX_0_9a_fA_F_.6ec2b48a1e": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_ADDRESS.148994188c": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.cd2cbbcc06": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_NAME.1fb199e6b9": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_4_sales_PLATFORM_NAME__opensea.cab2dd30f7": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_SELLER_ADDRESS.efdfee2c74": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.f7b39ffb41": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_BUYER_ADDRESS.39557d23ca": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.f73a5fc522": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_NFT_ADDRESS.9e5ab44cbd": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.ea367e02b2": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_TOKENID.8353c1c5b8": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_CURRENCY_ADDRESS.cfb0b5d08a": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_TOTAL_PRICE_RAW.0ccd4356fe": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.fceecfdb11": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_TOTAL_FEES_RAW.49141684e9": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.2bde19d676": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_FEE_RAW.a0f300ff1c": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.b3d57d8632": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_CREATOR_FEE_RAW.98d862e5d3": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.bd13725310": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_TX_FEE.7a79488ebd": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TX_FEE__NUMBER__FLOAT.d59a0ea6ef": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_NFT_LOG_ID.5be99512a7": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales__INSERTED_TIMESTAMP.7cc0485f0d": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82ad920c6e": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS.492297495d": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.b0cc0cbca1": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS.e67fafc448": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.6a5fede4fd": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE.e81f20de7e": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.8d40d2780e": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_EVENT_TYPE.a53bf70c11": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_4_sales_EVENT_TYPE__bid_won__sale.6b6cedf5d9": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__seaport_1_4_sales_INPUT_DATA.02b25fd3bc": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_4_sales_nft_log_id.a174df5b72": ["model.polygon_models.silver__seaport_1_4_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_BLOCK_NUMBER.57944b643f": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_BLOCK_NUMBER__NUMBER__FLOAT.fdf0d994a1": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_BLOCK_TIMESTAMP.79a5861cbe": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__complete_nft_sales_BLOCK_TIMESTAMP__day__1.40e4447972": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.84edb45427": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_TX_HASH.c6a7c23911": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_TX_HASH__0_xX_0_9a_fA_F_.0ee978e0d4": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_EVENT_INDEX.f2adcca32f": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_ADDRESS.795fa17957": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.5e6bffa046": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_NAME.ffe92d79fd": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_SELLER_ADDRESS.eda1b7ad24": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.bbf4b8149f": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_BUYER_ADDRESS.69569a63c7": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4226247a32": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_NFT_ADDRESS.5537952adb": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.232d4d13e5": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_TOKENID.434c1bbb73": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_CURRENCY_ADDRESS.9b1d0cc7a8": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_PRICE.664e2772c7": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PRICE__NUMBER__FLOAT.b67f7f036b": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PRICE_USD__NUMBER__FLOAT.3865ef9872": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_TOTAL_FEES.5f94d9565b": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TOTAL_FEES__NUMBER__FLOAT.c717cf1013": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_FEE.d2ec7dbdd0": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PLATFORM_FEE__NUMBER__FLOAT.4db7a35a78": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_CREATOR_FEE.2bcba1a012": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_CREATOR_FEE__NUMBER__FLOAT.cff32bf09f": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TOTAL_FEES_USD__NUMBER__FLOAT.8179f9db61": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PLATFORM_FEE_USD__NUMBER__FLOAT.bf1cc86946": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_CREATOR_FEE_USD__NUMBER__FLOAT.32f4b653be": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_TX_FEE.3b60a50418": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TX_FEE__NUMBER__FLOAT.a50c15b6b4": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_NFT_LOG_ID.6a32d9392a": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales__LOG_ID.423b310544": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS.5f21f6c546": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.165fc34eac": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_TO_ADDRESS.fb55dbfb6f": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.e291a891ae": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE.e14fe88673": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.b46c604770": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_EVENT_TYPE.b71abf8ef9": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__complete_nft_sales_INPUT_DATA.37d4f77f83": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__complete_nft_sales_nft_log_id.1db89d3193": ["model.polygon_models.silver__complete_nft_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_BLOCK_NUMBER.24829e36fa": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_BLOCK_NUMBER__NUMBER__FLOAT.16b1475a6c": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_BLOCK_TIMESTAMP.8996639023": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.633ddbc1cc": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_TX_HASH.4ef964ba26": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_TX_HASH__0_xX_0_9a_fA_F_.4980f309d1": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_ADDRESS.a76e4edeac": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.bbb38fefa1": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_NAME.cd7a9560be": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_1_sales_PLATFORM_NAME__opensea.559a845700": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_SELLER_ADDRESS.d1219d17a2": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.82ff004d89": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_BUYER_ADDRESS.cffb31ba59": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.e0b5729239": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_NFT_ADDRESS.4c2d3ab960": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.7ba4b12cc3": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_TOKENID.de88cac8c5": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_CURRENCY_ADDRESS.1be87eaf04": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_TOTAL_PRICE_RAW.470d158317": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.20c0e6f088": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_TOTAL_FEES_RAW.90afed2683": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.216c3d4f53": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_FEE_RAW.98f46b971f": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.a33e76bb25": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_CREATOR_FEE_RAW.4571cd3937": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.c4c3f0c765": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_TX_FEE.9da040f28a": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TX_FEE__NUMBER__FLOAT.5fc845aa08": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_NFT_LOG_ID.f7cd721252": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales__INSERTED_TIMESTAMP.39029cba5f": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.044c1f3328": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS.07dbc4f7e2": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.44c7ddb31b": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.41d5da7600": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE.1ffe9dc96f": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.77a1924e3a": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_EVENT_TYPE.50311bf0fc": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_1_sales_EVENT_TYPE__bid_won__sale.2524b82d17": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__seaport_1_1_sales_INPUT_DATA.bbebff71e0": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_1_sales_nft_log_id.b926efc93c": ["model.polygon_models.silver__seaport_1_1_sales"], "test.polygon_models.not_null_silver__element_sales_BLOCK_NUMBER.6f285666e9": ["model.polygon_models.silver__element_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_BLOCK_NUMBER__NUMBER__FLOAT.e369cc923d": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales_BLOCK_TIMESTAMP.feb749030b": ["model.polygon_models.silver__element_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.77148f96bc": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales_TX_HASH.c94a3fb7ed": ["model.polygon_models.silver__element_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_TX_HASH__0_xX_0_9a_fA_F_.197ddfc264": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales_SELLER_ADDRESS.cbd314ffba": ["model.polygon_models.silver__element_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.0e7240aef8": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales_BUYER_ADDRESS.13709bfa32": ["model.polygon_models.silver__element_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.1a632cfd6e": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales_NFT_ADDRESS.a64e864cf2": ["model.polygon_models.silver__element_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.f3bcb7907f": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales_TOKENID.0c4c737af0": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales_CURRENCY_ADDRESS.6209f77238": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales_TOTAL_PRICE_RAW.6277f419e1": ["model.polygon_models.silver__element_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.a01e856376": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales_TOTAL_FEES_RAW.e744dc994a": ["model.polygon_models.silver__element_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.8b75c81a0d": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales_PLATFORM_FEE_RAW.4ff5271e75": ["model.polygon_models.silver__element_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.75db53c973": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales_CREATOR_FEE_RAW.05b31270ac": ["model.polygon_models.silver__element_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.9f55628b74": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales_TX_FEE.cbc67dca64": ["model.polygon_models.silver__element_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TX_FEE__NUMBER__FLOAT.ba599921e2": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales_NFT_LOG_ID.a2214c6c73": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales__LOG_ID.45798a356f": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales_ORIGIN_FROM_ADDRESS.488cc78674": ["model.polygon_models.silver__element_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.8bf1eb8fd4": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales_ORIGIN_TO_ADDRESS.0c5df398d0": ["model.polygon_models.silver__element_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.3b01529200": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE.be176a72e9": ["model.polygon_models.silver__element_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.fd0843fa8a": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales_EVENT_TYPE.1374ddbae0": ["model.polygon_models.silver__element_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__element_sales_EVENT_TYPE__bid_won__sale.13f1c327ac": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__element_sales_INPUT_DATA.033bf73b52": ["model.polygon_models.silver__element_sales"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__element_sales_nft_log_id.3f2a276dbb": ["model.polygon_models.silver__element_sales"], "test.polygon_models.not_null_silver__mooar_sales_BLOCK_NUMBER.543489371f": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_BLOCK_NUMBER__NUMBER__FLOAT.07310f104e": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_BLOCK_TIMESTAMP.30e0588b15": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__mooar_sales_BLOCK_TIMESTAMP__day__1.799f3f451c": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f85e0e9c18": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_TX_HASH.da6a3d4a3e": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_TX_HASH__0_xX_0_9a_fA_F_.f22d26a2aa": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_PLATFORM_ADDRESS.d745fc012b": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.c3c9bf6f98": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_SELLER_ADDRESS.44cd7daff0": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.c14c9abbbc": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_BUYER_ADDRESS.888d3bd2c2": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.6b889510cb": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_NFT_ADDRESS.d7517df1bb": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.fa8c038b49": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_TOKENID.4fbe1082e6": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_CURRENCY_ADDRESS.bd2ef41ae9": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_TOTAL_PRICE_RAW.528a859034": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.72cac3a65f": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_TOTAL_FEES_RAW.676780db0c": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.a91c15b84d": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_PLATFORM_FEE_RAW.6ab323f694": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.18683075ab": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_CREATOR_FEE_RAW.23190ef573": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.3d185db5b6": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_TX_FEE.5eed484409": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TX_FEE__NUMBER__FLOAT.dfe58ed919": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_NFT_LOG_ID.af807c77e9": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales__INSERTED_TIMESTAMP.93f5a5c8cb": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__mooar_sales__INSERTED_TIMESTAMP__day__14.743279bc26": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a0776dfdc1": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_FROM_ADDRESS.a779765ca9": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.820c1a0eaa": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_TO_ADDRESS.eadc499ce1": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.78e48edafd": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE.764964b444": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.f92b286eda": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_EVENT_TYPE.482185083d": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__mooar_sales_EVENT_TYPE__bid_won__sale.72a263fcbe": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__mooar_sales_INPUT_DATA.d587446188": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__mooar_sales_nft_log_id.368a737a67": ["model.polygon_models.silver__mooar_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_BLOCK_NUMBER.d8a7a7833f": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_BLOCK_NUMBER__NUMBER__FLOAT.9ab378f68e": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_BLOCK_TIMESTAMP.aa8c9811f0": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__seaport_1_6_sales_BLOCK_TIMESTAMP__day__1.55704a4959": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d0a43ce369": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_TX_HASH.c56c02a893": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_TX_HASH__0_xX_0_9a_fA_F_.db140398eb": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_ADDRESS.aacd1db03b": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.62aeda5fe7": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_NAME.9134b92f06": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_6_sales_PLATFORM_NAME__opensea.7575a475ff": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_SELLER_ADDRESS.266af61935": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.03d32571d2": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_BUYER_ADDRESS.fe949194db": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.dc8d5cedfd": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_NFT_ADDRESS.6411288ae0": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.277515e609": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_TOKENID.2f9a22db6b": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_CURRENCY_ADDRESS.36494514a1": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_TOTAL_PRICE_RAW.8151aa3865": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.1ff046cc57": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_TOTAL_FEES_RAW.919411d757": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.f1237eed20": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_FEE_RAW.aaa792c161": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.8a6b8eb72c": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_CREATOR_FEE_RAW.60fe2808f3": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.8cde9117f4": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_TX_FEE.9b8567b583": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TX_FEE__NUMBER__FLOAT.5854e80011": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_NFT_LOG_ID.c4b2be44be": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales__INSERTED_TIMESTAMP.7aa84213a2": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__seaport_1_6_sales__INSERTED_TIMESTAMP__day__1.fef81231f9": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c4b8b65b03": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS.be5f62774c": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.aa4bb5848c": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS.c02c8c62a8": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.d8be899441": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE.11f4cb34d8": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.e30720c0a3": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_EVENT_TYPE.8b8c5fa13c": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_6_sales_EVENT_TYPE__bid_won__sale.47081ac1d1": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__seaport_1_6_sales_INPUT_DATA.32f10c63e5": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_6_sales_nft_log_id.ac3a041a56": ["model.polygon_models.silver__seaport_1_6_sales"], "test.polygon_models.not_null_silver__tofunft_sales_BLOCK_NUMBER.afa8a4e8f3": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_BLOCK_NUMBER__NUMBER__FLOAT.2efc5278e8": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_BLOCK_TIMESTAMP.7f084f3df1": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.030006fed4": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_TX_HASH.d00c52e95b": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_TX_HASH__0_xX_0_9a_fA_F_.07ff7d8529": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_PLATFORM_ADDRESS.d680990b3f": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.e3fe1c4346": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_SELLER_ADDRESS.2623b7e06f": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.4ade570dee": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_BUYER_ADDRESS.e1bb974f14": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4b40cff5db": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_NFT_ADDRESS.56fa9c4a2e": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.a542b4ea96": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_TOKENID.dbc3abbfb8": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_CURRENCY_ADDRESS.415669b9b3": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_TOTAL_PRICE_RAW.ebe1a4900d": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.394b29750a": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_TOTAL_FEES_RAW.ea6fd23ad5": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.b0c431b629": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_PLATFORM_FEE_RAW.07e68bea2e": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.ee9c014f0f": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_CREATOR_FEE_RAW.2acaf124dc": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.338ac91ecd": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_TX_FEE.911a502933": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TX_FEE__NUMBER__FLOAT.2e849c3a94": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_NFT_LOG_ID.5be70a9545": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales__INSERTED_TIMESTAMP.99cb218d68": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.eafbf3d59d": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_FROM_ADDRESS.0e7cafbf22": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.ad1193ebee": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_TO_ADDRESS.6fe92c8681": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.f3b5a3d941": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE.ebd6d32cdd": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.266e7a9bab": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_EVENT_TYPE.0b1cc9cc57": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__tofunft_sales_EVENT_TYPE__bid_won__sale.2c30cdcd41": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__tofunft_sales_INPUT_DATA.358e16915b": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__tofunft_sales_nft_log_id.628c88944c": ["model.polygon_models.silver__tofunft_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_BLOCK_NUMBER.c4c18714b1": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_BLOCK_NUMBER__NUMBER__FLOAT.5fd14b6024": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_BLOCK_TIMESTAMP.0e3cfc73a7": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.6246cb2672": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_TX_HASH.e332a4e2f2": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_TX_HASH__0_xX_0_9a_fA_F_.3c3779d6bb": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_ADDRESS.df87d38f26": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.28cf427125": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_NAME.2cdf43e2a0": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_5_sales_PLATFORM_NAME__opensea.16c4e7cfc1": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_SELLER_ADDRESS.48bbb8263d": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.224af0bd4c": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_BUYER_ADDRESS.5a3e4fa745": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4cd6e3b69f": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_NFT_ADDRESS.f813b4d9e7": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.99fc2c7c14": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_TOKENID.f690e73e38": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_CURRENCY_ADDRESS.dbcea46a1f": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_TOTAL_PRICE_RAW.46ad0b4d7a": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.b4f6fa2d3d": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_TOTAL_FEES_RAW.b8f34e40c8": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.5721ea6b45": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_FEE_RAW.87b23c30ad": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.b6d1df5615": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_CREATOR_FEE_RAW.abf009e067": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.e6a47f2796": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_TX_FEE.289ce03033": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TX_FEE__NUMBER__FLOAT.ee212825cc": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_NFT_LOG_ID.aa0757e4d2": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales__INSERTED_TIMESTAMP.ca71885856": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9516659c33": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS.0b88cca2bc": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.5e09839047": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS.d459ebe228": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.fe4a91e952": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE.9ca019a30f": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.a1eee69661": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_EVENT_TYPE.754547c445": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_5_sales_EVENT_TYPE__bid_won__sale.3afc0ac436": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.not_null_silver__seaport_1_5_sales_INPUT_DATA.eecd421993": ["model.polygon_models.silver__seaport_1_5_sales"], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_5_sales_nft_log_id.abea905342": ["model.polygon_models.silver__seaport_1_5_sales"], "test.livequery_models.test_transpose__get_status_200.8721d94682": ["model.livequery_models.transpose__"], "test.livequery_models.test_credmark_utils__get_status_200.d1548e1f6e": ["model.livequery_models.credmark_utils__"], "test.livequery_models.test_opensea__get_collection_stats_status_200.bdf3d1d191": ["model.livequery_models.opensea__"], "test.livequery_models.test_stakingrewards__query_status_200.144a35304b": ["model.livequery_models.stakingrewards__"], "test.livequery_models.test_subquery__graphql_status_200.b25433a976": ["model.livequery_models.subquery__"], "test.livequery_models.test_topshot__graphql_status_200.fb93e3b220": ["model.livequery_models.topshot__"], "test.livequery_models.test_allday__graphql_status_200.8cfd62f9a1": ["model.livequery_models.allday__"], "test.livequery_models.test_coingecko__get_status_200.047f15c956": ["model.livequery_models.coingecko__"], "test.livequery_models.test_slack__webhook_send_simple.ee0011caae": ["model.livequery_models.slack__"], "test.livequery_models.test_slack__webhook_send_rich.488499c36a": ["model.livequery_models.slack__"], "test.livequery_models.test_slack__post_message_simple.0751f090c1": ["model.livequery_models.slack__"], "test.livequery_models.test_slack__post_message_blocks.904b39bace": ["model.livequery_models.slack__"], "test.livequery_models.test_slack__post_reply_simple.a734331ab3": ["model.livequery_models.slack__"], "test.livequery_models.test_slack__webhook_send_complex_payload.5c2206d9c2": ["model.livequery_models.slack__"], "test.livequery_models.test_slack_utils__post_webhook_httpbin.de5573cb7a": ["model.livequery_models.slack_utils__slack_utils"], "test.livequery_models.test_slack_utils__post_webhook_invalid_url.aed389ddc9": ["model.livequery_models.slack_utils__slack_utils"], "test.livequery_models.test_slack_utils__post_webhook_null_payload.8b4db9f76e": ["model.livequery_models.slack_utils__slack_utils"], "test.livequery_models.test_slack_utils__post_message_httpbin.faac84e2cd": ["model.livequery_models.slack_utils__slack_utils"], "test.livequery_models.test_slack_utils__post_message_auth_error.ca1392a817": ["model.livequery_models.slack_utils__slack_utils"], "test.livequery_models.test_slack_utils__post_reply_httpbin.c787547840": ["model.livequery_models.slack_utils__slack_utils"], "test.livequery_models.test_slack_utils__validate_webhook_url_valid.6420f9435d": ["model.livequery_models.slack_utils__slack_utils"], "test.livequery_models.test_slack_utils__validate_webhook_url_invalid.3576e28c54": ["model.livequery_models.slack_utils__slack_utils"], "test.livequery_models.test_slack_utils__validate_channel_id.3c2bddfcc4": ["model.livequery_models.slack_utils__slack_utils"], "test.livequery_models.test_slack_utils__validate_channel_name.ee330f32dc": ["model.livequery_models.slack_utils__slack_utils"], "test.livequery_models.test_slack_utils__validate_channel_dm.e73977329f": ["model.livequery_models.slack_utils__slack_utils"], "test.livequery_models.test_slack_utils__validate_channel_group.481cbe7e68": ["model.livequery_models.slack_utils__slack_utils"], "test.livequery_models.test_slack_utils__validate_channel_invalid.2df37ed1b8": ["model.livequery_models.slack_utils__slack_utils"], "test.livequery_models.test_slack_utils__validate_channel_null.23eeea530c": ["model.livequery_models.slack_utils__slack_utils"], "test.livequery_models.test_slack_utils__validate_channel_empty.7935ed3012": ["model.livequery_models.slack_utils__slack_utils"], "test.livequery_models.test_dapplooker__get_chart_status_202.4fedf28822": ["model.livequery_models.dapplooker__"], "test.livequery_models.test_claude__post_messages_only_one_message.ff8a12fc1b": ["model.livequery_models.claude__"], "test.livequery_models.test_claude__post_messages_with_model.7b5774fbf2": ["model.livequery_models.claude__"], "test.livequery_models.test_claude__post_messages_with_all_params.0917a032d2": ["model.livequery_models.claude__"], "test.livequery_models.test_claude__count_message_tokens.f5bafb2bce": ["model.livequery_models.claude__"], "test.livequery_models.test_claude__list_models.8516d777c7": ["model.livequery_models.claude__"], "test.livequery_models.test_claude__get_model.1f65c29a92": ["model.livequery_models.claude__"], "test.livequery_models.test_claude__post_messages_batch.63bf2a363f": ["model.livequery_models.claude__"], "test.livequery_models.test_claude__list_message_batches.df27ad85b6": ["model.livequery_models.claude__"], "test.livequery_models.test_claude_utils__post_api_status_200.fe926b326c": ["model.livequery_models.claude_utils__claude_utils"], "test.livequery_models.test_strangelove__get_status_200.0a58865924": ["model.livequery_models.strangelove__"], "test.livequery_models.test_fred__get_series_status_200.51822e30ca": ["model.livequery_models.fred__"], "test.livequery_models.test_espn__get_status_200.b4f84cc829": ["model.livequery_models.espn__"], "test.livequery_models.test_solscan_public_api_get__get_status_200.388381be71": ["model.livequery_models.solscan__"], "test.livequery_models.test_dappradar__get_status_200.979ea475dc": ["model.livequery_models.dappradar__"], "test.livequery_models.test_covalent__get_status_200.bb43bb7f69": ["model.livequery_models.covalent__"], "test.livequery_models.test_deepnftvalue__get_status_200.49fba544bb": ["model.livequery_models.deepnftvalue__"], "test.livequery_models.test_github_utils__octocat_status_200.7a9c72f57f": ["model.livequery_models.github_utils__github_utils"], "test.livequery_models.test_github_utils__headers_format.bf75978db7": ["model.livequery_models.github_utils__github_utils"], "test.livequery_models.test_github_utils__post_invalid_route.f060700fd1": ["model.livequery_models.github_utils__github_utils"], "test.livequery_models.test_github_utils__put_invalid_route.d361d590cf": ["model.livequery_models.github_utils__github_utils"], "test.livequery_models.test_github_actions__workflows_with_query.6ac4a8b3f9": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__workflows_simple.c1eaeaca38": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__runs_with_query.c134c002ca": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__runs_simple.fb19fd1022": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__workflow_runs_with_query.2cc7cb1189": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__workflow_runs_simple.3fae7a0ed4": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__workflow_dispatches_with_body.d94154911b": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__workflow_dispatches_simple.81f75f9435": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__workflow_enable.0b608e8267": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__workflow_disable.aefa4786d2": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__workflow_run_logs.9a9822b746": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__job_logs.5a2d0a3c80": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__workflow_run_jobs_with_query.4a098421bd": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__workflow_run_jobs_simple.3f673e1432": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__tf_workflows_with_query.55c801e96a": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__tf_workflows_simple.e309afa5b7": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__tf_runs_with_query.1164bd17ab": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__tf_runs_simple.e5cbf35e89": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__tf_workflow_runs_with_query.4108f0ee5c": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__tf_workflow_runs_simple.2677ffd8e8": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__tf_workflow_run_jobs_with_query.b6002abbe4": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__tf_workflow_run_jobs_simple.ddea8e10f5": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__tf_failed_jobs_with_logs.f99b7e9705": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__tf_failure_analysis_with_ai_cortex.f6b67b3893": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__tf_failure_analysis_with_ai_custom_prompt.9412c58df0": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__tf_failure_analysis_with_ai_default.f6378c5240": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_nftscan__get_status_200.33868e0f0d": ["model.livequery_models.nftscan__"], "test.livequery_models.test_chainbase_utils__get_status_200.07b6733652": ["model.livequery_models.chainbase_utils__"], "test.livequery_models.test_snapshot__query_status_200.35a2cffb40": ["model.livequery_models.snapshot__"], "test.livequery_models.test_reservoir__get_status_200.cb905ea233": ["model.livequery_models.reservoir__"], "test.livequery_models.test_defillama__get_status_200.95a3be7633": ["model.livequery_models.defillama__"], "test.livequery_models.test_bitquery__graphql_status_200.11917beb18": ["model.livequery_models.bitquery__"], "test.livequery_models.test_helius_apis__token_metadata_status_200.c2bafa3fb0": ["model.livequery_models.helius_apis__helius_utils"], "test.livequery_models.test_helius_apis__balances_status_200.d668884644": ["model.livequery_models.helius_apis__helius_utils"], "test.livequery_models.test_helius_apis__parse_transactions_status_200.71053900da": ["model.livequery_models.helius_apis__helius_utils"], "test.livequery_models.test_helius_das__get_asset_status_200.3e65208714": ["model.livequery_models.helius_das__helius_utils"], "test.livequery_models.test_helius_das__get_signatures_for_asset_status_200.529a6b605d": ["model.livequery_models.helius_das__helius_utils"], "test.livequery_models.test_helius_das__search_assets_status_200.2373c30616": ["model.livequery_models.helius_das__helius_utils"], "test.livequery_models.test_helius_das__get_asset_proof_status_200.2ed48f9fe3": ["model.livequery_models.helius_das__helius_utils"], "test.livequery_models.test_helius_das__get_assets_by_owner_status_200.6f2f1ef95c": ["model.livequery_models.helius_das__helius_utils"], "test.livequery_models.test_helius_das__get_assets_by_authority_status_200.c9ac02b165": ["model.livequery_models.helius_das__helius_utils"], "test.livequery_models.test_helius_das__get_assets_by_creator_status_200.e8cb071d3a": ["model.livequery_models.helius_das__helius_utils"], "test.livequery_models.test_helius_das__get_assets_by_group_status_200.fe5813195d": ["model.livequery_models.helius_das__helius_utils"], "test.livequery_models.test_playgrounds__query_subgraph_status_200_liquidity_pools.dfcb23f707": ["model.livequery_models.playgrounds__"], "test.livequery_models.test_playgrounds__query_subgraph_status_200_total_pool_count.86c8b9c6ee": ["model.livequery_models.playgrounds__"], "test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_status_200.94f0e0082e": ["model.livequery_models.quicknode_solana_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_by_creator_status_200.70f38f0e31": ["model.livequery_models.quicknode_solana_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_contract_address_status_200.529daa7446": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_symbol_status_200.d60e37734e": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_tokens__get_transactions_by_address_status_200.194093aade": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_balance_status_200.2bffddb733": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_transactions_status_200.57669f1a96": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nft_collection_details_status_200.5a3e5bd53e": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_status_200.e34b6fbe64": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_by_collection_status_200.ba7f5aeceb": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_nfts__get_transfers_by_nft_status_200.2e5143d642": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_nfts__verify_nfts_owner_status_200.34afbca510": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_nfts__fetch_nft_collection_details_status_200.b69737052b": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_status_200.2d1f2ae9d6": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_by_collection_status_200.8286191e06": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_nfts__get_transfers_by_nft_status_200.2f6ba1e185": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_nfts__verify_nfts_owner_status_200.e87bb12c13": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_contract_address_status_200.3d5c91f8e2": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_symbol_status_200.c34c43a92d": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_tokens__get_transactions_by_address_status_200.29d4ecb431": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_balance_status_200.9cda095850": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_transactions_status_200.990e59cd6c": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"], "test.livequery_models.test_footprint_utils__get_status_200_v2_protocol_info.4d260facf4": ["model.livequery_models.footprint_utils__footprint_utils"], "test.livequery_models.test_cmc__get_status_200.1e44de8c9e": ["model.livequery_models.cmc__"], "test.livequery_models.test_apilayer__get_status_200.f739b0d36b": ["model.livequery_models.apilayer__"], "test.livequery_models.test_alchemy_tokens__get_token_allowance_status_200.65ce803e24": ["model.livequery_models.alchemy_tokens__alchemy_utils"], "test.livequery_models.test_alchemy_tokens__get_token_balances_status_200.bdaa3fdabb": ["model.livequery_models.alchemy_tokens__alchemy_utils"], "test.livequery_models.test_alchemy_tokens__get_token_metadata_status_200.ff08820c76": ["model.livequery_models.alchemy_tokens__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_nfts_status_200.34e3001576": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_owners_for_token_status_200.c534c2579d": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_owners_for_collection_status_200.3cdb9f0962": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__is_holder_of_collection_status_200.d94f7ae355": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_contracts_for_owner_status_200.29e9e60296": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_nft_metadata_status_200.aad531a83a": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_nft_metadata_batch_status_200.44d0ef0140": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_contract_metadata_status_200.0a9337a17a": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_contract_metadata_batch_status_200.78a02ffe28": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__invalidate_contract_status_200.1ac32b4945": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__reingest_contract_status_200.3c2c45fd00": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__search_contract_metadata_status_200.1e97937b32": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_nfts_for_collection_status_200.f7ff9b5ee5": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_spam_contracts_status_200.b9dfb4e306": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__is_spam_contract_status_200.91af21989f": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__is_airdrop_status_200.58ce4f1bdc": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_floor_price_status_200.f2125d71e4": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_nft_sales_status_200.223f727f9f": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__compute_rarity_status_200.942425aa31": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__summarize_nft_attributes_status_200.99d7f57e35": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_transfers__get_asset_transfers_status_200.f1f3f416e4": ["model.livequery_models.alchemy_transfers__alchemy_utils"], "test.livequery_models.test__live_udf_api_batched_post_data_object.a3001533fa": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_batched_post_jsonrpc_ethereum_batch.aa4ed0976f": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_batched_post_jsonrpc_solana.7027aa9022": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_post_data_object.f511b76342": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_post_data_array.e6efede8c7": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_post_data_string.4024bc8c29": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_get_method.7f6dfcd143": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_get_with_params.b0e789f509": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_post_batch_jsonrpc.6afc146ed1": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_post_jsonrpc_solana.b20463bfb3": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_post_jsonrpc_solana_batch.9386763d93": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_post_jsonrpc_ethereum_batch.3c9cd0b4df": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_post_data_object_sync.071fa239ad": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_post_data_array_sync.b8411aa263": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_post_data_string_sync.fe8f3757c8": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_get_method_sync.8122eddb3f": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_post_batch_jsonrpc_sync.b36bc00504": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_get_with_params_sync.147b3736ae": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_sync.59f97e4649": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_batch_sync.cb3ec63e3a": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_ethereum_batch_sync.71d7b6dbb6": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_get_with_params_async.b056833455": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_async.a018ed6e96": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_batch_async.7f045a7b4a": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_ethereum_batch_async.95f5f5b561": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_get_with_headers_is_async_true.cfc2645199": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_get_with_headers_is_async_false.e9e1befac4": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_full_signature_is_async_true.604199ea45": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_full_signature_is_async_false.0b97d59b38": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_is_async_true.81e24f5936": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_is_async_false.e9d84deb2e": ["model.livequery_models.live"], "test.livequery_models.test___utils_udf_introspect.79bd27a18b": ["model.livequery_models._utils"], "test.livequery_models.test__utils_udf_json_rpc_call.0b87c6050e": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_true_1.3bf42c4e1b": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_true_2.764afd6db8": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_true_space.11f0932fc3": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_true_special.4eef6cb355": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_true_array.614d53ca8a": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_false_1.e2e07ad77a": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_false_2.58739709ab": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_false_space.1167d3f089": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_false_special.0cd3cb5826": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_false_array.9524cea2e8": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_1.1d75f92e0e": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_2.60da312d8c": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_space.d5e1917fd6": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_special.6f25d30fd9": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_array.25f6af5cf8": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_true_1.f1dc90fd5d": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_true_2.4c09ca3de2": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_true_space.c150fa3544": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_true_special.14abbd82f3": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_true_array.559475a80a": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_false_1.ffe0d93235": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_false_2.f6e4d9a06a": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_false_space.c46a422a10": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_false_special.ad3b4ce496": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_false_array.979bfafd11": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_1.bae96ece17": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_2.ff2898d4a2": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_space.67b6f51498": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_special.746423269a": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_array.3d05dcb6a9": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_int_to_binary.46856460db": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_int_to_binary_large_number.feba996e3b": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_binary_to_int.907b20f381": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_binary_to_int_large_number.926bff44e9": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_evm_decode_log.b6fedb07e9": ["model.livequery_models.utils"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__verified_abis_recent_CONTRACT_ADDRESS.788bba3ee1": ["model.fsc_evm.test_silver__verified_abis_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__verified_abis_full_CONTRACT_ADDRESS.15e49a38cc": ["model.fsc_evm.test_silver__verified_abis_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__user_verified_abis_recent_ID.053fe12111": ["model.fsc_evm.test_silver__user_verified_abis_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__user_verified_abis_full_ID.8832906bf1": ["model.fsc_evm.test_silver__user_verified_abis_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__bytecode_abis_full_CONTRACT_ADDRESS__ABI_HASH.111a1fed7f": ["model.fsc_evm.test_silver__bytecode_abis_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__bytecode_abis_recent_CONTRACT_ADDRESS__ABI_HASH.eab02f6812": ["model.fsc_evm.test_silver__bytecode_abis_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__abis_full_CONTRACT_ADDRESS.6bc2b660ff": ["model.fsc_evm.test_silver__abis_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__abis_recent_CONTRACT_ADDRESS.136d8d9ae5": ["model.fsc_evm.test_silver__abis_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__complete_event_abis_full_PARENT_CONTRACT_ADDRESS__EVENT_SIGNATURE__START_BLOCK.81837f99b9": ["model.fsc_evm.test_silver__complete_event_abis_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__complete_event_abis_recent_PARENT_CONTRACT_ADDRESS__EVENT_SIGNATURE__START_BLOCK.f72f3b769f": ["model.fsc_evm.test_silver__complete_event_abis_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__dim_contract_abis_recent_CONTRACT_ADDRESS.4dc01d4661": ["model.fsc_evm.test_gold__dim_contract_abis_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__dim_contract_abis_full_CONTRACT_ADDRESS.fca68d5e2f": ["model.fsc_evm.test_gold__dim_contract_abis_full"], "test.fsc_evm.not_null_test_silver__decoded_logs_full_BLOCK_NUMBER.56f1e895c0": ["model.fsc_evm.test_silver__decoded_logs_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_BLOCK_NUMBER__NUMBER__FLOAT.76675adfdf": ["model.fsc_evm.test_silver__decoded_logs_full"], "test.fsc_evm.not_null_test_silver__decoded_logs_full_TX_HASH.9bc0884cbc": ["model.fsc_evm.test_silver__decoded_logs_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_full_TX_HASH__0_xX_0_9a_fA_F_.abdf44d14a": ["model.fsc_evm.test_silver__decoded_logs_full"], "test.fsc_evm.not_null_test_silver__decoded_logs_full_EVENT_INDEX.d402882c82": ["model.fsc_evm.test_silver__decoded_logs_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_EVENT_INDEX__NUMBER__FLOAT.f03fc2121b": ["model.fsc_evm.test_silver__decoded_logs_full"], "test.fsc_evm.not_null_test_silver__decoded_logs_full_CONTRACT_ADDRESS.38ce06a72b": ["model.fsc_evm.test_silver__decoded_logs_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.11ad7f4a46": ["model.fsc_evm.test_silver__decoded_logs_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_EVENT_NAME__STRING__VARCHAR.d6989542d6": ["model.fsc_evm.test_silver__decoded_logs_full"], "test.fsc_evm.not_null_test_silver__decoded_logs_full_INSERTED_TIMESTAMP.947b1ded8c": ["model.fsc_evm.test_silver__decoded_logs_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_full_INSERTED_TIMESTAMP__hour__2.6d11a12f63": ["model.fsc_evm.test_silver__decoded_logs_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.6468c94ec8": ["model.fsc_evm.test_silver__decoded_logs_full"], "test.fsc_evm.not_null_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP.80dc3c0d89": ["model.fsc_evm.test_silver__decoded_logs_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP__hour__2.23d29858c5": ["model.fsc_evm.test_silver__decoded_logs_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.a1e69a24d9": ["model.fsc_evm.test_silver__decoded_logs_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__decoded_logs_full_DECODED_LOGS_ID.537938d81c": ["model.fsc_evm.test_silver__decoded_logs_full"], "test.fsc_evm.not_null_test_silver__decoded_logs_recent_BLOCK_NUMBER.c8ab501b30": ["model.fsc_evm.test_silver__decoded_logs_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_BLOCK_NUMBER__NUMBER__FLOAT.7feb70f478": ["model.fsc_evm.test_silver__decoded_logs_recent"], "test.fsc_evm.not_null_test_silver__decoded_logs_recent_TX_HASH.6dfd6d6fcb": ["model.fsc_evm.test_silver__decoded_logs_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_recent_TX_HASH__0_xX_0_9a_fA_F_.994fffe1a9": ["model.fsc_evm.test_silver__decoded_logs_recent"], "test.fsc_evm.not_null_test_silver__decoded_logs_recent_EVENT_INDEX.a1b3a9a86b": ["model.fsc_evm.test_silver__decoded_logs_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_EVENT_INDEX__NUMBER__FLOAT.722a3594c3": ["model.fsc_evm.test_silver__decoded_logs_recent"], "test.fsc_evm.not_null_test_silver__decoded_logs_recent_CONTRACT_ADDRESS.4a09b257d3": ["model.fsc_evm.test_silver__decoded_logs_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.585a24330b": ["model.fsc_evm.test_silver__decoded_logs_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_EVENT_NAME__STRING__VARCHAR.4459c81b7f": ["model.fsc_evm.test_silver__decoded_logs_recent"], "test.fsc_evm.not_null_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP.33bd9eb14a": ["model.fsc_evm.test_silver__decoded_logs_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP__hour__2.24ba46645f": ["model.fsc_evm.test_silver__decoded_logs_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b467671a96": ["model.fsc_evm.test_silver__decoded_logs_recent"], "test.fsc_evm.not_null_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP.2bbb0bb170": ["model.fsc_evm.test_silver__decoded_logs_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP__hour__2.4e95ef6f32": ["model.fsc_evm.test_silver__decoded_logs_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.76e468aa1e": ["model.fsc_evm.test_silver__decoded_logs_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__decoded_logs_recent_DECODED_LOGS_ID.2bf95e427e": ["model.fsc_evm.test_silver__decoded_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_BLOCK_NUMBER.306b0da6a0": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP.9672b7c6fa": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP__hour__2.7139c09429": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.0db12ac511": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_HASH.3a5ade2127": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_POSITION.1f5c16c4dd": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_INDEX.db8d2710d0": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_CONTRACT_ADDRESS.8ee97e9829": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TOPICS.03f5444318": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TOPIC_0.852a0e07f6": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_DATA.4c46b98652": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_REMOVED.c806d11add": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_ORIGIN_FROM_ADDRESS.3db9f8fabd": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_ORIGIN_FUNCTION_SIGNATURE.d94e4328a7": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_SUCCEEDED.ac8e3e83cb": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_NAME.a9a7c84d87": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_FULL_DECODED_LOG.7265873d57": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_DECODED_LOG.2f64537edd": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID.6d0c115405": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP.51f3049a5d": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP__hour__2.ffec548ee5": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.5c1c155df0": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP.73cd55cf8f": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP__hour__2.88cff525bb": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3b4c0128b9": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID.c654ef3a67": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full"], "test.fsc_evm.decoded_logs_exist_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_.2508ca290d": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full", "model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.find_missing_decoded_logs_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_.8f9f593cec": ["model.fsc_evm.test_gold__ez_decoded_event_logs_full", "model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_NUMBER.884d6d2b35": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP.de99ef8ef5": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP__hour__2.94ca90acca": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3f16df36a6": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_HASH.7d31037652": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_POSITION.84f236ac88": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_INDEX.cd56f89c46": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_CONTRACT_ADDRESS.447bc5cf3b": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TOPICS.599ba528df": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TOPIC_0.ddb723fd73": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_DATA.4dbf00dd37": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_REMOVED.83b01d4a77": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_ORIGIN_FROM_ADDRESS.66479f9f70": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE.861f210c46": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_SUCCEEDED.453d880cda": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_NAME.b876563dc0": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_FULL_DECODED_LOG.8ee9749eea": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_DECODED_LOG.13e8c88a61": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID.45c5e0316f": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP.1571060655": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP__hour__2.1af0e5a39c": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.8c6610e7ff": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP.5dc86f315d": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP__hour__2.67b262c997": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d286ab4bf8": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID.17989a1b4f": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent"], "test.fsc_evm.decoded_logs_exist_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_.e2d790a075": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent", "model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.find_missing_decoded_logs_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_.995b3759d0": ["model.fsc_evm.test_gold__ez_decoded_event_logs_recent", "model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.not_null_admin__fact_variables_PROJECT.b2ca5d3a9e": ["model.fsc_evm.admin__fact_variables"], "test.fsc_evm.not_null_admin__fact_variables_KEY.d5252aea36": ["model.fsc_evm.admin__fact_variables"], "test.fsc_evm.not_null_admin__fact_variables_VALUE.80c7190528": ["model.fsc_evm.admin__fact_variables"], "test.fsc_evm.not_null_admin__fact_variables_FACT_VARIABLES_ID.c6bac6e9b3": ["model.fsc_evm.admin__fact_variables"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__fact_variables_FACT_VARIABLES_ID.28a6685d8c": ["model.fsc_evm.admin__fact_variables"], "test.fsc_evm.not_null_admin__dim_variables_KEY.ad438e63ea": ["model.fsc_evm.admin__dim_variables"], "test.fsc_evm.not_null_admin__dim_variables_DEFAULT_VALUE.5be079ad3d": ["model.fsc_evm.admin__dim_variables"], "test.fsc_evm.not_null_admin__dim_variables_DEFAULT_TYPE.ec8ae8bee2": ["model.fsc_evm.admin__dim_variables"], "test.fsc_evm.not_null_admin__dim_variables_DIM_VARIABLES_ID.f1639e77e6": ["model.fsc_evm.admin__dim_variables"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__dim_variables_DIM_VARIABLES_ID.9de48d7fec": ["model.fsc_evm.admin__dim_variables"], "test.fsc_evm.not_null_admin__ez_variables_PROJECT.59fd01d4c5": ["model.fsc_evm.admin__ez_variables"], "test.fsc_evm.not_null_admin__ez_variables_KEY.4fc63e44ee": ["model.fsc_evm.admin__ez_variables"], "test.fsc_evm.not_null_admin__ez_variables_VALUE.72a144dfd6": ["model.fsc_evm.admin__ez_variables"], "test.fsc_evm.not_null_admin__ez_variables_DEFAULT_VALUE.262d6c41bd": ["model.fsc_evm.admin__ez_variables"], "test.fsc_evm.not_null_admin__ez_variables_DEFAULT_TYPE.341521dabe": ["model.fsc_evm.admin__ez_variables"], "test.fsc_evm.not_null_admin__ez_variables_EZ_VARIABLES_ID.1d9b2c9591": ["model.fsc_evm.admin__ez_variables"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__ez_variables_EZ_VARIABLES_ID.3ed824ce43": ["model.fsc_evm.admin__ez_variables"], "test.fsc_evm.not_null_admin__number_sequence__ID.1f1a84eef0": ["model.fsc_evm.admin__number_sequence"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__number_sequence__ID.e4808fe515": ["model.fsc_evm.admin__number_sequence"], "test.fsc_evm.not_null_silver__labels_BLOCKCHAIN.4d07b6112c": ["model.fsc_evm.silver__labels"], "test.fsc_evm.not_null_silver__labels_CREATOR.5f7302f7be": ["model.fsc_evm.silver__labels"], "test.fsc_evm.not_null_silver__labels_ADDRESS.88df57a9e0": ["model.fsc_evm.silver__labels"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__labels_ADDRESS__0_xX_0_9a_fA_F_.4d2099651b": ["model.fsc_evm.silver__labels"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_ADDRESS_NAME__STRING__VARCHAR.b440cff40f": ["model.fsc_evm.silver__labels"], "test.fsc_evm.not_null_silver__labels_LABEL_TYPE.3b980ae2db": ["model.fsc_evm.silver__labels"], "test.fsc_evm.not_null_silver__labels_LABEL_SUBTYPE.01346344a7": ["model.fsc_evm.silver__labels"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_LABEL_SUBTYPE__STRING__VARCHAR.c6eb320168": ["model.fsc_evm.silver__labels"], "test.fsc_evm.not_null_silver__labels_PROJECT_NAME.c87a158893": ["model.fsc_evm.silver__labels"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_PROJECT_NAME__STRING__VARCHAR.81fdcfbdf9": ["model.fsc_evm.silver__labels"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__labels_BLOCKCHAIN__CREATOR__ADDRESS.8355a7dbdd": ["model.fsc_evm.silver__labels"], "test.fsc_evm.not_null_test_silver__traces_recent_BLOCK_NUMBER.77a4699f36": ["model.fsc_evm.test_silver__traces_recent"], "test.fsc_evm.not_null_test_silver__traces_recent_TX_POSITION.92be43f8d5": ["model.fsc_evm.test_silver__traces_recent"], "test.fsc_evm.not_null_test_silver__traces_recent_TRACE_ADDRESS.7c6de48691": ["model.fsc_evm.test_silver__traces_recent"], "test.fsc_evm.not_null_test_silver__traces_recent_TRACE_JSON.904b3c8953": ["model.fsc_evm.test_silver__traces_recent"], "test.fsc_evm.not_null_test_silver__traces_recent__INSERTED_TIMESTAMP.29dedb5f0f": ["model.fsc_evm.test_silver__traces_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent__INSERTED_TIMESTAMP__hour__2.bd68103a61": ["model.fsc_evm.test_silver__traces_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.bc16a42d4e": ["model.fsc_evm.test_silver__traces_recent"], "test.fsc_evm.not_null_test_silver__traces_recent_INSERTED_TIMESTAMP.4f0efcf34b": ["model.fsc_evm.test_silver__traces_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent_INSERTED_TIMESTAMP__hour__2.a4ba5cf674": ["model.fsc_evm.test_silver__traces_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.78e1fb01e0": ["model.fsc_evm.test_silver__traces_recent"], "test.fsc_evm.not_null_test_silver__traces_recent_MODIFIED_TIMESTAMP.c50eaa6905": ["model.fsc_evm.test_silver__traces_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent_MODIFIED_TIMESTAMP__hour__2.f7eb4af9c0": ["model.fsc_evm.test_silver__traces_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.640b8be095": ["model.fsc_evm.test_silver__traces_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__traces_recent_TRACES_ID.f53f7f25ae": ["model.fsc_evm.test_silver__traces_recent"], "test.fsc_evm.not_null_test_silver__traces_full_BLOCK_NUMBER.ab8fe90ce8": ["model.fsc_evm.test_silver__traces_full"], "test.fsc_evm.not_null_test_silver__traces_full_TX_POSITION.663fe545e9": ["model.fsc_evm.test_silver__traces_full"], "test.fsc_evm.not_null_test_silver__traces_full_TRACE_ADDRESS.91648874f9": ["model.fsc_evm.test_silver__traces_full"], "test.fsc_evm.not_null_test_silver__traces_full_TRACE_JSON.2c7accaa84": ["model.fsc_evm.test_silver__traces_full"], "test.fsc_evm.not_null_test_silver__traces_full__INSERTED_TIMESTAMP.c33692687a": ["model.fsc_evm.test_silver__traces_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full__INSERTED_TIMESTAMP__hour__2.8beb22e4b2": ["model.fsc_evm.test_silver__traces_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.10c3de9ee1": ["model.fsc_evm.test_silver__traces_full"], "test.fsc_evm.not_null_test_silver__traces_full_INSERTED_TIMESTAMP.ab90de5f2b": ["model.fsc_evm.test_silver__traces_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full_INSERTED_TIMESTAMP__hour__2.316bf2d6b0": ["model.fsc_evm.test_silver__traces_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.254ed0fd41": ["model.fsc_evm.test_silver__traces_full"], "test.fsc_evm.not_null_test_silver__traces_full_MODIFIED_TIMESTAMP.73532cff85": ["model.fsc_evm.test_silver__traces_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full_MODIFIED_TIMESTAMP__hour__2.d8baad76f3": ["model.fsc_evm.test_silver__traces_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.691866e8c0": ["model.fsc_evm.test_silver__traces_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__traces_full_TRACES_ID.9083101264": ["model.fsc_evm.test_silver__traces_full"], "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_BLOCK_NUMBER.4357645cb7": ["model.fsc_evm.test_silver__confirm_blocks_recent"], "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_TX_HASH.7f8b64f808": ["model.fsc_evm.test_silver__confirm_blocks_recent"], "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP.673cf1e88f": ["model.fsc_evm.test_silver__confirm_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP__hour__8.7a2d73b21b": ["model.fsc_evm.test_silver__confirm_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.6f365bb04d": ["model.fsc_evm.test_silver__confirm_blocks_recent"], "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID.ec8360ef95": ["model.fsc_evm.test_silver__confirm_blocks_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID.078268d9c9": ["model.fsc_evm.test_silver__confirm_blocks_recent"], "test.fsc_evm.not_null_test_silver__confirm_blocks_full_BLOCK_NUMBER.acad1c43e7": ["model.fsc_evm.test_silver__confirm_blocks_full"], "test.fsc_evm.not_null_test_silver__confirm_blocks_full_TX_HASH.670ec66eec": ["model.fsc_evm.test_silver__confirm_blocks_full"], "test.fsc_evm.not_null_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP.6a2a4b0667": ["model.fsc_evm.test_silver__confirm_blocks_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP__hour__8.64521c931b": ["model.fsc_evm.test_silver__confirm_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b66a5f5fde": ["model.fsc_evm.test_silver__confirm_blocks_full"], "test.fsc_evm.not_null_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID.6dbbf2334b": ["model.fsc_evm.test_silver__confirm_blocks_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID.7a1d987054": ["model.fsc_evm.test_silver__confirm_blocks_full"], "test.fsc_evm.not_null_test_silver__blocks_recent_BLOCK_NUMBER.cec2c84102": ["model.fsc_evm.test_silver__blocks_recent"], "test.fsc_evm.not_null_test_silver__blocks_recent_BLOCK_JSON.aabd0a98d5": ["model.fsc_evm.test_silver__blocks_recent"], "test.fsc_evm.not_null_test_silver__blocks_recent__INSERTED_TIMESTAMP.071a17cc08": ["model.fsc_evm.test_silver__blocks_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent__INSERTED_TIMESTAMP__hour__2.fb61245227": ["model.fsc_evm.test_silver__blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e3a06da0df": ["model.fsc_evm.test_silver__blocks_recent"], "test.fsc_evm.not_null_test_silver__blocks_recent_INSERTED_TIMESTAMP.0004e5d07b": ["model.fsc_evm.test_silver__blocks_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent_INSERTED_TIMESTAMP__hour__2.5a605c6511": ["model.fsc_evm.test_silver__blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.8f37f2afc2": ["model.fsc_evm.test_silver__blocks_recent"], "test.fsc_evm.not_null_test_silver__blocks_recent_MODIFIED_TIMESTAMP.d5c1fe9610": ["model.fsc_evm.test_silver__blocks_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent_MODIFIED_TIMESTAMP__hour__2.f4efbc4d10": ["model.fsc_evm.test_silver__blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.53bf4df35e": ["model.fsc_evm.test_silver__blocks_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__blocks_recent_BLOCK_NUMBER.0239d065a4": ["model.fsc_evm.test_silver__blocks_recent"], "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__blocks_recent_BLOCK_NUMBER.a11e2bbd58": ["model.fsc_evm.test_silver__blocks_recent"], "test.fsc_evm.not_null_test_silver__blocks_full_BLOCK_NUMBER.3b7e4315a5": ["model.fsc_evm.test_silver__blocks_full"], "test.fsc_evm.not_null_test_silver__blocks_full_BLOCK_JSON.0bc7eee26e": ["model.fsc_evm.test_silver__blocks_full"], "test.fsc_evm.not_null_test_silver__blocks_full__INSERTED_TIMESTAMP.1d36f7af40": ["model.fsc_evm.test_silver__blocks_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full__INSERTED_TIMESTAMP__hour__2.00b41ab86e": ["model.fsc_evm.test_silver__blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.f23f93c193": ["model.fsc_evm.test_silver__blocks_full"], "test.fsc_evm.not_null_test_silver__blocks_full_INSERTED_TIMESTAMP.37557f958c": ["model.fsc_evm.test_silver__blocks_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full_INSERTED_TIMESTAMP__hour__2.cf055b5ea3": ["model.fsc_evm.test_silver__blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4d5ee11ce4": ["model.fsc_evm.test_silver__blocks_full"], "test.fsc_evm.not_null_test_silver__blocks_full_MODIFIED_TIMESTAMP.463b450a84": ["model.fsc_evm.test_silver__blocks_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full_MODIFIED_TIMESTAMP__hour__2.ba9359c374": ["model.fsc_evm.test_silver__blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.22abd38316": ["model.fsc_evm.test_silver__blocks_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__blocks_full_BLOCK_NUMBER.be5f891d6b": ["model.fsc_evm.test_silver__blocks_full"], "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__blocks_full_BLOCK_NUMBER.67e6cd85ce": ["model.fsc_evm.test_silver__blocks_full"], "test.fsc_evm.not_null_test_silver__contracts_recent_CONTRACT_ADDRESS.037aff5161": ["model.fsc_evm.test_silver__contracts_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__contracts_recent_CONTRACT_ADDRESS.86e2c4e62c": ["model.fsc_evm.test_silver__contracts_recent"], "test.fsc_evm.not_null_test_silver__contracts_full_CONTRACT_ADDRESS.1e6edb77c6": ["model.fsc_evm.test_silver__contracts_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__contracts_full_CONTRACT_ADDRESS.0763359ca5": ["model.fsc_evm.test_silver__contracts_full"], "test.fsc_evm.not_null_test_silver__created_contracts_full_BLOCK_TIMESTAMP.656e8a5526": ["model.fsc_evm.test_silver__created_contracts_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_full_BLOCK_TIMESTAMP__day__1.47c627b66b": ["model.fsc_evm.test_silver__created_contracts_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_full_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.3cf23748a5": ["model.fsc_evm.test_silver__created_contracts_full"], "test.fsc_evm.not_null_test_silver__created_contracts_full__INSERTED_TIMESTAMP.c6b7aec473": ["model.fsc_evm.test_silver__created_contracts_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_full__INSERTED_TIMESTAMP__day__1.f18b9fe607": ["model.fsc_evm.test_silver__created_contracts_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_full__INSERTED_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.8c87acbb48": ["model.fsc_evm.test_silver__created_contracts_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__created_contracts_full_created_contract_address.e21b0009b3": ["model.fsc_evm.test_silver__created_contracts_full"], "test.fsc_evm.not_null_test_silver__created_contracts_recent_BLOCK_TIMESTAMP.734876c6a9": ["model.fsc_evm.test_silver__created_contracts_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_recent_BLOCK_TIMESTAMP__day__1.0c68c9f927": ["model.fsc_evm.test_silver__created_contracts_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_recent_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.3661419d77": ["model.fsc_evm.test_silver__created_contracts_recent"], "test.fsc_evm.not_null_test_silver__created_contracts_recent__INSERTED_TIMESTAMP.f3206a6f1a": ["model.fsc_evm.test_silver__created_contracts_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_recent__INSERTED_TIMESTAMP__day__1.ca46deddf6": ["model.fsc_evm.test_silver__created_contracts_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_recent__INSERTED_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.f0ec5f4645": ["model.fsc_evm.test_silver__created_contracts_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__created_contracts_recent_created_contract_address.5c757b7d79": ["model.fsc_evm.test_silver__created_contracts_recent"], "test.fsc_evm.not_null_test_silver__receipts_full_BLOCK_NUMBER.b8318adb18": ["model.fsc_evm.test_silver__receipts_full"], "test.fsc_evm.not_null_test_silver__receipts_full_RECEIPTS_JSON.60e73b67be": ["model.fsc_evm.test_silver__receipts_full"], "test.fsc_evm.not_null_test_silver__receipts_full__INSERTED_TIMESTAMP.daab58d3d3": ["model.fsc_evm.test_silver__receipts_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full__INSERTED_TIMESTAMP__hour__2.4c5fd60675": ["model.fsc_evm.test_silver__receipts_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.63454383b5": ["model.fsc_evm.test_silver__receipts_full"], "test.fsc_evm.not_null_test_silver__receipts_full_INSERTED_TIMESTAMP.eba05ceee3": ["model.fsc_evm.test_silver__receipts_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full_INSERTED_TIMESTAMP__hour__2.efed27386e": ["model.fsc_evm.test_silver__receipts_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.f626a67c39": ["model.fsc_evm.test_silver__receipts_full"], "test.fsc_evm.not_null_test_silver__receipts_full_MODIFIED_TIMESTAMP.23b69b4875": ["model.fsc_evm.test_silver__receipts_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full_MODIFIED_TIMESTAMP__hour__2.89a13f7252": ["model.fsc_evm.test_silver__receipts_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c6d76da598": ["model.fsc_evm.test_silver__receipts_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__receipts_full_RECEIPTS_ID.443fd400ca": ["model.fsc_evm.test_silver__receipts_full"], "test.fsc_evm.not_null_test_silver__receipts_recent_BLOCK_NUMBER.a025315ae3": ["model.fsc_evm.test_silver__receipts_recent"], "test.fsc_evm.not_null_test_silver__receipts_recent_RECEIPTS_JSON.edca36b9ab": ["model.fsc_evm.test_silver__receipts_recent"], "test.fsc_evm.not_null_test_silver__receipts_recent__INSERTED_TIMESTAMP.3caff14157": ["model.fsc_evm.test_silver__receipts_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent__INSERTED_TIMESTAMP__hour__2.33483a04fc": ["model.fsc_evm.test_silver__receipts_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7652c2220b": ["model.fsc_evm.test_silver__receipts_recent"], "test.fsc_evm.not_null_test_silver__receipts_recent_INSERTED_TIMESTAMP.30ae8bca8d": ["model.fsc_evm.test_silver__receipts_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent_INSERTED_TIMESTAMP__hour__2.c1b0f8737b": ["model.fsc_evm.test_silver__receipts_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.baec638420": ["model.fsc_evm.test_silver__receipts_recent"], "test.fsc_evm.not_null_test_silver__receipts_recent_MODIFIED_TIMESTAMP.4d91715550": ["model.fsc_evm.test_silver__receipts_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent_MODIFIED_TIMESTAMP__hour__2.30705ba06a": ["model.fsc_evm.test_silver__receipts_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.1cbb56fb12": ["model.fsc_evm.test_silver__receipts_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__receipts_recent_RECEIPTS_ID.72c2ba1bb5": ["model.fsc_evm.test_silver__receipts_recent"], "test.fsc_evm.not_null_test_silver__transactions_recent_BLOCK_NUMBER.de7069ea97": ["model.fsc_evm.test_silver__transactions_recent"], "test.fsc_evm.not_null_test_silver__transactions_recent_TX_POSITION.bf77824ca2": ["model.fsc_evm.test_silver__transactions_recent"], "test.fsc_evm.not_null_test_silver__transactions_recent_TRANSACTION_JSON.fd6c02a4c1": ["model.fsc_evm.test_silver__transactions_recent"], "test.fsc_evm.not_null_test_silver__transactions_recent__INSERTED_TIMESTAMP.88fde180fc": ["model.fsc_evm.test_silver__transactions_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent__INSERTED_TIMESTAMP__hour__2.e62a731dc8": ["model.fsc_evm.test_silver__transactions_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.dadf3a2ece": ["model.fsc_evm.test_silver__transactions_recent"], "test.fsc_evm.not_null_test_silver__transactions_recent_INSERTED_TIMESTAMP.ca4e4a608d": ["model.fsc_evm.test_silver__transactions_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent_INSERTED_TIMESTAMP__hour__2.17e59f939c": ["model.fsc_evm.test_silver__transactions_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.9fe6abc15c": ["model.fsc_evm.test_silver__transactions_recent"], "test.fsc_evm.not_null_test_silver__transactions_recent_MODIFIED_TIMESTAMP.6a9e4ad896": ["model.fsc_evm.test_silver__transactions_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent_MODIFIED_TIMESTAMP__hour__2.0fc697aad1": ["model.fsc_evm.test_silver__transactions_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.9d61391097": ["model.fsc_evm.test_silver__transactions_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__transactions_recent_TRANSACTIONS_ID.7c9f74baa9": ["model.fsc_evm.test_silver__transactions_recent"], "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__transactions_recent_TX_POSITION__BLOCK_NUMBER.3be96c2d1d": ["model.fsc_evm.test_silver__transactions_recent"], "test.fsc_evm.not_null_test_silver__transactions_full_BLOCK_NUMBER.10f008705d": ["model.fsc_evm.test_silver__transactions_full"], "test.fsc_evm.not_null_test_silver__transactions_full_TX_POSITION.0f91433ce2": ["model.fsc_evm.test_silver__transactions_full"], "test.fsc_evm.not_null_test_silver__transactions_full_TRANSACTION_JSON.5c28fd61a2": ["model.fsc_evm.test_silver__transactions_full"], "test.fsc_evm.not_null_test_silver__transactions_full__INSERTED_TIMESTAMP.e767bd3e15": ["model.fsc_evm.test_silver__transactions_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full__INSERTED_TIMESTAMP__hour__2.461c571e72": ["model.fsc_evm.test_silver__transactions_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.dce86b4eb0": ["model.fsc_evm.test_silver__transactions_full"], "test.fsc_evm.not_null_test_silver__transactions_full_INSERTED_TIMESTAMP.ca671e00f0": ["model.fsc_evm.test_silver__transactions_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full_INSERTED_TIMESTAMP__hour__2.e9cf80dd1c": ["model.fsc_evm.test_silver__transactions_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.46c3120d2d": ["model.fsc_evm.test_silver__transactions_full"], "test.fsc_evm.not_null_test_silver__transactions_full_MODIFIED_TIMESTAMP.8ce00858b9": ["model.fsc_evm.test_silver__transactions_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full_MODIFIED_TIMESTAMP__hour__2.fd041d9a4a": ["model.fsc_evm.test_silver__transactions_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d1737769ad": ["model.fsc_evm.test_silver__transactions_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__transactions_full_TRANSACTIONS_ID.b3643be5d1": ["model.fsc_evm.test_silver__transactions_full"], "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__transactions_full_TX_POSITION__BLOCK_NUMBER.a64778c1c0": ["model.fsc_evm.test_silver__transactions_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__proxies_full__ID.bab8372ca0": ["model.fsc_evm.test_silver__proxies_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__proxies_recent__ID.0c4929fb5b": ["model.fsc_evm.test_silver__proxies_recent"], "test.fsc_evm.not_null_streamline__get_chainhead_BLOCK_NUMBER.504ea108a4": ["model.fsc_evm.streamline__get_chainhead"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_BLOCK_NUMBER.d457327d7c": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_BLOCK_NUMBER__NUMBER__FLOAT.31727446c1": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_BLOCK_TIMESTAMP.cda64f37d1": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_BLOCK_TIMESTAMP__hour__2.d62edf20de": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3a97986c59": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_HASH.fdd1a78f2f": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_TX_HASH__0_xX_0_9a_fA_F_.f88bea7ab6": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_POSITION.cd5aab01f0": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_TX_POSITION__NUMBER__FLOAT.81ee6df17c": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_INDEX.00c0917eec": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_TRACE_INDEX__NUMBER__FLOAT.0fb959327e": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_FROM_ADDRESS.e42c02340f": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.6f01aa59cb": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.ffc328a26e": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_INPUT.b4e1faa8be": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_TYPE.d15c335bcb": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_ADDRESS.86ed5a1d98": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_SUB_TRACES.4cb72b9d8c": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE.8b0bc69a85": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_PRECISE_RAW.0c0dcc217b": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_PRECISE.d873ec7feb": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_HEX.7a2a3e4634": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_ORIGIN_FROM_ADDRESS.bc94384fb7": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_ORIGIN_FUNCTION_SIGNATURE.f967f0e608": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_SUCCEEDED.9a3cc510bc": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_SUCCEEDED.e488b18268": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_FACT_TRACES_ID.5ec564f014": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_INSERTED_TIMESTAMP.fe2de85a12": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_INSERTED_TIMESTAMP__hour__2.6a5297f507": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP.7dd9cf25d3": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP__hour__2.d8b7ffcaca": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_traces_recent_TX_HASH__TRACE_INDEX.4487675007": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_traces_recent_TRACE_INDEX__TX_HASH.6c15fc0c52": ["model.fsc_evm.test_gold__fact_traces_recent"], "test.fsc_evm.txs_have_traces_test_gold__fact_traces_recent_ref_test_gold__fact_transactions_recent_.5b2a8b5ca4": ["model.fsc_evm.test_gold__fact_traces_recent", "model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_traces_full_BLOCK_NUMBER.ef072a7cea": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_BLOCK_NUMBER__NUMBER__FLOAT.065c833ed1": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_BLOCK_TIMESTAMP.f598b4bc90": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_BLOCK_TIMESTAMP__hour__2.6b827e0d56": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4682c97f81": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_HASH.7af5bb693e": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_TX_HASH__0_xX_0_9a_fA_F_.a50cc790b3": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_POSITION.d76ba851b9": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_TX_POSITION__NUMBER__FLOAT.6c3cd6ac49": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_INDEX.0ec0ee0f92": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_TRACE_INDEX__NUMBER__FLOAT.fbac1ab3f2": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_FROM_ADDRESS.527a050b74": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.7b65729d3c": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_TO_ADDRESS__0_xX_0_9a_fA_F_.f8d47ec7e6": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_INPUT.72da83c733": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_TYPE.dd106bd70a": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_ADDRESS.daabd36c03": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_SUB_TRACES.0335817c13": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE.a5c2d5cb74": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_PRECISE_RAW.d1e83172a7": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_PRECISE.f5a509ff49": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_HEX.1a5a1ee8a5": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_ORIGIN_FROM_ADDRESS.8987e52474": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_ORIGIN_FUNCTION_SIGNATURE.d3332ad3dd": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_SUCCEEDED.3fd972f5b7": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_SUCCEEDED.217432b07d": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_FACT_TRACES_ID.abf9596ec6": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_INSERTED_TIMESTAMP.b2ca0ceed2": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_INSERTED_TIMESTAMP__hour__2.eae85b300c": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__fact_traces_full_MODIFIED_TIMESTAMP.3f799b0371": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_MODIFIED_TIMESTAMP__hour__2.d9cadbf789": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_traces_full_TX_HASH__TRACE_INDEX.7f6d6a8ebe": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_traces_full_TRACE_INDEX__TX_HASH.4c79dbc511": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.txs_have_traces_test_gold__fact_traces_full_ref_test_gold__fact_transactions_full_.1c3ecccef2": ["model.fsc_evm.test_gold__fact_traces_full", "model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_BLOCK_NUMBER.ab8d5d8e4c": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.4d67ac0920": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP.f39a6a04de": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP__hour__3.cb9fd0826a": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.cbfe040895": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_TX_HASH.d65cfc264e": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.403a0d410c": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS.a4658e804e": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.53adf4570d": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_FROM_ADDRESS.2c69eb9d6a": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.a5a0db81dc": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_TO_ADDRESS.a5feb6a9bf": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.cd3a28165e": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_RAW_AMOUNT.62229d27e9": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_RAW_AMOUNT__NUMBER__FLOAT.0ce022106e": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID.e204f7c6ee": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_ORIGIN_FUNCTION_SIGNATURE.ee7a08f37f": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_ORIGIN_FROM_ADDRESS.c65a204117": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.85e49c2533": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.f542f4cc0f": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID.36d8d8661a": ["model.fsc_evm.test_gold__ez_token_transfers_recent"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_BLOCK_NUMBER.c281a15c7c": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.cf7a275c18": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP.3015447008": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP__hour__3.186f75bd44": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.5025592820": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_TX_HASH.bf35dc7aec": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.dde3475101": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS.8384cb648a": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.f04c6eba97": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_FROM_ADDRESS.f2cd4b35a9": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.c61b6f0c34": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_TO_ADDRESS.50fe049e34": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_TO_ADDRESS__0_xX_0_9a_fA_F_.4e9427647b": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_RAW_AMOUNT.ca974f9bde": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_RAW_AMOUNT__NUMBER__FLOAT.e29960d304": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID.dbb70e1221": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_ORIGIN_FUNCTION_SIGNATURE.de76042d6e": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS.95a4909c44": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.0056122d14": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.e48a268383": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID.b52f0fec49": ["model.fsc_evm.test_gold__ez_token_transfers_full"], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_BLOCK_NUMBER.76acdf0f28": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_BLOCK_NUMBER__NUMBER.8148040748": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP.32a4782af7": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP__hour__2.677cfb4387": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.461cb228ca": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_HASH.e76669565b": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_TX_HASH__0_xX_0_9a_fA_F_.13ee5cd65b": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.fsc_utils_tx_block_count_test_gold__fact_event_logs_full_TX_HASH.b31311d808": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_POSITION.2791b096bd": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_TX_POSITION__NUMBER__FLOAT.1244edc76e": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_EVENT_INDEX.c6e1f7c07f": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_EVENT_INDEX__NUMBER__FLOAT.ba4706e35d": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_CONTRACT_ADDRESS.d7ef6c7fb1": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.e11ba68261": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TOPICS.c0ac9e4c8a": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_DATA.d22b95cbe2": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_EVENT_REMOVED.3234e54d57": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS.3bc67218ac": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.eb95035ba4": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.356e5b7689": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_ORIGIN_FUNCTION_SIGNATURE.81cc4e99fd": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_SUCCEEDED.a552892b92": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_FACT_EVENT_LOGS_ID.f7cadc54a4": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP.0653b623df": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP__hour__2.66cacb203e": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP.bd570cee7b": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP__hour__2.9ae1d3b725": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_event_logs_full_TX_HASH__EVENT_INDEX.164d9b638c": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_event_logs_full_EVENT_INDEX__BLOCK_NUMBER.13a5a78e6f": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.events_match_txs_test_gold__fact_event_logs_full_ref_test_gold__fact_transactions_full_.5a7952a816": ["model.fsc_evm.test_gold__fact_event_logs_full", "model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_BLOCK_NUMBER.175fc10a23": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_BLOCK_NUMBER__NUMBER.f023a7fa38": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP.01f36159ef": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP__hour__2.bca2ba239f": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7806b0df5f": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_HASH.7aaa319baa": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_TX_HASH__0_xX_0_9a_fA_F_.d7f102a501": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.fsc_utils_tx_block_count_test_gold__fact_event_logs_recent_TX_HASH.4d9f53b085": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_POSITION.6b3cf4b320": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_TX_POSITION__NUMBER__FLOAT.400e138c88": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_EVENT_INDEX.bebac92256": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_EVENT_INDEX__NUMBER__FLOAT.4b5e283568": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS.b4d519e230": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.3d58ac3aa0": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TOPICS.9f5c99369f": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_DATA.297d8e5e96": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_EVENT_REMOVED.c575d9ca64": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS.bc086d9e05": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.dbd110b4d3": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.be409440dd": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE.c81a26b80c": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_SUCCEEDED.66bec17605": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_FACT_EVENT_LOGS_ID.91901e9d78": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP.c8bd425490": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP__hour__2.509d7d2de4": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP.85e778caed": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP__hour__2.742de25dd6": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_event_logs_recent_TX_HASH__EVENT_INDEX.63ec130f07": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_event_logs_recent_EVENT_INDEX__BLOCK_NUMBER.3d7998b618": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.events_match_txs_test_gold__fact_event_logs_recent_ref_test_gold__fact_transactions_recent_.3f449de1cd": ["model.fsc_evm.test_gold__fact_event_logs_recent", "model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_NUMBER.9061fb0407": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_BLOCK_NUMBER__NUMBER__FLOAT.a0aef7af7c": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_HASH.fc40219b9b": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_BLOCK_HASH__0_xX_0_9a_fA_F_.44301d7b7c": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP.94fcac91b2": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.a84c388c6a": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP__hour__2.4589bd9103": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_NETWORK.34f87743f3": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_NETWORK___a_zA_Z0_9__.9b67337d7a": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_TX_COUNT.2ab3789a46": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_TX_COUNT__NUMBER__FLOAT.be245b701f": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_SIZE.e3303070ef": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_SIZE__NUMBER__FLOAT.b9716a702f": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_MINER.a44712730d": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_MINER__0_xX_0_9a_fA_F_.81a710571a": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_EXTRA_DATA.c1204d1482": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_PARENT_HASH.339dcfcc3c": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_PARENT_HASH__0_xX_0_9a_fA_F_.6b67f778c4": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_GAS_USED__NUMBER__FLOAT.6540d38a1f": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_GAS_LIMIT.f49dbdd7e1": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_GAS_LIMIT__NUMBER__FLOAT.a04528bc5d": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_DIFFICULTY__NUMBER__FLOAT.3dbebb71ca": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_SHA3_UNCLES.0d2fae6c58": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_UNCLE_BLOCKS.3393af752e": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_NONCE__NUMBER__FLOAT.1083444a52": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_RECEIPTS_ROOT.dc843e4165": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.77793690bd": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_STATE_ROOT.da47dabf27": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_STATE_ROOT__0_xX_0_9a_fA_F_.467353aa70": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT.566be08af9": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT__0_xX_0_9a_fA_F_.47d739e923": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_LOGS_BLOOM.633277005e": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_LOGS_BLOOM__0_xX_0_9a_fA_F_.f5af8d2584": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_FACT_BLOCKS_ID.a71e6bc73d": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_unique_test_gold__fact_blocks_recent_FACT_BLOCKS_ID.d5e1fb66c7": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP.38071aedba": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP__hour__2.92c0a04348": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3aed81ccad": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP.97bc7f13ae": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP__hour__2.253aae44aa": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b67cb105f5": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_blocks_recent_BLOCK_NUMBER.e708e85fee": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_blocks_recent_BLOCK_NUMBER.a1a1f456ae": ["model.fsc_evm.test_gold__fact_blocks_recent"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_NUMBER.f3098a994a": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_BLOCK_NUMBER__NUMBER__FLOAT.a26946ebdc": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_HASH.8dee9b8914": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_BLOCK_HASH__0_xX_0_9a_fA_F_.f2f5d9dc2f": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_TIMESTAMP.3a590c964b": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.65dfa2ec4d": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_BLOCK_TIMESTAMP__hour__2.4d38c1199d": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_NETWORK.f4601bdcec": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_NETWORK___a_zA_Z0_9__.c5c8f0a0cc": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_TX_COUNT.ea1dabd60a": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_TX_COUNT__NUMBER__FLOAT.ba256986bd": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_SIZE.7f5752ed31": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_SIZE__NUMBER__FLOAT.a537b42b6c": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_MINER.8de6a9c8f5": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_MINER__0_xX_0_9a_fA_F_.dc25f4c8de": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_EXTRA_DATA.f2257373c4": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_PARENT_HASH.7c8b3fff47": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_PARENT_HASH__0_xX_0_9a_fA_F_.68e75bb757": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_GAS_USED__NUMBER__FLOAT.c2e16f1869": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_GAS_LIMIT.f2dbecd61f": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_GAS_LIMIT__NUMBER__FLOAT.bdee5c4523": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_DIFFICULTY__NUMBER__FLOAT.4197d7bd8c": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_SHA3_UNCLES.eec76f65cc": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_UNCLE_BLOCKS.9b8edf4bfd": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_NONCE__NUMBER__FLOAT.74da207967": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_RECEIPTS_ROOT.6eb806e5a4": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.2a0915d40b": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_STATE_ROOT.1c61a48d97": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_STATE_ROOT__0_xX_0_9a_fA_F_.62e12dc84f": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_TRANSACTIONS_ROOT.53175038a7": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_TRANSACTIONS_ROOT__0_xX_0_9a_fA_F_.8d1b61bce1": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_LOGS_BLOOM.490b2e508d": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_LOGS_BLOOM__0_xX_0_9a_fA_F_.73ad80f09c": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_FACT_BLOCKS_ID.0ff5f55ac4": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_unique_test_gold__fact_blocks_full_FACT_BLOCKS_ID.484aaf9b82": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_INSERTED_TIMESTAMP.48b29759a8": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_INSERTED_TIMESTAMP__hour__2.3cb43deaa6": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e8c1190abb": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP.3996175adf": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP__hour__2.d75178fa1c": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.04ccc1e679": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_blocks_full_BLOCK_NUMBER.b470c9b0e0": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_blocks_full_BLOCK_NUMBER.6f6c66623c": ["model.fsc_evm.test_gold__fact_blocks_full"], "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_BLOCK_NUMBER.3da7a0c428": ["model.fsc_evm.test_gold__ez_native_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.bce0936e10": ["model.fsc_evm.test_gold__ez_native_transfers_full"], "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP.9bff42bf90": ["model.fsc_evm.test_gold__ez_native_transfers_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP__hour__3.21a3a75c8f": ["model.fsc_evm.test_gold__ez_native_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b52e7b4dcf": ["model.fsc_evm.test_gold__ez_native_transfers_full"], "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_TX_HASH.e069256b19": ["model.fsc_evm.test_gold__ez_native_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_native_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.15293d5591": ["model.fsc_evm.test_gold__ez_native_transfers_full"], "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_FROM_ADDRESS.f1de7fc788": ["model.fsc_evm.test_gold__ez_native_transfers_full"], "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_AMOUNT.b8f4300dc9": ["model.fsc_evm.test_gold__ez_native_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_AMOUNT__NUMBER__FLOAT.7c64e2a5d0": ["model.fsc_evm.test_gold__ez_native_transfers_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_native_transfers_full_EZ_NATIVE_TRANSFERS_ID.8e978e6b17": ["model.fsc_evm.test_gold__ez_native_transfers_full"], "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_BLOCK_NUMBER.277bef24ac": ["model.fsc_evm.test_gold__ez_native_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.81a99604c2": ["model.fsc_evm.test_gold__ez_native_transfers_recent"], "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP.3873d5cdc6": ["model.fsc_evm.test_gold__ez_native_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP__hour__3.06e5f301c9": ["model.fsc_evm.test_gold__ez_native_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c85b3e577e": ["model.fsc_evm.test_gold__ez_native_transfers_recent"], "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_TX_HASH.9e5afe0aff": ["model.fsc_evm.test_gold__ez_native_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_native_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.b4ae42a72b": ["model.fsc_evm.test_gold__ez_native_transfers_recent"], "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_FROM_ADDRESS.6bea14a19a": ["model.fsc_evm.test_gold__ez_native_transfers_recent"], "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_AMOUNT.962946cb51": ["model.fsc_evm.test_gold__ez_native_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_AMOUNT__NUMBER__FLOAT.b3aafcb7e6": ["model.fsc_evm.test_gold__ez_native_transfers_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_native_transfers_recent_EZ_NATIVE_TRANSFERS_ID.c7c417aa6a": ["model.fsc_evm.test_gold__ez_native_transfers_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_BLOCK_NUMBER.a56487d0d2": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_BLOCK_NUMBER__NUMBER__FLOAT.5d89afa477": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP.0dfa5d9bbc": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.cffc3ef224": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP__hour__2.e7899727e4": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_HASH.2562021784": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_TX_HASH__0_xX_0_9a_fA_F_.6c5a3d3af9": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_FROM_ADDRESS.f6687a1d92": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.9235dce9b7": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.cc531991fa": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_ORIGIN_FUNCTION_SIGNATURE.55dc566734": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE.e5b387a31d": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE_PRECISE_RAW.5cee0b299e": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE_PRECISE.3b69d58f94": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_FEE.fa909d23b7": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_FEE_PRECISE.1ca90b56ab": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_SUCCEEDED.8ed2d84f45": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_TYPE.9ffebdfc52": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_NONCE.151663a822": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_POSITION.459ccef5c1": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_TX_POSITION__NUMBER__FLOAT.4b5af30d3b": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_INPUT_DATA.0c71a3add2": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_GAS_LIMIT.0570943628": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_CUMULATIVE_GAS_USED.53f3097347": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_R.25ff796006": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_S.415d28f531": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_V.c6c8b50102": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_FACT_TRANSACTIONS_ID.e7b3d89825": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP.12f51bf377": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP__hour__2.81da35ef44": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP.82fda9d680": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP__hour__2.68cd5b81d5": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_transactions_recent_TX_HASH.07b6bc79fa": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_transactions_recent_TX_POSITION__BLOCK_NUMBER.dadcf142a0": ["model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.txs_match_blocks_test_gold__fact_transactions_recent_ref_test_gold__fact_blocks_recent_.788e86d48f": ["model.fsc_evm.test_gold__fact_blocks_recent", "model.fsc_evm.test_gold__fact_transactions_recent"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_BLOCK_NUMBER.d91075d3e5": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_BLOCK_NUMBER__NUMBER__FLOAT.f75d3f5f2b": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_BLOCK_TIMESTAMP.20e3f64edd": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e339fe42ef": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_BLOCK_TIMESTAMP__hour__2.b2b7b2723b": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_HASH.7a79eff2d8": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_TX_HASH__0_xX_0_9a_fA_F_.60bef77cff": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_FROM_ADDRESS.ad4c8e2694": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.8794e23ba3": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_TO_ADDRESS__0_xX_0_9a_fA_F_.bd70190cf6": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_ORIGIN_FUNCTION_SIGNATURE.c97ff6fa70": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE.fcb488bf96": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE_PRECISE_RAW.14c29d688d": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE_PRECISE.59f993bcda": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_FEE.f5351603f2": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_FEE_PRECISE.161ef1c3a1": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_SUCCEEDED.0932db54b6": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_TYPE.9c605a5a95": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_NONCE.ea08f1a1ba": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_POSITION.fa8e858e99": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_TX_POSITION__NUMBER__FLOAT.473e47a660": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_INPUT_DATA.388b4be0ae": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_GAS_LIMIT.5c5592b6ac": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_CUMULATIVE_GAS_USED.88f6b855e0": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_R.1699801aae": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_S.cff5ed8cca": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_V.a647e39488": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_FACT_TRANSACTIONS_ID.a9bd9374e2": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_INSERTED_TIMESTAMP.645083145d": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_INSERTED_TIMESTAMP__hour__2.9f370ce025": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP.a6ef34b987": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP__hour__2.bd49713839": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_transactions_full_TX_HASH.ac75b8c705": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_transactions_full_TX_POSITION__BLOCK_NUMBER.edeb24d95d": ["model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.txs_match_blocks_test_gold__fact_transactions_full_ref_test_gold__fact_blocks_full_.d3390d5b0e": ["model.fsc_evm.test_gold__fact_blocks_full", "model.fsc_evm.test_gold__fact_transactions_full"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_BLOCK_NUMBER.5a3535bb1a": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.5ec4aef06a": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP.580b67cb8c": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP__hour__3.2ad48fb9bf": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.945acce1de": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TX_HASH.66e383a70b": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.523ec38237": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_EVENT_INDEX.85b975cd1b": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_INTRA_EVENT_INDEX.d4991df060": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS.35c96ffef7": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.c7f3997422": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_FROM_ADDRESS.fe828e0f8e": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.ceafcdaa5b": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TO_ADDRESS.a5fba0294c": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_TO_ADDRESS__0_xX_0_9a_fA_F_.5c28de3d46": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TOKEN_ID.74258e963a": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID.1c01304059": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_full_INSERTED_TIMESTAMP__hour__3.af9feb5290": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.499658c9bc": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID.aa63995b75": ["model.fsc_evm.test_nft__ez_nft_transfers_full"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER.c391cc6a96": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.59a9a57567": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP.cb878cc127": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP__hour__3.2d99fe0ba2": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.01bb3ad3bd": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TX_HASH.336555c4d6": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.7dfd5b1d49": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_EVENT_INDEX.ea83d8365e": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_INTRA_EVENT_INDEX.025edfde6b": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS.7f5d57c7b9": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.e901b29df2": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_FROM_ADDRESS.983881c27c": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.3e8e3c0838": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TO_ADDRESS.ce1e8d5dfe": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.76a34d263a": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TOKEN_ID.8827c1fad9": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID.071c327c9c": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_recent_INSERTED_TIMESTAMP__hour__3.285e6fec43": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7988c079e5": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID.815336f0e0": ["model.fsc_evm.test_nft__ez_nft_transfers_recent"], "test.fsc_evm.not_null_observability__transactions_TEST_TIMESTAMP.fcbece1b9f": ["model.fsc_evm.observability__transactions"], "test.fsc_evm.accepted_values_recent_row_observability__transactions_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.eb2fcab8d1": ["model.fsc_evm.observability__transactions"], "test.fsc_evm.not_null_observability__logs_TEST_TIMESTAMP.a8140bb427": ["model.fsc_evm.observability__logs"], "test.fsc_evm.accepted_values_recent_row_observability__logs_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.33a0e6880c": ["model.fsc_evm.observability__logs"], "test.fsc_evm.not_null_observability__traces_TEST_TIMESTAMP.4b6fefc2cc": ["model.fsc_evm.observability__traces"], "test.fsc_evm.accepted_values_recent_row_observability__traces_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.a009465ad0": ["model.fsc_evm.observability__traces"], "test.fsc_evm.not_null_observability__blocks_TEST_TIMESTAMP.6047fc0ddc": ["model.fsc_evm.observability__blocks"], "test.fsc_evm.accepted_values_recent_row_observability__blocks_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.d058a90f3b": ["model.fsc_evm.observability__blocks"], "test.fsc_evm.not_null_observability__receipts_TEST_TIMESTAMP.c023aec11f": ["model.fsc_evm.observability__receipts"], "test.fsc_evm.accepted_values_recent_row_observability__receipts_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.3c8361f4b6": ["model.fsc_evm.observability__receipts"], "test.fsc_evm.not_null_silver__complete_native_asset_metadata_PROVIDER.2f310e1236": ["model.fsc_evm.silver__complete_native_asset_metadata"], "test.fsc_evm.not_null_silver__complete_native_asset_metadata_SYMBOL.ff109ff1ee": ["model.fsc_evm.silver__complete_native_asset_metadata"], "test.fsc_evm.not_null_silver__complete_native_asset_metadata_BLOCKCHAIN.fea8f73c16": ["model.fsc_evm.silver__complete_native_asset_metadata"], "test.fsc_evm.not_null_silver__complete_native_asset_metadata_MODIFIED_TIMESTAMP.c6bcef6cb9": ["model.fsc_evm.silver__complete_native_asset_metadata"], "test.fsc_evm.unique_silver__complete_native_asset_metadata_COMPLETE_NATIVE_ASSET_METADATA_ID.d98ec00bc9": ["model.fsc_evm.silver__complete_native_asset_metadata"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_native_asset_metadata_SYMBOL.6c5f561373": ["model.fsc_evm.silver__complete_native_asset_metadata"], "test.fsc_evm.not_null_silver__complete_provider_prices_PROVIDER.982c1dc287": ["model.fsc_evm.silver__complete_provider_prices"], "test.fsc_evm.not_null_silver__complete_provider_prices_ASSET_ID.a10e7dad30": ["model.fsc_evm.silver__complete_provider_prices"], "test.fsc_evm.not_null_silver__complete_provider_prices_RECORDED_HOUR.73c3cfdf0d": ["model.fsc_evm.silver__complete_provider_prices"], "test.fsc_evm.not_null_silver__complete_provider_prices_MODIFIED_TIMESTAMP.b205ba003b": ["model.fsc_evm.silver__complete_provider_prices"], "test.fsc_evm.unique_silver__complete_provider_prices_COMPLETE_PROVIDER_PRICES_ID.52bf8dd406": ["model.fsc_evm.silver__complete_provider_prices"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_provider_prices_ASSET_ID__RECORDED_HOUR__PROVIDER.6e3c3ab2b1": ["model.fsc_evm.silver__complete_provider_prices"], "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_PROVIDER.b0c689d31b": ["model.fsc_evm.silver__complete_provider_asset_metadata"], "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_ASSET_ID.b4b221e9f2": ["model.fsc_evm.silver__complete_provider_asset_metadata"], "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_MODIFIED_TIMESTAMP.47fee02027": ["model.fsc_evm.silver__complete_provider_asset_metadata"], "test.fsc_evm.unique_silver__complete_provider_asset_metadata_COMPLETE_PROVIDER_ASSET_METADATA_ID.945e90b882": ["model.fsc_evm.silver__complete_provider_asset_metadata"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_provider_asset_metadata_ASSET_ID__TOKEN_ADDRESS__NAME__SYMBOL__PLATFORM__PLATFORM_ID__PROVIDER.e355e7b6b2": ["model.fsc_evm.silver__complete_provider_asset_metadata"], "test.fsc_evm.not_null_silver__complete_token_asset_metadata_PROVIDER.0d1d2c6852": ["model.fsc_evm.silver__complete_token_asset_metadata"], "test.fsc_evm.not_null_silver__complete_token_asset_metadata_TOKEN_ADDRESS.06a52e0e67": ["model.fsc_evm.silver__complete_token_asset_metadata"], "test.fsc_evm.not_null_silver__complete_token_asset_metadata_BLOCKCHAIN.3791975c91": ["model.fsc_evm.silver__complete_token_asset_metadata"], "test.fsc_evm.not_null_silver__complete_token_asset_metadata_BLOCKCHAIN_ID.fe8350a322": ["model.fsc_evm.silver__complete_token_asset_metadata"], "test.fsc_evm.not_null_silver__complete_token_asset_metadata_MODIFIED_TIMESTAMP.58ef7db480": ["model.fsc_evm.silver__complete_token_asset_metadata"], "test.fsc_evm.unique_silver__complete_token_asset_metadata_COMPLETE_TOKEN_ASSET_METADATA_ID.99f9227588": ["model.fsc_evm.silver__complete_token_asset_metadata"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_token_asset_metadata_TOKEN_ADDRESS__BLOCKCHAIN.d3d6b2a62b": ["model.fsc_evm.silver__complete_token_asset_metadata"], "test.fsc_evm.not_null_silver__complete_native_prices_HOUR.84672fd317": ["model.fsc_evm.silver__complete_native_prices"], "test.fsc_evm.not_null_silver__complete_native_prices_SYMBOL.640aa16109": ["model.fsc_evm.silver__complete_native_prices"], "test.fsc_evm.not_null_silver__complete_native_prices_BLOCKCHAIN.3557f90197": ["model.fsc_evm.silver__complete_native_prices"], "test.fsc_evm.not_null_silver__complete_native_prices_PROVIDER.391be2433a": ["model.fsc_evm.silver__complete_native_prices"], "test.fsc_evm.not_null_silver__complete_native_prices_PRICE.5d22b3dfe0": ["model.fsc_evm.silver__complete_native_prices"], "test.fsc_evm.not_null_silver__complete_native_prices_IS_IMPUTED.9b41704925": ["model.fsc_evm.silver__complete_native_prices"], "test.fsc_evm.not_null_silver__complete_native_prices__INSERTED_TIMESTAMP.030d747f3c": ["model.fsc_evm.silver__complete_native_prices"], "test.fsc_evm.not_null_silver__complete_native_prices_MODIFIED_TIMESTAMP.595acedfe2": ["model.fsc_evm.silver__complete_native_prices"], "test.fsc_evm.unique_silver__complete_native_prices_COMPLETE_NATIVE_PRICES_ID.6e5981548b": ["model.fsc_evm.silver__complete_native_prices"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_native_prices_HOUR__SYMBOL.9742f3d916": ["model.fsc_evm.silver__complete_native_prices"], "test.fsc_evm.not_null_silver__complete_token_prices_HOUR.d5f4cd597b": ["model.fsc_evm.silver__complete_token_prices"], "test.fsc_evm.not_null_silver__complete_token_prices_TOKEN_ADDRESS.7e03ade9df": ["model.fsc_evm.silver__complete_token_prices"], "test.fsc_evm.not_null_silver__complete_token_prices_BLOCKCHAIN.ada1620192": ["model.fsc_evm.silver__complete_token_prices"], "test.fsc_evm.not_null_silver__complete_token_prices_BLOCKCHAIN_ID.6aac0fa10e": ["model.fsc_evm.silver__complete_token_prices"], "test.fsc_evm.not_null_silver__complete_token_prices_PROVIDER.d7e55cb9a3": ["model.fsc_evm.silver__complete_token_prices"], "test.fsc_evm.not_null_silver__complete_token_prices_PRICE.9b78fa1dae": ["model.fsc_evm.silver__complete_token_prices"], "test.fsc_evm.not_null_silver__complete_token_prices_IS_IMPUTED.8a84f91c9e": ["model.fsc_evm.silver__complete_token_prices"], "test.fsc_evm.not_null_silver__complete_token_prices__INSERTED_TIMESTAMP.90a2d67d90": ["model.fsc_evm.silver__complete_token_prices"], "test.fsc_evm.not_null_silver__complete_token_prices_MODIFIED_TIMESTAMP.74882978f6": ["model.fsc_evm.silver__complete_token_prices"], "test.fsc_evm.unique_silver__complete_token_prices_COMPLETE_TOKEN_PRICES_ID.c4ea6e2a79": ["model.fsc_evm.silver__complete_token_prices"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_token_prices_HOUR__TOKEN_ADDRESS__BLOCKCHAIN.dde8fc55cf": ["model.fsc_evm.silver__complete_token_prices"], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BLOCK_NUMBER.d8e5a4d173": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BLOCK_TIMESTAMP.27eecb602c": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TX_HASH.befc121de7": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_TX_HASH__0_xX_0_9a_fA_F_.eea93a120e": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS.fb3df4392d": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS__0_xX_0_9a_fA_F_.25648fcf6b": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_DESTINATION_CHAIN_RECEIVER.73ef2ee307": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_SENDER.64ca378992": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_SENDER__0_xX_0_9a_fA_F_.45e7cc2df2": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_RECEIVER.a37b06afd8": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_RECEIVER__0_xX_0_9a_fA_F_.2465acf0d7": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_AMOUNT_UNADJ.f05776f272": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS.07fa5639c8": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.fc73bfce91": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_PLATFORM.2c7a290a2a": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_PROTOCOL.a6cfc199ee": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_VERSION.7818ca0d4e": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TYPE.37341141f3": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_bridge__complete_bridge_activity_MODIFIED_TIMESTAMP__day__3.1fb2addfd1": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__complete_bridge_activity__ID.3d98f8a8be": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.curated_recency_defi_silver_bridge__complete_bridge_activity_bridge.a2b41e22b2": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "test.fsc_evm.not_null_silver_bridge__everclear_reads_INTENT_ID.86864cebca": ["model.fsc_evm.silver_bridge__everclear_reads"], "test.fsc_evm.not_null_silver_bridge__everclear_reads_STATUS.25271faad7": ["model.fsc_evm.silver_bridge__everclear_reads"], "test.fsc_evm.not_null_silver_bridge__everclear_reads_OUTPUT_ASSET.506d895537": ["model.fsc_evm.silver_bridge__everclear_reads"], "test.fsc_evm.not_null_silver_bridge__everclear_reads_DESTINATION_CHAIN_ID.708d1c3ec8": ["model.fsc_evm.silver_bridge__everclear_reads"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__everclear_reads_INTENT_ID.0dee46a33d": ["model.fsc_evm.silver_bridge__everclear_reads"], "test.fsc_evm.not_null_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS.b245762efd": ["model.fsc_evm.silver_bridge__hop_ammwrapper"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS__0_xX_0_9a_fA_F_.84556e1744": ["model.fsc_evm.silver_bridge__hop_ammwrapper"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_ammwrapper_CONTRACT_ADDRESS.aea7fc3d3b": ["model.fsc_evm.silver_bridge__hop_ammwrapper"], "test.fsc_evm.not_null_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS.ec64401112": ["model.fsc_evm.silver_bridge__hop_l2canonicaltoken"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.804453d554": ["model.fsc_evm.silver_bridge__hop_l2canonicaltoken"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_l2canonicaltoken_CONTRACT_ADDRESS.b7a0e00f9b": ["model.fsc_evm.silver_bridge__hop_l2canonicaltoken"], "test.fsc_evm.not_null_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS.e94f2ba3f9": ["model.fsc_evm.silver_bridge__hop_l1canonicaltoken"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.23850b9de7": ["model.fsc_evm.silver_bridge__hop_l1canonicaltoken"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_l1canonicaltoken_CONTRACT_ADDRESS.1a0299fdf6": ["model.fsc_evm.silver_bridge__hop_l1canonicaltoken"], "test.fsc_evm.not_null_silver_bridge__stargate_createpool_TOKEN_ADDRESS.02394ab2ae": ["model.fsc_evm.silver_bridge__stargate_createpool"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__stargate_createpool_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.9b63c4ca5e": ["model.fsc_evm.silver_bridge__stargate_createpool"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__stargate_createpool_POOL_ADDRESS.9e0053c2c5": ["model.fsc_evm.silver_bridge__stargate_createpool"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__layerzero_v2_token_reads_CONTRACT_ADDRESS.cbdeb639b6": ["model.fsc_evm.silver_bridge__layerzero_v2_token_reads"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__stablecoin_reads_stablecoin_reads_id.ee158051a5": ["model.fsc_evm.silver__stablecoin_reads"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__mint_burn_stablecoins_mint_burn_id.2ec1abace1": ["model.fsc_evm.silver_stablecoins__mint_burn"], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_BLOCK_DATE.ed7dfaf66b": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_complete_BLOCK_DATE__day__2.b3d5b9ee35": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_CONTRACT_ADDRESS.664480f344": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_SYMBOL.e0e7468746": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_NAME.6a279f0ecb": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_DECIMALS.5a014a45ab": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_TOTAL_SUPPLY.2fbe775ba2": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_BLACKLISTED.4950715b85": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_CEX.e2827b3341": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_BRIDGES.ff0025ecd7": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_DEX_LIQUIDITY_POOLS.25808a6407": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_LENDING_POOLS.d8292a8a7e": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_CONTRACTS.4bf4ba9824": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_MINTED.0638b516b5": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_BURNED.0c51968320": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_TRANSFERRED.97c658f5c2": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_INSERTED_TIMESTAMP.de284952d2": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_MODIFIED_TIMESTAMP.007e68c2c3": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_complete_MODIFIED_TIMESTAMP__day__1.9995e5dcd1": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_STABLECOINS_SUPPLY_COMPLETE_ID.996719e8a7": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_complete_stablecoins_supply_complete_id.7db1f368e4": ["model.fsc_evm.silver_stablecoins__supply_complete"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__transfers_stablecoins_transfers_id.f9414fd971": ["model.fsc_evm.silver_stablecoins__transfers"], "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_BLOCK_DATE.b46d73803f": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_by_address_imputed_BLOCK_DATE__day__2.99639b993f": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"], "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_ADDRESS.e5bb6dbc9b": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_stablecoins__supply_by_address_imputed_ADDRESS__0_xX_0_9a_fA_F_.574260a865": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"], "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_CONTRACT_ADDRESS.a15a535fb3": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_stablecoins__supply_by_address_imputed_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.3453b3e118": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"], "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_BALANCE.c6c3131107": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"], "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_IS_IMPUTED.ec0da0785e": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"], "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_MODIFIED_TIMESTAMP.b90ac8efba": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_by_address_imputed_MODIFIED_TIMESTAMP__day__1.830f5971c9": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_by_address_imputed_stablecoins_supply_by_address_imputed_id.b6861618a0": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"], "test.fsc_evm.stablecoins_is_imputed_false_silver_stablecoins__supply_by_address_imputed_.59751490c5": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"], "test.fsc_evm.stablecoins_date_gaps_silver_stablecoins__supply_by_address_imputed_.dcbef61e36": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_by_address_stablecoins_supply_by_address_id.0a3c5366e4": ["model.fsc_evm.silver_stablecoins__supply_by_address"], "test.fsc_evm.not_null_silver_stablecoins__supply_contracts_list_ADDRESS.de076cd955": ["model.fsc_evm.silver_stablecoins__supply_contracts_list"], "test.fsc_evm.not_null_silver_stablecoins__supply_contracts_list_CONTRACT_TYPE.b41e882fd8": ["model.fsc_evm.silver_stablecoins__supply_contracts_list"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_contracts_list_stablecoins_supply_contracts_list_id.973738f72f": ["model.fsc_evm.silver_stablecoins__supply_contracts_list"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_contracts_stablecoins_supply_contracts_id.a378bd36a0": ["model.fsc_evm.silver_stablecoins__supply_contracts"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__address_blacklist_stablecoins_address_blacklist_id.007b38ff2a": ["model.fsc_evm.silver_stablecoins__address_blacklist"], "test.fsc_evm.not_null_defi__dim_stablecoins_CONTRACT_ADDRESS.6d61399207": ["model.fsc_evm.defi__dim_stablecoins"], "test.fsc_evm.not_null_defi__dim_stablecoins_SYMBOL.5791bb4cff": ["model.fsc_evm.defi__dim_stablecoins"], "test.fsc_evm.not_null_defi__dim_stablecoins_NAME.b868d0a1a6": ["model.fsc_evm.defi__dim_stablecoins"], "test.fsc_evm.not_null_defi__dim_stablecoins_LABEL.b477c86b09": ["model.fsc_evm.defi__dim_stablecoins"], "test.fsc_evm.not_null_defi__dim_stablecoins_DECIMALS.121acb907b": ["model.fsc_evm.defi__dim_stablecoins"], "test.fsc_evm.not_null_defi__dim_stablecoins_IS_VERIFIED.0b8de40713": ["model.fsc_evm.defi__dim_stablecoins"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_defi__dim_stablecoins_dim_stablecoins_id.a7f96dedfc": ["model.fsc_evm.defi__dim_stablecoins"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_BLOCK_NUMBER.3cc45619ac": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_BLOCK_TIMESTAMP.1cad889870": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TX_HASH.44650e24c5": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_EVENT_INDEX.83e4f1880e": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_EVENT_NAME.52809d123e": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER.db4674616c": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_SENDER.2834260b51": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_RECEIVER.465bf44ee5": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_POOL_ADDRESS.8eeb6ff26e": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pool_actions_POOL_ADDRESS__0_xX_0_9a_fA_F_.77b6c92f58": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS_UNADJ.bdfa9321f4": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS.c774024072": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS_USD.a60fa0a531": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS.fd4087fc87": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_SYMBOLS.34cfc0a3e6": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_DECIMALS.fde79b4576": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS_IS_VERIFIED.d38e3bdb59": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_PLATFORM.129bb6aeb5": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_PROTOCOL.c9300839eb": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_VERSION.b6b10368ee": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TYPE.40d8e6018e": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP.f31fa88748": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP__day__3.7ae7a49b3e": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_liquidity_pool_actions__ID.ddef6289c9": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.curated_recency_defi_silver_dex__complete_dex_liquidity_pool_actions_dex_lp_actions.362cf81572": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_BLOCK_NUMBER.17ae3af028": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_BLOCK_TIMESTAMP.16acbec13e": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TX_HASH.338d50a54c": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TX_HASH__0_xX_0_9a_fA_F_.f7c909191d": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS.8c4b42fef8": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.be6db6029d": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_AMOUNT_IN.3df36cb722": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_AMOUNT_OUT.d33197318a": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TOKEN_IN__0_xX_0_9a_fA_F_.790e194383": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TOKEN_OUT__0_xX_0_9a_fA_F_.ae14302936": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_SENDER__0_xX_0_9a_fA_F_.58a39f68d2": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TX_TO.2085271b93": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TX_TO__0_xX_0_9a_fA_F_.03c82421e1": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_PLATFORM.be3e105587": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_PROTOCOL.3df038aacb": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_VERSION.302623d7a3": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TYPE.c008585f12": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP.4c29ced501": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP__day__3.ecc8ffb7ad": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_swaps__LOG_ID.ba65a2d85c": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.curated_recency_defi_silver_dex__complete_dex_swaps_dex_swaps.5916f6c88e": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_NUMBER.5b1552ab5e": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_TIMESTAMP.b982bd6907": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_TX_HASH.92b7a24d0d": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_CONTRACT_ADDRESS.52ef84763a": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pools_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.dc69988db3": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS.03eefde7c0": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS__0_xX_0_9a_fA_F_.531aeb2798": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_PLATFORM.dfa0956636": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_PROTOCOL.a63c90c2a0": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_VERSION.5eef91934c": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_TYPE.41453fccf7": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_MODIFIED_TIMESTAMP.d34d6a1858": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_liquidity_pools_MODIFIED_TIMESTAMP__day__30.3fd9adc88e": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_liquidity_pools__ID.b4429d9fea": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__balancer_pools_POOL_ADDRESS.2719d33e20": ["model.fsc_evm.silver_dex__balancer_pools"], "test.fsc_evm.not_null_silver_dex__curve_pools_POOL_ADDRESS.d71b87d177": ["model.fsc_evm.silver_dex__curve_pools"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__curve_pools_POOL_ADDRESS__0_xX_0_9a_fA_F_.185fa9348a": ["model.fsc_evm.silver_dex__curve_pools"], "test.fsc_evm.not_null_silver_dex__curve_pools_TOKEN_ADDRESS.27eb2fea68": ["model.fsc_evm.silver_dex__curve_pools"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__curve_pools_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.7ffaec64f4": ["model.fsc_evm.silver_dex__curve_pools"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__curve_pools_POOL_ID.16e66dab1a": ["model.fsc_evm.silver_dex__curve_pools"], "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_BLOCK_TIMESTAMP.aa08bbc5bb": ["model.fsc_evm.defi__ez_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER.1b554aa4ee": ["model.fsc_evm.defi__ez_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_TOKEN_ADDRESS.f9d0db5e6d": ["model.fsc_evm.defi__ez_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_AMOUNT_UNADJ.9e24d6b1ba": ["model.fsc_evm.defi__ez_dex_liquidity_pool_actions"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_defi__ez_dex_liquidity_pool_actions_ez_dex_liquidity_pool_actions_id.83a111c26f": ["model.fsc_evm.defi__ez_dex_liquidity_pool_actions"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TX_HASH.63627cc126": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BLOCK_NUMBER.09147e3ec0": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BLOCK_TIMESTAMP.d5aef20d26": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_borrows_BLOCK_TIMESTAMP__day__3.91c4dcedc7": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_EVENT_INDEX.702306f3d9": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_ORIGIN_FROM_ADDRESS.3c02ef2628": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_ORIGIN_FUNCTION_SIGNATURE.b43268ea6c": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_CONTRACT_ADDRESS.c32c5ad863": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_EVENT_NAME.c17f59a2a8": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BORROWER.887a479a91": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PROTOCOL_MARKET.2cdfbbc5f5": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TOKEN_ADDRESS.d31d215fbe": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TOKEN_SYMBOL.d074b06159": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_AMOUNT_UNADJ.7747f27c90": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_AMOUNT.e580c2d507": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_borrows_AMOUNT_USD__decimal__float.647d646b83": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PLATFORM.f7ad06b21d": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PROTOCOL.258dc320a7": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_VERSION.bb6550ca9c": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_COMPLETE_LENDING_BORROWS_ID.c10561dd4e": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_INSERTED_TIMESTAMP.8c1b12d962": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_MODIFIED_TIMESTAMP.4e7d059a7d": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_borrows__log_id.2a9a480e32": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_borrows_7_5__60__lending.bd75ba3a44": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TX_HASH.ce8de9e71f": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_BLOCK_NUMBER.a12c696749": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_BLOCK_TIMESTAMP.15d8c8cba4": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_withdraws_BLOCK_TIMESTAMP__day__3.1d64634b58": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_EVENT_INDEX.4e0de8f75f": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_ORIGIN_FROM_ADDRESS.a3d18bde4b": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_ORIGIN_FUNCTION_SIGNATURE.1dc2890452": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_CONTRACT_ADDRESS.2a2bdaa803": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_EVENT_NAME.5db024623b": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PROTOCOL_MARKET.6642e840fc": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_DEPOSITOR.aa4643edf2": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TOKEN_ADDRESS.261f8cbdbe": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TOKEN_SYMBOL.d60b5cda5a": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_AMOUNT_UNADJ.5b85a0643a": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_AMOUNT.ef1dc64c3e": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_withdraws_AMOUNT_USD__decimal__float.c62808382c": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PLATFORM.e9a5a0f900": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PROTOCOL.a8b7ac43d6": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_VERSION.fcaf60d697": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_COMPLETE_LENDING_WITHDRAWS_ID.681b4aa48b": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_INSERTED_TIMESTAMP.561d35461f": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_MODIFIED_TIMESTAMP.c3e30f98e5": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_withdraws__LOG_ID.7cfc5aa030": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_withdraws_7_5__60__lending.23f1446d50": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TX_HASH.d3201d95e2": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_BLOCK_NUMBER.2c9a0f6061": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_BLOCK_TIMESTAMP.1a905291e9": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_flashloans_BLOCK_TIMESTAMP__day__14.c97c4e6a21": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_EVENT_INDEX.d256b8467f": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_ORIGIN_FROM_ADDRESS.9104eb297b": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_ORIGIN_FUNCTION_SIGNATURE.8ad33ea363": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_CONTRACT_ADDRESS.d2763e9c60": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_EVENT_NAME.36bdd6ecae": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PROTOCOL_MARKET.fba78b0f77": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_INITIATOR.bb1dc79f33": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TARGET.f29f9844aa": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TOKEN_ADDRESS.cfb727a837": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TOKEN_SYMBOL.893469d047": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_FLASHLOAN_AMOUNT_UNADJ.50ea108e62": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_FLASHLOAN_AMOUNT.feaeeedf41": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PREMIUM_AMOUNT_UNADJ.9afaa927d7": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PREMIUM_AMOUNT.e9f3cbad34": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PLATFORM.56c21f121c": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PROTOCOL.a5f672795f": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_VERSION.46458e3611": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_COMPLETE_LENDING_FLASHLOANS_ID.f37672ef97": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_INSERTED_TIMESTAMP.a267ad91be": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_MODIFIED_TIMESTAMP.c7ad718c6f": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_flashloans__LOG_ID.b5e2ccc546": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_flashloans_7_5__60__lending.1d85b045e9": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TX_HASH.159d87490e": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BLOCK_NUMBER.3b1396e922": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BLOCK_TIMESTAMP.dadda51bf9": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_repayments_BLOCK_TIMESTAMP__day__3.1330d20e3b": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_EVENT_INDEX.b08f854af1": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_ORIGIN_FROM_ADDRESS.a45605a93c": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_ORIGIN_FUNCTION_SIGNATURE.7cdb59008b": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_CONTRACT_ADDRESS.e8659c0cd4": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_EVENT_NAME.17e71ddee7": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PROTOCOL_MARKET.5ba1c58d76": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PAYER.5181266d52": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BORROWER.067b19b1ce": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TOKEN_ADDRESS.1000bb4b6f": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TOKEN_SYMBOL.442e650dd5": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_AMOUNT_UNADJ.c408d0ba21": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_AMOUNT.1c26a3f24d": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_repayments_AMOUNT_USD__decimal__float.3538351555": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PLATFORM.c28ef22806": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PROTOCOL.3c56422288": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_VERSION.3fd0d1f3d6": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_COMPLETE_LENDING_REPAYMENTS_ID.fa12632511": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_INSERTED_TIMESTAMP.3f4ae6523c": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_MODIFIED_TIMESTAMP.3b537129ff": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_repayments__LOG_ID.dade94b28d": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_repayments_7_5__60__lending.dc63c75a4a": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TX_HASH.1770f89dd4": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_BLOCK_NUMBER.764f80cddc": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_BLOCK_TIMESTAMP.4ee6d5cde6": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_deposits_BLOCK_TIMESTAMP__day__3.b5e1187f23": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_EVENT_INDEX.af4200573a": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_ORIGIN_FROM_ADDRESS.2d42cefc88": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_ORIGIN_FUNCTION_SIGNATURE.4f15a4f4b6": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_CONTRACT_ADDRESS.7df8e73c73": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_EVENT_NAME.074448c2ba": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PROTOCOL_MARKET.f548930cd7": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_DEPOSITOR.1491427a24": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TOKEN_ADDRESS.87dd541bc0": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TOKEN_SYMBOL.63347a63f2": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_AMOUNT_UNADJ.08e5e86a62": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_AMOUNT.dd3698ee3b": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_deposits_AMOUNT_USD__decimal__float.1e0c6d9d32": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PLATFORM.e82777c8c0": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PROTOCOL.6cf1f64077": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_VERSION.eade855a3f": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_COMPLETE_LENDING_DEPOSITS_ID.f63e8f436e": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_INSERTED_TIMESTAMP.481e29ad06": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_MODIFIED_TIMESTAMP.316ea9612f": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_deposits__LOG_ID.81d0e3df59": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_deposits_7_5__60__lending.f47558e889": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_TX_HASH.bce1515589": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BLOCK_NUMBER.15a69776e9": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BLOCK_TIMESTAMP.c70c659e0d": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_liquidations_BLOCK_TIMESTAMP__day__30.161c04de84": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_EVENT_INDEX.84fd3e9ae9": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_ORIGIN_FROM_ADDRESS.192f3d0364": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_ORIGIN_FUNCTION_SIGNATURE.140b44b00f": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_CONTRACT_ADDRESS.808d802f1a": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_EVENT_NAME.5630b24be5": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATOR.32624d91f1": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BORROWER.38440419c2": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PROTOCOL_MARKET.6f332e4392": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COLLATERAL_TOKEN.3c78777798": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COLLATERAL_TOKEN_SYMBOL.d8f85827c6": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATED_AMOUNT_UNADJ.23b2f7c305": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATED_AMOUNT.295ac3ed83": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_DEBT_TOKEN.378987156e": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_DEBT_TOKEN_SYMBOL.31aa114cf8": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PLATFORM.80ec31452a": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PROTOCOL.16dcb68655": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_VERSION.927431b428": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COMPLETE_LENDING_LIQUIDATIONS_ID.69cd6455c6": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_INSERTED_TIMESTAMP.9b2342b392": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_MODIFIED_TIMESTAMP.8c86e0f317": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_liquidations__LOG_ID.7cbbbc2f23": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_liquidations_7_5__90__lending.9c7fe9d27d": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR.efdb4b7e98": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR__TIMESTAMP_LTZ__TIMESTAMP_NTZ.5239671c2c": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN.dcaaf4d14f": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN__NUMBER__FLOAT.6733ed950e": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX.60803e14ca": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX__NUMBER__FLOAT.5f8ab0b092": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_COUNT.f303fa842b": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_COUNT__NUMBER__FLOAT.39578be186": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT.866f191153": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT__NUMBER__FLOAT.5a8e6e8880": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_SUCCESS.5b82a449dd": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_SUCCESS__NUMBER__FLOAT.c5d0b2cc33": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_FAILED.4fe1d21e07": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_FAILED__NUMBER__FLOAT.5f9df371b1": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT.1e73e0a934": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT__NUMBER__FLOAT.225f59bd1e": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT.d64e239e23": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT__NUMBER__FLOAT.4cd5081b32": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TOTAL_FEES.558b8cb0c7": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TOTAL_FEES__DECIMAL__FLOAT__NUMBER.ada34dd6db": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stats__core_metrics_hourly__INSERTED_TIMESTAMP__day__1.874a5937d5": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR.0797e73b88": ["model.fsc_evm.silver_stats__core_metrics_hourly"], "test.fsc_evm.not_null_silver__balances_erc20_daily_BLOCK_DATE.b0c7b4b5bc": ["model.fsc_evm.silver__balances_erc20_daily"], "test.fsc_evm.not_null_silver__balances_erc20_daily_ADDRESS.d149b58851": ["model.fsc_evm.silver__balances_erc20_daily"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_erc20_daily_ADDRESS__0_xX_0_9a_fA_F_.a753ef793c": ["model.fsc_evm.silver__balances_erc20_daily"], "test.fsc_evm.not_null_silver__balances_erc20_daily_CONTRACT_ADDRESS.43c650bfd7": ["model.fsc_evm.silver__balances_erc20_daily"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_erc20_daily_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.c31e06bdbd": ["model.fsc_evm.silver__balances_erc20_daily"], "test.fsc_evm.not_null_silver__balances_erc20_daily_BALANCE_HEX.4b0eb04af8": ["model.fsc_evm.silver__balances_erc20_daily"], "test.fsc_evm.not_null_silver__balances_erc20_daily__INSERTED_TIMESTAMP.30b89c0c1d": ["model.fsc_evm.silver__balances_erc20_daily"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver__balances_erc20_daily__INSERTED_TIMESTAMP__day__2.2e99af10ca": ["model.fsc_evm.silver__balances_erc20_daily"], "test.fsc_evm.not_null_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID.aebeb06687": ["model.fsc_evm.silver__balances_erc20_daily"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID.f7783664d9": ["model.fsc_evm.silver__balances_erc20_daily"], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE.23211ae498": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE__day__2.8b5344e6a7": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_ADDRESS.d54ed6a481": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_recent_ADDRESS__0_xX_0_9a_fA_F_.2358d27b0b": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_DECIMALS.cf741a0564": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_SYMBOL.664ff4bcfa": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_CONTRACT_ADDRESS.572c2ff2c0": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2789060087": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_daily_recent_BALANCE__NUMBER__FLOAT.ad56fe9d44": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID.5275f2f741": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID.203984c885": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE.87397d3b88": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE__day__2.3411cdaa78": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_ADDRESS.df7ff69350": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_full_ADDRESS__0_xX_0_9a_fA_F_.8b0fdb4db0": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_DECIMALS.f902f9987b": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_SYMBOL.8859925617": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_CONTRACT_ADDRESS.a29ab93899": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.6539ed403f": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_daily_full_BALANCE__NUMBER__FLOAT.ea1e0b7809": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID.e0d083a055": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID.1ac9a12106": ["model.fsc_evm.test_gold__ez_balances_erc20_daily_full"], "test.fsc_evm.not_null_silver__balances_native_daily_BLOCK_DATE.5a051df8c7": ["model.fsc_evm.silver__balances_native_daily"], "test.fsc_evm.not_null_silver__balances_native_daily_ADDRESS.525dc24b09": ["model.fsc_evm.silver__balances_native_daily"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_native_daily_ADDRESS__0_xX_0_9a_fA_F_.8a750d62a3": ["model.fsc_evm.silver__balances_native_daily"], "test.fsc_evm.not_null_silver__balances_native_daily_BALANCE_HEX.ddd4dba7b9": ["model.fsc_evm.silver__balances_native_daily"], "test.fsc_evm.not_null_silver__balances_native_daily__INSERTED_TIMESTAMP.ce964e9219": ["model.fsc_evm.silver__balances_native_daily"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver__balances_native_daily__INSERTED_TIMESTAMP__day__2.0117687deb": ["model.fsc_evm.silver__balances_native_daily"], "test.fsc_evm.not_null_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID.96649214c0": ["model.fsc_evm.silver__balances_native_daily"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID.1832bc6fd4": ["model.fsc_evm.silver__balances_native_daily"], "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_BLOCK_DATE.43b712db10": ["model.fsc_evm.test_gold__ez_balances_native_daily_full"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_daily_full_BLOCK_DATE__day__2.be6f628721": ["model.fsc_evm.test_gold__ez_balances_native_daily_full"], "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_ADDRESS.52d628c90f": ["model.fsc_evm.test_gold__ez_balances_native_daily_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_daily_full_ADDRESS__0_xX_0_9a_fA_F_.a9916d6faa": ["model.fsc_evm.test_gold__ez_balances_native_daily_full"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_daily_full_BALANCE__NUMBER__FLOAT.49679eb8e0": ["model.fsc_evm.test_gold__ez_balances_native_daily_full"], "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID.fa62d2d951": ["model.fsc_evm.test_gold__ez_balances_native_daily_full"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID.8dc83ace95": ["model.fsc_evm.test_gold__ez_balances_native_daily_full"], "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_BLOCK_DATE.d5648e9d19": ["model.fsc_evm.test_gold__ez_balances_native_daily_recent"], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_daily_recent_BLOCK_DATE__day__2.77859fb708": ["model.fsc_evm.test_gold__ez_balances_native_daily_recent"], "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_ADDRESS.a22493476f": ["model.fsc_evm.test_gold__ez_balances_native_daily_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_daily_recent_ADDRESS__0_xX_0_9a_fA_F_.f9166aacd7": ["model.fsc_evm.test_gold__ez_balances_native_daily_recent"], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_daily_recent_BALANCE__NUMBER__FLOAT.ceee5e0cc7": ["model.fsc_evm.test_gold__ez_balances_native_daily_recent"], "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID.04c28bc46d": ["model.fsc_evm.test_gold__ez_balances_native_daily_recent"], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID.6d38a75605": ["model.fsc_evm.test_gold__ez_balances_native_daily_recent"], "test.fsc_evm.not_null_silver__balance_slots_CONTRACT_ADDRESS.aeee79acb5": [], "test.fsc_evm.not_null_silver__balance_slots_SLOT_NUMBER_ARRAY.8ffb8e8b33": [], "test.fsc_evm.not_null_silver__balance_slots_NUM_SLOTS.7e3d263768": [], "test.fsc_evm.accepted_values_silver__balance_slots_NUM_SLOTS__1.d1652f3bdb": [], "test.fsc_evm.not_null_silver__balance_slots_BALANCE_SLOTS_ID.c2db519283": [], "test.fsc_evm.not_null_silver__balance_slots_INSERTED_TIMESTAMP.94d7789126": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__balance_slots_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.23b4d3c9d5": [], "test.fsc_evm.not_null_silver__balance_slots_MODIFIED_TIMESTAMP.ca66040357": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__balance_slots_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.73dee8e57b": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__balance_slots_CONTRACT_ADDRESS.ed2308e967": [], "test.fsc_evm.fsc_evm_missing_balance_slots_silver__balance_slots_.86886d322f": ["model.fsc_evm.price__ez_asset_metadata"], "test.fsc_evm.not_null_silver__storage_keys_ADDRESS.be8c9c1392": [], "test.fsc_evm.not_null_silver__storage_keys_SLOT_NUMBER.4e1362119c": [], "test.fsc_evm.not_null_silver__storage_keys_STORAGE_KEY.8fb10f3cb4": [], "test.fsc_evm.not_null_silver__storage_keys_STORAGE_KEYS_ID.b4e852b122": [], "test.fsc_evm.not_null_silver__storage_keys_INSERTED_TIMESTAMP.fa570e218f": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__storage_keys_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.763dacf694": [], "test.fsc_evm.not_null_silver__storage_keys_MODIFIED_TIMESTAMP.2ee7197f25": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__storage_keys_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.2c2aee5ddc": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__storage_keys_ADDRESS__SLOT_NUMBER.184cfaefb5": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_BLOCK_NUMBER.d08ad74001": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_TX_POSITION.8b0a16a17d": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_CONTRACT_ADDRESS.d32f8002bf": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_STORAGE_KEY.2a10e3dd0b": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent__INSERTED_TIMESTAMP.6181a9e7b3": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_recent__INSERTED_TIMESTAMP__hour__2.b554e4f428": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.872559bae8": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_INSERTED_TIMESTAMP.37f1906b5e": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_recent_INSERTED_TIMESTAMP__hour__2.c03b6ae83d": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.683d2e792b": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_MODIFIED_TIMESTAMP.20bb673731": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_recent_MODIFIED_TIMESTAMP__hour__2.bbb5e0e0d4": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.61f2d74d31": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__state_tracer_storage_recent_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__STORAGE_KEY.d9bb4970ed": [], "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_storage_recent_BLOCK_NUMBER.c0f6ce209d": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_BLOCK_NUMBER.4fa04f5f10": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_TX_POSITION.8744f447b5": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_CONTRACT_ADDRESS.e5f17ac295": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_STORAGE_KEY.cd101ace2c": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_full__INSERTED_TIMESTAMP.4e98fa72be": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_full__INSERTED_TIMESTAMP__hour__2.f2cf720a38": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.ba4d82a7f4": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_INSERTED_TIMESTAMP.910eeb5ef0": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_full_INSERTED_TIMESTAMP__hour__2.c9809f0d87": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3560af35cf": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_MODIFIED_TIMESTAMP.6efadb8966": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_full_MODIFIED_TIMESTAMP__hour__2.06d1f3fa82": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3309bc50fc": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__state_tracer_storage_full_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__STORAGE_KEY.5b2da4ccec": [], "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_storage_full_BLOCK_NUMBER.220d9edbf2": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_full_BLOCK_NUMBER.daf64e7195": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_full_TX_POSITION.5341ec1824": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_full__INSERTED_TIMESTAMP.34cabd03ea": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_full__INSERTED_TIMESTAMP__hour__2.04c0ea8b3a": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b8f83a9d60": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_full_INSERTED_TIMESTAMP.73148f4c9f": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_full_INSERTED_TIMESTAMP__hour__2.27a287b0ff": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e31b64f564": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_full_MODIFIED_TIMESTAMP.039ad648bc": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_full_MODIFIED_TIMESTAMP__hour__2.60b5f18488": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c60bdcf3c5": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__state_tracer_native_full_BLOCK_NUMBER__TX_POSITION__ADDRESS.330497f8b0": [], "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_full_BLOCK_NUMBER.6b2d336770": [], "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_full_TX_POSITION__BLOCK_NUMBER.9593e60f66": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_recent_BLOCK_NUMBER.2bfc175262": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_recent_TX_POSITION.fba367afc8": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_recent__INSERTED_TIMESTAMP.2d0e2d2228": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_recent__INSERTED_TIMESTAMP__hour__2.4575f489b2": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.03278afbbf": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_recent_INSERTED_TIMESTAMP.bc0a242834": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_recent_INSERTED_TIMESTAMP__hour__2.1e5bd49352": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b6f1e27615": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_recent_MODIFIED_TIMESTAMP.4bc7f2d4b2": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_recent_MODIFIED_TIMESTAMP__hour__2.3488f1550e": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.492d86899e": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__state_tracer_native_recent_BLOCK_NUMBER__TX_POSITION__ADDRESS.a268df025f": [], "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_recent_BLOCK_NUMBER.ab121f4b57": [], "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_recent_TX_POSITION__BLOCK_NUMBER.a836b23d74": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER.91728a0792": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER__NUMBER__FLOAT.0a468bc5ad": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP.48e1d419bd": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.ed24300667": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP__hour__2.040296e80e": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_TX_HASH.757946cbca": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_recent_TX_HASH__0_xX_0_9a_fA_F_.1302569002": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_ADDRESS.01c3206f30": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_recent_ADDRESS__0_xX_0_9a_fA_F_.a3068d5b83": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_TX_POSITION.1b521e9d0f": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_recent_TX_POSITION__NUMBER__FLOAT.71f811a2f8": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_EZ_BALANCES_ERC20_ID.c51646cddb": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_INSERTED_TIMESTAMP.c66b3702e2": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_recent_INSERTED_TIMESTAMP__hour__2.276c7a9819": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_MODIFIED_TIMESTAMP.ec71871087": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_recent_MODIFIED_TIMESTAMP__hour__2.2b6d777c36": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__ADDRESS.2a065e63fe": [], "test.fsc_evm.fsc_evm_balances_diffs_erc20_test_gold__ez_balances_erc20_recent_test_gold__fact_event_logs_recent.f2764760a2": ["model.fsc_evm.test_gold__fact_event_logs_recent"], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_BLOCK_NUMBER.c55cc91d12": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_full_BLOCK_NUMBER__NUMBER__FLOAT.1d0ad6dc52": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP.3724f36b86": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.424615ee6c": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP__hour__2.d79a65793c": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_TX_HASH.4d0de34061": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_full_TX_HASH__0_xX_0_9a_fA_F_.6913d3d9ac": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_ADDRESS.da38330a62": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_full_ADDRESS__0_xX_0_9a_fA_F_.643110edff": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_TX_POSITION.3fc340221c": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_full_TX_POSITION__NUMBER__FLOAT.3d8227ec9a": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_EZ_BALANCES_ERC20_ID.310cb37ed7": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_INSERTED_TIMESTAMP.a5d2e2f414": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_full_INSERTED_TIMESTAMP__hour__2.0eb14d6cc6": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_MODIFIED_TIMESTAMP.0da7826eef": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_full_MODIFIED_TIMESTAMP__hour__2.0966e4b584": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_full_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__ADDRESS.852442981e": [], "test.fsc_evm.fsc_evm_balances_diffs_erc20_test_gold__ez_balances_erc20_full_test_gold__fact_event_logs_full.be7375fc73": ["model.fsc_evm.test_gold__fact_event_logs_full"], "test.fsc_evm.not_null_test_gold__ez_balances_native_full_BLOCK_NUMBER.69acacc211": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_full_BLOCK_NUMBER__NUMBER__FLOAT.50f7d50bdc": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP.3a9afd0178": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.8d9f8e6ebf": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP__hour__2.b107d29c9d": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_full_TX_HASH.2fe69fafd5": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_full_TX_HASH__0_xX_0_9a_fA_F_.d53f17ab0b": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_full_ADDRESS.35672de358": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_full_ADDRESS__0_xX_0_9a_fA_F_.05d87677be": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_full_TX_POSITION.da1b5f4519": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_full_TX_POSITION__NUMBER__FLOAT.3f4aad2a67": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_full_EZ_BALANCES_NATIVE_ID.46bcbcafba": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_full_INSERTED_TIMESTAMP.c453dab808": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_full_INSERTED_TIMESTAMP__hour__2.d78909c1b0": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_full_MODIFIED_TIMESTAMP.dbf568fac5": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_full_MODIFIED_TIMESTAMP__hour__2.1b9b9b6a83": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_full_BLOCK_NUMBER__TX_POSITION__ADDRESS.8cc136bf0e": [], "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_gold__ez_balances_native_full_TX_POSITION__BLOCK_NUMBER.89b997452e": [], "test.fsc_evm.fsc_evm_balances_diffs_native_test_gold__ez_balances_native_full_test_gold__fact_traces_full.6565b471ec": ["model.fsc_evm.test_gold__fact_traces_full"], "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_BLOCK_NUMBER.1bb4e6b131": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_recent_BLOCK_NUMBER__NUMBER__FLOAT.45ff1eef76": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP.a3cf870526": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.65f6fbec2e": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP__hour__2.ff27d2f37e": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_TX_HASH.bf6b15d88b": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_recent_TX_HASH__0_xX_0_9a_fA_F_.b62fa9c239": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_ADDRESS.41beaf4325": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_recent_ADDRESS__0_xX_0_9a_fA_F_.40465d0c34": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_TX_POSITION.f56998ca13": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_recent_TX_POSITION__NUMBER__FLOAT.5051e242ac": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_EZ_BALANCES_NATIVE_ID.ee66cf61ae": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_INSERTED_TIMESTAMP.8be1294764": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_recent_INSERTED_TIMESTAMP__hour__2.94be8de4d7": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_MODIFIED_TIMESTAMP.594af9f4e9": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_recent_MODIFIED_TIMESTAMP__hour__2.0362addb52": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_recent_BLOCK_NUMBER__TX_POSITION__ADDRESS.10abe1b512": [], "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_gold__ez_balances_native_recent_TX_POSITION__BLOCK_NUMBER.d26a1aa27f": [], "test.fsc_evm.fsc_evm_balances_diffs_native_test_gold__ez_balances_native_recent_test_gold__fact_traces_recent.b9139d7c14": ["model.fsc_evm.test_gold__fact_traces_recent"], "source.polygon_models.bronze_streamline.receipts": [], "source.polygon_models.bronze_streamline.blocks": [], "source.polygon_models.bronze_streamline.transactions": [], "source.polygon_models.bronze_streamline.traces": [], "source.polygon_models.bronze_streamline.decoded_logs": [], "source.polygon_models.bronze_streamline.confirm_blocks": [], "source.polygon_models.bronze_streamline.contract_abis": [], "source.polygon_models.bronze_streamline.token_reads": [], "source.polygon_models.bronze_streamline.balances_erc20": [], "source.polygon_models.bronze_streamline.balances_native": [], "source.polygon_models.bronze_streamline.state_tracer": [], "source.polygon_models.bronze_streamline.stablecoin_reads": [], "source.polygon_models.crosschain_silver.near_address_encoded": [], "source.polygon_models.crosschain_silver.labels_combined": [], "source.polygon_models.crosschain_silver.complete_provider_asset_metadata": [], "source.polygon_models.crosschain_silver.complete_native_asset_metadata": [], "source.polygon_models.crosschain_silver.complete_native_prices": [], "source.polygon_models.crosschain_silver.complete_provider_prices": [], "source.polygon_models.crosschain_silver.complete_token_asset_metadata": [], "source.polygon_models.crosschain_silver.complete_token_prices": [], "source.polygon_models.crosschain_silver.tokens_stablecoins": [], "source.polygon_models.crosschain_gold.dim_dates": [], "source.polygon_models.crosschain_public.user_abis": [], "source.polygon_models.complete_streamline.complete_contract_abis": [], "source.polygon_models.github_actions.workflows": [], "source.polygon_models.external_gold_defillama.dim_chains": [], "source.polygon_models.external_polymarket.dim_markets": [], "source.polygon_models.abis_silver.verified_abis": [], "source.polygon_models.abis_silver.complete_event_abis": [], "source.polygon_models.fsc_evm_admin._master_keys": [], "source.polygon_models.fsc_evm_admin.rpc_node_logs": [], "source.livequery_models.crosschain.dim_date_hours": [], "source.livequery_models.crosschain.dim_contracts": [], "source.livequery_models.crosschain.dim_evm_event_abis": [], "source.livequery_models.ethereum_core.fact_event_logs": [], "source.livequery_models.ethereum_core.ez_decoded_event_logs": [], "source.fsc_evm.snowflake_account_usage.complete_task_graphs": [], "source.fsc_evm.github_actions.workflows": [], "source.fsc_evm.bronze_streamline.blocks": [], "source.fsc_evm.bronze_streamline.blocks_v2": [], "source.fsc_evm.bronze_streamline.transactions": [], "source.fsc_evm.bronze_streamline.transactions_v2": [], "source.fsc_evm.bronze_streamline.receipts_by_hash": [], "source.fsc_evm.bronze_streamline.receipts": [], "source.fsc_evm.bronze_streamline.receipts_v2": [], "source.fsc_evm.bronze_streamline.traces": [], "source.fsc_evm.bronze_streamline.traces_v2": [], "source.fsc_evm.bronze_streamline.debug_traceblockbynumber": [], "source.fsc_evm.bronze_streamline.confirm_blocks": [], "source.fsc_evm.bronze_streamline.confirm_blocks_v2": [], "source.fsc_evm.bronze_streamline.decoded_logs": [], "source.fsc_evm.bronze_streamline.decoded_logs_v2": [], "source.fsc_evm.bronze_streamline.decoded_traces": [], "source.fsc_evm.bronze_streamline.decoded_traces_v2": [], "source.fsc_evm.bronze_streamline.contract_abis": [], "source.fsc_evm.bronze_streamline.contract_abis_v2": [], "source.fsc_evm.bronze_streamline.beacon_blocks": [], "source.fsc_evm.bronze_streamline.beacon_blocks_v2": [], "source.fsc_evm.bronze_streamline.beacon_validators": [], "source.fsc_evm.bronze_streamline.beacon_validators_v2": [], "source.fsc_evm.bronze_streamline.reads": [], "source.fsc_evm.bronze_streamline.reads_v2": [], "source.fsc_evm.bronze_streamline.state_tracer": [], "source.fsc_evm.bronze_streamline.token_reads": [], "source.fsc_evm.bronze_streamline.balances_erc20": [], "source.fsc_evm.bronze_streamline.balances_native": [], "source.fsc_evm.bronze_streamline.stablecoin_reads": [], "source.fsc_evm.complete_streamline.complete_contract_abis": [], "source.fsc_evm.crosschain_silver.labels_combined": [], "source.fsc_evm.crosschain_silver.complete_provider_asset_metadata": [], "source.fsc_evm.crosschain_silver.complete_native_asset_metadata": [], "source.fsc_evm.crosschain_silver.complete_native_prices": [], "source.fsc_evm.crosschain_silver.complete_provider_prices": [], "source.fsc_evm.crosschain_silver.complete_token_asset_metadata": [], "source.fsc_evm.crosschain_silver.complete_token_prices": [], "source.fsc_evm.crosschain_silver.near_address_encoded": [], "source.fsc_evm.crosschain_silver.tokens_stablecoins": [], "source.fsc_evm.crosschain_public.user_abis": [], "source.fsc_evm.crosschain_gold.dim_dates": [], "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_avalanche_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_base_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_bob_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_boba_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_bsc_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_ethereum_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_ink_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_optimism_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_polygon_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_avalanche_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_base_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_bob_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_boba_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_bsc_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_ethereum_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_ink_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_optimism_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_polygon_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_avalanche_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_base_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_bob_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_boba_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_bsc_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_ethereum_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_ink_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_optimism_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_polygon_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_protocol_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_avalanche_protocol_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_base_protocol_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_bob_protocol_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_boba_protocol_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_bsc_protocol_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_ethereum_protocol_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_ink_protocol_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_optimism_protocol_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_polygon_protocol_metrics": [], "source.fsc_evm.abis_silver.verified_abis": [], "source.fsc_evm.abis_silver.complete_event_abis": [], "source.fsc_evm.data_science_silver.evm_event_sigs": [], "source.fsc_evm.data_science_silver.evm_known_event_names": [], "source.fsc_evm.data_science_silver.evm_known_event_sigs": [], "source.fsc_evm.data_science_silver.evm_wrapped_assets": [], "source.fsc_evm.data_science_silver.dates": [], "source.fsc_evm.data_science_silver.scoring_activity_categories": [], "source.fsc_evm.fsc_evm_admin._master_keys": [], "source.fsc_evm.fsc_evm_admin.rpc_node_logs": []}, "child_map": {"model.polygon_models.silver__polymarket_filled_orders": ["test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_AMOUNT_USD__DECIMAL__FLOAT__NUMBER.12cd4b012b", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_PRICE_PER_SHARE__DECIMAL__FLOAT__NUMBER.d613cb9c05", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_SHARES__DECIMAL__FLOAT__NUMBER.0ed57ee530", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2a1903b370", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.7b409eed52", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.6f648aaeb4", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_TX_HASH__0_xX_0_9a_fA_F_.99f06dfd94", "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__polymarket_filled_orders_BLOCK_TIMESTAMP__day__3.566647b61b", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__polymarket_filled_orders__LOG_ID.7b6aeb1e9c", "test.polygon_models.not_null_silver__polymarket_filled_orders_AMOUNT_USD.07501acd40", "test.polygon_models.not_null_silver__polymarket_filled_orders_BLOCK_NUMBER.37fef61b1d", "test.polygon_models.not_null_silver__polymarket_filled_orders_BLOCK_TIMESTAMP.6917d6df42", "test.polygon_models.not_null_silver__polymarket_filled_orders_CONTRACT_ADDRESS.c1a839cddb", "test.polygon_models.not_null_silver__polymarket_filled_orders_EVENT_INDEX.08ca9dd7ff", "test.polygon_models.not_null_silver__polymarket_filled_orders_EVENT_NAME.8723d6958b", "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS.db8de48e63", "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_FUNCTION_SIGNATURE.cb15dd5380", "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS.d211fba691", "test.polygon_models.not_null_silver__polymarket_filled_orders_PRICE_PER_SHARE.bfce816c2f", "test.polygon_models.not_null_silver__polymarket_filled_orders_SHARES.4e8255f345", "test.polygon_models.not_null_silver__polymarket_filled_orders_TX_HASH.61638ba866"], "model.polygon_models.silver_olas__service_event_logs": ["test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_event_logs_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.c6b135bb12", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__service_event_logs__LOG_ID.283185ebcc", "test.polygon_models.not_null_silver_olas__service_event_logs_BLOCK_NUMBER.e49da10e6f", "test.polygon_models.not_null_silver_olas__service_event_logs_BLOCK_TIMESTAMP.f0e808ba68", "test.polygon_models.not_null_silver_olas__service_event_logs_DATA.e35df90e62", "test.polygon_models.not_null_silver_olas__service_event_logs_MULTISIG_ADDRESS.bcc9d7a3ca", "test.polygon_models.not_null_silver_olas__service_event_logs_SERVICE_ID.1ad8540ad5", "test.polygon_models.not_null_silver_olas__service_event_logs_TX_HASH.04a3422711"], "model.polygon_models.silver_olas__service_registrations": ["model.polygon_models.silver_olas__getservice_reads", "model.polygon_models.silver_olas__registry_reads", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_registrations_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.9e4a4fa9f9", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_registrations_OWNER_ADDRESS__0_xX_0_9a_fA_F_.bdfdf5df47", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__service_registrations__LOG_ID.2abbc6e68b", "test.polygon_models.not_null_silver_olas__service_registrations_BLOCK_NUMBER.07ad8d6819", "test.polygon_models.not_null_silver_olas__service_registrations_BLOCK_TIMESTAMP.5cfbea80f9", "test.polygon_models.not_null_silver_olas__service_registrations_OWNER_ADDRESS.60900e09bd", "test.polygon_models.not_null_silver_olas__service_registrations_SERVICE_ID.943c28d401", "test.polygon_models.not_null_silver_olas__service_registrations_TX_HASH.39ebb01275"], "model.polygon_models.silver_olas__create_service_multisigs": ["model.polygon_models.silver_olas__service_event_logs", "model.polygon_models.silver_olas__service_registrations", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__create_service_multisigs_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.81228daf15", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__create_service_multisigs__LOG_ID.57c866e6e9", "test.polygon_models.not_null_silver_olas__create_service_multisigs_BLOCK_NUMBER.69d215b1bf", "test.polygon_models.not_null_silver_olas__create_service_multisigs_BLOCK_TIMESTAMP.c337c03bc4", "test.polygon_models.not_null_silver_olas__create_service_multisigs_ID.daadfeec98", "test.polygon_models.not_null_silver_olas__create_service_multisigs_TX_HASH.cfb739aeec"], "model.polygon_models.silver_olas__registry_reads": ["model.polygon_models.silver_olas__registry_metadata", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_reads_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.5dc95cdcbc", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_reads_REGISTRY_READS_ID.92579c5880", "test.polygon_models.not_null_silver_olas__registry_reads_BLOCK_NUMBER.b13e2f8805", "test.polygon_models.not_null_silver_olas__registry_reads_CONTRACT_ADDRESS.8aeb785480", "test.polygon_models.not_null_silver_olas__registry_reads_TOKEN_URI_LINK.e05085b1e1"], "model.polygon_models.silver_olas__registry_metadata": ["model.polygon_models.silver_olas__registry_metadata_complete", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_metadata_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2d2a8813c5", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_metadata_REGISTRY_METADATA_ID.818d85b569", "test.polygon_models.not_null_silver_olas__registry_metadata_BLOCK_NUMBER.df505ae61e", "test.polygon_models.not_null_silver_olas__registry_metadata_CONTRACT_ADDRESS.d47b0a47dc", "test.polygon_models.not_null_silver_olas__registry_metadata_REGISTRY_ID.cee5b3e691"], "model.polygon_models.silver_olas__registry_metadata_complete": ["test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_metadata_complete_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.a79fec85ad", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_metadata_complete_REGISTRY_METADATA_ID.bde925d9ef", "test.polygon_models.not_null_silver_olas__registry_metadata_complete_CONTRACT_ADDRESS.2a0b0f82cb", "test.polygon_models.not_null_silver_olas__registry_metadata_complete_REGISTRY_ID.d41d9793d9"], "model.polygon_models.silver_olas__getservice_reads": ["model.polygon_models.silver_olas__registry_metadata_complete", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__getservice_reads_GETSERVICE_READS_ID.93211253f0", "test.polygon_models.not_null_silver_olas__getservice_reads_AGENT_IDS.16c637c223", "test.polygon_models.not_null_silver_olas__getservice_reads_BLOCK_NUMBER.4525478d4f", "test.polygon_models.not_null_silver_olas__getservice_reads_FUNCTION_INPUT.abe26173ba"], "model.polygon_models.silver__seaport_1_6_sales": ["model.polygon_models.silver__complete_nft_sales", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_6_sales_EVENT_TYPE__bid_won__sale.47081ac1d1", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_6_sales_PLATFORM_NAME__opensea.7575a475ff", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_BLOCK_NUMBER__NUMBER__FLOAT.9ab378f68e", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d0a43ce369", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.8cde9117f4", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.8a6b8eb72c", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.f1237eed20", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.1ff046cc57", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TX_FEE__NUMBER__FLOAT.5854e80011", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c4b8b65b03", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.dc8d5cedfd", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.277515e609", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.aa4bb5848c", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.e30720c0a3", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.d8be899441", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.62aeda5fe7", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.03d32571d2", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_TX_HASH__0_xX_0_9a_fA_F_.db140398eb", "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__seaport_1_6_sales_BLOCK_TIMESTAMP__day__1.55704a4959", "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__seaport_1_6_sales__INSERTED_TIMESTAMP__day__1.fef81231f9", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_6_sales_nft_log_id.ac3a041a56", "test.polygon_models.not_null_silver__seaport_1_6_sales_BLOCK_NUMBER.d8a7a7833f", "test.polygon_models.not_null_silver__seaport_1_6_sales_BLOCK_TIMESTAMP.aa8c9811f0", "test.polygon_models.not_null_silver__seaport_1_6_sales_BUYER_ADDRESS.fe949194db", "test.polygon_models.not_null_silver__seaport_1_6_sales_CREATOR_FEE_RAW.60fe2808f3", "test.polygon_models.not_null_silver__seaport_1_6_sales_CURRENCY_ADDRESS.36494514a1", "test.polygon_models.not_null_silver__seaport_1_6_sales_EVENT_TYPE.8b8c5fa13c", "test.polygon_models.not_null_silver__seaport_1_6_sales_INPUT_DATA.32f10c63e5", "test.polygon_models.not_null_silver__seaport_1_6_sales_NFT_ADDRESS.6411288ae0", "test.polygon_models.not_null_silver__seaport_1_6_sales_NFT_LOG_ID.c4b2be44be", "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS.be5f62774c", "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE.11f4cb34d8", "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS.c02c8c62a8", "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_ADDRESS.aacd1db03b", "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_FEE_RAW.aaa792c161", "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_NAME.9134b92f06", "test.polygon_models.not_null_silver__seaport_1_6_sales_SELLER_ADDRESS.266af61935", "test.polygon_models.not_null_silver__seaport_1_6_sales_TOKENID.2f9a22db6b", "test.polygon_models.not_null_silver__seaport_1_6_sales_TOTAL_FEES_RAW.919411d757", "test.polygon_models.not_null_silver__seaport_1_6_sales_TOTAL_PRICE_RAW.8151aa3865", "test.polygon_models.not_null_silver__seaport_1_6_sales_TX_FEE.9b8567b583", "test.polygon_models.not_null_silver__seaport_1_6_sales_TX_HASH.c56c02a893", "test.polygon_models.not_null_silver__seaport_1_6_sales__INSERTED_TIMESTAMP.7aa84213a2"], "model.polygon_models.silver__aggregator_list": ["model.polygon_models.silver__complete_nft_sales"], "model.polygon_models.silver__seaport_1_1_sales": ["model.polygon_models.silver__complete_nft_sales", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_1_sales_EVENT_TYPE__bid_won__sale.2524b82d17", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_1_sales_PLATFORM_NAME__opensea.559a845700", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_BLOCK_NUMBER__NUMBER__FLOAT.16b1475a6c", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.633ddbc1cc", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.c4c3f0c765", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.a33e76bb25", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.216c3d4f53", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.20c0e6f088", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TX_FEE__NUMBER__FLOAT.5fc845aa08", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.044c1f3328", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.e0b5729239", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.7ba4b12cc3", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.44c7ddb31b", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.77a1924e3a", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.41d5da7600", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.bbb38fefa1", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.82ff004d89", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_TX_HASH__0_xX_0_9a_fA_F_.4980f309d1", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_1_sales_nft_log_id.b926efc93c", "test.polygon_models.not_null_silver__seaport_1_1_sales_BLOCK_NUMBER.24829e36fa", "test.polygon_models.not_null_silver__seaport_1_1_sales_BLOCK_TIMESTAMP.8996639023", "test.polygon_models.not_null_silver__seaport_1_1_sales_BUYER_ADDRESS.cffb31ba59", "test.polygon_models.not_null_silver__seaport_1_1_sales_CREATOR_FEE_RAW.4571cd3937", "test.polygon_models.not_null_silver__seaport_1_1_sales_CURRENCY_ADDRESS.1be87eaf04", "test.polygon_models.not_null_silver__seaport_1_1_sales_EVENT_TYPE.50311bf0fc", "test.polygon_models.not_null_silver__seaport_1_1_sales_INPUT_DATA.bbebff71e0", "test.polygon_models.not_null_silver__seaport_1_1_sales_NFT_ADDRESS.4c2d3ab960", "test.polygon_models.not_null_silver__seaport_1_1_sales_NFT_LOG_ID.f7cd721252", "test.polygon_models.not_null_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS.07dbc4f7e2", "test.polygon_models.not_null_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE.1ffe9dc96f", "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_ADDRESS.a76e4edeac", "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_FEE_RAW.98f46b971f", "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_NAME.cd7a9560be", "test.polygon_models.not_null_silver__seaport_1_1_sales_SELLER_ADDRESS.d1219d17a2", "test.polygon_models.not_null_silver__seaport_1_1_sales_TOKENID.de88cac8c5", "test.polygon_models.not_null_silver__seaport_1_1_sales_TOTAL_FEES_RAW.90afed2683", "test.polygon_models.not_null_silver__seaport_1_1_sales_TOTAL_PRICE_RAW.470d158317", "test.polygon_models.not_null_silver__seaport_1_1_sales_TX_FEE.9da040f28a", "test.polygon_models.not_null_silver__seaport_1_1_sales_TX_HASH.4ef964ba26", "test.polygon_models.not_null_silver__seaport_1_1_sales__INSERTED_TIMESTAMP.39029cba5f"], "model.polygon_models.silver__seaport_1_5_sales": ["model.polygon_models.silver__complete_nft_sales", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_5_sales_EVENT_TYPE__bid_won__sale.3afc0ac436", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_5_sales_PLATFORM_NAME__opensea.16c4e7cfc1", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_BLOCK_NUMBER__NUMBER__FLOAT.5fd14b6024", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.6246cb2672", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.e6a47f2796", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.b6d1df5615", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.5721ea6b45", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.b4f6fa2d3d", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TX_FEE__NUMBER__FLOAT.ee212825cc", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9516659c33", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4cd6e3b69f", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.99fc2c7c14", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.5e09839047", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.a1eee69661", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.fe4a91e952", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.28cf427125", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.224af0bd4c", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_TX_HASH__0_xX_0_9a_fA_F_.3c3779d6bb", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_5_sales_nft_log_id.abea905342", "test.polygon_models.not_null_silver__seaport_1_5_sales_BLOCK_NUMBER.c4c18714b1", "test.polygon_models.not_null_silver__seaport_1_5_sales_BLOCK_TIMESTAMP.0e3cfc73a7", "test.polygon_models.not_null_silver__seaport_1_5_sales_BUYER_ADDRESS.5a3e4fa745", "test.polygon_models.not_null_silver__seaport_1_5_sales_CREATOR_FEE_RAW.abf009e067", "test.polygon_models.not_null_silver__seaport_1_5_sales_CURRENCY_ADDRESS.dbcea46a1f", "test.polygon_models.not_null_silver__seaport_1_5_sales_EVENT_TYPE.754547c445", "test.polygon_models.not_null_silver__seaport_1_5_sales_INPUT_DATA.eecd421993", "test.polygon_models.not_null_silver__seaport_1_5_sales_NFT_ADDRESS.f813b4d9e7", "test.polygon_models.not_null_silver__seaport_1_5_sales_NFT_LOG_ID.aa0757e4d2", "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS.0b88cca2bc", "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE.9ca019a30f", "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS.d459ebe228", "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_ADDRESS.df87d38f26", "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_FEE_RAW.87b23c30ad", "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_NAME.2cdf43e2a0", "test.polygon_models.not_null_silver__seaport_1_5_sales_SELLER_ADDRESS.48bbb8263d", "test.polygon_models.not_null_silver__seaport_1_5_sales_TOKENID.f690e73e38", "test.polygon_models.not_null_silver__seaport_1_5_sales_TOTAL_FEES_RAW.b8f34e40c8", "test.polygon_models.not_null_silver__seaport_1_5_sales_TOTAL_PRICE_RAW.46ad0b4d7a", "test.polygon_models.not_null_silver__seaport_1_5_sales_TX_FEE.289ce03033", "test.polygon_models.not_null_silver__seaport_1_5_sales_TX_HASH.e332a4e2f2", "test.polygon_models.not_null_silver__seaport_1_5_sales__INSERTED_TIMESTAMP.ca71885856"], "model.polygon_models.silver__tofunft_sales": ["model.polygon_models.silver__complete_nft_sales", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__tofunft_sales_EVENT_TYPE__bid_won__sale.2c30cdcd41", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_BLOCK_NUMBER__NUMBER__FLOAT.2efc5278e8", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.030006fed4", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.338ac91ecd", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.ee9c014f0f", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.b0c431b629", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.394b29750a", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TX_FEE__NUMBER__FLOAT.2e849c3a94", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.eafbf3d59d", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4b40cff5db", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.a542b4ea96", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.ad1193ebee", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.266e7a9bab", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.f3b5a3d941", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.e3fe1c4346", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.4ade570dee", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_TX_HASH__0_xX_0_9a_fA_F_.07ff7d8529", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__tofunft_sales_nft_log_id.628c88944c", "test.polygon_models.not_null_silver__tofunft_sales_BLOCK_NUMBER.afa8a4e8f3", "test.polygon_models.not_null_silver__tofunft_sales_BLOCK_TIMESTAMP.7f084f3df1", "test.polygon_models.not_null_silver__tofunft_sales_BUYER_ADDRESS.e1bb974f14", "test.polygon_models.not_null_silver__tofunft_sales_CREATOR_FEE_RAW.2acaf124dc", "test.polygon_models.not_null_silver__tofunft_sales_CURRENCY_ADDRESS.415669b9b3", "test.polygon_models.not_null_silver__tofunft_sales_EVENT_TYPE.0b1cc9cc57", "test.polygon_models.not_null_silver__tofunft_sales_INPUT_DATA.358e16915b", "test.polygon_models.not_null_silver__tofunft_sales_NFT_ADDRESS.56fa9c4a2e", "test.polygon_models.not_null_silver__tofunft_sales_NFT_LOG_ID.5be70a9545", "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_FROM_ADDRESS.0e7cafbf22", "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE.ebd6d32cdd", "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_TO_ADDRESS.6fe92c8681", "test.polygon_models.not_null_silver__tofunft_sales_PLATFORM_ADDRESS.d680990b3f", "test.polygon_models.not_null_silver__tofunft_sales_PLATFORM_FEE_RAW.07e68bea2e", "test.polygon_models.not_null_silver__tofunft_sales_SELLER_ADDRESS.2623b7e06f", "test.polygon_models.not_null_silver__tofunft_sales_TOKENID.dbc3abbfb8", "test.polygon_models.not_null_silver__tofunft_sales_TOTAL_FEES_RAW.ea6fd23ad5", "test.polygon_models.not_null_silver__tofunft_sales_TOTAL_PRICE_RAW.ebe1a4900d", "test.polygon_models.not_null_silver__tofunft_sales_TX_FEE.911a502933", "test.polygon_models.not_null_silver__tofunft_sales_TX_HASH.d00c52e95b", "test.polygon_models.not_null_silver__tofunft_sales__INSERTED_TIMESTAMP.99cb218d68"], "model.polygon_models.silver__complete_nft_sales": ["model.polygon_models.nft__ez_nft_sales", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_BLOCK_NUMBER__NUMBER__FLOAT.fdf0d994a1", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.84edb45427", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_CREATOR_FEE_USD__NUMBER__FLOAT.32f4b653be", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_CREATOR_FEE__NUMBER__FLOAT.cff32bf09f", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PLATFORM_FEE_USD__NUMBER__FLOAT.bf1cc86946", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PLATFORM_FEE__NUMBER__FLOAT.4db7a35a78", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PRICE_USD__NUMBER__FLOAT.3865ef9872", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PRICE__NUMBER__FLOAT.b67f7f036b", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TOTAL_FEES_USD__NUMBER__FLOAT.8179f9db61", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TOTAL_FEES__NUMBER__FLOAT.c717cf1013", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TX_FEE__NUMBER__FLOAT.a50c15b6b4", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4226247a32", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.232d4d13e5", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.165fc34eac", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.b46c604770", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.e291a891ae", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.5e6bffa046", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.bbf4b8149f", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_TX_HASH__0_xX_0_9a_fA_F_.0ee978e0d4", "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__complete_nft_sales_BLOCK_TIMESTAMP__day__1.40e4447972", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__complete_nft_sales_nft_log_id.1db89d3193", "test.polygon_models.not_null_silver__complete_nft_sales_BLOCK_NUMBER.57944b643f", "test.polygon_models.not_null_silver__complete_nft_sales_BLOCK_TIMESTAMP.79a5861cbe", "test.polygon_models.not_null_silver__complete_nft_sales_BUYER_ADDRESS.69569a63c7", "test.polygon_models.not_null_silver__complete_nft_sales_CREATOR_FEE.2bcba1a012", "test.polygon_models.not_null_silver__complete_nft_sales_CURRENCY_ADDRESS.9b1d0cc7a8", "test.polygon_models.not_null_silver__complete_nft_sales_EVENT_INDEX.f2adcca32f", "test.polygon_models.not_null_silver__complete_nft_sales_EVENT_TYPE.b71abf8ef9", "test.polygon_models.not_null_silver__complete_nft_sales_INPUT_DATA.37d4f77f83", "test.polygon_models.not_null_silver__complete_nft_sales_NFT_ADDRESS.5537952adb", "test.polygon_models.not_null_silver__complete_nft_sales_NFT_LOG_ID.6a32d9392a", "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS.5f21f6c546", "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE.e14fe88673", "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_TO_ADDRESS.fb55dbfb6f", "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_ADDRESS.795fa17957", "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_FEE.d2ec7dbdd0", "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_NAME.ffe92d79fd", "test.polygon_models.not_null_silver__complete_nft_sales_PRICE.664e2772c7", "test.polygon_models.not_null_silver__complete_nft_sales_SELLER_ADDRESS.eda1b7ad24", "test.polygon_models.not_null_silver__complete_nft_sales_TOKENID.434c1bbb73", "test.polygon_models.not_null_silver__complete_nft_sales_TOTAL_FEES.5f94d9565b", "test.polygon_models.not_null_silver__complete_nft_sales_TX_FEE.3b60a50418", "test.polygon_models.not_null_silver__complete_nft_sales_TX_HASH.c6a7c23911", "test.polygon_models.not_null_silver__complete_nft_sales__LOG_ID.423b310544"], "model.polygon_models.silver__seaport_1_4_sales": ["model.polygon_models.silver__complete_nft_sales", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_4_sales_EVENT_TYPE__bid_won__sale.6b6cedf5d9", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_4_sales_PLATFORM_NAME__opensea.cab2dd30f7", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_BLOCK_NUMBER__NUMBER__FLOAT.db1568242f", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e5a6626a52", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.bd13725310", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.b3d57d8632", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.2bde19d676", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.fceecfdb11", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TX_FEE__NUMBER__FLOAT.d59a0ea6ef", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82ad920c6e", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.f73a5fc522", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.ea367e02b2", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.b0cc0cbca1", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.8d40d2780e", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.6a5fede4fd", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.cd2cbbcc06", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.f7b39ffb41", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_TX_HASH__0_xX_0_9a_fA_F_.6ec2b48a1e", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_4_sales_nft_log_id.a174df5b72", "test.polygon_models.not_null_silver__seaport_1_4_sales_BLOCK_NUMBER.87ef6d1a21", "test.polygon_models.not_null_silver__seaport_1_4_sales_BLOCK_TIMESTAMP.64626723f1", "test.polygon_models.not_null_silver__seaport_1_4_sales_BUYER_ADDRESS.39557d23ca", "test.polygon_models.not_null_silver__seaport_1_4_sales_CREATOR_FEE_RAW.98d862e5d3", "test.polygon_models.not_null_silver__seaport_1_4_sales_CURRENCY_ADDRESS.cfb0b5d08a", "test.polygon_models.not_null_silver__seaport_1_4_sales_EVENT_TYPE.a53bf70c11", "test.polygon_models.not_null_silver__seaport_1_4_sales_INPUT_DATA.02b25fd3bc", "test.polygon_models.not_null_silver__seaport_1_4_sales_NFT_ADDRESS.9e5ab44cbd", "test.polygon_models.not_null_silver__seaport_1_4_sales_NFT_LOG_ID.5be99512a7", "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS.492297495d", "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE.e81f20de7e", "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS.e67fafc448", "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_ADDRESS.148994188c", "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_FEE_RAW.a0f300ff1c", "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_NAME.1fb199e6b9", "test.polygon_models.not_null_silver__seaport_1_4_sales_SELLER_ADDRESS.efdfee2c74", "test.polygon_models.not_null_silver__seaport_1_4_sales_TOKENID.8353c1c5b8", "test.polygon_models.not_null_silver__seaport_1_4_sales_TOTAL_FEES_RAW.49141684e9", "test.polygon_models.not_null_silver__seaport_1_4_sales_TOTAL_PRICE_RAW.0ccd4356fe", "test.polygon_models.not_null_silver__seaport_1_4_sales_TX_FEE.7a79488ebd", "test.polygon_models.not_null_silver__seaport_1_4_sales_TX_HASH.76c3272674", "test.polygon_models.not_null_silver__seaport_1_4_sales__INSERTED_TIMESTAMP.7cc0485f0d"], "model.polygon_models.silver__element_sales": ["model.polygon_models.silver__complete_nft_sales", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__element_sales_EVENT_TYPE__bid_won__sale.13f1c327ac", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_BLOCK_NUMBER__NUMBER__FLOAT.e369cc923d", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.77148f96bc", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.9f55628b74", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.75db53c973", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.8b75c81a0d", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.a01e856376", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TX_FEE__NUMBER__FLOAT.ba599921e2", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.1a632cfd6e", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.f3bcb7907f", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.8bf1eb8fd4", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.fd0843fa8a", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.3b01529200", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.0e7240aef8", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_TX_HASH__0_xX_0_9a_fA_F_.197ddfc264", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__element_sales_nft_log_id.3f2a276dbb", "test.polygon_models.not_null_silver__element_sales_BLOCK_NUMBER.6f285666e9", "test.polygon_models.not_null_silver__element_sales_BLOCK_TIMESTAMP.feb749030b", "test.polygon_models.not_null_silver__element_sales_BUYER_ADDRESS.13709bfa32", "test.polygon_models.not_null_silver__element_sales_CREATOR_FEE_RAW.05b31270ac", "test.polygon_models.not_null_silver__element_sales_CURRENCY_ADDRESS.6209f77238", "test.polygon_models.not_null_silver__element_sales_EVENT_TYPE.1374ddbae0", "test.polygon_models.not_null_silver__element_sales_INPUT_DATA.033bf73b52", "test.polygon_models.not_null_silver__element_sales_NFT_ADDRESS.a64e864cf2", "test.polygon_models.not_null_silver__element_sales_NFT_LOG_ID.a2214c6c73", "test.polygon_models.not_null_silver__element_sales_ORIGIN_FROM_ADDRESS.488cc78674", "test.polygon_models.not_null_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE.be176a72e9", "test.polygon_models.not_null_silver__element_sales_ORIGIN_TO_ADDRESS.0c5df398d0", "test.polygon_models.not_null_silver__element_sales_PLATFORM_FEE_RAW.4ff5271e75", "test.polygon_models.not_null_silver__element_sales_SELLER_ADDRESS.cbd314ffba", "test.polygon_models.not_null_silver__element_sales_TOKENID.0c4c737af0", "test.polygon_models.not_null_silver__element_sales_TOTAL_FEES_RAW.e744dc994a", "test.polygon_models.not_null_silver__element_sales_TOTAL_PRICE_RAW.6277f419e1", "test.polygon_models.not_null_silver__element_sales_TX_FEE.cbc67dca64", "test.polygon_models.not_null_silver__element_sales_TX_HASH.c94a3fb7ed", "test.polygon_models.not_null_silver__element_sales__LOG_ID.45798a356f"], "model.polygon_models.silver__mooar_sales": ["model.polygon_models.silver__complete_nft_sales", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__mooar_sales_EVENT_TYPE__bid_won__sale.72a263fcbe", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_BLOCK_NUMBER__NUMBER__FLOAT.07310f104e", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f85e0e9c18", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.3d185db5b6", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.18683075ab", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.a91c15b84d", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.72cac3a65f", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TX_FEE__NUMBER__FLOAT.dfe58ed919", "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a0776dfdc1", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.6b889510cb", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.fa8c038b49", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.820c1a0eaa", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.f92b286eda", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.78e48edafd", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.c3c9bf6f98", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.c14c9abbbc", "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_TX_HASH__0_xX_0_9a_fA_F_.f22d26a2aa", "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__mooar_sales_BLOCK_TIMESTAMP__day__1.799f3f451c", "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__mooar_sales__INSERTED_TIMESTAMP__day__14.743279bc26", "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__mooar_sales_nft_log_id.368a737a67", "test.polygon_models.not_null_silver__mooar_sales_BLOCK_NUMBER.543489371f", "test.polygon_models.not_null_silver__mooar_sales_BLOCK_TIMESTAMP.30e0588b15", "test.polygon_models.not_null_silver__mooar_sales_BUYER_ADDRESS.888d3bd2c2", "test.polygon_models.not_null_silver__mooar_sales_CREATOR_FEE_RAW.23190ef573", "test.polygon_models.not_null_silver__mooar_sales_CURRENCY_ADDRESS.bd2ef41ae9", "test.polygon_models.not_null_silver__mooar_sales_EVENT_TYPE.482185083d", "test.polygon_models.not_null_silver__mooar_sales_INPUT_DATA.d587446188", "test.polygon_models.not_null_silver__mooar_sales_NFT_ADDRESS.d7517df1bb", "test.polygon_models.not_null_silver__mooar_sales_NFT_LOG_ID.af807c77e9", "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_FROM_ADDRESS.a779765ca9", "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE.764964b444", "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_TO_ADDRESS.eadc499ce1", "test.polygon_models.not_null_silver__mooar_sales_PLATFORM_ADDRESS.d745fc012b", "test.polygon_models.not_null_silver__mooar_sales_PLATFORM_FEE_RAW.6ab323f694", "test.polygon_models.not_null_silver__mooar_sales_SELLER_ADDRESS.44cd7daff0", "test.polygon_models.not_null_silver__mooar_sales_TOKENID.4fbe1082e6", "test.polygon_models.not_null_silver__mooar_sales_TOTAL_FEES_RAW.676780db0c", "test.polygon_models.not_null_silver__mooar_sales_TOTAL_PRICE_RAW.528a859034", "test.polygon_models.not_null_silver__mooar_sales_TX_FEE.5eed484409", "test.polygon_models.not_null_silver__mooar_sales_TX_HASH.da6a3d4a3e", "test.polygon_models.not_null_silver__mooar_sales__INSERTED_TIMESTAMP.93f5a5c8cb"], "model.polygon_models.nft__ez_nft_sales": [], "seed.polygon_models.observability__exclusion_list": [], "operation.polygon_models.polygon_models-on-run-start-0": [], "operation.polygon_models.polygon_models-on-run-start-1": [], "operation.polygon_models.polygon_models-on-run-end-0": [], "model.livequery_models.live__allow_list": [], "model.livequery_models._eth__decoded_logs": ["model.livequery_models.ethereum__mainnet"], "model.livequery_models._eth__logs": ["model.livequery_models.ethereum__mainnet"], "model.livequery_models._evm__abi_map": ["analysis.livequery_models.test_crud_udfs_in_schema", "model.livequery_models.arbitrum_nova__mainnet", "model.livequery_models.arbitrum_one__goerli", "model.livequery_models.arbitrum_one__mainnet", "model.livequery_models.avalanche_c__mainnet", "model.livequery_models.avalanche_c__testnet", "model.livequery_models.base__goerli", "model.livequery_models.base__mainnet", "model.livequery_models.bsc__mainnet", "model.livequery_models.bsc__testnet", "model.livequery_models.celo__mainnet", "model.livequery_models.ethereum__goerli", "model.livequery_models.ethereum__mainnet", "model.livequery_models.ethereum__sepolia", "model.livequery_models.fantom__mainnet", "model.livequery_models.gnosis__mainnet", "model.livequery_models.harmony__mainnet", "model.livequery_models.harmony__testnet", "model.livequery_models.optimism__goerli", "model.livequery_models.optimism__mainnet", "model.livequery_models.polygon__mainnet", "model.livequery_models.polygon__testnet", "model.livequery_models.polygon_zkevm__mainnet", "model.livequery_models.polygon_zkevm__testnet"], "model.livequery_models._evm__contracts_map": ["analysis.livequery_models.test_crud_udfs_in_schema", "model.livequery_models.arbitrum_nova__mainnet", "model.livequery_models.arbitrum_one__goerli", "model.livequery_models.arbitrum_one__mainnet", "model.livequery_models.avalanche_c__mainnet", "model.livequery_models.avalanche_c__testnet", "model.livequery_models.base__goerli", "model.livequery_models.base__mainnet", "model.livequery_models.bsc__mainnet", "model.livequery_models.bsc__testnet", "model.livequery_models.celo__mainnet", "model.livequery_models.ethereum__goerli", "model.livequery_models.ethereum__mainnet", "model.livequery_models.ethereum__sepolia", "model.livequery_models.fantom__mainnet", "model.livequery_models.gnosis__mainnet", "model.livequery_models.harmony__mainnet", "model.livequery_models.harmony__testnet", "model.livequery_models.optimism__goerli", "model.livequery_models.optimism__mainnet", "model.livequery_models.polygon__mainnet", "model.livequery_models.polygon__testnet", "model.livequery_models.polygon_zkevm__mainnet", "model.livequery_models.polygon_zkevm__testnet"], "model.livequery_models._evm__native_symbol_map": ["analysis.livequery_models.test_crud_udfs_in_schema", "model.livequery_models.arbitrum_nova__mainnet", "model.livequery_models.arbitrum_one__goerli", "model.livequery_models.arbitrum_one__mainnet", "model.livequery_models.avalanche_c__mainnet", "model.livequery_models.avalanche_c__testnet", "model.livequery_models.base__goerli", "model.livequery_models.base__mainnet", "model.livequery_models.bsc__mainnet", "model.livequery_models.bsc__testnet", "model.livequery_models.celo__mainnet", "model.livequery_models.ethereum__goerli", "model.livequery_models.ethereum__mainnet", "model.livequery_models.ethereum__sepolia", "model.livequery_models.fantom__mainnet", "model.livequery_models.gnosis__mainnet", "model.livequery_models.harmony__mainnet", "model.livequery_models.harmony__testnet", "model.livequery_models.optimism__goerli", "model.livequery_models.optimism__mainnet", "model.livequery_models.polygon__mainnet", "model.livequery_models.polygon__testnet", "model.livequery_models.polygon_zkevm__mainnet", "model.livequery_models.polygon_zkevm__testnet"], "model.livequery_models.gnosis__mainnet": [], "model.livequery_models.fantom__mainnet": [], "model.livequery_models.ethereum__mainnet": [], "model.livequery_models.bsc__testnet": [], "model.livequery_models.avalanche_c__testnet": [], "model.livequery_models.ethereum__sepolia": [], "model.livequery_models.harmony__mainnet": [], "model.livequery_models.avalanche_c__mainnet": [], "model.livequery_models.optimism__goerli": [], "model.livequery_models.harmony__testnet": [], "model.livequery_models.optimism__mainnet": [], "model.livequery_models.base__goerli": [], "model.livequery_models.polygon__mainnet": [], "model.livequery_models.polygon__testnet": [], "model.livequery_models.arbitrum_nova__mainnet": [], "model.livequery_models.base__mainnet": [], "model.livequery_models.ethereum__goerli": [], "model.livequery_models.polygon_zkevm__mainnet": [], "model.livequery_models.celo__mainnet": [], "model.livequery_models.bsc__mainnet": [], "model.livequery_models.arbitrum_one__mainnet": [], "model.livequery_models.arbitrum_one__goerli": [], "model.livequery_models.polygon_zkevm__testnet": [], "model.livequery_models.transpose__": ["test.livequery_models.test_transpose__get_status_200.8721d94682"], "model.livequery_models.credmark_utils__": ["test.livequery_models.test_credmark_utils__get_status_200.d1548e1f6e"], "model.livequery_models.opensea__": ["test.livequery_models.test_opensea__get_collection_stats_status_200.bdf3d1d191"], "model.livequery_models.stakingrewards__": ["test.livequery_models.test_stakingrewards__query_status_200.144a35304b"], "model.livequery_models.subquery__": ["test.livequery_models.test_subquery__graphql_status_200.b25433a976"], "model.livequery_models.topshot__": ["test.livequery_models.test_topshot__graphql_status_200.fb93e3b220"], "model.livequery_models.allday__": ["test.livequery_models.test_allday__graphql_status_200.8cfd62f9a1"], "model.livequery_models.coingecko__": ["test.livequery_models.test_coingecko__get_status_200.047f15c956"], "model.livequery_models.slack_utils__slack_utils": ["model.livequery_models.slack__", "test.livequery_models.test_slack_utils__post_message_auth_error.ca1392a817", "test.livequery_models.test_slack_utils__post_message_httpbin.faac84e2cd", "test.livequery_models.test_slack_utils__post_reply_httpbin.c787547840", "test.livequery_models.test_slack_utils__post_webhook_httpbin.de5573cb7a", "test.livequery_models.test_slack_utils__post_webhook_invalid_url.aed389ddc9", "test.livequery_models.test_slack_utils__post_webhook_null_payload.8b4db9f76e", "test.livequery_models.test_slack_utils__validate_channel_dm.e73977329f", "test.livequery_models.test_slack_utils__validate_channel_empty.7935ed3012", "test.livequery_models.test_slack_utils__validate_channel_group.481cbe7e68", "test.livequery_models.test_slack_utils__validate_channel_id.3c2bddfcc4", "test.livequery_models.test_slack_utils__validate_channel_invalid.2df37ed1b8", "test.livequery_models.test_slack_utils__validate_channel_name.ee330f32dc", "test.livequery_models.test_slack_utils__validate_channel_null.23eeea530c", "test.livequery_models.test_slack_utils__validate_webhook_url_invalid.3576e28c54", "test.livequery_models.test_slack_utils__validate_webhook_url_valid.6420f9435d"], "model.livequery_models.slack__": ["test.livequery_models.test_slack__post_message_blocks.904b39bace", "test.livequery_models.test_slack__post_message_simple.0751f090c1", "test.livequery_models.test_slack__post_reply_simple.a734331ab3", "test.livequery_models.test_slack__webhook_send_complex_payload.5c2206d9c2", "test.livequery_models.test_slack__webhook_send_rich.488499c36a", "test.livequery_models.test_slack__webhook_send_simple.ee0011caae"], "model.livequery_models.dapplooker__": ["test.livequery_models.test_dapplooker__get_chart_status_202.4fedf28822"], "model.livequery_models.claude_utils__claude_utils": ["model.livequery_models.claude__", "test.livequery_models.test_claude_utils__post_api_status_200.fe926b326c"], "model.livequery_models.claude__": ["test.livequery_models.test_claude__count_message_tokens.f5bafb2bce", "test.livequery_models.test_claude__get_model.1f65c29a92", "test.livequery_models.test_claude__list_message_batches.df27ad85b6", "test.livequery_models.test_claude__list_models.8516d777c7", "test.livequery_models.test_claude__post_messages_batch.63bf2a363f", "test.livequery_models.test_claude__post_messages_only_one_message.ff8a12fc1b", "test.livequery_models.test_claude__post_messages_with_all_params.0917a032d2", "test.livequery_models.test_claude__post_messages_with_model.7b5774fbf2"], "model.livequery_models.strangelove__": ["test.livequery_models.test_strangelove__get_status_200.0a58865924"], "model.livequery_models.fred__": ["test.livequery_models.test_fred__get_series_status_200.51822e30ca"], "model.livequery_models.espn__": ["test.livequery_models.test_espn__get_status_200.b4f84cc829"], "model.livequery_models.solscan__": ["test.livequery_models.test_solscan_public_api_get__get_status_200.388381be71"], "model.livequery_models.dappradar__": ["test.livequery_models.test_dappradar__get_status_200.979ea475dc"], "model.livequery_models.covalent__": ["test.livequery_models.test_covalent__get_status_200.bb43bb7f69"], "model.livequery_models.deepnftvalue__": ["test.livequery_models.test_deepnftvalue__get_status_200.49fba544bb"], "model.livequery_models.github_utils__github_utils": ["model.livequery_models.github_actions__github_utils", "test.livequery_models.test_github_utils__headers_format.bf75978db7", "test.livequery_models.test_github_utils__octocat_status_200.7a9c72f57f", "test.livequery_models.test_github_utils__post_invalid_route.f060700fd1", "test.livequery_models.test_github_utils__put_invalid_route.d361d590cf"], "model.livequery_models.github_actions__github_utils": ["test.livequery_models.test_github_actions__job_logs.5a2d0a3c80", "test.livequery_models.test_github_actions__runs_simple.fb19fd1022", "test.livequery_models.test_github_actions__runs_with_query.c134c002ca", "test.livequery_models.test_github_actions__tf_failed_jobs_with_logs.f99b7e9705", "test.livequery_models.test_github_actions__tf_failure_analysis_with_ai_cortex.f6b67b3893", "test.livequery_models.test_github_actions__tf_failure_analysis_with_ai_custom_prompt.9412c58df0", "test.livequery_models.test_github_actions__tf_failure_analysis_with_ai_default.f6378c5240", "test.livequery_models.test_github_actions__tf_runs_simple.e5cbf35e89", "test.livequery_models.test_github_actions__tf_runs_with_query.1164bd17ab", "test.livequery_models.test_github_actions__tf_workflow_run_jobs_simple.ddea8e10f5", "test.livequery_models.test_github_actions__tf_workflow_run_jobs_with_query.b6002abbe4", "test.livequery_models.test_github_actions__tf_workflow_runs_simple.2677ffd8e8", "test.livequery_models.test_github_actions__tf_workflow_runs_with_query.4108f0ee5c", "test.livequery_models.test_github_actions__tf_workflows_simple.e309afa5b7", "test.livequery_models.test_github_actions__tf_workflows_with_query.55c801e96a", "test.livequery_models.test_github_actions__workflow_disable.aefa4786d2", "test.livequery_models.test_github_actions__workflow_dispatches_simple.81f75f9435", "test.livequery_models.test_github_actions__workflow_dispatches_with_body.d94154911b", "test.livequery_models.test_github_actions__workflow_enable.0b608e8267", "test.livequery_models.test_github_actions__workflow_run_jobs_simple.3f673e1432", "test.livequery_models.test_github_actions__workflow_run_jobs_with_query.4a098421bd", "test.livequery_models.test_github_actions__workflow_run_logs.9a9822b746", "test.livequery_models.test_github_actions__workflow_runs_simple.3fae7a0ed4", "test.livequery_models.test_github_actions__workflow_runs_with_query.2cc7cb1189", "test.livequery_models.test_github_actions__workflows_simple.c1eaeaca38", "test.livequery_models.test_github_actions__workflows_with_query.6ac4a8b3f9"], "model.livequery_models.nftscan__": ["test.livequery_models.test_nftscan__get_status_200.33868e0f0d"], "model.livequery_models.chainbase_utils__": ["test.livequery_models.test_chainbase_utils__get_status_200.07b6733652"], "model.livequery_models.snapshot__": ["test.livequery_models.test_snapshot__query_status_200.35a2cffb40"], "model.livequery_models.reservoir__": ["test.livequery_models.test_reservoir__get_status_200.cb905ea233"], "model.livequery_models.defillama__": ["test.livequery_models.test_defillama__get_status_200.95a3be7633"], "model.livequery_models.bitquery__": ["test.livequery_models.test_bitquery__graphql_status_200.11917beb18"], "model.livequery_models.helius_apis__helius_utils": ["test.livequery_models.test_helius_apis__balances_status_200.d668884644", "test.livequery_models.test_helius_apis__parse_transactions_status_200.71053900da", "test.livequery_models.test_helius_apis__token_metadata_status_200.c2bafa3fb0"], "model.livequery_models.helius_utils__helius_utils": ["model.livequery_models.helius_apis__helius_utils", "model.livequery_models.helius_das__helius_utils"], "model.livequery_models.helius_das__helius_utils": ["test.livequery_models.test_helius_das__get_asset_proof_status_200.2ed48f9fe3", "test.livequery_models.test_helius_das__get_asset_status_200.3e65208714", "test.livequery_models.test_helius_das__get_assets_by_authority_status_200.c9ac02b165", "test.livequery_models.test_helius_das__get_assets_by_creator_status_200.e8cb071d3a", "test.livequery_models.test_helius_das__get_assets_by_group_status_200.fe5813195d", "test.livequery_models.test_helius_das__get_assets_by_owner_status_200.6f2f1ef95c", "test.livequery_models.test_helius_das__get_signatures_for_asset_status_200.529a6b605d", "test.livequery_models.test_helius_das__search_assets_status_200.2373c30616"], "model.livequery_models.playgrounds__": ["test.livequery_models.test_playgrounds__query_subgraph_status_200_liquidity_pools.dfcb23f707", "test.livequery_models.test_playgrounds__query_subgraph_status_200_total_pool_count.86c8b9c6ee"], "model.livequery_models.zettablock__": [], "model.livequery_models.quicknode_polygon_tokens__quicknode_utils": ["test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_contract_address_status_200.529daa7446", "test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_symbol_status_200.d60e37734e", "test.livequery_models.test_quicknode_polygon_tokens__get_transactions_by_address_status_200.194093aade", "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_balance_status_200.2bffddb733", "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_transactions_status_200.57669f1a96"], "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils": ["test.livequery_models.test_quicknode_ethereum_nfts__fetch_nft_collection_details_status_200.5a3e5bd53e", "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_by_collection_status_200.ba7f5aeceb", "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_status_200.e34b6fbe64", "test.livequery_models.test_quicknode_ethereum_nfts__get_transfers_by_nft_status_200.2e5143d642", "test.livequery_models.test_quicknode_ethereum_nfts__verify_nfts_owner_status_200.34afbca510"], "model.livequery_models.quicknode_utils__quicknode_utils": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils", "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils", "model.livequery_models.quicknode_polygon_nfts__quicknode_utils", "model.livequery_models.quicknode_polygon_tokens__quicknode_utils", "model.livequery_models.quicknode_solana_nfts__quicknode_utils"], "model.livequery_models.quicknode_solana_nfts__quicknode_utils": ["test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_by_creator_status_200.70f38f0e31", "test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_status_200.94f0e0082e"], "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils": ["test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_contract_address_status_200.3d5c91f8e2", "test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_symbol_status_200.c34c43a92d", "test.livequery_models.test_quicknode_ethereum_tokens__get_transactions_by_address_status_200.29d4ecb431", "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_balance_status_200.9cda095850", "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_transactions_status_200.990e59cd6c"], "model.livequery_models.quicknode_polygon_nfts__quicknode_utils": ["test.livequery_models.test_quicknode_polygon_nfts__fetch_nft_collection_details_status_200.b69737052b", "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_by_collection_status_200.8286191e06", "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_status_200.2d1f2ae9d6", "test.livequery_models.test_quicknode_polygon_nfts__get_transfers_by_nft_status_200.2f6ba1e185", "test.livequery_models.test_quicknode_polygon_nfts__verify_nfts_owner_status_200.e87bb12c13"], "model.livequery_models.footprint_utils__footprint_utils": ["test.livequery_models.test_footprint_utils__get_status_200_v2_protocol_info.4d260facf4"], "model.livequery_models.cmc__": ["test.livequery_models.test_cmc__get_status_200.1e44de8c9e"], "model.livequery_models.apilayer__": ["test.livequery_models.test_apilayer__get_status_200.f739b0d36b"], "model.livequery_models.zapper__": [], "model.livequery_models.alchemy_tokens__alchemy_utils": ["test.livequery_models.test_alchemy_tokens__get_token_allowance_status_200.65ce803e24", "test.livequery_models.test_alchemy_tokens__get_token_balances_status_200.bdaa3fdabb", "test.livequery_models.test_alchemy_tokens__get_token_metadata_status_200.ff08820c76"], "model.livequery_models.alchemy_transfers__alchemy_utils": ["test.livequery_models.test_alchemy_transfers__get_asset_transfers_status_200.f1f3f416e4"], "model.livequery_models.alchemy_nfts__alchemy_utils": ["test.livequery_models.test_alchemy_nfts__compute_rarity_status_200.942425aa31", "test.livequery_models.test_alchemy_nfts__get_contract_metadata_batch_status_200.78a02ffe28", "test.livequery_models.test_alchemy_nfts__get_contract_metadata_status_200.0a9337a17a", "test.livequery_models.test_alchemy_nfts__get_contracts_for_owner_status_200.29e9e60296", "test.livequery_models.test_alchemy_nfts__get_floor_price_status_200.f2125d71e4", "test.livequery_models.test_alchemy_nfts__get_nft_metadata_batch_status_200.44d0ef0140", "test.livequery_models.test_alchemy_nfts__get_nft_metadata_status_200.aad531a83a", "test.livequery_models.test_alchemy_nfts__get_nft_sales_status_200.223f727f9f", "test.livequery_models.test_alchemy_nfts__get_nfts_for_collection_status_200.f7ff9b5ee5", "test.livequery_models.test_alchemy_nfts__get_nfts_status_200.34e3001576", "test.livequery_models.test_alchemy_nfts__get_owners_for_collection_status_200.3cdb9f0962", "test.livequery_models.test_alchemy_nfts__get_owners_for_token_status_200.c534c2579d", "test.livequery_models.test_alchemy_nfts__get_spam_contracts_status_200.b9dfb4e306", "test.livequery_models.test_alchemy_nfts__invalidate_contract_status_200.1ac32b4945", "test.livequery_models.test_alchemy_nfts__is_airdrop_status_200.58ce4f1bdc", "test.livequery_models.test_alchemy_nfts__is_holder_of_collection_status_200.d94f7ae355", "test.livequery_models.test_alchemy_nfts__is_spam_contract_status_200.91af21989f", "test.livequery_models.test_alchemy_nfts__reingest_contract_status_200.3c2c45fd00", "test.livequery_models.test_alchemy_nfts__search_contract_metadata_status_200.1e97937b32", "test.livequery_models.test_alchemy_nfts__summarize_nft_attributes_status_200.99d7f57e35"], "model.livequery_models.alchemy_utils__alchemy_utils": ["model.livequery_models.alchemy_nfts__alchemy_utils", "model.livequery_models.alchemy_tokens__alchemy_utils", "model.livequery_models.alchemy_transfers__alchemy_utils"], "model.livequery_models.blockpour_utils__": [], "model.livequery_models.live": ["model.livequery_models.alchemy_nfts__alchemy_utils", "model.livequery_models.alchemy_tokens__alchemy_utils", "model.livequery_models.alchemy_transfers__alchemy_utils", "model.livequery_models.alchemy_utils__alchemy_utils", "model.livequery_models.allday__", "model.livequery_models.apilayer__", "model.livequery_models.arbitrum_nova__mainnet", "model.livequery_models.arbitrum_one__goerli", "model.livequery_models.arbitrum_one__mainnet", "model.livequery_models.avalanche_c__mainnet", "model.livequery_models.avalanche_c__testnet", "model.livequery_models.base__goerli", "model.livequery_models.base__mainnet", "model.livequery_models.bitquery__", "model.livequery_models.blockpour_utils__", "model.livequery_models.bsc__mainnet", "model.livequery_models.bsc__testnet", "model.livequery_models.celo__mainnet", "model.livequery_models.chainbase_utils__", "model.livequery_models.claude__", "model.livequery_models.claude_utils__claude_utils", "model.livequery_models.cmc__", "model.livequery_models.coingecko__", "model.livequery_models.covalent__", "model.livequery_models.credmark_utils__", "model.livequery_models.dapplooker__", "model.livequery_models.dappradar__", "model.livequery_models.deepnftvalue__", "model.livequery_models.defillama__", "model.livequery_models.espn__", "model.livequery_models.ethereum__goerli", "model.livequery_models.ethereum__mainnet", "model.livequery_models.ethereum__sepolia", "model.livequery_models.fantom__mainnet", "model.livequery_models.footprint_utils__footprint_utils", "model.livequery_models.fred__", "model.livequery_models.github_actions__github_utils", "model.livequery_models.github_utils__github_utils", "model.livequery_models.gnosis__mainnet", "model.livequery_models.harmony__mainnet", "model.livequery_models.harmony__testnet", "model.livequery_models.helius_apis__helius_utils", "model.livequery_models.helius_das__helius_utils", "model.livequery_models.helius_utils__helius_utils", "model.livequery_models.live__allow_list", "model.livequery_models.nftscan__", "model.livequery_models.opensea__", "model.livequery_models.optimism__goerli", "model.livequery_models.optimism__mainnet", "model.livequery_models.playgrounds__", "model.livequery_models.polygon__mainnet", "model.livequery_models.polygon__testnet", "model.livequery_models.polygon_zkevm__mainnet", "model.livequery_models.polygon_zkevm__testnet", "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils", "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils", "model.livequery_models.quicknode_polygon_nfts__quicknode_utils", "model.livequery_models.quicknode_polygon_tokens__quicknode_utils", "model.livequery_models.quicknode_solana_nfts__quicknode_utils", "model.livequery_models.quicknode_utils__quicknode_utils", "model.livequery_models.reservoir__", "model.livequery_models.secrets", "model.livequery_models.slack__", "model.livequery_models.slack_utils__slack_utils", "model.livequery_models.snapshot__", "model.livequery_models.solscan__", "model.livequery_models.stakingrewards__", "model.livequery_models.strangelove__", "model.livequery_models.subquery__", "model.livequery_models.topshot__", "model.livequery_models.transpose__", "model.livequery_models.zapper__", "model.livequery_models.zettablock__", "test.livequery_models.test__live_udf_api_batched_post_data_object.a3001533fa", "test.livequery_models.test__live_udf_api_batched_post_jsonrpc_ethereum_batch.aa4ed0976f", "test.livequery_models.test__live_udf_api_batched_post_jsonrpc_solana.7027aa9022", "test.livequery_models.test__live_udf_api_get_method.7f6dfcd143", "test.livequery_models.test__live_udf_api_get_with_params.b0e789f509", "test.livequery_models.test__live_udf_api_post_batch_jsonrpc.6afc146ed1", "test.livequery_models.test__live_udf_api_post_data_array.e6efede8c7", "test.livequery_models.test__live_udf_api_post_data_object.f511b76342", "test.livequery_models.test__live_udf_api_post_data_string.4024bc8c29", "test.livequery_models.test__live_udf_api_post_jsonrpc_ethereum_batch.3c9cd0b4df", "test.livequery_models.test__live_udf_api_post_jsonrpc_solana.b20463bfb3", "test.livequery_models.test__live_udf_api_post_jsonrpc_solana_batch.9386763d93", "test.livequery_models.test__live_udf_api_v2_full_signature_is_async_false.0b97d59b38", "test.livequery_models.test__live_udf_api_v2_full_signature_is_async_true.604199ea45", "test.livequery_models.test__live_udf_api_v2_get_method_sync.8122eddb3f", "test.livequery_models.test__live_udf_api_v2_get_with_headers_is_async_false.e9e1befac4", "test.livequery_models.test__live_udf_api_v2_get_with_headers_is_async_true.cfc2645199", "test.livequery_models.test__live_udf_api_v2_get_with_params_async.b056833455", "test.livequery_models.test__live_udf_api_v2_get_with_params_sync.147b3736ae", "test.livequery_models.test__live_udf_api_v2_post_batch_jsonrpc_sync.b36bc00504", "test.livequery_models.test__live_udf_api_v2_post_data_array_sync.b8411aa263", "test.livequery_models.test__live_udf_api_v2_post_data_object_sync.071fa239ad", "test.livequery_models.test__live_udf_api_v2_post_data_string_sync.fe8f3757c8", "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_ethereum_batch_async.95f5f5b561", "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_ethereum_batch_sync.71d7b6dbb6", "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_is_async_false.e9d84deb2e", "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_is_async_true.81e24f5936", "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_async.a018ed6e96", "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_batch_async.7f045a7b4a", "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_batch_sync.cb3ec63e3a", "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_sync.59f97e4649"], "model.livequery_models._utils": ["model.livequery_models.live", "model.livequery_models.secrets", "model.livequery_models.utils", "test.livequery_models.test___utils_udf_introspect.79bd27a18b"], "model.livequery_models.secrets": [], "model.livequery_models._live": ["model.livequery_models.live"], "model.livequery_models.utils": ["model.livequery_models.arbitrum_nova__mainnet", "model.livequery_models.arbitrum_one__goerli", "model.livequery_models.arbitrum_one__mainnet", "model.livequery_models.avalanche_c__mainnet", "model.livequery_models.avalanche_c__testnet", "model.livequery_models.base__goerli", "model.livequery_models.base__mainnet", "model.livequery_models.bsc__mainnet", "model.livequery_models.bsc__testnet", "model.livequery_models.celo__mainnet", "model.livequery_models.ethereum__goerli", "model.livequery_models.ethereum__mainnet", "model.livequery_models.ethereum__sepolia", "model.livequery_models.fantom__mainnet", "model.livequery_models.gnosis__mainnet", "model.livequery_models.harmony__mainnet", "model.livequery_models.harmony__testnet", "model.livequery_models.live", "model.livequery_models.optimism__goerli", "model.livequery_models.optimism__mainnet", "model.livequery_models.polygon__mainnet", "model.livequery_models.polygon__testnet", "model.livequery_models.polygon_zkevm__mainnet", "model.livequery_models.polygon_zkevm__testnet", "test.livequery_models.test__utils_udf_binary_to_int.907b20f381", "test.livequery_models.test__utils_udf_binary_to_int_large_number.926bff44e9", "test.livequery_models.test__utils_udf_evm_decode_log.b6fedb07e9", "test.livequery_models.test__utils_udf_int_to_binary.46856460db", "test.livequery_models.test__utils_udf_int_to_binary_large_number.feba996e3b", "test.livequery_models.test__utils_udf_json_rpc_call.0b87c6050e", "test.livequery_models.test__utils_udf_urlencode_array_1.bae96ece17", "test.livequery_models.test__utils_udf_urlencode_array_2.ff2898d4a2", "test.livequery_models.test__utils_udf_urlencode_array_array.3d05dcb6a9", "test.livequery_models.test__utils_udf_urlencode_array_false_1.ffe0d93235", "test.livequery_models.test__utils_udf_urlencode_array_false_2.f6e4d9a06a", "test.livequery_models.test__utils_udf_urlencode_array_false_array.979bfafd11", "test.livequery_models.test__utils_udf_urlencode_array_false_space.c46a422a10", "test.livequery_models.test__utils_udf_urlencode_array_false_special.ad3b4ce496", "test.livequery_models.test__utils_udf_urlencode_array_space.67b6f51498", "test.livequery_models.test__utils_udf_urlencode_array_special.746423269a", "test.livequery_models.test__utils_udf_urlencode_array_true_1.f1dc90fd5d", "test.livequery_models.test__utils_udf_urlencode_array_true_2.4c09ca3de2", "test.livequery_models.test__utils_udf_urlencode_array_true_array.559475a80a", "test.livequery_models.test__utils_udf_urlencode_array_true_space.c150fa3544", "test.livequery_models.test__utils_udf_urlencode_array_true_special.14abbd82f3", "test.livequery_models.test__utils_udf_urlencode_dict_1.1d75f92e0e", "test.livequery_models.test__utils_udf_urlencode_dict_2.60da312d8c", "test.livequery_models.test__utils_udf_urlencode_dict_array.25f6af5cf8", "test.livequery_models.test__utils_udf_urlencode_dict_false_1.e2e07ad77a", "test.livequery_models.test__utils_udf_urlencode_dict_false_2.58739709ab", "test.livequery_models.test__utils_udf_urlencode_dict_false_array.9524cea2e8", "test.livequery_models.test__utils_udf_urlencode_dict_false_space.1167d3f089", "test.livequery_models.test__utils_udf_urlencode_dict_false_special.0cd3cb5826", "test.livequery_models.test__utils_udf_urlencode_dict_space.d5e1917fd6", "test.livequery_models.test__utils_udf_urlencode_dict_special.6f25d30fd9", "test.livequery_models.test__utils_udf_urlencode_dict_true_1.3bf42c4e1b", "test.livequery_models.test__utils_udf_urlencode_dict_true_2.764afd6db8", "test.livequery_models.test__utils_udf_urlencode_dict_true_array.614d53ca8a", "test.livequery_models.test__utils_udf_urlencode_dict_true_space.11f0932fc3", "test.livequery_models.test__utils_udf_urlencode_dict_true_special.4eef6cb355"], "analysis.livequery_models.test_create_or_drop_function_from_config": [], "analysis.livequery_models.test_functions": [], "analysis.livequery_models.generate_test_udf_skeleton": [], "analysis.livequery_models.test_crud_udfs_in_schema": [], "analysis.livequery_models.test_functions_py": [], "seed.livequery_models.live__verified_api_endpoints": [], "operation.livequery_models.livequery_models-on-run-start-0": [], "operation.livequery_models.livequery_models-on-run-end-0": [], "model.fsc_utils._datashare___create_udfs": [], "model.fsc_utils._datashare___create_gold": [], "model.fsc_evm.silver__user_verified_abis": ["model.fsc_evm.silver__verified_abis", "model.fsc_evm.test_silver__user_verified_abis_full", "model.fsc_evm.test_silver__user_verified_abis_recent"], "model.fsc_evm.silver__verified_abis": ["model.fsc_evm.silver__abis", "model.fsc_evm.silver__bytecode_abis", "model.fsc_evm.test_silver__verified_abis_full", "model.fsc_evm.test_silver__verified_abis_recent"], "model.fsc_evm.silver__complete_event_abis": ["model.fsc_evm.test_silver__complete_event_abis_full", "model.fsc_evm.test_silver__complete_event_abis_recent"], "model.fsc_evm.silver__flat_event_abis": ["model.fsc_evm.silver__complete_event_abis"], "model.fsc_evm.silver__bytecode_abis": ["model.fsc_evm.silver__abis", "model.fsc_evm.test_silver__bytecode_abis_full", "model.fsc_evm.test_silver__bytecode_abis_recent"], "model.fsc_evm.silver__abis": ["model.fsc_evm.core__dim_contract_abis", "model.fsc_evm.silver__flat_event_abis", "model.fsc_evm.test_silver__abis_full", "model.fsc_evm.test_silver__abis_recent"], "model.fsc_evm.test_silver__verified_abis_recent": ["test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__verified_abis_recent_CONTRACT_ADDRESS.788bba3ee1"], "model.fsc_evm.test_silver__verified_abis_full": ["test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__verified_abis_full_CONTRACT_ADDRESS.15e49a38cc"], "model.fsc_evm.test_silver__user_verified_abis_recent": ["test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__user_verified_abis_recent_ID.053fe12111"], "model.fsc_evm.test_silver__user_verified_abis_full": ["test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__user_verified_abis_full_ID.8832906bf1"], "model.fsc_evm.test_silver__bytecode_abis_recent": ["test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__bytecode_abis_recent_CONTRACT_ADDRESS__ABI_HASH.eab02f6812"], "model.fsc_evm.test_silver__bytecode_abis_full": ["test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__bytecode_abis_full_CONTRACT_ADDRESS__ABI_HASH.111a1fed7f"], "model.fsc_evm.test_silver__abis_recent": ["test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__abis_recent_CONTRACT_ADDRESS.136d8d9ae5"], "model.fsc_evm.test_silver__abis_full": ["test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__abis_full_CONTRACT_ADDRESS.6bc2b660ff"], "model.fsc_evm.test_silver__complete_event_abis_full": ["test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__complete_event_abis_full_PARENT_CONTRACT_ADDRESS__EVENT_SIGNATURE__START_BLOCK.81837f99b9"], "model.fsc_evm.test_silver__complete_event_abis_recent": ["test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__complete_event_abis_recent_PARENT_CONTRACT_ADDRESS__EVENT_SIGNATURE__START_BLOCK.f72f3b769f"], "model.fsc_evm.streamline__contract_abis_realtime": [], "model.fsc_evm.streamline__complete_contract_abis": ["model.fsc_evm.streamline__contract_abis_realtime"], "model.fsc_evm._retry_abis": ["model.fsc_evm.bronze_api__contract_abis"], "model.fsc_evm.core__dim_contract_abis": ["model.fsc_evm.test_gold__dim_contract_abis_full", "model.fsc_evm.test_gold__dim_contract_abis_recent"], "model.fsc_evm.test_gold__dim_contract_abis_full": ["test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__dim_contract_abis_full_CONTRACT_ADDRESS.fca68d5e2f"], "model.fsc_evm.test_gold__dim_contract_abis_recent": ["test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__dim_contract_abis_recent_CONTRACT_ADDRESS.4dc01d4661"], "model.fsc_evm.bronze__contract_abis": ["model.fsc_evm.silver__verified_abis", "model.fsc_evm.streamline__complete_contract_abis"], "model.fsc_evm.bronze__contract_abis_fr": ["model.fsc_evm.silver__verified_abis", "model.fsc_evm.streamline__complete_contract_abis"], "model.fsc_evm.bronze__contract_abis_fr_v2": ["model.fsc_evm.bronze__contract_abis_fr"], "model.fsc_evm.bronze_api__contract_abis": ["model.fsc_evm.bronze__contract_abis_fr"], "model.fsc_evm.silver__decoded_logs": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.test_silver__decoded_logs_full", "model.fsc_evm.test_silver__decoded_logs_recent"], "model.fsc_evm.test_silver__decoded_logs_full": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_BLOCK_NUMBER__NUMBER__FLOAT.76675adfdf", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_EVENT_INDEX__NUMBER__FLOAT.f03fc2121b", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_EVENT_NAME__STRING__VARCHAR.d6989542d6", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.6468c94ec8", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.a1e69a24d9", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.11ad7f4a46", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_full_TX_HASH__0_xX_0_9a_fA_F_.abdf44d14a", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_full_INSERTED_TIMESTAMP__hour__2.6d11a12f63", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP__hour__2.23d29858c5", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__decoded_logs_full_DECODED_LOGS_ID.537938d81c", "test.fsc_evm.not_null_test_silver__decoded_logs_full_BLOCK_NUMBER.56f1e895c0", "test.fsc_evm.not_null_test_silver__decoded_logs_full_CONTRACT_ADDRESS.38ce06a72b", "test.fsc_evm.not_null_test_silver__decoded_logs_full_EVENT_INDEX.d402882c82", "test.fsc_evm.not_null_test_silver__decoded_logs_full_INSERTED_TIMESTAMP.947b1ded8c", "test.fsc_evm.not_null_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP.80dc3c0d89", "test.fsc_evm.not_null_test_silver__decoded_logs_full_TX_HASH.9bc0884cbc"], "model.fsc_evm.test_silver__decoded_logs_recent": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_BLOCK_NUMBER__NUMBER__FLOAT.7feb70f478", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_EVENT_INDEX__NUMBER__FLOAT.722a3594c3", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_EVENT_NAME__STRING__VARCHAR.4459c81b7f", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b467671a96", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.76e468aa1e", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.585a24330b", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_recent_TX_HASH__0_xX_0_9a_fA_F_.994fffe1a9", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP__hour__2.24ba46645f", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP__hour__2.4e95ef6f32", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__decoded_logs_recent_DECODED_LOGS_ID.2bf95e427e", "test.fsc_evm.not_null_test_silver__decoded_logs_recent_BLOCK_NUMBER.c8ab501b30", "test.fsc_evm.not_null_test_silver__decoded_logs_recent_CONTRACT_ADDRESS.4a09b257d3", "test.fsc_evm.not_null_test_silver__decoded_logs_recent_EVENT_INDEX.a1b3a9a86b", "test.fsc_evm.not_null_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP.33bd9eb14a", "test.fsc_evm.not_null_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP.2bbb0bb170", "test.fsc_evm.not_null_test_silver__decoded_logs_recent_TX_HASH.6dfd6d6fcb"], "model.fsc_evm.streamline__decoded_logs_realtime": [], "model.fsc_evm.streamline__decoded_logs_complete": ["model.fsc_evm.streamline__decoded_logs_realtime"], "model.fsc_evm.core__ez_decoded_event_logs": ["model.fsc_evm.scores__actions", "model.fsc_evm.silver_bridge__across_fundsdeposited", "model.fsc_evm.silver_bridge__allbridge_sent", "model.fsc_evm.silver_bridge__axelar_contractcallwithtoken", "model.fsc_evm.silver_bridge__axie_infinity_depositrequested", "model.fsc_evm.silver_bridge__ccip_on_ramp_address", "model.fsc_evm.silver_bridge__cctp_v2_depositforburn", "model.fsc_evm.silver_bridge__celer_cbridge_send", "model.fsc_evm.silver_bridge__dln_debridge_createdorder", "model.fsc_evm.silver_bridge__eywa_requestsent", "model.fsc_evm.silver_bridge__hop_transfersent", "model.fsc_evm.silver_bridge__hop_transfersenttol2", "model.fsc_evm.silver_bridge__layerzero_v2_packet", "model.fsc_evm.silver_bridge__multichain_v7_loganyswapout", "model.fsc_evm.silver_bridge__stargate_swap", "model.fsc_evm.silver_bridge__stargate_v2_busdriven", "model.fsc_evm.silver_bridge__symbiosis_synthesizerequest", "model.fsc_evm.silver_bridge__synapse_token_bridge", "model.fsc_evm.silver_bridge__synapse_tokenbridgeandswap", "model.fsc_evm.silver_dex__balancer_pool_actions", "model.fsc_evm.silver_dex__balancer_pools", "model.fsc_evm.silver_dex__curve_pool_actions", "model.fsc_evm.silver_dex__gmx_v2_swaps", "model.fsc_evm.silver_dex__trader_joe_v2_pool_actions", "model.fsc_evm.test_gold__ez_decoded_event_logs_full", "model.fsc_evm.test_gold__ez_decoded_event_logs_recent", "model.polygon_models.silver__element_sales", "model.polygon_models.silver__mooar_sales", "model.polygon_models.silver__seaport_1_1_sales", "model.polygon_models.silver__seaport_1_4_sales", "model.polygon_models.silver__seaport_1_5_sales", "model.polygon_models.silver__seaport_1_6_sales", "model.polygon_models.silver__tofunft_sales"], "model.fsc_evm.test_gold__ez_decoded_event_logs_recent": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3f16df36a6", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.8c6610e7ff", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d286ab4bf8", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP__hour__2.94ca90acca", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP__hour__2.1af0e5a39c", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP__hour__2.67b262c997", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID.17989a1b4f", "test.fsc_evm.decoded_logs_exist_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_.e2d790a075", "test.fsc_evm.find_missing_decoded_logs_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_.995b3759d0", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_NUMBER.884d6d2b35", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP.de99ef8ef5", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_CONTRACT_ADDRESS.447bc5cf3b", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_DATA.4dbf00dd37", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_DECODED_LOG.13e8c88a61", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_INDEX.cd56f89c46", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_NAME.b876563dc0", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_REMOVED.83b01d4a77", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID.45c5e0316f", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_FULL_DECODED_LOG.8ee9749eea", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP.1571060655", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP.5dc86f315d", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_ORIGIN_FROM_ADDRESS.66479f9f70", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE.861f210c46", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TOPICS.599ba528df", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TOPIC_0.ddb723fd73", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_HASH.7d31037652", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_POSITION.84f236ac88", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_SUCCEEDED.453d880cda"], "model.fsc_evm.test_gold__ez_decoded_event_logs_full": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.0db12ac511", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.5c1c155df0", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3b4c0128b9", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP__hour__2.7139c09429", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP__hour__2.ffec548ee5", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP__hour__2.88cff525bb", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID.c654ef3a67", "test.fsc_evm.decoded_logs_exist_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_.2508ca290d", "test.fsc_evm.find_missing_decoded_logs_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_.8f9f593cec", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_BLOCK_NUMBER.306b0da6a0", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP.9672b7c6fa", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_CONTRACT_ADDRESS.8ee97e9829", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_DATA.4c46b98652", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_DECODED_LOG.2f64537edd", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_INDEX.db8d2710d0", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_NAME.a9a7c84d87", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_REMOVED.c806d11add", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID.6d0c115405", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_FULL_DECODED_LOG.7265873d57", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP.51f3049a5d", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP.73cd55cf8f", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_ORIGIN_FROM_ADDRESS.3db9f8fabd", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_ORIGIN_FUNCTION_SIGNATURE.d94e4328a7", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TOPICS.03f5444318", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TOPIC_0.852a0e07f6", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_HASH.3a5ade2127", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_POSITION.1f5c16c4dd", "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_SUCCEEDED.ac8e3e83cb"], "model.fsc_evm.bronze__decoded_logs": ["model.fsc_evm.silver__decoded_logs", "model.fsc_evm.streamline__decoded_logs_complete"], "model.fsc_evm.bronze__decoded_logs_fr": ["model.fsc_evm.silver__decoded_logs", "model.fsc_evm.streamline__decoded_logs_complete"], "model.fsc_evm.scores__known_event_names": ["model.fsc_evm.scores__actions"], "model.fsc_evm.scores__scoring_activity_categories": ["model.fsc_evm.scores__actions"], "model.fsc_evm.scores__target_days": ["model.fsc_evm.scores__actions", "model.fsc_evm.scores__actions_agg"], "model.fsc_evm.scores__actions_daily": ["model.fsc_evm.scores__actions_agg"], "model.fsc_evm.scores__dates": ["model.fsc_evm.scores__target_days"], "model.fsc_evm.scores__actions_agg": [], "model.fsc_evm.scores__actions": ["model.fsc_evm.scores__actions_daily"], "model.fsc_evm.scores__event_sigs": ["model.fsc_evm.scores__actions"], "model.fsc_evm.scores__wrapped_assets": ["model.fsc_evm.scores__actions"], "model.fsc_evm.scores__known_event_sigs": ["model.fsc_evm.scores__actions"], "model.fsc_evm.admin__number_sequence": ["model.fsc_evm.observability__blocks", "model.fsc_evm.streamline__blocks", "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__number_sequence__ID.e4808fe515", "test.fsc_evm.not_null_admin__number_sequence__ID.1f1a84eef0"], "model.fsc_evm.admin__fact_rpc_details": ["model.fsc_evm.core__fact_blocks", "model.fsc_evm.core__fact_transactions"], "model.fsc_evm.admin__dim_variables": ["model.fsc_evm.admin__ez_variables", "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__dim_variables_DIM_VARIABLES_ID.9de48d7fec", "test.fsc_evm.not_null_admin__dim_variables_DEFAULT_TYPE.ec8ae8bee2", "test.fsc_evm.not_null_admin__dim_variables_DEFAULT_VALUE.5be079ad3d", "test.fsc_evm.not_null_admin__dim_variables_DIM_VARIABLES_ID.f1639e77e6", "test.fsc_evm.not_null_admin__dim_variables_KEY.ad438e63ea"], "model.fsc_evm.admin__fact_variables": ["model.fsc_evm.admin__ez_variables", "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__fact_variables_FACT_VARIABLES_ID.28a6685d8c", "test.fsc_evm.not_null_admin__fact_variables_FACT_VARIABLES_ID.c6bac6e9b3", "test.fsc_evm.not_null_admin__fact_variables_KEY.d5252aea36", "test.fsc_evm.not_null_admin__fact_variables_PROJECT.b2ca5d3a9e", "test.fsc_evm.not_null_admin__fact_variables_VALUE.80c7190528"], "model.fsc_evm.admin__ez_variables": ["test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__ez_variables_EZ_VARIABLES_ID.3ed824ce43", "test.fsc_evm.not_null_admin__ez_variables_DEFAULT_TYPE.341521dabe", "test.fsc_evm.not_null_admin__ez_variables_DEFAULT_VALUE.262d6c41bd", "test.fsc_evm.not_null_admin__ez_variables_EZ_VARIABLES_ID.1d9b2c9591", "test.fsc_evm.not_null_admin__ez_variables_KEY.4fc63e44ee", "test.fsc_evm.not_null_admin__ez_variables_PROJECT.59fd01d4c5", "test.fsc_evm.not_null_admin__ez_variables_VALUE.72a144dfd6"], "model.fsc_evm.silver__labels": ["model.fsc_evm.core__dim_labels", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_ADDRESS_NAME__STRING__VARCHAR.b440cff40f", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_LABEL_SUBTYPE__STRING__VARCHAR.c6eb320168", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_PROJECT_NAME__STRING__VARCHAR.81fdcfbdf9", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__labels_ADDRESS__0_xX_0_9a_fA_F_.4d2099651b", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__labels_BLOCKCHAIN__CREATOR__ADDRESS.8355a7dbdd", "test.fsc_evm.not_null_silver__labels_ADDRESS.88df57a9e0", "test.fsc_evm.not_null_silver__labels_BLOCKCHAIN.4d07b6112c", "test.fsc_evm.not_null_silver__labels_CREATOR.5f7302f7be", "test.fsc_evm.not_null_silver__labels_LABEL_SUBTYPE.01346344a7", "test.fsc_evm.not_null_silver__labels_LABEL_TYPE.3b980ae2db", "test.fsc_evm.not_null_silver__labels_PROJECT_NAME.c87a158893"], "model.fsc_evm.core__dim_labels": ["model.fsc_evm.scores__actions", "model.fsc_evm.scores__actions_agg", "model.fsc_evm.silver_stablecoins__supply_contracts_list"], "model.fsc_evm.bronze__labels": ["model.fsc_evm.silver__labels"], "model.fsc_evm._max_block_by_hour": ["model.fsc_evm.streamline__confirm_blocks_history", "model.fsc_evm.streamline__confirm_blocks_realtime"], "model.fsc_evm._24_hour_lookback": [], "model.fsc_evm._block_lookback": ["model.fsc_evm.streamline__blocks_transactions_history", "model.fsc_evm.streamline__blocks_transactions_realtime", "model.fsc_evm.streamline__confirm_blocks_history", "model.fsc_evm.streamline__confirm_blocks_realtime", "model.fsc_evm.streamline__receipts_by_hash_history", "model.fsc_evm.streamline__receipts_by_hash_realtime", "model.fsc_evm.streamline__receipts_history", "model.fsc_evm.streamline__receipts_realtime", "model.fsc_evm.streamline__traces_history", "model.fsc_evm.streamline__traces_realtime", "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent", "model.fsc_evm.test_gold__ez_balances_native_daily_recent", "model.fsc_evm.test_gold__ez_decoded_event_logs_recent", "model.fsc_evm.test_gold__ez_native_transfers_recent", "model.fsc_evm.test_gold__ez_token_transfers_recent", "model.fsc_evm.test_gold__fact_blocks_recent", "model.fsc_evm.test_gold__fact_event_logs_recent", "model.fsc_evm.test_gold__fact_traces_recent", "model.fsc_evm.test_gold__fact_transactions_recent", "model.fsc_evm.test_nft__ez_nft_transfers_recent", "model.fsc_evm.test_silver__blocks_recent", "model.fsc_evm.test_silver__confirm_blocks_recent", "model.fsc_evm.test_silver__decoded_logs_recent", "model.fsc_evm.test_silver__receipts_recent", "model.fsc_evm.test_silver__traces_recent", "model.fsc_evm.test_silver__transactions_recent"], "model.fsc_evm._max_block_by_date": ["model.fsc_evm.streamline__balances_erc20_daily_history_requests", "model.fsc_evm.streamline__balances_erc20_daily_realtime_requests", "model.fsc_evm.streamline__balances_native_daily_history_requests", "model.fsc_evm.streamline__balances_native_daily_realtime_requests", "model.fsc_evm.streamline__stablecoin_reads_history", "model.fsc_evm.streamline__stablecoin_reads_realtime"], "model.fsc_evm._block_ranges": [], "model.fsc_evm.github_actions__task_current": [], "model.fsc_evm.github_actions__relevant_workflows": ["model.fsc_evm.github_actions__workflow_schedule"], "model.fsc_evm.github_actions__task_history": [], "model.fsc_evm.github_actions__workflow_status": [], "model.fsc_evm.github_actions__workflow_schedule": [], "model.fsc_evm.silver__traces": ["model.fsc_evm.core__fact_traces", "model.fsc_evm.test_silver__traces_full", "model.fsc_evm.test_silver__traces_recent"], "model.fsc_evm.silver__confirm_blocks": ["model.fsc_evm.observability__transactions", "model.fsc_evm.test_silver__confirm_blocks_full", "model.fsc_evm.test_silver__confirm_blocks_recent"], "model.fsc_evm.silver__receipts": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_transactions", "model.fsc_evm.observability__logs", "model.fsc_evm.observability__receipts", "model.fsc_evm.test_silver__receipts_full", "model.fsc_evm.test_silver__receipts_recent"], "model.fsc_evm.silver__proxies": ["model.fsc_evm._retry_abis", "model.fsc_evm.silver__complete_event_abis", "model.fsc_evm.silver__user_verified_abis", "model.fsc_evm.test_silver__proxies_full", "model.fsc_evm.test_silver__proxies_recent"], "model.fsc_evm.silver__relevant_contracts": ["model.fsc_evm._retry_abis", "model.fsc_evm.bronze_api__contract_abis", "model.fsc_evm.bronze_api__token_reads", "model.fsc_evm.core__dim_contracts", "model.fsc_evm.streamline__contract_abis_realtime", "model.fsc_evm.streamline__token_reads_realtime"], "model.fsc_evm.silver__created_contracts": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.silver__abis", "model.fsc_evm.silver__bytecode_abis", "model.fsc_evm.silver__proxies", "model.fsc_evm.test_silver__created_contracts_full", "model.fsc_evm.test_silver__created_contracts_recent"], "model.fsc_evm.silver__transactions": ["model.fsc_evm.core__fact_blocks", "model.fsc_evm.core__fact_transactions", "model.fsc_evm.test_silver__transactions_full", "model.fsc_evm.test_silver__transactions_recent"], "model.fsc_evm.silver__contracts": ["model.fsc_evm.core__dim_contracts", "model.fsc_evm.silver_lending__aave_ohlc_interest_rates", "model.fsc_evm.silver_lending__comp_v2_asset_details", "model.fsc_evm.silver_lending__complete_lending_flashloans", "model.fsc_evm.silver_lending__euler_tokens", "model.fsc_evm.silver_lending__fraxlend_asset_details", "model.fsc_evm.silver_lending__silo_pools", "model.fsc_evm.test_silver__contracts_full", "model.fsc_evm.test_silver__contracts_recent", "model.polygon_models.silver__complete_nft_sales"], "model.fsc_evm.silver__blocks": ["model.fsc_evm.core__fact_blocks", "model.fsc_evm.test_silver__blocks_full", "model.fsc_evm.test_silver__blocks_recent"], "model.fsc_evm.test_silver__traces_recent": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.78e1fb01e0", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.640b8be095", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.bc16a42d4e", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent_INSERTED_TIMESTAMP__hour__2.a4ba5cf674", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent_MODIFIED_TIMESTAMP__hour__2.f7eb4af9c0", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent__INSERTED_TIMESTAMP__hour__2.bd68103a61", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__traces_recent_TRACES_ID.f53f7f25ae", "test.fsc_evm.not_null_test_silver__traces_recent_BLOCK_NUMBER.77a4699f36", "test.fsc_evm.not_null_test_silver__traces_recent_INSERTED_TIMESTAMP.4f0efcf34b", "test.fsc_evm.not_null_test_silver__traces_recent_MODIFIED_TIMESTAMP.c50eaa6905", "test.fsc_evm.not_null_test_silver__traces_recent_TRACE_ADDRESS.7c6de48691", "test.fsc_evm.not_null_test_silver__traces_recent_TRACE_JSON.904b3c8953", "test.fsc_evm.not_null_test_silver__traces_recent_TX_POSITION.92be43f8d5", "test.fsc_evm.not_null_test_silver__traces_recent__INSERTED_TIMESTAMP.29dedb5f0f"], "model.fsc_evm.test_silver__traces_full": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.254ed0fd41", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.691866e8c0", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.10c3de9ee1", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full_INSERTED_TIMESTAMP__hour__2.316bf2d6b0", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full_MODIFIED_TIMESTAMP__hour__2.d8baad76f3", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full__INSERTED_TIMESTAMP__hour__2.8beb22e4b2", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__traces_full_TRACES_ID.9083101264", "test.fsc_evm.not_null_test_silver__traces_full_BLOCK_NUMBER.ab8fe90ce8", "test.fsc_evm.not_null_test_silver__traces_full_INSERTED_TIMESTAMP.ab90de5f2b", "test.fsc_evm.not_null_test_silver__traces_full_MODIFIED_TIMESTAMP.73532cff85", "test.fsc_evm.not_null_test_silver__traces_full_TRACE_ADDRESS.91648874f9", "test.fsc_evm.not_null_test_silver__traces_full_TRACE_JSON.2c7accaa84", "test.fsc_evm.not_null_test_silver__traces_full_TX_POSITION.663fe545e9", "test.fsc_evm.not_null_test_silver__traces_full__INSERTED_TIMESTAMP.c33692687a"], "model.fsc_evm.test_silver__confirm_blocks_recent": ["model.fsc_evm._unconfirmed_blocks", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.6f365bb04d", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP__hour__8.7a2d73b21b", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID.078268d9c9", "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_BLOCK_NUMBER.4357645cb7", "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID.ec8360ef95", "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP.673cf1e88f", "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_TX_HASH.7f8b64f808"], "model.fsc_evm.test_silver__confirm_blocks_full": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b66a5f5fde", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP__hour__8.64521c931b", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID.7a1d987054", "test.fsc_evm.not_null_test_silver__confirm_blocks_full_BLOCK_NUMBER.acad1c43e7", "test.fsc_evm.not_null_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID.6dbbf2334b", "test.fsc_evm.not_null_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP.6a2a4b0667", "test.fsc_evm.not_null_test_silver__confirm_blocks_full_TX_HASH.670ec66eec"], "model.fsc_evm.test_silver__blocks_full": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4d5ee11ce4", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.22abd38316", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.f23f93c193", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full_INSERTED_TIMESTAMP__hour__2.cf055b5ea3", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full_MODIFIED_TIMESTAMP__hour__2.ba9359c374", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full__INSERTED_TIMESTAMP__hour__2.00b41ab86e", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__blocks_full_BLOCK_NUMBER.be5f891d6b", "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__blocks_full_BLOCK_NUMBER.67e6cd85ce", "test.fsc_evm.not_null_test_silver__blocks_full_BLOCK_JSON.0bc7eee26e", "test.fsc_evm.not_null_test_silver__blocks_full_BLOCK_NUMBER.3b7e4315a5", "test.fsc_evm.not_null_test_silver__blocks_full_INSERTED_TIMESTAMP.37557f958c", "test.fsc_evm.not_null_test_silver__blocks_full_MODIFIED_TIMESTAMP.463b450a84", "test.fsc_evm.not_null_test_silver__blocks_full__INSERTED_TIMESTAMP.1d36f7af40"], "model.fsc_evm.test_silver__blocks_recent": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.8f37f2afc2", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.53bf4df35e", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e3a06da0df", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent_INSERTED_TIMESTAMP__hour__2.5a605c6511", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent_MODIFIED_TIMESTAMP__hour__2.f4efbc4d10", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent__INSERTED_TIMESTAMP__hour__2.fb61245227", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__blocks_recent_BLOCK_NUMBER.0239d065a4", "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__blocks_recent_BLOCK_NUMBER.a11e2bbd58", "test.fsc_evm.not_null_test_silver__blocks_recent_BLOCK_JSON.aabd0a98d5", "test.fsc_evm.not_null_test_silver__blocks_recent_BLOCK_NUMBER.cec2c84102", "test.fsc_evm.not_null_test_silver__blocks_recent_INSERTED_TIMESTAMP.0004e5d07b", "test.fsc_evm.not_null_test_silver__blocks_recent_MODIFIED_TIMESTAMP.d5c1fe9610", "test.fsc_evm.not_null_test_silver__blocks_recent__INSERTED_TIMESTAMP.071a17cc08"], "model.fsc_evm.test_silver__contracts_recent": ["test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__contracts_recent_CONTRACT_ADDRESS.86e2c4e62c", "test.fsc_evm.not_null_test_silver__contracts_recent_CONTRACT_ADDRESS.037aff5161"], "model.fsc_evm.test_silver__contracts_full": ["test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__contracts_full_CONTRACT_ADDRESS.0763359ca5", "test.fsc_evm.not_null_test_silver__contracts_full_CONTRACT_ADDRESS.1e6edb77c6"], "model.fsc_evm.test_silver__created_contracts_full": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_full_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.3cf23748a5", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_full__INSERTED_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.8c87acbb48", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_full_BLOCK_TIMESTAMP__day__1.47c627b66b", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_full__INSERTED_TIMESTAMP__day__1.f18b9fe607", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__created_contracts_full_created_contract_address.e21b0009b3", "test.fsc_evm.not_null_test_silver__created_contracts_full_BLOCK_TIMESTAMP.656e8a5526", "test.fsc_evm.not_null_test_silver__created_contracts_full__INSERTED_TIMESTAMP.c6b7aec473"], "model.fsc_evm.test_silver__created_contracts_recent": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_recent_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.3661419d77", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_recent__INSERTED_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.f0ec5f4645", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_recent_BLOCK_TIMESTAMP__day__1.0c68c9f927", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_recent__INSERTED_TIMESTAMP__day__1.ca46deddf6", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__created_contracts_recent_created_contract_address.5c757b7d79", "test.fsc_evm.not_null_test_silver__created_contracts_recent_BLOCK_TIMESTAMP.734876c6a9", "test.fsc_evm.not_null_test_silver__created_contracts_recent__INSERTED_TIMESTAMP.f3206a6f1a"], "model.fsc_evm.test_silver__receipts_full": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.f626a67c39", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c6d76da598", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.63454383b5", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full_INSERTED_TIMESTAMP__hour__2.efed27386e", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full_MODIFIED_TIMESTAMP__hour__2.89a13f7252", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full__INSERTED_TIMESTAMP__hour__2.4c5fd60675", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__receipts_full_RECEIPTS_ID.443fd400ca", "test.fsc_evm.not_null_test_silver__receipts_full_BLOCK_NUMBER.b8318adb18", "test.fsc_evm.not_null_test_silver__receipts_full_INSERTED_TIMESTAMP.eba05ceee3", "test.fsc_evm.not_null_test_silver__receipts_full_MODIFIED_TIMESTAMP.23b69b4875", "test.fsc_evm.not_null_test_silver__receipts_full_RECEIPTS_JSON.60e73b67be", "test.fsc_evm.not_null_test_silver__receipts_full__INSERTED_TIMESTAMP.daab58d3d3"], "model.fsc_evm.test_silver__receipts_recent": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.baec638420", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.1cbb56fb12", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7652c2220b", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent_INSERTED_TIMESTAMP__hour__2.c1b0f8737b", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent_MODIFIED_TIMESTAMP__hour__2.30705ba06a", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent__INSERTED_TIMESTAMP__hour__2.33483a04fc", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__receipts_recent_RECEIPTS_ID.72c2ba1bb5", "test.fsc_evm.not_null_test_silver__receipts_recent_BLOCK_NUMBER.a025315ae3", "test.fsc_evm.not_null_test_silver__receipts_recent_INSERTED_TIMESTAMP.30ae8bca8d", "test.fsc_evm.not_null_test_silver__receipts_recent_MODIFIED_TIMESTAMP.4d91715550", "test.fsc_evm.not_null_test_silver__receipts_recent_RECEIPTS_JSON.edca36b9ab", "test.fsc_evm.not_null_test_silver__receipts_recent__INSERTED_TIMESTAMP.3caff14157"], "model.fsc_evm.test_silver__transactions_full": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.46c3120d2d", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d1737769ad", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.dce86b4eb0", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full_INSERTED_TIMESTAMP__hour__2.e9cf80dd1c", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full_MODIFIED_TIMESTAMP__hour__2.fd041d9a4a", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full__INSERTED_TIMESTAMP__hour__2.461c571e72", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__transactions_full_TRANSACTIONS_ID.b3643be5d1", "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__transactions_full_TX_POSITION__BLOCK_NUMBER.a64778c1c0", "test.fsc_evm.not_null_test_silver__transactions_full_BLOCK_NUMBER.10f008705d", "test.fsc_evm.not_null_test_silver__transactions_full_INSERTED_TIMESTAMP.ca671e00f0", "test.fsc_evm.not_null_test_silver__transactions_full_MODIFIED_TIMESTAMP.8ce00858b9", "test.fsc_evm.not_null_test_silver__transactions_full_TRANSACTION_JSON.5c28fd61a2", "test.fsc_evm.not_null_test_silver__transactions_full_TX_POSITION.0f91433ce2", "test.fsc_evm.not_null_test_silver__transactions_full__INSERTED_TIMESTAMP.e767bd3e15"], "model.fsc_evm.test_silver__transactions_recent": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.9fe6abc15c", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.9d61391097", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.dadf3a2ece", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent_INSERTED_TIMESTAMP__hour__2.17e59f939c", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent_MODIFIED_TIMESTAMP__hour__2.0fc697aad1", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent__INSERTED_TIMESTAMP__hour__2.e62a731dc8", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__transactions_recent_TRANSACTIONS_ID.7c9f74baa9", "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__transactions_recent_TX_POSITION__BLOCK_NUMBER.3be96c2d1d", "test.fsc_evm.not_null_test_silver__transactions_recent_BLOCK_NUMBER.de7069ea97", "test.fsc_evm.not_null_test_silver__transactions_recent_INSERTED_TIMESTAMP.ca4e4a608d", "test.fsc_evm.not_null_test_silver__transactions_recent_MODIFIED_TIMESTAMP.6a9e4ad896", "test.fsc_evm.not_null_test_silver__transactions_recent_TRANSACTION_JSON.fd6c02a4c1", "test.fsc_evm.not_null_test_silver__transactions_recent_TX_POSITION.bf77824ca2", "test.fsc_evm.not_null_test_silver__transactions_recent__INSERTED_TIMESTAMP.88fde180fc"], "model.fsc_evm.test_silver__proxies_recent": ["test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__proxies_recent__ID.0c4929fb5b"], "model.fsc_evm.test_silver__proxies_full": ["test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__proxies_full__ID.bab8372ca0"], "model.fsc_evm.streamline__get_chainhead": ["model.fsc_evm.streamline__blocks", "test.fsc_evm.not_null_streamline__get_chainhead_BLOCK_NUMBER.504ea108a4"], "model.fsc_evm.streamline__blocks": ["model.fsc_evm.streamline__blocks_transactions_history", "model.fsc_evm.streamline__blocks_transactions_realtime", "model.fsc_evm.streamline__confirm_blocks_history", "model.fsc_evm.streamline__confirm_blocks_realtime", "model.fsc_evm.streamline__receipts_by_hash_realtime", "model.fsc_evm.streamline__receipts_history", "model.fsc_evm.streamline__receipts_realtime", "model.fsc_evm.streamline__traces_history", "model.fsc_evm.streamline__traces_realtime"], "model.fsc_evm.streamline__receipts_by_hash_realtime": [], "model.fsc_evm.streamline__traces_realtime": [], "model.fsc_evm.streamline__receipts_realtime": [], "model.fsc_evm.streamline__confirm_blocks_realtime": [], "model.fsc_evm.streamline__blocks_transactions_realtime": [], "model.fsc_evm.streamline__transactions_complete": ["model.fsc_evm.streamline__blocks_transactions_history", "model.fsc_evm.streamline__blocks_transactions_realtime"], "model.fsc_evm.streamline__traces_complete": ["model.fsc_evm.streamline__traces_history", "model.fsc_evm.streamline__traces_realtime"], "model.fsc_evm.streamline__confirm_blocks_complete": ["model.fsc_evm.streamline__confirm_blocks_history", "model.fsc_evm.streamline__confirm_blocks_realtime"], "model.fsc_evm.streamline__blocks_complete": ["model.fsc_evm.streamline__blocks_transactions_history", "model.fsc_evm.streamline__blocks_transactions_realtime"], "model.fsc_evm.streamline__receipts_complete": ["model.fsc_evm.streamline__receipts_history", "model.fsc_evm.streamline__receipts_realtime"], "model.fsc_evm.streamline__receipts_by_hash_complete": ["model.fsc_evm.streamline__receipts_by_hash_history", "model.fsc_evm.streamline__receipts_by_hash_realtime"], "model.fsc_evm._unconfirmed_blocks": ["model.fsc_evm.streamline__blocks_transactions_realtime", "model.fsc_evm.streamline__confirm_blocks_realtime", "model.fsc_evm.streamline__receipts_realtime", "model.fsc_evm.streamline__traces_realtime"], "model.fsc_evm._missing_traces": ["model.fsc_evm.streamline__traces_realtime"], "model.fsc_evm._missing_receipts": ["model.fsc_evm.streamline__receipts_by_hash_realtime", "model.fsc_evm.streamline__receipts_realtime"], "model.fsc_evm._missing_txs": ["model.fsc_evm.streamline__blocks_transactions_realtime", "model.fsc_evm.streamline__receipts_realtime"], "model.fsc_evm.streamline__blocks_transactions_history": [], "model.fsc_evm.streamline__receipts_by_hash_history": [], "model.fsc_evm.streamline__traces_history": [], "model.fsc_evm.streamline__confirm_blocks_history": [], "model.fsc_evm.streamline__receipts_history": [], "model.fsc_evm.core__fact_blocks": ["model.fsc_evm._24_hour_lookback", "model.fsc_evm._block_lookback", "model.fsc_evm._block_ranges", "model.fsc_evm._max_block_by_date", "model.fsc_evm._max_block_by_hour", "model.fsc_evm.core__fact_transactions", "model.fsc_evm.observability__blocks", "model.fsc_evm.observability__logs", "model.fsc_evm.observability__receipts", "model.fsc_evm.observability__traces", "model.fsc_evm.observability__transactions", "model.fsc_evm.scores__target_days", "model.fsc_evm.streamline__token_reads_realtime", "model.fsc_evm.test_gold__fact_blocks_full", "model.fsc_evm.test_gold__fact_blocks_recent"], "model.fsc_evm.core__ez_token_transfers": ["model.fsc_evm.silver_bridge__avalanche_native_v2", "model.fsc_evm.silver_bridge__axelar_contractcallwithtoken", "model.fsc_evm.silver_bridge__ethereum_native_bridges_transfers_out", "model.fsc_evm.silver_bridge__hyperliquid", "model.fsc_evm.silver_bridge__meson_transfers", "model.fsc_evm.silver_bridge__wormhole_transfers", "model.fsc_evm.silver_dex__curve_pool_actions", "model.fsc_evm.silver_lending__comp_v3_borrows", "model.fsc_evm.silver_lending__comp_v3_withdraws", "model.fsc_evm.silver_stablecoins__transfers", "model.fsc_evm.test_gold__ez_token_transfers_full", "model.fsc_evm.test_gold__ez_token_transfers_recent", "model.polygon_models.silver__element_sales"], "model.fsc_evm.core__ez_native_transfers": ["model.fsc_evm.silver_bridge__ethereum_native_bridges_transfers_out", "model.fsc_evm.silver_bridge__gaszip_lz_sentdeposits", "model.fsc_evm.silver_bridge__meson_transfers", "model.fsc_evm.silver_bridge__wormhole_transfers", "model.fsc_evm.test_gold__ez_native_transfers_full", "model.fsc_evm.test_gold__ez_native_transfers_recent"], "model.fsc_evm.core__dim_contracts": ["model.fsc_evm.balances__ez_balances_erc20_daily", "model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__ez_token_transfers", "model.fsc_evm.nft__ez_nft_transfers", "model.fsc_evm.scores__actions", "model.fsc_evm.scores__actions_agg", "model.fsc_evm.silver__stablecoin_reads", "model.fsc_evm.silver_bridge__complete_bridge_activity", "model.fsc_evm.silver_bridge__polygon_pos_contracts", "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions", "model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__complete_dex_swaps", "model.fsc_evm.silver_dex__curve_pools", "model.fsc_evm.silver_lending__comp_v3_asset_details", "model.fsc_evm.silver_lending__complete_lending_borrows", "model.fsc_evm.silver_lending__complete_lending_deposits", "model.fsc_evm.silver_lending__complete_lending_flashloans", "model.fsc_evm.silver_lending__complete_lending_liquidations", "model.fsc_evm.silver_lending__complete_lending_repayments", "model.fsc_evm.silver_lending__complete_lending_withdraws", "model.fsc_evm.silver_stablecoins__supply_contracts_list"], "model.fsc_evm.core__fact_event_logs": ["model.fsc_evm.core__ez_decoded_event_logs", "model.fsc_evm.core__ez_token_transfers", "model.fsc_evm.nft__ez_nft_transfers", "model.fsc_evm.observability__logs", "model.fsc_evm.scores__actions", "model.fsc_evm.silver__relevant_contracts", "model.fsc_evm.silver__user_verified_abis", "model.fsc_evm.silver_bridge__across_v3fundsdeposited", "model.fsc_evm.silver_bridge__allbridge_tokens_sent", "model.fsc_evm.silver_bridge__avalanche_native_v2", "model.fsc_evm.silver_bridge__cctp_depositforburn", "model.fsc_evm.silver_bridge__core_bridge_unwraptoken", "model.fsc_evm.silver_bridge__everclear_intent_added", "model.fsc_evm.silver_bridge__gaszip_lz_sentdeposits", "model.fsc_evm.silver_bridge__hop_ammwrapper", "model.fsc_evm.silver_bridge__hop_l1canonicaltoken", "model.fsc_evm.silver_bridge__layerzero_v2", "model.fsc_evm.silver_bridge__layerzero_v2_token_reads", "model.fsc_evm.silver_bridge__meson_transfers", "model.fsc_evm.silver_bridge__stargate_v2_busrode", "model.fsc_evm.silver_bridge__stargate_v2_oft", "model.fsc_evm.silver_bridge__superchain_l2_standard_bridge", "model.fsc_evm.silver_dex__aerodrome_pool_actions", "model.fsc_evm.silver_dex__aerodrome_pools", "model.fsc_evm.silver_dex__aerodrome_swaps", "model.fsc_evm.silver_dex__balancer_pools", "model.fsc_evm.silver_dex__balancer_swaps", "model.fsc_evm.silver_dex__bitflux_swaps", "model.fsc_evm.silver_dex__camelot_v2_pool_actions", "model.fsc_evm.silver_dex__camelot_v2_pools", "model.fsc_evm.silver_dex__camelot_v2_swaps", "model.fsc_evm.silver_dex__curve_swaps", "model.fsc_evm.silver_dex__dackie_pool_actions", "model.fsc_evm.silver_dex__dackie_pools", "model.fsc_evm.silver_dex__dackie_swaps", "model.fsc_evm.silver_dex__dexalot_swaps", "model.fsc_evm.silver_dex__dodo_v1_pool_actions", "model.fsc_evm.silver_dex__dodo_v1_pools", "model.fsc_evm.silver_dex__dodo_v1_swaps", "model.fsc_evm.silver_dex__dodo_v2_pools", "model.fsc_evm.silver_dex__dodo_v2_swaps", "model.fsc_evm.silver_dex__glyph_v4_pools", "model.fsc_evm.silver_dex__glyph_v4_swaps", "model.fsc_evm.silver_dex__gmx_swaps", "model.fsc_evm.silver_dex__hashflow_swaps", "model.fsc_evm.silver_dex__hashflow_v3_pools", "model.fsc_evm.silver_dex__hashflow_v3_swaps", "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pool_actions", "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pools", "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_swaps", "model.fsc_evm.silver_dex__kyberswap_v1_static_pools", "model.fsc_evm.silver_dex__kyberswap_v1_static_swaps", "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pool_actions", "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pools", "model.fsc_evm.silver_dex__kyberswap_v2_elastic_swaps", "model.fsc_evm.silver_dex__levelfi_swaps", "model.fsc_evm.silver_dex__maverick_pools", "model.fsc_evm.silver_dex__maverick_swaps", "model.fsc_evm.silver_dex__maverick_v2_pools", "model.fsc_evm.silver_dex__maverick_v2_swaps", "model.fsc_evm.silver_dex__paircreated_evt_v2_pool_actions", "model.fsc_evm.silver_dex__paircreated_evt_v2_pools", "model.fsc_evm.silver_dex__pancakeswap_v2_mm_swaps", "model.fsc_evm.silver_dex__pancakeswap_v2_ss_pools", "model.fsc_evm.silver_dex__pancakeswap_v2_ss_swaps", "model.fsc_evm.silver_dex__pancakeswap_v3_pool_actions", "model.fsc_evm.silver_dex__pancakeswap_v3_pools", "model.fsc_evm.silver_dex__pancakeswap_v3_swaps", "model.fsc_evm.silver_dex__pharaoh_v1_pool_actions", "model.fsc_evm.silver_dex__pharaoh_v1_pools", "model.fsc_evm.silver_dex__pharaoh_v1_swaps", "model.fsc_evm.silver_dex__platypus_swaps", "model.fsc_evm.silver_dex__poolcreated_evt_v3_pool_actions", "model.fsc_evm.silver_dex__poolcreated_evt_v3_pools", "model.fsc_evm.silver_dex__quickswap_v2_pool_actions", "model.fsc_evm.silver_dex__quickswap_v2_pools", "model.fsc_evm.silver_dex__quickswap_v2_swaps", "model.fsc_evm.silver_dex__quickswap_v4_pool_actions", "model.fsc_evm.silver_dex__quickswap_v4_pools", "model.fsc_evm.silver_dex__quickswap_v4_swaps", "model.fsc_evm.silver_dex__superchain_slipstream_pool_actions", "model.fsc_evm.silver_dex__superchain_slipstream_pools", "model.fsc_evm.silver_dex__superchain_slipstream_swaps", "model.fsc_evm.silver_dex__sushiswap_pool_actions", "model.fsc_evm.silver_dex__sushiswap_pools", "model.fsc_evm.silver_dex__sushiswap_swaps", "model.fsc_evm.silver_dex__swap_evt_v2_swaps", "model.fsc_evm.silver_dex__swap_evt_v3_swaps", "model.fsc_evm.silver_dex__synthetix_swaps", "model.fsc_evm.silver_dex__trader_joe_v2_1_swaps", "model.fsc_evm.silver_dex__trader_joe_v2_pools", "model.fsc_evm.silver_dex__trader_joe_v2_swaps", "model.fsc_evm.silver_dex__uniswap_v4_pools", "model.fsc_evm.silver_dex__uniswap_v4_swaps", "model.fsc_evm.silver_dex__velodrome_v1_pool_actions", "model.fsc_evm.silver_dex__velodrome_v1_pools", "model.fsc_evm.silver_dex__velodrome_v1_swaps", "model.fsc_evm.silver_dex__velodrome_v2_pool_actions", "model.fsc_evm.silver_dex__velodrome_v2_pools", "model.fsc_evm.silver_dex__velodrome_v2_swaps", "model.fsc_evm.silver_dex__voodoo_swaps", "model.fsc_evm.silver_dex__woofi_swaps", "model.fsc_evm.silver_dex__zyberswap_v2_pool_actions", "model.fsc_evm.silver_dex__zyberswap_v2_pools", "model.fsc_evm.silver_dex__zyberswap_v2_swaps", "model.fsc_evm.silver_lending__aave_borrows", "model.fsc_evm.silver_lending__aave_deposits", "model.fsc_evm.silver_lending__aave_ethereum_borrows", "model.fsc_evm.silver_lending__aave_ethereum_deposits", "model.fsc_evm.silver_lending__aave_ethereum_flashloans", "model.fsc_evm.silver_lending__aave_ethereum_liquidations", "model.fsc_evm.silver_lending__aave_ethereum_repayments", "model.fsc_evm.silver_lending__aave_ethereum_tokens", "model.fsc_evm.silver_lending__aave_ethereum_withdraws", "model.fsc_evm.silver_lending__aave_flashloans", "model.fsc_evm.silver_lending__aave_interest_rates", "model.fsc_evm.silver_lending__aave_liquidations", "model.fsc_evm.silver_lending__aave_repayments", "model.fsc_evm.silver_lending__aave_tokens", "model.fsc_evm.silver_lending__aave_withdraws", "model.fsc_evm.silver_lending__comp_v2_asset_details", "model.fsc_evm.silver_lending__comp_v2_borrows", "model.fsc_evm.silver_lending__comp_v2_deposits", "model.fsc_evm.silver_lending__comp_v2_liquidations", "model.fsc_evm.silver_lending__comp_v2_repayments", "model.fsc_evm.silver_lending__comp_v2_withdraws", "model.fsc_evm.silver_lending__comp_v3_asset_details", "model.fsc_evm.silver_lending__comp_v3_borrows", "model.fsc_evm.silver_lending__comp_v3_deposits", "model.fsc_evm.silver_lending__comp_v3_liquidations", "model.fsc_evm.silver_lending__comp_v3_repayments", "model.fsc_evm.silver_lending__comp_v3_withdraws", "model.fsc_evm.silver_lending__euler_borrows", "model.fsc_evm.silver_lending__euler_deposits", "model.fsc_evm.silver_lending__euler_liquidations", "model.fsc_evm.silver_lending__euler_repayments", "model.fsc_evm.silver_lending__euler_tokens", "model.fsc_evm.silver_lending__euler_withdraws", "model.fsc_evm.silver_lending__fraxlend_asset_details", "model.fsc_evm.silver_lending__fraxlend_borrows", "model.fsc_evm.silver_lending__fraxlend_deposits", "model.fsc_evm.silver_lending__fraxlend_liquidations", "model.fsc_evm.silver_lending__fraxlend_repayments", "model.fsc_evm.silver_lending__fraxlend_withdraws", "model.fsc_evm.silver_lending__morpho_flashloans", "model.fsc_evm.silver_lending__morpho_liquidations", "model.fsc_evm.silver_lending__silo_borrows", "model.fsc_evm.silver_lending__silo_deposits", "model.fsc_evm.silver_lending__silo_liquidations", "model.fsc_evm.silver_lending__silo_pools", "model.fsc_evm.silver_lending__silo_repayments", "model.fsc_evm.silver_lending__silo_withdraws", "model.fsc_evm.silver_stablecoins__address_blacklist", "model.fsc_evm.silver_stablecoins__mint_burn", "model.fsc_evm.streamline__balances_erc20_daily_records", "model.fsc_evm.streamline__decoded_logs_realtime", "model.fsc_evm.test_gold__fact_event_logs_full", "model.fsc_evm.test_gold__fact_event_logs_recent", "model.polygon_models.silver__mooar_sales", "model.polygon_models.silver__polymarket_filled_orders", "model.polygon_models.silver__seaport_1_1_sales", "model.polygon_models.silver__seaport_1_4_sales", "model.polygon_models.silver__seaport_1_5_sales", "model.polygon_models.silver__seaport_1_6_sales", "model.polygon_models.silver_olas__create_service_multisigs", "model.polygon_models.silver_olas__service_event_logs", "model.polygon_models.silver_olas__service_registrations"], "model.fsc_evm.core__fact_transactions": ["model.fsc_evm.core__fact_event_logs", "model.fsc_evm.core__fact_traces", "model.fsc_evm.observability__receipts", "model.fsc_evm.observability__traces", "model.fsc_evm.observability__transactions", "model.fsc_evm.scores__actions", "model.fsc_evm.silver_bridge__ethereum_native_bridges_transfers_out", "model.fsc_evm.silver_bridge__meson_transfers", "model.fsc_evm.silver_bridge__wormhole_transfers", "model.fsc_evm.silver_stats__core_metrics_hourly", "model.fsc_evm.streamline__balances_native_daily_records", "model.fsc_evm.streamline__receipts_by_hash_history", "model.fsc_evm.test_gold__fact_transactions_full", "model.fsc_evm.test_gold__fact_transactions_recent", "model.polygon_models.silver__element_sales", "model.polygon_models.silver__mooar_sales", "model.polygon_models.silver__seaport_1_1_sales", "model.polygon_models.silver__seaport_1_4_sales", "model.polygon_models.silver__seaport_1_5_sales", "model.polygon_models.silver__seaport_1_6_sales", "model.polygon_models.silver__tofunft_sales"], "model.fsc_evm.core__fact_traces": ["model.fsc_evm.core__ez_native_transfers", "model.fsc_evm.observability__traces", "model.fsc_evm.scores__actions", "model.fsc_evm.silver__created_contracts", "model.fsc_evm.silver__proxies", "model.fsc_evm.silver__relevant_contracts", "model.fsc_evm.silver__user_verified_abis", "model.fsc_evm.silver_bridge__ccip_send_requested", "model.fsc_evm.silver_bridge__everclear_intent_added", "model.fsc_evm.silver_bridge__polygon_pos_bridge", "model.fsc_evm.silver_bridge__stargate_createpool", "model.fsc_evm.silver_dex__bitflux_pools", "model.fsc_evm.silver_dex__curve_pools", "model.fsc_evm.silver_dex__dodo_v1_pools", "model.fsc_evm.silver_dex__dodo_v2_pools", "model.fsc_evm.silver_dex__hashflow_pools", "model.fsc_evm.silver_dex__platypus_pools", "model.fsc_evm.silver_dex__uniswap_v4_swaps", "model.fsc_evm.silver_lending__comp_v2_asset_details", "model.fsc_evm.silver_lending__comp_v2_liquidations", "model.fsc_evm.silver_lending__morpho_borrows", "model.fsc_evm.silver_lending__morpho_deposits", "model.fsc_evm.silver_lending__morpho_liquidations", "model.fsc_evm.silver_lending__morpho_repayments", "model.fsc_evm.silver_lending__morpho_withdraws", "model.fsc_evm.streamline__balances_native_daily_records", "model.fsc_evm.test_gold__fact_traces_full", "model.fsc_evm.test_gold__fact_traces_recent", "model.polygon_models.silver__element_sales", "model.polygon_models.silver__tofunft_sales"], "model.fsc_evm.test_gold__fact_traces_recent": ["model.fsc_evm._missing_traces", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_BLOCK_NUMBER__NUMBER__FLOAT.31727446c1", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3a97986c59", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_TRACE_INDEX__NUMBER__FLOAT.0fb959327e", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_TX_POSITION__NUMBER__FLOAT.81ee6df17c", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.6f01aa59cb", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.ffc328a26e", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_TX_HASH__0_xX_0_9a_fA_F_.f88bea7ab6", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_BLOCK_TIMESTAMP__hour__2.d62edf20de", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_INSERTED_TIMESTAMP__hour__2.6a5297f507", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP__hour__2.d8b7ffcaca", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_traces_recent_TX_HASH__TRACE_INDEX.4487675007", "test.fsc_evm.fsc_evm_balances_diffs_native_test_gold__ez_balances_native_recent_test_gold__fact_traces_recent.b9139d7c14", "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_traces_recent_TRACE_INDEX__TX_HASH.6c15fc0c52", "test.fsc_evm.not_null_test_gold__fact_traces_recent_BLOCK_NUMBER.d457327d7c", "test.fsc_evm.not_null_test_gold__fact_traces_recent_BLOCK_TIMESTAMP.cda64f37d1", "test.fsc_evm.not_null_test_gold__fact_traces_recent_FACT_TRACES_ID.5ec564f014", "test.fsc_evm.not_null_test_gold__fact_traces_recent_FROM_ADDRESS.e42c02340f", "test.fsc_evm.not_null_test_gold__fact_traces_recent_INPUT.b4e1faa8be", "test.fsc_evm.not_null_test_gold__fact_traces_recent_INSERTED_TIMESTAMP.fe2de85a12", "test.fsc_evm.not_null_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP.7dd9cf25d3", "test.fsc_evm.not_null_test_gold__fact_traces_recent_ORIGIN_FROM_ADDRESS.bc94384fb7", "test.fsc_evm.not_null_test_gold__fact_traces_recent_ORIGIN_FUNCTION_SIGNATURE.f967f0e608", "test.fsc_evm.not_null_test_gold__fact_traces_recent_SUB_TRACES.4cb72b9d8c", "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_ADDRESS.86ed5a1d98", "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_INDEX.00c0917eec", "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_SUCCEEDED.9a3cc510bc", "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_HASH.fdd1a78f2f", "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_POSITION.cd5aab01f0", "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_SUCCEEDED.e488b18268", "test.fsc_evm.not_null_test_gold__fact_traces_recent_TYPE.d15c335bcb", "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE.8b0bc69a85", "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_HEX.7a2a3e4634", "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_PRECISE.d873ec7feb", "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_PRECISE_RAW.0c0dcc217b", "test.fsc_evm.txs_have_traces_test_gold__fact_traces_recent_ref_test_gold__fact_transactions_recent_.5b2a8b5ca4"], "model.fsc_evm.test_gold__fact_traces_full": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_BLOCK_NUMBER__NUMBER__FLOAT.065c833ed1", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4682c97f81", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_TRACE_INDEX__NUMBER__FLOAT.fbac1ab3f2", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_TX_POSITION__NUMBER__FLOAT.6c3cd6ac49", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.7b65729d3c", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_TO_ADDRESS__0_xX_0_9a_fA_F_.f8d47ec7e6", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_TX_HASH__0_xX_0_9a_fA_F_.a50cc790b3", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_BLOCK_TIMESTAMP__hour__2.6b827e0d56", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_INSERTED_TIMESTAMP__hour__2.eae85b300c", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_MODIFIED_TIMESTAMP__hour__2.d9cadbf789", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_traces_full_TX_HASH__TRACE_INDEX.7f6d6a8ebe", "test.fsc_evm.fsc_evm_balances_diffs_native_test_gold__ez_balances_native_full_test_gold__fact_traces_full.6565b471ec", "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_traces_full_TRACE_INDEX__TX_HASH.4c79dbc511", "test.fsc_evm.not_null_test_gold__fact_traces_full_BLOCK_NUMBER.ef072a7cea", "test.fsc_evm.not_null_test_gold__fact_traces_full_BLOCK_TIMESTAMP.f598b4bc90", "test.fsc_evm.not_null_test_gold__fact_traces_full_FACT_TRACES_ID.abf9596ec6", "test.fsc_evm.not_null_test_gold__fact_traces_full_FROM_ADDRESS.527a050b74", "test.fsc_evm.not_null_test_gold__fact_traces_full_INPUT.72da83c733", "test.fsc_evm.not_null_test_gold__fact_traces_full_INSERTED_TIMESTAMP.b2ca0ceed2", "test.fsc_evm.not_null_test_gold__fact_traces_full_MODIFIED_TIMESTAMP.3f799b0371", "test.fsc_evm.not_null_test_gold__fact_traces_full_ORIGIN_FROM_ADDRESS.8987e52474", "test.fsc_evm.not_null_test_gold__fact_traces_full_ORIGIN_FUNCTION_SIGNATURE.d3332ad3dd", "test.fsc_evm.not_null_test_gold__fact_traces_full_SUB_TRACES.0335817c13", "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_ADDRESS.daabd36c03", "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_INDEX.0ec0ee0f92", "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_SUCCEEDED.3fd972f5b7", "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_HASH.7af5bb693e", "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_POSITION.d76ba851b9", "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_SUCCEEDED.217432b07d", "test.fsc_evm.not_null_test_gold__fact_traces_full_TYPE.dd106bd70a", "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE.a5c2d5cb74", "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_HEX.1a5a1ee8a5", "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_PRECISE.f5a509ff49", "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_PRECISE_RAW.d1e83172a7", "test.fsc_evm.txs_have_traces_test_gold__fact_traces_full_ref_test_gold__fact_transactions_full_.1c3ecccef2"], "model.fsc_evm.test_gold__ez_token_transfers_recent": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.4d67ac0920", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.cbfe040895", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_RAW_AMOUNT__NUMBER__FLOAT.0ce022106e", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.53adf4570d", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.a5a0db81dc", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.85e49c2533", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.f542f4cc0f", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.cd3a28165e", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.403a0d410c", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP__hour__3.cb9fd0826a", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID.36d8d8661a", "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_BLOCK_NUMBER.ab8d5d8e4c", "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP.f39a6a04de", "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS.a4658e804e", "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID.e204f7c6ee", "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_FROM_ADDRESS.2c69eb9d6a", "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_ORIGIN_FROM_ADDRESS.c65a204117", "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_ORIGIN_FUNCTION_SIGNATURE.ee7a08f37f", "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_RAW_AMOUNT.62229d27e9", "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_TO_ADDRESS.a5feb6a9bf", "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_TX_HASH.d65cfc264e"], "model.fsc_evm.test_gold__ez_token_transfers_full": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.cf7a275c18", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.5025592820", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_RAW_AMOUNT__NUMBER__FLOAT.e29960d304", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.f04c6eba97", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.c61b6f0c34", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.0056122d14", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.e48a268383", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_TO_ADDRESS__0_xX_0_9a_fA_F_.4e9427647b", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.dde3475101", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP__hour__3.186f75bd44", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID.b52f0fec49", "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_BLOCK_NUMBER.c281a15c7c", "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP.3015447008", "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS.8384cb648a", "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID.dbb70e1221", "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_FROM_ADDRESS.f2cd4b35a9", "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS.95a4909c44", "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_ORIGIN_FUNCTION_SIGNATURE.de76042d6e", "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_RAW_AMOUNT.ca974f9bde", "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_TO_ADDRESS.50fe049e34", "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_TX_HASH.bf35dc7aec"], "model.fsc_evm.test_gold__fact_event_logs_full": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_BLOCK_NUMBER__NUMBER.8148040748", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.461cb228ca", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_EVENT_INDEX__NUMBER__FLOAT.ba4706e35d", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_TX_POSITION__NUMBER__FLOAT.1244edc76e", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.e11ba68261", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.eb95035ba4", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.356e5b7689", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_TX_HASH__0_xX_0_9a_fA_F_.13ee5cd65b", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP__hour__2.677cfb4387", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP__hour__2.66cacb203e", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP__hour__2.9ae1d3b725", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_event_logs_full_TX_HASH__EVENT_INDEX.164d9b638c", "test.fsc_evm.decoded_logs_exist_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_.2508ca290d", "test.fsc_evm.events_match_txs_test_gold__fact_event_logs_full_ref_test_gold__fact_transactions_full_.5a7952a816", "test.fsc_evm.find_missing_decoded_logs_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_.8f9f593cec", "test.fsc_evm.fsc_evm_balances_diffs_erc20_test_gold__ez_balances_erc20_full_test_gold__fact_event_logs_full.be7375fc73", "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_event_logs_full_EVENT_INDEX__BLOCK_NUMBER.13a5a78e6f", "test.fsc_evm.fsc_utils_tx_block_count_test_gold__fact_event_logs_full_TX_HASH.b31311d808", "test.fsc_evm.not_null_test_gold__fact_event_logs_full_BLOCK_NUMBER.76acdf0f28", "test.fsc_evm.not_null_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP.32a4782af7", "test.fsc_evm.not_null_test_gold__fact_event_logs_full_CONTRACT_ADDRESS.d7ef6c7fb1", "test.fsc_evm.not_null_test_gold__fact_event_logs_full_DATA.d22b95cbe2", "test.fsc_evm.not_null_test_gold__fact_event_logs_full_EVENT_INDEX.c6e1f7c07f", "test.fsc_evm.not_null_test_gold__fact_event_logs_full_EVENT_REMOVED.3234e54d57", "test.fsc_evm.not_null_test_gold__fact_event_logs_full_FACT_EVENT_LOGS_ID.f7cadc54a4", "test.fsc_evm.not_null_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP.0653b623df", "test.fsc_evm.not_null_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP.bd570cee7b", "test.fsc_evm.not_null_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS.3bc67218ac", "test.fsc_evm.not_null_test_gold__fact_event_logs_full_ORIGIN_FUNCTION_SIGNATURE.81cc4e99fd", "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TOPICS.c0ac9e4c8a", "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_HASH.e76669565b", "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_POSITION.2791b096bd", "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_SUCCEEDED.a552892b92"], "model.fsc_evm.test_gold__fact_event_logs_recent": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_BLOCK_NUMBER__NUMBER.f023a7fa38", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7806b0df5f", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_EVENT_INDEX__NUMBER__FLOAT.4b5e283568", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_TX_POSITION__NUMBER__FLOAT.400e138c88", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.3d58ac3aa0", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.dbd110b4d3", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.be409440dd", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_TX_HASH__0_xX_0_9a_fA_F_.d7f102a501", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP__hour__2.bca2ba239f", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP__hour__2.509d7d2de4", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP__hour__2.742de25dd6", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_event_logs_recent_TX_HASH__EVENT_INDEX.63ec130f07", "test.fsc_evm.decoded_logs_exist_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_.e2d790a075", "test.fsc_evm.events_match_txs_test_gold__fact_event_logs_recent_ref_test_gold__fact_transactions_recent_.3f449de1cd", "test.fsc_evm.find_missing_decoded_logs_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_.995b3759d0", "test.fsc_evm.fsc_evm_balances_diffs_erc20_test_gold__ez_balances_erc20_recent_test_gold__fact_event_logs_recent.f2764760a2", "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_event_logs_recent_EVENT_INDEX__BLOCK_NUMBER.3d7998b618", "test.fsc_evm.fsc_utils_tx_block_count_test_gold__fact_event_logs_recent_TX_HASH.4d9f53b085", "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_BLOCK_NUMBER.175fc10a23", "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP.01f36159ef", "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS.b4d519e230", "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_DATA.297d8e5e96", "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_EVENT_INDEX.bebac92256", "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_EVENT_REMOVED.c575d9ca64", "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_FACT_EVENT_LOGS_ID.91901e9d78", "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP.c8bd425490", "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP.85e778caed", "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS.bc086d9e05", "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE.c81a26b80c", "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TOPICS.9f5c99369f", "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_HASH.7aaa319baa", "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_POSITION.6b3cf4b320", "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_SUCCEEDED.66bec17605"], "model.fsc_evm.test_gold__fact_blocks_full": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_BLOCK_NUMBER__NUMBER__FLOAT.a26946ebdc", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.65dfa2ec4d", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_DIFFICULTY__NUMBER__FLOAT.4197d7bd8c", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_GAS_LIMIT__NUMBER__FLOAT.bdee5c4523", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_GAS_USED__NUMBER__FLOAT.c2e16f1869", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e8c1190abb", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.04ccc1e679", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_NONCE__NUMBER__FLOAT.74da207967", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_SIZE__NUMBER__FLOAT.a537b42b6c", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_TX_COUNT__NUMBER__FLOAT.ba256986bd", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_unique_test_gold__fact_blocks_full_FACT_BLOCKS_ID.484aaf9b82", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_BLOCK_HASH__0_xX_0_9a_fA_F_.f2f5d9dc2f", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_LOGS_BLOOM__0_xX_0_9a_fA_F_.73ad80f09c", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_MINER__0_xX_0_9a_fA_F_.dc25f4c8de", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_NETWORK___a_zA_Z0_9__.c5c8f0a0cc", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_PARENT_HASH__0_xX_0_9a_fA_F_.68e75bb757", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.2a0915d40b", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_STATE_ROOT__0_xX_0_9a_fA_F_.62e12dc84f", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_TRANSACTIONS_ROOT__0_xX_0_9a_fA_F_.8d1b61bce1", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_BLOCK_TIMESTAMP__hour__2.4d38c1199d", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_INSERTED_TIMESTAMP__hour__2.3cb43deaa6", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP__hour__2.d75178fa1c", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_blocks_full_BLOCK_NUMBER.b470c9b0e0", "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_blocks_full_BLOCK_NUMBER.6f6c66623c", "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_HASH.8dee9b8914", "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_NUMBER.f3098a994a", "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_TIMESTAMP.3a590c964b", "test.fsc_evm.not_null_test_gold__fact_blocks_full_EXTRA_DATA.f2257373c4", "test.fsc_evm.not_null_test_gold__fact_blocks_full_FACT_BLOCKS_ID.0ff5f55ac4", "test.fsc_evm.not_null_test_gold__fact_blocks_full_GAS_LIMIT.f2dbecd61f", "test.fsc_evm.not_null_test_gold__fact_blocks_full_INSERTED_TIMESTAMP.48b29759a8", "test.fsc_evm.not_null_test_gold__fact_blocks_full_LOGS_BLOOM.490b2e508d", "test.fsc_evm.not_null_test_gold__fact_blocks_full_MINER.8de6a9c8f5", "test.fsc_evm.not_null_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP.3996175adf", "test.fsc_evm.not_null_test_gold__fact_blocks_full_NETWORK.f4601bdcec", "test.fsc_evm.not_null_test_gold__fact_blocks_full_PARENT_HASH.7c8b3fff47", "test.fsc_evm.not_null_test_gold__fact_blocks_full_RECEIPTS_ROOT.6eb806e5a4", "test.fsc_evm.not_null_test_gold__fact_blocks_full_SHA3_UNCLES.eec76f65cc", "test.fsc_evm.not_null_test_gold__fact_blocks_full_SIZE.7f5752ed31", "test.fsc_evm.not_null_test_gold__fact_blocks_full_STATE_ROOT.1c61a48d97", "test.fsc_evm.not_null_test_gold__fact_blocks_full_TRANSACTIONS_ROOT.53175038a7", "test.fsc_evm.not_null_test_gold__fact_blocks_full_TX_COUNT.ea1dabd60a", "test.fsc_evm.not_null_test_gold__fact_blocks_full_UNCLE_BLOCKS.9b8edf4bfd", "test.fsc_evm.txs_match_blocks_test_gold__fact_transactions_full_ref_test_gold__fact_blocks_full_.d3390d5b0e"], "model.fsc_evm.test_gold__fact_blocks_recent": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_BLOCK_NUMBER__NUMBER__FLOAT.a0aef7af7c", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.a84c388c6a", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_DIFFICULTY__NUMBER__FLOAT.3dbebb71ca", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_GAS_LIMIT__NUMBER__FLOAT.a04528bc5d", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_GAS_USED__NUMBER__FLOAT.6540d38a1f", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3aed81ccad", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b67cb105f5", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_NONCE__NUMBER__FLOAT.1083444a52", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_SIZE__NUMBER__FLOAT.b9716a702f", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_TX_COUNT__NUMBER__FLOAT.be245b701f", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_unique_test_gold__fact_blocks_recent_FACT_BLOCKS_ID.d5e1fb66c7", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_BLOCK_HASH__0_xX_0_9a_fA_F_.44301d7b7c", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_LOGS_BLOOM__0_xX_0_9a_fA_F_.f5af8d2584", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_MINER__0_xX_0_9a_fA_F_.81a710571a", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_NETWORK___a_zA_Z0_9__.9b67337d7a", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_PARENT_HASH__0_xX_0_9a_fA_F_.6b67f778c4", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.77793690bd", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_STATE_ROOT__0_xX_0_9a_fA_F_.467353aa70", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT__0_xX_0_9a_fA_F_.47d739e923", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP__hour__2.4589bd9103", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP__hour__2.92c0a04348", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP__hour__2.253aae44aa", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_blocks_recent_BLOCK_NUMBER.e708e85fee", "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_blocks_recent_BLOCK_NUMBER.a1a1f456ae", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_HASH.fc40219b9b", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_NUMBER.9061fb0407", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP.94fcac91b2", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_EXTRA_DATA.c1204d1482", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_FACT_BLOCKS_ID.a71e6bc73d", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_GAS_LIMIT.f49dbdd7e1", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP.38071aedba", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_LOGS_BLOOM.633277005e", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_MINER.a44712730d", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP.97bc7f13ae", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_NETWORK.34f87743f3", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_PARENT_HASH.339dcfcc3c", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_RECEIPTS_ROOT.dc843e4165", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_SHA3_UNCLES.0d2fae6c58", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_SIZE.e3303070ef", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_STATE_ROOT.da47dabf27", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT.566be08af9", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_TX_COUNT.2ab3789a46", "test.fsc_evm.not_null_test_gold__fact_blocks_recent_UNCLE_BLOCKS.3393af752e", "test.fsc_evm.txs_match_blocks_test_gold__fact_transactions_recent_ref_test_gold__fact_blocks_recent_.788e86d48f"], "model.fsc_evm.test_gold__ez_native_transfers_full": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_AMOUNT__NUMBER__FLOAT.7c64e2a5d0", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.bce0936e10", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b52e7b4dcf", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_native_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.15293d5591", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP__hour__3.21a3a75c8f", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_native_transfers_full_EZ_NATIVE_TRANSFERS_ID.8e978e6b17", "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_AMOUNT.b8f4300dc9", "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_BLOCK_NUMBER.3da7a0c428", "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP.9bff42bf90", "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_FROM_ADDRESS.f1de7fc788", "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_TX_HASH.e069256b19"], "model.fsc_evm.test_gold__ez_native_transfers_recent": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_AMOUNT__NUMBER__FLOAT.b3aafcb7e6", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.81a99604c2", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c85b3e577e", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_native_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.b4ae42a72b", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP__hour__3.06e5f301c9", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_native_transfers_recent_EZ_NATIVE_TRANSFERS_ID.c7c417aa6a", "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_AMOUNT.962946cb51", "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_BLOCK_NUMBER.277bef24ac", "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP.3873d5cdc6", "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_FROM_ADDRESS.6bea14a19a", "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_TX_HASH.9e5afe0aff"], "model.fsc_evm.test_gold__fact_transactions_recent": ["model.fsc_evm._missing_receipts", "model.fsc_evm._missing_traces", "model.fsc_evm._missing_txs", "model.fsc_evm._unconfirmed_blocks", "model.fsc_evm.streamline__receipts_by_hash_realtime", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_BLOCK_NUMBER__NUMBER__FLOAT.5d89afa477", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.cffc3ef224", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_TX_POSITION__NUMBER__FLOAT.4b5af30d3b", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.9235dce9b7", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.cc531991fa", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_TX_HASH__0_xX_0_9a_fA_F_.6c5a3d3af9", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP__hour__2.e7899727e4", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP__hour__2.81da35ef44", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP__hour__2.68cd5b81d5", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_transactions_recent_TX_HASH.07b6bc79fa", "test.fsc_evm.events_match_txs_test_gold__fact_event_logs_recent_ref_test_gold__fact_transactions_recent_.3f449de1cd", "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_transactions_recent_TX_POSITION__BLOCK_NUMBER.dadcf142a0", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_BLOCK_NUMBER.a56487d0d2", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP.0dfa5d9bbc", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_CUMULATIVE_GAS_USED.53f3097347", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_FACT_TRANSACTIONS_ID.e7b3d89825", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_FROM_ADDRESS.f6687a1d92", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_GAS_LIMIT.0570943628", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_INPUT_DATA.0c71a3add2", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP.12f51bf377", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP.82fda9d680", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_NONCE.151663a822", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_ORIGIN_FUNCTION_SIGNATURE.55dc566734", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_R.25ff796006", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_S.415d28f531", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_FEE.fa909d23b7", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_FEE_PRECISE.1ca90b56ab", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_HASH.2562021784", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_POSITION.459ccef5c1", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_SUCCEEDED.8ed2d84f45", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_TYPE.9ffebdfc52", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_V.c6c8b50102", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE.e5b387a31d", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE_PRECISE.3b69d58f94", "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE_PRECISE_RAW.5cee0b299e", "test.fsc_evm.txs_have_traces_test_gold__fact_traces_recent_ref_test_gold__fact_transactions_recent_.5b2a8b5ca4", "test.fsc_evm.txs_match_blocks_test_gold__fact_transactions_recent_ref_test_gold__fact_blocks_recent_.788e86d48f"], "model.fsc_evm.test_gold__fact_transactions_full": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_BLOCK_NUMBER__NUMBER__FLOAT.f75d3f5f2b", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e339fe42ef", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_TX_POSITION__NUMBER__FLOAT.473e47a660", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.8794e23ba3", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_TO_ADDRESS__0_xX_0_9a_fA_F_.bd70190cf6", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_TX_HASH__0_xX_0_9a_fA_F_.60bef77cff", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_BLOCK_TIMESTAMP__hour__2.b2b7b2723b", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_INSERTED_TIMESTAMP__hour__2.9f370ce025", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP__hour__2.bd49713839", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_transactions_full_TX_HASH.ac75b8c705", "test.fsc_evm.events_match_txs_test_gold__fact_event_logs_full_ref_test_gold__fact_transactions_full_.5a7952a816", "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_transactions_full_TX_POSITION__BLOCK_NUMBER.edeb24d95d", "test.fsc_evm.not_null_test_gold__fact_transactions_full_BLOCK_NUMBER.d91075d3e5", "test.fsc_evm.not_null_test_gold__fact_transactions_full_BLOCK_TIMESTAMP.20e3f64edd", "test.fsc_evm.not_null_test_gold__fact_transactions_full_CUMULATIVE_GAS_USED.88f6b855e0", "test.fsc_evm.not_null_test_gold__fact_transactions_full_FACT_TRANSACTIONS_ID.a9bd9374e2", "test.fsc_evm.not_null_test_gold__fact_transactions_full_FROM_ADDRESS.ad4c8e2694", "test.fsc_evm.not_null_test_gold__fact_transactions_full_GAS_LIMIT.5c5592b6ac", "test.fsc_evm.not_null_test_gold__fact_transactions_full_INPUT_DATA.388b4be0ae", "test.fsc_evm.not_null_test_gold__fact_transactions_full_INSERTED_TIMESTAMP.645083145d", "test.fsc_evm.not_null_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP.a6ef34b987", "test.fsc_evm.not_null_test_gold__fact_transactions_full_NONCE.ea08f1a1ba", "test.fsc_evm.not_null_test_gold__fact_transactions_full_ORIGIN_FUNCTION_SIGNATURE.c97ff6fa70", "test.fsc_evm.not_null_test_gold__fact_transactions_full_R.1699801aae", "test.fsc_evm.not_null_test_gold__fact_transactions_full_S.cff5ed8cca", "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_FEE.f5351603f2", "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_FEE_PRECISE.161ef1c3a1", "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_HASH.7a79eff2d8", "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_POSITION.fa8e858e99", "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_SUCCEEDED.0932db54b6", "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_TYPE.9c605a5a95", "test.fsc_evm.not_null_test_gold__fact_transactions_full_V.a647e39488", "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE.fcb488bf96", "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE_PRECISE.59f993bcda", "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE_PRECISE_RAW.14c29d688d", "test.fsc_evm.txs_have_traces_test_gold__fact_traces_full_ref_test_gold__fact_transactions_full_.1c3ecccef2", "test.fsc_evm.txs_match_blocks_test_gold__fact_transactions_full_ref_test_gold__fact_blocks_full_.d3390d5b0e"], "model.fsc_evm.bronze__traces_fr": ["model.fsc_evm.silver__traces", "model.fsc_evm.streamline__traces_complete"], "model.fsc_evm.bronze__blocks": ["model.fsc_evm.silver__blocks", "model.fsc_evm.streamline__blocks_complete"], "model.fsc_evm.bronze__confirm_blocks_fr": ["model.fsc_evm.silver__confirm_blocks", "model.fsc_evm.streamline__confirm_blocks_complete"], "model.fsc_evm.bronze__receipts_by_hash": ["model.fsc_evm.streamline__receipts_by_hash_complete"], "model.fsc_evm.bronze__receipts": ["model.fsc_evm.silver__receipts", "model.fsc_evm.streamline__receipts_complete"], "model.fsc_evm.bronze__traces": ["model.fsc_evm.silver__traces", "model.fsc_evm.streamline__traces_complete"], "model.fsc_evm.bronze__receipts_by_hash_fr": ["model.fsc_evm.streamline__receipts_by_hash_complete"], "model.fsc_evm.bronze__transactions": ["model.fsc_evm.silver__transactions", "model.fsc_evm.streamline__transactions_complete"], "model.fsc_evm.bronze__receipts_fr": ["model.fsc_evm.silver__receipts", "model.fsc_evm.streamline__receipts_complete"], "model.fsc_evm.bronze__transactions_fr": ["model.fsc_evm.silver__transactions", "model.fsc_evm.streamline__transactions_complete"], "model.fsc_evm.bronze__confirm_blocks": ["model.fsc_evm.silver__confirm_blocks", "model.fsc_evm.streamline__confirm_blocks_complete"], "model.fsc_evm.bronze__blocks_fr": ["model.fsc_evm.silver__blocks", "model.fsc_evm.streamline__blocks_complete"], "model.fsc_evm.nft__ez_nft_transfers": ["model.fsc_evm.test_nft__ez_nft_transfers_full", "model.fsc_evm.test_nft__ez_nft_transfers_recent", "model.polygon_models.silver__tofunft_sales"], "model.fsc_evm.test_nft__ez_nft_transfers_full": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.5ec4aef06a", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.945acce1de", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.499658c9bc", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.c7f3997422", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.ceafcdaa5b", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_TO_ADDRESS__0_xX_0_9a_fA_F_.5c28de3d46", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.523ec38237", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP__hour__3.2ad48fb9bf", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_full_INSERTED_TIMESTAMP__hour__3.af9feb5290", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID.aa63995b75", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_BLOCK_NUMBER.5a3535bb1a", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP.580b67cb8c", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS.35c96ffef7", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_EVENT_INDEX.85b975cd1b", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID.1c01304059", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_FROM_ADDRESS.fe828e0f8e", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_INTRA_EVENT_INDEX.d4991df060", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TOKEN_ID.74258e963a", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TO_ADDRESS.a5fba0294c", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TX_HASH.66e383a70b"], "model.fsc_evm.test_nft__ez_nft_transfers_recent": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.59a9a57567", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.01bb3ad3bd", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7988c079e5", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.e901b29df2", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.3e8e3c0838", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.76a34d263a", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.7dfd5b1d49", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP__hour__3.2d99fe0ba2", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_recent_INSERTED_TIMESTAMP__hour__3.285e6fec43", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID.815336f0e0", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER.c391cc6a96", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP.cb878cc127", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS.7f5d57c7b9", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_EVENT_INDEX.ea83d8365e", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID.071c327c9c", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_FROM_ADDRESS.983881c27c", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_INTRA_EVENT_INDEX.025edfde6b", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TOKEN_ID.8827c1fad9", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TO_ADDRESS.ce1e8d5dfe", "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TX_HASH.336555c4d6"], "model.fsc_evm.observability__receipts": ["test.fsc_evm.accepted_values_recent_row_observability__receipts_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.3c8361f4b6", "test.fsc_evm.not_null_observability__receipts_TEST_TIMESTAMP.c023aec11f"], "model.fsc_evm.observability__traces": ["test.fsc_evm.accepted_values_recent_row_observability__traces_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.a009465ad0", "test.fsc_evm.not_null_observability__traces_TEST_TIMESTAMP.4b6fefc2cc"], "model.fsc_evm.observability__blocks": ["test.fsc_evm.accepted_values_recent_row_observability__blocks_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.d058a90f3b", "test.fsc_evm.not_null_observability__blocks_TEST_TIMESTAMP.6047fc0ddc"], "model.fsc_evm.observability__transactions": ["test.fsc_evm.accepted_values_recent_row_observability__transactions_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.eb2fcab8d1", "test.fsc_evm.not_null_observability__transactions_TEST_TIMESTAMP.fcbece1b9f"], "model.fsc_evm.observability__logs": ["test.fsc_evm.accepted_values_recent_row_observability__logs_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.33a0e6880c", "test.fsc_evm.not_null_observability__logs_TEST_TIMESTAMP.a8140bb427"], "model.fsc_evm.streamline__token_reads_realtime": [], "model.fsc_evm.streamline__token_reads_complete": ["model.fsc_evm.streamline__token_reads_realtime"], "model.fsc_evm.bronze__token_reads_fr": ["model.fsc_evm.silver__contracts", "model.fsc_evm.streamline__token_reads_complete"], "model.fsc_evm.bronze__token_reads_fr_v2": ["model.fsc_evm.bronze__token_reads_fr"], "model.fsc_evm.bronze__token_reads": ["model.fsc_evm.silver__contracts", "model.fsc_evm.streamline__token_reads_complete"], "model.fsc_evm.bronze_api__token_reads": ["model.fsc_evm.bronze__token_reads_fr"], "model.fsc_evm.silver__complete_provider_asset_metadata": ["model.fsc_evm.price__dim_asset_metadata", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_provider_asset_metadata_ASSET_ID__TOKEN_ADDRESS__NAME__SYMBOL__PLATFORM__PLATFORM_ID__PROVIDER.e355e7b6b2", "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_ASSET_ID.b4b221e9f2", "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_MODIFIED_TIMESTAMP.47fee02027", "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_PROVIDER.b0c689d31b", "test.fsc_evm.unique_silver__complete_provider_asset_metadata_COMPLETE_PROVIDER_ASSET_METADATA_ID.945e90b882"], "model.fsc_evm.silver__complete_native_asset_metadata": ["model.fsc_evm.price__ez_asset_metadata", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_native_asset_metadata_SYMBOL.6c5f561373", "test.fsc_evm.not_null_silver__complete_native_asset_metadata_BLOCKCHAIN.fea8f73c16", "test.fsc_evm.not_null_silver__complete_native_asset_metadata_MODIFIED_TIMESTAMP.c6bcef6cb9", "test.fsc_evm.not_null_silver__complete_native_asset_metadata_PROVIDER.2f310e1236", "test.fsc_evm.not_null_silver__complete_native_asset_metadata_SYMBOL.ff109ff1ee", "test.fsc_evm.unique_silver__complete_native_asset_metadata_COMPLETE_NATIVE_ASSET_METADATA_ID.d98ec00bc9"], "model.fsc_evm.silver__complete_provider_prices": ["model.fsc_evm.price__fact_prices_ohlc_hourly", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_provider_prices_ASSET_ID__RECORDED_HOUR__PROVIDER.6e3c3ab2b1", "test.fsc_evm.not_null_silver__complete_provider_prices_ASSET_ID.a10e7dad30", "test.fsc_evm.not_null_silver__complete_provider_prices_MODIFIED_TIMESTAMP.b205ba003b", "test.fsc_evm.not_null_silver__complete_provider_prices_PROVIDER.982c1dc287", "test.fsc_evm.not_null_silver__complete_provider_prices_RECORDED_HOUR.73c3cfdf0d", "test.fsc_evm.unique_silver__complete_provider_prices_COMPLETE_PROVIDER_PRICES_ID.52bf8dd406"], "model.fsc_evm.silver__complete_native_prices": ["model.fsc_evm.price__ez_prices_hourly", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_native_prices_HOUR__SYMBOL.9742f3d916", "test.fsc_evm.not_null_silver__complete_native_prices_BLOCKCHAIN.3557f90197", "test.fsc_evm.not_null_silver__complete_native_prices_HOUR.84672fd317", "test.fsc_evm.not_null_silver__complete_native_prices_IS_IMPUTED.9b41704925", "test.fsc_evm.not_null_silver__complete_native_prices_MODIFIED_TIMESTAMP.595acedfe2", "test.fsc_evm.not_null_silver__complete_native_prices_PRICE.5d22b3dfe0", "test.fsc_evm.not_null_silver__complete_native_prices_PROVIDER.391be2433a", "test.fsc_evm.not_null_silver__complete_native_prices_SYMBOL.640aa16109", "test.fsc_evm.not_null_silver__complete_native_prices__INSERTED_TIMESTAMP.030d747f3c", "test.fsc_evm.unique_silver__complete_native_prices_COMPLETE_NATIVE_PRICES_ID.6e5981548b"], "model.fsc_evm.silver__complete_token_prices": ["model.fsc_evm.price__ez_prices_hourly", "model.fsc_evm.silver_lending__complete_lending_borrows", "model.fsc_evm.silver_lending__complete_lending_deposits", "model.fsc_evm.silver_lending__complete_lending_flashloans", "model.fsc_evm.silver_lending__complete_lending_liquidations", "model.fsc_evm.silver_lending__complete_lending_repayments", "model.fsc_evm.silver_lending__complete_lending_withdraws", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_token_prices_HOUR__TOKEN_ADDRESS__BLOCKCHAIN.dde8fc55cf", "test.fsc_evm.not_null_silver__complete_token_prices_BLOCKCHAIN.ada1620192", "test.fsc_evm.not_null_silver__complete_token_prices_BLOCKCHAIN_ID.6aac0fa10e", "test.fsc_evm.not_null_silver__complete_token_prices_HOUR.d5f4cd597b", "test.fsc_evm.not_null_silver__complete_token_prices_IS_IMPUTED.8a84f91c9e", "test.fsc_evm.not_null_silver__complete_token_prices_MODIFIED_TIMESTAMP.74882978f6", "test.fsc_evm.not_null_silver__complete_token_prices_PRICE.9b78fa1dae", "test.fsc_evm.not_null_silver__complete_token_prices_PROVIDER.d7e55cb9a3", "test.fsc_evm.not_null_silver__complete_token_prices_TOKEN_ADDRESS.7e03ade9df", "test.fsc_evm.not_null_silver__complete_token_prices__INSERTED_TIMESTAMP.90a2d67d90", "test.fsc_evm.unique_silver__complete_token_prices_COMPLETE_TOKEN_PRICES_ID.c4ea6e2a79"], "model.fsc_evm.silver__complete_token_asset_metadata": ["model.fsc_evm.price__ez_asset_metadata", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_token_asset_metadata_TOKEN_ADDRESS__BLOCKCHAIN.d3d6b2a62b", "test.fsc_evm.not_null_silver__complete_token_asset_metadata_BLOCKCHAIN.3791975c91", "test.fsc_evm.not_null_silver__complete_token_asset_metadata_BLOCKCHAIN_ID.fe8350a322", "test.fsc_evm.not_null_silver__complete_token_asset_metadata_MODIFIED_TIMESTAMP.58ef7db480", "test.fsc_evm.not_null_silver__complete_token_asset_metadata_PROVIDER.0d1d2c6852", "test.fsc_evm.not_null_silver__complete_token_asset_metadata_TOKEN_ADDRESS.06a52e0e67", "test.fsc_evm.unique_silver__complete_token_asset_metadata_COMPLETE_TOKEN_ASSET_METADATA_ID.99f9227588"], "model.fsc_evm.price__dim_asset_metadata": [], "model.fsc_evm.price__fact_prices_ohlc_hourly": [], "model.fsc_evm.price__ez_asset_metadata": ["model.fsc_evm.balances__ez_balances_erc20_daily", "model.fsc_evm.core__ez_token_transfers", "model.fsc_evm.defi__dim_stablecoins", "model.fsc_evm.scores__actions", "model.fsc_evm.silver__balances_erc20_daily", "model.fsc_evm.silver__stablecoin_reads", "model.fsc_evm.silver_bridge__complete_bridge_activity", "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions", "model.fsc_evm.silver_dex__complete_dex_swaps", "model.fsc_evm.silver_stablecoins__address_blacklist", "model.fsc_evm.silver_stablecoins__mint_burn", "model.fsc_evm.silver_stablecoins__supply_by_address", "model.fsc_evm.silver_stablecoins__supply_by_address_imputed", "model.fsc_evm.silver_stablecoins__supply_complete", "model.fsc_evm.silver_stablecoins__supply_contracts", "model.fsc_evm.silver_stablecoins__supply_contracts_list", "model.fsc_evm.silver_stablecoins__transfers", "model.fsc_evm.streamline__balances_erc20_daily_records", "test.fsc_evm.fsc_evm_missing_balance_slots_silver__balance_slots_.86886d322f"], "model.fsc_evm.price__ez_prices_hourly": ["model.fsc_evm.balances__ez_balances_erc20_daily", "model.fsc_evm.balances__ez_balances_native_daily", "model.fsc_evm.core__ez_native_transfers", "model.fsc_evm.core__ez_token_transfers", "model.fsc_evm.silver_bridge__complete_bridge_activity", "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions", "model.fsc_evm.silver_dex__complete_dex_swaps", "model.fsc_evm.silver_lending__complete_lending_borrows", "model.fsc_evm.silver_lending__complete_lending_deposits", "model.fsc_evm.silver_lending__complete_lending_flashloans", "model.fsc_evm.silver_lending__complete_lending_liquidations", "model.fsc_evm.silver_lending__complete_lending_repayments", "model.fsc_evm.silver_lending__complete_lending_withdraws", "model.fsc_evm.stats__ez_core_metrics_hourly", "model.polygon_models.silver__complete_nft_sales"], "model.fsc_evm.bronze__complete_provider_asset_metadata": ["model.fsc_evm.silver__complete_provider_asset_metadata", "model.fsc_evm.silver__complete_provider_prices"], "model.fsc_evm.bronze__complete_native_asset_metadata": ["model.fsc_evm.silver__complete_native_asset_metadata"], "model.fsc_evm.bronze__complete_token_prices": ["model.fsc_evm.silver__complete_token_prices"], "model.fsc_evm.bronze__complete_token_asset_metadata": ["model.fsc_evm.silver__complete_token_asset_metadata"], "model.fsc_evm.bronze__complete_native_prices": ["model.fsc_evm.silver__complete_native_prices"], "model.fsc_evm.bronze__complete_provider_prices": ["model.fsc_evm.silver__complete_provider_prices"], "model.fsc_evm.silver_bridge__complete_bridge_activity": ["model.fsc_evm.defi__ez_bridge_activity", "test.fsc_evm.curated_recency_defi_silver_bridge__complete_bridge_activity_bridge.a2b41e22b2", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS__0_xX_0_9a_fA_F_.25648fcf6b", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_RECEIVER__0_xX_0_9a_fA_F_.2465acf0d7", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_SENDER__0_xX_0_9a_fA_F_.45e7cc2df2", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.fc73bfce91", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_TX_HASH__0_xX_0_9a_fA_F_.eea93a120e", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_bridge__complete_bridge_activity_MODIFIED_TIMESTAMP__day__3.1fb2addfd1", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__complete_bridge_activity__ID.3d98f8a8be", "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_AMOUNT_UNADJ.f05776f272", "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BLOCK_NUMBER.d8e5a4d173", "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BLOCK_TIMESTAMP.27eecb602c", "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS.fb3df4392d", "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_DESTINATION_CHAIN_RECEIVER.73ef2ee307", "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_PLATFORM.2c7a290a2a", "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_PROTOCOL.a6cfc199ee", "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_RECEIVER.a37b06afd8", "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_SENDER.64ca378992", "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS.07fa5639c8", "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TX_HASH.befc121de7", "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TYPE.37341141f3", "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_VERSION.7818ca0d4e"], "model.fsc_evm.silver_bridge__across_v3fundsdeposited": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__across_fundsdeposited": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__synapse_tokenbridgeandswap": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__synapse_token_bridge": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__meson_transfers": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__everclear": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__everclear_reads": ["model.fsc_evm.silver_bridge__everclear", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__everclear_reads_INTENT_ID.0dee46a33d", "test.fsc_evm.not_null_silver_bridge__everclear_reads_DESTINATION_CHAIN_ID.708d1c3ec8", "test.fsc_evm.not_null_silver_bridge__everclear_reads_INTENT_ID.86864cebca", "test.fsc_evm.not_null_silver_bridge__everclear_reads_OUTPUT_ASSET.506d895537", "test.fsc_evm.not_null_silver_bridge__everclear_reads_STATUS.25271faad7"], "model.fsc_evm.silver_bridge__everclear_intent_added": ["model.fsc_evm.silver_bridge__everclear", "model.fsc_evm.silver_bridge__everclear_reads"], "model.fsc_evm.silver_bridge__hop_transfersent": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__hop_l2canonicaltoken": ["model.fsc_evm.silver_bridge__hop_transfersent", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.804453d554", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_l2canonicaltoken_CONTRACT_ADDRESS.b7a0e00f9b", "test.fsc_evm.not_null_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS.ec64401112"], "model.fsc_evm.silver_bridge__hop_ammwrapper": ["model.fsc_evm.silver_bridge__hop_l2canonicaltoken", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS__0_xX_0_9a_fA_F_.84556e1744", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_ammwrapper_CONTRACT_ADDRESS.aea7fc3d3b", "test.fsc_evm.not_null_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS.b245762efd"], "model.fsc_evm.silver_bridge__hop_transfersenttol2": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__hop_l1canonicaltoken": ["model.fsc_evm.silver_bridge__hop_transfersenttol2", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.23850b9de7", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_l1canonicaltoken_CONTRACT_ADDRESS.1a0299fdf6", "test.fsc_evm.not_null_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS.e94f2ba3f9"], "model.fsc_evm.silver_bridge__gaszip_lz_sentdeposits": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__hyperliquid": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__symbiosis_synthesizerequest": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__multichain_v7_loganyswapout": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__stargate_createpool": ["model.fsc_evm.silver_bridge__stargate_swap", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__stargate_createpool_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.9b63c4ca5e", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__stargate_createpool_POOL_ADDRESS.9e0053c2c5", "test.fsc_evm.not_null_silver_bridge__stargate_createpool_TOKEN_ADDRESS.02394ab2ae"], "model.fsc_evm.silver_bridge__stargate_v2_busrode": ["model.fsc_evm.silver_bridge__stargate_v2_busdriven"], "model.fsc_evm.silver_bridge__stargate_v2_busdriven": ["model.fsc_evm.silver_bridge__stargate_v2"], "model.fsc_evm.silver_bridge__stargate_swap": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__stargate_v2_oft": ["model.fsc_evm.silver_bridge__stargate_v2"], "model.fsc_evm.silver_bridge__stargate_v2": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__dln_debridge_createdorder": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__ccip_send_requested": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__ccip_on_ramp_address": ["model.fsc_evm.silver_bridge__ccip_send_requested"], "model.fsc_evm.silver_bridge__allbridge_sent": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__allbridge_tokens_sent": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__eywa_requestsent": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__axelar_contractcallwithtoken": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__layerzero_v2_token_reads": ["model.fsc_evm.silver_bridge__layerzero_v2", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__layerzero_v2_token_reads_CONTRACT_ADDRESS.cbdeb639b6"], "model.fsc_evm.silver_bridge__layerzero_v2": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__layerzero_v2_packet": ["model.fsc_evm.silver_bridge__layerzero_v2", "model.fsc_evm.silver_bridge__stargate_v2_busdriven", "model.fsc_evm.silver_bridge__stargate_v2_oft"], "model.fsc_evm.silver_bridge__axie_infinity_depositrequested": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__polygon_pos_bridge": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__polygon_pos_contracts": ["model.fsc_evm.silver_bridge__polygon_pos_bridge"], "model.fsc_evm.silver_bridge__avalanche_native_v2": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__superchain_l2_standard_bridge": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__ethereum_native_bridges_transfers_out": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__core_bridge_unwraptoken": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__celer_cbridge_send": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__wormhole_transfers": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__cctp_v2_depositforburn": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.silver_bridge__cctp_depositforburn": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "model.fsc_evm.defi__ez_bridge_activity": ["model.fsc_evm.silver_stablecoins__supply_contracts_list"], "model.fsc_evm.silver__stablecoin_reads": ["model.fsc_evm.silver_stablecoins__supply_complete", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__stablecoin_reads_stablecoin_reads_id.ee158051a5"], "model.fsc_evm.streamline__stablecoin_reads_realtime": [], "model.fsc_evm.streamline__stablecoin_reads_complete": ["model.fsc_evm.streamline__stablecoin_reads_history", "model.fsc_evm.streamline__stablecoin_reads_realtime"], "model.fsc_evm.streamline__stablecoin_reads_history": [], "model.fsc_evm.bronze__stablecoin_reads": ["model.fsc_evm.silver__stablecoin_reads", "model.fsc_evm.streamline__stablecoin_reads_complete"], "model.fsc_evm.bronze__stablecoin_reads_fr": ["model.fsc_evm.silver__stablecoin_reads", "model.fsc_evm.streamline__stablecoin_reads_complete"], "model.fsc_evm.silver_stablecoins__mint_burn": ["model.fsc_evm.silver_stablecoins__supply_complete", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__mint_burn_stablecoins_mint_burn_id.2ec1abace1"], "model.fsc_evm.silver_stablecoins__supply_complete": ["model.fsc_evm.defi__ez_stablecoins_supply", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_complete_BLOCK_DATE__day__2.b3d5b9ee35", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_complete_MODIFIED_TIMESTAMP__day__1.9995e5dcd1", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_complete_stablecoins_supply_complete_id.7db1f368e4", "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_BLACKLISTED.4950715b85", "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_BURNED.0c51968320", "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_BRIDGES.ff0025ecd7", "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_CEX.e2827b3341", "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_CONTRACTS.4bf4ba9824", "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_DEX_LIQUIDITY_POOLS.25808a6407", "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_LENDING_POOLS.d8292a8a7e", "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_MINTED.0638b516b5", "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_TRANSFERRED.97c658f5c2", "test.fsc_evm.not_null_silver_stablecoins__supply_complete_BLOCK_DATE.ed7dfaf66b", "test.fsc_evm.not_null_silver_stablecoins__supply_complete_CONTRACT_ADDRESS.664480f344", "test.fsc_evm.not_null_silver_stablecoins__supply_complete_DECIMALS.5a014a45ab", "test.fsc_evm.not_null_silver_stablecoins__supply_complete_INSERTED_TIMESTAMP.de284952d2", "test.fsc_evm.not_null_silver_stablecoins__supply_complete_MODIFIED_TIMESTAMP.007e68c2c3", "test.fsc_evm.not_null_silver_stablecoins__supply_complete_NAME.6a279f0ecb", "test.fsc_evm.not_null_silver_stablecoins__supply_complete_STABLECOINS_SUPPLY_COMPLETE_ID.996719e8a7", "test.fsc_evm.not_null_silver_stablecoins__supply_complete_SYMBOL.e0e7468746", "test.fsc_evm.not_null_silver_stablecoins__supply_complete_TOTAL_SUPPLY.2fbe775ba2"], "model.fsc_evm.silver_stablecoins__transfers": ["model.fsc_evm.silver_stablecoins__supply_complete", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__transfers_stablecoins_transfers_id.f9414fd971"], "model.fsc_evm.silver_stablecoins__supply_contracts": ["model.fsc_evm.silver_stablecoins__supply_complete", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_contracts_stablecoins_supply_contracts_id.a378bd36a0"], "model.fsc_evm.silver_stablecoins__address_blacklist": ["model.fsc_evm.silver_stablecoins__supply_complete", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__address_blacklist_stablecoins_address_blacklist_id.007b38ff2a"], "model.fsc_evm.silver_stablecoins__supply_contracts_list": ["model.fsc_evm.silver_stablecoins__supply_contracts", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_contracts_list_stablecoins_supply_contracts_list_id.973738f72f", "test.fsc_evm.not_null_silver_stablecoins__supply_contracts_list_ADDRESS.de076cd955", "test.fsc_evm.not_null_silver_stablecoins__supply_contracts_list_CONTRACT_TYPE.b41e882fd8"], "model.fsc_evm.silver_stablecoins__supply_by_address_imputed": ["model.fsc_evm.silver_stablecoins__supply_complete", "model.fsc_evm.silver_stablecoins__supply_contracts", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_stablecoins__supply_by_address_imputed_ADDRESS__0_xX_0_9a_fA_F_.574260a865", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_stablecoins__supply_by_address_imputed_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.3453b3e118", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_by_address_imputed_BLOCK_DATE__day__2.99639b993f", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_by_address_imputed_MODIFIED_TIMESTAMP__day__1.830f5971c9", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_by_address_imputed_stablecoins_supply_by_address_imputed_id.b6861618a0", "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_ADDRESS.e5bb6dbc9b", "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_BALANCE.c6c3131107", "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_BLOCK_DATE.b46d73803f", "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_CONTRACT_ADDRESS.a15a535fb3", "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_IS_IMPUTED.ec0da0785e", "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_MODIFIED_TIMESTAMP.b90ac8efba", "test.fsc_evm.stablecoins_date_gaps_silver_stablecoins__supply_by_address_imputed_.dcbef61e36", "test.fsc_evm.stablecoins_is_imputed_false_silver_stablecoins__supply_by_address_imputed_.59751490c5"], "model.fsc_evm.silver_stablecoins__supply_by_address": ["model.fsc_evm.silver_stablecoins__mint_burn", "model.fsc_evm.silver_stablecoins__supply_by_address_imputed", "model.fsc_evm.silver_stablecoins__transfers", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_by_address_stablecoins_supply_by_address_id.0a3c5366e4"], "model.fsc_evm.defi__ez_stablecoins_supply": [], "model.fsc_evm.defi__dim_stablecoins": ["model.fsc_evm.silver_stablecoins__address_blacklist", "model.fsc_evm.silver_stablecoins__mint_burn", "model.fsc_evm.silver_stablecoins__supply_by_address", "model.fsc_evm.silver_stablecoins__supply_complete", "model.fsc_evm.silver_stablecoins__transfers", "model.fsc_evm.streamline__stablecoin_reads_history", "model.fsc_evm.streamline__stablecoin_reads_realtime", "test.fsc_evm.dbt_utils_unique_combination_of_columns_defi__dim_stablecoins_dim_stablecoins_id.a7f96dedfc", "test.fsc_evm.not_null_defi__dim_stablecoins_CONTRACT_ADDRESS.6d61399207", "test.fsc_evm.not_null_defi__dim_stablecoins_DECIMALS.121acb907b", "test.fsc_evm.not_null_defi__dim_stablecoins_IS_VERIFIED.0b8de40713", "test.fsc_evm.not_null_defi__dim_stablecoins_LABEL.b477c86b09", "test.fsc_evm.not_null_defi__dim_stablecoins_NAME.b868d0a1a6", "test.fsc_evm.not_null_defi__dim_stablecoins_SYMBOL.5791bb4cff"], "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions": ["model.fsc_evm.defi__ez_dex_liquidity_pool_actions", "test.fsc_evm.curated_recency_defi_silver_dex__complete_dex_liquidity_pool_actions_dex_lp_actions.362cf81572", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pool_actions_POOL_ADDRESS__0_xX_0_9a_fA_F_.77b6c92f58", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP__day__3.7ae7a49b3e", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_liquidity_pool_actions__ID.ddef6289c9", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS.c774024072", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS_UNADJ.bdfa9321f4", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS_USD.a60fa0a531", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_BLOCK_NUMBER.3cc45619ac", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_BLOCK_TIMESTAMP.1cad889870", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_DECIMALS.fde79b4576", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_EVENT_INDEX.83e4f1880e", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_EVENT_NAME.52809d123e", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER.db4674616c", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP.f31fa88748", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_PLATFORM.129bb6aeb5", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_POOL_ADDRESS.8eeb6ff26e", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_PROTOCOL.c9300839eb", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_RECEIVER.465bf44ee5", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_SENDER.2834260b51", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_SYMBOLS.34cfc0a3e6", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS.fd4087fc87", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS_IS_VERIFIED.d38e3bdb59", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TX_HASH.44650e24c5", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TYPE.40d8e6018e", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_VERSION.b6b10368ee"], "model.fsc_evm.silver_dex__complete_dex_swaps": ["model.fsc_evm.defi__ez_dex_swaps", "test.fsc_evm.curated_recency_defi_silver_dex__complete_dex_swaps_dex_swaps.5916f6c88e", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.be6db6029d", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_SENDER__0_xX_0_9a_fA_F_.58a39f68d2", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TOKEN_IN__0_xX_0_9a_fA_F_.790e194383", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TOKEN_OUT__0_xX_0_9a_fA_F_.ae14302936", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TX_HASH__0_xX_0_9a_fA_F_.f7c909191d", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TX_TO__0_xX_0_9a_fA_F_.03c82421e1", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP__day__3.ecc8ffb7ad", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_swaps__LOG_ID.ba65a2d85c", "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_AMOUNT_IN.3df36cb722", "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_AMOUNT_OUT.d33197318a", "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_BLOCK_NUMBER.17ae3af028", "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_BLOCK_TIMESTAMP.16acbec13e", "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS.8c4b42fef8", "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP.4c29ced501", "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_PLATFORM.be3e105587", "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_PROTOCOL.3df038aacb", "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TX_HASH.338d50a54c", "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TX_TO.2085271b93", "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TYPE.c008585f12", "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_VERSION.302623d7a3"], "model.fsc_evm.silver_dex__complete_dex_liquidity_pools": ["model.fsc_evm.defi__dim_dex_liquidity_pools", "model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions", "model.fsc_evm.silver_dex__complete_dex_swaps", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pools_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.dc69988db3", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS__0_xX_0_9a_fA_F_.531aeb2798", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_liquidity_pools_MODIFIED_TIMESTAMP__day__30.3fd9adc88e", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_liquidity_pools__ID.b4429d9fea", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_NUMBER.5b1552ab5e", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_TIMESTAMP.b982bd6907", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_CONTRACT_ADDRESS.52ef84763a", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_MODIFIED_TIMESTAMP.d34d6a1858", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_PLATFORM.dfa0956636", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS.03eefde7c0", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_PROTOCOL.a63c90c2a0", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_TX_HASH.92b7a24d0d", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_TYPE.41453fccf7", "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_VERSION.5eef91934c"], "model.fsc_evm.silver_dex__balancer_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__balancer_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__balancer_pools": ["model.fsc_evm.silver_dex__balancer_pool_actions", "model.fsc_evm.silver_dex__balancer_swaps", "model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__balancer_pools_POOL_ADDRESS.2719d33e20"], "model.fsc_evm.silver_dex__hashflow_v3_pools": ["model.fsc_evm.silver_dex__hashflow_v3_swaps"], "model.fsc_evm.silver_dex__hashflow_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__hashflow_v3_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__hashflow_pools": ["model.fsc_evm.silver_dex__hashflow_swaps"], "model.fsc_evm.silver_dex__trader_joe_v2_1_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__trader_joe_v2_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__trader_joe_v2_1_swaps", "model.fsc_evm.silver_dex__trader_joe_v2_pool_actions", "model.fsc_evm.silver_dex__trader_joe_v2_swaps"], "model.fsc_evm.silver_dex__trader_joe_v2_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__trader_joe_v2_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__superchain_slipstream_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__superchain_slipstream_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__superchain_slipstream_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__superchain_slipstream_pool_actions", "model.fsc_evm.silver_dex__superchain_slipstream_swaps"], "model.fsc_evm.silver_dex__pancakeswap_v3_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__pancakeswap_v3_pool_actions", "model.fsc_evm.silver_dex__pancakeswap_v3_swaps"], "model.fsc_evm.silver_dex__pancakeswap_v2_ss_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__pancakeswap_v2_ss_swaps"], "model.fsc_evm.silver_dex__pancakeswap_v3_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__pancakeswap_v2_mm_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__pancakeswap_v3_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__pancakeswap_v2_ss_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__gmx_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__gmx_v2_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__velodrome_v1_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__velodrome_v2_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__velodrome_v1_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__velodrome_v1_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__velodrome_v1_pool_actions", "model.fsc_evm.silver_dex__velodrome_v1_swaps"], "model.fsc_evm.silver_dex__velodrome_v2_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__velodrome_v2_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__velodrome_v2_pool_actions", "model.fsc_evm.silver_dex__velodrome_v2_swaps"], "model.fsc_evm.silver_dex__pharaoh_v1_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__pharaoh_v1_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__pharaoh_v1_pool_actions", "model.fsc_evm.silver_dex__pharaoh_v1_swaps"], "model.fsc_evm.silver_dex__pharaoh_v1_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__dackie_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__dackie_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__dackie_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__dackie_pool_actions", "model.fsc_evm.silver_dex__dackie_swaps"], "model.fsc_evm.silver_dex__curve_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__curve_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__curve_pool_actions", "model.fsc_evm.silver_dex__curve_swaps", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__curve_pools_POOL_ADDRESS__0_xX_0_9a_fA_F_.185fa9348a", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__curve_pools_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.7ffaec64f4", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__curve_pools_POOL_ID.16e66dab1a", "test.fsc_evm.not_null_silver_dex__curve_pools_POOL_ADDRESS.d71b87d177", "test.fsc_evm.not_null_silver_dex__curve_pools_TOKEN_ADDRESS.27eb2fea68"], "model.fsc_evm.silver_dex__curve_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__zyberswap_v2_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__zyberswap_v2_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__zyberswap_v2_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__zyberswap_v2_pool_actions", "model.fsc_evm.silver_dex__zyberswap_v2_swaps"], "model.fsc_evm.silver_dex__aerodrome_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__aerodrome_pools": ["model.fsc_evm.silver_dex__aerodrome_pool_actions", "model.fsc_evm.silver_dex__aerodrome_swaps", "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"], "model.fsc_evm.silver_dex__aerodrome_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__paircreated_evt_v2_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__poolcreated_evt_v3_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__swap_evt_v2_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__paircreated_evt_v2_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__paircreated_evt_v2_pool_actions", "model.fsc_evm.silver_dex__swap_evt_v2_swaps"], "model.fsc_evm.silver_dex__swap_evt_v3_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__poolcreated_evt_v3_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__poolcreated_evt_v3_pool_actions", "model.fsc_evm.silver_dex__swap_evt_v3_swaps"], "model.fsc_evm.silver_dex__levelfi_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__synthetix_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__maverick_v2_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__maverick_v2_swaps"], "model.fsc_evm.silver_dex__maverick_v2_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__maverick_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__maverick_swaps"], "model.fsc_evm.silver_dex__maverick_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__sushiswap_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__sushiswap_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__sushiswap_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__sushiswap_pool_actions", "model.fsc_evm.silver_dex__sushiswap_swaps"], "model.fsc_evm.silver_dex__woofi_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__quickswap_v2_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__quickswap_v4_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__quickswap_v4_pool_actions", "model.fsc_evm.silver_dex__quickswap_v4_swaps"], "model.fsc_evm.silver_dex__quickswap_v2_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__quickswap_v2_pool_actions", "model.fsc_evm.silver_dex__quickswap_v2_swaps"], "model.fsc_evm.silver_dex__quickswap_v4_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__quickswap_v4_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__quickswap_v2_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__bitflux_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__bitflux_pools": ["model.fsc_evm.silver_dex__bitflux_swaps", "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"], "model.fsc_evm.silver_dex__platypus_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__platypus_pools": ["model.fsc_evm.silver_dex__platypus_swaps"], "model.fsc_evm.silver_dex__dodo_v1_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__dodo_v1_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__dodo_v1_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__dodo_v1_pool_actions", "model.fsc_evm.silver_dex__dodo_v1_swaps"], "model.fsc_evm.silver_dex__dodo_v2_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__dodo_v2_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__dodo_v2_swaps"], "model.fsc_evm.silver_dex__glyph_v4_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__glyph_v4_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__glyph_v4_swaps"], "model.fsc_evm.silver_dex__dexalot_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__kyberswap_v1_static_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__kyberswap_v1_static_swaps"], "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.silver_dex__kyberswap_v1_static_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__kyberswap_v2_elastic_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__kyberswap_v2_elastic_pool_actions", "model.fsc_evm.silver_dex__kyberswap_v2_elastic_swaps"], "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_pool_actions", "model.fsc_evm.silver_dex__kyberswap_v1_dynamic_swaps"], "model.fsc_evm.silver_dex__voodoo_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__uniswap_v4_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__uniswap_v4_pools": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pools", "model.fsc_evm.silver_dex__uniswap_v4_swaps"], "model.fsc_evm.silver_dex__camelot_v2_swaps": ["model.fsc_evm.silver_dex__complete_dex_swaps"], "model.fsc_evm.silver_dex__camelot_v2_pools": ["model.fsc_evm.silver_dex__camelot_v2_pool_actions", "model.fsc_evm.silver_dex__camelot_v2_swaps", "model.fsc_evm.silver_dex__complete_dex_liquidity_pools"], "model.fsc_evm.silver_dex__camelot_v2_pool_actions": ["model.fsc_evm.silver_dex__complete_dex_liquidity_pool_actions"], "model.fsc_evm.defi__ez_dex_swaps": [], "model.fsc_evm.defi__ez_dex_liquidity_pool_actions": ["test.fsc_evm.dbt_utils_unique_combination_of_columns_defi__ez_dex_liquidity_pool_actions_ez_dex_liquidity_pool_actions_id.83a111c26f", "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_AMOUNT_UNADJ.9e24d6b1ba", "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_BLOCK_TIMESTAMP.aa08bbc5bb", "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER.1b554aa4ee", "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_TOKEN_ADDRESS.f9d0db5e6d"], "model.fsc_evm.defi__dim_dex_liquidity_pools": ["model.fsc_evm.silver_stablecoins__supply_contracts_list"], "model.fsc_evm.silver_lending__morpho_repayments": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "model.fsc_evm.silver_lending__morpho_borrows": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "model.fsc_evm.silver_lending__morpho_flashloans": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "model.fsc_evm.silver_lending__morpho_deposits": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "model.fsc_evm.silver_lending__morpho_withdraws": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "model.fsc_evm.silver_lending__morpho_liquidations": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "model.fsc_evm.silver_lending__comp_v3_withdraws": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "model.fsc_evm.silver_lending__comp_v3_liquidations": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "model.fsc_evm.silver_lending__comp_v3_repayments": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "model.fsc_evm.silver_lending__comp_v3_borrows": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "model.fsc_evm.silver_lending__comp_v3_deposits": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "model.fsc_evm.silver_lending__comp_v3_asset_details": ["model.fsc_evm.silver_lending__comp_v3_borrows", "model.fsc_evm.silver_lending__comp_v3_deposits", "model.fsc_evm.silver_lending__comp_v3_liquidations", "model.fsc_evm.silver_lending__comp_v3_repayments", "model.fsc_evm.silver_lending__comp_v3_withdraws"], "model.fsc_evm.silver_lending__silo_repayments": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "model.fsc_evm.silver_lending__silo_pools": ["model.fsc_evm.silver_lending__silo_borrows", "model.fsc_evm.silver_lending__silo_deposits", "model.fsc_evm.silver_lending__silo_liquidations", "model.fsc_evm.silver_lending__silo_repayments", "model.fsc_evm.silver_lending__silo_withdraws"], "model.fsc_evm.silver_lending__silo_borrows": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "model.fsc_evm.silver_lending__silo_withdraws": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "model.fsc_evm.silver_lending__silo_liquidations": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "model.fsc_evm.silver_lending__silo_deposits": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "model.fsc_evm.silver_lending__fraxlend_deposits": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "model.fsc_evm.silver_lending__fraxlend_borrows": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "model.fsc_evm.silver_lending__fraxlend_repayments": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "model.fsc_evm.silver_lending__fraxlend_liquidations": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "model.fsc_evm.silver_lending__fraxlend_withdraws": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "model.fsc_evm.silver_lending__fraxlend_asset_details": ["model.fsc_evm.silver_lending__fraxlend_borrows", "model.fsc_evm.silver_lending__fraxlend_deposits", "model.fsc_evm.silver_lending__fraxlend_liquidations", "model.fsc_evm.silver_lending__fraxlend_repayments", "model.fsc_evm.silver_lending__fraxlend_withdraws"], "model.fsc_evm.silver_lending__aave_liquidations": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "model.fsc_evm.silver_lending__aave_ohlc_interest_rates": ["model.fsc_evm.defi__ez_lending_ohlc_rates"], "model.fsc_evm.silver_lending__aave_tokens": ["model.fsc_evm.silver_lending__aave_borrows", "model.fsc_evm.silver_lending__aave_deposits", "model.fsc_evm.silver_lending__aave_flashloans", "model.fsc_evm.silver_lending__aave_interest_rates", "model.fsc_evm.silver_lending__aave_liquidations", "model.fsc_evm.silver_lending__aave_repayments", "model.fsc_evm.silver_lending__aave_withdraws"], "model.fsc_evm.silver_lending__aave_borrows": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "model.fsc_evm.silver_lending__aave_flashloans": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "model.fsc_evm.silver_lending__aave_withdraws": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "model.fsc_evm.silver_lending__aave_repayments": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "model.fsc_evm.silver_lending__aave_deposits": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "model.fsc_evm.silver_lending__aave_interest_rates": ["model.fsc_evm.silver_lending__aave_ohlc_interest_rates"], "model.fsc_evm.silver_lending__euler_repayments": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "model.fsc_evm.silver_lending__euler_withdraws": ["model.fsc_evm.silver_lending__complete_lending_withdraws", "model.fsc_evm.silver_lending__euler_liquidations"], "model.fsc_evm.silver_lending__euler_tokens": ["model.fsc_evm.silver_lending__euler_borrows", "model.fsc_evm.silver_lending__euler_deposits", "model.fsc_evm.silver_lending__euler_liquidations", "model.fsc_evm.silver_lending__euler_repayments", "model.fsc_evm.silver_lending__euler_withdraws"], "model.fsc_evm.silver_lending__euler_deposits": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "model.fsc_evm.silver_lending__euler_borrows": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "model.fsc_evm.silver_lending__euler_liquidations": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "model.fsc_evm.silver_lending__aave_ethereum_flashloans": ["model.fsc_evm.silver_lending__complete_lending_flashloans"], "model.fsc_evm.silver_lending__aave_ethereum_withdraws": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "model.fsc_evm.silver_lending__aave_ethereum_liquidations": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "model.fsc_evm.silver_lending__aave_ethereum_deposits": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "model.fsc_evm.silver_lending__aave_ethereum_tokens": ["model.fsc_evm.silver_lending__aave_ethereum_borrows", "model.fsc_evm.silver_lending__aave_ethereum_deposits", "model.fsc_evm.silver_lending__aave_ethereum_flashloans", "model.fsc_evm.silver_lending__aave_ethereum_liquidations", "model.fsc_evm.silver_lending__aave_ethereum_repayments", "model.fsc_evm.silver_lending__aave_ethereum_withdraws", "model.fsc_evm.silver_lending__aave_interest_rates"], "model.fsc_evm.silver_lending__aave_ethereum_borrows": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "model.fsc_evm.silver_lending__aave_ethereum_repayments": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "model.fsc_evm.silver_lending__comp_v2_repayments": ["model.fsc_evm.silver_lending__complete_lending_repayments"], "model.fsc_evm.silver_lending__comp_v2_liquidations": ["model.fsc_evm.silver_lending__complete_lending_liquidations"], "model.fsc_evm.silver_lending__comp_v2_asset_details": ["model.fsc_evm.silver_lending__comp_v2_borrows", "model.fsc_evm.silver_lending__comp_v2_deposits", "model.fsc_evm.silver_lending__comp_v2_liquidations", "model.fsc_evm.silver_lending__comp_v2_repayments", "model.fsc_evm.silver_lending__comp_v2_withdraws"], "model.fsc_evm.silver_lending__comp_v2_withdraws": ["model.fsc_evm.silver_lending__complete_lending_withdraws"], "model.fsc_evm.silver_lending__comp_v2_borrows": ["model.fsc_evm.silver_lending__complete_lending_borrows"], "model.fsc_evm.silver_lending__comp_v2_deposits": ["model.fsc_evm.silver_lending__complete_lending_deposits"], "model.fsc_evm.silver_lending__complete_lending_liquidations": ["model.fsc_evm.defi__ez_lending_liquidations", "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_liquidations_7_5__90__lending.9c7fe9d27d", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_liquidations_BLOCK_TIMESTAMP__day__30.161c04de84", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_liquidations__LOG_ID.7cbbbc2f23", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BLOCK_NUMBER.15a69776e9", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BLOCK_TIMESTAMP.c70c659e0d", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BORROWER.38440419c2", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COLLATERAL_TOKEN.3c78777798", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COLLATERAL_TOKEN_SYMBOL.d8f85827c6", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COMPLETE_LENDING_LIQUIDATIONS_ID.69cd6455c6", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_CONTRACT_ADDRESS.808d802f1a", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_DEBT_TOKEN.378987156e", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_DEBT_TOKEN_SYMBOL.31aa114cf8", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_EVENT_INDEX.84fd3e9ae9", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_EVENT_NAME.5630b24be5", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_INSERTED_TIMESTAMP.9b2342b392", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATED_AMOUNT.295ac3ed83", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATED_AMOUNT_UNADJ.23b2f7c305", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATOR.32624d91f1", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_MODIFIED_TIMESTAMP.8c86e0f317", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_ORIGIN_FROM_ADDRESS.192f3d0364", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_ORIGIN_FUNCTION_SIGNATURE.140b44b00f", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PLATFORM.80ec31452a", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PROTOCOL.16dcb68655", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PROTOCOL_MARKET.6f332e4392", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_TX_HASH.bce1515589", "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_VERSION.927431b428"], "model.fsc_evm.silver_lending__complete_lending_borrows": ["model.fsc_evm.defi__ez_lending_borrows", "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_borrows_7_5__60__lending.bd75ba3a44", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_borrows_AMOUNT_USD__decimal__float.647d646b83", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_borrows_BLOCK_TIMESTAMP__day__3.91c4dcedc7", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_borrows__log_id.2a9a480e32", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_AMOUNT.e580c2d507", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_AMOUNT_UNADJ.7747f27c90", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BLOCK_NUMBER.09147e3ec0", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BLOCK_TIMESTAMP.d5aef20d26", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BORROWER.887a479a91", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_COMPLETE_LENDING_BORROWS_ID.c10561dd4e", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_CONTRACT_ADDRESS.c32c5ad863", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_EVENT_INDEX.702306f3d9", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_EVENT_NAME.c17f59a2a8", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_INSERTED_TIMESTAMP.8c1b12d962", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_MODIFIED_TIMESTAMP.4e7d059a7d", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_ORIGIN_FROM_ADDRESS.3c02ef2628", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_ORIGIN_FUNCTION_SIGNATURE.b43268ea6c", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PLATFORM.f7ad06b21d", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PROTOCOL.258dc320a7", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PROTOCOL_MARKET.2cdfbbc5f5", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TOKEN_ADDRESS.d31d215fbe", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TOKEN_SYMBOL.d074b06159", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TX_HASH.63627cc126", "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_VERSION.bb6550ca9c"], "model.fsc_evm.silver_lending__complete_lending_flashloans": ["model.fsc_evm.defi__ez_lending_flashloans", "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_flashloans_7_5__60__lending.1d85b045e9", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_flashloans_BLOCK_TIMESTAMP__day__14.c97c4e6a21", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_flashloans__LOG_ID.b5e2ccc546", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_BLOCK_NUMBER.2c9a0f6061", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_BLOCK_TIMESTAMP.1a905291e9", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_COMPLETE_LENDING_FLASHLOANS_ID.f37672ef97", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_CONTRACT_ADDRESS.d2763e9c60", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_EVENT_INDEX.d256b8467f", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_EVENT_NAME.36bdd6ecae", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_FLASHLOAN_AMOUNT.feaeeedf41", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_FLASHLOAN_AMOUNT_UNADJ.50ea108e62", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_INITIATOR.bb1dc79f33", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_INSERTED_TIMESTAMP.a267ad91be", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_MODIFIED_TIMESTAMP.c7ad718c6f", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_ORIGIN_FROM_ADDRESS.9104eb297b", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_ORIGIN_FUNCTION_SIGNATURE.8ad33ea363", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PLATFORM.56c21f121c", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PREMIUM_AMOUNT.e9f3cbad34", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PREMIUM_AMOUNT_UNADJ.9afaa927d7", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PROTOCOL.a5f672795f", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PROTOCOL_MARKET.fba78b0f77", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TARGET.f29f9844aa", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TOKEN_ADDRESS.cfb727a837", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TOKEN_SYMBOL.893469d047", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TX_HASH.d3201d95e2", "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_VERSION.46458e3611"], "model.fsc_evm.silver_lending__complete_lending_deposits": ["model.fsc_evm.defi__ez_lending_deposits", "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_deposits_7_5__60__lending.f47558e889", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_deposits_AMOUNT_USD__decimal__float.1e0c6d9d32", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_deposits_BLOCK_TIMESTAMP__day__3.b5e1187f23", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_deposits__LOG_ID.81d0e3df59", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_AMOUNT.dd3698ee3b", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_AMOUNT_UNADJ.08e5e86a62", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_BLOCK_NUMBER.764f80cddc", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_BLOCK_TIMESTAMP.4ee6d5cde6", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_COMPLETE_LENDING_DEPOSITS_ID.f63e8f436e", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_CONTRACT_ADDRESS.7df8e73c73", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_DEPOSITOR.1491427a24", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_EVENT_INDEX.af4200573a", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_EVENT_NAME.074448c2ba", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_INSERTED_TIMESTAMP.481e29ad06", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_MODIFIED_TIMESTAMP.316ea9612f", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_ORIGIN_FROM_ADDRESS.2d42cefc88", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_ORIGIN_FUNCTION_SIGNATURE.4f15a4f4b6", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PLATFORM.e82777c8c0", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PROTOCOL.6cf1f64077", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PROTOCOL_MARKET.f548930cd7", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TOKEN_ADDRESS.87dd541bc0", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TOKEN_SYMBOL.63347a63f2", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TX_HASH.1770f89dd4", "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_VERSION.eade855a3f"], "model.fsc_evm.silver_lending__complete_lending_repayments": ["model.fsc_evm.defi__ez_lending_repayments", "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_repayments_7_5__60__lending.dc63c75a4a", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_repayments_AMOUNT_USD__decimal__float.3538351555", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_repayments_BLOCK_TIMESTAMP__day__3.1330d20e3b", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_repayments__LOG_ID.dade94b28d", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_AMOUNT.1c26a3f24d", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_AMOUNT_UNADJ.c408d0ba21", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BLOCK_NUMBER.3b1396e922", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BLOCK_TIMESTAMP.dadda51bf9", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BORROWER.067b19b1ce", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_COMPLETE_LENDING_REPAYMENTS_ID.fa12632511", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_CONTRACT_ADDRESS.e8659c0cd4", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_EVENT_INDEX.b08f854af1", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_EVENT_NAME.17e71ddee7", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_INSERTED_TIMESTAMP.3f4ae6523c", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_MODIFIED_TIMESTAMP.3b537129ff", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_ORIGIN_FROM_ADDRESS.a45605a93c", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_ORIGIN_FUNCTION_SIGNATURE.7cdb59008b", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PAYER.5181266d52", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PLATFORM.c28ef22806", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PROTOCOL.3c56422288", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PROTOCOL_MARKET.5ba1c58d76", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TOKEN_ADDRESS.1000bb4b6f", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TOKEN_SYMBOL.442e650dd5", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TX_HASH.159d87490e", "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_VERSION.3fd0d1f3d6"], "model.fsc_evm.silver_lending__complete_lending_withdraws": ["model.fsc_evm.defi__ez_lending_withdraws", "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_withdraws_7_5__60__lending.23f1446d50", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_withdraws_AMOUNT_USD__decimal__float.c62808382c", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_withdraws_BLOCK_TIMESTAMP__day__3.1d64634b58", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_withdraws__LOG_ID.7cfc5aa030", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_AMOUNT.ef1dc64c3e", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_AMOUNT_UNADJ.5b85a0643a", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_BLOCK_NUMBER.a12c696749", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_BLOCK_TIMESTAMP.15d8c8cba4", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_COMPLETE_LENDING_WITHDRAWS_ID.681b4aa48b", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_CONTRACT_ADDRESS.2a2bdaa803", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_DEPOSITOR.aa4643edf2", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_EVENT_INDEX.4e0de8f75f", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_EVENT_NAME.5db024623b", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_INSERTED_TIMESTAMP.561d35461f", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_MODIFIED_TIMESTAMP.c3e30f98e5", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_ORIGIN_FROM_ADDRESS.a3d18bde4b", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_ORIGIN_FUNCTION_SIGNATURE.1dc2890452", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PLATFORM.e9a5a0f900", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PROTOCOL.a8b7ac43d6", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PROTOCOL_MARKET.6642e840fc", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TOKEN_ADDRESS.261f8cbdbe", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TOKEN_SYMBOL.d60b5cda5a", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TX_HASH.ce8de9e71f", "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_VERSION.fcaf60d697"], "model.fsc_evm.defi__ez_lending_borrows": [], "model.fsc_evm.defi__ez_lending_liquidations": [], "model.fsc_evm.defi__ez_lending_flashloans": [], "model.fsc_evm.defi__ez_lending_deposits": ["model.fsc_evm.silver_stablecoins__supply_contracts_list"], "model.fsc_evm.defi__ez_lending_ohlc_rates": [], "model.fsc_evm.defi__ez_lending_withdraws": [], "model.fsc_evm.defi__ez_lending_repayments": [], "model.fsc_evm.silver_stats__core_metrics_hourly": ["model.fsc_evm.stats__ez_core_metrics_hourly", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_COUNT__NUMBER__FLOAT.39578be186", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX__NUMBER__FLOAT.5f8ab0b092", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN__NUMBER__FLOAT.6733ed950e", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR__TIMESTAMP_LTZ__TIMESTAMP_NTZ.5239671c2c", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TOTAL_FEES__DECIMAL__FLOAT__NUMBER.ada34dd6db", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_FAILED__NUMBER__FLOAT.5f9df371b1", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_SUCCESS__NUMBER__FLOAT.c5d0b2cc33", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT__NUMBER__FLOAT.5a8e6e8880", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT__NUMBER__FLOAT.225f59bd1e", "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT__NUMBER__FLOAT.4cd5081b32", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stats__core_metrics_hourly__INSERTED_TIMESTAMP__day__1.874a5937d5", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR.0797e73b88", "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_COUNT.f303fa842b", "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX.60803e14ca", "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN.dcaaf4d14f", "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR.efdb4b7e98", "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TOTAL_FEES.558b8cb0c7", "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT.866f191153", "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_FAILED.4fe1d21e07", "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_SUCCESS.5b82a449dd", "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT.1e73e0a934", "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT.d64e239e23"], "model.fsc_evm.stats__ez_core_metrics_hourly": [], "model.fsc_evm.chain_stats__ez_address_metrics": [], "model.fsc_evm.chain_stats__ez_allowlist": [], "model.fsc_evm.chain_stats__ez_protocol_metrics": [], "model.fsc_evm.chain_stats__ez_metrics_daily": [], "model.fsc_evm.silver__balances_erc20_daily": ["model.fsc_evm.balances__ez_balances_erc20_daily", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_erc20_daily_ADDRESS__0_xX_0_9a_fA_F_.a753ef793c", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_erc20_daily_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.c31e06bdbd", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver__balances_erc20_daily__INSERTED_TIMESTAMP__day__2.2e99af10ca", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID.f7783664d9", "test.fsc_evm.not_null_silver__balances_erc20_daily_ADDRESS.d149b58851", "test.fsc_evm.not_null_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID.aebeb06687", "test.fsc_evm.not_null_silver__balances_erc20_daily_BALANCE_HEX.4b0eb04af8", "test.fsc_evm.not_null_silver__balances_erc20_daily_BLOCK_DATE.b0c7b4b5bc", "test.fsc_evm.not_null_silver__balances_erc20_daily_CONTRACT_ADDRESS.43c650bfd7", "test.fsc_evm.not_null_silver__balances_erc20_daily__INSERTED_TIMESTAMP.30b89c0c1d"], "model.fsc_evm.streamline__balances_erc20_daily_records": ["model.fsc_evm.streamline__balances_erc20_daily_history_requests", "model.fsc_evm.streamline__balances_erc20_daily_realtime_requests"], "model.fsc_evm.streamline__balances_erc20_daily_realtime": [], "model.fsc_evm.streamline__balances_erc20_daily_realtime_requests": ["model.fsc_evm.streamline__balances_erc20_daily_realtime"], "model.fsc_evm.streamline__balances_erc20_daily_complete": ["model.fsc_evm.streamline__balances_erc20_daily_history_requests", "model.fsc_evm.streamline__balances_erc20_daily_realtime_requests"], "model.fsc_evm.streamline__balances_erc20_daily_history_requests": ["model.fsc_evm.streamline__balances_erc20_daily_history"], "model.fsc_evm.streamline__balances_erc20_daily_history": [], "model.fsc_evm.balances__ez_balances_erc20_daily": ["model.fsc_evm.silver_stablecoins__supply_by_address", "model.fsc_evm.test_gold__ez_balances_erc20_daily_full", "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent"], "model.fsc_evm.test_gold__ez_balances_erc20_daily_recent": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_daily_recent_BALANCE__NUMBER__FLOAT.ad56fe9d44", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_recent_ADDRESS__0_xX_0_9a_fA_F_.2358d27b0b", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2789060087", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE__day__2.8b5344e6a7", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID.203984c885", "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_ADDRESS.d54ed6a481", "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE.23211ae498", "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_CONTRACT_ADDRESS.572c2ff2c0", "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_DECIMALS.cf741a0564", "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID.5275f2f741", "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_SYMBOL.664ff4bcfa"], "model.fsc_evm.test_gold__ez_balances_erc20_daily_full": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_daily_full_BALANCE__NUMBER__FLOAT.ea1e0b7809", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_full_ADDRESS__0_xX_0_9a_fA_F_.8b0fdb4db0", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.6539ed403f", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE__day__2.3411cdaa78", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID.1ac9a12106", "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_ADDRESS.df7ff69350", "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE.87397d3b88", "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_CONTRACT_ADDRESS.a29ab93899", "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_DECIMALS.f902f9987b", "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID.e0d083a055", "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_SYMBOL.8859925617"], "model.fsc_evm.bronze__balances_erc20": ["model.fsc_evm.balances__ez_balances_erc20_daily", "model.fsc_evm.silver__balances_erc20_daily", "model.fsc_evm.streamline__balances_erc20_daily_complete"], "model.fsc_evm.bronze__balances_erc20_fr": ["model.fsc_evm.silver__balances_erc20_daily", "model.fsc_evm.streamline__balances_erc20_daily_complete"], "model.fsc_evm.silver__balances_native_daily": ["model.fsc_evm.balances__ez_balances_native_daily", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_native_daily_ADDRESS__0_xX_0_9a_fA_F_.8a750d62a3", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver__balances_native_daily__INSERTED_TIMESTAMP__day__2.0117687deb", "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID.1832bc6fd4", "test.fsc_evm.not_null_silver__balances_native_daily_ADDRESS.525dc24b09", "test.fsc_evm.not_null_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID.96649214c0", "test.fsc_evm.not_null_silver__balances_native_daily_BALANCE_HEX.ddd4dba7b9", "test.fsc_evm.not_null_silver__balances_native_daily_BLOCK_DATE.5a051df8c7", "test.fsc_evm.not_null_silver__balances_native_daily__INSERTED_TIMESTAMP.ce964e9219"], "model.fsc_evm.streamline__balances_native_daily_records": ["model.fsc_evm.streamline__balances_native_daily_history_requests", "model.fsc_evm.streamline__balances_native_daily_realtime_requests"], "model.fsc_evm.streamline__balances_native_daily_realtime": [], "model.fsc_evm.streamline__balances_native_daily_realtime_requests": ["model.fsc_evm.streamline__balances_native_daily_realtime"], "model.fsc_evm.streamline__balances_native_daily_complete": ["model.fsc_evm.streamline__balances_native_daily_history_requests", "model.fsc_evm.streamline__balances_native_daily_realtime_requests"], "model.fsc_evm.streamline__balances_native_daily_history_requests": ["model.fsc_evm.streamline__balances_native_daily_history"], "model.fsc_evm.streamline__balances_native_daily_history": [], "model.fsc_evm.balances__ez_balances_native_daily": ["model.fsc_evm.test_gold__ez_balances_native_daily_full", "model.fsc_evm.test_gold__ez_balances_native_daily_recent"], "model.fsc_evm.test_gold__ez_balances_native_daily_full": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_daily_full_BALANCE__NUMBER__FLOAT.49679eb8e0", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_daily_full_ADDRESS__0_xX_0_9a_fA_F_.a9916d6faa", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_daily_full_BLOCK_DATE__day__2.be6f628721", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID.8dc83ace95", "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_ADDRESS.52d628c90f", "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_BLOCK_DATE.43b712db10", "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID.fa62d2d951"], "model.fsc_evm.test_gold__ez_balances_native_daily_recent": ["test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_daily_recent_BALANCE__NUMBER__FLOAT.ceee5e0cc7", "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_daily_recent_ADDRESS__0_xX_0_9a_fA_F_.f9166aacd7", "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_daily_recent_BLOCK_DATE__day__2.77859fb708", "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID.6d38a75605", "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_ADDRESS.a22493476f", "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_BLOCK_DATE.d5648e9d19", "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID.04c28bc46d"], "model.fsc_evm.bronze__balances_native_fr": ["model.fsc_evm.silver__balances_native_daily", "model.fsc_evm.streamline__balances_native_daily_complete"], "model.fsc_evm.bronze__balances_native": ["model.fsc_evm.balances__ez_balances_native_daily", "model.fsc_evm.silver__balances_native_daily", "model.fsc_evm.streamline__balances_native_daily_complete"], "seed.fsc_evm.admin__repos": [], "seed.fsc_evm.silver__balances_erc20_override": ["model.fsc_evm.balances__ez_balances_erc20_daily", "model.fsc_evm.silver__balances_erc20_daily", "model.fsc_evm.streamline__balances_erc20_daily_records"], "seed.fsc_evm.silver_bridge__ccip_chain_seed": ["model.fsc_evm.silver_bridge__ccip_on_ramp_address"], "seed.fsc_evm.silver_bridge__cctp_chain_id_seed": ["model.fsc_evm.silver_bridge__cctp_depositforburn", "model.fsc_evm.silver_bridge__cctp_v2_depositforburn"], "seed.fsc_evm.silver_bridge__allbridge_chain_id_seed": ["model.fsc_evm.silver_bridge__allbridge_tokens_sent"], "seed.fsc_evm.silver_bridge__layerzero_v2_bridge_seed": ["model.fsc_evm.silver_bridge__gaszip_lz_sentdeposits", "model.fsc_evm.silver_bridge__layerzero_v2_packet"], "seed.fsc_evm.silver_bridge__everclear_chain_seed": ["model.fsc_evm.silver_bridge__everclear", "model.fsc_evm.silver_bridge__everclear_reads"], "seed.fsc_evm.silver_bridge__wormhole_chain_id_seed": ["model.fsc_evm.silver_bridge__wormhole_transfers"], "seed.fsc_evm.silver_bridge__meson_chain_id_seed": ["model.fsc_evm.silver_bridge__meson_transfers"], "seed.fsc_evm.silver_bridge__stargate_v2_asset_seed": ["model.fsc_evm.silver_bridge__stargate_v2_busrode", "model.fsc_evm.silver_bridge__stargate_v2_oft"], "seed.fsc_evm.silver_bridge__ethereum_native_bridges_seed": ["model.fsc_evm.silver_bridge__ethereum_native_bridges_transfers_out"], "seed.fsc_evm.silver_bridge__standard_chain_seed": ["model.fsc_evm.defi__ez_bridge_activity"], "seed.fsc_evm.silver_bridge__stargate_chain_id_seed": ["model.fsc_evm.silver_bridge__core_bridge_unwraptoken", "model.fsc_evm.silver_bridge__stargate_swap"], "seed.fsc_evm.silver_stablecoins__bridge_vault_seed": ["model.fsc_evm.silver_stablecoins__supply_contracts_list"], "seed.fsc_evm.silver_stablecoins__stablecoins_mapping_seed": ["model.fsc_evm.defi__dim_stablecoins"], "seed.fsc_evm.silver_dex__univ3_ovm1_legacy_pools": ["model.fsc_evm.silver_dex__poolcreated_evt_v3_pools"], "seed.fsc_evm.silver_dex__synthetix_synths_20230404": ["model.fsc_evm.silver_dex__synthetix_swaps"], "seed.fsc_evm.silver_dex__dodo_v1_pool_metadata": ["model.fsc_evm.silver_dex__dodo_v1_pools"], "seed.fsc_evm.silver_dex__eth_curve_pools_legacy": ["model.fsc_evm.silver_dex__curve_pools"], "seed.fsc_evm.silver_lending__token_metadata": ["model.fsc_evm.silver_lending__comp_v2_asset_details", "model.fsc_evm.silver_lending__complete_lending_borrows", "model.fsc_evm.silver_lending__complete_lending_deposits", "model.fsc_evm.silver_lending__complete_lending_flashloans", "model.fsc_evm.silver_lending__complete_lending_liquidations", "model.fsc_evm.silver_lending__complete_lending_repayments", "model.fsc_evm.silver_lending__complete_lending_withdraws"], "test.polygon_models.not_null_silver__polymarket_filled_orders_BLOCK_NUMBER.37fef61b1d": [], "test.polygon_models.not_null_silver__polymarket_filled_orders_BLOCK_TIMESTAMP.6917d6df42": [], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__polymarket_filled_orders_BLOCK_TIMESTAMP__day__3.566647b61b": [], "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_FUNCTION_SIGNATURE.cb15dd5380": [], "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS.db8de48e63": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.7b409eed52": [], "test.polygon_models.not_null_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS.d211fba691": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.6f648aaeb4": [], "test.polygon_models.not_null_silver__polymarket_filled_orders_TX_HASH.61638ba866": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_TX_HASH__0_xX_0_9a_fA_F_.99f06dfd94": [], "test.polygon_models.not_null_silver__polymarket_filled_orders_EVENT_INDEX.08ca9dd7ff": [], "test.polygon_models.not_null_silver__polymarket_filled_orders_EVENT_NAME.8723d6958b": [], "test.polygon_models.not_null_silver__polymarket_filled_orders_CONTRACT_ADDRESS.c1a839cddb": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__polymarket_filled_orders_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2a1903b370": [], "test.polygon_models.not_null_silver__polymarket_filled_orders_AMOUNT_USD.07501acd40": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_AMOUNT_USD__DECIMAL__FLOAT__NUMBER.12cd4b012b": [], "test.polygon_models.not_null_silver__polymarket_filled_orders_SHARES.4e8255f345": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_SHARES__DECIMAL__FLOAT__NUMBER.0ed57ee530": [], "test.polygon_models.not_null_silver__polymarket_filled_orders_PRICE_PER_SHARE.bfce816c2f": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_filled_orders_PRICE_PER_SHARE__DECIMAL__FLOAT__NUMBER.d613cb9c05": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__polymarket_filled_orders__LOG_ID.7b6aeb1e9c": [], "test.polygon_models.not_null_silver_olas__create_service_multisigs_BLOCK_NUMBER.69d215b1bf": [], "test.polygon_models.not_null_silver_olas__create_service_multisigs_BLOCK_TIMESTAMP.c337c03bc4": [], "test.polygon_models.not_null_silver_olas__create_service_multisigs_TX_HASH.cfb739aeec": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__create_service_multisigs_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.81228daf15": [], "test.polygon_models.not_null_silver_olas__create_service_multisigs_ID.daadfeec98": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__create_service_multisigs__LOG_ID.57c866e6e9": [], "test.polygon_models.not_null_silver_olas__service_registrations_BLOCK_NUMBER.07ad8d6819": [], "test.polygon_models.not_null_silver_olas__service_registrations_BLOCK_TIMESTAMP.5cfbea80f9": [], "test.polygon_models.not_null_silver_olas__service_registrations_TX_HASH.39ebb01275": [], "test.polygon_models.not_null_silver_olas__service_registrations_OWNER_ADDRESS.60900e09bd": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_registrations_OWNER_ADDRESS__0_xX_0_9a_fA_F_.bdfdf5df47": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_registrations_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.9e4a4fa9f9": [], "test.polygon_models.not_null_silver_olas__service_registrations_SERVICE_ID.943c28d401": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__service_registrations__LOG_ID.2abbc6e68b": [], "test.polygon_models.not_null_silver_olas__service_event_logs_BLOCK_NUMBER.e49da10e6f": [], "test.polygon_models.not_null_silver_olas__service_event_logs_BLOCK_TIMESTAMP.f0e808ba68": [], "test.polygon_models.not_null_silver_olas__service_event_logs_TX_HASH.04a3422711": [], "test.polygon_models.not_null_silver_olas__service_event_logs_MULTISIG_ADDRESS.bcc9d7a3ca": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__service_event_logs_MULTISIG_ADDRESS__0_xX_0_9a_fA_F_.c6b135bb12": [], "test.polygon_models.not_null_silver_olas__service_event_logs_SERVICE_ID.1ad8540ad5": [], "test.polygon_models.not_null_silver_olas__service_event_logs_DATA.e35df90e62": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__service_event_logs__LOG_ID.283185ebcc": [], "test.polygon_models.not_null_silver_olas__getservice_reads_BLOCK_NUMBER.4525478d4f": [], "test.polygon_models.not_null_silver_olas__getservice_reads_FUNCTION_INPUT.abe26173ba": [], "test.polygon_models.not_null_silver_olas__getservice_reads_AGENT_IDS.16c637c223": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__getservice_reads_GETSERVICE_READS_ID.93211253f0": [], "test.polygon_models.not_null_silver_olas__registry_metadata_complete_CONTRACT_ADDRESS.2a0b0f82cb": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_metadata_complete_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.a79fec85ad": [], "test.polygon_models.not_null_silver_olas__registry_metadata_complete_REGISTRY_ID.d41d9793d9": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_metadata_complete_REGISTRY_METADATA_ID.bde925d9ef": [], "test.polygon_models.not_null_silver_olas__registry_metadata_BLOCK_NUMBER.df505ae61e": [], "test.polygon_models.not_null_silver_olas__registry_metadata_CONTRACT_ADDRESS.d47b0a47dc": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_metadata_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2d2a8813c5": [], "test.polygon_models.not_null_silver_olas__registry_metadata_REGISTRY_ID.cee5b3e691": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_metadata_REGISTRY_METADATA_ID.818d85b569": [], "test.polygon_models.not_null_silver_olas__registry_reads_BLOCK_NUMBER.b13e2f8805": [], "test.polygon_models.not_null_silver_olas__registry_reads_CONTRACT_ADDRESS.8aeb785480": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver_olas__registry_reads_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.5dc95cdcbc": [], "test.polygon_models.not_null_silver_olas__registry_reads_TOKEN_URI_LINK.e05085b1e1": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver_olas__registry_reads_REGISTRY_READS_ID.92579c5880": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_BLOCK_NUMBER.87ef6d1a21": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_BLOCK_NUMBER__NUMBER__FLOAT.db1568242f": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_BLOCK_TIMESTAMP.64626723f1": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e5a6626a52": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_TX_HASH.76c3272674": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_TX_HASH__0_xX_0_9a_fA_F_.6ec2b48a1e": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_ADDRESS.148994188c": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.cd2cbbcc06": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_NAME.1fb199e6b9": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_4_sales_PLATFORM_NAME__opensea.cab2dd30f7": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_SELLER_ADDRESS.efdfee2c74": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.f7b39ffb41": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_BUYER_ADDRESS.39557d23ca": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.f73a5fc522": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_NFT_ADDRESS.9e5ab44cbd": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.ea367e02b2": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_TOKENID.8353c1c5b8": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_CURRENCY_ADDRESS.cfb0b5d08a": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_TOTAL_PRICE_RAW.0ccd4356fe": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.fceecfdb11": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_TOTAL_FEES_RAW.49141684e9": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.2bde19d676": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_PLATFORM_FEE_RAW.a0f300ff1c": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.b3d57d8632": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_CREATOR_FEE_RAW.98d862e5d3": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.bd13725310": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_TX_FEE.7a79488ebd": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales_TX_FEE__NUMBER__FLOAT.d59a0ea6ef": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_NFT_LOG_ID.5be99512a7": [], "test.polygon_models.not_null_silver__seaport_1_4_sales__INSERTED_TIMESTAMP.7cc0485f0d": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_4_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82ad920c6e": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS.492297495d": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.b0cc0cbca1": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS.e67fafc448": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.6a5fede4fd": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE.e81f20de7e": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_4_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.8d40d2780e": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_EVENT_TYPE.a53bf70c11": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_4_sales_EVENT_TYPE__bid_won__sale.6b6cedf5d9": [], "test.polygon_models.not_null_silver__seaport_1_4_sales_INPUT_DATA.02b25fd3bc": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_4_sales_nft_log_id.a174df5b72": [], "test.polygon_models.not_null_silver__complete_nft_sales_BLOCK_NUMBER.57944b643f": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_BLOCK_NUMBER__NUMBER__FLOAT.fdf0d994a1": [], "test.polygon_models.not_null_silver__complete_nft_sales_BLOCK_TIMESTAMP.79a5861cbe": [], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__complete_nft_sales_BLOCK_TIMESTAMP__day__1.40e4447972": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.84edb45427": [], "test.polygon_models.not_null_silver__complete_nft_sales_TX_HASH.c6a7c23911": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_TX_HASH__0_xX_0_9a_fA_F_.0ee978e0d4": [], "test.polygon_models.not_null_silver__complete_nft_sales_EVENT_INDEX.f2adcca32f": [], "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_ADDRESS.795fa17957": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.5e6bffa046": [], "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_NAME.ffe92d79fd": [], "test.polygon_models.not_null_silver__complete_nft_sales_SELLER_ADDRESS.eda1b7ad24": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.bbf4b8149f": [], "test.polygon_models.not_null_silver__complete_nft_sales_BUYER_ADDRESS.69569a63c7": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4226247a32": [], "test.polygon_models.not_null_silver__complete_nft_sales_NFT_ADDRESS.5537952adb": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.232d4d13e5": [], "test.polygon_models.not_null_silver__complete_nft_sales_TOKENID.434c1bbb73": [], "test.polygon_models.not_null_silver__complete_nft_sales_CURRENCY_ADDRESS.9b1d0cc7a8": [], "test.polygon_models.not_null_silver__complete_nft_sales_PRICE.664e2772c7": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PRICE__NUMBER__FLOAT.b67f7f036b": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PRICE_USD__NUMBER__FLOAT.3865ef9872": [], "test.polygon_models.not_null_silver__complete_nft_sales_TOTAL_FEES.5f94d9565b": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TOTAL_FEES__NUMBER__FLOAT.c717cf1013": [], "test.polygon_models.not_null_silver__complete_nft_sales_PLATFORM_FEE.d2ec7dbdd0": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PLATFORM_FEE__NUMBER__FLOAT.4db7a35a78": [], "test.polygon_models.not_null_silver__complete_nft_sales_CREATOR_FEE.2bcba1a012": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_CREATOR_FEE__NUMBER__FLOAT.cff32bf09f": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TOTAL_FEES_USD__NUMBER__FLOAT.8179f9db61": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_PLATFORM_FEE_USD__NUMBER__FLOAT.bf1cc86946": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_CREATOR_FEE_USD__NUMBER__FLOAT.32f4b653be": [], "test.polygon_models.not_null_silver__complete_nft_sales_TX_FEE.3b60a50418": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__complete_nft_sales_TX_FEE__NUMBER__FLOAT.a50c15b6b4": [], "test.polygon_models.not_null_silver__complete_nft_sales_NFT_LOG_ID.6a32d9392a": [], "test.polygon_models.not_null_silver__complete_nft_sales__LOG_ID.423b310544": [], "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS.5f21f6c546": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.165fc34eac": [], "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_TO_ADDRESS.fb55dbfb6f": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.e291a891ae": [], "test.polygon_models.not_null_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE.e14fe88673": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__complete_nft_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.b46c604770": [], "test.polygon_models.not_null_silver__complete_nft_sales_EVENT_TYPE.b71abf8ef9": [], "test.polygon_models.not_null_silver__complete_nft_sales_INPUT_DATA.37d4f77f83": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__complete_nft_sales_nft_log_id.1db89d3193": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_BLOCK_NUMBER.24829e36fa": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_BLOCK_NUMBER__NUMBER__FLOAT.16b1475a6c": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_BLOCK_TIMESTAMP.8996639023": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.633ddbc1cc": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_TX_HASH.4ef964ba26": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_TX_HASH__0_xX_0_9a_fA_F_.4980f309d1": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_ADDRESS.a76e4edeac": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.bbb38fefa1": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_NAME.cd7a9560be": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_1_sales_PLATFORM_NAME__opensea.559a845700": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_SELLER_ADDRESS.d1219d17a2": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.82ff004d89": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_BUYER_ADDRESS.cffb31ba59": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.e0b5729239": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_NFT_ADDRESS.4c2d3ab960": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.7ba4b12cc3": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_TOKENID.de88cac8c5": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_CURRENCY_ADDRESS.1be87eaf04": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_TOTAL_PRICE_RAW.470d158317": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.20c0e6f088": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_TOTAL_FEES_RAW.90afed2683": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.216c3d4f53": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_PLATFORM_FEE_RAW.98f46b971f": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.a33e76bb25": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_CREATOR_FEE_RAW.4571cd3937": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.c4c3f0c765": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_TX_FEE.9da040f28a": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales_TX_FEE__NUMBER__FLOAT.5fc845aa08": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_NFT_LOG_ID.f7cd721252": [], "test.polygon_models.not_null_silver__seaport_1_1_sales__INSERTED_TIMESTAMP.39029cba5f": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_1_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.044c1f3328": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS.07dbc4f7e2": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.44c7ddb31b": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.41d5da7600": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE.1ffe9dc96f": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_1_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.77a1924e3a": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_EVENT_TYPE.50311bf0fc": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_1_sales_EVENT_TYPE__bid_won__sale.2524b82d17": [], "test.polygon_models.not_null_silver__seaport_1_1_sales_INPUT_DATA.bbebff71e0": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_1_sales_nft_log_id.b926efc93c": [], "test.polygon_models.not_null_silver__element_sales_BLOCK_NUMBER.6f285666e9": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_BLOCK_NUMBER__NUMBER__FLOAT.e369cc923d": [], "test.polygon_models.not_null_silver__element_sales_BLOCK_TIMESTAMP.feb749030b": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.77148f96bc": [], "test.polygon_models.not_null_silver__element_sales_TX_HASH.c94a3fb7ed": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_TX_HASH__0_xX_0_9a_fA_F_.197ddfc264": [], "test.polygon_models.not_null_silver__element_sales_SELLER_ADDRESS.cbd314ffba": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.0e7240aef8": [], "test.polygon_models.not_null_silver__element_sales_BUYER_ADDRESS.13709bfa32": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.1a632cfd6e": [], "test.polygon_models.not_null_silver__element_sales_NFT_ADDRESS.a64e864cf2": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.f3bcb7907f": [], "test.polygon_models.not_null_silver__element_sales_TOKENID.0c4c737af0": [], "test.polygon_models.not_null_silver__element_sales_CURRENCY_ADDRESS.6209f77238": [], "test.polygon_models.not_null_silver__element_sales_TOTAL_PRICE_RAW.6277f419e1": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.a01e856376": [], "test.polygon_models.not_null_silver__element_sales_TOTAL_FEES_RAW.e744dc994a": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.8b75c81a0d": [], "test.polygon_models.not_null_silver__element_sales_PLATFORM_FEE_RAW.4ff5271e75": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.75db53c973": [], "test.polygon_models.not_null_silver__element_sales_CREATOR_FEE_RAW.05b31270ac": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.9f55628b74": [], "test.polygon_models.not_null_silver__element_sales_TX_FEE.cbc67dca64": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__element_sales_TX_FEE__NUMBER__FLOAT.ba599921e2": [], "test.polygon_models.not_null_silver__element_sales_NFT_LOG_ID.a2214c6c73": [], "test.polygon_models.not_null_silver__element_sales__LOG_ID.45798a356f": [], "test.polygon_models.not_null_silver__element_sales_ORIGIN_FROM_ADDRESS.488cc78674": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.8bf1eb8fd4": [], "test.polygon_models.not_null_silver__element_sales_ORIGIN_TO_ADDRESS.0c5df398d0": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.3b01529200": [], "test.polygon_models.not_null_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE.be176a72e9": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__element_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.fd0843fa8a": [], "test.polygon_models.not_null_silver__element_sales_EVENT_TYPE.1374ddbae0": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__element_sales_EVENT_TYPE__bid_won__sale.13f1c327ac": [], "test.polygon_models.not_null_silver__element_sales_INPUT_DATA.033bf73b52": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__element_sales_nft_log_id.3f2a276dbb": [], "test.polygon_models.not_null_silver__mooar_sales_BLOCK_NUMBER.543489371f": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_BLOCK_NUMBER__NUMBER__FLOAT.07310f104e": [], "test.polygon_models.not_null_silver__mooar_sales_BLOCK_TIMESTAMP.30e0588b15": [], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__mooar_sales_BLOCK_TIMESTAMP__day__1.799f3f451c": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f85e0e9c18": [], "test.polygon_models.not_null_silver__mooar_sales_TX_HASH.da6a3d4a3e": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_TX_HASH__0_xX_0_9a_fA_F_.f22d26a2aa": [], "test.polygon_models.not_null_silver__mooar_sales_PLATFORM_ADDRESS.d745fc012b": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.c3c9bf6f98": [], "test.polygon_models.not_null_silver__mooar_sales_SELLER_ADDRESS.44cd7daff0": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.c14c9abbbc": [], "test.polygon_models.not_null_silver__mooar_sales_BUYER_ADDRESS.888d3bd2c2": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.6b889510cb": [], "test.polygon_models.not_null_silver__mooar_sales_NFT_ADDRESS.d7517df1bb": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.fa8c038b49": [], "test.polygon_models.not_null_silver__mooar_sales_TOKENID.4fbe1082e6": [], "test.polygon_models.not_null_silver__mooar_sales_CURRENCY_ADDRESS.bd2ef41ae9": [], "test.polygon_models.not_null_silver__mooar_sales_TOTAL_PRICE_RAW.528a859034": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.72cac3a65f": [], "test.polygon_models.not_null_silver__mooar_sales_TOTAL_FEES_RAW.676780db0c": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.a91c15b84d": [], "test.polygon_models.not_null_silver__mooar_sales_PLATFORM_FEE_RAW.6ab323f694": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.18683075ab": [], "test.polygon_models.not_null_silver__mooar_sales_CREATOR_FEE_RAW.23190ef573": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.3d185db5b6": [], "test.polygon_models.not_null_silver__mooar_sales_TX_FEE.5eed484409": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales_TX_FEE__NUMBER__FLOAT.dfe58ed919": [], "test.polygon_models.not_null_silver__mooar_sales_NFT_LOG_ID.af807c77e9": [], "test.polygon_models.not_null_silver__mooar_sales__INSERTED_TIMESTAMP.93f5a5c8cb": [], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__mooar_sales__INSERTED_TIMESTAMP__day__14.743279bc26": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__mooar_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a0776dfdc1": [], "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_FROM_ADDRESS.a779765ca9": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.820c1a0eaa": [], "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_TO_ADDRESS.eadc499ce1": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.78e48edafd": [], "test.polygon_models.not_null_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE.764964b444": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__mooar_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.f92b286eda": [], "test.polygon_models.not_null_silver__mooar_sales_EVENT_TYPE.482185083d": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__mooar_sales_EVENT_TYPE__bid_won__sale.72a263fcbe": [], "test.polygon_models.not_null_silver__mooar_sales_INPUT_DATA.d587446188": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__mooar_sales_nft_log_id.368a737a67": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_BLOCK_NUMBER.d8a7a7833f": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_BLOCK_NUMBER__NUMBER__FLOAT.9ab378f68e": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_BLOCK_TIMESTAMP.aa8c9811f0": [], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__seaport_1_6_sales_BLOCK_TIMESTAMP__day__1.55704a4959": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d0a43ce369": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_TX_HASH.c56c02a893": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_TX_HASH__0_xX_0_9a_fA_F_.db140398eb": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_ADDRESS.aacd1db03b": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.62aeda5fe7": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_NAME.9134b92f06": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_6_sales_PLATFORM_NAME__opensea.7575a475ff": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_SELLER_ADDRESS.266af61935": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.03d32571d2": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_BUYER_ADDRESS.fe949194db": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.dc8d5cedfd": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_NFT_ADDRESS.6411288ae0": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.277515e609": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_TOKENID.2f9a22db6b": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_CURRENCY_ADDRESS.36494514a1": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_TOTAL_PRICE_RAW.8151aa3865": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.1ff046cc57": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_TOTAL_FEES_RAW.919411d757": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.f1237eed20": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_PLATFORM_FEE_RAW.aaa792c161": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.8a6b8eb72c": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_CREATOR_FEE_RAW.60fe2808f3": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.8cde9117f4": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_TX_FEE.9b8567b583": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales_TX_FEE__NUMBER__FLOAT.5854e80011": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_NFT_LOG_ID.c4b2be44be": [], "test.polygon_models.not_null_silver__seaport_1_6_sales__INSERTED_TIMESTAMP.7aa84213a2": [], "test.polygon_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__seaport_1_6_sales__INSERTED_TIMESTAMP__day__1.fef81231f9": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_6_sales__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c4b8b65b03": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS.be5f62774c": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.aa4bb5848c": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS.c02c8c62a8": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.d8be899441": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE.11f4cb34d8": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_6_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.e30720c0a3": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_EVENT_TYPE.8b8c5fa13c": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_6_sales_EVENT_TYPE__bid_won__sale.47081ac1d1": [], "test.polygon_models.not_null_silver__seaport_1_6_sales_INPUT_DATA.32f10c63e5": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_6_sales_nft_log_id.ac3a041a56": [], "test.polygon_models.not_null_silver__tofunft_sales_BLOCK_NUMBER.afa8a4e8f3": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_BLOCK_NUMBER__NUMBER__FLOAT.2efc5278e8": [], "test.polygon_models.not_null_silver__tofunft_sales_BLOCK_TIMESTAMP.7f084f3df1": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.030006fed4": [], "test.polygon_models.not_null_silver__tofunft_sales_TX_HASH.d00c52e95b": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_TX_HASH__0_xX_0_9a_fA_F_.07ff7d8529": [], "test.polygon_models.not_null_silver__tofunft_sales_PLATFORM_ADDRESS.d680990b3f": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.e3fe1c4346": [], "test.polygon_models.not_null_silver__tofunft_sales_SELLER_ADDRESS.2623b7e06f": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.4ade570dee": [], "test.polygon_models.not_null_silver__tofunft_sales_BUYER_ADDRESS.e1bb974f14": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4b40cff5db": [], "test.polygon_models.not_null_silver__tofunft_sales_NFT_ADDRESS.56fa9c4a2e": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.a542b4ea96": [], "test.polygon_models.not_null_silver__tofunft_sales_TOKENID.dbc3abbfb8": [], "test.polygon_models.not_null_silver__tofunft_sales_CURRENCY_ADDRESS.415669b9b3": [], "test.polygon_models.not_null_silver__tofunft_sales_TOTAL_PRICE_RAW.ebe1a4900d": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.394b29750a": [], "test.polygon_models.not_null_silver__tofunft_sales_TOTAL_FEES_RAW.ea6fd23ad5": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.b0c431b629": [], "test.polygon_models.not_null_silver__tofunft_sales_PLATFORM_FEE_RAW.07e68bea2e": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.ee9c014f0f": [], "test.polygon_models.not_null_silver__tofunft_sales_CREATOR_FEE_RAW.2acaf124dc": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.338ac91ecd": [], "test.polygon_models.not_null_silver__tofunft_sales_TX_FEE.911a502933": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales_TX_FEE__NUMBER__FLOAT.2e849c3a94": [], "test.polygon_models.not_null_silver__tofunft_sales_NFT_LOG_ID.5be70a9545": [], "test.polygon_models.not_null_silver__tofunft_sales__INSERTED_TIMESTAMP.99cb218d68": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__tofunft_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.eafbf3d59d": [], "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_FROM_ADDRESS.0e7cafbf22": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.ad1193ebee": [], "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_TO_ADDRESS.6fe92c8681": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.f3b5a3d941": [], "test.polygon_models.not_null_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE.ebd6d32cdd": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__tofunft_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.266e7a9bab": [], "test.polygon_models.not_null_silver__tofunft_sales_EVENT_TYPE.0b1cc9cc57": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__tofunft_sales_EVENT_TYPE__bid_won__sale.2c30cdcd41": [], "test.polygon_models.not_null_silver__tofunft_sales_INPUT_DATA.358e16915b": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__tofunft_sales_nft_log_id.628c88944c": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_BLOCK_NUMBER.c4c18714b1": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_BLOCK_NUMBER__NUMBER__FLOAT.5fd14b6024": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_BLOCK_TIMESTAMP.0e3cfc73a7": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.6246cb2672": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_TX_HASH.e332a4e2f2": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_TX_HASH__0_xX_0_9a_fA_F_.3c3779d6bb": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_ADDRESS.df87d38f26": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_PLATFORM_ADDRESS__0_xX_0_9a_fA_F_.28cf427125": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_NAME.2cdf43e2a0": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_5_sales_PLATFORM_NAME__opensea.16c4e7cfc1": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_SELLER_ADDRESS.48bbb8263d": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_SELLER_ADDRESS__0_xX_0_9a_fA_F_.224af0bd4c": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_BUYER_ADDRESS.5a3e4fa745": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_BUYER_ADDRESS__0_xX_0_9a_fA_F_.4cd6e3b69f": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_NFT_ADDRESS.f813b4d9e7": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_NFT_ADDRESS__0_xX_0_9a_fA_F_.99fc2c7c14": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_TOKENID.f690e73e38": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_CURRENCY_ADDRESS.dbcea46a1f": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_TOTAL_PRICE_RAW.46ad0b4d7a": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TOTAL_PRICE_RAW__NUMBER__FLOAT.b4f6fa2d3d": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_TOTAL_FEES_RAW.b8f34e40c8": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TOTAL_FEES_RAW__NUMBER__FLOAT.5721ea6b45": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_PLATFORM_FEE_RAW.87b23c30ad": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_PLATFORM_FEE_RAW__NUMBER__FLOAT.b6d1df5615": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_CREATOR_FEE_RAW.abf009e067": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_CREATOR_FEE_RAW__NUMBER__FLOAT.e6a47f2796": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_TX_FEE.289ce03033": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales_TX_FEE__NUMBER__FLOAT.ee212825cc": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_NFT_LOG_ID.aa0757e4d2": [], "test.polygon_models.not_null_silver__seaport_1_5_sales__INSERTED_TIMESTAMP.ca71885856": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__seaport_1_5_sales__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9516659c33": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS.0b88cca2bc": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.5e09839047": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS.d459ebe228": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.fe4a91e952": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE.9ca019a30f": [], "test.polygon_models.dbt_expectations_expect_column_values_to_match_regex_silver__seaport_1_5_sales_ORIGIN_FUNCTION_SIGNATURE__0_xX_0_9a_fA_F_.a1eee69661": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_EVENT_TYPE.754547c445": [], "test.polygon_models.dbt_expectations_expect_column_values_to_be_in_set_silver__seaport_1_5_sales_EVENT_TYPE__bid_won__sale.3afc0ac436": [], "test.polygon_models.not_null_silver__seaport_1_5_sales_INPUT_DATA.eecd421993": [], "test.polygon_models.dbt_utils_unique_combination_of_columns_silver__seaport_1_5_sales_nft_log_id.abea905342": [], "test.livequery_models.test_transpose__get_status_200.8721d94682": [], "test.livequery_models.test_credmark_utils__get_status_200.d1548e1f6e": [], "test.livequery_models.test_opensea__get_collection_stats_status_200.bdf3d1d191": [], "test.livequery_models.test_stakingrewards__query_status_200.144a35304b": [], "test.livequery_models.test_subquery__graphql_status_200.b25433a976": [], "test.livequery_models.test_topshot__graphql_status_200.fb93e3b220": [], "test.livequery_models.test_allday__graphql_status_200.8cfd62f9a1": [], "test.livequery_models.test_coingecko__get_status_200.047f15c956": [], "test.livequery_models.test_slack__webhook_send_simple.ee0011caae": [], "test.livequery_models.test_slack__webhook_send_rich.488499c36a": [], "test.livequery_models.test_slack__post_message_simple.0751f090c1": [], "test.livequery_models.test_slack__post_message_blocks.904b39bace": [], "test.livequery_models.test_slack__post_reply_simple.a734331ab3": [], "test.livequery_models.test_slack__webhook_send_complex_payload.5c2206d9c2": [], "test.livequery_models.test_slack_utils__post_webhook_httpbin.de5573cb7a": [], "test.livequery_models.test_slack_utils__post_webhook_invalid_url.aed389ddc9": [], "test.livequery_models.test_slack_utils__post_webhook_null_payload.8b4db9f76e": [], "test.livequery_models.test_slack_utils__post_message_httpbin.faac84e2cd": [], "test.livequery_models.test_slack_utils__post_message_auth_error.ca1392a817": [], "test.livequery_models.test_slack_utils__post_reply_httpbin.c787547840": [], "test.livequery_models.test_slack_utils__validate_webhook_url_valid.6420f9435d": [], "test.livequery_models.test_slack_utils__validate_webhook_url_invalid.3576e28c54": [], "test.livequery_models.test_slack_utils__validate_channel_id.3c2bddfcc4": [], "test.livequery_models.test_slack_utils__validate_channel_name.ee330f32dc": [], "test.livequery_models.test_slack_utils__validate_channel_dm.e73977329f": [], "test.livequery_models.test_slack_utils__validate_channel_group.481cbe7e68": [], "test.livequery_models.test_slack_utils__validate_channel_invalid.2df37ed1b8": [], "test.livequery_models.test_slack_utils__validate_channel_null.23eeea530c": [], "test.livequery_models.test_slack_utils__validate_channel_empty.7935ed3012": [], "test.livequery_models.test_dapplooker__get_chart_status_202.4fedf28822": [], "test.livequery_models.test_claude__post_messages_only_one_message.ff8a12fc1b": [], "test.livequery_models.test_claude__post_messages_with_model.7b5774fbf2": [], "test.livequery_models.test_claude__post_messages_with_all_params.0917a032d2": [], "test.livequery_models.test_claude__count_message_tokens.f5bafb2bce": [], "test.livequery_models.test_claude__list_models.8516d777c7": [], "test.livequery_models.test_claude__get_model.1f65c29a92": [], "test.livequery_models.test_claude__post_messages_batch.63bf2a363f": [], "test.livequery_models.test_claude__list_message_batches.df27ad85b6": [], "test.livequery_models.test_claude_utils__post_api_status_200.fe926b326c": [], "test.livequery_models.test_strangelove__get_status_200.0a58865924": [], "test.livequery_models.test_fred__get_series_status_200.51822e30ca": [], "test.livequery_models.test_espn__get_status_200.b4f84cc829": [], "test.livequery_models.test_solscan_public_api_get__get_status_200.388381be71": [], "test.livequery_models.test_dappradar__get_status_200.979ea475dc": [], "test.livequery_models.test_covalent__get_status_200.bb43bb7f69": [], "test.livequery_models.test_deepnftvalue__get_status_200.49fba544bb": [], "test.livequery_models.test_github_utils__octocat_status_200.7a9c72f57f": [], "test.livequery_models.test_github_utils__headers_format.bf75978db7": [], "test.livequery_models.test_github_utils__post_invalid_route.f060700fd1": [], "test.livequery_models.test_github_utils__put_invalid_route.d361d590cf": [], "test.livequery_models.test_github_actions__workflows_with_query.6ac4a8b3f9": [], "test.livequery_models.test_github_actions__workflows_simple.c1eaeaca38": [], "test.livequery_models.test_github_actions__runs_with_query.c134c002ca": [], "test.livequery_models.test_github_actions__runs_simple.fb19fd1022": [], "test.livequery_models.test_github_actions__workflow_runs_with_query.2cc7cb1189": [], "test.livequery_models.test_github_actions__workflow_runs_simple.3fae7a0ed4": [], "test.livequery_models.test_github_actions__workflow_dispatches_with_body.d94154911b": [], "test.livequery_models.test_github_actions__workflow_dispatches_simple.81f75f9435": [], "test.livequery_models.test_github_actions__workflow_enable.0b608e8267": [], "test.livequery_models.test_github_actions__workflow_disable.aefa4786d2": [], "test.livequery_models.test_github_actions__workflow_run_logs.9a9822b746": [], "test.livequery_models.test_github_actions__job_logs.5a2d0a3c80": [], "test.livequery_models.test_github_actions__workflow_run_jobs_with_query.4a098421bd": [], "test.livequery_models.test_github_actions__workflow_run_jobs_simple.3f673e1432": [], "test.livequery_models.test_github_actions__tf_workflows_with_query.55c801e96a": [], "test.livequery_models.test_github_actions__tf_workflows_simple.e309afa5b7": [], "test.livequery_models.test_github_actions__tf_runs_with_query.1164bd17ab": [], "test.livequery_models.test_github_actions__tf_runs_simple.e5cbf35e89": [], "test.livequery_models.test_github_actions__tf_workflow_runs_with_query.4108f0ee5c": [], "test.livequery_models.test_github_actions__tf_workflow_runs_simple.2677ffd8e8": [], "test.livequery_models.test_github_actions__tf_workflow_run_jobs_with_query.b6002abbe4": [], "test.livequery_models.test_github_actions__tf_workflow_run_jobs_simple.ddea8e10f5": [], "test.livequery_models.test_github_actions__tf_failed_jobs_with_logs.f99b7e9705": [], "test.livequery_models.test_github_actions__tf_failure_analysis_with_ai_cortex.f6b67b3893": [], "test.livequery_models.test_github_actions__tf_failure_analysis_with_ai_custom_prompt.9412c58df0": [], "test.livequery_models.test_github_actions__tf_failure_analysis_with_ai_default.f6378c5240": [], "test.livequery_models.test_nftscan__get_status_200.33868e0f0d": [], "test.livequery_models.test_chainbase_utils__get_status_200.07b6733652": [], "test.livequery_models.test_snapshot__query_status_200.35a2cffb40": [], "test.livequery_models.test_reservoir__get_status_200.cb905ea233": [], "test.livequery_models.test_defillama__get_status_200.95a3be7633": [], "test.livequery_models.test_bitquery__graphql_status_200.11917beb18": [], "test.livequery_models.test_helius_apis__token_metadata_status_200.c2bafa3fb0": [], "test.livequery_models.test_helius_apis__balances_status_200.d668884644": [], "test.livequery_models.test_helius_apis__parse_transactions_status_200.71053900da": [], "test.livequery_models.test_helius_das__get_asset_status_200.3e65208714": [], "test.livequery_models.test_helius_das__get_signatures_for_asset_status_200.529a6b605d": [], "test.livequery_models.test_helius_das__search_assets_status_200.2373c30616": [], "test.livequery_models.test_helius_das__get_asset_proof_status_200.2ed48f9fe3": [], "test.livequery_models.test_helius_das__get_assets_by_owner_status_200.6f2f1ef95c": [], "test.livequery_models.test_helius_das__get_assets_by_authority_status_200.c9ac02b165": [], "test.livequery_models.test_helius_das__get_assets_by_creator_status_200.e8cb071d3a": [], "test.livequery_models.test_helius_das__get_assets_by_group_status_200.fe5813195d": [], "test.livequery_models.test_playgrounds__query_subgraph_status_200_liquidity_pools.dfcb23f707": [], "test.livequery_models.test_playgrounds__query_subgraph_status_200_total_pool_count.86c8b9c6ee": [], "test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_status_200.94f0e0082e": [], "test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_by_creator_status_200.70f38f0e31": [], "test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_contract_address_status_200.529daa7446": [], "test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_symbol_status_200.d60e37734e": [], "test.livequery_models.test_quicknode_polygon_tokens__get_transactions_by_address_status_200.194093aade": [], "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_balance_status_200.2bffddb733": [], "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_transactions_status_200.57669f1a96": [], "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nft_collection_details_status_200.5a3e5bd53e": [], "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_status_200.e34b6fbe64": [], "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_by_collection_status_200.ba7f5aeceb": [], "test.livequery_models.test_quicknode_ethereum_nfts__get_transfers_by_nft_status_200.2e5143d642": [], "test.livequery_models.test_quicknode_ethereum_nfts__verify_nfts_owner_status_200.34afbca510": [], "test.livequery_models.test_quicknode_polygon_nfts__fetch_nft_collection_details_status_200.b69737052b": [], "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_status_200.2d1f2ae9d6": [], "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_by_collection_status_200.8286191e06": [], "test.livequery_models.test_quicknode_polygon_nfts__get_transfers_by_nft_status_200.2f6ba1e185": [], "test.livequery_models.test_quicknode_polygon_nfts__verify_nfts_owner_status_200.e87bb12c13": [], "test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_contract_address_status_200.3d5c91f8e2": [], "test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_symbol_status_200.c34c43a92d": [], "test.livequery_models.test_quicknode_ethereum_tokens__get_transactions_by_address_status_200.29d4ecb431": [], "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_balance_status_200.9cda095850": [], "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_transactions_status_200.990e59cd6c": [], "test.livequery_models.test_footprint_utils__get_status_200_v2_protocol_info.4d260facf4": [], "test.livequery_models.test_cmc__get_status_200.1e44de8c9e": [], "test.livequery_models.test_apilayer__get_status_200.f739b0d36b": [], "test.livequery_models.test_alchemy_tokens__get_token_allowance_status_200.65ce803e24": [], "test.livequery_models.test_alchemy_tokens__get_token_balances_status_200.bdaa3fdabb": [], "test.livequery_models.test_alchemy_tokens__get_token_metadata_status_200.ff08820c76": [], "test.livequery_models.test_alchemy_nfts__get_nfts_status_200.34e3001576": [], "test.livequery_models.test_alchemy_nfts__get_owners_for_token_status_200.c534c2579d": [], "test.livequery_models.test_alchemy_nfts__get_owners_for_collection_status_200.3cdb9f0962": [], "test.livequery_models.test_alchemy_nfts__is_holder_of_collection_status_200.d94f7ae355": [], "test.livequery_models.test_alchemy_nfts__get_contracts_for_owner_status_200.29e9e60296": [], "test.livequery_models.test_alchemy_nfts__get_nft_metadata_status_200.aad531a83a": [], "test.livequery_models.test_alchemy_nfts__get_nft_metadata_batch_status_200.44d0ef0140": [], "test.livequery_models.test_alchemy_nfts__get_contract_metadata_status_200.0a9337a17a": [], "test.livequery_models.test_alchemy_nfts__get_contract_metadata_batch_status_200.78a02ffe28": [], "test.livequery_models.test_alchemy_nfts__invalidate_contract_status_200.1ac32b4945": [], "test.livequery_models.test_alchemy_nfts__reingest_contract_status_200.3c2c45fd00": [], "test.livequery_models.test_alchemy_nfts__search_contract_metadata_status_200.1e97937b32": [], "test.livequery_models.test_alchemy_nfts__get_nfts_for_collection_status_200.f7ff9b5ee5": [], "test.livequery_models.test_alchemy_nfts__get_spam_contracts_status_200.b9dfb4e306": [], "test.livequery_models.test_alchemy_nfts__is_spam_contract_status_200.91af21989f": [], "test.livequery_models.test_alchemy_nfts__is_airdrop_status_200.58ce4f1bdc": [], "test.livequery_models.test_alchemy_nfts__get_floor_price_status_200.f2125d71e4": [], "test.livequery_models.test_alchemy_nfts__get_nft_sales_status_200.223f727f9f": [], "test.livequery_models.test_alchemy_nfts__compute_rarity_status_200.942425aa31": [], "test.livequery_models.test_alchemy_nfts__summarize_nft_attributes_status_200.99d7f57e35": [], "test.livequery_models.test_alchemy_transfers__get_asset_transfers_status_200.f1f3f416e4": [], "test.livequery_models.test__live_udf_api_batched_post_data_object.a3001533fa": [], "test.livequery_models.test__live_udf_api_batched_post_jsonrpc_ethereum_batch.aa4ed0976f": [], "test.livequery_models.test__live_udf_api_batched_post_jsonrpc_solana.7027aa9022": [], "test.livequery_models.test__live_udf_api_post_data_object.f511b76342": [], "test.livequery_models.test__live_udf_api_post_data_array.e6efede8c7": [], "test.livequery_models.test__live_udf_api_post_data_string.4024bc8c29": [], "test.livequery_models.test__live_udf_api_get_method.7f6dfcd143": [], "test.livequery_models.test__live_udf_api_get_with_params.b0e789f509": [], "test.livequery_models.test__live_udf_api_post_batch_jsonrpc.6afc146ed1": [], "test.livequery_models.test__live_udf_api_post_jsonrpc_solana.b20463bfb3": [], "test.livequery_models.test__live_udf_api_post_jsonrpc_solana_batch.9386763d93": [], "test.livequery_models.test__live_udf_api_post_jsonrpc_ethereum_batch.3c9cd0b4df": [], "test.livequery_models.test__live_udf_api_v2_post_data_object_sync.071fa239ad": [], "test.livequery_models.test__live_udf_api_v2_post_data_array_sync.b8411aa263": [], "test.livequery_models.test__live_udf_api_v2_post_data_string_sync.fe8f3757c8": [], "test.livequery_models.test__live_udf_api_v2_get_method_sync.8122eddb3f": [], "test.livequery_models.test__live_udf_api_v2_post_batch_jsonrpc_sync.b36bc00504": [], "test.livequery_models.test__live_udf_api_v2_get_with_params_sync.147b3736ae": [], "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_sync.59f97e4649": [], "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_batch_sync.cb3ec63e3a": [], "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_ethereum_batch_sync.71d7b6dbb6": [], "test.livequery_models.test__live_udf_api_v2_get_with_params_async.b056833455": [], "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_async.a018ed6e96": [], "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_solana_batch_async.7f045a7b4a": [], "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_ethereum_batch_async.95f5f5b561": [], "test.livequery_models.test__live_udf_api_v2_get_with_headers_is_async_true.cfc2645199": [], "test.livequery_models.test__live_udf_api_v2_get_with_headers_is_async_false.e9e1befac4": [], "test.livequery_models.test__live_udf_api_v2_full_signature_is_async_true.604199ea45": [], "test.livequery_models.test__live_udf_api_v2_full_signature_is_async_false.0b97d59b38": [], "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_is_async_true.81e24f5936": [], "test.livequery_models.test__live_udf_api_v2_post_jsonrpc_is_async_false.e9d84deb2e": [], "test.livequery_models.test___utils_udf_introspect.79bd27a18b": [], "test.livequery_models.test__utils_udf_json_rpc_call.0b87c6050e": [], "test.livequery_models.test__utils_udf_urlencode_dict_true_1.3bf42c4e1b": [], "test.livequery_models.test__utils_udf_urlencode_dict_true_2.764afd6db8": [], "test.livequery_models.test__utils_udf_urlencode_dict_true_space.11f0932fc3": [], "test.livequery_models.test__utils_udf_urlencode_dict_true_special.4eef6cb355": [], "test.livequery_models.test__utils_udf_urlencode_dict_true_array.614d53ca8a": [], "test.livequery_models.test__utils_udf_urlencode_dict_false_1.e2e07ad77a": [], "test.livequery_models.test__utils_udf_urlencode_dict_false_2.58739709ab": [], "test.livequery_models.test__utils_udf_urlencode_dict_false_space.1167d3f089": [], "test.livequery_models.test__utils_udf_urlencode_dict_false_special.0cd3cb5826": [], "test.livequery_models.test__utils_udf_urlencode_dict_false_array.9524cea2e8": [], "test.livequery_models.test__utils_udf_urlencode_dict_1.1d75f92e0e": [], "test.livequery_models.test__utils_udf_urlencode_dict_2.60da312d8c": [], "test.livequery_models.test__utils_udf_urlencode_dict_space.d5e1917fd6": [], "test.livequery_models.test__utils_udf_urlencode_dict_special.6f25d30fd9": [], "test.livequery_models.test__utils_udf_urlencode_dict_array.25f6af5cf8": [], "test.livequery_models.test__utils_udf_urlencode_array_true_1.f1dc90fd5d": [], "test.livequery_models.test__utils_udf_urlencode_array_true_2.4c09ca3de2": [], "test.livequery_models.test__utils_udf_urlencode_array_true_space.c150fa3544": [], "test.livequery_models.test__utils_udf_urlencode_array_true_special.14abbd82f3": [], "test.livequery_models.test__utils_udf_urlencode_array_true_array.559475a80a": [], "test.livequery_models.test__utils_udf_urlencode_array_false_1.ffe0d93235": [], "test.livequery_models.test__utils_udf_urlencode_array_false_2.f6e4d9a06a": [], "test.livequery_models.test__utils_udf_urlencode_array_false_space.c46a422a10": [], "test.livequery_models.test__utils_udf_urlencode_array_false_special.ad3b4ce496": [], "test.livequery_models.test__utils_udf_urlencode_array_false_array.979bfafd11": [], "test.livequery_models.test__utils_udf_urlencode_array_1.bae96ece17": [], "test.livequery_models.test__utils_udf_urlencode_array_2.ff2898d4a2": [], "test.livequery_models.test__utils_udf_urlencode_array_space.67b6f51498": [], "test.livequery_models.test__utils_udf_urlencode_array_special.746423269a": [], "test.livequery_models.test__utils_udf_urlencode_array_array.3d05dcb6a9": [], "test.livequery_models.test__utils_udf_int_to_binary.46856460db": [], "test.livequery_models.test__utils_udf_int_to_binary_large_number.feba996e3b": [], "test.livequery_models.test__utils_udf_binary_to_int.907b20f381": [], "test.livequery_models.test__utils_udf_binary_to_int_large_number.926bff44e9": [], "test.livequery_models.test__utils_udf_evm_decode_log.b6fedb07e9": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__verified_abis_recent_CONTRACT_ADDRESS.788bba3ee1": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__verified_abis_full_CONTRACT_ADDRESS.15e49a38cc": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__user_verified_abis_recent_ID.053fe12111": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__user_verified_abis_full_ID.8832906bf1": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__bytecode_abis_full_CONTRACT_ADDRESS__ABI_HASH.111a1fed7f": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__bytecode_abis_recent_CONTRACT_ADDRESS__ABI_HASH.eab02f6812": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__abis_full_CONTRACT_ADDRESS.6bc2b660ff": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__abis_recent_CONTRACT_ADDRESS.136d8d9ae5": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__complete_event_abis_full_PARENT_CONTRACT_ADDRESS__EVENT_SIGNATURE__START_BLOCK.81837f99b9": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__complete_event_abis_recent_PARENT_CONTRACT_ADDRESS__EVENT_SIGNATURE__START_BLOCK.f72f3b769f": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__dim_contract_abis_recent_CONTRACT_ADDRESS.4dc01d4661": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__dim_contract_abis_full_CONTRACT_ADDRESS.fca68d5e2f": [], "test.fsc_evm.not_null_test_silver__decoded_logs_full_BLOCK_NUMBER.56f1e895c0": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_BLOCK_NUMBER__NUMBER__FLOAT.76675adfdf": [], "test.fsc_evm.not_null_test_silver__decoded_logs_full_TX_HASH.9bc0884cbc": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_full_TX_HASH__0_xX_0_9a_fA_F_.abdf44d14a": [], "test.fsc_evm.not_null_test_silver__decoded_logs_full_EVENT_INDEX.d402882c82": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_EVENT_INDEX__NUMBER__FLOAT.f03fc2121b": [], "test.fsc_evm.not_null_test_silver__decoded_logs_full_CONTRACT_ADDRESS.38ce06a72b": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.11ad7f4a46": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_EVENT_NAME__STRING__VARCHAR.d6989542d6": [], "test.fsc_evm.not_null_test_silver__decoded_logs_full_INSERTED_TIMESTAMP.947b1ded8c": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_full_INSERTED_TIMESTAMP__hour__2.6d11a12f63": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.6468c94ec8": [], "test.fsc_evm.not_null_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP.80dc3c0d89": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP__hour__2.23d29858c5": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.a1e69a24d9": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__decoded_logs_full_DECODED_LOGS_ID.537938d81c": [], "test.fsc_evm.not_null_test_silver__decoded_logs_recent_BLOCK_NUMBER.c8ab501b30": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_BLOCK_NUMBER__NUMBER__FLOAT.7feb70f478": [], "test.fsc_evm.not_null_test_silver__decoded_logs_recent_TX_HASH.6dfd6d6fcb": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_recent_TX_HASH__0_xX_0_9a_fA_F_.994fffe1a9": [], "test.fsc_evm.not_null_test_silver__decoded_logs_recent_EVENT_INDEX.a1b3a9a86b": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_EVENT_INDEX__NUMBER__FLOAT.722a3594c3": [], "test.fsc_evm.not_null_test_silver__decoded_logs_recent_CONTRACT_ADDRESS.4a09b257d3": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_silver__decoded_logs_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.585a24330b": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_EVENT_NAME__STRING__VARCHAR.4459c81b7f": [], "test.fsc_evm.not_null_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP.33bd9eb14a": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP__hour__2.24ba46645f": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b467671a96": [], "test.fsc_evm.not_null_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP.2bbb0bb170": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP__hour__2.4e95ef6f32": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__decoded_logs_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.76e468aa1e": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__decoded_logs_recent_DECODED_LOGS_ID.2bf95e427e": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_BLOCK_NUMBER.306b0da6a0": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP.9672b7c6fa": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP__hour__2.7139c09429": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.0db12ac511": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_HASH.3a5ade2127": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_POSITION.1f5c16c4dd": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_INDEX.db8d2710d0": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_CONTRACT_ADDRESS.8ee97e9829": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TOPICS.03f5444318": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TOPIC_0.852a0e07f6": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_DATA.4c46b98652": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_REMOVED.c806d11add": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_ORIGIN_FROM_ADDRESS.3db9f8fabd": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_ORIGIN_FUNCTION_SIGNATURE.d94e4328a7": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_TX_SUCCEEDED.ac8e3e83cb": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EVENT_NAME.a9a7c84d87": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_FULL_DECODED_LOG.7265873d57": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_DECODED_LOG.2f64537edd": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID.6d0c115405": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP.51f3049a5d": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP__hour__2.ffec548ee5": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.5c1c155df0": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP.73cd55cf8f": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP__hour__2.88cff525bb": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3b4c0128b9": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_decoded_event_logs_full_EZ_DECODED_EVENT_LOGS_ID.c654ef3a67": [], "test.fsc_evm.decoded_logs_exist_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_.2508ca290d": [], "test.fsc_evm.find_missing_decoded_logs_test_gold__ez_decoded_event_logs_full_ref_test_gold__fact_event_logs_full_.8f9f593cec": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_NUMBER.884d6d2b35": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP.de99ef8ef5": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP__hour__2.94ca90acca": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3f16df36a6": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_HASH.7d31037652": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_POSITION.84f236ac88": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_INDEX.cd56f89c46": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_CONTRACT_ADDRESS.447bc5cf3b": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TOPICS.599ba528df": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TOPIC_0.ddb723fd73": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_DATA.4dbf00dd37": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_REMOVED.83b01d4a77": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_ORIGIN_FROM_ADDRESS.66479f9f70": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE.861f210c46": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_TX_SUCCEEDED.453d880cda": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EVENT_NAME.b876563dc0": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_FULL_DECODED_LOG.8ee9749eea": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_DECODED_LOG.13e8c88a61": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID.45c5e0316f": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP.1571060655": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP__hour__2.1af0e5a39c": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.8c6610e7ff": [], "test.fsc_evm.not_null_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP.5dc86f315d": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP__hour__2.67b262c997": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_decoded_event_logs_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d286ab4bf8": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_decoded_event_logs_recent_EZ_DECODED_EVENT_LOGS_ID.17989a1b4f": [], "test.fsc_evm.decoded_logs_exist_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_.e2d790a075": [], "test.fsc_evm.find_missing_decoded_logs_test_gold__ez_decoded_event_logs_recent_ref_test_gold__fact_event_logs_recent_.995b3759d0": [], "test.fsc_evm.not_null_admin__fact_variables_PROJECT.b2ca5d3a9e": [], "test.fsc_evm.not_null_admin__fact_variables_KEY.d5252aea36": [], "test.fsc_evm.not_null_admin__fact_variables_VALUE.80c7190528": [], "test.fsc_evm.not_null_admin__fact_variables_FACT_VARIABLES_ID.c6bac6e9b3": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__fact_variables_FACT_VARIABLES_ID.28a6685d8c": [], "test.fsc_evm.not_null_admin__dim_variables_KEY.ad438e63ea": [], "test.fsc_evm.not_null_admin__dim_variables_DEFAULT_VALUE.5be079ad3d": [], "test.fsc_evm.not_null_admin__dim_variables_DEFAULT_TYPE.ec8ae8bee2": [], "test.fsc_evm.not_null_admin__dim_variables_DIM_VARIABLES_ID.f1639e77e6": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__dim_variables_DIM_VARIABLES_ID.9de48d7fec": [], "test.fsc_evm.not_null_admin__ez_variables_PROJECT.59fd01d4c5": [], "test.fsc_evm.not_null_admin__ez_variables_KEY.4fc63e44ee": [], "test.fsc_evm.not_null_admin__ez_variables_VALUE.72a144dfd6": [], "test.fsc_evm.not_null_admin__ez_variables_DEFAULT_VALUE.262d6c41bd": [], "test.fsc_evm.not_null_admin__ez_variables_DEFAULT_TYPE.341521dabe": [], "test.fsc_evm.not_null_admin__ez_variables_EZ_VARIABLES_ID.1d9b2c9591": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__ez_variables_EZ_VARIABLES_ID.3ed824ce43": [], "test.fsc_evm.not_null_admin__number_sequence__ID.1f1a84eef0": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_admin__number_sequence__ID.e4808fe515": [], "test.fsc_evm.not_null_silver__labels_BLOCKCHAIN.4d07b6112c": [], "test.fsc_evm.not_null_silver__labels_CREATOR.5f7302f7be": [], "test.fsc_evm.not_null_silver__labels_ADDRESS.88df57a9e0": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__labels_ADDRESS__0_xX_0_9a_fA_F_.4d2099651b": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_ADDRESS_NAME__STRING__VARCHAR.b440cff40f": [], "test.fsc_evm.not_null_silver__labels_LABEL_TYPE.3b980ae2db": [], "test.fsc_evm.not_null_silver__labels_LABEL_SUBTYPE.01346344a7": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_LABEL_SUBTYPE__STRING__VARCHAR.c6eb320168": [], "test.fsc_evm.not_null_silver__labels_PROJECT_NAME.c87a158893": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__labels_PROJECT_NAME__STRING__VARCHAR.81fdcfbdf9": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__labels_BLOCKCHAIN__CREATOR__ADDRESS.8355a7dbdd": [], "test.fsc_evm.not_null_test_silver__traces_recent_BLOCK_NUMBER.77a4699f36": [], "test.fsc_evm.not_null_test_silver__traces_recent_TX_POSITION.92be43f8d5": [], "test.fsc_evm.not_null_test_silver__traces_recent_TRACE_ADDRESS.7c6de48691": [], "test.fsc_evm.not_null_test_silver__traces_recent_TRACE_JSON.904b3c8953": [], "test.fsc_evm.not_null_test_silver__traces_recent__INSERTED_TIMESTAMP.29dedb5f0f": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent__INSERTED_TIMESTAMP__hour__2.bd68103a61": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.bc16a42d4e": [], "test.fsc_evm.not_null_test_silver__traces_recent_INSERTED_TIMESTAMP.4f0efcf34b": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent_INSERTED_TIMESTAMP__hour__2.a4ba5cf674": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.78e1fb01e0": [], "test.fsc_evm.not_null_test_silver__traces_recent_MODIFIED_TIMESTAMP.c50eaa6905": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_recent_MODIFIED_TIMESTAMP__hour__2.f7eb4af9c0": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.640b8be095": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__traces_recent_TRACES_ID.f53f7f25ae": [], "test.fsc_evm.not_null_test_silver__traces_full_BLOCK_NUMBER.ab8fe90ce8": [], "test.fsc_evm.not_null_test_silver__traces_full_TX_POSITION.663fe545e9": [], "test.fsc_evm.not_null_test_silver__traces_full_TRACE_ADDRESS.91648874f9": [], "test.fsc_evm.not_null_test_silver__traces_full_TRACE_JSON.2c7accaa84": [], "test.fsc_evm.not_null_test_silver__traces_full__INSERTED_TIMESTAMP.c33692687a": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full__INSERTED_TIMESTAMP__hour__2.8beb22e4b2": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.10c3de9ee1": [], "test.fsc_evm.not_null_test_silver__traces_full_INSERTED_TIMESTAMP.ab90de5f2b": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full_INSERTED_TIMESTAMP__hour__2.316bf2d6b0": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.254ed0fd41": [], "test.fsc_evm.not_null_test_silver__traces_full_MODIFIED_TIMESTAMP.73532cff85": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__traces_full_MODIFIED_TIMESTAMP__hour__2.d8baad76f3": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__traces_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.691866e8c0": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__traces_full_TRACES_ID.9083101264": [], "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_BLOCK_NUMBER.4357645cb7": [], "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_TX_HASH.7f8b64f808": [], "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP.673cf1e88f": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP__hour__8.7a2d73b21b": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__confirm_blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.6f365bb04d": [], "test.fsc_evm.not_null_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID.ec8360ef95": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__confirm_blocks_recent_CONFIRM_BLOCKS_ID.078268d9c9": [], "test.fsc_evm.not_null_test_silver__confirm_blocks_full_BLOCK_NUMBER.acad1c43e7": [], "test.fsc_evm.not_null_test_silver__confirm_blocks_full_TX_HASH.670ec66eec": [], "test.fsc_evm.not_null_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP.6a2a4b0667": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP__hour__8.64521c931b": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__confirm_blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b66a5f5fde": [], "test.fsc_evm.not_null_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID.6dbbf2334b": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__confirm_blocks_full_CONFIRM_BLOCKS_ID.7a1d987054": [], "test.fsc_evm.not_null_test_silver__blocks_recent_BLOCK_NUMBER.cec2c84102": [], "test.fsc_evm.not_null_test_silver__blocks_recent_BLOCK_JSON.aabd0a98d5": [], "test.fsc_evm.not_null_test_silver__blocks_recent__INSERTED_TIMESTAMP.071a17cc08": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent__INSERTED_TIMESTAMP__hour__2.fb61245227": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e3a06da0df": [], "test.fsc_evm.not_null_test_silver__blocks_recent_INSERTED_TIMESTAMP.0004e5d07b": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent_INSERTED_TIMESTAMP__hour__2.5a605c6511": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.8f37f2afc2": [], "test.fsc_evm.not_null_test_silver__blocks_recent_MODIFIED_TIMESTAMP.d5c1fe9610": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_recent_MODIFIED_TIMESTAMP__hour__2.f4efbc4d10": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.53bf4df35e": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__blocks_recent_BLOCK_NUMBER.0239d065a4": [], "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__blocks_recent_BLOCK_NUMBER.a11e2bbd58": [], "test.fsc_evm.not_null_test_silver__blocks_full_BLOCK_NUMBER.3b7e4315a5": [], "test.fsc_evm.not_null_test_silver__blocks_full_BLOCK_JSON.0bc7eee26e": [], "test.fsc_evm.not_null_test_silver__blocks_full__INSERTED_TIMESTAMP.1d36f7af40": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full__INSERTED_TIMESTAMP__hour__2.00b41ab86e": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.f23f93c193": [], "test.fsc_evm.not_null_test_silver__blocks_full_INSERTED_TIMESTAMP.37557f958c": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full_INSERTED_TIMESTAMP__hour__2.cf055b5ea3": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4d5ee11ce4": [], "test.fsc_evm.not_null_test_silver__blocks_full_MODIFIED_TIMESTAMP.463b450a84": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__blocks_full_MODIFIED_TIMESTAMP__hour__2.ba9359c374": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__blocks_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.22abd38316": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__blocks_full_BLOCK_NUMBER.be5f891d6b": [], "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__blocks_full_BLOCK_NUMBER.67e6cd85ce": [], "test.fsc_evm.not_null_test_silver__contracts_recent_CONTRACT_ADDRESS.037aff5161": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__contracts_recent_CONTRACT_ADDRESS.86e2c4e62c": [], "test.fsc_evm.not_null_test_silver__contracts_full_CONTRACT_ADDRESS.1e6edb77c6": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__contracts_full_CONTRACT_ADDRESS.0763359ca5": [], "test.fsc_evm.not_null_test_silver__created_contracts_full_BLOCK_TIMESTAMP.656e8a5526": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_full_BLOCK_TIMESTAMP__day__1.47c627b66b": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_full_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.3cf23748a5": [], "test.fsc_evm.not_null_test_silver__created_contracts_full__INSERTED_TIMESTAMP.c6b7aec473": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_full__INSERTED_TIMESTAMP__day__1.f18b9fe607": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_full__INSERTED_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.8c87acbb48": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__created_contracts_full_created_contract_address.e21b0009b3": [], "test.fsc_evm.not_null_test_silver__created_contracts_recent_BLOCK_TIMESTAMP.734876c6a9": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_recent_BLOCK_TIMESTAMP__day__1.0c68c9f927": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_recent_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.3661419d77": [], "test.fsc_evm.not_null_test_silver__created_contracts_recent__INSERTED_TIMESTAMP.f3206a6f1a": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__created_contracts_recent__INSERTED_TIMESTAMP__day__1.ca46deddf6": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__created_contracts_recent__INSERTED_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.f0ec5f4645": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__created_contracts_recent_created_contract_address.5c757b7d79": [], "test.fsc_evm.not_null_test_silver__receipts_full_BLOCK_NUMBER.b8318adb18": [], "test.fsc_evm.not_null_test_silver__receipts_full_RECEIPTS_JSON.60e73b67be": [], "test.fsc_evm.not_null_test_silver__receipts_full__INSERTED_TIMESTAMP.daab58d3d3": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full__INSERTED_TIMESTAMP__hour__2.4c5fd60675": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.63454383b5": [], "test.fsc_evm.not_null_test_silver__receipts_full_INSERTED_TIMESTAMP.eba05ceee3": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full_INSERTED_TIMESTAMP__hour__2.efed27386e": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.f626a67c39": [], "test.fsc_evm.not_null_test_silver__receipts_full_MODIFIED_TIMESTAMP.23b69b4875": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_full_MODIFIED_TIMESTAMP__hour__2.89a13f7252": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c6d76da598": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__receipts_full_RECEIPTS_ID.443fd400ca": [], "test.fsc_evm.not_null_test_silver__receipts_recent_BLOCK_NUMBER.a025315ae3": [], "test.fsc_evm.not_null_test_silver__receipts_recent_RECEIPTS_JSON.edca36b9ab": [], "test.fsc_evm.not_null_test_silver__receipts_recent__INSERTED_TIMESTAMP.3caff14157": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent__INSERTED_TIMESTAMP__hour__2.33483a04fc": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7652c2220b": [], "test.fsc_evm.not_null_test_silver__receipts_recent_INSERTED_TIMESTAMP.30ae8bca8d": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent_INSERTED_TIMESTAMP__hour__2.c1b0f8737b": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.baec638420": [], "test.fsc_evm.not_null_test_silver__receipts_recent_MODIFIED_TIMESTAMP.4d91715550": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__receipts_recent_MODIFIED_TIMESTAMP__hour__2.30705ba06a": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__receipts_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.1cbb56fb12": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__receipts_recent_RECEIPTS_ID.72c2ba1bb5": [], "test.fsc_evm.not_null_test_silver__transactions_recent_BLOCK_NUMBER.de7069ea97": [], "test.fsc_evm.not_null_test_silver__transactions_recent_TX_POSITION.bf77824ca2": [], "test.fsc_evm.not_null_test_silver__transactions_recent_TRANSACTION_JSON.fd6c02a4c1": [], "test.fsc_evm.not_null_test_silver__transactions_recent__INSERTED_TIMESTAMP.88fde180fc": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent__INSERTED_TIMESTAMP__hour__2.e62a731dc8": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.dadf3a2ece": [], "test.fsc_evm.not_null_test_silver__transactions_recent_INSERTED_TIMESTAMP.ca4e4a608d": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent_INSERTED_TIMESTAMP__hour__2.17e59f939c": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.9fe6abc15c": [], "test.fsc_evm.not_null_test_silver__transactions_recent_MODIFIED_TIMESTAMP.6a9e4ad896": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_recent_MODIFIED_TIMESTAMP__hour__2.0fc697aad1": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.9d61391097": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__transactions_recent_TRANSACTIONS_ID.7c9f74baa9": [], "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__transactions_recent_TX_POSITION__BLOCK_NUMBER.3be96c2d1d": [], "test.fsc_evm.not_null_test_silver__transactions_full_BLOCK_NUMBER.10f008705d": [], "test.fsc_evm.not_null_test_silver__transactions_full_TX_POSITION.0f91433ce2": [], "test.fsc_evm.not_null_test_silver__transactions_full_TRANSACTION_JSON.5c28fd61a2": [], "test.fsc_evm.not_null_test_silver__transactions_full__INSERTED_TIMESTAMP.e767bd3e15": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full__INSERTED_TIMESTAMP__hour__2.461c571e72": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.dce86b4eb0": [], "test.fsc_evm.not_null_test_silver__transactions_full_INSERTED_TIMESTAMP.ca671e00f0": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full_INSERTED_TIMESTAMP__hour__2.e9cf80dd1c": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.46c3120d2d": [], "test.fsc_evm.not_null_test_silver__transactions_full_MODIFIED_TIMESTAMP.8ce00858b9": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__transactions_full_MODIFIED_TIMESTAMP__hour__2.fd041d9a4a": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__transactions_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.d1737769ad": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__transactions_full_TRANSACTIONS_ID.b3643be5d1": [], "test.fsc_evm.fsc_evm_sequence_gaps_test_silver__transactions_full_TX_POSITION__BLOCK_NUMBER.a64778c1c0": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__proxies_full__ID.bab8372ca0": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__proxies_recent__ID.0c4929fb5b": [], "test.fsc_evm.not_null_streamline__get_chainhead_BLOCK_NUMBER.504ea108a4": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_BLOCK_NUMBER.d457327d7c": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_BLOCK_NUMBER__NUMBER__FLOAT.31727446c1": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_BLOCK_TIMESTAMP.cda64f37d1": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_BLOCK_TIMESTAMP__hour__2.d62edf20de": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3a97986c59": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_HASH.fdd1a78f2f": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_TX_HASH__0_xX_0_9a_fA_F_.f88bea7ab6": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_POSITION.cd5aab01f0": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_TX_POSITION__NUMBER__FLOAT.81ee6df17c": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_INDEX.00c0917eec": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_recent_TRACE_INDEX__NUMBER__FLOAT.0fb959327e": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_FROM_ADDRESS.e42c02340f": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.6f01aa59cb": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.ffc328a26e": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_INPUT.b4e1faa8be": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_TYPE.d15c335bcb": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_ADDRESS.86ed5a1d98": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_SUB_TRACES.4cb72b9d8c": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE.8b0bc69a85": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_PRECISE_RAW.0c0dcc217b": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_PRECISE.d873ec7feb": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_VALUE_HEX.7a2a3e4634": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_ORIGIN_FROM_ADDRESS.bc94384fb7": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_ORIGIN_FUNCTION_SIGNATURE.f967f0e608": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_TRACE_SUCCEEDED.9a3cc510bc": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_TX_SUCCEEDED.e488b18268": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_FACT_TRACES_ID.5ec564f014": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_INSERTED_TIMESTAMP.fe2de85a12": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_INSERTED_TIMESTAMP__hour__2.6a5297f507": [], "test.fsc_evm.not_null_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP.7dd9cf25d3": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_recent_MODIFIED_TIMESTAMP__hour__2.d8b7ffcaca": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_traces_recent_TX_HASH__TRACE_INDEX.4487675007": [], "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_traces_recent_TRACE_INDEX__TX_HASH.6c15fc0c52": [], "test.fsc_evm.txs_have_traces_test_gold__fact_traces_recent_ref_test_gold__fact_transactions_recent_.5b2a8b5ca4": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_BLOCK_NUMBER.ef072a7cea": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_BLOCK_NUMBER__NUMBER__FLOAT.065c833ed1": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_BLOCK_TIMESTAMP.f598b4bc90": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_BLOCK_TIMESTAMP__hour__2.6b827e0d56": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4682c97f81": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_HASH.7af5bb693e": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_TX_HASH__0_xX_0_9a_fA_F_.a50cc790b3": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_POSITION.d76ba851b9": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_TX_POSITION__NUMBER__FLOAT.6c3cd6ac49": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_INDEX.0ec0ee0f92": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_traces_full_TRACE_INDEX__NUMBER__FLOAT.fbac1ab3f2": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_FROM_ADDRESS.527a050b74": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.7b65729d3c": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_traces_full_TO_ADDRESS__0_xX_0_9a_fA_F_.f8d47ec7e6": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_INPUT.72da83c733": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_TYPE.dd106bd70a": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_ADDRESS.daabd36c03": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_SUB_TRACES.0335817c13": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE.a5c2d5cb74": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_PRECISE_RAW.d1e83172a7": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_PRECISE.f5a509ff49": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_VALUE_HEX.1a5a1ee8a5": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_ORIGIN_FROM_ADDRESS.8987e52474": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_ORIGIN_FUNCTION_SIGNATURE.d3332ad3dd": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_TRACE_SUCCEEDED.3fd972f5b7": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_TX_SUCCEEDED.217432b07d": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_FACT_TRACES_ID.abf9596ec6": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_INSERTED_TIMESTAMP.b2ca0ceed2": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_INSERTED_TIMESTAMP__hour__2.eae85b300c": [], "test.fsc_evm.not_null_test_gold__fact_traces_full_MODIFIED_TIMESTAMP.3f799b0371": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_traces_full_MODIFIED_TIMESTAMP__hour__2.d9cadbf789": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_traces_full_TX_HASH__TRACE_INDEX.7f6d6a8ebe": [], "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_traces_full_TRACE_INDEX__TX_HASH.4c79dbc511": [], "test.fsc_evm.txs_have_traces_test_gold__fact_traces_full_ref_test_gold__fact_transactions_full_.1c3ecccef2": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_BLOCK_NUMBER.ab8d5d8e4c": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.4d67ac0920": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP.f39a6a04de": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP__hour__3.cb9fd0826a": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.cbfe040895": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_TX_HASH.d65cfc264e": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.403a0d410c": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS.a4658e804e": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.53adf4570d": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_FROM_ADDRESS.2c69eb9d6a": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.a5a0db81dc": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_TO_ADDRESS.a5feb6a9bf": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.cd3a28165e": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_RAW_AMOUNT.62229d27e9": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_recent_RAW_AMOUNT__NUMBER__FLOAT.0ce022106e": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID.e204f7c6ee": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_ORIGIN_FUNCTION_SIGNATURE.ee7a08f37f": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_recent_ORIGIN_FROM_ADDRESS.c65a204117": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.85e49c2533": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_recent_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.f542f4cc0f": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_token_transfers_recent_EZ_TOKEN_TRANSFERS_ID.36d8d8661a": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_BLOCK_NUMBER.c281a15c7c": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.cf7a275c18": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP.3015447008": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP__hour__3.186f75bd44": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_NTZ__TIMESTAMP_LTZ.5025592820": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_TX_HASH.bf35dc7aec": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.dde3475101": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS.8384cb648a": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.f04c6eba97": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_FROM_ADDRESS.f2cd4b35a9": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.c61b6f0c34": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_TO_ADDRESS.50fe049e34": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_TO_ADDRESS__0_xX_0_9a_fA_F_.4e9427647b": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_RAW_AMOUNT.ca974f9bde": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_token_transfers_full_RAW_AMOUNT__NUMBER__FLOAT.e29960d304": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID.dbb70e1221": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_ORIGIN_FUNCTION_SIGNATURE.de76042d6e": [], "test.fsc_evm.not_null_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS.95a4909c44": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.0056122d14": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_token_transfers_full_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.e48a268383": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_token_transfers_full_EZ_TOKEN_TRANSFERS_ID.b52f0fec49": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_BLOCK_NUMBER.76acdf0f28": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_BLOCK_NUMBER__NUMBER.8148040748": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP.32a4782af7": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP__hour__2.677cfb4387": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.461cb228ca": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_HASH.e76669565b": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_TX_HASH__0_xX_0_9a_fA_F_.13ee5cd65b": [], "test.fsc_evm.fsc_utils_tx_block_count_test_gold__fact_event_logs_full_TX_HASH.b31311d808": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_POSITION.2791b096bd": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_TX_POSITION__NUMBER__FLOAT.1244edc76e": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_EVENT_INDEX.c6e1f7c07f": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_full_EVENT_INDEX__NUMBER__FLOAT.ba4706e35d": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_CONTRACT_ADDRESS.d7ef6c7fb1": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.e11ba68261": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TOPICS.c0ac9e4c8a": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_DATA.d22b95cbe2": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_EVENT_REMOVED.3234e54d57": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS.3bc67218ac": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.eb95035ba4": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_full_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.356e5b7689": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_ORIGIN_FUNCTION_SIGNATURE.81cc4e99fd": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_TX_SUCCEEDED.a552892b92": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_FACT_EVENT_LOGS_ID.f7cadc54a4": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP.0653b623df": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_INSERTED_TIMESTAMP__hour__2.66cacb203e": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP.bd570cee7b": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_full_MODIFIED_TIMESTAMP__hour__2.9ae1d3b725": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_event_logs_full_TX_HASH__EVENT_INDEX.164d9b638c": [], "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_event_logs_full_EVENT_INDEX__BLOCK_NUMBER.13a5a78e6f": [], "test.fsc_evm.events_match_txs_test_gold__fact_event_logs_full_ref_test_gold__fact_transactions_full_.5a7952a816": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_BLOCK_NUMBER.175fc10a23": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_BLOCK_NUMBER__NUMBER.f023a7fa38": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP.01f36159ef": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP__hour__2.bca2ba239f": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7806b0df5f": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_HASH.7aaa319baa": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_TX_HASH__0_xX_0_9a_fA_F_.d7f102a501": [], "test.fsc_evm.fsc_utils_tx_block_count_test_gold__fact_event_logs_recent_TX_HASH.4d9f53b085": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_POSITION.6b3cf4b320": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_TX_POSITION__NUMBER__FLOAT.400e138c88": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_EVENT_INDEX.bebac92256": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_event_logs_recent_EVENT_INDEX__NUMBER__FLOAT.4b5e283568": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS.b4d519e230": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.3d58ac3aa0": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TOPICS.9f5c99369f": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_DATA.297d8e5e96": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_EVENT_REMOVED.c575d9ca64": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS.bc086d9e05": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_ORIGIN_FROM_ADDRESS__0_xX_0_9a_fA_F_.dbd110b4d3": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_event_logs_recent_ORIGIN_TO_ADDRESS__0_xX_0_9a_fA_F_.be409440dd": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_ORIGIN_FUNCTION_SIGNATURE.c81a26b80c": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_TX_SUCCEEDED.66bec17605": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_FACT_EVENT_LOGS_ID.91901e9d78": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP.c8bd425490": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_INSERTED_TIMESTAMP__hour__2.509d7d2de4": [], "test.fsc_evm.not_null_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP.85e778caed": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_event_logs_recent_MODIFIED_TIMESTAMP__hour__2.742de25dd6": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_event_logs_recent_TX_HASH__EVENT_INDEX.63ec130f07": [], "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_event_logs_recent_EVENT_INDEX__BLOCK_NUMBER.3d7998b618": [], "test.fsc_evm.events_match_txs_test_gold__fact_event_logs_recent_ref_test_gold__fact_transactions_recent_.3f449de1cd": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_NUMBER.9061fb0407": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_BLOCK_NUMBER__NUMBER__FLOAT.a0aef7af7c": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_HASH.fc40219b9b": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_BLOCK_HASH__0_xX_0_9a_fA_F_.44301d7b7c": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP.94fcac91b2": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.a84c388c6a": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_BLOCK_TIMESTAMP__hour__2.4589bd9103": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_NETWORK.34f87743f3": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_NETWORK___a_zA_Z0_9__.9b67337d7a": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_TX_COUNT.2ab3789a46": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_TX_COUNT__NUMBER__FLOAT.be245b701f": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_SIZE.e3303070ef": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_SIZE__NUMBER__FLOAT.b9716a702f": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_MINER.a44712730d": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_MINER__0_xX_0_9a_fA_F_.81a710571a": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_EXTRA_DATA.c1204d1482": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_PARENT_HASH.339dcfcc3c": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_PARENT_HASH__0_xX_0_9a_fA_F_.6b67f778c4": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_GAS_USED__NUMBER__FLOAT.6540d38a1f": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_GAS_LIMIT.f49dbdd7e1": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_GAS_LIMIT__NUMBER__FLOAT.a04528bc5d": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_DIFFICULTY__NUMBER__FLOAT.3dbebb71ca": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_SHA3_UNCLES.0d2fae6c58": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_UNCLE_BLOCKS.3393af752e": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_NONCE__NUMBER__FLOAT.1083444a52": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_RECEIPTS_ROOT.dc843e4165": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.77793690bd": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_STATE_ROOT.da47dabf27": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_STATE_ROOT__0_xX_0_9a_fA_F_.467353aa70": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT.566be08af9": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_TRANSACTIONS_ROOT__0_xX_0_9a_fA_F_.47d739e923": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_LOGS_BLOOM.633277005e": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_recent_LOGS_BLOOM__0_xX_0_9a_fA_F_.f5af8d2584": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_FACT_BLOCKS_ID.a71e6bc73d": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_unique_test_gold__fact_blocks_recent_FACT_BLOCKS_ID.d5e1fb66c7": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP.38071aedba": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP__hour__2.92c0a04348": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3aed81ccad": [], "test.fsc_evm.not_null_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP.97bc7f13ae": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP__hour__2.253aae44aa": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b67cb105f5": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_blocks_recent_BLOCK_NUMBER.e708e85fee": [], "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_blocks_recent_BLOCK_NUMBER.a1a1f456ae": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_NUMBER.f3098a994a": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_BLOCK_NUMBER__NUMBER__FLOAT.a26946ebdc": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_HASH.8dee9b8914": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_BLOCK_HASH__0_xX_0_9a_fA_F_.f2f5d9dc2f": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_BLOCK_TIMESTAMP.3a590c964b": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.65dfa2ec4d": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_BLOCK_TIMESTAMP__hour__2.4d38c1199d": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_NETWORK.f4601bdcec": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_NETWORK___a_zA_Z0_9__.c5c8f0a0cc": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_TX_COUNT.ea1dabd60a": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_TX_COUNT__NUMBER__FLOAT.ba256986bd": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_SIZE.7f5752ed31": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_SIZE__NUMBER__FLOAT.a537b42b6c": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_MINER.8de6a9c8f5": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_MINER__0_xX_0_9a_fA_F_.dc25f4c8de": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_EXTRA_DATA.f2257373c4": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_PARENT_HASH.7c8b3fff47": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_PARENT_HASH__0_xX_0_9a_fA_F_.68e75bb757": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_GAS_USED__NUMBER__FLOAT.c2e16f1869": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_GAS_LIMIT.f2dbecd61f": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_GAS_LIMIT__NUMBER__FLOAT.bdee5c4523": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_DIFFICULTY__NUMBER__FLOAT.4197d7bd8c": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_SHA3_UNCLES.eec76f65cc": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_UNCLE_BLOCKS.9b8edf4bfd": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_NONCE__NUMBER__FLOAT.74da207967": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_RECEIPTS_ROOT.6eb806e5a4": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_RECEIPTS_ROOT__0_xX_0_9a_fA_F_.2a0915d40b": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_STATE_ROOT.1c61a48d97": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_STATE_ROOT__0_xX_0_9a_fA_F_.62e12dc84f": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_TRANSACTIONS_ROOT.53175038a7": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_TRANSACTIONS_ROOT__0_xX_0_9a_fA_F_.8d1b61bce1": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_LOGS_BLOOM.490b2e508d": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_blocks_full_LOGS_BLOOM__0_xX_0_9a_fA_F_.73ad80f09c": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_FACT_BLOCKS_ID.0ff5f55ac4": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_unique_test_gold__fact_blocks_full_FACT_BLOCKS_ID.484aaf9b82": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_INSERTED_TIMESTAMP.48b29759a8": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_INSERTED_TIMESTAMP__hour__2.3cb43deaa6": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e8c1190abb": [], "test.fsc_evm.not_null_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP.3996175adf": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP__hour__2.d75178fa1c": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_blocks_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.04ccc1e679": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_blocks_full_BLOCK_NUMBER.b470c9b0e0": [], "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_blocks_full_BLOCK_NUMBER.6f6c66623c": [], "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_BLOCK_NUMBER.3da7a0c428": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.bce0936e10": [], "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP.9bff42bf90": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP__hour__3.21a3a75c8f": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b52e7b4dcf": [], "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_TX_HASH.e069256b19": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_native_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.15293d5591": [], "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_FROM_ADDRESS.f1de7fc788": [], "test.fsc_evm.not_null_test_gold__ez_native_transfers_full_AMOUNT.b8f4300dc9": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_full_AMOUNT__NUMBER__FLOAT.7c64e2a5d0": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_native_transfers_full_EZ_NATIVE_TRANSFERS_ID.8e978e6b17": [], "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_BLOCK_NUMBER.277bef24ac": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.81a99604c2": [], "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP.3873d5cdc6": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP__hour__3.06e5f301c9": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c85b3e577e": [], "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_TX_HASH.9e5afe0aff": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_native_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.b4ae42a72b": [], "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_FROM_ADDRESS.6bea14a19a": [], "test.fsc_evm.not_null_test_gold__ez_native_transfers_recent_AMOUNT.962946cb51": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_native_transfers_recent_AMOUNT__NUMBER__FLOAT.b3aafcb7e6": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_native_transfers_recent_EZ_NATIVE_TRANSFERS_ID.c7c417aa6a": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_BLOCK_NUMBER.a56487d0d2": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_BLOCK_NUMBER__NUMBER__FLOAT.5d89afa477": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP.0dfa5d9bbc": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.cffc3ef224": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_BLOCK_TIMESTAMP__hour__2.e7899727e4": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_HASH.2562021784": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_TX_HASH__0_xX_0_9a_fA_F_.6c5a3d3af9": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_FROM_ADDRESS.f6687a1d92": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.9235dce9b7": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.cc531991fa": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_ORIGIN_FUNCTION_SIGNATURE.55dc566734": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE.e5b387a31d": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE_PRECISE_RAW.5cee0b299e": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_VALUE_PRECISE.3b69d58f94": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_FEE.fa909d23b7": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_FEE_PRECISE.1ca90b56ab": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_SUCCEEDED.8ed2d84f45": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_TYPE.9ffebdfc52": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_NONCE.151663a822": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_TX_POSITION.459ccef5c1": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_recent_TX_POSITION__NUMBER__FLOAT.4b5af30d3b": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_INPUT_DATA.0c71a3add2": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_GAS_LIMIT.0570943628": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_CUMULATIVE_GAS_USED.53f3097347": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_R.25ff796006": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_S.415d28f531": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_V.c6c8b50102": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_FACT_TRANSACTIONS_ID.e7b3d89825": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP.12f51bf377": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_INSERTED_TIMESTAMP__hour__2.81da35ef44": [], "test.fsc_evm.not_null_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP.82fda9d680": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_recent_MODIFIED_TIMESTAMP__hour__2.68cd5b81d5": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_transactions_recent_TX_HASH.07b6bc79fa": [], "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_transactions_recent_TX_POSITION__BLOCK_NUMBER.dadcf142a0": [], "test.fsc_evm.txs_match_blocks_test_gold__fact_transactions_recent_ref_test_gold__fact_blocks_recent_.788e86d48f": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_BLOCK_NUMBER.d91075d3e5": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_BLOCK_NUMBER__NUMBER__FLOAT.f75d3f5f2b": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_BLOCK_TIMESTAMP.20e3f64edd": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e339fe42ef": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_BLOCK_TIMESTAMP__hour__2.b2b7b2723b": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_HASH.7a79eff2d8": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_TX_HASH__0_xX_0_9a_fA_F_.60bef77cff": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_FROM_ADDRESS.ad4c8e2694": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.8794e23ba3": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__fact_transactions_full_TO_ADDRESS__0_xX_0_9a_fA_F_.bd70190cf6": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_ORIGIN_FUNCTION_SIGNATURE.c97ff6fa70": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE.fcb488bf96": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE_PRECISE_RAW.14c29d688d": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_VALUE_PRECISE.59f993bcda": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_FEE.f5351603f2": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_FEE_PRECISE.161ef1c3a1": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_SUCCEEDED.0932db54b6": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_TYPE.9c605a5a95": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_NONCE.ea08f1a1ba": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_TX_POSITION.fa8e858e99": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__fact_transactions_full_TX_POSITION__NUMBER__FLOAT.473e47a660": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_INPUT_DATA.388b4be0ae": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_GAS_LIMIT.5c5592b6ac": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_CUMULATIVE_GAS_USED.88f6b855e0": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_R.1699801aae": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_S.cff5ed8cca": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_V.a647e39488": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_FACT_TRANSACTIONS_ID.a9bd9374e2": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_INSERTED_TIMESTAMP.645083145d": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_INSERTED_TIMESTAMP__hour__2.9f370ce025": [], "test.fsc_evm.not_null_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP.a6ef34b987": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__fact_transactions_full_MODIFIED_TIMESTAMP__hour__2.bd49713839": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__fact_transactions_full_TX_HASH.ac75b8c705": [], "test.fsc_evm.fsc_evm_sequence_gaps_test_gold__fact_transactions_full_TX_POSITION__BLOCK_NUMBER.edeb24d95d": [], "test.fsc_evm.txs_match_blocks_test_gold__fact_transactions_full_ref_test_gold__fact_blocks_full_.d3390d5b0e": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_BLOCK_NUMBER.5a3535bb1a": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_BLOCK_NUMBER__NUMBER__FLOAT.5ec4aef06a": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP.580b67cb8c": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP__hour__3.2ad48fb9bf": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.945acce1de": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TX_HASH.66e383a70b": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_TX_HASH__0_xX_0_9a_fA_F_.523ec38237": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_EVENT_INDEX.85b975cd1b": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_INTRA_EVENT_INDEX.d4991df060": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS.35c96ffef7": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.c7f3997422": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_FROM_ADDRESS.fe828e0f8e": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_FROM_ADDRESS__0_xX_0_9a_fA_F_.ceafcdaa5b": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TO_ADDRESS.a5fba0294c": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_full_TO_ADDRESS__0_xX_0_9a_fA_F_.5c28de3d46": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_TOKEN_ID.74258e963a": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID.1c01304059": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_full_INSERTED_TIMESTAMP__hour__3.af9feb5290": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.499658c9bc": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_nft__ez_nft_transfers_full_EZ_NFT_TRANSFERS_ID.aa63995b75": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER.c391cc6a96": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_BLOCK_NUMBER__NUMBER__FLOAT.59a9a57567": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP.cb878cc127": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP__hour__3.2d99fe0ba2": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.01bb3ad3bd": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TX_HASH.336555c4d6": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_TX_HASH__0_xX_0_9a_fA_F_.7dfd5b1d49": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_EVENT_INDEX.ea83d8365e": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_INTRA_EVENT_INDEX.025edfde6b": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS.7f5d57c7b9": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.e901b29df2": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_FROM_ADDRESS.983881c27c": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_FROM_ADDRESS__0_xX_0_9a_fA_F_.3e8e3c0838": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TO_ADDRESS.ce1e8d5dfe": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_nft__ez_nft_transfers_recent_TO_ADDRESS__0_xX_0_9a_fA_F_.76a34d263a": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_TOKEN_ID.8827c1fad9": [], "test.fsc_evm.not_null_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID.071c327c9c": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_nft__ez_nft_transfers_recent_INSERTED_TIMESTAMP__hour__3.285e6fec43": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_nft__ez_nft_transfers_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7988c079e5": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_nft__ez_nft_transfers_recent_EZ_NFT_TRANSFERS_ID.815336f0e0": [], "test.fsc_evm.not_null_observability__transactions_TEST_TIMESTAMP.fcbece1b9f": [], "test.fsc_evm.accepted_values_recent_row_observability__transactions_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.eb2fcab8d1": [], "test.fsc_evm.not_null_observability__logs_TEST_TIMESTAMP.a8140bb427": [], "test.fsc_evm.accepted_values_recent_row_observability__logs_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.33a0e6880c": [], "test.fsc_evm.not_null_observability__traces_TEST_TIMESTAMP.4b6fefc2cc": [], "test.fsc_evm.accepted_values_recent_row_observability__traces_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.a009465ad0": [], "test.fsc_evm.not_null_observability__blocks_TEST_TIMESTAMP.6047fc0ddc": [], "test.fsc_evm.accepted_values_recent_row_observability__blocks_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.d058a90f3b": [], "test.fsc_evm.not_null_observability__receipts_TEST_TIMESTAMP.c023aec11f": [], "test.fsc_evm.accepted_values_recent_row_observability__receipts_BLOCKS_IMPACTED_COUNT__MISSING_LIST__TEST_TIMESTAMP__0.3c8361f4b6": [], "test.fsc_evm.not_null_silver__complete_native_asset_metadata_PROVIDER.2f310e1236": [], "test.fsc_evm.not_null_silver__complete_native_asset_metadata_SYMBOL.ff109ff1ee": [], "test.fsc_evm.not_null_silver__complete_native_asset_metadata_BLOCKCHAIN.fea8f73c16": [], "test.fsc_evm.not_null_silver__complete_native_asset_metadata_MODIFIED_TIMESTAMP.c6bcef6cb9": [], "test.fsc_evm.unique_silver__complete_native_asset_metadata_COMPLETE_NATIVE_ASSET_METADATA_ID.d98ec00bc9": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_native_asset_metadata_SYMBOL.6c5f561373": [], "test.fsc_evm.not_null_silver__complete_provider_prices_PROVIDER.982c1dc287": [], "test.fsc_evm.not_null_silver__complete_provider_prices_ASSET_ID.a10e7dad30": [], "test.fsc_evm.not_null_silver__complete_provider_prices_RECORDED_HOUR.73c3cfdf0d": [], "test.fsc_evm.not_null_silver__complete_provider_prices_MODIFIED_TIMESTAMP.b205ba003b": [], "test.fsc_evm.unique_silver__complete_provider_prices_COMPLETE_PROVIDER_PRICES_ID.52bf8dd406": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_provider_prices_ASSET_ID__RECORDED_HOUR__PROVIDER.6e3c3ab2b1": [], "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_PROVIDER.b0c689d31b": [], "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_ASSET_ID.b4b221e9f2": [], "test.fsc_evm.not_null_silver__complete_provider_asset_metadata_MODIFIED_TIMESTAMP.47fee02027": [], "test.fsc_evm.unique_silver__complete_provider_asset_metadata_COMPLETE_PROVIDER_ASSET_METADATA_ID.945e90b882": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_provider_asset_metadata_ASSET_ID__TOKEN_ADDRESS__NAME__SYMBOL__PLATFORM__PLATFORM_ID__PROVIDER.e355e7b6b2": [], "test.fsc_evm.not_null_silver__complete_token_asset_metadata_PROVIDER.0d1d2c6852": [], "test.fsc_evm.not_null_silver__complete_token_asset_metadata_TOKEN_ADDRESS.06a52e0e67": [], "test.fsc_evm.not_null_silver__complete_token_asset_metadata_BLOCKCHAIN.3791975c91": [], "test.fsc_evm.not_null_silver__complete_token_asset_metadata_BLOCKCHAIN_ID.fe8350a322": [], "test.fsc_evm.not_null_silver__complete_token_asset_metadata_MODIFIED_TIMESTAMP.58ef7db480": [], "test.fsc_evm.unique_silver__complete_token_asset_metadata_COMPLETE_TOKEN_ASSET_METADATA_ID.99f9227588": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_token_asset_metadata_TOKEN_ADDRESS__BLOCKCHAIN.d3d6b2a62b": [], "test.fsc_evm.not_null_silver__complete_native_prices_HOUR.84672fd317": [], "test.fsc_evm.not_null_silver__complete_native_prices_SYMBOL.640aa16109": [], "test.fsc_evm.not_null_silver__complete_native_prices_BLOCKCHAIN.3557f90197": [], "test.fsc_evm.not_null_silver__complete_native_prices_PROVIDER.391be2433a": [], "test.fsc_evm.not_null_silver__complete_native_prices_PRICE.5d22b3dfe0": [], "test.fsc_evm.not_null_silver__complete_native_prices_IS_IMPUTED.9b41704925": [], "test.fsc_evm.not_null_silver__complete_native_prices__INSERTED_TIMESTAMP.030d747f3c": [], "test.fsc_evm.not_null_silver__complete_native_prices_MODIFIED_TIMESTAMP.595acedfe2": [], "test.fsc_evm.unique_silver__complete_native_prices_COMPLETE_NATIVE_PRICES_ID.6e5981548b": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_native_prices_HOUR__SYMBOL.9742f3d916": [], "test.fsc_evm.not_null_silver__complete_token_prices_HOUR.d5f4cd597b": [], "test.fsc_evm.not_null_silver__complete_token_prices_TOKEN_ADDRESS.7e03ade9df": [], "test.fsc_evm.not_null_silver__complete_token_prices_BLOCKCHAIN.ada1620192": [], "test.fsc_evm.not_null_silver__complete_token_prices_BLOCKCHAIN_ID.6aac0fa10e": [], "test.fsc_evm.not_null_silver__complete_token_prices_PROVIDER.d7e55cb9a3": [], "test.fsc_evm.not_null_silver__complete_token_prices_PRICE.9b78fa1dae": [], "test.fsc_evm.not_null_silver__complete_token_prices_IS_IMPUTED.8a84f91c9e": [], "test.fsc_evm.not_null_silver__complete_token_prices__INSERTED_TIMESTAMP.90a2d67d90": [], "test.fsc_evm.not_null_silver__complete_token_prices_MODIFIED_TIMESTAMP.74882978f6": [], "test.fsc_evm.unique_silver__complete_token_prices_COMPLETE_TOKEN_PRICES_ID.c4ea6e2a79": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__complete_token_prices_HOUR__TOKEN_ADDRESS__BLOCKCHAIN.dde8fc55cf": [], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BLOCK_NUMBER.d8e5a4d173": [], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BLOCK_TIMESTAMP.27eecb602c": [], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TX_HASH.befc121de7": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_TX_HASH__0_xX_0_9a_fA_F_.eea93a120e": [], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS.fb3df4392d": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_BRIDGE_ADDRESS__0_xX_0_9a_fA_F_.25648fcf6b": [], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_DESTINATION_CHAIN_RECEIVER.73ef2ee307": [], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_SENDER.64ca378992": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_SENDER__0_xX_0_9a_fA_F_.45e7cc2df2": [], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_RECEIVER.a37b06afd8": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_RECEIVER__0_xX_0_9a_fA_F_.2465acf0d7": [], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_AMOUNT_UNADJ.f05776f272": [], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS.07fa5639c8": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__complete_bridge_activity_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.fc73bfce91": [], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_PLATFORM.2c7a290a2a": [], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_PROTOCOL.a6cfc199ee": [], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_VERSION.7818ca0d4e": [], "test.fsc_evm.not_null_silver_bridge__complete_bridge_activity_TYPE.37341141f3": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_bridge__complete_bridge_activity_MODIFIED_TIMESTAMP__day__3.1fb2addfd1": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__complete_bridge_activity__ID.3d98f8a8be": [], "test.fsc_evm.curated_recency_defi_silver_bridge__complete_bridge_activity_bridge.a2b41e22b2": [], "test.fsc_evm.not_null_silver_bridge__everclear_reads_INTENT_ID.86864cebca": [], "test.fsc_evm.not_null_silver_bridge__everclear_reads_STATUS.25271faad7": [], "test.fsc_evm.not_null_silver_bridge__everclear_reads_OUTPUT_ASSET.506d895537": [], "test.fsc_evm.not_null_silver_bridge__everclear_reads_DESTINATION_CHAIN_ID.708d1c3ec8": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__everclear_reads_INTENT_ID.0dee46a33d": [], "test.fsc_evm.not_null_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS.b245762efd": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_ammwrapper_AMM_WRAPPER_ADDRESS__0_xX_0_9a_fA_F_.84556e1744": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_ammwrapper_CONTRACT_ADDRESS.aea7fc3d3b": [], "test.fsc_evm.not_null_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS.ec64401112": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_l2canonicaltoken_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.804453d554": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_l2canonicaltoken_CONTRACT_ADDRESS.b7a0e00f9b": [], "test.fsc_evm.not_null_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS.e94f2ba3f9": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__hop_l1canonicaltoken_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.23850b9de7": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__hop_l1canonicaltoken_CONTRACT_ADDRESS.1a0299fdf6": [], "test.fsc_evm.not_null_silver_bridge__stargate_createpool_TOKEN_ADDRESS.02394ab2ae": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_bridge__stargate_createpool_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.9b63c4ca5e": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__stargate_createpool_POOL_ADDRESS.9e0053c2c5": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_bridge__layerzero_v2_token_reads_CONTRACT_ADDRESS.cbdeb639b6": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__stablecoin_reads_stablecoin_reads_id.ee158051a5": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__mint_burn_stablecoins_mint_burn_id.2ec1abace1": [], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_BLOCK_DATE.ed7dfaf66b": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_complete_BLOCK_DATE__day__2.b3d5b9ee35": [], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_CONTRACT_ADDRESS.664480f344": [], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_SYMBOL.e0e7468746": [], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_NAME.6a279f0ecb": [], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_DECIMALS.5a014a45ab": [], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_TOTAL_SUPPLY.2fbe775ba2": [], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_BLACKLISTED.4950715b85": [], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_CEX.e2827b3341": [], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_BRIDGES.ff0025ecd7": [], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_DEX_LIQUIDITY_POOLS.25808a6407": [], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_LENDING_POOLS.d8292a8a7e": [], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_IN_CONTRACTS.4bf4ba9824": [], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_MINTED.0638b516b5": [], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_BURNED.0c51968320": [], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_AMOUNT_TRANSFERRED.97c658f5c2": [], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_INSERTED_TIMESTAMP.de284952d2": [], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_MODIFIED_TIMESTAMP.007e68c2c3": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_complete_MODIFIED_TIMESTAMP__day__1.9995e5dcd1": [], "test.fsc_evm.not_null_silver_stablecoins__supply_complete_STABLECOINS_SUPPLY_COMPLETE_ID.996719e8a7": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_complete_stablecoins_supply_complete_id.7db1f368e4": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__transfers_stablecoins_transfers_id.f9414fd971": [], "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_BLOCK_DATE.b46d73803f": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_by_address_imputed_BLOCK_DATE__day__2.99639b993f": [], "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_ADDRESS.e5bb6dbc9b": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_stablecoins__supply_by_address_imputed_ADDRESS__0_xX_0_9a_fA_F_.574260a865": [], "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_CONTRACT_ADDRESS.a15a535fb3": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_stablecoins__supply_by_address_imputed_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.3453b3e118": [], "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_BALANCE.c6c3131107": [], "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_IS_IMPUTED.ec0da0785e": [], "test.fsc_evm.not_null_silver_stablecoins__supply_by_address_imputed_MODIFIED_TIMESTAMP.b90ac8efba": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stablecoins__supply_by_address_imputed_MODIFIED_TIMESTAMP__day__1.830f5971c9": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_by_address_imputed_stablecoins_supply_by_address_imputed_id.b6861618a0": [], "test.fsc_evm.stablecoins_is_imputed_false_silver_stablecoins__supply_by_address_imputed_.59751490c5": [], "test.fsc_evm.stablecoins_date_gaps_silver_stablecoins__supply_by_address_imputed_.dcbef61e36": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_by_address_stablecoins_supply_by_address_id.0a3c5366e4": [], "test.fsc_evm.not_null_silver_stablecoins__supply_contracts_list_ADDRESS.de076cd955": [], "test.fsc_evm.not_null_silver_stablecoins__supply_contracts_list_CONTRACT_TYPE.b41e882fd8": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_contracts_list_stablecoins_supply_contracts_list_id.973738f72f": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__supply_contracts_stablecoins_supply_contracts_id.a378bd36a0": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stablecoins__address_blacklist_stablecoins_address_blacklist_id.007b38ff2a": [], "test.fsc_evm.not_null_defi__dim_stablecoins_CONTRACT_ADDRESS.6d61399207": [], "test.fsc_evm.not_null_defi__dim_stablecoins_SYMBOL.5791bb4cff": [], "test.fsc_evm.not_null_defi__dim_stablecoins_NAME.b868d0a1a6": [], "test.fsc_evm.not_null_defi__dim_stablecoins_LABEL.b477c86b09": [], "test.fsc_evm.not_null_defi__dim_stablecoins_DECIMALS.121acb907b": [], "test.fsc_evm.not_null_defi__dim_stablecoins_IS_VERIFIED.0b8de40713": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_defi__dim_stablecoins_dim_stablecoins_id.a7f96dedfc": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_BLOCK_NUMBER.3cc45619ac": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_BLOCK_TIMESTAMP.1cad889870": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TX_HASH.44650e24c5": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_EVENT_INDEX.83e4f1880e": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_EVENT_NAME.52809d123e": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER.db4674616c": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_SENDER.2834260b51": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_RECEIVER.465bf44ee5": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_POOL_ADDRESS.8eeb6ff26e": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pool_actions_POOL_ADDRESS__0_xX_0_9a_fA_F_.77b6c92f58": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS_UNADJ.bdfa9321f4": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS.c774024072": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_AMOUNTS_USD.a60fa0a531": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS.fd4087fc87": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_SYMBOLS.34cfc0a3e6": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_DECIMALS.fde79b4576": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TOKENS_IS_VERIFIED.d38e3bdb59": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_PLATFORM.129bb6aeb5": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_PROTOCOL.c9300839eb": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_VERSION.b6b10368ee": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_TYPE.40d8e6018e": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP.f31fa88748": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_liquidity_pool_actions_MODIFIED_TIMESTAMP__day__3.7ae7a49b3e": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_liquidity_pool_actions__ID.ddef6289c9": [], "test.fsc_evm.curated_recency_defi_silver_dex__complete_dex_liquidity_pool_actions_dex_lp_actions.362cf81572": [], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_BLOCK_NUMBER.17ae3af028": [], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_BLOCK_TIMESTAMP.16acbec13e": [], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TX_HASH.338d50a54c": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TX_HASH__0_xX_0_9a_fA_F_.f7c909191d": [], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS.8c4b42fef8": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.be6db6029d": [], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_AMOUNT_IN.3df36cb722": [], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_AMOUNT_OUT.d33197318a": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TOKEN_IN__0_xX_0_9a_fA_F_.790e194383": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TOKEN_OUT__0_xX_0_9a_fA_F_.ae14302936": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_SENDER__0_xX_0_9a_fA_F_.58a39f68d2": [], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TX_TO.2085271b93": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_swaps_TX_TO__0_xX_0_9a_fA_F_.03c82421e1": [], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_PLATFORM.be3e105587": [], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_PROTOCOL.3df038aacb": [], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_VERSION.302623d7a3": [], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_TYPE.c008585f12": [], "test.fsc_evm.not_null_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP.4c29ced501": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_swaps_MODIFIED_TIMESTAMP__day__3.ecc8ffb7ad": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_swaps__LOG_ID.ba65a2d85c": [], "test.fsc_evm.curated_recency_defi_silver_dex__complete_dex_swaps_dex_swaps.5916f6c88e": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_NUMBER.5b1552ab5e": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_BLOCK_TIMESTAMP.b982bd6907": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_TX_HASH.92b7a24d0d": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_CONTRACT_ADDRESS.52ef84763a": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pools_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.dc69988db3": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS.03eefde7c0": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__complete_dex_liquidity_pools_POOL_ADDRESS__0_xX_0_9a_fA_F_.531aeb2798": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_PLATFORM.dfa0956636": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_PROTOCOL.a63c90c2a0": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_VERSION.5eef91934c": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_TYPE.41453fccf7": [], "test.fsc_evm.not_null_silver_dex__complete_dex_liquidity_pools_MODIFIED_TIMESTAMP.d34d6a1858": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_dex__complete_dex_liquidity_pools_MODIFIED_TIMESTAMP__day__30.3fd9adc88e": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__complete_dex_liquidity_pools__ID.b4429d9fea": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__balancer_pools_POOL_ADDRESS.2719d33e20": [], "test.fsc_evm.not_null_silver_dex__curve_pools_POOL_ADDRESS.d71b87d177": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__curve_pools_POOL_ADDRESS__0_xX_0_9a_fA_F_.185fa9348a": [], "test.fsc_evm.not_null_silver_dex__curve_pools_TOKEN_ADDRESS.27eb2fea68": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver_dex__curve_pools_TOKEN_ADDRESS__0_xX_0_9a_fA_F_.7ffaec64f4": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_dex__curve_pools_POOL_ID.16e66dab1a": [], "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_BLOCK_TIMESTAMP.aa08bbc5bb": [], "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_LIQUIDITY_PROVIDER.1b554aa4ee": [], "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_TOKEN_ADDRESS.f9d0db5e6d": [], "test.fsc_evm.not_null_defi__ez_dex_liquidity_pool_actions_AMOUNT_UNADJ.9e24d6b1ba": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_defi__ez_dex_liquidity_pool_actions_ez_dex_liquidity_pool_actions_id.83a111c26f": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TX_HASH.63627cc126": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BLOCK_NUMBER.09147e3ec0": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BLOCK_TIMESTAMP.d5aef20d26": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_borrows_BLOCK_TIMESTAMP__day__3.91c4dcedc7": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_EVENT_INDEX.702306f3d9": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_ORIGIN_FROM_ADDRESS.3c02ef2628": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_ORIGIN_FUNCTION_SIGNATURE.b43268ea6c": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_CONTRACT_ADDRESS.c32c5ad863": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_EVENT_NAME.c17f59a2a8": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_BORROWER.887a479a91": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PROTOCOL_MARKET.2cdfbbc5f5": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TOKEN_ADDRESS.d31d215fbe": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_TOKEN_SYMBOL.d074b06159": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_AMOUNT_UNADJ.7747f27c90": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_AMOUNT.e580c2d507": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_borrows_AMOUNT_USD__decimal__float.647d646b83": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PLATFORM.f7ad06b21d": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_PROTOCOL.258dc320a7": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_VERSION.bb6550ca9c": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_COMPLETE_LENDING_BORROWS_ID.c10561dd4e": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_INSERTED_TIMESTAMP.8c1b12d962": [], "test.fsc_evm.not_null_silver_lending__complete_lending_borrows_MODIFIED_TIMESTAMP.4e7d059a7d": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_borrows__log_id.2a9a480e32": [], "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_borrows_7_5__60__lending.bd75ba3a44": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TX_HASH.ce8de9e71f": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_BLOCK_NUMBER.a12c696749": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_BLOCK_TIMESTAMP.15d8c8cba4": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_withdraws_BLOCK_TIMESTAMP__day__3.1d64634b58": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_EVENT_INDEX.4e0de8f75f": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_ORIGIN_FROM_ADDRESS.a3d18bde4b": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_ORIGIN_FUNCTION_SIGNATURE.1dc2890452": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_CONTRACT_ADDRESS.2a2bdaa803": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_EVENT_NAME.5db024623b": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PROTOCOL_MARKET.6642e840fc": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_DEPOSITOR.aa4643edf2": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TOKEN_ADDRESS.261f8cbdbe": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_TOKEN_SYMBOL.d60b5cda5a": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_AMOUNT_UNADJ.5b85a0643a": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_AMOUNT.ef1dc64c3e": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_withdraws_AMOUNT_USD__decimal__float.c62808382c": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PLATFORM.e9a5a0f900": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_PROTOCOL.a8b7ac43d6": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_VERSION.fcaf60d697": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_COMPLETE_LENDING_WITHDRAWS_ID.681b4aa48b": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_INSERTED_TIMESTAMP.561d35461f": [], "test.fsc_evm.not_null_silver_lending__complete_lending_withdraws_MODIFIED_TIMESTAMP.c3e30f98e5": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_withdraws__LOG_ID.7cfc5aa030": [], "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_withdraws_7_5__60__lending.23f1446d50": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TX_HASH.d3201d95e2": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_BLOCK_NUMBER.2c9a0f6061": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_BLOCK_TIMESTAMP.1a905291e9": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_flashloans_BLOCK_TIMESTAMP__day__14.c97c4e6a21": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_EVENT_INDEX.d256b8467f": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_ORIGIN_FROM_ADDRESS.9104eb297b": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_ORIGIN_FUNCTION_SIGNATURE.8ad33ea363": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_CONTRACT_ADDRESS.d2763e9c60": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_EVENT_NAME.36bdd6ecae": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PROTOCOL_MARKET.fba78b0f77": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_INITIATOR.bb1dc79f33": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TARGET.f29f9844aa": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TOKEN_ADDRESS.cfb727a837": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_TOKEN_SYMBOL.893469d047": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_FLASHLOAN_AMOUNT_UNADJ.50ea108e62": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_FLASHLOAN_AMOUNT.feaeeedf41": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PREMIUM_AMOUNT_UNADJ.9afaa927d7": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PREMIUM_AMOUNT.e9f3cbad34": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PLATFORM.56c21f121c": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_PROTOCOL.a5f672795f": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_VERSION.46458e3611": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_COMPLETE_LENDING_FLASHLOANS_ID.f37672ef97": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_INSERTED_TIMESTAMP.a267ad91be": [], "test.fsc_evm.not_null_silver_lending__complete_lending_flashloans_MODIFIED_TIMESTAMP.c7ad718c6f": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_flashloans__LOG_ID.b5e2ccc546": [], "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_flashloans_7_5__60__lending.1d85b045e9": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TX_HASH.159d87490e": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BLOCK_NUMBER.3b1396e922": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BLOCK_TIMESTAMP.dadda51bf9": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_repayments_BLOCK_TIMESTAMP__day__3.1330d20e3b": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_EVENT_INDEX.b08f854af1": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_ORIGIN_FROM_ADDRESS.a45605a93c": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_ORIGIN_FUNCTION_SIGNATURE.7cdb59008b": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_CONTRACT_ADDRESS.e8659c0cd4": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_EVENT_NAME.17e71ddee7": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PROTOCOL_MARKET.5ba1c58d76": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PAYER.5181266d52": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_BORROWER.067b19b1ce": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TOKEN_ADDRESS.1000bb4b6f": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_TOKEN_SYMBOL.442e650dd5": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_AMOUNT_UNADJ.c408d0ba21": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_AMOUNT.1c26a3f24d": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_repayments_AMOUNT_USD__decimal__float.3538351555": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PLATFORM.c28ef22806": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_PROTOCOL.3c56422288": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_VERSION.3fd0d1f3d6": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_COMPLETE_LENDING_REPAYMENTS_ID.fa12632511": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_INSERTED_TIMESTAMP.3f4ae6523c": [], "test.fsc_evm.not_null_silver_lending__complete_lending_repayments_MODIFIED_TIMESTAMP.3b537129ff": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_repayments__LOG_ID.dade94b28d": [], "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_repayments_7_5__60__lending.dc63c75a4a": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TX_HASH.1770f89dd4": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_BLOCK_NUMBER.764f80cddc": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_BLOCK_TIMESTAMP.4ee6d5cde6": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_deposits_BLOCK_TIMESTAMP__day__3.b5e1187f23": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_EVENT_INDEX.af4200573a": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_ORIGIN_FROM_ADDRESS.2d42cefc88": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_ORIGIN_FUNCTION_SIGNATURE.4f15a4f4b6": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_CONTRACT_ADDRESS.7df8e73c73": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_EVENT_NAME.074448c2ba": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PROTOCOL_MARKET.f548930cd7": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_DEPOSITOR.1491427a24": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TOKEN_ADDRESS.87dd541bc0": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_TOKEN_SYMBOL.63347a63f2": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_AMOUNT_UNADJ.08e5e86a62": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_AMOUNT.dd3698ee3b": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_lending__complete_lending_deposits_AMOUNT_USD__decimal__float.1e0c6d9d32": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PLATFORM.e82777c8c0": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_PROTOCOL.6cf1f64077": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_VERSION.eade855a3f": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_COMPLETE_LENDING_DEPOSITS_ID.f63e8f436e": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_INSERTED_TIMESTAMP.481e29ad06": [], "test.fsc_evm.not_null_silver_lending__complete_lending_deposits_MODIFIED_TIMESTAMP.316ea9612f": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_deposits__LOG_ID.81d0e3df59": [], "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_deposits_7_5__60__lending.f47558e889": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_TX_HASH.bce1515589": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BLOCK_NUMBER.15a69776e9": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BLOCK_TIMESTAMP.c70c659e0d": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_lending__complete_lending_liquidations_BLOCK_TIMESTAMP__day__30.161c04de84": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_EVENT_INDEX.84fd3e9ae9": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_ORIGIN_FROM_ADDRESS.192f3d0364": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_ORIGIN_FUNCTION_SIGNATURE.140b44b00f": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_CONTRACT_ADDRESS.808d802f1a": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_EVENT_NAME.5630b24be5": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATOR.32624d91f1": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_BORROWER.38440419c2": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PROTOCOL_MARKET.6f332e4392": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COLLATERAL_TOKEN.3c78777798": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COLLATERAL_TOKEN_SYMBOL.d8f85827c6": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATED_AMOUNT_UNADJ.23b2f7c305": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_LIQUIDATED_AMOUNT.295ac3ed83": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_DEBT_TOKEN.378987156e": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_DEBT_TOKEN_SYMBOL.31aa114cf8": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PLATFORM.80ec31452a": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_PROTOCOL.16dcb68655": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_VERSION.927431b428": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_COMPLETE_LENDING_LIQUIDATIONS_ID.69cd6455c6": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_INSERTED_TIMESTAMP.9b2342b392": [], "test.fsc_evm.not_null_silver_lending__complete_lending_liquidations_MODIFIED_TIMESTAMP.8c86e0f317": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_lending__complete_lending_liquidations__LOG_ID.7cbbbc2f23": [], "test.fsc_evm.curated_recency_defi_silver_lending__complete_lending_liquidations_7_5__90__lending.9c7fe9d27d": [], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR.efdb4b7e98": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR__TIMESTAMP_LTZ__TIMESTAMP_NTZ.5239671c2c": [], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN.dcaaf4d14f": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MIN__NUMBER__FLOAT.6733ed950e": [], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX.60803e14ca": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_NUMBER_MAX__NUMBER__FLOAT.5f8ab0b092": [], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_BLOCK_COUNT.f303fa842b": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_BLOCK_COUNT__NUMBER__FLOAT.39578be186": [], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT.866f191153": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT__NUMBER__FLOAT.5a8e6e8880": [], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_SUCCESS.5b82a449dd": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_SUCCESS__NUMBER__FLOAT.c5d0b2cc33": [], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_FAILED.4fe1d21e07": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TRANSACTION_COUNT_FAILED__NUMBER__FLOAT.5f9df371b1": [], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT.1e73e0a934": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_UNIQUE_FROM_COUNT__NUMBER__FLOAT.225f59bd1e": [], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT.d64e239e23": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_UNIQUE_TO_COUNT__NUMBER__FLOAT.4cd5081b32": [], "test.fsc_evm.not_null_silver_stats__core_metrics_hourly_TOTAL_FEES.558b8cb0c7": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver_stats__core_metrics_hourly_TOTAL_FEES__DECIMAL__FLOAT__NUMBER.ada34dd6db": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver_stats__core_metrics_hourly__INSERTED_TIMESTAMP__day__1.874a5937d5": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver_stats__core_metrics_hourly_BLOCK_TIMESTAMP_HOUR.0797e73b88": [], "test.fsc_evm.not_null_silver__balances_erc20_daily_BLOCK_DATE.b0c7b4b5bc": [], "test.fsc_evm.not_null_silver__balances_erc20_daily_ADDRESS.d149b58851": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_erc20_daily_ADDRESS__0_xX_0_9a_fA_F_.a753ef793c": [], "test.fsc_evm.not_null_silver__balances_erc20_daily_CONTRACT_ADDRESS.43c650bfd7": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_erc20_daily_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.c31e06bdbd": [], "test.fsc_evm.not_null_silver__balances_erc20_daily_BALANCE_HEX.4b0eb04af8": [], "test.fsc_evm.not_null_silver__balances_erc20_daily__INSERTED_TIMESTAMP.30b89c0c1d": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver__balances_erc20_daily__INSERTED_TIMESTAMP__day__2.2e99af10ca": [], "test.fsc_evm.not_null_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID.aebeb06687": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__balances_erc20_daily_BALANCES_ERC20_DAILY_ID.f7783664d9": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE.23211ae498": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_daily_recent_BLOCK_DATE__day__2.8b5344e6a7": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_ADDRESS.d54ed6a481": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_recent_ADDRESS__0_xX_0_9a_fA_F_.2358d27b0b": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_DECIMALS.cf741a0564": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_SYMBOL.664ff4bcfa": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_CONTRACT_ADDRESS.572c2ff2c0": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_recent_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.2789060087": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_daily_recent_BALANCE__NUMBER__FLOAT.ad56fe9d44": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID.5275f2f741": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_daily_recent_EZ_BALANCES_ERC20_DAILY_ID.203984c885": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE.87397d3b88": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_daily_full_BLOCK_DATE__day__2.3411cdaa78": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_ADDRESS.df7ff69350": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_full_ADDRESS__0_xX_0_9a_fA_F_.8b0fdb4db0": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_DECIMALS.f902f9987b": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_SYMBOL.8859925617": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_CONTRACT_ADDRESS.a29ab93899": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_daily_full_CONTRACT_ADDRESS__0_xX_0_9a_fA_F_.6539ed403f": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_daily_full_BALANCE__NUMBER__FLOAT.ea1e0b7809": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID.e0d083a055": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_daily_full_EZ_BALANCES_ERC20_DAILY_ID.1ac9a12106": [], "test.fsc_evm.not_null_silver__balances_native_daily_BLOCK_DATE.5a051df8c7": [], "test.fsc_evm.not_null_silver__balances_native_daily_ADDRESS.525dc24b09": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_silver__balances_native_daily_ADDRESS__0_xX_0_9a_fA_F_.8a750d62a3": [], "test.fsc_evm.not_null_silver__balances_native_daily_BALANCE_HEX.ddd4dba7b9": [], "test.fsc_evm.not_null_silver__balances_native_daily__INSERTED_TIMESTAMP.ce964e9219": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_silver__balances_native_daily__INSERTED_TIMESTAMP__day__2.0117687deb": [], "test.fsc_evm.not_null_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID.96649214c0": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__balances_native_daily_BALANCES_NATIVE_DAILY_ID.1832bc6fd4": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_BLOCK_DATE.43b712db10": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_daily_full_BLOCK_DATE__day__2.be6f628721": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_ADDRESS.52d628c90f": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_daily_full_ADDRESS__0_xX_0_9a_fA_F_.a9916d6faa": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_daily_full_BALANCE__NUMBER__FLOAT.49679eb8e0": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID.fa62d2d951": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_daily_full_EZ_BALANCES_NATIVE_DAILY_ID.8dc83ace95": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_BLOCK_DATE.d5648e9d19": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_daily_recent_BLOCK_DATE__day__2.77859fb708": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_ADDRESS.a22493476f": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_daily_recent_ADDRESS__0_xX_0_9a_fA_F_.f9166aacd7": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_daily_recent_BALANCE__NUMBER__FLOAT.ceee5e0cc7": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID.04c28bc46d": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_daily_recent_EZ_BALANCES_NATIVE_DAILY_ID.6d38a75605": [], "test.fsc_evm.not_null_silver__balance_slots_CONTRACT_ADDRESS.aeee79acb5": [], "test.fsc_evm.not_null_silver__balance_slots_SLOT_NUMBER_ARRAY.8ffb8e8b33": [], "test.fsc_evm.not_null_silver__balance_slots_NUM_SLOTS.7e3d263768": [], "test.fsc_evm.accepted_values_silver__balance_slots_NUM_SLOTS__1.d1652f3bdb": [], "test.fsc_evm.not_null_silver__balance_slots_BALANCE_SLOTS_ID.c2db519283": [], "test.fsc_evm.not_null_silver__balance_slots_INSERTED_TIMESTAMP.94d7789126": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__balance_slots_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.23b4d3c9d5": [], "test.fsc_evm.not_null_silver__balance_slots_MODIFIED_TIMESTAMP.ca66040357": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__balance_slots_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.73dee8e57b": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__balance_slots_CONTRACT_ADDRESS.ed2308e967": [], "test.fsc_evm.fsc_evm_missing_balance_slots_silver__balance_slots_.86886d322f": [], "test.fsc_evm.not_null_silver__storage_keys_ADDRESS.be8c9c1392": [], "test.fsc_evm.not_null_silver__storage_keys_SLOT_NUMBER.4e1362119c": [], "test.fsc_evm.not_null_silver__storage_keys_STORAGE_KEY.8fb10f3cb4": [], "test.fsc_evm.not_null_silver__storage_keys_STORAGE_KEYS_ID.b4e852b122": [], "test.fsc_evm.not_null_silver__storage_keys_INSERTED_TIMESTAMP.fa570e218f": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__storage_keys_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.763dacf694": [], "test.fsc_evm.not_null_silver__storage_keys_MODIFIED_TIMESTAMP.2ee7197f25": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_silver__storage_keys_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.2c2aee5ddc": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_silver__storage_keys_ADDRESS__SLOT_NUMBER.184cfaefb5": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_BLOCK_NUMBER.d08ad74001": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_TX_POSITION.8b0a16a17d": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_CONTRACT_ADDRESS.d32f8002bf": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_STORAGE_KEY.2a10e3dd0b": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent__INSERTED_TIMESTAMP.6181a9e7b3": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_recent__INSERTED_TIMESTAMP__hour__2.b554e4f428": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.872559bae8": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_INSERTED_TIMESTAMP.37f1906b5e": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_recent_INSERTED_TIMESTAMP__hour__2.c03b6ae83d": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.683d2e792b": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_recent_MODIFIED_TIMESTAMP.20bb673731": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_recent_MODIFIED_TIMESTAMP__hour__2.bbb5e0e0d4": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.61f2d74d31": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__state_tracer_storage_recent_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__STORAGE_KEY.d9bb4970ed": [], "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_storage_recent_BLOCK_NUMBER.c0f6ce209d": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_BLOCK_NUMBER.4fa04f5f10": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_TX_POSITION.8744f447b5": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_CONTRACT_ADDRESS.e5f17ac295": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_STORAGE_KEY.cd101ace2c": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_full__INSERTED_TIMESTAMP.4e98fa72be": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_full__INSERTED_TIMESTAMP__hour__2.f2cf720a38": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.ba4d82a7f4": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_INSERTED_TIMESTAMP.910eeb5ef0": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_full_INSERTED_TIMESTAMP__hour__2.c9809f0d87": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3560af35cf": [], "test.fsc_evm.not_null_test_silver__state_tracer_storage_full_MODIFIED_TIMESTAMP.6efadb8966": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_storage_full_MODIFIED_TIMESTAMP__hour__2.06d1f3fa82": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_storage_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.3309bc50fc": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__state_tracer_storage_full_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__STORAGE_KEY.5b2da4ccec": [], "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_storage_full_BLOCK_NUMBER.220d9edbf2": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_full_BLOCK_NUMBER.daf64e7195": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_full_TX_POSITION.5341ec1824": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_full__INSERTED_TIMESTAMP.34cabd03ea": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_full__INSERTED_TIMESTAMP__hour__2.04c0ea8b3a": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_full__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b8f83a9d60": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_full_INSERTED_TIMESTAMP.73148f4c9f": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_full_INSERTED_TIMESTAMP__hour__2.27a287b0ff": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_full_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.e31b64f564": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_full_MODIFIED_TIMESTAMP.039ad648bc": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_full_MODIFIED_TIMESTAMP__hour__2.60b5f18488": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_full_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.c60bdcf3c5": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__state_tracer_native_full_BLOCK_NUMBER__TX_POSITION__ADDRESS.330497f8b0": [], "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_full_BLOCK_NUMBER.6b2d336770": [], "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_full_TX_POSITION__BLOCK_NUMBER.9593e60f66": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_recent_BLOCK_NUMBER.2bfc175262": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_recent_TX_POSITION.fba367afc8": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_recent__INSERTED_TIMESTAMP.2d0e2d2228": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_recent__INSERTED_TIMESTAMP__hour__2.4575f489b2": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_recent__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.03278afbbf": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_recent_INSERTED_TIMESTAMP.bc0a242834": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_recent_INSERTED_TIMESTAMP__hour__2.1e5bd49352": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_recent_INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.b6f1e27615": [], "test.fsc_evm.not_null_test_silver__state_tracer_native_recent_MODIFIED_TIMESTAMP.4bc7f2d4b2": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_silver__state_tracer_native_recent_MODIFIED_TIMESTAMP__hour__2.3488f1550e": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_silver__state_tracer_native_recent_MODIFIED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.492d86899e": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_silver__state_tracer_native_recent_BLOCK_NUMBER__TX_POSITION__ADDRESS.a268df025f": [], "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_recent_BLOCK_NUMBER.ab121f4b57": [], "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_silver__state_tracer_native_recent_TX_POSITION__BLOCK_NUMBER.a836b23d74": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER.91728a0792": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER__NUMBER__FLOAT.0a468bc5ad": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP.48e1d419bd": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.ed24300667": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_recent_BLOCK_TIMESTAMP__hour__2.040296e80e": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_TX_HASH.757946cbca": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_recent_TX_HASH__0_xX_0_9a_fA_F_.1302569002": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_ADDRESS.01c3206f30": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_recent_ADDRESS__0_xX_0_9a_fA_F_.a3068d5b83": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_TX_POSITION.1b521e9d0f": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_recent_TX_POSITION__NUMBER__FLOAT.71f811a2f8": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_EZ_BALANCES_ERC20_ID.c51646cddb": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_INSERTED_TIMESTAMP.c66b3702e2": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_recent_INSERTED_TIMESTAMP__hour__2.276c7a9819": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_recent_MODIFIED_TIMESTAMP.ec71871087": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_recent_MODIFIED_TIMESTAMP__hour__2.2b6d777c36": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_recent_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__ADDRESS.2a065e63fe": [], "test.fsc_evm.fsc_evm_balances_diffs_erc20_test_gold__ez_balances_erc20_recent_test_gold__fact_event_logs_recent.f2764760a2": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_BLOCK_NUMBER.c55cc91d12": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_full_BLOCK_NUMBER__NUMBER__FLOAT.1d0ad6dc52": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP.3724f36b86": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.424615ee6c": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_full_BLOCK_TIMESTAMP__hour__2.d79a65793c": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_TX_HASH.4d0de34061": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_full_TX_HASH__0_xX_0_9a_fA_F_.6913d3d9ac": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_ADDRESS.da38330a62": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_erc20_full_ADDRESS__0_xX_0_9a_fA_F_.643110edff": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_TX_POSITION.3fc340221c": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_erc20_full_TX_POSITION__NUMBER__FLOAT.3d8227ec9a": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_EZ_BALANCES_ERC20_ID.310cb37ed7": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_INSERTED_TIMESTAMP.a5d2e2f414": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_full_INSERTED_TIMESTAMP__hour__2.0eb14d6cc6": [], "test.fsc_evm.not_null_test_gold__ez_balances_erc20_full_MODIFIED_TIMESTAMP.0da7826eef": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_erc20_full_MODIFIED_TIMESTAMP__hour__2.0966e4b584": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_erc20_full_BLOCK_NUMBER__TX_POSITION__CONTRACT_ADDRESS__ADDRESS.852442981e": [], "test.fsc_evm.fsc_evm_balances_diffs_erc20_test_gold__ez_balances_erc20_full_test_gold__fact_event_logs_full.be7375fc73": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_full_BLOCK_NUMBER.69acacc211": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_full_BLOCK_NUMBER__NUMBER__FLOAT.50f7d50bdc": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP.3a9afd0178": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.8d9f8e6ebf": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_full_BLOCK_TIMESTAMP__hour__2.b107d29c9d": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_full_TX_HASH.2fe69fafd5": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_full_TX_HASH__0_xX_0_9a_fA_F_.d53f17ab0b": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_full_ADDRESS.35672de358": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_full_ADDRESS__0_xX_0_9a_fA_F_.05d87677be": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_full_TX_POSITION.da1b5f4519": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_full_TX_POSITION__NUMBER__FLOAT.3f4aad2a67": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_full_EZ_BALANCES_NATIVE_ID.46bcbcafba": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_full_INSERTED_TIMESTAMP.c453dab808": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_full_INSERTED_TIMESTAMP__hour__2.d78909c1b0": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_full_MODIFIED_TIMESTAMP.dbf568fac5": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_full_MODIFIED_TIMESTAMP__hour__2.1b9b9b6a83": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_full_BLOCK_NUMBER__TX_POSITION__ADDRESS.8cc136bf0e": [], "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_gold__ez_balances_native_full_TX_POSITION__BLOCK_NUMBER.89b997452e": [], "test.fsc_evm.fsc_evm_balances_diffs_native_test_gold__ez_balances_native_full_test_gold__fact_traces_full.6565b471ec": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_BLOCK_NUMBER.1bb4e6b131": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_recent_BLOCK_NUMBER__NUMBER__FLOAT.45ff1eef76": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP.a3cf870526": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.65f6fbec2e": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_recent_BLOCK_TIMESTAMP__hour__2.ff27d2f37e": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_TX_HASH.bf6b15d88b": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_recent_TX_HASH__0_xX_0_9a_fA_F_.b62fa9c239": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_ADDRESS.41beaf4325": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_match_regex_test_gold__ez_balances_native_recent_ADDRESS__0_xX_0_9a_fA_F_.40465d0c34": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_TX_POSITION.f56998ca13": [], "test.fsc_evm.dbt_expectations_expect_column_values_to_be_in_type_list_test_gold__ez_balances_native_recent_TX_POSITION__NUMBER__FLOAT.5051e242ac": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_EZ_BALANCES_NATIVE_ID.ee66cf61ae": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_INSERTED_TIMESTAMP.8be1294764": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_recent_INSERTED_TIMESTAMP__hour__2.94be8de4d7": [], "test.fsc_evm.not_null_test_gold__ez_balances_native_recent_MODIFIED_TIMESTAMP.594af9f4e9": [], "test.fsc_evm.dbt_expectations_expect_row_values_to_have_recent_data_test_gold__ez_balances_native_recent_MODIFIED_TIMESTAMP__hour__2.0362addb52": [], "test.fsc_evm.dbt_utils_unique_combination_of_columns_test_gold__ez_balances_native_recent_BLOCK_NUMBER__TX_POSITION__ADDRESS.10abe1b512": [], "test.fsc_evm.fsc_evm_balances_sequence_gaps_test_gold__ez_balances_native_recent_TX_POSITION__BLOCK_NUMBER.d26a1aa27f": [], "test.fsc_evm.fsc_evm_balances_diffs_native_test_gold__ez_balances_native_recent_test_gold__fact_traces_recent.b9139d7c14": [], "source.polygon_models.bronze_streamline.receipts": ["model.fsc_evm.bronze__receipts", "model.fsc_evm.bronze__receipts_fr"], "source.polygon_models.bronze_streamline.blocks": ["model.fsc_evm.bronze__blocks", "model.fsc_evm.bronze__blocks_fr"], "source.polygon_models.bronze_streamline.transactions": ["model.fsc_evm.bronze__transactions", "model.fsc_evm.bronze__transactions_fr"], "source.polygon_models.bronze_streamline.traces": ["model.fsc_evm.bronze__traces", "model.fsc_evm.bronze__traces_fr"], "source.polygon_models.bronze_streamline.decoded_logs": ["model.fsc_evm.bronze__decoded_logs", "model.fsc_evm.bronze__decoded_logs_fr"], "source.polygon_models.bronze_streamline.confirm_blocks": ["model.fsc_evm.bronze__confirm_blocks", "model.fsc_evm.bronze__confirm_blocks_fr"], "source.polygon_models.bronze_streamline.contract_abis": ["model.fsc_evm.bronze__contract_abis", "model.fsc_evm.bronze__contract_abis_fr_v2"], "source.polygon_models.bronze_streamline.token_reads": ["model.fsc_evm.bronze__token_reads", "model.fsc_evm.bronze__token_reads_fr_v2"], "source.polygon_models.bronze_streamline.balances_erc20": ["model.fsc_evm.bronze__balances_erc20", "model.fsc_evm.bronze__balances_erc20_fr"], "source.polygon_models.bronze_streamline.balances_native": ["model.fsc_evm.bronze__balances_native", "model.fsc_evm.bronze__balances_native_fr"], "source.polygon_models.bronze_streamline.state_tracer": [], "source.polygon_models.bronze_streamline.stablecoin_reads": ["model.fsc_evm.bronze__stablecoin_reads", "model.fsc_evm.bronze__stablecoin_reads_fr"], "source.polygon_models.crosschain_silver.near_address_encoded": ["model.fsc_evm.silver_bridge__wormhole_transfers"], "source.polygon_models.crosschain_silver.labels_combined": ["model.fsc_evm.bronze__labels"], "source.polygon_models.crosschain_silver.complete_provider_asset_metadata": ["model.fsc_evm.bronze__complete_provider_asset_metadata"], "source.polygon_models.crosschain_silver.complete_native_asset_metadata": ["model.fsc_evm.bronze__complete_native_asset_metadata"], "source.polygon_models.crosschain_silver.complete_native_prices": ["model.fsc_evm.bronze__complete_native_prices"], "source.polygon_models.crosschain_silver.complete_provider_prices": ["model.fsc_evm.bronze__complete_provider_prices"], "source.polygon_models.crosschain_silver.complete_token_asset_metadata": ["model.fsc_evm.bronze__complete_token_asset_metadata"], "source.polygon_models.crosschain_silver.complete_token_prices": ["model.fsc_evm.bronze__complete_token_prices"], "source.polygon_models.crosschain_silver.tokens_stablecoins": ["model.fsc_evm.defi__dim_stablecoins"], "source.polygon_models.crosschain_gold.dim_dates": ["model.fsc_evm.silver_stablecoins__supply_by_address_imputed"], "source.polygon_models.crosschain_public.user_abis": ["model.fsc_evm.silver__user_verified_abis"], "source.polygon_models.complete_streamline.complete_contract_abis": ["model.fsc_evm._retry_abis"], "source.polygon_models.github_actions.workflows": ["model.fsc_evm.github_actions__relevant_workflows"], "source.polygon_models.external_gold_defillama.dim_chains": ["model.fsc_evm.silver_bridge__complete_bridge_activity"], "source.polygon_models.external_polymarket.dim_markets": ["model.polygon_models.silver__polymarket_filled_orders"], "source.polygon_models.abis_silver.verified_abis": ["model.fsc_evm._retry_abis"], "source.polygon_models.abis_silver.complete_event_abis": ["model.fsc_evm.streamline__decoded_logs_realtime"], "source.polygon_models.fsc_evm_admin._master_keys": ["model.fsc_evm.admin__dim_variables"], "source.polygon_models.fsc_evm_admin.rpc_node_logs": ["model.fsc_evm.admin__fact_rpc_details"], "source.livequery_models.crosschain.dim_date_hours": [], "source.livequery_models.crosschain.dim_contracts": ["model.livequery_models._evm__contracts_map"], "source.livequery_models.crosschain.dim_evm_event_abis": ["model.livequery_models._evm__abi_map"], "source.livequery_models.ethereum_core.fact_event_logs": ["model.livequery_models._eth__logs"], "source.livequery_models.ethereum_core.ez_decoded_event_logs": ["model.livequery_models._eth__decoded_logs"], "source.fsc_evm.snowflake_account_usage.complete_task_graphs": ["model.fsc_evm.github_actions__task_history"], "source.fsc_evm.github_actions.workflows": [], "source.fsc_evm.bronze_streamline.blocks": [], "source.fsc_evm.bronze_streamline.blocks_v2": [], "source.fsc_evm.bronze_streamline.transactions": [], "source.fsc_evm.bronze_streamline.transactions_v2": [], "source.fsc_evm.bronze_streamline.receipts_by_hash": ["model.fsc_evm.bronze__receipts_by_hash", "model.fsc_evm.bronze__receipts_by_hash_fr"], "source.fsc_evm.bronze_streamline.receipts": [], "source.fsc_evm.bronze_streamline.receipts_v2": [], "source.fsc_evm.bronze_streamline.traces": [], "source.fsc_evm.bronze_streamline.traces_v2": [], "source.fsc_evm.bronze_streamline.debug_traceblockbynumber": [], "source.fsc_evm.bronze_streamline.confirm_blocks": [], "source.fsc_evm.bronze_streamline.confirm_blocks_v2": [], "source.fsc_evm.bronze_streamline.decoded_logs": [], "source.fsc_evm.bronze_streamline.decoded_logs_v2": [], "source.fsc_evm.bronze_streamline.decoded_traces": [], "source.fsc_evm.bronze_streamline.decoded_traces_v2": [], "source.fsc_evm.bronze_streamline.contract_abis": [], "source.fsc_evm.bronze_streamline.contract_abis_v2": [], "source.fsc_evm.bronze_streamline.beacon_blocks": [], "source.fsc_evm.bronze_streamline.beacon_blocks_v2": [], "source.fsc_evm.bronze_streamline.beacon_validators": [], "source.fsc_evm.bronze_streamline.beacon_validators_v2": [], "source.fsc_evm.bronze_streamline.reads": [], "source.fsc_evm.bronze_streamline.reads_v2": [], "source.fsc_evm.bronze_streamline.state_tracer": [], "source.fsc_evm.bronze_streamline.token_reads": [], "source.fsc_evm.bronze_streamline.balances_erc20": [], "source.fsc_evm.bronze_streamline.balances_native": [], "source.fsc_evm.bronze_streamline.stablecoin_reads": [], "source.fsc_evm.complete_streamline.complete_contract_abis": [], "source.fsc_evm.crosschain_silver.labels_combined": [], "source.fsc_evm.crosschain_silver.complete_provider_asset_metadata": [], "source.fsc_evm.crosschain_silver.complete_native_asset_metadata": [], "source.fsc_evm.crosschain_silver.complete_native_prices": [], "source.fsc_evm.crosschain_silver.complete_provider_prices": [], "source.fsc_evm.crosschain_silver.complete_token_asset_metadata": [], "source.fsc_evm.crosschain_silver.complete_token_prices": [], "source.fsc_evm.crosschain_silver.near_address_encoded": [], "source.fsc_evm.crosschain_silver.tokens_stablecoins": [], "source.fsc_evm.crosschain_public.user_abis": [], "source.fsc_evm.crosschain_gold.dim_dates": [], "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_avalanche_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_base_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_bob_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_boba_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_bsc_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_ethereum_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_ink_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_optimism_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_polygon_allowlist": [], "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_avalanche_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_base_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_bob_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_boba_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_bsc_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_ethereum_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_ink_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_optimism_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_polygon_address_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_avalanche_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_base_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_bob_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_boba_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_bsc_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_ethereum_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_ink_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_optimism_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_polygon_metrics_daily": [], "source.fsc_evm.crosschain_chain_stats.ez_arbitrum_protocol_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_avalanche_protocol_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_base_protocol_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_bob_protocol_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_boba_protocol_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_bsc_protocol_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_ethereum_protocol_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_ink_protocol_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_optimism_protocol_metrics": [], "source.fsc_evm.crosschain_chain_stats.ez_polygon_protocol_metrics": [], "source.fsc_evm.abis_silver.verified_abis": [], "source.fsc_evm.abis_silver.complete_event_abis": [], "source.fsc_evm.data_science_silver.evm_event_sigs": ["model.fsc_evm.scores__event_sigs"], "source.fsc_evm.data_science_silver.evm_known_event_names": ["model.fsc_evm.scores__known_event_names"], "source.fsc_evm.data_science_silver.evm_known_event_sigs": ["model.fsc_evm.scores__known_event_sigs"], "source.fsc_evm.data_science_silver.evm_wrapped_assets": ["model.fsc_evm.scores__wrapped_assets"], "source.fsc_evm.data_science_silver.dates": ["model.fsc_evm.scores__dates"], "source.fsc_evm.data_science_silver.scoring_activity_categories": ["model.fsc_evm.scores__scoring_activity_categories"], "source.fsc_evm.fsc_evm_admin._master_keys": [], "source.fsc_evm.fsc_evm_admin.rpc_node_logs": []}, "group_map": {}, "saved_queries": {}, "semantic_models": {}} \ No newline at end of file